@ckeditor/ckeditor5-revision-history 37.0.0-rc.0 → 37.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +5 -5
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x11d8=['revision-viewer','getChild','setAttribute','_getViewForChange','getItems','high','plugins','start','offsetSize','getClientRects','editor','removeMarker:revision','enableReadOnlyMode','deletion','diffData','revision-suggestion:','_markSuggestions','_fixObsoleteTags','end','markerToHighlight','unshift','abs','startsWith','bindElementToMarker','ck-editor__editable__overlay','_makeModelFromTape','markersEnd','isBlock','stop','toViewPosition','test','addMarker:revision-suggestion:insertion','changes','bottom','RevisionViewer','isReady','writer','refresh','parent','revision-start','_threeWayMerge','_findChangeIdFromDomTarget','low','_setConversion','distance','from','viewItem','_removeUnsupportedChanges','remove','commands','activeView','keys','newRevisionId','ck-suggestion-marker--active','type','isObject','startIndex','createRevision','revision:','forceDisabled','side','readOnlyMode','editingDowncast','element','ck-suggestion-marker-merge','mapViewToDom','getCustomProperty','getIndex','then','<p></p>','checkAttribute','_data','length','removeMarker:revision-suggestion','insertion','data','vid_end','createRange','map','execute','markersStart','change','_getChangeFromId','done','comment','pluginName','reconvertMarker','getRevisionData','isAtStart','sort','getWalker','delete','forward','_activeViewTarget','get','_setData','_removeMissingPairs','createPositionFromPath','next','_step','mouseover','filter','revisionHistoryLabel','destroy','markerToData','suggestion:','processor','findIndex','has','clear','add','getAttribute','currentChangeNumber','nextPosition','dataToMarker','showPreviousChange','compare','markerName','isSuggestion','_update','range','domConverter','createAttributeElement','ck-suggestion-marker-split','document','userId','stopListening','item','isContent','find','config','_removeRevisionMarkers','enqueueChange','model','authors','ck-suggestion-marker-','_changeIdToChange','useFillerType','editing','-new','catch','restoreRevisionCallback','split','previousPosition','repository','maxOffset','revision','element:pre','upcast','numberOfChanges','isAddSuggestion','isIncorrect','right','view','isEqual','endIndex','_markMarkers','isNavigationMode','revisionHistory','conversion','isLimit','isCollapsed','_makeTape','toModel','isAtEnd','markerRange','isRemoved','error','name','string','mapper','ck-suggestion-preview-marker-','isBefore','toViewElement','createRangeIn','revision-suggestion','downcastDispatcher','getRevision','isAdded','change:isEnabled','markers','hasClass','_changeView','level','target','values','uiElement','activeChange','modelRange','_cleanMarkers','bind','vid','attributes','_cleanUp','merge','_markInsertions','schema','left','children','revision-end','softBreak','removeMarker','dataDowncast','isEnabled','clearForceDisabled','insert','elementEnd','oldRevisionId','change:activeView','listenTo','_initInteractions','set','markerNameToElements','splice','restoreRevision','for','highest','span','insertions','addMarker:revision-suggestion:deletion','parse','adapter','change:numberOfChanges','addClass','_processTape','_setDistance','loadRevisionData','isRemoveSuggestion','change:isReadOnly','createUIElement','_getViewObj','hasAttribute','unbindElementFromMarkerName','consume','_appendChild','return','concat','code','createPositionBefore','updatePosition','data-change-id','forEach','elementStart','_refreshStartEndIndex','_revisions','_joinTapes','_balloon','isAfter','wrap','addMarker:revision','_getDiff','addHighlight','RevisionsRepository','_getRevisionsRange','pairId','includes','index','top','push','consumable','slice','ck-suggestion-preview-marker','POSITIVE_INFINITY','nodeAfter','shift','diff','domEvent','text','requires','WidgetToolbarRepository','marked','addRevisionData','data-revision-','toViewRange','flat','change:isReady','vid_start','getAttributes','first','_markMismatchedRemovedTags'];(function(_0x268f05,_0x11d85b){const _0x111918=function(_0x10d43b){while(--_0x10d43b){_0x268f05['push'](_0x268f05['shift']());}};_0x111918(++_0x11d85b);}(_0x11d8,0x106));const _0x1119=function(_0x268f05,_0x11d85b){_0x268f05=_0x268f05-0x0;let _0x111918=_0x11d8[_0x268f05];return _0x111918;};import{Plugin as _0x49c6ba,Command as _0x51c7a9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x572c4d}from'ckeditor5/src/utils';import{ContextualBalloon as _0x8b468e}from'ckeditor5/src/ui';import{DocumentFragment as _0x13b4fb,Element as _0x4b0204,Text as _0x303393,ViewDocumentFragment as _0x4de3cb,ViewText as _0x3bd61c,ViewElement as _0x5d7abe,ViewContainerElement as _0x1d53bf,ViewAttributeElement as _0x4d2106,ViewEmptyElement as _0x3d249d,ViewRawElement as _0x34acfd,ViewUIElement as _0x4c26c7}from'ckeditor5/src/engine';import{Users as _0x27647a,getMarkerDomElement as _0x112317}from'ckeditor5-collaboration/src/collaboration-core';import _0x2a8a3e from'./ui/revisionviewer/changedetailsview';import _0xc876b from'./revisionsrepository';import _0x306fe0 from'./changeitem';import{default as _0x224b8a}from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0x1d53bf,'a':_0x4d2106,'e':_0x3d249d,'r':_0x34acfd,'u':_0x4c26c7};export default class y extends _0x49c6ba{static get[_0x1119('0x67')](){return _0x1119('0x34');}static get[_0x1119('0x6')](){return[_0x27647a,_0x8b468e,_0xc876b];}constructor(_0x47eb21){super(_0x47eb21),this['repository']=this[_0x1119('0x1c')][_0x1119('0x18')][_0x1119('0x70')](_0x1119('0x10e')),this[_0x1119('0xe5')]('activeChange',null),this[_0x1119('0xe5')](_0x1119('0x44'),null),this[_0x1119('0x6f')]=null,this[_0x1119('0xe5')](_0x1119('0x3'),null),this['set'](_0x1119('0x35'),!0x1),this['set'](_0x1119('0xdd'),!0x0),this['on']('change:isEnabled',(_0x287c03,_0x23efea,_0x2976de)=>{this[_0x1119('0xcd')]=null,this[_0x1119('0x44')]=null,this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xab')][_0x1119('0x63')](_0x23219e=>{for(const _0x3f7a56 of this[_0x1119('0x1c')]['editing']['view'][_0x1119('0x8e')]['roots'])_0x2976de?_0x23219e['removeClass'](_0x1119('0x2a'),_0x3f7a56):_0x23219e[_0x1119('0xf1')](_0x1119('0x2a'),_0x3f7a56);});}),this['bind'](_0x1119('0xaf'))['to'](this,'activeChange',_0x37e47c=>null!==_0x37e47c),this[_0x1119('0xd0')](_0x1119('0x82'))['to'](this,_0x1119('0x35'),this,'diff',this,'activeChange',(_0x3650bd,_0x16af45,_0x4e0bb9)=>_0x3650bd&&_0x4e0bb9?_0x16af45[_0x1119('0x32')][_0x1119('0x55')](_0x4e0bb9):0x0),this[_0x1119('0xd0')](_0x1119('0xa7'))['to'](this,_0x1119('0x35'),this,_0x1119('0x3'),(_0x120457,_0x370c3e)=>_0x120457?_0x370c3e['changes']['length']:0x0),this[_0x1119('0xc8')]=null,this['_changeIdToChange']=new Map(),this[_0x1119('0xef')]=null,this[_0x1119('0x108')]=this[_0x1119('0x1c')][_0x1119('0x18')][_0x1119('0x70')](_0x8b468e);}['init'](){const _0xd55971=this[_0x1119('0x1c')],_0x176a70=new ShowChangeCommand(_0xd55971,{'direction':'backward'}),_0x10ef6c=new ShowChangeCommand(_0xd55971,{'direction':_0x1119('0x6e')});(_0xd55971[_0x1119('0x43')][_0x1119('0x80')](_0x1119('0x85'),_0x176a70),_0xd55971['commands']['add']('showNextChange',_0x10ef6c),_0xd55971['commands'][_0x1119('0x80')](_0x1119('0xe8'),new RestoreRevisionCommand(_0xd55971)),this['on'](_0x1119('0xf0'),()=>{_0x176a70[_0x1119('0x37')](),_0x10ef6c[_0x1119('0x37')]();}),this['_setConversion'](),this[_0x1119('0xe4')](),_0xd55971[_0x1119('0x1e')]('revision-viewer'),_0xd55971['plugins'][_0x1119('0x7e')](_0x1119('0x7')))&&_0xd55971[_0x1119('0x18')]['get']('WidgetToolbarRepository')[_0x1119('0x4d')](_0x1119('0x12'));}async[_0x1119('0x69')](_0x5f275c){await this[_0x1119('0xf4')](_0x5f275c);const _0x220eee={};for(const _0x292ec7 in _0x5f275c[_0x1119('0x20')]){const _0x90ee38=this[_0x1119('0x95')](JSON[_0x1119('0xee')](_0x5f275c[_0x1119('0x20')][_0x292ec7]['insertions'])),_0x4cd6a8=this[_0x1119('0x1c')][_0x1119('0x9c')]['view'][_0x1119('0x8e')],_0x40a9e6=new _0x4de3cb(_0x4cd6a8,_0x90ee38[_0x1119('0x60')](_0x355db4=>this[_0x1119('0xf8')](_0x355db4)));this[_0x1119('0x1c')][_0x1119('0x5d')][_0x1119('0x7c')]['useFillerType'](_0x1119('0x8')),_0x220eee[_0x292ec7]=this['editor'][_0x1119('0x5d')]['processor']['toData'](_0x40a9e6),this[_0x1119('0x1c')][_0x1119('0x5d')][_0x1119('0x7c')][_0x1119('0x9b')]('default');}return _0x220eee;}['_removeRevisionMarkers'](_0x34eb59){return(_0x34eb59=_0x34eb59[_0x1119('0x77')](_0x486890=>!_0x486890[_0x1119('0xba')]||_0x1119('0x39')!==_0x486890[_0x1119('0xba')]&&_0x1119('0xd9')!==_0x486890[_0x1119('0xba')]))[_0x1119('0x103')](_0x5a7810=>{_0x1119('0xbb')!=typeof _0x5a7810&&(_0x5a7810[_0x1119('0xd8')]=this['_removeRevisionMarkers'](_0x5a7810[_0x1119('0xd8')]),_0x5a7810[_0x1119('0xd2')]=_0x5a7810[_0x1119('0xd2')][_0x1119('0x77')](_0x4f7e8e=>!_0x4f7e8e[0x0][_0x1119('0x28')](_0x1119('0xa'))));}),_0x34eb59;}async[_0x1119('0x86')](_0x5a50c8,_0xdcda18,_0x233df4=!0x1){if(!this[_0x1119('0xdd')])return;const _0x2b785a=this[_0x1119('0x3')],_0x1181db=this['repository'],_0x584ee3=_0x1119('0xbb')==typeof _0x5a50c8?_0x1181db['getRevision'](_0x5a50c8):_0x5a50c8,_0x49b855='string'==typeof _0xdcda18?_0x1181db['getRevision'](_0xdcda18):_0xdcda18,_0x23ecf1=_0x584ee3['id'],_0x39f971=_0x49b855?_0x49b855['id']:null;if(!_0x233df4&&this[_0x1119('0x3')]&&this[_0x1119('0x3')]['newRevisionId']===_0x23ecf1&&this[_0x1119('0x3')][_0x1119('0xe1')]===_0x39f971)return Promise['resolve']();this[_0x1119('0x35')]=!0x1,this[_0x1119('0x44')]=null,this['activeChange']=null,this[_0x1119('0x3')]=new _0x224b8a(_0x23ecf1,_0x39f971);const _0x43ac84=this[_0x1119('0x10f')](_0x584ee3,_0x49b855,!0x0)[_0x1119('0x60')](_0x101fed=>this['loadRevisionData'](_0x101fed));return _0x43ac84['push'](new Promise(_0x31b0d9=>{setTimeout(_0x31b0d9,0x14);})),Promise['all'](_0x43ac84)[_0x1119('0x56')](()=>{if(!this[_0x1119('0xdd')])return;this[_0x1119('0xd3')]();const _0x268a5c=this[_0x1119('0x10c')](_0x23ecf1,_0x39f971);this[_0x1119('0x3')][_0x1119('0x71')](_0x268a5c);for(const _0x593fad of this['diff']['changes'])this['_changeIdToChange'][_0x1119('0xe5')](_0x593fad['id'],_0x593fad);this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0x96')]({'isUndoable':!0x1},_0x53d578=>{for(const _0x2ff57a of Object[_0x1119('0x45')](_0x268a5c[_0x1119('0x97')])){const _0x52a9df=this[_0x1119('0x1c')][_0x1119('0x97')]['document']['getRoot'](_0x2ff57a);_0x53d578['remove'](_0x53d578['createRangeIn'](_0x52a9df)),_0x53d578[_0x1119('0xdf')](_0x268a5c[_0x1119('0x97')][_0x2ff57a],_0x52a9df,0x0);}}),this[_0x1119('0x35')]=!0x0;})[_0x1119('0x9e')](_0x263810=>{console[_0x1119('0xb9')](_0x263810),this[_0x1119('0xd3')](),_0x2b785a?this[_0x1119('0x3')]=_0x2b785a:this[_0x1119('0x1c')][_0x1119('0x5d')]['set'](_0x1119('0x57')),this[_0x1119('0x35')]=!0x0;});}[_0x1119('0x79')](){this[_0x1119('0x44')]=null,this[_0x1119('0xc8')]&&this['_changeView'][_0x1119('0x79')]();}[_0x1119('0x9')](_0x20384c,_0x5d18d7){const _0x174010=this[_0x1119('0xa2')][_0x1119('0x4b')](_0x20384c);return _0x174010['on'](_0x1119('0x89'),(_0x18f471,_0x138d44,_0x5a61fc)=>_0x5d18d7(_0x138d44,_0x5a61fc,_0x174010)),this[_0x1119('0xa2')]['addRevision'](_0x174010),_0x174010;}[_0x1119('0xf4')](_0x49548e){if(!_0x49548e||_0x49548e[_0x1119('0x20')])return Promise['resolve']();{const _0x2a5f45=this[_0x1119('0x1c')][_0x1119('0x94')]['get']('collaboration.channelId');return this['adapter'][_0x1119('0xc3')]({'channelId':_0x2a5f45,'revisionId':_0x49548e['id']})[_0x1119('0x56')](_0x4e23f5=>{_0x49548e[_0x1119('0x89')]({'diffData':_0x4e23f5['diffData']},!0x0);});}}[_0x1119('0xd3')](){this[_0x1119('0xcd')]=null,this[_0x1119('0xcf')](),this[_0x1119('0xc8')]&&this[_0x1119('0xc8')][_0x1119('0x79')](),this[_0x1119('0xc8')]=null,this[_0x1119('0x9a')][_0x1119('0x7f')]();}[_0x1119('0xb4')](_0x44a48b){const _0x102ab2=Array[_0x1119('0x3f')](_0x44a48b[_0x1119('0xc6')])[_0x1119('0x77')](([_0xf290d,_0x207f92])=>_0xf290d[_0x1119('0x28')]('revision:')&&!_0x207f92[_0x1119('0xb3')]),_0x41bde8=Array['from'](this['editor']['model'][_0x1119('0xc0')](_0x44a48b)[_0x1119('0x6c')]({'singleCharacters':!0x0}));if(0x0!=_0x102ab2['length'])for(const _0xe386b3 of _0x41bde8){const [_0x1c31ec,_0x52fa47]=_0x102ab2[0x0],[,_0x507aaa,_0x36634f]=_0x1c31ec['split'](':');if(_0x52fa47[_0x1119('0x24')][_0x1119('0xac')](_0xe386b3[_0x1119('0x83')])&&_0x102ab2[_0x1119('0x2')](),(_0xe386b3[_0x1119('0xa1')][_0x1119('0xac')](_0x52fa47['start'])||_0xe386b3[_0x1119('0xa1')][_0x1119('0x109')](_0x52fa47[_0x1119('0x19')]))&&(_0x1119('0x5c')==_0x507aaa?_0xe386b3[_0x1119('0xc4')]={'userId':_0x36634f}:_0x1119('0x1f')==_0x507aaa&&(_0xe386b3[_0x1119('0xb8')]={'userId':_0x36634f})),0x0==_0x102ab2[_0x1119('0x5a')])break;}return _0x41bde8;}['_refreshStartEndIndex'](_0x442659){const _0x32749b=new Map();for(let _0x3021e1=0x0;_0x3021e1<_0x442659[_0x1119('0x5a')];_0x3021e1++)_0x1119('0x5')===_0x442659[_0x3021e1][_0x1119('0x48')]?(_0x442659[_0x3021e1][_0x1119('0x91')][_0x1119('0x4a')]=_0x3021e1,_0x442659[_0x3021e1][_0x1119('0x91')]['endIndex']=_0x3021e1):(_0x1119('0x104')===_0x442659[_0x3021e1][_0x1119('0x48')]?_0x442659[_0x3021e1][_0x1119('0x91')][_0x1119('0x4a')]=_0x3021e1:'elementEnd'===_0x442659[_0x3021e1][_0x1119('0x48')]&&(_0x442659[_0x3021e1]['item'][_0x1119('0xad')]=_0x3021e1),_0x32749b[_0x1119('0xe5')](_0x442659[_0x3021e1]['id'],_0x3021e1));for(const _0x5c559b of _0x32749b[_0x1119('0xcb')]())_0x1119('0x104')===_0x442659[_0x5c559b][_0x1119('0x48')]?_0x442659[_0x5c559b][_0x1119('0x91')]['endIndex']=_0x32749b['get'](_0x442659[_0x5c559b][_0x1119('0x110')]):'elementEnd'===_0x442659[_0x5c559b][_0x1119('0x48')]&&(_0x442659[_0x5c559b][_0x1119('0x91')]['startIndex']=_0x32749b[_0x1119('0x70')](_0x442659[_0x5c559b][_0x1119('0x110')]));}[_0x1119('0xf2')](_0x12ca49){for(let _0x529b7b=0x0;_0x529b7b<_0x12ca49[_0x1119('0x5a')];_0x529b7b++){if(_0x1119('0x104')===_0x12ca49[_0x529b7b][_0x1119('0x48')])_0x12ca49[_0x529b7b][_0x1119('0x91')][_0x1119('0x4a')]=_0x529b7b;else{if('elementEnd'===_0x12ca49[_0x529b7b][_0x1119('0x48')]){_0x12ca49[_0x529b7b]['item'][_0x1119('0xad')]=_0x529b7b;const _0x39f78b=_0x12ca49[_0x529b7b]['item'][_0x1119('0x4a')];_0x12ca49[_0x39f78b][_0x1119('0x110')]=_0x12ca49[_0x529b7b]['id'],_0x12ca49[_0x529b7b][_0x1119('0x110')]=_0x12ca49[_0x39f78b]['id'];}else _0x12ca49[_0x529b7b][_0x1119('0x91')][_0x1119('0x4a')]=_0x529b7b,_0x12ca49[_0x529b7b][_0x1119('0x91')][_0x1119('0xad')]=_0x529b7b,_0x12ca49[_0x529b7b][_0x1119('0x110')]=null;}_0x12ca49[_0x529b7b]['markersStart']||(_0x12ca49[_0x529b7b][_0x1119('0x62')]=[],_0x12ca49[_0x529b7b][_0x1119('0x2c')]=[]);}}['_markInsertions'](_0x4afe67,_0x2ee7e4){const _0x5bacba=_0x4afe67[_0x1119('0x77')](_0x2a3356=>!_0x2a3356[_0x1119('0xc4')]);for(let _0x2f43fd=0x0;_0x2f43fd<_0x2ee7e4['length'];_0x2f43fd++)_0x2ee7e4[_0x2f43fd][_0x1119('0xc4')]&&(_0x5bacba[_0x2f43fd][_0x1119('0xc4')]=_0x2ee7e4[_0x2f43fd][_0x1119('0xc4')]);}['_makeModelFromViewString'](_0x243a76){const _0x1a5ebd=JSON[_0x1119('0xee')](_0x243a76),_0x5ed9fa=this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xab')][_0x1119('0x8e')],_0xa47e78=new _0x4de3cb(_0x5ed9fa,_0x1a5ebd['map'](_0x1e4bfd=>this[_0x1119('0xf8')](_0x1e4bfd)));return this['editor'][_0x1119('0x5d')][_0x1119('0xb5')](_0xa47e78);}[_0x1119('0xf8')](_0x1a3f35){const _0x1fde3e=this[_0x1119('0x1c')][_0x1119('0x9c')]['view'][_0x1119('0x8e')];if('string'==typeof _0x1a3f35)return new _0x3bd61c(_0x1fde3e,_0x1a3f35);{const _0x2fc6c2=_0x1a3f35[_0x1119('0xd8')]['map'](_0x4f0863=>this['_getViewObj'](_0x4f0863));return new(K[_0x1a3f35[(_0x1119('0x48'))]]||_0x5d7abe)(_0x1fde3e,_0x1a3f35['name'],_0x1a3f35[_0x1119('0xd2')],_0x2fc6c2);}}[_0x1119('0x10c')](_0x4fcac5,_0x2e2b37=null){const _0xdebddf=this[_0x1119('0xa2')]['getRevision'](_0x4fcac5),_0x47e593=_0x2e2b37?this[_0x1119('0xa2')][_0x1119('0xc3')](_0x2e2b37):null,_0x30390d=this[_0x1119('0x10f')](_0xdebddf,_0x47e593),_0x5a70b9=_0x30390d[_0x30390d[_0x1119('0x5a')]-0x1],_0x8a29a6=new Map();for(const _0x4eaf92 of _0x30390d){_0x4eaf92[_0x1119('0x97')]={};for(const _0x599ac9 of _0x4eaf92[_0x1119('0x98')])_0x8a29a6[_0x1119('0xe5')](_0x599ac9['id'],_0x599ac9);for(const _0x1c0520 of this[_0x1119('0x1c')]['model']['document']['getRootNames']())_0x4eaf92[_0x1119('0x20')][_0x1c0520]||(_0x4eaf92[_0x1119('0x20')][_0x1c0520]={'insertions':'[]','deletions':'[]'}),_0x4eaf92['model'][_0x1c0520]={'insertions':this['_makeModelFromViewString'](_0x4eaf92['diffData'][_0x1c0520][_0x1119('0xec')]),'deletions':this['_makeModelFromViewString'](_0x4eaf92[_0x1119('0x20')][_0x1c0520]['deletions'])};}const _0x401260={'model':{},'changes':[]};for(const _0x1ac7dc of this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0x8e')]['getRootNames']()){let _0x49e063=null,_0x5578fb=0x0;const _0xf4259d=new Map(Array[_0x1119('0x3f')](_0xdebddf[_0x1119('0x97')][_0x1ac7dc][_0x1119('0xec')][_0x1119('0xc6')])[_0x1119('0x77')](([_0x2b8529])=>!_0x2b8529['startsWith'](_0x1119('0x4c'))));let _0x15e16a=0x0;for(const _0x4d6f9b of _0x30390d){const _0x8a2f17=this[_0x1119('0xb4')](_0x4d6f9b[_0x1119('0x97')][_0x1ac7dc][_0x1119('0xec')]);_0x4d6f9b==_0xdebddf?(_0x49e063=_0x8a2f17,_0x5578fb=_0x49e063[_0x1119('0x5a')],_0x49e063[_0x1119('0x103')](_0x41a84f=>{_0x41a84f['id']=_0x15e16a++;}),this['_processTape'](_0x49e063)):this[_0x1119('0xd5')](_0x49e063,_0x8a2f17);const _0x16f9e0=_0x49e063[_0x1119('0x77')](_0x5d0f9c=>!_0x5d0f9c[_0x1119('0xc4')])[_0x1119('0x60')](_0xf58e2d=>_0xf58e2d['id']);let _0x5cb2c4=0x0;const _0x90954f=this['_makeTape'](_0x4d6f9b['model'][_0x1ac7dc]['deletions']);_0x90954f[_0x1119('0x103')](_0x571437=>{_0x571437[_0x1119('0xb8')]?_0x571437['id']=_0x5578fb++:_0x571437['id']=_0x16f9e0[_0x5cb2c4++];}),this['_processTape'](_0x90954f),this['_setDistance'](_0x49e063,_0x1119('0xc4')),this[_0x1119('0xf3')](_0x90954f,_0x1119('0xb8')),_0x4d6f9b==_0xdebddf&&this[_0x1119('0xae')](_0x49e063,_0xf4259d),_0x49e063=this[_0x1119('0x107')](_0x49e063,_0x90954f),this[_0x1119('0x105')](_0x49e063),this['_setDistance'](_0x49e063,_0x1119('0xb8'));}_0x49e063=_0x49e063[_0x1119('0x77')](_0x39cc09=>!(_0x39cc09[_0x1119('0xc4')]&&_0x39cc09[_0x1119('0xb8')]));const _0x5b3936=new Map(_0x5a70b9['model'][_0x1ac7dc]['deletions'][_0x1119('0xc6')]),_0x36cebb=new Set(_0xf4259d['keys']());for(const _0x4fb461 of _0x5b3936[_0x1119('0x45')]())_0x36cebb[_0x1119('0x6d')](_0x4fb461);this[_0x1119('0x22')](_0x49e063,_0x36cebb),this[_0x1119('0x23')](_0x49e063),_0x49e063=this[_0x1119('0x72')](_0x49e063),_0x49e063=this[_0x1119('0x11')](_0x49e063),_0x49e063=this[_0x1119('0x41')](_0x49e063);const {root:_0x577216,changes:_0xaef89e}=this[_0x1119('0x2b')](_0x49e063,_0x8a29a6);_0x401260[_0x1119('0x97')][_0x1ac7dc]=_0x577216,_0x401260[_0x1119('0x32')]=_0x401260[_0x1119('0x32')]['concat'](_0xaef89e);}return _0x401260;}[_0x1119('0xae')](_0x455eab,_0x41efc4){for(let _0x564233=0x0;_0x564233<_0x455eab[_0x1119('0x5a')];_0x564233++)for(const [_0x349fdf,_0x1b3846]of _0x41efc4)_0x1b3846[_0x1119('0x19')][_0x1119('0xac')](_0x455eab[_0x564233][_0x1119('0xa1')])&&_0x455eab[_0x564233][_0x1119('0x62')][_0x1119('0x114')](_0x349fdf),_0x1b3846['end']['isEqual'](_0x455eab[_0x564233][_0x1119('0x83')])&&_0x455eab[_0x564233][_0x1119('0x2c')]['push'](_0x349fdf);}[_0x1119('0x107')](_0x72543e,_0x3dc0f8){let _0xaac911=[],_0x4f1c6b=0x0,_0xd9df9=0x0;for(;_0x4f1c6b<_0x72543e['length']||_0xd9df9<_0x3dc0f8['length'];){const _0x1a6fea=_0x72543e[_0x4f1c6b]||{},_0x3001d9=_0x3dc0f8[_0xd9df9]||{};if(_0x1a6fea['id']==_0x3001d9['id'])_0x4f1c6b++,_0xd9df9++,_0xaac911['push'](_0x1a6fea);else{if(_0x3001d9[_0x1119('0xb8')]&&_0x1a6fea[_0x1119('0xc4')]){const {commonTape:_0x270225,iEnd:_0x460a20,jEnd:_0x3d65c4}=this[_0x1119('0x3a')](_0x72543e,_0x4f1c6b,_0x3dc0f8,_0xd9df9);_0xaac911=_0xaac911['concat'](_0x270225),_0x4f1c6b=_0x460a20,_0xd9df9=_0x3d65c4;}else _0x3001d9[_0x1119('0xb8')]?(_0xd9df9++,_0xaac911[_0x1119('0x114')](_0x3001d9)):(_0x4f1c6b++,_0xaac911['push'](_0x1a6fea));}}return _0xaac911;}['_markSuggestions'](_0x38f832,_0x20c4a4){const _0x44964e=[];for(let _0x1d67d4=0x0;_0x1d67d4<_0x38f832['length'];_0x1d67d4++){for(let _0x468412=0x0;_0x468412<_0x38f832[_0x1d67d4][_0x1119('0x62')][_0x1119('0x5a')];_0x468412++){const _0xcff1af=_0x38f832[_0x1d67d4][_0x1119('0x62')][_0x468412];if(!_0x20c4a4[_0x1119('0x7e')](_0xcff1af))continue;const {group:_0x364155,type:_0xf7605d,authorId:_0x1f2e98}=_0x4b70e8(_0xcff1af);'revision-suggestion'!=_0x364155||'insertion'!=_0xf7605d&&_0x1119('0x1f')!=_0xf7605d||(_0x44964e[_0x1119('0x26')]({'type':_0xf7605d,'name':_0xcff1af,'userId':_0x1f2e98}),_0x38f832[_0x1d67d4]['markersStart'][_0x1119('0xe7')](_0x468412,0x1),_0x468412--);}_0x10727b(_0x38f832[_0x1d67d4]);for(let _0x542b93=0x0;_0x542b93<_0x38f832[_0x1d67d4]['markersEnd'][_0x1119('0x5a')];_0x542b93++){const _0x373b5a=_0x38f832[_0x1d67d4]['markersEnd'][_0x542b93];if(!_0x20c4a4[_0x1119('0x7e')](_0x373b5a))continue;const {group:_0xe85269,type:_0x5967a2}=_0x4b70e8(_0x373b5a);if(_0x1119('0xc1')!=_0xe85269||_0x1119('0x5c')!=_0x5967a2&&_0x1119('0x1f')!=_0x5967a2)continue;_0x38f832[_0x1d67d4][_0x1119('0x2c')][_0x1119('0xe7')](_0x542b93,0x1),_0x542b93--;const _0x2567c9=_0x44964e[_0x1119('0x7d')](_0x30c1db=>_0x30c1db[_0x1119('0xba')]==_0x373b5a);_0x2567c9>-0x1&&_0x44964e['splice'](_0x2567c9,0x1);}}function _0x4b70e8(_0x37695d){const _0x36ee3b=_0x37695d[_0x1119('0xa0')](':');return{'group':_0x36ee3b[0x0],'type':_0x36ee3b[0x1],'subType':_0x36ee3b[_0x1119('0x5a')]>=0x5?_0x36ee3b[0x2]:null,'id':_0x36ee3b[_0x1119('0x5a')]<0x5?_0x36ee3b[0x2]:_0x36ee3b[0x3],'authorId':_0x36ee3b[_0x1119('0x5a')]<0x5?_0x36ee3b[0x3]:_0x36ee3b[0x4],'markerCount':0x6==_0x36ee3b[_0x1119('0x5a')]?_0x36ee3b[0x5]:null};}function _0x10727b(_0x230f6f){for(let _0x3e4e00=0x0;_0x3e4e00<_0x44964e[_0x1119('0x5a')];_0x3e4e00++){if(_0x230f6f[_0x1119('0xc4')]&&_0x1119('0x5c')==_0x44964e[_0x3e4e00]['type'])return _0x230f6f[_0x1119('0xa8')]=_0x44964e[_0x3e4e00],void delete _0x230f6f[_0x1119('0xc4')];if(!_0x230f6f[_0x1119('0xc4')]&&!_0x230f6f[_0x1119('0xb8')]&&'deletion'==_0x44964e[_0x3e4e00]['type'])return void(_0x230f6f[_0x1119('0xf5')]=_0x44964e[_0x3e4e00]);}}}[_0x1119('0xf3')](_0x3d661b,_0x55f0a0){let _0x254458=0x0,_0x33ab68=!0x1;const _0x108b43=new Map();for(const _0x5abf4a of _0x3d661b)_0x5abf4a[_0x55f0a0]?_0x33ab68&&(_0x254458++,_0x33ab68=!0x1):(_0x254458++,_0x33ab68=!0x0),_0x108b43[_0x1119('0xe5')](_0x5abf4a['id'],_0x254458);for(let _0x2097fd=0x0;_0x2097fd<_0x3d661b[_0x1119('0x5a')];_0x2097fd++){if(_0x1119('0xb8')==_0x55f0a0&&_0x3d661b[_0x2097fd][_0x1119('0xc4')]||_0x1119('0xc4')==_0x55f0a0&&_0x3d661b[_0x2097fd][_0x1119('0xb8')])continue;if(_0x1119('0x5')==_0x3d661b[_0x2097fd][_0x1119('0x48')]){_0x3d661b[_0x2097fd][_0x1119('0x3e')]=0x0;continue;}const _0x311431=_0x108b43[_0x1119('0x70')](_0x3d661b[_0x2097fd]['pairId']),_0x46015f=_0x108b43[_0x1119('0x70')](_0x3d661b[_0x2097fd]['id']);_0x3d661b[_0x2097fd][_0x1119('0x3e')]=_0x311431-_0x46015f;}}[_0x1119('0x10f')](_0xcb86b0,_0x35e8ad,_0x4e14a8=!0x1){const _0x379ba4=[];let _0x3538f9=this[_0x1119('0xa2')][_0x1119('0x55')](_0xcb86b0),_0x34c539=this[_0x1119('0xa2')][_0x1119('0x55')](_0x35e8ad);for(-0x1==_0x34c539&&(_0x34c539=this[_0x1119('0xa2')][_0x1119('0x106')]['length'],_0x4e14a8=!0x1);_0x3538f9<_0x34c539;)_0x379ba4[_0x1119('0x114')](this[_0x1119('0xa2')]['getRevision'](_0x3538f9)),_0x3538f9++;return _0x4e14a8&&_0x379ba4[_0x1119('0x114')](this[_0x1119('0xa2')]['getRevision'](_0x3538f9)),_0x379ba4;}[_0x1119('0x3a')](_0xbf9cc9,_0x2cf77d,_0x450c9b,_0xddf408){const _0x279d72=this['editor'][_0x1119('0x97')][_0x1119('0xd6')];let _0x36940f=_0x2cf77d;for(;_0xbf9cc9[_0x36940f]&&_0xbf9cc9[_0x36940f][_0x1119('0xc4')];)_0x36940f++;let _0x12a188=_0xddf408;for(;_0x450c9b[_0x12a188]&&_0x450c9b[_0x12a188][_0x1119('0xb8')];)_0x12a188++;_0x27768c(_0xbf9cc9,_0x2cf77d,_0x36940f),_0x27768c(_0x450c9b,_0xddf408,_0x12a188);const _0x4ace1f=_0x450c9b[_0x1119('0x116')](_0xddf408,_0x12a188)[_0x1119('0xfe')](_0xbf9cc9[_0x1119('0x116')](_0x2cf77d,_0x36940f));return _0x4ace1f[_0x1119('0x6b')]((_0xa6e058,_0x27e47f)=>_0xa6e058[_0x1119('0x4e')]!=_0x27e47f[_0x1119('0x4e')]?_0xa6e058['side']-_0x27e47f['side']:_0xa6e058['level']!=_0x27e47f[_0x1119('0xc9')]?_0xa6e058['level']-_0x27e47f[_0x1119('0xc9')]:_0xa6e058['distance']!=_0x27e47f['distance']?_0x27e47f[_0x1119('0x3e')]-_0xa6e058[_0x1119('0x3e')]:!!_0xa6e058[_0x1119('0xc4')]!=!!_0x27e47f['isAdded']?-0x1==_0xa6e058[_0x1119('0x4e')]||0x0==_0xa6e058[_0x1119('0x4e')]?_0xa6e058['isAdded']?-0x1:0x1:_0xa6e058['isAdded']?0x1:-0x1:_0xa6e058[_0x1119('0x112')]-_0x27e47f[_0x1119('0x112')]),{'commonTape':_0x4ace1f,'iEnd':_0x36940f,'jEnd':_0x12a188};function _0x27768c(_0x41b6e0,_0xdf17a8,_0x29f768){let _0x74a2a0=-0x1,_0x4cbe1b=Number[_0x1119('0x0')],_0x546ddb=!0x0;for(let _0x3a27a3=_0xdf17a8;_0x3a27a3<_0x29f768;_0x3a27a3++)if(_0x279d72['isInline'](_0x41b6e0[_0x3a27a3][_0x1119('0x91')])||(_0x546ddb=!0x1),_0x41b6e0[_0x3a27a3][_0x1119('0x91')][_0x1119('0x4a')]<_0xdf17a8&&(_0x74a2a0=_0x3a27a3),_0x41b6e0[_0x3a27a3][_0x1119('0x91')]['endIndex']>=_0x29f768){_0x4cbe1b=_0x3a27a3;break;}_0x546ddb&&(_0x74a2a0=_0x29f768-0x1);for(let _0x4d41f2=_0xdf17a8;_0x4d41f2<_0x29f768;_0x4d41f2++)_0x41b6e0[_0x4d41f2][_0x1119('0x4e')]=_0x4d41f2<=_0x74a2a0?-0x1:_0x4d41f2<_0x4cbe1b?0x0:0x1,_0x41b6e0[_0x4d41f2][_0x1119('0x112')]=_0x4d41f2;let _0x307d31=0x0;for(let _0x372b8c=_0xdf17a8;_0x372b8c<=_0x74a2a0;_0x372b8c++)0x0==_0x41b6e0[_0x372b8c][_0x1119('0x3e')]?_0x41b6e0[_0x372b8c][_0x1119('0xc9')]=_0x307d31:(_0x307d31++,_0x41b6e0[_0x372b8c]['level']=_0x307d31,_0x307d31++);for(let _0x171057=_0xdf17a8;_0x171057<_0x29f768;_0x171057++)0x0==_0x41b6e0[_0x171057]['side']&&(_0x41b6e0[_0x171057][_0x1119('0xc9')]=_0x307d31);_0x307d31=0x0;for(let _0x1d49b2=_0x29f768-0x1;_0x1d49b2>=_0x4cbe1b;_0x1d49b2--)0x0==_0x41b6e0[_0x1d49b2][_0x1119('0x3e')]?_0x41b6e0[_0x1d49b2][_0x1119('0xc9')]=_0x307d31:(_0x307d31--,_0x41b6e0[_0x1d49b2]['level']=_0x307d31,_0x307d31--);}}['_fixObsoleteTags'](_0x1e166a){const _0x1335f8=new Map(),_0x2c9c56=this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0xd6')];for(let _0x1d7b79=0x1;_0x1d7b79<_0x1e166a['length'];_0x1d7b79++){let _0x4cccae,_0x54c31c,_0x24cfe0;const _0xecdbd5=_0x1e166a[_0x1d7b79],_0x444171=_0x1e166a[_0x1d7b79-0x1];if(_0x1119('0x5')==_0xecdbd5['type'])continue;if(_0xecdbd5[_0x1119('0x48')]!=_0x444171['type'])continue;if(!_0x2c9c56[_0x1119('0x2d')](_0x444171[_0x1119('0x91')])||_0x2c9c56[_0x1119('0xb2')](_0x444171[_0x1119('0x91')]))continue;if(!_0x2c9c56[_0x1119('0x2d')](_0xecdbd5[_0x1119('0x91')])||_0x2c9c56[_0x1119('0xb2')](_0xecdbd5[_0x1119('0x91')]))continue;if((_0x1e166a[_0x1d7b79][_0x1119('0xc4')]||_0x1e166a[_0x1d7b79][_0x1119('0xa8')])&&_0x1e166a[_0x1d7b79-0x1][_0x1119('0xb8')])_0x4cccae=_0x1e166a[_0x1d7b79],_0x54c31c=_0x1e166a[_0x1d7b79-0x1],_0x24cfe0=_0x1d7b79-0x1;else{if(!_0x1e166a[_0x1d7b79][_0x1119('0xb8')]||!_0x1e166a[_0x1d7b79-0x1][_0x1119('0xc4')]&&!_0x1e166a[_0x1d7b79-0x1][_0x1119('0xa8')])continue;_0x4cccae=_0x1e166a[_0x1d7b79-0x1],_0x54c31c=_0x1e166a[_0x1d7b79],_0x24cfe0=_0x1d7b79;}const _0x12732d=_0x4cccae[_0x1119('0xc9')]==_0x54c31c[_0x1119('0xc9')],_0x381306=Math[_0x1119('0x27')](_0x4cccae[_0x1119('0xc9')])<Math['abs'](_0x54c31c[_0x1119('0xc9')])&&0x0==_0x54c31c['distance'];(_0x12732d||_0x381306)&&(_0x1335f8[_0x1119('0xe5')](_0x54c31c['id'],_0x4cccae['id']),_0x1e166a[_0x1119('0xe7')](_0x24cfe0,0x1),_0x1d7b79--,_0x4cccae[_0x1119('0xc4')]=!0x1);}for(let _0x190958=0x0;_0x190958<_0x1e166a[_0x1119('0x5a')];_0x190958++)_0x1335f8[_0x1119('0x7e')](_0x1e166a[_0x190958]['pairId'])&&(_0x1e166a[_0x190958][_0x1119('0x110')]=_0x1335f8['get'](_0x1e166a[_0x190958][_0x1119('0x110')]));}[_0x1119('0x72')](_0x2fdaec){const _0x2087fd=new Set(_0x2fdaec[_0x1119('0x60')](_0x14f4aa=>_0x14f4aa['id']));for(let _0x418be5=0x0;_0x418be5<_0x2fdaec[_0x1119('0x5a')];_0x418be5++)_0x2087fd['has'](_0x2fdaec[_0x418be5][_0x1119('0x110')])||0x0==_0x2fdaec[_0x418be5]['distance']||(_0x2fdaec[_0x418be5][_0x1119('0xa9')]=!0x0);return _0x2fdaec[_0x1119('0x77')](_0x58099e=>!_0x58099e[_0x1119('0xa9')]);}[_0x1119('0x11')](_0x1c4f14){const _0x156095=new Set();for(let _0x929fe=0x0;_0x929fe<_0x1c4f14[_0x1119('0x5a')];_0x929fe++){if(_0x156095[_0x1119('0x7e')](_0x1c4f14[_0x929fe]['id'])&&_0x1c4f14[_0x929fe]['isRemoved']&&(_0x1c4f14[_0x929fe][_0x1119('0xa9')]=!0x0),_0x1c4f14[_0x929fe][_0x1119('0xa9')])continue;if(0x0==_0x1c4f14[_0x929fe][_0x1119('0x3e')])continue;if(_0x1119('0x104')!=_0x1c4f14[_0x929fe][_0x1119('0x48')])continue;if(null==_0x1c4f14[_0x929fe][_0x1119('0x110')])continue;let _0x39242e=_0x929fe+0x1,_0x2ec6f2=0x0;for(;_0x1c4f14[_0x39242e]['id']!=_0x1c4f14[_0x929fe][_0x1119('0x110')];)'elementStart'==_0x1c4f14[_0x39242e][_0x1119('0x48')]?_0x2ec6f2++:'elementEnd'==_0x1c4f14[_0x39242e][_0x1119('0x48')]&&_0x2ec6f2--,_0x39242e++;if(0x0!=_0x2ec6f2){if(_0x1c4f14[_0x929fe][_0x1119('0xb8')])_0x1c4f14[_0x929fe][_0x1119('0xa9')]=!0x0;else for(;_0x39242e!=_0x929fe;)_0x1c4f14[_0x39242e][_0x1119('0xb8')]&&0x0!=_0x1c4f14[_0x39242e]['distance']&&(_0x1c4f14[_0x39242e][_0x1119('0xa9')]=!0x0,_0x156095[_0x1119('0x80')](_0x1c4f14[_0x39242e][_0x1119('0x110')])),_0x39242e--;}}return _0x1c4f14[_0x1119('0x77')](_0x3ac9de=>!_0x3ac9de['isIncorrect']);}['_removeUnsupportedChanges'](_0x237eaa){const _0x4c48c4=this[_0x1119('0x1c')][_0x1119('0x97')]['schema'];for(let _0x301e75=0x0;_0x301e75<_0x237eaa['length'];_0x301e75++){if(!(_0x237eaa[_0x301e75][_0x1119('0xc4')]||_0x237eaa[_0x301e75][_0x1119('0xa8')]||_0x237eaa[_0x301e75][_0x1119('0xb8')]||_0x237eaa[_0x301e75][_0x1119('0xf5')]))continue;if(0x0==_0x237eaa[_0x301e75][_0x1119('0x3e')])continue;const _0x4087c0=_0x237eaa[_0x301e75]['item'];_0x4c48c4[_0x1119('0x2d')](_0x4087c0)||_0x4c48c4[_0x1119('0xb2')](_0x4087c0)||(_0x237eaa[_0x301e75][_0x1119('0xc4')]&&delete _0x237eaa[_0x301e75][_0x1119('0xc4')],_0x237eaa[_0x301e75][_0x1119('0xa8')]&&delete _0x237eaa[_0x301e75][_0x1119('0xa8')],_0x237eaa[_0x301e75]['isRemoveSuggestion']&&delete _0x237eaa[_0x301e75][_0x1119('0xf5')],_0x237eaa[_0x301e75][_0x1119('0xb8')]&&(_0x237eaa[_0x301e75]['isIncorrect']=!0x0));}return _0x237eaa['filter'](_0x886f4a=>!_0x886f4a[_0x1119('0xa9')]);}[_0x1119('0x2b')](_0x3610e0,_0x30a3ad){const _0x43c5a2=new _0x13b4fb(),_0x13b5a7=[],_0x24e588=new Map(),_0x1fcebc=this[_0x1119('0x1c')]['model'],_0x22b164=_0x1fcebc[_0x1119('0xd6')],_0x2316f3=[_0x43c5a2],_0x42d072={},_0x46f68b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5d5ea4=null;const _0x2146df=[0x0];for(let _0xebe6b3=0x0;_0xebe6b3<_0x3610e0['length'];_0xebe6b3++){let _0x3dd026,_0x1d0adf;if('elementStart'===_0x3610e0[_0xebe6b3][_0x1119('0x48')]){_0x3dd026=_0x1fcebc['createPositionFromPath'](_0x43c5a2,_0x2146df);const _0x21c7d4=new _0x4b0204(_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0xba')],_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0xf')]());_0x2316f3[0x0][_0x1119('0xfc')](_0x21c7d4),_0x2146df[_0x1119('0x114')](0x0),_0x2316f3[_0x1119('0x26')](_0x21c7d4),_0x1d0adf=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df),_0x5d5ea4=null;}else{if(_0x1119('0xe0')===_0x3610e0[_0xebe6b3]['type'])_0x2316f3[_0x1119('0x2')](),_0x3dd026=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df),_0x2146df['pop'](),_0x2146df[_0x2146df['length']-0x1]++,_0x1d0adf=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df),_0x5d5ea4=null;else{if(_0x3dd026=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df),_0x5d5ea4&&_0x14d9ae(_0x5d5ea4,_0x3610e0[_0xebe6b3][_0x1119('0x91')]))_0x5d5ea4[_0x1119('0x59')]+=_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0x5d')];else{const _0x22a548=new _0x303393(_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0x5d')],_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0xf')]());_0x2316f3[0x0]['_appendChild'](_0x22a548),_0x5d5ea4=_0x22a548;}_0x2146df[_0x2146df['length']-0x1]+=_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0x1a')],_0x1d0adf=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df);}}for(const _0x5bbe56 of _0x3610e0[_0xebe6b3][_0x1119('0x62')])_0x24e588[_0x1119('0xe5')](_0x5bbe56,{'start':_0x3dd026,'end':null});_0x5c5852('isRemoveSuggestion',_0xebe6b3,_0x3dd026,_0x1d0adf),_0x5c5852('isAddSuggestion',_0xebe6b3,_0x3dd026,_0x1d0adf),_0x5c5852(_0x1119('0xb8'),_0xebe6b3,_0x3dd026,_0x1d0adf),_0x5c5852(_0x1119('0xc4'),_0xebe6b3,_0x3dd026,_0x1d0adf);for(const _0x529905 of _0x3610e0[_0xebe6b3][_0x1119('0x2c')]){_0x24e588[_0x1119('0x70')](_0x529905)[_0x1119('0x24')]=_0x1d0adf;}}for(const [_0x47c031,_0xa15578]of _0x24e588){const _0x1f0ad8=this[_0x1119('0x1c')]['model'][_0x1119('0x5f')](_0xa15578[_0x1119('0x19')],_0xa15578['end']);_0x43c5a2['markers'][_0x1119('0xe5')](_0x47c031,_0x1f0ad8);}return _0x13b5a7['sort']((_0x4be90c,_0x313bf0)=>{const _0x10e64f=_0x43c5a2[_0x1119('0xc6')][_0x1119('0x70')](_0x1119('0x4c')+_0x4be90c['id']),_0x4d51ba=_0x43c5a2[_0x1119('0xc6')][_0x1119('0x70')](_0x1119('0x4c')+_0x313bf0['id']);return _0x10e64f[_0x1119('0x19')][_0x1119('0xbe')](_0x4d51ba['start'])?-0x1:_0x10e64f[_0x1119('0x19')]['isAfter'](_0x4d51ba[_0x1119('0x19')])?0x1:_0x10e64f[_0x1119('0x24')][_0x1119('0xbe')](_0x4d51ba[_0x1119('0x24')])?-0x1:_0x10e64f[_0x1119('0x24')][_0x1119('0x109')](_0x4d51ba[_0x1119('0x24')])?0x1:_0x1119('0x80')===_0x4be90c[_0x1119('0x48')]?-0x1:0x1;}),{'root':_0x43c5a2,'changes':_0x13b5a7};function _0x5c5852(_0x472845,_0x5dea7c,_0x4d857e,_0x467b69){const _0xf4d9bb=!!_0x3610e0[_0x5dea7c][_0x472845],_0x25e378=_0xf4d9bb?_0x3610e0[_0x5dea7c][_0x472845][_0x1119('0x8f')]:null,_0xed3502=_0x5dea7c===_0x3610e0[_0x1119('0x5a')]-0x1,_0x5e0d65=_0x46f68b[_0x472845][0x0],_0x5f3cb4=_0x22b164[_0x1119('0x49')](_0x3610e0[_0x5dea7c][_0x1119('0x91')]);!_0x42d072[_0x472845]&&_0xf4d9bb?_0x42d072[_0x472845]={'start':_0x4d857e,'tapeItem':_0x3610e0[_0x5dea7c],'userId':_0x25e378,'type':_0x472845}:_0x42d072[_0x472845]&&!_0xf4d9bb?(_0x42d072[_0x472845][_0x1119('0x24')]=_0x4d857e,_0x4e051e(_0x42d072[_0x472845]),_0x42d072[_0x472845]=null):_0x42d072[_0x472845]&&_0xf4d9bb&&_0x42d072[_0x472845]['userId']!==_0x25e378&&(_0x42d072[_0x472845][_0x1119('0x24')]=_0x4d857e,_0x5e0d65&&_0x5e0d65[_0x1119('0x8f')]===_0x42d072[_0x472845][_0x1119('0x8f')]||_0x4e051e(_0x42d072[_0x472845]),_0x42d072[_0x472845]={'start':_0x4d857e,'tapeItem':_0x3610e0[_0x5dea7c],'userId':_0x25e378,'type':_0x472845}),_0x42d072[_0x472845]&&_0x5f3cb4&&(_0x1119('0x104')!==_0x3610e0[_0x5dea7c]['type']||_0x5e0d65&&_0x5e0d65[_0x1119('0x8f')]===_0x25e378||_0x46f68b[_0x472845][_0x1119('0x26')]({'userId':_0x25e378,'object':_0x3610e0[_0x5dea7c]['item'],'change':_0x42d072[_0x472845]}),_0x1119('0xe0')===_0x3610e0[_0x5dea7c][_0x1119('0x48')]&&_0x5e0d65&&_0x5e0d65['object']===_0x3610e0[_0x5dea7c][_0x1119('0x91')]&&(_0x46f68b[_0x472845]['shift'](),_0x42d072[_0x472845]=_0x5e0d65[_0x1119('0x63')])),_0x42d072[_0x472845]&&_0xed3502&&(_0x42d072[_0x472845]['end']=_0x467b69,_0x4e051e(_0x42d072[_0x472845]),_0x42d072[_0x472845]=null);}function _0x4e051e({start:_0x24307f,end:_0x1e045d,tapeItem:_0x7e6cff,userId:_0x539a9e,type:_0x433988}){const _0x3d9c46=_0x7e6cff[_0x1119('0x91')],_0x556f3f=_0x1fcebc[_0x1119('0xd6')]['isBlock'](_0x3d9c46)&&!_0x1fcebc['schema']['isLimit'](_0x3d9c46),_0x10db97=_0x24307f['nodeAfter']==_0x1e045d[_0x1119('0x38')]&&_0x1e045d[_0x1119('0x6a')];if(_0x556f3f&&_0x10db97)return;const _0x20a294=_0x1fcebc[_0x1119('0x5f')](_0x24307f,_0x1e045d),_0x3819fa=_0x30a3ad[_0x1119('0x70')](_0x539a9e),_0xab0b8c=new _0x306fe0({'author':_0x3819fa,'type':_0x1119('0xc4')==_0x433988||_0x1119('0xa8')==_0x433988?_0x1119('0x80'):_0x1119('0x42'),'data':{'isSuggestion':_0x1119('0xa8')==_0x433988||_0x1119('0xf5')==_0x433988},'createdAt':new Date()});_0x13b5a7['push'](_0xab0b8c),_0x43c5a2[_0x1119('0xc6')]['set'](_0x1119('0x4c')+_0xab0b8c['id'],_0x20a294);}function _0x14d9ae(_0x75649c,_0x882825){const _0x2e209c=_0x75649c['getAttributes'](),_0x59aeb5=_0x882825[_0x1119('0xf')]();for(const _0x3cb058 of _0x2e209c){if(_0x3cb058[0x1]!==_0x882825[_0x1119('0x81')](_0x3cb058[0x0]))return!0x1;_0x59aeb5[_0x1119('0x74')]();}return _0x59aeb5[_0x1119('0x74')]()[_0x1119('0x65')];}}[_0x1119('0x3d')](){this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xa6'))[_0x1119('0x84')]({'view':_0x1119('0xa4')}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0x50'))[_0x1119('0x25')]({'model':_0x1119('0xa4'),'view':_0x438cd3=>{const _0x5a1b3d=_0x438cd3['markerName']['split'](':')[0x1],_0x1e62c4=this['_getChangeFromId'](_0x5a1b3d);if(!_0x1e62c4)return null;const _0x3199d1=_0x1119('0x80')==_0x1e62c4[_0x1119('0x48')]?'insertion':_0x1119('0x1f'),_0x3538b9=['ck-suggestion-marker',_0x1119('0x99')+_0x3199d1];return _0x1e62c4['data'][_0x1119('0x88')]&&_0x3538b9['push'](_0x1119('0x99')+_0x3199d1+_0x1119('0x9d')),this[_0x1119('0xcd')]==_0x1e62c4&&_0x3538b9[_0x1119('0x114')](_0x1119('0x47')),{'classes':_0x3538b9,'attributes':{'data-change-id':_0x5a1b3d}};}}),this[_0x1119('0x1c')]['conversion'][_0x1119('0xe9')](_0x1119('0xa6'))['add'](_0x6a9617=>{_0x6a9617['on'](_0x1119('0xa5'),(_0x9cc043,_0x3cabe7,_0x881bab)=>{const _0x4c0455=_0x3cabe7['viewItem'][_0x1119('0x13')](0x0);if(!_0x4c0455||!_0x4c0455['is']('element',_0x1119('0xff')))return;if(!_0x881bab[_0x1119('0x115')][_0x1119('0xfb')](_0x4c0455,{'attributes':[_0x1119('0xe'),_0x1119('0x5e')]}))return;const _0x4f3c7c=_0x3cabe7[_0x1119('0xce')][_0x1119('0x19')]['nodeAfter'];_0x881bab['writer']['setAttribute']('vid_start',_0x4c0455[_0x1119('0x81')](_0x1119('0xe')),_0x4f3c7c),_0x881bab[_0x1119('0x36')][_0x1119('0x14')](_0x1119('0x5e'),_0x4c0455['getAttribute'](_0x1119('0x5e')),_0x4f3c7c);},{'priority':_0x1119('0x3c')});}),this[_0x1119('0x1c')]['conversion'][_0x1119('0xe9')](_0x1119('0xa6'))[_0x1119('0x80')](_0x2af069=>{_0x2af069['on']('element',(_0x1dd54e,_0x4983cb,_0x4926b4)=>{if(!_0x4926b4[_0x1119('0x115')][_0x1119('0xfb')](_0x4983cb[_0x1119('0x40')],{'attributes':[_0x1119('0xe'),_0x1119('0x5e')]}))return;if(_0x4983cb['modelRange'][_0x1119('0xb3')])return;const _0x425572=_0x4983cb[_0x1119('0xce')][_0x1119('0x19')][_0x1119('0x1')];_0x425572[_0x1119('0xf9')]('vid_start')||_0x425572[_0x1119('0xf9')](_0x1119('0xd1'))||(_0x4926b4[_0x1119('0x36')][_0x1119('0x14')]('vid_start',_0x4983cb[_0x1119('0x40')]['getAttribute'](_0x1119('0xe')),_0x425572),_0x4926b4[_0x1119('0x36')][_0x1119('0x14')](_0x1119('0x5e'),_0x4983cb[_0x1119('0x40')]['getAttribute'](_0x1119('0x5e')),_0x425572));},{'priority':'low'});}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xa6'))['elementToAttribute']({'view':{'name':_0x1119('0xeb'),'attributes':{'vid':!0x0}},'model':{'key':_0x1119('0xd1'),'value':_0x25abc0=>_0x25abc0[_0x1119('0x81')](_0x1119('0xd1'))}}),this['editor'][_0x1119('0x97')][_0x1119('0xd6')]['on'](_0x1119('0x58'),(_0x320543,[,_0x214035])=>{[_0x1119('0xe'),_0x1119('0x5e'),_0x1119('0xd1')][_0x1119('0x111')](_0x214035)&&(_0x320543[_0x1119('0xfd')]=!0x0,_0x320543[_0x1119('0x2e')]());},{'priority':_0x1119('0xea')}),this[_0x1119('0x1c')]['conversion'][_0x1119('0xe9')](_0x1119('0xdc'))[_0x1119('0x80')](_0x152ef4=>{_0x152ef4['on']('attribute:vid',(_0x2a5cec,_0x4d3af9,_0xd0bae7)=>{if('\x20'!=_0x4d3af9[_0x1119('0x91')][_0x1119('0x5d')]||_0x4d3af9[_0x1119('0x91')][_0x1119('0x38')][_0x1119('0xa3')]>0x1)return;if(!_0xd0bae7[_0x1119('0x115')][_0x1119('0xfb')](_0x4d3af9[_0x1119('0x91')],_0x2a5cec[_0x1119('0xba')]))return;const _0x71eb7f=_0xd0bae7[_0x1119('0x36')],_0xd7620d=_0xd0bae7[_0x1119('0xbc')][_0x1119('0xb')](_0x4d3af9[_0x1119('0x8a')]);_0x71eb7f[_0x1119('0x10a')](_0xd7620d,_0x71eb7f[_0x1119('0x8c')](_0x1119('0xeb')));});}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xdc'))[_0x1119('0x7a')]({'model':_0x1119('0xa4')}),this[_0x1119('0x1c')][_0x1119('0x9c')]['downcastDispatcher']['on'](_0x1119('0x10b'),function(_0x19538c){const _0x4b38f9=_0x19538c['plugins'][_0x1119('0x70')]('RevisionViewer');return(_0x2bd219,_0x16d32a,_0x34c4f6)=>{const _0x34d1e9=_0x16d32a['markerName']['split'](':')[0x1],_0xaf044e=_0x4b38f9[_0x1119('0x64')](_0x34d1e9);if(!_0xaf044e)return null;const _0x43b33c=_0x1119('0x80')==_0xaf044e[_0x1119('0x48')]?_0x1119('0xa0'):_0x1119('0xd4');if(!_0x34c4f6[_0x1119('0x115')]['test'](_0x16d32a['markerRange'],_0x2bd219[_0x1119('0xba')]))return;const _0x3d3a77=_0x16d32a[_0x1119('0xb7')][_0x1119('0x6c')](),_0x2c4187=_0x16d32a['markerRange'][_0x1119('0x19')],_0x171b06=_0x19538c[_0x1119('0x97')]['schema'];let _0x37d37c=null,_0x4a6d7e=null,_0x57c874=!0x1,_0x3c0858=!0x1;for(const _0x173a27 of _0x3d3a77){const _0xb8cd54=_0x173a27['item'];_0x57c874=_0x57c874||_0x171b06[_0x1119('0x92')](_0xb8cd54);const _0x1f983a=_0x34c4f6[_0x1119('0xbc')][_0x1119('0xbf')](_0xb8cd54);if(_0x1f983a&&_0x1f983a['getCustomProperty'](_0x1119('0x10d')))return;_0x1119('0xe0')==_0x173a27[_0x1119('0x48')]&&(_0x171b06['isBlock'](_0xb8cd54)&&!_0x171b06[_0x1119('0xb2')](_0xb8cd54)&&(_0xb8cd54['nextSibling']||_0x2c4187[_0x1119('0xb6')]?_0x37d37c&&_0x37d37c[_0x1119('0x38')]==_0xb8cd54||(_0x37d37c=_0xb8cd54,_0x562adc(_0x173a27[_0x1119('0xa1')]),_0x3c0858=!0x0):_0x4a6d7e=_0x4a6d7e||_0x173a27['previousPosition']));}function _0x562adc(_0x4a22e3){const _0xc86e35=_0x34c4f6[_0x1119('0x36')]['createUIElement'](_0x1119('0xeb'),{'class':'ck-suggestion-marker-'+_0x43b33c}),_0x506d15=_0x34c4f6['mapper'][_0x1119('0x2f')](_0x4a22e3);_0xaf044e['data']['isSuggestion']&&_0x34c4f6[_0x1119('0x36')][_0x1119('0xf1')](_0x1119('0x99')+_0x43b33c+'-new',_0xc86e35),_0x4b38f9[_0x1119('0xcd')]==_0xaf044e&&_0x34c4f6[_0x1119('0x36')]['addClass'](_0x1119('0x47'),_0xc86e35),_0x34c4f6[_0x1119('0x36')][_0x1119('0xdf')](_0x506d15,_0xc86e35),_0x34c4f6['mapper']['bindElementToMarker'](_0xc86e35,_0x16d32a[_0x1119('0x87')]);}_0x57c874||_0x3c0858||!_0x4a6d7e||_0x562adc(_0x4a6d7e);};}(this[_0x1119('0x1c')]),{'priority':'high'}),this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xc2')]['on'](_0x1119('0x1d'),(_0x59efb6,_0x1c2316,_0xc92850)=>{const _0x3608b7=_0xc92850[_0x1119('0xbc')][_0x1119('0xe6')](_0x1c2316[_0x1119('0x87')]);if(_0x3608b7)for(const _0x5832ca of _0x3608b7)(_0x5832ca[_0x1119('0xc7')](_0x1119('0x8d'))||_0x5832ca[_0x1119('0xc7')](_0x1119('0x52')))&&(_0xc92850[_0x1119('0xbc')]['unbindElementFromMarkerName'](_0x5832ca,_0x1c2316[_0x1119('0x87')]),_0xc92850[_0x1119('0x36')][_0x1119('0x42')](_0x5832ca));},{'priority':'high'}),this['editor']['editing'][_0x1119('0xc2')]['on'](_0x1119('0x10b'),(_0x2ea218,_0x33ce18,_0x1e906b)=>{const _0x2cdc96=_0x33ce18['markerName']['split'](':')[0x1],_0x34d36b=this['_getChangeFromId'](_0x2cdc96);if(!_0x34d36b)return null;const _0x2e3abc=_0x1119('0x80')==_0x34d36b[_0x1119('0x48')]?_0x1119('0xa0'):'merge';if(_0x1e906b[_0x1119('0x115')]['test'](_0x33ce18[_0x1119('0xb7')],_0x2ea218['name']))for(const _0x44c4ed of _0x33ce18[_0x1119('0xb7')][_0x1119('0x16')]()){if(!_0x44c4ed['is'](_0x1119('0x51'),_0x1119('0xda')))continue;const _0x16450c=_0x1e906b[_0x1119('0x36')][_0x1119('0xf7')](_0x1119('0xeb'),{'class':_0x1119('0x99')+_0x2e3abc}),_0x455860=_0x1e906b[_0x1119('0xbc')][_0x1119('0x2f')](this[_0x1119('0x1c')]['model'][_0x1119('0x100')](_0x44c4ed));_0x34d36b[_0x1119('0x5d')][_0x1119('0x88')]&&_0x1e906b[_0x1119('0x36')][_0x1119('0xf1')](_0x1119('0x99')+_0x2e3abc+'-new',_0x16450c),this[_0x1119('0xcd')]==_0x34d36b&&_0x1e906b['writer'][_0x1119('0xf1')](_0x1119('0x47'),_0x16450c),_0x1e906b[_0x1119('0x36')]['insert'](_0x455860,_0x16450c),_0x1e906b[_0x1119('0xbc')]['bindElementToMarker'](_0x16450c,_0x33ce18['markerName']);}},{'priority':_0x1119('0x17')}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')]('upcast')[_0x1119('0x84')]({'view':_0x1119('0x66'),'model':_0x5b33c5=>'revision-comment:'+_0x5b33c5,'converterPriority':_0x1119('0xea')}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xa6'))[_0x1119('0x84')]({'view':'suggestion','model':_0x5364fd=>_0x1119('0x21')+_0x5364fd,'converterPriority':_0x1119('0xea')}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xdc'))['markerToData']({'model':_0x1119('0xc1'),'view':_0x52432e=>({'name':_0x1119('0x7b')+_0x52432e,'group':'revision-suggestion'}),'converterPriority':_0x1119('0xea')}),this['editor']['conversion']['for'](_0x1119('0x50'))[_0x1119('0x25')]({'model':'revision-suggestion','view':_0x4b2eb2=>{const _0x1e0611=_0x4b2eb2['markerName'][_0x1119('0xa0')](':')[0x1];return _0x1119('0x5c')!=_0x1e0611&&_0x1119('0x1f')!=_0x1e0611?null:{'classes':[_0x1119('0x117'),_0x1119('0xbd')+_0x1e0611]};}}),this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xc2')]['on'](_0x1119('0xed'),Q(this[_0x1119('0x1c')],'merge'),{'priority':_0x1119('0x17')}),this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xc2')]['on'](_0x1119('0x31'),Q(this['editor'],'split'),{'priority':_0x1119('0x17')}),this['editor'][_0x1119('0x9c')][_0x1119('0xc2')]['on'](_0x1119('0x5b'),(_0x3afe59,_0x32dbf9,_0x20f890)=>{const _0x4c4048=_0x20f890[_0x1119('0xbc')][_0x1119('0xe6')](_0x32dbf9[_0x1119('0x87')]);if(_0x4c4048)for(const _0x584bed of _0x4c4048)_0x584bed['is'](_0x1119('0xcc'))&&(_0x20f890[_0x1119('0xbc')][_0x1119('0xfa')](_0x584bed,_0x32dbf9['markerName']),_0x20f890[_0x1119('0x36')][_0x1119('0x42')](_0x584bed));},{'priority':_0x1119('0x17')});}[_0x1119('0x64')](_0xd74e67){return this[_0x1119('0x9a')][_0x1119('0x70')](_0xd74e67);}['_getViewForChange'](_0x1b9a1b){return this[_0x1119('0xc8')]&&this[_0x1119('0xc8')]['destroy'](),this[_0x1119('0xc8')]=new _0x2a8a3e(this['editor']['locale'],_0x1b9a1b),this[_0x1119('0xc8')];}[_0x1119('0xe4')](){this['editor'][_0x1119('0x97')][_0x1119('0x8e')]['selection']['observeMarkers']('revision'),this['on'](_0x1119('0xe2'),(_0xe9d7f3,_0x4d419d,_0x2d34bf,_0x2adbc3)=>{_0x2adbc3&&this[_0x1119('0x108')][_0x1119('0x42')](_0x2adbc3),_0x2d34bf&&(this[_0x1119('0x108')][_0x1119('0x80')]({'view':_0x2d34bf,'stackId':_0x1119('0x78'),'position':{'target':()=>{const _0x1134da=this['editor'][_0x1119('0x9c')],_0x36705c=this['editor'][_0x1119('0x97')][_0x1119('0xc6')][_0x1119('0x70')](_0x1119('0x4c')+_0x2d34bf['changeId']),_0x57fbe8=Array[_0x1119('0x3f')](_0x1134da[_0x1119('0xbc')][_0x1119('0xe6')](_0x36705c[_0x1119('0xba')]))[_0x1119('0x60')](_0x538a23=>_0x1134da['view'][_0x1119('0x8b')][_0x1119('0x53')](_0x538a23))['map'](_0x15ae4f=>Array['from'](_0x15ae4f[_0x1119('0x1b')]()))[_0x1119('0xc')]();if(!this[_0x1119('0x6f')])return _0x57fbe8[0x0];return _0x57fbe8[_0x1119('0x93')](_0x374d36=>_0x374d36[_0x1119('0x113')]-0x3<=this[_0x1119('0x6f')]['y']&&_0x374d36[_0x1119('0x33')]+0x3>=this['_activeViewTarget']['y']&&_0x374d36[_0x1119('0xd7')]-0x3<=this['_activeViewTarget']['x']&&_0x374d36[_0x1119('0xaa')]+0x3>=this[_0x1119('0x6f')]['x'])||_0x57fbe8[0x0];}}}),this[_0x1119('0x108')]['showStack'](_0x1119('0x78')));}),this['on']('change:activeChange',(_0x52fbe1,_0x1a44b6,_0x4a9686,_0x513481)=>{this[_0x1119('0x44')]=_0x4a9686?this[_0x1119('0x15')](_0x4a9686):null,this['editor'][_0x1119('0x97')][_0x1119('0x63')](()=>{const _0x5e89a3=this[_0x1119('0x1c')][_0x1119('0x9c')];_0x513481&&_0x5e89a3[_0x1119('0x68')](_0x1119('0x4c')+_0x513481['id']),_0x4a9686&&_0x5e89a3[_0x1119('0x68')](_0x1119('0x4c')+_0x4a9686['id']);});}),this[_0x1119('0xe3')](this[_0x1119('0x1c')][_0x1119('0x9c')]['view'][_0x1119('0x8e')],_0x1119('0x76'),(_0x475410,_0x36603b)=>{if(this[_0x1119('0xcd')])return;const _0x3bc94=this[_0x1119('0x3b')](_0x36603b[_0x1119('0xca')]),_0x2300ef=this[_0x1119('0x9a')]['get'](_0x3bc94);_0x2300ef?(this[_0x1119('0x6f')]={'x':_0x36603b[_0x1119('0x4')]['x'],'y':_0x36603b['domEvent']['y']},this[_0x1119('0x44')]=this['_getViewForChange'](_0x2300ef)):(this['_activeViewTarget']=null,this[_0x1119('0x44')]=null);}),this[_0x1119('0xe3')](this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xab')]['document'],'mousedown',(_0x3253e6,_0xee4b82)=>{const _0x33a922=this[_0x1119('0x3b')](_0xee4b82[_0x1119('0xca')]),_0x5db51e=this[_0x1119('0x9a')][_0x1119('0x70')](_0x33a922);_0x5db51e?(this[_0x1119('0x6f')]={'x':_0xee4b82['domEvent']['x'],'y':_0xee4b82[_0x1119('0x4')]['y']},_0x5db51e===this['activeChange']?this[_0x1119('0x108')][_0x1119('0x101')]():this[_0x1119('0xcd')]=_0x5db51e):(this[_0x1119('0x6f')]=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xd8f4e3){do{const _0x47da3d=_0xd8f4e3[_0x1119('0x81')](_0x1119('0x102'));if(_0x47da3d)return _0x47da3d;_0xd8f4e3=_0xd8f4e3['parent'];}while(_0xd8f4e3);return null;}[_0x1119('0xcf')](){this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0x63')](_0x3d71ee=>{for(const _0x50f7dc of this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0xc6')])_0x3d71ee[_0x1119('0xdb')](_0x50f7dc);});}}function Q(_0x58e413,_0x10dc4f){return(_0x2e89cf,_0x36b70f,_0x3c25d5)=>{if(!_0x3c25d5[_0x1119('0x115')][_0x1119('0x30')](_0x36b70f['markerRange'],_0x2e89cf[_0x1119('0xba')]))return;const _0x36a52c=_0x36b70f[_0x1119('0xb7')]['getWalker'](),_0x5941c2=_0x36b70f[_0x1119('0xb7')][_0x1119('0x19')],_0x4f797a=_0x58e413[_0x1119('0x97')][_0x1119('0xd6')];let _0x1ecdc7=null,_0x2f5606=null,_0x5f4c76=!0x1,_0x502692=!0x1;for(const _0x27a658 of _0x36a52c){const _0x1ea56b=_0x27a658[_0x1119('0x91')];_0x5f4c76=_0x5f4c76||_0x4f797a[_0x1119('0x92')](_0x1ea56b);const _0x587b43=_0x3c25d5[_0x1119('0xbc')][_0x1119('0xbf')](_0x1ea56b);if(_0x587b43&&_0x587b43[_0x1119('0x54')](_0x1119('0x10d')))return;_0x1119('0xe0')==_0x27a658[_0x1119('0x48')]&&(_0x4f797a[_0x1119('0x2d')](_0x1ea56b)&&!_0x4f797a[_0x1119('0xb2')](_0x1ea56b)&&(_0x1ea56b['nextSibling']||_0x5941c2[_0x1119('0xb6')]?_0x1ecdc7&&_0x1ecdc7[_0x1119('0x38')]==_0x1ea56b||(_0x1ecdc7=_0x1ea56b,_0x13acf4(_0x27a658[_0x1119('0xa1')]),_0x502692=!0x0):_0x2f5606=_0x2f5606||_0x27a658[_0x1119('0xa1')]));}function _0x13acf4(_0x498bc5){const _0x7d08dc=_0x3c25d5[_0x1119('0xbc')][_0x1119('0x2f')](_0x498bc5),_0x4d7018=_0x3c25d5[_0x1119('0x36')][_0x1119('0xf7')](_0x1119('0xeb'),{'class':_0x1119('0xbd')+_0x10dc4f});_0x3c25d5['writer']['insert'](_0x7d08dc,_0x4d7018),_0x3c25d5[_0x1119('0xbc')][_0x1119('0x29')](_0x4d7018,_0x36b70f['markerName']);}_0x5f4c76||_0x502692||!_0x2f5606||_0x13acf4(_0x2f5606);};}export class RestoreRevisionCommand extends _0x51c7a9{constructor(_0x153f0d){super(_0x153f0d);const _0x5948b1=_0x153f0d['plugins'][_0x1119('0x70')](y);this[_0x1119('0x90')](_0x153f0d,_0x1119('0xf6')),this[_0x1119('0xde')](_0x1119('0x4f')),this[_0x1119('0xe3')](_0x5948b1,_0x1119('0xd'),()=>this[_0x1119('0x37')]()),this['listenTo'](_0x5948b1,'change:isEnabled',()=>this[_0x1119('0x37')]());}[_0x1119('0x61')](){const _0x19f7b0=this[_0x1119('0x1c')],_0x2616e0=_0x19f7b0[_0x1119('0x18')]['get'](y),_0x535d9e=_0x2616e0['isReady']?_0x2616e0[_0x1119('0x3')][_0x1119('0x46')]:null;_0x19f7b0[_0x1119('0x94')]['get'](_0x1119('0xb0'))[_0x1119('0x9f')](_0x535d9e);}[_0x1119('0x37')](){const {isReady:_0x296f71,isEnabled:_0x279a3a}=this['editor'][_0x1119('0x18')][_0x1119('0x70')](y);this['isEnabled']=_0x296f71&&_0x279a3a;}}export class ShowChangeCommand extends _0x51c7a9{constructor(_0x1463e3,{direction:_0x94e831}){super(_0x1463e3);const _0x10db11=_0x1463e3[_0x1119('0x18')][_0x1119('0x70')](y);this[_0x1119('0x90')](_0x1463e3,_0x1119('0xf6')),this[_0x1119('0xde')](_0x1119('0x4f')),this[_0x1119('0x75')]=_0x1119('0x6e')===_0x94e831?0x1:-0x1,this[_0x1119('0xe3')](_0x10db11,_0x1119('0xd'),()=>this[_0x1119('0x37')]()),this['listenTo'](_0x10db11,_0x1119('0xc5'),()=>this[_0x1119('0x37')]());}[_0x1119('0x61')](){const _0x1e3a89=this[_0x1119('0x1c')],_0x5b6d7c=_0x1e3a89[_0x1119('0x18')][_0x1119('0x70')](y),{isNavigationMode:_0xa0efe6,currentChangeNumber:_0x10c799}=_0x5b6d7c;_0x5b6d7c['activeChange']=_0xa0efe6?_0x5b6d7c[_0x1119('0x3')]['changes'][_0x1119('0x70')](_0x10c799+this[_0x1119('0x75')]):_0x5b6d7c['diff'][_0x1119('0x32')][_0x1119('0x10')];const _0x1945da=_0x1e3a89['model'][_0x1119('0xc6')][_0x1119('0x70')](_0x1119('0x4c')+_0x5b6d7c[_0x1119('0xcd')]['id']),_0x59b507=_0x112317(_0x1e3a89['editing'],_0x1945da);_0x572c4d({'target':_0x59b507,'viewportOffset':0x28});}[_0x1119('0x37')](){const {isNavigationMode:_0x1ab8ae,currentChangeNumber:_0x34061c,numberOfChanges:_0x30e392,isReady:_0x14eec8,isEnabled:_0x106594}=this['editor'][_0x1119('0x18')]['get'](y);this[_0x1119('0xdd')]=!!(_0x106594&&_0x14eec8&&_0x30e392)&&(!_0x1ab8ae||(0x1===this['_step']?_0x34061c<_0x30e392-0x1:_0x34061c>0x0));}}
|
|
23
|
+
const _0x3f6b=['dataDowncast','_findChangeIdFromDomTarget','RevisionsRepository','isCollapsed','processor','createRangeIn','removeMarker:revision','_makeTape','filter','side','change:activeView','revisionHistoryLabel','_makeModelFromViewString','pop','commands','isReady','document','isIncorrect','change:activeChange','revision:','_getRevisionsRange','item','clearForceDisabled','_joinTapes','getClientRects','sort','numberOfChanges','highest','find','forceDisabled','_setData','nextSibling','downcastDispatcher','text','createPositionBefore','right','changes','bindElementToMarker','isAddSuggestion','vid_end','element:pre','conversion','getChild','mouseover','addClass','isLimit','unbindElementFromMarkerName','_getChangeFromId','activeView','isRemoved','getItems','_cleanUp','collaboration.channelId','elementToAttribute','parent','splice','addHighlight','change:isReady','span','requires','insertions','add','isBefore','view','getRevisionData','endIndex','init','getCustomProperty','data-change-id','keys','revision','level','setAttribute','<p></p>','change:isEnabled','target','listenTo','newRevisionId','forward','addMarker:revision-suggestion:insertion','then','_makeModelFromTape','RevisionViewer','revision-suggestion','ck-editor__editable__overlay','code','_markMismatchedRemovedTags','_setDistance','shift','restoreRevision','ck-suggestion-preview-marker','left','createPositionFromPath','vid','stop','addRevisionData','consumable','editor','isNavigationMode','_markMarkers','revision-viewer','getRootNames','backward','_getViewObj','domConverter','hasAttribute','nextPosition','softBreak','revision-comment:','getIndex','_removeRevisionMarkers','suggestion:','change:numberOfChanges','isAtEnd','_getViewForChange','insertion','deletions','userId','plugins','markerToData','upcast','ck-suggestion-marker--active','isAtStart','schema','done','resolve','get','_activeViewTarget','repository','attributes','mousedown','_getDiff','diff','set','addRevision','error','_appendChild','isRemoveSuggestion','isEnabled','config','high','markerNameToElements','createRange','ck-suggestion-marker','slice','concat','default','data','useFillerType','POSITIVE_INFINITY','readOnlyMode','isInline','revisionHistory','updatePosition','selection','stopListening','wrap','markerRange','isAfter','toModel','compare','isEqual','children','push','string','clear','markers','roots','startIndex','start','showStack','vid_start','change:isReadOnly','ck-suggestion-marker-split','element','suggestion','comment','execute','isObject','_setConversion','refresh','catch','viewItem','model','merge','index','map','_revisions','_update','_refreshStartEndIndex','elementEnd','markerToHighlight','getAttributes','_markSuggestions','adapter','markersStart','toViewElement','_changeIdToChange','oldRevisionId','startsWith','bottom','toViewRange','nodeAfter','getAttribute','editingDowncast','dataToMarker','_removeUnsupportedChanges','_balloon','getRoot','writer','flat','previousPosition','includes','deletion','revision-suggestion:','_step','isContent','from','mapper','pluginName','_initInteractions','pairId','activeChange','diffData','distance','abs','isSuggestion','top','end','removeClass','reconvertMarker','name','changeId','addMarker:revision-suggestion:deletion','_data','offsetSize','split','remove','length','has','currentChangeNumber','markerName','ck-suggestion-marker-','forEach','low','_cleanMarkers','addMarker:revision','findIndex','next','getWalker','_fixObsoleteTags','revision-end','type','getRevision','parse','-new','domEvent','toViewPosition','createRevision','loadRevisionData','_threeWayMerge','isBlock','_markInsertions','enableReadOnlyMode','unshift','createUIElement','editing','modelRange','checkAttribute','destroy','markersEnd','showPreviousChange','return','change','object','_processTape','marked','values','test','WidgetToolbarRepository','for','consume','insert','_changeView','isAdded','elementStart','hasClass','revision-start'];(function(_0x22952a,_0x3f6bbd){const _0x4c817c=function(_0x139b69){while(--_0x139b69){_0x22952a['push'](_0x22952a['shift']());}};_0x4c817c(++_0x3f6bbd);}(_0x3f6b,0xf5));const _0x4c81=function(_0x22952a,_0x3f6bbd){_0x22952a=_0x22952a-0x0;let _0x4c817c=_0x3f6b[_0x22952a];return _0x4c817c;};import{Plugin as _0x5e3787,Command as _0xf77865}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x19d354}from'ckeditor5/src/utils';import{ContextualBalloon as _0x360046}from'ckeditor5/src/ui';import{DocumentFragment as _0x21cf73,Element as _0x298d33,Text as _0x399eed,ViewDocumentFragment as _0x4fdcff,ViewText as _0x36b9f4,ViewElement as _0x14b28,ViewContainerElement as _0x25f205,ViewAttributeElement as _0x4c63f3,ViewEmptyElement as _0x185097,ViewRawElement as _0x55cd9b,ViewUIElement as _0x512e4c}from'ckeditor5/src/engine';import{Users as _0x4aa3f6,getMarkerDomElement as _0x2ec871}from'ckeditor5-collaboration/src/collaboration-core';import _0x50847a from'./ui/revisionviewer/changedetailsview';import _0x146b8d from'./revisionsrepository';import _0x259e28 from'./changeitem';import{default as _0x42dd6e}from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0x25f205,'a':_0x4c63f3,'e':_0x185097,'r':_0x55cd9b,'u':_0x512e4c};export default class y extends _0x5e3787{static get[_0x4c81('0x106')](){return _0x4c81('0x7d');}static get[_0x4c81('0x66')](){return[_0x4aa3f6,_0x360046,_0x146b8d];}constructor(_0x55ca21){super(_0x55ca21),this[_0x4c81('0xab')]=this['editor'][_0x4c81('0xa1')][_0x4c81('0xa9')](_0x4c81('0x2d')),this[_0x4c81('0xb0')](_0x4c81('0x109'),null),this[_0x4c81('0xb0')](_0x4c81('0x5b'),null),this[_0x4c81('0xaa')]=null,this['set'](_0x4c81('0xaf'),null),this[_0x4c81('0xb0')](_0x4c81('0x3a'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x4c81('0x75'),(_0x37112b,_0x5a3325,_0x3b67cd)=>{this[_0x4c81('0x109')]=null,this[_0x4c81('0x5b')]=null,this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x6a')]['change'](_0x5673fc=>{for(const _0x545c45 of this['editor']['editing'][_0x4c81('0x6a')]['document'][_0x4c81('0xd2')])_0x3b67cd?_0x5673fc[_0x4c81('0x110')](_0x4c81('0x7f'),_0x545c45):_0x5673fc[_0x4c81('0x57')](_0x4c81('0x7f'),_0x545c45);});}),this['bind'](_0x4c81('0x8d'))['to'](this,_0x4c81('0x109'),_0x16f77c=>null!==_0x16f77c),this['bind'](_0x4c81('0x11b'))['to'](this,_0x4c81('0x3a'),this,_0x4c81('0xaf'),this,'activeChange',(_0x246809,_0x45f82a,_0x41e8d9)=>_0x246809&&_0x41e8d9?_0x45f82a[_0x4c81('0x4f')][_0x4c81('0x98')](_0x41e8d9):0x0),this['bind'](_0x4c81('0x45'))['to'](this,_0x4c81('0x3a'),this,'diff',(_0xb8f9bc,_0x54e7d4)=>_0xb8f9bc?_0x54e7d4[_0x4c81('0x4f')][_0x4c81('0x119')]:0x0),this[_0x4c81('0x26')]=null,this[_0x4c81('0xf0')]=new Map(),this['adapter']=null,this[_0x4c81('0xfa')]=this[_0x4c81('0x8c')][_0x4c81('0xa1')][_0x4c81('0xa9')](_0x360046);}[_0x4c81('0x6d')](){const _0x3b1be8=this[_0x4c81('0x8c')],_0x4bb9d9=new ShowChangeCommand(_0x3b1be8,{'direction':_0x4c81('0x91')}),_0x2b5b51=new ShowChangeCommand(_0x3b1be8,{'direction':'forward'});(_0x3b1be8[_0x4c81('0x39')][_0x4c81('0x68')](_0x4c81('0x1a'),_0x4bb9d9),_0x3b1be8[_0x4c81('0x39')][_0x4c81('0x68')]('showNextChange',_0x2b5b51),_0x3b1be8[_0x4c81('0x39')][_0x4c81('0x68')](_0x4c81('0x84'),new RestoreRevisionCommand(_0x3b1be8)),this['on'](_0x4c81('0x9b'),()=>{_0x4bb9d9[_0x4c81('0xdf')](),_0x2b5b51[_0x4c81('0xdf')]();}),this['_setConversion'](),this[_0x4c81('0x107')](),_0x3b1be8[_0x4c81('0x12')](_0x4c81('0x8f')),_0x3b1be8[_0x4c81('0xa1')][_0x4c81('0x11a')](_0x4c81('0x22')))&&_0x3b1be8[_0x4c81('0xa1')][_0x4c81('0xa9')](_0x4c81('0x22'))[_0x4c81('0x48')](_0x4c81('0x8f'));}async[_0x4c81('0x6b')](_0x324a53){await this[_0x4c81('0xe')](_0x324a53);const _0x5449bb={};for(const _0x4374c9 in _0x324a53[_0x4c81('0x10a')]){const _0x1a2b03=this[_0x4c81('0x99')](JSON[_0x4c81('0x9')](_0x324a53['diffData'][_0x4374c9][_0x4c81('0x67')])),_0xfa38bb=this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x6a')][_0x4c81('0x3b')],_0x8522d9=new _0x4fdcff(_0xfa38bb,_0x1a2b03[_0x4c81('0xe5')](_0x571dba=>this[_0x4c81('0x92')](_0x571dba)));this[_0x4c81('0x8c')][_0x4c81('0xbe')][_0x4c81('0x2f')][_0x4c81('0xbf')](_0x4c81('0x1f')),_0x5449bb[_0x4374c9]=this[_0x4c81('0x8c')][_0x4c81('0xbe')]['processor']['toData'](_0x8522d9),this['editor'][_0x4c81('0xbe')][_0x4c81('0x2f')][_0x4c81('0xbf')](_0x4c81('0xbd'));}return _0x5449bb;}[_0x4c81('0x99')](_0x498775){return(_0x498775=_0x498775[_0x4c81('0x33')](_0x24e8e9=>!_0x24e8e9[_0x4c81('0x112')]||_0x4c81('0x2a')!==_0x24e8e9[_0x4c81('0x112')]&&_0x4c81('0x6')!==_0x24e8e9[_0x4c81('0x112')]))['forEach'](_0x580bb0=>{_0x4c81('0xcf')!=typeof _0x580bb0&&(_0x580bb0[_0x4c81('0xcd')]=this[_0x4c81('0x99')](_0x580bb0[_0x4c81('0xcd')]),_0x580bb0[_0x4c81('0xac')]=_0x580bb0[_0x4c81('0xac')][_0x4c81('0x33')](_0x3f0613=>!_0x3f0613[0x0][_0x4c81('0xf2')]('data-revision-')));}),_0x498775;}async[_0x4c81('0xcb')](_0x510cf4,_0x2a26b1,_0x29955f=!0x1){if(!this[_0x4c81('0xb5')])return;const _0x17a7ab=this[_0x4c81('0xaf')],_0x171faf=this[_0x4c81('0xab')],_0xa9c18f=_0x4c81('0xcf')==typeof _0x510cf4?_0x171faf[_0x4c81('0x8')](_0x510cf4):_0x510cf4,_0x4bc9fc=_0x4c81('0xcf')==typeof _0x2a26b1?_0x171faf['getRevision'](_0x2a26b1):_0x2a26b1,_0x13abd0=_0xa9c18f['id'],_0x30cde0=_0x4bc9fc?_0x4bc9fc['id']:null;if(!_0x29955f&&this[_0x4c81('0xaf')]&&this[_0x4c81('0xaf')][_0x4c81('0x78')]===_0x13abd0&&this['diff'][_0x4c81('0xf1')]===_0x30cde0)return Promise[_0x4c81('0xa8')]();this[_0x4c81('0x3a')]=!0x1,this[_0x4c81('0x5b')]=null,this[_0x4c81('0x109')]=null,this[_0x4c81('0xaf')]=new _0x42dd6e(_0x13abd0,_0x30cde0);const _0x529b27=this[_0x4c81('0x3f')](_0xa9c18f,_0x4bc9fc,!0x0)[_0x4c81('0xe5')](_0x4cc17c=>this['loadRevisionData'](_0x4cc17c));return _0x529b27[_0x4c81('0xce')](new Promise(_0x45cfe7=>{setTimeout(_0x45cfe7,0x14);})),Promise['all'](_0x529b27)[_0x4c81('0x7b')](()=>{if(!this[_0x4c81('0xb5')])return;this['_cleanUp']();const _0x12f0d0=this[_0x4c81('0xae')](_0x13abd0,_0x30cde0);this[_0x4c81('0xaf')][_0x4c81('0x49')](_0x12f0d0);for(const _0xfbba5e of this[_0x4c81('0xaf')]['changes'])this[_0x4c81('0xf0')][_0x4c81('0xb0')](_0xfbba5e['id'],_0xfbba5e);this[_0x4c81('0x8c')][_0x4c81('0xe2')]['enqueueChange']({'isUndoable':!0x1},_0xdf0343=>{for(const _0xb9ee9 of Object[_0x4c81('0x70')](_0x12f0d0[_0x4c81('0xe2')])){const _0x1fc638=this[_0x4c81('0x8c')]['model'][_0x4c81('0x3b')][_0x4c81('0xfb')](_0xb9ee9);_0xdf0343['remove'](_0xdf0343[_0x4c81('0x30')](_0x1fc638)),_0xdf0343[_0x4c81('0x25')](_0x12f0d0['model'][_0xb9ee9],_0x1fc638,0x0);}}),this[_0x4c81('0x3a')]=!0x0;})[_0x4c81('0xe0')](_0x569b20=>{console[_0x4c81('0xb2')](_0x569b20),this['_cleanUp'](),_0x17a7ab?this[_0x4c81('0xaf')]=_0x17a7ab:this['editor'][_0x4c81('0xbe')]['set'](_0x4c81('0x74')),this[_0x4c81('0x3a')]=!0x0;});}[_0x4c81('0x18')](){this[_0x4c81('0x5b')]=null,this[_0x4c81('0x26')]&&this['_changeView'][_0x4c81('0x18')]();}[_0x4c81('0x8a')](_0x513644,_0xbc3610){const _0x10b219=this[_0x4c81('0xab')][_0x4c81('0xd')](_0x513644);return _0x10b219['on'](_0x4c81('0xe7'),(_0x289188,_0x4a75a0,_0x155030)=>_0xbc3610(_0x4a75a0,_0x155030,_0x10b219)),this[_0x4c81('0xab')][_0x4c81('0xb1')](_0x10b219),_0x10b219;}[_0x4c81('0xe')](_0x342d54){if(!_0x342d54||_0x342d54['diffData'])return Promise['resolve']();{const _0xb70e8f=this[_0x4c81('0x8c')][_0x4c81('0xb6')]['get'](_0x4c81('0x5f'));return this[_0x4c81('0xed')]['getRevision']({'channelId':_0xb70e8f,'revisionId':_0x342d54['id']})[_0x4c81('0x7b')](_0x327ab4=>{_0x342d54[_0x4c81('0xe7')]({'diffData':_0x327ab4[_0x4c81('0x10a')]},!0x0);});}}[_0x4c81('0x5e')](){this[_0x4c81('0x109')]=null,this['_cleanMarkers'](),this[_0x4c81('0x26')]&&this['_changeView']['destroy'](),this[_0x4c81('0x26')]=null,this[_0x4c81('0xf0')][_0x4c81('0xd0')]();}['_makeTape'](_0x2b190d){const _0x743453=Array['from'](_0x2b190d[_0x4c81('0xd1')])[_0x4c81('0x33')](([_0x4c4810,_0x3ca474])=>_0x4c4810[_0x4c81('0xf2')](_0x4c81('0x3e'))&&!_0x3ca474[_0x4c81('0x2e')]),_0x3420dd=Array[_0x4c81('0x104')](this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0x30')](_0x2b190d)[_0x4c81('0x4')]({'singleCharacters':!0x0}));if(0x0!=_0x743453['length'])for(const _0x598197 of _0x3420dd){const [_0x4c68a9,_0x4c2f9a]=_0x743453[0x0],[,_0x427868,_0x6df612]=_0x4c68a9['split'](':');if(_0x4c2f9a['end'][_0x4c81('0xcc')](_0x598197[_0x4c81('0x95')])&&_0x743453[_0x4c81('0x83')](),(_0x598197[_0x4c81('0xfe')][_0x4c81('0xcc')](_0x4c2f9a[_0x4c81('0xd4')])||_0x598197[_0x4c81('0xfe')]['isAfter'](_0x4c2f9a[_0x4c81('0xd4')]))&&(_0x4c81('0x9e')==_0x427868?_0x598197[_0x4c81('0x27')]={'userId':_0x6df612}:_0x4c81('0x100')==_0x427868&&(_0x598197[_0x4c81('0x5c')]={'userId':_0x6df612})),0x0==_0x743453[_0x4c81('0x119')])break;}return _0x3420dd;}[_0x4c81('0xe8')](_0x4dd413){const _0x159812=new Map();for(let _0x1195ff=0x0;_0x1195ff<_0x4dd413[_0x4c81('0x119')];_0x1195ff++)_0x4c81('0x4c')===_0x4dd413[_0x1195ff][_0x4c81('0x7')]?(_0x4dd413[_0x1195ff][_0x4c81('0x40')][_0x4c81('0xd3')]=_0x1195ff,_0x4dd413[_0x1195ff][_0x4c81('0x40')][_0x4c81('0x6c')]=_0x1195ff):(_0x4c81('0x28')===_0x4dd413[_0x1195ff][_0x4c81('0x7')]?_0x4dd413[_0x1195ff]['item'][_0x4c81('0xd3')]=_0x1195ff:_0x4c81('0xe9')===_0x4dd413[_0x1195ff][_0x4c81('0x7')]&&(_0x4dd413[_0x1195ff][_0x4c81('0x40')][_0x4c81('0x6c')]=_0x1195ff),_0x159812[_0x4c81('0xb0')](_0x4dd413[_0x1195ff]['id'],_0x1195ff));for(const _0x568a30 of _0x159812[_0x4c81('0x20')]())_0x4c81('0x28')===_0x4dd413[_0x568a30][_0x4c81('0x7')]?_0x4dd413[_0x568a30][_0x4c81('0x40')][_0x4c81('0x6c')]=_0x159812[_0x4c81('0xa9')](_0x4dd413[_0x568a30]['pairId']):_0x4c81('0xe9')===_0x4dd413[_0x568a30][_0x4c81('0x7')]&&(_0x4dd413[_0x568a30]['item']['startIndex']=_0x159812['get'](_0x4dd413[_0x568a30]['pairId']));}['_processTape'](_0x16395d){for(let _0x1f12bc=0x0;_0x1f12bc<_0x16395d[_0x4c81('0x119')];_0x1f12bc++){if('elementStart'===_0x16395d[_0x1f12bc]['type'])_0x16395d[_0x1f12bc]['item'][_0x4c81('0xd3')]=_0x1f12bc;else{if(_0x4c81('0xe9')===_0x16395d[_0x1f12bc][_0x4c81('0x7')]){_0x16395d[_0x1f12bc]['item'][_0x4c81('0x6c')]=_0x1f12bc;const _0x2cc6b4=_0x16395d[_0x1f12bc][_0x4c81('0x40')][_0x4c81('0xd3')];_0x16395d[_0x2cc6b4]['pairId']=_0x16395d[_0x1f12bc]['id'],_0x16395d[_0x1f12bc]['pairId']=_0x16395d[_0x2cc6b4]['id'];}else _0x16395d[_0x1f12bc][_0x4c81('0x40')][_0x4c81('0xd3')]=_0x1f12bc,_0x16395d[_0x1f12bc]['item'][_0x4c81('0x6c')]=_0x1f12bc,_0x16395d[_0x1f12bc]['pairId']=null;}_0x16395d[_0x1f12bc]['markersStart']||(_0x16395d[_0x1f12bc]['markersStart']=[],_0x16395d[_0x1f12bc][_0x4c81('0x19')]=[]);}}[_0x4c81('0x11')](_0x4993a4,_0x3e5c4c){const _0x5237a6=_0x4993a4[_0x4c81('0x33')](_0x160b4d=>!_0x160b4d[_0x4c81('0x27')]);for(let _0x12755b=0x0;_0x12755b<_0x3e5c4c['length'];_0x12755b++)_0x3e5c4c[_0x12755b]['isAdded']&&(_0x5237a6[_0x12755b][_0x4c81('0x27')]=_0x3e5c4c[_0x12755b][_0x4c81('0x27')]);}['_makeModelFromViewString'](_0x77caea){const _0x313c4e=JSON[_0x4c81('0x9')](_0x77caea),_0x5ec6aa=this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x6a')][_0x4c81('0x3b')],_0x2b460f=new _0x4fdcff(_0x5ec6aa,_0x313c4e['map'](_0x47f00f=>this[_0x4c81('0x92')](_0x47f00f)));return this[_0x4c81('0x8c')]['data'][_0x4c81('0xca')](_0x2b460f);}[_0x4c81('0x92')](_0x1e64c9){const _0x1fa643=this[_0x4c81('0x8c')]['editing']['view'][_0x4c81('0x3b')];if(_0x4c81('0xcf')==typeof _0x1e64c9)return new _0x36b9f4(_0x1fa643,_0x1e64c9);{const _0x302762=_0x1e64c9['children'][_0x4c81('0xe5')](_0x441db9=>this[_0x4c81('0x92')](_0x441db9));return new(K[_0x1e64c9[(_0x4c81('0x7'))]]||_0x14b28)(_0x1fa643,_0x1e64c9[_0x4c81('0x112')],_0x1e64c9[_0x4c81('0xac')],_0x302762);}}['_getDiff'](_0x2cd289,_0x57a36a=null){const _0x2bdcac=this[_0x4c81('0xab')][_0x4c81('0x8')](_0x2cd289),_0x1ca120=_0x57a36a?this[_0x4c81('0xab')][_0x4c81('0x8')](_0x57a36a):null,_0x8d3a9=this[_0x4c81('0x3f')](_0x2bdcac,_0x1ca120),_0x3b0a20=_0x8d3a9[_0x8d3a9['length']-0x1],_0x20c75a=new Map();for(const _0x50dba1 of _0x8d3a9){_0x50dba1['model']={};for(const _0x142c2b of _0x50dba1['authors'])_0x20c75a['set'](_0x142c2b['id'],_0x142c2b);for(const _0x6f49b9 of this['editor']['model'][_0x4c81('0x3b')][_0x4c81('0x90')]())_0x50dba1['diffData'][_0x6f49b9]||(_0x50dba1['diffData'][_0x6f49b9]={'insertions':'[]','deletions':'[]'}),_0x50dba1[_0x4c81('0xe2')][_0x6f49b9]={'insertions':this[_0x4c81('0x37')](_0x50dba1['diffData'][_0x6f49b9]['insertions']),'deletions':this[_0x4c81('0x37')](_0x50dba1[_0x4c81('0x10a')][_0x6f49b9][_0x4c81('0x9f')])};}const _0x54ee4c={'model':{},'changes':[]};for(const _0x38b55e of this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0x3b')][_0x4c81('0x90')]()){let _0x2cb630=null,_0x1db790=0x0;const _0x57f2ff=new Map(Array[_0x4c81('0x104')](_0x2bdcac[_0x4c81('0xe2')][_0x38b55e][_0x4c81('0x67')][_0x4c81('0xd1')])[_0x4c81('0x33')](([_0x4f6a40])=>!_0x4f6a40[_0x4c81('0xf2')](_0x4c81('0x3e'))));let _0x4b8804=0x0;for(const _0x4ba4b6 of _0x8d3a9){const _0x451b0e=this[_0x4c81('0x32')](_0x4ba4b6[_0x4c81('0xe2')][_0x38b55e][_0x4c81('0x67')]);_0x4ba4b6==_0x2bdcac?(_0x2cb630=_0x451b0e,_0x1db790=_0x2cb630[_0x4c81('0x119')],_0x2cb630[_0x4c81('0x11e')](_0xc911ae=>{_0xc911ae['id']=_0x4b8804++;}),this['_processTape'](_0x2cb630)):this[_0x4c81('0x11')](_0x2cb630,_0x451b0e);const _0x4e8d6c=_0x2cb630[_0x4c81('0x33')](_0x5461c2=>!_0x5461c2[_0x4c81('0x27')])[_0x4c81('0xe5')](_0x49a90e=>_0x49a90e['id']);let _0x2b961e=0x0;const _0x3dd2bd=this[_0x4c81('0x32')](_0x4ba4b6[_0x4c81('0xe2')][_0x38b55e][_0x4c81('0x9f')]);_0x3dd2bd[_0x4c81('0x11e')](_0x21438e=>{_0x21438e[_0x4c81('0x5c')]?_0x21438e['id']=_0x1db790++:_0x21438e['id']=_0x4e8d6c[_0x2b961e++];}),this[_0x4c81('0x1e')](_0x3dd2bd),this[_0x4c81('0x82')](_0x2cb630,_0x4c81('0x27')),this[_0x4c81('0x82')](_0x3dd2bd,_0x4c81('0x5c')),_0x4ba4b6==_0x2bdcac&&this[_0x4c81('0x8e')](_0x2cb630,_0x57f2ff),_0x2cb630=this['_joinTapes'](_0x2cb630,_0x3dd2bd),this[_0x4c81('0xe8')](_0x2cb630),this[_0x4c81('0x82')](_0x2cb630,_0x4c81('0x5c'));}_0x2cb630=_0x2cb630[_0x4c81('0x33')](_0x3bda48=>!(_0x3bda48[_0x4c81('0x27')]&&_0x3bda48[_0x4c81('0x5c')]));const _0x2516e8=new Map(_0x3b0a20['model'][_0x38b55e][_0x4c81('0x9f')][_0x4c81('0xd1')]),_0x393638=new Set(_0x57f2ff['keys']());for(const _0x846b82 of _0x2516e8[_0x4c81('0x70')]())_0x393638['delete'](_0x846b82);this[_0x4c81('0xec')](_0x2cb630,_0x393638),this[_0x4c81('0x5')](_0x2cb630),_0x2cb630=this['_removeMissingPairs'](_0x2cb630),_0x2cb630=this[_0x4c81('0x81')](_0x2cb630),_0x2cb630=this[_0x4c81('0xf9')](_0x2cb630);const {root:_0x8bf98d,changes:_0x4a6ad1}=this[_0x4c81('0x7c')](_0x2cb630,_0x20c75a);_0x54ee4c['model'][_0x38b55e]=_0x8bf98d,_0x54ee4c[_0x4c81('0x4f')]=_0x54ee4c[_0x4c81('0x4f')]['concat'](_0x4a6ad1);}return _0x54ee4c;}[_0x4c81('0x8e')](_0x44775b,_0x51f73a){for(let _0x467433=0x0;_0x467433<_0x44775b[_0x4c81('0x119')];_0x467433++)for(const [_0x176eca,_0x15083f]of _0x51f73a)_0x15083f[_0x4c81('0xd4')][_0x4c81('0xcc')](_0x44775b[_0x467433][_0x4c81('0xfe')])&&_0x44775b[_0x467433][_0x4c81('0xee')][_0x4c81('0xce')](_0x176eca),_0x15083f[_0x4c81('0x10f')][_0x4c81('0xcc')](_0x44775b[_0x467433]['nextPosition'])&&_0x44775b[_0x467433][_0x4c81('0x19')][_0x4c81('0xce')](_0x176eca);}[_0x4c81('0x42')](_0x6d33d8,_0x5800e0){let _0x43d2fd=[],_0x49141c=0x0,_0x34086=0x0;for(;_0x49141c<_0x6d33d8[_0x4c81('0x119')]||_0x34086<_0x5800e0[_0x4c81('0x119')];){const _0x4cbd18=_0x6d33d8[_0x49141c]||{},_0xfa277c=_0x5800e0[_0x34086]||{};if(_0x4cbd18['id']==_0xfa277c['id'])_0x49141c++,_0x34086++,_0x43d2fd[_0x4c81('0xce')](_0x4cbd18);else{if(_0xfa277c[_0x4c81('0x5c')]&&_0x4cbd18[_0x4c81('0x27')]){const {commonTape:_0x1f5cc5,iEnd:_0x495f9e,jEnd:_0x1b1f01}=this[_0x4c81('0xf')](_0x6d33d8,_0x49141c,_0x5800e0,_0x34086);_0x43d2fd=_0x43d2fd['concat'](_0x1f5cc5),_0x49141c=_0x495f9e,_0x34086=_0x1b1f01;}else _0xfa277c[_0x4c81('0x5c')]?(_0x34086++,_0x43d2fd[_0x4c81('0xce')](_0xfa277c)):(_0x49141c++,_0x43d2fd[_0x4c81('0xce')](_0x4cbd18));}}return _0x43d2fd;}[_0x4c81('0xec')](_0x256b09,_0x4f6884){const _0x493d33=[];for(let _0x69c3d5=0x0;_0x69c3d5<_0x256b09[_0x4c81('0x119')];_0x69c3d5++){for(let _0x586e4e=0x0;_0x586e4e<_0x256b09[_0x69c3d5]['markersStart'][_0x4c81('0x119')];_0x586e4e++){const _0x3943ee=_0x256b09[_0x69c3d5][_0x4c81('0xee')][_0x586e4e];if(!_0x4f6884['has'](_0x3943ee))continue;const {group:_0x338343,type:_0x3f4b06,authorId:_0x27fa85}=_0x3bea12(_0x3943ee);'revision-suggestion'!=_0x338343||_0x4c81('0x9e')!=_0x3f4b06&&_0x4c81('0x100')!=_0x3f4b06||(_0x493d33[_0x4c81('0x13')]({'type':_0x3f4b06,'name':_0x3943ee,'userId':_0x27fa85}),_0x256b09[_0x69c3d5][_0x4c81('0xee')][_0x4c81('0x62')](_0x586e4e,0x1),_0x586e4e--);}_0x19ca7f(_0x256b09[_0x69c3d5]);for(let _0x27d97a=0x0;_0x27d97a<_0x256b09[_0x69c3d5][_0x4c81('0x19')]['length'];_0x27d97a++){const _0xf66e55=_0x256b09[_0x69c3d5][_0x4c81('0x19')][_0x27d97a];if(!_0x4f6884[_0x4c81('0x11a')](_0xf66e55))continue;const {group:_0x1e9462,type:_0x1b5cfe}=_0x3bea12(_0xf66e55);if(_0x4c81('0x7e')!=_0x1e9462||_0x4c81('0x9e')!=_0x1b5cfe&&_0x4c81('0x100')!=_0x1b5cfe)continue;_0x256b09[_0x69c3d5][_0x4c81('0x19')]['splice'](_0x27d97a,0x1),_0x27d97a--;const _0x39a330=_0x493d33[_0x4c81('0x2')](_0x54db5c=>_0x54db5c['name']==_0xf66e55);_0x39a330>-0x1&&_0x493d33[_0x4c81('0x62')](_0x39a330,0x1);}}function _0x3bea12(_0x234ed0){const _0x377776=_0x234ed0[_0x4c81('0x117')](':');return{'group':_0x377776[0x0],'type':_0x377776[0x1],'subType':_0x377776[_0x4c81('0x119')]>=0x5?_0x377776[0x2]:null,'id':_0x377776[_0x4c81('0x119')]<0x5?_0x377776[0x2]:_0x377776[0x3],'authorId':_0x377776['length']<0x5?_0x377776[0x3]:_0x377776[0x4],'markerCount':0x6==_0x377776[_0x4c81('0x119')]?_0x377776[0x5]:null};}function _0x19ca7f(_0x1a4d15){for(let _0x236bf8=0x0;_0x236bf8<_0x493d33[_0x4c81('0x119')];_0x236bf8++){if(_0x1a4d15[_0x4c81('0x27')]&&'insertion'==_0x493d33[_0x236bf8]['type'])return _0x1a4d15[_0x4c81('0x51')]=_0x493d33[_0x236bf8],void delete _0x1a4d15[_0x4c81('0x27')];if(!_0x1a4d15[_0x4c81('0x27')]&&!_0x1a4d15[_0x4c81('0x5c')]&&'deletion'==_0x493d33[_0x236bf8][_0x4c81('0x7')])return void(_0x1a4d15[_0x4c81('0xb4')]=_0x493d33[_0x236bf8]);}}}['_setDistance'](_0x379c00,_0x1e05eb){let _0x3ab3aa=0x0,_0x562be0=!0x1;const _0x5b042b=new Map();for(const _0x23421e of _0x379c00)_0x23421e[_0x1e05eb]?_0x562be0&&(_0x3ab3aa++,_0x562be0=!0x1):(_0x3ab3aa++,_0x562be0=!0x0),_0x5b042b[_0x4c81('0xb0')](_0x23421e['id'],_0x3ab3aa);for(let _0x163467=0x0;_0x163467<_0x379c00['length'];_0x163467++){if('isRemoved'==_0x1e05eb&&_0x379c00[_0x163467][_0x4c81('0x27')]||'isAdded'==_0x1e05eb&&_0x379c00[_0x163467]['isRemoved'])continue;if('text'==_0x379c00[_0x163467]['type']){_0x379c00[_0x163467]['distance']=0x0;continue;}const _0x15d2c7=_0x5b042b[_0x4c81('0xa9')](_0x379c00[_0x163467][_0x4c81('0x108')]),_0x4cd76d=_0x5b042b['get'](_0x379c00[_0x163467]['id']);_0x379c00[_0x163467][_0x4c81('0x10b')]=_0x15d2c7-_0x4cd76d;}}[_0x4c81('0x3f')](_0x3919b4,_0x97db4f,_0x5ee737=!0x1){const _0x35fbca=[];let _0x2abe49=this[_0x4c81('0xab')]['getIndex'](_0x3919b4),_0x398ba3=this['repository'][_0x4c81('0x98')](_0x97db4f);for(-0x1==_0x398ba3&&(_0x398ba3=this[_0x4c81('0xab')][_0x4c81('0xe6')]['length'],_0x5ee737=!0x1);_0x2abe49<_0x398ba3;)_0x35fbca[_0x4c81('0xce')](this[_0x4c81('0xab')]['getRevision'](_0x2abe49)),_0x2abe49++;return _0x5ee737&&_0x35fbca[_0x4c81('0xce')](this[_0x4c81('0xab')][_0x4c81('0x8')](_0x2abe49)),_0x35fbca;}['_threeWayMerge'](_0x527cde,_0x469eb4,_0x2cc356,_0x136380){const _0x13599b=this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0xa6')];let _0x1522ee=_0x469eb4;for(;_0x527cde[_0x1522ee]&&_0x527cde[_0x1522ee][_0x4c81('0x27')];)_0x1522ee++;let _0x5986a0=_0x136380;for(;_0x2cc356[_0x5986a0]&&_0x2cc356[_0x5986a0][_0x4c81('0x5c')];)_0x5986a0++;_0x3069f2(_0x527cde,_0x469eb4,_0x1522ee),_0x3069f2(_0x2cc356,_0x136380,_0x5986a0);const _0xf0d117=_0x2cc356[_0x4c81('0xbb')](_0x136380,_0x5986a0)[_0x4c81('0xbc')](_0x527cde[_0x4c81('0xbb')](_0x469eb4,_0x1522ee));return _0xf0d117[_0x4c81('0x44')]((_0x508958,_0x2b941b)=>_0x508958[_0x4c81('0x34')]!=_0x2b941b['side']?_0x508958['side']-_0x2b941b[_0x4c81('0x34')]:_0x508958[_0x4c81('0x72')]!=_0x2b941b[_0x4c81('0x72')]?_0x508958[_0x4c81('0x72')]-_0x2b941b[_0x4c81('0x72')]:_0x508958[_0x4c81('0x10b')]!=_0x2b941b[_0x4c81('0x10b')]?_0x2b941b[_0x4c81('0x10b')]-_0x508958[_0x4c81('0x10b')]:!!_0x508958['isAdded']!=!!_0x2b941b[_0x4c81('0x27')]?-0x1==_0x508958[_0x4c81('0x34')]||0x0==_0x508958[_0x4c81('0x34')]?_0x508958[_0x4c81('0x27')]?-0x1:0x1:_0x508958[_0x4c81('0x27')]?0x1:-0x1:_0x508958[_0x4c81('0xe4')]-_0x2b941b['index']),{'commonTape':_0xf0d117,'iEnd':_0x1522ee,'jEnd':_0x5986a0};function _0x3069f2(_0x2604aa,_0x25f514,_0x555f6f){let _0x619b31=-0x1,_0x21821b=Number[_0x4c81('0xc0')],_0x215c09=!0x0;for(let _0x481170=_0x25f514;_0x481170<_0x555f6f;_0x481170++)if(_0x13599b[_0x4c81('0xc2')](_0x2604aa[_0x481170][_0x4c81('0x40')])||(_0x215c09=!0x1),_0x2604aa[_0x481170][_0x4c81('0x40')][_0x4c81('0xd3')]<_0x25f514&&(_0x619b31=_0x481170),_0x2604aa[_0x481170][_0x4c81('0x40')]['endIndex']>=_0x555f6f){_0x21821b=_0x481170;break;}_0x215c09&&(_0x619b31=_0x555f6f-0x1);for(let _0x38780f=_0x25f514;_0x38780f<_0x555f6f;_0x38780f++)_0x2604aa[_0x38780f]['side']=_0x38780f<=_0x619b31?-0x1:_0x38780f<_0x21821b?0x0:0x1,_0x2604aa[_0x38780f]['index']=_0x38780f;let _0x49d902=0x0;for(let _0xf691ad=_0x25f514;_0xf691ad<=_0x619b31;_0xf691ad++)0x0==_0x2604aa[_0xf691ad][_0x4c81('0x10b')]?_0x2604aa[_0xf691ad][_0x4c81('0x72')]=_0x49d902:(_0x49d902++,_0x2604aa[_0xf691ad][_0x4c81('0x72')]=_0x49d902,_0x49d902++);for(let _0x5e0e6c=_0x25f514;_0x5e0e6c<_0x555f6f;_0x5e0e6c++)0x0==_0x2604aa[_0x5e0e6c][_0x4c81('0x34')]&&(_0x2604aa[_0x5e0e6c]['level']=_0x49d902);_0x49d902=0x0;for(let _0x37035c=_0x555f6f-0x1;_0x37035c>=_0x21821b;_0x37035c--)0x0==_0x2604aa[_0x37035c]['distance']?_0x2604aa[_0x37035c][_0x4c81('0x72')]=_0x49d902:(_0x49d902--,_0x2604aa[_0x37035c][_0x4c81('0x72')]=_0x49d902,_0x49d902--);}}[_0x4c81('0x5')](_0x4de36a){const _0x6dca3f=new Map(),_0x38031e=this['editor'][_0x4c81('0xe2')][_0x4c81('0xa6')];for(let _0x589ab0=0x1;_0x589ab0<_0x4de36a['length'];_0x589ab0++){let _0x1db6f0,_0x271b57,_0xcd2ce9;const _0x3b9289=_0x4de36a[_0x589ab0],_0x5d09e7=_0x4de36a[_0x589ab0-0x1];if(_0x4c81('0x4c')==_0x3b9289[_0x4c81('0x7')])continue;if(_0x3b9289[_0x4c81('0x7')]!=_0x5d09e7['type'])continue;if(!_0x38031e[_0x4c81('0x10')](_0x5d09e7[_0x4c81('0x40')])||_0x38031e[_0x4c81('0x58')](_0x5d09e7[_0x4c81('0x40')]))continue;if(!_0x38031e['isBlock'](_0x3b9289['item'])||_0x38031e[_0x4c81('0x58')](_0x3b9289[_0x4c81('0x40')]))continue;if((_0x4de36a[_0x589ab0][_0x4c81('0x27')]||_0x4de36a[_0x589ab0][_0x4c81('0x51')])&&_0x4de36a[_0x589ab0-0x1][_0x4c81('0x5c')])_0x1db6f0=_0x4de36a[_0x589ab0],_0x271b57=_0x4de36a[_0x589ab0-0x1],_0xcd2ce9=_0x589ab0-0x1;else{if(!_0x4de36a[_0x589ab0][_0x4c81('0x5c')]||!_0x4de36a[_0x589ab0-0x1][_0x4c81('0x27')]&&!_0x4de36a[_0x589ab0-0x1]['isAddSuggestion'])continue;_0x1db6f0=_0x4de36a[_0x589ab0-0x1],_0x271b57=_0x4de36a[_0x589ab0],_0xcd2ce9=_0x589ab0;}const _0x2eb99e=_0x1db6f0[_0x4c81('0x72')]==_0x271b57['level'],_0x6de302=Math['abs'](_0x1db6f0[_0x4c81('0x72')])<Math[_0x4c81('0x10c')](_0x271b57[_0x4c81('0x72')])&&0x0==_0x271b57[_0x4c81('0x10b')];(_0x2eb99e||_0x6de302)&&(_0x6dca3f['set'](_0x271b57['id'],_0x1db6f0['id']),_0x4de36a['splice'](_0xcd2ce9,0x1),_0x589ab0--,_0x1db6f0[_0x4c81('0x27')]=!0x1);}for(let _0x1601d7=0x0;_0x1601d7<_0x4de36a[_0x4c81('0x119')];_0x1601d7++)_0x6dca3f['has'](_0x4de36a[_0x1601d7]['pairId'])&&(_0x4de36a[_0x1601d7][_0x4c81('0x108')]=_0x6dca3f['get'](_0x4de36a[_0x1601d7][_0x4c81('0x108')]));}['_removeMissingPairs'](_0x4d3db2){const _0x11746a=new Set(_0x4d3db2['map'](_0x180cb9=>_0x180cb9['id']));for(let _0x1c8d1f=0x0;_0x1c8d1f<_0x4d3db2[_0x4c81('0x119')];_0x1c8d1f++)_0x11746a[_0x4c81('0x11a')](_0x4d3db2[_0x1c8d1f][_0x4c81('0x108')])||0x0==_0x4d3db2[_0x1c8d1f][_0x4c81('0x10b')]||(_0x4d3db2[_0x1c8d1f][_0x4c81('0x3c')]=!0x0);return _0x4d3db2[_0x4c81('0x33')](_0x245677=>!_0x245677[_0x4c81('0x3c')]);}['_markMismatchedRemovedTags'](_0x20aff2){const _0x43f039=new Set();for(let _0x52a6d1=0x0;_0x52a6d1<_0x20aff2[_0x4c81('0x119')];_0x52a6d1++){if(_0x43f039['has'](_0x20aff2[_0x52a6d1]['id'])&&_0x20aff2[_0x52a6d1][_0x4c81('0x5c')]&&(_0x20aff2[_0x52a6d1]['isIncorrect']=!0x0),_0x20aff2[_0x52a6d1][_0x4c81('0x3c')])continue;if(0x0==_0x20aff2[_0x52a6d1][_0x4c81('0x10b')])continue;if(_0x4c81('0x28')!=_0x20aff2[_0x52a6d1][_0x4c81('0x7')])continue;if(null==_0x20aff2[_0x52a6d1][_0x4c81('0x108')])continue;let _0x41c0ce=_0x52a6d1+0x1,_0x44d6dc=0x0;for(;_0x20aff2[_0x41c0ce]['id']!=_0x20aff2[_0x52a6d1]['pairId'];)'elementStart'==_0x20aff2[_0x41c0ce][_0x4c81('0x7')]?_0x44d6dc++:'elementEnd'==_0x20aff2[_0x41c0ce][_0x4c81('0x7')]&&_0x44d6dc--,_0x41c0ce++;if(0x0!=_0x44d6dc){if(_0x20aff2[_0x52a6d1][_0x4c81('0x5c')])_0x20aff2[_0x52a6d1][_0x4c81('0x3c')]=!0x0;else for(;_0x41c0ce!=_0x52a6d1;)_0x20aff2[_0x41c0ce][_0x4c81('0x5c')]&&0x0!=_0x20aff2[_0x41c0ce][_0x4c81('0x10b')]&&(_0x20aff2[_0x41c0ce]['isIncorrect']=!0x0,_0x43f039[_0x4c81('0x68')](_0x20aff2[_0x41c0ce]['pairId'])),_0x41c0ce--;}}return _0x20aff2[_0x4c81('0x33')](_0x3581f9=>!_0x3581f9[_0x4c81('0x3c')]);}[_0x4c81('0xf9')](_0x529bcb){const _0xd8303b=this[_0x4c81('0x8c')][_0x4c81('0xe2')]['schema'];for(let _0x218211=0x0;_0x218211<_0x529bcb[_0x4c81('0x119')];_0x218211++){if(!(_0x529bcb[_0x218211][_0x4c81('0x27')]||_0x529bcb[_0x218211][_0x4c81('0x51')]||_0x529bcb[_0x218211][_0x4c81('0x5c')]||_0x529bcb[_0x218211][_0x4c81('0xb4')]))continue;if(0x0==_0x529bcb[_0x218211]['distance'])continue;const _0x500867=_0x529bcb[_0x218211][_0x4c81('0x40')];_0xd8303b[_0x4c81('0x10')](_0x500867)||_0xd8303b['isLimit'](_0x500867)||(_0x529bcb[_0x218211][_0x4c81('0x27')]&&delete _0x529bcb[_0x218211][_0x4c81('0x27')],_0x529bcb[_0x218211]['isAddSuggestion']&&delete _0x529bcb[_0x218211][_0x4c81('0x51')],_0x529bcb[_0x218211]['isRemoveSuggestion']&&delete _0x529bcb[_0x218211]['isRemoveSuggestion'],_0x529bcb[_0x218211][_0x4c81('0x5c')]&&(_0x529bcb[_0x218211]['isIncorrect']=!0x0));}return _0x529bcb[_0x4c81('0x33')](_0x229e07=>!_0x229e07['isIncorrect']);}[_0x4c81('0x7c')](_0x1148a1,_0x466c5d){const _0x13c9e3=new _0x21cf73(),_0x1adbac=[],_0x2b7795=new Map(),_0xc381cf=this[_0x4c81('0x8c')][_0x4c81('0xe2')],_0xc1442=_0xc381cf[_0x4c81('0xa6')],_0x59ffa8=[_0x13c9e3],_0x315888={},_0x326ede={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5c3271=null;const _0x472316=[0x0];for(let _0x34790a=0x0;_0x34790a<_0x1148a1['length'];_0x34790a++){let _0x113f41,_0x53471e;if(_0x4c81('0x28')===_0x1148a1[_0x34790a][_0x4c81('0x7')]){_0x113f41=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316);const _0x3916c7=new _0x298d33(_0x1148a1[_0x34790a]['item'][_0x4c81('0x112')],_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0xeb')]());_0x59ffa8[0x0][_0x4c81('0xb3')](_0x3916c7),_0x472316[_0x4c81('0xce')](0x0),_0x59ffa8[_0x4c81('0x13')](_0x3916c7),_0x53471e=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316),_0x5c3271=null;}else{if(_0x4c81('0xe9')===_0x1148a1[_0x34790a][_0x4c81('0x7')])_0x59ffa8[_0x4c81('0x83')](),_0x113f41=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316),_0x472316[_0x4c81('0x38')](),_0x472316[_0x472316[_0x4c81('0x119')]-0x1]++,_0x53471e=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316),_0x5c3271=null;else{if(_0x113f41=_0xc381cf['createPositionFromPath'](_0x13c9e3,_0x472316),_0x5c3271&&_0x41a60c(_0x5c3271,_0x1148a1[_0x34790a][_0x4c81('0x40')]))_0x5c3271[_0x4c81('0x115')]+=_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0xbe')];else{const _0x465f6b=new _0x399eed(_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0xbe')],_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0xeb')]());_0x59ffa8[0x0][_0x4c81('0xb3')](_0x465f6b),_0x5c3271=_0x465f6b;}_0x472316[_0x472316[_0x4c81('0x119')]-0x1]+=_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0x116')],_0x53471e=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316);}}for(const _0x159d10 of _0x1148a1[_0x34790a][_0x4c81('0xee')])_0x2b7795['set'](_0x159d10,{'start':_0x113f41,'end':null});_0x305ff6(_0x4c81('0xb4'),_0x34790a,_0x113f41,_0x53471e),_0x305ff6('isAddSuggestion',_0x34790a,_0x113f41,_0x53471e),_0x305ff6(_0x4c81('0x5c'),_0x34790a,_0x113f41,_0x53471e),_0x305ff6(_0x4c81('0x27'),_0x34790a,_0x113f41,_0x53471e);for(const _0x42eda8 of _0x1148a1[_0x34790a][_0x4c81('0x19')]){_0x2b7795[_0x4c81('0xa9')](_0x42eda8)[_0x4c81('0x10f')]=_0x53471e;}}for(const [_0x5e4e79,_0x11cd59]of _0x2b7795){const _0x57ab3a=this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0xb9')](_0x11cd59[_0x4c81('0xd4')],_0x11cd59[_0x4c81('0x10f')]);_0x13c9e3[_0x4c81('0xd1')][_0x4c81('0xb0')](_0x5e4e79,_0x57ab3a);}return _0x1adbac['sort']((_0x4a600a,_0x44995e)=>{const _0x4d155f=_0x13c9e3[_0x4c81('0xd1')][_0x4c81('0xa9')](_0x4c81('0x3e')+_0x4a600a['id']),_0xcb379b=_0x13c9e3[_0x4c81('0xd1')]['get'](_0x4c81('0x3e')+_0x44995e['id']);return _0x4d155f['start']['isBefore'](_0xcb379b['start'])?-0x1:_0x4d155f[_0x4c81('0xd4')][_0x4c81('0xc9')](_0xcb379b[_0x4c81('0xd4')])?0x1:_0x4d155f['end'][_0x4c81('0x69')](_0xcb379b[_0x4c81('0x10f')])?-0x1:_0x4d155f[_0x4c81('0x10f')][_0x4c81('0xc9')](_0xcb379b[_0x4c81('0x10f')])?0x1:_0x4c81('0x68')===_0x4a600a['type']?-0x1:0x1;}),{'root':_0x13c9e3,'changes':_0x1adbac};function _0x305ff6(_0xecf6a,_0x57c7da,_0x128b36,_0x3dc0b8){const _0x444c74=!!_0x1148a1[_0x57c7da][_0xecf6a],_0x342a3f=_0x444c74?_0x1148a1[_0x57c7da][_0xecf6a]['userId']:null,_0x541e74=_0x57c7da===_0x1148a1[_0x4c81('0x119')]-0x1,_0x35f6be=_0x326ede[_0xecf6a][0x0],_0xe40381=_0xc1442[_0x4c81('0xdd')](_0x1148a1[_0x57c7da][_0x4c81('0x40')]);!_0x315888[_0xecf6a]&&_0x444c74?_0x315888[_0xecf6a]={'start':_0x128b36,'tapeItem':_0x1148a1[_0x57c7da],'userId':_0x342a3f,'type':_0xecf6a}:_0x315888[_0xecf6a]&&!_0x444c74?(_0x315888[_0xecf6a][_0x4c81('0x10f')]=_0x128b36,_0x22b1b0(_0x315888[_0xecf6a]),_0x315888[_0xecf6a]=null):_0x315888[_0xecf6a]&&_0x444c74&&_0x315888[_0xecf6a][_0x4c81('0xa0')]!==_0x342a3f&&(_0x315888[_0xecf6a][_0x4c81('0x10f')]=_0x128b36,_0x35f6be&&_0x35f6be[_0x4c81('0xa0')]===_0x315888[_0xecf6a][_0x4c81('0xa0')]||_0x22b1b0(_0x315888[_0xecf6a]),_0x315888[_0xecf6a]={'start':_0x128b36,'tapeItem':_0x1148a1[_0x57c7da],'userId':_0x342a3f,'type':_0xecf6a}),_0x315888[_0xecf6a]&&_0xe40381&&(_0x4c81('0x28')!==_0x1148a1[_0x57c7da][_0x4c81('0x7')]||_0x35f6be&&_0x35f6be[_0x4c81('0xa0')]===_0x342a3f||_0x326ede[_0xecf6a][_0x4c81('0x13')]({'userId':_0x342a3f,'object':_0x1148a1[_0x57c7da]['item'],'change':_0x315888[_0xecf6a]}),'elementEnd'===_0x1148a1[_0x57c7da][_0x4c81('0x7')]&&_0x35f6be&&_0x35f6be[_0x4c81('0x1d')]===_0x1148a1[_0x57c7da][_0x4c81('0x40')]&&(_0x326ede[_0xecf6a][_0x4c81('0x83')](),_0x315888[_0xecf6a]=_0x35f6be[_0x4c81('0x1c')])),_0x315888[_0xecf6a]&&_0x541e74&&(_0x315888[_0xecf6a][_0x4c81('0x10f')]=_0x3dc0b8,_0x22b1b0(_0x315888[_0xecf6a]),_0x315888[_0xecf6a]=null);}function _0x22b1b0({start:_0x5a7a91,end:_0x2d372f,tapeItem:_0x158fbe,userId:_0x55bd23,type:_0xe34c88}){const _0x372d20=_0x158fbe[_0x4c81('0x40')],_0x4af318=_0xc381cf['schema'][_0x4c81('0x10')](_0x372d20)&&!_0xc381cf[_0x4c81('0xa6')][_0x4c81('0x58')](_0x372d20),_0x58e323=_0x5a7a91[_0x4c81('0xf5')]==_0x2d372f[_0x4c81('0x61')]&&_0x2d372f[_0x4c81('0xa5')];if(_0x4af318&&_0x58e323)return;const _0x1369b1=_0xc381cf[_0x4c81('0xb9')](_0x5a7a91,_0x2d372f),_0x352399=_0x466c5d[_0x4c81('0xa9')](_0x55bd23),_0x45a1a3=new _0x259e28({'author':_0x352399,'type':_0x4c81('0x27')==_0xe34c88||_0x4c81('0x51')==_0xe34c88?'add':_0x4c81('0x118'),'data':{'isSuggestion':_0x4c81('0x51')==_0xe34c88||_0x4c81('0xb4')==_0xe34c88},'createdAt':new Date()});_0x1adbac[_0x4c81('0xce')](_0x45a1a3),_0x13c9e3[_0x4c81('0xd1')][_0x4c81('0xb0')]('revision:'+_0x45a1a3['id'],_0x1369b1);}function _0x41a60c(_0x16bebe,_0x37ab8a){const _0x4e627e=_0x16bebe['getAttributes'](),_0x20e545=_0x37ab8a[_0x4c81('0xeb')]();for(const _0x59fda7 of _0x4e627e){if(_0x59fda7[0x1]!==_0x37ab8a[_0x4c81('0xf6')](_0x59fda7[0x0]))return!0x1;_0x20e545['next']();}return _0x20e545[_0x4c81('0x3')]()[_0x4c81('0xa7')];}}[_0x4c81('0xde')](){this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))['dataToMarker']({'view':'revision'}),this[_0x4c81('0x8c')]['conversion']['for']('editingDowncast')[_0x4c81('0xea')]({'model':_0x4c81('0x71'),'view':_0xe6a352=>{const _0x173481=_0xe6a352[_0x4c81('0x11c')][_0x4c81('0x117')](':')[0x1],_0x24a41c=this['_getChangeFromId'](_0x173481);if(!_0x24a41c)return null;const _0x2307cb=_0x4c81('0x68')==_0x24a41c['type']?'insertion':_0x4c81('0x100'),_0x2fd456=[_0x4c81('0xba'),_0x4c81('0x11d')+_0x2307cb];return _0x24a41c[_0x4c81('0xbe')][_0x4c81('0x10d')]&&_0x2fd456[_0x4c81('0xce')](_0x4c81('0x11d')+_0x2307cb+_0x4c81('0xa')),this[_0x4c81('0x109')]==_0x24a41c&&_0x2fd456[_0x4c81('0xce')](_0x4c81('0xa4')),{'classes':_0x2fd456,'attributes':{'data-change-id':_0x173481}};}}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))[_0x4c81('0x68')](_0x1ede89=>{_0x1ede89['on'](_0x4c81('0x53'),(_0x15e466,_0x4e4e96,_0x294126)=>{const _0x5f38c3=_0x4e4e96['viewItem'][_0x4c81('0x55')](0x0);if(!_0x5f38c3||!_0x5f38c3['is'](_0x4c81('0xd9'),_0x4c81('0x80')))return;if(!_0x294126[_0x4c81('0x8b')][_0x4c81('0x24')](_0x5f38c3,{'attributes':['vid_start',_0x4c81('0x52')]}))return;const _0x3b2a6f=_0x4e4e96['modelRange'][_0x4c81('0xd4')][_0x4c81('0xf5')];_0x294126[_0x4c81('0xfc')]['setAttribute'](_0x4c81('0xd6'),_0x5f38c3[_0x4c81('0xf6')](_0x4c81('0xd6')),_0x3b2a6f),_0x294126[_0x4c81('0xfc')][_0x4c81('0x73')](_0x4c81('0x52'),_0x5f38c3[_0x4c81('0xf6')]('vid_end'),_0x3b2a6f);},{'priority':_0x4c81('0x11f')});}),this['editor'][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))[_0x4c81('0x68')](_0x39004a=>{_0x39004a['on'](_0x4c81('0xd9'),(_0x395e7d,_0x22b234,_0x35c7c3)=>{if(!_0x35c7c3[_0x4c81('0x8b')][_0x4c81('0x24')](_0x22b234[_0x4c81('0xe1')],{'attributes':[_0x4c81('0xd6'),_0x4c81('0x52')]}))return;if(_0x22b234[_0x4c81('0x16')][_0x4c81('0x2e')])return;const _0x34a8b8=_0x22b234[_0x4c81('0x16')][_0x4c81('0xd4')][_0x4c81('0xf5')];_0x34a8b8['hasAttribute'](_0x4c81('0xd6'))||_0x34a8b8[_0x4c81('0x94')](_0x4c81('0x88'))||(_0x35c7c3[_0x4c81('0xfc')]['setAttribute'](_0x4c81('0xd6'),_0x22b234[_0x4c81('0xe1')][_0x4c81('0xf6')]('vid_start'),_0x34a8b8),_0x35c7c3[_0x4c81('0xfc')]['setAttribute'](_0x4c81('0x52'),_0x22b234['viewItem'][_0x4c81('0xf6')]('vid_end'),_0x34a8b8));},{'priority':_0x4c81('0x11f')});}),this[_0x4c81('0x8c')][_0x4c81('0x54')]['for'](_0x4c81('0xa3'))[_0x4c81('0x60')]({'view':{'name':_0x4c81('0x65'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3a4d72=>_0x3a4d72[_0x4c81('0xf6')](_0x4c81('0x88'))}}),this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0xa6')]['on'](_0x4c81('0x17'),(_0x32981f,[,_0xd69d78])=>{[_0x4c81('0xd6'),_0x4c81('0x52'),'vid'][_0x4c81('0xff')](_0xd69d78)&&(_0x32981f[_0x4c81('0x1b')]=!0x0,_0x32981f[_0x4c81('0x89')]());},{'priority':_0x4c81('0x46')}),this['editor'][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0x2b'))['add'](_0x3a964a=>{_0x3a964a['on']('attribute:vid',(_0x47007a,_0x37d8cc,_0x30e00f)=>{if('\x20'!=_0x37d8cc['item'][_0x4c81('0xbe')]||_0x37d8cc[_0x4c81('0x40')]['parent']['maxOffset']>0x1)return;if(!_0x30e00f[_0x4c81('0x8b')]['consume'](_0x37d8cc[_0x4c81('0x40')],_0x47007a[_0x4c81('0x112')]))return;const _0x34090c=_0x30e00f[_0x4c81('0xfc')],_0x5be38e=_0x30e00f[_0x4c81('0x105')][_0x4c81('0xf4')](_0x37d8cc['range']);_0x34090c[_0x4c81('0xc7')](_0x5be38e,_0x34090c['createAttributeElement']('span'));});}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0x2b'))[_0x4c81('0xa2')]({'model':_0x4c81('0x71')}),this['editor'][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x1'),function(_0x3c9f72){const _0x389e93=_0x3c9f72[_0x4c81('0xa1')][_0x4c81('0xa9')](_0x4c81('0x7d'));return(_0x2a00c9,_0x518b0e,_0x400963)=>{const _0x594f0a=_0x518b0e[_0x4c81('0x11c')][_0x4c81('0x117')](':')[0x1],_0x19317a=_0x389e93[_0x4c81('0x5a')](_0x594f0a);if(!_0x19317a)return null;const _0x4d9bfb=_0x4c81('0x68')==_0x19317a[_0x4c81('0x7')]?'split':'merge';if(!_0x400963[_0x4c81('0x8b')][_0x4c81('0x21')](_0x518b0e[_0x4c81('0xc8')],_0x2a00c9[_0x4c81('0x112')]))return;const _0x348861=_0x518b0e['markerRange'][_0x4c81('0x4')](),_0x1533b9=_0x518b0e['markerRange'][_0x4c81('0xd4')],_0x1d2c64=_0x3c9f72[_0x4c81('0xe2')][_0x4c81('0xa6')];let _0x33f55c=null,_0x20f5bd=null,_0x35299b=!0x1,_0x3a01a2=!0x1;for(const _0x396d87 of _0x348861){const _0xc03f8d=_0x396d87[_0x4c81('0x40')];_0x35299b=_0x35299b||_0x1d2c64[_0x4c81('0x103')](_0xc03f8d);const _0x1070ee=_0x400963[_0x4c81('0x105')][_0x4c81('0xef')](_0xc03f8d);if(_0x1070ee&&_0x1070ee[_0x4c81('0x6e')](_0x4c81('0x63')))return;'elementEnd'==_0x396d87[_0x4c81('0x7')]&&(_0x1d2c64[_0x4c81('0x10')](_0xc03f8d)&&!_0x1d2c64[_0x4c81('0x58')](_0xc03f8d)&&(_0xc03f8d[_0x4c81('0x4a')]||_0x1533b9['isAtEnd']?_0x33f55c&&_0x33f55c[_0x4c81('0x61')]==_0xc03f8d||(_0x33f55c=_0xc03f8d,_0x40fea2(_0x396d87[_0x4c81('0xfe')]),_0x3a01a2=!0x0):_0x20f5bd=_0x20f5bd||_0x396d87[_0x4c81('0xfe')]));}function _0x40fea2(_0x4fdf16){const _0x2c9d7e=_0x400963['writer'][_0x4c81('0x14')](_0x4c81('0x65'),{'class':_0x4c81('0x11d')+_0x4d9bfb}),_0x1bdcf9=_0x400963[_0x4c81('0x105')]['toViewPosition'](_0x4fdf16);_0x19317a['data'][_0x4c81('0x10d')]&&_0x400963[_0x4c81('0xfc')][_0x4c81('0x57')](_0x4c81('0x11d')+_0x4d9bfb+'-new',_0x2c9d7e),_0x389e93['activeChange']==_0x19317a&&_0x400963[_0x4c81('0xfc')][_0x4c81('0x57')](_0x4c81('0xa4'),_0x2c9d7e),_0x400963[_0x4c81('0xfc')]['insert'](_0x1bdcf9,_0x2c9d7e),_0x400963[_0x4c81('0x105')][_0x4c81('0x50')](_0x2c9d7e,_0x518b0e[_0x4c81('0x11c')]);}_0x35299b||_0x3a01a2||!_0x20f5bd||_0x40fea2(_0x20f5bd);};}(this[_0x4c81('0x8c')]),{'priority':_0x4c81('0xb7')}),this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x31'),(_0x27990f,_0x15d469,_0x2a4ff9)=>{const _0x33974c=_0x2a4ff9[_0x4c81('0x105')][_0x4c81('0xb8')](_0x15d469[_0x4c81('0x11c')]);if(_0x33974c)for(const _0xca7e58 of _0x33974c)(_0xca7e58[_0x4c81('0x29')](_0x4c81('0xd8'))||_0xca7e58['hasClass']('ck-suggestion-marker-merge'))&&(_0x2a4ff9[_0x4c81('0x105')][_0x4c81('0x59')](_0xca7e58,_0x15d469[_0x4c81('0x11c')]),_0x2a4ff9[_0x4c81('0xfc')]['remove'](_0xca7e58));},{'priority':_0x4c81('0xb7')}),this['editor'][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x1'),(_0x2794d0,_0x12b224,_0x2a0f17)=>{const _0x29cc57=_0x12b224[_0x4c81('0x11c')][_0x4c81('0x117')](':')[0x1],_0x5a7ad0=this['_getChangeFromId'](_0x29cc57);if(!_0x5a7ad0)return null;const _0x5ad24e=_0x4c81('0x68')==_0x5a7ad0['type']?_0x4c81('0x117'):_0x4c81('0xe3');if(_0x2a0f17[_0x4c81('0x8b')][_0x4c81('0x21')](_0x12b224[_0x4c81('0xc8')],_0x2794d0[_0x4c81('0x112')]))for(const _0x586a51 of _0x12b224['markerRange'][_0x4c81('0x5d')]()){if(!_0x586a51['is'](_0x4c81('0xd9'),_0x4c81('0x96')))continue;const _0x22d7bc=_0x2a0f17[_0x4c81('0xfc')]['createUIElement'](_0x4c81('0x65'),{'class':_0x4c81('0x11d')+_0x5ad24e}),_0xa3a489=_0x2a0f17[_0x4c81('0x105')][_0x4c81('0xc')](this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0x4d')](_0x586a51));_0x5a7ad0['data'][_0x4c81('0x10d')]&&_0x2a0f17[_0x4c81('0xfc')][_0x4c81('0x57')](_0x4c81('0x11d')+_0x5ad24e+_0x4c81('0xa'),_0x22d7bc),this[_0x4c81('0x109')]==_0x5a7ad0&&_0x2a0f17[_0x4c81('0xfc')][_0x4c81('0x57')]('ck-suggestion-marker--active',_0x22d7bc),_0x2a0f17[_0x4c81('0xfc')][_0x4c81('0x25')](_0xa3a489,_0x22d7bc),_0x2a0f17[_0x4c81('0x105')][_0x4c81('0x50')](_0x22d7bc,_0x12b224[_0x4c81('0x11c')]);}},{'priority':_0x4c81('0xb7')}),this['editor'][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))['dataToMarker']({'view':_0x4c81('0xdb'),'model':_0x112349=>_0x4c81('0x97')+_0x112349,'converterPriority':_0x4c81('0x46')}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))[_0x4c81('0xf8')]({'view':_0x4c81('0xda'),'model':_0x421708=>_0x4c81('0x101')+_0x421708,'converterPriority':'highest'}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0x2b'))[_0x4c81('0xa2')]({'model':_0x4c81('0x7e'),'view':_0x266c07=>({'name':_0x4c81('0x9a')+_0x266c07,'group':_0x4c81('0x7e')}),'converterPriority':_0x4c81('0x46')}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xf7'))[_0x4c81('0xea')]({'model':_0x4c81('0x7e'),'view':_0x387d39=>{const _0x2b6546=_0x387d39['markerName']['split'](':')[0x1];return _0x4c81('0x9e')!=_0x2b6546&&_0x4c81('0x100')!=_0x2b6546?null:{'classes':[_0x4c81('0x85'),'ck-suggestion-preview-marker-'+_0x2b6546]};}}),this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x114'),Q(this[_0x4c81('0x8c')],_0x4c81('0xe3')),{'priority':_0x4c81('0xb7')}),this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x7a'),Q(this[_0x4c81('0x8c')],_0x4c81('0x117')),{'priority':'high'}),this['editor'][_0x4c81('0x15')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x10e83b,_0x344291,_0x479f4f)=>{const _0x82c925=_0x479f4f[_0x4c81('0x105')][_0x4c81('0xb8')](_0x344291[_0x4c81('0x11c')]);if(_0x82c925)for(const _0x4c4141 of _0x82c925)_0x4c4141['is']('uiElement')&&(_0x479f4f['mapper']['unbindElementFromMarkerName'](_0x4c4141,_0x344291[_0x4c81('0x11c')]),_0x479f4f[_0x4c81('0xfc')]['remove'](_0x4c4141));},{'priority':'high'});}[_0x4c81('0x5a')](_0xc46e6a){return this['_changeIdToChange'][_0x4c81('0xa9')](_0xc46e6a);}[_0x4c81('0x9d')](_0x3e2eb6){return this['_changeView']&&this[_0x4c81('0x26')][_0x4c81('0x18')](),this['_changeView']=new _0x50847a(this['editor']['locale'],_0x3e2eb6),this['_changeView'];}[_0x4c81('0x107')](){this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0x3b')][_0x4c81('0xc5')]['observeMarkers']('revision'),this['on'](_0x4c81('0x35'),(_0x8b907,_0x1524da,_0x3f81cd,_0x36063d)=>{_0x36063d&&this[_0x4c81('0xfa')][_0x4c81('0x118')](_0x36063d),_0x3f81cd&&(this[_0x4c81('0xfa')][_0x4c81('0x68')]({'view':_0x3f81cd,'stackId':_0x4c81('0x36'),'position':{'target':()=>{const _0x37be2b=this[_0x4c81('0x8c')][_0x4c81('0x15')],_0x46e6ed=this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0xd1')][_0x4c81('0xa9')](_0x4c81('0x3e')+_0x3f81cd[_0x4c81('0x113')]),_0x2164cd=Array[_0x4c81('0x104')](_0x37be2b[_0x4c81('0x105')][_0x4c81('0xb8')](_0x46e6ed['name']))[_0x4c81('0xe5')](_0x9646f7=>_0x37be2b[_0x4c81('0x6a')][_0x4c81('0x93')]['mapViewToDom'](_0x9646f7))['map'](_0x2d3ddb=>Array[_0x4c81('0x104')](_0x2d3ddb[_0x4c81('0x43')]()))[_0x4c81('0xfd')]();if(!this[_0x4c81('0xaa')])return _0x2164cd[0x0];return _0x2164cd[_0x4c81('0x47')](_0x5548c7=>_0x5548c7[_0x4c81('0x10e')]-0x3<=this[_0x4c81('0xaa')]['y']&&_0x5548c7[_0x4c81('0xf3')]+0x3>=this[_0x4c81('0xaa')]['y']&&_0x5548c7[_0x4c81('0x86')]-0x3<=this[_0x4c81('0xaa')]['x']&&_0x5548c7[_0x4c81('0x4e')]+0x3>=this[_0x4c81('0xaa')]['x'])||_0x2164cd[0x0];}}}),this[_0x4c81('0xfa')][_0x4c81('0xd5')](_0x4c81('0x36')));}),this['on'](_0x4c81('0x3d'),(_0x15fe87,_0x3daa18,_0xb3b139,_0x476339)=>{this[_0x4c81('0x5b')]=_0xb3b139?this['_getViewForChange'](_0xb3b139):null,this['editor']['model'][_0x4c81('0x1c')](()=>{const _0x373552=this[_0x4c81('0x8c')][_0x4c81('0x15')];_0x476339&&_0x373552[_0x4c81('0x111')](_0x4c81('0x3e')+_0x476339['id']),_0xb3b139&&_0x373552[_0x4c81('0x111')](_0x4c81('0x3e')+_0xb3b139['id']);});}),this[_0x4c81('0x77')](this['editor'][_0x4c81('0x15')][_0x4c81('0x6a')]['document'],_0x4c81('0x56'),(_0x26b2d1,_0x16117f)=>{if(this[_0x4c81('0x109')])return;const _0x2ccb1c=this[_0x4c81('0x2c')](_0x16117f[_0x4c81('0x76')]),_0x23f83e=this[_0x4c81('0xf0')][_0x4c81('0xa9')](_0x2ccb1c);_0x23f83e?(this[_0x4c81('0xaa')]={'x':_0x16117f['domEvent']['x'],'y':_0x16117f[_0x4c81('0xb')]['y']},this[_0x4c81('0x5b')]=this[_0x4c81('0x9d')](_0x23f83e)):(this['_activeViewTarget']=null,this[_0x4c81('0x5b')]=null);}),this[_0x4c81('0x77')](this[_0x4c81('0x8c')]['editing']['view'][_0x4c81('0x3b')],_0x4c81('0xad'),(_0x5c1848,_0x220071)=>{const _0x10638d=this[_0x4c81('0x2c')](_0x220071[_0x4c81('0x76')]),_0x1e9111=this[_0x4c81('0xf0')][_0x4c81('0xa9')](_0x10638d);_0x1e9111?(this[_0x4c81('0xaa')]={'x':_0x220071['domEvent']['x'],'y':_0x220071[_0x4c81('0xb')]['y']},_0x1e9111===this['activeChange']?this[_0x4c81('0xfa')][_0x4c81('0xc4')]():this[_0x4c81('0x109')]=_0x1e9111):(this[_0x4c81('0xaa')]=null,this[_0x4c81('0x109')]=null);});}[_0x4c81('0x2c')](_0x2aae99){do{const _0x44bde2=_0x2aae99[_0x4c81('0xf6')](_0x4c81('0x6f'));if(_0x44bde2)return _0x44bde2;_0x2aae99=_0x2aae99[_0x4c81('0x61')];}while(_0x2aae99);return null;}[_0x4c81('0x0')](){this['editor'][_0x4c81('0xe2')]['change'](_0x358f76=>{for(const _0x373be3 of this['editor'][_0x4c81('0xe2')][_0x4c81('0xd1')])_0x358f76['removeMarker'](_0x373be3);});}}function Q(_0x32caec,_0x33e708){return(_0x20380d,_0x3ffff9,_0xc00c6f)=>{if(!_0xc00c6f[_0x4c81('0x8b')][_0x4c81('0x21')](_0x3ffff9[_0x4c81('0xc8')],_0x20380d[_0x4c81('0x112')]))return;const _0x3a4676=_0x3ffff9[_0x4c81('0xc8')][_0x4c81('0x4')](),_0x41602b=_0x3ffff9[_0x4c81('0xc8')][_0x4c81('0xd4')],_0x42fdc2=_0x32caec[_0x4c81('0xe2')][_0x4c81('0xa6')];let _0x15d82f=null,_0xb21faa=null,_0x26a4ca=!0x1,_0x829504=!0x1;for(const _0x176afe of _0x3a4676){const _0x59f886=_0x176afe['item'];_0x26a4ca=_0x26a4ca||_0x42fdc2[_0x4c81('0x103')](_0x59f886);const _0x2d8d99=_0xc00c6f[_0x4c81('0x105')][_0x4c81('0xef')](_0x59f886);if(_0x2d8d99&&_0x2d8d99[_0x4c81('0x6e')](_0x4c81('0x63')))return;'elementEnd'==_0x176afe[_0x4c81('0x7')]&&(_0x42fdc2['isBlock'](_0x59f886)&&!_0x42fdc2['isLimit'](_0x59f886)&&(_0x59f886['nextSibling']||_0x41602b[_0x4c81('0x9c')]?_0x15d82f&&_0x15d82f['parent']==_0x59f886||(_0x15d82f=_0x59f886,_0x4fcd54(_0x176afe[_0x4c81('0xfe')]),_0x829504=!0x0):_0xb21faa=_0xb21faa||_0x176afe[_0x4c81('0xfe')]));}function _0x4fcd54(_0x8b172f){const _0x5cfc57=_0xc00c6f['mapper']['toViewPosition'](_0x8b172f),_0x3dfed7=_0xc00c6f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x33e708});_0xc00c6f['writer'][_0x4c81('0x25')](_0x5cfc57,_0x3dfed7),_0xc00c6f[_0x4c81('0x105')][_0x4c81('0x50')](_0x3dfed7,_0x3ffff9[_0x4c81('0x11c')]);}_0x26a4ca||_0x829504||!_0xb21faa||_0x4fcd54(_0xb21faa);};}export class RestoreRevisionCommand extends _0xf77865{constructor(_0x4ee02e){super(_0x4ee02e);const _0x5b4c39=_0x4ee02e[_0x4c81('0xa1')][_0x4c81('0xa9')](y);this['stopListening'](_0x4ee02e,_0x4c81('0xd7')),this[_0x4c81('0x41')](_0x4c81('0xc1')),this[_0x4c81('0x77')](_0x5b4c39,'change:isReady',()=>this[_0x4c81('0xdf')]()),this[_0x4c81('0x77')](_0x5b4c39,_0x4c81('0x75'),()=>this[_0x4c81('0xdf')]());}[_0x4c81('0xdc')](){const _0x5921a9=this[_0x4c81('0x8c')],_0x5d5951=_0x5921a9['plugins'][_0x4c81('0xa9')](y),_0xff1e2d=_0x5d5951[_0x4c81('0x3a')]?_0x5d5951[_0x4c81('0xaf')][_0x4c81('0x78')]:null;_0x5921a9['config']['get'](_0x4c81('0xc3'))['restoreRevisionCallback'](_0xff1e2d);}[_0x4c81('0xdf')](){const {isReady:_0x167765,isEnabled:_0xe57347}=this[_0x4c81('0x8c')][_0x4c81('0xa1')][_0x4c81('0xa9')](y);this['isEnabled']=_0x167765&&_0xe57347;}}export class ShowChangeCommand extends _0xf77865{constructor(_0x205997,{direction:_0x45dcdf}){super(_0x205997);const _0x1fa000=_0x205997[_0x4c81('0xa1')]['get'](y);this[_0x4c81('0xc6')](_0x205997,_0x4c81('0xd7')),this[_0x4c81('0x41')]('readOnlyMode'),this[_0x4c81('0x102')]=_0x4c81('0x79')===_0x45dcdf?0x1:-0x1,this[_0x4c81('0x77')](_0x1fa000,_0x4c81('0x64'),()=>this['refresh']()),this['listenTo'](_0x1fa000,'change:isEnabled',()=>this['refresh']());}[_0x4c81('0xdc')](){const _0x3805bf=this[_0x4c81('0x8c')],_0x4e4b0b=_0x3805bf['plugins']['get'](y),{isNavigationMode:_0xfb0eb5,currentChangeNumber:_0x405afa}=_0x4e4b0b;_0x4e4b0b[_0x4c81('0x109')]=_0xfb0eb5?_0x4e4b0b['diff'][_0x4c81('0x4f')][_0x4c81('0xa9')](_0x405afa+this['_step']):_0x4e4b0b[_0x4c81('0xaf')]['changes']['first'];const _0x2fa7a3=_0x3805bf[_0x4c81('0xe2')]['markers'][_0x4c81('0xa9')](_0x4c81('0x3e')+_0x4e4b0b['activeChange']['id']),_0x347cab=_0x2ec871(_0x3805bf[_0x4c81('0x15')],_0x2fa7a3);_0x19d354({'target':_0x347cab,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x35200e,currentChangeNumber:_0x4db4e3,numberOfChanges:_0x596c35,isReady:_0x5980f2,isEnabled:_0x7a52e1}=this[_0x4c81('0x8c')][_0x4c81('0xa1')][_0x4c81('0xa9')](y);this['isEnabled']=!!(_0x7a52e1&&_0x5980f2&&_0x596c35)&&(!_0x35200e||(0x1===this['_step']?_0x4db4e3<_0x596c35-0x1:_0x4db4e3>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3251=['buttonView','threeVerticalDots','button','locale','listenTo','isReady','panelPosition','bindTemplate','Show\x20more\x20items','items','children','execute','model','isActionsDropdownOpen','action','ck-revision-history-sidebar__revision__actions','class','name','isEnabled','bind','add','source','function','ck-on','isVisible','_action','Compare\x20against\x20selected','Restore\x20this\x20revision','find'];(function(_0x47c294,_0x325143){const _0x3dc456=function(_0x36a4f4){while(--_0x36a4f4){_0x47c294['push'](_0x47c294['shift']());}};_0x3dc456(++_0x325143);}(_0x3251,0x191));const _0x3dc4=function(_0x47c294,_0x325143){_0x47c294=_0x47c294-0x0;let _0x3dc456=_0x3251[_0x47c294];return _0x3dc456;};import{Collection as _0x370076}from'ckeditor5/src/utils';import{icons as _0x57d162}from'ckeditor5/src/core';import{Model as _0xb8bf13,addListToDropdown as _0x3e8ef0,createDropdown as _0x11ed24}from'ckeditor5/src/ui';import{getTranslation as _0x2bb063}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4be82d,_0x388f0f){const _0x48b4bc=_0x4be82d[_0x3dc4('0xc')],_0xff8c8d=_0x4be82d['locale'],_0x18923e=_0x11ed24(_0xff8c8d);_0x18923e[_0x3dc4('0xb')]='sw';const _0x1c86f9=function(_0x67623e,_0x188e01){const _0x557bce=function(_0x117056,_0x1d7175){const _0x514939=_0x117056[_0x3dc4('0x8')],_0x14d53a={'Compare\x20against\x20selected':_0x2bb063(_0x514939,_0x3dc4('0x2')),'Name\x20this\x20revision':_0x2bb063(_0x514939,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x2bb063(_0x514939,_0x3dc4('0x3'))};return _0x1d7175['map'](_0x547a3d=>{const _0x2053d4=_0x14d53a[_0x547a3d[_0x3dc4('0x16')]];return _0x2053d4&&_0x2053d4!==_0x547a3d[_0x3dc4('0x16')]&&(_0x547a3d['name']=_0x2053d4),_0x547a3d;});}(_0x67623e,_0x188e01),_0xd61e08=new _0x370076();for(const _0x54d7de of _0x557bce){const _0xa8c201={'type':_0x3dc4('0x7'),'model':new _0xb8bf13({'label':_0x54d7de[_0x3dc4('0x16')],'class':_0x54d7de[_0x3dc4('0x15')],'withText':!0x0,'_action':_0x54d7de[_0x3dc4('0x13')]})};_0xa8c201[_0x3dc4('0x11')][_0x3dc4('0x18')](_0x3dc4('0x17'))['to'](_0x67623e,'isActionsDropdownOpen',_0x502754=>_0x3dc4('0x1b')!=typeof _0x54d7de[_0x3dc4('0x17')]||(!_0x502754||_0x54d7de[_0x3dc4('0x17')](_0x67623e))),_0xd61e08[_0x3dc4('0x19')](_0xa8c201);}return _0xd61e08;}(_0x4be82d,_0x388f0f);return _0x4be82d[_0x3dc4('0x18')](_0x3dc4('0x12'))['to'](_0x18923e,'isOpen'),_0x18923e[_0x3dc4('0x5')]['set']({'label':_0x2bb063(_0xff8c8d,_0x3dc4('0xd')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57d162[_0x3dc4('0x6')]}),_0x18923e['extendTemplate']({'attributes':{'class':[_0x3dc4('0x14'),_0x48b4bc['if'](_0x3dc4('0x12'),_0x3dc4('0x1c'))]},'on':{'click':_0x48b4bc['to'](_0x1b0846=>_0x1b0846['stopPropagation']())}}),_0x18923e['on'](_0x3dc4('0x10'),_0x1cb5df=>{_0x4be82d[_0x3dc4('0xa')]&&_0x3dc4('0x1b')==typeof _0x1cb5df[_0x3dc4('0x1a')][_0x3dc4('0x1')]&&_0x1cb5df[_0x3dc4('0x1a')][_0x3dc4('0x1')](_0x4be82d);}),_0x3e8ef0(_0x18923e,_0x1c86f9),_0x18923e[_0x3dc4('0x9')](_0x4be82d,'change:isActionsDropdownOpen',(_0x2c5db6,_0x1ab20b,_0x8287e4)=>{if(_0x8287e4)for(const _0xeba407 of _0x18923e['listView'][_0x3dc4('0xe')]){const _0x4294dc=_0xeba407[_0x3dc4('0xf')]['first'],_0x14a3d3=_0x388f0f[_0x3dc4('0x4')](_0xe18b47=>_0xe18b47['action']===_0x4294dc[_0x3dc4('0x1')])[_0x3dc4('0x0')];_0xeba407[_0x3dc4('0x0')]=void 0x0===_0x14a3d3||_0x14a3d3(_0x4be82d);}}),_0x18923e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4db6=['setTemplate','ck-revision-history-sidebar__revision-author__name','Revision\x20creator','ck-revision-history-sidebar__revision-author','span','Revision\x20author','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator'];(function(_0x4a78d0,_0x4db6f0){const _0x36bcfb=function(_0x2172ed){while(--_0x2172ed){_0x4a78d0['push'](_0x4a78d0['shift']());}};_0x36bcfb(++_0x4db6f0);}(_0x4db6,0x19d));const _0x36bc=function(_0x4a78d0,_0x4db6f0){_0x4a78d0=_0x4a78d0-0x0;let _0x36bcfb=_0x4db6[_0x4a78d0];return _0x36bcfb;};import{View as _0x26e888,IconView as _0x28b226}from'ckeditor5/src/ui';import{getTranslation as _0x413cd9}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4765c4 from'../../../theme/icons/user.svg';export default class ti extends _0x26e888{constructor(_0x54ebf7,_0x4f1477,_0x4a144b){super(_0x54ebf7);const _0x5f37ab=new _0x28b226();_0x5f37ab['set']({'content':_0x4765c4,'viewBox':_0x36bc('0x1')});const _0x182e9b=['ck',_0x36bc('0x6')];_0x4a144b&&_0x182e9b['push'](_0x36bc('0x2'));const _0x4ef8e0=[{'tag':_0x36bc('0x7'),'attributes':{'class':['ck',_0x36bc('0x4')],'title':_0x413cd9(_0x54ebf7,_0x4a144b?_0x36bc('0x5'):_0x36bc('0x0'))},'children':[_0x5f37ab,_0x4f1477['name']]}];this[_0x36bc('0x3')]({'tag':'li','attributes':{'class':_0x182e9b},'children':_0x4ef8e0});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1dce=['set','span','extendTemplate','Revision\x20name'];(function(_0x5e2347,_0x1dceb0){var _0x1df8bb=function(_0x56755b){while(--_0x56755b){_0x5e2347['push'](_0x5e2347['shift']());}};_0x1df8bb(++_0x1dceb0);}(_0x1dce,0x1ef));var _0x1df8=function(_0x5e2347,_0x1dceb0){_0x5e2347=_0x5e2347-0x0;var _0x1df8bb=_0x1dce[_0x5e2347];return _0x1df8bb;};import{LabeledFieldView as _0x49e64a}from'ckeditor5/src/ui';import{getTranslation as _0x337790}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x49e64a{constructor(_0x5028af,_0x2564ec){super(_0x5028af,_0x2564ec),this[_0x1df8('0x1')]({'label':_0x337790(_0x5028af,_0x1df8('0x0'))}),this[_0x1df8('0x3')]({'tag':_0x1df8('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ae9=['bind','srcElement','value','placeholder','220','revisionNameView','ck-revision-history-sidebar__revision','_createdAtFormatted','isHighlighted','closest','name','fieldView','revisionActionsView','createdAt','creator','ck-revision-history-sidebar__revision__controls-wrapper','element','deselect','ck-revision-history-sidebar__revision-wrapper','_revision','listenTo','span','ck-reset','ck-disabled','isEnabled','highlight','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','unhighlight','ck-revision-history-sidebar__revision__date','isActionsDropdownOpen','map','isSelected','fire','select','set','setTemplate','bindTemplate','from','ck-revision-history-sidebar__revision_selected','unshift','change','extendTemplate','ck-revision-history-sidebar__revision-authors','authors','render','div'];(function(_0x319f04,_0x2ae9a2){const _0x4a1c9b=function(_0x3ea10f){while(--_0x3ea10f){_0x319f04['push'](_0x319f04['shift']());}};_0x4a1c9b(++_0x2ae9a2);}(_0x2ae9,0x134));const _0x4a1c=function(_0x319f04,_0x2ae9a2){_0x319f04=_0x319f04-0x0;let _0x4a1c9b=_0x2ae9[_0x319f04];return _0x4a1c9b;};import{View as _0x4b63b5,createLabeledInputText as _0xb4ba0a}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4059e}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d6a54 from'./revisionnameview';import _0x39acf8 from'./revisionauthorview';import{dateToPrettyFormat as _0x40ec08}from'./utils';import{createActionsDropdownView as _0x1a60e2}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4059e(_0x4b63b5){constructor(_0xcfe066,_0x4a2947,_0x165ac1){super(_0xcfe066);const _0x2e5255=this[_0x4a1c('0x4')],_0x4aae13=function(_0x116105,_0xcfdb86){const _0x3a35e8=Array[_0x4a1c('0x5')](_0xcfdb86[_0x4a1c('0xb')])['filter'](_0x5d2c37=>_0x5d2c37!=_0xcfdb86[_0x4a1c('0x1c')]);return _0xcfdb86['creator']&&_0x3a35e8[_0x4a1c('0x7')](_0xcfdb86[_0x4a1c('0x1c')]),_0x3a35e8[_0x4a1c('0x2c')](_0x5cda0b=>new _0x39acf8(_0x116105,_0x5cda0b,_0x5cda0b==_0xcfdb86[_0x4a1c('0x1c')]));}(_0xcfe066,_0x4a2947);this['id']=_0x4a2947['id'],this[_0x4a1c('0x21')]=_0x4a2947,this[_0x4a1c('0xe')](_0x4a1c('0x18'),_0x4a1c('0x1b'))['to'](_0x4a2947),this[_0x4a1c('0xe')](_0x4a1c('0x15'))['to'](this,_0x4a1c('0x1b'),_0x220afe=>_0x220afe?_0x40ec08(_0xcfe066['uiLanguage'],_0x220afe):void 0x0),this['set'](_0x4a1c('0x2d'),!0x1),this[_0x4a1c('0x2')](_0x4a1c('0x16'),!0x1),this[_0x4a1c('0x2')]('isActionsDropdownOpen',!0x1),this[_0x4a1c('0x2')]('isReady',!0x1),this[_0x4a1c('0x2')](_0x4a1c('0x26'),!0x1),this['revisionNameView']=new _0x2d6a54(_0xcfe066,_0xb4ba0a),this['revisionNameView'][_0x4a1c('0x19')][_0x4a1c('0x9')]({'attributes':{'maxlength':_0x4a1c('0x12')}}),this['revisionNameView'][_0x4a1c('0x19')][_0x4a1c('0xe')](_0x4a1c('0x10'),_0x4a1c('0x11'))['to'](this,_0x4a1c('0x18'),_0x4a1c('0x15')),this['revisionNameView'][_0x4a1c('0xe')](_0x4a1c('0x26'))['to'](this,_0x4a1c('0x2d'),this,_0x4a1c('0x26'),(_0x3b57a5,_0x5e4567)=>_0x3b57a5&&_0x5e4567),this['revisionActionsView']=_0x165ac1&&_0x165ac1['length']?_0x1a60e2(this,_0x165ac1):'',this['revisionActionsView']&&this[_0x4a1c('0x1a')][_0x4a1c('0xe')]('isEnabled')['to'](this),this[_0x4a1c('0x3')]({'tag':_0x4a1c('0xd'),'attributes':{'class':['ck',_0x4a1c('0x24'),_0x4a1c('0x20'),_0x2e5255['if']('isConfirm',_0x4a1c('0x28'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x4a1c('0x24'),_0x4a1c('0x14'),_0x2e5255['if'](_0x4a1c('0x26'),_0x4a1c('0x25'),_0x48ac83=>!_0x48ac83),_0x2e5255['if'](_0x4a1c('0x2d'),_0x4a1c('0x6')),_0x2e5255['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2e5255['if'](_0x4a1c('0x2b'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x4a1c('0x13')],{'tag':_0x4a1c('0x23'),'attributes':{'class':['ck',_0x4a1c('0x2a')]},'children':[{'text':_0x2e5255['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0x4a1c('0x1d')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4a1c('0xa')]},'children':_0x4aae13}]},this['revisionActionsView']],'on':{'click':_0x2e5255['to'](_0x1f4752=>{_0x1f4752[_0x4a1c('0xf')][_0x4a1c('0x17')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x4a1c('0x26')]&&this['fire'](_0x4a1c('0x1'),{'id':this['id']});})}}]});}['render'](){super[_0x4a1c('0xc')]();const _0x65f8e8=this['revisionNameView'][_0x4a1c('0x19')][_0x4a1c('0x1e')];this[_0x4a1c('0x22')](_0x65f8e8,_0x4a1c('0x8'),()=>{this[_0x4a1c('0x0')]('setName',{'id':this['id'],'name':_0x65f8e8['value']});});}[_0x4a1c('0x1')](){this['isSelected']=!0x0;}[_0x4a1c('0x1f')](){this[_0x4a1c('0x2d')]=!0x1;}[_0x4a1c('0x27')](){this[_0x4a1c('0x16')]=!0x0;}[_0x4a1c('0x29')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2250=['button','_isCollapsed','isVisible','ck-revision-history-sidebar__subrevision-collapser','span','bindTemplate','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','false','ck-hidden','toggle'];(function(_0x4745ab,_0x2250d7){const _0x4a204e=function(_0x1320a3){while(--_0x1320a3){_0x4745ab['push'](_0x4745ab['shift']());}};_0x4a204e(++_0x2250d7);}(_0x2250,0x18f));const _0x4a20=function(_0x4745ab,_0x2250d7){_0x4745ab=_0x4745ab-0x0;let _0x4a204e=_0x2250[_0x4745ab];return _0x4a204e;};import{View as _0x147043}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x147043{constructor(_0x414a50){super(_0x414a50);const _0x3548d6=this[_0x4a20('0x2')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4a20('0x3')]({'tag':_0x4a20('0x1'),'attributes':{'class':['ck',_0x4a20('0x0'),_0x3548d6['if'](_0x4a20('0xb'),_0x4a20('0x7'),_0xbac9cf=>!_0xbac9cf),_0x3548d6['if']('_isCollapsed',_0x4a20('0x4'))],'role':_0x4a20('0x9'),'aria-pressed':_0x3548d6['to'](_0x4a20('0xa'),_0x29cd38=>_0x29cd38?_0x4a20('0x6'):'true')},'children':[{'tag':_0x4a20('0x1'),'attributes':{'class':['ck',_0x4a20('0x5')]}}],'on':{'click':_0x3548d6['to']('click')}});}[_0x4a20('0x8')](){this[_0x4a20('0xa')]=!this[_0x4a20('0xa')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39b2=['createdAt','bind','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__subrevision','_createdAtFormatted','select','isSelected','set','ck-revision-history-sidebar__revision','setTemplate','deselect','ck-reset','creator','fire','div','uiLanguage','_parentRevisionId'];(function(_0x2ef30c,_0x39b25e){const _0x24a389=function(_0x1e2053){while(--_0x1e2053){_0x2ef30c['push'](_0x2ef30c['shift']());}};_0x24a389(++_0x39b25e);}(_0x39b2,0x129));const _0x24a3=function(_0x2ef30c,_0x39b25e){_0x2ef30c=_0x2ef30c-0x0;let _0x24a389=_0x39b2[_0x2ef30c];return _0x24a389;};import{View as _0x4c5fdd}from'ckeditor5/src/ui';import _0xea9589 from'./revisionauthorview';import{dateToPrettyFormat as _0x28f663}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x4c5fdd{constructor(_0x488051,_0x49408a,_0x43c08d){super(_0x488051);const _0x20f92a=this['bindTemplate'];this['id']=_0x49408a['id'],this['bind']('createdAt')['to'](_0x49408a),this[_0x24a3('0x10')](_0x24a3('0xf'),!0x1),this['bind'](_0x24a3('0xd'))['to'](this,_0x24a3('0x9'),_0x4a08d1=>_0x4a08d1?_0x28f663(_0x488051[_0x24a3('0x7')],_0x4a08d1):void 0x0),this[_0x24a3('0x8')]=_0x43c08d,this[_0x24a3('0x1')]({'tag':_0x24a3('0x6'),'attributes':{'class':['ck',_0x24a3('0x3'),_0x24a3('0x0'),_0x24a3('0xc'),_0x20f92a['if']('isSelected',_0x24a3('0xb'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x20f92a['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0xea9589(_0x488051,_0x49408a[_0x24a3('0x4')],!0x0)]}],'on':{'click':_0x20f92a['to'](this[_0x24a3('0xe')][_0x24a3('0xa')](this))}});}[_0x24a3('0xe')](){this['isSelected']=!0x0,this[_0x24a3('0x5')](_0x24a3('0xe'),{'parentId':this['_parentRevisionId']});}[_0x24a3('0x2')](){this[_0x24a3('0xf')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1ea7=['numeric','long'];(function(_0x595d26,_0x1ea739){var _0x563559=function(_0x133938){while(--_0x133938){_0x595d26['push'](_0x595d26['shift']());}};_0x563559(++_0x1ea739);}(_0x1ea7,0x1db));var _0x5635=function(_0x595d26,_0x1ea739){_0x595d26=_0x595d26-0x0;var _0x563559=_0x1ea7[_0x595d26];return _0x563559;};export function dateToPrettyFormat(_0x132819,_0x4ce21a){return _0x4ce21a['toLocaleDateString'](_0x132819,{'month':_0x5635('0x0'),'day':'numeric'})+',\x20'+_0x4ce21a['toLocaleTimeString'](_0x132819,{'hour':_0x5635('0x1'),'minute':_0x5635('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20b1=['revisionNameInputView','type','_createButton','input','_focusCycler','reset','arrowdown','focusTracker','fieldView','saveButtonView','execute','focus','stopPropagation','keystrokes','revisionName','trim','ck-revision-history-save-revision-form','arrowleft','ck-button-cancel','value','focusFirst','listenTo','_createRevisionNameInput','extendTemplate','high','label','arrowright','Save','Name\x20of\x20the\x20revision\x20(optional)','locale','delegate','arrowup','shift\x20+\x20tab','_focusables','set','form','cancel','add','render','forEach','setTemplate','element','revisionNameInputValue','ck-responsive-form','Cancel','cancelButtonView'];(function(_0x12ff0b,_0x20b100){const _0x396d61=function(_0x211a1a){while(--_0x211a1a){_0x12ff0b['push'](_0x12ff0b['shift']());}};_0x396d61(++_0x20b100);}(_0x20b1,0xb3));const _0x396d=function(_0x12ff0b,_0x20b100){_0x12ff0b=_0x12ff0b-0x0;let _0x396d61=_0x20b1[_0x12ff0b];return _0x396d61;};import{icons as _0x532b7c}from'ckeditor5/src/core';import{ButtonView as _0x48d708,FocusCycler as _0x5deec3,LabeledFieldView as _0x5a275d,View as _0x16344,ViewCollection as _0x47134c,createLabeledInputText as _0x15d367,injectCssTransitionDisabler as _0x5690af,submitHandler as _0x204c00}from'ckeditor5/src/ui';import{FocusTracker as _0x155369,KeystrokeHandler as _0x1ff507}from'ckeditor5/src/utils';import{getTranslation as _0x14bf5e}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class vt extends _0x16344{constructor(_0x2e626d){super(_0x2e626d),this[_0x396d('0xc')]=new _0x155369(),this[_0x396d('0x12')]=new _0x1ff507(),this[_0x396d('0x27')](_0x396d('0x1'),''),this[_0x396d('0x5')]=this[_0x396d('0x1b')](),this[_0x396d('0xe')]=this[_0x396d('0x7')](_0x14bf5e(_0x2e626d,_0x396d('0x20')),_0x532b7c['check'],'ck-button-save'),this[_0x396d('0xe')][_0x396d('0x6')]='submit',this[_0x396d('0x4')]=this[_0x396d('0x7')](_0x14bf5e(_0x2e626d,_0x396d('0x3')),_0x532b7c[_0x396d('0x29')],_0x396d('0x17'),'cancel'),this[_0x396d('0x26')]=new _0x47134c(),this[_0x396d('0x9')]=new _0x5deec3({'focusables':this[_0x396d('0x26')],'focusTracker':this[_0x396d('0xc')],'keystrokeHandler':this[_0x396d('0x12')],'actions':{'focusPrevious':_0x396d('0x25'),'focusNext':'tab'}}),this[_0x396d('0x2d')]({'tag':_0x396d('0x28'),'attributes':{'class':['ck',_0x396d('0x15'),_0x396d('0x2')],'tabindex':'-1'},'children':[this[_0x396d('0x5')],this[_0x396d('0xe')],this[_0x396d('0x4')]]}),_0x5690af(this);}[_0x396d('0x2b')](){super['render'](),_0x204c00({'view':this}),([this[_0x396d('0x5')],this[_0x396d('0xe')],this['cancelButtonView']][_0x396d('0x2c')](_0x2666e8=>{this[_0x396d('0x26')]['add'](_0x2666e8),this[_0x396d('0xc')][_0x396d('0x2a')](_0x2666e8[_0x396d('0x0')]);}),this[_0x396d('0x12')][_0x396d('0x1a')](this['element']));const _0x35f08b=_0x4d2895=>_0x4d2895['stopPropagation']();this['keystrokes'][_0x396d('0x27')](_0x396d('0x1f'),_0x35f08b),this[_0x396d('0x12')][_0x396d('0x27')](_0x396d('0x16'),_0x35f08b),this[_0x396d('0x12')]['set'](_0x396d('0x24'),_0x35f08b),this[_0x396d('0x12')][_0x396d('0x27')](_0x396d('0xb'),_0x35f08b),this[_0x396d('0x1a')](this[_0x396d('0x5')][_0x396d('0x0')],'selectstart',(_0x358969,_0x4f567c)=>{_0x4f567c[_0x396d('0x11')]();},{'priority':_0x396d('0x1d')});}[_0x396d('0x10')](){this['_focusCycler'][_0x396d('0x19')]();}get[_0x396d('0x13')](){return this[_0x396d('0x5')]['fieldView']['element']['value']['trim']();}set[_0x396d('0x13')](_0x598795){this[_0x396d('0x5')]['fieldView'][_0x396d('0x0')][_0x396d('0x18')]=_0x598795[_0x396d('0x14')]();}[_0x396d('0xa')](){this[_0x396d('0x5')][_0x396d('0xd')][_0x396d('0x0')][_0x396d('0x18')]='';}['_createRevisionNameInput'](){const _0x22d27c=new _0x5a275d(this[_0x396d('0x22')],_0x15d367),_0x1d7b3f=_0x22d27c[_0x396d('0xd')];return _0x1d7b3f[_0x396d('0x1c')]({'attributes':{'maxlength':'220'}}),_0x22d27c[_0x396d('0x1e')]=_0x14bf5e(this[_0x396d('0x22')],_0x396d('0x21')),_0x1d7b3f['on'](_0x396d('0x8'),()=>{this[_0x396d('0x1')]=_0x1d7b3f[_0x396d('0x0')][_0x396d('0x18')]['trim']();}),_0x22d27c;}[_0x396d('0x7')](_0x1a9764,_0x2cf95e,_0x181a96,_0x22af24){const _0x477582=new _0x48d708(this['locale']);return _0x477582[_0x396d('0x27')]({'label':_0x1a9764,'icon':_0x2cf95e,'tooltip':!0x0}),_0x477582[_0x396d('0x1c')]({'attributes':{'class':_0x181a96}}),_0x22af24&&_0x477582[_0x396d('0x23')](_0x396d('0xf'))['to'](this,_0x22af24),_0x477582;}}
|