@ckeditor/ckeditor5-revision-history 33.0.0 → 34.0.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.
- package/README.md +3 -0
- package/build/revision-history.js +5 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/en-au.po +25 -25
- package/lang/translations/gl.po +5 -5
- package/lang/translations/hr.po +6 -6
- package/lang/translations/jv.po +122 -0
- package/lang/translations/pt-br.po +3 -3
- package/lang/translations/sk.po +27 -27
- package/package.json +8 -11
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +23 -0
- package/src/editor/revisionviewereditorui.js +23 -0
- package/src/editor/revisionviewereditoruiview.js +23 -0
- package/src/index.js +23 -0
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4d20=['isContent','config','getAttribute','mouseover','add','addClass','removeClass','_refreshStartEndIndex','isIncorrect','pluginName','isLimit','name','_markInsertions','level','isBlock','span','diff','merge','pairId','addHighlight','toViewPosition','splice','commands','change','isAfter','_balloon','type','createPositionAt','_cleanMarkers','markersEnd','error','highest','newRevisionId','start','isNavigationMode','isEqual','_changeIdToChange','_step','elementToAttribute','plugins','_joinTapes','findIndex','wrap','getChild','useFillerType','abs','uiElement','destroy','isSuggestion','split','model','isAdded','view','_markMismatchedRemovedTags','unshift','isReadOnly','readOnlyMode','ck-suggestion-marker','vid','conversion','ck-suggestion-preview-marker-','isAtStart','setAttribute','markerName','text','ck-suggestion-marker--active','refresh','includes','htmlProcessor','getRevisionData','_revisions','forward','_markSuggestions','_removeMissingPairs','getRevision','markersStart','markerToHighlight','numberOfChanges','createRangeIn','removeMarker:revision','document','unbindElementFromMarkerName','_makeModelFromTape','filter','authors','suggestion','currentChangeNumber','processor','_getViewForChange','length','_getChangeFromId','downcastDispatcher','high','_setDistance','_changeView','softBreak','bind','revision:','_getRevisionsRange','schema','restoreRevision','vid_end','createPositionAfter','keys','execute','markers','editor','getItems','then','change:activeChange','side','collaboration.channelId','previousPosition','_setConversion','nextSibling','catch','diffData','toModel','distance','return','hasAttribute','reconvertMarker','stopListening','insertion','writer','clear','end','elementEnd','code','consume','getRoot','activeChange','getAttributes','vid_start','isAddSuggestion','isAtEnd','backward','isRemoved','addMarker:revision','toViewElement','attributes','forEach','isCollapsed','toViewRange','test','item','children','element','marked','userId','loadRevisionData','getIndex','has','showPreviousChange','startIndex','shift','string','_removeUnsupportedChanges','getWalker','POSITIVE_INFINITY','offsetSize','addRevision','revision','for','parent','stop','-new','data-change-id','insert','_processTape','startsWith','all','deletion','_makeTape','RevisionViewer','data','enqueueChange','createUIElement','adapter','maxOffset','_markMarkers','mapper','delete','observeMarkers','element:pre','resolve','addRevisionData','_setData','set','change:isReadOnly','change:numberOfChanges','revision-start','push','low','_fixObsoleteTags','viewItem','_makeModelFromViewString','consumable','revisionHistory','createAttributeElement','change:isReady','showNextChange','changes','_target','isRemoveSuggestion','getCustomProperty','init','locale','_threeWayMerge','modelRange','compare','markerToData','_initInteractions','oldRevisionId','_getViewObj','getRootNames','isReady','markerRange','roots','revisionHistoryLabel','endIndex','ck-suggestion-marker-','insertions','target','toData','remove','bindElementToMarker','_getDiff','range','_cleanUp','repository','get','upcast','isEnabled','from','isBefore','_removeRevisionMarkers','ck-editor__editable__overlay','checkAttribute','index','createPositionBefore','editing','nodeAfter','nextPosition','concat','listenTo','activeView','selection','map','createRange','slice','_update','deletions','parse','markerNameToElements','hasClass','addMarker:suggestion:insertion','elementStart','dataToMarker','change:isEnabled','_findChangeIdFromDomTarget','getShiftedBy','editingDowncast'];(function(_0x553b91,_0x4d20ea){const _0x417e37=function(_0x24f74e){while(--_0x24f74e){_0x553b91['push'](_0x553b91['shift']());}};_0x417e37(++_0x4d20ea);}(_0x4d20,0x1ca));const _0x417e=function(_0x553b91,_0x4d20ea){_0x553b91=_0x553b91-0x0;let _0x417e37=_0x4d20[_0x553b91];return _0x417e37;};import _0x4c4d0a from'@ckeditor/ckeditor5-collaboration-core/src/users';import{Plugin as _0x807d81,Command as _0x1f4fbf}from'ckeditor5/src/core';import{ObservableMixin as _0xadd479,mix as _0x305c76}from'ckeditor5/src/utils';import _0x399529 from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import _0x1b27cc from'@ckeditor/ckeditor5-engine/src/model/element';import _0x1eb788 from'@ckeditor/ckeditor5-engine/src/model/text';import _0x15b06a from'@ckeditor/ckeditor5-engine/src/view/documentfragment';import _0x5cba3d from'@ckeditor/ckeditor5-engine/src/view/text';import _0x5953b7 from'@ckeditor/ckeditor5-engine/src/view/element';import{_insert as _0x51ea26}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0x4d7cf3 from'./ui/revisionviewer/changedetailsview';import _0x105830 from'@ckeditor/ckeditor5-collaboration-core/src/utils/getmarkerdomelement';import{scrollViewportToShowTarget as _0x108b69}from'@ckeditor/ckeditor5-utils/src/dom/scroll';import{ContextualBalloon as _0x4a0d49}from'ckeditor5/src/ui';import _0x54ba9c from'./revisionsrepository';import _0x39b132 from'./changeitem';import _0x33c669 from'./revisiondiff';import'../theme/revisionviewer.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestion.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestionmarker.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/horizontalline.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/image.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/mediaembed.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/pagebreak.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/table.css';export default class R extends _0x807d81{static get[_0x417e('0x4d')](){return'RevisionViewer';}static get['requires'](){return[_0x4c4d0a,_0x4a0d49,_0x54ba9c];}constructor(..._0x48ee38){super(..._0x48ee38),this[_0x417e('0x23')]=this[_0x417e('0xae')][_0x417e('0x6b')][_0x417e('0x24')]('RevisionsRepository'),this['set']('activeChange',null),this[_0x417e('0x100')](_0x417e('0x33'),null),this[_0x417e('0x100')](_0x417e('0x54'),null),this[_0x417e('0x100')](_0x417e('0x15'),!0x1),this['set'](_0x417e('0x26'),!0x0),this['on'](_0x417e('0x40'),(_0x41e280,_0x464a8b,_0x49cc29)=>{this[_0x417e('0xc7')]=null,this[_0x417e('0x33')]=null,this[_0x417e('0xae')]['editing'][_0x417e('0x78')][_0x417e('0x5b')](_0x15c602=>{for(const _0x40e294 of this['editor'][_0x417e('0x2e')][_0x417e('0x78')][_0x417e('0x94')][_0x417e('0x17')])_0x49cc29?_0x15c602[_0x417e('0x4a')](_0x417e('0x2a'),_0x40e294):_0x15c602[_0x417e('0x49')](_0x417e('0x2a'),_0x40e294);});}),this[_0x417e('0xa4')](_0x417e('0x66'))['to'](this,_0x417e('0xc7'),_0x34448d=>null!==_0x34448d),this['bind'](_0x417e('0x9a'))['to'](this,_0x417e('0x15'),this,_0x417e('0x54'),this,_0x417e('0xc7'),(_0x5e9871,_0x15b009,_0x4bb451)=>_0x5e9871&&_0x4bb451?_0x15b009['changes'][_0x417e('0xdb')](_0x4bb451):0x0),this[_0x417e('0xa4')](_0x417e('0x91'))['to'](this,_0x417e('0x15'),this,_0x417e('0x54'),(_0x4aebde,_0x142417)=>_0x4aebde?_0x142417[_0x417e('0x7')][_0x417e('0x9d')]:0x0),this['_changeView']=null,this[_0x417e('0x68')]=new Map(),this['adapter']=null,this[_0x417e('0x5d')]=this['editor']['plugins']['get'](_0x4a0d49);}[_0x417e('0xb')](){const _0x86c2a3=this[_0x417e('0xae')];_0x86c2a3[_0x417e('0xf3')][_0x417e('0x88')][_0x417e('0x70')](_0x417e('0xd8'));const _0xd98674=new B(_0x86c2a3,{'direction':_0x417e('0xcc')}),_0x8433a2=new B(_0x86c2a3,{'direction':_0x417e('0x8b')});_0x86c2a3[_0x417e('0x5a')]['add'](_0x417e('0xdd'),_0xd98674),_0x86c2a3[_0x417e('0x5a')][_0x417e('0x48')](_0x417e('0x6'),_0x8433a2),_0x86c2a3[_0x417e('0x5a')][_0x417e('0x48')](_0x417e('0xa8'),new z(_0x86c2a3)),this['on'](_0x417e('0x102'),()=>{_0xd98674[_0x417e('0x86')](),_0x8433a2[_0x417e('0x86')]();}),this['_setConversion'](),this[_0x417e('0x11')](),_0x86c2a3[_0x417e('0x7b')]=!0x0;}async[_0x417e('0x89')](_0x42806c){await this[_0x417e('0xda')](_0x42806c);const _0x4f552c={};for(const _0x35192e in _0x42806c[_0x417e('0xb8')]){const _0x2e0f93=this['_removeRevisionMarkers'](JSON[_0x417e('0x3a')](_0x42806c[_0x417e('0xb8')][_0x35192e][_0x417e('0x1b')])),_0x358669=this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x78')][_0x417e('0x94')],_0x577725=new _0x15b06a(_0x358669,_0x2e0f93[_0x417e('0x35')](_0x31b7a=>this[_0x417e('0x13')](_0x31b7a)));_0x4f552c[_0x35192e]=this[_0x417e('0xae')][_0x417e('0xf3')][_0x417e('0x9b')][_0x417e('0x1d')](_0x577725);}return _0x4f552c;}[_0x417e('0x29')](_0x38abb2){return(_0x38abb2=_0x38abb2['filter'](_0x477334=>!_0x477334[_0x417e('0x4f')]||_0x417e('0x103')!==_0x477334[_0x417e('0x4f')]&&'revision-end'!==_0x477334[_0x417e('0x4f')]))['forEach'](_0x385586=>{_0x417e('0xe0')!=typeof _0x385586&&(_0x385586[_0x417e('0xd6')]=this[_0x417e('0x29')](_0x385586[_0x417e('0xd6')]),_0x385586['attributes']=_0x385586[_0x417e('0xd0')]['filter'](_0x4219e1=>!_0x4219e1[0x0][_0x417e('0xee')]('data-revision-')));}),_0x38abb2;}[_0x417e('0xf')](_0x3d4c46,_0x5b2806,_0x2b6446=!0x1){if(!this['isEnabled'])return;const _0x15c48a=this[_0x417e('0x23')],_0x30b7a8='string'==typeof _0x3d4c46?_0x15c48a[_0x417e('0x8e')](_0x3d4c46):_0x3d4c46,_0x42d560=_0x417e('0xe0')==typeof _0x5b2806?_0x15c48a[_0x417e('0x8e')](_0x5b2806):_0x5b2806,_0x47656d=_0x30b7a8['id'],_0x5855d7=_0x42d560?_0x42d560['id']:null;if(!_0x2b6446&&this[_0x417e('0x54')]&&this['diff'][_0x417e('0x64')]===_0x47656d&&this[_0x417e('0x54')][_0x417e('0x12')]===_0x5855d7)return Promise[_0x417e('0xfd')]();this[_0x417e('0x15')]=!0x1,this[_0x417e('0x33')]=null,this[_0x417e('0x54')]=new _0x33c669(_0x47656d,_0x5855d7);const _0x3d6bd1=this['_getRevisionsRange'](_0x30b7a8,_0x42d560,!0x0)[_0x417e('0x35')](_0x3607ae=>this[_0x417e('0xda')](_0x3607ae));return _0x3d6bd1[_0x417e('0x104')](new Promise(_0x3dd6c2=>{setTimeout(_0x3dd6c2,0x14);})),Promise[_0x417e('0xef')](_0x3d6bd1)[_0x417e('0xb0')](()=>{if(!this[_0x417e('0x26')])return;this[_0x417e('0x22')]();const _0x6616fd=this['_getDiff'](_0x47656d,_0x5855d7);this['diff'][_0x417e('0xff')](_0x6616fd);for(const _0x395f1c of this[_0x417e('0x54')][_0x417e('0x7')])this['_changeIdToChange'][_0x417e('0x100')](_0x395f1c['id'],_0x395f1c);this[_0x417e('0xae')][_0x417e('0x76')][_0x417e('0xf4')]({'isUndoable':!0x1},_0x5ee5d3=>{for(const _0x4b985f of Object['keys'](_0x6616fd[_0x417e('0x76')])){const _0x2aa49f=this['editor'][_0x417e('0x76')][_0x417e('0x94')][_0x417e('0xc6')](_0x4b985f);_0x5ee5d3[_0x417e('0x1e')](_0x5ee5d3[_0x417e('0x92')](_0x2aa49f)),_0x5ee5d3[_0x417e('0xec')](_0x6616fd[_0x417e('0x76')][_0x4b985f],_0x2aa49f,0x0);}}),this[_0x417e('0x15')]=!0x0;})[_0x417e('0xb7')](_0x38c13c=>{console[_0x417e('0x62')](_0x38c13c),this[_0x417e('0x15')]=!0x0;});}['destroy'](){this[_0x417e('0x33')]=null,this['_changeView']&&this[_0x417e('0xa2')][_0x417e('0x73')]();}[_0x417e('0xfe')](_0x5272b3,_0x5f4693){const _0x5b5abb=this[_0x417e('0x23')]['createRevision'](_0x5272b3);return _0x5b5abb['on'](_0x417e('0x38'),(_0x32883a,_0x171129,_0x3fb2b1)=>_0x5f4693(_0x171129,_0x3fb2b1,_0x5b5abb)),this[_0x417e('0x23')][_0x417e('0xe5')](_0x5b5abb),_0x5b5abb;}[_0x417e('0xda')](_0x17c8b3){if(!_0x17c8b3||_0x17c8b3[_0x417e('0xb8')])return Promise[_0x417e('0xfd')]();{const _0x545b71=this[_0x417e('0xae')][_0x417e('0x45')]['get'](_0x417e('0xb3'));return this[_0x417e('0xf6')][_0x417e('0x8e')]({'channelId':_0x545b71,'revisionId':_0x17c8b3['id']})[_0x417e('0xb0')](_0x2f3cb7=>{_0x17c8b3[_0x417e('0x38')]({'diffData':_0x2f3cb7[_0x417e('0xb8')]},!0x0);});}}[_0x417e('0x22')](){this['activeChange']=null,this[_0x417e('0x60')](),this[_0x417e('0xa2')]&&this[_0x417e('0xa2')][_0x417e('0x73')](),this[_0x417e('0xa2')]=null,this['_changeIdToChange'][_0x417e('0xc1')]();}[_0x417e('0xf1')](_0x25253a){const _0x2bbcbc=Array['from'](_0x25253a['markers'])[_0x417e('0x97')](([_0x290b29,_0xf123be])=>_0x290b29[_0x417e('0xee')](_0x417e('0xa5'))&&!_0xf123be[_0x417e('0xd2')]),_0x5c8855=Array[_0x417e('0x27')](this['editor'][_0x417e('0x76')]['createRangeIn'](_0x25253a)[_0x417e('0xe2')]({'singleCharacters':!0x0}));if(0x0!=_0x2bbcbc['length'])for(const _0x1a81ef of _0x5c8855){const [_0x1423b4,_0x5a2325]=_0x2bbcbc[0x0],[,_0x2bd7fa,_0x12a6d8]=_0x1423b4[_0x417e('0x75')](':');if(_0x5a2325['end'][_0x417e('0x67')](_0x1a81ef['nextPosition'])&&_0x2bbcbc[_0x417e('0xdf')](),(_0x1a81ef[_0x417e('0xb4')][_0x417e('0x67')](_0x5a2325['start'])||_0x1a81ef['previousPosition'][_0x417e('0x5c')](_0x5a2325['start']))&&('insertion'==_0x2bd7fa?_0x1a81ef[_0x417e('0x77')]={'userId':_0x12a6d8}:_0x417e('0xf0')==_0x2bd7fa&&(_0x1a81ef['isRemoved']={'userId':_0x12a6d8})),0x0==_0x2bbcbc[_0x417e('0x9d')])break;}return _0x5c8855;}[_0x417e('0x4b')](_0x56d991){const _0x408699=new Map();for(let _0x266072=0x0;_0x266072<_0x56d991['length'];_0x266072++)'text'===_0x56d991[_0x266072]['type']?(_0x56d991[_0x266072][_0x417e('0xd5')][_0x417e('0xde')]=_0x266072,_0x56d991[_0x266072][_0x417e('0xd5')]['endIndex']=_0x266072):(_0x417e('0x3e')===_0x56d991[_0x266072][_0x417e('0x5e')]?_0x56d991[_0x266072]['item']['startIndex']=_0x266072:_0x417e('0xc3')===_0x56d991[_0x266072]['type']&&(_0x56d991[_0x266072]['item']['endIndex']=_0x266072),_0x408699[_0x417e('0x100')](_0x56d991[_0x266072]['id'],_0x266072));for(const _0x5b1814 of _0x408699['values']())'elementStart'===_0x56d991[_0x5b1814]['type']?_0x56d991[_0x5b1814][_0x417e('0xd5')]['endIndex']=_0x408699[_0x417e('0x24')](_0x56d991[_0x5b1814][_0x417e('0x56')]):_0x417e('0xc3')===_0x56d991[_0x5b1814]['type']&&(_0x56d991[_0x5b1814][_0x417e('0xd5')][_0x417e('0xde')]=_0x408699[_0x417e('0x24')](_0x56d991[_0x5b1814]['pairId']));}[_0x417e('0xed')](_0x35e6b0){for(let _0x33896b=0x0;_0x33896b<_0x35e6b0[_0x417e('0x9d')];_0x33896b++){if(_0x417e('0x3e')===_0x35e6b0[_0x33896b]['type'])_0x35e6b0[_0x33896b]['item']['startIndex']=_0x33896b;else{if(_0x417e('0xc3')===_0x35e6b0[_0x33896b][_0x417e('0x5e')]){_0x35e6b0[_0x33896b][_0x417e('0xd5')]['endIndex']=_0x33896b;const _0x60babd=_0x35e6b0[_0x33896b]['item'][_0x417e('0xde')];_0x35e6b0[_0x60babd][_0x417e('0x56')]=_0x35e6b0[_0x33896b]['id'],_0x35e6b0[_0x33896b][_0x417e('0x56')]=_0x35e6b0[_0x60babd]['id'];}else _0x35e6b0[_0x33896b][_0x417e('0xd5')]['startIndex']=_0x33896b,_0x35e6b0[_0x33896b]['item']['endIndex']=_0x33896b,_0x35e6b0[_0x33896b]['pairId']=null;}_0x35e6b0[_0x33896b][_0x417e('0x8f')]||(_0x35e6b0[_0x33896b][_0x417e('0x8f')]=[],_0x35e6b0[_0x33896b]['markersEnd']=[]);}}[_0x417e('0x50')](_0x280f6a,_0x583fe1){const _0x493728=_0x280f6a[_0x417e('0x97')](_0x348862=>!_0x348862[_0x417e('0x77')]);for(let _0x4562e3=0x0;_0x4562e3<_0x583fe1['length'];_0x4562e3++)_0x583fe1[_0x4562e3][_0x417e('0x77')]&&(_0x493728[_0x4562e3]['isAdded']=_0x583fe1[_0x4562e3][_0x417e('0x77')]);}[_0x417e('0x1')](_0x385d85){const _0x371632=JSON[_0x417e('0x3a')](_0x385d85),_0x18daa9=this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x78')][_0x417e('0x94')],_0x3d1a42=new _0x15b06a(_0x18daa9,_0x371632[_0x417e('0x35')](_0x46f7f0=>this[_0x417e('0x13')](_0x46f7f0)));return this[_0x417e('0xae')][_0x417e('0xf3')][_0x417e('0xb9')](_0x3d1a42);}[_0x417e('0x13')](_0x27ff11){const _0x525ca5=this[_0x417e('0xae')][_0x417e('0x2e')]['view'][_0x417e('0x94')];if(_0x417e('0xe0')==typeof _0x27ff11)return new _0x5cba3d(_0x525ca5,_0x27ff11);{const _0x5370e1=_0x27ff11[_0x417e('0xd6')][_0x417e('0x35')](_0x1c5657=>this[_0x417e('0x13')](_0x1c5657));return new _0x5953b7(_0x525ca5,_0x27ff11[_0x417e('0x4f')],_0x27ff11[_0x417e('0xd0')],_0x5370e1);}}[_0x417e('0x20')](_0x526b92,_0x5f450f=null){const _0x55ecb3=this[_0x417e('0x23')]['getRevision'](_0x526b92),_0x125ed8=_0x5f450f?this['repository'][_0x417e('0x8e')](_0x5f450f):null,_0x28d112=this[_0x417e('0xa6')](_0x55ecb3,_0x125ed8),_0x357649=_0x28d112[_0x28d112[_0x417e('0x9d')]-0x1],_0x5ae10b=new Map();for(const _0x2f7cb5 of _0x28d112){_0x2f7cb5['model']={};for(const _0x2a2ae7 of _0x2f7cb5[_0x417e('0x98')])_0x5ae10b[_0x417e('0x100')](_0x2a2ae7['id'],_0x2a2ae7);for(const _0x27302e of this[_0x417e('0xae')]['model'][_0x417e('0x94')][_0x417e('0x14')]())_0x2f7cb5[_0x417e('0xb8')][_0x27302e]||(_0x2f7cb5['diffData'][_0x27302e]={'insertions':'[]','deletions':'[]'}),_0x2f7cb5[_0x417e('0x76')][_0x27302e]={'insertions':this['_makeModelFromViewString'](_0x2f7cb5[_0x417e('0xb8')][_0x27302e]['insertions']),'deletions':this['_makeModelFromViewString'](_0x2f7cb5[_0x417e('0xb8')][_0x27302e][_0x417e('0x39')])};}const _0x449b66={'model':{},'changes':[]};for(const _0x473bd4 of this[_0x417e('0xae')][_0x417e('0x76')][_0x417e('0x94')]['getRootNames']()){let _0x5c996e=null,_0x5139a6=0x0;const _0x48a54d=new Map(Array[_0x417e('0x27')](_0x55ecb3['model'][_0x473bd4]['insertions'][_0x417e('0xad')])[_0x417e('0x97')](([_0x31e79c])=>!_0x31e79c[_0x417e('0xee')](_0x417e('0xa5'))));let _0x555fbf=0x0;for(const _0x4b3a5e of _0x28d112){const _0x8ab3e4=this[_0x417e('0xf1')](_0x4b3a5e[_0x417e('0x76')][_0x473bd4][_0x417e('0x1b')]);_0x4b3a5e==_0x55ecb3?(_0x5c996e=_0x8ab3e4,_0x5139a6=_0x5c996e['length'],_0x5c996e[_0x417e('0xd1')](_0x4e3e4b=>{_0x4e3e4b['id']=_0x555fbf++;}),this[_0x417e('0xed')](_0x5c996e)):this[_0x417e('0x50')](_0x5c996e,_0x8ab3e4);const _0x489088=_0x5c996e['filter'](_0x34b72f=>!_0x34b72f[_0x417e('0x77')])[_0x417e('0x35')](_0x23ed54=>_0x23ed54['id']);let _0x381651=0x0;const _0x59fd94=this[_0x417e('0xf1')](_0x4b3a5e[_0x417e('0x76')][_0x473bd4]['deletions']);_0x59fd94[_0x417e('0xd1')](_0x29baa8=>{_0x29baa8[_0x417e('0xcd')]?_0x29baa8['id']=_0x5139a6++:_0x29baa8['id']=_0x489088[_0x381651++];}),this[_0x417e('0xed')](_0x59fd94),this[_0x417e('0xa1')](_0x5c996e,_0x417e('0x77')),this[_0x417e('0xa1')](_0x59fd94,_0x417e('0xcd')),_0x4b3a5e==_0x55ecb3&&this[_0x417e('0xf8')](_0x5c996e,_0x48a54d),_0x5c996e=this[_0x417e('0x6c')](_0x5c996e,_0x59fd94),this[_0x417e('0x4b')](_0x5c996e),this[_0x417e('0xa1')](_0x5c996e,'isRemoved');}_0x5c996e=_0x5c996e[_0x417e('0x97')](_0x35b65f=>!(_0x35b65f[_0x417e('0x77')]&&_0x35b65f[_0x417e('0xcd')]));const _0x3ff849=new Map(_0x357649[_0x417e('0x76')][_0x473bd4][_0x417e('0x39')]['markers']),_0x1eb93f=new Set(_0x48a54d[_0x417e('0xab')]());for(const _0xb68cd4 of _0x3ff849[_0x417e('0xab')]())_0x1eb93f[_0x417e('0xfa')](_0xb68cd4);this[_0x417e('0x8c')](_0x5c996e,_0x1eb93f),this['_fixObsoleteTags'](_0x5c996e),_0x5c996e=this[_0x417e('0x8d')](_0x5c996e),_0x5c996e=this[_0x417e('0x79')](_0x5c996e),_0x5c996e=this[_0x417e('0xe1')](_0x5c996e);const {root:_0x3f8030,changes:_0xa7ea8}=this[_0x417e('0x96')](_0x5c996e,_0x5ae10b);_0x449b66[_0x417e('0x76')][_0x473bd4]=_0x3f8030,_0x449b66[_0x417e('0x7')]=_0x449b66[_0x417e('0x7')][_0x417e('0x31')](_0xa7ea8);}return _0x449b66;}[_0x417e('0xf8')](_0x4a4c2a,_0x18d67f){for(let _0x10128a=0x0;_0x10128a<_0x4a4c2a['length'];_0x10128a++)for(const [_0x5f0643,_0x4b54a8]of _0x18d67f)_0x4b54a8[_0x417e('0x65')][_0x417e('0x67')](_0x4a4c2a[_0x10128a][_0x417e('0xb4')])&&_0x4a4c2a[_0x10128a]['markersStart']['push'](_0x5f0643),_0x4b54a8['end'][_0x417e('0x67')](_0x4a4c2a[_0x10128a][_0x417e('0x30')])&&_0x4a4c2a[_0x10128a][_0x417e('0x61')][_0x417e('0x104')](_0x5f0643);}['_joinTapes'](_0x4e5bef,_0x34c4b8){let _0x63bd16=[],_0x43cc13=0x0,_0x4acec2=0x0;for(;_0x43cc13<_0x4e5bef[_0x417e('0x9d')]||_0x4acec2<_0x34c4b8[_0x417e('0x9d')];){const _0x10462a=_0x4e5bef[_0x43cc13]||{},_0x4471ca=_0x34c4b8[_0x4acec2]||{};if(_0x10462a['id']==_0x4471ca['id'])_0x43cc13++,_0x4acec2++,_0x63bd16[_0x417e('0x104')](_0x10462a);else{if(_0x4471ca[_0x417e('0xcd')]&&_0x10462a[_0x417e('0x77')]){const {commonTape:_0x111406,iEnd:_0x55185d,jEnd:_0x3181ee}=this[_0x417e('0xd')](_0x4e5bef,_0x43cc13,_0x34c4b8,_0x4acec2);_0x63bd16=_0x63bd16[_0x417e('0x31')](_0x111406),_0x43cc13=_0x55185d,_0x4acec2=_0x3181ee;}else _0x4471ca[_0x417e('0xcd')]?(_0x4acec2++,_0x63bd16[_0x417e('0x104')](_0x4471ca)):(_0x43cc13++,_0x63bd16[_0x417e('0x104')](_0x10462a));}}return _0x63bd16;}[_0x417e('0x8c')](_0x22f7e2,_0xd48f6b){const _0x2484ad=[];for(let _0x127ddc=0x0;_0x127ddc<_0x22f7e2[_0x417e('0x9d')];_0x127ddc++){for(let _0x11e682=0x0;_0x11e682<_0x22f7e2[_0x127ddc][_0x417e('0x8f')][_0x417e('0x9d')];_0x11e682++){const _0x36cf75=_0x22f7e2[_0x127ddc][_0x417e('0x8f')][_0x11e682];if(!_0xd48f6b[_0x417e('0xdc')](_0x36cf75))continue;const {group:_0x3c7723,type:_0x2a057a,authorId:_0x572f38}=_0x296657(_0x36cf75);_0x417e('0x99')!=_0x3c7723||'insertion'!=_0x2a057a&&'deletion'!=_0x2a057a||(_0x2484ad[_0x417e('0x7a')]({'type':_0x2a057a,'name':_0x36cf75,'userId':_0x572f38}),_0x22f7e2[_0x127ddc][_0x417e('0x8f')][_0x417e('0x59')](_0x11e682,0x1),_0x11e682--);}_0x137096(_0x22f7e2[_0x127ddc]);for(let _0x144ae6=0x0;_0x144ae6<_0x22f7e2[_0x127ddc][_0x417e('0x61')]['length'];_0x144ae6++){const _0x2bb8c6=_0x22f7e2[_0x127ddc][_0x417e('0x61')][_0x144ae6];if(!_0xd48f6b[_0x417e('0xdc')](_0x2bb8c6))continue;const {group:_0x98679d,type:_0xdb99d7}=_0x296657(_0x2bb8c6);if(_0x417e('0x99')!=_0x98679d||'insertion'!=_0xdb99d7&&'deletion'!=_0xdb99d7)continue;_0x22f7e2[_0x127ddc]['markersEnd'][_0x417e('0x59')](_0x144ae6,0x1),_0x144ae6--;const _0x4a9f90=_0x2484ad[_0x417e('0x6d')](_0x17e87d=>_0x17e87d['name']==_0x2bb8c6);_0x4a9f90>-0x1&&_0x2484ad[_0x417e('0x59')](_0x4a9f90,0x1);}}function _0x296657(_0x2c6b0e){const _0x5172e8=_0x2c6b0e['split'](':');return{'group':_0x5172e8[0x0],'type':_0x5172e8[0x1],'subType':_0x5172e8[_0x417e('0x9d')]>=0x5?_0x5172e8[0x2]:null,'id':_0x5172e8[_0x417e('0x9d')]<0x5?_0x5172e8[0x2]:_0x5172e8[0x3],'authorId':_0x5172e8[_0x417e('0x9d')]<0x5?_0x5172e8[0x3]:_0x5172e8[0x4],'markerCount':0x6==_0x5172e8[_0x417e('0x9d')]?_0x5172e8[0x5]:null};}function _0x137096(_0x1cacdb){for(let _0x180599=0x0;_0x180599<_0x2484ad[_0x417e('0x9d')];_0x180599++){if(_0x1cacdb[_0x417e('0x77')]&&'insertion'==_0x2484ad[_0x180599]['type'])return _0x1cacdb[_0x417e('0xca')]=_0x2484ad[_0x180599],void delete _0x1cacdb[_0x417e('0x77')];if(!_0x1cacdb[_0x417e('0x77')]&&!_0x1cacdb[_0x417e('0xcd')]&&_0x417e('0xf0')==_0x2484ad[_0x180599][_0x417e('0x5e')])return void(_0x1cacdb[_0x417e('0x9')]=_0x2484ad[_0x180599]);}}}[_0x417e('0xa1')](_0x56bd5c,_0x1dfa8b){let _0x171c4f=0x0,_0x451711=!0x1;const _0x4427fe=new Map();for(const _0x1796d7 of _0x56bd5c)_0x1796d7[_0x1dfa8b]?_0x451711&&(_0x171c4f++,_0x451711=!0x1):(_0x171c4f++,_0x451711=!0x0),_0x4427fe[_0x417e('0x100')](_0x1796d7['id'],_0x171c4f);for(let _0x3a0d8b=0x0;_0x3a0d8b<_0x56bd5c[_0x417e('0x9d')];_0x3a0d8b++){if('isRemoved'==_0x1dfa8b&&_0x56bd5c[_0x3a0d8b][_0x417e('0x77')]||_0x417e('0x77')==_0x1dfa8b&&_0x56bd5c[_0x3a0d8b]['isRemoved'])continue;if(_0x417e('0x84')==_0x56bd5c[_0x3a0d8b][_0x417e('0x5e')]){_0x56bd5c[_0x3a0d8b]['distance']=0x0;continue;}const _0x391a73=_0x4427fe[_0x417e('0x24')](_0x56bd5c[_0x3a0d8b][_0x417e('0x56')]),_0x3f0ccb=_0x4427fe[_0x417e('0x24')](_0x56bd5c[_0x3a0d8b]['id']);_0x56bd5c[_0x3a0d8b][_0x417e('0xba')]=_0x391a73-_0x3f0ccb;}}[_0x417e('0xa6')](_0x841f54,_0x425e07,_0x8724d8=!0x1){const _0x979b05=[];let _0x3c606c=this[_0x417e('0x23')]['getIndex'](_0x841f54),_0x502594=this[_0x417e('0x23')]['getIndex'](_0x425e07);for(-0x1==_0x502594&&(_0x502594=this['repository'][_0x417e('0x8a')][_0x417e('0x9d')],_0x8724d8=!0x1);_0x3c606c<_0x502594;)_0x979b05['push'](this['repository'][_0x417e('0x8e')](_0x3c606c)),_0x3c606c++;return _0x8724d8&&_0x979b05[_0x417e('0x104')](this[_0x417e('0x23')]['getRevision'](_0x3c606c)),_0x979b05;}[_0x417e('0xd')](_0x1b7429,_0x3f8a37,_0xbb3754,_0x273549){const _0x595aa7=this[_0x417e('0xae')][_0x417e('0x76')][_0x417e('0xa7')];let _0x119953=_0x3f8a37;for(;_0x1b7429[_0x119953]&&_0x1b7429[_0x119953]['isAdded'];)_0x119953++;let _0x3ff88d=_0x273549;for(;_0xbb3754[_0x3ff88d]&&_0xbb3754[_0x3ff88d][_0x417e('0xcd')];)_0x3ff88d++;_0x388387(_0x1b7429,_0x3f8a37,_0x119953),_0x388387(_0xbb3754,_0x273549,_0x3ff88d);const _0x32a40a=_0xbb3754[_0x417e('0x37')](_0x273549,_0x3ff88d)['concat'](_0x1b7429['slice'](_0x3f8a37,_0x119953));return _0x32a40a['sort']((_0x400f70,_0xcc05bd)=>_0x400f70[_0x417e('0xb2')]!=_0xcc05bd[_0x417e('0xb2')]?_0x400f70['side']-_0xcc05bd[_0x417e('0xb2')]:_0x400f70[_0x417e('0x51')]!=_0xcc05bd[_0x417e('0x51')]?_0x400f70[_0x417e('0x51')]-_0xcc05bd[_0x417e('0x51')]:_0x400f70['distance']!=_0xcc05bd['distance']?_0xcc05bd[_0x417e('0xba')]-_0x400f70[_0x417e('0xba')]:!!_0x400f70[_0x417e('0x77')]!=!!_0xcc05bd[_0x417e('0x77')]?-0x1==_0x400f70[_0x417e('0xb2')]||0x0==_0x400f70[_0x417e('0xb2')]?_0x400f70[_0x417e('0x77')]?-0x1:0x1:_0x400f70['isAdded']?0x1:-0x1:_0x400f70['index']-_0xcc05bd['index']),{'commonTape':_0x32a40a,'iEnd':_0x119953,'jEnd':_0x3ff88d};function _0x388387(_0x23561c,_0x1af6c3,_0x5ce387){let _0x3cfa8e=-0x1,_0x12674d=Number[_0x417e('0xe3')],_0x5698c5=!0x0;for(let _0x3c47fb=_0x1af6c3;_0x3c47fb<_0x5ce387;_0x3c47fb++)if(_0x595aa7['isInline'](_0x23561c[_0x3c47fb][_0x417e('0xd5')])||(_0x5698c5=!0x1),_0x23561c[_0x3c47fb]['item'][_0x417e('0xde')]<_0x1af6c3&&(_0x3cfa8e=_0x3c47fb),_0x23561c[_0x3c47fb][_0x417e('0xd5')][_0x417e('0x19')]>=_0x5ce387){_0x12674d=_0x3c47fb;break;}_0x5698c5&&(_0x3cfa8e=_0x5ce387-0x1);for(let _0x2ac293=_0x1af6c3;_0x2ac293<_0x5ce387;_0x2ac293++)_0x23561c[_0x2ac293][_0x417e('0xb2')]=_0x2ac293<=_0x3cfa8e?-0x1:_0x2ac293<_0x12674d?0x0:0x1,_0x23561c[_0x2ac293][_0x417e('0x2c')]=_0x2ac293;let _0xaba20b=0x0;for(let _0x4d8967=_0x1af6c3;_0x4d8967<=_0x3cfa8e;_0x4d8967++)0x0==_0x23561c[_0x4d8967][_0x417e('0xba')]?_0x23561c[_0x4d8967][_0x417e('0x51')]=_0xaba20b:(_0xaba20b++,_0x23561c[_0x4d8967][_0x417e('0x51')]=_0xaba20b,_0xaba20b++);for(let _0x148964=_0x1af6c3;_0x148964<_0x5ce387;_0x148964++)0x0==_0x23561c[_0x148964]['side']&&(_0x23561c[_0x148964][_0x417e('0x51')]=_0xaba20b);_0xaba20b=0x0;for(let _0x56d518=_0x5ce387-0x1;_0x56d518>=_0x12674d;_0x56d518--)0x0==_0x23561c[_0x56d518]['distance']?_0x23561c[_0x56d518][_0x417e('0x51')]=_0xaba20b:(_0xaba20b--,_0x23561c[_0x56d518][_0x417e('0x51')]=_0xaba20b,_0xaba20b--);}}[_0x417e('0x106')](_0x1328fb){const _0x14059b=new Map(),_0x141220=this[_0x417e('0xae')]['model'][_0x417e('0xa7')];for(let _0x9db257=0x1;_0x9db257<_0x1328fb[_0x417e('0x9d')];_0x9db257++){let _0xa69ca0,_0x2d306c,_0x389aa3;const _0x1c379f=_0x1328fb[_0x9db257],_0x24149b=_0x1328fb[_0x9db257-0x1];if(_0x417e('0x84')==_0x1c379f[_0x417e('0x5e')])continue;if(_0x1c379f[_0x417e('0x5e')]!=_0x24149b['type'])continue;if(!_0x141220['isBlock'](_0x24149b['item'])||_0x141220[_0x417e('0x4e')](_0x24149b['item']))continue;if(!_0x141220[_0x417e('0x52')](_0x1c379f[_0x417e('0xd5')])||_0x141220[_0x417e('0x4e')](_0x1c379f[_0x417e('0xd5')]))continue;if((_0x1328fb[_0x9db257][_0x417e('0x77')]||_0x1328fb[_0x9db257][_0x417e('0xca')])&&_0x1328fb[_0x9db257-0x1][_0x417e('0xcd')])_0xa69ca0=_0x1328fb[_0x9db257],_0x2d306c=_0x1328fb[_0x9db257-0x1],_0x389aa3=_0x9db257-0x1;else{if(!_0x1328fb[_0x9db257][_0x417e('0xcd')]||!_0x1328fb[_0x9db257-0x1]['isAdded']&&!_0x1328fb[_0x9db257-0x1][_0x417e('0xca')])continue;_0xa69ca0=_0x1328fb[_0x9db257-0x1],_0x2d306c=_0x1328fb[_0x9db257],_0x389aa3=_0x9db257;}const _0x532fd0=_0xa69ca0['level']==_0x2d306c[_0x417e('0x51')],_0x8a1632=Math[_0x417e('0x71')](_0xa69ca0[_0x417e('0x51')])<Math[_0x417e('0x71')](_0x2d306c[_0x417e('0x51')])&&0x0==_0x2d306c[_0x417e('0xba')];(_0x532fd0||_0x8a1632)&&(_0x14059b[_0x417e('0x100')](_0x2d306c['id'],_0xa69ca0['id']),_0x1328fb['splice'](_0x389aa3,0x1),_0x9db257--,_0xa69ca0[_0x417e('0x77')]=!0x1);}for(let _0x25eaa7=0x0;_0x25eaa7<_0x1328fb[_0x417e('0x9d')];_0x25eaa7++)_0x14059b[_0x417e('0xdc')](_0x1328fb[_0x25eaa7]['pairId'])&&(_0x1328fb[_0x25eaa7]['pairId']=_0x14059b[_0x417e('0x24')](_0x1328fb[_0x25eaa7][_0x417e('0x56')]));}[_0x417e('0x8d')](_0x2fe93d){const _0x56406d=new Set(_0x2fe93d['map'](_0x3180b3=>_0x3180b3['id']));for(let _0x29d27e=0x0;_0x29d27e<_0x2fe93d[_0x417e('0x9d')];_0x29d27e++)_0x56406d[_0x417e('0xdc')](_0x2fe93d[_0x29d27e][_0x417e('0x56')])||0x0==_0x2fe93d[_0x29d27e][_0x417e('0xba')]||(_0x2fe93d[_0x29d27e][_0x417e('0x4c')]=!0x0);return _0x2fe93d['filter'](_0x4f8cbe=>!_0x4f8cbe[_0x417e('0x4c')]);}[_0x417e('0x79')](_0x28c6da){const _0x1232f9=new Set();for(let _0x5c7ee9=0x0;_0x5c7ee9<_0x28c6da[_0x417e('0x9d')];_0x5c7ee9++){if(_0x1232f9['has'](_0x28c6da[_0x5c7ee9]['id'])&&_0x28c6da[_0x5c7ee9]['isRemoved']&&(_0x28c6da[_0x5c7ee9]['isIncorrect']=!0x0),_0x28c6da[_0x5c7ee9]['isIncorrect'])continue;if(0x0==_0x28c6da[_0x5c7ee9][_0x417e('0xba')])continue;if(_0x417e('0x3e')!=_0x28c6da[_0x5c7ee9][_0x417e('0x5e')])continue;if(null==_0x28c6da[_0x5c7ee9][_0x417e('0x56')])continue;let _0x5e279c=_0x5c7ee9+0x1,_0x17c1c6=0x0;for(;_0x28c6da[_0x5e279c]['id']!=_0x28c6da[_0x5c7ee9][_0x417e('0x56')];)_0x417e('0x3e')==_0x28c6da[_0x5e279c][_0x417e('0x5e')]?_0x17c1c6++:_0x417e('0xc3')==_0x28c6da[_0x5e279c][_0x417e('0x5e')]&&_0x17c1c6--,_0x5e279c++;if(0x0!=_0x17c1c6){if(_0x28c6da[_0x5c7ee9][_0x417e('0xcd')])_0x28c6da[_0x5c7ee9][_0x417e('0x4c')]=!0x0;else for(;_0x5e279c!=_0x5c7ee9;)_0x28c6da[_0x5e279c][_0x417e('0xcd')]&&0x0!=_0x28c6da[_0x5e279c]['distance']&&(_0x28c6da[_0x5e279c][_0x417e('0x4c')]=!0x0,_0x1232f9[_0x417e('0x48')](_0x28c6da[_0x5e279c][_0x417e('0x56')])),_0x5e279c--;}}return _0x28c6da['filter'](_0x5fb23a=>!_0x5fb23a[_0x417e('0x4c')]);}[_0x417e('0xe1')](_0x2e7b6a){const _0x361fb0=this[_0x417e('0xae')]['model'][_0x417e('0xa7')];for(let _0x684577=0x0;_0x684577<_0x2e7b6a[_0x417e('0x9d')];_0x684577++){if(!(_0x2e7b6a[_0x684577]['isAdded']||_0x2e7b6a[_0x684577]['isAddSuggestion']||_0x2e7b6a[_0x684577][_0x417e('0xcd')]||_0x2e7b6a[_0x684577][_0x417e('0x9')]))continue;if(0x0==_0x2e7b6a[_0x684577][_0x417e('0xba')])continue;const _0x20c2f0=_0x2e7b6a[_0x684577][_0x417e('0xd5')];_0x361fb0[_0x417e('0x52')](_0x20c2f0)||_0x361fb0[_0x417e('0x4e')](_0x20c2f0)||(_0x2e7b6a[_0x684577]['isAdded']&&delete _0x2e7b6a[_0x684577]['isAdded'],_0x2e7b6a[_0x684577][_0x417e('0xca')]&&delete _0x2e7b6a[_0x684577][_0x417e('0xca')],_0x2e7b6a[_0x684577][_0x417e('0x9')]&&delete _0x2e7b6a[_0x684577][_0x417e('0x9')],_0x2e7b6a[_0x684577][_0x417e('0xcd')]&&(_0x2e7b6a[_0x684577][_0x417e('0x4c')]=!0x0));}return _0x2e7b6a[_0x417e('0x97')](_0x485f9e=>!_0x485f9e['isIncorrect']);}[_0x417e('0x96')](_0x2a97ce,_0x30b18c){const _0x31afdc=new _0x399529(),_0x5a52a8=[],_0x5721ac=new Map(),_0x31a279=this['editor'][_0x417e('0x76')],_0x213024=_0x31a279[_0x417e('0xa7')],_0x164b59=[_0x31afdc],_0x5fd555={},_0x40e774={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};for(let _0x139995=0x0;_0x139995<_0x2a97ce[_0x417e('0x9d')];_0x139995++){let _0x3228d4,_0xb43f0f;if(_0x417e('0x3e')===_0x2a97ce[_0x139995]['type']){const _0x2ffaa5=new _0x1b27cc(_0x2a97ce[_0x139995][_0x417e('0xd5')][_0x417e('0x4f')],_0x2a97ce[_0x139995][_0x417e('0xd5')]['getAttributes']());_0x3228d4=_0x31a279[_0x417e('0x5f')](_0x164b59[0x0],_0x417e('0xc2')),_0x51ea26(_0x3228d4,_0x2ffaa5),_0xb43f0f=_0x31a279['createPositionAt'](_0x2ffaa5,0x0),_0x164b59[_0x417e('0x7a')](_0x2ffaa5);}else{if(_0x417e('0xc3')===_0x2a97ce[_0x139995][_0x417e('0x5e')]){const _0x3f6d2c=_0x164b59[_0x417e('0xdf')]();_0x3228d4=_0x31a279['createPositionAt'](_0x3f6d2c,_0x417e('0xc2')),_0xb43f0f=_0x31a279[_0x417e('0xaa')](_0x3f6d2c);}else{const _0x141ec4=new _0x1eb788(_0x2a97ce[_0x139995][_0x417e('0xd5')][_0x417e('0xf3')],_0x2a97ce[_0x139995][_0x417e('0xd5')][_0x417e('0xc8')]());_0x3228d4=_0x31a279[_0x417e('0x5f')](_0x164b59[0x0],_0x417e('0xc2')),_0x51ea26(_0x3228d4,_0x141ec4),_0xb43f0f=_0x3228d4[_0x417e('0x42')](_0x2a97ce[_0x139995][_0x417e('0xd5')][_0x417e('0xe4')]);}}for(const _0x39b90e of _0x2a97ce[_0x139995][_0x417e('0x8f')])_0x5721ac[_0x417e('0x100')](_0x39b90e,{'start':_0x3228d4,'end':null});_0x548e0d(_0x417e('0x9'),_0x139995,_0x3228d4,_0xb43f0f),_0x548e0d(_0x417e('0xca'),_0x139995,_0x3228d4,_0xb43f0f),_0x548e0d(_0x417e('0xcd'),_0x139995,_0x3228d4,_0xb43f0f),_0x548e0d(_0x417e('0x77'),_0x139995,_0x3228d4,_0xb43f0f);for(const _0x136e53 of _0x2a97ce[_0x139995][_0x417e('0x61')]){_0x5721ac[_0x417e('0x24')](_0x136e53)['end']=_0xb43f0f;}}for(const [_0x5e7863,_0x47bf12]of _0x5721ac){const _0x57c2ae=this[_0x417e('0xae')][_0x417e('0x76')][_0x417e('0x36')](_0x47bf12[_0x417e('0x65')],_0x47bf12['end']);_0x31afdc[_0x417e('0xad')][_0x417e('0x100')](_0x5e7863,_0x57c2ae);}return _0x5a52a8['sort']((_0x2e51ca,_0x497d74)=>{const _0x4a20b9=_0x31afdc[_0x417e('0xad')][_0x417e('0x24')]('revision:'+_0x2e51ca['id']),_0x42b8e2=_0x31afdc[_0x417e('0xad')][_0x417e('0x24')](_0x417e('0xa5')+_0x497d74['id']);return _0x4a20b9[_0x417e('0x65')][_0x417e('0x28')](_0x42b8e2[_0x417e('0x65')])?-0x1:_0x4a20b9[_0x417e('0x65')][_0x417e('0x5c')](_0x42b8e2[_0x417e('0x65')])?0x1:_0x4a20b9['end'][_0x417e('0x28')](_0x42b8e2[_0x417e('0xc2')])?-0x1:_0x4a20b9[_0x417e('0xc2')]['isAfter'](_0x42b8e2[_0x417e('0xc2')])?0x1:_0x417e('0x48')===_0x2e51ca[_0x417e('0x5e')]?-0x1:0x1;}),{'root':_0x31afdc,'changes':_0x5a52a8};function _0x548e0d(_0x4e3f38,_0x160126,_0x3ac638,_0x49489b){const _0x3be0a3=!!_0x2a97ce[_0x160126][_0x4e3f38],_0x147870=_0x3be0a3?_0x2a97ce[_0x160126][_0x4e3f38][_0x417e('0xd9')]:null,_0x3c671e=_0x160126===_0x2a97ce['length']-0x1,_0xf5d249=_0x40e774[_0x4e3f38][0x0],_0x43f61f=_0x213024['isObject'](_0x2a97ce[_0x160126][_0x417e('0xd5')]);!_0x5fd555[_0x4e3f38]&&_0x3be0a3?_0x5fd555[_0x4e3f38]={'start':_0x3ac638,'tapeItem':_0x2a97ce[_0x160126],'userId':_0x147870,'type':_0x4e3f38}:_0x5fd555[_0x4e3f38]&&!_0x3be0a3?(_0x5fd555[_0x4e3f38][_0x417e('0xc2')]=_0x3ac638,_0x2a0671(_0x5fd555[_0x4e3f38]),_0x5fd555[_0x4e3f38]=null):_0x5fd555[_0x4e3f38]&&_0x3be0a3&&_0x5fd555[_0x4e3f38][_0x417e('0xd9')]!==_0x147870&&(_0x5fd555[_0x4e3f38][_0x417e('0xc2')]=_0x3ac638,_0xf5d249&&_0xf5d249['userId']===_0x5fd555[_0x4e3f38][_0x417e('0xd9')]||_0x2a0671(_0x5fd555[_0x4e3f38]),_0x5fd555[_0x4e3f38]={'start':_0x3ac638,'tapeItem':_0x2a97ce[_0x160126],'userId':_0x147870,'type':_0x4e3f38}),_0x5fd555[_0x4e3f38]&&_0x43f61f&&(_0x417e('0x3e')!==_0x2a97ce[_0x160126][_0x417e('0x5e')]||_0xf5d249&&_0xf5d249[_0x417e('0xd9')]===_0x147870||_0x40e774[_0x4e3f38][_0x417e('0x7a')]({'userId':_0x147870,'object':_0x2a97ce[_0x160126][_0x417e('0xd5')],'change':_0x5fd555[_0x4e3f38]}),_0x417e('0xc3')===_0x2a97ce[_0x160126]['type']&&_0xf5d249&&_0xf5d249['object']===_0x2a97ce[_0x160126][_0x417e('0xd5')]&&(_0x40e774[_0x4e3f38]['shift'](),_0x5fd555[_0x4e3f38]=_0xf5d249[_0x417e('0x5b')])),_0x5fd555[_0x4e3f38]&&_0x3c671e&&(_0x5fd555[_0x4e3f38][_0x417e('0xc2')]=_0x49489b,_0x2a0671(_0x5fd555[_0x4e3f38]),_0x5fd555[_0x4e3f38]=null);}function _0x2a0671({start:_0x917c2e,end:_0x5ce5d1,tapeItem:_0x5778cf,userId:_0x440333,type:_0x2295bb}){const _0x168eb7=_0x5778cf['item'],_0x295115=_0x31a279[_0x417e('0xa7')]['isBlock'](_0x168eb7)&&!_0x31a279[_0x417e('0xa7')]['isLimit'](_0x168eb7),_0x10a1de=_0x917c2e[_0x417e('0x2f')]==_0x5ce5d1[_0x417e('0xe8')]&&_0x5ce5d1[_0x417e('0x81')];if(_0x295115&&_0x10a1de)return;const _0x52344f=_0x31a279['createRange'](_0x917c2e,_0x5ce5d1),_0x2a84a7=_0x30b18c[_0x417e('0x24')](_0x440333),_0x2868e1=new _0x39b132({'author':_0x2a84a7,'type':_0x417e('0x77')==_0x2295bb||_0x417e('0xca')==_0x2295bb?_0x417e('0x48'):'remove','data':{'isSuggestion':_0x417e('0xca')==_0x2295bb||'isRemoveSuggestion'==_0x2295bb},'createdAt':new Date()});_0x5a52a8['push'](_0x2868e1),_0x31afdc[_0x417e('0xad')]['set'](_0x417e('0xa5')+_0x2868e1['id'],_0x52344f);}}[_0x417e('0xb5')](){this[_0x417e('0xae')][_0x417e('0x7f')][_0x417e('0xe7')](_0x417e('0x25'))[_0x417e('0x3f')]({'view':'revision'}),this[_0x417e('0xae')][_0x417e('0x7f')]['for'](_0x417e('0x43'))['markerToHighlight']({'model':'revision','view':_0x4557d3=>{const _0x39e7e8=_0x4557d3[_0x417e('0x83')][_0x417e('0x75')](':')[0x1],_0x15b61d=this[_0x417e('0x9e')](_0x39e7e8);if(!_0x15b61d)return null;const _0x31c775=_0x417e('0x48')==_0x15b61d[_0x417e('0x5e')]?'insertion':_0x417e('0xf0'),_0xdfac3c=[_0x417e('0x7d'),_0x417e('0x1a')+_0x31c775];return _0x15b61d[_0x417e('0xf3')]['isSuggestion']&&_0xdfac3c['push']('ck-suggestion-marker-'+_0x31c775+_0x417e('0xea')),this[_0x417e('0xc7')]==_0x15b61d&&_0xdfac3c[_0x417e('0x104')](_0x417e('0x85')),{'classes':_0xdfac3c,'attributes':{'data-change-id':_0x39e7e8}};}}),this[_0x417e('0xae')][_0x417e('0x7f')]['for']('upcast')[_0x417e('0x48')](_0x490acb=>{_0x490acb['on'](_0x417e('0xfc'),(_0x42fb76,_0x529245,_0x43132e)=>{const _0x15baae=_0x529245['viewItem'][_0x417e('0x6f')](0x0);if(!_0x15baae||!_0x15baae['is'](_0x417e('0xd7'),_0x417e('0xc4')))return;if(!_0x43132e[_0x417e('0x2')][_0x417e('0xc5')](_0x15baae,{'attributes':[_0x417e('0xc9'),_0x417e('0xa9')]}))return;const _0x2d86f5=_0x529245['modelRange'][_0x417e('0x65')][_0x417e('0x2f')];_0x43132e[_0x417e('0xc0')]['setAttribute'](_0x417e('0xc9'),_0x15baae[_0x417e('0x46')](_0x417e('0xc9')),_0x2d86f5),_0x43132e[_0x417e('0xc0')][_0x417e('0x82')](_0x417e('0xa9'),_0x15baae['getAttribute'](_0x417e('0xa9')),_0x2d86f5);},{'priority':_0x417e('0x105')});}),this[_0x417e('0xae')][_0x417e('0x7f')][_0x417e('0xe7')](_0x417e('0x25'))[_0x417e('0x48')](_0x9ff3c6=>{_0x9ff3c6['on'](_0x417e('0xd7'),(_0xf41322,_0x1bda72,_0x2b111b)=>{if(!_0x2b111b['consumable'][_0x417e('0xc5')](_0x1bda72['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1bda72[_0x417e('0xe')][_0x417e('0xd2')])return;const _0x5cec47=_0x1bda72[_0x417e('0xe')]['start'][_0x417e('0x2f')];_0x5cec47[_0x417e('0xbc')](_0x417e('0xc9'))||_0x5cec47['hasAttribute'](_0x417e('0x7e'))||(_0x2b111b[_0x417e('0xc0')][_0x417e('0x82')](_0x417e('0xc9'),_0x1bda72[_0x417e('0x0')][_0x417e('0x46')](_0x417e('0xc9')),_0x5cec47),_0x2b111b[_0x417e('0xc0')][_0x417e('0x82')]('vid_end',_0x1bda72['viewItem'][_0x417e('0x46')](_0x417e('0xa9')),_0x5cec47));},{'priority':'low'});}),this[_0x417e('0xae')]['conversion'][_0x417e('0xe7')](_0x417e('0x25'))[_0x417e('0x6a')]({'view':{'name':_0x417e('0x53'),'attributes':{'vid':!0x0}},'model':{'key':_0x417e('0x7e'),'value':_0xc8e268=>_0xc8e268[_0x417e('0x46')](_0x417e('0x7e'))}}),this[_0x417e('0xae')]['model'][_0x417e('0xa7')]['on'](_0x417e('0x2b'),(_0x4f938d,[,_0x2e52e1])=>{['vid_start',_0x417e('0xa9'),_0x417e('0x7e')][_0x417e('0x87')](_0x2e52e1)&&(_0x4f938d[_0x417e('0xbb')]=!0x0,_0x4f938d[_0x417e('0xe9')]());},{'priority':_0x417e('0x63')}),this[_0x417e('0xae')]['conversion'][_0x417e('0xe7')]('dataDowncast')['add'](_0x1f8874=>{_0x1f8874['on']('attribute:vid',(_0x42970c,_0x4cb5a7,_0x57a756)=>{if('\x20'!=_0x4cb5a7[_0x417e('0xd5')]['data']||_0x4cb5a7['item']['parent'][_0x417e('0xf7')]>0x1)return;if(!_0x57a756[_0x417e('0x2')][_0x417e('0xc5')](_0x4cb5a7[_0x417e('0xd5')],_0x42970c[_0x417e('0x4f')]))return;const _0x202759=_0x57a756[_0x417e('0xc0')],_0x4839d8=_0x57a756[_0x417e('0xf9')][_0x417e('0xd3')](_0x4cb5a7[_0x417e('0x21')]);_0x202759[_0x417e('0x6e')](_0x4839d8,_0x202759[_0x417e('0x4')](_0x417e('0x53')));});}),this[_0x417e('0xae')][_0x417e('0x7f')]['for']('dataDowncast')['markerToData']({'model':_0x417e('0xe6')}),this['editor'][_0x417e('0x2e')][_0x417e('0x9f')]['on'](_0x417e('0xce'),function(_0x3f533b){const _0x4714b2=_0x3f533b['plugins'][_0x417e('0x24')](_0x417e('0xf2'));return(_0x363efd,_0x270c6b,_0x4d4e0f)=>{const _0x48a56d=_0x270c6b[_0x417e('0x83')][_0x417e('0x75')](':')[0x1],_0x33be4a=_0x4714b2[_0x417e('0x9e')](_0x48a56d);if(!_0x33be4a)return null;const _0x2f7124=_0x417e('0x48')==_0x33be4a[_0x417e('0x5e')]?_0x417e('0x75'):'merge';if(!_0x4d4e0f[_0x417e('0x2')][_0x417e('0xd4')](_0x270c6b[_0x417e('0x16')],_0x363efd[_0x417e('0x4f')]))return;const _0x57f0aa=_0x270c6b[_0x417e('0x16')][_0x417e('0xe2')](),_0x1302ad=_0x270c6b['markerRange']['start'],_0x34a385=_0x3f533b[_0x417e('0x76')]['schema'];let _0x11e159=null,_0x52d3ee=null,_0x599e3c=!0x1,_0x38e7c8=!0x1;for(const _0x4951ba of _0x57f0aa){const _0x5ef510=_0x4951ba[_0x417e('0xd5')];_0x599e3c=_0x599e3c||_0x34a385[_0x417e('0x44')](_0x5ef510);const _0x132f52=_0x4d4e0f[_0x417e('0xf9')][_0x417e('0xcf')](_0x5ef510);if(_0x132f52&&_0x132f52[_0x417e('0xa')]('addHighlight'))return;_0x417e('0xc3')==_0x4951ba[_0x417e('0x5e')]&&(_0x34a385[_0x417e('0x52')](_0x5ef510)&&!_0x34a385[_0x417e('0x4e')](_0x5ef510)&&(_0x5ef510['nextSibling']||_0x1302ad['isAtEnd']?_0x11e159&&_0x11e159['parent']==_0x5ef510||(_0x11e159=_0x5ef510,_0xabd9f1(_0x4951ba[_0x417e('0xb4')]),_0x38e7c8=!0x0):_0x52d3ee=_0x52d3ee||_0x4951ba[_0x417e('0xb4')]));}function _0xabd9f1(_0x1b4451){const _0x3c196b=_0x4d4e0f[_0x417e('0xc0')]['createUIElement']('span',{'class':_0x417e('0x1a')+_0x2f7124}),_0x1f1e3d=_0x4d4e0f[_0x417e('0xf9')][_0x417e('0x58')](_0x1b4451);_0x33be4a[_0x417e('0xf3')][_0x417e('0x74')]&&_0x4d4e0f[_0x417e('0xc0')]['addClass'](_0x417e('0x1a')+_0x2f7124+_0x417e('0xea'),_0x3c196b),_0x4714b2[_0x417e('0xc7')]==_0x33be4a&&_0x4d4e0f[_0x417e('0xc0')][_0x417e('0x49')](_0x417e('0x85'),_0x3c196b),_0x4d4e0f[_0x417e('0xc0')]['insert'](_0x1f1e3d,_0x3c196b),_0x4d4e0f[_0x417e('0xf9')][_0x417e('0x1f')](_0x3c196b,_0x270c6b[_0x417e('0x83')]);}_0x599e3c||_0x38e7c8||!_0x52d3ee||_0xabd9f1(_0x52d3ee);};}(this[_0x417e('0xae')]),{'priority':_0x417e('0xa0')}),this[_0x417e('0xae')][_0x417e('0x2e')]['downcastDispatcher']['on'](_0x417e('0x93'),(_0x6ca32e,_0xec8613,_0x262e22)=>{const _0x19424b=_0x262e22[_0x417e('0xf9')]['markerNameToElements'](_0xec8613[_0x417e('0x83')]);if(_0x19424b)for(const _0xcd23bb of _0x19424b)(_0xcd23bb[_0x417e('0x3c')]('ck-suggestion-marker-split')||_0xcd23bb[_0x417e('0x3c')]('ck-suggestion-marker-merge'))&&(_0x262e22[_0x417e('0xf9')][_0x417e('0x95')](_0xcd23bb,_0xec8613[_0x417e('0x83')]),_0x262e22['writer'][_0x417e('0x1e')](_0xcd23bb));},{'priority':_0x417e('0xa0')}),this['editor'][_0x417e('0x2e')][_0x417e('0x9f')]['on'](_0x417e('0xce'),(_0x51e74a,_0x1d2a13,_0x199a25)=>{const _0x5da68e=_0x1d2a13[_0x417e('0x83')][_0x417e('0x75')](':')[0x1],_0xd83c3a=this[_0x417e('0x9e')](_0x5da68e);if(!_0xd83c3a)return null;const _0x4999d0='add'==_0xd83c3a[_0x417e('0x5e')]?_0x417e('0x75'):'merge';if(_0x199a25['consumable'][_0x417e('0xd4')](_0x1d2a13[_0x417e('0x16')],_0x51e74a[_0x417e('0x4f')]))for(const _0x3fde04 of _0x1d2a13[_0x417e('0x16')][_0x417e('0xaf')]()){if(!_0x3fde04['is']('element',_0x417e('0xa3')))continue;const _0x5e201e=_0x199a25[_0x417e('0xc0')][_0x417e('0xf5')](_0x417e('0x53'),{'class':_0x417e('0x1a')+_0x4999d0}),_0x1b3570=_0x199a25['mapper'][_0x417e('0x58')](this[_0x417e('0xae')]['model'][_0x417e('0x2d')](_0x3fde04));_0xd83c3a['data'][_0x417e('0x74')]&&_0x199a25[_0x417e('0xc0')]['addClass'](_0x417e('0x1a')+_0x4999d0+_0x417e('0xea'),_0x5e201e),this[_0x417e('0xc7')]==_0xd83c3a&&_0x199a25[_0x417e('0xc0')][_0x417e('0x49')]('ck-suggestion-marker--active',_0x5e201e),_0x199a25[_0x417e('0xc0')][_0x417e('0xec')](_0x1b3570,_0x5e201e),_0x199a25[_0x417e('0xf9')]['bindElementToMarker'](_0x5e201e,_0x1d2a13[_0x417e('0x83')]);}},{'priority':_0x417e('0xa0')}),this[_0x417e('0xae')]['conversion'][_0x417e('0xe7')](_0x417e('0x25'))[_0x417e('0x3f')]({'view':_0x417e('0x99')}),this[_0x417e('0xae')]['conversion'][_0x417e('0xe7')]('dataDowncast')[_0x417e('0x10')]({'model':_0x417e('0x99')}),this[_0x417e('0xae')][_0x417e('0x7f')][_0x417e('0xe7')](_0x417e('0x43'))[_0x417e('0x90')]({'model':'suggestion','view':_0x44ba43=>{const _0x1edd92=_0x44ba43[_0x417e('0x83')][_0x417e('0x75')](':')[0x1];return _0x417e('0xbf')!=_0x1edd92&&'deletion'!=_0x1edd92?null:{'classes':['ck-suggestion-preview-marker',_0x417e('0x80')+_0x1edd92]};}}),this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x9f')]['on']('addMarker:suggestion:deletion',q(this[_0x417e('0xae')],_0x417e('0x55')),{'priority':_0x417e('0xa0')}),this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x9f')]['on'](_0x417e('0x3d'),q(this[_0x417e('0xae')],_0x417e('0x75')),{'priority':_0x417e('0xa0')}),this[_0x417e('0xae')][_0x417e('0x2e')][_0x417e('0x9f')]['on']('removeMarker:suggestion',(_0x1bf960,_0x7ab99c,_0x1200fc)=>{const _0x3abc3b=_0x1200fc[_0x417e('0xf9')][_0x417e('0x3b')](_0x7ab99c['markerName']);if(_0x3abc3b)for(const _0xd54e11 of _0x3abc3b)_0xd54e11['is'](_0x417e('0x72'))&&(_0x1200fc[_0x417e('0xf9')][_0x417e('0x95')](_0xd54e11,_0x7ab99c[_0x417e('0x83')]),_0x1200fc['writer'][_0x417e('0x1e')](_0xd54e11));},{'priority':_0x417e('0xa0')});}[_0x417e('0x9e')](_0x4b8778){return this[_0x417e('0x68')]['get'](_0x4b8778);}['_getViewForChange'](_0x4849aa){this[_0x417e('0xa2')]&&this[_0x417e('0xa2')][_0x417e('0x73')](),this[_0x417e('0xa2')]=new _0x4d7cf3(this[_0x417e('0xae')][_0x417e('0xc')],_0x4849aa);const _0x226a70=this[_0x417e('0xae')]['model'][_0x417e('0xad')][_0x417e('0x24')]('revision:'+_0x4849aa['id']);return this[_0x417e('0xa2')][_0x417e('0x8')]=()=>_0x105830(this[_0x417e('0xae')][_0x417e('0x2e')],_0x226a70),this[_0x417e('0xa2')];}[_0x417e('0x11')](){this['editor'][_0x417e('0x76')]['document'][_0x417e('0x34')][_0x417e('0xfb')]('revision'),this['on']('change:activeView',(_0x228099,_0x32183a,_0x26b2e2,_0x4085e6)=>{_0x4085e6&&this[_0x417e('0x5d')][_0x417e('0x1e')](_0x4085e6),_0x26b2e2&&(this[_0x417e('0x5d')]['add']({'view':_0x26b2e2,'stackId':_0x417e('0x18'),'position':{'target':_0x26b2e2[_0x417e('0x8')]}}),this[_0x417e('0x5d')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x417e('0xb1'),(_0xb49b19,_0x4e51d1,_0x445575,_0xbdecb9)=>{this[_0x417e('0x33')]=_0x445575?this[_0x417e('0x9c')](_0x445575):null,this[_0x417e('0xae')]['model'][_0x417e('0x5b')](()=>{const _0x909990=this[_0x417e('0xae')]['editing'];_0xbdecb9&&_0x909990['reconvertMarker']('revision:'+_0xbdecb9['id']),_0x445575&&_0x909990[_0x417e('0xbd')](_0x417e('0xa5')+_0x445575['id']);});}),this[_0x417e('0x32')](this['editor'][_0x417e('0x2e')][_0x417e('0x78')]['document'],_0x417e('0x47'),(_0x261ace,_0x12b4e5)=>{if(this['activeChange'])return;const _0x17dec3=this[_0x417e('0x41')](_0x12b4e5['target']),_0x17ed13=this['_changeIdToChange'][_0x417e('0x24')](_0x17dec3);this[_0x417e('0x33')]=_0x17ed13?this['_getViewForChange'](_0x17ed13):null;}),this[_0x417e('0x32')](this[_0x417e('0xae')]['editing'][_0x417e('0x78')]['document'],'mousedown',(_0x3a0bb9,_0x11f7b4)=>{const _0x296bce=this[_0x417e('0x41')](_0x11f7b4[_0x417e('0x1c')]),_0x31c836=this['_changeIdToChange'][_0x417e('0x24')](_0x296bce);this[_0x417e('0xc7')]=_0x31c836||null;});}[_0x417e('0x41')](_0x9028df){do{const _0x7b5c74=_0x9028df[_0x417e('0x46')](_0x417e('0xeb'));if(_0x7b5c74)return _0x7b5c74;_0x9028df=_0x9028df[_0x417e('0xe8')];}while(_0x9028df);return null;}[_0x417e('0x60')](){this['editor'][_0x417e('0x76')][_0x417e('0x5b')](_0x303998=>{for(const _0x377648 of this[_0x417e('0xae')][_0x417e('0x76')]['markers'])_0x303998['removeMarker'](_0x377648);});}}function q(_0x5f4b9c,_0x5caf0f){return(_0x51ddd3,_0x2eebb2,_0xfed8aa)=>{if(!_0xfed8aa[_0x417e('0x2')][_0x417e('0xd4')](_0x2eebb2[_0x417e('0x16')],_0x51ddd3[_0x417e('0x4f')]))return;const _0x5bf363=_0x2eebb2[_0x417e('0x16')][_0x417e('0xe2')](),_0x176e95=_0x2eebb2['markerRange'][_0x417e('0x65')],_0x4ed563=_0x5f4b9c[_0x417e('0x76')][_0x417e('0xa7')];let _0x32e77a=null,_0x5313f6=null,_0x585374=!0x1,_0x294feb=!0x1;for(const _0x1a7c9f of _0x5bf363){const _0x400416=_0x1a7c9f[_0x417e('0xd5')];_0x585374=_0x585374||_0x4ed563['isContent'](_0x400416);const _0x15d8a8=_0xfed8aa[_0x417e('0xf9')][_0x417e('0xcf')](_0x400416);if(_0x15d8a8&&_0x15d8a8[_0x417e('0xa')](_0x417e('0x57')))return;_0x417e('0xc3')==_0x1a7c9f[_0x417e('0x5e')]&&(_0x4ed563[_0x417e('0x52')](_0x400416)&&!_0x4ed563[_0x417e('0x4e')](_0x400416)&&(_0x400416[_0x417e('0xb6')]||_0x176e95[_0x417e('0xcb')]?_0x32e77a&&_0x32e77a[_0x417e('0xe8')]==_0x400416||(_0x32e77a=_0x400416,_0x1c5d9a(_0x1a7c9f[_0x417e('0xb4')]),_0x294feb=!0x0):_0x5313f6=_0x5313f6||_0x1a7c9f[_0x417e('0xb4')]));}function _0x1c5d9a(_0x58704f){const _0x5a4d87=_0xfed8aa[_0x417e('0xf9')]['toViewPosition'](_0x58704f),_0x46cf3d=_0xfed8aa[_0x417e('0xc0')][_0x417e('0xf5')](_0x417e('0x53'),{'class':'ck-suggestion-preview-marker-'+_0x5caf0f});_0xfed8aa['writer']['insert'](_0x5a4d87,_0x46cf3d),_0xfed8aa[_0x417e('0xf9')][_0x417e('0x1f')](_0x46cf3d,_0x2eebb2[_0x417e('0x83')]);}_0x585374||_0x294feb||!_0x5313f6||_0x1c5d9a(_0x5313f6);};}_0x305c76(R,_0xadd479);class z extends _0x1f4fbf{constructor(_0x526f0d){super(_0x526f0d);const _0x968890=_0x526f0d[_0x417e('0x6b')][_0x417e('0x24')](R);this[_0x417e('0xbe')](_0x526f0d,_0x417e('0x101')),this['clearForceDisabled'](_0x417e('0x7c')),this[_0x417e('0x32')](_0x968890,'change:isReady',()=>this[_0x417e('0x86')]()),this[_0x417e('0x32')](_0x968890,_0x417e('0x40'),()=>this[_0x417e('0x86')]());}[_0x417e('0xac')](){const _0x53e098=this[_0x417e('0xae')],_0x412b79=_0x53e098[_0x417e('0x6b')][_0x417e('0x24')](R),_0x5a608a=_0x412b79['isReady']?_0x412b79[_0x417e('0x54')]['newRevisionId']:null;_0x53e098[_0x417e('0x45')][_0x417e('0x24')](_0x417e('0x3'))['restoreRevisionCallback'](_0x5a608a);}[_0x417e('0x86')](){const {isReady:_0x9c215e,isEnabled:_0x26d878}=this[_0x417e('0xae')]['plugins'][_0x417e('0x24')](R);this[_0x417e('0x26')]=_0x9c215e&&_0x26d878;}}class B extends _0x1f4fbf{constructor(_0x548ee9,{direction:_0x29814c}){super(_0x548ee9);const _0x34bf21=_0x548ee9[_0x417e('0x6b')][_0x417e('0x24')](R);this[_0x417e('0xbe')](_0x548ee9,_0x417e('0x101')),this['clearForceDisabled']('readOnlyMode'),this[_0x417e('0x69')]=_0x417e('0x8b')===_0x29814c?0x1:-0x1,this[_0x417e('0x32')](_0x34bf21,_0x417e('0x5'),()=>this[_0x417e('0x86')]()),this[_0x417e('0x32')](_0x34bf21,_0x417e('0x40'),()=>this[_0x417e('0x86')]());}['execute'](){const _0x33f92d=this[_0x417e('0xae')],_0x37e33c=_0x33f92d['plugins']['get'](R),{isNavigationMode:_0xed229a,currentChangeNumber:_0x4e9baf}=_0x37e33c;_0x37e33c[_0x417e('0xc7')]=_0xed229a?_0x37e33c[_0x417e('0x54')][_0x417e('0x7')]['get'](_0x4e9baf+this['_step']):_0x37e33c[_0x417e('0x54')][_0x417e('0x7')]['first'];const _0x560104=_0x33f92d['model'][_0x417e('0xad')][_0x417e('0x24')](_0x417e('0xa5')+_0x37e33c[_0x417e('0xc7')]['id']),_0x3e7fbe=_0x105830(_0x33f92d['editing'],_0x560104);_0x108b69({'target':_0x3e7fbe,'viewportOffset':0x28});}[_0x417e('0x86')](){const {isNavigationMode:_0x197d39,currentChangeNumber:_0x210a42,numberOfChanges:_0x1e7746,isReady:_0x29879e,isEnabled:_0x59bf6f}=this[_0x417e('0xae')][_0x417e('0x6b')]['get'](R);this[_0x417e('0x26')]=!!(_0x59bf6f&&_0x29879e&&_0x1e7746)&&(!_0x197d39||(0x1===this[_0x417e('0x69')]?_0x210a42<_0x1e7746-0x1:_0x210a42>0x0));}}
|
|
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));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
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;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
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});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{LabeledFieldView as
|
|
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']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
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')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{
|
|
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;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
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;});}}
|