@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230711.0 → 0.0.0-nightly-20230712.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x25a2=['getIndex','toViewRange','elementStart','ck-suggestion-marker--active','distance','ck-revision-history-root-','activeView','_step','element','_markMarkers','init','RevisionsRepository','attachChange','startIndex','insertion','change','_makeTape','compare','removeAttribute','uiElement','destroy','delete','newRevisionId','deletion','previousPosition','nodeAfter','resolve','ck-revision-history-root-add','modelRange','addHighlight','_cleanMarkers','getClientRects','updatePosition','isAtStart','range','revision-suggestion:','from','_getChangeFromId','userId','_markInsertions','indexOf','target','isRemoved','_processTape','remove','forEach','span','authors','abs','markerRange','unshift','rootName','getCustomProperty','getRevisionData','revision:','config','mouseover','getRootNames','selection','suggestion:','_changeIdToChange','return','low','useFillerType','item','concat','WidgetToolbarRepository','splice','revision','markerNameToElements','sort','toViewElement','processor','has','toViewPosition','isRemoveSuggestion','locale','_setConversion','parent','for','unbindElementFromMarkerName','_markMismatchedRemovedTags','find','enqueueChange','index','isAddSuggestion','execute','high','ck-suggestion-preview-marker-','isCollapsed','isEnabled','-new','isContent','_balloon','_getViewForChange','attributesBefore','children','flat','collaboration.channelId','deletions','_appendChild','detachRoot','toData','shift','_changeView','getDomRoot','change:activeView','reconvertMarker','_cleanUp','ck-suggestion-preview-marker','loadRevisionData','_removeUnsupportedChanges','showStack','isSuggestion','upcast','_fixObsoleteTags','isAfter','softBreak','top','endIndex','revision-suggestion','getRevisionRootsAttributes','_findChangeIdFromDomTarget','addClass','editingDowncast','wrap','isInline','restoreRevisionCallback','removeMarker','type','change:isEnabled','viewItem','plugins','isBefore','comment','revision-viewer','mapViewToDom','length','markerToHighlight','left','_makeModelFromViewString','model','getWalker','editing','name','isAttached','diff','schema','right','next','getAttribute','setAttribute','split','diffData','elementToAttribute','string','RevisionViewer','then','createRangeIn','ck-editor__editable__overlay','isEqual','parse','data','revision-comment:','isAdded','keys','_removeRevisionMarkers','set','_getRevisionsRange','isNavigationMode','bindElementToMarker','vid_start','removeMarker:revision-suggestion','end','includes','text','markersEnd','downcastDispatcher','dataToMarker','dataDowncast','_sortAndFilterDiffChanges','change:isReady','document','slice','ck-suggestion-marker','createPositionFromPath','observeMarkers','done','push','createRange','_setChanges','ck-revision-history-root--active','adapter','default','showNextChange','isIncorrect','first','writer','map','catch','vid_end','ck-suggestion-marker-merge','insert','level','consumable','getRevision','addRevision','addMarker:revision','code','changes','side','createUIElement','add','editor','view','isLimit','clear','hasClass','_data','markerName','refresh','addMarker:revision-suggestion:deletion','getRoot','_getDiff','isAtEnd','createRevision','_joinTapes','highest','start','getAttributes','domEvent','markers','isOnRoot','merge','data-change-id','isBlock','repository','removeClass','conversion','currentChangeNumber','showPreviousChange','nextPosition','element:pre','revision-end','data-revision-','test','elementEnd','domConverter','offsetSize','_refreshStartEndIndex','object','insertions','addRevisionData','oldRevisionId','mapper','activeChange','revisionHistory','_revisions','toModel','_activeViewTarget','createAttributeElement','markersStart','_setDistance','pairId','addMarker:revision-suggestion:insertion','filter','attributes','listenTo','roots','vid','revisionHistoryAttachChange','enableReadOnlyMode','backward','consume','get','affectsData','_update','attributesAfter','error','change:activeChange','maxOffset','commands','_markSuggestions','POSITIVE_INFINITY','_threeWayMerge','bind','revisionHistoryLabel','ck-suggestion-marker-','isReady','pluginName','startsWith','forward','removeMarker:revision','forceDisabled','hasAttribute','attribute:vid','numberOfChanges','marked','_getViewObj','_initInteractions','restoreRevision'];(function(_0x2d2fc1,_0x25a2ef){const _0x286a14=function(_0x166e7e){while(--_0x166e7e){_0x2d2fc1['push'](_0x2d2fc1['shift']());}};_0x286a14(++_0x25a2ef);}(_0x25a2,0x121));const _0x286a=function(_0x2d2fc1,_0x25a2ef){_0x2d2fc1=_0x2d2fc1-0x0;let _0x286a14=_0x25a2[_0x2d2fc1];return _0x286a14;};import{Plugin as _0x444a86,Command as _0x33b267}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2f86b7}from'ckeditor5/src/utils';import{ContextualBalloon as _0x385299}from'ckeditor5/src/ui';import{DocumentFragment as _0x17a945,Element as _0x2875e4,Text as _0x17a10a,ViewDocumentFragment as _0x1cc2d7,ViewText as _0x3e7a5f,ViewElement as _0x2d860d,ViewContainerElement as _0x3faf5a,ViewAttributeElement as _0x173d3e,ViewEmptyElement as _0x3cdeb7,ViewRawElement as _0x3584ec,ViewUIElement as _0x4563c5}from'ckeditor5/src/engine';import{Users as _0x5df280,getMarkerDomElement as _0xd62a0c}from'ckeditor5-collaboration/src/collaboration-core';import _0x191933 from'./ui/revisionviewer/changedetailsview';import _0x26d6f8 from'./revisionsrepository';import _0x229602 from'./changeitem';import{default as _0x5b46bd}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4382c7}from'lodash-es';const tt={'c':_0x3faf5a,'a':_0x173d3e,'e':_0x3cdeb7,'r':_0x3584ec,'u':_0x4563c5};export default class d extends _0x444a86{static get[_0x286a('0x0')](){return _0x286a('0xa8');}static get['requires'](){return[_0x5df280,_0x385299,_0x26d6f8];}constructor(_0x6b2f98){super(_0x6b2f98),this['repository']=this[_0x286a('0xe1')]['plugins'][_0x286a('0x11e')](_0x286a('0x17')),this[_0x286a('0xb3')](_0x286a('0x10b'),null),this[_0x286a('0xb3')]('activeView',null),this['_activeViewTarget']=null,this[_0x286a('0xb3')](_0x286a('0x9e'),null),this[_0x286a('0xb3')]('isReady',!0x1),this[_0x286a('0xb3')](_0x286a('0x66'),!0x0),this['on'](_0x286a('0x8e'),(_0x515bd1,_0x58a8b9,_0x2b24ce)=>{this[_0x286a('0x10b')]=null,this[_0x286a('0x12')]=null,this['editor'][_0x286a('0x9b')][_0x286a('0xe2')][_0x286a('0x1b')](_0x102d4e=>{for(const _0x428229 of this[_0x286a('0xe1')]['editing'][_0x286a('0xe2')][_0x286a('0xc2')][_0x286a('0x118')])_0x2b24ce?_0x102d4e[_0x286a('0xf9')](_0x286a('0xab'),_0x428229):_0x102d4e[_0x286a('0x87')]('ck-editor__editable__overlay',_0x428229);});}),this[_0x286a('0x129')](_0x286a('0xb5'))['to'](this,_0x286a('0x10b'),_0x918e99=>null!==_0x918e99),this[_0x286a('0x129')](_0x286a('0xfb'))['to'](this,_0x286a('0x12c'),this,'diff',this,_0x286a('0x10b'),(_0x132481,_0x62b4d8,_0x582869)=>_0x132481&&_0x582869?_0x62b4d8[_0x286a('0xdd')]['getIndex'](_0x582869):0x0),this[_0x286a('0x129')](_0x286a('0x7'))['to'](this,'isReady',this,_0x286a('0x9e'),(_0x233663,_0x23738d)=>_0x233663?_0x23738d[_0x286a('0xdd')]['length']:0x0),this['_changeView']=null,this[_0x286a('0x48')]=new Map(),this[_0x286a('0xcc')]=null,this[_0x286a('0x69')]=this[_0x286a('0xe1')][_0x286a('0x90')]['get'](_0x385299);}[_0x286a('0x16')](){const _0x1e69d2=this[_0x286a('0xe1')],_0x1c9250=new ShowChangeCommand(_0x1e69d2,{'direction':_0x286a('0x11c')}),_0x261a1e=new ShowChangeCommand(_0x1e69d2,{'direction':_0x286a('0x2')});(_0x1e69d2['commands'][_0x286a('0xe0')](_0x286a('0xfc'),_0x1c9250),_0x1e69d2[_0x286a('0x125')][_0x286a('0xe0')](_0x286a('0xce'),_0x261a1e),_0x1e69d2[_0x286a('0x125')][_0x286a('0xe0')](_0x286a('0xb'),new RestoreRevisionCommand(_0x1e69d2)),this['on']('change:numberOfChanges',()=>{_0x1c9250[_0x286a('0xe8')](),_0x261a1e[_0x286a('0xe8')]();}),this[_0x286a('0x59')](),this['_initInteractions'](),_0x1e69d2[_0x286a('0x11b')](_0x286a('0x93')),_0x1e69d2[_0x286a('0x90')][_0x286a('0x55')](_0x286a('0x4e')))&&_0x1e69d2['plugins'][_0x286a('0x11e')](_0x286a('0x4e'))[_0x286a('0x4')]('revision-viewer');}async[_0x286a('0x41')](_0x1c899a){await this[_0x286a('0x7a')](_0x1c899a);const _0x29ee12={};for(const _0x30188b in _0x1c899a[_0x286a('0xa5')]){if(_0x1c899a[_0x286a('0xa5')][_0x30188b][_0x286a('0x18')]&&!_0x1c899a[_0x286a('0xa5')][_0x30188b][_0x286a('0x18')][_0x286a('0x9d')])continue;const _0x4e5edc=this['_removeRevisionMarkers'](JSON[_0x286a('0xad')](_0x1c899a[_0x286a('0xa5')][_0x30188b][_0x286a('0x107')])),_0x297706=this[_0x286a('0xe1')][_0x286a('0x9b')][_0x286a('0xe2')][_0x286a('0xc2')],_0x468d1c=new _0x1cc2d7(_0x297706,_0x4e5edc[_0x286a('0xd2')](_0x268f84=>this[_0x286a('0x9')](_0x268f84)));this['editor']['data'][_0x286a('0x54')][_0x286a('0x4b')](_0x286a('0x8')),_0x29ee12[_0x30188b]=this[_0x286a('0xe1')][_0x286a('0xae')][_0x286a('0x54')][_0x286a('0x72')](_0x468d1c),this['editor']['data'][_0x286a('0x54')][_0x286a('0x4b')](_0x286a('0xcd'));}return _0x29ee12;}async[_0x286a('0x85')](_0x22eeb1){await this[_0x286a('0x7a')](_0x22eeb1);const _0x1393ca={};for(const _0xe1b644 in _0x22eeb1[_0x286a('0xa5')])_0x22eeb1[_0x286a('0xa5')][_0xe1b644][_0x286a('0x18')]&&!_0x22eeb1['diffData'][_0xe1b644]['attachChange']['isAttached']||(_0x1393ca[_0xe1b644]=_0x22eeb1[_0x286a('0xa5')][_0xe1b644][_0x286a('0x121')]||{});return _0x1393ca;}['_removeRevisionMarkers'](_0xb9880c){return(_0xb9880c=_0xb9880c[_0x286a('0x115')](_0x4d45ad=>!_0x4d45ad[_0x286a('0x9c')]||'revision-start'!==_0x4d45ad[_0x286a('0x9c')]&&_0x286a('0xff')!==_0x4d45ad[_0x286a('0x9c')]))[_0x286a('0x39')](_0x12c5b7=>{_0x286a('0xa7')!=typeof _0x12c5b7&&(_0x12c5b7[_0x286a('0x6c')]=this[_0x286a('0xb2')](_0x12c5b7[_0x286a('0x6c')]),_0x12c5b7['attributes']=_0x12c5b7['attributes'][_0x286a('0x115')](_0x19efde=>!_0x19efde[0x0][_0x286a('0x1')](_0x286a('0x100'))));}),_0xb9880c;}async[_0x286a('0x1d')](_0x5efbe5,_0x51e672,_0x2a35e9=!0x1){if(!this['isEnabled'])return;const _0x5ab8ef=this[_0x286a('0x9e')],_0x2aa81b=this[_0x286a('0xf8')],_0x30f988='string'==typeof _0x5efbe5?_0x2aa81b[_0x286a('0xd9')](_0x5efbe5):_0x5efbe5,_0x2a2ce2='string'==typeof _0x51e672?_0x2aa81b['getRevision'](_0x51e672):_0x51e672,_0x2a8381=_0x30f988['id'],_0x50b16b=_0x2a2ce2?_0x2a2ce2['id']:null;if(!_0x2a35e9&&this[_0x286a('0x9e')]&&this[_0x286a('0x9e')][_0x286a('0x22')]===_0x2a8381&&this['diff'][_0x286a('0x109')]===_0x50b16b)return Promise[_0x286a('0x26')]();this[_0x286a('0x12c')]=!0x1,this[_0x286a('0x12')]=null,this[_0x286a('0x10b')]=null,this['diff']=new _0x5b46bd(_0x2a8381,_0x50b16b);const _0x34dfb0=this[_0x286a('0xb4')](_0x30f988,_0x2a2ce2,!0x0)[_0x286a('0xd2')](_0x425989=>this[_0x286a('0x7a')](_0x425989));return _0x34dfb0[_0x286a('0xc8')](new Promise(_0x58afd7=>{setTimeout(_0x58afd7,0x14);})),Promise['all'](_0x34dfb0)[_0x286a('0xa9')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x18b46f=this[_0x286a('0xeb')](_0x2a8381,_0x50b16b);for(const _0x402b57 of _0x18b46f[_0x286a('0xdd')])this['_changeIdToChange'][_0x286a('0xb3')](_0x402b57['id'],_0x402b57);this[_0x286a('0xe1')][_0x286a('0x99')]['enqueueChange']({'isUndoable':!0x1},_0x1a6d77=>{for(const _0x3b0b36 of this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')]['getRootNames']())_0x1a6d77[_0x286a('0x71')](_0x3b0b36);for(const _0x4d986a of Object[_0x286a('0xb1')](_0x18b46f[_0x286a('0x99')])){const _0x1ea63d=_0x1a6d77['addRoot'](_0x4d986a);for(const _0x1b5aa8 of Object[_0x286a('0xb1')](_0x18b46f[_0x286a('0x116')][_0x4d986a]))_0x1a6d77[_0x286a('0xa3')](_0x1b5aa8,_0x18b46f[_0x286a('0x116')][_0x4d986a][_0x1b5aa8],_0x1ea63d);_0x1a6d77[_0x286a('0xd6')](_0x18b46f[_0x286a('0x99')][_0x4d986a],_0x1ea63d,0x0);}}),this[_0x286a('0x9e')][_0x286a('0xca')](this[_0x286a('0xc0')](_0x18b46f[_0x286a('0xdd')])),this[_0x286a('0x12c')]=!0x0;})[_0x286a('0xd3')](_0x35a3e0=>{console[_0x286a('0x122')](_0x35a3e0),this['_cleanUp'](),_0x5ab8ef&&(this[_0x286a('0x9e')]=_0x5ab8ef),this[_0x286a('0x12c')]=!0x0;});}[_0x286a('0x108')](_0x893a34,_0x3d9bad){const _0x1cbdd5=this[_0x286a('0xf8')][_0x286a('0xed')](_0x893a34);return _0x1cbdd5['on']('_update',(_0x4fd62d,_0x1bdafc,_0x1bb7ac)=>_0x3d9bad(_0x1bdafc,_0x1bb7ac,_0x1cbdd5)),this[_0x286a('0xf8')][_0x286a('0xda')](_0x1cbdd5),_0x1cbdd5;}[_0x286a('0x7a')](_0x2d8927){if(!_0x2d8927||_0x2d8927[_0x286a('0xa5')])return Promise[_0x286a('0x26')]();{const _0x90675d=this[_0x286a('0xe1')][_0x286a('0x43')]['get'](_0x286a('0x6e'));return this[_0x286a('0xcc')][_0x286a('0xd9')]({'channelId':_0x90675d,'revisionId':_0x2d8927['id']})['then'](_0x99fde7=>{_0x2d8927[_0x286a('0x120')]({'diffData':_0x99fde7[_0x286a('0xa5')]},!0x0);});}}[_0x286a('0x78')](){this[_0x286a('0x10b')]=null,this[_0x286a('0x2a')](),this[_0x286a('0x74')]&&this[_0x286a('0x74')][_0x286a('0x20')](),this[_0x286a('0x74')]=null,this['_changeIdToChange'][_0x286a('0xe4')](),this['editor'][_0x286a('0x99')][_0x286a('0x5f')]({'isUndoable':!0x1},_0xf5a236=>{for(const _0x32b290 of this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')][_0x286a('0x45')]())_0xf5a236[_0x286a('0x71')](_0x32b290);});}[_0x286a('0xc0')](_0x1b296d){const _0x426150=[],_0x4497c8=new Map();for(const _0x3afc2d of this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')][_0x286a('0x45')]()){const _0x4ad8a6=this[_0x286a('0xe1')][_0x286a('0x9b')]['view']['getDomRoot'](_0x3afc2d);if(!_0x4ad8a6)continue;const _0x1e2e03=_0x4ad8a6[_0x286a('0x2b')]()[_0x286a('0x4c')](0x0);_0x1e2e03&&(_0x426150['push'](_0x3afc2d),_0x4497c8[_0x286a('0xb3')](_0x3afc2d,_0x1e2e03));}return _0x426150[_0x286a('0x52')]((_0x4276fe,_0x4c695f)=>{const _0x4c2e30=_0x4497c8[_0x286a('0x11e')](_0x4276fe),_0x47f7b6=_0x4497c8[_0x286a('0x11e')](_0x4c695f);return _0x4c2e30['y']-_0x47f7b6['y']||_0x4c2e30['x']-_0x47f7b6['x'];}),(_0x1b296d=_0x1b296d[_0x286a('0x115')](_0x6d9f07=>_0x426150[_0x286a('0xba')](_0x6d9f07[_0x286a('0x3f')])))[_0x286a('0x52')]((_0x1ef09a,_0x27eb54)=>_0x426150[_0x286a('0x34')](_0x1ef09a[_0x286a('0x3f')])-_0x426150[_0x286a('0x34')](_0x27eb54[_0x286a('0x3f')])),_0x1b296d;}[_0x286a('0x1c')](_0x454cee){const _0x58130e=Array[_0x286a('0x30')](_0x454cee[_0x286a('0xf3')])['filter'](([_0x59fb7d,_0x5a76eb])=>_0x59fb7d[_0x286a('0x1')](_0x286a('0x42'))&&!_0x5a76eb[_0x286a('0x65')]),_0xd9888d=Array['from'](this['editor']['model'][_0x286a('0xaa')](_0x454cee)[_0x286a('0x9a')]({'singleCharacters':!0x0}));if(0x0!=_0x58130e[_0x286a('0x95')])for(const _0x1b23b8 of _0xd9888d){const [_0x292a96,_0x5709f9]=_0x58130e[0x0],[,_0x23ea39,_0x146f13]=_0x292a96[_0x286a('0xa4')](':');if(_0x5709f9[_0x286a('0xb9')][_0x286a('0xac')](_0x1b23b8[_0x286a('0xfd')])&&_0x58130e[_0x286a('0x73')](),(_0x1b23b8['previousPosition'][_0x286a('0xac')](_0x5709f9[_0x286a('0xf0')])||_0x1b23b8[_0x286a('0x24')][_0x286a('0x80')](_0x5709f9[_0x286a('0xf0')]))&&(_0x286a('0x1a')==_0x23ea39?_0x1b23b8[_0x286a('0xb0')]={'userId':_0x146f13}:_0x286a('0x23')==_0x23ea39&&(_0x1b23b8[_0x286a('0x36')]={'userId':_0x146f13})),0x0==_0x58130e[_0x286a('0x95')])break;}return _0xd9888d;}[_0x286a('0x105')](_0x2465db){const _0x38b85c=new Map();for(let _0x393066=0x0;_0x393066<_0x2465db['length'];_0x393066++)'text'===_0x2465db[_0x393066][_0x286a('0x8d')]?(_0x2465db[_0x393066][_0x286a('0x4c')][_0x286a('0x19')]=_0x393066,_0x2465db[_0x393066][_0x286a('0x4c')]['endIndex']=_0x393066):(_0x286a('0xe')===_0x2465db[_0x393066][_0x286a('0x8d')]?_0x2465db[_0x393066][_0x286a('0x4c')]['startIndex']=_0x393066:'elementEnd'===_0x2465db[_0x393066][_0x286a('0x8d')]&&(_0x2465db[_0x393066][_0x286a('0x4c')][_0x286a('0x83')]=_0x393066),_0x38b85c[_0x286a('0xb3')](_0x2465db[_0x393066]['id'],_0x393066));for(const _0x313d4b of _0x38b85c['values']())_0x286a('0xe')===_0x2465db[_0x313d4b][_0x286a('0x8d')]?_0x2465db[_0x313d4b][_0x286a('0x4c')]['endIndex']=_0x38b85c[_0x286a('0x11e')](_0x2465db[_0x313d4b]['pairId']):_0x286a('0x102')===_0x2465db[_0x313d4b][_0x286a('0x8d')]&&(_0x2465db[_0x313d4b][_0x286a('0x4c')][_0x286a('0x19')]=_0x38b85c[_0x286a('0x11e')](_0x2465db[_0x313d4b][_0x286a('0x113')]));}[_0x286a('0x37')](_0x1c4026){for(let _0x41aec9=0x0;_0x41aec9<_0x1c4026[_0x286a('0x95')];_0x41aec9++){if(_0x286a('0xe')===_0x1c4026[_0x41aec9]['type'])_0x1c4026[_0x41aec9][_0x286a('0x4c')]['startIndex']=_0x41aec9;else{if('elementEnd'===_0x1c4026[_0x41aec9]['type']){_0x1c4026[_0x41aec9][_0x286a('0x4c')]['endIndex']=_0x41aec9;const _0x489e02=_0x1c4026[_0x41aec9][_0x286a('0x4c')][_0x286a('0x19')];_0x1c4026[_0x489e02]['pairId']=_0x1c4026[_0x41aec9]['id'],_0x1c4026[_0x41aec9][_0x286a('0x113')]=_0x1c4026[_0x489e02]['id'];}else _0x1c4026[_0x41aec9]['item']['startIndex']=_0x41aec9,_0x1c4026[_0x41aec9][_0x286a('0x4c')][_0x286a('0x83')]=_0x41aec9,_0x1c4026[_0x41aec9][_0x286a('0x113')]=null;}_0x1c4026[_0x41aec9][_0x286a('0x111')]||(_0x1c4026[_0x41aec9][_0x286a('0x111')]=[],_0x1c4026[_0x41aec9]['markersEnd']=[]);}}[_0x286a('0x33')](_0x1c48be,_0x2a5c3a){const _0x346f58=_0x1c48be[_0x286a('0x115')](_0x4b3e38=>!_0x4b3e38[_0x286a('0xb0')]);for(let _0x4e497b=0x0;_0x4e497b<_0x2a5c3a[_0x286a('0x95')];_0x4e497b++)_0x2a5c3a[_0x4e497b][_0x286a('0xb0')]&&(_0x346f58[_0x4e497b][_0x286a('0xb0')]=_0x2a5c3a[_0x4e497b]['isAdded']);}[_0x286a('0x98')](_0x1ad315){const _0x29d081=JSON[_0x286a('0xad')](_0x1ad315),_0x5ba547=this[_0x286a('0xe1')]['editing'][_0x286a('0xe2')][_0x286a('0xc2')],_0x422611=new _0x1cc2d7(_0x5ba547,_0x29d081[_0x286a('0xd2')](_0x4b3ae3=>this[_0x286a('0x9')](_0x4b3ae3)));return this[_0x286a('0xe1')][_0x286a('0xae')][_0x286a('0x10e')](_0x422611);}[_0x286a('0x9')](_0x5e7550){const _0x4efda3=this[_0x286a('0xe1')][_0x286a('0x9b')]['view']['document'];if(_0x286a('0xa7')==typeof _0x5e7550)return new _0x3e7a5f(_0x4efda3,_0x5e7550);{const _0x13c7aa=_0x5e7550[_0x286a('0x6c')]['map'](_0x39dce8=>this[_0x286a('0x9')](_0x39dce8));return new(tt[_0x5e7550[(_0x286a('0x8d'))]]||_0x2d860d)(_0x4efda3,_0x5e7550[_0x286a('0x9c')],_0x5e7550['attributes'],_0x13c7aa);}}[_0x286a('0xeb')](_0x3b20d1,_0x43e34c=null){const _0x1811fe=this['repository']['getRevision'](_0x3b20d1),_0x2af899=_0x43e34c?this[_0x286a('0xf8')][_0x286a('0xd9')](_0x43e34c):null,_0x183a93=this[_0x286a('0xb4')](_0x1811fe,_0x2af899),_0x1515d1=_0x183a93[_0x183a93['length']-0x1],_0x4bc2ee=new Map(),_0x294706={'model':{},'attributes':{},'changes':[]},_0xa1d502=new Set(),_0x50a3fa=new Map();for(let _0x29ff77=_0x183a93[_0x286a('0x95')]-0x1;_0x29ff77>=0x0;_0x29ff77--){const _0x5031ff=_0x183a93[_0x29ff77];for(const _0x20ed39 of Object[_0x286a('0xb1')](_0x5031ff[_0x286a('0xa5')]))if(_0x5031ff[_0x286a('0xa5')][_0x20ed39]['attachChange']){const _0x1f60b1=_0x5031ff[_0x286a('0xa5')][_0x20ed39][_0x286a('0x18')];_0x1f60b1['isAttached']?(_0xa1d502[_0x286a('0xe0')](_0x20ed39),_0x50a3fa[_0x286a('0x55')](_0x20ed39)&&_0x50a3fa[_0x286a('0x11e')](_0x20ed39)[_0x286a('0x32')]==_0x1f60b1[_0x286a('0x32')]?_0x50a3fa['delete'](_0x20ed39):_0x50a3fa['set'](_0x20ed39,_0x1f60b1)):_0x50a3fa[_0x286a('0x55')](_0x20ed39)?(_0xa1d502[_0x286a('0x21')](_0x20ed39),_0x50a3fa['delete'](_0x20ed39)):(_0xa1d502[_0x286a('0xe0')](_0x20ed39),_0x50a3fa[_0x286a('0xb3')](_0x20ed39,_0x1f60b1));}else _0xa1d502[_0x286a('0xe0')](_0x20ed39);}for(const _0x1b5b2a of _0xa1d502){const _0x233e48=_0x50a3fa[_0x286a('0x55')](_0x1b5b2a)&&!_0x50a3fa[_0x286a('0x11e')](_0x1b5b2a)['isAttached'];let _0x324bc6=_0x233e48?_0x183a93[_0x286a('0x95')]-0x1:0x0;const _0x17d545=_0x233e48?-0x1:0x1;for(;_0x183a93[_0x324bc6];){const _0x27e671=_0x183a93[_0x324bc6];if(_0x27e671[_0x286a('0xa5')][_0x1b5b2a]){const _0x54d295=_0x233e48?_0x27e671[_0x286a('0xa5')][_0x1b5b2a][_0x286a('0x6b')]:_0x27e671[_0x286a('0xa5')][_0x1b5b2a][_0x286a('0x121')];_0x294706[_0x286a('0x116')][_0x1b5b2a]=_0x54d295?_0x4382c7(_0x54d295):{};break;}_0x324bc6+=_0x17d545;}}for(const _0x508afc of _0x183a93){_0x508afc['model']={};for(const _0xed10d of _0x508afc[_0x286a('0x3b')])_0x4bc2ee[_0x286a('0xb3')](_0xed10d['id'],_0xed10d);for(const _0x2162e8 of _0xa1d502){const _0x9ff73a=_0x508afc[_0x286a('0xa5')][_0x2162e8]?_0x508afc['diffData'][_0x2162e8][_0x286a('0x107')]:'[]',_0x511f95=_0x508afc[_0x286a('0xa5')][_0x2162e8]?_0x508afc[_0x286a('0xa5')][_0x2162e8]['deletions']:'[]';_0x508afc[_0x286a('0x99')][_0x2162e8]={'insertions':this[_0x286a('0x98')](_0x9ff73a),'deletions':this[_0x286a('0x98')](_0x511f95)};}}for(const _0xa52acd of _0xa1d502){let _0x3ce889=null,_0x200667=0x0;const _0xaa0db4=new Map(Array[_0x286a('0x30')](_0x1811fe[_0x286a('0x99')][_0xa52acd][_0x286a('0x107')]['markers'])[_0x286a('0x115')](([_0x50d49c])=>!_0x50d49c[_0x286a('0x1')](_0x286a('0x42'))));let _0x478b2a=0x0;for(const _0x4b8b51 of _0x183a93){const _0x2fa8c2=this[_0x286a('0x1c')](_0x4b8b51['model'][_0xa52acd][_0x286a('0x107')]);_0x4b8b51==_0x1811fe?(_0x3ce889=_0x2fa8c2,_0x200667=_0x3ce889['length'],_0x3ce889['forEach'](_0x56209d=>{_0x56209d['id']=_0x478b2a++;}),this['_processTape'](_0x3ce889)):this[_0x286a('0x33')](_0x3ce889,_0x2fa8c2);const _0x27fa1e=_0x3ce889[_0x286a('0x115')](_0x18de3e=>!_0x18de3e['isAdded'])[_0x286a('0xd2')](_0x3bcfd5=>_0x3bcfd5['id']);let _0xe4144c=0x0;const _0x6843f7=this[_0x286a('0x1c')](_0x4b8b51['model'][_0xa52acd][_0x286a('0x6f')]);_0x6843f7[_0x286a('0x39')](_0x49e0c6=>{_0x49e0c6['isRemoved']?_0x49e0c6['id']=_0x200667++:_0x49e0c6['id']=_0x27fa1e[_0xe4144c++];}),this['_processTape'](_0x6843f7),this[_0x286a('0x112')](_0x3ce889,'isAdded'),this['_setDistance'](_0x6843f7,_0x286a('0x36')),_0x4b8b51==_0x1811fe&&this[_0x286a('0x15')](_0x3ce889,_0xaa0db4),_0x3ce889=this[_0x286a('0xee')](_0x3ce889,_0x6843f7),this['_refreshStartEndIndex'](_0x3ce889),this[_0x286a('0x112')](_0x3ce889,'isRemoved');}_0x3ce889=_0x3ce889[_0x286a('0x115')](_0x2a7f02=>!(_0x2a7f02['isAdded']&&_0x2a7f02['isRemoved']));const _0x43dbc8=new Map(_0x1515d1[_0x286a('0x99')][_0xa52acd][_0x286a('0x6f')][_0x286a('0xf3')]),_0x27ba26=new Set(_0xaa0db4['keys']());for(const _0x373e6f of _0x43dbc8[_0x286a('0xb1')]())_0x27ba26[_0x286a('0x21')](_0x373e6f);this[_0x286a('0x126')](_0x3ce889,_0x27ba26),this[_0x286a('0x7f')](_0x3ce889),_0x3ce889=this['_removeMissingPairs'](_0x3ce889),_0x3ce889=this[_0x286a('0x5d')](_0x3ce889),_0x3ce889=this[_0x286a('0x7b')](_0x3ce889);const {root:_0xd28e7,changes:_0x1afdaf}=this['_makeModelFromTape'](_0x3ce889,_0x4bc2ee,_0xa52acd);_0x294706['model'][_0xa52acd]=_0xd28e7;const _0x3d3276=_0x50a3fa[_0x286a('0x11e')](_0xa52acd);if(_0x3d3276){const _0x157aaa=_0x4bc2ee[_0x286a('0x11e')](_0x3d3276[_0x286a('0x32')]),_0x158bfa=new _0x229602({'author':_0x157aaa,'type':_0x3d3276[_0x286a('0x9d')]?_0x286a('0xe0'):_0x286a('0x38'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xa52acd});_0x1afdaf[_0x286a('0x3e')](_0x158bfa),_0x294706['attributes'][_0xa52acd]['revisionHistoryAttachChange']=_0x158bfa['id'];}_0x294706[_0x286a('0xdd')]=_0x294706[_0x286a('0xdd')][_0x286a('0x4d')](_0x1afdaf);}return _0x294706;}[_0x286a('0x15')](_0x583e87,_0x172e95){for(let _0x587859=0x0;_0x587859<_0x583e87[_0x286a('0x95')];_0x587859++)for(const [_0x4ee779,_0x598a67]of _0x172e95)_0x598a67[_0x286a('0xf0')][_0x286a('0xac')](_0x583e87[_0x587859][_0x286a('0x24')])&&_0x583e87[_0x587859][_0x286a('0x111')]['push'](_0x4ee779),_0x598a67['end'][_0x286a('0xac')](_0x583e87[_0x587859][_0x286a('0xfd')])&&_0x583e87[_0x587859][_0x286a('0xbc')]['push'](_0x4ee779);}[_0x286a('0xee')](_0x507089,_0x1f916d){let _0x5a08d9=[],_0x3d655b=0x0,_0x54050e=0x0;for(;_0x3d655b<_0x507089[_0x286a('0x95')]||_0x54050e<_0x1f916d['length'];){const _0x3b768c=_0x507089[_0x3d655b]||{},_0xa3cadf=_0x1f916d[_0x54050e]||{};if(_0x3b768c['id']==_0xa3cadf['id'])_0x3d655b++,_0x54050e++,_0x5a08d9['push'](_0x3b768c);else{if(_0xa3cadf[_0x286a('0x36')]&&_0x3b768c[_0x286a('0xb0')]){const {commonTape:_0x429b08,iEnd:_0x1ecaa4,jEnd:_0x3c65af}=this[_0x286a('0x128')](_0x507089,_0x3d655b,_0x1f916d,_0x54050e);_0x5a08d9=_0x5a08d9[_0x286a('0x4d')](_0x429b08),_0x3d655b=_0x1ecaa4,_0x54050e=_0x3c65af;}else _0xa3cadf[_0x286a('0x36')]?(_0x54050e++,_0x5a08d9[_0x286a('0xc8')](_0xa3cadf)):(_0x3d655b++,_0x5a08d9[_0x286a('0xc8')](_0x3b768c));}}return _0x5a08d9;}[_0x286a('0x126')](_0x476199,_0x432961){const _0x150836=[];for(let _0xcc362d=0x0;_0xcc362d<_0x476199['length'];_0xcc362d++){for(let _0x3434ab=0x0;_0x3434ab<_0x476199[_0xcc362d]['markersStart']['length'];_0x3434ab++){const _0x5d69c8=_0x476199[_0xcc362d]['markersStart'][_0x3434ab];if(!_0x432961[_0x286a('0x55')](_0x5d69c8))continue;const {group:_0x520594,type:_0x5b1d55,authorId:_0x3d9c17}=_0x26715c(_0x5d69c8);'revision-suggestion'!=_0x520594||_0x286a('0x1a')!=_0x5b1d55&&_0x286a('0x23')!=_0x5b1d55||(_0x150836['unshift']({'type':_0x5b1d55,'name':_0x5d69c8,'userId':_0x3d9c17}),_0x476199[_0xcc362d]['markersStart'][_0x286a('0x4f')](_0x3434ab,0x1),_0x3434ab--);}_0x23b533(_0x476199[_0xcc362d]);for(let _0x270a1d=0x0;_0x270a1d<_0x476199[_0xcc362d][_0x286a('0xbc')][_0x286a('0x95')];_0x270a1d++){const _0x592595=_0x476199[_0xcc362d]['markersEnd'][_0x270a1d];if(!_0x432961['has'](_0x592595))continue;const {group:_0x256164,type:_0x264b8a}=_0x26715c(_0x592595);if(_0x286a('0x84')!=_0x256164||_0x286a('0x1a')!=_0x264b8a&&_0x286a('0x23')!=_0x264b8a)continue;_0x476199[_0xcc362d][_0x286a('0xbc')][_0x286a('0x4f')](_0x270a1d,0x1),_0x270a1d--;const _0x60928c=_0x150836['findIndex'](_0x33d1c3=>_0x33d1c3[_0x286a('0x9c')]==_0x592595);_0x60928c>-0x1&&_0x150836[_0x286a('0x4f')](_0x60928c,0x1);}}function _0x26715c(_0x473ee2){const _0x79dbb7=_0x473ee2[_0x286a('0xa4')](':');return{'group':_0x79dbb7[0x0],'type':_0x79dbb7[0x1],'subType':_0x79dbb7[_0x286a('0x95')]>=0x5?_0x79dbb7[0x2]:null,'id':_0x79dbb7[_0x286a('0x95')]<0x5?_0x79dbb7[0x2]:_0x79dbb7[0x3],'authorId':_0x79dbb7[_0x286a('0x95')]<0x5?_0x79dbb7[0x3]:_0x79dbb7[0x4],'markerCount':0x6==_0x79dbb7[_0x286a('0x95')]?_0x79dbb7[0x5]:null};}function _0x23b533(_0x1d1537){for(let _0x1b121b=0x0;_0x1b121b<_0x150836[_0x286a('0x95')];_0x1b121b++){if(_0x1d1537[_0x286a('0xb0')]&&_0x286a('0x1a')==_0x150836[_0x1b121b][_0x286a('0x8d')])return _0x1d1537[_0x286a('0x61')]=_0x150836[_0x1b121b],void delete _0x1d1537[_0x286a('0xb0')];if(!_0x1d1537[_0x286a('0xb0')]&&!_0x1d1537[_0x286a('0x36')]&&_0x286a('0x23')==_0x150836[_0x1b121b][_0x286a('0x8d')])return void(_0x1d1537['isRemoveSuggestion']=_0x150836[_0x1b121b]);}}}[_0x286a('0x112')](_0x536cdd,_0x24c676){let _0xc122f2=0x0,_0x45214d=!0x1;const _0x41daca=new Map();for(const _0x308940 of _0x536cdd)_0x308940[_0x24c676]?_0x45214d&&(_0xc122f2++,_0x45214d=!0x1):(_0xc122f2++,_0x45214d=!0x0),_0x41daca['set'](_0x308940['id'],_0xc122f2);for(let _0x48c853=0x0;_0x48c853<_0x536cdd['length'];_0x48c853++){if(_0x286a('0x36')==_0x24c676&&_0x536cdd[_0x48c853][_0x286a('0xb0')]||'isAdded'==_0x24c676&&_0x536cdd[_0x48c853][_0x286a('0x36')])continue;if(_0x286a('0xbb')==_0x536cdd[_0x48c853][_0x286a('0x8d')]){_0x536cdd[_0x48c853]['distance']=0x0;continue;}const _0x4e9205=_0x41daca[_0x286a('0x11e')](_0x536cdd[_0x48c853][_0x286a('0x113')]),_0xe15cf1=_0x41daca[_0x286a('0x11e')](_0x536cdd[_0x48c853]['id']);_0x536cdd[_0x48c853][_0x286a('0x10')]=_0x4e9205-_0xe15cf1;}}[_0x286a('0xb4')](_0x28f3c2,_0x356ea6,_0x3448de=!0x1){const _0x3f2f98=[];let _0x43f47f=this['repository'][_0x286a('0xc')](_0x28f3c2),_0x45f82a=this[_0x286a('0xf8')][_0x286a('0xc')](_0x356ea6);for(-0x1==_0x45f82a&&(_0x45f82a=this[_0x286a('0xf8')][_0x286a('0x10d')]['length'],_0x3448de=!0x1);_0x43f47f<_0x45f82a;)_0x3f2f98['push'](this['repository'][_0x286a('0xd9')](_0x43f47f)),_0x43f47f++;return _0x3448de&&_0x3f2f98['push'](this['repository'][_0x286a('0xd9')](_0x43f47f)),_0x3f2f98;}[_0x286a('0x128')](_0x5567ff,_0x4748a9,_0x229ca5,_0x4a5179){const _0x4cd5a4=this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0x9f')];let _0xa4aa9a=_0x4748a9;for(;_0x5567ff[_0xa4aa9a]&&_0x5567ff[_0xa4aa9a]['isAdded'];)_0xa4aa9a++;let _0x132462=_0x4a5179;for(;_0x229ca5[_0x132462]&&_0x229ca5[_0x132462]['isRemoved'];)_0x132462++;_0x161599(_0x5567ff,_0x4748a9,_0xa4aa9a),_0x161599(_0x229ca5,_0x4a5179,_0x132462);const _0x114557=_0x229ca5['slice'](_0x4a5179,_0x132462)[_0x286a('0x4d')](_0x5567ff[_0x286a('0xc3')](_0x4748a9,_0xa4aa9a));return _0x114557[_0x286a('0x52')]((_0x2d44d3,_0x2aec67)=>_0x2d44d3[_0x286a('0xde')]!=_0x2aec67['side']?_0x2d44d3[_0x286a('0xde')]-_0x2aec67[_0x286a('0xde')]:_0x2d44d3['level']!=_0x2aec67[_0x286a('0xd7')]?_0x2d44d3[_0x286a('0xd7')]-_0x2aec67[_0x286a('0xd7')]:_0x2d44d3[_0x286a('0x10')]!=_0x2aec67[_0x286a('0x10')]?_0x2aec67['distance']-_0x2d44d3['distance']:!!_0x2d44d3[_0x286a('0xb0')]!=!!_0x2aec67[_0x286a('0xb0')]?-0x1==_0x2d44d3['side']||0x0==_0x2d44d3[_0x286a('0xde')]?_0x2d44d3[_0x286a('0xb0')]?-0x1:0x1:_0x2d44d3['isAdded']?0x1:-0x1:_0x2d44d3['index']-_0x2aec67['index']),{'commonTape':_0x114557,'iEnd':_0xa4aa9a,'jEnd':_0x132462};function _0x161599(_0x3391f2,_0x375e0a,_0x266f31){let _0xc7078b=-0x1,_0x5c60d0=Number[_0x286a('0x127')],_0x290c28=!0x0;for(let _0x110df2=_0x375e0a;_0x110df2<_0x266f31;_0x110df2++)if(_0x4cd5a4[_0x286a('0x8a')](_0x3391f2[_0x110df2][_0x286a('0x4c')])||(_0x290c28=!0x1),_0x3391f2[_0x110df2][_0x286a('0x4c')][_0x286a('0x19')]<_0x375e0a&&(_0xc7078b=_0x110df2),_0x3391f2[_0x110df2][_0x286a('0x4c')]['endIndex']>=_0x266f31){_0x5c60d0=_0x110df2;break;}_0x290c28&&(_0xc7078b=_0x266f31-0x1);for(let _0x44d160=_0x375e0a;_0x44d160<_0x266f31;_0x44d160++)_0x3391f2[_0x44d160][_0x286a('0xde')]=_0x44d160<=_0xc7078b?-0x1:_0x44d160<_0x5c60d0?0x0:0x1,_0x3391f2[_0x44d160][_0x286a('0x60')]=_0x44d160;let _0x23ca5a=0x0;for(let _0x1ac9ea=_0x375e0a;_0x1ac9ea<=_0xc7078b;_0x1ac9ea++)0x0==_0x3391f2[_0x1ac9ea][_0x286a('0x10')]?_0x3391f2[_0x1ac9ea][_0x286a('0xd7')]=_0x23ca5a:(_0x23ca5a++,_0x3391f2[_0x1ac9ea]['level']=_0x23ca5a,_0x23ca5a++);for(let _0x31d474=_0x375e0a;_0x31d474<_0x266f31;_0x31d474++)0x0==_0x3391f2[_0x31d474][_0x286a('0xde')]&&(_0x3391f2[_0x31d474][_0x286a('0xd7')]=_0x23ca5a);_0x23ca5a=0x0;for(let _0x3b3a88=_0x266f31-0x1;_0x3b3a88>=_0x5c60d0;_0x3b3a88--)0x0==_0x3391f2[_0x3b3a88][_0x286a('0x10')]?_0x3391f2[_0x3b3a88][_0x286a('0xd7')]=_0x23ca5a:(_0x23ca5a--,_0x3391f2[_0x3b3a88][_0x286a('0xd7')]=_0x23ca5a,_0x23ca5a--);}}[_0x286a('0x7f')](_0x4c82a3){const _0x5dbd2f=new Map(),_0x146caf=this[_0x286a('0xe1')]['model']['schema'];for(let _0x4a18c0=0x1;_0x4a18c0<_0x4c82a3[_0x286a('0x95')];_0x4a18c0++){let _0x2e0c8a,_0xf2f990,_0x55023b;const _0x1f5dbf=_0x4c82a3[_0x4a18c0],_0x34bc33=_0x4c82a3[_0x4a18c0-0x1];if(_0x286a('0xbb')==_0x1f5dbf[_0x286a('0x8d')])continue;if(_0x1f5dbf['type']!=_0x34bc33[_0x286a('0x8d')])continue;if(!_0x146caf[_0x286a('0xf7')](_0x34bc33['item'])||_0x146caf[_0x286a('0xe3')](_0x34bc33[_0x286a('0x4c')]))continue;if(!_0x146caf[_0x286a('0xf7')](_0x1f5dbf[_0x286a('0x4c')])||_0x146caf[_0x286a('0xe3')](_0x1f5dbf['item']))continue;if((_0x4c82a3[_0x4a18c0][_0x286a('0xb0')]||_0x4c82a3[_0x4a18c0][_0x286a('0x61')])&&_0x4c82a3[_0x4a18c0-0x1][_0x286a('0x36')])_0x2e0c8a=_0x4c82a3[_0x4a18c0],_0xf2f990=_0x4c82a3[_0x4a18c0-0x1],_0x55023b=_0x4a18c0-0x1;else{if(!_0x4c82a3[_0x4a18c0][_0x286a('0x36')]||!_0x4c82a3[_0x4a18c0-0x1][_0x286a('0xb0')]&&!_0x4c82a3[_0x4a18c0-0x1][_0x286a('0x61')])continue;_0x2e0c8a=_0x4c82a3[_0x4a18c0-0x1],_0xf2f990=_0x4c82a3[_0x4a18c0],_0x55023b=_0x4a18c0;}const _0x4a539d=_0x2e0c8a[_0x286a('0xd7')]==_0xf2f990['level'],_0x2f9680=Math[_0x286a('0x3c')](_0x2e0c8a[_0x286a('0xd7')])<Math[_0x286a('0x3c')](_0xf2f990[_0x286a('0xd7')])&&0x0==_0xf2f990[_0x286a('0x10')];(_0x4a539d||_0x2f9680)&&(_0x5dbd2f['set'](_0xf2f990['id'],_0x2e0c8a['id']),_0x4c82a3['splice'](_0x55023b,0x1),_0x4a18c0--,_0x2e0c8a['isAdded']=!0x1);}for(let _0x2673bb=0x0;_0x2673bb<_0x4c82a3[_0x286a('0x95')];_0x2673bb++)_0x5dbd2f[_0x286a('0x55')](_0x4c82a3[_0x2673bb][_0x286a('0x113')])&&(_0x4c82a3[_0x2673bb][_0x286a('0x113')]=_0x5dbd2f[_0x286a('0x11e')](_0x4c82a3[_0x2673bb][_0x286a('0x113')]));}['_removeMissingPairs'](_0x53861c){const _0xf16ed4=new Set(_0x53861c[_0x286a('0xd2')](_0x109ff1=>_0x109ff1['id']));for(let _0x28ecf5=0x0;_0x28ecf5<_0x53861c['length'];_0x28ecf5++)_0xf16ed4[_0x286a('0x55')](_0x53861c[_0x28ecf5][_0x286a('0x113')])||0x0==_0x53861c[_0x28ecf5]['distance']||(_0x53861c[_0x28ecf5][_0x286a('0xcf')]=!0x0);return _0x53861c[_0x286a('0x115')](_0x4d3e69=>!_0x4d3e69[_0x286a('0xcf')]);}['_markMismatchedRemovedTags'](_0xc7f806){const _0x2828bb=new Set();for(let _0x492bd8=0x0;_0x492bd8<_0xc7f806[_0x286a('0x95')];_0x492bd8++){if(_0x2828bb[_0x286a('0x55')](_0xc7f806[_0x492bd8]['id'])&&_0xc7f806[_0x492bd8][_0x286a('0x36')]&&(_0xc7f806[_0x492bd8]['isIncorrect']=!0x0),_0xc7f806[_0x492bd8][_0x286a('0xcf')])continue;if(0x0==_0xc7f806[_0x492bd8][_0x286a('0x10')])continue;if(_0x286a('0xe')!=_0xc7f806[_0x492bd8][_0x286a('0x8d')])continue;if(null==_0xc7f806[_0x492bd8][_0x286a('0x113')])continue;let _0x4d888f=_0x492bd8+0x1,_0x4658df=0x0;for(;_0xc7f806[_0x4d888f]['id']!=_0xc7f806[_0x492bd8]['pairId'];)_0x286a('0xe')==_0xc7f806[_0x4d888f][_0x286a('0x8d')]?_0x4658df++:_0x286a('0x102')==_0xc7f806[_0x4d888f]['type']&&_0x4658df--,_0x4d888f++;if(0x0!=_0x4658df){if(_0xc7f806[_0x492bd8][_0x286a('0x36')])_0xc7f806[_0x492bd8][_0x286a('0xcf')]=!0x0;else for(;_0x4d888f!=_0x492bd8;)_0xc7f806[_0x4d888f]['isRemoved']&&0x0!=_0xc7f806[_0x4d888f]['distance']&&(_0xc7f806[_0x4d888f][_0x286a('0xcf')]=!0x0,_0x2828bb[_0x286a('0xe0')](_0xc7f806[_0x4d888f][_0x286a('0x113')])),_0x4d888f--;}}return _0xc7f806['filter'](_0x521d9c=>!_0x521d9c[_0x286a('0xcf')]);}['_removeUnsupportedChanges'](_0x2cca2a){const _0x5f1c20=this[_0x286a('0xe1')]['model'][_0x286a('0x9f')];for(let _0x85f1af=0x0;_0x85f1af<_0x2cca2a[_0x286a('0x95')];_0x85f1af++){if(!(_0x2cca2a[_0x85f1af]['isAdded']||_0x2cca2a[_0x85f1af][_0x286a('0x61')]||_0x2cca2a[_0x85f1af][_0x286a('0x36')]||_0x2cca2a[_0x85f1af][_0x286a('0x57')]))continue;if(0x0==_0x2cca2a[_0x85f1af][_0x286a('0x10')])continue;const _0xb10aa6=_0x2cca2a[_0x85f1af][_0x286a('0x4c')];_0x5f1c20['isBlock'](_0xb10aa6)||_0x5f1c20[_0x286a('0xe3')](_0xb10aa6)||(_0x2cca2a[_0x85f1af]['isAdded']&&delete _0x2cca2a[_0x85f1af][_0x286a('0xb0')],_0x2cca2a[_0x85f1af][_0x286a('0x61')]&&delete _0x2cca2a[_0x85f1af][_0x286a('0x61')],_0x2cca2a[_0x85f1af][_0x286a('0x57')]&&delete _0x2cca2a[_0x85f1af][_0x286a('0x57')],_0x2cca2a[_0x85f1af]['isRemoved']&&(_0x2cca2a[_0x85f1af][_0x286a('0xcf')]=!0x0));}return _0x2cca2a['filter'](_0x490c72=>!_0x490c72[_0x286a('0xcf')]);}['_makeModelFromTape'](_0x3f16f8,_0x59fdb6,_0x55252f){const _0x4c792a=new _0x17a945(),_0x21b62f=[],_0x5cb764=new Map(),_0x2b5926=this[_0x286a('0xe1')]['model'],_0x848db1=_0x2b5926['schema'],_0x10f9fe=[_0x4c792a],_0x461547={},_0x511344={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x23c5e0=null;const _0x5cc2a4=[0x0];for(let _0xc4d3aa=0x0;_0xc4d3aa<_0x3f16f8[_0x286a('0x95')];_0xc4d3aa++){let _0x239bcb,_0x2ec6b5;if(_0x286a('0xe')===_0x3f16f8[_0xc4d3aa][_0x286a('0x8d')]){_0x239bcb=_0x2b5926[_0x286a('0xc5')](_0x4c792a,_0x5cc2a4);const _0x20d472=new _0x2875e4(_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')][_0x286a('0x9c')],_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')][_0x286a('0xf1')]());_0x10f9fe[0x0][_0x286a('0x70')](_0x20d472),_0x5cc2a4[_0x286a('0xc8')](0x0),_0x10f9fe[_0x286a('0x3e')](_0x20d472),_0x2ec6b5=_0x2b5926[_0x286a('0xc5')](_0x4c792a,_0x5cc2a4),_0x23c5e0=null;}else{if(_0x286a('0x102')===_0x3f16f8[_0xc4d3aa][_0x286a('0x8d')])_0x10f9fe[_0x286a('0x73')](),_0x239bcb=_0x2b5926['createPositionFromPath'](_0x4c792a,_0x5cc2a4),_0x5cc2a4['pop'](),_0x5cc2a4[_0x5cc2a4[_0x286a('0x95')]-0x1]++,_0x2ec6b5=_0x2b5926['createPositionFromPath'](_0x4c792a,_0x5cc2a4),_0x23c5e0=null;else{if(_0x239bcb=_0x2b5926[_0x286a('0xc5')](_0x4c792a,_0x5cc2a4),_0x23c5e0&&_0x34813c(_0x23c5e0,_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')]))_0x23c5e0[_0x286a('0xe6')]+=_0x3f16f8[_0xc4d3aa]['item'][_0x286a('0xae')];else{const _0x245fcd=new _0x17a10a(_0x3f16f8[_0xc4d3aa]['item'][_0x286a('0xae')],_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')][_0x286a('0xf1')]());_0x10f9fe[0x0][_0x286a('0x70')](_0x245fcd),_0x23c5e0=_0x245fcd;}_0x5cc2a4[_0x5cc2a4[_0x286a('0x95')]-0x1]+=_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')][_0x286a('0x104')],_0x2ec6b5=_0x2b5926['createPositionFromPath'](_0x4c792a,_0x5cc2a4);}}for(const _0x5f1d78 of _0x3f16f8[_0xc4d3aa]['markersStart'])_0x5cb764[_0x286a('0xb3')](_0x5f1d78,{'start':_0x239bcb,'end':null});_0x5ceaf2(_0x286a('0x57'),_0xc4d3aa,_0x239bcb,_0x2ec6b5),_0x5ceaf2(_0x286a('0x61'),_0xc4d3aa,_0x239bcb,_0x2ec6b5),_0x5ceaf2(_0x286a('0x36'),_0xc4d3aa,_0x239bcb,_0x2ec6b5),_0x5ceaf2(_0x286a('0xb0'),_0xc4d3aa,_0x239bcb,_0x2ec6b5);for(const _0x1ad824 of _0x3f16f8[_0xc4d3aa][_0x286a('0xbc')]){_0x5cb764[_0x286a('0x11e')](_0x1ad824)['end']=_0x2ec6b5;}}for(const [_0x2ec289,_0x1a5d46]of _0x5cb764){const _0x5729a7=this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc9')](_0x1a5d46[_0x286a('0xf0')],_0x1a5d46[_0x286a('0xb9')]);_0x4c792a[_0x286a('0xf3')][_0x286a('0xb3')](_0x2ec289,_0x5729a7);}return _0x21b62f[_0x286a('0x52')]((_0xe32fc7,_0x269564)=>{const _0x5b6481=_0x4c792a[_0x286a('0xf3')][_0x286a('0x11e')](_0x286a('0x42')+_0xe32fc7['id']),_0x3fa3cd=_0x4c792a[_0x286a('0xf3')]['get']('revision:'+_0x269564['id']);return _0x5b6481[_0x286a('0xf0')][_0x286a('0x91')](_0x3fa3cd['start'])?-0x1:_0x5b6481[_0x286a('0xf0')]['isAfter'](_0x3fa3cd['start'])?0x1:_0x5b6481[_0x286a('0xb9')][_0x286a('0x91')](_0x3fa3cd[_0x286a('0xb9')])?-0x1:_0x5b6481['end']['isAfter'](_0x3fa3cd['end'])?0x1:_0x286a('0xe0')===_0xe32fc7[_0x286a('0x8d')]?-0x1:0x1;}),{'root':_0x4c792a,'changes':_0x21b62f};function _0x5ceaf2(_0x65c263,_0x206b47,_0x6d56fd,_0x425e09){const _0x34739e=!!_0x3f16f8[_0x206b47][_0x65c263],_0x3f40d6=_0x34739e?_0x3f16f8[_0x206b47][_0x65c263][_0x286a('0x32')]:null,_0xbe019e=_0x206b47===_0x3f16f8[_0x286a('0x95')]-0x1,_0x4bcd94=_0x511344[_0x65c263][0x0],_0xfb172b=_0x848db1['isObject'](_0x3f16f8[_0x206b47]['item']);!_0x461547[_0x65c263]&&_0x34739e?_0x461547[_0x65c263]={'start':_0x6d56fd,'tapeItem':_0x3f16f8[_0x206b47],'userId':_0x3f40d6,'type':_0x65c263}:_0x461547[_0x65c263]&&!_0x34739e?(_0x461547[_0x65c263]['end']=_0x6d56fd,_0x1c4ddf(_0x461547[_0x65c263]),_0x461547[_0x65c263]=null):_0x461547[_0x65c263]&&_0x34739e&&_0x461547[_0x65c263][_0x286a('0x32')]!==_0x3f40d6&&(_0x461547[_0x65c263][_0x286a('0xb9')]=_0x6d56fd,_0x4bcd94&&_0x4bcd94[_0x286a('0x32')]===_0x461547[_0x65c263][_0x286a('0x32')]||_0x1c4ddf(_0x461547[_0x65c263]),_0x461547[_0x65c263]={'start':_0x6d56fd,'tapeItem':_0x3f16f8[_0x206b47],'userId':_0x3f40d6,'type':_0x65c263}),_0x461547[_0x65c263]&&_0xfb172b&&(_0x286a('0xe')!==_0x3f16f8[_0x206b47][_0x286a('0x8d')]||_0x4bcd94&&_0x4bcd94[_0x286a('0x32')]===_0x3f40d6||_0x511344[_0x65c263]['unshift']({'userId':_0x3f40d6,'object':_0x3f16f8[_0x206b47][_0x286a('0x4c')],'change':_0x461547[_0x65c263]}),_0x286a('0x102')===_0x3f16f8[_0x206b47][_0x286a('0x8d')]&&_0x4bcd94&&_0x4bcd94[_0x286a('0x106')]===_0x3f16f8[_0x206b47]['item']&&(_0x511344[_0x65c263][_0x286a('0x73')](),_0x461547[_0x65c263]=_0x4bcd94[_0x286a('0x1b')])),_0x461547[_0x65c263]&&_0xbe019e&&(_0x461547[_0x65c263][_0x286a('0xb9')]=_0x425e09,_0x1c4ddf(_0x461547[_0x65c263]),_0x461547[_0x65c263]=null);}function _0x1c4ddf({start:_0x265e86,end:_0x696370,tapeItem:_0x269c1c,userId:_0x6a2ca0,type:_0x33748b}){const _0x486929=_0x269c1c[_0x286a('0x4c')],_0x34fc44=_0x2b5926[_0x286a('0x9f')][_0x286a('0xf7')](_0x486929)&&!_0x2b5926[_0x286a('0x9f')]['isLimit'](_0x486929),_0x22eb4e=_0x265e86[_0x286a('0x25')]==_0x696370[_0x286a('0x5a')]&&_0x696370[_0x286a('0x2d')];if(_0x34fc44&&_0x22eb4e)return;const _0x5ada9e=_0x2b5926[_0x286a('0xc9')](_0x265e86,_0x696370),_0x59ab8e=_0x59fdb6['get'](_0x6a2ca0),_0x3f7d65=new _0x229602({'author':_0x59ab8e,'type':_0x286a('0xb0')==_0x33748b||_0x286a('0x61')==_0x33748b?'add':_0x286a('0x38'),'data':{'isSuggestion':_0x286a('0x61')==_0x33748b||_0x286a('0x57')==_0x33748b},'createdAt':new Date(),'rootName':_0x55252f});_0x21b62f[_0x286a('0xc8')](_0x3f7d65),_0x4c792a[_0x286a('0xf3')]['set']('revision:'+_0x3f7d65['id'],_0x5ada9e);}function _0x34813c(_0x40b720,_0x45e35c){const _0x3bdf0e=_0x40b720[_0x286a('0xf1')](),_0xcff7a3=_0x45e35c[_0x286a('0xf1')]();for(const _0x359e6f of _0x3bdf0e){if(_0x359e6f[0x1]!==_0x45e35c[_0x286a('0xa2')](_0x359e6f[0x0]))return!0x1;_0xcff7a3[_0x286a('0xa1')]();}return _0xcff7a3[_0x286a('0xa1')]()[_0x286a('0xc7')];}}[_0x286a('0x59')](){this[_0x286a('0xe1')]['conversion'][_0x286a('0x5b')]('upcast')[_0x286a('0xbe')]({'view':_0x286a('0x50')}),this[_0x286a('0xe1')]['conversion']['for'](_0x286a('0x88'))['markerToHighlight']({'model':'revision','view':_0xda90bf=>{const _0x4ea2ed=_0xda90bf[_0x286a('0xe7')][_0x286a('0xa4')](':')[0x1],_0x138ec6=this[_0x286a('0x31')](_0x4ea2ed);if(!_0x138ec6)return null;const _0x45ebaf='add'==_0x138ec6[_0x286a('0x8d')]?'insertion':'deletion',_0x405afb=[_0x286a('0xc4'),_0x286a('0x12b')+_0x45ebaf];return _0x138ec6[_0x286a('0xae')]['isSuggestion']&&_0x405afb[_0x286a('0xc8')](_0x286a('0x12b')+_0x45ebaf+_0x286a('0x67')),this[_0x286a('0x10b')]==_0x138ec6&&_0x405afb[_0x286a('0xc8')](_0x286a('0xf')),{'classes':_0x405afb,'attributes':{'data-change-id':_0x4ea2ed}};}}),this[_0x286a('0xe1')][_0x286a('0xfa')]['for'](_0x286a('0x7e'))['add'](_0x3e2283=>{_0x3e2283['on'](_0x286a('0xfe'),(_0x21ec74,_0x57ae63,_0x37b322)=>{const _0x5bc4ed=_0x57ae63[_0x286a('0x8f')]['getChild'](0x0);if(!_0x5bc4ed||!_0x5bc4ed['is'](_0x286a('0x14'),_0x286a('0xdc')))return;if(!_0x37b322[_0x286a('0xd8')][_0x286a('0x11d')](_0x5bc4ed,{'attributes':[_0x286a('0xb7'),'vid_end']}))return;const _0x2cb12b=_0x57ae63[_0x286a('0x28')][_0x286a('0xf0')][_0x286a('0x25')];_0x37b322[_0x286a('0xd1')][_0x286a('0xa3')]('vid_start',_0x5bc4ed['getAttribute'](_0x286a('0xb7')),_0x2cb12b),_0x37b322[_0x286a('0xd1')][_0x286a('0xa3')]('vid_end',_0x5bc4ed[_0x286a('0xa2')]('vid_end'),_0x2cb12b);},{'priority':_0x286a('0x4a')});}),this[_0x286a('0xe1')][_0x286a('0xfa')][_0x286a('0x5b')](_0x286a('0x7e'))[_0x286a('0xe0')](_0x3ab3c3=>{_0x3ab3c3['on'](_0x286a('0x14'),(_0x4c1b87,_0x137b66,_0x163985)=>{if(!_0x163985[_0x286a('0xd8')][_0x286a('0x11d')](_0x137b66[_0x286a('0x8f')],{'attributes':[_0x286a('0xb7'),_0x286a('0xd4')]}))return;if(_0x137b66[_0x286a('0x28')][_0x286a('0x65')])return;const _0x4ac657=_0x137b66[_0x286a('0x28')][_0x286a('0xf0')]['nodeAfter'];_0x4ac657[_0x286a('0x5')](_0x286a('0xb7'))||_0x4ac657[_0x286a('0x5')](_0x286a('0x119'))||(_0x163985['writer'][_0x286a('0xa3')](_0x286a('0xb7'),_0x137b66['viewItem'][_0x286a('0xa2')]('vid_start'),_0x4ac657),_0x163985[_0x286a('0xd1')]['setAttribute'](_0x286a('0xd4'),_0x137b66[_0x286a('0x8f')][_0x286a('0xa2')](_0x286a('0xd4')),_0x4ac657));},{'priority':_0x286a('0x4a')});}),this[_0x286a('0xe1')][_0x286a('0xfa')][_0x286a('0x5b')](_0x286a('0x7e'))[_0x286a('0xa6')]({'view':{'name':_0x286a('0x3a'),'attributes':{'vid':!0x0}},'model':{'key':_0x286a('0x119'),'value':_0x1043e9=>_0x1043e9['getAttribute'](_0x286a('0x119'))}}),this['editor'][_0x286a('0x99')][_0x286a('0x9f')]['on']('checkAttribute',(_0x3954ba,[,_0x1df9e6])=>{[_0x286a('0xb7'),_0x286a('0xd4'),_0x286a('0x119')][_0x286a('0xba')](_0x1df9e6)&&(_0x3954ba[_0x286a('0x49')]=!0x0,_0x3954ba['stop']());},{'priority':_0x286a('0xef')}),this['editor'][_0x286a('0xfa')]['for'](_0x286a('0xbf'))[_0x286a('0xe0')](_0x54552f=>{_0x54552f['on'](_0x286a('0x6'),(_0x1883e6,_0x383ef3,_0x14b375)=>{if('\x20'!=_0x383ef3[_0x286a('0x4c')][_0x286a('0xae')]||_0x383ef3[_0x286a('0x4c')][_0x286a('0x5a')][_0x286a('0x124')]>0x1)return;if(!_0x14b375[_0x286a('0xd8')][_0x286a('0x11d')](_0x383ef3[_0x286a('0x4c')],_0x1883e6['name']))return;const _0x33dcf5=_0x14b375[_0x286a('0xd1')],_0x1812f7=_0x14b375['mapper'][_0x286a('0xd')](_0x383ef3[_0x286a('0x2e')]);_0x33dcf5[_0x286a('0x89')](_0x1812f7,_0x33dcf5[_0x286a('0x110')]('span'));});}),this[_0x286a('0xe1')][_0x286a('0xfa')]['for'](_0x286a('0xbf'))['markerToData']({'model':_0x286a('0x50')}),this[_0x286a('0xe1')][_0x286a('0x9b')][_0x286a('0xbd')]['on']('addMarker:revision',function(_0x2e79b3){const _0x480479=_0x2e79b3[_0x286a('0x90')][_0x286a('0x11e')](_0x286a('0xa8'));return(_0x2fcdf8,_0xd0cfff,_0x5b1995)=>{const _0x47751c=_0xd0cfff['markerName']['split'](':')[0x1],_0x46be8b=_0x480479[_0x286a('0x31')](_0x47751c);if(!_0x46be8b)return null;const _0x98c882=_0x286a('0xe0')==_0x46be8b[_0x286a('0x8d')]?_0x286a('0xa4'):_0x286a('0xf5');if(!_0x5b1995['consumable'][_0x286a('0x101')](_0xd0cfff[_0x286a('0x3d')],_0x2fcdf8[_0x286a('0x9c')]))return;const _0x5e0133=_0xd0cfff[_0x286a('0x3d')]['getWalker'](),_0x59326d=_0xd0cfff[_0x286a('0x3d')][_0x286a('0xf0')],_0x15fc1c=_0x2e79b3[_0x286a('0x99')][_0x286a('0x9f')];let _0x13013b=null,_0x49abb5=null,_0xc442f3=!0x1,_0x1b90fb=!0x1;for(const _0x2ac74 of _0x5e0133){const _0x36ce95=_0x2ac74[_0x286a('0x4c')];_0xc442f3=_0xc442f3||_0x15fc1c[_0x286a('0x68')](_0x36ce95);const _0x28cd77=_0x5b1995[_0x286a('0x10a')][_0x286a('0x53')](_0x36ce95);if(_0x28cd77&&_0x28cd77[_0x286a('0x40')](_0x286a('0x29')))return;'elementEnd'==_0x2ac74[_0x286a('0x8d')]&&(_0x15fc1c[_0x286a('0xf7')](_0x36ce95)&&!_0x15fc1c['isLimit'](_0x36ce95)&&(_0x36ce95['nextSibling']||_0x59326d[_0x286a('0xec')]?_0x13013b&&_0x13013b[_0x286a('0x5a')]==_0x36ce95||(_0x13013b=_0x36ce95,_0x5edc34(_0x2ac74[_0x286a('0x24')]),_0x1b90fb=!0x0):_0x49abb5=_0x49abb5||_0x2ac74[_0x286a('0x24')]));}function _0x5edc34(_0x18d334){const _0x184d64=_0x5b1995[_0x286a('0xd1')][_0x286a('0xdf')](_0x286a('0x3a'),{'class':_0x286a('0x12b')+_0x98c882}),_0x45a32b=_0x5b1995['mapper']['toViewPosition'](_0x18d334);_0x46be8b[_0x286a('0xae')]['isSuggestion']&&_0x5b1995[_0x286a('0xd1')][_0x286a('0x87')](_0x286a('0x12b')+_0x98c882+'-new',_0x184d64),_0x480479[_0x286a('0x10b')]==_0x46be8b&&_0x5b1995[_0x286a('0xd1')][_0x286a('0x87')](_0x286a('0xf'),_0x184d64),_0x5b1995[_0x286a('0xd1')]['insert'](_0x45a32b,_0x184d64),_0x5b1995[_0x286a('0x10a')]['bindElementToMarker'](_0x184d64,_0xd0cfff[_0x286a('0xe7')]);}_0xc442f3||_0x1b90fb||!_0x49abb5||_0x5edc34(_0x49abb5);};}(this[_0x286a('0xe1')]),{'priority':_0x286a('0x63')}),this[_0x286a('0xe1')][_0x286a('0x9b')][_0x286a('0xbd')]['on'](_0x286a('0x3'),(_0x4dd040,_0x3bd650,_0x508933)=>{const _0x7d5b2d=_0x508933[_0x286a('0x10a')][_0x286a('0x51')](_0x3bd650[_0x286a('0xe7')]);if(_0x7d5b2d)for(const _0xee55d of _0x7d5b2d)(_0xee55d['hasClass']('ck-suggestion-marker-split')||_0xee55d[_0x286a('0xe5')](_0x286a('0xd5')))&&(_0x508933[_0x286a('0x10a')][_0x286a('0x5c')](_0xee55d,_0x3bd650[_0x286a('0xe7')]),_0x508933[_0x286a('0xd1')][_0x286a('0x38')](_0xee55d));},{'priority':_0x286a('0x63')}),this[_0x286a('0xe1')][_0x286a('0x9b')]['downcastDispatcher']['on'](_0x286a('0xdb'),(_0x1ae30d,_0x204d60,_0x1f8dc4)=>{const _0x2a40c2=_0x204d60[_0x286a('0xe7')][_0x286a('0xa4')](':')[0x1],_0x98ebdb=this[_0x286a('0x31')](_0x2a40c2);if(!_0x98ebdb)return null;const _0x568e7c=_0x286a('0xe0')==_0x98ebdb[_0x286a('0x8d')]?_0x286a('0xa4'):_0x286a('0xf5');if(_0x1f8dc4[_0x286a('0xd8')][_0x286a('0x101')](_0x204d60[_0x286a('0x3d')],_0x1ae30d['name']))for(const _0x30400b of _0x204d60[_0x286a('0x3d')]['getItems']()){if(!_0x30400b['is'](_0x286a('0x14'),_0x286a('0x81')))continue;const _0x183dac=_0x1f8dc4['writer']['createUIElement'](_0x286a('0x3a'),{'class':'ck-suggestion-marker-'+_0x568e7c}),_0x538f20=_0x1f8dc4[_0x286a('0x10a')][_0x286a('0x56')](this[_0x286a('0xe1')][_0x286a('0x99')]['createPositionBefore'](_0x30400b));_0x98ebdb[_0x286a('0xae')][_0x286a('0x7d')]&&_0x1f8dc4[_0x286a('0xd1')]['addClass'](_0x286a('0x12b')+_0x568e7c+_0x286a('0x67'),_0x183dac),this[_0x286a('0x10b')]==_0x98ebdb&&_0x1f8dc4[_0x286a('0xd1')][_0x286a('0x87')](_0x286a('0xf'),_0x183dac),_0x1f8dc4[_0x286a('0xd1')][_0x286a('0xd6')](_0x538f20,_0x183dac),_0x1f8dc4[_0x286a('0x10a')][_0x286a('0xb6')](_0x183dac,_0x204d60['markerName']);}},{'priority':_0x286a('0x63')}),this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')]['on']('change',()=>{this[_0x286a('0xe1')][_0x286a('0x9b')]['view'][_0x286a('0x1b')](_0x3cb888=>{for(const _0x25bcab of this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')][_0x286a('0x45')]()){const _0x356cc2=this[_0x286a('0xe1')][_0x286a('0x99')]['document'][_0x286a('0xea')](_0x25bcab),_0x5ed2e0=this[_0x286a('0xe1')]['editing'][_0x286a('0xe2')][_0x286a('0xc2')][_0x286a('0xea')](_0x25bcab);if(_0x5ed2e0){const _0x5884bd=_0x356cc2['getAttribute'](_0x286a('0x11a'));if(_0x3cb888[_0x286a('0x1e')](_0x286a('0xf6'),_0x5ed2e0),_0x3cb888[_0x286a('0xf9')](_0x286a('0x27'),_0x5ed2e0),_0x3cb888[_0x286a('0xf9')]('ck-revision-history-root-remove',_0x5ed2e0),_0x3cb888['removeClass'](_0x286a('0xcb'),_0x5ed2e0),_0x5884bd){const _0x17f055=this[_0x286a('0x31')](_0x5884bd);if(!_0x17f055)return null;_0x3cb888[_0x286a('0xa3')](_0x286a('0xf6'),_0x5884bd,_0x5ed2e0),_0x3cb888[_0x286a('0x87')](_0x286a('0x11')+_0x17f055[_0x286a('0x8d')],_0x5ed2e0),this[_0x286a('0x10b')]==_0x17f055&&_0x3cb888[_0x286a('0x87')](_0x286a('0xcb'),_0x5ed2e0);}}}});}),this['editor'][_0x286a('0xfa')][_0x286a('0x5b')]('upcast')[_0x286a('0xbe')]({'view':_0x286a('0x92'),'model':_0x2cfc47=>_0x286a('0xaf')+_0x2cfc47,'converterPriority':_0x286a('0xef')}),this[_0x286a('0xe1')][_0x286a('0xfa')][_0x286a('0x5b')]('upcast')[_0x286a('0xbe')]({'view':'suggestion','model':_0xc32601=>_0x286a('0x2f')+_0xc32601,'converterPriority':_0x286a('0xef')}),this['editor'][_0x286a('0xfa')][_0x286a('0x5b')](_0x286a('0xbf'))['markerToData']({'model':'revision-suggestion','view':_0x3f31ac=>({'name':_0x286a('0x47')+_0x3f31ac,'group':_0x286a('0x84')}),'converterPriority':_0x286a('0xef')}),this[_0x286a('0xe1')][_0x286a('0xfa')][_0x286a('0x5b')](_0x286a('0x88'))[_0x286a('0x96')]({'model':_0x286a('0x84'),'view':_0x404be0=>{const _0x4c27a9=_0x404be0[_0x286a('0xe7')][_0x286a('0xa4')](':')[0x1];return _0x286a('0x1a')!=_0x4c27a9&&'deletion'!=_0x4c27a9?null:{'classes':[_0x286a('0x79'),'ck-suggestion-preview-marker-'+_0x4c27a9]};}}),this[_0x286a('0xe1')]['editing']['downcastDispatcher']['on'](_0x286a('0xe9'),et(this[_0x286a('0xe1')],_0x286a('0xf5')),{'priority':'high'}),this['editor'][_0x286a('0x9b')][_0x286a('0xbd')]['on'](_0x286a('0x114'),et(this[_0x286a('0xe1')],'split'),{'priority':_0x286a('0x63')}),this['editor'][_0x286a('0x9b')][_0x286a('0xbd')]['on'](_0x286a('0xb8'),(_0x2c8e45,_0xb4ca00,_0x3aceda)=>{const _0x1d4d84=_0x3aceda[_0x286a('0x10a')][_0x286a('0x51')](_0xb4ca00[_0x286a('0xe7')]);if(_0x1d4d84)for(const _0x3fe0ae of _0x1d4d84)_0x3fe0ae['is'](_0x286a('0x1f'))&&(_0x3aceda['mapper'][_0x286a('0x5c')](_0x3fe0ae,_0xb4ca00['markerName']),_0x3aceda['writer']['remove'](_0x3fe0ae));},{'priority':_0x286a('0x63')});}['_getChangeFromId'](_0x331e32){return this[_0x286a('0x48')]['get'](_0x331e32);}[_0x286a('0x6a')](_0x5b695f){return this[_0x286a('0x74')]&&this[_0x286a('0x74')][_0x286a('0x20')](),this[_0x286a('0x74')]=new _0x191933(this[_0x286a('0xe1')][_0x286a('0x58')],_0x5b695f),this[_0x286a('0x74')];}[_0x286a('0xa')](){this[_0x286a('0xe1')][_0x286a('0x99')]['document'][_0x286a('0x46')][_0x286a('0xc6')](_0x286a('0x50')),this['on'](_0x286a('0x76'),(_0x2bc577,_0x41ac02,_0x44e0d4,_0x27571a)=>{_0x27571a&&this[_0x286a('0x69')][_0x286a('0x38')](_0x27571a),_0x44e0d4&&(this[_0x286a('0x69')][_0x286a('0xe0')]({'view':_0x44e0d4,'stackId':_0x286a('0x12a'),'position':{'target':()=>{const _0x144586=this[_0x286a('0xe1')]['editing'],_0x297147=this['_getChangeFromId'](_0x44e0d4['changeId']);let _0x4cd644;if(_0x297147[_0x286a('0xae')]['isOnRoot']){const _0x2e7696=_0x144586['view']['getDomRoot'](_0x297147[_0x286a('0x3f')]);_0x4cd644=Array[_0x286a('0x30')](_0x2e7696['getClientRects']());}else{const _0x88b002=this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xf3')][_0x286a('0x11e')]('revision:'+_0x44e0d4['changeId']);_0x4cd644=Array['from'](_0x144586[_0x286a('0x10a')][_0x286a('0x51')](_0x88b002[_0x286a('0x9c')]))[_0x286a('0xd2')](_0x323dea=>_0x144586[_0x286a('0xe2')][_0x286a('0x103')][_0x286a('0x94')](_0x323dea))['map'](_0x8bcda9=>Array[_0x286a('0x30')](_0x8bcda9[_0x286a('0x2b')]()))[_0x286a('0x6d')]();}if(!this['_activeViewTarget'])return _0x4cd644[0x0];return _0x4cd644[_0x286a('0x5e')](_0x448bff=>_0x448bff[_0x286a('0x82')]-0x3<=this[_0x286a('0x10f')]['y']&&_0x448bff['bottom']+0x3>=this[_0x286a('0x10f')]['y']&&_0x448bff[_0x286a('0x97')]-0x3<=this[_0x286a('0x10f')]['x']&&_0x448bff[_0x286a('0xa0')]+0x3>=this[_0x286a('0x10f')]['x'])||_0x4cd644[0x0];}}}),this['_balloon'][_0x286a('0x7c')](_0x286a('0x12a')));}),this['on'](_0x286a('0x123'),(_0x4589d3,_0x3538cc,_0xcdddc0,_0x589d8f)=>{this['activeView']=_0xcdddc0?this[_0x286a('0x6a')](_0xcdddc0):null,this[_0x286a('0xe1')][_0x286a('0x99')]['change'](()=>{const _0x3564f3=this['editor']['editing'];_0x589d8f&&(_0x589d8f[_0x286a('0xae')][_0x286a('0xf4')]?_0x3564f3[_0x286a('0xe2')][_0x286a('0x1b')](_0x395028=>{_0x395028[_0x286a('0xf9')]('ck-revision-history-root--active',_0x3564f3[_0x286a('0xe2')]['document']['getRoot'](_0x589d8f[_0x286a('0x3f')]));}):_0x3564f3[_0x286a('0x77')]('revision:'+_0x589d8f['id'])),_0xcdddc0&&(_0xcdddc0[_0x286a('0xae')][_0x286a('0xf4')]?_0x3564f3['view'][_0x286a('0x1b')](_0x50d01c=>{_0x50d01c[_0x286a('0x87')](_0x286a('0xcb'),_0x3564f3[_0x286a('0xe2')][_0x286a('0xc2')][_0x286a('0xea')](_0xcdddc0[_0x286a('0x3f')]));}):_0x3564f3[_0x286a('0x77')](_0x286a('0x42')+_0xcdddc0['id']));});}),this[_0x286a('0x117')](this[_0x286a('0xe1')][_0x286a('0x9b')]['view'][_0x286a('0xc2')],_0x286a('0x44'),(_0x2a4948,_0x1332d8)=>{if(this[_0x286a('0x10b')])return;const _0xdaa903=this[_0x286a('0x86')](_0x1332d8[_0x286a('0x35')]),_0x495629=this[_0x286a('0x48')]['get'](_0xdaa903);_0x495629?(this[_0x286a('0x10f')]={'x':_0x1332d8[_0x286a('0xf2')]['x'],'y':_0x1332d8['domEvent']['y']},this[_0x286a('0x12')]=this[_0x286a('0x6a')](_0x495629)):(this[_0x286a('0x10f')]=null,this[_0x286a('0x12')]=null);}),this['listenTo'](this[_0x286a('0xe1')][_0x286a('0x9b')][_0x286a('0xe2')]['document'],'mousedown',(_0x48bbdb,_0x1da322)=>{const _0x189a49=this[_0x286a('0x86')](_0x1da322['target']),_0x13a59d=this[_0x286a('0x48')][_0x286a('0x11e')](_0x189a49);_0x13a59d?(this['_activeViewTarget']={'x':_0x1da322[_0x286a('0xf2')]['x'],'y':_0x1da322[_0x286a('0xf2')]['y']},_0x13a59d===this[_0x286a('0x10b')]?this[_0x286a('0x69')][_0x286a('0x2c')]():this[_0x286a('0x10b')]=_0x13a59d):(this[_0x286a('0x10f')]=null,this['activeChange']=null);});}[_0x286a('0x86')](_0x51a7a4){do{const _0x28d7e2=_0x51a7a4[_0x286a('0xa2')](_0x286a('0xf6'));if(_0x28d7e2)return _0x28d7e2;_0x51a7a4=_0x51a7a4[_0x286a('0x5a')];}while(_0x51a7a4);return null;}[_0x286a('0x2a')](){this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0x1b')](_0x90988a=>{for(const _0xd37d1a of this[_0x286a('0xe1')]['model'][_0x286a('0xf3')])_0x90988a[_0x286a('0x8c')](_0xd37d1a);});}}function et(_0x12d823,_0x30c583){return(_0x46c132,_0x1c34c4,_0xca29cb)=>{if(!_0xca29cb['consumable']['test'](_0x1c34c4[_0x286a('0x3d')],_0x46c132[_0x286a('0x9c')]))return;const _0x2804c7=_0x1c34c4[_0x286a('0x3d')][_0x286a('0x9a')](),_0x116eb5=_0x1c34c4[_0x286a('0x3d')][_0x286a('0xf0')],_0x2c2f42=_0x12d823[_0x286a('0x99')]['schema'];let _0x38e277=null,_0x5a0589=null,_0x555ea8=!0x1,_0x3af26d=!0x1;for(const _0x17774b of _0x2804c7){const _0x20a15b=_0x17774b[_0x286a('0x4c')];_0x555ea8=_0x555ea8||_0x2c2f42[_0x286a('0x68')](_0x20a15b);const _0x4f2852=_0xca29cb[_0x286a('0x10a')]['toViewElement'](_0x20a15b);if(_0x4f2852&&_0x4f2852['getCustomProperty'](_0x286a('0x29')))return;_0x286a('0x102')==_0x17774b['type']&&(_0x2c2f42['isBlock'](_0x20a15b)&&!_0x2c2f42[_0x286a('0xe3')](_0x20a15b)&&(_0x20a15b['nextSibling']||_0x116eb5[_0x286a('0xec')]?_0x38e277&&_0x38e277[_0x286a('0x5a')]==_0x20a15b||(_0x38e277=_0x20a15b,_0x42c34d(_0x17774b[_0x286a('0x24')]),_0x3af26d=!0x0):_0x5a0589=_0x5a0589||_0x17774b[_0x286a('0x24')]));}function _0x42c34d(_0x547da4){const _0x46ecb0=_0xca29cb[_0x286a('0x10a')][_0x286a('0x56')](_0x547da4),_0x5794ad=_0xca29cb[_0x286a('0xd1')]['createUIElement']('span',{'class':_0x286a('0x64')+_0x30c583});_0xca29cb[_0x286a('0xd1')][_0x286a('0xd6')](_0x46ecb0,_0x5794ad),_0xca29cb['mapper']['bindElementToMarker'](_0x5794ad,_0x1c34c4['markerName']);}_0x555ea8||_0x3af26d||!_0x5a0589||_0x42c34d(_0x5a0589);};}export class RestoreRevisionCommand extends _0x33b267{constructor(_0x59bdbb){super(_0x59bdbb);const _0x190c80=_0x59bdbb[_0x286a('0x90')][_0x286a('0x11e')](d);this[_0x286a('0x11f')]=!0x1,this[_0x286a('0x117')](_0x190c80,_0x286a('0xc1'),()=>this['refresh']()),this[_0x286a('0x117')](_0x190c80,_0x286a('0x8e'),()=>this[_0x286a('0xe8')]());}[_0x286a('0x62')](){const _0x3a8206=this[_0x286a('0xe1')],_0x2b5b51=_0x3a8206[_0x286a('0x90')][_0x286a('0x11e')](d),_0x43e6b2=_0x2b5b51[_0x286a('0x12c')]?_0x2b5b51[_0x286a('0x9e')][_0x286a('0x22')]:null;_0x3a8206[_0x286a('0x43')][_0x286a('0x11e')](_0x286a('0x10c'))[_0x286a('0x8b')](_0x43e6b2);}[_0x286a('0xe8')](){const {isReady:_0x14a458,isEnabled:_0xf600f0}=this[_0x286a('0xe1')]['plugins']['get'](d);this[_0x286a('0x66')]=_0x14a458&&_0xf600f0;}}export class ShowChangeCommand extends _0x33b267{constructor(_0x347f72,{direction:_0x566331}){super(_0x347f72);const _0x2cbf43=_0x347f72[_0x286a('0x90')][_0x286a('0x11e')](d);this[_0x286a('0x11f')]=!0x1,this[_0x286a('0x13')]=_0x286a('0x2')===_0x566331?0x1:-0x1,this[_0x286a('0x117')](_0x2cbf43,_0x286a('0xc1'),()=>this['refresh']()),this[_0x286a('0x117')](_0x2cbf43,_0x286a('0x8e'),()=>this[_0x286a('0xe8')]());}[_0x286a('0x62')](){const _0x5ef914=this[_0x286a('0xe1')],_0x354856=_0x5ef914[_0x286a('0x90')]['get'](d),{isNavigationMode:_0x2b6a6d,currentChangeNumber:_0x1bfd05}=_0x354856;let _0x1622bf;if(_0x354856[_0x286a('0x10b')]=_0x2b6a6d?_0x354856[_0x286a('0x9e')][_0x286a('0xdd')][_0x286a('0x11e')](_0x1bfd05+this['_step']):_0x354856[_0x286a('0x9e')][_0x286a('0xdd')][_0x286a('0xd0')],_0x354856[_0x286a('0x10b')][_0x286a('0xae')][_0x286a('0xf4')])_0x1622bf=_0x5ef914['editing'][_0x286a('0xe2')][_0x286a('0x75')](_0x354856[_0x286a('0x10b')][_0x286a('0x3f')]);else{const _0x438164=_0x5ef914[_0x286a('0x99')]['markers'][_0x286a('0x11e')](_0x286a('0x42')+_0x354856['activeChange']['id']);_0x1622bf=_0xd62a0c(_0x5ef914[_0x286a('0x9b')],_0x438164);}_0x2f86b7({'target':_0x1622bf,'viewportOffset':0x28});}[_0x286a('0xe8')](){const {isNavigationMode:_0x2cbf2e,currentChangeNumber:_0x1c4f25,numberOfChanges:_0x9684ac,isReady:_0x3349bc,isEnabled:_0x31e838}=this[_0x286a('0xe1')][_0x286a('0x90')]['get'](d);this[_0x286a('0x66')]=!!(_0x31e838&&_0x3349bc&&_0x9684ac)&&(!_0x2cbf2e||(0x1===this[_0x286a('0x13')]?_0x1c4f25<_0x9684ac-0x1:_0x1c4f25>0x0));}}
|
|
23
|
+
const _0x172e=['diffData','_step','mapper','getIndex','_revisions','domEvent','_setChanges','highest','oldRevisionId','listenTo','_setConversion','removeAttribute','type','has','getDomRoot','enableReadOnlyMode','getAttribute','revisionHistoryAttachChange','vid_end','commands','ck-revision-history-root-add','createRange','softBreak','stop','restoreRevisionCallback','bottom','vid','clear','left','comment','end','isInline','currentChangeNumber','code','markerNameToElements','isRemoveSuggestion','showNextChange','isIncorrect','detachRoot','removeMarker:revision','config','adapter','getClientRects','setAttribute','affectsData','revision-viewer','revisionHistoryLabel','markersEnd','ck-suggestion-preview-marker','revision-end','_markSuggestions','isAtEnd','data','data-change-id','revision-start','-new','useFillerType','_sortAndFilterDiffChanges','mouseover','change:activeChange','wrap','createAttributeElement','getAttributes','activeView','_getDiff','upcast','_findChangeIdFromDomTarget','get','getItems','processor','getRootNames','index','toData','elementEnd','all','editor','markers','marked','getWalker','_getRevisionsRange','isEqual','userId','mapViewToDom','_setDistance','_getViewForChange','isCollapsed','element:pre','markerName','range','ck-suggestion-marker--active','bindElementToMarker','writer','first','ck-suggestion-marker-','startsWith','_activeViewTarget','dataDowncast','isLimit','change:activeView','RevisionViewer','includes','createRangeIn','findIndex','level','isAddSuggestion','isBlock','insert','ck-revision-history-root--active','concat','consumable','getRevisionData','element','_removeMissingPairs','isReady','markersStart','isOnRoot','change:isReady','reconvertMarker','distance','delete','addRevision','maxOffset','addMarker:revision','isAttached','splice','object','_makeTape','return','attributes','startIndex','sort','_markInsertions','remove','span','set','_markMarkers','name','revision-suggestion','editingDowncast','isEnabled','loadRevisionData','from','forward','addMarker:revision-suggestion:insertion','plugins','attachChange','toViewElement','compare','document','execute','add','ck-editor__editable__overlay','toModel','isAdded','ck-revision-history-root-','_joinTapes','forceDisabled','isObject','markerToHighlight','getRevision','refresh','isSuggestion','RevisionsRepository','item','backward','pairId','insertions','string','isContent','suggestion:','getRevisionRootsAttributes','rootName','locale','_getChangeFromId','addRevisionData','_refreshStartEndIndex','model','suggestion','low','enqueueChange','updatePosition','mousedown','authors','_balloon','WidgetToolbarRepository','removeMarker:revision-suggestion','ck-revision-history-root-remove','insertion','editing','showStack','_processTape','changeId','repository','uiElement','_removeRevisionMarkers','createUIElement','isBefore','pop','getChild','keys','_initInteractions','data-revision-','destroy','_update','newRevisionId','values','getCustomProperty','find','push','done','markerRange','_changeView','revision:','revision-suggestion:','diff','getRoot','test','change:numberOfChanges','start','_cleanMarkers','nextPosition','target','_makeModelFromViewString','previousPosition','isRemoved','top','consume','ck-suggestion-marker-split','changes','forEach','createPositionFromPath','dataToMarker','shift','catch','nextSibling','downcastDispatcher','collaboration.channelId','_removeUnsupportedChanges','toViewPosition','viewItem','high','_changeIdToChange','removeClass','nodeAfter','attributesAfter','change:isEnabled','activeChange','markerToData','_cleanUp','bind','then','_appendChild','text','modelRange','view','_fixObsoleteTags','resolve','endIndex','filter','createPositionBefore','addClass','_makeModelFromTape','change','ck-suggestion-preview-marker-','elementToAttribute','deletions','indexOf','split','revision-comment:','for','map','_markMismatchedRemovedTags','elementStart','next','schema','toViewRange','isAtStart','hasClass','length','pluginName','unshift','_threeWayMerge','parent','side','observeMarkers','deletion','default','revision','roots','_data','merge','children','abs','isAfter','_getViewObj','vid_start','conversion','createRevision'];(function(_0x497d0f,_0x172ec7){const _0x499607=function(_0xaacc5c){while(--_0xaacc5c){_0x497d0f['push'](_0x497d0f['shift']());}};_0x499607(++_0x172ec7);}(_0x172e,0x198));const _0x4996=function(_0x497d0f,_0x172ec7){_0x497d0f=_0x497d0f-0x0;let _0x499607=_0x172e[_0x497d0f];return _0x499607;};import{Plugin as _0x447ee7,Command as _0x375e2b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x22828b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x211c45}from'ckeditor5/src/ui';import{DocumentFragment as _0x43670e,Element as _0x4eafb8,Text as _0x1bf5df,ViewDocumentFragment as _0x4b1689,ViewText as _0x3cc44a,ViewElement as _0x138663,ViewContainerElement as _0xb281a4,ViewAttributeElement as _0x2387d8,ViewEmptyElement as _0x3e6581,ViewRawElement as _0x1ae8d1,ViewUIElement as _0x45f46}from'ckeditor5/src/engine';import{Users as _0x17773b,getMarkerDomElement as _0x39ac91}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b3fd3 from'./ui/revisionviewer/changedetailsview';import _0x2b1d2f from'./revisionsrepository';import _0x573f15 from'./changeitem';import{default as _0x5bd5b3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x46bcdc}from'lodash-es';const tt={'c':_0xb281a4,'a':_0x2387d8,'e':_0x3e6581,'r':_0x1ae8d1,'u':_0x45f46};export default class d extends _0x447ee7{static get[_0x4996('0xa9')](){return _0x4996('0x11f');}static get['requires'](){return[_0x17773b,_0x211c45,_0x2b1d2f];}constructor(_0x56f5c9){super(_0x56f5c9),this[_0x4996('0x52')]=this['editor'][_0x4996('0x22')]['get'](_0x4996('0x34')),this[_0x4996('0x18')](_0x4996('0x88'),null),this['set'](_0x4996('0xfb'),null),this[_0x4996('0x11b')]=null,this[_0x4996('0x18')](_0x4996('0x68'),null),this[_0x4996('0x18')]('isReady',!0x1),this[_0x4996('0x18')](_0x4996('0x1d'),!0x0),this['on'](_0x4996('0x87'),(_0x31a728,_0x46bfd8,_0x1a5c74)=>{this[_0x4996('0x88')]=null,this[_0x4996('0xfb')]=null,this['editor'][_0x4996('0x4e')][_0x4996('0x90')][_0x4996('0x98')](_0x237610=>{for(const _0x945cc5 of this[_0x4996('0x107')]['editing'][_0x4996('0x90')][_0x4996('0x26')][_0x4996('0xb2')])_0x1a5c74?_0x237610[_0x4996('0x84')](_0x4996('0x29'),_0x945cc5):_0x237610[_0x4996('0x96')](_0x4996('0x29'),_0x945cc5);});}),this['bind']('isNavigationMode')['to'](this,_0x4996('0x88'),_0x957ea4=>null!==_0x957ea4),this[_0x4996('0x8b')](_0x4996('0xdc'))['to'](this,_0x4996('0x3'),this,_0x4996('0x68'),this,_0x4996('0x88'),(_0x31a697,_0x2cdc2c,_0x29fec6)=>_0x31a697&&_0x29fec6?_0x2cdc2c[_0x4996('0x76')][_0x4996('0xbf')](_0x29fec6):0x0),this[_0x4996('0x8b')]('numberOfChanges')['to'](this,_0x4996('0x3'),this,_0x4996('0x68'),(_0x3be91a,_0x31b698)=>_0x3be91a?_0x31b698[_0x4996('0x76')][_0x4996('0xa8')]:0x0),this[_0x4996('0x65')]=null,this['_changeIdToChange']=new Map(),this[_0x4996('0xe5')]=null,this[_0x4996('0x49')]=this['editor'][_0x4996('0x22')][_0x4996('0xff')](_0x211c45);}['init'](){const _0x416a6c=this[_0x4996('0x107')],_0x555698=new ShowChangeCommand(_0x416a6c,{'direction':_0x4996('0x36')}),_0xab7801=new ShowChangeCommand(_0x416a6c,{'direction':_0x4996('0x20')});(_0x416a6c[_0x4996('0xcf')][_0x4996('0x28')]('showPreviousChange',_0x555698),_0x416a6c[_0x4996('0xcf')][_0x4996('0x28')](_0x4996('0xe0'),_0xab7801),_0x416a6c[_0x4996('0xcf')]['add']('restoreRevision',new RestoreRevisionCommand(_0x416a6c)),this['on'](_0x4996('0x6b'),()=>{_0x555698[_0x4996('0x32')](),_0xab7801[_0x4996('0x32')]();}),this['_setConversion'](),this[_0x4996('0x5a')](),_0x416a6c[_0x4996('0xcb')](_0x4996('0xe9')),_0x416a6c[_0x4996('0x22')][_0x4996('0xc9')](_0x4996('0x4a')))&&_0x416a6c['plugins'][_0x4996('0xff')](_0x4996('0x4a'))[_0x4996('0x2e')](_0x4996('0xe9'));}async[_0x4996('0x0')](_0x93d9){await this['loadRevisionData'](_0x93d9);const _0x19d4ba={};for(const _0x4ab873 in _0x93d9[_0x4996('0xbc')]){if(_0x93d9[_0x4996('0xbc')][_0x4ab873][_0x4996('0x23')]&&!_0x93d9[_0x4996('0xbc')][_0x4ab873][_0x4996('0x23')]['isAttached'])continue;const _0x3f493d=this[_0x4996('0x54')](JSON['parse'](_0x93d9[_0x4996('0xbc')][_0x4ab873][_0x4996('0x38')])),_0x4a9a81=this[_0x4996('0x107')]['editing'][_0x4996('0x90')][_0x4996('0x26')],_0x539c9b=new _0x4b1689(_0x4a9a81,_0x3f493d['map'](_0x14cf21=>this['_getViewObj'](_0x14cf21)));this[_0x4996('0x107')]['data'][_0x4996('0x101')][_0x4996('0xf4')](_0x4996('0x109')),_0x19d4ba[_0x4ab873]=this[_0x4996('0x107')]['data'][_0x4996('0x101')][_0x4996('0x104')](_0x539c9b),this['editor'][_0x4996('0xf0')]['processor'][_0x4996('0xf4')](_0x4996('0xb0'));}return _0x19d4ba;}async[_0x4996('0x3c')](_0x122d97){await this[_0x4996('0x1e')](_0x122d97);const _0x580716={};for(const _0x518f37 in _0x122d97[_0x4996('0xbc')])_0x122d97[_0x4996('0xbc')][_0x518f37][_0x4996('0x23')]&&!_0x122d97[_0x4996('0xbc')][_0x518f37]['attachChange']['isAttached']||(_0x580716[_0x518f37]=_0x122d97[_0x4996('0xbc')][_0x518f37][_0x4996('0x86')]||{});return _0x580716;}[_0x4996('0x54')](_0x4bdfd4){return(_0x4bdfd4=_0x4bdfd4[_0x4996('0x94')](_0x452aee=>!_0x452aee['name']||_0x4996('0xf2')!==_0x452aee[_0x4996('0x1a')]&&_0x4996('0xed')!==_0x452aee[_0x4996('0x1a')]))['forEach'](_0x159f96=>{_0x4996('0x39')!=typeof _0x159f96&&(_0x159f96[_0x4996('0xb5')]=this[_0x4996('0x54')](_0x159f96['children']),_0x159f96[_0x4996('0x12')]=_0x159f96[_0x4996('0x12')][_0x4996('0x94')](_0x310be5=>!_0x310be5[0x0][_0x4996('0x11a')](_0x4996('0x5b'))));}),_0x4bdfd4;}async[_0x4996('0x25')](_0x376680,_0x182a76,_0x3e0b21=!0x1){if(!this[_0x4996('0x1d')])return;const _0x35a52f=this['diff'],_0x19225d=this[_0x4996('0x52')],_0x17f7f4='string'==typeof _0x376680?_0x19225d['getRevision'](_0x376680):_0x376680,_0x420497=_0x4996('0x39')==typeof _0x182a76?_0x19225d[_0x4996('0x31')](_0x182a76):_0x182a76,_0x4498e6=_0x17f7f4['id'],_0xc1c071=_0x420497?_0x420497['id']:null;if(!_0x3e0b21&&this[_0x4996('0x68')]&&this['diff'][_0x4996('0x5e')]===_0x4498e6&&this[_0x4996('0x68')][_0x4996('0xc4')]===_0xc1c071)return Promise[_0x4996('0x92')]();this['isReady']=!0x1,this[_0x4996('0xfb')]=null,this[_0x4996('0x88')]=null,this['diff']=new _0x5bd5b3(_0x4498e6,_0xc1c071);const _0x1744f0=this[_0x4996('0x10b')](_0x17f7f4,_0x420497,!0x0)['map'](_0x432032=>this[_0x4996('0x1e')](_0x432032));return _0x1744f0['push'](new Promise(_0x5516b8=>{setTimeout(_0x5516b8,0x14);})),Promise[_0x4996('0x106')](_0x1744f0)[_0x4996('0x8c')](()=>{if(!this[_0x4996('0x1d')])return;this[_0x4996('0x8a')]();const _0x2d97cc=this[_0x4996('0xfc')](_0x4498e6,_0xc1c071);for(const _0x20162b of _0x2d97cc[_0x4996('0x76')])this[_0x4996('0x83')][_0x4996('0x18')](_0x20162b['id'],_0x20162b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x452f48=>{for(const _0x4c60e5 of this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0x26')][_0x4996('0x102')]())_0x452f48[_0x4996('0xe2')](_0x4c60e5);for(const _0x107dd8 of Object['keys'](_0x2d97cc[_0x4996('0x42')])){const _0x3733e0=_0x452f48['addRoot'](_0x107dd8);for(const _0x188f97 of Object[_0x4996('0x59')](_0x2d97cc[_0x4996('0x12')][_0x107dd8]))_0x452f48[_0x4996('0xe7')](_0x188f97,_0x2d97cc[_0x4996('0x12')][_0x107dd8][_0x188f97],_0x3733e0);_0x452f48[_0x4996('0x126')](_0x2d97cc[_0x4996('0x42')][_0x107dd8],_0x3733e0,0x0);}}),this['diff'][_0x4996('0xc2')](this[_0x4996('0xf5')](_0x2d97cc[_0x4996('0x76')])),this[_0x4996('0x3')]=!0x0;})[_0x4996('0x7b')](_0x26f0b1=>{console['error'](_0x26f0b1),this[_0x4996('0x8a')](),_0x35a52f&&(this[_0x4996('0x68')]=_0x35a52f),this[_0x4996('0x3')]=!0x0;});}[_0x4996('0x40')](_0x1f922e,_0x235270){const _0x407527=this[_0x4996('0x52')][_0x4996('0xbb')](_0x1f922e);return _0x407527['on'](_0x4996('0x5d'),(_0x2836a1,_0x32dfa1,_0x4e05d6)=>_0x235270(_0x32dfa1,_0x4e05d6,_0x407527)),this['repository'][_0x4996('0xa')](_0x407527),_0x407527;}['loadRevisionData'](_0x557384){if(!_0x557384||_0x557384[_0x4996('0xbc')])return Promise[_0x4996('0x92')]();{const _0x5c39f6=this[_0x4996('0x107')]['config']['get'](_0x4996('0x7e'));return this[_0x4996('0xe5')]['getRevision']({'channelId':_0x5c39f6,'revisionId':_0x557384['id']})['then'](_0x225af4=>{_0x557384[_0x4996('0x5d')]({'diffData':_0x225af4[_0x4996('0xbc')]},!0x0);});}}[_0x4996('0x8a')](){this[_0x4996('0x88')]=null,this[_0x4996('0x6d')](),this[_0x4996('0x65')]&&this[_0x4996('0x65')][_0x4996('0x5c')](),this[_0x4996('0x65')]=null,this[_0x4996('0x83')][_0x4996('0xd7')](),this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0x45')]({'isUndoable':!0x1},_0x439e39=>{for(const _0x1f873d of this[_0x4996('0x107')]['model'][_0x4996('0x26')][_0x4996('0x102')]())_0x439e39[_0x4996('0xe2')](_0x1f873d);});}[_0x4996('0xf5')](_0x9e1065){const _0x30cb65=[],_0x3b1617=new Map();for(const _0x258f87 of this[_0x4996('0x107')][_0x4996('0x42')]['document'][_0x4996('0x102')]()){const _0x7b11b4=this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x90')][_0x4996('0xca')](_0x258f87);if(!_0x7b11b4)continue;const _0x46c8a8=_0x7b11b4[_0x4996('0xe6')]()[_0x4996('0x35')](0x0);_0x46c8a8&&(_0x30cb65[_0x4996('0x62')](_0x258f87),_0x3b1617[_0x4996('0x18')](_0x258f87,_0x46c8a8));}return _0x30cb65[_0x4996('0x14')]((_0x57a7e4,_0x1d8d55)=>{const _0x553c35=_0x3b1617[_0x4996('0xff')](_0x57a7e4),_0x389ddc=_0x3b1617['get'](_0x1d8d55);return _0x553c35['y']-_0x389ddc['y']||_0x553c35['x']-_0x389ddc['x'];}),(_0x9e1065=_0x9e1065['filter'](_0x441a83=>_0x30cb65[_0x4996('0x120')](_0x441a83[_0x4996('0x3d')])))[_0x4996('0x14')]((_0x28ef86,_0x4790a6)=>_0x30cb65['indexOf'](_0x28ef86[_0x4996('0x3d')])-_0x30cb65[_0x4996('0x9c')](_0x4790a6['rootName'])),_0x9e1065;}['_makeTape'](_0x18c5ab){const _0x58db8d=Array[_0x4996('0x1f')](_0x18c5ab[_0x4996('0x108')])[_0x4996('0x94')](([_0x5a80ea,_0x2861f6])=>_0x5a80ea[_0x4996('0x11a')]('revision:')&&!_0x2861f6[_0x4996('0x111')]),_0x385e98=Array[_0x4996('0x1f')](this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0x121')](_0x18c5ab)[_0x4996('0x10a')]({'singleCharacters':!0x0}));if(0x0!=_0x58db8d[_0x4996('0xa8')])for(const _0x2733cf of _0x385e98){const [_0x4389a6,_0x209695]=_0x58db8d[0x0],[,_0x41f68c,_0x58c1cb]=_0x4389a6[_0x4996('0x9d')](':');if(_0x209695[_0x4996('0xda')][_0x4996('0x10c')](_0x2733cf[_0x4996('0x6e')])&&_0x58db8d['shift'](),(_0x2733cf['previousPosition']['isEqual'](_0x209695[_0x4996('0x6c')])||_0x2733cf['previousPosition'][_0x4996('0xb7')](_0x209695[_0x4996('0x6c')]))&&('insertion'==_0x41f68c?_0x2733cf[_0x4996('0x2b')]={'userId':_0x58c1cb}:_0x4996('0xaf')==_0x41f68c&&(_0x2733cf[_0x4996('0x72')]={'userId':_0x58c1cb})),0x0==_0x58db8d[_0x4996('0xa8')])break;}return _0x385e98;}[_0x4996('0x41')](_0xddeba1){const _0x3215e4=new Map();for(let _0x23c578=0x0;_0x23c578<_0xddeba1['length'];_0x23c578++)_0x4996('0x8e')===_0xddeba1[_0x23c578][_0x4996('0xc8')]?(_0xddeba1[_0x23c578]['item'][_0x4996('0x13')]=_0x23c578,_0xddeba1[_0x23c578][_0x4996('0x35')][_0x4996('0x93')]=_0x23c578):(_0x4996('0xa2')===_0xddeba1[_0x23c578][_0x4996('0xc8')]?_0xddeba1[_0x23c578][_0x4996('0x35')][_0x4996('0x13')]=_0x23c578:'elementEnd'===_0xddeba1[_0x23c578][_0x4996('0xc8')]&&(_0xddeba1[_0x23c578]['item'][_0x4996('0x93')]=_0x23c578),_0x3215e4['set'](_0xddeba1[_0x23c578]['id'],_0x23c578));for(const _0x53f574 of _0x3215e4[_0x4996('0x5f')]())'elementStart'===_0xddeba1[_0x53f574][_0x4996('0xc8')]?_0xddeba1[_0x53f574][_0x4996('0x35')][_0x4996('0x93')]=_0x3215e4['get'](_0xddeba1[_0x53f574][_0x4996('0x37')]):_0x4996('0x105')===_0xddeba1[_0x53f574]['type']&&(_0xddeba1[_0x53f574][_0x4996('0x35')][_0x4996('0x13')]=_0x3215e4[_0x4996('0xff')](_0xddeba1[_0x53f574]['pairId']));}[_0x4996('0x50')](_0x10b7bc){for(let _0x52c23d=0x0;_0x52c23d<_0x10b7bc['length'];_0x52c23d++){if(_0x4996('0xa2')===_0x10b7bc[_0x52c23d]['type'])_0x10b7bc[_0x52c23d][_0x4996('0x35')][_0x4996('0x13')]=_0x52c23d;else{if(_0x4996('0x105')===_0x10b7bc[_0x52c23d]['type']){_0x10b7bc[_0x52c23d][_0x4996('0x35')][_0x4996('0x93')]=_0x52c23d;const _0x2a5b19=_0x10b7bc[_0x52c23d]['item'][_0x4996('0x13')];_0x10b7bc[_0x2a5b19][_0x4996('0x37')]=_0x10b7bc[_0x52c23d]['id'],_0x10b7bc[_0x52c23d][_0x4996('0x37')]=_0x10b7bc[_0x2a5b19]['id'];}else _0x10b7bc[_0x52c23d][_0x4996('0x35')]['startIndex']=_0x52c23d,_0x10b7bc[_0x52c23d][_0x4996('0x35')][_0x4996('0x93')]=_0x52c23d,_0x10b7bc[_0x52c23d][_0x4996('0x37')]=null;}_0x10b7bc[_0x52c23d][_0x4996('0x4')]||(_0x10b7bc[_0x52c23d][_0x4996('0x4')]=[],_0x10b7bc[_0x52c23d][_0x4996('0xeb')]=[]);}}['_markInsertions'](_0x42f531,_0x351d92){const _0x222abf=_0x42f531['filter'](_0x52e368=>!_0x52e368[_0x4996('0x2b')]);for(let _0x147016=0x0;_0x147016<_0x351d92[_0x4996('0xa8')];_0x147016++)_0x351d92[_0x147016][_0x4996('0x2b')]&&(_0x222abf[_0x147016][_0x4996('0x2b')]=_0x351d92[_0x147016][_0x4996('0x2b')]);}[_0x4996('0x70')](_0x3141be){const _0x1208f9=JSON['parse'](_0x3141be),_0x3d5ba3=this['editor']['editing'][_0x4996('0x90')][_0x4996('0x26')],_0x445009=new _0x4b1689(_0x3d5ba3,_0x1208f9[_0x4996('0xa0')](_0x3b6752=>this['_getViewObj'](_0x3b6752)));return this[_0x4996('0x107')]['data'][_0x4996('0x2a')](_0x445009);}[_0x4996('0xb8')](_0x2b8614){const _0x15033e=this[_0x4996('0x107')][_0x4996('0x4e')]['view'][_0x4996('0x26')];if(_0x4996('0x39')==typeof _0x2b8614)return new _0x3cc44a(_0x15033e,_0x2b8614);{const _0x507529=_0x2b8614[_0x4996('0xb5')]['map'](_0x1be890=>this['_getViewObj'](_0x1be890));return new(tt[_0x2b8614[(_0x4996('0xc8'))]]||_0x138663)(_0x15033e,_0x2b8614[_0x4996('0x1a')],_0x2b8614[_0x4996('0x12')],_0x507529);}}[_0x4996('0xfc')](_0x3f2be1,_0x1179de=null){const _0x13acc0=this[_0x4996('0x52')]['getRevision'](_0x3f2be1),_0x48e270=_0x1179de?this[_0x4996('0x52')][_0x4996('0x31')](_0x1179de):null,_0x2d03f0=this[_0x4996('0x10b')](_0x13acc0,_0x48e270),_0x3e55f1=_0x2d03f0[_0x2d03f0[_0x4996('0xa8')]-0x1],_0x37507a=new Map(),_0x186ce3={'model':{},'attributes':{},'changes':[]},_0x1b0443=new Set(),_0x3105c8=new Map();for(let _0x3bb1e2=_0x2d03f0[_0x4996('0xa8')]-0x1;_0x3bb1e2>=0x0;_0x3bb1e2--){const _0xd6321d=_0x2d03f0[_0x3bb1e2];for(const _0x2424f6 of Object[_0x4996('0x59')](_0xd6321d[_0x4996('0xbc')]))if(_0xd6321d[_0x4996('0xbc')][_0x2424f6][_0x4996('0x23')]){const _0x1dda61=_0xd6321d[_0x4996('0xbc')][_0x2424f6][_0x4996('0x23')];_0x1dda61[_0x4996('0xd')]?(_0x1b0443[_0x4996('0x28')](_0x2424f6),_0x3105c8[_0x4996('0xc9')](_0x2424f6)&&_0x3105c8['get'](_0x2424f6)[_0x4996('0x10d')]==_0x1dda61[_0x4996('0x10d')]?_0x3105c8['delete'](_0x2424f6):_0x3105c8['set'](_0x2424f6,_0x1dda61)):_0x3105c8[_0x4996('0xc9')](_0x2424f6)?(_0x1b0443[_0x4996('0x9')](_0x2424f6),_0x3105c8[_0x4996('0x9')](_0x2424f6)):(_0x1b0443['add'](_0x2424f6),_0x3105c8[_0x4996('0x18')](_0x2424f6,_0x1dda61));}else _0x1b0443[_0x4996('0x28')](_0x2424f6);}for(const _0x50618a of _0x1b0443){const _0x2c5049=_0x3105c8['has'](_0x50618a)&&!_0x3105c8[_0x4996('0xff')](_0x50618a)[_0x4996('0xd')];let _0x402304=_0x2c5049?_0x2d03f0[_0x4996('0xa8')]-0x1:0x0;const _0x194435=_0x2c5049?-0x1:0x1;for(;_0x2d03f0[_0x402304];){const _0x27b9c4=_0x2d03f0[_0x402304];if(_0x27b9c4[_0x4996('0xbc')][_0x50618a]){const _0x4da9c8=_0x2c5049?_0x27b9c4[_0x4996('0xbc')][_0x50618a]['attributesBefore']:_0x27b9c4[_0x4996('0xbc')][_0x50618a]['attributesAfter'];_0x186ce3[_0x4996('0x12')][_0x50618a]=_0x4da9c8?_0x46bcdc(_0x4da9c8):{};break;}_0x402304+=_0x194435;}}for(const _0x454424 of _0x2d03f0){_0x454424[_0x4996('0x42')]={};for(const _0xd5f572 of _0x454424[_0x4996('0x48')])_0x37507a[_0x4996('0x18')](_0xd5f572['id'],_0xd5f572);for(const _0x3d6746 of _0x1b0443){const _0x421656=_0x454424[_0x4996('0xbc')][_0x3d6746]?_0x454424[_0x4996('0xbc')][_0x3d6746][_0x4996('0x38')]:'[]',_0x154edf=_0x454424[_0x4996('0xbc')][_0x3d6746]?_0x454424[_0x4996('0xbc')][_0x3d6746][_0x4996('0x9b')]:'[]';_0x454424['model'][_0x3d6746]={'insertions':this['_makeModelFromViewString'](_0x421656),'deletions':this['_makeModelFromViewString'](_0x154edf)};}}for(const _0x45bb8a of _0x1b0443){let _0xce9be2=null,_0x360613=0x0;const _0x4bc77c=new Map(Array[_0x4996('0x1f')](_0x13acc0[_0x4996('0x42')][_0x45bb8a][_0x4996('0x38')]['markers'])['filter'](([_0x3da2cc])=>!_0x3da2cc[_0x4996('0x11a')](_0x4996('0x66'))));let _0x127114=0x0;for(const _0x210cdd of _0x2d03f0){const _0x5365ac=this['_makeTape'](_0x210cdd[_0x4996('0x42')][_0x45bb8a][_0x4996('0x38')]);_0x210cdd==_0x13acc0?(_0xce9be2=_0x5365ac,_0x360613=_0xce9be2[_0x4996('0xa8')],_0xce9be2[_0x4996('0x77')](_0x386f4c=>{_0x386f4c['id']=_0x127114++;}),this[_0x4996('0x50')](_0xce9be2)):this[_0x4996('0x15')](_0xce9be2,_0x5365ac);const _0x51d5be=_0xce9be2[_0x4996('0x94')](_0x5aeb27=>!_0x5aeb27[_0x4996('0x2b')])[_0x4996('0xa0')](_0x2936eb=>_0x2936eb['id']);let _0x534c34=0x0;const _0x20cd40=this[_0x4996('0x10')](_0x210cdd['model'][_0x45bb8a]['deletions']);_0x20cd40['forEach'](_0xeddd3b=>{_0xeddd3b[_0x4996('0x72')]?_0xeddd3b['id']=_0x360613++:_0xeddd3b['id']=_0x51d5be[_0x534c34++];}),this[_0x4996('0x50')](_0x20cd40),this[_0x4996('0x10f')](_0xce9be2,_0x4996('0x2b')),this[_0x4996('0x10f')](_0x20cd40,_0x4996('0x72')),_0x210cdd==_0x13acc0&&this[_0x4996('0x19')](_0xce9be2,_0x4bc77c),_0xce9be2=this[_0x4996('0x2d')](_0xce9be2,_0x20cd40),this[_0x4996('0x41')](_0xce9be2),this[_0x4996('0x10f')](_0xce9be2,'isRemoved');}_0xce9be2=_0xce9be2[_0x4996('0x94')](_0x5ac3db=>!(_0x5ac3db[_0x4996('0x2b')]&&_0x5ac3db[_0x4996('0x72')]));const _0x450ce1=new Map(_0x3e55f1[_0x4996('0x42')][_0x45bb8a][_0x4996('0x9b')]['markers']),_0x22ab46=new Set(_0x4bc77c[_0x4996('0x59')]());for(const _0x2ad987 of _0x450ce1[_0x4996('0x59')]())_0x22ab46['delete'](_0x2ad987);this[_0x4996('0xee')](_0xce9be2,_0x22ab46),this[_0x4996('0x91')](_0xce9be2),_0xce9be2=this[_0x4996('0x2')](_0xce9be2),_0xce9be2=this[_0x4996('0xa1')](_0xce9be2),_0xce9be2=this['_removeUnsupportedChanges'](_0xce9be2);const {root:_0x32b4f9,changes:_0x596efe}=this['_makeModelFromTape'](_0xce9be2,_0x37507a,_0x45bb8a);_0x186ce3[_0x4996('0x42')][_0x45bb8a]=_0x32b4f9;const _0x37e88b=_0x3105c8[_0x4996('0xff')](_0x45bb8a);if(_0x37e88b){const _0x3fa3c1=_0x37507a[_0x4996('0xff')](_0x37e88b['userId']),_0x166d71=new _0x573f15({'author':_0x3fa3c1,'type':_0x37e88b[_0x4996('0xd')]?_0x4996('0x28'):_0x4996('0x16'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x45bb8a});_0x596efe[_0x4996('0xaa')](_0x166d71),_0x186ce3[_0x4996('0x12')][_0x45bb8a][_0x4996('0xcd')]=_0x166d71['id'];}_0x186ce3[_0x4996('0x76')]=_0x186ce3[_0x4996('0x76')][_0x4996('0x128')](_0x596efe);}return _0x186ce3;}[_0x4996('0x19')](_0x4db8a9,_0x11479b){for(let _0xd1276e=0x0;_0xd1276e<_0x4db8a9['length'];_0xd1276e++)for(const [_0x25ad34,_0x8158d3]of _0x11479b)_0x8158d3[_0x4996('0x6c')][_0x4996('0x10c')](_0x4db8a9[_0xd1276e][_0x4996('0x71')])&&_0x4db8a9[_0xd1276e][_0x4996('0x4')][_0x4996('0x62')](_0x25ad34),_0x8158d3['end'][_0x4996('0x10c')](_0x4db8a9[_0xd1276e][_0x4996('0x6e')])&&_0x4db8a9[_0xd1276e][_0x4996('0xeb')][_0x4996('0x62')](_0x25ad34);}[_0x4996('0x2d')](_0x1d9923,_0x36478e){let _0x84f47b=[],_0x1dbb84=0x0,_0x4861db=0x0;for(;_0x1dbb84<_0x1d9923[_0x4996('0xa8')]||_0x4861db<_0x36478e[_0x4996('0xa8')];){const _0x23f766=_0x1d9923[_0x1dbb84]||{},_0x5589f=_0x36478e[_0x4861db]||{};if(_0x23f766['id']==_0x5589f['id'])_0x1dbb84++,_0x4861db++,_0x84f47b[_0x4996('0x62')](_0x23f766);else{if(_0x5589f[_0x4996('0x72')]&&_0x23f766['isAdded']){const {commonTape:_0x48c4f9,iEnd:_0x358fd5,jEnd:_0x5f15a4}=this[_0x4996('0xab')](_0x1d9923,_0x1dbb84,_0x36478e,_0x4861db);_0x84f47b=_0x84f47b[_0x4996('0x128')](_0x48c4f9),_0x1dbb84=_0x358fd5,_0x4861db=_0x5f15a4;}else _0x5589f['isRemoved']?(_0x4861db++,_0x84f47b[_0x4996('0x62')](_0x5589f)):(_0x1dbb84++,_0x84f47b[_0x4996('0x62')](_0x23f766));}}return _0x84f47b;}[_0x4996('0xee')](_0x37889e,_0x441c14){const _0x7266b0=[];for(let _0x548c9a=0x0;_0x548c9a<_0x37889e['length'];_0x548c9a++){for(let _0x5e8dba=0x0;_0x5e8dba<_0x37889e[_0x548c9a][_0x4996('0x4')][_0x4996('0xa8')];_0x5e8dba++){const _0x26db00=_0x37889e[_0x548c9a][_0x4996('0x4')][_0x5e8dba];if(!_0x441c14['has'](_0x26db00))continue;const {group:_0x2f2e28,type:_0x205231,authorId:_0x359012}=_0x1999dd(_0x26db00);_0x4996('0x1b')!=_0x2f2e28||'insertion'!=_0x205231&&'deletion'!=_0x205231||(_0x7266b0[_0x4996('0xaa')]({'type':_0x205231,'name':_0x26db00,'userId':_0x359012}),_0x37889e[_0x548c9a][_0x4996('0x4')][_0x4996('0xe')](_0x5e8dba,0x1),_0x5e8dba--);}_0x1a522a(_0x37889e[_0x548c9a]);for(let _0x3f35d9=0x0;_0x3f35d9<_0x37889e[_0x548c9a][_0x4996('0xeb')][_0x4996('0xa8')];_0x3f35d9++){const _0x430c=_0x37889e[_0x548c9a][_0x4996('0xeb')][_0x3f35d9];if(!_0x441c14['has'](_0x430c))continue;const {group:_0x1c57ff,type:_0x51bb8e}=_0x1999dd(_0x430c);if(_0x4996('0x1b')!=_0x1c57ff||_0x4996('0x4d')!=_0x51bb8e&&'deletion'!=_0x51bb8e)continue;_0x37889e[_0x548c9a]['markersEnd']['splice'](_0x3f35d9,0x1),_0x3f35d9--;const _0x28962a=_0x7266b0[_0x4996('0x122')](_0x500ad4=>_0x500ad4[_0x4996('0x1a')]==_0x430c);_0x28962a>-0x1&&_0x7266b0[_0x4996('0xe')](_0x28962a,0x1);}}function _0x1999dd(_0x3ee052){const _0x457ba3=_0x3ee052[_0x4996('0x9d')](':');return{'group':_0x457ba3[0x0],'type':_0x457ba3[0x1],'subType':_0x457ba3[_0x4996('0xa8')]>=0x5?_0x457ba3[0x2]:null,'id':_0x457ba3[_0x4996('0xa8')]<0x5?_0x457ba3[0x2]:_0x457ba3[0x3],'authorId':_0x457ba3[_0x4996('0xa8')]<0x5?_0x457ba3[0x3]:_0x457ba3[0x4],'markerCount':0x6==_0x457ba3['length']?_0x457ba3[0x5]:null};}function _0x1a522a(_0xc65031){for(let _0x1b7dd2=0x0;_0x1b7dd2<_0x7266b0[_0x4996('0xa8')];_0x1b7dd2++){if(_0xc65031[_0x4996('0x2b')]&&_0x4996('0x4d')==_0x7266b0[_0x1b7dd2][_0x4996('0xc8')])return _0xc65031[_0x4996('0x124')]=_0x7266b0[_0x1b7dd2],void delete _0xc65031[_0x4996('0x2b')];if(!_0xc65031['isAdded']&&!_0xc65031['isRemoved']&&_0x4996('0xaf')==_0x7266b0[_0x1b7dd2]['type'])return void(_0xc65031[_0x4996('0xdf')]=_0x7266b0[_0x1b7dd2]);}}}[_0x4996('0x10f')](_0x565e28,_0x18c9b6){let _0x1b412a=0x0,_0x48bf02=!0x1;const _0x547b9c=new Map();for(const _0x451088 of _0x565e28)_0x451088[_0x18c9b6]?_0x48bf02&&(_0x1b412a++,_0x48bf02=!0x1):(_0x1b412a++,_0x48bf02=!0x0),_0x547b9c['set'](_0x451088['id'],_0x1b412a);for(let _0x38e383=0x0;_0x38e383<_0x565e28['length'];_0x38e383++){if(_0x4996('0x72')==_0x18c9b6&&_0x565e28[_0x38e383][_0x4996('0x2b')]||_0x4996('0x2b')==_0x18c9b6&&_0x565e28[_0x38e383][_0x4996('0x72')])continue;if(_0x4996('0x8e')==_0x565e28[_0x38e383]['type']){_0x565e28[_0x38e383][_0x4996('0x8')]=0x0;continue;}const _0x20ce3d=_0x547b9c[_0x4996('0xff')](_0x565e28[_0x38e383]['pairId']),_0x5de3f1=_0x547b9c[_0x4996('0xff')](_0x565e28[_0x38e383]['id']);_0x565e28[_0x38e383][_0x4996('0x8')]=_0x20ce3d-_0x5de3f1;}}[_0x4996('0x10b')](_0x3def15,_0x559606,_0x1c0330=!0x1){const _0x3330bf=[];let _0x581eb7=this[_0x4996('0x52')][_0x4996('0xbf')](_0x3def15),_0x57f02c=this[_0x4996('0x52')]['getIndex'](_0x559606);for(-0x1==_0x57f02c&&(_0x57f02c=this[_0x4996('0x52')][_0x4996('0xc0')]['length'],_0x1c0330=!0x1);_0x581eb7<_0x57f02c;)_0x3330bf[_0x4996('0x62')](this[_0x4996('0x52')]['getRevision'](_0x581eb7)),_0x581eb7++;return _0x1c0330&&_0x3330bf['push'](this[_0x4996('0x52')]['getRevision'](_0x581eb7)),_0x3330bf;}[_0x4996('0xab')](_0x5acbcb,_0x2ebf1e,_0x55ca1c,_0x11b503){const _0x2792dd=this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0xa4')];let _0x2129f7=_0x2ebf1e;for(;_0x5acbcb[_0x2129f7]&&_0x5acbcb[_0x2129f7][_0x4996('0x2b')];)_0x2129f7++;let _0x256a41=_0x11b503;for(;_0x55ca1c[_0x256a41]&&_0x55ca1c[_0x256a41]['isRemoved'];)_0x256a41++;_0x134382(_0x5acbcb,_0x2ebf1e,_0x2129f7),_0x134382(_0x55ca1c,_0x11b503,_0x256a41);const _0x52899f=_0x55ca1c['slice'](_0x11b503,_0x256a41)['concat'](_0x5acbcb['slice'](_0x2ebf1e,_0x2129f7));return _0x52899f['sort']((_0x3bfa7d,_0x1b219f)=>_0x3bfa7d[_0x4996('0xad')]!=_0x1b219f[_0x4996('0xad')]?_0x3bfa7d[_0x4996('0xad')]-_0x1b219f['side']:_0x3bfa7d[_0x4996('0x123')]!=_0x1b219f[_0x4996('0x123')]?_0x3bfa7d['level']-_0x1b219f[_0x4996('0x123')]:_0x3bfa7d[_0x4996('0x8')]!=_0x1b219f[_0x4996('0x8')]?_0x1b219f[_0x4996('0x8')]-_0x3bfa7d[_0x4996('0x8')]:!!_0x3bfa7d[_0x4996('0x2b')]!=!!_0x1b219f[_0x4996('0x2b')]?-0x1==_0x3bfa7d[_0x4996('0xad')]||0x0==_0x3bfa7d[_0x4996('0xad')]?_0x3bfa7d[_0x4996('0x2b')]?-0x1:0x1:_0x3bfa7d['isAdded']?0x1:-0x1:_0x3bfa7d[_0x4996('0x103')]-_0x1b219f[_0x4996('0x103')]),{'commonTape':_0x52899f,'iEnd':_0x2129f7,'jEnd':_0x256a41};function _0x134382(_0x2ce72c,_0x42ab98,_0x338b27){let _0x4ad5cd=-0x1,_0x2c6277=Number['POSITIVE_INFINITY'],_0x3c7a72=!0x0;for(let _0x541c86=_0x42ab98;_0x541c86<_0x338b27;_0x541c86++)if(_0x2792dd[_0x4996('0xdb')](_0x2ce72c[_0x541c86][_0x4996('0x35')])||(_0x3c7a72=!0x1),_0x2ce72c[_0x541c86]['item']['startIndex']<_0x42ab98&&(_0x4ad5cd=_0x541c86),_0x2ce72c[_0x541c86][_0x4996('0x35')][_0x4996('0x93')]>=_0x338b27){_0x2c6277=_0x541c86;break;}_0x3c7a72&&(_0x4ad5cd=_0x338b27-0x1);for(let _0x249103=_0x42ab98;_0x249103<_0x338b27;_0x249103++)_0x2ce72c[_0x249103][_0x4996('0xad')]=_0x249103<=_0x4ad5cd?-0x1:_0x249103<_0x2c6277?0x0:0x1,_0x2ce72c[_0x249103][_0x4996('0x103')]=_0x249103;let _0x338087=0x0;for(let _0x7a122a=_0x42ab98;_0x7a122a<=_0x4ad5cd;_0x7a122a++)0x0==_0x2ce72c[_0x7a122a]['distance']?_0x2ce72c[_0x7a122a][_0x4996('0x123')]=_0x338087:(_0x338087++,_0x2ce72c[_0x7a122a]['level']=_0x338087,_0x338087++);for(let _0x575b8b=_0x42ab98;_0x575b8b<_0x338b27;_0x575b8b++)0x0==_0x2ce72c[_0x575b8b]['side']&&(_0x2ce72c[_0x575b8b]['level']=_0x338087);_0x338087=0x0;for(let _0x34797a=_0x338b27-0x1;_0x34797a>=_0x2c6277;_0x34797a--)0x0==_0x2ce72c[_0x34797a][_0x4996('0x8')]?_0x2ce72c[_0x34797a]['level']=_0x338087:(_0x338087--,_0x2ce72c[_0x34797a][_0x4996('0x123')]=_0x338087,_0x338087--);}}[_0x4996('0x91')](_0x2fdc3f){const _0x55d520=new Map(),_0x484e09=this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0xa4')];for(let _0x424236=0x1;_0x424236<_0x2fdc3f['length'];_0x424236++){let _0x4bf9c3,_0x233b63,_0x14bb04;const _0x1e4c22=_0x2fdc3f[_0x424236],_0x100149=_0x2fdc3f[_0x424236-0x1];if(_0x4996('0x8e')==_0x1e4c22['type'])continue;if(_0x1e4c22[_0x4996('0xc8')]!=_0x100149[_0x4996('0xc8')])continue;if(!_0x484e09[_0x4996('0x125')](_0x100149[_0x4996('0x35')])||_0x484e09['isLimit'](_0x100149[_0x4996('0x35')]))continue;if(!_0x484e09[_0x4996('0x125')](_0x1e4c22[_0x4996('0x35')])||_0x484e09[_0x4996('0x11d')](_0x1e4c22[_0x4996('0x35')]))continue;if((_0x2fdc3f[_0x424236][_0x4996('0x2b')]||_0x2fdc3f[_0x424236][_0x4996('0x124')])&&_0x2fdc3f[_0x424236-0x1][_0x4996('0x72')])_0x4bf9c3=_0x2fdc3f[_0x424236],_0x233b63=_0x2fdc3f[_0x424236-0x1],_0x14bb04=_0x424236-0x1;else{if(!_0x2fdc3f[_0x424236][_0x4996('0x72')]||!_0x2fdc3f[_0x424236-0x1][_0x4996('0x2b')]&&!_0x2fdc3f[_0x424236-0x1][_0x4996('0x124')])continue;_0x4bf9c3=_0x2fdc3f[_0x424236-0x1],_0x233b63=_0x2fdc3f[_0x424236],_0x14bb04=_0x424236;}const _0xbaadd=_0x4bf9c3['level']==_0x233b63[_0x4996('0x123')],_0x1fe9aa=Math[_0x4996('0xb6')](_0x4bf9c3[_0x4996('0x123')])<Math[_0x4996('0xb6')](_0x233b63[_0x4996('0x123')])&&0x0==_0x233b63[_0x4996('0x8')];(_0xbaadd||_0x1fe9aa)&&(_0x55d520[_0x4996('0x18')](_0x233b63['id'],_0x4bf9c3['id']),_0x2fdc3f['splice'](_0x14bb04,0x1),_0x424236--,_0x4bf9c3[_0x4996('0x2b')]=!0x1);}for(let _0x50e6a7=0x0;_0x50e6a7<_0x2fdc3f['length'];_0x50e6a7++)_0x55d520[_0x4996('0xc9')](_0x2fdc3f[_0x50e6a7][_0x4996('0x37')])&&(_0x2fdc3f[_0x50e6a7]['pairId']=_0x55d520['get'](_0x2fdc3f[_0x50e6a7]['pairId']));}[_0x4996('0x2')](_0x2673d1){const _0x2c48dc=new Set(_0x2673d1['map'](_0xa376a4=>_0xa376a4['id']));for(let _0x5146ea=0x0;_0x5146ea<_0x2673d1[_0x4996('0xa8')];_0x5146ea++)_0x2c48dc[_0x4996('0xc9')](_0x2673d1[_0x5146ea]['pairId'])||0x0==_0x2673d1[_0x5146ea][_0x4996('0x8')]||(_0x2673d1[_0x5146ea][_0x4996('0xe1')]=!0x0);return _0x2673d1['filter'](_0xe59bc2=>!_0xe59bc2['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3e258b){const _0x2dddd4=new Set();for(let _0x3cff64=0x0;_0x3cff64<_0x3e258b['length'];_0x3cff64++){if(_0x2dddd4[_0x4996('0xc9')](_0x3e258b[_0x3cff64]['id'])&&_0x3e258b[_0x3cff64][_0x4996('0x72')]&&(_0x3e258b[_0x3cff64][_0x4996('0xe1')]=!0x0),_0x3e258b[_0x3cff64][_0x4996('0xe1')])continue;if(0x0==_0x3e258b[_0x3cff64][_0x4996('0x8')])continue;if(_0x4996('0xa2')!=_0x3e258b[_0x3cff64][_0x4996('0xc8')])continue;if(null==_0x3e258b[_0x3cff64][_0x4996('0x37')])continue;let _0x1f6ff0=_0x3cff64+0x1,_0x2183b6=0x0;for(;_0x3e258b[_0x1f6ff0]['id']!=_0x3e258b[_0x3cff64][_0x4996('0x37')];)_0x4996('0xa2')==_0x3e258b[_0x1f6ff0][_0x4996('0xc8')]?_0x2183b6++:'elementEnd'==_0x3e258b[_0x1f6ff0][_0x4996('0xc8')]&&_0x2183b6--,_0x1f6ff0++;if(0x0!=_0x2183b6){if(_0x3e258b[_0x3cff64][_0x4996('0x72')])_0x3e258b[_0x3cff64][_0x4996('0xe1')]=!0x0;else for(;_0x1f6ff0!=_0x3cff64;)_0x3e258b[_0x1f6ff0][_0x4996('0x72')]&&0x0!=_0x3e258b[_0x1f6ff0][_0x4996('0x8')]&&(_0x3e258b[_0x1f6ff0][_0x4996('0xe1')]=!0x0,_0x2dddd4[_0x4996('0x28')](_0x3e258b[_0x1f6ff0][_0x4996('0x37')])),_0x1f6ff0--;}}return _0x3e258b[_0x4996('0x94')](_0x3b849e=>!_0x3b849e['isIncorrect']);}[_0x4996('0x7f')](_0x24d91f){const _0x671a85=this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0xa4')];for(let _0x2f698f=0x0;_0x2f698f<_0x24d91f[_0x4996('0xa8')];_0x2f698f++){if(!(_0x24d91f[_0x2f698f]['isAdded']||_0x24d91f[_0x2f698f][_0x4996('0x124')]||_0x24d91f[_0x2f698f][_0x4996('0x72')]||_0x24d91f[_0x2f698f][_0x4996('0xdf')]))continue;if(0x0==_0x24d91f[_0x2f698f]['distance'])continue;const _0x3974ae=_0x24d91f[_0x2f698f][_0x4996('0x35')];_0x671a85[_0x4996('0x125')](_0x3974ae)||_0x671a85[_0x4996('0x11d')](_0x3974ae)||(_0x24d91f[_0x2f698f]['isAdded']&&delete _0x24d91f[_0x2f698f]['isAdded'],_0x24d91f[_0x2f698f][_0x4996('0x124')]&&delete _0x24d91f[_0x2f698f][_0x4996('0x124')],_0x24d91f[_0x2f698f][_0x4996('0xdf')]&&delete _0x24d91f[_0x2f698f]['isRemoveSuggestion'],_0x24d91f[_0x2f698f][_0x4996('0x72')]&&(_0x24d91f[_0x2f698f][_0x4996('0xe1')]=!0x0));}return _0x24d91f[_0x4996('0x94')](_0x4f44a7=>!_0x4f44a7[_0x4996('0xe1')]);}[_0x4996('0x97')](_0x2a38cf,_0x3dbb65,_0x483624){const _0x134f58=new _0x43670e(),_0x14fc6b=[],_0x1767f9=new Map(),_0x558249=this[_0x4996('0x107')][_0x4996('0x42')],_0x25bdd5=_0x558249[_0x4996('0xa4')],_0x19f8bf=[_0x134f58],_0x59822c={},_0x5508d6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x48a426=null;const _0x5179d6=[0x0];for(let _0x3953fd=0x0;_0x3953fd<_0x2a38cf[_0x4996('0xa8')];_0x3953fd++){let _0xbaad94,_0x491cbe;if(_0x4996('0xa2')===_0x2a38cf[_0x3953fd][_0x4996('0xc8')]){_0xbaad94=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6);const _0x1bdbc1=new _0x4eafb8(_0x2a38cf[_0x3953fd][_0x4996('0x35')][_0x4996('0x1a')],_0x2a38cf[_0x3953fd][_0x4996('0x35')]['getAttributes']());_0x19f8bf[0x0][_0x4996('0x8d')](_0x1bdbc1),_0x5179d6['push'](0x0),_0x19f8bf['unshift'](_0x1bdbc1),_0x491cbe=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6),_0x48a426=null;}else{if('elementEnd'===_0x2a38cf[_0x3953fd][_0x4996('0xc8')])_0x19f8bf[_0x4996('0x7a')](),_0xbaad94=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6),_0x5179d6[_0x4996('0x57')](),_0x5179d6[_0x5179d6['length']-0x1]++,_0x491cbe=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6),_0x48a426=null;else{if(_0xbaad94=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6),_0x48a426&&_0x16709f(_0x48a426,_0x2a38cf[_0x3953fd][_0x4996('0x35')]))_0x48a426[_0x4996('0xb3')]+=_0x2a38cf[_0x3953fd][_0x4996('0x35')][_0x4996('0xf0')];else{const _0x2d0ebf=new _0x1bf5df(_0x2a38cf[_0x3953fd][_0x4996('0x35')][_0x4996('0xf0')],_0x2a38cf[_0x3953fd][_0x4996('0x35')][_0x4996('0xfa')]());_0x19f8bf[0x0][_0x4996('0x8d')](_0x2d0ebf),_0x48a426=_0x2d0ebf;}_0x5179d6[_0x5179d6['length']-0x1]+=_0x2a38cf[_0x3953fd]['item']['offsetSize'],_0x491cbe=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6);}}for(const _0xb0b76c of _0x2a38cf[_0x3953fd][_0x4996('0x4')])_0x1767f9['set'](_0xb0b76c,{'start':_0xbaad94,'end':null});_0x407e2c('isRemoveSuggestion',_0x3953fd,_0xbaad94,_0x491cbe),_0x407e2c(_0x4996('0x124'),_0x3953fd,_0xbaad94,_0x491cbe),_0x407e2c(_0x4996('0x72'),_0x3953fd,_0xbaad94,_0x491cbe),_0x407e2c(_0x4996('0x2b'),_0x3953fd,_0xbaad94,_0x491cbe);for(const _0x19d683 of _0x2a38cf[_0x3953fd]['markersEnd']){_0x1767f9['get'](_0x19d683)['end']=_0x491cbe;}}for(const [_0x295560,_0x8958f8]of _0x1767f9){const _0x688da4=this[_0x4996('0x107')][_0x4996('0x42')]['createRange'](_0x8958f8['start'],_0x8958f8['end']);_0x134f58[_0x4996('0x108')]['set'](_0x295560,_0x688da4);}return _0x14fc6b[_0x4996('0x14')]((_0x102934,_0x37af19)=>{const _0x4afc67=_0x134f58[_0x4996('0x108')][_0x4996('0xff')](_0x4996('0x66')+_0x102934['id']),_0x140624=_0x134f58[_0x4996('0x108')][_0x4996('0xff')](_0x4996('0x66')+_0x37af19['id']);return _0x4afc67['start'][_0x4996('0x56')](_0x140624[_0x4996('0x6c')])?-0x1:_0x4afc67[_0x4996('0x6c')][_0x4996('0xb7')](_0x140624['start'])?0x1:_0x4afc67[_0x4996('0xda')][_0x4996('0x56')](_0x140624[_0x4996('0xda')])?-0x1:_0x4afc67[_0x4996('0xda')][_0x4996('0xb7')](_0x140624[_0x4996('0xda')])?0x1:_0x4996('0x28')===_0x102934[_0x4996('0xc8')]?-0x1:0x1;}),{'root':_0x134f58,'changes':_0x14fc6b};function _0x407e2c(_0x443cc4,_0x241767,_0xae83d0,_0x333268){const _0x1f8359=!!_0x2a38cf[_0x241767][_0x443cc4],_0x133351=_0x1f8359?_0x2a38cf[_0x241767][_0x443cc4][_0x4996('0x10d')]:null,_0x4eef5b=_0x241767===_0x2a38cf[_0x4996('0xa8')]-0x1,_0x44bee9=_0x5508d6[_0x443cc4][0x0],_0x27d591=_0x25bdd5[_0x4996('0x2f')](_0x2a38cf[_0x241767][_0x4996('0x35')]);!_0x59822c[_0x443cc4]&&_0x1f8359?_0x59822c[_0x443cc4]={'start':_0xae83d0,'tapeItem':_0x2a38cf[_0x241767],'userId':_0x133351,'type':_0x443cc4}:_0x59822c[_0x443cc4]&&!_0x1f8359?(_0x59822c[_0x443cc4][_0x4996('0xda')]=_0xae83d0,_0x27cb3d(_0x59822c[_0x443cc4]),_0x59822c[_0x443cc4]=null):_0x59822c[_0x443cc4]&&_0x1f8359&&_0x59822c[_0x443cc4][_0x4996('0x10d')]!==_0x133351&&(_0x59822c[_0x443cc4][_0x4996('0xda')]=_0xae83d0,_0x44bee9&&_0x44bee9[_0x4996('0x10d')]===_0x59822c[_0x443cc4][_0x4996('0x10d')]||_0x27cb3d(_0x59822c[_0x443cc4]),_0x59822c[_0x443cc4]={'start':_0xae83d0,'tapeItem':_0x2a38cf[_0x241767],'userId':_0x133351,'type':_0x443cc4}),_0x59822c[_0x443cc4]&&_0x27d591&&(_0x4996('0xa2')!==_0x2a38cf[_0x241767]['type']||_0x44bee9&&_0x44bee9['userId']===_0x133351||_0x5508d6[_0x443cc4][_0x4996('0xaa')]({'userId':_0x133351,'object':_0x2a38cf[_0x241767][_0x4996('0x35')],'change':_0x59822c[_0x443cc4]}),_0x4996('0x105')===_0x2a38cf[_0x241767]['type']&&_0x44bee9&&_0x44bee9[_0x4996('0xf')]===_0x2a38cf[_0x241767]['item']&&(_0x5508d6[_0x443cc4][_0x4996('0x7a')](),_0x59822c[_0x443cc4]=_0x44bee9[_0x4996('0x98')])),_0x59822c[_0x443cc4]&&_0x4eef5b&&(_0x59822c[_0x443cc4]['end']=_0x333268,_0x27cb3d(_0x59822c[_0x443cc4]),_0x59822c[_0x443cc4]=null);}function _0x27cb3d({start:_0x2c6343,end:_0xc9583d,tapeItem:_0x365ccc,userId:_0x53899e,type:_0x166e3d}){const _0x24475d=_0x365ccc[_0x4996('0x35')],_0x51ef97=_0x558249[_0x4996('0xa4')][_0x4996('0x125')](_0x24475d)&&!_0x558249[_0x4996('0xa4')][_0x4996('0x11d')](_0x24475d),_0xe27ec7=_0x2c6343['nodeAfter']==_0xc9583d['parent']&&_0xc9583d[_0x4996('0xa6')];if(_0x51ef97&&_0xe27ec7)return;const _0x2019e5=_0x558249[_0x4996('0xd1')](_0x2c6343,_0xc9583d),_0x54b3e5=_0x3dbb65[_0x4996('0xff')](_0x53899e),_0x2563d7=new _0x573f15({'author':_0x54b3e5,'type':_0x4996('0x2b')==_0x166e3d||_0x4996('0x124')==_0x166e3d?'add':_0x4996('0x16'),'data':{'isSuggestion':_0x4996('0x124')==_0x166e3d||_0x4996('0xdf')==_0x166e3d},'createdAt':new Date(),'rootName':_0x483624});_0x14fc6b['push'](_0x2563d7),_0x134f58[_0x4996('0x108')][_0x4996('0x18')](_0x4996('0x66')+_0x2563d7['id'],_0x2019e5);}function _0x16709f(_0x12d005,_0x1287fe){const _0x336e75=_0x12d005[_0x4996('0xfa')](),_0x3f4f6a=_0x1287fe[_0x4996('0xfa')]();for(const _0x13889e of _0x336e75){if(_0x13889e[0x1]!==_0x1287fe[_0x4996('0xcc')](_0x13889e[0x0]))return!0x1;_0x3f4f6a[_0x4996('0xa3')]();}return _0x3f4f6a['next']()[_0x4996('0x63')];}}[_0x4996('0xc6')](){this['editor'][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0xfd'))[_0x4996('0x79')]({'view':_0x4996('0xb1')}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0x1c'))[_0x4996('0x30')]({'model':'revision','view':_0xaaac90=>{const _0x30e8cf=_0xaaac90['markerName'][_0x4996('0x9d')](':')[0x1],_0x1ded71=this['_getChangeFromId'](_0x30e8cf);if(!_0x1ded71)return null;const _0x4a9262=_0x4996('0x28')==_0x1ded71[_0x4996('0xc8')]?'insertion':_0x4996('0xaf'),_0x5a248a=['ck-suggestion-marker',_0x4996('0x119')+_0x4a9262];return _0x1ded71[_0x4996('0xf0')]['isSuggestion']&&_0x5a248a[_0x4996('0x62')](_0x4996('0x119')+_0x4a9262+'-new'),this[_0x4996('0x88')]==_0x1ded71&&_0x5a248a['push']('ck-suggestion-marker--active'),{'classes':_0x5a248a,'attributes':{'data-change-id':_0x30e8cf}};}}),this[_0x4996('0x107')]['conversion']['for'](_0x4996('0xfd'))[_0x4996('0x28')](_0x4b6e1f=>{_0x4b6e1f['on'](_0x4996('0x112'),(_0x30e327,_0x3c1e63,_0x32b79a)=>{const _0x4f3b09=_0x3c1e63[_0x4996('0x81')][_0x4996('0x58')](0x0);if(!_0x4f3b09||!_0x4f3b09['is'](_0x4996('0x1'),_0x4996('0xdd')))return;if(!_0x32b79a[_0x4996('0x129')][_0x4996('0x74')](_0x4f3b09,{'attributes':[_0x4996('0xb9'),_0x4996('0xce')]}))return;const _0x4edb74=_0x3c1e63[_0x4996('0x8f')][_0x4996('0x6c')][_0x4996('0x85')];_0x32b79a[_0x4996('0x117')][_0x4996('0xe7')](_0x4996('0xb9'),_0x4f3b09[_0x4996('0xcc')]('vid_start'),_0x4edb74),_0x32b79a[_0x4996('0x117')][_0x4996('0xe7')]('vid_end',_0x4f3b09[_0x4996('0xcc')]('vid_end'),_0x4edb74);},{'priority':_0x4996('0x44')});}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0xfd'))['add'](_0x12ad5b=>{_0x12ad5b['on']('element',(_0x24fcc8,_0x4f37ae,_0x2da74e)=>{if(!_0x2da74e[_0x4996('0x129')][_0x4996('0x74')](_0x4f37ae[_0x4996('0x81')],{'attributes':[_0x4996('0xb9'),_0x4996('0xce')]}))return;if(_0x4f37ae[_0x4996('0x8f')][_0x4996('0x111')])return;const _0x30d380=_0x4f37ae[_0x4996('0x8f')][_0x4996('0x6c')]['nodeAfter'];_0x30d380['hasAttribute'](_0x4996('0xb9'))||_0x30d380['hasAttribute'](_0x4996('0xd6'))||(_0x2da74e[_0x4996('0x117')]['setAttribute'](_0x4996('0xb9'),_0x4f37ae['viewItem']['getAttribute'](_0x4996('0xb9')),_0x30d380),_0x2da74e[_0x4996('0x117')][_0x4996('0xe7')](_0x4996('0xce'),_0x4f37ae[_0x4996('0x81')]['getAttribute']('vid_end'),_0x30d380));},{'priority':'low'});}),this[_0x4996('0x107')]['conversion'][_0x4996('0x9f')](_0x4996('0xfd'))[_0x4996('0x9a')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x4996('0xd6'),'value':_0x3ade5c=>_0x3ade5c[_0x4996('0xcc')](_0x4996('0xd6'))}}),this['editor'][_0x4996('0x42')]['schema']['on']('checkAttribute',(_0x1b62ba,[,_0x123015])=>{['vid_start',_0x4996('0xce'),_0x4996('0xd6')]['includes'](_0x123015)&&(_0x1b62ba[_0x4996('0x11')]=!0x0,_0x1b62ba[_0x4996('0xd3')]());},{'priority':_0x4996('0xc3')}),this[_0x4996('0x107')]['conversion']['for'](_0x4996('0x11c'))[_0x4996('0x28')](_0x2f3994=>{_0x2f3994['on']('attribute:vid',(_0x58feba,_0x4065e2,_0x4df7ea)=>{if('\x20'!=_0x4065e2[_0x4996('0x35')][_0x4996('0xf0')]||_0x4065e2[_0x4996('0x35')]['parent'][_0x4996('0xb')]>0x1)return;if(!_0x4df7ea[_0x4996('0x129')][_0x4996('0x74')](_0x4065e2['item'],_0x58feba[_0x4996('0x1a')]))return;const _0x463b2d=_0x4df7ea[_0x4996('0x117')],_0x786d17=_0x4df7ea[_0x4996('0xbe')][_0x4996('0xa5')](_0x4065e2[_0x4996('0x114')]);_0x463b2d[_0x4996('0xf8')](_0x786d17,_0x463b2d[_0x4996('0xf9')](_0x4996('0x17')));});}),this['editor'][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0x11c'))[_0x4996('0x89')]({'model':_0x4996('0xb1')}),this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x7d')]['on']('addMarker:revision',function(_0x2294d2){const _0x4f4025=_0x2294d2['plugins']['get'](_0x4996('0x11f'));return(_0x3add7e,_0x2061b4,_0x4d7c2d)=>{const _0x5d9a01=_0x2061b4[_0x4996('0x113')]['split'](':')[0x1],_0x1e11ee=_0x4f4025[_0x4996('0x3f')](_0x5d9a01);if(!_0x1e11ee)return null;const _0x15ed36=_0x4996('0x28')==_0x1e11ee[_0x4996('0xc8')]?_0x4996('0x9d'):'merge';if(!_0x4d7c2d[_0x4996('0x129')][_0x4996('0x6a')](_0x2061b4[_0x4996('0x64')],_0x3add7e['name']))return;const _0xae39f5=_0x2061b4[_0x4996('0x64')][_0x4996('0x10a')](),_0x4afb7d=_0x2061b4['markerRange'][_0x4996('0x6c')],_0x37406e=_0x2294d2[_0x4996('0x42')][_0x4996('0xa4')];let _0x4a4825=null,_0x557203=null,_0x2f2f99=!0x1,_0x331f8b=!0x1;for(const _0x2e1d9e of _0xae39f5){const _0x49a732=_0x2e1d9e[_0x4996('0x35')];_0x2f2f99=_0x2f2f99||_0x37406e[_0x4996('0x3a')](_0x49a732);const _0x9c93ec=_0x4d7c2d['mapper'][_0x4996('0x24')](_0x49a732);if(_0x9c93ec&&_0x9c93ec[_0x4996('0x60')]('addHighlight'))return;_0x4996('0x105')==_0x2e1d9e[_0x4996('0xc8')]&&(_0x37406e[_0x4996('0x125')](_0x49a732)&&!_0x37406e[_0x4996('0x11d')](_0x49a732)&&(_0x49a732[_0x4996('0x7c')]||_0x4afb7d[_0x4996('0xef')]?_0x4a4825&&_0x4a4825['parent']==_0x49a732||(_0x4a4825=_0x49a732,_0x5144a6(_0x2e1d9e['previousPosition']),_0x331f8b=!0x0):_0x557203=_0x557203||_0x2e1d9e[_0x4996('0x71')]));}function _0x5144a6(_0x3d4801){const _0x27f4d2=_0x4d7c2d[_0x4996('0x117')][_0x4996('0x55')]('span',{'class':'ck-suggestion-marker-'+_0x15ed36}),_0x1d3361=_0x4d7c2d[_0x4996('0xbe')]['toViewPosition'](_0x3d4801);_0x1e11ee[_0x4996('0xf0')][_0x4996('0x33')]&&_0x4d7c2d[_0x4996('0x117')][_0x4996('0x96')](_0x4996('0x119')+_0x15ed36+_0x4996('0xf3'),_0x27f4d2),_0x4f4025['activeChange']==_0x1e11ee&&_0x4d7c2d[_0x4996('0x117')][_0x4996('0x96')](_0x4996('0x115'),_0x27f4d2),_0x4d7c2d[_0x4996('0x117')][_0x4996('0x126')](_0x1d3361,_0x27f4d2),_0x4d7c2d['mapper'][_0x4996('0x116')](_0x27f4d2,_0x2061b4['markerName']);}_0x2f2f99||_0x331f8b||!_0x557203||_0x5144a6(_0x557203);};}(this['editor']),{'priority':_0x4996('0x82')}),this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x7d')]['on'](_0x4996('0xe3'),(_0x1cad56,_0x2d771a,_0x467271)=>{const _0x36a11a=_0x467271[_0x4996('0xbe')]['markerNameToElements'](_0x2d771a[_0x4996('0x113')]);if(_0x36a11a)for(const _0x14f681 of _0x36a11a)(_0x14f681[_0x4996('0xa7')](_0x4996('0x75'))||_0x14f681[_0x4996('0xa7')]('ck-suggestion-marker-merge'))&&(_0x467271[_0x4996('0xbe')]['unbindElementFromMarkerName'](_0x14f681,_0x2d771a[_0x4996('0x113')]),_0x467271[_0x4996('0x117')][_0x4996('0x16')](_0x14f681));},{'priority':'high'}),this['editor'][_0x4996('0x4e')][_0x4996('0x7d')]['on'](_0x4996('0xc'),(_0x487787,_0x4e40e1,_0x466842)=>{const _0x4d94ba=_0x4e40e1[_0x4996('0x113')][_0x4996('0x9d')](':')[0x1],_0x22d636=this[_0x4996('0x3f')](_0x4d94ba);if(!_0x22d636)return null;const _0x53ba94='add'==_0x22d636[_0x4996('0xc8')]?_0x4996('0x9d'):_0x4996('0xb4');if(_0x466842[_0x4996('0x129')][_0x4996('0x6a')](_0x4e40e1['markerRange'],_0x487787['name']))for(const _0xb53d6c of _0x4e40e1[_0x4996('0x64')][_0x4996('0x100')]()){if(!_0xb53d6c['is'](_0x4996('0x1'),_0x4996('0xd2')))continue;const _0x2f8cb0=_0x466842['writer'][_0x4996('0x55')]('span',{'class':'ck-suggestion-marker-'+_0x53ba94}),_0x5de4df=_0x466842['mapper'][_0x4996('0x80')](this[_0x4996('0x107')]['model'][_0x4996('0x95')](_0xb53d6c));_0x22d636[_0x4996('0xf0')][_0x4996('0x33')]&&_0x466842['writer'][_0x4996('0x96')](_0x4996('0x119')+_0x53ba94+'-new',_0x2f8cb0),this['activeChange']==_0x22d636&&_0x466842[_0x4996('0x117')][_0x4996('0x96')](_0x4996('0x115'),_0x2f8cb0),_0x466842[_0x4996('0x117')][_0x4996('0x126')](_0x5de4df,_0x2f8cb0),_0x466842[_0x4996('0xbe')][_0x4996('0x116')](_0x2f8cb0,_0x4e40e1[_0x4996('0x113')]);}},{'priority':_0x4996('0x82')}),this['editor']['model']['document']['on'](_0x4996('0x98'),()=>{this['editor']['editing'][_0x4996('0x90')][_0x4996('0x98')](_0x54bbd9=>{for(const _0x521a96 of this[_0x4996('0x107')]['model']['document'][_0x4996('0x102')]()){const _0x148ea9=this['editor']['model'][_0x4996('0x26')][_0x4996('0x69')](_0x521a96),_0x24a9be=this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x90')]['document'][_0x4996('0x69')](_0x521a96);if(_0x24a9be){const _0x128c72=_0x148ea9[_0x4996('0xcc')](_0x4996('0xcd'));if(_0x54bbd9[_0x4996('0xc7')](_0x4996('0xf1'),_0x24a9be),_0x54bbd9[_0x4996('0x84')](_0x4996('0xd0'),_0x24a9be),_0x54bbd9['removeClass'](_0x4996('0x4c'),_0x24a9be),_0x54bbd9['removeClass']('ck-revision-history-root--active',_0x24a9be),_0x128c72){const _0x12a609=this[_0x4996('0x3f')](_0x128c72);if(!_0x12a609)return null;_0x54bbd9['setAttribute']('data-change-id',_0x128c72,_0x24a9be),_0x54bbd9[_0x4996('0x96')](_0x4996('0x2c')+_0x12a609[_0x4996('0xc8')],_0x24a9be),this[_0x4996('0x88')]==_0x12a609&&_0x54bbd9[_0x4996('0x96')](_0x4996('0x127'),_0x24a9be);}}}});}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0xfd'))['dataToMarker']({'view':_0x4996('0xd9'),'model':_0x1ce299=>_0x4996('0x9e')+_0x1ce299,'converterPriority':_0x4996('0xc3')}),this['editor'][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0xfd'))[_0x4996('0x79')]({'view':_0x4996('0x43'),'model':_0x4505a3=>_0x4996('0x67')+_0x4505a3,'converterPriority':'highest'}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0x11c'))[_0x4996('0x89')]({'model':_0x4996('0x1b'),'view':_0x3ff6ff=>({'name':_0x4996('0x3b')+_0x3ff6ff,'group':_0x4996('0x1b')}),'converterPriority':_0x4996('0xc3')}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')]('editingDowncast')['markerToHighlight']({'model':_0x4996('0x1b'),'view':_0x3b7210=>{const _0x40e802=_0x3b7210[_0x4996('0x113')][_0x4996('0x9d')](':')[0x1];return _0x4996('0x4d')!=_0x40e802&&_0x4996('0xaf')!=_0x40e802?null:{'classes':[_0x4996('0xec'),_0x4996('0x99')+_0x40e802]};}}),this['editor'][_0x4996('0x4e')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this[_0x4996('0x107')],_0x4996('0xb4')),{'priority':_0x4996('0x82')}),this[_0x4996('0x107')][_0x4996('0x4e')]['downcastDispatcher']['on'](_0x4996('0x21'),et(this['editor'],_0x4996('0x9d')),{'priority':_0x4996('0x82')}),this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x7d')]['on'](_0x4996('0x4b'),(_0x97a53d,_0x3cd93a,_0x3fc0df)=>{const _0x2a8d1c=_0x3fc0df['mapper']['markerNameToElements'](_0x3cd93a[_0x4996('0x113')]);if(_0x2a8d1c)for(const _0x2e84c2 of _0x2a8d1c)_0x2e84c2['is'](_0x4996('0x53'))&&(_0x3fc0df[_0x4996('0xbe')]['unbindElementFromMarkerName'](_0x2e84c2,_0x3cd93a[_0x4996('0x113')]),_0x3fc0df['writer'][_0x4996('0x16')](_0x2e84c2));},{'priority':'high'});}[_0x4996('0x3f')](_0xe1cafa){return this['_changeIdToChange'][_0x4996('0xff')](_0xe1cafa);}[_0x4996('0x110')](_0x152324){return this[_0x4996('0x65')]&&this[_0x4996('0x65')][_0x4996('0x5c')](),this[_0x4996('0x65')]=new _0x2b3fd3(this[_0x4996('0x107')][_0x4996('0x3e')],_0x152324),this[_0x4996('0x65')];}[_0x4996('0x5a')](){this['editor']['model'][_0x4996('0x26')]['selection'][_0x4996('0xae')](_0x4996('0xb1')),this['on'](_0x4996('0x11e'),(_0x31fddd,_0x284850,_0x3f9993,_0x41f1ad)=>{_0x41f1ad&&this[_0x4996('0x49')]['remove'](_0x41f1ad),_0x3f9993&&(this[_0x4996('0x49')][_0x4996('0x28')]({'view':_0x3f9993,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4ac11f=this[_0x4996('0x107')][_0x4996('0x4e')],_0x6956e3=this[_0x4996('0x3f')](_0x3f9993['changeId']);let _0x31bf44;if(_0x6956e3[_0x4996('0xf0')][_0x4996('0x5')]){const _0x366d80=_0x4ac11f[_0x4996('0x90')]['getDomRoot'](_0x6956e3[_0x4996('0x3d')]);_0x31bf44=Array[_0x4996('0x1f')](_0x366d80['getClientRects']());}else{const _0x67effd=this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0x108')]['get'](_0x4996('0x66')+_0x3f9993[_0x4996('0x51')]);_0x31bf44=Array[_0x4996('0x1f')](_0x4ac11f[_0x4996('0xbe')][_0x4996('0xde')](_0x67effd['name']))[_0x4996('0xa0')](_0x24875e=>_0x4ac11f[_0x4996('0x90')]['domConverter'][_0x4996('0x10e')](_0x24875e))[_0x4996('0xa0')](_0x4bf764=>Array[_0x4996('0x1f')](_0x4bf764['getClientRects']()))['flat']();}if(!this[_0x4996('0x11b')])return _0x31bf44[0x0];return _0x31bf44[_0x4996('0x61')](_0x4339fb=>_0x4339fb[_0x4996('0x73')]-0x3<=this[_0x4996('0x11b')]['y']&&_0x4339fb[_0x4996('0xd5')]+0x3>=this[_0x4996('0x11b')]['y']&&_0x4339fb[_0x4996('0xd8')]-0x3<=this[_0x4996('0x11b')]['x']&&_0x4339fb['right']+0x3>=this[_0x4996('0x11b')]['x'])||_0x31bf44[0x0];}}}),this[_0x4996('0x49')][_0x4996('0x4f')](_0x4996('0xea')));}),this['on'](_0x4996('0xf7'),(_0x3595f8,_0x4ea212,_0x1ad101,_0x542e4d)=>{this[_0x4996('0xfb')]=_0x1ad101?this[_0x4996('0x110')](_0x1ad101):null,this[_0x4996('0x107')]['model'][_0x4996('0x98')](()=>{const _0x38b71b=this['editor'][_0x4996('0x4e')];_0x542e4d&&(_0x542e4d[_0x4996('0xf0')][_0x4996('0x5')]?_0x38b71b['view'][_0x4996('0x98')](_0xda2628=>{_0xda2628['removeClass'](_0x4996('0x127'),_0x38b71b[_0x4996('0x90')][_0x4996('0x26')][_0x4996('0x69')](_0x542e4d[_0x4996('0x3d')]));}):_0x38b71b[_0x4996('0x7')](_0x4996('0x66')+_0x542e4d['id'])),_0x1ad101&&(_0x1ad101[_0x4996('0xf0')][_0x4996('0x5')]?_0x38b71b[_0x4996('0x90')]['change'](_0x4dcaaa=>{_0x4dcaaa[_0x4996('0x96')](_0x4996('0x127'),_0x38b71b[_0x4996('0x90')][_0x4996('0x26')][_0x4996('0x69')](_0x1ad101['rootName']));}):_0x38b71b['reconvertMarker'](_0x4996('0x66')+_0x1ad101['id']));});}),this['listenTo'](this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x90')][_0x4996('0x26')],_0x4996('0xf6'),(_0x1d94dc,_0x502b35)=>{if(this['activeChange'])return;const _0x5428b3=this['_findChangeIdFromDomTarget'](_0x502b35[_0x4996('0x6f')]),_0x1c12fe=this[_0x4996('0x83')][_0x4996('0xff')](_0x5428b3);_0x1c12fe?(this[_0x4996('0x11b')]={'x':_0x502b35[_0x4996('0xc1')]['x'],'y':_0x502b35[_0x4996('0xc1')]['y']},this['activeView']=this[_0x4996('0x110')](_0x1c12fe)):(this[_0x4996('0x11b')]=null,this[_0x4996('0xfb')]=null);}),this['listenTo'](this['editor']['editing'][_0x4996('0x90')][_0x4996('0x26')],_0x4996('0x47'),(_0xd4b789,_0x901955)=>{const _0x317b0c=this[_0x4996('0xfe')](_0x901955[_0x4996('0x6f')]),_0x21c56f=this[_0x4996('0x83')]['get'](_0x317b0c);_0x21c56f?(this['_activeViewTarget']={'x':_0x901955['domEvent']['x'],'y':_0x901955[_0x4996('0xc1')]['y']},_0x21c56f===this[_0x4996('0x88')]?this[_0x4996('0x49')][_0x4996('0x46')]():this[_0x4996('0x88')]=_0x21c56f):(this['_activeViewTarget']=null,this[_0x4996('0x88')]=null);});}[_0x4996('0xfe')](_0x106eca){do{const _0x980d7a=_0x106eca[_0x4996('0xcc')](_0x4996('0xf1'));if(_0x980d7a)return _0x980d7a;_0x106eca=_0x106eca['parent'];}while(_0x106eca);return null;}['_cleanMarkers'](){this[_0x4996('0x107')][_0x4996('0x42')]['change'](_0x25c634=>{for(const _0x25f5fd of this['editor']['model'][_0x4996('0x108')])_0x25c634['removeMarker'](_0x25f5fd);});}}function et(_0x1553f9,_0x2e7374){return(_0x5068ac,_0x3b701f,_0x4abeaa)=>{if(!_0x4abeaa[_0x4996('0x129')][_0x4996('0x6a')](_0x3b701f['markerRange'],_0x5068ac['name']))return;const _0x505768=_0x3b701f['markerRange'][_0x4996('0x10a')](),_0xe7761a=_0x3b701f[_0x4996('0x64')][_0x4996('0x6c')],_0x19ed3c=_0x1553f9[_0x4996('0x42')][_0x4996('0xa4')];let _0x28ed83=null,_0xd5d8=null,_0x550054=!0x1,_0x2df797=!0x1;for(const _0x31d757 of _0x505768){const _0x5cd01f=_0x31d757[_0x4996('0x35')];_0x550054=_0x550054||_0x19ed3c[_0x4996('0x3a')](_0x5cd01f);const _0x1ddfc7=_0x4abeaa[_0x4996('0xbe')][_0x4996('0x24')](_0x5cd01f);if(_0x1ddfc7&&_0x1ddfc7[_0x4996('0x60')]('addHighlight'))return;_0x4996('0x105')==_0x31d757['type']&&(_0x19ed3c['isBlock'](_0x5cd01f)&&!_0x19ed3c[_0x4996('0x11d')](_0x5cd01f)&&(_0x5cd01f['nextSibling']||_0xe7761a[_0x4996('0xef')]?_0x28ed83&&_0x28ed83[_0x4996('0xac')]==_0x5cd01f||(_0x28ed83=_0x5cd01f,_0x476355(_0x31d757[_0x4996('0x71')]),_0x2df797=!0x0):_0xd5d8=_0xd5d8||_0x31d757['previousPosition']));}function _0x476355(_0x3c8310){const _0x2e5b9e=_0x4abeaa[_0x4996('0xbe')][_0x4996('0x80')](_0x3c8310),_0x4c0347=_0x4abeaa[_0x4996('0x117')][_0x4996('0x55')]('span',{'class':_0x4996('0x99')+_0x2e7374});_0x4abeaa[_0x4996('0x117')][_0x4996('0x126')](_0x2e5b9e,_0x4c0347),_0x4abeaa[_0x4996('0xbe')][_0x4996('0x116')](_0x4c0347,_0x3b701f[_0x4996('0x113')]);}_0x550054||_0x2df797||!_0xd5d8||_0x476355(_0xd5d8);};}export class RestoreRevisionCommand extends _0x375e2b{constructor(_0x47b40f){super(_0x47b40f);const _0x5f19a1=_0x47b40f[_0x4996('0x22')]['get'](d);this[_0x4996('0xe8')]=!0x1,this[_0x4996('0xc5')](_0x5f19a1,_0x4996('0x6'),()=>this[_0x4996('0x32')]()),this[_0x4996('0xc5')](_0x5f19a1,'change:isEnabled',()=>this[_0x4996('0x32')]());}[_0x4996('0x27')](){const _0x265d35=this[_0x4996('0x107')],_0x18e3d2=_0x265d35[_0x4996('0x22')]['get'](d),_0x1af1cc=_0x18e3d2['isReady']?_0x18e3d2[_0x4996('0x68')][_0x4996('0x5e')]:null;_0x265d35[_0x4996('0xe4')][_0x4996('0xff')]('revisionHistory')[_0x4996('0xd4')](_0x1af1cc);}[_0x4996('0x32')](){const {isReady:_0xe6be93,isEnabled:_0x32a4dd}=this[_0x4996('0x107')]['plugins']['get'](d);this['isEnabled']=_0xe6be93&&_0x32a4dd;}}export class ShowChangeCommand extends _0x375e2b{constructor(_0x404f36,{direction:_0x4466fa}){super(_0x404f36);const _0x452d92=_0x404f36['plugins']['get'](d);this[_0x4996('0xe8')]=!0x1,this[_0x4996('0xbd')]=_0x4996('0x20')===_0x4466fa?0x1:-0x1,this[_0x4996('0xc5')](_0x452d92,_0x4996('0x6'),()=>this[_0x4996('0x32')]()),this[_0x4996('0xc5')](_0x452d92,_0x4996('0x87'),()=>this[_0x4996('0x32')]());}['execute'](){const _0x1eecec=this[_0x4996('0x107')],_0x3009e4=_0x1eecec['plugins'][_0x4996('0xff')](d),{isNavigationMode:_0xf0b98a,currentChangeNumber:_0x5786c1}=_0x3009e4;let _0x1a05bc;if(_0x3009e4['activeChange']=_0xf0b98a?_0x3009e4[_0x4996('0x68')][_0x4996('0x76')][_0x4996('0xff')](_0x5786c1+this[_0x4996('0xbd')]):_0x3009e4[_0x4996('0x68')]['changes'][_0x4996('0x118')],_0x3009e4[_0x4996('0x88')][_0x4996('0xf0')]['isOnRoot'])_0x1a05bc=_0x1eecec[_0x4996('0x4e')][_0x4996('0x90')][_0x4996('0xca')](_0x3009e4['activeChange'][_0x4996('0x3d')]);else{const _0x4c178c=_0x1eecec[_0x4996('0x42')][_0x4996('0x108')][_0x4996('0xff')](_0x4996('0x66')+_0x3009e4[_0x4996('0x88')]['id']);_0x1a05bc=_0x39ac91(_0x1eecec[_0x4996('0x4e')],_0x4c178c);}_0x22828b({'target':_0x1a05bc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ec865,currentChangeNumber:_0x3d0645,numberOfChanges:_0x591774,isReady:_0x335cc7,isEnabled:_0x3c00d9}=this[_0x4996('0x107')][_0x4996('0x22')]['get'](d);this['isEnabled']=!!(_0x3c00d9&&_0x335cc7&&_0x591774)&&(!_0x4ec865||(0x1===this[_0x4996('0xbd')]?_0x3d0645<_0x591774-0x1:_0x3d0645>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x235a=['buttonView','Show\x20more\x20items','items','execute','add','map','first','name','Compare\x20against\x20selected','model','ck-revision-history-sidebar__revision__actions','isOpen','_action','bind','action','extendTemplate','listView','threeVerticalDots','stopPropagation','source','function','listenTo','panelPosition','locale','class','isEnabled','isActionsDropdownOpen','button'];(function(_0x58fa6b,_0x235ad5){const _0x10b967=function(_0x49efd7){while(--_0x49efd7){_0x58fa6b['push'](_0x58fa6b['shift']());}};_0x10b967(++_0x235ad5);}(_0x235a,0x1da));const _0x10b9=function(_0x58fa6b,_0x235ad5){_0x58fa6b=_0x58fa6b-0x0;let _0x10b967=_0x235a[_0x58fa6b];return _0x10b967;};import{Collection as _0x2aeff4}from'ckeditor5/src/utils';import{icons as _0x4123ed}from'ckeditor5/src/core';import{Model as _0x27d544,addListToDropdown as _0x513cf9,createDropdown as _0x5bb170}from'ckeditor5/src/ui';import{getTranslation as _0x37b6c5}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2b1ad5,_0x43b5a4){const _0x23c863=_0x2b1ad5['bindTemplate'],_0x1393d4=_0x2b1ad5[_0x10b9('0x19')],_0x5a824c=_0x5bb170(_0x1393d4);_0x5a824c[_0x10b9('0x18')]='sw';const _0x1746bd=function(_0x5ae4b0,_0x4a86dd){const _0x2759e8=function(_0x210ad3,_0x275bfd){const _0x3a12c9=_0x210ad3[_0x10b9('0x19')],_0x593fdc={'Compare\x20against\x20selected':_0x37b6c5(_0x3a12c9,_0x10b9('0xa')),'Name\x20this\x20revision':_0x37b6c5(_0x3a12c9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x37b6c5(_0x3a12c9,'Restore\x20this\x20revision')};return _0x275bfd[_0x10b9('0x7')](_0x2dc033=>{const _0x4bc9e3=_0x593fdc[_0x2dc033['name']];return _0x4bc9e3&&_0x4bc9e3!==_0x2dc033[_0x10b9('0x9')]&&(_0x2dc033[_0x10b9('0x9')]=_0x4bc9e3),_0x2dc033;});}(_0x5ae4b0,_0x4a86dd),_0x1d7830=new _0x2aeff4();for(const _0x2b7102 of _0x2759e8){const _0x2a7e54={'type':_0x10b9('0x1'),'model':new _0x27d544({'label':_0x2b7102[_0x10b9('0x9')],'class':_0x2b7102[_0x10b9('0x1a')],'withText':!0x0,'_action':_0x2b7102[_0x10b9('0x10')]})};_0x2a7e54[_0x10b9('0xb')][_0x10b9('0xf')](_0x10b9('0x1b'))['to'](_0x5ae4b0,_0x10b9('0x0'),_0x3d6563=>_0x10b9('0x16')!=typeof _0x2b7102[_0x10b9('0x1b')]||(!_0x3d6563||_0x2b7102[_0x10b9('0x1b')](_0x5ae4b0))),_0x1d7830[_0x10b9('0x6')](_0x2a7e54);}return _0x1d7830;}(_0x2b1ad5,_0x43b5a4);return _0x2b1ad5[_0x10b9('0xf')](_0x10b9('0x0'))['to'](_0x5a824c,_0x10b9('0xd')),_0x5a824c[_0x10b9('0x2')]['set']({'label':_0x37b6c5(_0x1393d4,_0x10b9('0x3')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4123ed[_0x10b9('0x13')]}),_0x5a824c[_0x10b9('0x11')]({'attributes':{'class':[_0x10b9('0xc'),_0x23c863['if'](_0x10b9('0x0'),'ck-on')]},'on':{'click':_0x23c863['to'](_0x2c2f7d=>_0x2c2f7d[_0x10b9('0x14')]())}}),_0x5a824c['on'](_0x10b9('0x5'),_0x5c97f1=>{_0x2b1ad5['isReady']&&_0x10b9('0x16')==typeof _0x5c97f1[_0x10b9('0x15')]['_action']&&_0x5c97f1['source'][_0x10b9('0xe')](_0x2b1ad5);}),_0x513cf9(_0x5a824c,_0x1746bd),_0x5a824c[_0x10b9('0x17')](_0x2b1ad5,'change:isActionsDropdownOpen',(_0x1f448e,_0x508572,_0xe18436)=>{if(_0xe18436)for(const _0xddf954 of _0x5a824c[_0x10b9('0x12')][_0x10b9('0x4')]){const _0xe883c0=_0xddf954['children'][_0x10b9('0x8')],_0x4e4541=_0x43b5a4['find'](_0x23507b=>_0x23507b[_0x10b9('0x10')]===_0xe883c0[_0x10b9('0xe')])['isVisible'];_0xddf954['isVisible']=void 0x0===_0x4e4541||_0x4e4541(_0x2b1ad5);}}),_0x5a824c;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c2c=['Revision\x20author','span','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','setTemplate'];(function(_0x548fe6,_0x2c2cd8){const _0x32f68d=function(_0x3ddb38){while(--_0x3ddb38){_0x548fe6['push'](_0x548fe6['shift']());}};_0x32f68d(++_0x2c2cd8);}(_0x2c2c,0x1c7));const _0x32f6=function(_0x548fe6,_0x2c2cd8){_0x548fe6=_0x548fe6-0x0;let _0x32f68d=_0x2c2c[_0x548fe6];return _0x32f68d;};import{View as _0x84a523,IconView as _0xf274e5}from'ckeditor5/src/ui';import{getTranslation as _0x14cf1a}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x20cd72 from'../../../theme/icons/user.svg';export default class ti extends _0x84a523{constructor(_0x5e857f,_0x5a386c,_0x141be0){super(_0x5e857f);const _0x584ccf=new _0xf274e5();_0x584ccf['set']({'content':_0x20cd72,'viewBox':_0x32f6('0x2')});const _0xd877f2=['ck',_0x32f6('0x5')];_0x141be0&&_0xd877f2['push'](_0x32f6('0x3'));const _0x324a28=[{'tag':_0x32f6('0x1'),'attributes':{'class':['ck',_0x32f6('0x4')],'title':_0x14cf1a(_0x5e857f,_0x141be0?'Revision\x20creator':_0x32f6('0x0'))},'children':[_0x584ccf,_0x5a386c['name']]}];this[_0x32f6('0x6')]({'tag':'li','attributes':{'class':_0xd877f2},'children':_0x324a28});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4d6a=['ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate'];(function(_0x4d8f8d,_0x4d6a77){var _0x227326=function(_0x69b734){while(--_0x69b734){_0x4d8f8d['push'](_0x4d8f8d['shift']());}};_0x227326(++_0x4d6a77);}(_0x4d6a,0x1aa));var _0x2273=function(_0x4d8f8d,_0x4d6a77){_0x4d8f8d=_0x4d8f8d-0x0;var _0x227326=_0x4d6a[_0x4d8f8d];return _0x227326;};import{LabeledFieldView as _0x37a858}from'ckeditor5/src/ui';import{getTranslation as _0x5123b8}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x37a858{constructor(_0x401756,_0x5f3c99){super(_0x401756,_0x5f3c99),this['set']({'label':_0x5123b8(_0x401756,_0x2273('0x1'))}),this[_0x2273('0x2')]({'tag':'span','attributes':{'class':[_0x2273('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d2b=['ck-reset','fire','highlight','setTemplate','isHighlighted','value','div','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','select','ck-revision-history-sidebar__revision__date','listenTo','creator','name','ck-disabled','map','change','isSelected','from','set','_createdAtFormatted','220','createdAt','ck-revision-history-sidebar__actions_dropdown_open','revisionNameView','length','isReady','closest','_revision','isEnabled','authors','revisionActionsView','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','.ck-thread__remove-confirm','bindTemplate','bind','isActionsDropdownOpen','filter','extendTemplate','placeholder','render','unshift','fieldView','deselect','ck-revision-history-sidebar__revision-wrapper','span','unhighlight'];(function(_0x4cd3e3,_0x5d2b4c){const _0x1fbc4e=function(_0x1a2dd2){while(--_0x1a2dd2){_0x4cd3e3['push'](_0x4cd3e3['shift']());}};_0x1fbc4e(++_0x5d2b4c);}(_0x5d2b,0x1a7));const _0x1fbc=function(_0x4cd3e3,_0x5d2b4c){_0x4cd3e3=_0x4cd3e3-0x0;let _0x1fbc4e=_0x5d2b[_0x4cd3e3];return _0x1fbc4e;};import{View as _0x14827e,createLabeledInputText as _0x579879}from'ckeditor5/src/ui';import{ConfirmMixin as _0x29c859}from'ckeditor5-collaboration/src/collaboration-core';import _0x17b390 from'./revisionnameview';import _0x1d5ba5 from'./revisionauthorview';import{dateToPrettyFormat as _0x3c7fee}from'./utils';import{createActionsDropdownView as _0x283df6}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x29c859(_0x14827e){constructor(_0x158aa1,_0x327cfa,_0xd2b389){super(_0x158aa1);const _0x5026ab=this[_0x1fbc('0x22')],_0x38cb9e=function(_0x4fb828,_0x2d033d){const _0x19e20c=Array[_0x1fbc('0x11')](_0x2d033d[_0x1fbc('0x1d')])[_0x1fbc('0x25')](_0xbd1095=>_0xbd1095!=_0x2d033d[_0x1fbc('0xb')]);return _0x2d033d[_0x1fbc('0xb')]&&_0x19e20c[_0x1fbc('0x29')](_0x2d033d[_0x1fbc('0xb')]),_0x19e20c[_0x1fbc('0xe')](_0x2e8888=>new _0x1d5ba5(_0x4fb828,_0x2e8888,_0x2e8888==_0x2d033d['creator']));}(_0x158aa1,_0x327cfa);this['id']=_0x327cfa['id'],this[_0x1fbc('0x1b')]=_0x327cfa,this[_0x1fbc('0x23')](_0x1fbc('0xc'),'createdAt')['to'](_0x327cfa),this[_0x1fbc('0x23')](_0x1fbc('0x13'))['to'](this,_0x1fbc('0x15'),_0x3a1799=>_0x3a1799?_0x3c7fee(_0x158aa1['uiLanguage'],_0x3a1799):void 0x0),this['set'](_0x1fbc('0x10'),!0x1),this['set'](_0x1fbc('0x4'),!0x1),this[_0x1fbc('0x12')](_0x1fbc('0x24'),!0x1),this[_0x1fbc('0x12')](_0x1fbc('0x19'),!0x1),this['set'](_0x1fbc('0x1c'),!0x1),this[_0x1fbc('0x17')]=new _0x17b390(_0x158aa1,_0x579879),this['revisionNameView'][_0x1fbc('0x2a')][_0x1fbc('0x26')]({'attributes':{'maxlength':_0x1fbc('0x14')}}),this[_0x1fbc('0x17')]['fieldView']['bind'](_0x1fbc('0x5'),_0x1fbc('0x27'))['to'](this,_0x1fbc('0xc'),_0x1fbc('0x13')),this[_0x1fbc('0x17')][_0x1fbc('0x23')](_0x1fbc('0x1c'))['to'](this,_0x1fbc('0x10'),this,_0x1fbc('0x1c'),(_0x24bed4,_0x3c9b27)=>_0x24bed4&&_0x3c9b27),this[_0x1fbc('0x1e')]=_0xd2b389&&_0xd2b389[_0x1fbc('0x18')]?_0x283df6(this,_0xd2b389):'',this['revisionActionsView']&&this[_0x1fbc('0x1e')]['bind']('isEnabled')['to'](this),this[_0x1fbc('0x3')]({'tag':'div','attributes':{'class':['ck',_0x1fbc('0x0'),_0x1fbc('0x2c'),_0x5026ab['if']('isConfirm',_0x1fbc('0x7'))]},'children':[{'tag':_0x1fbc('0x6'),'attributes':{'class':['ck',_0x1fbc('0x0'),_0x1fbc('0x20'),_0x5026ab['if'](_0x1fbc('0x1c'),_0x1fbc('0xd'),_0x540e48=>!_0x540e48),_0x5026ab['if'](_0x1fbc('0x10'),_0x1fbc('0x1f')),_0x5026ab['if'](_0x1fbc('0x4'),'ck-revision-history-sidebar__revision_highlighted'),_0x5026ab['if']('isActionsDropdownOpen',_0x1fbc('0x16'))]},'children':[this[_0x1fbc('0x17')],{'tag':_0x1fbc('0x2d'),'attributes':{'class':['ck',_0x1fbc('0x9')]},'children':[{'text':_0x5026ab['to'](_0x1fbc('0x13'))}]},{'tag':_0x1fbc('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x38cb9e}]},this[_0x1fbc('0x1e')]],'on':{'click':_0x5026ab['to'](_0x9ca6b4=>{_0x9ca6b4['srcElement'][_0x1fbc('0x1a')](_0x1fbc('0x21'))||this[_0x1fbc('0x19')]&&this[_0x1fbc('0x1c')]&&this[_0x1fbc('0x1')](_0x1fbc('0x8'),{'id':this['id']});})}}]});}['render'](){super[_0x1fbc('0x28')]();const _0x115be7=this[_0x1fbc('0x17')]['fieldView']['element'];this[_0x1fbc('0xa')](_0x115be7,_0x1fbc('0xf'),()=>{this['fire']('setName',{'id':this['id'],'name':_0x115be7[_0x1fbc('0x5')]});});}[_0x1fbc('0x8')](){this[_0x1fbc('0x10')]=!0x0;}[_0x1fbc('0x2b')](){this[_0x1fbc('0x10')]=!0x1;}[_0x1fbc('0x2')](){this[_0x1fbc('0x4')]=!0x0;}[_0x1fbc('0x2e')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34bf=['button','click','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','true','toggle','span','isVisible','setTemplate','set','_isCollapsed'];(function(_0x39ae08,_0x34bf65){const _0x13cd29=function(_0x3d17e3){while(--_0x3d17e3){_0x39ae08['push'](_0x39ae08['shift']());}};_0x13cd29(++_0x34bf65);}(_0x34bf,0x156));const _0x13cd=function(_0x39ae08,_0x34bf65){_0x39ae08=_0x39ae08-0x0;let _0x13cd29=_0x34bf[_0x39ae08];return _0x13cd29;};import{View as _0x25d07c}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x25d07c{constructor(_0x2199eb){super(_0x2199eb);const _0x2f37d8=this['bindTemplate'];this[_0x13cd('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x13cd('0x7')]({'tag':_0x13cd('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x2f37d8['if'](_0x13cd('0x6'),'ck-hidden',_0x2341cb=>!_0x2341cb),_0x2f37d8['if'](_0x13cd('0x9'),_0x13cd('0x2'))],'role':_0x13cd('0xa'),'aria-pressed':_0x2f37d8['to'](_0x13cd('0x9'),_0x299339=>_0x299339?_0x13cd('0x1'):_0x13cd('0x3'))},'children':[{'tag':_0x13cd('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x2f37d8['to'](_0x13cd('0x0'))}});}[_0x13cd('0x4')](){this[_0x13cd('0x9')]=!this[_0x13cd('0x9')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1130=['setTemplate','ck-revision-history-sidebar__revision','div','bind','set','_parentRevisionId','bindTemplate','createdAt','isSelected','deselect','ck-revision-history-sidebar__revision-authors','select','creator','fire','ck-reset','uiLanguage','ck-revision-history-sidebar__revision_selected'];(function(_0x197b4a,_0x113087){const _0x4f5817=function(_0x6d520){while(--_0x6d520){_0x197b4a['push'](_0x197b4a['shift']());}};_0x4f5817(++_0x113087);}(_0x1130,0xcf));const _0x4f58=function(_0x197b4a,_0x113087){_0x197b4a=_0x197b4a-0x0;let _0x4f5817=_0x1130[_0x197b4a];return _0x4f5817;};import{View as _0x42198b}from'ckeditor5/src/ui';import _0x2a6bb6 from'./revisionauthorview';import{dateToPrettyFormat as _0x523662}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x42198b{constructor(_0x2c4a1f,_0x385432,_0x44cb23){super(_0x2c4a1f);const _0x210029=this[_0x4f58('0x3')];this['id']=_0x385432['id'],this[_0x4f58('0x0')](_0x4f58('0x4'))['to'](_0x385432),this[_0x4f58('0x1')](_0x4f58('0x5'),!0x1),this[_0x4f58('0x0')]('_createdAtFormatted')['to'](this,_0x4f58('0x4'),_0x4b5b0f=>_0x4b5b0f?_0x523662(_0x2c4a1f[_0x4f58('0xc')],_0x4b5b0f):void 0x0),this[_0x4f58('0x2')]=_0x44cb23,this[_0x4f58('0xe')]({'tag':_0x4f58('0x10'),'attributes':{'class':['ck',_0x4f58('0xb'),_0x4f58('0xf'),'ck-revision-history-sidebar__subrevision',_0x210029['if'](_0x4f58('0x5'),_0x4f58('0xd'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x210029['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x4f58('0x7')]},'children':[new _0x2a6bb6(_0x2c4a1f,_0x385432[_0x4f58('0x9')],!0x0)]}],'on':{'click':_0x210029['to'](this[_0x4f58('0x8')][_0x4f58('0x0')](this))}});}[_0x4f58('0x8')](){this[_0x4f58('0x5')]=!0x0,this[_0x4f58('0xa')](_0x4f58('0x8'),{'parentId':this[_0x4f58('0x2')]});}[_0x4f58('0x6')](){this[_0x4f58('0x5')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4164=['toLocaleDateString','numeric','toLocaleTimeString'];(function(_0x50cb10,_0x4164dd){var _0xc0a3f6=function(_0x50ddfd){while(--_0x50ddfd){_0x50cb10['push'](_0x50cb10['shift']());}};_0xc0a3f6(++_0x4164dd);}(_0x4164,0x1b7));var _0xc0a3=function(_0x50cb10,_0x4164dd){_0x50cb10=_0x50cb10-0x0;var _0xc0a3f6=_0x4164[_0x50cb10];return _0xc0a3f6;};export function dateToPrettyFormat(_0x4218f4,_0x5afe92){return _0x5afe92[_0xc0a3('0x2')](_0x4218f4,{'month':'long','day':_0xc0a3('0x0')})+',\x20'+_0x5afe92[_0xc0a3('0x1')](_0x4218f4,{'hour':_0xc0a3('0x0'),'minute':_0xc0a3('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2876=['arrowright','_focusables','value','ck-button-cancel','fieldView','_createButton','set','220','cancelButtonView','add','_focusCycler','ck-revision-history-save-revision-form','_createRevisionNameInput','tab','delegate','setTemplate','arrowdown','locale','Save','arrowleft','extendTemplate','forEach','focusTracker','form','revisionName','element','trim','keystrokes','shift\x20+\x20tab','saveButtonView','ck-responsive-form','type','input','focus','revisionNameInputView','render','submit','revisionNameInputValue','focusFirst','listenTo','cancel','ck-button-save'];(function(_0x109280,_0x287678){const _0x30d8db=function(_0x20cdec){while(--_0x20cdec){_0x109280['push'](_0x109280['shift']());}};_0x30d8db(++_0x287678);}(_0x2876,0xa9));const _0x30d8=function(_0x109280,_0x287678){_0x109280=_0x109280-0x0;let _0x30d8db=_0x2876[_0x109280];return _0x30d8db;};import{icons as _0x19cf37}from'ckeditor5/src/core';import{ButtonView as _0x5ba056,FocusCycler as _0x4a92df,LabeledFieldView as _0x158547,View as _0x10d48b,ViewCollection as _0x38d01a,createLabeledInputText as _0x1472eb,injectCssTransitionDisabler as _0x1fa969,submitHandler as _0x440d35}from'ckeditor5/src/ui';import{FocusTracker as _0x342146,KeystrokeHandler as _0x3a3ea5}from'ckeditor5/src/utils';import{getTranslation as _0x49c9af}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x10d48b{constructor(_0x3c74da){super(_0x3c74da),this[_0x30d8('0x15')]=new _0x342146(),this['keystrokes']=new _0x3a3ea5(),this[_0x30d8('0x5')](_0x30d8('0x24'),''),this[_0x30d8('0x21')]=this[_0x30d8('0xb')](),this[_0x30d8('0x1c')]=this[_0x30d8('0x4')](_0x49c9af(_0x3c74da,_0x30d8('0x11')),_0x19cf37['check'],_0x30d8('0x28')),this[_0x30d8('0x1c')][_0x30d8('0x1e')]=_0x30d8('0x23'),this[_0x30d8('0x7')]=this['_createButton'](_0x49c9af(_0x3c74da,'Cancel'),_0x19cf37[_0x30d8('0x27')],_0x30d8('0x2'),_0x30d8('0x27')),this[_0x30d8('0x0')]=new _0x38d01a(),this[_0x30d8('0x9')]=new _0x4a92df({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x30d8('0x1b'),'focusNext':_0x30d8('0xc')}}),this[_0x30d8('0xe')]({'tag':_0x30d8('0x16'),'attributes':{'class':['ck',_0x30d8('0xa'),_0x30d8('0x1d')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x30d8('0x1c')],this[_0x30d8('0x7')]]}),_0x1fa969(this);}[_0x30d8('0x22')](){super[_0x30d8('0x22')](),_0x440d35({'view':this}),([this[_0x30d8('0x21')],this[_0x30d8('0x1c')],this[_0x30d8('0x7')]][_0x30d8('0x14')](_0xb6ef3d=>{this[_0x30d8('0x0')][_0x30d8('0x8')](_0xb6ef3d),this[_0x30d8('0x15')][_0x30d8('0x8')](_0xb6ef3d['element']);}),this['keystrokes'][_0x30d8('0x26')](this[_0x30d8('0x18')]));const _0x3c759a=_0x59876e=>_0x59876e['stopPropagation']();this[_0x30d8('0x1a')]['set'](_0x30d8('0x29'),_0x3c759a),this[_0x30d8('0x1a')][_0x30d8('0x5')](_0x30d8('0x12'),_0x3c759a),this[_0x30d8('0x1a')]['set']('arrowup',_0x3c759a),this[_0x30d8('0x1a')][_0x30d8('0x5')](_0x30d8('0xf'),_0x3c759a);}[_0x30d8('0x20')](){this[_0x30d8('0x9')][_0x30d8('0x25')]();}get[_0x30d8('0x17')](){return this[_0x30d8('0x21')]['fieldView'][_0x30d8('0x18')][_0x30d8('0x1')][_0x30d8('0x19')]();}set[_0x30d8('0x17')](_0x352ae0){this[_0x30d8('0x21')][_0x30d8('0x3')][_0x30d8('0x18')][_0x30d8('0x1')]=_0x352ae0[_0x30d8('0x19')]();}['reset'](){this[_0x30d8('0x21')][_0x30d8('0x3')]['element'][_0x30d8('0x1')]='';}[_0x30d8('0xb')](){const _0x2dae06=new _0x158547(this[_0x30d8('0x10')],_0x1472eb),_0x41980c=_0x2dae06['fieldView'];return _0x41980c[_0x30d8('0x13')]({'attributes':{'maxlength':_0x30d8('0x6')}}),_0x2dae06['label']=_0x49c9af(this['locale'],'Name\x20of\x20the\x20revision\x20(optional)'),_0x41980c['on'](_0x30d8('0x1f'),()=>{this[_0x30d8('0x24')]=_0x41980c[_0x30d8('0x18')]['value'][_0x30d8('0x19')]();}),_0x2dae06;}[_0x30d8('0x4')](_0x93a23a,_0x3dc6e6,_0x709345,_0x558497){const _0x268db5=new _0x5ba056(this[_0x30d8('0x10')]);return _0x268db5[_0x30d8('0x5')]({'label':_0x93a23a,'icon':_0x3dc6e6,'tooltip':!0x0}),_0x268db5['extendTemplate']({'attributes':{'class':_0x709345}}),_0x558497&&_0x268db5[_0x30d8('0xd')]('execute')['to'](this,_0x558497),_0x268db5;}}
|