@ckeditor/ckeditor5-revision-history 35.2.1 → 35.3.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/README.md +1 -1
- package/build/revision-history.js +1 -1
- package/package.json +7 -7
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xc25d=['revisionHistoryLabel','marked','consumable','isAtStart','stop','data','start','loadRevisionData','POSITIVE_INFINITY','newRevisionId','addRevisionData','error','change:numberOfChanges','commands','_refreshStartEndIndex','destroy','elementEnd','revision-start','values','deletions','document','changes','vid_end','remove','_initInteractions','_cleanMarkers','keys','activeView','set','diff','side','end','next','revision-suggestion','comment','length','_findChangeIdFromDomTarget','_getRevisionsRange','getRevision','revision-viewer','-new','shift','listenTo','low','data-change-id','getItems','createRange','toModel','isIncorrect','_threeWayMerge','forward','model','oldRevisionId','setAttribute','viewItem','slice','isAtEnd','merge','clearForceDisabled','isContent','parse','range','config','mapper','markerToHighlight','isNavigationMode','maxOffset','add','filter','getRevisionData','removeMarker:revision-suggestion','bind','_setData','_appendChild','_removeMissingPairs','markerName','element','concat','vid','attributes','insert','nextSibling','insertion','level','done','pairId','_step','hasAttribute','upcast','userId','readOnlyMode','writer','index','_processTape','isInline','from','showStack','adapter','mousedown','repository','revision','editor','markerRange','change:activeChange','observeMarkers','addHighlight','isLimit','offsetSize','activeChange','authors','high','code','parent','ck-suggestion-marker--active','getChild','getIndex','removeMarker:revision','createAttributeElement','_makeModelFromViewString','plugins','createRangeIn','addMarker:revision','ck-suggestion-marker-merge','map','children','schema','_target','ck-suggestion-marker-split','markers','default','enqueueChange','delete','string','then','span','_removeUnsupportedChanges','_makeModelFromTape','pop','processor','_makeTape','distance','getAttributes','isAddSuggestion','editingDowncast','useFillerType','reconvertMarker','markerToData','previousPosition','elementToAttribute','revision:','change:isEnabled','change:isReadOnly','showPreviousChange','type','backward','_getChangeFromId','requires','bindElementToMarker','stopListening','isAfter','split','isBlock','test','attribute:vid','_joinTapes','consume','forEach','push','getRootNames','for','ck-suggestion-preview-marker-','diffData','nodeAfter','removeClass','hasClass','isRemoveSuggestion','conversion','markerNameToElements','change','toViewElement','isSuggestion','_markMismatchedRemovedTags','item','_balloon','isBefore','_update','setData','<p></p>','change:isReady','addMarker:revision-suggestion:deletion','compare','return','_markInsertions','_cleanUp','all','RevisionViewer','downcastDispatcher','name','pluginName','getWalker','_setConversion','target','isRemoved','clear','splice','text','unbindElementFromMarkerName','elementStart','deletion','mouseover','_markSuggestions','_getViewForChange','addClass','_changeIdToChange','init','createPositionFromPath','checkAttribute','_revisions','get','_changeView','uiElement','toData','isEqual','isAdded','view','vid_start','_fixObsoleteTags','markersStart','dataDowncast','data-revision-','has','ck-editor__editable__overlay','insertions','first','startsWith','collaboration.channelId','sort','_getViewObj','nextPosition','createUIElement','refresh','ck-suggestion-preview-marker','_setDistance','_getDiff','revisionHistory','_removeRevisionMarkers','element:pre','getAttribute','getRoot','endIndex','abs','toViewPosition','markersEnd','isEnabled','dataToMarker','editing','currentChangeNumber','isReady','modelRange','ck-suggestion-marker-','startIndex'];(function(_0x39b008,_0xc25d5a){const _0x362a62=function(_0xbe8236){while(--_0xbe8236){_0x39b008['push'](_0x39b008['shift']());}};_0x362a62(++_0xc25d5a);}(_0xc25d,0x156));const _0x362a=function(_0x39b008,_0xc25d5a){_0x39b008=_0x39b008-0x0;let _0x362a62=_0xc25d[_0x39b008];return _0x362a62;};import{Plugin as _0x5c70ec,Command as _0x3913a7}from'ckeditor5/src/core';import{ObservableMixin as _0x9f85d9,mix as _0x27e8c5,scrollViewportToShowTarget as _0x194198}from'ckeditor5/src/utils';import{ContextualBalloon as _0x232578}from'ckeditor5/src/ui';import{DocumentFragment as _0x3f0366,Element as _0x481ff9,Text as _0x269a36,ViewDocumentFragment as _0x18313f,ViewText as _0x3e9df7,ViewElement as _0x298d43,ViewContainerElement as _0x2a361f,ViewAttributeElement as _0x76218b,ViewEmptyElement as _0x28f004,ViewRawElement as _0x3744af,ViewUIElement as _0x5b87a1}from'ckeditor5/src/engine';import{Users as _0x5db220,getMarkerDomElement as _0x15f201}from'ckeditor5-collaboration/src/collaboration-core';import _0x4612b3 from'./ui/revisionviewer/changedetailsview';import _0x408ef3 from'./revisionsrepository';import _0x834f11 from'./changeitem';import _0x2c297d from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x2a361f,'a':_0x76218b,'e':_0x28f004,'r':_0x3744af,'u':_0x5b87a1};export default class d extends _0x5c70ec{static get[_0x362a('0x75')](){return _0x362a('0x72');}static get[_0x362a('0x4b')](){return[_0x5db220,_0x232578,_0x408ef3];}constructor(..._0x14cf77){super(..._0x14cf77),this[_0x362a('0x12')]=this[_0x362a('0x14')][_0x362a('0x26')][_0x362a('0x89')]('RevisionsRepository'),this[_0x362a('0xd0')]('activeChange',null),this[_0x362a('0xd0')](_0x362a('0xcf'),null),this[_0x362a('0xd0')]('diff',null),this[_0x362a('0xd0')]('isReady',!0x1),this[_0x362a('0xd0')](_0x362a('0xac'),!0x0),this['on']('change:isEnabled',(_0x255cf1,_0x480282,_0x202686)=>{this[_0x362a('0x1b')]=null,this[_0x362a('0xcf')]=null,this['editor'][_0x362a('0xae')]['view'][_0x362a('0x61')](_0xa72396=>{for(const _0x1a2865 of this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')]['roots'])_0x202686?_0xa72396[_0x362a('0x5c')](_0x362a('0x96'),_0x1a2865):_0xa72396[_0x362a('0x83')](_0x362a('0x96'),_0x1a2865);});}),this[_0x362a('0xfb')](_0x362a('0xf5'))['to'](this,_0x362a('0x1b'),_0x6a1b4a=>null!==_0x6a1b4a),this[_0x362a('0xfb')](_0x362a('0xaf'))['to'](this,_0x362a('0xb0'),this,_0x362a('0xd1'),this,_0x362a('0x1b'),(_0x3a3740,_0x21ab75,_0x36f462)=>_0x3a3740&&_0x36f462?_0x21ab75[_0x362a('0xc9')]['getIndex'](_0x36f462):0x0),this[_0x362a('0xfb')]('numberOfChanges')['to'](this,_0x362a('0xb0'),this,_0x362a('0xd1'),(_0x359a09,_0x5e57b5)=>_0x359a09?_0x5e57b5[_0x362a('0xc9')][_0x362a('0xd7')]:0x0),this[_0x362a('0x8a')]=null,this[_0x362a('0x84')]=new Map(),this[_0x362a('0x10')]=null,this[_0x362a('0x66')]=this[_0x362a('0x14')]['plugins'][_0x362a('0x89')](_0x232578);}[_0x362a('0x85')](){const _0x461b3e=this[_0x362a('0x14')],_0x44d92b=new et(_0x461b3e,{'direction':_0x362a('0x49')}),_0x242a14=new et(_0x461b3e,{'direction':_0x362a('0xe6')});_0x461b3e[_0x362a('0xc1')][_0x362a('0xf7')](_0x362a('0x47'),_0x44d92b),_0x461b3e[_0x362a('0xc1')]['add']('showNextChange',_0x242a14),_0x461b3e[_0x362a('0xc1')]['add']('restoreRevision',new tt(_0x461b3e)),this['on'](_0x362a('0xc0'),()=>{_0x44d92b[_0x362a('0x9f')](),_0x242a14[_0x362a('0x9f')]();}),this[_0x362a('0x77')](),this[_0x362a('0xcc')](),_0x461b3e['enableReadOnlyMode'](_0x362a('0xdb'));}async[_0x362a('0xf9')](_0x2f5e3a){await this[_0x362a('0xbb')](_0x2f5e3a);const _0x3aa2a7={};for(const _0x5cb8b1 in _0x2f5e3a[_0x362a('0x5a')]){const _0x39369a=this[_0x362a('0xa4')](JSON[_0x362a('0xf0')](_0x2f5e3a[_0x362a('0x5a')][_0x5cb8b1][_0x362a('0x97')])),_0x4a28fe=this['editor']['editing']['view'][_0x362a('0xc8')],_0x319331=new _0x18313f(_0x4a28fe,_0x39369a[_0x362a('0x2a')](_0x48d0d6=>this['_getViewObj'](_0x48d0d6)));this[_0x362a('0x14')][_0x362a('0xb9')][_0x362a('0x39')][_0x362a('0x3f')](_0x362a('0xb5')),_0x3aa2a7[_0x5cb8b1]=this[_0x362a('0x14')][_0x362a('0xb9')][_0x362a('0x39')][_0x362a('0x8c')](_0x319331),this[_0x362a('0x14')]['data'][_0x362a('0x39')]['useFillerType'](_0x362a('0x30'));}return _0x3aa2a7;}[_0x362a('0xa4')](_0x3098a5){return(_0x3098a5=_0x3098a5['filter'](_0x24a010=>!_0x24a010[_0x362a('0x74')]||_0x362a('0xc5')!==_0x24a010[_0x362a('0x74')]&&'revision-end'!==_0x24a010[_0x362a('0x74')]))[_0x362a('0x55')](_0x3edb18=>{_0x362a('0x33')!=typeof _0x3edb18&&(_0x3edb18[_0x362a('0x2b')]=this['_removeRevisionMarkers'](_0x3edb18[_0x362a('0x2b')]),_0x3edb18[_0x362a('0x103')]=_0x3edb18['attributes'][_0x362a('0xf8')](_0x1416a6=>!_0x1416a6[0x0]['startsWith'](_0x362a('0x94'))));}),_0x3098a5;}[_0x362a('0x6d')](_0x276b09,_0x15c98c,_0x2af6ff=!0x1){if(!this[_0x362a('0xac')])return;const _0x1be555=this[_0x362a('0xd1')],_0x193408=this[_0x362a('0x12')],_0x3e29c7='string'==typeof _0x276b09?_0x193408[_0x362a('0xda')](_0x276b09):_0x276b09,_0x4349e0=_0x362a('0x33')==typeof _0x15c98c?_0x193408[_0x362a('0xda')](_0x15c98c):_0x15c98c,_0x40bc63=_0x3e29c7['id'],_0x18ab5e=_0x4349e0?_0x4349e0['id']:null;if(!_0x2af6ff&&this[_0x362a('0xd1')]&&this[_0x362a('0xd1')]['newRevisionId']===_0x40bc63&&this[_0x362a('0xd1')][_0x362a('0xe8')]===_0x18ab5e)return Promise['resolve']();this[_0x362a('0xb0')]=!0x1,this[_0x362a('0xcf')]=null,this['activeChange']=null,this[_0x362a('0xd1')]=new _0x2c297d(_0x40bc63,_0x18ab5e);const _0x12a4ff=this[_0x362a('0xd9')](_0x3e29c7,_0x4349e0,!0x0)[_0x362a('0x2a')](_0x20952b=>this[_0x362a('0xbb')](_0x20952b));return _0x12a4ff[_0x362a('0x56')](new Promise(_0x36f17d=>{setTimeout(_0x36f17d,0x14);})),Promise[_0x362a('0x71')](_0x12a4ff)[_0x362a('0x34')](()=>{if(!this[_0x362a('0xac')])return;this[_0x362a('0x70')]();const _0x38ace3=this[_0x362a('0xa2')](_0x40bc63,_0x18ab5e);this[_0x362a('0xd1')][_0x362a('0xfc')](_0x38ace3);for(const _0x34afcb of this[_0x362a('0xd1')]['changes'])this[_0x362a('0x84')][_0x362a('0xd0')](_0x34afcb['id'],_0x34afcb);this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x31')]({'isUndoable':!0x1},_0x457a7c=>{for(const _0x3516ae of Object[_0x362a('0xce')](_0x38ace3[_0x362a('0xe7')])){const _0x4ce450=this[_0x362a('0x14')]['model'][_0x362a('0xc8')][_0x362a('0xa7')](_0x3516ae);_0x457a7c[_0x362a('0xcb')](_0x457a7c[_0x362a('0x27')](_0x4ce450)),_0x457a7c['insert'](_0x38ace3[_0x362a('0xe7')][_0x3516ae],_0x4ce450,0x0);}}),this[_0x362a('0xb0')]=!0x0;})['catch'](_0x18b380=>{console[_0x362a('0xbf')](_0x18b380),this[_0x362a('0x70')](),_0x1be555?this[_0x362a('0xd1')]=_0x1be555:this[_0x362a('0x14')][_0x362a('0x69')](_0x362a('0x6a')),this[_0x362a('0xb0')]=!0x0;});}[_0x362a('0xc3')](){this['activeView']=null,this[_0x362a('0x8a')]&&this['_changeView'][_0x362a('0xc3')]();}[_0x362a('0xbe')](_0x9e9386,_0x364d3b){const _0x2b8ad3=this[_0x362a('0x12')]['createRevision'](_0x9e9386);return _0x2b8ad3['on'](_0x362a('0x68'),(_0x67089d,_0x249054,_0x471fb7)=>_0x364d3b(_0x249054,_0x471fb7,_0x2b8ad3)),this[_0x362a('0x12')]['addRevision'](_0x2b8ad3),_0x2b8ad3;}[_0x362a('0xbb')](_0x235aa3){if(!_0x235aa3||_0x235aa3['diffData'])return Promise['resolve']();{const _0xc6052f=this[_0x362a('0x14')][_0x362a('0xf2')][_0x362a('0x89')](_0x362a('0x9a'));return this['adapter'][_0x362a('0xda')]({'channelId':_0xc6052f,'revisionId':_0x235aa3['id']})[_0x362a('0x34')](_0x28e857=>{_0x235aa3[_0x362a('0x68')]({'diffData':_0x28e857[_0x362a('0x5a')]},!0x0);});}}['_cleanUp'](){this[_0x362a('0x1b')]=null,this[_0x362a('0xcd')](),this[_0x362a('0x8a')]&&this['_changeView'][_0x362a('0xc3')](),this[_0x362a('0x8a')]=null,this[_0x362a('0x84')][_0x362a('0x7a')]();}[_0x362a('0x3a')](_0x23bca5){const _0x777ce6=Array[_0x362a('0xe')](_0x23bca5['markers'])[_0x362a('0xf8')](([_0x128002,_0x5052e0])=>_0x128002[_0x362a('0x99')]('revision:')&&!_0x5052e0['isCollapsed']),_0x1478b9=Array[_0x362a('0xe')](this['editor'][_0x362a('0xe7')][_0x362a('0x27')](_0x23bca5)[_0x362a('0x76')]({'singleCharacters':!0x0}));if(0x0!=_0x777ce6[_0x362a('0xd7')])for(const _0xbfb738 of _0x1478b9){const [_0x3d0e1a,_0x21293d]=_0x777ce6[0x0],[,_0x4cb5fa,_0x58945c]=_0x3d0e1a[_0x362a('0x4f')](':');if(_0x21293d['end'][_0x362a('0x8d')](_0xbfb738[_0x362a('0x9d')])&&_0x777ce6[_0x362a('0xdd')](),(_0xbfb738['previousPosition']['isEqual'](_0x21293d[_0x362a('0xba')])||_0xbfb738['previousPosition'][_0x362a('0x4e')](_0x21293d[_0x362a('0xba')]))&&('insertion'==_0x4cb5fa?_0xbfb738[_0x362a('0x8e')]={'userId':_0x58945c}:_0x362a('0x7f')==_0x4cb5fa&&(_0xbfb738[_0x362a('0x79')]={'userId':_0x58945c})),0x0==_0x777ce6['length'])break;}return _0x1478b9;}[_0x362a('0xc2')](_0x4051ed){const _0x25dfbe=new Map();for(let _0x47661c=0x0;_0x47661c<_0x4051ed[_0x362a('0xd7')];_0x47661c++)_0x362a('0x7c')===_0x4051ed[_0x47661c][_0x362a('0x48')]?(_0x4051ed[_0x47661c][_0x362a('0x65')]['startIndex']=_0x47661c,_0x4051ed[_0x47661c][_0x362a('0x65')]['endIndex']=_0x47661c):(_0x362a('0x7e')===_0x4051ed[_0x47661c]['type']?_0x4051ed[_0x47661c][_0x362a('0x65')][_0x362a('0xb3')]=_0x47661c:'elementEnd'===_0x4051ed[_0x47661c][_0x362a('0x48')]&&(_0x4051ed[_0x47661c]['item'][_0x362a('0xa8')]=_0x47661c),_0x25dfbe[_0x362a('0xd0')](_0x4051ed[_0x47661c]['id'],_0x47661c));for(const _0x34f6e4 of _0x25dfbe[_0x362a('0xc6')]())_0x362a('0x7e')===_0x4051ed[_0x34f6e4]['type']?_0x4051ed[_0x34f6e4][_0x362a('0x65')]['endIndex']=_0x25dfbe[_0x362a('0x89')](_0x4051ed[_0x34f6e4][_0x362a('0x4')]):_0x362a('0xc4')===_0x4051ed[_0x34f6e4][_0x362a('0x48')]&&(_0x4051ed[_0x34f6e4][_0x362a('0x65')][_0x362a('0xb3')]=_0x25dfbe[_0x362a('0x89')](_0x4051ed[_0x34f6e4]['pairId']));}[_0x362a('0xc')](_0x501146){for(let _0x445f31=0x0;_0x445f31<_0x501146[_0x362a('0xd7')];_0x445f31++){if(_0x362a('0x7e')===_0x501146[_0x445f31][_0x362a('0x48')])_0x501146[_0x445f31][_0x362a('0x65')][_0x362a('0xb3')]=_0x445f31;else{if(_0x362a('0xc4')===_0x501146[_0x445f31][_0x362a('0x48')]){_0x501146[_0x445f31]['item'][_0x362a('0xa8')]=_0x445f31;const _0x2ecbda=_0x501146[_0x445f31][_0x362a('0x65')][_0x362a('0xb3')];_0x501146[_0x2ecbda][_0x362a('0x4')]=_0x501146[_0x445f31]['id'],_0x501146[_0x445f31][_0x362a('0x4')]=_0x501146[_0x2ecbda]['id'];}else _0x501146[_0x445f31]['item'][_0x362a('0xb3')]=_0x445f31,_0x501146[_0x445f31][_0x362a('0x65')]['endIndex']=_0x445f31,_0x501146[_0x445f31][_0x362a('0x4')]=null;}_0x501146[_0x445f31][_0x362a('0x92')]||(_0x501146[_0x445f31][_0x362a('0x92')]=[],_0x501146[_0x445f31][_0x362a('0xab')]=[]);}}[_0x362a('0x6f')](_0x25b29b,_0x1f2697){const _0x2a091f=_0x25b29b['filter'](_0x3a6d76=>!_0x3a6d76[_0x362a('0x8e')]);for(let _0x8c7af9=0x0;_0x8c7af9<_0x1f2697[_0x362a('0xd7')];_0x8c7af9++)_0x1f2697[_0x8c7af9][_0x362a('0x8e')]&&(_0x2a091f[_0x8c7af9]['isAdded']=_0x1f2697[_0x8c7af9][_0x362a('0x8e')]);}[_0x362a('0x25')](_0x39f6ca){const _0x490f9b=JSON['parse'](_0x39f6ca),_0x4aa5d4=this['editor'][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')],_0x1e5c1a=new _0x18313f(_0x4aa5d4,_0x490f9b[_0x362a('0x2a')](_0xf84210=>this[_0x362a('0x9c')](_0xf84210)));return this[_0x362a('0x14')]['data'][_0x362a('0xe3')](_0x1e5c1a);}['_getViewObj'](_0x59913a){const _0xaf614c=this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')];if(_0x362a('0x33')==typeof _0x59913a)return new _0x3e9df7(_0xaf614c,_0x59913a);{const _0x49a6f1=_0x59913a['children'][_0x362a('0x2a')](_0x12bd75=>this[_0x362a('0x9c')](_0x12bd75));return new(Y[_0x59913a[(_0x362a('0x48'))]]||_0x298d43)(_0xaf614c,_0x59913a[_0x362a('0x74')],_0x59913a[_0x362a('0x103')],_0x49a6f1);}}['_getDiff'](_0x1962c7,_0x510a20=null){const _0x2e9f49=this['repository'][_0x362a('0xda')](_0x1962c7),_0x23f12c=_0x510a20?this['repository']['getRevision'](_0x510a20):null,_0x442066=this[_0x362a('0xd9')](_0x2e9f49,_0x23f12c),_0x2f659f=_0x442066[_0x442066[_0x362a('0xd7')]-0x1],_0x21abd5=new Map();for(const _0x37d2ff of _0x442066){_0x37d2ff['model']={};for(const _0x54258e of _0x37d2ff[_0x362a('0x1c')])_0x21abd5['set'](_0x54258e['id'],_0x54258e);for(const _0x4e2f22 of this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0xc8')]['getRootNames']())_0x37d2ff[_0x362a('0x5a')][_0x4e2f22]||(_0x37d2ff[_0x362a('0x5a')][_0x4e2f22]={'insertions':'[]','deletions':'[]'}),_0x37d2ff[_0x362a('0xe7')][_0x4e2f22]={'insertions':this[_0x362a('0x25')](_0x37d2ff[_0x362a('0x5a')][_0x4e2f22]['insertions']),'deletions':this[_0x362a('0x25')](_0x37d2ff[_0x362a('0x5a')][_0x4e2f22][_0x362a('0xc7')])};}const _0x451217={'model':{},'changes':[]};for(const _0x42ba6f of this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0xc8')][_0x362a('0x57')]()){let _0x389c84=null,_0x58c15f=0x0;const _0x2ad7a5=new Map(Array[_0x362a('0xe')](_0x2e9f49[_0x362a('0xe7')][_0x42ba6f][_0x362a('0x97')][_0x362a('0x2f')])[_0x362a('0xf8')](([_0x5854e7])=>!_0x5854e7[_0x362a('0x99')](_0x362a('0x44'))));let _0xda4886=0x0;for(const _0x54944c of _0x442066){const _0x32918b=this[_0x362a('0x3a')](_0x54944c['model'][_0x42ba6f][_0x362a('0x97')]);_0x54944c==_0x2e9f49?(_0x389c84=_0x32918b,_0x58c15f=_0x389c84['length'],_0x389c84[_0x362a('0x55')](_0x2774b1=>{_0x2774b1['id']=_0xda4886++;}),this[_0x362a('0xc')](_0x389c84)):this[_0x362a('0x6f')](_0x389c84,_0x32918b);const _0x1c1aa7=_0x389c84[_0x362a('0xf8')](_0x2019bf=>!_0x2019bf['isAdded'])['map'](_0x21a082=>_0x21a082['id']);let _0x4414e5=0x0;const _0x125380=this[_0x362a('0x3a')](_0x54944c[_0x362a('0xe7')][_0x42ba6f][_0x362a('0xc7')]);_0x125380['forEach'](_0x57ed24=>{_0x57ed24[_0x362a('0x79')]?_0x57ed24['id']=_0x58c15f++:_0x57ed24['id']=_0x1c1aa7[_0x4414e5++];}),this['_processTape'](_0x125380),this['_setDistance'](_0x389c84,_0x362a('0x8e')),this['_setDistance'](_0x125380,'isRemoved'),_0x54944c==_0x2e9f49&&this['_markMarkers'](_0x389c84,_0x2ad7a5),_0x389c84=this[_0x362a('0x53')](_0x389c84,_0x125380),this[_0x362a('0xc2')](_0x389c84),this[_0x362a('0xa1')](_0x389c84,_0x362a('0x79'));}_0x389c84=_0x389c84['filter'](_0x3c6446=>!(_0x3c6446['isAdded']&&_0x3c6446[_0x362a('0x79')]));const _0x159978=new Map(_0x2f659f[_0x362a('0xe7')][_0x42ba6f]['deletions'][_0x362a('0x2f')]),_0x385305=new Set(_0x2ad7a5['keys']());for(const _0x4acfda of _0x159978[_0x362a('0xce')]())_0x385305[_0x362a('0x32')](_0x4acfda);this[_0x362a('0x81')](_0x389c84,_0x385305),this[_0x362a('0x91')](_0x389c84),_0x389c84=this[_0x362a('0xfe')](_0x389c84),_0x389c84=this[_0x362a('0x64')](_0x389c84),_0x389c84=this[_0x362a('0x36')](_0x389c84);const {root:_0x1adec3,changes:_0x207fd6}=this['_makeModelFromTape'](_0x389c84,_0x21abd5);_0x451217[_0x362a('0xe7')][_0x42ba6f]=_0x1adec3,_0x451217['changes']=_0x451217[_0x362a('0xc9')][_0x362a('0x101')](_0x207fd6);}return _0x451217;}['_markMarkers'](_0x1da286,_0x1b6a0b){for(let _0x25b026=0x0;_0x25b026<_0x1da286['length'];_0x25b026++)for(const [_0xbf4511,_0x3b251c]of _0x1b6a0b)_0x3b251c['start'][_0x362a('0x8d')](_0x1da286[_0x25b026]['previousPosition'])&&_0x1da286[_0x25b026]['markersStart'][_0x362a('0x56')](_0xbf4511),_0x3b251c[_0x362a('0xd3')]['isEqual'](_0x1da286[_0x25b026][_0x362a('0x9d')])&&_0x1da286[_0x25b026][_0x362a('0xab')][_0x362a('0x56')](_0xbf4511);}[_0x362a('0x53')](_0xc987de,_0x1a7efd){let _0x3e720d=[],_0x26a345=0x0,_0x5c4066=0x0;for(;_0x26a345<_0xc987de[_0x362a('0xd7')]||_0x5c4066<_0x1a7efd[_0x362a('0xd7')];){const _0xc6a9f6=_0xc987de[_0x26a345]||{},_0x4f803f=_0x1a7efd[_0x5c4066]||{};if(_0xc6a9f6['id']==_0x4f803f['id'])_0x26a345++,_0x5c4066++,_0x3e720d[_0x362a('0x56')](_0xc6a9f6);else{if(_0x4f803f[_0x362a('0x79')]&&_0xc6a9f6['isAdded']){const {commonTape:_0x7ba3ce,iEnd:_0x188cb2,jEnd:_0x28ccbe}=this['_threeWayMerge'](_0xc987de,_0x26a345,_0x1a7efd,_0x5c4066);_0x3e720d=_0x3e720d['concat'](_0x7ba3ce),_0x26a345=_0x188cb2,_0x5c4066=_0x28ccbe;}else _0x4f803f[_0x362a('0x79')]?(_0x5c4066++,_0x3e720d[_0x362a('0x56')](_0x4f803f)):(_0x26a345++,_0x3e720d['push'](_0xc6a9f6));}}return _0x3e720d;}[_0x362a('0x81')](_0x2e40c5,_0x10af9c){const _0x3697aa=[];for(let _0x523877=0x0;_0x523877<_0x2e40c5[_0x362a('0xd7')];_0x523877++){for(let _0xf5fe=0x0;_0xf5fe<_0x2e40c5[_0x523877][_0x362a('0x92')]['length'];_0xf5fe++){const _0x56cd18=_0x2e40c5[_0x523877][_0x362a('0x92')][_0xf5fe];if(!_0x10af9c[_0x362a('0x95')](_0x56cd18))continue;const {group:_0x5be362,type:_0x31e6db,authorId:_0xc1677}=_0x3a0080(_0x56cd18);_0x362a('0xd5')!=_0x5be362||_0x362a('0x1')!=_0x31e6db&&_0x362a('0x7f')!=_0x31e6db||(_0x3697aa['unshift']({'type':_0x31e6db,'name':_0x56cd18,'userId':_0xc1677}),_0x2e40c5[_0x523877]['markersStart'][_0x362a('0x7b')](_0xf5fe,0x1),_0xf5fe--);}_0x27b47f(_0x2e40c5[_0x523877]);for(let _0x4ee16c=0x0;_0x4ee16c<_0x2e40c5[_0x523877]['markersEnd'][_0x362a('0xd7')];_0x4ee16c++){const _0x24494b=_0x2e40c5[_0x523877][_0x362a('0xab')][_0x4ee16c];if(!_0x10af9c['has'](_0x24494b))continue;const {group:_0x3e6422,type:_0x45f83e}=_0x3a0080(_0x24494b);if(_0x362a('0xd5')!=_0x3e6422||_0x362a('0x1')!=_0x45f83e&&_0x362a('0x7f')!=_0x45f83e)continue;_0x2e40c5[_0x523877]['markersEnd'][_0x362a('0x7b')](_0x4ee16c,0x1),_0x4ee16c--;const _0x34ea1f=_0x3697aa['findIndex'](_0x46cb77=>_0x46cb77[_0x362a('0x74')]==_0x24494b);_0x34ea1f>-0x1&&_0x3697aa['splice'](_0x34ea1f,0x1);}}function _0x3a0080(_0x276ae9){const _0x5dd224=_0x276ae9[_0x362a('0x4f')](':');return{'group':_0x5dd224[0x0],'type':_0x5dd224[0x1],'subType':_0x5dd224[_0x362a('0xd7')]>=0x5?_0x5dd224[0x2]:null,'id':_0x5dd224[_0x362a('0xd7')]<0x5?_0x5dd224[0x2]:_0x5dd224[0x3],'authorId':_0x5dd224['length']<0x5?_0x5dd224[0x3]:_0x5dd224[0x4],'markerCount':0x6==_0x5dd224[_0x362a('0xd7')]?_0x5dd224[0x5]:null};}function _0x27b47f(_0x1d943c){for(let _0x559852=0x0;_0x559852<_0x3697aa['length'];_0x559852++){if(_0x1d943c['isAdded']&&'insertion'==_0x3697aa[_0x559852][_0x362a('0x48')])return _0x1d943c[_0x362a('0x3d')]=_0x3697aa[_0x559852],void delete _0x1d943c[_0x362a('0x8e')];if(!_0x1d943c['isAdded']&&!_0x1d943c[_0x362a('0x79')]&&_0x362a('0x7f')==_0x3697aa[_0x559852][_0x362a('0x48')])return void(_0x1d943c[_0x362a('0x5e')]=_0x3697aa[_0x559852]);}}}[_0x362a('0xa1')](_0x82aeef,_0x40aa02){let _0x1ad315=0x0,_0x408996=!0x1;const _0x8f2aca=new Map();for(const _0x2ba750 of _0x82aeef)_0x2ba750[_0x40aa02]?_0x408996&&(_0x1ad315++,_0x408996=!0x1):(_0x1ad315++,_0x408996=!0x0),_0x8f2aca['set'](_0x2ba750['id'],_0x1ad315);for(let _0x388b0f=0x0;_0x388b0f<_0x82aeef[_0x362a('0xd7')];_0x388b0f++){if(_0x362a('0x79')==_0x40aa02&&_0x82aeef[_0x388b0f]['isAdded']||_0x362a('0x8e')==_0x40aa02&&_0x82aeef[_0x388b0f][_0x362a('0x79')])continue;if(_0x362a('0x7c')==_0x82aeef[_0x388b0f][_0x362a('0x48')]){_0x82aeef[_0x388b0f][_0x362a('0x3b')]=0x0;continue;}const _0x3e362c=_0x8f2aca[_0x362a('0x89')](_0x82aeef[_0x388b0f][_0x362a('0x4')]),_0x3cb44c=_0x8f2aca[_0x362a('0x89')](_0x82aeef[_0x388b0f]['id']);_0x82aeef[_0x388b0f][_0x362a('0x3b')]=_0x3e362c-_0x3cb44c;}}['_getRevisionsRange'](_0x5a55e7,_0x4bfd63,_0x476c5e=!0x1){const _0x351d0e=[];let _0x1a3c6b=this[_0x362a('0x12')][_0x362a('0x22')](_0x5a55e7),_0x225072=this[_0x362a('0x12')]['getIndex'](_0x4bfd63);for(-0x1==_0x225072&&(_0x225072=this['repository'][_0x362a('0x88')][_0x362a('0xd7')],_0x476c5e=!0x1);_0x1a3c6b<_0x225072;)_0x351d0e[_0x362a('0x56')](this[_0x362a('0x12')][_0x362a('0xda')](_0x1a3c6b)),_0x1a3c6b++;return _0x476c5e&&_0x351d0e[_0x362a('0x56')](this[_0x362a('0x12')][_0x362a('0xda')](_0x1a3c6b)),_0x351d0e;}[_0x362a('0xe5')](_0x3e259e,_0x27ddf7,_0x49f615,_0x1a2746){const _0x4cef3a=this['editor']['model']['schema'];let _0x55fe89=_0x27ddf7;for(;_0x3e259e[_0x55fe89]&&_0x3e259e[_0x55fe89][_0x362a('0x8e')];)_0x55fe89++;let _0x4a2a6c=_0x1a2746;for(;_0x49f615[_0x4a2a6c]&&_0x49f615[_0x4a2a6c]['isRemoved'];)_0x4a2a6c++;_0x2fb91(_0x3e259e,_0x27ddf7,_0x55fe89),_0x2fb91(_0x49f615,_0x1a2746,_0x4a2a6c);const _0x21e447=_0x49f615[_0x362a('0xeb')](_0x1a2746,_0x4a2a6c)[_0x362a('0x101')](_0x3e259e[_0x362a('0xeb')](_0x27ddf7,_0x55fe89));return _0x21e447['sort']((_0x4a200e,_0x34dd43)=>_0x4a200e[_0x362a('0xd2')]!=_0x34dd43['side']?_0x4a200e['side']-_0x34dd43['side']:_0x4a200e['level']!=_0x34dd43['level']?_0x4a200e[_0x362a('0x2')]-_0x34dd43[_0x362a('0x2')]:_0x4a200e[_0x362a('0x3b')]!=_0x34dd43['distance']?_0x34dd43[_0x362a('0x3b')]-_0x4a200e[_0x362a('0x3b')]:!!_0x4a200e['isAdded']!=!!_0x34dd43['isAdded']?-0x1==_0x4a200e['side']||0x0==_0x4a200e[_0x362a('0xd2')]?_0x4a200e['isAdded']?-0x1:0x1:_0x4a200e[_0x362a('0x8e')]?0x1:-0x1:_0x4a200e[_0x362a('0xb')]-_0x34dd43[_0x362a('0xb')]),{'commonTape':_0x21e447,'iEnd':_0x55fe89,'jEnd':_0x4a2a6c};function _0x2fb91(_0x32d701,_0x1797a9,_0x358ca1){let _0x18581d=-0x1,_0x1c775a=Number[_0x362a('0xbc')],_0x1d99d7=!0x0;for(let _0x1533be=_0x1797a9;_0x1533be<_0x358ca1;_0x1533be++)if(_0x4cef3a[_0x362a('0xd')](_0x32d701[_0x1533be][_0x362a('0x65')])||(_0x1d99d7=!0x1),_0x32d701[_0x1533be][_0x362a('0x65')][_0x362a('0xb3')]<_0x1797a9&&(_0x18581d=_0x1533be),_0x32d701[_0x1533be]['item'][_0x362a('0xa8')]>=_0x358ca1){_0x1c775a=_0x1533be;break;}_0x1d99d7&&(_0x18581d=_0x358ca1-0x1);for(let _0x33eb26=_0x1797a9;_0x33eb26<_0x358ca1;_0x33eb26++)_0x32d701[_0x33eb26][_0x362a('0xd2')]=_0x33eb26<=_0x18581d?-0x1:_0x33eb26<_0x1c775a?0x0:0x1,_0x32d701[_0x33eb26][_0x362a('0xb')]=_0x33eb26;let _0x3d02ac=0x0;for(let _0x23c8fd=_0x1797a9;_0x23c8fd<=_0x18581d;_0x23c8fd++)0x0==_0x32d701[_0x23c8fd][_0x362a('0x3b')]?_0x32d701[_0x23c8fd]['level']=_0x3d02ac:(_0x3d02ac++,_0x32d701[_0x23c8fd][_0x362a('0x2')]=_0x3d02ac,_0x3d02ac++);for(let _0x13b760=_0x1797a9;_0x13b760<_0x358ca1;_0x13b760++)0x0==_0x32d701[_0x13b760]['side']&&(_0x32d701[_0x13b760][_0x362a('0x2')]=_0x3d02ac);_0x3d02ac=0x0;for(let _0x1d87a2=_0x358ca1-0x1;_0x1d87a2>=_0x1c775a;_0x1d87a2--)0x0==_0x32d701[_0x1d87a2]['distance']?_0x32d701[_0x1d87a2][_0x362a('0x2')]=_0x3d02ac:(_0x3d02ac--,_0x32d701[_0x1d87a2]['level']=_0x3d02ac,_0x3d02ac--);}}['_fixObsoleteTags'](_0xe5fe3c){const _0x2aa021=new Map(),_0x5d37dd=this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2c')];for(let _0x34d913=0x1;_0x34d913<_0xe5fe3c[_0x362a('0xd7')];_0x34d913++){let _0x469d6a,_0x2acb95,_0x96fc7f;const _0x13436a=_0xe5fe3c[_0x34d913],_0x4b81d6=_0xe5fe3c[_0x34d913-0x1];if(_0x362a('0x7c')==_0x13436a['type'])continue;if(_0x13436a[_0x362a('0x48')]!=_0x4b81d6[_0x362a('0x48')])continue;if(!_0x5d37dd[_0x362a('0x50')](_0x4b81d6[_0x362a('0x65')])||_0x5d37dd['isLimit'](_0x4b81d6[_0x362a('0x65')]))continue;if(!_0x5d37dd[_0x362a('0x50')](_0x13436a[_0x362a('0x65')])||_0x5d37dd[_0x362a('0x19')](_0x13436a[_0x362a('0x65')]))continue;if((_0xe5fe3c[_0x34d913][_0x362a('0x8e')]||_0xe5fe3c[_0x34d913][_0x362a('0x3d')])&&_0xe5fe3c[_0x34d913-0x1][_0x362a('0x79')])_0x469d6a=_0xe5fe3c[_0x34d913],_0x2acb95=_0xe5fe3c[_0x34d913-0x1],_0x96fc7f=_0x34d913-0x1;else{if(!_0xe5fe3c[_0x34d913]['isRemoved']||!_0xe5fe3c[_0x34d913-0x1][_0x362a('0x8e')]&&!_0xe5fe3c[_0x34d913-0x1]['isAddSuggestion'])continue;_0x469d6a=_0xe5fe3c[_0x34d913-0x1],_0x2acb95=_0xe5fe3c[_0x34d913],_0x96fc7f=_0x34d913;}const _0x162b88=_0x469d6a[_0x362a('0x2')]==_0x2acb95[_0x362a('0x2')],_0x502534=Math[_0x362a('0xa9')](_0x469d6a['level'])<Math['abs'](_0x2acb95[_0x362a('0x2')])&&0x0==_0x2acb95[_0x362a('0x3b')];(_0x162b88||_0x502534)&&(_0x2aa021[_0x362a('0xd0')](_0x2acb95['id'],_0x469d6a['id']),_0xe5fe3c[_0x362a('0x7b')](_0x96fc7f,0x1),_0x34d913--,_0x469d6a[_0x362a('0x8e')]=!0x1);}for(let _0x3dfa6e=0x0;_0x3dfa6e<_0xe5fe3c[_0x362a('0xd7')];_0x3dfa6e++)_0x2aa021[_0x362a('0x95')](_0xe5fe3c[_0x3dfa6e]['pairId'])&&(_0xe5fe3c[_0x3dfa6e][_0x362a('0x4')]=_0x2aa021['get'](_0xe5fe3c[_0x3dfa6e]['pairId']));}[_0x362a('0xfe')](_0x496f1a){const _0x1fdb19=new Set(_0x496f1a['map'](_0x451c05=>_0x451c05['id']));for(let _0x24d4cb=0x0;_0x24d4cb<_0x496f1a['length'];_0x24d4cb++)_0x1fdb19[_0x362a('0x95')](_0x496f1a[_0x24d4cb][_0x362a('0x4')])||0x0==_0x496f1a[_0x24d4cb][_0x362a('0x3b')]||(_0x496f1a[_0x24d4cb]['isIncorrect']=!0x0);return _0x496f1a['filter'](_0x17953f=>!_0x17953f[_0x362a('0xe4')]);}[_0x362a('0x64')](_0x225ba7){const _0x2cb2dd=new Set();for(let _0x50c432=0x0;_0x50c432<_0x225ba7[_0x362a('0xd7')];_0x50c432++){if(_0x2cb2dd[_0x362a('0x95')](_0x225ba7[_0x50c432]['id'])&&_0x225ba7[_0x50c432][_0x362a('0x79')]&&(_0x225ba7[_0x50c432]['isIncorrect']=!0x0),_0x225ba7[_0x50c432][_0x362a('0xe4')])continue;if(0x0==_0x225ba7[_0x50c432][_0x362a('0x3b')])continue;if(_0x362a('0x7e')!=_0x225ba7[_0x50c432]['type'])continue;if(null==_0x225ba7[_0x50c432][_0x362a('0x4')])continue;let _0x2ec21a=_0x50c432+0x1,_0x3a53b6=0x0;for(;_0x225ba7[_0x2ec21a]['id']!=_0x225ba7[_0x50c432][_0x362a('0x4')];)'elementStart'==_0x225ba7[_0x2ec21a]['type']?_0x3a53b6++:_0x362a('0xc4')==_0x225ba7[_0x2ec21a][_0x362a('0x48')]&&_0x3a53b6--,_0x2ec21a++;if(0x0!=_0x3a53b6){if(_0x225ba7[_0x50c432]['isRemoved'])_0x225ba7[_0x50c432][_0x362a('0xe4')]=!0x0;else for(;_0x2ec21a!=_0x50c432;)_0x225ba7[_0x2ec21a][_0x362a('0x79')]&&0x0!=_0x225ba7[_0x2ec21a]['distance']&&(_0x225ba7[_0x2ec21a][_0x362a('0xe4')]=!0x0,_0x2cb2dd[_0x362a('0xf7')](_0x225ba7[_0x2ec21a]['pairId'])),_0x2ec21a--;}}return _0x225ba7[_0x362a('0xf8')](_0x4be9b1=>!_0x4be9b1[_0x362a('0xe4')]);}[_0x362a('0x36')](_0x346d3a){const _0x12ceab=this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2c')];for(let _0x4516f8=0x0;_0x4516f8<_0x346d3a[_0x362a('0xd7')];_0x4516f8++){if(!(_0x346d3a[_0x4516f8][_0x362a('0x8e')]||_0x346d3a[_0x4516f8][_0x362a('0x3d')]||_0x346d3a[_0x4516f8]['isRemoved']||_0x346d3a[_0x4516f8][_0x362a('0x5e')]))continue;if(0x0==_0x346d3a[_0x4516f8][_0x362a('0x3b')])continue;const _0x5cdc36=_0x346d3a[_0x4516f8][_0x362a('0x65')];_0x12ceab[_0x362a('0x50')](_0x5cdc36)||_0x12ceab[_0x362a('0x19')](_0x5cdc36)||(_0x346d3a[_0x4516f8][_0x362a('0x8e')]&&delete _0x346d3a[_0x4516f8]['isAdded'],_0x346d3a[_0x4516f8]['isAddSuggestion']&&delete _0x346d3a[_0x4516f8][_0x362a('0x3d')],_0x346d3a[_0x4516f8]['isRemoveSuggestion']&&delete _0x346d3a[_0x4516f8][_0x362a('0x5e')],_0x346d3a[_0x4516f8][_0x362a('0x79')]&&(_0x346d3a[_0x4516f8]['isIncorrect']=!0x0));}return _0x346d3a[_0x362a('0xf8')](_0x3864ff=>!_0x3864ff[_0x362a('0xe4')]);}[_0x362a('0x37')](_0x298182,_0x26ab2c){const _0x576d11=new _0x3f0366(),_0x195bbc=[],_0x4a3445=new Map(),_0x4e61dd=this[_0x362a('0x14')][_0x362a('0xe7')],_0x3e72f5=_0x4e61dd[_0x362a('0x2c')],_0x3355f4=[_0x576d11],_0x2577e1={},_0x376d69={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4fe067=null;const _0x3d1b80=[0x0];for(let _0x3f9a5d=0x0;_0x3f9a5d<_0x298182[_0x362a('0xd7')];_0x3f9a5d++){let _0x430db5,_0x5d4a68;if(_0x362a('0x7e')===_0x298182[_0x3f9a5d][_0x362a('0x48')]){_0x430db5=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80);const _0x5217c4=new _0x481ff9(_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0x74')],_0x298182[_0x3f9a5d][_0x362a('0x65')]['getAttributes']());_0x3355f4[0x0]['_appendChild'](_0x5217c4),_0x3d1b80['push'](0x0),_0x3355f4['unshift'](_0x5217c4),_0x5d4a68=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x4fe067=null;}else{if('elementEnd'===_0x298182[_0x3f9a5d][_0x362a('0x48')])_0x3355f4[_0x362a('0xdd')](),_0x430db5=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x3d1b80[_0x362a('0x38')](),_0x3d1b80[_0x3d1b80[_0x362a('0xd7')]-0x1]++,_0x5d4a68=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x4fe067=null;else{if(_0x430db5=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x4fe067&&_0x38603a(_0x4fe067,_0x298182[_0x3f9a5d][_0x362a('0x65')]))_0x4fe067['_data']+=_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0xb9')];else{const _0xf0c90e=new _0x269a36(_0x298182[_0x3f9a5d][_0x362a('0x65')]['data'],_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0x3c')]());_0x3355f4[0x0][_0x362a('0xfd')](_0xf0c90e),_0x4fe067=_0xf0c90e;}_0x3d1b80[_0x3d1b80[_0x362a('0xd7')]-0x1]+=_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0x1a')],_0x5d4a68=_0x4e61dd['createPositionFromPath'](_0x576d11,_0x3d1b80);}}for(const _0x1a4c94 of _0x298182[_0x3f9a5d]['markersStart'])_0x4a3445[_0x362a('0xd0')](_0x1a4c94,{'start':_0x430db5,'end':null});_0x386f32(_0x362a('0x5e'),_0x3f9a5d,_0x430db5,_0x5d4a68),_0x386f32('isAddSuggestion',_0x3f9a5d,_0x430db5,_0x5d4a68),_0x386f32(_0x362a('0x79'),_0x3f9a5d,_0x430db5,_0x5d4a68),_0x386f32(_0x362a('0x8e'),_0x3f9a5d,_0x430db5,_0x5d4a68);for(const _0x287740 of _0x298182[_0x3f9a5d][_0x362a('0xab')]){_0x4a3445[_0x362a('0x89')](_0x287740)[_0x362a('0xd3')]=_0x5d4a68;}}for(const [_0x40f133,_0x25cd67]of _0x4a3445){const _0x251164=this[_0x362a('0x14')][_0x362a('0xe7')]['createRange'](_0x25cd67[_0x362a('0xba')],_0x25cd67[_0x362a('0xd3')]);_0x576d11[_0x362a('0x2f')]['set'](_0x40f133,_0x251164);}return _0x195bbc[_0x362a('0x9b')]((_0x469e86,_0x10ec29)=>{const _0x31fc3d=_0x576d11[_0x362a('0x2f')][_0x362a('0x89')]('revision:'+_0x469e86['id']),_0x367315=_0x576d11[_0x362a('0x2f')][_0x362a('0x89')](_0x362a('0x44')+_0x10ec29['id']);return _0x31fc3d[_0x362a('0xba')][_0x362a('0x67')](_0x367315[_0x362a('0xba')])?-0x1:_0x31fc3d[_0x362a('0xba')]['isAfter'](_0x367315[_0x362a('0xba')])?0x1:_0x31fc3d[_0x362a('0xd3')]['isBefore'](_0x367315[_0x362a('0xd3')])?-0x1:_0x31fc3d[_0x362a('0xd3')][_0x362a('0x4e')](_0x367315[_0x362a('0xd3')])?0x1:_0x362a('0xf7')===_0x469e86[_0x362a('0x48')]?-0x1:0x1;}),{'root':_0x576d11,'changes':_0x195bbc};function _0x386f32(_0x113fc4,_0xa4c4bf,_0x20b8a6,_0x1b50bc){const _0x41476f=!!_0x298182[_0xa4c4bf][_0x113fc4],_0x17f17a=_0x41476f?_0x298182[_0xa4c4bf][_0x113fc4][_0x362a('0x8')]:null,_0x207374=_0xa4c4bf===_0x298182['length']-0x1,_0x24d80f=_0x376d69[_0x113fc4][0x0],_0x1963e2=_0x3e72f5['isObject'](_0x298182[_0xa4c4bf]['item']);!_0x2577e1[_0x113fc4]&&_0x41476f?_0x2577e1[_0x113fc4]={'start':_0x20b8a6,'tapeItem':_0x298182[_0xa4c4bf],'userId':_0x17f17a,'type':_0x113fc4}:_0x2577e1[_0x113fc4]&&!_0x41476f?(_0x2577e1[_0x113fc4][_0x362a('0xd3')]=_0x20b8a6,_0x459336(_0x2577e1[_0x113fc4]),_0x2577e1[_0x113fc4]=null):_0x2577e1[_0x113fc4]&&_0x41476f&&_0x2577e1[_0x113fc4]['userId']!==_0x17f17a&&(_0x2577e1[_0x113fc4]['end']=_0x20b8a6,_0x24d80f&&_0x24d80f[_0x362a('0x8')]===_0x2577e1[_0x113fc4][_0x362a('0x8')]||_0x459336(_0x2577e1[_0x113fc4]),_0x2577e1[_0x113fc4]={'start':_0x20b8a6,'tapeItem':_0x298182[_0xa4c4bf],'userId':_0x17f17a,'type':_0x113fc4}),_0x2577e1[_0x113fc4]&&_0x1963e2&&(_0x362a('0x7e')!==_0x298182[_0xa4c4bf][_0x362a('0x48')]||_0x24d80f&&_0x24d80f[_0x362a('0x8')]===_0x17f17a||_0x376d69[_0x113fc4]['unshift']({'userId':_0x17f17a,'object':_0x298182[_0xa4c4bf][_0x362a('0x65')],'change':_0x2577e1[_0x113fc4]}),_0x362a('0xc4')===_0x298182[_0xa4c4bf][_0x362a('0x48')]&&_0x24d80f&&_0x24d80f['object']===_0x298182[_0xa4c4bf][_0x362a('0x65')]&&(_0x376d69[_0x113fc4][_0x362a('0xdd')](),_0x2577e1[_0x113fc4]=_0x24d80f[_0x362a('0x61')])),_0x2577e1[_0x113fc4]&&_0x207374&&(_0x2577e1[_0x113fc4]['end']=_0x1b50bc,_0x459336(_0x2577e1[_0x113fc4]),_0x2577e1[_0x113fc4]=null);}function _0x459336({start:_0x132995,end:_0x3c2590,tapeItem:_0x4e075c,userId:_0x3bb167,type:_0xecbb04}){const _0x75d0bd=_0x4e075c[_0x362a('0x65')],_0x10baa1=_0x4e61dd[_0x362a('0x2c')]['isBlock'](_0x75d0bd)&&!_0x4e61dd[_0x362a('0x2c')][_0x362a('0x19')](_0x75d0bd),_0xd5b395=_0x132995[_0x362a('0x5b')]==_0x3c2590['parent']&&_0x3c2590[_0x362a('0xb7')];if(_0x10baa1&&_0xd5b395)return;const _0x2c45cc=_0x4e61dd[_0x362a('0xe2')](_0x132995,_0x3c2590),_0x134d0b=_0x26ab2c[_0x362a('0x89')](_0x3bb167),_0x2ac4d1=new _0x834f11({'author':_0x134d0b,'type':_0x362a('0x8e')==_0xecbb04||'isAddSuggestion'==_0xecbb04?_0x362a('0xf7'):_0x362a('0xcb'),'data':{'isSuggestion':'isAddSuggestion'==_0xecbb04||_0x362a('0x5e')==_0xecbb04},'createdAt':new Date()});_0x195bbc[_0x362a('0x56')](_0x2ac4d1),_0x576d11[_0x362a('0x2f')][_0x362a('0xd0')](_0x362a('0x44')+_0x2ac4d1['id'],_0x2c45cc);}function _0x38603a(_0x4bc4d0,_0x1f1fbc){const _0x4c7658=_0x4bc4d0[_0x362a('0x3c')](),_0x575ee9=_0x1f1fbc[_0x362a('0x3c')]();for(const _0x467dfa of _0x4c7658){if(_0x467dfa[0x1]!==_0x1f1fbc[_0x362a('0xa6')](_0x467dfa[0x0]))return!0x1;_0x575ee9[_0x362a('0xd4')]();}return _0x575ee9[_0x362a('0xd4')]()[_0x362a('0x3')];}}[_0x362a('0x77')](){this[_0x362a('0x14')]['conversion'][_0x362a('0x58')](_0x362a('0x7'))['dataToMarker']({'view':_0x362a('0x13')}),this['editor'][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x3e'))[_0x362a('0xf4')]({'model':'revision','view':_0x950e0a=>{const _0x1559de=_0x950e0a['markerName'][_0x362a('0x4f')](':')[0x1],_0x480736=this[_0x362a('0x4a')](_0x1559de);if(!_0x480736)return null;const _0x409571=_0x362a('0xf7')==_0x480736['type']?_0x362a('0x1'):_0x362a('0x7f'),_0x38f905=['ck-suggestion-marker',_0x362a('0xb2')+_0x409571];return _0x480736['data'][_0x362a('0x63')]&&_0x38f905[_0x362a('0x56')]('ck-suggestion-marker-'+_0x409571+'-new'),this[_0x362a('0x1b')]==_0x480736&&_0x38f905[_0x362a('0x56')](_0x362a('0x20')),{'classes':_0x38f905,'attributes':{'data-change-id':_0x1559de}};}}),this['editor'][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xf7')](_0x15f745=>{_0x15f745['on'](_0x362a('0xa5'),(_0x3f213f,_0x2b52b9,_0x270f3f)=>{const _0x5d72fc=_0x2b52b9['viewItem'][_0x362a('0x21')](0x0);if(!_0x5d72fc||!_0x5d72fc['is'](_0x362a('0x100'),_0x362a('0x1e')))return;if(!_0x270f3f['consumable'][_0x362a('0x54')](_0x5d72fc,{'attributes':['vid_start','vid_end']}))return;const _0x3a21a1=_0x2b52b9['modelRange'][_0x362a('0xba')][_0x362a('0x5b')];_0x270f3f[_0x362a('0xa')][_0x362a('0xe9')](_0x362a('0x90'),_0x5d72fc[_0x362a('0xa6')]('vid_start'),_0x3a21a1),_0x270f3f[_0x362a('0xa')]['setAttribute'](_0x362a('0xca'),_0x5d72fc['getAttribute'](_0x362a('0xca')),_0x3a21a1);},{'priority':_0x362a('0xdf')});}),this['editor'][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xf7')](_0x5efec1=>{_0x5efec1['on'](_0x362a('0x100'),(_0x5a4d1c,_0x3a643e,_0x540f35)=>{if(!_0x540f35['consumable'][_0x362a('0x54')](_0x3a643e['viewItem'],{'attributes':[_0x362a('0x90'),'vid_end']}))return;if(_0x3a643e[_0x362a('0xb1')]['isCollapsed'])return;const _0x5cc993=_0x3a643e['modelRange'][_0x362a('0xba')][_0x362a('0x5b')];_0x5cc993[_0x362a('0x6')](_0x362a('0x90'))||_0x5cc993[_0x362a('0x6')]('vid')||(_0x540f35[_0x362a('0xa')][_0x362a('0xe9')](_0x362a('0x90'),_0x3a643e[_0x362a('0xea')][_0x362a('0xa6')](_0x362a('0x90')),_0x5cc993),_0x540f35['writer'][_0x362a('0xe9')](_0x362a('0xca'),_0x3a643e['viewItem'][_0x362a('0xa6')](_0x362a('0xca')),_0x5cc993));},{'priority':_0x362a('0xdf')});}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0x43')]({'view':{'name':_0x362a('0x35'),'attributes':{'vid':!0x0}},'model':{'key':_0x362a('0x102'),'value':_0x5e3f30=>_0x5e3f30[_0x362a('0xa6')]('vid')}}),this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2c')]['on'](_0x362a('0x87'),(_0x280314,[,_0x14152f])=>{[_0x362a('0x90'),_0x362a('0xca'),_0x362a('0x102')]['includes'](_0x14152f)&&(_0x280314[_0x362a('0x6e')]=!0x0,_0x280314[_0x362a('0xb8')]());},{'priority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')]('dataDowncast')[_0x362a('0xf7')](_0x2c6b2c=>{_0x2c6b2c['on'](_0x362a('0x52'),(_0x31e45e,_0x4369d1,_0x2be78c)=>{if('\x20'!=_0x4369d1['item'][_0x362a('0xb9')]||_0x4369d1[_0x362a('0x65')]['parent'][_0x362a('0xf6')]>0x1)return;if(!_0x2be78c[_0x362a('0xb6')][_0x362a('0x54')](_0x4369d1[_0x362a('0x65')],_0x31e45e[_0x362a('0x74')]))return;const _0x55b681=_0x2be78c[_0x362a('0xa')],_0x4e5f42=_0x2be78c[_0x362a('0xf3')]['toViewRange'](_0x4369d1[_0x362a('0xf1')]);_0x55b681['wrap'](_0x4e5f42,_0x55b681[_0x362a('0x24')](_0x362a('0x35')));});}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')]('dataDowncast')['markerToData']({'model':'revision'}),this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x73')]['on']('addMarker:revision',function(_0x4b9a3c){const _0x19a287=_0x4b9a3c['plugins'][_0x362a('0x89')]('RevisionViewer');return(_0x57b7d3,_0x72bca2,_0x458427)=>{const _0x5cf038=_0x72bca2[_0x362a('0xff')][_0x362a('0x4f')](':')[0x1],_0x5308bb=_0x19a287[_0x362a('0x4a')](_0x5cf038);if(!_0x5308bb)return null;const _0x2016ac=_0x362a('0xf7')==_0x5308bb['type']?'split':'merge';if(!_0x458427[_0x362a('0xb6')][_0x362a('0x51')](_0x72bca2[_0x362a('0x15')],_0x57b7d3[_0x362a('0x74')]))return;const _0x210c0d=_0x72bca2[_0x362a('0x15')][_0x362a('0x76')](),_0x3f255a=_0x72bca2[_0x362a('0x15')][_0x362a('0xba')],_0x4c3f0f=_0x4b9a3c[_0x362a('0xe7')][_0x362a('0x2c')];let _0x4ad63c=null,_0xb3c901=null,_0x44de9f=!0x1,_0x37a388=!0x1;for(const _0x3b5efe of _0x210c0d){const _0x1d8fe3=_0x3b5efe[_0x362a('0x65')];_0x44de9f=_0x44de9f||_0x4c3f0f[_0x362a('0xef')](_0x1d8fe3);const _0x3b7f7b=_0x458427['mapper'][_0x362a('0x62')](_0x1d8fe3);if(_0x3b7f7b&&_0x3b7f7b['getCustomProperty']('addHighlight'))return;_0x362a('0xc4')==_0x3b5efe[_0x362a('0x48')]&&(_0x4c3f0f[_0x362a('0x50')](_0x1d8fe3)&&!_0x4c3f0f[_0x362a('0x19')](_0x1d8fe3)&&(_0x1d8fe3['nextSibling']||_0x3f255a[_0x362a('0xec')]?_0x4ad63c&&_0x4ad63c['parent']==_0x1d8fe3||(_0x4ad63c=_0x1d8fe3,_0x308272(_0x3b5efe[_0x362a('0x42')]),_0x37a388=!0x0):_0xb3c901=_0xb3c901||_0x3b5efe[_0x362a('0x42')]));}function _0x308272(_0x2d7b08){const _0x18e447=_0x458427['writer'][_0x362a('0x9e')](_0x362a('0x35'),{'class':'ck-suggestion-marker-'+_0x2016ac}),_0x61b5db=_0x458427['mapper'][_0x362a('0xaa')](_0x2d7b08);_0x5308bb[_0x362a('0xb9')][_0x362a('0x63')]&&_0x458427[_0x362a('0xa')][_0x362a('0x83')](_0x362a('0xb2')+_0x2016ac+_0x362a('0xdc'),_0x18e447),_0x19a287[_0x362a('0x1b')]==_0x5308bb&&_0x458427[_0x362a('0xa')][_0x362a('0x83')](_0x362a('0x20'),_0x18e447),_0x458427['writer'][_0x362a('0x104')](_0x61b5db,_0x18e447),_0x458427[_0x362a('0xf3')][_0x362a('0x4c')](_0x18e447,_0x72bca2[_0x362a('0xff')]);}_0x44de9f||_0x37a388||!_0xb3c901||_0x308272(_0xb3c901);};}(this[_0x362a('0x14')]),{'priority':_0x362a('0x1d')}),this[_0x362a('0x14')]['editing'][_0x362a('0x73')]['on'](_0x362a('0x23'),(_0x5e0a16,_0xf8797b,_0x284459)=>{const _0x5f0edb=_0x284459[_0x362a('0xf3')][_0x362a('0x60')](_0xf8797b[_0x362a('0xff')]);if(_0x5f0edb)for(const _0x3aaece of _0x5f0edb)(_0x3aaece[_0x362a('0x5d')](_0x362a('0x2e'))||_0x3aaece['hasClass'](_0x362a('0x29')))&&(_0x284459[_0x362a('0xf3')][_0x362a('0x7d')](_0x3aaece,_0xf8797b['markerName']),_0x284459[_0x362a('0xa')][_0x362a('0xcb')](_0x3aaece));},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on'](_0x362a('0x28'),(_0xbf292c,_0x17f979,_0x52fdcc)=>{const _0x385fa8=_0x17f979[_0x362a('0xff')][_0x362a('0x4f')](':')[0x1],_0x3e6b0c=this[_0x362a('0x4a')](_0x385fa8);if(!_0x3e6b0c)return null;const _0x314524=_0x362a('0xf7')==_0x3e6b0c[_0x362a('0x48')]?_0x362a('0x4f'):_0x362a('0xed');if(_0x52fdcc['consumable']['test'](_0x17f979[_0x362a('0x15')],_0xbf292c[_0x362a('0x74')]))for(const _0x42ffa6 of _0x17f979[_0x362a('0x15')][_0x362a('0xe1')]()){if(!_0x42ffa6['is']('element','softBreak'))continue;const _0x576e5d=_0x52fdcc[_0x362a('0xa')][_0x362a('0x9e')](_0x362a('0x35'),{'class':_0x362a('0xb2')+_0x314524}),_0x399d41=_0x52fdcc[_0x362a('0xf3')][_0x362a('0xaa')](this[_0x362a('0x14')]['model']['createPositionBefore'](_0x42ffa6));_0x3e6b0c[_0x362a('0xb9')][_0x362a('0x63')]&&_0x52fdcc[_0x362a('0xa')][_0x362a('0x83')](_0x362a('0xb2')+_0x314524+_0x362a('0xdc'),_0x576e5d),this[_0x362a('0x1b')]==_0x3e6b0c&&_0x52fdcc[_0x362a('0xa')][_0x362a('0x83')]('ck-suggestion-marker--active',_0x576e5d),_0x52fdcc[_0x362a('0xa')][_0x362a('0x104')](_0x399d41,_0x576e5d),_0x52fdcc[_0x362a('0xf3')]['bindElementToMarker'](_0x576e5d,_0x17f979['markerName']);}},{'priority':_0x362a('0x1d')}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xad')]({'view':_0x362a('0xd6'),'model':_0x2e656c=>'revision-comment:'+_0x2e656c,'converterPriority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xad')]({'view':'suggestion','model':_0x56bf3d=>'revision-suggestion:'+_0x56bf3d,'converterPriority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x93'))[_0x362a('0x41')]({'model':_0x362a('0xd5'),'view':_0x144fbf=>'suggestion:'+_0x144fbf,'converterPriority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')]('editingDowncast')[_0x362a('0xf4')]({'model':_0x362a('0xd5'),'view':_0x4df413=>{const _0x26db38=_0x4df413[_0x362a('0xff')][_0x362a('0x4f')](':')[0x1];return _0x362a('0x1')!=_0x26db38&&_0x362a('0x7f')!=_0x26db38?null:{'classes':[_0x362a('0xa0'),'ck-suggestion-preview-marker-'+_0x26db38]};}}),this['editor'][_0x362a('0xae')][_0x362a('0x73')]['on'](_0x362a('0x6c'),Z(this[_0x362a('0x14')],_0x362a('0xed')),{'priority':_0x362a('0x1d')}),this[_0x362a('0x14')][_0x362a('0xae')]['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this[_0x362a('0x14')],_0x362a('0x4f')),{'priority':_0x362a('0x1d')}),this['editor'][_0x362a('0xae')][_0x362a('0x73')]['on'](_0x362a('0xfa'),(_0x3a0a26,_0x19958a,_0x170e7d)=>{const _0x2f5d62=_0x170e7d[_0x362a('0xf3')][_0x362a('0x60')](_0x19958a[_0x362a('0xff')]);if(_0x2f5d62)for(const _0xef4195 of _0x2f5d62)_0xef4195['is'](_0x362a('0x8b'))&&(_0x170e7d[_0x362a('0xf3')][_0x362a('0x7d')](_0xef4195,_0x19958a[_0x362a('0xff')]),_0x170e7d['writer'][_0x362a('0xcb')](_0xef4195));},{'priority':_0x362a('0x1d')});}[_0x362a('0x4a')](_0x412a50){return this[_0x362a('0x84')][_0x362a('0x89')](_0x412a50);}['_getViewForChange'](_0x16861e){this['_changeView']&&this[_0x362a('0x8a')][_0x362a('0xc3')](),this['_changeView']=new _0x4612b3(this[_0x362a('0x14')]['locale'],_0x16861e);const _0x51d776=this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2f')][_0x362a('0x89')](_0x362a('0x44')+_0x16861e['id']);return this[_0x362a('0x8a')][_0x362a('0x2d')]=()=>_0x15f201(this['editor']['editing'],_0x51d776),this['_changeView'];}['_initInteractions'](){this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0xc8')]['selection'][_0x362a('0x17')]('revision'),this['on']('change:activeView',(_0x2884b2,_0x3df3bd,_0x70dea6,_0x893702)=>{_0x893702&&this[_0x362a('0x66')][_0x362a('0xcb')](_0x893702),_0x70dea6&&(this[_0x362a('0x66')][_0x362a('0xf7')]({'view':_0x70dea6,'stackId':_0x362a('0xb4'),'position':{'target':_0x70dea6[_0x362a('0x2d')]}}),this[_0x362a('0x66')][_0x362a('0xf')](_0x362a('0xb4')));}),this['on'](_0x362a('0x16'),(_0x2bfb38,_0x508a3b,_0x34cddd,_0x251637)=>{this[_0x362a('0xcf')]=_0x34cddd?this['_getViewForChange'](_0x34cddd):null,this['editor'][_0x362a('0xe7')][_0x362a('0x61')](()=>{const _0x32a9ac=this[_0x362a('0x14')]['editing'];_0x251637&&_0x32a9ac[_0x362a('0x40')](_0x362a('0x44')+_0x251637['id']),_0x34cddd&&_0x32a9ac[_0x362a('0x40')]('revision:'+_0x34cddd['id']);});}),this['listenTo'](this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')],_0x362a('0x80'),(_0xef69f5,_0xa556ee)=>{if(this['activeChange'])return;const _0x534174=this[_0x362a('0xd8')](_0xa556ee[_0x362a('0x78')]),_0x5d2a7f=this['_changeIdToChange'][_0x362a('0x89')](_0x534174);this[_0x362a('0xcf')]=_0x5d2a7f?this[_0x362a('0x82')](_0x5d2a7f):null;}),this[_0x362a('0xde')](this[_0x362a('0x14')]['editing'][_0x362a('0x8f')]['document'],_0x362a('0x11'),(_0x4fa79d,_0x187585)=>{const _0x415605=this[_0x362a('0xd8')](_0x187585[_0x362a('0x78')]),_0x48d16d=this[_0x362a('0x84')]['get'](_0x415605);this['activeChange']=_0x48d16d||null;});}['_findChangeIdFromDomTarget'](_0x5048c8){do{const _0x5e998c=_0x5048c8['getAttribute'](_0x362a('0xe0'));if(_0x5e998c)return _0x5e998c;_0x5048c8=_0x5048c8['parent'];}while(_0x5048c8);return null;}[_0x362a('0xcd')](){this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x61')](_0x3b8ea6=>{for(const _0x25a9a3 of this[_0x362a('0x14')]['model'][_0x362a('0x2f')])_0x3b8ea6['removeMarker'](_0x25a9a3);});}}function Z(_0x108a50,_0x32f8a5){return(_0x3dce11,_0x15f4c8,_0x34e76c)=>{if(!_0x34e76c[_0x362a('0xb6')][_0x362a('0x51')](_0x15f4c8[_0x362a('0x15')],_0x3dce11[_0x362a('0x74')]))return;const _0x1a3638=_0x15f4c8[_0x362a('0x15')][_0x362a('0x76')](),_0x494b4a=_0x15f4c8['markerRange']['start'],_0x2579a9=_0x108a50[_0x362a('0xe7')]['schema'];let _0x34632f=null,_0x4532e0=null,_0x36a77f=!0x1,_0x2277fa=!0x1;for(const _0x5af600 of _0x1a3638){const _0x26581e=_0x5af600[_0x362a('0x65')];_0x36a77f=_0x36a77f||_0x2579a9['isContent'](_0x26581e);const _0x4f1064=_0x34e76c[_0x362a('0xf3')][_0x362a('0x62')](_0x26581e);if(_0x4f1064&&_0x4f1064['getCustomProperty'](_0x362a('0x18')))return;_0x362a('0xc4')==_0x5af600[_0x362a('0x48')]&&(_0x2579a9[_0x362a('0x50')](_0x26581e)&&!_0x2579a9[_0x362a('0x19')](_0x26581e)&&(_0x26581e[_0x362a('0x0')]||_0x494b4a[_0x362a('0xec')]?_0x34632f&&_0x34632f[_0x362a('0x1f')]==_0x26581e||(_0x34632f=_0x26581e,_0x4078f6(_0x5af600[_0x362a('0x42')]),_0x2277fa=!0x0):_0x4532e0=_0x4532e0||_0x5af600['previousPosition']));}function _0x4078f6(_0x274f69){const _0x5b80ec=_0x34e76c[_0x362a('0xf3')][_0x362a('0xaa')](_0x274f69),_0x2124dd=_0x34e76c[_0x362a('0xa')][_0x362a('0x9e')](_0x362a('0x35'),{'class':_0x362a('0x59')+_0x32f8a5});_0x34e76c['writer'][_0x362a('0x104')](_0x5b80ec,_0x2124dd),_0x34e76c[_0x362a('0xf3')][_0x362a('0x4c')](_0x2124dd,_0x15f4c8[_0x362a('0xff')]);}_0x36a77f||_0x2277fa||!_0x4532e0||_0x4078f6(_0x4532e0);};}_0x27e8c5(d,_0x9f85d9);class tt extends _0x3913a7{constructor(_0x3e5781){super(_0x3e5781);const _0x52c5aa=_0x3e5781[_0x362a('0x26')]['get'](d);this[_0x362a('0x4d')](_0x3e5781,_0x362a('0x46')),this[_0x362a('0xee')]('readOnlyMode'),this[_0x362a('0xde')](_0x52c5aa,_0x362a('0x6b'),()=>this[_0x362a('0x9f')]()),this['listenTo'](_0x52c5aa,_0x362a('0x45'),()=>this['refresh']());}['execute'](){const _0x41b6c0=this['editor'],_0x246e08=_0x41b6c0[_0x362a('0x26')][_0x362a('0x89')](d),_0x4cc616=_0x246e08['isReady']?_0x246e08[_0x362a('0xd1')][_0x362a('0xbd')]:null;_0x41b6c0[_0x362a('0xf2')]['get'](_0x362a('0xa3'))['restoreRevisionCallback'](_0x4cc616);}[_0x362a('0x9f')](){const {isReady:_0x48be33,isEnabled:_0x577dac}=this[_0x362a('0x14')][_0x362a('0x26')][_0x362a('0x89')](d);this[_0x362a('0xac')]=_0x48be33&&_0x577dac;}}class et extends _0x3913a7{constructor(_0x11bd73,{direction:_0x29e461}){super(_0x11bd73);const _0x3194b4=_0x11bd73[_0x362a('0x26')][_0x362a('0x89')](d);this[_0x362a('0x4d')](_0x11bd73,_0x362a('0x46')),this[_0x362a('0xee')](_0x362a('0x9')),this[_0x362a('0x5')]=_0x362a('0xe6')===_0x29e461?0x1:-0x1,this[_0x362a('0xde')](_0x3194b4,_0x362a('0x6b'),()=>this[_0x362a('0x9f')]()),this['listenTo'](_0x3194b4,_0x362a('0x45'),()=>this[_0x362a('0x9f')]());}['execute'](){const _0x3f0441=this[_0x362a('0x14')],_0x1ff626=_0x3f0441[_0x362a('0x26')]['get'](d),{isNavigationMode:_0x46394a,currentChangeNumber:_0x11a256}=_0x1ff626;_0x1ff626[_0x362a('0x1b')]=_0x46394a?_0x1ff626[_0x362a('0xd1')][_0x362a('0xc9')][_0x362a('0x89')](_0x11a256+this[_0x362a('0x5')]):_0x1ff626[_0x362a('0xd1')][_0x362a('0xc9')][_0x362a('0x98')];const _0x48803a=_0x3f0441[_0x362a('0xe7')][_0x362a('0x2f')][_0x362a('0x89')](_0x362a('0x44')+_0x1ff626[_0x362a('0x1b')]['id']),_0x488e6d=_0x15f201(_0x3f0441[_0x362a('0xae')],_0x48803a);_0x194198({'target':_0x488e6d,'viewportOffset':0x28});}[_0x362a('0x9f')](){const {isNavigationMode:_0xee3da6,currentChangeNumber:_0x393c88,numberOfChanges:_0x2edc56,isReady:_0x185851,isEnabled:_0x120dd4}=this[_0x362a('0x14')][_0x362a('0x26')][_0x362a('0x89')](d);this[_0x362a('0xac')]=!!(_0x120dd4&&_0x185851&&_0x2edc56)&&(!_0xee3da6||(0x1===this[_0x362a('0x5')]?_0x393c88<_0x2edc56-0x1:_0x393c88>0x0));}}
|
|
23
|
+
const _0x2610=['revisionHistoryLabel','change:activeChange','suggestion','currentChangeNumber','editingDowncast','isAtEnd','getRevision','revision','getRoot','markersStart','forward','vid_end','end','isContent','change:isReadOnly','removeMarker:revision','toData','element','change:isEnabled','plugins','_setDistance','deletion','isRemoved','ck-suggestion-marker--active','markers','deletions','_changeView','getItems','_setConversion','<p></p>','data-revision-','push','distance','editor','index','getAttributes','markerToHighlight','createAttributeElement','pairId','processor','addRevisionData','nextSibling','parse','getWalker','execute','refresh','from','adapter','elementToAttribute','get','_setData','elementStart','_revisions','hasClass','forEach','numberOfChanges','nodeAfter','backward','activeChange','ck-suggestion-preview-marker','addClass','toViewElement','low','consume','merge','pluginName','toViewRange','isEqual','enqueueChange','markerToData','newRevisionId','target','getRevisionData','wrap','side','getIndex','all','mouseover','view','ck-editor__editable__overlay','includes','mousedown','object','suggestion:','_getViewForChange','addMarker:revision','_removeRevisionMarkers','test','remove','-new','isSuggestion','ck-suggestion-preview-marker-','item','createRevision','showStack','_makeModelFromViewString','isIncorrect','length','_cleanUp','isLimit','roots','loadRevisionData','abs','showNextChange','_markSuggestions','downcastDispatcher','addMarker:revision-suggestion:insertion','next','vid_start','_balloon','_joinTapes','stopListening','_update','change:numberOfChanges','_getRevisionsRange','add','data','enableReadOnlyMode','insertion','endIndex','softBreak','start','repository','type','createUIElement','set','diff','string','revision-viewer','revision:','POSITIVE_INFINITY','createRangeIn','viewItem','revisionHistory','shift','conversion','data-change-id','isRemoveSuggestion','getRootNames','consumable','markerName','isAddSuggestion','markersEnd','_initInteractions','done','_makeTape','getAttribute','listenTo','span','has','maxOffset','activeView','unshift','pop','_removeMissingPairs','diffData','_makeModelFromTape','attributes','previousPosition','code','editing','dataToMarker','filter','split','_processTape','destroy','high','authors','comment','RevisionViewer','_appendChild','_markMismatchedRemovedTags','revision-end','parent','createPositionFromPath','changes','toModel','observeMarkers','_data','addHighlight','commands','checkAttribute','readOnlyMode','elementEnd','removeMarker:revision-suggestion','isAfter','change:activeView','toViewPosition','isAdded','startsWith','stop','modelRange','level','markerRange','_getChangeFromId','dataDowncast','model','range','mapper','revision-suggestion','for','getCustomProperty','nextPosition','oldRevisionId','map','document','_cleanMarkers','delete','removeClass','uiElement','_removeUnsupportedChanges','useFillerType','collaboration.channelId','clearForceDisabled','then','highest','vid','_getViewObj','_getDiff','_changeIdToChange','compare','concat','isCollapsed','insert','ck-suggestion-marker-','config','restoreRevisionCallback','isReady','isBlock','userId','WidgetToolbarRepository','isNavigationMode','clear','change:isReady','hasAttribute','init','createRange','isEnabled','resolve','setAttribute','_step','_refreshStartEndIndex','children','_threeWayMerge','_target','splice','keys','showPreviousChange','_markMarkers','upcast','writer','reconvertMarker','bind','RevisionsRepository','change','schema','startIndex','text','ck-suggestion-marker-merge','revision-suggestion:','_markInsertions','insertions','_findChangeIdFromDomTarget','name'];(function(_0x31d8e1,_0x26107a){const _0x524bab=function(_0x5a8a2e){while(--_0x5a8a2e){_0x31d8e1['push'](_0x31d8e1['shift']());}};_0x524bab(++_0x26107a);}(_0x2610,0x135));const _0x524b=function(_0x31d8e1,_0x26107a){_0x31d8e1=_0x31d8e1-0x0;let _0x524bab=_0x2610[_0x31d8e1];return _0x524bab;};import{Plugin as _0x229f8,Command as _0x4709cd}from'ckeditor5/src/core';import{ObservableMixin as _0x41e455,mix as _0xdcc6b,scrollViewportToShowTarget as _0xce6de3}from'ckeditor5/src/utils';import{ContextualBalloon as _0x267e0f}from'ckeditor5/src/ui';import{DocumentFragment as _0x39d827,Element as _0xa0cd73,Text as _0x5ee507,ViewDocumentFragment as _0x1d31c1,ViewText as _0xf1449d,ViewElement as _0x4320d4,ViewContainerElement as _0x4f6aaa,ViewAttributeElement as _0x51f0b4,ViewEmptyElement as _0x447f01,ViewRawElement as _0x365df8,ViewUIElement as _0x2ebab8}from'ckeditor5/src/engine';import{Users as _0x22e1e5,getMarkerDomElement as _0x357e15}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e30ed from'./ui/revisionviewer/changedetailsview';import _0x51bcfc from'./revisionsrepository';import _0x17521b from'./changeitem';import _0x570a28 from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x4f6aaa,'a':_0x51f0b4,'e':_0x447f01,'r':_0x365df8,'u':_0x2ebab8};export default class d extends _0x229f8{static get[_0x524b('0x14')](){return _0x524b('0x7c');}static get['requires'](){return[_0x22e1e5,_0x267e0f,_0x51bcfc];}constructor(..._0x3852ca){super(..._0x3852ca),this[_0x524b('0x4d')]=this[_0x524b('0xfc')]['plugins'][_0x524b('0x4')](_0x524b('0xd0')),this['set'](_0x524b('0xd'),null),this[_0x524b('0x50')](_0x524b('0x6a'),null),this[_0x524b('0x50')](_0x524b('0x51'),null),this[_0x524b('0x50')]('isReady',!0x1),this[_0x524b('0x50')]('isEnabled',!0x0),this['on'](_0x524b('0xed'),(_0x5acd8b,_0x32bcf9,_0x5e22ac)=>{this['activeChange']=null,this['activeView']=null,this['editor'][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xd1')](_0x33db62=>{for(const _0x5c0817 of this['editor']['editing'][_0x524b('0x21')][_0x524b('0xa0')][_0x524b('0x37')])_0x5e22ac?_0x33db62[_0x524b('0xa3')](_0x524b('0x22'),_0x5c0817):_0x33db62[_0x524b('0xf')]('ck-editor__editable__overlay',_0x5c0817);});}),this[_0x524b('0xcf')](_0x524b('0xba'))['to'](this,_0x524b('0xd'),_0x52ea10=>null!==_0x52ea10),this[_0x524b('0xcf')](_0x524b('0xde'))['to'](this,_0x524b('0xb6'),this,_0x524b('0x51'),this,_0x524b('0xd'),(_0x4f170a,_0x7cc9c0,_0x47a10f)=>_0x4f170a&&_0x47a10f?_0x7cc9c0[_0x524b('0x82')][_0x524b('0x1e')](_0x47a10f):0x0),this['bind'](_0x524b('0xa'))['to'](this,'isReady',this,_0x524b('0x51'),(_0x46934f,_0x3781b7)=>_0x46934f?_0x3781b7[_0x524b('0x82')][_0x524b('0x34')]:0x0),this[_0x524b('0xf5')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this[_0x524b('0xfc')][_0x524b('0xee')][_0x524b('0x4')](_0x267e0f);}[_0x524b('0xbe')](){const _0x2e5042=this[_0x524b('0xfc')],_0x18f3b6=new et(_0x2e5042,{'direction':_0x524b('0xc')}),_0x761370=new et(_0x2e5042,{'direction':_0x524b('0xe5')});_0x2e5042['commands'][_0x524b('0x46')](_0x524b('0xca'),_0x18f3b6),_0x2e5042[_0x524b('0x87')][_0x524b('0x46')](_0x524b('0x3a'),_0x761370),_0x2e5042[_0x524b('0x87')]['add']('restoreRevision',new tt(_0x2e5042)),this['on'](_0x524b('0x44'),()=>{_0x18f3b6['refresh'](),_0x761370[_0x524b('0x0')]();}),this[_0x524b('0xf7')](),this[_0x524b('0x62')](),_0x2e5042[_0x524b('0x48')](_0x524b('0x53')),_0x2e5042[_0x524b('0xee')][_0x524b('0x68')]('WidgetToolbarRepository')&&_0x2e5042[_0x524b('0xee')]['get'](_0x524b('0xb9'))['forceDisabled'](_0x524b('0x53'));}async[_0x524b('0x1b')](_0x4eaedb){await this[_0x524b('0x38')](_0x4eaedb);const _0x11156d={};for(const _0x2056ef in _0x4eaedb['diffData']){const _0x192121=this[_0x524b('0x29')](JSON[_0x524b('0x105')](_0x4eaedb[_0x524b('0x6e')][_0x2056ef][_0x524b('0xd8')])),_0x37359a=this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')],_0x1c161b=new _0x1d31c1(_0x37359a,_0x192121[_0x524b('0x9f')](_0x461435=>this[_0x524b('0xac')](_0x461435)));this[_0x524b('0xfc')][_0x524b('0x47')]['processor'][_0x524b('0xa6')]('marked'),_0x11156d[_0x2056ef]=this[_0x524b('0xfc')][_0x524b('0x47')][_0x524b('0x102')][_0x524b('0xeb')](_0x1c161b),this[_0x524b('0xfc')]['data'][_0x524b('0x102')][_0x524b('0xa6')]('default');}return _0x11156d;}[_0x524b('0x29')](_0x364eea){return(_0x364eea=_0x364eea[_0x524b('0x75')](_0x4fbfe2=>!_0x4fbfe2[_0x524b('0xda')]||'revision-start'!==_0x4fbfe2['name']&&_0x524b('0x7f')!==_0x4fbfe2[_0x524b('0xda')]))['forEach'](_0x59bdc2=>{_0x524b('0x52')!=typeof _0x59bdc2&&(_0x59bdc2['children']=this[_0x524b('0x29')](_0x59bdc2[_0x524b('0xc5')]),_0x59bdc2['attributes']=_0x59bdc2[_0x524b('0x70')][_0x524b('0x75')](_0x220e12=>!_0x220e12[0x0][_0x524b('0x90')](_0x524b('0xf9'))));}),_0x364eea;}[_0x524b('0xaf')](_0x478064,_0x42909a,_0x518e68=!0x1){if(!this[_0x524b('0xc0')])return;const _0x43c67b=this[_0x524b('0x51')],_0x36ed41=this[_0x524b('0x4d')],_0x7bf641=_0x524b('0x52')==typeof _0x478064?_0x36ed41[_0x524b('0xe1')](_0x478064):_0x478064,_0x56ffea=_0x524b('0x52')==typeof _0x42909a?_0x36ed41['getRevision'](_0x42909a):_0x42909a,_0x29df07=_0x7bf641['id'],_0x1fc1ce=_0x56ffea?_0x56ffea['id']:null;if(!_0x518e68&&this[_0x524b('0x51')]&&this['diff'][_0x524b('0x19')]===_0x29df07&&this[_0x524b('0x51')][_0x524b('0x9e')]===_0x1fc1ce)return Promise['resolve']();this[_0x524b('0xb6')]=!0x1,this[_0x524b('0x6a')]=null,this[_0x524b('0xd')]=null,this[_0x524b('0x51')]=new _0x570a28(_0x29df07,_0x1fc1ce);const _0x5a3e04=this[_0x524b('0x45')](_0x7bf641,_0x56ffea,!0x0)['map'](_0x123242=>this[_0x524b('0x38')](_0x123242));return _0x5a3e04['push'](new Promise(_0xa1ad79=>{setTimeout(_0xa1ad79,0x14);})),Promise[_0x524b('0x1f')](_0x5a3e04)[_0x524b('0xa9')](()=>{if(!this[_0x524b('0xc0')])return;this[_0x524b('0x35')]();const _0x215c46=this[_0x524b('0xad')](_0x29df07,_0x1fc1ce);this[_0x524b('0x51')][_0x524b('0x5')](_0x215c46);for(const _0x639f3e of this[_0x524b('0x51')][_0x524b('0x82')])this[_0x524b('0xae')][_0x524b('0x50')](_0x639f3e['id'],_0x639f3e);this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0x17')]({'isUndoable':!0x1},_0x449bb6=>{for(const _0x2f6fc2 of Object[_0x524b('0xc9')](_0x215c46['model'])){const _0x47fe27=this[_0x524b('0xfc')][_0x524b('0x97')]['document'][_0x524b('0xe3')](_0x2f6fc2);_0x449bb6[_0x524b('0x2b')](_0x449bb6['createRangeIn'](_0x47fe27)),_0x449bb6[_0x524b('0xb2')](_0x215c46[_0x524b('0x97')][_0x2f6fc2],_0x47fe27,0x0);}}),this[_0x524b('0xb6')]=!0x0;})['catch'](_0x150e60=>{console['error'](_0x150e60),this['_cleanUp'](),_0x43c67b?this[_0x524b('0x51')]=_0x43c67b:this[_0x524b('0xfc')]['setData'](_0x524b('0xf8')),this[_0x524b('0xb6')]=!0x0;});}['destroy'](){this['activeView']=null,this[_0x524b('0xf5')]&&this[_0x524b('0xf5')][_0x524b('0x78')]();}[_0x524b('0x103')](_0x191774,_0x48a0d1){const _0xd9608a=this[_0x524b('0x4d')][_0x524b('0x30')](_0x191774);return _0xd9608a['on'](_0x524b('0x43'),(_0x53f36f,_0x52b6f0,_0x5155f4)=>_0x48a0d1(_0x52b6f0,_0x5155f4,_0xd9608a)),this[_0x524b('0x4d')]['addRevision'](_0xd9608a),_0xd9608a;}['loadRevisionData'](_0x499989){if(!_0x499989||_0x499989[_0x524b('0x6e')])return Promise[_0x524b('0xc1')]();{const _0x279321=this[_0x524b('0xfc')][_0x524b('0xb4')][_0x524b('0x4')](_0x524b('0xa7'));return this[_0x524b('0x2')][_0x524b('0xe1')]({'channelId':_0x279321,'revisionId':_0x499989['id']})[_0x524b('0xa9')](_0x215d74=>{_0x499989[_0x524b('0x43')]({'diffData':_0x215d74[_0x524b('0x6e')]},!0x0);});}}[_0x524b('0x35')](){this[_0x524b('0xd')]=null,this[_0x524b('0xa1')](),this[_0x524b('0xf5')]&&this[_0x524b('0xf5')]['destroy'](),this['_changeView']=null,this[_0x524b('0xae')][_0x524b('0xbb')]();}[_0x524b('0x64')](_0x201dbb){const _0x2f9492=Array[_0x524b('0x1')](_0x201dbb[_0x524b('0xf3')])[_0x524b('0x75')](([_0x35513a,_0x2364dd])=>_0x35513a['startsWith'](_0x524b('0x54'))&&!_0x2364dd[_0x524b('0xb1')]),_0x33c4d7=Array[_0x524b('0x1')](this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0x56')](_0x201dbb)[_0x524b('0x106')]({'singleCharacters':!0x0}));if(0x0!=_0x2f9492[_0x524b('0x34')])for(const _0x3e48df of _0x33c4d7){const [_0x257b91,_0x1a2f78]=_0x2f9492[0x0],[,_0x155931,_0x31a8df]=_0x257b91[_0x524b('0x76')](':');if(_0x1a2f78[_0x524b('0xe7')][_0x524b('0x16')](_0x3e48df[_0x524b('0x9d')])&&_0x2f9492[_0x524b('0x59')](),(_0x3e48df[_0x524b('0x71')][_0x524b('0x16')](_0x1a2f78[_0x524b('0x4c')])||_0x3e48df[_0x524b('0x71')][_0x524b('0x8c')](_0x1a2f78[_0x524b('0x4c')]))&&(_0x524b('0x49')==_0x155931?_0x3e48df['isAdded']={'userId':_0x31a8df}:_0x524b('0xf0')==_0x155931&&(_0x3e48df[_0x524b('0xf1')]={'userId':_0x31a8df})),0x0==_0x2f9492[_0x524b('0x34')])break;}return _0x33c4d7;}[_0x524b('0xc4')](_0x276d7c){const _0x47f245=new Map();for(let _0x474cea=0x0;_0x474cea<_0x276d7c[_0x524b('0x34')];_0x474cea++)'text'===_0x276d7c[_0x474cea][_0x524b('0x4e')]?(_0x276d7c[_0x474cea]['item'][_0x524b('0xd3')]=_0x474cea,_0x276d7c[_0x474cea][_0x524b('0x2f')][_0x524b('0x4a')]=_0x474cea):(_0x524b('0x6')===_0x276d7c[_0x474cea]['type']?_0x276d7c[_0x474cea][_0x524b('0x2f')][_0x524b('0xd3')]=_0x474cea:_0x524b('0x8a')===_0x276d7c[_0x474cea][_0x524b('0x4e')]&&(_0x276d7c[_0x474cea]['item'][_0x524b('0x4a')]=_0x474cea),_0x47f245[_0x524b('0x50')](_0x276d7c[_0x474cea]['id'],_0x474cea));for(const _0xd4ea51 of _0x47f245['values']())_0x524b('0x6')===_0x276d7c[_0xd4ea51][_0x524b('0x4e')]?_0x276d7c[_0xd4ea51]['item'][_0x524b('0x4a')]=_0x47f245[_0x524b('0x4')](_0x276d7c[_0xd4ea51][_0x524b('0x101')]):_0x524b('0x8a')===_0x276d7c[_0xd4ea51][_0x524b('0x4e')]&&(_0x276d7c[_0xd4ea51]['item'][_0x524b('0xd3')]=_0x47f245[_0x524b('0x4')](_0x276d7c[_0xd4ea51][_0x524b('0x101')]));}[_0x524b('0x77')](_0x42a7ab){for(let _0x158187=0x0;_0x158187<_0x42a7ab[_0x524b('0x34')];_0x158187++){if(_0x524b('0x6')===_0x42a7ab[_0x158187][_0x524b('0x4e')])_0x42a7ab[_0x158187]['item'][_0x524b('0xd3')]=_0x158187;else{if(_0x524b('0x8a')===_0x42a7ab[_0x158187][_0x524b('0x4e')]){_0x42a7ab[_0x158187][_0x524b('0x2f')][_0x524b('0x4a')]=_0x158187;const _0xa12523=_0x42a7ab[_0x158187][_0x524b('0x2f')]['startIndex'];_0x42a7ab[_0xa12523][_0x524b('0x101')]=_0x42a7ab[_0x158187]['id'],_0x42a7ab[_0x158187][_0x524b('0x101')]=_0x42a7ab[_0xa12523]['id'];}else _0x42a7ab[_0x158187][_0x524b('0x2f')][_0x524b('0xd3')]=_0x158187,_0x42a7ab[_0x158187][_0x524b('0x2f')][_0x524b('0x4a')]=_0x158187,_0x42a7ab[_0x158187][_0x524b('0x101')]=null;}_0x42a7ab[_0x158187][_0x524b('0xe4')]||(_0x42a7ab[_0x158187]['markersStart']=[],_0x42a7ab[_0x158187][_0x524b('0x61')]=[]);}}[_0x524b('0xd7')](_0x510ff8,_0x32238b){const _0x4f8851=_0x510ff8[_0x524b('0x75')](_0x4663a5=>!_0x4663a5[_0x524b('0x8f')]);for(let _0x3eb299=0x0;_0x3eb299<_0x32238b[_0x524b('0x34')];_0x3eb299++)_0x32238b[_0x3eb299][_0x524b('0x8f')]&&(_0x4f8851[_0x3eb299][_0x524b('0x8f')]=_0x32238b[_0x3eb299][_0x524b('0x8f')]);}[_0x524b('0x32')](_0x4804ea){const _0x2d2914=JSON['parse'](_0x4804ea),_0x588925=this['editor'][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')],_0x3a5d40=new _0x1d31c1(_0x588925,_0x2d2914['map'](_0x2b8f08=>this['_getViewObj'](_0x2b8f08)));return this[_0x524b('0xfc')][_0x524b('0x47')][_0x524b('0x83')](_0x3a5d40);}['_getViewObj'](_0x53b16e){const _0x439486=this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')];if(_0x524b('0x52')==typeof _0x53b16e)return new _0xf1449d(_0x439486,_0x53b16e);{const _0x18c14d=_0x53b16e['children']['map'](_0x1b7aea=>this[_0x524b('0xac')](_0x1b7aea));return new(Y[_0x53b16e[(_0x524b('0x4e'))]]||_0x4320d4)(_0x439486,_0x53b16e['name'],_0x53b16e[_0x524b('0x70')],_0x18c14d);}}[_0x524b('0xad')](_0x3d472d,_0x2da3b4=null){const _0x71347c=this[_0x524b('0x4d')][_0x524b('0xe1')](_0x3d472d),_0x143b5a=_0x2da3b4?this['repository'][_0x524b('0xe1')](_0x2da3b4):null,_0xa91797=this['_getRevisionsRange'](_0x71347c,_0x143b5a),_0x2bf803=_0xa91797[_0xa91797['length']-0x1],_0x59ae28=new Map();for(const _0x4eb7cc of _0xa91797){_0x4eb7cc[_0x524b('0x97')]={};for(const _0x57579b of _0x4eb7cc[_0x524b('0x7a')])_0x59ae28[_0x524b('0x50')](_0x57579b['id'],_0x57579b);for(const _0x1cd57e of this[_0x524b('0xfc')][_0x524b('0x97')]['document']['getRootNames']())_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e]||(_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e]={'insertions':'[]','deletions':'[]'}),_0x4eb7cc[_0x524b('0x97')][_0x1cd57e]={'insertions':this[_0x524b('0x32')](_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e][_0x524b('0xd8')]),'deletions':this[_0x524b('0x32')](_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e][_0x524b('0xf4')])};}const _0x390be1={'model':{},'changes':[]};for(const _0x1f3c06 of this[_0x524b('0xfc')]['model'][_0x524b('0xa0')][_0x524b('0x5d')]()){let _0x573457=null,_0x582d60=0x0;const _0x1c50ef=new Map(Array[_0x524b('0x1')](_0x71347c[_0x524b('0x97')][_0x1f3c06]['insertions'][_0x524b('0xf3')])[_0x524b('0x75')](([_0x1cb601])=>!_0x1cb601[_0x524b('0x90')](_0x524b('0x54'))));let _0xf558c2=0x0;for(const _0x534dd5 of _0xa91797){const _0x5f2c03=this['_makeTape'](_0x534dd5[_0x524b('0x97')][_0x1f3c06][_0x524b('0xd8')]);_0x534dd5==_0x71347c?(_0x573457=_0x5f2c03,_0x582d60=_0x573457[_0x524b('0x34')],_0x573457[_0x524b('0x9')](_0x5a3bcc=>{_0x5a3bcc['id']=_0xf558c2++;}),this[_0x524b('0x77')](_0x573457)):this['_markInsertions'](_0x573457,_0x5f2c03);const _0x365a2d=_0x573457['filter'](_0x5dc210=>!_0x5dc210['isAdded'])['map'](_0x11ad60=>_0x11ad60['id']);let _0x18f817=0x0;const _0x28f608=this[_0x524b('0x64')](_0x534dd5[_0x524b('0x97')][_0x1f3c06][_0x524b('0xf4')]);_0x28f608['forEach'](_0x82e0f3=>{_0x82e0f3[_0x524b('0xf1')]?_0x82e0f3['id']=_0x582d60++:_0x82e0f3['id']=_0x365a2d[_0x18f817++];}),this[_0x524b('0x77')](_0x28f608),this['_setDistance'](_0x573457,_0x524b('0x8f')),this['_setDistance'](_0x28f608,_0x524b('0xf1')),_0x534dd5==_0x71347c&&this[_0x524b('0xcb')](_0x573457,_0x1c50ef),_0x573457=this[_0x524b('0x41')](_0x573457,_0x28f608),this['_refreshStartEndIndex'](_0x573457),this[_0x524b('0xef')](_0x573457,_0x524b('0xf1'));}_0x573457=_0x573457[_0x524b('0x75')](_0x4054c6=>!(_0x4054c6[_0x524b('0x8f')]&&_0x4054c6[_0x524b('0xf1')]));const _0x27eaaa=new Map(_0x2bf803['model'][_0x1f3c06]['deletions'][_0x524b('0xf3')]),_0x43d0eb=new Set(_0x1c50ef[_0x524b('0xc9')]());for(const _0x27b123 of _0x27eaaa[_0x524b('0xc9')]())_0x43d0eb[_0x524b('0xa2')](_0x27b123);this[_0x524b('0x3b')](_0x573457,_0x43d0eb),this['_fixObsoleteTags'](_0x573457),_0x573457=this[_0x524b('0x6d')](_0x573457),_0x573457=this[_0x524b('0x7e')](_0x573457),_0x573457=this[_0x524b('0xa5')](_0x573457);const {root:_0x3fef8e,changes:_0x17ffe8}=this[_0x524b('0x6f')](_0x573457,_0x59ae28);_0x390be1['model'][_0x1f3c06]=_0x3fef8e,_0x390be1[_0x524b('0x82')]=_0x390be1['changes']['concat'](_0x17ffe8);}return _0x390be1;}[_0x524b('0xcb')](_0x2ed317,_0x4243aa){for(let _0x1db100=0x0;_0x1db100<_0x2ed317['length'];_0x1db100++)for(const [_0x3f84df,_0x18558e]of _0x4243aa)_0x18558e[_0x524b('0x4c')][_0x524b('0x16')](_0x2ed317[_0x1db100][_0x524b('0x71')])&&_0x2ed317[_0x1db100]['markersStart'][_0x524b('0xfa')](_0x3f84df),_0x18558e[_0x524b('0xe7')][_0x524b('0x16')](_0x2ed317[_0x1db100][_0x524b('0x9d')])&&_0x2ed317[_0x1db100][_0x524b('0x61')][_0x524b('0xfa')](_0x3f84df);}[_0x524b('0x41')](_0x56dc89,_0x1442e9){let _0x51fe5f=[],_0x13a720=0x0,_0x3b9cb9=0x0;for(;_0x13a720<_0x56dc89[_0x524b('0x34')]||_0x3b9cb9<_0x1442e9[_0x524b('0x34')];){const _0x3b8c6e=_0x56dc89[_0x13a720]||{},_0x3cb0e7=_0x1442e9[_0x3b9cb9]||{};if(_0x3b8c6e['id']==_0x3cb0e7['id'])_0x13a720++,_0x3b9cb9++,_0x51fe5f[_0x524b('0xfa')](_0x3b8c6e);else{if(_0x3cb0e7[_0x524b('0xf1')]&&_0x3b8c6e[_0x524b('0x8f')]){const {commonTape:_0x8436a5,iEnd:_0xf440d9,jEnd:_0xdfe38d}=this[_0x524b('0xc6')](_0x56dc89,_0x13a720,_0x1442e9,_0x3b9cb9);_0x51fe5f=_0x51fe5f[_0x524b('0xb0')](_0x8436a5),_0x13a720=_0xf440d9,_0x3b9cb9=_0xdfe38d;}else _0x3cb0e7['isRemoved']?(_0x3b9cb9++,_0x51fe5f[_0x524b('0xfa')](_0x3cb0e7)):(_0x13a720++,_0x51fe5f[_0x524b('0xfa')](_0x3b8c6e));}}return _0x51fe5f;}[_0x524b('0x3b')](_0x19421a,_0x488f23){const _0xd11a58=[];for(let _0x2f9f56=0x0;_0x2f9f56<_0x19421a['length'];_0x2f9f56++){for(let _0xc175a4=0x0;_0xc175a4<_0x19421a[_0x2f9f56][_0x524b('0xe4')][_0x524b('0x34')];_0xc175a4++){const _0x399ea6=_0x19421a[_0x2f9f56][_0x524b('0xe4')][_0xc175a4];if(!_0x488f23['has'](_0x399ea6))continue;const {group:_0x4f0287,type:_0x172a51,authorId:_0x2f2416}=_0x316cdf(_0x399ea6);_0x524b('0x9a')!=_0x4f0287||_0x524b('0x49')!=_0x172a51&&_0x524b('0xf0')!=_0x172a51||(_0xd11a58[_0x524b('0x6b')]({'type':_0x172a51,'name':_0x399ea6,'userId':_0x2f2416}),_0x19421a[_0x2f9f56]['markersStart'][_0x524b('0xc8')](_0xc175a4,0x1),_0xc175a4--);}_0x1be9a1(_0x19421a[_0x2f9f56]);for(let _0x5531ea=0x0;_0x5531ea<_0x19421a[_0x2f9f56][_0x524b('0x61')][_0x524b('0x34')];_0x5531ea++){const _0x4cb717=_0x19421a[_0x2f9f56][_0x524b('0x61')][_0x5531ea];if(!_0x488f23[_0x524b('0x68')](_0x4cb717))continue;const {group:_0x349dd3,type:_0x51644d}=_0x316cdf(_0x4cb717);if(_0x524b('0x9a')!=_0x349dd3||_0x524b('0x49')!=_0x51644d&&_0x524b('0xf0')!=_0x51644d)continue;_0x19421a[_0x2f9f56]['markersEnd'][_0x524b('0xc8')](_0x5531ea,0x1),_0x5531ea--;const _0x39647e=_0xd11a58['findIndex'](_0x47ccae=>_0x47ccae[_0x524b('0xda')]==_0x4cb717);_0x39647e>-0x1&&_0xd11a58[_0x524b('0xc8')](_0x39647e,0x1);}}function _0x316cdf(_0xd6f560){const _0x575f40=_0xd6f560[_0x524b('0x76')](':');return{'group':_0x575f40[0x0],'type':_0x575f40[0x1],'subType':_0x575f40['length']>=0x5?_0x575f40[0x2]:null,'id':_0x575f40[_0x524b('0x34')]<0x5?_0x575f40[0x2]:_0x575f40[0x3],'authorId':_0x575f40['length']<0x5?_0x575f40[0x3]:_0x575f40[0x4],'markerCount':0x6==_0x575f40[_0x524b('0x34')]?_0x575f40[0x5]:null};}function _0x1be9a1(_0x2a2830){for(let _0x5e653b=0x0;_0x5e653b<_0xd11a58['length'];_0x5e653b++){if(_0x2a2830['isAdded']&&_0x524b('0x49')==_0xd11a58[_0x5e653b][_0x524b('0x4e')])return _0x2a2830[_0x524b('0x60')]=_0xd11a58[_0x5e653b],void delete _0x2a2830[_0x524b('0x8f')];if(!_0x2a2830[_0x524b('0x8f')]&&!_0x2a2830[_0x524b('0xf1')]&&_0x524b('0xf0')==_0xd11a58[_0x5e653b][_0x524b('0x4e')])return void(_0x2a2830[_0x524b('0x5c')]=_0xd11a58[_0x5e653b]);}}}[_0x524b('0xef')](_0x4e8f19,_0x13a24b){let _0x14c2ac=0x0,_0x2ec047=!0x1;const _0x2a3f47=new Map();for(const _0x99f6d8 of _0x4e8f19)_0x99f6d8[_0x13a24b]?_0x2ec047&&(_0x14c2ac++,_0x2ec047=!0x1):(_0x14c2ac++,_0x2ec047=!0x0),_0x2a3f47[_0x524b('0x50')](_0x99f6d8['id'],_0x14c2ac);for(let _0x2dcbb5=0x0;_0x2dcbb5<_0x4e8f19[_0x524b('0x34')];_0x2dcbb5++){if(_0x524b('0xf1')==_0x13a24b&&_0x4e8f19[_0x2dcbb5][_0x524b('0x8f')]||'isAdded'==_0x13a24b&&_0x4e8f19[_0x2dcbb5][_0x524b('0xf1')])continue;if('text'==_0x4e8f19[_0x2dcbb5]['type']){_0x4e8f19[_0x2dcbb5][_0x524b('0xfb')]=0x0;continue;}const _0x3da0eb=_0x2a3f47[_0x524b('0x4')](_0x4e8f19[_0x2dcbb5][_0x524b('0x101')]),_0x47645d=_0x2a3f47[_0x524b('0x4')](_0x4e8f19[_0x2dcbb5]['id']);_0x4e8f19[_0x2dcbb5][_0x524b('0xfb')]=_0x3da0eb-_0x47645d;}}['_getRevisionsRange'](_0x3b3e7c,_0x25ec25,_0x3527ed=!0x1){const _0x2f55fd=[];let _0x3ab190=this[_0x524b('0x4d')]['getIndex'](_0x3b3e7c),_0x367d26=this[_0x524b('0x4d')]['getIndex'](_0x25ec25);for(-0x1==_0x367d26&&(_0x367d26=this[_0x524b('0x4d')][_0x524b('0x7')]['length'],_0x3527ed=!0x1);_0x3ab190<_0x367d26;)_0x2f55fd[_0x524b('0xfa')](this[_0x524b('0x4d')][_0x524b('0xe1')](_0x3ab190)),_0x3ab190++;return _0x3527ed&&_0x2f55fd[_0x524b('0xfa')](this[_0x524b('0x4d')]['getRevision'](_0x3ab190)),_0x2f55fd;}[_0x524b('0xc6')](_0x301b25,_0x30f59f,_0x3dd991,_0x96662c){const _0x1caa44=this['editor']['model'][_0x524b('0xd2')];let _0x4977b8=_0x30f59f;for(;_0x301b25[_0x4977b8]&&_0x301b25[_0x4977b8][_0x524b('0x8f')];)_0x4977b8++;let _0x5db4f0=_0x96662c;for(;_0x3dd991[_0x5db4f0]&&_0x3dd991[_0x5db4f0][_0x524b('0xf1')];)_0x5db4f0++;_0x14de4a(_0x301b25,_0x30f59f,_0x4977b8),_0x14de4a(_0x3dd991,_0x96662c,_0x5db4f0);const _0x4e4bc1=_0x3dd991['slice'](_0x96662c,_0x5db4f0)[_0x524b('0xb0')](_0x301b25['slice'](_0x30f59f,_0x4977b8));return _0x4e4bc1['sort']((_0x532d84,_0x24d942)=>_0x532d84[_0x524b('0x1d')]!=_0x24d942['side']?_0x532d84[_0x524b('0x1d')]-_0x24d942[_0x524b('0x1d')]:_0x532d84[_0x524b('0x93')]!=_0x24d942[_0x524b('0x93')]?_0x532d84[_0x524b('0x93')]-_0x24d942['level']:_0x532d84[_0x524b('0xfb')]!=_0x24d942[_0x524b('0xfb')]?_0x24d942[_0x524b('0xfb')]-_0x532d84['distance']:!!_0x532d84[_0x524b('0x8f')]!=!!_0x24d942['isAdded']?-0x1==_0x532d84[_0x524b('0x1d')]||0x0==_0x532d84[_0x524b('0x1d')]?_0x532d84[_0x524b('0x8f')]?-0x1:0x1:_0x532d84['isAdded']?0x1:-0x1:_0x532d84[_0x524b('0xfd')]-_0x24d942[_0x524b('0xfd')]),{'commonTape':_0x4e4bc1,'iEnd':_0x4977b8,'jEnd':_0x5db4f0};function _0x14de4a(_0x15b6a9,_0x26a556,_0x5d8ff7){let _0x27606e=-0x1,_0x44d658=Number[_0x524b('0x55')],_0x4321d6=!0x0;for(let _0x5be675=_0x26a556;_0x5be675<_0x5d8ff7;_0x5be675++)if(_0x1caa44['isInline'](_0x15b6a9[_0x5be675][_0x524b('0x2f')])||(_0x4321d6=!0x1),_0x15b6a9[_0x5be675][_0x524b('0x2f')][_0x524b('0xd3')]<_0x26a556&&(_0x27606e=_0x5be675),_0x15b6a9[_0x5be675][_0x524b('0x2f')][_0x524b('0x4a')]>=_0x5d8ff7){_0x44d658=_0x5be675;break;}_0x4321d6&&(_0x27606e=_0x5d8ff7-0x1);for(let _0x1badb2=_0x26a556;_0x1badb2<_0x5d8ff7;_0x1badb2++)_0x15b6a9[_0x1badb2][_0x524b('0x1d')]=_0x1badb2<=_0x27606e?-0x1:_0x1badb2<_0x44d658?0x0:0x1,_0x15b6a9[_0x1badb2][_0x524b('0xfd')]=_0x1badb2;let _0x1a6db7=0x0;for(let _0xac64a0=_0x26a556;_0xac64a0<=_0x27606e;_0xac64a0++)0x0==_0x15b6a9[_0xac64a0]['distance']?_0x15b6a9[_0xac64a0][_0x524b('0x93')]=_0x1a6db7:(_0x1a6db7++,_0x15b6a9[_0xac64a0][_0x524b('0x93')]=_0x1a6db7,_0x1a6db7++);for(let _0x28ab87=_0x26a556;_0x28ab87<_0x5d8ff7;_0x28ab87++)0x0==_0x15b6a9[_0x28ab87][_0x524b('0x1d')]&&(_0x15b6a9[_0x28ab87][_0x524b('0x93')]=_0x1a6db7);_0x1a6db7=0x0;for(let _0x9714a6=_0x5d8ff7-0x1;_0x9714a6>=_0x44d658;_0x9714a6--)0x0==_0x15b6a9[_0x9714a6][_0x524b('0xfb')]?_0x15b6a9[_0x9714a6][_0x524b('0x93')]=_0x1a6db7:(_0x1a6db7--,_0x15b6a9[_0x9714a6]['level']=_0x1a6db7,_0x1a6db7--);}}['_fixObsoleteTags'](_0x1e3f2e){const _0x1ff9a5=new Map(),_0x1e9c84=this[_0x524b('0xfc')]['model'][_0x524b('0xd2')];for(let _0x4bc3e7=0x1;_0x4bc3e7<_0x1e3f2e[_0x524b('0x34')];_0x4bc3e7++){let _0x447c3d,_0x4a8451,_0x491e8c;const _0x2d8370=_0x1e3f2e[_0x4bc3e7],_0x3b363f=_0x1e3f2e[_0x4bc3e7-0x1];if(_0x524b('0xd4')==_0x2d8370[_0x524b('0x4e')])continue;if(_0x2d8370[_0x524b('0x4e')]!=_0x3b363f[_0x524b('0x4e')])continue;if(!_0x1e9c84[_0x524b('0xb7')](_0x3b363f['item'])||_0x1e9c84[_0x524b('0x36')](_0x3b363f[_0x524b('0x2f')]))continue;if(!_0x1e9c84[_0x524b('0xb7')](_0x2d8370[_0x524b('0x2f')])||_0x1e9c84[_0x524b('0x36')](_0x2d8370[_0x524b('0x2f')]))continue;if((_0x1e3f2e[_0x4bc3e7]['isAdded']||_0x1e3f2e[_0x4bc3e7]['isAddSuggestion'])&&_0x1e3f2e[_0x4bc3e7-0x1][_0x524b('0xf1')])_0x447c3d=_0x1e3f2e[_0x4bc3e7],_0x4a8451=_0x1e3f2e[_0x4bc3e7-0x1],_0x491e8c=_0x4bc3e7-0x1;else{if(!_0x1e3f2e[_0x4bc3e7][_0x524b('0xf1')]||!_0x1e3f2e[_0x4bc3e7-0x1][_0x524b('0x8f')]&&!_0x1e3f2e[_0x4bc3e7-0x1][_0x524b('0x60')])continue;_0x447c3d=_0x1e3f2e[_0x4bc3e7-0x1],_0x4a8451=_0x1e3f2e[_0x4bc3e7],_0x491e8c=_0x4bc3e7;}const _0x12ce2e=_0x447c3d[_0x524b('0x93')]==_0x4a8451[_0x524b('0x93')],_0x2e4dac=Math[_0x524b('0x39')](_0x447c3d[_0x524b('0x93')])<Math['abs'](_0x4a8451[_0x524b('0x93')])&&0x0==_0x4a8451[_0x524b('0xfb')];(_0x12ce2e||_0x2e4dac)&&(_0x1ff9a5['set'](_0x4a8451['id'],_0x447c3d['id']),_0x1e3f2e[_0x524b('0xc8')](_0x491e8c,0x1),_0x4bc3e7--,_0x447c3d[_0x524b('0x8f')]=!0x1);}for(let _0x4f4a84=0x0;_0x4f4a84<_0x1e3f2e[_0x524b('0x34')];_0x4f4a84++)_0x1ff9a5['has'](_0x1e3f2e[_0x4f4a84]['pairId'])&&(_0x1e3f2e[_0x4f4a84]['pairId']=_0x1ff9a5['get'](_0x1e3f2e[_0x4f4a84][_0x524b('0x101')]));}[_0x524b('0x6d')](_0x37343a){const _0x52ec6c=new Set(_0x37343a[_0x524b('0x9f')](_0x20e0d6=>_0x20e0d6['id']));for(let _0x18b5e4=0x0;_0x18b5e4<_0x37343a[_0x524b('0x34')];_0x18b5e4++)_0x52ec6c[_0x524b('0x68')](_0x37343a[_0x18b5e4][_0x524b('0x101')])||0x0==_0x37343a[_0x18b5e4][_0x524b('0xfb')]||(_0x37343a[_0x18b5e4][_0x524b('0x33')]=!0x0);return _0x37343a[_0x524b('0x75')](_0x5be712=>!_0x5be712[_0x524b('0x33')]);}[_0x524b('0x7e')](_0x3939e9){const _0x278906=new Set();for(let _0x29f739=0x0;_0x29f739<_0x3939e9[_0x524b('0x34')];_0x29f739++){if(_0x278906[_0x524b('0x68')](_0x3939e9[_0x29f739]['id'])&&_0x3939e9[_0x29f739][_0x524b('0xf1')]&&(_0x3939e9[_0x29f739][_0x524b('0x33')]=!0x0),_0x3939e9[_0x29f739][_0x524b('0x33')])continue;if(0x0==_0x3939e9[_0x29f739][_0x524b('0xfb')])continue;if('elementStart'!=_0x3939e9[_0x29f739][_0x524b('0x4e')])continue;if(null==_0x3939e9[_0x29f739][_0x524b('0x101')])continue;let _0x445723=_0x29f739+0x1,_0x50f0aa=0x0;for(;_0x3939e9[_0x445723]['id']!=_0x3939e9[_0x29f739][_0x524b('0x101')];)_0x524b('0x6')==_0x3939e9[_0x445723][_0x524b('0x4e')]?_0x50f0aa++:_0x524b('0x8a')==_0x3939e9[_0x445723][_0x524b('0x4e')]&&_0x50f0aa--,_0x445723++;if(0x0!=_0x50f0aa){if(_0x3939e9[_0x29f739][_0x524b('0xf1')])_0x3939e9[_0x29f739]['isIncorrect']=!0x0;else for(;_0x445723!=_0x29f739;)_0x3939e9[_0x445723][_0x524b('0xf1')]&&0x0!=_0x3939e9[_0x445723][_0x524b('0xfb')]&&(_0x3939e9[_0x445723][_0x524b('0x33')]=!0x0,_0x278906[_0x524b('0x46')](_0x3939e9[_0x445723]['pairId'])),_0x445723--;}}return _0x3939e9['filter'](_0x44e965=>!_0x44e965[_0x524b('0x33')]);}[_0x524b('0xa5')](_0x40fa06){const _0x4dfde3=this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xd2')];for(let _0x13daa3=0x0;_0x13daa3<_0x40fa06[_0x524b('0x34')];_0x13daa3++){if(!(_0x40fa06[_0x13daa3]['isAdded']||_0x40fa06[_0x13daa3][_0x524b('0x60')]||_0x40fa06[_0x13daa3][_0x524b('0xf1')]||_0x40fa06[_0x13daa3]['isRemoveSuggestion']))continue;if(0x0==_0x40fa06[_0x13daa3]['distance'])continue;const _0x3c94ca=_0x40fa06[_0x13daa3][_0x524b('0x2f')];_0x4dfde3[_0x524b('0xb7')](_0x3c94ca)||_0x4dfde3[_0x524b('0x36')](_0x3c94ca)||(_0x40fa06[_0x13daa3][_0x524b('0x8f')]&&delete _0x40fa06[_0x13daa3][_0x524b('0x8f')],_0x40fa06[_0x13daa3][_0x524b('0x60')]&&delete _0x40fa06[_0x13daa3][_0x524b('0x60')],_0x40fa06[_0x13daa3][_0x524b('0x5c')]&&delete _0x40fa06[_0x13daa3][_0x524b('0x5c')],_0x40fa06[_0x13daa3][_0x524b('0xf1')]&&(_0x40fa06[_0x13daa3]['isIncorrect']=!0x0));}return _0x40fa06[_0x524b('0x75')](_0x55551a=>!_0x55551a[_0x524b('0x33')]);}[_0x524b('0x6f')](_0x1b8bf1,_0x431639){const _0x52259b=new _0x39d827(),_0x2e2ed2=[],_0x47286c=new Map(),_0xb036a4=this[_0x524b('0xfc')][_0x524b('0x97')],_0x18541d=_0xb036a4[_0x524b('0xd2')],_0xae1271=[_0x52259b],_0x346768={},_0x2f58d8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3a536c=null;const _0x3bf15e=[0x0];for(let _0x537d67=0x0;_0x537d67<_0x1b8bf1[_0x524b('0x34')];_0x537d67++){let _0x2a9b33,_0x307808;if(_0x524b('0x6')===_0x1b8bf1[_0x537d67]['type']){_0x2a9b33=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e);const _0x1bc070=new _0xa0cd73(_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0xda')],_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0xfe')]());_0xae1271[0x0][_0x524b('0x7d')](_0x1bc070),_0x3bf15e[_0x524b('0xfa')](0x0),_0xae1271[_0x524b('0x6b')](_0x1bc070),_0x307808=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3a536c=null;}else{if('elementEnd'===_0x1b8bf1[_0x537d67][_0x524b('0x4e')])_0xae1271[_0x524b('0x59')](),_0x2a9b33=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3bf15e[_0x524b('0x6c')](),_0x3bf15e[_0x3bf15e['length']-0x1]++,_0x307808=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3a536c=null;else{if(_0x2a9b33=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3a536c&&_0x107646(_0x3a536c,_0x1b8bf1[_0x537d67][_0x524b('0x2f')]))_0x3a536c[_0x524b('0x85')]+=_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0x47')];else{const _0x5bfdd2=new _0x5ee507(_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0x47')],_0x1b8bf1[_0x537d67]['item'][_0x524b('0xfe')]());_0xae1271[0x0][_0x524b('0x7d')](_0x5bfdd2),_0x3a536c=_0x5bfdd2;}_0x3bf15e[_0x3bf15e['length']-0x1]+=_0x1b8bf1[_0x537d67][_0x524b('0x2f')]['offsetSize'],_0x307808=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e);}}for(const _0x217ce9 of _0x1b8bf1[_0x537d67][_0x524b('0xe4')])_0x47286c[_0x524b('0x50')](_0x217ce9,{'start':_0x2a9b33,'end':null});_0x13a9bd(_0x524b('0x5c'),_0x537d67,_0x2a9b33,_0x307808),_0x13a9bd(_0x524b('0x60'),_0x537d67,_0x2a9b33,_0x307808),_0x13a9bd(_0x524b('0xf1'),_0x537d67,_0x2a9b33,_0x307808),_0x13a9bd(_0x524b('0x8f'),_0x537d67,_0x2a9b33,_0x307808);for(const _0x3c6baf of _0x1b8bf1[_0x537d67][_0x524b('0x61')]){_0x47286c['get'](_0x3c6baf)['end']=_0x307808;}}for(const [_0x1fa0d1,_0x3e2169]of _0x47286c){const _0x29247a=this[_0x524b('0xfc')][_0x524b('0x97')]['createRange'](_0x3e2169['start'],_0x3e2169[_0x524b('0xe7')]);_0x52259b[_0x524b('0xf3')][_0x524b('0x50')](_0x1fa0d1,_0x29247a);}return _0x2e2ed2['sort']((_0x1a8758,_0x13d937)=>{const _0x390da9=_0x52259b[_0x524b('0xf3')][_0x524b('0x4')](_0x524b('0x54')+_0x1a8758['id']),_0x53cdb0=_0x52259b['markers']['get'](_0x524b('0x54')+_0x13d937['id']);return _0x390da9[_0x524b('0x4c')]['isBefore'](_0x53cdb0[_0x524b('0x4c')])?-0x1:_0x390da9['start']['isAfter'](_0x53cdb0[_0x524b('0x4c')])?0x1:_0x390da9[_0x524b('0xe7')]['isBefore'](_0x53cdb0['end'])?-0x1:_0x390da9[_0x524b('0xe7')][_0x524b('0x8c')](_0x53cdb0['end'])?0x1:'add'===_0x1a8758[_0x524b('0x4e')]?-0x1:0x1;}),{'root':_0x52259b,'changes':_0x2e2ed2};function _0x13a9bd(_0x1c4f40,_0x1ca185,_0x9bc821,_0x41efb3){const _0x49cb07=!!_0x1b8bf1[_0x1ca185][_0x1c4f40],_0x940a69=_0x49cb07?_0x1b8bf1[_0x1ca185][_0x1c4f40][_0x524b('0xb8')]:null,_0xde8e45=_0x1ca185===_0x1b8bf1[_0x524b('0x34')]-0x1,_0x41de93=_0x2f58d8[_0x1c4f40][0x0],_0x4714dc=_0x18541d['isObject'](_0x1b8bf1[_0x1ca185][_0x524b('0x2f')]);!_0x346768[_0x1c4f40]&&_0x49cb07?_0x346768[_0x1c4f40]={'start':_0x9bc821,'tapeItem':_0x1b8bf1[_0x1ca185],'userId':_0x940a69,'type':_0x1c4f40}:_0x346768[_0x1c4f40]&&!_0x49cb07?(_0x346768[_0x1c4f40]['end']=_0x9bc821,_0x6beb3b(_0x346768[_0x1c4f40]),_0x346768[_0x1c4f40]=null):_0x346768[_0x1c4f40]&&_0x49cb07&&_0x346768[_0x1c4f40][_0x524b('0xb8')]!==_0x940a69&&(_0x346768[_0x1c4f40][_0x524b('0xe7')]=_0x9bc821,_0x41de93&&_0x41de93['userId']===_0x346768[_0x1c4f40][_0x524b('0xb8')]||_0x6beb3b(_0x346768[_0x1c4f40]),_0x346768[_0x1c4f40]={'start':_0x9bc821,'tapeItem':_0x1b8bf1[_0x1ca185],'userId':_0x940a69,'type':_0x1c4f40}),_0x346768[_0x1c4f40]&&_0x4714dc&&(_0x524b('0x6')!==_0x1b8bf1[_0x1ca185][_0x524b('0x4e')]||_0x41de93&&_0x41de93[_0x524b('0xb8')]===_0x940a69||_0x2f58d8[_0x1c4f40][_0x524b('0x6b')]({'userId':_0x940a69,'object':_0x1b8bf1[_0x1ca185][_0x524b('0x2f')],'change':_0x346768[_0x1c4f40]}),_0x524b('0x8a')===_0x1b8bf1[_0x1ca185][_0x524b('0x4e')]&&_0x41de93&&_0x41de93[_0x524b('0x25')]===_0x1b8bf1[_0x1ca185][_0x524b('0x2f')]&&(_0x2f58d8[_0x1c4f40][_0x524b('0x59')](),_0x346768[_0x1c4f40]=_0x41de93['change'])),_0x346768[_0x1c4f40]&&_0xde8e45&&(_0x346768[_0x1c4f40]['end']=_0x41efb3,_0x6beb3b(_0x346768[_0x1c4f40]),_0x346768[_0x1c4f40]=null);}function _0x6beb3b({start:_0x339a11,end:_0x464bc8,tapeItem:_0x285bd1,userId:_0x50b62b,type:_0x1af128}){const _0x2840e5=_0x285bd1[_0x524b('0x2f')],_0x3eee5c=_0xb036a4['schema'][_0x524b('0xb7')](_0x2840e5)&&!_0xb036a4[_0x524b('0xd2')]['isLimit'](_0x2840e5),_0x846932=_0x339a11[_0x524b('0xb')]==_0x464bc8[_0x524b('0x80')]&&_0x464bc8['isAtStart'];if(_0x3eee5c&&_0x846932)return;const _0x2d9922=_0xb036a4[_0x524b('0xbf')](_0x339a11,_0x464bc8),_0xb7a0c0=_0x431639[_0x524b('0x4')](_0x50b62b),_0x200317=new _0x17521b({'author':_0xb7a0c0,'type':_0x524b('0x8f')==_0x1af128||_0x524b('0x60')==_0x1af128?'add':'remove','data':{'isSuggestion':_0x524b('0x60')==_0x1af128||'isRemoveSuggestion'==_0x1af128},'createdAt':new Date()});_0x2e2ed2[_0x524b('0xfa')](_0x200317),_0x52259b[_0x524b('0xf3')]['set']('revision:'+_0x200317['id'],_0x2d9922);}function _0x107646(_0x5d37af,_0x2996ca){const _0x38a880=_0x5d37af['getAttributes'](),_0x56583e=_0x2996ca[_0x524b('0xfe')]();for(const _0x375461 of _0x38a880){if(_0x375461[0x1]!==_0x2996ca[_0x524b('0x65')](_0x375461[0x0]))return!0x1;_0x56583e[_0x524b('0x3e')]();}return _0x56583e['next']()[_0x524b('0x63')];}}[_0x524b('0xf7')](){this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x74')]({'view':_0x524b('0xe2')}),this[_0x524b('0xfc')]['conversion']['for'](_0x524b('0xdf'))[_0x524b('0xff')]({'model':_0x524b('0xe2'),'view':_0x4926eb=>{const _0x25f29a=_0x4926eb[_0x524b('0x5f')][_0x524b('0x76')](':')[0x1],_0x32f547=this[_0x524b('0x95')](_0x25f29a);if(!_0x32f547)return null;const _0x30fa6b=_0x524b('0x46')==_0x32f547[_0x524b('0x4e')]?_0x524b('0x49'):_0x524b('0xf0'),_0x3cec53=['ck-suggestion-marker','ck-suggestion-marker-'+_0x30fa6b];return _0x32f547[_0x524b('0x47')][_0x524b('0x2d')]&&_0x3cec53[_0x524b('0xfa')]('ck-suggestion-marker-'+_0x30fa6b+_0x524b('0x2c')),this[_0x524b('0xd')]==_0x32f547&&_0x3cec53[_0x524b('0xfa')](_0x524b('0xf2')),{'classes':_0x3cec53,'attributes':{'data-change-id':_0x25f29a}};}}),this[_0x524b('0xfc')]['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))['add'](_0x2a527f=>{_0x2a527f['on']('element:pre',(_0x3c7d71,_0x187ffc,_0x332efa)=>{const _0x467a99=_0x187ffc[_0x524b('0x57')]['getChild'](0x0);if(!_0x467a99||!_0x467a99['is'](_0x524b('0xec'),_0x524b('0x72')))return;if(!_0x332efa[_0x524b('0x5e')][_0x524b('0x12')](_0x467a99,{'attributes':[_0x524b('0x3f'),_0x524b('0xe6')]}))return;const _0x1e4e1e=_0x187ffc[_0x524b('0x92')][_0x524b('0x4c')][_0x524b('0xb')];_0x332efa[_0x524b('0xcd')][_0x524b('0xc2')](_0x524b('0x3f'),_0x467a99[_0x524b('0x65')](_0x524b('0x3f')),_0x1e4e1e),_0x332efa[_0x524b('0xcd')][_0x524b('0xc2')](_0x524b('0xe6'),_0x467a99[_0x524b('0x65')](_0x524b('0xe6')),_0x1e4e1e);},{'priority':_0x524b('0x11')});}),this[_0x524b('0xfc')]['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x46')](_0x155021=>{_0x155021['on'](_0x524b('0xec'),(_0x5b8b03,_0x36bd6e,_0x1bef76)=>{if(!_0x1bef76['consumable'][_0x524b('0x12')](_0x36bd6e[_0x524b('0x57')],{'attributes':[_0x524b('0x3f'),_0x524b('0xe6')]}))return;if(_0x36bd6e['modelRange'][_0x524b('0xb1')])return;const _0x2e41b5=_0x36bd6e[_0x524b('0x92')][_0x524b('0x4c')][_0x524b('0xb')];_0x2e41b5[_0x524b('0xbd')](_0x524b('0x3f'))||_0x2e41b5[_0x524b('0xbd')](_0x524b('0xab'))||(_0x1bef76['writer'][_0x524b('0xc2')](_0x524b('0x3f'),_0x36bd6e[_0x524b('0x57')][_0x524b('0x65')](_0x524b('0x3f')),_0x2e41b5),_0x1bef76[_0x524b('0xcd')][_0x524b('0xc2')](_0x524b('0xe6'),_0x36bd6e[_0x524b('0x57')][_0x524b('0x65')](_0x524b('0xe6')),_0x2e41b5));},{'priority':_0x524b('0x11')});}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x3')]({'view':{'name':_0x524b('0x67'),'attributes':{'vid':!0x0}},'model':{'key':_0x524b('0xab'),'value':_0x35c502=>_0x35c502['getAttribute'](_0x524b('0xab'))}}),this['editor'][_0x524b('0x97')][_0x524b('0xd2')]['on'](_0x524b('0x88'),(_0x9db8f,[,_0x52a08d])=>{['vid_start','vid_end',_0x524b('0xab')][_0x524b('0x23')](_0x52a08d)&&(_0x9db8f['return']=!0x0,_0x9db8f[_0x524b('0x91')]());},{'priority':_0x524b('0xaa')}),this[_0x524b('0xfc')][_0x524b('0x5a')]['for'](_0x524b('0x96'))[_0x524b('0x46')](_0x349125=>{_0x349125['on']('attribute:vid',(_0x419c5b,_0x5bf877,_0x24f7ff)=>{if('\x20'!=_0x5bf877[_0x524b('0x2f')][_0x524b('0x47')]||_0x5bf877['item'][_0x524b('0x80')][_0x524b('0x69')]>0x1)return;if(!_0x24f7ff[_0x524b('0x5e')][_0x524b('0x12')](_0x5bf877[_0x524b('0x2f')],_0x419c5b[_0x524b('0xda')]))return;const _0x5bdcaf=_0x24f7ff[_0x524b('0xcd')],_0x2d0b20=_0x24f7ff[_0x524b('0x99')][_0x524b('0x15')](_0x5bf877[_0x524b('0x98')]);_0x5bdcaf[_0x524b('0x1c')](_0x2d0b20,_0x5bdcaf[_0x524b('0x100')](_0x524b('0x67')));});}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0x96'))[_0x524b('0x18')]({'model':'revision'}),this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x3c')]['on']('addMarker:revision',function(_0x466590){const _0xe4fe4f=_0x466590[_0x524b('0xee')][_0x524b('0x4')]('RevisionViewer');return(_0xbe6ca5,_0x1f8b8d,_0x34a4eb)=>{const _0x48bd82=_0x1f8b8d[_0x524b('0x5f')][_0x524b('0x76')](':')[0x1],_0x4d56b2=_0xe4fe4f['_getChangeFromId'](_0x48bd82);if(!_0x4d56b2)return null;const _0x519ce6=_0x524b('0x46')==_0x4d56b2[_0x524b('0x4e')]?_0x524b('0x76'):'merge';if(!_0x34a4eb[_0x524b('0x5e')][_0x524b('0x2a')](_0x1f8b8d['markerRange'],_0xbe6ca5['name']))return;const _0x4d566f=_0x1f8b8d[_0x524b('0x94')][_0x524b('0x106')](),_0x50a4be=_0x1f8b8d['markerRange'][_0x524b('0x4c')],_0x192636=_0x466590[_0x524b('0x97')]['schema'];let _0x180cd7=null,_0x41bd64=null,_0x4fbd18=!0x1,_0x59af42=!0x1;for(const _0x4140be of _0x4d566f){const _0x10e356=_0x4140be['item'];_0x4fbd18=_0x4fbd18||_0x192636[_0x524b('0xe8')](_0x10e356);const _0x59096d=_0x34a4eb['mapper'][_0x524b('0x10')](_0x10e356);if(_0x59096d&&_0x59096d[_0x524b('0x9c')](_0x524b('0x86')))return;'elementEnd'==_0x4140be['type']&&(_0x192636[_0x524b('0xb7')](_0x10e356)&&!_0x192636[_0x524b('0x36')](_0x10e356)&&(_0x10e356[_0x524b('0x104')]||_0x50a4be[_0x524b('0xe0')]?_0x180cd7&&_0x180cd7[_0x524b('0x80')]==_0x10e356||(_0x180cd7=_0x10e356,_0x5ada36(_0x4140be[_0x524b('0x71')]),_0x59af42=!0x0):_0x41bd64=_0x41bd64||_0x4140be[_0x524b('0x71')]));}function _0x5ada36(_0x29c896){const _0x3a8df1=_0x34a4eb[_0x524b('0xcd')][_0x524b('0x4f')]('span',{'class':_0x524b('0xb3')+_0x519ce6}),_0x25b617=_0x34a4eb[_0x524b('0x99')][_0x524b('0x8e')](_0x29c896);_0x4d56b2['data'][_0x524b('0x2d')]&&_0x34a4eb[_0x524b('0xcd')]['addClass']('ck-suggestion-marker-'+_0x519ce6+_0x524b('0x2c'),_0x3a8df1),_0xe4fe4f[_0x524b('0xd')]==_0x4d56b2&&_0x34a4eb['writer'][_0x524b('0xf')]('ck-suggestion-marker--active',_0x3a8df1),_0x34a4eb['writer']['insert'](_0x25b617,_0x3a8df1),_0x34a4eb[_0x524b('0x99')]['bindElementToMarker'](_0x3a8df1,_0x1f8b8d[_0x524b('0x5f')]);}_0x4fbd18||_0x59af42||!_0x41bd64||_0x5ada36(_0x41bd64);};}(this[_0x524b('0xfc')]),{'priority':'high'}),this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x3c')]['on'](_0x524b('0xea'),(_0x3b9bac,_0x414ed1,_0x3d125a)=>{const _0x40129b=_0x3d125a[_0x524b('0x99')]['markerNameToElements'](_0x414ed1['markerName']);if(_0x40129b)for(const _0x2b9aa6 of _0x40129b)(_0x2b9aa6[_0x524b('0x8')]('ck-suggestion-marker-split')||_0x2b9aa6['hasClass'](_0x524b('0xd5')))&&(_0x3d125a[_0x524b('0x99')]['unbindElementFromMarkerName'](_0x2b9aa6,_0x414ed1[_0x524b('0x5f')]),_0x3d125a[_0x524b('0xcd')][_0x524b('0x2b')](_0x2b9aa6));},{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')]['editing'][_0x524b('0x3c')]['on'](_0x524b('0x28'),(_0x5acf0f,_0x34dc55,_0x3edb35)=>{const _0x23b75a=_0x34dc55['markerName'][_0x524b('0x76')](':')[0x1],_0x12a878=this[_0x524b('0x95')](_0x23b75a);if(!_0x12a878)return null;const _0x1d9713='add'==_0x12a878[_0x524b('0x4e')]?_0x524b('0x76'):_0x524b('0x13');if(_0x3edb35[_0x524b('0x5e')][_0x524b('0x2a')](_0x34dc55[_0x524b('0x94')],_0x5acf0f['name']))for(const _0x27f254 of _0x34dc55[_0x524b('0x94')][_0x524b('0xf6')]()){if(!_0x27f254['is']('element',_0x524b('0x4b')))continue;const _0x20056d=_0x3edb35[_0x524b('0xcd')][_0x524b('0x4f')]('span',{'class':_0x524b('0xb3')+_0x1d9713}),_0x2dc71d=_0x3edb35['mapper'][_0x524b('0x8e')](this['editor'][_0x524b('0x97')]['createPositionBefore'](_0x27f254));_0x12a878[_0x524b('0x47')][_0x524b('0x2d')]&&_0x3edb35[_0x524b('0xcd')]['addClass']('ck-suggestion-marker-'+_0x1d9713+_0x524b('0x2c'),_0x20056d),this[_0x524b('0xd')]==_0x12a878&&_0x3edb35[_0x524b('0xcd')][_0x524b('0xf')](_0x524b('0xf2'),_0x20056d),_0x3edb35[_0x524b('0xcd')]['insert'](_0x2dc71d,_0x20056d),_0x3edb35['mapper']['bindElementToMarker'](_0x20056d,_0x34dc55[_0x524b('0x5f')]);}},{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')]['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x74')]({'view':_0x524b('0x7b'),'model':_0x3804c4=>'revision-comment:'+_0x3804c4,'converterPriority':'highest'}),this['editor']['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))['dataToMarker']({'view':_0x524b('0xdd'),'model':_0x13faa0=>_0x524b('0xd6')+_0x13faa0,'converterPriority':_0x524b('0xaa')}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0x96'))['markerToData']({'model':'revision-suggestion','view':_0x425e21=>_0x524b('0x26')+_0x425e21,'converterPriority':_0x524b('0xaa')}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0xdf'))[_0x524b('0xff')]({'model':'revision-suggestion','view':_0x217794=>{const _0x13b4e4=_0x217794[_0x524b('0x5f')][_0x524b('0x76')](':')[0x1];return'insertion'!=_0x13b4e4&&_0x524b('0xf0')!=_0x13b4e4?null:{'classes':[_0x524b('0xe'),'ck-suggestion-preview-marker-'+_0x13b4e4]};}}),this['editor'][_0x524b('0x73')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this[_0x524b('0xfc')],_0x524b('0x13')),{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x3c')]['on'](_0x524b('0x3d'),Z(this[_0x524b('0xfc')],_0x524b('0x76')),{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')]['editing'][_0x524b('0x3c')]['on'](_0x524b('0x8b'),(_0x4cc1bd,_0x922277,_0x4052a7)=>{const _0x37d313=_0x4052a7[_0x524b('0x99')]['markerNameToElements'](_0x922277[_0x524b('0x5f')]);if(_0x37d313)for(const _0x25260e of _0x37d313)_0x25260e['is'](_0x524b('0xa4'))&&(_0x4052a7[_0x524b('0x99')]['unbindElementFromMarkerName'](_0x25260e,_0x922277[_0x524b('0x5f')]),_0x4052a7[_0x524b('0xcd')][_0x524b('0x2b')](_0x25260e));},{'priority':_0x524b('0x79')});}[_0x524b('0x95')](_0x323c0e){return this['_changeIdToChange'][_0x524b('0x4')](_0x323c0e);}[_0x524b('0x27')](_0x24205){this[_0x524b('0xf5')]&&this['_changeView']['destroy'](),this[_0x524b('0xf5')]=new _0x5e30ed(this[_0x524b('0xfc')]['locale'],_0x24205);const _0x172a55=this['editor']['model'][_0x524b('0xf3')][_0x524b('0x4')](_0x524b('0x54')+_0x24205['id']);return this['_changeView'][_0x524b('0xc7')]=()=>_0x357e15(this[_0x524b('0xfc')][_0x524b('0x73')],_0x172a55),this[_0x524b('0xf5')];}[_0x524b('0x62')](){this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xa0')]['selection'][_0x524b('0x84')](_0x524b('0xe2')),this['on'](_0x524b('0x8d'),(_0x3ffb5b,_0x526e25,_0x3fc6dc,_0x1421c5)=>{_0x1421c5&&this[_0x524b('0x40')][_0x524b('0x2b')](_0x1421c5),_0x3fc6dc&&(this[_0x524b('0x40')][_0x524b('0x46')]({'view':_0x3fc6dc,'stackId':_0x524b('0xdb'),'position':{'target':_0x3fc6dc['_target']}}),this[_0x524b('0x40')][_0x524b('0x31')](_0x524b('0xdb')));}),this['on'](_0x524b('0xdc'),(_0x3b970a,_0xf70efe,_0x16fa26,_0x253527)=>{this[_0x524b('0x6a')]=_0x16fa26?this[_0x524b('0x27')](_0x16fa26):null,this['editor'][_0x524b('0x97')][_0x524b('0xd1')](()=>{const _0x536fb7=this[_0x524b('0xfc')][_0x524b('0x73')];_0x253527&&_0x536fb7[_0x524b('0xce')](_0x524b('0x54')+_0x253527['id']),_0x16fa26&&_0x536fb7[_0x524b('0xce')]('revision:'+_0x16fa26['id']);});}),this[_0x524b('0x66')](this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')],_0x524b('0x20'),(_0x50cfbe,_0x33eeab)=>{if(this[_0x524b('0xd')])return;const _0x35e746=this[_0x524b('0xd9')](_0x33eeab['target']),_0x85a2d6=this['_changeIdToChange'][_0x524b('0x4')](_0x35e746);this[_0x524b('0x6a')]=_0x85a2d6?this[_0x524b('0x27')](_0x85a2d6):null;}),this[_0x524b('0x66')](this['editor']['editing'][_0x524b('0x21')][_0x524b('0xa0')],_0x524b('0x24'),(_0x584976,_0x3d29cb)=>{const _0x427cea=this['_findChangeIdFromDomTarget'](_0x3d29cb[_0x524b('0x1a')]),_0x246e20=this[_0x524b('0xae')][_0x524b('0x4')](_0x427cea);this[_0x524b('0xd')]=_0x246e20||null;});}[_0x524b('0xd9')](_0x4fc7e2){do{const _0xc6a33c=_0x4fc7e2[_0x524b('0x65')](_0x524b('0x5b'));if(_0xc6a33c)return _0xc6a33c;_0x4fc7e2=_0x4fc7e2[_0x524b('0x80')];}while(_0x4fc7e2);return null;}[_0x524b('0xa1')](){this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xd1')](_0xb5e2f1=>{for(const _0x135786 of this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xf3')])_0xb5e2f1['removeMarker'](_0x135786);});}}function Z(_0x1b66c8,_0x39fd91){return(_0x3a5624,_0x422665,_0x240ff8)=>{if(!_0x240ff8[_0x524b('0x5e')][_0x524b('0x2a')](_0x422665[_0x524b('0x94')],_0x3a5624[_0x524b('0xda')]))return;const _0x3922d7=_0x422665[_0x524b('0x94')][_0x524b('0x106')](),_0x504a7b=_0x422665['markerRange'][_0x524b('0x4c')],_0x4b2d61=_0x1b66c8[_0x524b('0x97')]['schema'];let _0x344622=null,_0x16d62b=null,_0x4350b1=!0x1,_0x32a160=!0x1;for(const _0x5446de of _0x3922d7){const _0x4a45b3=_0x5446de[_0x524b('0x2f')];_0x4350b1=_0x4350b1||_0x4b2d61[_0x524b('0xe8')](_0x4a45b3);const _0x1495cc=_0x240ff8[_0x524b('0x99')][_0x524b('0x10')](_0x4a45b3);if(_0x1495cc&&_0x1495cc['getCustomProperty'](_0x524b('0x86')))return;_0x524b('0x8a')==_0x5446de[_0x524b('0x4e')]&&(_0x4b2d61[_0x524b('0xb7')](_0x4a45b3)&&!_0x4b2d61[_0x524b('0x36')](_0x4a45b3)&&(_0x4a45b3[_0x524b('0x104')]||_0x504a7b[_0x524b('0xe0')]?_0x344622&&_0x344622[_0x524b('0x80')]==_0x4a45b3||(_0x344622=_0x4a45b3,_0x3f17c5(_0x5446de[_0x524b('0x71')]),_0x32a160=!0x0):_0x16d62b=_0x16d62b||_0x5446de[_0x524b('0x71')]));}function _0x3f17c5(_0x1bf2ed){const _0xe9bbef=_0x240ff8[_0x524b('0x99')][_0x524b('0x8e')](_0x1bf2ed),_0xb08918=_0x240ff8[_0x524b('0xcd')][_0x524b('0x4f')](_0x524b('0x67'),{'class':_0x524b('0x2e')+_0x39fd91});_0x240ff8[_0x524b('0xcd')]['insert'](_0xe9bbef,_0xb08918),_0x240ff8[_0x524b('0x99')]['bindElementToMarker'](_0xb08918,_0x422665['markerName']);}_0x4350b1||_0x32a160||!_0x16d62b||_0x3f17c5(_0x16d62b);};}_0xdcc6b(d,_0x41e455);class tt extends _0x4709cd{constructor(_0x1c7b8a){super(_0x1c7b8a);const _0x38bd2e=_0x1c7b8a[_0x524b('0xee')][_0x524b('0x4')](d);this[_0x524b('0x42')](_0x1c7b8a,_0x524b('0xe9')),this[_0x524b('0xa8')](_0x524b('0x89')),this[_0x524b('0x66')](_0x38bd2e,_0x524b('0xbc'),()=>this[_0x524b('0x0')]()),this[_0x524b('0x66')](_0x38bd2e,_0x524b('0xed'),()=>this[_0x524b('0x0')]());}['execute'](){const _0x235739=this[_0x524b('0xfc')],_0x5e9e1f=_0x235739[_0x524b('0xee')][_0x524b('0x4')](d),_0x3ff4b3=_0x5e9e1f[_0x524b('0xb6')]?_0x5e9e1f[_0x524b('0x51')][_0x524b('0x19')]:null;_0x235739['config']['get'](_0x524b('0x58'))[_0x524b('0xb5')](_0x3ff4b3);}[_0x524b('0x0')](){const {isReady:_0xfd3145,isEnabled:_0x43d424}=this[_0x524b('0xfc')][_0x524b('0xee')][_0x524b('0x4')](d);this['isEnabled']=_0xfd3145&&_0x43d424;}}class et extends _0x4709cd{constructor(_0x31c7e8,{direction:_0x3aaa9d}){super(_0x31c7e8);const _0x44ce64=_0x31c7e8[_0x524b('0xee')]['get'](d);this[_0x524b('0x42')](_0x31c7e8,'change:isReadOnly'),this['clearForceDisabled']('readOnlyMode'),this['_step']=_0x524b('0xe5')===_0x3aaa9d?0x1:-0x1,this[_0x524b('0x66')](_0x44ce64,_0x524b('0xbc'),()=>this[_0x524b('0x0')]()),this['listenTo'](_0x44ce64,_0x524b('0xed'),()=>this['refresh']());}[_0x524b('0x107')](){const _0x5d0b76=this[_0x524b('0xfc')],_0x1969ad=_0x5d0b76[_0x524b('0xee')]['get'](d),{isNavigationMode:_0x2e6701,currentChangeNumber:_0x1aa421}=_0x1969ad;_0x1969ad[_0x524b('0xd')]=_0x2e6701?_0x1969ad[_0x524b('0x51')][_0x524b('0x82')][_0x524b('0x4')](_0x1aa421+this['_step']):_0x1969ad['diff'][_0x524b('0x82')]['first'];const _0x56a9b5=_0x5d0b76[_0x524b('0x97')][_0x524b('0xf3')][_0x524b('0x4')](_0x524b('0x54')+_0x1969ad['activeChange']['id']),_0x3313a0=_0x357e15(_0x5d0b76[_0x524b('0x73')],_0x56a9b5);_0xce6de3({'target':_0x3313a0,'viewportOffset':0x28});}[_0x524b('0x0')](){const {isNavigationMode:_0x13163a,currentChangeNumber:_0x178e23,numberOfChanges:_0x377f0c,isReady:_0x5ab825,isEnabled:_0x17dcfe}=this[_0x524b('0xfc')][_0x524b('0xee')][_0x524b('0x4')](d);this[_0x524b('0xc0')]=!!(_0x17dcfe&&_0x5ab825&&_0x377f0c)&&(!_0x13163a||(0x1===this[_0x524b('0xc3')]?_0x178e23<_0x377f0c-0x1:_0x178e23>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x280a=['change:isActionsDropdownOpen','source','Show\x20more\x20items','children','bind','class','name','ck-on','locale','function','extendTemplate','buttonView','execute','set','isReady','find','isActionsDropdownOpen','map','_action','isVisible','first','action','Name\x20this\x20revision','bindTemplate','listenTo','add','ck-revision-history-sidebar__revision__actions','panelPosition','isOpen','isEnabled','Compare\x20against\x20selected'];(function(_0x5d59d9,_0x280ae4){const _0x3e993f=function(_0x2fcac0){while(--_0x2fcac0){_0x5d59d9['push'](_0x5d59d9['shift']());}};_0x3e993f(++_0x280ae4);}(_0x280a,0x1ec));const _0x3e99=function(_0x5d59d9,_0x280ae4){_0x5d59d9=_0x5d59d9-0x0;let _0x3e993f=_0x280a[_0x5d59d9];return _0x3e993f;};import{Collection as _0x218c8d}from'ckeditor5/src/utils';import{Model as _0x64c827,addListToDropdown as _0x1459b6,createDropdown as _0x171d1c}from'ckeditor5/src/ui';import{getTranslation as _0x1fd60e}from'../../utils/common-translations';import _0x1c9734 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4672e4,_0x2267e0){const _0x17ce89=_0x4672e4[_0x3e99('0x1b')],_0x1ae259=_0x4672e4[_0x3e99('0xc')],_0x45e729=_0x171d1c(_0x1ae259);_0x45e729[_0x3e99('0x0')]='sw';const _0x15f100=function(_0x45406b,_0x3dfd1a){const _0x27177d=function(_0x2f20d2,_0x424118){const _0x5a23ce=_0x2f20d2['locale'],_0x37204e={'Compare\x20against\x20selected':_0x1fd60e(_0x5a23ce,_0x3e99('0x3')),'Name\x20this\x20revision':_0x1fd60e(_0x5a23ce,_0x3e99('0x1a')),'Restore\x20this\x20revision':_0x1fd60e(_0x5a23ce,'Restore\x20this\x20revision')};return _0x424118[_0x3e99('0x15')](_0x2166e3=>{const _0x415525=_0x37204e[_0x2166e3[_0x3e99('0xa')]];return _0x415525&&_0x415525!==_0x2166e3[_0x3e99('0xa')]&&(_0x2166e3[_0x3e99('0xa')]=_0x415525),_0x2166e3;});}(_0x45406b,_0x3dfd1a),_0x15b042=new _0x218c8d();for(const _0xe40ffe of _0x27177d){const _0x594c53={'type':'button','model':new _0x64c827({'label':_0xe40ffe[_0x3e99('0xa')],'class':_0xe40ffe[_0x3e99('0x9')],'withText':!0x0,'_action':_0xe40ffe[_0x3e99('0x19')]})};_0x594c53['model'][_0x3e99('0x8')](_0x3e99('0x2'))['to'](_0x45406b,_0x3e99('0x14'),_0x313422=>'function'!=typeof _0xe40ffe[_0x3e99('0x2')]||(!_0x313422||_0xe40ffe[_0x3e99('0x2')](_0x45406b))),_0x15b042[_0x3e99('0x1d')](_0x594c53);}return _0x15b042;}(_0x4672e4,_0x2267e0);return _0x4672e4['bind'](_0x3e99('0x14'))['to'](_0x45e729,_0x3e99('0x1')),_0x45e729[_0x3e99('0xf')][_0x3e99('0x11')]({'label':_0x1fd60e(_0x1ae259,_0x3e99('0x6')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c9734}),_0x45e729[_0x3e99('0xe')]({'attributes':{'class':[_0x3e99('0x1e'),_0x17ce89['if']('isActionsDropdownOpen',_0x3e99('0xb'))]},'on':{'click':_0x17ce89['to'](_0x32c636=>_0x32c636['stopPropagation']())}}),_0x45e729['on'](_0x3e99('0x10'),_0x418270=>{_0x4672e4[_0x3e99('0x12')]&&_0x3e99('0xd')==typeof _0x418270[_0x3e99('0x5')]['_action']&&_0x418270[_0x3e99('0x5')][_0x3e99('0x16')](_0x4672e4);}),_0x1459b6(_0x45e729,_0x15f100),_0x45e729[_0x3e99('0x1c')](_0x4672e4,_0x3e99('0x4'),(_0x4a6d10,_0x2e76de,_0x5793d5)=>{if(_0x5793d5)for(const _0x54f3d7 of _0x45e729['listView']['items']){const _0x4a40bc=_0x54f3d7[_0x3e99('0x7')][_0x3e99('0x18')],_0x10b438=_0x2267e0[_0x3e99('0x13')](_0x520c36=>_0x520c36[_0x3e99('0x19')]===_0x4a40bc[_0x3e99('0x16')])[_0x3e99('0x17')];_0x54f3d7[_0x3e99('0x17')]=void 0x0===_0x10b438||_0x10b438(_0x4672e4);}}),_0x45e729;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x466d=['0\x200\x2011\x2010','Revision\x20author','push','Revision\x20creator','span','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author','set','setTemplate'];(function(_0x207056,_0x466df2){const _0x231451=function(_0xb31150){while(--_0xb31150){_0x207056['push'](_0x207056['shift']());}};_0x231451(++_0x466df2);}(_0x466d,0xec));const _0x2314=function(_0x207056,_0x466df2){_0x207056=_0x207056-0x0;let _0x231451=_0x466d[_0x207056];return _0x231451;};import{View as _0x4305ec,IconView as _0x54168a}from'ckeditor5/src/ui';import{getTranslation as _0x2a5e4b}from'../../utils/common-translations';import _0x5cd4ac from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x4305ec{constructor(_0xe11948,_0x299d04,_0x4ed4f3){super(_0xe11948);const _0xe92351=new _0x54168a(_0xe11948);_0xe92351[_0x2314('0x5')]({'content':_0x5cd4ac,'viewBox':_0x2314('0x7')});const _0x1b823a=['ck',_0x2314('0x4')];_0x4ed4f3&&_0x1b823a[_0x2314('0x0')](_0x2314('0x3'));const _0x34aec6=[{'tag':_0x2314('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x2a5e4b(_0xe11948,_0x4ed4f3?_0x2314('0x1'):_0x2314('0x8'))},'children':[_0xe92351,_0x299d04['name']]}];this[_0x2314('0x6')]({'tag':'li','attributes':{'class':_0x1b823a},'children':_0x34aec6});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x20ec=['extendTemplate','set','Revision\x20name','ck-revision-history-sidebar__revision-name','span'];(function(_0x28c754,_0x20ec73){var _0x15307f=function(_0x5ef457){while(--_0x5ef457){_0x28c754['push'](_0x28c754['shift']());}};_0x15307f(++_0x20ec73);}(_0x20ec,0x10f));var _0x1530=function(_0x28c754,_0x20ec73){_0x28c754=_0x28c754-0x0;var _0x15307f=_0x20ec[_0x28c754];return _0x15307f;};import{LabeledFieldView as _0x1d325d}from'ckeditor5/src/ui';import{getTranslation as _0x222ae9}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x1d325d{constructor(_0x584776,..._0x598ebb){super(_0x584776,..._0x598ebb),this[_0x1530('0x0')]({'label':_0x222ae9(_0x584776,_0x1530('0x1'))}),this[_0x1530('0x4')]({'tag':_0x1530('0x3'),'attributes':{'class':[_0x1530('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x282b=['isHighlighted','ck-reset','_revision','value','uiLanguage','change','listenTo','ck-revision-history-sidebar__actions_dropdown_open','unhighlight','ck-disabled','extendTemplate','isSelected','ck-revision-history-sidebar__revision','.ck-thread__remove-confirm','fire','from','creator','filter','name','div','element','ck-revision-history-sidebar__revision_selected','setTemplate','ck-revision-history-sidebar__revision__date','select','length','highlight','placeholder','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','closest','fieldView','srcElement','bind','render','revisionActionsView','setName','authors','_createdAtFormatted','isConfirm','220','ck-revision-history-sidebar__revision-wrapper','isActionsDropdownOpen','isReady','ck-revision-history-sidebar__revision__controls-wrapper','set','isEnabled','revisionNameView','ck-revision-history-sidebar__revision_highlighted'];(function(_0x305775,_0x282b19){const _0x75f602=function(_0x1fc6ce){while(--_0x1fc6ce){_0x305775['push'](_0x305775['shift']());}};_0x75f602(++_0x282b19);}(_0x282b,0x12f));const _0x75f6=function(_0x305775,_0x282b19){_0x305775=_0x305775-0x0;let _0x75f602=_0x282b[_0x305775];return _0x75f602;};import{View as _0x433eec,createLabeledInputText as _0x4aaefe}from'ckeditor5/src/ui';import{mix as _0x123bff}from'ckeditor5/src/utils';import{ConfirmMixin as _0x19b2aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a5fc3 from'./revisionnameview';import _0x59616a from'./revisionauthorview';import{dateToPrettyFormat as _0x1aa6fc}from'./utils';import{createActionsDropdownView as _0x41d19c}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x433eec{constructor(_0x20fa3f,_0x3bffab,_0x51ad29){super(_0x20fa3f);const _0x33b690=this['bindTemplate'],_0x3a67ac=function(_0x15a11f,_0x20f091){const _0x43932c=Array[_0x75f6('0x0')](_0x20f091[_0x75f6('0x15')])[_0x75f6('0x2')](_0x1b7eb4=>_0x1b7eb4!=_0x20f091[_0x75f6('0x1')]);return _0x20f091[_0x75f6('0x1')]&&_0x43932c['unshift'](_0x20f091[_0x75f6('0x1')]),_0x43932c['map'](_0x34a79f=>new _0x59616a(_0x15a11f,_0x34a79f,_0x34a79f==_0x20f091[_0x75f6('0x1')]));}(_0x20fa3f,_0x3bffab);this[_0x75f6('0x23')]=_0x3bffab,this['id']=_0x3bffab['id'],this[_0x75f6('0x11')]('name','createdAt')['to'](_0x3bffab),this[_0x75f6('0x1d')](_0x75f6('0x2c'),!0x1),this[_0x75f6('0x1d')](_0x75f6('0x21'),!0x1),this[_0x75f6('0x1d')](_0x75f6('0x1a'),!0x1),this[_0x75f6('0x1d')](_0x75f6('0x1b'),!0x1),this[_0x75f6('0x11')]('_createdAtFormatted')['to'](this,'createdAt',_0x72c9e1=>_0x72c9e1?_0x1aa6fc(_0x20fa3f[_0x75f6('0x25')],_0x72c9e1):null),this[_0x75f6('0x1d')](_0x75f6('0x1e'),!0x1),this['revisionNameView']=new _0x4a5fc3(_0x20fa3f,_0x4aaefe),this[_0x75f6('0x1f')][_0x75f6('0xf')][_0x75f6('0x2b')]({'attributes':{'maxlength':_0x75f6('0x18')}}),this['revisionNameView']['fieldView'][_0x75f6('0x11')](_0x75f6('0x24'),_0x75f6('0xc'))['to'](this,_0x75f6('0x3'),_0x75f6('0x16')),this[_0x75f6('0x1f')][_0x75f6('0x11')](_0x75f6('0x1e'))['to'](this,_0x75f6('0x2c'),this,'isEnabled',(_0x5d62a1,_0x32633b)=>_0x5d62a1&&_0x32633b),this[_0x75f6('0x13')]=_0x51ad29&&_0x51ad29[_0x75f6('0xa')]?_0x41d19c(this,_0x51ad29):'',this['revisionActionsView']['bind'](_0x75f6('0x1e'))['to'](this),this[_0x75f6('0x7')]({'tag':_0x75f6('0x4'),'attributes':{'class':['ck',_0x75f6('0x22'),_0x75f6('0x19'),_0x33b690['if'](_0x75f6('0x17'),_0x75f6('0xd'))]},'children':[{'tag':_0x75f6('0x4'),'attributes':{'class':['ck',_0x75f6('0x22'),_0x75f6('0x2d'),_0x33b690['if'](_0x75f6('0x1e'),_0x75f6('0x2a'),_0x5dafd5=>!_0x5dafd5),_0x33b690['if'](_0x75f6('0x2c'),_0x75f6('0x6')),_0x33b690['if']('isHighlighted',_0x75f6('0x20')),_0x33b690['if']('isActionsDropdownOpen',_0x75f6('0x28'))]},'children':[this[_0x75f6('0x1f')],{'tag':'span','attributes':{'class':['ck',_0x75f6('0x8')]},'children':[{'text':_0x33b690['to'](_0x75f6('0x16'))}]},{'tag':'div','attributes':{'class':['ck',_0x75f6('0x1c')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x3a67ac}]},this[_0x75f6('0x13')]],'on':{'click':_0x33b690['to'](_0x2616b8=>{_0x2616b8[_0x75f6('0x10')][_0x75f6('0xe')](_0x75f6('0x2e'))||this['isReady']&&this['isEnabled']&&this[_0x75f6('0x2f')](_0x75f6('0x9'),{'id':this['id']});})}}]});}[_0x75f6('0x12')](){super[_0x75f6('0x12')]();const _0x396eae=this[_0x75f6('0x1f')][_0x75f6('0xf')][_0x75f6('0x5')];this[_0x75f6('0x27')](_0x396eae,_0x75f6('0x26'),()=>{this['fire'](_0x75f6('0x14'),{'id':this['id'],'name':_0x396eae[_0x75f6('0x24')]});});}[_0x75f6('0x9')](){this[_0x75f6('0x2c')]=!0x0;}['deselect'](){this[_0x75f6('0x2c')]=!0x1;}[_0x75f6('0xb')](){this['isHighlighted']=!0x0;}[_0x75f6('0x29')](){this[_0x75f6('0x21')]=!0x1;}}_0x123bff(ci,_0x19b2aa);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49f1=['toggle','_isCollapsed','true','span','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser_collapsed','false','isVisible','set','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','ck-hidden','setTemplate'];(function(_0x4a12a7,_0x49f11d){const _0x38e6ea=function(_0x419f2f){while(--_0x419f2f){_0x4a12a7['push'](_0x4a12a7['shift']());}};_0x38e6ea(++_0x49f11d);}(_0x49f1,0x19b));const _0x38e6=function(_0x4a12a7,_0x49f11d){_0x4a12a7=_0x4a12a7-0x0;let _0x38e6ea=_0x49f1[_0x4a12a7];return _0x38e6ea;};import{View as _0x471f17}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x471f17{constructor(_0x230fb9){super(_0x230fb9);const _0x424d36=this[_0x38e6('0x2')];this[_0x38e6('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x38e6('0x4')]({'tag':'span','attributes':{'class':['ck',_0x38e6('0x9'),_0x424d36['if'](_0x38e6('0xc'),_0x38e6('0x3'),_0x51407a=>!_0x51407a),_0x424d36['if']('_isCollapsed',_0x38e6('0xa'))],'role':'button','aria-pressed':_0x424d36['to'](_0x38e6('0x6'),_0x482abf=>_0x482abf?_0x38e6('0xb'):_0x38e6('0x7'))},'children':[{'tag':_0x38e6('0x8'),'attributes':{'class':['ck',_0x38e6('0x1')]}}],'on':{'click':_0x424d36['to']('click')}});}[_0x38e6('0x5')](){this[_0x38e6('0x6')]=!this[_0x38e6('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5916=['div','ck-revision-history-sidebar__subrevision','isSelected','deselect','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision_selected','bind','select','ck-revision-history-sidebar__revision','createdAt','setTemplate','span','ck-reset','set','_parentRevisionId','author','_createdAtFormatted'];(function(_0x4fb7e1,_0x59167f){const _0xebe9ca=function(_0x3447ab){while(--_0x3447ab){_0x4fb7e1['push'](_0x4fb7e1['shift']());}};_0xebe9ca(++_0x59167f);}(_0x5916,0x1b3));const _0xebe9=function(_0x4fb7e1,_0x59167f){_0x4fb7e1=_0x4fb7e1-0x0;let _0xebe9ca=_0x5916[_0x4fb7e1];return _0xebe9ca;};import{View as _0x3d1399}from'ckeditor5/src/ui';import _0x45fa6a from'./revisionauthorview';import{dateToPrettyFormat as _0x14f764}from'./utils';import'../../../theme/revision/subrevision.css';export default class dt extends _0x3d1399{constructor(_0x11804f,_0x16ef63,_0x441bef){super(_0x11804f);const _0x357456=this['bindTemplate'];this['id']=_0x16ef63['id'],this['bind'](_0xebe9('0x7'))['to'](_0x16ef63),this[_0xebe9('0xb')](_0xebe9('0x11'),!0x1),this[_0xebe9('0x4')](_0xebe9('0xe'))['to'](this,_0xebe9('0x7'),_0x1a548e=>_0x1a548e?_0x14f764(_0x11804f['uiLanguage'],_0x1a548e):null),this[_0xebe9('0xc')]=_0x441bef,this[_0xebe9('0x8')]({'tag':_0xebe9('0xf'),'attributes':{'class':['ck',_0xebe9('0xa'),_0xebe9('0x6'),_0xebe9('0x10'),_0x357456['if'](_0xebe9('0x11'),_0xebe9('0x3'))]},'children':[{'tag':_0xebe9('0x9'),'attributes':{'class':['ck',_0xebe9('0x2')]},'children':[{'text':_0x357456['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0xebe9('0x1')]},'children':[new _0x45fa6a(_0x11804f,_0x16ef63[_0xebe9('0xd')],!0x0)]}],'on':{'click':_0x357456['to'](this[_0xebe9('0x5')][_0xebe9('0x4')](this))}});}['select'](){this['isSelected']=!0x0,this['fire'](_0xebe9('0x5'),{'parentId':this[_0xebe9('0xc')]});}[_0xebe9('0x0')](){this[_0xebe9('0x11')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3436=['numeric'];(function(_0x1756c9,_0x3436e6){var _0x4d12e7=function(_0x4b85fd){while(--_0x4b85fd){_0x1756c9['push'](_0x1756c9['shift']());}};_0x4d12e7(++_0x3436e6);}(_0x3436,0xc6));var _0x4d12=function(_0x1756c9,_0x3436e6){_0x1756c9=_0x1756c9-0x0;var _0x4d12e7=_0x3436[_0x1756c9];return _0x4d12e7;};export function dateToPrettyFormat(_0x4f9f3c,_0x46a533){return _0x46a533['toLocaleDateString'](_0x4f9f3c,{'month':'long','day':'numeric'})+',\x20'+_0x46a533['toLocaleTimeString'](_0x4f9f3c,{'hour':_0x4d12('0x0'),'minute':_0x4d12('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49eb=['arrowup','render','focusTracker','cancelButtonView','_createButton','_focusables','execute','submit','add','revisionNameInputValue','element','focusFirst','value','input','selectstart','locale','extendTemplate','ck-button-save','Save','arrowright','form','revisionNameInputView','set','trim','keystrokes','fieldView','220','saveButtonView','label','ck-revision-history-save-revision-form','setTemplate','Name\x20of\x20the\x20revision\x20(optional)','_focusCycler','ck-button-cancel','delegate','forEach','revisionName','type','ck-responsive-form','high','shift\x20+\x20tab','cancel','listenTo'];(function(_0x3be912,_0x49ebb6){const _0xf87123=function(_0x55b015){while(--_0x55b015){_0x3be912['push'](_0x3be912['shift']());}};_0xf87123(++_0x49ebb6);}(_0x49eb,0x15f));const _0xf871=function(_0x3be912,_0x49ebb6){_0x3be912=_0x3be912-0x0;let _0xf87123=_0x49eb[_0x3be912];return _0xf87123;};import{ButtonView as _0x448034,FocusCycler as _0x373833,LabeledFieldView as _0xa498c4,View as _0x38f84a,ViewCollection as _0x3e163d,createLabeledInputText as _0x591946,injectCssTransitionDisabler as _0x47ce00,submitHandler as _0x922eb2}from'ckeditor5/src/ui';import{FocusTracker as _0x183e72,KeystrokeHandler as _0x13bdf2}from'ckeditor5/src/utils';import{getTranslation as _0x5d3736}from'../../utils/common-translations';import _0x4ec74c from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x2924f7 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class gt extends _0x38f84a{constructor(_0xd91f31){super(_0xd91f31),this['focusTracker']=new _0x183e72(),this[_0xf871('0x11')]=new _0x13bdf2(),this['set'](_0xf871('0x2'),''),this[_0xf871('0xe')]=this['_createRevisionNameInput'](),this[_0xf871('0x14')]=this[_0xf871('0x28')](_0x5d3736(_0xd91f31,_0xf871('0xb')),_0x4ec74c,_0xf871('0xa')),this[_0xf871('0x14')][_0xf871('0x1e')]=_0xf871('0x0'),this['cancelButtonView']=this['_createButton'](_0x5d3736(_0xd91f31,'Cancel'),_0x2924f7,_0xf871('0x1a'),_0xf871('0x22')),this['_focusables']=new _0x3e163d(),this['_focusCycler']=new _0x373833({'focusables':this[_0xf871('0x29')],'focusTracker':this[_0xf871('0x26')],'keystrokeHandler':this[_0xf871('0x11')],'actions':{'focusPrevious':_0xf871('0x21'),'focusNext':'tab'}}),this[_0xf871('0x17')]({'tag':_0xf871('0xd'),'attributes':{'class':['ck',_0xf871('0x16'),_0xf871('0x1f')],'tabindex':'-1'},'children':[this[_0xf871('0xe')],this[_0xf871('0x14')],this[_0xf871('0x27')]]}),_0x47ce00(this);}[_0xf871('0x25')](){super[_0xf871('0x25')](),_0x922eb2({'view':this}),([this[_0xf871('0xe')],this[_0xf871('0x14')],this[_0xf871('0x27')]][_0xf871('0x1c')](_0x81280a=>{this[_0xf871('0x29')][_0xf871('0x1')](_0x81280a),this[_0xf871('0x26')][_0xf871('0x1')](_0x81280a['element']);}),this[_0xf871('0x11')][_0xf871('0x23')](this[_0xf871('0x3')]));const _0x23c028=_0x2e1a9a=>_0x2e1a9a['stopPropagation']();this[_0xf871('0x11')]['set'](_0xf871('0xc'),_0x23c028),this[_0xf871('0x11')][_0xf871('0xf')]('arrowleft',_0x23c028),this[_0xf871('0x11')][_0xf871('0xf')](_0xf871('0x24'),_0x23c028),this[_0xf871('0x11')]['set']('arrowdown',_0x23c028),this['listenTo'](this[_0xf871('0xe')]['element'],_0xf871('0x7'),(_0x4cc773,_0x347acc)=>{_0x347acc['stopPropagation']();},{'priority':_0xf871('0x20')});}['focus'](){this[_0xf871('0x19')][_0xf871('0x4')]();}get[_0xf871('0x1d')](){return this[_0xf871('0xe')][_0xf871('0x12')]['element'][_0xf871('0x5')][_0xf871('0x10')]();}set[_0xf871('0x1d')](_0x48a02d){this['revisionNameInputView'][_0xf871('0x12')][_0xf871('0x3')]['value']=_0x48a02d[_0xf871('0x10')]();}['reset'](){this[_0xf871('0xe')][_0xf871('0x12')][_0xf871('0x3')][_0xf871('0x5')]='';}['_createRevisionNameInput'](){const _0x397a41=new _0xa498c4(this[_0xf871('0x8')],_0x591946),_0x7798c6=_0x397a41['fieldView'];return _0x7798c6[_0xf871('0x9')]({'attributes':{'maxlength':_0xf871('0x13')}}),_0x397a41[_0xf871('0x15')]=_0x5d3736(this[_0xf871('0x8')],_0xf871('0x18')),_0x7798c6['on'](_0xf871('0x6'),()=>{this[_0xf871('0x2')]=_0x7798c6[_0xf871('0x3')]['value'][_0xf871('0x10')]();}),_0x397a41;}[_0xf871('0x28')](_0x4b5163,_0xda8fb1,_0x145642,_0x19c4d5){const _0x41d208=new _0x448034(this['locale']);return _0x41d208['set']({'label':_0x4b5163,'icon':_0xda8fb1,'tooltip':!0x0}),_0x41d208[_0xf871('0x9')]({'attributes':{'class':_0x145642}}),_0x19c4d5&&_0x41d208[_0xf871('0x1b')](_0xf871('0x2a'))['to'](this,_0x19c4d5),_0x41d208;}}
|