@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230705.0 → 0.0.0-nightly-20230707.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 _0x5613=['markerToData','nextSibling','_activeViewTarget','enableReadOnlyMode','isBlock','viewItem','start','change:activeChange','plugins','_fixObsoleteTags','getClientRects','find','ck-suggestion-marker-split','removeClass','level','uiElement','then','shift','ck-revision-history-root-add','change:isEnabled','bind','_balloon','bindElementToMarker','activeChange','detachRoot','requires','startsWith','loadRevisionData','pluginName','_threeWayMerge','_getViewObj','currentChangeNumber','writer','userId','remove','isAttached','deletion','attributes','_setDistance','left','numberOfChanges','length','changeId','model','vid_end','createAttributeElement','span','getAttributes','data-revision-','markersEnd','markersStart','maxOffset','get','push','_cleanUp','createUIElement','roots','_cleanMarkers','stop','revisionHistoryAttachChange','revision-suggestion:','dataToMarker','getDomRoot','insertions','has','toModel','_revisions','revision-viewer','activeView','_makeModelFromTape','unshift','_getViewForChange','splice','hasAttribute','markerRange','ck-suggestion-marker','dataDowncast','keys','ck-suggestion-preview-marker','forward','hasClass','side','deletions','_markSuggestions','first','ck-revision-history-root-','isOnRoot','editingDowncast','upcast','bottom','item','pop','object','test','_changeView','insert','revisionHistoryLabel','ck-editor__editable__overlay','element','repository','includes','ck-suggestion-marker--active','-new','text','change','_joinTapes','_getChangeFromId','revisionHistory','isAtStart','data','_getRevisionsRange','name','children','markerName','for','forEach','ck-suggestion-preview-marker-','range','attributesAfter','_markMismatchedRemovedTags','_initInteractions','_markMarkers','index','string','mousedown','newRevisionId','locale','attachChange','getRootNames','createRevision','addMarker:revision-suggestion:deletion','mouseover','_getDiff','parse','getAttribute','wrap','_setChanges','clear','revision-suggestion','ck-suggestion-marker-merge','data-change-id','processor','offsetSize','_markInsertions','affectsData','editor','isRemoveSuggestion','getRevision','document','pairId','catch','target','_changeIdToChange','_step','restoreRevision','showPreviousChange','modelRange','toData','diff','ck-suggestion-marker-','getChild','suggestion','isAddSuggestion','createRange','_processTape','change:activeView','nodeAfter','_findChangeIdFromDomTarget','_makeModelFromViewString','domEvent','add','revision-end','getItems','nextPosition','_makeTape','merge','compare','rootName','isEnabled','addHighlight','insertion','top','_removeUnsupportedChanges','WidgetToolbarRepository','next','_removeRevisionMarkers','_update','_removeMissingPairs','indexOf','change:numberOfChanges','isRemoved','execute','isAfter','enqueueChange','comment','editing','markerToHighlight','elementStart','config','observeMarkers','softBreak','getRevisionData','distance','RevisionViewer','toViewPosition','addMarker:revision-suggestion:insertion','highest','view','split','downcastDispatcher','isEqual','return','revision','refresh','resolve','set','removeMarker:revision-suggestion','consumable','conversion','isBefore','isContent','isIncorrect','consume','map','addRevisionData','destroy','code','isNavigationMode','delete','markerNameToElements','_refreshStartEndIndex','from','getWalker','slice','schema','end','addMarker:revision','concat','isReady','unbindElementFromMarkerName','createPositionBefore','vid_start','isSuggestion','type','createPositionFromPath','isCollapsed','changes','high','parent','revision:','diffData','filter','toViewElement','ck-revision-history-root--active','suggestion:','setAttribute','getIndex','isLimit','commands','attribute:vid','listenTo','endIndex','abs','vid','getCustomProperty','revision-comment:','previousPosition','change:isReady','isObject','markers','POSITIVE_INFINITY','mapper','marked','isAdded','flat','_setConversion','_appendChild','mapViewToDom','getRoot','checkAttribute','sort','addClass','reconvertMarker','updatePosition','_sortAndFilterDiffChanges','low','startIndex','isAtEnd','collaboration.channelId','elementEnd','addRoot','RevisionsRepository'];(function(_0x1510b2,_0x561360){const _0x2f82fb=function(_0x82db49){while(--_0x82db49){_0x1510b2['push'](_0x1510b2['shift']());}};_0x2f82fb(++_0x561360);}(_0x5613,0xbc));const _0x2f82=function(_0x1510b2,_0x561360){_0x1510b2=_0x1510b2-0x0;let _0x2f82fb=_0x5613[_0x1510b2];return _0x2f82fb;};import{Plugin as _0x131c53,Command as _0x14ce75}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0xf5de76}from'ckeditor5/src/utils';import{ContextualBalloon as _0x103a21}from'ckeditor5/src/ui';import{DocumentFragment as _0x4e1681,Element as _0x1f608f,Text as _0x2f2a4a,ViewDocumentFragment as _0x544758,ViewText as _0x9fedc6,ViewElement as _0x562c47,ViewContainerElement as _0x4926c0,ViewAttributeElement as _0x4032e0,ViewEmptyElement as _0x45b216,ViewRawElement as _0x50ff5a,ViewUIElement as _0x5dcf7b}from'ckeditor5/src/engine';import{Users as _0x5e9989,getMarkerDomElement as _0x3ba4c6}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e7d64 from'./ui/revisionviewer/changedetailsview';import _0x54a75b from'./revisionsrepository';import _0x112a6e from'./changeitem';import{default as _0x1215c6}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x871c42}from'lodash-es';const Y={'c':_0x4926c0,'a':_0x4032e0,'e':_0x45b216,'r':_0x50ff5a,'u':_0x5dcf7b};export default class d extends _0x131c53{static get[_0x2f82('0x84')](){return _0x2f82('0xf');}static get[_0x2f82('0x81')](){return[_0x5e9989,_0x103a21,_0x54a75b];}constructor(_0x30d214){super(_0x30d214),this[_0x2f82('0xcb')]=this[_0x2f82('0xf9')][_0x2f82('0x70')][_0x2f82('0x9c')](_0x2f82('0x67')),this[_0x2f82('0x1b')](_0x2f82('0x7f'),null),this[_0x2f82('0x1b')](_0x2f82('0xac'),null),this[_0x2f82('0x6a')]=null,this[_0x2f82('0x1b')](_0x2f82('0x106'),null),this['set']('isReady',!0x1),this[_0x2f82('0x1b')](_0x2f82('0x11a'),!0x0),this['on']('change:isEnabled',(_0x19593e,_0x1e16c4,_0x225961)=>{this['activeChange']=null,this[_0x2f82('0xac')]=null,this['editor'][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xd0')](_0x178255=>{for(const _0x35ef73 of this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')][_0x2f82('0xa0')])_0x225961?_0x178255[_0x2f82('0x75')](_0x2f82('0xc9'),_0x35ef73):_0x178255[_0x2f82('0x5d')](_0x2f82('0xc9'),_0x35ef73);});}),this['bind'](_0x2f82('0x27'))['to'](this,_0x2f82('0x7f'),_0x1d7a69=>null!==_0x1d7a69),this[_0x2f82('0x7c')](_0x2f82('0x87'))['to'](this,'isReady',this,_0x2f82('0x106'),this,_0x2f82('0x7f'),(_0x211406,_0x6d977f,_0x4d5a04)=>_0x211406&&_0x4d5a04?_0x6d977f['changes'][_0x2f82('0x44')](_0x4d5a04):0x0),this[_0x2f82('0x7c')](_0x2f82('0x90'))['to'](this,_0x2f82('0x32'),this,_0x2f82('0x106'),(_0x34165c,_0x55101a)=>_0x34165c?_0x55101a['changes'][_0x2f82('0x91')]:0x0),this[_0x2f82('0xc6')]=null,this[_0x2f82('0x100')]=new Map(),this['adapter']=null,this[_0x2f82('0x7d')]=this['editor'][_0x2f82('0x70')][_0x2f82('0x9c')](_0x103a21);}['init'](){const _0x1bb64f=this[_0x2f82('0xf9')],_0x4605d4=new ShowChangeCommand(_0x1bb64f,{'direction':'backward'}),_0x44ee8e=new ShowChangeCommand(_0x1bb64f,{'direction':_0x2f82('0xb7')});(_0x1bb64f['commands'][_0x2f82('0x112')](_0x2f82('0x103'),_0x4605d4),_0x1bb64f[_0x2f82('0x46')][_0x2f82('0x112')]('showNextChange',_0x44ee8e),_0x1bb64f[_0x2f82('0x46')][_0x2f82('0x112')](_0x2f82('0x102'),new RestoreRevisionCommand(_0x1bb64f)),this['on'](_0x2f82('0x1'),()=>{_0x4605d4[_0x2f82('0x19')](),_0x44ee8e[_0x2f82('0x19')]();}),this[_0x2f82('0x57')](),this[_0x2f82('0xe0')](),_0x1bb64f[_0x2f82('0x6b')](_0x2f82('0xab')),_0x1bb64f[_0x2f82('0x70')]['has'](_0x2f82('0x11f')))&&_0x1bb64f[_0x2f82('0x70')][_0x2f82('0x9c')](_0x2f82('0x11f'))['forceDisabled'](_0x2f82('0xab'));}async[_0x2f82('0xd')](_0x9603e6){await this[_0x2f82('0x83')](_0x9603e6);const _0x5b4ca4={};for(const _0x2786e9 in _0x9603e6[_0x2f82('0x3e')]){if(_0x9603e6[_0x2f82('0x3e')][_0x2786e9]['attachChange']&&!_0x9603e6[_0x2f82('0x3e')][_0x2786e9]['attachChange'][_0x2f82('0x8b')])continue;const _0x3bf128=this[_0x2f82('0x121')](JSON[_0x2f82('0xed')](_0x9603e6[_0x2f82('0x3e')][_0x2786e9][_0x2f82('0xa7')])),_0x30db7d=this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')],_0x266fe5=new _0x544758(_0x30db7d,_0x3bf128[_0x2f82('0x23')](_0x1492ee=>this[_0x2f82('0x86')](_0x1492ee)));this['editor'][_0x2f82('0xd5')][_0x2f82('0xf5')]['useFillerType'](_0x2f82('0x54')),_0x5b4ca4[_0x2786e9]=this[_0x2f82('0xf9')]['data'][_0x2f82('0xf5')][_0x2f82('0x105')](_0x266fe5),this[_0x2f82('0xf9')][_0x2f82('0xd5')][_0x2f82('0xf5')]['useFillerType']('default');}return _0x5b4ca4;}async['getRevisionRootsAttributes'](_0x57ffe4){await this[_0x2f82('0x83')](_0x57ffe4);const _0x31e667={};for(const _0x35367c in _0x57ffe4[_0x2f82('0x3e')])_0x57ffe4[_0x2f82('0x3e')][_0x35367c][_0x2f82('0xe7')]&&!_0x57ffe4[_0x2f82('0x3e')][_0x35367c][_0x2f82('0xe7')][_0x2f82('0x8b')]||(_0x31e667[_0x35367c]=_0x57ffe4[_0x2f82('0x3e')][_0x35367c][_0x2f82('0xde')]||{});return _0x31e667;}['_removeRevisionMarkers'](_0x53dfe7){return(_0x53dfe7=_0x53dfe7[_0x2f82('0x3f')](_0x5a0c8b=>!_0x5a0c8b[_0x2f82('0xd7')]||'revision-start'!==_0x5a0c8b[_0x2f82('0xd7')]&&_0x2f82('0x113')!==_0x5a0c8b[_0x2f82('0xd7')]))[_0x2f82('0xdb')](_0x3fa0e6=>{_0x2f82('0xe3')!=typeof _0x3fa0e6&&(_0x3fa0e6[_0x2f82('0xd8')]=this[_0x2f82('0x121')](_0x3fa0e6[_0x2f82('0xd8')]),_0x3fa0e6[_0x2f82('0x8d')]=_0x3fa0e6[_0x2f82('0x8d')][_0x2f82('0x3f')](_0x3018c2=>!_0x3018c2[0x0][_0x2f82('0x82')](_0x2f82('0x98'))));}),_0x53dfe7;}async[_0x2f82('0x118')](_0x5ef82f,_0x50a2c7,_0x351e02=!0x1){if(!this[_0x2f82('0x11a')])return;const _0x17e1b0=this[_0x2f82('0x106')],_0x4ab4e5=this['repository'],_0x1ed685=_0x2f82('0xe3')==typeof _0x5ef82f?_0x4ab4e5[_0x2f82('0xfb')](_0x5ef82f):_0x5ef82f,_0x5352c4='string'==typeof _0x50a2c7?_0x4ab4e5['getRevision'](_0x50a2c7):_0x50a2c7,_0x23aa4d=_0x1ed685['id'],_0x54c0d9=_0x5352c4?_0x5352c4['id']:null;if(!_0x351e02&&this['diff']&&this[_0x2f82('0x106')][_0x2f82('0xe5')]===_0x23aa4d&&this['diff']['oldRevisionId']===_0x54c0d9)return Promise[_0x2f82('0x1a')]();this[_0x2f82('0x32')]=!0x1,this[_0x2f82('0xac')]=null,this[_0x2f82('0x7f')]=null,this[_0x2f82('0x106')]=new _0x1215c6(_0x23aa4d,_0x54c0d9);const _0x4d02f6=this[_0x2f82('0xd6')](_0x1ed685,_0x5352c4,!0x0)['map'](_0x5cc428=>this[_0x2f82('0x83')](_0x5cc428));return _0x4d02f6[_0x2f82('0x9d')](new Promise(_0x4ff0c8=>{setTimeout(_0x4ff0c8,0x14);})),Promise['all'](_0x4d02f6)[_0x2f82('0x78')](()=>{if(!this[_0x2f82('0x11a')])return;this[_0x2f82('0x9e')]();const _0x544c83=this[_0x2f82('0xec')](_0x23aa4d,_0x54c0d9);for(const _0x547aac of _0x544c83[_0x2f82('0x3a')])this['_changeIdToChange'][_0x2f82('0x1b')](_0x547aac['id'],_0x547aac);this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x5')]({'isUndoable':!0x1},_0x290ea9=>{for(const _0x941646 of this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0xfc')][_0x2f82('0xe8')]())_0x290ea9[_0x2f82('0x80')](_0x941646);for(const _0x1d4dda of Object['keys'](_0x544c83['model'])){const _0xb02365=_0x290ea9[_0x2f82('0x66')](_0x1d4dda);for(const _0xf0a80f of Object[_0x2f82('0xb5')](_0x544c83['attributes'][_0x1d4dda]))_0x290ea9[_0x2f82('0x43')](_0xf0a80f,_0x544c83['attributes'][_0x1d4dda][_0xf0a80f],_0xb02365);_0x290ea9['insert'](_0x544c83[_0x2f82('0x93')][_0x1d4dda],_0xb02365,0x0);}}),this[_0x2f82('0x106')][_0x2f82('0xf0')](this[_0x2f82('0x60')](_0x544c83[_0x2f82('0x3a')])),this['isReady']=!0x0;})[_0x2f82('0xfe')](_0x5815d2=>{console['error'](_0x5815d2),this['_cleanUp'](),_0x17e1b0&&(this[_0x2f82('0x106')]=_0x17e1b0),this[_0x2f82('0x32')]=!0x0;});}[_0x2f82('0x24')](_0xc0101b,_0x1d5c8f){const _0x4b31f8=this['repository'][_0x2f82('0xe9')](_0xc0101b);return _0x4b31f8['on'](_0x2f82('0x122'),(_0x19619c,_0x15cb36,_0x1195a5)=>_0x1d5c8f(_0x15cb36,_0x1195a5,_0x4b31f8)),this['repository']['addRevision'](_0x4b31f8),_0x4b31f8;}[_0x2f82('0x83')](_0x5811bf){if(!_0x5811bf||_0x5811bf[_0x2f82('0x3e')])return Promise['resolve']();{const _0x5eb5a1=this[_0x2f82('0xf9')][_0x2f82('0xa')][_0x2f82('0x9c')](_0x2f82('0x64'));return this['adapter'][_0x2f82('0xfb')]({'channelId':_0x5eb5a1,'revisionId':_0x5811bf['id']})[_0x2f82('0x78')](_0x3684fe=>{_0x5811bf[_0x2f82('0x122')]({'diffData':_0x3684fe[_0x2f82('0x3e')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x2f82('0xa1')](),this[_0x2f82('0xc6')]&&this[_0x2f82('0xc6')][_0x2f82('0x25')](),this[_0x2f82('0xc6')]=null,this[_0x2f82('0x100')][_0x2f82('0xf1')](),this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x5')]({'isUndoable':!0x1},_0x5c78a7=>{for(const _0x3a28d5 of this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0xfc')]['getRootNames']())_0x5c78a7[_0x2f82('0x80')](_0x3a28d5);});}[_0x2f82('0x60')](_0x154a0e){const _0x518061=[],_0x49e5a1=new Map();for(const _0x154df8 of this['editor'][_0x2f82('0x93')]['document']['getRootNames']()){const _0x56f8ec=this[_0x2f82('0xf9')]['editing'][_0x2f82('0x13')][_0x2f82('0xa6')](_0x154df8);if(!_0x56f8ec)continue;const _0x404f08=_0x56f8ec[_0x2f82('0x72')]()[_0x2f82('0xc2')](0x0);_0x404f08&&(_0x518061[_0x2f82('0x9d')](_0x154df8),_0x49e5a1[_0x2f82('0x1b')](_0x154df8,_0x404f08));}return _0x518061['sort']((_0x2cf9ae,_0x225d68)=>{const _0x2cfea3=_0x49e5a1[_0x2f82('0x9c')](_0x2cf9ae),_0x20071c=_0x49e5a1[_0x2f82('0x9c')](_0x225d68);return _0x2cfea3['y']-_0x20071c['y']||_0x2cfea3['x']-_0x20071c['x'];}),(_0x154a0e=_0x154a0e[_0x2f82('0x3f')](_0x37b69e=>_0x518061[_0x2f82('0xcc')](_0x37b69e[_0x2f82('0x119')])))['sort']((_0x430e4d,_0x2ba4f7)=>_0x518061['indexOf'](_0x430e4d[_0x2f82('0x119')])-_0x518061[_0x2f82('0x0')](_0x2ba4f7[_0x2f82('0x119')])),_0x154a0e;}['_makeTape'](_0xc52e6b){const _0x1649fd=Array[_0x2f82('0x2b')](_0xc52e6b[_0x2f82('0x51')])[_0x2f82('0x3f')](([_0x376e10,_0x325013])=>_0x376e10[_0x2f82('0x82')]('revision:')&&!_0x325013[_0x2f82('0x39')]),_0x3a377b=Array[_0x2f82('0x2b')](this[_0x2f82('0xf9')][_0x2f82('0x93')]['createRangeIn'](_0xc52e6b)[_0x2f82('0x2c')]({'singleCharacters':!0x0}));if(0x0!=_0x1649fd[_0x2f82('0x91')])for(const _0x4469ce of _0x3a377b){const [_0xfa60a5,_0x592cd6]=_0x1649fd[0x0],[,_0x378d88,_0x28299d]=_0xfa60a5[_0x2f82('0x14')](':');if(_0x592cd6[_0x2f82('0x2f')]['isEqual'](_0x4469ce[_0x2f82('0x115')])&&_0x1649fd[_0x2f82('0x79')](),(_0x4469ce[_0x2f82('0x4e')][_0x2f82('0x16')](_0x592cd6['start'])||_0x4469ce['previousPosition'][_0x2f82('0x4')](_0x592cd6['start']))&&(_0x2f82('0x11c')==_0x378d88?_0x4469ce[_0x2f82('0x55')]={'userId':_0x28299d}:_0x2f82('0x8c')==_0x378d88&&(_0x4469ce[_0x2f82('0x2')]={'userId':_0x28299d})),0x0==_0x1649fd[_0x2f82('0x91')])break;}return _0x3a377b;}[_0x2f82('0x2a')](_0x30c761){const _0x2103c6=new Map();for(let _0x15a858=0x0;_0x15a858<_0x30c761[_0x2f82('0x91')];_0x15a858++)_0x2f82('0xcf')===_0x30c761[_0x15a858][_0x2f82('0x37')]?(_0x30c761[_0x15a858][_0x2f82('0xc2')]['startIndex']=_0x15a858,_0x30c761[_0x15a858][_0x2f82('0xc2')][_0x2f82('0x49')]=_0x15a858):(_0x2f82('0x9')===_0x30c761[_0x15a858][_0x2f82('0x37')]?_0x30c761[_0x15a858][_0x2f82('0xc2')]['startIndex']=_0x15a858:'elementEnd'===_0x30c761[_0x15a858]['type']&&(_0x30c761[_0x15a858][_0x2f82('0xc2')]['endIndex']=_0x15a858),_0x2103c6['set'](_0x30c761[_0x15a858]['id'],_0x15a858));for(const _0x14f515 of _0x2103c6['values']())_0x2f82('0x9')===_0x30c761[_0x14f515]['type']?_0x30c761[_0x14f515][_0x2f82('0xc2')][_0x2f82('0x49')]=_0x2103c6[_0x2f82('0x9c')](_0x30c761[_0x14f515][_0x2f82('0xfd')]):'elementEnd'===_0x30c761[_0x14f515][_0x2f82('0x37')]&&(_0x30c761[_0x14f515][_0x2f82('0xc2')][_0x2f82('0x62')]=_0x2103c6[_0x2f82('0x9c')](_0x30c761[_0x14f515]['pairId']));}[_0x2f82('0x10c')](_0x5accd2){for(let _0x131d13=0x0;_0x131d13<_0x5accd2[_0x2f82('0x91')];_0x131d13++){if('elementStart'===_0x5accd2[_0x131d13][_0x2f82('0x37')])_0x5accd2[_0x131d13][_0x2f82('0xc2')][_0x2f82('0x62')]=_0x131d13;else{if(_0x2f82('0x65')===_0x5accd2[_0x131d13][_0x2f82('0x37')]){_0x5accd2[_0x131d13]['item'][_0x2f82('0x49')]=_0x131d13;const _0x5a982e=_0x5accd2[_0x131d13]['item'][_0x2f82('0x62')];_0x5accd2[_0x5a982e][_0x2f82('0xfd')]=_0x5accd2[_0x131d13]['id'],_0x5accd2[_0x131d13][_0x2f82('0xfd')]=_0x5accd2[_0x5a982e]['id'];}else _0x5accd2[_0x131d13][_0x2f82('0xc2')][_0x2f82('0x62')]=_0x131d13,_0x5accd2[_0x131d13][_0x2f82('0xc2')]['endIndex']=_0x131d13,_0x5accd2[_0x131d13][_0x2f82('0xfd')]=null;}_0x5accd2[_0x131d13][_0x2f82('0x9a')]||(_0x5accd2[_0x131d13][_0x2f82('0x9a')]=[],_0x5accd2[_0x131d13][_0x2f82('0x99')]=[]);}}[_0x2f82('0xf7')](_0x2da13e,_0xec4fb0){const _0xcaeb22=_0x2da13e[_0x2f82('0x3f')](_0x403aef=>!_0x403aef[_0x2f82('0x55')]);for(let _0x458e9f=0x0;_0x458e9f<_0xec4fb0['length'];_0x458e9f++)_0xec4fb0[_0x458e9f][_0x2f82('0x55')]&&(_0xcaeb22[_0x458e9f][_0x2f82('0x55')]=_0xec4fb0[_0x458e9f][_0x2f82('0x55')]);}['_makeModelFromViewString'](_0x530857){const _0x18ee26=JSON[_0x2f82('0xed')](_0x530857),_0x49bad3=this['editor'][_0x2f82('0x7')][_0x2f82('0x13')]['document'],_0x1dd97f=new _0x544758(_0x49bad3,_0x18ee26[_0x2f82('0x23')](_0x4c9972=>this[_0x2f82('0x86')](_0x4c9972)));return this[_0x2f82('0xf9')]['data'][_0x2f82('0xa9')](_0x1dd97f);}['_getViewObj'](_0x15e96a){const _0x118f89=this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')];if(_0x2f82('0xe3')==typeof _0x15e96a)return new _0x9fedc6(_0x118f89,_0x15e96a);{const _0x2870fc=_0x15e96a['children'][_0x2f82('0x23')](_0x1ca243=>this['_getViewObj'](_0x1ca243));return new(Y[_0x15e96a[(_0x2f82('0x37'))]]||_0x562c47)(_0x118f89,_0x15e96a['name'],_0x15e96a['attributes'],_0x2870fc);}}[_0x2f82('0xec')](_0x4a5bfb,_0x93ba82=null){const _0x1161a5=this[_0x2f82('0xcb')]['getRevision'](_0x4a5bfb),_0x2f9d94=_0x93ba82?this['repository'][_0x2f82('0xfb')](_0x93ba82):null,_0x4c96f1=this[_0x2f82('0xd6')](_0x1161a5,_0x2f9d94),_0x5decf6=_0x4c96f1[_0x4c96f1[_0x2f82('0x91')]-0x1],_0x9e0d16=new Map(),_0x4aaf25={'model':{},'attributes':{},'changes':[]},_0x2e614d=new Set(),_0x3f4dda=new Map();for(let _0xe624e5=_0x4c96f1[_0x2f82('0x91')]-0x1;_0xe624e5>=0x0;_0xe624e5--){const _0x268840=_0x4c96f1[_0xe624e5];for(const _0x205656 of Object[_0x2f82('0xb5')](_0x268840[_0x2f82('0x3e')]))if(_0x268840[_0x2f82('0x3e')][_0x205656][_0x2f82('0xe7')]){const _0x39365d=_0x268840['diffData'][_0x205656][_0x2f82('0xe7')];_0x39365d[_0x2f82('0x8b')]?(_0x2e614d[_0x2f82('0x112')](_0x205656),_0x3f4dda[_0x2f82('0xa8')](_0x205656)&&_0x3f4dda[_0x2f82('0x9c')](_0x205656)[_0x2f82('0x89')]==_0x39365d['userId']?_0x3f4dda[_0x2f82('0x28')](_0x205656):_0x3f4dda[_0x2f82('0x1b')](_0x205656,_0x39365d)):_0x3f4dda[_0x2f82('0xa8')](_0x205656)?(_0x2e614d[_0x2f82('0x28')](_0x205656),_0x3f4dda[_0x2f82('0x28')](_0x205656)):(_0x2e614d[_0x2f82('0x112')](_0x205656),_0x3f4dda['set'](_0x205656,_0x39365d));}else _0x2e614d['add'](_0x205656);}for(const _0x479a04 of _0x2e614d){const _0x378204=_0x3f4dda['has'](_0x479a04)&&!_0x3f4dda['get'](_0x479a04)[_0x2f82('0x8b')];let _0x2a6d9a=_0x378204?_0x4c96f1[_0x2f82('0x91')]-0x1:0x0;const _0x27de78=_0x378204?-0x1:0x1;for(;_0x4c96f1[_0x2a6d9a];){const _0x48318b=_0x4c96f1[_0x2a6d9a];if(_0x48318b[_0x2f82('0x3e')][_0x479a04]){const _0x1f356e=_0x378204?_0x48318b[_0x2f82('0x3e')][_0x479a04]['attributesBefore']:_0x48318b[_0x2f82('0x3e')][_0x479a04][_0x2f82('0xde')];_0x4aaf25[_0x2f82('0x8d')][_0x479a04]=_0x1f356e?_0x871c42(_0x1f356e):{};break;}_0x2a6d9a+=_0x27de78;}}for(const _0x34a856 of _0x4c96f1){_0x34a856[_0x2f82('0x93')]={};for(const _0x1f6119 of _0x34a856['authors'])_0x9e0d16['set'](_0x1f6119['id'],_0x1f6119);for(const _0x77caec of _0x2e614d){const _0x2b6959=_0x34a856[_0x2f82('0x3e')][_0x77caec]?_0x34a856['diffData'][_0x77caec][_0x2f82('0xa7')]:'[]',_0x4a5b30=_0x34a856[_0x2f82('0x3e')][_0x77caec]?_0x34a856[_0x2f82('0x3e')][_0x77caec][_0x2f82('0xba')]:'[]';_0x34a856[_0x2f82('0x93')][_0x77caec]={'insertions':this[_0x2f82('0x110')](_0x2b6959),'deletions':this[_0x2f82('0x110')](_0x4a5b30)};}}for(const _0x53f4d1 of _0x2e614d){let _0x3692d2=null,_0x2a90e1=0x0;const _0x1be5aa=new Map(Array[_0x2f82('0x2b')](_0x1161a5[_0x2f82('0x93')][_0x53f4d1][_0x2f82('0xa7')][_0x2f82('0x51')])[_0x2f82('0x3f')](([_0x368b0f])=>!_0x368b0f[_0x2f82('0x82')](_0x2f82('0x3d'))));let _0x251138=0x0;for(const _0x497be1 of _0x4c96f1){const _0xa2b54e=this[_0x2f82('0x116')](_0x497be1[_0x2f82('0x93')][_0x53f4d1][_0x2f82('0xa7')]);_0x497be1==_0x1161a5?(_0x3692d2=_0xa2b54e,_0x2a90e1=_0x3692d2[_0x2f82('0x91')],_0x3692d2[_0x2f82('0xdb')](_0xf826f7=>{_0xf826f7['id']=_0x251138++;}),this[_0x2f82('0x10c')](_0x3692d2)):this[_0x2f82('0xf7')](_0x3692d2,_0xa2b54e);const _0x1ef2cf=_0x3692d2[_0x2f82('0x3f')](_0x56d157=>!_0x56d157[_0x2f82('0x55')])[_0x2f82('0x23')](_0x1730b3=>_0x1730b3['id']);let _0x1fe6f8=0x0;const _0x3eeccb=this[_0x2f82('0x116')](_0x497be1['model'][_0x53f4d1][_0x2f82('0xba')]);_0x3eeccb[_0x2f82('0xdb')](_0x5145d8=>{_0x5145d8[_0x2f82('0x2')]?_0x5145d8['id']=_0x2a90e1++:_0x5145d8['id']=_0x1ef2cf[_0x1fe6f8++];}),this[_0x2f82('0x10c')](_0x3eeccb),this[_0x2f82('0x8e')](_0x3692d2,_0x2f82('0x55')),this['_setDistance'](_0x3eeccb,_0x2f82('0x2')),_0x497be1==_0x1161a5&&this['_markMarkers'](_0x3692d2,_0x1be5aa),_0x3692d2=this[_0x2f82('0xd1')](_0x3692d2,_0x3eeccb),this[_0x2f82('0x2a')](_0x3692d2),this[_0x2f82('0x8e')](_0x3692d2,_0x2f82('0x2'));}_0x3692d2=_0x3692d2[_0x2f82('0x3f')](_0x39cafc=>!(_0x39cafc[_0x2f82('0x55')]&&_0x39cafc[_0x2f82('0x2')]));const _0x3428fb=new Map(_0x5decf6[_0x2f82('0x93')][_0x53f4d1][_0x2f82('0xba')][_0x2f82('0x51')]),_0x4f2bd5=new Set(_0x1be5aa[_0x2f82('0xb5')]());for(const _0x223b04 of _0x3428fb[_0x2f82('0xb5')]())_0x4f2bd5[_0x2f82('0x28')](_0x223b04);this[_0x2f82('0xbb')](_0x3692d2,_0x4f2bd5),this['_fixObsoleteTags'](_0x3692d2),_0x3692d2=this[_0x2f82('0x123')](_0x3692d2),_0x3692d2=this[_0x2f82('0xdf')](_0x3692d2),_0x3692d2=this[_0x2f82('0x11e')](_0x3692d2);const {root:_0x5dcad3,changes:_0x2d5f4c}=this[_0x2f82('0xad')](_0x3692d2,_0x9e0d16,_0x53f4d1);_0x4aaf25[_0x2f82('0x93')][_0x53f4d1]=_0x5dcad3;const _0x3aa624=_0x3f4dda['get'](_0x53f4d1);if(_0x3aa624){const _0x5a7a15=_0x9e0d16['get'](_0x3aa624[_0x2f82('0x89')]),_0x4f93c3=new _0x112a6e({'author':_0x5a7a15,'type':_0x3aa624[_0x2f82('0x8b')]?_0x2f82('0x112'):_0x2f82('0x8a'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x53f4d1});_0x2d5f4c[_0x2f82('0xae')](_0x4f93c3),_0x4aaf25['attributes'][_0x53f4d1][_0x2f82('0xa3')]=_0x4f93c3['id'];}_0x4aaf25[_0x2f82('0x3a')]=_0x4aaf25['changes'][_0x2f82('0x31')](_0x2d5f4c);}return _0x4aaf25;}[_0x2f82('0xe1')](_0x216d6d,_0x149d5b){for(let _0x2a6cf4=0x0;_0x2a6cf4<_0x216d6d[_0x2f82('0x91')];_0x2a6cf4++)for(const [_0x15b090,_0x2594c4]of _0x149d5b)_0x2594c4['start'][_0x2f82('0x16')](_0x216d6d[_0x2a6cf4][_0x2f82('0x4e')])&&_0x216d6d[_0x2a6cf4]['markersStart'][_0x2f82('0x9d')](_0x15b090),_0x2594c4[_0x2f82('0x2f')][_0x2f82('0x16')](_0x216d6d[_0x2a6cf4][_0x2f82('0x115')])&&_0x216d6d[_0x2a6cf4][_0x2f82('0x99')][_0x2f82('0x9d')](_0x15b090);}[_0x2f82('0xd1')](_0x3ac542,_0x1500ec){let _0x8897d0=[],_0x36c11c=0x0,_0x57cc6d=0x0;for(;_0x36c11c<_0x3ac542[_0x2f82('0x91')]||_0x57cc6d<_0x1500ec[_0x2f82('0x91')];){const _0x56e44c=_0x3ac542[_0x36c11c]||{},_0x3a83c7=_0x1500ec[_0x57cc6d]||{};if(_0x56e44c['id']==_0x3a83c7['id'])_0x36c11c++,_0x57cc6d++,_0x8897d0[_0x2f82('0x9d')](_0x56e44c);else{if(_0x3a83c7[_0x2f82('0x2')]&&_0x56e44c['isAdded']){const {commonTape:_0x561302,iEnd:_0xafb488,jEnd:_0xb490af}=this['_threeWayMerge'](_0x3ac542,_0x36c11c,_0x1500ec,_0x57cc6d);_0x8897d0=_0x8897d0[_0x2f82('0x31')](_0x561302),_0x36c11c=_0xafb488,_0x57cc6d=_0xb490af;}else _0x3a83c7['isRemoved']?(_0x57cc6d++,_0x8897d0['push'](_0x3a83c7)):(_0x36c11c++,_0x8897d0[_0x2f82('0x9d')](_0x56e44c));}}return _0x8897d0;}[_0x2f82('0xbb')](_0x3467fa,_0x43a670){const _0xd23587=[];for(let _0x2a95e0=0x0;_0x2a95e0<_0x3467fa[_0x2f82('0x91')];_0x2a95e0++){for(let _0xf6adb6=0x0;_0xf6adb6<_0x3467fa[_0x2a95e0][_0x2f82('0x9a')][_0x2f82('0x91')];_0xf6adb6++){const _0x416d5b=_0x3467fa[_0x2a95e0]['markersStart'][_0xf6adb6];if(!_0x43a670[_0x2f82('0xa8')](_0x416d5b))continue;const {group:_0x335c3a,type:_0x11d01d,authorId:_0x2eeb62}=_0x58c4f8(_0x416d5b);_0x2f82('0xf2')!=_0x335c3a||_0x2f82('0x11c')!=_0x11d01d&&_0x2f82('0x8c')!=_0x11d01d||(_0xd23587[_0x2f82('0xae')]({'type':_0x11d01d,'name':_0x416d5b,'userId':_0x2eeb62}),_0x3467fa[_0x2a95e0][_0x2f82('0x9a')][_0x2f82('0xb0')](_0xf6adb6,0x1),_0xf6adb6--);}_0x1ce3b8(_0x3467fa[_0x2a95e0]);for(let _0x35bf9c=0x0;_0x35bf9c<_0x3467fa[_0x2a95e0][_0x2f82('0x99')]['length'];_0x35bf9c++){const _0x29e631=_0x3467fa[_0x2a95e0][_0x2f82('0x99')][_0x35bf9c];if(!_0x43a670[_0x2f82('0xa8')](_0x29e631))continue;const {group:_0x1ea600,type:_0x23858f}=_0x58c4f8(_0x29e631);if(_0x2f82('0xf2')!=_0x1ea600||'insertion'!=_0x23858f&&'deletion'!=_0x23858f)continue;_0x3467fa[_0x2a95e0][_0x2f82('0x99')][_0x2f82('0xb0')](_0x35bf9c,0x1),_0x35bf9c--;const _0x32e53e=_0xd23587['findIndex'](_0x41ac34=>_0x41ac34[_0x2f82('0xd7')]==_0x29e631);_0x32e53e>-0x1&&_0xd23587[_0x2f82('0xb0')](_0x32e53e,0x1);}}function _0x58c4f8(_0x40f924){const _0x23bd1d=_0x40f924['split'](':');return{'group':_0x23bd1d[0x0],'type':_0x23bd1d[0x1],'subType':_0x23bd1d[_0x2f82('0x91')]>=0x5?_0x23bd1d[0x2]:null,'id':_0x23bd1d[_0x2f82('0x91')]<0x5?_0x23bd1d[0x2]:_0x23bd1d[0x3],'authorId':_0x23bd1d[_0x2f82('0x91')]<0x5?_0x23bd1d[0x3]:_0x23bd1d[0x4],'markerCount':0x6==_0x23bd1d['length']?_0x23bd1d[0x5]:null};}function _0x1ce3b8(_0x5260da){for(let _0x17752a=0x0;_0x17752a<_0xd23587[_0x2f82('0x91')];_0x17752a++){if(_0x5260da[_0x2f82('0x55')]&&'insertion'==_0xd23587[_0x17752a]['type'])return _0x5260da[_0x2f82('0x10a')]=_0xd23587[_0x17752a],void delete _0x5260da[_0x2f82('0x55')];if(!_0x5260da['isAdded']&&!_0x5260da[_0x2f82('0x2')]&&_0x2f82('0x8c')==_0xd23587[_0x17752a][_0x2f82('0x37')])return void(_0x5260da[_0x2f82('0xfa')]=_0xd23587[_0x17752a]);}}}['_setDistance'](_0x4a406d,_0x2a5698){let _0x277496=0x0,_0x289d2b=!0x1;const _0x3915fe=new Map();for(const _0x4fec23 of _0x4a406d)_0x4fec23[_0x2a5698]?_0x289d2b&&(_0x277496++,_0x289d2b=!0x1):(_0x277496++,_0x289d2b=!0x0),_0x3915fe[_0x2f82('0x1b')](_0x4fec23['id'],_0x277496);for(let _0xb15387=0x0;_0xb15387<_0x4a406d[_0x2f82('0x91')];_0xb15387++){if(_0x2f82('0x2')==_0x2a5698&&_0x4a406d[_0xb15387][_0x2f82('0x55')]||'isAdded'==_0x2a5698&&_0x4a406d[_0xb15387]['isRemoved'])continue;if('text'==_0x4a406d[_0xb15387][_0x2f82('0x37')]){_0x4a406d[_0xb15387][_0x2f82('0xe')]=0x0;continue;}const _0x184631=_0x3915fe[_0x2f82('0x9c')](_0x4a406d[_0xb15387][_0x2f82('0xfd')]),_0xdd1537=_0x3915fe[_0x2f82('0x9c')](_0x4a406d[_0xb15387]['id']);_0x4a406d[_0xb15387]['distance']=_0x184631-_0xdd1537;}}[_0x2f82('0xd6')](_0x5c3b0f,_0x1bc239,_0x5165f6=!0x1){const _0x2444b5=[];let _0x56e947=this[_0x2f82('0xcb')][_0x2f82('0x44')](_0x5c3b0f),_0x52d503=this[_0x2f82('0xcb')][_0x2f82('0x44')](_0x1bc239);for(-0x1==_0x52d503&&(_0x52d503=this[_0x2f82('0xcb')][_0x2f82('0xaa')]['length'],_0x5165f6=!0x1);_0x56e947<_0x52d503;)_0x2444b5[_0x2f82('0x9d')](this[_0x2f82('0xcb')][_0x2f82('0xfb')](_0x56e947)),_0x56e947++;return _0x5165f6&&_0x2444b5[_0x2f82('0x9d')](this[_0x2f82('0xcb')][_0x2f82('0xfb')](_0x56e947)),_0x2444b5;}[_0x2f82('0x85')](_0x429ea0,_0x244239,_0x547179,_0x312c36){const _0x431629=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x2e')];let _0x478b21=_0x244239;for(;_0x429ea0[_0x478b21]&&_0x429ea0[_0x478b21][_0x2f82('0x55')];)_0x478b21++;let _0x284129=_0x312c36;for(;_0x547179[_0x284129]&&_0x547179[_0x284129][_0x2f82('0x2')];)_0x284129++;_0x524bc9(_0x429ea0,_0x244239,_0x478b21),_0x524bc9(_0x547179,_0x312c36,_0x284129);const _0x4babef=_0x547179[_0x2f82('0x2d')](_0x312c36,_0x284129)['concat'](_0x429ea0[_0x2f82('0x2d')](_0x244239,_0x478b21));return _0x4babef[_0x2f82('0x5c')]((_0x3f84da,_0x4276d0)=>_0x3f84da['side']!=_0x4276d0[_0x2f82('0xb9')]?_0x3f84da[_0x2f82('0xb9')]-_0x4276d0[_0x2f82('0xb9')]:_0x3f84da[_0x2f82('0x76')]!=_0x4276d0[_0x2f82('0x76')]?_0x3f84da['level']-_0x4276d0['level']:_0x3f84da[_0x2f82('0xe')]!=_0x4276d0[_0x2f82('0xe')]?_0x4276d0[_0x2f82('0xe')]-_0x3f84da['distance']:!!_0x3f84da[_0x2f82('0x55')]!=!!_0x4276d0['isAdded']?-0x1==_0x3f84da['side']||0x0==_0x3f84da['side']?_0x3f84da[_0x2f82('0x55')]?-0x1:0x1:_0x3f84da[_0x2f82('0x55')]?0x1:-0x1:_0x3f84da[_0x2f82('0xe2')]-_0x4276d0[_0x2f82('0xe2')]),{'commonTape':_0x4babef,'iEnd':_0x478b21,'jEnd':_0x284129};function _0x524bc9(_0x3a061f,_0x199496,_0xb49245){let _0x161fba=-0x1,_0x67dbb4=Number[_0x2f82('0x52')],_0x3ec7b5=!0x0;for(let _0x394cda=_0x199496;_0x394cda<_0xb49245;_0x394cda++)if(_0x431629['isInline'](_0x3a061f[_0x394cda][_0x2f82('0xc2')])||(_0x3ec7b5=!0x1),_0x3a061f[_0x394cda]['item'][_0x2f82('0x62')]<_0x199496&&(_0x161fba=_0x394cda),_0x3a061f[_0x394cda][_0x2f82('0xc2')][_0x2f82('0x49')]>=_0xb49245){_0x67dbb4=_0x394cda;break;}_0x3ec7b5&&(_0x161fba=_0xb49245-0x1);for(let _0x4d346e=_0x199496;_0x4d346e<_0xb49245;_0x4d346e++)_0x3a061f[_0x4d346e][_0x2f82('0xb9')]=_0x4d346e<=_0x161fba?-0x1:_0x4d346e<_0x67dbb4?0x0:0x1,_0x3a061f[_0x4d346e][_0x2f82('0xe2')]=_0x4d346e;let _0x204eec=0x0;for(let _0x1942be=_0x199496;_0x1942be<=_0x161fba;_0x1942be++)0x0==_0x3a061f[_0x1942be][_0x2f82('0xe')]?_0x3a061f[_0x1942be][_0x2f82('0x76')]=_0x204eec:(_0x204eec++,_0x3a061f[_0x1942be][_0x2f82('0x76')]=_0x204eec,_0x204eec++);for(let _0x258782=_0x199496;_0x258782<_0xb49245;_0x258782++)0x0==_0x3a061f[_0x258782]['side']&&(_0x3a061f[_0x258782][_0x2f82('0x76')]=_0x204eec);_0x204eec=0x0;for(let _0x3d4916=_0xb49245-0x1;_0x3d4916>=_0x67dbb4;_0x3d4916--)0x0==_0x3a061f[_0x3d4916][_0x2f82('0xe')]?_0x3a061f[_0x3d4916][_0x2f82('0x76')]=_0x204eec:(_0x204eec--,_0x3a061f[_0x3d4916][_0x2f82('0x76')]=_0x204eec,_0x204eec--);}}[_0x2f82('0x71')](_0x1c7f47){const _0x11062c=new Map(),_0x70c7f8=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x2e')];for(let _0x44c391=0x1;_0x44c391<_0x1c7f47[_0x2f82('0x91')];_0x44c391++){let _0x5a6321,_0x2f7c03,_0x2c29e0;const _0x4d2f91=_0x1c7f47[_0x44c391],_0x599c6c=_0x1c7f47[_0x44c391-0x1];if('text'==_0x4d2f91[_0x2f82('0x37')])continue;if(_0x4d2f91[_0x2f82('0x37')]!=_0x599c6c[_0x2f82('0x37')])continue;if(!_0x70c7f8[_0x2f82('0x6c')](_0x599c6c['item'])||_0x70c7f8[_0x2f82('0x45')](_0x599c6c[_0x2f82('0xc2')]))continue;if(!_0x70c7f8[_0x2f82('0x6c')](_0x4d2f91[_0x2f82('0xc2')])||_0x70c7f8[_0x2f82('0x45')](_0x4d2f91['item']))continue;if((_0x1c7f47[_0x44c391]['isAdded']||_0x1c7f47[_0x44c391]['isAddSuggestion'])&&_0x1c7f47[_0x44c391-0x1][_0x2f82('0x2')])_0x5a6321=_0x1c7f47[_0x44c391],_0x2f7c03=_0x1c7f47[_0x44c391-0x1],_0x2c29e0=_0x44c391-0x1;else{if(!_0x1c7f47[_0x44c391][_0x2f82('0x2')]||!_0x1c7f47[_0x44c391-0x1][_0x2f82('0x55')]&&!_0x1c7f47[_0x44c391-0x1]['isAddSuggestion'])continue;_0x5a6321=_0x1c7f47[_0x44c391-0x1],_0x2f7c03=_0x1c7f47[_0x44c391],_0x2c29e0=_0x44c391;}const _0x4c7524=_0x5a6321[_0x2f82('0x76')]==_0x2f7c03[_0x2f82('0x76')],_0xa627e7=Math[_0x2f82('0x4a')](_0x5a6321[_0x2f82('0x76')])<Math[_0x2f82('0x4a')](_0x2f7c03[_0x2f82('0x76')])&&0x0==_0x2f7c03[_0x2f82('0xe')];(_0x4c7524||_0xa627e7)&&(_0x11062c[_0x2f82('0x1b')](_0x2f7c03['id'],_0x5a6321['id']),_0x1c7f47[_0x2f82('0xb0')](_0x2c29e0,0x1),_0x44c391--,_0x5a6321[_0x2f82('0x55')]=!0x1);}for(let _0x323e6d=0x0;_0x323e6d<_0x1c7f47[_0x2f82('0x91')];_0x323e6d++)_0x11062c[_0x2f82('0xa8')](_0x1c7f47[_0x323e6d][_0x2f82('0xfd')])&&(_0x1c7f47[_0x323e6d][_0x2f82('0xfd')]=_0x11062c[_0x2f82('0x9c')](_0x1c7f47[_0x323e6d]['pairId']));}[_0x2f82('0x123')](_0x34b04e){const _0x1dbe2a=new Set(_0x34b04e[_0x2f82('0x23')](_0x2007ff=>_0x2007ff['id']));for(let _0x53caf6=0x0;_0x53caf6<_0x34b04e['length'];_0x53caf6++)_0x1dbe2a[_0x2f82('0xa8')](_0x34b04e[_0x53caf6][_0x2f82('0xfd')])||0x0==_0x34b04e[_0x53caf6][_0x2f82('0xe')]||(_0x34b04e[_0x53caf6]['isIncorrect']=!0x0);return _0x34b04e[_0x2f82('0x3f')](_0x22a661=>!_0x22a661['isIncorrect']);}[_0x2f82('0xdf')](_0x273550){const _0x17eee4=new Set();for(let _0x9406a0=0x0;_0x9406a0<_0x273550[_0x2f82('0x91')];_0x9406a0++){if(_0x17eee4['has'](_0x273550[_0x9406a0]['id'])&&_0x273550[_0x9406a0][_0x2f82('0x2')]&&(_0x273550[_0x9406a0][_0x2f82('0x21')]=!0x0),_0x273550[_0x9406a0][_0x2f82('0x21')])continue;if(0x0==_0x273550[_0x9406a0]['distance'])continue;if(_0x2f82('0x9')!=_0x273550[_0x9406a0][_0x2f82('0x37')])continue;if(null==_0x273550[_0x9406a0][_0x2f82('0xfd')])continue;let _0x413465=_0x9406a0+0x1,_0x408ef3=0x0;for(;_0x273550[_0x413465]['id']!=_0x273550[_0x9406a0][_0x2f82('0xfd')];)_0x2f82('0x9')==_0x273550[_0x413465][_0x2f82('0x37')]?_0x408ef3++:_0x2f82('0x65')==_0x273550[_0x413465][_0x2f82('0x37')]&&_0x408ef3--,_0x413465++;if(0x0!=_0x408ef3){if(_0x273550[_0x9406a0][_0x2f82('0x2')])_0x273550[_0x9406a0][_0x2f82('0x21')]=!0x0;else for(;_0x413465!=_0x9406a0;)_0x273550[_0x413465]['isRemoved']&&0x0!=_0x273550[_0x413465][_0x2f82('0xe')]&&(_0x273550[_0x413465]['isIncorrect']=!0x0,_0x17eee4['add'](_0x273550[_0x413465]['pairId'])),_0x413465--;}}return _0x273550[_0x2f82('0x3f')](_0x3e7102=>!_0x3e7102[_0x2f82('0x21')]);}['_removeUnsupportedChanges'](_0x66fcf8){const _0x202887=this[_0x2f82('0xf9')][_0x2f82('0x93')]['schema'];for(let _0x45b350=0x0;_0x45b350<_0x66fcf8[_0x2f82('0x91')];_0x45b350++){if(!(_0x66fcf8[_0x45b350]['isAdded']||_0x66fcf8[_0x45b350][_0x2f82('0x10a')]||_0x66fcf8[_0x45b350][_0x2f82('0x2')]||_0x66fcf8[_0x45b350][_0x2f82('0xfa')]))continue;if(0x0==_0x66fcf8[_0x45b350][_0x2f82('0xe')])continue;const _0x2d2fc7=_0x66fcf8[_0x45b350][_0x2f82('0xc2')];_0x202887['isBlock'](_0x2d2fc7)||_0x202887['isLimit'](_0x2d2fc7)||(_0x66fcf8[_0x45b350][_0x2f82('0x55')]&&delete _0x66fcf8[_0x45b350][_0x2f82('0x55')],_0x66fcf8[_0x45b350]['isAddSuggestion']&&delete _0x66fcf8[_0x45b350][_0x2f82('0x10a')],_0x66fcf8[_0x45b350]['isRemoveSuggestion']&&delete _0x66fcf8[_0x45b350][_0x2f82('0xfa')],_0x66fcf8[_0x45b350][_0x2f82('0x2')]&&(_0x66fcf8[_0x45b350][_0x2f82('0x21')]=!0x0));}return _0x66fcf8[_0x2f82('0x3f')](_0x5204aa=>!_0x5204aa['isIncorrect']);}['_makeModelFromTape'](_0x44dcb1,_0x4374a7,_0x2c39fb){const _0x12b982=new _0x4e1681(),_0x4c6b21=[],_0x2eebac=new Map(),_0x3c8abe=this[_0x2f82('0xf9')][_0x2f82('0x93')],_0x5af9aa=_0x3c8abe[_0x2f82('0x2e')],_0x126bfe=[_0x12b982],_0x5640f1={},_0x4c8941={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4208b7=null;const _0x3fd4a4=[0x0];for(let _0x5c292d=0x0;_0x5c292d<_0x44dcb1[_0x2f82('0x91')];_0x5c292d++){let _0xa80214,_0x573ea8;if('elementStart'===_0x44dcb1[_0x5c292d][_0x2f82('0x37')]){_0xa80214=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4);const _0x4ec63e=new _0x1f608f(_0x44dcb1[_0x5c292d]['item'][_0x2f82('0xd7')],_0x44dcb1[_0x5c292d]['item'][_0x2f82('0x97')]());_0x126bfe[0x0][_0x2f82('0x58')](_0x4ec63e),_0x3fd4a4[_0x2f82('0x9d')](0x0),_0x126bfe[_0x2f82('0xae')](_0x4ec63e),_0x573ea8=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4),_0x4208b7=null;}else{if(_0x2f82('0x65')===_0x44dcb1[_0x5c292d][_0x2f82('0x37')])_0x126bfe['shift'](),_0xa80214=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4),_0x3fd4a4[_0x2f82('0xc3')](),_0x3fd4a4[_0x3fd4a4[_0x2f82('0x91')]-0x1]++,_0x573ea8=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4),_0x4208b7=null;else{if(_0xa80214=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4),_0x4208b7&&_0x283ac3(_0x4208b7,_0x44dcb1[_0x5c292d][_0x2f82('0xc2')]))_0x4208b7['_data']+=_0x44dcb1[_0x5c292d]['item'][_0x2f82('0xd5')];else{const _0x16e10e=new _0x2f2a4a(_0x44dcb1[_0x5c292d]['item'][_0x2f82('0xd5')],_0x44dcb1[_0x5c292d][_0x2f82('0xc2')]['getAttributes']());_0x126bfe[0x0][_0x2f82('0x58')](_0x16e10e),_0x4208b7=_0x16e10e;}_0x3fd4a4[_0x3fd4a4[_0x2f82('0x91')]-0x1]+=_0x44dcb1[_0x5c292d][_0x2f82('0xc2')][_0x2f82('0xf6')],_0x573ea8=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4);}}for(const _0x91c170 of _0x44dcb1[_0x5c292d][_0x2f82('0x9a')])_0x2eebac[_0x2f82('0x1b')](_0x91c170,{'start':_0xa80214,'end':null});_0x41f22a(_0x2f82('0xfa'),_0x5c292d,_0xa80214,_0x573ea8),_0x41f22a(_0x2f82('0x10a'),_0x5c292d,_0xa80214,_0x573ea8),_0x41f22a(_0x2f82('0x2'),_0x5c292d,_0xa80214,_0x573ea8),_0x41f22a('isAdded',_0x5c292d,_0xa80214,_0x573ea8);for(const _0x12d2f2 of _0x44dcb1[_0x5c292d][_0x2f82('0x99')]){_0x2eebac['get'](_0x12d2f2)['end']=_0x573ea8;}}for(const [_0x46af31,_0xb84992]of _0x2eebac){const _0x3dff3f=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x10b')](_0xb84992[_0x2f82('0x6e')],_0xb84992['end']);_0x12b982['markers']['set'](_0x46af31,_0x3dff3f);}return _0x4c6b21['sort']((_0x578894,_0x3977fd)=>{const _0x2440f7=_0x12b982[_0x2f82('0x51')][_0x2f82('0x9c')]('revision:'+_0x578894['id']),_0x29039a=_0x12b982[_0x2f82('0x51')][_0x2f82('0x9c')]('revision:'+_0x3977fd['id']);return _0x2440f7['start'][_0x2f82('0x1f')](_0x29039a['start'])?-0x1:_0x2440f7['start'][_0x2f82('0x4')](_0x29039a[_0x2f82('0x6e')])?0x1:_0x2440f7[_0x2f82('0x2f')][_0x2f82('0x1f')](_0x29039a['end'])?-0x1:_0x2440f7[_0x2f82('0x2f')][_0x2f82('0x4')](_0x29039a[_0x2f82('0x2f')])?0x1:_0x2f82('0x112')===_0x578894[_0x2f82('0x37')]?-0x1:0x1;}),{'root':_0x12b982,'changes':_0x4c6b21};function _0x41f22a(_0x254aae,_0x57888e,_0x12f856,_0x38c29f){const _0x5dc648=!!_0x44dcb1[_0x57888e][_0x254aae],_0x1ba2b3=_0x5dc648?_0x44dcb1[_0x57888e][_0x254aae][_0x2f82('0x89')]:null,_0x537d59=_0x57888e===_0x44dcb1[_0x2f82('0x91')]-0x1,_0x478cac=_0x4c8941[_0x254aae][0x0],_0x2ad59f=_0x5af9aa[_0x2f82('0x50')](_0x44dcb1[_0x57888e][_0x2f82('0xc2')]);!_0x5640f1[_0x254aae]&&_0x5dc648?_0x5640f1[_0x254aae]={'start':_0x12f856,'tapeItem':_0x44dcb1[_0x57888e],'userId':_0x1ba2b3,'type':_0x254aae}:_0x5640f1[_0x254aae]&&!_0x5dc648?(_0x5640f1[_0x254aae][_0x2f82('0x2f')]=_0x12f856,_0x49a213(_0x5640f1[_0x254aae]),_0x5640f1[_0x254aae]=null):_0x5640f1[_0x254aae]&&_0x5dc648&&_0x5640f1[_0x254aae][_0x2f82('0x89')]!==_0x1ba2b3&&(_0x5640f1[_0x254aae][_0x2f82('0x2f')]=_0x12f856,_0x478cac&&_0x478cac[_0x2f82('0x89')]===_0x5640f1[_0x254aae][_0x2f82('0x89')]||_0x49a213(_0x5640f1[_0x254aae]),_0x5640f1[_0x254aae]={'start':_0x12f856,'tapeItem':_0x44dcb1[_0x57888e],'userId':_0x1ba2b3,'type':_0x254aae}),_0x5640f1[_0x254aae]&&_0x2ad59f&&(_0x2f82('0x9')!==_0x44dcb1[_0x57888e]['type']||_0x478cac&&_0x478cac[_0x2f82('0x89')]===_0x1ba2b3||_0x4c8941[_0x254aae][_0x2f82('0xae')]({'userId':_0x1ba2b3,'object':_0x44dcb1[_0x57888e][_0x2f82('0xc2')],'change':_0x5640f1[_0x254aae]}),'elementEnd'===_0x44dcb1[_0x57888e]['type']&&_0x478cac&&_0x478cac[_0x2f82('0xc4')]===_0x44dcb1[_0x57888e]['item']&&(_0x4c8941[_0x254aae][_0x2f82('0x79')](),_0x5640f1[_0x254aae]=_0x478cac[_0x2f82('0xd0')])),_0x5640f1[_0x254aae]&&_0x537d59&&(_0x5640f1[_0x254aae][_0x2f82('0x2f')]=_0x38c29f,_0x49a213(_0x5640f1[_0x254aae]),_0x5640f1[_0x254aae]=null);}function _0x49a213({start:_0x5208c3,end:_0x2299c5,tapeItem:_0x378347,userId:_0x28d0d4,type:_0x3f2d42}){const _0x41d325=_0x378347[_0x2f82('0xc2')],_0x5c09c5=_0x3c8abe[_0x2f82('0x2e')][_0x2f82('0x6c')](_0x41d325)&&!_0x3c8abe['schema'][_0x2f82('0x45')](_0x41d325),_0x29239b=_0x5208c3[_0x2f82('0x10e')]==_0x2299c5[_0x2f82('0x3c')]&&_0x2299c5[_0x2f82('0xd4')];if(_0x5c09c5&&_0x29239b)return;const _0x8b3fd4=_0x3c8abe['createRange'](_0x5208c3,_0x2299c5),_0x2559aa=_0x4374a7[_0x2f82('0x9c')](_0x28d0d4),_0x21a2cd=new _0x112a6e({'author':_0x2559aa,'type':_0x2f82('0x55')==_0x3f2d42||'isAddSuggestion'==_0x3f2d42?_0x2f82('0x112'):_0x2f82('0x8a'),'data':{'isSuggestion':_0x2f82('0x10a')==_0x3f2d42||_0x2f82('0xfa')==_0x3f2d42},'createdAt':new Date(),'rootName':_0x2c39fb});_0x4c6b21[_0x2f82('0x9d')](_0x21a2cd),_0x12b982[_0x2f82('0x51')][_0x2f82('0x1b')]('revision:'+_0x21a2cd['id'],_0x8b3fd4);}function _0x283ac3(_0x288c8b,_0x21f113){const _0x480a49=_0x288c8b['getAttributes'](),_0xd3ecc3=_0x21f113['getAttributes']();for(const _0x46e54e of _0x480a49){if(_0x46e54e[0x1]!==_0x21f113[_0x2f82('0xee')](_0x46e54e[0x0]))return!0x1;_0xd3ecc3[_0x2f82('0x120')]();}return _0xd3ecc3[_0x2f82('0x120')]()['done'];}}['_setConversion'](){this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xc0'))[_0x2f82('0xa5')]({'view':_0x2f82('0x18')}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xbf'))[_0x2f82('0x8')]({'model':_0x2f82('0x18'),'view':_0x1fbb18=>{const _0xd72b41=_0x1fbb18['markerName'][_0x2f82('0x14')](':')[0x1],_0x927894=this[_0x2f82('0xd2')](_0xd72b41);if(!_0x927894)return null;const _0x5836a9='add'==_0x927894['type']?_0x2f82('0x11c'):_0x2f82('0x8c'),_0x40262e=[_0x2f82('0xb3'),_0x2f82('0x107')+_0x5836a9];return _0x927894[_0x2f82('0xd5')]['isSuggestion']&&_0x40262e[_0x2f82('0x9d')](_0x2f82('0x107')+_0x5836a9+_0x2f82('0xce')),this[_0x2f82('0x7f')]==_0x927894&&_0x40262e[_0x2f82('0x9d')](_0x2f82('0xcd')),{'classes':_0x40262e,'attributes':{'data-change-id':_0xd72b41}};}}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xc0'))['add'](_0x36d046=>{_0x36d046['on']('element:pre',(_0x4b5f63,_0x39f8e2,_0x5a8676)=>{const _0x3f3f5f=_0x39f8e2[_0x2f82('0x6d')][_0x2f82('0x108')](0x0);if(!_0x3f3f5f||!_0x3f3f5f['is'](_0x2f82('0xca'),_0x2f82('0x26')))return;if(!_0x5a8676[_0x2f82('0x1d')][_0x2f82('0x22')](_0x3f3f5f,{'attributes':[_0x2f82('0x35'),_0x2f82('0x94')]}))return;const _0xc190e6=_0x39f8e2[_0x2f82('0x104')][_0x2f82('0x6e')][_0x2f82('0x10e')];_0x5a8676[_0x2f82('0x88')][_0x2f82('0x43')](_0x2f82('0x35'),_0x3f3f5f[_0x2f82('0xee')](_0x2f82('0x35')),_0xc190e6),_0x5a8676[_0x2f82('0x88')]['setAttribute'](_0x2f82('0x94'),_0x3f3f5f[_0x2f82('0xee')](_0x2f82('0x94')),_0xc190e6);},{'priority':_0x2f82('0x61')});}),this['editor'][_0x2f82('0x1e')]['for']('upcast')[_0x2f82('0x112')](_0x333503=>{_0x333503['on'](_0x2f82('0xca'),(_0x4ac6bf,_0x23f50e,_0x43321b)=>{if(!_0x43321b[_0x2f82('0x1d')][_0x2f82('0x22')](_0x23f50e[_0x2f82('0x6d')],{'attributes':['vid_start',_0x2f82('0x94')]}))return;if(_0x23f50e[_0x2f82('0x104')][_0x2f82('0x39')])return;const _0x5e36d4=_0x23f50e[_0x2f82('0x104')][_0x2f82('0x6e')]['nodeAfter'];_0x5e36d4['hasAttribute'](_0x2f82('0x35'))||_0x5e36d4[_0x2f82('0xb1')]('vid')||(_0x43321b[_0x2f82('0x88')][_0x2f82('0x43')]('vid_start',_0x23f50e['viewItem']['getAttribute'](_0x2f82('0x35')),_0x5e36d4),_0x43321b[_0x2f82('0x88')][_0x2f82('0x43')](_0x2f82('0x94'),_0x23f50e[_0x2f82('0x6d')]['getAttribute'](_0x2f82('0x94')),_0x5e36d4));},{'priority':_0x2f82('0x61')});}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')]('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x2f82('0x4b'),'value':_0x313cca=>_0x313cca[_0x2f82('0xee')](_0x2f82('0x4b'))}}),this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x2e')]['on'](_0x2f82('0x5b'),(_0x3258b6,[,_0x50dc15])=>{['vid_start',_0x2f82('0x94'),'vid'][_0x2f82('0xcc')](_0x50dc15)&&(_0x3258b6[_0x2f82('0x17')]=!0x0,_0x3258b6[_0x2f82('0xa2')]());},{'priority':'highest'}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xb4'))[_0x2f82('0x112')](_0x196587=>{_0x196587['on'](_0x2f82('0x47'),(_0x271694,_0x42b848,_0x319a1e)=>{if('\x20'!=_0x42b848[_0x2f82('0xc2')][_0x2f82('0xd5')]||_0x42b848[_0x2f82('0xc2')][_0x2f82('0x3c')][_0x2f82('0x9b')]>0x1)return;if(!_0x319a1e[_0x2f82('0x1d')]['consume'](_0x42b848[_0x2f82('0xc2')],_0x271694[_0x2f82('0xd7')]))return;const _0x54fb4b=_0x319a1e[_0x2f82('0x88')],_0x384acd=_0x319a1e['mapper']['toViewRange'](_0x42b848[_0x2f82('0xdd')]);_0x54fb4b[_0x2f82('0xef')](_0x384acd,_0x54fb4b[_0x2f82('0x95')]('span'));});}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')]('dataDowncast')['markerToData']({'model':_0x2f82('0x18')}),this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x15')]['on']('addMarker:revision',function(_0x4e181e){const _0x4556ae=_0x4e181e[_0x2f82('0x70')][_0x2f82('0x9c')](_0x2f82('0xf'));return(_0x16139a,_0x3d6c1c,_0x5f4483)=>{const _0x334b18=_0x3d6c1c['markerName']['split'](':')[0x1],_0x1aed96=_0x4556ae[_0x2f82('0xd2')](_0x334b18);if(!_0x1aed96)return null;const _0x40491c=_0x2f82('0x112')==_0x1aed96[_0x2f82('0x37')]?'split':_0x2f82('0x117');if(!_0x5f4483[_0x2f82('0x1d')][_0x2f82('0xc5')](_0x3d6c1c[_0x2f82('0xb2')],_0x16139a[_0x2f82('0xd7')]))return;const _0x3c74a6=_0x3d6c1c[_0x2f82('0xb2')][_0x2f82('0x2c')](),_0x3aa5a6=_0x3d6c1c[_0x2f82('0xb2')][_0x2f82('0x6e')],_0x14932c=_0x4e181e['model'][_0x2f82('0x2e')];let _0x583fdc=null,_0x2e0448=null,_0x4ec761=!0x1,_0x3543b0=!0x1;for(const _0x211a1f of _0x3c74a6){const _0x2e8d8f=_0x211a1f[_0x2f82('0xc2')];_0x4ec761=_0x4ec761||_0x14932c[_0x2f82('0x20')](_0x2e8d8f);const _0x293099=_0x5f4483['mapper'][_0x2f82('0x40')](_0x2e8d8f);if(_0x293099&&_0x293099['getCustomProperty'](_0x2f82('0x11b')))return;_0x2f82('0x65')==_0x211a1f[_0x2f82('0x37')]&&(_0x14932c[_0x2f82('0x6c')](_0x2e8d8f)&&!_0x14932c[_0x2f82('0x45')](_0x2e8d8f)&&(_0x2e8d8f['nextSibling']||_0x3aa5a6['isAtEnd']?_0x583fdc&&_0x583fdc[_0x2f82('0x3c')]==_0x2e8d8f||(_0x583fdc=_0x2e8d8f,_0x5905c1(_0x211a1f[_0x2f82('0x4e')]),_0x3543b0=!0x0):_0x2e0448=_0x2e0448||_0x211a1f[_0x2f82('0x4e')]));}function _0x5905c1(_0x41f960){const _0x4e1629=_0x5f4483['writer'][_0x2f82('0x9f')]('span',{'class':_0x2f82('0x107')+_0x40491c}),_0x2a7066=_0x5f4483[_0x2f82('0x53')][_0x2f82('0x10')](_0x41f960);_0x1aed96['data'][_0x2f82('0x36')]&&_0x5f4483[_0x2f82('0x88')][_0x2f82('0x5d')](_0x2f82('0x107')+_0x40491c+_0x2f82('0xce'),_0x4e1629),_0x4556ae[_0x2f82('0x7f')]==_0x1aed96&&_0x5f4483['writer'][_0x2f82('0x5d')]('ck-suggestion-marker--active',_0x4e1629),_0x5f4483[_0x2f82('0x88')][_0x2f82('0xc7')](_0x2a7066,_0x4e1629),_0x5f4483[_0x2f82('0x53')][_0x2f82('0x7e')](_0x4e1629,_0x3d6c1c[_0x2f82('0xd9')]);}_0x4ec761||_0x3543b0||!_0x2e0448||_0x5905c1(_0x2e0448);};}(this[_0x2f82('0xf9')]),{'priority':_0x2f82('0x3b')}),this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x15')]['on']('removeMarker:revision',(_0x3b06da,_0x5d27a2,_0x31bd05)=>{const _0x359844=_0x31bd05[_0x2f82('0x53')][_0x2f82('0x29')](_0x5d27a2[_0x2f82('0xd9')]);if(_0x359844)for(const _0x541d9a of _0x359844)(_0x541d9a[_0x2f82('0xb8')](_0x2f82('0x74'))||_0x541d9a['hasClass'](_0x2f82('0xf3')))&&(_0x31bd05[_0x2f82('0x53')][_0x2f82('0x33')](_0x541d9a,_0x5d27a2[_0x2f82('0xd9')]),_0x31bd05[_0x2f82('0x88')][_0x2f82('0x8a')](_0x541d9a));},{'priority':'high'}),this[_0x2f82('0xf9')][_0x2f82('0x7')]['downcastDispatcher']['on'](_0x2f82('0x30'),(_0x5d4f81,_0x51998c,_0x4596ce)=>{const _0x2e2684=_0x51998c['markerName'][_0x2f82('0x14')](':')[0x1],_0x5e0e82=this[_0x2f82('0xd2')](_0x2e2684);if(!_0x5e0e82)return null;const _0x32fe8e=_0x2f82('0x112')==_0x5e0e82[_0x2f82('0x37')]?_0x2f82('0x14'):_0x2f82('0x117');if(_0x4596ce['consumable'][_0x2f82('0xc5')](_0x51998c[_0x2f82('0xb2')],_0x5d4f81[_0x2f82('0xd7')]))for(const _0x4f09c4 of _0x51998c['markerRange'][_0x2f82('0x114')]()){if(!_0x4f09c4['is'](_0x2f82('0xca'),_0x2f82('0xc')))continue;const _0x417a53=_0x4596ce[_0x2f82('0x88')][_0x2f82('0x9f')](_0x2f82('0x96'),{'class':_0x2f82('0x107')+_0x32fe8e}),_0xf92f72=_0x4596ce['mapper'][_0x2f82('0x10')](this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x34')](_0x4f09c4));_0x5e0e82[_0x2f82('0xd5')][_0x2f82('0x36')]&&_0x4596ce[_0x2f82('0x88')]['addClass'](_0x2f82('0x107')+_0x32fe8e+_0x2f82('0xce'),_0x417a53),this[_0x2f82('0x7f')]==_0x5e0e82&&_0x4596ce[_0x2f82('0x88')]['addClass'](_0x2f82('0xcd'),_0x417a53),_0x4596ce[_0x2f82('0x88')][_0x2f82('0xc7')](_0xf92f72,_0x417a53),_0x4596ce[_0x2f82('0x53')][_0x2f82('0x7e')](_0x417a53,_0x51998c[_0x2f82('0xd9')]);}},{'priority':_0x2f82('0x3b')}),this[_0x2f82('0xf9')]['model'][_0x2f82('0xfc')]['on'](_0x2f82('0xd0'),()=>{this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')]['change'](_0x183212=>{for(const _0x131662 of this['editor'][_0x2f82('0x93')]['document'][_0x2f82('0xe8')]()){const _0xfa4e61=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0xfc')]['getRoot'](_0x131662),_0x27646d=this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')][_0x2f82('0x5a')](_0x131662);if(_0x27646d){const _0x185691=_0xfa4e61[_0x2f82('0xee')](_0x2f82('0xa3'));if(_0x183212['removeAttribute'](_0x2f82('0xf4'),_0x27646d),_0x183212[_0x2f82('0x75')](_0x2f82('0x7a'),_0x27646d),_0x183212['removeClass']('ck-revision-history-root-remove',_0x27646d),_0x183212['removeClass'](_0x2f82('0x41'),_0x27646d),_0x185691){const _0x2b54d6=this['_getChangeFromId'](_0x185691);if(!_0x2b54d6)return null;_0x183212[_0x2f82('0x43')](_0x2f82('0xf4'),_0x185691,_0x27646d),_0x183212[_0x2f82('0x5d')](_0x2f82('0xbd')+_0x2b54d6[_0x2f82('0x37')],_0x27646d),this[_0x2f82('0x7f')]==_0x2b54d6&&_0x183212[_0x2f82('0x5d')](_0x2f82('0x41'),_0x27646d);}}}});}),this[_0x2f82('0xf9')]['conversion'][_0x2f82('0xda')](_0x2f82('0xc0'))[_0x2f82('0xa5')]({'view':_0x2f82('0x6'),'model':_0x3c1335=>_0x2f82('0x4d')+_0x3c1335,'converterPriority':_0x2f82('0x12')}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xc0'))[_0x2f82('0xa5')]({'view':_0x2f82('0x109'),'model':_0x4fceed=>_0x2f82('0xa4')+_0x4fceed,'converterPriority':_0x2f82('0x12')}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xb4'))[_0x2f82('0x68')]({'model':_0x2f82('0xf2'),'view':_0x4ea899=>({'name':_0x2f82('0x42')+_0x4ea899,'group':_0x2f82('0xf2')}),'converterPriority':_0x2f82('0x12')}),this[_0x2f82('0xf9')]['conversion'][_0x2f82('0xda')](_0x2f82('0xbf'))[_0x2f82('0x8')]({'model':'revision-suggestion','view':_0x61e92e=>{const _0x311343=_0x61e92e[_0x2f82('0xd9')][_0x2f82('0x14')](':')[0x1];return'insertion'!=_0x311343&&_0x2f82('0x8c')!=_0x311343?null:{'classes':[_0x2f82('0xb6'),_0x2f82('0xdc')+_0x311343]};}}),this[_0x2f82('0xf9')]['editing'][_0x2f82('0x15')]['on'](_0x2f82('0xea'),Z(this['editor'],_0x2f82('0x117')),{'priority':'high'}),this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x15')]['on'](_0x2f82('0x11'),Z(this[_0x2f82('0xf9')],_0x2f82('0x14')),{'priority':_0x2f82('0x3b')}),this['editor'][_0x2f82('0x7')]['downcastDispatcher']['on'](_0x2f82('0x1c'),(_0x5c51dc,_0x242b18,_0x57d5d4)=>{const _0x4aba62=_0x57d5d4['mapper']['markerNameToElements'](_0x242b18[_0x2f82('0xd9')]);if(_0x4aba62)for(const _0x235c18 of _0x4aba62)_0x235c18['is'](_0x2f82('0x77'))&&(_0x57d5d4[_0x2f82('0x53')][_0x2f82('0x33')](_0x235c18,_0x242b18[_0x2f82('0xd9')]),_0x57d5d4['writer'][_0x2f82('0x8a')](_0x235c18));},{'priority':_0x2f82('0x3b')});}[_0x2f82('0xd2')](_0x3dff4a){return this[_0x2f82('0x100')][_0x2f82('0x9c')](_0x3dff4a);}[_0x2f82('0xaf')](_0x562d5a){return this['_changeView']&&this[_0x2f82('0xc6')]['destroy'](),this[_0x2f82('0xc6')]=new _0x2e7d64(this[_0x2f82('0xf9')][_0x2f82('0xe6')],_0x562d5a),this[_0x2f82('0xc6')];}[_0x2f82('0xe0')](){this[_0x2f82('0xf9')]['model'][_0x2f82('0xfc')]['selection'][_0x2f82('0xb')](_0x2f82('0x18')),this['on'](_0x2f82('0x10d'),(_0x875d76,_0x25331d,_0x93c154,_0x47c221)=>{_0x47c221&&this[_0x2f82('0x7d')][_0x2f82('0x8a')](_0x47c221),_0x93c154&&(this[_0x2f82('0x7d')][_0x2f82('0x112')]({'view':_0x93c154,'stackId':_0x2f82('0xc8'),'position':{'target':()=>{const _0x430399=this[_0x2f82('0xf9')][_0x2f82('0x7')],_0x4d1b88=this[_0x2f82('0xd2')](_0x93c154[_0x2f82('0x92')]);let _0x51333f;if(_0x4d1b88[_0x2f82('0xd5')][_0x2f82('0xbe')]){const _0x540494=_0x430399[_0x2f82('0x13')][_0x2f82('0xa6')](_0x4d1b88[_0x2f82('0x119')]);_0x51333f=Array[_0x2f82('0x2b')](_0x540494['getClientRects']());}else{const _0x56298b=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x51')][_0x2f82('0x9c')](_0x2f82('0x3d')+_0x93c154[_0x2f82('0x92')]);_0x51333f=Array[_0x2f82('0x2b')](_0x430399['mapper'][_0x2f82('0x29')](_0x56298b[_0x2f82('0xd7')]))['map'](_0x3221d9=>_0x430399[_0x2f82('0x13')]['domConverter'][_0x2f82('0x59')](_0x3221d9))[_0x2f82('0x23')](_0x4209ec=>Array[_0x2f82('0x2b')](_0x4209ec[_0x2f82('0x72')]()))[_0x2f82('0x56')]();}if(!this[_0x2f82('0x6a')])return _0x51333f[0x0];return _0x51333f[_0x2f82('0x73')](_0x25da0a=>_0x25da0a[_0x2f82('0x11d')]-0x3<=this[_0x2f82('0x6a')]['y']&&_0x25da0a[_0x2f82('0xc1')]+0x3>=this[_0x2f82('0x6a')]['y']&&_0x25da0a[_0x2f82('0x8f')]-0x3<=this[_0x2f82('0x6a')]['x']&&_0x25da0a['right']+0x3>=this[_0x2f82('0x6a')]['x'])||_0x51333f[0x0];}}}),this['_balloon']['showStack'](_0x2f82('0xc8')));}),this['on'](_0x2f82('0x6f'),(_0x3441f3,_0x4173af,_0x2320e1,_0x3862bb)=>{this[_0x2f82('0xac')]=_0x2320e1?this[_0x2f82('0xaf')](_0x2320e1):null,this['editor'][_0x2f82('0x93')][_0x2f82('0xd0')](()=>{const _0x5b218b=this['editor'][_0x2f82('0x7')];_0x3862bb&&(_0x3862bb[_0x2f82('0xd5')][_0x2f82('0xbe')]?_0x5b218b['view'][_0x2f82('0xd0')](_0x2cba70=>{_0x2cba70[_0x2f82('0x75')](_0x2f82('0x41'),_0x5b218b[_0x2f82('0x13')][_0x2f82('0xfc')][_0x2f82('0x5a')](_0x3862bb[_0x2f82('0x119')]));}):_0x5b218b[_0x2f82('0x5e')](_0x2f82('0x3d')+_0x3862bb['id'])),_0x2320e1&&(_0x2320e1[_0x2f82('0xd5')][_0x2f82('0xbe')]?_0x5b218b[_0x2f82('0x13')][_0x2f82('0xd0')](_0x3ef66d=>{_0x3ef66d['addClass'](_0x2f82('0x41'),_0x5b218b[_0x2f82('0x13')][_0x2f82('0xfc')]['getRoot'](_0x2320e1['rootName']));}):_0x5b218b['reconvertMarker'](_0x2f82('0x3d')+_0x2320e1['id']));});}),this[_0x2f82('0x48')](this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')],_0x2f82('0xeb'),(_0x57e874,_0x515292)=>{if(this[_0x2f82('0x7f')])return;const _0x3fbaf2=this[_0x2f82('0x10f')](_0x515292[_0x2f82('0xff')]),_0x28d59d=this[_0x2f82('0x100')]['get'](_0x3fbaf2);_0x28d59d?(this[_0x2f82('0x6a')]={'x':_0x515292[_0x2f82('0x111')]['x'],'y':_0x515292[_0x2f82('0x111')]['y']},this[_0x2f82('0xac')]=this[_0x2f82('0xaf')](_0x28d59d)):(this[_0x2f82('0x6a')]=null,this[_0x2f82('0xac')]=null);}),this[_0x2f82('0x48')](this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')],_0x2f82('0xe4'),(_0x50254e,_0x14bd17)=>{const _0x4bb116=this[_0x2f82('0x10f')](_0x14bd17[_0x2f82('0xff')]),_0x134773=this[_0x2f82('0x100')]['get'](_0x4bb116);_0x134773?(this[_0x2f82('0x6a')]={'x':_0x14bd17[_0x2f82('0x111')]['x'],'y':_0x14bd17[_0x2f82('0x111')]['y']},_0x134773===this['activeChange']?this['_balloon'][_0x2f82('0x5f')]():this[_0x2f82('0x7f')]=_0x134773):(this[_0x2f82('0x6a')]=null,this[_0x2f82('0x7f')]=null);});}[_0x2f82('0x10f')](_0x395246){do{const _0x3a99fd=_0x395246[_0x2f82('0xee')](_0x2f82('0xf4'));if(_0x3a99fd)return _0x3a99fd;_0x395246=_0x395246[_0x2f82('0x3c')];}while(_0x395246);return null;}[_0x2f82('0xa1')](){this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0xd0')](_0x477aa5=>{for(const _0x3d9326 of this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x51')])_0x477aa5['removeMarker'](_0x3d9326);});}}function Z(_0x308e7b,_0xc0fbe0){return(_0x303e42,_0x274046,_0x547f97)=>{if(!_0x547f97[_0x2f82('0x1d')][_0x2f82('0xc5')](_0x274046[_0x2f82('0xb2')],_0x303e42['name']))return;const _0x15c91e=_0x274046['markerRange'][_0x2f82('0x2c')](),_0x270d23=_0x274046['markerRange']['start'],_0x12a2bb=_0x308e7b[_0x2f82('0x93')][_0x2f82('0x2e')];let _0x520071=null,_0x29dc68=null,_0xb1766=!0x1,_0x1e9948=!0x1;for(const _0x11a770 of _0x15c91e){const _0x2f9a29=_0x11a770[_0x2f82('0xc2')];_0xb1766=_0xb1766||_0x12a2bb[_0x2f82('0x20')](_0x2f9a29);const _0xe99280=_0x547f97['mapper'][_0x2f82('0x40')](_0x2f9a29);if(_0xe99280&&_0xe99280[_0x2f82('0x4c')]('addHighlight'))return;_0x2f82('0x65')==_0x11a770[_0x2f82('0x37')]&&(_0x12a2bb['isBlock'](_0x2f9a29)&&!_0x12a2bb[_0x2f82('0x45')](_0x2f9a29)&&(_0x2f9a29[_0x2f82('0x69')]||_0x270d23[_0x2f82('0x63')]?_0x520071&&_0x520071[_0x2f82('0x3c')]==_0x2f9a29||(_0x520071=_0x2f9a29,_0x39702f(_0x11a770[_0x2f82('0x4e')]),_0x1e9948=!0x0):_0x29dc68=_0x29dc68||_0x11a770[_0x2f82('0x4e')]));}function _0x39702f(_0x2158c4){const _0x4b7688=_0x547f97['mapper'][_0x2f82('0x10')](_0x2158c4),_0x29c509=_0x547f97[_0x2f82('0x88')]['createUIElement'](_0x2f82('0x96'),{'class':_0x2f82('0xdc')+_0xc0fbe0});_0x547f97[_0x2f82('0x88')][_0x2f82('0xc7')](_0x4b7688,_0x29c509),_0x547f97[_0x2f82('0x53')][_0x2f82('0x7e')](_0x29c509,_0x274046[_0x2f82('0xd9')]);}_0xb1766||_0x1e9948||!_0x29dc68||_0x39702f(_0x29dc68);};}export class RestoreRevisionCommand extends _0x14ce75{constructor(_0x4e67e3){super(_0x4e67e3);const _0x1fa1bb=_0x4e67e3[_0x2f82('0x70')][_0x2f82('0x9c')](d);this[_0x2f82('0xf8')]=!0x1,this[_0x2f82('0x48')](_0x1fa1bb,_0x2f82('0x4f'),()=>this[_0x2f82('0x19')]()),this['listenTo'](_0x1fa1bb,_0x2f82('0x7b'),()=>this[_0x2f82('0x19')]());}[_0x2f82('0x3')](){const _0x3a220e=this[_0x2f82('0xf9')],_0x217fae=_0x3a220e[_0x2f82('0x70')][_0x2f82('0x9c')](d),_0x2d4633=_0x217fae[_0x2f82('0x32')]?_0x217fae[_0x2f82('0x106')]['newRevisionId']:null;_0x3a220e[_0x2f82('0xa')][_0x2f82('0x9c')](_0x2f82('0xd3'))['restoreRevisionCallback'](_0x2d4633);}[_0x2f82('0x19')](){const {isReady:_0x5a91f2,isEnabled:_0x1d5dba}=this[_0x2f82('0xf9')][_0x2f82('0x70')][_0x2f82('0x9c')](d);this[_0x2f82('0x11a')]=_0x5a91f2&&_0x1d5dba;}}export class ShowChangeCommand extends _0x14ce75{constructor(_0x836f53,{direction:_0x2547cf}){super(_0x836f53);const _0x5e4d66=_0x836f53[_0x2f82('0x70')][_0x2f82('0x9c')](d);this[_0x2f82('0xf8')]=!0x1,this[_0x2f82('0x101')]=_0x2f82('0xb7')===_0x2547cf?0x1:-0x1,this[_0x2f82('0x48')](_0x5e4d66,_0x2f82('0x4f'),()=>this[_0x2f82('0x19')]()),this[_0x2f82('0x48')](_0x5e4d66,_0x2f82('0x7b'),()=>this[_0x2f82('0x19')]());}[_0x2f82('0x3')](){const _0x18ffc7=this['editor'],_0xb384c7=_0x18ffc7[_0x2f82('0x70')][_0x2f82('0x9c')](d),{isNavigationMode:_0x629016,currentChangeNumber:_0x2bc8d8}=_0xb384c7;let _0x5dec38;if(_0xb384c7[_0x2f82('0x7f')]=_0x629016?_0xb384c7['diff'][_0x2f82('0x3a')][_0x2f82('0x9c')](_0x2bc8d8+this[_0x2f82('0x101')]):_0xb384c7[_0x2f82('0x106')][_0x2f82('0x3a')][_0x2f82('0xbc')],_0xb384c7[_0x2f82('0x7f')][_0x2f82('0xd5')][_0x2f82('0xbe')])_0x5dec38=_0x18ffc7['editing']['view'][_0x2f82('0xa6')](_0xb384c7[_0x2f82('0x7f')]['rootName']);else{const _0x3e577c=_0x18ffc7[_0x2f82('0x93')][_0x2f82('0x51')][_0x2f82('0x9c')]('revision:'+_0xb384c7[_0x2f82('0x7f')]['id']);_0x5dec38=_0x3ba4c6(_0x18ffc7[_0x2f82('0x7')],_0x3e577c);}_0xf5de76({'target':_0x5dec38,'viewportOffset':0x28});}[_0x2f82('0x19')](){const {isNavigationMode:_0x40fcf3,currentChangeNumber:_0x3d4181,numberOfChanges:_0x530b27,isReady:_0x223668,isEnabled:_0x4d4148}=this[_0x2f82('0xf9')][_0x2f82('0x70')]['get'](d);this[_0x2f82('0x11a')]=!!(_0x4d4148&&_0x223668&&_0x530b27)&&(!_0x40fcf3||(0x1===this[_0x2f82('0x101')]?_0x3d4181<_0x530b27-0x1:_0x3d4181>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe06d=['name','threeVerticalDots','class','bindTemplate','isReady','locale','stopPropagation','bind','children','Compare\x20against\x20selected','button','first','add','_action','isActionsDropdownOpen','listView','ck-revision-history-sidebar__revision__actions','isVisible','Name\x20this\x20revision','execute','source','map','Restore\x20this\x20revision','isEnabled','items','isOpen','action','Show\x20more\x20items','function','model','listenTo','set'];(function(_0x12ba42,_0xe06d8f){const _0x107175=function(_0x134f23){while(--_0x134f23){_0x12ba42['push'](_0x12ba42['shift']());}};_0x107175(++_0xe06d8f);}(_0xe06d,0xb2));const _0x1071=function(_0x12ba42,_0xe06d8f){_0x12ba42=_0x12ba42-0x0;let _0x107175=_0xe06d[_0x12ba42];return _0x107175;};import{Collection as _0x426964}from'ckeditor5/src/utils';import{icons as _0x10c74c}from'ckeditor5/src/core';import{Model as _0x90c29c,addListToDropdown as _0x12051e,createDropdown as _0x4cbee3}from'ckeditor5/src/ui';import{getTranslation as _0x3d529f}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x52cfd,_0x260525){const _0x24171f=_0x52cfd[_0x1071('0x11')],_0x558a4e=_0x52cfd[_0x1071('0x13')],_0x32355e=_0x4cbee3(_0x558a4e);_0x32355e['panelPosition']='sw';const _0x208594=function(_0x29dabf,_0x5d9cfd){const _0x642df=function(_0x53dd1b,_0x25c3a3){const _0x5daa5a=_0x53dd1b[_0x1071('0x13')],_0x53f796={'Compare\x20against\x20selected':_0x3d529f(_0x5daa5a,_0x1071('0x17')),'Name\x20this\x20revision':_0x3d529f(_0x5daa5a,_0x1071('0x0')),'Restore\x20this\x20revision':_0x3d529f(_0x5daa5a,_0x1071('0x4'))};return _0x25c3a3[_0x1071('0x3')](_0x43c473=>{const _0x4e1f0b=_0x53f796[_0x43c473['name']];return _0x4e1f0b&&_0x4e1f0b!==_0x43c473[_0x1071('0xe')]&&(_0x43c473[_0x1071('0xe')]=_0x4e1f0b),_0x43c473;});}(_0x29dabf,_0x5d9cfd),_0x50cbb2=new _0x426964();for(const _0x3c4f6c of _0x642df){const _0x13117a={'type':_0x1071('0x18'),'model':new _0x90c29c({'label':_0x3c4f6c[_0x1071('0xe')],'class':_0x3c4f6c[_0x1071('0x10')],'withText':!0x0,'_action':_0x3c4f6c[_0x1071('0x8')]})};_0x13117a[_0x1071('0xb')]['bind'](_0x1071('0x5'))['to'](_0x29dabf,_0x1071('0x1c'),_0x1af0b6=>_0x1071('0xa')!=typeof _0x3c4f6c[_0x1071('0x5')]||(!_0x1af0b6||_0x3c4f6c[_0x1071('0x5')](_0x29dabf))),_0x50cbb2[_0x1071('0x1a')](_0x13117a);}return _0x50cbb2;}(_0x52cfd,_0x260525);return _0x52cfd[_0x1071('0x15')](_0x1071('0x1c'))['to'](_0x32355e,_0x1071('0x7')),_0x32355e['buttonView'][_0x1071('0xd')]({'label':_0x3d529f(_0x558a4e,_0x1071('0x9')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x10c74c[_0x1071('0xf')]}),_0x32355e['extendTemplate']({'attributes':{'class':[_0x1071('0x1e'),_0x24171f['if'](_0x1071('0x1c'),'ck-on')]},'on':{'click':_0x24171f['to'](_0x158ade=>_0x158ade[_0x1071('0x14')]())}}),_0x32355e['on'](_0x1071('0x1'),_0x4c1086=>{_0x52cfd[_0x1071('0x12')]&&_0x1071('0xa')==typeof _0x4c1086[_0x1071('0x2')][_0x1071('0x1b')]&&_0x4c1086[_0x1071('0x2')][_0x1071('0x1b')](_0x52cfd);}),_0x12051e(_0x32355e,_0x208594),_0x32355e[_0x1071('0xc')](_0x52cfd,'change:isActionsDropdownOpen',(_0x305ec1,_0x1ef8c6,_0x578b3b)=>{if(_0x578b3b)for(const _0x4b9250 of _0x32355e[_0x1071('0x1d')][_0x1071('0x6')]){const _0x5510c5=_0x4b9250[_0x1071('0x16')][_0x1071('0x19')],_0x1fe120=_0x260525['find'](_0x50d11c=>_0x50d11c[_0x1071('0x8')]===_0x5510c5[_0x1071('0x1b')])[_0x1071('0x1f')];_0x4b9250[_0x1071('0x1f')]=void 0x0===_0x1fe120||_0x1fe120(_0x52cfd);}}),_0x32355e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb6c1=['Revision\x20creator','ck-revision-history-sidebar__revision-author__name','Revision\x20author','push','setTemplate','name'];(function(_0x4d885d,_0xb6c13e){const _0x299200=function(_0x2387f4){while(--_0x2387f4){_0x4d885d['push'](_0x4d885d['shift']());}};_0x299200(++_0xb6c13e);}(_0xb6c1,0x78));const _0x2992=function(_0x4d885d,_0xb6c13e){_0x4d885d=_0x4d885d-0x0;let _0x299200=_0xb6c1[_0x4d885d];return _0x299200;};import{View as _0x3872fa,IconView as _0x174544}from'ckeditor5/src/ui';import{getTranslation as _0x2adff0}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x52304c from'../../../theme/icons/user.svg';export default class ti extends _0x3872fa{constructor(_0x147985,_0x51b379,_0x2c0620){super(_0x147985);const _0x29a403=new _0x174544();_0x29a403['set']({'content':_0x52304c,'viewBox':'0\x200\x2011\x2010'});const _0x575c29=['ck','ck-revision-history-sidebar__revision-author'];_0x2c0620&&_0x575c29[_0x2992('0x3')]('ck-revision-history-sidebar__revision-author_creator');const _0xf80f11=[{'tag':'span','attributes':{'class':['ck',_0x2992('0x1')],'title':_0x2adff0(_0x147985,_0x2c0620?_0x2992('0x0'):_0x2992('0x2'))},'children':[_0x29a403,_0x51b379[_0x2992('0x5')]]}];this[_0x2992('0x4')]({'tag':'li','attributes':{'class':_0x575c29},'children':_0xf80f11});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x977a=['span','extendTemplate','set','Revision\x20name','ck-revision-history-sidebar__revision-name'];(function(_0x4185ec,_0x977a60){var _0x571a6b=function(_0x3788e8){while(--_0x3788e8){_0x4185ec['push'](_0x4185ec['shift']());}};_0x571a6b(++_0x977a60);}(_0x977a,0x75));var _0x571a=function(_0x4185ec,_0x977a60){_0x4185ec=_0x4185ec-0x0;var _0x571a6b=_0x977a[_0x4185ec];return _0x571a6b;};import{LabeledFieldView as _0x148882}from'ckeditor5/src/ui';import{getTranslation as _0x917094}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x148882{constructor(_0x223eba,_0x4416dd){super(_0x223eba,_0x4416dd),this[_0x571a('0x0')]({'label':_0x917094(_0x223eba,_0x571a('0x1'))}),this[_0x571a('0x4')]({'tag':_0x571a('0x3'),'attributes':{'class':[_0x571a('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xccd1=['extendTemplate','ck-revision-history-sidebar__revision__date','div','highlight','isEnabled','unhighlight','name','isActionsDropdownOpen','srcElement','isHighlighted','unshift','ck-revision-history-sidebar__revision_selected','createdAt','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','fire','fieldView','ck-revision-history-sidebar__actions_dropdown_open','bind','isSelected','creator','placeholder','map','setTemplate','select','closest','listenTo','_createdAtFormatted','deselect','ck-reset','ck-revision-history-sidebar__revision','uiLanguage','ck-disabled','change','bindTemplate','revisionActionsView','span','filter','revisionNameView','ck-revision-history-sidebar__revision-wrapper','render','isReady','ck-revision-history-sidebar__revision_highlighted','220','value','ck-revision-history-sidebar__revision__controls-wrapper','set'];(function(_0xb8c7ca,_0xccd1c){const _0x13226e=function(_0x34d104){while(--_0x34d104){_0xb8c7ca['push'](_0xb8c7ca['shift']());}};_0x13226e(++_0xccd1c);}(_0xccd1,0x94));const _0x1322=function(_0xb8c7ca,_0xccd1c){_0xb8c7ca=_0xb8c7ca-0x0;let _0x13226e=_0xccd1[_0xb8c7ca];return _0x13226e;};import{View as _0x37cddf,createLabeledInputText as _0x389d98}from'ckeditor5/src/ui';import{ConfirmMixin as _0x705a6a}from'ckeditor5-collaboration/src/collaboration-core';import _0x2dc520 from'./revisionnameview';import _0x4e4329 from'./revisionauthorview';import{dateToPrettyFormat as _0x128a4b}from'./utils';import{createActionsDropdownView as _0xcd67ed}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x705a6a(_0x37cddf){constructor(_0x2b555d,_0x5d10f9,_0x32e36b){super(_0x2b555d);const _0x4267c8=this[_0x1322('0x17')],_0x198f68=function(_0xc251a8,_0x2bc0e2){const _0x35f21b=Array['from'](_0x2bc0e2['authors'])[_0x1322('0x1a')](_0x21261b=>_0x21261b!=_0x2bc0e2[_0x1322('0x9')]);return _0x2bc0e2[_0x1322('0x9')]&&_0x35f21b[_0x1322('0x0')](_0x2bc0e2[_0x1322('0x9')]),_0x35f21b[_0x1322('0xb')](_0x139548=>new _0x4e4329(_0xc251a8,_0x139548,_0x139548==_0x2bc0e2['creator']));}(_0x2b555d,_0x5d10f9);this['id']=_0x5d10f9['id'],this['_revision']=_0x5d10f9,this['bind'](_0x1322('0x2a'),_0x1322('0x2'))['to'](_0x5d10f9),this[_0x1322('0x7')](_0x1322('0x10'))['to'](this,_0x1322('0x2'),_0x251674=>_0x251674?_0x128a4b(_0x2b555d[_0x1322('0x14')],_0x251674):void 0x0),this[_0x1322('0x23')](_0x1322('0x8'),!0x1),this[_0x1322('0x23')](_0x1322('0x2d'),!0x1),this[_0x1322('0x23')]('isActionsDropdownOpen',!0x1),this['set'](_0x1322('0x1e'),!0x1),this[_0x1322('0x23')](_0x1322('0x28'),!0x1),this[_0x1322('0x1b')]=new _0x2dc520(_0x2b555d,_0x389d98),this['revisionNameView']['fieldView'][_0x1322('0x24')]({'attributes':{'maxlength':_0x1322('0x20')}}),this[_0x1322('0x1b')]['fieldView'][_0x1322('0x7')](_0x1322('0x21'),_0x1322('0xa'))['to'](this,_0x1322('0x2a'),'_createdAtFormatted'),this[_0x1322('0x1b')][_0x1322('0x7')](_0x1322('0x28'))['to'](this,_0x1322('0x8'),this,_0x1322('0x28'),(_0x33fbde,_0xd95d64)=>_0x33fbde&&_0xd95d64),this['revisionActionsView']=_0x32e36b&&_0x32e36b['length']?_0xcd67ed(this,_0x32e36b):'',this[_0x1322('0x18')]&&this[_0x1322('0x18')]['bind'](_0x1322('0x28'))['to'](this),this[_0x1322('0xc')]({'tag':_0x1322('0x26'),'attributes':{'class':['ck',_0x1322('0x12'),_0x1322('0x1c'),_0x4267c8['if']('isConfirm',_0x1322('0x3'))]},'children':[{'tag':_0x1322('0x26'),'attributes':{'class':['ck',_0x1322('0x12'),_0x1322('0x13'),_0x4267c8['if'](_0x1322('0x28'),_0x1322('0x15'),_0x3117a4=>!_0x3117a4),_0x4267c8['if'](_0x1322('0x8'),_0x1322('0x1')),_0x4267c8['if'](_0x1322('0x2d'),_0x1322('0x1f')),_0x4267c8['if'](_0x1322('0x2b'),_0x1322('0x6'))]},'children':[this[_0x1322('0x1b')],{'tag':_0x1322('0x19'),'attributes':{'class':['ck',_0x1322('0x25')]},'children':[{'text':_0x4267c8['to'](_0x1322('0x10'))}]},{'tag':_0x1322('0x26'),'attributes':{'class':['ck',_0x1322('0x22')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x198f68}]},this[_0x1322('0x18')]],'on':{'click':_0x4267c8['to'](_0x45ad45=>{_0x45ad45[_0x1322('0x2c')][_0x1322('0xe')]('.ck-thread__remove-confirm')||this[_0x1322('0x1e')]&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}[_0x1322('0x1d')](){super[_0x1322('0x1d')]();const _0x150d72=this[_0x1322('0x1b')][_0x1322('0x5')]['element'];this[_0x1322('0xf')](_0x150d72,_0x1322('0x16'),()=>{this[_0x1322('0x4')]('setName',{'id':this['id'],'name':_0x150d72[_0x1322('0x21')]});});}[_0x1322('0xd')](){this[_0x1322('0x8')]=!0x0;}[_0x1322('0x11')](){this[_0x1322('0x8')]=!0x1;}[_0x1322('0x27')](){this['isHighlighted']=!0x0;}[_0x1322('0x29')](){this[_0x1322('0x2d')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3650=['toggle','span','set','click','isVisible','button','ck-revision-history-sidebar__subrevision-collapser__inner','true','_isCollapsed','false','ck-revision-history-sidebar__subrevision-collapser','bindTemplate'];(function(_0x13b69e,_0x365009){const _0x5ecb49=function(_0x107a74){while(--_0x107a74){_0x13b69e['push'](_0x13b69e['shift']());}};_0x5ecb49(++_0x365009);}(_0x3650,0xb6));const _0x5ecb=function(_0x13b69e,_0x365009){_0x13b69e=_0x13b69e-0x0;let _0x5ecb49=_0x3650[_0x13b69e];return _0x5ecb49;};import{View as _0x2b1ed5}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2b1ed5{constructor(_0x3a75d0){super(_0x3a75d0);const _0x2ad876=this[_0x5ecb('0x9')];this[_0x5ecb('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x5ecb('0xb'),'attributes':{'class':['ck',_0x5ecb('0x8'),_0x2ad876['if'](_0x5ecb('0x2'),'ck-hidden',_0x3c2a87=>!_0x3c2a87),_0x2ad876['if'](_0x5ecb('0x6'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x5ecb('0x3'),'aria-pressed':_0x2ad876['to'](_0x5ecb('0x6'),_0x5d8fec=>_0x5d8fec?_0x5ecb('0x7'):_0x5ecb('0x5'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x5ecb('0x4')]}}],'on':{'click':_0x2ad876['to'](_0x5ecb('0x1'))}});}[_0x5ecb('0xa')](){this[_0x5ecb('0x6')]=!this[_0x5ecb('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43c3=['fire','bindTemplate','span','ck-revision-history-sidebar__revision__date','select','ck-revision-history-sidebar__revision','ck-reset','isSelected','div','ck-revision-history-sidebar__revision_selected','uiLanguage','_createdAtFormatted','creator','_parentRevisionId','bind','deselect','createdAt'];(function(_0x2786e6,_0x43c3a1){const _0x142e03=function(_0xf999b5){while(--_0xf999b5){_0x2786e6['push'](_0x2786e6['shift']());}};_0x142e03(++_0x43c3a1);}(_0x43c3,0x10a));const _0x142e=function(_0x2786e6,_0x43c3a1){_0x2786e6=_0x2786e6-0x0;let _0x142e03=_0x43c3[_0x2786e6];return _0x142e03;};import{View as _0xa3fdf}from'ckeditor5/src/ui';import _0x719fe9 from'./revisionauthorview';import{dateToPrettyFormat as _0x116b73}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xa3fdf{constructor(_0x49cf7b,_0x38da03,_0x27cee5){super(_0x49cf7b);const _0x25149c=this[_0x142e('0x7')];this['id']=_0x38da03['id'],this['bind'](_0x142e('0x5'))['to'](_0x38da03),this['set']('isSelected',!0x1),this['bind'](_0x142e('0x0'))['to'](this,'createdAt',_0x2d657b=>_0x2d657b?_0x116b73(_0x49cf7b[_0x142e('0x10')],_0x2d657b):void 0x0),this[_0x142e('0x2')]=_0x27cee5,this['setTemplate']({'tag':_0x142e('0xe'),'attributes':{'class':['ck',_0x142e('0xc'),_0x142e('0xb'),'ck-revision-history-sidebar__subrevision',_0x25149c['if']('isSelected',_0x142e('0xf'))]},'children':[{'tag':_0x142e('0x8'),'attributes':{'class':['ck',_0x142e('0x9')]},'children':[{'text':_0x25149c['to'](_0x142e('0x0'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x719fe9(_0x49cf7b,_0x38da03[_0x142e('0x1')],!0x0)]}],'on':{'click':_0x25149c['to'](this['select'][_0x142e('0x3')](this))}});}[_0x142e('0xa')](){this[_0x142e('0xd')]=!0x0,this[_0x142e('0x6')](_0x142e('0xa'),{'parentId':this[_0x142e('0x2')]});}[_0x142e('0x4')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xc0ea=['toLocaleTimeString','numeric'];(function(_0x43742b,_0xc0ead7){var _0x3f35a4=function(_0x51459f){while(--_0x51459f){_0x43742b['push'](_0x43742b['shift']());}};_0x3f35a4(++_0xc0ead7);}(_0xc0ea,0x17f));var _0x3f35=function(_0x43742b,_0xc0ead7){_0x43742b=_0x43742b-0x0;var _0x3f35a4=_0xc0ea[_0x43742b];return _0x3f35a4;};export function dateToPrettyFormat(_0x338b7b,_0x4f57e8){return _0x4f57e8['toLocaleDateString'](_0x338b7b,{'month':'long','day':_0x3f35('0x0')})+',\x20'+_0x4f57e8[_0x3f35('0x1')](_0x338b7b,{'hour':'numeric','minute':_0x3f35('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3afa=['set','delegate','_createRevisionNameInput','Save','arrowleft','tab','revisionName','cancelButtonView','listenTo','reset','value','check','locale','fieldView','cancel','_focusables','saveButtonView','_focusCycler','Name\x20of\x20the\x20revision\x20(optional)','render','ck-button-save','type','keystrokes','ck-responsive-form','add','focusTracker','ck-button-cancel','arrowup','revisionNameInputView','trim','arrowdown','forEach','Cancel','focus','input','element','stopPropagation','revisionNameInputValue','execute','_createButton','focusFirst','ck-revision-history-save-revision-form','label','setTemplate','shift\x20+\x20tab'];(function(_0x50a156,_0x3afa62){const _0xaba3c4=function(_0x461b71){while(--_0x461b71){_0x50a156['push'](_0x50a156['shift']());}};_0xaba3c4(++_0x3afa62);}(_0x3afa,0x1b7));const _0xaba3=function(_0x50a156,_0x3afa62){_0x50a156=_0x50a156-0x0;let _0xaba3c4=_0x3afa[_0x50a156];return _0xaba3c4;};import{icons as _0x12b3fe}from'ckeditor5/src/core';import{ButtonView as _0x585282,FocusCycler as _0x8b4aeb,LabeledFieldView as _0x5a6892,View as _0x5985a6,ViewCollection as _0x4fd8da,createLabeledInputText as _0x52aec9,injectCssTransitionDisabler as _0x2c72cf,submitHandler as _0x28a7e9}from'ckeditor5/src/ui';import{FocusTracker as _0x42974d,KeystrokeHandler as _0x1d5b39}from'ckeditor5/src/utils';import{getTranslation as _0xfc2bdc}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class bt extends _0x5985a6{constructor(_0x2a0337){super(_0x2a0337),this['focusTracker']=new _0x42974d(),this[_0xaba3('0x21')]=new _0x1d5b39(),this[_0xaba3('0xb')]('revisionNameInputValue',''),this[_0xaba3('0x27')]=this[_0xaba3('0xd')](),this['saveButtonView']=this[_0xaba3('0x5')](_0xfc2bdc(_0x2a0337,_0xaba3('0xe')),_0x12b3fe[_0xaba3('0x16')],_0xaba3('0x1f')),this[_0xaba3('0x1b')][_0xaba3('0x20')]='submit',this['cancelButtonView']=this[_0xaba3('0x5')](_0xfc2bdc(_0x2a0337,_0xaba3('0x2b')),_0x12b3fe['cancel'],_0xaba3('0x25'),_0xaba3('0x19')),this[_0xaba3('0x1a')]=new _0x4fd8da(),this[_0xaba3('0x1c')]=new _0x8b4aeb({'focusables':this[_0xaba3('0x1a')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0xaba3('0x21')],'actions':{'focusPrevious':_0xaba3('0xa'),'focusNext':_0xaba3('0x10')}}),this[_0xaba3('0x9')]({'tag':'form','attributes':{'class':['ck',_0xaba3('0x7'),_0xaba3('0x22')],'tabindex':'-1'},'children':[this[_0xaba3('0x27')],this[_0xaba3('0x1b')],this[_0xaba3('0x12')]]}),_0x2c72cf(this);}['render'](){super[_0xaba3('0x1e')](),_0x28a7e9({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this[_0xaba3('0x12')]][_0xaba3('0x2a')](_0x571306=>{this[_0xaba3('0x1a')]['add'](_0x571306),this[_0xaba3('0x24')][_0xaba3('0x23')](_0x571306[_0xaba3('0x1')]);}),this[_0xaba3('0x21')][_0xaba3('0x13')](this['element']));const _0x20d062=_0x4d1ebc=>_0x4d1ebc[_0xaba3('0x2')]();this[_0xaba3('0x21')][_0xaba3('0xb')]('arrowright',_0x20d062),this[_0xaba3('0x21')][_0xaba3('0xb')](_0xaba3('0xf'),_0x20d062),this[_0xaba3('0x21')][_0xaba3('0xb')](_0xaba3('0x26'),_0x20d062),this[_0xaba3('0x21')][_0xaba3('0xb')](_0xaba3('0x29'),_0x20d062);}[_0xaba3('0x2c')](){this[_0xaba3('0x1c')][_0xaba3('0x6')]();}get['revisionName'](){return this[_0xaba3('0x27')]['fieldView'][_0xaba3('0x1')][_0xaba3('0x15')][_0xaba3('0x28')]();}set[_0xaba3('0x11')](_0x1ebc24){this['revisionNameInputView'][_0xaba3('0x18')][_0xaba3('0x1')][_0xaba3('0x15')]=_0x1ebc24[_0xaba3('0x28')]();}[_0xaba3('0x14')](){this[_0xaba3('0x27')]['fieldView'][_0xaba3('0x1')][_0xaba3('0x15')]='';}[_0xaba3('0xd')](){const _0x2e896a=new _0x5a6892(this[_0xaba3('0x17')],_0x52aec9),_0xa0dff1=_0x2e896a[_0xaba3('0x18')];return _0xa0dff1['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x2e896a[_0xaba3('0x8')]=_0xfc2bdc(this[_0xaba3('0x17')],_0xaba3('0x1d')),_0xa0dff1['on'](_0xaba3('0x0'),()=>{this[_0xaba3('0x3')]=_0xa0dff1[_0xaba3('0x1')][_0xaba3('0x15')][_0xaba3('0x28')]();}),_0x2e896a;}['_createButton'](_0x2ab816,_0x547af8,_0x4ef1ec,_0x4f2244){const _0x3dc42a=new _0x585282(this[_0xaba3('0x17')]);return _0x3dc42a['set']({'label':_0x2ab816,'icon':_0x547af8,'tooltip':!0x0}),_0x3dc42a['extendTemplate']({'attributes':{'class':_0x4ef1ec}}),_0x4f2244&&_0x3dc42a[_0xaba3('0xc')](_0xaba3('0x4'))['to'](this,_0x4f2244),_0x3dc42a;}}
|