@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230720.0 → 0.0.0-nightly-20230722.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e91=['markerRange','isRemoved','addRevisionData','useFillerType','mapViewToDom','left','revision-viewer','showPreviousChange','_removeRevisionMarkers','_fixObsoleteTags','ck-editor__editable__overlay','isContent','isAddSuggestion','plugins','set','push','isEqual','splice','init','_markMismatchedRemovedTags','toModel','revision-end','adapter','ck-revision-history-root-add','markerToData','suggestion:','startsWith','setAttribute','ck-suggestion-marker-split','then','change:activeChange','bottom','rootName','revision-suggestion','ck-revision-history-root-remove','start','values','addMarker:revision','_joinTapes','forEach','toData','enableReadOnlyMode','WidgetToolbarRepository','userId','isIncorrect','sort','_processTape','viewItem','pluginName','enqueueChange','flat','editingDowncast','length','_step','highest','revision','_markMarkers','activeChange','getRootNames','consumable','_refreshStartEndIndex','span','isSuggestion','downcastDispatcher','numberOfChanges','revisionHistory','slice','ck-suggestion-marker-','element:pre','backward','_makeModelFromViewString','isBlock','_changeView','createAttributeElement','getRevisionData','affectsData','hasClass','softBreak','test','startIndex','bindElementToMarker','includes','_setConversion','revisionHistoryAttachChange','isLimit','_revisions','error','keys','elementStart','isRemoveSuggestion','changeId','_data','concat','document','comment','data','_getRevisionsRange','restoreRevisionCallback','from','merge','reconvertMarker','_activeViewTarget','commands','wrap','revision:','find','children','object','observeMarkers','_getViewObj','showNextChange','_findChangeIdFromDomTarget','-new','parse','compare','removeAttribute','side','editor','oldRevisionId','markerNameToElements','markers','suggestion','_setChanges','model','pairId','get','getItems','diffData','isBefore','removeMarker','schema','code','domEvent','_removeUnsupportedChanges','activeView','authors','element','level','ck-suggestion-marker','top','isOnRoot','hasAttribute','writer','isCollapsed','getDomRoot','insertion','_threeWayMerge','all','stop','target','isAdded','index','addHighlight','unshift','item','return','elementEnd','removeMarker:revision','first','_changeIdToChange','getIndex','insertions','_makeTape','upcast','revision-comment:','addMarker:revision-suggestion:deletion','range','_balloon','_makeModelFromTape','shift','getAttribute','modelRange','getWalker','_update','requires','_markInsertions','next','selection','markerName','abs','markersStart','vid','attachChange','newRevisionId','ck-revision-history-root-','conversion','dataToMarker','elementToAttribute','data-change-id','currentChangeNumber','config','processor','delete','_appendChild','default','isAfter','revision-suggestion:','isAttached','vid_start','previousPosition','end','uiElement','isAtStart','catch','RevisionViewer','endIndex','consume','loadRevisionData','isEnabled','createRangeIn','nextPosition','name','repository','nextSibling','for','removeClass','ck-revision-history-root--active','editing','markerToHighlight','add','toViewRange','low','findIndex','split','attribute:vid','_setDistance','markersEnd','getRevisionRootsAttributes','resolve','done','getAttributes','toViewElement','vid_end','deletion','listenTo','change','changes','mousedown','parent','filter','change:numberOfChanges','change:isEnabled','getClientRects','text','attributesAfter','toViewPosition','ck-suggestion-marker--active','map','attributesBefore','createPositionBefore','refresh','destroy','insert','marked','maxOffset','revision-start','dataDowncast','unbindElementFromMarkerName','showStack','diff','createUIElement','createPositionFromPath','mapper','bind','high','ck-suggestion-marker-merge','getCustomProperty','_getDiff','createRange','nodeAfter','attributes','execute','ck-suggestion-preview-marker-','_getChangeFromId','isObject','detachRoot','roots','createRevision','type','addRoot','view','isAtEnd','_initInteractions','has','pop','string','locale','getRoot','offsetSize','updatePosition','getRevision','_cleanMarkers','change:isReady','_sortAndFilterDiffChanges','addClass','_cleanUp','remove','distance','deletions','isReady','revisionHistoryLabel'];(function(_0xb1354a,_0x4e917d){const _0x59370e=function(_0x5c5a7f){while(--_0x5c5a7f){_0xb1354a['push'](_0xb1354a['shift']());}};_0x59370e(++_0x4e917d);}(_0x4e91,0x92));const _0x5937=function(_0xb1354a,_0x4e917d){_0xb1354a=_0xb1354a-0x0;let _0x59370e=_0x4e91[_0xb1354a];return _0x59370e;};import{Plugin as _0x4759d4,Command as _0x676285}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4bfb65}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2c9bcf}from'ckeditor5/src/ui';import{DocumentFragment as _0x3be22e,Element as _0x586de6,Text as _0x45b63b,ViewDocumentFragment as _0x399ea3,ViewText as _0x9079bf,ViewElement as _0x1a7c58,ViewContainerElement as _0x4238fc,ViewAttributeElement as _0x25cc4b,ViewEmptyElement as _0x516007,ViewRawElement as _0x59e43a,ViewUIElement as _0xf901c0}from'ckeditor5/src/engine';import{Users as _0xac2904,getMarkerDomElement as _0x508032}from'ckeditor5-collaboration/src/collaboration-core';import _0xf36502 from'./ui/revisionviewer/changedetailsview';import _0x456661 from'./revisionsrepository';import _0x4782d0 from'./changeitem';import{default as _0x135f56}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x283255}from'lodash-es';const tt={'c':_0x4238fc,'a':_0x25cc4b,'e':_0x516007,'r':_0x59e43a,'u':_0xf901c0};export default class d extends _0x4759d4{static get[_0x5937('0xcb')](){return _0x5937('0x3a');}static get[_0x5937('0x1c')](){return[_0xac2904,_0x2c9bcf,_0x456661];}constructor(_0x2e3e38){super(_0x2e3e38),this[_0x5937('0x42')]=this[_0x5937('0x110')][_0x5937('0xa8')][_0x5937('0x118')]('RevisionsRepository'),this[_0x5937('0xa9')](_0x5937('0xd4'),null),this[_0x5937('0xa9')](_0x5937('0x121'),null),this[_0x5937('0x100')]=null,this['set'](_0x5937('0x71'),null),this[_0x5937('0xa9')](_0x5937('0x99'),!0x1),this[_0x5937('0xa9')](_0x5937('0x3e'),!0x0),this['on'](_0x5937('0x5f'),(_0x3462b3,_0x2f48dd,_0x58430d)=>{this[_0x5937('0xd4')]=null,this['activeView']=null,this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0x59')](_0x3149ee=>{for(const _0x521583 of this['editor'][_0x5937('0x47')][_0x5937('0x86')]['document'][_0x5937('0x82')])_0x58430d?_0x3149ee[_0x5937('0x45')](_0x5937('0xa5'),_0x521583):_0x3149ee['addClass'](_0x5937('0xa5'),_0x521583);});}),this[_0x5937('0x75')]('isNavigationMode')['to'](this,_0x5937('0xd4'),_0x4feea5=>null!==_0x4feea5),this[_0x5937('0x75')](_0x5937('0x2b'))['to'](this,'isReady',this,'diff',this,_0x5937('0xd4'),(_0x194a95,_0x77349,_0x1e5cad)=>_0x194a95&&_0x1e5cad?_0x77349[_0x5937('0x5a')][_0x5937('0xe')](_0x1e5cad):0x0),this[_0x5937('0x75')](_0x5937('0xdb'))['to'](this,_0x5937('0x99'),this,'diff',(_0x38eaa0,_0x3aa01d)=>_0x38eaa0?_0x3aa01d['changes'][_0x5937('0xcf')]:0x0),this[_0x5937('0xe3')]=null,this[_0x5937('0xd')]=new Map(),this[_0x5937('0xb1')]=null,this[_0x5937('0x15')]=this[_0x5937('0x110')]['plugins'][_0x5937('0x118')](_0x2c9bcf);}[_0x5937('0xad')](){const _0x549962=this['editor'],_0x34d83f=new ShowChangeCommand(_0x549962,{'direction':_0x5937('0xe0')}),_0x3747d7=new ShowChangeCommand(_0x549962,{'direction':'forward'});(_0x549962['commands']['add'](_0x5937('0xa2'),_0x34d83f),_0x549962[_0x5937('0x101')][_0x5937('0x49')](_0x5937('0x109'),_0x3747d7),_0x549962['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x549962)),this['on'](_0x5937('0x5e'),()=>{_0x34d83f[_0x5937('0x68')](),_0x3747d7[_0x5937('0x68')]();}),this[_0x5937('0xed')](),this[_0x5937('0x88')](),_0x549962[_0x5937('0xc4')]('revision-viewer'),_0x549962[_0x5937('0xa8')][_0x5937('0x89')](_0x5937('0xc5')))&&_0x549962['plugins']['get']('WidgetToolbarRepository')['forceDisabled'](_0x5937('0xa1'));}async[_0x5937('0xe5')](_0x3e1c85){await this[_0x5937('0x3d')](_0x3e1c85);const _0x463c43={};for(const _0x2bfafe in _0x3e1c85[_0x5937('0x11a')]){if(_0x3e1c85['diffData'][_0x2bfafe][_0x5937('0x24')]&&!_0x3e1c85[_0x5937('0x11a')][_0x2bfafe][_0x5937('0x24')][_0x5937('0x33')])continue;const _0x5e0933=this[_0x5937('0xa3')](JSON[_0x5937('0x10c')](_0x3e1c85[_0x5937('0x11a')][_0x2bfafe][_0x5937('0xf')])),_0x531323=this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0xf8')],_0x2c8ee2=new _0x399ea3(_0x531323,_0x5e0933['map'](_0x333f07=>this[_0x5937('0x108')](_0x333f07)));this['editor'][_0x5937('0xfa')][_0x5937('0x2d')][_0x5937('0x9e')](_0x5937('0x6b')),_0x463c43[_0x2bfafe]=this['editor']['data'][_0x5937('0x2d')][_0x5937('0xc3')](_0x2c8ee2),this[_0x5937('0x110')][_0x5937('0xfa')][_0x5937('0x2d')][_0x5937('0x9e')](_0x5937('0x30'));}return _0x463c43;}async[_0x5937('0x51')](_0x591faf){await this[_0x5937('0x3d')](_0x591faf);const _0x7b4d34={};for(const _0x61cd7e in _0x591faf[_0x5937('0x11a')])_0x591faf[_0x5937('0x11a')][_0x61cd7e][_0x5937('0x24')]&&!_0x591faf[_0x5937('0x11a')][_0x61cd7e][_0x5937('0x24')][_0x5937('0x33')]||(_0x7b4d34[_0x61cd7e]=_0x591faf[_0x5937('0x11a')][_0x61cd7e][_0x5937('0x62')]||{});return _0x7b4d34;}['_removeRevisionMarkers'](_0x67323){return(_0x67323=_0x67323[_0x5937('0x5d')](_0x440e57=>!_0x440e57[_0x5937('0x41')]||_0x5937('0x6d')!==_0x440e57[_0x5937('0x41')]&&_0x5937('0xb0')!==_0x440e57[_0x5937('0x41')]))[_0x5937('0xc2')](_0x4a0942=>{_0x5937('0x8b')!=typeof _0x4a0942&&(_0x4a0942[_0x5937('0x105')]=this[_0x5937('0xa3')](_0x4a0942['children']),_0x4a0942[_0x5937('0x7c')]=_0x4a0942[_0x5937('0x7c')]['filter'](_0xff1cec=>!_0xff1cec[0x0][_0x5937('0xb5')]('data-revision-')));}),_0x67323;}async[_0x5937('0x10d')](_0x3c1bbd,_0x36f311,_0x5b975b=!0x1){if(!this[_0x5937('0x3e')])return;const _0x6c7893=this['diff'],_0x448b6a=this[_0x5937('0x42')],_0x2e4c5c=_0x5937('0x8b')==typeof _0x3c1bbd?_0x448b6a[_0x5937('0x90')](_0x3c1bbd):_0x3c1bbd,_0x36c8c2=_0x5937('0x8b')==typeof _0x36f311?_0x448b6a[_0x5937('0x90')](_0x36f311):_0x36f311,_0x4d9474=_0x2e4c5c['id'],_0x49da50=_0x36c8c2?_0x36c8c2['id']:null;if(!_0x5b975b&&this[_0x5937('0x71')]&&this['diff'][_0x5937('0x25')]===_0x4d9474&&this[_0x5937('0x71')][_0x5937('0x111')]===_0x49da50)return Promise[_0x5937('0x52')]();this[_0x5937('0x99')]=!0x1,this[_0x5937('0x121')]=null,this[_0x5937('0xd4')]=null,this[_0x5937('0x71')]=new _0x135f56(_0x4d9474,_0x49da50);const _0x4728f0=this[_0x5937('0xfb')](_0x2e4c5c,_0x36c8c2,!0x0)['map'](_0x417eda=>this[_0x5937('0x3d')](_0x417eda));return _0x4728f0[_0x5937('0xaa')](new Promise(_0x386e9f=>{setTimeout(_0x386e9f,0x14);})),Promise[_0x5937('0x1')](_0x4728f0)[_0x5937('0xb8')](()=>{if(!this[_0x5937('0x3e')])return;this[_0x5937('0x95')]();const _0x3ef4cb=this[_0x5937('0x79')](_0x4d9474,_0x49da50);for(const _0x2d6a02 of _0x3ef4cb['changes'])this['_changeIdToChange']['set'](_0x2d6a02['id'],_0x2d6a02);this['editor'][_0x5937('0x116')]['enqueueChange']({'isUndoable':!0x1},_0x90a462=>{for(const _0x445419 of this[_0x5937('0x110')]['model'][_0x5937('0xf8')][_0x5937('0xd5')]())_0x90a462[_0x5937('0x81')](_0x445419);for(const _0x9dbe54 of Object[_0x5937('0xf2')](_0x3ef4cb[_0x5937('0x116')])){const _0x42d65e=_0x90a462[_0x5937('0x85')](_0x9dbe54);for(const _0x445ce3 of Object[_0x5937('0xf2')](_0x3ef4cb['attributes'][_0x9dbe54]))_0x90a462[_0x5937('0xb6')](_0x445ce3,_0x3ef4cb[_0x5937('0x7c')][_0x9dbe54][_0x445ce3],_0x42d65e);_0x90a462[_0x5937('0x6a')](_0x3ef4cb['model'][_0x9dbe54],_0x42d65e,0x0);}}),this[_0x5937('0x71')][_0x5937('0x115')](this[_0x5937('0x93')](_0x3ef4cb[_0x5937('0x5a')])),this[_0x5937('0x99')]=!0x0;})[_0x5937('0x39')](_0x41530e=>{console[_0x5937('0xf1')](_0x41530e),this[_0x5937('0x95')](),_0x6c7893&&(this[_0x5937('0x71')]=_0x6c7893),this[_0x5937('0x99')]=!0x0;});}[_0x5937('0x9d')](_0x424902,_0x1ae1cc){const _0x4fb01a=this[_0x5937('0x42')][_0x5937('0x83')](_0x424902);return _0x4fb01a['on'](_0x5937('0x1b'),(_0x29b84f,_0x2d1db5,_0x96e59d)=>_0x1ae1cc(_0x2d1db5,_0x96e59d,_0x4fb01a)),this[_0x5937('0x42')]['addRevision'](_0x4fb01a),_0x4fb01a;}['loadRevisionData'](_0x59b41a){if(!_0x59b41a||_0x59b41a[_0x5937('0x11a')])return Promise[_0x5937('0x52')]();{const _0x1ed8b9=this[_0x5937('0x110')][_0x5937('0x2c')][_0x5937('0x118')]('collaboration.channelId');return this[_0x5937('0xb1')][_0x5937('0x90')]({'channelId':_0x1ed8b9,'revisionId':_0x59b41a['id']})[_0x5937('0xb8')](_0xbfb5fe=>{_0x59b41a[_0x5937('0x1b')]({'diffData':_0xbfb5fe[_0x5937('0x11a')]},!0x0);});}}[_0x5937('0x95')](){this[_0x5937('0xd4')]=null,this[_0x5937('0x91')](),this[_0x5937('0xe3')]&&this[_0x5937('0xe3')][_0x5937('0x69')](),this[_0x5937('0xe3')]=null,this[_0x5937('0xd')]['clear'](),this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xcc')]({'isUndoable':!0x1},_0x55dccf=>{for(const _0x101fb7 of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')]['getRootNames']())_0x55dccf[_0x5937('0x81')](_0x101fb7);});}['_sortAndFilterDiffChanges'](_0x3e394e){const _0x1a5594=[],_0x18c55b=new Map();for(const _0x98ca60 of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')][_0x5937('0xd5')]()){const _0x5351d4=this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0x12b')](_0x98ca60);if(!_0x5351d4)continue;const _0x59eb94=_0x5351d4[_0x5937('0x60')]()[_0x5937('0x8')](0x0);_0x59eb94&&(_0x1a5594[_0x5937('0xaa')](_0x98ca60),_0x18c55b[_0x5937('0xa9')](_0x98ca60,_0x59eb94));}return _0x1a5594['sort']((_0x5a2001,_0x565f56)=>{const _0x5b5782=_0x18c55b[_0x5937('0x118')](_0x5a2001),_0x10b1c9=_0x18c55b[_0x5937('0x118')](_0x565f56);return _0x5b5782['y']-_0x10b1c9['y']||_0x5b5782['x']-_0x10b1c9['x'];}),(_0x3e394e=_0x3e394e[_0x5937('0x5d')](_0x83607e=>_0x1a5594[_0x5937('0xec')](_0x83607e[_0x5937('0xbb')])))[_0x5937('0xc8')]((_0x2c779b,_0x400439)=>_0x1a5594['indexOf'](_0x2c779b[_0x5937('0xbb')])-_0x1a5594['indexOf'](_0x400439[_0x5937('0xbb')])),_0x3e394e;}[_0x5937('0x10')](_0x246b1b){const _0x39ba0d=Array[_0x5937('0xfd')](_0x246b1b[_0x5937('0x113')])[_0x5937('0x5d')](([_0x213a00,_0x491777])=>_0x213a00[_0x5937('0xb5')](_0x5937('0x103'))&&!_0x491777[_0x5937('0x12a')]),_0x7f87eb=Array['from'](this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x3f')](_0x246b1b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x39ba0d[_0x5937('0xcf')])for(const _0x2201e9 of _0x7f87eb){const [_0x15ebaa,_0xc6494c]=_0x39ba0d[0x0],[,_0x1195e7,_0x321d6d]=_0x15ebaa[_0x5937('0x4d')](':');if(_0xc6494c[_0x5937('0x36')]['isEqual'](_0x2201e9[_0x5937('0x40')])&&_0x39ba0d['shift'](),(_0x2201e9[_0x5937('0x35')][_0x5937('0xab')](_0xc6494c[_0x5937('0xbe')])||_0x2201e9['previousPosition']['isAfter'](_0xc6494c['start']))&&(_0x5937('0x12c')==_0x1195e7?_0x2201e9[_0x5937('0x4')]={'userId':_0x321d6d}:'deletion'==_0x1195e7&&(_0x2201e9[_0x5937('0x9c')]={'userId':_0x321d6d})),0x0==_0x39ba0d[_0x5937('0xcf')])break;}return _0x7f87eb;}[_0x5937('0xd7')](_0x9034a1){const _0x2f3942=new Map();for(let _0x363d0b=0x0;_0x363d0b<_0x9034a1[_0x5937('0xcf')];_0x363d0b++)_0x5937('0x61')===_0x9034a1[_0x363d0b][_0x5937('0x84')]?(_0x9034a1[_0x363d0b][_0x5937('0x8')]['startIndex']=_0x363d0b,_0x9034a1[_0x363d0b][_0x5937('0x8')][_0x5937('0x3b')]=_0x363d0b):(_0x5937('0xf3')===_0x9034a1[_0x363d0b]['type']?_0x9034a1[_0x363d0b]['item'][_0x5937('0xea')]=_0x363d0b:_0x5937('0xa')===_0x9034a1[_0x363d0b][_0x5937('0x84')]&&(_0x9034a1[_0x363d0b][_0x5937('0x8')][_0x5937('0x3b')]=_0x363d0b),_0x2f3942[_0x5937('0xa9')](_0x9034a1[_0x363d0b]['id'],_0x363d0b));for(const _0x3b70e of _0x2f3942[_0x5937('0xbf')]())_0x5937('0xf3')===_0x9034a1[_0x3b70e][_0x5937('0x84')]?_0x9034a1[_0x3b70e][_0x5937('0x8')][_0x5937('0x3b')]=_0x2f3942['get'](_0x9034a1[_0x3b70e][_0x5937('0x117')]):'elementEnd'===_0x9034a1[_0x3b70e][_0x5937('0x84')]&&(_0x9034a1[_0x3b70e][_0x5937('0x8')]['startIndex']=_0x2f3942[_0x5937('0x118')](_0x9034a1[_0x3b70e]['pairId']));}[_0x5937('0xc9')](_0x40a037){for(let _0x1c4558=0x0;_0x1c4558<_0x40a037[_0x5937('0xcf')];_0x1c4558++){if(_0x5937('0xf3')===_0x40a037[_0x1c4558][_0x5937('0x84')])_0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0xea')]=_0x1c4558;else{if(_0x5937('0xa')===_0x40a037[_0x1c4558]['type']){_0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0x3b')]=_0x1c4558;const _0x134498=_0x40a037[_0x1c4558]['item'][_0x5937('0xea')];_0x40a037[_0x134498][_0x5937('0x117')]=_0x40a037[_0x1c4558]['id'],_0x40a037[_0x1c4558][_0x5937('0x117')]=_0x40a037[_0x134498]['id'];}else _0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0xea')]=_0x1c4558,_0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0x3b')]=_0x1c4558,_0x40a037[_0x1c4558][_0x5937('0x117')]=null;}_0x40a037[_0x1c4558]['markersStart']||(_0x40a037[_0x1c4558][_0x5937('0x22')]=[],_0x40a037[_0x1c4558]['markersEnd']=[]);}}[_0x5937('0x1d')](_0xe061fc,_0x38a676){const _0x18c570=_0xe061fc[_0x5937('0x5d')](_0x21ae48=>!_0x21ae48[_0x5937('0x4')]);for(let _0x420408=0x0;_0x420408<_0x38a676[_0x5937('0xcf')];_0x420408++)_0x38a676[_0x420408][_0x5937('0x4')]&&(_0x18c570[_0x420408][_0x5937('0x4')]=_0x38a676[_0x420408][_0x5937('0x4')]);}[_0x5937('0xe1')](_0x40a1b2){const _0x1bba66=JSON['parse'](_0x40a1b2),_0x5d9243=this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0xf8')],_0x3fbdaf=new _0x399ea3(_0x5d9243,_0x1bba66[_0x5937('0x65')](_0x559b01=>this[_0x5937('0x108')](_0x559b01)));return this[_0x5937('0x110')][_0x5937('0xfa')][_0x5937('0xaf')](_0x3fbdaf);}[_0x5937('0x108')](_0x1f349b){const _0x29b425=this['editor'][_0x5937('0x47')]['view'][_0x5937('0xf8')];if(_0x5937('0x8b')==typeof _0x1f349b)return new _0x9079bf(_0x29b425,_0x1f349b);{const _0x848a00=_0x1f349b[_0x5937('0x105')][_0x5937('0x65')](_0x5c46a3=>this['_getViewObj'](_0x5c46a3));return new(tt[_0x1f349b[(_0x5937('0x84'))]]||_0x1a7c58)(_0x29b425,_0x1f349b['name'],_0x1f349b[_0x5937('0x7c')],_0x848a00);}}['_getDiff'](_0x4cedef,_0x350239=null){const _0x451151=this[_0x5937('0x42')][_0x5937('0x90')](_0x4cedef),_0x4ba6f3=_0x350239?this[_0x5937('0x42')][_0x5937('0x90')](_0x350239):null,_0xf2057e=this[_0x5937('0xfb')](_0x451151,_0x4ba6f3),_0x96d159=_0xf2057e[_0xf2057e['length']-0x1],_0x577be0=new Map(),_0x345d31={'model':{},'attributes':{},'changes':[]},_0x53a9bc=new Set(),_0x1914de=new Map();for(let _0x4803b1=_0xf2057e['length']-0x1;_0x4803b1>=0x0;_0x4803b1--){const _0x39c33d=_0xf2057e[_0x4803b1];for(const _0x48c789 of Object['keys'](_0x39c33d[_0x5937('0x11a')]))if(_0x39c33d[_0x5937('0x11a')][_0x48c789][_0x5937('0x24')]){const _0x13350d=_0x39c33d['diffData'][_0x48c789][_0x5937('0x24')];_0x13350d[_0x5937('0x33')]?(_0x53a9bc[_0x5937('0x49')](_0x48c789),_0x1914de[_0x5937('0x89')](_0x48c789)&&_0x1914de[_0x5937('0x118')](_0x48c789)[_0x5937('0xc6')]==_0x13350d[_0x5937('0xc6')]?_0x1914de[_0x5937('0x2e')](_0x48c789):_0x1914de[_0x5937('0xa9')](_0x48c789,_0x13350d)):_0x1914de[_0x5937('0x89')](_0x48c789)?(_0x53a9bc[_0x5937('0x2e')](_0x48c789),_0x1914de[_0x5937('0x2e')](_0x48c789)):(_0x53a9bc['add'](_0x48c789),_0x1914de['set'](_0x48c789,_0x13350d));}else _0x53a9bc[_0x5937('0x49')](_0x48c789);}for(const _0x2848ed of _0x53a9bc){const _0x206f2b=_0x1914de['has'](_0x2848ed)&&!_0x1914de[_0x5937('0x118')](_0x2848ed)[_0x5937('0x33')];let _0x51a575=_0x206f2b?_0xf2057e['length']-0x1:0x0;const _0x4bec7a=_0x206f2b?-0x1:0x1;for(;_0xf2057e[_0x51a575];){const _0x2b0ce0=_0xf2057e[_0x51a575];if(_0x2b0ce0['diffData'][_0x2848ed]){const _0x5539e1=_0x206f2b?_0x2b0ce0[_0x5937('0x11a')][_0x2848ed][_0x5937('0x66')]:_0x2b0ce0[_0x5937('0x11a')][_0x2848ed]['attributesAfter'];_0x345d31[_0x5937('0x7c')][_0x2848ed]=_0x5539e1?_0x283255(_0x5539e1):{};break;}_0x51a575+=_0x4bec7a;}}for(const _0xdf6f9c of _0xf2057e){_0xdf6f9c['model']={};for(const _0x57838e of _0xdf6f9c[_0x5937('0x122')])_0x577be0[_0x5937('0xa9')](_0x57838e['id'],_0x57838e);for(const _0x5602c2 of _0x53a9bc){const _0x432644=_0xdf6f9c[_0x5937('0x11a')][_0x5602c2]?_0xdf6f9c[_0x5937('0x11a')][_0x5602c2][_0x5937('0xf')]:'[]',_0x300566=_0xdf6f9c[_0x5937('0x11a')][_0x5602c2]?_0xdf6f9c[_0x5937('0x11a')][_0x5602c2]['deletions']:'[]';_0xdf6f9c[_0x5937('0x116')][_0x5602c2]={'insertions':this[_0x5937('0xe1')](_0x432644),'deletions':this[_0x5937('0xe1')](_0x300566)};}}for(const _0x412d1d of _0x53a9bc){let _0x3b8ba7=null,_0x39a358=0x0;const _0x2b9525=new Map(Array['from'](_0x451151[_0x5937('0x116')][_0x412d1d]['insertions'][_0x5937('0x113')])[_0x5937('0x5d')](([_0x4e5f8f])=>!_0x4e5f8f[_0x5937('0xb5')](_0x5937('0x103'))));let _0x36b482=0x0;for(const _0x10e1c7 of _0xf2057e){const _0x5f5b47=this[_0x5937('0x10')](_0x10e1c7['model'][_0x412d1d][_0x5937('0xf')]);_0x10e1c7==_0x451151?(_0x3b8ba7=_0x5f5b47,_0x39a358=_0x3b8ba7['length'],_0x3b8ba7[_0x5937('0xc2')](_0x2af555=>{_0x2af555['id']=_0x36b482++;}),this[_0x5937('0xc9')](_0x3b8ba7)):this[_0x5937('0x1d')](_0x3b8ba7,_0x5f5b47);const _0x26444a=_0x3b8ba7[_0x5937('0x5d')](_0x110cca=>!_0x110cca[_0x5937('0x4')])[_0x5937('0x65')](_0x5d3eed=>_0x5d3eed['id']);let _0x1be607=0x0;const _0x14fb33=this['_makeTape'](_0x10e1c7['model'][_0x412d1d][_0x5937('0x98')]);_0x14fb33['forEach'](_0x525de2=>{_0x525de2[_0x5937('0x9c')]?_0x525de2['id']=_0x39a358++:_0x525de2['id']=_0x26444a[_0x1be607++];}),this[_0x5937('0xc9')](_0x14fb33),this[_0x5937('0x4f')](_0x3b8ba7,_0x5937('0x4')),this['_setDistance'](_0x14fb33,_0x5937('0x9c')),_0x10e1c7==_0x451151&&this['_markMarkers'](_0x3b8ba7,_0x2b9525),_0x3b8ba7=this[_0x5937('0xc1')](_0x3b8ba7,_0x14fb33),this[_0x5937('0xd7')](_0x3b8ba7),this['_setDistance'](_0x3b8ba7,_0x5937('0x9c'));}_0x3b8ba7=_0x3b8ba7[_0x5937('0x5d')](_0x47777b=>!(_0x47777b['isAdded']&&_0x47777b[_0x5937('0x9c')]));const _0x292081=new Map(_0x96d159[_0x5937('0x116')][_0x412d1d]['deletions'][_0x5937('0x113')]),_0x27803e=new Set(_0x2b9525['keys']());for(const _0xb42c74 of _0x292081[_0x5937('0xf2')]())_0x27803e[_0x5937('0x2e')](_0xb42c74);this['_markSuggestions'](_0x3b8ba7,_0x27803e),this['_fixObsoleteTags'](_0x3b8ba7),_0x3b8ba7=this['_removeMissingPairs'](_0x3b8ba7),_0x3b8ba7=this[_0x5937('0xae')](_0x3b8ba7),_0x3b8ba7=this[_0x5937('0x120')](_0x3b8ba7);const {root:_0x3a581c,changes:_0x264514}=this[_0x5937('0x16')](_0x3b8ba7,_0x577be0,_0x412d1d);_0x345d31[_0x5937('0x116')][_0x412d1d]=_0x3a581c;const _0x3302e2=_0x1914de[_0x5937('0x118')](_0x412d1d);if(_0x3302e2){const _0x51d8a8=_0x577be0[_0x5937('0x118')](_0x3302e2['userId']),_0x3cc433=new _0x4782d0({'author':_0x51d8a8,'type':_0x3302e2[_0x5937('0x33')]?'add':_0x5937('0x96'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x412d1d});_0x264514[_0x5937('0x7')](_0x3cc433),_0x345d31[_0x5937('0x7c')][_0x412d1d][_0x5937('0xee')]=_0x3cc433['id'];}_0x345d31[_0x5937('0x5a')]=_0x345d31['changes'][_0x5937('0xf7')](_0x264514);}return _0x345d31;}[_0x5937('0xd3')](_0x46b424,_0x5e6b90){for(let _0x73a6=0x0;_0x73a6<_0x46b424[_0x5937('0xcf')];_0x73a6++)for(const [_0xa6a1bd,_0x1e707d]of _0x5e6b90)_0x1e707d['start'][_0x5937('0xab')](_0x46b424[_0x73a6][_0x5937('0x35')])&&_0x46b424[_0x73a6][_0x5937('0x22')][_0x5937('0xaa')](_0xa6a1bd),_0x1e707d[_0x5937('0x36')][_0x5937('0xab')](_0x46b424[_0x73a6][_0x5937('0x40')])&&_0x46b424[_0x73a6][_0x5937('0x50')][_0x5937('0xaa')](_0xa6a1bd);}[_0x5937('0xc1')](_0x22dfba,_0x491bcb){let _0x583ade=[],_0x4e9726=0x0,_0x27a287=0x0;for(;_0x4e9726<_0x22dfba[_0x5937('0xcf')]||_0x27a287<_0x491bcb[_0x5937('0xcf')];){const _0x14617a=_0x22dfba[_0x4e9726]||{},_0x14ab15=_0x491bcb[_0x27a287]||{};if(_0x14617a['id']==_0x14ab15['id'])_0x4e9726++,_0x27a287++,_0x583ade[_0x5937('0xaa')](_0x14617a);else{if(_0x14ab15[_0x5937('0x9c')]&&_0x14617a[_0x5937('0x4')]){const {commonTape:_0x125684,iEnd:_0x49141b,jEnd:_0x405cc2}=this[_0x5937('0x0')](_0x22dfba,_0x4e9726,_0x491bcb,_0x27a287);_0x583ade=_0x583ade['concat'](_0x125684),_0x4e9726=_0x49141b,_0x27a287=_0x405cc2;}else _0x14ab15[_0x5937('0x9c')]?(_0x27a287++,_0x583ade[_0x5937('0xaa')](_0x14ab15)):(_0x4e9726++,_0x583ade['push'](_0x14617a));}}return _0x583ade;}['_markSuggestions'](_0x3a63fe,_0x2fad7c){const _0x68cec=[];for(let _0x6539d2=0x0;_0x6539d2<_0x3a63fe[_0x5937('0xcf')];_0x6539d2++){for(let _0x2ee587=0x0;_0x2ee587<_0x3a63fe[_0x6539d2]['markersStart'][_0x5937('0xcf')];_0x2ee587++){const _0x30d992=_0x3a63fe[_0x6539d2][_0x5937('0x22')][_0x2ee587];if(!_0x2fad7c['has'](_0x30d992))continue;const {group:_0x404c7a,type:_0x5dd303,authorId:_0x3770ef}=_0x343d1b(_0x30d992);_0x5937('0xbc')!=_0x404c7a||_0x5937('0x12c')!=_0x5dd303&&_0x5937('0x57')!=_0x5dd303||(_0x68cec[_0x5937('0x7')]({'type':_0x5dd303,'name':_0x30d992,'userId':_0x3770ef}),_0x3a63fe[_0x6539d2][_0x5937('0x22')][_0x5937('0xac')](_0x2ee587,0x1),_0x2ee587--);}_0x395d89(_0x3a63fe[_0x6539d2]);for(let _0x114756=0x0;_0x114756<_0x3a63fe[_0x6539d2][_0x5937('0x50')][_0x5937('0xcf')];_0x114756++){const _0x48ad0c=_0x3a63fe[_0x6539d2]['markersEnd'][_0x114756];if(!_0x2fad7c['has'](_0x48ad0c))continue;const {group:_0x1f9a97,type:_0x437672}=_0x343d1b(_0x48ad0c);if(_0x5937('0xbc')!=_0x1f9a97||_0x5937('0x12c')!=_0x437672&&_0x5937('0x57')!=_0x437672)continue;_0x3a63fe[_0x6539d2]['markersEnd'][_0x5937('0xac')](_0x114756,0x1),_0x114756--;const _0xa17ada=_0x68cec[_0x5937('0x4c')](_0xa6d21b=>_0xa6d21b[_0x5937('0x41')]==_0x48ad0c);_0xa17ada>-0x1&&_0x68cec[_0x5937('0xac')](_0xa17ada,0x1);}}function _0x343d1b(_0x4f93a0){const _0x25b293=_0x4f93a0['split'](':');return{'group':_0x25b293[0x0],'type':_0x25b293[0x1],'subType':_0x25b293[_0x5937('0xcf')]>=0x5?_0x25b293[0x2]:null,'id':_0x25b293[_0x5937('0xcf')]<0x5?_0x25b293[0x2]:_0x25b293[0x3],'authorId':_0x25b293[_0x5937('0xcf')]<0x5?_0x25b293[0x3]:_0x25b293[0x4],'markerCount':0x6==_0x25b293[_0x5937('0xcf')]?_0x25b293[0x5]:null};}function _0x395d89(_0x43839e){for(let _0x1b1c5c=0x0;_0x1b1c5c<_0x68cec[_0x5937('0xcf')];_0x1b1c5c++){if(_0x43839e[_0x5937('0x4')]&&'insertion'==_0x68cec[_0x1b1c5c][_0x5937('0x84')])return _0x43839e[_0x5937('0xa7')]=_0x68cec[_0x1b1c5c],void delete _0x43839e[_0x5937('0x4')];if(!_0x43839e[_0x5937('0x4')]&&!_0x43839e[_0x5937('0x9c')]&&_0x5937('0x57')==_0x68cec[_0x1b1c5c][_0x5937('0x84')])return void(_0x43839e[_0x5937('0xf4')]=_0x68cec[_0x1b1c5c]);}}}[_0x5937('0x4f')](_0x470af5,_0x55dd3e){let _0x2ca13f=0x0,_0x54fa80=!0x1;const _0x7fad4=new Map();for(const _0x71ec43 of _0x470af5)_0x71ec43[_0x55dd3e]?_0x54fa80&&(_0x2ca13f++,_0x54fa80=!0x1):(_0x2ca13f++,_0x54fa80=!0x0),_0x7fad4[_0x5937('0xa9')](_0x71ec43['id'],_0x2ca13f);for(let _0xf29908=0x0;_0xf29908<_0x470af5['length'];_0xf29908++){if(_0x5937('0x9c')==_0x55dd3e&&_0x470af5[_0xf29908]['isAdded']||_0x5937('0x4')==_0x55dd3e&&_0x470af5[_0xf29908][_0x5937('0x9c')])continue;if(_0x5937('0x61')==_0x470af5[_0xf29908][_0x5937('0x84')]){_0x470af5[_0xf29908][_0x5937('0x97')]=0x0;continue;}const _0xa22779=_0x7fad4[_0x5937('0x118')](_0x470af5[_0xf29908]['pairId']),_0x269646=_0x7fad4[_0x5937('0x118')](_0x470af5[_0xf29908]['id']);_0x470af5[_0xf29908][_0x5937('0x97')]=_0xa22779-_0x269646;}}['_getRevisionsRange'](_0x449146,_0x354dd5,_0x2a6df1=!0x1){const _0x339fa1=[];let _0x4d410f=this[_0x5937('0x42')]['getIndex'](_0x449146),_0x3c8a56=this['repository'][_0x5937('0xe')](_0x354dd5);for(-0x1==_0x3c8a56&&(_0x3c8a56=this[_0x5937('0x42')][_0x5937('0xf0')][_0x5937('0xcf')],_0x2a6df1=!0x1);_0x4d410f<_0x3c8a56;)_0x339fa1[_0x5937('0xaa')](this[_0x5937('0x42')]['getRevision'](_0x4d410f)),_0x4d410f++;return _0x2a6df1&&_0x339fa1[_0x5937('0xaa')](this[_0x5937('0x42')]['getRevision'](_0x4d410f)),_0x339fa1;}[_0x5937('0x0')](_0x38c305,_0x58a8b8,_0x91f653,_0x503172){const _0x6efe27=this['editor']['model'][_0x5937('0x11d')];let _0xa2de83=_0x58a8b8;for(;_0x38c305[_0xa2de83]&&_0x38c305[_0xa2de83][_0x5937('0x4')];)_0xa2de83++;let _0x4039b7=_0x503172;for(;_0x91f653[_0x4039b7]&&_0x91f653[_0x4039b7]['isRemoved'];)_0x4039b7++;_0x5996c2(_0x38c305,_0x58a8b8,_0xa2de83),_0x5996c2(_0x91f653,_0x503172,_0x4039b7);const _0x3a521d=_0x91f653[_0x5937('0xdd')](_0x503172,_0x4039b7)[_0x5937('0xf7')](_0x38c305[_0x5937('0xdd')](_0x58a8b8,_0xa2de83));return _0x3a521d[_0x5937('0xc8')]((_0x33bd63,_0x1a8dee)=>_0x33bd63[_0x5937('0x10f')]!=_0x1a8dee[_0x5937('0x10f')]?_0x33bd63[_0x5937('0x10f')]-_0x1a8dee[_0x5937('0x10f')]:_0x33bd63['level']!=_0x1a8dee[_0x5937('0x124')]?_0x33bd63[_0x5937('0x124')]-_0x1a8dee[_0x5937('0x124')]:_0x33bd63['distance']!=_0x1a8dee['distance']?_0x1a8dee[_0x5937('0x97')]-_0x33bd63[_0x5937('0x97')]:!!_0x33bd63['isAdded']!=!!_0x1a8dee[_0x5937('0x4')]?-0x1==_0x33bd63['side']||0x0==_0x33bd63['side']?_0x33bd63[_0x5937('0x4')]?-0x1:0x1:_0x33bd63[_0x5937('0x4')]?0x1:-0x1:_0x33bd63[_0x5937('0x5')]-_0x1a8dee['index']),{'commonTape':_0x3a521d,'iEnd':_0xa2de83,'jEnd':_0x4039b7};function _0x5996c2(_0x124c29,_0x3046bf,_0x4424ea){let _0x5eff8b=-0x1,_0x156786=Number['POSITIVE_INFINITY'],_0x3e5a3b=!0x0;for(let _0x10b9cf=_0x3046bf;_0x10b9cf<_0x4424ea;_0x10b9cf++)if(_0x6efe27['isInline'](_0x124c29[_0x10b9cf]['item'])||(_0x3e5a3b=!0x1),_0x124c29[_0x10b9cf][_0x5937('0x8')]['startIndex']<_0x3046bf&&(_0x5eff8b=_0x10b9cf),_0x124c29[_0x10b9cf][_0x5937('0x8')][_0x5937('0x3b')]>=_0x4424ea){_0x156786=_0x10b9cf;break;}_0x3e5a3b&&(_0x5eff8b=_0x4424ea-0x1);for(let _0x516cef=_0x3046bf;_0x516cef<_0x4424ea;_0x516cef++)_0x124c29[_0x516cef]['side']=_0x516cef<=_0x5eff8b?-0x1:_0x516cef<_0x156786?0x0:0x1,_0x124c29[_0x516cef]['index']=_0x516cef;let _0x4a74e2=0x0;for(let _0x525d82=_0x3046bf;_0x525d82<=_0x5eff8b;_0x525d82++)0x0==_0x124c29[_0x525d82][_0x5937('0x97')]?_0x124c29[_0x525d82]['level']=_0x4a74e2:(_0x4a74e2++,_0x124c29[_0x525d82][_0x5937('0x124')]=_0x4a74e2,_0x4a74e2++);for(let _0x4bba1d=_0x3046bf;_0x4bba1d<_0x4424ea;_0x4bba1d++)0x0==_0x124c29[_0x4bba1d][_0x5937('0x10f')]&&(_0x124c29[_0x4bba1d][_0x5937('0x124')]=_0x4a74e2);_0x4a74e2=0x0;for(let _0x423a31=_0x4424ea-0x1;_0x423a31>=_0x156786;_0x423a31--)0x0==_0x124c29[_0x423a31][_0x5937('0x97')]?_0x124c29[_0x423a31][_0x5937('0x124')]=_0x4a74e2:(_0x4a74e2--,_0x124c29[_0x423a31][_0x5937('0x124')]=_0x4a74e2,_0x4a74e2--);}}[_0x5937('0xa4')](_0x783952){const _0x2f949c=new Map(),_0x557f94=this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x11d')];for(let _0x546014=0x1;_0x546014<_0x783952[_0x5937('0xcf')];_0x546014++){let _0x5508a1,_0x43fbc6,_0x237484;const _0x1f78fb=_0x783952[_0x546014],_0x28beee=_0x783952[_0x546014-0x1];if(_0x5937('0x61')==_0x1f78fb[_0x5937('0x84')])continue;if(_0x1f78fb[_0x5937('0x84')]!=_0x28beee['type'])continue;if(!_0x557f94['isBlock'](_0x28beee[_0x5937('0x8')])||_0x557f94['isLimit'](_0x28beee[_0x5937('0x8')]))continue;if(!_0x557f94['isBlock'](_0x1f78fb[_0x5937('0x8')])||_0x557f94[_0x5937('0xef')](_0x1f78fb[_0x5937('0x8')]))continue;if((_0x783952[_0x546014]['isAdded']||_0x783952[_0x546014][_0x5937('0xa7')])&&_0x783952[_0x546014-0x1]['isRemoved'])_0x5508a1=_0x783952[_0x546014],_0x43fbc6=_0x783952[_0x546014-0x1],_0x237484=_0x546014-0x1;else{if(!_0x783952[_0x546014][_0x5937('0x9c')]||!_0x783952[_0x546014-0x1]['isAdded']&&!_0x783952[_0x546014-0x1][_0x5937('0xa7')])continue;_0x5508a1=_0x783952[_0x546014-0x1],_0x43fbc6=_0x783952[_0x546014],_0x237484=_0x546014;}const _0x46c74f=_0x5508a1[_0x5937('0x124')]==_0x43fbc6[_0x5937('0x124')],_0x355ea3=Math[_0x5937('0x21')](_0x5508a1[_0x5937('0x124')])<Math[_0x5937('0x21')](_0x43fbc6[_0x5937('0x124')])&&0x0==_0x43fbc6[_0x5937('0x97')];(_0x46c74f||_0x355ea3)&&(_0x2f949c['set'](_0x43fbc6['id'],_0x5508a1['id']),_0x783952['splice'](_0x237484,0x1),_0x546014--,_0x5508a1[_0x5937('0x4')]=!0x1);}for(let _0x4300f=0x0;_0x4300f<_0x783952['length'];_0x4300f++)_0x2f949c[_0x5937('0x89')](_0x783952[_0x4300f][_0x5937('0x117')])&&(_0x783952[_0x4300f][_0x5937('0x117')]=_0x2f949c[_0x5937('0x118')](_0x783952[_0x4300f][_0x5937('0x117')]));}['_removeMissingPairs'](_0xbc141){const _0x2e14d6=new Set(_0xbc141[_0x5937('0x65')](_0x249919=>_0x249919['id']));for(let _0x125e6f=0x0;_0x125e6f<_0xbc141[_0x5937('0xcf')];_0x125e6f++)_0x2e14d6[_0x5937('0x89')](_0xbc141[_0x125e6f][_0x5937('0x117')])||0x0==_0xbc141[_0x125e6f][_0x5937('0x97')]||(_0xbc141[_0x125e6f][_0x5937('0xc7')]=!0x0);return _0xbc141[_0x5937('0x5d')](_0x7b8e81=>!_0x7b8e81[_0x5937('0xc7')]);}[_0x5937('0xae')](_0x32234b){const _0x357c1e=new Set();for(let _0x353788=0x0;_0x353788<_0x32234b[_0x5937('0xcf')];_0x353788++){if(_0x357c1e['has'](_0x32234b[_0x353788]['id'])&&_0x32234b[_0x353788][_0x5937('0x9c')]&&(_0x32234b[_0x353788][_0x5937('0xc7')]=!0x0),_0x32234b[_0x353788][_0x5937('0xc7')])continue;if(0x0==_0x32234b[_0x353788][_0x5937('0x97')])continue;if(_0x5937('0xf3')!=_0x32234b[_0x353788][_0x5937('0x84')])continue;if(null==_0x32234b[_0x353788]['pairId'])continue;let _0x1c7a84=_0x353788+0x1,_0xe2e7fe=0x0;for(;_0x32234b[_0x1c7a84]['id']!=_0x32234b[_0x353788][_0x5937('0x117')];)_0x5937('0xf3')==_0x32234b[_0x1c7a84][_0x5937('0x84')]?_0xe2e7fe++:_0x5937('0xa')==_0x32234b[_0x1c7a84][_0x5937('0x84')]&&_0xe2e7fe--,_0x1c7a84++;if(0x0!=_0xe2e7fe){if(_0x32234b[_0x353788][_0x5937('0x9c')])_0x32234b[_0x353788][_0x5937('0xc7')]=!0x0;else for(;_0x1c7a84!=_0x353788;)_0x32234b[_0x1c7a84][_0x5937('0x9c')]&&0x0!=_0x32234b[_0x1c7a84][_0x5937('0x97')]&&(_0x32234b[_0x1c7a84][_0x5937('0xc7')]=!0x0,_0x357c1e[_0x5937('0x49')](_0x32234b[_0x1c7a84][_0x5937('0x117')])),_0x1c7a84--;}}return _0x32234b['filter'](_0xc17808=>!_0xc17808[_0x5937('0xc7')]);}[_0x5937('0x120')](_0x11d5c3){const _0x374ef3=this['editor'][_0x5937('0x116')][_0x5937('0x11d')];for(let _0x43271c=0x0;_0x43271c<_0x11d5c3[_0x5937('0xcf')];_0x43271c++){if(!(_0x11d5c3[_0x43271c][_0x5937('0x4')]||_0x11d5c3[_0x43271c][_0x5937('0xa7')]||_0x11d5c3[_0x43271c][_0x5937('0x9c')]||_0x11d5c3[_0x43271c][_0x5937('0xf4')]))continue;if(0x0==_0x11d5c3[_0x43271c][_0x5937('0x97')])continue;const _0x2a48ec=_0x11d5c3[_0x43271c][_0x5937('0x8')];_0x374ef3[_0x5937('0xe2')](_0x2a48ec)||_0x374ef3['isLimit'](_0x2a48ec)||(_0x11d5c3[_0x43271c][_0x5937('0x4')]&&delete _0x11d5c3[_0x43271c][_0x5937('0x4')],_0x11d5c3[_0x43271c][_0x5937('0xa7')]&&delete _0x11d5c3[_0x43271c][_0x5937('0xa7')],_0x11d5c3[_0x43271c][_0x5937('0xf4')]&&delete _0x11d5c3[_0x43271c][_0x5937('0xf4')],_0x11d5c3[_0x43271c][_0x5937('0x9c')]&&(_0x11d5c3[_0x43271c][_0x5937('0xc7')]=!0x0));}return _0x11d5c3[_0x5937('0x5d')](_0x4e36aa=>!_0x4e36aa[_0x5937('0xc7')]);}[_0x5937('0x16')](_0x4cb459,_0x335474,_0x1de706){const _0x159f52=new _0x3be22e(),_0x374369=[],_0x2264e4=new Map(),_0x35f6b6=this[_0x5937('0x110')][_0x5937('0x116')],_0x187eb0=_0x35f6b6[_0x5937('0x11d')],_0x2194ee=[_0x159f52],_0x3524af={},_0x527352={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43b3b8=null;const _0x1e36d7=[0x0];for(let _0x1deced=0x0;_0x1deced<_0x4cb459[_0x5937('0xcf')];_0x1deced++){let _0x4df175,_0x418e04;if(_0x5937('0xf3')===_0x4cb459[_0x1deced]['type']){_0x4df175=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7);const _0x48de7e=new _0x586de6(_0x4cb459[_0x1deced]['item'][_0x5937('0x41')],_0x4cb459[_0x1deced][_0x5937('0x8')][_0x5937('0x54')]());_0x2194ee[0x0][_0x5937('0x2f')](_0x48de7e),_0x1e36d7[_0x5937('0xaa')](0x0),_0x2194ee['unshift'](_0x48de7e),_0x418e04=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x43b3b8=null;}else{if(_0x5937('0xa')===_0x4cb459[_0x1deced][_0x5937('0x84')])_0x2194ee[_0x5937('0x17')](),_0x4df175=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x1e36d7[_0x5937('0x8a')](),_0x1e36d7[_0x1e36d7[_0x5937('0xcf')]-0x1]++,_0x418e04=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x43b3b8=null;else{if(_0x4df175=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x43b3b8&&_0x4df0a3(_0x43b3b8,_0x4cb459[_0x1deced][_0x5937('0x8')]))_0x43b3b8[_0x5937('0xf6')]+=_0x4cb459[_0x1deced]['item'][_0x5937('0xfa')];else{const _0x15b30c=new _0x45b63b(_0x4cb459[_0x1deced]['item']['data'],_0x4cb459[_0x1deced][_0x5937('0x8')][_0x5937('0x54')]());_0x2194ee[0x0]['_appendChild'](_0x15b30c),_0x43b3b8=_0x15b30c;}_0x1e36d7[_0x1e36d7[_0x5937('0xcf')]-0x1]+=_0x4cb459[_0x1deced][_0x5937('0x8')][_0x5937('0x8e')],_0x418e04=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7);}}for(const _0xa22f2f of _0x4cb459[_0x1deced][_0x5937('0x22')])_0x2264e4[_0x5937('0xa9')](_0xa22f2f,{'start':_0x4df175,'end':null});_0x271263(_0x5937('0xf4'),_0x1deced,_0x4df175,_0x418e04),_0x271263(_0x5937('0xa7'),_0x1deced,_0x4df175,_0x418e04),_0x271263(_0x5937('0x9c'),_0x1deced,_0x4df175,_0x418e04),_0x271263(_0x5937('0x4'),_0x1deced,_0x4df175,_0x418e04);for(const _0x58d2ce of _0x4cb459[_0x1deced][_0x5937('0x50')]){_0x2264e4[_0x5937('0x118')](_0x58d2ce)[_0x5937('0x36')]=_0x418e04;}}for(const [_0x40f4fe,_0xd50472]of _0x2264e4){const _0xb0c3d5=this[_0x5937('0x110')]['model'][_0x5937('0x7a')](_0xd50472[_0x5937('0xbe')],_0xd50472[_0x5937('0x36')]);_0x159f52[_0x5937('0x113')]['set'](_0x40f4fe,_0xb0c3d5);}return _0x374369['sort']((_0x3d388b,_0x3b0db1)=>{const _0x33e173=_0x159f52[_0x5937('0x113')][_0x5937('0x118')](_0x5937('0x103')+_0x3d388b['id']),_0x3c8c71=_0x159f52[_0x5937('0x113')][_0x5937('0x118')]('revision:'+_0x3b0db1['id']);return _0x33e173['start'][_0x5937('0x11b')](_0x3c8c71[_0x5937('0xbe')])?-0x1:_0x33e173['start'][_0x5937('0x31')](_0x3c8c71[_0x5937('0xbe')])?0x1:_0x33e173['end']['isBefore'](_0x3c8c71['end'])?-0x1:_0x33e173[_0x5937('0x36')][_0x5937('0x31')](_0x3c8c71['end'])?0x1:_0x5937('0x49')===_0x3d388b[_0x5937('0x84')]?-0x1:0x1;}),{'root':_0x159f52,'changes':_0x374369};function _0x271263(_0x15412f,_0xae7ffb,_0x419356,_0x450ca6){const _0x3ade5a=!!_0x4cb459[_0xae7ffb][_0x15412f],_0x1dc386=_0x3ade5a?_0x4cb459[_0xae7ffb][_0x15412f][_0x5937('0xc6')]:null,_0x5ec0c7=_0xae7ffb===_0x4cb459[_0x5937('0xcf')]-0x1,_0x564669=_0x527352[_0x15412f][0x0],_0x582a55=_0x187eb0[_0x5937('0x80')](_0x4cb459[_0xae7ffb][_0x5937('0x8')]);!_0x3524af[_0x15412f]&&_0x3ade5a?_0x3524af[_0x15412f]={'start':_0x419356,'tapeItem':_0x4cb459[_0xae7ffb],'userId':_0x1dc386,'type':_0x15412f}:_0x3524af[_0x15412f]&&!_0x3ade5a?(_0x3524af[_0x15412f][_0x5937('0x36')]=_0x419356,_0x47d869(_0x3524af[_0x15412f]),_0x3524af[_0x15412f]=null):_0x3524af[_0x15412f]&&_0x3ade5a&&_0x3524af[_0x15412f]['userId']!==_0x1dc386&&(_0x3524af[_0x15412f][_0x5937('0x36')]=_0x419356,_0x564669&&_0x564669[_0x5937('0xc6')]===_0x3524af[_0x15412f][_0x5937('0xc6')]||_0x47d869(_0x3524af[_0x15412f]),_0x3524af[_0x15412f]={'start':_0x419356,'tapeItem':_0x4cb459[_0xae7ffb],'userId':_0x1dc386,'type':_0x15412f}),_0x3524af[_0x15412f]&&_0x582a55&&(_0x5937('0xf3')!==_0x4cb459[_0xae7ffb][_0x5937('0x84')]||_0x564669&&_0x564669[_0x5937('0xc6')]===_0x1dc386||_0x527352[_0x15412f]['unshift']({'userId':_0x1dc386,'object':_0x4cb459[_0xae7ffb][_0x5937('0x8')],'change':_0x3524af[_0x15412f]}),_0x5937('0xa')===_0x4cb459[_0xae7ffb][_0x5937('0x84')]&&_0x564669&&_0x564669[_0x5937('0x106')]===_0x4cb459[_0xae7ffb]['item']&&(_0x527352[_0x15412f][_0x5937('0x17')](),_0x3524af[_0x15412f]=_0x564669[_0x5937('0x59')])),_0x3524af[_0x15412f]&&_0x5ec0c7&&(_0x3524af[_0x15412f][_0x5937('0x36')]=_0x450ca6,_0x47d869(_0x3524af[_0x15412f]),_0x3524af[_0x15412f]=null);}function _0x47d869({start:_0x5d3375,end:_0x4631c0,tapeItem:_0x165323,userId:_0x3a7638,type:_0x44f15a}){const _0x21504e=_0x165323['item'],_0x12c9c1=_0x35f6b6['schema'][_0x5937('0xe2')](_0x21504e)&&!_0x35f6b6[_0x5937('0x11d')][_0x5937('0xef')](_0x21504e),_0x4df35c=_0x5d3375['nodeAfter']==_0x4631c0[_0x5937('0x5c')]&&_0x4631c0[_0x5937('0x38')];if(_0x12c9c1&&_0x4df35c)return;const _0x1b12c8=_0x35f6b6['createRange'](_0x5d3375,_0x4631c0),_0x3ce3e4=_0x335474[_0x5937('0x118')](_0x3a7638),_0x2489bf=new _0x4782d0({'author':_0x3ce3e4,'type':_0x5937('0x4')==_0x44f15a||'isAddSuggestion'==_0x44f15a?'add':_0x5937('0x96'),'data':{'isSuggestion':_0x5937('0xa7')==_0x44f15a||_0x5937('0xf4')==_0x44f15a},'createdAt':new Date(),'rootName':_0x1de706});_0x374369[_0x5937('0xaa')](_0x2489bf),_0x159f52['markers'][_0x5937('0xa9')]('revision:'+_0x2489bf['id'],_0x1b12c8);}function _0x4df0a3(_0x435348,_0x541d37){const _0x2ab0b9=_0x435348[_0x5937('0x54')](),_0x801a95=_0x541d37[_0x5937('0x54')]();for(const _0x5d9b5b of _0x2ab0b9){if(_0x5d9b5b[0x1]!==_0x541d37['getAttribute'](_0x5d9b5b[0x0]))return!0x1;_0x801a95['next']();}return _0x801a95[_0x5937('0x1e')]()[_0x5937('0x53')];}}[_0x5937('0xed')](){this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0x11'))[_0x5937('0x28')]({'view':_0x5937('0xd2')}),this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0xce'))['markerToHighlight']({'model':_0x5937('0xd2'),'view':_0x4e8fff=>{const _0x102bba=_0x4e8fff[_0x5937('0x20')][_0x5937('0x4d')](':')[0x1],_0xdb0714=this[_0x5937('0x7f')](_0x102bba);if(!_0xdb0714)return null;const _0x4e6446='add'==_0xdb0714['type']?_0x5937('0x12c'):'deletion',_0x38f223=[_0x5937('0x125'),_0x5937('0xde')+_0x4e6446];return _0xdb0714[_0x5937('0xfa')][_0x5937('0xd9')]&&_0x38f223[_0x5937('0xaa')](_0x5937('0xde')+_0x4e6446+_0x5937('0x10b')),this[_0x5937('0xd4')]==_0xdb0714&&_0x38f223['push']('ck-suggestion-marker--active'),{'classes':_0x38f223,'attributes':{'data-change-id':_0x102bba}};}}),this['editor']['conversion'][_0x5937('0x44')](_0x5937('0x11'))[_0x5937('0x49')](_0x40f2e6=>{_0x40f2e6['on'](_0x5937('0xdf'),(_0x166375,_0x43e87f,_0x40a166)=>{const _0x12c35f=_0x43e87f['viewItem']['getChild'](0x0);if(!_0x12c35f||!_0x12c35f['is']('element',_0x5937('0x11e')))return;if(!_0x40a166[_0x5937('0xd6')][_0x5937('0x3c')](_0x12c35f,{'attributes':['vid_start',_0x5937('0x56')]}))return;const _0x89db36=_0x43e87f['modelRange'][_0x5937('0xbe')][_0x5937('0x7b')];_0x40a166[_0x5937('0x129')][_0x5937('0xb6')](_0x5937('0x34'),_0x12c35f[_0x5937('0x18')](_0x5937('0x34')),_0x89db36),_0x40a166[_0x5937('0x129')]['setAttribute']('vid_end',_0x12c35f[_0x5937('0x18')]('vid_end'),_0x89db36);},{'priority':_0x5937('0x4b')});}),this[_0x5937('0x110')]['conversion'][_0x5937('0x44')]('upcast')[_0x5937('0x49')](_0x1546da=>{_0x1546da['on']('element',(_0x48380a,_0x53e37e,_0x7f1daa)=>{if(!_0x7f1daa[_0x5937('0xd6')][_0x5937('0x3c')](_0x53e37e['viewItem'],{'attributes':['vid_start',_0x5937('0x56')]}))return;if(_0x53e37e[_0x5937('0x19')][_0x5937('0x12a')])return;const _0x50f373=_0x53e37e[_0x5937('0x19')][_0x5937('0xbe')][_0x5937('0x7b')];_0x50f373[_0x5937('0x128')](_0x5937('0x34'))||_0x50f373['hasAttribute'](_0x5937('0x23'))||(_0x7f1daa[_0x5937('0x129')][_0x5937('0xb6')](_0x5937('0x34'),_0x53e37e[_0x5937('0xca')][_0x5937('0x18')](_0x5937('0x34')),_0x50f373),_0x7f1daa['writer'][_0x5937('0xb6')]('vid_end',_0x53e37e[_0x5937('0xca')][_0x5937('0x18')](_0x5937('0x56')),_0x50f373));},{'priority':'low'});}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0x11'))[_0x5937('0x29')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x5937('0x23'),'value':_0x4d900a=>_0x4d900a[_0x5937('0x18')]('vid')}}),this[_0x5937('0x110')][_0x5937('0x116')]['schema']['on']('checkAttribute',(_0x4db79d,[,_0x52924f])=>{[_0x5937('0x34'),_0x5937('0x56'),_0x5937('0x23')][_0x5937('0xec')](_0x52924f)&&(_0x4db79d[_0x5937('0x9')]=!0x0,_0x4db79d[_0x5937('0x2')]());},{'priority':_0x5937('0xd1')}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0x6e'))[_0x5937('0x49')](_0x1f8834=>{_0x1f8834['on'](_0x5937('0x4e'),(_0x171ee6,_0x2d32da,_0x48fae4)=>{if('\x20'!=_0x2d32da[_0x5937('0x8')][_0x5937('0xfa')]||_0x2d32da['item'][_0x5937('0x5c')][_0x5937('0x6c')]>0x1)return;if(!_0x48fae4[_0x5937('0xd6')][_0x5937('0x3c')](_0x2d32da[_0x5937('0x8')],_0x171ee6[_0x5937('0x41')]))return;const _0x4e939b=_0x48fae4[_0x5937('0x129')],_0xeb720e=_0x48fae4[_0x5937('0x74')][_0x5937('0x4a')](_0x2d32da[_0x5937('0x14')]);_0x4e939b[_0x5937('0x102')](_0xeb720e,_0x4e939b[_0x5937('0xe4')](_0x5937('0xd8')));});}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0x6e'))[_0x5937('0xb3')]({'model':_0x5937('0xd2')}),this[_0x5937('0x110')][_0x5937('0x47')][_0x5937('0xda')]['on']('addMarker:revision',function(_0x2dcd4f){const _0x9ada2c=_0x2dcd4f[_0x5937('0xa8')][_0x5937('0x118')](_0x5937('0x3a'));return(_0x5408d8,_0x902b36,_0x3c0d25)=>{const _0x3bd44d=_0x902b36[_0x5937('0x20')][_0x5937('0x4d')](':')[0x1],_0x59a08f=_0x9ada2c[_0x5937('0x7f')](_0x3bd44d);if(!_0x59a08f)return null;const _0x1493b0=_0x5937('0x49')==_0x59a08f[_0x5937('0x84')]?'split':_0x5937('0xfe');if(!_0x3c0d25['consumable'][_0x5937('0xe9')](_0x902b36['markerRange'],_0x5408d8[_0x5937('0x41')]))return;const _0x4d7e41=_0x902b36[_0x5937('0x9b')][_0x5937('0x1a')](),_0x3edb87=_0x902b36[_0x5937('0x9b')][_0x5937('0xbe')],_0x878b24=_0x2dcd4f[_0x5937('0x116')][_0x5937('0x11d')];let _0x140928=null,_0x5cc16f=null,_0x3fa81b=!0x1,_0x5e0a1f=!0x1;for(const _0x13e0d4 of _0x4d7e41){const _0x182463=_0x13e0d4[_0x5937('0x8')];_0x3fa81b=_0x3fa81b||_0x878b24[_0x5937('0xa6')](_0x182463);const _0x478170=_0x3c0d25[_0x5937('0x74')][_0x5937('0x55')](_0x182463);if(_0x478170&&_0x478170['getCustomProperty'](_0x5937('0x6')))return;'elementEnd'==_0x13e0d4[_0x5937('0x84')]&&(_0x878b24[_0x5937('0xe2')](_0x182463)&&!_0x878b24[_0x5937('0xef')](_0x182463)&&(_0x182463[_0x5937('0x43')]||_0x3edb87['isAtEnd']?_0x140928&&_0x140928[_0x5937('0x5c')]==_0x182463||(_0x140928=_0x182463,_0x242b9f(_0x13e0d4[_0x5937('0x35')]),_0x5e0a1f=!0x0):_0x5cc16f=_0x5cc16f||_0x13e0d4[_0x5937('0x35')]));}function _0x242b9f(_0x5cce4e){const _0x5dd5b5=_0x3c0d25[_0x5937('0x129')][_0x5937('0x72')](_0x5937('0xd8'),{'class':_0x5937('0xde')+_0x1493b0}),_0x1aaba6=_0x3c0d25[_0x5937('0x74')]['toViewPosition'](_0x5cce4e);_0x59a08f['data'][_0x5937('0xd9')]&&_0x3c0d25[_0x5937('0x129')][_0x5937('0x94')](_0x5937('0xde')+_0x1493b0+'-new',_0x5dd5b5),_0x9ada2c[_0x5937('0xd4')]==_0x59a08f&&_0x3c0d25['writer']['addClass'](_0x5937('0x64'),_0x5dd5b5),_0x3c0d25[_0x5937('0x129')][_0x5937('0x6a')](_0x1aaba6,_0x5dd5b5),_0x3c0d25['mapper']['bindElementToMarker'](_0x5dd5b5,_0x902b36['markerName']);}_0x3fa81b||_0x5e0a1f||!_0x5cc16f||_0x242b9f(_0x5cc16f);};}(this['editor']),{'priority':'high'}),this[_0x5937('0x110')][_0x5937('0x47')]['downcastDispatcher']['on'](_0x5937('0xb'),(_0x1bb0d8,_0x34d98a,_0x2901c1)=>{const _0x143763=_0x2901c1[_0x5937('0x74')][_0x5937('0x112')](_0x34d98a[_0x5937('0x20')]);if(_0x143763)for(const _0x4b8d70 of _0x143763)(_0x4b8d70[_0x5937('0xe7')](_0x5937('0xb7'))||_0x4b8d70['hasClass'](_0x5937('0x77')))&&(_0x2901c1['mapper'][_0x5937('0x6f')](_0x4b8d70,_0x34d98a[_0x5937('0x20')]),_0x2901c1[_0x5937('0x129')][_0x5937('0x96')](_0x4b8d70));},{'priority':_0x5937('0x76')}),this[_0x5937('0x110')]['editing']['downcastDispatcher']['on'](_0x5937('0xc0'),(_0x3a1d3e,_0x55882c,_0x6e9cc5)=>{const _0x1c0a8d=_0x55882c[_0x5937('0x20')]['split'](':')[0x1],_0x45812e=this[_0x5937('0x7f')](_0x1c0a8d);if(!_0x45812e)return null;const _0x16355c='add'==_0x45812e[_0x5937('0x84')]?_0x5937('0x4d'):_0x5937('0xfe');if(_0x6e9cc5['consumable'][_0x5937('0xe9')](_0x55882c[_0x5937('0x9b')],_0x3a1d3e[_0x5937('0x41')]))for(const _0x4334b2 of _0x55882c[_0x5937('0x9b')][_0x5937('0x119')]()){if(!_0x4334b2['is'](_0x5937('0x123'),_0x5937('0xe8')))continue;const _0x3cae18=_0x6e9cc5[_0x5937('0x129')][_0x5937('0x72')](_0x5937('0xd8'),{'class':_0x5937('0xde')+_0x16355c}),_0x530f25=_0x6e9cc5[_0x5937('0x74')][_0x5937('0x63')](this['editor'][_0x5937('0x116')][_0x5937('0x67')](_0x4334b2));_0x45812e[_0x5937('0xfa')]['isSuggestion']&&_0x6e9cc5['writer']['addClass'](_0x5937('0xde')+_0x16355c+'-new',_0x3cae18),this['activeChange']==_0x45812e&&_0x6e9cc5[_0x5937('0x129')]['addClass'](_0x5937('0x64'),_0x3cae18),_0x6e9cc5[_0x5937('0x129')][_0x5937('0x6a')](_0x530f25,_0x3cae18),_0x6e9cc5['mapper'][_0x5937('0xeb')](_0x3cae18,_0x55882c['markerName']);}},{'priority':_0x5937('0x76')}),this['editor']['model'][_0x5937('0xf8')]['on'](_0x5937('0x59'),()=>{this[_0x5937('0x110')][_0x5937('0x47')][_0x5937('0x86')][_0x5937('0x59')](_0x4be5d1=>{for(const _0x5eaa52 of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')]['getRootNames']()){const _0x12f28b=this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')][_0x5937('0x8d')](_0x5eaa52),_0x2ef7ca=this[_0x5937('0x110')]['editing'][_0x5937('0x86')][_0x5937('0xf8')][_0x5937('0x8d')](_0x5eaa52);if(_0x2ef7ca){const _0x3951f1=_0x12f28b['getAttribute'](_0x5937('0xee'));if(_0x4be5d1[_0x5937('0x10e')](_0x5937('0x2a'),_0x2ef7ca),_0x4be5d1['removeClass'](_0x5937('0xb2'),_0x2ef7ca),_0x4be5d1[_0x5937('0x45')](_0x5937('0xbd'),_0x2ef7ca),_0x4be5d1[_0x5937('0x45')](_0x5937('0x46'),_0x2ef7ca),_0x3951f1){const _0x46fe2c=this[_0x5937('0x7f')](_0x3951f1);if(!_0x46fe2c)return null;_0x4be5d1[_0x5937('0xb6')]('data-change-id',_0x3951f1,_0x2ef7ca),_0x4be5d1['addClass'](_0x5937('0x26')+_0x46fe2c[_0x5937('0x84')],_0x2ef7ca),this[_0x5937('0xd4')]==_0x46fe2c&&_0x4be5d1[_0x5937('0x94')]('ck-revision-history-root--active',_0x2ef7ca);}}}});}),this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0x11'))[_0x5937('0x28')]({'view':_0x5937('0xf9'),'model':_0x474062=>_0x5937('0x12')+_0x474062,'converterPriority':_0x5937('0xd1')}),this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0x11'))[_0x5937('0x28')]({'view':_0x5937('0x114'),'model':_0x3ed6e9=>_0x5937('0x32')+_0x3ed6e9,'converterPriority':'highest'}),this[_0x5937('0x110')][_0x5937('0x27')]['for']('dataDowncast')['markerToData']({'model':_0x5937('0xbc'),'view':_0x2a9e03=>({'name':_0x5937('0xb4')+_0x2a9e03,'group':_0x5937('0xbc')}),'converterPriority':_0x5937('0xd1')}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0xce'))[_0x5937('0x48')]({'model':'revision-suggestion','view':_0x3a66ee=>{const _0x3ca26a=_0x3a66ee['markerName'][_0x5937('0x4d')](':')[0x1];return _0x5937('0x12c')!=_0x3ca26a&&_0x5937('0x57')!=_0x3ca26a?null:{'classes':['ck-suggestion-preview-marker',_0x5937('0x7e')+_0x3ca26a]};}}),this['editor'][_0x5937('0x47')][_0x5937('0xda')]['on'](_0x5937('0x13'),et(this[_0x5937('0x110')],_0x5937('0xfe')),{'priority':_0x5937('0x76')}),this['editor'][_0x5937('0x47')][_0x5937('0xda')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x5937('0x110')],'split'),{'priority':'high'}),this[_0x5937('0x110')]['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1fc926,_0x1bdad5,_0x56bd51)=>{const _0x5cccaa=_0x56bd51[_0x5937('0x74')][_0x5937('0x112')](_0x1bdad5[_0x5937('0x20')]);if(_0x5cccaa)for(const _0x2d25e9 of _0x5cccaa)_0x2d25e9['is'](_0x5937('0x37'))&&(_0x56bd51['mapper']['unbindElementFromMarkerName'](_0x2d25e9,_0x1bdad5[_0x5937('0x20')]),_0x56bd51[_0x5937('0x129')][_0x5937('0x96')](_0x2d25e9));},{'priority':_0x5937('0x76')});}['_getChangeFromId'](_0x68802d){return this['_changeIdToChange'][_0x5937('0x118')](_0x68802d);}['_getViewForChange'](_0x3f06e8){return this['_changeView']&&this[_0x5937('0xe3')][_0x5937('0x69')](),this[_0x5937('0xe3')]=new _0xf36502(this[_0x5937('0x110')][_0x5937('0x8c')],_0x3f06e8),this[_0x5937('0xe3')];}[_0x5937('0x88')](){this['editor'][_0x5937('0x116')]['document'][_0x5937('0x1f')][_0x5937('0x107')](_0x5937('0xd2')),this['on']('change:activeView',(_0x2c6b30,_0x4cda73,_0x1ce113,_0x442517)=>{_0x442517&&this[_0x5937('0x15')][_0x5937('0x96')](_0x442517),_0x1ce113&&(this[_0x5937('0x15')][_0x5937('0x49')]({'view':_0x1ce113,'stackId':_0x5937('0x9a'),'position':{'target':()=>{const _0x2d355e=this['editor'][_0x5937('0x47')],_0x4a55e7=this['_getChangeFromId'](_0x1ce113[_0x5937('0xf5')]);let _0x185c43;if(_0x4a55e7[_0x5937('0xfa')][_0x5937('0x127')]){const _0x3cf797=_0x2d355e[_0x5937('0x86')][_0x5937('0x12b')](_0x4a55e7['rootName']);_0x185c43=Array[_0x5937('0xfd')](_0x3cf797['getClientRects']());}else{const _0x52d18f=this['editor'][_0x5937('0x116')][_0x5937('0x113')][_0x5937('0x118')]('revision:'+_0x1ce113['changeId']);_0x185c43=Array[_0x5937('0xfd')](_0x2d355e[_0x5937('0x74')][_0x5937('0x112')](_0x52d18f[_0x5937('0x41')]))[_0x5937('0x65')](_0xdd6e8a=>_0x2d355e[_0x5937('0x86')]['domConverter'][_0x5937('0x9f')](_0xdd6e8a))[_0x5937('0x65')](_0x1fdc7a=>Array['from'](_0x1fdc7a[_0x5937('0x60')]()))[_0x5937('0xcd')]();}if(!this[_0x5937('0x100')])return _0x185c43[0x0];return _0x185c43[_0x5937('0x104')](_0x3b3ca7=>_0x3b3ca7[_0x5937('0x126')]-0x3<=this[_0x5937('0x100')]['y']&&_0x3b3ca7[_0x5937('0xba')]+0x3>=this[_0x5937('0x100')]['y']&&_0x3b3ca7[_0x5937('0xa0')]-0x3<=this[_0x5937('0x100')]['x']&&_0x3b3ca7['right']+0x3>=this[_0x5937('0x100')]['x'])||_0x185c43[0x0];}}}),this['_balloon'][_0x5937('0x70')](_0x5937('0x9a')));}),this['on'](_0x5937('0xb9'),(_0x19d4a0,_0x1febd8,_0x14b9d4,_0x480a23)=>{this[_0x5937('0x121')]=_0x14b9d4?this['_getViewForChange'](_0x14b9d4):null,this[_0x5937('0x110')][_0x5937('0x116')]['change'](()=>{const _0x2328f1=this['editor'][_0x5937('0x47')];_0x480a23&&(_0x480a23[_0x5937('0xfa')][_0x5937('0x127')]?_0x2328f1[_0x5937('0x86')][_0x5937('0x59')](_0x524e37=>{_0x524e37[_0x5937('0x45')](_0x5937('0x46'),_0x2328f1[_0x5937('0x86')][_0x5937('0xf8')][_0x5937('0x8d')](_0x480a23[_0x5937('0xbb')]));}):_0x2328f1[_0x5937('0xff')](_0x5937('0x103')+_0x480a23['id'])),_0x14b9d4&&(_0x14b9d4[_0x5937('0xfa')]['isOnRoot']?_0x2328f1[_0x5937('0x86')][_0x5937('0x59')](_0x5c608e=>{_0x5c608e[_0x5937('0x94')](_0x5937('0x46'),_0x2328f1[_0x5937('0x86')]['document'][_0x5937('0x8d')](_0x14b9d4[_0x5937('0xbb')]));}):_0x2328f1[_0x5937('0xff')](_0x5937('0x103')+_0x14b9d4['id']));});}),this['listenTo'](this[_0x5937('0x110')][_0x5937('0x47')][_0x5937('0x86')][_0x5937('0xf8')],'mouseover',(_0x2e552c,_0x4151b7)=>{if(this[_0x5937('0xd4')])return;const _0x47e94c=this[_0x5937('0x10a')](_0x4151b7['target']),_0x22fc48=this['_changeIdToChange'][_0x5937('0x118')](_0x47e94c);_0x22fc48?(this['_activeViewTarget']={'x':_0x4151b7[_0x5937('0x11f')]['x'],'y':_0x4151b7[_0x5937('0x11f')]['y']},this[_0x5937('0x121')]=this['_getViewForChange'](_0x22fc48)):(this[_0x5937('0x100')]=null,this[_0x5937('0x121')]=null);}),this['listenTo'](this['editor']['editing']['view'][_0x5937('0xf8')],_0x5937('0x5b'),(_0x11d93c,_0x4e16a8)=>{const _0x50c83a=this['_findChangeIdFromDomTarget'](_0x4e16a8[_0x5937('0x3')]),_0x288808=this[_0x5937('0xd')][_0x5937('0x118')](_0x50c83a);_0x288808?(this[_0x5937('0x100')]={'x':_0x4e16a8[_0x5937('0x11f')]['x'],'y':_0x4e16a8[_0x5937('0x11f')]['y']},_0x288808===this['activeChange']?this['_balloon'][_0x5937('0x8f')]():this[_0x5937('0xd4')]=_0x288808):(this[_0x5937('0x100')]=null,this[_0x5937('0xd4')]=null);});}[_0x5937('0x10a')](_0x22a498){do{const _0x5110ef=_0x22a498[_0x5937('0x18')](_0x5937('0x2a'));if(_0x5110ef)return _0x5110ef;_0x22a498=_0x22a498['parent'];}while(_0x22a498);return null;}[_0x5937('0x91')](){this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x59')](_0x3b3244=>{for(const _0x56233d of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x113')])_0x3b3244[_0x5937('0x11c')](_0x56233d);});}}function et(_0x332c67,_0x44a8cc){return(_0x39042e,_0x195fc6,_0x3d5a84)=>{if(!_0x3d5a84[_0x5937('0xd6')]['test'](_0x195fc6[_0x5937('0x9b')],_0x39042e[_0x5937('0x41')]))return;const _0x29df2a=_0x195fc6['markerRange'][_0x5937('0x1a')](),_0x4f0075=_0x195fc6[_0x5937('0x9b')]['start'],_0x3ce2cf=_0x332c67['model'][_0x5937('0x11d')];let _0x4567b2=null,_0x49cfa0=null,_0x466d26=!0x1,_0x104ca4=!0x1;for(const _0x2bc00b of _0x29df2a){const _0x328dd9=_0x2bc00b[_0x5937('0x8')];_0x466d26=_0x466d26||_0x3ce2cf[_0x5937('0xa6')](_0x328dd9);const _0x52b3fd=_0x3d5a84[_0x5937('0x74')][_0x5937('0x55')](_0x328dd9);if(_0x52b3fd&&_0x52b3fd[_0x5937('0x78')](_0x5937('0x6')))return;_0x5937('0xa')==_0x2bc00b[_0x5937('0x84')]&&(_0x3ce2cf['isBlock'](_0x328dd9)&&!_0x3ce2cf[_0x5937('0xef')](_0x328dd9)&&(_0x328dd9[_0x5937('0x43')]||_0x4f0075[_0x5937('0x87')]?_0x4567b2&&_0x4567b2[_0x5937('0x5c')]==_0x328dd9||(_0x4567b2=_0x328dd9,_0x1a64e8(_0x2bc00b[_0x5937('0x35')]),_0x104ca4=!0x0):_0x49cfa0=_0x49cfa0||_0x2bc00b[_0x5937('0x35')]));}function _0x1a64e8(_0x242c81){const _0x20eb33=_0x3d5a84[_0x5937('0x74')]['toViewPosition'](_0x242c81),_0x3d5faf=_0x3d5a84[_0x5937('0x129')][_0x5937('0x72')](_0x5937('0xd8'),{'class':_0x5937('0x7e')+_0x44a8cc});_0x3d5a84[_0x5937('0x129')][_0x5937('0x6a')](_0x20eb33,_0x3d5faf),_0x3d5a84['mapper']['bindElementToMarker'](_0x3d5faf,_0x195fc6[_0x5937('0x20')]);}_0x466d26||_0x104ca4||!_0x49cfa0||_0x1a64e8(_0x49cfa0);};}export class RestoreRevisionCommand extends _0x676285{constructor(_0x33a5f6){super(_0x33a5f6);const _0x3e3d06=_0x33a5f6[_0x5937('0xa8')]['get'](d);this[_0x5937('0xe6')]=!0x1,this[_0x5937('0x58')](_0x3e3d06,'change:isReady',()=>this[_0x5937('0x68')]()),this[_0x5937('0x58')](_0x3e3d06,'change:isEnabled',()=>this['refresh']());}[_0x5937('0x7d')](){const _0x41c10c=this[_0x5937('0x110')],_0x1d6ea7=_0x41c10c[_0x5937('0xa8')]['get'](d),_0x1380b2=_0x1d6ea7[_0x5937('0x99')]?_0x1d6ea7[_0x5937('0x71')][_0x5937('0x25')]:null;_0x41c10c[_0x5937('0x2c')][_0x5937('0x118')](_0x5937('0xdc'))[_0x5937('0xfc')](_0x1380b2);}[_0x5937('0x68')](){const {isReady:_0x499421,isEnabled:_0x2a5a94}=this['editor'][_0x5937('0xa8')][_0x5937('0x118')](d);this['isEnabled']=_0x499421&&_0x2a5a94;}}export class ShowChangeCommand extends _0x676285{constructor(_0x4c053b,{direction:_0x3afb01}){super(_0x4c053b);const _0x203b14=_0x4c053b[_0x5937('0xa8')][_0x5937('0x118')](d);this[_0x5937('0xe6')]=!0x1,this[_0x5937('0xd0')]='forward'===_0x3afb01?0x1:-0x1,this['listenTo'](_0x203b14,_0x5937('0x92'),()=>this['refresh']()),this[_0x5937('0x58')](_0x203b14,_0x5937('0x5f'),()=>this['refresh']());}[_0x5937('0x7d')](){const _0x2c1005=this[_0x5937('0x110')],_0x1d0107=_0x2c1005[_0x5937('0xa8')][_0x5937('0x118')](d),{isNavigationMode:_0x4ea4da,currentChangeNumber:_0x761f2c}=_0x1d0107;let _0x5bff4e;if(_0x1d0107[_0x5937('0xd4')]=_0x4ea4da?_0x1d0107[_0x5937('0x71')][_0x5937('0x5a')][_0x5937('0x118')](_0x761f2c+this['_step']):_0x1d0107['diff']['changes'][_0x5937('0xc')],_0x1d0107[_0x5937('0xd4')][_0x5937('0xfa')][_0x5937('0x127')])_0x5bff4e=_0x2c1005[_0x5937('0x47')]['view'][_0x5937('0x12b')](_0x1d0107[_0x5937('0xd4')]['rootName']);else{const _0x12abbd=_0x2c1005[_0x5937('0x116')]['markers'][_0x5937('0x118')](_0x5937('0x103')+_0x1d0107[_0x5937('0xd4')]['id']);_0x5bff4e=_0x508032(_0x2c1005[_0x5937('0x47')],_0x12abbd);}_0x4bfb65({'target':_0x5bff4e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3a2bcb,currentChangeNumber:_0x12eca6,numberOfChanges:_0x545457,isReady:_0x752ddf,isEnabled:_0xf94a50}=this[_0x5937('0x110')]['plugins'][_0x5937('0x118')](d);this[_0x5937('0x3e')]=!!(_0xf94a50&&_0x752ddf&&_0x545457)&&(!_0x3a2bcb||(0x1===this[_0x5937('0xd0')]?_0x12eca6<_0x545457-0x1:_0x12eca6>0x0));}}
23
+ const _0x28d3=['change:isEnabled','push','plugins','_data','consumable','_markMarkers','suggestion','change:activeView','getRootNames','delete','bottom','forEach','_joinTapes','dataDowncast','resolve','_markMismatchedRemovedTags','_activeViewTarget','observeMarkers','editingDowncast','bind','_makeModelFromViewString','getAttributes','revision:','toViewPosition','ck-revision-history-root-add','revision-comment:','side','start','nextPosition','marked','_balloon','toData','roots','createRange','return','affectsData','getIndex','isReady','from','markerToData','item','all','writer','commands','_changeIdToChange','name','removeMarker:revision-suggestion','detachRoot','mousedown','addRevisionData','softBreak','map','slice','indexOf','viewItem','isOnRoot','insert','showNextChange','isAfter','getRoot','_removeRevisionMarkers','isRemoved','shift','_changeView','add','_setConversion','_fixObsoleteTags','element','isEqual','changeId','values','getRevisionRootsAttributes','default','restoreRevision','markerRange','ck-editor__editable__overlay','then','removeAttribute','insertions','_getRevisionsRange','editing','startsWith','uiElement','type','createRevision','set','data-change-id','_sortAndFilterDiffChanges','markerNameToElements','get','ck-suggestion-marker-split','find','comment','vid_start','markersStart','concat','getAttribute','code','toModel','_getDiff','remove','isRemoveSuggestion','enableReadOnlyMode','parse','deletions','model','activeChange','clear','isCollapsed','_processTape','elementEnd','_findChangeIdFromDomTarget','attribute:vid','markers','previousPosition','selection','restoreRevisionCallback','_setDistance','RevisionViewer','consume','_appendChild','dataToMarker','ck-suggestion-marker','revision-suggestion','getClientRects','removeMarker','domConverter','_initInteractions','keys','ck-revision-history-root-','mapper','span','_getViewObj','isBlock','_markSuggestions','attachChange','createPositionBefore','ck-suggestion-marker--active','backward','end','processor','revision-viewer','target','low','hasClass','getWalker','attributesBefore','parent','unbindElementFromMarkerName','right','_getChangeFromId','_revisions','level','removeMarker:revision','rootName','catch','_step','string','ck-suggestion-marker-merge','view','activeView','_markInsertions','_cleanMarkers','_getViewForChange','data','getChild','distance','maxOffset','data-revision-','unshift','addMarker:revision-suggestion:deletion','useFillerType','change','collaboration.channelId','test','insertion','left','listenTo','for','isAtStart','change:activeChange','checkAttribute','changes','addHighlight','revision-start','range','highest','init','splice','pairId','isAtEnd','removeClass','modelRange','elementToAttribute','markersEnd','change:isReady','isIncorrect','_setChanges','domEvent','oldRevisionId','getRevision','upcast','ck-suggestion-preview-marker-','isContent','diff','has','editor','children','refresh','reconvertMarker','attributes','_refreshStartEndIndex','addClass','isBefore','revisionHistory','addMarker:revision-suggestion:insertion','high','createPositionFromPath','downcastDispatcher','-new','newRevisionId','sort','startIndex','userId','document','merge','conversion','_makeModelFromTape','_cleanUp','nextSibling','forward','isSuggestion','adapter','currentChangeNumber','schema','isEnabled','createUIElement','attributesAfter','abs','stop','toViewElement','_update','markerName','isAdded','index','revision','length','ck-revision-history-root-remove','bindElementToMarker','text','setAttribute','findIndex','getDomRoot','filter','split','isLimit','_threeWayMerge','config','deletion','repository','flat','RevisionsRepository','markerToHighlight','vid','_makeTape','loadRevisionData','endIndex','_removeUnsupportedChanges','nodeAfter','hasAttribute','forceDisabled','ck-suggestion-marker-','isAddSuggestion','ck-revision-history-root--active','diffData','isAttached','elementStart','top','error','WidgetToolbarRepository','requires','vid_end','getCustomProperty'];(function(_0x29a3be,_0x28d3c6){const _0x437941=function(_0x336734){while(--_0x336734){_0x29a3be['push'](_0x29a3be['shift']());}};_0x437941(++_0x28d3c6);}(_0x28d3,0x113));const _0x4379=function(_0x29a3be,_0x28d3c6){_0x29a3be=_0x29a3be-0x0;let _0x437941=_0x28d3[_0x29a3be];return _0x437941;};import{Plugin as _0xe575c4,Command as _0xa6b9bf}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4c40f1}from'ckeditor5/src/utils';import{ContextualBalloon as _0x60829a}from'ckeditor5/src/ui';import{DocumentFragment as _0x25cde0,Element as _0x528850,Text as _0x3160ef,ViewDocumentFragment as _0x3fe579,ViewText as _0x4c3b47,ViewElement as _0x203973,ViewContainerElement as _0x3a951d,ViewAttributeElement as _0x52ded2,ViewEmptyElement as _0x48a6fc,ViewRawElement as _0x16a67d,ViewUIElement as _0x385a6a}from'ckeditor5/src/engine';import{Users as _0x10c1ce,getMarkerDomElement as _0x42256b}from'ckeditor5-collaboration/src/collaboration-core';import _0x531d7c from'./ui/revisionviewer/changedetailsview';import _0x2bc5f3 from'./revisionsrepository';import _0x352d9d from'./changeitem';import{default as _0x21aaeb}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4815aa}from'lodash-es';const tt={'c':_0x3a951d,'a':_0x52ded2,'e':_0x48a6fc,'r':_0x16a67d,'u':_0x385a6a};export default class d extends _0xe575c4{static get['pluginName'](){return _0x4379('0x7e');}static get[_0x4379('0x5')](){return[_0x10c1ce,_0x60829a,_0x2bc5f3];}constructor(_0x17095f){super(_0x17095f),this['repository']=this[_0x4379('0xd6')][_0x4379('0xa')][_0x4379('0x61')](_0x4379('0x10d')),this[_0x4379('0x5d')](_0x4379('0x72'),null),this[_0x4379('0x5d')](_0x4379('0xa8'),null),this[_0x4379('0x18')]=null,this['set'](_0x4379('0xd4'),null),this[_0x4379('0x5d')](_0x4379('0x2d'),!0x1),this[_0x4379('0x5d')](_0x4379('0xf3'),!0x0),this['on']('change:isEnabled',(_0x48caba,_0x251458,_0x386f36)=>{this[_0x4379('0x72')]=null,this['activeView']=null,this[_0x4379('0xd6')][_0x4379('0x58')]['view'][_0x4379('0xb4')](_0x66937=>{for(const _0x1dca65 of this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')][_0x4379('0x28')])_0x386f36?_0x66937['removeClass'](_0x4379('0x53'),_0x1dca65):_0x66937[_0x4379('0xdc')](_0x4379('0x53'),_0x1dca65);});}),this[_0x4379('0x1b')]('isNavigationMode')['to'](this,_0x4379('0x72'),_0x459d36=>null!==_0x459d36),this[_0x4379('0x1b')](_0x4379('0xf1'))['to'](this,_0x4379('0x2d'),this,_0x4379('0xd4'),this,_0x4379('0x72'),(_0x44b200,_0x4c0e3c,_0x904b75)=>_0x44b200&&_0x904b75?_0x4c0e3c['changes'][_0x4379('0x2c')](_0x904b75):0x0),this[_0x4379('0x1b')]('numberOfChanges')['to'](this,'isReady',this,_0x4379('0xd4'),(_0x2f23ec,_0x588e65)=>_0x2f23ec?_0x588e65[_0x4379('0xbe')][_0x4379('0xfe')]:0x0),this[_0x4379('0x47')]=null,this[_0x4379('0x34')]=new Map(),this[_0x4379('0xf0')]=null,this['_balloon']=this[_0x4379('0xd6')][_0x4379('0xa')]['get'](_0x60829a);}[_0x4379('0xc3')](){const _0x49c219=this[_0x4379('0xd6')],_0x1568c5=new ShowChangeCommand(_0x49c219,{'direction':_0x4379('0x92')}),_0x1e94e4=new ShowChangeCommand(_0x49c219,{'direction':_0x4379('0xee')});(_0x49c219['commands'][_0x4379('0x48')]('showPreviousChange',_0x1568c5),_0x49c219[_0x4379('0x33')][_0x4379('0x48')](_0x4379('0x41'),_0x1e94e4),_0x49c219['commands'][_0x4379('0x48')](_0x4379('0x51'),new RestoreRevisionCommand(_0x49c219)),this['on']('change:numberOfChanges',()=>{_0x1568c5['refresh'](),_0x1e94e4['refresh']();}),this[_0x4379('0x49')](),this[_0x4379('0x87')](),_0x49c219[_0x4379('0x6e')](_0x4379('0x95')),_0x49c219[_0x4379('0xa')][_0x4379('0xd5')]('WidgetToolbarRepository'))&&_0x49c219['plugins'][_0x4379('0x61')](_0x4379('0x4'))[_0x4379('0x116')](_0x4379('0x95'));}async['getRevisionData'](_0x46c11e){await this['loadRevisionData'](_0x46c11e);const _0x30ea41={};for(const _0x4dd2b5 in _0x46c11e[_0x4379('0x11a')]){if(_0x46c11e[_0x4379('0x11a')][_0x4dd2b5]['attachChange']&&!_0x46c11e[_0x4379('0x11a')][_0x4dd2b5][_0x4379('0x8f')][_0x4379('0x0')])continue;const _0x3b11b3=this[_0x4379('0x44')](JSON['parse'](_0x46c11e[_0x4379('0x11a')][_0x4dd2b5]['insertions'])),_0x3232b7=this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')],_0x512ea1=new _0x3fe579(_0x3232b7,_0x3b11b3[_0x4379('0x3b')](_0x364e83=>this[_0x4379('0x8c')](_0x364e83)));this[_0x4379('0xd6')][_0x4379('0xac')]['processor'][_0x4379('0xb3')](_0x4379('0x25')),_0x30ea41[_0x4dd2b5]=this[_0x4379('0xd6')]['data'][_0x4379('0x94')][_0x4379('0x27')](_0x512ea1),this[_0x4379('0xd6')][_0x4379('0xac')]['processor']['useFillerType'](_0x4379('0x50'));}return _0x30ea41;}async[_0x4379('0x4f')](_0x58b8ad){await this[_0x4379('0x111')](_0x58b8ad);const _0x360826={};for(const _0x19a15b in _0x58b8ad['diffData'])_0x58b8ad[_0x4379('0x11a')][_0x19a15b][_0x4379('0x8f')]&&!_0x58b8ad[_0x4379('0x11a')][_0x19a15b][_0x4379('0x8f')][_0x4379('0x0')]||(_0x360826[_0x19a15b]=_0x58b8ad['diffData'][_0x19a15b][_0x4379('0xf5')]||{});return _0x360826;}['_removeRevisionMarkers'](_0x4520df){return(_0x4520df=_0x4520df[_0x4379('0x105')](_0x3f95fb=>!_0x3f95fb[_0x4379('0x35')]||_0x4379('0xc0')!==_0x3f95fb[_0x4379('0x35')]&&'revision-end'!==_0x3f95fb[_0x4379('0x35')]))[_0x4379('0x13')](_0x10b10d=>{_0x4379('0xa5')!=typeof _0x10b10d&&(_0x10b10d['children']=this[_0x4379('0x44')](_0x10b10d['children']),_0x10b10d[_0x4379('0xda')]=_0x10b10d[_0x4379('0xda')][_0x4379('0x105')](_0x49aea4=>!_0x49aea4[0x0]['startsWith'](_0x4379('0xb0'))));}),_0x4520df;}async['compare'](_0x1adfc3,_0x5e39da,_0x3e67f6=!0x1){if(!this[_0x4379('0xf3')])return;const _0x1ee71f=this['diff'],_0x39905a=this[_0x4379('0x10b')],_0x26c2bc=_0x4379('0xa5')==typeof _0x1adfc3?_0x39905a[_0x4379('0xd0')](_0x1adfc3):_0x1adfc3,_0x4fd2a5='string'==typeof _0x5e39da?_0x39905a[_0x4379('0xd0')](_0x5e39da):_0x5e39da,_0x1ec5ce=_0x26c2bc['id'],_0x46d05a=_0x4fd2a5?_0x4fd2a5['id']:null;if(!_0x3e67f6&&this[_0x4379('0xd4')]&&this[_0x4379('0xd4')][_0x4379('0xe4')]===_0x1ec5ce&&this[_0x4379('0xd4')][_0x4379('0xcf')]===_0x46d05a)return Promise[_0x4379('0x16')]();this[_0x4379('0x2d')]=!0x1,this[_0x4379('0xa8')]=null,this[_0x4379('0x72')]=null,this['diff']=new _0x21aaeb(_0x1ec5ce,_0x46d05a);const _0x300fa1=this['_getRevisionsRange'](_0x26c2bc,_0x4fd2a5,!0x0)['map'](_0x1fdf6a=>this[_0x4379('0x111')](_0x1fdf6a));return _0x300fa1[_0x4379('0x9')](new Promise(_0x428a92=>{setTimeout(_0x428a92,0x14);})),Promise[_0x4379('0x31')](_0x300fa1)[_0x4379('0x54')](()=>{if(!this['isEnabled'])return;this[_0x4379('0xec')]();const _0x14d23b=this[_0x4379('0x6b')](_0x1ec5ce,_0x46d05a);for(const _0x2da8a4 of _0x14d23b[_0x4379('0xbe')])this[_0x4379('0x34')][_0x4379('0x5d')](_0x2da8a4['id'],_0x2da8a4);this['editor'][_0x4379('0x71')]['enqueueChange']({'isUndoable':!0x1},_0x30aa26=>{for(const _0x36afc9 of this[_0x4379('0xd6')]['model'][_0x4379('0xe8')][_0x4379('0x10')]())_0x30aa26[_0x4379('0x37')](_0x36afc9);for(const _0x5e9d5d of Object[_0x4379('0x88')](_0x14d23b[_0x4379('0x71')])){const _0x208d67=_0x30aa26['addRoot'](_0x5e9d5d);for(const _0x1034db of Object[_0x4379('0x88')](_0x14d23b[_0x4379('0xda')][_0x5e9d5d]))_0x30aa26['setAttribute'](_0x1034db,_0x14d23b[_0x4379('0xda')][_0x5e9d5d][_0x1034db],_0x208d67);_0x30aa26[_0x4379('0x40')](_0x14d23b['model'][_0x5e9d5d],_0x208d67,0x0);}}),this[_0x4379('0xd4')][_0x4379('0xcd')](this[_0x4379('0x5f')](_0x14d23b[_0x4379('0xbe')])),this['isReady']=!0x0;})[_0x4379('0xa3')](_0x436a5f=>{console[_0x4379('0x3')](_0x436a5f),this[_0x4379('0xec')](),_0x1ee71f&&(this['diff']=_0x1ee71f),this[_0x4379('0x2d')]=!0x0;});}[_0x4379('0x39')](_0x3c693c,_0x1eb7da){const _0x1f8aec=this[_0x4379('0x10b')][_0x4379('0x5c')](_0x3c693c);return _0x1f8aec['on'](_0x4379('0xf9'),(_0x280859,_0x462c6d,_0x33921c)=>_0x1eb7da(_0x462c6d,_0x33921c,_0x1f8aec)),this[_0x4379('0x10b')]['addRevision'](_0x1f8aec),_0x1f8aec;}[_0x4379('0x111')](_0x43c5d9){if(!_0x43c5d9||_0x43c5d9[_0x4379('0x11a')])return Promise[_0x4379('0x16')]();{const _0x543ed8=this[_0x4379('0xd6')]['config'][_0x4379('0x61')](_0x4379('0xb5'));return this[_0x4379('0xf0')][_0x4379('0xd0')]({'channelId':_0x543ed8,'revisionId':_0x43c5d9['id']})['then'](_0xb2eb1=>{_0x43c5d9[_0x4379('0xf9')]({'diffData':_0xb2eb1['diffData']},!0x0);});}}[_0x4379('0xec')](){this[_0x4379('0x72')]=null,this[_0x4379('0xaa')](),this[_0x4379('0x47')]&&this[_0x4379('0x47')]['destroy'](),this[_0x4379('0x47')]=null,this[_0x4379('0x34')][_0x4379('0x73')](),this[_0x4379('0xd6')][_0x4379('0x71')]['enqueueChange']({'isUndoable':!0x1},_0x4a36de=>{for(const _0x589137 of this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xe8')][_0x4379('0x10')]())_0x4a36de['detachRoot'](_0x589137);});}[_0x4379('0x5f')](_0x1b54ae){const _0x5afbd5=[],_0x45ef03=new Map();for(const _0x27427c of this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xe8')][_0x4379('0x10')]()){const _0xde7851=this[_0x4379('0xd6')]['editing'][_0x4379('0xa7')][_0x4379('0x104')](_0x27427c);if(!_0xde7851)continue;const _0x161981=_0xde7851['getClientRects']()[_0x4379('0x30')](0x0);_0x161981&&(_0x5afbd5[_0x4379('0x9')](_0x27427c),_0x45ef03[_0x4379('0x5d')](_0x27427c,_0x161981));}return _0x5afbd5[_0x4379('0xe5')]((_0x195d6a,_0x4cb0f0)=>{const _0x445878=_0x45ef03['get'](_0x195d6a),_0x18bdae=_0x45ef03['get'](_0x4cb0f0);return _0x445878['y']-_0x18bdae['y']||_0x445878['x']-_0x18bdae['x'];}),(_0x1b54ae=_0x1b54ae[_0x4379('0x105')](_0x21322e=>_0x5afbd5['includes'](_0x21322e['rootName'])))['sort']((_0x58853a,_0x52a531)=>_0x5afbd5[_0x4379('0x3d')](_0x58853a['rootName'])-_0x5afbd5[_0x4379('0x3d')](_0x52a531[_0x4379('0xa2')])),_0x1b54ae;}[_0x4379('0x110')](_0x568c5b){const _0x4de221=Array[_0x4379('0x2e')](_0x568c5b[_0x4379('0x79')])[_0x4379('0x105')](([_0x4a97ad,_0x1b6d4d])=>_0x4a97ad[_0x4379('0x59')](_0x4379('0x1e'))&&!_0x1b6d4d[_0x4379('0x74')]),_0x365fc9=Array[_0x4379('0x2e')](this['editor'][_0x4379('0x71')]['createRangeIn'](_0x568c5b)[_0x4379('0x99')]({'singleCharacters':!0x0}));if(0x0!=_0x4de221[_0x4379('0xfe')])for(const _0x38be71 of _0x365fc9){const [_0x5e38ba,_0x421753]=_0x4de221[0x0],[,_0x180d3c,_0x252357]=_0x5e38ba[_0x4379('0x106')](':');if(_0x421753['end'][_0x4379('0x4c')](_0x38be71['nextPosition'])&&_0x4de221[_0x4379('0x46')](),(_0x38be71[_0x4379('0x7a')][_0x4379('0x4c')](_0x421753[_0x4379('0x23')])||_0x38be71[_0x4379('0x7a')][_0x4379('0x42')](_0x421753[_0x4379('0x23')]))&&(_0x4379('0xb7')==_0x180d3c?_0x38be71[_0x4379('0xfb')]={'userId':_0x252357}:_0x4379('0x10a')==_0x180d3c&&(_0x38be71['isRemoved']={'userId':_0x252357})),0x0==_0x4de221[_0x4379('0xfe')])break;}return _0x365fc9;}[_0x4379('0xdb')](_0x2e42d1){const _0x11b203=new Map();for(let _0x35f800=0x0;_0x35f800<_0x2e42d1['length'];_0x35f800++)_0x4379('0x101')===_0x2e42d1[_0x35f800][_0x4379('0x5b')]?(_0x2e42d1[_0x35f800][_0x4379('0x30')][_0x4379('0xe6')]=_0x35f800,_0x2e42d1[_0x35f800]['item'][_0x4379('0x112')]=_0x35f800):(_0x4379('0x1')===_0x2e42d1[_0x35f800][_0x4379('0x5b')]?_0x2e42d1[_0x35f800][_0x4379('0x30')]['startIndex']=_0x35f800:_0x4379('0x76')===_0x2e42d1[_0x35f800][_0x4379('0x5b')]&&(_0x2e42d1[_0x35f800][_0x4379('0x30')][_0x4379('0x112')]=_0x35f800),_0x11b203['set'](_0x2e42d1[_0x35f800]['id'],_0x35f800));for(const _0x8da2d9 of _0x11b203[_0x4379('0x4e')]())_0x4379('0x1')===_0x2e42d1[_0x8da2d9][_0x4379('0x5b')]?_0x2e42d1[_0x8da2d9]['item'][_0x4379('0x112')]=_0x11b203[_0x4379('0x61')](_0x2e42d1[_0x8da2d9][_0x4379('0xc5')]):_0x4379('0x76')===_0x2e42d1[_0x8da2d9][_0x4379('0x5b')]&&(_0x2e42d1[_0x8da2d9][_0x4379('0x30')]['startIndex']=_0x11b203[_0x4379('0x61')](_0x2e42d1[_0x8da2d9][_0x4379('0xc5')]));}[_0x4379('0x75')](_0x3fb7b1){for(let _0x392524=0x0;_0x392524<_0x3fb7b1[_0x4379('0xfe')];_0x392524++){if(_0x4379('0x1')===_0x3fb7b1[_0x392524][_0x4379('0x5b')])_0x3fb7b1[_0x392524][_0x4379('0x30')]['startIndex']=_0x392524;else{if(_0x4379('0x76')===_0x3fb7b1[_0x392524]['type']){_0x3fb7b1[_0x392524][_0x4379('0x30')][_0x4379('0x112')]=_0x392524;const _0x1af26c=_0x3fb7b1[_0x392524]['item']['startIndex'];_0x3fb7b1[_0x1af26c][_0x4379('0xc5')]=_0x3fb7b1[_0x392524]['id'],_0x3fb7b1[_0x392524][_0x4379('0xc5')]=_0x3fb7b1[_0x1af26c]['id'];}else _0x3fb7b1[_0x392524][_0x4379('0x30')]['startIndex']=_0x392524,_0x3fb7b1[_0x392524]['item'][_0x4379('0x112')]=_0x392524,_0x3fb7b1[_0x392524][_0x4379('0xc5')]=null;}_0x3fb7b1[_0x392524][_0x4379('0x66')]||(_0x3fb7b1[_0x392524][_0x4379('0x66')]=[],_0x3fb7b1[_0x392524][_0x4379('0xca')]=[]);}}['_markInsertions'](_0x2f975a,_0x55a154){const _0x549159=_0x2f975a[_0x4379('0x105')](_0x4c42ec=>!_0x4c42ec[_0x4379('0xfb')]);for(let _0xdaea9f=0x0;_0xdaea9f<_0x55a154['length'];_0xdaea9f++)_0x55a154[_0xdaea9f][_0x4379('0xfb')]&&(_0x549159[_0xdaea9f][_0x4379('0xfb')]=_0x55a154[_0xdaea9f][_0x4379('0xfb')]);}[_0x4379('0x1c')](_0x18988a){const _0x460bed=JSON[_0x4379('0x6f')](_0x18988a),_0x1281c2=this['editor']['editing'][_0x4379('0xa7')]['document'],_0x5c1ba4=new _0x3fe579(_0x1281c2,_0x460bed[_0x4379('0x3b')](_0x573616=>this[_0x4379('0x8c')](_0x573616)));return this[_0x4379('0xd6')][_0x4379('0xac')][_0x4379('0x6a')](_0x5c1ba4);}[_0x4379('0x8c')](_0x1c35ee){const _0x3e6303=this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')];if(_0x4379('0xa5')==typeof _0x1c35ee)return new _0x4c3b47(_0x3e6303,_0x1c35ee);{const _0x14d4f4=_0x1c35ee[_0x4379('0xd7')][_0x4379('0x3b')](_0x1db070=>this['_getViewObj'](_0x1db070));return new(tt[_0x1c35ee['type']]||_0x203973)(_0x3e6303,_0x1c35ee['name'],_0x1c35ee[_0x4379('0xda')],_0x14d4f4);}}['_getDiff'](_0x519462,_0x442362=null){const _0x111b8d=this['repository']['getRevision'](_0x519462),_0x3204d1=_0x442362?this[_0x4379('0x10b')]['getRevision'](_0x442362):null,_0x2b8a2a=this[_0x4379('0x57')](_0x111b8d,_0x3204d1),_0xfc16e2=_0x2b8a2a[_0x2b8a2a['length']-0x1],_0x22d0d8=new Map(),_0x17ac31={'model':{},'attributes':{},'changes':[]},_0x48c1a7=new Set(),_0x5319db=new Map();for(let _0x518ebe=_0x2b8a2a[_0x4379('0xfe')]-0x1;_0x518ebe>=0x0;_0x518ebe--){const _0x26b396=_0x2b8a2a[_0x518ebe];for(const _0x2885e9 of Object[_0x4379('0x88')](_0x26b396[_0x4379('0x11a')]))if(_0x26b396[_0x4379('0x11a')][_0x2885e9][_0x4379('0x8f')]){const _0x5b01cd=_0x26b396['diffData'][_0x2885e9][_0x4379('0x8f')];_0x5b01cd[_0x4379('0x0')]?(_0x48c1a7['add'](_0x2885e9),_0x5319db[_0x4379('0xd5')](_0x2885e9)&&_0x5319db[_0x4379('0x61')](_0x2885e9)['userId']==_0x5b01cd[_0x4379('0xe7')]?_0x5319db['delete'](_0x2885e9):_0x5319db[_0x4379('0x5d')](_0x2885e9,_0x5b01cd)):_0x5319db[_0x4379('0xd5')](_0x2885e9)?(_0x48c1a7[_0x4379('0x11')](_0x2885e9),_0x5319db[_0x4379('0x11')](_0x2885e9)):(_0x48c1a7['add'](_0x2885e9),_0x5319db[_0x4379('0x5d')](_0x2885e9,_0x5b01cd));}else _0x48c1a7[_0x4379('0x48')](_0x2885e9);}for(const _0x5ce7d9 of _0x48c1a7){const _0x28f5d2=_0x5319db[_0x4379('0xd5')](_0x5ce7d9)&&!_0x5319db[_0x4379('0x61')](_0x5ce7d9)['isAttached'];let _0x32d776=_0x28f5d2?_0x2b8a2a[_0x4379('0xfe')]-0x1:0x0;const _0x7a4cea=_0x28f5d2?-0x1:0x1;for(;_0x2b8a2a[_0x32d776];){const _0x3999f0=_0x2b8a2a[_0x32d776];if(_0x3999f0[_0x4379('0x11a')][_0x5ce7d9]){const _0x157953=_0x28f5d2?_0x3999f0['diffData'][_0x5ce7d9][_0x4379('0x9a')]:_0x3999f0[_0x4379('0x11a')][_0x5ce7d9]['attributesAfter'];_0x17ac31[_0x4379('0xda')][_0x5ce7d9]=_0x157953?_0x4815aa(_0x157953):{};break;}_0x32d776+=_0x7a4cea;}}for(const _0x48de19 of _0x2b8a2a){_0x48de19[_0x4379('0x71')]={};for(const _0x4e59ce of _0x48de19['authors'])_0x22d0d8[_0x4379('0x5d')](_0x4e59ce['id'],_0x4e59ce);for(const _0x28f8cc of _0x48c1a7){const _0x4c6939=_0x48de19[_0x4379('0x11a')][_0x28f8cc]?_0x48de19[_0x4379('0x11a')][_0x28f8cc][_0x4379('0x56')]:'[]',_0x16a59a=_0x48de19['diffData'][_0x28f8cc]?_0x48de19[_0x4379('0x11a')][_0x28f8cc][_0x4379('0x70')]:'[]';_0x48de19[_0x4379('0x71')][_0x28f8cc]={'insertions':this[_0x4379('0x1c')](_0x4c6939),'deletions':this['_makeModelFromViewString'](_0x16a59a)};}}for(const _0x4fad08 of _0x48c1a7){let _0x12abd7=null,_0x1741f5=0x0;const _0x1b8780=new Map(Array[_0x4379('0x2e')](_0x111b8d[_0x4379('0x71')][_0x4fad08][_0x4379('0x56')][_0x4379('0x79')])[_0x4379('0x105')](([_0x5a73c9])=>!_0x5a73c9[_0x4379('0x59')]('revision:')));let _0x3ce7d9=0x0;for(const _0x582492 of _0x2b8a2a){const _0x1d7fac=this[_0x4379('0x110')](_0x582492[_0x4379('0x71')][_0x4fad08][_0x4379('0x56')]);_0x582492==_0x111b8d?(_0x12abd7=_0x1d7fac,_0x1741f5=_0x12abd7[_0x4379('0xfe')],_0x12abd7['forEach'](_0x8fa03e=>{_0x8fa03e['id']=_0x3ce7d9++;}),this[_0x4379('0x75')](_0x12abd7)):this[_0x4379('0xa9')](_0x12abd7,_0x1d7fac);const _0x4b13b3=_0x12abd7[_0x4379('0x105')](_0x5b7946=>!_0x5b7946[_0x4379('0xfb')])[_0x4379('0x3b')](_0x42181d=>_0x42181d['id']);let _0x43080e=0x0;const _0xb580d9=this[_0x4379('0x110')](_0x582492[_0x4379('0x71')][_0x4fad08][_0x4379('0x70')]);_0xb580d9[_0x4379('0x13')](_0x15d838=>{_0x15d838[_0x4379('0x45')]?_0x15d838['id']=_0x1741f5++:_0x15d838['id']=_0x4b13b3[_0x43080e++];}),this[_0x4379('0x75')](_0xb580d9),this['_setDistance'](_0x12abd7,_0x4379('0xfb')),this['_setDistance'](_0xb580d9,_0x4379('0x45')),_0x582492==_0x111b8d&&this['_markMarkers'](_0x12abd7,_0x1b8780),_0x12abd7=this[_0x4379('0x14')](_0x12abd7,_0xb580d9),this[_0x4379('0xdb')](_0x12abd7),this[_0x4379('0x7d')](_0x12abd7,_0x4379('0x45'));}_0x12abd7=_0x12abd7[_0x4379('0x105')](_0x23e04b=>!(_0x23e04b['isAdded']&&_0x23e04b[_0x4379('0x45')]));const _0x45b0ea=new Map(_0xfc16e2[_0x4379('0x71')][_0x4fad08][_0x4379('0x70')]['markers']),_0x365b0a=new Set(_0x1b8780[_0x4379('0x88')]());for(const _0x311bca of _0x45b0ea[_0x4379('0x88')]())_0x365b0a['delete'](_0x311bca);this[_0x4379('0x8e')](_0x12abd7,_0x365b0a),this[_0x4379('0x4a')](_0x12abd7),_0x12abd7=this['_removeMissingPairs'](_0x12abd7),_0x12abd7=this[_0x4379('0x17')](_0x12abd7),_0x12abd7=this[_0x4379('0x113')](_0x12abd7);const {root:_0x4dc3ec,changes:_0x3e5113}=this[_0x4379('0xeb')](_0x12abd7,_0x22d0d8,_0x4fad08);_0x17ac31[_0x4379('0x71')][_0x4fad08]=_0x4dc3ec;const _0x1d03e9=_0x5319db[_0x4379('0x61')](_0x4fad08);if(_0x1d03e9){const _0x587e34=_0x22d0d8[_0x4379('0x61')](_0x1d03e9[_0x4379('0xe7')]),_0x32a4c2=new _0x352d9d({'author':_0x587e34,'type':_0x1d03e9[_0x4379('0x0')]?'add':_0x4379('0x6c'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4fad08});_0x3e5113['unshift'](_0x32a4c2),_0x17ac31['attributes'][_0x4fad08]['revisionHistoryAttachChange']=_0x32a4c2['id'];}_0x17ac31['changes']=_0x17ac31[_0x4379('0xbe')][_0x4379('0x67')](_0x3e5113);}return _0x17ac31;}[_0x4379('0xd')](_0x1c4dc3,_0x29c9e4){for(let _0x4c5840=0x0;_0x4c5840<_0x1c4dc3[_0x4379('0xfe')];_0x4c5840++)for(const [_0x198288,_0x24db7a]of _0x29c9e4)_0x24db7a['start'][_0x4379('0x4c')](_0x1c4dc3[_0x4c5840]['previousPosition'])&&_0x1c4dc3[_0x4c5840][_0x4379('0x66')]['push'](_0x198288),_0x24db7a['end']['isEqual'](_0x1c4dc3[_0x4c5840][_0x4379('0x24')])&&_0x1c4dc3[_0x4c5840][_0x4379('0xca')][_0x4379('0x9')](_0x198288);}[_0x4379('0x14')](_0x4bedca,_0x4460fc){let _0x3c5350=[],_0x5571b2=0x0,_0x5eb4ec=0x0;for(;_0x5571b2<_0x4bedca[_0x4379('0xfe')]||_0x5eb4ec<_0x4460fc['length'];){const _0x3b52b1=_0x4bedca[_0x5571b2]||{},_0x569721=_0x4460fc[_0x5eb4ec]||{};if(_0x3b52b1['id']==_0x569721['id'])_0x5571b2++,_0x5eb4ec++,_0x3c5350[_0x4379('0x9')](_0x3b52b1);else{if(_0x569721[_0x4379('0x45')]&&_0x3b52b1[_0x4379('0xfb')]){const {commonTape:_0x239605,iEnd:_0x447999,jEnd:_0xed9ead}=this[_0x4379('0x108')](_0x4bedca,_0x5571b2,_0x4460fc,_0x5eb4ec);_0x3c5350=_0x3c5350[_0x4379('0x67')](_0x239605),_0x5571b2=_0x447999,_0x5eb4ec=_0xed9ead;}else _0x569721[_0x4379('0x45')]?(_0x5eb4ec++,_0x3c5350['push'](_0x569721)):(_0x5571b2++,_0x3c5350['push'](_0x3b52b1));}}return _0x3c5350;}['_markSuggestions'](_0x2258c7,_0xdbbed1){const _0x22b90d=[];for(let _0x287167=0x0;_0x287167<_0x2258c7[_0x4379('0xfe')];_0x287167++){for(let _0x4d491d=0x0;_0x4d491d<_0x2258c7[_0x287167]['markersStart']['length'];_0x4d491d++){const _0x177fe8=_0x2258c7[_0x287167][_0x4379('0x66')][_0x4d491d];if(!_0xdbbed1[_0x4379('0xd5')](_0x177fe8))continue;const {group:_0x162f4a,type:_0x428ee1,authorId:_0x5a72bb}=_0x4e7377(_0x177fe8);_0x4379('0x83')!=_0x162f4a||_0x4379('0xb7')!=_0x428ee1&&_0x4379('0x10a')!=_0x428ee1||(_0x22b90d[_0x4379('0xb1')]({'type':_0x428ee1,'name':_0x177fe8,'userId':_0x5a72bb}),_0x2258c7[_0x287167][_0x4379('0x66')][_0x4379('0xc4')](_0x4d491d,0x1),_0x4d491d--);}_0x1df5a7(_0x2258c7[_0x287167]);for(let _0x44c460=0x0;_0x44c460<_0x2258c7[_0x287167][_0x4379('0xca')][_0x4379('0xfe')];_0x44c460++){const _0x326e2f=_0x2258c7[_0x287167][_0x4379('0xca')][_0x44c460];if(!_0xdbbed1[_0x4379('0xd5')](_0x326e2f))continue;const {group:_0x289fbf,type:_0x24a9ca}=_0x4e7377(_0x326e2f);if(_0x4379('0x83')!=_0x289fbf||'insertion'!=_0x24a9ca&&_0x4379('0x10a')!=_0x24a9ca)continue;_0x2258c7[_0x287167]['markersEnd'][_0x4379('0xc4')](_0x44c460,0x1),_0x44c460--;const _0x52c070=_0x22b90d[_0x4379('0x103')](_0x544dca=>_0x544dca[_0x4379('0x35')]==_0x326e2f);_0x52c070>-0x1&&_0x22b90d['splice'](_0x52c070,0x1);}}function _0x4e7377(_0x406e0b){const _0x452193=_0x406e0b[_0x4379('0x106')](':');return{'group':_0x452193[0x0],'type':_0x452193[0x1],'subType':_0x452193['length']>=0x5?_0x452193[0x2]:null,'id':_0x452193[_0x4379('0xfe')]<0x5?_0x452193[0x2]:_0x452193[0x3],'authorId':_0x452193[_0x4379('0xfe')]<0x5?_0x452193[0x3]:_0x452193[0x4],'markerCount':0x6==_0x452193['length']?_0x452193[0x5]:null};}function _0x1df5a7(_0x4641b4){for(let _0x532c82=0x0;_0x532c82<_0x22b90d[_0x4379('0xfe')];_0x532c82++){if(_0x4641b4[_0x4379('0xfb')]&&_0x4379('0xb7')==_0x22b90d[_0x532c82]['type'])return _0x4641b4[_0x4379('0x118')]=_0x22b90d[_0x532c82],void delete _0x4641b4[_0x4379('0xfb')];if(!_0x4641b4[_0x4379('0xfb')]&&!_0x4641b4[_0x4379('0x45')]&&'deletion'==_0x22b90d[_0x532c82][_0x4379('0x5b')])return void(_0x4641b4[_0x4379('0x6d')]=_0x22b90d[_0x532c82]);}}}['_setDistance'](_0x33c4ff,_0x4bc81d){let _0x45c7da=0x0,_0x26c7aa=!0x1;const _0x198795=new Map();for(const _0xbb5a34 of _0x33c4ff)_0xbb5a34[_0x4bc81d]?_0x26c7aa&&(_0x45c7da++,_0x26c7aa=!0x1):(_0x45c7da++,_0x26c7aa=!0x0),_0x198795['set'](_0xbb5a34['id'],_0x45c7da);for(let _0x1b39a3=0x0;_0x1b39a3<_0x33c4ff[_0x4379('0xfe')];_0x1b39a3++){if('isRemoved'==_0x4bc81d&&_0x33c4ff[_0x1b39a3]['isAdded']||_0x4379('0xfb')==_0x4bc81d&&_0x33c4ff[_0x1b39a3][_0x4379('0x45')])continue;if(_0x4379('0x101')==_0x33c4ff[_0x1b39a3][_0x4379('0x5b')]){_0x33c4ff[_0x1b39a3][_0x4379('0xae')]=0x0;continue;}const _0x2a3292=_0x198795['get'](_0x33c4ff[_0x1b39a3][_0x4379('0xc5')]),_0x143d42=_0x198795[_0x4379('0x61')](_0x33c4ff[_0x1b39a3]['id']);_0x33c4ff[_0x1b39a3][_0x4379('0xae')]=_0x2a3292-_0x143d42;}}[_0x4379('0x57')](_0x4e4540,_0x1db802,_0xc51528=!0x1){const _0x5c5146=[];let _0x1d0532=this[_0x4379('0x10b')]['getIndex'](_0x4e4540),_0x2a3ffd=this['repository'][_0x4379('0x2c')](_0x1db802);for(-0x1==_0x2a3ffd&&(_0x2a3ffd=this['repository'][_0x4379('0x9f')][_0x4379('0xfe')],_0xc51528=!0x1);_0x1d0532<_0x2a3ffd;)_0x5c5146['push'](this[_0x4379('0x10b')][_0x4379('0xd0')](_0x1d0532)),_0x1d0532++;return _0xc51528&&_0x5c5146[_0x4379('0x9')](this['repository']['getRevision'](_0x1d0532)),_0x5c5146;}[_0x4379('0x108')](_0x4405a1,_0x264421,_0x512596,_0x2b41ac){const _0x5e71df=this['editor'][_0x4379('0x71')]['schema'];let _0x3480a3=_0x264421;for(;_0x4405a1[_0x3480a3]&&_0x4405a1[_0x3480a3][_0x4379('0xfb')];)_0x3480a3++;let _0x2bb365=_0x2b41ac;for(;_0x512596[_0x2bb365]&&_0x512596[_0x2bb365]['isRemoved'];)_0x2bb365++;_0x295fe7(_0x4405a1,_0x264421,_0x3480a3),_0x295fe7(_0x512596,_0x2b41ac,_0x2bb365);const _0x46010a=_0x512596['slice'](_0x2b41ac,_0x2bb365)[_0x4379('0x67')](_0x4405a1[_0x4379('0x3c')](_0x264421,_0x3480a3));return _0x46010a['sort']((_0x84d29e,_0x411557)=>_0x84d29e[_0x4379('0x22')]!=_0x411557[_0x4379('0x22')]?_0x84d29e[_0x4379('0x22')]-_0x411557[_0x4379('0x22')]:_0x84d29e[_0x4379('0xa0')]!=_0x411557[_0x4379('0xa0')]?_0x84d29e['level']-_0x411557[_0x4379('0xa0')]:_0x84d29e[_0x4379('0xae')]!=_0x411557[_0x4379('0xae')]?_0x411557[_0x4379('0xae')]-_0x84d29e[_0x4379('0xae')]:!!_0x84d29e[_0x4379('0xfb')]!=!!_0x411557[_0x4379('0xfb')]?-0x1==_0x84d29e[_0x4379('0x22')]||0x0==_0x84d29e[_0x4379('0x22')]?_0x84d29e[_0x4379('0xfb')]?-0x1:0x1:_0x84d29e[_0x4379('0xfb')]?0x1:-0x1:_0x84d29e['index']-_0x411557[_0x4379('0xfc')]),{'commonTape':_0x46010a,'iEnd':_0x3480a3,'jEnd':_0x2bb365};function _0x295fe7(_0xdcf4e5,_0x5261e0,_0xb9dc57){let _0x10d10a=-0x1,_0x71e3b4=Number['POSITIVE_INFINITY'],_0x42f6f2=!0x0;for(let _0x27638f=_0x5261e0;_0x27638f<_0xb9dc57;_0x27638f++)if(_0x5e71df['isInline'](_0xdcf4e5[_0x27638f][_0x4379('0x30')])||(_0x42f6f2=!0x1),_0xdcf4e5[_0x27638f]['item']['startIndex']<_0x5261e0&&(_0x10d10a=_0x27638f),_0xdcf4e5[_0x27638f]['item'][_0x4379('0x112')]>=_0xb9dc57){_0x71e3b4=_0x27638f;break;}_0x42f6f2&&(_0x10d10a=_0xb9dc57-0x1);for(let _0x50494e=_0x5261e0;_0x50494e<_0xb9dc57;_0x50494e++)_0xdcf4e5[_0x50494e][_0x4379('0x22')]=_0x50494e<=_0x10d10a?-0x1:_0x50494e<_0x71e3b4?0x0:0x1,_0xdcf4e5[_0x50494e][_0x4379('0xfc')]=_0x50494e;let _0x2de600=0x0;for(let _0x3e333b=_0x5261e0;_0x3e333b<=_0x10d10a;_0x3e333b++)0x0==_0xdcf4e5[_0x3e333b][_0x4379('0xae')]?_0xdcf4e5[_0x3e333b]['level']=_0x2de600:(_0x2de600++,_0xdcf4e5[_0x3e333b][_0x4379('0xa0')]=_0x2de600,_0x2de600++);for(let _0x397301=_0x5261e0;_0x397301<_0xb9dc57;_0x397301++)0x0==_0xdcf4e5[_0x397301][_0x4379('0x22')]&&(_0xdcf4e5[_0x397301][_0x4379('0xa0')]=_0x2de600);_0x2de600=0x0;for(let _0x56a942=_0xb9dc57-0x1;_0x56a942>=_0x71e3b4;_0x56a942--)0x0==_0xdcf4e5[_0x56a942]['distance']?_0xdcf4e5[_0x56a942]['level']=_0x2de600:(_0x2de600--,_0xdcf4e5[_0x56a942][_0x4379('0xa0')]=_0x2de600,_0x2de600--);}}['_fixObsoleteTags'](_0x5b2999){const _0x361f7f=new Map(),_0x1ef6c3=this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xf2')];for(let _0x2d8536=0x1;_0x2d8536<_0x5b2999[_0x4379('0xfe')];_0x2d8536++){let _0x52eeed,_0x1cda85,_0x2f8960;const _0x67dc3a=_0x5b2999[_0x2d8536],_0x562a90=_0x5b2999[_0x2d8536-0x1];if(_0x4379('0x101')==_0x67dc3a[_0x4379('0x5b')])continue;if(_0x67dc3a[_0x4379('0x5b')]!=_0x562a90[_0x4379('0x5b')])continue;if(!_0x1ef6c3['isBlock'](_0x562a90[_0x4379('0x30')])||_0x1ef6c3[_0x4379('0x107')](_0x562a90[_0x4379('0x30')]))continue;if(!_0x1ef6c3[_0x4379('0x8d')](_0x67dc3a[_0x4379('0x30')])||_0x1ef6c3['isLimit'](_0x67dc3a['item']))continue;if((_0x5b2999[_0x2d8536][_0x4379('0xfb')]||_0x5b2999[_0x2d8536]['isAddSuggestion'])&&_0x5b2999[_0x2d8536-0x1]['isRemoved'])_0x52eeed=_0x5b2999[_0x2d8536],_0x1cda85=_0x5b2999[_0x2d8536-0x1],_0x2f8960=_0x2d8536-0x1;else{if(!_0x5b2999[_0x2d8536][_0x4379('0x45')]||!_0x5b2999[_0x2d8536-0x1]['isAdded']&&!_0x5b2999[_0x2d8536-0x1][_0x4379('0x118')])continue;_0x52eeed=_0x5b2999[_0x2d8536-0x1],_0x1cda85=_0x5b2999[_0x2d8536],_0x2f8960=_0x2d8536;}const _0x1d8c7a=_0x52eeed[_0x4379('0xa0')]==_0x1cda85[_0x4379('0xa0')],_0x1ae6d7=Math[_0x4379('0xf6')](_0x52eeed[_0x4379('0xa0')])<Math[_0x4379('0xf6')](_0x1cda85[_0x4379('0xa0')])&&0x0==_0x1cda85[_0x4379('0xae')];(_0x1d8c7a||_0x1ae6d7)&&(_0x361f7f[_0x4379('0x5d')](_0x1cda85['id'],_0x52eeed['id']),_0x5b2999[_0x4379('0xc4')](_0x2f8960,0x1),_0x2d8536--,_0x52eeed[_0x4379('0xfb')]=!0x1);}for(let _0x1ecb88=0x0;_0x1ecb88<_0x5b2999[_0x4379('0xfe')];_0x1ecb88++)_0x361f7f[_0x4379('0xd5')](_0x5b2999[_0x1ecb88][_0x4379('0xc5')])&&(_0x5b2999[_0x1ecb88][_0x4379('0xc5')]=_0x361f7f[_0x4379('0x61')](_0x5b2999[_0x1ecb88]['pairId']));}['_removeMissingPairs'](_0x2789aa){const _0x10b44e=new Set(_0x2789aa[_0x4379('0x3b')](_0x1d8d4c=>_0x1d8d4c['id']));for(let _0x173e67=0x0;_0x173e67<_0x2789aa[_0x4379('0xfe')];_0x173e67++)_0x10b44e[_0x4379('0xd5')](_0x2789aa[_0x173e67][_0x4379('0xc5')])||0x0==_0x2789aa[_0x173e67]['distance']||(_0x2789aa[_0x173e67][_0x4379('0xcc')]=!0x0);return _0x2789aa[_0x4379('0x105')](_0x2fadbe=>!_0x2fadbe['isIncorrect']);}[_0x4379('0x17')](_0x4bf54e){const _0x2533d6=new Set();for(let _0x220033=0x0;_0x220033<_0x4bf54e['length'];_0x220033++){if(_0x2533d6['has'](_0x4bf54e[_0x220033]['id'])&&_0x4bf54e[_0x220033][_0x4379('0x45')]&&(_0x4bf54e[_0x220033]['isIncorrect']=!0x0),_0x4bf54e[_0x220033][_0x4379('0xcc')])continue;if(0x0==_0x4bf54e[_0x220033]['distance'])continue;if(_0x4379('0x1')!=_0x4bf54e[_0x220033][_0x4379('0x5b')])continue;if(null==_0x4bf54e[_0x220033]['pairId'])continue;let _0x353f2e=_0x220033+0x1,_0xf60d27=0x0;for(;_0x4bf54e[_0x353f2e]['id']!=_0x4bf54e[_0x220033]['pairId'];)_0x4379('0x1')==_0x4bf54e[_0x353f2e][_0x4379('0x5b')]?_0xf60d27++:_0x4379('0x76')==_0x4bf54e[_0x353f2e][_0x4379('0x5b')]&&_0xf60d27--,_0x353f2e++;if(0x0!=_0xf60d27){if(_0x4bf54e[_0x220033][_0x4379('0x45')])_0x4bf54e[_0x220033]['isIncorrect']=!0x0;else for(;_0x353f2e!=_0x220033;)_0x4bf54e[_0x353f2e][_0x4379('0x45')]&&0x0!=_0x4bf54e[_0x353f2e][_0x4379('0xae')]&&(_0x4bf54e[_0x353f2e][_0x4379('0xcc')]=!0x0,_0x2533d6[_0x4379('0x48')](_0x4bf54e[_0x353f2e][_0x4379('0xc5')])),_0x353f2e--;}}return _0x4bf54e[_0x4379('0x105')](_0xe42e2b=>!_0xe42e2b['isIncorrect']);}[_0x4379('0x113')](_0x28f3ee){const _0x1b3ab8=this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xf2')];for(let _0xf96102=0x0;_0xf96102<_0x28f3ee[_0x4379('0xfe')];_0xf96102++){if(!(_0x28f3ee[_0xf96102][_0x4379('0xfb')]||_0x28f3ee[_0xf96102]['isAddSuggestion']||_0x28f3ee[_0xf96102][_0x4379('0x45')]||_0x28f3ee[_0xf96102][_0x4379('0x6d')]))continue;if(0x0==_0x28f3ee[_0xf96102]['distance'])continue;const _0x1dda6a=_0x28f3ee[_0xf96102]['item'];_0x1b3ab8[_0x4379('0x8d')](_0x1dda6a)||_0x1b3ab8[_0x4379('0x107')](_0x1dda6a)||(_0x28f3ee[_0xf96102][_0x4379('0xfb')]&&delete _0x28f3ee[_0xf96102][_0x4379('0xfb')],_0x28f3ee[_0xf96102][_0x4379('0x118')]&&delete _0x28f3ee[_0xf96102][_0x4379('0x118')],_0x28f3ee[_0xf96102][_0x4379('0x6d')]&&delete _0x28f3ee[_0xf96102][_0x4379('0x6d')],_0x28f3ee[_0xf96102][_0x4379('0x45')]&&(_0x28f3ee[_0xf96102][_0x4379('0xcc')]=!0x0));}return _0x28f3ee[_0x4379('0x105')](_0x2a876b=>!_0x2a876b[_0x4379('0xcc')]);}['_makeModelFromTape'](_0x90c458,_0x13680b,_0x29f85a){const _0x519ef7=new _0x25cde0(),_0x215eb0=[],_0x476f46=new Map(),_0x87b256=this[_0x4379('0xd6')]['model'],_0x4a59e9=_0x87b256['schema'],_0x470c7a=[_0x519ef7],_0x2e71b7={},_0x45ca00={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x10f5d7=null;const _0x586256=[0x0];for(let _0x4c38ee=0x0;_0x4c38ee<_0x90c458[_0x4379('0xfe')];_0x4c38ee++){let _0xa9c7f0,_0x4c8ba7;if(_0x4379('0x1')===_0x90c458[_0x4c38ee][_0x4379('0x5b')]){_0xa9c7f0=_0x87b256[_0x4379('0xe1')](_0x519ef7,_0x586256);const _0x30cc37=new _0x528850(_0x90c458[_0x4c38ee][_0x4379('0x30')][_0x4379('0x35')],_0x90c458[_0x4c38ee]['item'][_0x4379('0x1d')]());_0x470c7a[0x0]['_appendChild'](_0x30cc37),_0x586256[_0x4379('0x9')](0x0),_0x470c7a[_0x4379('0xb1')](_0x30cc37),_0x4c8ba7=_0x87b256[_0x4379('0xe1')](_0x519ef7,_0x586256),_0x10f5d7=null;}else{if(_0x4379('0x76')===_0x90c458[_0x4c38ee][_0x4379('0x5b')])_0x470c7a[_0x4379('0x46')](),_0xa9c7f0=_0x87b256['createPositionFromPath'](_0x519ef7,_0x586256),_0x586256['pop'](),_0x586256[_0x586256['length']-0x1]++,_0x4c8ba7=_0x87b256[_0x4379('0xe1')](_0x519ef7,_0x586256),_0x10f5d7=null;else{if(_0xa9c7f0=_0x87b256['createPositionFromPath'](_0x519ef7,_0x586256),_0x10f5d7&&_0x178fbf(_0x10f5d7,_0x90c458[_0x4c38ee][_0x4379('0x30')]))_0x10f5d7[_0x4379('0xb')]+=_0x90c458[_0x4c38ee][_0x4379('0x30')][_0x4379('0xac')];else{const _0x3f3af7=new _0x3160ef(_0x90c458[_0x4c38ee]['item']['data'],_0x90c458[_0x4c38ee]['item'][_0x4379('0x1d')]());_0x470c7a[0x0][_0x4379('0x80')](_0x3f3af7),_0x10f5d7=_0x3f3af7;}_0x586256[_0x586256[_0x4379('0xfe')]-0x1]+=_0x90c458[_0x4c38ee]['item']['offsetSize'],_0x4c8ba7=_0x87b256[_0x4379('0xe1')](_0x519ef7,_0x586256);}}for(const _0x373b37 of _0x90c458[_0x4c38ee][_0x4379('0x66')])_0x476f46[_0x4379('0x5d')](_0x373b37,{'start':_0xa9c7f0,'end':null});_0xf43302(_0x4379('0x6d'),_0x4c38ee,_0xa9c7f0,_0x4c8ba7),_0xf43302(_0x4379('0x118'),_0x4c38ee,_0xa9c7f0,_0x4c8ba7),_0xf43302(_0x4379('0x45'),_0x4c38ee,_0xa9c7f0,_0x4c8ba7),_0xf43302(_0x4379('0xfb'),_0x4c38ee,_0xa9c7f0,_0x4c8ba7);for(const _0x3d3b72 of _0x90c458[_0x4c38ee]['markersEnd']){_0x476f46[_0x4379('0x61')](_0x3d3b72)[_0x4379('0x93')]=_0x4c8ba7;}}for(const [_0x9d33d5,_0x18ecfc]of _0x476f46){const _0x1000b8=this['editor'][_0x4379('0x71')][_0x4379('0x29')](_0x18ecfc[_0x4379('0x23')],_0x18ecfc['end']);_0x519ef7[_0x4379('0x79')][_0x4379('0x5d')](_0x9d33d5,_0x1000b8);}return _0x215eb0['sort']((_0x73d761,_0x2c8a7d)=>{const _0x465d7d=_0x519ef7[_0x4379('0x79')]['get'](_0x4379('0x1e')+_0x73d761['id']),_0x303c07=_0x519ef7[_0x4379('0x79')][_0x4379('0x61')]('revision:'+_0x2c8a7d['id']);return _0x465d7d['start'][_0x4379('0xdd')](_0x303c07[_0x4379('0x23')])?-0x1:_0x465d7d[_0x4379('0x23')][_0x4379('0x42')](_0x303c07['start'])?0x1:_0x465d7d[_0x4379('0x93')][_0x4379('0xdd')](_0x303c07[_0x4379('0x93')])?-0x1:_0x465d7d[_0x4379('0x93')][_0x4379('0x42')](_0x303c07[_0x4379('0x93')])?0x1:_0x4379('0x48')===_0x73d761[_0x4379('0x5b')]?-0x1:0x1;}),{'root':_0x519ef7,'changes':_0x215eb0};function _0xf43302(_0x50b9ab,_0x2ea6f1,_0x56bceb,_0x3756f5){const _0x2854f4=!!_0x90c458[_0x2ea6f1][_0x50b9ab],_0x39885b=_0x2854f4?_0x90c458[_0x2ea6f1][_0x50b9ab][_0x4379('0xe7')]:null,_0x38e118=_0x2ea6f1===_0x90c458[_0x4379('0xfe')]-0x1,_0x2e5702=_0x45ca00[_0x50b9ab][0x0],_0x2ca93a=_0x4a59e9['isObject'](_0x90c458[_0x2ea6f1]['item']);!_0x2e71b7[_0x50b9ab]&&_0x2854f4?_0x2e71b7[_0x50b9ab]={'start':_0x56bceb,'tapeItem':_0x90c458[_0x2ea6f1],'userId':_0x39885b,'type':_0x50b9ab}:_0x2e71b7[_0x50b9ab]&&!_0x2854f4?(_0x2e71b7[_0x50b9ab][_0x4379('0x93')]=_0x56bceb,_0x4aca40(_0x2e71b7[_0x50b9ab]),_0x2e71b7[_0x50b9ab]=null):_0x2e71b7[_0x50b9ab]&&_0x2854f4&&_0x2e71b7[_0x50b9ab][_0x4379('0xe7')]!==_0x39885b&&(_0x2e71b7[_0x50b9ab][_0x4379('0x93')]=_0x56bceb,_0x2e5702&&_0x2e5702[_0x4379('0xe7')]===_0x2e71b7[_0x50b9ab]['userId']||_0x4aca40(_0x2e71b7[_0x50b9ab]),_0x2e71b7[_0x50b9ab]={'start':_0x56bceb,'tapeItem':_0x90c458[_0x2ea6f1],'userId':_0x39885b,'type':_0x50b9ab}),_0x2e71b7[_0x50b9ab]&&_0x2ca93a&&(_0x4379('0x1')!==_0x90c458[_0x2ea6f1][_0x4379('0x5b')]||_0x2e5702&&_0x2e5702['userId']===_0x39885b||_0x45ca00[_0x50b9ab][_0x4379('0xb1')]({'userId':_0x39885b,'object':_0x90c458[_0x2ea6f1][_0x4379('0x30')],'change':_0x2e71b7[_0x50b9ab]}),_0x4379('0x76')===_0x90c458[_0x2ea6f1][_0x4379('0x5b')]&&_0x2e5702&&_0x2e5702['object']===_0x90c458[_0x2ea6f1][_0x4379('0x30')]&&(_0x45ca00[_0x50b9ab]['shift'](),_0x2e71b7[_0x50b9ab]=_0x2e5702[_0x4379('0xb4')])),_0x2e71b7[_0x50b9ab]&&_0x38e118&&(_0x2e71b7[_0x50b9ab]['end']=_0x3756f5,_0x4aca40(_0x2e71b7[_0x50b9ab]),_0x2e71b7[_0x50b9ab]=null);}function _0x4aca40({start:_0x4980b8,end:_0x55eabc,tapeItem:_0x50980d,userId:_0x1f2da4,type:_0x101c3d}){const _0x20123b=_0x50980d[_0x4379('0x30')],_0x1712c4=_0x87b256[_0x4379('0xf2')][_0x4379('0x8d')](_0x20123b)&&!_0x87b256[_0x4379('0xf2')]['isLimit'](_0x20123b),_0x53715f=_0x4980b8[_0x4379('0x114')]==_0x55eabc['parent']&&_0x55eabc[_0x4379('0xbb')];if(_0x1712c4&&_0x53715f)return;const _0x579aa1=_0x87b256[_0x4379('0x29')](_0x4980b8,_0x55eabc),_0x1c4759=_0x13680b['get'](_0x1f2da4),_0x36456f=new _0x352d9d({'author':_0x1c4759,'type':_0x4379('0xfb')==_0x101c3d||_0x4379('0x118')==_0x101c3d?'add':'remove','data':{'isSuggestion':_0x4379('0x118')==_0x101c3d||_0x4379('0x6d')==_0x101c3d},'createdAt':new Date(),'rootName':_0x29f85a});_0x215eb0[_0x4379('0x9')](_0x36456f),_0x519ef7[_0x4379('0x79')][_0x4379('0x5d')](_0x4379('0x1e')+_0x36456f['id'],_0x579aa1);}function _0x178fbf(_0x5359d2,_0x18b2ed){const _0x702d95=_0x5359d2[_0x4379('0x1d')](),_0xdd8208=_0x18b2ed[_0x4379('0x1d')]();for(const _0x5bca40 of _0x702d95){if(_0x5bca40[0x1]!==_0x18b2ed[_0x4379('0x68')](_0x5bca40[0x0]))return!0x1;_0xdd8208['next']();}return _0xdd8208['next']()['done'];}}[_0x4379('0x49')](){this[_0x4379('0xd6')]['conversion'][_0x4379('0xba')](_0x4379('0xd1'))[_0x4379('0x81')]({'view':_0x4379('0xfd')}),this[_0x4379('0xd6')]['conversion'][_0x4379('0xba')](_0x4379('0x1a'))['markerToHighlight']({'model':_0x4379('0xfd'),'view':_0x4d5767=>{const _0x50a343=_0x4d5767['markerName'][_0x4379('0x106')](':')[0x1],_0x5c2508=this[_0x4379('0x9e')](_0x50a343);if(!_0x5c2508)return null;const _0x4dea71=_0x4379('0x48')==_0x5c2508[_0x4379('0x5b')]?_0x4379('0xb7'):_0x4379('0x10a'),_0x4f2a3c=[_0x4379('0x82'),_0x4379('0x117')+_0x4dea71];return _0x5c2508[_0x4379('0xac')][_0x4379('0xef')]&&_0x4f2a3c[_0x4379('0x9')](_0x4379('0x117')+_0x4dea71+_0x4379('0xe3')),this['activeChange']==_0x5c2508&&_0x4f2a3c['push']('ck-suggestion-marker--active'),{'classes':_0x4f2a3c,'attributes':{'data-change-id':_0x50a343}};}}),this[_0x4379('0xd6')][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0xd1'))['add'](_0x4b05ca=>{_0x4b05ca['on']('element:pre',(_0x3e4fc0,_0x211be8,_0x35d145)=>{const _0x359779=_0x211be8['viewItem'][_0x4379('0xad')](0x0);if(!_0x359779||!_0x359779['is'](_0x4379('0x4b'),_0x4379('0x69')))return;if(!_0x35d145[_0x4379('0xc')][_0x4379('0x7f')](_0x359779,{'attributes':[_0x4379('0x65'),_0x4379('0x6')]}))return;const _0x260cb4=_0x211be8['modelRange'][_0x4379('0x23')]['nodeAfter'];_0x35d145[_0x4379('0x32')][_0x4379('0x102')](_0x4379('0x65'),_0x359779['getAttribute']('vid_start'),_0x260cb4),_0x35d145[_0x4379('0x32')][_0x4379('0x102')]('vid_end',_0x359779[_0x4379('0x68')](_0x4379('0x6')),_0x260cb4);},{'priority':_0x4379('0x97')});}),this['editor'][_0x4379('0xea')][_0x4379('0xba')]('upcast')['add'](_0x19837e=>{_0x19837e['on'](_0x4379('0x4b'),(_0x4565c,_0x3966e8,_0x16a81b)=>{if(!_0x16a81b[_0x4379('0xc')]['consume'](_0x3966e8[_0x4379('0x3e')],{'attributes':['vid_start',_0x4379('0x6')]}))return;if(_0x3966e8[_0x4379('0xc8')]['isCollapsed'])return;const _0x5107ce=_0x3966e8[_0x4379('0xc8')][_0x4379('0x23')]['nodeAfter'];_0x5107ce[_0x4379('0x115')](_0x4379('0x65'))||_0x5107ce[_0x4379('0x115')]('vid')||(_0x16a81b[_0x4379('0x32')]['setAttribute'](_0x4379('0x65'),_0x3966e8['viewItem'][_0x4379('0x68')]('vid_start'),_0x5107ce),_0x16a81b[_0x4379('0x32')][_0x4379('0x102')](_0x4379('0x6'),_0x3966e8[_0x4379('0x3e')][_0x4379('0x68')](_0x4379('0x6')),_0x5107ce));},{'priority':_0x4379('0x97')});}),this[_0x4379('0xd6')][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0xd1'))[_0x4379('0xc9')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x4379('0x10f'),'value':_0x5a32a5=>_0x5a32a5[_0x4379('0x68')]('vid')}}),this[_0x4379('0xd6')][_0x4379('0x71')]['schema']['on'](_0x4379('0xbd'),(_0x53b6f3,[,_0x11b7aa])=>{[_0x4379('0x65'),'vid_end',_0x4379('0x10f')]['includes'](_0x11b7aa)&&(_0x53b6f3[_0x4379('0x2a')]=!0x0,_0x53b6f3[_0x4379('0xf7')]());},{'priority':_0x4379('0xc2')}),this['editor'][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0x15'))[_0x4379('0x48')](_0x404e32=>{_0x404e32['on'](_0x4379('0x78'),(_0x5246bc,_0x448f79,_0x18a808)=>{if('\x20'!=_0x448f79['item'][_0x4379('0xac')]||_0x448f79[_0x4379('0x30')][_0x4379('0x9b')][_0x4379('0xaf')]>0x1)return;if(!_0x18a808[_0x4379('0xc')]['consume'](_0x448f79['item'],_0x5246bc['name']))return;const _0xb5a204=_0x18a808['writer'],_0x3525f2=_0x18a808[_0x4379('0x8a')]['toViewRange'](_0x448f79[_0x4379('0xc1')]);_0xb5a204['wrap'](_0x3525f2,_0xb5a204['createAttributeElement'](_0x4379('0x8b')));});}),this['editor'][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0x15'))[_0x4379('0x2f')]({'model':_0x4379('0xfd')}),this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xe2')]['on']('addMarker:revision',function(_0x23e542){const _0x2a314f=_0x23e542['plugins'][_0x4379('0x61')](_0x4379('0x7e'));return(_0xd6b02b,_0x3315be,_0x58e7a)=>{const _0x43b501=_0x3315be[_0x4379('0xfa')][_0x4379('0x106')](':')[0x1],_0x2328e8=_0x2a314f[_0x4379('0x9e')](_0x43b501);if(!_0x2328e8)return null;const _0x1d2c99=_0x4379('0x48')==_0x2328e8[_0x4379('0x5b')]?_0x4379('0x106'):_0x4379('0xe9');if(!_0x58e7a[_0x4379('0xc')][_0x4379('0xb6')](_0x3315be['markerRange'],_0xd6b02b[_0x4379('0x35')]))return;const _0x8c5640=_0x3315be[_0x4379('0x52')][_0x4379('0x99')](),_0x2c5b7f=_0x3315be['markerRange'][_0x4379('0x23')],_0x5b4725=_0x23e542[_0x4379('0x71')][_0x4379('0xf2')];let _0xee8bee=null,_0x21e26f=null,_0x736e20=!0x1,_0x33f9c5=!0x1;for(const _0x414824 of _0x8c5640){const _0x39e866=_0x414824[_0x4379('0x30')];_0x736e20=_0x736e20||_0x5b4725[_0x4379('0xd3')](_0x39e866);const _0xf26cf=_0x58e7a[_0x4379('0x8a')]['toViewElement'](_0x39e866);if(_0xf26cf&&_0xf26cf[_0x4379('0x7')](_0x4379('0xbf')))return;_0x4379('0x76')==_0x414824['type']&&(_0x5b4725['isBlock'](_0x39e866)&&!_0x5b4725['isLimit'](_0x39e866)&&(_0x39e866[_0x4379('0xed')]||_0x2c5b7f[_0x4379('0xc6')]?_0xee8bee&&_0xee8bee['parent']==_0x39e866||(_0xee8bee=_0x39e866,_0x41a2f8(_0x414824['previousPosition']),_0x33f9c5=!0x0):_0x21e26f=_0x21e26f||_0x414824[_0x4379('0x7a')]));}function _0x41a2f8(_0x4d59b9){const _0x2d8e99=_0x58e7a[_0x4379('0x32')][_0x4379('0xf4')](_0x4379('0x8b'),{'class':_0x4379('0x117')+_0x1d2c99}),_0x48b3a6=_0x58e7a[_0x4379('0x8a')][_0x4379('0x1f')](_0x4d59b9);_0x2328e8[_0x4379('0xac')][_0x4379('0xef')]&&_0x58e7a[_0x4379('0x32')][_0x4379('0xdc')]('ck-suggestion-marker-'+_0x1d2c99+_0x4379('0xe3'),_0x2d8e99),_0x2a314f[_0x4379('0x72')]==_0x2328e8&&_0x58e7a[_0x4379('0x32')][_0x4379('0xdc')](_0x4379('0x91'),_0x2d8e99),_0x58e7a[_0x4379('0x32')][_0x4379('0x40')](_0x48b3a6,_0x2d8e99),_0x58e7a[_0x4379('0x8a')]['bindElementToMarker'](_0x2d8e99,_0x3315be[_0x4379('0xfa')]);}_0x736e20||_0x33f9c5||!_0x21e26f||_0x41a2f8(_0x21e26f);};}(this[_0x4379('0xd6')]),{'priority':_0x4379('0xe0')}),this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xe2')]['on'](_0x4379('0xa1'),(_0x4907cf,_0x2afc5e,_0x4c5e5e)=>{const _0x4a5511=_0x4c5e5e['mapper'][_0x4379('0x60')](_0x2afc5e['markerName']);if(_0x4a5511)for(const _0x2a5ee5 of _0x4a5511)(_0x2a5ee5[_0x4379('0x98')](_0x4379('0x62'))||_0x2a5ee5[_0x4379('0x98')](_0x4379('0xa6')))&&(_0x4c5e5e[_0x4379('0x8a')][_0x4379('0x9c')](_0x2a5ee5,_0x2afc5e['markerName']),_0x4c5e5e['writer'][_0x4379('0x6c')](_0x2a5ee5));},{'priority':_0x4379('0xe0')}),this[_0x4379('0xd6')][_0x4379('0x58')]['downcastDispatcher']['on']('addMarker:revision',(_0x10bdf7,_0x3a7f98,_0x2e3390)=>{const _0x4eccda=_0x3a7f98[_0x4379('0xfa')][_0x4379('0x106')](':')[0x1],_0x3505e5=this['_getChangeFromId'](_0x4eccda);if(!_0x3505e5)return null;const _0x5a8494=_0x4379('0x48')==_0x3505e5[_0x4379('0x5b')]?_0x4379('0x106'):_0x4379('0xe9');if(_0x2e3390[_0x4379('0xc')]['test'](_0x3a7f98['markerRange'],_0x10bdf7[_0x4379('0x35')]))for(const _0x56f14d of _0x3a7f98[_0x4379('0x52')]['getItems']()){if(!_0x56f14d['is'](_0x4379('0x4b'),_0x4379('0x3a')))continue;const _0x4477f8=_0x2e3390[_0x4379('0x32')][_0x4379('0xf4')](_0x4379('0x8b'),{'class':'ck-suggestion-marker-'+_0x5a8494}),_0x4f5952=_0x2e3390[_0x4379('0x8a')][_0x4379('0x1f')](this['editor'][_0x4379('0x71')][_0x4379('0x90')](_0x56f14d));_0x3505e5[_0x4379('0xac')][_0x4379('0xef')]&&_0x2e3390[_0x4379('0x32')]['addClass'](_0x4379('0x117')+_0x5a8494+_0x4379('0xe3'),_0x4477f8),this[_0x4379('0x72')]==_0x3505e5&&_0x2e3390['writer']['addClass'](_0x4379('0x91'),_0x4477f8),_0x2e3390['writer'][_0x4379('0x40')](_0x4f5952,_0x4477f8),_0x2e3390['mapper'][_0x4379('0x100')](_0x4477f8,_0x3a7f98[_0x4379('0xfa')]);}},{'priority':'high'}),this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xe8')]['on'](_0x4379('0xb4'),()=>{this['editor'][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xb4')](_0xb97fe3=>{for(const _0x22fa1e of this[_0x4379('0xd6')][_0x4379('0x71')]['document']['getRootNames']()){const _0x262b03=this['editor'][_0x4379('0x71')]['document'][_0x4379('0x43')](_0x22fa1e),_0xb62f6=this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')][_0x4379('0x43')](_0x22fa1e);if(_0xb62f6){const _0x36827e=_0x262b03[_0x4379('0x68')]('revisionHistoryAttachChange');if(_0xb97fe3[_0x4379('0x55')]('data-change-id',_0xb62f6),_0xb97fe3[_0x4379('0xc7')](_0x4379('0x20'),_0xb62f6),_0xb97fe3['removeClass'](_0x4379('0xff'),_0xb62f6),_0xb97fe3[_0x4379('0xc7')](_0x4379('0x119'),_0xb62f6),_0x36827e){const _0x2ad120=this[_0x4379('0x9e')](_0x36827e);if(!_0x2ad120)return null;_0xb97fe3[_0x4379('0x102')](_0x4379('0x5e'),_0x36827e,_0xb62f6),_0xb97fe3[_0x4379('0xdc')](_0x4379('0x89')+_0x2ad120['type'],_0xb62f6),this[_0x4379('0x72')]==_0x2ad120&&_0xb97fe3[_0x4379('0xdc')]('ck-revision-history-root--active',_0xb62f6);}}}});}),this['editor'][_0x4379('0xea')][_0x4379('0xba')]('upcast')[_0x4379('0x81')]({'view':_0x4379('0x64'),'model':_0x4066a9=>_0x4379('0x21')+_0x4066a9,'converterPriority':'highest'}),this[_0x4379('0xd6')][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0xd1'))[_0x4379('0x81')]({'view':_0x4379('0xe'),'model':_0x32a072=>'revision-suggestion:'+_0x32a072,'converterPriority':'highest'}),this['editor']['conversion'][_0x4379('0xba')](_0x4379('0x15'))[_0x4379('0x2f')]({'model':'revision-suggestion','view':_0x12d070=>({'name':'suggestion:'+_0x12d070,'group':_0x4379('0x83')}),'converterPriority':_0x4379('0xc2')}),this[_0x4379('0xd6')][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0x1a'))[_0x4379('0x10e')]({'model':_0x4379('0x83'),'view':_0x87e921=>{const _0xedc8de=_0x87e921['markerName'][_0x4379('0x106')](':')[0x1];return _0x4379('0xb7')!=_0xedc8de&&_0x4379('0x10a')!=_0xedc8de?null:{'classes':['ck-suggestion-preview-marker',_0x4379('0xd2')+_0xedc8de]};}}),this['editor'][_0x4379('0x58')][_0x4379('0xe2')]['on'](_0x4379('0xb2'),et(this[_0x4379('0xd6')],_0x4379('0xe9')),{'priority':_0x4379('0xe0')}),this[_0x4379('0xd6')]['editing'][_0x4379('0xe2')]['on'](_0x4379('0xdf'),et(this['editor'],_0x4379('0x106')),{'priority':_0x4379('0xe0')}),this['editor'][_0x4379('0x58')][_0x4379('0xe2')]['on'](_0x4379('0x36'),(_0x5f5af5,_0x2385fd,_0x3965c3)=>{const _0x350463=_0x3965c3[_0x4379('0x8a')]['markerNameToElements'](_0x2385fd[_0x4379('0xfa')]);if(_0x350463)for(const _0x536b9d of _0x350463)_0x536b9d['is'](_0x4379('0x5a'))&&(_0x3965c3['mapper'][_0x4379('0x9c')](_0x536b9d,_0x2385fd[_0x4379('0xfa')]),_0x3965c3[_0x4379('0x32')][_0x4379('0x6c')](_0x536b9d));},{'priority':_0x4379('0xe0')});}[_0x4379('0x9e')](_0x10bed5){return this[_0x4379('0x34')]['get'](_0x10bed5);}['_getViewForChange'](_0x1ba7aa){return this['_changeView']&&this[_0x4379('0x47')]['destroy'](),this[_0x4379('0x47')]=new _0x531d7c(this['editor']['locale'],_0x1ba7aa),this['_changeView'];}['_initInteractions'](){this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xe8')][_0x4379('0x7b')][_0x4379('0x19')](_0x4379('0xfd')),this['on'](_0x4379('0xf'),(_0x32deee,_0x28597f,_0x12168f,_0x36fc6c)=>{_0x36fc6c&&this['_balloon'][_0x4379('0x6c')](_0x36fc6c),_0x12168f&&(this[_0x4379('0x26')]['add']({'view':_0x12168f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x749f7f=this[_0x4379('0xd6')][_0x4379('0x58')],_0x47eab6=this[_0x4379('0x9e')](_0x12168f[_0x4379('0x4d')]);let _0xc4f5ba;if(_0x47eab6['data'][_0x4379('0x3f')]){const _0x55da6e=_0x749f7f[_0x4379('0xa7')]['getDomRoot'](_0x47eab6[_0x4379('0xa2')]);_0xc4f5ba=Array[_0x4379('0x2e')](_0x55da6e['getClientRects']());}else{const _0x5d87e2=this[_0x4379('0xd6')]['model'][_0x4379('0x79')][_0x4379('0x61')](_0x4379('0x1e')+_0x12168f[_0x4379('0x4d')]);_0xc4f5ba=Array[_0x4379('0x2e')](_0x749f7f['mapper']['markerNameToElements'](_0x5d87e2[_0x4379('0x35')]))[_0x4379('0x3b')](_0x114e40=>_0x749f7f['view'][_0x4379('0x86')]['mapViewToDom'](_0x114e40))['map'](_0x4d03d5=>Array[_0x4379('0x2e')](_0x4d03d5[_0x4379('0x84')]()))[_0x4379('0x10c')]();}if(!this[_0x4379('0x18')])return _0xc4f5ba[0x0];return _0xc4f5ba[_0x4379('0x63')](_0x424193=>_0x424193[_0x4379('0x2')]-0x3<=this[_0x4379('0x18')]['y']&&_0x424193[_0x4379('0x12')]+0x3>=this[_0x4379('0x18')]['y']&&_0x424193[_0x4379('0xb8')]-0x3<=this[_0x4379('0x18')]['x']&&_0x424193[_0x4379('0x9d')]+0x3>=this[_0x4379('0x18')]['x'])||_0xc4f5ba[0x0];}}}),this[_0x4379('0x26')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x4379('0xbc'),(_0x5ee6a2,_0x3bdc81,_0x4a8a4e,_0x41fbb9)=>{this['activeView']=_0x4a8a4e?this['_getViewForChange'](_0x4a8a4e):null,this[_0x4379('0xd6')]['model']['change'](()=>{const _0x2ceca3=this[_0x4379('0xd6')]['editing'];_0x41fbb9&&(_0x41fbb9[_0x4379('0xac')][_0x4379('0x3f')]?_0x2ceca3[_0x4379('0xa7')]['change'](_0x562a43=>{_0x562a43[_0x4379('0xc7')]('ck-revision-history-root--active',_0x2ceca3['view'][_0x4379('0xe8')][_0x4379('0x43')](_0x41fbb9[_0x4379('0xa2')]));}):_0x2ceca3[_0x4379('0xd9')]('revision:'+_0x41fbb9['id'])),_0x4a8a4e&&(_0x4a8a4e[_0x4379('0xac')][_0x4379('0x3f')]?_0x2ceca3['view'][_0x4379('0xb4')](_0x14d4bf=>{_0x14d4bf[_0x4379('0xdc')]('ck-revision-history-root--active',_0x2ceca3['view'][_0x4379('0xe8')][_0x4379('0x43')](_0x4a8a4e[_0x4379('0xa2')]));}):_0x2ceca3[_0x4379('0xd9')](_0x4379('0x1e')+_0x4a8a4e['id']));});}),this[_0x4379('0xb9')](this['editor'][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')],'mouseover',(_0xd1dfd2,_0x2d8f7f)=>{if(this[_0x4379('0x72')])return;const _0x10d632=this[_0x4379('0x77')](_0x2d8f7f[_0x4379('0x96')]),_0x904d6d=this[_0x4379('0x34')]['get'](_0x10d632);_0x904d6d?(this[_0x4379('0x18')]={'x':_0x2d8f7f['domEvent']['x'],'y':_0x2d8f7f['domEvent']['y']},this['activeView']=this[_0x4379('0xab')](_0x904d6d)):(this[_0x4379('0x18')]=null,this[_0x4379('0xa8')]=null);}),this[_0x4379('0xb9')](this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')],_0x4379('0x38'),(_0xe07ccc,_0x56d53c)=>{const _0x4326a8=this[_0x4379('0x77')](_0x56d53c[_0x4379('0x96')]),_0x280b83=this[_0x4379('0x34')][_0x4379('0x61')](_0x4326a8);_0x280b83?(this[_0x4379('0x18')]={'x':_0x56d53c[_0x4379('0xce')]['x'],'y':_0x56d53c[_0x4379('0xce')]['y']},_0x280b83===this['activeChange']?this[_0x4379('0x26')]['updatePosition']():this[_0x4379('0x72')]=_0x280b83):(this[_0x4379('0x18')]=null,this[_0x4379('0x72')]=null);});}[_0x4379('0x77')](_0x3133ae){do{const _0x6e989a=_0x3133ae[_0x4379('0x68')](_0x4379('0x5e'));if(_0x6e989a)return _0x6e989a;_0x3133ae=_0x3133ae[_0x4379('0x9b')];}while(_0x3133ae);return null;}['_cleanMarkers'](){this['editor'][_0x4379('0x71')][_0x4379('0xb4')](_0x2e858c=>{for(const _0x325d3e of this['editor']['model'][_0x4379('0x79')])_0x2e858c[_0x4379('0x85')](_0x325d3e);});}}function et(_0x56c379,_0x520828){return(_0x74cadd,_0x31373e,_0x5a048e)=>{if(!_0x5a048e[_0x4379('0xc')][_0x4379('0xb6')](_0x31373e[_0x4379('0x52')],_0x74cadd[_0x4379('0x35')]))return;const _0x460c39=_0x31373e[_0x4379('0x52')]['getWalker'](),_0x45e536=_0x31373e[_0x4379('0x52')][_0x4379('0x23')],_0xd79e6d=_0x56c379[_0x4379('0x71')][_0x4379('0xf2')];let _0x3f6b2b=null,_0x3b77ff=null,_0x3961be=!0x1,_0x100e59=!0x1;for(const _0x1b474b of _0x460c39){const _0x3f4369=_0x1b474b[_0x4379('0x30')];_0x3961be=_0x3961be||_0xd79e6d['isContent'](_0x3f4369);const _0x341f08=_0x5a048e[_0x4379('0x8a')][_0x4379('0xf8')](_0x3f4369);if(_0x341f08&&_0x341f08[_0x4379('0x7')]('addHighlight'))return;_0x4379('0x76')==_0x1b474b['type']&&(_0xd79e6d[_0x4379('0x8d')](_0x3f4369)&&!_0xd79e6d[_0x4379('0x107')](_0x3f4369)&&(_0x3f4369[_0x4379('0xed')]||_0x45e536[_0x4379('0xc6')]?_0x3f6b2b&&_0x3f6b2b[_0x4379('0x9b')]==_0x3f4369||(_0x3f6b2b=_0x3f4369,_0x20cd4b(_0x1b474b['previousPosition']),_0x100e59=!0x0):_0x3b77ff=_0x3b77ff||_0x1b474b[_0x4379('0x7a')]));}function _0x20cd4b(_0x4884d0){const _0x12618f=_0x5a048e[_0x4379('0x8a')][_0x4379('0x1f')](_0x4884d0),_0x2f9671=_0x5a048e[_0x4379('0x32')][_0x4379('0xf4')](_0x4379('0x8b'),{'class':_0x4379('0xd2')+_0x520828});_0x5a048e[_0x4379('0x32')][_0x4379('0x40')](_0x12618f,_0x2f9671),_0x5a048e[_0x4379('0x8a')]['bindElementToMarker'](_0x2f9671,_0x31373e[_0x4379('0xfa')]);}_0x3961be||_0x100e59||!_0x3b77ff||_0x20cd4b(_0x3b77ff);};}export class RestoreRevisionCommand extends _0xa6b9bf{constructor(_0x37d980){super(_0x37d980);const _0xbed36=_0x37d980[_0x4379('0xa')][_0x4379('0x61')](d);this[_0x4379('0x2b')]=!0x1,this[_0x4379('0xb9')](_0xbed36,'change:isReady',()=>this[_0x4379('0xd8')]()),this[_0x4379('0xb9')](_0xbed36,'change:isEnabled',()=>this[_0x4379('0xd8')]());}['execute'](){const _0x152dbc=this[_0x4379('0xd6')],_0x455d77=_0x152dbc[_0x4379('0xa')][_0x4379('0x61')](d),_0x54d2c6=_0x455d77[_0x4379('0x2d')]?_0x455d77[_0x4379('0xd4')][_0x4379('0xe4')]:null;_0x152dbc[_0x4379('0x109')][_0x4379('0x61')](_0x4379('0xde'))[_0x4379('0x7c')](_0x54d2c6);}[_0x4379('0xd8')](){const {isReady:_0x1ff437,isEnabled:_0x42edc4}=this[_0x4379('0xd6')][_0x4379('0xa')]['get'](d);this['isEnabled']=_0x1ff437&&_0x42edc4;}}export class ShowChangeCommand extends _0xa6b9bf{constructor(_0x2ebdd4,{direction:_0x387e91}){super(_0x2ebdd4);const _0x3cfd71=_0x2ebdd4['plugins'][_0x4379('0x61')](d);this['affectsData']=!0x1,this[_0x4379('0xa4')]='forward'===_0x387e91?0x1:-0x1,this[_0x4379('0xb9')](_0x3cfd71,_0x4379('0xcb'),()=>this[_0x4379('0xd8')]()),this[_0x4379('0xb9')](_0x3cfd71,_0x4379('0x8'),()=>this[_0x4379('0xd8')]());}['execute'](){const _0x267829=this['editor'],_0x521d72=_0x267829[_0x4379('0xa')]['get'](d),{isNavigationMode:_0x439d92,currentChangeNumber:_0x2dc23d}=_0x521d72;let _0x45af53;if(_0x521d72[_0x4379('0x72')]=_0x439d92?_0x521d72[_0x4379('0xd4')][_0x4379('0xbe')][_0x4379('0x61')](_0x2dc23d+this['_step']):_0x521d72['diff'][_0x4379('0xbe')]['first'],_0x521d72['activeChange'][_0x4379('0xac')][_0x4379('0x3f')])_0x45af53=_0x267829['editing'][_0x4379('0xa7')][_0x4379('0x104')](_0x521d72[_0x4379('0x72')][_0x4379('0xa2')]);else{const _0x59da2d=_0x267829[_0x4379('0x71')][_0x4379('0x79')][_0x4379('0x61')]('revision:'+_0x521d72[_0x4379('0x72')]['id']);_0x45af53=_0x42256b(_0x267829['editing'],_0x59da2d);}_0x4c40f1({'target':_0x45af53,'viewportOffset':0x28});}[_0x4379('0xd8')](){const {isNavigationMode:_0x54fb14,currentChangeNumber:_0x40a006,numberOfChanges:_0x8ecac4,isReady:_0xf701d,isEnabled:_0x5a499f}=this[_0x4379('0xd6')][_0x4379('0xa')]['get'](d);this[_0x4379('0xf3')]=!!(_0x5a499f&&_0xf701d&&_0x8ecac4)&&(!_0x54fb14||(0x1===this[_0x4379('0xa4')]?_0x40a006<_0x8ecac4-0x1:_0x40a006>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5189=['threeVerticalDots','extendTemplate','Name\x20this\x20revision','panelPosition','Compare\x20against\x20selected','model','bindTemplate','map','children','bind','ck-revision-history-sidebar__revision__actions','name','locale','action','source','listView','Restore\x20this\x20revision','function','change:isActionsDropdownOpen','isVisible','_action','isActionsDropdownOpen','execute','Show\x20more\x20items','listenTo','isEnabled','add','find'];(function(_0x128bdb,_0x51894e){const _0x346271=function(_0x451856){while(--_0x451856){_0x128bdb['push'](_0x128bdb['shift']());}};_0x346271(++_0x51894e);}(_0x5189,0x68));const _0x3462=function(_0x128bdb,_0x51894e){_0x128bdb=_0x128bdb-0x0;let _0x346271=_0x5189[_0x128bdb];return _0x346271;};import{Collection as _0x36ed6b}from'ckeditor5/src/utils';import{icons as _0x83f33e}from'ckeditor5/src/core';import{Model as _0x2c1288,addListToDropdown as _0x37f198,createDropdown as _0x2e02e8}from'ckeditor5/src/ui';import{getTranslation as _0x2bf7ae}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1a2c88,_0x5c365d){const _0x24d791=_0x1a2c88[_0x3462('0xe')],_0x49243c=_0x1a2c88[_0x3462('0x14')],_0x314cf8=_0x2e02e8(_0x49243c);_0x314cf8[_0x3462('0xb')]='sw';const _0x512a69=function(_0x30cdf2,_0x42f39a){const _0x3a11e5=function(_0xa795de,_0xcbc179){const _0x389813=_0xa795de[_0x3462('0x14')],_0x567448={'Compare\x20against\x20selected':_0x2bf7ae(_0x389813,_0x3462('0xc')),'Name\x20this\x20revision':_0x2bf7ae(_0x389813,_0x3462('0xa')),'Restore\x20this\x20revision':_0x2bf7ae(_0x389813,_0x3462('0x18'))};return _0xcbc179[_0x3462('0xf')](_0x50e459=>{const _0x17a67c=_0x567448[_0x50e459['name']];return _0x17a67c&&_0x17a67c!==_0x50e459['name']&&(_0x50e459[_0x3462('0x13')]=_0x17a67c),_0x50e459;});}(_0x30cdf2,_0x42f39a),_0x5460fb=new _0x36ed6b();for(const _0x4663ed of _0x3a11e5){const _0x21149b={'type':'button','model':new _0x2c1288({'label':_0x4663ed[_0x3462('0x13')],'class':_0x4663ed['class'],'withText':!0x0,'_action':_0x4663ed[_0x3462('0x15')]})};_0x21149b[_0x3462('0xd')][_0x3462('0x11')]('isEnabled')['to'](_0x30cdf2,_0x3462('0x1'),_0x7bdff5=>'function'!=typeof _0x4663ed[_0x3462('0x5')]||(!_0x7bdff5||_0x4663ed[_0x3462('0x5')](_0x30cdf2))),_0x5460fb[_0x3462('0x6')](_0x21149b);}return _0x5460fb;}(_0x1a2c88,_0x5c365d);return _0x1a2c88[_0x3462('0x11')](_0x3462('0x1'))['to'](_0x314cf8,'isOpen'),_0x314cf8['buttonView']['set']({'label':_0x2bf7ae(_0x49243c,_0x3462('0x3')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x83f33e[_0x3462('0x8')]}),_0x314cf8[_0x3462('0x9')]({'attributes':{'class':[_0x3462('0x12'),_0x24d791['if'](_0x3462('0x1'),'ck-on')]},'on':{'click':_0x24d791['to'](_0x4d68a4=>_0x4d68a4['stopPropagation']())}}),_0x314cf8['on'](_0x3462('0x2'),_0x52a7ee=>{_0x1a2c88['isReady']&&_0x3462('0x19')==typeof _0x52a7ee[_0x3462('0x16')][_0x3462('0x0')]&&_0x52a7ee[_0x3462('0x16')][_0x3462('0x0')](_0x1a2c88);}),_0x37f198(_0x314cf8,_0x512a69),_0x314cf8[_0x3462('0x4')](_0x1a2c88,_0x3462('0x1a'),(_0x5a6d28,_0x6b3a47,_0x5e5919)=>{if(_0x5e5919)for(const _0x1e40f8 of _0x314cf8[_0x3462('0x17')]['items']){const _0x120b13=_0x1e40f8[_0x3462('0x10')]['first'],_0x4d369d=_0x5c365d[_0x3462('0x7')](_0x19a943=>_0x19a943['action']===_0x120b13[_0x3462('0x0')])[_0x3462('0x1b')];_0x1e40f8[_0x3462('0x1b')]=void 0x0===_0x4d369d||_0x4d369d(_0x1a2c88);}}),_0x314cf8;}
23
+ const _0x493f=['children','isActionsDropdownOpen','_action','set','locale','panelPosition','Restore\x20this\x20revision','map','threeVerticalDots','model','Name\x20this\x20revision','name','buttonView','change:isActionsDropdownOpen','class','add','isOpen','isEnabled','extendTemplate','first','isVisible','bindTemplate','execute','ck-revision-history-sidebar__revision__actions','bind','items','source','action','button','ck-on'];(function(_0x52f3eb,_0x493f75){const _0x5df5e5=function(_0x176eb3){while(--_0x176eb3){_0x52f3eb['push'](_0x52f3eb['shift']());}};_0x5df5e5(++_0x493f75);}(_0x493f,0x1c0));const _0x5df5=function(_0x52f3eb,_0x493f75){_0x52f3eb=_0x52f3eb-0x0;let _0x5df5e5=_0x493f[_0x52f3eb];return _0x5df5e5;};import{Collection as _0x114484}from'ckeditor5/src/utils';import{icons as _0x5b7446}from'ckeditor5/src/core';import{Model as _0x20ec74,addListToDropdown as _0x35422d,createDropdown as _0xc14292}from'ckeditor5/src/ui';import{getTranslation as _0x38b8f4}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x323dda,_0x5f3d34){const _0xc71103=_0x323dda[_0x5df5('0x17')],_0x24d734=_0x323dda[_0x5df5('0x6')],_0x19ef89=_0xc14292(_0x24d734);_0x19ef89[_0x5df5('0x7')]='sw';const _0x25008f=function(_0x37389a,_0x3a62c1){const _0x18305f=function(_0x51f380,_0x443e8f){const _0xacbd3f=_0x51f380['locale'],_0x54fd28={'Compare\x20against\x20selected':_0x38b8f4(_0xacbd3f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x38b8f4(_0xacbd3f,_0x5df5('0xc')),'Restore\x20this\x20revision':_0x38b8f4(_0xacbd3f,_0x5df5('0x8'))};return _0x443e8f[_0x5df5('0x9')](_0x3b548d=>{const _0x1f2127=_0x54fd28[_0x3b548d[_0x5df5('0xd')]];return _0x1f2127&&_0x1f2127!==_0x3b548d[_0x5df5('0xd')]&&(_0x3b548d['name']=_0x1f2127),_0x3b548d;});}(_0x37389a,_0x3a62c1),_0x19bb6c=new _0x114484();for(const _0x4f128d of _0x18305f){const _0x1e91d4={'type':_0x5df5('0x0'),'model':new _0x20ec74({'label':_0x4f128d[_0x5df5('0xd')],'class':_0x4f128d[_0x5df5('0x10')],'withText':!0x0,'_action':_0x4f128d[_0x5df5('0x1d')]})};_0x1e91d4[_0x5df5('0xb')][_0x5df5('0x1a')]('isEnabled')['to'](_0x37389a,_0x5df5('0x3'),_0x2c492a=>'function'!=typeof _0x4f128d[_0x5df5('0x13')]||(!_0x2c492a||_0x4f128d[_0x5df5('0x13')](_0x37389a))),_0x19bb6c[_0x5df5('0x11')](_0x1e91d4);}return _0x19bb6c;}(_0x323dda,_0x5f3d34);return _0x323dda[_0x5df5('0x1a')](_0x5df5('0x3'))['to'](_0x19ef89,_0x5df5('0x12')),_0x19ef89[_0x5df5('0xe')][_0x5df5('0x5')]({'label':_0x38b8f4(_0x24d734,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5b7446[_0x5df5('0xa')]}),_0x19ef89[_0x5df5('0x14')]({'attributes':{'class':[_0x5df5('0x19'),_0xc71103['if']('isActionsDropdownOpen',_0x5df5('0x1'))]},'on':{'click':_0xc71103['to'](_0x47ff69=>_0x47ff69['stopPropagation']())}}),_0x19ef89['on'](_0x5df5('0x18'),_0x18ca2f=>{_0x323dda['isReady']&&'function'==typeof _0x18ca2f[_0x5df5('0x1c')][_0x5df5('0x4')]&&_0x18ca2f[_0x5df5('0x1c')][_0x5df5('0x4')](_0x323dda);}),_0x35422d(_0x19ef89,_0x25008f),_0x19ef89['listenTo'](_0x323dda,_0x5df5('0xf'),(_0x2c69f6,_0x5e4f56,_0x4cb9d9)=>{if(_0x4cb9d9)for(const _0x3b25d4 of _0x19ef89['listView'][_0x5df5('0x1b')]){const _0x24afba=_0x3b25d4[_0x5df5('0x2')][_0x5df5('0x15')],_0x34ead7=_0x5f3d34['find'](_0x4516f6=>_0x4516f6['action']===_0x24afba['_action'])[_0x5df5('0x16')];_0x3b25d4['isVisible']=void 0x0===_0x34ead7||_0x34ead7(_0x323dda);}}),_0x19ef89;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2025=['push','ck-revision-history-sidebar__revision-author_creator','setTemplate','Revision\x20creator','0\x200\x2011\x2010','span','ck-revision-history-sidebar__revision-author__name','set','ck-revision-history-sidebar__revision-author','name'];(function(_0x18c0a8,_0x202545){const _0x4760bf=function(_0x1dc748){while(--_0x1dc748){_0x18c0a8['push'](_0x18c0a8['shift']());}};_0x4760bf(++_0x202545);}(_0x2025,0xcc));const _0x4760=function(_0x18c0a8,_0x202545){_0x18c0a8=_0x18c0a8-0x0;let _0x4760bf=_0x2025[_0x18c0a8];return _0x4760bf;};import{View as _0x3044a4,IconView as _0x481103}from'ckeditor5/src/ui';import{getTranslation as _0x3b4d71}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x49032e from'../../../theme/icons/user.svg';export default class ti extends _0x3044a4{constructor(_0x35a98a,_0x587f25,_0x1fc0f3){super(_0x35a98a);const _0x247299=new _0x481103();_0x247299[_0x4760('0x3')]({'content':_0x49032e,'viewBox':_0x4760('0x0')});const _0x30cf38=['ck',_0x4760('0x4')];_0x1fc0f3&&_0x30cf38[_0x4760('0x6')](_0x4760('0x7'));const _0x510c4e=[{'tag':_0x4760('0x1'),'attributes':{'class':['ck',_0x4760('0x2')],'title':_0x3b4d71(_0x35a98a,_0x1fc0f3?_0x4760('0x9'):'Revision\x20author')},'children':[_0x247299,_0x587f25[_0x4760('0x5')]]}];this[_0x4760('0x8')]({'tag':'li','attributes':{'class':_0x30cf38},'children':_0x510c4e});}}
23
+ const _0x2b90=['Revision\x20creator','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','push','Revision\x20author','name','set','span','ck-revision-history-sidebar__revision-author','setTemplate'];(function(_0x13251e,_0x2b904a){const _0x1fb8aa=function(_0x5e4e38){while(--_0x5e4e38){_0x13251e['push'](_0x13251e['shift']());}};_0x1fb8aa(++_0x2b904a);}(_0x2b90,0xb4));const _0x1fb8=function(_0x13251e,_0x2b904a){_0x13251e=_0x13251e-0x0;let _0x1fb8aa=_0x2b90[_0x13251e];return _0x1fb8aa;};import{View as _0x4803aa,IconView as _0x10c542}from'ckeditor5/src/ui';import{getTranslation as _0x41bafd}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4b290f from'../../../theme/icons/user.svg';export default class ti extends _0x4803aa{constructor(_0x1e06e2,_0x2ead21,_0x5d754c){super(_0x1e06e2);const _0x285a68=new _0x10c542();_0x285a68[_0x1fb8('0x6')]({'content':_0x4b290f,'viewBox':'0\x200\x2011\x2010'});const _0x1c1679=['ck',_0x1fb8('0x8')];_0x5d754c&&_0x1c1679[_0x1fb8('0x3')](_0x1fb8('0x1'));const _0x498e00=[{'tag':_0x1fb8('0x7'),'attributes':{'class':['ck',_0x1fb8('0x2')],'title':_0x41bafd(_0x1e06e2,_0x5d754c?_0x1fb8('0x0'):_0x1fb8('0x4'))},'children':[_0x285a68,_0x2ead21[_0x1fb8('0x5')]]}];this[_0x1fb8('0x9')]({'tag':'li','attributes':{'class':_0x1c1679},'children':_0x498e00});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x55c2=['extendTemplate','Revision\x20name'];(function(_0xb46d9a,_0x55c264){var _0x53746f=function(_0x2e411b){while(--_0x2e411b){_0xb46d9a['push'](_0xb46d9a['shift']());}};_0x53746f(++_0x55c264);}(_0x55c2,0x93));var _0x5374=function(_0xb46d9a,_0x55c264){_0xb46d9a=_0xb46d9a-0x0;var _0x53746f=_0x55c2[_0xb46d9a];return _0x53746f;};import{LabeledFieldView as _0x22ae79}from'ckeditor5/src/ui';import{getTranslation as _0x304272}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x22ae79{constructor(_0x3891c0,_0x3a1cba){super(_0x3891c0,_0x3a1cba),this['set']({'label':_0x304272(_0x3891c0,_0x5374('0x0'))}),this[_0x5374('0x1')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x23d4=['set','extendTemplate'];(function(_0x248817,_0x23d478){var _0x3cf5bf=function(_0x51e37c){while(--_0x51e37c){_0x248817['push'](_0x248817['shift']());}};_0x3cf5bf(++_0x23d478);}(_0x23d4,0xfd));var _0x3cf5=function(_0x248817,_0x23d478){_0x248817=_0x248817-0x0;var _0x3cf5bf=_0x23d4[_0x248817];return _0x3cf5bf;};import{LabeledFieldView as _0x35f02e}from'ckeditor5/src/ui';import{getTranslation as _0x1fa2fb}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x35f02e{constructor(_0x232c1b,_0x5e9459){super(_0x232c1b,_0x5e9459),this[_0x3cf5('0x1')]({'label':_0x1fa2fb(_0x232c1b,'Revision\x20name')}),this[_0x3cf5('0x0')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3007=['value','ck-revision-history-sidebar__revision','isReady','ck-revision-history-sidebar__revision-authors','createdAt','isActionsDropdownOpen','ck-revision-history-sidebar__revision_highlighted','authors','highlight','closest','fire','change','element','ck-revision-history-sidebar__revision__date','deselect','ck-reset','unhighlight','listenTo','ck-disabled','from','setTemplate','span','set','name','fieldView','_createdAtFormatted','setName','length','extendTemplate','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','div','isEnabled','srcElement','placeholder','220','creator','select','isHighlighted','revisionNameView','ck-revision-history-sidebar__revision_selected','bind','isSelected','render','revisionActionsView'];(function(_0x19a906,_0x30079a){const _0x47e875=function(_0xfef46d){while(--_0xfef46d){_0x19a906['push'](_0x19a906['shift']());}};_0x47e875(++_0x30079a);}(_0x3007,0xcf));const _0x47e8=function(_0x19a906,_0x30079a){_0x19a906=_0x19a906-0x0;let _0x47e875=_0x3007[_0x19a906];return _0x47e875;};import{View as _0x2dc0d5,createLabeledInputText as _0x47fb6e}from'ckeditor5/src/ui';import{ConfirmMixin as _0x565457}from'ckeditor5-collaboration/src/collaboration-core';import _0x537e8a from'./revisionnameview';import _0x5567a3 from'./revisionauthorview';import{dateToPrettyFormat as _0x3934f3}from'./utils';import{createActionsDropdownView as _0x31f7d5}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x565457(_0x2dc0d5){constructor(_0x239250,_0x3a742c,_0x50d9b2){super(_0x239250);const _0x116c1f=this['bindTemplate'],_0x105a7e=function(_0x5b2765,_0xd24769){const _0x546a07=Array[_0x47e8('0x20')](_0xd24769[_0x47e8('0x14')])['filter'](_0x2f5574=>_0x2f5574!=_0xd24769[_0x47e8('0x4')]);return _0xd24769[_0x47e8('0x4')]&&_0x546a07['unshift'](_0xd24769['creator']),_0x546a07['map'](_0x10b026=>new _0x5567a3(_0x5b2765,_0x10b026,_0x10b026==_0xd24769[_0x47e8('0x4')]));}(_0x239250,_0x3a742c);this['id']=_0x3a742c['id'],this['_revision']=_0x3a742c,this[_0x47e8('0x9')](_0x47e8('0x24'),_0x47e8('0x11'))['to'](_0x3a742c),this[_0x47e8('0x9')](_0x47e8('0x26'))['to'](this,_0x47e8('0x11'),_0x1b317a=>_0x1b317a?_0x3934f3(_0x239250['uiLanguage'],_0x1b317a):void 0x0),this[_0x47e8('0x23')](_0x47e8('0xa'),!0x1),this[_0x47e8('0x23')](_0x47e8('0x6'),!0x1),this[_0x47e8('0x23')](_0x47e8('0x12'),!0x1),this[_0x47e8('0x23')](_0x47e8('0xf'),!0x1),this['set'](_0x47e8('0x0'),!0x1),this['revisionNameView']=new _0x537e8a(_0x239250,_0x47fb6e),this[_0x47e8('0x7')][_0x47e8('0x25')][_0x47e8('0x29')]({'attributes':{'maxlength':_0x47e8('0x3')}}),this[_0x47e8('0x7')][_0x47e8('0x25')]['bind'](_0x47e8('0xd'),_0x47e8('0x2'))['to'](this,_0x47e8('0x24'),_0x47e8('0x26')),this[_0x47e8('0x7')][_0x47e8('0x9')](_0x47e8('0x0'))['to'](this,_0x47e8('0xa'),this,_0x47e8('0x0'),(_0x13e042,_0x2ad65b)=>_0x13e042&&_0x2ad65b),this[_0x47e8('0xc')]=_0x50d9b2&&_0x50d9b2[_0x47e8('0x28')]?_0x31f7d5(this,_0x50d9b2):'',this[_0x47e8('0xc')]&&this[_0x47e8('0xc')][_0x47e8('0x9')]('isEnabled')['to'](this),this[_0x47e8('0x21')]({'tag':'div','attributes':{'class':['ck',_0x47e8('0x1c'),'ck-revision-history-sidebar__revision-wrapper',_0x116c1f['if']('isConfirm',_0x47e8('0x2a'))]},'children':[{'tag':_0x47e8('0x2b'),'attributes':{'class':['ck','ck-reset',_0x47e8('0xe'),_0x116c1f['if'](_0x47e8('0x0'),_0x47e8('0x1f'),_0x9c15c9=>!_0x9c15c9),_0x116c1f['if']('isSelected',_0x47e8('0x8')),_0x116c1f['if']('isHighlighted',_0x47e8('0x13')),_0x116c1f['if'](_0x47e8('0x12'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x47e8('0x7')],{'tag':_0x47e8('0x22'),'attributes':{'class':['ck',_0x47e8('0x1a')]},'children':[{'text':_0x116c1f['to'](_0x47e8('0x26'))}]},{'tag':_0x47e8('0x2b'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x47e8('0x10')]},'children':_0x105a7e}]},this[_0x47e8('0xc')]],'on':{'click':_0x116c1f['to'](_0x3529f4=>{_0x3529f4[_0x47e8('0x1')][_0x47e8('0x16')]('.ck-thread__remove-confirm')||this[_0x47e8('0xf')]&&this[_0x47e8('0x0')]&&this[_0x47e8('0x17')](_0x47e8('0x5'),{'id':this['id']});})}}]});}[_0x47e8('0xb')](){super[_0x47e8('0xb')]();const _0x1fb92c=this[_0x47e8('0x7')][_0x47e8('0x25')][_0x47e8('0x19')];this[_0x47e8('0x1e')](_0x1fb92c,_0x47e8('0x18'),()=>{this[_0x47e8('0x17')](_0x47e8('0x27'),{'id':this['id'],'name':_0x1fb92c['value']});});}[_0x47e8('0x5')](){this['isSelected']=!0x0;}[_0x47e8('0x1b')](){this[_0x47e8('0xa')]=!0x1;}[_0x47e8('0x15')](){this['isHighlighted']=!0x0;}[_0x47e8('0x1d')](){this[_0x47e8('0x6')]=!0x1;}}
23
+ const _0x4bd2=['_createdAtFormatted','isActionsDropdownOpen','ck-revision-history-sidebar__revision','revisionActionsView','isSelected','createdAt','isHighlighted','isEnabled','set','fieldView','ck-revision-history-sidebar__revision__controls-wrapper','change','value','name','bind','ck-revision-history-sidebar__revision__date','bindTemplate','setTemplate','setName','render','ck-revision-history-sidebar__revision_highlighted','unshift','unhighlight','uiLanguage','closest','length','ck-revision-history-sidebar__actions_dropdown_open','creator','select','revisionNameView','from','isReady','fire','ck-revision-history-sidebar__revision-wrapper','filter','isConfirm','map','element','220','div','span','highlight','extendTemplate','deselect','ck-revision-history-sidebar__revision-authors','ck-reset'];(function(_0xe72fe9,_0x4bd299){const _0x591c2d=function(_0x381bcc){while(--_0x381bcc){_0xe72fe9['push'](_0xe72fe9['shift']());}};_0x591c2d(++_0x4bd299);}(_0x4bd2,0xa0));const _0x591c=function(_0xe72fe9,_0x4bd299){_0xe72fe9=_0xe72fe9-0x0;let _0x591c2d=_0x4bd2[_0xe72fe9];return _0x591c2d;};import{View as _0x385d30,createLabeledInputText as _0x5483b6}from'ckeditor5/src/ui';import{ConfirmMixin as _0x567fa8}from'ckeditor5-collaboration/src/collaboration-core';import _0x1d616d from'./revisionnameview';import _0x4b0eee from'./revisionauthorview';import{dateToPrettyFormat as _0x12e496}from'./utils';import{createActionsDropdownView as _0x3856ae}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x567fa8(_0x385d30){constructor(_0x393b20,_0xe069da,_0x5d5b4f){super(_0x393b20);const _0x24db21=this[_0x591c('0x28')],_0x2fff2f=function(_0x2947e5,_0x444b37){const _0x723cc0=Array[_0x591c('0x8')](_0x444b37['authors'])[_0x591c('0xc')](_0x135149=>_0x135149!=_0x444b37['creator']);return _0x444b37[_0x591c('0x5')]&&_0x723cc0[_0x591c('0x2d')](_0x444b37[_0x591c('0x5')]),_0x723cc0[_0x591c('0xe')](_0x448878=>new _0x4b0eee(_0x2947e5,_0x448878,_0x448878==_0x444b37[_0x591c('0x5')]));}(_0x393b20,_0xe069da);this['id']=_0xe069da['id'],this['_revision']=_0xe069da,this['bind'](_0x591c('0x25'),_0x591c('0x1d'))['to'](_0xe069da),this[_0x591c('0x26')](_0x591c('0x18'))['to'](this,'createdAt',_0x319303=>_0x319303?_0x12e496(_0x393b20[_0x591c('0x1')],_0x319303):void 0x0),this[_0x591c('0x20')](_0x591c('0x1c'),!0x1),this['set'](_0x591c('0x1e'),!0x1),this[_0x591c('0x20')]('isActionsDropdownOpen',!0x1),this[_0x591c('0x20')]('isReady',!0x1),this[_0x591c('0x20')](_0x591c('0x1f'),!0x1),this['revisionNameView']=new _0x1d616d(_0x393b20,_0x5483b6),this[_0x591c('0x7')][_0x591c('0x21')][_0x591c('0x14')]({'attributes':{'maxlength':_0x591c('0x10')}}),this['revisionNameView'][_0x591c('0x21')]['bind'](_0x591c('0x24'),'placeholder')['to'](this,_0x591c('0x25'),_0x591c('0x18')),this['revisionNameView'][_0x591c('0x26')](_0x591c('0x1f'))['to'](this,'isSelected',this,_0x591c('0x1f'),(_0x7ea9aa,_0x51e468)=>_0x7ea9aa&&_0x51e468),this[_0x591c('0x1b')]=_0x5d5b4f&&_0x5d5b4f[_0x591c('0x3')]?_0x3856ae(this,_0x5d5b4f):'',this[_0x591c('0x1b')]&&this['revisionActionsView'][_0x591c('0x26')]('isEnabled')['to'](this),this[_0x591c('0x29')]({'tag':_0x591c('0x11'),'attributes':{'class':['ck',_0x591c('0x17'),_0x591c('0xb'),_0x24db21['if'](_0x591c('0xd'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x591c('0x11'),'attributes':{'class':['ck',_0x591c('0x17'),_0x591c('0x1a'),_0x24db21['if']('isEnabled','ck-disabled',_0x47b2b9=>!_0x47b2b9),_0x24db21['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x24db21['if'](_0x591c('0x1e'),_0x591c('0x2c')),_0x24db21['if'](_0x591c('0x19'),_0x591c('0x4'))]},'children':[this[_0x591c('0x7')],{'tag':_0x591c('0x12'),'attributes':{'class':['ck',_0x591c('0x27')]},'children':[{'text':_0x24db21['to'](_0x591c('0x18'))}]},{'tag':'div','attributes':{'class':['ck',_0x591c('0x22')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x591c('0x16')]},'children':_0x2fff2f}]},this[_0x591c('0x1b')]],'on':{'click':_0x24db21['to'](_0x586ae9=>{_0x586ae9['srcElement'][_0x591c('0x2')]('.ck-thread__remove-confirm')||this[_0x591c('0x9')]&&this[_0x591c('0x1f')]&&this[_0x591c('0xa')](_0x591c('0x6'),{'id':this['id']});})}}]});}[_0x591c('0x2b')](){super['render']();const _0x584fae=this[_0x591c('0x7')][_0x591c('0x21')][_0x591c('0xf')];this['listenTo'](_0x584fae,_0x591c('0x23'),()=>{this[_0x591c('0xa')](_0x591c('0x2a'),{'id':this['id'],'name':_0x584fae[_0x591c('0x24')]});});}[_0x591c('0x6')](){this[_0x591c('0x1c')]=!0x0;}[_0x591c('0x15')](){this[_0x591c('0x1c')]=!0x1;}[_0x591c('0x13')](){this['isHighlighted']=!0x0;}[_0x591c('0x0')](){this[_0x591c('0x1e')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34cd=['ck-hidden','isVisible','click','toggle','true','set','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','setTemplate','_isCollapsed','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser'];(function(_0xadae68,_0x34cdbd){const _0xd41c77=function(_0x114112){while(--_0x114112){_0xadae68['push'](_0xadae68['shift']());}};_0xd41c77(++_0x34cdbd);}(_0x34cd,0x91));const _0xd41c=function(_0xadae68,_0x34cdbd){_0xadae68=_0xadae68-0x0;let _0xd41c77=_0x34cd[_0xadae68];return _0xd41c77;};import{View as _0x4eefc6}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4eefc6{constructor(_0x4ec65a){super(_0x4ec65a);const _0x25c67d=this[_0xd41c('0x5')];this[_0xd41c('0x3')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xd41c('0x6')]({'tag':_0xd41c('0x8'),'attributes':{'class':['ck',_0xd41c('0xa'),_0x25c67d['if'](_0xd41c('0xc'),_0xd41c('0xb'),_0x56fac7=>!_0x56fac7),_0x25c67d['if'](_0xd41c('0x7'),_0xd41c('0x9'))],'role':'button','aria-pressed':_0x25c67d['to'](_0xd41c('0x7'),_0x25b65=>_0x25b65?'false':_0xd41c('0x2'))},'children':[{'tag':_0xd41c('0x8'),'attributes':{'class':['ck',_0xd41c('0x4')]}}],'on':{'click':_0x25c67d['to'](_0xd41c('0x0'))}});}[_0xd41c('0x1')](){this[_0xd41c('0x7')]=!this[_0xd41c('0x7')];}}
23
+ const _0x55f6=['ck-revision-history-sidebar__subrevision-collapser_collapsed','set','ck-revision-history-sidebar__subrevision-collapser','isVisible','bindTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','span','toggle','_isCollapsed'];(function(_0x48cd9f,_0x55f653){const _0x50f82c=function(_0x34dd75){while(--_0x34dd75){_0x48cd9f['push'](_0x48cd9f['shift']());}};_0x50f82c(++_0x55f653);}(_0x55f6,0x196));const _0x50f8=function(_0x48cd9f,_0x55f653){_0x48cd9f=_0x48cd9f-0x0;let _0x50f82c=_0x55f6[_0x48cd9f];return _0x50f82c;};import{View as _0x208bfd}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x208bfd{constructor(_0x553a35){super(_0x553a35);const _0x52d395=this[_0x50f8('0x3')];this[_0x50f8('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x50f8('0x5'),'attributes':{'class':['ck',_0x50f8('0x1'),_0x52d395['if'](_0x50f8('0x2'),'ck-hidden',_0x5382d2=>!_0x5382d2),_0x52d395['if'](_0x50f8('0x7'),_0x50f8('0x8'))],'role':'button','aria-pressed':_0x52d395['to'](_0x50f8('0x7'),_0x143727=>_0x143727?'false':'true')},'children':[{'tag':_0x50f8('0x5'),'attributes':{'class':['ck',_0x50f8('0x4')]}}],'on':{'click':_0x52d395['to']('click')}});}[_0x50f8('0x6')](){this[_0x50f8('0x7')]=!this[_0x50f8('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf475=['set','span','creator','uiLanguage','select','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','bindTemplate','_createdAtFormatted','bind','isSelected','ck-revision-history-sidebar__subrevision','createdAt','deselect','fire'];(function(_0x35f43e,_0xf475b2){const _0x4d944b=function(_0x2b2bbe){while(--_0x2b2bbe){_0x35f43e['push'](_0x35f43e['shift']());}};_0x4d944b(++_0xf475b2);}(_0xf475,0x146));const _0x4d94=function(_0x35f43e,_0xf475b2){_0x35f43e=_0x35f43e-0x0;let _0x4d944b=_0xf475[_0x35f43e];return _0x4d944b;};import{View as _0x4ff6d7}from'ckeditor5/src/ui';import _0x19afbf from'./revisionauthorview';import{dateToPrettyFormat as _0x290488}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x4ff6d7{constructor(_0x21445b,_0x5249de,_0x44fb9d){super(_0x21445b);const _0x216b0c=this[_0x4d94('0xb')];this['id']=_0x5249de['id'],this[_0x4d94('0xd')]('createdAt')['to'](_0x5249de),this[_0x4d94('0x4')]('isSelected',!0x1),this[_0x4d94('0xd')]('_createdAtFormatted')['to'](this,_0x4d94('0x1'),_0x4f15b3=>_0x4f15b3?_0x290488(_0x21445b[_0x4d94('0x7')],_0x4f15b3):void 0x0),this['_parentRevisionId']=_0x44fb9d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4d94('0x0'),_0x216b0c['if']('isSelected',_0x4d94('0xa'))]},'children':[{'tag':_0x4d94('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x216b0c['to'](_0x4d94('0xc'))}]},{'tag':'ul','attributes':{'class':['ck',_0x4d94('0x9')]},'children':[new _0x19afbf(_0x21445b,_0x5249de[_0x4d94('0x6')],!0x0)]}],'on':{'click':_0x216b0c['to'](this[_0x4d94('0x8')]['bind'](this))}});}[_0x4d94('0x8')](){this[_0x4d94('0xe')]=!0x0,this[_0x4d94('0x3')](_0x4d94('0x8'),{'parentId':this['_parentRevisionId']});}[_0x4d94('0x2')](){this[_0x4d94('0xe')]=!0x1;}}
23
+ const _0x2923=['createdAt','_createdAtFormatted','bind','div','setTemplate','ck-revision-history-sidebar__revision','bindTemplate','isSelected','select','set','ck-reset','uiLanguage','creator','deselect'];(function(_0x55ed57,_0x292390){const _0x52c32e=function(_0x1921ea){while(--_0x1921ea){_0x55ed57['push'](_0x55ed57['shift']());}};_0x52c32e(++_0x292390);}(_0x2923,0x1cd));const _0x52c3=function(_0x55ed57,_0x292390){_0x55ed57=_0x55ed57-0x0;let _0x52c32e=_0x2923[_0x55ed57];return _0x52c32e;};import{View as _0x15998c}from'ckeditor5/src/ui';import _0x32b0a3 from'./revisionauthorview';import{dateToPrettyFormat as _0x57a414}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x15998c{constructor(_0x58c3d1,_0x8b072a,_0x3c22b6){super(_0x58c3d1);const _0x4e817e=this[_0x52c3('0x7')];this['id']=_0x8b072a['id'],this[_0x52c3('0x3')](_0x52c3('0x1'))['to'](_0x8b072a),this[_0x52c3('0xa')](_0x52c3('0x8'),!0x1),this[_0x52c3('0x3')]('_createdAtFormatted')['to'](this,_0x52c3('0x1'),_0x27c9a9=>_0x27c9a9?_0x57a414(_0x58c3d1[_0x52c3('0xc')],_0x27c9a9):void 0x0),this['_parentRevisionId']=_0x3c22b6,this[_0x52c3('0x5')]({'tag':_0x52c3('0x4'),'attributes':{'class':['ck',_0x52c3('0xb'),_0x52c3('0x6'),'ck-revision-history-sidebar__subrevision',_0x4e817e['if'](_0x52c3('0x8'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x4e817e['to'](_0x52c3('0x2'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x32b0a3(_0x58c3d1,_0x8b072a[_0x52c3('0xd')],!0x0)]}],'on':{'click':_0x4e817e['to'](this[_0x52c3('0x9')]['bind'](this))}});}[_0x52c3('0x9')](){this['isSelected']=!0x0,this['fire'](_0x52c3('0x9'),{'parentId':this['_parentRevisionId']});}[_0x52c3('0x0')](){this[_0x52c3('0x8')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x26a3=['toLocaleDateString','long','numeric'];(function(_0x28aa44,_0x26a3c7){var _0x1aa251=function(_0x195000){while(--_0x195000){_0x28aa44['push'](_0x28aa44['shift']());}};_0x1aa251(++_0x26a3c7);}(_0x26a3,0x10e));var _0x1aa2=function(_0x28aa44,_0x26a3c7){_0x28aa44=_0x28aa44-0x0;var _0x1aa251=_0x26a3[_0x28aa44];return _0x1aa251;};export function dateToPrettyFormat(_0x25d8a8,_0x20bd52){return _0x20bd52[_0x1aa2('0x0')](_0x25d8a8,{'month':_0x1aa2('0x1'),'day':'numeric'})+',\x20'+_0x20bd52['toLocaleTimeString'](_0x25d8a8,{'hour':_0x1aa2('0x2'),'minute':_0x1aa2('0x2')});}
23
+ var _0x5caf=['numeric','long','toLocaleDateString','toLocaleTimeString'];(function(_0x4bb129,_0x5caf91){var _0x1727d2=function(_0x4fc6e1){while(--_0x4fc6e1){_0x4bb129['push'](_0x4bb129['shift']());}};_0x1727d2(++_0x5caf91);}(_0x5caf,0x1a2));var _0x1727=function(_0x4bb129,_0x5caf91){_0x4bb129=_0x4bb129-0x0;var _0x1727d2=_0x5caf[_0x4bb129];return _0x1727d2;};export function dateToPrettyFormat(_0x49cad3,_0x5bd53e){return _0x5bd53e[_0x1727('0x0')](_0x49cad3,{'month':_0x1727('0x3'),'day':_0x1727('0x2')})+',\x20'+_0x5bd53e[_0x1727('0x1')](_0x49cad3,{'hour':_0x1727('0x2'),'minute':_0x1727('0x2')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5990=['listenTo','keystrokes','set','arrowup','arrowright','reset','shift\x20+\x20tab','type','stopPropagation','label','locale','cancelButtonView','check','_focusables','_focusCycler','extendTemplate','input','render','form','element','cancel','submit','delegate','ck-button-save','revisionNameInputView','tab','value','setTemplate','trim','fieldView','arrowleft','execute','saveButtonView','_createRevisionNameInput','Save','focusTracker','220','revisionName','_createButton','ck-button-cancel'];(function(_0xed72de,_0x599042){const _0x468e99=function(_0x595b4b){while(--_0x595b4b){_0xed72de['push'](_0xed72de['shift']());}};_0x468e99(++_0x599042);}(_0x5990,0xa2));const _0x468e=function(_0xed72de,_0x599042){_0xed72de=_0xed72de-0x0;let _0x468e99=_0x5990[_0xed72de];return _0x468e99;};import{icons as _0x993828}from'ckeditor5/src/core';import{ButtonView as _0x3e6469,FocusCycler as _0x2cc709,LabeledFieldView as _0xab1904,View as _0x17ea40,ViewCollection as _0x3c2e0e,createLabeledInputText as _0x10030f,injectCssTransitionDisabler as _0x2fae4a,submitHandler as _0x59c660}from'ckeditor5/src/ui';import{FocusTracker as _0x492413,KeystrokeHandler as _0x2baff2}from'ckeditor5/src/utils';import{getTranslation as _0x46e229}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x17ea40{constructor(_0x76ba9a){super(_0x76ba9a),this['focusTracker']=new _0x492413(),this[_0x468e('0x27')]=new _0x2baff2(),this[_0x468e('0x0')]('revisionNameInputValue',''),this[_0x468e('0x16')]=this[_0x468e('0x1f')](),this[_0x468e('0x1e')]=this[_0x468e('0x24')](_0x46e229(_0x76ba9a,_0x468e('0x20')),_0x993828[_0x468e('0xa')],_0x468e('0x15')),this[_0x468e('0x1e')][_0x468e('0x5')]=_0x468e('0x13'),this['cancelButtonView']=this[_0x468e('0x24')](_0x46e229(_0x76ba9a,'Cancel'),_0x993828['cancel'],_0x468e('0x25'),_0x468e('0x12')),this[_0x468e('0xb')]=new _0x3c2e0e(),this[_0x468e('0xc')]=new _0x2cc709({'focusables':this[_0x468e('0xb')],'focusTracker':this[_0x468e('0x21')],'keystrokeHandler':this[_0x468e('0x27')],'actions':{'focusPrevious':_0x468e('0x4'),'focusNext':_0x468e('0x17')}}),this[_0x468e('0x19')]({'tag':_0x468e('0x10'),'attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this[_0x468e('0x9')]]}),_0x2fae4a(this);}[_0x468e('0xf')](){super[_0x468e('0xf')](),_0x59c660({'view':this}),([this[_0x468e('0x16')],this[_0x468e('0x1e')],this[_0x468e('0x9')]]['forEach'](_0x502a52=>{this['_focusables']['add'](_0x502a52),this[_0x468e('0x21')]['add'](_0x502a52['element']);}),this[_0x468e('0x27')][_0x468e('0x26')](this[_0x468e('0x11')]));const _0x132ebd=_0x4dd0a4=>_0x4dd0a4[_0x468e('0x6')]();this[_0x468e('0x27')][_0x468e('0x0')](_0x468e('0x2'),_0x132ebd),this['keystrokes'][_0x468e('0x0')](_0x468e('0x1c'),_0x132ebd),this[_0x468e('0x27')][_0x468e('0x0')](_0x468e('0x1'),_0x132ebd),this[_0x468e('0x27')][_0x468e('0x0')]('arrowdown',_0x132ebd);}['focus'](){this[_0x468e('0xc')]['focusFirst']();}get[_0x468e('0x23')](){return this[_0x468e('0x16')]['fieldView'][_0x468e('0x11')][_0x468e('0x18')][_0x468e('0x1a')]();}set[_0x468e('0x23')](_0x1c6a66){this[_0x468e('0x16')]['fieldView'][_0x468e('0x11')][_0x468e('0x18')]=_0x1c6a66[_0x468e('0x1a')]();}[_0x468e('0x3')](){this[_0x468e('0x16')]['fieldView'][_0x468e('0x11')][_0x468e('0x18')]='';}[_0x468e('0x1f')](){const _0x3fb6d6=new _0xab1904(this[_0x468e('0x8')],_0x10030f),_0x274689=_0x3fb6d6[_0x468e('0x1b')];return _0x274689[_0x468e('0xd')]({'attributes':{'maxlength':_0x468e('0x22')}}),_0x3fb6d6[_0x468e('0x7')]=_0x46e229(this[_0x468e('0x8')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x274689['on'](_0x468e('0xe'),()=>{this['revisionNameInputValue']=_0x274689['element'][_0x468e('0x18')][_0x468e('0x1a')]();}),_0x3fb6d6;}[_0x468e('0x24')](_0x2bfd9c,_0x33d5cc,_0x1b9608,_0x4b4477){const _0x5edca3=new _0x3e6469(this[_0x468e('0x8')]);return _0x5edca3['set']({'label':_0x2bfd9c,'icon':_0x33d5cc,'tooltip':!0x0}),_0x5edca3[_0x468e('0xd')]({'attributes':{'class':_0x1b9608}}),_0x4b4477&&_0x5edca3[_0x468e('0x14')](_0x468e('0x1d'))['to'](this,_0x4b4477),_0x5edca3;}}
23
+ const _0x1e65=['revisionNameInputValue','delegate','trim','arrowdown','keystrokes','element','render','type','ck-button-save','set','stopPropagation','Save','focusFirst','Name\x20of\x20the\x20revision\x20(optional)','_focusCycler','execute','saveButtonView','ck-button-cancel','cancel','add','label','extendTemplate','form','_createRevisionNameInput','focusTracker','Cancel','tab','arrowup','check','revisionNameInputView','shift\x20+\x20tab','cancelButtonView','fieldView','value','submit','revisionName','_focusables','setTemplate','focus','arrowleft','ck-revision-history-save-revision-form','locale','reset'];(function(_0x3420eb,_0x1e65b7){const _0x1e63a5=function(_0x1cdb66){while(--_0x1cdb66){_0x3420eb['push'](_0x3420eb['shift']());}};_0x1e63a5(++_0x1e65b7);}(_0x1e65,0x13f));const _0x1e63=function(_0x3420eb,_0x1e65b7){_0x3420eb=_0x3420eb-0x0;let _0x1e63a5=_0x1e65[_0x3420eb];return _0x1e63a5;};import{icons as _0x4c0e8f}from'ckeditor5/src/core';import{ButtonView as _0x3b2b5f,FocusCycler as _0x4ba422,LabeledFieldView as _0x447f46,View as _0xaa03b7,ViewCollection as _0x471550,createLabeledInputText as _0x3596d9,injectCssTransitionDisabler as _0x32a811,submitHandler as _0x3a92c3}from'ckeditor5/src/ui';import{FocusTracker as _0xc70a7e,KeystrokeHandler as _0x5d22fb}from'ckeditor5/src/utils';import{getTranslation as _0x3c3428}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xaa03b7{constructor(_0x33f0f7){super(_0x33f0f7),this[_0x1e63('0x6')]=new _0xc70a7e(),this[_0x1e63('0x1d')]=new _0x5d22fb(),this[_0x1e63('0x22')](_0x1e63('0x19'),''),this[_0x1e63('0xb')]=this[_0x1e63('0x5')](),this[_0x1e63('0x29')]=this['_createButton'](_0x3c3428(_0x33f0f7,_0x1e63('0x24')),_0x4c0e8f[_0x1e63('0xa')],_0x1e63('0x21')),this[_0x1e63('0x29')][_0x1e63('0x20')]=_0x1e63('0x10'),this[_0x1e63('0xd')]=this['_createButton'](_0x3c3428(_0x33f0f7,_0x1e63('0x7')),_0x4c0e8f[_0x1e63('0x0')],_0x1e63('0x2a'),_0x1e63('0x0')),this[_0x1e63('0x12')]=new _0x471550(),this[_0x1e63('0x27')]=new _0x4ba422({'focusables':this['_focusables'],'focusTracker':this[_0x1e63('0x6')],'keystrokeHandler':this[_0x1e63('0x1d')],'actions':{'focusPrevious':_0x1e63('0xc'),'focusNext':_0x1e63('0x8')}}),this[_0x1e63('0x13')]({'tag':_0x1e63('0x4'),'attributes':{'class':['ck',_0x1e63('0x16'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x1e63('0xb')],this[_0x1e63('0x29')],this[_0x1e63('0xd')]]}),_0x32a811(this);}[_0x1e63('0x1f')](){super[_0x1e63('0x1f')](),_0x3a92c3({'view':this}),([this[_0x1e63('0xb')],this[_0x1e63('0x29')],this[_0x1e63('0xd')]]['forEach'](_0x21df5f=>{this[_0x1e63('0x12')][_0x1e63('0x1')](_0x21df5f),this[_0x1e63('0x6')][_0x1e63('0x1')](_0x21df5f['element']);}),this[_0x1e63('0x1d')]['listenTo'](this[_0x1e63('0x1e')]));const _0x4515c3=_0x2b0b85=>_0x2b0b85[_0x1e63('0x23')]();this[_0x1e63('0x1d')][_0x1e63('0x22')]('arrowright',_0x4515c3),this[_0x1e63('0x1d')][_0x1e63('0x22')](_0x1e63('0x15'),_0x4515c3),this[_0x1e63('0x1d')]['set'](_0x1e63('0x9'),_0x4515c3),this[_0x1e63('0x1d')][_0x1e63('0x22')](_0x1e63('0x1c'),_0x4515c3);}[_0x1e63('0x14')](){this[_0x1e63('0x27')][_0x1e63('0x25')]();}get['revisionName'](){return this[_0x1e63('0xb')][_0x1e63('0xe')][_0x1e63('0x1e')][_0x1e63('0xf')][_0x1e63('0x1b')]();}set[_0x1e63('0x11')](_0x1dcef8){this[_0x1e63('0xb')][_0x1e63('0xe')][_0x1e63('0x1e')]['value']=_0x1dcef8[_0x1e63('0x1b')]();}[_0x1e63('0x18')](){this[_0x1e63('0xb')][_0x1e63('0xe')][_0x1e63('0x1e')][_0x1e63('0xf')]='';}['_createRevisionNameInput'](){const _0x580d36=new _0x447f46(this['locale'],_0x3596d9),_0x16775c=_0x580d36[_0x1e63('0xe')];return _0x16775c[_0x1e63('0x3')]({'attributes':{'maxlength':'220'}}),_0x580d36[_0x1e63('0x2')]=_0x3c3428(this[_0x1e63('0x17')],_0x1e63('0x26')),_0x16775c['on']('input',()=>{this[_0x1e63('0x19')]=_0x16775c['element'][_0x1e63('0xf')][_0x1e63('0x1b')]();}),_0x580d36;}['_createButton'](_0x469b98,_0x482d74,_0x5b481b,_0x20f1bf){const _0x1d7380=new _0x3b2b5f(this[_0x1e63('0x17')]);return _0x1d7380[_0x1e63('0x22')]({'label':_0x469b98,'icon':_0x482d74,'tooltip':!0x0}),_0x1d7380[_0x1e63('0x3')]({'attributes':{'class':_0x5b481b}}),_0x20f1bf&&_0x1d7380[_0x1e63('0x1a')](_0x1e63('0x28'))['to'](this,_0x20f1bf),_0x1d7380;}}