@ckeditor/ckeditor5-revision-history 35.1.0 → 35.2.1
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/build/translations/es-co.js +1 -0
- package/build/translations/fa.js +1 -1
- package/build/translations/tt.js +1 -0
- package/lang/translations/es-co.po +124 -0
- package/lang/translations/fa.po +1 -1
- package/lang/translations/tt.po +122 -0
- package/package.json +7 -7
- 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 _0x402d=['splice','vid_start','_threeWayMerge','span','_processTape','_setDistance','hasAttribute','upcast','view','nextPosition','_joinTapes','_refreshStartEndIndex','getAttribute','markersEnd','bindElementToMarker','_markInsertions','commands','test','revision-comment:','numberOfChanges','uiElement','schema','loadRevisionData','getChild','isRemoved','push','enableReadOnlyMode','data-revision-','checkAttribute','isReady','_getRevisionsRange','_getViewObj','getRevisionData','pairId','ck-suggestion-marker','vid_end','_markSuggestions','for','backward','isIncorrect','unshift','map','attribute:vid','ck-editor__editable__overlay','index','setData','showPreviousChange','toViewPosition','item','shift','_removeMissingPairs','merge','restoreRevision','ck-suggestion-marker-split','isContent','addMarker:revision','includes','modelRange','downcastDispatcher','suggestion:','mousedown','isCollapsed','collaboration.channelId','startIndex','change:isReadOnly','insertions','ck-suggestion-preview-marker','ck-suggestion-marker-','setAttribute','offsetSize','change:activeChange','diff','isAtStart','showStack','newRevisionId','code','createUIElement','getCustomProperty','model','parent','nextSibling','plugins','addMarker:revision-suggestion:deletion','markerRange','getWalker','stopListening','markers','requires','_removeRevisionMarkers','dataDowncast','markerName','ck-suggestion-marker--active','revisionHistory','execute','next','readOnlyMode','addRevisionData','_changeView','_markMismatchedRemovedTags','_makeTape','deletion','getRevision','createAttributeElement','revision-suggestion:','dataToMarker','previousPosition','children','RevisionViewer','removeMarker:revision-suggestion','restoreRevisionCallback','POSITIVE_INFINITY','_balloon','removeMarker','markerToHighlight','high','getRoot','done','split','unbindElementFromMarkerName','_markMarkers','_getChangeFromId','pluginName','_initInteractions','addMarker:revision-suggestion:insertion','ck-suggestion-marker-merge','deletions','removeMarker:revision','config','isAtEnd','startsWith','isAfter','markerNameToElements','conversion','wrap','length','has','_cleanUp','showNextChange','revision:','RevisionsRepository','observeMarkers','createPositionBefore','slice','low','concat','activeChange','changes','processor','then','_target','change:isReady','softBreak','level','object','_cleanMarkers','delete','editingDowncast','range','writer','compare','elementStart','isBlock','removeClass','markerToData','change:isEnabled','get','name','return','viewItem','createRange','createRangeIn','from','revision-start','mapper','consume','string','target','insert','-new','nodeAfter','keys','isEqual','isNavigationMode','set','revision-viewer','marked','adapter','element','toViewElement','side','addHighlight','isSuggestion','_fixObsoleteTags','revision-suggestion','listenTo','elementEnd','toModel','isEnabled','end','_setConversion','attributes','markersStart','_makeModelFromTape','isAdded','document','type','editor','oldRevisionId','createRevision','_getViewForChange','stop','toData','useFillerType','isBefore','filter','change','refresh','forward','distance','userId','abs','_changeIdToChange','reconvertMarker','consumable','add','bind','isRemoveSuggestion','getRootNames','sort','diffData','_data','getItems','currentChangeNumber','hasClass','addClass','_step','repository','highest','start','revision','data','_update','insertion','remove','init','resolve','revisionHistoryLabel','_setData','vid','getAttributes','clearForceDisabled','isLimit','parse','roots','forEach','_removeUnsupportedChanges','_findChangeIdFromDomTarget','getIndex','_getDiff','maxOffset','isAddSuggestion','endIndex','text','editing','_makeModelFromViewString','destroy','change:activeView','activeView','createPositionFromPath'];(function(_0x3cd299,_0x402d9b){const _0x19065a=function(_0x133a0e){while(--_0x133a0e){_0x3cd299['push'](_0x3cd299['shift']());}};_0x19065a(++_0x402d9b);}(_0x402d,0x163));const _0x1906=function(_0x3cd299,_0x402d9b){_0x3cd299=_0x3cd299-0x0;let _0x19065a=_0x402d[_0x3cd299];return _0x19065a;};import{Plugin as _0x5a52c0,Command as _0x3864b7}from'ckeditor5/src/core';import{ObservableMixin as _0x528450,mix as _0x23516d,scrollViewportToShowTarget as _0x23cfd9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x229022}from'ckeditor5/src/ui';import{DocumentFragment as _0x4c4eef,Element as _0x451052,Text as _0x1e3124,ViewDocumentFragment as _0x157040,ViewText as _0x3e81b7,ViewElement as _0x93bb8f,ViewContainerElement as _0x14dfbf,ViewAttributeElement as _0x4558d0,ViewEmptyElement as _0x4c0b2a,ViewRawElement as _0x307f9e,ViewUIElement as _0x3e3413}from'ckeditor5/src/engine';import{Users as _0x44022d,getMarkerDomElement as _0x48a7d5}from'ckeditor5-collaboration/src/collaboration-core';import _0x325d7a from'./ui/revisionviewer/changedetailsview';import _0x3ffb6c from'./revisionsrepository';import _0x542d67 from'./changeitem';import _0x1142a3 from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x14dfbf,'a':_0x4558d0,'e':_0x4c0b2a,'r':_0x307f9e,'u':_0x3e3413};export default class d extends _0x5a52c0{static get[_0x1906('0x23')](){return _0x1906('0x15');}static get[_0x1906('0x1')](){return[_0x44022d,_0x229022,_0x3ffb6c];}constructor(..._0x474b8b){super(..._0x474b8b),this[_0x1906('0x96')]=this[_0x1906('0x78')]['plugins']['get'](_0x1906('0x35')),this['set'](_0x1906('0x3b'),null),this[_0x1906('0x61')]('activeView',null),this['set'](_0x1906('0xfe'),null),this['set'](_0x1906('0xd4'),!0x1),this[_0x1906('0x61')](_0x1906('0x6f'),!0x0),this['on'](_0x1906('0x4e'),(_0x4629ef,_0x101aac,_0x1f68c9)=>{this['activeChange']=null,this[_0x1906('0xb5')]=null,this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xbf')][_0x1906('0x81')](_0x361a2a=>{for(const _0x49db56 of this['editor'][_0x1906('0xb1')][_0x1906('0xbf')][_0x1906('0x76')][_0x1906('0xa7')])_0x1f68c9?_0x361a2a[_0x1906('0x4c')](_0x1906('0xe2'),_0x49db56):_0x361a2a[_0x1906('0x94')](_0x1906('0xe2'),_0x49db56);});}),this[_0x1906('0x8b')](_0x1906('0x60'))['to'](this,_0x1906('0x3b'),_0x5fa37b=>null!==_0x5fa37b),this['bind'](_0x1906('0x92'))['to'](this,'isReady',this,_0x1906('0xfe'),this,_0x1906('0x3b'),(_0xaf6499,_0x303107,_0xfb0444)=>_0xaf6499&&_0xfb0444?_0x303107[_0x1906('0x3c')]['getIndex'](_0xfb0444):0x0),this[_0x1906('0x8b')](_0x1906('0xca'))['to'](this,_0x1906('0xd4'),this,_0x1906('0xfe'),(_0x41a08b,_0x3de0ea)=>_0x41a08b?_0x3de0ea[_0x1906('0x3c')][_0x1906('0x30')]:0x0),this[_0x1906('0xb')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x1906('0x19')]=this[_0x1906('0x78')][_0x1906('0x108')][_0x1906('0x4f')](_0x229022);}[_0x1906('0x9e')](){const _0x2ed0a7=this[_0x1906('0x78')],_0x24751b=new et(_0x2ed0a7,{'direction':_0x1906('0xdd')}),_0x44122b=new et(_0x2ed0a7,{'direction':'forward'});_0x2ed0a7[_0x1906('0xc7')][_0x1906('0x8a')](_0x1906('0xe5'),_0x24751b),_0x2ed0a7['commands'][_0x1906('0x8a')](_0x1906('0x33'),_0x44122b),_0x2ed0a7['commands'][_0x1906('0x8a')](_0x1906('0xeb'),new tt(_0x2ed0a7)),this['on']('change:numberOfChanges',()=>{_0x24751b[_0x1906('0x82')](),_0x44122b[_0x1906('0x82')]();}),this[_0x1906('0x71')](),this['_initInteractions'](),_0x2ed0a7[_0x1906('0xd1')](_0x1906('0x62'));}async[_0x1906('0xd7')](_0xf0c8b1){await this[_0x1906('0xcd')](_0xf0c8b1);const _0x4b1665={};for(const _0xbfce56 in _0xf0c8b1[_0x1906('0x8f')]){const _0x31a0fe=this[_0x1906('0x2')](JSON['parse'](_0xf0c8b1[_0x1906('0x8f')][_0xbfce56][_0x1906('0xf8')])),_0x53214d=this[_0x1906('0x78')]['editing'][_0x1906('0xbf')][_0x1906('0x76')],_0x46e23f=new _0x157040(_0x53214d,_0x31a0fe[_0x1906('0xe0')](_0x2598c5=>this['_getViewObj'](_0x2598c5)));this[_0x1906('0x78')][_0x1906('0x9a')][_0x1906('0x3d')][_0x1906('0x7e')](_0x1906('0x63')),_0x4b1665[_0xbfce56]=this[_0x1906('0x78')][_0x1906('0x9a')]['processor'][_0x1906('0x7d')](_0x46e23f),this[_0x1906('0x78')][_0x1906('0x9a')][_0x1906('0x3d')]['useFillerType']('default');}return _0x4b1665;}[_0x1906('0x2')](_0x25cced){return(_0x25cced=_0x25cced[_0x1906('0x80')](_0x11296c=>!_0x11296c[_0x1906('0x50')]||_0x1906('0x56')!==_0x11296c[_0x1906('0x50')]&&'revision-end'!==_0x11296c[_0x1906('0x50')]))['forEach'](_0x276a04=>{'string'!=typeof _0x276a04&&(_0x276a04[_0x1906('0x14')]=this['_removeRevisionMarkers'](_0x276a04['children']),_0x276a04[_0x1906('0x72')]=_0x276a04['attributes'][_0x1906('0x80')](_0x320e75=>!_0x320e75[0x0]['startsWith'](_0x1906('0xd2'))));}),_0x25cced;}[_0x1906('0x49')](_0x24eafc,_0x2220c5,_0x54e021=!0x1){if(!this[_0x1906('0x6f')])return;const _0x340476=this[_0x1906('0xfe')],_0x211489=this['repository'],_0x26c340='string'==typeof _0x24eafc?_0x211489[_0x1906('0xf')](_0x24eafc):_0x24eafc,_0x6e28cb='string'==typeof _0x2220c5?_0x211489[_0x1906('0xf')](_0x2220c5):_0x2220c5,_0x5381c9=_0x26c340['id'],_0x5af2c3=_0x6e28cb?_0x6e28cb['id']:null;if(!_0x54e021&&this[_0x1906('0xfe')]&&this[_0x1906('0xfe')][_0x1906('0x101')]===_0x5381c9&&this[_0x1906('0xfe')][_0x1906('0x79')]===_0x5af2c3)return Promise[_0x1906('0x9f')]();this[_0x1906('0xd4')]=!0x1,this['activeView']=null,this[_0x1906('0x3b')]=null,this[_0x1906('0xfe')]=new _0x1142a3(_0x5381c9,_0x5af2c3);const _0x5e3f5a=this[_0x1906('0xd5')](_0x26c340,_0x6e28cb,!0x0)[_0x1906('0xe0')](_0x27332e=>this[_0x1906('0xcd')](_0x27332e));return _0x5e3f5a[_0x1906('0xd0')](new Promise(_0x38e080=>{setTimeout(_0x38e080,0x14);})),Promise['all'](_0x5e3f5a)[_0x1906('0x3e')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x308c05=this[_0x1906('0xac')](_0x5381c9,_0x5af2c3);this[_0x1906('0xfe')][_0x1906('0xa1')](_0x308c05);for(const _0x4d5ecd of this[_0x1906('0xfe')][_0x1906('0x3c')])this[_0x1906('0x87')][_0x1906('0x61')](_0x4d5ecd['id'],_0x4d5ecd);this[_0x1906('0x78')][_0x1906('0x105')]['enqueueChange']({'isUndoable':!0x1},_0x3fd89a=>{for(const _0x53da80 of Object[_0x1906('0x5e')](_0x308c05[_0x1906('0x105')])){const _0x41b16=this[_0x1906('0x78')][_0x1906('0x105')]['document'][_0x1906('0x1d')](_0x53da80);_0x3fd89a['remove'](_0x3fd89a[_0x1906('0x54')](_0x41b16)),_0x3fd89a[_0x1906('0x5b')](_0x308c05[_0x1906('0x105')][_0x53da80],_0x41b16,0x0);}}),this['isReady']=!0x0;})['catch'](_0x3abb6b=>{console['error'](_0x3abb6b),this[_0x1906('0x32')](),_0x340476?this['diff']=_0x340476:this[_0x1906('0x78')][_0x1906('0xe4')]('<p></p>'),this[_0x1906('0xd4')]=!0x0;});}[_0x1906('0xb3')](){this['activeView']=null,this['_changeView']&&this[_0x1906('0xb')][_0x1906('0xb3')]();}[_0x1906('0xa')](_0x5bf60c,_0x12014b){const _0x482345=this[_0x1906('0x96')][_0x1906('0x7a')](_0x5bf60c);return _0x482345['on'](_0x1906('0x9b'),(_0x7c0eed,_0x309c5e,_0x27abc0)=>_0x12014b(_0x309c5e,_0x27abc0,_0x482345)),this[_0x1906('0x96')]['addRevision'](_0x482345),_0x482345;}['loadRevisionData'](_0x2a7e77){if(!_0x2a7e77||_0x2a7e77['diffData'])return Promise[_0x1906('0x9f')]();{const _0x113ee4=this[_0x1906('0x78')]['config'][_0x1906('0x4f')](_0x1906('0xf5'));return this[_0x1906('0x64')][_0x1906('0xf')]({'channelId':_0x113ee4,'revisionId':_0x2a7e77['id']})['then'](_0x16f543=>{_0x2a7e77[_0x1906('0x9b')]({'diffData':_0x16f543['diffData']},!0x0);});}}[_0x1906('0x32')](){this['activeChange']=null,this[_0x1906('0x44')](),this[_0x1906('0xb')]&&this[_0x1906('0xb')][_0x1906('0xb3')](),this[_0x1906('0xb')]=null,this['_changeIdToChange']['clear']();}[_0x1906('0xd')](_0x675854){const _0x48ab3e=Array['from'](_0x675854['markers'])[_0x1906('0x80')](([_0x2e81a6,_0x51f60f])=>_0x2e81a6[_0x1906('0x2b')](_0x1906('0x34'))&&!_0x51f60f[_0x1906('0xf4')]),_0x5ac4b7=Array['from'](this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0x54')](_0x675854)[_0x1906('0x10b')]({'singleCharacters':!0x0}));if(0x0!=_0x48ab3e[_0x1906('0x30')])for(const _0x402daa of _0x5ac4b7){const [_0x4eedeb,_0x2a84e9]=_0x48ab3e[0x0],[,_0xc5fb9f,_0x4870b0]=_0x4eedeb[_0x1906('0x1f')](':');if(_0x2a84e9['end'][_0x1906('0x5f')](_0x402daa[_0x1906('0xc0')])&&_0x48ab3e[_0x1906('0xe8')](),(_0x402daa[_0x1906('0x13')]['isEqual'](_0x2a84e9[_0x1906('0x98')])||_0x402daa['previousPosition'][_0x1906('0x2c')](_0x2a84e9[_0x1906('0x98')]))&&('insertion'==_0xc5fb9f?_0x402daa[_0x1906('0x75')]={'userId':_0x4870b0}:_0x1906('0xe')==_0xc5fb9f&&(_0x402daa[_0x1906('0xcf')]={'userId':_0x4870b0})),0x0==_0x48ab3e[_0x1906('0x30')])break;}return _0x5ac4b7;}[_0x1906('0xc2')](_0x38b4b0){const _0x4a9cde=new Map();for(let _0x3f62c5=0x0;_0x3f62c5<_0x38b4b0[_0x1906('0x30')];_0x3f62c5++)'text'===_0x38b4b0[_0x3f62c5]['type']?(_0x38b4b0[_0x3f62c5][_0x1906('0xe7')][_0x1906('0xf6')]=_0x3f62c5,_0x38b4b0[_0x3f62c5]['item'][_0x1906('0xaf')]=_0x3f62c5):(_0x1906('0x4a')===_0x38b4b0[_0x3f62c5][_0x1906('0x77')]?_0x38b4b0[_0x3f62c5]['item']['startIndex']=_0x3f62c5:_0x1906('0x6d')===_0x38b4b0[_0x3f62c5][_0x1906('0x77')]&&(_0x38b4b0[_0x3f62c5]['item'][_0x1906('0xaf')]=_0x3f62c5),_0x4a9cde[_0x1906('0x61')](_0x38b4b0[_0x3f62c5]['id'],_0x3f62c5));for(const _0x31ee15 of _0x4a9cde['values']())_0x1906('0x4a')===_0x38b4b0[_0x31ee15][_0x1906('0x77')]?_0x38b4b0[_0x31ee15][_0x1906('0xe7')]['endIndex']=_0x4a9cde[_0x1906('0x4f')](_0x38b4b0[_0x31ee15][_0x1906('0xd8')]):_0x1906('0x6d')===_0x38b4b0[_0x31ee15][_0x1906('0x77')]&&(_0x38b4b0[_0x31ee15][_0x1906('0xe7')][_0x1906('0xf6')]=_0x4a9cde['get'](_0x38b4b0[_0x31ee15][_0x1906('0xd8')]));}[_0x1906('0xbb')](_0xa6b094){for(let _0x1e80a8=0x0;_0x1e80a8<_0xa6b094['length'];_0x1e80a8++){if(_0x1906('0x4a')===_0xa6b094[_0x1e80a8]['type'])_0xa6b094[_0x1e80a8][_0x1906('0xe7')][_0x1906('0xf6')]=_0x1e80a8;else{if(_0x1906('0x6d')===_0xa6b094[_0x1e80a8][_0x1906('0x77')]){_0xa6b094[_0x1e80a8]['item'][_0x1906('0xaf')]=_0x1e80a8;const _0xd001e4=_0xa6b094[_0x1e80a8][_0x1906('0xe7')]['startIndex'];_0xa6b094[_0xd001e4][_0x1906('0xd8')]=_0xa6b094[_0x1e80a8]['id'],_0xa6b094[_0x1e80a8][_0x1906('0xd8')]=_0xa6b094[_0xd001e4]['id'];}else _0xa6b094[_0x1e80a8]['item']['startIndex']=_0x1e80a8,_0xa6b094[_0x1e80a8][_0x1906('0xe7')][_0x1906('0xaf')]=_0x1e80a8,_0xa6b094[_0x1e80a8][_0x1906('0xd8')]=null;}_0xa6b094[_0x1e80a8][_0x1906('0x73')]||(_0xa6b094[_0x1e80a8][_0x1906('0x73')]=[],_0xa6b094[_0x1e80a8][_0x1906('0xc4')]=[]);}}[_0x1906('0xc6')](_0x1ffb1b,_0x3807ff){const _0x521776=_0x1ffb1b[_0x1906('0x80')](_0x298ad1=>!_0x298ad1[_0x1906('0x75')]);for(let _0x4b9f5a=0x0;_0x4b9f5a<_0x3807ff[_0x1906('0x30')];_0x4b9f5a++)_0x3807ff[_0x4b9f5a][_0x1906('0x75')]&&(_0x521776[_0x4b9f5a][_0x1906('0x75')]=_0x3807ff[_0x4b9f5a][_0x1906('0x75')]);}[_0x1906('0xb2')](_0x223962){const _0x422056=JSON[_0x1906('0xa6')](_0x223962),_0x2bcb81=this[_0x1906('0x78')]['editing'][_0x1906('0xbf')]['document'],_0x2ace07=new _0x157040(_0x2bcb81,_0x422056[_0x1906('0xe0')](_0x313bee=>this[_0x1906('0xd6')](_0x313bee)));return this[_0x1906('0x78')]['data'][_0x1906('0x6e')](_0x2ace07);}[_0x1906('0xd6')](_0x3b94bc){const _0x1a92c=this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xbf')][_0x1906('0x76')];if(_0x1906('0x59')==typeof _0x3b94bc)return new _0x3e81b7(_0x1a92c,_0x3b94bc);{const _0x314e62=_0x3b94bc[_0x1906('0x14')][_0x1906('0xe0')](_0x1647f7=>this[_0x1906('0xd6')](_0x1647f7));return new(Y[_0x3b94bc[(_0x1906('0x77'))]]||_0x93bb8f)(_0x1a92c,_0x3b94bc[_0x1906('0x50')],_0x3b94bc['attributes'],_0x314e62);}}[_0x1906('0xac')](_0x4716d6,_0x352a72=null){const _0x5bcd63=this[_0x1906('0x96')][_0x1906('0xf')](_0x4716d6),_0x1ced55=_0x352a72?this[_0x1906('0x96')][_0x1906('0xf')](_0x352a72):null,_0x1ba13d=this[_0x1906('0xd5')](_0x5bcd63,_0x1ced55),_0x2bfca5=_0x1ba13d[_0x1ba13d[_0x1906('0x30')]-0x1],_0x3ed9c6=new Map();for(const _0x50425c of _0x1ba13d){_0x50425c[_0x1906('0x105')]={};for(const _0x4a3348 of _0x50425c['authors'])_0x3ed9c6[_0x1906('0x61')](_0x4a3348['id'],_0x4a3348);for(const _0x251718 of this[_0x1906('0x78')][_0x1906('0x105')]['document'][_0x1906('0x8d')]())_0x50425c[_0x1906('0x8f')][_0x251718]||(_0x50425c[_0x1906('0x8f')][_0x251718]={'insertions':'[]','deletions':'[]'}),_0x50425c[_0x1906('0x105')][_0x251718]={'insertions':this[_0x1906('0xb2')](_0x50425c['diffData'][_0x251718][_0x1906('0xf8')]),'deletions':this[_0x1906('0xb2')](_0x50425c[_0x1906('0x8f')][_0x251718][_0x1906('0x27')])};}const _0x270577={'model':{},'changes':[]};for(const _0xba029c of this['editor'][_0x1906('0x105')]['document']['getRootNames']()){let _0x2054e8=null,_0x6e6c4d=0x0;const _0x73424d=new Map(Array[_0x1906('0x55')](_0x5bcd63[_0x1906('0x105')][_0xba029c][_0x1906('0xf8')][_0x1906('0x0')])[_0x1906('0x80')](([_0x23414a])=>!_0x23414a[_0x1906('0x2b')](_0x1906('0x34'))));let _0xb9cbff=0x0;for(const _0x24d68f of _0x1ba13d){const _0xbf3be3=this['_makeTape'](_0x24d68f[_0x1906('0x105')][_0xba029c]['insertions']);_0x24d68f==_0x5bcd63?(_0x2054e8=_0xbf3be3,_0x6e6c4d=_0x2054e8[_0x1906('0x30')],_0x2054e8[_0x1906('0xa8')](_0x112561=>{_0x112561['id']=_0xb9cbff++;}),this[_0x1906('0xbb')](_0x2054e8)):this[_0x1906('0xc6')](_0x2054e8,_0xbf3be3);const _0x2287bf=_0x2054e8[_0x1906('0x80')](_0x417869=>!_0x417869[_0x1906('0x75')])[_0x1906('0xe0')](_0x4460a2=>_0x4460a2['id']);let _0x1cbaa5=0x0;const _0x4b6cc7=this[_0x1906('0xd')](_0x24d68f[_0x1906('0x105')][_0xba029c][_0x1906('0x27')]);_0x4b6cc7['forEach'](_0xaf5c2d=>{_0xaf5c2d[_0x1906('0xcf')]?_0xaf5c2d['id']=_0x6e6c4d++:_0xaf5c2d['id']=_0x2287bf[_0x1cbaa5++];}),this[_0x1906('0xbb')](_0x4b6cc7),this[_0x1906('0xbc')](_0x2054e8,_0x1906('0x75')),this['_setDistance'](_0x4b6cc7,_0x1906('0xcf')),_0x24d68f==_0x5bcd63&&this[_0x1906('0x21')](_0x2054e8,_0x73424d),_0x2054e8=this[_0x1906('0xc1')](_0x2054e8,_0x4b6cc7),this[_0x1906('0xc2')](_0x2054e8),this[_0x1906('0xbc')](_0x2054e8,'isRemoved');}_0x2054e8=_0x2054e8['filter'](_0xff8a29=>!(_0xff8a29[_0x1906('0x75')]&&_0xff8a29['isRemoved']));const _0x340de1=new Map(_0x2bfca5['model'][_0xba029c]['deletions'][_0x1906('0x0')]),_0x480614=new Set(_0x73424d[_0x1906('0x5e')]());for(const _0x46c25a of _0x340de1['keys']())_0x480614[_0x1906('0x45')](_0x46c25a);this[_0x1906('0xdb')](_0x2054e8,_0x480614),this[_0x1906('0x6a')](_0x2054e8),_0x2054e8=this[_0x1906('0xe9')](_0x2054e8),_0x2054e8=this['_markMismatchedRemovedTags'](_0x2054e8),_0x2054e8=this[_0x1906('0xa9')](_0x2054e8);const {root:_0x5cebf9,changes:_0x2eef57}=this[_0x1906('0x74')](_0x2054e8,_0x3ed9c6);_0x270577[_0x1906('0x105')][_0xba029c]=_0x5cebf9,_0x270577[_0x1906('0x3c')]=_0x270577[_0x1906('0x3c')]['concat'](_0x2eef57);}return _0x270577;}[_0x1906('0x21')](_0x16c43b,_0x4a724f){for(let _0x437e32=0x0;_0x437e32<_0x16c43b['length'];_0x437e32++)for(const [_0x3f2061,_0x3a669e]of _0x4a724f)_0x3a669e['start'][_0x1906('0x5f')](_0x16c43b[_0x437e32][_0x1906('0x13')])&&_0x16c43b[_0x437e32]['markersStart'][_0x1906('0xd0')](_0x3f2061),_0x3a669e[_0x1906('0x70')][_0x1906('0x5f')](_0x16c43b[_0x437e32][_0x1906('0xc0')])&&_0x16c43b[_0x437e32][_0x1906('0xc4')][_0x1906('0xd0')](_0x3f2061);}[_0x1906('0xc1')](_0x3ea2eb,_0x58e666){let _0x29a5bc=[],_0x432fe7=0x0,_0x5208dc=0x0;for(;_0x432fe7<_0x3ea2eb[_0x1906('0x30')]||_0x5208dc<_0x58e666[_0x1906('0x30')];){const _0x13208e=_0x3ea2eb[_0x432fe7]||{},_0x126f14=_0x58e666[_0x5208dc]||{};if(_0x13208e['id']==_0x126f14['id'])_0x432fe7++,_0x5208dc++,_0x29a5bc['push'](_0x13208e);else{if(_0x126f14[_0x1906('0xcf')]&&_0x13208e[_0x1906('0x75')]){const {commonTape:_0x9cb461,iEnd:_0xe11339,jEnd:_0x186548}=this[_0x1906('0xb9')](_0x3ea2eb,_0x432fe7,_0x58e666,_0x5208dc);_0x29a5bc=_0x29a5bc[_0x1906('0x3a')](_0x9cb461),_0x432fe7=_0xe11339,_0x5208dc=_0x186548;}else _0x126f14[_0x1906('0xcf')]?(_0x5208dc++,_0x29a5bc[_0x1906('0xd0')](_0x126f14)):(_0x432fe7++,_0x29a5bc[_0x1906('0xd0')](_0x13208e));}}return _0x29a5bc;}['_markSuggestions'](_0x38fcb2,_0x2262f6){const _0x359306=[];for(let _0x1fcd3b=0x0;_0x1fcd3b<_0x38fcb2['length'];_0x1fcd3b++){for(let _0x309390=0x0;_0x309390<_0x38fcb2[_0x1fcd3b][_0x1906('0x73')][_0x1906('0x30')];_0x309390++){const _0x348a0e=_0x38fcb2[_0x1fcd3b][_0x1906('0x73')][_0x309390];if(!_0x2262f6['has'](_0x348a0e))continue;const {group:_0x1c9eee,type:_0x43bf5e,authorId:_0x59b19d}=_0x11cef3(_0x348a0e);'revision-suggestion'!=_0x1c9eee||'insertion'!=_0x43bf5e&&_0x1906('0xe')!=_0x43bf5e||(_0x359306['unshift']({'type':_0x43bf5e,'name':_0x348a0e,'userId':_0x59b19d}),_0x38fcb2[_0x1fcd3b][_0x1906('0x73')][_0x1906('0xb7')](_0x309390,0x1),_0x309390--);}_0x534b5b(_0x38fcb2[_0x1fcd3b]);for(let _0x345af6=0x0;_0x345af6<_0x38fcb2[_0x1fcd3b]['markersEnd']['length'];_0x345af6++){const _0x39f2c7=_0x38fcb2[_0x1fcd3b][_0x1906('0xc4')][_0x345af6];if(!_0x2262f6[_0x1906('0x31')](_0x39f2c7))continue;const {group:_0x28264c,type:_0x18a23f}=_0x11cef3(_0x39f2c7);if('revision-suggestion'!=_0x28264c||_0x1906('0x9c')!=_0x18a23f&&_0x1906('0xe')!=_0x18a23f)continue;_0x38fcb2[_0x1fcd3b][_0x1906('0xc4')][_0x1906('0xb7')](_0x345af6,0x1),_0x345af6--;const _0x107e1a=_0x359306['findIndex'](_0x612bdf=>_0x612bdf[_0x1906('0x50')]==_0x39f2c7);_0x107e1a>-0x1&&_0x359306[_0x1906('0xb7')](_0x107e1a,0x1);}}function _0x11cef3(_0xa9135c){const _0x677912=_0xa9135c[_0x1906('0x1f')](':');return{'group':_0x677912[0x0],'type':_0x677912[0x1],'subType':_0x677912[_0x1906('0x30')]>=0x5?_0x677912[0x2]:null,'id':_0x677912[_0x1906('0x30')]<0x5?_0x677912[0x2]:_0x677912[0x3],'authorId':_0x677912[_0x1906('0x30')]<0x5?_0x677912[0x3]:_0x677912[0x4],'markerCount':0x6==_0x677912[_0x1906('0x30')]?_0x677912[0x5]:null};}function _0x534b5b(_0x5e1eaa){for(let _0x514ed7=0x0;_0x514ed7<_0x359306[_0x1906('0x30')];_0x514ed7++){if(_0x5e1eaa[_0x1906('0x75')]&&_0x1906('0x9c')==_0x359306[_0x514ed7][_0x1906('0x77')])return _0x5e1eaa[_0x1906('0xae')]=_0x359306[_0x514ed7],void delete _0x5e1eaa[_0x1906('0x75')];if(!_0x5e1eaa[_0x1906('0x75')]&&!_0x5e1eaa[_0x1906('0xcf')]&&'deletion'==_0x359306[_0x514ed7]['type'])return void(_0x5e1eaa[_0x1906('0x8c')]=_0x359306[_0x514ed7]);}}}[_0x1906('0xbc')](_0x42c6ea,_0x47e76b){let _0xf6f1da=0x0,_0xd4eabd=!0x1;const _0x4daff8=new Map();for(const _0x36e740 of _0x42c6ea)_0x36e740[_0x47e76b]?_0xd4eabd&&(_0xf6f1da++,_0xd4eabd=!0x1):(_0xf6f1da++,_0xd4eabd=!0x0),_0x4daff8['set'](_0x36e740['id'],_0xf6f1da);for(let _0x1ae702=0x0;_0x1ae702<_0x42c6ea[_0x1906('0x30')];_0x1ae702++){if(_0x1906('0xcf')==_0x47e76b&&_0x42c6ea[_0x1ae702][_0x1906('0x75')]||'isAdded'==_0x47e76b&&_0x42c6ea[_0x1ae702][_0x1906('0xcf')])continue;if(_0x1906('0xb0')==_0x42c6ea[_0x1ae702][_0x1906('0x77')]){_0x42c6ea[_0x1ae702][_0x1906('0x84')]=0x0;continue;}const _0xdbf523=_0x4daff8[_0x1906('0x4f')](_0x42c6ea[_0x1ae702][_0x1906('0xd8')]),_0x5c7e35=_0x4daff8[_0x1906('0x4f')](_0x42c6ea[_0x1ae702]['id']);_0x42c6ea[_0x1ae702][_0x1906('0x84')]=_0xdbf523-_0x5c7e35;}}[_0x1906('0xd5')](_0x385c1c,_0x3f1ff3,_0x42c30d=!0x1){const _0x1df558=[];let _0x83e92e=this[_0x1906('0x96')][_0x1906('0xab')](_0x385c1c),_0x151b25=this[_0x1906('0x96')][_0x1906('0xab')](_0x3f1ff3);for(-0x1==_0x151b25&&(_0x151b25=this[_0x1906('0x96')]['_revisions'][_0x1906('0x30')],_0x42c30d=!0x1);_0x83e92e<_0x151b25;)_0x1df558[_0x1906('0xd0')](this[_0x1906('0x96')][_0x1906('0xf')](_0x83e92e)),_0x83e92e++;return _0x42c30d&&_0x1df558[_0x1906('0xd0')](this['repository'][_0x1906('0xf')](_0x83e92e)),_0x1df558;}[_0x1906('0xb9')](_0x29e5b1,_0x2abd5f,_0x4b27ac,_0x4a3660){const _0x2672f8=this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0xcc')];let _0x4cbd27=_0x2abd5f;for(;_0x29e5b1[_0x4cbd27]&&_0x29e5b1[_0x4cbd27][_0x1906('0x75')];)_0x4cbd27++;let _0x3e2817=_0x4a3660;for(;_0x4b27ac[_0x3e2817]&&_0x4b27ac[_0x3e2817][_0x1906('0xcf')];)_0x3e2817++;_0x513b55(_0x29e5b1,_0x2abd5f,_0x4cbd27),_0x513b55(_0x4b27ac,_0x4a3660,_0x3e2817);const _0x8a2787=_0x4b27ac[_0x1906('0x38')](_0x4a3660,_0x3e2817)[_0x1906('0x3a')](_0x29e5b1[_0x1906('0x38')](_0x2abd5f,_0x4cbd27));return _0x8a2787['sort']((_0x5a8f4e,_0xfc932f)=>_0x5a8f4e[_0x1906('0x67')]!=_0xfc932f['side']?_0x5a8f4e[_0x1906('0x67')]-_0xfc932f[_0x1906('0x67')]:_0x5a8f4e[_0x1906('0x42')]!=_0xfc932f[_0x1906('0x42')]?_0x5a8f4e['level']-_0xfc932f['level']:_0x5a8f4e[_0x1906('0x84')]!=_0xfc932f['distance']?_0xfc932f['distance']-_0x5a8f4e[_0x1906('0x84')]:!!_0x5a8f4e[_0x1906('0x75')]!=!!_0xfc932f[_0x1906('0x75')]?-0x1==_0x5a8f4e['side']||0x0==_0x5a8f4e[_0x1906('0x67')]?_0x5a8f4e[_0x1906('0x75')]?-0x1:0x1:_0x5a8f4e[_0x1906('0x75')]?0x1:-0x1:_0x5a8f4e['index']-_0xfc932f[_0x1906('0xe3')]),{'commonTape':_0x8a2787,'iEnd':_0x4cbd27,'jEnd':_0x3e2817};function _0x513b55(_0x5c9b38,_0x3f1e8a,_0x1b1f9e){let _0x304121=-0x1,_0x26a4f5=Number[_0x1906('0x18')],_0x4c46f5=!0x0;for(let _0x47c01=_0x3f1e8a;_0x47c01<_0x1b1f9e;_0x47c01++)if(_0x2672f8['isInline'](_0x5c9b38[_0x47c01]['item'])||(_0x4c46f5=!0x1),_0x5c9b38[_0x47c01][_0x1906('0xe7')][_0x1906('0xf6')]<_0x3f1e8a&&(_0x304121=_0x47c01),_0x5c9b38[_0x47c01][_0x1906('0xe7')][_0x1906('0xaf')]>=_0x1b1f9e){_0x26a4f5=_0x47c01;break;}_0x4c46f5&&(_0x304121=_0x1b1f9e-0x1);for(let _0x27a7f2=_0x3f1e8a;_0x27a7f2<_0x1b1f9e;_0x27a7f2++)_0x5c9b38[_0x27a7f2][_0x1906('0x67')]=_0x27a7f2<=_0x304121?-0x1:_0x27a7f2<_0x26a4f5?0x0:0x1,_0x5c9b38[_0x27a7f2]['index']=_0x27a7f2;let _0x5da17d=0x0;for(let _0x1b4fef=_0x3f1e8a;_0x1b4fef<=_0x304121;_0x1b4fef++)0x0==_0x5c9b38[_0x1b4fef][_0x1906('0x84')]?_0x5c9b38[_0x1b4fef]['level']=_0x5da17d:(_0x5da17d++,_0x5c9b38[_0x1b4fef][_0x1906('0x42')]=_0x5da17d,_0x5da17d++);for(let _0x3a9b21=_0x3f1e8a;_0x3a9b21<_0x1b1f9e;_0x3a9b21++)0x0==_0x5c9b38[_0x3a9b21][_0x1906('0x67')]&&(_0x5c9b38[_0x3a9b21][_0x1906('0x42')]=_0x5da17d);_0x5da17d=0x0;for(let _0x1250f1=_0x1b1f9e-0x1;_0x1250f1>=_0x26a4f5;_0x1250f1--)0x0==_0x5c9b38[_0x1250f1][_0x1906('0x84')]?_0x5c9b38[_0x1250f1][_0x1906('0x42')]=_0x5da17d:(_0x5da17d--,_0x5c9b38[_0x1250f1]['level']=_0x5da17d,_0x5da17d--);}}['_fixObsoleteTags'](_0x2c3065){const _0x129c5b=new Map(),_0x2ca0fe=this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0xcc')];for(let _0x527e28=0x1;_0x527e28<_0x2c3065[_0x1906('0x30')];_0x527e28++){let _0x38a1ac,_0x40d59f,_0x4ba4e3;const _0x2e90ac=_0x2c3065[_0x527e28],_0x415d6d=_0x2c3065[_0x527e28-0x1];if(_0x1906('0xb0')==_0x2e90ac['type'])continue;if(_0x2e90ac[_0x1906('0x77')]!=_0x415d6d[_0x1906('0x77')])continue;if(!_0x2ca0fe[_0x1906('0x4b')](_0x415d6d[_0x1906('0xe7')])||_0x2ca0fe['isLimit'](_0x415d6d[_0x1906('0xe7')]))continue;if(!_0x2ca0fe[_0x1906('0x4b')](_0x2e90ac['item'])||_0x2ca0fe['isLimit'](_0x2e90ac[_0x1906('0xe7')]))continue;if((_0x2c3065[_0x527e28][_0x1906('0x75')]||_0x2c3065[_0x527e28][_0x1906('0xae')])&&_0x2c3065[_0x527e28-0x1][_0x1906('0xcf')])_0x38a1ac=_0x2c3065[_0x527e28],_0x40d59f=_0x2c3065[_0x527e28-0x1],_0x4ba4e3=_0x527e28-0x1;else{if(!_0x2c3065[_0x527e28][_0x1906('0xcf')]||!_0x2c3065[_0x527e28-0x1][_0x1906('0x75')]&&!_0x2c3065[_0x527e28-0x1][_0x1906('0xae')])continue;_0x38a1ac=_0x2c3065[_0x527e28-0x1],_0x40d59f=_0x2c3065[_0x527e28],_0x4ba4e3=_0x527e28;}const _0x249cf9=_0x38a1ac[_0x1906('0x42')]==_0x40d59f[_0x1906('0x42')],_0x22e713=Math[_0x1906('0x86')](_0x38a1ac[_0x1906('0x42')])<Math[_0x1906('0x86')](_0x40d59f['level'])&&0x0==_0x40d59f['distance'];(_0x249cf9||_0x22e713)&&(_0x129c5b['set'](_0x40d59f['id'],_0x38a1ac['id']),_0x2c3065['splice'](_0x4ba4e3,0x1),_0x527e28--,_0x38a1ac[_0x1906('0x75')]=!0x1);}for(let _0x17e990=0x0;_0x17e990<_0x2c3065[_0x1906('0x30')];_0x17e990++)_0x129c5b[_0x1906('0x31')](_0x2c3065[_0x17e990][_0x1906('0xd8')])&&(_0x2c3065[_0x17e990][_0x1906('0xd8')]=_0x129c5b[_0x1906('0x4f')](_0x2c3065[_0x17e990][_0x1906('0xd8')]));}[_0x1906('0xe9')](_0x3cb688){const _0x249c7c=new Set(_0x3cb688[_0x1906('0xe0')](_0x410e65=>_0x410e65['id']));for(let _0x2dd42c=0x0;_0x2dd42c<_0x3cb688[_0x1906('0x30')];_0x2dd42c++)_0x249c7c[_0x1906('0x31')](_0x3cb688[_0x2dd42c][_0x1906('0xd8')])||0x0==_0x3cb688[_0x2dd42c]['distance']||(_0x3cb688[_0x2dd42c][_0x1906('0xde')]=!0x0);return _0x3cb688[_0x1906('0x80')](_0x53e93a=>!_0x53e93a[_0x1906('0xde')]);}[_0x1906('0xc')](_0xba1b36){const _0x2af783=new Set();for(let _0x430082=0x0;_0x430082<_0xba1b36['length'];_0x430082++){if(_0x2af783['has'](_0xba1b36[_0x430082]['id'])&&_0xba1b36[_0x430082][_0x1906('0xcf')]&&(_0xba1b36[_0x430082][_0x1906('0xde')]=!0x0),_0xba1b36[_0x430082][_0x1906('0xde')])continue;if(0x0==_0xba1b36[_0x430082]['distance'])continue;if(_0x1906('0x4a')!=_0xba1b36[_0x430082][_0x1906('0x77')])continue;if(null==_0xba1b36[_0x430082][_0x1906('0xd8')])continue;let _0x18ae2d=_0x430082+0x1,_0x4b280c=0x0;for(;_0xba1b36[_0x18ae2d]['id']!=_0xba1b36[_0x430082][_0x1906('0xd8')];)_0x1906('0x4a')==_0xba1b36[_0x18ae2d][_0x1906('0x77')]?_0x4b280c++:_0x1906('0x6d')==_0xba1b36[_0x18ae2d][_0x1906('0x77')]&&_0x4b280c--,_0x18ae2d++;if(0x0!=_0x4b280c){if(_0xba1b36[_0x430082][_0x1906('0xcf')])_0xba1b36[_0x430082][_0x1906('0xde')]=!0x0;else for(;_0x18ae2d!=_0x430082;)_0xba1b36[_0x18ae2d][_0x1906('0xcf')]&&0x0!=_0xba1b36[_0x18ae2d][_0x1906('0x84')]&&(_0xba1b36[_0x18ae2d][_0x1906('0xde')]=!0x0,_0x2af783['add'](_0xba1b36[_0x18ae2d]['pairId'])),_0x18ae2d--;}}return _0xba1b36[_0x1906('0x80')](_0x5f1295=>!_0x5f1295[_0x1906('0xde')]);}[_0x1906('0xa9')](_0x4d915c){const _0x46fe71=this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0xcc')];for(let _0x169f29=0x0;_0x169f29<_0x4d915c[_0x1906('0x30')];_0x169f29++){if(!(_0x4d915c[_0x169f29][_0x1906('0x75')]||_0x4d915c[_0x169f29][_0x1906('0xae')]||_0x4d915c[_0x169f29][_0x1906('0xcf')]||_0x4d915c[_0x169f29]['isRemoveSuggestion']))continue;if(0x0==_0x4d915c[_0x169f29][_0x1906('0x84')])continue;const _0x29663f=_0x4d915c[_0x169f29][_0x1906('0xe7')];_0x46fe71[_0x1906('0x4b')](_0x29663f)||_0x46fe71[_0x1906('0xa5')](_0x29663f)||(_0x4d915c[_0x169f29][_0x1906('0x75')]&&delete _0x4d915c[_0x169f29][_0x1906('0x75')],_0x4d915c[_0x169f29][_0x1906('0xae')]&&delete _0x4d915c[_0x169f29][_0x1906('0xae')],_0x4d915c[_0x169f29][_0x1906('0x8c')]&&delete _0x4d915c[_0x169f29][_0x1906('0x8c')],_0x4d915c[_0x169f29]['isRemoved']&&(_0x4d915c[_0x169f29][_0x1906('0xde')]=!0x0));}return _0x4d915c[_0x1906('0x80')](_0x240928=>!_0x240928[_0x1906('0xde')]);}[_0x1906('0x74')](_0x4222eb,_0x5b0d46){const _0x447190=new _0x4c4eef(),_0x35c83b=[],_0x45f554=new Map(),_0x5b242a=this[_0x1906('0x78')][_0x1906('0x105')],_0x1fde4b=_0x5b242a[_0x1906('0xcc')],_0x587d17=[_0x447190],_0x35c79e={},_0xdbab96={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x447505=null;const _0x2e242e=[0x0];for(let _0x3b818d=0x0;_0x3b818d<_0x4222eb[_0x1906('0x30')];_0x3b818d++){let _0x2faab4,_0x36d9e7;if(_0x1906('0x4a')===_0x4222eb[_0x3b818d]['type']){_0x2faab4=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e);const _0x540faf=new _0x451052(_0x4222eb[_0x3b818d][_0x1906('0xe7')]['name'],_0x4222eb[_0x3b818d][_0x1906('0xe7')][_0x1906('0xa3')]());_0x587d17[0x0]['_appendChild'](_0x540faf),_0x2e242e[_0x1906('0xd0')](0x0),_0x587d17['unshift'](_0x540faf),_0x36d9e7=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e),_0x447505=null;}else{if(_0x1906('0x6d')===_0x4222eb[_0x3b818d][_0x1906('0x77')])_0x587d17[_0x1906('0xe8')](),_0x2faab4=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e),_0x2e242e['pop'](),_0x2e242e[_0x2e242e[_0x1906('0x30')]-0x1]++,_0x36d9e7=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e),_0x447505=null;else{if(_0x2faab4=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e),_0x447505&&_0x1858ec(_0x447505,_0x4222eb[_0x3b818d][_0x1906('0xe7')]))_0x447505[_0x1906('0x90')]+=_0x4222eb[_0x3b818d][_0x1906('0xe7')][_0x1906('0x9a')];else{const _0x44d7f1=new _0x1e3124(_0x4222eb[_0x3b818d][_0x1906('0xe7')]['data'],_0x4222eb[_0x3b818d][_0x1906('0xe7')][_0x1906('0xa3')]());_0x587d17[0x0]['_appendChild'](_0x44d7f1),_0x447505=_0x44d7f1;}_0x2e242e[_0x2e242e['length']-0x1]+=_0x4222eb[_0x3b818d]['item'][_0x1906('0xfc')],_0x36d9e7=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e);}}for(const _0x3fd3be of _0x4222eb[_0x3b818d]['markersStart'])_0x45f554['set'](_0x3fd3be,{'start':_0x2faab4,'end':null});_0x501c7d(_0x1906('0x8c'),_0x3b818d,_0x2faab4,_0x36d9e7),_0x501c7d(_0x1906('0xae'),_0x3b818d,_0x2faab4,_0x36d9e7),_0x501c7d(_0x1906('0xcf'),_0x3b818d,_0x2faab4,_0x36d9e7),_0x501c7d(_0x1906('0x75'),_0x3b818d,_0x2faab4,_0x36d9e7);for(const _0x55b349 of _0x4222eb[_0x3b818d][_0x1906('0xc4')]){_0x45f554[_0x1906('0x4f')](_0x55b349)[_0x1906('0x70')]=_0x36d9e7;}}for(const [_0x35c622,_0x477294]of _0x45f554){const _0x488c2c=this['editor'][_0x1906('0x105')][_0x1906('0x53')](_0x477294[_0x1906('0x98')],_0x477294['end']);_0x447190[_0x1906('0x0')][_0x1906('0x61')](_0x35c622,_0x488c2c);}return _0x35c83b[_0x1906('0x8e')]((_0x2e42df,_0x48c3a5)=>{const _0x26a638=_0x447190[_0x1906('0x0')]['get'](_0x1906('0x34')+_0x2e42df['id']),_0x5eac58=_0x447190[_0x1906('0x0')][_0x1906('0x4f')](_0x1906('0x34')+_0x48c3a5['id']);return _0x26a638[_0x1906('0x98')]['isBefore'](_0x5eac58[_0x1906('0x98')])?-0x1:_0x26a638[_0x1906('0x98')]['isAfter'](_0x5eac58['start'])?0x1:_0x26a638[_0x1906('0x70')][_0x1906('0x7f')](_0x5eac58['end'])?-0x1:_0x26a638[_0x1906('0x70')]['isAfter'](_0x5eac58[_0x1906('0x70')])?0x1:_0x1906('0x8a')===_0x2e42df[_0x1906('0x77')]?-0x1:0x1;}),{'root':_0x447190,'changes':_0x35c83b};function _0x501c7d(_0x562cb7,_0x583332,_0x1f6878,_0x2d97e7){const _0x156ea0=!!_0x4222eb[_0x583332][_0x562cb7],_0x4d5a97=_0x156ea0?_0x4222eb[_0x583332][_0x562cb7][_0x1906('0x85')]:null,_0x34bd1f=_0x583332===_0x4222eb[_0x1906('0x30')]-0x1,_0x19c9c9=_0xdbab96[_0x562cb7][0x0],_0x3132ed=_0x1fde4b['isObject'](_0x4222eb[_0x583332]['item']);!_0x35c79e[_0x562cb7]&&_0x156ea0?_0x35c79e[_0x562cb7]={'start':_0x1f6878,'tapeItem':_0x4222eb[_0x583332],'userId':_0x4d5a97,'type':_0x562cb7}:_0x35c79e[_0x562cb7]&&!_0x156ea0?(_0x35c79e[_0x562cb7]['end']=_0x1f6878,_0x2c0fe4(_0x35c79e[_0x562cb7]),_0x35c79e[_0x562cb7]=null):_0x35c79e[_0x562cb7]&&_0x156ea0&&_0x35c79e[_0x562cb7]['userId']!==_0x4d5a97&&(_0x35c79e[_0x562cb7][_0x1906('0x70')]=_0x1f6878,_0x19c9c9&&_0x19c9c9[_0x1906('0x85')]===_0x35c79e[_0x562cb7][_0x1906('0x85')]||_0x2c0fe4(_0x35c79e[_0x562cb7]),_0x35c79e[_0x562cb7]={'start':_0x1f6878,'tapeItem':_0x4222eb[_0x583332],'userId':_0x4d5a97,'type':_0x562cb7}),_0x35c79e[_0x562cb7]&&_0x3132ed&&(_0x1906('0x4a')!==_0x4222eb[_0x583332][_0x1906('0x77')]||_0x19c9c9&&_0x19c9c9[_0x1906('0x85')]===_0x4d5a97||_0xdbab96[_0x562cb7][_0x1906('0xdf')]({'userId':_0x4d5a97,'object':_0x4222eb[_0x583332]['item'],'change':_0x35c79e[_0x562cb7]}),_0x1906('0x6d')===_0x4222eb[_0x583332][_0x1906('0x77')]&&_0x19c9c9&&_0x19c9c9[_0x1906('0x43')]===_0x4222eb[_0x583332][_0x1906('0xe7')]&&(_0xdbab96[_0x562cb7][_0x1906('0xe8')](),_0x35c79e[_0x562cb7]=_0x19c9c9[_0x1906('0x81')])),_0x35c79e[_0x562cb7]&&_0x34bd1f&&(_0x35c79e[_0x562cb7][_0x1906('0x70')]=_0x2d97e7,_0x2c0fe4(_0x35c79e[_0x562cb7]),_0x35c79e[_0x562cb7]=null);}function _0x2c0fe4({start:_0x4092c5,end:_0x28f1f4,tapeItem:_0x153905,userId:_0x5b21c4,type:_0xb8fe53}){const _0x2188f5=_0x153905[_0x1906('0xe7')],_0x1edfab=_0x5b242a[_0x1906('0xcc')][_0x1906('0x4b')](_0x2188f5)&&!_0x5b242a[_0x1906('0xcc')][_0x1906('0xa5')](_0x2188f5),_0x3f0baf=_0x4092c5['nodeAfter']==_0x28f1f4[_0x1906('0x106')]&&_0x28f1f4[_0x1906('0xff')];if(_0x1edfab&&_0x3f0baf)return;const _0x3b88d5=_0x5b242a['createRange'](_0x4092c5,_0x28f1f4),_0x561f6e=_0x5b0d46['get'](_0x5b21c4),_0x7dd61d=new _0x542d67({'author':_0x561f6e,'type':_0x1906('0x75')==_0xb8fe53||_0x1906('0xae')==_0xb8fe53?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xb8fe53||_0x1906('0x8c')==_0xb8fe53},'createdAt':new Date()});_0x35c83b['push'](_0x7dd61d),_0x447190[_0x1906('0x0')][_0x1906('0x61')](_0x1906('0x34')+_0x7dd61d['id'],_0x3b88d5);}function _0x1858ec(_0x308aa7,_0x1989be){const _0x100b8d=_0x308aa7[_0x1906('0xa3')](),_0x39c109=_0x1989be[_0x1906('0xa3')]();for(const _0x50d7bf of _0x100b8d){if(_0x50d7bf[0x1]!==_0x1989be[_0x1906('0xc3')](_0x50d7bf[0x0]))return!0x1;_0x39c109[_0x1906('0x8')]();}return _0x39c109[_0x1906('0x8')]()[_0x1906('0x1e')];}}['_setConversion'](){this['editor'][_0x1906('0x2e')][_0x1906('0xdc')](_0x1906('0xbe'))['dataToMarker']({'view':_0x1906('0x99')}),this[_0x1906('0x78')][_0x1906('0x2e')][_0x1906('0xdc')](_0x1906('0x46'))['markerToHighlight']({'model':_0x1906('0x99'),'view':_0x5484e5=>{const _0xe96a51=_0x5484e5['markerName'][_0x1906('0x1f')](':')[0x1],_0x3c5fe0=this[_0x1906('0x22')](_0xe96a51);if(!_0x3c5fe0)return null;const _0x5ca82b=_0x1906('0x8a')==_0x3c5fe0[_0x1906('0x77')]?_0x1906('0x9c'):_0x1906('0xe'),_0x284016=[_0x1906('0xd9'),'ck-suggestion-marker-'+_0x5ca82b];return _0x3c5fe0['data'][_0x1906('0x69')]&&_0x284016[_0x1906('0xd0')](_0x1906('0xfa')+_0x5ca82b+_0x1906('0x5c')),this[_0x1906('0x3b')]==_0x3c5fe0&&_0x284016[_0x1906('0xd0')](_0x1906('0x5')),{'classes':_0x284016,'attributes':{'data-change-id':_0xe96a51}};}}),this[_0x1906('0x78')]['conversion'][_0x1906('0xdc')](_0x1906('0xbe'))[_0x1906('0x8a')](_0x5b001c=>{_0x5b001c['on']('element:pre',(_0x2aebd9,_0x3ca747,_0x1be2a3)=>{const _0x3c8637=_0x3ca747[_0x1906('0x52')][_0x1906('0xce')](0x0);if(!_0x3c8637||!_0x3c8637['is'](_0x1906('0x65'),_0x1906('0x102')))return;if(!_0x1be2a3[_0x1906('0x89')][_0x1906('0x58')](_0x3c8637,{'attributes':[_0x1906('0xb8'),_0x1906('0xda')]}))return;const _0x5c5c14=_0x3ca747['modelRange'][_0x1906('0x98')]['nodeAfter'];_0x1be2a3[_0x1906('0x48')][_0x1906('0xfb')](_0x1906('0xb8'),_0x3c8637['getAttribute']('vid_start'),_0x5c5c14),_0x1be2a3['writer'][_0x1906('0xfb')](_0x1906('0xda'),_0x3c8637[_0x1906('0xc3')](_0x1906('0xda')),_0x5c5c14);},{'priority':'low'});}),this['editor'][_0x1906('0x2e')][_0x1906('0xdc')]('upcast')[_0x1906('0x8a')](_0x1b2009=>{_0x1b2009['on'](_0x1906('0x65'),(_0x3334d6,_0x1dc1ab,_0x58c957)=>{if(!_0x58c957[_0x1906('0x89')][_0x1906('0x58')](_0x1dc1ab['viewItem'],{'attributes':['vid_start',_0x1906('0xda')]}))return;if(_0x1dc1ab['modelRange']['isCollapsed'])return;const _0x1aa151=_0x1dc1ab[_0x1906('0xf0')][_0x1906('0x98')][_0x1906('0x5d')];_0x1aa151[_0x1906('0xbd')](_0x1906('0xb8'))||_0x1aa151['hasAttribute']('vid')||(_0x58c957[_0x1906('0x48')][_0x1906('0xfb')]('vid_start',_0x1dc1ab[_0x1906('0x52')][_0x1906('0xc3')](_0x1906('0xb8')),_0x1aa151),_0x58c957[_0x1906('0x48')][_0x1906('0xfb')]('vid_end',_0x1dc1ab[_0x1906('0x52')][_0x1906('0xc3')](_0x1906('0xda')),_0x1aa151));},{'priority':_0x1906('0x39')});}),this[_0x1906('0x78')][_0x1906('0x2e')]['for'](_0x1906('0xbe'))['elementToAttribute']({'view':{'name':_0x1906('0xba'),'attributes':{'vid':!0x0}},'model':{'key':_0x1906('0xa2'),'value':_0x3dc30e=>_0x3dc30e['getAttribute'](_0x1906('0xa2'))}}),this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0xcc')]['on'](_0x1906('0xd3'),(_0x3e97cc,[,_0x10384b])=>{[_0x1906('0xb8'),_0x1906('0xda'),_0x1906('0xa2')][_0x1906('0xef')](_0x10384b)&&(_0x3e97cc[_0x1906('0x51')]=!0x0,_0x3e97cc[_0x1906('0x7c')]());},{'priority':_0x1906('0x97')}),this['editor'][_0x1906('0x2e')][_0x1906('0xdc')](_0x1906('0x3'))[_0x1906('0x8a')](_0x2e63fe=>{_0x2e63fe['on'](_0x1906('0xe1'),(_0x1af755,_0x419abb,_0x40e4d4)=>{if('\x20'!=_0x419abb[_0x1906('0xe7')][_0x1906('0x9a')]||_0x419abb[_0x1906('0xe7')][_0x1906('0x106')][_0x1906('0xad')]>0x1)return;if(!_0x40e4d4[_0x1906('0x89')]['consume'](_0x419abb[_0x1906('0xe7')],_0x1af755[_0x1906('0x50')]))return;const _0x80bc29=_0x40e4d4[_0x1906('0x48')],_0x483f40=_0x40e4d4[_0x1906('0x57')]['toViewRange'](_0x419abb[_0x1906('0x47')]);_0x80bc29[_0x1906('0x2f')](_0x483f40,_0x80bc29[_0x1906('0x10')](_0x1906('0xba')));});}),this['editor'][_0x1906('0x2e')][_0x1906('0xdc')]('dataDowncast')[_0x1906('0x4d')]({'model':'revision'}),this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xf1')]['on'](_0x1906('0xee'),function(_0x462b53){const _0x304158=_0x462b53[_0x1906('0x108')][_0x1906('0x4f')]('RevisionViewer');return(_0x2d3829,_0x6cda60,_0xfe12ff)=>{const _0x2ef5a7=_0x6cda60['markerName'][_0x1906('0x1f')](':')[0x1],_0xfd5482=_0x304158[_0x1906('0x22')](_0x2ef5a7);if(!_0xfd5482)return null;const _0x5d26d4=_0x1906('0x8a')==_0xfd5482[_0x1906('0x77')]?_0x1906('0x1f'):_0x1906('0xea');if(!_0xfe12ff['consumable'][_0x1906('0xc8')](_0x6cda60[_0x1906('0x10a')],_0x2d3829[_0x1906('0x50')]))return;const _0x3528c2=_0x6cda60[_0x1906('0x10a')][_0x1906('0x10b')](),_0x3b557c=_0x6cda60[_0x1906('0x10a')][_0x1906('0x98')],_0x18e710=_0x462b53['model'][_0x1906('0xcc')];let _0x370b13=null,_0x36eff9=null,_0x125258=!0x1,_0x3956fb=!0x1;for(const _0xfbf4f4 of _0x3528c2){const _0x597e65=_0xfbf4f4[_0x1906('0xe7')];_0x125258=_0x125258||_0x18e710[_0x1906('0xed')](_0x597e65);const _0x2ae2f2=_0xfe12ff[_0x1906('0x57')][_0x1906('0x66')](_0x597e65);if(_0x2ae2f2&&_0x2ae2f2[_0x1906('0x104')](_0x1906('0x68')))return;'elementEnd'==_0xfbf4f4[_0x1906('0x77')]&&(_0x18e710[_0x1906('0x4b')](_0x597e65)&&!_0x18e710[_0x1906('0xa5')](_0x597e65)&&(_0x597e65[_0x1906('0x107')]||_0x3b557c[_0x1906('0x2a')]?_0x370b13&&_0x370b13[_0x1906('0x106')]==_0x597e65||(_0x370b13=_0x597e65,_0x239163(_0xfbf4f4[_0x1906('0x13')]),_0x3956fb=!0x0):_0x36eff9=_0x36eff9||_0xfbf4f4[_0x1906('0x13')]));}function _0x239163(_0x3e869f){const _0x50c379=_0xfe12ff[_0x1906('0x48')][_0x1906('0x103')](_0x1906('0xba'),{'class':_0x1906('0xfa')+_0x5d26d4}),_0xa7911=_0xfe12ff[_0x1906('0x57')][_0x1906('0xe6')](_0x3e869f);_0xfd5482[_0x1906('0x9a')]['isSuggestion']&&_0xfe12ff[_0x1906('0x48')][_0x1906('0x94')]('ck-suggestion-marker-'+_0x5d26d4+_0x1906('0x5c'),_0x50c379),_0x304158[_0x1906('0x3b')]==_0xfd5482&&_0xfe12ff[_0x1906('0x48')][_0x1906('0x94')](_0x1906('0x5'),_0x50c379),_0xfe12ff[_0x1906('0x48')]['insert'](_0xa7911,_0x50c379),_0xfe12ff['mapper'][_0x1906('0xc5')](_0x50c379,_0x6cda60[_0x1906('0x4')]);}_0x125258||_0x3956fb||!_0x36eff9||_0x239163(_0x36eff9);};}(this['editor']),{'priority':_0x1906('0x1c')}),this[_0x1906('0x78')][_0x1906('0xb1')]['downcastDispatcher']['on'](_0x1906('0x28'),(_0xb555bb,_0x550bb7,_0x4a24a5)=>{const _0x7ad11e=_0x4a24a5['mapper'][_0x1906('0x2d')](_0x550bb7['markerName']);if(_0x7ad11e)for(const _0x40d663 of _0x7ad11e)(_0x40d663[_0x1906('0x93')](_0x1906('0xec'))||_0x40d663[_0x1906('0x93')](_0x1906('0x26')))&&(_0x4a24a5[_0x1906('0x57')][_0x1906('0x20')](_0x40d663,_0x550bb7[_0x1906('0x4')]),_0x4a24a5[_0x1906('0x48')][_0x1906('0x9d')](_0x40d663));},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on'](_0x1906('0xee'),(_0x3c3535,_0x3d5b20,_0x32d4dd)=>{const _0x133f7b=_0x3d5b20[_0x1906('0x4')][_0x1906('0x1f')](':')[0x1],_0x5ae0a5=this[_0x1906('0x22')](_0x133f7b);if(!_0x5ae0a5)return null;const _0x4bd03d=_0x1906('0x8a')==_0x5ae0a5[_0x1906('0x77')]?'split':_0x1906('0xea');if(_0x32d4dd[_0x1906('0x89')]['test'](_0x3d5b20['markerRange'],_0x3c3535[_0x1906('0x50')]))for(const _0x4c3c1f of _0x3d5b20[_0x1906('0x10a')][_0x1906('0x91')]()){if(!_0x4c3c1f['is']('element',_0x1906('0x41')))continue;const _0x335659=_0x32d4dd[_0x1906('0x48')]['createUIElement']('span',{'class':_0x1906('0xfa')+_0x4bd03d}),_0x3bf0b4=_0x32d4dd['mapper']['toViewPosition'](this[_0x1906('0x78')]['model'][_0x1906('0x37')](_0x4c3c1f));_0x5ae0a5[_0x1906('0x9a')][_0x1906('0x69')]&&_0x32d4dd['writer'][_0x1906('0x94')](_0x1906('0xfa')+_0x4bd03d+_0x1906('0x5c'),_0x335659),this[_0x1906('0x3b')]==_0x5ae0a5&&_0x32d4dd[_0x1906('0x48')][_0x1906('0x94')]('ck-suggestion-marker--active',_0x335659),_0x32d4dd[_0x1906('0x48')]['insert'](_0x3bf0b4,_0x335659),_0x32d4dd[_0x1906('0x57')][_0x1906('0xc5')](_0x335659,_0x3d5b20[_0x1906('0x4')]);}},{'priority':_0x1906('0x1c')}),this['editor'][_0x1906('0x2e')]['for']('upcast')[_0x1906('0x12')]({'view':'comment','model':_0x32d943=>_0x1906('0xc9')+_0x32d943,'converterPriority':'highest'}),this['editor'][_0x1906('0x2e')][_0x1906('0xdc')]('upcast')[_0x1906('0x12')]({'view':'suggestion','model':_0x5301e2=>_0x1906('0x11')+_0x5301e2,'converterPriority':_0x1906('0x97')}),this['editor']['conversion'][_0x1906('0xdc')](_0x1906('0x3'))['markerToData']({'model':_0x1906('0x6b'),'view':_0x23144f=>_0x1906('0xf2')+_0x23144f,'converterPriority':_0x1906('0x97')}),this[_0x1906('0x78')][_0x1906('0x2e')][_0x1906('0xdc')](_0x1906('0x46'))[_0x1906('0x1b')]({'model':_0x1906('0x6b'),'view':_0x5729db=>{const _0x239e6d=_0x5729db['markerName'][_0x1906('0x1f')](':')[0x1];return _0x1906('0x9c')!=_0x239e6d&&_0x1906('0xe')!=_0x239e6d?null:{'classes':[_0x1906('0xf9'),'ck-suggestion-preview-marker-'+_0x239e6d]};}}),this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xf1')]['on'](_0x1906('0x109'),Z(this[_0x1906('0x78')],_0x1906('0xea')),{'priority':_0x1906('0x1c')}),this['editor'][_0x1906('0xb1')]['downcastDispatcher']['on'](_0x1906('0x25'),Z(this[_0x1906('0x78')],_0x1906('0x1f')),{'priority':_0x1906('0x1c')}),this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xf1')]['on'](_0x1906('0x16'),(_0x3cc418,_0x167c80,_0x4fc950)=>{const _0x4cac59=_0x4fc950[_0x1906('0x57')][_0x1906('0x2d')](_0x167c80['markerName']);if(_0x4cac59)for(const _0x1636c5 of _0x4cac59)_0x1636c5['is'](_0x1906('0xcb'))&&(_0x4fc950['mapper'][_0x1906('0x20')](_0x1636c5,_0x167c80[_0x1906('0x4')]),_0x4fc950['writer'][_0x1906('0x9d')](_0x1636c5));},{'priority':_0x1906('0x1c')});}[_0x1906('0x22')](_0x32970e){return this[_0x1906('0x87')][_0x1906('0x4f')](_0x32970e);}[_0x1906('0x7b')](_0x57f2a1){this[_0x1906('0xb')]&&this[_0x1906('0xb')][_0x1906('0xb3')](),this[_0x1906('0xb')]=new _0x325d7a(this['editor']['locale'],_0x57f2a1);const _0x19791d=this[_0x1906('0x78')]['model'][_0x1906('0x0')][_0x1906('0x4f')](_0x1906('0x34')+_0x57f2a1['id']);return this['_changeView'][_0x1906('0x3f')]=()=>_0x48a7d5(this[_0x1906('0x78')]['editing'],_0x19791d),this[_0x1906('0xb')];}[_0x1906('0x24')](){this['editor'][_0x1906('0x105')][_0x1906('0x76')]['selection'][_0x1906('0x36')](_0x1906('0x99')),this['on'](_0x1906('0xb4'),(_0x307178,_0x43482c,_0x12cb76,_0x1e6198)=>{_0x1e6198&&this[_0x1906('0x19')]['remove'](_0x1e6198),_0x12cb76&&(this[_0x1906('0x19')][_0x1906('0x8a')]({'view':_0x12cb76,'stackId':'revisionHistoryLabel','position':{'target':_0x12cb76[_0x1906('0x3f')]}}),this[_0x1906('0x19')][_0x1906('0x100')](_0x1906('0xa0')));}),this['on'](_0x1906('0xfd'),(_0x53bebd,_0x47f5e5,_0x3cf06a,_0x167dc5)=>{this['activeView']=_0x3cf06a?this['_getViewForChange'](_0x3cf06a):null,this[_0x1906('0x78')][_0x1906('0x105')]['change'](()=>{const _0x52b8e7=this[_0x1906('0x78')][_0x1906('0xb1')];_0x167dc5&&_0x52b8e7[_0x1906('0x88')](_0x1906('0x34')+_0x167dc5['id']),_0x3cf06a&&_0x52b8e7[_0x1906('0x88')]('revision:'+_0x3cf06a['id']);});}),this[_0x1906('0x6c')](this['editor']['editing'][_0x1906('0xbf')][_0x1906('0x76')],'mouseover',(_0x5c4ea0,_0x36ab93)=>{if(this[_0x1906('0x3b')])return;const _0x4327b9=this[_0x1906('0xaa')](_0x36ab93[_0x1906('0x5a')]),_0xc1053f=this[_0x1906('0x87')][_0x1906('0x4f')](_0x4327b9);this['activeView']=_0xc1053f?this[_0x1906('0x7b')](_0xc1053f):null;}),this[_0x1906('0x6c')](this[_0x1906('0x78')]['editing'][_0x1906('0xbf')][_0x1906('0x76')],_0x1906('0xf3'),(_0x38148a,_0xed21f1)=>{const _0x5e5ee5=this['_findChangeIdFromDomTarget'](_0xed21f1[_0x1906('0x5a')]),_0x207ee6=this[_0x1906('0x87')][_0x1906('0x4f')](_0x5e5ee5);this['activeChange']=_0x207ee6||null;});}[_0x1906('0xaa')](_0xe10dba){do{const _0x584574=_0xe10dba['getAttribute']('data-change-id');if(_0x584574)return _0x584574;_0xe10dba=_0xe10dba[_0x1906('0x106')];}while(_0xe10dba);return null;}['_cleanMarkers'](){this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0x81')](_0x7808a6=>{for(const _0x144e7c of this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0x0')])_0x7808a6[_0x1906('0x1a')](_0x144e7c);});}}function Z(_0x21c24f,_0x2c1acd){return(_0x289bde,_0x1447d1,_0x1e2907)=>{if(!_0x1e2907[_0x1906('0x89')][_0x1906('0xc8')](_0x1447d1[_0x1906('0x10a')],_0x289bde[_0x1906('0x50')]))return;const _0x5ac78c=_0x1447d1[_0x1906('0x10a')][_0x1906('0x10b')](),_0x554c69=_0x1447d1[_0x1906('0x10a')][_0x1906('0x98')],_0x458cfd=_0x21c24f['model']['schema'];let _0x5bc4ae=null,_0x4e7d29=null,_0x21a0b4=!0x1,_0x333940=!0x1;for(const _0x20ac4c of _0x5ac78c){const _0x5eebce=_0x20ac4c['item'];_0x21a0b4=_0x21a0b4||_0x458cfd[_0x1906('0xed')](_0x5eebce);const _0x4755f6=_0x1e2907[_0x1906('0x57')]['toViewElement'](_0x5eebce);if(_0x4755f6&&_0x4755f6[_0x1906('0x104')](_0x1906('0x68')))return;_0x1906('0x6d')==_0x20ac4c[_0x1906('0x77')]&&(_0x458cfd[_0x1906('0x4b')](_0x5eebce)&&!_0x458cfd['isLimit'](_0x5eebce)&&(_0x5eebce[_0x1906('0x107')]||_0x554c69[_0x1906('0x2a')]?_0x5bc4ae&&_0x5bc4ae[_0x1906('0x106')]==_0x5eebce||(_0x5bc4ae=_0x5eebce,_0x430baf(_0x20ac4c[_0x1906('0x13')]),_0x333940=!0x0):_0x4e7d29=_0x4e7d29||_0x20ac4c[_0x1906('0x13')]));}function _0x430baf(_0x546440){const _0x338dac=_0x1e2907[_0x1906('0x57')]['toViewPosition'](_0x546440),_0x7e24e1=_0x1e2907[_0x1906('0x48')][_0x1906('0x103')]('span',{'class':'ck-suggestion-preview-marker-'+_0x2c1acd});_0x1e2907[_0x1906('0x48')][_0x1906('0x5b')](_0x338dac,_0x7e24e1),_0x1e2907['mapper']['bindElementToMarker'](_0x7e24e1,_0x1447d1[_0x1906('0x4')]);}_0x21a0b4||_0x333940||!_0x4e7d29||_0x430baf(_0x4e7d29);};}_0x23516d(d,_0x528450);class tt extends _0x3864b7{constructor(_0x343ed1){super(_0x343ed1);const _0x349063=_0x343ed1['plugins'][_0x1906('0x4f')](d);this[_0x1906('0x10c')](_0x343ed1,_0x1906('0xf7')),this[_0x1906('0xa4')](_0x1906('0x9')),this[_0x1906('0x6c')](_0x349063,_0x1906('0x40'),()=>this[_0x1906('0x82')]()),this[_0x1906('0x6c')](_0x349063,_0x1906('0x4e'),()=>this[_0x1906('0x82')]());}[_0x1906('0x7')](){const _0x8dc680=this[_0x1906('0x78')],_0xf1433=_0x8dc680[_0x1906('0x108')][_0x1906('0x4f')](d),_0x574c45=_0xf1433[_0x1906('0xd4')]?_0xf1433[_0x1906('0xfe')]['newRevisionId']:null;_0x8dc680[_0x1906('0x29')][_0x1906('0x4f')](_0x1906('0x6'))[_0x1906('0x17')](_0x574c45);}['refresh'](){const {isReady:_0x211a7c,isEnabled:_0x10223b}=this[_0x1906('0x78')][_0x1906('0x108')][_0x1906('0x4f')](d);this[_0x1906('0x6f')]=_0x211a7c&&_0x10223b;}}class et extends _0x3864b7{constructor(_0x37b7e0,{direction:_0x27d851}){super(_0x37b7e0);const _0x1b43f0=_0x37b7e0[_0x1906('0x108')]['get'](d);this[_0x1906('0x10c')](_0x37b7e0,_0x1906('0xf7')),this[_0x1906('0xa4')](_0x1906('0x9')),this['_step']=_0x1906('0x83')===_0x27d851?0x1:-0x1,this[_0x1906('0x6c')](_0x1b43f0,_0x1906('0x40'),()=>this[_0x1906('0x82')]()),this['listenTo'](_0x1b43f0,'change:isEnabled',()=>this[_0x1906('0x82')]());}['execute'](){const _0xda8040=this[_0x1906('0x78')],_0x10f502=_0xda8040[_0x1906('0x108')][_0x1906('0x4f')](d),{isNavigationMode:_0xf31fb9,currentChangeNumber:_0x4380b9}=_0x10f502;_0x10f502['activeChange']=_0xf31fb9?_0x10f502['diff'][_0x1906('0x3c')][_0x1906('0x4f')](_0x4380b9+this[_0x1906('0x95')]):_0x10f502[_0x1906('0xfe')][_0x1906('0x3c')]['first'];const _0x47cdf7=_0xda8040[_0x1906('0x105')]['markers'][_0x1906('0x4f')](_0x1906('0x34')+_0x10f502[_0x1906('0x3b')]['id']),_0x57cf55=_0x48a7d5(_0xda8040[_0x1906('0xb1')],_0x47cdf7);_0x23cfd9({'target':_0x57cf55,'viewportOffset':0x28});}[_0x1906('0x82')](){const {isNavigationMode:_0x35c908,currentChangeNumber:_0x318f45,numberOfChanges:_0x12dac8,isReady:_0x2c3057,isEnabled:_0xd5e5ca}=this[_0x1906('0x78')][_0x1906('0x108')][_0x1906('0x4f')](d);this[_0x1906('0x6f')]=!!(_0xd5e5ca&&_0x2c3057&&_0x12dac8)&&(!_0x35c908||(0x1===this[_0x1906('0x95')]?_0x318f45<_0x12dac8-0x1:_0x318f45>0x0));}}
|
|
23
|
+
const _0xc25d=['revisionHistoryLabel','marked','consumable','isAtStart','stop','data','start','loadRevisionData','POSITIVE_INFINITY','newRevisionId','addRevisionData','error','change:numberOfChanges','commands','_refreshStartEndIndex','destroy','elementEnd','revision-start','values','deletions','document','changes','vid_end','remove','_initInteractions','_cleanMarkers','keys','activeView','set','diff','side','end','next','revision-suggestion','comment','length','_findChangeIdFromDomTarget','_getRevisionsRange','getRevision','revision-viewer','-new','shift','listenTo','low','data-change-id','getItems','createRange','toModel','isIncorrect','_threeWayMerge','forward','model','oldRevisionId','setAttribute','viewItem','slice','isAtEnd','merge','clearForceDisabled','isContent','parse','range','config','mapper','markerToHighlight','isNavigationMode','maxOffset','add','filter','getRevisionData','removeMarker:revision-suggestion','bind','_setData','_appendChild','_removeMissingPairs','markerName','element','concat','vid','attributes','insert','nextSibling','insertion','level','done','pairId','_step','hasAttribute','upcast','userId','readOnlyMode','writer','index','_processTape','isInline','from','showStack','adapter','mousedown','repository','revision','editor','markerRange','change:activeChange','observeMarkers','addHighlight','isLimit','offsetSize','activeChange','authors','high','code','parent','ck-suggestion-marker--active','getChild','getIndex','removeMarker:revision','createAttributeElement','_makeModelFromViewString','plugins','createRangeIn','addMarker:revision','ck-suggestion-marker-merge','map','children','schema','_target','ck-suggestion-marker-split','markers','default','enqueueChange','delete','string','then','span','_removeUnsupportedChanges','_makeModelFromTape','pop','processor','_makeTape','distance','getAttributes','isAddSuggestion','editingDowncast','useFillerType','reconvertMarker','markerToData','previousPosition','elementToAttribute','revision:','change:isEnabled','change:isReadOnly','showPreviousChange','type','backward','_getChangeFromId','requires','bindElementToMarker','stopListening','isAfter','split','isBlock','test','attribute:vid','_joinTapes','consume','forEach','push','getRootNames','for','ck-suggestion-preview-marker-','diffData','nodeAfter','removeClass','hasClass','isRemoveSuggestion','conversion','markerNameToElements','change','toViewElement','isSuggestion','_markMismatchedRemovedTags','item','_balloon','isBefore','_update','setData','<p></p>','change:isReady','addMarker:revision-suggestion:deletion','compare','return','_markInsertions','_cleanUp','all','RevisionViewer','downcastDispatcher','name','pluginName','getWalker','_setConversion','target','isRemoved','clear','splice','text','unbindElementFromMarkerName','elementStart','deletion','mouseover','_markSuggestions','_getViewForChange','addClass','_changeIdToChange','init','createPositionFromPath','checkAttribute','_revisions','get','_changeView','uiElement','toData','isEqual','isAdded','view','vid_start','_fixObsoleteTags','markersStart','dataDowncast','data-revision-','has','ck-editor__editable__overlay','insertions','first','startsWith','collaboration.channelId','sort','_getViewObj','nextPosition','createUIElement','refresh','ck-suggestion-preview-marker','_setDistance','_getDiff','revisionHistory','_removeRevisionMarkers','element:pre','getAttribute','getRoot','endIndex','abs','toViewPosition','markersEnd','isEnabled','dataToMarker','editing','currentChangeNumber','isReady','modelRange','ck-suggestion-marker-','startIndex'];(function(_0x39b008,_0xc25d5a){const _0x362a62=function(_0xbe8236){while(--_0xbe8236){_0x39b008['push'](_0x39b008['shift']());}};_0x362a62(++_0xc25d5a);}(_0xc25d,0x156));const _0x362a=function(_0x39b008,_0xc25d5a){_0x39b008=_0x39b008-0x0;let _0x362a62=_0xc25d[_0x39b008];return _0x362a62;};import{Plugin as _0x5c70ec,Command as _0x3913a7}from'ckeditor5/src/core';import{ObservableMixin as _0x9f85d9,mix as _0x27e8c5,scrollViewportToShowTarget as _0x194198}from'ckeditor5/src/utils';import{ContextualBalloon as _0x232578}from'ckeditor5/src/ui';import{DocumentFragment as _0x3f0366,Element as _0x481ff9,Text as _0x269a36,ViewDocumentFragment as _0x18313f,ViewText as _0x3e9df7,ViewElement as _0x298d43,ViewContainerElement as _0x2a361f,ViewAttributeElement as _0x76218b,ViewEmptyElement as _0x28f004,ViewRawElement as _0x3744af,ViewUIElement as _0x5b87a1}from'ckeditor5/src/engine';import{Users as _0x5db220,getMarkerDomElement as _0x15f201}from'ckeditor5-collaboration/src/collaboration-core';import _0x4612b3 from'./ui/revisionviewer/changedetailsview';import _0x408ef3 from'./revisionsrepository';import _0x834f11 from'./changeitem';import _0x2c297d from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x2a361f,'a':_0x76218b,'e':_0x28f004,'r':_0x3744af,'u':_0x5b87a1};export default class d extends _0x5c70ec{static get[_0x362a('0x75')](){return _0x362a('0x72');}static get[_0x362a('0x4b')](){return[_0x5db220,_0x232578,_0x408ef3];}constructor(..._0x14cf77){super(..._0x14cf77),this[_0x362a('0x12')]=this[_0x362a('0x14')][_0x362a('0x26')][_0x362a('0x89')]('RevisionsRepository'),this[_0x362a('0xd0')]('activeChange',null),this[_0x362a('0xd0')](_0x362a('0xcf'),null),this[_0x362a('0xd0')]('diff',null),this[_0x362a('0xd0')]('isReady',!0x1),this[_0x362a('0xd0')](_0x362a('0xac'),!0x0),this['on']('change:isEnabled',(_0x255cf1,_0x480282,_0x202686)=>{this[_0x362a('0x1b')]=null,this[_0x362a('0xcf')]=null,this['editor'][_0x362a('0xae')]['view'][_0x362a('0x61')](_0xa72396=>{for(const _0x1a2865 of this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')]['roots'])_0x202686?_0xa72396[_0x362a('0x5c')](_0x362a('0x96'),_0x1a2865):_0xa72396[_0x362a('0x83')](_0x362a('0x96'),_0x1a2865);});}),this[_0x362a('0xfb')](_0x362a('0xf5'))['to'](this,_0x362a('0x1b'),_0x6a1b4a=>null!==_0x6a1b4a),this[_0x362a('0xfb')](_0x362a('0xaf'))['to'](this,_0x362a('0xb0'),this,_0x362a('0xd1'),this,_0x362a('0x1b'),(_0x3a3740,_0x21ab75,_0x36f462)=>_0x3a3740&&_0x36f462?_0x21ab75[_0x362a('0xc9')]['getIndex'](_0x36f462):0x0),this[_0x362a('0xfb')]('numberOfChanges')['to'](this,_0x362a('0xb0'),this,_0x362a('0xd1'),(_0x359a09,_0x5e57b5)=>_0x359a09?_0x5e57b5[_0x362a('0xc9')][_0x362a('0xd7')]:0x0),this[_0x362a('0x8a')]=null,this[_0x362a('0x84')]=new Map(),this[_0x362a('0x10')]=null,this[_0x362a('0x66')]=this[_0x362a('0x14')]['plugins'][_0x362a('0x89')](_0x232578);}[_0x362a('0x85')](){const _0x461b3e=this[_0x362a('0x14')],_0x44d92b=new et(_0x461b3e,{'direction':_0x362a('0x49')}),_0x242a14=new et(_0x461b3e,{'direction':_0x362a('0xe6')});_0x461b3e[_0x362a('0xc1')][_0x362a('0xf7')](_0x362a('0x47'),_0x44d92b),_0x461b3e[_0x362a('0xc1')]['add']('showNextChange',_0x242a14),_0x461b3e[_0x362a('0xc1')]['add']('restoreRevision',new tt(_0x461b3e)),this['on'](_0x362a('0xc0'),()=>{_0x44d92b[_0x362a('0x9f')](),_0x242a14[_0x362a('0x9f')]();}),this[_0x362a('0x77')](),this[_0x362a('0xcc')](),_0x461b3e['enableReadOnlyMode'](_0x362a('0xdb'));}async[_0x362a('0xf9')](_0x2f5e3a){await this[_0x362a('0xbb')](_0x2f5e3a);const _0x3aa2a7={};for(const _0x5cb8b1 in _0x2f5e3a[_0x362a('0x5a')]){const _0x39369a=this[_0x362a('0xa4')](JSON[_0x362a('0xf0')](_0x2f5e3a[_0x362a('0x5a')][_0x5cb8b1][_0x362a('0x97')])),_0x4a28fe=this['editor']['editing']['view'][_0x362a('0xc8')],_0x319331=new _0x18313f(_0x4a28fe,_0x39369a[_0x362a('0x2a')](_0x48d0d6=>this['_getViewObj'](_0x48d0d6)));this[_0x362a('0x14')][_0x362a('0xb9')][_0x362a('0x39')][_0x362a('0x3f')](_0x362a('0xb5')),_0x3aa2a7[_0x5cb8b1]=this[_0x362a('0x14')][_0x362a('0xb9')][_0x362a('0x39')][_0x362a('0x8c')](_0x319331),this[_0x362a('0x14')]['data'][_0x362a('0x39')]['useFillerType'](_0x362a('0x30'));}return _0x3aa2a7;}[_0x362a('0xa4')](_0x3098a5){return(_0x3098a5=_0x3098a5['filter'](_0x24a010=>!_0x24a010[_0x362a('0x74')]||_0x362a('0xc5')!==_0x24a010[_0x362a('0x74')]&&'revision-end'!==_0x24a010[_0x362a('0x74')]))[_0x362a('0x55')](_0x3edb18=>{_0x362a('0x33')!=typeof _0x3edb18&&(_0x3edb18[_0x362a('0x2b')]=this['_removeRevisionMarkers'](_0x3edb18[_0x362a('0x2b')]),_0x3edb18[_0x362a('0x103')]=_0x3edb18['attributes'][_0x362a('0xf8')](_0x1416a6=>!_0x1416a6[0x0]['startsWith'](_0x362a('0x94'))));}),_0x3098a5;}[_0x362a('0x6d')](_0x276b09,_0x15c98c,_0x2af6ff=!0x1){if(!this[_0x362a('0xac')])return;const _0x1be555=this[_0x362a('0xd1')],_0x193408=this[_0x362a('0x12')],_0x3e29c7='string'==typeof _0x276b09?_0x193408[_0x362a('0xda')](_0x276b09):_0x276b09,_0x4349e0=_0x362a('0x33')==typeof _0x15c98c?_0x193408[_0x362a('0xda')](_0x15c98c):_0x15c98c,_0x40bc63=_0x3e29c7['id'],_0x18ab5e=_0x4349e0?_0x4349e0['id']:null;if(!_0x2af6ff&&this[_0x362a('0xd1')]&&this[_0x362a('0xd1')]['newRevisionId']===_0x40bc63&&this[_0x362a('0xd1')][_0x362a('0xe8')]===_0x18ab5e)return Promise['resolve']();this[_0x362a('0xb0')]=!0x1,this[_0x362a('0xcf')]=null,this['activeChange']=null,this[_0x362a('0xd1')]=new _0x2c297d(_0x40bc63,_0x18ab5e);const _0x12a4ff=this[_0x362a('0xd9')](_0x3e29c7,_0x4349e0,!0x0)[_0x362a('0x2a')](_0x20952b=>this[_0x362a('0xbb')](_0x20952b));return _0x12a4ff[_0x362a('0x56')](new Promise(_0x36f17d=>{setTimeout(_0x36f17d,0x14);})),Promise[_0x362a('0x71')](_0x12a4ff)[_0x362a('0x34')](()=>{if(!this[_0x362a('0xac')])return;this[_0x362a('0x70')]();const _0x38ace3=this[_0x362a('0xa2')](_0x40bc63,_0x18ab5e);this[_0x362a('0xd1')][_0x362a('0xfc')](_0x38ace3);for(const _0x34afcb of this[_0x362a('0xd1')]['changes'])this[_0x362a('0x84')][_0x362a('0xd0')](_0x34afcb['id'],_0x34afcb);this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x31')]({'isUndoable':!0x1},_0x457a7c=>{for(const _0x3516ae of Object[_0x362a('0xce')](_0x38ace3[_0x362a('0xe7')])){const _0x4ce450=this[_0x362a('0x14')]['model'][_0x362a('0xc8')][_0x362a('0xa7')](_0x3516ae);_0x457a7c[_0x362a('0xcb')](_0x457a7c[_0x362a('0x27')](_0x4ce450)),_0x457a7c['insert'](_0x38ace3[_0x362a('0xe7')][_0x3516ae],_0x4ce450,0x0);}}),this[_0x362a('0xb0')]=!0x0;})['catch'](_0x18b380=>{console[_0x362a('0xbf')](_0x18b380),this[_0x362a('0x70')](),_0x1be555?this[_0x362a('0xd1')]=_0x1be555:this[_0x362a('0x14')][_0x362a('0x69')](_0x362a('0x6a')),this[_0x362a('0xb0')]=!0x0;});}[_0x362a('0xc3')](){this['activeView']=null,this[_0x362a('0x8a')]&&this['_changeView'][_0x362a('0xc3')]();}[_0x362a('0xbe')](_0x9e9386,_0x364d3b){const _0x2b8ad3=this[_0x362a('0x12')]['createRevision'](_0x9e9386);return _0x2b8ad3['on'](_0x362a('0x68'),(_0x67089d,_0x249054,_0x471fb7)=>_0x364d3b(_0x249054,_0x471fb7,_0x2b8ad3)),this[_0x362a('0x12')]['addRevision'](_0x2b8ad3),_0x2b8ad3;}[_0x362a('0xbb')](_0x235aa3){if(!_0x235aa3||_0x235aa3['diffData'])return Promise['resolve']();{const _0xc6052f=this[_0x362a('0x14')][_0x362a('0xf2')][_0x362a('0x89')](_0x362a('0x9a'));return this['adapter'][_0x362a('0xda')]({'channelId':_0xc6052f,'revisionId':_0x235aa3['id']})[_0x362a('0x34')](_0x28e857=>{_0x235aa3[_0x362a('0x68')]({'diffData':_0x28e857[_0x362a('0x5a')]},!0x0);});}}['_cleanUp'](){this[_0x362a('0x1b')]=null,this[_0x362a('0xcd')](),this[_0x362a('0x8a')]&&this['_changeView'][_0x362a('0xc3')](),this[_0x362a('0x8a')]=null,this[_0x362a('0x84')][_0x362a('0x7a')]();}[_0x362a('0x3a')](_0x23bca5){const _0x777ce6=Array[_0x362a('0xe')](_0x23bca5['markers'])[_0x362a('0xf8')](([_0x128002,_0x5052e0])=>_0x128002[_0x362a('0x99')]('revision:')&&!_0x5052e0['isCollapsed']),_0x1478b9=Array[_0x362a('0xe')](this['editor'][_0x362a('0xe7')][_0x362a('0x27')](_0x23bca5)[_0x362a('0x76')]({'singleCharacters':!0x0}));if(0x0!=_0x777ce6[_0x362a('0xd7')])for(const _0xbfb738 of _0x1478b9){const [_0x3d0e1a,_0x21293d]=_0x777ce6[0x0],[,_0x4cb5fa,_0x58945c]=_0x3d0e1a[_0x362a('0x4f')](':');if(_0x21293d['end'][_0x362a('0x8d')](_0xbfb738[_0x362a('0x9d')])&&_0x777ce6[_0x362a('0xdd')](),(_0xbfb738['previousPosition']['isEqual'](_0x21293d[_0x362a('0xba')])||_0xbfb738['previousPosition'][_0x362a('0x4e')](_0x21293d[_0x362a('0xba')]))&&('insertion'==_0x4cb5fa?_0xbfb738[_0x362a('0x8e')]={'userId':_0x58945c}:_0x362a('0x7f')==_0x4cb5fa&&(_0xbfb738[_0x362a('0x79')]={'userId':_0x58945c})),0x0==_0x777ce6['length'])break;}return _0x1478b9;}[_0x362a('0xc2')](_0x4051ed){const _0x25dfbe=new Map();for(let _0x47661c=0x0;_0x47661c<_0x4051ed[_0x362a('0xd7')];_0x47661c++)_0x362a('0x7c')===_0x4051ed[_0x47661c][_0x362a('0x48')]?(_0x4051ed[_0x47661c][_0x362a('0x65')]['startIndex']=_0x47661c,_0x4051ed[_0x47661c][_0x362a('0x65')]['endIndex']=_0x47661c):(_0x362a('0x7e')===_0x4051ed[_0x47661c]['type']?_0x4051ed[_0x47661c][_0x362a('0x65')][_0x362a('0xb3')]=_0x47661c:'elementEnd'===_0x4051ed[_0x47661c][_0x362a('0x48')]&&(_0x4051ed[_0x47661c]['item'][_0x362a('0xa8')]=_0x47661c),_0x25dfbe[_0x362a('0xd0')](_0x4051ed[_0x47661c]['id'],_0x47661c));for(const _0x34f6e4 of _0x25dfbe[_0x362a('0xc6')]())_0x362a('0x7e')===_0x4051ed[_0x34f6e4]['type']?_0x4051ed[_0x34f6e4][_0x362a('0x65')]['endIndex']=_0x25dfbe[_0x362a('0x89')](_0x4051ed[_0x34f6e4][_0x362a('0x4')]):_0x362a('0xc4')===_0x4051ed[_0x34f6e4][_0x362a('0x48')]&&(_0x4051ed[_0x34f6e4][_0x362a('0x65')][_0x362a('0xb3')]=_0x25dfbe[_0x362a('0x89')](_0x4051ed[_0x34f6e4]['pairId']));}[_0x362a('0xc')](_0x501146){for(let _0x445f31=0x0;_0x445f31<_0x501146[_0x362a('0xd7')];_0x445f31++){if(_0x362a('0x7e')===_0x501146[_0x445f31][_0x362a('0x48')])_0x501146[_0x445f31][_0x362a('0x65')][_0x362a('0xb3')]=_0x445f31;else{if(_0x362a('0xc4')===_0x501146[_0x445f31][_0x362a('0x48')]){_0x501146[_0x445f31]['item'][_0x362a('0xa8')]=_0x445f31;const _0x2ecbda=_0x501146[_0x445f31][_0x362a('0x65')][_0x362a('0xb3')];_0x501146[_0x2ecbda][_0x362a('0x4')]=_0x501146[_0x445f31]['id'],_0x501146[_0x445f31][_0x362a('0x4')]=_0x501146[_0x2ecbda]['id'];}else _0x501146[_0x445f31]['item'][_0x362a('0xb3')]=_0x445f31,_0x501146[_0x445f31][_0x362a('0x65')]['endIndex']=_0x445f31,_0x501146[_0x445f31][_0x362a('0x4')]=null;}_0x501146[_0x445f31][_0x362a('0x92')]||(_0x501146[_0x445f31][_0x362a('0x92')]=[],_0x501146[_0x445f31][_0x362a('0xab')]=[]);}}[_0x362a('0x6f')](_0x25b29b,_0x1f2697){const _0x2a091f=_0x25b29b['filter'](_0x3a6d76=>!_0x3a6d76[_0x362a('0x8e')]);for(let _0x8c7af9=0x0;_0x8c7af9<_0x1f2697[_0x362a('0xd7')];_0x8c7af9++)_0x1f2697[_0x8c7af9][_0x362a('0x8e')]&&(_0x2a091f[_0x8c7af9]['isAdded']=_0x1f2697[_0x8c7af9][_0x362a('0x8e')]);}[_0x362a('0x25')](_0x39f6ca){const _0x490f9b=JSON['parse'](_0x39f6ca),_0x4aa5d4=this['editor'][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')],_0x1e5c1a=new _0x18313f(_0x4aa5d4,_0x490f9b[_0x362a('0x2a')](_0xf84210=>this[_0x362a('0x9c')](_0xf84210)));return this[_0x362a('0x14')]['data'][_0x362a('0xe3')](_0x1e5c1a);}['_getViewObj'](_0x59913a){const _0xaf614c=this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')];if(_0x362a('0x33')==typeof _0x59913a)return new _0x3e9df7(_0xaf614c,_0x59913a);{const _0x49a6f1=_0x59913a['children'][_0x362a('0x2a')](_0x12bd75=>this[_0x362a('0x9c')](_0x12bd75));return new(Y[_0x59913a[(_0x362a('0x48'))]]||_0x298d43)(_0xaf614c,_0x59913a[_0x362a('0x74')],_0x59913a[_0x362a('0x103')],_0x49a6f1);}}['_getDiff'](_0x1962c7,_0x510a20=null){const _0x2e9f49=this['repository'][_0x362a('0xda')](_0x1962c7),_0x23f12c=_0x510a20?this['repository']['getRevision'](_0x510a20):null,_0x442066=this[_0x362a('0xd9')](_0x2e9f49,_0x23f12c),_0x2f659f=_0x442066[_0x442066[_0x362a('0xd7')]-0x1],_0x21abd5=new Map();for(const _0x37d2ff of _0x442066){_0x37d2ff['model']={};for(const _0x54258e of _0x37d2ff[_0x362a('0x1c')])_0x21abd5['set'](_0x54258e['id'],_0x54258e);for(const _0x4e2f22 of this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0xc8')]['getRootNames']())_0x37d2ff[_0x362a('0x5a')][_0x4e2f22]||(_0x37d2ff[_0x362a('0x5a')][_0x4e2f22]={'insertions':'[]','deletions':'[]'}),_0x37d2ff[_0x362a('0xe7')][_0x4e2f22]={'insertions':this[_0x362a('0x25')](_0x37d2ff[_0x362a('0x5a')][_0x4e2f22]['insertions']),'deletions':this[_0x362a('0x25')](_0x37d2ff[_0x362a('0x5a')][_0x4e2f22][_0x362a('0xc7')])};}const _0x451217={'model':{},'changes':[]};for(const _0x42ba6f of this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0xc8')][_0x362a('0x57')]()){let _0x389c84=null,_0x58c15f=0x0;const _0x2ad7a5=new Map(Array[_0x362a('0xe')](_0x2e9f49[_0x362a('0xe7')][_0x42ba6f][_0x362a('0x97')][_0x362a('0x2f')])[_0x362a('0xf8')](([_0x5854e7])=>!_0x5854e7[_0x362a('0x99')](_0x362a('0x44'))));let _0xda4886=0x0;for(const _0x54944c of _0x442066){const _0x32918b=this[_0x362a('0x3a')](_0x54944c['model'][_0x42ba6f][_0x362a('0x97')]);_0x54944c==_0x2e9f49?(_0x389c84=_0x32918b,_0x58c15f=_0x389c84['length'],_0x389c84[_0x362a('0x55')](_0x2774b1=>{_0x2774b1['id']=_0xda4886++;}),this[_0x362a('0xc')](_0x389c84)):this[_0x362a('0x6f')](_0x389c84,_0x32918b);const _0x1c1aa7=_0x389c84[_0x362a('0xf8')](_0x2019bf=>!_0x2019bf['isAdded'])['map'](_0x21a082=>_0x21a082['id']);let _0x4414e5=0x0;const _0x125380=this[_0x362a('0x3a')](_0x54944c[_0x362a('0xe7')][_0x42ba6f][_0x362a('0xc7')]);_0x125380['forEach'](_0x57ed24=>{_0x57ed24[_0x362a('0x79')]?_0x57ed24['id']=_0x58c15f++:_0x57ed24['id']=_0x1c1aa7[_0x4414e5++];}),this['_processTape'](_0x125380),this['_setDistance'](_0x389c84,_0x362a('0x8e')),this['_setDistance'](_0x125380,'isRemoved'),_0x54944c==_0x2e9f49&&this['_markMarkers'](_0x389c84,_0x2ad7a5),_0x389c84=this[_0x362a('0x53')](_0x389c84,_0x125380),this[_0x362a('0xc2')](_0x389c84),this[_0x362a('0xa1')](_0x389c84,_0x362a('0x79'));}_0x389c84=_0x389c84['filter'](_0x3c6446=>!(_0x3c6446['isAdded']&&_0x3c6446[_0x362a('0x79')]));const _0x159978=new Map(_0x2f659f[_0x362a('0xe7')][_0x42ba6f]['deletions'][_0x362a('0x2f')]),_0x385305=new Set(_0x2ad7a5['keys']());for(const _0x4acfda of _0x159978[_0x362a('0xce')]())_0x385305[_0x362a('0x32')](_0x4acfda);this[_0x362a('0x81')](_0x389c84,_0x385305),this[_0x362a('0x91')](_0x389c84),_0x389c84=this[_0x362a('0xfe')](_0x389c84),_0x389c84=this[_0x362a('0x64')](_0x389c84),_0x389c84=this[_0x362a('0x36')](_0x389c84);const {root:_0x1adec3,changes:_0x207fd6}=this['_makeModelFromTape'](_0x389c84,_0x21abd5);_0x451217[_0x362a('0xe7')][_0x42ba6f]=_0x1adec3,_0x451217['changes']=_0x451217[_0x362a('0xc9')][_0x362a('0x101')](_0x207fd6);}return _0x451217;}['_markMarkers'](_0x1da286,_0x1b6a0b){for(let _0x25b026=0x0;_0x25b026<_0x1da286['length'];_0x25b026++)for(const [_0xbf4511,_0x3b251c]of _0x1b6a0b)_0x3b251c['start'][_0x362a('0x8d')](_0x1da286[_0x25b026]['previousPosition'])&&_0x1da286[_0x25b026]['markersStart'][_0x362a('0x56')](_0xbf4511),_0x3b251c[_0x362a('0xd3')]['isEqual'](_0x1da286[_0x25b026][_0x362a('0x9d')])&&_0x1da286[_0x25b026][_0x362a('0xab')][_0x362a('0x56')](_0xbf4511);}[_0x362a('0x53')](_0xc987de,_0x1a7efd){let _0x3e720d=[],_0x26a345=0x0,_0x5c4066=0x0;for(;_0x26a345<_0xc987de[_0x362a('0xd7')]||_0x5c4066<_0x1a7efd[_0x362a('0xd7')];){const _0xc6a9f6=_0xc987de[_0x26a345]||{},_0x4f803f=_0x1a7efd[_0x5c4066]||{};if(_0xc6a9f6['id']==_0x4f803f['id'])_0x26a345++,_0x5c4066++,_0x3e720d[_0x362a('0x56')](_0xc6a9f6);else{if(_0x4f803f[_0x362a('0x79')]&&_0xc6a9f6['isAdded']){const {commonTape:_0x7ba3ce,iEnd:_0x188cb2,jEnd:_0x28ccbe}=this['_threeWayMerge'](_0xc987de,_0x26a345,_0x1a7efd,_0x5c4066);_0x3e720d=_0x3e720d['concat'](_0x7ba3ce),_0x26a345=_0x188cb2,_0x5c4066=_0x28ccbe;}else _0x4f803f[_0x362a('0x79')]?(_0x5c4066++,_0x3e720d[_0x362a('0x56')](_0x4f803f)):(_0x26a345++,_0x3e720d['push'](_0xc6a9f6));}}return _0x3e720d;}[_0x362a('0x81')](_0x2e40c5,_0x10af9c){const _0x3697aa=[];for(let _0x523877=0x0;_0x523877<_0x2e40c5[_0x362a('0xd7')];_0x523877++){for(let _0xf5fe=0x0;_0xf5fe<_0x2e40c5[_0x523877][_0x362a('0x92')]['length'];_0xf5fe++){const _0x56cd18=_0x2e40c5[_0x523877][_0x362a('0x92')][_0xf5fe];if(!_0x10af9c[_0x362a('0x95')](_0x56cd18))continue;const {group:_0x5be362,type:_0x31e6db,authorId:_0xc1677}=_0x3a0080(_0x56cd18);_0x362a('0xd5')!=_0x5be362||_0x362a('0x1')!=_0x31e6db&&_0x362a('0x7f')!=_0x31e6db||(_0x3697aa['unshift']({'type':_0x31e6db,'name':_0x56cd18,'userId':_0xc1677}),_0x2e40c5[_0x523877]['markersStart'][_0x362a('0x7b')](_0xf5fe,0x1),_0xf5fe--);}_0x27b47f(_0x2e40c5[_0x523877]);for(let _0x4ee16c=0x0;_0x4ee16c<_0x2e40c5[_0x523877]['markersEnd'][_0x362a('0xd7')];_0x4ee16c++){const _0x24494b=_0x2e40c5[_0x523877][_0x362a('0xab')][_0x4ee16c];if(!_0x10af9c['has'](_0x24494b))continue;const {group:_0x3e6422,type:_0x45f83e}=_0x3a0080(_0x24494b);if(_0x362a('0xd5')!=_0x3e6422||_0x362a('0x1')!=_0x45f83e&&_0x362a('0x7f')!=_0x45f83e)continue;_0x2e40c5[_0x523877]['markersEnd'][_0x362a('0x7b')](_0x4ee16c,0x1),_0x4ee16c--;const _0x34ea1f=_0x3697aa['findIndex'](_0x46cb77=>_0x46cb77[_0x362a('0x74')]==_0x24494b);_0x34ea1f>-0x1&&_0x3697aa['splice'](_0x34ea1f,0x1);}}function _0x3a0080(_0x276ae9){const _0x5dd224=_0x276ae9[_0x362a('0x4f')](':');return{'group':_0x5dd224[0x0],'type':_0x5dd224[0x1],'subType':_0x5dd224[_0x362a('0xd7')]>=0x5?_0x5dd224[0x2]:null,'id':_0x5dd224[_0x362a('0xd7')]<0x5?_0x5dd224[0x2]:_0x5dd224[0x3],'authorId':_0x5dd224['length']<0x5?_0x5dd224[0x3]:_0x5dd224[0x4],'markerCount':0x6==_0x5dd224[_0x362a('0xd7')]?_0x5dd224[0x5]:null};}function _0x27b47f(_0x1d943c){for(let _0x559852=0x0;_0x559852<_0x3697aa['length'];_0x559852++){if(_0x1d943c['isAdded']&&'insertion'==_0x3697aa[_0x559852][_0x362a('0x48')])return _0x1d943c[_0x362a('0x3d')]=_0x3697aa[_0x559852],void delete _0x1d943c[_0x362a('0x8e')];if(!_0x1d943c['isAdded']&&!_0x1d943c[_0x362a('0x79')]&&_0x362a('0x7f')==_0x3697aa[_0x559852][_0x362a('0x48')])return void(_0x1d943c[_0x362a('0x5e')]=_0x3697aa[_0x559852]);}}}[_0x362a('0xa1')](_0x82aeef,_0x40aa02){let _0x1ad315=0x0,_0x408996=!0x1;const _0x8f2aca=new Map();for(const _0x2ba750 of _0x82aeef)_0x2ba750[_0x40aa02]?_0x408996&&(_0x1ad315++,_0x408996=!0x1):(_0x1ad315++,_0x408996=!0x0),_0x8f2aca['set'](_0x2ba750['id'],_0x1ad315);for(let _0x388b0f=0x0;_0x388b0f<_0x82aeef[_0x362a('0xd7')];_0x388b0f++){if(_0x362a('0x79')==_0x40aa02&&_0x82aeef[_0x388b0f]['isAdded']||_0x362a('0x8e')==_0x40aa02&&_0x82aeef[_0x388b0f][_0x362a('0x79')])continue;if(_0x362a('0x7c')==_0x82aeef[_0x388b0f][_0x362a('0x48')]){_0x82aeef[_0x388b0f][_0x362a('0x3b')]=0x0;continue;}const _0x3e362c=_0x8f2aca[_0x362a('0x89')](_0x82aeef[_0x388b0f][_0x362a('0x4')]),_0x3cb44c=_0x8f2aca[_0x362a('0x89')](_0x82aeef[_0x388b0f]['id']);_0x82aeef[_0x388b0f][_0x362a('0x3b')]=_0x3e362c-_0x3cb44c;}}['_getRevisionsRange'](_0x5a55e7,_0x4bfd63,_0x476c5e=!0x1){const _0x351d0e=[];let _0x1a3c6b=this[_0x362a('0x12')][_0x362a('0x22')](_0x5a55e7),_0x225072=this[_0x362a('0x12')]['getIndex'](_0x4bfd63);for(-0x1==_0x225072&&(_0x225072=this['repository'][_0x362a('0x88')][_0x362a('0xd7')],_0x476c5e=!0x1);_0x1a3c6b<_0x225072;)_0x351d0e[_0x362a('0x56')](this[_0x362a('0x12')][_0x362a('0xda')](_0x1a3c6b)),_0x1a3c6b++;return _0x476c5e&&_0x351d0e[_0x362a('0x56')](this[_0x362a('0x12')][_0x362a('0xda')](_0x1a3c6b)),_0x351d0e;}[_0x362a('0xe5')](_0x3e259e,_0x27ddf7,_0x49f615,_0x1a2746){const _0x4cef3a=this['editor']['model']['schema'];let _0x55fe89=_0x27ddf7;for(;_0x3e259e[_0x55fe89]&&_0x3e259e[_0x55fe89][_0x362a('0x8e')];)_0x55fe89++;let _0x4a2a6c=_0x1a2746;for(;_0x49f615[_0x4a2a6c]&&_0x49f615[_0x4a2a6c]['isRemoved'];)_0x4a2a6c++;_0x2fb91(_0x3e259e,_0x27ddf7,_0x55fe89),_0x2fb91(_0x49f615,_0x1a2746,_0x4a2a6c);const _0x21e447=_0x49f615[_0x362a('0xeb')](_0x1a2746,_0x4a2a6c)[_0x362a('0x101')](_0x3e259e[_0x362a('0xeb')](_0x27ddf7,_0x55fe89));return _0x21e447['sort']((_0x4a200e,_0x34dd43)=>_0x4a200e[_0x362a('0xd2')]!=_0x34dd43['side']?_0x4a200e['side']-_0x34dd43['side']:_0x4a200e['level']!=_0x34dd43['level']?_0x4a200e[_0x362a('0x2')]-_0x34dd43[_0x362a('0x2')]:_0x4a200e[_0x362a('0x3b')]!=_0x34dd43['distance']?_0x34dd43[_0x362a('0x3b')]-_0x4a200e[_0x362a('0x3b')]:!!_0x4a200e['isAdded']!=!!_0x34dd43['isAdded']?-0x1==_0x4a200e['side']||0x0==_0x4a200e[_0x362a('0xd2')]?_0x4a200e['isAdded']?-0x1:0x1:_0x4a200e[_0x362a('0x8e')]?0x1:-0x1:_0x4a200e[_0x362a('0xb')]-_0x34dd43[_0x362a('0xb')]),{'commonTape':_0x21e447,'iEnd':_0x55fe89,'jEnd':_0x4a2a6c};function _0x2fb91(_0x32d701,_0x1797a9,_0x358ca1){let _0x18581d=-0x1,_0x1c775a=Number[_0x362a('0xbc')],_0x1d99d7=!0x0;for(let _0x1533be=_0x1797a9;_0x1533be<_0x358ca1;_0x1533be++)if(_0x4cef3a[_0x362a('0xd')](_0x32d701[_0x1533be][_0x362a('0x65')])||(_0x1d99d7=!0x1),_0x32d701[_0x1533be][_0x362a('0x65')][_0x362a('0xb3')]<_0x1797a9&&(_0x18581d=_0x1533be),_0x32d701[_0x1533be]['item'][_0x362a('0xa8')]>=_0x358ca1){_0x1c775a=_0x1533be;break;}_0x1d99d7&&(_0x18581d=_0x358ca1-0x1);for(let _0x33eb26=_0x1797a9;_0x33eb26<_0x358ca1;_0x33eb26++)_0x32d701[_0x33eb26][_0x362a('0xd2')]=_0x33eb26<=_0x18581d?-0x1:_0x33eb26<_0x1c775a?0x0:0x1,_0x32d701[_0x33eb26][_0x362a('0xb')]=_0x33eb26;let _0x3d02ac=0x0;for(let _0x23c8fd=_0x1797a9;_0x23c8fd<=_0x18581d;_0x23c8fd++)0x0==_0x32d701[_0x23c8fd][_0x362a('0x3b')]?_0x32d701[_0x23c8fd]['level']=_0x3d02ac:(_0x3d02ac++,_0x32d701[_0x23c8fd][_0x362a('0x2')]=_0x3d02ac,_0x3d02ac++);for(let _0x13b760=_0x1797a9;_0x13b760<_0x358ca1;_0x13b760++)0x0==_0x32d701[_0x13b760]['side']&&(_0x32d701[_0x13b760][_0x362a('0x2')]=_0x3d02ac);_0x3d02ac=0x0;for(let _0x1d87a2=_0x358ca1-0x1;_0x1d87a2>=_0x1c775a;_0x1d87a2--)0x0==_0x32d701[_0x1d87a2]['distance']?_0x32d701[_0x1d87a2][_0x362a('0x2')]=_0x3d02ac:(_0x3d02ac--,_0x32d701[_0x1d87a2]['level']=_0x3d02ac,_0x3d02ac--);}}['_fixObsoleteTags'](_0xe5fe3c){const _0x2aa021=new Map(),_0x5d37dd=this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2c')];for(let _0x34d913=0x1;_0x34d913<_0xe5fe3c[_0x362a('0xd7')];_0x34d913++){let _0x469d6a,_0x2acb95,_0x96fc7f;const _0x13436a=_0xe5fe3c[_0x34d913],_0x4b81d6=_0xe5fe3c[_0x34d913-0x1];if(_0x362a('0x7c')==_0x13436a['type'])continue;if(_0x13436a[_0x362a('0x48')]!=_0x4b81d6[_0x362a('0x48')])continue;if(!_0x5d37dd[_0x362a('0x50')](_0x4b81d6[_0x362a('0x65')])||_0x5d37dd['isLimit'](_0x4b81d6[_0x362a('0x65')]))continue;if(!_0x5d37dd[_0x362a('0x50')](_0x13436a[_0x362a('0x65')])||_0x5d37dd[_0x362a('0x19')](_0x13436a[_0x362a('0x65')]))continue;if((_0xe5fe3c[_0x34d913][_0x362a('0x8e')]||_0xe5fe3c[_0x34d913][_0x362a('0x3d')])&&_0xe5fe3c[_0x34d913-0x1][_0x362a('0x79')])_0x469d6a=_0xe5fe3c[_0x34d913],_0x2acb95=_0xe5fe3c[_0x34d913-0x1],_0x96fc7f=_0x34d913-0x1;else{if(!_0xe5fe3c[_0x34d913]['isRemoved']||!_0xe5fe3c[_0x34d913-0x1][_0x362a('0x8e')]&&!_0xe5fe3c[_0x34d913-0x1]['isAddSuggestion'])continue;_0x469d6a=_0xe5fe3c[_0x34d913-0x1],_0x2acb95=_0xe5fe3c[_0x34d913],_0x96fc7f=_0x34d913;}const _0x162b88=_0x469d6a[_0x362a('0x2')]==_0x2acb95[_0x362a('0x2')],_0x502534=Math[_0x362a('0xa9')](_0x469d6a['level'])<Math['abs'](_0x2acb95[_0x362a('0x2')])&&0x0==_0x2acb95[_0x362a('0x3b')];(_0x162b88||_0x502534)&&(_0x2aa021[_0x362a('0xd0')](_0x2acb95['id'],_0x469d6a['id']),_0xe5fe3c[_0x362a('0x7b')](_0x96fc7f,0x1),_0x34d913--,_0x469d6a[_0x362a('0x8e')]=!0x1);}for(let _0x3dfa6e=0x0;_0x3dfa6e<_0xe5fe3c[_0x362a('0xd7')];_0x3dfa6e++)_0x2aa021[_0x362a('0x95')](_0xe5fe3c[_0x3dfa6e]['pairId'])&&(_0xe5fe3c[_0x3dfa6e][_0x362a('0x4')]=_0x2aa021['get'](_0xe5fe3c[_0x3dfa6e]['pairId']));}[_0x362a('0xfe')](_0x496f1a){const _0x1fdb19=new Set(_0x496f1a['map'](_0x451c05=>_0x451c05['id']));for(let _0x24d4cb=0x0;_0x24d4cb<_0x496f1a['length'];_0x24d4cb++)_0x1fdb19[_0x362a('0x95')](_0x496f1a[_0x24d4cb][_0x362a('0x4')])||0x0==_0x496f1a[_0x24d4cb][_0x362a('0x3b')]||(_0x496f1a[_0x24d4cb]['isIncorrect']=!0x0);return _0x496f1a['filter'](_0x17953f=>!_0x17953f[_0x362a('0xe4')]);}[_0x362a('0x64')](_0x225ba7){const _0x2cb2dd=new Set();for(let _0x50c432=0x0;_0x50c432<_0x225ba7[_0x362a('0xd7')];_0x50c432++){if(_0x2cb2dd[_0x362a('0x95')](_0x225ba7[_0x50c432]['id'])&&_0x225ba7[_0x50c432][_0x362a('0x79')]&&(_0x225ba7[_0x50c432]['isIncorrect']=!0x0),_0x225ba7[_0x50c432][_0x362a('0xe4')])continue;if(0x0==_0x225ba7[_0x50c432][_0x362a('0x3b')])continue;if(_0x362a('0x7e')!=_0x225ba7[_0x50c432]['type'])continue;if(null==_0x225ba7[_0x50c432][_0x362a('0x4')])continue;let _0x2ec21a=_0x50c432+0x1,_0x3a53b6=0x0;for(;_0x225ba7[_0x2ec21a]['id']!=_0x225ba7[_0x50c432][_0x362a('0x4')];)'elementStart'==_0x225ba7[_0x2ec21a]['type']?_0x3a53b6++:_0x362a('0xc4')==_0x225ba7[_0x2ec21a][_0x362a('0x48')]&&_0x3a53b6--,_0x2ec21a++;if(0x0!=_0x3a53b6){if(_0x225ba7[_0x50c432]['isRemoved'])_0x225ba7[_0x50c432][_0x362a('0xe4')]=!0x0;else for(;_0x2ec21a!=_0x50c432;)_0x225ba7[_0x2ec21a][_0x362a('0x79')]&&0x0!=_0x225ba7[_0x2ec21a]['distance']&&(_0x225ba7[_0x2ec21a][_0x362a('0xe4')]=!0x0,_0x2cb2dd[_0x362a('0xf7')](_0x225ba7[_0x2ec21a]['pairId'])),_0x2ec21a--;}}return _0x225ba7[_0x362a('0xf8')](_0x4be9b1=>!_0x4be9b1[_0x362a('0xe4')]);}[_0x362a('0x36')](_0x346d3a){const _0x12ceab=this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2c')];for(let _0x4516f8=0x0;_0x4516f8<_0x346d3a[_0x362a('0xd7')];_0x4516f8++){if(!(_0x346d3a[_0x4516f8][_0x362a('0x8e')]||_0x346d3a[_0x4516f8][_0x362a('0x3d')]||_0x346d3a[_0x4516f8]['isRemoved']||_0x346d3a[_0x4516f8][_0x362a('0x5e')]))continue;if(0x0==_0x346d3a[_0x4516f8][_0x362a('0x3b')])continue;const _0x5cdc36=_0x346d3a[_0x4516f8][_0x362a('0x65')];_0x12ceab[_0x362a('0x50')](_0x5cdc36)||_0x12ceab[_0x362a('0x19')](_0x5cdc36)||(_0x346d3a[_0x4516f8][_0x362a('0x8e')]&&delete _0x346d3a[_0x4516f8]['isAdded'],_0x346d3a[_0x4516f8]['isAddSuggestion']&&delete _0x346d3a[_0x4516f8][_0x362a('0x3d')],_0x346d3a[_0x4516f8]['isRemoveSuggestion']&&delete _0x346d3a[_0x4516f8][_0x362a('0x5e')],_0x346d3a[_0x4516f8][_0x362a('0x79')]&&(_0x346d3a[_0x4516f8]['isIncorrect']=!0x0));}return _0x346d3a[_0x362a('0xf8')](_0x3864ff=>!_0x3864ff[_0x362a('0xe4')]);}[_0x362a('0x37')](_0x298182,_0x26ab2c){const _0x576d11=new _0x3f0366(),_0x195bbc=[],_0x4a3445=new Map(),_0x4e61dd=this[_0x362a('0x14')][_0x362a('0xe7')],_0x3e72f5=_0x4e61dd[_0x362a('0x2c')],_0x3355f4=[_0x576d11],_0x2577e1={},_0x376d69={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4fe067=null;const _0x3d1b80=[0x0];for(let _0x3f9a5d=0x0;_0x3f9a5d<_0x298182[_0x362a('0xd7')];_0x3f9a5d++){let _0x430db5,_0x5d4a68;if(_0x362a('0x7e')===_0x298182[_0x3f9a5d][_0x362a('0x48')]){_0x430db5=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80);const _0x5217c4=new _0x481ff9(_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0x74')],_0x298182[_0x3f9a5d][_0x362a('0x65')]['getAttributes']());_0x3355f4[0x0]['_appendChild'](_0x5217c4),_0x3d1b80['push'](0x0),_0x3355f4['unshift'](_0x5217c4),_0x5d4a68=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x4fe067=null;}else{if('elementEnd'===_0x298182[_0x3f9a5d][_0x362a('0x48')])_0x3355f4[_0x362a('0xdd')](),_0x430db5=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x3d1b80[_0x362a('0x38')](),_0x3d1b80[_0x3d1b80[_0x362a('0xd7')]-0x1]++,_0x5d4a68=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x4fe067=null;else{if(_0x430db5=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x4fe067&&_0x38603a(_0x4fe067,_0x298182[_0x3f9a5d][_0x362a('0x65')]))_0x4fe067['_data']+=_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0xb9')];else{const _0xf0c90e=new _0x269a36(_0x298182[_0x3f9a5d][_0x362a('0x65')]['data'],_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0x3c')]());_0x3355f4[0x0][_0x362a('0xfd')](_0xf0c90e),_0x4fe067=_0xf0c90e;}_0x3d1b80[_0x3d1b80[_0x362a('0xd7')]-0x1]+=_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0x1a')],_0x5d4a68=_0x4e61dd['createPositionFromPath'](_0x576d11,_0x3d1b80);}}for(const _0x1a4c94 of _0x298182[_0x3f9a5d]['markersStart'])_0x4a3445[_0x362a('0xd0')](_0x1a4c94,{'start':_0x430db5,'end':null});_0x386f32(_0x362a('0x5e'),_0x3f9a5d,_0x430db5,_0x5d4a68),_0x386f32('isAddSuggestion',_0x3f9a5d,_0x430db5,_0x5d4a68),_0x386f32(_0x362a('0x79'),_0x3f9a5d,_0x430db5,_0x5d4a68),_0x386f32(_0x362a('0x8e'),_0x3f9a5d,_0x430db5,_0x5d4a68);for(const _0x287740 of _0x298182[_0x3f9a5d][_0x362a('0xab')]){_0x4a3445[_0x362a('0x89')](_0x287740)[_0x362a('0xd3')]=_0x5d4a68;}}for(const [_0x40f133,_0x25cd67]of _0x4a3445){const _0x251164=this[_0x362a('0x14')][_0x362a('0xe7')]['createRange'](_0x25cd67[_0x362a('0xba')],_0x25cd67[_0x362a('0xd3')]);_0x576d11[_0x362a('0x2f')]['set'](_0x40f133,_0x251164);}return _0x195bbc[_0x362a('0x9b')]((_0x469e86,_0x10ec29)=>{const _0x31fc3d=_0x576d11[_0x362a('0x2f')][_0x362a('0x89')]('revision:'+_0x469e86['id']),_0x367315=_0x576d11[_0x362a('0x2f')][_0x362a('0x89')](_0x362a('0x44')+_0x10ec29['id']);return _0x31fc3d[_0x362a('0xba')][_0x362a('0x67')](_0x367315[_0x362a('0xba')])?-0x1:_0x31fc3d[_0x362a('0xba')]['isAfter'](_0x367315[_0x362a('0xba')])?0x1:_0x31fc3d[_0x362a('0xd3')]['isBefore'](_0x367315[_0x362a('0xd3')])?-0x1:_0x31fc3d[_0x362a('0xd3')][_0x362a('0x4e')](_0x367315[_0x362a('0xd3')])?0x1:_0x362a('0xf7')===_0x469e86[_0x362a('0x48')]?-0x1:0x1;}),{'root':_0x576d11,'changes':_0x195bbc};function _0x386f32(_0x113fc4,_0xa4c4bf,_0x20b8a6,_0x1b50bc){const _0x41476f=!!_0x298182[_0xa4c4bf][_0x113fc4],_0x17f17a=_0x41476f?_0x298182[_0xa4c4bf][_0x113fc4][_0x362a('0x8')]:null,_0x207374=_0xa4c4bf===_0x298182['length']-0x1,_0x24d80f=_0x376d69[_0x113fc4][0x0],_0x1963e2=_0x3e72f5['isObject'](_0x298182[_0xa4c4bf]['item']);!_0x2577e1[_0x113fc4]&&_0x41476f?_0x2577e1[_0x113fc4]={'start':_0x20b8a6,'tapeItem':_0x298182[_0xa4c4bf],'userId':_0x17f17a,'type':_0x113fc4}:_0x2577e1[_0x113fc4]&&!_0x41476f?(_0x2577e1[_0x113fc4][_0x362a('0xd3')]=_0x20b8a6,_0x459336(_0x2577e1[_0x113fc4]),_0x2577e1[_0x113fc4]=null):_0x2577e1[_0x113fc4]&&_0x41476f&&_0x2577e1[_0x113fc4]['userId']!==_0x17f17a&&(_0x2577e1[_0x113fc4]['end']=_0x20b8a6,_0x24d80f&&_0x24d80f[_0x362a('0x8')]===_0x2577e1[_0x113fc4][_0x362a('0x8')]||_0x459336(_0x2577e1[_0x113fc4]),_0x2577e1[_0x113fc4]={'start':_0x20b8a6,'tapeItem':_0x298182[_0xa4c4bf],'userId':_0x17f17a,'type':_0x113fc4}),_0x2577e1[_0x113fc4]&&_0x1963e2&&(_0x362a('0x7e')!==_0x298182[_0xa4c4bf][_0x362a('0x48')]||_0x24d80f&&_0x24d80f[_0x362a('0x8')]===_0x17f17a||_0x376d69[_0x113fc4]['unshift']({'userId':_0x17f17a,'object':_0x298182[_0xa4c4bf][_0x362a('0x65')],'change':_0x2577e1[_0x113fc4]}),_0x362a('0xc4')===_0x298182[_0xa4c4bf][_0x362a('0x48')]&&_0x24d80f&&_0x24d80f['object']===_0x298182[_0xa4c4bf][_0x362a('0x65')]&&(_0x376d69[_0x113fc4][_0x362a('0xdd')](),_0x2577e1[_0x113fc4]=_0x24d80f[_0x362a('0x61')])),_0x2577e1[_0x113fc4]&&_0x207374&&(_0x2577e1[_0x113fc4]['end']=_0x1b50bc,_0x459336(_0x2577e1[_0x113fc4]),_0x2577e1[_0x113fc4]=null);}function _0x459336({start:_0x132995,end:_0x3c2590,tapeItem:_0x4e075c,userId:_0x3bb167,type:_0xecbb04}){const _0x75d0bd=_0x4e075c[_0x362a('0x65')],_0x10baa1=_0x4e61dd[_0x362a('0x2c')]['isBlock'](_0x75d0bd)&&!_0x4e61dd[_0x362a('0x2c')][_0x362a('0x19')](_0x75d0bd),_0xd5b395=_0x132995[_0x362a('0x5b')]==_0x3c2590['parent']&&_0x3c2590[_0x362a('0xb7')];if(_0x10baa1&&_0xd5b395)return;const _0x2c45cc=_0x4e61dd[_0x362a('0xe2')](_0x132995,_0x3c2590),_0x134d0b=_0x26ab2c[_0x362a('0x89')](_0x3bb167),_0x2ac4d1=new _0x834f11({'author':_0x134d0b,'type':_0x362a('0x8e')==_0xecbb04||'isAddSuggestion'==_0xecbb04?_0x362a('0xf7'):_0x362a('0xcb'),'data':{'isSuggestion':'isAddSuggestion'==_0xecbb04||_0x362a('0x5e')==_0xecbb04},'createdAt':new Date()});_0x195bbc[_0x362a('0x56')](_0x2ac4d1),_0x576d11[_0x362a('0x2f')][_0x362a('0xd0')](_0x362a('0x44')+_0x2ac4d1['id'],_0x2c45cc);}function _0x38603a(_0x4bc4d0,_0x1f1fbc){const _0x4c7658=_0x4bc4d0[_0x362a('0x3c')](),_0x575ee9=_0x1f1fbc[_0x362a('0x3c')]();for(const _0x467dfa of _0x4c7658){if(_0x467dfa[0x1]!==_0x1f1fbc[_0x362a('0xa6')](_0x467dfa[0x0]))return!0x1;_0x575ee9[_0x362a('0xd4')]();}return _0x575ee9[_0x362a('0xd4')]()[_0x362a('0x3')];}}[_0x362a('0x77')](){this[_0x362a('0x14')]['conversion'][_0x362a('0x58')](_0x362a('0x7'))['dataToMarker']({'view':_0x362a('0x13')}),this['editor'][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x3e'))[_0x362a('0xf4')]({'model':'revision','view':_0x950e0a=>{const _0x1559de=_0x950e0a['markerName'][_0x362a('0x4f')](':')[0x1],_0x480736=this[_0x362a('0x4a')](_0x1559de);if(!_0x480736)return null;const _0x409571=_0x362a('0xf7')==_0x480736['type']?_0x362a('0x1'):_0x362a('0x7f'),_0x38f905=['ck-suggestion-marker',_0x362a('0xb2')+_0x409571];return _0x480736['data'][_0x362a('0x63')]&&_0x38f905[_0x362a('0x56')]('ck-suggestion-marker-'+_0x409571+'-new'),this[_0x362a('0x1b')]==_0x480736&&_0x38f905[_0x362a('0x56')](_0x362a('0x20')),{'classes':_0x38f905,'attributes':{'data-change-id':_0x1559de}};}}),this['editor'][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xf7')](_0x15f745=>{_0x15f745['on'](_0x362a('0xa5'),(_0x3f213f,_0x2b52b9,_0x270f3f)=>{const _0x5d72fc=_0x2b52b9['viewItem'][_0x362a('0x21')](0x0);if(!_0x5d72fc||!_0x5d72fc['is'](_0x362a('0x100'),_0x362a('0x1e')))return;if(!_0x270f3f['consumable'][_0x362a('0x54')](_0x5d72fc,{'attributes':['vid_start','vid_end']}))return;const _0x3a21a1=_0x2b52b9['modelRange'][_0x362a('0xba')][_0x362a('0x5b')];_0x270f3f[_0x362a('0xa')][_0x362a('0xe9')](_0x362a('0x90'),_0x5d72fc[_0x362a('0xa6')]('vid_start'),_0x3a21a1),_0x270f3f[_0x362a('0xa')]['setAttribute'](_0x362a('0xca'),_0x5d72fc['getAttribute'](_0x362a('0xca')),_0x3a21a1);},{'priority':_0x362a('0xdf')});}),this['editor'][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xf7')](_0x5efec1=>{_0x5efec1['on'](_0x362a('0x100'),(_0x5a4d1c,_0x3a643e,_0x540f35)=>{if(!_0x540f35['consumable'][_0x362a('0x54')](_0x3a643e['viewItem'],{'attributes':[_0x362a('0x90'),'vid_end']}))return;if(_0x3a643e[_0x362a('0xb1')]['isCollapsed'])return;const _0x5cc993=_0x3a643e['modelRange'][_0x362a('0xba')][_0x362a('0x5b')];_0x5cc993[_0x362a('0x6')](_0x362a('0x90'))||_0x5cc993[_0x362a('0x6')]('vid')||(_0x540f35[_0x362a('0xa')][_0x362a('0xe9')](_0x362a('0x90'),_0x3a643e[_0x362a('0xea')][_0x362a('0xa6')](_0x362a('0x90')),_0x5cc993),_0x540f35['writer'][_0x362a('0xe9')](_0x362a('0xca'),_0x3a643e['viewItem'][_0x362a('0xa6')](_0x362a('0xca')),_0x5cc993));},{'priority':_0x362a('0xdf')});}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0x43')]({'view':{'name':_0x362a('0x35'),'attributes':{'vid':!0x0}},'model':{'key':_0x362a('0x102'),'value':_0x5e3f30=>_0x5e3f30[_0x362a('0xa6')]('vid')}}),this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2c')]['on'](_0x362a('0x87'),(_0x280314,[,_0x14152f])=>{[_0x362a('0x90'),_0x362a('0xca'),_0x362a('0x102')]['includes'](_0x14152f)&&(_0x280314[_0x362a('0x6e')]=!0x0,_0x280314[_0x362a('0xb8')]());},{'priority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')]('dataDowncast')[_0x362a('0xf7')](_0x2c6b2c=>{_0x2c6b2c['on'](_0x362a('0x52'),(_0x31e45e,_0x4369d1,_0x2be78c)=>{if('\x20'!=_0x4369d1['item'][_0x362a('0xb9')]||_0x4369d1[_0x362a('0x65')]['parent'][_0x362a('0xf6')]>0x1)return;if(!_0x2be78c[_0x362a('0xb6')][_0x362a('0x54')](_0x4369d1[_0x362a('0x65')],_0x31e45e[_0x362a('0x74')]))return;const _0x55b681=_0x2be78c[_0x362a('0xa')],_0x4e5f42=_0x2be78c[_0x362a('0xf3')]['toViewRange'](_0x4369d1[_0x362a('0xf1')]);_0x55b681['wrap'](_0x4e5f42,_0x55b681[_0x362a('0x24')](_0x362a('0x35')));});}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')]('dataDowncast')['markerToData']({'model':'revision'}),this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x73')]['on']('addMarker:revision',function(_0x4b9a3c){const _0x19a287=_0x4b9a3c['plugins'][_0x362a('0x89')]('RevisionViewer');return(_0x57b7d3,_0x72bca2,_0x458427)=>{const _0x5cf038=_0x72bca2[_0x362a('0xff')][_0x362a('0x4f')](':')[0x1],_0x5308bb=_0x19a287[_0x362a('0x4a')](_0x5cf038);if(!_0x5308bb)return null;const _0x2016ac=_0x362a('0xf7')==_0x5308bb['type']?'split':'merge';if(!_0x458427[_0x362a('0xb6')][_0x362a('0x51')](_0x72bca2[_0x362a('0x15')],_0x57b7d3[_0x362a('0x74')]))return;const _0x210c0d=_0x72bca2[_0x362a('0x15')][_0x362a('0x76')](),_0x3f255a=_0x72bca2[_0x362a('0x15')][_0x362a('0xba')],_0x4c3f0f=_0x4b9a3c[_0x362a('0xe7')][_0x362a('0x2c')];let _0x4ad63c=null,_0xb3c901=null,_0x44de9f=!0x1,_0x37a388=!0x1;for(const _0x3b5efe of _0x210c0d){const _0x1d8fe3=_0x3b5efe[_0x362a('0x65')];_0x44de9f=_0x44de9f||_0x4c3f0f[_0x362a('0xef')](_0x1d8fe3);const _0x3b7f7b=_0x458427['mapper'][_0x362a('0x62')](_0x1d8fe3);if(_0x3b7f7b&&_0x3b7f7b['getCustomProperty']('addHighlight'))return;_0x362a('0xc4')==_0x3b5efe[_0x362a('0x48')]&&(_0x4c3f0f[_0x362a('0x50')](_0x1d8fe3)&&!_0x4c3f0f[_0x362a('0x19')](_0x1d8fe3)&&(_0x1d8fe3['nextSibling']||_0x3f255a[_0x362a('0xec')]?_0x4ad63c&&_0x4ad63c['parent']==_0x1d8fe3||(_0x4ad63c=_0x1d8fe3,_0x308272(_0x3b5efe[_0x362a('0x42')]),_0x37a388=!0x0):_0xb3c901=_0xb3c901||_0x3b5efe[_0x362a('0x42')]));}function _0x308272(_0x2d7b08){const _0x18e447=_0x458427['writer'][_0x362a('0x9e')](_0x362a('0x35'),{'class':'ck-suggestion-marker-'+_0x2016ac}),_0x61b5db=_0x458427['mapper'][_0x362a('0xaa')](_0x2d7b08);_0x5308bb[_0x362a('0xb9')][_0x362a('0x63')]&&_0x458427[_0x362a('0xa')][_0x362a('0x83')](_0x362a('0xb2')+_0x2016ac+_0x362a('0xdc'),_0x18e447),_0x19a287[_0x362a('0x1b')]==_0x5308bb&&_0x458427[_0x362a('0xa')][_0x362a('0x83')](_0x362a('0x20'),_0x18e447),_0x458427['writer'][_0x362a('0x104')](_0x61b5db,_0x18e447),_0x458427[_0x362a('0xf3')][_0x362a('0x4c')](_0x18e447,_0x72bca2[_0x362a('0xff')]);}_0x44de9f||_0x37a388||!_0xb3c901||_0x308272(_0xb3c901);};}(this[_0x362a('0x14')]),{'priority':_0x362a('0x1d')}),this[_0x362a('0x14')]['editing'][_0x362a('0x73')]['on'](_0x362a('0x23'),(_0x5e0a16,_0xf8797b,_0x284459)=>{const _0x5f0edb=_0x284459[_0x362a('0xf3')][_0x362a('0x60')](_0xf8797b[_0x362a('0xff')]);if(_0x5f0edb)for(const _0x3aaece of _0x5f0edb)(_0x3aaece[_0x362a('0x5d')](_0x362a('0x2e'))||_0x3aaece['hasClass'](_0x362a('0x29')))&&(_0x284459[_0x362a('0xf3')][_0x362a('0x7d')](_0x3aaece,_0xf8797b['markerName']),_0x284459[_0x362a('0xa')][_0x362a('0xcb')](_0x3aaece));},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on'](_0x362a('0x28'),(_0xbf292c,_0x17f979,_0x52fdcc)=>{const _0x385fa8=_0x17f979[_0x362a('0xff')][_0x362a('0x4f')](':')[0x1],_0x3e6b0c=this[_0x362a('0x4a')](_0x385fa8);if(!_0x3e6b0c)return null;const _0x314524=_0x362a('0xf7')==_0x3e6b0c[_0x362a('0x48')]?_0x362a('0x4f'):_0x362a('0xed');if(_0x52fdcc['consumable']['test'](_0x17f979[_0x362a('0x15')],_0xbf292c[_0x362a('0x74')]))for(const _0x42ffa6 of _0x17f979[_0x362a('0x15')][_0x362a('0xe1')]()){if(!_0x42ffa6['is']('element','softBreak'))continue;const _0x576e5d=_0x52fdcc[_0x362a('0xa')][_0x362a('0x9e')](_0x362a('0x35'),{'class':_0x362a('0xb2')+_0x314524}),_0x399d41=_0x52fdcc[_0x362a('0xf3')][_0x362a('0xaa')](this[_0x362a('0x14')]['model']['createPositionBefore'](_0x42ffa6));_0x3e6b0c[_0x362a('0xb9')][_0x362a('0x63')]&&_0x52fdcc[_0x362a('0xa')][_0x362a('0x83')](_0x362a('0xb2')+_0x314524+_0x362a('0xdc'),_0x576e5d),this[_0x362a('0x1b')]==_0x3e6b0c&&_0x52fdcc[_0x362a('0xa')][_0x362a('0x83')]('ck-suggestion-marker--active',_0x576e5d),_0x52fdcc[_0x362a('0xa')][_0x362a('0x104')](_0x399d41,_0x576e5d),_0x52fdcc[_0x362a('0xf3')]['bindElementToMarker'](_0x576e5d,_0x17f979['markerName']);}},{'priority':_0x362a('0x1d')}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xad')]({'view':_0x362a('0xd6'),'model':_0x2e656c=>'revision-comment:'+_0x2e656c,'converterPriority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xad')]({'view':'suggestion','model':_0x56bf3d=>'revision-suggestion:'+_0x56bf3d,'converterPriority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x93'))[_0x362a('0x41')]({'model':_0x362a('0xd5'),'view':_0x144fbf=>'suggestion:'+_0x144fbf,'converterPriority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')]('editingDowncast')[_0x362a('0xf4')]({'model':_0x362a('0xd5'),'view':_0x4df413=>{const _0x26db38=_0x4df413[_0x362a('0xff')][_0x362a('0x4f')](':')[0x1];return _0x362a('0x1')!=_0x26db38&&_0x362a('0x7f')!=_0x26db38?null:{'classes':[_0x362a('0xa0'),'ck-suggestion-preview-marker-'+_0x26db38]};}}),this['editor'][_0x362a('0xae')][_0x362a('0x73')]['on'](_0x362a('0x6c'),Z(this[_0x362a('0x14')],_0x362a('0xed')),{'priority':_0x362a('0x1d')}),this[_0x362a('0x14')][_0x362a('0xae')]['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this[_0x362a('0x14')],_0x362a('0x4f')),{'priority':_0x362a('0x1d')}),this['editor'][_0x362a('0xae')][_0x362a('0x73')]['on'](_0x362a('0xfa'),(_0x3a0a26,_0x19958a,_0x170e7d)=>{const _0x2f5d62=_0x170e7d[_0x362a('0xf3')][_0x362a('0x60')](_0x19958a[_0x362a('0xff')]);if(_0x2f5d62)for(const _0xef4195 of _0x2f5d62)_0xef4195['is'](_0x362a('0x8b'))&&(_0x170e7d[_0x362a('0xf3')][_0x362a('0x7d')](_0xef4195,_0x19958a[_0x362a('0xff')]),_0x170e7d['writer'][_0x362a('0xcb')](_0xef4195));},{'priority':_0x362a('0x1d')});}[_0x362a('0x4a')](_0x412a50){return this[_0x362a('0x84')][_0x362a('0x89')](_0x412a50);}['_getViewForChange'](_0x16861e){this['_changeView']&&this[_0x362a('0x8a')][_0x362a('0xc3')](),this['_changeView']=new _0x4612b3(this[_0x362a('0x14')]['locale'],_0x16861e);const _0x51d776=this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2f')][_0x362a('0x89')](_0x362a('0x44')+_0x16861e['id']);return this[_0x362a('0x8a')][_0x362a('0x2d')]=()=>_0x15f201(this['editor']['editing'],_0x51d776),this['_changeView'];}['_initInteractions'](){this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0xc8')]['selection'][_0x362a('0x17')]('revision'),this['on']('change:activeView',(_0x2884b2,_0x3df3bd,_0x70dea6,_0x893702)=>{_0x893702&&this[_0x362a('0x66')][_0x362a('0xcb')](_0x893702),_0x70dea6&&(this[_0x362a('0x66')][_0x362a('0xf7')]({'view':_0x70dea6,'stackId':_0x362a('0xb4'),'position':{'target':_0x70dea6[_0x362a('0x2d')]}}),this[_0x362a('0x66')][_0x362a('0xf')](_0x362a('0xb4')));}),this['on'](_0x362a('0x16'),(_0x2bfb38,_0x508a3b,_0x34cddd,_0x251637)=>{this[_0x362a('0xcf')]=_0x34cddd?this['_getViewForChange'](_0x34cddd):null,this['editor'][_0x362a('0xe7')][_0x362a('0x61')](()=>{const _0x32a9ac=this[_0x362a('0x14')]['editing'];_0x251637&&_0x32a9ac[_0x362a('0x40')](_0x362a('0x44')+_0x251637['id']),_0x34cddd&&_0x32a9ac[_0x362a('0x40')]('revision:'+_0x34cddd['id']);});}),this['listenTo'](this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')],_0x362a('0x80'),(_0xef69f5,_0xa556ee)=>{if(this['activeChange'])return;const _0x534174=this[_0x362a('0xd8')](_0xa556ee[_0x362a('0x78')]),_0x5d2a7f=this['_changeIdToChange'][_0x362a('0x89')](_0x534174);this[_0x362a('0xcf')]=_0x5d2a7f?this[_0x362a('0x82')](_0x5d2a7f):null;}),this[_0x362a('0xde')](this[_0x362a('0x14')]['editing'][_0x362a('0x8f')]['document'],_0x362a('0x11'),(_0x4fa79d,_0x187585)=>{const _0x415605=this[_0x362a('0xd8')](_0x187585[_0x362a('0x78')]),_0x48d16d=this[_0x362a('0x84')]['get'](_0x415605);this['activeChange']=_0x48d16d||null;});}['_findChangeIdFromDomTarget'](_0x5048c8){do{const _0x5e998c=_0x5048c8['getAttribute'](_0x362a('0xe0'));if(_0x5e998c)return _0x5e998c;_0x5048c8=_0x5048c8['parent'];}while(_0x5048c8);return null;}[_0x362a('0xcd')](){this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x61')](_0x3b8ea6=>{for(const _0x25a9a3 of this[_0x362a('0x14')]['model'][_0x362a('0x2f')])_0x3b8ea6['removeMarker'](_0x25a9a3);});}}function Z(_0x108a50,_0x32f8a5){return(_0x3dce11,_0x15f4c8,_0x34e76c)=>{if(!_0x34e76c[_0x362a('0xb6')][_0x362a('0x51')](_0x15f4c8[_0x362a('0x15')],_0x3dce11[_0x362a('0x74')]))return;const _0x1a3638=_0x15f4c8[_0x362a('0x15')][_0x362a('0x76')](),_0x494b4a=_0x15f4c8['markerRange']['start'],_0x2579a9=_0x108a50[_0x362a('0xe7')]['schema'];let _0x34632f=null,_0x4532e0=null,_0x36a77f=!0x1,_0x2277fa=!0x1;for(const _0x5af600 of _0x1a3638){const _0x26581e=_0x5af600[_0x362a('0x65')];_0x36a77f=_0x36a77f||_0x2579a9['isContent'](_0x26581e);const _0x4f1064=_0x34e76c[_0x362a('0xf3')][_0x362a('0x62')](_0x26581e);if(_0x4f1064&&_0x4f1064['getCustomProperty'](_0x362a('0x18')))return;_0x362a('0xc4')==_0x5af600[_0x362a('0x48')]&&(_0x2579a9[_0x362a('0x50')](_0x26581e)&&!_0x2579a9[_0x362a('0x19')](_0x26581e)&&(_0x26581e[_0x362a('0x0')]||_0x494b4a[_0x362a('0xec')]?_0x34632f&&_0x34632f[_0x362a('0x1f')]==_0x26581e||(_0x34632f=_0x26581e,_0x4078f6(_0x5af600[_0x362a('0x42')]),_0x2277fa=!0x0):_0x4532e0=_0x4532e0||_0x5af600['previousPosition']));}function _0x4078f6(_0x274f69){const _0x5b80ec=_0x34e76c[_0x362a('0xf3')][_0x362a('0xaa')](_0x274f69),_0x2124dd=_0x34e76c[_0x362a('0xa')][_0x362a('0x9e')](_0x362a('0x35'),{'class':_0x362a('0x59')+_0x32f8a5});_0x34e76c['writer'][_0x362a('0x104')](_0x5b80ec,_0x2124dd),_0x34e76c[_0x362a('0xf3')][_0x362a('0x4c')](_0x2124dd,_0x15f4c8[_0x362a('0xff')]);}_0x36a77f||_0x2277fa||!_0x4532e0||_0x4078f6(_0x4532e0);};}_0x27e8c5(d,_0x9f85d9);class tt extends _0x3913a7{constructor(_0x3e5781){super(_0x3e5781);const _0x52c5aa=_0x3e5781[_0x362a('0x26')]['get'](d);this[_0x362a('0x4d')](_0x3e5781,_0x362a('0x46')),this[_0x362a('0xee')]('readOnlyMode'),this[_0x362a('0xde')](_0x52c5aa,_0x362a('0x6b'),()=>this[_0x362a('0x9f')]()),this['listenTo'](_0x52c5aa,_0x362a('0x45'),()=>this['refresh']());}['execute'](){const _0x41b6c0=this['editor'],_0x246e08=_0x41b6c0[_0x362a('0x26')][_0x362a('0x89')](d),_0x4cc616=_0x246e08['isReady']?_0x246e08[_0x362a('0xd1')][_0x362a('0xbd')]:null;_0x41b6c0[_0x362a('0xf2')]['get'](_0x362a('0xa3'))['restoreRevisionCallback'](_0x4cc616);}[_0x362a('0x9f')](){const {isReady:_0x48be33,isEnabled:_0x577dac}=this[_0x362a('0x14')][_0x362a('0x26')][_0x362a('0x89')](d);this[_0x362a('0xac')]=_0x48be33&&_0x577dac;}}class et extends _0x3913a7{constructor(_0x11bd73,{direction:_0x29e461}){super(_0x11bd73);const _0x3194b4=_0x11bd73[_0x362a('0x26')][_0x362a('0x89')](d);this[_0x362a('0x4d')](_0x11bd73,_0x362a('0x46')),this[_0x362a('0xee')](_0x362a('0x9')),this[_0x362a('0x5')]=_0x362a('0xe6')===_0x29e461?0x1:-0x1,this[_0x362a('0xde')](_0x3194b4,_0x362a('0x6b'),()=>this[_0x362a('0x9f')]()),this['listenTo'](_0x3194b4,_0x362a('0x45'),()=>this[_0x362a('0x9f')]());}['execute'](){const _0x3f0441=this[_0x362a('0x14')],_0x1ff626=_0x3f0441[_0x362a('0x26')]['get'](d),{isNavigationMode:_0x46394a,currentChangeNumber:_0x11a256}=_0x1ff626;_0x1ff626[_0x362a('0x1b')]=_0x46394a?_0x1ff626[_0x362a('0xd1')][_0x362a('0xc9')][_0x362a('0x89')](_0x11a256+this[_0x362a('0x5')]):_0x1ff626[_0x362a('0xd1')][_0x362a('0xc9')][_0x362a('0x98')];const _0x48803a=_0x3f0441[_0x362a('0xe7')][_0x362a('0x2f')][_0x362a('0x89')](_0x362a('0x44')+_0x1ff626[_0x362a('0x1b')]['id']),_0x488e6d=_0x15f201(_0x3f0441[_0x362a('0xae')],_0x48803a);_0x194198({'target':_0x488e6d,'viewportOffset':0x28});}[_0x362a('0x9f')](){const {isNavigationMode:_0xee3da6,currentChangeNumber:_0x393c88,numberOfChanges:_0x2edc56,isReady:_0x185851,isEnabled:_0x120dd4}=this[_0x362a('0x14')][_0x362a('0x26')][_0x362a('0x89')](d);this[_0x362a('0xac')]=!!(_0x120dd4&&_0x185851&&_0x2edc56)&&(!_0xee3da6||(0x1===this[_0x362a('0x5')]?_0x393c88<_0x2edc56-0x1:_0x393c88>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b7c=['ck-on','panelPosition','model','Show\x20more\x20items','first','locale','listenTo','button','isOpen','class','stopPropagation','bindTemplate','map','children','find','items','bind','function','action','isVisible','add','Name\x20this\x20revision','buttonView','isEnabled','_action','name','source','isReady','isActionsDropdownOpen','ck-revision-history-sidebar__revision__actions'];(function(_0x70d434,_0x1b7c26){const _0x22d23b=function(_0x1c8bf0){while(--_0x1c8bf0){_0x70d434['push'](_0x70d434['shift']());}};_0x22d23b(++_0x1b7c26);}(_0x1b7c,0x81));const _0x22d2=function(_0x70d434,_0x1b7c26){_0x70d434=_0x70d434-0x0;let _0x22d23b=_0x1b7c[_0x70d434];return _0x22d23b;};import{Collection as _0x57e16c}from'ckeditor5/src/utils';import{Model as _0x5e497e,addListToDropdown as _0x2c635a,createDropdown as _0x99a2ad}from'ckeditor5/src/ui';import{getTranslation as _0x2eb885}from'../../utils/common-translations';import _0x1c5211 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x47b109,_0x56f16b){const _0x5500b1=_0x47b109[_0x22d2('0x2')],_0x6755ae=_0x47b109[_0x22d2('0x1a')],_0x235001=_0x99a2ad(_0x6755ae);_0x235001[_0x22d2('0x16')]='sw';const _0x503b2a=function(_0x310ac1,_0x296dff){const _0x581aee=function(_0x56dd4a,_0x20f15f){const _0x4b6ef0=_0x56dd4a[_0x22d2('0x1a')],_0x2d0a41={'Compare\x20against\x20selected':_0x2eb885(_0x4b6ef0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x2eb885(_0x4b6ef0,_0x22d2('0xc')),'Restore\x20this\x20revision':_0x2eb885(_0x4b6ef0,'Restore\x20this\x20revision')};return _0x20f15f[_0x22d2('0x3')](_0x549132=>{const _0x43471a=_0x2d0a41[_0x549132[_0x22d2('0x10')]];return _0x43471a&&_0x43471a!==_0x549132[_0x22d2('0x10')]&&(_0x549132['name']=_0x43471a),_0x549132;});}(_0x310ac1,_0x296dff),_0xe4465b=new _0x57e16c();for(const _0x50c72d of _0x581aee){const _0x3eb899={'type':_0x22d2('0x1c'),'model':new _0x5e497e({'label':_0x50c72d[_0x22d2('0x10')],'class':_0x50c72d[_0x22d2('0x0')],'withText':!0x0,'_action':_0x50c72d[_0x22d2('0x9')]})};_0x3eb899[_0x22d2('0x17')][_0x22d2('0x7')](_0x22d2('0xe'))['to'](_0x310ac1,_0x22d2('0x13'),_0x2c1e68=>'function'!=typeof _0x50c72d[_0x22d2('0xe')]||(!_0x2c1e68||_0x50c72d[_0x22d2('0xe')](_0x310ac1))),_0xe4465b[_0x22d2('0xb')](_0x3eb899);}return _0xe4465b;}(_0x47b109,_0x56f16b);return _0x47b109[_0x22d2('0x7')](_0x22d2('0x13'))['to'](_0x235001,_0x22d2('0x1d')),_0x235001[_0x22d2('0xd')]['set']({'label':_0x2eb885(_0x6755ae,_0x22d2('0x18')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c5211}),_0x235001['extendTemplate']({'attributes':{'class':[_0x22d2('0x14'),_0x5500b1['if'](_0x22d2('0x13'),_0x22d2('0x15'))]},'on':{'click':_0x5500b1['to'](_0xd80e3e=>_0xd80e3e[_0x22d2('0x1')]())}}),_0x235001['on']('execute',_0xfef84a=>{_0x47b109[_0x22d2('0x12')]&&_0x22d2('0x8')==typeof _0xfef84a[_0x22d2('0x11')][_0x22d2('0xf')]&&_0xfef84a['source'][_0x22d2('0xf')](_0x47b109);}),_0x2c635a(_0x235001,_0x503b2a),_0x235001[_0x22d2('0x1b')](_0x47b109,'change:isActionsDropdownOpen',(_0x1df52b,_0xf77ab1,_0xd87576)=>{if(_0xd87576)for(const _0x5ec62b of _0x235001['listView'][_0x22d2('0x6')]){const _0x2c9d52=_0x5ec62b[_0x22d2('0x4')][_0x22d2('0x19')],_0x741b3e=_0x56f16b[_0x22d2('0x5')](_0x4caefb=>_0x4caefb[_0x22d2('0x9')]===_0x2c9d52[_0x22d2('0xf')])[_0x22d2('0xa')];_0x5ec62b['isVisible']=void 0x0===_0x741b3e||_0x741b3e(_0x47b109);}}),_0x235001;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1faf=['set','ck-revision-history-sidebar__revision-author__name','setTemplate','name','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','0\x200\x2011\x2010','span'];(function(_0x4ffb05,_0x1faf4f){const _0x3fe2c8=function(_0x302e80){while(--_0x302e80){_0x4ffb05['push'](_0x4ffb05['shift']());}};_0x3fe2c8(++_0x1faf4f);}(_0x1faf,0x1b4));const _0x3fe2=function(_0x4ffb05,_0x1faf4f){_0x4ffb05=_0x4ffb05-0x0;let _0x3fe2c8=_0x1faf[_0x4ffb05];return _0x3fe2c8;};import{View as _0x3c949c,IconView as _0x12940d}from'ckeditor5/src/ui';import{getTranslation as _0x4f8217}from'../../utils/common-translations';import _0x15dfdd from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x3c949c{constructor(_0x518324,_0x451d3f,_0x29f845){super(_0x518324);const _0x1a3ac3=new _0x12940d(_0x518324);_0x1a3ac3[_0x3fe2('0x4')]({'content':_0x15dfdd,'viewBox':_0x3fe2('0x2')});const _0x143966=['ck','ck-revision-history-sidebar__revision-author'];_0x29f845&&_0x143966['push'](_0x3fe2('0x0'));const _0x4839e6=[{'tag':_0x3fe2('0x3'),'attributes':{'class':['ck',_0x3fe2('0x5')],'title':_0x4f8217(_0x518324,_0x29f845?'Revision\x20creator':_0x3fe2('0x1'))},'children':[_0x1a3ac3,_0x451d3f[_0x3fe2('0x7')]]}];this[_0x3fe2('0x6')]({'tag':'li','attributes':{'class':_0x143966},'children':_0x4839e6});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x12bc=['set','span'];(function(_0x239944,_0x12bcf3){var _0x54dfc5=function(_0x1d65b5){while(--_0x1d65b5){_0x239944['push'](_0x239944['shift']());}};_0x54dfc5(++_0x12bcf3);}(_0x12bc,0xf9));var _0x54df=function(_0x239944,_0x12bcf3){_0x239944=_0x239944-0x0;var _0x54dfc5=_0x12bc[_0x239944];return _0x54dfc5;};import{LabeledFieldView as _0x30b2a3}from'ckeditor5/src/ui';import{getTranslation as _0x5de3bb}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x30b2a3{constructor(_0x22bc11,..._0x3e8847){super(_0x22bc11,..._0x3e8847),this[_0x54df('0x1')]({'label':_0x5de3bb(_0x22bc11,'Revision\x20name')}),this['extendTemplate']({'tag':_0x54df('0x0'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x64ab=['value','ck-reset','fieldView','set','deselect','revisionNameView','authors','ck-revision-history-sidebar__revision','uiLanguage','change','isReady','highlight','setTemplate','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','length','isActionsDropdownOpen','span','ck-disabled','name','fire','ck-revision-history-sidebar__revision_highlighted','bind','render','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision__controls-wrapper','revisionActionsView','map','.ck-thread__remove-confirm','srcElement','closest','isHighlighted','isConfirm','div','unshift','creator','isSelected','createdAt','unhighlight','_createdAtFormatted','setName','bindTemplate','ck-revision-history-sidebar__revision-authors','filter','isEnabled','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','select','ck-revision-history-sidebar__actions_dropdown_open'];(function(_0x151379,_0x64ab6c){const _0x4b6413=function(_0x5414a0){while(--_0x5414a0){_0x151379['push'](_0x151379['shift']());}};_0x4b6413(++_0x64ab6c);}(_0x64ab,0xbc));const _0x4b64=function(_0x151379,_0x64ab6c){_0x151379=_0x151379-0x0;let _0x4b6413=_0x64ab[_0x151379];return _0x4b6413;};import{View as _0x219cae,createLabeledInputText as _0x1ccc4e}from'ckeditor5/src/ui';import{mix as _0x5602cf}from'ckeditor5/src/utils';import{ConfirmMixin as _0x3aec8d}from'ckeditor5-collaboration/src/collaboration-core';import _0x1d47fe from'./revisionnameview';import _0x1d6d66 from'./revisionauthorview';import{dateToPrettyFormat as _0x8ac044}from'./utils';import{createActionsDropdownView as _0x20a639}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x219cae{constructor(_0x5e5427,_0x187c33,_0x15a0a9){super(_0x5e5427);const _0x2f7481=this[_0x4b64('0x2c')],_0x268a8a=function(_0x33df54,_0x519998){const _0x36941a=Array['from'](_0x519998[_0x4b64('0xa')])[_0x4b64('0x2e')](_0x384853=>_0x384853!=_0x519998[_0x4b64('0x26')]);return _0x519998[_0x4b64('0x26')]&&_0x36941a[_0x4b64('0x25')](_0x519998[_0x4b64('0x26')]),_0x36941a[_0x4b64('0x1e')](_0x5b62bf=>new _0x1d6d66(_0x33df54,_0x5b62bf,_0x5b62bf==_0x519998[_0x4b64('0x26')]));}(_0x5e5427,_0x187c33);this['_revision']=_0x187c33,this['id']=_0x187c33['id'],this[_0x4b64('0x19')](_0x4b64('0x16'),_0x4b64('0x28'))['to'](_0x187c33),this[_0x4b64('0x7')](_0x4b64('0x27'),!0x1),this[_0x4b64('0x7')]('isHighlighted',!0x1),this[_0x4b64('0x7')](_0x4b64('0x13'),!0x1),this[_0x4b64('0x7')](_0x4b64('0xe'),!0x1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3cd6b6=>_0x3cd6b6?_0x8ac044(_0x5e5427[_0x4b64('0xc')],_0x3cd6b6):null),this[_0x4b64('0x7')](_0x4b64('0x2f'),!0x1),this[_0x4b64('0x9')]=new _0x1d47fe(_0x5e5427,_0x1ccc4e),this[_0x4b64('0x9')]['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView'][_0x4b64('0x6')][_0x4b64('0x19')](_0x4b64('0x4'),'placeholder')['to'](this,_0x4b64('0x16'),_0x4b64('0x2a')),this[_0x4b64('0x9')][_0x4b64('0x19')]('isEnabled')['to'](this,_0x4b64('0x27'),this,_0x4b64('0x2f'),(_0x13349a,_0x316357)=>_0x13349a&&_0x316357),this[_0x4b64('0x1d')]=_0x15a0a9&&_0x15a0a9[_0x4b64('0x12')]?_0x20a639(this,_0x15a0a9):'',this[_0x4b64('0x1d')]['bind']('isEnabled')['to'](this),this[_0x4b64('0x10')]({'tag':_0x4b64('0x24'),'attributes':{'class':['ck',_0x4b64('0x5'),_0x4b64('0x1b'),_0x2f7481['if'](_0x4b64('0x23'),_0x4b64('0x11'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x4b64('0x5'),_0x4b64('0xb'),_0x2f7481['if'](_0x4b64('0x2f'),_0x4b64('0x15'),_0x122ebe=>!_0x122ebe),_0x2f7481['if']('isSelected',_0x4b64('0x0')),_0x2f7481['if'](_0x4b64('0x22'),_0x4b64('0x18')),_0x2f7481['if']('isActionsDropdownOpen',_0x4b64('0x3'))]},'children':[this[_0x4b64('0x9')],{'tag':_0x4b64('0x14'),'attributes':{'class':['ck',_0x4b64('0x1')]},'children':[{'text':_0x2f7481['to'](_0x4b64('0x2a'))}]},{'tag':'div','attributes':{'class':['ck',_0x4b64('0x1c')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4b64('0x2d')]},'children':_0x268a8a}]},this[_0x4b64('0x1d')]],'on':{'click':_0x2f7481['to'](_0x1d9184=>{_0x1d9184[_0x4b64('0x20')][_0x4b64('0x21')](_0x4b64('0x1f'))||this[_0x4b64('0xe')]&&this['isEnabled']&&this[_0x4b64('0x17')](_0x4b64('0x2'),{'id':this['id']});})}}]});}[_0x4b64('0x1a')](){super['render']();const _0x4bfe09=this[_0x4b64('0x9')]['fieldView']['element'];this['listenTo'](_0x4bfe09,_0x4b64('0xd'),()=>{this[_0x4b64('0x17')](_0x4b64('0x2b'),{'id':this['id'],'name':_0x4bfe09[_0x4b64('0x4')]});});}[_0x4b64('0x2')](){this[_0x4b64('0x27')]=!0x0;}[_0x4b64('0x8')](){this[_0x4b64('0x27')]=!0x1;}[_0x4b64('0xf')](){this[_0x4b64('0x22')]=!0x0;}[_0x4b64('0x29')](){this[_0x4b64('0x22')]=!0x1;}}_0x5602cf(ci,_0x3aec8d);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8ec2=['ck-revision-history-sidebar__subrevision-collapser','bindTemplate','toggle','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed','isVisible','span','click','true','button','setTemplate'];(function(_0x23c9a5,_0x8ec2a5){const _0x5f2a51=function(_0x451fbe){while(--_0x451fbe){_0x23c9a5['push'](_0x23c9a5['shift']());}};_0x5f2a51(++_0x8ec2a5);}(_0x8ec2,0xfa));const _0x5f2a=function(_0x23c9a5,_0x8ec2a5){_0x23c9a5=_0x23c9a5-0x0;let _0x5f2a51=_0x8ec2[_0x23c9a5];return _0x5f2a51;};import{View as _0x16ea6c}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x16ea6c{constructor(_0x3116d3){super(_0x3116d3);const _0x230d51=this[_0x5f2a('0x4')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5f2a('0x2')]({'tag':_0x5f2a('0x9'),'attributes':{'class':['ck',_0x5f2a('0x3'),_0x230d51['if'](_0x5f2a('0x8'),'ck-hidden',_0x1e5ee0=>!_0x1e5ee0),_0x230d51['if'](_0x5f2a('0x6'),_0x5f2a('0x7'))],'role':_0x5f2a('0x1'),'aria-pressed':_0x230d51['to'](_0x5f2a('0x6'),_0x4090b7=>_0x4090b7?'false':_0x5f2a('0x0'))},'children':[{'tag':_0x5f2a('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x230d51['to'](_0x5f2a('0xa'))}});}[_0x5f2a('0x5')](){this[_0x5f2a('0x6')]=!this[_0x5f2a('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34da=['ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision__date','_createdAtFormatted','createdAt','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision','bind','span','fire','div','set','bindTemplate','isSelected','select','_parentRevisionId','setTemplate','ck-reset'];(function(_0x1ef2da,_0x34da05){const _0x43e7ef=function(_0x50c0a7){while(--_0x50c0a7){_0x1ef2da['push'](_0x1ef2da['shift']());}};_0x43e7ef(++_0x34da05);}(_0x34da,0xe6));const _0x43e7=function(_0x1ef2da,_0x34da05){_0x1ef2da=_0x1ef2da-0x0;let _0x43e7ef=_0x34da[_0x1ef2da];return _0x43e7ef;};import{View as _0x5d6c54}from'ckeditor5/src/ui';import _0x156e0b from'./revisionauthorview';import{dateToPrettyFormat as _0x3a6f1f}from'./utils';import'../../../theme/revision/subrevision.css';export default class dt extends _0x5d6c54{constructor(_0x185ca6,_0x22bf03,_0x2dd281){super(_0x185ca6);const _0x2b4a2a=this[_0x43e7('0x2')];this['id']=_0x22bf03['id'],this[_0x43e7('0xe')]('createdAt')['to'](_0x22bf03),this[_0x43e7('0x1')]('isSelected',!0x1),this[_0x43e7('0xe')]('_createdAtFormatted')['to'](this,_0x43e7('0xb'),_0x356e5e=>_0x356e5e?_0x3a6f1f(_0x185ca6['uiLanguage'],_0x356e5e):null),this[_0x43e7('0x5')]=_0x2dd281,this[_0x43e7('0x6')]({'tag':_0x43e7('0x0'),'attributes':{'class':['ck',_0x43e7('0x7'),_0x43e7('0xd'),_0x43e7('0x8'),_0x2b4a2a['if'](_0x43e7('0x3'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x43e7('0xf'),'attributes':{'class':['ck',_0x43e7('0x9')]},'children':[{'text':_0x2b4a2a['to'](_0x43e7('0xa'))}]},{'tag':'ul','attributes':{'class':['ck',_0x43e7('0xc')]},'children':[new _0x156e0b(_0x185ca6,_0x22bf03['author'],!0x0)]}],'on':{'click':_0x2b4a2a['to'](this[_0x43e7('0x4')][_0x43e7('0xe')](this))}});}[_0x43e7('0x4')](){this[_0x43e7('0x3')]=!0x0,this[_0x43e7('0x10')](_0x43e7('0x4'),{'parentId':this[_0x43e7('0x5')]});}['deselect'](){this[_0x43e7('0x3')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1de3=['toLocaleTimeString','long','numeric'];(function(_0x5cbc88,_0x1de309){var _0x14ad3c=function(_0x44661c){while(--_0x44661c){_0x5cbc88['push'](_0x5cbc88['shift']());}};_0x14ad3c(++_0x1de309);}(_0x1de3,0x1e9));var _0x14ad=function(_0x5cbc88,_0x1de309){_0x5cbc88=_0x5cbc88-0x0;var _0x14ad3c=_0x1de3[_0x5cbc88];return _0x14ad3c;};export function dateToPrettyFormat(_0x538162,_0x4297c2){return _0x4297c2['toLocaleDateString'](_0x538162,{'month':_0x14ad('0x1'),'day':_0x14ad('0x2')})+',\x20'+_0x4297c2[_0x14ad('0x0')](_0x538162,{'hour':_0x14ad('0x2'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x353a=['delegate','extendTemplate','label','_createRevisionNameInput','focusTracker','execute','setTemplate','keystrokes','reset','add','revisionNameInputValue','render','forEach','ck-revision-history-save-revision-form','form','listenTo','type','Name\x20of\x20the\x20revision\x20(optional)','focus','revisionName','_focusCycler','shift\x20+\x20tab','stopPropagation','arrowleft','set','220','trim','fieldView','_focusables','Save','input','_createButton','cancel','ck-button-cancel','high','revisionNameInputView','value','locale','saveButtonView','arrowright','element','cancelButtonView','ck-button-save'];(function(_0x1266ea,_0x353a2a){const _0x49d51b=function(_0x37c802){while(--_0x37c802){_0x1266ea['push'](_0x1266ea['shift']());}};_0x49d51b(++_0x353a2a);}(_0x353a,0xb1));const _0x49d5=function(_0x1266ea,_0x353a2a){_0x1266ea=_0x1266ea-0x0;let _0x49d51b=_0x353a[_0x1266ea];return _0x49d51b;};import{ButtonView as _0x41caec,FocusCycler as _0x43d314,LabeledFieldView as _0x5712f3,View as _0x2635c0,ViewCollection as _0x460097,createLabeledInputText as _0x5ce864,injectCssTransitionDisabler as _0x3e0d35,submitHandler as _0x4eb6cd}from'ckeditor5/src/ui';import{FocusTracker as _0x279eb2,KeystrokeHandler as _0x34fed5}from'ckeditor5/src/utils';import{getTranslation as _0x41fde4}from'../../utils/common-translations';import _0x15282d from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x592d28 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class gt extends _0x2635c0{constructor(_0xc1220d){super(_0xc1220d),this[_0x49d5('0x2a')]=new _0x279eb2(),this['keystrokes']=new _0x34fed5(),this[_0x49d5('0x13')]('revisionNameInputValue',''),this['revisionNameInputView']=this[_0x49d5('0x29')](),this[_0x49d5('0x21')]=this[_0x49d5('0x1a')](_0x41fde4(_0xc1220d,_0x49d5('0x18')),_0x15282d,_0x49d5('0x25')),this['saveButtonView'][_0x49d5('0xb')]='submit',this[_0x49d5('0x24')]=this['_createButton'](_0x41fde4(_0xc1220d,'Cancel'),_0x592d28,_0x49d5('0x1c'),_0x49d5('0x1b')),this[_0x49d5('0x17')]=new _0x460097(),this[_0x49d5('0xf')]=new _0x43d314({'focusables':this[_0x49d5('0x17')],'focusTracker':this[_0x49d5('0x2a')],'keystrokeHandler':this[_0x49d5('0x2')],'actions':{'focusPrevious':_0x49d5('0x10'),'focusNext':'tab'}}),this[_0x49d5('0x1')]({'tag':_0x49d5('0x9'),'attributes':{'class':['ck',_0x49d5('0x8'),'ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x49d5('0x21')],this[_0x49d5('0x24')]]}),_0x3e0d35(this);}[_0x49d5('0x6')](){super[_0x49d5('0x6')](),_0x4eb6cd({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']][_0x49d5('0x7')](_0x544337=>{this[_0x49d5('0x17')][_0x49d5('0x4')](_0x544337),this['focusTracker'][_0x49d5('0x4')](_0x544337[_0x49d5('0x23')]);}),this[_0x49d5('0x2')]['listenTo'](this['element']));const _0x568cc2=_0x1c64d1=>_0x1c64d1[_0x49d5('0x11')]();this[_0x49d5('0x2')]['set'](_0x49d5('0x22'),_0x568cc2),this['keystrokes']['set'](_0x49d5('0x12'),_0x568cc2),this[_0x49d5('0x2')][_0x49d5('0x13')]('arrowup',_0x568cc2),this[_0x49d5('0x2')][_0x49d5('0x13')]('arrowdown',_0x568cc2),this[_0x49d5('0xa')](this[_0x49d5('0x1e')][_0x49d5('0x23')],'selectstart',(_0x519a6b,_0x3df044)=>{_0x3df044[_0x49d5('0x11')]();},{'priority':_0x49d5('0x1d')});}[_0x49d5('0xd')](){this[_0x49d5('0xf')]['focusFirst']();}get['revisionName'](){return this['revisionNameInputView'][_0x49d5('0x16')][_0x49d5('0x23')][_0x49d5('0x1f')][_0x49d5('0x15')]();}set[_0x49d5('0xe')](_0x518934){this[_0x49d5('0x1e')]['fieldView'][_0x49d5('0x23')]['value']=_0x518934[_0x49d5('0x15')]();}[_0x49d5('0x3')](){this[_0x49d5('0x1e')][_0x49d5('0x16')][_0x49d5('0x23')]['value']='';}['_createRevisionNameInput'](){const _0x29d420=new _0x5712f3(this[_0x49d5('0x20')],_0x5ce864),_0x30c6f5=_0x29d420['fieldView'];return _0x30c6f5[_0x49d5('0x27')]({'attributes':{'maxlength':_0x49d5('0x14')}}),_0x29d420[_0x49d5('0x28')]=_0x41fde4(this[_0x49d5('0x20')],_0x49d5('0xc')),_0x30c6f5['on'](_0x49d5('0x19'),()=>{this[_0x49d5('0x5')]=_0x30c6f5[_0x49d5('0x23')][_0x49d5('0x1f')]['trim']();}),_0x29d420;}['_createButton'](_0x196c5a,_0x2973b2,_0x30e82f,_0x4437c7){const _0x46e82f=new _0x41caec(this['locale']);return _0x46e82f[_0x49d5('0x13')]({'label':_0x196c5a,'icon':_0x2973b2,'tooltip':!0x0}),_0x46e82f['extendTemplate']({'attributes':{'class':_0x30e82f}}),_0x4437c7&&_0x46e82f[_0x49d5('0x26')](_0x49d5('0x0'))['to'](this,_0x4437c7),_0x46e82f;}}
|