@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.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/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x6956=['affectsData','_markInsertions','createUIElement','vid_end','isAtStart','schema','_makeModelFromViewString','getDomRoot','_getViewForChange','ck-editor__editable__overlay','high','wrap','maxOffset','getItems','bottom','markerName','elementEnd','previousPosition','span','_initInteractions','revision','comment','_joinTapes','change:activeView','changeId','uiElement','startsWith','editor','code','_getChangeFromId','parse','get','document','remove','diff','addMarker:revision','pop','changes','_removeUnsupportedChanges','children','revision-start','concat','addRevision','endIndex','addMarker:revision-suggestion:insertion','_setDistance','view','change:isEnabled','_activeViewTarget','dataToMarker','hasClass','ck-suggestion-marker-merge','has','removeClass','processor','object','isContent','enableReadOnlyMode','markersEnd','getCustomProperty','hasAttribute','deletion','flat','newRevisionId','removeAttribute','end','add','unshift','attributes','enqueueChange','_revisions','_findChangeIdFromDomTarget','attributesAfter','revisionHistoryAttachChange','insertion','distance','viewItem','stop','pairId','includes','vid_start','level','selection','string','_removeMissingPairs','ck-revision-history-root--active','checkAttribute','requires','toData','left','isObject','change:activeChange','backward','find','destroy','diffData','shift','_getDiff','activeView','merge','ck-suggestion-marker--active','_getRevisionsRange','push','mapper','authors','isSuggestion','_appendChild','getChild','isAttached','model','markerNameToElements','suggestion:','createPositionBefore','detachRoot','side','POSITIVE_INFINITY','_cleanMarkers','isRemoveSuggestion','observeMarkers','upcast','addClass','conversion','editing','insert','addHighlight','compare','bindElementToMarker','getAttributes','ck-suggestion-marker-','deletions','_markMarkers','insertions','consume','ck-suggestion-marker-split','done','_processTape','element','target','_fixObsoleteTags','mouseover','createRangeIn','set','nextPosition','element:pre','_changeIdToChange','execute','getIndex','then','refresh','plugins','resolve','isEnabled','unbindElementFromMarkerName','_step','isLimit','removeMarker','_changeView','addRoot','keys','ck-revision-history-root-add','consumable','createRange','vid','reconvertMarker','sort','map','attachChange','change:numberOfChanges','_markSuggestions','_data','getRootNames','_markMismatchedRemovedTags','_refreshStartEndIndex','revision-viewer','test','revision-suggestion:','collaboration.channelId','isRemoved','data','_sortAndFilterDiffChanges','findIndex','range','forward','dataDowncast','getRoot','useFillerType','abs','filter','_makeModelFromTape','isReady','ck-suggestion-preview-marker-','nodeAfter','pluginName','isEqual','index','revisionHistoryLabel','isAdded','activeChange','addRevisionData','markersStart','revision-suggestion','for','restoreRevisionCallback','ck-suggestion-preview-marker','getRevisionData','revision:','revision-end','getAttribute','oldRevisionId','nextSibling','rootName','editingDowncast','toViewElement','markers','splice','isAfter','change:isReady','next','item','RevisionsRepository','userId','loadRevisionData','change','forEach','isNavigationMode','getClientRects','values','highest','length','isAtEnd','createPositionFromPath','getWalker','writer','removeMarker:revision','config','locale','addMarker:revision-suggestion:deletion','modelRange','RevisionViewer','data-change-id','toViewPosition','_removeRevisionMarkers','isOnRoot','getRevision','repository','createRevision','_update','init','toModel','isBlock','type','_balloon','restoreRevision','removeMarker:revision-suggestion','return','domEvent','showPreviousChange','downcastDispatcher','elementStart','isIncorrect','delete','parent','isAddSuggestion','adapter','mousedown','bind','name','indexOf','split','from','listenTo','_makeTape','isBefore','commands','_threeWayMerge','_cleanUp','markerToHighlight','_getViewObj','setAttribute','markerRange','top','first','text','start','startIndex','low','-new'];(function(_0x4d09a3,_0x69563c){const _0x267beb=function(_0x45d053){while(--_0x45d053){_0x4d09a3['push'](_0x4d09a3['shift']());}};_0x267beb(++_0x69563c);}(_0x6956,0x1a7));const _0x267b=function(_0x4d09a3,_0x69563c){_0x4d09a3=_0x4d09a3-0x0;let _0x267beb=_0x6956[_0x4d09a3];return _0x267beb;};import{Plugin as _0xa80a6b,Command as _0x5a80bc}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1652f7}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4a6b9e}from'ckeditor5/src/ui';import{DocumentFragment as _0x1c11b1,Element as _0xed8376,Text as _0x3ac18b,ViewDocumentFragment as _0x117499,ViewText as _0x2aa88c,ViewElement as _0x20aae1,ViewContainerElement as _0x357f66,ViewAttributeElement as _0x5226dc,ViewEmptyElement as _0x3a1424,ViewRawElement as _0x4ff4e5,ViewUIElement as _0x5473a4}from'ckeditor5/src/engine';import{Users as _0xd46ddf,getMarkerDomElement as _0x2a84bb}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ad18f from'./ui/revisionviewer/changedetailsview';import _0x492079 from'./revisionsrepository';import _0x49afc5 from'./changeitem';import{default as _0x2b52d7}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x110515}from'lodash-es';const tt={'c':_0x357f66,'a':_0x5226dc,'e':_0x3a1424,'r':_0x4ff4e5,'u':_0x5473a4};export default class d extends _0xa80a6b{static get[_0x267b('0x38')](){return _0x267b('0x66');}static get[_0x267b('0xee')](){return[_0xd46ddf,_0x4a6b9e,_0x492079];}constructor(_0xc3aa5f){super(_0xc3aa5f),this[_0x267b('0x6c')]=this[_0x267b('0xb2')][_0x267b('0xd')][_0x267b('0xb6')](_0x267b('0x53')),this[_0x267b('0x5')](_0x267b('0x3d'),null),this['set'](_0x267b('0xf9'),null),this['_activeViewTarget']=null,this[_0x267b('0x5')]('diff',null),this['set']('isReady',!0x1),this[_0x267b('0x5')](_0x267b('0xf'),!0x0),this['on'](_0x267b('0xc6'),(_0x2fde82,_0x57968b,_0x315cb0)=>{this[_0x267b('0x3d')]=null,this[_0x267b('0xf9')]=null,this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')]['change'](_0x2de9fb=>{for(const _0x295686 of this['editor'][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0xb7')]['roots'])_0x315cb0?_0x2de9fb['removeClass'](_0x267b('0xa0'),_0x295686):_0x2de9fb[_0x267b('0x10f')](_0x267b('0xa0'),_0x295686);});}),this[_0x267b('0x81')](_0x267b('0x58'))['to'](this,_0x267b('0x3d'),_0xbb8e77=>null!==_0xbb8e77),this[_0x267b('0x81')]('currentChangeNumber')['to'](this,_0x267b('0x35'),this,_0x267b('0xb9'),this,'activeChange',(_0x4813b6,_0x5ad9b0,_0x1d8352)=>_0x4813b6&&_0x1d8352?_0x5ad9b0[_0x267b('0xbc')][_0x267b('0xa')](_0x1d8352):0x0),this['bind']('numberOfChanges')['to'](this,_0x267b('0x35'),this,'diff',(_0x49aec2,_0x5d1880)=>_0x49aec2?_0x5d1880[_0x267b('0xbc')][_0x267b('0x5c')]:0x0),this[_0x267b('0x14')]=null,this[_0x267b('0x8')]=new Map(),this['adapter']=null,this[_0x267b('0x73')]=this[_0x267b('0xb2')][_0x267b('0xd')][_0x267b('0xb6')](_0x4a6b9e);}[_0x267b('0x6f')](){const _0x176b86=this['editor'],_0x4c1b4d=new ShowChangeCommand(_0x176b86,{'direction':_0x267b('0xf3')}),_0x33e6df=new ShowChangeCommand(_0x176b86,{'direction':'forward'});(_0x176b86[_0x267b('0x89')][_0x267b('0xd9')](_0x267b('0x78'),_0x4c1b4d),_0x176b86['commands'][_0x267b('0xd9')]('showNextChange',_0x33e6df),_0x176b86['commands']['add'](_0x267b('0x74'),new RestoreRevisionCommand(_0x176b86)),this['on'](_0x267b('0x1f'),()=>{_0x4c1b4d[_0x267b('0xc')](),_0x33e6df['refresh']();}),this['_setConversion'](),this[_0x267b('0xaa')](),_0x176b86[_0x267b('0xd0')](_0x267b('0x25')),_0x176b86[_0x267b('0xd')][_0x267b('0xcb')]('WidgetToolbarRepository'))&&_0x176b86[_0x267b('0xd')]['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async[_0x267b('0x44')](_0x448dc5){await this[_0x267b('0x55')](_0x448dc5);const _0x724b34={};for(const _0x580998 in _0x448dc5['diffData']){if(_0x448dc5[_0x267b('0xf6')][_0x580998][_0x267b('0x1e')]&&!_0x448dc5[_0x267b('0xf6')][_0x580998]['attachChange']['isAttached'])continue;const _0x207f76=this[_0x267b('0x69')](JSON['parse'](_0x448dc5[_0x267b('0xf6')][_0x580998][_0x267b('0x11a')])),_0x159fb2=this[_0x267b('0xb2')]['editing'][_0x267b('0xc5')]['document'],_0x3b800e=new _0x117499(_0x159fb2,_0x207f76[_0x267b('0x1d')](_0x3a9b10=>this[_0x267b('0x8d')](_0x3a9b10)));this[_0x267b('0xb2')][_0x267b('0x2a')][_0x267b('0xcd')][_0x267b('0x31')]('marked'),_0x724b34[_0x580998]=this[_0x267b('0xb2')][_0x267b('0x2a')]['processor'][_0x267b('0xef')](_0x3b800e),this[_0x267b('0xb2')][_0x267b('0x2a')][_0x267b('0xcd')][_0x267b('0x31')]('default');}return _0x724b34;}async['getRevisionRootsAttributes'](_0x14df77){await this[_0x267b('0x55')](_0x14df77);const _0x318019={};for(const _0x53e52c in _0x14df77[_0x267b('0xf6')])_0x14df77[_0x267b('0xf6')][_0x53e52c][_0x267b('0x1e')]&&!_0x14df77[_0x267b('0xf6')][_0x53e52c][_0x267b('0x1e')][_0x267b('0x103')]||(_0x318019[_0x53e52c]=_0x14df77[_0x267b('0xf6')][_0x53e52c][_0x267b('0xdf')]||{});return _0x318019;}[_0x267b('0x69')](_0xaa524){return(_0xaa524=_0xaa524[_0x267b('0x33')](_0x5aadc5=>!_0x5aadc5['name']||_0x267b('0xbf')!==_0x5aadc5['name']&&_0x267b('0x46')!==_0x5aadc5[_0x267b('0x82')]))[_0x267b('0x57')](_0x41289b=>{_0x267b('0xea')!=typeof _0x41289b&&(_0x41289b[_0x267b('0xbe')]=this[_0x267b('0x69')](_0x41289b[_0x267b('0xbe')]),_0x41289b[_0x267b('0xdb')]=_0x41289b[_0x267b('0xdb')]['filter'](_0x4f2556=>!_0x4f2556[0x0][_0x267b('0xb1')]('data-revision-')));}),_0xaa524;}async[_0x267b('0x114')](_0x3a45d5,_0x4482de,_0x29d1e8=!0x1){if(!this[_0x267b('0xf')])return;const _0x1a067f=this[_0x267b('0xb9')],_0x52b911=this[_0x267b('0x6c')],_0x140f90=_0x267b('0xea')==typeof _0x3a45d5?_0x52b911[_0x267b('0x6b')](_0x3a45d5):_0x3a45d5,_0x142edd='string'==typeof _0x4482de?_0x52b911[_0x267b('0x6b')](_0x4482de):_0x4482de,_0x225720=_0x140f90['id'],_0x4c75aa=_0x142edd?_0x142edd['id']:null;if(!_0x29d1e8&&this[_0x267b('0xb9')]&&this[_0x267b('0xb9')][_0x267b('0xd6')]===_0x225720&&this[_0x267b('0xb9')][_0x267b('0x48')]===_0x4c75aa)return Promise['resolve']();this[_0x267b('0x35')]=!0x1,this[_0x267b('0xf9')]=null,this['activeChange']=null,this[_0x267b('0xb9')]=new _0x2b52d7(_0x225720,_0x4c75aa);const _0x32d2c4=this[_0x267b('0xfc')](_0x140f90,_0x142edd,!0x0)[_0x267b('0x1d')](_0x21f80e=>this[_0x267b('0x55')](_0x21f80e));return _0x32d2c4[_0x267b('0xfd')](new Promise(_0x187b0a=>{setTimeout(_0x187b0a,0x14);})),Promise['all'](_0x32d2c4)['then'](()=>{if(!this[_0x267b('0xf')])return;this['_cleanUp']();const _0x2bf6a2=this[_0x267b('0xf8')](_0x225720,_0x4c75aa);for(const _0x37a401 of _0x2bf6a2[_0x267b('0xbc')])this[_0x267b('0x8')][_0x267b('0x5')](_0x37a401['id'],_0x37a401);this[_0x267b('0xb2')][_0x267b('0x104')]['enqueueChange']({'isUndoable':!0x1},_0x2808c3=>{for(const _0x3c1f3b of this[_0x267b('0xb2')]['model'][_0x267b('0xb7')][_0x267b('0x22')]())_0x2808c3[_0x267b('0x108')](_0x3c1f3b);for(const _0x18de9c of Object['keys'](_0x2bf6a2[_0x267b('0x104')])){const _0x4fedd4=_0x2808c3[_0x267b('0x15')](_0x18de9c);for(const _0x278608 of Object[_0x267b('0x16')](_0x2bf6a2[_0x267b('0xdb')][_0x18de9c]))_0x2808c3[_0x267b('0x8e')](_0x278608,_0x2bf6a2[_0x267b('0xdb')][_0x18de9c][_0x278608],_0x4fedd4);_0x2808c3[_0x267b('0x112')](_0x2bf6a2[_0x267b('0x104')][_0x18de9c],_0x4fedd4,0x0);}}),this['diff']['_setChanges'](this[_0x267b('0x2b')](_0x2bf6a2['changes'])),this['isReady']=!0x0;})['catch'](_0x183a9b=>{console['error'](_0x183a9b),this[_0x267b('0x8b')](),_0x1a067f&&(this[_0x267b('0xb9')]=_0x1a067f),this[_0x267b('0x35')]=!0x0;});}[_0x267b('0x3e')](_0x4ca470,_0x47908c){const _0x5c8112=this[_0x267b('0x6c')][_0x267b('0x6d')](_0x4ca470);return _0x5c8112['on'](_0x267b('0x6e'),(_0xa18127,_0x4f3148,_0x2fd244)=>_0x47908c(_0x4f3148,_0x2fd244,_0x5c8112)),this[_0x267b('0x6c')][_0x267b('0xc1')](_0x5c8112),_0x5c8112;}[_0x267b('0x55')](_0x9a9aef){if(!_0x9a9aef||_0x9a9aef[_0x267b('0xf6')])return Promise[_0x267b('0xe')]();{const _0x2ef9a7=this['editor'][_0x267b('0x62')][_0x267b('0xb6')](_0x267b('0x28'));return this[_0x267b('0x7f')]['getRevision']({'channelId':_0x2ef9a7,'revisionId':_0x9a9aef['id']})[_0x267b('0xb')](_0x3af723=>{_0x9a9aef['_update']({'diffData':_0x3af723[_0x267b('0xf6')]},!0x0);});}}[_0x267b('0x8b')](){this[_0x267b('0x3d')]=null,this[_0x267b('0x10b')](),this['_changeView']&&this[_0x267b('0x14')]['destroy'](),this['_changeView']=null,this[_0x267b('0x8')]['clear'](),this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0xdc')]({'isUndoable':!0x1},_0x46aa7d=>{for(const _0x1f5daf of this[_0x267b('0xb2')][_0x267b('0x104')]['document'][_0x267b('0x22')]())_0x46aa7d[_0x267b('0x108')](_0x1f5daf);});}[_0x267b('0x2b')](_0x10ac35){const _0x3172bb=[],_0x119fa4=new Map();for(const _0x1e10af of this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0xb7')][_0x267b('0x22')]()){const _0x273530=this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0x9e')](_0x1e10af);if(!_0x273530)continue;const _0x55f91a=_0x273530[_0x267b('0x59')]()[_0x267b('0x52')](0x0);_0x55f91a&&(_0x3172bb[_0x267b('0xfd')](_0x1e10af),_0x119fa4[_0x267b('0x5')](_0x1e10af,_0x55f91a));}return _0x3172bb['sort']((_0x2c65f4,_0x361731)=>{const _0x5bc8c4=_0x119fa4[_0x267b('0xb6')](_0x2c65f4),_0x106b93=_0x119fa4[_0x267b('0xb6')](_0x361731);return _0x5bc8c4['y']-_0x106b93['y']||_0x5bc8c4['x']-_0x106b93['x'];}),(_0x10ac35=_0x10ac35[_0x267b('0x33')](_0xf229c8=>_0x3172bb[_0x267b('0xe6')](_0xf229c8[_0x267b('0x4a')])))[_0x267b('0x1c')]((_0x5b53db,_0x396793)=>_0x3172bb['indexOf'](_0x5b53db['rootName'])-_0x3172bb[_0x267b('0x83')](_0x396793[_0x267b('0x4a')])),_0x10ac35;}[_0x267b('0x87')](_0x34aedd){const _0x2afb06=Array[_0x267b('0x85')](_0x34aedd[_0x267b('0x4d')])[_0x267b('0x33')](([_0x12b153,_0x181b17])=>_0x12b153[_0x267b('0xb1')](_0x267b('0x45'))&&!_0x181b17['isCollapsed']),_0x33d500=Array[_0x267b('0x85')](this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x4')](_0x34aedd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2afb06[_0x267b('0x5c')])for(const _0x54f05e of _0x33d500){const [_0x30ac34,_0x4df397]=_0x2afb06[0x0],[,_0x1c8169,_0x5ddbdb]=_0x30ac34[_0x267b('0x84')](':');if(_0x4df397[_0x267b('0xd8')][_0x267b('0x39')](_0x54f05e[_0x267b('0x6')])&&_0x2afb06[_0x267b('0xf7')](),(_0x54f05e[_0x267b('0xa8')][_0x267b('0x39')](_0x4df397['start'])||_0x54f05e[_0x267b('0xa8')][_0x267b('0x4f')](_0x4df397[_0x267b('0x93')]))&&(_0x267b('0xe1')==_0x1c8169?_0x54f05e['isAdded']={'userId':_0x5ddbdb}:'deletion'==_0x1c8169&&(_0x54f05e[_0x267b('0x29')]={'userId':_0x5ddbdb})),0x0==_0x2afb06[_0x267b('0x5c')])break;}return _0x33d500;}[_0x267b('0x24')](_0x39b20c){const _0x1c281e=new Map();for(let _0x38a0ba=0x0;_0x38a0ba<_0x39b20c[_0x267b('0x5c')];_0x38a0ba++)_0x267b('0x92')===_0x39b20c[_0x38a0ba][_0x267b('0x72')]?(_0x39b20c[_0x38a0ba][_0x267b('0x52')][_0x267b('0x94')]=_0x38a0ba,_0x39b20c[_0x38a0ba][_0x267b('0x52')]['endIndex']=_0x38a0ba):(_0x267b('0x7a')===_0x39b20c[_0x38a0ba][_0x267b('0x72')]?_0x39b20c[_0x38a0ba][_0x267b('0x52')][_0x267b('0x94')]=_0x38a0ba:'elementEnd'===_0x39b20c[_0x38a0ba][_0x267b('0x72')]&&(_0x39b20c[_0x38a0ba][_0x267b('0x52')][_0x267b('0xc2')]=_0x38a0ba),_0x1c281e[_0x267b('0x5')](_0x39b20c[_0x38a0ba]['id'],_0x38a0ba));for(const _0x227742 of _0x1c281e[_0x267b('0x5a')]())_0x267b('0x7a')===_0x39b20c[_0x227742]['type']?_0x39b20c[_0x227742][_0x267b('0x52')][_0x267b('0xc2')]=_0x1c281e[_0x267b('0xb6')](_0x39b20c[_0x227742][_0x267b('0xe5')]):_0x267b('0xa7')===_0x39b20c[_0x227742][_0x267b('0x72')]&&(_0x39b20c[_0x227742][_0x267b('0x52')][_0x267b('0x94')]=_0x1c281e['get'](_0x39b20c[_0x227742][_0x267b('0xe5')]));}[_0x267b('0x11e')](_0x1ef287){for(let _0x5c8105=0x0;_0x5c8105<_0x1ef287[_0x267b('0x5c')];_0x5c8105++){if(_0x267b('0x7a')===_0x1ef287[_0x5c8105][_0x267b('0x72')])_0x1ef287[_0x5c8105]['item'][_0x267b('0x94')]=_0x5c8105;else{if(_0x267b('0xa7')===_0x1ef287[_0x5c8105][_0x267b('0x72')]){_0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0xc2')]=_0x5c8105;const _0x152470=_0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0x94')];_0x1ef287[_0x152470][_0x267b('0xe5')]=_0x1ef287[_0x5c8105]['id'],_0x1ef287[_0x5c8105]['pairId']=_0x1ef287[_0x152470]['id'];}else _0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0x94')]=_0x5c8105,_0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0xc2')]=_0x5c8105,_0x1ef287[_0x5c8105][_0x267b('0xe5')]=null;}_0x1ef287[_0x5c8105][_0x267b('0x3f')]||(_0x1ef287[_0x5c8105][_0x267b('0x3f')]=[],_0x1ef287[_0x5c8105][_0x267b('0xd1')]=[]);}}[_0x267b('0x98')](_0x495011,_0x44e9dc){const _0x1b8b78=_0x495011[_0x267b('0x33')](_0x52d4c2=>!_0x52d4c2[_0x267b('0x3c')]);for(let _0x18d8a4=0x0;_0x18d8a4<_0x44e9dc[_0x267b('0x5c')];_0x18d8a4++)_0x44e9dc[_0x18d8a4][_0x267b('0x3c')]&&(_0x1b8b78[_0x18d8a4][_0x267b('0x3c')]=_0x44e9dc[_0x18d8a4][_0x267b('0x3c')]);}[_0x267b('0x9d')](_0x3b60cd){const _0x198a43=JSON[_0x267b('0xb5')](_0x3b60cd),_0x4f556b=this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0xb7')],_0x14819f=new _0x117499(_0x4f556b,_0x198a43[_0x267b('0x1d')](_0x42f01a=>this['_getViewObj'](_0x42f01a)));return this[_0x267b('0xb2')][_0x267b('0x2a')][_0x267b('0x70')](_0x14819f);}[_0x267b('0x8d')](_0x5c7ff5){const _0x4b56f4=this[_0x267b('0xb2')][_0x267b('0x111')]['view'][_0x267b('0xb7')];if(_0x267b('0xea')==typeof _0x5c7ff5)return new _0x2aa88c(_0x4b56f4,_0x5c7ff5);{const _0x1125fa=_0x5c7ff5[_0x267b('0xbe')][_0x267b('0x1d')](_0x1fb9d2=>this[_0x267b('0x8d')](_0x1fb9d2));return new(tt[_0x5c7ff5[(_0x267b('0x72'))]]||_0x20aae1)(_0x4b56f4,_0x5c7ff5['name'],_0x5c7ff5[_0x267b('0xdb')],_0x1125fa);}}['_getDiff'](_0x43b347,_0x318141=null){const _0x1bdb35=this[_0x267b('0x6c')][_0x267b('0x6b')](_0x43b347),_0x2be058=_0x318141?this[_0x267b('0x6c')][_0x267b('0x6b')](_0x318141):null,_0x464baf=this['_getRevisionsRange'](_0x1bdb35,_0x2be058),_0x2c58a6=_0x464baf[_0x464baf['length']-0x1],_0x5dad88=new Map(),_0x248536={'model':{},'attributes':{},'changes':[]},_0x5e99c7=new Set(),_0x37f150=new Map();for(let _0x2d51be=_0x464baf['length']-0x1;_0x2d51be>=0x0;_0x2d51be--){const _0x13a257=_0x464baf[_0x2d51be];for(const _0x1a3734 of Object['keys'](_0x13a257['diffData']))if(_0x13a257[_0x267b('0xf6')][_0x1a3734][_0x267b('0x1e')]){const _0x1fcff2=_0x13a257[_0x267b('0xf6')][_0x1a3734][_0x267b('0x1e')];_0x1fcff2[_0x267b('0x103')]?(_0x5e99c7[_0x267b('0xd9')](_0x1a3734),_0x37f150[_0x267b('0xcb')](_0x1a3734)&&_0x37f150[_0x267b('0xb6')](_0x1a3734)[_0x267b('0x54')]==_0x1fcff2['userId']?_0x37f150[_0x267b('0x7c')](_0x1a3734):_0x37f150[_0x267b('0x5')](_0x1a3734,_0x1fcff2)):_0x37f150[_0x267b('0xcb')](_0x1a3734)?(_0x5e99c7[_0x267b('0x7c')](_0x1a3734),_0x37f150[_0x267b('0x7c')](_0x1a3734)):(_0x5e99c7[_0x267b('0xd9')](_0x1a3734),_0x37f150[_0x267b('0x5')](_0x1a3734,_0x1fcff2));}else _0x5e99c7[_0x267b('0xd9')](_0x1a3734);}for(const _0x3905bc of _0x5e99c7){const _0x3992c3=_0x37f150[_0x267b('0xcb')](_0x3905bc)&&!_0x37f150[_0x267b('0xb6')](_0x3905bc)[_0x267b('0x103')];let _0x18bd69=_0x3992c3?_0x464baf[_0x267b('0x5c')]-0x1:0x0;const _0x213908=_0x3992c3?-0x1:0x1;for(;_0x464baf[_0x18bd69];){const _0x32c4dc=_0x464baf[_0x18bd69];if(_0x32c4dc[_0x267b('0xf6')][_0x3905bc]){const _0x2c1f8c=_0x3992c3?_0x32c4dc[_0x267b('0xf6')][_0x3905bc]['attributesBefore']:_0x32c4dc[_0x267b('0xf6')][_0x3905bc]['attributesAfter'];_0x248536[_0x267b('0xdb')][_0x3905bc]=_0x2c1f8c?_0x110515(_0x2c1f8c):{};break;}_0x18bd69+=_0x213908;}}for(const _0x5a26c7 of _0x464baf){_0x5a26c7[_0x267b('0x104')]={};for(const _0x3e6d18 of _0x5a26c7[_0x267b('0xff')])_0x5dad88['set'](_0x3e6d18['id'],_0x3e6d18);for(const _0x468792 of _0x5e99c7){const _0x4595d4=_0x5a26c7[_0x267b('0xf6')][_0x468792]?_0x5a26c7[_0x267b('0xf6')][_0x468792]['insertions']:'[]',_0x14906f=_0x5a26c7[_0x267b('0xf6')][_0x468792]?_0x5a26c7[_0x267b('0xf6')][_0x468792][_0x267b('0x118')]:'[]';_0x5a26c7[_0x267b('0x104')][_0x468792]={'insertions':this['_makeModelFromViewString'](_0x4595d4),'deletions':this['_makeModelFromViewString'](_0x14906f)};}}for(const _0x1ade2b of _0x5e99c7){let _0x428b2e=null,_0x4bf4e9=0x0;const _0x33f59f=new Map(Array[_0x267b('0x85')](_0x1bdb35[_0x267b('0x104')][_0x1ade2b][_0x267b('0x11a')]['markers'])['filter'](([_0x55b8d1])=>!_0x55b8d1[_0x267b('0xb1')]('revision:')));let _0x1ec373=0x0;for(const _0x11d3dc of _0x464baf){const _0xc17588=this[_0x267b('0x87')](_0x11d3dc[_0x267b('0x104')][_0x1ade2b][_0x267b('0x11a')]);_0x11d3dc==_0x1bdb35?(_0x428b2e=_0xc17588,_0x4bf4e9=_0x428b2e[_0x267b('0x5c')],_0x428b2e[_0x267b('0x57')](_0x504646=>{_0x504646['id']=_0x1ec373++;}),this['_processTape'](_0x428b2e)):this['_markInsertions'](_0x428b2e,_0xc17588);const _0x442db3=_0x428b2e[_0x267b('0x33')](_0x9bcbe4=>!_0x9bcbe4[_0x267b('0x3c')])[_0x267b('0x1d')](_0x593ed8=>_0x593ed8['id']);let _0x4d9eb4=0x0;const _0x37c8aa=this[_0x267b('0x87')](_0x11d3dc['model'][_0x1ade2b][_0x267b('0x118')]);_0x37c8aa[_0x267b('0x57')](_0x113d71=>{_0x113d71[_0x267b('0x29')]?_0x113d71['id']=_0x4bf4e9++:_0x113d71['id']=_0x442db3[_0x4d9eb4++];}),this['_processTape'](_0x37c8aa),this[_0x267b('0xc4')](_0x428b2e,'isAdded'),this[_0x267b('0xc4')](_0x37c8aa,'isRemoved'),_0x11d3dc==_0x1bdb35&&this[_0x267b('0x119')](_0x428b2e,_0x33f59f),_0x428b2e=this[_0x267b('0xad')](_0x428b2e,_0x37c8aa),this[_0x267b('0x24')](_0x428b2e),this['_setDistance'](_0x428b2e,_0x267b('0x29'));}_0x428b2e=_0x428b2e[_0x267b('0x33')](_0x5d69a7=>!(_0x5d69a7[_0x267b('0x3c')]&&_0x5d69a7[_0x267b('0x29')]));const _0x487cc2=new Map(_0x2c58a6[_0x267b('0x104')][_0x1ade2b][_0x267b('0x118')]['markers']),_0x3f4893=new Set(_0x33f59f['keys']());for(const _0x45d6c7 of _0x487cc2['keys']())_0x3f4893[_0x267b('0x7c')](_0x45d6c7);this[_0x267b('0x20')](_0x428b2e,_0x3f4893),this[_0x267b('0x2')](_0x428b2e),_0x428b2e=this[_0x267b('0xeb')](_0x428b2e),_0x428b2e=this[_0x267b('0x23')](_0x428b2e),_0x428b2e=this[_0x267b('0xbd')](_0x428b2e);const {root:_0x10f98a,changes:_0x2340ec}=this[_0x267b('0x34')](_0x428b2e,_0x5dad88,_0x1ade2b);_0x248536[_0x267b('0x104')][_0x1ade2b]=_0x10f98a;const _0x837dbd=_0x37f150[_0x267b('0xb6')](_0x1ade2b);if(_0x837dbd){const _0x51ada7=_0x5dad88[_0x267b('0xb6')](_0x837dbd[_0x267b('0x54')]),_0x17316e=new _0x49afc5({'author':_0x51ada7,'type':_0x837dbd['isAttached']?_0x267b('0xd9'):_0x267b('0xb8'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1ade2b});_0x2340ec['unshift'](_0x17316e),_0x248536[_0x267b('0xdb')][_0x1ade2b][_0x267b('0xe0')]=_0x17316e['id'];}_0x248536[_0x267b('0xbc')]=_0x248536['changes'][_0x267b('0xc0')](_0x2340ec);}return _0x248536;}[_0x267b('0x119')](_0x10a48d,_0x265dc2){for(let _0x9808f=0x0;_0x9808f<_0x10a48d[_0x267b('0x5c')];_0x9808f++)for(const [_0x42783c,_0x58f537]of _0x265dc2)_0x58f537[_0x267b('0x93')][_0x267b('0x39')](_0x10a48d[_0x9808f][_0x267b('0xa8')])&&_0x10a48d[_0x9808f][_0x267b('0x3f')][_0x267b('0xfd')](_0x42783c),_0x58f537[_0x267b('0xd8')][_0x267b('0x39')](_0x10a48d[_0x9808f][_0x267b('0x6')])&&_0x10a48d[_0x9808f]['markersEnd'][_0x267b('0xfd')](_0x42783c);}[_0x267b('0xad')](_0x148778,_0x135ff3){let _0xf03df7=[],_0x271130=0x0,_0x46feb5=0x0;for(;_0x271130<_0x148778['length']||_0x46feb5<_0x135ff3[_0x267b('0x5c')];){const _0x2efc35=_0x148778[_0x271130]||{},_0x116bbe=_0x135ff3[_0x46feb5]||{};if(_0x2efc35['id']==_0x116bbe['id'])_0x271130++,_0x46feb5++,_0xf03df7[_0x267b('0xfd')](_0x2efc35);else{if(_0x116bbe[_0x267b('0x29')]&&_0x2efc35['isAdded']){const {commonTape:_0x42ba52,iEnd:_0x30a623,jEnd:_0x18b1a5}=this['_threeWayMerge'](_0x148778,_0x271130,_0x135ff3,_0x46feb5);_0xf03df7=_0xf03df7['concat'](_0x42ba52),_0x271130=_0x30a623,_0x46feb5=_0x18b1a5;}else _0x116bbe['isRemoved']?(_0x46feb5++,_0xf03df7[_0x267b('0xfd')](_0x116bbe)):(_0x271130++,_0xf03df7[_0x267b('0xfd')](_0x2efc35));}}return _0xf03df7;}['_markSuggestions'](_0x846d4f,_0xbdd470){const _0x376932=[];for(let _0x30a611=0x0;_0x30a611<_0x846d4f[_0x267b('0x5c')];_0x30a611++){for(let _0x77b9d1=0x0;_0x77b9d1<_0x846d4f[_0x30a611][_0x267b('0x3f')][_0x267b('0x5c')];_0x77b9d1++){const _0x5e602d=_0x846d4f[_0x30a611][_0x267b('0x3f')][_0x77b9d1];if(!_0xbdd470[_0x267b('0xcb')](_0x5e602d))continue;const {group:_0x1ac207,type:_0x22b82e,authorId:_0x1ae529}=_0x4341d4(_0x5e602d);'revision-suggestion'!=_0x1ac207||_0x267b('0xe1')!=_0x22b82e&&_0x267b('0xd4')!=_0x22b82e||(_0x376932[_0x267b('0xda')]({'type':_0x22b82e,'name':_0x5e602d,'userId':_0x1ae529}),_0x846d4f[_0x30a611][_0x267b('0x3f')][_0x267b('0x4e')](_0x77b9d1,0x1),_0x77b9d1--);}_0x2d2840(_0x846d4f[_0x30a611]);for(let _0x1e4972=0x0;_0x1e4972<_0x846d4f[_0x30a611][_0x267b('0xd1')][_0x267b('0x5c')];_0x1e4972++){const _0x425c01=_0x846d4f[_0x30a611][_0x267b('0xd1')][_0x1e4972];if(!_0xbdd470[_0x267b('0xcb')](_0x425c01))continue;const {group:_0x210a48,type:_0x3c5eee}=_0x4341d4(_0x425c01);if(_0x267b('0x40')!=_0x210a48||'insertion'!=_0x3c5eee&&_0x267b('0xd4')!=_0x3c5eee)continue;_0x846d4f[_0x30a611]['markersEnd']['splice'](_0x1e4972,0x1),_0x1e4972--;const _0x22c5c9=_0x376932[_0x267b('0x2c')](_0x2aefe5=>_0x2aefe5[_0x267b('0x82')]==_0x425c01);_0x22c5c9>-0x1&&_0x376932[_0x267b('0x4e')](_0x22c5c9,0x1);}}function _0x4341d4(_0x3e5132){const _0x1ab7ff=_0x3e5132[_0x267b('0x84')](':');return{'group':_0x1ab7ff[0x0],'type':_0x1ab7ff[0x1],'subType':_0x1ab7ff[_0x267b('0x5c')]>=0x5?_0x1ab7ff[0x2]:null,'id':_0x1ab7ff['length']<0x5?_0x1ab7ff[0x2]:_0x1ab7ff[0x3],'authorId':_0x1ab7ff[_0x267b('0x5c')]<0x5?_0x1ab7ff[0x3]:_0x1ab7ff[0x4],'markerCount':0x6==_0x1ab7ff[_0x267b('0x5c')]?_0x1ab7ff[0x5]:null};}function _0x2d2840(_0x456537){for(let _0xd93781=0x0;_0xd93781<_0x376932[_0x267b('0x5c')];_0xd93781++){if(_0x456537[_0x267b('0x3c')]&&_0x267b('0xe1')==_0x376932[_0xd93781][_0x267b('0x72')])return _0x456537[_0x267b('0x7e')]=_0x376932[_0xd93781],void delete _0x456537[_0x267b('0x3c')];if(!_0x456537['isAdded']&&!_0x456537['isRemoved']&&'deletion'==_0x376932[_0xd93781][_0x267b('0x72')])return void(_0x456537[_0x267b('0x10c')]=_0x376932[_0xd93781]);}}}['_setDistance'](_0x25f694,_0x4159b3){let _0xf914d1=0x0,_0x1eb19a=!0x1;const _0x3c06c9=new Map();for(const _0x2a6353 of _0x25f694)_0x2a6353[_0x4159b3]?_0x1eb19a&&(_0xf914d1++,_0x1eb19a=!0x1):(_0xf914d1++,_0x1eb19a=!0x0),_0x3c06c9[_0x267b('0x5')](_0x2a6353['id'],_0xf914d1);for(let _0x261d42=0x0;_0x261d42<_0x25f694['length'];_0x261d42++){if(_0x267b('0x29')==_0x4159b3&&_0x25f694[_0x261d42][_0x267b('0x3c')]||_0x267b('0x3c')==_0x4159b3&&_0x25f694[_0x261d42][_0x267b('0x29')])continue;if('text'==_0x25f694[_0x261d42][_0x267b('0x72')]){_0x25f694[_0x261d42][_0x267b('0xe2')]=0x0;continue;}const _0x2ad405=_0x3c06c9[_0x267b('0xb6')](_0x25f694[_0x261d42]['pairId']),_0x165e03=_0x3c06c9[_0x267b('0xb6')](_0x25f694[_0x261d42]['id']);_0x25f694[_0x261d42]['distance']=_0x2ad405-_0x165e03;}}['_getRevisionsRange'](_0xc7c711,_0x3a8562,_0x2728d0=!0x1){const _0x3ce8b8=[];let _0x142b5f=this[_0x267b('0x6c')]['getIndex'](_0xc7c711),_0x2ec5f1=this[_0x267b('0x6c')][_0x267b('0xa')](_0x3a8562);for(-0x1==_0x2ec5f1&&(_0x2ec5f1=this[_0x267b('0x6c')][_0x267b('0xdd')][_0x267b('0x5c')],_0x2728d0=!0x1);_0x142b5f<_0x2ec5f1;)_0x3ce8b8[_0x267b('0xfd')](this['repository'][_0x267b('0x6b')](_0x142b5f)),_0x142b5f++;return _0x2728d0&&_0x3ce8b8[_0x267b('0xfd')](this['repository'][_0x267b('0x6b')](_0x142b5f)),_0x3ce8b8;}[_0x267b('0x8a')](_0x3e2caf,_0x1bbc1a,_0xf507c1,_0x193caa){const _0x5a0c47=this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x9c')];let _0x2821e6=_0x1bbc1a;for(;_0x3e2caf[_0x2821e6]&&_0x3e2caf[_0x2821e6][_0x267b('0x3c')];)_0x2821e6++;let _0x110690=_0x193caa;for(;_0xf507c1[_0x110690]&&_0xf507c1[_0x110690][_0x267b('0x29')];)_0x110690++;_0x399166(_0x3e2caf,_0x1bbc1a,_0x2821e6),_0x399166(_0xf507c1,_0x193caa,_0x110690);const _0x299003=_0xf507c1['slice'](_0x193caa,_0x110690)['concat'](_0x3e2caf['slice'](_0x1bbc1a,_0x2821e6));return _0x299003[_0x267b('0x1c')]((_0x293bd2,_0x128311)=>_0x293bd2['side']!=_0x128311[_0x267b('0x109')]?_0x293bd2[_0x267b('0x109')]-_0x128311['side']:_0x293bd2[_0x267b('0xe8')]!=_0x128311[_0x267b('0xe8')]?_0x293bd2[_0x267b('0xe8')]-_0x128311[_0x267b('0xe8')]:_0x293bd2[_0x267b('0xe2')]!=_0x128311['distance']?_0x128311['distance']-_0x293bd2[_0x267b('0xe2')]:!!_0x293bd2[_0x267b('0x3c')]!=!!_0x128311[_0x267b('0x3c')]?-0x1==_0x293bd2['side']||0x0==_0x293bd2['side']?_0x293bd2[_0x267b('0x3c')]?-0x1:0x1:_0x293bd2[_0x267b('0x3c')]?0x1:-0x1:_0x293bd2['index']-_0x128311[_0x267b('0x3a')]),{'commonTape':_0x299003,'iEnd':_0x2821e6,'jEnd':_0x110690};function _0x399166(_0x57bfdb,_0x53a38b,_0x4d66a8){let _0x4a1c67=-0x1,_0x2593fd=Number[_0x267b('0x10a')],_0x59d826=!0x0;for(let _0x36cb3d=_0x53a38b;_0x36cb3d<_0x4d66a8;_0x36cb3d++)if(_0x5a0c47['isInline'](_0x57bfdb[_0x36cb3d][_0x267b('0x52')])||(_0x59d826=!0x1),_0x57bfdb[_0x36cb3d]['item'][_0x267b('0x94')]<_0x53a38b&&(_0x4a1c67=_0x36cb3d),_0x57bfdb[_0x36cb3d][_0x267b('0x52')][_0x267b('0xc2')]>=_0x4d66a8){_0x2593fd=_0x36cb3d;break;}_0x59d826&&(_0x4a1c67=_0x4d66a8-0x1);for(let _0x25ed1f=_0x53a38b;_0x25ed1f<_0x4d66a8;_0x25ed1f++)_0x57bfdb[_0x25ed1f][_0x267b('0x109')]=_0x25ed1f<=_0x4a1c67?-0x1:_0x25ed1f<_0x2593fd?0x0:0x1,_0x57bfdb[_0x25ed1f][_0x267b('0x3a')]=_0x25ed1f;let _0x1ed429=0x0;for(let _0x3dbd25=_0x53a38b;_0x3dbd25<=_0x4a1c67;_0x3dbd25++)0x0==_0x57bfdb[_0x3dbd25][_0x267b('0xe2')]?_0x57bfdb[_0x3dbd25][_0x267b('0xe8')]=_0x1ed429:(_0x1ed429++,_0x57bfdb[_0x3dbd25][_0x267b('0xe8')]=_0x1ed429,_0x1ed429++);for(let _0x3e4ea9=_0x53a38b;_0x3e4ea9<_0x4d66a8;_0x3e4ea9++)0x0==_0x57bfdb[_0x3e4ea9][_0x267b('0x109')]&&(_0x57bfdb[_0x3e4ea9][_0x267b('0xe8')]=_0x1ed429);_0x1ed429=0x0;for(let _0x363c75=_0x4d66a8-0x1;_0x363c75>=_0x2593fd;_0x363c75--)0x0==_0x57bfdb[_0x363c75][_0x267b('0xe2')]?_0x57bfdb[_0x363c75][_0x267b('0xe8')]=_0x1ed429:(_0x1ed429--,_0x57bfdb[_0x363c75][_0x267b('0xe8')]=_0x1ed429,_0x1ed429--);}}[_0x267b('0x2')](_0x5e7606){const _0x5b9697=new Map(),_0x2ee3e9=this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x9c')];for(let _0x5a620b=0x1;_0x5a620b<_0x5e7606[_0x267b('0x5c')];_0x5a620b++){let _0x1c6d93,_0x36a8bf,_0x5efcae;const _0x5efc33=_0x5e7606[_0x5a620b],_0x32c1b8=_0x5e7606[_0x5a620b-0x1];if('text'==_0x5efc33[_0x267b('0x72')])continue;if(_0x5efc33[_0x267b('0x72')]!=_0x32c1b8[_0x267b('0x72')])continue;if(!_0x2ee3e9[_0x267b('0x71')](_0x32c1b8[_0x267b('0x52')])||_0x2ee3e9[_0x267b('0x12')](_0x32c1b8[_0x267b('0x52')]))continue;if(!_0x2ee3e9['isBlock'](_0x5efc33['item'])||_0x2ee3e9[_0x267b('0x12')](_0x5efc33['item']))continue;if((_0x5e7606[_0x5a620b][_0x267b('0x3c')]||_0x5e7606[_0x5a620b]['isAddSuggestion'])&&_0x5e7606[_0x5a620b-0x1]['isRemoved'])_0x1c6d93=_0x5e7606[_0x5a620b],_0x36a8bf=_0x5e7606[_0x5a620b-0x1],_0x5efcae=_0x5a620b-0x1;else{if(!_0x5e7606[_0x5a620b][_0x267b('0x29')]||!_0x5e7606[_0x5a620b-0x1][_0x267b('0x3c')]&&!_0x5e7606[_0x5a620b-0x1]['isAddSuggestion'])continue;_0x1c6d93=_0x5e7606[_0x5a620b-0x1],_0x36a8bf=_0x5e7606[_0x5a620b],_0x5efcae=_0x5a620b;}const _0xf58d91=_0x1c6d93[_0x267b('0xe8')]==_0x36a8bf['level'],_0x3c924a=Math['abs'](_0x1c6d93['level'])<Math[_0x267b('0x32')](_0x36a8bf[_0x267b('0xe8')])&&0x0==_0x36a8bf[_0x267b('0xe2')];(_0xf58d91||_0x3c924a)&&(_0x5b9697[_0x267b('0x5')](_0x36a8bf['id'],_0x1c6d93['id']),_0x5e7606[_0x267b('0x4e')](_0x5efcae,0x1),_0x5a620b--,_0x1c6d93[_0x267b('0x3c')]=!0x1);}for(let _0xc03e06=0x0;_0xc03e06<_0x5e7606[_0x267b('0x5c')];_0xc03e06++)_0x5b9697['has'](_0x5e7606[_0xc03e06]['pairId'])&&(_0x5e7606[_0xc03e06][_0x267b('0xe5')]=_0x5b9697[_0x267b('0xb6')](_0x5e7606[_0xc03e06][_0x267b('0xe5')]));}[_0x267b('0xeb')](_0x136850){const _0x5c8989=new Set(_0x136850[_0x267b('0x1d')](_0x402849=>_0x402849['id']));for(let _0x4955cb=0x0;_0x4955cb<_0x136850[_0x267b('0x5c')];_0x4955cb++)_0x5c8989[_0x267b('0xcb')](_0x136850[_0x4955cb][_0x267b('0xe5')])||0x0==_0x136850[_0x4955cb][_0x267b('0xe2')]||(_0x136850[_0x4955cb][_0x267b('0x7b')]=!0x0);return _0x136850[_0x267b('0x33')](_0x285420=>!_0x285420[_0x267b('0x7b')]);}[_0x267b('0x23')](_0x57657d){const _0x506ffb=new Set();for(let _0x1e9baf=0x0;_0x1e9baf<_0x57657d[_0x267b('0x5c')];_0x1e9baf++){if(_0x506ffb['has'](_0x57657d[_0x1e9baf]['id'])&&_0x57657d[_0x1e9baf][_0x267b('0x29')]&&(_0x57657d[_0x1e9baf][_0x267b('0x7b')]=!0x0),_0x57657d[_0x1e9baf]['isIncorrect'])continue;if(0x0==_0x57657d[_0x1e9baf]['distance'])continue;if('elementStart'!=_0x57657d[_0x1e9baf][_0x267b('0x72')])continue;if(null==_0x57657d[_0x1e9baf][_0x267b('0xe5')])continue;let _0x56ff67=_0x1e9baf+0x1,_0x280415=0x0;for(;_0x57657d[_0x56ff67]['id']!=_0x57657d[_0x1e9baf][_0x267b('0xe5')];)_0x267b('0x7a')==_0x57657d[_0x56ff67][_0x267b('0x72')]?_0x280415++:_0x267b('0xa7')==_0x57657d[_0x56ff67][_0x267b('0x72')]&&_0x280415--,_0x56ff67++;if(0x0!=_0x280415){if(_0x57657d[_0x1e9baf][_0x267b('0x29')])_0x57657d[_0x1e9baf][_0x267b('0x7b')]=!0x0;else for(;_0x56ff67!=_0x1e9baf;)_0x57657d[_0x56ff67][_0x267b('0x29')]&&0x0!=_0x57657d[_0x56ff67][_0x267b('0xe2')]&&(_0x57657d[_0x56ff67]['isIncorrect']=!0x0,_0x506ffb[_0x267b('0xd9')](_0x57657d[_0x56ff67]['pairId'])),_0x56ff67--;}}return _0x57657d[_0x267b('0x33')](_0x2f7e18=>!_0x2f7e18[_0x267b('0x7b')]);}[_0x267b('0xbd')](_0x57e7f4){const _0x58c91c=this[_0x267b('0xb2')][_0x267b('0x104')]['schema'];for(let _0x1d53fb=0x0;_0x1d53fb<_0x57e7f4[_0x267b('0x5c')];_0x1d53fb++){if(!(_0x57e7f4[_0x1d53fb][_0x267b('0x3c')]||_0x57e7f4[_0x1d53fb][_0x267b('0x7e')]||_0x57e7f4[_0x1d53fb][_0x267b('0x29')]||_0x57e7f4[_0x1d53fb][_0x267b('0x10c')]))continue;if(0x0==_0x57e7f4[_0x1d53fb][_0x267b('0xe2')])continue;const _0x15a7c9=_0x57e7f4[_0x1d53fb][_0x267b('0x52')];_0x58c91c[_0x267b('0x71')](_0x15a7c9)||_0x58c91c[_0x267b('0x12')](_0x15a7c9)||(_0x57e7f4[_0x1d53fb][_0x267b('0x3c')]&&delete _0x57e7f4[_0x1d53fb][_0x267b('0x3c')],_0x57e7f4[_0x1d53fb][_0x267b('0x7e')]&&delete _0x57e7f4[_0x1d53fb][_0x267b('0x7e')],_0x57e7f4[_0x1d53fb][_0x267b('0x10c')]&&delete _0x57e7f4[_0x1d53fb]['isRemoveSuggestion'],_0x57e7f4[_0x1d53fb][_0x267b('0x29')]&&(_0x57e7f4[_0x1d53fb][_0x267b('0x7b')]=!0x0));}return _0x57e7f4[_0x267b('0x33')](_0x71ab06=>!_0x71ab06['isIncorrect']);}['_makeModelFromTape'](_0x245035,_0x1e66fd,_0x2f5be9){const _0x50f834=new _0x1c11b1(),_0x332618=[],_0x27bf99=new Map(),_0x177ff5=this[_0x267b('0xb2')][_0x267b('0x104')],_0x5e4a77=_0x177ff5[_0x267b('0x9c')],_0x2b5740=[_0x50f834],_0x212c6f={},_0x2263f3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x288fe3=null;const _0xe9267a=[0x0];for(let _0xe8f702=0x0;_0xe8f702<_0x245035[_0x267b('0x5c')];_0xe8f702++){let _0x749f9a,_0x3a9dc2;if(_0x267b('0x7a')===_0x245035[_0xe8f702][_0x267b('0x72')]){_0x749f9a=_0x177ff5['createPositionFromPath'](_0x50f834,_0xe9267a);const _0x52be82=new _0xed8376(_0x245035[_0xe8f702]['item']['name'],_0x245035[_0xe8f702][_0x267b('0x52')]['getAttributes']());_0x2b5740[0x0][_0x267b('0x101')](_0x52be82),_0xe9267a[_0x267b('0xfd')](0x0),_0x2b5740['unshift'](_0x52be82),_0x3a9dc2=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0x288fe3=null;}else{if(_0x267b('0xa7')===_0x245035[_0xe8f702][_0x267b('0x72')])_0x2b5740[_0x267b('0xf7')](),_0x749f9a=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0xe9267a[_0x267b('0xbb')](),_0xe9267a[_0xe9267a[_0x267b('0x5c')]-0x1]++,_0x3a9dc2=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0x288fe3=null;else{if(_0x749f9a=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0x288fe3&&_0x275c2f(_0x288fe3,_0x245035[_0xe8f702][_0x267b('0x52')]))_0x288fe3[_0x267b('0x21')]+=_0x245035[_0xe8f702]['item'][_0x267b('0x2a')];else{const _0x442be7=new _0x3ac18b(_0x245035[_0xe8f702]['item'][_0x267b('0x2a')],_0x245035[_0xe8f702]['item'][_0x267b('0x116')]());_0x2b5740[0x0]['_appendChild'](_0x442be7),_0x288fe3=_0x442be7;}_0xe9267a[_0xe9267a[_0x267b('0x5c')]-0x1]+=_0x245035[_0xe8f702][_0x267b('0x52')]['offsetSize'],_0x3a9dc2=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a);}}for(const _0x15c3a2 of _0x245035[_0xe8f702][_0x267b('0x3f')])_0x27bf99[_0x267b('0x5')](_0x15c3a2,{'start':_0x749f9a,'end':null});_0x4de93f(_0x267b('0x10c'),_0xe8f702,_0x749f9a,_0x3a9dc2),_0x4de93f(_0x267b('0x7e'),_0xe8f702,_0x749f9a,_0x3a9dc2),_0x4de93f(_0x267b('0x29'),_0xe8f702,_0x749f9a,_0x3a9dc2),_0x4de93f('isAdded',_0xe8f702,_0x749f9a,_0x3a9dc2);for(const _0x40f6e7 of _0x245035[_0xe8f702]['markersEnd']){_0x27bf99[_0x267b('0xb6')](_0x40f6e7)[_0x267b('0xd8')]=_0x3a9dc2;}}for(const [_0x34bd87,_0x327f0b]of _0x27bf99){const _0x38eba8=this['editor'][_0x267b('0x104')]['createRange'](_0x327f0b['start'],_0x327f0b[_0x267b('0xd8')]);_0x50f834[_0x267b('0x4d')]['set'](_0x34bd87,_0x38eba8);}return _0x332618['sort']((_0x4525ed,_0x6bdc0c)=>{const _0x1abb31=_0x50f834[_0x267b('0x4d')][_0x267b('0xb6')](_0x267b('0x45')+_0x4525ed['id']),_0x22a762=_0x50f834[_0x267b('0x4d')][_0x267b('0xb6')](_0x267b('0x45')+_0x6bdc0c['id']);return _0x1abb31[_0x267b('0x93')][_0x267b('0x88')](_0x22a762['start'])?-0x1:_0x1abb31[_0x267b('0x93')][_0x267b('0x4f')](_0x22a762[_0x267b('0x93')])?0x1:_0x1abb31['end'][_0x267b('0x88')](_0x22a762[_0x267b('0xd8')])?-0x1:_0x1abb31[_0x267b('0xd8')][_0x267b('0x4f')](_0x22a762[_0x267b('0xd8')])?0x1:_0x267b('0xd9')===_0x4525ed[_0x267b('0x72')]?-0x1:0x1;}),{'root':_0x50f834,'changes':_0x332618};function _0x4de93f(_0x297250,_0x51b97f,_0x3aa446,_0x5f4a70){const _0x38350c=!!_0x245035[_0x51b97f][_0x297250],_0x23ccdd=_0x38350c?_0x245035[_0x51b97f][_0x297250][_0x267b('0x54')]:null,_0x4f471b=_0x51b97f===_0x245035[_0x267b('0x5c')]-0x1,_0xa52273=_0x2263f3[_0x297250][0x0],_0x2d236a=_0x5e4a77[_0x267b('0xf1')](_0x245035[_0x51b97f][_0x267b('0x52')]);!_0x212c6f[_0x297250]&&_0x38350c?_0x212c6f[_0x297250]={'start':_0x3aa446,'tapeItem':_0x245035[_0x51b97f],'userId':_0x23ccdd,'type':_0x297250}:_0x212c6f[_0x297250]&&!_0x38350c?(_0x212c6f[_0x297250]['end']=_0x3aa446,_0x4bf337(_0x212c6f[_0x297250]),_0x212c6f[_0x297250]=null):_0x212c6f[_0x297250]&&_0x38350c&&_0x212c6f[_0x297250][_0x267b('0x54')]!==_0x23ccdd&&(_0x212c6f[_0x297250][_0x267b('0xd8')]=_0x3aa446,_0xa52273&&_0xa52273[_0x267b('0x54')]===_0x212c6f[_0x297250]['userId']||_0x4bf337(_0x212c6f[_0x297250]),_0x212c6f[_0x297250]={'start':_0x3aa446,'tapeItem':_0x245035[_0x51b97f],'userId':_0x23ccdd,'type':_0x297250}),_0x212c6f[_0x297250]&&_0x2d236a&&(_0x267b('0x7a')!==_0x245035[_0x51b97f][_0x267b('0x72')]||_0xa52273&&_0xa52273[_0x267b('0x54')]===_0x23ccdd||_0x2263f3[_0x297250]['unshift']({'userId':_0x23ccdd,'object':_0x245035[_0x51b97f][_0x267b('0x52')],'change':_0x212c6f[_0x297250]}),_0x267b('0xa7')===_0x245035[_0x51b97f]['type']&&_0xa52273&&_0xa52273[_0x267b('0xce')]===_0x245035[_0x51b97f][_0x267b('0x52')]&&(_0x2263f3[_0x297250][_0x267b('0xf7')](),_0x212c6f[_0x297250]=_0xa52273[_0x267b('0x56')])),_0x212c6f[_0x297250]&&_0x4f471b&&(_0x212c6f[_0x297250]['end']=_0x5f4a70,_0x4bf337(_0x212c6f[_0x297250]),_0x212c6f[_0x297250]=null);}function _0x4bf337({start:_0x23c5fd,end:_0x5a5f98,tapeItem:_0x50058e,userId:_0x2d13e7,type:_0x394444}){const _0x5ab171=_0x50058e[_0x267b('0x52')],_0x1a5f33=_0x177ff5['schema'][_0x267b('0x71')](_0x5ab171)&&!_0x177ff5['schema'][_0x267b('0x12')](_0x5ab171),_0x51b850=_0x23c5fd[_0x267b('0x37')]==_0x5a5f98[_0x267b('0x7d')]&&_0x5a5f98[_0x267b('0x9b')];if(_0x1a5f33&&_0x51b850)return;const _0x28ade5=_0x177ff5[_0x267b('0x19')](_0x23c5fd,_0x5a5f98),_0x4cd8ca=_0x1e66fd['get'](_0x2d13e7),_0x5a827f=new _0x49afc5({'author':_0x4cd8ca,'type':_0x267b('0x3c')==_0x394444||_0x267b('0x7e')==_0x394444?_0x267b('0xd9'):'remove','data':{'isSuggestion':'isAddSuggestion'==_0x394444||_0x267b('0x10c')==_0x394444},'createdAt':new Date(),'rootName':_0x2f5be9});_0x332618[_0x267b('0xfd')](_0x5a827f),_0x50f834[_0x267b('0x4d')][_0x267b('0x5')]('revision:'+_0x5a827f['id'],_0x28ade5);}function _0x275c2f(_0x155220,_0x100963){const _0x485860=_0x155220[_0x267b('0x116')](),_0x470362=_0x100963[_0x267b('0x116')]();for(const _0x53ba1e of _0x485860){if(_0x53ba1e[0x1]!==_0x100963[_0x267b('0x47')](_0x53ba1e[0x0]))return!0x1;_0x470362[_0x267b('0x51')]();}return _0x470362[_0x267b('0x51')]()[_0x267b('0x11d')];}}['_setConversion'](){this[_0x267b('0xb2')][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xc8')]({'view':'revision'}),this[_0x267b('0xb2')]['conversion'][_0x267b('0x41')](_0x267b('0x4b'))[_0x267b('0x8c')]({'model':_0x267b('0xab'),'view':_0x45e890=>{const _0x50cfaf=_0x45e890[_0x267b('0xa6')]['split'](':')[0x1],_0x546de4=this[_0x267b('0xb4')](_0x50cfaf);if(!_0x546de4)return null;const _0x37bd07=_0x267b('0xd9')==_0x546de4[_0x267b('0x72')]?_0x267b('0xe1'):'deletion',_0x45a799=['ck-suggestion-marker','ck-suggestion-marker-'+_0x37bd07];return _0x546de4['data'][_0x267b('0x100')]&&_0x45a799[_0x267b('0xfd')](_0x267b('0x117')+_0x37bd07+_0x267b('0x96')),this[_0x267b('0x3d')]==_0x546de4&&_0x45a799['push'](_0x267b('0xfb')),{'classes':_0x45a799,'attributes':{'data-change-id':_0x50cfaf}};}}),this[_0x267b('0xb2')][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xd9')](_0x43d5c9=>{_0x43d5c9['on'](_0x267b('0x7'),(_0x51b061,_0x79ff52,_0xdae4d)=>{const _0x2a7e0d=_0x79ff52[_0x267b('0xe3')][_0x267b('0x102')](0x0);if(!_0x2a7e0d||!_0x2a7e0d['is'](_0x267b('0x0'),_0x267b('0xb3')))return;if(!_0xdae4d[_0x267b('0x18')][_0x267b('0x11b')](_0x2a7e0d,{'attributes':[_0x267b('0xe7'),_0x267b('0x9a')]}))return;const _0x49a7b0=_0x79ff52[_0x267b('0x65')]['start'][_0x267b('0x37')];_0xdae4d[_0x267b('0x60')][_0x267b('0x8e')](_0x267b('0xe7'),_0x2a7e0d[_0x267b('0x47')](_0x267b('0xe7')),_0x49a7b0),_0xdae4d[_0x267b('0x60')][_0x267b('0x8e')](_0x267b('0x9a'),_0x2a7e0d[_0x267b('0x47')](_0x267b('0x9a')),_0x49a7b0);},{'priority':_0x267b('0x95')});}),this['editor']['conversion'][_0x267b('0x41')](_0x267b('0x10e'))['add'](_0x17b3d2=>{_0x17b3d2['on'](_0x267b('0x0'),(_0x240139,_0x2ee3f0,_0x3881eb)=>{if(!_0x3881eb['consumable'][_0x267b('0x11b')](_0x2ee3f0[_0x267b('0xe3')],{'attributes':[_0x267b('0xe7'),_0x267b('0x9a')]}))return;if(_0x2ee3f0[_0x267b('0x65')]['isCollapsed'])return;const _0x1f4fb7=_0x2ee3f0['modelRange'][_0x267b('0x93')]['nodeAfter'];_0x1f4fb7[_0x267b('0xd3')]('vid_start')||_0x1f4fb7['hasAttribute'](_0x267b('0x1a'))||(_0x3881eb[_0x267b('0x60')]['setAttribute'](_0x267b('0xe7'),_0x2ee3f0[_0x267b('0xe3')][_0x267b('0x47')](_0x267b('0xe7')),_0x1f4fb7),_0x3881eb[_0x267b('0x60')][_0x267b('0x8e')](_0x267b('0x9a'),_0x2ee3f0[_0x267b('0xe3')][_0x267b('0x47')](_0x267b('0x9a')),_0x1f4fb7));},{'priority':_0x267b('0x95')});}),this[_0x267b('0xb2')][_0x267b('0x110')]['for'](_0x267b('0x10e'))['elementToAttribute']({'view':{'name':_0x267b('0xa9'),'attributes':{'vid':!0x0}},'model':{'key':_0x267b('0x1a'),'value':_0x3bc778=>_0x3bc778[_0x267b('0x47')](_0x267b('0x1a'))}}),this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x9c')]['on'](_0x267b('0xed'),(_0x60574,[,_0x5df2c7])=>{[_0x267b('0xe7'),_0x267b('0x9a'),'vid'][_0x267b('0xe6')](_0x5df2c7)&&(_0x60574[_0x267b('0x76')]=!0x0,_0x60574[_0x267b('0xe4')]());},{'priority':_0x267b('0x5b')}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x2f'))['add'](_0x281805=>{_0x281805['on']('attribute:vid',(_0x41e14f,_0x47be8c,_0x579beb)=>{if('\x20'!=_0x47be8c[_0x267b('0x52')]['data']||_0x47be8c[_0x267b('0x52')]['parent'][_0x267b('0xa3')]>0x1)return;if(!_0x579beb[_0x267b('0x18')][_0x267b('0x11b')](_0x47be8c['item'],_0x41e14f[_0x267b('0x82')]))return;const _0x11d5b1=_0x579beb[_0x267b('0x60')],_0xe51477=_0x579beb[_0x267b('0xfe')]['toViewRange'](_0x47be8c[_0x267b('0x2d')]);_0x11d5b1[_0x267b('0xa2')](_0xe51477,_0x11d5b1['createAttributeElement'](_0x267b('0xa9')));});}),this[_0x267b('0xb2')]['conversion']['for']('dataDowncast')['markerToData']({'model':_0x267b('0xab')}),this[_0x267b('0xb2')][_0x267b('0x111')]['downcastDispatcher']['on'](_0x267b('0xba'),function(_0x2ea05e){const _0x30fc33=_0x2ea05e[_0x267b('0xd')][_0x267b('0xb6')](_0x267b('0x66'));return(_0x45d11a,_0x3339b1,_0x2c6c01)=>{const _0x29c27b=_0x3339b1[_0x267b('0xa6')][_0x267b('0x84')](':')[0x1],_0x260f45=_0x30fc33[_0x267b('0xb4')](_0x29c27b);if(!_0x260f45)return null;const _0x4a7222='add'==_0x260f45['type']?_0x267b('0x84'):_0x267b('0xfa');if(!_0x2c6c01[_0x267b('0x18')][_0x267b('0x26')](_0x3339b1[_0x267b('0x8f')],_0x45d11a[_0x267b('0x82')]))return;const _0x3a20f4=_0x3339b1[_0x267b('0x8f')][_0x267b('0x5f')](),_0x54462f=_0x3339b1[_0x267b('0x8f')][_0x267b('0x93')],_0x395636=_0x2ea05e[_0x267b('0x104')][_0x267b('0x9c')];let _0x16ece4=null,_0x1dea6b=null,_0x5d7f25=!0x1,_0x2a06ae=!0x1;for(const _0x2597d4 of _0x3a20f4){const _0x396896=_0x2597d4['item'];_0x5d7f25=_0x5d7f25||_0x395636[_0x267b('0xcf')](_0x396896);const _0x19b010=_0x2c6c01[_0x267b('0xfe')][_0x267b('0x4c')](_0x396896);if(_0x19b010&&_0x19b010[_0x267b('0xd2')](_0x267b('0x113')))return;_0x267b('0xa7')==_0x2597d4['type']&&(_0x395636[_0x267b('0x71')](_0x396896)&&!_0x395636[_0x267b('0x12')](_0x396896)&&(_0x396896[_0x267b('0x49')]||_0x54462f['isAtEnd']?_0x16ece4&&_0x16ece4['parent']==_0x396896||(_0x16ece4=_0x396896,_0xb15eef(_0x2597d4[_0x267b('0xa8')]),_0x2a06ae=!0x0):_0x1dea6b=_0x1dea6b||_0x2597d4['previousPosition']));}function _0xb15eef(_0x2ba39b){const _0x4083f2=_0x2c6c01['writer'][_0x267b('0x99')](_0x267b('0xa9'),{'class':_0x267b('0x117')+_0x4a7222}),_0x656ddc=_0x2c6c01[_0x267b('0xfe')]['toViewPosition'](_0x2ba39b);_0x260f45['data'][_0x267b('0x100')]&&_0x2c6c01[_0x267b('0x60')][_0x267b('0x10f')](_0x267b('0x117')+_0x4a7222+_0x267b('0x96'),_0x4083f2),_0x30fc33[_0x267b('0x3d')]==_0x260f45&&_0x2c6c01[_0x267b('0x60')][_0x267b('0x10f')](_0x267b('0xfb'),_0x4083f2),_0x2c6c01[_0x267b('0x60')][_0x267b('0x112')](_0x656ddc,_0x4083f2),_0x2c6c01[_0x267b('0xfe')][_0x267b('0x115')](_0x4083f2,_0x3339b1[_0x267b('0xa6')]);}_0x5d7f25||_0x2a06ae||!_0x1dea6b||_0xb15eef(_0x1dea6b);};}(this[_0x267b('0xb2')]),{'priority':_0x267b('0xa1')}),this[_0x267b('0xb2')]['editing'][_0x267b('0x79')]['on'](_0x267b('0x61'),(_0x194272,_0x139d7c,_0x3802a3)=>{const _0x581f7f=_0x3802a3[_0x267b('0xfe')][_0x267b('0x105')](_0x139d7c['markerName']);if(_0x581f7f)for(const _0x3442cf of _0x581f7f)(_0x3442cf[_0x267b('0xc9')](_0x267b('0x11c'))||_0x3442cf['hasClass'](_0x267b('0xca')))&&(_0x3802a3[_0x267b('0xfe')][_0x267b('0x10')](_0x3442cf,_0x139d7c[_0x267b('0xa6')]),_0x3802a3[_0x267b('0x60')]['remove'](_0x3442cf));},{'priority':_0x267b('0xa1')}),this[_0x267b('0xb2')]['editing'][_0x267b('0x79')]['on']('addMarker:revision',(_0x30de42,_0xadeb88,_0x20789f)=>{const _0x5dd084=_0xadeb88[_0x267b('0xa6')][_0x267b('0x84')](':')[0x1],_0xdd0d3a=this[_0x267b('0xb4')](_0x5dd084);if(!_0xdd0d3a)return null;const _0x13ab42='add'==_0xdd0d3a[_0x267b('0x72')]?_0x267b('0x84'):_0x267b('0xfa');if(_0x20789f['consumable'][_0x267b('0x26')](_0xadeb88['markerRange'],_0x30de42[_0x267b('0x82')]))for(const _0x4eeddb of _0xadeb88[_0x267b('0x8f')][_0x267b('0xa4')]()){if(!_0x4eeddb['is'](_0x267b('0x0'),'softBreak'))continue;const _0x5a29f2=_0x20789f[_0x267b('0x60')]['createUIElement'](_0x267b('0xa9'),{'class':_0x267b('0x117')+_0x13ab42}),_0x41afb9=_0x20789f[_0x267b('0xfe')][_0x267b('0x68')](this['editor'][_0x267b('0x104')][_0x267b('0x107')](_0x4eeddb));_0xdd0d3a['data'][_0x267b('0x100')]&&_0x20789f[_0x267b('0x60')][_0x267b('0x10f')](_0x267b('0x117')+_0x13ab42+_0x267b('0x96'),_0x5a29f2),this['activeChange']==_0xdd0d3a&&_0x20789f[_0x267b('0x60')]['addClass'](_0x267b('0xfb'),_0x5a29f2),_0x20789f[_0x267b('0x60')][_0x267b('0x112')](_0x41afb9,_0x5a29f2),_0x20789f['mapper']['bindElementToMarker'](_0x5a29f2,_0xadeb88[_0x267b('0xa6')]);}},{'priority':_0x267b('0xa1')}),this[_0x267b('0xb2')]['model'][_0x267b('0xb7')]['on'](_0x267b('0x56'),()=>{this[_0x267b('0xb2')][_0x267b('0x111')]['view'][_0x267b('0x56')](_0x106f81=>{for(const _0x1570a7 of this[_0x267b('0xb2')]['model']['document'][_0x267b('0x22')]()){const _0x588a5d=this['editor'][_0x267b('0x104')][_0x267b('0xb7')][_0x267b('0x30')](_0x1570a7),_0x507f91=this[_0x267b('0xb2')][_0x267b('0x111')]['view']['document'][_0x267b('0x30')](_0x1570a7);if(_0x507f91){const _0x243bc7=_0x588a5d[_0x267b('0x47')](_0x267b('0xe0'));if(_0x106f81[_0x267b('0xd7')](_0x267b('0x67'),_0x507f91),_0x106f81[_0x267b('0xcc')](_0x267b('0x17'),_0x507f91),_0x106f81['removeClass']('ck-revision-history-root-remove',_0x507f91),_0x106f81[_0x267b('0xcc')](_0x267b('0xec'),_0x507f91),_0x243bc7){const _0xeec455=this[_0x267b('0xb4')](_0x243bc7);if(!_0xeec455)return null;_0x106f81[_0x267b('0x8e')]('data-change-id',_0x243bc7,_0x507f91),_0x106f81['addClass']('ck-revision-history-root-'+_0xeec455[_0x267b('0x72')],_0x507f91),this[_0x267b('0x3d')]==_0xeec455&&_0x106f81[_0x267b('0x10f')]('ck-revision-history-root--active',_0x507f91);}}}});}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xc8')]({'view':_0x267b('0xac'),'model':_0x21f206=>'revision-comment:'+_0x21f206,'converterPriority':_0x267b('0x5b')}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xc8')]({'view':'suggestion','model':_0x14dfca=>_0x267b('0x27')+_0x14dfca,'converterPriority':_0x267b('0x5b')}),this[_0x267b('0xb2')][_0x267b('0x110')]['for'](_0x267b('0x2f'))['markerToData']({'model':_0x267b('0x40'),'view':_0x3edb85=>({'name':_0x267b('0x106')+_0x3edb85,'group':_0x267b('0x40')}),'converterPriority':'highest'}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x4b'))[_0x267b('0x8c')]({'model':_0x267b('0x40'),'view':_0x4cd5bd=>{const _0x5a2e26=_0x4cd5bd[_0x267b('0xa6')][_0x267b('0x84')](':')[0x1];return'insertion'!=_0x5a2e26&&_0x267b('0xd4')!=_0x5a2e26?null:{'classes':[_0x267b('0x43'),_0x267b('0x36')+_0x5a2e26]};}}),this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0x79')]['on'](_0x267b('0x64'),et(this[_0x267b('0xb2')],_0x267b('0xfa')),{'priority':'high'}),this['editor'][_0x267b('0x111')][_0x267b('0x79')]['on'](_0x267b('0xc3'),et(this['editor'],_0x267b('0x84')),{'priority':'high'}),this['editor'][_0x267b('0x111')][_0x267b('0x79')]['on'](_0x267b('0x75'),(_0x4647bd,_0x59b814,_0x43451a)=>{const _0x1ca094=_0x43451a[_0x267b('0xfe')][_0x267b('0x105')](_0x59b814[_0x267b('0xa6')]);if(_0x1ca094)for(const _0x22a6cd of _0x1ca094)_0x22a6cd['is'](_0x267b('0xb0'))&&(_0x43451a[_0x267b('0xfe')][_0x267b('0x10')](_0x22a6cd,_0x59b814['markerName']),_0x43451a[_0x267b('0x60')][_0x267b('0xb8')](_0x22a6cd));},{'priority':_0x267b('0xa1')});}['_getChangeFromId'](_0x377d8e){return this[_0x267b('0x8')][_0x267b('0xb6')](_0x377d8e);}['_getViewForChange'](_0x2b783f){return this[_0x267b('0x14')]&&this[_0x267b('0x14')][_0x267b('0xf5')](),this[_0x267b('0x14')]=new _0x3ad18f(this['editor'][_0x267b('0x63')],_0x2b783f),this['_changeView'];}['_initInteractions'](){this['editor'][_0x267b('0x104')]['document'][_0x267b('0xe9')][_0x267b('0x10d')](_0x267b('0xab')),this['on'](_0x267b('0xae'),(_0xf7ca78,_0xc6eee7,_0x45dbf4,_0x3167c1)=>{_0x3167c1&&this[_0x267b('0x73')]['remove'](_0x3167c1),_0x45dbf4&&(this[_0x267b('0x73')][_0x267b('0xd9')]({'view':_0x45dbf4,'stackId':_0x267b('0x3b'),'position':{'target':()=>{const _0x300f09=this[_0x267b('0xb2')]['editing'],_0x4b1c5e=this[_0x267b('0xb4')](_0x45dbf4['changeId']);let _0x404e53;if(_0x4b1c5e[_0x267b('0x2a')][_0x267b('0x6a')]){const _0x1cb255=_0x300f09['view']['getDomRoot'](_0x4b1c5e['rootName']);_0x404e53=Array[_0x267b('0x85')](_0x1cb255['getClientRects']());}else{const _0x4005ec=this[_0x267b('0xb2')][_0x267b('0x104')]['markers'][_0x267b('0xb6')](_0x267b('0x45')+_0x45dbf4[_0x267b('0xaf')]);_0x404e53=Array[_0x267b('0x85')](_0x300f09[_0x267b('0xfe')][_0x267b('0x105')](_0x4005ec['name']))[_0x267b('0x1d')](_0x4776b8=>_0x300f09[_0x267b('0xc5')]['domConverter']['mapViewToDom'](_0x4776b8))[_0x267b('0x1d')](_0x5f4422=>Array[_0x267b('0x85')](_0x5f4422[_0x267b('0x59')]()))[_0x267b('0xd5')]();}if(!this[_0x267b('0xc7')])return _0x404e53[0x0];return _0x404e53[_0x267b('0xf4')](_0x244534=>_0x244534[_0x267b('0x90')]-0x3<=this[_0x267b('0xc7')]['y']&&_0x244534[_0x267b('0xa5')]+0x3>=this[_0x267b('0xc7')]['y']&&_0x244534[_0x267b('0xf0')]-0x3<=this[_0x267b('0xc7')]['x']&&_0x244534['right']+0x3>=this[_0x267b('0xc7')]['x'])||_0x404e53[0x0];}}}),this[_0x267b('0x73')]['showStack'](_0x267b('0x3b')));}),this['on'](_0x267b('0xf2'),(_0x47b71b,_0xd17505,_0x2e355b,_0x4e459b)=>{this[_0x267b('0xf9')]=_0x2e355b?this[_0x267b('0x9f')](_0x2e355b):null,this['editor']['model'][_0x267b('0x56')](()=>{const _0xe2f12f=this[_0x267b('0xb2')]['editing'];_0x4e459b&&(_0x4e459b[_0x267b('0x2a')][_0x267b('0x6a')]?_0xe2f12f['view'][_0x267b('0x56')](_0x1233da=>{_0x1233da[_0x267b('0xcc')](_0x267b('0xec'),_0xe2f12f['view'][_0x267b('0xb7')][_0x267b('0x30')](_0x4e459b[_0x267b('0x4a')]));}):_0xe2f12f[_0x267b('0x1b')](_0x267b('0x45')+_0x4e459b['id'])),_0x2e355b&&(_0x2e355b[_0x267b('0x2a')][_0x267b('0x6a')]?_0xe2f12f[_0x267b('0xc5')][_0x267b('0x56')](_0x40de83=>{_0x40de83[_0x267b('0x10f')]('ck-revision-history-root--active',_0xe2f12f[_0x267b('0xc5')]['document']['getRoot'](_0x2e355b[_0x267b('0x4a')]));}):_0xe2f12f['reconvertMarker'](_0x267b('0x45')+_0x2e355b['id']));});}),this['listenTo'](this['editor'][_0x267b('0x111')]['view']['document'],_0x267b('0x3'),(_0x56728b,_0x51ded2)=>{if(this['activeChange'])return;const _0x3b4b1c=this['_findChangeIdFromDomTarget'](_0x51ded2[_0x267b('0x1')]),_0x591ffa=this['_changeIdToChange']['get'](_0x3b4b1c);_0x591ffa?(this[_0x267b('0xc7')]={'x':_0x51ded2[_0x267b('0x77')]['x'],'y':_0x51ded2[_0x267b('0x77')]['y']},this[_0x267b('0xf9')]=this[_0x267b('0x9f')](_0x591ffa)):(this[_0x267b('0xc7')]=null,this[_0x267b('0xf9')]=null);}),this['listenTo'](this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0xb7')],_0x267b('0x80'),(_0x3cd88d,_0x1cc1c1)=>{const _0x1008af=this[_0x267b('0xde')](_0x1cc1c1[_0x267b('0x1')]),_0x22456c=this[_0x267b('0x8')][_0x267b('0xb6')](_0x1008af);_0x22456c?(this[_0x267b('0xc7')]={'x':_0x1cc1c1[_0x267b('0x77')]['x'],'y':_0x1cc1c1[_0x267b('0x77')]['y']},_0x22456c===this[_0x267b('0x3d')]?this['_balloon']['updatePosition']():this[_0x267b('0x3d')]=_0x22456c):(this[_0x267b('0xc7')]=null,this[_0x267b('0x3d')]=null);});}['_findChangeIdFromDomTarget'](_0x2b1d78){do{const _0x774f25=_0x2b1d78[_0x267b('0x47')](_0x267b('0x67'));if(_0x774f25)return _0x774f25;_0x2b1d78=_0x2b1d78['parent'];}while(_0x2b1d78);return null;}[_0x267b('0x10b')](){this[_0x267b('0xb2')]['model'][_0x267b('0x56')](_0x4ad19d=>{for(const _0x562498 of this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x4d')])_0x4ad19d[_0x267b('0x13')](_0x562498);});}}function et(_0x5489c7,_0x90f26f){return(_0x422fb6,_0x35d417,_0x4629d1)=>{if(!_0x4629d1[_0x267b('0x18')][_0x267b('0x26')](_0x35d417[_0x267b('0x8f')],_0x422fb6[_0x267b('0x82')]))return;const _0x1569ed=_0x35d417[_0x267b('0x8f')][_0x267b('0x5f')](),_0x5597f8=_0x35d417[_0x267b('0x8f')][_0x267b('0x93')],_0x5e6615=_0x5489c7['model'][_0x267b('0x9c')];let _0x403a8b=null,_0x916a92=null,_0x40819a=!0x1,_0xfa9cfc=!0x1;for(const _0x1aed80 of _0x1569ed){const _0x4c88b2=_0x1aed80[_0x267b('0x52')];_0x40819a=_0x40819a||_0x5e6615['isContent'](_0x4c88b2);const _0xa688c4=_0x4629d1[_0x267b('0xfe')][_0x267b('0x4c')](_0x4c88b2);if(_0xa688c4&&_0xa688c4[_0x267b('0xd2')](_0x267b('0x113')))return;_0x267b('0xa7')==_0x1aed80[_0x267b('0x72')]&&(_0x5e6615[_0x267b('0x71')](_0x4c88b2)&&!_0x5e6615[_0x267b('0x12')](_0x4c88b2)&&(_0x4c88b2[_0x267b('0x49')]||_0x5597f8[_0x267b('0x5d')]?_0x403a8b&&_0x403a8b[_0x267b('0x7d')]==_0x4c88b2||(_0x403a8b=_0x4c88b2,_0x300bf3(_0x1aed80[_0x267b('0xa8')]),_0xfa9cfc=!0x0):_0x916a92=_0x916a92||_0x1aed80[_0x267b('0xa8')]));}function _0x300bf3(_0x1c11e7){const _0x2779d7=_0x4629d1[_0x267b('0xfe')][_0x267b('0x68')](_0x1c11e7),_0x19b20b=_0x4629d1[_0x267b('0x60')][_0x267b('0x99')](_0x267b('0xa9'),{'class':_0x267b('0x36')+_0x90f26f});_0x4629d1[_0x267b('0x60')][_0x267b('0x112')](_0x2779d7,_0x19b20b),_0x4629d1[_0x267b('0xfe')][_0x267b('0x115')](_0x19b20b,_0x35d417[_0x267b('0xa6')]);}_0x40819a||_0xfa9cfc||!_0x916a92||_0x300bf3(_0x916a92);};}export class RestoreRevisionCommand extends _0x5a80bc{constructor(_0x5c7468){super(_0x5c7468);const _0x4177e9=_0x5c7468[_0x267b('0xd')]['get'](d);this[_0x267b('0x97')]=!0x1,this['listenTo'](_0x4177e9,_0x267b('0x50'),()=>this[_0x267b('0xc')]()),this[_0x267b('0x86')](_0x4177e9,_0x267b('0xc6'),()=>this[_0x267b('0xc')]());}[_0x267b('0x9')](){const _0x151bf1=this[_0x267b('0xb2')],_0x4a8168=_0x151bf1[_0x267b('0xd')][_0x267b('0xb6')](d),_0x4245be=_0x4a8168[_0x267b('0x35')]?_0x4a8168[_0x267b('0xb9')][_0x267b('0xd6')]:null;_0x151bf1[_0x267b('0x62')]['get']('revisionHistory')[_0x267b('0x42')](_0x4245be);}[_0x267b('0xc')](){const {isReady:_0x5df68b,isEnabled:_0x2ba72b}=this[_0x267b('0xb2')][_0x267b('0xd')][_0x267b('0xb6')](d);this['isEnabled']=_0x5df68b&&_0x2ba72b;}}export class ShowChangeCommand extends _0x5a80bc{constructor(_0x2d88f1,{direction:_0x22bef2}){super(_0x2d88f1);const _0x21a58f=_0x2d88f1[_0x267b('0xd')][_0x267b('0xb6')](d);this[_0x267b('0x97')]=!0x1,this['_step']=_0x267b('0x2e')===_0x22bef2?0x1:-0x1,this[_0x267b('0x86')](_0x21a58f,'change:isReady',()=>this[_0x267b('0xc')]()),this[_0x267b('0x86')](_0x21a58f,_0x267b('0xc6'),()=>this[_0x267b('0xc')]()),this[_0x267b('0x86')](_0x21a58f,_0x267b('0xf2'),()=>this[_0x267b('0xc')]());}['execute'](){const _0x3f361f=this[_0x267b('0xb2')],_0x12ad3f=_0x3f361f[_0x267b('0xd')]['get'](d),{isNavigationMode:_0x4c39d3,currentChangeNumber:_0x3d4df2}=_0x12ad3f;let _0x28957c;if(_0x12ad3f[_0x267b('0x3d')]=_0x4c39d3?_0x12ad3f[_0x267b('0xb9')][_0x267b('0xbc')][_0x267b('0xb6')](_0x3d4df2+this[_0x267b('0x11')]):_0x12ad3f[_0x267b('0xb9')][_0x267b('0xbc')][_0x267b('0x91')],_0x12ad3f['activeChange'][_0x267b('0x2a')][_0x267b('0x6a')])_0x28957c=_0x3f361f[_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0x9e')](_0x12ad3f['activeChange'][_0x267b('0x4a')]);else{const _0x63f61b=_0x3f361f['model']['markers'][_0x267b('0xb6')](_0x267b('0x45')+_0x12ad3f['activeChange']['id']);_0x28957c=_0x2a84bb(_0x3f361f[_0x267b('0x111')],_0x63f61b);}_0x1652f7({'target':_0x28957c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3a27bb,currentChangeNumber:_0x8fd889,numberOfChanges:_0x557a7f,isReady:_0x4e298b,isEnabled:_0x3ed035}=this[_0x267b('0xb2')][_0x267b('0xd')]['get'](d);this[_0x267b('0xf')]=!!(_0x3ed035&&_0x4e298b&&_0x557a7f)&&(!_0x3a27bb||(0x1===this[_0x267b('0x11')]?_0x8fd889<_0x557a7f-0x1:_0x8fd889>0x0));}}
|
|
23
|
+
const _0x59c4=['_makeModelFromViewString','getItems','name','ck-editor__editable__overlay','removeMarker','_makeModelFromTape','revision','changeId','createRevision','next','oldRevisionId','model','authors','addMarker:revision','includes','vid','span','processor','POSITIVE_INFINITY','deletion','all','_getDiff','isObject','deletions','_cleanUp','compare','find','push','pluginName','getRevision','revision-suggestion','_appendChild','dataDowncast','low','enqueueChange','markerRange','isCollapsed','_setDistance','_removeUnsupportedChanges','attachChange','removeMarker:revision','writer','high','plugins','data-revision-','_markInsertions','_balloon','shift','remove','collaboration.channelId','target','text','_initInteractions','startsWith','view','affectsData','consume','filter','change:isReady','code','attributesAfter','adapter','bindElementToMarker','ck-suggestion-marker','getClientRects','isLimit','getWalker','refresh','length','suggestion:','_threeWayMerge','addRevisionData','return','ck-suggestion-marker-merge','requires','restoreRevisionCallback','showPreviousChange','useFillerType','dataToMarker','level','modelRange','revision:','elementEnd','attributes','hasAttribute','test','isOnRoot','change','createAttributeElement','resolve','_sortAndFilterDiffChanges','abs','elementToAttribute','-new','forward','insertions','has','hasClass','pop','isReady','change:numberOfChanges','removeClass','values','side','diff','_getRevisionsRange','getRevisionRootsAttributes','insertion','_markMismatchedRemovedTags','isBlock','uiElement','getCustomProperty','nextSibling','markersStart','getRootNames','markerNameToElements','markerToData','_setConversion','getAttributes','attribute:vid','roots','distance','ck-suggestion-marker-split','setAttribute','endIndex','_update','map','isInline','isAfter','nodeAfter','concat','previousPosition','revision-viewer','default','editing','repository','editingDowncast','_findChangeIdFromDomTarget','_getChangeFromId','_makeTape','removeMarker:revision-suggestion','markerName','upcast','viewItem','bottom','removeAttribute','listenTo','item','checkAttribute','execute','createPositionBefore','detachRoot','editor','isIncorrect','revisionHistoryAttachChange','unshift','suggestion','children','domConverter','vid_end','_getViewForChange','currentChangeNumber','conversion','revisionHistory','document','maxOffset','addRevision','observeMarkers','getRevisionData','isRemoved','data','_removeRevisionMarkers','mousedown','getIndex','activeView','enableReadOnlyMode','nextPosition','startIndex','forEach','activeChange','getAttribute','revision-start','backward','isBefore','_markMarkers','change:activeChange','getDomRoot','WidgetToolbarRepository','rootName','unbindElementFromMarkerName','markerToHighlight','isNavigationMode','merge','keys','set','_step','parent','wrap','ck-revision-history-root-','isEqual','revisionHistoryLabel','element','get','toViewPosition','first','userId','showStack','updatePosition','isSuggestion','_joinTapes','slice','RevisionViewer','addHighlight','downcastDispatcher','RevisionsRepository','toViewRange','toModel','_markSuggestions','_getViewObj','_fixObsoleteTags','pairId','type','addClass','createPositionFromPath','top','domEvent','_activeViewTarget','reconvertMarker','isContent','isRemoveSuggestion','createUIElement','isAddSuggestion','index','createRange','isAdded','getRoot','ck-revision-history-root-remove','_revisions','end','start','delete','commands','destroy','ck-suggestion-marker--active','splice','_processTape','ck-suggestion-preview-marker-','markers','from','elementStart','config','then','addRoot','split','sort','vid_start','for','schema','changes','string','loadRevisionData','_refreshStartEndIndex','stop','_cleanMarkers','element:pre','findIndex','isAtStart','data-change-id','forceDisabled','ck-suggestion-preview-marker','highest','markersEnd','catch','addMarker:revision-suggestion:insertion','mouseover','change:isEnabled','ck-suggestion-marker-','left','newRevisionId','isEnabled','parse','isAttached','ck-revision-history-root--active','consumable','_changeView','_changeIdToChange','revision-comment:','ck-revision-history-root-add','flat','insert','add','error','bind','_setChanges','mapper','diffData'];(function(_0x5d92ff,_0x59c462){const _0x47caaa=function(_0x37543c){while(--_0x37543c){_0x5d92ff['push'](_0x5d92ff['shift']());}};_0x47caaa(++_0x59c462);}(_0x59c4,0x1ed));const _0x47ca=function(_0x5d92ff,_0x59c462){_0x5d92ff=_0x5d92ff-0x0;let _0x47caaa=_0x59c4[_0x5d92ff];return _0x47caaa;};import{Plugin as _0xf99a6e,Command as _0xc82726}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3fdf1f}from'ckeditor5/src/utils';import{ContextualBalloon as _0x20f041}from'ckeditor5/src/ui';import{DocumentFragment as _0x249b21,Element as _0x4a66fb,Text as _0x24f32e,ViewDocumentFragment as _0x328c26,ViewText as _0x23338c,ViewElement as _0x3e7844,ViewContainerElement as _0x221827,ViewAttributeElement as _0x353d3f,ViewEmptyElement as _0x3adc7d,ViewRawElement as _0x4eb8c3,ViewUIElement as _0x50a834}from'ckeditor5/src/engine';import{Users as _0x345b28,getMarkerDomElement as _0x4f1b98}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a531f from'./ui/revisionviewer/changedetailsview';import _0x48200f from'./revisionsrepository';import _0xeb78f6 from'./changeitem';import{default as _0xe13e1e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x31d9d2}from'lodash-es';const tt={'c':_0x221827,'a':_0x353d3f,'e':_0x3adc7d,'r':_0x4eb8c3,'u':_0x50a834};export default class d extends _0xf99a6e{static get[_0x47ca('0x7f')](){return'RevisionViewer';}static get[_0x47ca('0xad')](){return[_0x345b28,_0x20f041,_0x48200f];}constructor(_0x1768bf){super(_0x1768bf),this[_0x47ca('0xea')]=this['editor'][_0x47ca('0x8e')][_0x47ca('0x5')](_0x47ca('0x11')),this['set'](_0x47ca('0x116'),null),this[_0x47ca('0x125')](_0x47ca('0x111'),null),this[_0x47ca('0x1d')]=null,this['set'](_0x47ca('0xcb'),null),this[_0x47ca('0x125')]('isReady',!0x1),this[_0x47ca('0x125')](_0x47ca('0x52'),!0x0),this['on'](_0x47ca('0x4e'),(_0x2d3d7e,_0x551635,_0x3fbf14)=>{this[_0x47ca('0x116')]=null,this[_0x47ca('0x111')]=null,this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x99')]['change'](_0x4ea076=>{for(const _0x53e144 of this['editor'][_0x47ca('0xe9')]['view']['document'][_0x47ca('0xdb')])_0x3fbf14?_0x4ea076['removeClass'](_0x47ca('0x66'),_0x53e144):_0x4ea076[_0x47ca('0x19')]('ck-editor__editable__overlay',_0x53e144);});}),this[_0x47ca('0x5f')](_0x47ca('0x122'))['to'](this,_0x47ca('0x116'),_0x164289=>null!==_0x164289),this[_0x47ca('0x5f')](_0x47ca('0x104'))['to'](this,'isReady',this,'diff',this,_0x47ca('0x116'),(_0x4ec1bb,_0xb08eb,_0x45b66d)=>_0x4ec1bb&&_0x45b66d?_0xb08eb['changes']['getIndex'](_0x45b66d):0x0),this[_0x47ca('0x5f')]('numberOfChanges')['to'](this,_0x47ca('0xc6'),this,_0x47ca('0xcb'),(_0x142b3c,_0x205f6c)=>_0x142b3c?_0x205f6c[_0x47ca('0x3d')][_0x47ca('0xa7')]:0x0),this[_0x47ca('0x57')]=null,this[_0x47ca('0x58')]=new Map(),this[_0x47ca('0xa0')]=null,this['_balloon']=this[_0x47ca('0xfb')][_0x47ca('0x8e')]['get'](_0x20f041);}['init'](){const _0x3ce187=this['editor'],_0x47bbf4=new ShowChangeCommand(_0x3ce187,{'direction':_0x47ca('0x119')}),_0x4f3af2=new ShowChangeCommand(_0x3ce187,{'direction':_0x47ca('0xc1')});(_0x3ce187['commands'][_0x47ca('0x5d')](_0x47ca('0xaf'),_0x47bbf4),_0x3ce187[_0x47ca('0x2c')][_0x47ca('0x5d')]('showNextChange',_0x4f3af2),_0x3ce187['commands'][_0x47ca('0x5d')]('restoreRevision',new RestoreRevisionCommand(_0x3ce187)),this['on'](_0x47ca('0xc7'),()=>{_0x47bbf4[_0x47ca('0xa6')](),_0x4f3af2[_0x47ca('0xa6')]();}),this['_setConversion'](),this[_0x47ca('0x97')](),_0x3ce187[_0x47ca('0x112')](_0x47ca('0xe7')),_0x3ce187['plugins']['has']('WidgetToolbarRepository'))&&_0x3ce187[_0x47ca('0x8e')][_0x47ca('0x5')](_0x47ca('0x11e'))[_0x47ca('0x47')](_0x47ca('0xe7'));}async[_0x47ca('0x10b')](_0x5e61ea){await this[_0x47ca('0x3f')](_0x5e61ea);const _0x21e26e={};for(const _0x32707e in _0x5e61ea[_0x47ca('0x62')]){if(_0x5e61ea[_0x47ca('0x62')][_0x32707e][_0x47ca('0x8a')]&&!_0x5e61ea['diffData'][_0x32707e][_0x47ca('0x8a')][_0x47ca('0x54')])continue;const _0x50b3a6=this[_0x47ca('0x10e')](JSON[_0x47ca('0x53')](_0x5e61ea[_0x47ca('0x62')][_0x32707e]['insertions'])),_0x16e502=this[_0x47ca('0xfb')]['editing'][_0x47ca('0x99')][_0x47ca('0x107')],_0x2e9c4d=new _0x328c26(_0x16e502,_0x50b3a6[_0x47ca('0xe1')](_0x2839b5=>this[_0x47ca('0x15')](_0x2839b5)));this['editor'][_0x47ca('0x10d')][_0x47ca('0x74')][_0x47ca('0xb0')]('marked'),_0x21e26e[_0x32707e]=this[_0x47ca('0xfb')][_0x47ca('0x10d')][_0x47ca('0x74')]['toData'](_0x2e9c4d),this[_0x47ca('0xfb')][_0x47ca('0x10d')][_0x47ca('0x74')][_0x47ca('0xb0')](_0x47ca('0xe8'));}return _0x21e26e;}async[_0x47ca('0xcd')](_0x285ffc){await this['loadRevisionData'](_0x285ffc);const _0x46c174={};for(const _0xa916ce in _0x285ffc[_0x47ca('0x62')])_0x285ffc['diffData'][_0xa916ce]['attachChange']&&!_0x285ffc[_0x47ca('0x62')][_0xa916ce][_0x47ca('0x8a')]['isAttached']||(_0x46c174[_0xa916ce]=_0x285ffc[_0x47ca('0x62')][_0xa916ce][_0x47ca('0x9f')]||{});return _0x46c174;}['_removeRevisionMarkers'](_0x5199e3){return(_0x5199e3=_0x5199e3[_0x47ca('0x9c')](_0x56e583=>!_0x56e583[_0x47ca('0x65')]||_0x47ca('0x118')!==_0x56e583[_0x47ca('0x65')]&&'revision-end'!==_0x56e583[_0x47ca('0x65')]))[_0x47ca('0x115')](_0x4f906f=>{_0x47ca('0x3e')!=typeof _0x4f906f&&(_0x4f906f['children']=this['_removeRevisionMarkers'](_0x4f906f[_0x47ca('0x100')]),_0x4f906f['attributes']=_0x4f906f[_0x47ca('0xb6')][_0x47ca('0x9c')](_0x27e1c4=>!_0x27e1c4[0x0]['startsWith'](_0x47ca('0x8f'))));}),_0x5199e3;}async[_0x47ca('0x7c')](_0x2c5906,_0x4dc263,_0x2fe799=!0x1){if(!this['isEnabled'])return;const _0x1a1e7e=this['diff'],_0x5e1777=this[_0x47ca('0xea')],_0x4a5f1e=_0x47ca('0x3e')==typeof _0x2c5906?_0x5e1777[_0x47ca('0x80')](_0x2c5906):_0x2c5906,_0x5b8026=_0x47ca('0x3e')==typeof _0x4dc263?_0x5e1777[_0x47ca('0x80')](_0x4dc263):_0x4dc263,_0x43b95c=_0x4a5f1e['id'],_0x1dac85=_0x5b8026?_0x5b8026['id']:null;if(!_0x2fe799&&this[_0x47ca('0xcb')]&&this[_0x47ca('0xcb')]['newRevisionId']===_0x43b95c&&this['diff'][_0x47ca('0x6d')]===_0x1dac85)return Promise['resolve']();this[_0x47ca('0xc6')]=!0x1,this[_0x47ca('0x111')]=null,this['activeChange']=null,this[_0x47ca('0xcb')]=new _0xe13e1e(_0x43b95c,_0x1dac85);const _0x4f9a34=this['_getRevisionsRange'](_0x4a5f1e,_0x5b8026,!0x0)[_0x47ca('0xe1')](_0x6b402b=>this['loadRevisionData'](_0x6b402b));return _0x4f9a34[_0x47ca('0x7e')](new Promise(_0xa97d49=>{setTimeout(_0xa97d49,0x14);})),Promise[_0x47ca('0x77')](_0x4f9a34)['then'](()=>{if(!this[_0x47ca('0x52')])return;this['_cleanUp']();const _0x218586=this['_getDiff'](_0x43b95c,_0x1dac85);for(const _0x208ef6 of _0x218586[_0x47ca('0x3d')])this[_0x47ca('0x58')][_0x47ca('0x125')](_0x208ef6['id'],_0x208ef6);this[_0x47ca('0xfb')]['model'][_0x47ca('0x85')]({'isUndoable':!0x1},_0x4d9882=>{for(const _0x410492 of this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x107')][_0x47ca('0xd5')]())_0x4d9882[_0x47ca('0xfa')](_0x410492);for(const _0x1d38d7 of Object[_0x47ca('0x124')](_0x218586[_0x47ca('0x6e')])){const _0x58f966=_0x4d9882[_0x47ca('0x37')](_0x1d38d7);for(const _0x3fc8c4 of Object['keys'](_0x218586['attributes'][_0x1d38d7]))_0x4d9882[_0x47ca('0xde')](_0x3fc8c4,_0x218586['attributes'][_0x1d38d7][_0x3fc8c4],_0x58f966);_0x4d9882[_0x47ca('0x5c')](_0x218586[_0x47ca('0x6e')][_0x1d38d7],_0x58f966,0x0);}}),this['diff'][_0x47ca('0x60')](this[_0x47ca('0xbd')](_0x218586[_0x47ca('0x3d')])),this['isReady']=!0x0;})[_0x47ca('0x4b')](_0x16a2ad=>{console[_0x47ca('0x5e')](_0x16a2ad),this['_cleanUp'](),_0x1a1e7e&&(this['diff']=_0x1a1e7e),this[_0x47ca('0xc6')]=!0x0;});}[_0x47ca('0xaa')](_0x29c4a1,_0x165e8c){const _0x277a28=this[_0x47ca('0xea')][_0x47ca('0x6b')](_0x29c4a1);return _0x277a28['on'](_0x47ca('0xe0'),(_0x4fb5aa,_0x10f0d6,_0x1cc976)=>_0x165e8c(_0x10f0d6,_0x1cc976,_0x277a28)),this['repository'][_0x47ca('0x109')](_0x277a28),_0x277a28;}[_0x47ca('0x3f')](_0x5343c4){if(!_0x5343c4||_0x5343c4[_0x47ca('0x62')])return Promise[_0x47ca('0xbc')]();{const _0xe6de4b=this[_0x47ca('0xfb')]['config'][_0x47ca('0x5')](_0x47ca('0x94'));return this['adapter'][_0x47ca('0x80')]({'channelId':_0xe6de4b,'revisionId':_0x5343c4['id']})[_0x47ca('0x36')](_0x2eef1e=>{_0x5343c4[_0x47ca('0xe0')]({'diffData':_0x2eef1e[_0x47ca('0x62')]},!0x0);});}}[_0x47ca('0x7b')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x47ca('0x57')]&&this['_changeView'][_0x47ca('0x2d')](),this['_changeView']=null,this[_0x47ca('0x58')]['clear'](),this[_0x47ca('0xfb')][_0x47ca('0x6e')]['enqueueChange']({'isUndoable':!0x1},_0xdd6afa=>{for(const _0x43c17a of this[_0x47ca('0xfb')][_0x47ca('0x6e')]['document'][_0x47ca('0xd5')]())_0xdd6afa[_0x47ca('0xfa')](_0x43c17a);});}[_0x47ca('0xbd')](_0x24231b){const _0xc83c86=[],_0x319245=new Map();for(const _0x3ed3ff of this[_0x47ca('0xfb')][_0x47ca('0x6e')]['document'][_0x47ca('0xd5')]()){const _0x2c3538=this[_0x47ca('0xfb')][_0x47ca('0xe9')]['view'][_0x47ca('0x11d')](_0x3ed3ff);if(!_0x2c3538)continue;const _0x13481f=_0x2c3538[_0x47ca('0xa3')]()[_0x47ca('0xf6')](0x0);_0x13481f&&(_0xc83c86[_0x47ca('0x7e')](_0x3ed3ff),_0x319245[_0x47ca('0x125')](_0x3ed3ff,_0x13481f));}return _0xc83c86[_0x47ca('0x39')]((_0x3a2e83,_0x335a2b)=>{const _0x3556e7=_0x319245[_0x47ca('0x5')](_0x3a2e83),_0x4a8e16=_0x319245[_0x47ca('0x5')](_0x335a2b);return _0x3556e7['y']-_0x4a8e16['y']||_0x3556e7['x']-_0x4a8e16['x'];}),(_0x24231b=_0x24231b[_0x47ca('0x9c')](_0x29492c=>_0xc83c86[_0x47ca('0x71')](_0x29492c['rootName'])))[_0x47ca('0x39')]((_0x3f7abf,_0x489daf)=>_0xc83c86['indexOf'](_0x3f7abf[_0x47ca('0x11f')])-_0xc83c86['indexOf'](_0x489daf[_0x47ca('0x11f')])),_0x24231b;}['_makeTape'](_0x4f17d1){const _0x241748=Array[_0x47ca('0x33')](_0x4f17d1[_0x47ca('0x32')])['filter'](([_0x1f990f,_0x17e487])=>_0x1f990f[_0x47ca('0x98')](_0x47ca('0xb4'))&&!_0x17e487[_0x47ca('0x87')]),_0xae960e=Array['from'](this['editor'][_0x47ca('0x6e')]['createRangeIn'](_0x4f17d1)[_0x47ca('0xa5')]({'singleCharacters':!0x0}));if(0x0!=_0x241748[_0x47ca('0xa7')])for(const _0x37e6f0 of _0xae960e){const [_0x43c8fc,_0xd296cb]=_0x241748[0x0],[,_0x579eec,_0x344275]=_0x43c8fc[_0x47ca('0x38')](':');if(_0xd296cb[_0x47ca('0x29')][_0x47ca('0x2')](_0x37e6f0[_0x47ca('0x113')])&&_0x241748['shift'](),(_0x37e6f0[_0x47ca('0xe6')]['isEqual'](_0xd296cb[_0x47ca('0x2a')])||_0x37e6f0[_0x47ca('0xe6')][_0x47ca('0xe3')](_0xd296cb['start']))&&(_0x47ca('0xce')==_0x579eec?_0x37e6f0['isAdded']={'userId':_0x344275}:_0x47ca('0x76')==_0x579eec&&(_0x37e6f0[_0x47ca('0x10c')]={'userId':_0x344275})),0x0==_0x241748[_0x47ca('0xa7')])break;}return _0xae960e;}[_0x47ca('0x40')](_0x16dfa8){const _0x57fb88=new Map();for(let _0x565ac9=0x0;_0x565ac9<_0x16dfa8[_0x47ca('0xa7')];_0x565ac9++)_0x47ca('0x96')===_0x16dfa8[_0x565ac9][_0x47ca('0x18')]?(_0x16dfa8[_0x565ac9][_0x47ca('0xf6')][_0x47ca('0x114')]=_0x565ac9,_0x16dfa8[_0x565ac9][_0x47ca('0xf6')]['endIndex']=_0x565ac9):('elementStart'===_0x16dfa8[_0x565ac9]['type']?_0x16dfa8[_0x565ac9]['item']['startIndex']=_0x565ac9:'elementEnd'===_0x16dfa8[_0x565ac9][_0x47ca('0x18')]&&(_0x16dfa8[_0x565ac9][_0x47ca('0xf6')][_0x47ca('0xdf')]=_0x565ac9),_0x57fb88[_0x47ca('0x125')](_0x16dfa8[_0x565ac9]['id'],_0x565ac9));for(const _0x58a0ed of _0x57fb88[_0x47ca('0xc9')]())'elementStart'===_0x16dfa8[_0x58a0ed][_0x47ca('0x18')]?_0x16dfa8[_0x58a0ed]['item'][_0x47ca('0xdf')]=_0x57fb88[_0x47ca('0x5')](_0x16dfa8[_0x58a0ed][_0x47ca('0x17')]):_0x47ca('0xb5')===_0x16dfa8[_0x58a0ed][_0x47ca('0x18')]&&(_0x16dfa8[_0x58a0ed][_0x47ca('0xf6')][_0x47ca('0x114')]=_0x57fb88[_0x47ca('0x5')](_0x16dfa8[_0x58a0ed][_0x47ca('0x17')]));}[_0x47ca('0x30')](_0x47ed93){for(let _0x3a1e03=0x0;_0x3a1e03<_0x47ed93['length'];_0x3a1e03++){if(_0x47ca('0x34')===_0x47ed93[_0x3a1e03][_0x47ca('0x18')])_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0x114')]=_0x3a1e03;else{if(_0x47ca('0xb5')===_0x47ed93[_0x3a1e03][_0x47ca('0x18')]){_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0xdf')]=_0x3a1e03;const _0x3f64ce=_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0x114')];_0x47ed93[_0x3f64ce][_0x47ca('0x17')]=_0x47ed93[_0x3a1e03]['id'],_0x47ed93[_0x3a1e03][_0x47ca('0x17')]=_0x47ed93[_0x3f64ce]['id'];}else _0x47ed93[_0x3a1e03]['item'][_0x47ca('0x114')]=_0x3a1e03,_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0xdf')]=_0x3a1e03,_0x47ed93[_0x3a1e03]['pairId']=null;}_0x47ed93[_0x3a1e03][_0x47ca('0xd4')]||(_0x47ed93[_0x3a1e03][_0x47ca('0xd4')]=[],_0x47ed93[_0x3a1e03][_0x47ca('0x4a')]=[]);}}[_0x47ca('0x90')](_0x2ddff8,_0x4f68d5){const _0x3b325e=_0x2ddff8[_0x47ca('0x9c')](_0x541408=>!_0x541408[_0x47ca('0x25')]);for(let _0x2b4ff2=0x0;_0x2b4ff2<_0x4f68d5['length'];_0x2b4ff2++)_0x4f68d5[_0x2b4ff2][_0x47ca('0x25')]&&(_0x3b325e[_0x2b4ff2][_0x47ca('0x25')]=_0x4f68d5[_0x2b4ff2][_0x47ca('0x25')]);}[_0x47ca('0x63')](_0x380071){const _0x62f313=JSON[_0x47ca('0x53')](_0x380071),_0x18390c=this[_0x47ca('0xfb')][_0x47ca('0xe9')]['view'][_0x47ca('0x107')],_0x40d936=new _0x328c26(_0x18390c,_0x62f313[_0x47ca('0xe1')](_0x58f573=>this[_0x47ca('0x15')](_0x58f573)));return this['editor'][_0x47ca('0x10d')][_0x47ca('0x13')](_0x40d936);}[_0x47ca('0x15')](_0x5864aa){const _0x2e471c=this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x99')][_0x47ca('0x107')];if(_0x47ca('0x3e')==typeof _0x5864aa)return new _0x23338c(_0x2e471c,_0x5864aa);{const _0x1fd600=_0x5864aa[_0x47ca('0x100')][_0x47ca('0xe1')](_0x38ddeb=>this['_getViewObj'](_0x38ddeb));return new(tt[_0x5864aa[(_0x47ca('0x18'))]]||_0x3e7844)(_0x2e471c,_0x5864aa['name'],_0x5864aa['attributes'],_0x1fd600);}}[_0x47ca('0x78')](_0x12091e,_0xa32b6a=null){const _0x27f540=this['repository'][_0x47ca('0x80')](_0x12091e),_0x4a064d=_0xa32b6a?this['repository']['getRevision'](_0xa32b6a):null,_0x565d67=this['_getRevisionsRange'](_0x27f540,_0x4a064d),_0x3f98d0=_0x565d67[_0x565d67[_0x47ca('0xa7')]-0x1],_0x30b46b=new Map(),_0x111b90={'model':{},'attributes':{},'changes':[]},_0x19cf58=new Set(),_0x393806=new Map();for(let _0x1869d1=_0x565d67[_0x47ca('0xa7')]-0x1;_0x1869d1>=0x0;_0x1869d1--){const _0x2cdebe=_0x565d67[_0x1869d1];for(const _0x45c588 of Object['keys'](_0x2cdebe[_0x47ca('0x62')]))if(_0x2cdebe[_0x47ca('0x62')][_0x45c588][_0x47ca('0x8a')]){const _0x599cc8=_0x2cdebe[_0x47ca('0x62')][_0x45c588]['attachChange'];_0x599cc8[_0x47ca('0x54')]?(_0x19cf58['add'](_0x45c588),_0x393806['has'](_0x45c588)&&_0x393806[_0x47ca('0x5')](_0x45c588)[_0x47ca('0x8')]==_0x599cc8[_0x47ca('0x8')]?_0x393806[_0x47ca('0x2b')](_0x45c588):_0x393806[_0x47ca('0x125')](_0x45c588,_0x599cc8)):_0x393806['has'](_0x45c588)?(_0x19cf58['delete'](_0x45c588),_0x393806[_0x47ca('0x2b')](_0x45c588)):(_0x19cf58[_0x47ca('0x5d')](_0x45c588),_0x393806[_0x47ca('0x125')](_0x45c588,_0x599cc8));}else _0x19cf58[_0x47ca('0x5d')](_0x45c588);}for(const _0x3436c8 of _0x19cf58){const _0x393715=_0x393806[_0x47ca('0xc3')](_0x3436c8)&&!_0x393806[_0x47ca('0x5')](_0x3436c8)['isAttached'];let _0x54f68c=_0x393715?_0x565d67[_0x47ca('0xa7')]-0x1:0x0;const _0x3f6612=_0x393715?-0x1:0x1;for(;_0x565d67[_0x54f68c];){const _0x5f19f7=_0x565d67[_0x54f68c];if(_0x5f19f7['diffData'][_0x3436c8]){const _0x4a06de=_0x393715?_0x5f19f7[_0x47ca('0x62')][_0x3436c8]['attributesBefore']:_0x5f19f7[_0x47ca('0x62')][_0x3436c8][_0x47ca('0x9f')];_0x111b90[_0x47ca('0xb6')][_0x3436c8]=_0x4a06de?_0x31d9d2(_0x4a06de):{};break;}_0x54f68c+=_0x3f6612;}}for(const _0x4dd6df of _0x565d67){_0x4dd6df['model']={};for(const _0x39f82a of _0x4dd6df[_0x47ca('0x6f')])_0x30b46b['set'](_0x39f82a['id'],_0x39f82a);for(const _0x5d5735 of _0x19cf58){const _0x4d6bb2=_0x4dd6df[_0x47ca('0x62')][_0x5d5735]?_0x4dd6df[_0x47ca('0x62')][_0x5d5735]['insertions']:'[]',_0x4a8c3e=_0x4dd6df['diffData'][_0x5d5735]?_0x4dd6df['diffData'][_0x5d5735][_0x47ca('0x7a')]:'[]';_0x4dd6df[_0x47ca('0x6e')][_0x5d5735]={'insertions':this[_0x47ca('0x63')](_0x4d6bb2),'deletions':this[_0x47ca('0x63')](_0x4a8c3e)};}}for(const _0x44cc41 of _0x19cf58){let _0x4cf949=null,_0x3ef438=0x0;const _0x3d9b2d=new Map(Array['from'](_0x27f540['model'][_0x44cc41][_0x47ca('0xc2')][_0x47ca('0x32')])[_0x47ca('0x9c')](([_0x515ee7])=>!_0x515ee7[_0x47ca('0x98')](_0x47ca('0xb4'))));let _0xcbbf54=0x0;for(const _0x148682 of _0x565d67){const _0x5873ec=this[_0x47ca('0xee')](_0x148682[_0x47ca('0x6e')][_0x44cc41]['insertions']);_0x148682==_0x27f540?(_0x4cf949=_0x5873ec,_0x3ef438=_0x4cf949['length'],_0x4cf949[_0x47ca('0x115')](_0x3912c2=>{_0x3912c2['id']=_0xcbbf54++;}),this[_0x47ca('0x30')](_0x4cf949)):this[_0x47ca('0x90')](_0x4cf949,_0x5873ec);const _0x49e292=_0x4cf949[_0x47ca('0x9c')](_0xa9542b=>!_0xa9542b[_0x47ca('0x25')])[_0x47ca('0xe1')](_0x2fd1c9=>_0x2fd1c9['id']);let _0x352a9e=0x0;const _0x575699=this['_makeTape'](_0x148682[_0x47ca('0x6e')][_0x44cc41]['deletions']);_0x575699['forEach'](_0x371ee3=>{_0x371ee3['isRemoved']?_0x371ee3['id']=_0x3ef438++:_0x371ee3['id']=_0x49e292[_0x352a9e++];}),this[_0x47ca('0x30')](_0x575699),this[_0x47ca('0x88')](_0x4cf949,_0x47ca('0x25')),this[_0x47ca('0x88')](_0x575699,_0x47ca('0x10c')),_0x148682==_0x27f540&&this['_markMarkers'](_0x4cf949,_0x3d9b2d),_0x4cf949=this[_0x47ca('0xc')](_0x4cf949,_0x575699),this[_0x47ca('0x40')](_0x4cf949),this[_0x47ca('0x88')](_0x4cf949,_0x47ca('0x10c'));}_0x4cf949=_0x4cf949['filter'](_0x1c9884=>!(_0x1c9884['isAdded']&&_0x1c9884[_0x47ca('0x10c')]));const _0x30e635=new Map(_0x3f98d0[_0x47ca('0x6e')][_0x44cc41]['deletions']['markers']),_0x40a865=new Set(_0x3d9b2d[_0x47ca('0x124')]());for(const _0x3a24f6 of _0x30e635[_0x47ca('0x124')]())_0x40a865[_0x47ca('0x2b')](_0x3a24f6);this[_0x47ca('0x14')](_0x4cf949,_0x40a865),this[_0x47ca('0x16')](_0x4cf949),_0x4cf949=this['_removeMissingPairs'](_0x4cf949),_0x4cf949=this[_0x47ca('0xcf')](_0x4cf949),_0x4cf949=this[_0x47ca('0x89')](_0x4cf949);const {root:_0x4f0662,changes:_0x4fef7f}=this[_0x47ca('0x68')](_0x4cf949,_0x30b46b,_0x44cc41);_0x111b90[_0x47ca('0x6e')][_0x44cc41]=_0x4f0662;const _0x44ac65=_0x393806[_0x47ca('0x5')](_0x44cc41);if(_0x44ac65){const _0x178dbc=_0x30b46b['get'](_0x44ac65['userId']),_0x298c20=new _0xeb78f6({'author':_0x178dbc,'type':_0x44ac65['isAttached']?_0x47ca('0x5d'):_0x47ca('0x93'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x44cc41});_0x4fef7f[_0x47ca('0xfe')](_0x298c20),_0x111b90[_0x47ca('0xb6')][_0x44cc41]['revisionHistoryAttachChange']=_0x298c20['id'];}_0x111b90[_0x47ca('0x3d')]=_0x111b90[_0x47ca('0x3d')][_0x47ca('0xe5')](_0x4fef7f);}return _0x111b90;}[_0x47ca('0x11b')](_0x4edcf7,_0x1c911c){for(let _0x6e5737=0x0;_0x6e5737<_0x4edcf7['length'];_0x6e5737++)for(const [_0x361594,_0x95939]of _0x1c911c)_0x95939[_0x47ca('0x2a')][_0x47ca('0x2')](_0x4edcf7[_0x6e5737][_0x47ca('0xe6')])&&_0x4edcf7[_0x6e5737][_0x47ca('0xd4')][_0x47ca('0x7e')](_0x361594),_0x95939['end']['isEqual'](_0x4edcf7[_0x6e5737]['nextPosition'])&&_0x4edcf7[_0x6e5737]['markersEnd'][_0x47ca('0x7e')](_0x361594);}['_joinTapes'](_0x19a29b,_0x12093a){let _0x275759=[],_0x3a6655=0x0,_0x362fac=0x0;for(;_0x3a6655<_0x19a29b[_0x47ca('0xa7')]||_0x362fac<_0x12093a[_0x47ca('0xa7')];){const _0x3b4464=_0x19a29b[_0x3a6655]||{},_0x76def6=_0x12093a[_0x362fac]||{};if(_0x3b4464['id']==_0x76def6['id'])_0x3a6655++,_0x362fac++,_0x275759[_0x47ca('0x7e')](_0x3b4464);else{if(_0x76def6['isRemoved']&&_0x3b4464[_0x47ca('0x25')]){const {commonTape:_0x3db894,iEnd:_0x288516,jEnd:_0x49da10}=this['_threeWayMerge'](_0x19a29b,_0x3a6655,_0x12093a,_0x362fac);_0x275759=_0x275759[_0x47ca('0xe5')](_0x3db894),_0x3a6655=_0x288516,_0x362fac=_0x49da10;}else _0x76def6[_0x47ca('0x10c')]?(_0x362fac++,_0x275759[_0x47ca('0x7e')](_0x76def6)):(_0x3a6655++,_0x275759[_0x47ca('0x7e')](_0x3b4464));}}return _0x275759;}['_markSuggestions'](_0x16c8c6,_0x21a34b){const _0x4b273f=[];for(let _0x410466=0x0;_0x410466<_0x16c8c6[_0x47ca('0xa7')];_0x410466++){for(let _0x1244fb=0x0;_0x1244fb<_0x16c8c6[_0x410466]['markersStart']['length'];_0x1244fb++){const _0x21dce9=_0x16c8c6[_0x410466][_0x47ca('0xd4')][_0x1244fb];if(!_0x21a34b[_0x47ca('0xc3')](_0x21dce9))continue;const {group:_0x4bc47b,type:_0x375c61,authorId:_0x40c0fa}=_0x11d609(_0x21dce9);_0x47ca('0x81')!=_0x4bc47b||_0x47ca('0xce')!=_0x375c61&&'deletion'!=_0x375c61||(_0x4b273f[_0x47ca('0xfe')]({'type':_0x375c61,'name':_0x21dce9,'userId':_0x40c0fa}),_0x16c8c6[_0x410466][_0x47ca('0xd4')]['splice'](_0x1244fb,0x1),_0x1244fb--);}_0x3c7cef(_0x16c8c6[_0x410466]);for(let _0x4f8a74=0x0;_0x4f8a74<_0x16c8c6[_0x410466][_0x47ca('0x4a')][_0x47ca('0xa7')];_0x4f8a74++){const _0x169c39=_0x16c8c6[_0x410466][_0x47ca('0x4a')][_0x4f8a74];if(!_0x21a34b[_0x47ca('0xc3')](_0x169c39))continue;const {group:_0x3967ed,type:_0x299744}=_0x11d609(_0x169c39);if('revision-suggestion'!=_0x3967ed||_0x47ca('0xce')!=_0x299744&&_0x47ca('0x76')!=_0x299744)continue;_0x16c8c6[_0x410466][_0x47ca('0x4a')][_0x47ca('0x2f')](_0x4f8a74,0x1),_0x4f8a74--;const _0x724962=_0x4b273f[_0x47ca('0x44')](_0x18a68=>_0x18a68[_0x47ca('0x65')]==_0x169c39);_0x724962>-0x1&&_0x4b273f['splice'](_0x724962,0x1);}}function _0x11d609(_0x557bee){const _0x3b5e15=_0x557bee[_0x47ca('0x38')](':');return{'group':_0x3b5e15[0x0],'type':_0x3b5e15[0x1],'subType':_0x3b5e15[_0x47ca('0xa7')]>=0x5?_0x3b5e15[0x2]:null,'id':_0x3b5e15[_0x47ca('0xa7')]<0x5?_0x3b5e15[0x2]:_0x3b5e15[0x3],'authorId':_0x3b5e15[_0x47ca('0xa7')]<0x5?_0x3b5e15[0x3]:_0x3b5e15[0x4],'markerCount':0x6==_0x3b5e15[_0x47ca('0xa7')]?_0x3b5e15[0x5]:null};}function _0x3c7cef(_0x381ef9){for(let _0x23d50e=0x0;_0x23d50e<_0x4b273f['length'];_0x23d50e++){if(_0x381ef9[_0x47ca('0x25')]&&_0x47ca('0xce')==_0x4b273f[_0x23d50e][_0x47ca('0x18')])return _0x381ef9[_0x47ca('0x22')]=_0x4b273f[_0x23d50e],void delete _0x381ef9['isAdded'];if(!_0x381ef9[_0x47ca('0x25')]&&!_0x381ef9['isRemoved']&&_0x47ca('0x76')==_0x4b273f[_0x23d50e]['type'])return void(_0x381ef9[_0x47ca('0x20')]=_0x4b273f[_0x23d50e]);}}}['_setDistance'](_0x3efebd,_0x55e91b){let _0x1e1b54=0x0,_0x5c294e=!0x1;const _0x4bede9=new Map();for(const _0x362c6a of _0x3efebd)_0x362c6a[_0x55e91b]?_0x5c294e&&(_0x1e1b54++,_0x5c294e=!0x1):(_0x1e1b54++,_0x5c294e=!0x0),_0x4bede9[_0x47ca('0x125')](_0x362c6a['id'],_0x1e1b54);for(let _0x39f4d4=0x0;_0x39f4d4<_0x3efebd[_0x47ca('0xa7')];_0x39f4d4++){if(_0x47ca('0x10c')==_0x55e91b&&_0x3efebd[_0x39f4d4][_0x47ca('0x25')]||_0x47ca('0x25')==_0x55e91b&&_0x3efebd[_0x39f4d4]['isRemoved'])continue;if(_0x47ca('0x96')==_0x3efebd[_0x39f4d4][_0x47ca('0x18')]){_0x3efebd[_0x39f4d4][_0x47ca('0xdc')]=0x0;continue;}const _0x2d63b6=_0x4bede9[_0x47ca('0x5')](_0x3efebd[_0x39f4d4][_0x47ca('0x17')]),_0x2e76c7=_0x4bede9[_0x47ca('0x5')](_0x3efebd[_0x39f4d4]['id']);_0x3efebd[_0x39f4d4][_0x47ca('0xdc')]=_0x2d63b6-_0x2e76c7;}}[_0x47ca('0xcc')](_0x5212a6,_0x1793f0,_0x239cfc=!0x1){const _0x3ec53a=[];let _0x4595dc=this[_0x47ca('0xea')][_0x47ca('0x110')](_0x5212a6),_0x285791=this[_0x47ca('0xea')]['getIndex'](_0x1793f0);for(-0x1==_0x285791&&(_0x285791=this[_0x47ca('0xea')][_0x47ca('0x28')][_0x47ca('0xa7')],_0x239cfc=!0x1);_0x4595dc<_0x285791;)_0x3ec53a[_0x47ca('0x7e')](this['repository']['getRevision'](_0x4595dc)),_0x4595dc++;return _0x239cfc&&_0x3ec53a['push'](this[_0x47ca('0xea')][_0x47ca('0x80')](_0x4595dc)),_0x3ec53a;}[_0x47ca('0xa9')](_0x2f0963,_0x26828d,_0x454053,_0x2b6050){const _0x5f132a=this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x3c')];let _0x1b0053=_0x26828d;for(;_0x2f0963[_0x1b0053]&&_0x2f0963[_0x1b0053][_0x47ca('0x25')];)_0x1b0053++;let _0x447afa=_0x2b6050;for(;_0x454053[_0x447afa]&&_0x454053[_0x447afa]['isRemoved'];)_0x447afa++;_0x1906a5(_0x2f0963,_0x26828d,_0x1b0053),_0x1906a5(_0x454053,_0x2b6050,_0x447afa);const _0x50fbef=_0x454053[_0x47ca('0xd')](_0x2b6050,_0x447afa)['concat'](_0x2f0963[_0x47ca('0xd')](_0x26828d,_0x1b0053));return _0x50fbef[_0x47ca('0x39')]((_0x46e5bb,_0x4a1491)=>_0x46e5bb[_0x47ca('0xca')]!=_0x4a1491[_0x47ca('0xca')]?_0x46e5bb[_0x47ca('0xca')]-_0x4a1491[_0x47ca('0xca')]:_0x46e5bb[_0x47ca('0xb2')]!=_0x4a1491[_0x47ca('0xb2')]?_0x46e5bb[_0x47ca('0xb2')]-_0x4a1491['level']:_0x46e5bb[_0x47ca('0xdc')]!=_0x4a1491['distance']?_0x4a1491[_0x47ca('0xdc')]-_0x46e5bb[_0x47ca('0xdc')]:!!_0x46e5bb['isAdded']!=!!_0x4a1491['isAdded']?-0x1==_0x46e5bb[_0x47ca('0xca')]||0x0==_0x46e5bb['side']?_0x46e5bb[_0x47ca('0x25')]?-0x1:0x1:_0x46e5bb[_0x47ca('0x25')]?0x1:-0x1:_0x46e5bb['index']-_0x4a1491[_0x47ca('0x23')]),{'commonTape':_0x50fbef,'iEnd':_0x1b0053,'jEnd':_0x447afa};function _0x1906a5(_0x38eacb,_0x269c73,_0x179a6d){let _0x348121=-0x1,_0x4dbdbe=Number[_0x47ca('0x75')],_0x402d31=!0x0;for(let _0x10fd06=_0x269c73;_0x10fd06<_0x179a6d;_0x10fd06++)if(_0x5f132a[_0x47ca('0xe2')](_0x38eacb[_0x10fd06]['item'])||(_0x402d31=!0x1),_0x38eacb[_0x10fd06][_0x47ca('0xf6')][_0x47ca('0x114')]<_0x269c73&&(_0x348121=_0x10fd06),_0x38eacb[_0x10fd06][_0x47ca('0xf6')][_0x47ca('0xdf')]>=_0x179a6d){_0x4dbdbe=_0x10fd06;break;}_0x402d31&&(_0x348121=_0x179a6d-0x1);for(let _0x559775=_0x269c73;_0x559775<_0x179a6d;_0x559775++)_0x38eacb[_0x559775][_0x47ca('0xca')]=_0x559775<=_0x348121?-0x1:_0x559775<_0x4dbdbe?0x0:0x1,_0x38eacb[_0x559775][_0x47ca('0x23')]=_0x559775;let _0x4808f3=0x0;for(let _0x356205=_0x269c73;_0x356205<=_0x348121;_0x356205++)0x0==_0x38eacb[_0x356205][_0x47ca('0xdc')]?_0x38eacb[_0x356205][_0x47ca('0xb2')]=_0x4808f3:(_0x4808f3++,_0x38eacb[_0x356205][_0x47ca('0xb2')]=_0x4808f3,_0x4808f3++);for(let _0x557482=_0x269c73;_0x557482<_0x179a6d;_0x557482++)0x0==_0x38eacb[_0x557482][_0x47ca('0xca')]&&(_0x38eacb[_0x557482]['level']=_0x4808f3);_0x4808f3=0x0;for(let _0x18150d=_0x179a6d-0x1;_0x18150d>=_0x4dbdbe;_0x18150d--)0x0==_0x38eacb[_0x18150d][_0x47ca('0xdc')]?_0x38eacb[_0x18150d][_0x47ca('0xb2')]=_0x4808f3:(_0x4808f3--,_0x38eacb[_0x18150d][_0x47ca('0xb2')]=_0x4808f3,_0x4808f3--);}}[_0x47ca('0x16')](_0x46f506){const _0x4689f9=new Map(),_0x5d8e56=this[_0x47ca('0xfb')]['model'][_0x47ca('0x3c')];for(let _0x3dbd79=0x1;_0x3dbd79<_0x46f506['length'];_0x3dbd79++){let _0x2de30b,_0x561e4e,_0x396fa2;const _0x347a64=_0x46f506[_0x3dbd79],_0x3469a8=_0x46f506[_0x3dbd79-0x1];if(_0x47ca('0x96')==_0x347a64[_0x47ca('0x18')])continue;if(_0x347a64['type']!=_0x3469a8[_0x47ca('0x18')])continue;if(!_0x5d8e56[_0x47ca('0xd0')](_0x3469a8[_0x47ca('0xf6')])||_0x5d8e56['isLimit'](_0x3469a8['item']))continue;if(!_0x5d8e56[_0x47ca('0xd0')](_0x347a64['item'])||_0x5d8e56[_0x47ca('0xa4')](_0x347a64[_0x47ca('0xf6')]))continue;if((_0x46f506[_0x3dbd79][_0x47ca('0x25')]||_0x46f506[_0x3dbd79][_0x47ca('0x22')])&&_0x46f506[_0x3dbd79-0x1]['isRemoved'])_0x2de30b=_0x46f506[_0x3dbd79],_0x561e4e=_0x46f506[_0x3dbd79-0x1],_0x396fa2=_0x3dbd79-0x1;else{if(!_0x46f506[_0x3dbd79][_0x47ca('0x10c')]||!_0x46f506[_0x3dbd79-0x1]['isAdded']&&!_0x46f506[_0x3dbd79-0x1][_0x47ca('0x22')])continue;_0x2de30b=_0x46f506[_0x3dbd79-0x1],_0x561e4e=_0x46f506[_0x3dbd79],_0x396fa2=_0x3dbd79;}const _0x57cd1e=_0x2de30b[_0x47ca('0xb2')]==_0x561e4e[_0x47ca('0xb2')],_0x1a83b3=Math['abs'](_0x2de30b[_0x47ca('0xb2')])<Math[_0x47ca('0xbe')](_0x561e4e['level'])&&0x0==_0x561e4e[_0x47ca('0xdc')];(_0x57cd1e||_0x1a83b3)&&(_0x4689f9['set'](_0x561e4e['id'],_0x2de30b['id']),_0x46f506['splice'](_0x396fa2,0x1),_0x3dbd79--,_0x2de30b[_0x47ca('0x25')]=!0x1);}for(let _0x27454f=0x0;_0x27454f<_0x46f506['length'];_0x27454f++)_0x4689f9[_0x47ca('0xc3')](_0x46f506[_0x27454f][_0x47ca('0x17')])&&(_0x46f506[_0x27454f]['pairId']=_0x4689f9[_0x47ca('0x5')](_0x46f506[_0x27454f][_0x47ca('0x17')]));}['_removeMissingPairs'](_0x381d63){const _0x52a55e=new Set(_0x381d63[_0x47ca('0xe1')](_0x29866a=>_0x29866a['id']));for(let _0x2540e1=0x0;_0x2540e1<_0x381d63[_0x47ca('0xa7')];_0x2540e1++)_0x52a55e[_0x47ca('0xc3')](_0x381d63[_0x2540e1][_0x47ca('0x17')])||0x0==_0x381d63[_0x2540e1][_0x47ca('0xdc')]||(_0x381d63[_0x2540e1][_0x47ca('0xfc')]=!0x0);return _0x381d63[_0x47ca('0x9c')](_0x3ec01c=>!_0x3ec01c[_0x47ca('0xfc')]);}[_0x47ca('0xcf')](_0x4a4d1c){const _0x312514=new Set();for(let _0x45de44=0x0;_0x45de44<_0x4a4d1c[_0x47ca('0xa7')];_0x45de44++){if(_0x312514[_0x47ca('0xc3')](_0x4a4d1c[_0x45de44]['id'])&&_0x4a4d1c[_0x45de44]['isRemoved']&&(_0x4a4d1c[_0x45de44][_0x47ca('0xfc')]=!0x0),_0x4a4d1c[_0x45de44]['isIncorrect'])continue;if(0x0==_0x4a4d1c[_0x45de44][_0x47ca('0xdc')])continue;if(_0x47ca('0x34')!=_0x4a4d1c[_0x45de44][_0x47ca('0x18')])continue;if(null==_0x4a4d1c[_0x45de44][_0x47ca('0x17')])continue;let _0x5c8efb=_0x45de44+0x1,_0x5d8af0=0x0;for(;_0x4a4d1c[_0x5c8efb]['id']!=_0x4a4d1c[_0x45de44]['pairId'];)_0x47ca('0x34')==_0x4a4d1c[_0x5c8efb][_0x47ca('0x18')]?_0x5d8af0++:_0x47ca('0xb5')==_0x4a4d1c[_0x5c8efb][_0x47ca('0x18')]&&_0x5d8af0--,_0x5c8efb++;if(0x0!=_0x5d8af0){if(_0x4a4d1c[_0x45de44][_0x47ca('0x10c')])_0x4a4d1c[_0x45de44]['isIncorrect']=!0x0;else for(;_0x5c8efb!=_0x45de44;)_0x4a4d1c[_0x5c8efb][_0x47ca('0x10c')]&&0x0!=_0x4a4d1c[_0x5c8efb][_0x47ca('0xdc')]&&(_0x4a4d1c[_0x5c8efb][_0x47ca('0xfc')]=!0x0,_0x312514['add'](_0x4a4d1c[_0x5c8efb][_0x47ca('0x17')])),_0x5c8efb--;}}return _0x4a4d1c['filter'](_0x58e19d=>!_0x58e19d['isIncorrect']);}[_0x47ca('0x89')](_0xf58455){const _0x369591=this[_0x47ca('0xfb')][_0x47ca('0x6e')]['schema'];for(let _0x3e3dfa=0x0;_0x3e3dfa<_0xf58455['length'];_0x3e3dfa++){if(!(_0xf58455[_0x3e3dfa][_0x47ca('0x25')]||_0xf58455[_0x3e3dfa][_0x47ca('0x22')]||_0xf58455[_0x3e3dfa][_0x47ca('0x10c')]||_0xf58455[_0x3e3dfa][_0x47ca('0x20')]))continue;if(0x0==_0xf58455[_0x3e3dfa][_0x47ca('0xdc')])continue;const _0x35589f=_0xf58455[_0x3e3dfa][_0x47ca('0xf6')];_0x369591[_0x47ca('0xd0')](_0x35589f)||_0x369591[_0x47ca('0xa4')](_0x35589f)||(_0xf58455[_0x3e3dfa][_0x47ca('0x25')]&&delete _0xf58455[_0x3e3dfa]['isAdded'],_0xf58455[_0x3e3dfa][_0x47ca('0x22')]&&delete _0xf58455[_0x3e3dfa][_0x47ca('0x22')],_0xf58455[_0x3e3dfa][_0x47ca('0x20')]&&delete _0xf58455[_0x3e3dfa][_0x47ca('0x20')],_0xf58455[_0x3e3dfa][_0x47ca('0x10c')]&&(_0xf58455[_0x3e3dfa][_0x47ca('0xfc')]=!0x0));}return _0xf58455[_0x47ca('0x9c')](_0x192bca=>!_0x192bca[_0x47ca('0xfc')]);}[_0x47ca('0x68')](_0x5d272c,_0x551952,_0x54f065){const _0x5856e3=new _0x249b21(),_0x20abbb=[],_0x23118b=new Map(),_0x28c7f7=this[_0x47ca('0xfb')][_0x47ca('0x6e')],_0x31356d=_0x28c7f7[_0x47ca('0x3c')],_0x383924=[_0x5856e3],_0xa93c7b={},_0x4fdd42={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x52fdea=null;const _0x4e2aaa=[0x0];for(let _0x4d00a0=0x0;_0x4d00a0<_0x5d272c[_0x47ca('0xa7')];_0x4d00a0++){let _0x46a24e,_0x3436e7;if(_0x47ca('0x34')===_0x5d272c[_0x4d00a0][_0x47ca('0x18')]){_0x46a24e=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa);const _0x168ed0=new _0x4a66fb(_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0x65')],_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0xd9')]());_0x383924[0x0]['_appendChild'](_0x168ed0),_0x4e2aaa[_0x47ca('0x7e')](0x0),_0x383924[_0x47ca('0xfe')](_0x168ed0),_0x3436e7=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa),_0x52fdea=null;}else{if('elementEnd'===_0x5d272c[_0x4d00a0][_0x47ca('0x18')])_0x383924[_0x47ca('0x92')](),_0x46a24e=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa),_0x4e2aaa[_0x47ca('0xc5')](),_0x4e2aaa[_0x4e2aaa[_0x47ca('0xa7')]-0x1]++,_0x3436e7=_0x28c7f7['createPositionFromPath'](_0x5856e3,_0x4e2aaa),_0x52fdea=null;else{if(_0x46a24e=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa),_0x52fdea&&_0x3f3748(_0x52fdea,_0x5d272c[_0x4d00a0][_0x47ca('0xf6')]))_0x52fdea['_data']+=_0x5d272c[_0x4d00a0]['item'][_0x47ca('0x10d')];else{const _0x8fc358=new _0x24f32e(_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0x10d')],_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0xd9')]());_0x383924[0x0][_0x47ca('0x82')](_0x8fc358),_0x52fdea=_0x8fc358;}_0x4e2aaa[_0x4e2aaa['length']-0x1]+=_0x5d272c[_0x4d00a0][_0x47ca('0xf6')]['offsetSize'],_0x3436e7=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa);}}for(const _0x2187e4 of _0x5d272c[_0x4d00a0][_0x47ca('0xd4')])_0x23118b[_0x47ca('0x125')](_0x2187e4,{'start':_0x46a24e,'end':null});_0x3a0ff8(_0x47ca('0x20'),_0x4d00a0,_0x46a24e,_0x3436e7),_0x3a0ff8(_0x47ca('0x22'),_0x4d00a0,_0x46a24e,_0x3436e7),_0x3a0ff8('isRemoved',_0x4d00a0,_0x46a24e,_0x3436e7),_0x3a0ff8('isAdded',_0x4d00a0,_0x46a24e,_0x3436e7);for(const _0x39d761 of _0x5d272c[_0x4d00a0][_0x47ca('0x4a')]){_0x23118b['get'](_0x39d761)[_0x47ca('0x29')]=_0x3436e7;}}for(const [_0x4c95c9,_0x1d1581]of _0x23118b){const _0x4cc09f=this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x24')](_0x1d1581[_0x47ca('0x2a')],_0x1d1581[_0x47ca('0x29')]);_0x5856e3[_0x47ca('0x32')]['set'](_0x4c95c9,_0x4cc09f);}return _0x20abbb[_0x47ca('0x39')]((_0x30355b,_0x5ba7d2)=>{const _0x4a47aa=_0x5856e3[_0x47ca('0x32')]['get'](_0x47ca('0xb4')+_0x30355b['id']),_0x29dc4c=_0x5856e3['markers']['get'](_0x47ca('0xb4')+_0x5ba7d2['id']);return _0x4a47aa[_0x47ca('0x2a')]['isBefore'](_0x29dc4c[_0x47ca('0x2a')])?-0x1:_0x4a47aa[_0x47ca('0x2a')]['isAfter'](_0x29dc4c['start'])?0x1:_0x4a47aa[_0x47ca('0x29')][_0x47ca('0x11a')](_0x29dc4c[_0x47ca('0x29')])?-0x1:_0x4a47aa[_0x47ca('0x29')]['isAfter'](_0x29dc4c[_0x47ca('0x29')])?0x1:_0x47ca('0x5d')===_0x30355b[_0x47ca('0x18')]?-0x1:0x1;}),{'root':_0x5856e3,'changes':_0x20abbb};function _0x3a0ff8(_0x31c757,_0x1a4260,_0x4e521f,_0x527a2e){const _0x43f9ab=!!_0x5d272c[_0x1a4260][_0x31c757],_0x48afd6=_0x43f9ab?_0x5d272c[_0x1a4260][_0x31c757][_0x47ca('0x8')]:null,_0x224799=_0x1a4260===_0x5d272c[_0x47ca('0xa7')]-0x1,_0x4bfa5a=_0x4fdd42[_0x31c757][0x0],_0x560e78=_0x31356d[_0x47ca('0x79')](_0x5d272c[_0x1a4260]['item']);!_0xa93c7b[_0x31c757]&&_0x43f9ab?_0xa93c7b[_0x31c757]={'start':_0x4e521f,'tapeItem':_0x5d272c[_0x1a4260],'userId':_0x48afd6,'type':_0x31c757}:_0xa93c7b[_0x31c757]&&!_0x43f9ab?(_0xa93c7b[_0x31c757][_0x47ca('0x29')]=_0x4e521f,_0x22dc24(_0xa93c7b[_0x31c757]),_0xa93c7b[_0x31c757]=null):_0xa93c7b[_0x31c757]&&_0x43f9ab&&_0xa93c7b[_0x31c757][_0x47ca('0x8')]!==_0x48afd6&&(_0xa93c7b[_0x31c757]['end']=_0x4e521f,_0x4bfa5a&&_0x4bfa5a[_0x47ca('0x8')]===_0xa93c7b[_0x31c757]['userId']||_0x22dc24(_0xa93c7b[_0x31c757]),_0xa93c7b[_0x31c757]={'start':_0x4e521f,'tapeItem':_0x5d272c[_0x1a4260],'userId':_0x48afd6,'type':_0x31c757}),_0xa93c7b[_0x31c757]&&_0x560e78&&('elementStart'!==_0x5d272c[_0x1a4260]['type']||_0x4bfa5a&&_0x4bfa5a[_0x47ca('0x8')]===_0x48afd6||_0x4fdd42[_0x31c757][_0x47ca('0xfe')]({'userId':_0x48afd6,'object':_0x5d272c[_0x1a4260][_0x47ca('0xf6')],'change':_0xa93c7b[_0x31c757]}),_0x47ca('0xb5')===_0x5d272c[_0x1a4260][_0x47ca('0x18')]&&_0x4bfa5a&&_0x4bfa5a['object']===_0x5d272c[_0x1a4260][_0x47ca('0xf6')]&&(_0x4fdd42[_0x31c757][_0x47ca('0x92')](),_0xa93c7b[_0x31c757]=_0x4bfa5a['change'])),_0xa93c7b[_0x31c757]&&_0x224799&&(_0xa93c7b[_0x31c757]['end']=_0x527a2e,_0x22dc24(_0xa93c7b[_0x31c757]),_0xa93c7b[_0x31c757]=null);}function _0x22dc24({start:_0x1f5152,end:_0x10dcdd,tapeItem:_0x1b6038,userId:_0x2b0db8,type:_0x521419}){const _0x3bf9b7=_0x1b6038['item'],_0x288a4d=_0x28c7f7[_0x47ca('0x3c')][_0x47ca('0xd0')](_0x3bf9b7)&&!_0x28c7f7[_0x47ca('0x3c')][_0x47ca('0xa4')](_0x3bf9b7),_0x22787d=_0x1f5152[_0x47ca('0xe4')]==_0x10dcdd[_0x47ca('0x127')]&&_0x10dcdd[_0x47ca('0x45')];if(_0x288a4d&&_0x22787d)return;const _0x296380=_0x28c7f7[_0x47ca('0x24')](_0x1f5152,_0x10dcdd),_0x4564c6=_0x551952['get'](_0x2b0db8),_0x321d72=new _0xeb78f6({'author':_0x4564c6,'type':_0x47ca('0x25')==_0x521419||_0x47ca('0x22')==_0x521419?_0x47ca('0x5d'):_0x47ca('0x93'),'data':{'isSuggestion':'isAddSuggestion'==_0x521419||_0x47ca('0x20')==_0x521419},'createdAt':new Date(),'rootName':_0x54f065});_0x20abbb[_0x47ca('0x7e')](_0x321d72),_0x5856e3[_0x47ca('0x32')][_0x47ca('0x125')](_0x47ca('0xb4')+_0x321d72['id'],_0x296380);}function _0x3f3748(_0x37f9d7,_0x2e149f){const _0x1e6ac5=_0x37f9d7[_0x47ca('0xd9')](),_0x3a5d0e=_0x2e149f['getAttributes']();for(const _0x3cfaa9 of _0x1e6ac5){if(_0x3cfaa9[0x1]!==_0x2e149f[_0x47ca('0x117')](_0x3cfaa9[0x0]))return!0x1;_0x3a5d0e[_0x47ca('0x6c')]();}return _0x3a5d0e[_0x47ca('0x6c')]()['done'];}}[_0x47ca('0xd8')](){this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0xb1')]({'view':_0x47ca('0x69')}),this[_0x47ca('0xfb')][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xeb'))[_0x47ca('0x121')]({'model':_0x47ca('0x69'),'view':_0x2faea5=>{const _0x257ffd=_0x2faea5[_0x47ca('0xf0')]['split'](':')[0x1],_0x4b6b43=this[_0x47ca('0xed')](_0x257ffd);if(!_0x4b6b43)return null;const _0x446a12=_0x47ca('0x5d')==_0x4b6b43[_0x47ca('0x18')]?_0x47ca('0xce'):'deletion',_0x515078=[_0x47ca('0xa2'),_0x47ca('0x4f')+_0x446a12];return _0x4b6b43[_0x47ca('0x10d')][_0x47ca('0xb')]&&_0x515078[_0x47ca('0x7e')](_0x47ca('0x4f')+_0x446a12+'-new'),this[_0x47ca('0x116')]==_0x4b6b43&&_0x515078[_0x47ca('0x7e')](_0x47ca('0x2e')),{'classes':_0x515078,'attributes':{'data-change-id':_0x257ffd}};}}),this[_0x47ca('0xfb')][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0x5d')](_0x26dc27=>{_0x26dc27['on'](_0x47ca('0x43'),(_0x435dd9,_0x9370f7,_0x523f58)=>{const _0x1c99ca=_0x9370f7[_0x47ca('0xf2')]['getChild'](0x0);if(!_0x1c99ca||!_0x1c99ca['is'](_0x47ca('0x4'),_0x47ca('0x9e')))return;if(!_0x523f58[_0x47ca('0x56')][_0x47ca('0x9b')](_0x1c99ca,{'attributes':[_0x47ca('0x3a'),'vid_end']}))return;const _0x53b9d9=_0x9370f7['modelRange'][_0x47ca('0x2a')][_0x47ca('0xe4')];_0x523f58[_0x47ca('0x8c')]['setAttribute'](_0x47ca('0x3a'),_0x1c99ca[_0x47ca('0x117')](_0x47ca('0x3a')),_0x53b9d9),_0x523f58[_0x47ca('0x8c')][_0x47ca('0xde')](_0x47ca('0x102'),_0x1c99ca[_0x47ca('0x117')](_0x47ca('0x102')),_0x53b9d9);},{'priority':'low'});}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0x5d')](_0x47631b=>{_0x47631b['on'](_0x47ca('0x4'),(_0x45f5ef,_0xda0f9e,_0x22cf11)=>{if(!_0x22cf11['consumable'][_0x47ca('0x9b')](_0xda0f9e[_0x47ca('0xf2')],{'attributes':[_0x47ca('0x3a'),_0x47ca('0x102')]}))return;if(_0xda0f9e['modelRange']['isCollapsed'])return;const _0x288e79=_0xda0f9e[_0x47ca('0xb3')][_0x47ca('0x2a')][_0x47ca('0xe4')];_0x288e79[_0x47ca('0xb7')]('vid_start')||_0x288e79['hasAttribute']('vid')||(_0x22cf11[_0x47ca('0x8c')][_0x47ca('0xde')](_0x47ca('0x3a'),_0xda0f9e[_0x47ca('0xf2')][_0x47ca('0x117')](_0x47ca('0x3a')),_0x288e79),_0x22cf11[_0x47ca('0x8c')][_0x47ca('0xde')](_0x47ca('0x102'),_0xda0f9e[_0x47ca('0xf2')][_0x47ca('0x117')](_0x47ca('0x102')),_0x288e79));},{'priority':_0x47ca('0x84')});}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0xbf')]({'view':{'name':_0x47ca('0x73'),'attributes':{'vid':!0x0}},'model':{'key':_0x47ca('0x72'),'value':_0x4b7f42=>_0x4b7f42[_0x47ca('0x117')](_0x47ca('0x72'))}}),this[_0x47ca('0xfb')]['model']['schema']['on'](_0x47ca('0xf7'),(_0x4f06f7,[,_0x3e96e4])=>{[_0x47ca('0x3a'),'vid_end',_0x47ca('0x72')]['includes'](_0x3e96e4)&&(_0x4f06f7[_0x47ca('0xab')]=!0x0,_0x4f06f7[_0x47ca('0x41')]());},{'priority':_0x47ca('0x49')}),this[_0x47ca('0xfb')][_0x47ca('0x105')]['for'](_0x47ca('0x83'))[_0x47ca('0x5d')](_0x8c1f95=>{_0x8c1f95['on'](_0x47ca('0xda'),(_0x54eccd,_0x407e68,_0x5c6e58)=>{if('\x20'!=_0x407e68[_0x47ca('0xf6')][_0x47ca('0x10d')]||_0x407e68[_0x47ca('0xf6')][_0x47ca('0x127')][_0x47ca('0x108')]>0x1)return;if(!_0x5c6e58[_0x47ca('0x56')][_0x47ca('0x9b')](_0x407e68['item'],_0x54eccd[_0x47ca('0x65')]))return;const _0x84a71c=_0x5c6e58['writer'],_0x1b87f6=_0x5c6e58[_0x47ca('0x61')][_0x47ca('0x12')](_0x407e68['range']);_0x84a71c[_0x47ca('0x0')](_0x1b87f6,_0x84a71c[_0x47ca('0xbb')](_0x47ca('0x73')));});}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0x83'))['markerToData']({'model':_0x47ca('0x69')}),this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x10')]['on'](_0x47ca('0x70'),function(_0x151c54){const _0x23959b=_0x151c54[_0x47ca('0x8e')][_0x47ca('0x5')](_0x47ca('0xe'));return(_0x358360,_0x334332,_0x16ae9e)=>{const _0x44c088=_0x334332[_0x47ca('0xf0')][_0x47ca('0x38')](':')[0x1],_0x18fa3b=_0x23959b['_getChangeFromId'](_0x44c088);if(!_0x18fa3b)return null;const _0x47eb30=_0x47ca('0x5d')==_0x18fa3b['type']?_0x47ca('0x38'):_0x47ca('0x123');if(!_0x16ae9e[_0x47ca('0x56')]['test'](_0x334332['markerRange'],_0x358360[_0x47ca('0x65')]))return;const _0x2a842a=_0x334332[_0x47ca('0x86')][_0x47ca('0xa5')](),_0x44c1aa=_0x334332[_0x47ca('0x86')][_0x47ca('0x2a')],_0x19f525=_0x151c54[_0x47ca('0x6e')]['schema'];let _0x454702=null,_0x402569=null,_0xaf54e0=!0x1,_0x1d8799=!0x1;for(const _0xab68d3 of _0x2a842a){const _0x53b024=_0xab68d3[_0x47ca('0xf6')];_0xaf54e0=_0xaf54e0||_0x19f525['isContent'](_0x53b024);const _0x1adc85=_0x16ae9e[_0x47ca('0x61')]['toViewElement'](_0x53b024);if(_0x1adc85&&_0x1adc85[_0x47ca('0xd2')](_0x47ca('0xf')))return;_0x47ca('0xb5')==_0xab68d3[_0x47ca('0x18')]&&(_0x19f525[_0x47ca('0xd0')](_0x53b024)&&!_0x19f525[_0x47ca('0xa4')](_0x53b024)&&(_0x53b024[_0x47ca('0xd3')]||_0x44c1aa['isAtEnd']?_0x454702&&_0x454702[_0x47ca('0x127')]==_0x53b024||(_0x454702=_0x53b024,_0xa709d1(_0xab68d3[_0x47ca('0xe6')]),_0x1d8799=!0x0):_0x402569=_0x402569||_0xab68d3['previousPosition']));}function _0xa709d1(_0x1131c8){const _0x38e26d=_0x16ae9e[_0x47ca('0x8c')]['createUIElement']('span',{'class':_0x47ca('0x4f')+_0x47eb30}),_0x25a235=_0x16ae9e[_0x47ca('0x61')][_0x47ca('0x6')](_0x1131c8);_0x18fa3b[_0x47ca('0x10d')][_0x47ca('0xb')]&&_0x16ae9e['writer'][_0x47ca('0x19')]('ck-suggestion-marker-'+_0x47eb30+_0x47ca('0xc0'),_0x38e26d),_0x23959b['activeChange']==_0x18fa3b&&_0x16ae9e[_0x47ca('0x8c')][_0x47ca('0x19')](_0x47ca('0x2e'),_0x38e26d),_0x16ae9e[_0x47ca('0x8c')]['insert'](_0x25a235,_0x38e26d),_0x16ae9e[_0x47ca('0x61')][_0x47ca('0xa1')](_0x38e26d,_0x334332[_0x47ca('0xf0')]);}_0xaf54e0||_0x1d8799||!_0x402569||_0xa709d1(_0x402569);};}(this['editor']),{'priority':_0x47ca('0x8d')}),this['editor'][_0x47ca('0xe9')][_0x47ca('0x10')]['on'](_0x47ca('0x8b'),(_0x34e4ff,_0x2d090,_0x1b11ef)=>{const _0x38ec9a=_0x1b11ef[_0x47ca('0x61')]['markerNameToElements'](_0x2d090[_0x47ca('0xf0')]);if(_0x38ec9a)for(const _0x38e47d of _0x38ec9a)(_0x38e47d['hasClass'](_0x47ca('0xdd'))||_0x38e47d[_0x47ca('0xc4')](_0x47ca('0xac')))&&(_0x1b11ef[_0x47ca('0x61')][_0x47ca('0x120')](_0x38e47d,_0x2d090['markerName']),_0x1b11ef[_0x47ca('0x8c')][_0x47ca('0x93')](_0x38e47d));},{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x10')]['on']('addMarker:revision',(_0x528442,_0x25b122,_0x528b24)=>{const _0x4db9d2=_0x25b122[_0x47ca('0xf0')][_0x47ca('0x38')](':')[0x1],_0x51810d=this[_0x47ca('0xed')](_0x4db9d2);if(!_0x51810d)return null;const _0x1a195a='add'==_0x51810d['type']?'split':_0x47ca('0x123');if(_0x528b24[_0x47ca('0x56')][_0x47ca('0xb8')](_0x25b122[_0x47ca('0x86')],_0x528442[_0x47ca('0x65')]))for(const _0x56d0c4 of _0x25b122['markerRange'][_0x47ca('0x64')]()){if(!_0x56d0c4['is']('element','softBreak'))continue;const _0x1ebc6b=_0x528b24[_0x47ca('0x8c')]['createUIElement'](_0x47ca('0x73'),{'class':'ck-suggestion-marker-'+_0x1a195a}),_0x18e0da=_0x528b24[_0x47ca('0x61')][_0x47ca('0x6')](this['editor'][_0x47ca('0x6e')][_0x47ca('0xf9')](_0x56d0c4));_0x51810d[_0x47ca('0x10d')]['isSuggestion']&&_0x528b24[_0x47ca('0x8c')]['addClass'](_0x47ca('0x4f')+_0x1a195a+_0x47ca('0xc0'),_0x1ebc6b),this[_0x47ca('0x116')]==_0x51810d&&_0x528b24[_0x47ca('0x8c')][_0x47ca('0x19')]('ck-suggestion-marker--active',_0x1ebc6b),_0x528b24['writer'][_0x47ca('0x5c')](_0x18e0da,_0x1ebc6b),_0x528b24['mapper'][_0x47ca('0xa1')](_0x1ebc6b,_0x25b122[_0x47ca('0xf0')]);}},{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')]['model'][_0x47ca('0x107')]['on'](_0x47ca('0xba'),()=>{this['editor'][_0x47ca('0xe9')][_0x47ca('0x99')][_0x47ca('0xba')](_0x36d79c=>{for(const _0x3383bd of this[_0x47ca('0xfb')][_0x47ca('0x6e')]['document'][_0x47ca('0xd5')]()){const _0x2068d0=this['editor'][_0x47ca('0x6e')][_0x47ca('0x107')]['getRoot'](_0x3383bd),_0x1b646d=this['editor'][_0x47ca('0xe9')][_0x47ca('0x99')]['document'][_0x47ca('0x26')](_0x3383bd);if(_0x1b646d){const _0x45c446=_0x2068d0[_0x47ca('0x117')](_0x47ca('0xfd'));if(_0x36d79c[_0x47ca('0xf4')](_0x47ca('0x46'),_0x1b646d),_0x36d79c[_0x47ca('0xc8')](_0x47ca('0x5a'),_0x1b646d),_0x36d79c[_0x47ca('0xc8')](_0x47ca('0x27'),_0x1b646d),_0x36d79c['removeClass']('ck-revision-history-root--active',_0x1b646d),_0x45c446){const _0x1eeeec=this['_getChangeFromId'](_0x45c446);if(!_0x1eeeec)return null;_0x36d79c[_0x47ca('0xde')]('data-change-id',_0x45c446,_0x1b646d),_0x36d79c[_0x47ca('0x19')](_0x47ca('0x1')+_0x1eeeec[_0x47ca('0x18')],_0x1b646d),this[_0x47ca('0x116')]==_0x1eeeec&&_0x36d79c[_0x47ca('0x19')](_0x47ca('0x55'),_0x1b646d);}}}});}),this[_0x47ca('0xfb')][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))['dataToMarker']({'view':'comment','model':_0x268d69=>_0x47ca('0x59')+_0x268d69,'converterPriority':_0x47ca('0x49')}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))['dataToMarker']({'view':_0x47ca('0xff'),'model':_0x5bb99a=>'revision-suggestion:'+_0x5bb99a,'converterPriority':_0x47ca('0x49')}),this['editor'][_0x47ca('0x105')]['for']('dataDowncast')[_0x47ca('0xd7')]({'model':_0x47ca('0x81'),'view':_0x1dd83a=>({'name':_0x47ca('0xa8')+_0x1dd83a,'group':_0x47ca('0x81')}),'converterPriority':_0x47ca('0x49')}),this['editor'][_0x47ca('0x105')]['for'](_0x47ca('0xeb'))[_0x47ca('0x121')]({'model':'revision-suggestion','view':_0x2ea350=>{const _0x8c1e0e=_0x2ea350[_0x47ca('0xf0')][_0x47ca('0x38')](':')[0x1];return _0x47ca('0xce')!=_0x8c1e0e&&_0x47ca('0x76')!=_0x8c1e0e?null:{'classes':[_0x47ca('0x48'),_0x47ca('0x31')+_0x8c1e0e]};}}),this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x10')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x47ca('0xfb')],'merge'),{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')]['editing'][_0x47ca('0x10')]['on'](_0x47ca('0x4c'),et(this['editor'],_0x47ca('0x38')),{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')]['editing'][_0x47ca('0x10')]['on'](_0x47ca('0xef'),(_0x230213,_0xa7f03a,_0x31e2de)=>{const _0x417f81=_0x31e2de[_0x47ca('0x61')][_0x47ca('0xd6')](_0xa7f03a['markerName']);if(_0x417f81)for(const _0x4a270a of _0x417f81)_0x4a270a['is'](_0x47ca('0xd1'))&&(_0x31e2de['mapper']['unbindElementFromMarkerName'](_0x4a270a,_0xa7f03a['markerName']),_0x31e2de[_0x47ca('0x8c')]['remove'](_0x4a270a));},{'priority':_0x47ca('0x8d')});}[_0x47ca('0xed')](_0x279fd4){return this[_0x47ca('0x58')]['get'](_0x279fd4);}['_getViewForChange'](_0x4b13b6){return this[_0x47ca('0x57')]&&this[_0x47ca('0x57')][_0x47ca('0x2d')](),this[_0x47ca('0x57')]=new _0x4a531f(this[_0x47ca('0xfb')]['locale'],_0x4b13b6),this[_0x47ca('0x57')];}[_0x47ca('0x97')](){this[_0x47ca('0xfb')]['model'][_0x47ca('0x107')]['selection'][_0x47ca('0x10a')](_0x47ca('0x69')),this['on']('change:activeView',(_0x20c371,_0x6159a4,_0x335f49,_0x676087)=>{_0x676087&&this[_0x47ca('0x91')][_0x47ca('0x93')](_0x676087),_0x335f49&&(this[_0x47ca('0x91')]['add']({'view':_0x335f49,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xd232d0=this[_0x47ca('0xfb')][_0x47ca('0xe9')],_0x3ea151=this[_0x47ca('0xed')](_0x335f49[_0x47ca('0x6a')]);let _0x5bdbc0;if(_0x3ea151[_0x47ca('0x10d')][_0x47ca('0xb9')]){const _0x14966c=_0xd232d0[_0x47ca('0x99')][_0x47ca('0x11d')](_0x3ea151[_0x47ca('0x11f')]);_0x5bdbc0=Array[_0x47ca('0x33')](_0x14966c[_0x47ca('0xa3')]());}else{const _0x2b76c7=this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x32')][_0x47ca('0x5')]('revision:'+_0x335f49['changeId']);_0x5bdbc0=Array[_0x47ca('0x33')](_0xd232d0[_0x47ca('0x61')]['markerNameToElements'](_0x2b76c7['name']))[_0x47ca('0xe1')](_0x36ded5=>_0xd232d0[_0x47ca('0x99')][_0x47ca('0x101')]['mapViewToDom'](_0x36ded5))[_0x47ca('0xe1')](_0x4c2285=>Array[_0x47ca('0x33')](_0x4c2285['getClientRects']()))[_0x47ca('0x5b')]();}if(!this['_activeViewTarget'])return _0x5bdbc0[0x0];return _0x5bdbc0[_0x47ca('0x7d')](_0x296f60=>_0x296f60[_0x47ca('0x1b')]-0x3<=this[_0x47ca('0x1d')]['y']&&_0x296f60[_0x47ca('0xf3')]+0x3>=this[_0x47ca('0x1d')]['y']&&_0x296f60[_0x47ca('0x50')]-0x3<=this[_0x47ca('0x1d')]['x']&&_0x296f60['right']+0x3>=this[_0x47ca('0x1d')]['x'])||_0x5bdbc0[0x0];}}}),this['_balloon'][_0x47ca('0x9')](_0x47ca('0x3')));}),this['on'](_0x47ca('0x11c'),(_0x308523,_0x58a7b4,_0x4e191e,_0x5a403c)=>{this[_0x47ca('0x111')]=_0x4e191e?this[_0x47ca('0x103')](_0x4e191e):null,this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0xba')](()=>{const _0x28b5be=this[_0x47ca('0xfb')]['editing'];_0x5a403c&&(_0x5a403c[_0x47ca('0x10d')][_0x47ca('0xb9')]?_0x28b5be[_0x47ca('0x99')]['change'](_0x4c66b1=>{_0x4c66b1[_0x47ca('0xc8')]('ck-revision-history-root--active',_0x28b5be[_0x47ca('0x99')][_0x47ca('0x107')][_0x47ca('0x26')](_0x5a403c[_0x47ca('0x11f')]));}):_0x28b5be[_0x47ca('0x1e')](_0x47ca('0xb4')+_0x5a403c['id'])),_0x4e191e&&(_0x4e191e[_0x47ca('0x10d')][_0x47ca('0xb9')]?_0x28b5be[_0x47ca('0x99')]['change'](_0x557f61=>{_0x557f61[_0x47ca('0x19')](_0x47ca('0x55'),_0x28b5be[_0x47ca('0x99')][_0x47ca('0x107')][_0x47ca('0x26')](_0x4e191e[_0x47ca('0x11f')]));}):_0x28b5be['reconvertMarker']('revision:'+_0x4e191e['id']));});}),this[_0x47ca('0xf5')](this[_0x47ca('0xfb')]['editing'][_0x47ca('0x99')]['document'],_0x47ca('0x4d'),(_0x2a5dc6,_0x7c4a68)=>{if(this[_0x47ca('0x116')])return;const _0x571eb9=this['_findChangeIdFromDomTarget'](_0x7c4a68['target']),_0x2755ca=this[_0x47ca('0x58')][_0x47ca('0x5')](_0x571eb9);_0x2755ca?(this['_activeViewTarget']={'x':_0x7c4a68[_0x47ca('0x1c')]['x'],'y':_0x7c4a68['domEvent']['y']},this[_0x47ca('0x111')]=this[_0x47ca('0x103')](_0x2755ca)):(this[_0x47ca('0x1d')]=null,this['activeView']=null);}),this[_0x47ca('0xf5')](this[_0x47ca('0xfb')]['editing'][_0x47ca('0x99')][_0x47ca('0x107')],_0x47ca('0x10f'),(_0x179ea2,_0x9e0d19)=>{const _0xdddfb8=this[_0x47ca('0xec')](_0x9e0d19[_0x47ca('0x95')]),_0x34359b=this[_0x47ca('0x58')][_0x47ca('0x5')](_0xdddfb8);_0x34359b?(this[_0x47ca('0x1d')]={'x':_0x9e0d19[_0x47ca('0x1c')]['x'],'y':_0x9e0d19['domEvent']['y']},_0x34359b===this[_0x47ca('0x116')]?this[_0x47ca('0x91')][_0x47ca('0xa')]():this[_0x47ca('0x116')]=_0x34359b):(this[_0x47ca('0x1d')]=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x454abd){do{const _0x1926e3=_0x454abd[_0x47ca('0x117')](_0x47ca('0x46'));if(_0x1926e3)return _0x1926e3;_0x454abd=_0x454abd[_0x47ca('0x127')];}while(_0x454abd);return null;}[_0x47ca('0x42')](){this[_0x47ca('0xfb')][_0x47ca('0x6e')]['change'](_0x5663e5=>{for(const _0x4d3e49 of this['editor']['model'][_0x47ca('0x32')])_0x5663e5[_0x47ca('0x67')](_0x4d3e49);});}}function et(_0x23eed3,_0x1b2105){return(_0x2a8159,_0x391a3a,_0x5cff2b)=>{if(!_0x5cff2b[_0x47ca('0x56')][_0x47ca('0xb8')](_0x391a3a['markerRange'],_0x2a8159[_0x47ca('0x65')]))return;const _0x214a52=_0x391a3a[_0x47ca('0x86')][_0x47ca('0xa5')](),_0x2da401=_0x391a3a[_0x47ca('0x86')][_0x47ca('0x2a')],_0x173468=_0x23eed3[_0x47ca('0x6e')]['schema'];let _0x35ea6f=null,_0x475fb3=null,_0x1e6104=!0x1,_0x29a03b=!0x1;for(const _0x241685 of _0x214a52){const _0xebd171=_0x241685[_0x47ca('0xf6')];_0x1e6104=_0x1e6104||_0x173468[_0x47ca('0x1f')](_0xebd171);const _0x502cbb=_0x5cff2b['mapper']['toViewElement'](_0xebd171);if(_0x502cbb&&_0x502cbb['getCustomProperty'](_0x47ca('0xf')))return;_0x47ca('0xb5')==_0x241685['type']&&(_0x173468[_0x47ca('0xd0')](_0xebd171)&&!_0x173468[_0x47ca('0xa4')](_0xebd171)&&(_0xebd171[_0x47ca('0xd3')]||_0x2da401['isAtEnd']?_0x35ea6f&&_0x35ea6f[_0x47ca('0x127')]==_0xebd171||(_0x35ea6f=_0xebd171,_0x222f5c(_0x241685[_0x47ca('0xe6')]),_0x29a03b=!0x0):_0x475fb3=_0x475fb3||_0x241685[_0x47ca('0xe6')]));}function _0x222f5c(_0x25e47b){const _0x245b2e=_0x5cff2b['mapper'][_0x47ca('0x6')](_0x25e47b),_0x915ad3=_0x5cff2b[_0x47ca('0x8c')][_0x47ca('0x21')](_0x47ca('0x73'),{'class':_0x47ca('0x31')+_0x1b2105});_0x5cff2b['writer']['insert'](_0x245b2e,_0x915ad3),_0x5cff2b[_0x47ca('0x61')]['bindElementToMarker'](_0x915ad3,_0x391a3a[_0x47ca('0xf0')]);}_0x1e6104||_0x29a03b||!_0x475fb3||_0x222f5c(_0x475fb3);};}export class RestoreRevisionCommand extends _0xc82726{constructor(_0x386d75){super(_0x386d75);const _0x2a9b48=_0x386d75[_0x47ca('0x8e')]['get'](d);this[_0x47ca('0x9a')]=!0x1,this[_0x47ca('0xf5')](_0x2a9b48,_0x47ca('0x9d'),()=>this[_0x47ca('0xa6')]()),this[_0x47ca('0xf5')](_0x2a9b48,'change:isEnabled',()=>this[_0x47ca('0xa6')]());}['execute'](){const _0x54cc29=this[_0x47ca('0xfb')],_0xa316d4=_0x54cc29[_0x47ca('0x8e')][_0x47ca('0x5')](d),_0x6f112f=_0xa316d4[_0x47ca('0xc6')]?_0xa316d4['diff'][_0x47ca('0x51')]:null;_0x54cc29[_0x47ca('0x35')][_0x47ca('0x5')](_0x47ca('0x106'))[_0x47ca('0xae')](_0x6f112f);}[_0x47ca('0xa6')](){const {isReady:_0xd67725,isEnabled:_0x7334f1}=this[_0x47ca('0xfb')][_0x47ca('0x8e')][_0x47ca('0x5')](d);this[_0x47ca('0x52')]=_0xd67725&&_0x7334f1;}}export class ShowChangeCommand extends _0xc82726{constructor(_0x44cd15,{direction:_0x25348f}){super(_0x44cd15);const _0x4c6a87=_0x44cd15[_0x47ca('0x8e')][_0x47ca('0x5')](d);this[_0x47ca('0x9a')]=!0x1,this[_0x47ca('0x126')]='forward'===_0x25348f?0x1:-0x1,this['listenTo'](_0x4c6a87,'change:isReady',()=>this[_0x47ca('0xa6')]()),this['listenTo'](_0x4c6a87,_0x47ca('0x4e'),()=>this[_0x47ca('0xa6')]()),this[_0x47ca('0xf5')](_0x4c6a87,_0x47ca('0x11c'),()=>this[_0x47ca('0xa6')]());}[_0x47ca('0xf8')](){const _0x3ea744=this['editor'],_0x3a2857=_0x3ea744['plugins']['get'](d),{isNavigationMode:_0x1a67b3,currentChangeNumber:_0x171dfe}=_0x3a2857;let _0x825699;if(_0x3a2857[_0x47ca('0x116')]=_0x1a67b3?_0x3a2857['diff'][_0x47ca('0x3d')][_0x47ca('0x5')](_0x171dfe+this[_0x47ca('0x126')]):_0x3a2857[_0x47ca('0xcb')][_0x47ca('0x3d')][_0x47ca('0x7')],_0x3a2857[_0x47ca('0x116')][_0x47ca('0x10d')][_0x47ca('0xb9')])_0x825699=_0x3ea744[_0x47ca('0xe9')][_0x47ca('0x99')]['getDomRoot'](_0x3a2857[_0x47ca('0x116')][_0x47ca('0x11f')]);else{const _0x409a15=_0x3ea744['model'][_0x47ca('0x32')][_0x47ca('0x5')](_0x47ca('0xb4')+_0x3a2857[_0x47ca('0x116')]['id']);_0x825699=_0x4f1b98(_0x3ea744[_0x47ca('0xe9')],_0x409a15);}_0x3fdf1f({'target':_0x825699,'viewportOffset':0x28});}[_0x47ca('0xa6')](){const {isNavigationMode:_0x5d5199,currentChangeNumber:_0x4a8072,numberOfChanges:_0x392167,isReady:_0x5d958a,isEnabled:_0x2c987b}=this[_0x47ca('0xfb')][_0x47ca('0x8e')]['get'](d);this[_0x47ca('0x52')]=!!(_0x2c987b&&_0x5d958a&&_0x392167)&&(!_0x5d5199||(0x1===this[_0x47ca('0x126')]?_0x4a8072<_0x392167-0x1:_0x4a8072>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4df8=['execute','change:isActionsDropdownOpen','_action','Name\x20this\x20revision','ck-on','locale','name','set','panelPosition','map','buttonView','children','isEnabled','listView','isActionsDropdownOpen','stopPropagation','isVisible','threeVerticalDots','source','action','items','find','Restore\x20this\x20revision','add','function','ck-revision-history-sidebar__revision__actions','extendTemplate','model','bindTemplate','Compare\x20against\x20selected','first','Show\x20more\x20items'];(function(_0x37396a,_0x4df86a){const _0x239f77=function(_0x57eabc){while(--_0x57eabc){_0x37396a['push'](_0x37396a['shift']());}};_0x239f77(++_0x4df86a);}(_0x4df8,0x14c));const _0x239f=function(_0x37396a,_0x4df86a){_0x37396a=_0x37396a-0x0;let _0x239f77=_0x4df8[_0x37396a];return _0x239f77;};import{Collection as _0x2986e0}from'ckeditor5/src/utils';import{icons as _0x1c0ad5}from'ckeditor5/src/core';import{Model as _0x233442,addListToDropdown as _0x3b68f5,createDropdown as _0x502e4b}from'ckeditor5/src/ui';import{getTranslation as _0x2f2e34}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x5eece3,_0x4d4ca9){const _0x90314c=_0x5eece3[_0x239f('0x10')],_0x3204ce=_0x5eece3[_0x239f('0x19')],_0x55fabe=_0x502e4b(_0x3204ce);_0x55fabe[_0x239f('0x1c')]='sw';const _0x197672=function(_0x41277a,_0x4e172a){const _0x13d3ef=function(_0x113914,_0xcaba0f){const _0x5ec64b=_0x113914[_0x239f('0x19')],_0x18e7d5={'Compare\x20against\x20selected':_0x2f2e34(_0x5ec64b,_0x239f('0x11')),'Name\x20this\x20revision':_0x2f2e34(_0x5ec64b,_0x239f('0x17')),'Restore\x20this\x20revision':_0x2f2e34(_0x5ec64b,_0x239f('0xa'))};return _0xcaba0f[_0x239f('0x1d')](_0x2e257c=>{const _0x5e1c54=_0x18e7d5[_0x2e257c['name']];return _0x5e1c54&&_0x5e1c54!==_0x2e257c[_0x239f('0x1a')]&&(_0x2e257c[_0x239f('0x1a')]=_0x5e1c54),_0x2e257c;});}(_0x41277a,_0x4e172a),_0x40f3bd=new _0x2986e0();for(const _0x6fc635 of _0x13d3ef){const _0xb82f2b={'type':'button','model':new _0x233442({'label':_0x6fc635[_0x239f('0x1a')],'class':_0x6fc635['class'],'withText':!0x0,'_action':_0x6fc635[_0x239f('0x7')]})};_0xb82f2b[_0x239f('0xf')]['bind'](_0x239f('0x0'))['to'](_0x41277a,_0x239f('0x2'),_0x3f6ed6=>_0x239f('0xc')!=typeof _0x6fc635['isEnabled']||(!_0x3f6ed6||_0x6fc635['isEnabled'](_0x41277a))),_0x40f3bd[_0x239f('0xb')](_0xb82f2b);}return _0x40f3bd;}(_0x5eece3,_0x4d4ca9);return _0x5eece3['bind'](_0x239f('0x2'))['to'](_0x55fabe,'isOpen'),_0x55fabe[_0x239f('0x1e')][_0x239f('0x1b')]({'label':_0x2f2e34(_0x3204ce,_0x239f('0x13')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c0ad5[_0x239f('0x5')]}),_0x55fabe[_0x239f('0xe')]({'attributes':{'class':[_0x239f('0xd'),_0x90314c['if']('isActionsDropdownOpen',_0x239f('0x18'))]},'on':{'click':_0x90314c['to'](_0x2db2b1=>_0x2db2b1[_0x239f('0x3')]())}}),_0x55fabe['on'](_0x239f('0x14'),_0x34b7a0=>{_0x5eece3['isReady']&&_0x239f('0xc')==typeof _0x34b7a0[_0x239f('0x6')][_0x239f('0x16')]&&_0x34b7a0[_0x239f('0x6')][_0x239f('0x16')](_0x5eece3);}),_0x3b68f5(_0x55fabe,_0x197672),_0x55fabe['listenTo'](_0x5eece3,_0x239f('0x15'),(_0x2b5e23,_0x53ef31,_0x2c927e)=>{if(_0x2c927e)for(const _0x30730d of _0x55fabe[_0x239f('0x1')][_0x239f('0x8')]){const _0x172972=_0x30730d[_0x239f('0x1f')][_0x239f('0x12')],_0x58aa41=_0x4d4ca9[_0x239f('0x9')](_0xef5d8a=>_0xef5d8a['action']===_0x172972['_action'])[_0x239f('0x4')];_0x30730d[_0x239f('0x4')]=void 0x0===_0x58aa41||_0x58aa41(_0x5eece3);}}),_0x55fabe;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52e8=['setTemplate','span','set','Revision\x20author','ck-revision-history-sidebar__revision-author__name','name','ck-revision-history-sidebar__revision-author','Revision\x20creator'];(function(_0x13f779,_0x52e8fe){const _0x5bf6cd=function(_0x537e5e){while(--_0x537e5e){_0x13f779['push'](_0x13f779['shift']());}};_0x5bf6cd(++_0x52e8fe);}(_0x52e8,0xb7));const _0x5bf6=function(_0x13f779,_0x52e8fe){_0x13f779=_0x13f779-0x0;let _0x5bf6cd=_0x52e8[_0x13f779];return _0x5bf6cd;};import{View as _0x35ca4c,IconView as _0x18c115}from'ckeditor5/src/ui';import{getTranslation as _0x5b40ae}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3a7a99 from'../../../theme/icons/user.svg';export default class ti extends _0x35ca4c{constructor(_0x36c045,_0x74d9ba,_0x36417e){super(_0x36c045);const _0x15a74b=new _0x18c115();_0x15a74b[_0x5bf6('0x3')]({'content':_0x3a7a99,'viewBox':'0\x200\x2011\x2010'});const _0x5c95a4=['ck',_0x5bf6('0x7')];_0x36417e&&_0x5c95a4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x48e45f=[{'tag':_0x5bf6('0x2'),'attributes':{'class':['ck',_0x5bf6('0x5')],'title':_0x5b40ae(_0x36c045,_0x36417e?_0x5bf6('0x0'):_0x5bf6('0x4'))},'children':[_0x15a74b,_0x74d9ba[_0x5bf6('0x6')]]}];this[_0x5bf6('0x1')]({'tag':'li','attributes':{'class':_0x5c95a4},'children':_0x48e45f});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4dd1=['Revision\x20name','ck-revision-history-sidebar__revision-name','span'];(function(_0x5a1244,_0x4dd1c7){var _0x2a7f45=function(_0x466c85){while(--_0x466c85){_0x5a1244['push'](_0x5a1244['shift']());}};_0x2a7f45(++_0x4dd1c7);}(_0x4dd1,0x1de));var _0x2a7f=function(_0x5a1244,_0x4dd1c7){_0x5a1244=_0x5a1244-0x0;var _0x2a7f45=_0x4dd1[_0x5a1244];return _0x2a7f45;};import{LabeledFieldView as _0x2ebf68}from'ckeditor5/src/ui';import{getTranslation as _0x8dceb5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x2ebf68{constructor(_0x5c86a6,_0x4d196d){super(_0x5c86a6,_0x4d196d),this['set']({'label':_0x8dceb5(_0x5c86a6,_0x2a7f('0x2'))}),this['extendTemplate']({'tag':_0x2a7f('0x1'),'attributes':{'class':[_0x2a7f('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x397d=['set','_revision','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__actions_dropdown_open','revisionNameView','creator','value','srcElement','length','isEnabled','filter','ck-reset','fire','220','select','from','deselect','ck-revision-history-sidebar__revision__date','authors','isSelected','render','.ck-thread__remove-confirm','bindTemplate','ck-revision-history-sidebar__revision_highlighted','uiLanguage','ck-revision-history-sidebar__revision__controls-wrapper','isHighlighted','isActionsDropdownOpen','element','bind','fieldView','extendTemplate','isReady','closest','unshift','_createdAtFormatted','highlight','name','revisionActionsView','listenTo','createdAt'];(function(_0x27a9c9,_0x397dec){const _0xa4ef3d=function(_0x38b6af){while(--_0x38b6af){_0x27a9c9['push'](_0x27a9c9['shift']());}};_0xa4ef3d(++_0x397dec);}(_0x397d,0x10a));const _0xa4ef=function(_0x27a9c9,_0x397dec){_0x27a9c9=_0x27a9c9-0x0;let _0xa4ef3d=_0x397d[_0x27a9c9];return _0xa4ef3d;};import{View as _0x3e7930,createLabeledInputText as _0x51a769}from'ckeditor5/src/ui';import{ConfirmMixin as _0x343d2a}from'ckeditor5-collaboration/src/collaboration-core';import _0xe2b42b from'./revisionnameview';import _0x2274e5 from'./revisionauthorview';import{dateToPrettyFormat as _0x2db3ed}from'./utils';import{createActionsDropdownView as _0x45e05f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x343d2a(_0x3e7930){constructor(_0x52eb17,_0x1302b4,_0x26e817){super(_0x52eb17);const _0x282c1e=this[_0xa4ef('0x2')],_0x5809dd=function(_0x42dc8a,_0x39be77){const _0x5dc416=Array[_0xa4ef('0x24')](_0x39be77[_0xa4ef('0x27')])[_0xa4ef('0x1f')](_0x2434ef=>_0x2434ef!=_0x39be77[_0xa4ef('0x1a')]);return _0x39be77[_0xa4ef('0x1a')]&&_0x5dc416[_0xa4ef('0xe')](_0x39be77[_0xa4ef('0x1a')]),_0x5dc416['map'](_0x3454a2=>new _0x2274e5(_0x42dc8a,_0x3454a2,_0x3454a2==_0x39be77['creator']));}(_0x52eb17,_0x1302b4);this['id']=_0x1302b4['id'],this[_0xa4ef('0x16')]=_0x1302b4,this['bind'](_0xa4ef('0x11'),'createdAt')['to'](_0x1302b4),this[_0xa4ef('0x9')](_0xa4ef('0xf'))['to'](this,_0xa4ef('0x14'),_0x164999=>_0x164999?_0x2db3ed(_0x52eb17[_0xa4ef('0x4')],_0x164999):void 0x0),this[_0xa4ef('0x15')](_0xa4ef('0x28'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0x6'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0x7'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0xc'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0x1e'),!0x1),this[_0xa4ef('0x19')]=new _0xe2b42b(_0x52eb17,_0x51a769),this[_0xa4ef('0x19')][_0xa4ef('0xa')][_0xa4ef('0xb')]({'attributes':{'maxlength':_0xa4ef('0x22')}}),this[_0xa4ef('0x19')][_0xa4ef('0xa')]['bind'](_0xa4ef('0x1b'),'placeholder')['to'](this,'name',_0xa4ef('0xf')),this[_0xa4ef('0x19')][_0xa4ef('0x9')](_0xa4ef('0x1e'))['to'](this,_0xa4ef('0x28'),this,_0xa4ef('0x1e'),(_0x1f5ed7,_0x5ebdd2)=>_0x1f5ed7&&_0x5ebdd2),this[_0xa4ef('0x12')]=_0x26e817&&_0x26e817[_0xa4ef('0x1d')]?_0x45e05f(this,_0x26e817):'',this[_0xa4ef('0x12')]&&this[_0xa4ef('0x12')][_0xa4ef('0x9')](_0xa4ef('0x1e'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0xa4ef('0x20'),'ck-revision-history-sidebar__revision-wrapper',_0x282c1e['if']('isConfirm',_0xa4ef('0x17'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0xa4ef('0x20'),'ck-revision-history-sidebar__revision',_0x282c1e['if'](_0xa4ef('0x1e'),'ck-disabled',_0x514472=>!_0x514472),_0x282c1e['if'](_0xa4ef('0x28'),'ck-revision-history-sidebar__revision_selected'),_0x282c1e['if'](_0xa4ef('0x6'),_0xa4ef('0x3')),_0x282c1e['if']('isActionsDropdownOpen',_0xa4ef('0x18'))]},'children':[this[_0xa4ef('0x19')],{'tag':'span','attributes':{'class':['ck',_0xa4ef('0x26')]},'children':[{'text':_0x282c1e['to'](_0xa4ef('0xf'))}]},{'tag':'div','attributes':{'class':['ck',_0xa4ef('0x5')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x5809dd}]},this[_0xa4ef('0x12')]],'on':{'click':_0x282c1e['to'](_0x2c73ed=>{_0x2c73ed[_0xa4ef('0x1c')][_0xa4ef('0xd')](_0xa4ef('0x1'))||this[_0xa4ef('0xc')]&&this['isEnabled']&&this[_0xa4ef('0x21')](_0xa4ef('0x23'),{'id':this['id']});})}}]});}['render'](){super[_0xa4ef('0x0')]();const _0xbf904b=this[_0xa4ef('0x19')][_0xa4ef('0xa')][_0xa4ef('0x8')];this[_0xa4ef('0x13')](_0xbf904b,'change',()=>{this['fire']('setName',{'id':this['id'],'name':_0xbf904b[_0xa4ef('0x1b')]});});}['select'](){this[_0xa4ef('0x28')]=!0x0;}[_0xa4ef('0x25')](){this[_0xa4ef('0x28')]=!0x1;}[_0xa4ef('0x10')](){this[_0xa4ef('0x6')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xda7c=['click','bindTemplate','isVisible','_isCollapsed','setTemplate','toggle','ck-revision-history-sidebar__subrevision-collapser','button','ck-revision-history-sidebar__subrevision-collapser__inner','ck-hidden','span'];(function(_0x552591,_0xda7c34){const _0x41a5f9=function(_0x537506){while(--_0x537506){_0x552591['push'](_0x552591['shift']());}};_0x41a5f9(++_0xda7c34);}(_0xda7c,0x7a));const _0x41a5=function(_0x552591,_0xda7c34){_0x552591=_0x552591-0x0;let _0x41a5f9=_0xda7c[_0x552591];return _0x41a5f9;};import{View as _0x360d7d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x360d7d{constructor(_0x3c1b2a){super(_0x3c1b2a);const _0x418e40=this[_0x41a5('0x0')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x41a5('0x3')]({'tag':'span','attributes':{'class':['ck',_0x41a5('0x5'),_0x418e40['if'](_0x41a5('0x1'),_0x41a5('0x8'),_0x509066=>!_0x509066),_0x418e40['if'](_0x41a5('0x2'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x41a5('0x6'),'aria-pressed':_0x418e40['to']('_isCollapsed',_0x8ed31=>_0x8ed31?'false':'true')},'children':[{'tag':_0x41a5('0x9'),'attributes':{'class':['ck',_0x41a5('0x7')]}}],'on':{'click':_0x418e40['to'](_0x41a5('0xa'))}});}[_0x41a5('0x4')](){this[_0x41a5('0x2')]=!this[_0x41a5('0x2')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e76=['creator','isSelected','ck-revision-history-sidebar__revision-authors','uiLanguage','div','select','ck-revision-history-sidebar__subrevision','set','deselect','bind','span','fire','ck-revision-history-sidebar__revision_selected','_parentRevisionId','setTemplate','ck-reset','ck-revision-history-sidebar__revision__date','createdAt'];(function(_0x4bd1c5,_0x5e768d){const _0x297c62=function(_0x52feef){while(--_0x52feef){_0x4bd1c5['push'](_0x4bd1c5['shift']());}};_0x297c62(++_0x5e768d);}(_0x5e76,0x1a2));const _0x297c=function(_0x4bd1c5,_0x5e768d){_0x4bd1c5=_0x4bd1c5-0x0;let _0x297c62=_0x5e76[_0x4bd1c5];return _0x297c62;};import{View as _0x3bcb87}from'ckeditor5/src/ui';import _0xe34d69 from'./revisionauthorview';import{dateToPrettyFormat as _0x441754}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3bcb87{constructor(_0x578dbf,_0x52eb8e,_0x5518a9){super(_0x578dbf);const _0x151f47=this['bindTemplate'];this['id']=_0x52eb8e['id'],this[_0x297c('0x5')](_0x297c('0xd'))['to'](_0x52eb8e),this[_0x297c('0x3')](_0x297c('0xf'),!0x1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x40df94=>_0x40df94?_0x441754(_0x578dbf[_0x297c('0x11')],_0x40df94):void 0x0),this['_parentRevisionId']=_0x5518a9,this[_0x297c('0xa')]({'tag':_0x297c('0x0'),'attributes':{'class':['ck',_0x297c('0xb'),'ck-revision-history-sidebar__revision',_0x297c('0x2'),_0x151f47['if'](_0x297c('0xf'),_0x297c('0x8'))]},'children':[{'tag':_0x297c('0x6'),'attributes':{'class':['ck',_0x297c('0xc')]},'children':[{'text':_0x151f47['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x297c('0x10')]},'children':[new _0xe34d69(_0x578dbf,_0x52eb8e[_0x297c('0xe')],!0x0)]}],'on':{'click':_0x151f47['to'](this['select']['bind'](this))}});}[_0x297c('0x1')](){this['isSelected']=!0x0,this[_0x297c('0x7')](_0x297c('0x1'),{'parentId':this[_0x297c('0x9')]});}[_0x297c('0x4')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x47b7=['long','toLocaleTimeString','toLocaleDateString','numeric'];(function(_0x175a72,_0x47b75d){var _0x3fc1d1=function(_0x40b178){while(--_0x40b178){_0x175a72['push'](_0x175a72['shift']());}};_0x3fc1d1(++_0x47b75d);}(_0x47b7,0xc6));var _0x3fc1=function(_0x175a72,_0x47b75d){_0x175a72=_0x175a72-0x0;var _0x3fc1d1=_0x47b7[_0x175a72];return _0x3fc1d1;};export function dateToPrettyFormat(_0x36d07e,_0x309845){return _0x309845[_0x3fc1('0x0')](_0x36d07e,{'month':_0x3fc1('0x2'),'day':_0x3fc1('0x1')})+',\x20'+_0x309845[_0x3fc1('0x3')](_0x36d07e,{'hour':_0x3fc1('0x1'),'minute':_0x3fc1('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32dd=['type','_focusables','set','revisionNameInputValue','value','reset','arrowup','220','form','stopPropagation','ck-button-cancel','tab','Cancel','fieldView','_createRevisionNameInput','label','focusFirst','submit','cancel','focusTracker','delegate','add','forEach','_focusCycler','cancelButtonView','setTemplate','arrowdown','extendTemplate','revisionName','_createButton','keystrokes','saveButtonView','ck-responsive-form','locale','revisionNameInputView','input','render','element','trim'];(function(_0x2ecfc7,_0x32ddb7){const _0xa5f50b=function(_0x412249){while(--_0x412249){_0x2ecfc7['push'](_0x2ecfc7['shift']());}};_0xa5f50b(++_0x32ddb7);}(_0x32dd,0x70));const _0xa5f5=function(_0x2ecfc7,_0x32ddb7){_0x2ecfc7=_0x2ecfc7-0x0;let _0xa5f50b=_0x32dd[_0x2ecfc7];return _0xa5f50b;};import{icons as _0x33e769}from'ckeditor5/src/core';import{ButtonView as _0x49733d,FocusCycler as _0xfe0dd,LabeledFieldView as _0x428869,View as _0x489b94,ViewCollection as _0x5d8d16,createLabeledInputText as _0x3cda18,injectCssTransitionDisabler as _0x4641c5,submitHandler as _0xeb0ff4}from'ckeditor5/src/ui';import{FocusTracker as _0x51e2f7,KeystrokeHandler as _0x2c1021}from'ckeditor5/src/utils';import{getTranslation as _0x18b63a}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x489b94{constructor(_0x1b3861){super(_0x1b3861),this['focusTracker']=new _0x51e2f7(),this['keystrokes']=new _0x2c1021(),this[_0xa5f5('0x7')](_0xa5f5('0x8'),''),this[_0xa5f5('0x0')]=this[_0xa5f5('0x13')](),this[_0xa5f5('0x24')]=this[_0xa5f5('0x22')](_0x18b63a(_0x1b3861,'Save'),_0x33e769['check'],'ck-button-save'),this['saveButtonView'][_0xa5f5('0x5')]=_0xa5f5('0x16'),this[_0xa5f5('0x1d')]=this[_0xa5f5('0x22')](_0x18b63a(_0x1b3861,_0xa5f5('0x11')),_0x33e769[_0xa5f5('0x17')],_0xa5f5('0xf'),_0xa5f5('0x17')),this[_0xa5f5('0x6')]=new _0x5d8d16(),this[_0xa5f5('0x1c')]=new _0xfe0dd({'focusables':this[_0xa5f5('0x6')],'focusTracker':this[_0xa5f5('0x18')],'keystrokeHandler':this[_0xa5f5('0x23')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xa5f5('0x10')}}),this[_0xa5f5('0x1e')]({'tag':_0xa5f5('0xd'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0xa5f5('0x25')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0xa5f5('0x24')],this['cancelButtonView']]}),_0x4641c5(this);}[_0xa5f5('0x2')](){super[_0xa5f5('0x2')](),_0xeb0ff4({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this[_0xa5f5('0x1d')]][_0xa5f5('0x1b')](_0x265011=>{this[_0xa5f5('0x6')][_0xa5f5('0x1a')](_0x265011),this[_0xa5f5('0x18')][_0xa5f5('0x1a')](_0x265011[_0xa5f5('0x3')]);}),this['keystrokes']['listenTo'](this[_0xa5f5('0x3')]));const _0x35115c=_0x19bcc5=>_0x19bcc5[_0xa5f5('0xe')]();this['keystrokes']['set']('arrowright',_0x35115c),this['keystrokes']['set']('arrowleft',_0x35115c),this['keystrokes'][_0xa5f5('0x7')](_0xa5f5('0xb'),_0x35115c),this['keystrokes'][_0xa5f5('0x7')](_0xa5f5('0x1f'),_0x35115c);}['focus'](){this['_focusCycler'][_0xa5f5('0x15')]();}get['revisionName'](){return this[_0xa5f5('0x0')][_0xa5f5('0x12')]['element']['value'][_0xa5f5('0x4')]();}set[_0xa5f5('0x21')](_0x525414){this[_0xa5f5('0x0')][_0xa5f5('0x12')]['element'][_0xa5f5('0x9')]=_0x525414[_0xa5f5('0x4')]();}[_0xa5f5('0xa')](){this[_0xa5f5('0x0')][_0xa5f5('0x12')][_0xa5f5('0x3')]['value']='';}[_0xa5f5('0x13')](){const _0x3e2ed9=new _0x428869(this[_0xa5f5('0x26')],_0x3cda18),_0x3ce66c=_0x3e2ed9['fieldView'];return _0x3ce66c['extendTemplate']({'attributes':{'maxlength':_0xa5f5('0xc')}}),_0x3e2ed9[_0xa5f5('0x14')]=_0x18b63a(this[_0xa5f5('0x26')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3ce66c['on'](_0xa5f5('0x1'),()=>{this[_0xa5f5('0x8')]=_0x3ce66c['element']['value']['trim']();}),_0x3e2ed9;}[_0xa5f5('0x22')](_0x2ba319,_0x535a3a,_0x42974c,_0x2d218a){const _0x3ab189=new _0x49733d(this[_0xa5f5('0x26')]);return _0x3ab189[_0xa5f5('0x7')]({'label':_0x2ba319,'icon':_0x535a3a,'tooltip':!0x0}),_0x3ab189[_0xa5f5('0x20')]({'attributes':{'class':_0x42974c}}),_0x2d218a&&_0x3ab189[_0xa5f5('0x19')]('execute')['to'](this,_0x2d218a),_0x3ab189;}}
|