@ckeditor/ckeditor5-revision-history 34.0.0 → 34.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/revision-history.js +1 -1
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/lv.js +1 -1
  6. package/build/translations/ur.js +1 -0
  7. package/build/translations/zh-cn.js +1 -1
  8. package/lang/translations/af.po +123 -0
  9. package/lang/translations/lv.po +27 -27
  10. package/lang/translations/ur.po +123 -0
  11. package/lang/translations/zh-cn.po +24 -24
  12. package/package.json +7 -7
  13. package/src/changeitem.js +1 -1
  14. package/src/editor/revisionviewereditor.js +1 -1
  15. package/src/editor/revisionviewereditorui.js +1 -1
  16. package/src/editor/revisionviewereditoruiview.js +1 -1
  17. package/src/revision.js +1 -1
  18. package/src/revisiondiff.js +1 -1
  19. package/src/revisionhistory.js +1 -1
  20. package/src/revisionsrepository.js +1 -1
  21. package/src/revisiontracker.js +1 -1
  22. package/src/revisionviewer.js +1 -1
  23. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  24. package/src/ui/revision/revisionauthorview.js +1 -1
  25. package/src/ui/revision/revisionnameview.js +1 -1
  26. package/src/ui/revision/revisionview.js +1 -1
  27. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  28. package/src/ui/revision/subrevisionview.js +1 -1
  29. package/src/ui/revision/utils.js +1 -1
  30. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  31. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  32. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  33. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  34. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  35. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  36. package/src/ui/revisionssidebar/utils.js +1 -1
  37. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  38. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  39. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  40. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  41. package/src/utils/common-translations.js +23 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c30=['values','_markSuggestions','parent','ck-suggestion-marker--active','createAttributeElement','addMarker:suggestion:deletion','level','concat','showNextChange','split','consume','_getDiff','splice','then','has','removeMarker:revision','side','ck-suggestion-preview-marker-','isEqual','resolve','elementStart','mousedown','delete','roots','end','revision-start','getAttributes','revisionHistory','index','findIndex','nextPosition','sort','upcast','userId','abs','editor','startIndex','createPositionFromPath','_changeIdToChange','hasAttribute','length','vid_start','addHighlight','isObject','isAtEnd','low','shift','distance','_removeMissingPairs','execute','deletions','name','bind','change:isEnabled','selection','consumable','isSuggestion','element','authors','for','span','insertion','markerToHighlight','_update','writer','children','viewItem','modelRange','_markMismatchedRemovedTags','_step','markerNameToElements','insertions','setData','string','-new','observeMarkers','_appendChild','from','clear','forEach','init','_threeWayMerge','removeMarker:suggestion','checkAttribute','clearForceDisabled','suggestion','_markInsertions','isBlock','_makeModelFromViewString','forward','previousPosition','destroy','repository','toViewElement','getItems','markerName','editingDowncast','range','elementToAttribute','slice','conversion','attributes','commands','isBefore','get','revisionHistoryLabel','change','markerToData','isRemoved','deletion','merge','marked','pop','push','isNavigationMode','catch','processor','mapper','newRevisionId','loadRevisionData','revision','elementEnd','isAdded','ck-suggestion-marker-','<p></p>','set','type','_cleanMarkers','getAttribute','error','dataDowncast','data','keys','view','highest','getWalker','first','getRootNames','addMarker:suggestion:insertion','getIndex','ck-suggestion-marker-merge','isRemoveSuggestion','attribute:vid','vid','markersEnd','_makeModelFromTape','remove','isAddSuggestion','document','addClass','start','diffData','unshift','isContent','_setConversion','parse','downcastDispatcher','next','dataToMarker','change:isReady','backward','getRevision','enableReadOnlyMode','htmlProcessor','done','_removeRevisionMarkers','pluginName','listenTo','markerRange','_removeUnsupportedChanges','ck-suggestion-marker-split','toViewPosition','softBreak','removeMarker','_balloon','showPreviousChange','isEnabled','vid_end','RevisionsRepository','_getViewObj','offsetSize','restoreRevisionCallback','isLimit','editing','RevisionViewer','hasClass','locale','changes','maxOffset','_data','isCollapsed','getRoot','ck-suggestion-preview-marker','model','compare','activeView','revision-viewer','isReady','pairId','toData','markers','setAttribute','useFillerType','_fixObsoleteTags','_getRevisionsRange','text','_markMarkers','markersStart','reconvertMarker','startsWith','_findChangeIdFromDomTarget','_refreshStartEndIndex','_setDistance','change:isReadOnly','high','readOnlyMode','plugins','target','revision-end','getChild','mouseover','getCustomProperty','_changeView','add','_makeTape','createUIElement','refresh','stopListening','adapter','ck-editor__editable__overlay','_initInteractions','endIndex','includes','nodeAfter','unbindElementFromMarkerName','isInline','filter','map','_getViewForChange','_target','_processTape','_getChangeFromId','test','_cleanUp','bindElementToMarker','isIncorrect','isAfter','_joinTapes','uiElement','ck-suggestion-marker','schema','diff','insert','stop','toViewRange','nextSibling','item','isAtStart','all','revision:','config','data-revision-','activeChange'];(function(_0x1d22d2,_0x5c3015){const _0x41a843=function(_0x333105){while(--_0x333105){_0x1d22d2['push'](_0x1d22d2['shift']());}};_0x41a843(++_0x5c3015);}(_0x5c30,0xde));const _0x41a8=function(_0x1d22d2,_0x5c3015){_0x1d22d2=_0x1d22d2-0x0;let _0x41a843=_0x5c30[_0x1d22d2];return _0x41a843;};import{Plugin as _0x1465d4,Command as _0x424868}from'ckeditor5/src/core';import{ObservableMixin as _0x168b9d,mix as _0x58c6e6,scrollViewportToShowTarget as _0x36c36c}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2a5c80}from'ckeditor5/src/ui';import{DocumentFragment as _0x330fba,Element as _0x674015,Text as _0x13f0e6,ViewDocumentFragment as _0x69e7da,ViewText as _0x4506cb,ViewElement as _0x1883f2}from'ckeditor5/src/engine';import{Users as _0x5c89eb,getMarkerDomElement as _0x2de57a}from'ckeditor5-collaboration/src/collaboration-core';import _0x293847 from'./ui/revisionviewer/changedetailsview';import _0x431f8a from'./revisionsrepository';import _0x6fe6b0 from'./changeitem';import _0x414718 from'./revisiondiff';import'../theme/revisionviewer.css';export default class R extends _0x1465d4{static get[_0x41a8('0xcf')](){return _0x41a8('0xe1');}static get['requires'](){return[_0x5c89eb,_0x2a5c80,_0x431f8a];}constructor(..._0x1a436b){super(..._0x1a436b),this[_0x41a8('0x85')]=this['editor'][_0x41a8('0x101')][_0x41a8('0x91')](_0x41a8('0xdb')),this['set'](_0x41a8('0x28'),null),this[_0x41a8('0xa6')](_0x41a8('0xec'),null),this[_0x41a8('0xa6')](_0x41a8('0x1d'),null),this[_0x41a8('0xa6')](_0x41a8('0xee'),!0x1),this[_0x41a8('0xa6')](_0x41a8('0xd9'),!0x0),this['on'](_0x41a8('0x5e'),(_0x49ace9,_0x256dda,_0x52b2b3)=>{this[_0x41a8('0x28')]=null,this['activeView']=null,this[_0x41a8('0x4c')][_0x41a8('0xe0')]['view'][_0x41a8('0x93')](_0x78da54=>{for(const _0x5f1cf4 of this['editor']['editing'][_0x41a8('0xae')][_0x41a8('0xbd')][_0x41a8('0x40')])_0x52b2b3?_0x78da54['removeClass'](_0x41a8('0x7'),_0x5f1cf4):_0x78da54['addClass'](_0x41a8('0x7'),_0x5f1cf4);});}),this[_0x41a8('0x5d')](_0x41a8('0x9b'))['to'](this,_0x41a8('0x28'),_0x38aaa2=>null!==_0x38aaa2),this['bind']('currentChangeNumber')['to'](this,_0x41a8('0xee'),this,_0x41a8('0x1d'),this,_0x41a8('0x28'),(_0x1d6edc,_0x557efd,_0x56c7c7)=>_0x1d6edc&&_0x56c7c7?_0x557efd[_0x41a8('0xe4')]['getIndex'](_0x56c7c7):0x0),this[_0x41a8('0x5d')]('numberOfChanges')['to'](this,_0x41a8('0xee'),this,_0x41a8('0x1d'),(_0x343391,_0x2793e0)=>_0x343391?_0x2793e0[_0x41a8('0xe4')][_0x41a8('0x51')]:0x0),this['_changeView']=null,this[_0x41a8('0x4f')]=new Map(),this[_0x41a8('0x6')]=null,this[_0x41a8('0xd7')]=this['editor'][_0x41a8('0x101')][_0x41a8('0x91')](_0x2a5c80);}[_0x41a8('0x79')](){const _0x4d376d=this[_0x41a8('0x4c')];_0x4d376d[_0x41a8('0xac')][_0x41a8('0xcc')][_0x41a8('0xf3')](_0x41a8('0x98'));const _0x4afd49=new q(_0x4d376d,{'direction':_0x41a8('0xc9')}),_0x4dd69b=new q(_0x4d376d,{'direction':_0x41a8('0x82')});_0x4d376d[_0x41a8('0x8f')][_0x41a8('0x1')](_0x41a8('0xd8'),_0x4afd49),_0x4d376d[_0x41a8('0x8f')][_0x41a8('0x1')](_0x41a8('0x31'),_0x4dd69b),_0x4d376d[_0x41a8('0x8f')][_0x41a8('0x1')]('restoreRevision',new L(_0x4d376d)),this['on']('change:numberOfChanges',()=>{_0x4afd49['refresh'](),_0x4dd69b[_0x41a8('0x4')]();}),this[_0x41a8('0xc3')](),this[_0x41a8('0x8')](),_0x4d376d[_0x41a8('0xcb')](_0x41a8('0xed'));}async['getRevisionData'](_0x3dd3f5){await this[_0x41a8('0xa0')](_0x3dd3f5);const _0x10adba={};for(const _0x2a065a in _0x3dd3f5[_0x41a8('0xc0')]){const _0x545837=this[_0x41a8('0xce')](JSON[_0x41a8('0xc4')](_0x3dd3f5['diffData'][_0x2a065a][_0x41a8('0x70')])),_0x29dd53=this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xae')]['document'],_0x197c93=new _0x69e7da(_0x29dd53,_0x545837['map'](_0x1b2ee3=>this['_getViewObj'](_0x1b2ee3)));_0x10adba[_0x2a065a]=this[_0x41a8('0x4c')][_0x41a8('0xac')][_0x41a8('0x9d')][_0x41a8('0xf0')](_0x197c93);}return _0x10adba;}['_removeRevisionMarkers'](_0xbb350b){return(_0xbb350b=_0xbb350b['filter'](_0x49e444=>!_0x49e444[_0x41a8('0x5c')]||_0x41a8('0x42')!==_0x49e444['name']&&_0x41a8('0x103')!==_0x49e444[_0x41a8('0x5c')]))['forEach'](_0x4eb7ef=>{_0x41a8('0x72')!=typeof _0x4eb7ef&&(_0x4eb7ef[_0x41a8('0x6a')]=this['_removeRevisionMarkers'](_0x4eb7ef[_0x41a8('0x6a')]),_0x4eb7ef[_0x41a8('0x8e')]=_0x4eb7ef['attributes'][_0x41a8('0xe')](_0x2f1c86=>!_0x2f1c86[0x0][_0x41a8('0xfa')](_0x41a8('0x27'))));}),_0xbb350b;}[_0x41a8('0xeb')](_0x425578,_0xb7738,_0x1f3788=!0x1){if(!this[_0x41a8('0xd9')])return;const _0x5bba96=this['diff'],_0x2c1af4=this['repository'],_0x3c6611='string'==typeof _0x425578?_0x2c1af4[_0x41a8('0xca')](_0x425578):_0x425578,_0x274673=_0x41a8('0x72')==typeof _0xb7738?_0x2c1af4[_0x41a8('0xca')](_0xb7738):_0xb7738,_0xb49338=_0x3c6611['id'],_0x1d0a31=_0x274673?_0x274673['id']:null;if(!_0x1f3788&&this['diff']&&this[_0x41a8('0x1d')][_0x41a8('0x9f')]===_0xb49338&&this[_0x41a8('0x1d')]['oldRevisionId']===_0x1d0a31)return Promise['resolve']();this[_0x41a8('0xee')]=!0x1,this[_0x41a8('0xec')]=null,this[_0x41a8('0x28')]=null,this[_0x41a8('0x1d')]=new _0x414718(_0xb49338,_0x1d0a31);const _0x1fdb67=this['_getRevisionsRange'](_0x3c6611,_0x274673,!0x0)['map'](_0x805dae=>this[_0x41a8('0xa0')](_0x805dae));return _0x1fdb67['push'](new Promise(_0x581408=>{setTimeout(_0x581408,0x14);})),Promise[_0x41a8('0x24')](_0x1fdb67)[_0x41a8('0x36')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x38db36=this[_0x41a8('0x34')](_0xb49338,_0x1d0a31);this['diff']['_setData'](_0x38db36);for(const _0x179633 of this[_0x41a8('0x1d')][_0x41a8('0xe4')])this[_0x41a8('0x4f')][_0x41a8('0xa6')](_0x179633['id'],_0x179633);this[_0x41a8('0x4c')][_0x41a8('0xea')]['enqueueChange']({'isUndoable':!0x1},_0x1b2717=>{for(const _0x130874 of Object[_0x41a8('0xad')](_0x38db36[_0x41a8('0xea')])){const _0x584e2d=this['editor'][_0x41a8('0xea')][_0x41a8('0xbd')][_0x41a8('0xe8')](_0x130874);_0x1b2717[_0x41a8('0xbb')](_0x1b2717['createRangeIn'](_0x584e2d)),_0x1b2717['insert'](_0x38db36[_0x41a8('0xea')][_0x130874],_0x584e2d,0x0);}}),this['isReady']=!0x0;})[_0x41a8('0x9c')](_0x1ab2f8=>{console[_0x41a8('0xaa')](_0x1ab2f8),this[_0x41a8('0x15')](),_0x5bba96?this['diff']=_0x5bba96:this['editor'][_0x41a8('0x71')](_0x41a8('0xa5')),this['isReady']=!0x0;});}[_0x41a8('0x84')](){this[_0x41a8('0xec')]=null,this['_changeView']&&this[_0x41a8('0x0')]['destroy']();}['addRevisionData'](_0x580b04,_0x21767f){const _0x499867=this[_0x41a8('0x85')]['createRevision'](_0x580b04);return _0x499867['on'](_0x41a8('0x68'),(_0x55e722,_0x56f7a0,_0x2a1928)=>_0x21767f(_0x56f7a0,_0x2a1928,_0x499867)),this[_0x41a8('0x85')]['addRevision'](_0x499867),_0x499867;}[_0x41a8('0xa0')](_0x1222f8){if(!_0x1222f8||_0x1222f8[_0x41a8('0xc0')])return Promise[_0x41a8('0x3c')]();{const _0x3e4b39=this['editor'][_0x41a8('0x26')][_0x41a8('0x91')]('collaboration.channelId');return this[_0x41a8('0x6')][_0x41a8('0xca')]({'channelId':_0x3e4b39,'revisionId':_0x1222f8['id']})[_0x41a8('0x36')](_0x4a8c7=>{_0x1222f8['_update']({'diffData':_0x4a8c7[_0x41a8('0xc0')]},!0x0);});}}[_0x41a8('0x15')](){this[_0x41a8('0x28')]=null,this[_0x41a8('0xa8')](),this[_0x41a8('0x0')]&&this[_0x41a8('0x0')]['destroy'](),this[_0x41a8('0x0')]=null,this[_0x41a8('0x4f')][_0x41a8('0x77')]();}[_0x41a8('0x2')](_0x131f04){const _0x22e42a=Array[_0x41a8('0x76')](_0x131f04[_0x41a8('0xf1')])[_0x41a8('0xe')](([_0x674fc3,_0x32df52])=>_0x674fc3[_0x41a8('0xfa')](_0x41a8('0x25'))&&!_0x32df52[_0x41a8('0xe7')]),_0x2f0c9e=Array[_0x41a8('0x76')](this['editor']['model']['createRangeIn'](_0x131f04)[_0x41a8('0xb0')]({'singleCharacters':!0x0}));if(0x0!=_0x22e42a['length'])for(const _0x289814 of _0x2f0c9e){const [_0x4bdc8a,_0x443801]=_0x22e42a[0x0],[,_0x9aeb2a,_0x46a341]=_0x4bdc8a['split'](':');if(_0x443801[_0x41a8('0x41')][_0x41a8('0x3b')](_0x289814[_0x41a8('0x47')])&&_0x22e42a[_0x41a8('0x57')](),(_0x289814[_0x41a8('0x83')]['isEqual'](_0x443801[_0x41a8('0xbf')])||_0x289814[_0x41a8('0x83')]['isAfter'](_0x443801[_0x41a8('0xbf')]))&&(_0x41a8('0x66')==_0x9aeb2a?_0x289814[_0x41a8('0xa3')]={'userId':_0x46a341}:_0x41a8('0x96')==_0x9aeb2a&&(_0x289814[_0x41a8('0x95')]={'userId':_0x46a341})),0x0==_0x22e42a['length'])break;}return _0x2f0c9e;}[_0x41a8('0xfc')](_0x266cf7){const _0x457509=new Map();for(let _0x38bd78=0x0;_0x38bd78<_0x266cf7[_0x41a8('0x51')];_0x38bd78++)_0x41a8('0xf6')===_0x266cf7[_0x38bd78][_0x41a8('0xa7')]?(_0x266cf7[_0x38bd78][_0x41a8('0x22')][_0x41a8('0x4d')]=_0x38bd78,_0x266cf7[_0x38bd78][_0x41a8('0x22')]['endIndex']=_0x38bd78):(_0x41a8('0x3d')===_0x266cf7[_0x38bd78]['type']?_0x266cf7[_0x38bd78][_0x41a8('0x22')][_0x41a8('0x4d')]=_0x38bd78:_0x41a8('0xa2')===_0x266cf7[_0x38bd78][_0x41a8('0xa7')]&&(_0x266cf7[_0x38bd78][_0x41a8('0x22')]['endIndex']=_0x38bd78),_0x457509['set'](_0x266cf7[_0x38bd78]['id'],_0x38bd78));for(const _0x396111 of _0x457509[_0x41a8('0x29')]())_0x41a8('0x3d')===_0x266cf7[_0x396111][_0x41a8('0xa7')]?_0x266cf7[_0x396111]['item'][_0x41a8('0x9')]=_0x457509[_0x41a8('0x91')](_0x266cf7[_0x396111]['pairId']):_0x41a8('0xa2')===_0x266cf7[_0x396111][_0x41a8('0xa7')]&&(_0x266cf7[_0x396111][_0x41a8('0x22')][_0x41a8('0x4d')]=_0x457509['get'](_0x266cf7[_0x396111][_0x41a8('0xef')]));}[_0x41a8('0x12')](_0x24a791){for(let _0x20300c=0x0;_0x20300c<_0x24a791['length'];_0x20300c++){if(_0x41a8('0x3d')===_0x24a791[_0x20300c]['type'])_0x24a791[_0x20300c][_0x41a8('0x22')]['startIndex']=_0x20300c;else{if('elementEnd'===_0x24a791[_0x20300c]['type']){_0x24a791[_0x20300c][_0x41a8('0x22')][_0x41a8('0x9')]=_0x20300c;const _0x379250=_0x24a791[_0x20300c]['item'][_0x41a8('0x4d')];_0x24a791[_0x379250]['pairId']=_0x24a791[_0x20300c]['id'],_0x24a791[_0x20300c][_0x41a8('0xef')]=_0x24a791[_0x379250]['id'];}else _0x24a791[_0x20300c][_0x41a8('0x22')][_0x41a8('0x4d')]=_0x20300c,_0x24a791[_0x20300c]['item'][_0x41a8('0x9')]=_0x20300c,_0x24a791[_0x20300c]['pairId']=null;}_0x24a791[_0x20300c][_0x41a8('0xf8')]||(_0x24a791[_0x20300c][_0x41a8('0xf8')]=[],_0x24a791[_0x20300c][_0x41a8('0xb9')]=[]);}}[_0x41a8('0x7f')](_0x259e18,_0x3ed95a){const _0x50ac92=_0x259e18[_0x41a8('0xe')](_0x3d54f7=>!_0x3d54f7[_0x41a8('0xa3')]);for(let _0x3bac8a=0x0;_0x3bac8a<_0x3ed95a['length'];_0x3bac8a++)_0x3ed95a[_0x3bac8a]['isAdded']&&(_0x50ac92[_0x3bac8a][_0x41a8('0xa3')]=_0x3ed95a[_0x3bac8a][_0x41a8('0xa3')]);}[_0x41a8('0x81')](_0x308c81){const _0x213c61=JSON[_0x41a8('0xc4')](_0x308c81),_0x391f20=this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xae')][_0x41a8('0xbd')],_0xb56dd0=new _0x69e7da(_0x391f20,_0x213c61[_0x41a8('0xf')](_0x1a1889=>this['_getViewObj'](_0x1a1889)));return this[_0x41a8('0x4c')][_0x41a8('0xac')]['toModel'](_0xb56dd0);}[_0x41a8('0xdc')](_0x35bbe9){const _0x53c096=this['editor']['editing'][_0x41a8('0xae')][_0x41a8('0xbd')];if(_0x41a8('0x72')==typeof _0x35bbe9)return new _0x4506cb(_0x53c096,_0x35bbe9);{const _0x1bbae0=_0x35bbe9['children']['map'](_0x3634fb=>this[_0x41a8('0xdc')](_0x3634fb));return new _0x1883f2(_0x53c096,_0x35bbe9[_0x41a8('0x5c')],_0x35bbe9['attributes'],_0x1bbae0);}}['_getDiff'](_0xe05b7b,_0x2ee1bd=null){const _0x23fd7b=this[_0x41a8('0x85')][_0x41a8('0xca')](_0xe05b7b),_0x54aa6a=_0x2ee1bd?this[_0x41a8('0x85')][_0x41a8('0xca')](_0x2ee1bd):null,_0xa6d591=this[_0x41a8('0xf5')](_0x23fd7b,_0x54aa6a),_0xf0b511=_0xa6d591[_0xa6d591[_0x41a8('0x51')]-0x1],_0x5a619a=new Map();for(const _0x3de0fa of _0xa6d591){_0x3de0fa[_0x41a8('0xea')]={};for(const _0x2a1f7e of _0x3de0fa[_0x41a8('0x63')])_0x5a619a[_0x41a8('0xa6')](_0x2a1f7e['id'],_0x2a1f7e);for(const _0x25577d of this[_0x41a8('0x4c')]['model'][_0x41a8('0xbd')][_0x41a8('0xb2')]())_0x3de0fa[_0x41a8('0xc0')][_0x25577d]||(_0x3de0fa[_0x41a8('0xc0')][_0x25577d]={'insertions':'[]','deletions':'[]'}),_0x3de0fa[_0x41a8('0xea')][_0x25577d]={'insertions':this[_0x41a8('0x81')](_0x3de0fa[_0x41a8('0xc0')][_0x25577d][_0x41a8('0x70')]),'deletions':this[_0x41a8('0x81')](_0x3de0fa[_0x41a8('0xc0')][_0x25577d][_0x41a8('0x5b')])};}const _0x21fb6c={'model':{},'changes':[]};for(const _0x36ef64 of this[_0x41a8('0x4c')]['model'][_0x41a8('0xbd')]['getRootNames']()){let _0x172149=null,_0x5bba83=0x0;const _0x1d168f=new Map(Array[_0x41a8('0x76')](_0x23fd7b[_0x41a8('0xea')][_0x36ef64][_0x41a8('0x70')][_0x41a8('0xf1')])[_0x41a8('0xe')](([_0x65380d])=>!_0x65380d[_0x41a8('0xfa')](_0x41a8('0x25'))));let _0x29702d=0x0;for(const _0x19f90f of _0xa6d591){const _0xd3b586=this[_0x41a8('0x2')](_0x19f90f['model'][_0x36ef64][_0x41a8('0x70')]);_0x19f90f==_0x23fd7b?(_0x172149=_0xd3b586,_0x5bba83=_0x172149[_0x41a8('0x51')],_0x172149[_0x41a8('0x78')](_0x5eced2=>{_0x5eced2['id']=_0x29702d++;}),this[_0x41a8('0x12')](_0x172149)):this[_0x41a8('0x7f')](_0x172149,_0xd3b586);const _0x273115=_0x172149['filter'](_0x32a1dd=>!_0x32a1dd[_0x41a8('0xa3')])[_0x41a8('0xf')](_0x156790=>_0x156790['id']);let _0x12918f=0x0;const _0x103566=this[_0x41a8('0x2')](_0x19f90f['model'][_0x36ef64][_0x41a8('0x5b')]);_0x103566['forEach'](_0x282a09=>{_0x282a09['isRemoved']?_0x282a09['id']=_0x5bba83++:_0x282a09['id']=_0x273115[_0x12918f++];}),this[_0x41a8('0x12')](_0x103566),this[_0x41a8('0xfd')](_0x172149,'isAdded'),this[_0x41a8('0xfd')](_0x103566,'isRemoved'),_0x19f90f==_0x23fd7b&&this[_0x41a8('0xf7')](_0x172149,_0x1d168f),_0x172149=this[_0x41a8('0x19')](_0x172149,_0x103566),this['_refreshStartEndIndex'](_0x172149),this[_0x41a8('0xfd')](_0x172149,'isRemoved');}_0x172149=_0x172149[_0x41a8('0xe')](_0x49f653=>!(_0x49f653['isAdded']&&_0x49f653[_0x41a8('0x95')]));const _0x198e4b=new Map(_0xf0b511['model'][_0x36ef64]['deletions']['markers']),_0x39d5dc=new Set(_0x1d168f[_0x41a8('0xad')]());for(const _0x52fb8e of _0x198e4b['keys']())_0x39d5dc[_0x41a8('0x3f')](_0x52fb8e);this[_0x41a8('0x2a')](_0x172149,_0x39d5dc),this[_0x41a8('0xf4')](_0x172149),_0x172149=this[_0x41a8('0x59')](_0x172149),_0x172149=this[_0x41a8('0x6d')](_0x172149),_0x172149=this[_0x41a8('0xd2')](_0x172149);const {root:_0x484ac7,changes:_0x2dce9e}=this[_0x41a8('0xba')](_0x172149,_0x5a619a);_0x21fb6c[_0x41a8('0xea')][_0x36ef64]=_0x484ac7,_0x21fb6c[_0x41a8('0xe4')]=_0x21fb6c[_0x41a8('0xe4')]['concat'](_0x2dce9e);}return _0x21fb6c;}[_0x41a8('0xf7')](_0x372e39,_0x4aebab){for(let _0x54175f=0x0;_0x54175f<_0x372e39[_0x41a8('0x51')];_0x54175f++)for(const [_0x476448,_0x366c9b]of _0x4aebab)_0x366c9b[_0x41a8('0xbf')]['isEqual'](_0x372e39[_0x54175f][_0x41a8('0x83')])&&_0x372e39[_0x54175f][_0x41a8('0xf8')]['push'](_0x476448),_0x366c9b['end'][_0x41a8('0x3b')](_0x372e39[_0x54175f][_0x41a8('0x47')])&&_0x372e39[_0x54175f][_0x41a8('0xb9')][_0x41a8('0x9a')](_0x476448);}[_0x41a8('0x19')](_0x52ea6f,_0x2ec6a3){let _0x502a19=[],_0x5a87b6=0x0,_0x629b2=0x0;for(;_0x5a87b6<_0x52ea6f[_0x41a8('0x51')]||_0x629b2<_0x2ec6a3['length'];){const _0xc16a3a=_0x52ea6f[_0x5a87b6]||{},_0xcb38b4=_0x2ec6a3[_0x629b2]||{};if(_0xc16a3a['id']==_0xcb38b4['id'])_0x5a87b6++,_0x629b2++,_0x502a19[_0x41a8('0x9a')](_0xc16a3a);else{if(_0xcb38b4['isRemoved']&&_0xc16a3a[_0x41a8('0xa3')]){const {commonTape:_0x4c4a62,iEnd:_0x4e1929,jEnd:_0x1bbf61}=this[_0x41a8('0x7a')](_0x52ea6f,_0x5a87b6,_0x2ec6a3,_0x629b2);_0x502a19=_0x502a19[_0x41a8('0x30')](_0x4c4a62),_0x5a87b6=_0x4e1929,_0x629b2=_0x1bbf61;}else _0xcb38b4[_0x41a8('0x95')]?(_0x629b2++,_0x502a19[_0x41a8('0x9a')](_0xcb38b4)):(_0x5a87b6++,_0x502a19[_0x41a8('0x9a')](_0xc16a3a));}}return _0x502a19;}[_0x41a8('0x2a')](_0x2b7643,_0x3b5eb5){const _0x255e6d=[];for(let _0x3dcd4d=0x0;_0x3dcd4d<_0x2b7643[_0x41a8('0x51')];_0x3dcd4d++){for(let _0x38c3c2=0x0;_0x38c3c2<_0x2b7643[_0x3dcd4d][_0x41a8('0xf8')][_0x41a8('0x51')];_0x38c3c2++){const _0x2aa742=_0x2b7643[_0x3dcd4d][_0x41a8('0xf8')][_0x38c3c2];if(!_0x3b5eb5[_0x41a8('0x37')](_0x2aa742))continue;const {group:_0x30ad04,type:_0x3202fc,authorId:_0x114e01}=_0x380294(_0x2aa742);_0x41a8('0x7e')!=_0x30ad04||_0x41a8('0x66')!=_0x3202fc&&_0x41a8('0x96')!=_0x3202fc||(_0x255e6d[_0x41a8('0xc1')]({'type':_0x3202fc,'name':_0x2aa742,'userId':_0x114e01}),_0x2b7643[_0x3dcd4d]['markersStart'][_0x41a8('0x35')](_0x38c3c2,0x1),_0x38c3c2--);}_0x1c8532(_0x2b7643[_0x3dcd4d]);for(let _0x582dd8=0x0;_0x582dd8<_0x2b7643[_0x3dcd4d]['markersEnd']['length'];_0x582dd8++){const _0x566c40=_0x2b7643[_0x3dcd4d]['markersEnd'][_0x582dd8];if(!_0x3b5eb5['has'](_0x566c40))continue;const {group:_0x5a8dff,type:_0xe7714f}=_0x380294(_0x566c40);if(_0x41a8('0x7e')!=_0x5a8dff||_0x41a8('0x66')!=_0xe7714f&&'deletion'!=_0xe7714f)continue;_0x2b7643[_0x3dcd4d][_0x41a8('0xb9')][_0x41a8('0x35')](_0x582dd8,0x1),_0x582dd8--;const _0x117ec8=_0x255e6d[_0x41a8('0x46')](_0x5de41f=>_0x5de41f['name']==_0x566c40);_0x117ec8>-0x1&&_0x255e6d[_0x41a8('0x35')](_0x117ec8,0x1);}}function _0x380294(_0x2eac69){const _0x27e3a6=_0x2eac69['split'](':');return{'group':_0x27e3a6[0x0],'type':_0x27e3a6[0x1],'subType':_0x27e3a6[_0x41a8('0x51')]>=0x5?_0x27e3a6[0x2]:null,'id':_0x27e3a6['length']<0x5?_0x27e3a6[0x2]:_0x27e3a6[0x3],'authorId':_0x27e3a6[_0x41a8('0x51')]<0x5?_0x27e3a6[0x3]:_0x27e3a6[0x4],'markerCount':0x6==_0x27e3a6[_0x41a8('0x51')]?_0x27e3a6[0x5]:null};}function _0x1c8532(_0x80de7f){for(let _0x27a292=0x0;_0x27a292<_0x255e6d[_0x41a8('0x51')];_0x27a292++){if(_0x80de7f['isAdded']&&_0x41a8('0x66')==_0x255e6d[_0x27a292][_0x41a8('0xa7')])return _0x80de7f[_0x41a8('0xbc')]=_0x255e6d[_0x27a292],void delete _0x80de7f[_0x41a8('0xa3')];if(!_0x80de7f[_0x41a8('0xa3')]&&!_0x80de7f[_0x41a8('0x95')]&&_0x41a8('0x96')==_0x255e6d[_0x27a292][_0x41a8('0xa7')])return void(_0x80de7f['isRemoveSuggestion']=_0x255e6d[_0x27a292]);}}}['_setDistance'](_0x14d779,_0x288a6a){let _0x13fc36=0x0,_0x14d786=!0x1;const _0x4a3bb9=new Map();for(const _0x44d7eb of _0x14d779)_0x44d7eb[_0x288a6a]?_0x14d786&&(_0x13fc36++,_0x14d786=!0x1):(_0x13fc36++,_0x14d786=!0x0),_0x4a3bb9[_0x41a8('0xa6')](_0x44d7eb['id'],_0x13fc36);for(let _0x66a3b1=0x0;_0x66a3b1<_0x14d779['length'];_0x66a3b1++){if(_0x41a8('0x95')==_0x288a6a&&_0x14d779[_0x66a3b1][_0x41a8('0xa3')]||_0x41a8('0xa3')==_0x288a6a&&_0x14d779[_0x66a3b1][_0x41a8('0x95')])continue;if('text'==_0x14d779[_0x66a3b1][_0x41a8('0xa7')]){_0x14d779[_0x66a3b1][_0x41a8('0x58')]=0x0;continue;}const _0x22aa5e=_0x4a3bb9[_0x41a8('0x91')](_0x14d779[_0x66a3b1][_0x41a8('0xef')]),_0x14aa0b=_0x4a3bb9['get'](_0x14d779[_0x66a3b1]['id']);_0x14d779[_0x66a3b1][_0x41a8('0x58')]=_0x22aa5e-_0x14aa0b;}}[_0x41a8('0xf5')](_0x599b46,_0x4c6063,_0x514b84=!0x1){const _0x57512d=[];let _0xe121fe=this[_0x41a8('0x85')][_0x41a8('0xb4')](_0x599b46),_0x2d223a=this[_0x41a8('0x85')]['getIndex'](_0x4c6063);for(-0x1==_0x2d223a&&(_0x2d223a=this['repository']['_revisions'][_0x41a8('0x51')],_0x514b84=!0x1);_0xe121fe<_0x2d223a;)_0x57512d[_0x41a8('0x9a')](this[_0x41a8('0x85')][_0x41a8('0xca')](_0xe121fe)),_0xe121fe++;return _0x514b84&&_0x57512d['push'](this[_0x41a8('0x85')][_0x41a8('0xca')](_0xe121fe)),_0x57512d;}[_0x41a8('0x7a')](_0x4a55d5,_0x4f6e54,_0x41dcb4,_0x168335){const _0x3651fd=this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0x1c')];let _0x599f28=_0x4f6e54;for(;_0x4a55d5[_0x599f28]&&_0x4a55d5[_0x599f28][_0x41a8('0xa3')];)_0x599f28++;let _0x2ec2cc=_0x168335;for(;_0x41dcb4[_0x2ec2cc]&&_0x41dcb4[_0x2ec2cc][_0x41a8('0x95')];)_0x2ec2cc++;_0x561409(_0x4a55d5,_0x4f6e54,_0x599f28),_0x561409(_0x41dcb4,_0x168335,_0x2ec2cc);const _0x3753e2=_0x41dcb4[_0x41a8('0x8c')](_0x168335,_0x2ec2cc)[_0x41a8('0x30')](_0x4a55d5[_0x41a8('0x8c')](_0x4f6e54,_0x599f28));return _0x3753e2[_0x41a8('0x48')]((_0x5e44cc,_0x51e843)=>_0x5e44cc['side']!=_0x51e843[_0x41a8('0x39')]?_0x5e44cc[_0x41a8('0x39')]-_0x51e843['side']:_0x5e44cc['level']!=_0x51e843['level']?_0x5e44cc[_0x41a8('0x2f')]-_0x51e843[_0x41a8('0x2f')]:_0x5e44cc[_0x41a8('0x58')]!=_0x51e843[_0x41a8('0x58')]?_0x51e843['distance']-_0x5e44cc[_0x41a8('0x58')]:!!_0x5e44cc[_0x41a8('0xa3')]!=!!_0x51e843[_0x41a8('0xa3')]?-0x1==_0x5e44cc['side']||0x0==_0x5e44cc[_0x41a8('0x39')]?_0x5e44cc[_0x41a8('0xa3')]?-0x1:0x1:_0x5e44cc[_0x41a8('0xa3')]?0x1:-0x1:_0x5e44cc[_0x41a8('0x45')]-_0x51e843[_0x41a8('0x45')]),{'commonTape':_0x3753e2,'iEnd':_0x599f28,'jEnd':_0x2ec2cc};function _0x561409(_0x4917f3,_0x4e4f2b,_0x4ec33c){let _0x3a6942=-0x1,_0x37e980=Number['POSITIVE_INFINITY'],_0x294aba=!0x0;for(let _0x28206b=_0x4e4f2b;_0x28206b<_0x4ec33c;_0x28206b++)if(_0x3651fd[_0x41a8('0xd')](_0x4917f3[_0x28206b][_0x41a8('0x22')])||(_0x294aba=!0x1),_0x4917f3[_0x28206b][_0x41a8('0x22')]['startIndex']<_0x4e4f2b&&(_0x3a6942=_0x28206b),_0x4917f3[_0x28206b][_0x41a8('0x22')][_0x41a8('0x9')]>=_0x4ec33c){_0x37e980=_0x28206b;break;}_0x294aba&&(_0x3a6942=_0x4ec33c-0x1);for(let _0x4eafe0=_0x4e4f2b;_0x4eafe0<_0x4ec33c;_0x4eafe0++)_0x4917f3[_0x4eafe0][_0x41a8('0x39')]=_0x4eafe0<=_0x3a6942?-0x1:_0x4eafe0<_0x37e980?0x0:0x1,_0x4917f3[_0x4eafe0][_0x41a8('0x45')]=_0x4eafe0;let _0xb9b61c=0x0;for(let _0x2cac0a=_0x4e4f2b;_0x2cac0a<=_0x3a6942;_0x2cac0a++)0x0==_0x4917f3[_0x2cac0a][_0x41a8('0x58')]?_0x4917f3[_0x2cac0a][_0x41a8('0x2f')]=_0xb9b61c:(_0xb9b61c++,_0x4917f3[_0x2cac0a]['level']=_0xb9b61c,_0xb9b61c++);for(let _0x1c2e63=_0x4e4f2b;_0x1c2e63<_0x4ec33c;_0x1c2e63++)0x0==_0x4917f3[_0x1c2e63][_0x41a8('0x39')]&&(_0x4917f3[_0x1c2e63][_0x41a8('0x2f')]=_0xb9b61c);_0xb9b61c=0x0;for(let _0x233bd1=_0x4ec33c-0x1;_0x233bd1>=_0x37e980;_0x233bd1--)0x0==_0x4917f3[_0x233bd1][_0x41a8('0x58')]?_0x4917f3[_0x233bd1][_0x41a8('0x2f')]=_0xb9b61c:(_0xb9b61c--,_0x4917f3[_0x233bd1][_0x41a8('0x2f')]=_0xb9b61c,_0xb9b61c--);}}[_0x41a8('0xf4')](_0x426630){const _0x2187fb=new Map(),_0x10bddf=this['editor'][_0x41a8('0xea')][_0x41a8('0x1c')];for(let _0x3ef904=0x1;_0x3ef904<_0x426630[_0x41a8('0x51')];_0x3ef904++){let _0x322987,_0x8d2b02,_0x303ff6;const _0x40f90d=_0x426630[_0x3ef904],_0x56f811=_0x426630[_0x3ef904-0x1];if('text'==_0x40f90d[_0x41a8('0xa7')])continue;if(_0x40f90d[_0x41a8('0xa7')]!=_0x56f811[_0x41a8('0xa7')])continue;if(!_0x10bddf['isBlock'](_0x56f811[_0x41a8('0x22')])||_0x10bddf[_0x41a8('0xdf')](_0x56f811['item']))continue;if(!_0x10bddf[_0x41a8('0x80')](_0x40f90d['item'])||_0x10bddf[_0x41a8('0xdf')](_0x40f90d[_0x41a8('0x22')]))continue;if((_0x426630[_0x3ef904][_0x41a8('0xa3')]||_0x426630[_0x3ef904]['isAddSuggestion'])&&_0x426630[_0x3ef904-0x1][_0x41a8('0x95')])_0x322987=_0x426630[_0x3ef904],_0x8d2b02=_0x426630[_0x3ef904-0x1],_0x303ff6=_0x3ef904-0x1;else{if(!_0x426630[_0x3ef904][_0x41a8('0x95')]||!_0x426630[_0x3ef904-0x1][_0x41a8('0xa3')]&&!_0x426630[_0x3ef904-0x1]['isAddSuggestion'])continue;_0x322987=_0x426630[_0x3ef904-0x1],_0x8d2b02=_0x426630[_0x3ef904],_0x303ff6=_0x3ef904;}const _0x14b19d=_0x322987[_0x41a8('0x2f')]==_0x8d2b02[_0x41a8('0x2f')],_0x58d8d2=Math[_0x41a8('0x4b')](_0x322987[_0x41a8('0x2f')])<Math['abs'](_0x8d2b02[_0x41a8('0x2f')])&&0x0==_0x8d2b02[_0x41a8('0x58')];(_0x14b19d||_0x58d8d2)&&(_0x2187fb[_0x41a8('0xa6')](_0x8d2b02['id'],_0x322987['id']),_0x426630[_0x41a8('0x35')](_0x303ff6,0x1),_0x3ef904--,_0x322987[_0x41a8('0xa3')]=!0x1);}for(let _0x1af1e6=0x0;_0x1af1e6<_0x426630['length'];_0x1af1e6++)_0x2187fb['has'](_0x426630[_0x1af1e6][_0x41a8('0xef')])&&(_0x426630[_0x1af1e6]['pairId']=_0x2187fb['get'](_0x426630[_0x1af1e6][_0x41a8('0xef')]));}[_0x41a8('0x59')](_0x313742){const _0x1288e0=new Set(_0x313742[_0x41a8('0xf')](_0x4c5cf6=>_0x4c5cf6['id']));for(let _0x23d486=0x0;_0x23d486<_0x313742[_0x41a8('0x51')];_0x23d486++)_0x1288e0[_0x41a8('0x37')](_0x313742[_0x23d486]['pairId'])||0x0==_0x313742[_0x23d486][_0x41a8('0x58')]||(_0x313742[_0x23d486]['isIncorrect']=!0x0);return _0x313742[_0x41a8('0xe')](_0x5ced61=>!_0x5ced61[_0x41a8('0x17')]);}[_0x41a8('0x6d')](_0xfce22a){const _0x415fc3=new Set();for(let _0x298913=0x0;_0x298913<_0xfce22a[_0x41a8('0x51')];_0x298913++){if(_0x415fc3['has'](_0xfce22a[_0x298913]['id'])&&_0xfce22a[_0x298913][_0x41a8('0x95')]&&(_0xfce22a[_0x298913]['isIncorrect']=!0x0),_0xfce22a[_0x298913][_0x41a8('0x17')])continue;if(0x0==_0xfce22a[_0x298913]['distance'])continue;if('elementStart'!=_0xfce22a[_0x298913][_0x41a8('0xa7')])continue;if(null==_0xfce22a[_0x298913][_0x41a8('0xef')])continue;let _0xe951e7=_0x298913+0x1,_0x8cb93f=0x0;for(;_0xfce22a[_0xe951e7]['id']!=_0xfce22a[_0x298913][_0x41a8('0xef')];)_0x41a8('0x3d')==_0xfce22a[_0xe951e7][_0x41a8('0xa7')]?_0x8cb93f++:_0x41a8('0xa2')==_0xfce22a[_0xe951e7]['type']&&_0x8cb93f--,_0xe951e7++;if(0x0!=_0x8cb93f){if(_0xfce22a[_0x298913][_0x41a8('0x95')])_0xfce22a[_0x298913][_0x41a8('0x17')]=!0x0;else for(;_0xe951e7!=_0x298913;)_0xfce22a[_0xe951e7][_0x41a8('0x95')]&&0x0!=_0xfce22a[_0xe951e7][_0x41a8('0x58')]&&(_0xfce22a[_0xe951e7][_0x41a8('0x17')]=!0x0,_0x415fc3['add'](_0xfce22a[_0xe951e7][_0x41a8('0xef')])),_0xe951e7--;}}return _0xfce22a['filter'](_0x1db995=>!_0x1db995[_0x41a8('0x17')]);}[_0x41a8('0xd2')](_0x5679d5){const _0x3446f6=this[_0x41a8('0x4c')][_0x41a8('0xea')]['schema'];for(let _0x5af2b3=0x0;_0x5af2b3<_0x5679d5[_0x41a8('0x51')];_0x5af2b3++){if(!(_0x5679d5[_0x5af2b3][_0x41a8('0xa3')]||_0x5679d5[_0x5af2b3][_0x41a8('0xbc')]||_0x5679d5[_0x5af2b3][_0x41a8('0x95')]||_0x5679d5[_0x5af2b3][_0x41a8('0xb6')]))continue;if(0x0==_0x5679d5[_0x5af2b3][_0x41a8('0x58')])continue;const _0x5220ff=_0x5679d5[_0x5af2b3][_0x41a8('0x22')];_0x3446f6['isBlock'](_0x5220ff)||_0x3446f6[_0x41a8('0xdf')](_0x5220ff)||(_0x5679d5[_0x5af2b3][_0x41a8('0xa3')]&&delete _0x5679d5[_0x5af2b3][_0x41a8('0xa3')],_0x5679d5[_0x5af2b3][_0x41a8('0xbc')]&&delete _0x5679d5[_0x5af2b3][_0x41a8('0xbc')],_0x5679d5[_0x5af2b3]['isRemoveSuggestion']&&delete _0x5679d5[_0x5af2b3][_0x41a8('0xb6')],_0x5679d5[_0x5af2b3][_0x41a8('0x95')]&&(_0x5679d5[_0x5af2b3]['isIncorrect']=!0x0));}return _0x5679d5[_0x41a8('0xe')](_0x5abfe8=>!_0x5abfe8[_0x41a8('0x17')]);}[_0x41a8('0xba')](_0x1b5c84,_0x348e71){const _0x144a6e=new _0x330fba(),_0x2106f2=[],_0x4a6209=new Map(),_0x5c77b2=this[_0x41a8('0x4c')][_0x41a8('0xea')],_0xfeae64=_0x5c77b2[_0x41a8('0x1c')],_0x4edee9=[_0x144a6e],_0xb97bf={},_0x28e723={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x483d7a=null;const _0x1082e0=[0x0];for(let _0x1e455c=0x0;_0x1e455c<_0x1b5c84[_0x41a8('0x51')];_0x1e455c++){let _0x16cd4a,_0x370f74;if(_0x41a8('0x3d')===_0x1b5c84[_0x1e455c][_0x41a8('0xa7')]){_0x16cd4a=_0x5c77b2[_0x41a8('0x4e')](_0x144a6e,_0x1082e0);const _0x3dfe0c=new _0x674015(_0x1b5c84[_0x1e455c]['item'][_0x41a8('0x5c')],_0x1b5c84[_0x1e455c]['item'][_0x41a8('0x43')]());_0x4edee9[0x0][_0x41a8('0x75')](_0x3dfe0c),_0x1082e0[_0x41a8('0x9a')](0x0),_0x4edee9[_0x41a8('0xc1')](_0x3dfe0c),_0x370f74=_0x5c77b2[_0x41a8('0x4e')](_0x144a6e,_0x1082e0),_0x483d7a=null;}else{if(_0x41a8('0xa2')===_0x1b5c84[_0x1e455c][_0x41a8('0xa7')])_0x4edee9['shift'](),_0x16cd4a=_0x5c77b2['createPositionFromPath'](_0x144a6e,_0x1082e0),_0x1082e0[_0x41a8('0x99')](),_0x1082e0[_0x1082e0['length']-0x1]++,_0x370f74=_0x5c77b2['createPositionFromPath'](_0x144a6e,_0x1082e0),_0x483d7a=null;else{if(_0x16cd4a=_0x5c77b2[_0x41a8('0x4e')](_0x144a6e,_0x1082e0),_0x483d7a&&_0xecb66e(_0x483d7a,_0x1b5c84[_0x1e455c][_0x41a8('0x22')]))_0x483d7a[_0x41a8('0xe6')]+=_0x1b5c84[_0x1e455c][_0x41a8('0x22')]['data'];else{const _0x423df3=new _0x13f0e6(_0x1b5c84[_0x1e455c][_0x41a8('0x22')][_0x41a8('0xac')],_0x1b5c84[_0x1e455c][_0x41a8('0x22')][_0x41a8('0x43')]());_0x4edee9[0x0][_0x41a8('0x75')](_0x423df3),_0x483d7a=_0x423df3;}_0x1082e0[_0x1082e0[_0x41a8('0x51')]-0x1]+=_0x1b5c84[_0x1e455c][_0x41a8('0x22')][_0x41a8('0xdd')],_0x370f74=_0x5c77b2[_0x41a8('0x4e')](_0x144a6e,_0x1082e0);}}for(const _0x95364 of _0x1b5c84[_0x1e455c][_0x41a8('0xf8')])_0x4a6209[_0x41a8('0xa6')](_0x95364,{'start':_0x16cd4a,'end':null});_0x1cf174(_0x41a8('0xb6'),_0x1e455c,_0x16cd4a,_0x370f74),_0x1cf174(_0x41a8('0xbc'),_0x1e455c,_0x16cd4a,_0x370f74),_0x1cf174(_0x41a8('0x95'),_0x1e455c,_0x16cd4a,_0x370f74),_0x1cf174(_0x41a8('0xa3'),_0x1e455c,_0x16cd4a,_0x370f74);for(const _0x423346 of _0x1b5c84[_0x1e455c]['markersEnd']){_0x4a6209['get'](_0x423346)[_0x41a8('0x41')]=_0x370f74;}}for(const [_0x34fefb,_0x46f3fd]of _0x4a6209){const _0x2202c2=this[_0x41a8('0x4c')][_0x41a8('0xea')]['createRange'](_0x46f3fd[_0x41a8('0xbf')],_0x46f3fd[_0x41a8('0x41')]);_0x144a6e[_0x41a8('0xf1')][_0x41a8('0xa6')](_0x34fefb,_0x2202c2);}return _0x2106f2['sort']((_0x402b48,_0x3c5f3b)=>{const _0x474ac6=_0x144a6e['markers'][_0x41a8('0x91')](_0x41a8('0x25')+_0x402b48['id']),_0x259634=_0x144a6e[_0x41a8('0xf1')]['get'](_0x41a8('0x25')+_0x3c5f3b['id']);return _0x474ac6[_0x41a8('0xbf')][_0x41a8('0x90')](_0x259634['start'])?-0x1:_0x474ac6[_0x41a8('0xbf')]['isAfter'](_0x259634[_0x41a8('0xbf')])?0x1:_0x474ac6[_0x41a8('0x41')][_0x41a8('0x90')](_0x259634[_0x41a8('0x41')])?-0x1:_0x474ac6['end'][_0x41a8('0x18')](_0x259634[_0x41a8('0x41')])?0x1:_0x41a8('0x1')===_0x402b48[_0x41a8('0xa7')]?-0x1:0x1;}),{'root':_0x144a6e,'changes':_0x2106f2};function _0x1cf174(_0x57c401,_0x45cc94,_0x24038b,_0x240a90){const _0x5b21bf=!!_0x1b5c84[_0x45cc94][_0x57c401],_0x5eb122=_0x5b21bf?_0x1b5c84[_0x45cc94][_0x57c401]['userId']:null,_0x5e94ed=_0x45cc94===_0x1b5c84[_0x41a8('0x51')]-0x1,_0x411473=_0x28e723[_0x57c401][0x0],_0x3ded3d=_0xfeae64[_0x41a8('0x54')](_0x1b5c84[_0x45cc94]['item']);!_0xb97bf[_0x57c401]&&_0x5b21bf?_0xb97bf[_0x57c401]={'start':_0x24038b,'tapeItem':_0x1b5c84[_0x45cc94],'userId':_0x5eb122,'type':_0x57c401}:_0xb97bf[_0x57c401]&&!_0x5b21bf?(_0xb97bf[_0x57c401][_0x41a8('0x41')]=_0x24038b,_0x4c0191(_0xb97bf[_0x57c401]),_0xb97bf[_0x57c401]=null):_0xb97bf[_0x57c401]&&_0x5b21bf&&_0xb97bf[_0x57c401]['userId']!==_0x5eb122&&(_0xb97bf[_0x57c401][_0x41a8('0x41')]=_0x24038b,_0x411473&&_0x411473['userId']===_0xb97bf[_0x57c401][_0x41a8('0x4a')]||_0x4c0191(_0xb97bf[_0x57c401]),_0xb97bf[_0x57c401]={'start':_0x24038b,'tapeItem':_0x1b5c84[_0x45cc94],'userId':_0x5eb122,'type':_0x57c401}),_0xb97bf[_0x57c401]&&_0x3ded3d&&(_0x41a8('0x3d')!==_0x1b5c84[_0x45cc94]['type']||_0x411473&&_0x411473[_0x41a8('0x4a')]===_0x5eb122||_0x28e723[_0x57c401][_0x41a8('0xc1')]({'userId':_0x5eb122,'object':_0x1b5c84[_0x45cc94][_0x41a8('0x22')],'change':_0xb97bf[_0x57c401]}),_0x41a8('0xa2')===_0x1b5c84[_0x45cc94]['type']&&_0x411473&&_0x411473['object']===_0x1b5c84[_0x45cc94][_0x41a8('0x22')]&&(_0x28e723[_0x57c401][_0x41a8('0x57')](),_0xb97bf[_0x57c401]=_0x411473[_0x41a8('0x93')])),_0xb97bf[_0x57c401]&&_0x5e94ed&&(_0xb97bf[_0x57c401]['end']=_0x240a90,_0x4c0191(_0xb97bf[_0x57c401]),_0xb97bf[_0x57c401]=null);}function _0x4c0191({start:_0x1117b6,end:_0x3da87d,tapeItem:_0x39ec46,userId:_0x2ee8d3,type:_0x508438}){const _0x434a33=_0x39ec46['item'],_0x5c9fe3=_0x5c77b2[_0x41a8('0x1c')][_0x41a8('0x80')](_0x434a33)&&!_0x5c77b2[_0x41a8('0x1c')][_0x41a8('0xdf')](_0x434a33),_0x2d7ddc=_0x1117b6[_0x41a8('0xb')]==_0x3da87d[_0x41a8('0x2b')]&&_0x3da87d[_0x41a8('0x23')];if(_0x5c9fe3&&_0x2d7ddc)return;const _0x16c338=_0x5c77b2['createRange'](_0x1117b6,_0x3da87d),_0x7293c6=_0x348e71[_0x41a8('0x91')](_0x2ee8d3),_0x403113=new _0x6fe6b0({'author':_0x7293c6,'type':_0x41a8('0xa3')==_0x508438||_0x41a8('0xbc')==_0x508438?_0x41a8('0x1'):_0x41a8('0xbb'),'data':{'isSuggestion':'isAddSuggestion'==_0x508438||'isRemoveSuggestion'==_0x508438},'createdAt':new Date()});_0x2106f2['push'](_0x403113),_0x144a6e[_0x41a8('0xf1')]['set'](_0x41a8('0x25')+_0x403113['id'],_0x16c338);}function _0xecb66e(_0x19c1fb,_0x4c7594){const _0x38b1dc=_0x19c1fb[_0x41a8('0x43')](),_0x15d333=_0x4c7594[_0x41a8('0x43')]();for(const _0x20602d of _0x38b1dc){if(_0x20602d[0x1]!==_0x4c7594['getAttribute'](_0x20602d[0x0]))return!0x1;_0x15d333[_0x41a8('0xc6')]();}return _0x15d333['next']()[_0x41a8('0xcd')];}}[_0x41a8('0xc3')](){this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')]('upcast')[_0x41a8('0xc7')]({'view':_0x41a8('0xa1')}),this[_0x41a8('0x4c')][_0x41a8('0x8d')]['for'](_0x41a8('0x89'))[_0x41a8('0x67')]({'model':_0x41a8('0xa1'),'view':_0x29f9a0=>{const _0x308599=_0x29f9a0[_0x41a8('0x88')][_0x41a8('0x32')](':')[0x1],_0x4e8ae7=this[_0x41a8('0x13')](_0x308599);if(!_0x4e8ae7)return null;const _0x4b2b18=_0x41a8('0x1')==_0x4e8ae7['type']?_0x41a8('0x66'):_0x41a8('0x96'),_0x5250eb=[_0x41a8('0x1b'),_0x41a8('0xa4')+_0x4b2b18];return _0x4e8ae7['data'][_0x41a8('0x61')]&&_0x5250eb[_0x41a8('0x9a')](_0x41a8('0xa4')+_0x4b2b18+'-new'),this['activeChange']==_0x4e8ae7&&_0x5250eb[_0x41a8('0x9a')](_0x41a8('0x2c')),{'classes':_0x5250eb,'attributes':{'data-change-id':_0x308599}};}}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0x49'))[_0x41a8('0x1')](_0x4643cb=>{_0x4643cb['on']('element:pre',(_0x5c143c,_0xba4ccd,_0x1cfe2b)=>{const _0x4470d7=_0xba4ccd[_0x41a8('0x6b')][_0x41a8('0x104')](0x0);if(!_0x4470d7||!_0x4470d7['is']('element','code'))return;if(!_0x1cfe2b['consumable']['consume'](_0x4470d7,{'attributes':['vid_start',_0x41a8('0xda')]}))return;const _0x41c4f7=_0xba4ccd[_0x41a8('0x6c')][_0x41a8('0xbf')][_0x41a8('0xb')];_0x1cfe2b[_0x41a8('0x69')][_0x41a8('0xf2')](_0x41a8('0x52'),_0x4470d7[_0x41a8('0xa9')](_0x41a8('0x52')),_0x41c4f7),_0x1cfe2b[_0x41a8('0x69')][_0x41a8('0xf2')](_0x41a8('0xda'),_0x4470d7[_0x41a8('0xa9')]('vid_end'),_0x41c4f7);},{'priority':'low'});}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0x49'))[_0x41a8('0x1')](_0x29fd89=>{_0x29fd89['on'](_0x41a8('0x62'),(_0x5c29c1,_0x2e033b,_0x2198eb)=>{if(!_0x2198eb[_0x41a8('0x60')]['consume'](_0x2e033b[_0x41a8('0x6b')],{'attributes':[_0x41a8('0x52'),_0x41a8('0xda')]}))return;if(_0x2e033b[_0x41a8('0x6c')][_0x41a8('0xe7')])return;const _0x247537=_0x2e033b[_0x41a8('0x6c')][_0x41a8('0xbf')][_0x41a8('0xb')];_0x247537[_0x41a8('0x50')](_0x41a8('0x52'))||_0x247537[_0x41a8('0x50')]('vid')||(_0x2198eb['writer'][_0x41a8('0xf2')]('vid_start',_0x2e033b['viewItem'][_0x41a8('0xa9')](_0x41a8('0x52')),_0x247537),_0x2198eb[_0x41a8('0x69')][_0x41a8('0xf2')](_0x41a8('0xda'),_0x2e033b[_0x41a8('0x6b')][_0x41a8('0xa9')](_0x41a8('0xda')),_0x247537));},{'priority':_0x41a8('0x56')});}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0x49'))[_0x41a8('0x8b')]({'view':{'name':_0x41a8('0x65'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x181c74=>_0x181c74['getAttribute'](_0x41a8('0xb8'))}}),this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0x1c')]['on'](_0x41a8('0x7c'),(_0x37a354,[,_0x65d9d])=>{[_0x41a8('0x52'),'vid_end','vid'][_0x41a8('0xa')](_0x65d9d)&&(_0x37a354['return']=!0x0,_0x37a354[_0x41a8('0x1f')]());},{'priority':_0x41a8('0xaf')}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0xab'))[_0x41a8('0x1')](_0x2cfdb1=>{_0x2cfdb1['on'](_0x41a8('0xb7'),(_0x16dc13,_0x251d83,_0x3ad858)=>{if('\x20'!=_0x251d83[_0x41a8('0x22')][_0x41a8('0xac')]||_0x251d83[_0x41a8('0x22')][_0x41a8('0x2b')][_0x41a8('0xe5')]>0x1)return;if(!_0x3ad858[_0x41a8('0x60')][_0x41a8('0x33')](_0x251d83[_0x41a8('0x22')],_0x16dc13[_0x41a8('0x5c')]))return;const _0x2d4932=_0x3ad858[_0x41a8('0x69')],_0x3a6f58=_0x3ad858[_0x41a8('0x9e')][_0x41a8('0x20')](_0x251d83[_0x41a8('0x8a')]);_0x2d4932['wrap'](_0x3a6f58,_0x2d4932[_0x41a8('0x2d')](_0x41a8('0x65')));});}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0xab'))[_0x41a8('0x94')]({'model':_0x41a8('0xa1')}),this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xc5')]['on']('addMarker:revision',function(_0x43f569){const _0xed3d02=_0x43f569['plugins'][_0x41a8('0x91')](_0x41a8('0xe1'));return(_0x2af29c,_0x46b929,_0x5e6baa)=>{const _0x1d8e7a=_0x46b929[_0x41a8('0x88')][_0x41a8('0x32')](':')[0x1],_0xb3d5c=_0xed3d02[_0x41a8('0x13')](_0x1d8e7a);if(!_0xb3d5c)return null;const _0x2a78ab=_0x41a8('0x1')==_0xb3d5c[_0x41a8('0xa7')]?_0x41a8('0x32'):_0x41a8('0x97');if(!_0x5e6baa[_0x41a8('0x60')][_0x41a8('0x14')](_0x46b929[_0x41a8('0xd1')],_0x2af29c[_0x41a8('0x5c')]))return;const _0x295022=_0x46b929[_0x41a8('0xd1')][_0x41a8('0xb0')](),_0x45e332=_0x46b929['markerRange']['start'],_0x5ad2c5=_0x43f569[_0x41a8('0xea')][_0x41a8('0x1c')];let _0x179ee4=null,_0x463b5d=null,_0x2cb3a8=!0x1,_0x10f585=!0x1;for(const _0x566ac1 of _0x295022){const _0x212206=_0x566ac1[_0x41a8('0x22')];_0x2cb3a8=_0x2cb3a8||_0x5ad2c5[_0x41a8('0xc2')](_0x212206);const _0x1a97b4=_0x5e6baa[_0x41a8('0x9e')][_0x41a8('0x86')](_0x212206);if(_0x1a97b4&&_0x1a97b4[_0x41a8('0x106')](_0x41a8('0x53')))return;_0x41a8('0xa2')==_0x566ac1[_0x41a8('0xa7')]&&(_0x5ad2c5[_0x41a8('0x80')](_0x212206)&&!_0x5ad2c5[_0x41a8('0xdf')](_0x212206)&&(_0x212206['nextSibling']||_0x45e332[_0x41a8('0x55')]?_0x179ee4&&_0x179ee4[_0x41a8('0x2b')]==_0x212206||(_0x179ee4=_0x212206,_0x440500(_0x566ac1['previousPosition']),_0x10f585=!0x0):_0x463b5d=_0x463b5d||_0x566ac1[_0x41a8('0x83')]));}function _0x440500(_0x50613b){const _0x2cd3b5=_0x5e6baa[_0x41a8('0x69')][_0x41a8('0x3')]('span',{'class':'ck-suggestion-marker-'+_0x2a78ab}),_0x449527=_0x5e6baa[_0x41a8('0x9e')][_0x41a8('0xd4')](_0x50613b);_0xb3d5c['data']['isSuggestion']&&_0x5e6baa[_0x41a8('0x69')][_0x41a8('0xbe')](_0x41a8('0xa4')+_0x2a78ab+'-new',_0x2cd3b5),_0xed3d02['activeChange']==_0xb3d5c&&_0x5e6baa['writer'][_0x41a8('0xbe')](_0x41a8('0x2c'),_0x2cd3b5),_0x5e6baa['writer'][_0x41a8('0x1e')](_0x449527,_0x2cd3b5),_0x5e6baa[_0x41a8('0x9e')][_0x41a8('0x16')](_0x2cd3b5,_0x46b929[_0x41a8('0x88')]);}_0x2cb3a8||_0x10f585||!_0x463b5d||_0x440500(_0x463b5d);};}(this[_0x41a8('0x4c')]),{'priority':_0x41a8('0xff')}),this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xc5')]['on'](_0x41a8('0x38'),(_0x4a055f,_0x2a9cb7,_0x44292f)=>{const _0x29dd86=_0x44292f[_0x41a8('0x9e')][_0x41a8('0x6f')](_0x2a9cb7[_0x41a8('0x88')]);if(_0x29dd86)for(const _0x2bdb6f of _0x29dd86)(_0x2bdb6f[_0x41a8('0xe2')](_0x41a8('0xd3'))||_0x2bdb6f['hasClass'](_0x41a8('0xb5')))&&(_0x44292f['mapper'][_0x41a8('0xc')](_0x2bdb6f,_0x2a9cb7[_0x41a8('0x88')]),_0x44292f[_0x41a8('0x69')][_0x41a8('0xbb')](_0x2bdb6f));},{'priority':_0x41a8('0xff')}),this[_0x41a8('0x4c')]['editing'][_0x41a8('0xc5')]['on']('addMarker:revision',(_0x3be21e,_0x59e15e,_0x30e5b1)=>{const _0x3af2f4=_0x59e15e[_0x41a8('0x88')]['split'](':')[0x1],_0x5aa69f=this[_0x41a8('0x13')](_0x3af2f4);if(!_0x5aa69f)return null;const _0x1d9775=_0x41a8('0x1')==_0x5aa69f['type']?_0x41a8('0x32'):_0x41a8('0x97');if(_0x30e5b1[_0x41a8('0x60')][_0x41a8('0x14')](_0x59e15e['markerRange'],_0x3be21e[_0x41a8('0x5c')]))for(const _0x1e1ac7 of _0x59e15e['markerRange'][_0x41a8('0x87')]()){if(!_0x1e1ac7['is'](_0x41a8('0x62'),_0x41a8('0xd5')))continue;const _0x1f911d=_0x30e5b1[_0x41a8('0x69')][_0x41a8('0x3')](_0x41a8('0x65'),{'class':_0x41a8('0xa4')+_0x1d9775}),_0x9f7755=_0x30e5b1['mapper']['toViewPosition'](this[_0x41a8('0x4c')][_0x41a8('0xea')]['createPositionBefore'](_0x1e1ac7));_0x5aa69f[_0x41a8('0xac')][_0x41a8('0x61')]&&_0x30e5b1[_0x41a8('0x69')][_0x41a8('0xbe')]('ck-suggestion-marker-'+_0x1d9775+_0x41a8('0x73'),_0x1f911d),this[_0x41a8('0x28')]==_0x5aa69f&&_0x30e5b1[_0x41a8('0x69')]['addClass']('ck-suggestion-marker--active',_0x1f911d),_0x30e5b1[_0x41a8('0x69')]['insert'](_0x9f7755,_0x1f911d),_0x30e5b1[_0x41a8('0x9e')][_0x41a8('0x16')](_0x1f911d,_0x59e15e['markerName']);}},{'priority':'high'}),this[_0x41a8('0x4c')][_0x41a8('0x8d')]['for']('upcast')['dataToMarker']({'view':_0x41a8('0x7e')}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')]('dataDowncast')['markerToData']({'model':_0x41a8('0x7e')}),this[_0x41a8('0x4c')]['conversion'][_0x41a8('0x64')](_0x41a8('0x89'))[_0x41a8('0x67')]({'model':_0x41a8('0x7e'),'view':_0xba4412=>{const _0x54ad5e=_0xba4412[_0x41a8('0x88')]['split'](':')[0x1];return _0x41a8('0x66')!=_0x54ad5e&&_0x41a8('0x96')!=_0x54ad5e?null:{'classes':[_0x41a8('0xe9'),_0x41a8('0x3a')+_0x54ad5e]};}}),this['editor'][_0x41a8('0xe0')][_0x41a8('0xc5')]['on'](_0x41a8('0x2e'),J(this[_0x41a8('0x4c')],_0x41a8('0x97')),{'priority':_0x41a8('0xff')}),this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xc5')]['on'](_0x41a8('0xb3'),J(this[_0x41a8('0x4c')],_0x41a8('0x32')),{'priority':_0x41a8('0xff')}),this['editor'][_0x41a8('0xe0')][_0x41a8('0xc5')]['on'](_0x41a8('0x7b'),(_0x1c8637,_0x3c04be,_0x4cb6a0)=>{const _0x14302f=_0x4cb6a0['mapper'][_0x41a8('0x6f')](_0x3c04be[_0x41a8('0x88')]);if(_0x14302f)for(const _0x243dba of _0x14302f)_0x243dba['is'](_0x41a8('0x1a'))&&(_0x4cb6a0[_0x41a8('0x9e')][_0x41a8('0xc')](_0x243dba,_0x3c04be[_0x41a8('0x88')]),_0x4cb6a0['writer']['remove'](_0x243dba));},{'priority':_0x41a8('0xff')});}[_0x41a8('0x13')](_0x144af1){return this[_0x41a8('0x4f')][_0x41a8('0x91')](_0x144af1);}[_0x41a8('0x10')](_0x11a801){this[_0x41a8('0x0')]&&this[_0x41a8('0x0')][_0x41a8('0x84')](),this[_0x41a8('0x0')]=new _0x293847(this[_0x41a8('0x4c')][_0x41a8('0xe3')],_0x11a801);const _0x307191=this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0xf1')][_0x41a8('0x91')](_0x41a8('0x25')+_0x11a801['id']);return this[_0x41a8('0x0')][_0x41a8('0x11')]=()=>_0x2de57a(this[_0x41a8('0x4c')][_0x41a8('0xe0')],_0x307191),this[_0x41a8('0x0')];}[_0x41a8('0x8')](){this[_0x41a8('0x4c')]['model'][_0x41a8('0xbd')][_0x41a8('0x5f')][_0x41a8('0x74')]('revision'),this['on']('change:activeView',(_0x4e8bb1,_0xed27a,_0x198ec7,_0x55ba1b)=>{_0x55ba1b&&this[_0x41a8('0xd7')][_0x41a8('0xbb')](_0x55ba1b),_0x198ec7&&(this[_0x41a8('0xd7')][_0x41a8('0x1')]({'view':_0x198ec7,'stackId':_0x41a8('0x92'),'position':{'target':_0x198ec7['_target']}}),this[_0x41a8('0xd7')]['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x561dc0,_0x472d7e,_0x2af700,_0x5de54a)=>{this[_0x41a8('0xec')]=_0x2af700?this[_0x41a8('0x10')](_0x2af700):null,this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0x93')](()=>{const _0x1a6064=this['editor'][_0x41a8('0xe0')];_0x5de54a&&_0x1a6064[_0x41a8('0xf9')]('revision:'+_0x5de54a['id']),_0x2af700&&_0x1a6064['reconvertMarker'](_0x41a8('0x25')+_0x2af700['id']);});}),this[_0x41a8('0xd0')](this['editor'][_0x41a8('0xe0')][_0x41a8('0xae')]['document'],_0x41a8('0x105'),(_0x3d0a0,_0xd1055)=>{if(this[_0x41a8('0x28')])return;const _0x1c5ca0=this[_0x41a8('0xfb')](_0xd1055[_0x41a8('0x102')]),_0x1dd9cf=this[_0x41a8('0x4f')][_0x41a8('0x91')](_0x1c5ca0);this[_0x41a8('0xec')]=_0x1dd9cf?this[_0x41a8('0x10')](_0x1dd9cf):null;}),this[_0x41a8('0xd0')](this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xae')][_0x41a8('0xbd')],_0x41a8('0x3e'),(_0x420999,_0x158e09)=>{const _0x4b6f03=this[_0x41a8('0xfb')](_0x158e09[_0x41a8('0x102')]),_0x499a03=this[_0x41a8('0x4f')][_0x41a8('0x91')](_0x4b6f03);this[_0x41a8('0x28')]=_0x499a03||null;});}[_0x41a8('0xfb')](_0x45e9db){do{const _0x31f5a7=_0x45e9db[_0x41a8('0xa9')]('data-change-id');if(_0x31f5a7)return _0x31f5a7;_0x45e9db=_0x45e9db[_0x41a8('0x2b')];}while(_0x45e9db);return null;}[_0x41a8('0xa8')](){this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0x93')](_0x3671aa=>{for(const _0x23b2d1 of this[_0x41a8('0x4c')]['model'][_0x41a8('0xf1')])_0x3671aa[_0x41a8('0xd6')](_0x23b2d1);});}}function J(_0x582b1a,_0x4fe015){return(_0x311d83,_0x4f102e,_0x160e24)=>{if(!_0x160e24[_0x41a8('0x60')][_0x41a8('0x14')](_0x4f102e[_0x41a8('0xd1')],_0x311d83[_0x41a8('0x5c')]))return;const _0x42e4b6=_0x4f102e['markerRange'][_0x41a8('0xb0')](),_0x82fd4=_0x4f102e[_0x41a8('0xd1')][_0x41a8('0xbf')],_0x47f59c=_0x582b1a[_0x41a8('0xea')][_0x41a8('0x1c')];let _0x5ec57a=null,_0x3bbac5=null,_0x2c4a71=!0x1,_0x58c271=!0x1;for(const _0x2e1b4e of _0x42e4b6){const _0x2e80f1=_0x2e1b4e[_0x41a8('0x22')];_0x2c4a71=_0x2c4a71||_0x47f59c[_0x41a8('0xc2')](_0x2e80f1);const _0x53887c=_0x160e24['mapper']['toViewElement'](_0x2e80f1);if(_0x53887c&&_0x53887c[_0x41a8('0x106')]('addHighlight'))return;'elementEnd'==_0x2e1b4e['type']&&(_0x47f59c['isBlock'](_0x2e80f1)&&!_0x47f59c['isLimit'](_0x2e80f1)&&(_0x2e80f1[_0x41a8('0x21')]||_0x82fd4[_0x41a8('0x55')]?_0x5ec57a&&_0x5ec57a[_0x41a8('0x2b')]==_0x2e80f1||(_0x5ec57a=_0x2e80f1,_0x5776b4(_0x2e1b4e['previousPosition']),_0x58c271=!0x0):_0x3bbac5=_0x3bbac5||_0x2e1b4e[_0x41a8('0x83')]));}function _0x5776b4(_0x4bb8e9){const _0x543f94=_0x160e24[_0x41a8('0x9e')][_0x41a8('0xd4')](_0x4bb8e9),_0x1af61d=_0x160e24[_0x41a8('0x69')][_0x41a8('0x3')](_0x41a8('0x65'),{'class':_0x41a8('0x3a')+_0x4fe015});_0x160e24[_0x41a8('0x69')]['insert'](_0x543f94,_0x1af61d),_0x160e24[_0x41a8('0x9e')][_0x41a8('0x16')](_0x1af61d,_0x4f102e[_0x41a8('0x88')]);}_0x2c4a71||_0x58c271||!_0x3bbac5||_0x5776b4(_0x3bbac5);};}_0x58c6e6(R,_0x168b9d);class L extends _0x424868{constructor(_0x2eb0ec){super(_0x2eb0ec);const _0x2b506f=_0x2eb0ec[_0x41a8('0x101')][_0x41a8('0x91')](R);this['stopListening'](_0x2eb0ec,_0x41a8('0xfe')),this[_0x41a8('0x7d')](_0x41a8('0x100')),this['listenTo'](_0x2b506f,_0x41a8('0xc8'),()=>this['refresh']()),this[_0x41a8('0xd0')](_0x2b506f,'change:isEnabled',()=>this[_0x41a8('0x4')]());}[_0x41a8('0x5a')](){const _0x50571d=this['editor'],_0x2e9674=_0x50571d[_0x41a8('0x101')][_0x41a8('0x91')](R),_0x47c67a=_0x2e9674['isReady']?_0x2e9674[_0x41a8('0x1d')]['newRevisionId']:null;_0x50571d[_0x41a8('0x26')][_0x41a8('0x91')](_0x41a8('0x44'))[_0x41a8('0xde')](_0x47c67a);}['refresh'](){const {isReady:_0xb6bc98,isEnabled:_0x353f45}=this[_0x41a8('0x4c')][_0x41a8('0x101')][_0x41a8('0x91')](R);this['isEnabled']=_0xb6bc98&&_0x353f45;}}class q extends _0x424868{constructor(_0x319097,{direction:_0x3fa144}){super(_0x319097);const _0x432097=_0x319097[_0x41a8('0x101')][_0x41a8('0x91')](R);this[_0x41a8('0x5')](_0x319097,_0x41a8('0xfe')),this[_0x41a8('0x7d')](_0x41a8('0x100')),this['_step']='forward'===_0x3fa144?0x1:-0x1,this[_0x41a8('0xd0')](_0x432097,'change:isReady',()=>this[_0x41a8('0x4')]()),this[_0x41a8('0xd0')](_0x432097,_0x41a8('0x5e'),()=>this[_0x41a8('0x4')]());}[_0x41a8('0x5a')](){const _0x216f97=this[_0x41a8('0x4c')],_0x28ad93=_0x216f97[_0x41a8('0x101')][_0x41a8('0x91')](R),{isNavigationMode:_0xbfff61,currentChangeNumber:_0x51889c}=_0x28ad93;_0x28ad93[_0x41a8('0x28')]=_0xbfff61?_0x28ad93[_0x41a8('0x1d')]['changes']['get'](_0x51889c+this[_0x41a8('0x6e')]):_0x28ad93[_0x41a8('0x1d')][_0x41a8('0xe4')][_0x41a8('0xb1')];const _0x41fe15=_0x216f97[_0x41a8('0xea')][_0x41a8('0xf1')][_0x41a8('0x91')](_0x41a8('0x25')+_0x28ad93[_0x41a8('0x28')]['id']),_0x150ca6=_0x2de57a(_0x216f97['editing'],_0x41fe15);_0x36c36c({'target':_0x150ca6,'viewportOffset':0x28});}[_0x41a8('0x4')](){const {isNavigationMode:_0xe4d681,currentChangeNumber:_0x5a1de8,numberOfChanges:_0x517edc,isReady:_0x45d8b3,isEnabled:_0x2288bb}=this[_0x41a8('0x4c')][_0x41a8('0x101')][_0x41a8('0x91')](R);this[_0x41a8('0xd9')]=!!(_0x2288bb&&_0x45d8b3&&_0x517edc)&&(!_0xe4d681||(0x1===this[_0x41a8('0x6e')]?_0x5a1de8<_0x517edc-0x1:_0x5a1de8>0x0));}}
23
+ const _0x33f0=['readOnlyMode','nextSibling','marked','_markInsertions','restoreRevisionCallback','_makeModelFromViewString','revision','enqueueChange','isIncorrect','roots','test','index','htmlProcessor','toViewPosition','_getRevisionsRange','span','isRemoved','vid_end','endIndex','_getViewObj','ck-suggestion-marker-','bindElementToMarker','_data','string','target','setAttribute','insertions','elementEnd','vid_start','destroy','bind','code','getAttribute','observeMarkers','diffData','listenTo','downcastDispatcher','_markMarkers','refresh','includes','createRangeIn','changes','ck-suggestion-marker-merge','_getViewForChange','config','push','consume','_threeWayMerge','numberOfChanges','distance','showPreviousChange','attribute:vid','data-change-id','attributes','start','stopListening','getRevisionData','setData','commands','suggestion','splice','add','processor','getRootNames','currentChangeNumber','elementStart','resolve','_appendChild','<p></p>','backward','_removeUnsupportedChanges','editingDowncast','change','maxOffset','removeMarker:revision','offsetSize','_findChangeIdFromDomTarget','markers','get','_getChangeFromId','startIndex','all','view','nextPosition','diff','_cleanUp','consumable','revision-start','-new','reconvertMarker','isReady','writer','deletion','ck-editor__editable__overlay','next','activeChange','vid','abs','ck-suggestion-preview-marker','userId','document','item','softBreak','conversion','getChild','unshift','isAtEnd','for','slice','_fixObsoleteTags','isBefore','change:numberOfChanges','execute','upcast','viewItem','keys','markerToData','getIndex','isInline','showNextChange','_changeView','set','_update','isAdded','authors','values','type','isContent','change:isReady','forEach','data','isSuggestion','_removeMissingPairs','parse','locale','RevisionsRepository','text','delete','dataDowncast','newRevisionId','_markMismatchedRemovedTags','_balloon','done','shift','_setDistance','_cleanMarkers','mousedown','useFillerType','revision-end','markersStart','nodeAfter','markerNameToElements','children','previousPosition','merge','clear','parent','modelRange','addClass','isAfter','editing','toData','has','getRoot','change:activeView','createPositionBefore','low','revision:','split','length','level','pluginName','getRevision','compare','first','revisionHistoryLabel','toModel','addMarker:revision','highest','startsWith','getCustomProperty','insert','revisionHistory','isLimit','model','_refreshStartEndIndex','wrap','map','side','addRevision','_makeTape','then','markersEnd','getItems','toViewRange','element','clearForceDisabled','editor','toViewElement','removeMarker','_removeRevisionMarkers','stop','deletions','end','change:isEnabled','_processTape','schema','isAddSuggestion','loadRevisionData','createPositionFromPath','forward','hasClass','mapper','ck-suggestion-preview-marker-','getAttributes','high','isRemoveSuggestion','error','filter','createUIElement','change:isReadOnly','activeView','isObject','restoreRevision','_step','sort','createRange','pairId','data-revision-','_changeIdToChange','insertion','_target','uiElement','ck-suggestion-marker--active','isEnabled','showStack','markerName','_setConversion','_joinTapes','_revisions','markerRange','adapter','repository','range','dataToMarker','change:activeChange','addHighlight','POSITIVE_INFINITY','unbindElementFromMarkerName','object','concat','plugins','hasAttribute','remove','_initInteractions','isBlock','pop','_getDiff','_makeModelFromTape','markerToHighlight','isEqual','getWalker','isAtStart','from','RevisionViewer','name','removeMarker:suggestion'];(function(_0x1f37d0,_0x33f094){const _0x3683b3=function(_0x259cff){while(--_0x259cff){_0x1f37d0['push'](_0x1f37d0['shift']());}};_0x3683b3(++_0x33f094);}(_0x33f0,0xe7));const _0x3683=function(_0x1f37d0,_0x33f094){_0x1f37d0=_0x1f37d0-0x0;let _0x3683b3=_0x33f0[_0x1f37d0];return _0x3683b3;};import{Plugin as _0x18b0df,Command as _0x4aaa93}from'ckeditor5/src/core';import{ObservableMixin as _0x47cfb5,mix as _0xa2a605,scrollViewportToShowTarget as _0x2bf980}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2040f6}from'ckeditor5/src/ui';import{DocumentFragment as _0x56c45c,Element as _0x1b2555,Text as _0x2d360a,ViewDocumentFragment as _0x15e778,ViewText as _0x567a3a,ViewElement as _0x144076,ViewContainerElement as _0x290635,ViewAttributeElement as _0x348f76,ViewEmptyElement as _0x4557f8,ViewRawElement as _0xe6832,ViewUIElement as _0x349562}from'ckeditor5/src/engine';import{Users as _0x2ed604,getMarkerDomElement as _0x4b2ed6}from'ckeditor5-collaboration/src/collaboration-core';import _0x7a460 from'./ui/revisionviewer/changedetailsview';import _0x2a402c from'./revisionsrepository';import _0x2f83f8 from'./changeitem';import _0x52cb5d from'./revisiondiff';import'../theme/revisionviewer.css';const T={'c':_0x290635,'a':_0x348f76,'e':_0x4557f8,'r':_0xe6832,'u':_0x349562};export default class d extends _0x18b0df{static get[_0x3683('0xcf')](){return'RevisionViewer';}static get['requires'](){return[_0x2ed604,_0x2040f6,_0x2a402c];}constructor(..._0x4a6c1c){super(..._0x4a6c1c),this[_0x3683('0xb')]=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](_0x3683('0xab')),this[_0x3683('0x9d')]('activeChange',null),this[_0x3683('0x9d')]('activeView',null),this[_0x3683('0x9d')]('diff',null),this[_0x3683('0x9d')](_0x3683('0x7e'),!0x1),this[_0x3683('0x9d')](_0x3683('0x3'),!0x0),this['on']('change:isEnabled',(_0x50260d,_0x28142c,_0x459a7c)=>{this[_0x3683('0x83')]=null,this[_0x3683('0x101')]=null,this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x6c')](_0x5bb5ec=>{for(const _0xaf6286 of this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')][_0x3683('0x2d')])_0x459a7c?_0x5bb5ec['removeClass']('ck-editor__editable__overlay',_0xaf6286):_0x5bb5ec[_0x3683('0xc2')](_0x3683('0x81'),_0xaf6286);});}),this[_0x3683('0x42')]('isNavigationMode')['to'](this,_0x3683('0x83'),_0x2f1f1a=>null!==_0x2f1f1a),this['bind'](_0x3683('0x64'))['to'](this,'isReady',this,'diff',this,'activeChange',(_0xe2d2c3,_0x24518b,_0x28c8da)=>_0xe2d2c3&&_0x28c8da?_0x24518b[_0x3683('0x4d')]['getIndex'](_0x28c8da):0x0),this['bind'](_0x3683('0x54'))['to'](this,_0x3683('0x7e'),this,'diff',(_0xde5f09,_0x92ed57)=>_0xde5f09?_0x92ed57['changes'][_0x3683('0xcd')]:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this[_0x3683('0xa')]=null,this[_0x3683('0xb1')]=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](_0x2040f6);}['init'](){const _0x523279=this[_0x3683('0xe9')];_0x523279[_0x3683('0xa6')][_0x3683('0x30')][_0x3683('0xb7')](_0x3683('0x26'));const _0x4b038e=new X(_0x523279,{'direction':_0x3683('0x69')}),_0x4b970c=new X(_0x523279,{'direction':'forward'});_0x523279[_0x3683('0x5e')][_0x3683('0x61')](_0x3683('0x56'),_0x4b038e),_0x523279['commands'][_0x3683('0x61')](_0x3683('0x9b'),_0x4b970c),_0x523279[_0x3683('0x5e')][_0x3683('0x61')](_0x3683('0x103'),new Q(_0x523279)),this['on'](_0x3683('0x93'),()=>{_0x4b038e[_0x3683('0x4a')](),_0x4b970c['refresh']();}),this[_0x3683('0x6')](),this[_0x3683('0x17')](),_0x523279['enableReadOnlyMode']('revision-viewer');}async[_0x3683('0x5c')](_0xd8ec48){await this[_0x3683('0xf4')](_0xd8ec48);const _0x8a9f8f={};for(const _0x35eb30 in _0xd8ec48[_0x3683('0x46')]){const _0x1958cc=this[_0x3683('0xec')](JSON[_0x3683('0xa9')](_0xd8ec48[_0x3683('0x46')][_0x35eb30][_0x3683('0x3e')])),_0x3757fa=this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')],_0x7a9275=new _0x15e778(_0x3757fa,_0x1958cc['map'](_0x3f60e7=>this[_0x3683('0x37')](_0x3f60e7)));_0x8a9f8f[_0x35eb30]=this['editor'][_0x3683('0xa6')][_0x3683('0x62')][_0x3683('0xc5')](_0x7a9275);}return _0x8a9f8f;}['_removeRevisionMarkers'](_0x6a2a32){return(_0x6a2a32=_0x6a2a32[_0x3683('0xfe')](_0xaa0855=>!_0xaa0855[_0x3683('0x22')]||_0x3683('0x7b')!==_0xaa0855[_0x3683('0x22')]&&_0x3683('0xb8')!==_0xaa0855['name']))[_0x3683('0xa5')](_0x1da8ef=>{_0x3683('0x3b')!=typeof _0x1da8ef&&(_0x1da8ef[_0x3683('0xbc')]=this['_removeRevisionMarkers'](_0x1da8ef[_0x3683('0xbc')]),_0x1da8ef[_0x3683('0x59')]=_0x1da8ef[_0x3683('0x59')][_0x3683('0xfe')](_0x4768d1=>!_0x4768d1[0x0][_0x3683('0xd7')](_0x3683('0x108'))));}),_0x6a2a32;}[_0x3683('0xd1')](_0x2bedac,_0x2608b6,_0x849978=!0x1){if(!this['isEnabled'])return;const _0x3eb857=this[_0x3683('0x78')],_0x1defff=this[_0x3683('0xb')],_0x1a8d34=_0x3683('0x3b')==typeof _0x2bedac?_0x1defff[_0x3683('0xd0')](_0x2bedac):_0x2bedac,_0x26cff6=_0x3683('0x3b')==typeof _0x2608b6?_0x1defff['getRevision'](_0x2608b6):_0x2608b6,_0x2b94a9=_0x1a8d34['id'],_0x304174=_0x26cff6?_0x26cff6['id']:null;if(!_0x849978&&this['diff']&&this[_0x3683('0x78')]['newRevisionId']===_0x2b94a9&&this[_0x3683('0x78')]['oldRevisionId']===_0x304174)return Promise['resolve']();this[_0x3683('0x7e')]=!0x1,this[_0x3683('0x101')]=null,this[_0x3683('0x83')]=null,this[_0x3683('0x78')]=new _0x52cb5d(_0x2b94a9,_0x304174);const _0x47434b=this[_0x3683('0x32')](_0x1a8d34,_0x26cff6,!0x0)['map'](_0x1aa41c=>this[_0x3683('0xf4')](_0x1aa41c));return _0x47434b[_0x3683('0x51')](new Promise(_0x3e53bc=>{setTimeout(_0x3e53bc,0x14);})),Promise[_0x3683('0x75')](_0x47434b)[_0x3683('0xe3')](()=>{if(!this[_0x3683('0x3')])return;this[_0x3683('0x79')]();const _0x5e0359=this[_0x3683('0x1a')](_0x2b94a9,_0x304174);this[_0x3683('0x78')]['_setData'](_0x5e0359);for(const _0x3dd7ba of this[_0x3683('0x78')][_0x3683('0x4d')])this[_0x3683('0x109')]['set'](_0x3dd7ba['id'],_0x3dd7ba);this['editor']['model'][_0x3683('0x2b')]({'isUndoable':!0x1},_0x34bc56=>{for(const _0x18e002 of Object['keys'](_0x5e0359['model'])){const _0x934155=this[_0x3683('0xe9')]['model']['document'][_0x3683('0xc7')](_0x18e002);_0x34bc56[_0x3683('0x16')](_0x34bc56['createRangeIn'](_0x934155)),_0x34bc56[_0x3683('0xd9')](_0x5e0359[_0x3683('0xdc')][_0x18e002],_0x934155,0x0);}}),this['isReady']=!0x0;})['catch'](_0x180358=>{console[_0x3683('0xfd')](_0x180358),this[_0x3683('0x79')](),_0x3eb857?this[_0x3683('0x78')]=_0x3eb857:this[_0x3683('0xe9')][_0x3683('0x5d')](_0x3683('0x68')),this[_0x3683('0x7e')]=!0x0;});}[_0x3683('0x41')](){this[_0x3683('0x101')]=null,this['_changeView']&&this[_0x3683('0x9c')][_0x3683('0x41')]();}['addRevisionData'](_0x3d50e4,_0x1bc7ee){const _0x2a4555=this[_0x3683('0xb')]['createRevision'](_0x3d50e4);return _0x2a4555['on'](_0x3683('0x9e'),(_0x3908b4,_0x3230f0,_0x18258f)=>_0x1bc7ee(_0x3230f0,_0x18258f,_0x2a4555)),this[_0x3683('0xb')][_0x3683('0xe1')](_0x2a4555),_0x2a4555;}[_0x3683('0xf4')](_0x41d1b5){if(!_0x41d1b5||_0x41d1b5['diffData'])return Promise[_0x3683('0x66')]();{const _0x3ab0aa=this[_0x3683('0xe9')][_0x3683('0x50')]['get']('collaboration.channelId');return this[_0x3683('0xa')][_0x3683('0xd0')]({'channelId':_0x3ab0aa,'revisionId':_0x41d1b5['id']})[_0x3683('0xe3')](_0x5acc47=>{_0x41d1b5[_0x3683('0x9e')]({'diffData':_0x5acc47[_0x3683('0x46')]},!0x0);});}}[_0x3683('0x79')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x3683('0x9c')]&&this['_changeView'][_0x3683('0x41')](),this['_changeView']=null,this[_0x3683('0x109')][_0x3683('0xbf')]();}[_0x3683('0xe2')](_0x23cec4){const _0xf76f09=Array[_0x3683('0x20')](_0x23cec4[_0x3683('0x71')])[_0x3683('0xfe')](([_0x8ee4e5,_0x4e7e52])=>_0x8ee4e5[_0x3683('0xd7')](_0x3683('0xcb'))&&!_0x4e7e52['isCollapsed']),_0x598414=Array[_0x3683('0x20')](this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x4c')](_0x23cec4)[_0x3683('0x1e')]({'singleCharacters':!0x0}));if(0x0!=_0xf76f09['length'])for(const _0x5be978 of _0x598414){const [_0x53bb82,_0x2d5ff0]=_0xf76f09[0x0],[,_0x114662,_0x4a0b78]=_0x53bb82['split'](':');if(_0x2d5ff0['end'][_0x3683('0x1d')](_0x5be978[_0x3683('0x77')])&&_0xf76f09[_0x3683('0xb3')](),(_0x5be978[_0x3683('0xbd')][_0x3683('0x1d')](_0x2d5ff0[_0x3683('0x5a')])||_0x5be978['previousPosition']['isAfter'](_0x2d5ff0[_0x3683('0x5a')]))&&('insertion'==_0x114662?_0x5be978['isAdded']={'userId':_0x4a0b78}:_0x3683('0x80')==_0x114662&&(_0x5be978[_0x3683('0x34')]={'userId':_0x4a0b78})),0x0==_0xf76f09[_0x3683('0xcd')])break;}return _0x598414;}[_0x3683('0xdd')](_0x1bffee){const _0x144430=new Map();for(let _0x473fd7=0x0;_0x473fd7<_0x1bffee[_0x3683('0xcd')];_0x473fd7++)_0x3683('0xac')===_0x1bffee[_0x473fd7][_0x3683('0xa2')]?(_0x1bffee[_0x473fd7][_0x3683('0x89')][_0x3683('0x74')]=_0x473fd7,_0x1bffee[_0x473fd7][_0x3683('0x89')][_0x3683('0x36')]=_0x473fd7):(_0x3683('0x65')===_0x1bffee[_0x473fd7]['type']?_0x1bffee[_0x473fd7][_0x3683('0x89')][_0x3683('0x74')]=_0x473fd7:_0x3683('0x3f')===_0x1bffee[_0x473fd7][_0x3683('0xa2')]&&(_0x1bffee[_0x473fd7][_0x3683('0x89')]['endIndex']=_0x473fd7),_0x144430[_0x3683('0x9d')](_0x1bffee[_0x473fd7]['id'],_0x473fd7));for(const _0x2a8ffc of _0x144430[_0x3683('0xa1')]())_0x3683('0x65')===_0x1bffee[_0x2a8ffc][_0x3683('0xa2')]?_0x1bffee[_0x2a8ffc][_0x3683('0x89')][_0x3683('0x36')]=_0x144430['get'](_0x1bffee[_0x2a8ffc]['pairId']):_0x3683('0x3f')===_0x1bffee[_0x2a8ffc][_0x3683('0xa2')]&&(_0x1bffee[_0x2a8ffc][_0x3683('0x89')][_0x3683('0x74')]=_0x144430[_0x3683('0x72')](_0x1bffee[_0x2a8ffc][_0x3683('0x107')]));}['_processTape'](_0x2f3954){for(let _0x45d854=0x0;_0x45d854<_0x2f3954[_0x3683('0xcd')];_0x45d854++){if(_0x3683('0x65')===_0x2f3954[_0x45d854][_0x3683('0xa2')])_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x74')]=_0x45d854;else{if(_0x3683('0x3f')===_0x2f3954[_0x45d854]['type']){_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x36')]=_0x45d854;const _0x1e48f9=_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x74')];_0x2f3954[_0x1e48f9]['pairId']=_0x2f3954[_0x45d854]['id'],_0x2f3954[_0x45d854][_0x3683('0x107')]=_0x2f3954[_0x1e48f9]['id'];}else _0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x74')]=_0x45d854,_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x36')]=_0x45d854,_0x2f3954[_0x45d854][_0x3683('0x107')]=null;}_0x2f3954[_0x45d854][_0x3683('0xb9')]||(_0x2f3954[_0x45d854]['markersStart']=[],_0x2f3954[_0x45d854][_0x3683('0xe4')]=[]);}}['_markInsertions'](_0x1e97a3,_0x4d8e44){const _0x3bc859=_0x1e97a3[_0x3683('0xfe')](_0x49ea22=>!_0x49ea22[_0x3683('0x9f')]);for(let _0x1d80cc=0x0;_0x1d80cc<_0x4d8e44['length'];_0x1d80cc++)_0x4d8e44[_0x1d80cc][_0x3683('0x9f')]&&(_0x3bc859[_0x1d80cc][_0x3683('0x9f')]=_0x4d8e44[_0x1d80cc][_0x3683('0x9f')]);}[_0x3683('0x29')](_0x3a7215){const _0x2d931b=JSON[_0x3683('0xa9')](_0x3a7215),_0x3fea63=this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')],_0x5b3b0a=new _0x15e778(_0x3fea63,_0x2d931b[_0x3683('0xdf')](_0x49358a=>this[_0x3683('0x37')](_0x49358a)));return this['editor'][_0x3683('0xa6')][_0x3683('0xd4')](_0x5b3b0a);}[_0x3683('0x37')](_0x282434){const _0xac2557=this[_0x3683('0xe9')][_0x3683('0xc4')]['view'][_0x3683('0x88')];if(_0x3683('0x3b')==typeof _0x282434)return new _0x567a3a(_0xac2557,_0x282434);{const _0x13e150=_0x282434[_0x3683('0xbc')][_0x3683('0xdf')](_0x518176=>this['_getViewObj'](_0x518176));return new(T[_0x282434['type']]||_0x144076)(_0xac2557,_0x282434[_0x3683('0x22')],_0x282434[_0x3683('0x59')],_0x13e150);}}['_getDiff'](_0x448958,_0x3471a7=null){const _0x2e7763=this[_0x3683('0xb')]['getRevision'](_0x448958),_0x428ffd=_0x3471a7?this['repository'][_0x3683('0xd0')](_0x3471a7):null,_0x12e596=this[_0x3683('0x32')](_0x2e7763,_0x428ffd),_0x1742b7=_0x12e596[_0x12e596[_0x3683('0xcd')]-0x1],_0x496707=new Map();for(const _0x201459 of _0x12e596){_0x201459[_0x3683('0xdc')]={};for(const _0x309456 of _0x201459[_0x3683('0xa0')])_0x496707[_0x3683('0x9d')](_0x309456['id'],_0x309456);for(const _0x352469 of this['editor'][_0x3683('0xdc')][_0x3683('0x88')][_0x3683('0x63')]())_0x201459[_0x3683('0x46')][_0x352469]||(_0x201459[_0x3683('0x46')][_0x352469]={'insertions':'[]','deletions':'[]'}),_0x201459['model'][_0x352469]={'insertions':this[_0x3683('0x29')](_0x201459[_0x3683('0x46')][_0x352469][_0x3683('0x3e')]),'deletions':this['_makeModelFromViewString'](_0x201459['diffData'][_0x352469][_0x3683('0xee')])};}const _0xfca87e={'model':{},'changes':[]};for(const _0x45e406 of this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x88')][_0x3683('0x63')]()){let _0x3c4def=null,_0x418561=0x0;const _0x4ac401=new Map(Array[_0x3683('0x20')](_0x2e7763['model'][_0x45e406]['insertions']['markers'])[_0x3683('0xfe')](([_0x308567])=>!_0x308567[_0x3683('0xd7')](_0x3683('0xcb'))));let _0x1ba028=0x0;for(const _0x2c6a8b of _0x12e596){const _0x2f57dd=this[_0x3683('0xe2')](_0x2c6a8b[_0x3683('0xdc')][_0x45e406]['insertions']);_0x2c6a8b==_0x2e7763?(_0x3c4def=_0x2f57dd,_0x418561=_0x3c4def[_0x3683('0xcd')],_0x3c4def['forEach'](_0x3b7552=>{_0x3b7552['id']=_0x1ba028++;}),this[_0x3683('0xf1')](_0x3c4def)):this[_0x3683('0x27')](_0x3c4def,_0x2f57dd);const _0x279c6c=_0x3c4def[_0x3683('0xfe')](_0x222ef2=>!_0x222ef2['isAdded'])[_0x3683('0xdf')](_0xfab259=>_0xfab259['id']);let _0x38169a=0x0;const _0x86fc23=this[_0x3683('0xe2')](_0x2c6a8b[_0x3683('0xdc')][_0x45e406]['deletions']);_0x86fc23[_0x3683('0xa5')](_0x2d0f99=>{_0x2d0f99['isRemoved']?_0x2d0f99['id']=_0x418561++:_0x2d0f99['id']=_0x279c6c[_0x38169a++];}),this[_0x3683('0xf1')](_0x86fc23),this[_0x3683('0xb4')](_0x3c4def,'isAdded'),this[_0x3683('0xb4')](_0x86fc23,_0x3683('0x34')),_0x2c6a8b==_0x2e7763&&this[_0x3683('0x49')](_0x3c4def,_0x4ac401),_0x3c4def=this['_joinTapes'](_0x3c4def,_0x86fc23),this['_refreshStartEndIndex'](_0x3c4def),this[_0x3683('0xb4')](_0x3c4def,_0x3683('0x34'));}_0x3c4def=_0x3c4def[_0x3683('0xfe')](_0x483889=>!(_0x483889[_0x3683('0x9f')]&&_0x483889['isRemoved']));const _0x43139b=new Map(_0x1742b7['model'][_0x45e406][_0x3683('0xee')]['markers']),_0xe456bc=new Set(_0x4ac401[_0x3683('0x97')]());for(const _0x28329b of _0x43139b[_0x3683('0x97')]())_0xe456bc[_0x3683('0xad')](_0x28329b);this['_markSuggestions'](_0x3c4def,_0xe456bc),this[_0x3683('0x91')](_0x3c4def),_0x3c4def=this[_0x3683('0xa8')](_0x3c4def),_0x3c4def=this[_0x3683('0xb0')](_0x3c4def),_0x3c4def=this[_0x3683('0x6a')](_0x3c4def);const {root:_0xa64ae9,changes:_0x30b431}=this[_0x3683('0x1b')](_0x3c4def,_0x496707);_0xfca87e['model'][_0x45e406]=_0xa64ae9,_0xfca87e[_0x3683('0x4d')]=_0xfca87e[_0x3683('0x4d')][_0x3683('0x13')](_0x30b431);}return _0xfca87e;}[_0x3683('0x49')](_0x4f5d98,_0x122398){for(let _0x450a75=0x0;_0x450a75<_0x4f5d98[_0x3683('0xcd')];_0x450a75++)for(const [_0x12327c,_0xb21d7a]of _0x122398)_0xb21d7a[_0x3683('0x5a')][_0x3683('0x1d')](_0x4f5d98[_0x450a75][_0x3683('0xbd')])&&_0x4f5d98[_0x450a75]['markersStart'][_0x3683('0x51')](_0x12327c),_0xb21d7a['end'][_0x3683('0x1d')](_0x4f5d98[_0x450a75][_0x3683('0x77')])&&_0x4f5d98[_0x450a75][_0x3683('0xe4')][_0x3683('0x51')](_0x12327c);}[_0x3683('0x7')](_0x5adca,_0x34a7e9){let _0x544ce4=[],_0x463273=0x0,_0x5c201f=0x0;for(;_0x463273<_0x5adca[_0x3683('0xcd')]||_0x5c201f<_0x34a7e9[_0x3683('0xcd')];){const _0x1337ff=_0x5adca[_0x463273]||{},_0x170aa5=_0x34a7e9[_0x5c201f]||{};if(_0x1337ff['id']==_0x170aa5['id'])_0x463273++,_0x5c201f++,_0x544ce4[_0x3683('0x51')](_0x1337ff);else{if(_0x170aa5[_0x3683('0x34')]&&_0x1337ff['isAdded']){const {commonTape:_0x12834f,iEnd:_0x5d52d9,jEnd:_0xdaed70}=this[_0x3683('0x53')](_0x5adca,_0x463273,_0x34a7e9,_0x5c201f);_0x544ce4=_0x544ce4['concat'](_0x12834f),_0x463273=_0x5d52d9,_0x5c201f=_0xdaed70;}else _0x170aa5[_0x3683('0x34')]?(_0x5c201f++,_0x544ce4[_0x3683('0x51')](_0x170aa5)):(_0x463273++,_0x544ce4[_0x3683('0x51')](_0x1337ff));}}return _0x544ce4;}['_markSuggestions'](_0x22c662,_0x46abd5){const _0x7794b8=[];for(let _0xeb21db=0x0;_0xeb21db<_0x22c662['length'];_0xeb21db++){for(let _0x52e288=0x0;_0x52e288<_0x22c662[_0xeb21db][_0x3683('0xb9')][_0x3683('0xcd')];_0x52e288++){const _0xd4351c=_0x22c662[_0xeb21db]['markersStart'][_0x52e288];if(!_0x46abd5[_0x3683('0xc6')](_0xd4351c))continue;const {group:_0xdf3887,type:_0xaad65d,authorId:_0x5f474c}=_0x5e4437(_0xd4351c);'suggestion'!=_0xdf3887||_0x3683('0x10a')!=_0xaad65d&&'deletion'!=_0xaad65d||(_0x7794b8['unshift']({'type':_0xaad65d,'name':_0xd4351c,'userId':_0x5f474c}),_0x22c662[_0xeb21db][_0x3683('0xb9')][_0x3683('0x60')](_0x52e288,0x1),_0x52e288--);}_0x431064(_0x22c662[_0xeb21db]);for(let _0x1a77c2=0x0;_0x1a77c2<_0x22c662[_0xeb21db]['markersEnd'][_0x3683('0xcd')];_0x1a77c2++){const _0x21ed7b=_0x22c662[_0xeb21db][_0x3683('0xe4')][_0x1a77c2];if(!_0x46abd5['has'](_0x21ed7b))continue;const {group:_0x35da50,type:_0x45e4a5}=_0x5e4437(_0x21ed7b);if(_0x3683('0x5f')!=_0x35da50||_0x3683('0x10a')!=_0x45e4a5&&'deletion'!=_0x45e4a5)continue;_0x22c662[_0xeb21db][_0x3683('0xe4')][_0x3683('0x60')](_0x1a77c2,0x1),_0x1a77c2--;const _0x153bc7=_0x7794b8['findIndex'](_0x1cda87=>_0x1cda87['name']==_0x21ed7b);_0x153bc7>-0x1&&_0x7794b8['splice'](_0x153bc7,0x1);}}function _0x5e4437(_0x331883){const _0x586531=_0x331883[_0x3683('0xcc')](':');return{'group':_0x586531[0x0],'type':_0x586531[0x1],'subType':_0x586531[_0x3683('0xcd')]>=0x5?_0x586531[0x2]:null,'id':_0x586531[_0x3683('0xcd')]<0x5?_0x586531[0x2]:_0x586531[0x3],'authorId':_0x586531['length']<0x5?_0x586531[0x3]:_0x586531[0x4],'markerCount':0x6==_0x586531[_0x3683('0xcd')]?_0x586531[0x5]:null};}function _0x431064(_0x5c487a){for(let _0x5f21ca=0x0;_0x5f21ca<_0x7794b8[_0x3683('0xcd')];_0x5f21ca++){if(_0x5c487a[_0x3683('0x9f')]&&_0x3683('0x10a')==_0x7794b8[_0x5f21ca][_0x3683('0xa2')])return _0x5c487a['isAddSuggestion']=_0x7794b8[_0x5f21ca],void delete _0x5c487a['isAdded'];if(!_0x5c487a['isAdded']&&!_0x5c487a[_0x3683('0x34')]&&'deletion'==_0x7794b8[_0x5f21ca]['type'])return void(_0x5c487a[_0x3683('0xfc')]=_0x7794b8[_0x5f21ca]);}}}[_0x3683('0xb4')](_0x1e4c82,_0xfdb2b0){let _0x966bd2=0x0,_0x5e2689=!0x1;const _0x267480=new Map();for(const _0x980d75 of _0x1e4c82)_0x980d75[_0xfdb2b0]?_0x5e2689&&(_0x966bd2++,_0x5e2689=!0x1):(_0x966bd2++,_0x5e2689=!0x0),_0x267480['set'](_0x980d75['id'],_0x966bd2);for(let _0xeea8d2=0x0;_0xeea8d2<_0x1e4c82[_0x3683('0xcd')];_0xeea8d2++){if('isRemoved'==_0xfdb2b0&&_0x1e4c82[_0xeea8d2][_0x3683('0x9f')]||'isAdded'==_0xfdb2b0&&_0x1e4c82[_0xeea8d2][_0x3683('0x34')])continue;if(_0x3683('0xac')==_0x1e4c82[_0xeea8d2][_0x3683('0xa2')]){_0x1e4c82[_0xeea8d2][_0x3683('0x55')]=0x0;continue;}const _0x1eb75a=_0x267480[_0x3683('0x72')](_0x1e4c82[_0xeea8d2][_0x3683('0x107')]),_0x19a691=_0x267480[_0x3683('0x72')](_0x1e4c82[_0xeea8d2]['id']);_0x1e4c82[_0xeea8d2][_0x3683('0x55')]=_0x1eb75a-_0x19a691;}}[_0x3683('0x32')](_0x245da9,_0x2b0be1,_0x1d19cc=!0x1){const _0x41a073=[];let _0x8be308=this[_0x3683('0xb')]['getIndex'](_0x245da9),_0xcce1c=this[_0x3683('0xb')][_0x3683('0x99')](_0x2b0be1);for(-0x1==_0xcce1c&&(_0xcce1c=this[_0x3683('0xb')][_0x3683('0x8')][_0x3683('0xcd')],_0x1d19cc=!0x1);_0x8be308<_0xcce1c;)_0x41a073['push'](this[_0x3683('0xb')][_0x3683('0xd0')](_0x8be308)),_0x8be308++;return _0x1d19cc&&_0x41a073[_0x3683('0x51')](this['repository'][_0x3683('0xd0')](_0x8be308)),_0x41a073;}['_threeWayMerge'](_0x84ac1a,_0x1d6417,_0x4a1622,_0x570cc2){const _0xed4af8=this['editor'][_0x3683('0xdc')][_0x3683('0xf2')];let _0x182d1d=_0x1d6417;for(;_0x84ac1a[_0x182d1d]&&_0x84ac1a[_0x182d1d][_0x3683('0x9f')];)_0x182d1d++;let _0x1f873f=_0x570cc2;for(;_0x4a1622[_0x1f873f]&&_0x4a1622[_0x1f873f][_0x3683('0x34')];)_0x1f873f++;_0xa5306f(_0x84ac1a,_0x1d6417,_0x182d1d),_0xa5306f(_0x4a1622,_0x570cc2,_0x1f873f);const _0xfb1acc=_0x4a1622[_0x3683('0x90')](_0x570cc2,_0x1f873f)[_0x3683('0x13')](_0x84ac1a['slice'](_0x1d6417,_0x182d1d));return _0xfb1acc[_0x3683('0x105')]((_0x5adbf8,_0x42adc6)=>_0x5adbf8[_0x3683('0xe0')]!=_0x42adc6[_0x3683('0xe0')]?_0x5adbf8[_0x3683('0xe0')]-_0x42adc6[_0x3683('0xe0')]:_0x5adbf8[_0x3683('0xce')]!=_0x42adc6[_0x3683('0xce')]?_0x5adbf8[_0x3683('0xce')]-_0x42adc6[_0x3683('0xce')]:_0x5adbf8['distance']!=_0x42adc6[_0x3683('0x55')]?_0x42adc6['distance']-_0x5adbf8[_0x3683('0x55')]:!!_0x5adbf8[_0x3683('0x9f')]!=!!_0x42adc6[_0x3683('0x9f')]?-0x1==_0x5adbf8[_0x3683('0xe0')]||0x0==_0x5adbf8['side']?_0x5adbf8[_0x3683('0x9f')]?-0x1:0x1:_0x5adbf8[_0x3683('0x9f')]?0x1:-0x1:_0x5adbf8[_0x3683('0x2f')]-_0x42adc6[_0x3683('0x2f')]),{'commonTape':_0xfb1acc,'iEnd':_0x182d1d,'jEnd':_0x1f873f};function _0xa5306f(_0x376d91,_0x39191a,_0x54d8f8){let _0x307978=-0x1,_0x39e554=Number[_0x3683('0x10')],_0x1e2f09=!0x0;for(let _0x1a0878=_0x39191a;_0x1a0878<_0x54d8f8;_0x1a0878++)if(_0xed4af8[_0x3683('0x9a')](_0x376d91[_0x1a0878][_0x3683('0x89')])||(_0x1e2f09=!0x1),_0x376d91[_0x1a0878][_0x3683('0x89')][_0x3683('0x74')]<_0x39191a&&(_0x307978=_0x1a0878),_0x376d91[_0x1a0878][_0x3683('0x89')]['endIndex']>=_0x54d8f8){_0x39e554=_0x1a0878;break;}_0x1e2f09&&(_0x307978=_0x54d8f8-0x1);for(let _0x2d037d=_0x39191a;_0x2d037d<_0x54d8f8;_0x2d037d++)_0x376d91[_0x2d037d][_0x3683('0xe0')]=_0x2d037d<=_0x307978?-0x1:_0x2d037d<_0x39e554?0x0:0x1,_0x376d91[_0x2d037d]['index']=_0x2d037d;let _0x4535bd=0x0;for(let _0x152008=_0x39191a;_0x152008<=_0x307978;_0x152008++)0x0==_0x376d91[_0x152008][_0x3683('0x55')]?_0x376d91[_0x152008]['level']=_0x4535bd:(_0x4535bd++,_0x376d91[_0x152008][_0x3683('0xce')]=_0x4535bd,_0x4535bd++);for(let _0x38c2c5=_0x39191a;_0x38c2c5<_0x54d8f8;_0x38c2c5++)0x0==_0x376d91[_0x38c2c5][_0x3683('0xe0')]&&(_0x376d91[_0x38c2c5][_0x3683('0xce')]=_0x4535bd);_0x4535bd=0x0;for(let _0x392709=_0x54d8f8-0x1;_0x392709>=_0x39e554;_0x392709--)0x0==_0x376d91[_0x392709][_0x3683('0x55')]?_0x376d91[_0x392709][_0x3683('0xce')]=_0x4535bd:(_0x4535bd--,_0x376d91[_0x392709]['level']=_0x4535bd,_0x4535bd--);}}[_0x3683('0x91')](_0x5646d6){const _0x1648fe=new Map(),_0x47a53c=this[_0x3683('0xe9')][_0x3683('0xdc')]['schema'];for(let _0x255080=0x1;_0x255080<_0x5646d6[_0x3683('0xcd')];_0x255080++){let _0x21e071,_0x3e7c3c,_0x346ed6;const _0xcbc916=_0x5646d6[_0x255080],_0x1d9da8=_0x5646d6[_0x255080-0x1];if(_0x3683('0xac')==_0xcbc916['type'])continue;if(_0xcbc916['type']!=_0x1d9da8['type'])continue;if(!_0x47a53c['isBlock'](_0x1d9da8['item'])||_0x47a53c[_0x3683('0xdb')](_0x1d9da8[_0x3683('0x89')]))continue;if(!_0x47a53c[_0x3683('0x18')](_0xcbc916[_0x3683('0x89')])||_0x47a53c[_0x3683('0xdb')](_0xcbc916['item']))continue;if((_0x5646d6[_0x255080][_0x3683('0x9f')]||_0x5646d6[_0x255080][_0x3683('0xf3')])&&_0x5646d6[_0x255080-0x1][_0x3683('0x34')])_0x21e071=_0x5646d6[_0x255080],_0x3e7c3c=_0x5646d6[_0x255080-0x1],_0x346ed6=_0x255080-0x1;else{if(!_0x5646d6[_0x255080][_0x3683('0x34')]||!_0x5646d6[_0x255080-0x1][_0x3683('0x9f')]&&!_0x5646d6[_0x255080-0x1][_0x3683('0xf3')])continue;_0x21e071=_0x5646d6[_0x255080-0x1],_0x3e7c3c=_0x5646d6[_0x255080],_0x346ed6=_0x255080;}const _0x16a181=_0x21e071[_0x3683('0xce')]==_0x3e7c3c[_0x3683('0xce')],_0x516122=Math[_0x3683('0x85')](_0x21e071[_0x3683('0xce')])<Math['abs'](_0x3e7c3c[_0x3683('0xce')])&&0x0==_0x3e7c3c['distance'];(_0x16a181||_0x516122)&&(_0x1648fe['set'](_0x3e7c3c['id'],_0x21e071['id']),_0x5646d6[_0x3683('0x60')](_0x346ed6,0x1),_0x255080--,_0x21e071[_0x3683('0x9f')]=!0x1);}for(let _0x5a6ca5=0x0;_0x5a6ca5<_0x5646d6[_0x3683('0xcd')];_0x5a6ca5++)_0x1648fe['has'](_0x5646d6[_0x5a6ca5][_0x3683('0x107')])&&(_0x5646d6[_0x5a6ca5][_0x3683('0x107')]=_0x1648fe[_0x3683('0x72')](_0x5646d6[_0x5a6ca5][_0x3683('0x107')]));}[_0x3683('0xa8')](_0x44a671){const _0x53b198=new Set(_0x44a671[_0x3683('0xdf')](_0x3cf774=>_0x3cf774['id']));for(let _0x118bb0=0x0;_0x118bb0<_0x44a671['length'];_0x118bb0++)_0x53b198['has'](_0x44a671[_0x118bb0]['pairId'])||0x0==_0x44a671[_0x118bb0][_0x3683('0x55')]||(_0x44a671[_0x118bb0][_0x3683('0x2c')]=!0x0);return _0x44a671['filter'](_0x4f94c1=>!_0x4f94c1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x168f62){const _0x31123e=new Set();for(let _0x2e87b0=0x0;_0x2e87b0<_0x168f62[_0x3683('0xcd')];_0x2e87b0++){if(_0x31123e[_0x3683('0xc6')](_0x168f62[_0x2e87b0]['id'])&&_0x168f62[_0x2e87b0]['isRemoved']&&(_0x168f62[_0x2e87b0]['isIncorrect']=!0x0),_0x168f62[_0x2e87b0][_0x3683('0x2c')])continue;if(0x0==_0x168f62[_0x2e87b0][_0x3683('0x55')])continue;if(_0x3683('0x65')!=_0x168f62[_0x2e87b0][_0x3683('0xa2')])continue;if(null==_0x168f62[_0x2e87b0][_0x3683('0x107')])continue;let _0x2b332a=_0x2e87b0+0x1,_0x2ae1d7=0x0;for(;_0x168f62[_0x2b332a]['id']!=_0x168f62[_0x2e87b0][_0x3683('0x107')];)'elementStart'==_0x168f62[_0x2b332a][_0x3683('0xa2')]?_0x2ae1d7++:'elementEnd'==_0x168f62[_0x2b332a][_0x3683('0xa2')]&&_0x2ae1d7--,_0x2b332a++;if(0x0!=_0x2ae1d7){if(_0x168f62[_0x2e87b0][_0x3683('0x34')])_0x168f62[_0x2e87b0][_0x3683('0x2c')]=!0x0;else for(;_0x2b332a!=_0x2e87b0;)_0x168f62[_0x2b332a][_0x3683('0x34')]&&0x0!=_0x168f62[_0x2b332a][_0x3683('0x55')]&&(_0x168f62[_0x2b332a][_0x3683('0x2c')]=!0x0,_0x31123e[_0x3683('0x61')](_0x168f62[_0x2b332a]['pairId'])),_0x2b332a--;}}return _0x168f62[_0x3683('0xfe')](_0x11ba16=>!_0x11ba16[_0x3683('0x2c')]);}[_0x3683('0x6a')](_0x10025b){const _0x545c18=this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0xf2')];for(let _0x550f3e=0x0;_0x550f3e<_0x10025b[_0x3683('0xcd')];_0x550f3e++){if(!(_0x10025b[_0x550f3e][_0x3683('0x9f')]||_0x10025b[_0x550f3e]['isAddSuggestion']||_0x10025b[_0x550f3e][_0x3683('0x34')]||_0x10025b[_0x550f3e][_0x3683('0xfc')]))continue;if(0x0==_0x10025b[_0x550f3e][_0x3683('0x55')])continue;const _0x248bf9=_0x10025b[_0x550f3e][_0x3683('0x89')];_0x545c18[_0x3683('0x18')](_0x248bf9)||_0x545c18[_0x3683('0xdb')](_0x248bf9)||(_0x10025b[_0x550f3e][_0x3683('0x9f')]&&delete _0x10025b[_0x550f3e][_0x3683('0x9f')],_0x10025b[_0x550f3e][_0x3683('0xf3')]&&delete _0x10025b[_0x550f3e]['isAddSuggestion'],_0x10025b[_0x550f3e][_0x3683('0xfc')]&&delete _0x10025b[_0x550f3e][_0x3683('0xfc')],_0x10025b[_0x550f3e][_0x3683('0x34')]&&(_0x10025b[_0x550f3e]['isIncorrect']=!0x0));}return _0x10025b['filter'](_0x401cef=>!_0x401cef[_0x3683('0x2c')]);}[_0x3683('0x1b')](_0x40a524,_0x273a9a){const _0x4666b4=new _0x56c45c(),_0x1311d0=[],_0x413c08=new Map(),_0x5d8bcd=this[_0x3683('0xe9')][_0x3683('0xdc')],_0x3c698c=_0x5d8bcd['schema'],_0x5ce982=[_0x4666b4],_0x14993d={},_0x2541e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x304ac3=null;const _0x3b9ef9=[0x0];for(let _0x1278ea=0x0;_0x1278ea<_0x40a524[_0x3683('0xcd')];_0x1278ea++){let _0x1c0457,_0x4abc3a;if(_0x3683('0x65')===_0x40a524[_0x1278ea][_0x3683('0xa2')]){_0x1c0457=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9);const _0x46ee1d=new _0x1b2555(_0x40a524[_0x1278ea]['item']['name'],_0x40a524[_0x1278ea]['item'][_0x3683('0xfa')]());_0x5ce982[0x0][_0x3683('0x67')](_0x46ee1d),_0x3b9ef9[_0x3683('0x51')](0x0),_0x5ce982[_0x3683('0x8d')](_0x46ee1d),_0x4abc3a=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x304ac3=null;}else{if(_0x3683('0x3f')===_0x40a524[_0x1278ea][_0x3683('0xa2')])_0x5ce982[_0x3683('0xb3')](),_0x1c0457=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x3b9ef9[_0x3683('0x19')](),_0x3b9ef9[_0x3b9ef9[_0x3683('0xcd')]-0x1]++,_0x4abc3a=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x304ac3=null;else{if(_0x1c0457=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x304ac3&&_0x102ac3(_0x304ac3,_0x40a524[_0x1278ea][_0x3683('0x89')]))_0x304ac3[_0x3683('0x3a')]+=_0x40a524[_0x1278ea]['item'][_0x3683('0xa6')];else{const _0x3e2d09=new _0x2d360a(_0x40a524[_0x1278ea][_0x3683('0x89')]['data'],_0x40a524[_0x1278ea][_0x3683('0x89')][_0x3683('0xfa')]());_0x5ce982[0x0][_0x3683('0x67')](_0x3e2d09),_0x304ac3=_0x3e2d09;}_0x3b9ef9[_0x3b9ef9['length']-0x1]+=_0x40a524[_0x1278ea][_0x3683('0x89')][_0x3683('0x6f')],_0x4abc3a=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9);}}for(const _0x584f83 of _0x40a524[_0x1278ea][_0x3683('0xb9')])_0x413c08[_0x3683('0x9d')](_0x584f83,{'start':_0x1c0457,'end':null});_0x292202(_0x3683('0xfc'),_0x1278ea,_0x1c0457,_0x4abc3a),_0x292202('isAddSuggestion',_0x1278ea,_0x1c0457,_0x4abc3a),_0x292202(_0x3683('0x34'),_0x1278ea,_0x1c0457,_0x4abc3a),_0x292202(_0x3683('0x9f'),_0x1278ea,_0x1c0457,_0x4abc3a);for(const _0x4911d6 of _0x40a524[_0x1278ea][_0x3683('0xe4')]){_0x413c08['get'](_0x4911d6)[_0x3683('0xef')]=_0x4abc3a;}}for(const [_0x45759d,_0x202587]of _0x413c08){const _0xa535e7=this[_0x3683('0xe9')]['model'][_0x3683('0x106')](_0x202587[_0x3683('0x5a')],_0x202587[_0x3683('0xef')]);_0x4666b4[_0x3683('0x71')][_0x3683('0x9d')](_0x45759d,_0xa535e7);}return _0x1311d0['sort']((_0x395a35,_0x2b283a)=>{const _0xb2b40b=_0x4666b4['markers']['get'](_0x3683('0xcb')+_0x395a35['id']),_0x20a777=_0x4666b4[_0x3683('0x71')][_0x3683('0x72')](_0x3683('0xcb')+_0x2b283a['id']);return _0xb2b40b[_0x3683('0x5a')][_0x3683('0x92')](_0x20a777[_0x3683('0x5a')])?-0x1:_0xb2b40b[_0x3683('0x5a')][_0x3683('0xc3')](_0x20a777[_0x3683('0x5a')])?0x1:_0xb2b40b[_0x3683('0xef')]['isBefore'](_0x20a777[_0x3683('0xef')])?-0x1:_0xb2b40b[_0x3683('0xef')][_0x3683('0xc3')](_0x20a777[_0x3683('0xef')])?0x1:_0x3683('0x61')===_0x395a35[_0x3683('0xa2')]?-0x1:0x1;}),{'root':_0x4666b4,'changes':_0x1311d0};function _0x292202(_0x8be7d0,_0x37edb4,_0xbace78,_0x5ddc59){const _0xd3cfc3=!!_0x40a524[_0x37edb4][_0x8be7d0],_0x4785be=_0xd3cfc3?_0x40a524[_0x37edb4][_0x8be7d0]['userId']:null,_0x13599a=_0x37edb4===_0x40a524[_0x3683('0xcd')]-0x1,_0x5c9864=_0x2541e4[_0x8be7d0][0x0],_0x8ff0c4=_0x3c698c[_0x3683('0x102')](_0x40a524[_0x37edb4]['item']);!_0x14993d[_0x8be7d0]&&_0xd3cfc3?_0x14993d[_0x8be7d0]={'start':_0xbace78,'tapeItem':_0x40a524[_0x37edb4],'userId':_0x4785be,'type':_0x8be7d0}:_0x14993d[_0x8be7d0]&&!_0xd3cfc3?(_0x14993d[_0x8be7d0][_0x3683('0xef')]=_0xbace78,_0x1e1159(_0x14993d[_0x8be7d0]),_0x14993d[_0x8be7d0]=null):_0x14993d[_0x8be7d0]&&_0xd3cfc3&&_0x14993d[_0x8be7d0][_0x3683('0x87')]!==_0x4785be&&(_0x14993d[_0x8be7d0][_0x3683('0xef')]=_0xbace78,_0x5c9864&&_0x5c9864[_0x3683('0x87')]===_0x14993d[_0x8be7d0]['userId']||_0x1e1159(_0x14993d[_0x8be7d0]),_0x14993d[_0x8be7d0]={'start':_0xbace78,'tapeItem':_0x40a524[_0x37edb4],'userId':_0x4785be,'type':_0x8be7d0}),_0x14993d[_0x8be7d0]&&_0x8ff0c4&&(_0x3683('0x65')!==_0x40a524[_0x37edb4][_0x3683('0xa2')]||_0x5c9864&&_0x5c9864[_0x3683('0x87')]===_0x4785be||_0x2541e4[_0x8be7d0][_0x3683('0x8d')]({'userId':_0x4785be,'object':_0x40a524[_0x37edb4][_0x3683('0x89')],'change':_0x14993d[_0x8be7d0]}),_0x3683('0x3f')===_0x40a524[_0x37edb4][_0x3683('0xa2')]&&_0x5c9864&&_0x5c9864[_0x3683('0x12')]===_0x40a524[_0x37edb4][_0x3683('0x89')]&&(_0x2541e4[_0x8be7d0][_0x3683('0xb3')](),_0x14993d[_0x8be7d0]=_0x5c9864[_0x3683('0x6c')])),_0x14993d[_0x8be7d0]&&_0x13599a&&(_0x14993d[_0x8be7d0]['end']=_0x5ddc59,_0x1e1159(_0x14993d[_0x8be7d0]),_0x14993d[_0x8be7d0]=null);}function _0x1e1159({start:_0x39a6bf,end:_0x10c47d,tapeItem:_0x332ba7,userId:_0x39b800,type:_0x2e86fb}){const _0x2e5dac=_0x332ba7['item'],_0x343f1a=_0x5d8bcd[_0x3683('0xf2')][_0x3683('0x18')](_0x2e5dac)&&!_0x5d8bcd[_0x3683('0xf2')][_0x3683('0xdb')](_0x2e5dac),_0x3ab5d7=_0x39a6bf[_0x3683('0xba')]==_0x10c47d['parent']&&_0x10c47d[_0x3683('0x1f')];if(_0x343f1a&&_0x3ab5d7)return;const _0x1050d7=_0x5d8bcd[_0x3683('0x106')](_0x39a6bf,_0x10c47d),_0x145835=_0x273a9a[_0x3683('0x72')](_0x39b800),_0x405338=new _0x2f83f8({'author':_0x145835,'type':_0x3683('0x9f')==_0x2e86fb||_0x3683('0xf3')==_0x2e86fb?_0x3683('0x61'):_0x3683('0x16'),'data':{'isSuggestion':_0x3683('0xf3')==_0x2e86fb||_0x3683('0xfc')==_0x2e86fb},'createdAt':new Date()});_0x1311d0[_0x3683('0x51')](_0x405338),_0x4666b4[_0x3683('0x71')]['set'](_0x3683('0xcb')+_0x405338['id'],_0x1050d7);}function _0x102ac3(_0x1e93c4,_0x5c1bc0){const _0x5b48cf=_0x1e93c4['getAttributes'](),_0x34af67=_0x5c1bc0['getAttributes']();for(const _0x1b9948 of _0x5b48cf){if(_0x1b9948[0x1]!==_0x5c1bc0[_0x3683('0x44')](_0x1b9948[0x0]))return!0x1;_0x34af67[_0x3683('0x82')]();}return _0x34af67[_0x3683('0x82')]()[_0x3683('0xb2')];}}[_0x3683('0x6')](){this['editor'][_0x3683('0x8b')][_0x3683('0x8f')]('upcast')[_0x3683('0xd')]({'view':'revision'}),this['editor'][_0x3683('0x8b')]['for'](_0x3683('0x6b'))[_0x3683('0x1c')]({'model':_0x3683('0x2a'),'view':_0x177a55=>{const _0x4a1ac3=_0x177a55['markerName'][_0x3683('0xcc')](':')[0x1],_0x4a1dd6=this[_0x3683('0x73')](_0x4a1ac3);if(!_0x4a1dd6)return null;const _0x225418=_0x3683('0x61')==_0x4a1dd6[_0x3683('0xa2')]?_0x3683('0x10a'):_0x3683('0x80'),_0x421d34=['ck-suggestion-marker','ck-suggestion-marker-'+_0x225418];return _0x4a1dd6[_0x3683('0xa6')][_0x3683('0xa7')]&&_0x421d34[_0x3683('0x51')]('ck-suggestion-marker-'+_0x225418+_0x3683('0x7c')),this[_0x3683('0x83')]==_0x4a1dd6&&_0x421d34[_0x3683('0x51')]('ck-suggestion-marker--active'),{'classes':_0x421d34,'attributes':{'data-change-id':_0x4a1ac3}};}}),this['editor']['conversion'][_0x3683('0x8f')]('upcast')['add'](_0x52f7b7=>{_0x52f7b7['on']('element:pre',(_0x58565d,_0x5e33a5,_0x5994e8)=>{const _0x3dc1a7=_0x5e33a5[_0x3683('0x96')][_0x3683('0x8c')](0x0);if(!_0x3dc1a7||!_0x3dc1a7['is'](_0x3683('0xe7'),_0x3683('0x43')))return;if(!_0x5994e8[_0x3683('0x7a')][_0x3683('0x52')](_0x3dc1a7,{'attributes':[_0x3683('0x40'),'vid_end']}))return;const _0x29b02b=_0x5e33a5[_0x3683('0xc1')][_0x3683('0x5a')][_0x3683('0xba')];_0x5994e8[_0x3683('0x7f')][_0x3683('0x3d')](_0x3683('0x40'),_0x3dc1a7[_0x3683('0x44')](_0x3683('0x40')),_0x29b02b),_0x5994e8[_0x3683('0x7f')]['setAttribute'](_0x3683('0x35'),_0x3dc1a7[_0x3683('0x44')](_0x3683('0x35')),_0x29b02b);},{'priority':_0x3683('0xca')});}),this[_0x3683('0xe9')]['conversion'][_0x3683('0x8f')]('upcast')[_0x3683('0x61')](_0x362c6a=>{_0x362c6a['on'](_0x3683('0xe7'),(_0x42c1bb,_0x6a5f62,_0x68139b)=>{if(!_0x68139b[_0x3683('0x7a')][_0x3683('0x52')](_0x6a5f62['viewItem'],{'attributes':['vid_start',_0x3683('0x35')]}))return;if(_0x6a5f62[_0x3683('0xc1')]['isCollapsed'])return;const _0x218a74=_0x6a5f62[_0x3683('0xc1')][_0x3683('0x5a')][_0x3683('0xba')];_0x218a74[_0x3683('0x15')]('vid_start')||_0x218a74[_0x3683('0x15')](_0x3683('0x84'))||(_0x68139b[_0x3683('0x7f')][_0x3683('0x3d')]('vid_start',_0x6a5f62[_0x3683('0x96')][_0x3683('0x44')](_0x3683('0x40')),_0x218a74),_0x68139b[_0x3683('0x7f')][_0x3683('0x3d')](_0x3683('0x35'),_0x6a5f62[_0x3683('0x96')][_0x3683('0x44')](_0x3683('0x35')),_0x218a74));},{'priority':_0x3683('0xca')});}),this[_0x3683('0xe9')][_0x3683('0x8b')][_0x3683('0x8f')](_0x3683('0x95'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x3683('0x84'),'value':_0x5d4c1f=>_0x5d4c1f[_0x3683('0x44')](_0x3683('0x84'))}}),this['editor'][_0x3683('0xdc')][_0x3683('0xf2')]['on']('checkAttribute',(_0x48096d,[,_0x6fcbaa])=>{['vid_start',_0x3683('0x35'),'vid'][_0x3683('0x4b')](_0x6fcbaa)&&(_0x48096d['return']=!0x0,_0x48096d[_0x3683('0xed')]());},{'priority':_0x3683('0xd6')}),this[_0x3683('0xe9')][_0x3683('0x8b')][_0x3683('0x8f')](_0x3683('0xae'))[_0x3683('0x61')](_0x3da628=>{_0x3da628['on'](_0x3683('0x57'),(_0x516307,_0x21b457,_0x1f2ed9)=>{if('\x20'!=_0x21b457['item']['data']||_0x21b457[_0x3683('0x89')][_0x3683('0xc0')][_0x3683('0x6d')]>0x1)return;if(!_0x1f2ed9[_0x3683('0x7a')]['consume'](_0x21b457[_0x3683('0x89')],_0x516307[_0x3683('0x22')]))return;const _0x55711a=_0x1f2ed9[_0x3683('0x7f')],_0x2654bb=_0x1f2ed9[_0x3683('0xf8')][_0x3683('0xe6')](_0x21b457[_0x3683('0xc')]);_0x55711a[_0x3683('0xde')](_0x2654bb,_0x55711a['createAttributeElement'](_0x3683('0x33')));});}),this['editor']['conversion']['for'](_0x3683('0xae'))[_0x3683('0x98')]({'model':'revision'}),this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0xd5'),function(_0x3aec6b){const _0x34728e=_0x3aec6b[_0x3683('0x14')][_0x3683('0x72')](_0x3683('0x21'));return(_0x14b803,_0xd71433,_0x506afe)=>{const _0x3415ce=_0xd71433[_0x3683('0x5')]['split'](':')[0x1],_0x360a2e=_0x34728e['_getChangeFromId'](_0x3415ce);if(!_0x360a2e)return null;const _0x27fec9=_0x3683('0x61')==_0x360a2e['type']?_0x3683('0xcc'):_0x3683('0xbe');if(!_0x506afe['consumable'][_0x3683('0x2e')](_0xd71433[_0x3683('0x9')],_0x14b803[_0x3683('0x22')]))return;const _0x94c8f6=_0xd71433[_0x3683('0x9')][_0x3683('0x1e')](),_0x375c38=_0xd71433['markerRange'][_0x3683('0x5a')],_0x304f3e=_0x3aec6b[_0x3683('0xdc')][_0x3683('0xf2')];let _0x332eb6=null,_0x3eef90=null,_0x5a51c3=!0x1,_0x122839=!0x1;for(const _0x110c5c of _0x94c8f6){const _0x244735=_0x110c5c[_0x3683('0x89')];_0x5a51c3=_0x5a51c3||_0x304f3e['isContent'](_0x244735);const _0x219fd3=_0x506afe[_0x3683('0xf8')][_0x3683('0xea')](_0x244735);if(_0x219fd3&&_0x219fd3[_0x3683('0xd8')](_0x3683('0xf')))return;_0x3683('0x3f')==_0x110c5c[_0x3683('0xa2')]&&(_0x304f3e['isBlock'](_0x244735)&&!_0x304f3e[_0x3683('0xdb')](_0x244735)&&(_0x244735[_0x3683('0x25')]||_0x375c38[_0x3683('0x8e')]?_0x332eb6&&_0x332eb6[_0x3683('0xc0')]==_0x244735||(_0x332eb6=_0x244735,_0x26fb17(_0x110c5c[_0x3683('0xbd')]),_0x122839=!0x0):_0x3eef90=_0x3eef90||_0x110c5c['previousPosition']));}function _0x26fb17(_0x473c6d){const _0x126fdb=_0x506afe['writer']['createUIElement'](_0x3683('0x33'),{'class':_0x3683('0x38')+_0x27fec9}),_0x3eaec7=_0x506afe[_0x3683('0xf8')][_0x3683('0x31')](_0x473c6d);_0x360a2e[_0x3683('0xa6')][_0x3683('0xa7')]&&_0x506afe[_0x3683('0x7f')][_0x3683('0xc2')](_0x3683('0x38')+_0x27fec9+'-new',_0x126fdb),_0x34728e[_0x3683('0x83')]==_0x360a2e&&_0x506afe[_0x3683('0x7f')][_0x3683('0xc2')]('ck-suggestion-marker--active',_0x126fdb),_0x506afe[_0x3683('0x7f')][_0x3683('0xd9')](_0x3eaec7,_0x126fdb),_0x506afe['mapper']['bindElementToMarker'](_0x126fdb,_0xd71433['markerName']);}_0x5a51c3||_0x122839||!_0x3eef90||_0x26fb17(_0x3eef90);};}(this['editor']),{'priority':_0x3683('0xfb')}),this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0x6e'),(_0xe40d3b,_0x26a7f3,_0x54d99e)=>{const _0x4fb57e=_0x54d99e[_0x3683('0xf8')][_0x3683('0xbb')](_0x26a7f3['markerName']);if(_0x4fb57e)for(const _0x529519 of _0x4fb57e)(_0x529519['hasClass']('ck-suggestion-marker-split')||_0x529519[_0x3683('0xf7')](_0x3683('0x4e')))&&(_0x54d99e[_0x3683('0xf8')][_0x3683('0x11')](_0x529519,_0x26a7f3['markerName']),_0x54d99e[_0x3683('0x7f')][_0x3683('0x16')](_0x529519));},{'priority':'high'}),this['editor'][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0xd5'),(_0x354b33,_0x1f0aa1,_0x248c47)=>{const _0x44969e=_0x1f0aa1[_0x3683('0x5')][_0x3683('0xcc')](':')[0x1],_0x40bde0=this[_0x3683('0x73')](_0x44969e);if(!_0x40bde0)return null;const _0xfe19f0=_0x3683('0x61')==_0x40bde0[_0x3683('0xa2')]?_0x3683('0xcc'):_0x3683('0xbe');if(_0x248c47[_0x3683('0x7a')][_0x3683('0x2e')](_0x1f0aa1[_0x3683('0x9')],_0x354b33[_0x3683('0x22')]))for(const _0x10ec00 of _0x1f0aa1['markerRange'][_0x3683('0xe5')]()){if(!_0x10ec00['is'](_0x3683('0xe7'),_0x3683('0x8a')))continue;const _0x23a999=_0x248c47[_0x3683('0x7f')][_0x3683('0xff')](_0x3683('0x33'),{'class':_0x3683('0x38')+_0xfe19f0}),_0x475cd5=_0x248c47[_0x3683('0xf8')]['toViewPosition'](this[_0x3683('0xe9')]['model'][_0x3683('0xc9')](_0x10ec00));_0x40bde0[_0x3683('0xa6')][_0x3683('0xa7')]&&_0x248c47['writer'][_0x3683('0xc2')]('ck-suggestion-marker-'+_0xfe19f0+'-new',_0x23a999),this[_0x3683('0x83')]==_0x40bde0&&_0x248c47[_0x3683('0x7f')]['addClass'](_0x3683('0x2'),_0x23a999),_0x248c47[_0x3683('0x7f')][_0x3683('0xd9')](_0x475cd5,_0x23a999),_0x248c47['mapper'][_0x3683('0x39')](_0x23a999,_0x1f0aa1['markerName']);}},{'priority':'high'}),this['editor'][_0x3683('0x8b')][_0x3683('0x8f')](_0x3683('0x95'))[_0x3683('0xd')]({'view':_0x3683('0x5f')}),this[_0x3683('0xe9')][_0x3683('0x8b')]['for'](_0x3683('0xae'))[_0x3683('0x98')]({'model':_0x3683('0x5f')}),this[_0x3683('0xe9')]['conversion']['for'](_0x3683('0x6b'))['markerToHighlight']({'model':'suggestion','view':_0x40097c=>{const _0x5296af=_0x40097c[_0x3683('0x5')]['split'](':')[0x1];return _0x3683('0x10a')!=_0x5296af&&'deletion'!=_0x5296af?null:{'classes':[_0x3683('0x86'),'ck-suggestion-preview-marker-'+_0x5296af]};}}),this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x48')]['on']('addMarker:suggestion:deletion',K(this[_0x3683('0xe9')],_0x3683('0xbe')),{'priority':_0x3683('0xfb')}),this[_0x3683('0xe9')]['editing'][_0x3683('0x48')]['on']('addMarker:suggestion:insertion',K(this['editor'],'split'),{'priority':_0x3683('0xfb')}),this['editor'][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0x23'),(_0x558302,_0x387825,_0x3fdecf)=>{const _0x523db2=_0x3fdecf['mapper'][_0x3683('0xbb')](_0x387825[_0x3683('0x5')]);if(_0x523db2)for(const _0x2e2159 of _0x523db2)_0x2e2159['is'](_0x3683('0x1'))&&(_0x3fdecf[_0x3683('0xf8')][_0x3683('0x11')](_0x2e2159,_0x387825[_0x3683('0x5')]),_0x3fdecf[_0x3683('0x7f')][_0x3683('0x16')](_0x2e2159));},{'priority':_0x3683('0xfb')});}[_0x3683('0x73')](_0x8e68c3){return this[_0x3683('0x109')]['get'](_0x8e68c3);}[_0x3683('0x4f')](_0x441255){this[_0x3683('0x9c')]&&this[_0x3683('0x9c')][_0x3683('0x41')](),this[_0x3683('0x9c')]=new _0x7a460(this[_0x3683('0xe9')][_0x3683('0xaa')],_0x441255);const _0x56f596=this[_0x3683('0xe9')][_0x3683('0xdc')]['markers'][_0x3683('0x72')](_0x3683('0xcb')+_0x441255['id']);return this[_0x3683('0x9c')][_0x3683('0x0')]=()=>_0x4b2ed6(this[_0x3683('0xe9')][_0x3683('0xc4')],_0x56f596),this[_0x3683('0x9c')];}[_0x3683('0x17')](){this[_0x3683('0xe9')]['model'][_0x3683('0x88')]['selection'][_0x3683('0x45')]('revision'),this['on'](_0x3683('0xc8'),(_0x47620c,_0x2ca591,_0x3c5253,_0x48e510)=>{_0x48e510&&this['_balloon']['remove'](_0x48e510),_0x3c5253&&(this[_0x3683('0xb1')][_0x3683('0x61')]({'view':_0x3c5253,'stackId':_0x3683('0xd3'),'position':{'target':_0x3c5253[_0x3683('0x0')]}}),this[_0x3683('0xb1')][_0x3683('0x4')]('revisionHistoryLabel'));}),this['on'](_0x3683('0xe'),(_0x2dd453,_0x4530b6,_0x20d662,_0x2ea6cb)=>{this[_0x3683('0x101')]=_0x20d662?this[_0x3683('0x4f')](_0x20d662):null,this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x6c')](()=>{const _0x148d71=this[_0x3683('0xe9')][_0x3683('0xc4')];_0x2ea6cb&&_0x148d71['reconvertMarker'](_0x3683('0xcb')+_0x2ea6cb['id']),_0x20d662&&_0x148d71[_0x3683('0x7d')](_0x3683('0xcb')+_0x20d662['id']);});}),this[_0x3683('0x47')](this['editor'][_0x3683('0xc4')][_0x3683('0x76')]['document'],'mouseover',(_0x419ea6,_0x5a4dd4)=>{if(this[_0x3683('0x83')])return;const _0x428793=this[_0x3683('0x70')](_0x5a4dd4[_0x3683('0x3c')]),_0x19d48f=this[_0x3683('0x109')][_0x3683('0x72')](_0x428793);this['activeView']=_0x19d48f?this[_0x3683('0x4f')](_0x19d48f):null;}),this[_0x3683('0x47')](this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')],_0x3683('0xb6'),(_0xb84a67,_0x5d4b59)=>{const _0x5beef2=this[_0x3683('0x70')](_0x5d4b59[_0x3683('0x3c')]),_0x37000f=this[_0x3683('0x109')]['get'](_0x5beef2);this[_0x3683('0x83')]=_0x37000f||null;});}['_findChangeIdFromDomTarget'](_0x13be24){do{const _0x278742=_0x13be24[_0x3683('0x44')](_0x3683('0x58'));if(_0x278742)return _0x278742;_0x13be24=_0x13be24[_0x3683('0xc0')];}while(_0x13be24);return null;}[_0x3683('0xb5')](){this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x6c')](_0x53912c=>{for(const _0x3c9f53 of this[_0x3683('0xe9')][_0x3683('0xdc')]['markers'])_0x53912c[_0x3683('0xeb')](_0x3c9f53);});}}function K(_0x4b4485,_0x40754f){return(_0x1ae7ba,_0x3d9bb7,_0x6011f8)=>{if(!_0x6011f8['consumable'][_0x3683('0x2e')](_0x3d9bb7[_0x3683('0x9')],_0x1ae7ba[_0x3683('0x22')]))return;const _0x4d28c2=_0x3d9bb7[_0x3683('0x9')][_0x3683('0x1e')](),_0x594711=_0x3d9bb7['markerRange'][_0x3683('0x5a')],_0x5af79a=_0x4b4485[_0x3683('0xdc')][_0x3683('0xf2')];let _0x56421f=null,_0x55314e=null,_0x4ff02b=!0x1,_0x3f2f8e=!0x1;for(const _0x4ebc9a of _0x4d28c2){const _0x511832=_0x4ebc9a[_0x3683('0x89')];_0x4ff02b=_0x4ff02b||_0x5af79a[_0x3683('0xa3')](_0x511832);const _0x302ed6=_0x6011f8['mapper']['toViewElement'](_0x511832);if(_0x302ed6&&_0x302ed6[_0x3683('0xd8')](_0x3683('0xf')))return;_0x3683('0x3f')==_0x4ebc9a[_0x3683('0xa2')]&&(_0x5af79a[_0x3683('0x18')](_0x511832)&&!_0x5af79a['isLimit'](_0x511832)&&(_0x511832[_0x3683('0x25')]||_0x594711['isAtEnd']?_0x56421f&&_0x56421f[_0x3683('0xc0')]==_0x511832||(_0x56421f=_0x511832,_0x5c60ba(_0x4ebc9a[_0x3683('0xbd')]),_0x3f2f8e=!0x0):_0x55314e=_0x55314e||_0x4ebc9a[_0x3683('0xbd')]));}function _0x5c60ba(_0x1702d8){const _0x3a683f=_0x6011f8[_0x3683('0xf8')][_0x3683('0x31')](_0x1702d8),_0x283d48=_0x6011f8[_0x3683('0x7f')][_0x3683('0xff')](_0x3683('0x33'),{'class':_0x3683('0xf9')+_0x40754f});_0x6011f8[_0x3683('0x7f')][_0x3683('0xd9')](_0x3a683f,_0x283d48),_0x6011f8['mapper'][_0x3683('0x39')](_0x283d48,_0x3d9bb7[_0x3683('0x5')]);}_0x4ff02b||_0x3f2f8e||!_0x55314e||_0x5c60ba(_0x55314e);};}_0xa2a605(d,_0x47cfb5);class Q extends _0x4aaa93{constructor(_0x2b9bc4){super(_0x2b9bc4);const _0x21abc1=_0x2b9bc4['plugins'][_0x3683('0x72')](d);this[_0x3683('0x5b')](_0x2b9bc4,_0x3683('0x100')),this[_0x3683('0xe8')](_0x3683('0x24')),this[_0x3683('0x47')](_0x21abc1,_0x3683('0xa4'),()=>this[_0x3683('0x4a')]()),this[_0x3683('0x47')](_0x21abc1,_0x3683('0xf0'),()=>this[_0x3683('0x4a')]());}[_0x3683('0x94')](){const _0x196315=this[_0x3683('0xe9')],_0x1c9943=_0x196315[_0x3683('0x14')][_0x3683('0x72')](d),_0x433008=_0x1c9943[_0x3683('0x7e')]?_0x1c9943[_0x3683('0x78')][_0x3683('0xaf')]:null;_0x196315[_0x3683('0x50')][_0x3683('0x72')](_0x3683('0xda'))[_0x3683('0x28')](_0x433008);}['refresh'](){const {isReady:_0x5a5980,isEnabled:_0x3faf62}=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](d);this[_0x3683('0x3')]=_0x5a5980&&_0x3faf62;}}class X extends _0x4aaa93{constructor(_0x121317,{direction:_0x22e6ee}){super(_0x121317);const _0x2c8738=_0x121317[_0x3683('0x14')][_0x3683('0x72')](d);this[_0x3683('0x5b')](_0x121317,'change:isReadOnly'),this[_0x3683('0xe8')](_0x3683('0x24')),this[_0x3683('0x104')]=_0x3683('0xf6')===_0x22e6ee?0x1:-0x1,this['listenTo'](_0x2c8738,_0x3683('0xa4'),()=>this[_0x3683('0x4a')]()),this[_0x3683('0x47')](_0x2c8738,'change:isEnabled',()=>this[_0x3683('0x4a')]());}[_0x3683('0x94')](){const _0x21e7c2=this[_0x3683('0xe9')],_0x3e4f05=_0x21e7c2['plugins'][_0x3683('0x72')](d),{isNavigationMode:_0x18941e,currentChangeNumber:_0x449774}=_0x3e4f05;_0x3e4f05[_0x3683('0x83')]=_0x18941e?_0x3e4f05['diff'][_0x3683('0x4d')][_0x3683('0x72')](_0x449774+this[_0x3683('0x104')]):_0x3e4f05[_0x3683('0x78')][_0x3683('0x4d')][_0x3683('0xd2')];const _0x5ca238=_0x21e7c2[_0x3683('0xdc')][_0x3683('0x71')][_0x3683('0x72')](_0x3683('0xcb')+_0x3e4f05['activeChange']['id']),_0x5e92ce=_0x4b2ed6(_0x21e7c2[_0x3683('0xc4')],_0x5ca238);_0x2bf980({'target':_0x5e92ce,'viewportOffset':0x28});}[_0x3683('0x4a')](){const {isNavigationMode:_0x287565,currentChangeNumber:_0x17e3ab,numberOfChanges:_0x2a46f6,isReady:_0x1e8026,isEnabled:_0x1846b4}=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](d);this[_0x3683('0x3')]=!!(_0x1846b4&&_0x1e8026&&_0x2a46f6)&&(!_0x287565||(0x1===this['_step']?_0x17e3ab<_0x2a46f6-0x1:_0x17e3ab>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Collection as _0x549127}from'ckeditor5/src/utils';import{Model as _0x35f26,addListToDropdown as to,createDropdown as _0x1a9250}from'ckeditor5/src/ui';import _0x505f2a from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1ee8d3,_0x2fcdf3){const _0x2c3e6b=_0x1ee8d3['bindTemplate'],_0x129e9e=_0x1ee8d3['locale'],t=_0x129e9e['t'],_0x267083=_0x1a9250(_0x129e9e);_0x267083['panelPosition']='sw';const _0x19ac3d=function(_0x16daa2,_0x466fb3){const _0x5a08c0=function(_0x24648c,_0x40f33a){const t=_0x24648c['locale']['t'],_0x3f7345={'Compare\x20against\x20selected':t('Compare\x20against\x20selected'),'Name\x20this\x20revision':t('Name\x20this\x20revision'),'Restore\x20this\x20revision':t('Restore\x20this\x20revision')};return _0x40f33a['map'](_0x27f2b5=>{const _0x253058=_0x3f7345[_0x27f2b5['name']];return _0x253058&&_0x253058!==_0x27f2b5['name']&&(_0x27f2b5['name']=_0x253058),_0x27f2b5;});}(_0x16daa2,_0x466fb3),_0x5817b3=new _0x549127();for(const _0x20285e of _0x5a08c0){const _0x59474b={'type':'button','model':new _0x35f26({'label':_0x20285e['name'],'class':_0x20285e['class'],'withText':!0x0,'_action':_0x20285e['action']})};_0x59474b['model']['bind']('isVisible')['to'](_0x16daa2,'isActionsDropdownOpen',_0x429bee=>'function'!=typeof _0x20285e['isVisible']||(!_0x429bee||_0x20285e['isVisible'](_0x16daa2))),_0x59474b['model']['bind']('isEnabled')['to'](_0x16daa2,'isActionsDropdownOpen',_0xfec967=>'function'!=typeof _0x20285e['isEnabled']||(!_0xfec967||_0x20285e['isEnabled'](_0x16daa2))),_0x5817b3['add'](_0x59474b);}return _0x5817b3;}(_0x1ee8d3,_0x2fcdf3);return _0x1ee8d3['bind']('isActionsDropdownOpen')['to'](_0x267083,'isOpen'),_0x267083['buttonView']['set']({'label':t('Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x505f2a}),_0x267083['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2c3e6b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2c3e6b['to'](_0x20b2bd=>_0x20b2bd['stopPropagation']())}}),_0x267083['on']('execute',_0xeea316=>{_0x1ee8d3['isReady']&&'function'==typeof _0xeea316['source']['_action']&&_0xeea316['source']['_action'](_0x1ee8d3);}),to(_0x267083,_0x19ac3d),_0x267083;}
23
+ const _0x10c1=['ck-revision-history-sidebar__revision__actions','_action','isVisible','source','isActionsDropdownOpen','isEnabled','name','class','isReady','Show\x20more\x20items','isOpen','bind','stopPropagation','set','Restore\x20this\x20revision','map','Name\x20this\x20revision','model','ck-on','locale','button','function'];(function(_0x566bb0,_0x10c18a){const _0x1a76bd=function(_0x46ebaf){while(--_0x46ebaf){_0x566bb0['push'](_0x566bb0['shift']());}};_0x1a76bd(++_0x10c18a);}(_0x10c1,0x1cf));const _0x1a76=function(_0x566bb0,_0x10c18a){_0x566bb0=_0x566bb0-0x0;let _0x1a76bd=_0x10c1[_0x566bb0];return _0x1a76bd;};import{Collection as _0x4cbe89}from'ckeditor5/src/utils';import{Model as _0x3d24c4,addListToDropdown as _0x5d0791,createDropdown as _0x4db876}from'ckeditor5/src/ui';import{getTranslation as _0x1f1610}from'../../utils/common-translations';import _0x174df2 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x55897f,_0x46eb2e){const _0x46e303=_0x55897f['bindTemplate'],_0x782ac5=_0x55897f['locale'],_0xae4237=_0x4db876(_0x782ac5);_0xae4237['panelPosition']='sw';const _0x11740c=function(_0x1e99a8,_0x5ec687){const _0x1f1032=function(_0x303e9a,_0x2b3b6f){const _0xedb3a7=_0x303e9a[_0x1a76('0x12')],_0x1f3de2={'Compare\x20against\x20selected':_0x1f1610(_0xedb3a7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x1f1610(_0xedb3a7,_0x1a76('0xf')),'Restore\x20this\x20revision':_0x1f1610(_0xedb3a7,_0x1a76('0xd'))};return _0x2b3b6f[_0x1a76('0xe')](_0x4e2ebc=>{const _0x13b224=_0x1f3de2[_0x4e2ebc[_0x1a76('0x5')]];return _0x13b224&&_0x13b224!==_0x4e2ebc['name']&&(_0x4e2ebc['name']=_0x13b224),_0x4e2ebc;});}(_0x1e99a8,_0x5ec687),_0x89a828=new _0x4cbe89();for(const _0x5dcfa8 of _0x1f1032){const _0x236bc8={'type':_0x1a76('0x13'),'model':new _0x3d24c4({'label':_0x5dcfa8[_0x1a76('0x5')],'class':_0x5dcfa8[_0x1a76('0x6')],'withText':!0x0,'_action':_0x5dcfa8['action']})};_0x236bc8[_0x1a76('0x10')][_0x1a76('0xa')](_0x1a76('0x1'))['to'](_0x1e99a8,_0x1a76('0x3'),_0x1ea797=>_0x1a76('0x14')!=typeof _0x5dcfa8[_0x1a76('0x1')]||(!_0x1ea797||_0x5dcfa8[_0x1a76('0x1')](_0x1e99a8))),_0x236bc8[_0x1a76('0x10')][_0x1a76('0xa')](_0x1a76('0x4'))['to'](_0x1e99a8,_0x1a76('0x3'),_0x1fe634=>_0x1a76('0x14')!=typeof _0x5dcfa8[_0x1a76('0x4')]||(!_0x1fe634||_0x5dcfa8[_0x1a76('0x4')](_0x1e99a8))),_0x89a828['add'](_0x236bc8);}return _0x89a828;}(_0x55897f,_0x46eb2e);return _0x55897f[_0x1a76('0xa')]('isActionsDropdownOpen')['to'](_0xae4237,_0x1a76('0x9')),_0xae4237['buttonView'][_0x1a76('0xc')]({'label':_0x1f1610(_0x782ac5,_0x1a76('0x8')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x174df2}),_0xae4237['extendTemplate']({'attributes':{'class':[_0x1a76('0x15'),_0x46e303['if']('isActionsDropdownOpen',_0x1a76('0x11'))]},'on':{'click':_0x46e303['to'](_0x2f0d41=>_0x2f0d41[_0x1a76('0xb')]())}}),_0xae4237['on']('execute',_0x5517aa=>{_0x55897f[_0x1a76('0x7')]&&_0x1a76('0x14')==typeof _0x5517aa[_0x1a76('0x2')][_0x1a76('0x0')]&&_0x5517aa[_0x1a76('0x2')][_0x1a76('0x0')](_0x55897f);}),_0x5d0791(_0xae4237,_0x11740c),_0xae4237;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x25ddf1,IconView as _0x594048}from'ckeditor5/src/ui';import _0x2df5c2 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x25ddf1{constructor(_0x55bdf5,_0x2d52a2,_0xfb0cd9){super(_0x55bdf5);const t=_0x55bdf5['t'],_0x4f3886=new _0x594048(_0x55bdf5);_0x4f3886['set']({'content':_0x2df5c2,'viewBox':'0\x200\x2011\x2010'});const _0x47b3f5=['ck','ck-revision-history-sidebar__revision-author'];_0xfb0cd9&&_0x47b3f5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x49e71f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':t(_0xfb0cd9?'Revision\x20creator':'Revision\x20author')},'children':[_0x4f3886,_0x2d52a2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x47b3f5},'children':_0x49e71f});}}
23
+ const _0x131f=['ck-revision-history-sidebar__revision-author__name','setTemplate','0\x200\x2011\x2010','push','span','Revision\x20author','ck-revision-history-sidebar__revision-author','name'];(function(_0x16888b,_0x131fe9){const _0x59f1a8=function(_0x59147e){while(--_0x59147e){_0x16888b['push'](_0x16888b['shift']());}};_0x59f1a8(++_0x131fe9);}(_0x131f,0xc2));const _0x59f1=function(_0x16888b,_0x131fe9){_0x16888b=_0x16888b-0x0;let _0x59f1a8=_0x131f[_0x16888b];return _0x59f1a8;};import{View as _0x32c4d5,IconView as _0x20ac50}from'ckeditor5/src/ui';import{getTranslation as _0xa8cb9c}from'../../utils/common-translations';import _0xd1b324 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x32c4d5{constructor(_0x4bfc2f,_0x372a36,_0x5e9575){super(_0x4bfc2f);const _0x5d9974=new _0x20ac50(_0x4bfc2f);_0x5d9974['set']({'content':_0xd1b324,'viewBox':_0x59f1('0x0')});const _0x97212c=['ck',_0x59f1('0x4')];_0x5e9575&&_0x97212c[_0x59f1('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x25b408=[{'tag':_0x59f1('0x2'),'attributes':{'class':['ck',_0x59f1('0x6')],'title':_0xa8cb9c(_0x4bfc2f,_0x5e9575?'Revision\x20creator':_0x59f1('0x3'))},'children':[_0x5d9974,_0x372a36[_0x59f1('0x5')]]}];this[_0x59f1('0x7')]({'tag':'li','attributes':{'class':_0x97212c},'children':_0x25b408});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{LabeledFieldView as _0x42b6e8}from'ckeditor5/src/ui';import'../../../theme/revision/revisionname.css';export default class os extends _0x42b6e8{constructor(..._0x1c7ce3){super(..._0x1c7ce3);const t=this['t'];this['set']({'label':t('Revision\x20name')}),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x1b26=['span','set','ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name'];(function(_0x2c119a,_0x1b2607){var _0x5b74c9=function(_0x21f624){while(--_0x21f624){_0x2c119a['push'](_0x2c119a['shift']());}};_0x5b74c9(++_0x1b2607);}(_0x1b26,0x11d));var _0x5b74=function(_0x2c119a,_0x1b2607){_0x2c119a=_0x2c119a-0x0;var _0x5b74c9=_0x1b26[_0x2c119a];return _0x5b74c9;};import{LabeledFieldView as _0x1dd370}from'ckeditor5/src/ui';import{getTranslation as _0x2f3cfd}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x1dd370{constructor(_0xc92925,..._0x3bdefa){super(_0xc92925,..._0x3bdefa),this[_0x5b74('0x1')]({'label':_0x2f3cfd(_0xc92925,_0x5b74('0x4'))}),this[_0x5b74('0x3')]({'tag':_0x5b74('0x0'),'attributes':{'class':[_0x5b74('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5042=['div','ck-disabled','ck-revision-history-sidebar__revision__controls-wrapper','set','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision','unhighlight','element','deselect','select','change','bindTemplate','bind','revisionNameView','render','creator','fire','ck-reset','from','isEnabled','fieldView','ck-revision-history-sidebar__revision-authors','revisionActionsView','highlight','length','isConfirm','isSelected','unshift','createdAt','_revision','uiLanguage','value','setTemplate','ck-revision-history-sidebar__revision_selected','filter','span','srcElement','isActionsDropdownOpen','ck-revision-history-sidebar__revision_highlighted','isHighlighted','isReady','authors','_createdAtFormatted','map'];(function(_0x117bb7,_0x50420a){const _0x35f7d2=function(_0x30265a){while(--_0x30265a){_0x117bb7['push'](_0x117bb7['shift']());}};_0x35f7d2(++_0x50420a);}(_0x5042,0x68));const _0x35f7=function(_0x117bb7,_0x50420a){_0x117bb7=_0x117bb7-0x0;let _0x35f7d2=_0x5042[_0x117bb7];return _0x35f7d2;};import{View as _0x37d25b,createLabeledInputText as _0x45e2b3}from'ckeditor5/src/ui';import{mix as _0x47d45f}from'ckeditor5/src/utils';import{ConfirmMixin as _0x18b7f3}from'ckeditor5-collaboration/src/collaboration-core';import _0x30b6ca from'./revisionnameview';import _0x34b476 from'./revisionauthorview';import{dateToPrettyFormat as _0x5aca7e}from'./utils';import{createActionsDropdownView as _0x3fd4e7}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x37d25b{constructor(_0x3169fc,_0x1641af,_0x373111){super(_0x3169fc);const _0x275424=this[_0x35f7('0x2b')],_0x1f7198=function(_0x4f66d1,_0x40e3dd){const _0x52f5f4=Array[_0x35f7('0x5')](_0x40e3dd[_0x35f7('0x1c')])[_0x35f7('0x15')](_0x13fa59=>_0x13fa59!=_0x40e3dd[_0x35f7('0x2')]);return _0x40e3dd[_0x35f7('0x2')]&&_0x52f5f4[_0x35f7('0xe')](_0x40e3dd['creator']),_0x52f5f4[_0x35f7('0x1e')](_0x53ccad=>new _0x34b476(_0x4f66d1,_0x53ccad,_0x53ccad==_0x40e3dd[_0x35f7('0x2')]));}(_0x3169fc,_0x1641af);this[_0x35f7('0x10')]=_0x1641af,this['id']=_0x1641af['id'],this[_0x35f7('0x2c')]('name',_0x35f7('0xf'))['to'](_0x1641af),this[_0x35f7('0x22')](_0x35f7('0xd'),!0x1),this['set'](_0x35f7('0x1a'),!0x1),this[_0x35f7('0x22')]('isActionsDropdownOpen',!0x1),this['set'](_0x35f7('0x1b'),!0x1),this[_0x35f7('0x2c')](_0x35f7('0x1d'))['to'](this,_0x35f7('0xf'),_0x2aca2a=>_0x2aca2a?_0x5aca7e(_0x3169fc[_0x35f7('0x11')],_0x2aca2a):null),this['set'](_0x35f7('0x6'),!0x1),this[_0x35f7('0x0')]=new _0x30b6ca(_0x3169fc,_0x45e2b3),this[_0x35f7('0x0')][_0x35f7('0x7')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x35f7('0x0')][_0x35f7('0x7')][_0x35f7('0x2c')]('value','placeholder')['to'](this,'name',_0x35f7('0x1d')),this[_0x35f7('0x0')][_0x35f7('0x2c')](_0x35f7('0x6'))['to'](this,'isSelected',this,_0x35f7('0x6'),(_0x3427c9,_0x341528)=>_0x3427c9&&_0x341528),this['revisionActionsView']=_0x373111&&_0x373111[_0x35f7('0xb')]?_0x3fd4e7(this,_0x373111):'',this[_0x35f7('0x9')][_0x35f7('0x2c')](_0x35f7('0x6'))['to'](this),this[_0x35f7('0x13')]({'tag':_0x35f7('0x1f'),'attributes':{'class':['ck',_0x35f7('0x4'),'ck-revision-history-sidebar__revision-wrapper',_0x275424['if'](_0x35f7('0xc'),_0x35f7('0x24'))]},'children':[{'tag':_0x35f7('0x1f'),'attributes':{'class':['ck',_0x35f7('0x4'),_0x35f7('0x25'),_0x275424['if'](_0x35f7('0x6'),_0x35f7('0x20'),_0x128375=>!_0x128375),_0x275424['if'](_0x35f7('0xd'),_0x35f7('0x14')),_0x275424['if'](_0x35f7('0x1a'),_0x35f7('0x19')),_0x275424['if'](_0x35f7('0x18'),_0x35f7('0x23'))]},'children':[this[_0x35f7('0x0')],{'tag':_0x35f7('0x16'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x275424['to'](_0x35f7('0x1d'))}]},{'tag':_0x35f7('0x1f'),'attributes':{'class':['ck',_0x35f7('0x21')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x35f7('0x8')]},'children':_0x1f7198}]},this[_0x35f7('0x9')]],'on':{'click':_0x275424['to'](_0x35211a=>{_0x35211a[_0x35f7('0x17')]['closest']('.ck-thread__remove-confirm')||this[_0x35f7('0x1b')]&&this[_0x35f7('0x6')]&&this[_0x35f7('0x3')](_0x35f7('0x29'),{'id':this['id']});})}}]});}[_0x35f7('0x1')](){super[_0x35f7('0x1')]();const _0x5cf63a=this['revisionNameView'][_0x35f7('0x7')][_0x35f7('0x27')];this['listenTo'](_0x5cf63a,_0x35f7('0x2a'),()=>{this[_0x35f7('0x3')]('setName',{'id':this['id'],'name':_0x5cf63a[_0x35f7('0x12')]});});}[_0x35f7('0x29')](){this[_0x35f7('0xd')]=!0x0;}[_0x35f7('0x28')](){this[_0x35f7('0xd')]=!0x1;}[_0x35f7('0xa')](){this['isHighlighted']=!0x0;}[_0x35f7('0x26')](){this[_0x35f7('0x1a')]=!0x1;}}_0x47d45f(ci,_0x18b7f3);
23
+ const _0x5798=['creator','.ck-thread__remove-confirm','filter','ck-revision-history-sidebar__revision-wrapper','srcElement','uiLanguage','_revision','fieldView','createdAt','ck-revision-history-sidebar__revision-authors','isSelected','from','render','change','ck-revision-history-sidebar__revision__date','placeholder','isHighlighted','_createdAtFormatted','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','bindTemplate','isActionsDropdownOpen','ck-disabled','div','unshift','fire','setTemplate','set','span','select','revisionActionsView','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision','isReady','220','extendTemplate','length','value','element','ck-reset','highlight','bind','name','revisionNameView','map'];(function(_0x232a0c,_0x579820){const _0x630e0f=function(_0x446704){while(--_0x446704){_0x232a0c['push'](_0x232a0c['shift']());}};_0x630e0f(++_0x579820);}(_0x5798,0xf7));const _0x630e=function(_0x232a0c,_0x579820){_0x232a0c=_0x232a0c-0x0;let _0x630e0f=_0x5798[_0x232a0c];return _0x630e0f;};import{View as _0x11cca2,createLabeledInputText as _0xb48ca8}from'ckeditor5/src/ui';import{mix as _0x396efa}from'ckeditor5/src/utils';import{ConfirmMixin as _0x1f157b}from'ckeditor5-collaboration/src/collaboration-core';import _0x21b20d from'./revisionnameview';import _0x7089d9 from'./revisionauthorview';import{dateToPrettyFormat as _0x338c9e}from'./utils';import{createActionsDropdownView as _0x57c40b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x11cca2{constructor(_0x457b0d,_0x1e355d,_0x500b2e){super(_0x457b0d);const _0x400fb3=this[_0x630e('0x2b')],_0x2ae210=function(_0x144712,_0x38fbd1){const _0x47fd7a=Array[_0x630e('0x22')](_0x38fbd1['authors'])[_0x630e('0x19')](_0x45a9a3=>_0x45a9a3!=_0x38fbd1[_0x630e('0x17')]);return _0x38fbd1[_0x630e('0x17')]&&_0x47fd7a[_0x630e('0x2')](_0x38fbd1[_0x630e('0x17')]),_0x47fd7a[_0x630e('0x16')](_0x38ea48=>new _0x7089d9(_0x144712,_0x38ea48,_0x38ea48==_0x38fbd1[_0x630e('0x17')]));}(_0x457b0d,_0x1e355d);this[_0x630e('0x1d')]=_0x1e355d,this['id']=_0x1e355d['id'],this['bind'](_0x630e('0x14'),_0x630e('0x1f'))['to'](_0x1e355d),this[_0x630e('0x5')](_0x630e('0x21'),!0x1),this[_0x630e('0x5')](_0x630e('0x27'),!0x1),this[_0x630e('0x5')](_0x630e('0x2c'),!0x1),this[_0x630e('0x5')](_0x630e('0xb'),!0x1),this['bind'](_0x630e('0x28'))['to'](this,'createdAt',_0x4e4001=>_0x4e4001?_0x338c9e(_0x457b0d[_0x630e('0x1c')],_0x4e4001):null),this['set']('isEnabled',!0x1),this[_0x630e('0x15')]=new _0x21b20d(_0x457b0d,_0xb48ca8),this['revisionNameView'][_0x630e('0x1e')][_0x630e('0xd')]({'attributes':{'maxlength':_0x630e('0xc')}}),this['revisionNameView']['fieldView'][_0x630e('0x13')]('value',_0x630e('0x26'))['to'](this,'name',_0x630e('0x28')),this[_0x630e('0x15')]['bind'](_0x630e('0x29'))['to'](this,_0x630e('0x21'),this,'isEnabled',(_0x2209a7,_0x559169)=>_0x2209a7&&_0x559169),this['revisionActionsView']=_0x500b2e&&_0x500b2e[_0x630e('0xe')]?_0x57c40b(this,_0x500b2e):'',this[_0x630e('0x8')]['bind'](_0x630e('0x29'))['to'](this),this[_0x630e('0x4')]({'tag':_0x630e('0x1'),'attributes':{'class':['ck',_0x630e('0x11'),_0x630e('0x1a'),_0x400fb3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset',_0x630e('0xa'),_0x400fb3['if']('isEnabled',_0x630e('0x0'),_0x313d91=>!_0x313d91),_0x400fb3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x400fb3['if'](_0x630e('0x27'),'ck-revision-history-sidebar__revision_highlighted'),_0x400fb3['if']('isActionsDropdownOpen',_0x630e('0x9'))]},'children':[this[_0x630e('0x15')],{'tag':_0x630e('0x6'),'attributes':{'class':['ck',_0x630e('0x25')]},'children':[{'text':_0x400fb3['to'](_0x630e('0x28'))}]},{'tag':'div','attributes':{'class':['ck',_0x630e('0x2a')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x630e('0x20')]},'children':_0x2ae210}]},this[_0x630e('0x8')]],'on':{'click':_0x400fb3['to'](_0x1c2a52=>{_0x1c2a52[_0x630e('0x1b')]['closest'](_0x630e('0x18'))||this[_0x630e('0xb')]&&this[_0x630e('0x29')]&&this['fire'](_0x630e('0x7'),{'id':this['id']});})}}]});}[_0x630e('0x23')](){super[_0x630e('0x23')]();const _0x524f90=this['revisionNameView'][_0x630e('0x1e')][_0x630e('0x10')];this['listenTo'](_0x524f90,_0x630e('0x24'),()=>{this[_0x630e('0x3')]('setName',{'id':this['id'],'name':_0x524f90[_0x630e('0xf')]});});}[_0x630e('0x7')](){this[_0x630e('0x21')]=!0x0;}['deselect'](){this[_0x630e('0x21')]=!0x1;}[_0x630e('0x12')](){this[_0x630e('0x27')]=!0x0;}['unhighlight'](){this[_0x630e('0x27')]=!0x1;}}_0x396efa(ci,_0x1f157b);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16e1=['ck-revision-history-sidebar__subrevision-collapser','button','span','click','true','_isCollapsed','bindTemplate','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','set','setTemplate','ck-hidden','toggle','isVisible'];(function(_0x2145bb,_0x16e109){const _0x406491=function(_0xfd382f){while(--_0xfd382f){_0x2145bb['push'](_0x2145bb['shift']());}};_0x406491(++_0x16e109);}(_0x16e1,0xef));const _0x4064=function(_0x2145bb,_0x16e109){_0x2145bb=_0x2145bb-0x0;let _0x406491=_0x16e1[_0x2145bb];return _0x406491;};import{View as _0x5a02a3}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x5a02a3{constructor(_0x2dbcd){super(_0x2dbcd);const _0x461bb7=this[_0x4064('0x5')];this[_0x4064('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4064('0x9')]({'tag':_0x4064('0x1'),'attributes':{'class':['ck',_0x4064('0xd'),_0x461bb7['if'](_0x4064('0xc'),_0x4064('0xa'),_0x58efc4=>!_0x58efc4),_0x461bb7['if'](_0x4064('0x4'),_0x4064('0x7'))],'role':_0x4064('0x0'),'aria-pressed':_0x461bb7['to']('_isCollapsed',_0x403ebc=>_0x403ebc?_0x4064('0x6'):_0x4064('0x3'))},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x461bb7['to'](_0x4064('0x2'))}});}[_0x4064('0xb')](){this['_isCollapsed']=!this['_isCollapsed'];}}
23
+ const _0x52e1=['toggle','set','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','span','ck-hidden','button','click','isVisible'];(function(_0x2034f2,_0x52e1ff){const _0x4ffc5c=function(_0x46720a){while(--_0x46720a){_0x2034f2['push'](_0x2034f2['shift']());}};_0x4ffc5c(++_0x52e1ff);}(_0x52e1,0xeb));const _0x4ffc=function(_0x2034f2,_0x52e1ff){_0x2034f2=_0x2034f2-0x0;let _0x4ffc5c=_0x52e1[_0x2034f2];return _0x4ffc5c;};import{View as _0x1d493f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x1d493f{constructor(_0x103f6d){super(_0x103f6d);const _0x2e6bff=this[_0x4ffc('0x7')];this[_0x4ffc('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x4ffc('0x8'),_0x2e6bff['if'](_0x4ffc('0x4'),_0x4ffc('0x1'),_0x1492cc=>!_0x1492cc),_0x2e6bff['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x4ffc('0x2'),'aria-pressed':_0x2e6bff['to'](_0x4ffc('0x9'),_0x75453=>_0x75453?'false':'true')},'children':[{'tag':_0x4ffc('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x2e6bff['to'](_0x4ffc('0x3'))}});}[_0x4ffc('0x5')](){this[_0x4ffc('0x9')]=!this[_0x4ffc('0x9')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52f5=['ck-revision-history-sidebar__revision_selected','set','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision__date','select','bindTemplate','bind','createdAt','isSelected','author','ck-reset','ck-revision-history-sidebar__revision','_parentRevisionId','uiLanguage','deselect','ck-revision-history-sidebar__revision-authors','setTemplate','div'];(function(_0x3ceacb,_0x52f5b0){const _0x4e0192=function(_0x382c6e){while(--_0x382c6e){_0x3ceacb['push'](_0x3ceacb['shift']());}};_0x4e0192(++_0x52f5b0);}(_0x52f5,0x164));const _0x4e01=function(_0x3ceacb,_0x52f5b0){_0x3ceacb=_0x3ceacb-0x0;let _0x4e0192=_0x52f5[_0x3ceacb];return _0x4e0192;};import{View as _0x5ca1ed}from'ckeditor5/src/ui';import _0x5abdbb from'./revisionauthorview';import{dateToPrettyFormat as _0x16488d}from'./utils';import'../../../theme/revision/subrevision.css';export default class tt extends _0x5ca1ed{constructor(_0x1a6171,_0x5e278f,_0x58af85){super(_0x1a6171);const _0xaf1d42=this[_0x4e01('0x9')];this['id']=_0x5e278f['id'],this[_0x4e01('0xa')](_0x4e01('0xb'))['to'](_0x5e278f),this[_0x4e01('0x5')](_0x4e01('0xc'),!0x1),this[_0x4e01('0xa')]('_createdAtFormatted')['to'](this,_0x4e01('0xb'),_0x186a25=>_0x186a25?_0x16488d(_0x1a6171[_0x4e01('0x11')],_0x186a25):null),this[_0x4e01('0x10')]=_0x58af85,this[_0x4e01('0x2')]({'tag':_0x4e01('0x3'),'attributes':{'class':['ck',_0x4e01('0xe'),_0x4e01('0xf'),_0x4e01('0x6'),_0xaf1d42['if'](_0x4e01('0xc'),_0x4e01('0x4'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x4e01('0x7')]},'children':[{'text':_0xaf1d42['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x4e01('0x1')]},'children':[new _0x5abdbb(_0x1a6171,_0x5e278f[_0x4e01('0xd')],!0x0)]}],'on':{'click':_0xaf1d42['to'](this[_0x4e01('0x8')][_0x4e01('0xa')](this))}});}[_0x4e01('0x8')](){this[_0x4e01('0xc')]=!0x0,this['fire']('select',{'parentId':this[_0x4e01('0x10')]});}[_0x4e01('0x0')](){this[_0x4e01('0xc')]=!0x1;}}
23
+ const _0x440a=['isSelected','bindTemplate','_parentRevisionId','fire','author','ck-revision-history-sidebar__revision_selected','setTemplate','_createdAtFormatted','span','ck-revision-history-sidebar__revision-authors','bind','createdAt','select','deselect','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','div','uiLanguage'];(function(_0x105bb3,_0x440a79){const _0x4e82b5=function(_0x3cdf16){while(--_0x3cdf16){_0x105bb3['push'](_0x105bb3['shift']());}};_0x4e82b5(++_0x440a79);}(_0x440a,0xa8));const _0x4e82=function(_0x105bb3,_0x440a79){_0x105bb3=_0x105bb3-0x0;let _0x4e82b5=_0x440a[_0x105bb3];return _0x4e82b5;};import{View as _0xe57a43}from'ckeditor5/src/ui';import _0x1a4f48 from'./revisionauthorview';import{dateToPrettyFormat as _0x4dd172}from'./utils';import'../../../theme/revision/subrevision.css';export default class ct extends _0xe57a43{constructor(_0x4e75ea,_0x1e470e,_0x3755b4){super(_0x4e75ea);const _0xa86fc6=this[_0x4e82('0xd')];this['id']=_0x1e470e['id'],this[_0x4e82('0x4')](_0x4e82('0x5'))['to'](_0x1e470e),this['set'](_0x4e82('0xc'),!0x1),this[_0x4e82('0x4')](_0x4e82('0x1'))['to'](this,_0x4e82('0x5'),_0x527cea=>_0x527cea?_0x4dd172(_0x4e75ea[_0x4e82('0xb')],_0x527cea):null),this[_0x4e82('0xe')]=_0x3755b4,this[_0x4e82('0x0')]({'tag':_0x4e82('0xa'),'attributes':{'class':['ck','ck-reset',_0x4e82('0x9'),'ck-revision-history-sidebar__subrevision',_0xa86fc6['if']('isSelected',_0x4e82('0x11'))]},'children':[{'tag':_0x4e82('0x2'),'attributes':{'class':['ck',_0x4e82('0x8')]},'children':[{'text':_0xa86fc6['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x4e82('0x3')]},'children':[new _0x1a4f48(_0x4e75ea,_0x1e470e[_0x4e82('0x10')],!0x0)]}],'on':{'click':_0xa86fc6['to'](this[_0x4e82('0x6')]['bind'](this))}});}[_0x4e82('0x6')](){this[_0x4e82('0xc')]=!0x0,this[_0x4e82('0xf')](_0x4e82('0x6'),{'parentId':this[_0x4e82('0xe')]});}[_0x4e82('0x7')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x36b7=['long','toLocaleDateString','toLocaleTimeString','numeric'];(function(_0x5b34c2,_0x36b734){var _0x4ba50d=function(_0x296acc){while(--_0x296acc){_0x5b34c2['push'](_0x5b34c2['shift']());}};_0x4ba50d(++_0x36b734);}(_0x36b7,0x1e3));var _0x4ba5=function(_0x5b34c2,_0x36b734){_0x5b34c2=_0x5b34c2-0x0;var _0x4ba50d=_0x36b7[_0x5b34c2];return _0x4ba50d;};export function dateToPrettyFormat(_0x18eefc,_0x16e2f9){return _0x16e2f9[_0x4ba5('0x2')](_0x18eefc,{'month':_0x4ba5('0x1'),'day':_0x4ba5('0x0')})+',\x20'+_0x16e2f9[_0x4ba5('0x3')](_0x18eefc,{'hour':_0x4ba5('0x0'),'minute':_0x4ba5('0x0')});}
23
+ var _0x1c0f=['long','numeric','toLocaleDateString'];(function(_0x483a0d,_0x1c0fe8){var _0x2302de=function(_0x5ec5a3){while(--_0x5ec5a3){_0x483a0d['push'](_0x483a0d['shift']());}};_0x2302de(++_0x1c0fe8);}(_0x1c0f,0x193));var _0x2302=function(_0x483a0d,_0x1c0fe8){_0x483a0d=_0x483a0d-0x0;var _0x2302de=_0x1c0f[_0x483a0d];return _0x2302de;};export function dateToPrettyFormat(_0x2de536,_0x3f4882){return _0x3f4882[_0x2302('0x1')](_0x2de536,{'month':_0x2302('0x2'),'day':'numeric'})+',\x20'+_0x3f4882['toLocaleTimeString'](_0x2de536,{'hour':_0x2302('0x0'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as st,FocusCycler as it,LabeledFieldView as _0x3cd68a,View as _0x1ec1b8,ViewCollection as et,createLabeledInputText as _0x2fe080,injectCssTransitionDisabler as rt,submitHandler as ot}from'ckeditor5/src/ui';import{FocusTracker as ht,KeystrokeHandler as ct}from'ckeditor5/src/utils';import nt from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import at from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class ut extends _0x1ec1b8{constructor(_0x287239){super(_0x287239);const t=_0x287239['t'];this['focusTracker']=new ht(),this['keystrokes']=new ct(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this['saveButtonView']=this['_createButton'](t('Save'),nt,'ck-button-save'),this['saveButtonView']['type']='submit',this['cancelButtonView']=this['_createButton'](t('Cancel'),at,'ck-button-cancel','cancel'),this['_focusables']=new et(),this['_focusCycler']=new it({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]}),rt(this);}['render'](){super['render'](),ot({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]['forEach'](_0x5c9b15=>{this['_focusables']['add'](_0x5c9b15),this['focusTracker']['add'](_0x5c9b15['element']);}),this['keystrokes']['listenTo'](this['element']));const _0x255ad3=_0x24f713=>_0x24f713['stopPropagation']();this['keystrokes']['set']('arrowright',_0x255ad3),this['keystrokes']['set']('arrowleft',_0x255ad3),this['keystrokes']['set']('arrowup',_0x255ad3),this['keystrokes']['set']('arrowdown',_0x255ad3),this['listenTo'](this['revisionNameInputView']['element'],'selectstart',(_0x11955a,_0x9ec08d)=>{_0x9ec08d['stopPropagation']();},{'priority':'high'});}['focus'](){this['_focusCycler']['focusFirst']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2498b6){this['revisionNameInputView']['fieldView']['element']['value']=_0x2498b6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='';}['_createRevisionNameInput'](){const t=this['locale']['t'],_0x497d89=new _0x3cd68a(this['locale'],_0x2fe080),_0x49b027=_0x497d89['fieldView'];return _0x49b027['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x497d89['label']=t('Name\x20of\x20the\x20revision\x20(optional)'),_0x49b027['on']('input',()=>{this['revisionNameInputValue']=_0x49b027['element']['value']['trim']();}),_0x497d89;}['_createButton'](_0xdf07de,_0x17cbc1,_0x68e97,_0xafd1bc){const _0x11723b=new st(this['locale']);return _0x11723b['set']({'label':_0xdf07de,'icon':_0x17cbc1,'tooltip':!0x0}),_0x11723b['extendTemplate']({'attributes':{'class':_0x68e97}}),_0xafd1bc&&_0x11723b['delegate']('execute')['to'](this,_0xafd1bc),_0x11723b;}}
23
+ const _0x2764=['type','setTemplate','cancel','revisionNameInputValue','element','ck-revision-history-save-revision-form','shift\x20+\x20tab','arrowdown','Save','stopPropagation','focus','listenTo','trim','_createRevisionNameInput','delegate','set','fieldView','submit','selectstart','ck-button-save','high','_focusables','forEach','keystrokes','label','form','cancelButtonView','locale','focusFirst','render','ck-button-cancel','add','220','tab','revisionNameInputView','arrowright','input','focusTracker','extendTemplate','_createButton','value','reset','saveButtonView','_focusCycler'];(function(_0x111793,_0x276434){const _0x2dcaec=function(_0x3dfc03){while(--_0x3dfc03){_0x111793['push'](_0x111793['shift']());}};_0x2dcaec(++_0x276434);}(_0x2764,0xab));const _0x2dca=function(_0x111793,_0x276434){_0x111793=_0x111793-0x0;let _0x2dcaec=_0x2764[_0x111793];return _0x2dcaec;};import{ButtonView as _0x24959b,FocusCycler as _0x20b32a,LabeledFieldView as _0xcfc52a,View as _0x315c2a,ViewCollection as _0x5cf537,createLabeledInputText as _0x25293e,injectCssTransitionDisabler as _0x5a9b50,submitHandler as _0x42b489}from'ckeditor5/src/ui';import{FocusTracker as _0x5b7ec8,KeystrokeHandler as _0x14a04b}from'ckeditor5/src/utils';import{getTranslation as _0x51a603}from'../../utils/common-translations';import _0x2c8cd0 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x1bb5e2 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class dt extends _0x315c2a{constructor(_0x279f38){super(_0x279f38),this[_0x2dca('0x2a')]=new _0x5b7ec8(),this[_0x2dca('0x1c')]=new _0x14a04b(),this[_0x2dca('0x14')](_0x2dca('0x8'),''),this[_0x2dca('0x27')]=this[_0x2dca('0x12')](),this['saveButtonView']=this['_createButton'](_0x51a603(_0x279f38,_0x2dca('0xd')),_0x2c8cd0,_0x2dca('0x18')),this['saveButtonView'][_0x2dca('0x5')]=_0x2dca('0x16'),this[_0x2dca('0x1f')]=this[_0x2dca('0x0')](_0x51a603(_0x279f38,'Cancel'),_0x1bb5e2,_0x2dca('0x23'),_0x2dca('0x7')),this[_0x2dca('0x1a')]=new _0x5cf537(),this['_focusCycler']=new _0x20b32a({'focusables':this[_0x2dca('0x1a')],'focusTracker':this[_0x2dca('0x2a')],'keystrokeHandler':this[_0x2dca('0x1c')],'actions':{'focusPrevious':_0x2dca('0xb'),'focusNext':_0x2dca('0x26')}}),this[_0x2dca('0x6')]({'tag':_0x2dca('0x1e'),'attributes':{'class':['ck',_0x2dca('0xa'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x2dca('0x27')],this[_0x2dca('0x3')],this[_0x2dca('0x1f')]]}),_0x5a9b50(this);}[_0x2dca('0x22')](){super[_0x2dca('0x22')](),_0x42b489({'view':this}),([this['revisionNameInputView'],this[_0x2dca('0x3')],this[_0x2dca('0x1f')]][_0x2dca('0x1b')](_0x14a442=>{this[_0x2dca('0x1a')][_0x2dca('0x24')](_0x14a442),this[_0x2dca('0x2a')][_0x2dca('0x24')](_0x14a442[_0x2dca('0x9')]);}),this[_0x2dca('0x1c')][_0x2dca('0x10')](this[_0x2dca('0x9')]));const _0x1bf1c0=_0x154a3c=>_0x154a3c[_0x2dca('0xe')]();this[_0x2dca('0x1c')]['set'](_0x2dca('0x28'),_0x1bf1c0),this[_0x2dca('0x1c')][_0x2dca('0x14')]('arrowleft',_0x1bf1c0),this[_0x2dca('0x1c')][_0x2dca('0x14')]('arrowup',_0x1bf1c0),this['keystrokes']['set'](_0x2dca('0xc'),_0x1bf1c0),this[_0x2dca('0x10')](this[_0x2dca('0x27')][_0x2dca('0x9')],_0x2dca('0x17'),(_0x3a615e,_0x58badc)=>{_0x58badc[_0x2dca('0xe')]();},{'priority':_0x2dca('0x19')});}[_0x2dca('0xf')](){this[_0x2dca('0x4')][_0x2dca('0x21')]();}get['revisionName'](){return this['revisionNameInputView'][_0x2dca('0x15')]['element'][_0x2dca('0x1')][_0x2dca('0x11')]();}set['revisionName'](_0x2e129a){this['revisionNameInputView'][_0x2dca('0x15')][_0x2dca('0x9')]['value']=_0x2e129a[_0x2dca('0x11')]();}[_0x2dca('0x2')](){this[_0x2dca('0x27')][_0x2dca('0x15')][_0x2dca('0x9')]['value']='';}['_createRevisionNameInput'](){const _0x3f4cc8=new _0xcfc52a(this[_0x2dca('0x20')],_0x25293e),_0x4ef45a=_0x3f4cc8['fieldView'];return _0x4ef45a[_0x2dca('0x2b')]({'attributes':{'maxlength':_0x2dca('0x25')}}),_0x3f4cc8[_0x2dca('0x1d')]=_0x51a603(this[_0x2dca('0x20')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x4ef45a['on'](_0x2dca('0x29'),()=>{this[_0x2dca('0x8')]=_0x4ef45a['element'][_0x2dca('0x1')]['trim']();}),_0x3f4cc8;}[_0x2dca('0x0')](_0x345d1d,_0x5c6fa8,_0xfa01d0,_0x458bde){const _0x3e0ce6=new _0x24959b(this['locale']);return _0x3e0ce6[_0x2dca('0x14')]({'label':_0x345d1d,'icon':_0x5c6fa8,'tooltip':!0x0}),_0x3e0ce6[_0x2dca('0x2b')]({'attributes':{'class':_0xfa01d0}}),_0x458bde&&_0x3e0ce6[_0x2dca('0x13')]('execute')['to'](this,_0x458bde),_0x3e0ce6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x392352}from'ckeditor5/src/core';import{ListView as _0x3cce75,ListItemView as _0x3e0706,ButtonView as st,createDropdown as _0x2066fc}from'ckeditor5/src/ui';import _0x579c91 from'../../revisiontracker';import ut from'./revisionhistorysaverevisionformview';import _0x4902e3 from'../../../theme/icons/revision-history.svg';export default class y extends _0x392352{static get['pluginName'](){return'RevisionHistoryUI';}static get['requires'](){return[_0x579c91];}['init'](){const _0x1e0c73=this['editor'],t=_0x1e0c73['t'],_0x5b244a=_0x1e0c73['plugins']['get']('RevisionTracker');_0x1e0c73['ui']['componentFactory']['add']('revisionHistory',_0x1fde9f=>{const _0x41c9cd=_0x2066fc(_0x1fde9f),_0x6f8dbc=_0x41c9cd['panelView']['children'],_0x63c93d=new _0x3cce75(_0x1fde9f),_0x5bcb0e=new _0x3e0706(_0x1fde9f),_0x22913b=new st(_0x1fde9f),_0x174d0e=new _0x3e0706(_0x1fde9f),_0x131062=new st(_0x1fde9f),_0x3e7c05=new ut(_0x1fde9f);function _0x596fc9(){_0x6f8dbc['length']&&_0x6f8dbc['remove'](0x0),_0x6f8dbc['add'](_0x63c93d);}function _0x582aee(){_0x41c9cd['isOpen']=!0x1,_0x1e0c73['editing']['view']['focus']();}return _0x41c9cd['bind']('isEnabled')['to'](_0x5b244a,'isReady',_0x5b244a,'isEnabled',_0x1e0c73,'isReadOnly',(_0x3b2f1e,_0x584302,_0x5e1650)=>_0x3b2f1e&&_0x584302&&!_0x5e1650),_0x41c9cd['buttonView']['set']({'icon':_0x4902e3,'label':t('Revision\x20history'),'tooltip':!0x0}),_0x22913b['set']({'label':t('Save\x20current\x20revision'),'withText':!0x0}),_0x22913b['bind']('isEnabled')['to'](_0x5b244a,'isReady',_0x5b244a,'isEnabled',_0x1e0c73,'isReadOnly',(_0x449712,_0xd2acb1,_0x255227)=>_0x449712&&_0xd2acb1&&!_0x255227),_0x22913b['on']('execute',()=>function(){_0x6f8dbc['length']&&_0x6f8dbc['remove'](0x0),(_0x3e7c05['reset'](),_0x6f8dbc['add'](_0x3e7c05),_0x3e7c05['focus']());}()),_0x131062['set']({'label':t('Open\x20revision\x20history'),'withText':!0x0}),_0x131062['bind']('isEnabled')['to'](_0x5b244a,'isReady',_0x1e0c73,'isReadOnly',(_0x483bc9,_0x1b0155)=>_0x483bc9&&!_0x1b0155),_0x131062['on']('execute',()=>{_0x1e0c73['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x582aee();}),_0x5bcb0e['children']['add'](_0x22913b),_0x174d0e['children']['add'](_0x131062),_0x63c93d['items']['addMany']([_0x5bcb0e,_0x174d0e]),_0x41c9cd['on']('change:isOpen',()=>_0x596fc9()),_0x3e7c05['saveButtonView']['bind']('isEnabled')['to'](_0x5b244a,'isReady',_0x5b244a,'isEnabled',_0x1e0c73,'isReadOnly',(_0x5dd7ff,_0x495bc8,_0x5420d7)=>_0x5dd7ff&&_0x495bc8&&!_0x5420d7),_0x3e7c05['on']('submit',()=>(_0x1e0c73['plugins']['get'](_0x579c91)['saveRevision']({'name':_0x3e7c05['revisionName']}),void _0x582aee())),_0x3e7c05['on']('cancel',()=>_0x596fc9()),_0x3e7c05['render'](),_0x596fc9(),_0x41c9cd;});}}
23
+ const _0x4b59=['RevisionTracker','pluginName','Open\x20revision\x20history','buttonView','plugins','init','panelView','submit','cancel','remove','length','config','Revision\x20history','render','execute','set','isReadOnly','isReady','Save\x20current\x20revision','add','addMany','saveButtonView','children','revisionHistory','editing','bind','RevisionHistoryUI','isOpen','focus','isEnabled','saveRevision','get','reset','requires'];(function(_0x2db5d6,_0x4b59e9){const _0x339a9f=function(_0x1feab9){while(--_0x1feab9){_0x2db5d6['push'](_0x2db5d6['shift']());}};_0x339a9f(++_0x4b59e9);}(_0x4b59,0x124));const _0x339a=function(_0x2db5d6,_0x4b59e9){_0x2db5d6=_0x2db5d6-0x0;let _0x339a9f=_0x4b59[_0x2db5d6];return _0x339a9f;};import{Plugin as _0x3ac4a7}from'ckeditor5/src/core';import{ListView as _0xdfd444,ListItemView as _0x39f459,ButtonView as _0x2622e2,createDropdown as _0x5a3378}from'ckeditor5/src/ui';import _0x125a6f from'../../revisiontracker';import _0x2a9ac2 from'./revisionhistorysaverevisionformview';import _0x129150 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x201c09}from'../../utils/common-translations';export default class y extends _0x3ac4a7{static get[_0x339a('0xf')](){return _0x339a('0x6');}static get[_0x339a('0xd')](){return[_0x125a6f];}[_0x339a('0x13')](){const _0xc9c24c=this['editor'],_0x576593=_0xc9c24c['plugins'][_0x339a('0xb')](_0x339a('0xe'));_0xc9c24c['ui']['componentFactory'][_0x339a('0x21')](_0x339a('0x3'),_0x3936dc=>{const _0x1b4532=_0x5a3378(_0x3936dc),_0x301a8b=_0x1b4532[_0x339a('0x14')][_0x339a('0x2')],_0x15c651=new _0xdfd444(_0x3936dc),_0x4789ac=new _0x39f459(_0x3936dc),_0x57f3c3=new _0x2622e2(_0x3936dc),_0x9b8383=new _0x39f459(_0x3936dc),_0x403a0c=new _0x2622e2(_0x3936dc),_0x4be664=new _0x2a9ac2(_0x3936dc);function _0x47e923(){_0x301a8b[_0x339a('0x18')]&&_0x301a8b[_0x339a('0x17')](0x0),_0x301a8b[_0x339a('0x21')](_0x15c651);}function _0x18ed23(){_0x1b4532[_0x339a('0x7')]=!0x1,_0xc9c24c[_0x339a('0x4')]['view'][_0x339a('0x8')]();}return _0x1b4532[_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,'isEnabled',_0xc9c24c,_0x339a('0x1e'),(_0x5d043b,_0x1103d2,_0x4d62c2)=>_0x5d043b&&_0x1103d2&&!_0x4d62c2),_0x1b4532[_0x339a('0x11')][_0x339a('0x1d')]({'icon':_0x129150,'label':_0x201c09(_0x3936dc,_0x339a('0x1a')),'tooltip':!0x0}),_0x57f3c3[_0x339a('0x1d')]({'label':_0x201c09(_0x3936dc,_0x339a('0x20')),'withText':!0x0}),_0x57f3c3[_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,_0x339a('0x9'),_0xc9c24c,_0x339a('0x1e'),(_0xf9856e,_0x425ebe,_0x4e27d7)=>_0xf9856e&&_0x425ebe&&!_0x4e27d7),_0x57f3c3['on'](_0x339a('0x1c'),()=>function(){_0x301a8b[_0x339a('0x18')]&&_0x301a8b['remove'](0x0),(_0x4be664[_0x339a('0xc')](),_0x301a8b[_0x339a('0x21')](_0x4be664),_0x4be664['focus']());}()),_0x403a0c[_0x339a('0x1d')]({'label':_0x201c09(_0x3936dc,_0x339a('0x10')),'withText':!0x0}),_0x403a0c['bind'](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0xc9c24c,_0x339a('0x1e'),(_0x4636a4,_0x57229c)=>_0x4636a4&&!_0x57229c),_0x403a0c['on']('execute',()=>{_0xc9c24c[_0x339a('0x19')][_0x339a('0xb')](_0x339a('0x3'))['showRevisionViewerCallback'](),_0x18ed23();}),_0x4789ac[_0x339a('0x2')][_0x339a('0x21')](_0x57f3c3),_0x9b8383[_0x339a('0x2')][_0x339a('0x21')](_0x403a0c),_0x15c651['items'][_0x339a('0x0')]([_0x4789ac,_0x9b8383]),_0x1b4532['on']('change:isOpen',()=>_0x47e923()),_0x4be664[_0x339a('0x1')][_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,_0x339a('0x9'),_0xc9c24c,_0x339a('0x1e'),(_0xd9beae,_0x341bea,_0x13b1f4)=>_0xd9beae&&_0x341bea&&!_0x13b1f4),_0x4be664['on'](_0x339a('0x15'),()=>(_0xc9c24c[_0x339a('0x12')][_0x339a('0xb')](_0x125a6f)[_0x339a('0xa')]({'name':_0x4be664['revisionName']}),void _0x18ed23())),_0x4be664['on'](_0x339a('0x16'),()=>_0x47e923()),_0x4be664[_0x339a('0x1b')](),_0x47e923(),_0x1b4532;});}}