@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240124.0 → 0.0.0-nightly-20240126.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 _0x274e=['deletions','showStack','toViewPosition','restoreRevisionCallback','parent','consume','activeView','from','-new','change:isEnabled','editor','loadRevisionData','_sortAndFilterDiffChanges','RevisionViewer','editing','addMarker:revision','vid_end','abs','all','return','_getViewForChange','requires','_refreshStartEndIndex','_processTape','find','changeId','destroy','data','isInline','nodeAfter','maxOffset','setAttribute','nextPosition','isReady','distance','isAtEnd','isIncorrect','vid_start','sort','upcast','isObject','domConverter','highest','_removeRevisionMarkers','splice','repository','toViewRange','getRoot','length','ck-revision-history-root-add','hasAttribute','selection','editingDowncast','isEqual','isContent','left','activeChange','addClass','unbindElementFromMarkerName','element','consumable','mapViewToDom','addMarker:revision-suggestion:insertion','_getChangeFromId','attachChange','conversion','showNextChange','RevisionsRepository','_markInsertions','getRevisionData','modelRange','markerNameToElements','ck-suggestion-marker','revision-suggestion','observeMarkers','refresh','suggestion','done','shift','mousedown','createPositionFromPath','startsWith','removeClass','_balloon','toData','currentChangeNumber','_revisions','map','has','ck-suggestion-marker--active','_changeView','updatePosition','ck-suggestion-marker-split','dataToMarker','numberOfChanges','markerToData','plugins','next','listenTo','isLimit','insert','_joinTapes','isNavigationMode','get','userId','createAttributeElement','isSuggestion','resolve','viewItem','isAfter','getChild','change','_getViewObj','item','delete','config','add','WidgetToolbarRepository','_markSuggestions','merge','for','view','side','_activeViewTarget','insertions','markerRange','getCustomProperty','ck-editor__editable__overlay','oldRevisionId','isRemoved','pairId','findIndex','isBlock','change:numberOfChanges','concat','affectsData','forceDisabled','ck-suggestion-marker-','change:activeView','mouseover','isBefore','string','name','isRemoveSuggestion','stop','comment','start','_removeMissingPairs','vid','document','type','toViewElement','_step','compare','mapper','authors','enableReadOnlyMode','flat','addRoot','diffData','nextSibling','children','markersStart','ck-revision-history-root-remove','wrap','_setConversion','writer','isAdded','_makeModelFromTape','addRevision','markers','revisionHistoryAttachChange','isEnabled','ck-revision-history-root-','_changeIdToChange','getRevisionRootsAttributes','deletion','getIndex','then','keys','getDomRoot','change:activeChange','isAttached','isCollapsed','bottom','revision-comment:','indexOf','init','level','low','getClientRects','endIndex','revision','getWalker','useFillerType','error','hasClass','model','attributes','domEvent','ck-revision-history-root--active','elementEnd','createUIElement','ck-suggestion-marker-merge','adapter','ck-suggestion-preview-marker-','removeMarker','_initInteractions','offsetSize','code','markerName','getAttribute','addHighlight','target','text','end','revisionHistoryLabel','forward','downcastDispatcher','getItems','set','showPreviousChange','_cleanUp','createRangeIn','includes','element:pre','rootName','push','startIndex','commands','addMarker:revision-suggestion:deletion','_setDistance','_findChangeIdFromDomTarget','_threeWayMerge','bind','_cleanMarkers','getRevision','isAddSuggestion','split','_getDiff','index','bindElementToMarker','addRevisionData','revision-suggestion:','unshift','data-change-id','span','isOnRoot','getRootNames','markersEnd','execute','_markMarkers','test','catch','locale','high','schema','clear','_makeTape','elementStart','_removeUnsupportedChanges','parse','attributesAfter','restoreRevision','dataDowncast','createPositionBefore','attribute:vid','values','reconvertMarker','filter','_appendChild','getAttributes','revision:','collaboration.channelId','_fixObsoleteTags','object','slice','right','remove','diff','enqueueChange','suggestion:','first','createRange','removeMarker:revision','revision-viewer','changes','previousPosition','_update','processor','revision-start','forEach','createRevision','detachRoot','uiElement','change:isReady','range','insertion','_markMismatchedRemovedTags','backward'];(function(_0x2ea8bd,_0x274e13){const _0x38d6be=function(_0x4fdd2f){while(--_0x4fdd2f){_0x2ea8bd['push'](_0x2ea8bd['shift']());}};_0x38d6be(++_0x274e13);}(_0x274e,0x70));const _0x38d6=function(_0x2ea8bd,_0x274e13){_0x2ea8bd=_0x2ea8bd-0x0;let _0x38d6be=_0x274e[_0x2ea8bd];return _0x38d6be;};import{Plugin as _0x21aad1,Command as _0x54dece}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x49236b}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x5b7b6d}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x138eb4,Element as _0xe8e4b0,Text as _0x56afd7,ViewDocumentFragment as _0x58b92d,ViewText as _0x21c16c,ViewElement as _0x2aa025,ViewContainerElement as _0x20e9f0,ViewAttributeElement as _0xa24bdd,ViewEmptyElement as _0x3465a4,ViewRawElement as _0x1374d2,ViewUIElement as _0x586148}from'ckeditor5/src/engine.js';import{Users as _0xaeb83d,getMarkerDomElement as _0x57de97}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x9942fd from'./ui/revisionviewer/changedetailsview.js';import _0x266224 from'./revisionsrepository.js';import _0x1006d4 from'./changeitem.js';import{default as _0x163332}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x427977}from'lodash-es';const tt={'c':_0x20e9f0,'a':_0xa24bdd,'e':_0x3465a4,'r':_0x1374d2,'u':_0x586148};export default class d extends _0x21aad1{static get['pluginName'](){return'RevisionViewer';}static get[_0x38d6('0xd1')](){return[_0xaeb83d,_0x5b7b6d,_0x266224];}constructor(_0x46bc6f){super(_0x46bc6f),this['repository']=this[_0x38d6('0xc6')]['plugins']['get'](_0x38d6('0xff')),this[_0x38d6('0x6c')](_0x38d6('0xf4'),null),this[_0x38d6('0x6c')]('activeView',null),this[_0x38d6('0xb')]=null,this[_0x38d6('0x6c')]('diff',null),this[_0x38d6('0x6c')](_0x38d6('0xdd'),!0x1),this[_0x38d6('0x6c')](_0x38d6('0x3c'),!0x0),this['on']('change:isEnabled',(_0x22d794,_0x2bbfa9,_0x539fa6)=>{this[_0x38d6('0xf4')]=null,this[_0x38d6('0xc2')]=null,this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x12b')](_0x383078=>{for(const _0x3b4fa6 of this['editor'][_0x38d6('0xca')]['view'][_0x38d6('0x25')]['roots'])_0x539fa6?_0x383078[_0x38d6('0x10e')](_0x38d6('0xf'),_0x3b4fa6):_0x383078[_0x38d6('0xf5')](_0x38d6('0xf'),_0x3b4fa6);});}),this[_0x38d6('0x7a')](_0x38d6('0x122'))['to'](this,_0x38d6('0xf4'),_0x137243=>null!==_0x137243),this['bind'](_0x38d6('0x111'))['to'](this,_0x38d6('0xdd'),this,_0x38d6('0xa7'),this,'activeChange',(_0x510aa4,_0x56fbf9,_0x485e37)=>_0x510aa4&&_0x485e37?_0x56fbf9['changes'][_0x38d6('0x41')](_0x485e37):0x0),this[_0x38d6('0x7a')](_0x38d6('0x11a'))['to'](this,'isReady',this,_0x38d6('0xa7'),(_0x287ca0,_0x55b2f6)=>_0x287ca0?_0x55b2f6['changes'][_0x38d6('0xec')]:0x0),this[_0x38d6('0x116')]=null,this[_0x38d6('0x3e')]=new Map(),this[_0x38d6('0x5c')]=null,this[_0x38d6('0x10f')]=this[_0x38d6('0xc6')][_0x38d6('0x11c')][_0x38d6('0x123')](_0x5b7b6d);}[_0x38d6('0x4b')](){const _0x4d708e=this[_0x38d6('0xc6')],_0x4c3967=new ShowChangeCommand(_0x4d708e,{'direction':_0x38d6('0xbb')}),_0x4626ed=new ShowChangeCommand(_0x4d708e,{'direction':_0x38d6('0x69')});(_0x4d708e[_0x38d6('0x75')][_0x38d6('0x4')](_0x38d6('0x6d'),_0x4c3967),_0x4d708e[_0x38d6('0x75')]['add'](_0x38d6('0xfe'),_0x4626ed),_0x4d708e[_0x38d6('0x75')][_0x38d6('0x4')](_0x38d6('0x97'),new RestoreRevisionCommand(_0x4d708e)),this['on'](_0x38d6('0x15'),()=>{_0x4c3967[_0x38d6('0x107')](),_0x4626ed['refresh']();}),this[_0x38d6('0x35')](),this['_initInteractions'](),_0x4d708e[_0x38d6('0x2c')](_0x38d6('0xad')),_0x4d708e[_0x38d6('0x11c')][_0x38d6('0x114')](_0x38d6('0x5')))&&_0x4d708e[_0x38d6('0x11c')][_0x38d6('0x123')](_0x38d6('0x5'))[_0x38d6('0x18')](_0x38d6('0xad'));}async[_0x38d6('0x101')](_0x1e42a9){await this['loadRevisionData'](_0x1e42a9);const _0x510a31={};for(const _0x244a21 in _0x1e42a9[_0x38d6('0x2f')]){if(_0x1e42a9[_0x38d6('0x2f')][_0x244a21]['attachChange']&&!_0x1e42a9[_0x38d6('0x2f')][_0x244a21][_0x38d6('0xfc')][_0x38d6('0x46')])continue;const _0x5bed2a=this[_0x38d6('0xe7')](JSON[_0x38d6('0x95')](_0x1e42a9[_0x38d6('0x2f')][_0x244a21]['insertions'])),_0x1f2343=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x25')],_0x2ef64a=new _0x58b92d(_0x1f2343,_0x5bed2a['map'](_0x28cbba=>this['_getViewObj'](_0x28cbba)));this[_0x38d6('0xc6')][_0x38d6('0xd7')][_0x38d6('0xb1')][_0x38d6('0x52')]('marked'),_0x510a31[_0x244a21]=this[_0x38d6('0xc6')][_0x38d6('0xd7')][_0x38d6('0xb1')][_0x38d6('0x110')](_0x2ef64a),this[_0x38d6('0xc6')][_0x38d6('0xd7')][_0x38d6('0xb1')][_0x38d6('0x52')]('default');}return _0x510a31;}async[_0x38d6('0x3f')](_0x9fad62){await this['loadRevisionData'](_0x9fad62);const _0x480d94={};for(const _0x3c01f7 in _0x9fad62[_0x38d6('0x2f')])_0x9fad62[_0x38d6('0x2f')][_0x3c01f7][_0x38d6('0xfc')]&&!_0x9fad62[_0x38d6('0x2f')][_0x3c01f7][_0x38d6('0xfc')]['isAttached']||(_0x480d94[_0x3c01f7]=_0x9fad62[_0x38d6('0x2f')][_0x3c01f7][_0x38d6('0x96')]||{});return _0x480d94;}[_0x38d6('0xe7')](_0x4a1cf0){return(_0x4a1cf0=_0x4a1cf0[_0x38d6('0x9d')](_0xb00f9=>!_0xb00f9['name']||_0x38d6('0xb2')!==_0xb00f9[_0x38d6('0x1e')]&&'revision-end'!==_0xb00f9[_0x38d6('0x1e')]))['forEach'](_0x456dba=>{_0x38d6('0x1d')!=typeof _0x456dba&&(_0x456dba[_0x38d6('0x31')]=this['_removeRevisionMarkers'](_0x456dba['children']),_0x456dba[_0x38d6('0x56')]=_0x456dba[_0x38d6('0x56')][_0x38d6('0x9d')](_0x5b27b4=>!_0x5b27b4[0x0]['startsWith']('data-revision-')));}),_0x4a1cf0;}async[_0x38d6('0x29')](_0x3e4344,_0x353a33,_0x18fc2f=!0x1){if(!this['isEnabled'])return;const _0x1223fa=this[_0x38d6('0xa7')],_0x28fa7d=this[_0x38d6('0xe9')],_0x2a4a7a=_0x38d6('0x1d')==typeof _0x3e4344?_0x28fa7d[_0x38d6('0x7c')](_0x3e4344):_0x3e4344,_0x2bb524=_0x38d6('0x1d')==typeof _0x353a33?_0x28fa7d[_0x38d6('0x7c')](_0x353a33):_0x353a33,_0x2859d9=_0x2a4a7a['id'],_0x3cda81=_0x2bb524?_0x2bb524['id']:null;if(!_0x18fc2f&&this[_0x38d6('0xa7')]&&this[_0x38d6('0xa7')]['newRevisionId']===_0x2859d9&&this[_0x38d6('0xa7')][_0x38d6('0x10')]===_0x3cda81)return Promise[_0x38d6('0x127')]();this[_0x38d6('0xdd')]=!0x1,this[_0x38d6('0xc2')]=null,this[_0x38d6('0xf4')]=null,this[_0x38d6('0xa7')]=new _0x163332(_0x2859d9,_0x3cda81);const _0x3265a8=this['_getRevisionsRange'](_0x2a4a7a,_0x2bb524,!0x0)[_0x38d6('0x113')](_0xc22796=>this[_0x38d6('0xc7')](_0xc22796));return _0x3265a8['push'](new Promise(_0x243903=>{setTimeout(_0x243903,0x14);})),Promise[_0x38d6('0xce')](_0x3265a8)['then'](()=>{if(!this['isEnabled'])return;this[_0x38d6('0x6e')]();const _0x3e1392=this['_getDiff'](_0x2859d9,_0x3cda81);for(const _0x54d8bf of _0x3e1392[_0x38d6('0xae')])this[_0x38d6('0x3e')][_0x38d6('0x6c')](_0x54d8bf['id'],_0x54d8bf);this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0xa8')]({'isUndoable':!0x1},_0x526676=>{for(const _0x186846 of this['editor'][_0x38d6('0x55')]['document']['getRootNames']())_0x526676[_0x38d6('0xb5')](_0x186846);for(const _0x3a8a08 of Object[_0x38d6('0x43')](_0x3e1392[_0x38d6('0x55')])){const _0x18a8af=_0x526676[_0x38d6('0x2e')](_0x3a8a08);for(const _0x1b63fb of Object[_0x38d6('0x43')](_0x3e1392[_0x38d6('0x56')][_0x3a8a08]))_0x526676['setAttribute'](_0x1b63fb,_0x3e1392[_0x38d6('0x56')][_0x3a8a08][_0x1b63fb],_0x18a8af);_0x526676[_0x38d6('0x120')](_0x3e1392['model'][_0x3a8a08],_0x18a8af,0x0);}}),this[_0x38d6('0xa7')]['_setChanges'](this[_0x38d6('0xc8')](_0x3e1392[_0x38d6('0xae')])),this['isReady']=!0x0;})[_0x38d6('0x8d')](_0x36e7f6=>{console[_0x38d6('0x53')](_0x36e7f6),this[_0x38d6('0x6e')](),_0x1223fa&&(this[_0x38d6('0xa7')]=_0x1223fa),this[_0x38d6('0xdd')]=!0x0;});}[_0x38d6('0x82')](_0x545ef4,_0x5bd979){const _0x27fc21=this[_0x38d6('0xe9')][_0x38d6('0xb4')](_0x545ef4);return _0x27fc21['on'](_0x38d6('0xb0'),(_0x45f9a8,_0x50089e,_0x27c7af)=>_0x5bd979(_0x50089e,_0x27c7af,_0x27fc21)),this[_0x38d6('0xe9')][_0x38d6('0x39')](_0x27fc21),_0x27fc21;}[_0x38d6('0xc7')](_0x57454){if(!_0x57454||_0x57454[_0x38d6('0x2f')])return Promise[_0x38d6('0x127')]();{const _0x45aced=this[_0x38d6('0xc6')][_0x38d6('0x3')][_0x38d6('0x123')](_0x38d6('0xa1'));return this[_0x38d6('0x5c')][_0x38d6('0x7c')]({'channelId':_0x45aced,'revisionId':_0x57454['id']})[_0x38d6('0x42')](_0x794697=>{_0x57454['_update']({'diffData':_0x794697[_0x38d6('0x2f')]},!0x0);});}}['_cleanUp'](){this[_0x38d6('0xf4')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x38d6('0x116')]['destroy'](),this[_0x38d6('0x116')]=null,this['_changeIdToChange'][_0x38d6('0x91')](),this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0xa8')]({'isUndoable':!0x1},_0x6cca75=>{for(const _0x333bf1 of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')][_0x38d6('0x88')]())_0x6cca75[_0x38d6('0xb5')](_0x333bf1);});}[_0x38d6('0xc8')](_0x3b8ce5){const _0x47a557=[],_0x38edc8=new Map();for(const _0x3ab14b of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')]['getRootNames']()){const _0x7a50b5=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x44')](_0x3ab14b);if(!_0x7a50b5)continue;const _0x5dcd46=_0x7a50b5[_0x38d6('0x4e')]()[_0x38d6('0x1')](0x0);_0x5dcd46&&(_0x47a557['push'](_0x3ab14b),_0x38edc8['set'](_0x3ab14b,_0x5dcd46));}return _0x47a557[_0x38d6('0xe2')]((_0x3fdfa7,_0x29473b)=>{const _0x226f69=_0x38edc8['get'](_0x3fdfa7),_0x11eae9=_0x38edc8[_0x38d6('0x123')](_0x29473b);return _0x226f69['y']-_0x11eae9['y']||_0x226f69['x']-_0x11eae9['x'];}),(_0x3b8ce5=_0x3b8ce5['filter'](_0x2a6bf4=>_0x47a557[_0x38d6('0x70')](_0x2a6bf4['rootName'])))[_0x38d6('0xe2')]((_0x21ee9f,_0x141442)=>_0x47a557[_0x38d6('0x4a')](_0x21ee9f[_0x38d6('0x72')])-_0x47a557[_0x38d6('0x4a')](_0x141442[_0x38d6('0x72')])),_0x3b8ce5;}['_makeTape'](_0x547b84){const _0x104e6e=Array[_0x38d6('0xc3')](_0x547b84[_0x38d6('0x3a')])[_0x38d6('0x9d')](([_0x594d35,_0x19e4f8])=>_0x594d35['startsWith'](_0x38d6('0xa0'))&&!_0x19e4f8[_0x38d6('0x47')]),_0x49a613=Array['from'](this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x6f')](_0x547b84)[_0x38d6('0x51')]({'singleCharacters':!0x0}));if(0x0!=_0x104e6e['length'])for(const _0x4a0c77 of _0x49a613){const [_0x510b1b,_0x51050c]=_0x104e6e[0x0],[,_0xac87e8,_0x156b3c]=_0x510b1b[_0x38d6('0x7e')](':');if(_0x51050c[_0x38d6('0x67')]['isEqual'](_0x4a0c77[_0x38d6('0xdc')])&&_0x104e6e[_0x38d6('0x10a')](),(_0x4a0c77[_0x38d6('0xaf')][_0x38d6('0xf1')](_0x51050c[_0x38d6('0x22')])||_0x4a0c77[_0x38d6('0xaf')][_0x38d6('0x129')](_0x51050c['start']))&&('insertion'==_0xac87e8?_0x4a0c77[_0x38d6('0x37')]={'userId':_0x156b3c}:'deletion'==_0xac87e8&&(_0x4a0c77[_0x38d6('0x11')]={'userId':_0x156b3c})),0x0==_0x104e6e[_0x38d6('0xec')])break;}return _0x49a613;}[_0x38d6('0xd2')](_0x56f713){const _0x3c8a2d=new Map();for(let _0x41f0f7=0x0;_0x41f0f7<_0x56f713[_0x38d6('0xec')];_0x41f0f7++)_0x38d6('0x66')===_0x56f713[_0x41f0f7][_0x38d6('0x26')]?(_0x56f713[_0x41f0f7][_0x38d6('0x1')][_0x38d6('0x74')]=_0x41f0f7,_0x56f713[_0x41f0f7]['item']['endIndex']=_0x41f0f7):(_0x38d6('0x93')===_0x56f713[_0x41f0f7][_0x38d6('0x26')]?_0x56f713[_0x41f0f7][_0x38d6('0x1')][_0x38d6('0x74')]=_0x41f0f7:_0x38d6('0x59')===_0x56f713[_0x41f0f7][_0x38d6('0x26')]&&(_0x56f713[_0x41f0f7]['item'][_0x38d6('0x4f')]=_0x41f0f7),_0x3c8a2d['set'](_0x56f713[_0x41f0f7]['id'],_0x41f0f7));for(const _0x11b33a of _0x3c8a2d[_0x38d6('0x9b')]())_0x38d6('0x93')===_0x56f713[_0x11b33a][_0x38d6('0x26')]?_0x56f713[_0x11b33a][_0x38d6('0x1')][_0x38d6('0x4f')]=_0x3c8a2d[_0x38d6('0x123')](_0x56f713[_0x11b33a]['pairId']):_0x38d6('0x59')===_0x56f713[_0x11b33a][_0x38d6('0x26')]&&(_0x56f713[_0x11b33a]['item']['startIndex']=_0x3c8a2d['get'](_0x56f713[_0x11b33a][_0x38d6('0x12')]));}['_processTape'](_0x10381a){for(let _0x4b2dfb=0x0;_0x4b2dfb<_0x10381a[_0x38d6('0xec')];_0x4b2dfb++){if(_0x38d6('0x93')===_0x10381a[_0x4b2dfb]['type'])_0x10381a[_0x4b2dfb]['item'][_0x38d6('0x74')]=_0x4b2dfb;else{if(_0x38d6('0x59')===_0x10381a[_0x4b2dfb][_0x38d6('0x26')]){_0x10381a[_0x4b2dfb]['item'][_0x38d6('0x4f')]=_0x4b2dfb;const _0x23aea5=_0x10381a[_0x4b2dfb]['item']['startIndex'];_0x10381a[_0x23aea5][_0x38d6('0x12')]=_0x10381a[_0x4b2dfb]['id'],_0x10381a[_0x4b2dfb][_0x38d6('0x12')]=_0x10381a[_0x23aea5]['id'];}else _0x10381a[_0x4b2dfb][_0x38d6('0x1')]['startIndex']=_0x4b2dfb,_0x10381a[_0x4b2dfb][_0x38d6('0x1')][_0x38d6('0x4f')]=_0x4b2dfb,_0x10381a[_0x4b2dfb][_0x38d6('0x12')]=null;}_0x10381a[_0x4b2dfb][_0x38d6('0x32')]||(_0x10381a[_0x4b2dfb][_0x38d6('0x32')]=[],_0x10381a[_0x4b2dfb][_0x38d6('0x89')]=[]);}}[_0x38d6('0x100')](_0x2c9a42,_0x490412){const _0x1852de=_0x2c9a42[_0x38d6('0x9d')](_0x14f0a4=>!_0x14f0a4[_0x38d6('0x37')]);for(let _0x1679b4=0x0;_0x1679b4<_0x490412[_0x38d6('0xec')];_0x1679b4++)_0x490412[_0x1679b4][_0x38d6('0x37')]&&(_0x1852de[_0x1679b4]['isAdded']=_0x490412[_0x1679b4]['isAdded']);}['_makeModelFromViewString'](_0x5c54c4){const _0x57188f=JSON[_0x38d6('0x95')](_0x5c54c4),_0x132607=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x25')],_0x453e3e=new _0x58b92d(_0x132607,_0x57188f['map'](_0xb8a15f=>this[_0x38d6('0x0')](_0xb8a15f)));return this[_0x38d6('0xc6')][_0x38d6('0xd7')]['toModel'](_0x453e3e);}['_getViewObj'](_0x344996){const _0x561149=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')]['document'];if(_0x38d6('0x1d')==typeof _0x344996)return new _0x21c16c(_0x561149,_0x344996);{const _0xf2220c=_0x344996[_0x38d6('0x31')]['map'](_0x1c3a11=>this[_0x38d6('0x0')](_0x1c3a11));return new(tt[_0x344996['type']]||_0x2aa025)(_0x561149,_0x344996['name'],_0x344996[_0x38d6('0x56')],_0xf2220c);}}[_0x38d6('0x7f')](_0x2cbcf3,_0x5b0f4a=null){const _0x59303f=this[_0x38d6('0xe9')][_0x38d6('0x7c')](_0x2cbcf3),_0x451763=_0x5b0f4a?this['repository'][_0x38d6('0x7c')](_0x5b0f4a):null,_0xc4a5b9=this['_getRevisionsRange'](_0x59303f,_0x451763),_0x2d6d60=_0xc4a5b9[_0xc4a5b9[_0x38d6('0xec')]-0x1],_0xed8e76=new Map(),_0x35cf36={'model':{},'attributes':{},'changes':[]},_0x470f46=new Set(),_0x17028b=new Map();for(let _0x4a1e0f=_0xc4a5b9['length']-0x1;_0x4a1e0f>=0x0;_0x4a1e0f--){const _0x2d3795=_0xc4a5b9[_0x4a1e0f];for(const _0x5a9fb5 of Object[_0x38d6('0x43')](_0x2d3795[_0x38d6('0x2f')]))if(_0x2d3795['diffData'][_0x5a9fb5][_0x38d6('0xfc')]){const _0x33edb4=_0x2d3795[_0x38d6('0x2f')][_0x5a9fb5][_0x38d6('0xfc')];_0x33edb4[_0x38d6('0x46')]?(_0x470f46['add'](_0x5a9fb5),_0x17028b['has'](_0x5a9fb5)&&_0x17028b['get'](_0x5a9fb5)[_0x38d6('0x124')]==_0x33edb4[_0x38d6('0x124')]?_0x17028b[_0x38d6('0x2')](_0x5a9fb5):_0x17028b[_0x38d6('0x6c')](_0x5a9fb5,_0x33edb4)):_0x17028b[_0x38d6('0x114')](_0x5a9fb5)?(_0x470f46[_0x38d6('0x2')](_0x5a9fb5),_0x17028b['delete'](_0x5a9fb5)):(_0x470f46[_0x38d6('0x4')](_0x5a9fb5),_0x17028b[_0x38d6('0x6c')](_0x5a9fb5,_0x33edb4));}else _0x470f46[_0x38d6('0x4')](_0x5a9fb5);}for(const _0x4b81d9 of _0x470f46){const _0x1a237c=_0x17028b[_0x38d6('0x114')](_0x4b81d9)&&!_0x17028b['get'](_0x4b81d9)[_0x38d6('0x46')];let _0xa9dda8=_0x1a237c?_0xc4a5b9[_0x38d6('0xec')]-0x1:0x0;const _0x1e3d5b=_0x1a237c?-0x1:0x1;for(;_0xc4a5b9[_0xa9dda8];){const _0xe83a05=_0xc4a5b9[_0xa9dda8];if(_0xe83a05['diffData'][_0x4b81d9]){const _0x52e5df=_0x1a237c?_0xe83a05[_0x38d6('0x2f')][_0x4b81d9]['attributesBefore']:_0xe83a05[_0x38d6('0x2f')][_0x4b81d9][_0x38d6('0x96')];_0x35cf36[_0x38d6('0x56')][_0x4b81d9]=_0x52e5df?_0x427977(_0x52e5df):{};break;}_0xa9dda8+=_0x1e3d5b;}}for(const _0x4e3b80 of _0xc4a5b9){_0x4e3b80[_0x38d6('0x55')]={};for(const _0x21fe56 of _0x4e3b80[_0x38d6('0x2b')])_0xed8e76[_0x38d6('0x6c')](_0x21fe56['id'],_0x21fe56);for(const _0xb678dd of _0x470f46){const _0x5a2c3a=_0x4e3b80[_0x38d6('0x2f')][_0xb678dd]?_0x4e3b80[_0x38d6('0x2f')][_0xb678dd][_0x38d6('0xc')]:'[]',_0x37f105=_0x4e3b80[_0x38d6('0x2f')][_0xb678dd]?_0x4e3b80[_0x38d6('0x2f')][_0xb678dd][_0x38d6('0xbc')]:'[]';_0x4e3b80[_0x38d6('0x55')][_0xb678dd]={'insertions':this['_makeModelFromViewString'](_0x5a2c3a),'deletions':this['_makeModelFromViewString'](_0x37f105)};}}for(const _0xa9c47d of _0x470f46){let _0x22ec12=null,_0x10aedf=0x0;const _0x3ac996=new Map(Array['from'](_0x59303f[_0x38d6('0x55')][_0xa9c47d][_0x38d6('0xc')][_0x38d6('0x3a')])[_0x38d6('0x9d')](([_0x34c474])=>!_0x34c474[_0x38d6('0x10d')](_0x38d6('0xa0'))));let _0x519089=0x0;for(const _0x427c5e of _0xc4a5b9){const _0x4b1886=this[_0x38d6('0x92')](_0x427c5e[_0x38d6('0x55')][_0xa9c47d]['insertions']);_0x427c5e==_0x59303f?(_0x22ec12=_0x4b1886,_0x10aedf=_0x22ec12[_0x38d6('0xec')],_0x22ec12[_0x38d6('0xb3')](_0x2bb7ed=>{_0x2bb7ed['id']=_0x519089++;}),this[_0x38d6('0xd3')](_0x22ec12)):this['_markInsertions'](_0x22ec12,_0x4b1886);const _0x42e63f=_0x22ec12[_0x38d6('0x9d')](_0x1e8240=>!_0x1e8240[_0x38d6('0x37')])[_0x38d6('0x113')](_0x5f4fd6=>_0x5f4fd6['id']);let _0x26db7c=0x0;const _0x75b508=this[_0x38d6('0x92')](_0x427c5e[_0x38d6('0x55')][_0xa9c47d][_0x38d6('0xbc')]);_0x75b508[_0x38d6('0xb3')](_0x3d33ff=>{_0x3d33ff[_0x38d6('0x11')]?_0x3d33ff['id']=_0x10aedf++:_0x3d33ff['id']=_0x42e63f[_0x26db7c++];}),this[_0x38d6('0xd3')](_0x75b508),this[_0x38d6('0x77')](_0x22ec12,_0x38d6('0x37')),this[_0x38d6('0x77')](_0x75b508,_0x38d6('0x11')),_0x427c5e==_0x59303f&&this[_0x38d6('0x8b')](_0x22ec12,_0x3ac996),_0x22ec12=this[_0x38d6('0x121')](_0x22ec12,_0x75b508),this['_refreshStartEndIndex'](_0x22ec12),this[_0x38d6('0x77')](_0x22ec12,_0x38d6('0x11'));}_0x22ec12=_0x22ec12[_0x38d6('0x9d')](_0x517906=>!(_0x517906[_0x38d6('0x37')]&&_0x517906['isRemoved']));const _0x3805c1=new Map(_0x2d6d60['model'][_0xa9c47d][_0x38d6('0xbc')][_0x38d6('0x3a')]),_0x231dfc=new Set(_0x3ac996[_0x38d6('0x43')]());for(const _0x509fc2 of _0x3805c1[_0x38d6('0x43')]())_0x231dfc[_0x38d6('0x2')](_0x509fc2);this[_0x38d6('0x6')](_0x22ec12,_0x231dfc),this[_0x38d6('0xa2')](_0x22ec12),_0x22ec12=this[_0x38d6('0x23')](_0x22ec12),_0x22ec12=this[_0x38d6('0xba')](_0x22ec12),_0x22ec12=this['_removeUnsupportedChanges'](_0x22ec12);const {root:_0x575b01,changes:_0x3f1f21}=this[_0x38d6('0x38')](_0x22ec12,_0xed8e76,_0xa9c47d);_0x35cf36[_0x38d6('0x55')][_0xa9c47d]=_0x575b01;const _0x49967c=_0x17028b[_0x38d6('0x123')](_0xa9c47d);if(_0x49967c){const _0x216068=_0xed8e76['get'](_0x49967c['userId']),_0x582bc3=new _0x1006d4({'author':_0x216068,'type':_0x49967c[_0x38d6('0x46')]?_0x38d6('0x4'):_0x38d6('0xa6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xa9c47d});_0x3f1f21[_0x38d6('0x84')](_0x582bc3),_0x35cf36[_0x38d6('0x56')][_0xa9c47d][_0x38d6('0x3b')]=_0x582bc3['id'];}_0x35cf36['changes']=_0x35cf36['changes'][_0x38d6('0x16')](_0x3f1f21);}return _0x35cf36;}[_0x38d6('0x8b')](_0x59ad97,_0x45ae01){for(let _0x504153=0x0;_0x504153<_0x59ad97[_0x38d6('0xec')];_0x504153++)for(const [_0x16ad83,_0x32f49d]of _0x45ae01)_0x32f49d[_0x38d6('0x22')][_0x38d6('0xf1')](_0x59ad97[_0x504153]['previousPosition'])&&_0x59ad97[_0x504153][_0x38d6('0x32')]['push'](_0x16ad83),_0x32f49d['end'][_0x38d6('0xf1')](_0x59ad97[_0x504153][_0x38d6('0xdc')])&&_0x59ad97[_0x504153][_0x38d6('0x89')][_0x38d6('0x73')](_0x16ad83);}['_joinTapes'](_0x561a66,_0x53fb94){let _0x2dccfc=[],_0x132217=0x0,_0x4daa7b=0x0;for(;_0x132217<_0x561a66[_0x38d6('0xec')]||_0x4daa7b<_0x53fb94[_0x38d6('0xec')];){const _0xcb73f5=_0x561a66[_0x132217]||{},_0x3f8cfb=_0x53fb94[_0x4daa7b]||{};if(_0xcb73f5['id']==_0x3f8cfb['id'])_0x132217++,_0x4daa7b++,_0x2dccfc['push'](_0xcb73f5);else{if(_0x3f8cfb[_0x38d6('0x11')]&&_0xcb73f5['isAdded']){const {commonTape:_0x10c2ba,iEnd:_0x2a3508,jEnd:_0xbfff78}=this[_0x38d6('0x79')](_0x561a66,_0x132217,_0x53fb94,_0x4daa7b);_0x2dccfc=_0x2dccfc[_0x38d6('0x16')](_0x10c2ba),_0x132217=_0x2a3508,_0x4daa7b=_0xbfff78;}else _0x3f8cfb[_0x38d6('0x11')]?(_0x4daa7b++,_0x2dccfc[_0x38d6('0x73')](_0x3f8cfb)):(_0x132217++,_0x2dccfc[_0x38d6('0x73')](_0xcb73f5));}}return _0x2dccfc;}[_0x38d6('0x6')](_0x2e92fd,_0x5b74a9){const _0x157d50=[];for(let _0x32afe2=0x0;_0x32afe2<_0x2e92fd[_0x38d6('0xec')];_0x32afe2++){for(let _0x5489de=0x0;_0x5489de<_0x2e92fd[_0x32afe2][_0x38d6('0x32')][_0x38d6('0xec')];_0x5489de++){const _0x3f4c74=_0x2e92fd[_0x32afe2][_0x38d6('0x32')][_0x5489de];if(!_0x5b74a9[_0x38d6('0x114')](_0x3f4c74))continue;const {group:_0x59395e,type:_0xf05394,authorId:_0x56f54}=_0x45b15e(_0x3f4c74);_0x38d6('0x105')!=_0x59395e||'insertion'!=_0xf05394&&_0x38d6('0x40')!=_0xf05394||(_0x157d50[_0x38d6('0x84')]({'type':_0xf05394,'name':_0x3f4c74,'userId':_0x56f54}),_0x2e92fd[_0x32afe2][_0x38d6('0x32')][_0x38d6('0xe8')](_0x5489de,0x1),_0x5489de--);}_0x5cc789(_0x2e92fd[_0x32afe2]);for(let _0x132c3a=0x0;_0x132c3a<_0x2e92fd[_0x32afe2][_0x38d6('0x89')][_0x38d6('0xec')];_0x132c3a++){const _0x20f1c2=_0x2e92fd[_0x32afe2]['markersEnd'][_0x132c3a];if(!_0x5b74a9['has'](_0x20f1c2))continue;const {group:_0x44ab32,type:_0xfc706d}=_0x45b15e(_0x20f1c2);if(_0x38d6('0x105')!=_0x44ab32||_0x38d6('0xb9')!=_0xfc706d&&'deletion'!=_0xfc706d)continue;_0x2e92fd[_0x32afe2][_0x38d6('0x89')][_0x38d6('0xe8')](_0x132c3a,0x1),_0x132c3a--;const _0x3c3ed8=_0x157d50[_0x38d6('0x13')](_0x194ecc=>_0x194ecc['name']==_0x20f1c2);_0x3c3ed8>-0x1&&_0x157d50[_0x38d6('0xe8')](_0x3c3ed8,0x1);}}function _0x45b15e(_0x1ed90a){const _0x1d0502=_0x1ed90a[_0x38d6('0x7e')](':');return{'group':_0x1d0502[0x0],'type':_0x1d0502[0x1],'subType':_0x1d0502[_0x38d6('0xec')]>=0x5?_0x1d0502[0x2]:null,'id':_0x1d0502[_0x38d6('0xec')]<0x5?_0x1d0502[0x2]:_0x1d0502[0x3],'authorId':_0x1d0502[_0x38d6('0xec')]<0x5?_0x1d0502[0x3]:_0x1d0502[0x4],'markerCount':0x6==_0x1d0502[_0x38d6('0xec')]?_0x1d0502[0x5]:null};}function _0x5cc789(_0x342fb5){for(let _0x196928=0x0;_0x196928<_0x157d50[_0x38d6('0xec')];_0x196928++){if(_0x342fb5[_0x38d6('0x37')]&&_0x38d6('0xb9')==_0x157d50[_0x196928][_0x38d6('0x26')])return _0x342fb5[_0x38d6('0x7d')]=_0x157d50[_0x196928],void delete _0x342fb5[_0x38d6('0x37')];if(!_0x342fb5[_0x38d6('0x37')]&&!_0x342fb5[_0x38d6('0x11')]&&_0x38d6('0x40')==_0x157d50[_0x196928]['type'])return void(_0x342fb5[_0x38d6('0x1f')]=_0x157d50[_0x196928]);}}}[_0x38d6('0x77')](_0x52fa28,_0x4131a1){let _0x2de451=0x0,_0x395068=!0x1;const _0x1f6dbe=new Map();for(const _0x3f4c2b of _0x52fa28)_0x3f4c2b[_0x4131a1]?_0x395068&&(_0x2de451++,_0x395068=!0x1):(_0x2de451++,_0x395068=!0x0),_0x1f6dbe[_0x38d6('0x6c')](_0x3f4c2b['id'],_0x2de451);for(let _0x2f6221=0x0;_0x2f6221<_0x52fa28['length'];_0x2f6221++){if('isRemoved'==_0x4131a1&&_0x52fa28[_0x2f6221][_0x38d6('0x37')]||_0x38d6('0x37')==_0x4131a1&&_0x52fa28[_0x2f6221][_0x38d6('0x11')])continue;if('text'==_0x52fa28[_0x2f6221][_0x38d6('0x26')]){_0x52fa28[_0x2f6221][_0x38d6('0xde')]=0x0;continue;}const _0x24ee3e=_0x1f6dbe[_0x38d6('0x123')](_0x52fa28[_0x2f6221][_0x38d6('0x12')]),_0x499b97=_0x1f6dbe['get'](_0x52fa28[_0x2f6221]['id']);_0x52fa28[_0x2f6221]['distance']=_0x24ee3e-_0x499b97;}}['_getRevisionsRange'](_0x3103c3,_0x52c1de,_0x2b9428=!0x1){const _0x2f723e=[];let _0x333b0c=this['repository'][_0x38d6('0x41')](_0x3103c3),_0x316ad2=this[_0x38d6('0xe9')]['getIndex'](_0x52c1de);for(-0x1==_0x316ad2&&(_0x316ad2=this[_0x38d6('0xe9')][_0x38d6('0x112')]['length'],_0x2b9428=!0x1);_0x333b0c<_0x316ad2;)_0x2f723e[_0x38d6('0x73')](this[_0x38d6('0xe9')][_0x38d6('0x7c')](_0x333b0c)),_0x333b0c++;return _0x2b9428&&_0x2f723e[_0x38d6('0x73')](this[_0x38d6('0xe9')]['getRevision'](_0x333b0c)),_0x2f723e;}[_0x38d6('0x79')](_0x490fb8,_0x498e0d,_0x344c41,_0x30cad6){const _0x58a146=this[_0x38d6('0xc6')][_0x38d6('0x55')]['schema'];let _0x218131=_0x498e0d;for(;_0x490fb8[_0x218131]&&_0x490fb8[_0x218131][_0x38d6('0x37')];)_0x218131++;let _0x113158=_0x30cad6;for(;_0x344c41[_0x113158]&&_0x344c41[_0x113158][_0x38d6('0x11')];)_0x113158++;_0x195dc5(_0x490fb8,_0x498e0d,_0x218131),_0x195dc5(_0x344c41,_0x30cad6,_0x113158);const _0x11ea9f=_0x344c41[_0x38d6('0xa4')](_0x30cad6,_0x113158)[_0x38d6('0x16')](_0x490fb8['slice'](_0x498e0d,_0x218131));return _0x11ea9f['sort']((_0x4cefd0,_0x55f0bf)=>_0x4cefd0['side']!=_0x55f0bf[_0x38d6('0xa')]?_0x4cefd0[_0x38d6('0xa')]-_0x55f0bf[_0x38d6('0xa')]:_0x4cefd0[_0x38d6('0x4c')]!=_0x55f0bf['level']?_0x4cefd0[_0x38d6('0x4c')]-_0x55f0bf[_0x38d6('0x4c')]:_0x4cefd0[_0x38d6('0xde')]!=_0x55f0bf[_0x38d6('0xde')]?_0x55f0bf['distance']-_0x4cefd0[_0x38d6('0xde')]:!!_0x4cefd0[_0x38d6('0x37')]!=!!_0x55f0bf[_0x38d6('0x37')]?-0x1==_0x4cefd0[_0x38d6('0xa')]||0x0==_0x4cefd0[_0x38d6('0xa')]?_0x4cefd0[_0x38d6('0x37')]?-0x1:0x1:_0x4cefd0[_0x38d6('0x37')]?0x1:-0x1:_0x4cefd0[_0x38d6('0x80')]-_0x55f0bf['index']),{'commonTape':_0x11ea9f,'iEnd':_0x218131,'jEnd':_0x113158};function _0x195dc5(_0x1b5283,_0x2e8b63,_0x15e744){let _0x5d9db9=-0x1,_0x363494=Number['POSITIVE_INFINITY'],_0x5bbfc3=!0x0;for(let _0xfb0201=_0x2e8b63;_0xfb0201<_0x15e744;_0xfb0201++)if(_0x58a146[_0x38d6('0xd8')](_0x1b5283[_0xfb0201][_0x38d6('0x1')])||(_0x5bbfc3=!0x1),_0x1b5283[_0xfb0201][_0x38d6('0x1')][_0x38d6('0x74')]<_0x2e8b63&&(_0x5d9db9=_0xfb0201),_0x1b5283[_0xfb0201][_0x38d6('0x1')]['endIndex']>=_0x15e744){_0x363494=_0xfb0201;break;}_0x5bbfc3&&(_0x5d9db9=_0x15e744-0x1);for(let _0x5407e3=_0x2e8b63;_0x5407e3<_0x15e744;_0x5407e3++)_0x1b5283[_0x5407e3][_0x38d6('0xa')]=_0x5407e3<=_0x5d9db9?-0x1:_0x5407e3<_0x363494?0x0:0x1,_0x1b5283[_0x5407e3][_0x38d6('0x80')]=_0x5407e3;let _0x3fcf64=0x0;for(let _0x1a5d87=_0x2e8b63;_0x1a5d87<=_0x5d9db9;_0x1a5d87++)0x0==_0x1b5283[_0x1a5d87][_0x38d6('0xde')]?_0x1b5283[_0x1a5d87][_0x38d6('0x4c')]=_0x3fcf64:(_0x3fcf64++,_0x1b5283[_0x1a5d87][_0x38d6('0x4c')]=_0x3fcf64,_0x3fcf64++);for(let _0x20ce72=_0x2e8b63;_0x20ce72<_0x15e744;_0x20ce72++)0x0==_0x1b5283[_0x20ce72][_0x38d6('0xa')]&&(_0x1b5283[_0x20ce72]['level']=_0x3fcf64);_0x3fcf64=0x0;for(let _0x284566=_0x15e744-0x1;_0x284566>=_0x363494;_0x284566--)0x0==_0x1b5283[_0x284566]['distance']?_0x1b5283[_0x284566]['level']=_0x3fcf64:(_0x3fcf64--,_0x1b5283[_0x284566][_0x38d6('0x4c')]=_0x3fcf64,_0x3fcf64--);}}[_0x38d6('0xa2')](_0xe43d32){const _0x585d4e=new Map(),_0x2ede09=this['editor']['model'][_0x38d6('0x90')];for(let _0x506971=0x1;_0x506971<_0xe43d32[_0x38d6('0xec')];_0x506971++){let _0x1957ea,_0x31d8a6,_0x43bd26;const _0x3eb691=_0xe43d32[_0x506971],_0x23207c=_0xe43d32[_0x506971-0x1];if('text'==_0x3eb691[_0x38d6('0x26')])continue;if(_0x3eb691[_0x38d6('0x26')]!=_0x23207c[_0x38d6('0x26')])continue;if(!_0x2ede09[_0x38d6('0x14')](_0x23207c[_0x38d6('0x1')])||_0x2ede09['isLimit'](_0x23207c[_0x38d6('0x1')]))continue;if(!_0x2ede09[_0x38d6('0x14')](_0x3eb691[_0x38d6('0x1')])||_0x2ede09[_0x38d6('0x11f')](_0x3eb691['item']))continue;if((_0xe43d32[_0x506971][_0x38d6('0x37')]||_0xe43d32[_0x506971][_0x38d6('0x7d')])&&_0xe43d32[_0x506971-0x1]['isRemoved'])_0x1957ea=_0xe43d32[_0x506971],_0x31d8a6=_0xe43d32[_0x506971-0x1],_0x43bd26=_0x506971-0x1;else{if(!_0xe43d32[_0x506971][_0x38d6('0x11')]||!_0xe43d32[_0x506971-0x1][_0x38d6('0x37')]&&!_0xe43d32[_0x506971-0x1][_0x38d6('0x7d')])continue;_0x1957ea=_0xe43d32[_0x506971-0x1],_0x31d8a6=_0xe43d32[_0x506971],_0x43bd26=_0x506971;}const _0x229b1c=_0x1957ea[_0x38d6('0x4c')]==_0x31d8a6[_0x38d6('0x4c')],_0x15692d=Math[_0x38d6('0xcd')](_0x1957ea[_0x38d6('0x4c')])<Math[_0x38d6('0xcd')](_0x31d8a6[_0x38d6('0x4c')])&&0x0==_0x31d8a6[_0x38d6('0xde')];(_0x229b1c||_0x15692d)&&(_0x585d4e[_0x38d6('0x6c')](_0x31d8a6['id'],_0x1957ea['id']),_0xe43d32[_0x38d6('0xe8')](_0x43bd26,0x1),_0x506971--,_0x1957ea[_0x38d6('0x37')]=!0x1);}for(let _0x1c7749=0x0;_0x1c7749<_0xe43d32['length'];_0x1c7749++)_0x585d4e[_0x38d6('0x114')](_0xe43d32[_0x1c7749]['pairId'])&&(_0xe43d32[_0x1c7749][_0x38d6('0x12')]=_0x585d4e['get'](_0xe43d32[_0x1c7749][_0x38d6('0x12')]));}[_0x38d6('0x23')](_0x5ed5a8){const _0x5ab91e=new Set(_0x5ed5a8[_0x38d6('0x113')](_0x4b98ce=>_0x4b98ce['id']));for(let _0x4cf114=0x0;_0x4cf114<_0x5ed5a8[_0x38d6('0xec')];_0x4cf114++)_0x5ab91e[_0x38d6('0x114')](_0x5ed5a8[_0x4cf114][_0x38d6('0x12')])||0x0==_0x5ed5a8[_0x4cf114][_0x38d6('0xde')]||(_0x5ed5a8[_0x4cf114]['isIncorrect']=!0x0);return _0x5ed5a8['filter'](_0x559575=>!_0x559575[_0x38d6('0xe0')]);}['_markMismatchedRemovedTags'](_0x217abc){const _0x38febd=new Set();for(let _0x512ba3=0x0;_0x512ba3<_0x217abc[_0x38d6('0xec')];_0x512ba3++){if(_0x38febd[_0x38d6('0x114')](_0x217abc[_0x512ba3]['id'])&&_0x217abc[_0x512ba3]['isRemoved']&&(_0x217abc[_0x512ba3][_0x38d6('0xe0')]=!0x0),_0x217abc[_0x512ba3][_0x38d6('0xe0')])continue;if(0x0==_0x217abc[_0x512ba3][_0x38d6('0xde')])continue;if('elementStart'!=_0x217abc[_0x512ba3][_0x38d6('0x26')])continue;if(null==_0x217abc[_0x512ba3][_0x38d6('0x12')])continue;let _0x5a8602=_0x512ba3+0x1,_0x2b63ad=0x0;for(;_0x217abc[_0x5a8602]['id']!=_0x217abc[_0x512ba3][_0x38d6('0x12')];)'elementStart'==_0x217abc[_0x5a8602][_0x38d6('0x26')]?_0x2b63ad++:_0x38d6('0x59')==_0x217abc[_0x5a8602][_0x38d6('0x26')]&&_0x2b63ad--,_0x5a8602++;if(0x0!=_0x2b63ad){if(_0x217abc[_0x512ba3][_0x38d6('0x11')])_0x217abc[_0x512ba3][_0x38d6('0xe0')]=!0x0;else for(;_0x5a8602!=_0x512ba3;)_0x217abc[_0x5a8602][_0x38d6('0x11')]&&0x0!=_0x217abc[_0x5a8602][_0x38d6('0xde')]&&(_0x217abc[_0x5a8602][_0x38d6('0xe0')]=!0x0,_0x38febd['add'](_0x217abc[_0x5a8602][_0x38d6('0x12')])),_0x5a8602--;}}return _0x217abc[_0x38d6('0x9d')](_0xeb95e8=>!_0xeb95e8[_0x38d6('0xe0')]);}[_0x38d6('0x94')](_0x5ae6c1){const _0x33ae9f=this['editor'][_0x38d6('0x55')]['schema'];for(let _0x49a806=0x0;_0x49a806<_0x5ae6c1[_0x38d6('0xec')];_0x49a806++){if(!(_0x5ae6c1[_0x49a806][_0x38d6('0x37')]||_0x5ae6c1[_0x49a806][_0x38d6('0x7d')]||_0x5ae6c1[_0x49a806][_0x38d6('0x11')]||_0x5ae6c1[_0x49a806]['isRemoveSuggestion']))continue;if(0x0==_0x5ae6c1[_0x49a806]['distance'])continue;const _0x4e3c27=_0x5ae6c1[_0x49a806][_0x38d6('0x1')];_0x33ae9f[_0x38d6('0x14')](_0x4e3c27)||_0x33ae9f[_0x38d6('0x11f')](_0x4e3c27)||(_0x5ae6c1[_0x49a806][_0x38d6('0x37')]&&delete _0x5ae6c1[_0x49a806][_0x38d6('0x37')],_0x5ae6c1[_0x49a806]['isAddSuggestion']&&delete _0x5ae6c1[_0x49a806][_0x38d6('0x7d')],_0x5ae6c1[_0x49a806][_0x38d6('0x1f')]&&delete _0x5ae6c1[_0x49a806]['isRemoveSuggestion'],_0x5ae6c1[_0x49a806][_0x38d6('0x11')]&&(_0x5ae6c1[_0x49a806][_0x38d6('0xe0')]=!0x0));}return _0x5ae6c1['filter'](_0x128fe3=>!_0x128fe3[_0x38d6('0xe0')]);}[_0x38d6('0x38')](_0x4b9e4b,_0x222cc9,_0xcb0a83){const _0x11475c=new _0x138eb4(),_0x291790=[],_0x592244=new Map(),_0x199c7a=this[_0x38d6('0xc6')]['model'],_0x2bd1cd=_0x199c7a[_0x38d6('0x90')],_0x4aa793=[_0x11475c],_0x1af3e1={},_0x377c27={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1ca0fb=null;const _0x391ddb=[0x0];for(let _0x2e5989=0x0;_0x2e5989<_0x4b9e4b[_0x38d6('0xec')];_0x2e5989++){let _0x52bb7a,_0x4d4009;if(_0x38d6('0x93')===_0x4b9e4b[_0x2e5989][_0x38d6('0x26')]){_0x52bb7a=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb);const _0x2af1cf=new _0xe8e4b0(_0x4b9e4b[_0x2e5989][_0x38d6('0x1')][_0x38d6('0x1e')],_0x4b9e4b[_0x2e5989]['item'][_0x38d6('0x9f')]());_0x4aa793[0x0]['_appendChild'](_0x2af1cf),_0x391ddb[_0x38d6('0x73')](0x0),_0x4aa793[_0x38d6('0x84')](_0x2af1cf),_0x4d4009=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x1ca0fb=null;}else{if('elementEnd'===_0x4b9e4b[_0x2e5989]['type'])_0x4aa793[_0x38d6('0x10a')](),_0x52bb7a=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x391ddb['pop'](),_0x391ddb[_0x391ddb[_0x38d6('0xec')]-0x1]++,_0x4d4009=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x1ca0fb=null;else{if(_0x52bb7a=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x1ca0fb&&_0x579b89(_0x1ca0fb,_0x4b9e4b[_0x2e5989][_0x38d6('0x1')]))_0x1ca0fb['_data']+=_0x4b9e4b[_0x2e5989][_0x38d6('0x1')]['data'];else{const _0x608c77=new _0x56afd7(_0x4b9e4b[_0x2e5989]['item'][_0x38d6('0xd7')],_0x4b9e4b[_0x2e5989][_0x38d6('0x1')]['getAttributes']());_0x4aa793[0x0][_0x38d6('0x9e')](_0x608c77),_0x1ca0fb=_0x608c77;}_0x391ddb[_0x391ddb[_0x38d6('0xec')]-0x1]+=_0x4b9e4b[_0x2e5989][_0x38d6('0x1')][_0x38d6('0x60')],_0x4d4009=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb);}}for(const _0x185a3a of _0x4b9e4b[_0x2e5989][_0x38d6('0x32')])_0x592244[_0x38d6('0x6c')](_0x185a3a,{'start':_0x52bb7a,'end':null});_0x13d833(_0x38d6('0x1f'),_0x2e5989,_0x52bb7a,_0x4d4009),_0x13d833(_0x38d6('0x7d'),_0x2e5989,_0x52bb7a,_0x4d4009),_0x13d833(_0x38d6('0x11'),_0x2e5989,_0x52bb7a,_0x4d4009),_0x13d833(_0x38d6('0x37'),_0x2e5989,_0x52bb7a,_0x4d4009);for(const _0x2a1b11 of _0x4b9e4b[_0x2e5989][_0x38d6('0x89')]){_0x592244[_0x38d6('0x123')](_0x2a1b11)[_0x38d6('0x67')]=_0x4d4009;}}for(const [_0x133151,_0x2c8426]of _0x592244){const _0x26e7d7=this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0xab')](_0x2c8426[_0x38d6('0x22')],_0x2c8426['end']);_0x11475c[_0x38d6('0x3a')]['set'](_0x133151,_0x26e7d7);}return _0x291790['sort']((_0x294d4b,_0x43836e)=>{const _0x45aa5c=_0x11475c['markers']['get'](_0x38d6('0xa0')+_0x294d4b['id']),_0xb51bd2=_0x11475c[_0x38d6('0x3a')][_0x38d6('0x123')]('revision:'+_0x43836e['id']);return _0x45aa5c[_0x38d6('0x22')][_0x38d6('0x1c')](_0xb51bd2[_0x38d6('0x22')])?-0x1:_0x45aa5c['start']['isAfter'](_0xb51bd2[_0x38d6('0x22')])?0x1:_0x45aa5c[_0x38d6('0x67')][_0x38d6('0x1c')](_0xb51bd2[_0x38d6('0x67')])?-0x1:_0x45aa5c['end']['isAfter'](_0xb51bd2[_0x38d6('0x67')])?0x1:_0x38d6('0x4')===_0x294d4b[_0x38d6('0x26')]?-0x1:0x1;}),{'root':_0x11475c,'changes':_0x291790};function _0x13d833(_0x2a3277,_0x37fda0,_0x3e4c5f,_0x295eeb){const _0x558100=!!_0x4b9e4b[_0x37fda0][_0x2a3277],_0xef78a0=_0x558100?_0x4b9e4b[_0x37fda0][_0x2a3277][_0x38d6('0x124')]:null,_0xc7a8b1=_0x37fda0===_0x4b9e4b[_0x38d6('0xec')]-0x1,_0xa6bd77=_0x377c27[_0x2a3277][0x0],_0x5592af=_0x2bd1cd[_0x38d6('0xe4')](_0x4b9e4b[_0x37fda0][_0x38d6('0x1')]);!_0x1af3e1[_0x2a3277]&&_0x558100?_0x1af3e1[_0x2a3277]={'start':_0x3e4c5f,'tapeItem':_0x4b9e4b[_0x37fda0],'userId':_0xef78a0,'type':_0x2a3277}:_0x1af3e1[_0x2a3277]&&!_0x558100?(_0x1af3e1[_0x2a3277][_0x38d6('0x67')]=_0x3e4c5f,_0x6c5c39(_0x1af3e1[_0x2a3277]),_0x1af3e1[_0x2a3277]=null):_0x1af3e1[_0x2a3277]&&_0x558100&&_0x1af3e1[_0x2a3277]['userId']!==_0xef78a0&&(_0x1af3e1[_0x2a3277][_0x38d6('0x67')]=_0x3e4c5f,_0xa6bd77&&_0xa6bd77[_0x38d6('0x124')]===_0x1af3e1[_0x2a3277]['userId']||_0x6c5c39(_0x1af3e1[_0x2a3277]),_0x1af3e1[_0x2a3277]={'start':_0x3e4c5f,'tapeItem':_0x4b9e4b[_0x37fda0],'userId':_0xef78a0,'type':_0x2a3277}),_0x1af3e1[_0x2a3277]&&_0x5592af&&(_0x38d6('0x93')!==_0x4b9e4b[_0x37fda0][_0x38d6('0x26')]||_0xa6bd77&&_0xa6bd77['userId']===_0xef78a0||_0x377c27[_0x2a3277][_0x38d6('0x84')]({'userId':_0xef78a0,'object':_0x4b9e4b[_0x37fda0]['item'],'change':_0x1af3e1[_0x2a3277]}),_0x38d6('0x59')===_0x4b9e4b[_0x37fda0][_0x38d6('0x26')]&&_0xa6bd77&&_0xa6bd77[_0x38d6('0xa3')]===_0x4b9e4b[_0x37fda0][_0x38d6('0x1')]&&(_0x377c27[_0x2a3277][_0x38d6('0x10a')](),_0x1af3e1[_0x2a3277]=_0xa6bd77[_0x38d6('0x12b')])),_0x1af3e1[_0x2a3277]&&_0xc7a8b1&&(_0x1af3e1[_0x2a3277]['end']=_0x295eeb,_0x6c5c39(_0x1af3e1[_0x2a3277]),_0x1af3e1[_0x2a3277]=null);}function _0x6c5c39({start:_0xb0df54,end:_0x482603,tapeItem:_0x5a49bb,userId:_0x5c3dd8,type:_0x3c4c55}){const _0x547172=_0x5a49bb[_0x38d6('0x1')],_0x30e169=_0x199c7a[_0x38d6('0x90')]['isBlock'](_0x547172)&&!_0x199c7a[_0x38d6('0x90')]['isLimit'](_0x547172),_0x278d89=_0xb0df54['nodeAfter']==_0x482603['parent']&&_0x482603['isAtStart'];if(_0x30e169&&_0x278d89)return;const _0x381289=_0x199c7a['createRange'](_0xb0df54,_0x482603),_0x2cf9c4=_0x222cc9[_0x38d6('0x123')](_0x5c3dd8),_0x388227=new _0x1006d4({'author':_0x2cf9c4,'type':_0x38d6('0x37')==_0x3c4c55||_0x38d6('0x7d')==_0x3c4c55?'add':_0x38d6('0xa6'),'data':{'isSuggestion':_0x38d6('0x7d')==_0x3c4c55||_0x38d6('0x1f')==_0x3c4c55},'createdAt':new Date(),'rootName':_0xcb0a83});_0x291790[_0x38d6('0x73')](_0x388227),_0x11475c[_0x38d6('0x3a')]['set'](_0x38d6('0xa0')+_0x388227['id'],_0x381289);}function _0x579b89(_0x4ff532,_0x5cffe6){const _0x5c440c=_0x4ff532[_0x38d6('0x9f')](),_0x181a55=_0x5cffe6[_0x38d6('0x9f')]();for(const _0x3f5bdc of _0x5c440c){if(_0x3f5bdc[0x1]!==_0x5cffe6[_0x38d6('0x63')](_0x3f5bdc[0x0]))return!0x1;_0x181a55[_0x38d6('0x11d')]();}return _0x181a55['next']()[_0x38d6('0x109')];}}['_setConversion'](){this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0xe3'))['dataToMarker']({'view':'revision'}),this['editor'][_0x38d6('0xfd')][_0x38d6('0x8')]('editingDowncast')['markerToHighlight']({'model':_0x38d6('0x50'),'view':_0x38aebf=>{const _0x540a42=_0x38aebf[_0x38d6('0x62')]['split'](':')[0x1],_0x1ec958=this[_0x38d6('0xfb')](_0x540a42);if(!_0x1ec958)return null;const _0x442123='add'==_0x1ec958['type']?_0x38d6('0xb9'):'deletion',_0x3956bd=[_0x38d6('0x104'),'ck-suggestion-marker-'+_0x442123];return _0x1ec958[_0x38d6('0xd7')][_0x38d6('0x126')]&&_0x3956bd[_0x38d6('0x73')](_0x38d6('0x19')+_0x442123+'-new'),this[_0x38d6('0xf4')]==_0x1ec958&&_0x3956bd[_0x38d6('0x73')]('ck-suggestion-marker--active'),{'classes':_0x3956bd,'attributes':{'data-change-id':_0x540a42}};}}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')]('upcast')[_0x38d6('0x4')](_0x37ee22=>{_0x37ee22['on'](_0x38d6('0x71'),(_0x2e3c3a,_0x56a25f,_0x205a86)=>{const _0xea07d3=_0x56a25f['viewItem'][_0x38d6('0x12a')](0x0);if(!_0xea07d3||!_0xea07d3['is'](_0x38d6('0xf7'),_0x38d6('0x61')))return;if(!_0x205a86[_0x38d6('0xf8')][_0x38d6('0xc1')](_0xea07d3,{'attributes':[_0x38d6('0xe1'),_0x38d6('0xcc')]}))return;const _0x39cad9=_0x56a25f['modelRange']['start']['nodeAfter'];_0x205a86[_0x38d6('0x36')]['setAttribute'](_0x38d6('0xe1'),_0xea07d3['getAttribute'](_0x38d6('0xe1')),_0x39cad9),_0x205a86[_0x38d6('0x36')][_0x38d6('0xdb')](_0x38d6('0xcc'),_0xea07d3[_0x38d6('0x63')](_0x38d6('0xcc')),_0x39cad9);},{'priority':_0x38d6('0x4d')});}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')]('upcast')[_0x38d6('0x4')](_0x5cf491=>{_0x5cf491['on'](_0x38d6('0xf7'),(_0x42f8ba,_0x4d67c7,_0x1284d6)=>{if(!_0x1284d6[_0x38d6('0xf8')][_0x38d6('0xc1')](_0x4d67c7['viewItem'],{'attributes':[_0x38d6('0xe1'),_0x38d6('0xcc')]}))return;if(_0x4d67c7[_0x38d6('0x102')][_0x38d6('0x47')])return;const _0x536e62=_0x4d67c7[_0x38d6('0x102')][_0x38d6('0x22')][_0x38d6('0xd9')];_0x536e62[_0x38d6('0xee')]('vid_start')||_0x536e62[_0x38d6('0xee')](_0x38d6('0x24'))||(_0x1284d6[_0x38d6('0x36')][_0x38d6('0xdb')](_0x38d6('0xe1'),_0x4d67c7[_0x38d6('0x128')][_0x38d6('0x63')](_0x38d6('0xe1')),_0x536e62),_0x1284d6[_0x38d6('0x36')]['setAttribute'](_0x38d6('0xcc'),_0x4d67c7['viewItem'][_0x38d6('0x63')](_0x38d6('0xcc')),_0x536e62));},{'priority':_0x38d6('0x4d')});}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0xe3'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xf5f2c4=>_0xf5f2c4[_0x38d6('0x63')]('vid')}}),this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x90')]['on']('checkAttribute',(_0x5b3eee,[,_0x435a58])=>{[_0x38d6('0xe1'),_0x38d6('0xcc'),_0x38d6('0x24')][_0x38d6('0x70')](_0x435a58)&&(_0x5b3eee[_0x38d6('0xcf')]=!0x0,_0x5b3eee[_0x38d6('0x20')]());},{'priority':_0x38d6('0xe6')}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0x98'))[_0x38d6('0x4')](_0x5719df=>{_0x5719df['on'](_0x38d6('0x9a'),(_0x1fdb9d,_0x1f03ce,_0x542326)=>{if('\x20'!=_0x1f03ce[_0x38d6('0x1')]['data']||_0x1f03ce[_0x38d6('0x1')]['parent'][_0x38d6('0xda')]>0x1)return;if(!_0x542326[_0x38d6('0xf8')][_0x38d6('0xc1')](_0x1f03ce[_0x38d6('0x1')],_0x1fdb9d[_0x38d6('0x1e')]))return;const _0x4ab97a=_0x542326[_0x38d6('0x36')],_0x469c80=_0x542326[_0x38d6('0x2a')][_0x38d6('0xea')](_0x1f03ce[_0x38d6('0xb8')]);_0x4ab97a[_0x38d6('0x34')](_0x469c80,_0x4ab97a[_0x38d6('0x125')](_0x38d6('0x86')));});}),this['editor'][_0x38d6('0xfd')]['for'](_0x38d6('0x98'))[_0x38d6('0x11b')]({'model':_0x38d6('0x50')}),this['editor']['editing'][_0x38d6('0x6a')]['on'](_0x38d6('0xcb'),function(_0x26b20d){const _0x53ccee=_0x26b20d[_0x38d6('0x11c')][_0x38d6('0x123')](_0x38d6('0xc9'));return(_0x1282d1,_0x43d5fb,_0x2a632e)=>{const _0x525d45=_0x43d5fb[_0x38d6('0x62')][_0x38d6('0x7e')](':')[0x1],_0x2edd82=_0x53ccee[_0x38d6('0xfb')](_0x525d45);if(!_0x2edd82)return null;const _0x533e4c=_0x38d6('0x4')==_0x2edd82[_0x38d6('0x26')]?_0x38d6('0x7e'):_0x38d6('0x7');if(!_0x2a632e[_0x38d6('0xf8')][_0x38d6('0x8c')](_0x43d5fb[_0x38d6('0xd')],_0x1282d1[_0x38d6('0x1e')]))return;const _0x5b4b61=_0x43d5fb[_0x38d6('0xd')]['getWalker'](),_0x19f60b=_0x43d5fb[_0x38d6('0xd')][_0x38d6('0x22')],_0x19ec3f=_0x26b20d[_0x38d6('0x55')]['schema'];let _0x1265b0=null,_0x471de9=null,_0x5b4068=!0x1,_0x147946=!0x1;for(const _0x50aa69 of _0x5b4b61){const _0xe44f3b=_0x50aa69['item'];_0x5b4068=_0x5b4068||_0x19ec3f[_0x38d6('0xf2')](_0xe44f3b);const _0x38a098=_0x2a632e[_0x38d6('0x2a')][_0x38d6('0x27')](_0xe44f3b);if(_0x38a098&&_0x38a098[_0x38d6('0xe')](_0x38d6('0x64')))return;_0x38d6('0x59')==_0x50aa69[_0x38d6('0x26')]&&(_0x19ec3f[_0x38d6('0x14')](_0xe44f3b)&&!_0x19ec3f[_0x38d6('0x11f')](_0xe44f3b)&&(_0xe44f3b[_0x38d6('0x30')]||_0x19f60b[_0x38d6('0xdf')]?_0x1265b0&&_0x1265b0['parent']==_0xe44f3b||(_0x1265b0=_0xe44f3b,_0x795fae(_0x50aa69['previousPosition']),_0x147946=!0x0):_0x471de9=_0x471de9||_0x50aa69[_0x38d6('0xaf')]));}function _0x795fae(_0x16752c){const _0x498b4f=_0x2a632e['writer'][_0x38d6('0x5a')](_0x38d6('0x86'),{'class':_0x38d6('0x19')+_0x533e4c}),_0x4a71b2=_0x2a632e['mapper'][_0x38d6('0xbe')](_0x16752c);_0x2edd82[_0x38d6('0xd7')]['isSuggestion']&&_0x2a632e[_0x38d6('0x36')]['addClass'](_0x38d6('0x19')+_0x533e4c+_0x38d6('0xc4'),_0x498b4f),_0x53ccee[_0x38d6('0xf4')]==_0x2edd82&&_0x2a632e['writer'][_0x38d6('0xf5')](_0x38d6('0x115'),_0x498b4f),_0x2a632e[_0x38d6('0x36')][_0x38d6('0x120')](_0x4a71b2,_0x498b4f),_0x2a632e[_0x38d6('0x2a')]['bindElementToMarker'](_0x498b4f,_0x43d5fb[_0x38d6('0x62')]);}_0x5b4068||_0x147946||!_0x471de9||_0x795fae(_0x471de9);};}(this[_0x38d6('0xc6')]),{'priority':_0x38d6('0x8f')}),this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0xac'),(_0x3b33b0,_0xd1b889,_0x3132c0)=>{const _0x57470e=_0x3132c0['mapper'][_0x38d6('0x103')](_0xd1b889[_0x38d6('0x62')]);if(_0x57470e)for(const _0x49bed4 of _0x57470e)(_0x49bed4[_0x38d6('0x54')](_0x38d6('0x118'))||_0x49bed4['hasClass'](_0x38d6('0x5b')))&&(_0x3132c0[_0x38d6('0x2a')][_0x38d6('0xf6')](_0x49bed4,_0xd1b889[_0x38d6('0x62')]),_0x3132c0[_0x38d6('0x36')][_0x38d6('0xa6')](_0x49bed4));},{'priority':_0x38d6('0x8f')}),this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0xcb'),(_0x2cf62e,_0x4b33a7,_0x54f488)=>{const _0x28ea2f=_0x4b33a7[_0x38d6('0x62')][_0x38d6('0x7e')](':')[0x1],_0x211f31=this['_getChangeFromId'](_0x28ea2f);if(!_0x211f31)return null;const _0x594e5b=_0x38d6('0x4')==_0x211f31[_0x38d6('0x26')]?_0x38d6('0x7e'):_0x38d6('0x7');if(_0x54f488['consumable']['test'](_0x4b33a7[_0x38d6('0xd')],_0x2cf62e[_0x38d6('0x1e')]))for(const _0x51e0f1 of _0x4b33a7[_0x38d6('0xd')][_0x38d6('0x6b')]()){if(!_0x51e0f1['is'](_0x38d6('0xf7'),'softBreak'))continue;const _0x48a309=_0x54f488[_0x38d6('0x36')][_0x38d6('0x5a')](_0x38d6('0x86'),{'class':_0x38d6('0x19')+_0x594e5b}),_0x36ee64=_0x54f488[_0x38d6('0x2a')][_0x38d6('0xbe')](this['editor'][_0x38d6('0x55')][_0x38d6('0x99')](_0x51e0f1));_0x211f31['data']['isSuggestion']&&_0x54f488[_0x38d6('0x36')][_0x38d6('0xf5')](_0x38d6('0x19')+_0x594e5b+'-new',_0x48a309),this[_0x38d6('0xf4')]==_0x211f31&&_0x54f488[_0x38d6('0x36')]['addClass']('ck-suggestion-marker--active',_0x48a309),_0x54f488[_0x38d6('0x36')][_0x38d6('0x120')](_0x36ee64,_0x48a309),_0x54f488[_0x38d6('0x2a')][_0x38d6('0x81')](_0x48a309,_0x4b33a7['markerName']);}},{'priority':_0x38d6('0x8f')}),this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')]['on']('change',()=>{this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x12b')](_0x55f9f0=>{for(const _0x1644dd of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')][_0x38d6('0x88')]()){const _0x35c830=this[_0x38d6('0xc6')][_0x38d6('0x55')]['document'][_0x38d6('0xeb')](_0x1644dd),_0x4b6ffd=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x25')][_0x38d6('0xeb')](_0x1644dd);if(_0x4b6ffd){const _0x74cf2c=_0x35c830['getAttribute'](_0x38d6('0x3b'));if(_0x55f9f0['removeAttribute'](_0x38d6('0x85'),_0x4b6ffd),_0x55f9f0[_0x38d6('0x10e')](_0x38d6('0xed'),_0x4b6ffd),_0x55f9f0[_0x38d6('0x10e')](_0x38d6('0x33'),_0x4b6ffd),_0x55f9f0[_0x38d6('0x10e')](_0x38d6('0x58'),_0x4b6ffd),_0x74cf2c){const _0x10f4e5=this[_0x38d6('0xfb')](_0x74cf2c);if(!_0x10f4e5)return null;_0x55f9f0[_0x38d6('0xdb')](_0x38d6('0x85'),_0x74cf2c,_0x4b6ffd),_0x55f9f0[_0x38d6('0xf5')](_0x38d6('0x3d')+_0x10f4e5[_0x38d6('0x26')],_0x4b6ffd),this[_0x38d6('0xf4')]==_0x10f4e5&&_0x55f9f0[_0x38d6('0xf5')]('ck-revision-history-root--active',_0x4b6ffd);}}}});}),this[_0x38d6('0xc6')][_0x38d6('0xfd')]['for'](_0x38d6('0xe3'))[_0x38d6('0x119')]({'view':_0x38d6('0x21'),'model':_0x16fc8c=>_0x38d6('0x49')+_0x16fc8c,'converterPriority':_0x38d6('0xe6')}),this[_0x38d6('0xc6')][_0x38d6('0xfd')]['for'](_0x38d6('0xe3'))[_0x38d6('0x119')]({'view':_0x38d6('0x108'),'model':_0x355a61=>_0x38d6('0x83')+_0x355a61,'converterPriority':_0x38d6('0xe6')}),this['editor']['conversion'][_0x38d6('0x8')](_0x38d6('0x98'))[_0x38d6('0x11b')]({'model':_0x38d6('0x105'),'view':_0x43ac4e=>({'name':_0x38d6('0xa9')+_0x43ac4e,'group':_0x38d6('0x105')}),'converterPriority':_0x38d6('0xe6')}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0xf0'))['markerToHighlight']({'model':_0x38d6('0x105'),'view':_0x92f050=>{const _0x355f15=_0x92f050['markerName'][_0x38d6('0x7e')](':')[0x1];return'insertion'!=_0x355f15&&_0x38d6('0x40')!=_0x355f15?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x355f15]};}}),this['editor'][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0x76'),et(this[_0x38d6('0xc6')],_0x38d6('0x7')),{'priority':'high'}),this['editor'][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0xfa'),et(this[_0x38d6('0xc6')],_0x38d6('0x7e')),{'priority':'high'}),this['editor'][_0x38d6('0xca')][_0x38d6('0x6a')]['on']('removeMarker:revision-suggestion',(_0x418a24,_0x2abfe0,_0x279ccc)=>{const _0x41000b=_0x279ccc[_0x38d6('0x2a')][_0x38d6('0x103')](_0x2abfe0['markerName']);if(_0x41000b)for(const _0x34c3a7 of _0x41000b)_0x34c3a7['is'](_0x38d6('0xb6'))&&(_0x279ccc[_0x38d6('0x2a')]['unbindElementFromMarkerName'](_0x34c3a7,_0x2abfe0[_0x38d6('0x62')]),_0x279ccc[_0x38d6('0x36')][_0x38d6('0xa6')](_0x34c3a7));},{'priority':'high'});}[_0x38d6('0xfb')](_0x10fd3e){return this[_0x38d6('0x3e')][_0x38d6('0x123')](_0x10fd3e);}[_0x38d6('0xd0')](_0x3987a1){return this['_changeView']&&this[_0x38d6('0x116')][_0x38d6('0xd6')](),this[_0x38d6('0x116')]=new _0x9942fd(this[_0x38d6('0xc6')][_0x38d6('0x8e')],_0x3987a1),this[_0x38d6('0x116')];}[_0x38d6('0x5f')](){this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')][_0x38d6('0xef')][_0x38d6('0x106')](_0x38d6('0x50')),this['on'](_0x38d6('0x1a'),(_0x37b1b2,_0x6ee4c2,_0x5a150b,_0x310736)=>{_0x310736&&this[_0x38d6('0x10f')][_0x38d6('0xa6')](_0x310736),_0x5a150b&&(this[_0x38d6('0x10f')][_0x38d6('0x4')]({'view':_0x5a150b,'stackId':_0x38d6('0x68'),'position':{'target':()=>{const _0x1637c6=this[_0x38d6('0xc6')][_0x38d6('0xca')],_0x1dc78e=this['_getChangeFromId'](_0x5a150b[_0x38d6('0xd5')]);let _0x48fce1;if(_0x1dc78e['data']['isOnRoot']){const _0x27a9e4=_0x1637c6['view'][_0x38d6('0x44')](_0x1dc78e[_0x38d6('0x72')]);_0x48fce1=Array[_0x38d6('0xc3')](_0x27a9e4[_0x38d6('0x4e')]());}else{const _0xb39524=this[_0x38d6('0xc6')]['model']['markers'][_0x38d6('0x123')](_0x38d6('0xa0')+_0x5a150b[_0x38d6('0xd5')]);_0x48fce1=Array[_0x38d6('0xc3')](_0x1637c6[_0x38d6('0x2a')][_0x38d6('0x103')](_0xb39524[_0x38d6('0x1e')]))[_0x38d6('0x113')](_0x45a6e3=>_0x1637c6[_0x38d6('0x9')][_0x38d6('0xe5')][_0x38d6('0xf9')](_0x45a6e3))['map'](_0x150be5=>Array[_0x38d6('0xc3')](_0x150be5[_0x38d6('0x4e')]()))[_0x38d6('0x2d')]();}if(!this[_0x38d6('0xb')])return _0x48fce1[0x0];return _0x48fce1[_0x38d6('0xd4')](_0x2e26d6=>_0x2e26d6['top']-0x3<=this[_0x38d6('0xb')]['y']&&_0x2e26d6[_0x38d6('0x48')]+0x3>=this[_0x38d6('0xb')]['y']&&_0x2e26d6[_0x38d6('0xf3')]-0x3<=this[_0x38d6('0xb')]['x']&&_0x2e26d6[_0x38d6('0xa5')]+0x3>=this[_0x38d6('0xb')]['x'])||_0x48fce1[0x0];}}}),this['_balloon'][_0x38d6('0xbd')](_0x38d6('0x68')));}),this['on'](_0x38d6('0x45'),(_0x4ddb6b,_0x620b7f,_0x403b28,_0xefbbdc)=>{this[_0x38d6('0xc2')]=_0x403b28?this[_0x38d6('0xd0')](_0x403b28):null,this['editor'][_0x38d6('0x55')][_0x38d6('0x12b')](()=>{const _0x3ad2bf=this['editor'][_0x38d6('0xca')];_0xefbbdc&&(_0xefbbdc[_0x38d6('0xd7')][_0x38d6('0x87')]?_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x12b')](_0x554b71=>{_0x554b71['removeClass'](_0x38d6('0x58'),_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x25')]['getRoot'](_0xefbbdc[_0x38d6('0x72')]));}):_0x3ad2bf[_0x38d6('0x9c')]('revision:'+_0xefbbdc['id'])),_0x403b28&&(_0x403b28[_0x38d6('0xd7')][_0x38d6('0x87')]?_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x12b')](_0x3450fc=>{_0x3450fc[_0x38d6('0xf5')]('ck-revision-history-root--active',_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x25')][_0x38d6('0xeb')](_0x403b28[_0x38d6('0x72')]));}):_0x3ad2bf[_0x38d6('0x9c')](_0x38d6('0xa0')+_0x403b28['id']));});}),this[_0x38d6('0x11e')](this['editor'][_0x38d6('0xca')][_0x38d6('0x9')]['document'],_0x38d6('0x1b'),(_0x42a98b,_0x486638)=>{if(this['activeChange'])return;const _0x22e919=this[_0x38d6('0x78')](_0x486638[_0x38d6('0x65')]),_0x2c8899=this['_changeIdToChange'][_0x38d6('0x123')](_0x22e919);_0x2c8899?(this[_0x38d6('0xb')]={'x':_0x486638[_0x38d6('0x57')]['x'],'y':_0x486638[_0x38d6('0x57')]['y']},this[_0x38d6('0xc2')]=this['_getViewForChange'](_0x2c8899)):(this[_0x38d6('0xb')]=null,this[_0x38d6('0xc2')]=null);}),this[_0x38d6('0x11e')](this[_0x38d6('0xc6')]['editing'][_0x38d6('0x9')][_0x38d6('0x25')],_0x38d6('0x10b'),(_0x111499,_0x63275b)=>{const _0x248e5b=this['_findChangeIdFromDomTarget'](_0x63275b[_0x38d6('0x65')]),_0x3ad38d=this[_0x38d6('0x3e')][_0x38d6('0x123')](_0x248e5b);_0x3ad38d?(this[_0x38d6('0xb')]={'x':_0x63275b[_0x38d6('0x57')]['x'],'y':_0x63275b[_0x38d6('0x57')]['y']},_0x3ad38d===this[_0x38d6('0xf4')]?this[_0x38d6('0x10f')][_0x38d6('0x117')]():this[_0x38d6('0xf4')]=_0x3ad38d):(this['_activeViewTarget']=null,this[_0x38d6('0xf4')]=null);});}['_findChangeIdFromDomTarget'](_0x5dcb4a){do{const _0x1c513f=_0x5dcb4a[_0x38d6('0x63')]('data-change-id');if(_0x1c513f)return _0x1c513f;_0x5dcb4a=_0x5dcb4a[_0x38d6('0xc0')];}while(_0x5dcb4a);return null;}[_0x38d6('0x7b')](){this[_0x38d6('0xc6')]['model']['change'](_0x1407dc=>{for(const _0x1c599c of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x3a')])_0x1407dc[_0x38d6('0x5e')](_0x1c599c);});}}function et(_0x2bd9c9,_0x3806c6){return(_0x3f40e6,_0x34d700,_0x12bc2f)=>{if(!_0x12bc2f[_0x38d6('0xf8')][_0x38d6('0x8c')](_0x34d700[_0x38d6('0xd')],_0x3f40e6[_0x38d6('0x1e')]))return;const _0x5d9587=_0x34d700[_0x38d6('0xd')][_0x38d6('0x51')](),_0x5625b3=_0x34d700['markerRange'][_0x38d6('0x22')],_0x36455e=_0x2bd9c9[_0x38d6('0x55')][_0x38d6('0x90')];let _0x4d4b5f=null,_0x9b55d=null,_0x1aeae0=!0x1,_0xd5266=!0x1;for(const _0x2ee411 of _0x5d9587){const _0x1bd173=_0x2ee411[_0x38d6('0x1')];_0x1aeae0=_0x1aeae0||_0x36455e['isContent'](_0x1bd173);const _0x53a543=_0x12bc2f[_0x38d6('0x2a')]['toViewElement'](_0x1bd173);if(_0x53a543&&_0x53a543[_0x38d6('0xe')]('addHighlight'))return;'elementEnd'==_0x2ee411['type']&&(_0x36455e[_0x38d6('0x14')](_0x1bd173)&&!_0x36455e['isLimit'](_0x1bd173)&&(_0x1bd173[_0x38d6('0x30')]||_0x5625b3[_0x38d6('0xdf')]?_0x4d4b5f&&_0x4d4b5f[_0x38d6('0xc0')]==_0x1bd173||(_0x4d4b5f=_0x1bd173,_0x3bd1ac(_0x2ee411[_0x38d6('0xaf')]),_0xd5266=!0x0):_0x9b55d=_0x9b55d||_0x2ee411[_0x38d6('0xaf')]));}function _0x3bd1ac(_0x373da0){const _0x4deb5d=_0x12bc2f[_0x38d6('0x2a')][_0x38d6('0xbe')](_0x373da0),_0x2be293=_0x12bc2f[_0x38d6('0x36')]['createUIElement'](_0x38d6('0x86'),{'class':_0x38d6('0x5d')+_0x3806c6});_0x12bc2f[_0x38d6('0x36')][_0x38d6('0x120')](_0x4deb5d,_0x2be293),_0x12bc2f['mapper'][_0x38d6('0x81')](_0x2be293,_0x34d700['markerName']);}_0x1aeae0||_0xd5266||!_0x9b55d||_0x3bd1ac(_0x9b55d);};}export class RestoreRevisionCommand extends _0x54dece{constructor(_0x1b1d66){super(_0x1b1d66);const _0x51ab3a=_0x1b1d66[_0x38d6('0x11c')]['get'](d);this[_0x38d6('0x17')]=!0x1,this[_0x38d6('0x11e')](_0x51ab3a,_0x38d6('0xb7'),()=>this[_0x38d6('0x107')]()),this['listenTo'](_0x51ab3a,'change:isEnabled',()=>this[_0x38d6('0x107')]());}['execute'](){const _0x3079d0=this[_0x38d6('0xc6')],_0x366b25=_0x3079d0['plugins']['get'](d),_0xc03be6=_0x366b25[_0x38d6('0xdd')]?_0x366b25[_0x38d6('0xa7')]['newRevisionId']:null;_0x3079d0[_0x38d6('0x3')]['get']('revisionHistory')[_0x38d6('0xbf')](_0xc03be6);}[_0x38d6('0x107')](){const {isReady:_0x2f861a,isEnabled:_0x359cb2}=this['editor'][_0x38d6('0x11c')][_0x38d6('0x123')](d);this[_0x38d6('0x3c')]=_0x2f861a&&_0x359cb2;}}export class ShowChangeCommand extends _0x54dece{constructor(_0x415e16,{direction:_0x4488c1}){super(_0x415e16);const _0x2c5222=_0x415e16['plugins']['get'](d);this[_0x38d6('0x17')]=!0x1,this['_step']='forward'===_0x4488c1?0x1:-0x1,this['listenTo'](_0x2c5222,_0x38d6('0xb7'),()=>this['refresh']()),this[_0x38d6('0x11e')](_0x2c5222,_0x38d6('0xc5'),()=>this[_0x38d6('0x107')]()),this['listenTo'](_0x2c5222,_0x38d6('0x45'),()=>this[_0x38d6('0x107')]());}[_0x38d6('0x8a')](){const _0x50752e=this[_0x38d6('0xc6')],_0x358c72=_0x50752e[_0x38d6('0x11c')]['get'](d),{isNavigationMode:_0xce8d28,currentChangeNumber:_0x6a2785}=_0x358c72;let _0x3eeb48;if(_0x358c72[_0x38d6('0xf4')]=_0xce8d28?_0x358c72[_0x38d6('0xa7')][_0x38d6('0xae')][_0x38d6('0x123')](_0x6a2785+this[_0x38d6('0x28')]):_0x358c72[_0x38d6('0xa7')][_0x38d6('0xae')][_0x38d6('0xaa')],_0x358c72[_0x38d6('0xf4')]['data'][_0x38d6('0x87')])_0x3eeb48=_0x50752e['editing'][_0x38d6('0x9')][_0x38d6('0x44')](_0x358c72[_0x38d6('0xf4')][_0x38d6('0x72')]);else{const _0x400c8f=_0x50752e[_0x38d6('0x55')][_0x38d6('0x3a')][_0x38d6('0x123')](_0x38d6('0xa0')+_0x358c72[_0x38d6('0xf4')]['id']);_0x3eeb48=_0x57de97(_0x50752e[_0x38d6('0xca')],_0x400c8f);}_0x49236b({'target':_0x3eeb48,'viewportOffset':0x28});}[_0x38d6('0x107')](){const {isNavigationMode:_0x2c19ca,currentChangeNumber:_0x443242,numberOfChanges:_0x22bb87,isReady:_0x3df6fa,isEnabled:_0x22e618}=this[_0x38d6('0xc6')][_0x38d6('0x11c')][_0x38d6('0x123')](d);this[_0x38d6('0x3c')]=!!(_0x22e618&&_0x3df6fa&&_0x22bb87)&&(!_0x2c19ca||(0x1===this['_step']?_0x443242<_0x22bb87-0x1:_0x443242>0x0));}}
|
|
23
|
+
const _0x5f07=['_removeMissingPairs','editingDowncast','shift','first','startsWith','parent','enqueueChange','attributes','_changeView','authors','has','_getViewObj','top','_cleanUp','_balloon','sort','createUIElement','isEqual','_setConversion','editing','repository','domEvent','enableReadOnlyMode','listenTo','marked','ck-suggestion-marker--active','revision-suggestion:','consumable','isOnRoot','index','addRevisionData','get','_changeIdToChange','vid','newRevisionId','next','abs','children','ck-revision-history-root-add','revisionHistoryAttachChange','_makeModelFromViewString','showNextChange','isReady','_markMarkers','isBlock','getRevisionData','toViewElement','start','find','_appendChild','name','mousedown','_removeRevisionMarkers','_removeUnsupportedChanges','addHighlight','isRemoved','isEnabled','_update','collaboration.channelId','createRange','document','getAttribute','keys','error','isCollapsed','distance','getRoot','addMarker:revision','startIndex','highest','adapter','object','mapper','all','change:isEnabled','getCustomProperty','isAddSuggestion','unbindElementFromMarkerName','setAttribute','add','_getChangeFromId','_getViewForChange','forEach','revision-comment:','_markInsertions','addMarker:revision-suggestion:insertion','ck-editor__editable__overlay','revisionHistoryLabel','_makeTape','affectsData','return','left','merge','nextPosition','elementToAttribute','conversion','getRootNames','destroy','isAtEnd','loadRevisionData','markers','toViewPosition','slice','ck-revision-history-root--active','right','schema','insertions','isNavigationMode','markersEnd','nodeAfter','_threeWayMerge','removeMarker:revision-suggestion','wrap','addMarker:revision-suggestion:deletion','bind','markerToData','activeChange','removeMarker','deletions','createAttributeElement','length','_initInteractions','RevisionsRepository','change','userId','getClientRects','isAttached','map','getRevisionRootsAttributes','forward','includes','offsetSize','ck-suggestion-marker-split','upcast','indexOf','filter','_getDiff','_makeModelFromTape','compare','restoreRevision','low','writer','isBefore','_activeViewTarget','useFillerType','isAdded','from','ck-suggestion-marker-merge','revision-suggestion','_findChangeIdFromDomTarget','isAfter','data','item','_markSuggestions','revision-end','hasClass','unshift','changes','changeId','domConverter','previousPosition','uiElement','type','removeClass','WidgetToolbarRepository','element:pre','change:activeChange','push','createPositionFromPath','suggestion:','softBreak','view','downcastDispatcher','pluginName','maxOffset','stop','backward','refresh','getIndex','revision-viewer','nextSibling','_setDistance','diffData','target','deletion','isSuggestion','isContent','text','config','model','rootName','getAttributes','addClass','_markMismatchedRemovedTags','values','done','processor','elementEnd','attributesBefore','dataDowncast','consume','string','for','_data','test','toData','currentChangeNumber','showPreviousChange','-new','markerRange','revision','insertion','markerNameToElements','_cleanMarkers','_processTape','high','resolve','pairId','ck-suggestion-marker','clear','revisionHistory','markerName','element','span','isObject','addRevision','suggestion','addRoot','delete','isInline','level','revision-start','set','ck-revision-history-root-','concat','isLimit','reconvertMarker','modelRange','viewItem','isIncorrect','getChild','ck-suggestion-preview-marker-','toViewRange','default','execute','markersStart','bindElementToMarker','commands','end','parse','mouseover','endIndex','vid_start','insert','showStack','checkAttribute','_sortAndFilterDiffChanges','POSITIVE_INFINITY','getDomRoot','code','diff','_joinTapes','dataToMarker','split','revision:','attachChange','hasAttribute','catch','splice','_step','side','then','change:numberOfChanges','ck-suggestion-marker-','_fixObsoleteTags','vid_end','activeView','plugins','oldRevisionId','getWalker','getRevision','selection','remove','_getRevisionsRange','detachRoot','change:isReady','editor','isRemoveSuggestion','elementStart'];(function(_0x6699ca,_0x5f07f6){const _0x353037=function(_0x3e51a6){while(--_0x3e51a6){_0x6699ca['push'](_0x6699ca['shift']());}};_0x353037(++_0x5f07f6);}(_0x5f07,0x7e));const _0x3530=function(_0x6699ca,_0x5f07f6){_0x6699ca=_0x6699ca-0x0;let _0x353037=_0x5f07[_0x6699ca];return _0x353037;};import{Plugin as _0x5b0ff6,Command as _0x346961}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x11d83f}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x3957c4}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x4979a3,Element as _0x3a563a,Text as _0x2a94dd,ViewDocumentFragment as _0x51d369,ViewText as _0x1b9783,ViewElement as _0x5e509c,ViewContainerElement as _0x49720b,ViewAttributeElement as _0x548b55,ViewEmptyElement as _0x47abc2,ViewRawElement as _0x28e7ac,ViewUIElement as _0x1fab77}from'ckeditor5/src/engine.js';import{Users as _0x115596,getMarkerDomElement as _0x4630dd}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4de4eb from'./ui/revisionviewer/changedetailsview.js';import _0x32c6e4 from'./revisionsrepository.js';import _0x793295 from'./changeitem.js';import{default as _0x5ed6b5}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x370b3f}from'lodash-es';const tt={'c':_0x49720b,'a':_0x548b55,'e':_0x47abc2,'r':_0x28e7ac,'u':_0x1fab77};export default class d extends _0x5b0ff6{static get[_0x3530('0x2f')](){return'RevisionViewer';}static get['requires'](){return[_0x115596,_0x3957c4,_0x32c6e4];}constructor(_0x572bb1){super(_0x572bb1),this[_0x3530('0xb7')]=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](_0x3530('0x11d')),this[_0x3530('0x6a')](_0x3530('0x117'),null),this[_0x3530('0x6a')](_0x3530('0x96'),null),this['_activeViewTarget']=null,this[_0x3530('0x6a')](_0x3530('0x86'),null),this[_0x3530('0x6a')](_0x3530('0xcd'),!0x1),this['set'](_0x3530('0xdb'),!0x0),this['on'](_0x3530('0xed'),(_0x2f2e5a,_0x4f115a,_0x162a99)=>{this[_0x3530('0x117')]=null,this[_0x3530('0x96')]=null,this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['change'](_0x4f7ba3=>{for(const _0x4fc3d0 of this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document']['roots'])_0x162a99?_0x4f7ba3[_0x3530('0x25')](_0x3530('0xf9'),_0x4fc3d0):_0x4f7ba3[_0x3530('0x42')](_0x3530('0xf9'),_0x4fc3d0);});}),this[_0x3530('0x115')](_0x3530('0x10e'))['to'](this,_0x3530('0x117'),_0x2e731a=>null!==_0x2e731a),this['bind'](_0x3530('0x50'))['to'](this,'isReady',this,'diff',this,_0x3530('0x117'),(_0x53c8ff,_0x51932c,_0x42bec7)=>_0x53c8ff&&_0x42bec7?_0x51932c[_0x3530('0x1f')][_0x3530('0x34')](_0x42bec7):0x0),this['bind']('numberOfChanges')['to'](this,_0x3530('0xcd'),this,_0x3530('0x86'),(_0x29aebe,_0x3a51d0)=>_0x29aebe?_0x3a51d0[_0x3530('0x1f')][_0x3530('0x11b')]:0x0),this['_changeView']=null,this[_0x3530('0xc3')]=new Map(),this['adapter']=null,this[_0x3530('0xb1')]=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](_0x3957c4);}['init'](){const _0x4def3b=this[_0x3530('0xa0')],_0x318c15=new ShowChangeCommand(_0x4def3b,{'direction':_0x3530('0x32')}),_0x3318eb=new ShowChangeCommand(_0x4def3b,{'direction':'forward'});(_0x4def3b[_0x3530('0x79')][_0x3530('0xf2')](_0x3530('0x51'),_0x318c15),_0x4def3b['commands'][_0x3530('0xf2')](_0x3530('0xcc'),_0x3318eb),_0x4def3b[_0x3530('0x79')]['add'](_0x3530('0xd'),new RestoreRevisionCommand(_0x4def3b)),this['on'](_0x3530('0x92'),()=>{_0x318c15[_0x3530('0x33')](),_0x3318eb['refresh']();}),this[_0x3530('0xb5')](),this[_0x3530('0x11c')](),_0x4def3b[_0x3530('0xb9')](_0x3530('0x35')),_0x4def3b['plugins']['has'](_0x3530('0x26')))&&_0x4def3b[_0x3530('0x97')][_0x3530('0xc2')](_0x3530('0x26'))['forceDisabled'](_0x3530('0x35'));}async[_0x3530('0xd0')](_0x2ee2d4){await this[_0x3530('0x106')](_0x2ee2d4);const _0x24e464={};for(const _0x5c2c4b in _0x2ee2d4['diffData']){if(_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b][_0x3530('0x8b')]&&!_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b]['attachChange']['isAttached'])continue;const _0x3e6a15=this[_0x3530('0xd7')](JSON[_0x3530('0x7b')](_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b][_0x3530('0x10d')])),_0xe97a05=this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document'],_0x576c3d=new _0x51d369(_0xe97a05,_0x3e6a15['map'](_0x27df9a=>this[_0x3530('0xae')](_0x27df9a)));this[_0x3530('0xa0')][_0x3530('0x19')][_0x3530('0x46')][_0x3530('0x12')](_0x3530('0xbb')),_0x24e464[_0x5c2c4b]=this[_0x3530('0xa0')]['data'][_0x3530('0x46')][_0x3530('0x4f')](_0x576c3d),this[_0x3530('0xa0')][_0x3530('0x19')][_0x3530('0x46')]['useFillerType'](_0x3530('0x75'));}return _0x24e464;}async[_0x3530('0x2')](_0x46827b){await this[_0x3530('0x106')](_0x46827b);const _0x57518c={};for(const _0x2ed4f8 in _0x46827b[_0x3530('0x38')])_0x46827b['diffData'][_0x2ed4f8][_0x3530('0x8b')]&&!_0x46827b[_0x3530('0x38')][_0x2ed4f8][_0x3530('0x8b')]['isAttached']||(_0x57518c[_0x2ed4f8]=_0x46827b[_0x3530('0x38')][_0x2ed4f8]['attributesAfter']||{});return _0x57518c;}[_0x3530('0xd7')](_0x206c0c){return(_0x206c0c=_0x206c0c[_0x3530('0x9')](_0x524be0=>!_0x524be0['name']||_0x3530('0x69')!==_0x524be0[_0x3530('0xd5')]&&_0x3530('0x1c')!==_0x524be0[_0x3530('0xd5')]))['forEach'](_0x4eb2ac=>{_0x3530('0x4b')!=typeof _0x4eb2ac&&(_0x4eb2ac[_0x3530('0xc8')]=this[_0x3530('0xd7')](_0x4eb2ac[_0x3530('0xc8')]),_0x4eb2ac['attributes']=_0x4eb2ac[_0x3530('0xaa')][_0x3530('0x9')](_0x41f38c=>!_0x41f38c[0x0][_0x3530('0xa7')]('data-revision-')));}),_0x206c0c;}async[_0x3530('0xc')](_0x2a635a,_0xde84aa,_0x571206=!0x1){if(!this['isEnabled'])return;const _0x3e1fef=this[_0x3530('0x86')],_0x3400fc=this[_0x3530('0xb7')],_0x196c6a=_0x3530('0x4b')==typeof _0x2a635a?_0x3400fc[_0x3530('0x9a')](_0x2a635a):_0x2a635a,_0x310585=_0x3530('0x4b')==typeof _0xde84aa?_0x3400fc[_0x3530('0x9a')](_0xde84aa):_0xde84aa,_0x48354e=_0x196c6a['id'],_0x2b45db=_0x310585?_0x310585['id']:null;if(!_0x571206&&this[_0x3530('0x86')]&&this[_0x3530('0x86')][_0x3530('0xc5')]===_0x48354e&&this[_0x3530('0x86')][_0x3530('0x98')]===_0x2b45db)return Promise[_0x3530('0x5a')]();this[_0x3530('0xcd')]=!0x1,this[_0x3530('0x96')]=null,this['activeChange']=null,this['diff']=new _0x5ed6b5(_0x48354e,_0x2b45db);const _0x5901d0=this[_0x3530('0x9d')](_0x196c6a,_0x310585,!0x0)[_0x3530('0x1')](_0x34a708=>this['loadRevisionData'](_0x34a708));return _0x5901d0[_0x3530('0x29')](new Promise(_0x1b6f35=>{setTimeout(_0x1b6f35,0x14);})),Promise[_0x3530('0xec')](_0x5901d0)['then'](()=>{if(!this[_0x3530('0xdb')])return;this[_0x3530('0xb0')]();const _0x10ad87=this['_getDiff'](_0x48354e,_0x2b45db);for(const _0x14f3ab of _0x10ad87[_0x3530('0x1f')])this[_0x3530('0xc3')][_0x3530('0x6a')](_0x14f3ab['id'],_0x14f3ab);this[_0x3530('0xa0')][_0x3530('0x3f')]['enqueueChange']({'isUndoable':!0x1},_0x902932=>{for(const _0x285eea of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]())_0x902932[_0x3530('0x9e')](_0x285eea);for(const _0x43693d of Object[_0x3530('0xe1')](_0x10ad87[_0x3530('0x3f')])){const _0x42958c=_0x902932[_0x3530('0x65')](_0x43693d);for(const _0x4dd83e of Object[_0x3530('0xe1')](_0x10ad87['attributes'][_0x43693d]))_0x902932['setAttribute'](_0x4dd83e,_0x10ad87[_0x3530('0xaa')][_0x43693d][_0x4dd83e],_0x42958c);_0x902932['insert'](_0x10ad87['model'][_0x43693d],_0x42958c,0x0);}}),this[_0x3530('0x86')]['_setChanges'](this[_0x3530('0x82')](_0x10ad87[_0x3530('0x1f')])),this['isReady']=!0x0;})[_0x3530('0x8d')](_0x5006e1=>{console[_0x3530('0xe2')](_0x5006e1),this[_0x3530('0xb0')](),_0x3e1fef&&(this[_0x3530('0x86')]=_0x3e1fef),this[_0x3530('0xcd')]=!0x0;});}[_0x3530('0xc1')](_0x378bba,_0x3fde4d){const _0x451af9=this[_0x3530('0xb7')]['createRevision'](_0x378bba);return _0x451af9['on'](_0x3530('0xdc'),(_0x32417a,_0x3750b3,_0x1fb27c)=>_0x3fde4d(_0x3750b3,_0x1fb27c,_0x451af9)),this[_0x3530('0xb7')][_0x3530('0x63')](_0x451af9),_0x451af9;}[_0x3530('0x106')](_0x88b04a){if(!_0x88b04a||_0x88b04a['diffData'])return Promise[_0x3530('0x5a')]();{const _0x69603=this[_0x3530('0xa0')]['config'][_0x3530('0xc2')](_0x3530('0xdd'));return this[_0x3530('0xe9')][_0x3530('0x9a')]({'channelId':_0x69603,'revisionId':_0x88b04a['id']})[_0x3530('0x91')](_0x42f604=>{_0x88b04a['_update']({'diffData':_0x42f604[_0x3530('0x38')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x3530('0x57')](),this[_0x3530('0xab')]&&this['_changeView'][_0x3530('0x104')](),this[_0x3530('0xab')]=null,this[_0x3530('0xc3')][_0x3530('0x5d')](),this['editor'][_0x3530('0x3f')][_0x3530('0xa9')]({'isUndoable':!0x1},_0x2a0b14=>{for(const _0x173041 of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]())_0x2a0b14['detachRoot'](_0x173041);});}[_0x3530('0x82')](_0x2dc57f){const _0x58d735=[],_0xb09d1=new Map();for(const _0x5111a6 of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]()){const _0x500086=this[_0x3530('0xa0')]['editing']['view'][_0x3530('0x84')](_0x5111a6);if(!_0x500086)continue;const _0xca6acf=_0x500086[_0x3530('0x120')]()[_0x3530('0x1a')](0x0);_0xca6acf&&(_0x58d735[_0x3530('0x29')](_0x5111a6),_0xb09d1['set'](_0x5111a6,_0xca6acf));}return _0x58d735['sort']((_0x3624b3,_0x2caf2b)=>{const _0x1ac672=_0xb09d1[_0x3530('0xc2')](_0x3624b3),_0x51dc2c=_0xb09d1['get'](_0x2caf2b);return _0x1ac672['y']-_0x51dc2c['y']||_0x1ac672['x']-_0x51dc2c['x'];}),(_0x2dc57f=_0x2dc57f[_0x3530('0x9')](_0x1bf215=>_0x58d735[_0x3530('0x4')](_0x1bf215[_0x3530('0x40')])))[_0x3530('0xb2')]((_0x108336,_0x35c800)=>_0x58d735[_0x3530('0x8')](_0x108336[_0x3530('0x40')])-_0x58d735[_0x3530('0x8')](_0x35c800[_0x3530('0x40')])),_0x2dc57f;}[_0x3530('0xfb')](_0x19c1ea){const _0x2665ba=Array[_0x3530('0x14')](_0x19c1ea[_0x3530('0x107')])[_0x3530('0x9')](([_0x3b0a17,_0x4f5b2b])=>_0x3b0a17[_0x3530('0xa7')](_0x3530('0x8a'))&&!_0x4f5b2b[_0x3530('0xe3')]),_0x1bff9b=Array[_0x3530('0x14')](this[_0x3530('0xa0')][_0x3530('0x3f')]['createRangeIn'](_0x19c1ea)[_0x3530('0x99')]({'singleCharacters':!0x0}));if(0x0!=_0x2665ba[_0x3530('0x11b')])for(const _0xa18fa2 of _0x1bff9b){const [_0x273a4b,_0x10c8d5]=_0x2665ba[0x0],[,_0x4b67db,_0x14c044]=_0x273a4b[_0x3530('0x89')](':');if(_0x10c8d5[_0x3530('0x7a')]['isEqual'](_0xa18fa2[_0x3530('0x100')])&&_0x2665ba[_0x3530('0xa5')](),(_0xa18fa2[_0x3530('0x22')][_0x3530('0xb4')](_0x10c8d5['start'])||_0xa18fa2[_0x3530('0x22')][_0x3530('0x18')](_0x10c8d5[_0x3530('0xd2')]))&&(_0x3530('0x55')==_0x4b67db?_0xa18fa2[_0x3530('0x13')]={'userId':_0x14c044}:'deletion'==_0x4b67db&&(_0xa18fa2[_0x3530('0xda')]={'userId':_0x14c044})),0x0==_0x2665ba['length'])break;}return _0x1bff9b;}['_refreshStartEndIndex'](_0x2873a8){const _0x56e89d=new Map();for(let _0x4550bb=0x0;_0x4550bb<_0x2873a8[_0x3530('0x11b')];_0x4550bb++)_0x3530('0x3d')===_0x2873a8[_0x4550bb][_0x3530('0x24')]?(_0x2873a8[_0x4550bb][_0x3530('0x1a')]['startIndex']=_0x4550bb,_0x2873a8[_0x4550bb][_0x3530('0x1a')][_0x3530('0x7d')]=_0x4550bb):('elementStart'===_0x2873a8[_0x4550bb][_0x3530('0x24')]?_0x2873a8[_0x4550bb][_0x3530('0x1a')][_0x3530('0xe7')]=_0x4550bb:_0x3530('0x47')===_0x2873a8[_0x4550bb]['type']&&(_0x2873a8[_0x4550bb][_0x3530('0x1a')]['endIndex']=_0x4550bb),_0x56e89d['set'](_0x2873a8[_0x4550bb]['id'],_0x4550bb));for(const _0x412aaa of _0x56e89d[_0x3530('0x44')]())_0x3530('0xa2')===_0x2873a8[_0x412aaa][_0x3530('0x24')]?_0x2873a8[_0x412aaa][_0x3530('0x1a')][_0x3530('0x7d')]=_0x56e89d[_0x3530('0xc2')](_0x2873a8[_0x412aaa][_0x3530('0x5b')]):'elementEnd'===_0x2873a8[_0x412aaa]['type']&&(_0x2873a8[_0x412aaa]['item'][_0x3530('0xe7')]=_0x56e89d[_0x3530('0xc2')](_0x2873a8[_0x412aaa]['pairId']));}['_processTape'](_0x4c7424){for(let _0x3ea8f0=0x0;_0x3ea8f0<_0x4c7424[_0x3530('0x11b')];_0x3ea8f0++){if(_0x3530('0xa2')===_0x4c7424[_0x3ea8f0][_0x3530('0x24')])_0x4c7424[_0x3ea8f0]['item'][_0x3530('0xe7')]=_0x3ea8f0;else{if(_0x3530('0x47')===_0x4c7424[_0x3ea8f0][_0x3530('0x24')]){_0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0x7d')]=_0x3ea8f0;const _0x4bb87b=_0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0xe7')];_0x4c7424[_0x4bb87b]['pairId']=_0x4c7424[_0x3ea8f0]['id'],_0x4c7424[_0x3ea8f0][_0x3530('0x5b')]=_0x4c7424[_0x4bb87b]['id'];}else _0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0xe7')]=_0x3ea8f0,_0x4c7424[_0x3ea8f0]['item'][_0x3530('0x7d')]=_0x3ea8f0,_0x4c7424[_0x3ea8f0]['pairId']=null;}_0x4c7424[_0x3ea8f0]['markersStart']||(_0x4c7424[_0x3ea8f0][_0x3530('0x77')]=[],_0x4c7424[_0x3ea8f0]['markersEnd']=[]);}}[_0x3530('0xf7')](_0x25aa9b,_0x2d7d26){const _0x225af2=_0x25aa9b['filter'](_0x3a97f7=>!_0x3a97f7[_0x3530('0x13')]);for(let _0x12f6b6=0x0;_0x12f6b6<_0x2d7d26[_0x3530('0x11b')];_0x12f6b6++)_0x2d7d26[_0x12f6b6][_0x3530('0x13')]&&(_0x225af2[_0x12f6b6][_0x3530('0x13')]=_0x2d7d26[_0x12f6b6]['isAdded']);}['_makeModelFromViewString'](_0x11d11d){const _0x3b0880=JSON[_0x3530('0x7b')](_0x11d11d),_0x57c23f=this[_0x3530('0xa0')]['editing'][_0x3530('0x2d')][_0x3530('0xdf')],_0x2c7810=new _0x51d369(_0x57c23f,_0x3b0880[_0x3530('0x1')](_0x32c35a=>this[_0x3530('0xae')](_0x32c35a)));return this[_0x3530('0xa0')][_0x3530('0x19')]['toModel'](_0x2c7810);}[_0x3530('0xae')](_0x30b671){const _0x4cfec4=this[_0x3530('0xa0')][_0x3530('0xb6')]['view'][_0x3530('0xdf')];if(_0x3530('0x4b')==typeof _0x30b671)return new _0x1b9783(_0x4cfec4,_0x30b671);{const _0x55470a=_0x30b671[_0x3530('0xc8')][_0x3530('0x1')](_0xf1ba0e=>this[_0x3530('0xae')](_0xf1ba0e));return new(tt[_0x30b671[(_0x3530('0x24'))]]||_0x5e509c)(_0x4cfec4,_0x30b671[_0x3530('0xd5')],_0x30b671['attributes'],_0x55470a);}}[_0x3530('0xa')](_0x42ccf7,_0x5cab8a=null){const _0x12d8cd=this[_0x3530('0xb7')][_0x3530('0x9a')](_0x42ccf7),_0x13da79=_0x5cab8a?this['repository']['getRevision'](_0x5cab8a):null,_0x36bc3a=this[_0x3530('0x9d')](_0x12d8cd,_0x13da79),_0x3c053d=_0x36bc3a[_0x36bc3a['length']-0x1],_0x2b7301=new Map(),_0x269f09={'model':{},'attributes':{},'changes':[]},_0x3c32e7=new Set(),_0x341c5b=new Map();for(let _0x233cb0=_0x36bc3a[_0x3530('0x11b')]-0x1;_0x233cb0>=0x0;_0x233cb0--){const _0x94f21e=_0x36bc3a[_0x233cb0];for(const _0x4fbfa3 of Object[_0x3530('0xe1')](_0x94f21e[_0x3530('0x38')]))if(_0x94f21e[_0x3530('0x38')][_0x4fbfa3][_0x3530('0x8b')]){const _0x38d0a0=_0x94f21e[_0x3530('0x38')][_0x4fbfa3][_0x3530('0x8b')];_0x38d0a0[_0x3530('0x0')]?(_0x3c32e7[_0x3530('0xf2')](_0x4fbfa3),_0x341c5b[_0x3530('0xad')](_0x4fbfa3)&&_0x341c5b['get'](_0x4fbfa3)[_0x3530('0x11f')]==_0x38d0a0['userId']?_0x341c5b[_0x3530('0x66')](_0x4fbfa3):_0x341c5b[_0x3530('0x6a')](_0x4fbfa3,_0x38d0a0)):_0x341c5b[_0x3530('0xad')](_0x4fbfa3)?(_0x3c32e7['delete'](_0x4fbfa3),_0x341c5b[_0x3530('0x66')](_0x4fbfa3)):(_0x3c32e7[_0x3530('0xf2')](_0x4fbfa3),_0x341c5b[_0x3530('0x6a')](_0x4fbfa3,_0x38d0a0));}else _0x3c32e7['add'](_0x4fbfa3);}for(const _0xb89b6f of _0x3c32e7){const _0x25afa0=_0x341c5b[_0x3530('0xad')](_0xb89b6f)&&!_0x341c5b[_0x3530('0xc2')](_0xb89b6f)[_0x3530('0x0')];let _0x1fc490=_0x25afa0?_0x36bc3a[_0x3530('0x11b')]-0x1:0x0;const _0x261b65=_0x25afa0?-0x1:0x1;for(;_0x36bc3a[_0x1fc490];){const _0xf77521=_0x36bc3a[_0x1fc490];if(_0xf77521[_0x3530('0x38')][_0xb89b6f]){const _0x5e4d08=_0x25afa0?_0xf77521[_0x3530('0x38')][_0xb89b6f][_0x3530('0x48')]:_0xf77521[_0x3530('0x38')][_0xb89b6f]['attributesAfter'];_0x269f09[_0x3530('0xaa')][_0xb89b6f]=_0x5e4d08?_0x370b3f(_0x5e4d08):{};break;}_0x1fc490+=_0x261b65;}}for(const _0x524dd9 of _0x36bc3a){_0x524dd9[_0x3530('0x3f')]={};for(const _0x407801 of _0x524dd9[_0x3530('0xac')])_0x2b7301[_0x3530('0x6a')](_0x407801['id'],_0x407801);for(const _0x5916a9 of _0x3c32e7){const _0x1636fc=_0x524dd9[_0x3530('0x38')][_0x5916a9]?_0x524dd9[_0x3530('0x38')][_0x5916a9]['insertions']:'[]',_0x4b180e=_0x524dd9['diffData'][_0x5916a9]?_0x524dd9['diffData'][_0x5916a9][_0x3530('0x119')]:'[]';_0x524dd9[_0x3530('0x3f')][_0x5916a9]={'insertions':this[_0x3530('0xcb')](_0x1636fc),'deletions':this[_0x3530('0xcb')](_0x4b180e)};}}for(const _0x127dff of _0x3c32e7){let _0x59e59b=null,_0x132203=0x0;const _0xb93ae5=new Map(Array['from'](_0x12d8cd[_0x3530('0x3f')][_0x127dff][_0x3530('0x10d')]['markers'])[_0x3530('0x9')](([_0x40debb])=>!_0x40debb[_0x3530('0xa7')](_0x3530('0x8a'))));let _0x26e7e7=0x0;for(const _0x38a169 of _0x36bc3a){const _0x2d5f4d=this[_0x3530('0xfb')](_0x38a169[_0x3530('0x3f')][_0x127dff][_0x3530('0x10d')]);_0x38a169==_0x12d8cd?(_0x59e59b=_0x2d5f4d,_0x132203=_0x59e59b[_0x3530('0x11b')],_0x59e59b['forEach'](_0x1f6a6e=>{_0x1f6a6e['id']=_0x26e7e7++;}),this[_0x3530('0x58')](_0x59e59b)):this[_0x3530('0xf7')](_0x59e59b,_0x2d5f4d);const _0x4e5d5c=_0x59e59b[_0x3530('0x9')](_0x2121bf=>!_0x2121bf[_0x3530('0x13')])[_0x3530('0x1')](_0x308647=>_0x308647['id']);let _0x442fe7=0x0;const _0x4e1573=this[_0x3530('0xfb')](_0x38a169[_0x3530('0x3f')][_0x127dff][_0x3530('0x119')]);_0x4e1573[_0x3530('0xf5')](_0x2d34de=>{_0x2d34de[_0x3530('0xda')]?_0x2d34de['id']=_0x132203++:_0x2d34de['id']=_0x4e5d5c[_0x442fe7++];}),this['_processTape'](_0x4e1573),this[_0x3530('0x37')](_0x59e59b,_0x3530('0x13')),this[_0x3530('0x37')](_0x4e1573,_0x3530('0xda')),_0x38a169==_0x12d8cd&&this['_markMarkers'](_0x59e59b,_0xb93ae5),_0x59e59b=this['_joinTapes'](_0x59e59b,_0x4e1573),this['_refreshStartEndIndex'](_0x59e59b),this[_0x3530('0x37')](_0x59e59b,_0x3530('0xda'));}_0x59e59b=_0x59e59b[_0x3530('0x9')](_0x580ab1=>!(_0x580ab1[_0x3530('0x13')]&&_0x580ab1[_0x3530('0xda')]));const _0x2defe0=new Map(_0x3c053d[_0x3530('0x3f')][_0x127dff][_0x3530('0x119')][_0x3530('0x107')]),_0x3020bb=new Set(_0xb93ae5[_0x3530('0xe1')]());for(const _0x1d8382 of _0x2defe0[_0x3530('0xe1')]())_0x3020bb[_0x3530('0x66')](_0x1d8382);this[_0x3530('0x1b')](_0x59e59b,_0x3020bb),this[_0x3530('0x94')](_0x59e59b),_0x59e59b=this['_removeMissingPairs'](_0x59e59b),_0x59e59b=this[_0x3530('0x43')](_0x59e59b),_0x59e59b=this[_0x3530('0xd8')](_0x59e59b);const {root:_0x2242f4,changes:_0xeefb5a}=this[_0x3530('0xb')](_0x59e59b,_0x2b7301,_0x127dff);_0x269f09[_0x3530('0x3f')][_0x127dff]=_0x2242f4;const _0x1ee00b=_0x341c5b[_0x3530('0xc2')](_0x127dff);if(_0x1ee00b){const _0x53f8d8=_0x2b7301['get'](_0x1ee00b['userId']),_0x1dce7f=new _0x793295({'author':_0x53f8d8,'type':_0x1ee00b[_0x3530('0x0')]?_0x3530('0xf2'):_0x3530('0x9c'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x127dff});_0xeefb5a[_0x3530('0x1e')](_0x1dce7f),_0x269f09[_0x3530('0xaa')][_0x127dff][_0x3530('0xca')]=_0x1dce7f['id'];}_0x269f09['changes']=_0x269f09[_0x3530('0x1f')][_0x3530('0x6c')](_0xeefb5a);}return _0x269f09;}[_0x3530('0xce')](_0x4ab8e8,_0x4445fa){for(let _0x24149f=0x0;_0x24149f<_0x4ab8e8[_0x3530('0x11b')];_0x24149f++)for(const [_0x599f1b,_0x47e43e]of _0x4445fa)_0x47e43e['start'][_0x3530('0xb4')](_0x4ab8e8[_0x24149f]['previousPosition'])&&_0x4ab8e8[_0x24149f][_0x3530('0x77')][_0x3530('0x29')](_0x599f1b),_0x47e43e[_0x3530('0x7a')]['isEqual'](_0x4ab8e8[_0x24149f]['nextPosition'])&&_0x4ab8e8[_0x24149f][_0x3530('0x10f')][_0x3530('0x29')](_0x599f1b);}[_0x3530('0x87')](_0x42a584,_0x5a5152){let _0x36c362=[],_0x4fa901=0x0,_0x5a87e5=0x0;for(;_0x4fa901<_0x42a584[_0x3530('0x11b')]||_0x5a87e5<_0x5a5152[_0x3530('0x11b')];){const _0x54e36b=_0x42a584[_0x4fa901]||{},_0x4cdbd7=_0x5a5152[_0x5a87e5]||{};if(_0x54e36b['id']==_0x4cdbd7['id'])_0x4fa901++,_0x5a87e5++,_0x36c362[_0x3530('0x29')](_0x54e36b);else{if(_0x4cdbd7[_0x3530('0xda')]&&_0x54e36b['isAdded']){const {commonTape:_0x532bce,iEnd:_0x3cc1d4,jEnd:_0x527dad}=this[_0x3530('0x111')](_0x42a584,_0x4fa901,_0x5a5152,_0x5a87e5);_0x36c362=_0x36c362[_0x3530('0x6c')](_0x532bce),_0x4fa901=_0x3cc1d4,_0x5a87e5=_0x527dad;}else _0x4cdbd7['isRemoved']?(_0x5a87e5++,_0x36c362[_0x3530('0x29')](_0x4cdbd7)):(_0x4fa901++,_0x36c362[_0x3530('0x29')](_0x54e36b));}}return _0x36c362;}[_0x3530('0x1b')](_0x245db3,_0x4076a1){const _0x3017f7=[];for(let _0x4ba37a=0x0;_0x4ba37a<_0x245db3[_0x3530('0x11b')];_0x4ba37a++){for(let _0x51f4a1=0x0;_0x51f4a1<_0x245db3[_0x4ba37a]['markersStart'][_0x3530('0x11b')];_0x51f4a1++){const _0x3c469b=_0x245db3[_0x4ba37a][_0x3530('0x77')][_0x51f4a1];if(!_0x4076a1['has'](_0x3c469b))continue;const {group:_0xdbb4be,type:_0x2836d6,authorId:_0x41ae6c}=_0x46d389(_0x3c469b);'revision-suggestion'!=_0xdbb4be||'insertion'!=_0x2836d6&&_0x3530('0x3a')!=_0x2836d6||(_0x3017f7['unshift']({'type':_0x2836d6,'name':_0x3c469b,'userId':_0x41ae6c}),_0x245db3[_0x4ba37a][_0x3530('0x77')][_0x3530('0x8e')](_0x51f4a1,0x1),_0x51f4a1--);}_0x435279(_0x245db3[_0x4ba37a]);for(let _0x2581c1=0x0;_0x2581c1<_0x245db3[_0x4ba37a][_0x3530('0x10f')][_0x3530('0x11b')];_0x2581c1++){const _0x23a3d2=_0x245db3[_0x4ba37a][_0x3530('0x10f')][_0x2581c1];if(!_0x4076a1['has'](_0x23a3d2))continue;const {group:_0x1eecef,type:_0x3af700}=_0x46d389(_0x23a3d2);if(_0x3530('0x16')!=_0x1eecef||_0x3530('0x55')!=_0x3af700&&'deletion'!=_0x3af700)continue;_0x245db3[_0x4ba37a]['markersEnd'][_0x3530('0x8e')](_0x2581c1,0x1),_0x2581c1--;const _0x4ab239=_0x3017f7['findIndex'](_0x4011ca=>_0x4011ca[_0x3530('0xd5')]==_0x23a3d2);_0x4ab239>-0x1&&_0x3017f7[_0x3530('0x8e')](_0x4ab239,0x1);}}function _0x46d389(_0x283a1d){const _0x8ff5f5=_0x283a1d[_0x3530('0x89')](':');return{'group':_0x8ff5f5[0x0],'type':_0x8ff5f5[0x1],'subType':_0x8ff5f5[_0x3530('0x11b')]>=0x5?_0x8ff5f5[0x2]:null,'id':_0x8ff5f5['length']<0x5?_0x8ff5f5[0x2]:_0x8ff5f5[0x3],'authorId':_0x8ff5f5[_0x3530('0x11b')]<0x5?_0x8ff5f5[0x3]:_0x8ff5f5[0x4],'markerCount':0x6==_0x8ff5f5['length']?_0x8ff5f5[0x5]:null};}function _0x435279(_0x258837){for(let _0x13b71c=0x0;_0x13b71c<_0x3017f7[_0x3530('0x11b')];_0x13b71c++){if(_0x258837['isAdded']&&_0x3530('0x55')==_0x3017f7[_0x13b71c]['type'])return _0x258837['isAddSuggestion']=_0x3017f7[_0x13b71c],void delete _0x258837[_0x3530('0x13')];if(!_0x258837[_0x3530('0x13')]&&!_0x258837[_0x3530('0xda')]&&_0x3530('0x3a')==_0x3017f7[_0x13b71c][_0x3530('0x24')])return void(_0x258837[_0x3530('0xa1')]=_0x3017f7[_0x13b71c]);}}}['_setDistance'](_0x18bf00,_0x5e69d8){let _0x262cb6=0x0,_0x564ff9=!0x1;const _0x3049ad=new Map();for(const _0x2cd91c of _0x18bf00)_0x2cd91c[_0x5e69d8]?_0x564ff9&&(_0x262cb6++,_0x564ff9=!0x1):(_0x262cb6++,_0x564ff9=!0x0),_0x3049ad[_0x3530('0x6a')](_0x2cd91c['id'],_0x262cb6);for(let _0x27babd=0x0;_0x27babd<_0x18bf00[_0x3530('0x11b')];_0x27babd++){if('isRemoved'==_0x5e69d8&&_0x18bf00[_0x27babd][_0x3530('0x13')]||_0x3530('0x13')==_0x5e69d8&&_0x18bf00[_0x27babd][_0x3530('0xda')])continue;if('text'==_0x18bf00[_0x27babd][_0x3530('0x24')]){_0x18bf00[_0x27babd][_0x3530('0xe4')]=0x0;continue;}const _0x2ed781=_0x3049ad[_0x3530('0xc2')](_0x18bf00[_0x27babd][_0x3530('0x5b')]),_0x1c3f8c=_0x3049ad[_0x3530('0xc2')](_0x18bf00[_0x27babd]['id']);_0x18bf00[_0x27babd][_0x3530('0xe4')]=_0x2ed781-_0x1c3f8c;}}['_getRevisionsRange'](_0x11f22f,_0xe5ffe5,_0x1acff9=!0x1){const _0x5e32f0=[];let _0x4a18b4=this[_0x3530('0xb7')][_0x3530('0x34')](_0x11f22f),_0x343a9a=this[_0x3530('0xb7')][_0x3530('0x34')](_0xe5ffe5);for(-0x1==_0x343a9a&&(_0x343a9a=this[_0x3530('0xb7')]['_revisions'][_0x3530('0x11b')],_0x1acff9=!0x1);_0x4a18b4<_0x343a9a;)_0x5e32f0['push'](this[_0x3530('0xb7')][_0x3530('0x9a')](_0x4a18b4)),_0x4a18b4++;return _0x1acff9&&_0x5e32f0['push'](this[_0x3530('0xb7')][_0x3530('0x9a')](_0x4a18b4)),_0x5e32f0;}[_0x3530('0x111')](_0x56d53b,_0x68735e,_0x2a92c4,_0x5a7418){const _0x2259b0=this['editor'][_0x3530('0x3f')]['schema'];let _0x3a5bfb=_0x68735e;for(;_0x56d53b[_0x3a5bfb]&&_0x56d53b[_0x3a5bfb][_0x3530('0x13')];)_0x3a5bfb++;let _0x5e07bd=_0x5a7418;for(;_0x2a92c4[_0x5e07bd]&&_0x2a92c4[_0x5e07bd][_0x3530('0xda')];)_0x5e07bd++;_0x4aeb3a(_0x56d53b,_0x68735e,_0x3a5bfb),_0x4aeb3a(_0x2a92c4,_0x5a7418,_0x5e07bd);const _0x475b4e=_0x2a92c4[_0x3530('0x109')](_0x5a7418,_0x5e07bd)['concat'](_0x56d53b[_0x3530('0x109')](_0x68735e,_0x3a5bfb));return _0x475b4e[_0x3530('0xb2')]((_0x1821b3,_0x2e5575)=>_0x1821b3['side']!=_0x2e5575['side']?_0x1821b3['side']-_0x2e5575[_0x3530('0x90')]:_0x1821b3[_0x3530('0x68')]!=_0x2e5575['level']?_0x1821b3[_0x3530('0x68')]-_0x2e5575[_0x3530('0x68')]:_0x1821b3[_0x3530('0xe4')]!=_0x2e5575['distance']?_0x2e5575['distance']-_0x1821b3['distance']:!!_0x1821b3[_0x3530('0x13')]!=!!_0x2e5575[_0x3530('0x13')]?-0x1==_0x1821b3[_0x3530('0x90')]||0x0==_0x1821b3[_0x3530('0x90')]?_0x1821b3[_0x3530('0x13')]?-0x1:0x1:_0x1821b3[_0x3530('0x13')]?0x1:-0x1:_0x1821b3[_0x3530('0xc0')]-_0x2e5575[_0x3530('0xc0')]),{'commonTape':_0x475b4e,'iEnd':_0x3a5bfb,'jEnd':_0x5e07bd};function _0x4aeb3a(_0x486784,_0x1a8161,_0x2f8caf){let _0x4deca9=-0x1,_0x1fdc04=Number[_0x3530('0x83')],_0x53a7fa=!0x0;for(let _0x51eece=_0x1a8161;_0x51eece<_0x2f8caf;_0x51eece++)if(_0x2259b0[_0x3530('0x67')](_0x486784[_0x51eece][_0x3530('0x1a')])||(_0x53a7fa=!0x1),_0x486784[_0x51eece][_0x3530('0x1a')][_0x3530('0xe7')]<_0x1a8161&&(_0x4deca9=_0x51eece),_0x486784[_0x51eece]['item'][_0x3530('0x7d')]>=_0x2f8caf){_0x1fdc04=_0x51eece;break;}_0x53a7fa&&(_0x4deca9=_0x2f8caf-0x1);for(let _0x3a28f5=_0x1a8161;_0x3a28f5<_0x2f8caf;_0x3a28f5++)_0x486784[_0x3a28f5]['side']=_0x3a28f5<=_0x4deca9?-0x1:_0x3a28f5<_0x1fdc04?0x0:0x1,_0x486784[_0x3a28f5][_0x3530('0xc0')]=_0x3a28f5;let _0x3e3420=0x0;for(let _0x25c664=_0x1a8161;_0x25c664<=_0x4deca9;_0x25c664++)0x0==_0x486784[_0x25c664][_0x3530('0xe4')]?_0x486784[_0x25c664][_0x3530('0x68')]=_0x3e3420:(_0x3e3420++,_0x486784[_0x25c664][_0x3530('0x68')]=_0x3e3420,_0x3e3420++);for(let _0x29ed63=_0x1a8161;_0x29ed63<_0x2f8caf;_0x29ed63++)0x0==_0x486784[_0x29ed63]['side']&&(_0x486784[_0x29ed63][_0x3530('0x68')]=_0x3e3420);_0x3e3420=0x0;for(let _0x3ac8ce=_0x2f8caf-0x1;_0x3ac8ce>=_0x1fdc04;_0x3ac8ce--)0x0==_0x486784[_0x3ac8ce][_0x3530('0xe4')]?_0x486784[_0x3ac8ce][_0x3530('0x68')]=_0x3e3420:(_0x3e3420--,_0x486784[_0x3ac8ce][_0x3530('0x68')]=_0x3e3420,_0x3e3420--);}}['_fixObsoleteTags'](_0x4a3dfb){const _0x5cc7b7=new Map(),_0xfc8a2d=this['editor']['model'][_0x3530('0x10c')];for(let _0xde95ad=0x1;_0xde95ad<_0x4a3dfb[_0x3530('0x11b')];_0xde95ad++){let _0x15f7a7,_0x40eaa3,_0x4b3e4a;const _0x2ae113=_0x4a3dfb[_0xde95ad],_0x4092a0=_0x4a3dfb[_0xde95ad-0x1];if(_0x3530('0x3d')==_0x2ae113['type'])continue;if(_0x2ae113[_0x3530('0x24')]!=_0x4092a0['type'])continue;if(!_0xfc8a2d[_0x3530('0xcf')](_0x4092a0['item'])||_0xfc8a2d[_0x3530('0x6d')](_0x4092a0[_0x3530('0x1a')]))continue;if(!_0xfc8a2d[_0x3530('0xcf')](_0x2ae113[_0x3530('0x1a')])||_0xfc8a2d[_0x3530('0x6d')](_0x2ae113[_0x3530('0x1a')]))continue;if((_0x4a3dfb[_0xde95ad]['isAdded']||_0x4a3dfb[_0xde95ad][_0x3530('0xef')])&&_0x4a3dfb[_0xde95ad-0x1]['isRemoved'])_0x15f7a7=_0x4a3dfb[_0xde95ad],_0x40eaa3=_0x4a3dfb[_0xde95ad-0x1],_0x4b3e4a=_0xde95ad-0x1;else{if(!_0x4a3dfb[_0xde95ad][_0x3530('0xda')]||!_0x4a3dfb[_0xde95ad-0x1][_0x3530('0x13')]&&!_0x4a3dfb[_0xde95ad-0x1][_0x3530('0xef')])continue;_0x15f7a7=_0x4a3dfb[_0xde95ad-0x1],_0x40eaa3=_0x4a3dfb[_0xde95ad],_0x4b3e4a=_0xde95ad;}const _0x4d146f=_0x15f7a7['level']==_0x40eaa3[_0x3530('0x68')],_0x420ab9=Math[_0x3530('0xc7')](_0x15f7a7[_0x3530('0x68')])<Math[_0x3530('0xc7')](_0x40eaa3[_0x3530('0x68')])&&0x0==_0x40eaa3[_0x3530('0xe4')];(_0x4d146f||_0x420ab9)&&(_0x5cc7b7[_0x3530('0x6a')](_0x40eaa3['id'],_0x15f7a7['id']),_0x4a3dfb[_0x3530('0x8e')](_0x4b3e4a,0x1),_0xde95ad--,_0x15f7a7[_0x3530('0x13')]=!0x1);}for(let _0x2f8ade=0x0;_0x2f8ade<_0x4a3dfb[_0x3530('0x11b')];_0x2f8ade++)_0x5cc7b7['has'](_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')])&&(_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')]=_0x5cc7b7[_0x3530('0xc2')](_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')]));}[_0x3530('0xa3')](_0x485b27){const _0x40f684=new Set(_0x485b27[_0x3530('0x1')](_0x58201c=>_0x58201c['id']));for(let _0x5bd269=0x0;_0x5bd269<_0x485b27[_0x3530('0x11b')];_0x5bd269++)_0x40f684[_0x3530('0xad')](_0x485b27[_0x5bd269][_0x3530('0x5b')])||0x0==_0x485b27[_0x5bd269][_0x3530('0xe4')]||(_0x485b27[_0x5bd269][_0x3530('0x71')]=!0x0);return _0x485b27[_0x3530('0x9')](_0x1ca741=>!_0x1ca741[_0x3530('0x71')]);}['_markMismatchedRemovedTags'](_0x5ab350){const _0x12bac7=new Set();for(let _0x473b34=0x0;_0x473b34<_0x5ab350['length'];_0x473b34++){if(_0x12bac7[_0x3530('0xad')](_0x5ab350[_0x473b34]['id'])&&_0x5ab350[_0x473b34]['isRemoved']&&(_0x5ab350[_0x473b34]['isIncorrect']=!0x0),_0x5ab350[_0x473b34][_0x3530('0x71')])continue;if(0x0==_0x5ab350[_0x473b34][_0x3530('0xe4')])continue;if('elementStart'!=_0x5ab350[_0x473b34]['type'])continue;if(null==_0x5ab350[_0x473b34]['pairId'])continue;let _0x31ee50=_0x473b34+0x1,_0x23c3e4=0x0;for(;_0x5ab350[_0x31ee50]['id']!=_0x5ab350[_0x473b34]['pairId'];)_0x3530('0xa2')==_0x5ab350[_0x31ee50][_0x3530('0x24')]?_0x23c3e4++:_0x3530('0x47')==_0x5ab350[_0x31ee50][_0x3530('0x24')]&&_0x23c3e4--,_0x31ee50++;if(0x0!=_0x23c3e4){if(_0x5ab350[_0x473b34][_0x3530('0xda')])_0x5ab350[_0x473b34][_0x3530('0x71')]=!0x0;else for(;_0x31ee50!=_0x473b34;)_0x5ab350[_0x31ee50][_0x3530('0xda')]&&0x0!=_0x5ab350[_0x31ee50][_0x3530('0xe4')]&&(_0x5ab350[_0x31ee50][_0x3530('0x71')]=!0x0,_0x12bac7[_0x3530('0xf2')](_0x5ab350[_0x31ee50][_0x3530('0x5b')])),_0x31ee50--;}}return _0x5ab350[_0x3530('0x9')](_0x3a307a=>!_0x3a307a['isIncorrect']);}[_0x3530('0xd8')](_0x400532){const _0x17fb6f=this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x10c')];for(let _0x3b8e5c=0x0;_0x3b8e5c<_0x400532[_0x3530('0x11b')];_0x3b8e5c++){if(!(_0x400532[_0x3b8e5c][_0x3530('0x13')]||_0x400532[_0x3b8e5c][_0x3530('0xef')]||_0x400532[_0x3b8e5c][_0x3530('0xda')]||_0x400532[_0x3b8e5c]['isRemoveSuggestion']))continue;if(0x0==_0x400532[_0x3b8e5c][_0x3530('0xe4')])continue;const _0x228b61=_0x400532[_0x3b8e5c]['item'];_0x17fb6f['isBlock'](_0x228b61)||_0x17fb6f[_0x3530('0x6d')](_0x228b61)||(_0x400532[_0x3b8e5c][_0x3530('0x13')]&&delete _0x400532[_0x3b8e5c][_0x3530('0x13')],_0x400532[_0x3b8e5c]['isAddSuggestion']&&delete _0x400532[_0x3b8e5c][_0x3530('0xef')],_0x400532[_0x3b8e5c][_0x3530('0xa1')]&&delete _0x400532[_0x3b8e5c][_0x3530('0xa1')],_0x400532[_0x3b8e5c]['isRemoved']&&(_0x400532[_0x3b8e5c][_0x3530('0x71')]=!0x0));}return _0x400532[_0x3530('0x9')](_0x1ee63d=>!_0x1ee63d['isIncorrect']);}[_0x3530('0xb')](_0x4a05fa,_0x46f3e1,_0x5bdd82){const _0x5b5955=new _0x4979a3(),_0x1146ed=[],_0x5d0fb3=new Map(),_0x2a8330=this[_0x3530('0xa0')][_0x3530('0x3f')],_0x2e3a8e=_0x2a8330[_0x3530('0x10c')],_0x2d95dc=[_0x5b5955],_0x1acd9e={},_0x1d5278={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x45aba0=null;const _0x370154=[0x0];for(let _0x169d76=0x0;_0x169d76<_0x4a05fa[_0x3530('0x11b')];_0x169d76++){let _0x2f0beb,_0x3a89bc;if('elementStart'===_0x4a05fa[_0x169d76][_0x3530('0x24')]){_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154);const _0x159a1a=new _0x3a563a(_0x4a05fa[_0x169d76]['item'][_0x3530('0xd5')],_0x4a05fa[_0x169d76]['item'][_0x3530('0x41')]());_0x2d95dc[0x0][_0x3530('0xd4')](_0x159a1a),_0x370154['push'](0x0),_0x2d95dc[_0x3530('0x1e')](_0x159a1a),_0x3a89bc=_0x2a8330[_0x3530('0x2a')](_0x5b5955,_0x370154),_0x45aba0=null;}else{if(_0x3530('0x47')===_0x4a05fa[_0x169d76][_0x3530('0x24')])_0x2d95dc[_0x3530('0xa5')](),_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x370154['pop'](),_0x370154[_0x370154[_0x3530('0x11b')]-0x1]++,_0x3a89bc=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x45aba0=null;else{if(_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x45aba0&&_0x377393(_0x45aba0,_0x4a05fa[_0x169d76][_0x3530('0x1a')]))_0x45aba0[_0x3530('0x4d')]+=_0x4a05fa[_0x169d76][_0x3530('0x1a')]['data'];else{const _0x5a33b8=new _0x2a94dd(_0x4a05fa[_0x169d76]['item'][_0x3530('0x19')],_0x4a05fa[_0x169d76][_0x3530('0x1a')][_0x3530('0x41')]());_0x2d95dc[0x0][_0x3530('0xd4')](_0x5a33b8),_0x45aba0=_0x5a33b8;}_0x370154[_0x370154[_0x3530('0x11b')]-0x1]+=_0x4a05fa[_0x169d76][_0x3530('0x1a')][_0x3530('0x5')],_0x3a89bc=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154);}}for(const _0x1514ea of _0x4a05fa[_0x169d76][_0x3530('0x77')])_0x5d0fb3[_0x3530('0x6a')](_0x1514ea,{'start':_0x2f0beb,'end':null});_0x4944cd(_0x3530('0xa1'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0xef'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0xda'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0x13'),_0x169d76,_0x2f0beb,_0x3a89bc);for(const _0x419a05 of _0x4a05fa[_0x169d76][_0x3530('0x10f')]){_0x5d0fb3[_0x3530('0xc2')](_0x419a05)['end']=_0x3a89bc;}}for(const [_0x5cfd73,_0x41f2b0]of _0x5d0fb3){const _0x29e913=this['editor'][_0x3530('0x3f')][_0x3530('0xde')](_0x41f2b0['start'],_0x41f2b0['end']);_0x5b5955['markers']['set'](_0x5cfd73,_0x29e913);}return _0x1146ed[_0x3530('0xb2')]((_0x17b05f,_0x25aeee)=>{const _0x38bb52=_0x5b5955[_0x3530('0x107')][_0x3530('0xc2')]('revision:'+_0x17b05f['id']),_0x5eb7de=_0x5b5955[_0x3530('0x107')][_0x3530('0xc2')]('revision:'+_0x25aeee['id']);return _0x38bb52[_0x3530('0xd2')][_0x3530('0x10')](_0x5eb7de[_0x3530('0xd2')])?-0x1:_0x38bb52[_0x3530('0xd2')][_0x3530('0x18')](_0x5eb7de[_0x3530('0xd2')])?0x1:_0x38bb52[_0x3530('0x7a')][_0x3530('0x10')](_0x5eb7de[_0x3530('0x7a')])?-0x1:_0x38bb52['end']['isAfter'](_0x5eb7de['end'])?0x1:_0x3530('0xf2')===_0x17b05f[_0x3530('0x24')]?-0x1:0x1;}),{'root':_0x5b5955,'changes':_0x1146ed};function _0x4944cd(_0x15796b,_0x3f6ad4,_0x16108f,_0x5e9420){const _0x2b6a05=!!_0x4a05fa[_0x3f6ad4][_0x15796b],_0x2b056f=_0x2b6a05?_0x4a05fa[_0x3f6ad4][_0x15796b]['userId']:null,_0x5e7e6e=_0x3f6ad4===_0x4a05fa[_0x3530('0x11b')]-0x1,_0x515b17=_0x1d5278[_0x15796b][0x0],_0x236181=_0x2e3a8e[_0x3530('0x62')](_0x4a05fa[_0x3f6ad4][_0x3530('0x1a')]);!_0x1acd9e[_0x15796b]&&_0x2b6a05?_0x1acd9e[_0x15796b]={'start':_0x16108f,'tapeItem':_0x4a05fa[_0x3f6ad4],'userId':_0x2b056f,'type':_0x15796b}:_0x1acd9e[_0x15796b]&&!_0x2b6a05?(_0x1acd9e[_0x15796b][_0x3530('0x7a')]=_0x16108f,_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]=null):_0x1acd9e[_0x15796b]&&_0x2b6a05&&_0x1acd9e[_0x15796b][_0x3530('0x11f')]!==_0x2b056f&&(_0x1acd9e[_0x15796b][_0x3530('0x7a')]=_0x16108f,_0x515b17&&_0x515b17[_0x3530('0x11f')]===_0x1acd9e[_0x15796b]['userId']||_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]={'start':_0x16108f,'tapeItem':_0x4a05fa[_0x3f6ad4],'userId':_0x2b056f,'type':_0x15796b}),_0x1acd9e[_0x15796b]&&_0x236181&&(_0x3530('0xa2')!==_0x4a05fa[_0x3f6ad4]['type']||_0x515b17&&_0x515b17[_0x3530('0x11f')]===_0x2b056f||_0x1d5278[_0x15796b][_0x3530('0x1e')]({'userId':_0x2b056f,'object':_0x4a05fa[_0x3f6ad4]['item'],'change':_0x1acd9e[_0x15796b]}),_0x3530('0x47')===_0x4a05fa[_0x3f6ad4][_0x3530('0x24')]&&_0x515b17&&_0x515b17[_0x3530('0xea')]===_0x4a05fa[_0x3f6ad4][_0x3530('0x1a')]&&(_0x1d5278[_0x15796b][_0x3530('0xa5')](),_0x1acd9e[_0x15796b]=_0x515b17[_0x3530('0x11e')])),_0x1acd9e[_0x15796b]&&_0x5e7e6e&&(_0x1acd9e[_0x15796b]['end']=_0x5e9420,_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]=null);}function _0x36afe4({start:_0x3ca2f0,end:_0x3f6143,tapeItem:_0x3988f2,userId:_0x4ff057,type:_0x2740ce}){const _0x5961b4=_0x3988f2[_0x3530('0x1a')],_0x5abb0b=_0x2a8330[_0x3530('0x10c')][_0x3530('0xcf')](_0x5961b4)&&!_0x2a8330[_0x3530('0x10c')]['isLimit'](_0x5961b4),_0x1bc9f4=_0x3ca2f0[_0x3530('0x110')]==_0x3f6143['parent']&&_0x3f6143['isAtStart'];if(_0x5abb0b&&_0x1bc9f4)return;const _0x5ee027=_0x2a8330['createRange'](_0x3ca2f0,_0x3f6143),_0xc89338=_0x46f3e1[_0x3530('0xc2')](_0x4ff057),_0x520f49=new _0x793295({'author':_0xc89338,'type':_0x3530('0x13')==_0x2740ce||_0x3530('0xef')==_0x2740ce?'add':_0x3530('0x9c'),'data':{'isSuggestion':_0x3530('0xef')==_0x2740ce||_0x3530('0xa1')==_0x2740ce},'createdAt':new Date(),'rootName':_0x5bdd82});_0x1146ed[_0x3530('0x29')](_0x520f49),_0x5b5955['markers'][_0x3530('0x6a')](_0x3530('0x8a')+_0x520f49['id'],_0x5ee027);}function _0x377393(_0x4eba6f,_0x35ae63){const _0x161f1d=_0x4eba6f['getAttributes'](),_0x3c9696=_0x35ae63[_0x3530('0x41')]();for(const _0x4c1d40 of _0x161f1d){if(_0x4c1d40[0x1]!==_0x35ae63['getAttribute'](_0x4c1d40[0x0]))return!0x1;_0x3c9696[_0x3530('0xc6')]();}return _0x3c9696[_0x3530('0xc6')]()[_0x3530('0x45')];}}[_0x3530('0xb5')](){this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x7'))[_0x3530('0x88')]({'view':_0x3530('0x54')}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0xa4'))['markerToHighlight']({'model':_0x3530('0x54'),'view':_0x5ef9ff=>{const _0xf83308=_0x5ef9ff['markerName'][_0x3530('0x89')](':')[0x1],_0x1ffc10=this[_0x3530('0xf3')](_0xf83308);if(!_0x1ffc10)return null;const _0x273120=_0x3530('0xf2')==_0x1ffc10['type']?_0x3530('0x55'):_0x3530('0x3a'),_0x2b4304=[_0x3530('0x5c'),_0x3530('0x93')+_0x273120];return _0x1ffc10[_0x3530('0x19')][_0x3530('0x3b')]&&_0x2b4304[_0x3530('0x29')](_0x3530('0x93')+_0x273120+_0x3530('0x52')),this[_0x3530('0x117')]==_0x1ffc10&&_0x2b4304[_0x3530('0x29')](_0x3530('0xbc')),{'classes':_0x2b4304,'attributes':{'data-change-id':_0xf83308}};}}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x7'))[_0x3530('0xf2')](_0xf0fb3f=>{_0xf0fb3f['on'](_0x3530('0x27'),(_0x5dc271,_0x43a8fa,_0x310b3e)=>{const _0x30f6c3=_0x43a8fa[_0x3530('0x70')][_0x3530('0x72')](0x0);if(!_0x30f6c3||!_0x30f6c3['is'](_0x3530('0x60'),_0x3530('0x85')))return;if(!_0x310b3e[_0x3530('0xbe')]['consume'](_0x30f6c3,{'attributes':[_0x3530('0x7e'),_0x3530('0x95')]}))return;const _0x187c8c=_0x43a8fa['modelRange']['start']['nodeAfter'];_0x310b3e['writer'][_0x3530('0xf1')](_0x3530('0x7e'),_0x30f6c3['getAttribute'](_0x3530('0x7e')),_0x187c8c),_0x310b3e[_0x3530('0xf')]['setAttribute'](_0x3530('0x95'),_0x30f6c3['getAttribute'](_0x3530('0x95')),_0x187c8c);},{'priority':_0x3530('0xe')});}),this['editor'][_0x3530('0x102')]['for'](_0x3530('0x7'))['add'](_0x1c9093=>{_0x1c9093['on'](_0x3530('0x60'),(_0x30a19f,_0x21f578,_0x2e3912)=>{if(!_0x2e3912['consumable'][_0x3530('0x4a')](_0x21f578[_0x3530('0x70')],{'attributes':['vid_start',_0x3530('0x95')]}))return;if(_0x21f578['modelRange'][_0x3530('0xe3')])return;const _0x416b1b=_0x21f578[_0x3530('0x6f')][_0x3530('0xd2')][_0x3530('0x110')];_0x416b1b[_0x3530('0x8c')]('vid_start')||_0x416b1b[_0x3530('0x8c')]('vid')||(_0x2e3912[_0x3530('0xf')][_0x3530('0xf1')](_0x3530('0x7e'),_0x21f578[_0x3530('0x70')][_0x3530('0xe0')](_0x3530('0x7e')),_0x416b1b),_0x2e3912[_0x3530('0xf')][_0x3530('0xf1')]('vid_end',_0x21f578[_0x3530('0x70')][_0x3530('0xe0')]('vid_end'),_0x416b1b));},{'priority':_0x3530('0xe')});}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x7'))[_0x3530('0x101')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x350b36=>_0x350b36[_0x3530('0xe0')](_0x3530('0xc4'))}}),this['editor'][_0x3530('0x3f')]['schema']['on'](_0x3530('0x81'),(_0x1d136c,[,_0x54a56b])=>{[_0x3530('0x7e'),'vid_end',_0x3530('0xc4')][_0x3530('0x4')](_0x54a56b)&&(_0x1d136c[_0x3530('0xfd')]=!0x0,_0x1d136c[_0x3530('0x31')]());},{'priority':'highest'}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x49'))[_0x3530('0xf2')](_0x4782ca=>{_0x4782ca['on']('attribute:vid',(_0x21111d,_0xccfdb2,_0x14692b)=>{if('\x20'!=_0xccfdb2[_0x3530('0x1a')][_0x3530('0x19')]||_0xccfdb2['item'][_0x3530('0xa8')][_0x3530('0x30')]>0x1)return;if(!_0x14692b['consumable']['consume'](_0xccfdb2[_0x3530('0x1a')],_0x21111d[_0x3530('0xd5')]))return;const _0x4333dd=_0x14692b['writer'],_0x1fd5e8=_0x14692b[_0x3530('0xeb')][_0x3530('0x74')](_0xccfdb2['range']);_0x4333dd[_0x3530('0x113')](_0x1fd5e8,_0x4333dd[_0x3530('0x11a')]('span'));});}),this[_0x3530('0xa0')]['conversion']['for'](_0x3530('0x49'))[_0x3530('0x116')]({'model':_0x3530('0x54')}),this['editor'][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0xe6'),function(_0xb8fde7){const _0x5cf19f=_0xb8fde7['plugins'][_0x3530('0xc2')]('RevisionViewer');return(_0x535ea7,_0x475239,_0x2caf52)=>{const _0x3775a4=_0x475239[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1],_0x4305ee=_0x5cf19f[_0x3530('0xf3')](_0x3775a4);if(!_0x4305ee)return null;const _0x2ba6e5='add'==_0x4305ee[_0x3530('0x24')]?_0x3530('0x89'):_0x3530('0xff');if(!_0x2caf52['consumable'][_0x3530('0x4e')](_0x475239['markerRange'],_0x535ea7['name']))return;const _0x22f64f=_0x475239[_0x3530('0x53')][_0x3530('0x99')](),_0x2ae8f4=_0x475239[_0x3530('0x53')][_0x3530('0xd2')],_0x1be173=_0xb8fde7[_0x3530('0x3f')][_0x3530('0x10c')];let _0x437355=null,_0x5f53bc=null,_0x144006=!0x1,_0x2454f8=!0x1;for(const _0x344063 of _0x22f64f){const _0xe69e3c=_0x344063['item'];_0x144006=_0x144006||_0x1be173['isContent'](_0xe69e3c);const _0x5eb0f7=_0x2caf52['mapper'][_0x3530('0xd1')](_0xe69e3c);if(_0x5eb0f7&&_0x5eb0f7[_0x3530('0xee')](_0x3530('0xd9')))return;_0x3530('0x47')==_0x344063[_0x3530('0x24')]&&(_0x1be173[_0x3530('0xcf')](_0xe69e3c)&&!_0x1be173['isLimit'](_0xe69e3c)&&(_0xe69e3c[_0x3530('0x36')]||_0x2ae8f4[_0x3530('0x105')]?_0x437355&&_0x437355['parent']==_0xe69e3c||(_0x437355=_0xe69e3c,_0x57ba87(_0x344063[_0x3530('0x22')]),_0x2454f8=!0x0):_0x5f53bc=_0x5f53bc||_0x344063[_0x3530('0x22')]));}function _0x57ba87(_0x1f772b){const _0x1ad502=_0x2caf52[_0x3530('0xf')][_0x3530('0xb3')]('span',{'class':'ck-suggestion-marker-'+_0x2ba6e5}),_0x26f98d=_0x2caf52[_0x3530('0xeb')]['toViewPosition'](_0x1f772b);_0x4305ee[_0x3530('0x19')]['isSuggestion']&&_0x2caf52[_0x3530('0xf')][_0x3530('0x42')](_0x3530('0x93')+_0x2ba6e5+_0x3530('0x52'),_0x1ad502),_0x5cf19f[_0x3530('0x117')]==_0x4305ee&&_0x2caf52[_0x3530('0xf')][_0x3530('0x42')](_0x3530('0xbc'),_0x1ad502),_0x2caf52['writer']['insert'](_0x26f98d,_0x1ad502),_0x2caf52[_0x3530('0xeb')][_0x3530('0x78')](_0x1ad502,_0x475239[_0x3530('0x5f')]);}_0x144006||_0x2454f8||!_0x5f53bc||_0x57ba87(_0x5f53bc);};}(this['editor']),{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2e')]['on']('removeMarker:revision',(_0x1d8d99,_0x441097,_0x4fb7ff)=>{const _0xd3c2bd=_0x4fb7ff[_0x3530('0xeb')][_0x3530('0x56')](_0x441097[_0x3530('0x5f')]);if(_0xd3c2bd)for(const _0x2ea36b of _0xd3c2bd)(_0x2ea36b[_0x3530('0x1d')](_0x3530('0x6'))||_0x2ea36b['hasClass'](_0x3530('0x15')))&&(_0x4fb7ff[_0x3530('0xeb')]['unbindElementFromMarkerName'](_0x2ea36b,_0x441097[_0x3530('0x5f')]),_0x4fb7ff[_0x3530('0xf')][_0x3530('0x9c')](_0x2ea36b));},{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')]['downcastDispatcher']['on']('addMarker:revision',(_0x2b2399,_0x587f43,_0x42d5ad)=>{const _0x440e12=_0x587f43[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1],_0x4a3c65=this[_0x3530('0xf3')](_0x440e12);if(!_0x4a3c65)return null;const _0x25fde9=_0x3530('0xf2')==_0x4a3c65[_0x3530('0x24')]?_0x3530('0x89'):_0x3530('0xff');if(_0x42d5ad['consumable'][_0x3530('0x4e')](_0x587f43['markerRange'],_0x2b2399[_0x3530('0xd5')]))for(const _0x1a466e of _0x587f43[_0x3530('0x53')]['getItems']()){if(!_0x1a466e['is'](_0x3530('0x60'),_0x3530('0x2c')))continue;const _0x1de424=_0x42d5ad[_0x3530('0xf')][_0x3530('0xb3')]('span',{'class':_0x3530('0x93')+_0x25fde9}),_0x3150e0=_0x42d5ad['mapper'][_0x3530('0x108')](this['editor'][_0x3530('0x3f')]['createPositionBefore'](_0x1a466e));_0x4a3c65[_0x3530('0x19')][_0x3530('0x3b')]&&_0x42d5ad['writer'][_0x3530('0x42')](_0x3530('0x93')+_0x25fde9+_0x3530('0x52'),_0x1de424),this[_0x3530('0x117')]==_0x4a3c65&&_0x42d5ad['writer']['addClass'](_0x3530('0xbc'),_0x1de424),_0x42d5ad[_0x3530('0xf')]['insert'](_0x3150e0,_0x1de424),_0x42d5ad[_0x3530('0xeb')][_0x3530('0x78')](_0x1de424,_0x587f43[_0x3530('0x5f')]);}},{'priority':_0x3530('0x59')}),this['editor']['model'][_0x3530('0xdf')]['on'](_0x3530('0x11e'),()=>{this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')][_0x3530('0x11e')](_0x283757=>{for(const _0xbb9966 of this['editor'][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]()){const _0x40cb6c=this['editor'][_0x3530('0x3f')][_0x3530('0xdf')]['getRoot'](_0xbb9966),_0x396400=this[_0x3530('0xa0')][_0x3530('0xb6')]['view'][_0x3530('0xdf')]['getRoot'](_0xbb9966);if(_0x396400){const _0x384a30=_0x40cb6c[_0x3530('0xe0')]('revisionHistoryAttachChange');if(_0x283757['removeAttribute']('data-change-id',_0x396400),_0x283757['removeClass'](_0x3530('0xc9'),_0x396400),_0x283757[_0x3530('0x25')]('ck-revision-history-root-remove',_0x396400),_0x283757['removeClass'](_0x3530('0x10a'),_0x396400),_0x384a30){const _0x5aeceb=this[_0x3530('0xf3')](_0x384a30);if(!_0x5aeceb)return null;_0x283757[_0x3530('0xf1')]('data-change-id',_0x384a30,_0x396400),_0x283757[_0x3530('0x42')](_0x3530('0x6b')+_0x5aeceb[_0x3530('0x24')],_0x396400),this[_0x3530('0x117')]==_0x5aeceb&&_0x283757[_0x3530('0x42')]('ck-revision-history-root--active',_0x396400);}}}});}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x7'))[_0x3530('0x88')]({'view':'comment','model':_0x54feae=>_0x3530('0xf6')+_0x54feae,'converterPriority':_0x3530('0xe8')}),this['editor'][_0x3530('0x102')]['for']('upcast')[_0x3530('0x88')]({'view':_0x3530('0x64'),'model':_0x457601=>_0x3530('0xbd')+_0x457601,'converterPriority':_0x3530('0xe8')}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x49'))[_0x3530('0x116')]({'model':'revision-suggestion','view':_0x346fa9=>({'name':_0x3530('0x2b')+_0x346fa9,'group':_0x3530('0x16')}),'converterPriority':_0x3530('0xe8')}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0xa4'))['markerToHighlight']({'model':_0x3530('0x16'),'view':_0x28c2f9=>{const _0x49663b=_0x28c2f9[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1];return _0x3530('0x55')!=_0x49663b&&_0x3530('0x3a')!=_0x49663b?null:{'classes':['ck-suggestion-preview-marker',_0x3530('0x73')+_0x49663b]};}}),this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0x114'),et(this[_0x3530('0xa0')],_0x3530('0xff')),{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')]['downcastDispatcher']['on'](_0x3530('0xf8'),et(this[_0x3530('0xa0')],_0x3530('0x89')),{'priority':'high'}),this['editor'][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0x112'),(_0x145525,_0x389637,_0x44dc22)=>{const _0x354e63=_0x44dc22[_0x3530('0xeb')][_0x3530('0x56')](_0x389637[_0x3530('0x5f')]);if(_0x354e63)for(const _0x5ec3e1 of _0x354e63)_0x5ec3e1['is'](_0x3530('0x23'))&&(_0x44dc22['mapper'][_0x3530('0xf0')](_0x5ec3e1,_0x389637[_0x3530('0x5f')]),_0x44dc22[_0x3530('0xf')][_0x3530('0x9c')](_0x5ec3e1));},{'priority':'high'});}['_getChangeFromId'](_0x28d880){return this[_0x3530('0xc3')][_0x3530('0xc2')](_0x28d880);}[_0x3530('0xf4')](_0x5ebd09){return this[_0x3530('0xab')]&&this['_changeView'][_0x3530('0x104')](),this['_changeView']=new _0x4de4eb(this[_0x3530('0xa0')]['locale'],_0x5ebd09),this['_changeView'];}['_initInteractions'](){this['editor']['model'][_0x3530('0xdf')][_0x3530('0x9b')]['observeMarkers'](_0x3530('0x54')),this['on']('change:activeView',(_0x236b1f,_0x1c22b0,_0x35d372,_0x2a2ea9)=>{_0x2a2ea9&&this[_0x3530('0xb1')][_0x3530('0x9c')](_0x2a2ea9),_0x35d372&&(this[_0x3530('0xb1')][_0x3530('0xf2')]({'view':_0x35d372,'stackId':_0x3530('0xfa'),'position':{'target':()=>{const _0x1cbc30=this[_0x3530('0xa0')][_0x3530('0xb6')],_0x5a5bc1=this['_getChangeFromId'](_0x35d372[_0x3530('0x20')]);let _0x35724b;if(_0x5a5bc1[_0x3530('0x19')][_0x3530('0xbf')]){const _0xf8a75=_0x1cbc30[_0x3530('0x2d')][_0x3530('0x84')](_0x5a5bc1[_0x3530('0x40')]);_0x35724b=Array['from'](_0xf8a75[_0x3530('0x120')]());}else{const _0x120eb7=this[_0x3530('0xa0')][_0x3530('0x3f')]['markers'][_0x3530('0xc2')]('revision:'+_0x35d372['changeId']);_0x35724b=Array[_0x3530('0x14')](_0x1cbc30['mapper'][_0x3530('0x56')](_0x120eb7[_0x3530('0xd5')]))['map'](_0x341e7f=>_0x1cbc30[_0x3530('0x2d')][_0x3530('0x21')]['mapViewToDom'](_0x341e7f))[_0x3530('0x1')](_0x413a05=>Array[_0x3530('0x14')](_0x413a05[_0x3530('0x120')]()))['flat']();}if(!this['_activeViewTarget'])return _0x35724b[0x0];return _0x35724b[_0x3530('0xd3')](_0x2f43cc=>_0x2f43cc[_0x3530('0xaf')]-0x3<=this[_0x3530('0x11')]['y']&&_0x2f43cc['bottom']+0x3>=this[_0x3530('0x11')]['y']&&_0x2f43cc[_0x3530('0xfe')]-0x3<=this[_0x3530('0x11')]['x']&&_0x2f43cc[_0x3530('0x10b')]+0x3>=this[_0x3530('0x11')]['x'])||_0x35724b[0x0];}}}),this[_0x3530('0xb1')][_0x3530('0x80')](_0x3530('0xfa')));}),this['on'](_0x3530('0x28'),(_0x520e2f,_0x309680,_0x2d820b,_0xc6083)=>{this['activeView']=_0x2d820b?this[_0x3530('0xf4')](_0x2d820b):null,this[_0x3530('0xa0')][_0x3530('0x3f')]['change'](()=>{const _0x21ce49=this['editor'][_0x3530('0xb6')];_0xc6083&&(_0xc6083[_0x3530('0x19')][_0x3530('0xbf')]?_0x21ce49[_0x3530('0x2d')][_0x3530('0x11e')](_0x5ec1b5=>{_0x5ec1b5[_0x3530('0x25')]('ck-revision-history-root--active',_0x21ce49[_0x3530('0x2d')][_0x3530('0xdf')][_0x3530('0xe5')](_0xc6083[_0x3530('0x40')]));}):_0x21ce49[_0x3530('0x6e')](_0x3530('0x8a')+_0xc6083['id'])),_0x2d820b&&(_0x2d820b[_0x3530('0x19')][_0x3530('0xbf')]?_0x21ce49[_0x3530('0x2d')][_0x3530('0x11e')](_0xb4e3f7=>{_0xb4e3f7[_0x3530('0x42')](_0x3530('0x10a'),_0x21ce49['view']['document'][_0x3530('0xe5')](_0x2d820b[_0x3530('0x40')]));}):_0x21ce49['reconvertMarker'](_0x3530('0x8a')+_0x2d820b['id']));});}),this[_0x3530('0xba')](this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document'],_0x3530('0x7c'),(_0x265a4c,_0x543d58)=>{if(this[_0x3530('0x117')])return;const _0x7dcbcd=this[_0x3530('0x17')](_0x543d58['target']),_0x2198f9=this[_0x3530('0xc3')][_0x3530('0xc2')](_0x7dcbcd);_0x2198f9?(this[_0x3530('0x11')]={'x':_0x543d58['domEvent']['x'],'y':_0x543d58['domEvent']['y']},this['activeView']=this[_0x3530('0xf4')](_0x2198f9)):(this[_0x3530('0x11')]=null,this[_0x3530('0x96')]=null);}),this['listenTo'](this['editor'][_0x3530('0xb6')]['view'][_0x3530('0xdf')],_0x3530('0xd6'),(_0x443135,_0x328c2d)=>{const _0x21f942=this['_findChangeIdFromDomTarget'](_0x328c2d[_0x3530('0x39')]),_0x4a2bac=this['_changeIdToChange'][_0x3530('0xc2')](_0x21f942);_0x4a2bac?(this[_0x3530('0x11')]={'x':_0x328c2d[_0x3530('0xb8')]['x'],'y':_0x328c2d['domEvent']['y']},_0x4a2bac===this['activeChange']?this[_0x3530('0xb1')]['updatePosition']():this[_0x3530('0x117')]=_0x4a2bac):(this[_0x3530('0x11')]=null,this[_0x3530('0x117')]=null);});}['_findChangeIdFromDomTarget'](_0x2ab6de){do{const _0x42c67a=_0x2ab6de[_0x3530('0xe0')]('data-change-id');if(_0x42c67a)return _0x42c67a;_0x2ab6de=_0x2ab6de['parent'];}while(_0x2ab6de);return null;}[_0x3530('0x57')](){this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x11e')](_0xfbc2dc=>{for(const _0x338e2f of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x107')])_0xfbc2dc[_0x3530('0x118')](_0x338e2f);});}}function et(_0x404b22,_0x29f2df){return(_0x1de3c5,_0x49fc57,_0x4af3d0)=>{if(!_0x4af3d0[_0x3530('0xbe')][_0x3530('0x4e')](_0x49fc57[_0x3530('0x53')],_0x1de3c5['name']))return;const _0x5f559a=_0x49fc57[_0x3530('0x53')][_0x3530('0x99')](),_0x412c25=_0x49fc57['markerRange'][_0x3530('0xd2')],_0x4fcc46=_0x404b22[_0x3530('0x3f')][_0x3530('0x10c')];let _0x2b4713=null,_0x3d0d62=null,_0x202346=!0x1,_0x196fad=!0x1;for(const _0x381f91 of _0x5f559a){const _0x5bf403=_0x381f91['item'];_0x202346=_0x202346||_0x4fcc46[_0x3530('0x3c')](_0x5bf403);const _0x4270e7=_0x4af3d0[_0x3530('0xeb')]['toViewElement'](_0x5bf403);if(_0x4270e7&&_0x4270e7['getCustomProperty'](_0x3530('0xd9')))return;_0x3530('0x47')==_0x381f91[_0x3530('0x24')]&&(_0x4fcc46['isBlock'](_0x5bf403)&&!_0x4fcc46[_0x3530('0x6d')](_0x5bf403)&&(_0x5bf403['nextSibling']||_0x412c25[_0x3530('0x105')]?_0x2b4713&&_0x2b4713['parent']==_0x5bf403||(_0x2b4713=_0x5bf403,_0x34c587(_0x381f91[_0x3530('0x22')]),_0x196fad=!0x0):_0x3d0d62=_0x3d0d62||_0x381f91['previousPosition']));}function _0x34c587(_0x1940c8){const _0x120604=_0x4af3d0[_0x3530('0xeb')][_0x3530('0x108')](_0x1940c8),_0x3a4013=_0x4af3d0[_0x3530('0xf')][_0x3530('0xb3')](_0x3530('0x61'),{'class':_0x3530('0x73')+_0x29f2df});_0x4af3d0['writer'][_0x3530('0x7f')](_0x120604,_0x3a4013),_0x4af3d0['mapper']['bindElementToMarker'](_0x3a4013,_0x49fc57['markerName']);}_0x202346||_0x196fad||!_0x3d0d62||_0x34c587(_0x3d0d62);};}export class RestoreRevisionCommand extends _0x346961{constructor(_0x5cba7a){super(_0x5cba7a);const _0xa6bc1c=_0x5cba7a[_0x3530('0x97')][_0x3530('0xc2')](d);this[_0x3530('0xfc')]=!0x1,this[_0x3530('0xba')](_0xa6bc1c,_0x3530('0x9f'),()=>this['refresh']()),this[_0x3530('0xba')](_0xa6bc1c,_0x3530('0xed'),()=>this[_0x3530('0x33')]());}[_0x3530('0x76')](){const _0x54a93b=this[_0x3530('0xa0')],_0x80ef95=_0x54a93b[_0x3530('0x97')][_0x3530('0xc2')](d),_0x1ac6fe=_0x80ef95[_0x3530('0xcd')]?_0x80ef95['diff'][_0x3530('0xc5')]:null;_0x54a93b[_0x3530('0x3e')][_0x3530('0xc2')](_0x3530('0x5e'))['restoreRevisionCallback'](_0x1ac6fe);}['refresh'](){const {isReady:_0x100647,isEnabled:_0x3a3ae0}=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](d);this[_0x3530('0xdb')]=_0x100647&&_0x3a3ae0;}}export class ShowChangeCommand extends _0x346961{constructor(_0x432a0c,{direction:_0x3d2597}){super(_0x432a0c);const _0x47c04f=_0x432a0c[_0x3530('0x97')]['get'](d);this[_0x3530('0xfc')]=!0x1,this[_0x3530('0x8f')]=_0x3530('0x3')===_0x3d2597?0x1:-0x1,this[_0x3530('0xba')](_0x47c04f,_0x3530('0x9f'),()=>this[_0x3530('0x33')]()),this['listenTo'](_0x47c04f,_0x3530('0xed'),()=>this[_0x3530('0x33')]()),this['listenTo'](_0x47c04f,_0x3530('0x28'),()=>this[_0x3530('0x33')]());}[_0x3530('0x76')](){const _0x11a523=this[_0x3530('0xa0')],_0x1e0dad=_0x11a523[_0x3530('0x97')][_0x3530('0xc2')](d),{isNavigationMode:_0x5cd7e1,currentChangeNumber:_0x5b69f0}=_0x1e0dad;let _0x1b8231;if(_0x1e0dad[_0x3530('0x117')]=_0x5cd7e1?_0x1e0dad[_0x3530('0x86')][_0x3530('0x1f')][_0x3530('0xc2')](_0x5b69f0+this[_0x3530('0x8f')]):_0x1e0dad[_0x3530('0x86')][_0x3530('0x1f')][_0x3530('0xa6')],_0x1e0dad['activeChange'][_0x3530('0x19')]['isOnRoot'])_0x1b8231=_0x11a523['editing']['view'][_0x3530('0x84')](_0x1e0dad[_0x3530('0x117')]['rootName']);else{const _0x289570=_0x11a523[_0x3530('0x3f')][_0x3530('0x107')][_0x3530('0xc2')](_0x3530('0x8a')+_0x1e0dad['activeChange']['id']);_0x1b8231=_0x4630dd(_0x11a523[_0x3530('0xb6')],_0x289570);}_0x11d83f({'target':_0x1b8231,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1c0bfc,currentChangeNumber:_0x3ddc1f,numberOfChanges:_0x57efa3,isReady:_0x441a42,isEnabled:_0x37b866}=this['editor']['plugins'][_0x3530('0xc2')](d);this['isEnabled']=!!(_0x37b866&&_0x441a42&&_0x57efa3)&&(!_0x1c0bfc||(0x1===this[_0x3530('0x8f')]?_0x3ddc1f<_0x57efa3-0x1:_0x3ddc1f>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c0a=['buttonView','Show\x20more\x20items','action','first','extendTemplate','button','function','source','Compare\x20against\x20selected','isReady','find','Name\x20this\x20revision','stopPropagation','execute','listenTo','_action','isActionsDropdownOpen','locale','listView','bindTemplate','threeVerticalDots','isVisible','isEnabled','items','bind','map','change:isActionsDropdownOpen','name'];(function(_0x1b61ca,_0x1c0a71){const _0x41e283=function(_0x99264){while(--_0x99264){_0x1b61ca['push'](_0x1b61ca['shift']());}};_0x41e283(++_0x1c0a71);}(_0x1c0a,0x6b));const _0x41e2=function(_0x1b61ca,_0x1c0a71){_0x1b61ca=_0x1b61ca-0x0;let _0x41e283=_0x1c0a[_0x1b61ca];return _0x41e283;};import{Collection as _0x5e1965}from'ckeditor5/src/utils.js';import{icons as _0x152a66}from'ckeditor5/src/core.js';import{ViewModel as _0xa136e1,addListToDropdown as _0x5cc0f2,createDropdown as _0x4def5b}from'ckeditor5/src/ui.js';import{getTranslation as _0x2291b8}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1cb804,_0x518a5a){const _0x8244b5=_0x1cb804[_0x41e2('0x18')],_0x23e4d2=_0x1cb804[_0x41e2('0x16')],_0x503f3b=_0x4def5b(_0x23e4d2);_0x503f3b['panelPosition']='sw';const _0x1b0306=function(_0x1f6234,_0x335d7c){const _0x342976=function(_0x76772,_0x36ce80){const _0x517091=_0x76772[_0x41e2('0x16')],_0x3dd47d={'Compare\x20against\x20selected':_0x2291b8(_0x517091,_0x41e2('0xd')),'Name\x20this\x20revision':_0x2291b8(_0x517091,_0x41e2('0x10')),'Restore\x20this\x20revision':_0x2291b8(_0x517091,'Restore\x20this\x20revision')};return _0x36ce80[_0x41e2('0x2')](_0x322ee8=>{const _0x4d0a74=_0x3dd47d[_0x322ee8[_0x41e2('0x4')]];return _0x4d0a74&&_0x4d0a74!==_0x322ee8[_0x41e2('0x4')]&&(_0x322ee8['name']=_0x4d0a74),_0x322ee8;});}(_0x1f6234,_0x335d7c),_0x5c9b6a=new _0x5e1965();for(const _0x2f2c5b of _0x342976){const _0x4dd309={'type':_0x41e2('0xa'),'model':new _0xa136e1({'label':_0x2f2c5b[_0x41e2('0x4')],'class':_0x2f2c5b['class'],'withText':!0x0,'_action':_0x2f2c5b[_0x41e2('0x7')]})};_0x4dd309['model']['bind'](_0x41e2('0x1b'))['to'](_0x1f6234,_0x41e2('0x15'),_0x51de5c=>_0x41e2('0xb')!=typeof _0x2f2c5b[_0x41e2('0x1b')]||(!_0x51de5c||_0x2f2c5b[_0x41e2('0x1b')](_0x1f6234))),_0x5c9b6a['add'](_0x4dd309);}return _0x5c9b6a;}(_0x1cb804,_0x518a5a);return _0x1cb804[_0x41e2('0x1')]('isActionsDropdownOpen')['to'](_0x503f3b,'isOpen'),_0x503f3b[_0x41e2('0x5')]['set']({'label':_0x2291b8(_0x23e4d2,_0x41e2('0x6')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x152a66[_0x41e2('0x19')]}),_0x503f3b[_0x41e2('0x9')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x8244b5['if'](_0x41e2('0x15'),'ck-on')]},'on':{'click':_0x8244b5['to'](_0x49aaab=>_0x49aaab[_0x41e2('0x11')]())}}),_0x503f3b['on'](_0x41e2('0x12'),_0x4f7413=>{_0x1cb804[_0x41e2('0xe')]&&_0x41e2('0xb')==typeof _0x4f7413[_0x41e2('0xc')][_0x41e2('0x14')]&&_0x4f7413[_0x41e2('0xc')][_0x41e2('0x14')](_0x1cb804);}),_0x5cc0f2(_0x503f3b,_0x1b0306),_0x503f3b[_0x41e2('0x13')](_0x1cb804,_0x41e2('0x3'),(_0x522f1c,_0x42e993,_0x549342)=>{if(_0x549342)for(const _0x4d8a6d of _0x503f3b[_0x41e2('0x17')][_0x41e2('0x0')]){const _0x16709e=_0x4d8a6d['children'][_0x41e2('0x8')],_0x427fe3=_0x518a5a[_0x41e2('0xf')](_0x3c1354=>_0x3c1354['action']===_0x16709e[_0x41e2('0x14')])[_0x41e2('0x1a')];_0x4d8a6d['isVisible']=void 0x0===_0x427fe3||_0x427fe3(_0x1cb804);}}),_0x503f3b;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x293f=['ck-revision-history-sidebar__revision-author','name','Revision\x20creator','setTemplate','set','push','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','0\x200\x2011\x2010'];(function(_0x139282,_0x293f5d){const _0x4c32a8=function(_0x5cb37b){while(--_0x5cb37b){_0x139282['push'](_0x139282['shift']());}};_0x4c32a8(++_0x293f5d);}(_0x293f,0xb6));const _0x4c32=function(_0x139282,_0x293f5d){_0x139282=_0x139282-0x0;let _0x4c32a8=_0x293f[_0x139282];return _0x4c32a8;};import{View as _0x3a9002,IconView as _0x26240c}from'ckeditor5/src/ui.js';import{getTranslation as _0x592c6a}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x55c3c from'../../../theme/icons/user.svg';export default class ti extends _0x3a9002{constructor(_0x157e67,_0x462686,_0x45ac99){super(_0x157e67);const _0x41078a=new _0x26240c();_0x41078a[_0x4c32('0x2')]({'content':_0x55c3c,'viewBox':_0x4c32('0x6')});const _0x11c598=['ck',_0x4c32('0x7')];_0x45ac99&&_0x11c598[_0x4c32('0x3')](_0x4c32('0x4'));const _0x52f1d4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x592c6a(_0x157e67,_0x45ac99?_0x4c32('0x0'):_0x4c32('0x5'))},'children':[_0x41078a,_0x462686[_0x4c32('0x8')]]}];this[_0x4c32('0x1')]({'tag':'li','attributes':{'class':_0x11c598},'children':_0x52f1d4});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x509f=['span','set','ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name'];(function(_0x6847ec,_0x509f65){var _0x29be4d=function(_0x2f0d5f){while(--_0x2f0d5f){_0x6847ec['push'](_0x6847ec['shift']());}};_0x29be4d(++_0x509f65);}(_0x509f,0x7f));var _0x29be=function(_0x6847ec,_0x509f65){_0x6847ec=_0x6847ec-0x0;var _0x29be4d=_0x509f[_0x6847ec];return _0x29be4d;};import{LabeledFieldView as _0x185310}from'ckeditor5/src/ui.js';import{getTranslation as _0x32e348}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x185310{constructor(_0x30b73d,_0x224c58){super(_0x30b73d,_0x224c58),this[_0x29be('0x4')]({'label':_0x32e348(_0x30b73d,_0x29be('0x2'))}),this[_0x29be('0x1')]({'tag':_0x29be('0x3'),'attributes':{'class':[_0x29be('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35b1=['ck-revision-history-sidebar__revision__date','change','setTemplate','creator','set','ck-revision-history-sidebar__revision-wrapper','ck-reset','bind','isHighlighted','fieldView','highlight','select','isEnabled','from','srcElement','isReady','_createdAtFormatted','createdAt','bindTemplate','name','ck-revision-history-sidebar__revision','_revision','element','ck-revision-history-sidebar__revision_selected','isSelected','authors','div','ck-revision-history-sidebar__revision-authors','uiLanguage','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','fire','ck-revision-history-sidebar__revision__controls-wrapper','unhighlight','.ck-thread__remove-confirm','revisionActionsView','value','ck-revision-history-sidebar__actions_dropdown_open','isActionsDropdownOpen','render','revisionNameView','isConfirm','filter','closest'];(function(_0x46fde5,_0x35b16f){const _0x41e997=function(_0x1e8001){while(--_0x1e8001){_0x46fde5['push'](_0x46fde5['shift']());}};_0x41e997(++_0x35b16f);}(_0x35b1,0x18e));const _0x41e9=function(_0x46fde5,_0x35b16f){_0x46fde5=_0x46fde5-0x0;let _0x41e997=_0x35b1[_0x46fde5];return _0x41e997;};import{View as _0x79998b,createLabeledInputText as _0x3ee10a}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x974918}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2a1418 from'./revisionnameview.js';import _0x52aa82 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x1811bd}from'./utils.js';import{createActionsDropdownView as _0x1587f7}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x974918(_0x79998b){constructor(_0x40b9fc,_0xf362d7,_0x514421){super(_0x40b9fc);const _0x3fb02e=this[_0x41e9('0x7')],_0x125ac3=function(_0x31a4c1,_0x17aabd){const _0x27a72d=Array[_0x41e9('0x2')](_0x17aabd[_0x41e9('0xe')])[_0x41e9('0x1e')](_0x113eb9=>_0x113eb9!=_0x17aabd['creator']);return _0x17aabd[_0x41e9('0x23')]&&_0x27a72d['unshift'](_0x17aabd[_0x41e9('0x23')]),_0x27a72d['map'](_0x36f27b=>new _0x52aa82(_0x31a4c1,_0x36f27b,_0x36f27b==_0x17aabd[_0x41e9('0x23')]));}(_0x40b9fc,_0xf362d7);this['id']=_0xf362d7['id'],this[_0x41e9('0xa')]=_0xf362d7,this[_0x41e9('0x27')](_0x41e9('0x8'),'createdAt')['to'](_0xf362d7),this[_0x41e9('0x27')](_0x41e9('0x5'))['to'](this,_0x41e9('0x6'),_0x100fa3=>_0x100fa3?_0x1811bd(_0x40b9fc[_0x41e9('0x11')],_0x100fa3):void 0x0),this[_0x41e9('0x24')](_0x41e9('0xd'),!0x1),this['set'](_0x41e9('0x28'),!0x1),this[_0x41e9('0x24')](_0x41e9('0x1a'),!0x1),this[_0x41e9('0x24')](_0x41e9('0x4'),!0x1),this['set']('isEnabled',!0x1),this[_0x41e9('0x1c')]=new _0x2a1418(_0x40b9fc,_0x3ee10a),this['revisionNameView'][_0x41e9('0x29')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x41e9('0x1c')]['fieldView'][_0x41e9('0x27')](_0x41e9('0x18'),'placeholder')['to'](this,_0x41e9('0x8'),_0x41e9('0x5')),this['revisionNameView'][_0x41e9('0x27')](_0x41e9('0x1'))['to'](this,_0x41e9('0xd'),this,_0x41e9('0x1'),(_0x24ae8f,_0x23f810)=>_0x24ae8f&&_0x23f810),this[_0x41e9('0x17')]=_0x514421&&_0x514421['length']?_0x1587f7(this,_0x514421):'',this[_0x41e9('0x17')]&&this[_0x41e9('0x17')][_0x41e9('0x27')](_0x41e9('0x1'))['to'](this),this[_0x41e9('0x22')]({'tag':'div','attributes':{'class':['ck',_0x41e9('0x26'),_0x41e9('0x25'),_0x3fb02e['if'](_0x41e9('0x1d'),_0x41e9('0x12'))]},'children':[{'tag':_0x41e9('0xf'),'attributes':{'class':['ck',_0x41e9('0x26'),_0x41e9('0x9'),_0x3fb02e['if'](_0x41e9('0x1'),'ck-disabled',_0x2606c3=>!_0x2606c3),_0x3fb02e['if'](_0x41e9('0xd'),_0x41e9('0xc')),_0x3fb02e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3fb02e['if'](_0x41e9('0x1a'),_0x41e9('0x19'))]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck',_0x41e9('0x20')]},'children':[{'text':_0x3fb02e['to'](_0x41e9('0x5'))}]},{'tag':'div','attributes':{'class':['ck',_0x41e9('0x14')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x41e9('0x10')]},'children':_0x125ac3}]},this[_0x41e9('0x17')]],'on':{'click':_0x3fb02e['to'](_0x4ade2e=>{_0x4ade2e[_0x41e9('0x3')][_0x41e9('0x1f')](_0x41e9('0x16'))||this[_0x41e9('0x4')]&&this[_0x41e9('0x1')]&&this['fire']('select',{'id':this['id']});})}}]});}[_0x41e9('0x1b')](){super[_0x41e9('0x1b')]();const _0x299910=this[_0x41e9('0x1c')][_0x41e9('0x29')][_0x41e9('0xb')];this['listenTo'](_0x299910,_0x41e9('0x21'),()=>{this[_0x41e9('0x13')]('setName',{'id':this['id'],'name':_0x299910[_0x41e9('0x18')]});});}[_0x41e9('0x0')](){this['isSelected']=!0x0;}['deselect'](){this[_0x41e9('0xd')]=!0x1;}[_0x41e9('0x2a')](){this[_0x41e9('0x28')]=!0x0;}[_0x41e9('0x15')](){this[_0x41e9('0x28')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ad1=['click','true','false','ck-revision-history-sidebar__subrevision-collapser__inner','set','span','ck-revision-history-sidebar__subrevision-collapser','toggle','_isCollapsed','button','isVisible'];(function(_0x3ed913,_0x2ad1ee){const _0x3fab15=function(_0x24fb11){while(--_0x24fb11){_0x3ed913['push'](_0x3ed913['shift']());}};_0x3fab15(++_0x2ad1ee);}(_0x2ad1,0x16c));const _0x3fab=function(_0x3ed913,_0x2ad1ee){_0x3ed913=_0x3ed913-0x0;let _0x3fab15=_0x2ad1[_0x3ed913];return _0x3fab15;};import{View as _0x5ece6f}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x5ece6f{constructor(_0x475f2c){super(_0x475f2c);const _0x5dc3f1=this['bindTemplate'];this[_0x3fab('0x3')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x3fab('0x4'),'attributes':{'class':['ck',_0x3fab('0x5'),_0x5dc3f1['if'](_0x3fab('0x9'),'ck-hidden',_0x14949f=>!_0x14949f),_0x5dc3f1['if'](_0x3fab('0x7'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x3fab('0x8'),'aria-pressed':_0x5dc3f1['to']('_isCollapsed',_0x2cb748=>_0x2cb748?_0x3fab('0x1'):_0x3fab('0x0'))},'children':[{'tag':_0x3fab('0x4'),'attributes':{'class':['ck',_0x3fab('0x2')]}}],'on':{'click':_0x5dc3f1['to'](_0x3fab('0xa'))}});}[_0x3fab('0x6')](){this[_0x3fab('0x7')]=!this[_0x3fab('0x7')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35b3=['ck-revision-history-sidebar__subrevision','fire','ck-revision-history-sidebar__revision__date','isSelected','bindTemplate','uiLanguage','select','ck-reset','bind','_createdAtFormatted','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','set','ck-revision-history-sidebar__revision_selected','creator','div'];(function(_0x54a617,_0x35b341){const _0x42fa32=function(_0x296a32){while(--_0x296a32){_0x54a617['push'](_0x54a617['shift']());}};_0x42fa32(++_0x35b341);}(_0x35b3,0x1c7));const _0x42fa=function(_0x54a617,_0x35b341){_0x54a617=_0x54a617-0x0;let _0x42fa32=_0x35b3[_0x54a617];return _0x42fa32;};import{View as _0x272d96}from'ckeditor5/src/ui.js';import _0x3a62b4 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x408eb1}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x272d96{constructor(_0x2bafb9,_0x1d1487,_0x2da033){super(_0x2bafb9);const _0x32405b=this[_0x42fa('0xd')];this['id']=_0x1d1487['id'],this[_0x42fa('0x1')]('createdAt')['to'](_0x1d1487),this[_0x42fa('0x5')](_0x42fa('0xc'),!0x1),this[_0x42fa('0x1')](_0x42fa('0x2'))['to'](this,'createdAt',_0x39010d=>_0x39010d?_0x408eb1(_0x2bafb9[_0x42fa('0xe')],_0x39010d):void 0x0),this['_parentRevisionId']=_0x2da033,this['setTemplate']({'tag':_0x42fa('0x8'),'attributes':{'class':['ck',_0x42fa('0x0'),_0x42fa('0x3'),_0x42fa('0x9'),_0x32405b['if'](_0x42fa('0xc'),_0x42fa('0x6'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x42fa('0xb')]},'children':[{'text':_0x32405b['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x42fa('0x4')]},'children':[new _0x3a62b4(_0x2bafb9,_0x1d1487[_0x42fa('0x7')],!0x0)]}],'on':{'click':_0x32405b['to'](this[_0x42fa('0xf')][_0x42fa('0x1')](this))}});}[_0x42fa('0xf')](){this[_0x42fa('0xc')]=!0x0,this[_0x42fa('0xa')](_0x42fa('0xf'),{'parentId':this['_parentRevisionId']});}['deselect'](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1694=['numeric','long','toLocaleDateString'];(function(_0x1856ba,_0x169491){var _0x4803f7=function(_0x38dd98){while(--_0x38dd98){_0x1856ba['push'](_0x1856ba['shift']());}};_0x4803f7(++_0x169491);}(_0x1694,0xca));var _0x4803=function(_0x1856ba,_0x169491){_0x1856ba=_0x1856ba-0x0;var _0x4803f7=_0x1694[_0x1856ba];return _0x4803f7;};export function dateToPrettyFormat(_0x5c91e1,_0x52af1e){return _0x52af1e[_0x4803('0x1')](_0x5c91e1,{'month':_0x4803('0x0'),'day':_0x4803('0x2')})+',\x20'+_0x52af1e['toLocaleTimeString'](_0x5c91e1,{'hour':'numeric','minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe184=['reset','render','fieldView','ck-button-cancel','arrowup','check','arrowdown','_createRevisionNameInput','keystrokes','shift\x20+\x20tab','saveButtonView','submit','revisionNameInputValue','stopPropagation','form','add','set','revisionName','arrowleft','input','tab','execute','locale','value','focusFirst','trim','_focusables','element','Cancel','focusTracker','delegate','revisionNameInputView','Name\x20of\x20the\x20revision\x20(optional)','cancel','220','ck-revision-history-save-revision-form','_createButton'];(function(_0x37ce93,_0xe18464){const _0x199d79=function(_0x40c216){while(--_0x40c216){_0x37ce93['push'](_0x37ce93['shift']());}};_0x199d79(++_0xe18464);}(_0xe184,0x14e));const _0x199d=function(_0x37ce93,_0xe18464){_0x37ce93=_0x37ce93-0x0;let _0x199d79=_0xe184[_0x37ce93];return _0x199d79;};import{icons as _0x5e3e80}from'ckeditor5/src/core.js';import{ButtonView as _0x2dc569,FocusCycler as _0x4ad69e,LabeledFieldView as _0x81f9de,View as _0x5575ea,ViewCollection as _0x44933d,createLabeledInputText as _0x5a13d2,injectCssTransitionDisabler as _0x16569e,submitHandler as _0x4c90a6}from'ckeditor5/src/ui.js';import{FocusTracker as _0x2e5695,KeystrokeHandler as _0xf8d163}from'ckeditor5/src/utils.js';import{getTranslation as _0x7278df}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5575ea{constructor(_0x2d62ab){super(_0x2d62ab),this[_0x199d('0x1c')]=new _0x2e5695(),this[_0x199d('0x7')]=new _0xf8d163(),this[_0x199d('0xf')](_0x199d('0xb'),''),this['revisionNameInputView']=this[_0x199d('0x6')](),this[_0x199d('0x9')]=this[_0x199d('0x23')](_0x7278df(_0x2d62ab,'Save'),_0x5e3e80[_0x199d('0x4')],'ck-button-save'),this[_0x199d('0x9')]['type']=_0x199d('0xa'),this['cancelButtonView']=this[_0x199d('0x23')](_0x7278df(_0x2d62ab,_0x199d('0x1b')),_0x5e3e80[_0x199d('0x20')],_0x199d('0x2'),_0x199d('0x20')),this[_0x199d('0x19')]=new _0x44933d(),this['_focusCycler']=new _0x4ad69e({'focusables':this[_0x199d('0x19')],'focusTracker':this[_0x199d('0x1c')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x199d('0x8'),'focusNext':_0x199d('0x13')}}),this['setTemplate']({'tag':_0x199d('0xd'),'attributes':{'class':['ck',_0x199d('0x22'),'ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]}),_0x16569e(this);}[_0x199d('0x0')](){super['render'](),_0x4c90a6({'view':this}),([this['revisionNameInputView'],this[_0x199d('0x9')],this['cancelButtonView']]['forEach'](_0x47a9a0=>{this[_0x199d('0x19')][_0x199d('0xe')](_0x47a9a0),this[_0x199d('0x1c')]['add'](_0x47a9a0[_0x199d('0x1a')]);}),this[_0x199d('0x7')]['listenTo'](this[_0x199d('0x1a')]));const _0x2d5fc3=_0x1a5172=>_0x1a5172[_0x199d('0xc')]();this[_0x199d('0x7')][_0x199d('0xf')]('arrowright',_0x2d5fc3),this[_0x199d('0x7')][_0x199d('0xf')](_0x199d('0x11'),_0x2d5fc3),this[_0x199d('0x7')][_0x199d('0xf')](_0x199d('0x3'),_0x2d5fc3),this[_0x199d('0x7')][_0x199d('0xf')](_0x199d('0x5'),_0x2d5fc3);}['focus'](){this['_focusCycler'][_0x199d('0x17')]();}get['revisionName'](){return this['revisionNameInputView'][_0x199d('0x1')][_0x199d('0x1a')]['value'][_0x199d('0x18')]();}set[_0x199d('0x10')](_0x5a7878){this[_0x199d('0x1e')]['fieldView'][_0x199d('0x1a')][_0x199d('0x16')]=_0x5a7878['trim']();}[_0x199d('0x24')](){this[_0x199d('0x1e')]['fieldView']['element'][_0x199d('0x16')]='';}['_createRevisionNameInput'](){const _0x1f0ce5=new _0x81f9de(this[_0x199d('0x15')],_0x5a13d2),_0x16f0d1=_0x1f0ce5[_0x199d('0x1')];return _0x16f0d1['extendTemplate']({'attributes':{'maxlength':_0x199d('0x21')}}),_0x1f0ce5['label']=_0x7278df(this[_0x199d('0x15')],_0x199d('0x1f')),_0x16f0d1['on'](_0x199d('0x12'),()=>{this[_0x199d('0xb')]=_0x16f0d1[_0x199d('0x1a')]['value'][_0x199d('0x18')]();}),_0x1f0ce5;}[_0x199d('0x23')](_0x571c50,_0x29bfa6,_0x59f7ee,_0x414924){const _0x41b979=new _0x2dc569(this['locale']);return _0x41b979[_0x199d('0xf')]({'label':_0x571c50,'icon':_0x29bfa6,'tooltip':!0x0}),_0x41b979['extendTemplate']({'attributes':{'class':_0x59f7ee}}),_0x414924&&_0x41b979[_0x199d('0x1d')](_0x199d('0x14'))['to'](this,_0x414924),_0x41b979;}}
|