@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230829.0 → 0.0.0-nightly-20230831.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 (88) hide show
  1. package/build/revision-history.js +1 -1
  2. package/lang/translations/af.po +1 -0
  3. package/lang/translations/ar.po +1 -0
  4. package/lang/translations/az.po +1 -0
  5. package/lang/translations/bg.po +1 -0
  6. package/lang/translations/bn.po +1 -0
  7. package/lang/translations/bs.po +1 -0
  8. package/lang/translations/ca.po +1 -0
  9. package/lang/translations/cs.po +1 -0
  10. package/lang/translations/da.po +1 -0
  11. package/lang/translations/de-ch.po +1 -0
  12. package/lang/translations/de.po +1 -0
  13. package/lang/translations/el.po +1 -0
  14. package/lang/translations/en-au.po +1 -0
  15. package/lang/translations/en-gb.po +1 -0
  16. package/lang/translations/en.po +1 -0
  17. package/lang/translations/es-co.po +1 -0
  18. package/lang/translations/es.po +1 -0
  19. package/lang/translations/et.po +1 -0
  20. package/lang/translations/fa.po +1 -0
  21. package/lang/translations/fi.po +1 -0
  22. package/lang/translations/fr.po +1 -0
  23. package/lang/translations/gl.po +1 -0
  24. package/lang/translations/he.po +1 -0
  25. package/lang/translations/hi.po +1 -0
  26. package/lang/translations/hr.po +1 -0
  27. package/lang/translations/hu.po +1 -0
  28. package/lang/translations/id.po +1 -0
  29. package/lang/translations/it.po +1 -0
  30. package/lang/translations/ja.po +1 -0
  31. package/lang/translations/jv.po +1 -0
  32. package/lang/translations/ko.po +1 -0
  33. package/lang/translations/ku.po +1 -0
  34. package/lang/translations/lt.po +1 -0
  35. package/lang/translations/lv.po +1 -0
  36. package/lang/translations/ms.po +1 -0
  37. package/lang/translations/ne.po +1 -0
  38. package/lang/translations/nl.po +1 -0
  39. package/lang/translations/no.po +1 -0
  40. package/lang/translations/pl.po +1 -0
  41. package/lang/translations/pt-br.po +1 -0
  42. package/lang/translations/pt.po +1 -0
  43. package/lang/translations/ro.po +1 -0
  44. package/lang/translations/ru.po +1 -0
  45. package/lang/translations/sk.po +1 -0
  46. package/lang/translations/sr-latn.po +1 -0
  47. package/lang/translations/sr.po +1 -0
  48. package/lang/translations/sv.po +1 -0
  49. package/lang/translations/th.po +1 -0
  50. package/lang/translations/tk.po +1 -0
  51. package/lang/translations/tr.po +1 -0
  52. package/lang/translations/tt.po +1 -0
  53. package/lang/translations/ug.po +1 -0
  54. package/lang/translations/uk.po +1 -0
  55. package/lang/translations/ur.po +1 -0
  56. package/lang/translations/vi.po +1 -0
  57. package/lang/translations/zh-cn.po +1 -0
  58. package/lang/translations/zh.po +1 -0
  59. package/package.json +6 -6
  60. package/src/changeitem.js +1 -1
  61. package/src/editor/revisionviewereditor.js +1 -1
  62. package/src/editor/revisionviewereditorui.js +1 -1
  63. package/src/editor/revisionviewereditoruiview.js +1 -1
  64. package/src/revision.js +1 -1
  65. package/src/revisiondiff.js +1 -1
  66. package/src/revisionhistory.js +1 -1
  67. package/src/revisionsrepository.js +1 -1
  68. package/src/revisiontracker.js +1 -1
  69. package/src/revisionviewer.js +1 -1
  70. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  71. package/src/ui/revision/revisionauthorview.js +1 -1
  72. package/src/ui/revision/revisionnameview.js +1 -1
  73. package/src/ui/revision/revisionview.js +1 -1
  74. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  75. package/src/ui/revision/subrevisionview.js +1 -1
  76. package/src/ui/revision/utils.js +1 -1
  77. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  78. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  79. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  80. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  81. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  82. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  83. package/src/ui/revisionssidebar/utils.js +1 -1
  84. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  85. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  86. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  87. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  88. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x307b=['listenTo','plugins','_changeView','low','dataToMarker','ck-suggestion-preview-marker','WidgetToolbarRepository','_refreshStartEndIndex','viewItem','next','values','reconvertMarker','start','_threeWayMerge','createRevision','_markMarkers','from','isEnabled','return','name','push','suggestion:','removeMarker:revision','diffData','elementStart','_update','revision-end','revision','flat','createRangeIn','isRemoved','markerToData','_cleanUp','merge','_makeTape','markerRange','model','getIndex','split','index','isSuggestion','previousPosition','affectsData','text','isBefore','_joinTapes','unshift','compare','isNavigationMode','getRevisionData','insertions','revisionHistoryLabel','attachChange','markersEnd','has','map','rootName','isIncorrect','_fixObsoleteTags','_makeModelFromTape','right','_findChangeIdFromDomTarget','wrap','abs','revision-viewer','item','_cleanMarkers','vid_end','domConverter','_getRevisionsRange','markersStart','uiElement','markerToHighlight','detachRoot','_getViewForChange','element','pop','markerName','mouseover','_revisions','bindElementToMarker','RevisionsRepository','document','findIndex','ck-revision-history-root-','toModel','mapViewToDom','getCustomProperty','forEach','range','_getDiff','end','isAfter','_removeUnsupportedChanges','level','ck-suggestion-preview-marker-','object','then','requires','elementEnd','revision-comment:','ck-suggestion-marker','removeAttribute','stop','code','getChild','addHighlight','_sortAndFilterDiffChanges','isAdded','isCollapsed','config','enqueueChange','high','showNextChange','init','distance','find','_getChangeFromId','isAddSuggestion','change:numberOfChanges','test','roots','consumable','mapper','hasClass','addClass','nodeAfter','isEqual','backward','insertion','insert','done','-new','comment','addMarker:revision-suggestion:deletion','activeChange','restoreRevisionCallback','getRootNames','enableReadOnlyMode','top','attribute:vid','data-change-id','bind','mousedown','upcast','isAttached','filter','isObject','type','isReady','newRevisionId','isInline','showPreviousChange','parent','getDomRoot','isOnRoot','toViewElement','isLimit','execute','authors','_processTape','_removeMissingPairs','createPositionFromPath','error','shift','addRoot','left','keys','element:pre','userId','addMarker:revision','revision-suggestion','refresh','pairId','children','nextSibling','concat','getAttribute','_step','_markInsertions','isRemoveSuggestion','useFillerType','nextPosition','changes','schema','markerNameToElements','remove','getItems','set','maxOffset','_changeIdToChange','add','target','splice','getRevision','POSITIVE_INFINITY','_balloon','adapter','_setDistance','editor','vid','removeMarker:revision-suggestion','highest','updatePosition','consume','modelRange','softBreak','deletions','showStack','suggestion','attributesAfter','ck-revision-history-root-remove','removeClass','editingDowncast','getRevisionRootsAttributes','addRevisionData','change:activeChange','dataDowncast','ck-suggestion-marker--active','marked','includes','attributes','observeMarkers','vid_start','repository','setAttribute','string','markers','revisionHistoryAttachChange','RevisionViewer','revision:','startIndex','bottom','indexOf','_appendChild','createRange','sort','revision-suggestion:','change:activeView','getWalker','loadRevisionData','hasAttribute','parse','default','revision-start','ck-revision-history-root--active','activeView','ck-editor__editable__overlay','length','side','commands','deletion','_getViewObj','removeMarker','for','ck-suggestion-marker-','getClientRects','change:isEnabled','catch','domEvent','diff','_markMismatchedRemovedTags','delete','_makeModelFromViewString','_removeRevisionMarkers','downcastDispatcher','resolve','data','editing','_initInteractions','endIndex','locale','elementToAttribute','get','change','attributesBefore','_markSuggestions','change:isReady','restoreRevision','selection','all','pluginName','conversion','clear','isBlock','toViewPosition','view','startsWith','_setConversion','createUIElement','_activeViewTarget','isContent','getAttributes','unbindElementFromMarkerName','span','getRoot','createPositionBefore','writer'];(function(_0x195dfe,_0x307b63){const _0x41d3e5=function(_0x137c10){while(--_0x137c10){_0x195dfe['push'](_0x195dfe['shift']());}};_0x41d3e5(++_0x307b63);}(_0x307b,0xce));const _0x41d3=function(_0x195dfe,_0x307b63){_0x195dfe=_0x195dfe-0x0;let _0x41d3e5=_0x307b[_0x195dfe];return _0x41d3e5;};import{Plugin as _0xce1cc,Command as _0x52ed3c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x320f9a}from'ckeditor5/src/utils';import{ContextualBalloon as _0x122f39}from'ckeditor5/src/ui';import{DocumentFragment as _0x343bc4,Element as _0x214106,Text as _0x432852,ViewDocumentFragment as _0x37cf6a,ViewText as _0x1cb5cc,ViewElement as _0xf6828d,ViewContainerElement as _0xfd2e6d,ViewAttributeElement as _0x579839,ViewEmptyElement as _0x4be788,ViewRawElement as _0x35193a,ViewUIElement as _0x930eb5}from'ckeditor5/src/engine';import{Users as _0x372175,getMarkerDomElement as _0x4c8423}from'ckeditor5-collaboration/src/collaboration-core';import _0x702f8d from'./ui/revisionviewer/changedetailsview';import _0x849c9d from'./revisionsrepository';import _0x1d437b from'./changeitem';import{default as _0x15298f}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0xecf1aa}from'lodash-es';const tt={'c':_0xfd2e6d,'a':_0x579839,'e':_0x4be788,'r':_0x35193a,'u':_0x930eb5};export default class d extends _0xce1cc{static get[_0x41d3('0x4b')](){return _0x41d3('0x17');}static get[_0x41d3('0xbe')](){return[_0x372175,_0x122f39,_0x849c9d];}constructor(_0x373434){super(_0x373434),this[_0x41d3('0x12')]=this[_0x41d3('0x123')]['plugins'][_0x41d3('0x43')](_0x41d3('0xad')),this[_0x41d3('0x118')](_0x41d3('0xe3'),null),this['set'](_0x41d3('0x28'),null),this['_activeViewTarget']=null,this[_0x41d3('0x118')]('diff',null),this[_0x41d3('0x118')]('isReady',!0x1),this[_0x41d3('0x118')](_0x41d3('0x6d'),!0x0),this['on'](_0x41d3('0x33'),(_0x438eff,_0x17db0e,_0x3f0616)=>{this[_0x41d3('0xe3')]=null,this['activeView']=null,this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0x44')](_0x5cd6e5=>{for(const _0x169aab of this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xae')][_0x41d3('0xd5')])_0x3f0616?_0x5cd6e5[_0x41d3('0x6')](_0x41d3('0x29'),_0x169aab):_0x5cd6e5[_0x41d3('0xd9')]('ck-editor__editable__overlay',_0x169aab);});}),this[_0x41d3('0xea')](_0x41d3('0x8c'))['to'](this,'activeChange',_0x18e2ff=>null!==_0x18e2ff),this[_0x41d3('0xea')]('currentChangeNumber')['to'](this,_0x41d3('0xf1'),this,_0x41d3('0x36'),this,_0x41d3('0xe3'),(_0x2525e0,_0xf06afd,_0x4bc6b6)=>_0x2525e0&&_0x4bc6b6?_0xf06afd[_0x41d3('0x113')][_0x41d3('0x81')](_0x4bc6b6):0x0),this[_0x41d3('0xea')]('numberOfChanges')['to'](this,_0x41d3('0xf1'),this,_0x41d3('0x36'),(_0xcd28e2,_0x2a94b9)=>_0xcd28e2?_0x2a94b9[_0x41d3('0x113')][_0x41d3('0x2a')]:0x0),this[_0x41d3('0x5e')]=null,this[_0x41d3('0x11a')]=new Map(),this[_0x41d3('0x121')]=null,this[_0x41d3('0x120')]=this[_0x41d3('0x123')][_0x41d3('0x5d')][_0x41d3('0x43')](_0x122f39);}[_0x41d3('0xce')](){const _0x20c70f=this['editor'],_0x5c3f9=new ShowChangeCommand(_0x20c70f,{'direction':_0x41d3('0xdc')}),_0x606f41=new ShowChangeCommand(_0x20c70f,{'direction':'forward'});(_0x20c70f[_0x41d3('0x2c')]['add'](_0x41d3('0xf4'),_0x5c3f9),_0x20c70f[_0x41d3('0x2c')][_0x41d3('0x11b')](_0x41d3('0xcd'),_0x606f41),_0x20c70f[_0x41d3('0x2c')][_0x41d3('0x11b')](_0x41d3('0x48'),new RestoreRevisionCommand(_0x20c70f)),this['on'](_0x41d3('0xd3'),()=>{_0x5c3f9[_0x41d3('0x108')](),_0x606f41[_0x41d3('0x108')]();}),this['_setConversion'](),this[_0x41d3('0x3f')](),_0x20c70f[_0x41d3('0xe6')](_0x41d3('0x9c')),_0x20c70f[_0x41d3('0x5d')][_0x41d3('0x92')](_0x41d3('0x62')))&&_0x20c70f[_0x41d3('0x5d')]['get'](_0x41d3('0x62'))['forceDisabled'](_0x41d3('0x9c'));}async[_0x41d3('0x8d')](_0x14406d){await this[_0x41d3('0x22')](_0x14406d);const _0x3ad7d2={};for(const _0x2b81b9 in _0x14406d['diffData']){if(_0x14406d[_0x41d3('0x73')][_0x2b81b9]['attachChange']&&!_0x14406d['diffData'][_0x2b81b9][_0x41d3('0x90')]['isAttached'])continue;const _0x515912=this[_0x41d3('0x3a')](JSON['parse'](_0x14406d[_0x41d3('0x73')][_0x2b81b9]['insertions'])),_0x377867=this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xae')],_0x22fd70=new _0x37cf6a(_0x377867,_0x515912[_0x41d3('0x93')](_0x5ebc00=>this[_0x41d3('0x2e')](_0x5ebc00)));this[_0x41d3('0x123')][_0x41d3('0x3d')]['processor'][_0x41d3('0x111')](_0x41d3('0xd')),_0x3ad7d2[_0x2b81b9]=this['editor'][_0x41d3('0x3d')]['processor']['toData'](_0x22fd70),this[_0x41d3('0x123')][_0x41d3('0x3d')]['processor'][_0x41d3('0x111')](_0x41d3('0x25'));}return _0x3ad7d2;}async[_0x41d3('0x8')](_0x359bc4){await this['loadRevisionData'](_0x359bc4);const _0x71830c={};for(const _0x2c9079 in _0x359bc4['diffData'])_0x359bc4[_0x41d3('0x73')][_0x2c9079]['attachChange']&&!_0x359bc4[_0x41d3('0x73')][_0x2c9079][_0x41d3('0x90')][_0x41d3('0xed')]||(_0x71830c[_0x2c9079]=_0x359bc4[_0x41d3('0x73')][_0x2c9079][_0x41d3('0x4')]||{});return _0x71830c;}[_0x41d3('0x3a')](_0x37bce6){return(_0x37bce6=_0x37bce6[_0x41d3('0xee')](_0x8d000a=>!_0x8d000a[_0x41d3('0x6f')]||_0x41d3('0x26')!==_0x8d000a[_0x41d3('0x6f')]&&_0x41d3('0x76')!==_0x8d000a['name']))[_0x41d3('0xb4')](_0x4d274c=>{_0x41d3('0x14')!=typeof _0x4d274c&&(_0x4d274c[_0x41d3('0x10a')]=this['_removeRevisionMarkers'](_0x4d274c[_0x41d3('0x10a')]),_0x4d274c[_0x41d3('0xf')]=_0x4d274c[_0x41d3('0xf')][_0x41d3('0xee')](_0x3118e9=>!_0x3118e9[0x0][_0x41d3('0x51')]('data-revision-')));}),_0x37bce6;}async[_0x41d3('0x8b')](_0x579e63,_0x3e97d7,_0x12ceb7=!0x1){if(!this[_0x41d3('0x6d')])return;const _0x5459be=this[_0x41d3('0x36')],_0x535d1e=this[_0x41d3('0x12')],_0x359af4='string'==typeof _0x579e63?_0x535d1e[_0x41d3('0x11e')](_0x579e63):_0x579e63,_0x39f6e8=_0x41d3('0x14')==typeof _0x3e97d7?_0x535d1e[_0x41d3('0x11e')](_0x3e97d7):_0x3e97d7,_0x5a4d05=_0x359af4['id'],_0x536dbb=_0x39f6e8?_0x39f6e8['id']:null;if(!_0x12ceb7&&this[_0x41d3('0x36')]&&this[_0x41d3('0x36')]['newRevisionId']===_0x5a4d05&&this[_0x41d3('0x36')]['oldRevisionId']===_0x536dbb)return Promise[_0x41d3('0x3c')]();this[_0x41d3('0xf1')]=!0x1,this[_0x41d3('0x28')]=null,this['activeChange']=null,this[_0x41d3('0x36')]=new _0x15298f(_0x5a4d05,_0x536dbb);const _0x176fa1=this[_0x41d3('0xa1')](_0x359af4,_0x39f6e8,!0x0)[_0x41d3('0x93')](_0x398862=>this['loadRevisionData'](_0x398862));return _0x176fa1['push'](new Promise(_0x4bc634=>{setTimeout(_0x4bc634,0x14);})),Promise[_0x41d3('0x4a')](_0x176fa1)['then'](()=>{if(!this[_0x41d3('0x6d')])return;this['_cleanUp']();const _0x2fb361=this[_0x41d3('0xb6')](_0x5a4d05,_0x536dbb);for(const _0x1a324d of _0x2fb361['changes'])this[_0x41d3('0x11a')][_0x41d3('0x118')](_0x1a324d['id'],_0x1a324d);this[_0x41d3('0x123')][_0x41d3('0x80')]['enqueueChange']({'isUndoable':!0x1},_0x11b354=>{for(const _0x192c8c of this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0xae')][_0x41d3('0xe5')]())_0x11b354[_0x41d3('0xa5')](_0x192c8c);for(const _0x28cf08 of Object['keys'](_0x2fb361[_0x41d3('0x80')])){const _0x51abff=_0x11b354[_0x41d3('0x101')](_0x28cf08);for(const _0x619349 of Object[_0x41d3('0x103')](_0x2fb361['attributes'][_0x28cf08]))_0x11b354['setAttribute'](_0x619349,_0x2fb361[_0x41d3('0xf')][_0x28cf08][_0x619349],_0x51abff);_0x11b354[_0x41d3('0xde')](_0x2fb361['model'][_0x28cf08],_0x51abff,0x0);}}),this[_0x41d3('0x36')]['_setChanges'](this[_0x41d3('0xc7')](_0x2fb361[_0x41d3('0x113')])),this['isReady']=!0x0;})[_0x41d3('0x34')](_0xc8ac6f=>{console[_0x41d3('0xff')](_0xc8ac6f),this[_0x41d3('0x7c')](),_0x5459be&&(this['diff']=_0x5459be),this['isReady']=!0x0;});}[_0x41d3('0x9')](_0x20d89d,_0x380e49){const _0x32ba23=this[_0x41d3('0x12')][_0x41d3('0x6a')](_0x20d89d);return _0x32ba23['on'](_0x41d3('0x75'),(_0x17243b,_0x5ed52a,_0x1aa30d)=>_0x380e49(_0x5ed52a,_0x1aa30d,_0x32ba23)),this['repository']['addRevision'](_0x32ba23),_0x32ba23;}[_0x41d3('0x22')](_0xf8722b){if(!_0xf8722b||_0xf8722b['diffData'])return Promise[_0x41d3('0x3c')]();{const _0x156450=this[_0x41d3('0x123')]['config']['get']('collaboration.channelId');return this[_0x41d3('0x121')]['getRevision']({'channelId':_0x156450,'revisionId':_0xf8722b['id']})[_0x41d3('0xbd')](_0x231737=>{_0xf8722b['_update']({'diffData':_0x231737[_0x41d3('0x73')]},!0x0);});}}[_0x41d3('0x7c')](){this[_0x41d3('0xe3')]=null,this[_0x41d3('0x9e')](),this[_0x41d3('0x5e')]&&this[_0x41d3('0x5e')]['destroy'](),this[_0x41d3('0x5e')]=null,this[_0x41d3('0x11a')][_0x41d3('0x4d')](),this['editor'][_0x41d3('0x80')][_0x41d3('0xcb')]({'isUndoable':!0x1},_0x519488=>{for(const _0x1a3782 of this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0xae')][_0x41d3('0xe5')]())_0x519488['detachRoot'](_0x1a3782);});}[_0x41d3('0xc7')](_0x5e9f04){const _0x2a8313=[],_0x3024e2=new Map();for(const _0x49ece6 of this[_0x41d3('0x123')]['model'][_0x41d3('0xae')][_0x41d3('0xe5')]()){const _0x1f18ad=this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')]['getDomRoot'](_0x49ece6);if(!_0x1f18ad)continue;const _0x465987=_0x1f18ad['getClientRects']()[_0x41d3('0x9d')](0x0);_0x465987&&(_0x2a8313[_0x41d3('0x70')](_0x49ece6),_0x3024e2[_0x41d3('0x118')](_0x49ece6,_0x465987));}return _0x2a8313['sort']((_0x163d41,_0x52eec8)=>{const _0x1b8002=_0x3024e2[_0x41d3('0x43')](_0x163d41),_0x4b6add=_0x3024e2['get'](_0x52eec8);return _0x1b8002['y']-_0x4b6add['y']||_0x1b8002['x']-_0x4b6add['x'];}),(_0x5e9f04=_0x5e9f04[_0x41d3('0xee')](_0x29982b=>_0x2a8313[_0x41d3('0xe')](_0x29982b[_0x41d3('0x94')])))[_0x41d3('0x1e')]((_0x20f468,_0x1a8998)=>_0x2a8313[_0x41d3('0x1b')](_0x20f468[_0x41d3('0x94')])-_0x2a8313['indexOf'](_0x1a8998[_0x41d3('0x94')])),_0x5e9f04;}[_0x41d3('0x7e')](_0x4d17d8){const _0x1ea9f6=Array[_0x41d3('0x6c')](_0x4d17d8['markers'])[_0x41d3('0xee')](([_0x38dc1f,_0x400687])=>_0x38dc1f[_0x41d3('0x51')](_0x41d3('0x18'))&&!_0x400687[_0x41d3('0xc9')]),_0x13f9c0=Array[_0x41d3('0x6c')](this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0x79')](_0x4d17d8)[_0x41d3('0x21')]({'singleCharacters':!0x0}));if(0x0!=_0x1ea9f6[_0x41d3('0x2a')])for(const _0x32655c of _0x13f9c0){const [_0x136e22,_0x29a6a7]=_0x1ea9f6[0x0],[,_0x904ed2,_0x15ae69]=_0x136e22[_0x41d3('0x82')](':');if(_0x29a6a7['end'][_0x41d3('0xdb')](_0x32655c[_0x41d3('0x112')])&&_0x1ea9f6['shift'](),(_0x32655c[_0x41d3('0x85')][_0x41d3('0xdb')](_0x29a6a7[_0x41d3('0x68')])||_0x32655c[_0x41d3('0x85')][_0x41d3('0xb8')](_0x29a6a7[_0x41d3('0x68')]))&&(_0x41d3('0xdd')==_0x904ed2?_0x32655c[_0x41d3('0xc8')]={'userId':_0x15ae69}:'deletion'==_0x904ed2&&(_0x32655c[_0x41d3('0x7a')]={'userId':_0x15ae69})),0x0==_0x1ea9f6[_0x41d3('0x2a')])break;}return _0x13f9c0;}[_0x41d3('0x63')](_0x50c8c5){const _0x469dbb=new Map();for(let _0x5d18c7=0x0;_0x5d18c7<_0x50c8c5[_0x41d3('0x2a')];_0x5d18c7++)_0x41d3('0x87')===_0x50c8c5[_0x5d18c7][_0x41d3('0xf0')]?(_0x50c8c5[_0x5d18c7]['item'][_0x41d3('0x19')]=_0x5d18c7,_0x50c8c5[_0x5d18c7]['item'][_0x41d3('0x40')]=_0x5d18c7):(_0x41d3('0x74')===_0x50c8c5[_0x5d18c7][_0x41d3('0xf0')]?_0x50c8c5[_0x5d18c7][_0x41d3('0x9d')][_0x41d3('0x19')]=_0x5d18c7:_0x41d3('0xbf')===_0x50c8c5[_0x5d18c7][_0x41d3('0xf0')]&&(_0x50c8c5[_0x5d18c7]['item']['endIndex']=_0x5d18c7),_0x469dbb[_0x41d3('0x118')](_0x50c8c5[_0x5d18c7]['id'],_0x5d18c7));for(const _0x10f704 of _0x469dbb[_0x41d3('0x66')]())_0x41d3('0x74')===_0x50c8c5[_0x10f704][_0x41d3('0xf0')]?_0x50c8c5[_0x10f704][_0x41d3('0x9d')][_0x41d3('0x40')]=_0x469dbb[_0x41d3('0x43')](_0x50c8c5[_0x10f704][_0x41d3('0x109')]):_0x41d3('0xbf')===_0x50c8c5[_0x10f704][_0x41d3('0xf0')]&&(_0x50c8c5[_0x10f704][_0x41d3('0x9d')][_0x41d3('0x19')]=_0x469dbb[_0x41d3('0x43')](_0x50c8c5[_0x10f704][_0x41d3('0x109')]));}['_processTape'](_0x120b87){for(let _0x157117=0x0;_0x157117<_0x120b87[_0x41d3('0x2a')];_0x157117++){if('elementStart'===_0x120b87[_0x157117]['type'])_0x120b87[_0x157117][_0x41d3('0x9d')]['startIndex']=_0x157117;else{if(_0x41d3('0xbf')===_0x120b87[_0x157117]['type']){_0x120b87[_0x157117][_0x41d3('0x9d')][_0x41d3('0x40')]=_0x157117;const _0x3f979d=_0x120b87[_0x157117]['item']['startIndex'];_0x120b87[_0x3f979d][_0x41d3('0x109')]=_0x120b87[_0x157117]['id'],_0x120b87[_0x157117][_0x41d3('0x109')]=_0x120b87[_0x3f979d]['id'];}else _0x120b87[_0x157117][_0x41d3('0x9d')]['startIndex']=_0x157117,_0x120b87[_0x157117][_0x41d3('0x9d')][_0x41d3('0x40')]=_0x157117,_0x120b87[_0x157117][_0x41d3('0x109')]=null;}_0x120b87[_0x157117][_0x41d3('0xa2')]||(_0x120b87[_0x157117]['markersStart']=[],_0x120b87[_0x157117][_0x41d3('0x91')]=[]);}}[_0x41d3('0x10f')](_0x131462,_0x3e3e22){const _0x1d7669=_0x131462['filter'](_0x2b052d=>!_0x2b052d[_0x41d3('0xc8')]);for(let _0x1c672f=0x0;_0x1c672f<_0x3e3e22[_0x41d3('0x2a')];_0x1c672f++)_0x3e3e22[_0x1c672f][_0x41d3('0xc8')]&&(_0x1d7669[_0x1c672f]['isAdded']=_0x3e3e22[_0x1c672f][_0x41d3('0xc8')]);}['_makeModelFromViewString'](_0x2bf3e2){const _0x44f6a4=JSON[_0x41d3('0x24')](_0x2bf3e2),_0x1a0d92=this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xae')],_0x2d68a2=new _0x37cf6a(_0x1a0d92,_0x44f6a4['map'](_0x51046a=>this[_0x41d3('0x2e')](_0x51046a)));return this[_0x41d3('0x123')][_0x41d3('0x3d')][_0x41d3('0xb1')](_0x2d68a2);}['_getViewObj'](_0x25c6bd){const _0x30dd0=this['editor'][_0x41d3('0x3e')][_0x41d3('0x50')]['document'];if('string'==typeof _0x25c6bd)return new _0x1cb5cc(_0x30dd0,_0x25c6bd);{const _0x291a74=_0x25c6bd[_0x41d3('0x10a')][_0x41d3('0x93')](_0x1eb412=>this[_0x41d3('0x2e')](_0x1eb412));return new(tt[_0x25c6bd[(_0x41d3('0xf0'))]]||_0xf6828d)(_0x30dd0,_0x25c6bd[_0x41d3('0x6f')],_0x25c6bd[_0x41d3('0xf')],_0x291a74);}}[_0x41d3('0xb6')](_0x411d56,_0x2c18df=null){const _0x531e48=this['repository'][_0x41d3('0x11e')](_0x411d56),_0x2c1e05=_0x2c18df?this['repository'][_0x41d3('0x11e')](_0x2c18df):null,_0x3f1aaa=this['_getRevisionsRange'](_0x531e48,_0x2c1e05),_0x2031f3=_0x3f1aaa[_0x3f1aaa[_0x41d3('0x2a')]-0x1],_0x4adff6=new Map(),_0x2fec26={'model':{},'attributes':{},'changes':[]},_0x17245a=new Set(),_0x142921=new Map();for(let _0x24f56e=_0x3f1aaa[_0x41d3('0x2a')]-0x1;_0x24f56e>=0x0;_0x24f56e--){const _0xb95459=_0x3f1aaa[_0x24f56e];for(const _0x4bae38 of Object[_0x41d3('0x103')](_0xb95459[_0x41d3('0x73')]))if(_0xb95459[_0x41d3('0x73')][_0x4bae38][_0x41d3('0x90')]){const _0x90b122=_0xb95459[_0x41d3('0x73')][_0x4bae38]['attachChange'];_0x90b122[_0x41d3('0xed')]?(_0x17245a[_0x41d3('0x11b')](_0x4bae38),_0x142921[_0x41d3('0x92')](_0x4bae38)&&_0x142921[_0x41d3('0x43')](_0x4bae38)[_0x41d3('0x105')]==_0x90b122[_0x41d3('0x105')]?_0x142921[_0x41d3('0x38')](_0x4bae38):_0x142921[_0x41d3('0x118')](_0x4bae38,_0x90b122)):_0x142921['has'](_0x4bae38)?(_0x17245a[_0x41d3('0x38')](_0x4bae38),_0x142921[_0x41d3('0x38')](_0x4bae38)):(_0x17245a['add'](_0x4bae38),_0x142921['set'](_0x4bae38,_0x90b122));}else _0x17245a[_0x41d3('0x11b')](_0x4bae38);}for(const _0xffac7b of _0x17245a){const _0x50bc12=_0x142921[_0x41d3('0x92')](_0xffac7b)&&!_0x142921[_0x41d3('0x43')](_0xffac7b)[_0x41d3('0xed')];let _0x1d294f=_0x50bc12?_0x3f1aaa[_0x41d3('0x2a')]-0x1:0x0;const _0x2a70dc=_0x50bc12?-0x1:0x1;for(;_0x3f1aaa[_0x1d294f];){const _0x18582a=_0x3f1aaa[_0x1d294f];if(_0x18582a[_0x41d3('0x73')][_0xffac7b]){const _0x1678ac=_0x50bc12?_0x18582a[_0x41d3('0x73')][_0xffac7b][_0x41d3('0x45')]:_0x18582a['diffData'][_0xffac7b][_0x41d3('0x4')];_0x2fec26['attributes'][_0xffac7b]=_0x1678ac?_0xecf1aa(_0x1678ac):{};break;}_0x1d294f+=_0x2a70dc;}}for(const _0x50e801 of _0x3f1aaa){_0x50e801[_0x41d3('0x80')]={};for(const _0x5ebf5e of _0x50e801[_0x41d3('0xfb')])_0x4adff6['set'](_0x5ebf5e['id'],_0x5ebf5e);for(const _0x20c0cf of _0x17245a){const _0x23d918=_0x50e801[_0x41d3('0x73')][_0x20c0cf]?_0x50e801['diffData'][_0x20c0cf]['insertions']:'[]',_0x13ea8c=_0x50e801[_0x41d3('0x73')][_0x20c0cf]?_0x50e801['diffData'][_0x20c0cf][_0x41d3('0x1')]:'[]';_0x50e801[_0x41d3('0x80')][_0x20c0cf]={'insertions':this[_0x41d3('0x39')](_0x23d918),'deletions':this[_0x41d3('0x39')](_0x13ea8c)};}}for(const _0x450cbd of _0x17245a){let _0x2a3cdd=null,_0x59d631=0x0;const _0x5136c4=new Map(Array[_0x41d3('0x6c')](_0x531e48[_0x41d3('0x80')][_0x450cbd][_0x41d3('0x8e')]['markers'])[_0x41d3('0xee')](([_0x5800f3])=>!_0x5800f3[_0x41d3('0x51')]('revision:')));let _0x17bf1c=0x0;for(const _0xc145b8 of _0x3f1aaa){const _0x5ccbf7=this[_0x41d3('0x7e')](_0xc145b8['model'][_0x450cbd]['insertions']);_0xc145b8==_0x531e48?(_0x2a3cdd=_0x5ccbf7,_0x59d631=_0x2a3cdd['length'],_0x2a3cdd[_0x41d3('0xb4')](_0x1e6969=>{_0x1e6969['id']=_0x17bf1c++;}),this[_0x41d3('0xfc')](_0x2a3cdd)):this[_0x41d3('0x10f')](_0x2a3cdd,_0x5ccbf7);const _0x1e1c9e=_0x2a3cdd[_0x41d3('0xee')](_0xb98427=>!_0xb98427[_0x41d3('0xc8')])['map'](_0x1768c9=>_0x1768c9['id']);let _0x3e3493=0x0;const _0x4fa0ab=this[_0x41d3('0x7e')](_0xc145b8['model'][_0x450cbd][_0x41d3('0x1')]);_0x4fa0ab[_0x41d3('0xb4')](_0x478264=>{_0x478264[_0x41d3('0x7a')]?_0x478264['id']=_0x59d631++:_0x478264['id']=_0x1e1c9e[_0x3e3493++];}),this['_processTape'](_0x4fa0ab),this[_0x41d3('0x122')](_0x2a3cdd,_0x41d3('0xc8')),this[_0x41d3('0x122')](_0x4fa0ab,_0x41d3('0x7a')),_0xc145b8==_0x531e48&&this[_0x41d3('0x6b')](_0x2a3cdd,_0x5136c4),_0x2a3cdd=this[_0x41d3('0x89')](_0x2a3cdd,_0x4fa0ab),this[_0x41d3('0x63')](_0x2a3cdd),this[_0x41d3('0x122')](_0x2a3cdd,'isRemoved');}_0x2a3cdd=_0x2a3cdd[_0x41d3('0xee')](_0x98b42e=>!(_0x98b42e['isAdded']&&_0x98b42e['isRemoved']));const _0x3e757b=new Map(_0x2031f3['model'][_0x450cbd][_0x41d3('0x1')][_0x41d3('0x15')]),_0x26a712=new Set(_0x5136c4[_0x41d3('0x103')]());for(const _0x3b10b5 of _0x3e757b[_0x41d3('0x103')]())_0x26a712[_0x41d3('0x38')](_0x3b10b5);this[_0x41d3('0x46')](_0x2a3cdd,_0x26a712),this['_fixObsoleteTags'](_0x2a3cdd),_0x2a3cdd=this[_0x41d3('0xfd')](_0x2a3cdd),_0x2a3cdd=this['_markMismatchedRemovedTags'](_0x2a3cdd),_0x2a3cdd=this[_0x41d3('0xb9')](_0x2a3cdd);const {root:_0x52781e,changes:_0x1379ec}=this[_0x41d3('0x97')](_0x2a3cdd,_0x4adff6,_0x450cbd);_0x2fec26['model'][_0x450cbd]=_0x52781e;const _0x535ea0=_0x142921[_0x41d3('0x43')](_0x450cbd);if(_0x535ea0){const _0x12986c=_0x4adff6['get'](_0x535ea0[_0x41d3('0x105')]),_0x73d890=new _0x1d437b({'author':_0x12986c,'type':_0x535ea0[_0x41d3('0xed')]?_0x41d3('0x11b'):_0x41d3('0x116'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x450cbd});_0x1379ec['unshift'](_0x73d890),_0x2fec26[_0x41d3('0xf')][_0x450cbd][_0x41d3('0x16')]=_0x73d890['id'];}_0x2fec26['changes']=_0x2fec26[_0x41d3('0x113')][_0x41d3('0x10c')](_0x1379ec);}return _0x2fec26;}[_0x41d3('0x6b')](_0x12e083,_0x38a9ef){for(let _0x3b80c1=0x0;_0x3b80c1<_0x12e083['length'];_0x3b80c1++)for(const [_0x4e9e2d,_0x22b731]of _0x38a9ef)_0x22b731[_0x41d3('0x68')][_0x41d3('0xdb')](_0x12e083[_0x3b80c1]['previousPosition'])&&_0x12e083[_0x3b80c1][_0x41d3('0xa2')][_0x41d3('0x70')](_0x4e9e2d),_0x22b731[_0x41d3('0xb7')][_0x41d3('0xdb')](_0x12e083[_0x3b80c1][_0x41d3('0x112')])&&_0x12e083[_0x3b80c1]['markersEnd'][_0x41d3('0x70')](_0x4e9e2d);}[_0x41d3('0x89')](_0x2d52b5,_0x40c931){let _0x538928=[],_0x25d38d=0x0,_0x155ae9=0x0;for(;_0x25d38d<_0x2d52b5[_0x41d3('0x2a')]||_0x155ae9<_0x40c931[_0x41d3('0x2a')];){const _0x4cb073=_0x2d52b5[_0x25d38d]||{},_0xc8d43c=_0x40c931[_0x155ae9]||{};if(_0x4cb073['id']==_0xc8d43c['id'])_0x25d38d++,_0x155ae9++,_0x538928[_0x41d3('0x70')](_0x4cb073);else{if(_0xc8d43c['isRemoved']&&_0x4cb073[_0x41d3('0xc8')]){const {commonTape:_0x6d005b,iEnd:_0x5dd9dd,jEnd:_0x168c5c}=this[_0x41d3('0x69')](_0x2d52b5,_0x25d38d,_0x40c931,_0x155ae9);_0x538928=_0x538928[_0x41d3('0x10c')](_0x6d005b),_0x25d38d=_0x5dd9dd,_0x155ae9=_0x168c5c;}else _0xc8d43c[_0x41d3('0x7a')]?(_0x155ae9++,_0x538928[_0x41d3('0x70')](_0xc8d43c)):(_0x25d38d++,_0x538928['push'](_0x4cb073));}}return _0x538928;}[_0x41d3('0x46')](_0x4e099c,_0x105560){const _0x2ef575=[];for(let _0x25eea9=0x0;_0x25eea9<_0x4e099c[_0x41d3('0x2a')];_0x25eea9++){for(let _0xb11870=0x0;_0xb11870<_0x4e099c[_0x25eea9][_0x41d3('0xa2')]['length'];_0xb11870++){const _0x5ec68c=_0x4e099c[_0x25eea9][_0x41d3('0xa2')][_0xb11870];if(!_0x105560[_0x41d3('0x92')](_0x5ec68c))continue;const {group:_0x39e9ed,type:_0x1eb35b,authorId:_0x3508bf}=_0x45e099(_0x5ec68c);_0x41d3('0x107')!=_0x39e9ed||_0x41d3('0xdd')!=_0x1eb35b&&_0x41d3('0x2d')!=_0x1eb35b||(_0x2ef575[_0x41d3('0x8a')]({'type':_0x1eb35b,'name':_0x5ec68c,'userId':_0x3508bf}),_0x4e099c[_0x25eea9][_0x41d3('0xa2')]['splice'](_0xb11870,0x1),_0xb11870--);}_0x151ec6(_0x4e099c[_0x25eea9]);for(let _0x221fa2=0x0;_0x221fa2<_0x4e099c[_0x25eea9][_0x41d3('0x91')][_0x41d3('0x2a')];_0x221fa2++){const _0x3960fb=_0x4e099c[_0x25eea9][_0x41d3('0x91')][_0x221fa2];if(!_0x105560[_0x41d3('0x92')](_0x3960fb))continue;const {group:_0x5107c8,type:_0x257fe1}=_0x45e099(_0x3960fb);if(_0x41d3('0x107')!=_0x5107c8||_0x41d3('0xdd')!=_0x257fe1&&_0x41d3('0x2d')!=_0x257fe1)continue;_0x4e099c[_0x25eea9][_0x41d3('0x91')][_0x41d3('0x11d')](_0x221fa2,0x1),_0x221fa2--;const _0x952c3d=_0x2ef575[_0x41d3('0xaf')](_0x30583f=>_0x30583f['name']==_0x3960fb);_0x952c3d>-0x1&&_0x2ef575[_0x41d3('0x11d')](_0x952c3d,0x1);}}function _0x45e099(_0x7f6bfb){const _0x2a0934=_0x7f6bfb[_0x41d3('0x82')](':');return{'group':_0x2a0934[0x0],'type':_0x2a0934[0x1],'subType':_0x2a0934[_0x41d3('0x2a')]>=0x5?_0x2a0934[0x2]:null,'id':_0x2a0934[_0x41d3('0x2a')]<0x5?_0x2a0934[0x2]:_0x2a0934[0x3],'authorId':_0x2a0934[_0x41d3('0x2a')]<0x5?_0x2a0934[0x3]:_0x2a0934[0x4],'markerCount':0x6==_0x2a0934[_0x41d3('0x2a')]?_0x2a0934[0x5]:null};}function _0x151ec6(_0x251343){for(let _0x4b32cf=0x0;_0x4b32cf<_0x2ef575[_0x41d3('0x2a')];_0x4b32cf++){if(_0x251343[_0x41d3('0xc8')]&&'insertion'==_0x2ef575[_0x4b32cf][_0x41d3('0xf0')])return _0x251343[_0x41d3('0xd2')]=_0x2ef575[_0x4b32cf],void delete _0x251343[_0x41d3('0xc8')];if(!_0x251343['isAdded']&&!_0x251343[_0x41d3('0x7a')]&&_0x41d3('0x2d')==_0x2ef575[_0x4b32cf]['type'])return void(_0x251343[_0x41d3('0x110')]=_0x2ef575[_0x4b32cf]);}}}[_0x41d3('0x122')](_0x49994f,_0x551105){let _0x59d410=0x0,_0x2d11c8=!0x1;const _0x2f323c=new Map();for(const _0x58962c of _0x49994f)_0x58962c[_0x551105]?_0x2d11c8&&(_0x59d410++,_0x2d11c8=!0x1):(_0x59d410++,_0x2d11c8=!0x0),_0x2f323c[_0x41d3('0x118')](_0x58962c['id'],_0x59d410);for(let _0x3ff237=0x0;_0x3ff237<_0x49994f[_0x41d3('0x2a')];_0x3ff237++){if(_0x41d3('0x7a')==_0x551105&&_0x49994f[_0x3ff237][_0x41d3('0xc8')]||'isAdded'==_0x551105&&_0x49994f[_0x3ff237]['isRemoved'])continue;if('text'==_0x49994f[_0x3ff237]['type']){_0x49994f[_0x3ff237][_0x41d3('0xcf')]=0x0;continue;}const _0xa82b3a=_0x2f323c[_0x41d3('0x43')](_0x49994f[_0x3ff237][_0x41d3('0x109')]),_0x30c383=_0x2f323c[_0x41d3('0x43')](_0x49994f[_0x3ff237]['id']);_0x49994f[_0x3ff237][_0x41d3('0xcf')]=_0xa82b3a-_0x30c383;}}[_0x41d3('0xa1')](_0x850605,_0xa1f232,_0x464cf3=!0x1){const _0x334cf7=[];let _0x147268=this[_0x41d3('0x12')][_0x41d3('0x81')](_0x850605),_0x506484=this['repository']['getIndex'](_0xa1f232);for(-0x1==_0x506484&&(_0x506484=this[_0x41d3('0x12')][_0x41d3('0xab')][_0x41d3('0x2a')],_0x464cf3=!0x1);_0x147268<_0x506484;)_0x334cf7[_0x41d3('0x70')](this[_0x41d3('0x12')][_0x41d3('0x11e')](_0x147268)),_0x147268++;return _0x464cf3&&_0x334cf7[_0x41d3('0x70')](this['repository']['getRevision'](_0x147268)),_0x334cf7;}[_0x41d3('0x69')](_0x5ede11,_0x68ada4,_0x6a37c,_0x52c762){const _0x145a66=this['editor'][_0x41d3('0x80')][_0x41d3('0x114')];let _0x4968fb=_0x68ada4;for(;_0x5ede11[_0x4968fb]&&_0x5ede11[_0x4968fb][_0x41d3('0xc8')];)_0x4968fb++;let _0x48e92c=_0x52c762;for(;_0x6a37c[_0x48e92c]&&_0x6a37c[_0x48e92c][_0x41d3('0x7a')];)_0x48e92c++;_0x4ccecc(_0x5ede11,_0x68ada4,_0x4968fb),_0x4ccecc(_0x6a37c,_0x52c762,_0x48e92c);const _0x272e49=_0x6a37c['slice'](_0x52c762,_0x48e92c)[_0x41d3('0x10c')](_0x5ede11['slice'](_0x68ada4,_0x4968fb));return _0x272e49[_0x41d3('0x1e')]((_0x348471,_0x4305a1)=>_0x348471['side']!=_0x4305a1[_0x41d3('0x2b')]?_0x348471['side']-_0x4305a1[_0x41d3('0x2b')]:_0x348471[_0x41d3('0xba')]!=_0x4305a1['level']?_0x348471[_0x41d3('0xba')]-_0x4305a1[_0x41d3('0xba')]:_0x348471[_0x41d3('0xcf')]!=_0x4305a1[_0x41d3('0xcf')]?_0x4305a1[_0x41d3('0xcf')]-_0x348471[_0x41d3('0xcf')]:!!_0x348471['isAdded']!=!!_0x4305a1[_0x41d3('0xc8')]?-0x1==_0x348471[_0x41d3('0x2b')]||0x0==_0x348471[_0x41d3('0x2b')]?_0x348471[_0x41d3('0xc8')]?-0x1:0x1:_0x348471['isAdded']?0x1:-0x1:_0x348471[_0x41d3('0x83')]-_0x4305a1['index']),{'commonTape':_0x272e49,'iEnd':_0x4968fb,'jEnd':_0x48e92c};function _0x4ccecc(_0x1d1aa2,_0x1ae9d1,_0x1968e0){let _0x3662c3=-0x1,_0x51df6a=Number[_0x41d3('0x11f')],_0x88d930=!0x0;for(let _0x1eb67d=_0x1ae9d1;_0x1eb67d<_0x1968e0;_0x1eb67d++)if(_0x145a66[_0x41d3('0xf3')](_0x1d1aa2[_0x1eb67d][_0x41d3('0x9d')])||(_0x88d930=!0x1),_0x1d1aa2[_0x1eb67d][_0x41d3('0x9d')][_0x41d3('0x19')]<_0x1ae9d1&&(_0x3662c3=_0x1eb67d),_0x1d1aa2[_0x1eb67d][_0x41d3('0x9d')][_0x41d3('0x40')]>=_0x1968e0){_0x51df6a=_0x1eb67d;break;}_0x88d930&&(_0x3662c3=_0x1968e0-0x1);for(let _0x1e3a3d=_0x1ae9d1;_0x1e3a3d<_0x1968e0;_0x1e3a3d++)_0x1d1aa2[_0x1e3a3d][_0x41d3('0x2b')]=_0x1e3a3d<=_0x3662c3?-0x1:_0x1e3a3d<_0x51df6a?0x0:0x1,_0x1d1aa2[_0x1e3a3d][_0x41d3('0x83')]=_0x1e3a3d;let _0xb9c3e6=0x0;for(let _0x1b32b2=_0x1ae9d1;_0x1b32b2<=_0x3662c3;_0x1b32b2++)0x0==_0x1d1aa2[_0x1b32b2][_0x41d3('0xcf')]?_0x1d1aa2[_0x1b32b2][_0x41d3('0xba')]=_0xb9c3e6:(_0xb9c3e6++,_0x1d1aa2[_0x1b32b2][_0x41d3('0xba')]=_0xb9c3e6,_0xb9c3e6++);for(let _0x4352a4=_0x1ae9d1;_0x4352a4<_0x1968e0;_0x4352a4++)0x0==_0x1d1aa2[_0x4352a4]['side']&&(_0x1d1aa2[_0x4352a4][_0x41d3('0xba')]=_0xb9c3e6);_0xb9c3e6=0x0;for(let _0x6938b6=_0x1968e0-0x1;_0x6938b6>=_0x51df6a;_0x6938b6--)0x0==_0x1d1aa2[_0x6938b6]['distance']?_0x1d1aa2[_0x6938b6][_0x41d3('0xba')]=_0xb9c3e6:(_0xb9c3e6--,_0x1d1aa2[_0x6938b6][_0x41d3('0xba')]=_0xb9c3e6,_0xb9c3e6--);}}[_0x41d3('0x96')](_0x48a4f9){const _0x29b70d=new Map(),_0x35e646=this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0x114')];for(let _0x404eb4=0x1;_0x404eb4<_0x48a4f9['length'];_0x404eb4++){let _0x38f5d3,_0x281047,_0x5e6613;const _0x5b1567=_0x48a4f9[_0x404eb4],_0x4edaef=_0x48a4f9[_0x404eb4-0x1];if('text'==_0x5b1567[_0x41d3('0xf0')])continue;if(_0x5b1567[_0x41d3('0xf0')]!=_0x4edaef[_0x41d3('0xf0')])continue;if(!_0x35e646[_0x41d3('0x4e')](_0x4edaef[_0x41d3('0x9d')])||_0x35e646[_0x41d3('0xf9')](_0x4edaef[_0x41d3('0x9d')]))continue;if(!_0x35e646[_0x41d3('0x4e')](_0x5b1567[_0x41d3('0x9d')])||_0x35e646[_0x41d3('0xf9')](_0x5b1567[_0x41d3('0x9d')]))continue;if((_0x48a4f9[_0x404eb4][_0x41d3('0xc8')]||_0x48a4f9[_0x404eb4][_0x41d3('0xd2')])&&_0x48a4f9[_0x404eb4-0x1][_0x41d3('0x7a')])_0x38f5d3=_0x48a4f9[_0x404eb4],_0x281047=_0x48a4f9[_0x404eb4-0x1],_0x5e6613=_0x404eb4-0x1;else{if(!_0x48a4f9[_0x404eb4]['isRemoved']||!_0x48a4f9[_0x404eb4-0x1][_0x41d3('0xc8')]&&!_0x48a4f9[_0x404eb4-0x1][_0x41d3('0xd2')])continue;_0x38f5d3=_0x48a4f9[_0x404eb4-0x1],_0x281047=_0x48a4f9[_0x404eb4],_0x5e6613=_0x404eb4;}const _0x4111c2=_0x38f5d3[_0x41d3('0xba')]==_0x281047[_0x41d3('0xba')],_0x42b12a=Math[_0x41d3('0x9b')](_0x38f5d3[_0x41d3('0xba')])<Math[_0x41d3('0x9b')](_0x281047[_0x41d3('0xba')])&&0x0==_0x281047[_0x41d3('0xcf')];(_0x4111c2||_0x42b12a)&&(_0x29b70d[_0x41d3('0x118')](_0x281047['id'],_0x38f5d3['id']),_0x48a4f9[_0x41d3('0x11d')](_0x5e6613,0x1),_0x404eb4--,_0x38f5d3[_0x41d3('0xc8')]=!0x1);}for(let _0x22b16d=0x0;_0x22b16d<_0x48a4f9['length'];_0x22b16d++)_0x29b70d[_0x41d3('0x92')](_0x48a4f9[_0x22b16d][_0x41d3('0x109')])&&(_0x48a4f9[_0x22b16d][_0x41d3('0x109')]=_0x29b70d[_0x41d3('0x43')](_0x48a4f9[_0x22b16d][_0x41d3('0x109')]));}['_removeMissingPairs'](_0x2a2561){const _0x577c9f=new Set(_0x2a2561['map'](_0x2fcba4=>_0x2fcba4['id']));for(let _0x4d2285=0x0;_0x4d2285<_0x2a2561[_0x41d3('0x2a')];_0x4d2285++)_0x577c9f[_0x41d3('0x92')](_0x2a2561[_0x4d2285][_0x41d3('0x109')])||0x0==_0x2a2561[_0x4d2285][_0x41d3('0xcf')]||(_0x2a2561[_0x4d2285][_0x41d3('0x95')]=!0x0);return _0x2a2561[_0x41d3('0xee')](_0x4eeeb7=>!_0x4eeeb7[_0x41d3('0x95')]);}[_0x41d3('0x37')](_0x56ef4d){const _0x13f34d=new Set();for(let _0x20a1a4=0x0;_0x20a1a4<_0x56ef4d['length'];_0x20a1a4++){if(_0x13f34d[_0x41d3('0x92')](_0x56ef4d[_0x20a1a4]['id'])&&_0x56ef4d[_0x20a1a4][_0x41d3('0x7a')]&&(_0x56ef4d[_0x20a1a4][_0x41d3('0x95')]=!0x0),_0x56ef4d[_0x20a1a4][_0x41d3('0x95')])continue;if(0x0==_0x56ef4d[_0x20a1a4][_0x41d3('0xcf')])continue;if(_0x41d3('0x74')!=_0x56ef4d[_0x20a1a4]['type'])continue;if(null==_0x56ef4d[_0x20a1a4][_0x41d3('0x109')])continue;let _0x1a6e40=_0x20a1a4+0x1,_0x4e65a9=0x0;for(;_0x56ef4d[_0x1a6e40]['id']!=_0x56ef4d[_0x20a1a4][_0x41d3('0x109')];)_0x41d3('0x74')==_0x56ef4d[_0x1a6e40][_0x41d3('0xf0')]?_0x4e65a9++:_0x41d3('0xbf')==_0x56ef4d[_0x1a6e40]['type']&&_0x4e65a9--,_0x1a6e40++;if(0x0!=_0x4e65a9){if(_0x56ef4d[_0x20a1a4][_0x41d3('0x7a')])_0x56ef4d[_0x20a1a4][_0x41d3('0x95')]=!0x0;else for(;_0x1a6e40!=_0x20a1a4;)_0x56ef4d[_0x1a6e40][_0x41d3('0x7a')]&&0x0!=_0x56ef4d[_0x1a6e40][_0x41d3('0xcf')]&&(_0x56ef4d[_0x1a6e40][_0x41d3('0x95')]=!0x0,_0x13f34d[_0x41d3('0x11b')](_0x56ef4d[_0x1a6e40]['pairId'])),_0x1a6e40--;}}return _0x56ef4d[_0x41d3('0xee')](_0x4e53b2=>!_0x4e53b2[_0x41d3('0x95')]);}[_0x41d3('0xb9')](_0x2e0467){const _0x4098fe=this[_0x41d3('0x123')][_0x41d3('0x80')]['schema'];for(let _0x4291f4=0x0;_0x4291f4<_0x2e0467[_0x41d3('0x2a')];_0x4291f4++){if(!(_0x2e0467[_0x4291f4][_0x41d3('0xc8')]||_0x2e0467[_0x4291f4][_0x41d3('0xd2')]||_0x2e0467[_0x4291f4][_0x41d3('0x7a')]||_0x2e0467[_0x4291f4][_0x41d3('0x110')]))continue;if(0x0==_0x2e0467[_0x4291f4][_0x41d3('0xcf')])continue;const _0x12c2ba=_0x2e0467[_0x4291f4][_0x41d3('0x9d')];_0x4098fe[_0x41d3('0x4e')](_0x12c2ba)||_0x4098fe[_0x41d3('0xf9')](_0x12c2ba)||(_0x2e0467[_0x4291f4][_0x41d3('0xc8')]&&delete _0x2e0467[_0x4291f4][_0x41d3('0xc8')],_0x2e0467[_0x4291f4][_0x41d3('0xd2')]&&delete _0x2e0467[_0x4291f4][_0x41d3('0xd2')],_0x2e0467[_0x4291f4][_0x41d3('0x110')]&&delete _0x2e0467[_0x4291f4][_0x41d3('0x110')],_0x2e0467[_0x4291f4][_0x41d3('0x7a')]&&(_0x2e0467[_0x4291f4]['isIncorrect']=!0x0));}return _0x2e0467[_0x41d3('0xee')](_0x5f1fd2=>!_0x5f1fd2[_0x41d3('0x95')]);}[_0x41d3('0x97')](_0x899704,_0x15b408,_0x2ac798){const _0x5bd586=new _0x343bc4(),_0x20d386=[],_0x4b3079=new Map(),_0x274223=this[_0x41d3('0x123')]['model'],_0x237e74=_0x274223[_0x41d3('0x114')],_0x3e7125=[_0x5bd586],_0x2e090b={},_0x1a37ac={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x36bde5=null;const _0x3f1f98=[0x0];for(let _0x9cf6fd=0x0;_0x9cf6fd<_0x899704[_0x41d3('0x2a')];_0x9cf6fd++){let _0x305c89,_0x32fea4;if('elementStart'===_0x899704[_0x9cf6fd][_0x41d3('0xf0')]){_0x305c89=_0x274223['createPositionFromPath'](_0x5bd586,_0x3f1f98);const _0x5e6d7e=new _0x214106(_0x899704[_0x9cf6fd][_0x41d3('0x9d')][_0x41d3('0x6f')],_0x899704[_0x9cf6fd]['item'][_0x41d3('0x56')]());_0x3e7125[0x0][_0x41d3('0x1c')](_0x5e6d7e),_0x3f1f98[_0x41d3('0x70')](0x0),_0x3e7125[_0x41d3('0x8a')](_0x5e6d7e),_0x32fea4=_0x274223['createPositionFromPath'](_0x5bd586,_0x3f1f98),_0x36bde5=null;}else{if(_0x41d3('0xbf')===_0x899704[_0x9cf6fd][_0x41d3('0xf0')])_0x3e7125['shift'](),_0x305c89=_0x274223[_0x41d3('0xfe')](_0x5bd586,_0x3f1f98),_0x3f1f98[_0x41d3('0xa8')](),_0x3f1f98[_0x3f1f98[_0x41d3('0x2a')]-0x1]++,_0x32fea4=_0x274223['createPositionFromPath'](_0x5bd586,_0x3f1f98),_0x36bde5=null;else{if(_0x305c89=_0x274223[_0x41d3('0xfe')](_0x5bd586,_0x3f1f98),_0x36bde5&&_0xd7b052(_0x36bde5,_0x899704[_0x9cf6fd]['item']))_0x36bde5['_data']+=_0x899704[_0x9cf6fd][_0x41d3('0x9d')][_0x41d3('0x3d')];else{const _0x3ce2f8=new _0x432852(_0x899704[_0x9cf6fd][_0x41d3('0x9d')][_0x41d3('0x3d')],_0x899704[_0x9cf6fd][_0x41d3('0x9d')][_0x41d3('0x56')]());_0x3e7125[0x0][_0x41d3('0x1c')](_0x3ce2f8),_0x36bde5=_0x3ce2f8;}_0x3f1f98[_0x3f1f98[_0x41d3('0x2a')]-0x1]+=_0x899704[_0x9cf6fd][_0x41d3('0x9d')]['offsetSize'],_0x32fea4=_0x274223[_0x41d3('0xfe')](_0x5bd586,_0x3f1f98);}}for(const _0x18f7a9 of _0x899704[_0x9cf6fd][_0x41d3('0xa2')])_0x4b3079[_0x41d3('0x118')](_0x18f7a9,{'start':_0x305c89,'end':null});_0x43d477(_0x41d3('0x110'),_0x9cf6fd,_0x305c89,_0x32fea4),_0x43d477('isAddSuggestion',_0x9cf6fd,_0x305c89,_0x32fea4),_0x43d477(_0x41d3('0x7a'),_0x9cf6fd,_0x305c89,_0x32fea4),_0x43d477(_0x41d3('0xc8'),_0x9cf6fd,_0x305c89,_0x32fea4);for(const _0x508ff2 of _0x899704[_0x9cf6fd][_0x41d3('0x91')]){_0x4b3079[_0x41d3('0x43')](_0x508ff2)['end']=_0x32fea4;}}for(const [_0x4ebeb4,_0x11832f]of _0x4b3079){const _0x37bb92=this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0x1d')](_0x11832f[_0x41d3('0x68')],_0x11832f[_0x41d3('0xb7')]);_0x5bd586[_0x41d3('0x15')]['set'](_0x4ebeb4,_0x37bb92);}return _0x20d386[_0x41d3('0x1e')]((_0x3c4b1b,_0xe7f6bb)=>{const _0x318c7a=_0x5bd586[_0x41d3('0x15')][_0x41d3('0x43')](_0x41d3('0x18')+_0x3c4b1b['id']),_0x2ad618=_0x5bd586[_0x41d3('0x15')][_0x41d3('0x43')](_0x41d3('0x18')+_0xe7f6bb['id']);return _0x318c7a[_0x41d3('0x68')][_0x41d3('0x88')](_0x2ad618['start'])?-0x1:_0x318c7a[_0x41d3('0x68')]['isAfter'](_0x2ad618[_0x41d3('0x68')])?0x1:_0x318c7a['end'][_0x41d3('0x88')](_0x2ad618[_0x41d3('0xb7')])?-0x1:_0x318c7a[_0x41d3('0xb7')][_0x41d3('0xb8')](_0x2ad618[_0x41d3('0xb7')])?0x1:_0x41d3('0x11b')===_0x3c4b1b[_0x41d3('0xf0')]?-0x1:0x1;}),{'root':_0x5bd586,'changes':_0x20d386};function _0x43d477(_0x247959,_0x5a4a00,_0xefe912,_0x4d9241){const _0xf28b8=!!_0x899704[_0x5a4a00][_0x247959],_0x37d38e=_0xf28b8?_0x899704[_0x5a4a00][_0x247959]['userId']:null,_0x5beb58=_0x5a4a00===_0x899704[_0x41d3('0x2a')]-0x1,_0x5808c8=_0x1a37ac[_0x247959][0x0],_0x39d9af=_0x237e74[_0x41d3('0xef')](_0x899704[_0x5a4a00]['item']);!_0x2e090b[_0x247959]&&_0xf28b8?_0x2e090b[_0x247959]={'start':_0xefe912,'tapeItem':_0x899704[_0x5a4a00],'userId':_0x37d38e,'type':_0x247959}:_0x2e090b[_0x247959]&&!_0xf28b8?(_0x2e090b[_0x247959][_0x41d3('0xb7')]=_0xefe912,_0x5bed88(_0x2e090b[_0x247959]),_0x2e090b[_0x247959]=null):_0x2e090b[_0x247959]&&_0xf28b8&&_0x2e090b[_0x247959][_0x41d3('0x105')]!==_0x37d38e&&(_0x2e090b[_0x247959][_0x41d3('0xb7')]=_0xefe912,_0x5808c8&&_0x5808c8['userId']===_0x2e090b[_0x247959][_0x41d3('0x105')]||_0x5bed88(_0x2e090b[_0x247959]),_0x2e090b[_0x247959]={'start':_0xefe912,'tapeItem':_0x899704[_0x5a4a00],'userId':_0x37d38e,'type':_0x247959}),_0x2e090b[_0x247959]&&_0x39d9af&&(_0x41d3('0x74')!==_0x899704[_0x5a4a00][_0x41d3('0xf0')]||_0x5808c8&&_0x5808c8[_0x41d3('0x105')]===_0x37d38e||_0x1a37ac[_0x247959][_0x41d3('0x8a')]({'userId':_0x37d38e,'object':_0x899704[_0x5a4a00][_0x41d3('0x9d')],'change':_0x2e090b[_0x247959]}),_0x41d3('0xbf')===_0x899704[_0x5a4a00][_0x41d3('0xf0')]&&_0x5808c8&&_0x5808c8[_0x41d3('0xbc')]===_0x899704[_0x5a4a00]['item']&&(_0x1a37ac[_0x247959][_0x41d3('0x100')](),_0x2e090b[_0x247959]=_0x5808c8[_0x41d3('0x44')])),_0x2e090b[_0x247959]&&_0x5beb58&&(_0x2e090b[_0x247959][_0x41d3('0xb7')]=_0x4d9241,_0x5bed88(_0x2e090b[_0x247959]),_0x2e090b[_0x247959]=null);}function _0x5bed88({start:_0x395c50,end:_0x48f27a,tapeItem:_0x3bfdeb,userId:_0x581b31,type:_0x200641}){const _0x25c112=_0x3bfdeb[_0x41d3('0x9d')],_0x1e3a38=_0x274223[_0x41d3('0x114')][_0x41d3('0x4e')](_0x25c112)&&!_0x274223[_0x41d3('0x114')]['isLimit'](_0x25c112),_0x57ff96=_0x395c50[_0x41d3('0xda')]==_0x48f27a['parent']&&_0x48f27a['isAtStart'];if(_0x1e3a38&&_0x57ff96)return;const _0x33e900=_0x274223[_0x41d3('0x1d')](_0x395c50,_0x48f27a),_0x50a4bf=_0x15b408[_0x41d3('0x43')](_0x581b31),_0x3f4e93=new _0x1d437b({'author':_0x50a4bf,'type':_0x41d3('0xc8')==_0x200641||'isAddSuggestion'==_0x200641?'add':_0x41d3('0x116'),'data':{'isSuggestion':_0x41d3('0xd2')==_0x200641||_0x41d3('0x110')==_0x200641},'createdAt':new Date(),'rootName':_0x2ac798});_0x20d386[_0x41d3('0x70')](_0x3f4e93),_0x5bd586[_0x41d3('0x15')][_0x41d3('0x118')]('revision:'+_0x3f4e93['id'],_0x33e900);}function _0xd7b052(_0x2b5d10,_0xdc6b4){const _0x47c1d1=_0x2b5d10['getAttributes'](),_0x36eb9d=_0xdc6b4['getAttributes']();for(const _0x34ea65 of _0x47c1d1){if(_0x34ea65[0x1]!==_0xdc6b4[_0x41d3('0x10d')](_0x34ea65[0x0]))return!0x1;_0x36eb9d['next']();}return _0x36eb9d[_0x41d3('0x65')]()[_0x41d3('0xdf')];}}[_0x41d3('0x52')](){this[_0x41d3('0x123')]['conversion']['for'](_0x41d3('0xec'))[_0x41d3('0x60')]({'view':_0x41d3('0x77')}),this['editor'][_0x41d3('0x4c')]['for'](_0x41d3('0x7'))[_0x41d3('0xa4')]({'model':'revision','view':_0x16b66d=>{const _0x343a85=_0x16b66d[_0x41d3('0xa9')][_0x41d3('0x82')](':')[0x1],_0xcdb3fd=this['_getChangeFromId'](_0x343a85);if(!_0xcdb3fd)return null;const _0x2c5b3e=_0x41d3('0x11b')==_0xcdb3fd[_0x41d3('0xf0')]?_0x41d3('0xdd'):_0x41d3('0x2d'),_0x4a5c30=[_0x41d3('0xc1'),_0x41d3('0x31')+_0x2c5b3e];return _0xcdb3fd[_0x41d3('0x3d')][_0x41d3('0x84')]&&_0x4a5c30[_0x41d3('0x70')](_0x41d3('0x31')+_0x2c5b3e+_0x41d3('0xe0')),this[_0x41d3('0xe3')]==_0xcdb3fd&&_0x4a5c30[_0x41d3('0x70')](_0x41d3('0xc')),{'classes':_0x4a5c30,'attributes':{'data-change-id':_0x343a85}};}}),this[_0x41d3('0x123')][_0x41d3('0x4c')]['for'](_0x41d3('0xec'))[_0x41d3('0x11b')](_0x4590a3=>{_0x4590a3['on'](_0x41d3('0x104'),(_0x33ff2c,_0x1539f1,_0x1cae27)=>{const _0x598308=_0x1539f1['viewItem'][_0x41d3('0xc5')](0x0);if(!_0x598308||!_0x598308['is'](_0x41d3('0xa7'),_0x41d3('0xc4')))return;if(!_0x1cae27[_0x41d3('0xd6')][_0x41d3('0x128')](_0x598308,{'attributes':[_0x41d3('0x11'),_0x41d3('0x9f')]}))return;const _0x450723=_0x1539f1[_0x41d3('0x129')][_0x41d3('0x68')][_0x41d3('0xda')];_0x1cae27[_0x41d3('0x5b')][_0x41d3('0x13')](_0x41d3('0x11'),_0x598308[_0x41d3('0x10d')](_0x41d3('0x11')),_0x450723),_0x1cae27[_0x41d3('0x5b')][_0x41d3('0x13')](_0x41d3('0x9f'),_0x598308[_0x41d3('0x10d')](_0x41d3('0x9f')),_0x450723);},{'priority':_0x41d3('0x5f')});}),this[_0x41d3('0x123')][_0x41d3('0x4c')]['for'](_0x41d3('0xec'))['add'](_0x77b40a=>{_0x77b40a['on'](_0x41d3('0xa7'),(_0x96f873,_0x15ab2c,_0x1ae1e0)=>{if(!_0x1ae1e0[_0x41d3('0xd6')]['consume'](_0x15ab2c[_0x41d3('0x64')],{'attributes':[_0x41d3('0x11'),_0x41d3('0x9f')]}))return;if(_0x15ab2c['modelRange'][_0x41d3('0xc9')])return;const _0x8fa83d=_0x15ab2c[_0x41d3('0x129')][_0x41d3('0x68')][_0x41d3('0xda')];_0x8fa83d[_0x41d3('0x23')](_0x41d3('0x11'))||_0x8fa83d[_0x41d3('0x23')]('vid')||(_0x1ae1e0[_0x41d3('0x5b')][_0x41d3('0x13')](_0x41d3('0x11'),_0x15ab2c['viewItem']['getAttribute']('vid_start'),_0x8fa83d),_0x1ae1e0['writer'][_0x41d3('0x13')](_0x41d3('0x9f'),_0x15ab2c[_0x41d3('0x64')]['getAttribute'](_0x41d3('0x9f')),_0x8fa83d));},{'priority':'low'});}),this[_0x41d3('0x123')]['conversion'][_0x41d3('0x30')](_0x41d3('0xec'))[_0x41d3('0x42')]({'view':{'name':_0x41d3('0x58'),'attributes':{'vid':!0x0}},'model':{'key':_0x41d3('0x124'),'value':_0x46713f=>_0x46713f[_0x41d3('0x10d')](_0x41d3('0x124'))}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1370cf,[,_0x39c177])=>{[_0x41d3('0x11'),_0x41d3('0x9f'),_0x41d3('0x124')][_0x41d3('0xe')](_0x39c177)&&(_0x1370cf[_0x41d3('0x6e')]=!0x0,_0x1370cf[_0x41d3('0xc3')]());},{'priority':'highest'}),this[_0x41d3('0x123')][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xb'))[_0x41d3('0x11b')](_0x1ed870=>{_0x1ed870['on'](_0x41d3('0xe8'),(_0x4c757c,_0x525033,_0x33dada)=>{if('\x20'!=_0x525033[_0x41d3('0x9d')]['data']||_0x525033[_0x41d3('0x9d')]['parent'][_0x41d3('0x119')]>0x1)return;if(!_0x33dada[_0x41d3('0xd6')][_0x41d3('0x128')](_0x525033['item'],_0x4c757c[_0x41d3('0x6f')]))return;const _0x4b0d08=_0x33dada[_0x41d3('0x5b')],_0x1c6638=_0x33dada['mapper']['toViewRange'](_0x525033[_0x41d3('0xb5')]);_0x4b0d08[_0x41d3('0x9a')](_0x1c6638,_0x4b0d08['createAttributeElement'](_0x41d3('0x58')));});}),this['editor'][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xb'))[_0x41d3('0x7b')]({'model':_0x41d3('0x77')}),this['editor'][_0x41d3('0x3e')][_0x41d3('0x3b')]['on'](_0x41d3('0x106'),function(_0x502465){const _0x4003c0=_0x502465['plugins'][_0x41d3('0x43')]('RevisionViewer');return(_0x4a93b3,_0x294359,_0x27eba4)=>{const _0x2eba6c=_0x294359[_0x41d3('0xa9')][_0x41d3('0x82')](':')[0x1],_0x3be2fc=_0x4003c0['_getChangeFromId'](_0x2eba6c);if(!_0x3be2fc)return null;const _0x2b8d4d=_0x41d3('0x11b')==_0x3be2fc[_0x41d3('0xf0')]?_0x41d3('0x82'):'merge';if(!_0x27eba4[_0x41d3('0xd6')][_0x41d3('0xd4')](_0x294359['markerRange'],_0x4a93b3[_0x41d3('0x6f')]))return;const _0x304812=_0x294359['markerRange']['getWalker'](),_0x4a56f8=_0x294359[_0x41d3('0x7f')]['start'],_0x5703a8=_0x502465[_0x41d3('0x80')][_0x41d3('0x114')];let _0x3c4ff0=null,_0x4951a6=null,_0x4e9f95=!0x1,_0x109cf0=!0x1;for(const _0x2fca33 of _0x304812){const _0x458ddc=_0x2fca33[_0x41d3('0x9d')];_0x4e9f95=_0x4e9f95||_0x5703a8[_0x41d3('0x55')](_0x458ddc);const _0x157a82=_0x27eba4['mapper'][_0x41d3('0xf8')](_0x458ddc);if(_0x157a82&&_0x157a82[_0x41d3('0xb3')](_0x41d3('0xc6')))return;'elementEnd'==_0x2fca33[_0x41d3('0xf0')]&&(_0x5703a8[_0x41d3('0x4e')](_0x458ddc)&&!_0x5703a8[_0x41d3('0xf9')](_0x458ddc)&&(_0x458ddc[_0x41d3('0x10b')]||_0x4a56f8['isAtEnd']?_0x3c4ff0&&_0x3c4ff0[_0x41d3('0xf5')]==_0x458ddc||(_0x3c4ff0=_0x458ddc,_0x1a331c(_0x2fca33[_0x41d3('0x85')]),_0x109cf0=!0x0):_0x4951a6=_0x4951a6||_0x2fca33[_0x41d3('0x85')]));}function _0x1a331c(_0x2212df){const _0x1cc5cb=_0x27eba4['writer'][_0x41d3('0x53')]('span',{'class':_0x41d3('0x31')+_0x2b8d4d}),_0x549c09=_0x27eba4[_0x41d3('0xd7')]['toViewPosition'](_0x2212df);_0x3be2fc[_0x41d3('0x3d')][_0x41d3('0x84')]&&_0x27eba4[_0x41d3('0x5b')][_0x41d3('0xd9')](_0x41d3('0x31')+_0x2b8d4d+_0x41d3('0xe0'),_0x1cc5cb),_0x4003c0[_0x41d3('0xe3')]==_0x3be2fc&&_0x27eba4[_0x41d3('0x5b')][_0x41d3('0xd9')](_0x41d3('0xc'),_0x1cc5cb),_0x27eba4[_0x41d3('0x5b')][_0x41d3('0xde')](_0x549c09,_0x1cc5cb),_0x27eba4['mapper'][_0x41d3('0xac')](_0x1cc5cb,_0x294359[_0x41d3('0xa9')]);}_0x4e9f95||_0x109cf0||!_0x4951a6||_0x1a331c(_0x4951a6);};}(this['editor']),{'priority':_0x41d3('0xcc')}),this[_0x41d3('0x123')][_0x41d3('0x3e')]['downcastDispatcher']['on'](_0x41d3('0x72'),(_0x25d788,_0x67f219,_0x7ecd8c)=>{const _0x17da8f=_0x7ecd8c[_0x41d3('0xd7')][_0x41d3('0x115')](_0x67f219[_0x41d3('0xa9')]);if(_0x17da8f)for(const _0x36225b of _0x17da8f)(_0x36225b[_0x41d3('0xd8')]('ck-suggestion-marker-split')||_0x36225b[_0x41d3('0xd8')]('ck-suggestion-marker-merge'))&&(_0x7ecd8c['mapper'][_0x41d3('0x57')](_0x36225b,_0x67f219['markerName']),_0x7ecd8c['writer']['remove'](_0x36225b));},{'priority':_0x41d3('0xcc')}),this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x3b')]['on']('addMarker:revision',(_0x5da0ef,_0x350cc0,_0x3cf9af)=>{const _0x1be84c=_0x350cc0[_0x41d3('0xa9')][_0x41d3('0x82')](':')[0x1],_0x34298d=this[_0x41d3('0xd1')](_0x1be84c);if(!_0x34298d)return null;const _0x364ad4=_0x41d3('0x11b')==_0x34298d[_0x41d3('0xf0')]?_0x41d3('0x82'):_0x41d3('0x7d');if(_0x3cf9af[_0x41d3('0xd6')][_0x41d3('0xd4')](_0x350cc0[_0x41d3('0x7f')],_0x5da0ef[_0x41d3('0x6f')]))for(const _0x3336dc of _0x350cc0['markerRange'][_0x41d3('0x117')]()){if(!_0x3336dc['is'](_0x41d3('0xa7'),_0x41d3('0x0')))continue;const _0x430646=_0x3cf9af[_0x41d3('0x5b')][_0x41d3('0x53')]('span',{'class':_0x41d3('0x31')+_0x364ad4}),_0x3c452f=_0x3cf9af[_0x41d3('0xd7')][_0x41d3('0x4f')](this[_0x41d3('0x123')]['model'][_0x41d3('0x5a')](_0x3336dc));_0x34298d['data'][_0x41d3('0x84')]&&_0x3cf9af[_0x41d3('0x5b')][_0x41d3('0xd9')](_0x41d3('0x31')+_0x364ad4+_0x41d3('0xe0'),_0x430646),this[_0x41d3('0xe3')]==_0x34298d&&_0x3cf9af[_0x41d3('0x5b')][_0x41d3('0xd9')](_0x41d3('0xc'),_0x430646),_0x3cf9af['writer']['insert'](_0x3c452f,_0x430646),_0x3cf9af[_0x41d3('0xd7')]['bindElementToMarker'](_0x430646,_0x350cc0[_0x41d3('0xa9')]);}},{'priority':'high'}),this['editor'][_0x41d3('0x80')][_0x41d3('0xae')]['on'](_0x41d3('0x44'),()=>{this['editor'][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0x44')](_0x31c83f=>{for(const _0x3b717e of this['editor'][_0x41d3('0x80')][_0x41d3('0xae')]['getRootNames']()){const _0x28068b=this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0xae')][_0x41d3('0x59')](_0x3b717e),_0x169356=this['editor'][_0x41d3('0x3e')][_0x41d3('0x50')]['document'][_0x41d3('0x59')](_0x3b717e);if(_0x169356){const _0x1b5e21=_0x28068b[_0x41d3('0x10d')]('revisionHistoryAttachChange');if(_0x31c83f[_0x41d3('0xc2')](_0x41d3('0xe9'),_0x169356),_0x31c83f['removeClass']('ck-revision-history-root-add',_0x169356),_0x31c83f['removeClass'](_0x41d3('0x5'),_0x169356),_0x31c83f[_0x41d3('0x6')]('ck-revision-history-root--active',_0x169356),_0x1b5e21){const _0xa632f7=this['_getChangeFromId'](_0x1b5e21);if(!_0xa632f7)return null;_0x31c83f[_0x41d3('0x13')](_0x41d3('0xe9'),_0x1b5e21,_0x169356),_0x31c83f[_0x41d3('0xd9')](_0x41d3('0xb0')+_0xa632f7[_0x41d3('0xf0')],_0x169356),this['activeChange']==_0xa632f7&&_0x31c83f[_0x41d3('0xd9')]('ck-revision-history-root--active',_0x169356);}}}});}),this[_0x41d3('0x123')][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xec'))[_0x41d3('0x60')]({'view':_0x41d3('0xe1'),'model':_0x127cb3=>_0x41d3('0xc0')+_0x127cb3,'converterPriority':_0x41d3('0x126')}),this['editor'][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xec'))['dataToMarker']({'view':_0x41d3('0x3'),'model':_0x4e9561=>_0x41d3('0x1f')+_0x4e9561,'converterPriority':_0x41d3('0x126')}),this['editor'][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xb'))[_0x41d3('0x7b')]({'model':_0x41d3('0x107'),'view':_0x15c41e=>({'name':_0x41d3('0x71')+_0x15c41e,'group':_0x41d3('0x107')}),'converterPriority':_0x41d3('0x126')}),this['editor'][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0x7'))[_0x41d3('0xa4')]({'model':_0x41d3('0x107'),'view':_0x1c45db=>{const _0x311bd0=_0x1c45db['markerName'][_0x41d3('0x82')](':')[0x1];return'insertion'!=_0x311bd0&&_0x41d3('0x2d')!=_0x311bd0?null:{'classes':[_0x41d3('0x61'),_0x41d3('0xbb')+_0x311bd0]};}}),this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x3b')]['on'](_0x41d3('0xe2'),et(this[_0x41d3('0x123')],'merge'),{'priority':'high'}),this[_0x41d3('0x123')]['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this[_0x41d3('0x123')],_0x41d3('0x82')),{'priority':_0x41d3('0xcc')}),this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x3b')]['on'](_0x41d3('0x125'),(_0x41ed80,_0x2f5556,_0xa3e0ef)=>{const _0x4b83b7=_0xa3e0ef[_0x41d3('0xd7')]['markerNameToElements'](_0x2f5556['markerName']);if(_0x4b83b7)for(const _0x32665c of _0x4b83b7)_0x32665c['is'](_0x41d3('0xa3'))&&(_0xa3e0ef[_0x41d3('0xd7')][_0x41d3('0x57')](_0x32665c,_0x2f5556[_0x41d3('0xa9')]),_0xa3e0ef[_0x41d3('0x5b')]['remove'](_0x32665c));},{'priority':_0x41d3('0xcc')});}['_getChangeFromId'](_0x5b9a12){return this[_0x41d3('0x11a')][_0x41d3('0x43')](_0x5b9a12);}[_0x41d3('0xa6')](_0x4b27c5){return this['_changeView']&&this[_0x41d3('0x5e')]['destroy'](),this['_changeView']=new _0x702f8d(this[_0x41d3('0x123')][_0x41d3('0x41')],_0x4b27c5),this[_0x41d3('0x5e')];}[_0x41d3('0x3f')](){this['editor'][_0x41d3('0x80')]['document'][_0x41d3('0x49')][_0x41d3('0x10')](_0x41d3('0x77')),this['on'](_0x41d3('0x20'),(_0x50afde,_0x57709d,_0x241512,_0x5e30f7)=>{_0x5e30f7&&this[_0x41d3('0x120')][_0x41d3('0x116')](_0x5e30f7),_0x241512&&(this[_0x41d3('0x120')][_0x41d3('0x11b')]({'view':_0x241512,'stackId':_0x41d3('0x8f'),'position':{'target':()=>{const _0xd856da=this[_0x41d3('0x123')][_0x41d3('0x3e')],_0x1a019d=this[_0x41d3('0xd1')](_0x241512['changeId']);let _0x2d83fd;if(_0x1a019d['data'][_0x41d3('0xf7')]){const _0x54b4ca=_0xd856da[_0x41d3('0x50')][_0x41d3('0xf6')](_0x1a019d[_0x41d3('0x94')]);_0x2d83fd=Array[_0x41d3('0x6c')](_0x54b4ca['getClientRects']());}else{const _0x474e79=this['editor']['model']['markers'][_0x41d3('0x43')](_0x41d3('0x18')+_0x241512['changeId']);_0x2d83fd=Array[_0x41d3('0x6c')](_0xd856da[_0x41d3('0xd7')]['markerNameToElements'](_0x474e79[_0x41d3('0x6f')]))[_0x41d3('0x93')](_0x518902=>_0xd856da[_0x41d3('0x50')][_0x41d3('0xa0')][_0x41d3('0xb2')](_0x518902))[_0x41d3('0x93')](_0xcfbe3b=>Array[_0x41d3('0x6c')](_0xcfbe3b[_0x41d3('0x32')]()))[_0x41d3('0x78')]();}if(!this[_0x41d3('0x54')])return _0x2d83fd[0x0];return _0x2d83fd[_0x41d3('0xd0')](_0x2bd2de=>_0x2bd2de[_0x41d3('0xe7')]-0x3<=this['_activeViewTarget']['y']&&_0x2bd2de[_0x41d3('0x1a')]+0x3>=this[_0x41d3('0x54')]['y']&&_0x2bd2de[_0x41d3('0x102')]-0x3<=this[_0x41d3('0x54')]['x']&&_0x2bd2de[_0x41d3('0x98')]+0x3>=this[_0x41d3('0x54')]['x'])||_0x2d83fd[0x0];}}}),this[_0x41d3('0x120')][_0x41d3('0x2')](_0x41d3('0x8f')));}),this['on'](_0x41d3('0xa'),(_0x103a8e,_0x1f8952,_0x3fe1b0,_0x2b97cb)=>{this[_0x41d3('0x28')]=_0x3fe1b0?this[_0x41d3('0xa6')](_0x3fe1b0):null,this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0x44')](()=>{const _0x227542=this[_0x41d3('0x123')]['editing'];_0x2b97cb&&(_0x2b97cb['data']['isOnRoot']?_0x227542[_0x41d3('0x50')][_0x41d3('0x44')](_0x4a9969=>{_0x4a9969[_0x41d3('0x6')](_0x41d3('0x27'),_0x227542[_0x41d3('0x50')]['document'][_0x41d3('0x59')](_0x2b97cb[_0x41d3('0x94')]));}):_0x227542[_0x41d3('0x67')]('revision:'+_0x2b97cb['id'])),_0x3fe1b0&&(_0x3fe1b0[_0x41d3('0x3d')]['isOnRoot']?_0x227542['view'][_0x41d3('0x44')](_0x35e60f=>{_0x35e60f[_0x41d3('0xd9')]('ck-revision-history-root--active',_0x227542[_0x41d3('0x50')][_0x41d3('0xae')]['getRoot'](_0x3fe1b0[_0x41d3('0x94')]));}):_0x227542[_0x41d3('0x67')](_0x41d3('0x18')+_0x3fe1b0['id']));});}),this['listenTo'](this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xae')],_0x41d3('0xaa'),(_0x2b983a,_0x29d497)=>{if(this[_0x41d3('0xe3')])return;const _0x30b379=this[_0x41d3('0x99')](_0x29d497[_0x41d3('0x11c')]),_0x331a23=this[_0x41d3('0x11a')]['get'](_0x30b379);_0x331a23?(this[_0x41d3('0x54')]={'x':_0x29d497[_0x41d3('0x35')]['x'],'y':_0x29d497[_0x41d3('0x35')]['y']},this[_0x41d3('0x28')]=this[_0x41d3('0xa6')](_0x331a23)):(this[_0x41d3('0x54')]=null,this[_0x41d3('0x28')]=null);}),this['listenTo'](this['editor'][_0x41d3('0x3e')][_0x41d3('0x50')]['document'],_0x41d3('0xeb'),(_0x2922f8,_0x45882a)=>{const _0xd93cb0=this[_0x41d3('0x99')](_0x45882a[_0x41d3('0x11c')]),_0x428611=this[_0x41d3('0x11a')][_0x41d3('0x43')](_0xd93cb0);_0x428611?(this['_activeViewTarget']={'x':_0x45882a[_0x41d3('0x35')]['x'],'y':_0x45882a[_0x41d3('0x35')]['y']},_0x428611===this[_0x41d3('0xe3')]?this['_balloon'][_0x41d3('0x127')]():this[_0x41d3('0xe3')]=_0x428611):(this['_activeViewTarget']=null,this['activeChange']=null);});}[_0x41d3('0x99')](_0x5e1dc1){do{const _0x33ef3c=_0x5e1dc1[_0x41d3('0x10d')]('data-change-id');if(_0x33ef3c)return _0x33ef3c;_0x5e1dc1=_0x5e1dc1[_0x41d3('0xf5')];}while(_0x5e1dc1);return null;}[_0x41d3('0x9e')](){this[_0x41d3('0x123')][_0x41d3('0x80')]['change'](_0x15d963=>{for(const _0xfa41ea of this['editor'][_0x41d3('0x80')]['markers'])_0x15d963[_0x41d3('0x2f')](_0xfa41ea);});}}function et(_0x3e9021,_0x528708){return(_0x3214d9,_0x34c1a2,_0x1ba7e6)=>{if(!_0x1ba7e6['consumable'][_0x41d3('0xd4')](_0x34c1a2[_0x41d3('0x7f')],_0x3214d9[_0x41d3('0x6f')]))return;const _0x50c468=_0x34c1a2[_0x41d3('0x7f')][_0x41d3('0x21')](),_0x1989e0=_0x34c1a2[_0x41d3('0x7f')][_0x41d3('0x68')],_0x4cf3d7=_0x3e9021[_0x41d3('0x80')][_0x41d3('0x114')];let _0x56d2b5=null,_0x14b93c=null,_0x5f26f6=!0x1,_0x2579a9=!0x1;for(const _0x56e3a2 of _0x50c468){const _0x17e3ca=_0x56e3a2[_0x41d3('0x9d')];_0x5f26f6=_0x5f26f6||_0x4cf3d7[_0x41d3('0x55')](_0x17e3ca);const _0x45ab90=_0x1ba7e6[_0x41d3('0xd7')][_0x41d3('0xf8')](_0x17e3ca);if(_0x45ab90&&_0x45ab90[_0x41d3('0xb3')](_0x41d3('0xc6')))return;_0x41d3('0xbf')==_0x56e3a2[_0x41d3('0xf0')]&&(_0x4cf3d7[_0x41d3('0x4e')](_0x17e3ca)&&!_0x4cf3d7[_0x41d3('0xf9')](_0x17e3ca)&&(_0x17e3ca[_0x41d3('0x10b')]||_0x1989e0['isAtEnd']?_0x56d2b5&&_0x56d2b5[_0x41d3('0xf5')]==_0x17e3ca||(_0x56d2b5=_0x17e3ca,_0x2cbc97(_0x56e3a2[_0x41d3('0x85')]),_0x2579a9=!0x0):_0x14b93c=_0x14b93c||_0x56e3a2[_0x41d3('0x85')]));}function _0x2cbc97(_0x418974){const _0xeb2f63=_0x1ba7e6[_0x41d3('0xd7')][_0x41d3('0x4f')](_0x418974),_0x1b739e=_0x1ba7e6[_0x41d3('0x5b')][_0x41d3('0x53')]('span',{'class':_0x41d3('0xbb')+_0x528708});_0x1ba7e6[_0x41d3('0x5b')][_0x41d3('0xde')](_0xeb2f63,_0x1b739e),_0x1ba7e6[_0x41d3('0xd7')][_0x41d3('0xac')](_0x1b739e,_0x34c1a2[_0x41d3('0xa9')]);}_0x5f26f6||_0x2579a9||!_0x14b93c||_0x2cbc97(_0x14b93c);};}export class RestoreRevisionCommand extends _0x52ed3c{constructor(_0x5e4424){super(_0x5e4424);const _0x17008a=_0x5e4424['plugins'][_0x41d3('0x43')](d);this[_0x41d3('0x86')]=!0x1,this[_0x41d3('0x5c')](_0x17008a,'change:isReady',()=>this[_0x41d3('0x108')]()),this[_0x41d3('0x5c')](_0x17008a,_0x41d3('0x33'),()=>this['refresh']());}[_0x41d3('0xfa')](){const _0x481af6=this['editor'],_0xec32f9=_0x481af6[_0x41d3('0x5d')][_0x41d3('0x43')](d),_0x44efb1=_0xec32f9['isReady']?_0xec32f9[_0x41d3('0x36')][_0x41d3('0xf2')]:null;_0x481af6[_0x41d3('0xca')]['get']('revisionHistory')[_0x41d3('0xe4')](_0x44efb1);}['refresh'](){const {isReady:_0x1e24ae,isEnabled:_0x55a2be}=this[_0x41d3('0x123')][_0x41d3('0x5d')][_0x41d3('0x43')](d);this[_0x41d3('0x6d')]=_0x1e24ae&&_0x55a2be;}}export class ShowChangeCommand extends _0x52ed3c{constructor(_0x42b84f,{direction:_0x20ede7}){super(_0x42b84f);const _0x4daab1=_0x42b84f[_0x41d3('0x5d')][_0x41d3('0x43')](d);this[_0x41d3('0x86')]=!0x1,this[_0x41d3('0x10e')]='forward'===_0x20ede7?0x1:-0x1,this['listenTo'](_0x4daab1,_0x41d3('0x47'),()=>this[_0x41d3('0x108')]()),this[_0x41d3('0x5c')](_0x4daab1,_0x41d3('0x33'),()=>this[_0x41d3('0x108')]()),this['listenTo'](_0x4daab1,'change:activeChange',()=>this[_0x41d3('0x108')]());}['execute'](){const _0x4ebeee=this[_0x41d3('0x123')],_0x196d55=_0x4ebeee[_0x41d3('0x5d')][_0x41d3('0x43')](d),{isNavigationMode:_0x2782ea,currentChangeNumber:_0x33ac72}=_0x196d55;let _0x367712;if(_0x196d55[_0x41d3('0xe3')]=_0x2782ea?_0x196d55[_0x41d3('0x36')][_0x41d3('0x113')][_0x41d3('0x43')](_0x33ac72+this['_step']):_0x196d55[_0x41d3('0x36')][_0x41d3('0x113')]['first'],_0x196d55[_0x41d3('0xe3')][_0x41d3('0x3d')][_0x41d3('0xf7')])_0x367712=_0x4ebeee[_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xf6')](_0x196d55['activeChange'][_0x41d3('0x94')]);else{const _0x14a5dd=_0x4ebeee[_0x41d3('0x80')][_0x41d3('0x15')][_0x41d3('0x43')](_0x41d3('0x18')+_0x196d55[_0x41d3('0xe3')]['id']);_0x367712=_0x4c8423(_0x4ebeee[_0x41d3('0x3e')],_0x14a5dd);}_0x320f9a({'target':_0x367712,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1d9d32,currentChangeNumber:_0xfc2bde,numberOfChanges:_0x21bee3,isReady:_0x1d7873,isEnabled:_0x40f3a1}=this[_0x41d3('0x123')]['plugins'][_0x41d3('0x43')](d);this[_0x41d3('0x6d')]=!!(_0x40f3a1&&_0x1d7873&&_0x21bee3)&&(!_0x1d9d32||(0x1===this[_0x41d3('0x10e')]?_0xfc2bde<_0x21bee3-0x1:_0xfc2bde>0x0));}}
23
+ const _0xc3ad=['restoreRevisionCallback','removeMarker:revision','detachRoot','all','revision-suggestion','set','data-change-id','removeAttribute','change','stop','uiElement','activeChange','_removeMissingPairs','isAtStart','editingDowncast','domConverter','document','splice','_cleanUp','attribute:vid','modelRange','changeId','forceDisabled','activeView','writer','element:pre','_markMarkers','pluginName','parse','left','ck-revision-history-root-remove','indexOf','_markInsertions','map','insertions','data-revision-','includes','ck-suggestion-preview-marker','getCustomProperty','data','mousedown','isNavigationMode','addRevisionData','refresh','_setChanges','revision-start','_makeTape','right','addMarker:revision-suggestion:deletion','addRevision','_getViewForChange','toModel','high','currentChangeNumber','_threeWayMerge','createPositionFromPath','ck-revision-history-root--active','-new','change:isEnabled','viewItem','oldRevisionId','isAfter','marked','getRoot','nextSibling','useFillerType','then','hasAttribute','revisionHistoryLabel','getRevision','changes','isObject','getAttribute','hasClass','index','isBefore','maxOffset','authors','showStack','enableReadOnlyMode','toData','model','enqueueChange','createUIElement','parent','clear','addRoot','ck-suggestion-preview-marker-','test','_makeModelFromViewString','mapper','RevisionsRepository','consumable','loadRevisionData','type','getWalker','insertion','RevisionViewer','find','getClientRects','low','filter','_processTape','markerNameToElements','locale','bindElementToMarker','push','editing','pairId','isRemoveSuggestion','_sortAndFilterDiffChanges','_revisions','mouseover','object','isOnRoot','_setDistance','attributesAfter','_balloon','code','_makeModelFromTape','getChild','_markMismatchedRemovedTags','target','toViewPosition','ck-editor__editable__overlay','length','element','change:numberOfChanges','forward','removeClass','getAttributes','nodeAfter','createRangeIn','_getChangeFromId','backward','remove','setAttribute','string','nextPosition','isAddSuggestion','return','shift','ck-suggestion-marker-','checkAttribute','offsetSize','plugins','_activeViewTarget','elementToAttribute','editor','diff','listenTo','ck-revision-history-root-add','toViewElement','processor','addClass','delete','schema','isRemoved','unbindElementFromMarkerName','change:isReady','from','_getViewObj','adapter','getIndex','_cleanMarkers','level','vid_end','markerToData','forEach','attachChange','getRootNames','previousPosition','item','get','selection','resolve','vid','attributes','newRevisionId','distance','end','revision:','isInline','text','getItems','reconvertMarker','next','suggestion','name','merge','init','requires','markers','consume','revision-viewer','elementStart','_getDiff','isAdded','dataToMarker','view','default','side','for','destroy','startsWith','revisionHistoryAttachChange','isAttached','getRevisionData','bind','markerName','_joinTapes','isEnabled','removeMarker','addHighlight','vid_start','revision-comment:','has','_changeIdToChange','diffData','_fixObsoleteTags','range','done','userId','removeMarker:revision-suggestion','updatePosition','concat','deletion','_markSuggestions','isIncorrect','abs','markersEnd','revision','createRange','startIndex','markerRange','markerToHighlight','isContent','_removeUnsupportedChanges','elementEnd','pop','conversion','change:activeChange','isEqual','comment','top','span','unshift','sort','deletions','rootName','_appendChild','getRevisionRootsAttributes','commands','ck-suggestion-marker-split','highest','add','isCollapsed','error','_step','ck-revision-history-root-','_getRevisionsRange','downcastDispatcher','WidgetToolbarRepository','start','addMarker:revision','_removeRevisionMarkers','markersStart','execute','isReady','config','getDomRoot','upcast','_changeView','_update','split','slice','domEvent','isAtEnd','_refreshStartEndIndex','numberOfChanges','attributesBefore','isBlock','endIndex','dataDowncast','mapViewToDom','isSuggestion','_findChangeIdFromDomTarget','_setConversion','isLimit','repository','addMarker:revision-suggestion:insertion','observeMarkers','ck-suggestion-marker--active','insert','keys'];(function(_0x2d9021,_0xc3adff){const _0x492615=function(_0x518f5c){while(--_0x518f5c){_0x2d9021['push'](_0x2d9021['shift']());}};_0x492615(++_0xc3adff);}(_0xc3ad,0x123));const _0x4926=function(_0x2d9021,_0xc3adff){_0x2d9021=_0x2d9021-0x0;let _0x492615=_0xc3ad[_0x2d9021];return _0x492615;};import{Plugin as _0xd2d53,Command as _0x196c82}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x533979}from'ckeditor5/src/utils';import{ContextualBalloon as _0xde5e1f}from'ckeditor5/src/ui';import{DocumentFragment as _0x5a388a,Element as _0x299acf,Text as _0x28af79,ViewDocumentFragment as _0x34df08,ViewText as _0x48cd35,ViewElement as _0x1cda3d,ViewContainerElement as _0x5d9e2e,ViewAttributeElement as _0x442eb4,ViewEmptyElement as _0x3780cc,ViewRawElement as _0x416c35,ViewUIElement as _0x3cd940}from'ckeditor5/src/engine';import{Users as _0x3fa854,getMarkerDomElement as _0x2334ee}from'ckeditor5-collaboration/src/collaboration-core';import _0x4de14f from'./ui/revisionviewer/changedetailsview';import _0xeb89fa from'./revisionsrepository';import _0x26e56f from'./changeitem';import{default as _0x16038d}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x503564}from'lodash-es';const tt={'c':_0x5d9e2e,'a':_0x442eb4,'e':_0x3780cc,'r':_0x416c35,'u':_0x3cd940};export default class d extends _0xd2d53{static get[_0x4926('0x1f')](){return'RevisionViewer';}static get[_0x4926('0xc3')](){return[_0x3fa854,_0xde5e1f,_0xeb89fa];}constructor(_0x103ff9){super(_0x103ff9),this[_0x4926('0x125')]=this['editor'][_0x4926('0x95')][_0x4926('0xb1')](_0x4926('0x5f')),this['set'](_0x4926('0xf'),null),this[_0x4926('0x9')]('activeView',null),this[_0x4926('0x96')]=null,this[_0x4926('0x9')](_0x4926('0x99'),null),this[_0x4926('0x9')](_0x4926('0x110'),!0x1),this['set'](_0x4926('0xd7'),!0x0),this['on'](_0x4926('0x3e'),(_0x558b5f,_0x55e673,_0x2e0b60)=>{this[_0x4926('0xf')]=null,this[_0x4926('0x1b')]=null,this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')][_0x4926('0xc')](_0x12b7fa=>{for(const _0x437255 of this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')][_0x4926('0x14')]['roots'])_0x2e0b60?_0x12b7fa[_0x4926('0x85')](_0x4926('0x80'),_0x437255):_0x12b7fa[_0x4926('0x9e')]('ck-editor__editable__overlay',_0x437255);});}),this[_0x4926('0xd4')](_0x4926('0x2d'))['to'](this,'activeChange',_0x1371f7=>null!==_0x1371f7),this[_0x4926('0xd4')](_0x4926('0x39'))['to'](this,_0x4926('0x110'),this,_0x4926('0x99'),this,_0x4926('0xf'),(_0x35740f,_0x4265e3,_0x3b3d58)=>_0x35740f&&_0x3b3d58?_0x4265e3[_0x4926('0x4a')][_0x4926('0xa7')](_0x3b3d58):0x0),this[_0x4926('0xd4')](_0x4926('0x11b'))['to'](this,'isReady',this,_0x4926('0x99'),(_0x4e581e,_0x4c3af1)=>_0x4e581e?_0x4c3af1[_0x4926('0x4a')][_0x4926('0x81')]:0x0),this[_0x4926('0x114')]=null,this[_0x4926('0xdd')]=new Map(),this[_0x4926('0xa6')]=null,this['_balloon']=this[_0x4926('0x98')][_0x4926('0x95')]['get'](_0xde5e1f);}[_0x4926('0xc2')](){const _0x5be077=this[_0x4926('0x98')],_0x3069ee=new ShowChangeCommand(_0x5be077,{'direction':_0x4926('0x8a')}),_0x2efa38=new ShowChangeCommand(_0x5be077,{'direction':_0x4926('0x84')});(_0x5be077[_0x4926('0x100')][_0x4926('0x103')]('showPreviousChange',_0x3069ee),_0x5be077[_0x4926('0x100')][_0x4926('0x103')]('showNextChange',_0x2efa38),_0x5be077[_0x4926('0x100')]['add']('restoreRevision',new RestoreRevisionCommand(_0x5be077)),this['on'](_0x4926('0x83'),()=>{_0x3069ee[_0x4926('0x2f')](),_0x2efa38['refresh']();}),this[_0x4926('0x123')](),this['_initInteractions'](),_0x5be077[_0x4926('0x53')](_0x4926('0xc6')),_0x5be077[_0x4926('0x95')]['has'](_0x4926('0x10a')))&&_0x5be077[_0x4926('0x95')]['get']('WidgetToolbarRepository')[_0x4926('0x1a')]('revision-viewer');}async[_0x4926('0xd3')](_0x5a9a6d){await this[_0x4926('0x61')](_0x5a9a6d);const _0x5d978d={};for(const _0x4a2444 in _0x5a9a6d['diffData']){if(_0x5a9a6d[_0x4926('0xde')][_0x4a2444]['attachChange']&&!_0x5a9a6d[_0x4926('0xde')][_0x4a2444][_0x4926('0xad')][_0x4926('0xd2')])continue;const _0x5b65ad=this[_0x4926('0x10d')](JSON[_0x4926('0x20')](_0x5a9a6d[_0x4926('0xde')][_0x4a2444][_0x4926('0x26')])),_0x458838=this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')]['document'],_0x2457b6=new _0x34df08(_0x458838,_0x5b65ad['map'](_0x452d88=>this[_0x4926('0xa5')](_0x452d88)));this[_0x4926('0x98')][_0x4926('0x2b')][_0x4926('0x9d')][_0x4926('0x45')](_0x4926('0x42')),_0x5d978d[_0x4a2444]=this['editor'][_0x4926('0x2b')][_0x4926('0x9d')][_0x4926('0x54')](_0x2457b6),this[_0x4926('0x98')]['data'][_0x4926('0x9d')][_0x4926('0x45')](_0x4926('0xcc'));}return _0x5d978d;}async[_0x4926('0xff')](_0x5a0d97){await this['loadRevisionData'](_0x5a0d97);const _0x56f1db={};for(const _0x4e1806 in _0x5a0d97['diffData'])_0x5a0d97[_0x4926('0xde')][_0x4e1806]['attachChange']&&!_0x5a0d97[_0x4926('0xde')][_0x4e1806][_0x4926('0xad')][_0x4926('0xd2')]||(_0x56f1db[_0x4e1806]=_0x5a0d97[_0x4926('0xde')][_0x4e1806][_0x4926('0x78')]||{});return _0x56f1db;}[_0x4926('0x10d')](_0x4997a6){return(_0x4997a6=_0x4997a6[_0x4926('0x69')](_0x4e0d5c=>!_0x4e0d5c[_0x4926('0xc0')]||_0x4926('0x31')!==_0x4e0d5c['name']&&'revision-end'!==_0x4e0d5c[_0x4926('0xc0')]))['forEach'](_0x3bdab6=>{_0x4926('0x8d')!=typeof _0x3bdab6&&(_0x3bdab6['children']=this[_0x4926('0x10d')](_0x3bdab6['children']),_0x3bdab6[_0x4926('0xb5')]=_0x3bdab6['attributes'][_0x4926('0x69')](_0x36450a=>!_0x36450a[0x0][_0x4926('0xd0')](_0x4926('0x27'))));}),_0x4997a6;}async['compare'](_0x5cbceb,_0x5c2881,_0xaca7fc=!0x1){if(!this[_0x4926('0xd7')])return;const _0x164837=this[_0x4926('0x99')],_0x35f7e9=this[_0x4926('0x125')],_0x26e091=_0x4926('0x8d')==typeof _0x5cbceb?_0x35f7e9[_0x4926('0x49')](_0x5cbceb):_0x5cbceb,_0x220dcf=_0x4926('0x8d')==typeof _0x5c2881?_0x35f7e9[_0x4926('0x49')](_0x5c2881):_0x5c2881,_0x20194b=_0x26e091['id'],_0x4deffe=_0x220dcf?_0x220dcf['id']:null;if(!_0xaca7fc&&this[_0x4926('0x99')]&&this[_0x4926('0x99')]['newRevisionId']===_0x20194b&&this['diff'][_0x4926('0x40')]===_0x4deffe)return Promise[_0x4926('0xb3')]();this['isReady']=!0x1,this[_0x4926('0x1b')]=null,this[_0x4926('0xf')]=null,this['diff']=new _0x16038d(_0x20194b,_0x4deffe);const _0x26b01e=this['_getRevisionsRange'](_0x26e091,_0x220dcf,!0x0)[_0x4926('0x25')](_0x3ea984=>this['loadRevisionData'](_0x3ea984));return _0x26b01e[_0x4926('0x6e')](new Promise(_0x2d1c89=>{setTimeout(_0x2d1c89,0x14);})),Promise[_0x4926('0x7')](_0x26b01e)['then'](()=>{if(!this[_0x4926('0xd7')])return;this['_cleanUp']();const _0x2d255d=this[_0x4926('0xc8')](_0x20194b,_0x4deffe);for(const _0x3b57bf of _0x2d255d['changes'])this[_0x4926('0xdd')][_0x4926('0x9')](_0x3b57bf['id'],_0x3b57bf);this['editor']['model'][_0x4926('0x56')]({'isUndoable':!0x1},_0x2ab91c=>{for(const _0x4197a8 of this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x14')][_0x4926('0xae')]())_0x2ab91c[_0x4926('0x6')](_0x4197a8);for(const _0x40e6bb of Object['keys'](_0x2d255d['model'])){const _0x4996a=_0x2ab91c[_0x4926('0x5a')](_0x40e6bb);for(const _0x14d110 of Object[_0x4926('0x3')](_0x2d255d['attributes'][_0x40e6bb]))_0x2ab91c['setAttribute'](_0x14d110,_0x2d255d['attributes'][_0x40e6bb][_0x14d110],_0x4996a);_0x2ab91c['insert'](_0x2d255d['model'][_0x40e6bb],_0x4996a,0x0);}}),this[_0x4926('0x99')][_0x4926('0x30')](this[_0x4926('0x72')](_0x2d255d[_0x4926('0x4a')])),this[_0x4926('0x110')]=!0x0;})['catch'](_0xee19db=>{console[_0x4926('0x105')](_0xee19db),this[_0x4926('0x16')](),_0x164837&&(this[_0x4926('0x99')]=_0x164837),this[_0x4926('0x110')]=!0x0;});}[_0x4926('0x2e')](_0x590e76,_0x14308f){const _0x340040=this[_0x4926('0x125')]['createRevision'](_0x590e76);return _0x340040['on'](_0x4926('0x115'),(_0x22edfd,_0x1e4975,_0x251c3c)=>_0x14308f(_0x1e4975,_0x251c3c,_0x340040)),this[_0x4926('0x125')][_0x4926('0x35')](_0x340040),_0x340040;}['loadRevisionData'](_0x13e7f0){if(!_0x13e7f0||_0x13e7f0['diffData'])return Promise[_0x4926('0xb3')]();{const _0x2acf29=this[_0x4926('0x98')][_0x4926('0x111')][_0x4926('0xb1')]('collaboration.channelId');return this['adapter'][_0x4926('0x49')]({'channelId':_0x2acf29,'revisionId':_0x13e7f0['id']})[_0x4926('0x46')](_0x555149=>{_0x13e7f0[_0x4926('0x115')]({'diffData':_0x555149[_0x4926('0xde')]},!0x0);});}}[_0x4926('0x16')](){this[_0x4926('0xf')]=null,this[_0x4926('0xa8')](),this[_0x4926('0x114')]&&this[_0x4926('0x114')][_0x4926('0xcf')](),this['_changeView']=null,this[_0x4926('0xdd')][_0x4926('0x59')](),this[_0x4926('0x98')][_0x4926('0x55')]['enqueueChange']({'isUndoable':!0x1},_0x33b821=>{for(const _0x2103d2 of this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x14')]['getRootNames']())_0x33b821['detachRoot'](_0x2103d2);});}[_0x4926('0x72')](_0x51b446){const _0x175a4d=[],_0x38ba52=new Map();for(const _0x58b3ca of this['editor'][_0x4926('0x55')][_0x4926('0x14')]['getRootNames']()){const _0x3b16ce=this[_0x4926('0x98')][_0x4926('0x6f')]['view']['getDomRoot'](_0x58b3ca);if(!_0x3b16ce)continue;const _0x1ac77b=_0x3b16ce[_0x4926('0x67')]()[_0x4926('0xb0')](0x0);_0x1ac77b&&(_0x175a4d[_0x4926('0x6e')](_0x58b3ca),_0x38ba52[_0x4926('0x9')](_0x58b3ca,_0x1ac77b));}return _0x175a4d['sort']((_0x85668d,_0x1a3073)=>{const _0x3b7f39=_0x38ba52[_0x4926('0xb1')](_0x85668d),_0x5ee0a9=_0x38ba52[_0x4926('0xb1')](_0x1a3073);return _0x3b7f39['y']-_0x5ee0a9['y']||_0x3b7f39['x']-_0x5ee0a9['x'];}),(_0x51b446=_0x51b446[_0x4926('0x69')](_0x498513=>_0x175a4d[_0x4926('0x28')](_0x498513[_0x4926('0xfd')])))['sort']((_0x5c0531,_0xda4711)=>_0x175a4d[_0x4926('0x23')](_0x5c0531[_0x4926('0xfd')])-_0x175a4d[_0x4926('0x23')](_0xda4711['rootName'])),_0x51b446;}['_makeTape'](_0x540b86){const _0x3fee50=Array[_0x4926('0xa4')](_0x540b86['markers'])['filter'](([_0x4be7f0,_0x38f5fd])=>_0x4be7f0[_0x4926('0xd0')]('revision:')&&!_0x38f5fd[_0x4926('0x104')]),_0x57caa9=Array[_0x4926('0xa4')](this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x88')](_0x540b86)[_0x4926('0x63')]({'singleCharacters':!0x0}));if(0x0!=_0x3fee50[_0x4926('0x81')])for(const _0x4e4a0c of _0x57caa9){const [_0x1714bc,_0x504b17]=_0x3fee50[0x0],[,_0x5acff3,_0x274915]=_0x1714bc[_0x4926('0x116')](':');if(_0x504b17[_0x4926('0xb8')]['isEqual'](_0x4e4a0c['nextPosition'])&&_0x3fee50[_0x4926('0x91')](),(_0x4e4a0c[_0x4926('0xaf')][_0x4926('0xf6')](_0x504b17[_0x4926('0x10b')])||_0x4e4a0c['previousPosition'][_0x4926('0x41')](_0x504b17[_0x4926('0x10b')]))&&(_0x4926('0x64')==_0x5acff3?_0x4e4a0c['isAdded']={'userId':_0x274915}:_0x4926('0xe6')==_0x5acff3&&(_0x4e4a0c[_0x4926('0xa1')]={'userId':_0x274915})),0x0==_0x3fee50[_0x4926('0x81')])break;}return _0x57caa9;}[_0x4926('0x11a')](_0x4976ef){const _0x581a83=new Map();for(let _0x24d324=0x0;_0x24d324<_0x4976ef[_0x4926('0x81')];_0x24d324++)_0x4926('0xbb')===_0x4976ef[_0x24d324][_0x4926('0x62')]?(_0x4976ef[_0x24d324][_0x4926('0xb0')][_0x4926('0xed')]=_0x24d324,_0x4976ef[_0x24d324][_0x4926('0xb0')]['endIndex']=_0x24d324):(_0x4926('0xc7')===_0x4976ef[_0x24d324][_0x4926('0x62')]?_0x4976ef[_0x24d324][_0x4926('0xb0')][_0x4926('0xed')]=_0x24d324:_0x4926('0xf2')===_0x4976ef[_0x24d324][_0x4926('0x62')]&&(_0x4976ef[_0x24d324][_0x4926('0xb0')][_0x4926('0x11e')]=_0x24d324),_0x581a83[_0x4926('0x9')](_0x4976ef[_0x24d324]['id'],_0x24d324));for(const _0x65e235 of _0x581a83['values']())_0x4926('0xc7')===_0x4976ef[_0x65e235][_0x4926('0x62')]?_0x4976ef[_0x65e235]['item'][_0x4926('0x11e')]=_0x581a83[_0x4926('0xb1')](_0x4976ef[_0x65e235]['pairId']):_0x4926('0xf2')===_0x4976ef[_0x65e235]['type']&&(_0x4976ef[_0x65e235][_0x4926('0xb0')][_0x4926('0xed')]=_0x581a83[_0x4926('0xb1')](_0x4976ef[_0x65e235][_0x4926('0x70')]));}[_0x4926('0x6a')](_0x336536){for(let _0xfed859=0x0;_0xfed859<_0x336536['length'];_0xfed859++){if(_0x4926('0xc7')===_0x336536[_0xfed859][_0x4926('0x62')])_0x336536[_0xfed859][_0x4926('0xb0')][_0x4926('0xed')]=_0xfed859;else{if('elementEnd'===_0x336536[_0xfed859][_0x4926('0x62')]){_0x336536[_0xfed859][_0x4926('0xb0')][_0x4926('0x11e')]=_0xfed859;const _0x272273=_0x336536[_0xfed859][_0x4926('0xb0')][_0x4926('0xed')];_0x336536[_0x272273][_0x4926('0x70')]=_0x336536[_0xfed859]['id'],_0x336536[_0xfed859][_0x4926('0x70')]=_0x336536[_0x272273]['id'];}else _0x336536[_0xfed859][_0x4926('0xb0')]['startIndex']=_0xfed859,_0x336536[_0xfed859][_0x4926('0xb0')][_0x4926('0x11e')]=_0xfed859,_0x336536[_0xfed859]['pairId']=null;}_0x336536[_0xfed859][_0x4926('0x10e')]||(_0x336536[_0xfed859][_0x4926('0x10e')]=[],_0x336536[_0xfed859]['markersEnd']=[]);}}[_0x4926('0x24')](_0x47abe4,_0x58c6a7){const _0x28d90a=_0x47abe4['filter'](_0xac10f2=>!_0xac10f2['isAdded']);for(let _0x1f0707=0x0;_0x1f0707<_0x58c6a7[_0x4926('0x81')];_0x1f0707++)_0x58c6a7[_0x1f0707][_0x4926('0xc9')]&&(_0x28d90a[_0x1f0707][_0x4926('0xc9')]=_0x58c6a7[_0x1f0707][_0x4926('0xc9')]);}[_0x4926('0x5d')](_0x34ec43){const _0x446729=JSON[_0x4926('0x20')](_0x34ec43),_0x2d62ab=this[_0x4926('0x98')]['editing'][_0x4926('0xcb')][_0x4926('0x14')],_0x3987da=new _0x34df08(_0x2d62ab,_0x446729[_0x4926('0x25')](_0x29ce1f=>this['_getViewObj'](_0x29ce1f)));return this[_0x4926('0x98')][_0x4926('0x2b')][_0x4926('0x37')](_0x3987da);}[_0x4926('0xa5')](_0x11ea6e){const _0x58cd3d=this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')][_0x4926('0x14')];if('string'==typeof _0x11ea6e)return new _0x48cd35(_0x58cd3d,_0x11ea6e);{const _0x5208b7=_0x11ea6e['children'][_0x4926('0x25')](_0x2504f6=>this[_0x4926('0xa5')](_0x2504f6));return new(tt[_0x11ea6e['type']]||_0x1cda3d)(_0x58cd3d,_0x11ea6e['name'],_0x11ea6e['attributes'],_0x5208b7);}}['_getDiff'](_0x444a58,_0x4462cf=null){const _0x4d92f8=this[_0x4926('0x125')][_0x4926('0x49')](_0x444a58),_0x56029b=_0x4462cf?this['repository'][_0x4926('0x49')](_0x4462cf):null,_0x5561df=this[_0x4926('0x108')](_0x4d92f8,_0x56029b),_0x18f274=_0x5561df[_0x5561df[_0x4926('0x81')]-0x1],_0x5d4faf=new Map(),_0x1ca44d={'model':{},'attributes':{},'changes':[]},_0x5c994e=new Set(),_0x26bd42=new Map();for(let _0x39e78e=_0x5561df[_0x4926('0x81')]-0x1;_0x39e78e>=0x0;_0x39e78e--){const _0x356050=_0x5561df[_0x39e78e];for(const _0x104020 of Object['keys'](_0x356050[_0x4926('0xde')]))if(_0x356050[_0x4926('0xde')][_0x104020][_0x4926('0xad')]){const _0x233a58=_0x356050[_0x4926('0xde')][_0x104020][_0x4926('0xad')];_0x233a58[_0x4926('0xd2')]?(_0x5c994e[_0x4926('0x103')](_0x104020),_0x26bd42['has'](_0x104020)&&_0x26bd42['get'](_0x104020)[_0x4926('0xe2')]==_0x233a58['userId']?_0x26bd42['delete'](_0x104020):_0x26bd42[_0x4926('0x9')](_0x104020,_0x233a58)):_0x26bd42[_0x4926('0xdc')](_0x104020)?(_0x5c994e['delete'](_0x104020),_0x26bd42[_0x4926('0x9f')](_0x104020)):(_0x5c994e[_0x4926('0x103')](_0x104020),_0x26bd42[_0x4926('0x9')](_0x104020,_0x233a58));}else _0x5c994e[_0x4926('0x103')](_0x104020);}for(const _0x504e70 of _0x5c994e){const _0x440704=_0x26bd42['has'](_0x504e70)&&!_0x26bd42['get'](_0x504e70)[_0x4926('0xd2')];let _0x3af974=_0x440704?_0x5561df[_0x4926('0x81')]-0x1:0x0;const _0x4b43c4=_0x440704?-0x1:0x1;for(;_0x5561df[_0x3af974];){const _0x44ddc2=_0x5561df[_0x3af974];if(_0x44ddc2[_0x4926('0xde')][_0x504e70]){const _0x30d8d4=_0x440704?_0x44ddc2[_0x4926('0xde')][_0x504e70][_0x4926('0x11c')]:_0x44ddc2[_0x4926('0xde')][_0x504e70][_0x4926('0x78')];_0x1ca44d[_0x4926('0xb5')][_0x504e70]=_0x30d8d4?_0x503564(_0x30d8d4):{};break;}_0x3af974+=_0x4b43c4;}}for(const _0x5d2697 of _0x5561df){_0x5d2697[_0x4926('0x55')]={};for(const _0x46e0a4 of _0x5d2697[_0x4926('0x51')])_0x5d4faf['set'](_0x46e0a4['id'],_0x46e0a4);for(const _0x3bc345 of _0x5c994e){const _0xff9a7e=_0x5d2697['diffData'][_0x3bc345]?_0x5d2697['diffData'][_0x3bc345][_0x4926('0x26')]:'[]',_0xb90cb2=_0x5d2697[_0x4926('0xde')][_0x3bc345]?_0x5d2697[_0x4926('0xde')][_0x3bc345]['deletions']:'[]';_0x5d2697['model'][_0x3bc345]={'insertions':this[_0x4926('0x5d')](_0xff9a7e),'deletions':this[_0x4926('0x5d')](_0xb90cb2)};}}for(const _0x33a4f6 of _0x5c994e){let _0x49d148=null,_0x41c61c=0x0;const _0x299b6e=new Map(Array[_0x4926('0xa4')](_0x4d92f8[_0x4926('0x55')][_0x33a4f6]['insertions'][_0x4926('0xc4')])[_0x4926('0x69')](([_0x2028fd])=>!_0x2028fd[_0x4926('0xd0')](_0x4926('0xb9'))));let _0xce2fea=0x0;for(const _0x45e860 of _0x5561df){const _0x3674e1=this[_0x4926('0x32')](_0x45e860[_0x4926('0x55')][_0x33a4f6][_0x4926('0x26')]);_0x45e860==_0x4d92f8?(_0x49d148=_0x3674e1,_0x41c61c=_0x49d148[_0x4926('0x81')],_0x49d148[_0x4926('0xac')](_0x52e963=>{_0x52e963['id']=_0xce2fea++;}),this['_processTape'](_0x49d148)):this[_0x4926('0x24')](_0x49d148,_0x3674e1);const _0x499236=_0x49d148[_0x4926('0x69')](_0x407eab=>!_0x407eab[_0x4926('0xc9')])[_0x4926('0x25')](_0x2e41a8=>_0x2e41a8['id']);let _0x3e0e51=0x0;const _0x12e430=this[_0x4926('0x32')](_0x45e860[_0x4926('0x55')][_0x33a4f6]['deletions']);_0x12e430[_0x4926('0xac')](_0x297399=>{_0x297399[_0x4926('0xa1')]?_0x297399['id']=_0x41c61c++:_0x297399['id']=_0x499236[_0x3e0e51++];}),this[_0x4926('0x6a')](_0x12e430),this[_0x4926('0x77')](_0x49d148,_0x4926('0xc9')),this[_0x4926('0x77')](_0x12e430,'isRemoved'),_0x45e860==_0x4d92f8&&this[_0x4926('0x1e')](_0x49d148,_0x299b6e),_0x49d148=this[_0x4926('0xd6')](_0x49d148,_0x12e430),this['_refreshStartEndIndex'](_0x49d148),this[_0x4926('0x77')](_0x49d148,_0x4926('0xa1'));}_0x49d148=_0x49d148['filter'](_0x46749c=>!(_0x46749c[_0x4926('0xc9')]&&_0x46749c[_0x4926('0xa1')]));const _0x4725ee=new Map(_0x18f274['model'][_0x33a4f6][_0x4926('0xfc')][_0x4926('0xc4')]),_0x53e240=new Set(_0x299b6e[_0x4926('0x3')]());for(const _0x3291c1 of _0x4725ee['keys']())_0x53e240[_0x4926('0x9f')](_0x3291c1);this['_markSuggestions'](_0x49d148,_0x53e240),this[_0x4926('0xdf')](_0x49d148),_0x49d148=this[_0x4926('0x10')](_0x49d148),_0x49d148=this['_markMismatchedRemovedTags'](_0x49d148),_0x49d148=this['_removeUnsupportedChanges'](_0x49d148);const {root:_0x5bd5f2,changes:_0x46ab46}=this[_0x4926('0x7b')](_0x49d148,_0x5d4faf,_0x33a4f6);_0x1ca44d[_0x4926('0x55')][_0x33a4f6]=_0x5bd5f2;const _0x5260f6=_0x26bd42[_0x4926('0xb1')](_0x33a4f6);if(_0x5260f6){const _0x498ea2=_0x5d4faf['get'](_0x5260f6[_0x4926('0xe2')]),_0x4a76cf=new _0x26e56f({'author':_0x498ea2,'type':_0x5260f6[_0x4926('0xd2')]?_0x4926('0x103'):_0x4926('0x8b'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x33a4f6});_0x46ab46[_0x4926('0xfa')](_0x4a76cf),_0x1ca44d[_0x4926('0xb5')][_0x33a4f6][_0x4926('0xd1')]=_0x4a76cf['id'];}_0x1ca44d[_0x4926('0x4a')]=_0x1ca44d['changes'][_0x4926('0xe5')](_0x46ab46);}return _0x1ca44d;}[_0x4926('0x1e')](_0x10fcf6,_0x104ab8){for(let _0x5e4f4b=0x0;_0x5e4f4b<_0x10fcf6[_0x4926('0x81')];_0x5e4f4b++)for(const [_0x402fad,_0xc27287]of _0x104ab8)_0xc27287[_0x4926('0x10b')][_0x4926('0xf6')](_0x10fcf6[_0x5e4f4b][_0x4926('0xaf')])&&_0x10fcf6[_0x5e4f4b][_0x4926('0x10e')][_0x4926('0x6e')](_0x402fad),_0xc27287['end'][_0x4926('0xf6')](_0x10fcf6[_0x5e4f4b][_0x4926('0x8e')])&&_0x10fcf6[_0x5e4f4b]['markersEnd']['push'](_0x402fad);}['_joinTapes'](_0x440747,_0x4be0aa){let _0x14e002=[],_0x2a67e8=0x0,_0x4e535=0x0;for(;_0x2a67e8<_0x440747[_0x4926('0x81')]||_0x4e535<_0x4be0aa[_0x4926('0x81')];){const _0x41e9ff=_0x440747[_0x2a67e8]||{},_0x11111b=_0x4be0aa[_0x4e535]||{};if(_0x41e9ff['id']==_0x11111b['id'])_0x2a67e8++,_0x4e535++,_0x14e002['push'](_0x41e9ff);else{if(_0x11111b['isRemoved']&&_0x41e9ff[_0x4926('0xc9')]){const {commonTape:_0x3b369f,iEnd:_0x12abcc,jEnd:_0x4c5a34}=this[_0x4926('0x3a')](_0x440747,_0x2a67e8,_0x4be0aa,_0x4e535);_0x14e002=_0x14e002[_0x4926('0xe5')](_0x3b369f),_0x2a67e8=_0x12abcc,_0x4e535=_0x4c5a34;}else _0x11111b['isRemoved']?(_0x4e535++,_0x14e002[_0x4926('0x6e')](_0x11111b)):(_0x2a67e8++,_0x14e002[_0x4926('0x6e')](_0x41e9ff));}}return _0x14e002;}[_0x4926('0xe7')](_0x29c510,_0x29a153){const _0x9f359f=[];for(let _0x554263=0x0;_0x554263<_0x29c510[_0x4926('0x81')];_0x554263++){for(let _0x432f68=0x0;_0x432f68<_0x29c510[_0x554263][_0x4926('0x10e')][_0x4926('0x81')];_0x432f68++){const _0x8ecacd=_0x29c510[_0x554263]['markersStart'][_0x432f68];if(!_0x29a153['has'](_0x8ecacd))continue;const {group:_0x40f6c2,type:_0x141efd,authorId:_0x8276cb}=_0x412ccf(_0x8ecacd);_0x4926('0x8')!=_0x40f6c2||_0x4926('0x64')!=_0x141efd&&'deletion'!=_0x141efd||(_0x9f359f[_0x4926('0xfa')]({'type':_0x141efd,'name':_0x8ecacd,'userId':_0x8276cb}),_0x29c510[_0x554263]['markersStart'][_0x4926('0x15')](_0x432f68,0x1),_0x432f68--);}_0x408baf(_0x29c510[_0x554263]);for(let _0x21544e=0x0;_0x21544e<_0x29c510[_0x554263][_0x4926('0xea')]['length'];_0x21544e++){const _0x45c4ea=_0x29c510[_0x554263][_0x4926('0xea')][_0x21544e];if(!_0x29a153[_0x4926('0xdc')](_0x45c4ea))continue;const {group:_0x1bf889,type:_0x437f33}=_0x412ccf(_0x45c4ea);if(_0x4926('0x8')!=_0x1bf889||_0x4926('0x64')!=_0x437f33&&_0x4926('0xe6')!=_0x437f33)continue;_0x29c510[_0x554263][_0x4926('0xea')][_0x4926('0x15')](_0x21544e,0x1),_0x21544e--;const _0x2b446d=_0x9f359f['findIndex'](_0x5de0eb=>_0x5de0eb[_0x4926('0xc0')]==_0x45c4ea);_0x2b446d>-0x1&&_0x9f359f['splice'](_0x2b446d,0x1);}}function _0x412ccf(_0x302b64){const _0x3aa1ac=_0x302b64[_0x4926('0x116')](':');return{'group':_0x3aa1ac[0x0],'type':_0x3aa1ac[0x1],'subType':_0x3aa1ac['length']>=0x5?_0x3aa1ac[0x2]:null,'id':_0x3aa1ac[_0x4926('0x81')]<0x5?_0x3aa1ac[0x2]:_0x3aa1ac[0x3],'authorId':_0x3aa1ac[_0x4926('0x81')]<0x5?_0x3aa1ac[0x3]:_0x3aa1ac[0x4],'markerCount':0x6==_0x3aa1ac[_0x4926('0x81')]?_0x3aa1ac[0x5]:null};}function _0x408baf(_0x19af2b){for(let _0x33eccc=0x0;_0x33eccc<_0x9f359f[_0x4926('0x81')];_0x33eccc++){if(_0x19af2b['isAdded']&&_0x4926('0x64')==_0x9f359f[_0x33eccc][_0x4926('0x62')])return _0x19af2b[_0x4926('0x8f')]=_0x9f359f[_0x33eccc],void delete _0x19af2b[_0x4926('0xc9')];if(!_0x19af2b[_0x4926('0xc9')]&&!_0x19af2b[_0x4926('0xa1')]&&'deletion'==_0x9f359f[_0x33eccc][_0x4926('0x62')])return void(_0x19af2b[_0x4926('0x71')]=_0x9f359f[_0x33eccc]);}}}[_0x4926('0x77')](_0x3f9d59,_0x1f8580){let _0x358bc2=0x0,_0x39260f=!0x1;const _0x475386=new Map();for(const _0x1e2207 of _0x3f9d59)_0x1e2207[_0x1f8580]?_0x39260f&&(_0x358bc2++,_0x39260f=!0x1):(_0x358bc2++,_0x39260f=!0x0),_0x475386[_0x4926('0x9')](_0x1e2207['id'],_0x358bc2);for(let _0x5abd5a=0x0;_0x5abd5a<_0x3f9d59[_0x4926('0x81')];_0x5abd5a++){if(_0x4926('0xa1')==_0x1f8580&&_0x3f9d59[_0x5abd5a][_0x4926('0xc9')]||_0x4926('0xc9')==_0x1f8580&&_0x3f9d59[_0x5abd5a][_0x4926('0xa1')])continue;if('text'==_0x3f9d59[_0x5abd5a]['type']){_0x3f9d59[_0x5abd5a]['distance']=0x0;continue;}const _0x4f6d18=_0x475386[_0x4926('0xb1')](_0x3f9d59[_0x5abd5a][_0x4926('0x70')]),_0x394bca=_0x475386[_0x4926('0xb1')](_0x3f9d59[_0x5abd5a]['id']);_0x3f9d59[_0x5abd5a][_0x4926('0xb7')]=_0x4f6d18-_0x394bca;}}[_0x4926('0x108')](_0x89396b,_0x43c5f8,_0x1e444a=!0x1){const _0x8b6205=[];let _0x4f43ea=this[_0x4926('0x125')][_0x4926('0xa7')](_0x89396b),_0x4fc3bb=this[_0x4926('0x125')][_0x4926('0xa7')](_0x43c5f8);for(-0x1==_0x4fc3bb&&(_0x4fc3bb=this[_0x4926('0x125')][_0x4926('0x73')][_0x4926('0x81')],_0x1e444a=!0x1);_0x4f43ea<_0x4fc3bb;)_0x8b6205[_0x4926('0x6e')](this['repository'][_0x4926('0x49')](_0x4f43ea)),_0x4f43ea++;return _0x1e444a&&_0x8b6205[_0x4926('0x6e')](this[_0x4926('0x125')]['getRevision'](_0x4f43ea)),_0x8b6205;}[_0x4926('0x3a')](_0x2b6808,_0xf2e40e,_0x14020d,_0x505a70){const _0x50d55b=this['editor'][_0x4926('0x55')][_0x4926('0xa0')];let _0xc7cac6=_0xf2e40e;for(;_0x2b6808[_0xc7cac6]&&_0x2b6808[_0xc7cac6][_0x4926('0xc9')];)_0xc7cac6++;let _0x3bead0=_0x505a70;for(;_0x14020d[_0x3bead0]&&_0x14020d[_0x3bead0]['isRemoved'];)_0x3bead0++;_0x150990(_0x2b6808,_0xf2e40e,_0xc7cac6),_0x150990(_0x14020d,_0x505a70,_0x3bead0);const _0x1a0c74=_0x14020d[_0x4926('0x117')](_0x505a70,_0x3bead0)['concat'](_0x2b6808[_0x4926('0x117')](_0xf2e40e,_0xc7cac6));return _0x1a0c74[_0x4926('0xfb')]((_0x4a83fa,_0x36e1bb)=>_0x4a83fa[_0x4926('0xcd')]!=_0x36e1bb['side']?_0x4a83fa['side']-_0x36e1bb[_0x4926('0xcd')]:_0x4a83fa[_0x4926('0xa9')]!=_0x36e1bb[_0x4926('0xa9')]?_0x4a83fa[_0x4926('0xa9')]-_0x36e1bb['level']:_0x4a83fa[_0x4926('0xb7')]!=_0x36e1bb[_0x4926('0xb7')]?_0x36e1bb[_0x4926('0xb7')]-_0x4a83fa['distance']:!!_0x4a83fa['isAdded']!=!!_0x36e1bb[_0x4926('0xc9')]?-0x1==_0x4a83fa[_0x4926('0xcd')]||0x0==_0x4a83fa['side']?_0x4a83fa[_0x4926('0xc9')]?-0x1:0x1:_0x4a83fa[_0x4926('0xc9')]?0x1:-0x1:_0x4a83fa['index']-_0x36e1bb['index']),{'commonTape':_0x1a0c74,'iEnd':_0xc7cac6,'jEnd':_0x3bead0};function _0x150990(_0x24db8c,_0x1216e1,_0x44e1da){let _0x37fc5a=-0x1,_0x26d7de=Number['POSITIVE_INFINITY'],_0x2071fe=!0x0;for(let _0x330ca7=_0x1216e1;_0x330ca7<_0x44e1da;_0x330ca7++)if(_0x50d55b[_0x4926('0xba')](_0x24db8c[_0x330ca7][_0x4926('0xb0')])||(_0x2071fe=!0x1),_0x24db8c[_0x330ca7][_0x4926('0xb0')][_0x4926('0xed')]<_0x1216e1&&(_0x37fc5a=_0x330ca7),_0x24db8c[_0x330ca7][_0x4926('0xb0')][_0x4926('0x11e')]>=_0x44e1da){_0x26d7de=_0x330ca7;break;}_0x2071fe&&(_0x37fc5a=_0x44e1da-0x1);for(let _0x33a25e=_0x1216e1;_0x33a25e<_0x44e1da;_0x33a25e++)_0x24db8c[_0x33a25e]['side']=_0x33a25e<=_0x37fc5a?-0x1:_0x33a25e<_0x26d7de?0x0:0x1,_0x24db8c[_0x33a25e][_0x4926('0x4e')]=_0x33a25e;let _0x15206d=0x0;for(let _0x47b352=_0x1216e1;_0x47b352<=_0x37fc5a;_0x47b352++)0x0==_0x24db8c[_0x47b352][_0x4926('0xb7')]?_0x24db8c[_0x47b352][_0x4926('0xa9')]=_0x15206d:(_0x15206d++,_0x24db8c[_0x47b352]['level']=_0x15206d,_0x15206d++);for(let _0x4bd6f1=_0x1216e1;_0x4bd6f1<_0x44e1da;_0x4bd6f1++)0x0==_0x24db8c[_0x4bd6f1][_0x4926('0xcd')]&&(_0x24db8c[_0x4bd6f1]['level']=_0x15206d);_0x15206d=0x0;for(let _0x865b4=_0x44e1da-0x1;_0x865b4>=_0x26d7de;_0x865b4--)0x0==_0x24db8c[_0x865b4][_0x4926('0xb7')]?_0x24db8c[_0x865b4]['level']=_0x15206d:(_0x15206d--,_0x24db8c[_0x865b4]['level']=_0x15206d,_0x15206d--);}}[_0x4926('0xdf')](_0x683aaf){const _0x42b90e=new Map(),_0x52ecf7=this[_0x4926('0x98')]['model'][_0x4926('0xa0')];for(let _0x1b1759=0x1;_0x1b1759<_0x683aaf[_0x4926('0x81')];_0x1b1759++){let _0x5c33ae,_0x51aeef,_0x3ef412;const _0x2df20f=_0x683aaf[_0x1b1759],_0x2e082f=_0x683aaf[_0x1b1759-0x1];if(_0x4926('0xbb')==_0x2df20f['type'])continue;if(_0x2df20f['type']!=_0x2e082f[_0x4926('0x62')])continue;if(!_0x52ecf7[_0x4926('0x11d')](_0x2e082f[_0x4926('0xb0')])||_0x52ecf7[_0x4926('0x124')](_0x2e082f[_0x4926('0xb0')]))continue;if(!_0x52ecf7['isBlock'](_0x2df20f[_0x4926('0xb0')])||_0x52ecf7[_0x4926('0x124')](_0x2df20f[_0x4926('0xb0')]))continue;if((_0x683aaf[_0x1b1759]['isAdded']||_0x683aaf[_0x1b1759]['isAddSuggestion'])&&_0x683aaf[_0x1b1759-0x1][_0x4926('0xa1')])_0x5c33ae=_0x683aaf[_0x1b1759],_0x51aeef=_0x683aaf[_0x1b1759-0x1],_0x3ef412=_0x1b1759-0x1;else{if(!_0x683aaf[_0x1b1759][_0x4926('0xa1')]||!_0x683aaf[_0x1b1759-0x1]['isAdded']&&!_0x683aaf[_0x1b1759-0x1][_0x4926('0x8f')])continue;_0x5c33ae=_0x683aaf[_0x1b1759-0x1],_0x51aeef=_0x683aaf[_0x1b1759],_0x3ef412=_0x1b1759;}const _0x1319c5=_0x5c33ae[_0x4926('0xa9')]==_0x51aeef['level'],_0x5b63a6=Math[_0x4926('0xe9')](_0x5c33ae[_0x4926('0xa9')])<Math['abs'](_0x51aeef['level'])&&0x0==_0x51aeef[_0x4926('0xb7')];(_0x1319c5||_0x5b63a6)&&(_0x42b90e['set'](_0x51aeef['id'],_0x5c33ae['id']),_0x683aaf['splice'](_0x3ef412,0x1),_0x1b1759--,_0x5c33ae['isAdded']=!0x1);}for(let _0x534520=0x0;_0x534520<_0x683aaf['length'];_0x534520++)_0x42b90e['has'](_0x683aaf[_0x534520]['pairId'])&&(_0x683aaf[_0x534520][_0x4926('0x70')]=_0x42b90e['get'](_0x683aaf[_0x534520]['pairId']));}[_0x4926('0x10')](_0x4554cf){const _0x576ade=new Set(_0x4554cf[_0x4926('0x25')](_0x429b06=>_0x429b06['id']));for(let _0x2bdc07=0x0;_0x2bdc07<_0x4554cf[_0x4926('0x81')];_0x2bdc07++)_0x576ade[_0x4926('0xdc')](_0x4554cf[_0x2bdc07][_0x4926('0x70')])||0x0==_0x4554cf[_0x2bdc07][_0x4926('0xb7')]||(_0x4554cf[_0x2bdc07][_0x4926('0xe8')]=!0x0);return _0x4554cf[_0x4926('0x69')](_0x37d78e=>!_0x37d78e[_0x4926('0xe8')]);}[_0x4926('0x7d')](_0xc28745){const _0x4e599c=new Set();for(let _0x4432fc=0x0;_0x4432fc<_0xc28745[_0x4926('0x81')];_0x4432fc++){if(_0x4e599c[_0x4926('0xdc')](_0xc28745[_0x4432fc]['id'])&&_0xc28745[_0x4432fc][_0x4926('0xa1')]&&(_0xc28745[_0x4432fc][_0x4926('0xe8')]=!0x0),_0xc28745[_0x4432fc][_0x4926('0xe8')])continue;if(0x0==_0xc28745[_0x4432fc][_0x4926('0xb7')])continue;if(_0x4926('0xc7')!=_0xc28745[_0x4432fc][_0x4926('0x62')])continue;if(null==_0xc28745[_0x4432fc][_0x4926('0x70')])continue;let _0x3d2abf=_0x4432fc+0x1,_0x326848=0x0;for(;_0xc28745[_0x3d2abf]['id']!=_0xc28745[_0x4432fc]['pairId'];)_0x4926('0xc7')==_0xc28745[_0x3d2abf][_0x4926('0x62')]?_0x326848++:_0x4926('0xf2')==_0xc28745[_0x3d2abf][_0x4926('0x62')]&&_0x326848--,_0x3d2abf++;if(0x0!=_0x326848){if(_0xc28745[_0x4432fc][_0x4926('0xa1')])_0xc28745[_0x4432fc][_0x4926('0xe8')]=!0x0;else for(;_0x3d2abf!=_0x4432fc;)_0xc28745[_0x3d2abf][_0x4926('0xa1')]&&0x0!=_0xc28745[_0x3d2abf][_0x4926('0xb7')]&&(_0xc28745[_0x3d2abf][_0x4926('0xe8')]=!0x0,_0x4e599c['add'](_0xc28745[_0x3d2abf][_0x4926('0x70')])),_0x3d2abf--;}}return _0xc28745[_0x4926('0x69')](_0x2c3e05=>!_0x2c3e05[_0x4926('0xe8')]);}[_0x4926('0xf1')](_0xf99e9e){const _0x3b1e25=this['editor']['model']['schema'];for(let _0x557b61=0x0;_0x557b61<_0xf99e9e[_0x4926('0x81')];_0x557b61++){if(!(_0xf99e9e[_0x557b61][_0x4926('0xc9')]||_0xf99e9e[_0x557b61][_0x4926('0x8f')]||_0xf99e9e[_0x557b61]['isRemoved']||_0xf99e9e[_0x557b61][_0x4926('0x71')]))continue;if(0x0==_0xf99e9e[_0x557b61][_0x4926('0xb7')])continue;const _0x350193=_0xf99e9e[_0x557b61]['item'];_0x3b1e25[_0x4926('0x11d')](_0x350193)||_0x3b1e25['isLimit'](_0x350193)||(_0xf99e9e[_0x557b61]['isAdded']&&delete _0xf99e9e[_0x557b61][_0x4926('0xc9')],_0xf99e9e[_0x557b61]['isAddSuggestion']&&delete _0xf99e9e[_0x557b61]['isAddSuggestion'],_0xf99e9e[_0x557b61][_0x4926('0x71')]&&delete _0xf99e9e[_0x557b61][_0x4926('0x71')],_0xf99e9e[_0x557b61][_0x4926('0xa1')]&&(_0xf99e9e[_0x557b61][_0x4926('0xe8')]=!0x0));}return _0xf99e9e[_0x4926('0x69')](_0x4c184f=>!_0x4c184f['isIncorrect']);}[_0x4926('0x7b')](_0x9cdae2,_0xb36c49,_0x52bcf8){const _0x4e1740=new _0x5a388a(),_0x4d86d3=[],_0x5b04d2=new Map(),_0x443cf6=this[_0x4926('0x98')][_0x4926('0x55')],_0x4f27c5=_0x443cf6['schema'],_0x5f14d5=[_0x4e1740],_0x4a0f0b={},_0x18a195={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3ab5c4=null;const _0x4de92e=[0x0];for(let _0x45dd09=0x0;_0x45dd09<_0x9cdae2['length'];_0x45dd09++){let _0x23abbf,_0x376fe5;if(_0x4926('0xc7')===_0x9cdae2[_0x45dd09][_0x4926('0x62')]){_0x23abbf=_0x443cf6[_0x4926('0x3b')](_0x4e1740,_0x4de92e);const _0x4bbf60=new _0x299acf(_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0xc0')],_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0x86')]());_0x5f14d5[0x0]['_appendChild'](_0x4bbf60),_0x4de92e[_0x4926('0x6e')](0x0),_0x5f14d5[_0x4926('0xfa')](_0x4bbf60),_0x376fe5=_0x443cf6['createPositionFromPath'](_0x4e1740,_0x4de92e),_0x3ab5c4=null;}else{if(_0x4926('0xf2')===_0x9cdae2[_0x45dd09][_0x4926('0x62')])_0x5f14d5[_0x4926('0x91')](),_0x23abbf=_0x443cf6[_0x4926('0x3b')](_0x4e1740,_0x4de92e),_0x4de92e[_0x4926('0xf3')](),_0x4de92e[_0x4de92e[_0x4926('0x81')]-0x1]++,_0x376fe5=_0x443cf6['createPositionFromPath'](_0x4e1740,_0x4de92e),_0x3ab5c4=null;else{if(_0x23abbf=_0x443cf6['createPositionFromPath'](_0x4e1740,_0x4de92e),_0x3ab5c4&&_0x1001bb(_0x3ab5c4,_0x9cdae2[_0x45dd09]['item']))_0x3ab5c4['_data']+=_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0x2b')];else{const _0x33046b=new _0x28af79(_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0x2b')],_0x9cdae2[_0x45dd09][_0x4926('0xb0')]['getAttributes']());_0x5f14d5[0x0][_0x4926('0xfe')](_0x33046b),_0x3ab5c4=_0x33046b;}_0x4de92e[_0x4de92e['length']-0x1]+=_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0x94')],_0x376fe5=_0x443cf6['createPositionFromPath'](_0x4e1740,_0x4de92e);}}for(const _0xa571a2 of _0x9cdae2[_0x45dd09][_0x4926('0x10e')])_0x5b04d2['set'](_0xa571a2,{'start':_0x23abbf,'end':null});_0x3f20be(_0x4926('0x71'),_0x45dd09,_0x23abbf,_0x376fe5),_0x3f20be(_0x4926('0x8f'),_0x45dd09,_0x23abbf,_0x376fe5),_0x3f20be(_0x4926('0xa1'),_0x45dd09,_0x23abbf,_0x376fe5),_0x3f20be(_0x4926('0xc9'),_0x45dd09,_0x23abbf,_0x376fe5);for(const _0x4bddda of _0x9cdae2[_0x45dd09][_0x4926('0xea')]){_0x5b04d2[_0x4926('0xb1')](_0x4bddda)[_0x4926('0xb8')]=_0x376fe5;}}for(const [_0x2c6c70,_0x4124a4]of _0x5b04d2){const _0x3d068d=this[_0x4926('0x98')]['model']['createRange'](_0x4124a4[_0x4926('0x10b')],_0x4124a4[_0x4926('0xb8')]);_0x4e1740[_0x4926('0xc4')][_0x4926('0x9')](_0x2c6c70,_0x3d068d);}return _0x4d86d3[_0x4926('0xfb')]((_0x14e2cd,_0x326231)=>{const _0x2ef039=_0x4e1740['markers']['get'](_0x4926('0xb9')+_0x14e2cd['id']),_0x1c4e98=_0x4e1740['markers'][_0x4926('0xb1')](_0x4926('0xb9')+_0x326231['id']);return _0x2ef039[_0x4926('0x10b')]['isBefore'](_0x1c4e98[_0x4926('0x10b')])?-0x1:_0x2ef039[_0x4926('0x10b')][_0x4926('0x41')](_0x1c4e98[_0x4926('0x10b')])?0x1:_0x2ef039[_0x4926('0xb8')][_0x4926('0x4f')](_0x1c4e98[_0x4926('0xb8')])?-0x1:_0x2ef039[_0x4926('0xb8')][_0x4926('0x41')](_0x1c4e98[_0x4926('0xb8')])?0x1:_0x4926('0x103')===_0x14e2cd[_0x4926('0x62')]?-0x1:0x1;}),{'root':_0x4e1740,'changes':_0x4d86d3};function _0x3f20be(_0x2d9654,_0x21d4fc,_0x116e63,_0x51a6ee){const _0x284cae=!!_0x9cdae2[_0x21d4fc][_0x2d9654],_0x44a016=_0x284cae?_0x9cdae2[_0x21d4fc][_0x2d9654][_0x4926('0xe2')]:null,_0x1ee525=_0x21d4fc===_0x9cdae2[_0x4926('0x81')]-0x1,_0x517967=_0x18a195[_0x2d9654][0x0],_0x544ea7=_0x4f27c5[_0x4926('0x4b')](_0x9cdae2[_0x21d4fc][_0x4926('0xb0')]);!_0x4a0f0b[_0x2d9654]&&_0x284cae?_0x4a0f0b[_0x2d9654]={'start':_0x116e63,'tapeItem':_0x9cdae2[_0x21d4fc],'userId':_0x44a016,'type':_0x2d9654}:_0x4a0f0b[_0x2d9654]&&!_0x284cae?(_0x4a0f0b[_0x2d9654][_0x4926('0xb8')]=_0x116e63,_0x2bfe0c(_0x4a0f0b[_0x2d9654]),_0x4a0f0b[_0x2d9654]=null):_0x4a0f0b[_0x2d9654]&&_0x284cae&&_0x4a0f0b[_0x2d9654][_0x4926('0xe2')]!==_0x44a016&&(_0x4a0f0b[_0x2d9654][_0x4926('0xb8')]=_0x116e63,_0x517967&&_0x517967[_0x4926('0xe2')]===_0x4a0f0b[_0x2d9654][_0x4926('0xe2')]||_0x2bfe0c(_0x4a0f0b[_0x2d9654]),_0x4a0f0b[_0x2d9654]={'start':_0x116e63,'tapeItem':_0x9cdae2[_0x21d4fc],'userId':_0x44a016,'type':_0x2d9654}),_0x4a0f0b[_0x2d9654]&&_0x544ea7&&(_0x4926('0xc7')!==_0x9cdae2[_0x21d4fc][_0x4926('0x62')]||_0x517967&&_0x517967[_0x4926('0xe2')]===_0x44a016||_0x18a195[_0x2d9654][_0x4926('0xfa')]({'userId':_0x44a016,'object':_0x9cdae2[_0x21d4fc][_0x4926('0xb0')],'change':_0x4a0f0b[_0x2d9654]}),_0x4926('0xf2')===_0x9cdae2[_0x21d4fc][_0x4926('0x62')]&&_0x517967&&_0x517967[_0x4926('0x75')]===_0x9cdae2[_0x21d4fc][_0x4926('0xb0')]&&(_0x18a195[_0x2d9654][_0x4926('0x91')](),_0x4a0f0b[_0x2d9654]=_0x517967[_0x4926('0xc')])),_0x4a0f0b[_0x2d9654]&&_0x1ee525&&(_0x4a0f0b[_0x2d9654][_0x4926('0xb8')]=_0x51a6ee,_0x2bfe0c(_0x4a0f0b[_0x2d9654]),_0x4a0f0b[_0x2d9654]=null);}function _0x2bfe0c({start:_0x216885,end:_0x52fbe5,tapeItem:_0x5e6ec9,userId:_0x5dd91b,type:_0xf175c0}){const _0x534ee0=_0x5e6ec9[_0x4926('0xb0')],_0xb822eb=_0x443cf6[_0x4926('0xa0')][_0x4926('0x11d')](_0x534ee0)&&!_0x443cf6[_0x4926('0xa0')]['isLimit'](_0x534ee0),_0x33993e=_0x216885[_0x4926('0x87')]==_0x52fbe5[_0x4926('0x58')]&&_0x52fbe5[_0x4926('0x11')];if(_0xb822eb&&_0x33993e)return;const _0x11140e=_0x443cf6[_0x4926('0xec')](_0x216885,_0x52fbe5),_0x30c7dc=_0xb36c49[_0x4926('0xb1')](_0x5dd91b),_0x4c4f93=new _0x26e56f({'author':_0x30c7dc,'type':_0x4926('0xc9')==_0xf175c0||'isAddSuggestion'==_0xf175c0?_0x4926('0x103'):'remove','data':{'isSuggestion':_0x4926('0x8f')==_0xf175c0||_0x4926('0x71')==_0xf175c0},'createdAt':new Date(),'rootName':_0x52bcf8});_0x4d86d3[_0x4926('0x6e')](_0x4c4f93),_0x4e1740['markers'][_0x4926('0x9')]('revision:'+_0x4c4f93['id'],_0x11140e);}function _0x1001bb(_0xf125ef,_0x42da8a){const _0x37d03c=_0xf125ef[_0x4926('0x86')](),_0xb56c90=_0x42da8a[_0x4926('0x86')]();for(const _0x584c5f of _0x37d03c){if(_0x584c5f[0x1]!==_0x42da8a[_0x4926('0x4c')](_0x584c5f[0x0]))return!0x1;_0xb56c90['next']();}return _0xb56c90[_0x4926('0xbe')]()[_0x4926('0xe1')];}}[_0x4926('0x123')](){this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')](_0x4926('0x113'))[_0x4926('0xca')]({'view':_0x4926('0xeb')}),this['editor'][_0x4926('0xf4')][_0x4926('0xce')](_0x4926('0x12'))[_0x4926('0xef')]({'model':_0x4926('0xeb'),'view':_0x5a00ff=>{const _0x4ec296=_0x5a00ff['markerName'][_0x4926('0x116')](':')[0x1],_0x232968=this[_0x4926('0x89')](_0x4ec296);if(!_0x232968)return null;const _0x45280e='add'==_0x232968[_0x4926('0x62')]?'insertion':_0x4926('0xe6'),_0x16027e=['ck-suggestion-marker',_0x4926('0x92')+_0x45280e];return _0x232968['data']['isSuggestion']&&_0x16027e[_0x4926('0x6e')](_0x4926('0x92')+_0x45280e+_0x4926('0x3d')),this['activeChange']==_0x232968&&_0x16027e[_0x4926('0x6e')](_0x4926('0x1')),{'classes':_0x16027e,'attributes':{'data-change-id':_0x4ec296}};}}),this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')]('upcast')[_0x4926('0x103')](_0x25be21=>{_0x25be21['on'](_0x4926('0x1d'),(_0x316655,_0x19c42a,_0x2b6270)=>{const _0x1ebc48=_0x19c42a['viewItem'][_0x4926('0x7c')](0x0);if(!_0x1ebc48||!_0x1ebc48['is'](_0x4926('0x82'),_0x4926('0x7a')))return;if(!_0x2b6270[_0x4926('0x60')][_0x4926('0xc5')](_0x1ebc48,{'attributes':[_0x4926('0xda'),_0x4926('0xaa')]}))return;const _0x4b974a=_0x19c42a[_0x4926('0x18')][_0x4926('0x10b')][_0x4926('0x87')];_0x2b6270['writer'][_0x4926('0x8c')]('vid_start',_0x1ebc48[_0x4926('0x4c')](_0x4926('0xda')),_0x4b974a),_0x2b6270['writer'][_0x4926('0x8c')](_0x4926('0xaa'),_0x1ebc48[_0x4926('0x4c')](_0x4926('0xaa')),_0x4b974a);},{'priority':_0x4926('0x68')});}),this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')]('upcast')[_0x4926('0x103')](_0xb8fac7=>{_0xb8fac7['on'](_0x4926('0x82'),(_0x355dca,_0x137adb,_0x47f544)=>{if(!_0x47f544['consumable'][_0x4926('0xc5')](_0x137adb[_0x4926('0x3f')],{'attributes':[_0x4926('0xda'),'vid_end']}))return;if(_0x137adb['modelRange'][_0x4926('0x104')])return;const _0x4c5842=_0x137adb[_0x4926('0x18')][_0x4926('0x10b')][_0x4926('0x87')];_0x4c5842['hasAttribute'](_0x4926('0xda'))||_0x4c5842[_0x4926('0x47')](_0x4926('0xb4'))||(_0x47f544[_0x4926('0x1c')][_0x4926('0x8c')]('vid_start',_0x137adb[_0x4926('0x3f')][_0x4926('0x4c')](_0x4926('0xda')),_0x4c5842),_0x47f544[_0x4926('0x1c')][_0x4926('0x8c')]('vid_end',_0x137adb[_0x4926('0x3f')][_0x4926('0x4c')](_0x4926('0xaa')),_0x4c5842));},{'priority':_0x4926('0x68')});}),this['editor'][_0x4926('0xf4')][_0x4926('0xce')](_0x4926('0x113'))[_0x4926('0x97')]({'view':{'name':_0x4926('0xf9'),'attributes':{'vid':!0x0}},'model':{'key':_0x4926('0xb4'),'value':_0x3e1828=>_0x3e1828[_0x4926('0x4c')]('vid')}}),this[_0x4926('0x98')]['model'][_0x4926('0xa0')]['on'](_0x4926('0x93'),(_0x59c5e9,[,_0x94cb1b])=>{[_0x4926('0xda'),'vid_end',_0x4926('0xb4')][_0x4926('0x28')](_0x94cb1b)&&(_0x59c5e9[_0x4926('0x90')]=!0x0,_0x59c5e9[_0x4926('0xd')]());},{'priority':'highest'}),this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')]('dataDowncast')[_0x4926('0x103')](_0x552892=>{_0x552892['on'](_0x4926('0x17'),(_0x5e2e4f,_0x2cc908,_0x2e2c7c)=>{if('\x20'!=_0x2cc908[_0x4926('0xb0')][_0x4926('0x2b')]||_0x2cc908[_0x4926('0xb0')][_0x4926('0x58')][_0x4926('0x50')]>0x1)return;if(!_0x2e2c7c[_0x4926('0x60')][_0x4926('0xc5')](_0x2cc908[_0x4926('0xb0')],_0x5e2e4f[_0x4926('0xc0')]))return;const _0x4ec0d8=_0x2e2c7c[_0x4926('0x1c')],_0x1bd41b=_0x2e2c7c[_0x4926('0x5e')]['toViewRange'](_0x2cc908[_0x4926('0xe0')]);_0x4ec0d8['wrap'](_0x1bd41b,_0x4ec0d8['createAttributeElement'](_0x4926('0xf9')));});}),this['editor'][_0x4926('0xf4')][_0x4926('0xce')]('dataDowncast')['markerToData']({'model':_0x4926('0xeb')}),this['editor']['editing'][_0x4926('0x109')]['on'](_0x4926('0x10c'),function(_0xe9fc06){const _0x1179db=_0xe9fc06[_0x4926('0x95')]['get'](_0x4926('0x65'));return(_0x1d4153,_0x43e39c,_0x5c49d4)=>{const _0x26590b=_0x43e39c[_0x4926('0xd5')][_0x4926('0x116')](':')[0x1],_0x34971b=_0x1179db[_0x4926('0x89')](_0x26590b);if(!_0x34971b)return null;const _0x4d87af=_0x4926('0x103')==_0x34971b[_0x4926('0x62')]?'split':'merge';if(!_0x5c49d4[_0x4926('0x60')][_0x4926('0x5c')](_0x43e39c[_0x4926('0xee')],_0x1d4153['name']))return;const _0x5e09ff=_0x43e39c[_0x4926('0xee')]['getWalker'](),_0x34aa10=_0x43e39c['markerRange'][_0x4926('0x10b')],_0x53f251=_0xe9fc06[_0x4926('0x55')]['schema'];let _0x129283=null,_0x924541=null,_0x5e6a60=!0x1,_0x3ade53=!0x1;for(const _0xf96722 of _0x5e09ff){const _0x413e9e=_0xf96722['item'];_0x5e6a60=_0x5e6a60||_0x53f251[_0x4926('0xf0')](_0x413e9e);const _0x2357a8=_0x5c49d4['mapper'][_0x4926('0x9c')](_0x413e9e);if(_0x2357a8&&_0x2357a8[_0x4926('0x2a')]('addHighlight'))return;'elementEnd'==_0xf96722[_0x4926('0x62')]&&(_0x53f251[_0x4926('0x11d')](_0x413e9e)&&!_0x53f251['isLimit'](_0x413e9e)&&(_0x413e9e['nextSibling']||_0x34aa10['isAtEnd']?_0x129283&&_0x129283[_0x4926('0x58')]==_0x413e9e||(_0x129283=_0x413e9e,_0x3e6fcd(_0xf96722[_0x4926('0xaf')]),_0x3ade53=!0x0):_0x924541=_0x924541||_0xf96722[_0x4926('0xaf')]));}function _0x3e6fcd(_0x1538fa){const _0x1b68ae=_0x5c49d4[_0x4926('0x1c')][_0x4926('0x57')]('span',{'class':_0x4926('0x92')+_0x4d87af}),_0x8552e=_0x5c49d4['mapper'][_0x4926('0x7f')](_0x1538fa);_0x34971b[_0x4926('0x2b')][_0x4926('0x121')]&&_0x5c49d4[_0x4926('0x1c')][_0x4926('0x9e')](_0x4926('0x92')+_0x4d87af+_0x4926('0x3d'),_0x1b68ae),_0x1179db[_0x4926('0xf')]==_0x34971b&&_0x5c49d4[_0x4926('0x1c')][_0x4926('0x9e')](_0x4926('0x1'),_0x1b68ae),_0x5c49d4[_0x4926('0x1c')][_0x4926('0x2')](_0x8552e,_0x1b68ae),_0x5c49d4[_0x4926('0x5e')][_0x4926('0x6d')](_0x1b68ae,_0x43e39c[_0x4926('0xd5')]);}_0x5e6a60||_0x3ade53||!_0x924541||_0x3e6fcd(_0x924541);};}(this[_0x4926('0x98')]),{'priority':_0x4926('0x38')}),this[_0x4926('0x98')][_0x4926('0x6f')]['downcastDispatcher']['on'](_0x4926('0x5'),(_0x32787b,_0x1ffc8f,_0x2849f2)=>{const _0x380586=_0x2849f2[_0x4926('0x5e')][_0x4926('0x6b')](_0x1ffc8f[_0x4926('0xd5')]);if(_0x380586)for(const _0xd4ca0b of _0x380586)(_0xd4ca0b[_0x4926('0x4d')](_0x4926('0x101'))||_0xd4ca0b[_0x4926('0x4d')]('ck-suggestion-marker-merge'))&&(_0x2849f2[_0x4926('0x5e')][_0x4926('0xa2')](_0xd4ca0b,_0x1ffc8f[_0x4926('0xd5')]),_0x2849f2['writer'][_0x4926('0x8b')](_0xd4ca0b));},{'priority':'high'}),this['editor'][_0x4926('0x6f')][_0x4926('0x109')]['on']('addMarker:revision',(_0x4879af,_0x5d7028,_0x1ea405)=>{const _0x45cb3e=_0x5d7028['markerName'][_0x4926('0x116')](':')[0x1],_0x59dacd=this[_0x4926('0x89')](_0x45cb3e);if(!_0x59dacd)return null;const _0x2b7c91=_0x4926('0x103')==_0x59dacd[_0x4926('0x62')]?_0x4926('0x116'):_0x4926('0xc1');if(_0x1ea405['consumable'][_0x4926('0x5c')](_0x5d7028[_0x4926('0xee')],_0x4879af['name']))for(const _0x329dbc of _0x5d7028[_0x4926('0xee')][_0x4926('0xbc')]()){if(!_0x329dbc['is']('element','softBreak'))continue;const _0x134205=_0x1ea405['writer'][_0x4926('0x57')]('span',{'class':_0x4926('0x92')+_0x2b7c91}),_0x1e9ce9=_0x1ea405[_0x4926('0x5e')][_0x4926('0x7f')](this[_0x4926('0x98')]['model']['createPositionBefore'](_0x329dbc));_0x59dacd[_0x4926('0x2b')][_0x4926('0x121')]&&_0x1ea405['writer']['addClass']('ck-suggestion-marker-'+_0x2b7c91+_0x4926('0x3d'),_0x134205),this[_0x4926('0xf')]==_0x59dacd&&_0x1ea405['writer']['addClass'](_0x4926('0x1'),_0x134205),_0x1ea405[_0x4926('0x1c')]['insert'](_0x1e9ce9,_0x134205),_0x1ea405[_0x4926('0x5e')]['bindElementToMarker'](_0x134205,_0x5d7028[_0x4926('0xd5')]);}},{'priority':_0x4926('0x38')}),this[_0x4926('0x98')]['model'][_0x4926('0x14')]['on'](_0x4926('0xc'),()=>{this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')]['change'](_0x3822c9=>{for(const _0x4fb837 of this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x14')]['getRootNames']()){const _0x2facfe=this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x14')]['getRoot'](_0x4fb837),_0x138d49=this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')][_0x4926('0x14')]['getRoot'](_0x4fb837);if(_0x138d49){const _0x3f6475=_0x2facfe[_0x4926('0x4c')](_0x4926('0xd1'));if(_0x3822c9[_0x4926('0xb')](_0x4926('0xa'),_0x138d49),_0x3822c9[_0x4926('0x85')](_0x4926('0x9b'),_0x138d49),_0x3822c9[_0x4926('0x85')](_0x4926('0x22'),_0x138d49),_0x3822c9[_0x4926('0x85')](_0x4926('0x3c'),_0x138d49),_0x3f6475){const _0x1acf28=this[_0x4926('0x89')](_0x3f6475);if(!_0x1acf28)return null;_0x3822c9['setAttribute'](_0x4926('0xa'),_0x3f6475,_0x138d49),_0x3822c9[_0x4926('0x9e')](_0x4926('0x107')+_0x1acf28[_0x4926('0x62')],_0x138d49),this[_0x4926('0xf')]==_0x1acf28&&_0x3822c9[_0x4926('0x9e')]('ck-revision-history-root--active',_0x138d49);}}}});}),this['editor'][_0x4926('0xf4')]['for'](_0x4926('0x113'))[_0x4926('0xca')]({'view':_0x4926('0xf7'),'model':_0x5e911a=>_0x4926('0xdb')+_0x5e911a,'converterPriority':_0x4926('0x102')}),this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')]('upcast')['dataToMarker']({'view':_0x4926('0xbf'),'model':_0x5dd7db=>'revision-suggestion:'+_0x5dd7db,'converterPriority':_0x4926('0x102')}),this[_0x4926('0x98')]['conversion'][_0x4926('0xce')](_0x4926('0x11f'))[_0x4926('0xab')]({'model':_0x4926('0x8'),'view':_0x6715b7=>({'name':'suggestion:'+_0x6715b7,'group':_0x4926('0x8')}),'converterPriority':'highest'}),this[_0x4926('0x98')]['conversion'][_0x4926('0xce')](_0x4926('0x12'))[_0x4926('0xef')]({'model':_0x4926('0x8'),'view':_0x55ca65=>{const _0x4bc81c=_0x55ca65[_0x4926('0xd5')]['split'](':')[0x1];return _0x4926('0x64')!=_0x4bc81c&&_0x4926('0xe6')!=_0x4bc81c?null:{'classes':[_0x4926('0x29'),'ck-suggestion-preview-marker-'+_0x4bc81c]};}}),this['editor'][_0x4926('0x6f')][_0x4926('0x109')]['on'](_0x4926('0x34'),et(this[_0x4926('0x98')],_0x4926('0xc1')),{'priority':_0x4926('0x38')}),this['editor'][_0x4926('0x6f')][_0x4926('0x109')]['on'](_0x4926('0x126'),et(this[_0x4926('0x98')],_0x4926('0x116')),{'priority':_0x4926('0x38')}),this['editor'][_0x4926('0x6f')][_0x4926('0x109')]['on'](_0x4926('0xe3'),(_0x28658d,_0x3ecbe4,_0x133940)=>{const _0x28c576=_0x133940['mapper'][_0x4926('0x6b')](_0x3ecbe4[_0x4926('0xd5')]);if(_0x28c576)for(const _0x19b74e of _0x28c576)_0x19b74e['is'](_0x4926('0xe'))&&(_0x133940['mapper']['unbindElementFromMarkerName'](_0x19b74e,_0x3ecbe4['markerName']),_0x133940[_0x4926('0x1c')]['remove'](_0x19b74e));},{'priority':_0x4926('0x38')});}[_0x4926('0x89')](_0x430078){return this['_changeIdToChange'][_0x4926('0xb1')](_0x430078);}[_0x4926('0x36')](_0x6e831e){return this['_changeView']&&this['_changeView'][_0x4926('0xcf')](),this[_0x4926('0x114')]=new _0x4de14f(this['editor'][_0x4926('0x6c')],_0x6e831e),this[_0x4926('0x114')];}['_initInteractions'](){this[_0x4926('0x98')]['model'][_0x4926('0x14')][_0x4926('0xb2')][_0x4926('0x0')]('revision'),this['on']('change:activeView',(_0x3392d7,_0xa25574,_0x254558,_0x48b211)=>{_0x48b211&&this[_0x4926('0x79')][_0x4926('0x8b')](_0x48b211),_0x254558&&(this[_0x4926('0x79')][_0x4926('0x103')]({'view':_0x254558,'stackId':_0x4926('0x48'),'position':{'target':()=>{const _0x4909a2=this['editor'][_0x4926('0x6f')],_0x3c464b=this[_0x4926('0x89')](_0x254558[_0x4926('0x19')]);let _0x4565a8;if(_0x3c464b[_0x4926('0x2b')]['isOnRoot']){const _0x479fb3=_0x4909a2[_0x4926('0xcb')][_0x4926('0x112')](_0x3c464b[_0x4926('0xfd')]);_0x4565a8=Array[_0x4926('0xa4')](_0x479fb3[_0x4926('0x67')]());}else{const _0x526384=this[_0x4926('0x98')]['model'][_0x4926('0xc4')][_0x4926('0xb1')](_0x4926('0xb9')+_0x254558[_0x4926('0x19')]);_0x4565a8=Array['from'](_0x4909a2[_0x4926('0x5e')][_0x4926('0x6b')](_0x526384[_0x4926('0xc0')]))[_0x4926('0x25')](_0x58bf16=>_0x4909a2['view'][_0x4926('0x13')][_0x4926('0x120')](_0x58bf16))['map'](_0x4f9909=>Array[_0x4926('0xa4')](_0x4f9909['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4565a8[0x0];return _0x4565a8[_0x4926('0x66')](_0x1eda01=>_0x1eda01[_0x4926('0xf8')]-0x3<=this[_0x4926('0x96')]['y']&&_0x1eda01['bottom']+0x3>=this[_0x4926('0x96')]['y']&&_0x1eda01[_0x4926('0x21')]-0x3<=this[_0x4926('0x96')]['x']&&_0x1eda01[_0x4926('0x33')]+0x3>=this[_0x4926('0x96')]['x'])||_0x4565a8[0x0];}}}),this['_balloon'][_0x4926('0x52')](_0x4926('0x48')));}),this['on'](_0x4926('0xf5'),(_0x174aac,_0x2ccc59,_0xfe2be8,_0x3cd387)=>{this[_0x4926('0x1b')]=_0xfe2be8?this['_getViewForChange'](_0xfe2be8):null,this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0xc')](()=>{const _0x269bb2=this['editor']['editing'];_0x3cd387&&(_0x3cd387[_0x4926('0x2b')][_0x4926('0x76')]?_0x269bb2[_0x4926('0xcb')]['change'](_0x435346=>{_0x435346[_0x4926('0x85')](_0x4926('0x3c'),_0x269bb2[_0x4926('0xcb')][_0x4926('0x14')][_0x4926('0x43')](_0x3cd387['rootName']));}):_0x269bb2[_0x4926('0xbd')](_0x4926('0xb9')+_0x3cd387['id'])),_0xfe2be8&&(_0xfe2be8[_0x4926('0x2b')]['isOnRoot']?_0x269bb2[_0x4926('0xcb')][_0x4926('0xc')](_0xa962b8=>{_0xa962b8['addClass'](_0x4926('0x3c'),_0x269bb2[_0x4926('0xcb')]['document']['getRoot'](_0xfe2be8[_0x4926('0xfd')]));}):_0x269bb2[_0x4926('0xbd')]('revision:'+_0xfe2be8['id']));});}),this[_0x4926('0x9a')](this[_0x4926('0x98')][_0x4926('0x6f')]['view']['document'],_0x4926('0x74'),(_0x118935,_0x346c56)=>{if(this[_0x4926('0xf')])return;const _0x3ad907=this[_0x4926('0x122')](_0x346c56['target']),_0x20fc19=this[_0x4926('0xdd')][_0x4926('0xb1')](_0x3ad907);_0x20fc19?(this[_0x4926('0x96')]={'x':_0x346c56[_0x4926('0x118')]['x'],'y':_0x346c56['domEvent']['y']},this[_0x4926('0x1b')]=this['_getViewForChange'](_0x20fc19)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this[_0x4926('0x98')][_0x4926('0x6f')]['view']['document'],_0x4926('0x2c'),(_0x3d4f74,_0x1692aa)=>{const _0x233491=this[_0x4926('0x122')](_0x1692aa[_0x4926('0x7e')]),_0x5bb584=this[_0x4926('0xdd')][_0x4926('0xb1')](_0x233491);_0x5bb584?(this[_0x4926('0x96')]={'x':_0x1692aa[_0x4926('0x118')]['x'],'y':_0x1692aa[_0x4926('0x118')]['y']},_0x5bb584===this[_0x4926('0xf')]?this[_0x4926('0x79')][_0x4926('0xe4')]():this['activeChange']=_0x5bb584):(this[_0x4926('0x96')]=null,this[_0x4926('0xf')]=null);});}[_0x4926('0x122')](_0x4ecdb5){do{const _0x25a84d=_0x4ecdb5[_0x4926('0x4c')]('data-change-id');if(_0x25a84d)return _0x25a84d;_0x4ecdb5=_0x4ecdb5[_0x4926('0x58')];}while(_0x4ecdb5);return null;}[_0x4926('0xa8')](){this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0xc')](_0x1341c4=>{for(const _0x443426 of this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0xc4')])_0x1341c4[_0x4926('0xd8')](_0x443426);});}}function et(_0x484e26,_0x486525){return(_0x204e61,_0x10cb46,_0x256cd2)=>{if(!_0x256cd2[_0x4926('0x60')][_0x4926('0x5c')](_0x10cb46[_0x4926('0xee')],_0x204e61['name']))return;const _0x5b70fb=_0x10cb46[_0x4926('0xee')][_0x4926('0x63')](),_0x4a3f20=_0x10cb46[_0x4926('0xee')][_0x4926('0x10b')],_0x322f4f=_0x484e26[_0x4926('0x55')][_0x4926('0xa0')];let _0x4f2d61=null,_0x5da535=null,_0x2f982d=!0x1,_0x20f13e=!0x1;for(const _0x30ab05 of _0x5b70fb){const _0x1ec58f=_0x30ab05[_0x4926('0xb0')];_0x2f982d=_0x2f982d||_0x322f4f[_0x4926('0xf0')](_0x1ec58f);const _0x5edc8c=_0x256cd2[_0x4926('0x5e')]['toViewElement'](_0x1ec58f);if(_0x5edc8c&&_0x5edc8c['getCustomProperty'](_0x4926('0xd9')))return;'elementEnd'==_0x30ab05[_0x4926('0x62')]&&(_0x322f4f[_0x4926('0x11d')](_0x1ec58f)&&!_0x322f4f['isLimit'](_0x1ec58f)&&(_0x1ec58f[_0x4926('0x44')]||_0x4a3f20[_0x4926('0x119')]?_0x4f2d61&&_0x4f2d61[_0x4926('0x58')]==_0x1ec58f||(_0x4f2d61=_0x1ec58f,_0x471f03(_0x30ab05[_0x4926('0xaf')]),_0x20f13e=!0x0):_0x5da535=_0x5da535||_0x30ab05[_0x4926('0xaf')]));}function _0x471f03(_0x2c8cff){const _0x49c452=_0x256cd2[_0x4926('0x5e')]['toViewPosition'](_0x2c8cff),_0x4600be=_0x256cd2[_0x4926('0x1c')][_0x4926('0x57')]('span',{'class':_0x4926('0x5b')+_0x486525});_0x256cd2[_0x4926('0x1c')]['insert'](_0x49c452,_0x4600be),_0x256cd2['mapper']['bindElementToMarker'](_0x4600be,_0x10cb46['markerName']);}_0x2f982d||_0x20f13e||!_0x5da535||_0x471f03(_0x5da535);};}export class RestoreRevisionCommand extends _0x196c82{constructor(_0x1ec3df){super(_0x1ec3df);const _0x2fffbd=_0x1ec3df[_0x4926('0x95')][_0x4926('0xb1')](d);this['affectsData']=!0x1,this[_0x4926('0x9a')](_0x2fffbd,_0x4926('0xa3'),()=>this[_0x4926('0x2f')]()),this[_0x4926('0x9a')](_0x2fffbd,_0x4926('0x3e'),()=>this[_0x4926('0x2f')]());}[_0x4926('0x10f')](){const _0x2c4b63=this['editor'],_0x503fb4=_0x2c4b63['plugins'][_0x4926('0xb1')](d),_0x3f8077=_0x503fb4[_0x4926('0x110')]?_0x503fb4[_0x4926('0x99')][_0x4926('0xb6')]:null;_0x2c4b63[_0x4926('0x111')]['get']('revisionHistory')[_0x4926('0x4')](_0x3f8077);}[_0x4926('0x2f')](){const {isReady:_0x138e18,isEnabled:_0x4d837d}=this['editor'][_0x4926('0x95')]['get'](d);this[_0x4926('0xd7')]=_0x138e18&&_0x4d837d;}}export class ShowChangeCommand extends _0x196c82{constructor(_0x59462f,{direction:_0x491d4f}){super(_0x59462f);const _0x3b0260=_0x59462f[_0x4926('0x95')]['get'](d);this['affectsData']=!0x1,this[_0x4926('0x106')]='forward'===_0x491d4f?0x1:-0x1,this['listenTo'](_0x3b0260,'change:isReady',()=>this['refresh']()),this[_0x4926('0x9a')](_0x3b0260,_0x4926('0x3e'),()=>this[_0x4926('0x2f')]()),this['listenTo'](_0x3b0260,_0x4926('0xf5'),()=>this['refresh']());}['execute'](){const _0x274ece=this[_0x4926('0x98')],_0x2d45d1=_0x274ece[_0x4926('0x95')]['get'](d),{isNavigationMode:_0x8d485c,currentChangeNumber:_0x434c58}=_0x2d45d1;let _0x2e9da9;if(_0x2d45d1['activeChange']=_0x8d485c?_0x2d45d1[_0x4926('0x99')][_0x4926('0x4a')][_0x4926('0xb1')](_0x434c58+this[_0x4926('0x106')]):_0x2d45d1[_0x4926('0x99')][_0x4926('0x4a')]['first'],_0x2d45d1[_0x4926('0xf')][_0x4926('0x2b')]['isOnRoot'])_0x2e9da9=_0x274ece['editing'][_0x4926('0xcb')][_0x4926('0x112')](_0x2d45d1[_0x4926('0xf')][_0x4926('0xfd')]);else{const _0x1e4dfa=_0x274ece[_0x4926('0x55')][_0x4926('0xc4')]['get'](_0x4926('0xb9')+_0x2d45d1['activeChange']['id']);_0x2e9da9=_0x2334ee(_0x274ece[_0x4926('0x6f')],_0x1e4dfa);}_0x533979({'target':_0x2e9da9,'viewportOffset':0x28});}[_0x4926('0x2f')](){const {isNavigationMode:_0x566ea0,currentChangeNumber:_0x48e510,numberOfChanges:_0x28d6ea,isReady:_0x1d3496,isEnabled:_0x324ad0}=this['editor']['plugins'][_0x4926('0xb1')](d);this['isEnabled']=!!(_0x324ad0&&_0x1d3496&&_0x28d6ea)&&(!_0x566ea0||(0x1===this[_0x4926('0x106')]?_0x48e510<_0x28d6ea-0x1:_0x48e510>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b98=['model','ck-on','change:isActionsDropdownOpen','locale','isVisible','add','isEnabled','source','Name\x20this\x20revision','threeVerticalDots','map','listenTo','bind','panelPosition','extendTemplate','Restore\x20this\x20revision','function','stopPropagation','ck-revision-history-sidebar__revision__actions','isOpen','class','find','items','children','set','button','name','action','_action','execute','isActionsDropdownOpen'];(function(_0x154729,_0x4b98ad){const _0x38019f=function(_0x5ddeba){while(--_0x5ddeba){_0x154729['push'](_0x154729['shift']());}};_0x38019f(++_0x4b98ad);}(_0x4b98,0xbd));const _0x3801=function(_0x154729,_0x4b98ad){_0x154729=_0x154729-0x0;let _0x38019f=_0x4b98[_0x154729];return _0x38019f;};import{Collection as _0x23d70b}from'ckeditor5/src/utils';import{icons as _0x53d4c4}from'ckeditor5/src/core';import{Model as _0xb738df,addListToDropdown as _0x22e16b,createDropdown as _0x1c13bc}from'ckeditor5/src/ui';import{getTranslation as _0x53c531}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2fbae4,_0x5532e9){const _0x521ac6=_0x2fbae4['bindTemplate'],_0x266451=_0x2fbae4[_0x3801('0x0')],_0x43ca46=_0x1c13bc(_0x266451);_0x43ca46[_0x3801('0xa')]='sw';const _0x3e81f2=function(_0x81de82,_0x20be10){const _0x31e631=function(_0x2309d3,_0x2c1edb){const _0x20f262=_0x2309d3[_0x3801('0x0')],_0x4d4ce7={'Compare\x20against\x20selected':_0x53c531(_0x20f262,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x53c531(_0x20f262,_0x3801('0x5')),'Restore\x20this\x20revision':_0x53c531(_0x20f262,_0x3801('0xc'))};return _0x2c1edb[_0x3801('0x7')](_0x5b1177=>{const _0x2b1f9e=_0x4d4ce7[_0x5b1177[_0x3801('0x17')]];return _0x2b1f9e&&_0x2b1f9e!==_0x5b1177['name']&&(_0x5b1177[_0x3801('0x17')]=_0x2b1f9e),_0x5b1177;});}(_0x81de82,_0x20be10),_0x2856ee=new _0x23d70b();for(const _0x13b5a6 of _0x31e631){const _0x32879c={'type':_0x3801('0x16'),'model':new _0xb738df({'label':_0x13b5a6[_0x3801('0x17')],'class':_0x13b5a6[_0x3801('0x11')],'withText':!0x0,'_action':_0x13b5a6[_0x3801('0x18')]})};_0x32879c[_0x3801('0x1c')][_0x3801('0x9')]('isEnabled')['to'](_0x81de82,_0x3801('0x1b'),_0x4b2783=>_0x3801('0xd')!=typeof _0x13b5a6[_0x3801('0x3')]||(!_0x4b2783||_0x13b5a6['isEnabled'](_0x81de82))),_0x2856ee[_0x3801('0x2')](_0x32879c);}return _0x2856ee;}(_0x2fbae4,_0x5532e9);return _0x2fbae4[_0x3801('0x9')](_0x3801('0x1b'))['to'](_0x43ca46,_0x3801('0x10')),_0x43ca46['buttonView'][_0x3801('0x15')]({'label':_0x53c531(_0x266451,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x53d4c4[_0x3801('0x6')]}),_0x43ca46[_0x3801('0xb')]({'attributes':{'class':[_0x3801('0xf'),_0x521ac6['if']('isActionsDropdownOpen',_0x3801('0x1d'))]},'on':{'click':_0x521ac6['to'](_0x224937=>_0x224937[_0x3801('0xe')]())}}),_0x43ca46['on'](_0x3801('0x1a'),_0x38f40f=>{_0x2fbae4['isReady']&&'function'==typeof _0x38f40f['source']['_action']&&_0x38f40f[_0x3801('0x4')]['_action'](_0x2fbae4);}),_0x22e16b(_0x43ca46,_0x3e81f2),_0x43ca46[_0x3801('0x8')](_0x2fbae4,_0x3801('0x1e'),(_0x3cd0ff,_0x5df761,_0x5c11d7)=>{if(_0x5c11d7)for(const _0x28c411 of _0x43ca46['listView'][_0x3801('0x13')]){const _0x499b5a=_0x28c411[_0x3801('0x14')]['first'],_0x1e158a=_0x5532e9[_0x3801('0x12')](_0x1e835a=>_0x1e835a[_0x3801('0x18')]===_0x499b5a[_0x3801('0x19')])[_0x3801('0x1')];_0x28c411['isVisible']=void 0x0===_0x1e158a||_0x1e158a(_0x2fbae4);}}),_0x43ca46;}
23
+ const _0x1e3a=['Show\x20more\x20items','_action','button','extendTemplate','items','Name\x20this\x20revision','children','find','panelPosition','set','listView','class','isVisible','threeVerticalDots','locale','first','isActionsDropdownOpen','bind','model','execute','isEnabled','name','bindTemplate','function','ck-on','source','action','isOpen','change:isActionsDropdownOpen','stopPropagation','ck-revision-history-sidebar__revision__actions','Compare\x20against\x20selected'];(function(_0x29f826,_0x1e3a92){const _0x58abc4=function(_0x204db8){while(--_0x204db8){_0x29f826['push'](_0x29f826['shift']());}};_0x58abc4(++_0x1e3a92);}(_0x1e3a,0x114));const _0x58ab=function(_0x29f826,_0x1e3a92){_0x29f826=_0x29f826-0x0;let _0x58abc4=_0x1e3a[_0x29f826];return _0x58abc4;};import{Collection as _0x12e849}from'ckeditor5/src/utils';import{icons as _0x349f70}from'ckeditor5/src/core';import{Model as _0x1da3cc,addListToDropdown as _0xba26a8,createDropdown as _0x131802}from'ckeditor5/src/ui';import{getTranslation as _0x1b5bc7}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x5e2612,_0x4942d9){const _0x38032c=_0x5e2612[_0x58ab('0x2')],_0x28731e=_0x5e2612['locale'],_0x5b4712=_0x131802(_0x28731e);_0x5b4712[_0x58ab('0x14')]='sw';const _0x347831=function(_0x4d15e0,_0x3d9bff){const _0x4d106b=function(_0x59f4f2,_0x5da32e){const _0x46ac03=_0x59f4f2[_0x58ab('0x1a')],_0x462795={'Compare\x20against\x20selected':_0x1b5bc7(_0x46ac03,_0x58ab('0xb')),'Name\x20this\x20revision':_0x1b5bc7(_0x46ac03,_0x58ab('0x11')),'Restore\x20this\x20revision':_0x1b5bc7(_0x46ac03,'Restore\x20this\x20revision')};return _0x5da32e['map'](_0x4ea7b0=>{const _0x3ebe30=_0x462795[_0x4ea7b0[_0x58ab('0x1')]];return _0x3ebe30&&_0x3ebe30!==_0x4ea7b0[_0x58ab('0x1')]&&(_0x4ea7b0[_0x58ab('0x1')]=_0x3ebe30),_0x4ea7b0;});}(_0x4d15e0,_0x3d9bff),_0x44806f=new _0x12e849();for(const _0x3ea895 of _0x4d106b){const _0x319ecf={'type':_0x58ab('0xe'),'model':new _0x1da3cc({'label':_0x3ea895['name'],'class':_0x3ea895[_0x58ab('0x17')],'withText':!0x0,'_action':_0x3ea895[_0x58ab('0x6')]})};_0x319ecf[_0x58ab('0x1e')][_0x58ab('0x1d')](_0x58ab('0x0'))['to'](_0x4d15e0,_0x58ab('0x1c'),_0x58ebd2=>'function'!=typeof _0x3ea895[_0x58ab('0x0')]||(!_0x58ebd2||_0x3ea895[_0x58ab('0x0')](_0x4d15e0))),_0x44806f['add'](_0x319ecf);}return _0x44806f;}(_0x5e2612,_0x4942d9);return _0x5e2612['bind'](_0x58ab('0x1c'))['to'](_0x5b4712,_0x58ab('0x7')),_0x5b4712['buttonView'][_0x58ab('0x15')]({'label':_0x1b5bc7(_0x28731e,_0x58ab('0xc')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x349f70[_0x58ab('0x19')]}),_0x5b4712[_0x58ab('0xf')]({'attributes':{'class':[_0x58ab('0xa'),_0x38032c['if']('isActionsDropdownOpen',_0x58ab('0x4'))]},'on':{'click':_0x38032c['to'](_0x132a09=>_0x132a09[_0x58ab('0x9')]())}}),_0x5b4712['on'](_0x58ab('0x1f'),_0x4bb648=>{_0x5e2612['isReady']&&_0x58ab('0x3')==typeof _0x4bb648[_0x58ab('0x5')][_0x58ab('0xd')]&&_0x4bb648['source']['_action'](_0x5e2612);}),_0xba26a8(_0x5b4712,_0x347831),_0x5b4712['listenTo'](_0x5e2612,_0x58ab('0x8'),(_0x23c99b,_0x124cf2,_0xeec7f0)=>{if(_0xeec7f0)for(const _0x34aac8 of _0x5b4712[_0x58ab('0x16')][_0x58ab('0x10')]){const _0x5ee50f=_0x34aac8[_0x58ab('0x12')][_0x58ab('0x1b')],_0x3263da=_0x4942d9[_0x58ab('0x13')](_0x1a7528=>_0x1a7528[_0x58ab('0x6')]===_0x5ee50f[_0x58ab('0xd')])[_0x58ab('0x18')];_0x34aac8[_0x58ab('0x18')]=void 0x0===_0x3263da||_0x3263da(_0x5e2612);}}),_0x5b4712;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2af6=['name','span','ck-revision-history-sidebar__revision-author','set','setTemplate','ck-revision-history-sidebar__revision-author_creator','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name'];(function(_0x17e1f0,_0x2af6cc){const _0x16f97e=function(_0x3e3e04){while(--_0x3e3e04){_0x17e1f0['push'](_0x17e1f0['shift']());}};_0x16f97e(++_0x2af6cc);}(_0x2af6,0xc8));const _0x16f9=function(_0x17e1f0,_0x2af6cc){_0x17e1f0=_0x17e1f0-0x0;let _0x16f97e=_0x2af6[_0x17e1f0];return _0x16f97e;};import{View as _0x3a7f19,IconView as _0x6a42c2}from'ckeditor5/src/ui';import{getTranslation as _0x407db6}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x56b1d7 from'../../../theme/icons/user.svg';export default class ti extends _0x3a7f19{constructor(_0x114048,_0x1004c9,_0x35a01e){super(_0x114048);const _0x24ee91=new _0x6a42c2();_0x24ee91[_0x16f9('0x3')]({'content':_0x56b1d7,'viewBox':_0x16f9('0x6')});const _0x49d7e0=['ck',_0x16f9('0x2')];_0x35a01e&&_0x49d7e0['push'](_0x16f9('0x5'));const _0x112fa3=[{'tag':_0x16f9('0x1'),'attributes':{'class':['ck',_0x16f9('0x7')],'title':_0x407db6(_0x114048,_0x35a01e?'Revision\x20creator':'Revision\x20author')},'children':[_0x24ee91,_0x1004c9[_0x16f9('0x0')]]}];this[_0x16f9('0x4')]({'tag':'li','attributes':{'class':_0x49d7e0},'children':_0x112fa3});}}
23
+ const _0xa900=['name','Revision\x20author','0\x200\x2011\x2010','Revision\x20creator','span','set','ck-revision-history-sidebar__revision-author_creator'];(function(_0x277a4b,_0xa90005){const _0xd6575d=function(_0x4f8d7b){while(--_0x4f8d7b){_0x277a4b['push'](_0x277a4b['shift']());}};_0xd6575d(++_0xa90005);}(_0xa900,0x109));const _0xd657=function(_0x277a4b,_0xa90005){_0x277a4b=_0x277a4b-0x0;let _0xd6575d=_0xa900[_0x277a4b];return _0xd6575d;};import{View as _0x6bd4a3,IconView as _0x1df6ea}from'ckeditor5/src/ui';import{getTranslation as _0x5323b6}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x39cdab from'../../../theme/icons/user.svg';export default class ti extends _0x6bd4a3{constructor(_0x487acf,_0x29aa2e,_0x1400aa){super(_0x487acf);const _0x301a4d=new _0x1df6ea();_0x301a4d[_0xd657('0x6')]({'content':_0x39cdab,'viewBox':_0xd657('0x3')});const _0x4844c=['ck','ck-revision-history-sidebar__revision-author'];_0x1400aa&&_0x4844c['push'](_0xd657('0x0'));const _0x359659=[{'tag':_0xd657('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x5323b6(_0x487acf,_0x1400aa?_0xd657('0x4'):_0xd657('0x2'))},'children':[_0x301a4d,_0x29aa2e[_0xd657('0x1')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4844c},'children':_0x359659});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4b85=['span','extendTemplate','Revision\x20name','set','ck-revision-history-sidebar__revision-name'];(function(_0x31aa9b,_0x4b8507){var _0x15edb1=function(_0x4590f0){while(--_0x4590f0){_0x31aa9b['push'](_0x31aa9b['shift']());}};_0x15edb1(++_0x4b8507);}(_0x4b85,0x134));var _0x15ed=function(_0x31aa9b,_0x4b8507){_0x31aa9b=_0x31aa9b-0x0;var _0x15edb1=_0x4b85[_0x31aa9b];return _0x15edb1;};import{LabeledFieldView as _0x3b29fe}from'ckeditor5/src/ui';import{getTranslation as _0x3e0216}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3b29fe{constructor(_0x4467c4,_0x1a1b66){super(_0x4467c4,_0x1a1b66),this[_0x15ed('0x0')]({'label':_0x3e0216(_0x4467c4,_0x15ed('0x4'))}),this[_0x15ed('0x3')]({'tag':_0x15ed('0x2'),'attributes':{'class':[_0x15ed('0x1')]}});}}
23
+ var _0x5aee=['span','set','extendTemplate','ck-revision-history-sidebar__revision-name','Revision\x20name'];(function(_0x339931,_0x5aee3d){var _0x259f53=function(_0x5a484d){while(--_0x5a484d){_0x339931['push'](_0x339931['shift']());}};_0x259f53(++_0x5aee3d);}(_0x5aee,0x13c));var _0x259f=function(_0x339931,_0x5aee3d){_0x339931=_0x339931-0x0;var _0x259f53=_0x5aee[_0x339931];return _0x259f53;};import{LabeledFieldView as _0xcbe29a}from'ckeditor5/src/ui';import{getTranslation as _0x5d93ad}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xcbe29a{constructor(_0xbafda7,_0x3d9dde){super(_0xbafda7,_0x3d9dde),this[_0x259f('0x0')]({'label':_0x5d93ad(_0xbafda7,_0x259f('0x3'))}),this[_0x259f('0x1')]({'tag':_0x259f('0x4'),'attributes':{'class':[_0x259f('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e38=['revisionActionsView','_revision','isActionsDropdownOpen','name','isReady','authors','fieldView','creator','createdAt','filter','ck-reset','ck-revision-history-sidebar__actions_dropdown_open','revisionNameView','closest','unhighlight','isConfirm','listenTo','srcElement','bindTemplate','value','isHighlighted','isEnabled','map','span','ck-revision-history-sidebar__revision-authors','length','fire','ck-revision-history-sidebar__revision_highlighted','unshift','extendTemplate','bind','isSelected','placeholder','.ck-thread__remove-confirm','highlight','set','setTemplate','element','render','_createdAtFormatted','select','ck-disabled','div','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision__controls-wrapper','220','from'];(function(_0x3392e0,_0x5e3809){const _0x39019b=function(_0xb36e9e){while(--_0xb36e9e){_0x3392e0['push'](_0x3392e0['shift']());}};_0x39019b(++_0x5e3809);}(_0x5e38,0x13c));const _0x3901=function(_0x3392e0,_0x5e3809){_0x3392e0=_0x3392e0-0x0;let _0x39019b=_0x5e38[_0x3392e0];return _0x39019b;};import{View as _0x233b18,createLabeledInputText as _0x238a6a}from'ckeditor5/src/ui';import{ConfirmMixin as _0x1f0017}from'ckeditor5-collaboration/src/collaboration-core';import _0x37a38d from'./revisionnameview';import _0x5e1072 from'./revisionauthorview';import{dateToPrettyFormat as _0x30dfea}from'./utils';import{createActionsDropdownView as _0x3f49f7}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x1f0017(_0x233b18){constructor(_0x308428,_0xb21053,_0xb10b91){super(_0x308428);const _0x399794=this[_0x3901('0x1f')],_0x581462=function(_0x3b71be,_0x9f0bb5){const _0x52b6ec=Array[_0x3901('0xc')](_0x9f0bb5[_0x3901('0x12')])[_0x3901('0x16')](_0x1ba942=>_0x1ba942!=_0x9f0bb5['creator']);return _0x9f0bb5[_0x3901('0x14')]&&_0x52b6ec[_0x3901('0x29')](_0x9f0bb5['creator']),_0x52b6ec[_0x3901('0x23')](_0x3e5386=>new _0x5e1072(_0x3b71be,_0x3e5386,_0x3e5386==_0x9f0bb5[_0x3901('0x14')]));}(_0x308428,_0xb21053);this['id']=_0xb21053['id'],this[_0x3901('0xe')]=_0xb21053,this[_0x3901('0x2b')](_0x3901('0x10'),_0x3901('0x15'))['to'](_0xb21053),this[_0x3901('0x2b')](_0x3901('0x5'))['to'](this,_0x3901('0x15'),_0x176ba6=>_0x176ba6?_0x30dfea(_0x308428['uiLanguage'],_0x176ba6):void 0x0),this['set'](_0x3901('0x2c'),!0x1),this[_0x3901('0x1')](_0x3901('0x21'),!0x1),this[_0x3901('0x1')](_0x3901('0xf'),!0x1),this['set'](_0x3901('0x11'),!0x1),this[_0x3901('0x1')](_0x3901('0x22'),!0x1),this[_0x3901('0x19')]=new _0x37a38d(_0x308428,_0x238a6a),this[_0x3901('0x19')][_0x3901('0x13')][_0x3901('0x2a')]({'attributes':{'maxlength':_0x3901('0xb')}}),this[_0x3901('0x19')][_0x3901('0x13')][_0x3901('0x2b')](_0x3901('0x20'),_0x3901('0x2d'))['to'](this,'name',_0x3901('0x5')),this[_0x3901('0x19')][_0x3901('0x2b')](_0x3901('0x22'))['to'](this,_0x3901('0x2c'),this,'isEnabled',(_0x13014e,_0x27af83)=>_0x13014e&&_0x27af83),this[_0x3901('0xd')]=_0xb10b91&&_0xb10b91[_0x3901('0x26')]?_0x3f49f7(this,_0xb10b91):'',this['revisionActionsView']&&this[_0x3901('0xd')]['bind'](_0x3901('0x22'))['to'](this),this[_0x3901('0x2')]({'tag':_0x3901('0x8'),'attributes':{'class':['ck',_0x3901('0x17'),'ck-revision-history-sidebar__revision-wrapper',_0x399794['if'](_0x3901('0x1c'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x3901('0x17'),'ck-revision-history-sidebar__revision',_0x399794['if'](_0x3901('0x22'),_0x3901('0x7'),_0x497a23=>!_0x497a23),_0x399794['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x399794['if']('isHighlighted',_0x3901('0x28')),_0x399794['if'](_0x3901('0xf'),_0x3901('0x18'))]},'children':[this[_0x3901('0x19')],{'tag':_0x3901('0x24'),'attributes':{'class':['ck',_0x3901('0x9')]},'children':[{'text':_0x399794['to'](_0x3901('0x5'))}]},{'tag':_0x3901('0x8'),'attributes':{'class':['ck',_0x3901('0xa')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3901('0x25')]},'children':_0x581462}]},this[_0x3901('0xd')]],'on':{'click':_0x399794['to'](_0x4d7e89=>{_0x4d7e89[_0x3901('0x1e')][_0x3901('0x1a')](_0x3901('0x2e'))||this[_0x3901('0x11')]&&this[_0x3901('0x22')]&&this[_0x3901('0x27')](_0x3901('0x6'),{'id':this['id']});})}}]});}[_0x3901('0x4')](){super[_0x3901('0x4')]();const _0x4e3e5d=this[_0x3901('0x19')]['fieldView'][_0x3901('0x3')];this[_0x3901('0x1d')](_0x4e3e5d,'change',()=>{this[_0x3901('0x27')]('setName',{'id':this['id'],'name':_0x4e3e5d[_0x3901('0x20')]});});}[_0x3901('0x6')](){this['isSelected']=!0x0;}['deselect'](){this[_0x3901('0x2c')]=!0x1;}[_0x3901('0x0')](){this[_0x3901('0x21')]=!0x0;}[_0x3901('0x1b')](){this[_0x3901('0x21')]=!0x1;}}
23
+ const _0x1331=['creator','isSelected','set','listenTo','from','srcElement','deselect','extendTemplate','element','ck-revision-history-sidebar__actions_dropdown_open','fieldView','_createdAtFormatted','220','bind','revisionActionsView','ck-revision-history-sidebar__revision-authors','name','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision__date','setTemplate','fire','.ck-thread__remove-confirm','value','ck-revision-history-sidebar__revision','div','change','ck-reset','ck-disabled','unhighlight','createdAt','isEnabled','placeholder','render','_revision','filter','isHighlighted','revisionNameView','ck-revision-history-sidebar__revision-wrapper','span','closest','map','length','ck-revision-history-sidebar__revision_selected','isActionsDropdownOpen','authors','isReady'];(function(_0x5936af,_0x1331c0){const _0x5745e4=function(_0x4a4455){while(--_0x4a4455){_0x5936af['push'](_0x5936af['shift']());}};_0x5745e4(++_0x1331c0);}(_0x1331,0x1db));const _0x5745=function(_0x5936af,_0x1331c0){_0x5936af=_0x5936af-0x0;let _0x5745e4=_0x1331[_0x5936af];return _0x5745e4;};import{View as _0x35a4d2,createLabeledInputText as _0xac3583}from'ckeditor5/src/ui';import{ConfirmMixin as _0x52497e}from'ckeditor5-collaboration/src/collaboration-core';import _0x3526c1 from'./revisionnameview';import _0x49c450 from'./revisionauthorview';import{dateToPrettyFormat as _0x2ef022}from'./utils';import{createActionsDropdownView as _0xc3b2f0}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x52497e(_0x35a4d2){constructor(_0x4abe1c,_0xe87a2a,_0x33dc4c){super(_0x4abe1c);const _0x2a2af7=this['bindTemplate'],_0x1e1559=function(_0x121c1d,_0x3b7b9b){const _0x251874=Array[_0x5745('0x23')](_0x3b7b9b[_0x5745('0x1d')])[_0x5745('0x13')](_0x269707=>_0x269707!=_0x3b7b9b['creator']);return _0x3b7b9b[_0x5745('0x1f')]&&_0x251874['unshift'](_0x3b7b9b[_0x5745('0x1f')]),_0x251874[_0x5745('0x19')](_0x453a6c=>new _0x49c450(_0x121c1d,_0x453a6c,_0x453a6c==_0x3b7b9b[_0x5745('0x1f')]));}(_0x4abe1c,_0xe87a2a);this['id']=_0xe87a2a['id'],this[_0x5745('0x12')]=_0xe87a2a,this['bind'](_0x5745('0x1'),'createdAt')['to'](_0xe87a2a),this['bind'](_0x5745('0x2a'))['to'](this,_0x5745('0xe'),_0x14d16c=>_0x14d16c?_0x2ef022(_0x4abe1c['uiLanguage'],_0x14d16c):void 0x0),this[_0x5745('0x21')](_0x5745('0x20'),!0x1),this[_0x5745('0x21')](_0x5745('0x14'),!0x1),this[_0x5745('0x21')](_0x5745('0x1c'),!0x1),this['set'](_0x5745('0x1e'),!0x1),this[_0x5745('0x21')](_0x5745('0xf'),!0x1),this[_0x5745('0x15')]=new _0x3526c1(_0x4abe1c,_0xac3583),this[_0x5745('0x15')][_0x5745('0x29')][_0x5745('0x26')]({'attributes':{'maxlength':_0x5745('0x2b')}}),this[_0x5745('0x15')][_0x5745('0x29')][_0x5745('0x2c')](_0x5745('0x7'),_0x5745('0x10'))['to'](this,_0x5745('0x1'),_0x5745('0x2a')),this['revisionNameView'][_0x5745('0x2c')](_0x5745('0xf'))['to'](this,_0x5745('0x20'),this,_0x5745('0xf'),(_0x26fe88,_0xf7d487)=>_0x26fe88&&_0xf7d487),this[_0x5745('0x2d')]=_0x33dc4c&&_0x33dc4c[_0x5745('0x1a')]?_0xc3b2f0(this,_0x33dc4c):'',this[_0x5745('0x2d')]&&this[_0x5745('0x2d')]['bind'](_0x5745('0xf'))['to'](this),this[_0x5745('0x4')]({'tag':_0x5745('0x9'),'attributes':{'class':['ck',_0x5745('0xb'),_0x5745('0x16'),_0x2a2af7['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x5745('0xb'),_0x5745('0x8'),_0x2a2af7['if']('isEnabled',_0x5745('0xc'),_0x42541e=>!_0x42541e),_0x2a2af7['if']('isSelected',_0x5745('0x1b')),_0x2a2af7['if'](_0x5745('0x14'),'ck-revision-history-sidebar__revision_highlighted'),_0x2a2af7['if']('isActionsDropdownOpen',_0x5745('0x28'))]},'children':[this[_0x5745('0x15')],{'tag':_0x5745('0x17'),'attributes':{'class':['ck',_0x5745('0x3')]},'children':[{'text':_0x2a2af7['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0x5745('0x2')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5745('0x0')]},'children':_0x1e1559}]},this[_0x5745('0x2d')]],'on':{'click':_0x2a2af7['to'](_0x567b35=>{_0x567b35[_0x5745('0x24')][_0x5745('0x18')](_0x5745('0x6'))||this[_0x5745('0x1e')]&&this[_0x5745('0xf')]&&this['fire']('select',{'id':this['id']});})}}]});}[_0x5745('0x11')](){super[_0x5745('0x11')]();const _0x149a10=this[_0x5745('0x15')][_0x5745('0x29')][_0x5745('0x27')];this[_0x5745('0x22')](_0x149a10,_0x5745('0xa'),()=>{this[_0x5745('0x5')]('setName',{'id':this['id'],'name':_0x149a10['value']});});}['select'](){this[_0x5745('0x20')]=!0x0;}[_0x5745('0x25')](){this[_0x5745('0x20')]=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}[_0x5745('0xd')](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x364a=['ck-hidden','isVisible','span','setTemplate','_isCollapsed','button','bindTemplate','false','true','click','ck-revision-history-sidebar__subrevision-collapser','toggle'];(function(_0x1d50b2,_0x364aac){const _0x299fb9=function(_0xe6721b){while(--_0xe6721b){_0x1d50b2['push'](_0x1d50b2['shift']());}};_0x299fb9(++_0x364aac);}(_0x364a,0xdf));const _0x299f=function(_0x1d50b2,_0x364aac){_0x1d50b2=_0x1d50b2-0x0;let _0x299fb9=_0x364a[_0x1d50b2];return _0x299fb9;};import{View as _0x1b7b37}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1b7b37{constructor(_0x4d4ed8){super(_0x4d4ed8);const _0xbf8155=this[_0x299f('0xb')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x299f('0x8')]({'tag':'span','attributes':{'class':['ck',_0x299f('0x3'),_0xbf8155['if'](_0x299f('0x6'),_0x299f('0x5'),_0x1f0823=>!_0x1f0823),_0xbf8155['if'](_0x299f('0x9'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x299f('0xa'),'aria-pressed':_0xbf8155['to'](_0x299f('0x9'),_0x368c98=>_0x368c98?_0x299f('0x0'):_0x299f('0x1'))},'children':[{'tag':_0x299f('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0xbf8155['to'](_0x299f('0x2'))}});}[_0x299f('0x4')](){this[_0x299f('0x9')]=!this['_isCollapsed'];}}
23
+ const _0x228c=['set','ck-revision-history-sidebar__subrevision-collapser','true','ck-revision-history-sidebar__subrevision-collapser_collapsed','button','_isCollapsed','false','ck-hidden','setTemplate','bindTemplate','toggle','span','isVisible'];(function(_0x172ddd,_0x228c3b){const _0x2a681a=function(_0x86ae7a){while(--_0x86ae7a){_0x172ddd['push'](_0x172ddd['shift']());}};_0x2a681a(++_0x228c3b);}(_0x228c,0xc5));const _0x2a68=function(_0x172ddd,_0x228c3b){_0x172ddd=_0x172ddd-0x0;let _0x2a681a=_0x228c[_0x172ddd];return _0x2a681a;};import{View as _0x2e186a}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2e186a{constructor(_0x146c13){super(_0x146c13);const _0x34ec25=this[_0x2a68('0x7')];this[_0x2a68('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2a68('0x6')]({'tag':_0x2a68('0x9'),'attributes':{'class':['ck',_0x2a68('0xc'),_0x34ec25['if'](_0x2a68('0xa'),_0x2a68('0x5'),_0x2d4b46=>!_0x2d4b46),_0x34ec25['if'](_0x2a68('0x3'),_0x2a68('0x1'))],'role':_0x2a68('0x2'),'aria-pressed':_0x34ec25['to']('_isCollapsed',_0x20176c=>_0x20176c?_0x2a68('0x4'):_0x2a68('0x0'))},'children':[{'tag':_0x2a68('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x34ec25['to']('click')}});}[_0x2a68('0x8')](){this['_isCollapsed']=!this[_0x2a68('0x3')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54b6=['ck-revision-history-sidebar__revision__date','setTemplate','createdAt','ck-revision-history-sidebar__revision','span','fire','bind','div','isSelected','_createdAtFormatted','select','creator','deselect','ck-revision-history-sidebar__revision-authors'];(function(_0x304ac0,_0x54b6c4){const _0x1b1b6e=function(_0x1dab8e){while(--_0x1dab8e){_0x304ac0['push'](_0x304ac0['shift']());}};_0x1b1b6e(++_0x54b6c4);}(_0x54b6,0x12f));const _0x1b1b=function(_0x304ac0,_0x54b6c4){_0x304ac0=_0x304ac0-0x0;let _0x1b1b6e=_0x54b6[_0x304ac0];return _0x1b1b6e;};import{View as _0x39182e}from'ckeditor5/src/ui';import _0x2d1896 from'./revisionauthorview';import{dateToPrettyFormat as _0x19b9d6}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x39182e{constructor(_0x45c4bc,_0xd0d25e,_0x5e27e9){super(_0x45c4bc);const _0x3f17f6=this['bindTemplate'];this['id']=_0xd0d25e['id'],this[_0x1b1b('0xb')]('createdAt')['to'](_0xd0d25e),this['set'](_0x1b1b('0xd'),!0x1),this[_0x1b1b('0xb')](_0x1b1b('0x0'))['to'](this,_0x1b1b('0x7'),_0x46117c=>_0x46117c?_0x19b9d6(_0x45c4bc['uiLanguage'],_0x46117c):void 0x0),this['_parentRevisionId']=_0x5e27e9,this[_0x1b1b('0x6')]({'tag':_0x1b1b('0xc'),'attributes':{'class':['ck','ck-reset',_0x1b1b('0x8'),'ck-revision-history-sidebar__subrevision',_0x3f17f6['if'](_0x1b1b('0xd'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1b1b('0x9'),'attributes':{'class':['ck',_0x1b1b('0x5')]},'children':[{'text':_0x3f17f6['to'](_0x1b1b('0x0'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1b1b('0x4')]},'children':[new _0x2d1896(_0x45c4bc,_0xd0d25e[_0x1b1b('0x2')],!0x0)]}],'on':{'click':_0x3f17f6['to'](this[_0x1b1b('0x1')][_0x1b1b('0xb')](this))}});}[_0x1b1b('0x1')](){this[_0x1b1b('0xd')]=!0x0,this[_0x1b1b('0xa')]('select',{'parentId':this['_parentRevisionId']});}[_0x1b1b('0x3')](){this[_0x1b1b('0xd')]=!0x1;}}
23
+ const _0x2f88=['isSelected','set','fire','bindTemplate','setTemplate','span','deselect','creator','ck-revision-history-sidebar__revision-authors','bind','_createdAtFormatted','ck-reset','select','uiLanguage','createdAt','ck-revision-history-sidebar__revision_selected'];(function(_0x18e9f5,_0x2f8891){const _0x5d8cfe=function(_0x2731f8){while(--_0x2731f8){_0x18e9f5['push'](_0x18e9f5['shift']());}};_0x5d8cfe(++_0x2f8891);}(_0x2f88,0xcc));const _0x5d8c=function(_0x18e9f5,_0x2f8891){_0x18e9f5=_0x18e9f5-0x0;let _0x5d8cfe=_0x2f88[_0x18e9f5];return _0x5d8cfe;};import{View as _0x1567a9}from'ckeditor5/src/ui';import _0x5ec470 from'./revisionauthorview';import{dateToPrettyFormat as _0x4797ad}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1567a9{constructor(_0x246b33,_0x3798b4,_0x485af6){super(_0x246b33);const _0x1d94bb=this[_0x5d8c('0x7')];this['id']=_0x3798b4['id'],this['bind'](_0x5d8c('0x2'))['to'](_0x3798b4),this[_0x5d8c('0x5')](_0x5d8c('0x4'),!0x1),this[_0x5d8c('0xd')](_0x5d8c('0xe'))['to'](this,'createdAt',_0x4ece24=>_0x4ece24?_0x4797ad(_0x246b33[_0x5d8c('0x1')],_0x4ece24):void 0x0),this['_parentRevisionId']=_0x485af6,this[_0x5d8c('0x8')]({'tag':'div','attributes':{'class':['ck',_0x5d8c('0xf'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x1d94bb['if'](_0x5d8c('0x4'),_0x5d8c('0x3'))]},'children':[{'tag':_0x5d8c('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1d94bb['to'](_0x5d8c('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5d8c('0xc')]},'children':[new _0x5ec470(_0x246b33,_0x3798b4[_0x5d8c('0xb')],!0x0)]}],'on':{'click':_0x1d94bb['to'](this['select']['bind'](this))}});}[_0x5d8c('0x0')](){this[_0x5d8c('0x4')]=!0x0,this[_0x5d8c('0x6')](_0x5d8c('0x0'),{'parentId':this['_parentRevisionId']});}[_0x5d8c('0xa')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x56fb=['toLocaleTimeString','toLocaleDateString','numeric'];(function(_0x310c87,_0x56fb3c){var _0x4ef7c5=function(_0x26312d){while(--_0x26312d){_0x310c87['push'](_0x310c87['shift']());}};_0x4ef7c5(++_0x56fb3c);}(_0x56fb,0x70));var _0x4ef7=function(_0x310c87,_0x56fb3c){_0x310c87=_0x310c87-0x0;var _0x4ef7c5=_0x56fb[_0x310c87];return _0x4ef7c5;};export function dateToPrettyFormat(_0x584580,_0x5f8591){return _0x5f8591[_0x4ef7('0x0')](_0x584580,{'month':'long','day':_0x4ef7('0x1')})+',\x20'+_0x5f8591[_0x4ef7('0x2')](_0x584580,{'hour':_0x4ef7('0x1'),'minute':'numeric'});}
23
+ var _0x1127=['toLocaleTimeString','toLocaleDateString','numeric','long'];(function(_0x442528,_0x11274e){var _0x58043f=function(_0x5c0e4d){while(--_0x5c0e4d){_0x442528['push'](_0x442528['shift']());}};_0x58043f(++_0x11274e);}(_0x1127,0x182));var _0x5804=function(_0x442528,_0x11274e){_0x442528=_0x442528-0x0;var _0x58043f=_0x1127[_0x442528];return _0x58043f;};export function dateToPrettyFormat(_0x3c76a6,_0x4ee02e){return _0x4ee02e[_0x5804('0x3')](_0x3c76a6,{'month':_0x5804('0x1'),'day':_0x5804('0x0')})+',\x20'+_0x4ee02e[_0x5804('0x2')](_0x3c76a6,{'hour':_0x5804('0x0'),'minute':_0x5804('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29f1=['setTemplate','revisionNameInputValue','220','_focusCycler','locale','set','focusTracker','ck-button-cancel','revisionName','ck-revision-history-save-revision-form','form','arrowdown','cancel','focus','Cancel','check','extendTemplate','revisionNameInputView','tab','_createRevisionNameInput','execute','render','add','value','shift\x20+\x20tab','forEach','Name\x20of\x20the\x20revision\x20(optional)','keystrokes','saveButtonView','arrowup','_focusables','arrowright','delegate','input','_createButton','trim','ck-button-save','fieldView','element','cancelButtonView'];(function(_0xda0881,_0x29f1da){const _0x7e7dd2=function(_0x24866f){while(--_0x24866f){_0xda0881['push'](_0xda0881['shift']());}};_0x7e7dd2(++_0x29f1da);}(_0x29f1,0x9d));const _0x7e7d=function(_0xda0881,_0x29f1da){_0xda0881=_0xda0881-0x0;let _0x7e7dd2=_0x29f1[_0xda0881];return _0x7e7dd2;};import{icons as _0x3a3cad}from'ckeditor5/src/core';import{ButtonView as _0x4ac3a7,FocusCycler as _0x12bc42,LabeledFieldView as _0x5713d9,View as _0x5b114f,ViewCollection as _0x4d7b81,createLabeledInputText as _0x8f4bea,injectCssTransitionDisabler as _0x3f0bcf,submitHandler as _0x4a12e3}from'ckeditor5/src/ui';import{FocusTracker as _0x516046,KeystrokeHandler as _0x14e1db}from'ckeditor5/src/utils';import{getTranslation as _0x26aa83}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5b114f{constructor(_0x1bb677){super(_0x1bb677),this['focusTracker']=new _0x516046(),this[_0x7e7d('0x1e')]=new _0x14e1db(),this[_0x7e7d('0x8')](_0x7e7d('0x4'),''),this[_0x7e7d('0x14')]=this[_0x7e7d('0x16')](),this[_0x7e7d('0x1f')]=this['_createButton'](_0x26aa83(_0x1bb677,'Save'),_0x3a3cad[_0x7e7d('0x12')],_0x7e7d('0x27')),this['saveButtonView']['type']='submit',this[_0x7e7d('0x2')]=this[_0x7e7d('0x25')](_0x26aa83(_0x1bb677,_0x7e7d('0x11')),_0x3a3cad['cancel'],_0x7e7d('0xa'),_0x7e7d('0xf')),this['_focusables']=new _0x4d7b81(),this[_0x7e7d('0x6')]=new _0x12bc42({'focusables':this[_0x7e7d('0x21')],'focusTracker':this[_0x7e7d('0x9')],'keystrokeHandler':this[_0x7e7d('0x1e')],'actions':{'focusPrevious':_0x7e7d('0x1b'),'focusNext':_0x7e7d('0x15')}}),this[_0x7e7d('0x3')]({'tag':_0x7e7d('0xd'),'attributes':{'class':['ck',_0x7e7d('0xc'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x7e7d('0x14')],this[_0x7e7d('0x1f')],this[_0x7e7d('0x2')]]}),_0x3f0bcf(this);}[_0x7e7d('0x18')](){super[_0x7e7d('0x18')](),_0x4a12e3({'view':this}),([this['revisionNameInputView'],this[_0x7e7d('0x1f')],this['cancelButtonView']][_0x7e7d('0x1c')](_0x1132ed=>{this['_focusables'][_0x7e7d('0x19')](_0x1132ed),this[_0x7e7d('0x9')]['add'](_0x1132ed[_0x7e7d('0x1')]);}),this[_0x7e7d('0x1e')]['listenTo'](this[_0x7e7d('0x1')]));const _0x5f1976=_0x13aae9=>_0x13aae9['stopPropagation']();this[_0x7e7d('0x1e')]['set'](_0x7e7d('0x22'),_0x5f1976),this[_0x7e7d('0x1e')][_0x7e7d('0x8')]('arrowleft',_0x5f1976),this[_0x7e7d('0x1e')][_0x7e7d('0x8')](_0x7e7d('0x20'),_0x5f1976),this[_0x7e7d('0x1e')][_0x7e7d('0x8')](_0x7e7d('0xe'),_0x5f1976);}[_0x7e7d('0x10')](){this[_0x7e7d('0x6')]['focusFirst']();}get[_0x7e7d('0xb')](){return this[_0x7e7d('0x14')][_0x7e7d('0x0')][_0x7e7d('0x1')][_0x7e7d('0x1a')][_0x7e7d('0x26')]();}set[_0x7e7d('0xb')](_0x1a2f42){this['revisionNameInputView'][_0x7e7d('0x0')][_0x7e7d('0x1')][_0x7e7d('0x1a')]=_0x1a2f42[_0x7e7d('0x26')]();}['reset'](){this[_0x7e7d('0x14')][_0x7e7d('0x0')][_0x7e7d('0x1')]['value']='';}[_0x7e7d('0x16')](){const _0x4a7ff4=new _0x5713d9(this[_0x7e7d('0x7')],_0x8f4bea),_0x162ced=_0x4a7ff4['fieldView'];return _0x162ced[_0x7e7d('0x13')]({'attributes':{'maxlength':_0x7e7d('0x5')}}),_0x4a7ff4['label']=_0x26aa83(this[_0x7e7d('0x7')],_0x7e7d('0x1d')),_0x162ced['on'](_0x7e7d('0x24'),()=>{this['revisionNameInputValue']=_0x162ced[_0x7e7d('0x1')][_0x7e7d('0x1a')][_0x7e7d('0x26')]();}),_0x4a7ff4;}[_0x7e7d('0x25')](_0xc500bb,_0x463114,_0x4a973f,_0x34e0a2){const _0x1f8125=new _0x4ac3a7(this[_0x7e7d('0x7')]);return _0x1f8125[_0x7e7d('0x8')]({'label':_0xc500bb,'icon':_0x463114,'tooltip':!0x0}),_0x1f8125[_0x7e7d('0x13')]({'attributes':{'class':_0x4a973f}}),_0x34e0a2&&_0x1f8125[_0x7e7d('0x23')](_0x7e7d('0x17'))['to'](this,_0x34e0a2),_0x1f8125;}}
23
+ const _0xdd1c=['trim','ck-responsive-form','_focusCycler','shift\x20+\x20tab','value','cancel','_focusables','revisionNameInputView','tab','cancelButtonView','keystrokes','_createButton','add','submit','delegate','revisionName','arrowright','fieldView','saveButtonView','focus','ck-button-save','label','ck-revision-history-save-revision-form','render','listenTo','arrowleft','focusFirst','locale','set','extendTemplate','form','focusTracker','revisionNameInputValue','reset','element','_createRevisionNameInput','Name\x20of\x20the\x20revision\x20(optional)'];(function(_0x4c6780,_0xdd1c1c){const _0xe1a8ff=function(_0x16e1a8){while(--_0x16e1a8){_0x4c6780['push'](_0x4c6780['shift']());}};_0xe1a8ff(++_0xdd1c1c);}(_0xdd1c,0x1a5));const _0xe1a8=function(_0x4c6780,_0xdd1c1c){_0x4c6780=_0x4c6780-0x0;let _0xe1a8ff=_0xdd1c[_0x4c6780];return _0xe1a8ff;};import{icons as _0x1226d}from'ckeditor5/src/core';import{ButtonView as _0x50c033,FocusCycler as _0x615273,LabeledFieldView as _0x418edc,View as _0x21390b,ViewCollection as _0x56b2de,createLabeledInputText as _0x5c74f8,injectCssTransitionDisabler as _0x39bfd5,submitHandler as _0x3b9fa1}from'ckeditor5/src/ui';import{FocusTracker as _0x572932,KeystrokeHandler as _0x2cd9e7}from'ckeditor5/src/utils';import{getTranslation as _0x71f245}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x21390b{constructor(_0x3256ce){super(_0x3256ce),this[_0xe1a8('0x11')]=new _0x572932(),this[_0xe1a8('0x21')]=new _0x2cd9e7(),this[_0xe1a8('0xe')](_0xe1a8('0x12'),''),this[_0xe1a8('0x1e')]=this['_createRevisionNameInput'](),this[_0xe1a8('0x4')]=this[_0xe1a8('0x22')](_0x71f245(_0x3256ce,'Save'),_0x1226d['check'],_0xe1a8('0x6')),this['saveButtonView']['type']=_0xe1a8('0x24'),this['cancelButtonView']=this['_createButton'](_0x71f245(_0x3256ce,'Cancel'),_0x1226d['cancel'],'ck-button-cancel',_0xe1a8('0x1c')),this[_0xe1a8('0x1d')]=new _0x56b2de(),this[_0xe1a8('0x19')]=new _0x615273({'focusables':this[_0xe1a8('0x1d')],'focusTracker':this[_0xe1a8('0x11')],'keystrokeHandler':this[_0xe1a8('0x21')],'actions':{'focusPrevious':_0xe1a8('0x1a'),'focusNext':_0xe1a8('0x1f')}}),this['setTemplate']({'tag':_0xe1a8('0x10'),'attributes':{'class':['ck',_0xe1a8('0x8'),_0xe1a8('0x18')],'tabindex':'-1'},'children':[this[_0xe1a8('0x1e')],this['saveButtonView'],this[_0xe1a8('0x20')]]}),_0x39bfd5(this);}['render'](){super[_0xe1a8('0x9')](),_0x3b9fa1({'view':this}),([this[_0xe1a8('0x1e')],this[_0xe1a8('0x4')],this['cancelButtonView']]['forEach'](_0x2553f4=>{this[_0xe1a8('0x1d')]['add'](_0x2553f4),this['focusTracker'][_0xe1a8('0x23')](_0x2553f4[_0xe1a8('0x14')]);}),this[_0xe1a8('0x21')][_0xe1a8('0xa')](this[_0xe1a8('0x14')]));const _0x1e97a1=_0x1bc9f4=>_0x1bc9f4['stopPropagation']();this[_0xe1a8('0x21')][_0xe1a8('0xe')](_0xe1a8('0x2'),_0x1e97a1),this[_0xe1a8('0x21')][_0xe1a8('0xe')](_0xe1a8('0xb'),_0x1e97a1),this[_0xe1a8('0x21')][_0xe1a8('0xe')]('arrowup',_0x1e97a1),this[_0xe1a8('0x21')][_0xe1a8('0xe')]('arrowdown',_0x1e97a1);}[_0xe1a8('0x5')](){this[_0xe1a8('0x19')][_0xe1a8('0xc')]();}get[_0xe1a8('0x1')](){return this[_0xe1a8('0x1e')][_0xe1a8('0x3')][_0xe1a8('0x14')][_0xe1a8('0x1b')][_0xe1a8('0x17')]();}set[_0xe1a8('0x1')](_0x19a573){this[_0xe1a8('0x1e')][_0xe1a8('0x3')][_0xe1a8('0x14')][_0xe1a8('0x1b')]=_0x19a573[_0xe1a8('0x17')]();}[_0xe1a8('0x13')](){this['revisionNameInputView'][_0xe1a8('0x3')][_0xe1a8('0x14')]['value']='';}[_0xe1a8('0x15')](){const _0x269da6=new _0x418edc(this['locale'],_0x5c74f8),_0x1da90a=_0x269da6[_0xe1a8('0x3')];return _0x1da90a[_0xe1a8('0xf')]({'attributes':{'maxlength':'220'}}),_0x269da6[_0xe1a8('0x7')]=_0x71f245(this[_0xe1a8('0xd')],_0xe1a8('0x16')),_0x1da90a['on']('input',()=>{this[_0xe1a8('0x12')]=_0x1da90a[_0xe1a8('0x14')][_0xe1a8('0x1b')][_0xe1a8('0x17')]();}),_0x269da6;}[_0xe1a8('0x22')](_0x3034df,_0x27d285,_0xc3d74a,_0x9266dd){const _0x1a0daf=new _0x50c033(this[_0xe1a8('0xd')]);return _0x1a0daf[_0xe1a8('0xe')]({'label':_0x3034df,'icon':_0x27d285,'tooltip':!0x0}),_0x1a0daf[_0xe1a8('0xf')]({'attributes':{'class':_0xc3d74a}}),_0x9266dd&&_0x1a0daf[_0xe1a8('0x0')]('execute')['to'](this,_0x9266dd),_0x1a0daf;}}