@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231012.0 → 0.0.0-nightly-20231013.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.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x356e=['config','getIndex','isRemoved','addClass','requires','isCollapsed','attributesBefore','push','activeView','markerToHighlight','getAttribute','merge','getWalker','top','test','isEqual','useFillerType','nextPosition','insert','repository','RevisionsRepository','elementStart','_markInsertions','nextSibling','showNextChange','return','getRoot','comment','viewItem','flat','addRevision','clear','slice','_removeMissingPairs','isContent','ck-editor__editable__overlay','createPositionBefore','code','markersStart','range','showStack','createPositionFromPath','isAfter','isAddSuggestion','revision:','end','splice','_markMismatchedRemovedTags','isRemoveSuggestion','unshift','_makeTape','removeMarker','domEvent','_setChanges','RevisionViewer','find','markersEnd','level','oldRevisionId','ck-revision-history-root--active','_threeWayMerge','text','insertions','set','changes','endIndex','isAdded','vid_start','sort','_makeModelFromViewString','_getChangeFromId','toViewElement','pairId','get','catch','pop','maxOffset','affectsData','change','_step','loadRevisionData','getRevisionData','model','element','refresh','elementEnd','modelRange','_update','length','left','isOnRoot','uiElement','_removeRevisionMarkers','unbindElementFromMarkerName','addRoot','hasClass','type','-new','distance','isBefore','getRootNames','markerName','from','elementToAttribute','_markMarkers','change:isEnabled','hasAttribute','highest','checkAttribute','change:activeView','downcastDispatcher','setAttribute','_cleanUp','item','string','createRangeIn','activeChange','start','currentChangeNumber','ck-suggestion-preview-marker','execute','change:activeChange','upcast','name','_markSuggestions','removeClass','filter','_cleanMarkers','adapter','next','attachChange','deletions','collaboration.channelId','_getDiff','previousPosition','isEnabled','delete','view','deletion','_initInteractions','ck-suggestion-preview-marker-','includes','updatePosition','all','revisionHistoryLabel','_revisions','_sortAndFilterDiffChanges','done','offsetSize','getAttributes','stop','consume','toViewPosition','addMarker:revision-suggestion:insertion','attributesAfter','findIndex','change:numberOfChanges','backward','getRevision','insertion','data-change-id','pluginName','dataToMarker','editing','isAttached','_setDistance','_getViewForChange','side','getClientRects','low','authors','newRevisionId','ck-revision-history-root-','isLimit','element:pre','add','_getRevisionsRange','getChild','createAttributeElement','enqueueChange','detachRoot','revision-suggestion','bind','addHighlight','isInline','schema','selection','for','ck-revision-history-root-add','ck-suggestion-marker-merge','_activeViewTarget','_setConversion','markerToData','_getViewObj','commands','revisionHistory','_refreshStartEndIndex','data-revision-','editor','processor','consumable','_changeView','change:isReady','forward','concat','createUIElement','parse','isAtStart','reconvertMarker','startsWith','data','nodeAfter','_removeUnsupportedChanges','locale','marked','mapper','indexOf','revision-suggestion:','vid','_fixObsoleteTags','abs','forceDisabled','_balloon','isBlock','ck-suggestion-marker-split','createRange','_changeIdToChange','error','mousedown','isSuggestion','then','userId','startIndex','diff','isReady','_findChangeIdFromDomTarget','addRevisionData','compare','suggestion','destroy','revision','editingDowncast','plugins','forEach','attribute:vid','has','WidgetToolbarRepository','writer','index','high','ck-suggestion-marker-','listenTo','attributes','restoreRevision','revision-comment:','ck-suggestion-marker','dataDowncast','isAtEnd','parent','_processTape','softBreak','keys','target','suggestion:','markers','conversion','default','addMarker:revision','resolve','isIncorrect','bindElementToMarker','revision-viewer','vid_end','right','map','markerRange','_data','rootName','getDomRoot','removeMarker:revision-suggestion','span','document','diffData','split','remove','changeId','shift','_appendChild','children','wrap','markerNameToElements'];(function(_0x37163c,_0x356e6f){const _0x121373=function(_0x4c690b){while(--_0x4c690b){_0x37163c['push'](_0x37163c['shift']());}};_0x121373(++_0x356e6f);}(_0x356e,0x14b));const _0x1213=function(_0x37163c,_0x356e6f){_0x37163c=_0x37163c-0x0;let _0x121373=_0x356e[_0x37163c];return _0x121373;};import{Plugin as _0x40ca53,Command as _0x76009b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1162e9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x7f78dc}from'ckeditor5/src/ui';import{DocumentFragment as _0x391c97,Element as _0x6e3159,Text as _0x5111e1,ViewDocumentFragment as _0x1d5f57,ViewText as _0x165698,ViewElement as _0x376922,ViewContainerElement as _0x30b460,ViewAttributeElement as _0x2aacdd,ViewEmptyElement as _0x2f0f1e,ViewRawElement as _0x54618b,ViewUIElement as _0xe5f7b7}from'ckeditor5/src/engine';import{Users as _0x355653,getMarkerDomElement as _0xb2fd99}from'ckeditor5-collaboration/src/collaboration-core';import _0x34ac4c from'./ui/revisionviewer/changedetailsview';import _0x49e3ad from'./revisionsrepository';import _0x17aba0 from'./changeitem';import{default as _0x177edb}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x5e15b4}from'lodash-es';const tt={'c':_0x30b460,'a':_0x2aacdd,'e':_0x2f0f1e,'r':_0x54618b,'u':_0xe5f7b7};export default class d extends _0x40ca53{static get[_0x1213('0x79')](){return'RevisionViewer';}static get[_0x1213('0xff')](){return[_0x355653,_0x7f78dc,_0x49e3ad];}constructor(_0x956e9b){super(_0x956e9b),this[_0x1213('0x10e')]=this[_0x1213('0x9e')]['plugins']['get'](_0x1213('0x10f')),this['set'](_0x1213('0x4c'),null),this[_0x1213('0x17')](_0x1213('0x103'),null),this[_0x1213('0x96')]=null,this[_0x1213('0x17')](_0x1213('0xc1'),null),this[_0x1213('0x17')]('isReady',!0x1),this[_0x1213('0x17')]('isEnabled',!0x0),this['on'](_0x1213('0x41'),(_0x239c59,_0x18d028,_0x41dcf9)=>{this[_0x1213('0x4c')]=null,this['activeView']=null,this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0x26')](_0x40dbac=>{for(const _0x2bca98 of this['editor'][_0x1213('0x7b')]['view'][_0x1213('0xf1')]['roots'])_0x41dcf9?_0x40dbac[_0x1213('0x55')]('ck-editor__editable__overlay',_0x2bca98):_0x40dbac['addClass'](_0x1213('0x11e'),_0x2bca98);});}),this[_0x1213('0x8e')]('isNavigationMode')['to'](this,_0x1213('0x4c'),_0x2ba1a7=>null!==_0x2ba1a7),this['bind'](_0x1213('0x4e'))['to'](this,_0x1213('0xc2'),this,_0x1213('0xc1'),this,'activeChange',(_0x35dba9,_0x89b00e,_0x5665c9)=>_0x35dba9&&_0x5665c9?_0x89b00e[_0x1213('0x18')][_0x1213('0xfc')](_0x5665c9):0x0),this[_0x1213('0x8e')]('numberOfChanges')['to'](this,_0x1213('0xc2'),this,_0x1213('0xc1'),(_0x37f379,_0x231892)=>_0x37f379?_0x231892[_0x1213('0x18')][_0x1213('0x30')]:0x0),this[_0x1213('0xa1')]=null,this[_0x1213('0xba')]=new Map(),this[_0x1213('0x58')]=null,this[_0x1213('0xb6')]=this[_0x1213('0x9e')][_0x1213('0xca')][_0x1213('0x21')](_0x7f78dc);}['init'](){const _0x3cb816=this[_0x1213('0x9e')],_0x4c867b=new ShowChangeCommand(_0x3cb816,{'direction':_0x1213('0x75')}),_0x1cd48a=new ShowChangeCommand(_0x3cb816,{'direction':_0x1213('0xa3')});(_0x3cb816[_0x1213('0x9a')][_0x1213('0x87')]('showPreviousChange',_0x4c867b),_0x3cb816['commands'][_0x1213('0x87')](_0x1213('0x113'),_0x1cd48a),_0x3cb816[_0x1213('0x9a')][_0x1213('0x87')](_0x1213('0xd5'),new RestoreRevisionCommand(_0x3cb816)),this['on'](_0x1213('0x74'),()=>{_0x4c867b['refresh'](),_0x1cd48a[_0x1213('0x2c')]();}),this['_setConversion'](),this['_initInteractions'](),_0x3cb816['enableReadOnlyMode'](_0x1213('0xe7')),_0x3cb816[_0x1213('0xca')][_0x1213('0xcd')](_0x1213('0xce')))&&_0x3cb816[_0x1213('0xca')][_0x1213('0x21')](_0x1213('0xce'))[_0x1213('0xb5')](_0x1213('0xe7'));}async[_0x1213('0x29')](_0x227718){await this[_0x1213('0x28')](_0x227718);const _0x2b99f1={};for(const _0x53fd6c in _0x227718[_0x1213('0xf2')]){if(_0x227718[_0x1213('0xf2')][_0x53fd6c][_0x1213('0x5a')]&&!_0x227718[_0x1213('0xf2')][_0x53fd6c][_0x1213('0x5a')]['isAttached'])continue;const _0x39adc2=this[_0x1213('0x34')](JSON[_0x1213('0xa6')](_0x227718[_0x1213('0xf2')][_0x53fd6c][_0x1213('0x16')])),_0x2e2532=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],_0x50e9d3=new _0x1d5f57(_0x2e2532,_0x39adc2[_0x1213('0xea')](_0x545407=>this[_0x1213('0x99')](_0x545407)));this[_0x1213('0x9e')][_0x1213('0xaa')][_0x1213('0x9f')][_0x1213('0x10b')](_0x1213('0xae')),_0x2b99f1[_0x53fd6c]=this['editor'][_0x1213('0xaa')]['processor']['toData'](_0x50e9d3),this[_0x1213('0x9e')][_0x1213('0xaa')][_0x1213('0x9f')][_0x1213('0x10b')](_0x1213('0xe2'));}return _0x2b99f1;}async['getRevisionRootsAttributes'](_0x383f47){await this[_0x1213('0x28')](_0x383f47);const _0x24fd71={};for(const _0x5502b8 in _0x383f47[_0x1213('0xf2')])_0x383f47['diffData'][_0x5502b8][_0x1213('0x5a')]&&!_0x383f47['diffData'][_0x5502b8][_0x1213('0x5a')][_0x1213('0x7c')]||(_0x24fd71[_0x5502b8]=_0x383f47[_0x1213('0xf2')][_0x5502b8][_0x1213('0x72')]||{});return _0x24fd71;}[_0x1213('0x34')](_0x9c4f55){return(_0x9c4f55=_0x9c4f55[_0x1213('0x56')](_0x526798=>!_0x526798[_0x1213('0x53')]||'revision-start'!==_0x526798[_0x1213('0x53')]&&'revision-end'!==_0x526798[_0x1213('0x53')]))[_0x1213('0xcb')](_0x279ef7=>{_0x1213('0x4a')!=typeof _0x279ef7&&(_0x279ef7['children']=this['_removeRevisionMarkers'](_0x279ef7['children']),_0x279ef7[_0x1213('0xd4')]=_0x279ef7['attributes'][_0x1213('0x56')](_0x335c68=>!_0x335c68[0x0][_0x1213('0xa9')](_0x1213('0x9d'))));}),_0x9c4f55;}async[_0x1213('0xc5')](_0x354cbc,_0x1b8f18,_0x238a0a=!0x1){if(!this[_0x1213('0x5f')])return;const _0x399a1d=this[_0x1213('0xc1')],_0x4c945c=this[_0x1213('0x10e')],_0x2c3641=_0x1213('0x4a')==typeof _0x354cbc?_0x4c945c['getRevision'](_0x354cbc):_0x354cbc,_0x5a501c='string'==typeof _0x1b8f18?_0x4c945c[_0x1213('0x76')](_0x1b8f18):_0x1b8f18,_0x22190d=_0x2c3641['id'],_0x5b8696=_0x5a501c?_0x5a501c['id']:null;if(!_0x238a0a&&this[_0x1213('0xc1')]&&this[_0x1213('0xc1')][_0x1213('0x83')]===_0x22190d&&this[_0x1213('0xc1')][_0x1213('0x12')]===_0x5b8696)return Promise[_0x1213('0xe4')]();this[_0x1213('0xc2')]=!0x1,this[_0x1213('0x103')]=null,this[_0x1213('0x4c')]=null,this[_0x1213('0xc1')]=new _0x177edb(_0x22190d,_0x5b8696);const _0x1a7141=this[_0x1213('0x88')](_0x2c3641,_0x5a501c,!0x0)['map'](_0xe56172=>this[_0x1213('0x28')](_0xe56172));return _0x1a7141[_0x1213('0x102')](new Promise(_0x5e5b02=>{setTimeout(_0x5e5b02,0x14);})),Promise[_0x1213('0x67')](_0x1a7141)[_0x1213('0xbe')](()=>{if(!this[_0x1213('0x5f')])return;this[_0x1213('0x48')]();const _0x30dae4=this[_0x1213('0x5d')](_0x22190d,_0x5b8696);for(const _0x58bfef of _0x30dae4[_0x1213('0x18')])this[_0x1213('0xba')]['set'](_0x58bfef['id'],_0x58bfef);this[_0x1213('0x9e')]['model'][_0x1213('0x8b')]({'isUndoable':!0x1},_0x5a81bf=>{for(const _0x2c5648 of this['editor'][_0x1213('0x2a')][_0x1213('0xf1')][_0x1213('0x3c')]())_0x5a81bf['detachRoot'](_0x2c5648);for(const _0x274cb8 of Object[_0x1213('0xdd')](_0x30dae4[_0x1213('0x2a')])){const _0x3bf811=_0x5a81bf[_0x1213('0x36')](_0x274cb8);for(const _0x4c8b1c of Object[_0x1213('0xdd')](_0x30dae4[_0x1213('0xd4')][_0x274cb8]))_0x5a81bf[_0x1213('0x47')](_0x4c8b1c,_0x30dae4['attributes'][_0x274cb8][_0x4c8b1c],_0x3bf811);_0x5a81bf[_0x1213('0x10d')](_0x30dae4['model'][_0x274cb8],_0x3bf811,0x0);}}),this[_0x1213('0xc1')][_0x1213('0xd')](this[_0x1213('0x6a')](_0x30dae4[_0x1213('0x18')])),this[_0x1213('0xc2')]=!0x0;})[_0x1213('0x22')](_0x39bad5=>{console[_0x1213('0xbb')](_0x39bad5),this['_cleanUp'](),_0x399a1d&&(this[_0x1213('0xc1')]=_0x399a1d),this[_0x1213('0xc2')]=!0x0;});}[_0x1213('0xc4')](_0x5ada96,_0x35f74d){const _0x5c9f42=this[_0x1213('0x10e')]['createRevision'](_0x5ada96);return _0x5c9f42['on'](_0x1213('0x2f'),(_0x47f0a2,_0x19cb74,_0x567f0e)=>_0x35f74d(_0x19cb74,_0x567f0e,_0x5c9f42)),this[_0x1213('0x10e')][_0x1213('0x119')](_0x5c9f42),_0x5c9f42;}[_0x1213('0x28')](_0x12a638){if(!_0x12a638||_0x12a638[_0x1213('0xf2')])return Promise[_0x1213('0xe4')]();{const _0x4aacbc=this[_0x1213('0x9e')]['config']['get'](_0x1213('0x5c'));return this[_0x1213('0x58')][_0x1213('0x76')]({'channelId':_0x4aacbc,'revisionId':_0x12a638['id']})[_0x1213('0xbe')](_0x1a055d=>{_0x12a638['_update']({'diffData':_0x1a055d['diffData']},!0x0);});}}[_0x1213('0x48')](){this[_0x1213('0x4c')]=null,this[_0x1213('0x57')](),this['_changeView']&&this[_0x1213('0xa1')]['destroy'](),this['_changeView']=null,this[_0x1213('0xba')][_0x1213('0x11a')](),this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x8b')]({'isUndoable':!0x1},_0x31bf26=>{for(const _0x9c12d2 of this[_0x1213('0x9e')]['model'][_0x1213('0xf1')][_0x1213('0x3c')]())_0x31bf26[_0x1213('0x8c')](_0x9c12d2);});}[_0x1213('0x6a')](_0x2fda18){const _0x4e5ae3=[],_0x39b84d=new Map();for(const _0x577a2b of this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0xf1')][_0x1213('0x3c')]()){const _0x5104e2=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xee')](_0x577a2b);if(!_0x5104e2)continue;const _0x4307d7=_0x5104e2[_0x1213('0x80')]()['item'](0x0);_0x4307d7&&(_0x4e5ae3[_0x1213('0x102')](_0x577a2b),_0x39b84d[_0x1213('0x17')](_0x577a2b,_0x4307d7));}return _0x4e5ae3[_0x1213('0x1c')]((_0x2d4976,_0x181a2d)=>{const _0x43d8e8=_0x39b84d[_0x1213('0x21')](_0x2d4976),_0xbb0988=_0x39b84d[_0x1213('0x21')](_0x181a2d);return _0x43d8e8['y']-_0xbb0988['y']||_0x43d8e8['x']-_0xbb0988['x'];}),(_0x2fda18=_0x2fda18[_0x1213('0x56')](_0x3f8020=>_0x4e5ae3[_0x1213('0x65')](_0x3f8020[_0x1213('0xed')])))[_0x1213('0x1c')]((_0x5ba5bb,_0x35b5ef)=>_0x4e5ae3[_0x1213('0xb0')](_0x5ba5bb['rootName'])-_0x4e5ae3['indexOf'](_0x35b5ef['rootName'])),_0x2fda18;}[_0x1213('0xa')](_0x4422f7){const _0x3b895d=Array[_0x1213('0x3e')](_0x4422f7[_0x1213('0xe0')])[_0x1213('0x56')](([_0x4921ba,_0x56b8b6])=>_0x4921ba['startsWith'](_0x1213('0x4'))&&!_0x56b8b6[_0x1213('0x100')]),_0x53f118=Array[_0x1213('0x3e')](this['editor'][_0x1213('0x2a')][_0x1213('0x4b')](_0x4422f7)[_0x1213('0x107')]({'singleCharacters':!0x0}));if(0x0!=_0x3b895d['length'])for(const _0x520438 of _0x53f118){const [_0x2b21f3,_0x5e4e52]=_0x3b895d[0x0],[,_0x2fe327,_0x22bbde]=_0x2b21f3[_0x1213('0xf3')](':');if(_0x5e4e52[_0x1213('0x5')]['isEqual'](_0x520438[_0x1213('0x10c')])&&_0x3b895d[_0x1213('0xf6')](),(_0x520438[_0x1213('0x5e')][_0x1213('0x10a')](_0x5e4e52[_0x1213('0x4d')])||_0x520438[_0x1213('0x5e')][_0x1213('0x2')](_0x5e4e52[_0x1213('0x4d')]))&&(_0x1213('0x77')==_0x2fe327?_0x520438['isAdded']={'userId':_0x22bbde}:_0x1213('0x62')==_0x2fe327&&(_0x520438[_0x1213('0xfd')]={'userId':_0x22bbde})),0x0==_0x3b895d[_0x1213('0x30')])break;}return _0x53f118;}['_refreshStartEndIndex'](_0x5c9573){const _0x1a92f6=new Map();for(let _0x38844a=0x0;_0x38844a<_0x5c9573[_0x1213('0x30')];_0x38844a++)_0x1213('0x15')===_0x5c9573[_0x38844a][_0x1213('0x38')]?(_0x5c9573[_0x38844a]['item'][_0x1213('0xc0')]=_0x38844a,_0x5c9573[_0x38844a][_0x1213('0x49')][_0x1213('0x19')]=_0x38844a):('elementStart'===_0x5c9573[_0x38844a][_0x1213('0x38')]?_0x5c9573[_0x38844a][_0x1213('0x49')][_0x1213('0xc0')]=_0x38844a:_0x1213('0x2d')===_0x5c9573[_0x38844a]['type']&&(_0x5c9573[_0x38844a]['item'][_0x1213('0x19')]=_0x38844a),_0x1a92f6[_0x1213('0x17')](_0x5c9573[_0x38844a]['id'],_0x38844a));for(const _0x2dcbe0 of _0x1a92f6['values']())_0x1213('0x110')===_0x5c9573[_0x2dcbe0][_0x1213('0x38')]?_0x5c9573[_0x2dcbe0]['item']['endIndex']=_0x1a92f6['get'](_0x5c9573[_0x2dcbe0]['pairId']):'elementEnd'===_0x5c9573[_0x2dcbe0][_0x1213('0x38')]&&(_0x5c9573[_0x2dcbe0][_0x1213('0x49')][_0x1213('0xc0')]=_0x1a92f6[_0x1213('0x21')](_0x5c9573[_0x2dcbe0][_0x1213('0x20')]));}[_0x1213('0xdb')](_0x3d3e78){for(let _0x3cb531=0x0;_0x3cb531<_0x3d3e78[_0x1213('0x30')];_0x3cb531++){if('elementStart'===_0x3d3e78[_0x3cb531]['type'])_0x3d3e78[_0x3cb531][_0x1213('0x49')][_0x1213('0xc0')]=_0x3cb531;else{if(_0x1213('0x2d')===_0x3d3e78[_0x3cb531][_0x1213('0x38')]){_0x3d3e78[_0x3cb531][_0x1213('0x49')][_0x1213('0x19')]=_0x3cb531;const _0x3e27d3=_0x3d3e78[_0x3cb531]['item'][_0x1213('0xc0')];_0x3d3e78[_0x3e27d3][_0x1213('0x20')]=_0x3d3e78[_0x3cb531]['id'],_0x3d3e78[_0x3cb531][_0x1213('0x20')]=_0x3d3e78[_0x3e27d3]['id'];}else _0x3d3e78[_0x3cb531]['item'][_0x1213('0xc0')]=_0x3cb531,_0x3d3e78[_0x3cb531][_0x1213('0x49')][_0x1213('0x19')]=_0x3cb531,_0x3d3e78[_0x3cb531][_0x1213('0x20')]=null;}_0x3d3e78[_0x3cb531][_0x1213('0x121')]||(_0x3d3e78[_0x3cb531][_0x1213('0x121')]=[],_0x3d3e78[_0x3cb531][_0x1213('0x10')]=[]);}}['_markInsertions'](_0x5ce1a9,_0x2b778d){const _0x4523a2=_0x5ce1a9['filter'](_0x54130c=>!_0x54130c['isAdded']);for(let _0x49cd76=0x0;_0x49cd76<_0x2b778d[_0x1213('0x30')];_0x49cd76++)_0x2b778d[_0x49cd76][_0x1213('0x1a')]&&(_0x4523a2[_0x49cd76]['isAdded']=_0x2b778d[_0x49cd76][_0x1213('0x1a')]);}['_makeModelFromViewString'](_0x3f594e){const _0x4a3686=JSON[_0x1213('0xa6')](_0x3f594e),_0x165c38=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],_0x1e95df=new _0x1d5f57(_0x165c38,_0x4a3686[_0x1213('0xea')](_0x252da8=>this[_0x1213('0x99')](_0x252da8)));return this['editor'][_0x1213('0xaa')]['toModel'](_0x1e95df);}[_0x1213('0x99')](_0x418f2d){const _0x10810d=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')]['document'];if('string'==typeof _0x418f2d)return new _0x165698(_0x10810d,_0x418f2d);{const _0x7adc32=_0x418f2d[_0x1213('0xf8')][_0x1213('0xea')](_0x83fe39=>this['_getViewObj'](_0x83fe39));return new(tt[_0x418f2d['type']]||_0x376922)(_0x10810d,_0x418f2d[_0x1213('0x53')],_0x418f2d[_0x1213('0xd4')],_0x7adc32);}}[_0x1213('0x5d')](_0x4e4294,_0x5819f0=null){const _0x83ceeb=this[_0x1213('0x10e')][_0x1213('0x76')](_0x4e4294),_0x432e11=_0x5819f0?this[_0x1213('0x10e')]['getRevision'](_0x5819f0):null,_0x2aa6f4=this['_getRevisionsRange'](_0x83ceeb,_0x432e11),_0x5f50ed=_0x2aa6f4[_0x2aa6f4[_0x1213('0x30')]-0x1],_0x5e107d=new Map(),_0x3c5dc8={'model':{},'attributes':{},'changes':[]},_0x3170d9=new Set(),_0x183f9b=new Map();for(let _0x4c632d=_0x2aa6f4[_0x1213('0x30')]-0x1;_0x4c632d>=0x0;_0x4c632d--){const _0x1ab0b1=_0x2aa6f4[_0x4c632d];for(const _0x3b51f8 of Object[_0x1213('0xdd')](_0x1ab0b1[_0x1213('0xf2')]))if(_0x1ab0b1['diffData'][_0x3b51f8][_0x1213('0x5a')]){const _0x6e6bd2=_0x1ab0b1[_0x1213('0xf2')][_0x3b51f8][_0x1213('0x5a')];_0x6e6bd2[_0x1213('0x7c')]?(_0x3170d9['add'](_0x3b51f8),_0x183f9b['has'](_0x3b51f8)&&_0x183f9b[_0x1213('0x21')](_0x3b51f8)[_0x1213('0xbf')]==_0x6e6bd2[_0x1213('0xbf')]?_0x183f9b['delete'](_0x3b51f8):_0x183f9b[_0x1213('0x17')](_0x3b51f8,_0x6e6bd2)):_0x183f9b[_0x1213('0xcd')](_0x3b51f8)?(_0x3170d9[_0x1213('0x60')](_0x3b51f8),_0x183f9b[_0x1213('0x60')](_0x3b51f8)):(_0x3170d9[_0x1213('0x87')](_0x3b51f8),_0x183f9b[_0x1213('0x17')](_0x3b51f8,_0x6e6bd2));}else _0x3170d9[_0x1213('0x87')](_0x3b51f8);}for(const _0x43a38f of _0x3170d9){const _0x16edc7=_0x183f9b[_0x1213('0xcd')](_0x43a38f)&&!_0x183f9b[_0x1213('0x21')](_0x43a38f)[_0x1213('0x7c')];let _0x284643=_0x16edc7?_0x2aa6f4[_0x1213('0x30')]-0x1:0x0;const _0x1080d6=_0x16edc7?-0x1:0x1;for(;_0x2aa6f4[_0x284643];){const _0x35fde1=_0x2aa6f4[_0x284643];if(_0x35fde1[_0x1213('0xf2')][_0x43a38f]){const _0x509ef4=_0x16edc7?_0x35fde1[_0x1213('0xf2')][_0x43a38f][_0x1213('0x101')]:_0x35fde1[_0x1213('0xf2')][_0x43a38f][_0x1213('0x72')];_0x3c5dc8['attributes'][_0x43a38f]=_0x509ef4?_0x5e15b4(_0x509ef4):{};break;}_0x284643+=_0x1080d6;}}for(const _0x1a96b3 of _0x2aa6f4){_0x1a96b3[_0x1213('0x2a')]={};for(const _0x1affad of _0x1a96b3[_0x1213('0x82')])_0x5e107d[_0x1213('0x17')](_0x1affad['id'],_0x1affad);for(const _0x57e5ac of _0x3170d9){const _0xd34724=_0x1a96b3['diffData'][_0x57e5ac]?_0x1a96b3[_0x1213('0xf2')][_0x57e5ac][_0x1213('0x16')]:'[]',_0x473b3c=_0x1a96b3['diffData'][_0x57e5ac]?_0x1a96b3[_0x1213('0xf2')][_0x57e5ac]['deletions']:'[]';_0x1a96b3[_0x1213('0x2a')][_0x57e5ac]={'insertions':this[_0x1213('0x1d')](_0xd34724),'deletions':this[_0x1213('0x1d')](_0x473b3c)};}}for(const _0x399b8f of _0x3170d9){let _0x2e86ae=null,_0x2ef1f9=0x0;const _0x1d722c=new Map(Array[_0x1213('0x3e')](_0x83ceeb[_0x1213('0x2a')][_0x399b8f]['insertions'][_0x1213('0xe0')])['filter'](([_0x53a3ff])=>!_0x53a3ff[_0x1213('0xa9')](_0x1213('0x4'))));let _0x16bac5=0x0;for(const _0x381dfd of _0x2aa6f4){const _0x3e8966=this[_0x1213('0xa')](_0x381dfd['model'][_0x399b8f][_0x1213('0x16')]);_0x381dfd==_0x83ceeb?(_0x2e86ae=_0x3e8966,_0x2ef1f9=_0x2e86ae[_0x1213('0x30')],_0x2e86ae[_0x1213('0xcb')](_0x286fe4=>{_0x286fe4['id']=_0x16bac5++;}),this[_0x1213('0xdb')](_0x2e86ae)):this[_0x1213('0x111')](_0x2e86ae,_0x3e8966);const _0x2768ef=_0x2e86ae[_0x1213('0x56')](_0x35469c=>!_0x35469c[_0x1213('0x1a')])['map'](_0x5d065e=>_0x5d065e['id']);let _0x277253=0x0;const _0x1b69ca=this[_0x1213('0xa')](_0x381dfd['model'][_0x399b8f][_0x1213('0x5b')]);_0x1b69ca['forEach'](_0x313052=>{_0x313052['isRemoved']?_0x313052['id']=_0x2ef1f9++:_0x313052['id']=_0x2768ef[_0x277253++];}),this['_processTape'](_0x1b69ca),this[_0x1213('0x7d')](_0x2e86ae,_0x1213('0x1a')),this[_0x1213('0x7d')](_0x1b69ca,'isRemoved'),_0x381dfd==_0x83ceeb&&this[_0x1213('0x40')](_0x2e86ae,_0x1d722c),_0x2e86ae=this['_joinTapes'](_0x2e86ae,_0x1b69ca),this[_0x1213('0x9c')](_0x2e86ae),this[_0x1213('0x7d')](_0x2e86ae,_0x1213('0xfd'));}_0x2e86ae=_0x2e86ae[_0x1213('0x56')](_0x1039ea=>!(_0x1039ea['isAdded']&&_0x1039ea[_0x1213('0xfd')]));const _0x51ddd5=new Map(_0x5f50ed[_0x1213('0x2a')][_0x399b8f]['deletions'][_0x1213('0xe0')]),_0x3fd12b=new Set(_0x1d722c['keys']());for(const _0x18df3d of _0x51ddd5[_0x1213('0xdd')]())_0x3fd12b[_0x1213('0x60')](_0x18df3d);this[_0x1213('0x54')](_0x2e86ae,_0x3fd12b),this[_0x1213('0xb3')](_0x2e86ae),_0x2e86ae=this[_0x1213('0x11c')](_0x2e86ae),_0x2e86ae=this[_0x1213('0x7')](_0x2e86ae),_0x2e86ae=this[_0x1213('0xac')](_0x2e86ae);const {root:_0x14ad02,changes:_0x34bb61}=this['_makeModelFromTape'](_0x2e86ae,_0x5e107d,_0x399b8f);_0x3c5dc8[_0x1213('0x2a')][_0x399b8f]=_0x14ad02;const _0x58f88f=_0x183f9b['get'](_0x399b8f);if(_0x58f88f){const _0x49fe8c=_0x5e107d[_0x1213('0x21')](_0x58f88f['userId']),_0x335413=new _0x17aba0({'author':_0x49fe8c,'type':_0x58f88f['isAttached']?'add':_0x1213('0xf4'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x399b8f});_0x34bb61[_0x1213('0x9')](_0x335413),_0x3c5dc8[_0x1213('0xd4')][_0x399b8f]['revisionHistoryAttachChange']=_0x335413['id'];}_0x3c5dc8[_0x1213('0x18')]=_0x3c5dc8[_0x1213('0x18')]['concat'](_0x34bb61);}return _0x3c5dc8;}[_0x1213('0x40')](_0x58d1be,_0x50c61d){for(let _0x26913c=0x0;_0x26913c<_0x58d1be[_0x1213('0x30')];_0x26913c++)for(const [_0x2bc055,_0x477b20]of _0x50c61d)_0x477b20[_0x1213('0x4d')][_0x1213('0x10a')](_0x58d1be[_0x26913c][_0x1213('0x5e')])&&_0x58d1be[_0x26913c][_0x1213('0x121')]['push'](_0x2bc055),_0x477b20[_0x1213('0x5')][_0x1213('0x10a')](_0x58d1be[_0x26913c][_0x1213('0x10c')])&&_0x58d1be[_0x26913c]['markersEnd'][_0x1213('0x102')](_0x2bc055);}['_joinTapes'](_0x4cb4cd,_0x32c687){let _0x2249ba=[],_0x249d63=0x0,_0x5f00cf=0x0;for(;_0x249d63<_0x4cb4cd[_0x1213('0x30')]||_0x5f00cf<_0x32c687[_0x1213('0x30')];){const _0x1ed817=_0x4cb4cd[_0x249d63]||{},_0x43f3a1=_0x32c687[_0x5f00cf]||{};if(_0x1ed817['id']==_0x43f3a1['id'])_0x249d63++,_0x5f00cf++,_0x2249ba[_0x1213('0x102')](_0x1ed817);else{if(_0x43f3a1['isRemoved']&&_0x1ed817['isAdded']){const {commonTape:_0x1b8775,iEnd:_0x3f69f4,jEnd:_0x41c60e}=this['_threeWayMerge'](_0x4cb4cd,_0x249d63,_0x32c687,_0x5f00cf);_0x2249ba=_0x2249ba['concat'](_0x1b8775),_0x249d63=_0x3f69f4,_0x5f00cf=_0x41c60e;}else _0x43f3a1[_0x1213('0xfd')]?(_0x5f00cf++,_0x2249ba['push'](_0x43f3a1)):(_0x249d63++,_0x2249ba['push'](_0x1ed817));}}return _0x2249ba;}[_0x1213('0x54')](_0x146b35,_0xd8eac0){const _0x13ee58=[];for(let _0x32011f=0x0;_0x32011f<_0x146b35[_0x1213('0x30')];_0x32011f++){for(let _0x37294e=0x0;_0x37294e<_0x146b35[_0x32011f][_0x1213('0x121')][_0x1213('0x30')];_0x37294e++){const _0x31854d=_0x146b35[_0x32011f][_0x1213('0x121')][_0x37294e];if(!_0xd8eac0['has'](_0x31854d))continue;const {group:_0x3f4930,type:_0x238ee7,authorId:_0x1673f6}=_0x319525(_0x31854d);_0x1213('0x8d')!=_0x3f4930||_0x1213('0x77')!=_0x238ee7&&_0x1213('0x62')!=_0x238ee7||(_0x13ee58['unshift']({'type':_0x238ee7,'name':_0x31854d,'userId':_0x1673f6}),_0x146b35[_0x32011f][_0x1213('0x121')][_0x1213('0x6')](_0x37294e,0x1),_0x37294e--);}_0x9bcc0f(_0x146b35[_0x32011f]);for(let _0x168034=0x0;_0x168034<_0x146b35[_0x32011f][_0x1213('0x10')][_0x1213('0x30')];_0x168034++){const _0x11512c=_0x146b35[_0x32011f][_0x1213('0x10')][_0x168034];if(!_0xd8eac0[_0x1213('0xcd')](_0x11512c))continue;const {group:_0x41a68e,type:_0x188d5a}=_0x319525(_0x11512c);if('revision-suggestion'!=_0x41a68e||_0x1213('0x77')!=_0x188d5a&&_0x1213('0x62')!=_0x188d5a)continue;_0x146b35[_0x32011f][_0x1213('0x10')][_0x1213('0x6')](_0x168034,0x1),_0x168034--;const _0x4a0302=_0x13ee58[_0x1213('0x73')](_0x3f9af1=>_0x3f9af1[_0x1213('0x53')]==_0x11512c);_0x4a0302>-0x1&&_0x13ee58['splice'](_0x4a0302,0x1);}}function _0x319525(_0x3ffbe4){const _0x509f1c=_0x3ffbe4['split'](':');return{'group':_0x509f1c[0x0],'type':_0x509f1c[0x1],'subType':_0x509f1c[_0x1213('0x30')]>=0x5?_0x509f1c[0x2]:null,'id':_0x509f1c[_0x1213('0x30')]<0x5?_0x509f1c[0x2]:_0x509f1c[0x3],'authorId':_0x509f1c[_0x1213('0x30')]<0x5?_0x509f1c[0x3]:_0x509f1c[0x4],'markerCount':0x6==_0x509f1c[_0x1213('0x30')]?_0x509f1c[0x5]:null};}function _0x9bcc0f(_0x1f9a78){for(let _0x247dd5=0x0;_0x247dd5<_0x13ee58[_0x1213('0x30')];_0x247dd5++){if(_0x1f9a78[_0x1213('0x1a')]&&_0x1213('0x77')==_0x13ee58[_0x247dd5][_0x1213('0x38')])return _0x1f9a78[_0x1213('0x3')]=_0x13ee58[_0x247dd5],void delete _0x1f9a78[_0x1213('0x1a')];if(!_0x1f9a78['isAdded']&&!_0x1f9a78['isRemoved']&&_0x1213('0x62')==_0x13ee58[_0x247dd5][_0x1213('0x38')])return void(_0x1f9a78[_0x1213('0x8')]=_0x13ee58[_0x247dd5]);}}}[_0x1213('0x7d')](_0x4f8fb3,_0x3858f7){let _0x51c82f=0x0,_0xdfc5e3=!0x1;const _0x4e5bdb=new Map();for(const _0x407d64 of _0x4f8fb3)_0x407d64[_0x3858f7]?_0xdfc5e3&&(_0x51c82f++,_0xdfc5e3=!0x1):(_0x51c82f++,_0xdfc5e3=!0x0),_0x4e5bdb[_0x1213('0x17')](_0x407d64['id'],_0x51c82f);for(let _0x1f6149=0x0;_0x1f6149<_0x4f8fb3['length'];_0x1f6149++){if(_0x1213('0xfd')==_0x3858f7&&_0x4f8fb3[_0x1f6149]['isAdded']||_0x1213('0x1a')==_0x3858f7&&_0x4f8fb3[_0x1f6149]['isRemoved'])continue;if(_0x1213('0x15')==_0x4f8fb3[_0x1f6149]['type']){_0x4f8fb3[_0x1f6149]['distance']=0x0;continue;}const _0x5b81df=_0x4e5bdb[_0x1213('0x21')](_0x4f8fb3[_0x1f6149][_0x1213('0x20')]),_0x59d25b=_0x4e5bdb['get'](_0x4f8fb3[_0x1f6149]['id']);_0x4f8fb3[_0x1f6149][_0x1213('0x3a')]=_0x5b81df-_0x59d25b;}}['_getRevisionsRange'](_0x42332a,_0x103944,_0xcff62=!0x1){const _0x2b1ed6=[];let _0x47ea0e=this[_0x1213('0x10e')]['getIndex'](_0x42332a),_0x158efe=this['repository'][_0x1213('0xfc')](_0x103944);for(-0x1==_0x158efe&&(_0x158efe=this[_0x1213('0x10e')][_0x1213('0x69')][_0x1213('0x30')],_0xcff62=!0x1);_0x47ea0e<_0x158efe;)_0x2b1ed6['push'](this[_0x1213('0x10e')][_0x1213('0x76')](_0x47ea0e)),_0x47ea0e++;return _0xcff62&&_0x2b1ed6[_0x1213('0x102')](this[_0x1213('0x10e')][_0x1213('0x76')](_0x47ea0e)),_0x2b1ed6;}[_0x1213('0x14')](_0xd73299,_0x2f925d,_0x29b1f4,_0x358617){const _0x55343f=this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x91')];let _0x56fef7=_0x2f925d;for(;_0xd73299[_0x56fef7]&&_0xd73299[_0x56fef7][_0x1213('0x1a')];)_0x56fef7++;let _0x157290=_0x358617;for(;_0x29b1f4[_0x157290]&&_0x29b1f4[_0x157290]['isRemoved'];)_0x157290++;_0x5815a0(_0xd73299,_0x2f925d,_0x56fef7),_0x5815a0(_0x29b1f4,_0x358617,_0x157290);const _0x28951c=_0x29b1f4[_0x1213('0x11b')](_0x358617,_0x157290)[_0x1213('0xa4')](_0xd73299[_0x1213('0x11b')](_0x2f925d,_0x56fef7));return _0x28951c[_0x1213('0x1c')]((_0x905ac3,_0x28fb1c)=>_0x905ac3[_0x1213('0x7f')]!=_0x28fb1c[_0x1213('0x7f')]?_0x905ac3[_0x1213('0x7f')]-_0x28fb1c['side']:_0x905ac3['level']!=_0x28fb1c[_0x1213('0x11')]?_0x905ac3[_0x1213('0x11')]-_0x28fb1c[_0x1213('0x11')]:_0x905ac3['distance']!=_0x28fb1c['distance']?_0x28fb1c[_0x1213('0x3a')]-_0x905ac3[_0x1213('0x3a')]:!!_0x905ac3[_0x1213('0x1a')]!=!!_0x28fb1c['isAdded']?-0x1==_0x905ac3[_0x1213('0x7f')]||0x0==_0x905ac3[_0x1213('0x7f')]?_0x905ac3['isAdded']?-0x1:0x1:_0x905ac3['isAdded']?0x1:-0x1:_0x905ac3[_0x1213('0xd0')]-_0x28fb1c[_0x1213('0xd0')]),{'commonTape':_0x28951c,'iEnd':_0x56fef7,'jEnd':_0x157290};function _0x5815a0(_0x175f7b,_0x3f430b,_0x5b374b){let _0x589de0=-0x1,_0x2b5430=Number['POSITIVE_INFINITY'],_0x7f1dbb=!0x0;for(let _0x1feae1=_0x3f430b;_0x1feae1<_0x5b374b;_0x1feae1++)if(_0x55343f[_0x1213('0x90')](_0x175f7b[_0x1feae1]['item'])||(_0x7f1dbb=!0x1),_0x175f7b[_0x1feae1][_0x1213('0x49')][_0x1213('0xc0')]<_0x3f430b&&(_0x589de0=_0x1feae1),_0x175f7b[_0x1feae1]['item'][_0x1213('0x19')]>=_0x5b374b){_0x2b5430=_0x1feae1;break;}_0x7f1dbb&&(_0x589de0=_0x5b374b-0x1);for(let _0x5c44a1=_0x3f430b;_0x5c44a1<_0x5b374b;_0x5c44a1++)_0x175f7b[_0x5c44a1][_0x1213('0x7f')]=_0x5c44a1<=_0x589de0?-0x1:_0x5c44a1<_0x2b5430?0x0:0x1,_0x175f7b[_0x5c44a1][_0x1213('0xd0')]=_0x5c44a1;let _0x12db43=0x0;for(let _0x270040=_0x3f430b;_0x270040<=_0x589de0;_0x270040++)0x0==_0x175f7b[_0x270040][_0x1213('0x3a')]?_0x175f7b[_0x270040]['level']=_0x12db43:(_0x12db43++,_0x175f7b[_0x270040]['level']=_0x12db43,_0x12db43++);for(let _0x5982ce=_0x3f430b;_0x5982ce<_0x5b374b;_0x5982ce++)0x0==_0x175f7b[_0x5982ce]['side']&&(_0x175f7b[_0x5982ce][_0x1213('0x11')]=_0x12db43);_0x12db43=0x0;for(let _0x39108f=_0x5b374b-0x1;_0x39108f>=_0x2b5430;_0x39108f--)0x0==_0x175f7b[_0x39108f]['distance']?_0x175f7b[_0x39108f]['level']=_0x12db43:(_0x12db43--,_0x175f7b[_0x39108f][_0x1213('0x11')]=_0x12db43,_0x12db43--);}}[_0x1213('0xb3')](_0x534e1c){const _0x77bc85=new Map(),_0x54ac9c=this[_0x1213('0x9e')]['model']['schema'];for(let _0x460168=0x1;_0x460168<_0x534e1c['length'];_0x460168++){let _0x4afdd7,_0x35b030,_0x4e804e;const _0x5de581=_0x534e1c[_0x460168],_0x95fd64=_0x534e1c[_0x460168-0x1];if(_0x1213('0x15')==_0x5de581[_0x1213('0x38')])continue;if(_0x5de581[_0x1213('0x38')]!=_0x95fd64[_0x1213('0x38')])continue;if(!_0x54ac9c[_0x1213('0xb7')](_0x95fd64[_0x1213('0x49')])||_0x54ac9c[_0x1213('0x85')](_0x95fd64[_0x1213('0x49')]))continue;if(!_0x54ac9c[_0x1213('0xb7')](_0x5de581[_0x1213('0x49')])||_0x54ac9c[_0x1213('0x85')](_0x5de581[_0x1213('0x49')]))continue;if((_0x534e1c[_0x460168][_0x1213('0x1a')]||_0x534e1c[_0x460168][_0x1213('0x3')])&&_0x534e1c[_0x460168-0x1][_0x1213('0xfd')])_0x4afdd7=_0x534e1c[_0x460168],_0x35b030=_0x534e1c[_0x460168-0x1],_0x4e804e=_0x460168-0x1;else{if(!_0x534e1c[_0x460168][_0x1213('0xfd')]||!_0x534e1c[_0x460168-0x1][_0x1213('0x1a')]&&!_0x534e1c[_0x460168-0x1]['isAddSuggestion'])continue;_0x4afdd7=_0x534e1c[_0x460168-0x1],_0x35b030=_0x534e1c[_0x460168],_0x4e804e=_0x460168;}const _0x575e67=_0x4afdd7[_0x1213('0x11')]==_0x35b030[_0x1213('0x11')],_0x440b00=Math['abs'](_0x4afdd7[_0x1213('0x11')])<Math[_0x1213('0xb4')](_0x35b030[_0x1213('0x11')])&&0x0==_0x35b030['distance'];(_0x575e67||_0x440b00)&&(_0x77bc85[_0x1213('0x17')](_0x35b030['id'],_0x4afdd7['id']),_0x534e1c[_0x1213('0x6')](_0x4e804e,0x1),_0x460168--,_0x4afdd7[_0x1213('0x1a')]=!0x1);}for(let _0x37bbec=0x0;_0x37bbec<_0x534e1c[_0x1213('0x30')];_0x37bbec++)_0x77bc85['has'](_0x534e1c[_0x37bbec]['pairId'])&&(_0x534e1c[_0x37bbec][_0x1213('0x20')]=_0x77bc85[_0x1213('0x21')](_0x534e1c[_0x37bbec][_0x1213('0x20')]));}['_removeMissingPairs'](_0x3699ff){const _0x5818bb=new Set(_0x3699ff[_0x1213('0xea')](_0x5f1f32=>_0x5f1f32['id']));for(let _0x10aae2=0x0;_0x10aae2<_0x3699ff[_0x1213('0x30')];_0x10aae2++)_0x5818bb[_0x1213('0xcd')](_0x3699ff[_0x10aae2]['pairId'])||0x0==_0x3699ff[_0x10aae2][_0x1213('0x3a')]||(_0x3699ff[_0x10aae2][_0x1213('0xe5')]=!0x0);return _0x3699ff['filter'](_0x2875d7=>!_0x2875d7[_0x1213('0xe5')]);}[_0x1213('0x7')](_0x381393){const _0x2f74f4=new Set();for(let _0x4d3ab3=0x0;_0x4d3ab3<_0x381393['length'];_0x4d3ab3++){if(_0x2f74f4[_0x1213('0xcd')](_0x381393[_0x4d3ab3]['id'])&&_0x381393[_0x4d3ab3][_0x1213('0xfd')]&&(_0x381393[_0x4d3ab3][_0x1213('0xe5')]=!0x0),_0x381393[_0x4d3ab3][_0x1213('0xe5')])continue;if(0x0==_0x381393[_0x4d3ab3][_0x1213('0x3a')])continue;if(_0x1213('0x110')!=_0x381393[_0x4d3ab3]['type'])continue;if(null==_0x381393[_0x4d3ab3][_0x1213('0x20')])continue;let _0x23bfaf=_0x4d3ab3+0x1,_0x4ecdfb=0x0;for(;_0x381393[_0x23bfaf]['id']!=_0x381393[_0x4d3ab3][_0x1213('0x20')];)_0x1213('0x110')==_0x381393[_0x23bfaf]['type']?_0x4ecdfb++:_0x1213('0x2d')==_0x381393[_0x23bfaf][_0x1213('0x38')]&&_0x4ecdfb--,_0x23bfaf++;if(0x0!=_0x4ecdfb){if(_0x381393[_0x4d3ab3][_0x1213('0xfd')])_0x381393[_0x4d3ab3]['isIncorrect']=!0x0;else for(;_0x23bfaf!=_0x4d3ab3;)_0x381393[_0x23bfaf][_0x1213('0xfd')]&&0x0!=_0x381393[_0x23bfaf][_0x1213('0x3a')]&&(_0x381393[_0x23bfaf]['isIncorrect']=!0x0,_0x2f74f4[_0x1213('0x87')](_0x381393[_0x23bfaf][_0x1213('0x20')])),_0x23bfaf--;}}return _0x381393[_0x1213('0x56')](_0xcb2c1a=>!_0xcb2c1a[_0x1213('0xe5')]);}[_0x1213('0xac')](_0x789c67){const _0x34d859=this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x91')];for(let _0x264ee0=0x0;_0x264ee0<_0x789c67[_0x1213('0x30')];_0x264ee0++){if(!(_0x789c67[_0x264ee0]['isAdded']||_0x789c67[_0x264ee0][_0x1213('0x3')]||_0x789c67[_0x264ee0][_0x1213('0xfd')]||_0x789c67[_0x264ee0]['isRemoveSuggestion']))continue;if(0x0==_0x789c67[_0x264ee0][_0x1213('0x3a')])continue;const _0x337209=_0x789c67[_0x264ee0][_0x1213('0x49')];_0x34d859['isBlock'](_0x337209)||_0x34d859['isLimit'](_0x337209)||(_0x789c67[_0x264ee0][_0x1213('0x1a')]&&delete _0x789c67[_0x264ee0][_0x1213('0x1a')],_0x789c67[_0x264ee0][_0x1213('0x3')]&&delete _0x789c67[_0x264ee0][_0x1213('0x3')],_0x789c67[_0x264ee0][_0x1213('0x8')]&&delete _0x789c67[_0x264ee0][_0x1213('0x8')],_0x789c67[_0x264ee0][_0x1213('0xfd')]&&(_0x789c67[_0x264ee0]['isIncorrect']=!0x0));}return _0x789c67['filter'](_0x448e7c=>!_0x448e7c[_0x1213('0xe5')]);}['_makeModelFromTape'](_0x39146a,_0xe92634,_0x3cac77){const _0x217390=new _0x391c97(),_0x547c0b=[],_0x5d7bd8=new Map(),_0x515ba6=this[_0x1213('0x9e')][_0x1213('0x2a')],_0x12b1ca=_0x515ba6[_0x1213('0x91')],_0x37906f=[_0x217390],_0x4c8efd={},_0xe61800={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x33178c=null;const _0x3f2ef2=[0x0];for(let _0x446cb2=0x0;_0x446cb2<_0x39146a[_0x1213('0x30')];_0x446cb2++){let _0x4deeab,_0x4000ae;if(_0x1213('0x110')===_0x39146a[_0x446cb2][_0x1213('0x38')]){_0x4deeab=_0x515ba6[_0x1213('0x1')](_0x217390,_0x3f2ef2);const _0x1a69ae=new _0x6e3159(_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x53')],_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x6d')]());_0x37906f[0x0][_0x1213('0xf7')](_0x1a69ae),_0x3f2ef2['push'](0x0),_0x37906f['unshift'](_0x1a69ae),_0x4000ae=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2),_0x33178c=null;}else{if(_0x1213('0x2d')===_0x39146a[_0x446cb2][_0x1213('0x38')])_0x37906f[_0x1213('0xf6')](),_0x4deeab=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2),_0x3f2ef2[_0x1213('0x23')](),_0x3f2ef2[_0x3f2ef2['length']-0x1]++,_0x4000ae=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2),_0x33178c=null;else{if(_0x4deeab=_0x515ba6[_0x1213('0x1')](_0x217390,_0x3f2ef2),_0x33178c&&_0x231a76(_0x33178c,_0x39146a[_0x446cb2][_0x1213('0x49')]))_0x33178c[_0x1213('0xec')]+=_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0xaa')];else{const _0xd31c16=new _0x5111e1(_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0xaa')],_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x6d')]());_0x37906f[0x0]['_appendChild'](_0xd31c16),_0x33178c=_0xd31c16;}_0x3f2ef2[_0x3f2ef2['length']-0x1]+=_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x6c')],_0x4000ae=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2);}}for(const _0x6c1a18 of _0x39146a[_0x446cb2][_0x1213('0x121')])_0x5d7bd8['set'](_0x6c1a18,{'start':_0x4deeab,'end':null});_0x3ea10f('isRemoveSuggestion',_0x446cb2,_0x4deeab,_0x4000ae),_0x3ea10f(_0x1213('0x3'),_0x446cb2,_0x4deeab,_0x4000ae),_0x3ea10f(_0x1213('0xfd'),_0x446cb2,_0x4deeab,_0x4000ae),_0x3ea10f(_0x1213('0x1a'),_0x446cb2,_0x4deeab,_0x4000ae);for(const _0x36aabd of _0x39146a[_0x446cb2][_0x1213('0x10')]){_0x5d7bd8[_0x1213('0x21')](_0x36aabd)[_0x1213('0x5')]=_0x4000ae;}}for(const [_0x13edce,_0x59b087]of _0x5d7bd8){const _0x336809=this[_0x1213('0x9e')]['model'][_0x1213('0xb9')](_0x59b087[_0x1213('0x4d')],_0x59b087[_0x1213('0x5')]);_0x217390[_0x1213('0xe0')][_0x1213('0x17')](_0x13edce,_0x336809);}return _0x547c0b[_0x1213('0x1c')]((_0x1e2b9e,_0xbc555a)=>{const _0x378599=_0x217390[_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0x1e2b9e['id']),_0x18a689=_0x217390[_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0xbc555a['id']);return _0x378599['start'][_0x1213('0x3b')](_0x18a689[_0x1213('0x4d')])?-0x1:_0x378599[_0x1213('0x4d')]['isAfter'](_0x18a689[_0x1213('0x4d')])?0x1:_0x378599['end']['isBefore'](_0x18a689['end'])?-0x1:_0x378599[_0x1213('0x5')][_0x1213('0x2')](_0x18a689[_0x1213('0x5')])?0x1:_0x1213('0x87')===_0x1e2b9e[_0x1213('0x38')]?-0x1:0x1;}),{'root':_0x217390,'changes':_0x547c0b};function _0x3ea10f(_0x56dd20,_0xaf2ab2,_0x462868,_0x1c58e2){const _0x504c85=!!_0x39146a[_0xaf2ab2][_0x56dd20],_0x3deffa=_0x504c85?_0x39146a[_0xaf2ab2][_0x56dd20][_0x1213('0xbf')]:null,_0x537381=_0xaf2ab2===_0x39146a[_0x1213('0x30')]-0x1,_0x500722=_0xe61800[_0x56dd20][0x0],_0x10c3bc=_0x12b1ca['isObject'](_0x39146a[_0xaf2ab2]['item']);!_0x4c8efd[_0x56dd20]&&_0x504c85?_0x4c8efd[_0x56dd20]={'start':_0x462868,'tapeItem':_0x39146a[_0xaf2ab2],'userId':_0x3deffa,'type':_0x56dd20}:_0x4c8efd[_0x56dd20]&&!_0x504c85?(_0x4c8efd[_0x56dd20]['end']=_0x462868,_0x1ad824(_0x4c8efd[_0x56dd20]),_0x4c8efd[_0x56dd20]=null):_0x4c8efd[_0x56dd20]&&_0x504c85&&_0x4c8efd[_0x56dd20]['userId']!==_0x3deffa&&(_0x4c8efd[_0x56dd20]['end']=_0x462868,_0x500722&&_0x500722[_0x1213('0xbf')]===_0x4c8efd[_0x56dd20]['userId']||_0x1ad824(_0x4c8efd[_0x56dd20]),_0x4c8efd[_0x56dd20]={'start':_0x462868,'tapeItem':_0x39146a[_0xaf2ab2],'userId':_0x3deffa,'type':_0x56dd20}),_0x4c8efd[_0x56dd20]&&_0x10c3bc&&('elementStart'!==_0x39146a[_0xaf2ab2][_0x1213('0x38')]||_0x500722&&_0x500722['userId']===_0x3deffa||_0xe61800[_0x56dd20][_0x1213('0x9')]({'userId':_0x3deffa,'object':_0x39146a[_0xaf2ab2][_0x1213('0x49')],'change':_0x4c8efd[_0x56dd20]}),_0x1213('0x2d')===_0x39146a[_0xaf2ab2][_0x1213('0x38')]&&_0x500722&&_0x500722['object']===_0x39146a[_0xaf2ab2][_0x1213('0x49')]&&(_0xe61800[_0x56dd20]['shift'](),_0x4c8efd[_0x56dd20]=_0x500722['change'])),_0x4c8efd[_0x56dd20]&&_0x537381&&(_0x4c8efd[_0x56dd20][_0x1213('0x5')]=_0x1c58e2,_0x1ad824(_0x4c8efd[_0x56dd20]),_0x4c8efd[_0x56dd20]=null);}function _0x1ad824({start:_0x4aae69,end:_0x4fab1d,tapeItem:_0x36da0f,userId:_0x40ae13,type:_0x150390}){const _0x1c6aff=_0x36da0f[_0x1213('0x49')],_0x28bb3d=_0x515ba6[_0x1213('0x91')][_0x1213('0xb7')](_0x1c6aff)&&!_0x515ba6[_0x1213('0x91')][_0x1213('0x85')](_0x1c6aff),_0x112130=_0x4aae69['nodeAfter']==_0x4fab1d['parent']&&_0x4fab1d[_0x1213('0xa7')];if(_0x28bb3d&&_0x112130)return;const _0x116e28=_0x515ba6[_0x1213('0xb9')](_0x4aae69,_0x4fab1d),_0x4e8c2b=_0xe92634[_0x1213('0x21')](_0x40ae13),_0x8467ab=new _0x17aba0({'author':_0x4e8c2b,'type':_0x1213('0x1a')==_0x150390||_0x1213('0x3')==_0x150390?_0x1213('0x87'):_0x1213('0xf4'),'data':{'isSuggestion':'isAddSuggestion'==_0x150390||_0x1213('0x8')==_0x150390},'createdAt':new Date(),'rootName':_0x3cac77});_0x547c0b[_0x1213('0x102')](_0x8467ab),_0x217390[_0x1213('0xe0')][_0x1213('0x17')](_0x1213('0x4')+_0x8467ab['id'],_0x116e28);}function _0x231a76(_0x40b509,_0x195a0d){const _0x363937=_0x40b509[_0x1213('0x6d')](),_0x14d9c9=_0x195a0d['getAttributes']();for(const _0x2d62a3 of _0x363937){if(_0x2d62a3[0x1]!==_0x195a0d[_0x1213('0x105')](_0x2d62a3[0x0]))return!0x1;_0x14d9c9[_0x1213('0x59')]();}return _0x14d9c9[_0x1213('0x59')]()[_0x1213('0x6b')];}}[_0x1213('0x97')](){this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x7a')]({'view':_0x1213('0xc8')}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0xc9'))['markerToHighlight']({'model':_0x1213('0xc8'),'view':_0x276b60=>{const _0xdbd96c=_0x276b60[_0x1213('0x3d')]['split'](':')[0x1],_0x466016=this[_0x1213('0x1e')](_0xdbd96c);if(!_0x466016)return null;const _0x4ee597='add'==_0x466016['type']?_0x1213('0x77'):_0x1213('0x62'),_0x49ce11=[_0x1213('0xd7'),_0x1213('0xd2')+_0x4ee597];return _0x466016['data'][_0x1213('0xbd')]&&_0x49ce11['push']('ck-suggestion-marker-'+_0x4ee597+_0x1213('0x39')),this[_0x1213('0x4c')]==_0x466016&&_0x49ce11[_0x1213('0x102')]('ck-suggestion-marker--active'),{'classes':_0x49ce11,'attributes':{'data-change-id':_0xdbd96c}};}}),this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0x52'))['add'](_0x4faf58=>{_0x4faf58['on'](_0x1213('0x86'),(_0x38ec84,_0xc983d8,_0x1e4b06)=>{const _0x9824cb=_0xc983d8[_0x1213('0x117')][_0x1213('0x89')](0x0);if(!_0x9824cb||!_0x9824cb['is']('element',_0x1213('0x120')))return;if(!_0x1e4b06[_0x1213('0xa0')][_0x1213('0x6f')](_0x9824cb,{'attributes':[_0x1213('0x1b'),_0x1213('0xe8')]}))return;const _0x2375bd=_0xc983d8[_0x1213('0x2e')][_0x1213('0x4d')][_0x1213('0xab')];_0x1e4b06[_0x1213('0xcf')]['setAttribute'](_0x1213('0x1b'),_0x9824cb[_0x1213('0x105')](_0x1213('0x1b')),_0x2375bd),_0x1e4b06[_0x1213('0xcf')][_0x1213('0x47')](_0x1213('0xe8'),_0x9824cb[_0x1213('0x105')](_0x1213('0xe8')),_0x2375bd);},{'priority':_0x1213('0x81')});}),this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x87')](_0x3e329b=>{_0x3e329b['on']('element',(_0x1cee03,_0x105345,_0x4b1421)=>{if(!_0x4b1421[_0x1213('0xa0')][_0x1213('0x6f')](_0x105345[_0x1213('0x117')],{'attributes':[_0x1213('0x1b'),_0x1213('0xe8')]}))return;if(_0x105345[_0x1213('0x2e')]['isCollapsed'])return;const _0x22e863=_0x105345[_0x1213('0x2e')][_0x1213('0x4d')][_0x1213('0xab')];_0x22e863['hasAttribute'](_0x1213('0x1b'))||_0x22e863[_0x1213('0x42')](_0x1213('0xb2'))||(_0x4b1421[_0x1213('0xcf')][_0x1213('0x47')](_0x1213('0x1b'),_0x105345[_0x1213('0x117')]['getAttribute'](_0x1213('0x1b')),_0x22e863),_0x4b1421['writer']['setAttribute'](_0x1213('0xe8'),_0x105345[_0x1213('0x117')][_0x1213('0x105')](_0x1213('0xe8')),_0x22e863));},{'priority':_0x1213('0x81')});}),this['editor']['conversion'][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x3f')]({'view':{'name':_0x1213('0xf0'),'attributes':{'vid':!0x0}},'model':{'key':_0x1213('0xb2'),'value':_0x2b762b=>_0x2b762b['getAttribute'](_0x1213('0xb2'))}}),this[_0x1213('0x9e')]['model']['schema']['on'](_0x1213('0x44'),(_0x4c9c3a,[,_0x3a79fa])=>{['vid_start',_0x1213('0xe8'),_0x1213('0xb2')][_0x1213('0x65')](_0x3a79fa)&&(_0x4c9c3a[_0x1213('0x114')]=!0x0,_0x4c9c3a[_0x1213('0x6e')]());},{'priority':_0x1213('0x43')}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0xd8'))[_0x1213('0x87')](_0x82a8d8=>{_0x82a8d8['on'](_0x1213('0xcc'),(_0x8b8a9c,_0x3cdb7d,_0x4f2350)=>{if('\x20'!=_0x3cdb7d[_0x1213('0x49')][_0x1213('0xaa')]||_0x3cdb7d[_0x1213('0x49')][_0x1213('0xda')][_0x1213('0x24')]>0x1)return;if(!_0x4f2350[_0x1213('0xa0')][_0x1213('0x6f')](_0x3cdb7d[_0x1213('0x49')],_0x8b8a9c[_0x1213('0x53')]))return;const _0x2a747d=_0x4f2350[_0x1213('0xcf')],_0x1012aa=_0x4f2350[_0x1213('0xaf')]['toViewRange'](_0x3cdb7d[_0x1213('0x122')]);_0x2a747d[_0x1213('0xf9')](_0x1012aa,_0x2a747d[_0x1213('0x8a')]('span'));});}),this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0xd8'))[_0x1213('0x98')]({'model':'revision'}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0xe3'),function(_0x568a17){const _0x2e7efa=_0x568a17[_0x1213('0xca')][_0x1213('0x21')](_0x1213('0xe'));return(_0x37fd2d,_0x54c51c,_0x389001)=>{const _0x4798cf=_0x54c51c[_0x1213('0x3d')]['split'](':')[0x1],_0x238400=_0x2e7efa[_0x1213('0x1e')](_0x4798cf);if(!_0x238400)return null;const _0x411db2='add'==_0x238400['type']?'split':_0x1213('0x106');if(!_0x389001['consumable']['test'](_0x54c51c[_0x1213('0xeb')],_0x37fd2d['name']))return;const _0x542c8a=_0x54c51c[_0x1213('0xeb')][_0x1213('0x107')](),_0x576929=_0x54c51c[_0x1213('0xeb')]['start'],_0x44ed2c=_0x568a17[_0x1213('0x2a')]['schema'];let _0x582a63=null,_0x5ddac9=null,_0x5a3fb8=!0x1,_0x2bb342=!0x1;for(const _0x38b2c4 of _0x542c8a){const _0x57decf=_0x38b2c4[_0x1213('0x49')];_0x5a3fb8=_0x5a3fb8||_0x44ed2c[_0x1213('0x11d')](_0x57decf);const _0x8cecf2=_0x389001[_0x1213('0xaf')][_0x1213('0x1f')](_0x57decf);if(_0x8cecf2&&_0x8cecf2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x38b2c4[_0x1213('0x38')]&&(_0x44ed2c['isBlock'](_0x57decf)&&!_0x44ed2c[_0x1213('0x85')](_0x57decf)&&(_0x57decf[_0x1213('0x112')]||_0x576929[_0x1213('0xd9')]?_0x582a63&&_0x582a63['parent']==_0x57decf||(_0x582a63=_0x57decf,_0xa5d28e(_0x38b2c4[_0x1213('0x5e')]),_0x2bb342=!0x0):_0x5ddac9=_0x5ddac9||_0x38b2c4['previousPosition']));}function _0xa5d28e(_0x3b351f){const _0x2639a7=_0x389001[_0x1213('0xcf')]['createUIElement'](_0x1213('0xf0'),{'class':_0x1213('0xd2')+_0x411db2}),_0x2c3fe4=_0x389001['mapper'][_0x1213('0x70')](_0x3b351f);_0x238400[_0x1213('0xaa')]['isSuggestion']&&_0x389001[_0x1213('0xcf')][_0x1213('0xfe')](_0x1213('0xd2')+_0x411db2+_0x1213('0x39'),_0x2639a7),_0x2e7efa['activeChange']==_0x238400&&_0x389001[_0x1213('0xcf')][_0x1213('0xfe')]('ck-suggestion-marker--active',_0x2639a7),_0x389001[_0x1213('0xcf')][_0x1213('0x10d')](_0x2c3fe4,_0x2639a7),_0x389001['mapper'][_0x1213('0xe6')](_0x2639a7,_0x54c51c[_0x1213('0x3d')]);}_0x5a3fb8||_0x2bb342||!_0x5ddac9||_0xa5d28e(_0x5ddac9);};}(this[_0x1213('0x9e')]),{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on']('removeMarker:revision',(_0x3a03ea,_0x2a892e,_0x19e51d)=>{const _0x966af8=_0x19e51d[_0x1213('0xaf')][_0x1213('0xfa')](_0x2a892e[_0x1213('0x3d')]);if(_0x966af8)for(const _0x6d7d47 of _0x966af8)(_0x6d7d47[_0x1213('0x37')](_0x1213('0xb8'))||_0x6d7d47[_0x1213('0x37')](_0x1213('0x95')))&&(_0x19e51d[_0x1213('0xaf')][_0x1213('0x35')](_0x6d7d47,_0x2a892e[_0x1213('0x3d')]),_0x19e51d[_0x1213('0xcf')][_0x1213('0xf4')](_0x6d7d47));},{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0xe3'),(_0x26c92f,_0x4d6da0,_0x24d549)=>{const _0xa3f006=_0x4d6da0[_0x1213('0x3d')][_0x1213('0xf3')](':')[0x1],_0x573506=this[_0x1213('0x1e')](_0xa3f006);if(!_0x573506)return null;const _0x4aa94d=_0x1213('0x87')==_0x573506[_0x1213('0x38')]?_0x1213('0xf3'):'merge';if(_0x24d549[_0x1213('0xa0')]['test'](_0x4d6da0[_0x1213('0xeb')],_0x26c92f['name']))for(const _0x5f0d71 of _0x4d6da0['markerRange']['getItems']()){if(!_0x5f0d71['is'](_0x1213('0x2b'),_0x1213('0xdc')))continue;const _0x10552b=_0x24d549[_0x1213('0xcf')]['createUIElement'](_0x1213('0xf0'),{'class':_0x1213('0xd2')+_0x4aa94d}),_0x2179fc=_0x24d549['mapper'][_0x1213('0x70')](this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x11f')](_0x5f0d71));_0x573506[_0x1213('0xaa')][_0x1213('0xbd')]&&_0x24d549[_0x1213('0xcf')][_0x1213('0xfe')]('ck-suggestion-marker-'+_0x4aa94d+_0x1213('0x39'),_0x10552b),this[_0x1213('0x4c')]==_0x573506&&_0x24d549[_0x1213('0xcf')][_0x1213('0xfe')]('ck-suggestion-marker--active',_0x10552b),_0x24d549[_0x1213('0xcf')][_0x1213('0x10d')](_0x2179fc,_0x10552b),_0x24d549[_0x1213('0xaf')][_0x1213('0xe6')](_0x10552b,_0x4d6da0[_0x1213('0x3d')]);}},{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x2a')]['document']['on']('change',()=>{this[_0x1213('0x9e')][_0x1213('0x7b')]['view']['change'](_0x47db86=>{for(const _0x22233e of this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0xf1')]['getRootNames']()){const _0x163d2d=this['editor'][_0x1213('0x2a')]['document'][_0x1213('0x115')](_0x22233e),_0xfd5747=this[_0x1213('0x9e')][_0x1213('0x7b')]['view']['document'][_0x1213('0x115')](_0x22233e);if(_0xfd5747){const _0x55592b=_0x163d2d['getAttribute']('revisionHistoryAttachChange');if(_0x47db86['removeAttribute'](_0x1213('0x78'),_0xfd5747),_0x47db86[_0x1213('0x55')](_0x1213('0x94'),_0xfd5747),_0x47db86[_0x1213('0x55')]('ck-revision-history-root-remove',_0xfd5747),_0x47db86[_0x1213('0x55')](_0x1213('0x13'),_0xfd5747),_0x55592b){const _0x31f0cf=this[_0x1213('0x1e')](_0x55592b);if(!_0x31f0cf)return null;_0x47db86[_0x1213('0x47')](_0x1213('0x78'),_0x55592b,_0xfd5747),_0x47db86[_0x1213('0xfe')](_0x1213('0x84')+_0x31f0cf[_0x1213('0x38')],_0xfd5747),this[_0x1213('0x4c')]==_0x31f0cf&&_0x47db86[_0x1213('0xfe')](_0x1213('0x13'),_0xfd5747);}}}});}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')]('upcast')['dataToMarker']({'view':_0x1213('0x116'),'model':_0xcd452a=>_0x1213('0xd6')+_0xcd452a,'converterPriority':_0x1213('0x43')}),this[_0x1213('0x9e')]['conversion'][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x7a')]({'view':_0x1213('0xc6'),'model':_0x2b01a3=>_0x1213('0xb1')+_0x2b01a3,'converterPriority':'highest'}),this[_0x1213('0x9e')][_0x1213('0xe1')]['for'](_0x1213('0xd8'))[_0x1213('0x98')]({'model':'revision-suggestion','view':_0x406929=>({'name':_0x1213('0xdf')+_0x406929,'group':_0x1213('0x8d')}),'converterPriority':'highest'}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')]('editingDowncast')[_0x1213('0x104')]({'model':_0x1213('0x8d'),'view':_0x3e6253=>{const _0x235ed4=_0x3e6253[_0x1213('0x3d')][_0x1213('0xf3')](':')[0x1];return _0x1213('0x77')!=_0x235ed4&&_0x1213('0x62')!=_0x235ed4?null:{'classes':[_0x1213('0x4f'),_0x1213('0x64')+_0x235ed4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this[_0x1213('0x9e')],'merge'),{'priority':'high'}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0x71'),et(this[_0x1213('0x9e')],_0x1213('0xf3')),{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0xef'),(_0x2978f0,_0x46d830,_0x130243)=>{const _0x129454=_0x130243[_0x1213('0xaf')][_0x1213('0xfa')](_0x46d830[_0x1213('0x3d')]);if(_0x129454)for(const _0x400267 of _0x129454)_0x400267['is'](_0x1213('0x33'))&&(_0x130243['mapper'][_0x1213('0x35')](_0x400267,_0x46d830['markerName']),_0x130243[_0x1213('0xcf')][_0x1213('0xf4')](_0x400267));},{'priority':_0x1213('0xd1')});}[_0x1213('0x1e')](_0x355d2f){return this['_changeIdToChange'][_0x1213('0x21')](_0x355d2f);}[_0x1213('0x7e')](_0x323a5b){return this[_0x1213('0xa1')]&&this[_0x1213('0xa1')][_0x1213('0xc7')](),this[_0x1213('0xa1')]=new _0x34ac4c(this[_0x1213('0x9e')][_0x1213('0xad')],_0x323a5b),this[_0x1213('0xa1')];}[_0x1213('0x63')](){this[_0x1213('0x9e')][_0x1213('0x2a')]['document'][_0x1213('0x92')]['observeMarkers'](_0x1213('0xc8')),this['on'](_0x1213('0x45'),(_0x141391,_0x156295,_0x141767,_0x598dfb)=>{_0x598dfb&&this[_0x1213('0xb6')][_0x1213('0xf4')](_0x598dfb),_0x141767&&(this[_0x1213('0xb6')][_0x1213('0x87')]({'view':_0x141767,'stackId':_0x1213('0x68'),'position':{'target':()=>{const _0xf9bdd1=this[_0x1213('0x9e')]['editing'],_0x3c2113=this['_getChangeFromId'](_0x141767['changeId']);let _0x3aa45a;if(_0x3c2113['data']['isOnRoot']){const _0x9ed602=_0xf9bdd1[_0x1213('0x61')][_0x1213('0xee')](_0x3c2113[_0x1213('0xed')]);_0x3aa45a=Array[_0x1213('0x3e')](_0x9ed602[_0x1213('0x80')]());}else{const _0x1c2a8c=this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0x141767[_0x1213('0xf5')]);_0x3aa45a=Array[_0x1213('0x3e')](_0xf9bdd1[_0x1213('0xaf')][_0x1213('0xfa')](_0x1c2a8c[_0x1213('0x53')]))[_0x1213('0xea')](_0x153449=>_0xf9bdd1[_0x1213('0x61')]['domConverter']['mapViewToDom'](_0x153449))['map'](_0x2f2e55=>Array[_0x1213('0x3e')](_0x2f2e55[_0x1213('0x80')]()))[_0x1213('0x118')]();}if(!this[_0x1213('0x96')])return _0x3aa45a[0x0];return _0x3aa45a[_0x1213('0xf')](_0x43714b=>_0x43714b[_0x1213('0x108')]-0x3<=this[_0x1213('0x96')]['y']&&_0x43714b['bottom']+0x3>=this[_0x1213('0x96')]['y']&&_0x43714b[_0x1213('0x31')]-0x3<=this[_0x1213('0x96')]['x']&&_0x43714b[_0x1213('0xe9')]+0x3>=this[_0x1213('0x96')]['x'])||_0x3aa45a[0x0];}}}),this[_0x1213('0xb6')][_0x1213('0x0')](_0x1213('0x68')));}),this['on'](_0x1213('0x51'),(_0x1cd9d2,_0x3072e5,_0x4a07a9,_0x3a235e)=>{this[_0x1213('0x103')]=_0x4a07a9?this[_0x1213('0x7e')](_0x4a07a9):null,this['editor'][_0x1213('0x2a')][_0x1213('0x26')](()=>{const _0x3a1380=this[_0x1213('0x9e')][_0x1213('0x7b')];_0x3a235e&&(_0x3a235e[_0x1213('0xaa')][_0x1213('0x32')]?_0x3a1380['view'][_0x1213('0x26')](_0x4f771a=>{_0x4f771a[_0x1213('0x55')](_0x1213('0x13'),_0x3a1380[_0x1213('0x61')][_0x1213('0xf1')]['getRoot'](_0x3a235e[_0x1213('0xed')]));}):_0x3a1380[_0x1213('0xa8')](_0x1213('0x4')+_0x3a235e['id'])),_0x4a07a9&&(_0x4a07a9[_0x1213('0xaa')]['isOnRoot']?_0x3a1380[_0x1213('0x61')][_0x1213('0x26')](_0x306637=>{_0x306637['addClass'](_0x1213('0x13'),_0x3a1380[_0x1213('0x61')][_0x1213('0xf1')]['getRoot'](_0x4a07a9[_0x1213('0xed')]));}):_0x3a1380[_0x1213('0xa8')]('revision:'+_0x4a07a9['id']));});}),this[_0x1213('0xd3')](this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],'mouseover',(_0x438a64,_0x3acc01)=>{if(this[_0x1213('0x4c')])return;const _0x5cfec2=this[_0x1213('0xc3')](_0x3acc01[_0x1213('0xde')]),_0x3f9043=this[_0x1213('0xba')][_0x1213('0x21')](_0x5cfec2);_0x3f9043?(this[_0x1213('0x96')]={'x':_0x3acc01['domEvent']['x'],'y':_0x3acc01['domEvent']['y']},this[_0x1213('0x103')]=this[_0x1213('0x7e')](_0x3f9043)):(this[_0x1213('0x96')]=null,this[_0x1213('0x103')]=null);}),this['listenTo'](this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],_0x1213('0xbc'),(_0x27e46a,_0x3cdda5)=>{const _0xe56dd1=this[_0x1213('0xc3')](_0x3cdda5[_0x1213('0xde')]),_0x167e7d=this[_0x1213('0xba')][_0x1213('0x21')](_0xe56dd1);_0x167e7d?(this[_0x1213('0x96')]={'x':_0x3cdda5[_0x1213('0xc')]['x'],'y':_0x3cdda5[_0x1213('0xc')]['y']},_0x167e7d===this['activeChange']?this['_balloon'][_0x1213('0x66')]():this[_0x1213('0x4c')]=_0x167e7d):(this['_activeViewTarget']=null,this[_0x1213('0x4c')]=null);});}[_0x1213('0xc3')](_0x14f6ab){do{const _0x267fd9=_0x14f6ab[_0x1213('0x105')](_0x1213('0x78'));if(_0x267fd9)return _0x267fd9;_0x14f6ab=_0x14f6ab[_0x1213('0xda')];}while(_0x14f6ab);return null;}[_0x1213('0x57')](){this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x26')](_0xe9f1fb=>{for(const _0x15b85c of this['editor'][_0x1213('0x2a')]['markers'])_0xe9f1fb[_0x1213('0xb')](_0x15b85c);});}}function et(_0x22111a,_0x34fd20){return(_0x5df15a,_0x252562,_0x5407d9)=>{if(!_0x5407d9['consumable'][_0x1213('0x109')](_0x252562[_0x1213('0xeb')],_0x5df15a[_0x1213('0x53')]))return;const _0x481cb0=_0x252562[_0x1213('0xeb')][_0x1213('0x107')](),_0x46767c=_0x252562['markerRange'][_0x1213('0x4d')],_0x1dbbb6=_0x22111a['model'][_0x1213('0x91')];let _0x2dfe37=null,_0x887d55=null,_0x257f21=!0x1,_0x241d7b=!0x1;for(const _0x335d22 of _0x481cb0){const _0x373b28=_0x335d22[_0x1213('0x49')];_0x257f21=_0x257f21||_0x1dbbb6[_0x1213('0x11d')](_0x373b28);const _0x3a114f=_0x5407d9[_0x1213('0xaf')][_0x1213('0x1f')](_0x373b28);if(_0x3a114f&&_0x3a114f['getCustomProperty'](_0x1213('0x8f')))return;_0x1213('0x2d')==_0x335d22[_0x1213('0x38')]&&(_0x1dbbb6[_0x1213('0xb7')](_0x373b28)&&!_0x1dbbb6['isLimit'](_0x373b28)&&(_0x373b28['nextSibling']||_0x46767c[_0x1213('0xd9')]?_0x2dfe37&&_0x2dfe37[_0x1213('0xda')]==_0x373b28||(_0x2dfe37=_0x373b28,_0x10cbb2(_0x335d22[_0x1213('0x5e')]),_0x241d7b=!0x0):_0x887d55=_0x887d55||_0x335d22['previousPosition']));}function _0x10cbb2(_0x11ec5a){const _0x137b6b=_0x5407d9['mapper'][_0x1213('0x70')](_0x11ec5a),_0x4a59a9=_0x5407d9[_0x1213('0xcf')][_0x1213('0xa5')](_0x1213('0xf0'),{'class':_0x1213('0x64')+_0x34fd20});_0x5407d9[_0x1213('0xcf')][_0x1213('0x10d')](_0x137b6b,_0x4a59a9),_0x5407d9[_0x1213('0xaf')][_0x1213('0xe6')](_0x4a59a9,_0x252562[_0x1213('0x3d')]);}_0x257f21||_0x241d7b||!_0x887d55||_0x10cbb2(_0x887d55);};}export class RestoreRevisionCommand extends _0x76009b{constructor(_0x242d7e){super(_0x242d7e);const _0x9cf5fd=_0x242d7e[_0x1213('0xca')][_0x1213('0x21')](d);this[_0x1213('0x25')]=!0x1,this[_0x1213('0xd3')](_0x9cf5fd,_0x1213('0xa2'),()=>this[_0x1213('0x2c')]()),this[_0x1213('0xd3')](_0x9cf5fd,'change:isEnabled',()=>this[_0x1213('0x2c')]());}[_0x1213('0x50')](){const _0x5bbc0d=this[_0x1213('0x9e')],_0x320532=_0x5bbc0d[_0x1213('0xca')]['get'](d),_0x200140=_0x320532[_0x1213('0xc2')]?_0x320532['diff']['newRevisionId']:null;_0x5bbc0d[_0x1213('0xfb')][_0x1213('0x21')](_0x1213('0x9b'))['restoreRevisionCallback'](_0x200140);}[_0x1213('0x2c')](){const {isReady:_0x47e2d5,isEnabled:_0xf83eb2}=this[_0x1213('0x9e')][_0x1213('0xca')][_0x1213('0x21')](d);this['isEnabled']=_0x47e2d5&&_0xf83eb2;}}export class ShowChangeCommand extends _0x76009b{constructor(_0x19098a,{direction:_0x3decd5}){super(_0x19098a);const _0x477a80=_0x19098a['plugins'][_0x1213('0x21')](d);this[_0x1213('0x25')]=!0x1,this[_0x1213('0x27')]='forward'===_0x3decd5?0x1:-0x1,this[_0x1213('0xd3')](_0x477a80,_0x1213('0xa2'),()=>this[_0x1213('0x2c')]()),this[_0x1213('0xd3')](_0x477a80,_0x1213('0x41'),()=>this[_0x1213('0x2c')]()),this[_0x1213('0xd3')](_0x477a80,_0x1213('0x51'),()=>this['refresh']());}[_0x1213('0x50')](){const _0x119df5=this[_0x1213('0x9e')],_0x5342af=_0x119df5[_0x1213('0xca')][_0x1213('0x21')](d),{isNavigationMode:_0x23a814,currentChangeNumber:_0x16f2d0}=_0x5342af;let _0x4723bc;if(_0x5342af[_0x1213('0x4c')]=_0x23a814?_0x5342af[_0x1213('0xc1')][_0x1213('0x18')][_0x1213('0x21')](_0x16f2d0+this[_0x1213('0x27')]):_0x5342af[_0x1213('0xc1')][_0x1213('0x18')]['first'],_0x5342af[_0x1213('0x4c')]['data'][_0x1213('0x32')])_0x4723bc=_0x119df5[_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xee')](_0x5342af['activeChange'][_0x1213('0xed')]);else{const _0x52f5e2=_0x119df5['model'][_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0x5342af[_0x1213('0x4c')]['id']);_0x4723bc=_0xb2fd99(_0x119df5['editing'],_0x52f5e2);}_0x1162e9({'target':_0x4723bc,'viewportOffset':0x28});}[_0x1213('0x2c')](){const {isNavigationMode:_0x3a6dab,currentChangeNumber:_0x14c000,numberOfChanges:_0x20028c,isReady:_0x549c32,isEnabled:_0x110211}=this[_0x1213('0x9e')][_0x1213('0xca')][_0x1213('0x21')](d);this['isEnabled']=!!(_0x110211&&_0x549c32&&_0x20028c)&&(!_0x3a6dab||(0x1===this[_0x1213('0x27')]?_0x14c000<_0x20028c-0x1:_0x14c000>0x0));}}
23
+ const _0x2fb1=['default','newRevisionId','conversion','_revisions','addMarker:revision-suggestion:deletion','isEnabled','compare','deletion','find','unshift','low','_getChangeFromId','isBlock','wrap','addRevisionData','concat','ck-suggestion-preview-marker','_fixObsoleteTags','repository','isNavigationMode','maxOffset','isRemoved','addRevision','_getDiff','first','init','isContent','activeView','removeMarker:revision','roots','getClientRects','ck-revision-history-root-','splice','userId','attributes','isReady','mouseover','range','adapter','_makeModelFromViewString','oldRevisionId','attribute:vid','softBreak','markerName','getChild','revisionHistoryAttachChange','vid','upcast','activeChange','_threeWayMerge','attributesAfter','editingDowncast','isCollapsed','editor','processor','from','delete','change:numberOfChanges','getIndex','consumable','highest','uiElement','toViewPosition','markerNameToElements','startsWith','nodeAfter','consume','locale','all','change:activeView','model','_balloon','mousedown','clear','removeClass','next','shift','name','_step','ck-suggestion-marker-merge','includes','document','pairId','string','end','_appendChild','elementStart','vid_start','commands','showStack','selection','destroy','filter','bindElementToMarker','execute','_removeUnsupportedChanges','ck-editor__editable__overlay','getRevisionData','isObject','dataToMarker','writer','addMarker:revision-suggestion:insertion','revision-viewer','createPositionFromPath','changes','useFillerType','forward','change:isEnabled','isAddSuggestion','RevisionsRepository','has','_data','code','insertions','requires','_setDistance','modelRange','_makeModelFromTape','revision-suggestion','level','_activeViewTarget','bind','elementToAttribute','revision:','_cleanUp','keys','downcastDispatcher','enableReadOnlyMode','ck-suggestion-preview-marker-','suggestion:','getDomRoot','POSITIVE_INFINITY','isInline','distance','ck-suggestion-marker-','collaboration.channelId','observeMarkers','getRootNames','isLimit','dataDowncast','mapper','push','ck-revision-history-root-add','_refreshStartEndIndex','_markSuggestions','_joinTapes','attachChange','children','isIncorrect','revision-suggestion:','plugins','_update','refresh','nextSibling','test','createRange','addClass','backward','sort','_removeRevisionMarkers','rootName','change:isReady','removeAttribute','get','nextPosition','isBefore','bottom','domEvent','affectsData','_processTape','getAttribute','add','left','start','_markMarkers','enqueueChange','createRevision','ck-revision-history-root-remove','span','changeId','done','_cleanMarkers','revisionHistoryLabel','isEqual','resolve','data-change-id','markerRange','restoreRevision','text','then','split','getItems','getRevision','isAtEnd','target','getAttributes','_findChangeIdFromDomTarget','getCustomProperty','indexOf','toViewRange','addHighlight','RevisionViewer','isAfter','getWalker','editing','toModel','_markMismatchedRemovedTags','_getViewObj','markersEnd','numberOfChanges','createUIElement','isSuggestion','deletions','change:activeChange','-new','_getRevisionsRange','WidgetToolbarRepository','schema','for','endIndex','_getViewForChange','high','hasClass','element','remove','stop','index','showNextChange','authors','parse','isRemoveSuggestion','_changeView','removeMarker:revision-suggestion','setAttribute','markerToHighlight','startIndex','currentChangeNumber','ck-suggestion-marker--active','item','loadRevisionData','createRangeIn','isOnRoot','set','toViewElement','listenTo','type','_removeMissingPairs','abs','insert','_markInsertions','addMarker:revision','revisionHistory','viewItem','isAtStart','vid_end','insertion','_changeIdToChange','config','createAttributeElement','_sortAndFilterDiffChanges','comment','ck-revision-history-root--active','unbindElementFromMarkerName','getRoot','error','view','isAdded','map','reconvertMarker','diffData','parent','checkAttribute','side','length','elementEnd','_initInteractions','merge','pluginName','change','pop','previousPosition','markers','revision','slice','revision-start','right','data','isAttached','attributesBefore','diff','_setChanges','forEach','markersStart'];(function(_0x4b9377,_0x2fb1d5){const _0x186ab0=function(_0x59b1e2){while(--_0x59b1e2){_0x4b9377['push'](_0x4b9377['shift']());}};_0x186ab0(++_0x2fb1d5);}(_0x2fb1,0x77));const _0x186a=function(_0x4b9377,_0x2fb1d5){_0x4b9377=_0x4b9377-0x0;let _0x186ab0=_0x2fb1[_0x4b9377];return _0x186ab0;};import{Plugin as _0x55afca,Command as _0x49ffb8}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x225745}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1acc54}from'ckeditor5/src/ui';import{DocumentFragment as _0xbee08,Element as _0x5e7e65,Text as _0x57c2d3,ViewDocumentFragment as _0x4ec7a3,ViewText as _0x3a18cf,ViewElement as _0x4247fb,ViewContainerElement as _0x52cfd0,ViewAttributeElement as _0x2bbe70,ViewEmptyElement as _0x507be4,ViewRawElement as _0x4ba731,ViewUIElement as _0x579a40}from'ckeditor5/src/engine';import{Users as _0x27136f,getMarkerDomElement as _0x20bc80}from'ckeditor5-collaboration/src/collaboration-core';import _0x514d1f from'./ui/revisionviewer/changedetailsview';import _0x113ba8 from'./revisionsrepository';import _0x3c4202 from'./changeitem';import{default as _0x209175}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x40b5ea}from'lodash-es';const tt={'c':_0x52cfd0,'a':_0x2bbe70,'e':_0x507be4,'r':_0x4ba731,'u':_0x579a40};export default class d extends _0x55afca{static get[_0x186a('0x9e')](){return _0x186a('0x52');}static get[_0x186a('0x120')](){return[_0x27136f,_0x1acc54,_0x113ba8];}constructor(_0xa9bfa8){super(_0xa9bfa8),this[_0x186a('0xc0')]=this[_0x186a('0xe3')]['plugins'][_0x186a('0x2c')](_0x186a('0x11b')),this[_0x186a('0x7b')](_0x186a('0xde'),null),this[_0x186a('0x7b')](_0x186a('0xc9'),null),this[_0x186a('0x1')]=null,this[_0x186a('0x7b')](_0x186a('0xaa'),null),this[_0x186a('0x7b')](_0x186a('0xd1'),!0x1),this[_0x186a('0x7b')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1e3c31,_0x4ea8ff,_0x370549)=>{this[_0x186a('0xde')]=null,this['activeView']=null,this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0x9f')](_0x2dda9e=>{for(const _0x3a9174 of this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')][_0x186a('0xcb')])_0x370549?_0x2dda9e[_0x186a('0xf8')](_0x186a('0x10e'),_0x3a9174):_0x2dda9e[_0x186a('0x25')](_0x186a('0x10e'),_0x3a9174);});}),this[_0x186a('0x2')](_0x186a('0xc1'))['to'](this,_0x186a('0xde'),_0xf33359=>null!==_0xf33359),this[_0x186a('0x2')](_0x186a('0x75'))['to'](this,_0x186a('0xd1'),this,_0x186a('0xaa'),this,_0x186a('0xde'),(_0x5d430f,_0x2ff8ec,_0x35f08c)=>_0x5d430f&&_0x35f08c?_0x2ff8ec['changes'][_0x186a('0xe8')](_0x35f08c):0x0),this[_0x186a('0x2')](_0x186a('0x5a'))['to'](this,_0x186a('0xd1'),this,'diff',(_0x4936cd,_0x1b3686)=>_0x4936cd?_0x1b3686[_0x186a('0x116')]['length']:0x0),this[_0x186a('0x70')]=null,this[_0x186a('0x89')]=new Map(),this['adapter']=null,this[_0x186a('0xf5')]=this[_0x186a('0xe3')][_0x186a('0x1f')]['get'](_0x1acc54);}[_0x186a('0xc7')](){const _0x17774e=this[_0x186a('0xe3')],_0x57c3bb=new ShowChangeCommand(_0x17774e,{'direction':_0x186a('0x26')}),_0xdb091b=new ShowChangeCommand(_0x17774e,{'direction':_0x186a('0x118')});(_0x17774e[_0x186a('0x106')][_0x186a('0x34')]('showPreviousChange',_0x57c3bb),_0x17774e[_0x186a('0x106')]['add'](_0x186a('0x6c'),_0xdb091b),_0x17774e[_0x186a('0x106')][_0x186a('0x34')](_0x186a('0x44'),new RestoreRevisionCommand(_0x17774e)),this['on'](_0x186a('0xe7'),()=>{_0x57c3bb['refresh'](),_0xdb091b[_0x186a('0x21')]();}),this['_setConversion'](),this[_0x186a('0x9c')](),_0x17774e[_0x186a('0x8')](_0x186a('0x114')),_0x17774e[_0x186a('0x1f')][_0x186a('0x11c')](_0x186a('0x61')))&&_0x17774e[_0x186a('0x1f')][_0x186a('0x2c')](_0x186a('0x61'))['forceDisabled'](_0x186a('0x114'));}async[_0x186a('0x10f')](_0x5635b9){await this[_0x186a('0x78')](_0x5635b9);const _0x2b330d={};for(const _0xdeca6d in _0x5635b9[_0x186a('0x96')]){if(_0x5635b9[_0x186a('0x96')][_0xdeca6d][_0x186a('0x1b')]&&!_0x5635b9[_0x186a('0x96')][_0xdeca6d]['attachChange'][_0x186a('0xa8')])continue;const _0x5c53f0=this[_0x186a('0x28')](JSON['parse'](_0x5635b9[_0x186a('0x96')][_0xdeca6d]['insertions'])),_0x359f21=this[_0x186a('0xe3')]['editing'][_0x186a('0x92')][_0x186a('0xff')],_0x3010bc=new _0x4ec7a3(_0x359f21,_0x5c53f0[_0x186a('0x94')](_0x5e44eb=>this['_getViewObj'](_0x5e44eb)));this[_0x186a('0xe3')]['data']['processor']['useFillerType']('marked'),_0x2b330d[_0xdeca6d]=this['editor'][_0x186a('0xa7')][_0x186a('0xe4')]['toData'](_0x3010bc),this['editor']['data'][_0x186a('0xe4')][_0x186a('0x117')](_0x186a('0xae'));}return _0x2b330d;}async['getRevisionRootsAttributes'](_0x309e56){await this[_0x186a('0x78')](_0x309e56);const _0x1e991e={};for(const _0x2995dd in _0x309e56[_0x186a('0x96')])_0x309e56[_0x186a('0x96')][_0x2995dd]['attachChange']&&!_0x309e56[_0x186a('0x96')][_0x2995dd][_0x186a('0x1b')][_0x186a('0xa8')]||(_0x1e991e[_0x2995dd]=_0x309e56[_0x186a('0x96')][_0x2995dd][_0x186a('0xe0')]||{});return _0x1e991e;}[_0x186a('0x28')](_0x24b548){return(_0x24b548=_0x24b548['filter'](_0x5d235f=>!_0x5d235f['name']||_0x186a('0xa5')!==_0x5d235f['name']&&'revision-end'!==_0x5d235f[_0x186a('0xfb')]))[_0x186a('0xac')](_0x3a4882=>{_0x186a('0x101')!=typeof _0x3a4882&&(_0x3a4882[_0x186a('0x1c')]=this[_0x186a('0x28')](_0x3a4882['children']),_0x3a4882[_0x186a('0xd0')]=_0x3a4882[_0x186a('0xd0')]['filter'](_0x4de715=>!_0x4de715[0x0][_0x186a('0xee')]('data-revision-')));}),_0x24b548;}async[_0x186a('0xb4')](_0x191a92,_0x5e8443,_0x32a694=!0x1){if(!this['isEnabled'])return;const _0x4eaaf9=this[_0x186a('0xaa')],_0x55fbc6=this[_0x186a('0xc0')],_0x54e34a=_0x186a('0x101')==typeof _0x191a92?_0x55fbc6[_0x186a('0x49')](_0x191a92):_0x191a92,_0x5378e5=_0x186a('0x101')==typeof _0x5e8443?_0x55fbc6[_0x186a('0x49')](_0x5e8443):_0x5e8443,_0x32d8bb=_0x54e34a['id'],_0x12f825=_0x5378e5?_0x5378e5['id']:null;if(!_0x32a694&&this[_0x186a('0xaa')]&&this[_0x186a('0xaa')][_0x186a('0xaf')]===_0x32d8bb&&this[_0x186a('0xaa')][_0x186a('0xd6')]===_0x12f825)return Promise[_0x186a('0x41')]();this['isReady']=!0x1,this[_0x186a('0xc9')]=null,this[_0x186a('0xde')]=null,this[_0x186a('0xaa')]=new _0x209175(_0x32d8bb,_0x12f825);const _0x3bd632=this['_getRevisionsRange'](_0x54e34a,_0x5378e5,!0x0)[_0x186a('0x94')](_0x155f0b=>this[_0x186a('0x78')](_0x155f0b));return _0x3bd632[_0x186a('0x16')](new Promise(_0x3c6fec=>{setTimeout(_0x3c6fec,0x14);})),Promise[_0x186a('0xf2')](_0x3bd632)[_0x186a('0x46')](()=>{if(!this[_0x186a('0xb3')])return;this[_0x186a('0x5')]();const _0x3416ee=this[_0x186a('0xc5')](_0x32d8bb,_0x12f825);for(const _0x33d429 of _0x3416ee[_0x186a('0x116')])this[_0x186a('0x89')][_0x186a('0x7b')](_0x33d429['id'],_0x33d429);this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x38')]({'isUndoable':!0x1},_0x458c5f=>{for(const _0x4e792d of this[_0x186a('0xe3')][_0x186a('0xf4')]['document']['getRootNames']())_0x458c5f['detachRoot'](_0x4e792d);for(const _0x2d430a of Object[_0x186a('0x6')](_0x3416ee[_0x186a('0xf4')])){const _0x2dd5b1=_0x458c5f['addRoot'](_0x2d430a);for(const _0x2958b3 of Object[_0x186a('0x6')](_0x3416ee[_0x186a('0xd0')][_0x2d430a]))_0x458c5f[_0x186a('0x72')](_0x2958b3,_0x3416ee[_0x186a('0xd0')][_0x2d430a][_0x2958b3],_0x2dd5b1);_0x458c5f[_0x186a('0x81')](_0x3416ee[_0x186a('0xf4')][_0x2d430a],_0x2dd5b1,0x0);}}),this[_0x186a('0xaa')][_0x186a('0xab')](this[_0x186a('0x8c')](_0x3416ee[_0x186a('0x116')])),this[_0x186a('0xd1')]=!0x0;})['catch'](_0x2899b6=>{console[_0x186a('0x91')](_0x2899b6),this[_0x186a('0x5')](),_0x4eaaf9&&(this[_0x186a('0xaa')]=_0x4eaaf9),this[_0x186a('0xd1')]=!0x0;});}[_0x186a('0xbc')](_0x174310,_0x2fe01e){const _0x549da4=this[_0x186a('0xc0')][_0x186a('0x39')](_0x174310);return _0x549da4['on'](_0x186a('0x20'),(_0x4a8171,_0x4b22fa,_0x2e7fc8)=>_0x2fe01e(_0x4b22fa,_0x2e7fc8,_0x549da4)),this[_0x186a('0xc0')][_0x186a('0xc4')](_0x549da4),_0x549da4;}[_0x186a('0x78')](_0x5bcb6a){if(!_0x5bcb6a||_0x5bcb6a[_0x186a('0x96')])return Promise['resolve']();{const _0x5b6814=this['editor'][_0x186a('0x8a')][_0x186a('0x2c')](_0x186a('0x10'));return this[_0x186a('0xd4')][_0x186a('0x49')]({'channelId':_0x5b6814,'revisionId':_0x5bcb6a['id']})[_0x186a('0x46')](_0x45d14d=>{_0x5bcb6a['_update']({'diffData':_0x45d14d[_0x186a('0x96')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x186a('0x70')][_0x186a('0x109')](),this[_0x186a('0x70')]=null,this['_changeIdToChange'][_0x186a('0xf7')](),this[_0x186a('0xe3')]['model'][_0x186a('0x38')]({'isUndoable':!0x1},_0x27ff19=>{for(const _0x53e404 of this['editor'][_0x186a('0xf4')][_0x186a('0xff')][_0x186a('0x12')]())_0x27ff19['detachRoot'](_0x53e404);});}[_0x186a('0x8c')](_0x58b0c1){const _0x2efeed=[],_0x2b5986=new Map();for(const _0x370208 of this[_0x186a('0xe3')][_0x186a('0xf4')]['document']['getRootNames']()){const _0x119b9e=this['editor'][_0x186a('0x55')]['view']['getDomRoot'](_0x370208);if(!_0x119b9e)continue;const _0x4a1382=_0x119b9e[_0x186a('0xcc')]()['item'](0x0);_0x4a1382&&(_0x2efeed[_0x186a('0x16')](_0x370208),_0x2b5986[_0x186a('0x7b')](_0x370208,_0x4a1382));}return _0x2efeed[_0x186a('0x27')]((_0x3e762e,_0x58c7c8)=>{const _0x861cb3=_0x2b5986[_0x186a('0x2c')](_0x3e762e),_0x532624=_0x2b5986[_0x186a('0x2c')](_0x58c7c8);return _0x861cb3['y']-_0x532624['y']||_0x861cb3['x']-_0x532624['x'];}),(_0x58b0c1=_0x58b0c1[_0x186a('0x10a')](_0x4412c7=>_0x2efeed[_0x186a('0xfe')](_0x4412c7[_0x186a('0x29')])))[_0x186a('0x27')]((_0x550ef0,_0x2a2be7)=>_0x2efeed[_0x186a('0x4f')](_0x550ef0[_0x186a('0x29')])-_0x2efeed[_0x186a('0x4f')](_0x2a2be7[_0x186a('0x29')])),_0x58b0c1;}['_makeTape'](_0x390337){const _0x5dde86=Array[_0x186a('0xe5')](_0x390337['markers'])[_0x186a('0x10a')](([_0x5cf352,_0x1ff598])=>_0x5cf352[_0x186a('0xee')]('revision:')&&!_0x1ff598['isCollapsed']),_0x2f8dd1=Array['from'](this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x79')](_0x390337)[_0x186a('0x54')]({'singleCharacters':!0x0}));if(0x0!=_0x5dde86[_0x186a('0x9a')])for(const _0x4004df of _0x2f8dd1){const [_0x152b1e,_0xb76f57]=_0x5dde86[0x0],[,_0x2acd22,_0x570467]=_0x152b1e[_0x186a('0x47')](':');if(_0xb76f57[_0x186a('0x102')]['isEqual'](_0x4004df[_0x186a('0x2d')])&&_0x5dde86['shift'](),(_0x4004df['previousPosition'][_0x186a('0x40')](_0xb76f57[_0x186a('0x36')])||_0x4004df[_0x186a('0xa1')]['isAfter'](_0xb76f57[_0x186a('0x36')]))&&(_0x186a('0x88')==_0x2acd22?_0x4004df[_0x186a('0x93')]={'userId':_0x570467}:_0x186a('0xb5')==_0x2acd22&&(_0x4004df['isRemoved']={'userId':_0x570467})),0x0==_0x5dde86[_0x186a('0x9a')])break;}return _0x2f8dd1;}[_0x186a('0x18')](_0x4c931d){const _0x94add2=new Map();for(let _0x349e62=0x0;_0x349e62<_0x4c931d['length'];_0x349e62++)_0x186a('0x45')===_0x4c931d[_0x349e62][_0x186a('0x7e')]?(_0x4c931d[_0x349e62][_0x186a('0x77')][_0x186a('0x74')]=_0x349e62,_0x4c931d[_0x349e62]['item']['endIndex']=_0x349e62):(_0x186a('0x104')===_0x4c931d[_0x349e62]['type']?_0x4c931d[_0x349e62][_0x186a('0x77')][_0x186a('0x74')]=_0x349e62:_0x186a('0x9b')===_0x4c931d[_0x349e62][_0x186a('0x7e')]&&(_0x4c931d[_0x349e62][_0x186a('0x77')]['endIndex']=_0x349e62),_0x94add2['set'](_0x4c931d[_0x349e62]['id'],_0x349e62));for(const _0x15d34f of _0x94add2['values']())'elementStart'===_0x4c931d[_0x15d34f]['type']?_0x4c931d[_0x15d34f][_0x186a('0x77')][_0x186a('0x64')]=_0x94add2[_0x186a('0x2c')](_0x4c931d[_0x15d34f]['pairId']):_0x186a('0x9b')===_0x4c931d[_0x15d34f][_0x186a('0x7e')]&&(_0x4c931d[_0x15d34f][_0x186a('0x77')][_0x186a('0x74')]=_0x94add2[_0x186a('0x2c')](_0x4c931d[_0x15d34f]['pairId']));}['_processTape'](_0x1a8f3c){for(let _0x3623d3=0x0;_0x3623d3<_0x1a8f3c['length'];_0x3623d3++){if('elementStart'===_0x1a8f3c[_0x3623d3][_0x186a('0x7e')])_0x1a8f3c[_0x3623d3][_0x186a('0x77')][_0x186a('0x74')]=_0x3623d3;else{if(_0x186a('0x9b')===_0x1a8f3c[_0x3623d3]['type']){_0x1a8f3c[_0x3623d3][_0x186a('0x77')][_0x186a('0x64')]=_0x3623d3;const _0x142500=_0x1a8f3c[_0x3623d3][_0x186a('0x77')][_0x186a('0x74')];_0x1a8f3c[_0x142500][_0x186a('0x100')]=_0x1a8f3c[_0x3623d3]['id'],_0x1a8f3c[_0x3623d3][_0x186a('0x100')]=_0x1a8f3c[_0x142500]['id'];}else _0x1a8f3c[_0x3623d3]['item']['startIndex']=_0x3623d3,_0x1a8f3c[_0x3623d3][_0x186a('0x77')]['endIndex']=_0x3623d3,_0x1a8f3c[_0x3623d3][_0x186a('0x100')]=null;}_0x1a8f3c[_0x3623d3][_0x186a('0xad')]||(_0x1a8f3c[_0x3623d3][_0x186a('0xad')]=[],_0x1a8f3c[_0x3623d3][_0x186a('0x59')]=[]);}}[_0x186a('0x82')](_0x13fcf6,_0x50ac76){const _0x13e04a=_0x13fcf6[_0x186a('0x10a')](_0x47f865=>!_0x47f865[_0x186a('0x93')]);for(let _0x100137=0x0;_0x100137<_0x50ac76['length'];_0x100137++)_0x50ac76[_0x100137][_0x186a('0x93')]&&(_0x13e04a[_0x100137][_0x186a('0x93')]=_0x50ac76[_0x100137]['isAdded']);}['_makeModelFromViewString'](_0x274887){const _0x280f90=JSON[_0x186a('0x6e')](_0x274887),_0x27a95e=this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')],_0x427074=new _0x4ec7a3(_0x27a95e,_0x280f90[_0x186a('0x94')](_0x2b8b72=>this['_getViewObj'](_0x2b8b72)));return this[_0x186a('0xe3')]['data'][_0x186a('0x56')](_0x427074);}[_0x186a('0x58')](_0x1a240e){const _0x1361ff=this['editor'][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')];if('string'==typeof _0x1a240e)return new _0x3a18cf(_0x1361ff,_0x1a240e);{const _0x54ee0c=_0x1a240e[_0x186a('0x1c')][_0x186a('0x94')](_0x50a585=>this[_0x186a('0x58')](_0x50a585));return new(tt[_0x1a240e['type']]||_0x4247fb)(_0x1361ff,_0x1a240e[_0x186a('0xfb')],_0x1a240e[_0x186a('0xd0')],_0x54ee0c);}}[_0x186a('0xc5')](_0x35441f,_0x5502ff=null){const _0x48299b=this['repository'][_0x186a('0x49')](_0x35441f),_0x3509e9=_0x5502ff?this['repository']['getRevision'](_0x5502ff):null,_0x421705=this[_0x186a('0x60')](_0x48299b,_0x3509e9),_0x52814f=_0x421705[_0x421705['length']-0x1],_0x5f4fad=new Map(),_0xe026f5={'model':{},'attributes':{},'changes':[]},_0x3ce817=new Set(),_0x2b0014=new Map();for(let _0x3946c1=_0x421705[_0x186a('0x9a')]-0x1;_0x3946c1>=0x0;_0x3946c1--){const _0x582d7c=_0x421705[_0x3946c1];for(const _0x5efdb8 of Object[_0x186a('0x6')](_0x582d7c[_0x186a('0x96')]))if(_0x582d7c['diffData'][_0x5efdb8][_0x186a('0x1b')]){const _0x26ba13=_0x582d7c['diffData'][_0x5efdb8][_0x186a('0x1b')];_0x26ba13[_0x186a('0xa8')]?(_0x3ce817[_0x186a('0x34')](_0x5efdb8),_0x2b0014['has'](_0x5efdb8)&&_0x2b0014['get'](_0x5efdb8)[_0x186a('0xcf')]==_0x26ba13[_0x186a('0xcf')]?_0x2b0014['delete'](_0x5efdb8):_0x2b0014[_0x186a('0x7b')](_0x5efdb8,_0x26ba13)):_0x2b0014[_0x186a('0x11c')](_0x5efdb8)?(_0x3ce817[_0x186a('0xe6')](_0x5efdb8),_0x2b0014[_0x186a('0xe6')](_0x5efdb8)):(_0x3ce817[_0x186a('0x34')](_0x5efdb8),_0x2b0014[_0x186a('0x7b')](_0x5efdb8,_0x26ba13));}else _0x3ce817[_0x186a('0x34')](_0x5efdb8);}for(const _0x1d2d10 of _0x3ce817){const _0x3d55e7=_0x2b0014[_0x186a('0x11c')](_0x1d2d10)&&!_0x2b0014[_0x186a('0x2c')](_0x1d2d10)['isAttached'];let _0x3fc5d2=_0x3d55e7?_0x421705[_0x186a('0x9a')]-0x1:0x0;const _0x27093c=_0x3d55e7?-0x1:0x1;for(;_0x421705[_0x3fc5d2];){const _0x4f94cf=_0x421705[_0x3fc5d2];if(_0x4f94cf['diffData'][_0x1d2d10]){const _0xd08410=_0x3d55e7?_0x4f94cf[_0x186a('0x96')][_0x1d2d10][_0x186a('0xa9')]:_0x4f94cf[_0x186a('0x96')][_0x1d2d10][_0x186a('0xe0')];_0xe026f5['attributes'][_0x1d2d10]=_0xd08410?_0x40b5ea(_0xd08410):{};break;}_0x3fc5d2+=_0x27093c;}}for(const _0x584584 of _0x421705){_0x584584['model']={};for(const _0x51e47f of _0x584584[_0x186a('0x6d')])_0x5f4fad[_0x186a('0x7b')](_0x51e47f['id'],_0x51e47f);for(const _0x446c4a of _0x3ce817){const _0x5c8ba6=_0x584584['diffData'][_0x446c4a]?_0x584584[_0x186a('0x96')][_0x446c4a][_0x186a('0x11f')]:'[]',_0x14fdd9=_0x584584[_0x186a('0x96')][_0x446c4a]?_0x584584[_0x186a('0x96')][_0x446c4a][_0x186a('0x5d')]:'[]';_0x584584[_0x186a('0xf4')][_0x446c4a]={'insertions':this[_0x186a('0xd5')](_0x5c8ba6),'deletions':this[_0x186a('0xd5')](_0x14fdd9)};}}for(const _0x3dc270 of _0x3ce817){let _0x4adc77=null,_0x5d00b0=0x0;const _0x1cce75=new Map(Array['from'](_0x48299b['model'][_0x3dc270][_0x186a('0x11f')][_0x186a('0xa2')])['filter'](([_0x397f03])=>!_0x397f03['startsWith'](_0x186a('0x4'))));let _0x50d1bd=0x0;for(const _0x399350 of _0x421705){const _0x171624=this['_makeTape'](_0x399350[_0x186a('0xf4')][_0x3dc270][_0x186a('0x11f')]);_0x399350==_0x48299b?(_0x4adc77=_0x171624,_0x5d00b0=_0x4adc77['length'],_0x4adc77['forEach'](_0x4b55ac=>{_0x4b55ac['id']=_0x50d1bd++;}),this[_0x186a('0x32')](_0x4adc77)):this[_0x186a('0x82')](_0x4adc77,_0x171624);const _0x3b8087=_0x4adc77[_0x186a('0x10a')](_0x65c7be=>!_0x65c7be[_0x186a('0x93')])[_0x186a('0x94')](_0x162b73=>_0x162b73['id']);let _0x862a6=0x0;const _0x24934b=this['_makeTape'](_0x399350[_0x186a('0xf4')][_0x3dc270][_0x186a('0x5d')]);_0x24934b[_0x186a('0xac')](_0x488da6=>{_0x488da6[_0x186a('0xc3')]?_0x488da6['id']=_0x5d00b0++:_0x488da6['id']=_0x3b8087[_0x862a6++];}),this[_0x186a('0x32')](_0x24934b),this[_0x186a('0x121')](_0x4adc77,_0x186a('0x93')),this[_0x186a('0x121')](_0x24934b,_0x186a('0xc3')),_0x399350==_0x48299b&&this[_0x186a('0x37')](_0x4adc77,_0x1cce75),_0x4adc77=this[_0x186a('0x1a')](_0x4adc77,_0x24934b),this['_refreshStartEndIndex'](_0x4adc77),this['_setDistance'](_0x4adc77,_0x186a('0xc3'));}_0x4adc77=_0x4adc77[_0x186a('0x10a')](_0x344633=>!(_0x344633['isAdded']&&_0x344633[_0x186a('0xc3')]));const _0x3040c0=new Map(_0x52814f['model'][_0x3dc270][_0x186a('0x5d')]['markers']),_0x2b0394=new Set(_0x1cce75['keys']());for(const _0x1464fb of _0x3040c0['keys']())_0x2b0394['delete'](_0x1464fb);this['_markSuggestions'](_0x4adc77,_0x2b0394),this['_fixObsoleteTags'](_0x4adc77),_0x4adc77=this[_0x186a('0x7f')](_0x4adc77),_0x4adc77=this[_0x186a('0x57')](_0x4adc77),_0x4adc77=this[_0x186a('0x10d')](_0x4adc77);const {root:_0x2a8105,changes:_0x3f003d}=this[_0x186a('0x123')](_0x4adc77,_0x5f4fad,_0x3dc270);_0xe026f5[_0x186a('0xf4')][_0x3dc270]=_0x2a8105;const _0xed9b1c=_0x2b0014['get'](_0x3dc270);if(_0xed9b1c){const _0xd64cc3=_0x5f4fad[_0x186a('0x2c')](_0xed9b1c[_0x186a('0xcf')]),_0x135764=new _0x3c4202({'author':_0xd64cc3,'type':_0xed9b1c['isAttached']?_0x186a('0x34'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3dc270});_0x3f003d[_0x186a('0xb7')](_0x135764),_0xe026f5['attributes'][_0x3dc270][_0x186a('0xdb')]=_0x135764['id'];}_0xe026f5['changes']=_0xe026f5[_0x186a('0x116')][_0x186a('0xbd')](_0x3f003d);}return _0xe026f5;}[_0x186a('0x37')](_0x40d656,_0x3f053f){for(let _0x744bde=0x0;_0x744bde<_0x40d656[_0x186a('0x9a')];_0x744bde++)for(const [_0x5c483d,_0x56aa9b]of _0x3f053f)_0x56aa9b[_0x186a('0x36')][_0x186a('0x40')](_0x40d656[_0x744bde][_0x186a('0xa1')])&&_0x40d656[_0x744bde][_0x186a('0xad')]['push'](_0x5c483d),_0x56aa9b[_0x186a('0x102')][_0x186a('0x40')](_0x40d656[_0x744bde][_0x186a('0x2d')])&&_0x40d656[_0x744bde][_0x186a('0x59')][_0x186a('0x16')](_0x5c483d);}['_joinTapes'](_0x21bd76,_0x47e454){let _0x8b5886=[],_0x3c3384=0x0,_0x2dd731=0x0;for(;_0x3c3384<_0x21bd76[_0x186a('0x9a')]||_0x2dd731<_0x47e454[_0x186a('0x9a')];){const _0x1efa21=_0x21bd76[_0x3c3384]||{},_0x35e5a7=_0x47e454[_0x2dd731]||{};if(_0x1efa21['id']==_0x35e5a7['id'])_0x3c3384++,_0x2dd731++,_0x8b5886[_0x186a('0x16')](_0x1efa21);else{if(_0x35e5a7['isRemoved']&&_0x1efa21[_0x186a('0x93')]){const {commonTape:_0x3e984c,iEnd:_0x5006ae,jEnd:_0xae4988}=this[_0x186a('0xdf')](_0x21bd76,_0x3c3384,_0x47e454,_0x2dd731);_0x8b5886=_0x8b5886['concat'](_0x3e984c),_0x3c3384=_0x5006ae,_0x2dd731=_0xae4988;}else _0x35e5a7[_0x186a('0xc3')]?(_0x2dd731++,_0x8b5886[_0x186a('0x16')](_0x35e5a7)):(_0x3c3384++,_0x8b5886[_0x186a('0x16')](_0x1efa21));}}return _0x8b5886;}[_0x186a('0x19')](_0x51c147,_0x4ca741){const _0x210516=[];for(let _0x2cdb3c=0x0;_0x2cdb3c<_0x51c147[_0x186a('0x9a')];_0x2cdb3c++){for(let _0xb5b8cb=0x0;_0xb5b8cb<_0x51c147[_0x2cdb3c]['markersStart'][_0x186a('0x9a')];_0xb5b8cb++){const _0x3b683e=_0x51c147[_0x2cdb3c][_0x186a('0xad')][_0xb5b8cb];if(!_0x4ca741[_0x186a('0x11c')](_0x3b683e))continue;const {group:_0x29f426,type:_0x1d0983,authorId:_0x56ca01}=_0x3c7cdd(_0x3b683e);'revision-suggestion'!=_0x29f426||_0x186a('0x88')!=_0x1d0983&&'deletion'!=_0x1d0983||(_0x210516[_0x186a('0xb7')]({'type':_0x1d0983,'name':_0x3b683e,'userId':_0x56ca01}),_0x51c147[_0x2cdb3c][_0x186a('0xad')][_0x186a('0xce')](_0xb5b8cb,0x1),_0xb5b8cb--);}_0x41ea84(_0x51c147[_0x2cdb3c]);for(let _0x48b282=0x0;_0x48b282<_0x51c147[_0x2cdb3c][_0x186a('0x59')][_0x186a('0x9a')];_0x48b282++){const _0x40b3e8=_0x51c147[_0x2cdb3c][_0x186a('0x59')][_0x48b282];if(!_0x4ca741[_0x186a('0x11c')](_0x40b3e8))continue;const {group:_0x5a3f64,type:_0x45b82b}=_0x3c7cdd(_0x40b3e8);if(_0x186a('0x124')!=_0x5a3f64||'insertion'!=_0x45b82b&&_0x186a('0xb5')!=_0x45b82b)continue;_0x51c147[_0x2cdb3c][_0x186a('0x59')][_0x186a('0xce')](_0x48b282,0x1),_0x48b282--;const _0x655a15=_0x210516['findIndex'](_0x261ed4=>_0x261ed4[_0x186a('0xfb')]==_0x40b3e8);_0x655a15>-0x1&&_0x210516[_0x186a('0xce')](_0x655a15,0x1);}}function _0x3c7cdd(_0xd33459){const _0x348421=_0xd33459[_0x186a('0x47')](':');return{'group':_0x348421[0x0],'type':_0x348421[0x1],'subType':_0x348421[_0x186a('0x9a')]>=0x5?_0x348421[0x2]:null,'id':_0x348421[_0x186a('0x9a')]<0x5?_0x348421[0x2]:_0x348421[0x3],'authorId':_0x348421[_0x186a('0x9a')]<0x5?_0x348421[0x3]:_0x348421[0x4],'markerCount':0x6==_0x348421[_0x186a('0x9a')]?_0x348421[0x5]:null};}function _0x41ea84(_0x24637a){for(let _0x123663=0x0;_0x123663<_0x210516['length'];_0x123663++){if(_0x24637a[_0x186a('0x93')]&&_0x186a('0x88')==_0x210516[_0x123663][_0x186a('0x7e')])return _0x24637a['isAddSuggestion']=_0x210516[_0x123663],void delete _0x24637a['isAdded'];if(!_0x24637a[_0x186a('0x93')]&&!_0x24637a[_0x186a('0xc3')]&&_0x186a('0xb5')==_0x210516[_0x123663][_0x186a('0x7e')])return void(_0x24637a[_0x186a('0x6f')]=_0x210516[_0x123663]);}}}[_0x186a('0x121')](_0x16ca87,_0x2758cf){let _0x55cc67=0x0,_0x23f9a9=!0x1;const _0x158d5d=new Map();for(const _0x5156cd of _0x16ca87)_0x5156cd[_0x2758cf]?_0x23f9a9&&(_0x55cc67++,_0x23f9a9=!0x1):(_0x55cc67++,_0x23f9a9=!0x0),_0x158d5d[_0x186a('0x7b')](_0x5156cd['id'],_0x55cc67);for(let _0x1ee767=0x0;_0x1ee767<_0x16ca87[_0x186a('0x9a')];_0x1ee767++){if('isRemoved'==_0x2758cf&&_0x16ca87[_0x1ee767][_0x186a('0x93')]||'isAdded'==_0x2758cf&&_0x16ca87[_0x1ee767]['isRemoved'])continue;if('text'==_0x16ca87[_0x1ee767][_0x186a('0x7e')]){_0x16ca87[_0x1ee767][_0x186a('0xe')]=0x0;continue;}const _0x3b19e0=_0x158d5d['get'](_0x16ca87[_0x1ee767][_0x186a('0x100')]),_0x37a35d=_0x158d5d[_0x186a('0x2c')](_0x16ca87[_0x1ee767]['id']);_0x16ca87[_0x1ee767]['distance']=_0x3b19e0-_0x37a35d;}}['_getRevisionsRange'](_0x260f5a,_0x438266,_0x42e5ae=!0x1){const _0x3824af=[];let _0xde1e12=this['repository']['getIndex'](_0x260f5a),_0x4f006e=this[_0x186a('0xc0')][_0x186a('0xe8')](_0x438266);for(-0x1==_0x4f006e&&(_0x4f006e=this[_0x186a('0xc0')][_0x186a('0xb1')]['length'],_0x42e5ae=!0x1);_0xde1e12<_0x4f006e;)_0x3824af['push'](this['repository'][_0x186a('0x49')](_0xde1e12)),_0xde1e12++;return _0x42e5ae&&_0x3824af[_0x186a('0x16')](this[_0x186a('0xc0')][_0x186a('0x49')](_0xde1e12)),_0x3824af;}[_0x186a('0xdf')](_0x5521d8,_0x26eed9,_0x539293,_0x231b3e){const _0x1067ee=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x62')];let _0x227e10=_0x26eed9;for(;_0x5521d8[_0x227e10]&&_0x5521d8[_0x227e10][_0x186a('0x93')];)_0x227e10++;let _0x3f1a5a=_0x231b3e;for(;_0x539293[_0x3f1a5a]&&_0x539293[_0x3f1a5a][_0x186a('0xc3')];)_0x3f1a5a++;_0x2dba67(_0x5521d8,_0x26eed9,_0x227e10),_0x2dba67(_0x539293,_0x231b3e,_0x3f1a5a);const _0x2e6c64=_0x539293[_0x186a('0xa4')](_0x231b3e,_0x3f1a5a)[_0x186a('0xbd')](_0x5521d8['slice'](_0x26eed9,_0x227e10));return _0x2e6c64['sort']((_0x363caf,_0xa3a445)=>_0x363caf['side']!=_0xa3a445[_0x186a('0x99')]?_0x363caf[_0x186a('0x99')]-_0xa3a445[_0x186a('0x99')]:_0x363caf[_0x186a('0x0')]!=_0xa3a445['level']?_0x363caf[_0x186a('0x0')]-_0xa3a445[_0x186a('0x0')]:_0x363caf[_0x186a('0xe')]!=_0xa3a445[_0x186a('0xe')]?_0xa3a445[_0x186a('0xe')]-_0x363caf[_0x186a('0xe')]:!!_0x363caf['isAdded']!=!!_0xa3a445[_0x186a('0x93')]?-0x1==_0x363caf[_0x186a('0x99')]||0x0==_0x363caf['side']?_0x363caf['isAdded']?-0x1:0x1:_0x363caf[_0x186a('0x93')]?0x1:-0x1:_0x363caf[_0x186a('0x6b')]-_0xa3a445['index']),{'commonTape':_0x2e6c64,'iEnd':_0x227e10,'jEnd':_0x3f1a5a};function _0x2dba67(_0x1ff79c,_0x2d59c0,_0x5ac95c){let _0x4563b1=-0x1,_0x3420a4=Number[_0x186a('0xc')],_0x1e99bd=!0x0;for(let _0x1fd08e=_0x2d59c0;_0x1fd08e<_0x5ac95c;_0x1fd08e++)if(_0x1067ee[_0x186a('0xd')](_0x1ff79c[_0x1fd08e][_0x186a('0x77')])||(_0x1e99bd=!0x1),_0x1ff79c[_0x1fd08e][_0x186a('0x77')][_0x186a('0x74')]<_0x2d59c0&&(_0x4563b1=_0x1fd08e),_0x1ff79c[_0x1fd08e][_0x186a('0x77')]['endIndex']>=_0x5ac95c){_0x3420a4=_0x1fd08e;break;}_0x1e99bd&&(_0x4563b1=_0x5ac95c-0x1);for(let _0x1b91b0=_0x2d59c0;_0x1b91b0<_0x5ac95c;_0x1b91b0++)_0x1ff79c[_0x1b91b0][_0x186a('0x99')]=_0x1b91b0<=_0x4563b1?-0x1:_0x1b91b0<_0x3420a4?0x0:0x1,_0x1ff79c[_0x1b91b0][_0x186a('0x6b')]=_0x1b91b0;let _0x4d2caf=0x0;for(let _0x470966=_0x2d59c0;_0x470966<=_0x4563b1;_0x470966++)0x0==_0x1ff79c[_0x470966][_0x186a('0xe')]?_0x1ff79c[_0x470966]['level']=_0x4d2caf:(_0x4d2caf++,_0x1ff79c[_0x470966][_0x186a('0x0')]=_0x4d2caf,_0x4d2caf++);for(let _0x1a1371=_0x2d59c0;_0x1a1371<_0x5ac95c;_0x1a1371++)0x0==_0x1ff79c[_0x1a1371][_0x186a('0x99')]&&(_0x1ff79c[_0x1a1371][_0x186a('0x0')]=_0x4d2caf);_0x4d2caf=0x0;for(let _0x426f69=_0x5ac95c-0x1;_0x426f69>=_0x3420a4;_0x426f69--)0x0==_0x1ff79c[_0x426f69][_0x186a('0xe')]?_0x1ff79c[_0x426f69][_0x186a('0x0')]=_0x4d2caf:(_0x4d2caf--,_0x1ff79c[_0x426f69][_0x186a('0x0')]=_0x4d2caf,_0x4d2caf--);}}[_0x186a('0xbf')](_0x1929e3){const _0x573aa5=new Map(),_0x2d1bb6=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x62')];for(let _0x4d304b=0x1;_0x4d304b<_0x1929e3[_0x186a('0x9a')];_0x4d304b++){let _0x96a485,_0x2a0093,_0x4b6b4b;const _0x32dc0a=_0x1929e3[_0x4d304b],_0x1a71bb=_0x1929e3[_0x4d304b-0x1];if(_0x186a('0x45')==_0x32dc0a[_0x186a('0x7e')])continue;if(_0x32dc0a[_0x186a('0x7e')]!=_0x1a71bb['type'])continue;if(!_0x2d1bb6[_0x186a('0xba')](_0x1a71bb[_0x186a('0x77')])||_0x2d1bb6['isLimit'](_0x1a71bb['item']))continue;if(!_0x2d1bb6[_0x186a('0xba')](_0x32dc0a[_0x186a('0x77')])||_0x2d1bb6[_0x186a('0x13')](_0x32dc0a[_0x186a('0x77')]))continue;if((_0x1929e3[_0x4d304b][_0x186a('0x93')]||_0x1929e3[_0x4d304b]['isAddSuggestion'])&&_0x1929e3[_0x4d304b-0x1][_0x186a('0xc3')])_0x96a485=_0x1929e3[_0x4d304b],_0x2a0093=_0x1929e3[_0x4d304b-0x1],_0x4b6b4b=_0x4d304b-0x1;else{if(!_0x1929e3[_0x4d304b][_0x186a('0xc3')]||!_0x1929e3[_0x4d304b-0x1]['isAdded']&&!_0x1929e3[_0x4d304b-0x1][_0x186a('0x11a')])continue;_0x96a485=_0x1929e3[_0x4d304b-0x1],_0x2a0093=_0x1929e3[_0x4d304b],_0x4b6b4b=_0x4d304b;}const _0x22b8cf=_0x96a485['level']==_0x2a0093[_0x186a('0x0')],_0x34051d=Math[_0x186a('0x80')](_0x96a485[_0x186a('0x0')])<Math[_0x186a('0x80')](_0x2a0093['level'])&&0x0==_0x2a0093[_0x186a('0xe')];(_0x22b8cf||_0x34051d)&&(_0x573aa5[_0x186a('0x7b')](_0x2a0093['id'],_0x96a485['id']),_0x1929e3['splice'](_0x4b6b4b,0x1),_0x4d304b--,_0x96a485[_0x186a('0x93')]=!0x1);}for(let _0x45276d=0x0;_0x45276d<_0x1929e3['length'];_0x45276d++)_0x573aa5[_0x186a('0x11c')](_0x1929e3[_0x45276d]['pairId'])&&(_0x1929e3[_0x45276d][_0x186a('0x100')]=_0x573aa5[_0x186a('0x2c')](_0x1929e3[_0x45276d]['pairId']));}[_0x186a('0x7f')](_0x5856df){const _0x11a780=new Set(_0x5856df[_0x186a('0x94')](_0x279fed=>_0x279fed['id']));for(let _0x155e7a=0x0;_0x155e7a<_0x5856df[_0x186a('0x9a')];_0x155e7a++)_0x11a780[_0x186a('0x11c')](_0x5856df[_0x155e7a][_0x186a('0x100')])||0x0==_0x5856df[_0x155e7a][_0x186a('0xe')]||(_0x5856df[_0x155e7a][_0x186a('0x1d')]=!0x0);return _0x5856df[_0x186a('0x10a')](_0x29229f=>!_0x29229f[_0x186a('0x1d')]);}[_0x186a('0x57')](_0x32fc40){const _0x3dc3c6=new Set();for(let _0x43b8b5=0x0;_0x43b8b5<_0x32fc40[_0x186a('0x9a')];_0x43b8b5++){if(_0x3dc3c6[_0x186a('0x11c')](_0x32fc40[_0x43b8b5]['id'])&&_0x32fc40[_0x43b8b5][_0x186a('0xc3')]&&(_0x32fc40[_0x43b8b5][_0x186a('0x1d')]=!0x0),_0x32fc40[_0x43b8b5][_0x186a('0x1d')])continue;if(0x0==_0x32fc40[_0x43b8b5]['distance'])continue;if(_0x186a('0x104')!=_0x32fc40[_0x43b8b5][_0x186a('0x7e')])continue;if(null==_0x32fc40[_0x43b8b5][_0x186a('0x100')])continue;let _0x3b6057=_0x43b8b5+0x1,_0x4309af=0x0;for(;_0x32fc40[_0x3b6057]['id']!=_0x32fc40[_0x43b8b5][_0x186a('0x100')];)'elementStart'==_0x32fc40[_0x3b6057][_0x186a('0x7e')]?_0x4309af++:'elementEnd'==_0x32fc40[_0x3b6057][_0x186a('0x7e')]&&_0x4309af--,_0x3b6057++;if(0x0!=_0x4309af){if(_0x32fc40[_0x43b8b5][_0x186a('0xc3')])_0x32fc40[_0x43b8b5][_0x186a('0x1d')]=!0x0;else for(;_0x3b6057!=_0x43b8b5;)_0x32fc40[_0x3b6057]['isRemoved']&&0x0!=_0x32fc40[_0x3b6057]['distance']&&(_0x32fc40[_0x3b6057][_0x186a('0x1d')]=!0x0,_0x3dc3c6[_0x186a('0x34')](_0x32fc40[_0x3b6057][_0x186a('0x100')])),_0x3b6057--;}}return _0x32fc40['filter'](_0x167d58=>!_0x167d58[_0x186a('0x1d')]);}[_0x186a('0x10d')](_0x163e94){const _0x36b7f0=this[_0x186a('0xe3')][_0x186a('0xf4')]['schema'];for(let _0xec6e69=0x0;_0xec6e69<_0x163e94[_0x186a('0x9a')];_0xec6e69++){if(!(_0x163e94[_0xec6e69][_0x186a('0x93')]||_0x163e94[_0xec6e69][_0x186a('0x11a')]||_0x163e94[_0xec6e69][_0x186a('0xc3')]||_0x163e94[_0xec6e69][_0x186a('0x6f')]))continue;if(0x0==_0x163e94[_0xec6e69][_0x186a('0xe')])continue;const _0x3c8f05=_0x163e94[_0xec6e69]['item'];_0x36b7f0[_0x186a('0xba')](_0x3c8f05)||_0x36b7f0[_0x186a('0x13')](_0x3c8f05)||(_0x163e94[_0xec6e69][_0x186a('0x93')]&&delete _0x163e94[_0xec6e69]['isAdded'],_0x163e94[_0xec6e69]['isAddSuggestion']&&delete _0x163e94[_0xec6e69][_0x186a('0x11a')],_0x163e94[_0xec6e69][_0x186a('0x6f')]&&delete _0x163e94[_0xec6e69][_0x186a('0x6f')],_0x163e94[_0xec6e69]['isRemoved']&&(_0x163e94[_0xec6e69]['isIncorrect']=!0x0));}return _0x163e94[_0x186a('0x10a')](_0x36c999=>!_0x36c999['isIncorrect']);}[_0x186a('0x123')](_0x2a4765,_0x1d2043,_0x153e5d){const _0xb2b57e=new _0xbee08(),_0xb75fa1=[],_0x598649=new Map(),_0xe9123=this[_0x186a('0xe3')]['model'],_0x1d3319=_0xe9123[_0x186a('0x62')],_0x568e45=[_0xb2b57e],_0x2e4e31={},_0x4c6353={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1e7307=null;const _0x804a10=[0x0];for(let _0x44968b=0x0;_0x44968b<_0x2a4765[_0x186a('0x9a')];_0x44968b++){let _0xdab94c,_0x58b225;if(_0x186a('0x104')===_0x2a4765[_0x44968b][_0x186a('0x7e')]){_0xdab94c=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10);const _0x4cca4a=new _0x5e7e65(_0x2a4765[_0x44968b][_0x186a('0x77')][_0x186a('0xfb')],_0x2a4765[_0x44968b][_0x186a('0x77')]['getAttributes']());_0x568e45[0x0][_0x186a('0x103')](_0x4cca4a),_0x804a10[_0x186a('0x16')](0x0),_0x568e45[_0x186a('0xb7')](_0x4cca4a),_0x58b225=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10),_0x1e7307=null;}else{if(_0x186a('0x9b')===_0x2a4765[_0x44968b][_0x186a('0x7e')])_0x568e45[_0x186a('0xfa')](),_0xdab94c=_0xe9123['createPositionFromPath'](_0xb2b57e,_0x804a10),_0x804a10[_0x186a('0xa0')](),_0x804a10[_0x804a10[_0x186a('0x9a')]-0x1]++,_0x58b225=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10),_0x1e7307=null;else{if(_0xdab94c=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10),_0x1e7307&&_0x30cd1d(_0x1e7307,_0x2a4765[_0x44968b][_0x186a('0x77')]))_0x1e7307[_0x186a('0x11d')]+=_0x2a4765[_0x44968b][_0x186a('0x77')][_0x186a('0xa7')];else{const _0x10806e=new _0x57c2d3(_0x2a4765[_0x44968b][_0x186a('0x77')]['data'],_0x2a4765[_0x44968b][_0x186a('0x77')]['getAttributes']());_0x568e45[0x0]['_appendChild'](_0x10806e),_0x1e7307=_0x10806e;}_0x804a10[_0x804a10[_0x186a('0x9a')]-0x1]+=_0x2a4765[_0x44968b][_0x186a('0x77')]['offsetSize'],_0x58b225=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10);}}for(const _0x33d497 of _0x2a4765[_0x44968b][_0x186a('0xad')])_0x598649[_0x186a('0x7b')](_0x33d497,{'start':_0xdab94c,'end':null});_0x4bdde9('isRemoveSuggestion',_0x44968b,_0xdab94c,_0x58b225),_0x4bdde9(_0x186a('0x11a'),_0x44968b,_0xdab94c,_0x58b225),_0x4bdde9('isRemoved',_0x44968b,_0xdab94c,_0x58b225),_0x4bdde9('isAdded',_0x44968b,_0xdab94c,_0x58b225);for(const _0x417d6a of _0x2a4765[_0x44968b][_0x186a('0x59')]){_0x598649[_0x186a('0x2c')](_0x417d6a)['end']=_0x58b225;}}for(const [_0x5a4b1b,_0x1b174d]of _0x598649){const _0x6d1c32=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x24')](_0x1b174d[_0x186a('0x36')],_0x1b174d[_0x186a('0x102')]);_0xb2b57e[_0x186a('0xa2')][_0x186a('0x7b')](_0x5a4b1b,_0x6d1c32);}return _0xb75fa1[_0x186a('0x27')]((_0x2622dd,_0x52b88a)=>{const _0x582f30=_0xb2b57e[_0x186a('0xa2')][_0x186a('0x2c')](_0x186a('0x4')+_0x2622dd['id']),_0x323d7c=_0xb2b57e[_0x186a('0xa2')]['get'](_0x186a('0x4')+_0x52b88a['id']);return _0x582f30[_0x186a('0x36')][_0x186a('0x2e')](_0x323d7c[_0x186a('0x36')])?-0x1:_0x582f30[_0x186a('0x36')][_0x186a('0x53')](_0x323d7c[_0x186a('0x36')])?0x1:_0x582f30['end'][_0x186a('0x2e')](_0x323d7c['end'])?-0x1:_0x582f30[_0x186a('0x102')][_0x186a('0x53')](_0x323d7c['end'])?0x1:_0x186a('0x34')===_0x2622dd[_0x186a('0x7e')]?-0x1:0x1;}),{'root':_0xb2b57e,'changes':_0xb75fa1};function _0x4bdde9(_0x5cb87f,_0x39460c,_0x1fb507,_0x2a4898){const _0x2a47a4=!!_0x2a4765[_0x39460c][_0x5cb87f],_0x121ffc=_0x2a47a4?_0x2a4765[_0x39460c][_0x5cb87f][_0x186a('0xcf')]:null,_0x164fd6=_0x39460c===_0x2a4765['length']-0x1,_0x30293e=_0x4c6353[_0x5cb87f][0x0],_0x365bf3=_0x1d3319[_0x186a('0x110')](_0x2a4765[_0x39460c]['item']);!_0x2e4e31[_0x5cb87f]&&_0x2a47a4?_0x2e4e31[_0x5cb87f]={'start':_0x1fb507,'tapeItem':_0x2a4765[_0x39460c],'userId':_0x121ffc,'type':_0x5cb87f}:_0x2e4e31[_0x5cb87f]&&!_0x2a47a4?(_0x2e4e31[_0x5cb87f]['end']=_0x1fb507,_0x1e5909(_0x2e4e31[_0x5cb87f]),_0x2e4e31[_0x5cb87f]=null):_0x2e4e31[_0x5cb87f]&&_0x2a47a4&&_0x2e4e31[_0x5cb87f][_0x186a('0xcf')]!==_0x121ffc&&(_0x2e4e31[_0x5cb87f]['end']=_0x1fb507,_0x30293e&&_0x30293e[_0x186a('0xcf')]===_0x2e4e31[_0x5cb87f][_0x186a('0xcf')]||_0x1e5909(_0x2e4e31[_0x5cb87f]),_0x2e4e31[_0x5cb87f]={'start':_0x1fb507,'tapeItem':_0x2a4765[_0x39460c],'userId':_0x121ffc,'type':_0x5cb87f}),_0x2e4e31[_0x5cb87f]&&_0x365bf3&&(_0x186a('0x104')!==_0x2a4765[_0x39460c][_0x186a('0x7e')]||_0x30293e&&_0x30293e[_0x186a('0xcf')]===_0x121ffc||_0x4c6353[_0x5cb87f][_0x186a('0xb7')]({'userId':_0x121ffc,'object':_0x2a4765[_0x39460c][_0x186a('0x77')],'change':_0x2e4e31[_0x5cb87f]}),_0x186a('0x9b')===_0x2a4765[_0x39460c][_0x186a('0x7e')]&&_0x30293e&&_0x30293e['object']===_0x2a4765[_0x39460c]['item']&&(_0x4c6353[_0x5cb87f][_0x186a('0xfa')](),_0x2e4e31[_0x5cb87f]=_0x30293e['change'])),_0x2e4e31[_0x5cb87f]&&_0x164fd6&&(_0x2e4e31[_0x5cb87f]['end']=_0x2a4898,_0x1e5909(_0x2e4e31[_0x5cb87f]),_0x2e4e31[_0x5cb87f]=null);}function _0x1e5909({start:_0x3f38a4,end:_0x4b5284,tapeItem:_0x26d462,userId:_0xc624a7,type:_0x466072}){const _0x5aa44d=_0x26d462['item'],_0x28fcc4=_0xe9123[_0x186a('0x62')][_0x186a('0xba')](_0x5aa44d)&&!_0xe9123[_0x186a('0x62')]['isLimit'](_0x5aa44d),_0x318979=_0x3f38a4[_0x186a('0xef')]==_0x4b5284[_0x186a('0x97')]&&_0x4b5284[_0x186a('0x86')];if(_0x28fcc4&&_0x318979)return;const _0x272932=_0xe9123[_0x186a('0x24')](_0x3f38a4,_0x4b5284),_0x540077=_0x1d2043[_0x186a('0x2c')](_0xc624a7),_0x3dadad=new _0x3c4202({'author':_0x540077,'type':_0x186a('0x93')==_0x466072||_0x186a('0x11a')==_0x466072?_0x186a('0x34'):'remove','data':{'isSuggestion':_0x186a('0x11a')==_0x466072||'isRemoveSuggestion'==_0x466072},'createdAt':new Date(),'rootName':_0x153e5d});_0xb75fa1[_0x186a('0x16')](_0x3dadad),_0xb2b57e['markers'][_0x186a('0x7b')]('revision:'+_0x3dadad['id'],_0x272932);}function _0x30cd1d(_0x335d05,_0x1460a2){const _0x58c583=_0x335d05[_0x186a('0x4c')](),_0xf63394=_0x1460a2[_0x186a('0x4c')]();for(const _0x486abe of _0x58c583){if(_0x486abe[0x1]!==_0x1460a2['getAttribute'](_0x486abe[0x0]))return!0x1;_0xf63394[_0x186a('0xf9')]();}return _0xf63394['next']()[_0x186a('0x3d')];}}['_setConversion'](){this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')]('upcast')[_0x186a('0x111')]({'view':_0x186a('0xa3')}),this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')](_0x186a('0xe1'))[_0x186a('0x73')]({'model':'revision','view':_0x590da7=>{const _0x3be034=_0x590da7[_0x186a('0xd9')][_0x186a('0x47')](':')[0x1],_0x590347=this[_0x186a('0xb9')](_0x3be034);if(!_0x590347)return null;const _0x19728b='add'==_0x590347[_0x186a('0x7e')]?_0x186a('0x88'):_0x186a('0xb5'),_0x379c71=['ck-suggestion-marker',_0x186a('0xf')+_0x19728b];return _0x590347[_0x186a('0xa7')][_0x186a('0x5c')]&&_0x379c71['push'](_0x186a('0xf')+_0x19728b+_0x186a('0x5f')),this[_0x186a('0xde')]==_0x590347&&_0x379c71['push']('ck-suggestion-marker--active'),{'classes':_0x379c71,'attributes':{'data-change-id':_0x3be034}};}}),this[_0x186a('0xe3')][_0x186a('0xb0')]['for'](_0x186a('0xdd'))[_0x186a('0x34')](_0x11a66a=>{_0x11a66a['on']('element:pre',(_0x388dc5,_0x202626,_0x3aa108)=>{const _0x318fe6=_0x202626['viewItem'][_0x186a('0xda')](0x0);if(!_0x318fe6||!_0x318fe6['is'](_0x186a('0x68'),_0x186a('0x11e')))return;if(!_0x3aa108[_0x186a('0xe9')][_0x186a('0xf0')](_0x318fe6,{'attributes':[_0x186a('0x105'),_0x186a('0x87')]}))return;const _0x5c2b48=_0x202626[_0x186a('0x122')]['start'][_0x186a('0xef')];_0x3aa108[_0x186a('0x112')][_0x186a('0x72')](_0x186a('0x105'),_0x318fe6[_0x186a('0x33')](_0x186a('0x105')),_0x5c2b48),_0x3aa108[_0x186a('0x112')][_0x186a('0x72')](_0x186a('0x87'),_0x318fe6['getAttribute']('vid_end'),_0x5c2b48);},{'priority':'low'});}),this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')](_0x186a('0xdd'))[_0x186a('0x34')](_0x4a0807=>{_0x4a0807['on'](_0x186a('0x68'),(_0x20600b,_0x28945d,_0x50881d)=>{if(!_0x50881d[_0x186a('0xe9')]['consume'](_0x28945d[_0x186a('0x85')],{'attributes':[_0x186a('0x105'),'vid_end']}))return;if(_0x28945d['modelRange'][_0x186a('0xe2')])return;const _0x421e60=_0x28945d[_0x186a('0x122')][_0x186a('0x36')][_0x186a('0xef')];_0x421e60['hasAttribute'](_0x186a('0x105'))||_0x421e60['hasAttribute'](_0x186a('0xdc'))||(_0x50881d[_0x186a('0x112')]['setAttribute']('vid_start',_0x28945d[_0x186a('0x85')]['getAttribute'](_0x186a('0x105')),_0x421e60),_0x50881d['writer']['setAttribute'](_0x186a('0x87'),_0x28945d[_0x186a('0x85')][_0x186a('0x33')]('vid_end'),_0x421e60));},{'priority':_0x186a('0xb8')});}),this['editor'][_0x186a('0xb0')][_0x186a('0x63')]('upcast')[_0x186a('0x3')]({'view':{'name':_0x186a('0x3b'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x28f499=>_0x28f499[_0x186a('0x33')](_0x186a('0xdc'))}}),this[_0x186a('0xe3')][_0x186a('0xf4')]['schema']['on'](_0x186a('0x98'),(_0x27a778,[,_0x26806f])=>{['vid_start',_0x186a('0x87'),_0x186a('0xdc')][_0x186a('0xfe')](_0x26806f)&&(_0x27a778['return']=!0x0,_0x27a778[_0x186a('0x6a')]());},{'priority':'highest'}),this['editor'][_0x186a('0xb0')]['for'](_0x186a('0x14'))['add'](_0x22d460=>{_0x22d460['on'](_0x186a('0xd7'),(_0x55073d,_0x25d3e2,_0x48563c)=>{if('\x20'!=_0x25d3e2[_0x186a('0x77')][_0x186a('0xa7')]||_0x25d3e2[_0x186a('0x77')][_0x186a('0x97')][_0x186a('0xc2')]>0x1)return;if(!_0x48563c[_0x186a('0xe9')][_0x186a('0xf0')](_0x25d3e2[_0x186a('0x77')],_0x55073d[_0x186a('0xfb')]))return;const _0x2706f4=_0x48563c[_0x186a('0x112')],_0x1cb1e1=_0x48563c[_0x186a('0x15')][_0x186a('0x50')](_0x25d3e2[_0x186a('0xd3')]);_0x2706f4[_0x186a('0xbb')](_0x1cb1e1,_0x2706f4[_0x186a('0x8b')](_0x186a('0x3b')));});}),this[_0x186a('0xe3')]['conversion'][_0x186a('0x63')](_0x186a('0x14'))['markerToData']({'model':_0x186a('0xa3')}),this[_0x186a('0xe3')][_0x186a('0x55')]['downcastDispatcher']['on']('addMarker:revision',function(_0x57f13b){const _0x8c5d5a=_0x57f13b[_0x186a('0x1f')]['get'](_0x186a('0x52'));return(_0x200f41,_0x1174a7,_0x20eaf5)=>{const _0x56bc82=_0x1174a7[_0x186a('0xd9')][_0x186a('0x47')](':')[0x1],_0x1c9435=_0x8c5d5a[_0x186a('0xb9')](_0x56bc82);if(!_0x1c9435)return null;const _0xfab08d='add'==_0x1c9435[_0x186a('0x7e')]?_0x186a('0x47'):_0x186a('0x9d');if(!_0x20eaf5[_0x186a('0xe9')][_0x186a('0x23')](_0x1174a7[_0x186a('0x43')],_0x200f41[_0x186a('0xfb')]))return;const _0x13b1fd=_0x1174a7[_0x186a('0x43')][_0x186a('0x54')](),_0x4328da=_0x1174a7[_0x186a('0x43')][_0x186a('0x36')],_0x12fa92=_0x57f13b[_0x186a('0xf4')][_0x186a('0x62')];let _0x3a2002=null,_0x3ac628=null,_0x1692c2=!0x1,_0x2fa601=!0x1;for(const _0x3f48cf of _0x13b1fd){const _0x3f22b0=_0x3f48cf['item'];_0x1692c2=_0x1692c2||_0x12fa92[_0x186a('0xc8')](_0x3f22b0);const _0x11d5a2=_0x20eaf5[_0x186a('0x15')][_0x186a('0x7c')](_0x3f22b0);if(_0x11d5a2&&_0x11d5a2[_0x186a('0x4e')]('addHighlight'))return;'elementEnd'==_0x3f48cf['type']&&(_0x12fa92[_0x186a('0xba')](_0x3f22b0)&&!_0x12fa92[_0x186a('0x13')](_0x3f22b0)&&(_0x3f22b0[_0x186a('0x22')]||_0x4328da[_0x186a('0x4a')]?_0x3a2002&&_0x3a2002['parent']==_0x3f22b0||(_0x3a2002=_0x3f22b0,_0x1695d3(_0x3f48cf[_0x186a('0xa1')]),_0x2fa601=!0x0):_0x3ac628=_0x3ac628||_0x3f48cf[_0x186a('0xa1')]));}function _0x1695d3(_0x186683){const _0x232679=_0x20eaf5['writer'][_0x186a('0x5b')](_0x186a('0x3b'),{'class':_0x186a('0xf')+_0xfab08d}),_0x200e3b=_0x20eaf5[_0x186a('0x15')][_0x186a('0xec')](_0x186683);_0x1c9435[_0x186a('0xa7')]['isSuggestion']&&_0x20eaf5[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0xf')+_0xfab08d+_0x186a('0x5f'),_0x232679),_0x8c5d5a[_0x186a('0xde')]==_0x1c9435&&_0x20eaf5[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0x76'),_0x232679),_0x20eaf5[_0x186a('0x112')][_0x186a('0x81')](_0x200e3b,_0x232679),_0x20eaf5[_0x186a('0x15')][_0x186a('0x10b')](_0x232679,_0x1174a7['markerName']);}_0x1692c2||_0x2fa601||!_0x3ac628||_0x1695d3(_0x3ac628);};}(this[_0x186a('0xe3')]),{'priority':'high'}),this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x7')]['on'](_0x186a('0xca'),(_0x9eab6f,_0x15b9ac,_0x490df1)=>{const _0x424280=_0x490df1[_0x186a('0x15')]['markerNameToElements'](_0x15b9ac[_0x186a('0xd9')]);if(_0x424280)for(const _0x2e5610 of _0x424280)(_0x2e5610[_0x186a('0x67')]('ck-suggestion-marker-split')||_0x2e5610[_0x186a('0x67')](_0x186a('0xfd')))&&(_0x490df1[_0x186a('0x15')][_0x186a('0x8f')](_0x2e5610,_0x15b9ac['markerName']),_0x490df1[_0x186a('0x112')]['remove'](_0x2e5610));},{'priority':'high'}),this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x7')]['on'](_0x186a('0x83'),(_0x210270,_0x5c22e3,_0x435f5b)=>{const _0x546051=_0x5c22e3['markerName'][_0x186a('0x47')](':')[0x1],_0x51c9c2=this['_getChangeFromId'](_0x546051);if(!_0x51c9c2)return null;const _0x25d6d1=_0x186a('0x34')==_0x51c9c2[_0x186a('0x7e')]?_0x186a('0x47'):_0x186a('0x9d');if(_0x435f5b[_0x186a('0xe9')][_0x186a('0x23')](_0x5c22e3[_0x186a('0x43')],_0x210270['name']))for(const _0x59b51f of _0x5c22e3['markerRange'][_0x186a('0x48')]()){if(!_0x59b51f['is']('element',_0x186a('0xd8')))continue;const _0x232989=_0x435f5b['writer'][_0x186a('0x5b')]('span',{'class':_0x186a('0xf')+_0x25d6d1}),_0x1efa53=_0x435f5b[_0x186a('0x15')][_0x186a('0xec')](this[_0x186a('0xe3')][_0x186a('0xf4')]['createPositionBefore'](_0x59b51f));_0x51c9c2[_0x186a('0xa7')][_0x186a('0x5c')]&&_0x435f5b[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0xf')+_0x25d6d1+_0x186a('0x5f'),_0x232989),this[_0x186a('0xde')]==_0x51c9c2&&_0x435f5b[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0x76'),_0x232989),_0x435f5b[_0x186a('0x112')][_0x186a('0x81')](_0x1efa53,_0x232989),_0x435f5b['mapper'][_0x186a('0x10b')](_0x232989,_0x5c22e3[_0x186a('0xd9')]);}},{'priority':_0x186a('0x66')}),this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0xff')]['on']('change',()=>{this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0x9f')](_0x12dc8d=>{for(const _0x944742 of this[_0x186a('0xe3')][_0x186a('0xf4')]['document'][_0x186a('0x12')]()){const _0x324bb0=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0xff')][_0x186a('0x90')](_0x944742),_0x203215=this[_0x186a('0xe3')][_0x186a('0x55')]['view']['document'][_0x186a('0x90')](_0x944742);if(_0x203215){const _0x32dbeb=_0x324bb0[_0x186a('0x33')](_0x186a('0xdb'));if(_0x12dc8d[_0x186a('0x2b')]('data-change-id',_0x203215),_0x12dc8d[_0x186a('0xf8')](_0x186a('0x17'),_0x203215),_0x12dc8d[_0x186a('0xf8')](_0x186a('0x3a'),_0x203215),_0x12dc8d[_0x186a('0xf8')](_0x186a('0x8e'),_0x203215),_0x32dbeb){const _0x5272a9=this['_getChangeFromId'](_0x32dbeb);if(!_0x5272a9)return null;_0x12dc8d[_0x186a('0x72')](_0x186a('0x42'),_0x32dbeb,_0x203215),_0x12dc8d['addClass'](_0x186a('0xcd')+_0x5272a9[_0x186a('0x7e')],_0x203215),this[_0x186a('0xde')]==_0x5272a9&&_0x12dc8d[_0x186a('0x25')]('ck-revision-history-root--active',_0x203215);}}}});}),this['editor']['conversion'][_0x186a('0x63')](_0x186a('0xdd'))[_0x186a('0x111')]({'view':_0x186a('0x8d'),'model':_0x1d888b=>'revision-comment:'+_0x1d888b,'converterPriority':'highest'}),this['editor'][_0x186a('0xb0')]['for'](_0x186a('0xdd'))[_0x186a('0x111')]({'view':'suggestion','model':_0x12ce5f=>_0x186a('0x1e')+_0x12ce5f,'converterPriority':_0x186a('0xea')}),this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')](_0x186a('0x14'))['markerToData']({'model':'revision-suggestion','view':_0x2f7741=>({'name':_0x186a('0xa')+_0x2f7741,'group':_0x186a('0x124')}),'converterPriority':_0x186a('0xea')}),this[_0x186a('0xe3')]['conversion'][_0x186a('0x63')](_0x186a('0xe1'))[_0x186a('0x73')]({'model':_0x186a('0x124'),'view':_0x4d2b5b=>{const _0x3a9748=_0x4d2b5b[_0x186a('0xd9')][_0x186a('0x47')](':')[0x1];return _0x186a('0x88')!=_0x3a9748&&_0x186a('0xb5')!=_0x3a9748?null:{'classes':[_0x186a('0xbe'),'ck-suggestion-preview-marker-'+_0x3a9748]};}}),this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x7')]['on'](_0x186a('0xb2'),et(this[_0x186a('0xe3')],_0x186a('0x9d')),{'priority':_0x186a('0x66')}),this[_0x186a('0xe3')][_0x186a('0x55')]['downcastDispatcher']['on'](_0x186a('0x113'),et(this['editor'],_0x186a('0x47')),{'priority':_0x186a('0x66')}),this[_0x186a('0xe3')][_0x186a('0x55')]['downcastDispatcher']['on'](_0x186a('0x71'),(_0x1a9e58,_0x5a0a78,_0x5c8ca1)=>{const _0x254267=_0x5c8ca1[_0x186a('0x15')][_0x186a('0xed')](_0x5a0a78[_0x186a('0xd9')]);if(_0x254267)for(const _0x44e1c8 of _0x254267)_0x44e1c8['is'](_0x186a('0xeb'))&&(_0x5c8ca1[_0x186a('0x15')][_0x186a('0x8f')](_0x44e1c8,_0x5a0a78[_0x186a('0xd9')]),_0x5c8ca1[_0x186a('0x112')][_0x186a('0x69')](_0x44e1c8));},{'priority':_0x186a('0x66')});}[_0x186a('0xb9')](_0x15bd14){return this[_0x186a('0x89')][_0x186a('0x2c')](_0x15bd14);}[_0x186a('0x65')](_0x96eb07){return this[_0x186a('0x70')]&&this['_changeView'][_0x186a('0x109')](),this['_changeView']=new _0x514d1f(this[_0x186a('0xe3')][_0x186a('0xf1')],_0x96eb07),this[_0x186a('0x70')];}[_0x186a('0x9c')](){this[_0x186a('0xe3')][_0x186a('0xf4')]['document'][_0x186a('0x108')][_0x186a('0x11')](_0x186a('0xa3')),this['on'](_0x186a('0xf3'),(_0x2313f6,_0x2c9d08,_0x162361,_0x5160c1)=>{_0x5160c1&&this[_0x186a('0xf5')][_0x186a('0x69')](_0x5160c1),_0x162361&&(this[_0x186a('0xf5')]['add']({'view':_0x162361,'stackId':_0x186a('0x3f'),'position':{'target':()=>{const _0x45610e=this['editor'][_0x186a('0x55')],_0x20ddf0=this[_0x186a('0xb9')](_0x162361['changeId']);let _0xfda108;if(_0x20ddf0['data'][_0x186a('0x7a')]){const _0x3053dc=_0x45610e[_0x186a('0x92')]['getDomRoot'](_0x20ddf0[_0x186a('0x29')]);_0xfda108=Array['from'](_0x3053dc['getClientRects']());}else{const _0xd57e8c=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0xa2')][_0x186a('0x2c')]('revision:'+_0x162361[_0x186a('0x3c')]);_0xfda108=Array['from'](_0x45610e[_0x186a('0x15')][_0x186a('0xed')](_0xd57e8c['name']))[_0x186a('0x94')](_0x4c479c=>_0x45610e[_0x186a('0x92')]['domConverter']['mapViewToDom'](_0x4c479c))[_0x186a('0x94')](_0x51c32a=>Array['from'](_0x51c32a[_0x186a('0xcc')]()))['flat']();}if(!this[_0x186a('0x1')])return _0xfda108[0x0];return _0xfda108[_0x186a('0xb6')](_0xd37732=>_0xd37732['top']-0x3<=this[_0x186a('0x1')]['y']&&_0xd37732[_0x186a('0x2f')]+0x3>=this[_0x186a('0x1')]['y']&&_0xd37732[_0x186a('0x35')]-0x3<=this['_activeViewTarget']['x']&&_0xd37732[_0x186a('0xa6')]+0x3>=this[_0x186a('0x1')]['x'])||_0xfda108[0x0];}}}),this['_balloon'][_0x186a('0x107')](_0x186a('0x3f')));}),this['on'](_0x186a('0x5e'),(_0x435a34,_0x4fccb9,_0x1efaaa,_0x2f2c35)=>{this[_0x186a('0xc9')]=_0x1efaaa?this[_0x186a('0x65')](_0x1efaaa):null,this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x9f')](()=>{const _0x387cd3=this[_0x186a('0xe3')][_0x186a('0x55')];_0x2f2c35&&(_0x2f2c35[_0x186a('0xa7')]['isOnRoot']?_0x387cd3['view'][_0x186a('0x9f')](_0x303c2f=>{_0x303c2f[_0x186a('0xf8')](_0x186a('0x8e'),_0x387cd3[_0x186a('0x92')][_0x186a('0xff')][_0x186a('0x90')](_0x2f2c35[_0x186a('0x29')]));}):_0x387cd3[_0x186a('0x95')](_0x186a('0x4')+_0x2f2c35['id'])),_0x1efaaa&&(_0x1efaaa['data'][_0x186a('0x7a')]?_0x387cd3[_0x186a('0x92')][_0x186a('0x9f')](_0x2f17b7=>{_0x2f17b7[_0x186a('0x25')]('ck-revision-history-root--active',_0x387cd3[_0x186a('0x92')][_0x186a('0xff')][_0x186a('0x90')](_0x1efaaa[_0x186a('0x29')]));}):_0x387cd3[_0x186a('0x95')](_0x186a('0x4')+_0x1efaaa['id']));});}),this['listenTo'](this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')]['document'],_0x186a('0xd2'),(_0x4561d7,_0x48d6b5)=>{if(this[_0x186a('0xde')])return;const _0x59bccb=this[_0x186a('0x4d')](_0x48d6b5[_0x186a('0x4b')]),_0x1f62a2=this[_0x186a('0x89')][_0x186a('0x2c')](_0x59bccb);_0x1f62a2?(this[_0x186a('0x1')]={'x':_0x48d6b5[_0x186a('0x30')]['x'],'y':_0x48d6b5[_0x186a('0x30')]['y']},this[_0x186a('0xc9')]=this[_0x186a('0x65')](_0x1f62a2)):(this[_0x186a('0x1')]=null,this[_0x186a('0xc9')]=null);}),this['listenTo'](this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')],_0x186a('0xf6'),(_0x58c3a4,_0x5751b1)=>{const _0x102eb1=this['_findChangeIdFromDomTarget'](_0x5751b1['target']),_0xdcc926=this[_0x186a('0x89')]['get'](_0x102eb1);_0xdcc926?(this[_0x186a('0x1')]={'x':_0x5751b1['domEvent']['x'],'y':_0x5751b1[_0x186a('0x30')]['y']},_0xdcc926===this[_0x186a('0xde')]?this[_0x186a('0xf5')]['updatePosition']():this[_0x186a('0xde')]=_0xdcc926):(this['_activeViewTarget']=null,this[_0x186a('0xde')]=null);});}[_0x186a('0x4d')](_0x42d219){do{const _0x28b3f2=_0x42d219[_0x186a('0x33')](_0x186a('0x42'));if(_0x28b3f2)return _0x28b3f2;_0x42d219=_0x42d219[_0x186a('0x97')];}while(_0x42d219);return null;}[_0x186a('0x3e')](){this[_0x186a('0xe3')]['model']['change'](_0x53e15f=>{for(const _0x58f84b of this[_0x186a('0xe3')][_0x186a('0xf4')]['markers'])_0x53e15f['removeMarker'](_0x58f84b);});}}function et(_0x11eacc,_0x32710b){return(_0x5da563,_0x25c0a8,_0x5398b5)=>{if(!_0x5398b5[_0x186a('0xe9')][_0x186a('0x23')](_0x25c0a8[_0x186a('0x43')],_0x5da563[_0x186a('0xfb')]))return;const _0x196693=_0x25c0a8['markerRange'][_0x186a('0x54')](),_0x3a04a0=_0x25c0a8[_0x186a('0x43')][_0x186a('0x36')],_0x1cab1d=_0x11eacc[_0x186a('0xf4')][_0x186a('0x62')];let _0x3a6646=null,_0xf6e04f=null,_0x5c036c=!0x1,_0x2bf36b=!0x1;for(const _0x1d18b5 of _0x196693){const _0x550ebf=_0x1d18b5['item'];_0x5c036c=_0x5c036c||_0x1cab1d['isContent'](_0x550ebf);const _0x28e649=_0x5398b5[_0x186a('0x15')]['toViewElement'](_0x550ebf);if(_0x28e649&&_0x28e649[_0x186a('0x4e')](_0x186a('0x51')))return;_0x186a('0x9b')==_0x1d18b5[_0x186a('0x7e')]&&(_0x1cab1d[_0x186a('0xba')](_0x550ebf)&&!_0x1cab1d[_0x186a('0x13')](_0x550ebf)&&(_0x550ebf[_0x186a('0x22')]||_0x3a04a0[_0x186a('0x4a')]?_0x3a6646&&_0x3a6646[_0x186a('0x97')]==_0x550ebf||(_0x3a6646=_0x550ebf,_0x1da82a(_0x1d18b5[_0x186a('0xa1')]),_0x2bf36b=!0x0):_0xf6e04f=_0xf6e04f||_0x1d18b5[_0x186a('0xa1')]));}function _0x1da82a(_0x190504){const _0x30c8af=_0x5398b5[_0x186a('0x15')][_0x186a('0xec')](_0x190504),_0x5a22ab=_0x5398b5[_0x186a('0x112')][_0x186a('0x5b')]('span',{'class':_0x186a('0x9')+_0x32710b});_0x5398b5[_0x186a('0x112')]['insert'](_0x30c8af,_0x5a22ab),_0x5398b5['mapper'][_0x186a('0x10b')](_0x5a22ab,_0x25c0a8['markerName']);}_0x5c036c||_0x2bf36b||!_0xf6e04f||_0x1da82a(_0xf6e04f);};}export class RestoreRevisionCommand extends _0x49ffb8{constructor(_0x29a8e1){super(_0x29a8e1);const _0x51ea99=_0x29a8e1[_0x186a('0x1f')][_0x186a('0x2c')](d);this[_0x186a('0x31')]=!0x1,this['listenTo'](_0x51ea99,_0x186a('0x2a'),()=>this[_0x186a('0x21')]()),this[_0x186a('0x7d')](_0x51ea99,_0x186a('0x119'),()=>this['refresh']());}[_0x186a('0x10c')](){const _0x5cdd03=this['editor'],_0x2ecbb4=_0x5cdd03[_0x186a('0x1f')][_0x186a('0x2c')](d),_0x5f1b9e=_0x2ecbb4[_0x186a('0xd1')]?_0x2ecbb4[_0x186a('0xaa')][_0x186a('0xaf')]:null;_0x5cdd03[_0x186a('0x8a')][_0x186a('0x2c')](_0x186a('0x84'))['restoreRevisionCallback'](_0x5f1b9e);}['refresh'](){const {isReady:_0xf4cebf,isEnabled:_0x5f8c9b}=this[_0x186a('0xe3')][_0x186a('0x1f')][_0x186a('0x2c')](d);this[_0x186a('0xb3')]=_0xf4cebf&&_0x5f8c9b;}}export class ShowChangeCommand extends _0x49ffb8{constructor(_0x35ff70,{direction:_0x5ceb33}){super(_0x35ff70);const _0xf5e9fc=_0x35ff70['plugins']['get'](d);this[_0x186a('0x31')]=!0x1,this[_0x186a('0xfc')]=_0x186a('0x118')===_0x5ceb33?0x1:-0x1,this[_0x186a('0x7d')](_0xf5e9fc,_0x186a('0x2a'),()=>this[_0x186a('0x21')]()),this[_0x186a('0x7d')](_0xf5e9fc,'change:isEnabled',()=>this[_0x186a('0x21')]()),this[_0x186a('0x7d')](_0xf5e9fc,_0x186a('0x5e'),()=>this[_0x186a('0x21')]());}[_0x186a('0x10c')](){const _0x499761=this[_0x186a('0xe3')],_0x3bd7cf=_0x499761[_0x186a('0x1f')][_0x186a('0x2c')](d),{isNavigationMode:_0x5e7e6a,currentChangeNumber:_0x2852eb}=_0x3bd7cf;let _0x91848e;if(_0x3bd7cf['activeChange']=_0x5e7e6a?_0x3bd7cf[_0x186a('0xaa')][_0x186a('0x116')][_0x186a('0x2c')](_0x2852eb+this[_0x186a('0xfc')]):_0x3bd7cf[_0x186a('0xaa')][_0x186a('0x116')][_0x186a('0xc6')],_0x3bd7cf['activeChange'][_0x186a('0xa7')][_0x186a('0x7a')])_0x91848e=_0x499761['editing'][_0x186a('0x92')][_0x186a('0xb')](_0x3bd7cf['activeChange'][_0x186a('0x29')]);else{const _0x4622ae=_0x499761['model'][_0x186a('0xa2')][_0x186a('0x2c')](_0x186a('0x4')+_0x3bd7cf[_0x186a('0xde')]['id']);_0x91848e=_0x20bc80(_0x499761[_0x186a('0x55')],_0x4622ae);}_0x225745({'target':_0x91848e,'viewportOffset':0x28});}[_0x186a('0x21')](){const {isNavigationMode:_0x9d22f4,currentChangeNumber:_0x5617b0,numberOfChanges:_0x2da18b,isReady:_0x20ff97,isEnabled:_0x368c0a}=this[_0x186a('0xe3')][_0x186a('0x1f')]['get'](d);this[_0x186a('0xb3')]=!!(_0x368c0a&&_0x20ff97&&_0x2da18b)&&(!_0x9d22f4||(0x1===this['_step']?_0x5617b0<_0x2da18b-0x1:_0x5617b0>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ecc=['function','action','find','name','extendTemplate','listenTo','isOpen','bind','buttonView','Compare\x20against\x20selected','isEnabled','source','change:isActionsDropdownOpen','execute','isVisible','_action','panelPosition','children','isActionsDropdownOpen','map','bindTemplate','locale','Name\x20this\x20revision','stopPropagation','model','class','items','set'];(function(_0x363f0b,_0x3ecc4c){const _0x35c083=function(_0x496645){while(--_0x496645){_0x363f0b['push'](_0x363f0b['shift']());}};_0x35c083(++_0x3ecc4c);}(_0x3ecc,0x148));const _0x35c0=function(_0x363f0b,_0x3ecc4c){_0x363f0b=_0x363f0b-0x0;let _0x35c083=_0x3ecc[_0x363f0b];return _0x35c083;};import{Collection as _0x2ec760}from'ckeditor5/src/utils';import{icons as _0x1f4cf4}from'ckeditor5/src/core';import{Model as _0x7944ee,addListToDropdown as _0x1219bd,createDropdown as _0x551bd3}from'ckeditor5/src/ui';import{getTranslation as _0x526d9a}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3989ba,_0x16550b){const _0x3c794d=_0x3989ba[_0x35c0('0x0')],_0x5e7409=_0x3989ba[_0x35c0('0x1')],_0x366638=_0x551bd3(_0x5e7409);_0x366638[_0x35c0('0x18')]='sw';const _0xed2f1e=function(_0x255626,_0x45cfb9){const _0x57b639=function(_0x14968c,_0x1580e6){const _0x15198b=_0x14968c['locale'],_0x24271b={'Compare\x20against\x20selected':_0x526d9a(_0x15198b,_0x35c0('0x11')),'Name\x20this\x20revision':_0x526d9a(_0x15198b,_0x35c0('0x2')),'Restore\x20this\x20revision':_0x526d9a(_0x15198b,'Restore\x20this\x20revision')};return _0x1580e6[_0x35c0('0x1b')](_0x5c63f1=>{const _0x8417cd=_0x24271b[_0x5c63f1['name']];return _0x8417cd&&_0x8417cd!==_0x5c63f1[_0x35c0('0xb')]&&(_0x5c63f1[_0x35c0('0xb')]=_0x8417cd),_0x5c63f1;});}(_0x255626,_0x45cfb9),_0x2e7a6f=new _0x2ec760();for(const _0x5f55c8 of _0x57b639){const _0x5cebb6={'type':'button','model':new _0x7944ee({'label':_0x5f55c8[_0x35c0('0xb')],'class':_0x5f55c8[_0x35c0('0x5')],'withText':!0x0,'_action':_0x5f55c8[_0x35c0('0x9')]})};_0x5cebb6[_0x35c0('0x4')][_0x35c0('0xf')](_0x35c0('0x12'))['to'](_0x255626,'isActionsDropdownOpen',_0x40a914=>_0x35c0('0x8')!=typeof _0x5f55c8[_0x35c0('0x12')]||(!_0x40a914||_0x5f55c8[_0x35c0('0x12')](_0x255626))),_0x2e7a6f['add'](_0x5cebb6);}return _0x2e7a6f;}(_0x3989ba,_0x16550b);return _0x3989ba[_0x35c0('0xf')]('isActionsDropdownOpen')['to'](_0x366638,_0x35c0('0xe')),_0x366638[_0x35c0('0x10')][_0x35c0('0x7')]({'label':_0x526d9a(_0x5e7409,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1f4cf4['threeVerticalDots']}),_0x366638[_0x35c0('0xc')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3c794d['if'](_0x35c0('0x1a'),'ck-on')]},'on':{'click':_0x3c794d['to'](_0x57e110=>_0x57e110[_0x35c0('0x3')]())}}),_0x366638['on'](_0x35c0('0x15'),_0x309d9d=>{_0x3989ba['isReady']&&_0x35c0('0x8')==typeof _0x309d9d[_0x35c0('0x13')][_0x35c0('0x17')]&&_0x309d9d['source']['_action'](_0x3989ba);}),_0x1219bd(_0x366638,_0xed2f1e),_0x366638[_0x35c0('0xd')](_0x3989ba,_0x35c0('0x14'),(_0x47b051,_0x3a1f87,_0x1e2f94)=>{if(_0x1e2f94)for(const _0x15a402 of _0x366638['listView'][_0x35c0('0x6')]){const _0xbf5d23=_0x15a402[_0x35c0('0x19')]['first'],_0x11fd16=_0x16550b[_0x35c0('0xa')](_0x2bd606=>_0x2bd606[_0x35c0('0x9')]===_0xbf5d23[_0x35c0('0x17')])[_0x35c0('0x16')];_0x15a402['isVisible']=void 0x0===_0x11fd16||_0x11fd16(_0x3989ba);}}),_0x366638;}
23
+ const _0x42ea=['locale','stopPropagation','button','model','Name\x20this\x20revision','isActionsDropdownOpen','function','listenTo','isReady','Show\x20more\x20items','ck-revision-history-sidebar__revision__actions','execute','listView','_action','isVisible','bindTemplate','Compare\x20against\x20selected','find','set','first','name','isEnabled','Restore\x20this\x20revision','bind','change:isActionsDropdownOpen','source','action','add'];(function(_0x563f97,_0x42eabd){const _0x46e251=function(_0x494269){while(--_0x494269){_0x563f97['push'](_0x563f97['shift']());}};_0x46e251(++_0x42eabd);}(_0x42ea,0x1ce));const _0x46e2=function(_0x563f97,_0x42eabd){_0x563f97=_0x563f97-0x0;let _0x46e251=_0x42ea[_0x563f97];return _0x46e251;};import{Collection as _0x3c009d}from'ckeditor5/src/utils';import{icons as _0x1ff81b}from'ckeditor5/src/core';import{Model as _0x5e9d6f,addListToDropdown as _0x3eb562,createDropdown as _0x4a881b}from'ckeditor5/src/ui';import{getTranslation as _0x402266}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4abc39,_0x42d328){const _0x24d6b5=_0x4abc39[_0x46e2('0x1')],_0x12b73d=_0x4abc39[_0x46e2('0xe')],_0x589417=_0x4a881b(_0x12b73d);_0x589417['panelPosition']='sw';const _0x20d0a8=function(_0x342ced,_0x6dbb47){const _0x28a402=function(_0x49c85e,_0x355ebe){const _0x2b04c5=_0x49c85e[_0x46e2('0xe')],_0x16606b={'Compare\x20against\x20selected':_0x402266(_0x2b04c5,_0x46e2('0x2')),'Name\x20this\x20revision':_0x402266(_0x2b04c5,_0x46e2('0x12')),'Restore\x20this\x20revision':_0x402266(_0x2b04c5,_0x46e2('0x8'))};return _0x355ebe['map'](_0x342639=>{const _0x32979b=_0x16606b[_0x342639['name']];return _0x32979b&&_0x32979b!==_0x342639[_0x46e2('0x6')]&&(_0x342639[_0x46e2('0x6')]=_0x32979b),_0x342639;});}(_0x342ced,_0x6dbb47),_0x829416=new _0x3c009d();for(const _0x3fd94a of _0x28a402){const _0x2f43bb={'type':_0x46e2('0x10'),'model':new _0x5e9d6f({'label':_0x3fd94a[_0x46e2('0x6')],'class':_0x3fd94a['class'],'withText':!0x0,'_action':_0x3fd94a[_0x46e2('0xc')]})};_0x2f43bb[_0x46e2('0x11')][_0x46e2('0x9')]('isEnabled')['to'](_0x342ced,_0x46e2('0x13'),_0x18051d=>_0x46e2('0x14')!=typeof _0x3fd94a[_0x46e2('0x7')]||(!_0x18051d||_0x3fd94a[_0x46e2('0x7')](_0x342ced))),_0x829416[_0x46e2('0xd')](_0x2f43bb);}return _0x829416;}(_0x4abc39,_0x42d328);return _0x4abc39[_0x46e2('0x9')]('isActionsDropdownOpen')['to'](_0x589417,'isOpen'),_0x589417['buttonView'][_0x46e2('0x4')]({'label':_0x402266(_0x12b73d,_0x46e2('0x17')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ff81b['threeVerticalDots']}),_0x589417['extendTemplate']({'attributes':{'class':[_0x46e2('0x18'),_0x24d6b5['if'](_0x46e2('0x13'),'ck-on')]},'on':{'click':_0x24d6b5['to'](_0x56ac25=>_0x56ac25[_0x46e2('0xf')]())}}),_0x589417['on'](_0x46e2('0x19'),_0x2bed9d=>{_0x4abc39[_0x46e2('0x16')]&&'function'==typeof _0x2bed9d[_0x46e2('0xb')][_0x46e2('0x1b')]&&_0x2bed9d[_0x46e2('0xb')]['_action'](_0x4abc39);}),_0x3eb562(_0x589417,_0x20d0a8),_0x589417[_0x46e2('0x15')](_0x4abc39,_0x46e2('0xa'),(_0x2e8f70,_0x3cf401,_0xdb15ca)=>{if(_0xdb15ca)for(const _0x7c4e08 of _0x589417[_0x46e2('0x1a')]['items']){const _0x4cc89c=_0x7c4e08['children'][_0x46e2('0x5')],_0x441ac5=_0x42d328[_0x46e2('0x3')](_0x116791=>_0x116791[_0x46e2('0xc')]===_0x4cc89c[_0x46e2('0x1b')])[_0x46e2('0x0')];_0x7c4e08[_0x46e2('0x0')]=void 0x0===_0x441ac5||_0x441ac5(_0x4abc39);}}),_0x589417;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d74=['set','Revision\x20creator','push','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','setTemplate','span','name'];(function(_0x28bf64,_0x2d74e5){const _0x591f74=function(_0x22c065){while(--_0x22c065){_0x28bf64['push'](_0x28bf64['shift']());}};_0x591f74(++_0x2d74e5);}(_0x2d74,0x10f));const _0x591f=function(_0x28bf64,_0x2d74e5){_0x28bf64=_0x28bf64-0x0;let _0x591f74=_0x2d74[_0x28bf64];return _0x591f74;};import{View as _0x36a30b,IconView as _0x4ee893}from'ckeditor5/src/ui';import{getTranslation as _0xff32ed}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x12cd61 from'../../../theme/icons/user.svg';export default class ti extends _0x36a30b{constructor(_0x17c7b9,_0x239041,_0x441fc4){super(_0x17c7b9);const _0x5be20c=new _0x4ee893();_0x5be20c[_0x591f('0x1')]({'content':_0x12cd61,'viewBox':'0\x200\x2011\x2010'});const _0x383076=['ck','ck-revision-history-sidebar__revision-author'];_0x441fc4&&_0x383076[_0x591f('0x3')](_0x591f('0x4'));const _0x3cc6ac=[{'tag':_0x591f('0x7'),'attributes':{'class':['ck',_0x591f('0x5')],'title':_0xff32ed(_0x17c7b9,_0x441fc4?_0x591f('0x2'):'Revision\x20author')},'children':[_0x5be20c,_0x239041[_0x591f('0x0')]]}];this[_0x591f('0x6')]({'tag':'li','attributes':{'class':_0x383076},'children':_0x3cc6ac});}}
23
+ const _0xae4b=['push','span','setTemplate','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','Revision\x20creator','name','Revision\x20author'];(function(_0x4800bd,_0xae4ba3){const _0x2b5f83=function(_0x1926e9){while(--_0x1926e9){_0x4800bd['push'](_0x4800bd['shift']());}};_0x2b5f83(++_0xae4ba3);}(_0xae4b,0x192));const _0x2b5f=function(_0x4800bd,_0xae4ba3){_0x4800bd=_0x4800bd-0x0;let _0x2b5f83=_0xae4b[_0x4800bd];return _0x2b5f83;};import{View as _0x57bece,IconView as _0x328087}from'ckeditor5/src/ui';import{getTranslation as _0xc79a50}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1afb81 from'../../../theme/icons/user.svg';export default class ti extends _0x57bece{constructor(_0x57d835,_0x1b455d,_0x585121){super(_0x57d835);const _0x4b1496=new _0x328087();_0x4b1496['set']({'content':_0x1afb81,'viewBox':'0\x200\x2011\x2010'});const _0xc5c743=['ck',_0x2b5f('0x2')];_0x585121&&_0xc5c743[_0x2b5f('0x6')]('ck-revision-history-sidebar__revision-author_creator');const _0x3414c8=[{'tag':_0x2b5f('0x7'),'attributes':{'class':['ck',_0x2b5f('0x1')],'title':_0xc79a50(_0x57d835,_0x585121?_0x2b5f('0x3'):_0x2b5f('0x5'))},'children':[_0x4b1496,_0x1b455d[_0x2b5f('0x4')]]}];this[_0x2b5f('0x0')]({'tag':'li','attributes':{'class':_0xc5c743},'children':_0x3414c8});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1b84=['ck-revision-history-sidebar__revision-name','set','extendTemplate','Revision\x20name','span'];(function(_0x74e46e,_0x1b8493){var _0x1478a9=function(_0x4b484e){while(--_0x4b484e){_0x74e46e['push'](_0x74e46e['shift']());}};_0x1478a9(++_0x1b8493);}(_0x1b84,0x82));var _0x1478=function(_0x74e46e,_0x1b8493){_0x74e46e=_0x74e46e-0x0;var _0x1478a9=_0x1b84[_0x74e46e];return _0x1478a9;};import{LabeledFieldView as _0xb7cb2b}from'ckeditor5/src/ui';import{getTranslation as _0x14164e}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xb7cb2b{constructor(_0x5dbd6d,_0x5e206d){super(_0x5dbd6d,_0x5e206d),this[_0x1478('0x1')]({'label':_0x14164e(_0x5dbd6d,_0x1478('0x3'))}),this[_0x1478('0x2')]({'tag':_0x1478('0x4'),'attributes':{'class':[_0x1478('0x0')]}});}}
23
+ var _0x3089=['set','ck-revision-history-sidebar__revision-name','Revision\x20name','span','extendTemplate'];(function(_0x9cad6d,_0x3089ad){var _0x1239ad=function(_0x52618b){while(--_0x52618b){_0x9cad6d['push'](_0x9cad6d['shift']());}};_0x1239ad(++_0x3089ad);}(_0x3089,0x8d));var _0x1239=function(_0x9cad6d,_0x3089ad){_0x9cad6d=_0x9cad6d-0x0;var _0x1239ad=_0x3089[_0x9cad6d];return _0x1239ad;};import{LabeledFieldView as _0x230b37}from'ckeditor5/src/ui';import{getTranslation as _0x22d490}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x230b37{constructor(_0x1416ae,_0x22da9e){super(_0x1416ae,_0x22da9e),this[_0x1239('0x4')]({'label':_0x22d490(_0x1416ae,_0x1239('0x1'))}),this[_0x1239('0x3')]({'tag':_0x1239('0x2'),'attributes':{'class':[_0x1239('0x0')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c9a=['listenTo','ck-revision-history-sidebar__revision','closest','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isEnabled','select','filter','length','set','_createdAtFormatted','span','isHighlighted','isReady','srcElement','isActionsDropdownOpen','unshift','isSelected','map','value','name','element','fieldView','deselect','div','ck-revision-history-sidebar__revision__controls-wrapper','setTemplate','.ck-thread__remove-confirm','from','authors','render','extendTemplate','ck-reset','isConfirm','setName','fire','revisionActionsView','creator','ck-revision-history-sidebar__revision-authors','220','createdAt','bind','bindTemplate','ck-revision-history-sidebar__revision-wrapper','revisionNameView','ck-disabled'];(function(_0x32c8a0,_0x3c9a75){const _0x2f1a1d=function(_0x2ffee4){while(--_0x2ffee4){_0x32c8a0['push'](_0x32c8a0['shift']());}};_0x2f1a1d(++_0x3c9a75);}(_0x3c9a,0x139));const _0x2f1a=function(_0x32c8a0,_0x3c9a75){_0x32c8a0=_0x32c8a0-0x0;let _0x2f1a1d=_0x3c9a[_0x32c8a0];return _0x2f1a1d;};import{View as _0xd46608,createLabeledInputText as _0x1ede07}from'ckeditor5/src/ui';import{ConfirmMixin as _0x55d9e7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4e54d6 from'./revisionnameview';import _0x9a18e3 from'./revisionauthorview';import{dateToPrettyFormat as _0x6a888b}from'./utils';import{createActionsDropdownView as _0x3c5242}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x55d9e7(_0xd46608){constructor(_0x3714e6,_0x27325b,_0x3508a1){super(_0x3714e6);const _0x4c2ec6=this[_0x2f1a('0x2b')],_0x26730f=function(_0x30cd50,_0x18c337){const _0x38b097=Array[_0x2f1a('0x1d')](_0x18c337[_0x2f1a('0x1e')])[_0x2f1a('0x8')](_0x12b2e1=>_0x12b2e1!=_0x18c337[_0x2f1a('0x26')]);return _0x18c337[_0x2f1a('0x26')]&&_0x38b097[_0x2f1a('0x11')](_0x18c337[_0x2f1a('0x26')]),_0x38b097[_0x2f1a('0x13')](_0x16922a=>new _0x9a18e3(_0x30cd50,_0x16922a,_0x16922a==_0x18c337[_0x2f1a('0x26')]));}(_0x3714e6,_0x27325b);this['id']=_0x27325b['id'],this['_revision']=_0x27325b,this[_0x2f1a('0x2a')](_0x2f1a('0x15'),_0x2f1a('0x29'))['to'](_0x27325b),this[_0x2f1a('0x2a')](_0x2f1a('0xb'))['to'](this,_0x2f1a('0x29'),_0xa9669f=>_0xa9669f?_0x6a888b(_0x3714e6['uiLanguage'],_0xa9669f):void 0x0),this[_0x2f1a('0xa')](_0x2f1a('0x12'),!0x1),this['set'](_0x2f1a('0xd'),!0x1),this[_0x2f1a('0xa')]('isActionsDropdownOpen',!0x1),this[_0x2f1a('0xa')](_0x2f1a('0xe'),!0x1),this[_0x2f1a('0xa')](_0x2f1a('0x6'),!0x1),this[_0x2f1a('0x0')]=new _0x4e54d6(_0x3714e6,_0x1ede07),this[_0x2f1a('0x0')][_0x2f1a('0x17')][_0x2f1a('0x20')]({'attributes':{'maxlength':_0x2f1a('0x28')}}),this[_0x2f1a('0x0')]['fieldView'][_0x2f1a('0x2a')]('value','placeholder')['to'](this,'name','_createdAtFormatted'),this[_0x2f1a('0x0')][_0x2f1a('0x2a')](_0x2f1a('0x6'))['to'](this,_0x2f1a('0x12'),this,_0x2f1a('0x6'),(_0x35f508,_0x288a89)=>_0x35f508&&_0x288a89),this[_0x2f1a('0x25')]=_0x3508a1&&_0x3508a1[_0x2f1a('0x9')]?_0x3c5242(this,_0x3508a1):'',this[_0x2f1a('0x25')]&&this[_0x2f1a('0x25')][_0x2f1a('0x2a')](_0x2f1a('0x6'))['to'](this),this[_0x2f1a('0x1b')]({'tag':_0x2f1a('0x19'),'attributes':{'class':['ck',_0x2f1a('0x21'),_0x2f1a('0x2c'),_0x4c2ec6['if'](_0x2f1a('0x22'),_0x2f1a('0x5'))]},'children':[{'tag':_0x2f1a('0x19'),'attributes':{'class':['ck',_0x2f1a('0x21'),_0x2f1a('0x3'),_0x4c2ec6['if']('isEnabled',_0x2f1a('0x1'),_0x31ce9a=>!_0x31ce9a),_0x4c2ec6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4c2ec6['if'](_0x2f1a('0xd'),'ck-revision-history-sidebar__revision_highlighted'),_0x4c2ec6['if'](_0x2f1a('0x10'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x2f1a('0x0')],{'tag':_0x2f1a('0xc'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x4c2ec6['to'](_0x2f1a('0xb'))}]},{'tag':'div','attributes':{'class':['ck',_0x2f1a('0x1a')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2f1a('0x27')]},'children':_0x26730f}]},this[_0x2f1a('0x25')]],'on':{'click':_0x4c2ec6['to'](_0x5d1405=>{_0x5d1405[_0x2f1a('0xf')][_0x2f1a('0x4')](_0x2f1a('0x1c'))||this[_0x2f1a('0xe')]&&this[_0x2f1a('0x6')]&&this[_0x2f1a('0x24')](_0x2f1a('0x7'),{'id':this['id']});})}}]});}[_0x2f1a('0x1f')](){super[_0x2f1a('0x1f')]();const _0x4b01ff=this['revisionNameView'][_0x2f1a('0x17')][_0x2f1a('0x16')];this[_0x2f1a('0x2')](_0x4b01ff,'change',()=>{this[_0x2f1a('0x24')](_0x2f1a('0x23'),{'id':this['id'],'name':_0x4b01ff[_0x2f1a('0x14')]});});}[_0x2f1a('0x7')](){this['isSelected']=!0x0;}[_0x2f1a('0x18')](){this['isSelected']=!0x1;}['highlight'](){this[_0x2f1a('0xd')]=!0x0;}['unhighlight'](){this[_0x2f1a('0xd')]=!0x1;}}
23
+ const _0x28d0=['ck-revision-history-sidebar__revision-wrapper','revisionNameView','span','revisionActionsView','isReady','uiLanguage','ck-reset','fire','isActionsDropdownOpen','isEnabled','change','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','element','select','ck-revision-history-sidebar__revision-authors','fieldView','div','isHighlighted','length','ck-disabled','bind','ck-revision-history-sidebar__revision','value','isSelected','isConfirm','listenTo','authors','setName','createdAt','srcElement','creator','.ck-thread__remove-confirm','filter','placeholder','unhighlight','name','_createdAtFormatted','map','unshift','ck-revision-history-sidebar__revision__controls-wrapper','set','ck-revision-history-sidebar__revision_highlighted','from','render','bindTemplate','extendTemplate'];(function(_0x18fac3,_0x28d0c7){const _0x1e52f9=function(_0x15a9ee){while(--_0x15a9ee){_0x18fac3['push'](_0x18fac3['shift']());}};_0x1e52f9(++_0x28d0c7);}(_0x28d0,0xcd));const _0x1e52=function(_0x18fac3,_0x28d0c7){_0x18fac3=_0x18fac3-0x0;let _0x1e52f9=_0x28d0[_0x18fac3];return _0x1e52f9;};import{View as _0x372521,createLabeledInputText as _0x1bc2d5}from'ckeditor5/src/ui';import{ConfirmMixin as _0x30281a}from'ckeditor5-collaboration/src/collaboration-core';import _0x23bdf3 from'./revisionnameview';import _0x43556a from'./revisionauthorview';import{dateToPrettyFormat as _0x2ee31f}from'./utils';import{createActionsDropdownView as _0x224dd4}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x30281a(_0x372521){constructor(_0x299414,_0x1835fd,_0x529a84){super(_0x299414);const _0x335186=this[_0x1e52('0x1c')],_0x1a1fd7=function(_0x7feaad,_0x1677af){const _0x2e3ae0=Array[_0x1e52('0x1a')](_0x1677af[_0x1e52('0xa')])[_0x1e52('0x10')](_0x3a00ce=>_0x3a00ce!=_0x1677af[_0x1e52('0xe')]);return _0x1677af[_0x1e52('0xe')]&&_0x2e3ae0[_0x1e52('0x16')](_0x1677af[_0x1e52('0xe')]),_0x2e3ae0[_0x1e52('0x15')](_0x16bb1b=>new _0x43556a(_0x7feaad,_0x16bb1b,_0x16bb1b==_0x1677af[_0x1e52('0xe')]));}(_0x299414,_0x1835fd);this['id']=_0x1835fd['id'],this['_revision']=_0x1835fd,this['bind'](_0x1e52('0x13'),_0x1e52('0xc'))['to'](_0x1835fd),this[_0x1e52('0x4')](_0x1e52('0x14'))['to'](this,_0x1e52('0xc'),_0x5b8e75=>_0x5b8e75?_0x2ee31f(_0x299414[_0x1e52('0x23')],_0x5b8e75):void 0x0),this[_0x1e52('0x18')](_0x1e52('0x7'),!0x1),this[_0x1e52('0x18')]('isHighlighted',!0x1),this[_0x1e52('0x18')](_0x1e52('0x26'),!0x1),this[_0x1e52('0x18')](_0x1e52('0x22'),!0x1),this['set'](_0x1e52('0x27'),!0x1),this[_0x1e52('0x1f')]=new _0x23bdf3(_0x299414,_0x1bc2d5),this[_0x1e52('0x1f')][_0x1e52('0x2e')][_0x1e52('0x1d')]({'attributes':{'maxlength':_0x1e52('0x2a')}}),this['revisionNameView'][_0x1e52('0x2e')][_0x1e52('0x4')](_0x1e52('0x6'),_0x1e52('0x11'))['to'](this,_0x1e52('0x13'),_0x1e52('0x14')),this[_0x1e52('0x1f')][_0x1e52('0x4')](_0x1e52('0x27'))['to'](this,_0x1e52('0x7'),this,_0x1e52('0x27'),(_0x37c6ca,_0x35b4cf)=>_0x37c6ca&&_0x35b4cf),this['revisionActionsView']=_0x529a84&&_0x529a84[_0x1e52('0x2')]?_0x224dd4(this,_0x529a84):'',this[_0x1e52('0x21')]&&this['revisionActionsView'][_0x1e52('0x4')](_0x1e52('0x27'))['to'](this),this['setTemplate']({'tag':_0x1e52('0x0'),'attributes':{'class':['ck',_0x1e52('0x24'),_0x1e52('0x1e'),_0x335186['if'](_0x1e52('0x8'),_0x1e52('0x29'))]},'children':[{'tag':_0x1e52('0x0'),'attributes':{'class':['ck',_0x1e52('0x24'),_0x1e52('0x5'),_0x335186['if']('isEnabled',_0x1e52('0x3'),_0x4f273b=>!_0x4f273b),_0x335186['if'](_0x1e52('0x7'),'ck-revision-history-sidebar__revision_selected'),_0x335186['if'](_0x1e52('0x1'),_0x1e52('0x19')),_0x335186['if'](_0x1e52('0x26'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':_0x1e52('0x20'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x335186['to'](_0x1e52('0x14'))}]},{'tag':_0x1e52('0x0'),'attributes':{'class':['ck',_0x1e52('0x17')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1e52('0x2d')]},'children':_0x1a1fd7}]},this['revisionActionsView']],'on':{'click':_0x335186['to'](_0x1e6296=>{_0x1e6296[_0x1e52('0xd')]['closest'](_0x1e52('0xf'))||this[_0x1e52('0x22')]&&this[_0x1e52('0x27')]&&this[_0x1e52('0x25')](_0x1e52('0x2c'),{'id':this['id']});})}}]});}['render'](){super[_0x1e52('0x1b')]();const _0x45b79a=this[_0x1e52('0x1f')]['fieldView'][_0x1e52('0x2b')];this[_0x1e52('0x9')](_0x45b79a,_0x1e52('0x28'),()=>{this[_0x1e52('0x25')](_0x1e52('0xb'),{'id':this['id'],'name':_0x45b79a[_0x1e52('0x6')]});});}[_0x1e52('0x2c')](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this[_0x1e52('0x1')]=!0x0;}[_0x1e52('0x12')](){this[_0x1e52('0x1')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3585=['isVisible','ck-hidden','click','set','span','ck-revision-history-sidebar__subrevision-collapser','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','_isCollapsed','false'];(function(_0x2dad78,_0x358598){const _0x1315d4=function(_0xb3bc3b){while(--_0xb3bc3b){_0x2dad78['push'](_0x2dad78['shift']());}};_0x1315d4(++_0x358598);}(_0x3585,0x124));const _0x1315=function(_0x2dad78,_0x358598){_0x2dad78=_0x2dad78-0x0;let _0x1315d4=_0x3585[_0x2dad78];return _0x1315d4;};import{View as _0x96397d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x96397d{constructor(_0xfd1d1d){super(_0xfd1d1d);const _0x463d2d=this['bindTemplate'];this[_0x1315('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1315('0x4')]({'tag':'span','attributes':{'class':['ck',_0x1315('0x3'),_0x463d2d['if'](_0x1315('0x8'),_0x1315('0x9'),_0x110e57=>!_0x110e57),_0x463d2d['if'](_0x1315('0x6'),_0x1315('0x5'))],'role':'button','aria-pressed':_0x463d2d['to']('_isCollapsed',_0x28ca7e=>_0x28ca7e?_0x1315('0x7'):'true')},'children':[{'tag':_0x1315('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x463d2d['to'](_0x1315('0x0'))}});}['toggle'](){this['_isCollapsed']=!this['_isCollapsed'];}}
23
+ const _0x1144=['set','ck-revision-history-sidebar__subrevision-collapser__inner','setTemplate','_isCollapsed','true','bindTemplate','span','isVisible','button','false','toggle','click'];(function(_0x2eb375,_0x1144e9){const _0x5266cf=function(_0x263649){while(--_0x263649){_0x2eb375['push'](_0x2eb375['shift']());}};_0x5266cf(++_0x1144e9);}(_0x1144,0x128));const _0x5266=function(_0x2eb375,_0x1144e9){_0x2eb375=_0x2eb375-0x0;let _0x5266cf=_0x1144[_0x2eb375];return _0x5266cf;};import{View as _0x1e048b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1e048b{constructor(_0xa924bb){super(_0xa924bb);const _0x1ed86e=this[_0x5266('0x9')];this[_0x5266('0x4')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5266('0x6')]({'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x1ed86e['if'](_0x5266('0xb'),'ck-hidden',_0x1332b0=>!_0x1332b0),_0x1ed86e['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x5266('0x0'),'aria-pressed':_0x1ed86e['to'](_0x5266('0x7'),_0x50dd01=>_0x50dd01?_0x5266('0x1'):_0x5266('0x8'))},'children':[{'tag':_0x5266('0xa'),'attributes':{'class':['ck',_0x5266('0x5')]}}],'on':{'click':_0x1ed86e['to'](_0x5266('0x3'))}});}[_0x5266('0x2')](){this['_isCollapsed']=!this[_0x5266('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f1e=['uiLanguage','ck-revision-history-sidebar__revision-authors','set','_parentRevisionId','deselect','fire','ck-reset','createdAt','ck-revision-history-sidebar__revision','select','ck-revision-history-sidebar__revision__date','isSelected','_createdAtFormatted','creator','bind'];(function(_0x45824f,_0x5f1e10){const _0x1aab36=function(_0x46f211){while(--_0x46f211){_0x45824f['push'](_0x45824f['shift']());}};_0x1aab36(++_0x5f1e10);}(_0x5f1e,0x188));const _0x1aab=function(_0x45824f,_0x5f1e10){_0x45824f=_0x45824f-0x0;let _0x1aab36=_0x5f1e[_0x45824f];return _0x1aab36;};import{View as _0x361cf9}from'ckeditor5/src/ui';import _0x1b3851 from'./revisionauthorview';import{dateToPrettyFormat as _0x58855a}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x361cf9{constructor(_0x107c20,_0x3053ef,_0x5d8481){super(_0x107c20);const _0x1c901a=this['bindTemplate'];this['id']=_0x3053ef['id'],this[_0x1aab('0xc')](_0x1aab('0x5'))['to'](_0x3053ef),this[_0x1aab('0x0')](_0x1aab('0x9'),!0x1),this['bind'](_0x1aab('0xa'))['to'](this,_0x1aab('0x5'),_0x1b9a40=>_0x1b9a40?_0x58855a(_0x107c20[_0x1aab('0xd')],_0x1b9a40):void 0x0),this[_0x1aab('0x1')]=_0x5d8481,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x1aab('0x4'),_0x1aab('0x6'),'ck-revision-history-sidebar__subrevision',_0x1c901a['if'](_0x1aab('0x9'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x1aab('0x8')]},'children':[{'text':_0x1c901a['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x1aab('0xe')]},'children':[new _0x1b3851(_0x107c20,_0x3053ef[_0x1aab('0xb')],!0x0)]}],'on':{'click':_0x1c901a['to'](this[_0x1aab('0x7')]['bind'](this))}});}[_0x1aab('0x7')](){this[_0x1aab('0x9')]=!0x0,this[_0x1aab('0x3')](_0x1aab('0x7'),{'parentId':this[_0x1aab('0x1')]});}[_0x1aab('0x2')](){this['isSelected']=!0x1;}}
23
+ const _0x186c=['isSelected','select','bindTemplate','uiLanguage','createdAt','bind','ck-revision-history-sidebar__subrevision','span','ck-revision-history-sidebar__revision-authors','_createdAtFormatted','deselect','fire','_parentRevisionId','creator','ck-reset','ck-revision-history-sidebar__revision'];(function(_0x505ada,_0x186c92){const _0x5b4d85=function(_0x27ea2e){while(--_0x27ea2e){_0x505ada['push'](_0x505ada['shift']());}};_0x5b4d85(++_0x186c92);}(_0x186c,0x1b5));const _0x5b4d=function(_0x505ada,_0x186c92){_0x505ada=_0x505ada-0x0;let _0x5b4d85=_0x186c[_0x505ada];return _0x5b4d85;};import{View as _0x158cd1}from'ckeditor5/src/ui';import _0x1b51a7 from'./revisionauthorview';import{dateToPrettyFormat as _0x5d3f36}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x158cd1{constructor(_0x2557d5,_0x419310,_0x3b8a10){super(_0x2557d5);const _0x239bdd=this[_0x5b4d('0xd')];this['id']=_0x419310['id'],this[_0x5b4d('0x0')](_0x5b4d('0xf'))['to'](_0x419310),this['set']('isSelected',!0x1),this[_0x5b4d('0x0')](_0x5b4d('0x4'))['to'](this,_0x5b4d('0xf'),_0x37dd42=>_0x37dd42?_0x5d3f36(_0x2557d5[_0x5b4d('0xe')],_0x37dd42):void 0x0),this[_0x5b4d('0x7')]=_0x3b8a10,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x5b4d('0x9'),_0x5b4d('0xa'),_0x5b4d('0x1'),_0x239bdd['if'](_0x5b4d('0xb'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x5b4d('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x239bdd['to'](_0x5b4d('0x4'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5b4d('0x3')]},'children':[new _0x1b51a7(_0x2557d5,_0x419310[_0x5b4d('0x8')],!0x0)]}],'on':{'click':_0x239bdd['to'](this[_0x5b4d('0xc')][_0x5b4d('0x0')](this))}});}[_0x5b4d('0xc')](){this['isSelected']=!0x0,this[_0x5b4d('0x6')](_0x5b4d('0xc'),{'parentId':this[_0x5b4d('0x7')]});}[_0x5b4d('0x5')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1f19=['toLocaleTimeString','numeric','long','toLocaleDateString'];(function(_0x505754,_0x1f199c){var _0x5a4101=function(_0x3af230){while(--_0x3af230){_0x505754['push'](_0x505754['shift']());}};_0x5a4101(++_0x1f199c);}(_0x1f19,0x1b5));var _0x5a41=function(_0x505754,_0x1f199c){_0x505754=_0x505754-0x0;var _0x5a4101=_0x1f19[_0x505754];return _0x5a4101;};export function dateToPrettyFormat(_0x3ac531,_0x255e85){return _0x255e85[_0x5a41('0x2')](_0x3ac531,{'month':_0x5a41('0x1'),'day':_0x5a41('0x0')})+',\x20'+_0x255e85[_0x5a41('0x3')](_0x3ac531,{'hour':_0x5a41('0x0'),'minute':_0x5a41('0x0')});}
23
+ var _0x3195=['long','numeric','toLocaleDateString','toLocaleTimeString'];(function(_0x55bba4,_0x31951c){var _0x29451b=function(_0x5cb741){while(--_0x5cb741){_0x55bba4['push'](_0x55bba4['shift']());}};_0x29451b(++_0x31951c);}(_0x3195,0x1cc));var _0x2945=function(_0x55bba4,_0x31951c){_0x55bba4=_0x55bba4-0x0;var _0x29451b=_0x3195[_0x55bba4];return _0x29451b;};export function dateToPrettyFormat(_0x4c9864,_0x2f018e){return _0x2f018e[_0x2945('0x2')](_0x4c9864,{'month':_0x2945('0x0'),'day':'numeric'})+',\x20'+_0x2f018e[_0x2945('0x3')](_0x4c9864,{'hour':_0x2945('0x1'),'minute':_0x2945('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5258=['revisionNameInputValue','add','saveButtonView','revisionNameInputView','arrowleft','_createRevisionNameInput','revisionName','render','ck-responsive-form','listenTo','delegate','_createButton','check','Name\x20of\x20the\x20revision\x20(optional)','fieldView','trim','tab','setTemplate','_focusCycler','shift\x20+\x20tab','locale','focusTracker','value','cancelButtonView','keystrokes','type','focusFirst','ck-button-cancel','set','_focusables','cancel','forEach','ck-revision-history-save-revision-form','focus','arrowup','reset','element','ck-button-save','Cancel'];(function(_0x48ce20,_0x525892){const _0x3035c2=function(_0x120116){while(--_0x120116){_0x48ce20['push'](_0x48ce20['shift']());}};_0x3035c2(++_0x525892);}(_0x5258,0x196));const _0x3035=function(_0x48ce20,_0x525892){_0x48ce20=_0x48ce20-0x0;let _0x3035c2=_0x5258[_0x48ce20];return _0x3035c2;};import{icons as _0x2ea65d}from'ckeditor5/src/core';import{ButtonView as _0x279106,FocusCycler as _0x10587a,LabeledFieldView as _0x451609,View as _0x24175c,ViewCollection as _0x2cbaf1,createLabeledInputText as _0x29d283,injectCssTransitionDisabler as _0x3ad813,submitHandler as _0x4645a4}from'ckeditor5/src/ui';import{FocusTracker as _0x217453,KeystrokeHandler as _0x2f7cef}from'ckeditor5/src/utils';import{getTranslation as _0x56ddcf}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x24175c{constructor(_0x5a27d7){super(_0x5a27d7),this[_0x3035('0x5')]=new _0x217453(),this[_0x3035('0x8')]=new _0x2f7cef(),this[_0x3035('0xc')]('revisionNameInputValue',''),this[_0x3035('0x1a')]=this['_createRevisionNameInput'](),this[_0x3035('0x19')]=this['_createButton'](_0x56ddcf(_0x5a27d7,'Save'),_0x2ea65d[_0x3035('0x23')],_0x3035('0x15')),this[_0x3035('0x19')][_0x3035('0x9')]='submit',this[_0x3035('0x7')]=this[_0x3035('0x22')](_0x56ddcf(_0x5a27d7,_0x3035('0x16')),_0x2ea65d[_0x3035('0xe')],_0x3035('0xb'),_0x3035('0xe')),this[_0x3035('0xd')]=new _0x2cbaf1(),this[_0x3035('0x2')]=new _0x10587a({'focusables':this[_0x3035('0xd')],'focusTracker':this[_0x3035('0x5')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x3035('0x3'),'focusNext':_0x3035('0x0')}}),this[_0x3035('0x1')]({'tag':'form','attributes':{'class':['ck',_0x3035('0x10'),_0x3035('0x1f')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this[_0x3035('0x7')]]}),_0x3ad813(this);}[_0x3035('0x1e')](){super['render'](),_0x4645a4({'view':this}),([this[_0x3035('0x1a')],this[_0x3035('0x19')],this[_0x3035('0x7')]][_0x3035('0xf')](_0x2539e4=>{this['_focusables'][_0x3035('0x18')](_0x2539e4),this[_0x3035('0x5')]['add'](_0x2539e4[_0x3035('0x14')]);}),this[_0x3035('0x8')][_0x3035('0x20')](this[_0x3035('0x14')]));const _0x4cccb8=_0x24aba3=>_0x24aba3['stopPropagation']();this[_0x3035('0x8')][_0x3035('0xc')]('arrowright',_0x4cccb8),this['keystrokes'][_0x3035('0xc')](_0x3035('0x1b'),_0x4cccb8),this[_0x3035('0x8')][_0x3035('0xc')](_0x3035('0x12'),_0x4cccb8),this[_0x3035('0x8')]['set']('arrowdown',_0x4cccb8);}[_0x3035('0x11')](){this['_focusCycler'][_0x3035('0xa')]();}get[_0x3035('0x1d')](){return this[_0x3035('0x1a')][_0x3035('0x25')][_0x3035('0x14')][_0x3035('0x6')][_0x3035('0x26')]();}set[_0x3035('0x1d')](_0x370e76){this[_0x3035('0x1a')][_0x3035('0x25')][_0x3035('0x14')]['value']=_0x370e76[_0x3035('0x26')]();}[_0x3035('0x13')](){this['revisionNameInputView']['fieldView'][_0x3035('0x14')][_0x3035('0x6')]='';}[_0x3035('0x1c')](){const _0xd5a264=new _0x451609(this[_0x3035('0x4')],_0x29d283),_0xc041f8=_0xd5a264['fieldView'];return _0xc041f8['extendTemplate']({'attributes':{'maxlength':'220'}}),_0xd5a264['label']=_0x56ddcf(this[_0x3035('0x4')],_0x3035('0x24')),_0xc041f8['on']('input',()=>{this[_0x3035('0x17')]=_0xc041f8['element'][_0x3035('0x6')][_0x3035('0x26')]();}),_0xd5a264;}[_0x3035('0x22')](_0xd45ebe,_0x35e292,_0x20c22e,_0x20fb60){const _0x2b22c4=new _0x279106(this[_0x3035('0x4')]);return _0x2b22c4[_0x3035('0xc')]({'label':_0xd45ebe,'icon':_0x35e292,'tooltip':!0x0}),_0x2b22c4['extendTemplate']({'attributes':{'class':_0x20c22e}}),_0x20fb60&&_0x2b22c4[_0x3035('0x21')]('execute')['to'](this,_0x20fb60),_0x2b22c4;}}
23
+ const _0x2d3a=['trim','cancelButtonView','220','extendTemplate','focusTracker','revisionNameInputValue','setTemplate','arrowdown','submit','render','set','ck-responsive-form','ck-button-save','value','execute','label','tab','delegate','arrowright','_createRevisionNameInput','keystrokes','element','forEach','saveButtonView','locale','check','_createButton','shift\x20+\x20tab','cancel','revisionName','revisionNameInputView','input','form','Cancel','ck-button-cancel','type','add','fieldView','reset'];(function(_0x8ccbd7,_0x2d3a9a){const _0x1c4678=function(_0x33cbe7){while(--_0x33cbe7){_0x8ccbd7['push'](_0x8ccbd7['shift']());}};_0x1c4678(++_0x2d3a9a);}(_0x2d3a,0x88));const _0x1c46=function(_0x8ccbd7,_0x2d3a9a){_0x8ccbd7=_0x8ccbd7-0x0;let _0x1c4678=_0x2d3a[_0x8ccbd7];return _0x1c4678;};import{icons as _0x1a7834}from'ckeditor5/src/core';import{ButtonView as _0x37183c,FocusCycler as _0x8aa539,LabeledFieldView as _0x5e0e9d,View as _0x11942f,ViewCollection as _0x16a81b,createLabeledInputText as _0x297ae0,injectCssTransitionDisabler as _0x4030a0,submitHandler as _0x30b48c}from'ckeditor5/src/ui';import{FocusTracker as _0x204112,KeystrokeHandler as _0x365117}from'ckeditor5/src/utils';import{getTranslation as _0x1ff39c}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x11942f{constructor(_0x3dde9a){super(_0x3dde9a),this['focusTracker']=new _0x204112(),this[_0x1c46('0x1')]=new _0x365117(),this['set'](_0x1c46('0x19'),''),this[_0x1c46('0xb')]=this[_0x1c46('0x0')](),this[_0x1c46('0x4')]=this['_createButton'](_0x1ff39c(_0x3dde9a,'Save'),_0x1a7834[_0x1c46('0x6')],_0x1c46('0x20')),this[_0x1c46('0x4')][_0x1c46('0x10')]=_0x1c46('0x1c'),this['cancelButtonView']=this[_0x1c46('0x7')](_0x1ff39c(_0x3dde9a,_0x1c46('0xe')),_0x1a7834[_0x1c46('0x9')],_0x1c46('0xf'),_0x1c46('0x9')),this['_focusables']=new _0x16a81b(),this['_focusCycler']=new _0x8aa539({'focusables':this['_focusables'],'focusTracker':this[_0x1c46('0x18')],'keystrokeHandler':this[_0x1c46('0x1')],'actions':{'focusPrevious':_0x1c46('0x8'),'focusNext':_0x1c46('0x24')}}),this[_0x1c46('0x1a')]({'tag':_0x1c46('0xd'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x1c46('0x1f')],'tabindex':'-1'},'children':[this[_0x1c46('0xb')],this[_0x1c46('0x4')],this[_0x1c46('0x15')]]}),_0x4030a0(this);}['render'](){super[_0x1c46('0x1d')](),_0x30b48c({'view':this}),([this[_0x1c46('0xb')],this['saveButtonView'],this[_0x1c46('0x15')]][_0x1c46('0x3')](_0x3b6c09=>{this['_focusables']['add'](_0x3b6c09),this[_0x1c46('0x18')][_0x1c46('0x11')](_0x3b6c09[_0x1c46('0x2')]);}),this['keystrokes']['listenTo'](this[_0x1c46('0x2')]));const _0x2fee7c=_0x4257b6=>_0x4257b6['stopPropagation']();this[_0x1c46('0x1')][_0x1c46('0x1e')](_0x1c46('0x26'),_0x2fee7c),this['keystrokes'][_0x1c46('0x1e')]('arrowleft',_0x2fee7c),this[_0x1c46('0x1')][_0x1c46('0x1e')]('arrowup',_0x2fee7c),this['keystrokes'][_0x1c46('0x1e')](_0x1c46('0x1b'),_0x2fee7c);}['focus'](){this['_focusCycler']['focusFirst']();}get[_0x1c46('0xa')](){return this[_0x1c46('0xb')][_0x1c46('0x12')][_0x1c46('0x2')]['value']['trim']();}set[_0x1c46('0xa')](_0x5d4693){this[_0x1c46('0xb')][_0x1c46('0x12')][_0x1c46('0x2')][_0x1c46('0x21')]=_0x5d4693[_0x1c46('0x14')]();}[_0x1c46('0x13')](){this['revisionNameInputView'][_0x1c46('0x12')]['element'][_0x1c46('0x21')]='';}['_createRevisionNameInput'](){const _0x976f89=new _0x5e0e9d(this[_0x1c46('0x5')],_0x297ae0),_0x3c98b6=_0x976f89[_0x1c46('0x12')];return _0x3c98b6[_0x1c46('0x17')]({'attributes':{'maxlength':_0x1c46('0x16')}}),_0x976f89[_0x1c46('0x23')]=_0x1ff39c(this['locale'],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3c98b6['on'](_0x1c46('0xc'),()=>{this['revisionNameInputValue']=_0x3c98b6['element']['value'][_0x1c46('0x14')]();}),_0x976f89;}[_0x1c46('0x7')](_0x289ea8,_0x2633da,_0x4d5d6b,_0x5aa727){const _0x2c856f=new _0x37183c(this[_0x1c46('0x5')]);return _0x2c856f[_0x1c46('0x1e')]({'label':_0x289ea8,'icon':_0x2633da,'tooltip':!0x0}),_0x2c856f['extendTemplate']({'attributes':{'class':_0x4d5d6b}}),_0x5aa727&&_0x2c856f[_0x1c46('0x25')](_0x1c46('0x22'))['to'](this,_0x5aa727),_0x2c856f;}}