@ckeditor/ckeditor5-revision-history 37.0.0 → 37.1.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 (36) hide show
  1. package/build/revision-history.js +1 -1
  2. package/build/translations/sr.js +1 -1
  3. package/lang/translations/sr.po +1 -1
  4. package/package.json +6 -6
  5. package/src/changeitem.d.ts +5 -0
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.js +1 -1
  9. package/src/editor/revisionviewereditoruiview.js +1 -1
  10. package/src/revision.js +1 -1
  11. package/src/revisiondiff.d.ts +1 -0
  12. package/src/revisiondiff.js +1 -1
  13. package/src/revisionhistory.js +1 -1
  14. package/src/revisionsrepository.js +1 -1
  15. package/src/revisiontracker.js +1 -1
  16. package/src/revisionviewer.js +1 -1
  17. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  18. package/src/ui/revision/revisionauthorview.js +1 -1
  19. package/src/ui/revision/revisionnameview.js +1 -1
  20. package/src/ui/revision/revisionview.js +1 -1
  21. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  22. package/src/ui/revision/subrevisionview.js +1 -1
  23. package/src/ui/revision/utils.js +1 -1
  24. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  25. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  28. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  29. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  30. package/src/ui/revisionssidebar/utils.js +1 -1
  31. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  32. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  33. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  34. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  35. package/src/utils/common-translations.js +1 -1
  36. package/theme/revisionviewer.css +16 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f6b=['dataDowncast','_findChangeIdFromDomTarget','RevisionsRepository','isCollapsed','processor','createRangeIn','removeMarker:revision','_makeTape','filter','side','change:activeView','revisionHistoryLabel','_makeModelFromViewString','pop','commands','isReady','document','isIncorrect','change:activeChange','revision:','_getRevisionsRange','item','clearForceDisabled','_joinTapes','getClientRects','sort','numberOfChanges','highest','find','forceDisabled','_setData','nextSibling','downcastDispatcher','text','createPositionBefore','right','changes','bindElementToMarker','isAddSuggestion','vid_end','element:pre','conversion','getChild','mouseover','addClass','isLimit','unbindElementFromMarkerName','_getChangeFromId','activeView','isRemoved','getItems','_cleanUp','collaboration.channelId','elementToAttribute','parent','splice','addHighlight','change:isReady','span','requires','insertions','add','isBefore','view','getRevisionData','endIndex','init','getCustomProperty','data-change-id','keys','revision','level','setAttribute','<p></p>','change:isEnabled','target','listenTo','newRevisionId','forward','addMarker:revision-suggestion:insertion','then','_makeModelFromTape','RevisionViewer','revision-suggestion','ck-editor__editable__overlay','code','_markMismatchedRemovedTags','_setDistance','shift','restoreRevision','ck-suggestion-preview-marker','left','createPositionFromPath','vid','stop','addRevisionData','consumable','editor','isNavigationMode','_markMarkers','revision-viewer','getRootNames','backward','_getViewObj','domConverter','hasAttribute','nextPosition','softBreak','revision-comment:','getIndex','_removeRevisionMarkers','suggestion:','change:numberOfChanges','isAtEnd','_getViewForChange','insertion','deletions','userId','plugins','markerToData','upcast','ck-suggestion-marker--active','isAtStart','schema','done','resolve','get','_activeViewTarget','repository','attributes','mousedown','_getDiff','diff','set','addRevision','error','_appendChild','isRemoveSuggestion','isEnabled','config','high','markerNameToElements','createRange','ck-suggestion-marker','slice','concat','default','data','useFillerType','POSITIVE_INFINITY','readOnlyMode','isInline','revisionHistory','updatePosition','selection','stopListening','wrap','markerRange','isAfter','toModel','compare','isEqual','children','push','string','clear','markers','roots','startIndex','start','showStack','vid_start','change:isReadOnly','ck-suggestion-marker-split','element','suggestion','comment','execute','isObject','_setConversion','refresh','catch','viewItem','model','merge','index','map','_revisions','_update','_refreshStartEndIndex','elementEnd','markerToHighlight','getAttributes','_markSuggestions','adapter','markersStart','toViewElement','_changeIdToChange','oldRevisionId','startsWith','bottom','toViewRange','nodeAfter','getAttribute','editingDowncast','dataToMarker','_removeUnsupportedChanges','_balloon','getRoot','writer','flat','previousPosition','includes','deletion','revision-suggestion:','_step','isContent','from','mapper','pluginName','_initInteractions','pairId','activeChange','diffData','distance','abs','isSuggestion','top','end','removeClass','reconvertMarker','name','changeId','addMarker:revision-suggestion:deletion','_data','offsetSize','split','remove','length','has','currentChangeNumber','markerName','ck-suggestion-marker-','forEach','low','_cleanMarkers','addMarker:revision','findIndex','next','getWalker','_fixObsoleteTags','revision-end','type','getRevision','parse','-new','domEvent','toViewPosition','createRevision','loadRevisionData','_threeWayMerge','isBlock','_markInsertions','enableReadOnlyMode','unshift','createUIElement','editing','modelRange','checkAttribute','destroy','markersEnd','showPreviousChange','return','change','object','_processTape','marked','values','test','WidgetToolbarRepository','for','consume','insert','_changeView','isAdded','elementStart','hasClass','revision-start'];(function(_0x22952a,_0x3f6bbd){const _0x4c817c=function(_0x139b69){while(--_0x139b69){_0x22952a['push'](_0x22952a['shift']());}};_0x4c817c(++_0x3f6bbd);}(_0x3f6b,0xf5));const _0x4c81=function(_0x22952a,_0x3f6bbd){_0x22952a=_0x22952a-0x0;let _0x4c817c=_0x3f6b[_0x22952a];return _0x4c817c;};import{Plugin as _0x5e3787,Command as _0xf77865}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x19d354}from'ckeditor5/src/utils';import{ContextualBalloon as _0x360046}from'ckeditor5/src/ui';import{DocumentFragment as _0x21cf73,Element as _0x298d33,Text as _0x399eed,ViewDocumentFragment as _0x4fdcff,ViewText as _0x36b9f4,ViewElement as _0x14b28,ViewContainerElement as _0x25f205,ViewAttributeElement as _0x4c63f3,ViewEmptyElement as _0x185097,ViewRawElement as _0x55cd9b,ViewUIElement as _0x512e4c}from'ckeditor5/src/engine';import{Users as _0x4aa3f6,getMarkerDomElement as _0x2ec871}from'ckeditor5-collaboration/src/collaboration-core';import _0x50847a from'./ui/revisionviewer/changedetailsview';import _0x146b8d from'./revisionsrepository';import _0x259e28 from'./changeitem';import{default as _0x42dd6e}from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0x25f205,'a':_0x4c63f3,'e':_0x185097,'r':_0x55cd9b,'u':_0x512e4c};export default class y extends _0x5e3787{static get[_0x4c81('0x106')](){return _0x4c81('0x7d');}static get[_0x4c81('0x66')](){return[_0x4aa3f6,_0x360046,_0x146b8d];}constructor(_0x55ca21){super(_0x55ca21),this[_0x4c81('0xab')]=this['editor'][_0x4c81('0xa1')][_0x4c81('0xa9')](_0x4c81('0x2d')),this[_0x4c81('0xb0')](_0x4c81('0x109'),null),this[_0x4c81('0xb0')](_0x4c81('0x5b'),null),this[_0x4c81('0xaa')]=null,this['set'](_0x4c81('0xaf'),null),this[_0x4c81('0xb0')](_0x4c81('0x3a'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x4c81('0x75'),(_0x37112b,_0x5a3325,_0x3b67cd)=>{this[_0x4c81('0x109')]=null,this[_0x4c81('0x5b')]=null,this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x6a')]['change'](_0x5673fc=>{for(const _0x545c45 of this['editor']['editing'][_0x4c81('0x6a')]['document'][_0x4c81('0xd2')])_0x3b67cd?_0x5673fc[_0x4c81('0x110')](_0x4c81('0x7f'),_0x545c45):_0x5673fc[_0x4c81('0x57')](_0x4c81('0x7f'),_0x545c45);});}),this['bind'](_0x4c81('0x8d'))['to'](this,_0x4c81('0x109'),_0x16f77c=>null!==_0x16f77c),this['bind'](_0x4c81('0x11b'))['to'](this,_0x4c81('0x3a'),this,_0x4c81('0xaf'),this,'activeChange',(_0x246809,_0x45f82a,_0x41e8d9)=>_0x246809&&_0x41e8d9?_0x45f82a[_0x4c81('0x4f')][_0x4c81('0x98')](_0x41e8d9):0x0),this['bind'](_0x4c81('0x45'))['to'](this,_0x4c81('0x3a'),this,'diff',(_0xb8f9bc,_0x54e7d4)=>_0xb8f9bc?_0x54e7d4[_0x4c81('0x4f')][_0x4c81('0x119')]:0x0),this[_0x4c81('0x26')]=null,this[_0x4c81('0xf0')]=new Map(),this['adapter']=null,this[_0x4c81('0xfa')]=this[_0x4c81('0x8c')][_0x4c81('0xa1')][_0x4c81('0xa9')](_0x360046);}[_0x4c81('0x6d')](){const _0x3b1be8=this[_0x4c81('0x8c')],_0x4bb9d9=new ShowChangeCommand(_0x3b1be8,{'direction':_0x4c81('0x91')}),_0x2b5b51=new ShowChangeCommand(_0x3b1be8,{'direction':'forward'});(_0x3b1be8[_0x4c81('0x39')][_0x4c81('0x68')](_0x4c81('0x1a'),_0x4bb9d9),_0x3b1be8[_0x4c81('0x39')][_0x4c81('0x68')]('showNextChange',_0x2b5b51),_0x3b1be8[_0x4c81('0x39')][_0x4c81('0x68')](_0x4c81('0x84'),new RestoreRevisionCommand(_0x3b1be8)),this['on'](_0x4c81('0x9b'),()=>{_0x4bb9d9[_0x4c81('0xdf')](),_0x2b5b51[_0x4c81('0xdf')]();}),this['_setConversion'](),this[_0x4c81('0x107')](),_0x3b1be8[_0x4c81('0x12')](_0x4c81('0x8f')),_0x3b1be8[_0x4c81('0xa1')][_0x4c81('0x11a')](_0x4c81('0x22')))&&_0x3b1be8[_0x4c81('0xa1')][_0x4c81('0xa9')](_0x4c81('0x22'))[_0x4c81('0x48')](_0x4c81('0x8f'));}async[_0x4c81('0x6b')](_0x324a53){await this[_0x4c81('0xe')](_0x324a53);const _0x5449bb={};for(const _0x4374c9 in _0x324a53[_0x4c81('0x10a')]){const _0x1a2b03=this[_0x4c81('0x99')](JSON[_0x4c81('0x9')](_0x324a53['diffData'][_0x4374c9][_0x4c81('0x67')])),_0xfa38bb=this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x6a')][_0x4c81('0x3b')],_0x8522d9=new _0x4fdcff(_0xfa38bb,_0x1a2b03[_0x4c81('0xe5')](_0x571dba=>this[_0x4c81('0x92')](_0x571dba)));this[_0x4c81('0x8c')][_0x4c81('0xbe')][_0x4c81('0x2f')][_0x4c81('0xbf')](_0x4c81('0x1f')),_0x5449bb[_0x4374c9]=this[_0x4c81('0x8c')][_0x4c81('0xbe')]['processor']['toData'](_0x8522d9),this['editor'][_0x4c81('0xbe')][_0x4c81('0x2f')][_0x4c81('0xbf')](_0x4c81('0xbd'));}return _0x5449bb;}[_0x4c81('0x99')](_0x498775){return(_0x498775=_0x498775[_0x4c81('0x33')](_0x24e8e9=>!_0x24e8e9[_0x4c81('0x112')]||_0x4c81('0x2a')!==_0x24e8e9[_0x4c81('0x112')]&&_0x4c81('0x6')!==_0x24e8e9[_0x4c81('0x112')]))['forEach'](_0x580bb0=>{_0x4c81('0xcf')!=typeof _0x580bb0&&(_0x580bb0[_0x4c81('0xcd')]=this[_0x4c81('0x99')](_0x580bb0[_0x4c81('0xcd')]),_0x580bb0[_0x4c81('0xac')]=_0x580bb0[_0x4c81('0xac')][_0x4c81('0x33')](_0x3f0613=>!_0x3f0613[0x0][_0x4c81('0xf2')]('data-revision-')));}),_0x498775;}async[_0x4c81('0xcb')](_0x510cf4,_0x2a26b1,_0x29955f=!0x1){if(!this[_0x4c81('0xb5')])return;const _0x17a7ab=this[_0x4c81('0xaf')],_0x171faf=this[_0x4c81('0xab')],_0xa9c18f=_0x4c81('0xcf')==typeof _0x510cf4?_0x171faf[_0x4c81('0x8')](_0x510cf4):_0x510cf4,_0x4bc9fc=_0x4c81('0xcf')==typeof _0x2a26b1?_0x171faf['getRevision'](_0x2a26b1):_0x2a26b1,_0x13abd0=_0xa9c18f['id'],_0x30cde0=_0x4bc9fc?_0x4bc9fc['id']:null;if(!_0x29955f&&this[_0x4c81('0xaf')]&&this[_0x4c81('0xaf')][_0x4c81('0x78')]===_0x13abd0&&this['diff'][_0x4c81('0xf1')]===_0x30cde0)return Promise[_0x4c81('0xa8')]();this[_0x4c81('0x3a')]=!0x1,this[_0x4c81('0x5b')]=null,this[_0x4c81('0x109')]=null,this[_0x4c81('0xaf')]=new _0x42dd6e(_0x13abd0,_0x30cde0);const _0x529b27=this[_0x4c81('0x3f')](_0xa9c18f,_0x4bc9fc,!0x0)[_0x4c81('0xe5')](_0x4cc17c=>this['loadRevisionData'](_0x4cc17c));return _0x529b27[_0x4c81('0xce')](new Promise(_0x45cfe7=>{setTimeout(_0x45cfe7,0x14);})),Promise['all'](_0x529b27)[_0x4c81('0x7b')](()=>{if(!this[_0x4c81('0xb5')])return;this['_cleanUp']();const _0x12f0d0=this[_0x4c81('0xae')](_0x13abd0,_0x30cde0);this[_0x4c81('0xaf')][_0x4c81('0x49')](_0x12f0d0);for(const _0xfbba5e of this[_0x4c81('0xaf')]['changes'])this[_0x4c81('0xf0')][_0x4c81('0xb0')](_0xfbba5e['id'],_0xfbba5e);this[_0x4c81('0x8c')][_0x4c81('0xe2')]['enqueueChange']({'isUndoable':!0x1},_0xdf0343=>{for(const _0xb9ee9 of Object[_0x4c81('0x70')](_0x12f0d0[_0x4c81('0xe2')])){const _0x1fc638=this[_0x4c81('0x8c')]['model'][_0x4c81('0x3b')][_0x4c81('0xfb')](_0xb9ee9);_0xdf0343['remove'](_0xdf0343[_0x4c81('0x30')](_0x1fc638)),_0xdf0343[_0x4c81('0x25')](_0x12f0d0['model'][_0xb9ee9],_0x1fc638,0x0);}}),this[_0x4c81('0x3a')]=!0x0;})[_0x4c81('0xe0')](_0x569b20=>{console[_0x4c81('0xb2')](_0x569b20),this['_cleanUp'](),_0x17a7ab?this[_0x4c81('0xaf')]=_0x17a7ab:this['editor'][_0x4c81('0xbe')]['set'](_0x4c81('0x74')),this[_0x4c81('0x3a')]=!0x0;});}[_0x4c81('0x18')](){this[_0x4c81('0x5b')]=null,this[_0x4c81('0x26')]&&this['_changeView'][_0x4c81('0x18')]();}[_0x4c81('0x8a')](_0x513644,_0xbc3610){const _0x10b219=this[_0x4c81('0xab')][_0x4c81('0xd')](_0x513644);return _0x10b219['on'](_0x4c81('0xe7'),(_0x289188,_0x4a75a0,_0x155030)=>_0xbc3610(_0x4a75a0,_0x155030,_0x10b219)),this[_0x4c81('0xab')][_0x4c81('0xb1')](_0x10b219),_0x10b219;}[_0x4c81('0xe')](_0x342d54){if(!_0x342d54||_0x342d54['diffData'])return Promise['resolve']();{const _0xb70e8f=this[_0x4c81('0x8c')][_0x4c81('0xb6')]['get'](_0x4c81('0x5f'));return this[_0x4c81('0xed')]['getRevision']({'channelId':_0xb70e8f,'revisionId':_0x342d54['id']})[_0x4c81('0x7b')](_0x327ab4=>{_0x342d54[_0x4c81('0xe7')]({'diffData':_0x327ab4[_0x4c81('0x10a')]},!0x0);});}}[_0x4c81('0x5e')](){this[_0x4c81('0x109')]=null,this['_cleanMarkers'](),this[_0x4c81('0x26')]&&this['_changeView']['destroy'](),this[_0x4c81('0x26')]=null,this[_0x4c81('0xf0')][_0x4c81('0xd0')]();}['_makeTape'](_0x2b190d){const _0x743453=Array['from'](_0x2b190d[_0x4c81('0xd1')])[_0x4c81('0x33')](([_0x4c4810,_0x3ca474])=>_0x4c4810[_0x4c81('0xf2')](_0x4c81('0x3e'))&&!_0x3ca474[_0x4c81('0x2e')]),_0x3420dd=Array[_0x4c81('0x104')](this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0x30')](_0x2b190d)[_0x4c81('0x4')]({'singleCharacters':!0x0}));if(0x0!=_0x743453['length'])for(const _0x598197 of _0x3420dd){const [_0x4c68a9,_0x4c2f9a]=_0x743453[0x0],[,_0x427868,_0x6df612]=_0x4c68a9['split'](':');if(_0x4c2f9a['end'][_0x4c81('0xcc')](_0x598197[_0x4c81('0x95')])&&_0x743453[_0x4c81('0x83')](),(_0x598197[_0x4c81('0xfe')][_0x4c81('0xcc')](_0x4c2f9a[_0x4c81('0xd4')])||_0x598197[_0x4c81('0xfe')]['isAfter'](_0x4c2f9a[_0x4c81('0xd4')]))&&(_0x4c81('0x9e')==_0x427868?_0x598197[_0x4c81('0x27')]={'userId':_0x6df612}:_0x4c81('0x100')==_0x427868&&(_0x598197[_0x4c81('0x5c')]={'userId':_0x6df612})),0x0==_0x743453[_0x4c81('0x119')])break;}return _0x3420dd;}[_0x4c81('0xe8')](_0x4dd413){const _0x159812=new Map();for(let _0x1195ff=0x0;_0x1195ff<_0x4dd413[_0x4c81('0x119')];_0x1195ff++)_0x4c81('0x4c')===_0x4dd413[_0x1195ff][_0x4c81('0x7')]?(_0x4dd413[_0x1195ff][_0x4c81('0x40')][_0x4c81('0xd3')]=_0x1195ff,_0x4dd413[_0x1195ff][_0x4c81('0x40')][_0x4c81('0x6c')]=_0x1195ff):(_0x4c81('0x28')===_0x4dd413[_0x1195ff][_0x4c81('0x7')]?_0x4dd413[_0x1195ff]['item'][_0x4c81('0xd3')]=_0x1195ff:_0x4c81('0xe9')===_0x4dd413[_0x1195ff][_0x4c81('0x7')]&&(_0x4dd413[_0x1195ff][_0x4c81('0x40')][_0x4c81('0x6c')]=_0x1195ff),_0x159812[_0x4c81('0xb0')](_0x4dd413[_0x1195ff]['id'],_0x1195ff));for(const _0x568a30 of _0x159812[_0x4c81('0x20')]())_0x4c81('0x28')===_0x4dd413[_0x568a30][_0x4c81('0x7')]?_0x4dd413[_0x568a30][_0x4c81('0x40')][_0x4c81('0x6c')]=_0x159812[_0x4c81('0xa9')](_0x4dd413[_0x568a30]['pairId']):_0x4c81('0xe9')===_0x4dd413[_0x568a30][_0x4c81('0x7')]&&(_0x4dd413[_0x568a30]['item']['startIndex']=_0x159812['get'](_0x4dd413[_0x568a30]['pairId']));}['_processTape'](_0x16395d){for(let _0x1f12bc=0x0;_0x1f12bc<_0x16395d[_0x4c81('0x119')];_0x1f12bc++){if('elementStart'===_0x16395d[_0x1f12bc]['type'])_0x16395d[_0x1f12bc]['item'][_0x4c81('0xd3')]=_0x1f12bc;else{if(_0x4c81('0xe9')===_0x16395d[_0x1f12bc][_0x4c81('0x7')]){_0x16395d[_0x1f12bc]['item'][_0x4c81('0x6c')]=_0x1f12bc;const _0x2cc6b4=_0x16395d[_0x1f12bc][_0x4c81('0x40')][_0x4c81('0xd3')];_0x16395d[_0x2cc6b4]['pairId']=_0x16395d[_0x1f12bc]['id'],_0x16395d[_0x1f12bc]['pairId']=_0x16395d[_0x2cc6b4]['id'];}else _0x16395d[_0x1f12bc][_0x4c81('0x40')][_0x4c81('0xd3')]=_0x1f12bc,_0x16395d[_0x1f12bc]['item'][_0x4c81('0x6c')]=_0x1f12bc,_0x16395d[_0x1f12bc]['pairId']=null;}_0x16395d[_0x1f12bc]['markersStart']||(_0x16395d[_0x1f12bc]['markersStart']=[],_0x16395d[_0x1f12bc][_0x4c81('0x19')]=[]);}}[_0x4c81('0x11')](_0x4993a4,_0x3e5c4c){const _0x5237a6=_0x4993a4[_0x4c81('0x33')](_0x160b4d=>!_0x160b4d[_0x4c81('0x27')]);for(let _0x12755b=0x0;_0x12755b<_0x3e5c4c['length'];_0x12755b++)_0x3e5c4c[_0x12755b]['isAdded']&&(_0x5237a6[_0x12755b][_0x4c81('0x27')]=_0x3e5c4c[_0x12755b][_0x4c81('0x27')]);}['_makeModelFromViewString'](_0x77caea){const _0x313c4e=JSON[_0x4c81('0x9')](_0x77caea),_0x5ec6aa=this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x6a')][_0x4c81('0x3b')],_0x2b460f=new _0x4fdcff(_0x5ec6aa,_0x313c4e['map'](_0x47f00f=>this[_0x4c81('0x92')](_0x47f00f)));return this[_0x4c81('0x8c')]['data'][_0x4c81('0xca')](_0x2b460f);}[_0x4c81('0x92')](_0x1e64c9){const _0x1fa643=this[_0x4c81('0x8c')]['editing']['view'][_0x4c81('0x3b')];if(_0x4c81('0xcf')==typeof _0x1e64c9)return new _0x36b9f4(_0x1fa643,_0x1e64c9);{const _0x302762=_0x1e64c9['children'][_0x4c81('0xe5')](_0x441db9=>this[_0x4c81('0x92')](_0x441db9));return new(K[_0x1e64c9[(_0x4c81('0x7'))]]||_0x14b28)(_0x1fa643,_0x1e64c9[_0x4c81('0x112')],_0x1e64c9[_0x4c81('0xac')],_0x302762);}}['_getDiff'](_0x2cd289,_0x57a36a=null){const _0x2bdcac=this[_0x4c81('0xab')][_0x4c81('0x8')](_0x2cd289),_0x1ca120=_0x57a36a?this[_0x4c81('0xab')][_0x4c81('0x8')](_0x57a36a):null,_0x8d3a9=this[_0x4c81('0x3f')](_0x2bdcac,_0x1ca120),_0x3b0a20=_0x8d3a9[_0x8d3a9['length']-0x1],_0x20c75a=new Map();for(const _0x50dba1 of _0x8d3a9){_0x50dba1['model']={};for(const _0x142c2b of _0x50dba1['authors'])_0x20c75a['set'](_0x142c2b['id'],_0x142c2b);for(const _0x6f49b9 of this['editor']['model'][_0x4c81('0x3b')][_0x4c81('0x90')]())_0x50dba1['diffData'][_0x6f49b9]||(_0x50dba1['diffData'][_0x6f49b9]={'insertions':'[]','deletions':'[]'}),_0x50dba1[_0x4c81('0xe2')][_0x6f49b9]={'insertions':this[_0x4c81('0x37')](_0x50dba1['diffData'][_0x6f49b9]['insertions']),'deletions':this[_0x4c81('0x37')](_0x50dba1[_0x4c81('0x10a')][_0x6f49b9][_0x4c81('0x9f')])};}const _0x54ee4c={'model':{},'changes':[]};for(const _0x38b55e of this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0x3b')][_0x4c81('0x90')]()){let _0x2cb630=null,_0x1db790=0x0;const _0x57f2ff=new Map(Array[_0x4c81('0x104')](_0x2bdcac[_0x4c81('0xe2')][_0x38b55e][_0x4c81('0x67')][_0x4c81('0xd1')])[_0x4c81('0x33')](([_0x4f6a40])=>!_0x4f6a40[_0x4c81('0xf2')](_0x4c81('0x3e'))));let _0x4b8804=0x0;for(const _0x4ba4b6 of _0x8d3a9){const _0x451b0e=this[_0x4c81('0x32')](_0x4ba4b6[_0x4c81('0xe2')][_0x38b55e][_0x4c81('0x67')]);_0x4ba4b6==_0x2bdcac?(_0x2cb630=_0x451b0e,_0x1db790=_0x2cb630[_0x4c81('0x119')],_0x2cb630[_0x4c81('0x11e')](_0xc911ae=>{_0xc911ae['id']=_0x4b8804++;}),this['_processTape'](_0x2cb630)):this[_0x4c81('0x11')](_0x2cb630,_0x451b0e);const _0x4e8d6c=_0x2cb630[_0x4c81('0x33')](_0x5461c2=>!_0x5461c2[_0x4c81('0x27')])[_0x4c81('0xe5')](_0x49a90e=>_0x49a90e['id']);let _0x2b961e=0x0;const _0x3dd2bd=this[_0x4c81('0x32')](_0x4ba4b6[_0x4c81('0xe2')][_0x38b55e][_0x4c81('0x9f')]);_0x3dd2bd[_0x4c81('0x11e')](_0x21438e=>{_0x21438e[_0x4c81('0x5c')]?_0x21438e['id']=_0x1db790++:_0x21438e['id']=_0x4e8d6c[_0x2b961e++];}),this[_0x4c81('0x1e')](_0x3dd2bd),this[_0x4c81('0x82')](_0x2cb630,_0x4c81('0x27')),this[_0x4c81('0x82')](_0x3dd2bd,_0x4c81('0x5c')),_0x4ba4b6==_0x2bdcac&&this[_0x4c81('0x8e')](_0x2cb630,_0x57f2ff),_0x2cb630=this['_joinTapes'](_0x2cb630,_0x3dd2bd),this[_0x4c81('0xe8')](_0x2cb630),this[_0x4c81('0x82')](_0x2cb630,_0x4c81('0x5c'));}_0x2cb630=_0x2cb630[_0x4c81('0x33')](_0x3bda48=>!(_0x3bda48[_0x4c81('0x27')]&&_0x3bda48[_0x4c81('0x5c')]));const _0x2516e8=new Map(_0x3b0a20['model'][_0x38b55e][_0x4c81('0x9f')][_0x4c81('0xd1')]),_0x393638=new Set(_0x57f2ff['keys']());for(const _0x846b82 of _0x2516e8[_0x4c81('0x70')]())_0x393638['delete'](_0x846b82);this[_0x4c81('0xec')](_0x2cb630,_0x393638),this[_0x4c81('0x5')](_0x2cb630),_0x2cb630=this['_removeMissingPairs'](_0x2cb630),_0x2cb630=this[_0x4c81('0x81')](_0x2cb630),_0x2cb630=this[_0x4c81('0xf9')](_0x2cb630);const {root:_0x8bf98d,changes:_0x4a6ad1}=this[_0x4c81('0x7c')](_0x2cb630,_0x20c75a);_0x54ee4c['model'][_0x38b55e]=_0x8bf98d,_0x54ee4c[_0x4c81('0x4f')]=_0x54ee4c[_0x4c81('0x4f')]['concat'](_0x4a6ad1);}return _0x54ee4c;}[_0x4c81('0x8e')](_0x44775b,_0x51f73a){for(let _0x467433=0x0;_0x467433<_0x44775b[_0x4c81('0x119')];_0x467433++)for(const [_0x176eca,_0x15083f]of _0x51f73a)_0x15083f[_0x4c81('0xd4')][_0x4c81('0xcc')](_0x44775b[_0x467433][_0x4c81('0xfe')])&&_0x44775b[_0x467433][_0x4c81('0xee')][_0x4c81('0xce')](_0x176eca),_0x15083f[_0x4c81('0x10f')][_0x4c81('0xcc')](_0x44775b[_0x467433]['nextPosition'])&&_0x44775b[_0x467433][_0x4c81('0x19')][_0x4c81('0xce')](_0x176eca);}[_0x4c81('0x42')](_0x6d33d8,_0x5800e0){let _0x43d2fd=[],_0x49141c=0x0,_0x34086=0x0;for(;_0x49141c<_0x6d33d8[_0x4c81('0x119')]||_0x34086<_0x5800e0[_0x4c81('0x119')];){const _0x4cbd18=_0x6d33d8[_0x49141c]||{},_0xfa277c=_0x5800e0[_0x34086]||{};if(_0x4cbd18['id']==_0xfa277c['id'])_0x49141c++,_0x34086++,_0x43d2fd[_0x4c81('0xce')](_0x4cbd18);else{if(_0xfa277c[_0x4c81('0x5c')]&&_0x4cbd18[_0x4c81('0x27')]){const {commonTape:_0x1f5cc5,iEnd:_0x495f9e,jEnd:_0x1b1f01}=this[_0x4c81('0xf')](_0x6d33d8,_0x49141c,_0x5800e0,_0x34086);_0x43d2fd=_0x43d2fd['concat'](_0x1f5cc5),_0x49141c=_0x495f9e,_0x34086=_0x1b1f01;}else _0xfa277c[_0x4c81('0x5c')]?(_0x34086++,_0x43d2fd[_0x4c81('0xce')](_0xfa277c)):(_0x49141c++,_0x43d2fd[_0x4c81('0xce')](_0x4cbd18));}}return _0x43d2fd;}[_0x4c81('0xec')](_0x256b09,_0x4f6884){const _0x493d33=[];for(let _0x69c3d5=0x0;_0x69c3d5<_0x256b09[_0x4c81('0x119')];_0x69c3d5++){for(let _0x586e4e=0x0;_0x586e4e<_0x256b09[_0x69c3d5]['markersStart'][_0x4c81('0x119')];_0x586e4e++){const _0x3943ee=_0x256b09[_0x69c3d5][_0x4c81('0xee')][_0x586e4e];if(!_0x4f6884['has'](_0x3943ee))continue;const {group:_0x338343,type:_0x3f4b06,authorId:_0x27fa85}=_0x3bea12(_0x3943ee);'revision-suggestion'!=_0x338343||_0x4c81('0x9e')!=_0x3f4b06&&_0x4c81('0x100')!=_0x3f4b06||(_0x493d33[_0x4c81('0x13')]({'type':_0x3f4b06,'name':_0x3943ee,'userId':_0x27fa85}),_0x256b09[_0x69c3d5][_0x4c81('0xee')][_0x4c81('0x62')](_0x586e4e,0x1),_0x586e4e--);}_0x19ca7f(_0x256b09[_0x69c3d5]);for(let _0x27d97a=0x0;_0x27d97a<_0x256b09[_0x69c3d5][_0x4c81('0x19')]['length'];_0x27d97a++){const _0xf66e55=_0x256b09[_0x69c3d5][_0x4c81('0x19')][_0x27d97a];if(!_0x4f6884[_0x4c81('0x11a')](_0xf66e55))continue;const {group:_0x1e9462,type:_0x1b5cfe}=_0x3bea12(_0xf66e55);if(_0x4c81('0x7e')!=_0x1e9462||_0x4c81('0x9e')!=_0x1b5cfe&&_0x4c81('0x100')!=_0x1b5cfe)continue;_0x256b09[_0x69c3d5][_0x4c81('0x19')]['splice'](_0x27d97a,0x1),_0x27d97a--;const _0x39a330=_0x493d33[_0x4c81('0x2')](_0x54db5c=>_0x54db5c['name']==_0xf66e55);_0x39a330>-0x1&&_0x493d33[_0x4c81('0x62')](_0x39a330,0x1);}}function _0x3bea12(_0x234ed0){const _0x377776=_0x234ed0[_0x4c81('0x117')](':');return{'group':_0x377776[0x0],'type':_0x377776[0x1],'subType':_0x377776[_0x4c81('0x119')]>=0x5?_0x377776[0x2]:null,'id':_0x377776[_0x4c81('0x119')]<0x5?_0x377776[0x2]:_0x377776[0x3],'authorId':_0x377776['length']<0x5?_0x377776[0x3]:_0x377776[0x4],'markerCount':0x6==_0x377776[_0x4c81('0x119')]?_0x377776[0x5]:null};}function _0x19ca7f(_0x1a4d15){for(let _0x236bf8=0x0;_0x236bf8<_0x493d33[_0x4c81('0x119')];_0x236bf8++){if(_0x1a4d15[_0x4c81('0x27')]&&'insertion'==_0x493d33[_0x236bf8]['type'])return _0x1a4d15[_0x4c81('0x51')]=_0x493d33[_0x236bf8],void delete _0x1a4d15[_0x4c81('0x27')];if(!_0x1a4d15[_0x4c81('0x27')]&&!_0x1a4d15[_0x4c81('0x5c')]&&'deletion'==_0x493d33[_0x236bf8][_0x4c81('0x7')])return void(_0x1a4d15[_0x4c81('0xb4')]=_0x493d33[_0x236bf8]);}}}['_setDistance'](_0x379c00,_0x1e05eb){let _0x3ab3aa=0x0,_0x562be0=!0x1;const _0x5b042b=new Map();for(const _0x23421e of _0x379c00)_0x23421e[_0x1e05eb]?_0x562be0&&(_0x3ab3aa++,_0x562be0=!0x1):(_0x3ab3aa++,_0x562be0=!0x0),_0x5b042b[_0x4c81('0xb0')](_0x23421e['id'],_0x3ab3aa);for(let _0x163467=0x0;_0x163467<_0x379c00['length'];_0x163467++){if('isRemoved'==_0x1e05eb&&_0x379c00[_0x163467][_0x4c81('0x27')]||'isAdded'==_0x1e05eb&&_0x379c00[_0x163467]['isRemoved'])continue;if('text'==_0x379c00[_0x163467]['type']){_0x379c00[_0x163467]['distance']=0x0;continue;}const _0x15d2c7=_0x5b042b[_0x4c81('0xa9')](_0x379c00[_0x163467][_0x4c81('0x108')]),_0x4cd76d=_0x5b042b['get'](_0x379c00[_0x163467]['id']);_0x379c00[_0x163467][_0x4c81('0x10b')]=_0x15d2c7-_0x4cd76d;}}[_0x4c81('0x3f')](_0x3919b4,_0x97db4f,_0x5ee737=!0x1){const _0x35fbca=[];let _0x2abe49=this[_0x4c81('0xab')]['getIndex'](_0x3919b4),_0x398ba3=this['repository'][_0x4c81('0x98')](_0x97db4f);for(-0x1==_0x398ba3&&(_0x398ba3=this[_0x4c81('0xab')][_0x4c81('0xe6')]['length'],_0x5ee737=!0x1);_0x2abe49<_0x398ba3;)_0x35fbca[_0x4c81('0xce')](this[_0x4c81('0xab')]['getRevision'](_0x2abe49)),_0x2abe49++;return _0x5ee737&&_0x35fbca[_0x4c81('0xce')](this[_0x4c81('0xab')][_0x4c81('0x8')](_0x2abe49)),_0x35fbca;}['_threeWayMerge'](_0x527cde,_0x469eb4,_0x2cc356,_0x136380){const _0x13599b=this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0xa6')];let _0x1522ee=_0x469eb4;for(;_0x527cde[_0x1522ee]&&_0x527cde[_0x1522ee][_0x4c81('0x27')];)_0x1522ee++;let _0x5986a0=_0x136380;for(;_0x2cc356[_0x5986a0]&&_0x2cc356[_0x5986a0][_0x4c81('0x5c')];)_0x5986a0++;_0x3069f2(_0x527cde,_0x469eb4,_0x1522ee),_0x3069f2(_0x2cc356,_0x136380,_0x5986a0);const _0xf0d117=_0x2cc356[_0x4c81('0xbb')](_0x136380,_0x5986a0)[_0x4c81('0xbc')](_0x527cde[_0x4c81('0xbb')](_0x469eb4,_0x1522ee));return _0xf0d117[_0x4c81('0x44')]((_0x508958,_0x2b941b)=>_0x508958[_0x4c81('0x34')]!=_0x2b941b['side']?_0x508958['side']-_0x2b941b[_0x4c81('0x34')]:_0x508958[_0x4c81('0x72')]!=_0x2b941b[_0x4c81('0x72')]?_0x508958[_0x4c81('0x72')]-_0x2b941b[_0x4c81('0x72')]:_0x508958[_0x4c81('0x10b')]!=_0x2b941b[_0x4c81('0x10b')]?_0x2b941b[_0x4c81('0x10b')]-_0x508958[_0x4c81('0x10b')]:!!_0x508958['isAdded']!=!!_0x2b941b[_0x4c81('0x27')]?-0x1==_0x508958[_0x4c81('0x34')]||0x0==_0x508958[_0x4c81('0x34')]?_0x508958[_0x4c81('0x27')]?-0x1:0x1:_0x508958[_0x4c81('0x27')]?0x1:-0x1:_0x508958[_0x4c81('0xe4')]-_0x2b941b['index']),{'commonTape':_0xf0d117,'iEnd':_0x1522ee,'jEnd':_0x5986a0};function _0x3069f2(_0x2604aa,_0x25f514,_0x555f6f){let _0x619b31=-0x1,_0x21821b=Number[_0x4c81('0xc0')],_0x215c09=!0x0;for(let _0x481170=_0x25f514;_0x481170<_0x555f6f;_0x481170++)if(_0x13599b[_0x4c81('0xc2')](_0x2604aa[_0x481170][_0x4c81('0x40')])||(_0x215c09=!0x1),_0x2604aa[_0x481170][_0x4c81('0x40')][_0x4c81('0xd3')]<_0x25f514&&(_0x619b31=_0x481170),_0x2604aa[_0x481170][_0x4c81('0x40')]['endIndex']>=_0x555f6f){_0x21821b=_0x481170;break;}_0x215c09&&(_0x619b31=_0x555f6f-0x1);for(let _0x38780f=_0x25f514;_0x38780f<_0x555f6f;_0x38780f++)_0x2604aa[_0x38780f]['side']=_0x38780f<=_0x619b31?-0x1:_0x38780f<_0x21821b?0x0:0x1,_0x2604aa[_0x38780f]['index']=_0x38780f;let _0x49d902=0x0;for(let _0xf691ad=_0x25f514;_0xf691ad<=_0x619b31;_0xf691ad++)0x0==_0x2604aa[_0xf691ad][_0x4c81('0x10b')]?_0x2604aa[_0xf691ad][_0x4c81('0x72')]=_0x49d902:(_0x49d902++,_0x2604aa[_0xf691ad][_0x4c81('0x72')]=_0x49d902,_0x49d902++);for(let _0x5e0e6c=_0x25f514;_0x5e0e6c<_0x555f6f;_0x5e0e6c++)0x0==_0x2604aa[_0x5e0e6c][_0x4c81('0x34')]&&(_0x2604aa[_0x5e0e6c]['level']=_0x49d902);_0x49d902=0x0;for(let _0x37035c=_0x555f6f-0x1;_0x37035c>=_0x21821b;_0x37035c--)0x0==_0x2604aa[_0x37035c]['distance']?_0x2604aa[_0x37035c][_0x4c81('0x72')]=_0x49d902:(_0x49d902--,_0x2604aa[_0x37035c][_0x4c81('0x72')]=_0x49d902,_0x49d902--);}}[_0x4c81('0x5')](_0x4de36a){const _0x6dca3f=new Map(),_0x38031e=this['editor'][_0x4c81('0xe2')][_0x4c81('0xa6')];for(let _0x589ab0=0x1;_0x589ab0<_0x4de36a['length'];_0x589ab0++){let _0x1db6f0,_0x271b57,_0xcd2ce9;const _0x3b9289=_0x4de36a[_0x589ab0],_0x5d09e7=_0x4de36a[_0x589ab0-0x1];if(_0x4c81('0x4c')==_0x3b9289[_0x4c81('0x7')])continue;if(_0x3b9289[_0x4c81('0x7')]!=_0x5d09e7['type'])continue;if(!_0x38031e[_0x4c81('0x10')](_0x5d09e7[_0x4c81('0x40')])||_0x38031e[_0x4c81('0x58')](_0x5d09e7[_0x4c81('0x40')]))continue;if(!_0x38031e['isBlock'](_0x3b9289['item'])||_0x38031e[_0x4c81('0x58')](_0x3b9289[_0x4c81('0x40')]))continue;if((_0x4de36a[_0x589ab0][_0x4c81('0x27')]||_0x4de36a[_0x589ab0][_0x4c81('0x51')])&&_0x4de36a[_0x589ab0-0x1][_0x4c81('0x5c')])_0x1db6f0=_0x4de36a[_0x589ab0],_0x271b57=_0x4de36a[_0x589ab0-0x1],_0xcd2ce9=_0x589ab0-0x1;else{if(!_0x4de36a[_0x589ab0][_0x4c81('0x5c')]||!_0x4de36a[_0x589ab0-0x1][_0x4c81('0x27')]&&!_0x4de36a[_0x589ab0-0x1]['isAddSuggestion'])continue;_0x1db6f0=_0x4de36a[_0x589ab0-0x1],_0x271b57=_0x4de36a[_0x589ab0],_0xcd2ce9=_0x589ab0;}const _0x2eb99e=_0x1db6f0[_0x4c81('0x72')]==_0x271b57['level'],_0x6de302=Math['abs'](_0x1db6f0[_0x4c81('0x72')])<Math[_0x4c81('0x10c')](_0x271b57[_0x4c81('0x72')])&&0x0==_0x271b57[_0x4c81('0x10b')];(_0x2eb99e||_0x6de302)&&(_0x6dca3f['set'](_0x271b57['id'],_0x1db6f0['id']),_0x4de36a['splice'](_0xcd2ce9,0x1),_0x589ab0--,_0x1db6f0[_0x4c81('0x27')]=!0x1);}for(let _0x1601d7=0x0;_0x1601d7<_0x4de36a[_0x4c81('0x119')];_0x1601d7++)_0x6dca3f['has'](_0x4de36a[_0x1601d7]['pairId'])&&(_0x4de36a[_0x1601d7][_0x4c81('0x108')]=_0x6dca3f['get'](_0x4de36a[_0x1601d7][_0x4c81('0x108')]));}['_removeMissingPairs'](_0x4d3db2){const _0x11746a=new Set(_0x4d3db2['map'](_0x180cb9=>_0x180cb9['id']));for(let _0x1c8d1f=0x0;_0x1c8d1f<_0x4d3db2[_0x4c81('0x119')];_0x1c8d1f++)_0x11746a[_0x4c81('0x11a')](_0x4d3db2[_0x1c8d1f][_0x4c81('0x108')])||0x0==_0x4d3db2[_0x1c8d1f][_0x4c81('0x10b')]||(_0x4d3db2[_0x1c8d1f][_0x4c81('0x3c')]=!0x0);return _0x4d3db2[_0x4c81('0x33')](_0x245677=>!_0x245677[_0x4c81('0x3c')]);}['_markMismatchedRemovedTags'](_0x20aff2){const _0x43f039=new Set();for(let _0x52a6d1=0x0;_0x52a6d1<_0x20aff2[_0x4c81('0x119')];_0x52a6d1++){if(_0x43f039['has'](_0x20aff2[_0x52a6d1]['id'])&&_0x20aff2[_0x52a6d1][_0x4c81('0x5c')]&&(_0x20aff2[_0x52a6d1]['isIncorrect']=!0x0),_0x20aff2[_0x52a6d1][_0x4c81('0x3c')])continue;if(0x0==_0x20aff2[_0x52a6d1][_0x4c81('0x10b')])continue;if(_0x4c81('0x28')!=_0x20aff2[_0x52a6d1][_0x4c81('0x7')])continue;if(null==_0x20aff2[_0x52a6d1][_0x4c81('0x108')])continue;let _0x41c0ce=_0x52a6d1+0x1,_0x44d6dc=0x0;for(;_0x20aff2[_0x41c0ce]['id']!=_0x20aff2[_0x52a6d1]['pairId'];)'elementStart'==_0x20aff2[_0x41c0ce][_0x4c81('0x7')]?_0x44d6dc++:'elementEnd'==_0x20aff2[_0x41c0ce][_0x4c81('0x7')]&&_0x44d6dc--,_0x41c0ce++;if(0x0!=_0x44d6dc){if(_0x20aff2[_0x52a6d1][_0x4c81('0x5c')])_0x20aff2[_0x52a6d1][_0x4c81('0x3c')]=!0x0;else for(;_0x41c0ce!=_0x52a6d1;)_0x20aff2[_0x41c0ce][_0x4c81('0x5c')]&&0x0!=_0x20aff2[_0x41c0ce][_0x4c81('0x10b')]&&(_0x20aff2[_0x41c0ce]['isIncorrect']=!0x0,_0x43f039[_0x4c81('0x68')](_0x20aff2[_0x41c0ce]['pairId'])),_0x41c0ce--;}}return _0x20aff2[_0x4c81('0x33')](_0x3581f9=>!_0x3581f9[_0x4c81('0x3c')]);}[_0x4c81('0xf9')](_0x529bcb){const _0xd8303b=this[_0x4c81('0x8c')][_0x4c81('0xe2')]['schema'];for(let _0x218211=0x0;_0x218211<_0x529bcb[_0x4c81('0x119')];_0x218211++){if(!(_0x529bcb[_0x218211][_0x4c81('0x27')]||_0x529bcb[_0x218211][_0x4c81('0x51')]||_0x529bcb[_0x218211][_0x4c81('0x5c')]||_0x529bcb[_0x218211][_0x4c81('0xb4')]))continue;if(0x0==_0x529bcb[_0x218211]['distance'])continue;const _0x500867=_0x529bcb[_0x218211][_0x4c81('0x40')];_0xd8303b[_0x4c81('0x10')](_0x500867)||_0xd8303b['isLimit'](_0x500867)||(_0x529bcb[_0x218211][_0x4c81('0x27')]&&delete _0x529bcb[_0x218211][_0x4c81('0x27')],_0x529bcb[_0x218211]['isAddSuggestion']&&delete _0x529bcb[_0x218211][_0x4c81('0x51')],_0x529bcb[_0x218211]['isRemoveSuggestion']&&delete _0x529bcb[_0x218211]['isRemoveSuggestion'],_0x529bcb[_0x218211][_0x4c81('0x5c')]&&(_0x529bcb[_0x218211]['isIncorrect']=!0x0));}return _0x529bcb[_0x4c81('0x33')](_0x229e07=>!_0x229e07['isIncorrect']);}[_0x4c81('0x7c')](_0x1148a1,_0x466c5d){const _0x13c9e3=new _0x21cf73(),_0x1adbac=[],_0x2b7795=new Map(),_0xc381cf=this[_0x4c81('0x8c')][_0x4c81('0xe2')],_0xc1442=_0xc381cf[_0x4c81('0xa6')],_0x59ffa8=[_0x13c9e3],_0x315888={},_0x326ede={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5c3271=null;const _0x472316=[0x0];for(let _0x34790a=0x0;_0x34790a<_0x1148a1['length'];_0x34790a++){let _0x113f41,_0x53471e;if(_0x4c81('0x28')===_0x1148a1[_0x34790a][_0x4c81('0x7')]){_0x113f41=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316);const _0x3916c7=new _0x298d33(_0x1148a1[_0x34790a]['item'][_0x4c81('0x112')],_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0xeb')]());_0x59ffa8[0x0][_0x4c81('0xb3')](_0x3916c7),_0x472316[_0x4c81('0xce')](0x0),_0x59ffa8[_0x4c81('0x13')](_0x3916c7),_0x53471e=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316),_0x5c3271=null;}else{if(_0x4c81('0xe9')===_0x1148a1[_0x34790a][_0x4c81('0x7')])_0x59ffa8[_0x4c81('0x83')](),_0x113f41=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316),_0x472316[_0x4c81('0x38')](),_0x472316[_0x472316[_0x4c81('0x119')]-0x1]++,_0x53471e=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316),_0x5c3271=null;else{if(_0x113f41=_0xc381cf['createPositionFromPath'](_0x13c9e3,_0x472316),_0x5c3271&&_0x41a60c(_0x5c3271,_0x1148a1[_0x34790a][_0x4c81('0x40')]))_0x5c3271[_0x4c81('0x115')]+=_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0xbe')];else{const _0x465f6b=new _0x399eed(_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0xbe')],_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0xeb')]());_0x59ffa8[0x0][_0x4c81('0xb3')](_0x465f6b),_0x5c3271=_0x465f6b;}_0x472316[_0x472316[_0x4c81('0x119')]-0x1]+=_0x1148a1[_0x34790a][_0x4c81('0x40')][_0x4c81('0x116')],_0x53471e=_0xc381cf[_0x4c81('0x87')](_0x13c9e3,_0x472316);}}for(const _0x159d10 of _0x1148a1[_0x34790a][_0x4c81('0xee')])_0x2b7795['set'](_0x159d10,{'start':_0x113f41,'end':null});_0x305ff6(_0x4c81('0xb4'),_0x34790a,_0x113f41,_0x53471e),_0x305ff6('isAddSuggestion',_0x34790a,_0x113f41,_0x53471e),_0x305ff6(_0x4c81('0x5c'),_0x34790a,_0x113f41,_0x53471e),_0x305ff6(_0x4c81('0x27'),_0x34790a,_0x113f41,_0x53471e);for(const _0x42eda8 of _0x1148a1[_0x34790a][_0x4c81('0x19')]){_0x2b7795[_0x4c81('0xa9')](_0x42eda8)[_0x4c81('0x10f')]=_0x53471e;}}for(const [_0x5e4e79,_0x11cd59]of _0x2b7795){const _0x57ab3a=this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0xb9')](_0x11cd59[_0x4c81('0xd4')],_0x11cd59[_0x4c81('0x10f')]);_0x13c9e3[_0x4c81('0xd1')][_0x4c81('0xb0')](_0x5e4e79,_0x57ab3a);}return _0x1adbac['sort']((_0x4a600a,_0x44995e)=>{const _0x4d155f=_0x13c9e3[_0x4c81('0xd1')][_0x4c81('0xa9')](_0x4c81('0x3e')+_0x4a600a['id']),_0xcb379b=_0x13c9e3[_0x4c81('0xd1')]['get'](_0x4c81('0x3e')+_0x44995e['id']);return _0x4d155f['start']['isBefore'](_0xcb379b['start'])?-0x1:_0x4d155f[_0x4c81('0xd4')][_0x4c81('0xc9')](_0xcb379b[_0x4c81('0xd4')])?0x1:_0x4d155f['end'][_0x4c81('0x69')](_0xcb379b[_0x4c81('0x10f')])?-0x1:_0x4d155f[_0x4c81('0x10f')][_0x4c81('0xc9')](_0xcb379b[_0x4c81('0x10f')])?0x1:_0x4c81('0x68')===_0x4a600a['type']?-0x1:0x1;}),{'root':_0x13c9e3,'changes':_0x1adbac};function _0x305ff6(_0xecf6a,_0x57c7da,_0x128b36,_0x3dc0b8){const _0x444c74=!!_0x1148a1[_0x57c7da][_0xecf6a],_0x342a3f=_0x444c74?_0x1148a1[_0x57c7da][_0xecf6a]['userId']:null,_0x541e74=_0x57c7da===_0x1148a1[_0x4c81('0x119')]-0x1,_0x35f6be=_0x326ede[_0xecf6a][0x0],_0xe40381=_0xc1442[_0x4c81('0xdd')](_0x1148a1[_0x57c7da][_0x4c81('0x40')]);!_0x315888[_0xecf6a]&&_0x444c74?_0x315888[_0xecf6a]={'start':_0x128b36,'tapeItem':_0x1148a1[_0x57c7da],'userId':_0x342a3f,'type':_0xecf6a}:_0x315888[_0xecf6a]&&!_0x444c74?(_0x315888[_0xecf6a][_0x4c81('0x10f')]=_0x128b36,_0x22b1b0(_0x315888[_0xecf6a]),_0x315888[_0xecf6a]=null):_0x315888[_0xecf6a]&&_0x444c74&&_0x315888[_0xecf6a][_0x4c81('0xa0')]!==_0x342a3f&&(_0x315888[_0xecf6a][_0x4c81('0x10f')]=_0x128b36,_0x35f6be&&_0x35f6be[_0x4c81('0xa0')]===_0x315888[_0xecf6a][_0x4c81('0xa0')]||_0x22b1b0(_0x315888[_0xecf6a]),_0x315888[_0xecf6a]={'start':_0x128b36,'tapeItem':_0x1148a1[_0x57c7da],'userId':_0x342a3f,'type':_0xecf6a}),_0x315888[_0xecf6a]&&_0xe40381&&(_0x4c81('0x28')!==_0x1148a1[_0x57c7da][_0x4c81('0x7')]||_0x35f6be&&_0x35f6be[_0x4c81('0xa0')]===_0x342a3f||_0x326ede[_0xecf6a][_0x4c81('0x13')]({'userId':_0x342a3f,'object':_0x1148a1[_0x57c7da]['item'],'change':_0x315888[_0xecf6a]}),'elementEnd'===_0x1148a1[_0x57c7da][_0x4c81('0x7')]&&_0x35f6be&&_0x35f6be[_0x4c81('0x1d')]===_0x1148a1[_0x57c7da][_0x4c81('0x40')]&&(_0x326ede[_0xecf6a][_0x4c81('0x83')](),_0x315888[_0xecf6a]=_0x35f6be[_0x4c81('0x1c')])),_0x315888[_0xecf6a]&&_0x541e74&&(_0x315888[_0xecf6a][_0x4c81('0x10f')]=_0x3dc0b8,_0x22b1b0(_0x315888[_0xecf6a]),_0x315888[_0xecf6a]=null);}function _0x22b1b0({start:_0x5a7a91,end:_0x2d372f,tapeItem:_0x158fbe,userId:_0x55bd23,type:_0xe34c88}){const _0x372d20=_0x158fbe[_0x4c81('0x40')],_0x4af318=_0xc381cf['schema'][_0x4c81('0x10')](_0x372d20)&&!_0xc381cf[_0x4c81('0xa6')][_0x4c81('0x58')](_0x372d20),_0x58e323=_0x5a7a91[_0x4c81('0xf5')]==_0x2d372f[_0x4c81('0x61')]&&_0x2d372f[_0x4c81('0xa5')];if(_0x4af318&&_0x58e323)return;const _0x1369b1=_0xc381cf[_0x4c81('0xb9')](_0x5a7a91,_0x2d372f),_0x352399=_0x466c5d[_0x4c81('0xa9')](_0x55bd23),_0x45a1a3=new _0x259e28({'author':_0x352399,'type':_0x4c81('0x27')==_0xe34c88||_0x4c81('0x51')==_0xe34c88?'add':_0x4c81('0x118'),'data':{'isSuggestion':_0x4c81('0x51')==_0xe34c88||_0x4c81('0xb4')==_0xe34c88},'createdAt':new Date()});_0x1adbac[_0x4c81('0xce')](_0x45a1a3),_0x13c9e3[_0x4c81('0xd1')][_0x4c81('0xb0')]('revision:'+_0x45a1a3['id'],_0x1369b1);}function _0x41a60c(_0x16bebe,_0x37ab8a){const _0x4e627e=_0x16bebe['getAttributes'](),_0x20e545=_0x37ab8a[_0x4c81('0xeb')]();for(const _0x59fda7 of _0x4e627e){if(_0x59fda7[0x1]!==_0x37ab8a[_0x4c81('0xf6')](_0x59fda7[0x0]))return!0x1;_0x20e545['next']();}return _0x20e545[_0x4c81('0x3')]()[_0x4c81('0xa7')];}}[_0x4c81('0xde')](){this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))['dataToMarker']({'view':'revision'}),this[_0x4c81('0x8c')]['conversion']['for']('editingDowncast')[_0x4c81('0xea')]({'model':_0x4c81('0x71'),'view':_0xe6a352=>{const _0x173481=_0xe6a352[_0x4c81('0x11c')][_0x4c81('0x117')](':')[0x1],_0x24a41c=this['_getChangeFromId'](_0x173481);if(!_0x24a41c)return null;const _0x2307cb=_0x4c81('0x68')==_0x24a41c['type']?'insertion':_0x4c81('0x100'),_0x2fd456=[_0x4c81('0xba'),_0x4c81('0x11d')+_0x2307cb];return _0x24a41c[_0x4c81('0xbe')][_0x4c81('0x10d')]&&_0x2fd456[_0x4c81('0xce')](_0x4c81('0x11d')+_0x2307cb+_0x4c81('0xa')),this[_0x4c81('0x109')]==_0x24a41c&&_0x2fd456[_0x4c81('0xce')](_0x4c81('0xa4')),{'classes':_0x2fd456,'attributes':{'data-change-id':_0x173481}};}}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))[_0x4c81('0x68')](_0x1ede89=>{_0x1ede89['on'](_0x4c81('0x53'),(_0x15e466,_0x4e4e96,_0x294126)=>{const _0x5f38c3=_0x4e4e96['viewItem'][_0x4c81('0x55')](0x0);if(!_0x5f38c3||!_0x5f38c3['is'](_0x4c81('0xd9'),_0x4c81('0x80')))return;if(!_0x294126[_0x4c81('0x8b')][_0x4c81('0x24')](_0x5f38c3,{'attributes':['vid_start',_0x4c81('0x52')]}))return;const _0x3b2a6f=_0x4e4e96['modelRange'][_0x4c81('0xd4')][_0x4c81('0xf5')];_0x294126[_0x4c81('0xfc')]['setAttribute'](_0x4c81('0xd6'),_0x5f38c3[_0x4c81('0xf6')](_0x4c81('0xd6')),_0x3b2a6f),_0x294126[_0x4c81('0xfc')][_0x4c81('0x73')](_0x4c81('0x52'),_0x5f38c3[_0x4c81('0xf6')]('vid_end'),_0x3b2a6f);},{'priority':_0x4c81('0x11f')});}),this['editor'][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))[_0x4c81('0x68')](_0x39004a=>{_0x39004a['on'](_0x4c81('0xd9'),(_0x395e7d,_0x22b234,_0x35c7c3)=>{if(!_0x35c7c3[_0x4c81('0x8b')][_0x4c81('0x24')](_0x22b234[_0x4c81('0xe1')],{'attributes':[_0x4c81('0xd6'),_0x4c81('0x52')]}))return;if(_0x22b234[_0x4c81('0x16')][_0x4c81('0x2e')])return;const _0x34a8b8=_0x22b234[_0x4c81('0x16')][_0x4c81('0xd4')][_0x4c81('0xf5')];_0x34a8b8['hasAttribute'](_0x4c81('0xd6'))||_0x34a8b8[_0x4c81('0x94')](_0x4c81('0x88'))||(_0x35c7c3[_0x4c81('0xfc')]['setAttribute'](_0x4c81('0xd6'),_0x22b234[_0x4c81('0xe1')][_0x4c81('0xf6')]('vid_start'),_0x34a8b8),_0x35c7c3[_0x4c81('0xfc')]['setAttribute'](_0x4c81('0x52'),_0x22b234['viewItem'][_0x4c81('0xf6')]('vid_end'),_0x34a8b8));},{'priority':_0x4c81('0x11f')});}),this[_0x4c81('0x8c')][_0x4c81('0x54')]['for'](_0x4c81('0xa3'))[_0x4c81('0x60')]({'view':{'name':_0x4c81('0x65'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3a4d72=>_0x3a4d72[_0x4c81('0xf6')](_0x4c81('0x88'))}}),this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0xa6')]['on'](_0x4c81('0x17'),(_0x32981f,[,_0xd69d78])=>{[_0x4c81('0xd6'),_0x4c81('0x52'),'vid'][_0x4c81('0xff')](_0xd69d78)&&(_0x32981f[_0x4c81('0x1b')]=!0x0,_0x32981f[_0x4c81('0x89')]());},{'priority':_0x4c81('0x46')}),this['editor'][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0x2b'))['add'](_0x3a964a=>{_0x3a964a['on']('attribute:vid',(_0x47007a,_0x37d8cc,_0x30e00f)=>{if('\x20'!=_0x37d8cc['item'][_0x4c81('0xbe')]||_0x37d8cc[_0x4c81('0x40')]['parent']['maxOffset']>0x1)return;if(!_0x30e00f[_0x4c81('0x8b')]['consume'](_0x37d8cc[_0x4c81('0x40')],_0x47007a[_0x4c81('0x112')]))return;const _0x34090c=_0x30e00f[_0x4c81('0xfc')],_0x5be38e=_0x30e00f[_0x4c81('0x105')][_0x4c81('0xf4')](_0x37d8cc['range']);_0x34090c[_0x4c81('0xc7')](_0x5be38e,_0x34090c['createAttributeElement']('span'));});}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0x2b'))[_0x4c81('0xa2')]({'model':_0x4c81('0x71')}),this['editor'][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x1'),function(_0x3c9f72){const _0x389e93=_0x3c9f72[_0x4c81('0xa1')][_0x4c81('0xa9')](_0x4c81('0x7d'));return(_0x2a00c9,_0x518b0e,_0x400963)=>{const _0x594f0a=_0x518b0e[_0x4c81('0x11c')][_0x4c81('0x117')](':')[0x1],_0x19317a=_0x389e93[_0x4c81('0x5a')](_0x594f0a);if(!_0x19317a)return null;const _0x4d9bfb=_0x4c81('0x68')==_0x19317a[_0x4c81('0x7')]?'split':'merge';if(!_0x400963[_0x4c81('0x8b')][_0x4c81('0x21')](_0x518b0e[_0x4c81('0xc8')],_0x2a00c9[_0x4c81('0x112')]))return;const _0x348861=_0x518b0e['markerRange'][_0x4c81('0x4')](),_0x1533b9=_0x518b0e['markerRange'][_0x4c81('0xd4')],_0x1d2c64=_0x3c9f72[_0x4c81('0xe2')][_0x4c81('0xa6')];let _0x33f55c=null,_0x20f5bd=null,_0x35299b=!0x1,_0x3a01a2=!0x1;for(const _0x396d87 of _0x348861){const _0xc03f8d=_0x396d87[_0x4c81('0x40')];_0x35299b=_0x35299b||_0x1d2c64[_0x4c81('0x103')](_0xc03f8d);const _0x1070ee=_0x400963[_0x4c81('0x105')][_0x4c81('0xef')](_0xc03f8d);if(_0x1070ee&&_0x1070ee[_0x4c81('0x6e')](_0x4c81('0x63')))return;'elementEnd'==_0x396d87[_0x4c81('0x7')]&&(_0x1d2c64[_0x4c81('0x10')](_0xc03f8d)&&!_0x1d2c64[_0x4c81('0x58')](_0xc03f8d)&&(_0xc03f8d[_0x4c81('0x4a')]||_0x1533b9['isAtEnd']?_0x33f55c&&_0x33f55c[_0x4c81('0x61')]==_0xc03f8d||(_0x33f55c=_0xc03f8d,_0x40fea2(_0x396d87[_0x4c81('0xfe')]),_0x3a01a2=!0x0):_0x20f5bd=_0x20f5bd||_0x396d87[_0x4c81('0xfe')]));}function _0x40fea2(_0x4fdf16){const _0x2c9d7e=_0x400963['writer'][_0x4c81('0x14')](_0x4c81('0x65'),{'class':_0x4c81('0x11d')+_0x4d9bfb}),_0x1bdcf9=_0x400963[_0x4c81('0x105')]['toViewPosition'](_0x4fdf16);_0x19317a['data'][_0x4c81('0x10d')]&&_0x400963[_0x4c81('0xfc')][_0x4c81('0x57')](_0x4c81('0x11d')+_0x4d9bfb+'-new',_0x2c9d7e),_0x389e93['activeChange']==_0x19317a&&_0x400963[_0x4c81('0xfc')][_0x4c81('0x57')](_0x4c81('0xa4'),_0x2c9d7e),_0x400963[_0x4c81('0xfc')]['insert'](_0x1bdcf9,_0x2c9d7e),_0x400963[_0x4c81('0x105')][_0x4c81('0x50')](_0x2c9d7e,_0x518b0e[_0x4c81('0x11c')]);}_0x35299b||_0x3a01a2||!_0x20f5bd||_0x40fea2(_0x20f5bd);};}(this[_0x4c81('0x8c')]),{'priority':_0x4c81('0xb7')}),this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x31'),(_0x27990f,_0x15d469,_0x2a4ff9)=>{const _0x33974c=_0x2a4ff9[_0x4c81('0x105')][_0x4c81('0xb8')](_0x15d469[_0x4c81('0x11c')]);if(_0x33974c)for(const _0xca7e58 of _0x33974c)(_0xca7e58[_0x4c81('0x29')](_0x4c81('0xd8'))||_0xca7e58['hasClass']('ck-suggestion-marker-merge'))&&(_0x2a4ff9[_0x4c81('0x105')][_0x4c81('0x59')](_0xca7e58,_0x15d469[_0x4c81('0x11c')]),_0x2a4ff9[_0x4c81('0xfc')]['remove'](_0xca7e58));},{'priority':_0x4c81('0xb7')}),this['editor'][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x1'),(_0x2794d0,_0x12b224,_0x2a0f17)=>{const _0x29cc57=_0x12b224[_0x4c81('0x11c')][_0x4c81('0x117')](':')[0x1],_0x5a7ad0=this['_getChangeFromId'](_0x29cc57);if(!_0x5a7ad0)return null;const _0x5ad24e=_0x4c81('0x68')==_0x5a7ad0['type']?_0x4c81('0x117'):_0x4c81('0xe3');if(_0x2a0f17[_0x4c81('0x8b')][_0x4c81('0x21')](_0x12b224[_0x4c81('0xc8')],_0x2794d0[_0x4c81('0x112')]))for(const _0x586a51 of _0x12b224['markerRange'][_0x4c81('0x5d')]()){if(!_0x586a51['is'](_0x4c81('0xd9'),_0x4c81('0x96')))continue;const _0x22d7bc=_0x2a0f17[_0x4c81('0xfc')]['createUIElement'](_0x4c81('0x65'),{'class':_0x4c81('0x11d')+_0x5ad24e}),_0xa3a489=_0x2a0f17[_0x4c81('0x105')][_0x4c81('0xc')](this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0x4d')](_0x586a51));_0x5a7ad0['data'][_0x4c81('0x10d')]&&_0x2a0f17[_0x4c81('0xfc')][_0x4c81('0x57')](_0x4c81('0x11d')+_0x5ad24e+_0x4c81('0xa'),_0x22d7bc),this[_0x4c81('0x109')]==_0x5a7ad0&&_0x2a0f17[_0x4c81('0xfc')][_0x4c81('0x57')]('ck-suggestion-marker--active',_0x22d7bc),_0x2a0f17[_0x4c81('0xfc')][_0x4c81('0x25')](_0xa3a489,_0x22d7bc),_0x2a0f17[_0x4c81('0x105')][_0x4c81('0x50')](_0x22d7bc,_0x12b224[_0x4c81('0x11c')]);}},{'priority':_0x4c81('0xb7')}),this['editor'][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))['dataToMarker']({'view':_0x4c81('0xdb'),'model':_0x112349=>_0x4c81('0x97')+_0x112349,'converterPriority':_0x4c81('0x46')}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xa3'))[_0x4c81('0xf8')]({'view':_0x4c81('0xda'),'model':_0x421708=>_0x4c81('0x101')+_0x421708,'converterPriority':'highest'}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0x2b'))[_0x4c81('0xa2')]({'model':_0x4c81('0x7e'),'view':_0x266c07=>({'name':_0x4c81('0x9a')+_0x266c07,'group':_0x4c81('0x7e')}),'converterPriority':_0x4c81('0x46')}),this[_0x4c81('0x8c')][_0x4c81('0x54')][_0x4c81('0x23')](_0x4c81('0xf7'))[_0x4c81('0xea')]({'model':_0x4c81('0x7e'),'view':_0x387d39=>{const _0x2b6546=_0x387d39['markerName']['split'](':')[0x1];return _0x4c81('0x9e')!=_0x2b6546&&_0x4c81('0x100')!=_0x2b6546?null:{'classes':[_0x4c81('0x85'),'ck-suggestion-preview-marker-'+_0x2b6546]};}}),this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x114'),Q(this[_0x4c81('0x8c')],_0x4c81('0xe3')),{'priority':_0x4c81('0xb7')}),this[_0x4c81('0x8c')][_0x4c81('0x15')][_0x4c81('0x4b')]['on'](_0x4c81('0x7a'),Q(this[_0x4c81('0x8c')],_0x4c81('0x117')),{'priority':'high'}),this['editor'][_0x4c81('0x15')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x10e83b,_0x344291,_0x479f4f)=>{const _0x82c925=_0x479f4f[_0x4c81('0x105')][_0x4c81('0xb8')](_0x344291[_0x4c81('0x11c')]);if(_0x82c925)for(const _0x4c4141 of _0x82c925)_0x4c4141['is']('uiElement')&&(_0x479f4f['mapper']['unbindElementFromMarkerName'](_0x4c4141,_0x344291[_0x4c81('0x11c')]),_0x479f4f[_0x4c81('0xfc')]['remove'](_0x4c4141));},{'priority':'high'});}[_0x4c81('0x5a')](_0xc46e6a){return this['_changeIdToChange'][_0x4c81('0xa9')](_0xc46e6a);}[_0x4c81('0x9d')](_0x3e2eb6){return this['_changeView']&&this[_0x4c81('0x26')][_0x4c81('0x18')](),this['_changeView']=new _0x50847a(this['editor']['locale'],_0x3e2eb6),this['_changeView'];}[_0x4c81('0x107')](){this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0x3b')][_0x4c81('0xc5')]['observeMarkers']('revision'),this['on'](_0x4c81('0x35'),(_0x8b907,_0x1524da,_0x3f81cd,_0x36063d)=>{_0x36063d&&this[_0x4c81('0xfa')][_0x4c81('0x118')](_0x36063d),_0x3f81cd&&(this[_0x4c81('0xfa')][_0x4c81('0x68')]({'view':_0x3f81cd,'stackId':_0x4c81('0x36'),'position':{'target':()=>{const _0x37be2b=this[_0x4c81('0x8c')][_0x4c81('0x15')],_0x46e6ed=this[_0x4c81('0x8c')][_0x4c81('0xe2')][_0x4c81('0xd1')][_0x4c81('0xa9')](_0x4c81('0x3e')+_0x3f81cd[_0x4c81('0x113')]),_0x2164cd=Array[_0x4c81('0x104')](_0x37be2b[_0x4c81('0x105')][_0x4c81('0xb8')](_0x46e6ed['name']))[_0x4c81('0xe5')](_0x9646f7=>_0x37be2b[_0x4c81('0x6a')][_0x4c81('0x93')]['mapViewToDom'](_0x9646f7))['map'](_0x2d3ddb=>Array[_0x4c81('0x104')](_0x2d3ddb[_0x4c81('0x43')]()))[_0x4c81('0xfd')]();if(!this[_0x4c81('0xaa')])return _0x2164cd[0x0];return _0x2164cd[_0x4c81('0x47')](_0x5548c7=>_0x5548c7[_0x4c81('0x10e')]-0x3<=this[_0x4c81('0xaa')]['y']&&_0x5548c7[_0x4c81('0xf3')]+0x3>=this[_0x4c81('0xaa')]['y']&&_0x5548c7[_0x4c81('0x86')]-0x3<=this[_0x4c81('0xaa')]['x']&&_0x5548c7[_0x4c81('0x4e')]+0x3>=this[_0x4c81('0xaa')]['x'])||_0x2164cd[0x0];}}}),this[_0x4c81('0xfa')][_0x4c81('0xd5')](_0x4c81('0x36')));}),this['on'](_0x4c81('0x3d'),(_0x15fe87,_0x3daa18,_0xb3b139,_0x476339)=>{this[_0x4c81('0x5b')]=_0xb3b139?this['_getViewForChange'](_0xb3b139):null,this['editor']['model'][_0x4c81('0x1c')](()=>{const _0x373552=this[_0x4c81('0x8c')][_0x4c81('0x15')];_0x476339&&_0x373552[_0x4c81('0x111')](_0x4c81('0x3e')+_0x476339['id']),_0xb3b139&&_0x373552[_0x4c81('0x111')](_0x4c81('0x3e')+_0xb3b139['id']);});}),this[_0x4c81('0x77')](this['editor'][_0x4c81('0x15')][_0x4c81('0x6a')]['document'],_0x4c81('0x56'),(_0x26b2d1,_0x16117f)=>{if(this[_0x4c81('0x109')])return;const _0x2ccb1c=this[_0x4c81('0x2c')](_0x16117f[_0x4c81('0x76')]),_0x23f83e=this[_0x4c81('0xf0')][_0x4c81('0xa9')](_0x2ccb1c);_0x23f83e?(this[_0x4c81('0xaa')]={'x':_0x16117f['domEvent']['x'],'y':_0x16117f[_0x4c81('0xb')]['y']},this[_0x4c81('0x5b')]=this[_0x4c81('0x9d')](_0x23f83e)):(this['_activeViewTarget']=null,this[_0x4c81('0x5b')]=null);}),this[_0x4c81('0x77')](this[_0x4c81('0x8c')]['editing']['view'][_0x4c81('0x3b')],_0x4c81('0xad'),(_0x5c1848,_0x220071)=>{const _0x10638d=this[_0x4c81('0x2c')](_0x220071[_0x4c81('0x76')]),_0x1e9111=this[_0x4c81('0xf0')][_0x4c81('0xa9')](_0x10638d);_0x1e9111?(this[_0x4c81('0xaa')]={'x':_0x220071['domEvent']['x'],'y':_0x220071[_0x4c81('0xb')]['y']},_0x1e9111===this['activeChange']?this[_0x4c81('0xfa')][_0x4c81('0xc4')]():this[_0x4c81('0x109')]=_0x1e9111):(this[_0x4c81('0xaa')]=null,this[_0x4c81('0x109')]=null);});}[_0x4c81('0x2c')](_0x2aae99){do{const _0x44bde2=_0x2aae99[_0x4c81('0xf6')](_0x4c81('0x6f'));if(_0x44bde2)return _0x44bde2;_0x2aae99=_0x2aae99[_0x4c81('0x61')];}while(_0x2aae99);return null;}[_0x4c81('0x0')](){this['editor'][_0x4c81('0xe2')]['change'](_0x358f76=>{for(const _0x373be3 of this['editor'][_0x4c81('0xe2')][_0x4c81('0xd1')])_0x358f76['removeMarker'](_0x373be3);});}}function Q(_0x32caec,_0x33e708){return(_0x20380d,_0x3ffff9,_0xc00c6f)=>{if(!_0xc00c6f[_0x4c81('0x8b')][_0x4c81('0x21')](_0x3ffff9[_0x4c81('0xc8')],_0x20380d[_0x4c81('0x112')]))return;const _0x3a4676=_0x3ffff9[_0x4c81('0xc8')][_0x4c81('0x4')](),_0x41602b=_0x3ffff9[_0x4c81('0xc8')][_0x4c81('0xd4')],_0x42fdc2=_0x32caec[_0x4c81('0xe2')][_0x4c81('0xa6')];let _0x15d82f=null,_0xb21faa=null,_0x26a4ca=!0x1,_0x829504=!0x1;for(const _0x176afe of _0x3a4676){const _0x59f886=_0x176afe['item'];_0x26a4ca=_0x26a4ca||_0x42fdc2[_0x4c81('0x103')](_0x59f886);const _0x2d8d99=_0xc00c6f[_0x4c81('0x105')][_0x4c81('0xef')](_0x59f886);if(_0x2d8d99&&_0x2d8d99[_0x4c81('0x6e')](_0x4c81('0x63')))return;'elementEnd'==_0x176afe[_0x4c81('0x7')]&&(_0x42fdc2['isBlock'](_0x59f886)&&!_0x42fdc2['isLimit'](_0x59f886)&&(_0x59f886['nextSibling']||_0x41602b[_0x4c81('0x9c')]?_0x15d82f&&_0x15d82f['parent']==_0x59f886||(_0x15d82f=_0x59f886,_0x4fcd54(_0x176afe[_0x4c81('0xfe')]),_0x829504=!0x0):_0xb21faa=_0xb21faa||_0x176afe[_0x4c81('0xfe')]));}function _0x4fcd54(_0x8b172f){const _0x5cfc57=_0xc00c6f['mapper']['toViewPosition'](_0x8b172f),_0x3dfed7=_0xc00c6f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x33e708});_0xc00c6f['writer'][_0x4c81('0x25')](_0x5cfc57,_0x3dfed7),_0xc00c6f[_0x4c81('0x105')][_0x4c81('0x50')](_0x3dfed7,_0x3ffff9[_0x4c81('0x11c')]);}_0x26a4ca||_0x829504||!_0xb21faa||_0x4fcd54(_0xb21faa);};}export class RestoreRevisionCommand extends _0xf77865{constructor(_0x4ee02e){super(_0x4ee02e);const _0x5b4c39=_0x4ee02e[_0x4c81('0xa1')][_0x4c81('0xa9')](y);this['stopListening'](_0x4ee02e,_0x4c81('0xd7')),this[_0x4c81('0x41')](_0x4c81('0xc1')),this[_0x4c81('0x77')](_0x5b4c39,'change:isReady',()=>this[_0x4c81('0xdf')]()),this[_0x4c81('0x77')](_0x5b4c39,_0x4c81('0x75'),()=>this[_0x4c81('0xdf')]());}[_0x4c81('0xdc')](){const _0x5921a9=this[_0x4c81('0x8c')],_0x5d5951=_0x5921a9['plugins'][_0x4c81('0xa9')](y),_0xff1e2d=_0x5d5951[_0x4c81('0x3a')]?_0x5d5951[_0x4c81('0xaf')][_0x4c81('0x78')]:null;_0x5921a9['config']['get'](_0x4c81('0xc3'))['restoreRevisionCallback'](_0xff1e2d);}[_0x4c81('0xdf')](){const {isReady:_0x167765,isEnabled:_0xe57347}=this[_0x4c81('0x8c')][_0x4c81('0xa1')][_0x4c81('0xa9')](y);this['isEnabled']=_0x167765&&_0xe57347;}}export class ShowChangeCommand extends _0xf77865{constructor(_0x205997,{direction:_0x45dcdf}){super(_0x205997);const _0x1fa000=_0x205997[_0x4c81('0xa1')]['get'](y);this[_0x4c81('0xc6')](_0x205997,_0x4c81('0xd7')),this[_0x4c81('0x41')]('readOnlyMode'),this[_0x4c81('0x102')]=_0x4c81('0x79')===_0x45dcdf?0x1:-0x1,this[_0x4c81('0x77')](_0x1fa000,_0x4c81('0x64'),()=>this['refresh']()),this['listenTo'](_0x1fa000,'change:isEnabled',()=>this['refresh']());}[_0x4c81('0xdc')](){const _0x3805bf=this[_0x4c81('0x8c')],_0x4e4b0b=_0x3805bf['plugins']['get'](y),{isNavigationMode:_0xfb0eb5,currentChangeNumber:_0x405afa}=_0x4e4b0b;_0x4e4b0b[_0x4c81('0x109')]=_0xfb0eb5?_0x4e4b0b['diff'][_0x4c81('0x4f')][_0x4c81('0xa9')](_0x405afa+this['_step']):_0x4e4b0b[_0x4c81('0xaf')]['changes']['first'];const _0x2fa7a3=_0x3805bf[_0x4c81('0xe2')]['markers'][_0x4c81('0xa9')](_0x4c81('0x3e')+_0x4e4b0b['activeChange']['id']),_0x347cab=_0x2ec871(_0x3805bf[_0x4c81('0x15')],_0x2fa7a3);_0x19d354({'target':_0x347cab,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x35200e,currentChangeNumber:_0x4db4e3,numberOfChanges:_0x596c35,isReady:_0x5980f2,isEnabled:_0x7a52e1}=this[_0x4c81('0x8c')][_0x4c81('0xa1')][_0x4c81('0xa9')](y);this['isEnabled']=!!(_0x7a52e1&&_0x5980f2&&_0x596c35)&&(!_0x35200e||(0x1===this['_step']?_0x4db4e3<_0x596c35-0x1:_0x4db4e3>0x0));}}
23
+ const _0x390c=['schema','merge','resolve','userId','restoreRevision','data','item','sort','execute','isAttached','isRemoved','pluginName','plugins','createUIElement','_refreshStartEndIndex','indexOf','writer','revision:','change','highest','currentChangeNumber','findIndex','split','processor','index','text','isAddSuggestion','addMarker:revision','commands','getWalker','collaboration.channelId','change:isReady','RevisionsRepository','_cleanMarkers','suggestion:','markerRange','refresh','showNextChange','ck-revision-history-root--active','set','elementToAttribute','target','addMarker:revision-suggestion:insertion','activeView','createAttributeElement','deletions','attributesBefore','_joinTapes','insertions','getItems','reconvertMarker','add','vid_start','listenTo','isContent','string','adapter','POSITIVE_INFINITY','bindElementToMarker','nodeAfter','isRemoveSuggestion','upcast','markerToData','_step','attributes','start','toViewRange','_changeIdToChange','_getViewObj','map','getAttribute','change:isEnabled','_getViewForChange','ck-suggestion-marker-','nextPosition','getRootNames','children','mapper','elementEnd','_cleanUp','enqueueChange','detachRoot','ck-suggestion-marker-merge','setAttribute','downcastDispatcher','pop','uiElement','isAtStart','markersEnd','_processTape','loadRevisionData','isAfter','diffData','addClass','removeMarker','updatePosition','for','createPositionBefore','revision','find','revisionHistoryLabel','pairId','vid','_getChangeFromId','rootName','locale','_removeRevisionMarkers','dataToMarker','getRoot','_initInteractions','_balloon','WidgetToolbarRepository','getClientRects','right','deletion','push','numberOfChanges','markerNameToElements','isEqual','ck-suggestion-marker--active','markersStart','_appendChild','get','data-change-id','getAttributes','getRevisionRootsAttributes','removeMarker:revision-suggestion','_markMismatchedRemovedTags','createPositionFromPath','hasAttribute','isAtEnd','observeMarkers','_findChangeIdFromDomTarget','top','_activeViewTarget','toModel','_threeWayMerge','remove','delete','createRange','createRevision','revision-suggestion','readOnlyMode','forceDisabled','markerToHighlight','getIndex','markerName','removeAttribute','addRevision','editing','isInline','ck-revision-history-root-','diff','_markMarkers','ck-suggestion-preview-marker','abs','useFillerType','hasClass','stopListening','selection','config','createRangeIn','isObject','has','catch','editor','offsetSize','restoreRevisionCallback','softBreak','change:activeChange','ck-suggestion-marker-split','marked','low','span','RevisionViewer','-new','insert','editingDowncast','isCollapsed','_update','elementStart','isReady','document','element','_changeView','parent','keys','distance','next','model','isAdded','isIncorrect','viewItem','change:isReadOnly','revisionHistoryAttachChange','changes','requires','clear','domConverter','_setDistance','isBlock','high','bind','isLimit','previousPosition','compare','test','attachChange','_getDiff','slice','isSuggestion','toViewPosition','dataDowncast','name','startIndex','_data','_fixObsoleteTags','_makeTape','data-revision-','endIndex','getCustomProperty','mapViewToDom','getRevision','checkAttribute','isBefore','_revisions','forward','getDomRoot','attributesAfter','mousedown','unshift','length','newRevisionId','_removeMissingPairs','changeId','end','activeChange','domEvent','getRevisionData','removeClass','includes','concat','level','_markSuggestions','_makeModelFromViewString','conversion','from','type','_markInsertions','filter','isEnabled','parse','repository','startsWith','vid_end','_getRevisionsRange','_sortAndFilterDiffChanges','consumable','revision-suggestion:','consume','view','mouseover','unbindElementFromMarkerName','then','splice','ck-editor__editable__overlay','forEach','toData','all','_makeModelFromTape','_removeUnsupportedChanges','side','clearForceDisabled','revision-end','revision-start','nextSibling','modelRange','error','wrap','init','comment','ck-suggestion-preview-marker-','isNavigationMode','maxOffset','_setConversion','getChild','addHighlight','isOnRoot','markers','shift','insertion','toViewElement','values'];(function(_0x170e5d,_0x390c42){const _0x327408=function(_0x75bc26){while(--_0x75bc26){_0x170e5d['push'](_0x170e5d['shift']());}};_0x327408(++_0x390c42);}(_0x390c,0xc4));const _0x3274=function(_0x170e5d,_0x390c42){_0x170e5d=_0x170e5d-0x0;let _0x327408=_0x390c[_0x170e5d];return _0x327408;};import{Plugin as _0x372754,Command as _0x417964}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1d4656}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4486c4}from'ckeditor5/src/ui';import{DocumentFragment as _0x4005fc,Element as _0x180c2e,Text as _0x3728ac,ViewDocumentFragment as _0x497830,ViewText as _0x26e468,ViewElement as _0x9acf,ViewContainerElement as _0x43f85c,ViewAttributeElement as _0x26e8b9,ViewEmptyElement as _0x582c72,ViewRawElement as _0x20dcd5,ViewUIElement as _0x39a910}from'ckeditor5/src/engine';import{Users as _0x3618c5,getMarkerDomElement as _0x917108}from'ckeditor5-collaboration/src/collaboration-core';import _0x178cd4 from'./ui/revisionviewer/changedetailsview';import _0xa29013 from'./revisionsrepository';import _0x2e882f from'./changeitem';import{default as _0xd276b1}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x967fb5}from'lodash-es';const X={'c':_0x43f85c,'a':_0x26e8b9,'e':_0x582c72,'r':_0x20dcd5,'u':_0x39a910};export default class w extends _0x372754{static get[_0x3274('0x6c')](){return _0x3274('0x10f');}static get[_0x3274('0x0')](){return[_0x3618c5,_0x4486c4,_0xa29013];}constructor(_0x3e04af){super(_0x3e04af),this['repository']=this[_0x3274('0x106')][_0x3274('0x6d')][_0x3274('0xdb')](_0x3274('0x81')),this[_0x3274('0x88')](_0x3274('0x28'),null),this[_0x3274('0x88')](_0x3274('0x8c'),null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this[_0x3274('0x88')](_0x3274('0x36'),!0x0),this['on'](_0x3274('0xa8'),(_0xf2c990,_0x58175f,_0x3160cc)=>{this[_0x3274('0x28')]=null,this['activeView']=null,this[_0x3274('0x106')][_0x3274('0xf6')]['view'][_0x3274('0x73')](_0x39da3c=>{for(const _0xe8404c of this[_0x3274('0x106')][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')]['roots'])_0x3160cc?_0x39da3c['removeClass'](_0x3274('0x45'),_0xe8404c):_0x39da3c[_0x3274('0xbe')](_0x3274('0x45'),_0xe8404c);});}),this[_0x3274('0x6')](_0x3274('0x56'))['to'](this,'activeChange',_0x331c61=>null!==_0x331c61),this[_0x3274('0x6')](_0x3274('0x75'))['to'](this,_0x3274('0x116'),this,_0x3274('0xf9'),this,_0x3274('0x28'),(_0x5749fb,_0x3342aa,_0x52b9de)=>_0x5749fb&&_0x52b9de?_0x3342aa['changes'][_0x3274('0xf2')](_0x52b9de):0x0),this[_0x3274('0x6')](_0x3274('0xd5'))['to'](this,_0x3274('0x116'),this,_0x3274('0xf9'),(_0x50495a,_0x1b5175)=>_0x50495a?_0x1b5175[_0x3274('0x124')][_0x3274('0x23')]:0x0),this[_0x3274('0x119')]=null,this[_0x3274('0xa4')]=new Map(),this[_0x3274('0x99')]=null,this[_0x3274('0xcf')]=this['editor'][_0x3274('0x6d')][_0x3274('0xdb')](_0x4486c4);}[_0x3274('0x53')](){const _0x773d7f=this['editor'],_0x3d2e09=new ShowChangeCommand(_0x773d7f,{'direction':'backward'}),_0x5b7caa=new ShowChangeCommand(_0x773d7f,{'direction':_0x3274('0x1e')});(_0x773d7f[_0x3274('0x7d')]['add']('showPreviousChange',_0x3d2e09),_0x773d7f[_0x3274('0x7d')][_0x3274('0x94')](_0x3274('0x86'),_0x5b7caa),_0x773d7f[_0x3274('0x7d')][_0x3274('0x94')](_0x3274('0x65'),new RestoreRevisionCommand(_0x773d7f)),this['on']('change:numberOfChanges',()=>{_0x3d2e09[_0x3274('0x85')](),_0x5b7caa[_0x3274('0x85')]();}),this[_0x3274('0x58')](),this[_0x3274('0xce')](),_0x773d7f['enableReadOnlyMode']('revision-viewer'),_0x773d7f[_0x3274('0x6d')][_0x3274('0x104')](_0x3274('0xd0')))&&_0x773d7f[_0x3274('0x6d')]['get'](_0x3274('0xd0'))[_0x3274('0xf0')]('revision-viewer');}async[_0x3274('0x2a')](_0x7cff6){await this['loadRevisionData'](_0x7cff6);const _0x1f4a3b={};for(const _0x30a413 in _0x7cff6[_0x3274('0xbd')]){if(_0x7cff6[_0x3274('0xbd')][_0x30a413]['attachChange']&&!_0x7cff6[_0x3274('0xbd')][_0x30a413][_0x3274('0xb')][_0x3274('0x6a')])continue;const _0xbb28ee=this[_0x3274('0xcb')](JSON['parse'](_0x7cff6[_0x3274('0xbd')][_0x30a413][_0x3274('0x91')])),_0x556a6c=this['editor'][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')],_0x2b618e=new _0x497830(_0x556a6c,_0xbb28ee[_0x3274('0xa6')](_0xe52dca=>this[_0x3274('0xa5')](_0xe52dca)));this[_0x3274('0x106')][_0x3274('0x66')][_0x3274('0x78')]['useFillerType'](_0x3274('0x10c')),_0x1f4a3b[_0x30a413]=this[_0x3274('0x106')][_0x3274('0x66')][_0x3274('0x78')][_0x3274('0x47')](_0x2b618e),this[_0x3274('0x106')][_0x3274('0x66')]['processor'][_0x3274('0xfd')]('default');}return _0x1f4a3b;}async[_0x3274('0xde')](_0x396be6){await this[_0x3274('0xbb')](_0x396be6);const _0x392622={};for(const _0xc52484 in _0x396be6[_0x3274('0xbd')])_0x396be6[_0x3274('0xbd')][_0xc52484][_0x3274('0xb')]&&!_0x396be6[_0x3274('0xbd')][_0xc52484]['attachChange'][_0x3274('0x6a')]||(_0x392622[_0xc52484]=_0x396be6[_0x3274('0xbd')][_0xc52484]['attributesAfter']);return _0x392622;}[_0x3274('0xcb')](_0xb38dad){return(_0xb38dad=_0xb38dad[_0x3274('0x35')](_0x2354b6=>!_0x2354b6[_0x3274('0x11')]||_0x3274('0x4e')!==_0x2354b6[_0x3274('0x11')]&&_0x3274('0x4d')!==_0x2354b6[_0x3274('0x11')]))[_0x3274('0x46')](_0x104b68=>{_0x3274('0x98')!=typeof _0x104b68&&(_0x104b68[_0x3274('0xad')]=this[_0x3274('0xcb')](_0x104b68[_0x3274('0xad')]),_0x104b68[_0x3274('0xa1')]=_0x104b68['attributes'][_0x3274('0x35')](_0x2921c8=>!_0x2921c8[0x0][_0x3274('0x39')](_0x3274('0x16'))));}),_0xb38dad;}async[_0x3274('0x9')](_0x3a5073,_0x5aafa8,_0x2cf810=!0x1){if(!this[_0x3274('0x36')])return;const _0x3dff57=this['diff'],_0x138f57=this[_0x3274('0x38')],_0x42d2e6='string'==typeof _0x3a5073?_0x138f57[_0x3274('0x1a')](_0x3a5073):_0x3a5073,_0x1b9c1e=_0x3274('0x98')==typeof _0x5aafa8?_0x138f57[_0x3274('0x1a')](_0x5aafa8):_0x5aafa8,_0x466c08=_0x42d2e6['id'],_0x2bd2f7=_0x1b9c1e?_0x1b9c1e['id']:null;if(!_0x2cf810&&this[_0x3274('0xf9')]&&this[_0x3274('0xf9')][_0x3274('0x24')]===_0x466c08&&this[_0x3274('0xf9')]['oldRevisionId']===_0x2bd2f7)return Promise[_0x3274('0x63')]();this['isReady']=!0x1,this['activeView']=null,this[_0x3274('0x28')]=null,this[_0x3274('0xf9')]=new _0xd276b1(_0x466c08,_0x2bd2f7);const _0x2410c0=this[_0x3274('0x3b')](_0x42d2e6,_0x1b9c1e,!0x0)[_0x3274('0xa6')](_0x4a9003=>this[_0x3274('0xbb')](_0x4a9003));return _0x2410c0[_0x3274('0xd4')](new Promise(_0x35eb3b=>{setTimeout(_0x35eb3b,0x14);})),Promise[_0x3274('0x48')](_0x2410c0)['then'](()=>{if(!this[_0x3274('0x36')])return;this['_cleanUp']();const _0x3da65f=this[_0x3274('0xc')](_0x466c08,_0x2bd2f7);for(const _0x2253ce of _0x3da65f['changes'])this[_0x3274('0xa4')][_0x3274('0x88')](_0x2253ce['id'],_0x2253ce);this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0xb1')]({'isUndoable':!0x1},_0x3b4870=>{for(const _0x1759be of this['editor'][_0x3274('0x11e')][_0x3274('0x117')][_0x3274('0xac')]())_0x3b4870['detachRoot'](_0x1759be);for(const _0x41a864 of Object[_0x3274('0x11b')](_0x3da65f[_0x3274('0x11e')])){const _0x291d6b=_0x3b4870['addRoot'](_0x41a864);for(const _0x128159 of Object[_0x3274('0x11b')](_0x3da65f['attributes'][_0x41a864]))_0x3b4870[_0x3274('0xb4')](_0x128159,_0x3da65f[_0x3274('0xa1')][_0x41a864][_0x128159],_0x291d6b);_0x3b4870[_0x3274('0x111')](_0x3da65f[_0x3274('0x11e')][_0x41a864],_0x291d6b,0x0);}}),this[_0x3274('0xf9')]['_setChanges'](this[_0x3274('0x3c')](_0x3da65f['changes'])),this['isReady']=!0x0;})[_0x3274('0x105')](_0x5ea9ab=>{console[_0x3274('0x51')](_0x5ea9ab),this[_0x3274('0xb0')](),_0x3dff57&&(this['diff']=_0x3dff57),this[_0x3274('0x116')]=!0x0;});}['addRevisionData'](_0x421c34,_0x10fa3e){const _0x2f607b=this[_0x3274('0x38')][_0x3274('0xed')](_0x421c34);return _0x2f607b['on'](_0x3274('0x114'),(_0x5d3956,_0x50a751,_0x415573)=>_0x10fa3e(_0x50a751,_0x415573,_0x2f607b)),this[_0x3274('0x38')][_0x3274('0xf5')](_0x2f607b),_0x2f607b;}['loadRevisionData'](_0x2c6e6f){if(!_0x2c6e6f||_0x2c6e6f[_0x3274('0xbd')])return Promise[_0x3274('0x63')]();{const _0x1ad786=this[_0x3274('0x106')][_0x3274('0x101')][_0x3274('0xdb')](_0x3274('0x7f'));return this[_0x3274('0x99')]['getRevision']({'channelId':_0x1ad786,'revisionId':_0x2c6e6f['id']})[_0x3274('0x43')](_0xd3fc9e=>{_0x2c6e6f[_0x3274('0x114')]({'diffData':_0xd3fc9e[_0x3274('0xbd')]},!0x0);});}}[_0x3274('0xb0')](){this[_0x3274('0x28')]=null,this[_0x3274('0x82')](),this['_changeView']&&this[_0x3274('0x119')]['destroy'](),this[_0x3274('0x119')]=null,this['_changeIdToChange'][_0x3274('0x1')](),this['editor']['model'][_0x3274('0xb1')]({'isUndoable':!0x1},_0x23c6ea=>{for(const _0x247d37 of this[_0x3274('0x106')][_0x3274('0x11e')]['document'][_0x3274('0xac')]())_0x23c6ea[_0x3274('0xb2')](_0x247d37);});}[_0x3274('0x3c')](_0x6171f7){const _0x21fe31=[],_0x52db9e=new Map();for(const _0x7e3c8a of this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x117')]['getRootNames']()){const _0x1e3615=this[_0x3274('0x106')]['editing']['view'][_0x3274('0x1f')](_0x7e3c8a);if(!_0x1e3615)continue;const _0x47b5ee=_0x1e3615[_0x3274('0xd1')]()[_0x3274('0x67')](0x0);_0x47b5ee&&(_0x21fe31[_0x3274('0xd4')](_0x7e3c8a),_0x52db9e[_0x3274('0x88')](_0x7e3c8a,_0x47b5ee));}return _0x21fe31[_0x3274('0x68')]((_0x2e615b,_0xa0b9d9)=>{const _0x44752c=_0x52db9e[_0x3274('0xdb')](_0x2e615b),_0x15c136=_0x52db9e[_0x3274('0xdb')](_0xa0b9d9);return _0x44752c['y']-_0x15c136['y']||_0x44752c['x']-_0x15c136['x'];}),(_0x6171f7=_0x6171f7[_0x3274('0x35')](_0x1904aa=>_0x21fe31['includes'](_0x1904aa['rootName'])))[_0x3274('0x68')]((_0x384761,_0xb24cc9)=>_0x21fe31[_0x3274('0x70')](_0x384761[_0x3274('0xc9')])-_0x21fe31[_0x3274('0x70')](_0xb24cc9[_0x3274('0xc9')])),_0x6171f7;}[_0x3274('0x15')](_0x1e45f1){const _0x279ed7=Array[_0x3274('0x32')](_0x1e45f1[_0x3274('0x5c')])[_0x3274('0x35')](([_0x4de27a,_0x25757d])=>_0x4de27a[_0x3274('0x39')]('revision:')&&!_0x25757d[_0x3274('0x113')]),_0x1bd740=Array[_0x3274('0x32')](this['editor'][_0x3274('0x11e')][_0x3274('0x102')](_0x1e45f1)[_0x3274('0x7e')]({'singleCharacters':!0x0}));if(0x0!=_0x279ed7[_0x3274('0x23')])for(const _0x3500e7 of _0x1bd740){const [_0x1cce7f,_0x451655]=_0x279ed7[0x0],[,_0x21d0f3,_0x2025a4]=_0x1cce7f[_0x3274('0x77')](':');if(_0x451655[_0x3274('0x27')][_0x3274('0xd7')](_0x3500e7[_0x3274('0xab')])&&_0x279ed7['shift'](),(_0x3500e7[_0x3274('0x8')][_0x3274('0xd7')](_0x451655[_0x3274('0xa2')])||_0x3500e7[_0x3274('0x8')][_0x3274('0xbc')](_0x451655['start']))&&(_0x3274('0x5e')==_0x21d0f3?_0x3500e7[_0x3274('0x11f')]={'userId':_0x2025a4}:_0x3274('0xd3')==_0x21d0f3&&(_0x3500e7[_0x3274('0x6b')]={'userId':_0x2025a4})),0x0==_0x279ed7[_0x3274('0x23')])break;}return _0x1bd740;}[_0x3274('0x6f')](_0xb6ee9c){const _0x367ba1=new Map();for(let _0x5d7e09=0x0;_0x5d7e09<_0xb6ee9c[_0x3274('0x23')];_0x5d7e09++)_0x3274('0x7a')===_0xb6ee9c[_0x5d7e09][_0x3274('0x33')]?(_0xb6ee9c[_0x5d7e09][_0x3274('0x67')][_0x3274('0x12')]=_0x5d7e09,_0xb6ee9c[_0x5d7e09][_0x3274('0x67')]['endIndex']=_0x5d7e09):(_0x3274('0x115')===_0xb6ee9c[_0x5d7e09]['type']?_0xb6ee9c[_0x5d7e09][_0x3274('0x67')][_0x3274('0x12')]=_0x5d7e09:'elementEnd'===_0xb6ee9c[_0x5d7e09][_0x3274('0x33')]&&(_0xb6ee9c[_0x5d7e09][_0x3274('0x67')][_0x3274('0x17')]=_0x5d7e09),_0x367ba1[_0x3274('0x88')](_0xb6ee9c[_0x5d7e09]['id'],_0x5d7e09));for(const _0x28fd84 of _0x367ba1[_0x3274('0x60')]())_0x3274('0x115')===_0xb6ee9c[_0x28fd84][_0x3274('0x33')]?_0xb6ee9c[_0x28fd84][_0x3274('0x67')][_0x3274('0x17')]=_0x367ba1['get'](_0xb6ee9c[_0x28fd84][_0x3274('0xc6')]):_0x3274('0xaf')===_0xb6ee9c[_0x28fd84][_0x3274('0x33')]&&(_0xb6ee9c[_0x28fd84][_0x3274('0x67')][_0x3274('0x12')]=_0x367ba1['get'](_0xb6ee9c[_0x28fd84]['pairId']));}['_processTape'](_0x1a289c){for(let _0x19ea9f=0x0;_0x19ea9f<_0x1a289c['length'];_0x19ea9f++){if(_0x3274('0x115')===_0x1a289c[_0x19ea9f][_0x3274('0x33')])_0x1a289c[_0x19ea9f][_0x3274('0x67')]['startIndex']=_0x19ea9f;else{if(_0x3274('0xaf')===_0x1a289c[_0x19ea9f][_0x3274('0x33')]){_0x1a289c[_0x19ea9f][_0x3274('0x67')][_0x3274('0x17')]=_0x19ea9f;const _0x1e64c6=_0x1a289c[_0x19ea9f][_0x3274('0x67')]['startIndex'];_0x1a289c[_0x1e64c6][_0x3274('0xc6')]=_0x1a289c[_0x19ea9f]['id'],_0x1a289c[_0x19ea9f][_0x3274('0xc6')]=_0x1a289c[_0x1e64c6]['id'];}else _0x1a289c[_0x19ea9f][_0x3274('0x67')][_0x3274('0x12')]=_0x19ea9f,_0x1a289c[_0x19ea9f][_0x3274('0x67')][_0x3274('0x17')]=_0x19ea9f,_0x1a289c[_0x19ea9f][_0x3274('0xc6')]=null;}_0x1a289c[_0x19ea9f][_0x3274('0xd9')]||(_0x1a289c[_0x19ea9f][_0x3274('0xd9')]=[],_0x1a289c[_0x19ea9f][_0x3274('0xb9')]=[]);}}[_0x3274('0x34')](_0x53ab5a,_0x295564){const _0x53de22=_0x53ab5a[_0x3274('0x35')](_0x345a1d=>!_0x345a1d[_0x3274('0x11f')]);for(let _0x7d1dc8=0x0;_0x7d1dc8<_0x295564[_0x3274('0x23')];_0x7d1dc8++)_0x295564[_0x7d1dc8][_0x3274('0x11f')]&&(_0x53de22[_0x7d1dc8][_0x3274('0x11f')]=_0x295564[_0x7d1dc8]['isAdded']);}[_0x3274('0x30')](_0x331510){const _0x18f442=JSON[_0x3274('0x37')](_0x331510),_0x5d2e62=this[_0x3274('0x106')]['editing'][_0x3274('0x40')][_0x3274('0x117')],_0x3be703=new _0x497830(_0x5d2e62,_0x18f442[_0x3274('0xa6')](_0x2f065c=>this[_0x3274('0xa5')](_0x2f065c)));return this[_0x3274('0x106')]['data'][_0x3274('0xe8')](_0x3be703);}[_0x3274('0xa5')](_0x37db40){const _0x7d7d24=this[_0x3274('0x106')][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')];if('string'==typeof _0x37db40)return new _0x26e468(_0x7d7d24,_0x37db40);{const _0x51f822=_0x37db40[_0x3274('0xad')][_0x3274('0xa6')](_0x4d54cd=>this['_getViewObj'](_0x4d54cd));return new(X[_0x37db40[(_0x3274('0x33'))]]||_0x9acf)(_0x7d7d24,_0x37db40['name'],_0x37db40[_0x3274('0xa1')],_0x51f822);}}[_0x3274('0xc')](_0x322d0a,_0x5e83cc=null){const _0x5d7745=this[_0x3274('0x38')][_0x3274('0x1a')](_0x322d0a),_0x6adeb3=_0x5e83cc?this[_0x3274('0x38')][_0x3274('0x1a')](_0x5e83cc):null,_0x2acad1=this[_0x3274('0x3b')](_0x5d7745,_0x6adeb3),_0x13f0eb=_0x2acad1[_0x2acad1[_0x3274('0x23')]-0x1],_0x3adbe9=new Map(),_0x1faebe={'model':{},'attributes':{},'changes':[]},_0x198c65=new Set(),_0x7b9da2=new Map();for(let _0x2d59d9=_0x2acad1[_0x3274('0x23')]-0x1;_0x2d59d9>=0x0;_0x2d59d9--){const _0xc4e40=_0x2acad1[_0x2d59d9];for(const _0xb571b5 of Object[_0x3274('0x11b')](_0xc4e40[_0x3274('0xbd')]))if(_0xc4e40[_0x3274('0xbd')][_0xb571b5][_0x3274('0xb')]){const _0xfcf140=_0xc4e40['diffData'][_0xb571b5]['attachChange'];_0xfcf140['isAttached']?(_0x198c65[_0x3274('0x94')](_0xb571b5),_0x7b9da2[_0x3274('0x104')](_0xb571b5)&&_0x7b9da2['get'](_0xb571b5)[_0x3274('0x64')]==_0xfcf140[_0x3274('0x64')]?_0x7b9da2[_0x3274('0xeb')](_0xb571b5):_0x7b9da2[_0x3274('0x88')](_0xb571b5,_0xfcf140)):_0x7b9da2[_0x3274('0x104')](_0xb571b5)?(_0x198c65[_0x3274('0xeb')](_0xb571b5),_0x7b9da2[_0x3274('0xeb')](_0xb571b5)):(_0x198c65[_0x3274('0x94')](_0xb571b5),_0x7b9da2[_0x3274('0x88')](_0xb571b5,_0xfcf140));}else _0x198c65[_0x3274('0x94')](_0xb571b5);}for(const _0x57fcb6 of _0x198c65){const _0x5c6055=_0x7b9da2[_0x3274('0x104')](_0x57fcb6)&&!_0x7b9da2[_0x3274('0xdb')](_0x57fcb6)[_0x3274('0x6a')];let _0x3feaaa=_0x5c6055?_0x2acad1[_0x3274('0x23')]-0x1:0x0;const _0x537ab7=_0x5c6055?-0x1:0x1;for(;_0x2acad1[_0x3feaaa];){const _0xf3da20=_0x2acad1[_0x3feaaa];if(_0xf3da20['diffData'][_0x57fcb6]){const _0x405a5d=_0x5c6055?_0xf3da20[_0x3274('0xbd')][_0x57fcb6][_0x3274('0x8f')]:_0xf3da20[_0x3274('0xbd')][_0x57fcb6][_0x3274('0x20')];_0x1faebe[_0x3274('0xa1')][_0x57fcb6]=_0x405a5d?_0x967fb5(_0x405a5d):{};break;}_0x3feaaa+=_0x537ab7;}}for(const _0x26ce3c of _0x2acad1){_0x26ce3c['model']={};for(const _0x481482 of _0x26ce3c['authors'])_0x3adbe9[_0x3274('0x88')](_0x481482['id'],_0x481482);for(const _0x167c75 of _0x198c65){const _0x5c6524=_0x26ce3c[_0x3274('0xbd')][_0x167c75]?_0x26ce3c[_0x3274('0xbd')][_0x167c75][_0x3274('0x91')]:'[]',_0x3ad0e9=_0x26ce3c[_0x3274('0xbd')][_0x167c75]?_0x26ce3c['diffData'][_0x167c75][_0x3274('0x8e')]:'[]';_0x26ce3c[_0x3274('0x11e')][_0x167c75]={'insertions':this[_0x3274('0x30')](_0x5c6524),'deletions':this[_0x3274('0x30')](_0x3ad0e9)};}}for(const _0x302ce2 of _0x198c65){let _0x1cdea=null,_0x43dd86=0x0;const _0xfd5889=new Map(Array['from'](_0x5d7745[_0x3274('0x11e')][_0x302ce2][_0x3274('0x91')][_0x3274('0x5c')])[_0x3274('0x35')](([_0x2c4cf3])=>!_0x2c4cf3[_0x3274('0x39')]('revision:')));let _0x3955a3=0x0;for(const _0x42db57 of _0x2acad1){const _0x3fb5b2=this['_makeTape'](_0x42db57[_0x3274('0x11e')][_0x302ce2][_0x3274('0x91')]);_0x42db57==_0x5d7745?(_0x1cdea=_0x3fb5b2,_0x43dd86=_0x1cdea[_0x3274('0x23')],_0x1cdea[_0x3274('0x46')](_0x1478a4=>{_0x1478a4['id']=_0x3955a3++;}),this[_0x3274('0xba')](_0x1cdea)):this[_0x3274('0x34')](_0x1cdea,_0x3fb5b2);const _0x5c2f9b=_0x1cdea[_0x3274('0x35')](_0x1d2b05=>!_0x1d2b05[_0x3274('0x11f')])[_0x3274('0xa6')](_0x14f583=>_0x14f583['id']);let _0x1300bb=0x0;const _0x56d673=this[_0x3274('0x15')](_0x42db57[_0x3274('0x11e')][_0x302ce2][_0x3274('0x8e')]);_0x56d673[_0x3274('0x46')](_0x29b8e4=>{_0x29b8e4[_0x3274('0x6b')]?_0x29b8e4['id']=_0x43dd86++:_0x29b8e4['id']=_0x5c2f9b[_0x1300bb++];}),this[_0x3274('0xba')](_0x56d673),this[_0x3274('0x3')](_0x1cdea,_0x3274('0x11f')),this[_0x3274('0x3')](_0x56d673,_0x3274('0x6b')),_0x42db57==_0x5d7745&&this[_0x3274('0xfa')](_0x1cdea,_0xfd5889),_0x1cdea=this[_0x3274('0x90')](_0x1cdea,_0x56d673),this[_0x3274('0x6f')](_0x1cdea),this[_0x3274('0x3')](_0x1cdea,_0x3274('0x6b'));}_0x1cdea=_0x1cdea[_0x3274('0x35')](_0x3e67dd=>!(_0x3e67dd[_0x3274('0x11f')]&&_0x3e67dd[_0x3274('0x6b')]));const _0x23f48b=new Map(_0x13f0eb[_0x3274('0x11e')][_0x302ce2][_0x3274('0x8e')][_0x3274('0x5c')]),_0x27fa83=new Set(_0xfd5889[_0x3274('0x11b')]());for(const _0x33ea06 of _0x23f48b[_0x3274('0x11b')]())_0x27fa83[_0x3274('0xeb')](_0x33ea06);this[_0x3274('0x2f')](_0x1cdea,_0x27fa83),this[_0x3274('0x14')](_0x1cdea),_0x1cdea=this[_0x3274('0x25')](_0x1cdea),_0x1cdea=this[_0x3274('0xe0')](_0x1cdea),_0x1cdea=this[_0x3274('0x4a')](_0x1cdea);const {root:_0x7a0f6a,changes:_0x12b16e}=this[_0x3274('0x49')](_0x1cdea,_0x3adbe9,_0x302ce2);_0x1faebe[_0x3274('0x11e')][_0x302ce2]=_0x7a0f6a;const _0x211c5c=_0x7b9da2['get'](_0x302ce2);if(_0x211c5c){const _0x45adc7=_0x3adbe9[_0x3274('0xdb')](_0x211c5c[_0x3274('0x64')]),_0x5da19e=new _0x2e882f({'author':_0x45adc7,'type':_0x211c5c[_0x3274('0x6a')]?_0x3274('0x94'):_0x3274('0xea'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x302ce2});_0x12b16e[_0x3274('0x22')](_0x5da19e),_0x1faebe[_0x3274('0xa1')][_0x302ce2][_0x3274('0x123')]=_0x5da19e['id'];}_0x1faebe[_0x3274('0x124')]=_0x1faebe[_0x3274('0x124')]['concat'](_0x12b16e);}return _0x1faebe;}[_0x3274('0xfa')](_0xd5c29b,_0x356f89){for(let _0xca4cab=0x0;_0xca4cab<_0xd5c29b['length'];_0xca4cab++)for(const [_0x49e32b,_0x56bd38]of _0x356f89)_0x56bd38[_0x3274('0xa2')][_0x3274('0xd7')](_0xd5c29b[_0xca4cab][_0x3274('0x8')])&&_0xd5c29b[_0xca4cab][_0x3274('0xd9')][_0x3274('0xd4')](_0x49e32b),_0x56bd38['end'][_0x3274('0xd7')](_0xd5c29b[_0xca4cab][_0x3274('0xab')])&&_0xd5c29b[_0xca4cab][_0x3274('0xb9')]['push'](_0x49e32b);}['_joinTapes'](_0x4138f2,_0x1cffb9){let _0x7f7b5c=[],_0x1aa6dd=0x0,_0x9e14a9=0x0;for(;_0x1aa6dd<_0x4138f2[_0x3274('0x23')]||_0x9e14a9<_0x1cffb9[_0x3274('0x23')];){const _0x2b2bf2=_0x4138f2[_0x1aa6dd]||{},_0x360ecc=_0x1cffb9[_0x9e14a9]||{};if(_0x2b2bf2['id']==_0x360ecc['id'])_0x1aa6dd++,_0x9e14a9++,_0x7f7b5c[_0x3274('0xd4')](_0x2b2bf2);else{if(_0x360ecc['isRemoved']&&_0x2b2bf2[_0x3274('0x11f')]){const {commonTape:_0x1bbef4,iEnd:_0x1391ba,jEnd:_0x245950}=this[_0x3274('0xe9')](_0x4138f2,_0x1aa6dd,_0x1cffb9,_0x9e14a9);_0x7f7b5c=_0x7f7b5c['concat'](_0x1bbef4),_0x1aa6dd=_0x1391ba,_0x9e14a9=_0x245950;}else _0x360ecc[_0x3274('0x6b')]?(_0x9e14a9++,_0x7f7b5c[_0x3274('0xd4')](_0x360ecc)):(_0x1aa6dd++,_0x7f7b5c[_0x3274('0xd4')](_0x2b2bf2));}}return _0x7f7b5c;}[_0x3274('0x2f')](_0x246af3,_0x61679e){const _0x2f261f=[];for(let _0x37fe62=0x0;_0x37fe62<_0x246af3['length'];_0x37fe62++){for(let _0x193325=0x0;_0x193325<_0x246af3[_0x37fe62][_0x3274('0xd9')][_0x3274('0x23')];_0x193325++){const _0x38e2f9=_0x246af3[_0x37fe62]['markersStart'][_0x193325];if(!_0x61679e[_0x3274('0x104')](_0x38e2f9))continue;const {group:_0x4ddbf3,type:_0xd953b,authorId:_0x5b2758}=_0x5c4743(_0x38e2f9);_0x3274('0xee')!=_0x4ddbf3||'insertion'!=_0xd953b&&_0x3274('0xd3')!=_0xd953b||(_0x2f261f[_0x3274('0x22')]({'type':_0xd953b,'name':_0x38e2f9,'userId':_0x5b2758}),_0x246af3[_0x37fe62]['markersStart'][_0x3274('0x44')](_0x193325,0x1),_0x193325--);}_0x37c762(_0x246af3[_0x37fe62]);for(let _0x30037f=0x0;_0x30037f<_0x246af3[_0x37fe62][_0x3274('0xb9')][_0x3274('0x23')];_0x30037f++){const _0x5599d9=_0x246af3[_0x37fe62][_0x3274('0xb9')][_0x30037f];if(!_0x61679e[_0x3274('0x104')](_0x5599d9))continue;const {group:_0xd6b899,type:_0x2cbb8b}=_0x5c4743(_0x5599d9);if(_0x3274('0xee')!=_0xd6b899||_0x3274('0x5e')!=_0x2cbb8b&&'deletion'!=_0x2cbb8b)continue;_0x246af3[_0x37fe62]['markersEnd']['splice'](_0x30037f,0x1),_0x30037f--;const _0x20f412=_0x2f261f[_0x3274('0x76')](_0x1248d2=>_0x1248d2[_0x3274('0x11')]==_0x5599d9);_0x20f412>-0x1&&_0x2f261f[_0x3274('0x44')](_0x20f412,0x1);}}function _0x5c4743(_0x1c96c6){const _0x32ca5b=_0x1c96c6[_0x3274('0x77')](':');return{'group':_0x32ca5b[0x0],'type':_0x32ca5b[0x1],'subType':_0x32ca5b['length']>=0x5?_0x32ca5b[0x2]:null,'id':_0x32ca5b['length']<0x5?_0x32ca5b[0x2]:_0x32ca5b[0x3],'authorId':_0x32ca5b[_0x3274('0x23')]<0x5?_0x32ca5b[0x3]:_0x32ca5b[0x4],'markerCount':0x6==_0x32ca5b[_0x3274('0x23')]?_0x32ca5b[0x5]:null};}function _0x37c762(_0x4636ec){for(let _0x946da5=0x0;_0x946da5<_0x2f261f[_0x3274('0x23')];_0x946da5++){if(_0x4636ec[_0x3274('0x11f')]&&'insertion'==_0x2f261f[_0x946da5][_0x3274('0x33')])return _0x4636ec[_0x3274('0x7b')]=_0x2f261f[_0x946da5],void delete _0x4636ec['isAdded'];if(!_0x4636ec[_0x3274('0x11f')]&&!_0x4636ec[_0x3274('0x6b')]&&_0x3274('0xd3')==_0x2f261f[_0x946da5][_0x3274('0x33')])return void(_0x4636ec[_0x3274('0x9d')]=_0x2f261f[_0x946da5]);}}}[_0x3274('0x3')](_0x4171a4,_0x5ca37e){let _0x42e636=0x0,_0x304521=!0x1;const _0x2d2ef1=new Map();for(const _0x58b265 of _0x4171a4)_0x58b265[_0x5ca37e]?_0x304521&&(_0x42e636++,_0x304521=!0x1):(_0x42e636++,_0x304521=!0x0),_0x2d2ef1['set'](_0x58b265['id'],_0x42e636);for(let _0x21e406=0x0;_0x21e406<_0x4171a4[_0x3274('0x23')];_0x21e406++){if(_0x3274('0x6b')==_0x5ca37e&&_0x4171a4[_0x21e406][_0x3274('0x11f')]||_0x3274('0x11f')==_0x5ca37e&&_0x4171a4[_0x21e406][_0x3274('0x6b')])continue;if('text'==_0x4171a4[_0x21e406][_0x3274('0x33')]){_0x4171a4[_0x21e406][_0x3274('0x11c')]=0x0;continue;}const _0x290030=_0x2d2ef1[_0x3274('0xdb')](_0x4171a4[_0x21e406][_0x3274('0xc6')]),_0x150d17=_0x2d2ef1['get'](_0x4171a4[_0x21e406]['id']);_0x4171a4[_0x21e406]['distance']=_0x290030-_0x150d17;}}[_0x3274('0x3b')](_0xadfe7f,_0x41b6de,_0x404624=!0x1){const _0x15dc68=[];let _0x203419=this[_0x3274('0x38')]['getIndex'](_0xadfe7f),_0x3205af=this['repository'][_0x3274('0xf2')](_0x41b6de);for(-0x1==_0x3205af&&(_0x3205af=this[_0x3274('0x38')][_0x3274('0x1d')]['length'],_0x404624=!0x1);_0x203419<_0x3205af;)_0x15dc68[_0x3274('0xd4')](this[_0x3274('0x38')][_0x3274('0x1a')](_0x203419)),_0x203419++;return _0x404624&&_0x15dc68[_0x3274('0xd4')](this[_0x3274('0x38')][_0x3274('0x1a')](_0x203419)),_0x15dc68;}[_0x3274('0xe9')](_0x5ac09e,_0x4c59e1,_0x30ecfb,_0x10e20c){const _0x4d6b36=this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x61')];let _0xb1fb20=_0x4c59e1;for(;_0x5ac09e[_0xb1fb20]&&_0x5ac09e[_0xb1fb20][_0x3274('0x11f')];)_0xb1fb20++;let _0x1fcae2=_0x10e20c;for(;_0x30ecfb[_0x1fcae2]&&_0x30ecfb[_0x1fcae2]['isRemoved'];)_0x1fcae2++;_0x3d5694(_0x5ac09e,_0x4c59e1,_0xb1fb20),_0x3d5694(_0x30ecfb,_0x10e20c,_0x1fcae2);const _0x20d7ca=_0x30ecfb[_0x3274('0xd')](_0x10e20c,_0x1fcae2)[_0x3274('0x2d')](_0x5ac09e[_0x3274('0xd')](_0x4c59e1,_0xb1fb20));return _0x20d7ca[_0x3274('0x68')]((_0x27b481,_0xa7728b)=>_0x27b481[_0x3274('0x4b')]!=_0xa7728b[_0x3274('0x4b')]?_0x27b481[_0x3274('0x4b')]-_0xa7728b[_0x3274('0x4b')]:_0x27b481[_0x3274('0x2e')]!=_0xa7728b['level']?_0x27b481[_0x3274('0x2e')]-_0xa7728b['level']:_0x27b481[_0x3274('0x11c')]!=_0xa7728b['distance']?_0xa7728b[_0x3274('0x11c')]-_0x27b481[_0x3274('0x11c')]:!!_0x27b481[_0x3274('0x11f')]!=!!_0xa7728b[_0x3274('0x11f')]?-0x1==_0x27b481[_0x3274('0x4b')]||0x0==_0x27b481[_0x3274('0x4b')]?_0x27b481['isAdded']?-0x1:0x1:_0x27b481[_0x3274('0x11f')]?0x1:-0x1:_0x27b481[_0x3274('0x79')]-_0xa7728b[_0x3274('0x79')]),{'commonTape':_0x20d7ca,'iEnd':_0xb1fb20,'jEnd':_0x1fcae2};function _0x3d5694(_0x2c50b7,_0x56b75e,_0x4a50d2){let _0x4a842c=-0x1,_0x16f51a=Number[_0x3274('0x9a')],_0x1bb4d9=!0x0;for(let _0x1e9279=_0x56b75e;_0x1e9279<_0x4a50d2;_0x1e9279++)if(_0x4d6b36[_0x3274('0xf7')](_0x2c50b7[_0x1e9279]['item'])||(_0x1bb4d9=!0x1),_0x2c50b7[_0x1e9279][_0x3274('0x67')]['startIndex']<_0x56b75e&&(_0x4a842c=_0x1e9279),_0x2c50b7[_0x1e9279][_0x3274('0x67')]['endIndex']>=_0x4a50d2){_0x16f51a=_0x1e9279;break;}_0x1bb4d9&&(_0x4a842c=_0x4a50d2-0x1);for(let _0x2fcd5c=_0x56b75e;_0x2fcd5c<_0x4a50d2;_0x2fcd5c++)_0x2c50b7[_0x2fcd5c][_0x3274('0x4b')]=_0x2fcd5c<=_0x4a842c?-0x1:_0x2fcd5c<_0x16f51a?0x0:0x1,_0x2c50b7[_0x2fcd5c][_0x3274('0x79')]=_0x2fcd5c;let _0x454822=0x0;for(let _0x21cd4a=_0x56b75e;_0x21cd4a<=_0x4a842c;_0x21cd4a++)0x0==_0x2c50b7[_0x21cd4a][_0x3274('0x11c')]?_0x2c50b7[_0x21cd4a][_0x3274('0x2e')]=_0x454822:(_0x454822++,_0x2c50b7[_0x21cd4a][_0x3274('0x2e')]=_0x454822,_0x454822++);for(let _0x503e22=_0x56b75e;_0x503e22<_0x4a50d2;_0x503e22++)0x0==_0x2c50b7[_0x503e22][_0x3274('0x4b')]&&(_0x2c50b7[_0x503e22][_0x3274('0x2e')]=_0x454822);_0x454822=0x0;for(let _0x2792fc=_0x4a50d2-0x1;_0x2792fc>=_0x16f51a;_0x2792fc--)0x0==_0x2c50b7[_0x2792fc][_0x3274('0x11c')]?_0x2c50b7[_0x2792fc]['level']=_0x454822:(_0x454822--,_0x2c50b7[_0x2792fc][_0x3274('0x2e')]=_0x454822,_0x454822--);}}[_0x3274('0x14')](_0x124302){const _0x1a62bd=new Map(),_0x3191a1=this['editor'][_0x3274('0x11e')][_0x3274('0x61')];for(let _0x364f6b=0x1;_0x364f6b<_0x124302[_0x3274('0x23')];_0x364f6b++){let _0x4fae74,_0x18c355,_0x1aa097;const _0x3194b6=_0x124302[_0x364f6b],_0x241d1f=_0x124302[_0x364f6b-0x1];if('text'==_0x3194b6['type'])continue;if(_0x3194b6[_0x3274('0x33')]!=_0x241d1f[_0x3274('0x33')])continue;if(!_0x3191a1['isBlock'](_0x241d1f[_0x3274('0x67')])||_0x3191a1['isLimit'](_0x241d1f[_0x3274('0x67')]))continue;if(!_0x3191a1[_0x3274('0x4')](_0x3194b6[_0x3274('0x67')])||_0x3191a1[_0x3274('0x7')](_0x3194b6[_0x3274('0x67')]))continue;if((_0x124302[_0x364f6b][_0x3274('0x11f')]||_0x124302[_0x364f6b][_0x3274('0x7b')])&&_0x124302[_0x364f6b-0x1][_0x3274('0x6b')])_0x4fae74=_0x124302[_0x364f6b],_0x18c355=_0x124302[_0x364f6b-0x1],_0x1aa097=_0x364f6b-0x1;else{if(!_0x124302[_0x364f6b][_0x3274('0x6b')]||!_0x124302[_0x364f6b-0x1][_0x3274('0x11f')]&&!_0x124302[_0x364f6b-0x1][_0x3274('0x7b')])continue;_0x4fae74=_0x124302[_0x364f6b-0x1],_0x18c355=_0x124302[_0x364f6b],_0x1aa097=_0x364f6b;}const _0x4b0335=_0x4fae74[_0x3274('0x2e')]==_0x18c355[_0x3274('0x2e')],_0x299e38=Math[_0x3274('0xfc')](_0x4fae74[_0x3274('0x2e')])<Math[_0x3274('0xfc')](_0x18c355[_0x3274('0x2e')])&&0x0==_0x18c355[_0x3274('0x11c')];(_0x4b0335||_0x299e38)&&(_0x1a62bd['set'](_0x18c355['id'],_0x4fae74['id']),_0x124302[_0x3274('0x44')](_0x1aa097,0x1),_0x364f6b--,_0x4fae74['isAdded']=!0x1);}for(let _0x53c90e=0x0;_0x53c90e<_0x124302['length'];_0x53c90e++)_0x1a62bd[_0x3274('0x104')](_0x124302[_0x53c90e]['pairId'])&&(_0x124302[_0x53c90e][_0x3274('0xc6')]=_0x1a62bd[_0x3274('0xdb')](_0x124302[_0x53c90e][_0x3274('0xc6')]));}['_removeMissingPairs'](_0x3c5a6b){const _0x2514ca=new Set(_0x3c5a6b[_0x3274('0xa6')](_0x220203=>_0x220203['id']));for(let _0x53bfec=0x0;_0x53bfec<_0x3c5a6b[_0x3274('0x23')];_0x53bfec++)_0x2514ca[_0x3274('0x104')](_0x3c5a6b[_0x53bfec]['pairId'])||0x0==_0x3c5a6b[_0x53bfec]['distance']||(_0x3c5a6b[_0x53bfec][_0x3274('0x120')]=!0x0);return _0x3c5a6b[_0x3274('0x35')](_0x533d3b=>!_0x533d3b[_0x3274('0x120')]);}['_markMismatchedRemovedTags'](_0x99428e){const _0x2db227=new Set();for(let _0x5c5b70=0x0;_0x5c5b70<_0x99428e[_0x3274('0x23')];_0x5c5b70++){if(_0x2db227[_0x3274('0x104')](_0x99428e[_0x5c5b70]['id'])&&_0x99428e[_0x5c5b70]['isRemoved']&&(_0x99428e[_0x5c5b70]['isIncorrect']=!0x0),_0x99428e[_0x5c5b70][_0x3274('0x120')])continue;if(0x0==_0x99428e[_0x5c5b70][_0x3274('0x11c')])continue;if(_0x3274('0x115')!=_0x99428e[_0x5c5b70][_0x3274('0x33')])continue;if(null==_0x99428e[_0x5c5b70][_0x3274('0xc6')])continue;let _0x4f838f=_0x5c5b70+0x1,_0x4bb233=0x0;for(;_0x99428e[_0x4f838f]['id']!=_0x99428e[_0x5c5b70][_0x3274('0xc6')];)_0x3274('0x115')==_0x99428e[_0x4f838f][_0x3274('0x33')]?_0x4bb233++:_0x3274('0xaf')==_0x99428e[_0x4f838f][_0x3274('0x33')]&&_0x4bb233--,_0x4f838f++;if(0x0!=_0x4bb233){if(_0x99428e[_0x5c5b70]['isRemoved'])_0x99428e[_0x5c5b70][_0x3274('0x120')]=!0x0;else for(;_0x4f838f!=_0x5c5b70;)_0x99428e[_0x4f838f][_0x3274('0x6b')]&&0x0!=_0x99428e[_0x4f838f][_0x3274('0x11c')]&&(_0x99428e[_0x4f838f]['isIncorrect']=!0x0,_0x2db227['add'](_0x99428e[_0x4f838f][_0x3274('0xc6')])),_0x4f838f--;}}return _0x99428e[_0x3274('0x35')](_0x2119ff=>!_0x2119ff[_0x3274('0x120')]);}['_removeUnsupportedChanges'](_0x3adb4c){const _0x4678ba=this[_0x3274('0x106')]['model']['schema'];for(let _0x409762=0x0;_0x409762<_0x3adb4c['length'];_0x409762++){if(!(_0x3adb4c[_0x409762][_0x3274('0x11f')]||_0x3adb4c[_0x409762]['isAddSuggestion']||_0x3adb4c[_0x409762][_0x3274('0x6b')]||_0x3adb4c[_0x409762][_0x3274('0x9d')]))continue;if(0x0==_0x3adb4c[_0x409762][_0x3274('0x11c')])continue;const _0x432471=_0x3adb4c[_0x409762]['item'];_0x4678ba['isBlock'](_0x432471)||_0x4678ba['isLimit'](_0x432471)||(_0x3adb4c[_0x409762]['isAdded']&&delete _0x3adb4c[_0x409762][_0x3274('0x11f')],_0x3adb4c[_0x409762][_0x3274('0x7b')]&&delete _0x3adb4c[_0x409762][_0x3274('0x7b')],_0x3adb4c[_0x409762][_0x3274('0x9d')]&&delete _0x3adb4c[_0x409762]['isRemoveSuggestion'],_0x3adb4c[_0x409762]['isRemoved']&&(_0x3adb4c[_0x409762][_0x3274('0x120')]=!0x0));}return _0x3adb4c[_0x3274('0x35')](_0x2687e7=>!_0x2687e7['isIncorrect']);}[_0x3274('0x49')](_0x51418b,_0x2a08f7,_0x377303){const _0x1b224b=new _0x4005fc(),_0x382ebc=[],_0x5977ec=new Map(),_0x4c5c5a=this['editor']['model'],_0x3b037b=_0x4c5c5a['schema'],_0x4fa876=[_0x1b224b],_0x51b6fa={},_0x537c99={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x42f4b7=null;const _0x19237c=[0x0];for(let _0x23f1c2=0x0;_0x23f1c2<_0x51418b[_0x3274('0x23')];_0x23f1c2++){let _0x50622d,_0x3c084d;if(_0x3274('0x115')===_0x51418b[_0x23f1c2][_0x3274('0x33')]){_0x50622d=_0x4c5c5a['createPositionFromPath'](_0x1b224b,_0x19237c);const _0xe4600=new _0x180c2e(_0x51418b[_0x23f1c2]['item'][_0x3274('0x11')],_0x51418b[_0x23f1c2][_0x3274('0x67')][_0x3274('0xdd')]());_0x4fa876[0x0][_0x3274('0xda')](_0xe4600),_0x19237c['push'](0x0),_0x4fa876['unshift'](_0xe4600),_0x3c084d=_0x4c5c5a[_0x3274('0xe1')](_0x1b224b,_0x19237c),_0x42f4b7=null;}else{if(_0x3274('0xaf')===_0x51418b[_0x23f1c2][_0x3274('0x33')])_0x4fa876['shift'](),_0x50622d=_0x4c5c5a['createPositionFromPath'](_0x1b224b,_0x19237c),_0x19237c[_0x3274('0xb6')](),_0x19237c[_0x19237c['length']-0x1]++,_0x3c084d=_0x4c5c5a[_0x3274('0xe1')](_0x1b224b,_0x19237c),_0x42f4b7=null;else{if(_0x50622d=_0x4c5c5a['createPositionFromPath'](_0x1b224b,_0x19237c),_0x42f4b7&&_0x5338dd(_0x42f4b7,_0x51418b[_0x23f1c2]['item']))_0x42f4b7[_0x3274('0x13')]+=_0x51418b[_0x23f1c2][_0x3274('0x67')][_0x3274('0x66')];else{const _0x17d645=new _0x3728ac(_0x51418b[_0x23f1c2][_0x3274('0x67')][_0x3274('0x66')],_0x51418b[_0x23f1c2]['item'][_0x3274('0xdd')]());_0x4fa876[0x0]['_appendChild'](_0x17d645),_0x42f4b7=_0x17d645;}_0x19237c[_0x19237c[_0x3274('0x23')]-0x1]+=_0x51418b[_0x23f1c2][_0x3274('0x67')][_0x3274('0x107')],_0x3c084d=_0x4c5c5a[_0x3274('0xe1')](_0x1b224b,_0x19237c);}}for(const _0x53829e of _0x51418b[_0x23f1c2][_0x3274('0xd9')])_0x5977ec[_0x3274('0x88')](_0x53829e,{'start':_0x50622d,'end':null});_0x59b117(_0x3274('0x9d'),_0x23f1c2,_0x50622d,_0x3c084d),_0x59b117(_0x3274('0x7b'),_0x23f1c2,_0x50622d,_0x3c084d),_0x59b117(_0x3274('0x6b'),_0x23f1c2,_0x50622d,_0x3c084d),_0x59b117(_0x3274('0x11f'),_0x23f1c2,_0x50622d,_0x3c084d);for(const _0x8ec68e of _0x51418b[_0x23f1c2][_0x3274('0xb9')]){_0x5977ec[_0x3274('0xdb')](_0x8ec68e)[_0x3274('0x27')]=_0x3c084d;}}for(const [_0x2842b9,_0x5d9439]of _0x5977ec){const _0x311014=this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0xec')](_0x5d9439[_0x3274('0xa2')],_0x5d9439[_0x3274('0x27')]);_0x1b224b[_0x3274('0x5c')][_0x3274('0x88')](_0x2842b9,_0x311014);}return _0x382ebc[_0x3274('0x68')]((_0x2dd978,_0x3122c9)=>{const _0x15d739=_0x1b224b[_0x3274('0x5c')][_0x3274('0xdb')](_0x3274('0x72')+_0x2dd978['id']),_0x5d061b=_0x1b224b[_0x3274('0x5c')][_0x3274('0xdb')](_0x3274('0x72')+_0x3122c9['id']);return _0x15d739['start']['isBefore'](_0x5d061b['start'])?-0x1:_0x15d739['start'][_0x3274('0xbc')](_0x5d061b[_0x3274('0xa2')])?0x1:_0x15d739[_0x3274('0x27')][_0x3274('0x1c')](_0x5d061b['end'])?-0x1:_0x15d739['end'][_0x3274('0xbc')](_0x5d061b[_0x3274('0x27')])?0x1:'add'===_0x2dd978[_0x3274('0x33')]?-0x1:0x1;}),{'root':_0x1b224b,'changes':_0x382ebc};function _0x59b117(_0x3cd65d,_0x2b3f4d,_0x5b49ca,_0x2968a9){const _0x479ca9=!!_0x51418b[_0x2b3f4d][_0x3cd65d],_0x39341a=_0x479ca9?_0x51418b[_0x2b3f4d][_0x3cd65d][_0x3274('0x64')]:null,_0x35bc18=_0x2b3f4d===_0x51418b['length']-0x1,_0x2af957=_0x537c99[_0x3cd65d][0x0],_0x29795f=_0x3b037b[_0x3274('0x103')](_0x51418b[_0x2b3f4d][_0x3274('0x67')]);!_0x51b6fa[_0x3cd65d]&&_0x479ca9?_0x51b6fa[_0x3cd65d]={'start':_0x5b49ca,'tapeItem':_0x51418b[_0x2b3f4d],'userId':_0x39341a,'type':_0x3cd65d}:_0x51b6fa[_0x3cd65d]&&!_0x479ca9?(_0x51b6fa[_0x3cd65d][_0x3274('0x27')]=_0x5b49ca,_0x3156ca(_0x51b6fa[_0x3cd65d]),_0x51b6fa[_0x3cd65d]=null):_0x51b6fa[_0x3cd65d]&&_0x479ca9&&_0x51b6fa[_0x3cd65d][_0x3274('0x64')]!==_0x39341a&&(_0x51b6fa[_0x3cd65d][_0x3274('0x27')]=_0x5b49ca,_0x2af957&&_0x2af957[_0x3274('0x64')]===_0x51b6fa[_0x3cd65d][_0x3274('0x64')]||_0x3156ca(_0x51b6fa[_0x3cd65d]),_0x51b6fa[_0x3cd65d]={'start':_0x5b49ca,'tapeItem':_0x51418b[_0x2b3f4d],'userId':_0x39341a,'type':_0x3cd65d}),_0x51b6fa[_0x3cd65d]&&_0x29795f&&(_0x3274('0x115')!==_0x51418b[_0x2b3f4d]['type']||_0x2af957&&_0x2af957[_0x3274('0x64')]===_0x39341a||_0x537c99[_0x3cd65d][_0x3274('0x22')]({'userId':_0x39341a,'object':_0x51418b[_0x2b3f4d]['item'],'change':_0x51b6fa[_0x3cd65d]}),'elementEnd'===_0x51418b[_0x2b3f4d][_0x3274('0x33')]&&_0x2af957&&_0x2af957['object']===_0x51418b[_0x2b3f4d]['item']&&(_0x537c99[_0x3cd65d][_0x3274('0x5d')](),_0x51b6fa[_0x3cd65d]=_0x2af957[_0x3274('0x73')])),_0x51b6fa[_0x3cd65d]&&_0x35bc18&&(_0x51b6fa[_0x3cd65d][_0x3274('0x27')]=_0x2968a9,_0x3156ca(_0x51b6fa[_0x3cd65d]),_0x51b6fa[_0x3cd65d]=null);}function _0x3156ca({start:_0x1ee00c,end:_0x447dd7,tapeItem:_0x25404f,userId:_0x181dbf,type:_0x3e14e5}){const _0x125775=_0x25404f['item'],_0x2606c4=_0x4c5c5a[_0x3274('0x61')][_0x3274('0x4')](_0x125775)&&!_0x4c5c5a[_0x3274('0x61')][_0x3274('0x7')](_0x125775),_0x3016d2=_0x1ee00c[_0x3274('0x9c')]==_0x447dd7['parent']&&_0x447dd7[_0x3274('0xb8')];if(_0x2606c4&&_0x3016d2)return;const _0x2c0ab0=_0x4c5c5a[_0x3274('0xec')](_0x1ee00c,_0x447dd7),_0x53af2c=_0x2a08f7[_0x3274('0xdb')](_0x181dbf),_0x1597ba=new _0x2e882f({'author':_0x53af2c,'type':_0x3274('0x11f')==_0x3e14e5||_0x3274('0x7b')==_0x3e14e5?'add':_0x3274('0xea'),'data':{'isSuggestion':_0x3274('0x7b')==_0x3e14e5||_0x3274('0x9d')==_0x3e14e5},'createdAt':new Date(),'rootName':_0x377303});_0x382ebc['push'](_0x1597ba),_0x1b224b['markers'][_0x3274('0x88')](_0x3274('0x72')+_0x1597ba['id'],_0x2c0ab0);}function _0x5338dd(_0x69a0ad,_0x237b5a){const _0xdd61ff=_0x69a0ad[_0x3274('0xdd')](),_0x2fec13=_0x237b5a[_0x3274('0xdd')]();for(const _0x4388ac of _0xdd61ff){if(_0x4388ac[0x1]!==_0x237b5a[_0x3274('0xa7')](_0x4388ac[0x0]))return!0x1;_0x2fec13[_0x3274('0x11d')]();}return _0x2fec13['next']()['done'];}}[_0x3274('0x58')](){this[_0x3274('0x106')]['conversion']['for'](_0x3274('0x9e'))['dataToMarker']({'view':_0x3274('0xc3')}),this[_0x3274('0x106')]['conversion'][_0x3274('0xc1')](_0x3274('0x112'))[_0x3274('0xf1')]({'model':_0x3274('0xc3'),'view':_0x3279d8=>{const _0xa8607c=_0x3279d8[_0x3274('0xf3')]['split'](':')[0x1],_0x225f72=this[_0x3274('0xc8')](_0xa8607c);if(!_0x225f72)return null;const _0x2a8724=_0x3274('0x94')==_0x225f72[_0x3274('0x33')]?_0x3274('0x5e'):_0x3274('0xd3'),_0x5efa2f=['ck-suggestion-marker',_0x3274('0xaa')+_0x2a8724];return _0x225f72[_0x3274('0x66')][_0x3274('0xe')]&&_0x5efa2f['push'](_0x3274('0xaa')+_0x2a8724+_0x3274('0x110')),this[_0x3274('0x28')]==_0x225f72&&_0x5efa2f[_0x3274('0xd4')](_0x3274('0xd8')),{'classes':_0x5efa2f,'attributes':{'data-change-id':_0xa8607c}};}}),this[_0x3274('0x106')][_0x3274('0x31')]['for']('upcast')[_0x3274('0x94')](_0x13f001=>{_0x13f001['on']('element:pre',(_0x1d9b5d,_0x2248db,_0x4eb40a)=>{const _0x59ff93=_0x2248db[_0x3274('0x121')][_0x3274('0x59')](0x0);if(!_0x59ff93||!_0x59ff93['is']('element','code'))return;if(!_0x4eb40a[_0x3274('0x3d')][_0x3274('0x3f')](_0x59ff93,{'attributes':[_0x3274('0x95'),'vid_end']}))return;const _0x17fc2c=_0x2248db[_0x3274('0x50')][_0x3274('0xa2')][_0x3274('0x9c')];_0x4eb40a['writer'][_0x3274('0xb4')](_0x3274('0x95'),_0x59ff93[_0x3274('0xa7')](_0x3274('0x95')),_0x17fc2c),_0x4eb40a[_0x3274('0x71')][_0x3274('0xb4')]('vid_end',_0x59ff93[_0x3274('0xa7')](_0x3274('0x3a')),_0x17fc2c);},{'priority':_0x3274('0x10d')});}),this[_0x3274('0x106')][_0x3274('0x31')]['for'](_0x3274('0x9e'))[_0x3274('0x94')](_0x2c4316=>{_0x2c4316['on'](_0x3274('0x118'),(_0x1646e0,_0x469dbe,_0x4c44cf)=>{if(!_0x4c44cf['consumable'][_0x3274('0x3f')](_0x469dbe[_0x3274('0x121')],{'attributes':['vid_start',_0x3274('0x3a')]}))return;if(_0x469dbe[_0x3274('0x50')][_0x3274('0x113')])return;const _0xbdee33=_0x469dbe['modelRange']['start']['nodeAfter'];_0xbdee33['hasAttribute'](_0x3274('0x95'))||_0xbdee33[_0x3274('0xe2')]('vid')||(_0x4c44cf[_0x3274('0x71')][_0x3274('0xb4')](_0x3274('0x95'),_0x469dbe['viewItem'][_0x3274('0xa7')](_0x3274('0x95')),_0xbdee33),_0x4c44cf[_0x3274('0x71')][_0x3274('0xb4')](_0x3274('0x3a'),_0x469dbe[_0x3274('0x121')][_0x3274('0xa7')](_0x3274('0x3a')),_0xbdee33));},{'priority':_0x3274('0x10d')});}),this[_0x3274('0x106')][_0x3274('0x31')][_0x3274('0xc1')]('upcast')[_0x3274('0x89')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x3274('0xc7'),'value':_0x369640=>_0x369640[_0x3274('0xa7')](_0x3274('0xc7'))}}),this[_0x3274('0x106')][_0x3274('0x11e')]['schema']['on'](_0x3274('0x1b'),(_0x120002,[,_0x541050])=>{[_0x3274('0x95'),_0x3274('0x3a'),_0x3274('0xc7')][_0x3274('0x2c')](_0x541050)&&(_0x120002['return']=!0x0,_0x120002['stop']());},{'priority':_0x3274('0x74')}),this[_0x3274('0x106')][_0x3274('0x31')]['for'](_0x3274('0x10'))[_0x3274('0x94')](_0xd66305=>{_0xd66305['on']('attribute:vid',(_0x4ba950,_0x2fadf9,_0x52009f)=>{if('\x20'!=_0x2fadf9[_0x3274('0x67')]['data']||_0x2fadf9[_0x3274('0x67')]['parent'][_0x3274('0x57')]>0x1)return;if(!_0x52009f[_0x3274('0x3d')][_0x3274('0x3f')](_0x2fadf9[_0x3274('0x67')],_0x4ba950[_0x3274('0x11')]))return;const _0x71437c=_0x52009f['writer'],_0x36849b=_0x52009f[_0x3274('0xae')][_0x3274('0xa3')](_0x2fadf9['range']);_0x71437c[_0x3274('0x52')](_0x36849b,_0x71437c[_0x3274('0x8d')]('span'));});}),this[_0x3274('0x106')][_0x3274('0x31')][_0x3274('0xc1')]('dataDowncast')[_0x3274('0x9f')]({'model':_0x3274('0xc3')}),this['editor'][_0x3274('0xf6')]['downcastDispatcher']['on']('addMarker:revision',function(_0x34e302){const _0x3ae685=_0x34e302[_0x3274('0x6d')][_0x3274('0xdb')]('RevisionViewer');return(_0x258f87,_0x473a48,_0x3dbf5f)=>{const _0x782fa6=_0x473a48['markerName'][_0x3274('0x77')](':')[0x1],_0x11a453=_0x3ae685[_0x3274('0xc8')](_0x782fa6);if(!_0x11a453)return null;const _0x514926='add'==_0x11a453[_0x3274('0x33')]?_0x3274('0x77'):_0x3274('0x62');if(!_0x3dbf5f[_0x3274('0x3d')]['test'](_0x473a48['markerRange'],_0x258f87['name']))return;const _0x561426=_0x473a48[_0x3274('0x84')]['getWalker'](),_0x360917=_0x473a48['markerRange']['start'],_0x4c271a=_0x34e302[_0x3274('0x11e')][_0x3274('0x61')];let _0x1cfdcf=null,_0x1e4bab=null,_0x49d8d2=!0x1,_0x3890a4=!0x1;for(const _0xd417fe of _0x561426){const _0x3a263a=_0xd417fe['item'];_0x49d8d2=_0x49d8d2||_0x4c271a[_0x3274('0x97')](_0x3a263a);const _0x18b8ad=_0x3dbf5f[_0x3274('0xae')][_0x3274('0x5f')](_0x3a263a);if(_0x18b8ad&&_0x18b8ad[_0x3274('0x18')]('addHighlight'))return;_0x3274('0xaf')==_0xd417fe[_0x3274('0x33')]&&(_0x4c271a[_0x3274('0x4')](_0x3a263a)&&!_0x4c271a[_0x3274('0x7')](_0x3a263a)&&(_0x3a263a[_0x3274('0x4f')]||_0x360917['isAtEnd']?_0x1cfdcf&&_0x1cfdcf['parent']==_0x3a263a||(_0x1cfdcf=_0x3a263a,_0x55456d(_0xd417fe['previousPosition']),_0x3890a4=!0x0):_0x1e4bab=_0x1e4bab||_0xd417fe['previousPosition']));}function _0x55456d(_0x430b6f){const _0x571782=_0x3dbf5f[_0x3274('0x71')][_0x3274('0x6e')](_0x3274('0x10e'),{'class':_0x3274('0xaa')+_0x514926}),_0x4ea717=_0x3dbf5f['mapper'][_0x3274('0xf')](_0x430b6f);_0x11a453[_0x3274('0x66')][_0x3274('0xe')]&&_0x3dbf5f['writer'][_0x3274('0xbe')](_0x3274('0xaa')+_0x514926+_0x3274('0x110'),_0x571782),_0x3ae685[_0x3274('0x28')]==_0x11a453&&_0x3dbf5f['writer'][_0x3274('0xbe')]('ck-suggestion-marker--active',_0x571782),_0x3dbf5f[_0x3274('0x71')][_0x3274('0x111')](_0x4ea717,_0x571782),_0x3dbf5f[_0x3274('0xae')]['bindElementToMarker'](_0x571782,_0x473a48[_0x3274('0xf3')]);}_0x49d8d2||_0x3890a4||!_0x1e4bab||_0x55456d(_0x1e4bab);};}(this['editor']),{'priority':_0x3274('0x5')}),this[_0x3274('0x106')]['editing'][_0x3274('0xb5')]['on']('removeMarker:revision',(_0x5da2f5,_0x2ce7a5,_0x5a491d)=>{const _0x3c8e8d=_0x5a491d[_0x3274('0xae')][_0x3274('0xd6')](_0x2ce7a5['markerName']);if(_0x3c8e8d)for(const _0x125a7e of _0x3c8e8d)(_0x125a7e[_0x3274('0xfe')](_0x3274('0x10b'))||_0x125a7e[_0x3274('0xfe')](_0x3274('0xb3')))&&(_0x5a491d[_0x3274('0xae')]['unbindElementFromMarkerName'](_0x125a7e,_0x2ce7a5[_0x3274('0xf3')]),_0x5a491d[_0x3274('0x71')][_0x3274('0xea')](_0x125a7e));},{'priority':_0x3274('0x5')}),this[_0x3274('0x106')][_0x3274('0xf6')]['downcastDispatcher']['on'](_0x3274('0x7c'),(_0x3476ea,_0x57e951,_0x4c93d2)=>{const _0xaf13ce=_0x57e951[_0x3274('0xf3')][_0x3274('0x77')](':')[0x1],_0x1440e7=this[_0x3274('0xc8')](_0xaf13ce);if(!_0x1440e7)return null;const _0x49fdd5=_0x3274('0x94')==_0x1440e7[_0x3274('0x33')]?_0x3274('0x77'):_0x3274('0x62');if(_0x4c93d2[_0x3274('0x3d')]['test'](_0x57e951[_0x3274('0x84')],_0x3476ea[_0x3274('0x11')]))for(const _0x118581 of _0x57e951[_0x3274('0x84')][_0x3274('0x92')]()){if(!_0x118581['is'](_0x3274('0x118'),_0x3274('0x109')))continue;const _0x298908=_0x4c93d2['writer'][_0x3274('0x6e')](_0x3274('0x10e'),{'class':_0x3274('0xaa')+_0x49fdd5}),_0x178b3d=_0x4c93d2[_0x3274('0xae')]['toViewPosition'](this[_0x3274('0x106')]['model'][_0x3274('0xc2')](_0x118581));_0x1440e7['data'][_0x3274('0xe')]&&_0x4c93d2[_0x3274('0x71')]['addClass'](_0x3274('0xaa')+_0x49fdd5+'-new',_0x298908),this[_0x3274('0x28')]==_0x1440e7&&_0x4c93d2['writer'][_0x3274('0xbe')](_0x3274('0xd8'),_0x298908),_0x4c93d2[_0x3274('0x71')][_0x3274('0x111')](_0x178b3d,_0x298908),_0x4c93d2[_0x3274('0xae')][_0x3274('0x9b')](_0x298908,_0x57e951[_0x3274('0xf3')]);}},{'priority':_0x3274('0x5')}),this[_0x3274('0x106')][_0x3274('0x11e')]['document']['on'](_0x3274('0x73'),()=>{this[_0x3274('0x106')]['editing'][_0x3274('0x40')][_0x3274('0x73')](_0x4d465f=>{for(const _0x31d08c of this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x117')][_0x3274('0xac')]()){const _0x188991=this['editor'][_0x3274('0x11e')][_0x3274('0x117')]['getRoot'](_0x31d08c),_0x341cf3=this[_0x3274('0x106')][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')]['getRoot'](_0x31d08c);if(_0x341cf3){const _0x1b1ccf=_0x188991['getAttribute'](_0x3274('0x123'));if(_0x4d465f[_0x3274('0xf4')](_0x3274('0xdc'),_0x341cf3),_0x4d465f[_0x3274('0x2b')]('ck-revision-history-root-add',_0x341cf3),_0x4d465f['removeClass']('ck-revision-history-root-remove',_0x341cf3),_0x4d465f[_0x3274('0x2b')]('ck-revision-history-root--active',_0x341cf3),_0x1b1ccf){const _0x42b8d5=this[_0x3274('0xc8')](_0x1b1ccf);if(!_0x42b8d5)return null;_0x4d465f[_0x3274('0xb4')]('data-change-id',_0x1b1ccf,_0x341cf3),_0x4d465f['addClass'](_0x3274('0xf8')+_0x42b8d5['type'],_0x341cf3),this[_0x3274('0x28')]==_0x42b8d5&&_0x4d465f[_0x3274('0xbe')](_0x3274('0x87'),_0x341cf3);}}}});}),this[_0x3274('0x106')]['conversion']['for'](_0x3274('0x9e'))[_0x3274('0xcc')]({'view':_0x3274('0x54'),'model':_0x42a512=>'revision-comment:'+_0x42a512,'converterPriority':_0x3274('0x74')}),this[_0x3274('0x106')]['conversion']['for'](_0x3274('0x9e'))[_0x3274('0xcc')]({'view':'suggestion','model':_0x248fed=>_0x3274('0x3e')+_0x248fed,'converterPriority':_0x3274('0x74')}),this['editor'][_0x3274('0x31')][_0x3274('0xc1')](_0x3274('0x10'))[_0x3274('0x9f')]({'model':'revision-suggestion','view':_0x44553c=>({'name':_0x3274('0x83')+_0x44553c,'group':_0x3274('0xee')}),'converterPriority':_0x3274('0x74')}),this['editor'][_0x3274('0x31')][_0x3274('0xc1')](_0x3274('0x112'))[_0x3274('0xf1')]({'model':_0x3274('0xee'),'view':_0x50f16b=>{const _0x3b5027=_0x50f16b['markerName'][_0x3274('0x77')](':')[0x1];return'insertion'!=_0x3b5027&&_0x3274('0xd3')!=_0x3b5027?null:{'classes':[_0x3274('0xfb'),_0x3274('0x55')+_0x3b5027]};}}),this['editor'][_0x3274('0xf6')][_0x3274('0xb5')]['on']('addMarker:revision-suggestion:deletion',Y(this[_0x3274('0x106')],_0x3274('0x62')),{'priority':_0x3274('0x5')}),this[_0x3274('0x106')][_0x3274('0xf6')][_0x3274('0xb5')]['on'](_0x3274('0x8b'),Y(this['editor'],'split'),{'priority':'high'}),this['editor'][_0x3274('0xf6')][_0x3274('0xb5')]['on'](_0x3274('0xdf'),(_0x498030,_0xc3ad4,_0x59cf6)=>{const _0x49cc00=_0x59cf6[_0x3274('0xae')]['markerNameToElements'](_0xc3ad4[_0x3274('0xf3')]);if(_0x49cc00)for(const _0x972986 of _0x49cc00)_0x972986['is'](_0x3274('0xb7'))&&(_0x59cf6[_0x3274('0xae')][_0x3274('0x42')](_0x972986,_0xc3ad4[_0x3274('0xf3')]),_0x59cf6['writer'][_0x3274('0xea')](_0x972986));},{'priority':_0x3274('0x5')});}[_0x3274('0xc8')](_0x25bf23){return this[_0x3274('0xa4')]['get'](_0x25bf23);}['_getViewForChange'](_0x337c39){return this['_changeView']&&this['_changeView']['destroy'](),this[_0x3274('0x119')]=new _0x178cd4(this[_0x3274('0x106')][_0x3274('0xca')],_0x337c39),this[_0x3274('0x119')];}[_0x3274('0xce')](){this['editor'][_0x3274('0x11e')]['document'][_0x3274('0x100')][_0x3274('0xe4')](_0x3274('0xc3')),this['on']('change:activeView',(_0x1e459a,_0x55edaf,_0x8c329a,_0x1a2421)=>{_0x1a2421&&this[_0x3274('0xcf')]['remove'](_0x1a2421),_0x8c329a&&(this[_0x3274('0xcf')][_0x3274('0x94')]({'view':_0x8c329a,'stackId':_0x3274('0xc5'),'position':{'target':()=>{const _0x4d114f=this[_0x3274('0x106')][_0x3274('0xf6')],_0x209ad9=this['_getChangeFromId'](_0x8c329a[_0x3274('0x26')]);let _0x5423dc;if(_0x209ad9[_0x3274('0x66')][_0x3274('0x5b')]){const _0x64c8d=_0x4d114f[_0x3274('0x40')][_0x3274('0x1f')](_0x209ad9[_0x3274('0xc9')]);_0x5423dc=Array['from'](_0x64c8d[_0x3274('0xd1')]());}else{const _0x144a3a=this['editor'][_0x3274('0x11e')][_0x3274('0x5c')][_0x3274('0xdb')]('revision:'+_0x8c329a[_0x3274('0x26')]);_0x5423dc=Array[_0x3274('0x32')](_0x4d114f[_0x3274('0xae')][_0x3274('0xd6')](_0x144a3a['name']))[_0x3274('0xa6')](_0x113eae=>_0x4d114f[_0x3274('0x40')][_0x3274('0x2')][_0x3274('0x19')](_0x113eae))[_0x3274('0xa6')](_0x749092=>Array[_0x3274('0x32')](_0x749092[_0x3274('0xd1')]()))['flat']();}if(!this[_0x3274('0xe7')])return _0x5423dc[0x0];return _0x5423dc[_0x3274('0xc4')](_0x4a90bb=>_0x4a90bb[_0x3274('0xe6')]-0x3<=this['_activeViewTarget']['y']&&_0x4a90bb['bottom']+0x3>=this[_0x3274('0xe7')]['y']&&_0x4a90bb['left']-0x3<=this[_0x3274('0xe7')]['x']&&_0x4a90bb[_0x3274('0xd2')]+0x3>=this[_0x3274('0xe7')]['x'])||_0x5423dc[0x0];}}}),this[_0x3274('0xcf')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x3274('0x10a'),(_0x44c0ec,_0x114e38,_0x3ac102,_0x7138d1)=>{this[_0x3274('0x8c')]=_0x3ac102?this[_0x3274('0xa9')](_0x3ac102):null,this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x73')](()=>{const _0x4f4b4c=this[_0x3274('0x106')]['editing'];_0x7138d1&&(_0x7138d1['data'][_0x3274('0x5b')]?_0x4f4b4c['view'][_0x3274('0x73')](_0x42455f=>{_0x42455f[_0x3274('0x2b')](_0x3274('0x87'),_0x4f4b4c[_0x3274('0x40')][_0x3274('0x117')][_0x3274('0xcd')](_0x7138d1['rootName']));}):_0x4f4b4c[_0x3274('0x93')]('revision:'+_0x7138d1['id'])),_0x3ac102&&(_0x3ac102[_0x3274('0x66')][_0x3274('0x5b')]?_0x4f4b4c[_0x3274('0x40')][_0x3274('0x73')](_0x4430c1=>{_0x4430c1['addClass'](_0x3274('0x87'),_0x4f4b4c[_0x3274('0x40')][_0x3274('0x117')][_0x3274('0xcd')](_0x3ac102[_0x3274('0xc9')]));}):_0x4f4b4c[_0x3274('0x93')](_0x3274('0x72')+_0x3ac102['id']));});}),this[_0x3274('0x96')](this[_0x3274('0x106')]['editing'][_0x3274('0x40')][_0x3274('0x117')],_0x3274('0x41'),(_0x59f392,_0x5d12b0)=>{if(this[_0x3274('0x28')])return;const _0x3f5d94=this[_0x3274('0xe5')](_0x5d12b0[_0x3274('0x8a')]),_0x284f78=this['_changeIdToChange'][_0x3274('0xdb')](_0x3f5d94);_0x284f78?(this[_0x3274('0xe7')]={'x':_0x5d12b0[_0x3274('0x29')]['x'],'y':_0x5d12b0[_0x3274('0x29')]['y']},this[_0x3274('0x8c')]=this[_0x3274('0xa9')](_0x284f78)):(this[_0x3274('0xe7')]=null,this[_0x3274('0x8c')]=null);}),this[_0x3274('0x96')](this['editor'][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')],_0x3274('0x21'),(_0x35e3ec,_0x417f17)=>{const _0x143442=this['_findChangeIdFromDomTarget'](_0x417f17[_0x3274('0x8a')]),_0x35f93c=this[_0x3274('0xa4')][_0x3274('0xdb')](_0x143442);_0x35f93c?(this[_0x3274('0xe7')]={'x':_0x417f17[_0x3274('0x29')]['x'],'y':_0x417f17[_0x3274('0x29')]['y']},_0x35f93c===this[_0x3274('0x28')]?this[_0x3274('0xcf')][_0x3274('0xc0')]():this['activeChange']=_0x35f93c):(this[_0x3274('0xe7')]=null,this[_0x3274('0x28')]=null);});}[_0x3274('0xe5')](_0x28c01d){do{const _0x2b832f=_0x28c01d[_0x3274('0xa7')](_0x3274('0xdc'));if(_0x2b832f)return _0x2b832f;_0x28c01d=_0x28c01d[_0x3274('0x11a')];}while(_0x28c01d);return null;}[_0x3274('0x82')](){this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x73')](_0xfd469f=>{for(const _0xa93bcf of this[_0x3274('0x106')]['model'][_0x3274('0x5c')])_0xfd469f[_0x3274('0xbf')](_0xa93bcf);});}}function Y(_0x56ce1d,_0x3c8620){return(_0x6c8af3,_0x5ca7ae,_0x15f83e)=>{if(!_0x15f83e[_0x3274('0x3d')][_0x3274('0xa')](_0x5ca7ae[_0x3274('0x84')],_0x6c8af3[_0x3274('0x11')]))return;const _0x276189=_0x5ca7ae[_0x3274('0x84')]['getWalker'](),_0x29dd05=_0x5ca7ae[_0x3274('0x84')][_0x3274('0xa2')],_0x3da157=_0x56ce1d[_0x3274('0x11e')]['schema'];let _0xcbc0f1=null,_0x6d937=null,_0x1a8174=!0x1,_0x47b34d=!0x1;for(const _0x355f1d of _0x276189){const _0x2d0839=_0x355f1d[_0x3274('0x67')];_0x1a8174=_0x1a8174||_0x3da157[_0x3274('0x97')](_0x2d0839);const _0x136942=_0x15f83e[_0x3274('0xae')]['toViewElement'](_0x2d0839);if(_0x136942&&_0x136942['getCustomProperty'](_0x3274('0x5a')))return;_0x3274('0xaf')==_0x355f1d[_0x3274('0x33')]&&(_0x3da157[_0x3274('0x4')](_0x2d0839)&&!_0x3da157['isLimit'](_0x2d0839)&&(_0x2d0839[_0x3274('0x4f')]||_0x29dd05[_0x3274('0xe3')]?_0xcbc0f1&&_0xcbc0f1[_0x3274('0x11a')]==_0x2d0839||(_0xcbc0f1=_0x2d0839,_0x2cccd2(_0x355f1d[_0x3274('0x8')]),_0x47b34d=!0x0):_0x6d937=_0x6d937||_0x355f1d[_0x3274('0x8')]));}function _0x2cccd2(_0x3a0ddc){const _0x4d4da6=_0x15f83e['mapper'][_0x3274('0xf')](_0x3a0ddc),_0xe7e0d2=_0x15f83e[_0x3274('0x71')][_0x3274('0x6e')](_0x3274('0x10e'),{'class':_0x3274('0x55')+_0x3c8620});_0x15f83e[_0x3274('0x71')][_0x3274('0x111')](_0x4d4da6,_0xe7e0d2),_0x15f83e[_0x3274('0xae')][_0x3274('0x9b')](_0xe7e0d2,_0x5ca7ae[_0x3274('0xf3')]);}_0x1a8174||_0x47b34d||!_0x6d937||_0x2cccd2(_0x6d937);};}export class RestoreRevisionCommand extends _0x417964{constructor(_0x2e12af){super(_0x2e12af);const _0x1a6847=_0x2e12af[_0x3274('0x6d')]['get'](w);this['stopListening'](_0x2e12af,'change:isReadOnly'),this[_0x3274('0x4c')](_0x3274('0xef')),this[_0x3274('0x96')](_0x1a6847,_0x3274('0x80'),()=>this[_0x3274('0x85')]()),this['listenTo'](_0x1a6847,_0x3274('0xa8'),()=>this[_0x3274('0x85')]());}[_0x3274('0x69')](){const _0x3e8e67=this[_0x3274('0x106')],_0x77ff28=_0x3e8e67[_0x3274('0x6d')][_0x3274('0xdb')](w),_0x3dc2d2=_0x77ff28[_0x3274('0x116')]?_0x77ff28[_0x3274('0xf9')]['newRevisionId']:null;_0x3e8e67['config'][_0x3274('0xdb')]('revisionHistory')[_0x3274('0x108')](_0x3dc2d2);}[_0x3274('0x85')](){const {isReady:_0x851cd,isEnabled:_0x2903f3}=this['editor'][_0x3274('0x6d')][_0x3274('0xdb')](w);this[_0x3274('0x36')]=_0x851cd&&_0x2903f3;}}export class ShowChangeCommand extends _0x417964{constructor(_0x4c8fd5,{direction:_0x1fd63b}){super(_0x4c8fd5);const _0xf84e9e=_0x4c8fd5[_0x3274('0x6d')][_0x3274('0xdb')](w);this[_0x3274('0xff')](_0x4c8fd5,_0x3274('0x122')),this[_0x3274('0x4c')](_0x3274('0xef')),this[_0x3274('0xa0')]=_0x3274('0x1e')===_0x1fd63b?0x1:-0x1,this[_0x3274('0x96')](_0xf84e9e,_0x3274('0x80'),()=>this[_0x3274('0x85')]()),this[_0x3274('0x96')](_0xf84e9e,'change:isEnabled',()=>this['refresh']());}[_0x3274('0x69')](){const _0x4eed5=this[_0x3274('0x106')],_0x1cde3d=_0x4eed5[_0x3274('0x6d')][_0x3274('0xdb')](w),{isNavigationMode:_0x1203b8,currentChangeNumber:_0xfb01ce}=_0x1cde3d;let _0xb2fd23;if(_0x1cde3d['activeChange']=_0x1203b8?_0x1cde3d[_0x3274('0xf9')][_0x3274('0x124')][_0x3274('0xdb')](_0xfb01ce+this[_0x3274('0xa0')]):_0x1cde3d[_0x3274('0xf9')][_0x3274('0x124')]['first'],_0x1cde3d[_0x3274('0x28')][_0x3274('0x66')]['isOnRoot'])_0xb2fd23=_0x4eed5[_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x1f')](_0x1cde3d[_0x3274('0x28')]['rootName']);else{const _0x31f262=_0x4eed5['model'][_0x3274('0x5c')][_0x3274('0xdb')]('revision:'+_0x1cde3d[_0x3274('0x28')]['id']);_0xb2fd23=_0x917108(_0x4eed5[_0x3274('0xf6')],_0x31f262);}_0x1d4656({'target':_0xb2fd23,'viewportOffset':0x28});}[_0x3274('0x85')](){const {isNavigationMode:_0x57cfed,currentChangeNumber:_0x34999b,numberOfChanges:_0x35563e,isReady:_0x3a503a,isEnabled:_0x1a9fb5}=this[_0x3274('0x106')]['plugins'][_0x3274('0xdb')](w);this[_0x3274('0x36')]=!!(_0x1a9fb5&&_0x3a503a&&_0x35563e)&&(!_0x57cfed||(0x1===this[_0x3274('0xa0')]?_0x34999b<_0x35563e-0x1:_0x34999b>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3251=['buttonView','threeVerticalDots','button','locale','listenTo','isReady','panelPosition','bindTemplate','Show\x20more\x20items','items','children','execute','model','isActionsDropdownOpen','action','ck-revision-history-sidebar__revision__actions','class','name','isEnabled','bind','add','source','function','ck-on','isVisible','_action','Compare\x20against\x20selected','Restore\x20this\x20revision','find'];(function(_0x47c294,_0x325143){const _0x3dc456=function(_0x36a4f4){while(--_0x36a4f4){_0x47c294['push'](_0x47c294['shift']());}};_0x3dc456(++_0x325143);}(_0x3251,0x191));const _0x3dc4=function(_0x47c294,_0x325143){_0x47c294=_0x47c294-0x0;let _0x3dc456=_0x3251[_0x47c294];return _0x3dc456;};import{Collection as _0x370076}from'ckeditor5/src/utils';import{icons as _0x57d162}from'ckeditor5/src/core';import{Model as _0xb8bf13,addListToDropdown as _0x3e8ef0,createDropdown as _0x11ed24}from'ckeditor5/src/ui';import{getTranslation as _0x2bb063}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4be82d,_0x388f0f){const _0x48b4bc=_0x4be82d[_0x3dc4('0xc')],_0xff8c8d=_0x4be82d['locale'],_0x18923e=_0x11ed24(_0xff8c8d);_0x18923e[_0x3dc4('0xb')]='sw';const _0x1c86f9=function(_0x67623e,_0x188e01){const _0x557bce=function(_0x117056,_0x1d7175){const _0x514939=_0x117056[_0x3dc4('0x8')],_0x14d53a={'Compare\x20against\x20selected':_0x2bb063(_0x514939,_0x3dc4('0x2')),'Name\x20this\x20revision':_0x2bb063(_0x514939,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x2bb063(_0x514939,_0x3dc4('0x3'))};return _0x1d7175['map'](_0x547a3d=>{const _0x2053d4=_0x14d53a[_0x547a3d[_0x3dc4('0x16')]];return _0x2053d4&&_0x2053d4!==_0x547a3d[_0x3dc4('0x16')]&&(_0x547a3d['name']=_0x2053d4),_0x547a3d;});}(_0x67623e,_0x188e01),_0xd61e08=new _0x370076();for(const _0x54d7de of _0x557bce){const _0xa8c201={'type':_0x3dc4('0x7'),'model':new _0xb8bf13({'label':_0x54d7de[_0x3dc4('0x16')],'class':_0x54d7de[_0x3dc4('0x15')],'withText':!0x0,'_action':_0x54d7de[_0x3dc4('0x13')]})};_0xa8c201[_0x3dc4('0x11')][_0x3dc4('0x18')](_0x3dc4('0x17'))['to'](_0x67623e,'isActionsDropdownOpen',_0x502754=>_0x3dc4('0x1b')!=typeof _0x54d7de[_0x3dc4('0x17')]||(!_0x502754||_0x54d7de[_0x3dc4('0x17')](_0x67623e))),_0xd61e08[_0x3dc4('0x19')](_0xa8c201);}return _0xd61e08;}(_0x4be82d,_0x388f0f);return _0x4be82d[_0x3dc4('0x18')](_0x3dc4('0x12'))['to'](_0x18923e,'isOpen'),_0x18923e[_0x3dc4('0x5')]['set']({'label':_0x2bb063(_0xff8c8d,_0x3dc4('0xd')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57d162[_0x3dc4('0x6')]}),_0x18923e['extendTemplate']({'attributes':{'class':[_0x3dc4('0x14'),_0x48b4bc['if'](_0x3dc4('0x12'),_0x3dc4('0x1c'))]},'on':{'click':_0x48b4bc['to'](_0x1b0846=>_0x1b0846['stopPropagation']())}}),_0x18923e['on'](_0x3dc4('0x10'),_0x1cb5df=>{_0x4be82d[_0x3dc4('0xa')]&&_0x3dc4('0x1b')==typeof _0x1cb5df[_0x3dc4('0x1a')][_0x3dc4('0x1')]&&_0x1cb5df[_0x3dc4('0x1a')][_0x3dc4('0x1')](_0x4be82d);}),_0x3e8ef0(_0x18923e,_0x1c86f9),_0x18923e[_0x3dc4('0x9')](_0x4be82d,'change:isActionsDropdownOpen',(_0x2c5db6,_0x1ab20b,_0x8287e4)=>{if(_0x8287e4)for(const _0xeba407 of _0x18923e['listView'][_0x3dc4('0xe')]){const _0x4294dc=_0xeba407[_0x3dc4('0xf')]['first'],_0x14a3d3=_0x388f0f[_0x3dc4('0x4')](_0xe18b47=>_0xe18b47['action']===_0x4294dc[_0x3dc4('0x1')])[_0x3dc4('0x0')];_0xeba407[_0x3dc4('0x0')]=void 0x0===_0x14a3d3||_0x14a3d3(_0x4be82d);}}),_0x18923e;}
23
+ const _0x248a=['isReady','bind','_action','add','threeVerticalDots','extendTemplate','class','ck-revision-history-sidebar__revision__actions','execute','find','isVisible','source','action','locale','name','button','map','bindTemplate','isEnabled','ck-on','Restore\x20this\x20revision','panelPosition','isActionsDropdownOpen','change:isActionsDropdownOpen','listView','first','buttonView'];(function(_0x28ffc6,_0x248a8a){const _0x17f5d7=function(_0x33c4d7){while(--_0x33c4d7){_0x28ffc6['push'](_0x28ffc6['shift']());}};_0x17f5d7(++_0x248a8a);}(_0x248a,0x110));const _0x17f5=function(_0x28ffc6,_0x248a8a){_0x28ffc6=_0x28ffc6-0x0;let _0x17f5d7=_0x248a[_0x28ffc6];return _0x17f5d7;};import{Collection as _0x252a03}from'ckeditor5/src/utils';import{icons as _0x287ee2}from'ckeditor5/src/core';import{Model as _0x4818cb,addListToDropdown as _0x1bbd69,createDropdown as _0x25de87}from'ckeditor5/src/ui';import{getTranslation as _0x128405}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x213782,_0x56b36b){const _0x8fba8f=_0x213782[_0x17f5('0xf')],_0x48166=_0x213782['locale'],_0x425d6c=_0x25de87(_0x48166);_0x425d6c[_0x17f5('0x13')]='sw';const _0x3a73bd=function(_0x534e6a,_0x2999bf){const _0x4f8e19=function(_0x369ee0,_0xa48a17){const _0x84d9ae=_0x369ee0[_0x17f5('0xb')],_0x570978={'Compare\x20against\x20selected':_0x128405(_0x84d9ae,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x128405(_0x84d9ae,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x128405(_0x84d9ae,_0x17f5('0x12'))};return _0xa48a17[_0x17f5('0xe')](_0x386830=>{const _0x4dee02=_0x570978[_0x386830[_0x17f5('0xc')]];return _0x4dee02&&_0x4dee02!==_0x386830[_0x17f5('0xc')]&&(_0x386830['name']=_0x4dee02),_0x386830;});}(_0x534e6a,_0x2999bf),_0x2b0724=new _0x252a03();for(const _0x58f16d of _0x4f8e19){const _0x123d6c={'type':_0x17f5('0xd'),'model':new _0x4818cb({'label':_0x58f16d[_0x17f5('0xc')],'class':_0x58f16d[_0x17f5('0x4')],'withText':!0x0,'_action':_0x58f16d[_0x17f5('0xa')]})};_0x123d6c['model'][_0x17f5('0x1a')](_0x17f5('0x10'))['to'](_0x534e6a,_0x17f5('0x14'),_0x38cd20=>'function'!=typeof _0x58f16d[_0x17f5('0x10')]||(!_0x38cd20||_0x58f16d[_0x17f5('0x10')](_0x534e6a))),_0x2b0724[_0x17f5('0x1')](_0x123d6c);}return _0x2b0724;}(_0x213782,_0x56b36b);return _0x213782[_0x17f5('0x1a')](_0x17f5('0x14'))['to'](_0x425d6c,'isOpen'),_0x425d6c[_0x17f5('0x18')]['set']({'label':_0x128405(_0x48166,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x287ee2[_0x17f5('0x2')]}),_0x425d6c[_0x17f5('0x3')]({'attributes':{'class':[_0x17f5('0x5'),_0x8fba8f['if'](_0x17f5('0x14'),_0x17f5('0x11'))]},'on':{'click':_0x8fba8f['to'](_0x52b2ab=>_0x52b2ab['stopPropagation']())}}),_0x425d6c['on'](_0x17f5('0x6'),_0x22843e=>{_0x213782[_0x17f5('0x19')]&&'function'==typeof _0x22843e[_0x17f5('0x9')][_0x17f5('0x0')]&&_0x22843e[_0x17f5('0x9')][_0x17f5('0x0')](_0x213782);}),_0x1bbd69(_0x425d6c,_0x3a73bd),_0x425d6c['listenTo'](_0x213782,_0x17f5('0x15'),(_0x483d8a,_0x29d093,_0xecfca6)=>{if(_0xecfca6)for(const _0x3243cb of _0x425d6c[_0x17f5('0x16')]['items']){const _0x1ddecb=_0x3243cb['children'][_0x17f5('0x17')],_0x7be209=_0x56b36b[_0x17f5('0x7')](_0x5b15f6=>_0x5b15f6[_0x17f5('0xa')]===_0x1ddecb['_action'])['isVisible'];_0x3243cb[_0x17f5('0x8')]=void 0x0===_0x7be209||_0x7be209(_0x213782);}}),_0x425d6c;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4db6=['setTemplate','ck-revision-history-sidebar__revision-author__name','Revision\x20creator','ck-revision-history-sidebar__revision-author','span','Revision\x20author','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator'];(function(_0x4a78d0,_0x4db6f0){const _0x36bcfb=function(_0x2172ed){while(--_0x2172ed){_0x4a78d0['push'](_0x4a78d0['shift']());}};_0x36bcfb(++_0x4db6f0);}(_0x4db6,0x19d));const _0x36bc=function(_0x4a78d0,_0x4db6f0){_0x4a78d0=_0x4a78d0-0x0;let _0x36bcfb=_0x4db6[_0x4a78d0];return _0x36bcfb;};import{View as _0x26e888,IconView as _0x28b226}from'ckeditor5/src/ui';import{getTranslation as _0x413cd9}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4765c4 from'../../../theme/icons/user.svg';export default class ti extends _0x26e888{constructor(_0x54ebf7,_0x4f1477,_0x4a144b){super(_0x54ebf7);const _0x5f37ab=new _0x28b226();_0x5f37ab['set']({'content':_0x4765c4,'viewBox':_0x36bc('0x1')});const _0x182e9b=['ck',_0x36bc('0x6')];_0x4a144b&&_0x182e9b['push'](_0x36bc('0x2'));const _0x4ef8e0=[{'tag':_0x36bc('0x7'),'attributes':{'class':['ck',_0x36bc('0x4')],'title':_0x413cd9(_0x54ebf7,_0x4a144b?_0x36bc('0x5'):_0x36bc('0x0'))},'children':[_0x5f37ab,_0x4f1477['name']]}];this[_0x36bc('0x3')]({'tag':'li','attributes':{'class':_0x182e9b},'children':_0x4ef8e0});}}
23
+ const _0x79d3=['ck-revision-history-sidebar__revision-author__name','setTemplate','ck-revision-history-sidebar__revision-author','push','0\x200\x2011\x2010','set','Revision\x20author','name','Revision\x20creator'];(function(_0x32cb8c,_0x79d351){const _0x494c0a=function(_0x46b850){while(--_0x46b850){_0x32cb8c['push'](_0x32cb8c['shift']());}};_0x494c0a(++_0x79d351);}(_0x79d3,0x139));const _0x494c=function(_0x32cb8c,_0x79d351){_0x32cb8c=_0x32cb8c-0x0;let _0x494c0a=_0x79d3[_0x32cb8c];return _0x494c0a;};import{View as _0x52f7ef,IconView as _0x365ef0}from'ckeditor5/src/ui';import{getTranslation as _0x13484e}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x486aba from'../../../theme/icons/user.svg';export default class ti extends _0x52f7ef{constructor(_0x47ae6d,_0x220874,_0x54c9af){super(_0x47ae6d);const _0x2d1e7c=new _0x365ef0();_0x2d1e7c[_0x494c('0x7')]({'content':_0x486aba,'viewBox':_0x494c('0x6')});const _0x16aeec=['ck',_0x494c('0x4')];_0x54c9af&&_0x16aeec[_0x494c('0x5')]('ck-revision-history-sidebar__revision-author_creator');const _0x162cbe=[{'tag':'span','attributes':{'class':['ck',_0x494c('0x2')],'title':_0x13484e(_0x47ae6d,_0x54c9af?_0x494c('0x1'):_0x494c('0x8'))},'children':[_0x2d1e7c,_0x220874[_0x494c('0x0')]]}];this[_0x494c('0x3')]({'tag':'li','attributes':{'class':_0x16aeec},'children':_0x162cbe});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1dce=['set','span','extendTemplate','Revision\x20name'];(function(_0x5e2347,_0x1dceb0){var _0x1df8bb=function(_0x56755b){while(--_0x56755b){_0x5e2347['push'](_0x5e2347['shift']());}};_0x1df8bb(++_0x1dceb0);}(_0x1dce,0x1ef));var _0x1df8=function(_0x5e2347,_0x1dceb0){_0x5e2347=_0x5e2347-0x0;var _0x1df8bb=_0x1dce[_0x5e2347];return _0x1df8bb;};import{LabeledFieldView as _0x49e64a}from'ckeditor5/src/ui';import{getTranslation as _0x337790}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x49e64a{constructor(_0x5028af,_0x2564ec){super(_0x5028af,_0x2564ec),this[_0x1df8('0x1')]({'label':_0x337790(_0x5028af,_0x1df8('0x0'))}),this[_0x1df8('0x3')]({'tag':_0x1df8('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x5079=['Revision\x20name','ck-revision-history-sidebar__revision-name','set'];(function(_0x4ff05f,_0x50794f){var _0x50b178=function(_0x111bae){while(--_0x111bae){_0x4ff05f['push'](_0x4ff05f['shift']());}};_0x50b178(++_0x50794f);}(_0x5079,0x1b4));var _0x50b1=function(_0x4ff05f,_0x50794f){_0x4ff05f=_0x4ff05f-0x0;var _0x50b178=_0x5079[_0x4ff05f];return _0x50b178;};import{LabeledFieldView as _0x4767bd}from'ckeditor5/src/ui';import{getTranslation as _0x99e715}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x4767bd{constructor(_0x2d68f8,_0x1e3afe){super(_0x2d68f8,_0x1e3afe),this[_0x50b1('0x1')]({'label':_0x99e715(_0x2d68f8,_0x50b1('0x2'))}),this['extendTemplate']({'tag':'span','attributes':{'class':[_0x50b1('0x0')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ae9=['bind','srcElement','value','placeholder','220','revisionNameView','ck-revision-history-sidebar__revision','_createdAtFormatted','isHighlighted','closest','name','fieldView','revisionActionsView','createdAt','creator','ck-revision-history-sidebar__revision__controls-wrapper','element','deselect','ck-revision-history-sidebar__revision-wrapper','_revision','listenTo','span','ck-reset','ck-disabled','isEnabled','highlight','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','unhighlight','ck-revision-history-sidebar__revision__date','isActionsDropdownOpen','map','isSelected','fire','select','set','setTemplate','bindTemplate','from','ck-revision-history-sidebar__revision_selected','unshift','change','extendTemplate','ck-revision-history-sidebar__revision-authors','authors','render','div'];(function(_0x319f04,_0x2ae9a2){const _0x4a1c9b=function(_0x3ea10f){while(--_0x3ea10f){_0x319f04['push'](_0x319f04['shift']());}};_0x4a1c9b(++_0x2ae9a2);}(_0x2ae9,0x134));const _0x4a1c=function(_0x319f04,_0x2ae9a2){_0x319f04=_0x319f04-0x0;let _0x4a1c9b=_0x2ae9[_0x319f04];return _0x4a1c9b;};import{View as _0x4b63b5,createLabeledInputText as _0xb4ba0a}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4059e}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d6a54 from'./revisionnameview';import _0x39acf8 from'./revisionauthorview';import{dateToPrettyFormat as _0x40ec08}from'./utils';import{createActionsDropdownView as _0x1a60e2}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4059e(_0x4b63b5){constructor(_0xcfe066,_0x4a2947,_0x165ac1){super(_0xcfe066);const _0x2e5255=this[_0x4a1c('0x4')],_0x4aae13=function(_0x116105,_0xcfdb86){const _0x3a35e8=Array[_0x4a1c('0x5')](_0xcfdb86[_0x4a1c('0xb')])['filter'](_0x5d2c37=>_0x5d2c37!=_0xcfdb86[_0x4a1c('0x1c')]);return _0xcfdb86['creator']&&_0x3a35e8[_0x4a1c('0x7')](_0xcfdb86[_0x4a1c('0x1c')]),_0x3a35e8[_0x4a1c('0x2c')](_0x5cda0b=>new _0x39acf8(_0x116105,_0x5cda0b,_0x5cda0b==_0xcfdb86[_0x4a1c('0x1c')]));}(_0xcfe066,_0x4a2947);this['id']=_0x4a2947['id'],this[_0x4a1c('0x21')]=_0x4a2947,this[_0x4a1c('0xe')](_0x4a1c('0x18'),_0x4a1c('0x1b'))['to'](_0x4a2947),this[_0x4a1c('0xe')](_0x4a1c('0x15'))['to'](this,_0x4a1c('0x1b'),_0x220afe=>_0x220afe?_0x40ec08(_0xcfe066['uiLanguage'],_0x220afe):void 0x0),this['set'](_0x4a1c('0x2d'),!0x1),this[_0x4a1c('0x2')](_0x4a1c('0x16'),!0x1),this[_0x4a1c('0x2')]('isActionsDropdownOpen',!0x1),this[_0x4a1c('0x2')]('isReady',!0x1),this[_0x4a1c('0x2')](_0x4a1c('0x26'),!0x1),this['revisionNameView']=new _0x2d6a54(_0xcfe066,_0xb4ba0a),this['revisionNameView'][_0x4a1c('0x19')][_0x4a1c('0x9')]({'attributes':{'maxlength':_0x4a1c('0x12')}}),this['revisionNameView'][_0x4a1c('0x19')][_0x4a1c('0xe')](_0x4a1c('0x10'),_0x4a1c('0x11'))['to'](this,_0x4a1c('0x18'),_0x4a1c('0x15')),this['revisionNameView'][_0x4a1c('0xe')](_0x4a1c('0x26'))['to'](this,_0x4a1c('0x2d'),this,_0x4a1c('0x26'),(_0x3b57a5,_0x5e4567)=>_0x3b57a5&&_0x5e4567),this['revisionActionsView']=_0x165ac1&&_0x165ac1['length']?_0x1a60e2(this,_0x165ac1):'',this['revisionActionsView']&&this[_0x4a1c('0x1a')][_0x4a1c('0xe')]('isEnabled')['to'](this),this[_0x4a1c('0x3')]({'tag':_0x4a1c('0xd'),'attributes':{'class':['ck',_0x4a1c('0x24'),_0x4a1c('0x20'),_0x2e5255['if']('isConfirm',_0x4a1c('0x28'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x4a1c('0x24'),_0x4a1c('0x14'),_0x2e5255['if'](_0x4a1c('0x26'),_0x4a1c('0x25'),_0x48ac83=>!_0x48ac83),_0x2e5255['if'](_0x4a1c('0x2d'),_0x4a1c('0x6')),_0x2e5255['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2e5255['if'](_0x4a1c('0x2b'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x4a1c('0x13')],{'tag':_0x4a1c('0x23'),'attributes':{'class':['ck',_0x4a1c('0x2a')]},'children':[{'text':_0x2e5255['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0x4a1c('0x1d')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4a1c('0xa')]},'children':_0x4aae13}]},this['revisionActionsView']],'on':{'click':_0x2e5255['to'](_0x1f4752=>{_0x1f4752[_0x4a1c('0xf')][_0x4a1c('0x17')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x4a1c('0x26')]&&this['fire'](_0x4a1c('0x1'),{'id':this['id']});})}}]});}['render'](){super[_0x4a1c('0xc')]();const _0x65f8e8=this['revisionNameView'][_0x4a1c('0x19')][_0x4a1c('0x1e')];this[_0x4a1c('0x22')](_0x65f8e8,_0x4a1c('0x8'),()=>{this[_0x4a1c('0x0')]('setName',{'id':this['id'],'name':_0x65f8e8['value']});});}[_0x4a1c('0x1')](){this['isSelected']=!0x0;}[_0x4a1c('0x1f')](){this[_0x4a1c('0x2d')]=!0x1;}[_0x4a1c('0x27')](){this[_0x4a1c('0x16')]=!0x0;}[_0x4a1c('0x29')](){this['isHighlighted']=!0x1;}}
23
+ const _0x5bbf=['ck-revision-history-sidebar__revision__controls-wrapper','isSelected','bindTemplate','isActionsDropdownOpen','deselect','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision_selected','isConfirm','ck-revision-history-sidebar__revision','extendTemplate','bind','highlight','.ck-thread__remove-confirm','set','_revision','div','unshift','createdAt','revisionActionsView','setTemplate','creator','listenTo','ck-reset','value','setName','revisionNameView','srcElement','span','closest','render','authors','isEnabled','_createdAtFormatted','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-authors','fire','isReady','select','name','ck-revision-history-sidebar__revision_highlighted','fieldView','ck-revision-history-sidebar__revision-wrapper','filter','ck-disabled','isHighlighted','from'];(function(_0x12617b,_0x5bbf83){const _0x45747c=function(_0xcd4d56){while(--_0xcd4d56){_0x12617b['push'](_0x12617b['shift']());}};_0x45747c(++_0x5bbf83);}(_0x5bbf,0xb1));const _0x4574=function(_0x12617b,_0x5bbf83){_0x12617b=_0x12617b-0x0;let _0x45747c=_0x5bbf[_0x12617b];return _0x45747c;};import{View as _0x549263,createLabeledInputText as _0xc50b5c}from'ckeditor5/src/ui';import{ConfirmMixin as _0x26ede3}from'ckeditor5-collaboration/src/collaboration-core';import _0xb8755c from'./revisionnameview';import _0x16ffb3 from'./revisionauthorview';import{dateToPrettyFormat as _0x826a60}from'./utils';import{createActionsDropdownView as _0x9d9c4f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x26ede3(_0x549263){constructor(_0x292609,_0x560781,_0x3a540d){super(_0x292609);const _0x46b0c1=this[_0x4574('0x9')],_0x520a06=function(_0x24a941,_0x5417d5){const _0x3d13a4=Array[_0x4574('0x6')](_0x5417d5[_0x4574('0x25')])[_0x4574('0x3')](_0x12f88a=>_0x12f88a!=_0x5417d5[_0x4574('0x1b')]);return _0x5417d5[_0x4574('0x1b')]&&_0x3d13a4[_0x4574('0x17')](_0x5417d5[_0x4574('0x1b')]),_0x3d13a4['map'](_0x35c3d4=>new _0x16ffb3(_0x24a941,_0x35c3d4,_0x35c3d4==_0x5417d5['creator']));}(_0x292609,_0x560781);this['id']=_0x560781['id'],this[_0x4574('0x15')]=_0x560781,this[_0x4574('0x11')](_0x4574('0x2d'),_0x4574('0x18'))['to'](_0x560781),this[_0x4574('0x11')](_0x4574('0x27'))['to'](this,_0x4574('0x18'),_0x9aeca5=>_0x9aeca5?_0x826a60(_0x292609['uiLanguage'],_0x9aeca5):void 0x0),this[_0x4574('0x14')](_0x4574('0x8'),!0x1),this[_0x4574('0x14')](_0x4574('0x5'),!0x1),this[_0x4574('0x14')](_0x4574('0xa'),!0x1),this[_0x4574('0x14')]('isReady',!0x1),this[_0x4574('0x14')](_0x4574('0x26'),!0x1),this[_0x4574('0x20')]=new _0xb8755c(_0x292609,_0xc50b5c),this['revisionNameView']['fieldView'][_0x4574('0x10')]({'attributes':{'maxlength':'220'}}),this[_0x4574('0x20')]['fieldView'][_0x4574('0x11')](_0x4574('0x1e'),'placeholder')['to'](this,_0x4574('0x2d'),_0x4574('0x27')),this[_0x4574('0x20')][_0x4574('0x11')](_0x4574('0x26'))['to'](this,_0x4574('0x8'),this,'isEnabled',(_0x133c60,_0x570226)=>_0x133c60&&_0x570226),this[_0x4574('0x19')]=_0x3a540d&&_0x3a540d['length']?_0x9d9c4f(this,_0x3a540d):'',this[_0x4574('0x19')]&&this[_0x4574('0x19')][_0x4574('0x11')](_0x4574('0x26'))['to'](this),this[_0x4574('0x1a')]({'tag':_0x4574('0x16'),'attributes':{'class':['ck',_0x4574('0x1d'),_0x4574('0x2'),_0x46b0c1['if'](_0x4574('0xe'),_0x4574('0x28'))]},'children':[{'tag':_0x4574('0x16'),'attributes':{'class':['ck','ck-reset',_0x4574('0xf'),_0x46b0c1['if'](_0x4574('0x26'),_0x4574('0x4'),_0xb446eb=>!_0xb446eb),_0x46b0c1['if'](_0x4574('0x8'),_0x4574('0xd')),_0x46b0c1['if'](_0x4574('0x5'),_0x4574('0x0')),_0x46b0c1['if'](_0x4574('0xa'),_0x4574('0xc'))]},'children':[this[_0x4574('0x20')],{'tag':_0x4574('0x22'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x46b0c1['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0x4574('0x7')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4574('0x29')]},'children':_0x520a06}]},this[_0x4574('0x19')]],'on':{'click':_0x46b0c1['to'](_0x2850c2=>{_0x2850c2[_0x4574('0x21')][_0x4574('0x23')](_0x4574('0x13'))||this[_0x4574('0x2b')]&&this['isEnabled']&&this[_0x4574('0x2a')]('select',{'id':this['id']});})}}]});}[_0x4574('0x24')](){super['render']();const _0x170d02=this[_0x4574('0x20')][_0x4574('0x1')]['element'];this[_0x4574('0x1c')](_0x170d02,'change',()=>{this[_0x4574('0x2a')](_0x4574('0x1f'),{'id':this['id'],'name':_0x170d02[_0x4574('0x1e')]});});}[_0x4574('0x2c')](){this[_0x4574('0x8')]=!0x0;}[_0x4574('0xb')](){this[_0x4574('0x8')]=!0x1;}[_0x4574('0x12')](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2250=['button','_isCollapsed','isVisible','ck-revision-history-sidebar__subrevision-collapser','span','bindTemplate','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','false','ck-hidden','toggle'];(function(_0x4745ab,_0x2250d7){const _0x4a204e=function(_0x1320a3){while(--_0x1320a3){_0x4745ab['push'](_0x4745ab['shift']());}};_0x4a204e(++_0x2250d7);}(_0x2250,0x18f));const _0x4a20=function(_0x4745ab,_0x2250d7){_0x4745ab=_0x4745ab-0x0;let _0x4a204e=_0x2250[_0x4745ab];return _0x4a204e;};import{View as _0x147043}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x147043{constructor(_0x414a50){super(_0x414a50);const _0x3548d6=this[_0x4a20('0x2')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4a20('0x3')]({'tag':_0x4a20('0x1'),'attributes':{'class':['ck',_0x4a20('0x0'),_0x3548d6['if'](_0x4a20('0xb'),_0x4a20('0x7'),_0xbac9cf=>!_0xbac9cf),_0x3548d6['if']('_isCollapsed',_0x4a20('0x4'))],'role':_0x4a20('0x9'),'aria-pressed':_0x3548d6['to'](_0x4a20('0xa'),_0x29cd38=>_0x29cd38?_0x4a20('0x6'):'true')},'children':[{'tag':_0x4a20('0x1'),'attributes':{'class':['ck',_0x4a20('0x5')]}}],'on':{'click':_0x3548d6['to']('click')}});}[_0x4a20('0x8')](){this[_0x4a20('0xa')]=!this[_0x4a20('0xa')];}}
23
+ const _0x1e12=['set','ck-hidden','isVisible','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','click','span','_isCollapsed','false','true','button'];(function(_0x1d2d90,_0x1e127d){const _0x2c3018=function(_0x21b18c){while(--_0x21b18c){_0x1d2d90['push'](_0x1d2d90['shift']());}};_0x2c3018(++_0x1e127d);}(_0x1e12,0xde));const _0x2c30=function(_0x1d2d90,_0x1e127d){_0x1d2d90=_0x1d2d90-0x0;let _0x2c3018=_0x1e12[_0x1d2d90];return _0x2c3018;};import{View as _0x274df8}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x274df8{constructor(_0x56c8b3){super(_0x56c8b3);const _0x47ed5b=this[_0x2c30('0x1')];this[_0x2c30('0x9')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x2c30('0x4'),'attributes':{'class':['ck',_0x2c30('0x2'),_0x47ed5b['if'](_0x2c30('0x0'),_0x2c30('0xa'),_0x27ee6f=>!_0x27ee6f),_0x47ed5b['if'](_0x2c30('0x5'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x2c30('0x8'),'aria-pressed':_0x47ed5b['to']('_isCollapsed',_0x5df6c8=>_0x5df6c8?_0x2c30('0x6'):_0x2c30('0x7'))},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x47ed5b['to'](_0x2c30('0x3'))}});}['toggle'](){this[_0x2c30('0x5')]=!this[_0x2c30('0x5')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39b2=['createdAt','bind','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__subrevision','_createdAtFormatted','select','isSelected','set','ck-revision-history-sidebar__revision','setTemplate','deselect','ck-reset','creator','fire','div','uiLanguage','_parentRevisionId'];(function(_0x2ef30c,_0x39b25e){const _0x24a389=function(_0x1e2053){while(--_0x1e2053){_0x2ef30c['push'](_0x2ef30c['shift']());}};_0x24a389(++_0x39b25e);}(_0x39b2,0x129));const _0x24a3=function(_0x2ef30c,_0x39b25e){_0x2ef30c=_0x2ef30c-0x0;let _0x24a389=_0x39b2[_0x2ef30c];return _0x24a389;};import{View as _0x4c5fdd}from'ckeditor5/src/ui';import _0xea9589 from'./revisionauthorview';import{dateToPrettyFormat as _0x28f663}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x4c5fdd{constructor(_0x488051,_0x49408a,_0x43c08d){super(_0x488051);const _0x20f92a=this['bindTemplate'];this['id']=_0x49408a['id'],this['bind']('createdAt')['to'](_0x49408a),this[_0x24a3('0x10')](_0x24a3('0xf'),!0x1),this['bind'](_0x24a3('0xd'))['to'](this,_0x24a3('0x9'),_0x4a08d1=>_0x4a08d1?_0x28f663(_0x488051[_0x24a3('0x7')],_0x4a08d1):void 0x0),this[_0x24a3('0x8')]=_0x43c08d,this[_0x24a3('0x1')]({'tag':_0x24a3('0x6'),'attributes':{'class':['ck',_0x24a3('0x3'),_0x24a3('0x0'),_0x24a3('0xc'),_0x20f92a['if']('isSelected',_0x24a3('0xb'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x20f92a['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0xea9589(_0x488051,_0x49408a[_0x24a3('0x4')],!0x0)]}],'on':{'click':_0x20f92a['to'](this[_0x24a3('0xe')][_0x24a3('0xa')](this))}});}[_0x24a3('0xe')](){this['isSelected']=!0x0,this[_0x24a3('0x5')](_0x24a3('0xe'),{'parentId':this['_parentRevisionId']});}[_0x24a3('0x2')](){this[_0x24a3('0xf')]=!0x1;}}
23
+ const _0x432f=['set','span','select','_createdAtFormatted','_parentRevisionId','isSelected','ck-revision-history-sidebar__revision','deselect','fire','setTemplate','createdAt','ck-revision-history-sidebar__revision_selected','bind','ck-reset','ck-revision-history-sidebar__revision__date','creator'];(function(_0x10f72f,_0x432f85){const _0x2f6790=function(_0x2e8e70){while(--_0x2e8e70){_0x10f72f['push'](_0x10f72f['shift']());}};_0x2f6790(++_0x432f85);}(_0x432f,0xab));const _0x2f67=function(_0x10f72f,_0x432f85){_0x10f72f=_0x10f72f-0x0;let _0x2f6790=_0x432f[_0x10f72f];return _0x2f6790;};import{View as _0x3d5294}from'ckeditor5/src/ui';import _0x46d841 from'./revisionauthorview';import{dateToPrettyFormat as _0x428d55}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3d5294{constructor(_0x99ffaf,_0x543c73,_0xe67d54){super(_0x99ffaf);const _0x36222b=this['bindTemplate'];this['id']=_0x543c73['id'],this[_0x2f67('0x1')](_0x2f67('0xf'))['to'](_0x543c73),this[_0x2f67('0x5')](_0x2f67('0xa'),!0x1),this[_0x2f67('0x1')]('_createdAtFormatted')['to'](this,_0x2f67('0xf'),_0x777511=>_0x777511?_0x428d55(_0x99ffaf['uiLanguage'],_0x777511):void 0x0),this[_0x2f67('0x9')]=_0xe67d54,this[_0x2f67('0xe')]({'tag':'div','attributes':{'class':['ck',_0x2f67('0x2'),_0x2f67('0xb'),'ck-revision-history-sidebar__subrevision',_0x36222b['if'](_0x2f67('0xa'),_0x2f67('0x0'))]},'children':[{'tag':_0x2f67('0x6'),'attributes':{'class':['ck',_0x2f67('0x3')]},'children':[{'text':_0x36222b['to'](_0x2f67('0x8'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x46d841(_0x99ffaf,_0x543c73[_0x2f67('0x4')],!0x0)]}],'on':{'click':_0x36222b['to'](this[_0x2f67('0x7')][_0x2f67('0x1')](this))}});}['select'](){this[_0x2f67('0xa')]=!0x0,this[_0x2f67('0xd')](_0x2f67('0x7'),{'parentId':this[_0x2f67('0x9')]});}[_0x2f67('0xc')](){this[_0x2f67('0xa')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1ea7=['numeric','long'];(function(_0x595d26,_0x1ea739){var _0x563559=function(_0x133938){while(--_0x133938){_0x595d26['push'](_0x595d26['shift']());}};_0x563559(++_0x1ea739);}(_0x1ea7,0x1db));var _0x5635=function(_0x595d26,_0x1ea739){_0x595d26=_0x595d26-0x0;var _0x563559=_0x1ea7[_0x595d26];return _0x563559;};export function dateToPrettyFormat(_0x132819,_0x4ce21a){return _0x4ce21a['toLocaleDateString'](_0x132819,{'month':_0x5635('0x0'),'day':'numeric'})+',\x20'+_0x4ce21a['toLocaleTimeString'](_0x132819,{'hour':_0x5635('0x1'),'minute':_0x5635('0x1')});}
23
+ var _0x5230=['toLocaleTimeString','toLocaleDateString','numeric'];(function(_0xba4a5e,_0x52300a){var _0x16073a=function(_0x4ce568){while(--_0x4ce568){_0xba4a5e['push'](_0xba4a5e['shift']());}};_0x16073a(++_0x52300a);}(_0x5230,0x94));var _0x1607=function(_0xba4a5e,_0x52300a){_0xba4a5e=_0xba4a5e-0x0;var _0x16073a=_0x5230[_0xba4a5e];return _0x16073a;};export function dateToPrettyFormat(_0x4a5efc,_0x10e57b){return _0x10e57b[_0x1607('0x0')](_0x4a5efc,{'month':'long','day':'numeric'})+',\x20'+_0x10e57b[_0x1607('0x2')](_0x4a5efc,{'hour':'numeric','minute':_0x1607('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20b1=['revisionNameInputView','type','_createButton','input','_focusCycler','reset','arrowdown','focusTracker','fieldView','saveButtonView','execute','focus','stopPropagation','keystrokes','revisionName','trim','ck-revision-history-save-revision-form','arrowleft','ck-button-cancel','value','focusFirst','listenTo','_createRevisionNameInput','extendTemplate','high','label','arrowright','Save','Name\x20of\x20the\x20revision\x20(optional)','locale','delegate','arrowup','shift\x20+\x20tab','_focusables','set','form','cancel','add','render','forEach','setTemplate','element','revisionNameInputValue','ck-responsive-form','Cancel','cancelButtonView'];(function(_0x12ff0b,_0x20b100){const _0x396d61=function(_0x211a1a){while(--_0x211a1a){_0x12ff0b['push'](_0x12ff0b['shift']());}};_0x396d61(++_0x20b100);}(_0x20b1,0xb3));const _0x396d=function(_0x12ff0b,_0x20b100){_0x12ff0b=_0x12ff0b-0x0;let _0x396d61=_0x20b1[_0x12ff0b];return _0x396d61;};import{icons as _0x532b7c}from'ckeditor5/src/core';import{ButtonView as _0x48d708,FocusCycler as _0x5deec3,LabeledFieldView as _0x5a275d,View as _0x16344,ViewCollection as _0x47134c,createLabeledInputText as _0x15d367,injectCssTransitionDisabler as _0x5690af,submitHandler as _0x204c00}from'ckeditor5/src/ui';import{FocusTracker as _0x155369,KeystrokeHandler as _0x1ff507}from'ckeditor5/src/utils';import{getTranslation as _0x14bf5e}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class vt extends _0x16344{constructor(_0x2e626d){super(_0x2e626d),this[_0x396d('0xc')]=new _0x155369(),this[_0x396d('0x12')]=new _0x1ff507(),this[_0x396d('0x27')](_0x396d('0x1'),''),this[_0x396d('0x5')]=this[_0x396d('0x1b')](),this[_0x396d('0xe')]=this[_0x396d('0x7')](_0x14bf5e(_0x2e626d,_0x396d('0x20')),_0x532b7c['check'],'ck-button-save'),this[_0x396d('0xe')][_0x396d('0x6')]='submit',this[_0x396d('0x4')]=this[_0x396d('0x7')](_0x14bf5e(_0x2e626d,_0x396d('0x3')),_0x532b7c[_0x396d('0x29')],_0x396d('0x17'),'cancel'),this[_0x396d('0x26')]=new _0x47134c(),this[_0x396d('0x9')]=new _0x5deec3({'focusables':this[_0x396d('0x26')],'focusTracker':this[_0x396d('0xc')],'keystrokeHandler':this[_0x396d('0x12')],'actions':{'focusPrevious':_0x396d('0x25'),'focusNext':'tab'}}),this[_0x396d('0x2d')]({'tag':_0x396d('0x28'),'attributes':{'class':['ck',_0x396d('0x15'),_0x396d('0x2')],'tabindex':'-1'},'children':[this[_0x396d('0x5')],this[_0x396d('0xe')],this[_0x396d('0x4')]]}),_0x5690af(this);}[_0x396d('0x2b')](){super['render'](),_0x204c00({'view':this}),([this[_0x396d('0x5')],this[_0x396d('0xe')],this['cancelButtonView']][_0x396d('0x2c')](_0x2666e8=>{this[_0x396d('0x26')]['add'](_0x2666e8),this[_0x396d('0xc')][_0x396d('0x2a')](_0x2666e8[_0x396d('0x0')]);}),this[_0x396d('0x12')][_0x396d('0x1a')](this['element']));const _0x35f08b=_0x4d2895=>_0x4d2895['stopPropagation']();this['keystrokes'][_0x396d('0x27')](_0x396d('0x1f'),_0x35f08b),this[_0x396d('0x12')][_0x396d('0x27')](_0x396d('0x16'),_0x35f08b),this[_0x396d('0x12')]['set'](_0x396d('0x24'),_0x35f08b),this[_0x396d('0x12')][_0x396d('0x27')](_0x396d('0xb'),_0x35f08b),this[_0x396d('0x1a')](this[_0x396d('0x5')][_0x396d('0x0')],'selectstart',(_0x358969,_0x4f567c)=>{_0x4f567c[_0x396d('0x11')]();},{'priority':_0x396d('0x1d')});}[_0x396d('0x10')](){this['_focusCycler'][_0x396d('0x19')]();}get[_0x396d('0x13')](){return this[_0x396d('0x5')]['fieldView']['element']['value']['trim']();}set[_0x396d('0x13')](_0x598795){this[_0x396d('0x5')]['fieldView'][_0x396d('0x0')][_0x396d('0x18')]=_0x598795[_0x396d('0x14')]();}[_0x396d('0xa')](){this[_0x396d('0x5')][_0x396d('0xd')][_0x396d('0x0')][_0x396d('0x18')]='';}['_createRevisionNameInput'](){const _0x22d27c=new _0x5a275d(this[_0x396d('0x22')],_0x15d367),_0x1d7b3f=_0x22d27c[_0x396d('0xd')];return _0x1d7b3f[_0x396d('0x1c')]({'attributes':{'maxlength':'220'}}),_0x22d27c[_0x396d('0x1e')]=_0x14bf5e(this[_0x396d('0x22')],_0x396d('0x21')),_0x1d7b3f['on'](_0x396d('0x8'),()=>{this[_0x396d('0x1')]=_0x1d7b3f[_0x396d('0x0')][_0x396d('0x18')]['trim']();}),_0x22d27c;}[_0x396d('0x7')](_0x1a9764,_0x2cf95e,_0x181a96,_0x22af24){const _0x477582=new _0x48d708(this['locale']);return _0x477582[_0x396d('0x27')]({'label':_0x1a9764,'icon':_0x2cf95e,'tooltip':!0x0}),_0x477582[_0x396d('0x1c')]({'attributes':{'class':_0x181a96}}),_0x22af24&&_0x477582[_0x396d('0x23')](_0x396d('0xf'))['to'](this,_0x22af24),_0x477582;}}
23
+ const _0x3094=['_focusables','setTemplate','extendTemplate','delegate','execute','trim','Cancel','focusFirst','_createButton','check','revisionNameInputView','reset','type','cancelButtonView','selectstart','label','locale','focusTracker','keystrokes','tab','form','ck-revision-history-save-revision-form','saveButtonView','stopPropagation','element','submit','arrowleft','arrowdown','set','ck-responsive-form','listenTo','arrowup','revisionNameInputValue','render','add','cancel','high','value','revisionName','220','shift\x20+\x20tab','Name\x20of\x20the\x20revision\x20(optional)','_focusCycler','ck-button-save','fieldView','arrowright'];(function(_0xc68958,_0x3094ab){const _0x3772dc=function(_0x1a2265){while(--_0x1a2265){_0xc68958['push'](_0xc68958['shift']());}};_0x3772dc(++_0x3094ab);}(_0x3094,0x98));const _0x3772=function(_0xc68958,_0x3094ab){_0xc68958=_0xc68958-0x0;let _0x3772dc=_0x3094[_0xc68958];return _0x3772dc;};import{icons as _0x3a26a9}from'ckeditor5/src/core';import{ButtonView as _0x2d5f15,FocusCycler as _0x3e2977,LabeledFieldView as _0x1754a6,View as _0x1ff3cd,ViewCollection as _0x1fce51,createLabeledInputText as _0x2c3e45,injectCssTransitionDisabler as _0x2da8cd,submitHandler as _0x494d88}from'ckeditor5/src/ui';import{FocusTracker as _0x589e42,KeystrokeHandler as _0x525c7b}from'ckeditor5/src/utils';import{getTranslation as _0x556af3}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x1ff3cd{constructor(_0x14244f){super(_0x14244f),this[_0x3772('0x3')]=new _0x589e42(),this[_0x3772('0x4')]=new _0x525c7b(),this[_0x3772('0xe')](_0x3772('0x12'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x3772('0x8')]=this[_0x3772('0x28')](_0x556af3(_0x14244f,'Save'),_0x3a26a9[_0x3772('0x29')],_0x3772('0x1d')),this[_0x3772('0x8')][_0x3772('0x2c')]=_0x3772('0xb'),this['cancelButtonView']=this[_0x3772('0x28')](_0x556af3(_0x14244f,_0x3772('0x26')),_0x3a26a9['cancel'],'ck-button-cancel',_0x3772('0x15')),this['_focusables']=new _0x1fce51(),this[_0x3772('0x1c')]=new _0x3e2977({'focusables':this[_0x3772('0x20')],'focusTracker':this[_0x3772('0x3')],'keystrokeHandler':this[_0x3772('0x4')],'actions':{'focusPrevious':_0x3772('0x1a'),'focusNext':_0x3772('0x5')}}),this[_0x3772('0x21')]({'tag':_0x3772('0x6'),'attributes':{'class':['ck',_0x3772('0x7'),_0x3772('0xf')],'tabindex':'-1'},'children':[this[_0x3772('0x2a')],this[_0x3772('0x8')],this[_0x3772('0x2d')]]}),_0x2da8cd(this);}[_0x3772('0x13')](){super[_0x3772('0x13')](),_0x494d88({'view':this}),([this[_0x3772('0x2a')],this[_0x3772('0x8')],this[_0x3772('0x2d')]]['forEach'](_0x4adae6=>{this[_0x3772('0x20')][_0x3772('0x14')](_0x4adae6),this['focusTracker'][_0x3772('0x14')](_0x4adae6[_0x3772('0xa')]);}),this[_0x3772('0x4')][_0x3772('0x10')](this['element']));const _0x2306fc=_0x3113d4=>_0x3113d4[_0x3772('0x9')]();this[_0x3772('0x4')][_0x3772('0xe')](_0x3772('0x1f'),_0x2306fc),this['keystrokes'][_0x3772('0xe')](_0x3772('0xc'),_0x2306fc),this[_0x3772('0x4')][_0x3772('0xe')](_0x3772('0x11'),_0x2306fc),this[_0x3772('0x4')][_0x3772('0xe')](_0x3772('0xd'),_0x2306fc),this[_0x3772('0x10')](this['revisionNameInputView']['element'],_0x3772('0x0'),(_0x5f2395,_0x493294)=>{_0x493294[_0x3772('0x9')]();},{'priority':_0x3772('0x16')});}['focus'](){this[_0x3772('0x1c')][_0x3772('0x27')]();}get[_0x3772('0x18')](){return this[_0x3772('0x2a')]['fieldView'][_0x3772('0xa')][_0x3772('0x17')][_0x3772('0x25')]();}set['revisionName'](_0x48ef79){this[_0x3772('0x2a')][_0x3772('0x1e')][_0x3772('0xa')][_0x3772('0x17')]=_0x48ef79['trim']();}[_0x3772('0x2b')](){this[_0x3772('0x2a')][_0x3772('0x1e')]['element'][_0x3772('0x17')]='';}['_createRevisionNameInput'](){const _0x141197=new _0x1754a6(this['locale'],_0x2c3e45),_0x3194d8=_0x141197[_0x3772('0x1e')];return _0x3194d8[_0x3772('0x22')]({'attributes':{'maxlength':_0x3772('0x19')}}),_0x141197[_0x3772('0x1')]=_0x556af3(this[_0x3772('0x2')],_0x3772('0x1b')),_0x3194d8['on']('input',()=>{this[_0x3772('0x12')]=_0x3194d8[_0x3772('0xa')][_0x3772('0x17')][_0x3772('0x25')]();}),_0x141197;}[_0x3772('0x28')](_0x20fb3d,_0xa43bc8,_0x200dd3,_0x280bd7){const _0x48f708=new _0x2d5f15(this['locale']);return _0x48f708[_0x3772('0xe')]({'label':_0x20fb3d,'icon':_0xa43bc8,'tooltip':!0x0}),_0x48f708[_0x3772('0x22')]({'attributes':{'class':_0x200dd3}}),_0x280bd7&&_0x48f708[_0x3772('0x23')](_0x3772('0x24'))['to'](this,_0x280bd7),_0x48f708;}}