@ckeditor/ckeditor5-revision-history 35.4.0 → 36.0.1
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/build/revision-history.js +2 -2
- package/build/translations/ug.js +1 -1
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +2 -2
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +7 -7
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +2 -2
- package/src/editor/revisionviewereditoruiview.js +2 -2
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +2 -2
- package/src/revisionhistory.js +2 -2
- package/src/revisionsrepository.js +2 -2
- package/src/revisiontracker.js +2 -2
- package/src/revisionviewer.js +2 -2
- package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
- package/src/ui/revision/revisionauthorview.js +2 -2
- package/src/ui/revision/revisionnameview.js +2 -2
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +2 -2
- package/src/ui/revision/subrevisionview.js +2 -2
- package/src/ui/revision/utils.js +2 -2
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
- package/src/ui/revisionssidebar/utils.js +2 -2
- package/src/ui/revisionviewer/changedetailsview.js +2 -2
- package/src/ui/revisionviewer/changesnavigationview.js +2 -2
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
- package/src/ui/revisionviewer/revisionviewerui.js +2 -2
- package/src/utils/common-translations.js +2 -2
package/src/revisionviewer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2959=['ck-suggestion-preview-marker-','vid_end','addMarker:revision-suggestion:deletion','showPreviousChange','removeMarker:revision','previousPosition','RevisionViewer','createPositionFromPath','createRangeIn','pluginName','enqueueChange','_changeView','test','getAttribute','isRemoveSuggestion','pop','span','nextPosition','length','setAttribute','delete','split','for','ck-suggestion-marker-merge','deletion','_markInsertions','pairId','getIndex','merge','_markSuggestions','createUIElement','_setDistance','range','writer','<p></p>','_removeRevisionMarkers','startIndex','ck-suggestion-marker-split','attribute:vid','restoreRevisionCallback','nodeAfter','parent','change:activeChange','ck-suggestion-marker-','isAfter','oldRevisionId','uiElement','collaboration.channelId','revision-suggestion:','isAtEnd','getRootNames','WidgetToolbarRepository','low','vid','checkAttribute','markersEnd','getRoot','isBefore','revision-end','selection','unshift','commands','string','element','_getRevisionsRange','_revisions','_refreshStartEndIndex','getAttributes','locale','diffData','isBlock','observeMarkers','markerRange','elementToAttribute','_fixObsoleteTags','_findChangeIdFromDomTarget','getWalker','processor','destroy','enableReadOnlyMode','restoreRevision','ck-editor__editable__overlay','isEnabled','nextSibling','consumable','toViewElement','readOnlyMode','document','children','config','shift','index','model','removeMarker:revision-suggestion','setData','isInline','markerToHighlight','removeClass','highest','level','diff','_appendChild','addHighlight','name','refresh','showStack','markers','suggestion:','viewItem','high','error','softBreak','getChild','revision-start','upcast','_setConversion','roots','type','getRevision','return','text','then','set','addMarker:revision-suggestion:insertion','sort','_getChangeFromId','_step','insertions','change:isEnabled','abs','side','change','revision-viewer','bind','editing','dataDowncast','isAtStart','repository','view','done','change:isReady','data-change-id','startsWith','splice','isContent','addRevision','execute','maxOffset','isAddSuggestion','stop','deletions','change:activeView','init','comment','changes','object','_processTape','mapper','isAdded','revision:','data-revision-','activeView','clearForceDisabled','has','endIndex','plugins','_makeModelFromTape','remove','push','_markMarkers','ck-suggestion-marker','data','end','keys','_removeUnsupportedChanges','_target','dataToMarker','toViewPosition','resolve','elementStart','schema','insert','conversion','isEqual','offsetSize','ck-suggestion-preview-marker','forEach','distance','wrap','isObject','map','unbindElementFromMarkerName','vid_start','change:numberOfChanges','ck-suggestion-marker--active','parse','all','slice','first','editor','listenTo','catch','hasClass','toData','markerName','_changeIdToChange','addClass','forceDisabled','revisionHistoryLabel','includes','isReady','change:isReadOnly','hasAttribute','_threeWayMerge','isLimit','-new','_cleanUp','newRevisionId','start','filter','_balloon','createAttributeElement','next','isRemoved','_getViewObj','_markMismatchedRemovedTags','_getDiff','add','getItems','_makeTape','_removeMissingPairs','_makeModelFromViewString','requires','isCollapsed','default','markerNameToElements','mousedown','createRange','target','removeMarker','loadRevisionData','consume','modelRange','numberOfChanges','revision-suggestion','get','markerToData','_joinTapes','forward','insertion','elementEnd','userId','downcastDispatcher','isIncorrect','item','revision','code','isSuggestion','concat','showNextChange','suggestion','createRevision','clear','adapter','reconvertMarker','getCustomProperty','bindElementToMarker','markersStart','activeChange','from','attributes','_update','_initInteractions'];(function(_0x24fcc1,_0x2959e1){const _0x1294bd=function(_0x184096){while(--_0x184096){_0x24fcc1['push'](_0x24fcc1['shift']());}};_0x1294bd(++_0x2959e1);}(_0x2959,0xff));const _0x1294=function(_0x24fcc1,_0x2959e1){_0x24fcc1=_0x24fcc1-0x0;let _0x1294bd=_0x2959[_0x24fcc1];return _0x1294bd;};import{Plugin as _0x2215de,Command as _0x4474a2}from'ckeditor5/src/core';import{ObservableMixin as _0x518962,mix as _0x29ec24,scrollViewportToShowTarget as _0x5eebd0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5ebcec}from'ckeditor5/src/ui';import{DocumentFragment as _0x271f2f,Element as _0x5b1c31,Text as _0x4b240a,ViewDocumentFragment as _0x1f5ced,ViewText as _0x4e5cb1,ViewElement as _0x501357,ViewContainerElement as _0x2f9a5c,ViewAttributeElement as _0x589465,ViewEmptyElement as _0x4fe8d8,ViewRawElement as _0x117a84,ViewUIElement as _0x5036a7}from'ckeditor5/src/engine';import{Users as _0x166c51,getMarkerDomElement as _0xdd8ba6}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ea0d4 from'./ui/revisionviewer/changedetailsview';import _0x3c977e from'./revisionsrepository';import _0x560c95 from'./changeitem';import _0x4155b3 from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0x2f9a5c,'a':_0x589465,'e':_0x4fe8d8,'r':_0x117a84,'u':_0x5036a7};export default class w extends _0x2215de{static get[_0x1294('0x1b')](){return _0x1294('0x18');}static get[_0x1294('0xfa')](){return[_0x166c51,_0x5ebcec,_0x3c977e];}constructor(..._0x34d4e8){super(..._0x34d4e8),this[_0x1294('0x9b')]=this['editor'][_0x1294('0xb7')][_0x1294('0x107')]('RevisionsRepository'),this[_0x1294('0x8c')](_0x1294('0xd'),null),this[_0x1294('0x8c')]('activeView',null),this['set'](_0x1294('0x76'),null),this['set'](_0x1294('0xe4'),!0x1),this['set'](_0x1294('0x64'),!0x0),this['on'](_0x1294('0x92'),(_0x354466,_0x376496,_0x1e4f7c)=>{this[_0x1294('0xd')]=null,this[_0x1294('0xb3')]=null,this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x9c')][_0x1294('0x95')](_0x306386=>{for(const _0x422c8d of this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x9c')][_0x1294('0x69')][_0x1294('0x86')])_0x1e4f7c?_0x306386[_0x1294('0x73')](_0x1294('0x63'),_0x422c8d):_0x306386['addClass'](_0x1294('0x63'),_0x422c8d);});}),this[_0x1294('0x97')]('isNavigationMode')['to'](this,'activeChange',_0xfa46a6=>null!==_0xfa46a6),this[_0x1294('0x97')]('currentChangeNumber')['to'](this,_0x1294('0xe4'),this,'diff',this,_0x1294('0xd'),(_0x539385,_0x1844ed,_0x1c114b)=>_0x539385&&_0x1c114b?_0x1844ed['changes'][_0x1294('0x2d')](_0x1c114b):0x0),this[_0x1294('0x97')](_0x1294('0x105'))['to'](this,_0x1294('0xe4'),this,_0x1294('0x76'),(_0x3bb371,_0x3c3b79)=>_0x3bb371?_0x3c3b79[_0x1294('0xac')][_0x1294('0x24')]:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x1294('0xee')]=this['editor'][_0x1294('0xb7')][_0x1294('0x107')](_0x5ebcec);}[_0x1294('0xaa')](){const _0x575415=this[_0x1294('0xd9')],_0x52b62d=new Y(_0x575415,{'direction':'backward'}),_0x4b2c7a=new Y(_0x575415,{'direction':'forward'});_0x575415[_0x1294('0x4f')][_0x1294('0xf5')](_0x1294('0x15'),_0x52b62d),_0x575415['commands'][_0x1294('0xf5')](_0x1294('0x4'),_0x4b2c7a),_0x575415[_0x1294('0x4f')]['add'](_0x1294('0x62'),new X(_0x575415)),this['on'](_0x1294('0xd3'),()=>{_0x52b62d[_0x1294('0x7a')](),_0x4b2c7a['refresh']();}),this[_0x1294('0x85')](),this[_0x1294('0x11')](),_0x575415[_0x1294('0x61')](_0x1294('0x96')),_0x575415['plugins'][_0x1294('0xb5')]('WidgetToolbarRepository')&&_0x575415[_0x1294('0xb7')]['get'](_0x1294('0x45'))[_0x1294('0xe1')](_0x1294('0x96'));}async['getRevisionData'](_0x54fb20){await this[_0x1294('0x102')](_0x54fb20);const _0x38c0ed={};for(const _0x1eb0a1 in _0x54fb20[_0x1294('0x57')]){const _0x1c757c=this['_removeRevisionMarkers'](JSON[_0x1294('0xd5')](_0x54fb20[_0x1294('0x57')][_0x1eb0a1][_0x1294('0x91')])),_0x2cf333=this[_0x1294('0xd9')]['editing'][_0x1294('0x9c')]['document'],_0xffb961=new _0x1f5ced(_0x2cf333,_0x1c757c['map'](_0x304cfe=>this[_0x1294('0xf2')](_0x304cfe)));this[_0x1294('0xd9')][_0x1294('0xbd')]['processor']['useFillerType']('marked'),_0x38c0ed[_0x1eb0a1]=this[_0x1294('0xd9')][_0x1294('0xbd')][_0x1294('0x5f')][_0x1294('0xdd')](_0xffb961),this[_0x1294('0xd9')][_0x1294('0xbd')][_0x1294('0x5f')]['useFillerType'](_0x1294('0xfc'));}return _0x38c0ed;}['_removeRevisionMarkers'](_0x3730d9){return(_0x3730d9=_0x3730d9[_0x1294('0xed')](_0x350ea9=>!_0x350ea9[_0x1294('0x79')]||_0x1294('0x83')!==_0x350ea9[_0x1294('0x79')]&&_0x1294('0x4c')!==_0x350ea9[_0x1294('0x79')]))[_0x1294('0xcc')](_0x1ac6c3=>{_0x1294('0x50')!=typeof _0x1ac6c3&&(_0x1ac6c3[_0x1294('0x6a')]=this[_0x1294('0x35')](_0x1ac6c3['children']),_0x1ac6c3[_0x1294('0xf')]=_0x1ac6c3['attributes'][_0x1294('0xed')](_0xa0a0d9=>!_0xa0a0d9[0x0][_0x1294('0xa0')](_0x1294('0xb2'))));}),_0x3730d9;}['compare'](_0x1f4302,_0x5e2a7b,_0x2a208a=!0x1){if(!this['isEnabled'])return;const _0x55c4d0=this[_0x1294('0x76')],_0x9c8106=this['repository'],_0x1f49c2=_0x1294('0x50')==typeof _0x1f4302?_0x9c8106[_0x1294('0x88')](_0x1f4302):_0x1f4302,_0x356498=_0x1294('0x50')==typeof _0x5e2a7b?_0x9c8106[_0x1294('0x88')](_0x5e2a7b):_0x5e2a7b,_0x2dd33a=_0x1f49c2['id'],_0x4cd085=_0x356498?_0x356498['id']:null;if(!_0x2a208a&&this[_0x1294('0x76')]&&this[_0x1294('0x76')][_0x1294('0xeb')]===_0x2dd33a&&this[_0x1294('0x76')][_0x1294('0x3f')]===_0x4cd085)return Promise[_0x1294('0xc4')]();this[_0x1294('0xe4')]=!0x1,this[_0x1294('0xb3')]=null,this[_0x1294('0xd')]=null,this[_0x1294('0x76')]=new _0x4155b3(_0x2dd33a,_0x4cd085);const _0x478a7d=this[_0x1294('0x52')](_0x1f49c2,_0x356498,!0x0)[_0x1294('0xd0')](_0xeb7495=>this[_0x1294('0x102')](_0xeb7495));return _0x478a7d[_0x1294('0xba')](new Promise(_0x540feb=>{setTimeout(_0x540feb,0x14);})),Promise[_0x1294('0xd6')](_0x478a7d)[_0x1294('0x8b')](()=>{if(!this[_0x1294('0x64')])return;this['_cleanUp']();const _0x3214f3=this[_0x1294('0xf4')](_0x2dd33a,_0x4cd085);this[_0x1294('0x76')]['_setData'](_0x3214f3);for(const _0x42ef24 of this['diff'][_0x1294('0xac')])this[_0x1294('0xdf')][_0x1294('0x8c')](_0x42ef24['id'],_0x42ef24);this[_0x1294('0xd9')]['model'][_0x1294('0x1c')]({'isUndoable':!0x1},_0x149604=>{for(const _0x44eb93 of Object[_0x1294('0xbf')](_0x3214f3[_0x1294('0x6e')])){const _0x1ba8d6=this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x69')][_0x1294('0x4a')](_0x44eb93);_0x149604['remove'](_0x149604[_0x1294('0x1a')](_0x1ba8d6)),_0x149604[_0x1294('0xc7')](_0x3214f3[_0x1294('0x6e')][_0x44eb93],_0x1ba8d6,0x0);}}),this[_0x1294('0xe4')]=!0x0;})[_0x1294('0xdb')](_0x6dfd62=>{console[_0x1294('0x80')](_0x6dfd62),this['_cleanUp'](),_0x55c4d0?this[_0x1294('0x76')]=_0x55c4d0:this[_0x1294('0xd9')][_0x1294('0x70')](_0x1294('0x34')),this[_0x1294('0xe4')]=!0x0;});}['destroy'](){this[_0x1294('0xb3')]=null,this['_changeView']&&this[_0x1294('0x1d')]['destroy']();}['addRevisionData'](_0x2a8fcd,_0x57e31a){const _0x3bf594=this[_0x1294('0x9b')][_0x1294('0x6')](_0x2a8fcd);return _0x3bf594['on'](_0x1294('0x10'),(_0x536ad6,_0x1eb673,_0x525577)=>_0x57e31a(_0x1eb673,_0x525577,_0x3bf594)),this['repository'][_0x1294('0xa3')](_0x3bf594),_0x3bf594;}['loadRevisionData'](_0x121298){if(!_0x121298||_0x121298[_0x1294('0x57')])return Promise[_0x1294('0xc4')]();{const _0x55150e=this['editor'][_0x1294('0x6b')][_0x1294('0x107')](_0x1294('0x41'));return this[_0x1294('0x8')]['getRevision']({'channelId':_0x55150e,'revisionId':_0x121298['id']})['then'](_0x5027b5=>{_0x121298[_0x1294('0x10')]({'diffData':_0x5027b5[_0x1294('0x57')]},!0x0);});}}[_0x1294('0xea')](){this[_0x1294('0xd')]=null,this['_cleanMarkers'](),this[_0x1294('0x1d')]&&this['_changeView'][_0x1294('0x60')](),this[_0x1294('0x1d')]=null,this[_0x1294('0xdf')][_0x1294('0x7')]();}['_makeTape'](_0x3cf27d){const _0x50532d=Array[_0x1294('0xe')](_0x3cf27d[_0x1294('0x7c')])[_0x1294('0xed')](([_0x2723b4,_0xad7cbd])=>_0x2723b4['startsWith'](_0x1294('0xb1'))&&!_0xad7cbd[_0x1294('0xfb')]),_0x301bb3=Array['from'](this[_0x1294('0xd9')]['model']['createRangeIn'](_0x3cf27d)[_0x1294('0x5e')]({'singleCharacters':!0x0}));if(0x0!=_0x50532d[_0x1294('0x24')])for(const _0x1d2884 of _0x301bb3){const [_0x2704ef,_0x495d39]=_0x50532d[0x0],[,_0x2069f7,_0x413058]=_0x2704ef[_0x1294('0x27')](':');if(_0x495d39[_0x1294('0xbe')][_0x1294('0xc9')](_0x1d2884['nextPosition'])&&_0x50532d[_0x1294('0x6c')](),(_0x1d2884[_0x1294('0x17')][_0x1294('0xc9')](_0x495d39[_0x1294('0xec')])||_0x1d2884[_0x1294('0x17')][_0x1294('0x3e')](_0x495d39[_0x1294('0xec')]))&&(_0x1294('0x10b')==_0x2069f7?_0x1d2884[_0x1294('0xb0')]={'userId':_0x413058}:_0x1294('0x2a')==_0x2069f7&&(_0x1d2884['isRemoved']={'userId':_0x413058})),0x0==_0x50532d['length'])break;}return _0x301bb3;}['_refreshStartEndIndex'](_0x4e551f){const _0x225c8f=new Map();for(let _0x7d4aa3=0x0;_0x7d4aa3<_0x4e551f[_0x1294('0x24')];_0x7d4aa3++)_0x1294('0x8a')===_0x4e551f[_0x7d4aa3][_0x1294('0x87')]?(_0x4e551f[_0x7d4aa3][_0x1294('0x110')][_0x1294('0x36')]=_0x7d4aa3,_0x4e551f[_0x7d4aa3][_0x1294('0x110')][_0x1294('0xb6')]=_0x7d4aa3):(_0x1294('0xc5')===_0x4e551f[_0x7d4aa3]['type']?_0x4e551f[_0x7d4aa3][_0x1294('0x110')][_0x1294('0x36')]=_0x7d4aa3:_0x1294('0x10c')===_0x4e551f[_0x7d4aa3][_0x1294('0x87')]&&(_0x4e551f[_0x7d4aa3][_0x1294('0x110')][_0x1294('0xb6')]=_0x7d4aa3),_0x225c8f[_0x1294('0x8c')](_0x4e551f[_0x7d4aa3]['id'],_0x7d4aa3));for(const _0x50607a of _0x225c8f['values']())_0x1294('0xc5')===_0x4e551f[_0x50607a][_0x1294('0x87')]?_0x4e551f[_0x50607a][_0x1294('0x110')]['endIndex']=_0x225c8f[_0x1294('0x107')](_0x4e551f[_0x50607a]['pairId']):_0x1294('0x10c')===_0x4e551f[_0x50607a]['type']&&(_0x4e551f[_0x50607a][_0x1294('0x110')][_0x1294('0x36')]=_0x225c8f[_0x1294('0x107')](_0x4e551f[_0x50607a]['pairId']));}[_0x1294('0xae')](_0x239ba9){for(let _0x31f513=0x0;_0x31f513<_0x239ba9[_0x1294('0x24')];_0x31f513++){if(_0x1294('0xc5')===_0x239ba9[_0x31f513]['type'])_0x239ba9[_0x31f513]['item']['startIndex']=_0x31f513;else{if('elementEnd'===_0x239ba9[_0x31f513][_0x1294('0x87')]){_0x239ba9[_0x31f513][_0x1294('0x110')]['endIndex']=_0x31f513;const _0xa4bbcd=_0x239ba9[_0x31f513][_0x1294('0x110')][_0x1294('0x36')];_0x239ba9[_0xa4bbcd][_0x1294('0x2c')]=_0x239ba9[_0x31f513]['id'],_0x239ba9[_0x31f513][_0x1294('0x2c')]=_0x239ba9[_0xa4bbcd]['id'];}else _0x239ba9[_0x31f513]['item'][_0x1294('0x36')]=_0x31f513,_0x239ba9[_0x31f513][_0x1294('0x110')][_0x1294('0xb6')]=_0x31f513,_0x239ba9[_0x31f513]['pairId']=null;}_0x239ba9[_0x31f513][_0x1294('0xc')]||(_0x239ba9[_0x31f513][_0x1294('0xc')]=[],_0x239ba9[_0x31f513][_0x1294('0x49')]=[]);}}['_markInsertions'](_0xb02772,_0x3045ee){const _0x253209=_0xb02772[_0x1294('0xed')](_0x1fdb1a=>!_0x1fdb1a['isAdded']);for(let _0x41b3c5=0x0;_0x41b3c5<_0x3045ee['length'];_0x41b3c5++)_0x3045ee[_0x41b3c5][_0x1294('0xb0')]&&(_0x253209[_0x41b3c5][_0x1294('0xb0')]=_0x3045ee[_0x41b3c5]['isAdded']);}['_makeModelFromViewString'](_0x41d4b6){const _0x13df6e=JSON['parse'](_0x41d4b6),_0x4b68cb=this[_0x1294('0xd9')]['editing'][_0x1294('0x9c')][_0x1294('0x69')],_0x6114e6=new _0x1f5ced(_0x4b68cb,_0x13df6e['map'](_0x3dd6dc=>this[_0x1294('0xf2')](_0x3dd6dc)));return this[_0x1294('0xd9')][_0x1294('0xbd')]['toModel'](_0x6114e6);}[_0x1294('0xf2')](_0x159409){const _0x11f16c=this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x9c')]['document'];if('string'==typeof _0x159409)return new _0x4e5cb1(_0x11f16c,_0x159409);{const _0x39751c=_0x159409[_0x1294('0x6a')]['map'](_0xb998d0=>this[_0x1294('0xf2')](_0xb998d0));return new(K[_0x159409['type']]||_0x501357)(_0x11f16c,_0x159409[_0x1294('0x79')],_0x159409['attributes'],_0x39751c);}}[_0x1294('0xf4')](_0x472ce2,_0x250d14=null){const _0x4f76e5=this[_0x1294('0x9b')][_0x1294('0x88')](_0x472ce2),_0xf515fe=_0x250d14?this[_0x1294('0x9b')][_0x1294('0x88')](_0x250d14):null,_0x397ea5=this['_getRevisionsRange'](_0x4f76e5,_0xf515fe),_0x55141e=_0x397ea5[_0x397ea5['length']-0x1],_0xf3c643=new Map();for(const _0x48bd3a of _0x397ea5){_0x48bd3a['model']={};for(const _0x4a90d8 of _0x48bd3a['authors'])_0xf3c643[_0x1294('0x8c')](_0x4a90d8['id'],_0x4a90d8);for(const _0x1555b6 of this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x69')][_0x1294('0x44')]())_0x48bd3a['diffData'][_0x1555b6]||(_0x48bd3a['diffData'][_0x1555b6]={'insertions':'[]','deletions':'[]'}),_0x48bd3a[_0x1294('0x6e')][_0x1555b6]={'insertions':this[_0x1294('0xf9')](_0x48bd3a[_0x1294('0x57')][_0x1555b6][_0x1294('0x91')]),'deletions':this[_0x1294('0xf9')](_0x48bd3a[_0x1294('0x57')][_0x1555b6][_0x1294('0xa8')])};}const _0x435a55={'model':{},'changes':[]};for(const _0x5b8a41 of this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x69')][_0x1294('0x44')]()){let _0x75abba=null,_0xfc585a=0x0;const _0x28e42e=new Map(Array[_0x1294('0xe')](_0x4f76e5[_0x1294('0x6e')][_0x5b8a41][_0x1294('0x91')][_0x1294('0x7c')])['filter'](([_0x4b1d87])=>!_0x4b1d87['startsWith'](_0x1294('0xb1'))));let _0x4a0f56=0x0;for(const _0x1d0a14 of _0x397ea5){const _0x1cfd8e=this[_0x1294('0xf7')](_0x1d0a14[_0x1294('0x6e')][_0x5b8a41][_0x1294('0x91')]);_0x1d0a14==_0x4f76e5?(_0x75abba=_0x1cfd8e,_0xfc585a=_0x75abba[_0x1294('0x24')],_0x75abba['forEach'](_0x395a0d=>{_0x395a0d['id']=_0x4a0f56++;}),this[_0x1294('0xae')](_0x75abba)):this[_0x1294('0x2b')](_0x75abba,_0x1cfd8e);const _0x7c5ca5=_0x75abba['filter'](_0x1ea423=>!_0x1ea423[_0x1294('0xb0')])[_0x1294('0xd0')](_0x27d4e2=>_0x27d4e2['id']);let _0x33f051=0x0;const _0x10b705=this[_0x1294('0xf7')](_0x1d0a14['model'][_0x5b8a41][_0x1294('0xa8')]);_0x10b705[_0x1294('0xcc')](_0x19f717=>{_0x19f717[_0x1294('0xf1')]?_0x19f717['id']=_0xfc585a++:_0x19f717['id']=_0x7c5ca5[_0x33f051++];}),this[_0x1294('0xae')](_0x10b705),this[_0x1294('0x31')](_0x75abba,'isAdded'),this[_0x1294('0x31')](_0x10b705,_0x1294('0xf1')),_0x1d0a14==_0x4f76e5&&this['_markMarkers'](_0x75abba,_0x28e42e),_0x75abba=this[_0x1294('0x109')](_0x75abba,_0x10b705),this[_0x1294('0x54')](_0x75abba),this['_setDistance'](_0x75abba,_0x1294('0xf1'));}_0x75abba=_0x75abba[_0x1294('0xed')](_0x184ff7=>!(_0x184ff7[_0x1294('0xb0')]&&_0x184ff7[_0x1294('0xf1')]));const _0x216aeb=new Map(_0x55141e['model'][_0x5b8a41][_0x1294('0xa8')][_0x1294('0x7c')]),_0x4518ac=new Set(_0x28e42e[_0x1294('0xbf')]());for(const _0x3a03ec of _0x216aeb[_0x1294('0xbf')]())_0x4518ac[_0x1294('0x26')](_0x3a03ec);this[_0x1294('0x2f')](_0x75abba,_0x4518ac),this['_fixObsoleteTags'](_0x75abba),_0x75abba=this['_removeMissingPairs'](_0x75abba),_0x75abba=this[_0x1294('0xf3')](_0x75abba),_0x75abba=this[_0x1294('0xc0')](_0x75abba);const {root:_0x5e69f8,changes:_0x9d75c7}=this[_0x1294('0xb8')](_0x75abba,_0xf3c643);_0x435a55['model'][_0x5b8a41]=_0x5e69f8,_0x435a55[_0x1294('0xac')]=_0x435a55[_0x1294('0xac')][_0x1294('0x3')](_0x9d75c7);}return _0x435a55;}[_0x1294('0xbb')](_0x16eb31,_0x13eeb1){for(let _0x3d4661=0x0;_0x3d4661<_0x16eb31[_0x1294('0x24')];_0x3d4661++)for(const [_0x4d35e5,_0x2869d1]of _0x13eeb1)_0x2869d1[_0x1294('0xec')]['isEqual'](_0x16eb31[_0x3d4661]['previousPosition'])&&_0x16eb31[_0x3d4661]['markersStart'][_0x1294('0xba')](_0x4d35e5),_0x2869d1[_0x1294('0xbe')][_0x1294('0xc9')](_0x16eb31[_0x3d4661][_0x1294('0x23')])&&_0x16eb31[_0x3d4661][_0x1294('0x49')][_0x1294('0xba')](_0x4d35e5);}[_0x1294('0x109')](_0x481a94,_0x34c04e){let _0x5f528e=[],_0x5275f3=0x0,_0x481e0c=0x0;for(;_0x5275f3<_0x481a94[_0x1294('0x24')]||_0x481e0c<_0x34c04e[_0x1294('0x24')];){const _0xcae7bd=_0x481a94[_0x5275f3]||{},_0x34237a=_0x34c04e[_0x481e0c]||{};if(_0xcae7bd['id']==_0x34237a['id'])_0x5275f3++,_0x481e0c++,_0x5f528e['push'](_0xcae7bd);else{if(_0x34237a[_0x1294('0xf1')]&&_0xcae7bd[_0x1294('0xb0')]){const {commonTape:_0x46cdaa,iEnd:_0x4515a9,jEnd:_0x20d614}=this[_0x1294('0xe7')](_0x481a94,_0x5275f3,_0x34c04e,_0x481e0c);_0x5f528e=_0x5f528e[_0x1294('0x3')](_0x46cdaa),_0x5275f3=_0x4515a9,_0x481e0c=_0x20d614;}else _0x34237a[_0x1294('0xf1')]?(_0x481e0c++,_0x5f528e['push'](_0x34237a)):(_0x5275f3++,_0x5f528e[_0x1294('0xba')](_0xcae7bd));}}return _0x5f528e;}[_0x1294('0x2f')](_0x3ae691,_0x32a29e){const _0xc2c350=[];for(let _0x767ccb=0x0;_0x767ccb<_0x3ae691[_0x1294('0x24')];_0x767ccb++){for(let _0x4518ca=0x0;_0x4518ca<_0x3ae691[_0x767ccb]['markersStart']['length'];_0x4518ca++){const _0x20f350=_0x3ae691[_0x767ccb]['markersStart'][_0x4518ca];if(!_0x32a29e['has'](_0x20f350))continue;const {group:_0x4b2b10,type:_0x3b46c9,authorId:_0x561ca9}=_0x33fc9c(_0x20f350);'revision-suggestion'!=_0x4b2b10||_0x1294('0x10b')!=_0x3b46c9&&_0x1294('0x2a')!=_0x3b46c9||(_0xc2c350[_0x1294('0x4e')]({'type':_0x3b46c9,'name':_0x20f350,'userId':_0x561ca9}),_0x3ae691[_0x767ccb][_0x1294('0xc')]['splice'](_0x4518ca,0x1),_0x4518ca--);}_0x3737f6(_0x3ae691[_0x767ccb]);for(let _0x16e6ef=0x0;_0x16e6ef<_0x3ae691[_0x767ccb][_0x1294('0x49')][_0x1294('0x24')];_0x16e6ef++){const _0x49ddd3=_0x3ae691[_0x767ccb][_0x1294('0x49')][_0x16e6ef];if(!_0x32a29e[_0x1294('0xb5')](_0x49ddd3))continue;const {group:_0xa5169e,type:_0x2e3d01}=_0x33fc9c(_0x49ddd3);if(_0x1294('0x106')!=_0xa5169e||_0x1294('0x10b')!=_0x2e3d01&&_0x1294('0x2a')!=_0x2e3d01)continue;_0x3ae691[_0x767ccb]['markersEnd'][_0x1294('0xa1')](_0x16e6ef,0x1),_0x16e6ef--;const _0x38e30c=_0xc2c350['findIndex'](_0x498d90=>_0x498d90[_0x1294('0x79')]==_0x49ddd3);_0x38e30c>-0x1&&_0xc2c350[_0x1294('0xa1')](_0x38e30c,0x1);}}function _0x33fc9c(_0xb9067){const _0x335eb5=_0xb9067['split'](':');return{'group':_0x335eb5[0x0],'type':_0x335eb5[0x1],'subType':_0x335eb5[_0x1294('0x24')]>=0x5?_0x335eb5[0x2]:null,'id':_0x335eb5[_0x1294('0x24')]<0x5?_0x335eb5[0x2]:_0x335eb5[0x3],'authorId':_0x335eb5[_0x1294('0x24')]<0x5?_0x335eb5[0x3]:_0x335eb5[0x4],'markerCount':0x6==_0x335eb5['length']?_0x335eb5[0x5]:null};}function _0x3737f6(_0x276127){for(let _0x4e08c3=0x0;_0x4e08c3<_0xc2c350['length'];_0x4e08c3++){if(_0x276127['isAdded']&&_0x1294('0x10b')==_0xc2c350[_0x4e08c3][_0x1294('0x87')])return _0x276127[_0x1294('0xa6')]=_0xc2c350[_0x4e08c3],void delete _0x276127[_0x1294('0xb0')];if(!_0x276127['isAdded']&&!_0x276127[_0x1294('0xf1')]&&_0x1294('0x2a')==_0xc2c350[_0x4e08c3]['type'])return void(_0x276127['isRemoveSuggestion']=_0xc2c350[_0x4e08c3]);}}}[_0x1294('0x31')](_0x3b5d2f,_0x226e5e){let _0x282875=0x0,_0x50c69c=!0x1;const _0x12436e=new Map();for(const _0x5928f6 of _0x3b5d2f)_0x5928f6[_0x226e5e]?_0x50c69c&&(_0x282875++,_0x50c69c=!0x1):(_0x282875++,_0x50c69c=!0x0),_0x12436e[_0x1294('0x8c')](_0x5928f6['id'],_0x282875);for(let _0x131bd6=0x0;_0x131bd6<_0x3b5d2f[_0x1294('0x24')];_0x131bd6++){if(_0x1294('0xf1')==_0x226e5e&&_0x3b5d2f[_0x131bd6][_0x1294('0xb0')]||'isAdded'==_0x226e5e&&_0x3b5d2f[_0x131bd6][_0x1294('0xf1')])continue;if(_0x1294('0x8a')==_0x3b5d2f[_0x131bd6][_0x1294('0x87')]){_0x3b5d2f[_0x131bd6][_0x1294('0xcd')]=0x0;continue;}const _0x5690f8=_0x12436e[_0x1294('0x107')](_0x3b5d2f[_0x131bd6]['pairId']),_0x2b515e=_0x12436e['get'](_0x3b5d2f[_0x131bd6]['id']);_0x3b5d2f[_0x131bd6][_0x1294('0xcd')]=_0x5690f8-_0x2b515e;}}[_0x1294('0x52')](_0x53622,_0x3b1860,_0x3f01b1=!0x1){const _0x2c8aa3=[];let _0x2e2760=this[_0x1294('0x9b')][_0x1294('0x2d')](_0x53622),_0x38666c=this['repository'][_0x1294('0x2d')](_0x3b1860);for(-0x1==_0x38666c&&(_0x38666c=this[_0x1294('0x9b')][_0x1294('0x53')][_0x1294('0x24')],_0x3f01b1=!0x1);_0x2e2760<_0x38666c;)_0x2c8aa3[_0x1294('0xba')](this[_0x1294('0x9b')][_0x1294('0x88')](_0x2e2760)),_0x2e2760++;return _0x3f01b1&&_0x2c8aa3[_0x1294('0xba')](this[_0x1294('0x9b')][_0x1294('0x88')](_0x2e2760)),_0x2c8aa3;}[_0x1294('0xe7')](_0x282216,_0x17488f,_0x1caece,_0x39b3cc){const _0x1e3126=this['editor'][_0x1294('0x6e')][_0x1294('0xc6')];let _0x52a43f=_0x17488f;for(;_0x282216[_0x52a43f]&&_0x282216[_0x52a43f][_0x1294('0xb0')];)_0x52a43f++;let _0x1f2302=_0x39b3cc;for(;_0x1caece[_0x1f2302]&&_0x1caece[_0x1f2302][_0x1294('0xf1')];)_0x1f2302++;_0x174f86(_0x282216,_0x17488f,_0x52a43f),_0x174f86(_0x1caece,_0x39b3cc,_0x1f2302);const _0x1a278f=_0x1caece['slice'](_0x39b3cc,_0x1f2302)[_0x1294('0x3')](_0x282216[_0x1294('0xd7')](_0x17488f,_0x52a43f));return _0x1a278f[_0x1294('0x8e')]((_0x45ef72,_0x54fb34)=>_0x45ef72[_0x1294('0x94')]!=_0x54fb34[_0x1294('0x94')]?_0x45ef72[_0x1294('0x94')]-_0x54fb34[_0x1294('0x94')]:_0x45ef72['level']!=_0x54fb34[_0x1294('0x75')]?_0x45ef72['level']-_0x54fb34[_0x1294('0x75')]:_0x45ef72[_0x1294('0xcd')]!=_0x54fb34[_0x1294('0xcd')]?_0x54fb34[_0x1294('0xcd')]-_0x45ef72[_0x1294('0xcd')]:!!_0x45ef72[_0x1294('0xb0')]!=!!_0x54fb34[_0x1294('0xb0')]?-0x1==_0x45ef72[_0x1294('0x94')]||0x0==_0x45ef72[_0x1294('0x94')]?_0x45ef72[_0x1294('0xb0')]?-0x1:0x1:_0x45ef72['isAdded']?0x1:-0x1:_0x45ef72[_0x1294('0x6d')]-_0x54fb34[_0x1294('0x6d')]),{'commonTape':_0x1a278f,'iEnd':_0x52a43f,'jEnd':_0x1f2302};function _0x174f86(_0x2875b3,_0x59583c,_0x4fbae0){let _0x1cd889=-0x1,_0x4e1f25=Number['POSITIVE_INFINITY'],_0x5b5268=!0x0;for(let _0x4a6129=_0x59583c;_0x4a6129<_0x4fbae0;_0x4a6129++)if(_0x1e3126[_0x1294('0x71')](_0x2875b3[_0x4a6129][_0x1294('0x110')])||(_0x5b5268=!0x1),_0x2875b3[_0x4a6129][_0x1294('0x110')][_0x1294('0x36')]<_0x59583c&&(_0x1cd889=_0x4a6129),_0x2875b3[_0x4a6129][_0x1294('0x110')][_0x1294('0xb6')]>=_0x4fbae0){_0x4e1f25=_0x4a6129;break;}_0x5b5268&&(_0x1cd889=_0x4fbae0-0x1);for(let _0xc4fd92=_0x59583c;_0xc4fd92<_0x4fbae0;_0xc4fd92++)_0x2875b3[_0xc4fd92][_0x1294('0x94')]=_0xc4fd92<=_0x1cd889?-0x1:_0xc4fd92<_0x4e1f25?0x0:0x1,_0x2875b3[_0xc4fd92]['index']=_0xc4fd92;let _0x44c782=0x0;for(let _0x27e71d=_0x59583c;_0x27e71d<=_0x1cd889;_0x27e71d++)0x0==_0x2875b3[_0x27e71d][_0x1294('0xcd')]?_0x2875b3[_0x27e71d][_0x1294('0x75')]=_0x44c782:(_0x44c782++,_0x2875b3[_0x27e71d][_0x1294('0x75')]=_0x44c782,_0x44c782++);for(let _0x2d3194=_0x59583c;_0x2d3194<_0x4fbae0;_0x2d3194++)0x0==_0x2875b3[_0x2d3194][_0x1294('0x94')]&&(_0x2875b3[_0x2d3194]['level']=_0x44c782);_0x44c782=0x0;for(let _0x552a7e=_0x4fbae0-0x1;_0x552a7e>=_0x4e1f25;_0x552a7e--)0x0==_0x2875b3[_0x552a7e][_0x1294('0xcd')]?_0x2875b3[_0x552a7e]['level']=_0x44c782:(_0x44c782--,_0x2875b3[_0x552a7e][_0x1294('0x75')]=_0x44c782,_0x44c782--);}}[_0x1294('0x5c')](_0x4f9588){const _0x238cb9=new Map(),_0x13d69e=this['editor']['model']['schema'];for(let _0x964b3=0x1;_0x964b3<_0x4f9588[_0x1294('0x24')];_0x964b3++){let _0x276ba8,_0x44f41a,_0x11db5c;const _0x45cc7c=_0x4f9588[_0x964b3],_0x1686ba=_0x4f9588[_0x964b3-0x1];if(_0x1294('0x8a')==_0x45cc7c['type'])continue;if(_0x45cc7c[_0x1294('0x87')]!=_0x1686ba['type'])continue;if(!_0x13d69e[_0x1294('0x58')](_0x1686ba['item'])||_0x13d69e[_0x1294('0xe8')](_0x1686ba[_0x1294('0x110')]))continue;if(!_0x13d69e[_0x1294('0x58')](_0x45cc7c[_0x1294('0x110')])||_0x13d69e[_0x1294('0xe8')](_0x45cc7c[_0x1294('0x110')]))continue;if((_0x4f9588[_0x964b3][_0x1294('0xb0')]||_0x4f9588[_0x964b3][_0x1294('0xa6')])&&_0x4f9588[_0x964b3-0x1][_0x1294('0xf1')])_0x276ba8=_0x4f9588[_0x964b3],_0x44f41a=_0x4f9588[_0x964b3-0x1],_0x11db5c=_0x964b3-0x1;else{if(!_0x4f9588[_0x964b3][_0x1294('0xf1')]||!_0x4f9588[_0x964b3-0x1][_0x1294('0xb0')]&&!_0x4f9588[_0x964b3-0x1][_0x1294('0xa6')])continue;_0x276ba8=_0x4f9588[_0x964b3-0x1],_0x44f41a=_0x4f9588[_0x964b3],_0x11db5c=_0x964b3;}const _0x4c0cea=_0x276ba8[_0x1294('0x75')]==_0x44f41a['level'],_0x3f3862=Math[_0x1294('0x93')](_0x276ba8[_0x1294('0x75')])<Math[_0x1294('0x93')](_0x44f41a[_0x1294('0x75')])&&0x0==_0x44f41a[_0x1294('0xcd')];(_0x4c0cea||_0x3f3862)&&(_0x238cb9['set'](_0x44f41a['id'],_0x276ba8['id']),_0x4f9588[_0x1294('0xa1')](_0x11db5c,0x1),_0x964b3--,_0x276ba8[_0x1294('0xb0')]=!0x1);}for(let _0x3519e4=0x0;_0x3519e4<_0x4f9588[_0x1294('0x24')];_0x3519e4++)_0x238cb9[_0x1294('0xb5')](_0x4f9588[_0x3519e4][_0x1294('0x2c')])&&(_0x4f9588[_0x3519e4][_0x1294('0x2c')]=_0x238cb9[_0x1294('0x107')](_0x4f9588[_0x3519e4][_0x1294('0x2c')]));}[_0x1294('0xf8')](_0x138a66){const _0x2481e6=new Set(_0x138a66[_0x1294('0xd0')](_0x3ff079=>_0x3ff079['id']));for(let _0x250278=0x0;_0x250278<_0x138a66[_0x1294('0x24')];_0x250278++)_0x2481e6[_0x1294('0xb5')](_0x138a66[_0x250278][_0x1294('0x2c')])||0x0==_0x138a66[_0x250278][_0x1294('0xcd')]||(_0x138a66[_0x250278][_0x1294('0x10f')]=!0x0);return _0x138a66[_0x1294('0xed')](_0x1ca911=>!_0x1ca911[_0x1294('0x10f')]);}[_0x1294('0xf3')](_0x38fc06){const _0x103d5e=new Set();for(let _0x2e3bd6=0x0;_0x2e3bd6<_0x38fc06[_0x1294('0x24')];_0x2e3bd6++){if(_0x103d5e[_0x1294('0xb5')](_0x38fc06[_0x2e3bd6]['id'])&&_0x38fc06[_0x2e3bd6]['isRemoved']&&(_0x38fc06[_0x2e3bd6][_0x1294('0x10f')]=!0x0),_0x38fc06[_0x2e3bd6][_0x1294('0x10f')])continue;if(0x0==_0x38fc06[_0x2e3bd6][_0x1294('0xcd')])continue;if('elementStart'!=_0x38fc06[_0x2e3bd6]['type'])continue;if(null==_0x38fc06[_0x2e3bd6][_0x1294('0x2c')])continue;let _0x193315=_0x2e3bd6+0x1,_0x2abf9b=0x0;for(;_0x38fc06[_0x193315]['id']!=_0x38fc06[_0x2e3bd6][_0x1294('0x2c')];)_0x1294('0xc5')==_0x38fc06[_0x193315][_0x1294('0x87')]?_0x2abf9b++:_0x1294('0x10c')==_0x38fc06[_0x193315][_0x1294('0x87')]&&_0x2abf9b--,_0x193315++;if(0x0!=_0x2abf9b){if(_0x38fc06[_0x2e3bd6]['isRemoved'])_0x38fc06[_0x2e3bd6][_0x1294('0x10f')]=!0x0;else for(;_0x193315!=_0x2e3bd6;)_0x38fc06[_0x193315][_0x1294('0xf1')]&&0x0!=_0x38fc06[_0x193315][_0x1294('0xcd')]&&(_0x38fc06[_0x193315][_0x1294('0x10f')]=!0x0,_0x103d5e['add'](_0x38fc06[_0x193315][_0x1294('0x2c')])),_0x193315--;}}return _0x38fc06['filter'](_0x48767c=>!_0x48767c[_0x1294('0x10f')]);}[_0x1294('0xc0')](_0x4d6a96){const _0x27afdf=this['editor'][_0x1294('0x6e')][_0x1294('0xc6')];for(let _0x393c6e=0x0;_0x393c6e<_0x4d6a96['length'];_0x393c6e++){if(!(_0x4d6a96[_0x393c6e][_0x1294('0xb0')]||_0x4d6a96[_0x393c6e][_0x1294('0xa6')]||_0x4d6a96[_0x393c6e]['isRemoved']||_0x4d6a96[_0x393c6e][_0x1294('0x20')]))continue;if(0x0==_0x4d6a96[_0x393c6e][_0x1294('0xcd')])continue;const _0x4507cf=_0x4d6a96[_0x393c6e][_0x1294('0x110')];_0x27afdf['isBlock'](_0x4507cf)||_0x27afdf[_0x1294('0xe8')](_0x4507cf)||(_0x4d6a96[_0x393c6e][_0x1294('0xb0')]&&delete _0x4d6a96[_0x393c6e][_0x1294('0xb0')],_0x4d6a96[_0x393c6e]['isAddSuggestion']&&delete _0x4d6a96[_0x393c6e][_0x1294('0xa6')],_0x4d6a96[_0x393c6e][_0x1294('0x20')]&&delete _0x4d6a96[_0x393c6e][_0x1294('0x20')],_0x4d6a96[_0x393c6e][_0x1294('0xf1')]&&(_0x4d6a96[_0x393c6e][_0x1294('0x10f')]=!0x0));}return _0x4d6a96[_0x1294('0xed')](_0x1664d4=>!_0x1664d4[_0x1294('0x10f')]);}[_0x1294('0xb8')](_0xaa8e47,_0x4c8938){const _0x5cead9=new _0x271f2f(),_0x286983=[],_0x1e349b=new Map(),_0x20f03c=this[_0x1294('0xd9')][_0x1294('0x6e')],_0x5806ef=_0x20f03c[_0x1294('0xc6')],_0x220295=[_0x5cead9],_0x38374b={},_0x25777e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24c6dd=null;const _0x7bd1f8=[0x0];for(let _0x121dad=0x0;_0x121dad<_0xaa8e47[_0x1294('0x24')];_0x121dad++){let _0x35a1c4,_0x4fdab8;if(_0x1294('0xc5')===_0xaa8e47[_0x121dad][_0x1294('0x87')]){_0x35a1c4=_0x20f03c['createPositionFromPath'](_0x5cead9,_0x7bd1f8);const _0x1d494f=new _0x5b1c31(_0xaa8e47[_0x121dad][_0x1294('0x110')][_0x1294('0x79')],_0xaa8e47[_0x121dad]['item'][_0x1294('0x55')]());_0x220295[0x0][_0x1294('0x77')](_0x1d494f),_0x7bd1f8[_0x1294('0xba')](0x0),_0x220295[_0x1294('0x4e')](_0x1d494f),_0x4fdab8=_0x20f03c[_0x1294('0x19')](_0x5cead9,_0x7bd1f8),_0x24c6dd=null;}else{if(_0x1294('0x10c')===_0xaa8e47[_0x121dad][_0x1294('0x87')])_0x220295[_0x1294('0x6c')](),_0x35a1c4=_0x20f03c['createPositionFromPath'](_0x5cead9,_0x7bd1f8),_0x7bd1f8[_0x1294('0x21')](),_0x7bd1f8[_0x7bd1f8[_0x1294('0x24')]-0x1]++,_0x4fdab8=_0x20f03c[_0x1294('0x19')](_0x5cead9,_0x7bd1f8),_0x24c6dd=null;else{if(_0x35a1c4=_0x20f03c['createPositionFromPath'](_0x5cead9,_0x7bd1f8),_0x24c6dd&&_0x2bc52c(_0x24c6dd,_0xaa8e47[_0x121dad][_0x1294('0x110')]))_0x24c6dd['_data']+=_0xaa8e47[_0x121dad][_0x1294('0x110')]['data'];else{const _0x4b800e=new _0x4b240a(_0xaa8e47[_0x121dad][_0x1294('0x110')][_0x1294('0xbd')],_0xaa8e47[_0x121dad]['item']['getAttributes']());_0x220295[0x0]['_appendChild'](_0x4b800e),_0x24c6dd=_0x4b800e;}_0x7bd1f8[_0x7bd1f8[_0x1294('0x24')]-0x1]+=_0xaa8e47[_0x121dad][_0x1294('0x110')][_0x1294('0xca')],_0x4fdab8=_0x20f03c[_0x1294('0x19')](_0x5cead9,_0x7bd1f8);}}for(const _0xe69878 of _0xaa8e47[_0x121dad][_0x1294('0xc')])_0x1e349b[_0x1294('0x8c')](_0xe69878,{'start':_0x35a1c4,'end':null});_0x3ca742(_0x1294('0x20'),_0x121dad,_0x35a1c4,_0x4fdab8),_0x3ca742(_0x1294('0xa6'),_0x121dad,_0x35a1c4,_0x4fdab8),_0x3ca742(_0x1294('0xf1'),_0x121dad,_0x35a1c4,_0x4fdab8),_0x3ca742(_0x1294('0xb0'),_0x121dad,_0x35a1c4,_0x4fdab8);for(const _0x5e686f of _0xaa8e47[_0x121dad]['markersEnd']){_0x1e349b['get'](_0x5e686f)[_0x1294('0xbe')]=_0x4fdab8;}}for(const [_0x2f9a2a,_0x3a2330]of _0x1e349b){const _0x38c672=this['editor'][_0x1294('0x6e')][_0x1294('0xff')](_0x3a2330['start'],_0x3a2330[_0x1294('0xbe')]);_0x5cead9['markers']['set'](_0x2f9a2a,_0x38c672);}return _0x286983['sort']((_0x3109b3,_0x22922e)=>{const _0x1d47a2=_0x5cead9[_0x1294('0x7c')][_0x1294('0x107')](_0x1294('0xb1')+_0x3109b3['id']),_0x2460d4=_0x5cead9[_0x1294('0x7c')][_0x1294('0x107')]('revision:'+_0x22922e['id']);return _0x1d47a2[_0x1294('0xec')][_0x1294('0x4b')](_0x2460d4[_0x1294('0xec')])?-0x1:_0x1d47a2['start']['isAfter'](_0x2460d4[_0x1294('0xec')])?0x1:_0x1d47a2[_0x1294('0xbe')][_0x1294('0x4b')](_0x2460d4[_0x1294('0xbe')])?-0x1:_0x1d47a2[_0x1294('0xbe')][_0x1294('0x3e')](_0x2460d4[_0x1294('0xbe')])?0x1:_0x1294('0xf5')===_0x3109b3['type']?-0x1:0x1;}),{'root':_0x5cead9,'changes':_0x286983};function _0x3ca742(_0xce63a5,_0x124085,_0x5a300e,_0x4ce843){const _0x3bf891=!!_0xaa8e47[_0x124085][_0xce63a5],_0xebc3a6=_0x3bf891?_0xaa8e47[_0x124085][_0xce63a5][_0x1294('0x10d')]:null,_0x19de52=_0x124085===_0xaa8e47[_0x1294('0x24')]-0x1,_0x473f02=_0x25777e[_0xce63a5][0x0],_0x159461=_0x5806ef[_0x1294('0xcf')](_0xaa8e47[_0x124085][_0x1294('0x110')]);!_0x38374b[_0xce63a5]&&_0x3bf891?_0x38374b[_0xce63a5]={'start':_0x5a300e,'tapeItem':_0xaa8e47[_0x124085],'userId':_0xebc3a6,'type':_0xce63a5}:_0x38374b[_0xce63a5]&&!_0x3bf891?(_0x38374b[_0xce63a5][_0x1294('0xbe')]=_0x5a300e,_0x41be15(_0x38374b[_0xce63a5]),_0x38374b[_0xce63a5]=null):_0x38374b[_0xce63a5]&&_0x3bf891&&_0x38374b[_0xce63a5]['userId']!==_0xebc3a6&&(_0x38374b[_0xce63a5][_0x1294('0xbe')]=_0x5a300e,_0x473f02&&_0x473f02['userId']===_0x38374b[_0xce63a5][_0x1294('0x10d')]||_0x41be15(_0x38374b[_0xce63a5]),_0x38374b[_0xce63a5]={'start':_0x5a300e,'tapeItem':_0xaa8e47[_0x124085],'userId':_0xebc3a6,'type':_0xce63a5}),_0x38374b[_0xce63a5]&&_0x159461&&(_0x1294('0xc5')!==_0xaa8e47[_0x124085][_0x1294('0x87')]||_0x473f02&&_0x473f02[_0x1294('0x10d')]===_0xebc3a6||_0x25777e[_0xce63a5][_0x1294('0x4e')]({'userId':_0xebc3a6,'object':_0xaa8e47[_0x124085][_0x1294('0x110')],'change':_0x38374b[_0xce63a5]}),_0x1294('0x10c')===_0xaa8e47[_0x124085]['type']&&_0x473f02&&_0x473f02[_0x1294('0xad')]===_0xaa8e47[_0x124085][_0x1294('0x110')]&&(_0x25777e[_0xce63a5][_0x1294('0x6c')](),_0x38374b[_0xce63a5]=_0x473f02[_0x1294('0x95')])),_0x38374b[_0xce63a5]&&_0x19de52&&(_0x38374b[_0xce63a5][_0x1294('0xbe')]=_0x4ce843,_0x41be15(_0x38374b[_0xce63a5]),_0x38374b[_0xce63a5]=null);}function _0x41be15({start:_0x1c5894,end:_0x297a54,tapeItem:_0x1f47b9,userId:_0x37c88a,type:_0x168c34}){const _0x456b6d=_0x1f47b9[_0x1294('0x110')],_0xaabf50=_0x20f03c['schema'][_0x1294('0x58')](_0x456b6d)&&!_0x20f03c['schema'][_0x1294('0xe8')](_0x456b6d),_0x12d346=_0x1c5894[_0x1294('0x3a')]==_0x297a54[_0x1294('0x3b')]&&_0x297a54[_0x1294('0x9a')];if(_0xaabf50&&_0x12d346)return;const _0x29f60f=_0x20f03c[_0x1294('0xff')](_0x1c5894,_0x297a54),_0x285d54=_0x4c8938[_0x1294('0x107')](_0x37c88a),_0x437ee5=new _0x560c95({'author':_0x285d54,'type':'isAdded'==_0x168c34||_0x1294('0xa6')==_0x168c34?'add':'remove','data':{'isSuggestion':_0x1294('0xa6')==_0x168c34||_0x1294('0x20')==_0x168c34},'createdAt':new Date()});_0x286983[_0x1294('0xba')](_0x437ee5),_0x5cead9[_0x1294('0x7c')][_0x1294('0x8c')]('revision:'+_0x437ee5['id'],_0x29f60f);}function _0x2bc52c(_0x214b52,_0x2dcc3d){const _0x438192=_0x214b52[_0x1294('0x55')](),_0x1bd94c=_0x2dcc3d[_0x1294('0x55')]();for(const _0x566895 of _0x438192){if(_0x566895[0x1]!==_0x2dcc3d['getAttribute'](_0x566895[0x0]))return!0x1;_0x1bd94c['next']();}return _0x1bd94c[_0x1294('0xf0')]()[_0x1294('0x9d')];}}[_0x1294('0x85')](){this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x84'))[_0x1294('0xc2')]({'view':_0x1294('0x0')}),this[_0x1294('0xd9')]['conversion'][_0x1294('0x28')]('editingDowncast')[_0x1294('0x72')]({'model':_0x1294('0x0'),'view':_0x538fc0=>{const _0x4c90cf=_0x538fc0[_0x1294('0xde')][_0x1294('0x27')](':')[0x1],_0x3e5c1c=this['_getChangeFromId'](_0x4c90cf);if(!_0x3e5c1c)return null;const _0x4387ff=_0x1294('0xf5')==_0x3e5c1c[_0x1294('0x87')]?_0x1294('0x10b'):_0x1294('0x2a'),_0x33fd0b=[_0x1294('0xbc'),_0x1294('0x3d')+_0x4387ff];return _0x3e5c1c['data'][_0x1294('0x2')]&&_0x33fd0b['push'](_0x1294('0x3d')+_0x4387ff+_0x1294('0xe9')),this[_0x1294('0xd')]==_0x3e5c1c&&_0x33fd0b['push']('ck-suggestion-marker--active'),{'classes':_0x33fd0b,'attributes':{'data-change-id':_0x4c90cf}};}}),this[_0x1294('0xd9')]['conversion']['for'](_0x1294('0x84'))[_0x1294('0xf5')](_0x228466=>{_0x228466['on']('element:pre',(_0xd281c3,_0x1875bf,_0x15c08b)=>{const _0x2c3c07=_0x1875bf[_0x1294('0x7e')][_0x1294('0x82')](0x0);if(!_0x2c3c07||!_0x2c3c07['is']('element',_0x1294('0x1')))return;if(!_0x15c08b['consumable'][_0x1294('0x103')](_0x2c3c07,{'attributes':[_0x1294('0xd2'),_0x1294('0x13')]}))return;const _0x430d50=_0x1875bf[_0x1294('0x104')][_0x1294('0xec')][_0x1294('0x3a')];_0x15c08b[_0x1294('0x33')]['setAttribute'](_0x1294('0xd2'),_0x2c3c07[_0x1294('0x1f')](_0x1294('0xd2')),_0x430d50),_0x15c08b[_0x1294('0x33')][_0x1294('0x25')](_0x1294('0x13'),_0x2c3c07[_0x1294('0x1f')](_0x1294('0x13')),_0x430d50);},{'priority':_0x1294('0x46')});}),this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x84'))['add'](_0x2fa2e2=>{_0x2fa2e2['on']('element',(_0xbfecf1,_0x28136f,_0x967cd8)=>{if(!_0x967cd8['consumable'][_0x1294('0x103')](_0x28136f[_0x1294('0x7e')],{'attributes':[_0x1294('0xd2'),_0x1294('0x13')]}))return;if(_0x28136f[_0x1294('0x104')][_0x1294('0xfb')])return;const _0x4ee62a=_0x28136f[_0x1294('0x104')][_0x1294('0xec')]['nodeAfter'];_0x4ee62a[_0x1294('0xe6')]('vid_start')||_0x4ee62a[_0x1294('0xe6')](_0x1294('0x47'))||(_0x967cd8['writer']['setAttribute'](_0x1294('0xd2'),_0x28136f[_0x1294('0x7e')][_0x1294('0x1f')](_0x1294('0xd2')),_0x4ee62a),_0x967cd8[_0x1294('0x33')][_0x1294('0x25')](_0x1294('0x13'),_0x28136f[_0x1294('0x7e')][_0x1294('0x1f')](_0x1294('0x13')),_0x4ee62a));},{'priority':_0x1294('0x46')});}),this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x84'))[_0x1294('0x5b')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x1294('0x47'),'value':_0x42ef91=>_0x42ef91['getAttribute'](_0x1294('0x47'))}}),this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0xc6')]['on'](_0x1294('0x48'),(_0x459d96,[,_0x5793cc])=>{[_0x1294('0xd2'),'vid_end',_0x1294('0x47')][_0x1294('0xe3')](_0x5793cc)&&(_0x459d96[_0x1294('0x89')]=!0x0,_0x459d96[_0x1294('0xa7')]());},{'priority':_0x1294('0x74')}),this['editor'][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x99'))[_0x1294('0xf5')](_0x24beba=>{_0x24beba['on'](_0x1294('0x38'),(_0x20d625,_0x2a957b,_0x31518b)=>{if('\x20'!=_0x2a957b[_0x1294('0x110')]['data']||_0x2a957b[_0x1294('0x110')][_0x1294('0x3b')][_0x1294('0xa5')]>0x1)return;if(!_0x31518b[_0x1294('0x66')]['consume'](_0x2a957b[_0x1294('0x110')],_0x20d625[_0x1294('0x79')]))return;const _0x45d14e=_0x31518b['writer'],_0x8ecc6c=_0x31518b['mapper']['toViewRange'](_0x2a957b[_0x1294('0x32')]);_0x45d14e[_0x1294('0xce')](_0x8ecc6c,_0x45d14e[_0x1294('0xef')](_0x1294('0x22')));});}),this[_0x1294('0xd9')][_0x1294('0xc8')]['for']('dataDowncast')[_0x1294('0x108')]({'model':_0x1294('0x0')}),this['editor'][_0x1294('0x98')][_0x1294('0x10e')]['on']('addMarker:revision',function(_0x22be57){const _0x22b350=_0x22be57[_0x1294('0xb7')]['get']('RevisionViewer');return(_0x3df9ef,_0x285411,_0x2b814f)=>{const _0x3dc8cd=_0x285411['markerName'][_0x1294('0x27')](':')[0x1],_0x5f4f60=_0x22b350[_0x1294('0x8f')](_0x3dc8cd);if(!_0x5f4f60)return null;const _0x330436=_0x1294('0xf5')==_0x5f4f60[_0x1294('0x87')]?_0x1294('0x27'):_0x1294('0x2e');if(!_0x2b814f[_0x1294('0x66')][_0x1294('0x1e')](_0x285411[_0x1294('0x5a')],_0x3df9ef[_0x1294('0x79')]))return;const _0x4a435b=_0x285411[_0x1294('0x5a')][_0x1294('0x5e')](),_0x1e880e=_0x285411[_0x1294('0x5a')]['start'],_0x10add7=_0x22be57[_0x1294('0x6e')][_0x1294('0xc6')];let _0x51bb18=null,_0x597251=null,_0x361416=!0x1,_0x199f46=!0x1;for(const _0x296329 of _0x4a435b){const _0xd86bd2=_0x296329[_0x1294('0x110')];_0x361416=_0x361416||_0x10add7[_0x1294('0xa2')](_0xd86bd2);const _0x384bb3=_0x2b814f['mapper']['toViewElement'](_0xd86bd2);if(_0x384bb3&&_0x384bb3[_0x1294('0xa')]('addHighlight'))return;_0x1294('0x10c')==_0x296329['type']&&(_0x10add7[_0x1294('0x58')](_0xd86bd2)&&!_0x10add7[_0x1294('0xe8')](_0xd86bd2)&&(_0xd86bd2[_0x1294('0x65')]||_0x1e880e[_0x1294('0x43')]?_0x51bb18&&_0x51bb18[_0x1294('0x3b')]==_0xd86bd2||(_0x51bb18=_0xd86bd2,_0xc43767(_0x296329[_0x1294('0x17')]),_0x199f46=!0x0):_0x597251=_0x597251||_0x296329[_0x1294('0x17')]));}function _0xc43767(_0x595a87){const _0x393094=_0x2b814f['writer'][_0x1294('0x30')](_0x1294('0x22'),{'class':_0x1294('0x3d')+_0x330436}),_0x5021e0=_0x2b814f[_0x1294('0xaf')][_0x1294('0xc3')](_0x595a87);_0x5f4f60[_0x1294('0xbd')][_0x1294('0x2')]&&_0x2b814f[_0x1294('0x33')][_0x1294('0xe0')](_0x1294('0x3d')+_0x330436+_0x1294('0xe9'),_0x393094),_0x22b350['activeChange']==_0x5f4f60&&_0x2b814f['writer'][_0x1294('0xe0')](_0x1294('0xd4'),_0x393094),_0x2b814f[_0x1294('0x33')][_0x1294('0xc7')](_0x5021e0,_0x393094),_0x2b814f[_0x1294('0xaf')][_0x1294('0xb')](_0x393094,_0x285411[_0x1294('0xde')]);}_0x361416||_0x199f46||!_0x597251||_0xc43767(_0x597251);};}(this[_0x1294('0xd9')]),{'priority':_0x1294('0x7f')}),this[_0x1294('0xd9')][_0x1294('0x98')]['downcastDispatcher']['on'](_0x1294('0x16'),(_0x552f4f,_0x2476a9,_0xc5fb02)=>{const _0x18e6d5=_0xc5fb02['mapper'][_0x1294('0xfd')](_0x2476a9[_0x1294('0xde')]);if(_0x18e6d5)for(const _0x24bdba of _0x18e6d5)(_0x24bdba[_0x1294('0xdc')](_0x1294('0x37'))||_0x24bdba[_0x1294('0xdc')](_0x1294('0x29')))&&(_0xc5fb02[_0x1294('0xaf')][_0x1294('0xd1')](_0x24bdba,_0x2476a9[_0x1294('0xde')]),_0xc5fb02[_0x1294('0x33')][_0x1294('0xb9')](_0x24bdba));},{'priority':_0x1294('0x7f')}),this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x10e')]['on']('addMarker:revision',(_0x2a268a,_0xd564e0,_0x47e0de)=>{const _0x3f7de9=_0xd564e0[_0x1294('0xde')][_0x1294('0x27')](':')[0x1],_0x27ddb4=this[_0x1294('0x8f')](_0x3f7de9);if(!_0x27ddb4)return null;const _0x598ab5=_0x1294('0xf5')==_0x27ddb4[_0x1294('0x87')]?_0x1294('0x27'):_0x1294('0x2e');if(_0x47e0de['consumable'][_0x1294('0x1e')](_0xd564e0[_0x1294('0x5a')],_0x2a268a['name']))for(const _0x44e548 of _0xd564e0['markerRange'][_0x1294('0xf6')]()){if(!_0x44e548['is'](_0x1294('0x51'),_0x1294('0x81')))continue;const _0x58c6d9=_0x47e0de[_0x1294('0x33')][_0x1294('0x30')]('span',{'class':_0x1294('0x3d')+_0x598ab5}),_0x127fff=_0x47e0de[_0x1294('0xaf')][_0x1294('0xc3')](this[_0x1294('0xd9')][_0x1294('0x6e')]['createPositionBefore'](_0x44e548));_0x27ddb4[_0x1294('0xbd')][_0x1294('0x2')]&&_0x47e0de['writer']['addClass']('ck-suggestion-marker-'+_0x598ab5+'-new',_0x58c6d9),this[_0x1294('0xd')]==_0x27ddb4&&_0x47e0de[_0x1294('0x33')][_0x1294('0xe0')](_0x1294('0xd4'),_0x58c6d9),_0x47e0de[_0x1294('0x33')][_0x1294('0xc7')](_0x127fff,_0x58c6d9),_0x47e0de[_0x1294('0xaf')]['bindElementToMarker'](_0x58c6d9,_0xd564e0[_0x1294('0xde')]);}},{'priority':_0x1294('0x7f')}),this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x84'))[_0x1294('0xc2')]({'view':_0x1294('0xab'),'model':_0xe41c58=>'revision-comment:'+_0xe41c58,'converterPriority':_0x1294('0x74')}),this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')]('upcast')[_0x1294('0xc2')]({'view':_0x1294('0x5'),'model':_0x146e7e=>_0x1294('0x42')+_0x146e7e,'converterPriority':_0x1294('0x74')}),this['editor'][_0x1294('0xc8')]['for'](_0x1294('0x99'))[_0x1294('0x108')]({'model':_0x1294('0x106'),'view':_0x46371b=>_0x1294('0x7d')+_0x46371b,'converterPriority':_0x1294('0x74')}),this['editor']['conversion'][_0x1294('0x28')]('editingDowncast')[_0x1294('0x72')]({'model':'revision-suggestion','view':_0x5d7ffb=>{const _0x4bf1f6=_0x5d7ffb['markerName'][_0x1294('0x27')](':')[0x1];return _0x1294('0x10b')!=_0x4bf1f6&&_0x1294('0x2a')!=_0x4bf1f6?null:{'classes':[_0x1294('0xcb'),_0x1294('0x12')+_0x4bf1f6]};}}),this['editor'][_0x1294('0x98')]['downcastDispatcher']['on'](_0x1294('0x14'),Q(this[_0x1294('0xd9')],_0x1294('0x2e')),{'priority':_0x1294('0x7f')}),this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x10e')]['on'](_0x1294('0x8d'),Q(this[_0x1294('0xd9')],_0x1294('0x27')),{'priority':'high'}),this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x10e')]['on'](_0x1294('0x6f'),(_0x1b5e92,_0x38816d,_0xae9f47)=>{const _0x4c30b2=_0xae9f47[_0x1294('0xaf')][_0x1294('0xfd')](_0x38816d[_0x1294('0xde')]);if(_0x4c30b2)for(const _0x1d02b0 of _0x4c30b2)_0x1d02b0['is'](_0x1294('0x40'))&&(_0xae9f47['mapper'][_0x1294('0xd1')](_0x1d02b0,_0x38816d[_0x1294('0xde')]),_0xae9f47[_0x1294('0x33')][_0x1294('0xb9')](_0x1d02b0));},{'priority':_0x1294('0x7f')});}['_getChangeFromId'](_0x26de8c){return this['_changeIdToChange'][_0x1294('0x107')](_0x26de8c);}['_getViewForChange'](_0x52847d){this['_changeView']&&this[_0x1294('0x1d')][_0x1294('0x60')](),this[_0x1294('0x1d')]=new _0x1ea0d4(this[_0x1294('0xd9')][_0x1294('0x56')],_0x52847d);const _0x1f73c1=this[_0x1294('0xd9')][_0x1294('0x6e')]['markers']['get'](_0x1294('0xb1')+_0x52847d['id']);return this['_changeView'][_0x1294('0xc1')]=()=>_0xdd8ba6(this['editor'][_0x1294('0x98')],_0x1f73c1),this['_changeView'];}['_initInteractions'](){this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x69')][_0x1294('0x4d')][_0x1294('0x59')](_0x1294('0x0')),this['on'](_0x1294('0xa9'),(_0x4dcd73,_0xba4588,_0x4b3546,_0x3f8a37)=>{_0x3f8a37&&this[_0x1294('0xee')]['remove'](_0x3f8a37),_0x4b3546&&(this[_0x1294('0xee')]['add']({'view':_0x4b3546,'stackId':_0x1294('0xe2'),'position':{'target':_0x4b3546[_0x1294('0xc1')]}}),this[_0x1294('0xee')][_0x1294('0x7b')](_0x1294('0xe2')));}),this['on'](_0x1294('0x3c'),(_0x50056e,_0x1bc3df,_0x1e3449,_0xe985d4)=>{this['activeView']=_0x1e3449?this['_getViewForChange'](_0x1e3449):null,this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x95')](()=>{const _0x221713=this[_0x1294('0xd9')][_0x1294('0x98')];_0xe985d4&&_0x221713[_0x1294('0x9')](_0x1294('0xb1')+_0xe985d4['id']),_0x1e3449&&_0x221713['reconvertMarker']('revision:'+_0x1e3449['id']);});}),this['listenTo'](this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x9c')][_0x1294('0x69')],'mouseover',(_0x5baf90,_0x24bb09)=>{if(this[_0x1294('0xd')])return;const _0x413f53=this[_0x1294('0x5d')](_0x24bb09[_0x1294('0x100')]),_0x3eeaec=this[_0x1294('0xdf')]['get'](_0x413f53);this[_0x1294('0xb3')]=_0x3eeaec?this['_getViewForChange'](_0x3eeaec):null;}),this['listenTo'](this[_0x1294('0xd9')][_0x1294('0x98')]['view']['document'],_0x1294('0xfe'),(_0x345fe3,_0xba12bb)=>{const _0x8613b=this[_0x1294('0x5d')](_0xba12bb[_0x1294('0x100')]),_0x49239f=this[_0x1294('0xdf')][_0x1294('0x107')](_0x8613b);this[_0x1294('0xd')]=_0x49239f||null;});}[_0x1294('0x5d')](_0x157553){do{const _0x5bf3d6=_0x157553[_0x1294('0x1f')](_0x1294('0x9f'));if(_0x5bf3d6)return _0x5bf3d6;_0x157553=_0x157553['parent'];}while(_0x157553);return null;}['_cleanMarkers'](){this[_0x1294('0xd9')][_0x1294('0x6e')]['change'](_0x5bc648=>{for(const _0x5b8767 of this[_0x1294('0xd9')]['model'][_0x1294('0x7c')])_0x5bc648[_0x1294('0x101')](_0x5b8767);});}}function Q(_0x1988cc,_0x24a9a8){return(_0x58a868,_0x2bca83,_0x44f112)=>{if(!_0x44f112['consumable'][_0x1294('0x1e')](_0x2bca83['markerRange'],_0x58a868[_0x1294('0x79')]))return;const _0x2ec199=_0x2bca83[_0x1294('0x5a')][_0x1294('0x5e')](),_0x52b98c=_0x2bca83['markerRange'][_0x1294('0xec')],_0x54ec33=_0x1988cc[_0x1294('0x6e')]['schema'];let _0x1c7217=null,_0x5bedba=null,_0x43b1ee=!0x1,_0xd04cff=!0x1;for(const _0x4cb2c1 of _0x2ec199){const _0x291996=_0x4cb2c1[_0x1294('0x110')];_0x43b1ee=_0x43b1ee||_0x54ec33[_0x1294('0xa2')](_0x291996);const _0x2a4e70=_0x44f112['mapper'][_0x1294('0x67')](_0x291996);if(_0x2a4e70&&_0x2a4e70['getCustomProperty'](_0x1294('0x78')))return;'elementEnd'==_0x4cb2c1[_0x1294('0x87')]&&(_0x54ec33['isBlock'](_0x291996)&&!_0x54ec33[_0x1294('0xe8')](_0x291996)&&(_0x291996['nextSibling']||_0x52b98c['isAtEnd']?_0x1c7217&&_0x1c7217[_0x1294('0x3b')]==_0x291996||(_0x1c7217=_0x291996,_0x51cece(_0x4cb2c1[_0x1294('0x17')]),_0xd04cff=!0x0):_0x5bedba=_0x5bedba||_0x4cb2c1[_0x1294('0x17')]));}function _0x51cece(_0x4470a3){const _0x315b7=_0x44f112[_0x1294('0xaf')][_0x1294('0xc3')](_0x4470a3),_0x438bc1=_0x44f112[_0x1294('0x33')][_0x1294('0x30')](_0x1294('0x22'),{'class':'ck-suggestion-preview-marker-'+_0x24a9a8});_0x44f112[_0x1294('0x33')][_0x1294('0xc7')](_0x315b7,_0x438bc1),_0x44f112[_0x1294('0xaf')][_0x1294('0xb')](_0x438bc1,_0x2bca83[_0x1294('0xde')]);}_0x43b1ee||_0xd04cff||!_0x5bedba||_0x51cece(_0x5bedba);};}_0x29ec24(w,_0x518962);class X extends _0x4474a2{constructor(_0x1fabc3){super(_0x1fabc3);const _0x326ada=_0x1fabc3[_0x1294('0xb7')][_0x1294('0x107')](w);this['stopListening'](_0x1fabc3,_0x1294('0xe5')),this[_0x1294('0xb4')](_0x1294('0x68')),this['listenTo'](_0x326ada,_0x1294('0x9e'),()=>this[_0x1294('0x7a')]()),this[_0x1294('0xda')](_0x326ada,_0x1294('0x92'),()=>this[_0x1294('0x7a')]());}['execute'](){const _0x37876c=this[_0x1294('0xd9')],_0x40ad40=_0x37876c['plugins'][_0x1294('0x107')](w),_0x531aa2=_0x40ad40[_0x1294('0xe4')]?_0x40ad40[_0x1294('0x76')][_0x1294('0xeb')]:null;_0x37876c['config']['get']('revisionHistory')[_0x1294('0x39')](_0x531aa2);}[_0x1294('0x7a')](){const {isReady:_0x61847,isEnabled:_0x5d2700}=this[_0x1294('0xd9')][_0x1294('0xb7')][_0x1294('0x107')](w);this[_0x1294('0x64')]=_0x61847&&_0x5d2700;}}class Y extends _0x4474a2{constructor(_0x57c36d,{direction:_0x389082}){super(_0x57c36d);const _0xc22257=_0x57c36d['plugins'][_0x1294('0x107')](w);this['stopListening'](_0x57c36d,'change:isReadOnly'),this[_0x1294('0xb4')](_0x1294('0x68')),this[_0x1294('0x90')]=_0x1294('0x10a')===_0x389082?0x1:-0x1,this[_0x1294('0xda')](_0xc22257,_0x1294('0x9e'),()=>this[_0x1294('0x7a')]()),this[_0x1294('0xda')](_0xc22257,_0x1294('0x92'),()=>this['refresh']());}[_0x1294('0xa4')](){const _0x2a977a=this[_0x1294('0xd9')],_0x3a96c1=_0x2a977a[_0x1294('0xb7')]['get'](w),{isNavigationMode:_0x532727,currentChangeNumber:_0x222b39}=_0x3a96c1;_0x3a96c1[_0x1294('0xd')]=_0x532727?_0x3a96c1['diff'][_0x1294('0xac')][_0x1294('0x107')](_0x222b39+this[_0x1294('0x90')]):_0x3a96c1[_0x1294('0x76')]['changes'][_0x1294('0xd8')];const _0xebaf72=_0x2a977a[_0x1294('0x6e')][_0x1294('0x7c')][_0x1294('0x107')](_0x1294('0xb1')+_0x3a96c1[_0x1294('0xd')]['id']),_0x239b37=_0xdd8ba6(_0x2a977a[_0x1294('0x98')],_0xebaf72);_0x5eebd0({'target':_0x239b37,'viewportOffset':0x28});}[_0x1294('0x7a')](){const {isNavigationMode:_0x195d50,currentChangeNumber:_0x108ca7,numberOfChanges:_0x2277b0,isReady:_0x59738b,isEnabled:_0x5737f3}=this[_0x1294('0xd9')]['plugins'][_0x1294('0x107')](w);this['isEnabled']=!!(_0x5737f3&&_0x59738b&&_0x2277b0)&&(!_0x195d50||(0x1===this[_0x1294('0x90')]?_0x108ca7<_0x2277b0-0x1:_0x108ca7>0x0));}}
|
|
23
|
+
const _0x8761=['repository','attribute:vid','pop','for','viewItem','distance','keys','hasAttribute','addRevisionData','deletions','error','startIndex','has','editor','object','enqueueChange','reconvertMarker','isContent','markerName','isNavigationMode','_getRevisionsRange','_update','elementStart','removeMarker:revision-suggestion','-new','forEach','isInline','addHighlight','RevisionsRepository','forceDisabled','test','ck-suggestion-marker--active','revision-suggestion:','destroy','isLimit','listenTo','getRootNames','vid_end','stop','newRevisionId','_getDiff','numberOfChanges','addMarker:revision-suggestion:deletion','filter','toModel','RevisionViewer','children','dataToMarker','highest','change:activeView','isAdded','_makeTape','elementEnd','writer','_fixObsoleteTags','dataDowncast','remove','type','data-change-id','_markSuggestions','isCollapsed','add','_removeRevisionMarkers','consume','getRevisionData','marked','attributes','getIndex','addMarker:revision','first','isAddSuggestion','change:isEnabled','getItems','ck-suggestion-marker-','getCustomProperty','clearForceDisabled','default','vid','conversion','mapViewToDom','showPreviousChange','addRevision','slice','createRangeIn','resolve','nodeAfter','next','start','revision-suggestion','editingDowncast','execute','createUIElement','splice','bottom','markerRange','schema','restoreRevisionCallback','data','string','findIndex','nextSibling','_makeModelFromTape','_threeWayMerge','backward','POSITIVE_INFINITY','text','revision','_removeMissingPairs','createPositionFromPath','split','toViewRange','markerToData','_changeIdToChange','view','consumable','loadRevisionData','unshift','document','clear','vid_start','_cleanMarkers','isEqual','toData','markerNameToElements','<p></p>','diff','span','name','change:numberOfChanges','WidgetToolbarRepository','addClass','_processTape','domEvent','_revisions','getRevision','changeId','unbindElementFromMarkerName','mousedown','mapper','markerToHighlight','change:activeChange','_markInsertions','from','changes','activeChange','downcastDispatcher','isAtEnd','all','_getViewForChange','end','plugins','isBefore','change:isReady','then','getAttribute','_refreshStartEndIndex','side','offsetSize','_joinTapes','userId','_setConversion','revision-end','markers','get','createRevision','_getViewObj','flat','showNextChange','removeClass','values','concat','markersEnd','index','showStack','revision:','_getChangeFromId','softBreak','delete','isRemoved','locale','_setDistance','low','insert','top','domConverter','forward','model','isAfter','_changeView','createRange','toViewPosition','isReady','wrap','commands','revision-comment:','readOnlyMode','revision-viewer','abs','getWalker','change','_step','_markMismatchedRemovedTags','insertions','_setData','ck-suggestion-preview-marker-','pluginName','_markMarkers','markersStart','length','roots','data-revision-','stopListening','init','toViewElement','push','isBlock','isRemoveSuggestion','isObject','merge','uiElement','setAttribute','change:isReadOnly','previousPosition','diffData','activeView','refresh','authors','removeMarker','item','right','_activeViewTarget','target','processor','isEnabled','collaboration.channelId','level','high','startsWith','endIndex','_makeModelFromViewString','getChild','addMarker:revision-suggestion:insertion','ck-suggestion-marker-split','map','bind','createAttributeElement','_cleanUp','parent','parse','adapter','_initInteractions','element','enableReadOnlyMode','suggestion:','comment','insertion','isSuggestion','modelRange','shift','bindElementToMarker','getAttributes','useFillerType','deletion','set','includes','editing','_balloon','sort','done','ck-suggestion-marker-merge','upcast','return','observeMarkers','pairId','config','_removeUnsupportedChanges','setData','element:pre','ck-suggestion-marker','mouseover','hasClass','find','restoreRevision','isIncorrect','createPositionBefore'];(function(_0x42a9e7,_0x876121){const _0x21ddf8=function(_0x2cd722){while(--_0x2cd722){_0x42a9e7['push'](_0x42a9e7['shift']());}};_0x21ddf8(++_0x876121);}(_0x8761,0x75));const _0x21dd=function(_0x42a9e7,_0x876121){_0x42a9e7=_0x42a9e7-0x0;let _0x21ddf8=_0x8761[_0x42a9e7];return _0x21ddf8;};import{Plugin as _0x253dbf,Command as _0x4236bc}from'ckeditor5/src/core';import{ObservableMixin as _0x13fcd3,mix as _0x1aadb8,scrollViewportToShowTarget as _0x256f9b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x55033e}from'ckeditor5/src/ui';import{DocumentFragment as _0x1a623c,Element as _0x20d58d,Text as _0x285584,ViewDocumentFragment as _0x4031ba,ViewText as _0x4e8dd5,ViewElement as _0x183553,ViewContainerElement as _0x2a1ba6,ViewAttributeElement as _0x3e7fa1,ViewEmptyElement as _0x4678f4,ViewRawElement as _0x2fb814,ViewUIElement as _0x24030c}from'ckeditor5/src/engine';import{Users as _0x418f39,getMarkerDomElement as _0x38bdb3}from'ckeditor5-collaboration/src/collaboration-core';import _0x229cd2 from'./ui/revisionviewer/changedetailsview';import _0x54d0f7 from'./revisionsrepository';import _0x1427ee from'./changeitem';import _0x21f98d from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0x2a1ba6,'a':_0x3e7fa1,'e':_0x4678f4,'r':_0x2fb814,'u':_0x24030c};export default class w extends _0x253dbf{static get[_0x21dd('0x58')](){return _0x21dd('0xd5');}static get['requires'](){return[_0x418f39,_0x55033e,_0x54d0f7];}constructor(..._0x25128b){super(..._0x25128b),this[_0x21dd('0xa8')]=this['editor'][_0x21dd('0x21')][_0x21dd('0x2e')](_0x21dd('0xc4')),this[_0x21dd('0x92')](_0x21dd('0x1b'),null),this['set'](_0x21dd('0x6b'),null),this[_0x21dd('0x71')]=null,this[_0x21dd('0x92')](_0x21dd('0x8'),null),this[_0x21dd('0x92')](_0x21dd('0x4a'),!0x1),this[_0x21dd('0x92')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1b5f40,_0x5f5d8a,_0x4f9068)=>{this[_0x21dd('0x1b')]=null,this['activeView']=null,this[_0x21dd('0xb5')][_0x21dd('0x94')][_0x21dd('0x119')][_0x21dd('0x52')](_0x32c372=>{for(const _0x50ce12 of this[_0x21dd('0xb5')]['editing'][_0x21dd('0x119')]['document'][_0x21dd('0x5c')])_0x4f9068?_0x32c372[_0x21dd('0x33')]('ck-editor__editable__overlay',_0x50ce12):_0x32c372[_0x21dd('0xd')]('ck-editor__editable__overlay',_0x50ce12);});}),this['bind'](_0x21dd('0xbb'))['to'](this,_0x21dd('0x1b'),_0xcd4bee=>null!==_0xcd4bee),this[_0x21dd('0x7f')]('currentChangeNumber')['to'](this,_0x21dd('0x4a'),this,'diff',this,'activeChange',(_0x9dbbd5,_0xda26d0,_0x465a13)=>_0x9dbbd5&&_0x465a13?_0xda26d0[_0x21dd('0x1a')][_0x21dd('0xeb')](_0x465a13):0x0),this[_0x21dd('0x7f')](_0x21dd('0xd1'))['to'](this,_0x21dd('0x4a'),this,_0x21dd('0x8'),(_0xac3b50,_0x1fcf87)=>_0xac3b50?_0x1fcf87['changes'][_0x21dd('0x5b')]:0x0),this[_0x21dd('0x47')]=null,this[_0x21dd('0x118')]=new Map(),this[_0x21dd('0x84')]=null,this['_balloon']=this[_0x21dd('0xb5')][_0x21dd('0x21')][_0x21dd('0x2e')](_0x55033e);}[_0x21dd('0x5f')](){const _0x1de99c=this[_0x21dd('0xb5')],_0x22377f=new Y(_0x1de99c,{'direction':_0x21dd('0x10f')}),_0x1d2cb7=new Y(_0x1de99c,{'direction':'forward'});_0x1de99c[_0x21dd('0x4c')]['add'](_0x21dd('0xf8'),_0x22377f),_0x1de99c[_0x21dd('0x4c')][_0x21dd('0xe5')](_0x21dd('0x32'),_0x1d2cb7),_0x1de99c['commands']['add'](_0x21dd('0xa5'),new X(_0x1de99c)),this['on'](_0x21dd('0xb'),()=>{_0x22377f['refresh'](),_0x1d2cb7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1de99c[_0x21dd('0x87')](_0x21dd('0x4f')),_0x1de99c['plugins'][_0x21dd('0xb4')]('WidgetToolbarRepository')&&_0x1de99c['plugins'][_0x21dd('0x2e')](_0x21dd('0xc'))[_0x21dd('0xc5')](_0x21dd('0x4f'));}async[_0x21dd('0xe8')](_0x40f0d4){await this['loadRevisionData'](_0x40f0d4);const _0x495e4e={};for(const _0x4e55dd in _0x40f0d4[_0x21dd('0x6a')]){const _0x3a6fa1=this['_removeRevisionMarkers'](JSON[_0x21dd('0x83')](_0x40f0d4[_0x21dd('0x6a')][_0x4e55dd][_0x21dd('0x55')])),_0x5213cf=this[_0x21dd('0xb5')][_0x21dd('0x94')][_0x21dd('0x119')]['document'],_0x32a082=new _0x4031ba(_0x5213cf,_0x3a6fa1[_0x21dd('0x7e')](_0x2f6a1c=>this[_0x21dd('0x30')](_0x2f6a1c)));this[_0x21dd('0xb5')][_0x21dd('0x109')][_0x21dd('0x73')][_0x21dd('0x90')](_0x21dd('0xe9')),_0x495e4e[_0x4e55dd]=this[_0x21dd('0xb5')][_0x21dd('0x109')][_0x21dd('0x73')][_0x21dd('0x5')](_0x32a082),this[_0x21dd('0xb5')][_0x21dd('0x109')][_0x21dd('0x73')][_0x21dd('0x90')](_0x21dd('0xf4'));}return _0x495e4e;}[_0x21dd('0xe6')](_0x294549){return(_0x294549=_0x294549[_0x21dd('0xd3')](_0x4e9575=>!_0x4e9575[_0x21dd('0xa')]||'revision-start'!==_0x4e9575[_0x21dd('0xa')]&&_0x21dd('0x2c')!==_0x4e9575[_0x21dd('0xa')]))[_0x21dd('0xc1')](_0x503f9d=>{_0x21dd('0x10a')!=typeof _0x503f9d&&(_0x503f9d['children']=this[_0x21dd('0xe6')](_0x503f9d[_0x21dd('0xd6')]),_0x503f9d[_0x21dd('0xea')]=_0x503f9d[_0x21dd('0xea')][_0x21dd('0xd3')](_0x5162b3=>!_0x5162b3[0x0][_0x21dd('0x78')](_0x21dd('0x5d'))));}),_0x294549;}['compare'](_0x1402f4,_0x38da96,_0x42c4e0=!0x1){if(!this['isEnabled'])return;const _0x4337ec=this['diff'],_0x5bda42=this['repository'],_0x308c86=_0x21dd('0x10a')==typeof _0x1402f4?_0x5bda42[_0x21dd('0x11')](_0x1402f4):_0x1402f4,_0x4fc34e=_0x21dd('0x10a')==typeof _0x38da96?_0x5bda42['getRevision'](_0x38da96):_0x38da96,_0x5bdb59=_0x308c86['id'],_0x6e7d4=_0x4fc34e?_0x4fc34e['id']:null;if(!_0x42c4e0&&this[_0x21dd('0x8')]&&this[_0x21dd('0x8')]['newRevisionId']===_0x5bdb59&&this[_0x21dd('0x8')]['oldRevisionId']===_0x6e7d4)return Promise[_0x21dd('0xfc')]();this['isReady']=!0x1,this[_0x21dd('0x6b')]=null,this[_0x21dd('0x1b')]=null,this[_0x21dd('0x8')]=new _0x21f98d(_0x5bdb59,_0x6e7d4);const _0x4f2107=this[_0x21dd('0xbc')](_0x308c86,_0x4fc34e,!0x0)[_0x21dd('0x7e')](_0x5f404c=>this[_0x21dd('0x11b')](_0x5f404c));return _0x4f2107['push'](new Promise(_0x37b838=>{setTimeout(_0x37b838,0x14);})),Promise[_0x21dd('0x1e')](_0x4f2107)[_0x21dd('0x24')](()=>{if(!this[_0x21dd('0x74')])return;this[_0x21dd('0x81')]();const _0x187181=this[_0x21dd('0xd0')](_0x5bdb59,_0x6e7d4);this[_0x21dd('0x8')][_0x21dd('0x56')](_0x187181);for(const _0x464db7 of this[_0x21dd('0x8')][_0x21dd('0x1a')])this[_0x21dd('0x118')][_0x21dd('0x92')](_0x464db7['id'],_0x464db7);this[_0x21dd('0xb5')]['model'][_0x21dd('0xb7')]({'isUndoable':!0x1},_0x49d35d=>{for(const _0x3dc3e2 of Object['keys'](_0x187181[_0x21dd('0x45')])){const _0x4b6138=this[_0x21dd('0xb5')][_0x21dd('0x45')][_0x21dd('0x0')]['getRoot'](_0x3dc3e2);_0x49d35d[_0x21dd('0xe0')](_0x49d35d[_0x21dd('0xfb')](_0x4b6138)),_0x49d35d[_0x21dd('0x41')](_0x187181['model'][_0x3dc3e2],_0x4b6138,0x0);}}),this[_0x21dd('0x4a')]=!0x0;})['catch'](_0x3f6b62=>{console[_0x21dd('0xb2')](_0x3f6b62),this[_0x21dd('0x81')](),_0x4337ec?this[_0x21dd('0x8')]=_0x4337ec:this['editor'][_0x21dd('0x9f')](_0x21dd('0x7')),this[_0x21dd('0x4a')]=!0x0;});}[_0x21dd('0xc9')](){this['activeView']=null,this['_changeView']&&this[_0x21dd('0x47')][_0x21dd('0xc9')]();}[_0x21dd('0xb0')](_0x2231bc,_0x1c9204){const _0x379105=this[_0x21dd('0xa8')][_0x21dd('0x2f')](_0x2231bc);return _0x379105['on'](_0x21dd('0xbd'),(_0x119bc5,_0x31b12a,_0x1cedf3)=>_0x1c9204(_0x31b12a,_0x1cedf3,_0x379105)),this[_0x21dd('0xa8')][_0x21dd('0xf9')](_0x379105),_0x379105;}[_0x21dd('0x11b')](_0x6b6369){if(!_0x6b6369||_0x6b6369['diffData'])return Promise[_0x21dd('0xfc')]();{const _0x289d0a=this['editor'][_0x21dd('0x9d')][_0x21dd('0x2e')](_0x21dd('0x75'));return this[_0x21dd('0x84')]['getRevision']({'channelId':_0x289d0a,'revisionId':_0x6b6369['id']})['then'](_0x3a2ee7=>{_0x6b6369[_0x21dd('0xbd')]({'diffData':_0x3a2ee7['diffData']},!0x0);});}}[_0x21dd('0x81')](){this['activeChange']=null,this[_0x21dd('0x3')](),this[_0x21dd('0x47')]&&this['_changeView'][_0x21dd('0xc9')](),this['_changeView']=null,this[_0x21dd('0x118')][_0x21dd('0x1')]();}[_0x21dd('0xdb')](_0x3c38d1){const _0x59973b=Array[_0x21dd('0x19')](_0x3c38d1[_0x21dd('0x2d')])['filter'](([_0x30651b,_0x4a6c1a])=>_0x30651b[_0x21dd('0x78')]('revision:')&&!_0x4a6c1a[_0x21dd('0xe4')]),_0x1c4557=Array[_0x21dd('0x19')](this['editor'][_0x21dd('0x45')][_0x21dd('0xfb')](_0x3c38d1)[_0x21dd('0x51')]({'singleCharacters':!0x0}));if(0x0!=_0x59973b[_0x21dd('0x5b')])for(const _0x4fba6f of _0x1c4557){const [_0x2a8f70,_0x16278a]=_0x59973b[0x0],[,_0x11742c,_0x209bf9]=_0x2a8f70[_0x21dd('0x115')](':');if(_0x16278a['end']['isEqual'](_0x4fba6f['nextPosition'])&&_0x59973b[_0x21dd('0x8d')](),(_0x4fba6f[_0x21dd('0x69')]['isEqual'](_0x16278a[_0x21dd('0xff')])||_0x4fba6f[_0x21dd('0x69')][_0x21dd('0x46')](_0x16278a[_0x21dd('0xff')]))&&(_0x21dd('0x8a')==_0x11742c?_0x4fba6f['isAdded']={'userId':_0x209bf9}:_0x21dd('0x91')==_0x11742c&&(_0x4fba6f['isRemoved']={'userId':_0x209bf9})),0x0==_0x59973b[_0x21dd('0x5b')])break;}return _0x1c4557;}[_0x21dd('0x26')](_0x3f828d){const _0x12826d=new Map();for(let _0x227a3d=0x0;_0x227a3d<_0x3f828d['length'];_0x227a3d++)_0x21dd('0x111')===_0x3f828d[_0x227a3d][_0x21dd('0xe1')]?(_0x3f828d[_0x227a3d]['item'][_0x21dd('0xb3')]=_0x227a3d,_0x3f828d[_0x227a3d][_0x21dd('0x6f')][_0x21dd('0x79')]=_0x227a3d):(_0x21dd('0xbe')===_0x3f828d[_0x227a3d]['type']?_0x3f828d[_0x227a3d][_0x21dd('0x6f')][_0x21dd('0xb3')]=_0x227a3d:_0x21dd('0xdc')===_0x3f828d[_0x227a3d][_0x21dd('0xe1')]&&(_0x3f828d[_0x227a3d]['item'][_0x21dd('0x79')]=_0x227a3d),_0x12826d[_0x21dd('0x92')](_0x3f828d[_0x227a3d]['id'],_0x227a3d));for(const _0x20ce64 of _0x12826d[_0x21dd('0x34')]())'elementStart'===_0x3f828d[_0x20ce64]['type']?_0x3f828d[_0x20ce64][_0x21dd('0x6f')][_0x21dd('0x79')]=_0x12826d[_0x21dd('0x2e')](_0x3f828d[_0x20ce64][_0x21dd('0x9c')]):_0x21dd('0xdc')===_0x3f828d[_0x20ce64]['type']&&(_0x3f828d[_0x20ce64][_0x21dd('0x6f')][_0x21dd('0xb3')]=_0x12826d[_0x21dd('0x2e')](_0x3f828d[_0x20ce64][_0x21dd('0x9c')]));}[_0x21dd('0xe')](_0x433a9d){for(let _0x23a5ee=0x0;_0x23a5ee<_0x433a9d[_0x21dd('0x5b')];_0x23a5ee++){if('elementStart'===_0x433a9d[_0x23a5ee][_0x21dd('0xe1')])_0x433a9d[_0x23a5ee][_0x21dd('0x6f')][_0x21dd('0xb3')]=_0x23a5ee;else{if('elementEnd'===_0x433a9d[_0x23a5ee][_0x21dd('0xe1')]){_0x433a9d[_0x23a5ee][_0x21dd('0x6f')][_0x21dd('0x79')]=_0x23a5ee;const _0x29e8d5=_0x433a9d[_0x23a5ee][_0x21dd('0x6f')][_0x21dd('0xb3')];_0x433a9d[_0x29e8d5]['pairId']=_0x433a9d[_0x23a5ee]['id'],_0x433a9d[_0x23a5ee][_0x21dd('0x9c')]=_0x433a9d[_0x29e8d5]['id'];}else _0x433a9d[_0x23a5ee]['item'][_0x21dd('0xb3')]=_0x23a5ee,_0x433a9d[_0x23a5ee][_0x21dd('0x6f')]['endIndex']=_0x23a5ee,_0x433a9d[_0x23a5ee][_0x21dd('0x9c')]=null;}_0x433a9d[_0x23a5ee][_0x21dd('0x5a')]||(_0x433a9d[_0x23a5ee][_0x21dd('0x5a')]=[],_0x433a9d[_0x23a5ee][_0x21dd('0x36')]=[]);}}[_0x21dd('0x18')](_0x4f0176,_0x1ea8b2){const _0x1f2d1c=_0x4f0176[_0x21dd('0xd3')](_0x1beb6c=>!_0x1beb6c[_0x21dd('0xda')]);for(let _0x1990fe=0x0;_0x1990fe<_0x1ea8b2[_0x21dd('0x5b')];_0x1990fe++)_0x1ea8b2[_0x1990fe]['isAdded']&&(_0x1f2d1c[_0x1990fe]['isAdded']=_0x1ea8b2[_0x1990fe][_0x21dd('0xda')]);}['_makeModelFromViewString'](_0x2d7564){const _0x5e933c=JSON[_0x21dd('0x83')](_0x2d7564),_0x4a1961=this[_0x21dd('0xb5')][_0x21dd('0x94')][_0x21dd('0x119')][_0x21dd('0x0')],_0x552b9b=new _0x4031ba(_0x4a1961,_0x5e933c[_0x21dd('0x7e')](_0x323fff=>this[_0x21dd('0x30')](_0x323fff)));return this[_0x21dd('0xb5')][_0x21dd('0x109')][_0x21dd('0xd4')](_0x552b9b);}[_0x21dd('0x30')](_0x3a35d7){const _0x3bdc53=this['editor'][_0x21dd('0x94')][_0x21dd('0x119')][_0x21dd('0x0')];if(_0x21dd('0x10a')==typeof _0x3a35d7)return new _0x4e8dd5(_0x3bdc53,_0x3a35d7);{const _0x3940ce=_0x3a35d7[_0x21dd('0xd6')][_0x21dd('0x7e')](_0x51fb47=>this[_0x21dd('0x30')](_0x51fb47));return new(K[_0x3a35d7[(_0x21dd('0xe1'))]]||_0x183553)(_0x3bdc53,_0x3a35d7['name'],_0x3a35d7[_0x21dd('0xea')],_0x3940ce);}}['_getDiff'](_0x2ce5d9,_0x3f7545=null){const _0x313eb3=this[_0x21dd('0xa8')]['getRevision'](_0x2ce5d9),_0x4f734c=_0x3f7545?this[_0x21dd('0xa8')][_0x21dd('0x11')](_0x3f7545):null,_0x27883f=this[_0x21dd('0xbc')](_0x313eb3,_0x4f734c),_0x15de54=_0x27883f[_0x27883f[_0x21dd('0x5b')]-0x1],_0x1bf728=new Map();for(const _0x49c9cd of _0x27883f){_0x49c9cd[_0x21dd('0x45')]={};for(const _0x2a6210 of _0x49c9cd[_0x21dd('0x6d')])_0x1bf728[_0x21dd('0x92')](_0x2a6210['id'],_0x2a6210);for(const _0x4e5475 of this['editor'][_0x21dd('0x45')][_0x21dd('0x0')][_0x21dd('0xcc')]())_0x49c9cd[_0x21dd('0x6a')][_0x4e5475]||(_0x49c9cd[_0x21dd('0x6a')][_0x4e5475]={'insertions':'[]','deletions':'[]'}),_0x49c9cd[_0x21dd('0x45')][_0x4e5475]={'insertions':this['_makeModelFromViewString'](_0x49c9cd['diffData'][_0x4e5475]['insertions']),'deletions':this[_0x21dd('0x7a')](_0x49c9cd[_0x21dd('0x6a')][_0x4e5475][_0x21dd('0xb1')])};}const _0x2b82cd={'model':{},'changes':[]};for(const _0x2f615b of this[_0x21dd('0xb5')][_0x21dd('0x45')][_0x21dd('0x0')][_0x21dd('0xcc')]()){let _0x2202d2=null,_0x28ef68=0x0;const _0x1ac204=new Map(Array[_0x21dd('0x19')](_0x313eb3['model'][_0x2f615b]['insertions'][_0x21dd('0x2d')])['filter'](([_0x35247f])=>!_0x35247f['startsWith']('revision:')));let _0x3bdd77=0x0;for(const _0x34b7b2 of _0x27883f){const _0xa625de=this[_0x21dd('0xdb')](_0x34b7b2[_0x21dd('0x45')][_0x2f615b]['insertions']);_0x34b7b2==_0x313eb3?(_0x2202d2=_0xa625de,_0x28ef68=_0x2202d2[_0x21dd('0x5b')],_0x2202d2[_0x21dd('0xc1')](_0x43c917=>{_0x43c917['id']=_0x3bdd77++;}),this[_0x21dd('0xe')](_0x2202d2)):this['_markInsertions'](_0x2202d2,_0xa625de);const _0x3b465e=_0x2202d2[_0x21dd('0xd3')](_0x5139c5=>!_0x5139c5[_0x21dd('0xda')])[_0x21dd('0x7e')](_0x29aed6=>_0x29aed6['id']);let _0x266c97=0x0;const _0x3eceda=this[_0x21dd('0xdb')](_0x34b7b2[_0x21dd('0x45')][_0x2f615b][_0x21dd('0xb1')]);_0x3eceda[_0x21dd('0xc1')](_0x127d06=>{_0x127d06[_0x21dd('0x3d')]?_0x127d06['id']=_0x28ef68++:_0x127d06['id']=_0x3b465e[_0x266c97++];}),this[_0x21dd('0xe')](_0x3eceda),this[_0x21dd('0x3f')](_0x2202d2,_0x21dd('0xda')),this[_0x21dd('0x3f')](_0x3eceda,'isRemoved'),_0x34b7b2==_0x313eb3&&this[_0x21dd('0x59')](_0x2202d2,_0x1ac204),_0x2202d2=this[_0x21dd('0x29')](_0x2202d2,_0x3eceda),this[_0x21dd('0x26')](_0x2202d2),this['_setDistance'](_0x2202d2,_0x21dd('0x3d'));}_0x2202d2=_0x2202d2['filter'](_0x16bfbd=>!(_0x16bfbd['isAdded']&&_0x16bfbd['isRemoved']));const _0x3ade91=new Map(_0x15de54[_0x21dd('0x45')][_0x2f615b][_0x21dd('0xb1')][_0x21dd('0x2d')]),_0x192daf=new Set(_0x1ac204[_0x21dd('0xae')]());for(const _0xc6f6d4 of _0x3ade91['keys']())_0x192daf[_0x21dd('0x3c')](_0xc6f6d4);this[_0x21dd('0xe3')](_0x2202d2,_0x192daf),this['_fixObsoleteTags'](_0x2202d2),_0x2202d2=this['_removeMissingPairs'](_0x2202d2),_0x2202d2=this[_0x21dd('0x54')](_0x2202d2),_0x2202d2=this[_0x21dd('0x9e')](_0x2202d2);const {root:_0x5426dc,changes:_0x13ed6d}=this['_makeModelFromTape'](_0x2202d2,_0x1bf728);_0x2b82cd[_0x21dd('0x45')][_0x2f615b]=_0x5426dc,_0x2b82cd[_0x21dd('0x1a')]=_0x2b82cd[_0x21dd('0x1a')][_0x21dd('0x35')](_0x13ed6d);}return _0x2b82cd;}['_markMarkers'](_0x30acf3,_0x55db74){for(let _0x54dd48=0x0;_0x54dd48<_0x30acf3[_0x21dd('0x5b')];_0x54dd48++)for(const [_0x3d9938,_0x527d93]of _0x55db74)_0x527d93['start'][_0x21dd('0x4')](_0x30acf3[_0x54dd48][_0x21dd('0x69')])&&_0x30acf3[_0x54dd48]['markersStart']['push'](_0x3d9938),_0x527d93[_0x21dd('0x20')][_0x21dd('0x4')](_0x30acf3[_0x54dd48]['nextPosition'])&&_0x30acf3[_0x54dd48]['markersEnd'][_0x21dd('0x61')](_0x3d9938);}[_0x21dd('0x29')](_0x316e15,_0x343b94){let _0x29d287=[],_0x57d3f8=0x0,_0x5a354e=0x0;for(;_0x57d3f8<_0x316e15[_0x21dd('0x5b')]||_0x5a354e<_0x343b94[_0x21dd('0x5b')];){const _0x96f3cc=_0x316e15[_0x57d3f8]||{},_0x4b3ee9=_0x343b94[_0x5a354e]||{};if(_0x96f3cc['id']==_0x4b3ee9['id'])_0x57d3f8++,_0x5a354e++,_0x29d287[_0x21dd('0x61')](_0x96f3cc);else{if(_0x4b3ee9[_0x21dd('0x3d')]&&_0x96f3cc[_0x21dd('0xda')]){const {commonTape:_0x3e9a09,iEnd:_0x27191f,jEnd:_0x197dc8}=this['_threeWayMerge'](_0x316e15,_0x57d3f8,_0x343b94,_0x5a354e);_0x29d287=_0x29d287[_0x21dd('0x35')](_0x3e9a09),_0x57d3f8=_0x27191f,_0x5a354e=_0x197dc8;}else _0x4b3ee9['isRemoved']?(_0x5a354e++,_0x29d287[_0x21dd('0x61')](_0x4b3ee9)):(_0x57d3f8++,_0x29d287[_0x21dd('0x61')](_0x96f3cc));}}return _0x29d287;}[_0x21dd('0xe3')](_0x8d534f,_0x37539e){const _0x2b75ad=[];for(let _0x23ede4=0x0;_0x23ede4<_0x8d534f[_0x21dd('0x5b')];_0x23ede4++){for(let _0x60d555=0x0;_0x60d555<_0x8d534f[_0x23ede4][_0x21dd('0x5a')]['length'];_0x60d555++){const _0x5ae997=_0x8d534f[_0x23ede4][_0x21dd('0x5a')][_0x60d555];if(!_0x37539e['has'](_0x5ae997))continue;const {group:_0x5b5853,type:_0x4db04d,authorId:_0x4458e6}=_0x497bdb(_0x5ae997);'revision-suggestion'!=_0x5b5853||_0x21dd('0x8a')!=_0x4db04d&&_0x21dd('0x91')!=_0x4db04d||(_0x2b75ad[_0x21dd('0x11c')]({'type':_0x4db04d,'name':_0x5ae997,'userId':_0x4458e6}),_0x8d534f[_0x23ede4][_0x21dd('0x5a')]['splice'](_0x60d555,0x1),_0x60d555--);}_0x5f3628(_0x8d534f[_0x23ede4]);for(let _0x395ba6=0x0;_0x395ba6<_0x8d534f[_0x23ede4][_0x21dd('0x36')][_0x21dd('0x5b')];_0x395ba6++){const _0x38db26=_0x8d534f[_0x23ede4]['markersEnd'][_0x395ba6];if(!_0x37539e[_0x21dd('0xb4')](_0x38db26))continue;const {group:_0x367c4c,type:_0x4b7739}=_0x497bdb(_0x38db26);if(_0x21dd('0x100')!=_0x367c4c||_0x21dd('0x8a')!=_0x4b7739&&_0x21dd('0x91')!=_0x4b7739)continue;_0x8d534f[_0x23ede4]['markersEnd']['splice'](_0x395ba6,0x1),_0x395ba6--;const _0x19d6c5=_0x2b75ad[_0x21dd('0x10b')](_0x15e851=>_0x15e851[_0x21dd('0xa')]==_0x38db26);_0x19d6c5>-0x1&&_0x2b75ad[_0x21dd('0x104')](_0x19d6c5,0x1);}}function _0x497bdb(_0x5b38d5){const _0x170761=_0x5b38d5[_0x21dd('0x115')](':');return{'group':_0x170761[0x0],'type':_0x170761[0x1],'subType':_0x170761[_0x21dd('0x5b')]>=0x5?_0x170761[0x2]:null,'id':_0x170761[_0x21dd('0x5b')]<0x5?_0x170761[0x2]:_0x170761[0x3],'authorId':_0x170761[_0x21dd('0x5b')]<0x5?_0x170761[0x3]:_0x170761[0x4],'markerCount':0x6==_0x170761[_0x21dd('0x5b')]?_0x170761[0x5]:null};}function _0x5f3628(_0x441cff){for(let _0x1d5f43=0x0;_0x1d5f43<_0x2b75ad['length'];_0x1d5f43++){if(_0x441cff[_0x21dd('0xda')]&&_0x21dd('0x8a')==_0x2b75ad[_0x1d5f43]['type'])return _0x441cff['isAddSuggestion']=_0x2b75ad[_0x1d5f43],void delete _0x441cff[_0x21dd('0xda')];if(!_0x441cff['isAdded']&&!_0x441cff[_0x21dd('0x3d')]&&_0x21dd('0x91')==_0x2b75ad[_0x1d5f43][_0x21dd('0xe1')])return void(_0x441cff[_0x21dd('0x63')]=_0x2b75ad[_0x1d5f43]);}}}[_0x21dd('0x3f')](_0x185a2d,_0x3b5c8f){let _0x1e6dc8=0x0,_0x150564=!0x1;const _0x3c5a71=new Map();for(const _0x40474b of _0x185a2d)_0x40474b[_0x3b5c8f]?_0x150564&&(_0x1e6dc8++,_0x150564=!0x1):(_0x1e6dc8++,_0x150564=!0x0),_0x3c5a71[_0x21dd('0x92')](_0x40474b['id'],_0x1e6dc8);for(let _0x24fe98=0x0;_0x24fe98<_0x185a2d[_0x21dd('0x5b')];_0x24fe98++){if(_0x21dd('0x3d')==_0x3b5c8f&&_0x185a2d[_0x24fe98][_0x21dd('0xda')]||_0x21dd('0xda')==_0x3b5c8f&&_0x185a2d[_0x24fe98][_0x21dd('0x3d')])continue;if(_0x21dd('0x111')==_0x185a2d[_0x24fe98][_0x21dd('0xe1')]){_0x185a2d[_0x24fe98]['distance']=0x0;continue;}const _0x8a5d3b=_0x3c5a71['get'](_0x185a2d[_0x24fe98][_0x21dd('0x9c')]),_0x492fcf=_0x3c5a71[_0x21dd('0x2e')](_0x185a2d[_0x24fe98]['id']);_0x185a2d[_0x24fe98][_0x21dd('0xad')]=_0x8a5d3b-_0x492fcf;}}[_0x21dd('0xbc')](_0x45c514,_0x31ac3d,_0x294d75=!0x1){const _0xab41ed=[];let _0x2b7b06=this[_0x21dd('0xa8')][_0x21dd('0xeb')](_0x45c514),_0x39268f=this[_0x21dd('0xa8')][_0x21dd('0xeb')](_0x31ac3d);for(-0x1==_0x39268f&&(_0x39268f=this['repository'][_0x21dd('0x10')][_0x21dd('0x5b')],_0x294d75=!0x1);_0x2b7b06<_0x39268f;)_0xab41ed[_0x21dd('0x61')](this[_0x21dd('0xa8')][_0x21dd('0x11')](_0x2b7b06)),_0x2b7b06++;return _0x294d75&&_0xab41ed['push'](this[_0x21dd('0xa8')][_0x21dd('0x11')](_0x2b7b06)),_0xab41ed;}[_0x21dd('0x10e')](_0x1eacd5,_0x40bad7,_0x862b23,_0x1aaaa2){const _0xb4db6c=this[_0x21dd('0xb5')]['model'][_0x21dd('0x107')];let _0x1ab175=_0x40bad7;for(;_0x1eacd5[_0x1ab175]&&_0x1eacd5[_0x1ab175][_0x21dd('0xda')];)_0x1ab175++;let _0x8a9f8b=_0x1aaaa2;for(;_0x862b23[_0x8a9f8b]&&_0x862b23[_0x8a9f8b]['isRemoved'];)_0x8a9f8b++;_0x231f88(_0x1eacd5,_0x40bad7,_0x1ab175),_0x231f88(_0x862b23,_0x1aaaa2,_0x8a9f8b);const _0x554647=_0x862b23['slice'](_0x1aaaa2,_0x8a9f8b)[_0x21dd('0x35')](_0x1eacd5[_0x21dd('0xfa')](_0x40bad7,_0x1ab175));return _0x554647[_0x21dd('0x96')]((_0x136423,_0x4b8b06)=>_0x136423[_0x21dd('0x27')]!=_0x4b8b06[_0x21dd('0x27')]?_0x136423[_0x21dd('0x27')]-_0x4b8b06[_0x21dd('0x27')]:_0x136423[_0x21dd('0x76')]!=_0x4b8b06['level']?_0x136423[_0x21dd('0x76')]-_0x4b8b06[_0x21dd('0x76')]:_0x136423[_0x21dd('0xad')]!=_0x4b8b06['distance']?_0x4b8b06['distance']-_0x136423[_0x21dd('0xad')]:!!_0x136423[_0x21dd('0xda')]!=!!_0x4b8b06[_0x21dd('0xda')]?-0x1==_0x136423[_0x21dd('0x27')]||0x0==_0x136423['side']?_0x136423[_0x21dd('0xda')]?-0x1:0x1:_0x136423[_0x21dd('0xda')]?0x1:-0x1:_0x136423[_0x21dd('0x37')]-_0x4b8b06[_0x21dd('0x37')]),{'commonTape':_0x554647,'iEnd':_0x1ab175,'jEnd':_0x8a9f8b};function _0x231f88(_0x1760c9,_0x4c1a18,_0x298980){let _0x3f57e8=-0x1,_0x5dfc1c=Number[_0x21dd('0x110')],_0x21762a=!0x0;for(let _0x29d37b=_0x4c1a18;_0x29d37b<_0x298980;_0x29d37b++)if(_0xb4db6c[_0x21dd('0xc2')](_0x1760c9[_0x29d37b][_0x21dd('0x6f')])||(_0x21762a=!0x1),_0x1760c9[_0x29d37b][_0x21dd('0x6f')]['startIndex']<_0x4c1a18&&(_0x3f57e8=_0x29d37b),_0x1760c9[_0x29d37b]['item']['endIndex']>=_0x298980){_0x5dfc1c=_0x29d37b;break;}_0x21762a&&(_0x3f57e8=_0x298980-0x1);for(let _0x28d953=_0x4c1a18;_0x28d953<_0x298980;_0x28d953++)_0x1760c9[_0x28d953]['side']=_0x28d953<=_0x3f57e8?-0x1:_0x28d953<_0x5dfc1c?0x0:0x1,_0x1760c9[_0x28d953][_0x21dd('0x37')]=_0x28d953;let _0x5ad9fa=0x0;for(let _0x3e7a55=_0x4c1a18;_0x3e7a55<=_0x3f57e8;_0x3e7a55++)0x0==_0x1760c9[_0x3e7a55][_0x21dd('0xad')]?_0x1760c9[_0x3e7a55][_0x21dd('0x76')]=_0x5ad9fa:(_0x5ad9fa++,_0x1760c9[_0x3e7a55]['level']=_0x5ad9fa,_0x5ad9fa++);for(let _0x5d8f8d=_0x4c1a18;_0x5d8f8d<_0x298980;_0x5d8f8d++)0x0==_0x1760c9[_0x5d8f8d][_0x21dd('0x27')]&&(_0x1760c9[_0x5d8f8d]['level']=_0x5ad9fa);_0x5ad9fa=0x0;for(let _0x43a8ea=_0x298980-0x1;_0x43a8ea>=_0x5dfc1c;_0x43a8ea--)0x0==_0x1760c9[_0x43a8ea]['distance']?_0x1760c9[_0x43a8ea][_0x21dd('0x76')]=_0x5ad9fa:(_0x5ad9fa--,_0x1760c9[_0x43a8ea][_0x21dd('0x76')]=_0x5ad9fa,_0x5ad9fa--);}}[_0x21dd('0xde')](_0x366074){const _0x2cf757=new Map(),_0x11a55f=this[_0x21dd('0xb5')]['model'][_0x21dd('0x107')];for(let _0x41e6b9=0x1;_0x41e6b9<_0x366074['length'];_0x41e6b9++){let _0x24877e,_0x163aa3,_0x8f56f3;const _0x24a382=_0x366074[_0x41e6b9],_0x1cb58e=_0x366074[_0x41e6b9-0x1];if(_0x21dd('0x111')==_0x24a382[_0x21dd('0xe1')])continue;if(_0x24a382[_0x21dd('0xe1')]!=_0x1cb58e[_0x21dd('0xe1')])continue;if(!_0x11a55f[_0x21dd('0x62')](_0x1cb58e[_0x21dd('0x6f')])||_0x11a55f[_0x21dd('0xca')](_0x1cb58e['item']))continue;if(!_0x11a55f[_0x21dd('0x62')](_0x24a382[_0x21dd('0x6f')])||_0x11a55f[_0x21dd('0xca')](_0x24a382['item']))continue;if((_0x366074[_0x41e6b9]['isAdded']||_0x366074[_0x41e6b9][_0x21dd('0xee')])&&_0x366074[_0x41e6b9-0x1][_0x21dd('0x3d')])_0x24877e=_0x366074[_0x41e6b9],_0x163aa3=_0x366074[_0x41e6b9-0x1],_0x8f56f3=_0x41e6b9-0x1;else{if(!_0x366074[_0x41e6b9][_0x21dd('0x3d')]||!_0x366074[_0x41e6b9-0x1]['isAdded']&&!_0x366074[_0x41e6b9-0x1]['isAddSuggestion'])continue;_0x24877e=_0x366074[_0x41e6b9-0x1],_0x163aa3=_0x366074[_0x41e6b9],_0x8f56f3=_0x41e6b9;}const _0x4c4674=_0x24877e['level']==_0x163aa3[_0x21dd('0x76')],_0x57a190=Math[_0x21dd('0x50')](_0x24877e['level'])<Math[_0x21dd('0x50')](_0x163aa3[_0x21dd('0x76')])&&0x0==_0x163aa3['distance'];(_0x4c4674||_0x57a190)&&(_0x2cf757[_0x21dd('0x92')](_0x163aa3['id'],_0x24877e['id']),_0x366074['splice'](_0x8f56f3,0x1),_0x41e6b9--,_0x24877e['isAdded']=!0x1);}for(let _0x4a3ceb=0x0;_0x4a3ceb<_0x366074[_0x21dd('0x5b')];_0x4a3ceb++)_0x2cf757[_0x21dd('0xb4')](_0x366074[_0x4a3ceb][_0x21dd('0x9c')])&&(_0x366074[_0x4a3ceb]['pairId']=_0x2cf757[_0x21dd('0x2e')](_0x366074[_0x4a3ceb][_0x21dd('0x9c')]));}[_0x21dd('0x113')](_0x4dd16e){const _0x167a87=new Set(_0x4dd16e[_0x21dd('0x7e')](_0x3df1e8=>_0x3df1e8['id']));for(let _0x438565=0x0;_0x438565<_0x4dd16e['length'];_0x438565++)_0x167a87[_0x21dd('0xb4')](_0x4dd16e[_0x438565][_0x21dd('0x9c')])||0x0==_0x4dd16e[_0x438565][_0x21dd('0xad')]||(_0x4dd16e[_0x438565][_0x21dd('0xa6')]=!0x0);return _0x4dd16e[_0x21dd('0xd3')](_0x5242dc=>!_0x5242dc['isIncorrect']);}[_0x21dd('0x54')](_0x56f581){const _0x266b28=new Set();for(let _0x470dfa=0x0;_0x470dfa<_0x56f581[_0x21dd('0x5b')];_0x470dfa++){if(_0x266b28[_0x21dd('0xb4')](_0x56f581[_0x470dfa]['id'])&&_0x56f581[_0x470dfa][_0x21dd('0x3d')]&&(_0x56f581[_0x470dfa][_0x21dd('0xa6')]=!0x0),_0x56f581[_0x470dfa][_0x21dd('0xa6')])continue;if(0x0==_0x56f581[_0x470dfa][_0x21dd('0xad')])continue;if(_0x21dd('0xbe')!=_0x56f581[_0x470dfa][_0x21dd('0xe1')])continue;if(null==_0x56f581[_0x470dfa]['pairId'])continue;let _0x5e12cc=_0x470dfa+0x1,_0x12895b=0x0;for(;_0x56f581[_0x5e12cc]['id']!=_0x56f581[_0x470dfa][_0x21dd('0x9c')];)_0x21dd('0xbe')==_0x56f581[_0x5e12cc][_0x21dd('0xe1')]?_0x12895b++:_0x21dd('0xdc')==_0x56f581[_0x5e12cc]['type']&&_0x12895b--,_0x5e12cc++;if(0x0!=_0x12895b){if(_0x56f581[_0x470dfa][_0x21dd('0x3d')])_0x56f581[_0x470dfa][_0x21dd('0xa6')]=!0x0;else for(;_0x5e12cc!=_0x470dfa;)_0x56f581[_0x5e12cc]['isRemoved']&&0x0!=_0x56f581[_0x5e12cc][_0x21dd('0xad')]&&(_0x56f581[_0x5e12cc][_0x21dd('0xa6')]=!0x0,_0x266b28[_0x21dd('0xe5')](_0x56f581[_0x5e12cc]['pairId'])),_0x5e12cc--;}}return _0x56f581[_0x21dd('0xd3')](_0x5c8173=>!_0x5c8173[_0x21dd('0xa6')]);}[_0x21dd('0x9e')](_0x2e1ddb){const _0x32d990=this[_0x21dd('0xb5')]['model'][_0x21dd('0x107')];for(let _0x573035=0x0;_0x573035<_0x2e1ddb['length'];_0x573035++){if(!(_0x2e1ddb[_0x573035][_0x21dd('0xda')]||_0x2e1ddb[_0x573035][_0x21dd('0xee')]||_0x2e1ddb[_0x573035]['isRemoved']||_0x2e1ddb[_0x573035]['isRemoveSuggestion']))continue;if(0x0==_0x2e1ddb[_0x573035]['distance'])continue;const _0x58ee90=_0x2e1ddb[_0x573035][_0x21dd('0x6f')];_0x32d990['isBlock'](_0x58ee90)||_0x32d990['isLimit'](_0x58ee90)||(_0x2e1ddb[_0x573035][_0x21dd('0xda')]&&delete _0x2e1ddb[_0x573035][_0x21dd('0xda')],_0x2e1ddb[_0x573035][_0x21dd('0xee')]&&delete _0x2e1ddb[_0x573035][_0x21dd('0xee')],_0x2e1ddb[_0x573035]['isRemoveSuggestion']&&delete _0x2e1ddb[_0x573035][_0x21dd('0x63')],_0x2e1ddb[_0x573035]['isRemoved']&&(_0x2e1ddb[_0x573035][_0x21dd('0xa6')]=!0x0));}return _0x2e1ddb[_0x21dd('0xd3')](_0x2db649=>!_0x2db649[_0x21dd('0xa6')]);}[_0x21dd('0x10d')](_0x231e52,_0x2a7c80){const _0x42774f=new _0x1a623c(),_0x1eb33f=[],_0x1ea847=new Map(),_0x4a3d1d=this[_0x21dd('0xb5')]['model'],_0x10d4ed=_0x4a3d1d[_0x21dd('0x107')],_0x3a5ab3=[_0x42774f],_0x12b140={},_0x486f93={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5bb7c4=null;const _0x566281=[0x0];for(let _0x175fab=0x0;_0x175fab<_0x231e52[_0x21dd('0x5b')];_0x175fab++){let _0x5106e0,_0x731bb7;if(_0x21dd('0xbe')===_0x231e52[_0x175fab]['type']){_0x5106e0=_0x4a3d1d['createPositionFromPath'](_0x42774f,_0x566281);const _0x265435=new _0x20d58d(_0x231e52[_0x175fab][_0x21dd('0x6f')][_0x21dd('0xa')],_0x231e52[_0x175fab][_0x21dd('0x6f')][_0x21dd('0x8f')]());_0x3a5ab3[0x0]['_appendChild'](_0x265435),_0x566281['push'](0x0),_0x3a5ab3[_0x21dd('0x11c')](_0x265435),_0x731bb7=_0x4a3d1d['createPositionFromPath'](_0x42774f,_0x566281),_0x5bb7c4=null;}else{if(_0x21dd('0xdc')===_0x231e52[_0x175fab][_0x21dd('0xe1')])_0x3a5ab3['shift'](),_0x5106e0=_0x4a3d1d[_0x21dd('0x114')](_0x42774f,_0x566281),_0x566281[_0x21dd('0xaa')](),_0x566281[_0x566281[_0x21dd('0x5b')]-0x1]++,_0x731bb7=_0x4a3d1d[_0x21dd('0x114')](_0x42774f,_0x566281),_0x5bb7c4=null;else{if(_0x5106e0=_0x4a3d1d[_0x21dd('0x114')](_0x42774f,_0x566281),_0x5bb7c4&&_0x31cfff(_0x5bb7c4,_0x231e52[_0x175fab][_0x21dd('0x6f')]))_0x5bb7c4['_data']+=_0x231e52[_0x175fab]['item']['data'];else{const _0x33dd89=new _0x285584(_0x231e52[_0x175fab][_0x21dd('0x6f')][_0x21dd('0x109')],_0x231e52[_0x175fab][_0x21dd('0x6f')][_0x21dd('0x8f')]());_0x3a5ab3[0x0]['_appendChild'](_0x33dd89),_0x5bb7c4=_0x33dd89;}_0x566281[_0x566281[_0x21dd('0x5b')]-0x1]+=_0x231e52[_0x175fab][_0x21dd('0x6f')][_0x21dd('0x28')],_0x731bb7=_0x4a3d1d[_0x21dd('0x114')](_0x42774f,_0x566281);}}for(const _0x38dc03 of _0x231e52[_0x175fab][_0x21dd('0x5a')])_0x1ea847[_0x21dd('0x92')](_0x38dc03,{'start':_0x5106e0,'end':null});_0x25f7fe(_0x21dd('0x63'),_0x175fab,_0x5106e0,_0x731bb7),_0x25f7fe('isAddSuggestion',_0x175fab,_0x5106e0,_0x731bb7),_0x25f7fe(_0x21dd('0x3d'),_0x175fab,_0x5106e0,_0x731bb7),_0x25f7fe(_0x21dd('0xda'),_0x175fab,_0x5106e0,_0x731bb7);for(const _0x580db4 of _0x231e52[_0x175fab]['markersEnd']){_0x1ea847['get'](_0x580db4)[_0x21dd('0x20')]=_0x731bb7;}}for(const [_0x3c3dd3,_0x3fad73]of _0x1ea847){const _0x19e74c=this[_0x21dd('0xb5')]['model'][_0x21dd('0x48')](_0x3fad73['start'],_0x3fad73[_0x21dd('0x20')]);_0x42774f[_0x21dd('0x2d')][_0x21dd('0x92')](_0x3c3dd3,_0x19e74c);}return _0x1eb33f['sort']((_0x445e37,_0x54eec0)=>{const _0x391581=_0x42774f[_0x21dd('0x2d')][_0x21dd('0x2e')]('revision:'+_0x445e37['id']),_0x1c9db3=_0x42774f['markers'][_0x21dd('0x2e')](_0x21dd('0x39')+_0x54eec0['id']);return _0x391581['start'][_0x21dd('0x22')](_0x1c9db3[_0x21dd('0xff')])?-0x1:_0x391581['start'][_0x21dd('0x46')](_0x1c9db3[_0x21dd('0xff')])?0x1:_0x391581[_0x21dd('0x20')][_0x21dd('0x22')](_0x1c9db3[_0x21dd('0x20')])?-0x1:_0x391581[_0x21dd('0x20')][_0x21dd('0x46')](_0x1c9db3[_0x21dd('0x20')])?0x1:_0x21dd('0xe5')===_0x445e37[_0x21dd('0xe1')]?-0x1:0x1;}),{'root':_0x42774f,'changes':_0x1eb33f};function _0x25f7fe(_0xe55257,_0x1c8fe7,_0x121845,_0x464899){const _0x351bc7=!!_0x231e52[_0x1c8fe7][_0xe55257],_0x4f1de6=_0x351bc7?_0x231e52[_0x1c8fe7][_0xe55257]['userId']:null,_0x5e359c=_0x1c8fe7===_0x231e52[_0x21dd('0x5b')]-0x1,_0x97160a=_0x486f93[_0xe55257][0x0],_0x1908d0=_0x10d4ed[_0x21dd('0x64')](_0x231e52[_0x1c8fe7][_0x21dd('0x6f')]);!_0x12b140[_0xe55257]&&_0x351bc7?_0x12b140[_0xe55257]={'start':_0x121845,'tapeItem':_0x231e52[_0x1c8fe7],'userId':_0x4f1de6,'type':_0xe55257}:_0x12b140[_0xe55257]&&!_0x351bc7?(_0x12b140[_0xe55257]['end']=_0x121845,_0x1e84fe(_0x12b140[_0xe55257]),_0x12b140[_0xe55257]=null):_0x12b140[_0xe55257]&&_0x351bc7&&_0x12b140[_0xe55257][_0x21dd('0x2a')]!==_0x4f1de6&&(_0x12b140[_0xe55257][_0x21dd('0x20')]=_0x121845,_0x97160a&&_0x97160a[_0x21dd('0x2a')]===_0x12b140[_0xe55257][_0x21dd('0x2a')]||_0x1e84fe(_0x12b140[_0xe55257]),_0x12b140[_0xe55257]={'start':_0x121845,'tapeItem':_0x231e52[_0x1c8fe7],'userId':_0x4f1de6,'type':_0xe55257}),_0x12b140[_0xe55257]&&_0x1908d0&&(_0x21dd('0xbe')!==_0x231e52[_0x1c8fe7][_0x21dd('0xe1')]||_0x97160a&&_0x97160a[_0x21dd('0x2a')]===_0x4f1de6||_0x486f93[_0xe55257][_0x21dd('0x11c')]({'userId':_0x4f1de6,'object':_0x231e52[_0x1c8fe7][_0x21dd('0x6f')],'change':_0x12b140[_0xe55257]}),_0x21dd('0xdc')===_0x231e52[_0x1c8fe7][_0x21dd('0xe1')]&&_0x97160a&&_0x97160a[_0x21dd('0xb6')]===_0x231e52[_0x1c8fe7]['item']&&(_0x486f93[_0xe55257][_0x21dd('0x8d')](),_0x12b140[_0xe55257]=_0x97160a[_0x21dd('0x52')])),_0x12b140[_0xe55257]&&_0x5e359c&&(_0x12b140[_0xe55257][_0x21dd('0x20')]=_0x464899,_0x1e84fe(_0x12b140[_0xe55257]),_0x12b140[_0xe55257]=null);}function _0x1e84fe({start:_0x8dea00,end:_0x5274c7,tapeItem:_0x45660b,userId:_0x10fd21,type:_0x5263fd}){const _0x19723d=_0x45660b[_0x21dd('0x6f')],_0x1e9bd5=_0x4a3d1d['schema']['isBlock'](_0x19723d)&&!_0x4a3d1d[_0x21dd('0x107')][_0x21dd('0xca')](_0x19723d),_0x44f2d1=_0x8dea00[_0x21dd('0xfd')]==_0x5274c7[_0x21dd('0x82')]&&_0x5274c7['isAtStart'];if(_0x1e9bd5&&_0x44f2d1)return;const _0x2910ab=_0x4a3d1d[_0x21dd('0x48')](_0x8dea00,_0x5274c7),_0x235f77=_0x2a7c80[_0x21dd('0x2e')](_0x10fd21),_0x5b2edc=new _0x1427ee({'author':_0x235f77,'type':'isAdded'==_0x5263fd||'isAddSuggestion'==_0x5263fd?'add':_0x21dd('0xe0'),'data':{'isSuggestion':_0x21dd('0xee')==_0x5263fd||_0x21dd('0x63')==_0x5263fd},'createdAt':new Date()});_0x1eb33f[_0x21dd('0x61')](_0x5b2edc),_0x42774f[_0x21dd('0x2d')][_0x21dd('0x92')](_0x21dd('0x39')+_0x5b2edc['id'],_0x2910ab);}function _0x31cfff(_0x341d8e,_0xaf769){const _0x15caa6=_0x341d8e[_0x21dd('0x8f')](),_0x312e3a=_0xaf769['getAttributes']();for(const _0x3bb396 of _0x15caa6){if(_0x3bb396[0x1]!==_0xaf769[_0x21dd('0x25')](_0x3bb396[0x0]))return!0x1;_0x312e3a[_0x21dd('0xfe')]();}return _0x312e3a[_0x21dd('0xfe')]()[_0x21dd('0x97')];}}[_0x21dd('0x2b')](){this[_0x21dd('0xb5')][_0x21dd('0xf6')]['for'](_0x21dd('0x99'))[_0x21dd('0xd7')]({'view':_0x21dd('0x112')}),this[_0x21dd('0xb5')]['conversion']['for'](_0x21dd('0x101'))[_0x21dd('0x16')]({'model':'revision','view':_0x3d44e8=>{const _0xa51b5a=_0x3d44e8[_0x21dd('0xba')][_0x21dd('0x115')](':')[0x1],_0x52366d=this[_0x21dd('0x3a')](_0xa51b5a);if(!_0x52366d)return null;const _0x5c969d=_0x21dd('0xe5')==_0x52366d['type']?_0x21dd('0x8a'):_0x21dd('0x91'),_0x962998=[_0x21dd('0xa1'),'ck-suggestion-marker-'+_0x5c969d];return _0x52366d[_0x21dd('0x109')]['isSuggestion']&&_0x962998[_0x21dd('0x61')](_0x21dd('0xf1')+_0x5c969d+_0x21dd('0xc0')),this['activeChange']==_0x52366d&&_0x962998['push'](_0x21dd('0xc7')),{'classes':_0x962998,'attributes':{'data-change-id':_0xa51b5a}};}}),this[_0x21dd('0xb5')][_0x21dd('0xf6')][_0x21dd('0xab')](_0x21dd('0x99'))[_0x21dd('0xe5')](_0x28b7fa=>{_0x28b7fa['on'](_0x21dd('0xa0'),(_0xb68f82,_0x207653,_0x1ea6c0)=>{const _0x1fda12=_0x207653[_0x21dd('0xac')][_0x21dd('0x7b')](0x0);if(!_0x1fda12||!_0x1fda12['is'](_0x21dd('0x86'),'code'))return;if(!_0x1ea6c0[_0x21dd('0x11a')][_0x21dd('0xe7')](_0x1fda12,{'attributes':['vid_start',_0x21dd('0xcd')]}))return;const _0xd07252=_0x207653[_0x21dd('0x8c')][_0x21dd('0xff')][_0x21dd('0xfd')];_0x1ea6c0['writer'][_0x21dd('0x67')](_0x21dd('0x2'),_0x1fda12[_0x21dd('0x25')]('vid_start'),_0xd07252),_0x1ea6c0['writer']['setAttribute'](_0x21dd('0xcd'),_0x1fda12['getAttribute']('vid_end'),_0xd07252);},{'priority':_0x21dd('0x40')});}),this[_0x21dd('0xb5')][_0x21dd('0xf6')][_0x21dd('0xab')](_0x21dd('0x99'))[_0x21dd('0xe5')](_0x150dff=>{_0x150dff['on'](_0x21dd('0x86'),(_0x46f4ae,_0x2febe8,_0x41ce4d)=>{if(!_0x41ce4d[_0x21dd('0x11a')][_0x21dd('0xe7')](_0x2febe8[_0x21dd('0xac')],{'attributes':[_0x21dd('0x2'),_0x21dd('0xcd')]}))return;if(_0x2febe8[_0x21dd('0x8c')]['isCollapsed'])return;const _0x5dbe6b=_0x2febe8[_0x21dd('0x8c')]['start'][_0x21dd('0xfd')];_0x5dbe6b[_0x21dd('0xaf')](_0x21dd('0x2'))||_0x5dbe6b[_0x21dd('0xaf')](_0x21dd('0xf5'))||(_0x41ce4d['writer']['setAttribute'](_0x21dd('0x2'),_0x2febe8[_0x21dd('0xac')]['getAttribute'](_0x21dd('0x2')),_0x5dbe6b),_0x41ce4d[_0x21dd('0xdd')][_0x21dd('0x67')](_0x21dd('0xcd'),_0x2febe8[_0x21dd('0xac')][_0x21dd('0x25')](_0x21dd('0xcd')),_0x5dbe6b));},{'priority':_0x21dd('0x40')});}),this['editor'][_0x21dd('0xf6')][_0x21dd('0xab')](_0x21dd('0x99'))['elementToAttribute']({'view':{'name':_0x21dd('0x9'),'attributes':{'vid':!0x0}},'model':{'key':_0x21dd('0xf5'),'value':_0x190213=>_0x190213[_0x21dd('0x25')](_0x21dd('0xf5'))}}),this[_0x21dd('0xb5')]['model']['schema']['on']('checkAttribute',(_0x491a6c,[,_0x48f0d5])=>{[_0x21dd('0x2'),'vid_end',_0x21dd('0xf5')][_0x21dd('0x93')](_0x48f0d5)&&(_0x491a6c[_0x21dd('0x9a')]=!0x0,_0x491a6c[_0x21dd('0xce')]());},{'priority':_0x21dd('0xd8')}),this[_0x21dd('0xb5')][_0x21dd('0xf6')][_0x21dd('0xab')](_0x21dd('0xdf'))['add'](_0x4061b1=>{_0x4061b1['on'](_0x21dd('0xa9'),(_0x540910,_0x2bd823,_0x22e079)=>{if('\x20'!=_0x2bd823['item'][_0x21dd('0x109')]||_0x2bd823[_0x21dd('0x6f')][_0x21dd('0x82')]['maxOffset']>0x1)return;if(!_0x22e079[_0x21dd('0x11a')][_0x21dd('0xe7')](_0x2bd823[_0x21dd('0x6f')],_0x540910[_0x21dd('0xa')]))return;const _0x1dcf4a=_0x22e079[_0x21dd('0xdd')],_0x344887=_0x22e079['mapper'][_0x21dd('0x116')](_0x2bd823['range']);_0x1dcf4a[_0x21dd('0x4b')](_0x344887,_0x1dcf4a[_0x21dd('0x80')]('span'));});}),this[_0x21dd('0xb5')][_0x21dd('0xf6')][_0x21dd('0xab')](_0x21dd('0xdf'))[_0x21dd('0x117')]({'model':_0x21dd('0x112')}),this[_0x21dd('0xb5')][_0x21dd('0x94')][_0x21dd('0x1c')]['on'](_0x21dd('0xec'),function(_0x257cff){const _0x434041=_0x257cff[_0x21dd('0x21')]['get'](_0x21dd('0xd5'));return(_0x3854be,_0xf2e53d,_0x5aa6bc)=>{const _0x4cd0b1=_0xf2e53d[_0x21dd('0xba')][_0x21dd('0x115')](':')[0x1],_0x135531=_0x434041[_0x21dd('0x3a')](_0x4cd0b1);if(!_0x135531)return null;const _0xab7570='add'==_0x135531[_0x21dd('0xe1')]?_0x21dd('0x115'):_0x21dd('0x65');if(!_0x5aa6bc[_0x21dd('0x11a')]['test'](_0xf2e53d['markerRange'],_0x3854be[_0x21dd('0xa')]))return;const _0x11705a=_0xf2e53d['markerRange'][_0x21dd('0x51')](),_0x7280c5=_0xf2e53d[_0x21dd('0x106')][_0x21dd('0xff')],_0x2d1997=_0x257cff[_0x21dd('0x45')][_0x21dd('0x107')];let _0x33927a=null,_0x34c87f=null,_0x4efe12=!0x1,_0x5d6354=!0x1;for(const _0x2db588 of _0x11705a){const _0x178acd=_0x2db588[_0x21dd('0x6f')];_0x4efe12=_0x4efe12||_0x2d1997[_0x21dd('0xb9')](_0x178acd);const _0x1ca618=_0x5aa6bc[_0x21dd('0x15')][_0x21dd('0x60')](_0x178acd);if(_0x1ca618&&_0x1ca618[_0x21dd('0xf2')]('addHighlight'))return;_0x21dd('0xdc')==_0x2db588[_0x21dd('0xe1')]&&(_0x2d1997['isBlock'](_0x178acd)&&!_0x2d1997[_0x21dd('0xca')](_0x178acd)&&(_0x178acd['nextSibling']||_0x7280c5[_0x21dd('0x1d')]?_0x33927a&&_0x33927a[_0x21dd('0x82')]==_0x178acd||(_0x33927a=_0x178acd,_0x58f759(_0x2db588['previousPosition']),_0x5d6354=!0x0):_0x34c87f=_0x34c87f||_0x2db588[_0x21dd('0x69')]));}function _0x58f759(_0xb46953){const _0x301449=_0x5aa6bc['writer'][_0x21dd('0x103')]('span',{'class':_0x21dd('0xf1')+_0xab7570}),_0x2d1b57=_0x5aa6bc['mapper'][_0x21dd('0x49')](_0xb46953);_0x135531[_0x21dd('0x109')][_0x21dd('0x8b')]&&_0x5aa6bc['writer'][_0x21dd('0xd')](_0x21dd('0xf1')+_0xab7570+_0x21dd('0xc0'),_0x301449),_0x434041['activeChange']==_0x135531&&_0x5aa6bc[_0x21dd('0xdd')][_0x21dd('0xd')]('ck-suggestion-marker--active',_0x301449),_0x5aa6bc['writer']['insert'](_0x2d1b57,_0x301449),_0x5aa6bc[_0x21dd('0x15')][_0x21dd('0x8e')](_0x301449,_0xf2e53d['markerName']);}_0x4efe12||_0x5d6354||!_0x34c87f||_0x58f759(_0x34c87f);};}(this[_0x21dd('0xb5')]),{'priority':'high'}),this[_0x21dd('0xb5')]['editing'][_0x21dd('0x1c')]['on']('removeMarker:revision',(_0x193961,_0x1c413a,_0x1529ef)=>{const _0xf01007=_0x1529ef[_0x21dd('0x15')][_0x21dd('0x6')](_0x1c413a[_0x21dd('0xba')]);if(_0xf01007)for(const _0x5e89a4 of _0xf01007)(_0x5e89a4[_0x21dd('0xa3')](_0x21dd('0x7d'))||_0x5e89a4[_0x21dd('0xa3')](_0x21dd('0x98')))&&(_0x1529ef[_0x21dd('0x15')][_0x21dd('0x13')](_0x5e89a4,_0x1c413a['markerName']),_0x1529ef[_0x21dd('0xdd')][_0x21dd('0xe0')](_0x5e89a4));},{'priority':_0x21dd('0x77')}),this['editor'][_0x21dd('0x94')]['downcastDispatcher']['on'](_0x21dd('0xec'),(_0x2b5cbd,_0x2fcc7f,_0x32f522)=>{const _0x5c23b9=_0x2fcc7f[_0x21dd('0xba')][_0x21dd('0x115')](':')[0x1],_0x331ec1=this[_0x21dd('0x3a')](_0x5c23b9);if(!_0x331ec1)return null;const _0x4b09f4=_0x21dd('0xe5')==_0x331ec1[_0x21dd('0xe1')]?_0x21dd('0x115'):_0x21dd('0x65');if(_0x32f522[_0x21dd('0x11a')][_0x21dd('0xc6')](_0x2fcc7f['markerRange'],_0x2b5cbd[_0x21dd('0xa')]))for(const _0x15f0de of _0x2fcc7f['markerRange'][_0x21dd('0xf0')]()){if(!_0x15f0de['is'](_0x21dd('0x86'),_0x21dd('0x3b')))continue;const _0x189a3e=_0x32f522['writer'][_0x21dd('0x103')](_0x21dd('0x9'),{'class':_0x21dd('0xf1')+_0x4b09f4}),_0x542d09=_0x32f522[_0x21dd('0x15')]['toViewPosition'](this[_0x21dd('0xb5')][_0x21dd('0x45')][_0x21dd('0xa7')](_0x15f0de));_0x331ec1[_0x21dd('0x109')][_0x21dd('0x8b')]&&_0x32f522[_0x21dd('0xdd')][_0x21dd('0xd')](_0x21dd('0xf1')+_0x4b09f4+_0x21dd('0xc0'),_0x189a3e),this[_0x21dd('0x1b')]==_0x331ec1&&_0x32f522[_0x21dd('0xdd')][_0x21dd('0xd')](_0x21dd('0xc7'),_0x189a3e),_0x32f522[_0x21dd('0xdd')][_0x21dd('0x41')](_0x542d09,_0x189a3e),_0x32f522[_0x21dd('0x15')][_0x21dd('0x8e')](_0x189a3e,_0x2fcc7f[_0x21dd('0xba')]);}},{'priority':_0x21dd('0x77')}),this[_0x21dd('0xb5')][_0x21dd('0xf6')][_0x21dd('0xab')](_0x21dd('0x99'))[_0x21dd('0xd7')]({'view':_0x21dd('0x89'),'model':_0x10d028=>_0x21dd('0x4d')+_0x10d028,'converterPriority':_0x21dd('0xd8')}),this[_0x21dd('0xb5')][_0x21dd('0xf6')]['for'](_0x21dd('0x99'))['dataToMarker']({'view':'suggestion','model':_0x3caa27=>_0x21dd('0xc8')+_0x3caa27,'converterPriority':_0x21dd('0xd8')}),this[_0x21dd('0xb5')][_0x21dd('0xf6')][_0x21dd('0xab')](_0x21dd('0xdf'))[_0x21dd('0x117')]({'model':_0x21dd('0x100'),'view':_0x1f0cd5=>_0x21dd('0x88')+_0x1f0cd5,'converterPriority':'highest'}),this[_0x21dd('0xb5')][_0x21dd('0xf6')][_0x21dd('0xab')](_0x21dd('0x101'))[_0x21dd('0x16')]({'model':_0x21dd('0x100'),'view':_0x5081d4=>{const _0x335d44=_0x5081d4[_0x21dd('0xba')][_0x21dd('0x115')](':')[0x1];return _0x21dd('0x8a')!=_0x335d44&&_0x21dd('0x91')!=_0x335d44?null:{'classes':['ck-suggestion-preview-marker',_0x21dd('0x57')+_0x335d44]};}}),this['editor'][_0x21dd('0x94')][_0x21dd('0x1c')]['on'](_0x21dd('0xd2'),Q(this[_0x21dd('0xb5')],_0x21dd('0x65')),{'priority':_0x21dd('0x77')}),this[_0x21dd('0xb5')][_0x21dd('0x94')][_0x21dd('0x1c')]['on'](_0x21dd('0x7c'),Q(this[_0x21dd('0xb5')],_0x21dd('0x115')),{'priority':_0x21dd('0x77')}),this[_0x21dd('0xb5')][_0x21dd('0x94')]['downcastDispatcher']['on'](_0x21dd('0xbf'),(_0x358d3a,_0x5f32b7,_0x663a31)=>{const _0x4a3e98=_0x663a31[_0x21dd('0x15')]['markerNameToElements'](_0x5f32b7[_0x21dd('0xba')]);if(_0x4a3e98)for(const _0x16a7d9 of _0x4a3e98)_0x16a7d9['is'](_0x21dd('0x66'))&&(_0x663a31['mapper'][_0x21dd('0x13')](_0x16a7d9,_0x5f32b7[_0x21dd('0xba')]),_0x663a31['writer']['remove'](_0x16a7d9));},{'priority':_0x21dd('0x77')});}['_getChangeFromId'](_0x3c2cee){return this[_0x21dd('0x118')][_0x21dd('0x2e')](_0x3c2cee);}[_0x21dd('0x1f')](_0x46b6b3){return this[_0x21dd('0x47')]&&this['_changeView'][_0x21dd('0xc9')](),this[_0x21dd('0x47')]=new _0x229cd2(this['editor'][_0x21dd('0x3e')],_0x46b6b3),this[_0x21dd('0x47')];}[_0x21dd('0x85')](){this['editor'][_0x21dd('0x45')]['document']['selection'][_0x21dd('0x9b')](_0x21dd('0x112')),this['on'](_0x21dd('0xd9'),(_0x34ac96,_0x431da6,_0x2c5752,_0x168cde)=>{_0x168cde&&this[_0x21dd('0x95')][_0x21dd('0xe0')](_0x168cde),_0x2c5752&&(this['_balloon'][_0x21dd('0xe5')]({'view':_0x2c5752,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5cd048=this['editor'][_0x21dd('0x94')],_0x24989c=this['editor'][_0x21dd('0x45')][_0x21dd('0x2d')][_0x21dd('0x2e')](_0x21dd('0x39')+_0x2c5752[_0x21dd('0x12')]),_0x2308a9=Array[_0x21dd('0x19')](_0x5cd048[_0x21dd('0x15')][_0x21dd('0x6')](_0x24989c[_0x21dd('0xa')]))[_0x21dd('0x7e')](_0x1ea377=>_0x5cd048[_0x21dd('0x119')][_0x21dd('0x43')][_0x21dd('0xf7')](_0x1ea377))[_0x21dd('0x7e')](_0x1d44c2=>Array['from'](_0x1d44c2['getClientRects']()))[_0x21dd('0x31')]();if(!this[_0x21dd('0x71')])return _0x2308a9[0x0];return _0x2308a9[_0x21dd('0xa4')](_0x5f4e92=>_0x5f4e92[_0x21dd('0x42')]-0x3<=this[_0x21dd('0x71')]['y']&&_0x5f4e92[_0x21dd('0x105')]+0x3>=this[_0x21dd('0x71')]['y']&&_0x5f4e92['left']-0x3<=this[_0x21dd('0x71')]['x']&&_0x5f4e92[_0x21dd('0x70')]+0x3>=this['_activeViewTarget']['x'])||_0x2308a9[0x0];}}}),this[_0x21dd('0x95')][_0x21dd('0x38')]('revisionHistoryLabel'));}),this['on'](_0x21dd('0x17'),(_0x418999,_0x2a7092,_0x112fcc,_0x541344)=>{this[_0x21dd('0x6b')]=_0x112fcc?this[_0x21dd('0x1f')](_0x112fcc):null,this[_0x21dd('0xb5')][_0x21dd('0x45')][_0x21dd('0x52')](()=>{const _0x1ebc90=this[_0x21dd('0xb5')][_0x21dd('0x94')];_0x541344&&_0x1ebc90['reconvertMarker'](_0x21dd('0x39')+_0x541344['id']),_0x112fcc&&_0x1ebc90[_0x21dd('0xb8')](_0x21dd('0x39')+_0x112fcc['id']);});}),this[_0x21dd('0xcb')](this['editor'][_0x21dd('0x94')]['view'][_0x21dd('0x0')],_0x21dd('0xa2'),(_0x7f49f2,_0x3e81e8)=>{if(this[_0x21dd('0x1b')])return;const _0x4ad360=this['_findChangeIdFromDomTarget'](_0x3e81e8[_0x21dd('0x72')]),_0x2dcdd3=this['_changeIdToChange'][_0x21dd('0x2e')](_0x4ad360);_0x2dcdd3?(this[_0x21dd('0x71')]={'x':_0x3e81e8[_0x21dd('0xf')]['x'],'y':_0x3e81e8[_0x21dd('0xf')]['y']},this[_0x21dd('0x6b')]=this[_0x21dd('0x1f')](_0x2dcdd3)):(this[_0x21dd('0x71')]=null,this[_0x21dd('0x6b')]=null);}),this[_0x21dd('0xcb')](this['editor'][_0x21dd('0x94')]['view'][_0x21dd('0x0')],_0x21dd('0x14'),(_0x2045e6,_0x5515cf)=>{const _0x353089=this['_findChangeIdFromDomTarget'](_0x5515cf[_0x21dd('0x72')]),_0x17c411=this['_changeIdToChange'][_0x21dd('0x2e')](_0x353089);_0x17c411?(this[_0x21dd('0x71')]={'x':_0x5515cf[_0x21dd('0xf')]['x'],'y':_0x5515cf['domEvent']['y']},_0x17c411===this[_0x21dd('0x1b')]?this[_0x21dd('0x95')]['updatePosition']():this[_0x21dd('0x1b')]=_0x17c411):(this[_0x21dd('0x71')]=null,this[_0x21dd('0x1b')]=null);});}['_findChangeIdFromDomTarget'](_0xdd1093){do{const _0x51db93=_0xdd1093['getAttribute'](_0x21dd('0xe2'));if(_0x51db93)return _0x51db93;_0xdd1093=_0xdd1093[_0x21dd('0x82')];}while(_0xdd1093);return null;}['_cleanMarkers'](){this['editor']['model'][_0x21dd('0x52')](_0x298e91=>{for(const _0x2f1f40 of this[_0x21dd('0xb5')]['model']['markers'])_0x298e91[_0x21dd('0x6e')](_0x2f1f40);});}}function Q(_0x1e60a2,_0x3a8a65){return(_0x5a0483,_0x4d0fa9,_0x3cb556)=>{if(!_0x3cb556[_0x21dd('0x11a')]['test'](_0x4d0fa9[_0x21dd('0x106')],_0x5a0483[_0x21dd('0xa')]))return;const _0x1f0349=_0x4d0fa9['markerRange'][_0x21dd('0x51')](),_0x36f3db=_0x4d0fa9[_0x21dd('0x106')][_0x21dd('0xff')],_0x14338e=_0x1e60a2[_0x21dd('0x45')]['schema'];let _0x19d057=null,_0x8cf4d5=null,_0xab4270=!0x1,_0xb94b7=!0x1;for(const _0x317342 of _0x1f0349){const _0x41c5de=_0x317342[_0x21dd('0x6f')];_0xab4270=_0xab4270||_0x14338e['isContent'](_0x41c5de);const _0x3304a1=_0x3cb556['mapper'][_0x21dd('0x60')](_0x41c5de);if(_0x3304a1&&_0x3304a1[_0x21dd('0xf2')](_0x21dd('0xc3')))return;_0x21dd('0xdc')==_0x317342[_0x21dd('0xe1')]&&(_0x14338e[_0x21dd('0x62')](_0x41c5de)&&!_0x14338e[_0x21dd('0xca')](_0x41c5de)&&(_0x41c5de[_0x21dd('0x10c')]||_0x36f3db[_0x21dd('0x1d')]?_0x19d057&&_0x19d057[_0x21dd('0x82')]==_0x41c5de||(_0x19d057=_0x41c5de,_0x30832c(_0x317342[_0x21dd('0x69')]),_0xb94b7=!0x0):_0x8cf4d5=_0x8cf4d5||_0x317342[_0x21dd('0x69')]));}function _0x30832c(_0x1d0222){const _0x5cab6f=_0x3cb556[_0x21dd('0x15')]['toViewPosition'](_0x1d0222),_0x45217c=_0x3cb556[_0x21dd('0xdd')][_0x21dd('0x103')](_0x21dd('0x9'),{'class':_0x21dd('0x57')+_0x3a8a65});_0x3cb556['writer'][_0x21dd('0x41')](_0x5cab6f,_0x45217c),_0x3cb556[_0x21dd('0x15')]['bindElementToMarker'](_0x45217c,_0x4d0fa9[_0x21dd('0xba')]);}_0xab4270||_0xb94b7||!_0x8cf4d5||_0x30832c(_0x8cf4d5);};}_0x1aadb8(w,_0x13fcd3);class X extends _0x4236bc{constructor(_0x56aaae){super(_0x56aaae);const _0x2119c5=_0x56aaae[_0x21dd('0x21')][_0x21dd('0x2e')](w);this[_0x21dd('0x5e')](_0x56aaae,_0x21dd('0x68')),this['clearForceDisabled'](_0x21dd('0x4e')),this['listenTo'](_0x2119c5,_0x21dd('0x23'),()=>this[_0x21dd('0x6c')]()),this[_0x21dd('0xcb')](_0x2119c5,_0x21dd('0xef'),()=>this[_0x21dd('0x6c')]());}['execute'](){const _0x352ff3=this[_0x21dd('0xb5')],_0x3585b8=_0x352ff3[_0x21dd('0x21')][_0x21dd('0x2e')](w),_0x26904b=_0x3585b8[_0x21dd('0x4a')]?_0x3585b8[_0x21dd('0x8')][_0x21dd('0xcf')]:null;_0x352ff3[_0x21dd('0x9d')][_0x21dd('0x2e')]('revisionHistory')[_0x21dd('0x108')](_0x26904b);}[_0x21dd('0x6c')](){const {isReady:_0x338971,isEnabled:_0x2a0cc5}=this[_0x21dd('0xb5')]['plugins'][_0x21dd('0x2e')](w);this[_0x21dd('0x74')]=_0x338971&&_0x2a0cc5;}}class Y extends _0x4236bc{constructor(_0x55ea2a,{direction:_0x3b2a99}){super(_0x55ea2a);const _0x483c5b=_0x55ea2a[_0x21dd('0x21')][_0x21dd('0x2e')](w);this['stopListening'](_0x55ea2a,_0x21dd('0x68')),this[_0x21dd('0xf3')](_0x21dd('0x4e')),this[_0x21dd('0x53')]=_0x21dd('0x44')===_0x3b2a99?0x1:-0x1,this['listenTo'](_0x483c5b,_0x21dd('0x23'),()=>this[_0x21dd('0x6c')]()),this[_0x21dd('0xcb')](_0x483c5b,_0x21dd('0xef'),()=>this[_0x21dd('0x6c')]());}[_0x21dd('0x102')](){const _0x16f6b6=this[_0x21dd('0xb5')],_0x28eaf9=_0x16f6b6['plugins'][_0x21dd('0x2e')](w),{isNavigationMode:_0x5b1c14,currentChangeNumber:_0x67c9f8}=_0x28eaf9;_0x28eaf9[_0x21dd('0x1b')]=_0x5b1c14?_0x28eaf9['diff'][_0x21dd('0x1a')]['get'](_0x67c9f8+this[_0x21dd('0x53')]):_0x28eaf9['diff'][_0x21dd('0x1a')][_0x21dd('0xed')];const _0x5cc55a=_0x16f6b6[_0x21dd('0x45')]['markers'][_0x21dd('0x2e')](_0x21dd('0x39')+_0x28eaf9[_0x21dd('0x1b')]['id']),_0x3e43d8=_0x38bdb3(_0x16f6b6[_0x21dd('0x94')],_0x5cc55a);_0x256f9b({'target':_0x3e43d8,'viewportOffset':0x28});}[_0x21dd('0x6c')](){const {isNavigationMode:_0x259439,currentChangeNumber:_0x259904,numberOfChanges:_0xe480df,isReady:_0x297f40,isEnabled:_0xb805f4}=this[_0x21dd('0xb5')]['plugins']['get'](w);this[_0x21dd('0x74')]=!!(_0xb805f4&&_0x297f40&&_0xe480df)&&(!_0x259439||(0x1===this[_0x21dd('0x53')]?_0x259904<_0xe480df-0x1:_0x259904>0x0));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2166=['model','name','find','isEnabled','locale','button','bindTemplate','Show\x20more\x20items','source','isVisible','listenTo','_action','buttonView','change:isActionsDropdownOpen','isReady','execute','stopPropagation','ck-on','action','map','panelPosition','Name\x20this\x20revision','function','items','first','Restore\x20this\x20revision','bind','Compare\x20against\x20selected','isOpen','isActionsDropdownOpen'];(function(_0x13390f,_0x216696){const _0x4d2273=function(_0x4e49f6){while(--_0x4e49f6){_0x13390f['push'](_0x13390f['shift']());}};_0x4d2273(++_0x216696);}(_0x2166,0xb4));const _0x4d22=function(_0x13390f,_0x216696){_0x13390f=_0x13390f-0x0;let _0x4d2273=_0x2166[_0x13390f];return _0x4d2273;};import{Collection as _0x552eec}from'ckeditor5/src/utils';import{Model as _0x1ac796,addListToDropdown as _0x54007e,createDropdown as _0x55ecac}from'ckeditor5/src/ui';import{getTranslation as _0x32759a}from'../../utils/common-translations';import _0x21a498 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x47d468,_0x4dc3a){const _0x423384=_0x47d468[_0x4d22('0x6')],_0x5012ab=_0x47d468[_0x4d22('0x4')],_0x3a0258=_0x55ecac(_0x5012ab);_0x3a0258[_0x4d22('0x14')]='sw';const _0x3c274e=function(_0x452758,_0x3203a6){const _0x191bfa=function(_0x1df850,_0x3c82b3){const _0x198401=_0x1df850['locale'],_0xa017d3={'Compare\x20against\x20selected':_0x32759a(_0x198401,_0x4d22('0x1b')),'Name\x20this\x20revision':_0x32759a(_0x198401,_0x4d22('0x15')),'Restore\x20this\x20revision':_0x32759a(_0x198401,_0x4d22('0x19'))};return _0x3c82b3[_0x4d22('0x13')](_0x23e0c3=>{const _0x3d19c0=_0xa017d3[_0x23e0c3[_0x4d22('0x1')]];return _0x3d19c0&&_0x3d19c0!==_0x23e0c3[_0x4d22('0x1')]&&(_0x23e0c3[_0x4d22('0x1')]=_0x3d19c0),_0x23e0c3;});}(_0x452758,_0x3203a6),_0x107112=new _0x552eec();for(const _0x24a434 of _0x191bfa){const _0x5b2a06={'type':_0x4d22('0x5'),'model':new _0x1ac796({'label':_0x24a434[_0x4d22('0x1')],'class':_0x24a434['class'],'withText':!0x0,'_action':_0x24a434['action']})};_0x5b2a06[_0x4d22('0x0')]['bind']('isEnabled')['to'](_0x452758,_0x4d22('0x1d'),_0x57a3c8=>_0x4d22('0x16')!=typeof _0x24a434[_0x4d22('0x3')]||(!_0x57a3c8||_0x24a434[_0x4d22('0x3')](_0x452758))),_0x107112['add'](_0x5b2a06);}return _0x107112;}(_0x47d468,_0x4dc3a);return _0x47d468[_0x4d22('0x1a')](_0x4d22('0x1d'))['to'](_0x3a0258,_0x4d22('0x1c')),_0x3a0258[_0x4d22('0xc')]['set']({'label':_0x32759a(_0x5012ab,_0x4d22('0x7')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x21a498}),_0x3a0258['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x423384['if'](_0x4d22('0x1d'),_0x4d22('0x11'))]},'on':{'click':_0x423384['to'](_0x141058=>_0x141058[_0x4d22('0x10')]())}}),_0x3a0258['on'](_0x4d22('0xf'),_0x4851ed=>{_0x47d468[_0x4d22('0xe')]&&_0x4d22('0x16')==typeof _0x4851ed[_0x4d22('0x8')]['_action']&&_0x4851ed[_0x4d22('0x8')][_0x4d22('0xb')](_0x47d468);}),_0x54007e(_0x3a0258,_0x3c274e),_0x3a0258[_0x4d22('0xa')](_0x47d468,_0x4d22('0xd'),(_0x63dff4,_0x41f7b1,_0x5ed092)=>{if(_0x5ed092)for(const _0x4d5d7f of _0x3a0258['listView'][_0x4d22('0x17')]){const _0x2cb1ff=_0x4d5d7f['children'][_0x4d22('0x18')],_0x138985=_0x4dc3a[_0x4d22('0x2')](_0xa377eb=>_0xa377eb[_0x4d22('0x12')]===_0x2cb1ff[_0x4d22('0xb')])[_0x4d22('0x9')];_0x4d5d7f[_0x4d22('0x9')]=void 0x0===_0x138985||_0x138985(_0x47d468);}}),_0x3a0258;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e92=['ck-revision-history-sidebar__revision-author','Revision\x20author','name','0\x200\x2011\x2010','setTemplate'];(function(_0x289150,_0x2e92a1){const _0x1d334c=function(_0x2c18fc){while(--_0x2c18fc){_0x289150['push'](_0x289150['shift']());}};_0x1d334c(++_0x2e92a1);}(_0x2e92,0x10e));const _0x1d33=function(_0x289150,_0x2e92a1){_0x289150=_0x289150-0x0;let _0x1d334c=_0x2e92[_0x289150];return _0x1d334c;};import{View as _0x2875,IconView as _0x36105a}from'ckeditor5/src/ui';import{getTranslation as _0x36f5ac}from'../../utils/common-translations';import _0x2f3ab7 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x2875{constructor(_0x2fe510,_0xba4a9,_0x3bd68b){super(_0x2fe510);const _0x585ddd=new _0x36105a(_0x2fe510);_0x585ddd['set']({'content':_0x2f3ab7,'viewBox':_0x1d33('0x3')});const _0x17f9a1=['ck',_0x1d33('0x0')];_0x3bd68b&&_0x17f9a1['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4a6d97=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x36f5ac(_0x2fe510,_0x3bd68b?'Revision\x20creator':_0x1d33('0x1'))},'children':[_0x585ddd,_0xba4a9[_0x1d33('0x2')]]}];this[_0x1d33('0x4')]({'tag':'li','attributes':{'class':_0x17f9a1},'children':_0x4a6d97});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2916=['Revision\x20name','set','ck-revision-history-sidebar__revision-name'];(function(_0xef35db,_0x2916da){var _0x1fafe8=function(_0xa0cc21){while(--_0xa0cc21){_0xef35db['push'](_0xef35db['shift']());}};_0x1fafe8(++_0x2916da);}(_0x2916,0xa2));var _0x1faf=function(_0xef35db,_0x2916da){_0xef35db=_0xef35db-0x0;var _0x1fafe8=_0x2916[_0xef35db];return _0x1fafe8;};import{LabeledFieldView as _0x5644bd}from'ckeditor5/src/ui';import{getTranslation as _0x322fbd}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x5644bd{constructor(_0x5cd37c,..._0xec167f){super(_0x5cd37c,..._0xec167f),this[_0x1faf('0x1')]({'label':_0x322fbd(_0x5cd37c,_0x1faf('0x0'))}),this['extendTemplate']({'tag':'span','attributes':{'class':[_0x1faf('0x2')]}});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x936c=['bind','ck-revision-history-sidebar__revision','div','from','element','ck-revision-history-sidebar__revision-wrapper','listenTo','ck-revision-history-sidebar__revision__controls-wrapper','uiLanguage','deselect','unshift','authors','isSelected','ck-revision-history-sidebar__revision-authors','value','filter','isEnabled','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','setTemplate','isActionsDropdownOpen','length','fieldView','.ck-thread__remove-confirm','set','extendTemplate','ck-revision-history-sidebar__revision_highlighted','isHighlighted','ck-reset','fire','highlight','render','ck-disabled','isConfirm','creator','span','ck-revision-history-sidebar__actions_dropdown_open','createdAt','bindTemplate','revisionNameView','select','name','revisionActionsView','_createdAtFormatted'];(function(_0x194c7f,_0x936c7e){const _0x9dbcdd=function(_0x4c0830){while(--_0x4c0830){_0x194c7f['push'](_0x194c7f['shift']());}};_0x9dbcdd(++_0x936c7e);}(_0x936c,0xce));const _0x9dbc=function(_0x194c7f,_0x936c7e){_0x194c7f=_0x194c7f-0x0;let _0x9dbcdd=_0x936c[_0x194c7f];return _0x9dbcdd;};import{View as _0x47fb6c,createLabeledInputText as _0x1b3a5e}from'ckeditor5/src/ui';import{mix as _0x52158d}from'ckeditor5/src/utils';import{ConfirmMixin as _0x359590}from'ckeditor5-collaboration/src/collaboration-core';import _0x318053 from'./revisionnameview';import _0x2c9b82 from'./revisionauthorview';import{dateToPrettyFormat as _0x11ebc7}from'./utils';import{createActionsDropdownView as _0x16d964}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x47fb6c{constructor(_0x1b89c7,_0x16e87c,_0x1efc74){super(_0x1b89c7);const _0xe5b73=this[_0x9dbc('0x3')],_0x57d1ac=function(_0x828214,_0x49ecab){const _0x4705ce=Array[_0x9dbc('0xc')](_0x49ecab[_0x9dbc('0x14')])[_0x9dbc('0x18')](_0xdc5048=>_0xdc5048!=_0x49ecab[_0x9dbc('0x2a')]);return _0x49ecab[_0x9dbc('0x2a')]&&_0x4705ce[_0x9dbc('0x13')](_0x49ecab[_0x9dbc('0x2a')]),_0x4705ce['map'](_0x40c270=>new _0x2c9b82(_0x828214,_0x40c270,_0x40c270==_0x49ecab['creator']));}(_0x1b89c7,_0x16e87c);this['_revision']=_0x16e87c,this['id']=_0x16e87c['id'],this[_0x9dbc('0x9')](_0x9dbc('0x6'),_0x9dbc('0x2'))['to'](_0x16e87c),this[_0x9dbc('0x20')](_0x9dbc('0x15'),!0x1),this['set'](_0x9dbc('0x23'),!0x1),this['set'](_0x9dbc('0x1c'),!0x1),this[_0x9dbc('0x20')]('isReady',!0x1),this[_0x9dbc('0x9')](_0x9dbc('0x8'))['to'](this,_0x9dbc('0x2'),_0x229fc4=>_0x229fc4?_0x11ebc7(_0x1b89c7[_0x9dbc('0x11')],_0x229fc4):null),this[_0x9dbc('0x20')](_0x9dbc('0x19'),!0x1),this['revisionNameView']=new _0x318053(_0x1b89c7,_0x1b3a5e),this[_0x9dbc('0x4')][_0x9dbc('0x1e')][_0x9dbc('0x21')]({'attributes':{'maxlength':'220'}}),this[_0x9dbc('0x4')][_0x9dbc('0x1e')][_0x9dbc('0x9')](_0x9dbc('0x17'),'placeholder')['to'](this,_0x9dbc('0x6'),_0x9dbc('0x8')),this[_0x9dbc('0x4')][_0x9dbc('0x9')]('isEnabled')['to'](this,'isSelected',this,_0x9dbc('0x19'),(_0x5c056f,_0x76a05a)=>_0x5c056f&&_0x76a05a),this['revisionActionsView']=_0x1efc74&&_0x1efc74[_0x9dbc('0x1d')]?_0x16d964(this,_0x1efc74):'',this[_0x9dbc('0x7')][_0x9dbc('0x9')](_0x9dbc('0x19'))['to'](this),this[_0x9dbc('0x1b')]({'tag':_0x9dbc('0xb'),'attributes':{'class':['ck','ck-reset',_0x9dbc('0xe'),_0xe5b73['if'](_0x9dbc('0x29'),_0x9dbc('0x1a'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x9dbc('0x24'),_0x9dbc('0xa'),_0xe5b73['if'](_0x9dbc('0x19'),_0x9dbc('0x28'),_0x57268f=>!_0x57268f),_0xe5b73['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xe5b73['if']('isHighlighted',_0x9dbc('0x22')),_0xe5b73['if'](_0x9dbc('0x1c'),_0x9dbc('0x1'))]},'children':[this['revisionNameView'],{'tag':_0x9dbc('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0xe5b73['to'](_0x9dbc('0x8'))}]},{'tag':_0x9dbc('0xb'),'attributes':{'class':['ck',_0x9dbc('0x10')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x9dbc('0x16')]},'children':_0x57d1ac}]},this[_0x9dbc('0x7')]],'on':{'click':_0xe5b73['to'](_0x126687=>{_0x126687['srcElement']['closest'](_0x9dbc('0x1f'))||this['isReady']&&this['isEnabled']&&this[_0x9dbc('0x25')](_0x9dbc('0x5'),{'id':this['id']});})}}]});}[_0x9dbc('0x27')](){super[_0x9dbc('0x27')]();const _0xd284fa=this[_0x9dbc('0x4')]['fieldView'][_0x9dbc('0xd')];this[_0x9dbc('0xf')](_0xd284fa,'change',()=>{this[_0x9dbc('0x25')]('setName',{'id':this['id'],'name':_0xd284fa[_0x9dbc('0x17')]});});}[_0x9dbc('0x5')](){this[_0x9dbc('0x15')]=!0x0;}[_0x9dbc('0x12')](){this['isSelected']=!0x1;}[_0x9dbc('0x26')](){this['isHighlighted']=!0x0;}['unhighlight'](){this[_0x9dbc('0x23')]=!0x1;}}_0x52158d(ci,_0x359590);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3da9=['_isCollapsed','isVisible','toggle','button','bindTemplate','true','click','ck-hidden','span','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','set','ck-revision-history-sidebar__subrevision-collapser__inner','setTemplate','ck-revision-history-sidebar__subrevision-collapser'];(function(_0xf704be,_0x3da9cf){const _0x165392=function(_0x5bd234){while(--_0x5bd234){_0xf704be['push'](_0xf704be['shift']());}};_0x165392(++_0x3da9cf);}(_0x3da9,0xa4));const _0x1653=function(_0xf704be,_0x3da9cf){_0xf704be=_0xf704be-0x0;let _0x165392=_0x3da9[_0xf704be];return _0x165392;};import{View as _0xc5bc87}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0xc5bc87{constructor(_0x506fbd){super(_0x506fbd);const _0x386680=this[_0x1653('0x5')];this[_0x1653('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1653('0xe')]({'tag':_0x1653('0x9'),'attributes':{'class':['ck',_0x1653('0x0'),_0x386680['if'](_0x1653('0x2'),_0x1653('0x8'),_0x2bc841=>!_0x2bc841),_0x386680['if'](_0x1653('0x1'),_0x1653('0xb'))],'role':_0x1653('0x4'),'aria-pressed':_0x386680['to'](_0x1653('0x1'),_0x375e38=>_0x375e38?_0x1653('0xa'):_0x1653('0x6'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x1653('0xd')]}}],'on':{'click':_0x386680['to'](_0x1653('0x7'))}});}[_0x1653('0x3')](){this[_0x1653('0x1')]=!this[_0x1653('0x1')];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c85=['ck-revision-history-sidebar__revision__date','select','uiLanguage','set','bindTemplate','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision_selected','bind','div','_createdAtFormatted','setTemplate','ck-reset','ck-revision-history-sidebar__revision','createdAt','ck-revision-history-sidebar__revision-authors','author','isSelected','_parentRevisionId'];(function(_0x2dba98,_0x2c852c){const _0xfaa5f1=function(_0x2ea551){while(--_0x2ea551){_0x2dba98['push'](_0x2dba98['shift']());}};_0xfaa5f1(++_0x2c852c);}(_0x2c85,0x124));const _0xfaa5=function(_0x2dba98,_0x2c852c){_0x2dba98=_0x2dba98-0x0;let _0xfaa5f1=_0x2c85[_0x2dba98];return _0xfaa5f1;};import{View as _0x43d0ba}from'ckeditor5/src/ui';import _0x5a2e41 from'./revisionauthorview';import{dateToPrettyFormat as _0xd7ad1f}from'./utils';import'../../../theme/revision/subrevision.css';export default class ct extends _0x43d0ba{constructor(_0x267a91,_0xf5f620,_0x27a3e8){super(_0x267a91);const _0x4c5a85=this[_0xfaa5('0x0')];this['id']=_0xf5f620['id'],this[_0xfaa5('0x3')](_0xfaa5('0x9'))['to'](_0xf5f620),this[_0xfaa5('0x11')](_0xfaa5('0xc'),!0x1),this[_0xfaa5('0x3')]('_createdAtFormatted')['to'](this,_0xfaa5('0x9'),_0x4a1ac7=>_0x4a1ac7?_0xd7ad1f(_0x267a91[_0xfaa5('0x10')],_0x4a1ac7):null),this['_parentRevisionId']=_0x27a3e8,this[_0xfaa5('0x6')]({'tag':_0xfaa5('0x4'),'attributes':{'class':['ck',_0xfaa5('0x7'),_0xfaa5('0x8'),_0xfaa5('0x1'),_0x4c5a85['if'](_0xfaa5('0xc'),_0xfaa5('0x2'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0xfaa5('0xe')]},'children':[{'text':_0x4c5a85['to'](_0xfaa5('0x5'))}]},{'tag':'ul','attributes':{'class':['ck',_0xfaa5('0xa')]},'children':[new _0x5a2e41(_0x267a91,_0xf5f620[_0xfaa5('0xb')],!0x0)]}],'on':{'click':_0x4c5a85['to'](this['select'][_0xfaa5('0x3')](this))}});}[_0xfaa5('0xf')](){this[_0xfaa5('0xc')]=!0x0,this['fire']('select',{'parentId':this[_0xfaa5('0xd')]});}['deselect'](){this[_0xfaa5('0xc')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3c94=['toLocaleDateString','numeric'];(function(_0x37a138,_0x3c9436){var _0x182e7c=function(_0x4a7abb){while(--_0x4a7abb){_0x37a138['push'](_0x37a138['shift']());}};_0x182e7c(++_0x3c9436);}(_0x3c94,0x14d));var _0x182e=function(_0x37a138,_0x3c9436){_0x37a138=_0x37a138-0x0;var _0x182e7c=_0x3c94[_0x37a138];return _0x182e7c;};export function dateToPrettyFormat(_0x42df81,_0x404ef2){return _0x404ef2[_0x182e('0x1')](_0x42df81,{'month':'long','day':_0x182e('0x0')})+',\x20'+_0x404ef2['toLocaleTimeString'](_0x42df81,{'hour':_0x182e('0x0'),'minute':_0x182e('0x0')});}
|