@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230706.0 → 0.0.0-nightly-20230708.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x45d0=['showStack','roots','getRevision','getItems','getRoot','side','consume','hasAttribute','insert','elementStart','_fixObsoleteTags','restoreRevisionCallback','markerNameToElements','_cleanMarkers','insertions','suggestion','_removeMissingPairs','end','elementEnd','isBlock','vid_end','toViewRange','numberOfChanges','oldRevisionId','_removeRevisionMarkers','findIndex','startsWith','flat','ck-suggestion-preview-marker-','ck-suggestion-marker--active','-new','set','_markInsertions','commands','removeMarker:revision','createAttributeElement','model','isAttached','change:activeView','upcast','getAttributes','uiElement','isObject','createUIElement','startIndex','createPositionBefore','getDomRoot','indexOf','for','low','revision','isAdded','modelRange','change:isEnabled','activeView','destroy','toModel','children','parent','editor','mouseover','getAttribute','writer','length','domEvent','previousPosition','pluginName','unbindElementFromMarkerName','_refreshStartEndIndex','highest','string','isInline','deletion','keys','_changeIdToChange','delete','downcastDispatcher','backward','isIncorrect','updatePosition','locale','text','activeChange','getWalker','getIndex','elementToAttribute','isAtEnd','values','ck-revision-history-root--active','ck-suggestion-marker-merge','_getDiff','schema','markerName','maxOffset','isCollapsed','revision-suggestion:','rootName','pairId','isSuggestion','addHighlight','revision:','from','getChild','mousedown','filter','diffData','removeClass','_activeViewTarget','ck-revision-history-root-remove','left','span','_cleanUp','level','attribute:vid','isEqual','isRemoved','dataToMarker','vid','_markMismatchedRemovedTags','conversion','viewItem','find','_findChangeIdFromDomTarget','consumable','plugins','right','isEnabled','ck-revision-history-root-','split','offsetSize','enqueueChange','deletions','markerRange','_revisions','mapViewToDom','data-change-id','_removeUnsupportedChanges','then','ck-suggestion-marker-','attributes','requires','sort','_makeModelFromTape','all','editingDowncast','RevisionsRepository','remove','softBreak','newRevisionId','pop','change:activeChange','changeId','parse','toViewPosition','high','ck-suggestion-marker','_setChanges','revision-comment:','changes','add','attachChange','_changeView','_setConversion','config','getRevisionRootsAttributes','insertion','_markMarkers','isOnRoot','selection','_makeModelFromViewString','_step','vid_start','enableReadOnlyMode','hasClass','change:isReady','createRange','isContent','_getViewObj','RevisionViewer','change:numberOfChanges','attributesBefore','authors','_initInteractions','mapper','getRootNames','detachRoot','adapter','map','isLimit','addClass','editing','WidgetToolbarRepository','includes','resolve','domConverter','endIndex','markerToHighlight','bottom','attributesAfter','forEach','addRevision','isAddSuggestion','userId','test','useFillerType','dataDowncast','revision-end','isAfter','compare','refresh','change','shift','get','_setDistance','_threeWayMerge','view','_makeTape','nextPosition','markersStart','next','forward','target','clear','showPreviousChange','distance','repository','code','isRemoveSuggestion','unshift','forceDisabled','bind','affectsData','top','addRevisionData','createPositionFromPath','POSITIVE_INFINITY','revisionHistoryAttachChange','isBefore','revisionHistoryLabel','catch','revision-viewer','loadRevisionData','markerToData','reconvertMarker','processor','currentChangeNumber','_processTape','observeMarkers','type','isReady','diff','addMarker:revision-suggestion:deletion','_getViewForChange','splice','setAttribute','markers','document','init','comment','_markSuggestions','_update','item','_getChangeFromId','start','revision-suggestion','bindElementToMarker','addMarker:revision','revisionHistory','getCustomProperty','element','nodeAfter','element:pre','data','_joinTapes','name','removeMarker','markersEnd','_getRevisionsRange','_balloon','stop','wrap','listenTo','addMarker:revision-suggestion:insertion','slice','concat','ck-editor__editable__overlay','range','getClientRects','execute','abs','has','error','push','merge','toViewElement'];(function(_0x36cbef,_0x45d0c6){const _0x277b94=function(_0x3a25b0){while(--_0x3a25b0){_0x36cbef['push'](_0x36cbef['shift']());}};_0x277b94(++_0x45d0c6);}(_0x45d0,0x14a));const _0x277b=function(_0x36cbef,_0x45d0c6){_0x36cbef=_0x36cbef-0x0;let _0x277b94=_0x45d0[_0x36cbef];return _0x277b94;};import{Plugin as _0x35ebf6,Command as _0x4f2863}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4e959c}from'ckeditor5/src/utils';import{ContextualBalloon as _0x3a73db}from'ckeditor5/src/ui';import{DocumentFragment as _0x51bc69,Element as _0x5a9004,Text as _0x4260af,ViewDocumentFragment as _0x6d7ae2,ViewText as _0x1a40f7,ViewElement as _0x4a41a9,ViewContainerElement as _0x158b9a,ViewAttributeElement as _0x3f2f4c,ViewEmptyElement as _0xd0668a,ViewRawElement as _0x39b4f3,ViewUIElement as _0x50d9f9}from'ckeditor5/src/engine';import{Users as _0x2c8ce5,getMarkerDomElement as _0x18e969}from'ckeditor5-collaboration/src/collaboration-core';import _0x5eed01 from'./ui/revisionviewer/changedetailsview';import _0x54a876 from'./revisionsrepository';import _0x7b0959 from'./changeitem';import{default as _0x4dfc3b}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1dd67b}from'lodash-es';const Y={'c':_0x158b9a,'a':_0x3f2f4c,'e':_0xd0668a,'r':_0x39b4f3,'u':_0x50d9f9};export default class d extends _0x35ebf6{static get[_0x277b('0x1f')](){return _0x277b('0x8f');}static get[_0x277b('0x69')](){return[_0x2c8ce5,_0x3a73db,_0x54a876];}constructor(_0x1dd76a){super(_0x1dd76a),this[_0x277b('0xbe')]=this[_0x277b('0x18')]['plugins'][_0x277b('0xb1')](_0x277b('0x6e')),this['set'](_0x277b('0x2f'),null),this['set']('activeView',null),this[_0x277b('0x48')]=null,this[_0x277b('0x123')](_0x277b('0xd7'),null),this['set'](_0x277b('0xd6'),!0x1),this['set'](_0x277b('0x5b'),!0x0),this['on'](_0x277b('0x12'),(_0x2058f5,_0x1c13a3,_0x518d7b)=>{this[_0x277b('0x2f')]=null,this[_0x277b('0x13')]=null,this['editor'][_0x277b('0x9b')][_0x277b('0xb4')][_0x277b('0xaf')](_0x36dd71=>{for(const _0x3a4347 of this['editor']['editing']['view']['document'][_0x277b('0x105')])_0x518d7b?_0x36dd71[_0x277b('0x47')](_0x277b('0xfa'),_0x3a4347):_0x36dd71[_0x277b('0x9a')]('ck-editor__editable__overlay',_0x3a4347);});}),this['bind']('isNavigationMode')['to'](this,_0x277b('0x2f'),_0x2a73c3=>null!==_0x2a73c3),this[_0x277b('0xc3')](_0x277b('0xd2'))['to'](this,_0x277b('0xd6'),this,_0x277b('0xd7'),this,'activeChange',(_0x2074d7,_0x1b728a,_0x5464ef)=>_0x2074d7&&_0x5464ef?_0x1b728a[_0x277b('0x7b')][_0x277b('0x31')](_0x5464ef):0x0),this[_0x277b('0xc3')](_0x277b('0x11a'))['to'](this,_0x277b('0xd6'),this,_0x277b('0xd7'),(_0x119b16,_0x4a1b2c)=>_0x119b16?_0x4a1b2c[_0x277b('0x7b')][_0x277b('0x1c')]:0x0),this[_0x277b('0x7e')]=null,this[_0x277b('0x27')]=new Map(),this[_0x277b('0x97')]=null,this[_0x277b('0xf3')]=this[_0x277b('0x18')][_0x277b('0x59')][_0x277b('0xb1')](_0x3a73db);}[_0x277b('0xde')](){const _0x5f0160=this['editor'],_0x1dd385=new ShowChangeCommand(_0x5f0160,{'direction':_0x277b('0x2a')}),_0x150bef=new ShowChangeCommand(_0x5f0160,{'direction':_0x277b('0xb9')});(_0x5f0160['commands']['add'](_0x277b('0xbc'),_0x1dd385),_0x5f0160[_0x277b('0x125')][_0x277b('0x7c')]('showNextChange',_0x150bef),_0x5f0160['commands'][_0x277b('0x7c')]('restoreRevision',new RestoreRevisionCommand(_0x5f0160)),this['on'](_0x277b('0x90'),()=>{_0x1dd385[_0x277b('0xae')](),_0x150bef[_0x277b('0xae')]();}),this[_0x277b('0x7f')](),this[_0x277b('0x93')](),_0x5f0160[_0x277b('0x89')](_0x277b('0xcd')),_0x5f0160[_0x277b('0x59')][_0x277b('0xff')]('WidgetToolbarRepository'))&&_0x5f0160[_0x277b('0x59')][_0x277b('0xb1')](_0x277b('0x9c'))[_0x277b('0xc2')]('revision-viewer');}async['getRevisionData'](_0x46f60a){await this['loadRevisionData'](_0x46f60a);const _0x5f22f3={};for(const _0x4b22e5 in _0x46f60a[_0x277b('0x46')]){if(_0x46f60a[_0x277b('0x46')][_0x4b22e5]['attachChange']&&!_0x46f60a[_0x277b('0x46')][_0x4b22e5]['attachChange']['isAttached'])continue;const _0x138905=this[_0x277b('0x11c')](JSON[_0x277b('0x75')](_0x46f60a['diffData'][_0x4b22e5][_0x277b('0x112')])),_0x5f42f4=this[_0x277b('0x18')][_0x277b('0x9b')]['view']['document'],_0x11d74d=new _0x6d7ae2(_0x5f42f4,_0x138905[_0x277b('0x98')](_0x34a592=>this[_0x277b('0x8e')](_0x34a592)));this[_0x277b('0x18')][_0x277b('0xed')][_0x277b('0xd1')][_0x277b('0xa9')]('marked'),_0x5f22f3[_0x4b22e5]=this[_0x277b('0x18')][_0x277b('0xed')][_0x277b('0xd1')]['toData'](_0x11d74d),this[_0x277b('0x18')][_0x277b('0xed')][_0x277b('0xd1')][_0x277b('0xa9')]('default');}return _0x5f22f3;}async[_0x277b('0x81')](_0x15a1ec){await this[_0x277b('0xce')](_0x15a1ec);const _0x393d6f={};for(const _0x4dab86 in _0x15a1ec[_0x277b('0x46')])_0x15a1ec[_0x277b('0x46')][_0x4dab86][_0x277b('0x7d')]&&!_0x15a1ec['diffData'][_0x4dab86]['attachChange'][_0x277b('0x2')]||(_0x393d6f[_0x4dab86]=_0x15a1ec[_0x277b('0x46')][_0x4dab86][_0x277b('0xa3')]||{});return _0x393d6f;}[_0x277b('0x11c')](_0x418b91){return(_0x418b91=_0x418b91[_0x277b('0x45')](_0x2e41e0=>!_0x2e41e0[_0x277b('0xef')]||'revision-start'!==_0x2e41e0[_0x277b('0xef')]&&_0x277b('0xab')!==_0x2e41e0[_0x277b('0xef')]))[_0x277b('0xa4')](_0x2cdd41=>{_0x277b('0x23')!=typeof _0x2cdd41&&(_0x2cdd41[_0x277b('0x16')]=this[_0x277b('0x11c')](_0x2cdd41[_0x277b('0x16')]),_0x2cdd41['attributes']=_0x2cdd41[_0x277b('0x68')][_0x277b('0x45')](_0x5894ac=>!_0x5894ac[0x0][_0x277b('0x11e')]('data-revision-')));}),_0x418b91;}async[_0x277b('0xad')](_0x5a92a6,_0x4ae4ce,_0x2eb876=!0x1){if(!this[_0x277b('0x5b')])return;const _0x15331d=this[_0x277b('0xd7')],_0x5f26a1=this[_0x277b('0xbe')],_0x384f88=_0x277b('0x23')==typeof _0x5a92a6?_0x5f26a1[_0x277b('0x106')](_0x5a92a6):_0x5a92a6,_0x2b4f80='string'==typeof _0x4ae4ce?_0x5f26a1[_0x277b('0x106')](_0x4ae4ce):_0x4ae4ce,_0x45d77d=_0x384f88['id'],_0xa4a651=_0x2b4f80?_0x2b4f80['id']:null;if(!_0x2eb876&&this[_0x277b('0xd7')]&&this['diff'][_0x277b('0x71')]===_0x45d77d&&this['diff'][_0x277b('0x11b')]===_0xa4a651)return Promise[_0x277b('0x9e')]();this['isReady']=!0x1,this[_0x277b('0x13')]=null,this[_0x277b('0x2f')]=null,this[_0x277b('0xd7')]=new _0x4dfc3b(_0x45d77d,_0xa4a651);const _0x37fd21=this[_0x277b('0xf2')](_0x384f88,_0x2b4f80,!0x0)[_0x277b('0x98')](_0x1b32be=>this[_0x277b('0xce')](_0x1b32be));return _0x37fd21['push'](new Promise(_0x345fb5=>{setTimeout(_0x345fb5,0x14);})),Promise[_0x277b('0x6c')](_0x37fd21)['then'](()=>{if(!this['isEnabled'])return;this[_0x277b('0x4c')]();const _0x27dfd0=this[_0x277b('0x37')](_0x45d77d,_0xa4a651);for(const _0x3edb85 of _0x27dfd0[_0x277b('0x7b')])this[_0x277b('0x27')][_0x277b('0x123')](_0x3edb85['id'],_0x3edb85);this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0x5f')]({'isUndoable':!0x1},_0x1f5c10=>{for(const _0x430f1c of this['editor'][_0x277b('0x1')][_0x277b('0xdd')][_0x277b('0x95')]())_0x1f5c10[_0x277b('0x96')](_0x430f1c);for(const _0x2735b4 of Object[_0x277b('0x26')](_0x27dfd0[_0x277b('0x1')])){const _0x2015a6=_0x1f5c10['addRoot'](_0x2735b4);for(const _0x49e30a of Object[_0x277b('0x26')](_0x27dfd0[_0x277b('0x68')][_0x2735b4]))_0x1f5c10[_0x277b('0xdb')](_0x49e30a,_0x27dfd0[_0x277b('0x68')][_0x2735b4][_0x49e30a],_0x2015a6);_0x1f5c10['insert'](_0x27dfd0[_0x277b('0x1')][_0x2735b4],_0x2015a6,0x0);}}),this[_0x277b('0xd7')][_0x277b('0x79')](this['_sortAndFilterDiffChanges'](_0x27dfd0[_0x277b('0x7b')])),this[_0x277b('0xd6')]=!0x0;})[_0x277b('0xcc')](_0x251d14=>{console[_0x277b('0x100')](_0x251d14),this[_0x277b('0x4c')](),_0x15331d&&(this['diff']=_0x15331d),this[_0x277b('0xd6')]=!0x0;});}[_0x277b('0xc6')](_0x1c66ba,_0x306e57){const _0x43a25a=this[_0x277b('0xbe')]['createRevision'](_0x1c66ba);return _0x43a25a['on'](_0x277b('0xe1'),(_0x152342,_0x1e6210,_0x2d3f54)=>_0x306e57(_0x1e6210,_0x2d3f54,_0x43a25a)),this[_0x277b('0xbe')][_0x277b('0xa5')](_0x43a25a),_0x43a25a;}[_0x277b('0xce')](_0x11aca1){if(!_0x11aca1||_0x11aca1['diffData'])return Promise[_0x277b('0x9e')]();{const _0x313807=this[_0x277b('0x18')][_0x277b('0x80')][_0x277b('0xb1')]('collaboration.channelId');return this[_0x277b('0x97')][_0x277b('0x106')]({'channelId':_0x313807,'revisionId':_0x11aca1['id']})[_0x277b('0x66')](_0x3cb81f=>{_0x11aca1[_0x277b('0xe1')]({'diffData':_0x3cb81f['diffData']},!0x0);});}}[_0x277b('0x4c')](){this[_0x277b('0x2f')]=null,this[_0x277b('0x111')](),this['_changeView']&&this[_0x277b('0x7e')][_0x277b('0x14')](),this[_0x277b('0x7e')]=null,this[_0x277b('0x27')][_0x277b('0xbb')](),this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0x5f')]({'isUndoable':!0x1},_0x2342fd=>{for(const _0x4c321f of this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0xdd')][_0x277b('0x95')]())_0x2342fd['detachRoot'](_0x4c321f);});}['_sortAndFilterDiffChanges'](_0x3a27a1){const _0x351034=[],_0x2b5b08=new Map();for(const _0x2567f0 of this['editor'][_0x277b('0x1')]['document']['getRootNames']()){const _0x4c3caa=this['editor'][_0x277b('0x9b')][_0x277b('0xb4')][_0x277b('0xb')](_0x2567f0);if(!_0x4c3caa)continue;const _0x5a5382=_0x4c3caa[_0x277b('0xfc')]()['item'](0x0);_0x5a5382&&(_0x351034['push'](_0x2567f0),_0x2b5b08[_0x277b('0x123')](_0x2567f0,_0x5a5382));}return _0x351034['sort']((_0x2b7814,_0x234b15)=>{const _0x38c113=_0x2b5b08[_0x277b('0xb1')](_0x2b7814),_0x4abd12=_0x2b5b08[_0x277b('0xb1')](_0x234b15);return _0x38c113['y']-_0x4abd12['y']||_0x38c113['x']-_0x4abd12['x'];}),(_0x3a27a1=_0x3a27a1['filter'](_0xceab69=>_0x351034[_0x277b('0x9d')](_0xceab69['rootName'])))[_0x277b('0x6a')]((_0x4dd18c,_0x4ad0b7)=>_0x351034[_0x277b('0xc')](_0x4dd18c[_0x277b('0x3d')])-_0x351034[_0x277b('0xc')](_0x4ad0b7[_0x277b('0x3d')])),_0x3a27a1;}[_0x277b('0xb5')](_0xd3d52b){const _0x53f1e8=Array[_0x277b('0x42')](_0xd3d52b[_0x277b('0xdc')])['filter'](([_0x3b00ac,_0x44ceb1])=>_0x3b00ac[_0x277b('0x11e')](_0x277b('0x41'))&&!_0x44ceb1[_0x277b('0x3b')]),_0xe8231f=Array['from'](this['editor'][_0x277b('0x1')]['createRangeIn'](_0xd3d52b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x53f1e8[_0x277b('0x1c')])for(const _0xbe73c2 of _0xe8231f){const [_0x46d101,_0x4a2f0b]=_0x53f1e8[0x0],[,_0x44a353,_0x27600e]=_0x46d101[_0x277b('0x5d')](':');if(_0x4a2f0b[_0x277b('0x115')][_0x277b('0x4f')](_0xbe73c2['nextPosition'])&&_0x53f1e8[_0x277b('0xb0')](),(_0xbe73c2[_0x277b('0x1e')]['isEqual'](_0x4a2f0b[_0x277b('0xe4')])||_0xbe73c2[_0x277b('0x1e')][_0x277b('0xac')](_0x4a2f0b[_0x277b('0xe4')]))&&('insertion'==_0x44a353?_0xbe73c2['isAdded']={'userId':_0x27600e}:_0x277b('0x25')==_0x44a353&&(_0xbe73c2[_0x277b('0x50')]={'userId':_0x27600e})),0x0==_0x53f1e8[_0x277b('0x1c')])break;}return _0xe8231f;}[_0x277b('0x21')](_0x4ccfc5){const _0x5ac237=new Map();for(let _0x5ad504=0x0;_0x5ad504<_0x4ccfc5[_0x277b('0x1c')];_0x5ad504++)_0x277b('0x2e')===_0x4ccfc5[_0x5ad504][_0x277b('0xd5')]?(_0x4ccfc5[_0x5ad504][_0x277b('0xe2')][_0x277b('0x9')]=_0x5ad504,_0x4ccfc5[_0x5ad504][_0x277b('0xe2')][_0x277b('0xa0')]=_0x5ad504):('elementStart'===_0x4ccfc5[_0x5ad504]['type']?_0x4ccfc5[_0x5ad504][_0x277b('0xe2')][_0x277b('0x9')]=_0x5ad504:_0x277b('0x116')===_0x4ccfc5[_0x5ad504][_0x277b('0xd5')]&&(_0x4ccfc5[_0x5ad504][_0x277b('0xe2')][_0x277b('0xa0')]=_0x5ad504),_0x5ac237['set'](_0x4ccfc5[_0x5ad504]['id'],_0x5ad504));for(const _0x4d4472 of _0x5ac237[_0x277b('0x34')]())_0x277b('0x10d')===_0x4ccfc5[_0x4d4472][_0x277b('0xd5')]?_0x4ccfc5[_0x4d4472][_0x277b('0xe2')][_0x277b('0xa0')]=_0x5ac237[_0x277b('0xb1')](_0x4ccfc5[_0x4d4472]['pairId']):_0x277b('0x116')===_0x4ccfc5[_0x4d4472][_0x277b('0xd5')]&&(_0x4ccfc5[_0x4d4472][_0x277b('0xe2')]['startIndex']=_0x5ac237[_0x277b('0xb1')](_0x4ccfc5[_0x4d4472][_0x277b('0x3e')]));}[_0x277b('0xd3')](_0x4a335c){for(let _0xfe4a8f=0x0;_0xfe4a8f<_0x4a335c[_0x277b('0x1c')];_0xfe4a8f++){if(_0x277b('0x10d')===_0x4a335c[_0xfe4a8f]['type'])_0x4a335c[_0xfe4a8f]['item'][_0x277b('0x9')]=_0xfe4a8f;else{if(_0x277b('0x116')===_0x4a335c[_0xfe4a8f]['type']){_0x4a335c[_0xfe4a8f][_0x277b('0xe2')]['endIndex']=_0xfe4a8f;const _0x3e3ebf=_0x4a335c[_0xfe4a8f][_0x277b('0xe2')]['startIndex'];_0x4a335c[_0x3e3ebf][_0x277b('0x3e')]=_0x4a335c[_0xfe4a8f]['id'],_0x4a335c[_0xfe4a8f][_0x277b('0x3e')]=_0x4a335c[_0x3e3ebf]['id'];}else _0x4a335c[_0xfe4a8f][_0x277b('0xe2')][_0x277b('0x9')]=_0xfe4a8f,_0x4a335c[_0xfe4a8f][_0x277b('0xe2')]['endIndex']=_0xfe4a8f,_0x4a335c[_0xfe4a8f]['pairId']=null;}_0x4a335c[_0xfe4a8f][_0x277b('0xb7')]||(_0x4a335c[_0xfe4a8f][_0x277b('0xb7')]=[],_0x4a335c[_0xfe4a8f][_0x277b('0xf1')]=[]);}}[_0x277b('0x124')](_0x3bbc33,_0x456db0){const _0x1c619d=_0x3bbc33[_0x277b('0x45')](_0x438e02=>!_0x438e02['isAdded']);for(let _0x59876b=0x0;_0x59876b<_0x456db0[_0x277b('0x1c')];_0x59876b++)_0x456db0[_0x59876b][_0x277b('0x10')]&&(_0x1c619d[_0x59876b][_0x277b('0x10')]=_0x456db0[_0x59876b][_0x277b('0x10')]);}[_0x277b('0x86')](_0x30d2da){const _0x51b978=JSON[_0x277b('0x75')](_0x30d2da),_0xd32efc=this['editor'][_0x277b('0x9b')][_0x277b('0xb4')]['document'],_0x2b0d2d=new _0x6d7ae2(_0xd32efc,_0x51b978[_0x277b('0x98')](_0x554a54=>this[_0x277b('0x8e')](_0x554a54)));return this[_0x277b('0x18')]['data'][_0x277b('0x15')](_0x2b0d2d);}[_0x277b('0x8e')](_0x314fe4){const _0x47f7ce=this['editor'][_0x277b('0x9b')][_0x277b('0xb4')][_0x277b('0xdd')];if(_0x277b('0x23')==typeof _0x314fe4)return new _0x1a40f7(_0x47f7ce,_0x314fe4);{const _0x35ba2c=_0x314fe4[_0x277b('0x16')][_0x277b('0x98')](_0x311907=>this[_0x277b('0x8e')](_0x311907));return new(Y[_0x314fe4[(_0x277b('0xd5'))]]||_0x4a41a9)(_0x47f7ce,_0x314fe4[_0x277b('0xef')],_0x314fe4[_0x277b('0x68')],_0x35ba2c);}}['_getDiff'](_0x49048,_0x861d80=null){const _0x1f8cb3=this[_0x277b('0xbe')][_0x277b('0x106')](_0x49048),_0x514522=_0x861d80?this['repository'][_0x277b('0x106')](_0x861d80):null,_0x27de3b=this[_0x277b('0xf2')](_0x1f8cb3,_0x514522),_0x5a4c16=_0x27de3b[_0x27de3b[_0x277b('0x1c')]-0x1],_0x1d39be=new Map(),_0x1f9d7d={'model':{},'attributes':{},'changes':[]},_0x394717=new Set(),_0x29828f=new Map();for(let _0x457418=_0x27de3b[_0x277b('0x1c')]-0x1;_0x457418>=0x0;_0x457418--){const _0xddc3b7=_0x27de3b[_0x457418];for(const _0x8443bb of Object['keys'](_0xddc3b7[_0x277b('0x46')]))if(_0xddc3b7['diffData'][_0x8443bb][_0x277b('0x7d')]){const _0x45827f=_0xddc3b7[_0x277b('0x46')][_0x8443bb][_0x277b('0x7d')];_0x45827f[_0x277b('0x2')]?(_0x394717[_0x277b('0x7c')](_0x8443bb),_0x29828f['has'](_0x8443bb)&&_0x29828f['get'](_0x8443bb)[_0x277b('0xa7')]==_0x45827f[_0x277b('0xa7')]?_0x29828f[_0x277b('0x28')](_0x8443bb):_0x29828f[_0x277b('0x123')](_0x8443bb,_0x45827f)):_0x29828f['has'](_0x8443bb)?(_0x394717[_0x277b('0x28')](_0x8443bb),_0x29828f['delete'](_0x8443bb)):(_0x394717[_0x277b('0x7c')](_0x8443bb),_0x29828f[_0x277b('0x123')](_0x8443bb,_0x45827f));}else _0x394717[_0x277b('0x7c')](_0x8443bb);}for(const _0x2438bc of _0x394717){const _0x441e58=_0x29828f[_0x277b('0xff')](_0x2438bc)&&!_0x29828f[_0x277b('0xb1')](_0x2438bc)[_0x277b('0x2')];let _0x304963=_0x441e58?_0x27de3b[_0x277b('0x1c')]-0x1:0x0;const _0x14684b=_0x441e58?-0x1:0x1;for(;_0x27de3b[_0x304963];){const _0x2e812e=_0x27de3b[_0x304963];if(_0x2e812e[_0x277b('0x46')][_0x2438bc]){const _0x1e6c59=_0x441e58?_0x2e812e[_0x277b('0x46')][_0x2438bc][_0x277b('0x91')]:_0x2e812e[_0x277b('0x46')][_0x2438bc][_0x277b('0xa3')];_0x1f9d7d[_0x277b('0x68')][_0x2438bc]=_0x1e6c59?_0x1dd67b(_0x1e6c59):{};break;}_0x304963+=_0x14684b;}}for(const _0xb1b477 of _0x27de3b){_0xb1b477['model']={};for(const _0x4564e7 of _0xb1b477[_0x277b('0x92')])_0x1d39be[_0x277b('0x123')](_0x4564e7['id'],_0x4564e7);for(const _0x489d35 of _0x394717){const _0x4bde48=_0xb1b477[_0x277b('0x46')][_0x489d35]?_0xb1b477[_0x277b('0x46')][_0x489d35]['insertions']:'[]',_0x22c4cb=_0xb1b477['diffData'][_0x489d35]?_0xb1b477[_0x277b('0x46')][_0x489d35][_0x277b('0x60')]:'[]';_0xb1b477['model'][_0x489d35]={'insertions':this[_0x277b('0x86')](_0x4bde48),'deletions':this[_0x277b('0x86')](_0x22c4cb)};}}for(const _0x4753cd of _0x394717){let _0x2bf12a=null,_0x46c028=0x0;const _0xf7071=new Map(Array[_0x277b('0x42')](_0x1f8cb3['model'][_0x4753cd][_0x277b('0x112')][_0x277b('0xdc')])[_0x277b('0x45')](([_0x601317])=>!_0x601317[_0x277b('0x11e')](_0x277b('0x41'))));let _0x49adb2=0x0;for(const _0x296233 of _0x27de3b){const _0x5dcbc1=this[_0x277b('0xb5')](_0x296233[_0x277b('0x1')][_0x4753cd][_0x277b('0x112')]);_0x296233==_0x1f8cb3?(_0x2bf12a=_0x5dcbc1,_0x46c028=_0x2bf12a[_0x277b('0x1c')],_0x2bf12a[_0x277b('0xa4')](_0x1c1d8d=>{_0x1c1d8d['id']=_0x49adb2++;}),this['_processTape'](_0x2bf12a)):this[_0x277b('0x124')](_0x2bf12a,_0x5dcbc1);const _0x8a1649=_0x2bf12a[_0x277b('0x45')](_0x585223=>!_0x585223[_0x277b('0x10')])[_0x277b('0x98')](_0x26b27d=>_0x26b27d['id']);let _0x23612b=0x0;const _0x58ad13=this[_0x277b('0xb5')](_0x296233['model'][_0x4753cd]['deletions']);_0x58ad13[_0x277b('0xa4')](_0x2eb604=>{_0x2eb604[_0x277b('0x50')]?_0x2eb604['id']=_0x46c028++:_0x2eb604['id']=_0x8a1649[_0x23612b++];}),this[_0x277b('0xd3')](_0x58ad13),this[_0x277b('0xb2')](_0x2bf12a,_0x277b('0x10')),this[_0x277b('0xb2')](_0x58ad13,'isRemoved'),_0x296233==_0x1f8cb3&&this[_0x277b('0x83')](_0x2bf12a,_0xf7071),_0x2bf12a=this['_joinTapes'](_0x2bf12a,_0x58ad13),this[_0x277b('0x21')](_0x2bf12a),this['_setDistance'](_0x2bf12a,'isRemoved');}_0x2bf12a=_0x2bf12a[_0x277b('0x45')](_0x4681d2=>!(_0x4681d2[_0x277b('0x10')]&&_0x4681d2[_0x277b('0x50')]));const _0x2a0b8c=new Map(_0x5a4c16[_0x277b('0x1')][_0x4753cd][_0x277b('0x60')][_0x277b('0xdc')]),_0x43bbc4=new Set(_0xf7071[_0x277b('0x26')]());for(const _0x140243 of _0x2a0b8c['keys']())_0x43bbc4['delete'](_0x140243);this[_0x277b('0xe0')](_0x2bf12a,_0x43bbc4),this[_0x277b('0x10e')](_0x2bf12a),_0x2bf12a=this[_0x277b('0x114')](_0x2bf12a),_0x2bf12a=this[_0x277b('0x53')](_0x2bf12a),_0x2bf12a=this[_0x277b('0x65')](_0x2bf12a);const {root:_0x4a453d,changes:_0x425b6a}=this[_0x277b('0x6b')](_0x2bf12a,_0x1d39be,_0x4753cd);_0x1f9d7d['model'][_0x4753cd]=_0x4a453d;const _0x115b9d=_0x29828f[_0x277b('0xb1')](_0x4753cd);if(_0x115b9d){const _0x394f36=_0x1d39be['get'](_0x115b9d[_0x277b('0xa7')]),_0x3d0fc9=new _0x7b0959({'author':_0x394f36,'type':_0x115b9d[_0x277b('0x2')]?_0x277b('0x7c'):_0x277b('0x6f'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4753cd});_0x425b6a['unshift'](_0x3d0fc9),_0x1f9d7d[_0x277b('0x68')][_0x4753cd][_0x277b('0xc9')]=_0x3d0fc9['id'];}_0x1f9d7d[_0x277b('0x7b')]=_0x1f9d7d[_0x277b('0x7b')][_0x277b('0xf9')](_0x425b6a);}return _0x1f9d7d;}[_0x277b('0x83')](_0xa8ce00,_0xe26f56){for(let _0x57137b=0x0;_0x57137b<_0xa8ce00['length'];_0x57137b++)for(const [_0xee7690,_0x1359a9]of _0xe26f56)_0x1359a9[_0x277b('0xe4')]['isEqual'](_0xa8ce00[_0x57137b]['previousPosition'])&&_0xa8ce00[_0x57137b][_0x277b('0xb7')][_0x277b('0x101')](_0xee7690),_0x1359a9[_0x277b('0x115')][_0x277b('0x4f')](_0xa8ce00[_0x57137b][_0x277b('0xb6')])&&_0xa8ce00[_0x57137b]['markersEnd']['push'](_0xee7690);}[_0x277b('0xee')](_0x511f45,_0x374b32){let _0x485c38=[],_0x23259f=0x0,_0x53fd63=0x0;for(;_0x23259f<_0x511f45[_0x277b('0x1c')]||_0x53fd63<_0x374b32[_0x277b('0x1c')];){const _0xf359f6=_0x511f45[_0x23259f]||{},_0x23cda9=_0x374b32[_0x53fd63]||{};if(_0xf359f6['id']==_0x23cda9['id'])_0x23259f++,_0x53fd63++,_0x485c38[_0x277b('0x101')](_0xf359f6);else{if(_0x23cda9[_0x277b('0x50')]&&_0xf359f6[_0x277b('0x10')]){const {commonTape:_0x523f8e,iEnd:_0x2b394f,jEnd:_0x2dbe18}=this[_0x277b('0xb3')](_0x511f45,_0x23259f,_0x374b32,_0x53fd63);_0x485c38=_0x485c38[_0x277b('0xf9')](_0x523f8e),_0x23259f=_0x2b394f,_0x53fd63=_0x2dbe18;}else _0x23cda9[_0x277b('0x50')]?(_0x53fd63++,_0x485c38[_0x277b('0x101')](_0x23cda9)):(_0x23259f++,_0x485c38['push'](_0xf359f6));}}return _0x485c38;}[_0x277b('0xe0')](_0x2998b1,_0x374466){const _0x18aae1=[];for(let _0x5ed947=0x0;_0x5ed947<_0x2998b1[_0x277b('0x1c')];_0x5ed947++){for(let _0x2af2c9=0x0;_0x2af2c9<_0x2998b1[_0x5ed947][_0x277b('0xb7')][_0x277b('0x1c')];_0x2af2c9++){const _0x1ce46b=_0x2998b1[_0x5ed947][_0x277b('0xb7')][_0x2af2c9];if(!_0x374466[_0x277b('0xff')](_0x1ce46b))continue;const {group:_0x5c7e99,type:_0x29ca09,authorId:_0x3908f3}=_0x4ac911(_0x1ce46b);'revision-suggestion'!=_0x5c7e99||_0x277b('0x82')!=_0x29ca09&&_0x277b('0x25')!=_0x29ca09||(_0x18aae1[_0x277b('0xc1')]({'type':_0x29ca09,'name':_0x1ce46b,'userId':_0x3908f3}),_0x2998b1[_0x5ed947][_0x277b('0xb7')][_0x277b('0xda')](_0x2af2c9,0x1),_0x2af2c9--);}_0x22697f(_0x2998b1[_0x5ed947]);for(let _0x82828=0x0;_0x82828<_0x2998b1[_0x5ed947][_0x277b('0xf1')][_0x277b('0x1c')];_0x82828++){const _0x55ca18=_0x2998b1[_0x5ed947][_0x277b('0xf1')][_0x82828];if(!_0x374466[_0x277b('0xff')](_0x55ca18))continue;const {group:_0x7fd4bf,type:_0x3f4b01}=_0x4ac911(_0x55ca18);if('revision-suggestion'!=_0x7fd4bf||_0x277b('0x82')!=_0x3f4b01&&_0x277b('0x25')!=_0x3f4b01)continue;_0x2998b1[_0x5ed947][_0x277b('0xf1')][_0x277b('0xda')](_0x82828,0x1),_0x82828--;const _0x3986eb=_0x18aae1[_0x277b('0x11d')](_0x4f568c=>_0x4f568c[_0x277b('0xef')]==_0x55ca18);_0x3986eb>-0x1&&_0x18aae1[_0x277b('0xda')](_0x3986eb,0x1);}}function _0x4ac911(_0xf21f4c){const _0x193863=_0xf21f4c[_0x277b('0x5d')](':');return{'group':_0x193863[0x0],'type':_0x193863[0x1],'subType':_0x193863[_0x277b('0x1c')]>=0x5?_0x193863[0x2]:null,'id':_0x193863[_0x277b('0x1c')]<0x5?_0x193863[0x2]:_0x193863[0x3],'authorId':_0x193863[_0x277b('0x1c')]<0x5?_0x193863[0x3]:_0x193863[0x4],'markerCount':0x6==_0x193863[_0x277b('0x1c')]?_0x193863[0x5]:null};}function _0x22697f(_0x4e804a){for(let _0x5cdeed=0x0;_0x5cdeed<_0x18aae1[_0x277b('0x1c')];_0x5cdeed++){if(_0x4e804a[_0x277b('0x10')]&&_0x277b('0x82')==_0x18aae1[_0x5cdeed]['type'])return _0x4e804a['isAddSuggestion']=_0x18aae1[_0x5cdeed],void delete _0x4e804a[_0x277b('0x10')];if(!_0x4e804a[_0x277b('0x10')]&&!_0x4e804a[_0x277b('0x50')]&&_0x277b('0x25')==_0x18aae1[_0x5cdeed][_0x277b('0xd5')])return void(_0x4e804a['isRemoveSuggestion']=_0x18aae1[_0x5cdeed]);}}}[_0x277b('0xb2')](_0x4811ad,_0x1d07a8){let _0x5803b9=0x0,_0x1c96b9=!0x1;const _0x255019=new Map();for(const _0x19c471 of _0x4811ad)_0x19c471[_0x1d07a8]?_0x1c96b9&&(_0x5803b9++,_0x1c96b9=!0x1):(_0x5803b9++,_0x1c96b9=!0x0),_0x255019[_0x277b('0x123')](_0x19c471['id'],_0x5803b9);for(let _0x412ab3=0x0;_0x412ab3<_0x4811ad['length'];_0x412ab3++){if(_0x277b('0x50')==_0x1d07a8&&_0x4811ad[_0x412ab3][_0x277b('0x10')]||'isAdded'==_0x1d07a8&&_0x4811ad[_0x412ab3][_0x277b('0x50')])continue;if(_0x277b('0x2e')==_0x4811ad[_0x412ab3][_0x277b('0xd5')]){_0x4811ad[_0x412ab3][_0x277b('0xbd')]=0x0;continue;}const _0x320981=_0x255019[_0x277b('0xb1')](_0x4811ad[_0x412ab3][_0x277b('0x3e')]),_0x56f3e5=_0x255019[_0x277b('0xb1')](_0x4811ad[_0x412ab3]['id']);_0x4811ad[_0x412ab3]['distance']=_0x320981-_0x56f3e5;}}['_getRevisionsRange'](_0x389304,_0x3d3781,_0x36c1d7=!0x1){const _0x270ad3=[];let _0x5031d8=this[_0x277b('0xbe')][_0x277b('0x31')](_0x389304),_0x442c27=this[_0x277b('0xbe')][_0x277b('0x31')](_0x3d3781);for(-0x1==_0x442c27&&(_0x442c27=this[_0x277b('0xbe')][_0x277b('0x62')]['length'],_0x36c1d7=!0x1);_0x5031d8<_0x442c27;)_0x270ad3[_0x277b('0x101')](this['repository'][_0x277b('0x106')](_0x5031d8)),_0x5031d8++;return _0x36c1d7&&_0x270ad3[_0x277b('0x101')](this[_0x277b('0xbe')][_0x277b('0x106')](_0x5031d8)),_0x270ad3;}[_0x277b('0xb3')](_0xc83748,_0x52865c,_0x24db36,_0x5e5dc0){const _0x2d4137=this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0x38')];let _0x3ee303=_0x52865c;for(;_0xc83748[_0x3ee303]&&_0xc83748[_0x3ee303][_0x277b('0x10')];)_0x3ee303++;let _0x176733=_0x5e5dc0;for(;_0x24db36[_0x176733]&&_0x24db36[_0x176733][_0x277b('0x50')];)_0x176733++;_0x335f21(_0xc83748,_0x52865c,_0x3ee303),_0x335f21(_0x24db36,_0x5e5dc0,_0x176733);const _0xd894c5=_0x24db36[_0x277b('0xf8')](_0x5e5dc0,_0x176733)[_0x277b('0xf9')](_0xc83748[_0x277b('0xf8')](_0x52865c,_0x3ee303));return _0xd894c5[_0x277b('0x6a')]((_0x266cee,_0x128b8f)=>_0x266cee['side']!=_0x128b8f[_0x277b('0x109')]?_0x266cee['side']-_0x128b8f[_0x277b('0x109')]:_0x266cee[_0x277b('0x4d')]!=_0x128b8f[_0x277b('0x4d')]?_0x266cee['level']-_0x128b8f[_0x277b('0x4d')]:_0x266cee['distance']!=_0x128b8f[_0x277b('0xbd')]?_0x128b8f[_0x277b('0xbd')]-_0x266cee[_0x277b('0xbd')]:!!_0x266cee['isAdded']!=!!_0x128b8f[_0x277b('0x10')]?-0x1==_0x266cee[_0x277b('0x109')]||0x0==_0x266cee[_0x277b('0x109')]?_0x266cee[_0x277b('0x10')]?-0x1:0x1:_0x266cee[_0x277b('0x10')]?0x1:-0x1:_0x266cee['index']-_0x128b8f['index']),{'commonTape':_0xd894c5,'iEnd':_0x3ee303,'jEnd':_0x176733};function _0x335f21(_0x493637,_0x1dd599,_0x33f849){let _0x160ca8=-0x1,_0x149e94=Number[_0x277b('0xc8')],_0x1ec7d4=!0x0;for(let _0x4ab2ab=_0x1dd599;_0x4ab2ab<_0x33f849;_0x4ab2ab++)if(_0x2d4137[_0x277b('0x24')](_0x493637[_0x4ab2ab][_0x277b('0xe2')])||(_0x1ec7d4=!0x1),_0x493637[_0x4ab2ab][_0x277b('0xe2')][_0x277b('0x9')]<_0x1dd599&&(_0x160ca8=_0x4ab2ab),_0x493637[_0x4ab2ab][_0x277b('0xe2')][_0x277b('0xa0')]>=_0x33f849){_0x149e94=_0x4ab2ab;break;}_0x1ec7d4&&(_0x160ca8=_0x33f849-0x1);for(let _0x1666ee=_0x1dd599;_0x1666ee<_0x33f849;_0x1666ee++)_0x493637[_0x1666ee][_0x277b('0x109')]=_0x1666ee<=_0x160ca8?-0x1:_0x1666ee<_0x149e94?0x0:0x1,_0x493637[_0x1666ee]['index']=_0x1666ee;let _0x3aed3a=0x0;for(let _0x296058=_0x1dd599;_0x296058<=_0x160ca8;_0x296058++)0x0==_0x493637[_0x296058][_0x277b('0xbd')]?_0x493637[_0x296058][_0x277b('0x4d')]=_0x3aed3a:(_0x3aed3a++,_0x493637[_0x296058][_0x277b('0x4d')]=_0x3aed3a,_0x3aed3a++);for(let _0xb5e391=_0x1dd599;_0xb5e391<_0x33f849;_0xb5e391++)0x0==_0x493637[_0xb5e391][_0x277b('0x109')]&&(_0x493637[_0xb5e391][_0x277b('0x4d')]=_0x3aed3a);_0x3aed3a=0x0;for(let _0x12cf03=_0x33f849-0x1;_0x12cf03>=_0x149e94;_0x12cf03--)0x0==_0x493637[_0x12cf03][_0x277b('0xbd')]?_0x493637[_0x12cf03][_0x277b('0x4d')]=_0x3aed3a:(_0x3aed3a--,_0x493637[_0x12cf03][_0x277b('0x4d')]=_0x3aed3a,_0x3aed3a--);}}[_0x277b('0x10e')](_0x12e54c){const _0x2afc94=new Map(),_0x1b8a1c=this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0x38')];for(let _0xaefad3=0x1;_0xaefad3<_0x12e54c[_0x277b('0x1c')];_0xaefad3++){let _0x89d487,_0x11abd8,_0x264122;const _0x325b48=_0x12e54c[_0xaefad3],_0x1d6bc3=_0x12e54c[_0xaefad3-0x1];if(_0x277b('0x2e')==_0x325b48[_0x277b('0xd5')])continue;if(_0x325b48[_0x277b('0xd5')]!=_0x1d6bc3['type'])continue;if(!_0x1b8a1c['isBlock'](_0x1d6bc3[_0x277b('0xe2')])||_0x1b8a1c[_0x277b('0x99')](_0x1d6bc3[_0x277b('0xe2')]))continue;if(!_0x1b8a1c['isBlock'](_0x325b48['item'])||_0x1b8a1c['isLimit'](_0x325b48['item']))continue;if((_0x12e54c[_0xaefad3][_0x277b('0x10')]||_0x12e54c[_0xaefad3][_0x277b('0xa6')])&&_0x12e54c[_0xaefad3-0x1]['isRemoved'])_0x89d487=_0x12e54c[_0xaefad3],_0x11abd8=_0x12e54c[_0xaefad3-0x1],_0x264122=_0xaefad3-0x1;else{if(!_0x12e54c[_0xaefad3][_0x277b('0x50')]||!_0x12e54c[_0xaefad3-0x1][_0x277b('0x10')]&&!_0x12e54c[_0xaefad3-0x1][_0x277b('0xa6')])continue;_0x89d487=_0x12e54c[_0xaefad3-0x1],_0x11abd8=_0x12e54c[_0xaefad3],_0x264122=_0xaefad3;}const _0x1290a8=_0x89d487['level']==_0x11abd8[_0x277b('0x4d')],_0x450482=Math[_0x277b('0xfe')](_0x89d487[_0x277b('0x4d')])<Math[_0x277b('0xfe')](_0x11abd8['level'])&&0x0==_0x11abd8[_0x277b('0xbd')];(_0x1290a8||_0x450482)&&(_0x2afc94[_0x277b('0x123')](_0x11abd8['id'],_0x89d487['id']),_0x12e54c[_0x277b('0xda')](_0x264122,0x1),_0xaefad3--,_0x89d487[_0x277b('0x10')]=!0x1);}for(let _0x8792d7=0x0;_0x8792d7<_0x12e54c[_0x277b('0x1c')];_0x8792d7++)_0x2afc94['has'](_0x12e54c[_0x8792d7][_0x277b('0x3e')])&&(_0x12e54c[_0x8792d7]['pairId']=_0x2afc94[_0x277b('0xb1')](_0x12e54c[_0x8792d7][_0x277b('0x3e')]));}[_0x277b('0x114')](_0x26e3d8){const _0x4a7ec5=new Set(_0x26e3d8[_0x277b('0x98')](_0x189f59=>_0x189f59['id']));for(let _0x13f38=0x0;_0x13f38<_0x26e3d8[_0x277b('0x1c')];_0x13f38++)_0x4a7ec5[_0x277b('0xff')](_0x26e3d8[_0x13f38][_0x277b('0x3e')])||0x0==_0x26e3d8[_0x13f38][_0x277b('0xbd')]||(_0x26e3d8[_0x13f38][_0x277b('0x2b')]=!0x0);return _0x26e3d8[_0x277b('0x45')](_0x2b5aef=>!_0x2b5aef['isIncorrect']);}[_0x277b('0x53')](_0x3a947d){const _0x2b30a2=new Set();for(let _0x3c4f6d=0x0;_0x3c4f6d<_0x3a947d['length'];_0x3c4f6d++){if(_0x2b30a2[_0x277b('0xff')](_0x3a947d[_0x3c4f6d]['id'])&&_0x3a947d[_0x3c4f6d][_0x277b('0x50')]&&(_0x3a947d[_0x3c4f6d][_0x277b('0x2b')]=!0x0),_0x3a947d[_0x3c4f6d][_0x277b('0x2b')])continue;if(0x0==_0x3a947d[_0x3c4f6d][_0x277b('0xbd')])continue;if(_0x277b('0x10d')!=_0x3a947d[_0x3c4f6d][_0x277b('0xd5')])continue;if(null==_0x3a947d[_0x3c4f6d][_0x277b('0x3e')])continue;let _0x4a78fb=_0x3c4f6d+0x1,_0x1edd78=0x0;for(;_0x3a947d[_0x4a78fb]['id']!=_0x3a947d[_0x3c4f6d]['pairId'];)_0x277b('0x10d')==_0x3a947d[_0x4a78fb][_0x277b('0xd5')]?_0x1edd78++:_0x277b('0x116')==_0x3a947d[_0x4a78fb][_0x277b('0xd5')]&&_0x1edd78--,_0x4a78fb++;if(0x0!=_0x1edd78){if(_0x3a947d[_0x3c4f6d][_0x277b('0x50')])_0x3a947d[_0x3c4f6d]['isIncorrect']=!0x0;else for(;_0x4a78fb!=_0x3c4f6d;)_0x3a947d[_0x4a78fb]['isRemoved']&&0x0!=_0x3a947d[_0x4a78fb]['distance']&&(_0x3a947d[_0x4a78fb][_0x277b('0x2b')]=!0x0,_0x2b30a2[_0x277b('0x7c')](_0x3a947d[_0x4a78fb]['pairId'])),_0x4a78fb--;}}return _0x3a947d['filter'](_0x134cff=>!_0x134cff[_0x277b('0x2b')]);}[_0x277b('0x65')](_0x5bc465){const _0x4ee7a9=this['editor']['model'][_0x277b('0x38')];for(let _0x2c36b4=0x0;_0x2c36b4<_0x5bc465['length'];_0x2c36b4++){if(!(_0x5bc465[_0x2c36b4][_0x277b('0x10')]||_0x5bc465[_0x2c36b4][_0x277b('0xa6')]||_0x5bc465[_0x2c36b4][_0x277b('0x50')]||_0x5bc465[_0x2c36b4][_0x277b('0xc0')]))continue;if(0x0==_0x5bc465[_0x2c36b4]['distance'])continue;const _0x5105d2=_0x5bc465[_0x2c36b4]['item'];_0x4ee7a9[_0x277b('0x117')](_0x5105d2)||_0x4ee7a9['isLimit'](_0x5105d2)||(_0x5bc465[_0x2c36b4]['isAdded']&&delete _0x5bc465[_0x2c36b4][_0x277b('0x10')],_0x5bc465[_0x2c36b4]['isAddSuggestion']&&delete _0x5bc465[_0x2c36b4][_0x277b('0xa6')],_0x5bc465[_0x2c36b4]['isRemoveSuggestion']&&delete _0x5bc465[_0x2c36b4]['isRemoveSuggestion'],_0x5bc465[_0x2c36b4]['isRemoved']&&(_0x5bc465[_0x2c36b4][_0x277b('0x2b')]=!0x0));}return _0x5bc465[_0x277b('0x45')](_0x5dd114=>!_0x5dd114['isIncorrect']);}[_0x277b('0x6b')](_0x455a6b,_0x20d1f5,_0x1f89f5){const _0x54d16c=new _0x51bc69(),_0x4ec0d7=[],_0x58425f=new Map(),_0x552452=this[_0x277b('0x18')][_0x277b('0x1')],_0x74f1d5=_0x552452[_0x277b('0x38')],_0x56f408=[_0x54d16c],_0x2d4ca8={},_0xd41e02={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x7d9c68=null;const _0x4ef5a5=[0x0];for(let _0xab0b63=0x0;_0xab0b63<_0x455a6b['length'];_0xab0b63++){let _0xac78e3,_0x30c837;if(_0x277b('0x10d')===_0x455a6b[_0xab0b63]['type']){_0xac78e3=_0x552452[_0x277b('0xc7')](_0x54d16c,_0x4ef5a5);const _0x213978=new _0x5a9004(_0x455a6b[_0xab0b63][_0x277b('0xe2')][_0x277b('0xef')],_0x455a6b[_0xab0b63][_0x277b('0xe2')][_0x277b('0x5')]());_0x56f408[0x0]['_appendChild'](_0x213978),_0x4ef5a5[_0x277b('0x101')](0x0),_0x56f408[_0x277b('0xc1')](_0x213978),_0x30c837=_0x552452[_0x277b('0xc7')](_0x54d16c,_0x4ef5a5),_0x7d9c68=null;}else{if(_0x277b('0x116')===_0x455a6b[_0xab0b63]['type'])_0x56f408['shift'](),_0xac78e3=_0x552452[_0x277b('0xc7')](_0x54d16c,_0x4ef5a5),_0x4ef5a5[_0x277b('0x72')](),_0x4ef5a5[_0x4ef5a5['length']-0x1]++,_0x30c837=_0x552452[_0x277b('0xc7')](_0x54d16c,_0x4ef5a5),_0x7d9c68=null;else{if(_0xac78e3=_0x552452[_0x277b('0xc7')](_0x54d16c,_0x4ef5a5),_0x7d9c68&&_0x112888(_0x7d9c68,_0x455a6b[_0xab0b63][_0x277b('0xe2')]))_0x7d9c68['_data']+=_0x455a6b[_0xab0b63]['item'][_0x277b('0xed')];else{const _0x2efa48=new _0x4260af(_0x455a6b[_0xab0b63]['item'][_0x277b('0xed')],_0x455a6b[_0xab0b63][_0x277b('0xe2')]['getAttributes']());_0x56f408[0x0]['_appendChild'](_0x2efa48),_0x7d9c68=_0x2efa48;}_0x4ef5a5[_0x4ef5a5['length']-0x1]+=_0x455a6b[_0xab0b63]['item'][_0x277b('0x5e')],_0x30c837=_0x552452[_0x277b('0xc7')](_0x54d16c,_0x4ef5a5);}}for(const _0x14bfdb of _0x455a6b[_0xab0b63][_0x277b('0xb7')])_0x58425f[_0x277b('0x123')](_0x14bfdb,{'start':_0xac78e3,'end':null});_0x5c383b(_0x277b('0xc0'),_0xab0b63,_0xac78e3,_0x30c837),_0x5c383b(_0x277b('0xa6'),_0xab0b63,_0xac78e3,_0x30c837),_0x5c383b(_0x277b('0x50'),_0xab0b63,_0xac78e3,_0x30c837),_0x5c383b(_0x277b('0x10'),_0xab0b63,_0xac78e3,_0x30c837);for(const _0x29191b of _0x455a6b[_0xab0b63][_0x277b('0xf1')]){_0x58425f['get'](_0x29191b)[_0x277b('0x115')]=_0x30c837;}}for(const [_0x330ce5,_0x1d19d7]of _0x58425f){const _0x408cd5=this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0x8c')](_0x1d19d7[_0x277b('0xe4')],_0x1d19d7[_0x277b('0x115')]);_0x54d16c['markers'][_0x277b('0x123')](_0x330ce5,_0x408cd5);}return _0x4ec0d7['sort']((_0x48ffe5,_0x52c90b)=>{const _0x66bc3c=_0x54d16c[_0x277b('0xdc')][_0x277b('0xb1')](_0x277b('0x41')+_0x48ffe5['id']),_0x36b421=_0x54d16c[_0x277b('0xdc')][_0x277b('0xb1')](_0x277b('0x41')+_0x52c90b['id']);return _0x66bc3c['start'][_0x277b('0xca')](_0x36b421[_0x277b('0xe4')])?-0x1:_0x66bc3c[_0x277b('0xe4')][_0x277b('0xac')](_0x36b421[_0x277b('0xe4')])?0x1:_0x66bc3c[_0x277b('0x115')]['isBefore'](_0x36b421[_0x277b('0x115')])?-0x1:_0x66bc3c[_0x277b('0x115')][_0x277b('0xac')](_0x36b421[_0x277b('0x115')])?0x1:_0x277b('0x7c')===_0x48ffe5[_0x277b('0xd5')]?-0x1:0x1;}),{'root':_0x54d16c,'changes':_0x4ec0d7};function _0x5c383b(_0x18aa31,_0x420316,_0x273efc,_0x38c4d5){const _0x2569ac=!!_0x455a6b[_0x420316][_0x18aa31],_0x48d1dc=_0x2569ac?_0x455a6b[_0x420316][_0x18aa31][_0x277b('0xa7')]:null,_0xbc5632=_0x420316===_0x455a6b[_0x277b('0x1c')]-0x1,_0x53ef88=_0xd41e02[_0x18aa31][0x0],_0x753c42=_0x74f1d5[_0x277b('0x7')](_0x455a6b[_0x420316]['item']);!_0x2d4ca8[_0x18aa31]&&_0x2569ac?_0x2d4ca8[_0x18aa31]={'start':_0x273efc,'tapeItem':_0x455a6b[_0x420316],'userId':_0x48d1dc,'type':_0x18aa31}:_0x2d4ca8[_0x18aa31]&&!_0x2569ac?(_0x2d4ca8[_0x18aa31][_0x277b('0x115')]=_0x273efc,_0x54b57e(_0x2d4ca8[_0x18aa31]),_0x2d4ca8[_0x18aa31]=null):_0x2d4ca8[_0x18aa31]&&_0x2569ac&&_0x2d4ca8[_0x18aa31][_0x277b('0xa7')]!==_0x48d1dc&&(_0x2d4ca8[_0x18aa31][_0x277b('0x115')]=_0x273efc,_0x53ef88&&_0x53ef88[_0x277b('0xa7')]===_0x2d4ca8[_0x18aa31][_0x277b('0xa7')]||_0x54b57e(_0x2d4ca8[_0x18aa31]),_0x2d4ca8[_0x18aa31]={'start':_0x273efc,'tapeItem':_0x455a6b[_0x420316],'userId':_0x48d1dc,'type':_0x18aa31}),_0x2d4ca8[_0x18aa31]&&_0x753c42&&(_0x277b('0x10d')!==_0x455a6b[_0x420316][_0x277b('0xd5')]||_0x53ef88&&_0x53ef88['userId']===_0x48d1dc||_0xd41e02[_0x18aa31]['unshift']({'userId':_0x48d1dc,'object':_0x455a6b[_0x420316]['item'],'change':_0x2d4ca8[_0x18aa31]}),_0x277b('0x116')===_0x455a6b[_0x420316][_0x277b('0xd5')]&&_0x53ef88&&_0x53ef88['object']===_0x455a6b[_0x420316]['item']&&(_0xd41e02[_0x18aa31][_0x277b('0xb0')](),_0x2d4ca8[_0x18aa31]=_0x53ef88[_0x277b('0xaf')])),_0x2d4ca8[_0x18aa31]&&_0xbc5632&&(_0x2d4ca8[_0x18aa31]['end']=_0x38c4d5,_0x54b57e(_0x2d4ca8[_0x18aa31]),_0x2d4ca8[_0x18aa31]=null);}function _0x54b57e({start:_0x4614f7,end:_0x308652,tapeItem:_0x3afa4e,userId:_0x354969,type:_0x252869}){const _0x41ba58=_0x3afa4e[_0x277b('0xe2')],_0x28b80b=_0x552452['schema'][_0x277b('0x117')](_0x41ba58)&&!_0x552452[_0x277b('0x38')][_0x277b('0x99')](_0x41ba58),_0x4f6561=_0x4614f7[_0x277b('0xeb')]==_0x308652[_0x277b('0x17')]&&_0x308652['isAtStart'];if(_0x28b80b&&_0x4f6561)return;const _0x14bc42=_0x552452[_0x277b('0x8c')](_0x4614f7,_0x308652),_0x2b40a1=_0x20d1f5[_0x277b('0xb1')](_0x354969),_0x38de65=new _0x7b0959({'author':_0x2b40a1,'type':'isAdded'==_0x252869||_0x277b('0xa6')==_0x252869?'add':_0x277b('0x6f'),'data':{'isSuggestion':_0x277b('0xa6')==_0x252869||_0x277b('0xc0')==_0x252869},'createdAt':new Date(),'rootName':_0x1f89f5});_0x4ec0d7[_0x277b('0x101')](_0x38de65),_0x54d16c[_0x277b('0xdc')][_0x277b('0x123')](_0x277b('0x41')+_0x38de65['id'],_0x14bc42);}function _0x112888(_0x40bd18,_0x38b2ac){const _0x4ea538=_0x40bd18[_0x277b('0x5')](),_0x353c95=_0x38b2ac['getAttributes']();for(const _0x5411fe of _0x4ea538){if(_0x5411fe[0x1]!==_0x38b2ac[_0x277b('0x1a')](_0x5411fe[0x0]))return!0x1;_0x353c95['next']();}return _0x353c95[_0x277b('0xb8')]()['done'];}}[_0x277b('0x7f')](){this[_0x277b('0x18')]['conversion'][_0x277b('0xd')](_0x277b('0x4'))[_0x277b('0x51')]({'view':_0x277b('0xf')}),this[_0x277b('0x18')][_0x277b('0x54')][_0x277b('0xd')](_0x277b('0x6d'))[_0x277b('0xa1')]({'model':_0x277b('0xf'),'view':_0x2a26ca=>{const _0x3be2a9=_0x2a26ca['markerName'][_0x277b('0x5d')](':')[0x1],_0x3cd9e1=this[_0x277b('0xe3')](_0x3be2a9);if(!_0x3cd9e1)return null;const _0x47b11d='add'==_0x3cd9e1[_0x277b('0xd5')]?'insertion':_0x277b('0x25'),_0x5aa09e=[_0x277b('0x78'),_0x277b('0x67')+_0x47b11d];return _0x3cd9e1[_0x277b('0xed')][_0x277b('0x3f')]&&_0x5aa09e['push'](_0x277b('0x67')+_0x47b11d+_0x277b('0x122')),this['activeChange']==_0x3cd9e1&&_0x5aa09e[_0x277b('0x101')](_0x277b('0x121')),{'classes':_0x5aa09e,'attributes':{'data-change-id':_0x3be2a9}};}}),this[_0x277b('0x18')]['conversion']['for'](_0x277b('0x4'))['add'](_0x592182=>{_0x592182['on'](_0x277b('0xec'),(_0x48f269,_0x174898,_0x23737a)=>{const _0x1d396a=_0x174898[_0x277b('0x55')][_0x277b('0x43')](0x0);if(!_0x1d396a||!_0x1d396a['is'](_0x277b('0xea'),_0x277b('0xbf')))return;if(!_0x23737a[_0x277b('0x58')][_0x277b('0x10a')](_0x1d396a,{'attributes':[_0x277b('0x88'),_0x277b('0x118')]}))return;const _0x1eef59=_0x174898[_0x277b('0x11')][_0x277b('0xe4')][_0x277b('0xeb')];_0x23737a[_0x277b('0x1b')][_0x277b('0xdb')](_0x277b('0x88'),_0x1d396a[_0x277b('0x1a')](_0x277b('0x88')),_0x1eef59),_0x23737a[_0x277b('0x1b')][_0x277b('0xdb')](_0x277b('0x118'),_0x1d396a['getAttribute'](_0x277b('0x118')),_0x1eef59);},{'priority':_0x277b('0xe')});}),this[_0x277b('0x18')][_0x277b('0x54')]['for'](_0x277b('0x4'))[_0x277b('0x7c')](_0x44d8c0=>{_0x44d8c0['on'](_0x277b('0xea'),(_0x570bc3,_0x2cbe1c,_0x3a6ea7)=>{if(!_0x3a6ea7[_0x277b('0x58')]['consume'](_0x2cbe1c[_0x277b('0x55')],{'attributes':[_0x277b('0x88'),_0x277b('0x118')]}))return;if(_0x2cbe1c['modelRange']['isCollapsed'])return;const _0x5499b3=_0x2cbe1c[_0x277b('0x11')][_0x277b('0xe4')][_0x277b('0xeb')];_0x5499b3[_0x277b('0x10b')](_0x277b('0x88'))||_0x5499b3['hasAttribute'](_0x277b('0x52'))||(_0x3a6ea7['writer'][_0x277b('0xdb')]('vid_start',_0x2cbe1c[_0x277b('0x55')][_0x277b('0x1a')](_0x277b('0x88')),_0x5499b3),_0x3a6ea7['writer'][_0x277b('0xdb')](_0x277b('0x118'),_0x2cbe1c['viewItem'][_0x277b('0x1a')](_0x277b('0x118')),_0x5499b3));},{'priority':_0x277b('0xe')});}),this[_0x277b('0x18')]['conversion'][_0x277b('0xd')](_0x277b('0x4'))[_0x277b('0x32')]({'view':{'name':_0x277b('0x4b'),'attributes':{'vid':!0x0}},'model':{'key':_0x277b('0x52'),'value':_0x31c015=>_0x31c015[_0x277b('0x1a')]('vid')}}),this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0x38')]['on']('checkAttribute',(_0x3694dd,[,_0x22fd8e])=>{['vid_start',_0x277b('0x118'),_0x277b('0x52')][_0x277b('0x9d')](_0x22fd8e)&&(_0x3694dd['return']=!0x0,_0x3694dd[_0x277b('0xf4')]());},{'priority':_0x277b('0x22')}),this[_0x277b('0x18')][_0x277b('0x54')]['for'](_0x277b('0xaa'))['add'](_0xd72c23=>{_0xd72c23['on'](_0x277b('0x4e'),(_0x3f8cf8,_0x42d392,_0x46a0e5)=>{if('\x20'!=_0x42d392['item']['data']||_0x42d392[_0x277b('0xe2')][_0x277b('0x17')][_0x277b('0x3a')]>0x1)return;if(!_0x46a0e5['consumable'][_0x277b('0x10a')](_0x42d392['item'],_0x3f8cf8[_0x277b('0xef')]))return;const _0x362faf=_0x46a0e5['writer'],_0x4a0e4b=_0x46a0e5['mapper'][_0x277b('0x119')](_0x42d392[_0x277b('0xfb')]);_0x362faf[_0x277b('0xf5')](_0x4a0e4b,_0x362faf[_0x277b('0x0')](_0x277b('0x4b')));});}),this[_0x277b('0x18')][_0x277b('0x54')][_0x277b('0xd')]('dataDowncast')[_0x277b('0xcf')]({'model':_0x277b('0xf')}),this[_0x277b('0x18')][_0x277b('0x9b')][_0x277b('0x29')]['on']('addMarker:revision',function(_0x5a3c59){const _0x2b8ac5=_0x5a3c59[_0x277b('0x59')][_0x277b('0xb1')](_0x277b('0x8f'));return(_0x3ce751,_0x35c3e5,_0x4687d0)=>{const _0x2cc17b=_0x35c3e5[_0x277b('0x39')][_0x277b('0x5d')](':')[0x1],_0x220a83=_0x2b8ac5[_0x277b('0xe3')](_0x2cc17b);if(!_0x220a83)return null;const _0x4e1852='add'==_0x220a83[_0x277b('0xd5')]?'split':'merge';if(!_0x4687d0[_0x277b('0x58')]['test'](_0x35c3e5[_0x277b('0x61')],_0x3ce751[_0x277b('0xef')]))return;const _0x3c408d=_0x35c3e5['markerRange'][_0x277b('0x30')](),_0x10e760=_0x35c3e5[_0x277b('0x61')][_0x277b('0xe4')],_0x13684d=_0x5a3c59['model'][_0x277b('0x38')];let _0x56b37d=null,_0x1c3227=null,_0x106a65=!0x1,_0x15cee1=!0x1;for(const _0x2ed2fe of _0x3c408d){const _0x87588=_0x2ed2fe[_0x277b('0xe2')];_0x106a65=_0x106a65||_0x13684d['isContent'](_0x87588);const _0x5e89c9=_0x4687d0[_0x277b('0x94')][_0x277b('0x103')](_0x87588);if(_0x5e89c9&&_0x5e89c9['getCustomProperty'](_0x277b('0x40')))return;_0x277b('0x116')==_0x2ed2fe[_0x277b('0xd5')]&&(_0x13684d[_0x277b('0x117')](_0x87588)&&!_0x13684d[_0x277b('0x99')](_0x87588)&&(_0x87588['nextSibling']||_0x10e760[_0x277b('0x33')]?_0x56b37d&&_0x56b37d[_0x277b('0x17')]==_0x87588||(_0x56b37d=_0x87588,_0x145189(_0x2ed2fe[_0x277b('0x1e')]),_0x15cee1=!0x0):_0x1c3227=_0x1c3227||_0x2ed2fe[_0x277b('0x1e')]));}function _0x145189(_0x8a319f){const _0x259bf8=_0x4687d0[_0x277b('0x1b')][_0x277b('0x8')](_0x277b('0x4b'),{'class':_0x277b('0x67')+_0x4e1852}),_0x1cd050=_0x4687d0['mapper'][_0x277b('0x76')](_0x8a319f);_0x220a83[_0x277b('0xed')][_0x277b('0x3f')]&&_0x4687d0['writer'][_0x277b('0x9a')]('ck-suggestion-marker-'+_0x4e1852+_0x277b('0x122'),_0x259bf8),_0x2b8ac5['activeChange']==_0x220a83&&_0x4687d0['writer']['addClass'](_0x277b('0x121'),_0x259bf8),_0x4687d0[_0x277b('0x1b')][_0x277b('0x10c')](_0x1cd050,_0x259bf8),_0x4687d0[_0x277b('0x94')][_0x277b('0xe6')](_0x259bf8,_0x35c3e5[_0x277b('0x39')]);}_0x106a65||_0x15cee1||!_0x1c3227||_0x145189(_0x1c3227);};}(this[_0x277b('0x18')]),{'priority':_0x277b('0x77')}),this[_0x277b('0x18')]['editing'][_0x277b('0x29')]['on'](_0x277b('0x126'),(_0x56196e,_0x13a67b,_0x567e5e)=>{const _0x3bcbbe=_0x567e5e[_0x277b('0x94')][_0x277b('0x110')](_0x13a67b[_0x277b('0x39')]);if(_0x3bcbbe)for(const _0x1a2017 of _0x3bcbbe)(_0x1a2017[_0x277b('0x8a')]('ck-suggestion-marker-split')||_0x1a2017['hasClass'](_0x277b('0x36')))&&(_0x567e5e[_0x277b('0x94')][_0x277b('0x20')](_0x1a2017,_0x13a67b[_0x277b('0x39')]),_0x567e5e[_0x277b('0x1b')][_0x277b('0x6f')](_0x1a2017));},{'priority':_0x277b('0x77')}),this[_0x277b('0x18')][_0x277b('0x9b')]['downcastDispatcher']['on'](_0x277b('0xe7'),(_0x372fa3,_0x384107,_0x9d92b8)=>{const _0x1c66da=_0x384107[_0x277b('0x39')]['split'](':')[0x1],_0x37a138=this[_0x277b('0xe3')](_0x1c66da);if(!_0x37a138)return null;const _0x203000='add'==_0x37a138[_0x277b('0xd5')]?_0x277b('0x5d'):'merge';if(_0x9d92b8[_0x277b('0x58')][_0x277b('0xa8')](_0x384107[_0x277b('0x61')],_0x372fa3['name']))for(const _0x368be5 of _0x384107[_0x277b('0x61')][_0x277b('0x107')]()){if(!_0x368be5['is']('element',_0x277b('0x70')))continue;const _0x3c5671=_0x9d92b8['writer'][_0x277b('0x8')](_0x277b('0x4b'),{'class':_0x277b('0x67')+_0x203000}),_0x2bee6e=_0x9d92b8[_0x277b('0x94')][_0x277b('0x76')](this[_0x277b('0x18')]['model'][_0x277b('0xa')](_0x368be5));_0x37a138[_0x277b('0xed')]['isSuggestion']&&_0x9d92b8[_0x277b('0x1b')]['addClass'](_0x277b('0x67')+_0x203000+_0x277b('0x122'),_0x3c5671),this[_0x277b('0x2f')]==_0x37a138&&_0x9d92b8['writer']['addClass'](_0x277b('0x121'),_0x3c5671),_0x9d92b8[_0x277b('0x1b')][_0x277b('0x10c')](_0x2bee6e,_0x3c5671),_0x9d92b8[_0x277b('0x94')][_0x277b('0xe6')](_0x3c5671,_0x384107[_0x277b('0x39')]);}},{'priority':_0x277b('0x77')}),this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0xdd')]['on'](_0x277b('0xaf'),()=>{this[_0x277b('0x18')]['editing'][_0x277b('0xb4')]['change'](_0x4e1070=>{for(const _0x476589 of this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0xdd')][_0x277b('0x95')]()){const _0x188ae3=this['editor'][_0x277b('0x1')][_0x277b('0xdd')][_0x277b('0x108')](_0x476589),_0xd7c3d9=this['editor']['editing'][_0x277b('0xb4')][_0x277b('0xdd')][_0x277b('0x108')](_0x476589);if(_0xd7c3d9){const _0x2e03fc=_0x188ae3[_0x277b('0x1a')](_0x277b('0xc9'));if(_0x4e1070['removeAttribute'](_0x277b('0x64'),_0xd7c3d9),_0x4e1070[_0x277b('0x47')]('ck-revision-history-root-add',_0xd7c3d9),_0x4e1070[_0x277b('0x47')](_0x277b('0x49'),_0xd7c3d9),_0x4e1070[_0x277b('0x47')](_0x277b('0x35'),_0xd7c3d9),_0x2e03fc){const _0x3c3e56=this[_0x277b('0xe3')](_0x2e03fc);if(!_0x3c3e56)return null;_0x4e1070['setAttribute'](_0x277b('0x64'),_0x2e03fc,_0xd7c3d9),_0x4e1070['addClass'](_0x277b('0x5c')+_0x3c3e56[_0x277b('0xd5')],_0xd7c3d9),this['activeChange']==_0x3c3e56&&_0x4e1070[_0x277b('0x9a')](_0x277b('0x35'),_0xd7c3d9);}}}});}),this[_0x277b('0x18')][_0x277b('0x54')][_0x277b('0xd')](_0x277b('0x4'))[_0x277b('0x51')]({'view':_0x277b('0xdf'),'model':_0x18837d=>_0x277b('0x7a')+_0x18837d,'converterPriority':_0x277b('0x22')}),this[_0x277b('0x18')]['conversion'][_0x277b('0xd')]('upcast')[_0x277b('0x51')]({'view':_0x277b('0x113'),'model':_0x1be916=>_0x277b('0x3c')+_0x1be916,'converterPriority':_0x277b('0x22')}),this[_0x277b('0x18')][_0x277b('0x54')][_0x277b('0xd')](_0x277b('0xaa'))[_0x277b('0xcf')]({'model':_0x277b('0xe5'),'view':_0x2638e7=>({'name':'suggestion:'+_0x2638e7,'group':'revision-suggestion'}),'converterPriority':_0x277b('0x22')}),this[_0x277b('0x18')][_0x277b('0x54')][_0x277b('0xd')](_0x277b('0x6d'))['markerToHighlight']({'model':_0x277b('0xe5'),'view':_0x1719e5=>{const _0x2558cf=_0x1719e5[_0x277b('0x39')][_0x277b('0x5d')](':')[0x1];return _0x277b('0x82')!=_0x2558cf&&_0x277b('0x25')!=_0x2558cf?null:{'classes':['ck-suggestion-preview-marker',_0x277b('0x120')+_0x2558cf]};}}),this[_0x277b('0x18')][_0x277b('0x9b')]['downcastDispatcher']['on'](_0x277b('0xd8'),Z(this[_0x277b('0x18')],_0x277b('0x102')),{'priority':_0x277b('0x77')}),this[_0x277b('0x18')][_0x277b('0x9b')][_0x277b('0x29')]['on'](_0x277b('0xf7'),Z(this['editor'],'split'),{'priority':_0x277b('0x77')}),this['editor'][_0x277b('0x9b')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3c9f20,_0x466e50,_0x33aec5)=>{const _0x114b60=_0x33aec5[_0x277b('0x94')][_0x277b('0x110')](_0x466e50[_0x277b('0x39')]);if(_0x114b60)for(const _0x28be9e of _0x114b60)_0x28be9e['is'](_0x277b('0x6'))&&(_0x33aec5[_0x277b('0x94')][_0x277b('0x20')](_0x28be9e,_0x466e50[_0x277b('0x39')]),_0x33aec5['writer']['remove'](_0x28be9e));},{'priority':_0x277b('0x77')});}[_0x277b('0xe3')](_0x2a45bd){return this[_0x277b('0x27')][_0x277b('0xb1')](_0x2a45bd);}['_getViewForChange'](_0x342afe){return this[_0x277b('0x7e')]&&this['_changeView'][_0x277b('0x14')](),this['_changeView']=new _0x5eed01(this['editor'][_0x277b('0x2d')],_0x342afe),this[_0x277b('0x7e')];}[_0x277b('0x93')](){this[_0x277b('0x18')][_0x277b('0x1')]['document'][_0x277b('0x85')][_0x277b('0xd4')](_0x277b('0xf')),this['on'](_0x277b('0x3'),(_0x3e1f2d,_0x42d98a,_0x156172,_0x1d0e5e)=>{_0x1d0e5e&&this['_balloon'][_0x277b('0x6f')](_0x1d0e5e),_0x156172&&(this[_0x277b('0xf3')]['add']({'view':_0x156172,'stackId':_0x277b('0xcb'),'position':{'target':()=>{const _0x1a6372=this[_0x277b('0x18')][_0x277b('0x9b')],_0x2fabb1=this[_0x277b('0xe3')](_0x156172[_0x277b('0x74')]);let _0x12bd52;if(_0x2fabb1['data']['isOnRoot']){const _0x5ab140=_0x1a6372[_0x277b('0xb4')][_0x277b('0xb')](_0x2fabb1[_0x277b('0x3d')]);_0x12bd52=Array[_0x277b('0x42')](_0x5ab140['getClientRects']());}else{const _0x26e18f=this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0xdc')]['get']('revision:'+_0x156172[_0x277b('0x74')]);_0x12bd52=Array[_0x277b('0x42')](_0x1a6372[_0x277b('0x94')][_0x277b('0x110')](_0x26e18f[_0x277b('0xef')]))[_0x277b('0x98')](_0x285ae1=>_0x1a6372['view'][_0x277b('0x9f')][_0x277b('0x63')](_0x285ae1))[_0x277b('0x98')](_0x14b444=>Array[_0x277b('0x42')](_0x14b444['getClientRects']()))[_0x277b('0x11f')]();}if(!this[_0x277b('0x48')])return _0x12bd52[0x0];return _0x12bd52[_0x277b('0x56')](_0x73c09f=>_0x73c09f[_0x277b('0xc5')]-0x3<=this[_0x277b('0x48')]['y']&&_0x73c09f[_0x277b('0xa2')]+0x3>=this[_0x277b('0x48')]['y']&&_0x73c09f[_0x277b('0x4a')]-0x3<=this[_0x277b('0x48')]['x']&&_0x73c09f[_0x277b('0x5a')]+0x3>=this[_0x277b('0x48')]['x'])||_0x12bd52[0x0];}}}),this[_0x277b('0xf3')][_0x277b('0x104')](_0x277b('0xcb')));}),this['on'](_0x277b('0x73'),(_0x5f2f48,_0x4c418d,_0x5ed8ff,_0x28a729)=>{this[_0x277b('0x13')]=_0x5ed8ff?this[_0x277b('0xd9')](_0x5ed8ff):null,this['editor'][_0x277b('0x1')][_0x277b('0xaf')](()=>{const _0x19db00=this[_0x277b('0x18')][_0x277b('0x9b')];_0x28a729&&(_0x28a729[_0x277b('0xed')][_0x277b('0x84')]?_0x19db00[_0x277b('0xb4')][_0x277b('0xaf')](_0x3c5d72=>{_0x3c5d72[_0x277b('0x47')]('ck-revision-history-root--active',_0x19db00[_0x277b('0xb4')][_0x277b('0xdd')][_0x277b('0x108')](_0x28a729[_0x277b('0x3d')]));}):_0x19db00[_0x277b('0xd0')]('revision:'+_0x28a729['id'])),_0x5ed8ff&&(_0x5ed8ff[_0x277b('0xed')][_0x277b('0x84')]?_0x19db00[_0x277b('0xb4')][_0x277b('0xaf')](_0x3d1ed3=>{_0x3d1ed3[_0x277b('0x9a')]('ck-revision-history-root--active',_0x19db00['view'][_0x277b('0xdd')][_0x277b('0x108')](_0x5ed8ff[_0x277b('0x3d')]));}):_0x19db00[_0x277b('0xd0')](_0x277b('0x41')+_0x5ed8ff['id']));});}),this[_0x277b('0xf6')](this[_0x277b('0x18')][_0x277b('0x9b')][_0x277b('0xb4')][_0x277b('0xdd')],_0x277b('0x19'),(_0x2e6d91,_0x200dfe)=>{if(this[_0x277b('0x2f')])return;const _0x4a2815=this[_0x277b('0x57')](_0x200dfe[_0x277b('0xba')]),_0x122c69=this['_changeIdToChange'][_0x277b('0xb1')](_0x4a2815);_0x122c69?(this[_0x277b('0x48')]={'x':_0x200dfe[_0x277b('0x1d')]['x'],'y':_0x200dfe[_0x277b('0x1d')]['y']},this['activeView']=this[_0x277b('0xd9')](_0x122c69)):(this[_0x277b('0x48')]=null,this[_0x277b('0x13')]=null);}),this['listenTo'](this['editor'][_0x277b('0x9b')][_0x277b('0xb4')][_0x277b('0xdd')],_0x277b('0x44'),(_0x233830,_0x1b2730)=>{const _0x326f7a=this[_0x277b('0x57')](_0x1b2730[_0x277b('0xba')]),_0x348acd=this[_0x277b('0x27')][_0x277b('0xb1')](_0x326f7a);_0x348acd?(this['_activeViewTarget']={'x':_0x1b2730[_0x277b('0x1d')]['x'],'y':_0x1b2730[_0x277b('0x1d')]['y']},_0x348acd===this[_0x277b('0x2f')]?this[_0x277b('0xf3')][_0x277b('0x2c')]():this[_0x277b('0x2f')]=_0x348acd):(this[_0x277b('0x48')]=null,this['activeChange']=null);});}[_0x277b('0x57')](_0x1a9efe){do{const _0x1d2251=_0x1a9efe[_0x277b('0x1a')](_0x277b('0x64'));if(_0x1d2251)return _0x1d2251;_0x1a9efe=_0x1a9efe['parent'];}while(_0x1a9efe);return null;}['_cleanMarkers'](){this['editor'][_0x277b('0x1')][_0x277b('0xaf')](_0xec03bb=>{for(const _0x54c89b of this[_0x277b('0x18')][_0x277b('0x1')][_0x277b('0xdc')])_0xec03bb[_0x277b('0xf0')](_0x54c89b);});}}function Z(_0x1ed2a6,_0x316f62){return(_0x450d84,_0x4f00b4,_0x283390)=>{if(!_0x283390[_0x277b('0x58')][_0x277b('0xa8')](_0x4f00b4[_0x277b('0x61')],_0x450d84[_0x277b('0xef')]))return;const _0x1f9189=_0x4f00b4[_0x277b('0x61')][_0x277b('0x30')](),_0x5aa6d6=_0x4f00b4[_0x277b('0x61')]['start'],_0x19b9c4=_0x1ed2a6[_0x277b('0x1')][_0x277b('0x38')];let _0x12c736=null,_0x115317=null,_0x1eeb77=!0x1,_0x2acbc3=!0x1;for(const _0x51e6c0 of _0x1f9189){const _0x465194=_0x51e6c0[_0x277b('0xe2')];_0x1eeb77=_0x1eeb77||_0x19b9c4[_0x277b('0x8d')](_0x465194);const _0x220590=_0x283390[_0x277b('0x94')][_0x277b('0x103')](_0x465194);if(_0x220590&&_0x220590[_0x277b('0xe9')](_0x277b('0x40')))return;_0x277b('0x116')==_0x51e6c0[_0x277b('0xd5')]&&(_0x19b9c4[_0x277b('0x117')](_0x465194)&&!_0x19b9c4[_0x277b('0x99')](_0x465194)&&(_0x465194['nextSibling']||_0x5aa6d6[_0x277b('0x33')]?_0x12c736&&_0x12c736[_0x277b('0x17')]==_0x465194||(_0x12c736=_0x465194,_0x53286c(_0x51e6c0[_0x277b('0x1e')]),_0x2acbc3=!0x0):_0x115317=_0x115317||_0x51e6c0[_0x277b('0x1e')]));}function _0x53286c(_0xa4c271){const _0x399a9e=_0x283390[_0x277b('0x94')][_0x277b('0x76')](_0xa4c271),_0x23cce6=_0x283390[_0x277b('0x1b')][_0x277b('0x8')]('span',{'class':_0x277b('0x120')+_0x316f62});_0x283390[_0x277b('0x1b')][_0x277b('0x10c')](_0x399a9e,_0x23cce6),_0x283390[_0x277b('0x94')][_0x277b('0xe6')](_0x23cce6,_0x4f00b4[_0x277b('0x39')]);}_0x1eeb77||_0x2acbc3||!_0x115317||_0x53286c(_0x115317);};}export class RestoreRevisionCommand extends _0x4f2863{constructor(_0x543927){super(_0x543927);const _0x2d8b6d=_0x543927[_0x277b('0x59')][_0x277b('0xb1')](d);this['affectsData']=!0x1,this[_0x277b('0xf6')](_0x2d8b6d,'change:isReady',()=>this[_0x277b('0xae')]()),this[_0x277b('0xf6')](_0x2d8b6d,_0x277b('0x12'),()=>this[_0x277b('0xae')]());}[_0x277b('0xfd')](){const _0x57c2c2=this[_0x277b('0x18')],_0x104d6d=_0x57c2c2[_0x277b('0x59')]['get'](d),_0x3f4aad=_0x104d6d[_0x277b('0xd6')]?_0x104d6d[_0x277b('0xd7')][_0x277b('0x71')]:null;_0x57c2c2[_0x277b('0x80')][_0x277b('0xb1')](_0x277b('0xe8'))[_0x277b('0x10f')](_0x3f4aad);}['refresh'](){const {isReady:_0xc43a05,isEnabled:_0x57e1de}=this[_0x277b('0x18')][_0x277b('0x59')]['get'](d);this[_0x277b('0x5b')]=_0xc43a05&&_0x57e1de;}}export class ShowChangeCommand extends _0x4f2863{constructor(_0x5044ac,{direction:_0x23f602}){super(_0x5044ac);const _0x3bd451=_0x5044ac[_0x277b('0x59')][_0x277b('0xb1')](d);this[_0x277b('0xc4')]=!0x1,this['_step']=_0x277b('0xb9')===_0x23f602?0x1:-0x1,this[_0x277b('0xf6')](_0x3bd451,_0x277b('0x8b'),()=>this['refresh']()),this[_0x277b('0xf6')](_0x3bd451,_0x277b('0x12'),()=>this[_0x277b('0xae')]());}[_0x277b('0xfd')](){const _0x6c9736=this[_0x277b('0x18')],_0x12dc29=_0x6c9736[_0x277b('0x59')][_0x277b('0xb1')](d),{isNavigationMode:_0x3e2f2e,currentChangeNumber:_0x46d48c}=_0x12dc29;let _0x236d14;if(_0x12dc29[_0x277b('0x2f')]=_0x3e2f2e?_0x12dc29[_0x277b('0xd7')]['changes']['get'](_0x46d48c+this[_0x277b('0x87')]):_0x12dc29[_0x277b('0xd7')][_0x277b('0x7b')]['first'],_0x12dc29['activeChange'][_0x277b('0xed')][_0x277b('0x84')])_0x236d14=_0x6c9736[_0x277b('0x9b')][_0x277b('0xb4')]['getDomRoot'](_0x12dc29['activeChange'][_0x277b('0x3d')]);else{const _0x3bef25=_0x6c9736[_0x277b('0x1')][_0x277b('0xdc')]['get'](_0x277b('0x41')+_0x12dc29['activeChange']['id']);_0x236d14=_0x18e969(_0x6c9736['editing'],_0x3bef25);}_0x4e959c({'target':_0x236d14,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x454ca6,currentChangeNumber:_0x227ea0,numberOfChanges:_0x211c5f,isReady:_0x5df200,isEnabled:_0x2db867}=this[_0x277b('0x18')][_0x277b('0x59')][_0x277b('0xb1')](d);this[_0x277b('0x5b')]=!!(_0x2db867&&_0x5df200&&_0x211c5f)&&(!_0x454ca6||(0x1===this[_0x277b('0x87')]?_0x227ea0<_0x211c5f-0x1:_0x227ea0>0x0));}}
|
|
23
|
+
const _0x259c=['refresh','elementToAttribute','enqueueChange','schema','values','document','_refreshStartEndIndex','getRootNames','bottom','removeMarker:revision','insertion','get','getAttributes','ck-revision-history-root--active','activeChange','removeClass','end','removeMarker:revision-suggestion','marked','-new','_removeRevisionMarkers','_getChangeFromId','next','writer','startsWith','deletions','getRevisionRootsAttributes','_getDiff','getRoot','pluginName','isRemoveSuggestion','data','changeId','ck-revision-history-root-','isEqual','consumable','ck-editor__editable__overlay','slice','bind','collaboration.channelId','isSuggestion','uiElement','roots','dataDowncast','vid_start','backward','enableReadOnlyMode','_threeWayMerge','useFillerType','insertions','createPositionBefore','_cleanUp','oldRevisionId','selection','addRevision','rootName','createPositionFromPath','markers','isCollapsed','_activeViewTarget','abs','vid_end','config','unbindElementFromMarkerName','isAttached','level','getRevisionData','diffData','view','WidgetToolbarRepository','parent','_changeIdToChange','add','side','setAttribute','push','revisionHistoryAttachChange','ck-suggestion-preview-marker-','getChild','revision-comment:','remove','_setConversion','children','forward','getIndex','data-revision-','revision-end','showNextChange','isRemoved','startIndex','markerNameToElements','markerRange','revision','editingDowncast','ck-suggestion-marker','loadRevisionData','highest','domConverter','ck-revision-history-root-remove','object','mousedown','authors','data-change-id','nextPosition','type','split','ck-suggestion-marker-merge','nextSibling','offsetSize','POSITIVE_INFINITY','span','test','addMarker:revision','markerToData','_initInteractions','createUIElement','delete','insert','addMarker:revision-suggestion:insertion','isAddSuggestion','forEach','bindElementToMarker','_setDistance','_update','compare','merge','domEvent','element:pre','keys','from','pairId','_getRevisionsRange','string','then','destroy','activeView','ck-revision-history-root-add','attributesAfter','showStack','hasClass','change:activeChange','revision:','wrap','change:activeView','high','editor','isBlock','_data','markerName','change:isEnabled','viewItem','RevisionViewer','previousPosition','deletion','addRoot','resolve','commands','nodeAfter','attributes','index','set','change','comment','dataToMarker','getAttribute','range','filter','numberOfChanges','default','markersEnd','ck-suggestion-marker--active','getCustomProperty','createRangeIn','vid','_appendChild','isEnabled','sort','target','map','_sortAndFilterDiffChanges','_cleanMarkers','code','has','toViewRange','isAfter','conversion','attribute:vid','isAtStart','elementStart','change:isReady','addHighlight','_markMarkers','reconvertMarker','getClientRects','item','_getViewObj','includes','start','distance','mapper','for','_balloon','name','isIncorrect','checkAttribute','mouseover','isNavigationMode','upcast','_makeModelFromTape','findIndex','elementEnd','getDomRoot','ck-suggestion-marker-split','removeMarker','_removeUnsupportedChanges','_getViewForChange','top','_findChangeIdFromDomTarget','userId','repository','editing','revision-suggestion','return','isLimit','toViewPosition','listenTo','processor','createAttributeElement','maxOffset','isOnRoot','plugins','text','currentChangeNumber','splice','_setChanges','toData','_revisions','removeAttribute','adapter','createRange','done','_markMismatchedRemovedTags','isAtEnd','diff','change:numberOfChanges','element','endIndex','markerToHighlight','_makeTape','getItems','revisionHistoryLabel','_changeView','shift','getWalker','catch','changes','attachChange','isObject','softBreak','newRevisionId','_fixObsoleteTags','isAdded','getRevision','_removeMissingPairs','length','right','RevisionsRepository','model','error','downcastDispatcher','first','isReady','_processTape','indexOf','observeMarkers','init','_markInsertions','ck-suggestion-marker-','modelRange','markersStart','execute','unshift','addMarker:revision-suggestion:deletion','detachRoot','hasAttribute','revisionHistory','consume','toViewElement','revision-viewer','concat','isContent','addClass','_step','_makeModelFromViewString'];(function(_0x37087c,_0x259c73){const _0x4f22c2=function(_0xf63fb0){while(--_0xf63fb0){_0x37087c['push'](_0x37087c['shift']());}};_0x4f22c2(++_0x259c73);}(_0x259c,0x14b));const _0x4f22=function(_0x37087c,_0x259c73){_0x37087c=_0x37087c-0x0;let _0x4f22c2=_0x259c[_0x37087c];return _0x4f22c2;};import{Plugin as _0x279042,Command as _0x35688b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3c451b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x15d37b}from'ckeditor5/src/ui';import{DocumentFragment as _0x448404,Element as _0x340e18,Text as _0x21d0f8,ViewDocumentFragment as _0xbcd63c,ViewText as _0x5207c2,ViewElement as _0x371eda,ViewContainerElement as _0x49d4fd,ViewAttributeElement as _0x2f3a53,ViewEmptyElement as _0x7c8eb7,ViewRawElement as _0x19772b,ViewUIElement as _0x38347b}from'ckeditor5/src/engine';import{Users as _0x34c33f,getMarkerDomElement as _0x313195}from'ckeditor5-collaboration/src/collaboration-core';import _0x249774 from'./ui/revisionviewer/changedetailsview';import _0x2e7230 from'./revisionsrepository';import _0x2f0fc5 from'./changeitem';import{default as _0x353e10}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4c96ef}from'lodash-es';const Y={'c':_0x49d4fd,'a':_0x2f3a53,'e':_0x7c8eb7,'r':_0x19772b,'u':_0x38347b};export default class d extends _0x279042{static get[_0x4f22('0x11e')](){return _0x4f22('0x72');}static get['requires'](){return[_0x34c33f,_0x15d37b,_0x2e7230];}constructor(_0x1c52ab){super(_0x1c52ab),this[_0x4f22('0xb6')]=this[_0x4f22('0x6c')][_0x4f22('0xc1')]['get'](_0x4f22('0xe5')),this[_0x4f22('0x7b')](_0x4f22('0x10f'),null),this['set'](_0x4f22('0x62'),null),this[_0x4f22('0x16')]=null,this['set'](_0x4f22('0xce'),null),this[_0x4f22('0x7b')](_0x4f22('0xea'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x4f22('0x70'),(_0x12eebf,_0x26d7cb,_0x533011)=>{this[_0x4f22('0x10f')]=null,this[_0x4f22('0x62')]=null,this[_0x4f22('0x6c')]['editing'][_0x4f22('0x1f')][_0x4f22('0x7c')](_0x3357b3=>{for(const _0x595046 of this['editor'][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')][_0x4f22('0x5')])_0x533011?_0x3357b3['removeClass'](_0x4f22('0x125'),_0x595046):_0x3357b3[_0x4f22('0xfe')](_0x4f22('0x125'),_0x595046);});}),this[_0x4f22('0x1')](_0x4f22('0xa9'))['to'](this,_0x4f22('0x10f'),_0x2c7407=>null!==_0x2c7407),this[_0x4f22('0x1')](_0x4f22('0xc3'))['to'](this,_0x4f22('0xea'),this,_0x4f22('0xce'),this,_0x4f22('0x10f'),(_0x874a2c,_0x189a71,_0x29bb40)=>_0x874a2c&&_0x29bb40?_0x189a71[_0x4f22('0xda')][_0x4f22('0x2f')](_0x29bb40):0x0),this[_0x4f22('0x1')](_0x4f22('0x82'))['to'](this,'isReady',this,_0x4f22('0xce'),(_0x3d4c35,_0x2e7c8f)=>_0x3d4c35?_0x2e7c8f[_0x4f22('0xda')][_0x4f22('0xe3')]:0x0),this[_0x4f22('0xd6')]=null,this[_0x4f22('0x22')]=new Map(),this[_0x4f22('0xc9')]=null,this[_0x4f22('0xa4')]=this['editor'][_0x4f22('0xc1')][_0x4f22('0x10c')](_0x15d37b);}[_0x4f22('0xee')](){const _0x1f0bab=this[_0x4f22('0x6c')],_0x359dac=new ShowChangeCommand(_0x1f0bab,{'direction':_0x4f22('0x8')}),_0x3b1d53=new ShowChangeCommand(_0x1f0bab,{'direction':'forward'});(_0x1f0bab['commands']['add']('showPreviousChange',_0x359dac),_0x1f0bab['commands'][_0x4f22('0x23')](_0x4f22('0x32'),_0x3b1d53),_0x1f0bab[_0x4f22('0x77')][_0x4f22('0x23')]('restoreRevision',new RestoreRevisionCommand(_0x1f0bab)),this['on'](_0x4f22('0xcf'),()=>{_0x359dac['refresh'](),_0x3b1d53['refresh']();}),this[_0x4f22('0x2c')](),this[_0x4f22('0x4d')](),_0x1f0bab[_0x4f22('0x9')](_0x4f22('0xfb')),_0x1f0bab[_0x4f22('0xc1')][_0x4f22('0x91')](_0x4f22('0x20')))&&_0x1f0bab[_0x4f22('0xc1')][_0x4f22('0x10c')](_0x4f22('0x20'))['forceDisabled'](_0x4f22('0xfb'));}async[_0x4f22('0x1d')](_0x1c24ff){await this[_0x4f22('0x3a')](_0x1c24ff);const _0x3698a1={};for(const _0x5eb89b in _0x1c24ff[_0x4f22('0x1e')]){if(_0x1c24ff[_0x4f22('0x1e')][_0x5eb89b][_0x4f22('0xdb')]&&!_0x1c24ff['diffData'][_0x5eb89b][_0x4f22('0xdb')][_0x4f22('0x1b')])continue;const _0x31e62f=this['_removeRevisionMarkers'](JSON['parse'](_0x1c24ff[_0x4f22('0x1e')][_0x5eb89b]['insertions'])),_0x4a7214=this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')],_0x20c17a=new _0xbcd63c(_0x4a7214,_0x31e62f[_0x4f22('0x8d')](_0x1db344=>this[_0x4f22('0x9e')](_0x1db344)));this[_0x4f22('0x6c')][_0x4f22('0x120')][_0x4f22('0xbd')]['useFillerType'](_0x4f22('0x113')),_0x3698a1[_0x5eb89b]=this[_0x4f22('0x6c')]['data'][_0x4f22('0xbd')][_0x4f22('0xc6')](_0x20c17a),this[_0x4f22('0x6c')][_0x4f22('0x120')][_0x4f22('0xbd')][_0x4f22('0xb')](_0x4f22('0x83'));}return _0x3698a1;}async[_0x4f22('0x11b')](_0x42311d){await this[_0x4f22('0x3a')](_0x42311d);const _0x3c09a8={};for(const _0x1bb199 in _0x42311d[_0x4f22('0x1e')])_0x42311d[_0x4f22('0x1e')][_0x1bb199][_0x4f22('0xdb')]&&!_0x42311d['diffData'][_0x1bb199][_0x4f22('0xdb')][_0x4f22('0x1b')]||(_0x3c09a8[_0x1bb199]=_0x42311d[_0x4f22('0x1e')][_0x1bb199]['attributesAfter']||{});return _0x3c09a8;}[_0x4f22('0x115')](_0x40f022){return(_0x40f022=_0x40f022[_0x4f22('0x81')](_0x41e39e=>!_0x41e39e[_0x4f22('0xa5')]||'revision-start'!==_0x41e39e[_0x4f22('0xa5')]&&_0x4f22('0x31')!==_0x41e39e[_0x4f22('0xa5')]))[_0x4f22('0x53')](_0x188c96=>{_0x4f22('0x5f')!=typeof _0x188c96&&(_0x188c96['children']=this[_0x4f22('0x115')](_0x188c96[_0x4f22('0x2d')]),_0x188c96[_0x4f22('0x79')]=_0x188c96[_0x4f22('0x79')][_0x4f22('0x81')](_0x2b952f=>!_0x2b952f[0x0][_0x4f22('0x119')](_0x4f22('0x30'))));}),_0x40f022;}async[_0x4f22('0x57')](_0x341645,_0xd0cbf4,_0x2833d3=!0x1){if(!this['isEnabled'])return;const _0x3bffaf=this[_0x4f22('0xce')],_0x31b649=this['repository'],_0x595485=_0x4f22('0x5f')==typeof _0x341645?_0x31b649['getRevision'](_0x341645):_0x341645,_0x326ae4='string'==typeof _0xd0cbf4?_0x31b649[_0x4f22('0xe1')](_0xd0cbf4):_0xd0cbf4,_0x4e017c=_0x595485['id'],_0x3068ad=_0x326ae4?_0x326ae4['id']:null;if(!_0x2833d3&&this[_0x4f22('0xce')]&&this[_0x4f22('0xce')][_0x4f22('0xde')]===_0x4e017c&&this[_0x4f22('0xce')][_0x4f22('0xf')]===_0x3068ad)return Promise[_0x4f22('0x76')]();this['isReady']=!0x1,this[_0x4f22('0x62')]=null,this[_0x4f22('0x10f')]=null,this[_0x4f22('0xce')]=new _0x353e10(_0x4e017c,_0x3068ad);const _0x13cf55=this[_0x4f22('0x5e')](_0x595485,_0x326ae4,!0x0)[_0x4f22('0x8d')](_0x5d16d8=>this[_0x4f22('0x3a')](_0x5d16d8));return _0x13cf55[_0x4f22('0x26')](new Promise(_0xfa997c=>{setTimeout(_0xfa997c,0x14);})),Promise['all'](_0x13cf55)[_0x4f22('0x60')](()=>{if(!this[_0x4f22('0x8a')])return;this[_0x4f22('0xe')]();const _0x4a6244=this[_0x4f22('0x11c')](_0x4e017c,_0x3068ad);for(const _0x2dec33 of _0x4a6244[_0x4f22('0xda')])this[_0x4f22('0x22')][_0x4f22('0x7b')](_0x2dec33['id'],_0x2dec33);this[_0x4f22('0x6c')]['model'][_0x4f22('0x103')]({'isUndoable':!0x1},_0x35ec39=>{for(const _0x2e8004 of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]())_0x35ec39['detachRoot'](_0x2e8004);for(const _0x377e71 of Object[_0x4f22('0x5b')](_0x4a6244['model'])){const _0x51096b=_0x35ec39[_0x4f22('0x75')](_0x377e71);for(const _0x16afa5 of Object[_0x4f22('0x5b')](_0x4a6244[_0x4f22('0x79')][_0x377e71]))_0x35ec39[_0x4f22('0x25')](_0x16afa5,_0x4a6244['attributes'][_0x377e71][_0x16afa5],_0x51096b);_0x35ec39[_0x4f22('0x50')](_0x4a6244[_0x4f22('0xe6')][_0x377e71],_0x51096b,0x0);}}),this['diff'][_0x4f22('0xc5')](this[_0x4f22('0x8e')](_0x4a6244[_0x4f22('0xda')])),this[_0x4f22('0xea')]=!0x0;})[_0x4f22('0xd9')](_0x4b4002=>{console[_0x4f22('0xe7')](_0x4b4002),this[_0x4f22('0xe')](),_0x3bffaf&&(this[_0x4f22('0xce')]=_0x3bffaf),this[_0x4f22('0xea')]=!0x0;});}['addRevisionData'](_0x52e4f3,_0x14f073){const _0x51e5a3=this['repository']['createRevision'](_0x52e4f3);return _0x51e5a3['on'](_0x4f22('0x56'),(_0x4f5284,_0x5582f7,_0x357c5e)=>_0x14f073(_0x5582f7,_0x357c5e,_0x51e5a3)),this[_0x4f22('0xb6')][_0x4f22('0x11')](_0x51e5a3),_0x51e5a3;}[_0x4f22('0x3a')](_0x4cfdfb){if(!_0x4cfdfb||_0x4cfdfb['diffData'])return Promise[_0x4f22('0x76')]();{const _0x46c0e3=this['editor'][_0x4f22('0x19')][_0x4f22('0x10c')](_0x4f22('0x2'));return this[_0x4f22('0xc9')][_0x4f22('0xe1')]({'channelId':_0x46c0e3,'revisionId':_0x4cfdfb['id']})[_0x4f22('0x60')](_0x973190=>{_0x4cfdfb[_0x4f22('0x56')]({'diffData':_0x973190[_0x4f22('0x1e')]},!0x0);});}}['_cleanUp'](){this[_0x4f22('0x10f')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x4f22('0xd6')][_0x4f22('0x61')](),this[_0x4f22('0xd6')]=null,this['_changeIdToChange']['clear'](),this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x103')]({'isUndoable':!0x1},_0x28683c=>{for(const _0x4c3128 of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]())_0x28683c[_0x4f22('0xf6')](_0x4c3128);});}[_0x4f22('0x8e')](_0x147158){const _0x3949f2=[],_0x549010=new Map();for(const _0x15f98e of this['editor']['model']['document']['getRootNames']()){const _0x16419a=this[_0x4f22('0x6c')][_0x4f22('0xb7')]['view'][_0x4f22('0xae')](_0x15f98e);if(!_0x16419a)continue;const _0x52d4a9=_0x16419a[_0x4f22('0x9c')]()[_0x4f22('0x9d')](0x0);_0x52d4a9&&(_0x3949f2[_0x4f22('0x26')](_0x15f98e),_0x549010[_0x4f22('0x7b')](_0x15f98e,_0x52d4a9));}return _0x3949f2[_0x4f22('0x8b')]((_0x57c0f2,_0x5dfdf4)=>{const _0x5e99ab=_0x549010[_0x4f22('0x10c')](_0x57c0f2),_0x1406d3=_0x549010[_0x4f22('0x10c')](_0x5dfdf4);return _0x5e99ab['y']-_0x1406d3['y']||_0x5e99ab['x']-_0x1406d3['x'];}),(_0x147158=_0x147158[_0x4f22('0x81')](_0x5692a3=>_0x3949f2['includes'](_0x5692a3['rootName'])))[_0x4f22('0x8b')]((_0x26d373,_0x5198af)=>_0x3949f2[_0x4f22('0xec')](_0x26d373[_0x4f22('0x12')])-_0x3949f2['indexOf'](_0x5198af['rootName'])),_0x147158;}[_0x4f22('0xd3')](_0x5785b0){const _0x1f97e8=Array[_0x4f22('0x5c')](_0x5785b0['markers'])[_0x4f22('0x81')](([_0xe32195,_0x252fb2])=>_0xe32195[_0x4f22('0x119')](_0x4f22('0x68'))&&!_0x252fb2[_0x4f22('0x15')]),_0x249491=Array['from'](this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x87')](_0x5785b0)[_0x4f22('0xd8')]({'singleCharacters':!0x0}));if(0x0!=_0x1f97e8[_0x4f22('0xe3')])for(const _0x5cd368 of _0x249491){const [_0x377cf1,_0x1c15f4]=_0x1f97e8[0x0],[,_0x52f7ba,_0x494389]=_0x377cf1[_0x4f22('0x44')](':');if(_0x1c15f4[_0x4f22('0x111')][_0x4f22('0x123')](_0x5cd368[_0x4f22('0x42')])&&_0x1f97e8[_0x4f22('0xd7')](),(_0x5cd368[_0x4f22('0x73')][_0x4f22('0x123')](_0x1c15f4[_0x4f22('0xa0')])||_0x5cd368[_0x4f22('0x73')]['isAfter'](_0x1c15f4[_0x4f22('0xa0')]))&&(_0x4f22('0x10b')==_0x52f7ba?_0x5cd368[_0x4f22('0xe0')]={'userId':_0x494389}:_0x4f22('0x74')==_0x52f7ba&&(_0x5cd368[_0x4f22('0x33')]={'userId':_0x494389})),0x0==_0x1f97e8[_0x4f22('0xe3')])break;}return _0x249491;}[_0x4f22('0x107')](_0x5cef78){const _0x25c8cc=new Map();for(let _0x1102ba=0x0;_0x1102ba<_0x5cef78[_0x4f22('0xe3')];_0x1102ba++)_0x4f22('0xc2')===_0x5cef78[_0x1102ba][_0x4f22('0x43')]?(_0x5cef78[_0x1102ba][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x1102ba,_0x5cef78[_0x1102ba][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x1102ba):(_0x4f22('0x97')===_0x5cef78[_0x1102ba][_0x4f22('0x43')]?_0x5cef78[_0x1102ba][_0x4f22('0x9d')]['startIndex']=_0x1102ba:_0x4f22('0xad')===_0x5cef78[_0x1102ba]['type']&&(_0x5cef78[_0x1102ba][_0x4f22('0x9d')]['endIndex']=_0x1102ba),_0x25c8cc[_0x4f22('0x7b')](_0x5cef78[_0x1102ba]['id'],_0x1102ba));for(const _0x527c0a of _0x25c8cc[_0x4f22('0x105')]())'elementStart'===_0x5cef78[_0x527c0a][_0x4f22('0x43')]?_0x5cef78[_0x527c0a]['item'][_0x4f22('0xd1')]=_0x25c8cc[_0x4f22('0x10c')](_0x5cef78[_0x527c0a][_0x4f22('0x5d')]):_0x4f22('0xad')===_0x5cef78[_0x527c0a][_0x4f22('0x43')]&&(_0x5cef78[_0x527c0a][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x25c8cc[_0x4f22('0x10c')](_0x5cef78[_0x527c0a][_0x4f22('0x5d')]));}[_0x4f22('0xeb')](_0x441884){for(let _0x190e4e=0x0;_0x190e4e<_0x441884['length'];_0x190e4e++){if(_0x4f22('0x97')===_0x441884[_0x190e4e][_0x4f22('0x43')])_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x190e4e;else{if('elementEnd'===_0x441884[_0x190e4e][_0x4f22('0x43')]){_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x190e4e;const _0x450a4e=_0x441884[_0x190e4e][_0x4f22('0x9d')]['startIndex'];_0x441884[_0x450a4e]['pairId']=_0x441884[_0x190e4e]['id'],_0x441884[_0x190e4e]['pairId']=_0x441884[_0x450a4e]['id'];}else _0x441884[_0x190e4e]['item'][_0x4f22('0x34')]=_0x190e4e,_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x190e4e,_0x441884[_0x190e4e][_0x4f22('0x5d')]=null;}_0x441884[_0x190e4e][_0x4f22('0xf2')]||(_0x441884[_0x190e4e][_0x4f22('0xf2')]=[],_0x441884[_0x190e4e][_0x4f22('0x84')]=[]);}}[_0x4f22('0xef')](_0x3bf566,_0x38a12f){const _0x5a1e4f=_0x3bf566[_0x4f22('0x81')](_0x17fda1=>!_0x17fda1[_0x4f22('0xe0')]);for(let _0x4f7bcc=0x0;_0x4f7bcc<_0x38a12f['length'];_0x4f7bcc++)_0x38a12f[_0x4f7bcc]['isAdded']&&(_0x5a1e4f[_0x4f7bcc][_0x4f22('0xe0')]=_0x38a12f[_0x4f7bcc][_0x4f22('0xe0')]);}[_0x4f22('0x100')](_0x10083f){const _0x2ed796=JSON['parse'](_0x10083f),_0x19458b=this['editor'][_0x4f22('0xb7')]['view'][_0x4f22('0x106')],_0x574cae=new _0xbcd63c(_0x19458b,_0x2ed796['map'](_0xfba7e5=>this[_0x4f22('0x9e')](_0xfba7e5)));return this[_0x4f22('0x6c')][_0x4f22('0x120')]['toModel'](_0x574cae);}[_0x4f22('0x9e')](_0x213bce){const _0x49875c=this[_0x4f22('0x6c')]['editing'][_0x4f22('0x1f')][_0x4f22('0x106')];if(_0x4f22('0x5f')==typeof _0x213bce)return new _0x5207c2(_0x49875c,_0x213bce);{const _0x4595fa=_0x213bce[_0x4f22('0x2d')]['map'](_0x8753c9=>this[_0x4f22('0x9e')](_0x8753c9));return new(Y[_0x213bce['type']]||_0x371eda)(_0x49875c,_0x213bce[_0x4f22('0xa5')],_0x213bce['attributes'],_0x4595fa);}}[_0x4f22('0x11c')](_0x373463,_0x533996=null){const _0x4b5f24=this['repository'][_0x4f22('0xe1')](_0x373463),_0x49c007=_0x533996?this[_0x4f22('0xb6')][_0x4f22('0xe1')](_0x533996):null,_0x548ee1=this[_0x4f22('0x5e')](_0x4b5f24,_0x49c007),_0x333752=_0x548ee1[_0x548ee1[_0x4f22('0xe3')]-0x1],_0x38970d=new Map(),_0x5f2406={'model':{},'attributes':{},'changes':[]},_0x3e4f91=new Set(),_0xaef6b2=new Map();for(let _0x3b1775=_0x548ee1[_0x4f22('0xe3')]-0x1;_0x3b1775>=0x0;_0x3b1775--){const _0x1fc355=_0x548ee1[_0x3b1775];for(const _0x296e32 of Object[_0x4f22('0x5b')](_0x1fc355[_0x4f22('0x1e')]))if(_0x1fc355[_0x4f22('0x1e')][_0x296e32]['attachChange']){const _0x2ff47e=_0x1fc355['diffData'][_0x296e32]['attachChange'];_0x2ff47e['isAttached']?(_0x3e4f91['add'](_0x296e32),_0xaef6b2[_0x4f22('0x91')](_0x296e32)&&_0xaef6b2[_0x4f22('0x10c')](_0x296e32)['userId']==_0x2ff47e['userId']?_0xaef6b2[_0x4f22('0x4f')](_0x296e32):_0xaef6b2[_0x4f22('0x7b')](_0x296e32,_0x2ff47e)):_0xaef6b2[_0x4f22('0x91')](_0x296e32)?(_0x3e4f91[_0x4f22('0x4f')](_0x296e32),_0xaef6b2['delete'](_0x296e32)):(_0x3e4f91['add'](_0x296e32),_0xaef6b2[_0x4f22('0x7b')](_0x296e32,_0x2ff47e));}else _0x3e4f91['add'](_0x296e32);}for(const _0x4a6297 of _0x3e4f91){const _0x4498e4=_0xaef6b2[_0x4f22('0x91')](_0x4a6297)&&!_0xaef6b2[_0x4f22('0x10c')](_0x4a6297)[_0x4f22('0x1b')];let _0x84c577=_0x4498e4?_0x548ee1[_0x4f22('0xe3')]-0x1:0x0;const _0x5993be=_0x4498e4?-0x1:0x1;for(;_0x548ee1[_0x84c577];){const _0x5dbeb2=_0x548ee1[_0x84c577];if(_0x5dbeb2['diffData'][_0x4a6297]){const _0x5e99bb=_0x4498e4?_0x5dbeb2[_0x4f22('0x1e')][_0x4a6297]['attributesBefore']:_0x5dbeb2['diffData'][_0x4a6297][_0x4f22('0x64')];_0x5f2406['attributes'][_0x4a6297]=_0x5e99bb?_0x4c96ef(_0x5e99bb):{};break;}_0x84c577+=_0x5993be;}}for(const _0xc42ba4 of _0x548ee1){_0xc42ba4[_0x4f22('0xe6')]={};for(const _0x5694d of _0xc42ba4[_0x4f22('0x40')])_0x38970d[_0x4f22('0x7b')](_0x5694d['id'],_0x5694d);for(const _0x53464a of _0x3e4f91){const _0x3c1f80=_0xc42ba4[_0x4f22('0x1e')][_0x53464a]?_0xc42ba4[_0x4f22('0x1e')][_0x53464a][_0x4f22('0xc')]:'[]',_0x5b30b8=_0xc42ba4[_0x4f22('0x1e')][_0x53464a]?_0xc42ba4[_0x4f22('0x1e')][_0x53464a]['deletions']:'[]';_0xc42ba4[_0x4f22('0xe6')][_0x53464a]={'insertions':this['_makeModelFromViewString'](_0x3c1f80),'deletions':this[_0x4f22('0x100')](_0x5b30b8)};}}for(const _0x1a6ee0 of _0x3e4f91){let _0x551b3b=null,_0x382ab2=0x0;const _0x5ca079=new Map(Array[_0x4f22('0x5c')](_0x4b5f24[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0xc')][_0x4f22('0x14')])[_0x4f22('0x81')](([_0x28dfa5])=>!_0x28dfa5[_0x4f22('0x119')](_0x4f22('0x68'))));let _0x4b66b4=0x0;for(const _0x516f64 of _0x548ee1){const _0x1952c9=this[_0x4f22('0xd3')](_0x516f64[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0xc')]);_0x516f64==_0x4b5f24?(_0x551b3b=_0x1952c9,_0x382ab2=_0x551b3b[_0x4f22('0xe3')],_0x551b3b[_0x4f22('0x53')](_0x19de66=>{_0x19de66['id']=_0x4b66b4++;}),this['_processTape'](_0x551b3b)):this['_markInsertions'](_0x551b3b,_0x1952c9);const _0x3776e6=_0x551b3b[_0x4f22('0x81')](_0x556cd7=>!_0x556cd7[_0x4f22('0xe0')])[_0x4f22('0x8d')](_0x2e87c4=>_0x2e87c4['id']);let _0x178967=0x0;const _0x48d4fd=this['_makeTape'](_0x516f64[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0x11a')]);_0x48d4fd['forEach'](_0x2678ac=>{_0x2678ac['isRemoved']?_0x2678ac['id']=_0x382ab2++:_0x2678ac['id']=_0x3776e6[_0x178967++];}),this[_0x4f22('0xeb')](_0x48d4fd),this[_0x4f22('0x55')](_0x551b3b,_0x4f22('0xe0')),this['_setDistance'](_0x48d4fd,_0x4f22('0x33')),_0x516f64==_0x4b5f24&&this[_0x4f22('0x9a')](_0x551b3b,_0x5ca079),_0x551b3b=this['_joinTapes'](_0x551b3b,_0x48d4fd),this[_0x4f22('0x107')](_0x551b3b),this['_setDistance'](_0x551b3b,_0x4f22('0x33'));}_0x551b3b=_0x551b3b[_0x4f22('0x81')](_0x7b1765=>!(_0x7b1765[_0x4f22('0xe0')]&&_0x7b1765[_0x4f22('0x33')]));const _0x217bea=new Map(_0x333752['model'][_0x1a6ee0]['deletions'][_0x4f22('0x14')]),_0x26303c=new Set(_0x5ca079[_0x4f22('0x5b')]());for(const _0x11d194 of _0x217bea[_0x4f22('0x5b')]())_0x26303c[_0x4f22('0x4f')](_0x11d194);this['_markSuggestions'](_0x551b3b,_0x26303c),this[_0x4f22('0xdf')](_0x551b3b),_0x551b3b=this['_removeMissingPairs'](_0x551b3b),_0x551b3b=this[_0x4f22('0xcc')](_0x551b3b),_0x551b3b=this[_0x4f22('0xb1')](_0x551b3b);const {root:_0x26a6d,changes:_0x3922e1}=this['_makeModelFromTape'](_0x551b3b,_0x38970d,_0x1a6ee0);_0x5f2406[_0x4f22('0xe6')][_0x1a6ee0]=_0x26a6d;const _0x366c7f=_0xaef6b2[_0x4f22('0x10c')](_0x1a6ee0);if(_0x366c7f){const _0x2d1b29=_0x38970d[_0x4f22('0x10c')](_0x366c7f[_0x4f22('0xb5')]),_0x1c6d93=new _0x2f0fc5({'author':_0x2d1b29,'type':_0x366c7f[_0x4f22('0x1b')]?'add':_0x4f22('0x2b'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1a6ee0});_0x3922e1[_0x4f22('0xf4')](_0x1c6d93),_0x5f2406[_0x4f22('0x79')][_0x1a6ee0][_0x4f22('0x27')]=_0x1c6d93['id'];}_0x5f2406[_0x4f22('0xda')]=_0x5f2406[_0x4f22('0xda')][_0x4f22('0xfc')](_0x3922e1);}return _0x5f2406;}[_0x4f22('0x9a')](_0x482df4,_0x36edad){for(let _0xe2bd37=0x0;_0xe2bd37<_0x482df4['length'];_0xe2bd37++)for(const [_0x5e500b,_0x13be3a]of _0x36edad)_0x13be3a[_0x4f22('0xa0')]['isEqual'](_0x482df4[_0xe2bd37]['previousPosition'])&&_0x482df4[_0xe2bd37][_0x4f22('0xf2')][_0x4f22('0x26')](_0x5e500b),_0x13be3a['end'][_0x4f22('0x123')](_0x482df4[_0xe2bd37][_0x4f22('0x42')])&&_0x482df4[_0xe2bd37][_0x4f22('0x84')]['push'](_0x5e500b);}['_joinTapes'](_0x5854d6,_0x44be03){let _0x594e11=[],_0x3474a7=0x0,_0x1cd7f7=0x0;for(;_0x3474a7<_0x5854d6[_0x4f22('0xe3')]||_0x1cd7f7<_0x44be03[_0x4f22('0xe3')];){const _0x4af272=_0x5854d6[_0x3474a7]||{},_0x5032cf=_0x44be03[_0x1cd7f7]||{};if(_0x4af272['id']==_0x5032cf['id'])_0x3474a7++,_0x1cd7f7++,_0x594e11['push'](_0x4af272);else{if(_0x5032cf[_0x4f22('0x33')]&&_0x4af272['isAdded']){const {commonTape:_0x16bee7,iEnd:_0x2f5a80,jEnd:_0x5e6a92}=this[_0x4f22('0xa')](_0x5854d6,_0x3474a7,_0x44be03,_0x1cd7f7);_0x594e11=_0x594e11['concat'](_0x16bee7),_0x3474a7=_0x2f5a80,_0x1cd7f7=_0x5e6a92;}else _0x5032cf[_0x4f22('0x33')]?(_0x1cd7f7++,_0x594e11['push'](_0x5032cf)):(_0x3474a7++,_0x594e11['push'](_0x4af272));}}return _0x594e11;}['_markSuggestions'](_0x3be9e2,_0x737483){const _0x3acb97=[];for(let _0x5e33a4=0x0;_0x5e33a4<_0x3be9e2[_0x4f22('0xe3')];_0x5e33a4++){for(let _0x2e2128=0x0;_0x2e2128<_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x4f22('0xe3')];_0x2e2128++){const _0x343795=_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x2e2128];if(!_0x737483[_0x4f22('0x91')](_0x343795))continue;const {group:_0xe167c3,type:_0x213a85,authorId:_0x165890}=_0x2adccb(_0x343795);_0x4f22('0xb8')!=_0xe167c3||_0x4f22('0x10b')!=_0x213a85&&_0x4f22('0x74')!=_0x213a85||(_0x3acb97['unshift']({'type':_0x213a85,'name':_0x343795,'userId':_0x165890}),_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x4f22('0xc4')](_0x2e2128,0x1),_0x2e2128--);}_0xf198e4(_0x3be9e2[_0x5e33a4]);for(let _0x1fff23=0x0;_0x1fff23<_0x3be9e2[_0x5e33a4][_0x4f22('0x84')][_0x4f22('0xe3')];_0x1fff23++){const _0x374737=_0x3be9e2[_0x5e33a4]['markersEnd'][_0x1fff23];if(!_0x737483[_0x4f22('0x91')](_0x374737))continue;const {group:_0x435b76,type:_0x4f522b}=_0x2adccb(_0x374737);if(_0x4f22('0xb8')!=_0x435b76||_0x4f22('0x10b')!=_0x4f522b&&_0x4f22('0x74')!=_0x4f522b)continue;_0x3be9e2[_0x5e33a4][_0x4f22('0x84')][_0x4f22('0xc4')](_0x1fff23,0x1),_0x1fff23--;const _0x1f40b4=_0x3acb97[_0x4f22('0xac')](_0x565996=>_0x565996[_0x4f22('0xa5')]==_0x374737);_0x1f40b4>-0x1&&_0x3acb97['splice'](_0x1f40b4,0x1);}}function _0x2adccb(_0x2db3a4){const _0x2259a7=_0x2db3a4[_0x4f22('0x44')](':');return{'group':_0x2259a7[0x0],'type':_0x2259a7[0x1],'subType':_0x2259a7[_0x4f22('0xe3')]>=0x5?_0x2259a7[0x2]:null,'id':_0x2259a7[_0x4f22('0xe3')]<0x5?_0x2259a7[0x2]:_0x2259a7[0x3],'authorId':_0x2259a7[_0x4f22('0xe3')]<0x5?_0x2259a7[0x3]:_0x2259a7[0x4],'markerCount':0x6==_0x2259a7[_0x4f22('0xe3')]?_0x2259a7[0x5]:null};}function _0xf198e4(_0x186ed4){for(let _0x128bb6=0x0;_0x128bb6<_0x3acb97[_0x4f22('0xe3')];_0x128bb6++){if(_0x186ed4[_0x4f22('0xe0')]&&_0x4f22('0x10b')==_0x3acb97[_0x128bb6][_0x4f22('0x43')])return _0x186ed4['isAddSuggestion']=_0x3acb97[_0x128bb6],void delete _0x186ed4[_0x4f22('0xe0')];if(!_0x186ed4[_0x4f22('0xe0')]&&!_0x186ed4[_0x4f22('0x33')]&&_0x4f22('0x74')==_0x3acb97[_0x128bb6][_0x4f22('0x43')])return void(_0x186ed4[_0x4f22('0x11f')]=_0x3acb97[_0x128bb6]);}}}[_0x4f22('0x55')](_0x355f21,_0x183ae4){let _0x435bba=0x0,_0x56fe7f=!0x1;const _0xdd2e7b=new Map();for(const _0x2741e0 of _0x355f21)_0x2741e0[_0x183ae4]?_0x56fe7f&&(_0x435bba++,_0x56fe7f=!0x1):(_0x435bba++,_0x56fe7f=!0x0),_0xdd2e7b[_0x4f22('0x7b')](_0x2741e0['id'],_0x435bba);for(let _0xee8ef7=0x0;_0xee8ef7<_0x355f21['length'];_0xee8ef7++){if(_0x4f22('0x33')==_0x183ae4&&_0x355f21[_0xee8ef7][_0x4f22('0xe0')]||'isAdded'==_0x183ae4&&_0x355f21[_0xee8ef7][_0x4f22('0x33')])continue;if(_0x4f22('0xc2')==_0x355f21[_0xee8ef7][_0x4f22('0x43')]){_0x355f21[_0xee8ef7][_0x4f22('0xa1')]=0x0;continue;}const _0x34da0d=_0xdd2e7b[_0x4f22('0x10c')](_0x355f21[_0xee8ef7][_0x4f22('0x5d')]),_0x2c8487=_0xdd2e7b[_0x4f22('0x10c')](_0x355f21[_0xee8ef7]['id']);_0x355f21[_0xee8ef7][_0x4f22('0xa1')]=_0x34da0d-_0x2c8487;}}['_getRevisionsRange'](_0xededc4,_0x1fed71,_0x1c227d=!0x1){const _0x27ecdb=[];let _0x5cf6e9=this['repository'][_0x4f22('0x2f')](_0xededc4),_0x40e7bf=this[_0x4f22('0xb6')][_0x4f22('0x2f')](_0x1fed71);for(-0x1==_0x40e7bf&&(_0x40e7bf=this[_0x4f22('0xb6')][_0x4f22('0xc7')]['length'],_0x1c227d=!0x1);_0x5cf6e9<_0x40e7bf;)_0x27ecdb[_0x4f22('0x26')](this['repository'][_0x4f22('0xe1')](_0x5cf6e9)),_0x5cf6e9++;return _0x1c227d&&_0x27ecdb[_0x4f22('0x26')](this['repository']['getRevision'](_0x5cf6e9)),_0x27ecdb;}[_0x4f22('0xa')](_0x176834,_0x59d643,_0x1b122f,_0x15c3de){const _0x3250e9=this['editor']['model'][_0x4f22('0x104')];let _0x41f863=_0x59d643;for(;_0x176834[_0x41f863]&&_0x176834[_0x41f863][_0x4f22('0xe0')];)_0x41f863++;let _0x43b3ff=_0x15c3de;for(;_0x1b122f[_0x43b3ff]&&_0x1b122f[_0x43b3ff]['isRemoved'];)_0x43b3ff++;_0x320dfb(_0x176834,_0x59d643,_0x41f863),_0x320dfb(_0x1b122f,_0x15c3de,_0x43b3ff);const _0x5df12e=_0x1b122f['slice'](_0x15c3de,_0x43b3ff)[_0x4f22('0xfc')](_0x176834[_0x4f22('0x0')](_0x59d643,_0x41f863));return _0x5df12e[_0x4f22('0x8b')]((_0x25eee9,_0x230164)=>_0x25eee9[_0x4f22('0x24')]!=_0x230164['side']?_0x25eee9[_0x4f22('0x24')]-_0x230164['side']:_0x25eee9[_0x4f22('0x1c')]!=_0x230164['level']?_0x25eee9[_0x4f22('0x1c')]-_0x230164[_0x4f22('0x1c')]:_0x25eee9[_0x4f22('0xa1')]!=_0x230164[_0x4f22('0xa1')]?_0x230164[_0x4f22('0xa1')]-_0x25eee9['distance']:!!_0x25eee9['isAdded']!=!!_0x230164['isAdded']?-0x1==_0x25eee9['side']||0x0==_0x25eee9[_0x4f22('0x24')]?_0x25eee9[_0x4f22('0xe0')]?-0x1:0x1:_0x25eee9[_0x4f22('0xe0')]?0x1:-0x1:_0x25eee9['index']-_0x230164[_0x4f22('0x7a')]),{'commonTape':_0x5df12e,'iEnd':_0x41f863,'jEnd':_0x43b3ff};function _0x320dfb(_0x26fb25,_0x2fae27,_0x1e6081){let _0x57874c=-0x1,_0x2e845c=Number[_0x4f22('0x48')],_0x1976e9=!0x0;for(let _0xb92e30=_0x2fae27;_0xb92e30<_0x1e6081;_0xb92e30++)if(_0x3250e9['isInline'](_0x26fb25[_0xb92e30][_0x4f22('0x9d')])||(_0x1976e9=!0x1),_0x26fb25[_0xb92e30][_0x4f22('0x9d')][_0x4f22('0x34')]<_0x2fae27&&(_0x57874c=_0xb92e30),_0x26fb25[_0xb92e30][_0x4f22('0x9d')][_0x4f22('0xd1')]>=_0x1e6081){_0x2e845c=_0xb92e30;break;}_0x1976e9&&(_0x57874c=_0x1e6081-0x1);for(let _0x3c25a4=_0x2fae27;_0x3c25a4<_0x1e6081;_0x3c25a4++)_0x26fb25[_0x3c25a4][_0x4f22('0x24')]=_0x3c25a4<=_0x57874c?-0x1:_0x3c25a4<_0x2e845c?0x0:0x1,_0x26fb25[_0x3c25a4][_0x4f22('0x7a')]=_0x3c25a4;let _0x28babb=0x0;for(let _0x4a181d=_0x2fae27;_0x4a181d<=_0x57874c;_0x4a181d++)0x0==_0x26fb25[_0x4a181d][_0x4f22('0xa1')]?_0x26fb25[_0x4a181d]['level']=_0x28babb:(_0x28babb++,_0x26fb25[_0x4a181d][_0x4f22('0x1c')]=_0x28babb,_0x28babb++);for(let _0x1b2298=_0x2fae27;_0x1b2298<_0x1e6081;_0x1b2298++)0x0==_0x26fb25[_0x1b2298]['side']&&(_0x26fb25[_0x1b2298][_0x4f22('0x1c')]=_0x28babb);_0x28babb=0x0;for(let _0x2474a0=_0x1e6081-0x1;_0x2474a0>=_0x2e845c;_0x2474a0--)0x0==_0x26fb25[_0x2474a0][_0x4f22('0xa1')]?_0x26fb25[_0x2474a0]['level']=_0x28babb:(_0x28babb--,_0x26fb25[_0x2474a0]['level']=_0x28babb,_0x28babb--);}}['_fixObsoleteTags'](_0x2bafe4){const _0x3c14e5=new Map(),_0x4d2bb1=this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x104')];for(let _0x41e03f=0x1;_0x41e03f<_0x2bafe4[_0x4f22('0xe3')];_0x41e03f++){let _0xa73dfc,_0x177089,_0x30ca68;const _0x1c0e9b=_0x2bafe4[_0x41e03f],_0x3d5a8b=_0x2bafe4[_0x41e03f-0x1];if(_0x4f22('0xc2')==_0x1c0e9b[_0x4f22('0x43')])continue;if(_0x1c0e9b[_0x4f22('0x43')]!=_0x3d5a8b['type'])continue;if(!_0x4d2bb1[_0x4f22('0x6d')](_0x3d5a8b['item'])||_0x4d2bb1['isLimit'](_0x3d5a8b['item']))continue;if(!_0x4d2bb1['isBlock'](_0x1c0e9b[_0x4f22('0x9d')])||_0x4d2bb1[_0x4f22('0xba')](_0x1c0e9b['item']))continue;if((_0x2bafe4[_0x41e03f]['isAdded']||_0x2bafe4[_0x41e03f][_0x4f22('0x52')])&&_0x2bafe4[_0x41e03f-0x1][_0x4f22('0x33')])_0xa73dfc=_0x2bafe4[_0x41e03f],_0x177089=_0x2bafe4[_0x41e03f-0x1],_0x30ca68=_0x41e03f-0x1;else{if(!_0x2bafe4[_0x41e03f][_0x4f22('0x33')]||!_0x2bafe4[_0x41e03f-0x1][_0x4f22('0xe0')]&&!_0x2bafe4[_0x41e03f-0x1][_0x4f22('0x52')])continue;_0xa73dfc=_0x2bafe4[_0x41e03f-0x1],_0x177089=_0x2bafe4[_0x41e03f],_0x30ca68=_0x41e03f;}const _0xe9ece8=_0xa73dfc[_0x4f22('0x1c')]==_0x177089[_0x4f22('0x1c')],_0xcc4458=Math[_0x4f22('0x17')](_0xa73dfc[_0x4f22('0x1c')])<Math[_0x4f22('0x17')](_0x177089[_0x4f22('0x1c')])&&0x0==_0x177089[_0x4f22('0xa1')];(_0xe9ece8||_0xcc4458)&&(_0x3c14e5[_0x4f22('0x7b')](_0x177089['id'],_0xa73dfc['id']),_0x2bafe4[_0x4f22('0xc4')](_0x30ca68,0x1),_0x41e03f--,_0xa73dfc['isAdded']=!0x1);}for(let _0x215470=0x0;_0x215470<_0x2bafe4['length'];_0x215470++)_0x3c14e5[_0x4f22('0x91')](_0x2bafe4[_0x215470]['pairId'])&&(_0x2bafe4[_0x215470][_0x4f22('0x5d')]=_0x3c14e5[_0x4f22('0x10c')](_0x2bafe4[_0x215470][_0x4f22('0x5d')]));}[_0x4f22('0xe2')](_0x20eebe){const _0x915bd7=new Set(_0x20eebe[_0x4f22('0x8d')](_0x52f6be=>_0x52f6be['id']));for(let _0x4cde0b=0x0;_0x4cde0b<_0x20eebe[_0x4f22('0xe3')];_0x4cde0b++)_0x915bd7['has'](_0x20eebe[_0x4cde0b][_0x4f22('0x5d')])||0x0==_0x20eebe[_0x4cde0b]['distance']||(_0x20eebe[_0x4cde0b][_0x4f22('0xa6')]=!0x0);return _0x20eebe[_0x4f22('0x81')](_0x2b3bea=>!_0x2b3bea['isIncorrect']);}[_0x4f22('0xcc')](_0x4660bb){const _0x426815=new Set();for(let _0x31342d=0x0;_0x31342d<_0x4660bb[_0x4f22('0xe3')];_0x31342d++){if(_0x426815['has'](_0x4660bb[_0x31342d]['id'])&&_0x4660bb[_0x31342d][_0x4f22('0x33')]&&(_0x4660bb[_0x31342d][_0x4f22('0xa6')]=!0x0),_0x4660bb[_0x31342d][_0x4f22('0xa6')])continue;if(0x0==_0x4660bb[_0x31342d]['distance'])continue;if(_0x4f22('0x97')!=_0x4660bb[_0x31342d][_0x4f22('0x43')])continue;if(null==_0x4660bb[_0x31342d][_0x4f22('0x5d')])continue;let _0x14f713=_0x31342d+0x1,_0x127c81=0x0;for(;_0x4660bb[_0x14f713]['id']!=_0x4660bb[_0x31342d][_0x4f22('0x5d')];)_0x4f22('0x97')==_0x4660bb[_0x14f713][_0x4f22('0x43')]?_0x127c81++:'elementEnd'==_0x4660bb[_0x14f713]['type']&&_0x127c81--,_0x14f713++;if(0x0!=_0x127c81){if(_0x4660bb[_0x31342d][_0x4f22('0x33')])_0x4660bb[_0x31342d][_0x4f22('0xa6')]=!0x0;else for(;_0x14f713!=_0x31342d;)_0x4660bb[_0x14f713][_0x4f22('0x33')]&&0x0!=_0x4660bb[_0x14f713][_0x4f22('0xa1')]&&(_0x4660bb[_0x14f713][_0x4f22('0xa6')]=!0x0,_0x426815[_0x4f22('0x23')](_0x4660bb[_0x14f713][_0x4f22('0x5d')])),_0x14f713--;}}return _0x4660bb[_0x4f22('0x81')](_0x163d74=>!_0x163d74['isIncorrect']);}[_0x4f22('0xb1')](_0x186de2){const _0x1f2775=this[_0x4f22('0x6c')][_0x4f22('0xe6')]['schema'];for(let _0x1bbffc=0x0;_0x1bbffc<_0x186de2['length'];_0x1bbffc++){if(!(_0x186de2[_0x1bbffc][_0x4f22('0xe0')]||_0x186de2[_0x1bbffc]['isAddSuggestion']||_0x186de2[_0x1bbffc][_0x4f22('0x33')]||_0x186de2[_0x1bbffc]['isRemoveSuggestion']))continue;if(0x0==_0x186de2[_0x1bbffc][_0x4f22('0xa1')])continue;const _0x465f44=_0x186de2[_0x1bbffc][_0x4f22('0x9d')];_0x1f2775[_0x4f22('0x6d')](_0x465f44)||_0x1f2775['isLimit'](_0x465f44)||(_0x186de2[_0x1bbffc]['isAdded']&&delete _0x186de2[_0x1bbffc][_0x4f22('0xe0')],_0x186de2[_0x1bbffc][_0x4f22('0x52')]&&delete _0x186de2[_0x1bbffc]['isAddSuggestion'],_0x186de2[_0x1bbffc][_0x4f22('0x11f')]&&delete _0x186de2[_0x1bbffc][_0x4f22('0x11f')],_0x186de2[_0x1bbffc][_0x4f22('0x33')]&&(_0x186de2[_0x1bbffc][_0x4f22('0xa6')]=!0x0));}return _0x186de2[_0x4f22('0x81')](_0x2de353=>!_0x2de353[_0x4f22('0xa6')]);}[_0x4f22('0xab')](_0x344747,_0x5a945a,_0x301e1a){const _0x2f181a=new _0x448404(),_0x1aac78=[],_0x1220db=new Map(),_0x288f9f=this[_0x4f22('0x6c')][_0x4f22('0xe6')],_0x373cc8=_0x288f9f[_0x4f22('0x104')],_0x1dc7b8=[_0x2f181a],_0x3c5a21={},_0x501cc2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3fe734=null;const _0x194126=[0x0];for(let _0x25f807=0x0;_0x25f807<_0x344747[_0x4f22('0xe3')];_0x25f807++){let _0x30b13a,_0x2e6ad9;if(_0x4f22('0x97')===_0x344747[_0x25f807][_0x4f22('0x43')]){_0x30b13a=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126);const _0x58d76f=new _0x340e18(_0x344747[_0x25f807]['item'][_0x4f22('0xa5')],_0x344747[_0x25f807][_0x4f22('0x9d')]['getAttributes']());_0x1dc7b8[0x0][_0x4f22('0x89')](_0x58d76f),_0x194126[_0x4f22('0x26')](0x0),_0x1dc7b8['unshift'](_0x58d76f),_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734=null;}else{if('elementEnd'===_0x344747[_0x25f807][_0x4f22('0x43')])_0x1dc7b8[_0x4f22('0xd7')](),_0x30b13a=_0x288f9f['createPositionFromPath'](_0x2f181a,_0x194126),_0x194126['pop'](),_0x194126[_0x194126[_0x4f22('0xe3')]-0x1]++,_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734=null;else{if(_0x30b13a=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734&&_0x4f2dd6(_0x3fe734,_0x344747[_0x25f807][_0x4f22('0x9d')]))_0x3fe734[_0x4f22('0x6e')]+=_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x120')];else{const _0x3caf6d=new _0x21d0f8(_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x120')],_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x10d')]());_0x1dc7b8[0x0][_0x4f22('0x89')](_0x3caf6d),_0x3fe734=_0x3caf6d;}_0x194126[_0x194126[_0x4f22('0xe3')]-0x1]+=_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x47')],_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126);}}for(const _0x3038c5 of _0x344747[_0x25f807]['markersStart'])_0x1220db[_0x4f22('0x7b')](_0x3038c5,{'start':_0x30b13a,'end':null});_0x2e8e22(_0x4f22('0x11f'),_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22('isAddSuggestion',_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22(_0x4f22('0x33'),_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22(_0x4f22('0xe0'),_0x25f807,_0x30b13a,_0x2e6ad9);for(const _0x242ae2 of _0x344747[_0x25f807][_0x4f22('0x84')]){_0x1220db[_0x4f22('0x10c')](_0x242ae2)[_0x4f22('0x111')]=_0x2e6ad9;}}for(const [_0x58b2cc,_0x17eeae]of _0x1220db){const _0x65d9e=this[_0x4f22('0x6c')]['model'][_0x4f22('0xca')](_0x17eeae[_0x4f22('0xa0')],_0x17eeae[_0x4f22('0x111')]);_0x2f181a['markers'][_0x4f22('0x7b')](_0x58b2cc,_0x65d9e);}return _0x1aac78[_0x4f22('0x8b')]((_0xf51ea,_0x415d33)=>{const _0x1953c5=_0x2f181a['markers'][_0x4f22('0x10c')](_0x4f22('0x68')+_0xf51ea['id']),_0xef17cf=_0x2f181a[_0x4f22('0x14')]['get']('revision:'+_0x415d33['id']);return _0x1953c5[_0x4f22('0xa0')]['isBefore'](_0xef17cf[_0x4f22('0xa0')])?-0x1:_0x1953c5[_0x4f22('0xa0')]['isAfter'](_0xef17cf[_0x4f22('0xa0')])?0x1:_0x1953c5['end']['isBefore'](_0xef17cf['end'])?-0x1:_0x1953c5[_0x4f22('0x111')][_0x4f22('0x93')](_0xef17cf[_0x4f22('0x111')])?0x1:_0x4f22('0x23')===_0xf51ea[_0x4f22('0x43')]?-0x1:0x1;}),{'root':_0x2f181a,'changes':_0x1aac78};function _0x2e8e22(_0x3317c4,_0x5494e1,_0x29100c,_0x5b607e){const _0x36def9=!!_0x344747[_0x5494e1][_0x3317c4],_0xd0858a=_0x36def9?_0x344747[_0x5494e1][_0x3317c4][_0x4f22('0xb5')]:null,_0x2197d2=_0x5494e1===_0x344747[_0x4f22('0xe3')]-0x1,_0x46d21d=_0x501cc2[_0x3317c4][0x0],_0x3d0609=_0x373cc8[_0x4f22('0xdc')](_0x344747[_0x5494e1][_0x4f22('0x9d')]);!_0x3c5a21[_0x3317c4]&&_0x36def9?_0x3c5a21[_0x3317c4]={'start':_0x29100c,'tapeItem':_0x344747[_0x5494e1],'userId':_0xd0858a,'type':_0x3317c4}:_0x3c5a21[_0x3317c4]&&!_0x36def9?(_0x3c5a21[_0x3317c4][_0x4f22('0x111')]=_0x29100c,_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]=null):_0x3c5a21[_0x3317c4]&&_0x36def9&&_0x3c5a21[_0x3317c4]['userId']!==_0xd0858a&&(_0x3c5a21[_0x3317c4][_0x4f22('0x111')]=_0x29100c,_0x46d21d&&_0x46d21d['userId']===_0x3c5a21[_0x3317c4][_0x4f22('0xb5')]||_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]={'start':_0x29100c,'tapeItem':_0x344747[_0x5494e1],'userId':_0xd0858a,'type':_0x3317c4}),_0x3c5a21[_0x3317c4]&&_0x3d0609&&(_0x4f22('0x97')!==_0x344747[_0x5494e1][_0x4f22('0x43')]||_0x46d21d&&_0x46d21d[_0x4f22('0xb5')]===_0xd0858a||_0x501cc2[_0x3317c4][_0x4f22('0xf4')]({'userId':_0xd0858a,'object':_0x344747[_0x5494e1][_0x4f22('0x9d')],'change':_0x3c5a21[_0x3317c4]}),_0x4f22('0xad')===_0x344747[_0x5494e1]['type']&&_0x46d21d&&_0x46d21d[_0x4f22('0x3e')]===_0x344747[_0x5494e1][_0x4f22('0x9d')]&&(_0x501cc2[_0x3317c4][_0x4f22('0xd7')](),_0x3c5a21[_0x3317c4]=_0x46d21d['change'])),_0x3c5a21[_0x3317c4]&&_0x2197d2&&(_0x3c5a21[_0x3317c4]['end']=_0x5b607e,_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]=null);}function _0x5eb8fd({start:_0x4a3c53,end:_0xa51cf7,tapeItem:_0xa4492d,userId:_0x242ad3,type:_0x280af9}){const _0x3e21e5=_0xa4492d['item'],_0x9f58e2=_0x288f9f[_0x4f22('0x104')][_0x4f22('0x6d')](_0x3e21e5)&&!_0x288f9f[_0x4f22('0x104')][_0x4f22('0xba')](_0x3e21e5),_0x43a6d0=_0x4a3c53[_0x4f22('0x78')]==_0xa51cf7['parent']&&_0xa51cf7[_0x4f22('0x96')];if(_0x9f58e2&&_0x43a6d0)return;const _0x404d25=_0x288f9f[_0x4f22('0xca')](_0x4a3c53,_0xa51cf7),_0x21a161=_0x5a945a[_0x4f22('0x10c')](_0x242ad3),_0x233db8=new _0x2f0fc5({'author':_0x21a161,'type':_0x4f22('0xe0')==_0x280af9||'isAddSuggestion'==_0x280af9?_0x4f22('0x23'):_0x4f22('0x2b'),'data':{'isSuggestion':_0x4f22('0x52')==_0x280af9||_0x4f22('0x11f')==_0x280af9},'createdAt':new Date(),'rootName':_0x301e1a});_0x1aac78['push'](_0x233db8),_0x2f181a[_0x4f22('0x14')][_0x4f22('0x7b')](_0x4f22('0x68')+_0x233db8['id'],_0x404d25);}function _0x4f2dd6(_0x37b11f,_0x1d2234){const _0x546c0f=_0x37b11f['getAttributes'](),_0xa02aad=_0x1d2234[_0x4f22('0x10d')]();for(const _0x2b5521 of _0x546c0f){if(_0x2b5521[0x1]!==_0x1d2234['getAttribute'](_0x2b5521[0x0]))return!0x1;_0xa02aad['next']();}return _0xa02aad[_0x4f22('0x117')]()[_0x4f22('0xcb')];}}[_0x4f22('0x2c')](){this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))[_0x4f22('0x7e')]({'view':_0x4f22('0x37')}),this[_0x4f22('0x6c')]['conversion'][_0x4f22('0xa3')](_0x4f22('0x38'))['markerToHighlight']({'model':_0x4f22('0x37'),'view':_0x4ccf36=>{const _0x48993a=_0x4ccf36['markerName'][_0x4f22('0x44')](':')[0x1],_0x22fe6f=this[_0x4f22('0x116')](_0x48993a);if(!_0x22fe6f)return null;const _0x55a8c1='add'==_0x22fe6f[_0x4f22('0x43')]?'insertion':'deletion',_0x349b40=[_0x4f22('0x39'),_0x4f22('0xf0')+_0x55a8c1];return _0x22fe6f[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x349b40[_0x4f22('0x26')](_0x4f22('0xf0')+_0x55a8c1+_0x4f22('0x114')),this[_0x4f22('0x10f')]==_0x22fe6f&&_0x349b40[_0x4f22('0x26')](_0x4f22('0x85')),{'classes':_0x349b40,'attributes':{'data-change-id':_0x48993a}};}}),this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')]('upcast')[_0x4f22('0x23')](_0x10ffb8=>{_0x10ffb8['on'](_0x4f22('0x5a'),(_0x3b5dfa,_0x2e29c8,_0x2a1a04)=>{const _0x22bae8=_0x2e29c8[_0x4f22('0x71')][_0x4f22('0x29')](0x0);if(!_0x22bae8||!_0x22bae8['is'](_0x4f22('0xd0'),_0x4f22('0x90')))return;if(!_0x2a1a04[_0x4f22('0x124')][_0x4f22('0xf9')](_0x22bae8,{'attributes':[_0x4f22('0x7'),'vid_end']}))return;const _0x5ce5b2=_0x2e29c8[_0x4f22('0xf1')][_0x4f22('0xa0')][_0x4f22('0x78')];_0x2a1a04[_0x4f22('0x118')][_0x4f22('0x25')]('vid_start',_0x22bae8['getAttribute'](_0x4f22('0x7')),_0x5ce5b2),_0x2a1a04['writer'][_0x4f22('0x25')]('vid_end',_0x22bae8[_0x4f22('0x7f')]('vid_end'),_0x5ce5b2);},{'priority':'low'});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')]('upcast')[_0x4f22('0x23')](_0x438f08=>{_0x438f08['on'](_0x4f22('0xd0'),(_0x28a728,_0x4cabbc,_0x113ebb)=>{if(!_0x113ebb[_0x4f22('0x124')]['consume'](_0x4cabbc[_0x4f22('0x71')],{'attributes':[_0x4f22('0x7'),_0x4f22('0x18')]}))return;if(_0x4cabbc[_0x4f22('0xf1')]['isCollapsed'])return;const _0x26829e=_0x4cabbc[_0x4f22('0xf1')][_0x4f22('0xa0')]['nodeAfter'];_0x26829e[_0x4f22('0xf7')]('vid_start')||_0x26829e[_0x4f22('0xf7')](_0x4f22('0x88'))||(_0x113ebb[_0x4f22('0x118')]['setAttribute'](_0x4f22('0x7'),_0x4cabbc[_0x4f22('0x71')][_0x4f22('0x7f')](_0x4f22('0x7')),_0x26829e),_0x113ebb[_0x4f22('0x118')]['setAttribute'](_0x4f22('0x18'),_0x4cabbc[_0x4f22('0x71')][_0x4f22('0x7f')]('vid_end'),_0x26829e));},{'priority':'low'});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))[_0x4f22('0x102')]({'view':{'name':_0x4f22('0x49'),'attributes':{'vid':!0x0}},'model':{'key':_0x4f22('0x88'),'value':_0x3886c8=>_0x3886c8['getAttribute'](_0x4f22('0x88'))}}),this['editor'][_0x4f22('0xe6')][_0x4f22('0x104')]['on'](_0x4f22('0xa7'),(_0x2e3b7d,[,_0x31e541])=>{['vid_start',_0x4f22('0x18'),'vid'][_0x4f22('0x9f')](_0x31e541)&&(_0x2e3b7d[_0x4f22('0xb9')]=!0x0,_0x2e3b7d['stop']());},{'priority':_0x4f22('0x3b')}),this[_0x4f22('0x6c')]['conversion'][_0x4f22('0xa3')](_0x4f22('0x6'))[_0x4f22('0x23')](_0x340063=>{_0x340063['on'](_0x4f22('0x95'),(_0x826ebb,_0x121503,_0x2f8e1a)=>{if('\x20'!=_0x121503[_0x4f22('0x9d')]['data']||_0x121503['item']['parent'][_0x4f22('0xbf')]>0x1)return;if(!_0x2f8e1a[_0x4f22('0x124')]['consume'](_0x121503[_0x4f22('0x9d')],_0x826ebb['name']))return;const _0x23eda3=_0x2f8e1a[_0x4f22('0x118')],_0x2c7cda=_0x2f8e1a['mapper'][_0x4f22('0x92')](_0x121503[_0x4f22('0x80')]);_0x23eda3[_0x4f22('0x69')](_0x2c7cda,_0x23eda3[_0x4f22('0xbe')](_0x4f22('0x49')));});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')]('dataDowncast')[_0x4f22('0x4c')]({'model':_0x4f22('0x37')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x4b'),function(_0x19585e){const _0x35f3d8=_0x19585e['plugins'][_0x4f22('0x10c')](_0x4f22('0x72'));return(_0xa6b8b7,_0x345f65,_0x4f1ad3)=>{const _0x3e0f95=_0x345f65[_0x4f22('0x6f')][_0x4f22('0x44')](':')[0x1],_0x32b2e4=_0x35f3d8[_0x4f22('0x116')](_0x3e0f95);if(!_0x32b2e4)return null;const _0x5ca7d9=_0x4f22('0x23')==_0x32b2e4['type']?_0x4f22('0x44'):_0x4f22('0x58');if(!_0x4f1ad3[_0x4f22('0x124')][_0x4f22('0x4a')](_0x345f65[_0x4f22('0x36')],_0xa6b8b7[_0x4f22('0xa5')]))return;const _0x4ecdb7=_0x345f65[_0x4f22('0x36')][_0x4f22('0xd8')](),_0x1501ba=_0x345f65[_0x4f22('0x36')][_0x4f22('0xa0')],_0x17d7cf=_0x19585e['model'][_0x4f22('0x104')];let _0x397386=null,_0x30bf78=null,_0x4ebe78=!0x1,_0x332f65=!0x1;for(const _0x142d61 of _0x4ecdb7){const _0x5d5716=_0x142d61[_0x4f22('0x9d')];_0x4ebe78=_0x4ebe78||_0x17d7cf[_0x4f22('0xfd')](_0x5d5716);const _0x1870b4=_0x4f1ad3[_0x4f22('0xa2')]['toViewElement'](_0x5d5716);if(_0x1870b4&&_0x1870b4['getCustomProperty'](_0x4f22('0x99')))return;'elementEnd'==_0x142d61[_0x4f22('0x43')]&&(_0x17d7cf['isBlock'](_0x5d5716)&&!_0x17d7cf[_0x4f22('0xba')](_0x5d5716)&&(_0x5d5716[_0x4f22('0x46')]||_0x1501ba[_0x4f22('0xcd')]?_0x397386&&_0x397386[_0x4f22('0x21')]==_0x5d5716||(_0x397386=_0x5d5716,_0x24e527(_0x142d61['previousPosition']),_0x332f65=!0x0):_0x30bf78=_0x30bf78||_0x142d61['previousPosition']));}function _0x24e527(_0x2db218){const _0x33ba1a=_0x4f1ad3['writer'][_0x4f22('0x4e')](_0x4f22('0x49'),{'class':_0x4f22('0xf0')+_0x5ca7d9}),_0x3043d1=_0x4f1ad3['mapper'][_0x4f22('0xbb')](_0x2db218);_0x32b2e4[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x4f1ad3[_0x4f22('0x118')][_0x4f22('0xfe')](_0x4f22('0xf0')+_0x5ca7d9+_0x4f22('0x114'),_0x33ba1a),_0x35f3d8[_0x4f22('0x10f')]==_0x32b2e4&&_0x4f1ad3[_0x4f22('0x118')]['addClass'](_0x4f22('0x85'),_0x33ba1a),_0x4f1ad3[_0x4f22('0x118')][_0x4f22('0x50')](_0x3043d1,_0x33ba1a),_0x4f1ad3[_0x4f22('0xa2')][_0x4f22('0x54')](_0x33ba1a,_0x345f65[_0x4f22('0x6f')]);}_0x4ebe78||_0x332f65||!_0x30bf78||_0x24e527(_0x30bf78);};}(this[_0x4f22('0x6c')]),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')]['editing'][_0x4f22('0xe8')]['on'](_0x4f22('0x10a'),(_0x4934ca,_0x37c2ed,_0x14fc5a)=>{const _0x11da56=_0x14fc5a[_0x4f22('0xa2')]['markerNameToElements'](_0x37c2ed['markerName']);if(_0x11da56)for(const _0xadef02 of _0x11da56)(_0xadef02[_0x4f22('0x66')](_0x4f22('0xaf'))||_0xadef02[_0x4f22('0x66')](_0x4f22('0x45')))&&(_0x14fc5a[_0x4f22('0xa2')][_0x4f22('0x1a')](_0xadef02,_0x37c2ed[_0x4f22('0x6f')]),_0x14fc5a[_0x4f22('0x118')][_0x4f22('0x2b')](_0xadef02));},{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x4b'),(_0x5a7caa,_0x26f91d,_0x18666f)=>{const _0x58bf3f=_0x26f91d['markerName'][_0x4f22('0x44')](':')[0x1],_0x4e173c=this[_0x4f22('0x116')](_0x58bf3f);if(!_0x4e173c)return null;const _0x3961cc=_0x4f22('0x23')==_0x4e173c[_0x4f22('0x43')]?_0x4f22('0x44'):'merge';if(_0x18666f[_0x4f22('0x124')][_0x4f22('0x4a')](_0x26f91d[_0x4f22('0x36')],_0x5a7caa[_0x4f22('0xa5')]))for(const _0x29e99d of _0x26f91d[_0x4f22('0x36')][_0x4f22('0xd4')]()){if(!_0x29e99d['is']('element',_0x4f22('0xdd')))continue;const _0xf6d6af=_0x18666f[_0x4f22('0x118')][_0x4f22('0x4e')]('span',{'class':_0x4f22('0xf0')+_0x3961cc}),_0x35418b=_0x18666f['mapper']['toViewPosition'](this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0xd')](_0x29e99d));_0x4e173c[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x18666f[_0x4f22('0x118')][_0x4f22('0xfe')](_0x4f22('0xf0')+_0x3961cc+_0x4f22('0x114'),_0xf6d6af),this[_0x4f22('0x10f')]==_0x4e173c&&_0x18666f[_0x4f22('0x118')]['addClass']('ck-suggestion-marker--active',_0xf6d6af),_0x18666f['writer'][_0x4f22('0x50')](_0x35418b,_0xf6d6af),_0x18666f[_0x4f22('0xa2')][_0x4f22('0x54')](_0xf6d6af,_0x26f91d[_0x4f22('0x6f')]);}},{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xe6')]['document']['on'](_0x4f22('0x7c'),()=>{this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x7c')](_0xe01fc2=>{for(const _0x3364dd of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]()){const _0x275419=this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x11d')](_0x3364dd),_0x951a71=this['editor'][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')][_0x4f22('0x11d')](_0x3364dd);if(_0x951a71){const _0x2bc6f3=_0x275419['getAttribute'](_0x4f22('0x27'));if(_0xe01fc2[_0x4f22('0xc8')](_0x4f22('0x41'),_0x951a71),_0xe01fc2[_0x4f22('0x110')](_0x4f22('0x63'),_0x951a71),_0xe01fc2[_0x4f22('0x110')](_0x4f22('0x3d'),_0x951a71),_0xe01fc2['removeClass'](_0x4f22('0x10e'),_0x951a71),_0x2bc6f3){const _0x587329=this['_getChangeFromId'](_0x2bc6f3);if(!_0x587329)return null;_0xe01fc2[_0x4f22('0x25')](_0x4f22('0x41'),_0x2bc6f3,_0x951a71),_0xe01fc2[_0x4f22('0xfe')](_0x4f22('0x122')+_0x587329[_0x4f22('0x43')],_0x951a71),this['activeChange']==_0x587329&&_0xe01fc2[_0x4f22('0xfe')](_0x4f22('0x10e'),_0x951a71);}}}});}),this[_0x4f22('0x6c')][_0x4f22('0x94')]['for'](_0x4f22('0xaa'))[_0x4f22('0x7e')]({'view':_0x4f22('0x7d'),'model':_0x3e8be9=>_0x4f22('0x2a')+_0x3e8be9,'converterPriority':'highest'}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))['dataToMarker']({'view':'suggestion','model':_0x2134a6=>'revision-suggestion:'+_0x2134a6,'converterPriority':_0x4f22('0x3b')}),this[_0x4f22('0x6c')][_0x4f22('0x94')]['for'](_0x4f22('0x6'))[_0x4f22('0x4c')]({'model':_0x4f22('0xb8'),'view':_0xb9c967=>({'name':'suggestion:'+_0xb9c967,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0x38'))[_0x4f22('0xd2')]({'model':_0x4f22('0xb8'),'view':_0x50fca6=>{const _0x40959f=_0x50fca6[_0x4f22('0x6f')]['split'](':')[0x1];return _0x4f22('0x10b')!=_0x40959f&&'deletion'!=_0x40959f?null:{'classes':['ck-suggestion-preview-marker',_0x4f22('0x28')+_0x40959f]};}}),this[_0x4f22('0x6c')]['editing'][_0x4f22('0xe8')]['on'](_0x4f22('0xf5'),Z(this[_0x4f22('0x6c')],_0x4f22('0x58')),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x51'),Z(this[_0x4f22('0x6c')],_0x4f22('0x44')),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x112'),(_0xa1b7e8,_0x2b9315,_0x53c38c)=>{const _0x2359a2=_0x53c38c[_0x4f22('0xa2')]['markerNameToElements'](_0x2b9315[_0x4f22('0x6f')]);if(_0x2359a2)for(const _0x12bb38 of _0x2359a2)_0x12bb38['is'](_0x4f22('0x4'))&&(_0x53c38c[_0x4f22('0xa2')][_0x4f22('0x1a')](_0x12bb38,_0x2b9315[_0x4f22('0x6f')]),_0x53c38c[_0x4f22('0x118')]['remove'](_0x12bb38));},{'priority':_0x4f22('0x6b')});}[_0x4f22('0x116')](_0x297b21){return this[_0x4f22('0x22')][_0x4f22('0x10c')](_0x297b21);}['_getViewForChange'](_0x236b75){return this[_0x4f22('0xd6')]&&this['_changeView'][_0x4f22('0x61')](),this[_0x4f22('0xd6')]=new _0x249774(this[_0x4f22('0x6c')]['locale'],_0x236b75),this[_0x4f22('0xd6')];}[_0x4f22('0x4d')](){this[_0x4f22('0x6c')]['model'][_0x4f22('0x106')][_0x4f22('0x10')][_0x4f22('0xed')](_0x4f22('0x37')),this['on'](_0x4f22('0x6a'),(_0x121a0b,_0xf201ca,_0x5a5ea5,_0x56c4fa)=>{_0x56c4fa&&this[_0x4f22('0xa4')][_0x4f22('0x2b')](_0x56c4fa),_0x5a5ea5&&(this[_0x4f22('0xa4')][_0x4f22('0x23')]({'view':_0x5a5ea5,'stackId':_0x4f22('0xd5'),'position':{'target':()=>{const _0x1e7510=this['editor'][_0x4f22('0xb7')],_0x50c6d7=this[_0x4f22('0x116')](_0x5a5ea5[_0x4f22('0x121')]);let _0x219456;if(_0x50c6d7[_0x4f22('0x120')][_0x4f22('0xc0')]){const _0x464c3f=_0x1e7510[_0x4f22('0x1f')][_0x4f22('0xae')](_0x50c6d7[_0x4f22('0x12')]);_0x219456=Array[_0x4f22('0x5c')](_0x464c3f[_0x4f22('0x9c')]());}else{const _0x394ca9=this[_0x4f22('0x6c')][_0x4f22('0xe6')]['markers'][_0x4f22('0x10c')](_0x4f22('0x68')+_0x5a5ea5[_0x4f22('0x121')]);_0x219456=Array[_0x4f22('0x5c')](_0x1e7510['mapper'][_0x4f22('0x35')](_0x394ca9[_0x4f22('0xa5')]))[_0x4f22('0x8d')](_0x4c5d2b=>_0x1e7510[_0x4f22('0x1f')][_0x4f22('0x3c')]['mapViewToDom'](_0x4c5d2b))[_0x4f22('0x8d')](_0x3495f3=>Array[_0x4f22('0x5c')](_0x3495f3[_0x4f22('0x9c')]()))['flat']();}if(!this[_0x4f22('0x16')])return _0x219456[0x0];return _0x219456['find'](_0x5cb08b=>_0x5cb08b[_0x4f22('0xb3')]-0x3<=this['_activeViewTarget']['y']&&_0x5cb08b[_0x4f22('0x109')]+0x3>=this[_0x4f22('0x16')]['y']&&_0x5cb08b['left']-0x3<=this[_0x4f22('0x16')]['x']&&_0x5cb08b[_0x4f22('0xe4')]+0x3>=this[_0x4f22('0x16')]['x'])||_0x219456[0x0];}}}),this[_0x4f22('0xa4')][_0x4f22('0x65')](_0x4f22('0xd5')));}),this['on'](_0x4f22('0x67'),(_0x200318,_0x262213,_0x27259a,_0x475618)=>{this['activeView']=_0x27259a?this[_0x4f22('0xb2')](_0x27259a):null,this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x7c')](()=>{const _0x68459e=this[_0x4f22('0x6c')][_0x4f22('0xb7')];_0x475618&&(_0x475618[_0x4f22('0x120')][_0x4f22('0xc0')]?_0x68459e[_0x4f22('0x1f')][_0x4f22('0x7c')](_0x5ebd04=>{_0x5ebd04[_0x4f22('0x110')](_0x4f22('0x10e'),_0x68459e['view'][_0x4f22('0x106')]['getRoot'](_0x475618[_0x4f22('0x12')]));}):_0x68459e[_0x4f22('0x9b')](_0x4f22('0x68')+_0x475618['id'])),_0x27259a&&(_0x27259a[_0x4f22('0x120')]['isOnRoot']?_0x68459e['view'][_0x4f22('0x7c')](_0x46ca9e=>{_0x46ca9e[_0x4f22('0xfe')](_0x4f22('0x10e'),_0x68459e[_0x4f22('0x1f')][_0x4f22('0x106')]['getRoot'](_0x27259a[_0x4f22('0x12')]));}):_0x68459e[_0x4f22('0x9b')]('revision:'+_0x27259a['id']));});}),this[_0x4f22('0xbc')](this[_0x4f22('0x6c')][_0x4f22('0xb7')]['view'][_0x4f22('0x106')],_0x4f22('0xa8'),(_0x2d11af,_0x1c0820)=>{if(this[_0x4f22('0x10f')])return;const _0x392171=this[_0x4f22('0xb4')](_0x1c0820[_0x4f22('0x8c')]),_0x58e69c=this[_0x4f22('0x22')][_0x4f22('0x10c')](_0x392171);_0x58e69c?(this[_0x4f22('0x16')]={'x':_0x1c0820[_0x4f22('0x59')]['x'],'y':_0x1c0820[_0x4f22('0x59')]['y']},this['activeView']=this[_0x4f22('0xb2')](_0x58e69c)):(this[_0x4f22('0x16')]=null,this[_0x4f22('0x62')]=null);}),this[_0x4f22('0xbc')](this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')],_0x4f22('0x3f'),(_0x5daa67,_0x7c1602)=>{const _0x1ba3c0=this[_0x4f22('0xb4')](_0x7c1602[_0x4f22('0x8c')]),_0x27c96c=this['_changeIdToChange']['get'](_0x1ba3c0);_0x27c96c?(this[_0x4f22('0x16')]={'x':_0x7c1602[_0x4f22('0x59')]['x'],'y':_0x7c1602[_0x4f22('0x59')]['y']},_0x27c96c===this[_0x4f22('0x10f')]?this['_balloon']['updatePosition']():this[_0x4f22('0x10f')]=_0x27c96c):(this[_0x4f22('0x16')]=null,this[_0x4f22('0x10f')]=null);});}[_0x4f22('0xb4')](_0x2188a8){do{const _0x28a4aa=_0x2188a8[_0x4f22('0x7f')](_0x4f22('0x41'));if(_0x28a4aa)return _0x28a4aa;_0x2188a8=_0x2188a8[_0x4f22('0x21')];}while(_0x2188a8);return null;}[_0x4f22('0x8f')](){this['editor'][_0x4f22('0xe6')][_0x4f22('0x7c')](_0x4ee7b0=>{for(const _0x1c1b17 of this[_0x4f22('0x6c')]['model'][_0x4f22('0x14')])_0x4ee7b0[_0x4f22('0xb0')](_0x1c1b17);});}}function Z(_0x1f8614,_0x47352e){return(_0x5bfb10,_0xedceb4,_0x5258dd)=>{if(!_0x5258dd[_0x4f22('0x124')]['test'](_0xedceb4['markerRange'],_0x5bfb10[_0x4f22('0xa5')]))return;const _0xf07e36=_0xedceb4[_0x4f22('0x36')][_0x4f22('0xd8')](),_0x2cd068=_0xedceb4['markerRange'][_0x4f22('0xa0')],_0x20eebf=_0x1f8614[_0x4f22('0xe6')][_0x4f22('0x104')];let _0x1a8885=null,_0x5a6777=null,_0x597c81=!0x1,_0x1a1008=!0x1;for(const _0x38efcc of _0xf07e36){const _0x5a35bc=_0x38efcc[_0x4f22('0x9d')];_0x597c81=_0x597c81||_0x20eebf[_0x4f22('0xfd')](_0x5a35bc);const _0x3924a2=_0x5258dd[_0x4f22('0xa2')][_0x4f22('0xfa')](_0x5a35bc);if(_0x3924a2&&_0x3924a2[_0x4f22('0x86')](_0x4f22('0x99')))return;_0x4f22('0xad')==_0x38efcc[_0x4f22('0x43')]&&(_0x20eebf[_0x4f22('0x6d')](_0x5a35bc)&&!_0x20eebf['isLimit'](_0x5a35bc)&&(_0x5a35bc[_0x4f22('0x46')]||_0x2cd068[_0x4f22('0xcd')]?_0x1a8885&&_0x1a8885[_0x4f22('0x21')]==_0x5a35bc||(_0x1a8885=_0x5a35bc,_0x46f242(_0x38efcc['previousPosition']),_0x1a1008=!0x0):_0x5a6777=_0x5a6777||_0x38efcc[_0x4f22('0x73')]));}function _0x46f242(_0x141311){const _0x578ab6=_0x5258dd[_0x4f22('0xa2')][_0x4f22('0xbb')](_0x141311),_0x3b3e3b=_0x5258dd[_0x4f22('0x118')]['createUIElement'](_0x4f22('0x49'),{'class':_0x4f22('0x28')+_0x47352e});_0x5258dd[_0x4f22('0x118')][_0x4f22('0x50')](_0x578ab6,_0x3b3e3b),_0x5258dd['mapper'][_0x4f22('0x54')](_0x3b3e3b,_0xedceb4[_0x4f22('0x6f')]);}_0x597c81||_0x1a1008||!_0x5a6777||_0x46f242(_0x5a6777);};}export class RestoreRevisionCommand extends _0x35688b{constructor(_0xf403fc){super(_0xf403fc);const _0x2925c4=_0xf403fc[_0x4f22('0xc1')]['get'](d);this['affectsData']=!0x1,this[_0x4f22('0xbc')](_0x2925c4,_0x4f22('0x98'),()=>this[_0x4f22('0x101')]()),this['listenTo'](_0x2925c4,_0x4f22('0x70'),()=>this[_0x4f22('0x101')]());}[_0x4f22('0xf3')](){const _0x50c39a=this[_0x4f22('0x6c')],_0x36b7a1=_0x50c39a[_0x4f22('0xc1')]['get'](d),_0xd4d6ec=_0x36b7a1[_0x4f22('0xea')]?_0x36b7a1[_0x4f22('0xce')][_0x4f22('0xde')]:null;_0x50c39a[_0x4f22('0x19')]['get'](_0x4f22('0xf8'))['restoreRevisionCallback'](_0xd4d6ec);}[_0x4f22('0x101')](){const {isReady:_0x26703d,isEnabled:_0x598af4}=this[_0x4f22('0x6c')][_0x4f22('0xc1')][_0x4f22('0x10c')](d);this[_0x4f22('0x8a')]=_0x26703d&&_0x598af4;}}export class ShowChangeCommand extends _0x35688b{constructor(_0x486481,{direction:_0x2d65b9}){super(_0x486481);const _0x5a308d=_0x486481[_0x4f22('0xc1')][_0x4f22('0x10c')](d);this['affectsData']=!0x1,this[_0x4f22('0xff')]=_0x4f22('0x2e')===_0x2d65b9?0x1:-0x1,this['listenTo'](_0x5a308d,_0x4f22('0x98'),()=>this[_0x4f22('0x101')]()),this[_0x4f22('0xbc')](_0x5a308d,_0x4f22('0x70'),()=>this[_0x4f22('0x101')]());}[_0x4f22('0xf3')](){const _0x2b3b29=this[_0x4f22('0x6c')],_0x555b70=_0x2b3b29[_0x4f22('0xc1')][_0x4f22('0x10c')](d),{isNavigationMode:_0x1f7ac1,currentChangeNumber:_0xfe4bcc}=_0x555b70;let _0x17b714;if(_0x555b70['activeChange']=_0x1f7ac1?_0x555b70[_0x4f22('0xce')]['changes'][_0x4f22('0x10c')](_0xfe4bcc+this['_step']):_0x555b70[_0x4f22('0xce')][_0x4f22('0xda')][_0x4f22('0xe9')],_0x555b70[_0x4f22('0x10f')][_0x4f22('0x120')][_0x4f22('0xc0')])_0x17b714=_0x2b3b29[_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0xae')](_0x555b70[_0x4f22('0x10f')][_0x4f22('0x12')]);else{const _0x2c89f6=_0x2b3b29[_0x4f22('0xe6')][_0x4f22('0x14')][_0x4f22('0x10c')](_0x4f22('0x68')+_0x555b70[_0x4f22('0x10f')]['id']);_0x17b714=_0x313195(_0x2b3b29['editing'],_0x2c89f6);}_0x3c451b({'target':_0x17b714,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x59fb4c,currentChangeNumber:_0x2544c7,numberOfChanges:_0x3f129b,isReady:_0x1bda5f,isEnabled:_0x34e593}=this[_0x4f22('0x6c')][_0x4f22('0xc1')][_0x4f22('0x10c')](d);this[_0x4f22('0x8a')]=!!(_0x34e593&&_0x1bda5f&&_0x3f129b)&&(!_0x59fb4c||(0x1===this[_0x4f22('0xff')]?_0x2544c7<_0x3f129b-0x1:_0x2544c7>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1327=['bindTemplate','extendTemplate','buttonView','isEnabled','_action','ck-on','isReady','isActionsDropdownOpen','first','items','isOpen','listView','change:isActionsDropdownOpen','source','map','button','action','locale','listenTo','function','execute','class','ck-revision-history-sidebar__revision__actions','set','name','model','isVisible'];(function(_0x2d5dbe,_0x13275c){const _0x4cc089=function(_0x396561){while(--_0x396561){_0x2d5dbe['push'](_0x2d5dbe['shift']());}};_0x4cc089(++_0x13275c);}(_0x1327,0x122));const _0x4cc0=function(_0x2d5dbe,_0x13275c){_0x2d5dbe=_0x2d5dbe-0x0;let _0x4cc089=_0x1327[_0x2d5dbe];return _0x4cc089;};import{Collection as _0x2f3d82}from'ckeditor5/src/utils';import{icons as _0x8ce893}from'ckeditor5/src/core';import{Model as _0x1d9ba0,addListToDropdown as _0x15a5be,createDropdown as _0x4197c6}from'ckeditor5/src/ui';import{getTranslation as _0x2a0534}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3139bf,_0x54e3ab){const _0x54cd3c=_0x3139bf[_0x4cc0('0x7')],_0x5a0679=_0x3139bf[_0x4cc0('0x18')],_0x31963b=_0x4197c6(_0x5a0679);_0x31963b['panelPosition']='sw';const _0x38bb0e=function(_0x145685,_0xbd794b){const _0x5856bc=function(_0x22cb01,_0x162044){const _0x17aa24=_0x22cb01[_0x4cc0('0x18')],_0x202f6f={'Compare\x20against\x20selected':_0x2a0534(_0x17aa24,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x2a0534(_0x17aa24,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x2a0534(_0x17aa24,'Restore\x20this\x20revision')};return _0x162044[_0x4cc0('0x15')](_0x56c0bb=>{const _0x333a11=_0x202f6f[_0x56c0bb['name']];return _0x333a11&&_0x333a11!==_0x56c0bb[_0x4cc0('0x4')]&&(_0x56c0bb[_0x4cc0('0x4')]=_0x333a11),_0x56c0bb;});}(_0x145685,_0xbd794b),_0x62d5a3=new _0x2f3d82();for(const _0x38a8a9 of _0x5856bc){const _0x5c4d62={'type':_0x4cc0('0x16'),'model':new _0x1d9ba0({'label':_0x38a8a9['name'],'class':_0x38a8a9[_0x4cc0('0x1')],'withText':!0x0,'_action':_0x38a8a9[_0x4cc0('0x17')]})};_0x5c4d62[_0x4cc0('0x5')]['bind'](_0x4cc0('0xa'))['to'](_0x145685,_0x4cc0('0xe'),_0x31bf11=>_0x4cc0('0x1a')!=typeof _0x38a8a9[_0x4cc0('0xa')]||(!_0x31bf11||_0x38a8a9['isEnabled'](_0x145685))),_0x62d5a3['add'](_0x5c4d62);}return _0x62d5a3;}(_0x3139bf,_0x54e3ab);return _0x3139bf['bind']('isActionsDropdownOpen')['to'](_0x31963b,_0x4cc0('0x11')),_0x31963b[_0x4cc0('0x9')][_0x4cc0('0x3')]({'label':_0x2a0534(_0x5a0679,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x8ce893['threeVerticalDots']}),_0x31963b[_0x4cc0('0x8')]({'attributes':{'class':[_0x4cc0('0x2'),_0x54cd3c['if'](_0x4cc0('0xe'),_0x4cc0('0xc'))]},'on':{'click':_0x54cd3c['to'](_0x49e893=>_0x49e893['stopPropagation']())}}),_0x31963b['on'](_0x4cc0('0x0'),_0x44362f=>{_0x3139bf[_0x4cc0('0xd')]&&_0x4cc0('0x1a')==typeof _0x44362f[_0x4cc0('0x14')][_0x4cc0('0xb')]&&_0x44362f[_0x4cc0('0x14')][_0x4cc0('0xb')](_0x3139bf);}),_0x15a5be(_0x31963b,_0x38bb0e),_0x31963b[_0x4cc0('0x19')](_0x3139bf,_0x4cc0('0x13'),(_0x451c56,_0x4a0107,_0x483637)=>{if(_0x483637)for(const _0x4d3fc6 of _0x31963b[_0x4cc0('0x12')][_0x4cc0('0x10')]){const _0x1e16e4=_0x4d3fc6['children'][_0x4cc0('0xf')],_0x3357c2=_0x54e3ab['find'](_0x186434=>_0x186434[_0x4cc0('0x17')]===_0x1e16e4[_0x4cc0('0xb')])[_0x4cc0('0x6')];_0x4d3fc6[_0x4cc0('0x6')]=void 0x0===_0x3357c2||_0x3357c2(_0x3139bf);}}),_0x31963b;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa769=['Revision\x20creator','push','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','setTemplate','ck-revision-history-sidebar__revision-author__name','set','span'];(function(_0x4823d1,_0xa76913){const _0x29b1c9=function(_0x1f3da7){while(--_0x1f3da7){_0x4823d1['push'](_0x4823d1['shift']());}};_0x29b1c9(++_0xa76913);}(_0xa769,0x193));const _0x29b1=function(_0x4823d1,_0xa76913){_0x4823d1=_0x4823d1-0x0;let _0x29b1c9=_0xa769[_0x4823d1];return _0x29b1c9;};import{View as _0x3155ae,IconView as _0x31f582}from'ckeditor5/src/ui';import{getTranslation as _0x5bfaed}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x112e88 from'../../../theme/icons/user.svg';export default class ti extends _0x3155ae{constructor(_0x463e08,_0x3044b8,_0x22b445){super(_0x463e08);const _0x30f74c=new _0x31f582();_0x30f74c[_0x29b1('0x3')]({'content':_0x112e88,'viewBox':'0\x200\x2011\x2010'});const _0x54ddfc=['ck',_0x29b1('0x7')];_0x22b445&&_0x54ddfc[_0x29b1('0x6')](_0x29b1('0x0'));const _0x4d8a4c=[{'tag':_0x29b1('0x4'),'attributes':{'class':['ck',_0x29b1('0x2')],'title':_0x5bfaed(_0x463e08,_0x22b445?_0x29b1('0x5'):'Revision\x20author')},'children':[_0x30f74c,_0x3044b8['name']]}];this[_0x29b1('0x1')]({'tag':'li','attributes':{'class':_0x54ddfc},'children':_0x4d8a4c});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2831=['set','span','Revision\x20name','extendTemplate'];(function(_0x5f57be,_0x2831a7){var _0x3e7905=function(_0x277a3b){while(--_0x277a3b){_0x5f57be['push'](_0x5f57be['shift']());}};_0x3e7905(++_0x2831a7);}(_0x2831,0x1f4));var _0x3e79=function(_0x5f57be,_0x2831a7){_0x5f57be=_0x5f57be-0x0;var _0x3e7905=_0x2831[_0x5f57be];return _0x3e7905;};import{LabeledFieldView as _0x2834ff}from'ckeditor5/src/ui';import{getTranslation as _0x26f4f0}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x2834ff{constructor(_0x5e6bb8,_0x41b110){super(_0x5e6bb8,_0x41b110),this[_0x3e79('0x0')]({'label':_0x26f4f0(_0x5e6bb8,_0x3e79('0x2'))}),this[_0x3e79('0x3')]({'tag':_0x3e79('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5476=['fieldView','bindTemplate','deselect','set','unshift','placeholder','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','div','createdAt','revisionNameView','from','filter','setTemplate','ck-disabled','length','render','authors','listenTo','highlight','unhighlight','uiLanguage','isSelected','select','ck-revision-history-sidebar__actions_dropdown_open','map','span','ck-revision-history-sidebar__revision__date','creator','isHighlighted','bind','revisionActionsView','isActionsDropdownOpen','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','.ck-thread__remove-confirm','isEnabled','extendTemplate','ck-revision-history-sidebar__revision__controls-wrapper','closest','element','setName','fire','name','change','ck-revision-history-sidebar__revision_highlighted','220','_createdAtFormatted','value'];(function(_0xa38b69,_0x547650){const _0xbdc77f=function(_0x2486d7){while(--_0x2486d7){_0xa38b69['push'](_0xa38b69['shift']());}};_0xbdc77f(++_0x547650);}(_0x5476,0x8e));const _0xbdc7=function(_0xa38b69,_0x547650){_0xa38b69=_0xa38b69-0x0;let _0xbdc77f=_0x5476[_0xa38b69];return _0xbdc77f;};import{View as _0x49e9c1,createLabeledInputText as _0x2fab31}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5d3f10}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a0907 from'./revisionnameview';import _0x4798b2 from'./revisionauthorview';import{dateToPrettyFormat as _0x12659d}from'./utils';import{createActionsDropdownView as _0x4a85c9}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5d3f10(_0x49e9c1){constructor(_0x3d53f2,_0x297cc0,_0x2101d1){super(_0x3d53f2);const _0x6e13f9=this[_0xbdc7('0x3')],_0x25425e=function(_0x15179c,_0x37b172){const _0x38ac67=Array[_0xbdc7('0xc')](_0x37b172[_0xbdc7('0x12')])[_0xbdc7('0xd')](_0x691c76=>_0x691c76!=_0x37b172[_0xbdc7('0x1d')]);return _0x37b172[_0xbdc7('0x1d')]&&_0x38ac67[_0xbdc7('0x6')](_0x37b172[_0xbdc7('0x1d')]),_0x38ac67[_0xbdc7('0x1a')](_0xb7949b=>new _0x4798b2(_0x15179c,_0xb7949b,_0xb7949b==_0x37b172[_0xbdc7('0x1d')]));}(_0x3d53f2,_0x297cc0);this['id']=_0x297cc0['id'],this['_revision']=_0x297cc0,this[_0xbdc7('0x1f')](_0xbdc7('0x2c'),_0xbdc7('0xa'))['to'](_0x297cc0),this[_0xbdc7('0x1f')](_0xbdc7('0x0'))['to'](this,_0xbdc7('0xa'),_0x42a889=>_0x42a889?_0x12659d(_0x3d53f2[_0xbdc7('0x16')],_0x42a889):void 0x0),this[_0xbdc7('0x5')]('isSelected',!0x1),this[_0xbdc7('0x5')](_0xbdc7('0x1e'),!0x1),this[_0xbdc7('0x5')](_0xbdc7('0x21'),!0x1),this[_0xbdc7('0x5')]('isReady',!0x1),this[_0xbdc7('0x5')]('isEnabled',!0x1),this['revisionNameView']=new _0x3a0907(_0x3d53f2,_0x2fab31),this[_0xbdc7('0xb')][_0xbdc7('0x2')][_0xbdc7('0x26')]({'attributes':{'maxlength':_0xbdc7('0x2f')}}),this[_0xbdc7('0xb')][_0xbdc7('0x2')]['bind'](_0xbdc7('0x1'),_0xbdc7('0x7'))['to'](this,_0xbdc7('0x2c'),_0xbdc7('0x0')),this[_0xbdc7('0xb')]['bind']('isEnabled')['to'](this,_0xbdc7('0x17'),this,_0xbdc7('0x25'),(_0x2df6c6,_0x4a03f8)=>_0x2df6c6&&_0x4a03f8),this['revisionActionsView']=_0x2101d1&&_0x2101d1[_0xbdc7('0x10')]?_0x4a85c9(this,_0x2101d1):'',this['revisionActionsView']&&this[_0xbdc7('0x20')][_0xbdc7('0x1f')](_0xbdc7('0x25'))['to'](this),this[_0xbdc7('0xe')]({'tag':_0xbdc7('0x9'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x6e13f9['if']('isConfirm',_0xbdc7('0x8'))]},'children':[{'tag':_0xbdc7('0x9'),'attributes':{'class':['ck','ck-reset',_0xbdc7('0x22'),_0x6e13f9['if']('isEnabled',_0xbdc7('0xf'),_0x395f87=>!_0x395f87),_0x6e13f9['if'](_0xbdc7('0x17'),'ck-revision-history-sidebar__revision_selected'),_0x6e13f9['if'](_0xbdc7('0x1e'),_0xbdc7('0x2e')),_0x6e13f9['if'](_0xbdc7('0x21'),_0xbdc7('0x19'))]},'children':[this[_0xbdc7('0xb')],{'tag':_0xbdc7('0x1b'),'attributes':{'class':['ck',_0xbdc7('0x1c')]},'children':[{'text':_0x6e13f9['to'](_0xbdc7('0x0'))}]},{'tag':_0xbdc7('0x9'),'attributes':{'class':['ck',_0xbdc7('0x27')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0xbdc7('0x23')]},'children':_0x25425e}]},this[_0xbdc7('0x20')]],'on':{'click':_0x6e13f9['to'](_0x23728f=>{_0x23728f['srcElement'][_0xbdc7('0x28')](_0xbdc7('0x24'))||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}[_0xbdc7('0x11')](){super[_0xbdc7('0x11')]();const _0x1f1d1c=this['revisionNameView'][_0xbdc7('0x2')][_0xbdc7('0x29')];this[_0xbdc7('0x13')](_0x1f1d1c,_0xbdc7('0x2d'),()=>{this[_0xbdc7('0x2b')](_0xbdc7('0x2a'),{'id':this['id'],'name':_0x1f1d1c[_0xbdc7('0x1')]});});}[_0xbdc7('0x18')](){this[_0xbdc7('0x17')]=!0x0;}[_0xbdc7('0x4')](){this[_0xbdc7('0x17')]=!0x1;}[_0xbdc7('0x14')](){this[_0xbdc7('0x1e')]=!0x0;}[_0xbdc7('0x15')](){this[_0xbdc7('0x1e')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fe8=['bindTemplate','false','button','click','ck-revision-history-sidebar__subrevision-collapser__inner','span','ck-hidden','isVisible','_isCollapsed','set'];(function(_0x344593,_0x1fe855){const _0x1250ae=function(_0x43382b){while(--_0x43382b){_0x344593['push'](_0x344593['shift']());}};_0x1250ae(++_0x1fe855);}(_0x1fe8,0x13f));const _0x1250=function(_0x344593,_0x1fe855){_0x344593=_0x344593-0x0;let _0x1250ae=_0x1fe8[_0x344593];return _0x1250ae;};import{View as _0xbb756b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xbb756b{constructor(_0x29cd94){super(_0x29cd94);const _0x2ad937=this[_0x1250('0x1')];this[_0x1250('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x1250('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x2ad937['if'](_0x1250('0x8'),_0x1250('0x7'),_0x3445ff=>!_0x3445ff),_0x2ad937['if'](_0x1250('0x9'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x1250('0x3'),'aria-pressed':_0x2ad937['to'](_0x1250('0x9'),_0xdf2fad=>_0xdf2fad?_0x1250('0x2'):'true')},'children':[{'tag':_0x1250('0x6'),'attributes':{'class':['ck',_0x1250('0x5')]}}],'on':{'click':_0x2ad937['to'](_0x1250('0x4'))}});}['toggle'](){this[_0x1250('0x9')]=!this[_0x1250('0x9')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x452d=['ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision','uiLanguage','span','fire','_createdAtFormatted','bindTemplate','isSelected','creator','bind','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','_parentRevisionId','set','select','deselect','setTemplate'];(function(_0x2aee1a,_0x452d77){const _0x45a360=function(_0x514610){while(--_0x514610){_0x2aee1a['push'](_0x2aee1a['shift']());}};_0x45a360(++_0x452d77);}(_0x452d,0x118));const _0x45a3=function(_0x2aee1a,_0x452d77){_0x2aee1a=_0x2aee1a-0x0;let _0x45a360=_0x452d[_0x2aee1a];return _0x45a360;};import{View as _0xc72a5f}from'ckeditor5/src/ui';import _0x8d4faf from'./revisionauthorview';import{dateToPrettyFormat as _0x2665d6}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xc72a5f{constructor(_0x375dc3,_0x43eeee,_0x3a1c83){super(_0x375dc3);const _0x514ed7=this[_0x45a3('0xf')];this['id']=_0x43eeee['id'],this['bind']('createdAt')['to'](_0x43eeee),this[_0x45a3('0x4')](_0x45a3('0x10'),!0x1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4cf7f7=>_0x4cf7f7?_0x2665d6(_0x375dc3[_0x45a3('0xb')],_0x4cf7f7):void 0x0),this[_0x45a3('0x3')]=_0x3a1c83,this[_0x45a3('0x7')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x45a3('0xa'),_0x45a3('0x9'),_0x514ed7['if'](_0x45a3('0x10'),_0x45a3('0x1'))]},'children':[{'tag':_0x45a3('0xc'),'attributes':{'class':['ck',_0x45a3('0x2')]},'children':[{'text':_0x514ed7['to'](_0x45a3('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0x45a3('0x8')]},'children':[new _0x8d4faf(_0x375dc3,_0x43eeee[_0x45a3('0x11')],!0x0)]}],'on':{'click':_0x514ed7['to'](this[_0x45a3('0x5')][_0x45a3('0x0')](this))}});}[_0x45a3('0x5')](){this[_0x45a3('0x10')]=!0x0,this[_0x45a3('0xd')](_0x45a3('0x5'),{'parentId':this[_0x45a3('0x3')]});}[_0x45a3('0x6')](){this[_0x45a3('0x10')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x43f8=['toLocaleTimeString','numeric','long'];(function(_0x36bacb,_0x43f890){var _0x7252d9=function(_0x10232b){while(--_0x10232b){_0x36bacb['push'](_0x36bacb['shift']());}};_0x7252d9(++_0x43f890);}(_0x43f8,0x14a));var _0x7252=function(_0x36bacb,_0x43f890){_0x36bacb=_0x36bacb-0x0;var _0x7252d9=_0x43f8[_0x36bacb];return _0x7252d9;};export function dateToPrettyFormat(_0x298194,_0x572dd8){return _0x572dd8['toLocaleDateString'](_0x298194,{'month':_0x7252('0x2'),'day':_0x7252('0x1')})+',\x20'+_0x572dd8[_0x7252('0x0')](_0x298194,{'hour':_0x7252('0x1'),'minute':_0x7252('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52ae=['listenTo','execute','reset','keystrokes','_focusCycler','ck-responsive-form','saveButtonView','cancelButtonView','Save','value','input','revisionName','fieldView','set','forEach','220','_createButton','submit','focus','type','cancel','arrowleft','stopPropagation','tab','label','trim','add','element','revisionNameInputValue','focusTracker','arrowright','setTemplate','ck-button-cancel','ck-revision-history-save-revision-form','revisionNameInputView','locale','_focusables','render','extendTemplate','_createRevisionNameInput'];(function(_0x1fe5f5,_0x52ae69){const _0x27690b=function(_0xfdf869){while(--_0xfdf869){_0x1fe5f5['push'](_0x1fe5f5['shift']());}};_0x27690b(++_0x52ae69);}(_0x52ae,0x6c));const _0x2769=function(_0x1fe5f5,_0x52ae69){_0x1fe5f5=_0x1fe5f5-0x0;let _0x27690b=_0x52ae[_0x1fe5f5];return _0x27690b;};import{icons as _0x11fb3f}from'ckeditor5/src/core';import{ButtonView as _0x22db60,FocusCycler as _0x22fc75,LabeledFieldView as _0x5b1850,View as _0x435bdb,ViewCollection as _0x26b4fb,createLabeledInputText as _0x4989aa,injectCssTransitionDisabler as _0x923df0,submitHandler as _0x2a1c63}from'ckeditor5/src/ui';import{FocusTracker as _0x3c1bae,KeystrokeHandler as _0x32bc89}from'ckeditor5/src/utils';import{getTranslation as _0x123abb}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class bt extends _0x435bdb{constructor(_0x4f9be3){super(_0x4f9be3),this['focusTracker']=new _0x3c1bae(),this['keystrokes']=new _0x32bc89(),this[_0x2769('0x19')](_0x2769('0x0'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x2769('0x12')]=this['_createButton'](_0x123abb(_0x4f9be3,_0x2769('0x14')),_0x11fb3f['check'],'ck-button-save'),this[_0x2769('0x12')][_0x2769('0x1f')]=_0x2769('0x1d'),this[_0x2769('0x13')]=this[_0x2769('0x1c')](_0x123abb(_0x4f9be3,'Cancel'),_0x11fb3f['cancel'],_0x2769('0x4'),_0x2769('0x20')),this[_0x2769('0x8')]=new _0x26b4fb(),this[_0x2769('0x10')]=new _0x22fc75({'focusables':this[_0x2769('0x8')],'focusTracker':this[_0x2769('0x1')],'keystrokeHandler':this[_0x2769('0xf')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x2769('0x23')}}),this[_0x2769('0x3')]({'tag':'form','attributes':{'class':['ck',_0x2769('0x5'),_0x2769('0x11')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x2769('0x12')],this[_0x2769('0x13')]]}),_0x923df0(this);}[_0x2769('0x9')](){super['render'](),_0x2a1c63({'view':this}),([this[_0x2769('0x6')],this[_0x2769('0x12')],this[_0x2769('0x13')]][_0x2769('0x1a')](_0x17fac7=>{this[_0x2769('0x8')]['add'](_0x17fac7),this[_0x2769('0x1')][_0x2769('0x26')](_0x17fac7[_0x2769('0x27')]);}),this[_0x2769('0xf')][_0x2769('0xc')](this['element']));const _0x313be5=_0x9a3746=>_0x9a3746[_0x2769('0x22')]();this[_0x2769('0xf')][_0x2769('0x19')](_0x2769('0x2'),_0x313be5),this[_0x2769('0xf')][_0x2769('0x19')](_0x2769('0x21'),_0x313be5),this[_0x2769('0xf')][_0x2769('0x19')]('arrowup',_0x313be5),this[_0x2769('0xf')][_0x2769('0x19')]('arrowdown',_0x313be5);}[_0x2769('0x1e')](){this['_focusCycler']['focusFirst']();}get[_0x2769('0x17')](){return this[_0x2769('0x6')]['fieldView'][_0x2769('0x27')][_0x2769('0x15')][_0x2769('0x25')]();}set[_0x2769('0x17')](_0x429d19){this[_0x2769('0x6')][_0x2769('0x18')][_0x2769('0x27')][_0x2769('0x15')]=_0x429d19[_0x2769('0x25')]();}[_0x2769('0xe')](){this[_0x2769('0x6')][_0x2769('0x18')][_0x2769('0x27')][_0x2769('0x15')]='';}[_0x2769('0xb')](){const _0x2edfde=new _0x5b1850(this[_0x2769('0x7')],_0x4989aa),_0x48a27c=_0x2edfde[_0x2769('0x18')];return _0x48a27c[_0x2769('0xa')]({'attributes':{'maxlength':_0x2769('0x1b')}}),_0x2edfde[_0x2769('0x24')]=_0x123abb(this[_0x2769('0x7')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x48a27c['on'](_0x2769('0x16'),()=>{this[_0x2769('0x0')]=_0x48a27c[_0x2769('0x27')][_0x2769('0x15')][_0x2769('0x25')]();}),_0x2edfde;}[_0x2769('0x1c')](_0x580787,_0x3e4ecd,_0x8c87d5,_0x53d065){const _0x3447ee=new _0x22db60(this[_0x2769('0x7')]);return _0x3447ee['set']({'label':_0x580787,'icon':_0x3e4ecd,'tooltip':!0x0}),_0x3447ee[_0x2769('0xa')]({'attributes':{'class':_0x8c87d5}}),_0x53d065&&_0x3447ee['delegate'](_0x2769('0xd'))['to'](this,_0x53d065),_0x3447ee;}}
|