@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231006.0 → 0.0.0-nightly-20231008.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- 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 _0x235a=['_getRevisionsRange','sort','getRevision','isAdded','comment','createRangeIn','_threeWayMerge','compare','_findChangeIdFromDomTarget','type','domConverter','revisionHistoryLabel','createUIElement','toViewElement','hasAttribute','toViewPosition','nodeAfter','element:pre','low','top','deletion','data-change-id','_removeUnsupportedChanges','addClass','getChild','activeView','isRemoveSuggestion','toData','addRevisionData','bindElementToMarker','insertion','RevisionsRepository','affectsData','startIndex','isSuggestion','_initInteractions','forward','view','isInline','isOnRoot','forEach','mouseover','destroy','clear','_markMarkers','setAttribute','createAttributeElement','add','newRevisionId','dataDowncast','addMarker:revision-suggestion:insertion','vid_start','addHighlight','attributesAfter','markers','_markSuggestions','ck-revision-history-root-remove','isCollapsed','concat','plugins','activeChange','upcast','uiElement','changeId','_fixObsoleteTags','ck-suggestion-preview-marker','flat','isAttached','endIndex','isBefore','_balloon','markersEnd','_changeIdToChange','children','split','parse','_activeViewTarget','change:activeChange','suggestion','left','ck-suggestion-marker-split','collaboration.channelId','data','next','_markMismatchedRemovedTags','isObject','config','toViewRange','default','isAfter','_getChangeFromId','distance','vid_end','schema','revision','isLimit','dataToMarker','RevisionViewer','right','span','mapper','roots','_joinTapes','revision-suggestion:','change:activeView','_makeModelFromViewString','removeMarker:revision-suggestion','ck-suggestion-marker-','name','_makeTape','high','vid','isIncorrect','find','WidgetToolbarRepository','highest','refresh','pairId','_cleanUp','ck-revision-history-root--active','editing','_removeRevisionMarkers','findIndex','revision-viewer','set','_getDiff','unshift','isContent','length','hasClass','merge','POSITIVE_INFINITY','end','showNextChange','addMarker:revision-suggestion:deletion','previousPosition','addRevision','writer','adapter','_appendChild','isReady','bottom','loadRevisionData','numberOfChanges','_setChanges','_refreshStartEndIndex','_update','elementEnd','elementStart','modelRange','changes','from','offsetSize','shift','abs','getCustomProperty','push','domEvent','selection','restoreRevisionCallback','insertions','index','values','enqueueChange','checkAttribute','removeMarker','ck-editor__editable__overlay','get','element','_step','test','repository','deletions','markerToData','createPositionFromPath','parent','_revisions','attributesBefore','model','isRemoved','pop','consume','_removeMissingPairs','resolve','markerName','conversion','return','getIndex','catch','change:isEnabled','consumable','useFillerType','isEnabled','side','oldRevisionId','pluginName','string','startsWith','currentChangeNumber','getClientRects','_processTape','data-revision-','downcastDispatcher','stop','getRootNames','markersStart','markerRange','getWalker','_markInsertions','item','isBlock','for','userId','_cleanMarkers','updatePosition','-new','nextSibling','createRange','wrap','revision:','done','restoreRevision','_sortAndFilterDiffChanges','processor','reconvertMarker','object','locale','listenTo','bind','getAttribute','mapViewToDom','_setConversion','isAddSuggestion','getRoot','observeMarkers','showPreviousChange','marked','requires','createPositionBefore','change','unbindElementFromMarkerName','markerNameToElements','nextPosition','_changeView','editingDowncast','insert','indexOf','attachChange','diffData','_getViewObj','ck-suggestion-marker--active','splice','level','detachRoot','editor','isAtEnd','attributes','removeClass','remove','isEqual','map','addRoot','then','filter','_setDistance','document','revision-suggestion','start','change:isReady','revisionHistoryAttachChange','markerToHighlight','createRevision','slice','error','has','_makeModelFromTape','getDomRoot','ck-suggestion-preview-marker-','viewItem','attribute:vid','addMarker:revision','_getViewForChange','rootName','delete','includes','commands','keys','isAtStart','getAttributes','revisionHistory','text','isNavigationMode','ck-revision-history-root-add','diff'];(function(_0x35a48b,_0x235a76){const _0x15a650=function(_0x1070a4){while(--_0x1070a4){_0x35a48b['push'](_0x35a48b['shift']());}};_0x15a650(++_0x235a76);}(_0x235a,0x145));const _0x15a6=function(_0x35a48b,_0x235a76){_0x35a48b=_0x35a48b-0x0;let _0x15a650=_0x235a[_0x35a48b];return _0x15a650;};import{Plugin as _0x484acf,Command as _0x64b08}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3117ae}from'ckeditor5/src/utils';import{ContextualBalloon as _0xa75035}from'ckeditor5/src/ui';import{DocumentFragment as _0x3b6f74,Element as _0x5770d2,Text as _0x4de0b2,ViewDocumentFragment as _0x1a1b45,ViewText as _0xc36790,ViewElement as _0x45b95c,ViewContainerElement as _0x24d480,ViewAttributeElement as _0x20a51d,ViewEmptyElement as _0x5989c1,ViewRawElement as _0x35bb69,ViewUIElement as _0x259bc9}from'ckeditor5/src/engine';import{Users as _0x3c63ef,getMarkerDomElement as _0x3e8826}from'ckeditor5-collaboration/src/collaboration-core';import _0x13ee47 from'./ui/revisionviewer/changedetailsview';import _0x387cb0 from'./revisionsrepository';import _0x162c8f from'./changeitem';import{default as _0x523f0d}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x539880}from'lodash-es';const tt={'c':_0x24d480,'a':_0x20a51d,'e':_0x5989c1,'r':_0x35bb69,'u':_0x259bc9};export default class d extends _0x484acf{static get[_0x15a6('0xa4')](){return'RevisionViewer';}static get[_0x15a6('0xce')](){return[_0x3c63ef,_0xa75035,_0x387cb0];}constructor(_0x43bd81){super(_0x43bd81),this['repository']=this['editor'][_0x15a6('0x1c')]['get'](_0x15a6('0x0')),this[_0x15a6('0x5d')](_0x15a6('0x1d'),null),this['set'](_0x15a6('0x120'),null),this[_0x15a6('0x2d')]=null,this[_0x15a6('0x5d')](_0x15a6('0x106'),null),this['set'](_0x15a6('0x6d'),!0x1),this[_0x15a6('0x5d')](_0x15a6('0xa1'),!0x0),this['on'](_0x15a6('0x9e'),(_0x5532e6,_0xb8ad3f,_0x16c159)=>{this['activeChange']=null,this['activeView']=null,this[_0x15a6('0xdf')]['editing'][_0x15a6('0x6')][_0x15a6('0xd0')](_0x1f133c=>{for(const _0xab415b of this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0x6')][_0x15a6('0xea')][_0x15a6('0x46')])_0x16c159?_0x1f133c[_0x15a6('0xe2')](_0x15a6('0x87'),_0xab415b):_0x1f133c[_0x15a6('0x11e')](_0x15a6('0x87'),_0xab415b);});}),this[_0x15a6('0xc5')](_0x15a6('0x104'))['to'](this,_0x15a6('0x1d'),_0x1b1a87=>null!==_0x1b1a87),this[_0x15a6('0xc5')](_0x15a6('0xa7'))['to'](this,_0x15a6('0x6d'),this,_0x15a6('0x106'),this,'activeChange',(_0x89774c,_0x4c391e,_0x1e6942)=>_0x89774c&&_0x1e6942?_0x4c391e[_0x15a6('0x77')][_0x15a6('0x9c')](_0x1e6942):0x0),this['bind'](_0x15a6('0x70'))['to'](this,_0x15a6('0x6d'),this,'diff',(_0x119065,_0x142cad)=>_0x119065?_0x142cad['changes'][_0x15a6('0x61')]:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this[_0x15a6('0x6b')]=null,this[_0x15a6('0x27')]=this[_0x15a6('0xdf')]['plugins'][_0x15a6('0x88')](_0xa75035);}['init'](){const _0x2bcd18=this[_0x15a6('0xdf')],_0x504979=new ShowChangeCommand(_0x2bcd18,{'direction':'backward'}),_0x21ea4a=new ShowChangeCommand(_0x2bcd18,{'direction':_0x15a6('0x5')});(_0x2bcd18[_0x15a6('0xfe')][_0x15a6('0x10')](_0x15a6('0xcc'),_0x504979),_0x2bcd18[_0x15a6('0xfe')][_0x15a6('0x10')](_0x15a6('0x66'),_0x21ea4a),_0x2bcd18[_0x15a6('0xfe')][_0x15a6('0x10')](_0x15a6('0xbe'),new RestoreRevisionCommand(_0x2bcd18)),this['on']('change:numberOfChanges',()=>{_0x504979['refresh'](),_0x21ea4a[_0x15a6('0x55')]();}),this[_0x15a6('0xc8')](),this[_0x15a6('0x4')](),_0x2bcd18['enableReadOnlyMode'](_0x15a6('0x5c')),_0x2bcd18[_0x15a6('0x1c')][_0x15a6('0xf3')](_0x15a6('0x53')))&&_0x2bcd18[_0x15a6('0x1c')][_0x15a6('0x88')]('WidgetToolbarRepository')['forceDisabled'](_0x15a6('0x5c'));}async['getRevisionData'](_0x43f4f3){await this[_0x15a6('0x6f')](_0x43f4f3);const _0x31d2c3={};for(const _0x240bd4 in _0x43f4f3[_0x15a6('0xd9')]){if(_0x43f4f3[_0x15a6('0xd9')][_0x240bd4]['attachChange']&&!_0x43f4f3[_0x15a6('0xd9')][_0x240bd4][_0x15a6('0xd8')][_0x15a6('0x24')])continue;const _0x35e026=this[_0x15a6('0x5a')](JSON['parse'](_0x43f4f3[_0x15a6('0xd9')][_0x240bd4][_0x15a6('0x81')])),_0x234e15=this['editor'][_0x15a6('0x59')][_0x15a6('0x6')][_0x15a6('0xea')],_0x22a561=new _0x1a1b45(_0x234e15,_0x35e026[_0x15a6('0xe5')](_0x13d1c6=>this[_0x15a6('0xda')](_0x13d1c6)));this['editor'][_0x15a6('0x33')]['processor'][_0x15a6('0xa0')](_0x15a6('0xcd')),_0x31d2c3[_0x240bd4]=this['editor'][_0x15a6('0x33')][_0x15a6('0xc0')][_0x15a6('0x122')](_0x22a561),this[_0x15a6('0xdf')][_0x15a6('0x33')][_0x15a6('0xc0')][_0x15a6('0xa0')](_0x15a6('0x39'));}return _0x31d2c3;}async['getRevisionRootsAttributes'](_0x17c7c0){await this[_0x15a6('0x6f')](_0x17c7c0);const _0xadeb06={};for(const _0x26e7f8 in _0x17c7c0[_0x15a6('0xd9')])_0x17c7c0[_0x15a6('0xd9')][_0x26e7f8][_0x15a6('0xd8')]&&!_0x17c7c0[_0x15a6('0xd9')][_0x26e7f8]['attachChange'][_0x15a6('0x24')]||(_0xadeb06[_0x26e7f8]=_0x17c7c0[_0x15a6('0xd9')][_0x26e7f8]['attributesAfter']||{});return _0xadeb06;}[_0x15a6('0x5a')](_0x3745a2){return(_0x3745a2=_0x3745a2['filter'](_0x7af357=>!_0x7af357['name']||'revision-start'!==_0x7af357['name']&&'revision-end'!==_0x7af357[_0x15a6('0x4d')]))[_0x15a6('0x9')](_0x3e0aa5=>{'string'!=typeof _0x3e0aa5&&(_0x3e0aa5['children']=this[_0x15a6('0x5a')](_0x3e0aa5[_0x15a6('0x2a')]),_0x3e0aa5[_0x15a6('0xe1')]=_0x3e0aa5[_0x15a6('0xe1')]['filter'](_0x1dee8e=>!_0x1dee8e[0x0][_0x15a6('0xa6')](_0x15a6('0xaa'))));}),_0x3745a2;}async[_0x15a6('0x10e')](_0x203674,_0x305f15,_0x3edb53=!0x1){if(!this[_0x15a6('0xa1')])return;const _0x3ec5a1=this[_0x15a6('0x106')],_0x59eb74=this['repository'],_0x217c70=_0x15a6('0xa5')==typeof _0x203674?_0x59eb74['getRevision'](_0x203674):_0x203674,_0x24f9d6=_0x15a6('0xa5')==typeof _0x305f15?_0x59eb74['getRevision'](_0x305f15):_0x305f15,_0x3d5857=_0x217c70['id'],_0x267634=_0x24f9d6?_0x24f9d6['id']:null;if(!_0x3edb53&&this['diff']&&this[_0x15a6('0x106')]['newRevisionId']===_0x3d5857&&this[_0x15a6('0x106')][_0x15a6('0xa3')]===_0x267634)return Promise['resolve']();this['isReady']=!0x1,this[_0x15a6('0x120')]=null,this[_0x15a6('0x1d')]=null,this[_0x15a6('0x106')]=new _0x523f0d(_0x3d5857,_0x267634);const _0x1f8560=this[_0x15a6('0x107')](_0x217c70,_0x24f9d6,!0x0)[_0x15a6('0xe5')](_0x2124af=>this['loadRevisionData'](_0x2124af));return _0x1f8560[_0x15a6('0x7d')](new Promise(_0x33340b=>{setTimeout(_0x33340b,0x14);})),Promise['all'](_0x1f8560)[_0x15a6('0xe7')](()=>{if(!this['isEnabled'])return;this[_0x15a6('0x57')]();const _0x187df0=this[_0x15a6('0x5e')](_0x3d5857,_0x267634);for(const _0x3b0694 of _0x187df0[_0x15a6('0x77')])this[_0x15a6('0x29')][_0x15a6('0x5d')](_0x3b0694['id'],_0x3b0694);this[_0x15a6('0xdf')]['model']['enqueueChange']({'isUndoable':!0x1},_0x2ee3a6=>{for(const _0x614fb2 of this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xea')]['getRootNames']())_0x2ee3a6[_0x15a6('0xde')](_0x614fb2);for(const _0x56ee08 of Object[_0x15a6('0xff')](_0x187df0['model'])){const _0x4d53c8=_0x2ee3a6[_0x15a6('0xe6')](_0x56ee08);for(const _0x9a936a of Object['keys'](_0x187df0['attributes'][_0x56ee08]))_0x2ee3a6[_0x15a6('0xe')](_0x9a936a,_0x187df0[_0x15a6('0xe1')][_0x56ee08][_0x9a936a],_0x4d53c8);_0x2ee3a6[_0x15a6('0xd6')](_0x187df0[_0x15a6('0x93')][_0x56ee08],_0x4d53c8,0x0);}}),this[_0x15a6('0x106')][_0x15a6('0x71')](this[_0x15a6('0xbf')](_0x187df0['changes'])),this[_0x15a6('0x6d')]=!0x0;})[_0x15a6('0x9d')](_0x59b51d=>{console[_0x15a6('0xf2')](_0x59b51d),this['_cleanUp'](),_0x3ec5a1&&(this[_0x15a6('0x106')]=_0x3ec5a1),this[_0x15a6('0x6d')]=!0x0;});}[_0x15a6('0x123')](_0x1a7141,_0x21901e){const _0x313b8f=this[_0x15a6('0x8c')][_0x15a6('0xf0')](_0x1a7141);return _0x313b8f['on'](_0x15a6('0x73'),(_0x148244,_0x4ee99f,_0x4f909d)=>_0x21901e(_0x4ee99f,_0x4f909d,_0x313b8f)),this['repository'][_0x15a6('0x69')](_0x313b8f),_0x313b8f;}[_0x15a6('0x6f')](_0x8c354a){if(!_0x8c354a||_0x8c354a[_0x15a6('0xd9')])return Promise[_0x15a6('0x98')]();{const _0x297029=this[_0x15a6('0xdf')][_0x15a6('0x37')][_0x15a6('0x88')](_0x15a6('0x32'));return this[_0x15a6('0x6b')]['getRevision']({'channelId':_0x297029,'revisionId':_0x8c354a['id']})[_0x15a6('0xe7')](_0x29e5cc=>{_0x8c354a[_0x15a6('0x73')]({'diffData':_0x29e5cc[_0x15a6('0xd9')]},!0x0);});}}[_0x15a6('0x57')](){this[_0x15a6('0x1d')]=null,this[_0x15a6('0xb6')](),this[_0x15a6('0xd4')]&&this[_0x15a6('0xd4')][_0x15a6('0xb')](),this['_changeView']=null,this[_0x15a6('0x29')][_0x15a6('0xc')](),this[_0x15a6('0xdf')]['model'][_0x15a6('0x84')]({'isUndoable':!0x1},_0x5c4870=>{for(const _0x3e4a42 of this[_0x15a6('0xdf')][_0x15a6('0x93')]['document'][_0x15a6('0xad')]())_0x5c4870[_0x15a6('0xde')](_0x3e4a42);});}['_sortAndFilterDiffChanges'](_0xb0c1b9){const _0x1fa58c=[],_0x3fb61c=new Map();for(const _0x57387a of this['editor']['model'][_0x15a6('0xea')][_0x15a6('0xad')]()){const _0x340376=this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0x6')][_0x15a6('0xf5')](_0x57387a);if(!_0x340376)continue;const _0x50b6b5=_0x340376['getClientRects']()[_0x15a6('0xb2')](0x0);_0x50b6b5&&(_0x1fa58c[_0x15a6('0x7d')](_0x57387a),_0x3fb61c[_0x15a6('0x5d')](_0x57387a,_0x50b6b5));}return _0x1fa58c[_0x15a6('0x108')]((_0x374a24,_0x339232)=>{const _0x1f93d7=_0x3fb61c['get'](_0x374a24),_0xf63a8c=_0x3fb61c[_0x15a6('0x88')](_0x339232);return _0x1f93d7['y']-_0xf63a8c['y']||_0x1f93d7['x']-_0xf63a8c['x'];}),(_0xb0c1b9=_0xb0c1b9[_0x15a6('0xe8')](_0x53e24b=>_0x1fa58c[_0x15a6('0xfd')](_0x53e24b[_0x15a6('0xfb')])))[_0x15a6('0x108')]((_0x36c83a,_0x43332b)=>_0x1fa58c[_0x15a6('0xd7')](_0x36c83a[_0x15a6('0xfb')])-_0x1fa58c[_0x15a6('0xd7')](_0x43332b[_0x15a6('0xfb')])),_0xb0c1b9;}[_0x15a6('0x4e')](_0x318aee){const _0x9a5b83=Array[_0x15a6('0x78')](_0x318aee[_0x15a6('0x17')])['filter'](([_0x5f1cde,_0x32607c])=>_0x5f1cde[_0x15a6('0xa6')]('revision:')&&!_0x32607c[_0x15a6('0x1a')]),_0x1b4a78=Array[_0x15a6('0x78')](this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0x10c')](_0x318aee)[_0x15a6('0xb0')]({'singleCharacters':!0x0}));if(0x0!=_0x9a5b83['length'])for(const _0x154a7b of _0x1b4a78){const [_0x18fa01,_0x53334e]=_0x9a5b83[0x0],[,_0x51ee8d,_0xd8b552]=_0x18fa01[_0x15a6('0x2b')](':');if(_0x53334e[_0x15a6('0x65')][_0x15a6('0xe4')](_0x154a7b['nextPosition'])&&_0x9a5b83[_0x15a6('0x7a')](),(_0x154a7b[_0x15a6('0x68')]['isEqual'](_0x53334e[_0x15a6('0xec')])||_0x154a7b[_0x15a6('0x68')][_0x15a6('0x3a')](_0x53334e[_0x15a6('0xec')]))&&(_0x15a6('0x125')==_0x51ee8d?_0x154a7b[_0x15a6('0x10a')]={'userId':_0xd8b552}:'deletion'==_0x51ee8d&&(_0x154a7b[_0x15a6('0x94')]={'userId':_0xd8b552})),0x0==_0x9a5b83[_0x15a6('0x61')])break;}return _0x1b4a78;}[_0x15a6('0x72')](_0x1e8c0c){const _0x3d94c9=new Map();for(let _0x4c7143=0x0;_0x4c7143<_0x1e8c0c['length'];_0x4c7143++)_0x15a6('0x103')===_0x1e8c0c[_0x4c7143][_0x15a6('0x110')]?(_0x1e8c0c[_0x4c7143][_0x15a6('0xb2')]['startIndex']=_0x4c7143,_0x1e8c0c[_0x4c7143][_0x15a6('0xb2')][_0x15a6('0x25')]=_0x4c7143):('elementStart'===_0x1e8c0c[_0x4c7143]['type']?_0x1e8c0c[_0x4c7143][_0x15a6('0xb2')][_0x15a6('0x2')]=_0x4c7143:_0x15a6('0x74')===_0x1e8c0c[_0x4c7143][_0x15a6('0x110')]&&(_0x1e8c0c[_0x4c7143]['item'][_0x15a6('0x25')]=_0x4c7143),_0x3d94c9[_0x15a6('0x5d')](_0x1e8c0c[_0x4c7143]['id'],_0x4c7143));for(const _0x264998 of _0x3d94c9[_0x15a6('0x83')]())'elementStart'===_0x1e8c0c[_0x264998][_0x15a6('0x110')]?_0x1e8c0c[_0x264998][_0x15a6('0xb2')][_0x15a6('0x25')]=_0x3d94c9[_0x15a6('0x88')](_0x1e8c0c[_0x264998][_0x15a6('0x56')]):_0x15a6('0x74')===_0x1e8c0c[_0x264998]['type']&&(_0x1e8c0c[_0x264998][_0x15a6('0xb2')][_0x15a6('0x2')]=_0x3d94c9[_0x15a6('0x88')](_0x1e8c0c[_0x264998][_0x15a6('0x56')]));}['_processTape'](_0x5820cc){for(let _0x224dfa=0x0;_0x224dfa<_0x5820cc[_0x15a6('0x61')];_0x224dfa++){if('elementStart'===_0x5820cc[_0x224dfa][_0x15a6('0x110')])_0x5820cc[_0x224dfa][_0x15a6('0xb2')][_0x15a6('0x2')]=_0x224dfa;else{if('elementEnd'===_0x5820cc[_0x224dfa][_0x15a6('0x110')]){_0x5820cc[_0x224dfa]['item'][_0x15a6('0x25')]=_0x224dfa;const _0x567697=_0x5820cc[_0x224dfa][_0x15a6('0xb2')][_0x15a6('0x2')];_0x5820cc[_0x567697][_0x15a6('0x56')]=_0x5820cc[_0x224dfa]['id'],_0x5820cc[_0x224dfa][_0x15a6('0x56')]=_0x5820cc[_0x567697]['id'];}else _0x5820cc[_0x224dfa][_0x15a6('0xb2')][_0x15a6('0x2')]=_0x224dfa,_0x5820cc[_0x224dfa][_0x15a6('0xb2')][_0x15a6('0x25')]=_0x224dfa,_0x5820cc[_0x224dfa][_0x15a6('0x56')]=null;}_0x5820cc[_0x224dfa]['markersStart']||(_0x5820cc[_0x224dfa][_0x15a6('0xae')]=[],_0x5820cc[_0x224dfa][_0x15a6('0x28')]=[]);}}[_0x15a6('0xb1')](_0x56c7f0,_0x2b1e90){const _0x49c7a7=_0x56c7f0['filter'](_0x28ce22=>!_0x28ce22[_0x15a6('0x10a')]);for(let _0x181346=0x0;_0x181346<_0x2b1e90['length'];_0x181346++)_0x2b1e90[_0x181346][_0x15a6('0x10a')]&&(_0x49c7a7[_0x181346][_0x15a6('0x10a')]=_0x2b1e90[_0x181346]['isAdded']);}[_0x15a6('0x4a')](_0x41bb5e){const _0x39f7b8=JSON[_0x15a6('0x2c')](_0x41bb5e),_0x4d1520=this[_0x15a6('0xdf')][_0x15a6('0x59')]['view'][_0x15a6('0xea')],_0x2d9ec3=new _0x1a1b45(_0x4d1520,_0x39f7b8[_0x15a6('0xe5')](_0x27322a=>this[_0x15a6('0xda')](_0x27322a)));return this[_0x15a6('0xdf')][_0x15a6('0x33')]['toModel'](_0x2d9ec3);}[_0x15a6('0xda')](_0x41d055){const _0x15a15e=this[_0x15a6('0xdf')]['editing'][_0x15a6('0x6')]['document'];if(_0x15a6('0xa5')==typeof _0x41d055)return new _0xc36790(_0x15a15e,_0x41d055);{const _0x32f018=_0x41d055['children']['map'](_0x47a312=>this[_0x15a6('0xda')](_0x47a312));return new(tt[_0x41d055['type']]||_0x45b95c)(_0x15a15e,_0x41d055[_0x15a6('0x4d')],_0x41d055[_0x15a6('0xe1')],_0x32f018);}}[_0x15a6('0x5e')](_0x522582,_0x2e7b52=null){const _0x4c85b3=this[_0x15a6('0x8c')]['getRevision'](_0x522582),_0x2824de=_0x2e7b52?this['repository'][_0x15a6('0x109')](_0x2e7b52):null,_0x4c7184=this[_0x15a6('0x107')](_0x4c85b3,_0x2824de),_0x2e24ea=_0x4c7184[_0x4c7184[_0x15a6('0x61')]-0x1],_0x2bc940=new Map(),_0x267760={'model':{},'attributes':{},'changes':[]},_0x579795=new Set(),_0xd42d67=new Map();for(let _0x222650=_0x4c7184[_0x15a6('0x61')]-0x1;_0x222650>=0x0;_0x222650--){const _0xf6b51=_0x4c7184[_0x222650];for(const _0x513d2b of Object[_0x15a6('0xff')](_0xf6b51[_0x15a6('0xd9')]))if(_0xf6b51['diffData'][_0x513d2b][_0x15a6('0xd8')]){const _0x2a3508=_0xf6b51[_0x15a6('0xd9')][_0x513d2b][_0x15a6('0xd8')];_0x2a3508['isAttached']?(_0x579795[_0x15a6('0x10')](_0x513d2b),_0xd42d67[_0x15a6('0xf3')](_0x513d2b)&&_0xd42d67['get'](_0x513d2b)[_0x15a6('0xb5')]==_0x2a3508[_0x15a6('0xb5')]?_0xd42d67['delete'](_0x513d2b):_0xd42d67[_0x15a6('0x5d')](_0x513d2b,_0x2a3508)):_0xd42d67[_0x15a6('0xf3')](_0x513d2b)?(_0x579795[_0x15a6('0xfc')](_0x513d2b),_0xd42d67[_0x15a6('0xfc')](_0x513d2b)):(_0x579795['add'](_0x513d2b),_0xd42d67['set'](_0x513d2b,_0x2a3508));}else _0x579795[_0x15a6('0x10')](_0x513d2b);}for(const _0x19e19a of _0x579795){const _0x3a2418=_0xd42d67[_0x15a6('0xf3')](_0x19e19a)&&!_0xd42d67[_0x15a6('0x88')](_0x19e19a)[_0x15a6('0x24')];let _0x30cdfb=_0x3a2418?_0x4c7184[_0x15a6('0x61')]-0x1:0x0;const _0x3c6281=_0x3a2418?-0x1:0x1;for(;_0x4c7184[_0x30cdfb];){const _0x3bcf3f=_0x4c7184[_0x30cdfb];if(_0x3bcf3f['diffData'][_0x19e19a]){const _0x1483c1=_0x3a2418?_0x3bcf3f[_0x15a6('0xd9')][_0x19e19a][_0x15a6('0x92')]:_0x3bcf3f[_0x15a6('0xd9')][_0x19e19a][_0x15a6('0x16')];_0x267760['attributes'][_0x19e19a]=_0x1483c1?_0x539880(_0x1483c1):{};break;}_0x30cdfb+=_0x3c6281;}}for(const _0x9bb2c0 of _0x4c7184){_0x9bb2c0[_0x15a6('0x93')]={};for(const _0x12d99c of _0x9bb2c0['authors'])_0x2bc940[_0x15a6('0x5d')](_0x12d99c['id'],_0x12d99c);for(const _0x218950 of _0x579795){const _0x41f6ff=_0x9bb2c0['diffData'][_0x218950]?_0x9bb2c0[_0x15a6('0xd9')][_0x218950][_0x15a6('0x81')]:'[]',_0x4f7ac8=_0x9bb2c0[_0x15a6('0xd9')][_0x218950]?_0x9bb2c0[_0x15a6('0xd9')][_0x218950][_0x15a6('0x8d')]:'[]';_0x9bb2c0[_0x15a6('0x93')][_0x218950]={'insertions':this[_0x15a6('0x4a')](_0x41f6ff),'deletions':this['_makeModelFromViewString'](_0x4f7ac8)};}}for(const _0x5885b6 of _0x579795){let _0x46497b=null,_0x51e126=0x0;const _0x3c8a2c=new Map(Array[_0x15a6('0x78')](_0x4c85b3[_0x15a6('0x93')][_0x5885b6]['insertions'][_0x15a6('0x17')])[_0x15a6('0xe8')](([_0x30bfea])=>!_0x30bfea[_0x15a6('0xa6')](_0x15a6('0xbc'))));let _0x1e4d3b=0x0;for(const _0x467e60 of _0x4c7184){const _0x1a2f06=this[_0x15a6('0x4e')](_0x467e60[_0x15a6('0x93')][_0x5885b6][_0x15a6('0x81')]);_0x467e60==_0x4c85b3?(_0x46497b=_0x1a2f06,_0x51e126=_0x46497b[_0x15a6('0x61')],_0x46497b['forEach'](_0x2c7654=>{_0x2c7654['id']=_0x1e4d3b++;}),this['_processTape'](_0x46497b)):this[_0x15a6('0xb1')](_0x46497b,_0x1a2f06);const _0x1fee63=_0x46497b[_0x15a6('0xe8')](_0x42458f=>!_0x42458f['isAdded'])[_0x15a6('0xe5')](_0x25ed77=>_0x25ed77['id']);let _0xe8173b=0x0;const _0xebf327=this[_0x15a6('0x4e')](_0x467e60[_0x15a6('0x93')][_0x5885b6][_0x15a6('0x8d')]);_0xebf327['forEach'](_0x38632d=>{_0x38632d[_0x15a6('0x94')]?_0x38632d['id']=_0x51e126++:_0x38632d['id']=_0x1fee63[_0xe8173b++];}),this[_0x15a6('0xa9')](_0xebf327),this[_0x15a6('0xe9')](_0x46497b,_0x15a6('0x10a')),this[_0x15a6('0xe9')](_0xebf327,'isRemoved'),_0x467e60==_0x4c85b3&&this['_markMarkers'](_0x46497b,_0x3c8a2c),_0x46497b=this[_0x15a6('0x47')](_0x46497b,_0xebf327),this[_0x15a6('0x72')](_0x46497b),this[_0x15a6('0xe9')](_0x46497b,'isRemoved');}_0x46497b=_0x46497b[_0x15a6('0xe8')](_0x513971=>!(_0x513971[_0x15a6('0x10a')]&&_0x513971[_0x15a6('0x94')]));const _0x2a42c8=new Map(_0x2e24ea[_0x15a6('0x93')][_0x5885b6][_0x15a6('0x8d')][_0x15a6('0x17')]),_0x543ded=new Set(_0x3c8a2c[_0x15a6('0xff')]());for(const _0x45e7b5 of _0x2a42c8['keys']())_0x543ded[_0x15a6('0xfc')](_0x45e7b5);this[_0x15a6('0x18')](_0x46497b,_0x543ded),this[_0x15a6('0x21')](_0x46497b),_0x46497b=this[_0x15a6('0x97')](_0x46497b),_0x46497b=this['_markMismatchedRemovedTags'](_0x46497b),_0x46497b=this[_0x15a6('0x11d')](_0x46497b);const {root:_0x5885e2,changes:_0x1f4063}=this['_makeModelFromTape'](_0x46497b,_0x2bc940,_0x5885b6);_0x267760[_0x15a6('0x93')][_0x5885b6]=_0x5885e2;const _0x4df65f=_0xd42d67[_0x15a6('0x88')](_0x5885b6);if(_0x4df65f){const _0x13cbd5=_0x2bc940[_0x15a6('0x88')](_0x4df65f[_0x15a6('0xb5')]),_0x373523=new _0x162c8f({'author':_0x13cbd5,'type':_0x4df65f[_0x15a6('0x24')]?_0x15a6('0x10'):_0x15a6('0xe3'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5885b6});_0x1f4063['unshift'](_0x373523),_0x267760[_0x15a6('0xe1')][_0x5885b6][_0x15a6('0xee')]=_0x373523['id'];}_0x267760[_0x15a6('0x77')]=_0x267760[_0x15a6('0x77')][_0x15a6('0x1b')](_0x1f4063);}return _0x267760;}[_0x15a6('0xd')](_0x1d853c,_0x514013){for(let _0x25cc56=0x0;_0x25cc56<_0x1d853c['length'];_0x25cc56++)for(const [_0x49a25e,_0x3d6d3d]of _0x514013)_0x3d6d3d[_0x15a6('0xec')][_0x15a6('0xe4')](_0x1d853c[_0x25cc56][_0x15a6('0x68')])&&_0x1d853c[_0x25cc56][_0x15a6('0xae')]['push'](_0x49a25e),_0x3d6d3d[_0x15a6('0x65')][_0x15a6('0xe4')](_0x1d853c[_0x25cc56][_0x15a6('0xd3')])&&_0x1d853c[_0x25cc56][_0x15a6('0x28')]['push'](_0x49a25e);}[_0x15a6('0x47')](_0x338dfd,_0x5c6ac1){let _0x568202=[],_0x4d4f1e=0x0,_0x9fdac8=0x0;for(;_0x4d4f1e<_0x338dfd[_0x15a6('0x61')]||_0x9fdac8<_0x5c6ac1[_0x15a6('0x61')];){const _0x93a3f4=_0x338dfd[_0x4d4f1e]||{},_0x2d4830=_0x5c6ac1[_0x9fdac8]||{};if(_0x93a3f4['id']==_0x2d4830['id'])_0x4d4f1e++,_0x9fdac8++,_0x568202['push'](_0x93a3f4);else{if(_0x2d4830[_0x15a6('0x94')]&&_0x93a3f4['isAdded']){const {commonTape:_0x2531ef,iEnd:_0x357a21,jEnd:_0x37a5eb}=this[_0x15a6('0x10d')](_0x338dfd,_0x4d4f1e,_0x5c6ac1,_0x9fdac8);_0x568202=_0x568202[_0x15a6('0x1b')](_0x2531ef),_0x4d4f1e=_0x357a21,_0x9fdac8=_0x37a5eb;}else _0x2d4830['isRemoved']?(_0x9fdac8++,_0x568202[_0x15a6('0x7d')](_0x2d4830)):(_0x4d4f1e++,_0x568202[_0x15a6('0x7d')](_0x93a3f4));}}return _0x568202;}[_0x15a6('0x18')](_0x5c6683,_0x19a731){const _0x1c87a3=[];for(let _0x36a0b2=0x0;_0x36a0b2<_0x5c6683['length'];_0x36a0b2++){for(let _0x1a6822=0x0;_0x1a6822<_0x5c6683[_0x36a0b2]['markersStart']['length'];_0x1a6822++){const _0x48c97d=_0x5c6683[_0x36a0b2]['markersStart'][_0x1a6822];if(!_0x19a731['has'](_0x48c97d))continue;const {group:_0x37a89f,type:_0x3c0b19,authorId:_0x2aca81}=_0x584b99(_0x48c97d);_0x15a6('0xeb')!=_0x37a89f||_0x15a6('0x125')!=_0x3c0b19&&_0x15a6('0x11b')!=_0x3c0b19||(_0x1c87a3[_0x15a6('0x5f')]({'type':_0x3c0b19,'name':_0x48c97d,'userId':_0x2aca81}),_0x5c6683[_0x36a0b2][_0x15a6('0xae')][_0x15a6('0xdc')](_0x1a6822,0x1),_0x1a6822--);}_0x35e23e(_0x5c6683[_0x36a0b2]);for(let _0x168e1b=0x0;_0x168e1b<_0x5c6683[_0x36a0b2][_0x15a6('0x28')][_0x15a6('0x61')];_0x168e1b++){const _0x3e95ae=_0x5c6683[_0x36a0b2][_0x15a6('0x28')][_0x168e1b];if(!_0x19a731['has'](_0x3e95ae))continue;const {group:_0xe62f5b,type:_0x14a33e}=_0x584b99(_0x3e95ae);if(_0x15a6('0xeb')!=_0xe62f5b||_0x15a6('0x125')!=_0x14a33e&&_0x15a6('0x11b')!=_0x14a33e)continue;_0x5c6683[_0x36a0b2][_0x15a6('0x28')][_0x15a6('0xdc')](_0x168e1b,0x1),_0x168e1b--;const _0x21a317=_0x1c87a3[_0x15a6('0x5b')](_0x2e2542=>_0x2e2542[_0x15a6('0x4d')]==_0x3e95ae);_0x21a317>-0x1&&_0x1c87a3[_0x15a6('0xdc')](_0x21a317,0x1);}}function _0x584b99(_0x3d960e){const _0x5ab3f8=_0x3d960e[_0x15a6('0x2b')](':');return{'group':_0x5ab3f8[0x0],'type':_0x5ab3f8[0x1],'subType':_0x5ab3f8[_0x15a6('0x61')]>=0x5?_0x5ab3f8[0x2]:null,'id':_0x5ab3f8[_0x15a6('0x61')]<0x5?_0x5ab3f8[0x2]:_0x5ab3f8[0x3],'authorId':_0x5ab3f8[_0x15a6('0x61')]<0x5?_0x5ab3f8[0x3]:_0x5ab3f8[0x4],'markerCount':0x6==_0x5ab3f8[_0x15a6('0x61')]?_0x5ab3f8[0x5]:null};}function _0x35e23e(_0x5ef5d1){for(let _0x56dac7=0x0;_0x56dac7<_0x1c87a3['length'];_0x56dac7++){if(_0x5ef5d1['isAdded']&&'insertion'==_0x1c87a3[_0x56dac7]['type'])return _0x5ef5d1[_0x15a6('0xc9')]=_0x1c87a3[_0x56dac7],void delete _0x5ef5d1[_0x15a6('0x10a')];if(!_0x5ef5d1[_0x15a6('0x10a')]&&!_0x5ef5d1['isRemoved']&&_0x15a6('0x11b')==_0x1c87a3[_0x56dac7]['type'])return void(_0x5ef5d1[_0x15a6('0x121')]=_0x1c87a3[_0x56dac7]);}}}[_0x15a6('0xe9')](_0x2c0b91,_0x43dc9e){let _0x39ff6a=0x0,_0x178596=!0x1;const _0x5efb93=new Map();for(const _0x231523 of _0x2c0b91)_0x231523[_0x43dc9e]?_0x178596&&(_0x39ff6a++,_0x178596=!0x1):(_0x39ff6a++,_0x178596=!0x0),_0x5efb93['set'](_0x231523['id'],_0x39ff6a);for(let _0xe4b67d=0x0;_0xe4b67d<_0x2c0b91[_0x15a6('0x61')];_0xe4b67d++){if('isRemoved'==_0x43dc9e&&_0x2c0b91[_0xe4b67d][_0x15a6('0x10a')]||_0x15a6('0x10a')==_0x43dc9e&&_0x2c0b91[_0xe4b67d][_0x15a6('0x94')])continue;if(_0x15a6('0x103')==_0x2c0b91[_0xe4b67d][_0x15a6('0x110')]){_0x2c0b91[_0xe4b67d][_0x15a6('0x3c')]=0x0;continue;}const _0x2a059f=_0x5efb93[_0x15a6('0x88')](_0x2c0b91[_0xe4b67d][_0x15a6('0x56')]),_0x48cb90=_0x5efb93[_0x15a6('0x88')](_0x2c0b91[_0xe4b67d]['id']);_0x2c0b91[_0xe4b67d]['distance']=_0x2a059f-_0x48cb90;}}['_getRevisionsRange'](_0x642fbe,_0x326f56,_0x3bbad3=!0x1){const _0x541332=[];let _0x28e7e3=this[_0x15a6('0x8c')][_0x15a6('0x9c')](_0x642fbe),_0x4c619f=this['repository'][_0x15a6('0x9c')](_0x326f56);for(-0x1==_0x4c619f&&(_0x4c619f=this['repository'][_0x15a6('0x91')][_0x15a6('0x61')],_0x3bbad3=!0x1);_0x28e7e3<_0x4c619f;)_0x541332[_0x15a6('0x7d')](this[_0x15a6('0x8c')][_0x15a6('0x109')](_0x28e7e3)),_0x28e7e3++;return _0x3bbad3&&_0x541332[_0x15a6('0x7d')](this[_0x15a6('0x8c')][_0x15a6('0x109')](_0x28e7e3)),_0x541332;}['_threeWayMerge'](_0x1a90f0,_0x2e7a30,_0x4562be,_0x2814a3){const _0x3e2b3d=this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0x3e')];let _0x4bcb76=_0x2e7a30;for(;_0x1a90f0[_0x4bcb76]&&_0x1a90f0[_0x4bcb76][_0x15a6('0x10a')];)_0x4bcb76++;let _0xeafed6=_0x2814a3;for(;_0x4562be[_0xeafed6]&&_0x4562be[_0xeafed6][_0x15a6('0x94')];)_0xeafed6++;_0x1b47a1(_0x1a90f0,_0x2e7a30,_0x4bcb76),_0x1b47a1(_0x4562be,_0x2814a3,_0xeafed6);const _0x32c726=_0x4562be['slice'](_0x2814a3,_0xeafed6)[_0x15a6('0x1b')](_0x1a90f0[_0x15a6('0xf1')](_0x2e7a30,_0x4bcb76));return _0x32c726[_0x15a6('0x108')]((_0xc9c539,_0x5a9be2)=>_0xc9c539['side']!=_0x5a9be2['side']?_0xc9c539['side']-_0x5a9be2['side']:_0xc9c539[_0x15a6('0xdd')]!=_0x5a9be2[_0x15a6('0xdd')]?_0xc9c539[_0x15a6('0xdd')]-_0x5a9be2[_0x15a6('0xdd')]:_0xc9c539[_0x15a6('0x3c')]!=_0x5a9be2['distance']?_0x5a9be2['distance']-_0xc9c539['distance']:!!_0xc9c539['isAdded']!=!!_0x5a9be2['isAdded']?-0x1==_0xc9c539[_0x15a6('0xa2')]||0x0==_0xc9c539[_0x15a6('0xa2')]?_0xc9c539[_0x15a6('0x10a')]?-0x1:0x1:_0xc9c539['isAdded']?0x1:-0x1:_0xc9c539['index']-_0x5a9be2['index']),{'commonTape':_0x32c726,'iEnd':_0x4bcb76,'jEnd':_0xeafed6};function _0x1b47a1(_0x1b57b5,_0x456d57,_0x26d23e){let _0x310726=-0x1,_0x533dd7=Number[_0x15a6('0x64')],_0x422766=!0x0;for(let _0x5324c5=_0x456d57;_0x5324c5<_0x26d23e;_0x5324c5++)if(_0x3e2b3d[_0x15a6('0x7')](_0x1b57b5[_0x5324c5][_0x15a6('0xb2')])||(_0x422766=!0x1),_0x1b57b5[_0x5324c5][_0x15a6('0xb2')]['startIndex']<_0x456d57&&(_0x310726=_0x5324c5),_0x1b57b5[_0x5324c5]['item']['endIndex']>=_0x26d23e){_0x533dd7=_0x5324c5;break;}_0x422766&&(_0x310726=_0x26d23e-0x1);for(let _0x128b35=_0x456d57;_0x128b35<_0x26d23e;_0x128b35++)_0x1b57b5[_0x128b35][_0x15a6('0xa2')]=_0x128b35<=_0x310726?-0x1:_0x128b35<_0x533dd7?0x0:0x1,_0x1b57b5[_0x128b35][_0x15a6('0x82')]=_0x128b35;let _0x15726c=0x0;for(let _0x5ce086=_0x456d57;_0x5ce086<=_0x310726;_0x5ce086++)0x0==_0x1b57b5[_0x5ce086][_0x15a6('0x3c')]?_0x1b57b5[_0x5ce086][_0x15a6('0xdd')]=_0x15726c:(_0x15726c++,_0x1b57b5[_0x5ce086][_0x15a6('0xdd')]=_0x15726c,_0x15726c++);for(let _0x2e5077=_0x456d57;_0x2e5077<_0x26d23e;_0x2e5077++)0x0==_0x1b57b5[_0x2e5077]['side']&&(_0x1b57b5[_0x2e5077][_0x15a6('0xdd')]=_0x15726c);_0x15726c=0x0;for(let _0x323e86=_0x26d23e-0x1;_0x323e86>=_0x533dd7;_0x323e86--)0x0==_0x1b57b5[_0x323e86]['distance']?_0x1b57b5[_0x323e86][_0x15a6('0xdd')]=_0x15726c:(_0x15726c--,_0x1b57b5[_0x323e86][_0x15a6('0xdd')]=_0x15726c,_0x15726c--);}}[_0x15a6('0x21')](_0x3b0d6a){const _0x54c7b4=new Map(),_0x40534c=this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0x3e')];for(let _0x1b8a6a=0x1;_0x1b8a6a<_0x3b0d6a[_0x15a6('0x61')];_0x1b8a6a++){let _0x3cd103,_0x32cf22,_0x13f977;const _0x859385=_0x3b0d6a[_0x1b8a6a],_0x37f6fc=_0x3b0d6a[_0x1b8a6a-0x1];if(_0x15a6('0x103')==_0x859385[_0x15a6('0x110')])continue;if(_0x859385['type']!=_0x37f6fc[_0x15a6('0x110')])continue;if(!_0x40534c[_0x15a6('0xb3')](_0x37f6fc[_0x15a6('0xb2')])||_0x40534c[_0x15a6('0x40')](_0x37f6fc[_0x15a6('0xb2')]))continue;if(!_0x40534c[_0x15a6('0xb3')](_0x859385[_0x15a6('0xb2')])||_0x40534c[_0x15a6('0x40')](_0x859385['item']))continue;if((_0x3b0d6a[_0x1b8a6a][_0x15a6('0x10a')]||_0x3b0d6a[_0x1b8a6a][_0x15a6('0xc9')])&&_0x3b0d6a[_0x1b8a6a-0x1][_0x15a6('0x94')])_0x3cd103=_0x3b0d6a[_0x1b8a6a],_0x32cf22=_0x3b0d6a[_0x1b8a6a-0x1],_0x13f977=_0x1b8a6a-0x1;else{if(!_0x3b0d6a[_0x1b8a6a]['isRemoved']||!_0x3b0d6a[_0x1b8a6a-0x1][_0x15a6('0x10a')]&&!_0x3b0d6a[_0x1b8a6a-0x1]['isAddSuggestion'])continue;_0x3cd103=_0x3b0d6a[_0x1b8a6a-0x1],_0x32cf22=_0x3b0d6a[_0x1b8a6a],_0x13f977=_0x1b8a6a;}const _0x4f15ed=_0x3cd103[_0x15a6('0xdd')]==_0x32cf22[_0x15a6('0xdd')],_0x270f20=Math[_0x15a6('0x7b')](_0x3cd103[_0x15a6('0xdd')])<Math['abs'](_0x32cf22['level'])&&0x0==_0x32cf22['distance'];(_0x4f15ed||_0x270f20)&&(_0x54c7b4['set'](_0x32cf22['id'],_0x3cd103['id']),_0x3b0d6a[_0x15a6('0xdc')](_0x13f977,0x1),_0x1b8a6a--,_0x3cd103[_0x15a6('0x10a')]=!0x1);}for(let _0x323afd=0x0;_0x323afd<_0x3b0d6a[_0x15a6('0x61')];_0x323afd++)_0x54c7b4[_0x15a6('0xf3')](_0x3b0d6a[_0x323afd][_0x15a6('0x56')])&&(_0x3b0d6a[_0x323afd][_0x15a6('0x56')]=_0x54c7b4[_0x15a6('0x88')](_0x3b0d6a[_0x323afd][_0x15a6('0x56')]));}[_0x15a6('0x97')](_0x190750){const _0x40f6e2=new Set(_0x190750[_0x15a6('0xe5')](_0x4f4920=>_0x4f4920['id']));for(let _0x202fc1=0x0;_0x202fc1<_0x190750[_0x15a6('0x61')];_0x202fc1++)_0x40f6e2[_0x15a6('0xf3')](_0x190750[_0x202fc1][_0x15a6('0x56')])||0x0==_0x190750[_0x202fc1][_0x15a6('0x3c')]||(_0x190750[_0x202fc1][_0x15a6('0x51')]=!0x0);return _0x190750[_0x15a6('0xe8')](_0x14bf35=>!_0x14bf35[_0x15a6('0x51')]);}[_0x15a6('0x35')](_0x18fc68){const _0x306840=new Set();for(let _0x19d113=0x0;_0x19d113<_0x18fc68['length'];_0x19d113++){if(_0x306840[_0x15a6('0xf3')](_0x18fc68[_0x19d113]['id'])&&_0x18fc68[_0x19d113][_0x15a6('0x94')]&&(_0x18fc68[_0x19d113][_0x15a6('0x51')]=!0x0),_0x18fc68[_0x19d113][_0x15a6('0x51')])continue;if(0x0==_0x18fc68[_0x19d113]['distance'])continue;if(_0x15a6('0x75')!=_0x18fc68[_0x19d113]['type'])continue;if(null==_0x18fc68[_0x19d113][_0x15a6('0x56')])continue;let _0x6815f7=_0x19d113+0x1,_0x13d4c5=0x0;for(;_0x18fc68[_0x6815f7]['id']!=_0x18fc68[_0x19d113][_0x15a6('0x56')];)'elementStart'==_0x18fc68[_0x6815f7][_0x15a6('0x110')]?_0x13d4c5++:'elementEnd'==_0x18fc68[_0x6815f7][_0x15a6('0x110')]&&_0x13d4c5--,_0x6815f7++;if(0x0!=_0x13d4c5){if(_0x18fc68[_0x19d113][_0x15a6('0x94')])_0x18fc68[_0x19d113][_0x15a6('0x51')]=!0x0;else for(;_0x6815f7!=_0x19d113;)_0x18fc68[_0x6815f7][_0x15a6('0x94')]&&0x0!=_0x18fc68[_0x6815f7]['distance']&&(_0x18fc68[_0x6815f7][_0x15a6('0x51')]=!0x0,_0x306840[_0x15a6('0x10')](_0x18fc68[_0x6815f7][_0x15a6('0x56')])),_0x6815f7--;}}return _0x18fc68[_0x15a6('0xe8')](_0x114738=>!_0x114738['isIncorrect']);}[_0x15a6('0x11d')](_0x51ee0c){const _0x3ed5e6=this['editor']['model'][_0x15a6('0x3e')];for(let _0x477c1e=0x0;_0x477c1e<_0x51ee0c[_0x15a6('0x61')];_0x477c1e++){if(!(_0x51ee0c[_0x477c1e][_0x15a6('0x10a')]||_0x51ee0c[_0x477c1e]['isAddSuggestion']||_0x51ee0c[_0x477c1e][_0x15a6('0x94')]||_0x51ee0c[_0x477c1e][_0x15a6('0x121')]))continue;if(0x0==_0x51ee0c[_0x477c1e][_0x15a6('0x3c')])continue;const _0x593949=_0x51ee0c[_0x477c1e][_0x15a6('0xb2')];_0x3ed5e6[_0x15a6('0xb3')](_0x593949)||_0x3ed5e6[_0x15a6('0x40')](_0x593949)||(_0x51ee0c[_0x477c1e][_0x15a6('0x10a')]&&delete _0x51ee0c[_0x477c1e][_0x15a6('0x10a')],_0x51ee0c[_0x477c1e][_0x15a6('0xc9')]&&delete _0x51ee0c[_0x477c1e]['isAddSuggestion'],_0x51ee0c[_0x477c1e][_0x15a6('0x121')]&&delete _0x51ee0c[_0x477c1e][_0x15a6('0x121')],_0x51ee0c[_0x477c1e][_0x15a6('0x94')]&&(_0x51ee0c[_0x477c1e][_0x15a6('0x51')]=!0x0));}return _0x51ee0c[_0x15a6('0xe8')](_0x5283aa=>!_0x5283aa[_0x15a6('0x51')]);}[_0x15a6('0xf4')](_0x3d5feb,_0x4b8b8b,_0x5dcd14){const _0x5a860d=new _0x3b6f74(),_0x45fb6d=[],_0x5d94d6=new Map(),_0x465a1e=this['editor'][_0x15a6('0x93')],_0x4a8164=_0x465a1e['schema'],_0xfc4ebb=[_0x5a860d],_0x15c1f0={},_0x141c81={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24dfd1=null;const _0x3f45fa=[0x0];for(let _0x1dac7a=0x0;_0x1dac7a<_0x3d5feb[_0x15a6('0x61')];_0x1dac7a++){let _0x262604,_0x486a73;if(_0x15a6('0x75')===_0x3d5feb[_0x1dac7a][_0x15a6('0x110')]){_0x262604=_0x465a1e[_0x15a6('0x8f')](_0x5a860d,_0x3f45fa);const _0x2a31fc=new _0x5770d2(_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')][_0x15a6('0x4d')],_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')]['getAttributes']());_0xfc4ebb[0x0][_0x15a6('0x6c')](_0x2a31fc),_0x3f45fa[_0x15a6('0x7d')](0x0),_0xfc4ebb[_0x15a6('0x5f')](_0x2a31fc),_0x486a73=_0x465a1e[_0x15a6('0x8f')](_0x5a860d,_0x3f45fa),_0x24dfd1=null;}else{if(_0x15a6('0x74')===_0x3d5feb[_0x1dac7a][_0x15a6('0x110')])_0xfc4ebb[_0x15a6('0x7a')](),_0x262604=_0x465a1e['createPositionFromPath'](_0x5a860d,_0x3f45fa),_0x3f45fa[_0x15a6('0x95')](),_0x3f45fa[_0x3f45fa['length']-0x1]++,_0x486a73=_0x465a1e['createPositionFromPath'](_0x5a860d,_0x3f45fa),_0x24dfd1=null;else{if(_0x262604=_0x465a1e['createPositionFromPath'](_0x5a860d,_0x3f45fa),_0x24dfd1&&_0x31ab92(_0x24dfd1,_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')]))_0x24dfd1['_data']+=_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')]['data'];else{const _0x8df206=new _0x4de0b2(_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')][_0x15a6('0x33')],_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')][_0x15a6('0x101')]());_0xfc4ebb[0x0][_0x15a6('0x6c')](_0x8df206),_0x24dfd1=_0x8df206;}_0x3f45fa[_0x3f45fa[_0x15a6('0x61')]-0x1]+=_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')][_0x15a6('0x79')],_0x486a73=_0x465a1e[_0x15a6('0x8f')](_0x5a860d,_0x3f45fa);}}for(const _0x5efa73 of _0x3d5feb[_0x1dac7a][_0x15a6('0xae')])_0x5d94d6[_0x15a6('0x5d')](_0x5efa73,{'start':_0x262604,'end':null});_0x5df917(_0x15a6('0x121'),_0x1dac7a,_0x262604,_0x486a73),_0x5df917(_0x15a6('0xc9'),_0x1dac7a,_0x262604,_0x486a73),_0x5df917(_0x15a6('0x94'),_0x1dac7a,_0x262604,_0x486a73),_0x5df917('isAdded',_0x1dac7a,_0x262604,_0x486a73);for(const _0x126156 of _0x3d5feb[_0x1dac7a]['markersEnd']){_0x5d94d6[_0x15a6('0x88')](_0x126156)['end']=_0x486a73;}}for(const [_0x2a9300,_0x328bfc]of _0x5d94d6){const _0x35b325=this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xba')](_0x328bfc[_0x15a6('0xec')],_0x328bfc[_0x15a6('0x65')]);_0x5a860d[_0x15a6('0x17')][_0x15a6('0x5d')](_0x2a9300,_0x35b325);}return _0x45fb6d[_0x15a6('0x108')]((_0x2a0491,_0x745b3c)=>{const _0x38e034=_0x5a860d[_0x15a6('0x17')][_0x15a6('0x88')](_0x15a6('0xbc')+_0x2a0491['id']),_0x35a354=_0x5a860d[_0x15a6('0x17')][_0x15a6('0x88')](_0x15a6('0xbc')+_0x745b3c['id']);return _0x38e034[_0x15a6('0xec')][_0x15a6('0x26')](_0x35a354[_0x15a6('0xec')])?-0x1:_0x38e034[_0x15a6('0xec')]['isAfter'](_0x35a354['start'])?0x1:_0x38e034[_0x15a6('0x65')][_0x15a6('0x26')](_0x35a354['end'])?-0x1:_0x38e034[_0x15a6('0x65')][_0x15a6('0x3a')](_0x35a354[_0x15a6('0x65')])?0x1:'add'===_0x2a0491[_0x15a6('0x110')]?-0x1:0x1;}),{'root':_0x5a860d,'changes':_0x45fb6d};function _0x5df917(_0x50baea,_0x23ac3d,_0x1947dc,_0x57e5c6){const _0x486f09=!!_0x3d5feb[_0x23ac3d][_0x50baea],_0x1b6c84=_0x486f09?_0x3d5feb[_0x23ac3d][_0x50baea][_0x15a6('0xb5')]:null,_0x41c0f3=_0x23ac3d===_0x3d5feb[_0x15a6('0x61')]-0x1,_0x9232df=_0x141c81[_0x50baea][0x0],_0x2cddf8=_0x4a8164[_0x15a6('0x36')](_0x3d5feb[_0x23ac3d][_0x15a6('0xb2')]);!_0x15c1f0[_0x50baea]&&_0x486f09?_0x15c1f0[_0x50baea]={'start':_0x1947dc,'tapeItem':_0x3d5feb[_0x23ac3d],'userId':_0x1b6c84,'type':_0x50baea}:_0x15c1f0[_0x50baea]&&!_0x486f09?(_0x15c1f0[_0x50baea]['end']=_0x1947dc,_0x3eaf69(_0x15c1f0[_0x50baea]),_0x15c1f0[_0x50baea]=null):_0x15c1f0[_0x50baea]&&_0x486f09&&_0x15c1f0[_0x50baea][_0x15a6('0xb5')]!==_0x1b6c84&&(_0x15c1f0[_0x50baea][_0x15a6('0x65')]=_0x1947dc,_0x9232df&&_0x9232df[_0x15a6('0xb5')]===_0x15c1f0[_0x50baea][_0x15a6('0xb5')]||_0x3eaf69(_0x15c1f0[_0x50baea]),_0x15c1f0[_0x50baea]={'start':_0x1947dc,'tapeItem':_0x3d5feb[_0x23ac3d],'userId':_0x1b6c84,'type':_0x50baea}),_0x15c1f0[_0x50baea]&&_0x2cddf8&&(_0x15a6('0x75')!==_0x3d5feb[_0x23ac3d]['type']||_0x9232df&&_0x9232df[_0x15a6('0xb5')]===_0x1b6c84||_0x141c81[_0x50baea]['unshift']({'userId':_0x1b6c84,'object':_0x3d5feb[_0x23ac3d][_0x15a6('0xb2')],'change':_0x15c1f0[_0x50baea]}),_0x15a6('0x74')===_0x3d5feb[_0x23ac3d]['type']&&_0x9232df&&_0x9232df[_0x15a6('0xc2')]===_0x3d5feb[_0x23ac3d]['item']&&(_0x141c81[_0x50baea][_0x15a6('0x7a')](),_0x15c1f0[_0x50baea]=_0x9232df[_0x15a6('0xd0')])),_0x15c1f0[_0x50baea]&&_0x41c0f3&&(_0x15c1f0[_0x50baea][_0x15a6('0x65')]=_0x57e5c6,_0x3eaf69(_0x15c1f0[_0x50baea]),_0x15c1f0[_0x50baea]=null);}function _0x3eaf69({start:_0x277495,end:_0x4c544c,tapeItem:_0x438cec,userId:_0x1be756,type:_0x63e2b8}){const _0xcf57f4=_0x438cec[_0x15a6('0xb2')],_0x1cf8a3=_0x465a1e[_0x15a6('0x3e')][_0x15a6('0xb3')](_0xcf57f4)&&!_0x465a1e[_0x15a6('0x3e')][_0x15a6('0x40')](_0xcf57f4),_0x17ba4c=_0x277495[_0x15a6('0x117')]==_0x4c544c[_0x15a6('0x90')]&&_0x4c544c[_0x15a6('0x100')];if(_0x1cf8a3&&_0x17ba4c)return;const _0x565eed=_0x465a1e[_0x15a6('0xba')](_0x277495,_0x4c544c),_0x4cc393=_0x4b8b8b[_0x15a6('0x88')](_0x1be756),_0x34192a=new _0x162c8f({'author':_0x4cc393,'type':_0x15a6('0x10a')==_0x63e2b8||_0x15a6('0xc9')==_0x63e2b8?'add':_0x15a6('0xe3'),'data':{'isSuggestion':_0x15a6('0xc9')==_0x63e2b8||'isRemoveSuggestion'==_0x63e2b8},'createdAt':new Date(),'rootName':_0x5dcd14});_0x45fb6d[_0x15a6('0x7d')](_0x34192a),_0x5a860d[_0x15a6('0x17')][_0x15a6('0x5d')]('revision:'+_0x34192a['id'],_0x565eed);}function _0x31ab92(_0x40d030,_0x3b8290){const _0x5bc8b9=_0x40d030['getAttributes'](),_0x181c50=_0x3b8290[_0x15a6('0x101')]();for(const _0x524634 of _0x5bc8b9){if(_0x524634[0x1]!==_0x3b8290['getAttribute'](_0x524634[0x0]))return!0x1;_0x181c50[_0x15a6('0x34')]();}return _0x181c50['next']()[_0x15a6('0xbd')];}}[_0x15a6('0xc8')](){this['editor'][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))[_0x15a6('0x41')]({'view':_0x15a6('0x3f')}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0xd5'))[_0x15a6('0xef')]({'model':_0x15a6('0x3f'),'view':_0xa08c80=>{const _0x1179b0=_0xa08c80[_0x15a6('0x99')]['split'](':')[0x1],_0x205019=this['_getChangeFromId'](_0x1179b0);if(!_0x205019)return null;const _0x1f8cb8=_0x15a6('0x10')==_0x205019[_0x15a6('0x110')]?_0x15a6('0x125'):'deletion',_0x297009=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1f8cb8];return _0x205019[_0x15a6('0x33')][_0x15a6('0x3')]&&_0x297009['push'](_0x15a6('0x4c')+_0x1f8cb8+_0x15a6('0xb8')),this['activeChange']==_0x205019&&_0x297009[_0x15a6('0x7d')](_0x15a6('0xdb')),{'classes':_0x297009,'attributes':{'data-change-id':_0x1179b0}};}}),this['editor'][_0x15a6('0x9a')]['for']('upcast')[_0x15a6('0x10')](_0x4b0ea9=>{_0x4b0ea9['on'](_0x15a6('0x118'),(_0x4eaaf3,_0x38f6ef,_0x38b8aa)=>{const _0x3cc20c=_0x38f6ef[_0x15a6('0xf7')][_0x15a6('0x11f')](0x0);if(!_0x3cc20c||!_0x3cc20c['is'](_0x15a6('0x89'),'code'))return;if(!_0x38b8aa[_0x15a6('0x9f')][_0x15a6('0x96')](_0x3cc20c,{'attributes':[_0x15a6('0x14'),_0x15a6('0x3d')]}))return;const _0xf4f479=_0x38f6ef[_0x15a6('0x76')][_0x15a6('0xec')][_0x15a6('0x117')];_0x38b8aa[_0x15a6('0x6a')][_0x15a6('0xe')]('vid_start',_0x3cc20c['getAttribute'](_0x15a6('0x14')),_0xf4f479),_0x38b8aa[_0x15a6('0x6a')][_0x15a6('0xe')](_0x15a6('0x3d'),_0x3cc20c['getAttribute'](_0x15a6('0x3d')),_0xf4f479);},{'priority':_0x15a6('0x119')});}),this['editor'][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))[_0x15a6('0x10')](_0x9d6e1a=>{_0x9d6e1a['on']('element',(_0x20d372,_0x50dce4,_0x28ee27)=>{if(!_0x28ee27[_0x15a6('0x9f')][_0x15a6('0x96')](_0x50dce4[_0x15a6('0xf7')],{'attributes':[_0x15a6('0x14'),'vid_end']}))return;if(_0x50dce4['modelRange'][_0x15a6('0x1a')])return;const _0x3c68e6=_0x50dce4[_0x15a6('0x76')][_0x15a6('0xec')]['nodeAfter'];_0x3c68e6[_0x15a6('0x115')](_0x15a6('0x14'))||_0x3c68e6[_0x15a6('0x115')]('vid')||(_0x28ee27[_0x15a6('0x6a')][_0x15a6('0xe')](_0x15a6('0x14'),_0x50dce4[_0x15a6('0xf7')][_0x15a6('0xc6')](_0x15a6('0x14')),_0x3c68e6),_0x28ee27[_0x15a6('0x6a')][_0x15a6('0xe')](_0x15a6('0x3d'),_0x50dce4[_0x15a6('0xf7')][_0x15a6('0xc6')](_0x15a6('0x3d')),_0x3c68e6));},{'priority':_0x15a6('0x119')});}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))['elementToAttribute']({'view':{'name':_0x15a6('0x44'),'attributes':{'vid':!0x0}},'model':{'key':_0x15a6('0x50'),'value':_0x433611=>_0x433611['getAttribute'](_0x15a6('0x50'))}}),this[_0x15a6('0xdf')]['model']['schema']['on'](_0x15a6('0x85'),(_0xcd5cc6,[,_0x46c096])=>{['vid_start','vid_end',_0x15a6('0x50')]['includes'](_0x46c096)&&(_0xcd5cc6[_0x15a6('0x9b')]=!0x0,_0xcd5cc6[_0x15a6('0xac')]());},{'priority':_0x15a6('0x54')}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')]('dataDowncast')[_0x15a6('0x10')](_0x3dd301=>{_0x3dd301['on'](_0x15a6('0xf8'),(_0x19a6ce,_0x4eb588,_0x299630)=>{if('\x20'!=_0x4eb588[_0x15a6('0xb2')][_0x15a6('0x33')]||_0x4eb588[_0x15a6('0xb2')]['parent']['maxOffset']>0x1)return;if(!_0x299630[_0x15a6('0x9f')]['consume'](_0x4eb588['item'],_0x19a6ce[_0x15a6('0x4d')]))return;const _0x2fa33d=_0x299630[_0x15a6('0x6a')],_0x49f0c2=_0x299630[_0x15a6('0x45')][_0x15a6('0x38')](_0x4eb588['range']);_0x2fa33d[_0x15a6('0xbb')](_0x49f0c2,_0x2fa33d[_0x15a6('0xf')](_0x15a6('0x44')));});}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x12'))['markerToData']({'model':_0x15a6('0x3f')}),this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0xf9'),function(_0x360fc9){const _0x4ac740=_0x360fc9['plugins'][_0x15a6('0x88')](_0x15a6('0x42'));return(_0x474152,_0x287a7a,_0x351866)=>{const _0x3b4e74=_0x287a7a['markerName']['split'](':')[0x1],_0x46e40f=_0x4ac740[_0x15a6('0x3b')](_0x3b4e74);if(!_0x46e40f)return null;const _0x4123ee='add'==_0x46e40f[_0x15a6('0x110')]?_0x15a6('0x2b'):_0x15a6('0x63');if(!_0x351866[_0x15a6('0x9f')][_0x15a6('0x8b')](_0x287a7a[_0x15a6('0xaf')],_0x474152[_0x15a6('0x4d')]))return;const _0x5116e0=_0x287a7a[_0x15a6('0xaf')][_0x15a6('0xb0')](),_0x53112b=_0x287a7a[_0x15a6('0xaf')][_0x15a6('0xec')],_0x4af5f6=_0x360fc9[_0x15a6('0x93')]['schema'];let _0x4b82ba=null,_0x7ee2b0=null,_0x4b6c03=!0x1,_0x4b013f=!0x1;for(const _0xe47c9e of _0x5116e0){const _0x42d082=_0xe47c9e[_0x15a6('0xb2')];_0x4b6c03=_0x4b6c03||_0x4af5f6[_0x15a6('0x60')](_0x42d082);const _0x5d26b8=_0x351866[_0x15a6('0x45')][_0x15a6('0x114')](_0x42d082);if(_0x5d26b8&&_0x5d26b8['getCustomProperty'](_0x15a6('0x15')))return;_0x15a6('0x74')==_0xe47c9e[_0x15a6('0x110')]&&(_0x4af5f6[_0x15a6('0xb3')](_0x42d082)&&!_0x4af5f6[_0x15a6('0x40')](_0x42d082)&&(_0x42d082[_0x15a6('0xb9')]||_0x53112b[_0x15a6('0xe0')]?_0x4b82ba&&_0x4b82ba[_0x15a6('0x90')]==_0x42d082||(_0x4b82ba=_0x42d082,_0x2d40fb(_0xe47c9e[_0x15a6('0x68')]),_0x4b013f=!0x0):_0x7ee2b0=_0x7ee2b0||_0xe47c9e[_0x15a6('0x68')]));}function _0x2d40fb(_0x12212c){const _0x42b88d=_0x351866[_0x15a6('0x6a')]['createUIElement'](_0x15a6('0x44'),{'class':_0x15a6('0x4c')+_0x4123ee}),_0x48b238=_0x351866[_0x15a6('0x45')]['toViewPosition'](_0x12212c);_0x46e40f[_0x15a6('0x33')]['isSuggestion']&&_0x351866[_0x15a6('0x6a')][_0x15a6('0x11e')](_0x15a6('0x4c')+_0x4123ee+'-new',_0x42b88d),_0x4ac740['activeChange']==_0x46e40f&&_0x351866[_0x15a6('0x6a')]['addClass']('ck-suggestion-marker--active',_0x42b88d),_0x351866[_0x15a6('0x6a')][_0x15a6('0xd6')](_0x48b238,_0x42b88d),_0x351866[_0x15a6('0x45')]['bindElementToMarker'](_0x42b88d,_0x287a7a[_0x15a6('0x99')]);}_0x4b6c03||_0x4b013f||!_0x7ee2b0||_0x2d40fb(_0x7ee2b0);};}(this[_0x15a6('0xdf')]),{'priority':'high'}),this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0xab')]['on']('removeMarker:revision',(_0x2dbd1d,_0x164f96,_0x2fb662)=>{const _0x1a49aa=_0x2fb662[_0x15a6('0x45')]['markerNameToElements'](_0x164f96[_0x15a6('0x99')]);if(_0x1a49aa)for(const _0x309fa8 of _0x1a49aa)(_0x309fa8[_0x15a6('0x62')](_0x15a6('0x31'))||_0x309fa8[_0x15a6('0x62')]('ck-suggestion-marker-merge'))&&(_0x2fb662[_0x15a6('0x45')][_0x15a6('0xd1')](_0x309fa8,_0x164f96[_0x15a6('0x99')]),_0x2fb662[_0x15a6('0x6a')][_0x15a6('0xe3')](_0x309fa8));},{'priority':'high'}),this['editor'][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0xf9'),(_0x13f0de,_0x3346de,_0x283921)=>{const _0xa38db0=_0x3346de[_0x15a6('0x99')]['split'](':')[0x1],_0x409caf=this[_0x15a6('0x3b')](_0xa38db0);if(!_0x409caf)return null;const _0x3db725=_0x15a6('0x10')==_0x409caf['type']?_0x15a6('0x2b'):_0x15a6('0x63');if(_0x283921['consumable'][_0x15a6('0x8b')](_0x3346de[_0x15a6('0xaf')],_0x13f0de[_0x15a6('0x4d')]))for(const _0x3800c7 of _0x3346de[_0x15a6('0xaf')]['getItems']()){if(!_0x3800c7['is'](_0x15a6('0x89'),'softBreak'))continue;const _0x1bac68=_0x283921[_0x15a6('0x6a')][_0x15a6('0x113')]('span',{'class':'ck-suggestion-marker-'+_0x3db725}),_0x17b1b6=_0x283921[_0x15a6('0x45')][_0x15a6('0x116')](this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xcf')](_0x3800c7));_0x409caf[_0x15a6('0x33')]['isSuggestion']&&_0x283921['writer'][_0x15a6('0x11e')](_0x15a6('0x4c')+_0x3db725+_0x15a6('0xb8'),_0x1bac68),this[_0x15a6('0x1d')]==_0x409caf&&_0x283921[_0x15a6('0x6a')][_0x15a6('0x11e')](_0x15a6('0xdb'),_0x1bac68),_0x283921[_0x15a6('0x6a')][_0x15a6('0xd6')](_0x17b1b6,_0x1bac68),_0x283921[_0x15a6('0x45')][_0x15a6('0x124')](_0x1bac68,_0x3346de['markerName']);}},{'priority':_0x15a6('0x4f')}),this['editor'][_0x15a6('0x93')][_0x15a6('0xea')]['on'](_0x15a6('0xd0'),()=>{this[_0x15a6('0xdf')]['editing'][_0x15a6('0x6')][_0x15a6('0xd0')](_0x226d5a=>{for(const _0x477996 of this['editor'][_0x15a6('0x93')][_0x15a6('0xea')][_0x15a6('0xad')]()){const _0x24eea7=this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xea')][_0x15a6('0xca')](_0x477996),_0x20c875=this[_0x15a6('0xdf')][_0x15a6('0x59')]['view'][_0x15a6('0xea')][_0x15a6('0xca')](_0x477996);if(_0x20c875){const _0x4b9778=_0x24eea7['getAttribute'](_0x15a6('0xee'));if(_0x226d5a['removeAttribute'](_0x15a6('0x11c'),_0x20c875),_0x226d5a['removeClass'](_0x15a6('0x105'),_0x20c875),_0x226d5a[_0x15a6('0xe2')](_0x15a6('0x19'),_0x20c875),_0x226d5a[_0x15a6('0xe2')](_0x15a6('0x58'),_0x20c875),_0x4b9778){const _0x522138=this['_getChangeFromId'](_0x4b9778);if(!_0x522138)return null;_0x226d5a[_0x15a6('0xe')]('data-change-id',_0x4b9778,_0x20c875),_0x226d5a[_0x15a6('0x11e')]('ck-revision-history-root-'+_0x522138[_0x15a6('0x110')],_0x20c875),this['activeChange']==_0x522138&&_0x226d5a[_0x15a6('0x11e')]('ck-revision-history-root--active',_0x20c875);}}}});}),this['editor'][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))[_0x15a6('0x41')]({'view':_0x15a6('0x10b'),'model':_0x220e4d=>'revision-comment:'+_0x220e4d,'converterPriority':'highest'}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))[_0x15a6('0x41')]({'view':_0x15a6('0x2f'),'model':_0x371bbf=>_0x15a6('0x48')+_0x371bbf,'converterPriority':_0x15a6('0x54')}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')]('dataDowncast')[_0x15a6('0x8e')]({'model':_0x15a6('0xeb'),'view':_0x342e65=>({'name':'suggestion:'+_0x342e65,'group':_0x15a6('0xeb')}),'converterPriority':_0x15a6('0x54')}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')]('editingDowncast')[_0x15a6('0xef')]({'model':'revision-suggestion','view':_0x3054f5=>{const _0x40cd61=_0x3054f5['markerName']['split'](':')[0x1];return'insertion'!=_0x40cd61&&_0x15a6('0x11b')!=_0x40cd61?null:{'classes':[_0x15a6('0x22'),_0x15a6('0xf6')+_0x40cd61]};}}),this['editor'][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0x67'),et(this[_0x15a6('0xdf')],_0x15a6('0x63')),{'priority':_0x15a6('0x4f')}),this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0x13'),et(this[_0x15a6('0xdf')],_0x15a6('0x2b')),{'priority':_0x15a6('0x4f')}),this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0x4b'),(_0x6ac9b1,_0x9ab858,_0x1bc051)=>{const _0x13f3ac=_0x1bc051[_0x15a6('0x45')][_0x15a6('0xd2')](_0x9ab858[_0x15a6('0x99')]);if(_0x13f3ac)for(const _0x2bc3d0 of _0x13f3ac)_0x2bc3d0['is'](_0x15a6('0x1f'))&&(_0x1bc051[_0x15a6('0x45')][_0x15a6('0xd1')](_0x2bc3d0,_0x9ab858['markerName']),_0x1bc051[_0x15a6('0x6a')][_0x15a6('0xe3')](_0x2bc3d0));},{'priority':'high'});}['_getChangeFromId'](_0x5871a3){return this[_0x15a6('0x29')][_0x15a6('0x88')](_0x5871a3);}[_0x15a6('0xfa')](_0x299a95){return this['_changeView']&&this[_0x15a6('0xd4')][_0x15a6('0xb')](),this[_0x15a6('0xd4')]=new _0x13ee47(this[_0x15a6('0xdf')][_0x15a6('0xc3')],_0x299a95),this[_0x15a6('0xd4')];}[_0x15a6('0x4')](){this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xea')][_0x15a6('0x7f')][_0x15a6('0xcb')](_0x15a6('0x3f')),this['on'](_0x15a6('0x49'),(_0x3a7b8f,_0x5154c5,_0x4e55d5,_0x2d9107)=>{_0x2d9107&&this[_0x15a6('0x27')][_0x15a6('0xe3')](_0x2d9107),_0x4e55d5&&(this[_0x15a6('0x27')]['add']({'view':_0x4e55d5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5be077=this[_0x15a6('0xdf')][_0x15a6('0x59')],_0x44be73=this[_0x15a6('0x3b')](_0x4e55d5[_0x15a6('0x20')]);let _0x185902;if(_0x44be73[_0x15a6('0x33')]['isOnRoot']){const _0x1c3e9f=_0x5be077[_0x15a6('0x6')]['getDomRoot'](_0x44be73[_0x15a6('0xfb')]);_0x185902=Array['from'](_0x1c3e9f[_0x15a6('0xa8')]());}else{const _0x1f0406=this[_0x15a6('0xdf')]['model'][_0x15a6('0x17')]['get'](_0x15a6('0xbc')+_0x4e55d5[_0x15a6('0x20')]);_0x185902=Array[_0x15a6('0x78')](_0x5be077[_0x15a6('0x45')][_0x15a6('0xd2')](_0x1f0406[_0x15a6('0x4d')]))[_0x15a6('0xe5')](_0x557761=>_0x5be077[_0x15a6('0x6')][_0x15a6('0x111')][_0x15a6('0xc7')](_0x557761))[_0x15a6('0xe5')](_0x3dc513=>Array[_0x15a6('0x78')](_0x3dc513[_0x15a6('0xa8')]()))[_0x15a6('0x23')]();}if(!this[_0x15a6('0x2d')])return _0x185902[0x0];return _0x185902[_0x15a6('0x52')](_0x2e067e=>_0x2e067e[_0x15a6('0x11a')]-0x3<=this[_0x15a6('0x2d')]['y']&&_0x2e067e[_0x15a6('0x6e')]+0x3>=this[_0x15a6('0x2d')]['y']&&_0x2e067e[_0x15a6('0x30')]-0x3<=this[_0x15a6('0x2d')]['x']&&_0x2e067e[_0x15a6('0x43')]+0x3>=this[_0x15a6('0x2d')]['x'])||_0x185902[0x0];}}}),this[_0x15a6('0x27')]['showStack'](_0x15a6('0x112')));}),this['on'](_0x15a6('0x2e'),(_0x1bc7c7,_0x11ba30,_0x4e772d,_0xc2d157)=>{this['activeView']=_0x4e772d?this['_getViewForChange'](_0x4e772d):null,this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xd0')](()=>{const _0x46b207=this[_0x15a6('0xdf')][_0x15a6('0x59')];_0xc2d157&&(_0xc2d157[_0x15a6('0x33')][_0x15a6('0x8')]?_0x46b207[_0x15a6('0x6')][_0x15a6('0xd0')](_0x15d586=>{_0x15d586[_0x15a6('0xe2')](_0x15a6('0x58'),_0x46b207[_0x15a6('0x6')][_0x15a6('0xea')]['getRoot'](_0xc2d157[_0x15a6('0xfb')]));}):_0x46b207[_0x15a6('0xc1')](_0x15a6('0xbc')+_0xc2d157['id'])),_0x4e772d&&(_0x4e772d[_0x15a6('0x33')][_0x15a6('0x8')]?_0x46b207[_0x15a6('0x6')]['change'](_0x4d690a=>{_0x4d690a[_0x15a6('0x11e')](_0x15a6('0x58'),_0x46b207['view'][_0x15a6('0xea')]['getRoot'](_0x4e772d[_0x15a6('0xfb')]));}):_0x46b207[_0x15a6('0xc1')](_0x15a6('0xbc')+_0x4e772d['id']));});}),this[_0x15a6('0xc4')](this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0x6')]['document'],_0x15a6('0xa'),(_0x28ec16,_0x1f360d)=>{if(this['activeChange'])return;const _0x4e59d8=this[_0x15a6('0x10f')](_0x1f360d['target']),_0x579b49=this[_0x15a6('0x29')][_0x15a6('0x88')](_0x4e59d8);_0x579b49?(this[_0x15a6('0x2d')]={'x':_0x1f360d[_0x15a6('0x7e')]['x'],'y':_0x1f360d[_0x15a6('0x7e')]['y']},this[_0x15a6('0x120')]=this[_0x15a6('0xfa')](_0x579b49)):(this[_0x15a6('0x2d')]=null,this[_0x15a6('0x120')]=null);}),this[_0x15a6('0xc4')](this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0x6')]['document'],'mousedown',(_0x118350,_0x791565)=>{const _0x2dd9b8=this[_0x15a6('0x10f')](_0x791565['target']),_0x205b93=this[_0x15a6('0x29')]['get'](_0x2dd9b8);_0x205b93?(this[_0x15a6('0x2d')]={'x':_0x791565['domEvent']['x'],'y':_0x791565['domEvent']['y']},_0x205b93===this[_0x15a6('0x1d')]?this[_0x15a6('0x27')][_0x15a6('0xb7')]():this['activeChange']=_0x205b93):(this[_0x15a6('0x2d')]=null,this[_0x15a6('0x1d')]=null);});}[_0x15a6('0x10f')](_0x1eaddc){do{const _0x132fb3=_0x1eaddc[_0x15a6('0xc6')]('data-change-id');if(_0x132fb3)return _0x132fb3;_0x1eaddc=_0x1eaddc[_0x15a6('0x90')];}while(_0x1eaddc);return null;}[_0x15a6('0xb6')](){this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xd0')](_0x4080ca=>{for(const _0xd3f8b7 of this['editor'][_0x15a6('0x93')][_0x15a6('0x17')])_0x4080ca[_0x15a6('0x86')](_0xd3f8b7);});}}function et(_0x4c8637,_0x124f03){return(_0x4a163b,_0x1b985a,_0x48ced2)=>{if(!_0x48ced2[_0x15a6('0x9f')]['test'](_0x1b985a[_0x15a6('0xaf')],_0x4a163b[_0x15a6('0x4d')]))return;const _0x362d5d=_0x1b985a[_0x15a6('0xaf')][_0x15a6('0xb0')](),_0x20989f=_0x1b985a[_0x15a6('0xaf')][_0x15a6('0xec')],_0x3b9cea=_0x4c8637[_0x15a6('0x93')][_0x15a6('0x3e')];let _0x44c23a=null,_0x3105fc=null,_0x30021a=!0x1,_0xac33d8=!0x1;for(const _0xb360c3 of _0x362d5d){const _0xa915b8=_0xb360c3['item'];_0x30021a=_0x30021a||_0x3b9cea['isContent'](_0xa915b8);const _0x4de138=_0x48ced2[_0x15a6('0x45')]['toViewElement'](_0xa915b8);if(_0x4de138&&_0x4de138[_0x15a6('0x7c')](_0x15a6('0x15')))return;'elementEnd'==_0xb360c3[_0x15a6('0x110')]&&(_0x3b9cea[_0x15a6('0xb3')](_0xa915b8)&&!_0x3b9cea['isLimit'](_0xa915b8)&&(_0xa915b8[_0x15a6('0xb9')]||_0x20989f['isAtEnd']?_0x44c23a&&_0x44c23a['parent']==_0xa915b8||(_0x44c23a=_0xa915b8,_0x55dc68(_0xb360c3[_0x15a6('0x68')]),_0xac33d8=!0x0):_0x3105fc=_0x3105fc||_0xb360c3['previousPosition']));}function _0x55dc68(_0x434edb){const _0x2fb52b=_0x48ced2[_0x15a6('0x45')][_0x15a6('0x116')](_0x434edb),_0x2b6c1a=_0x48ced2[_0x15a6('0x6a')][_0x15a6('0x113')]('span',{'class':'ck-suggestion-preview-marker-'+_0x124f03});_0x48ced2['writer']['insert'](_0x2fb52b,_0x2b6c1a),_0x48ced2[_0x15a6('0x45')][_0x15a6('0x124')](_0x2b6c1a,_0x1b985a[_0x15a6('0x99')]);}_0x30021a||_0xac33d8||!_0x3105fc||_0x55dc68(_0x3105fc);};}export class RestoreRevisionCommand extends _0x64b08{constructor(_0x4ff0c4){super(_0x4ff0c4);const _0x85c885=_0x4ff0c4[_0x15a6('0x1c')][_0x15a6('0x88')](d);this[_0x15a6('0x1')]=!0x1,this[_0x15a6('0xc4')](_0x85c885,_0x15a6('0xed'),()=>this[_0x15a6('0x55')]()),this[_0x15a6('0xc4')](_0x85c885,_0x15a6('0x9e'),()=>this[_0x15a6('0x55')]());}['execute'](){const _0x55709e=this[_0x15a6('0xdf')],_0x1221fa=_0x55709e[_0x15a6('0x1c')][_0x15a6('0x88')](d),_0x21957f=_0x1221fa[_0x15a6('0x6d')]?_0x1221fa[_0x15a6('0x106')][_0x15a6('0x11')]:null;_0x55709e['config'][_0x15a6('0x88')](_0x15a6('0x102'))[_0x15a6('0x80')](_0x21957f);}['refresh'](){const {isReady:_0x499ee4,isEnabled:_0x54d004}=this[_0x15a6('0xdf')][_0x15a6('0x1c')][_0x15a6('0x88')](d);this[_0x15a6('0xa1')]=_0x499ee4&&_0x54d004;}}export class ShowChangeCommand extends _0x64b08{constructor(_0xd45e59,{direction:_0x51a790}){super(_0xd45e59);const _0x19d399=_0xd45e59[_0x15a6('0x1c')][_0x15a6('0x88')](d);this[_0x15a6('0x1')]=!0x1,this[_0x15a6('0x8a')]=_0x15a6('0x5')===_0x51a790?0x1:-0x1,this[_0x15a6('0xc4')](_0x19d399,_0x15a6('0xed'),()=>this[_0x15a6('0x55')]()),this[_0x15a6('0xc4')](_0x19d399,'change:isEnabled',()=>this[_0x15a6('0x55')]()),this[_0x15a6('0xc4')](_0x19d399,'change:activeChange',()=>this[_0x15a6('0x55')]());}['execute'](){const _0x3621c7=this[_0x15a6('0xdf')],_0x234a74=_0x3621c7['plugins'][_0x15a6('0x88')](d),{isNavigationMode:_0x540958,currentChangeNumber:_0x24f992}=_0x234a74;let _0x3cd86b;if(_0x234a74[_0x15a6('0x1d')]=_0x540958?_0x234a74[_0x15a6('0x106')][_0x15a6('0x77')]['get'](_0x24f992+this['_step']):_0x234a74[_0x15a6('0x106')][_0x15a6('0x77')]['first'],_0x234a74['activeChange']['data'][_0x15a6('0x8')])_0x3cd86b=_0x3621c7[_0x15a6('0x59')][_0x15a6('0x6')][_0x15a6('0xf5')](_0x234a74[_0x15a6('0x1d')][_0x15a6('0xfb')]);else{const _0x30ca92=_0x3621c7[_0x15a6('0x93')][_0x15a6('0x17')][_0x15a6('0x88')](_0x15a6('0xbc')+_0x234a74[_0x15a6('0x1d')]['id']);_0x3cd86b=_0x3e8826(_0x3621c7[_0x15a6('0x59')],_0x30ca92);}_0x3117ae({'target':_0x3cd86b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x430996,currentChangeNumber:_0x2b1b72,numberOfChanges:_0x25131f,isReady:_0x462caa,isEnabled:_0x2a93bc}=this[_0x15a6('0xdf')][_0x15a6('0x1c')]['get'](d);this['isEnabled']=!!(_0x2a93bc&&_0x462caa&&_0x25131f)&&(!_0x430996||(0x1===this[_0x15a6('0x8a')]?_0x2b1b72<_0x25131f-0x1:_0x2b1b72>0x0));}}
|
|
23
|
+
const _0x55da=['loadRevisionData','getCustomProperty','isAtStart','_changeView','mapper','attributesAfter','split','_activeViewTarget','change:activeChange','ck-suggestion-preview-marker-','highest','POSITIVE_INFINITY','isAfter','startIndex','removeMarker:revision','offsetSize','_getDiff','diff','insert','getRevision','set','getWalker','createUIElement','showPreviousChange','change','revision-suggestion','compare','_makeTape','markersStart','destroy','bindElementToMarker','object','observeMarkers','viewItem','previousPosition','getDomRoot','revision-end','showNextChange','right','getRoot','start','toViewElement','selection','forceDisabled','adapter','useFillerType','attribute:vid','_makeModelFromViewString','indexOf','removeMarker:revision-suggestion','wrap','shift','low','WidgetToolbarRepository','addMarker:revision','target','-new','ck-revision-history-root-','_appendChild','flat','userId','revision-suggestion:','rootName','nextSibling','change:isEnabled','isBlock','isRemoveSuggestion','_refreshStartEndIndex','consume','currentChangeNumber','backward','isAtEnd','pairId','_processTape','_cleanMarkers','isEqual','isRemoved','bind','isLimit','sort','downcastDispatcher','nodeAfter','_initInteractions','_setChanges','_getViewObj','isNavigationMode','revisionHistoryAttachChange','side','abs','changes','ck-suggestion-marker-','_joinTapes','addRoot','pluginName','elementEnd','change:isReady','hasClass','listenTo','_makeModelFromTape','suggestion:','_getChangeFromId','isBefore','toViewPosition','code','addRevisionData','isOnRoot','insertion','changeId','oldRevisionId','vid_start','addHighlight','endIndex','attributes','markerNameToElements','_threeWayMerge','view','_balloon','text','_setConversion','filter','getClientRects','enqueueChange','bottom','toModel','schema','end','_markInsertions','upcast','removeMarker','isObject','item','removeClass','createRevision','unbindElementFromMarkerName','has','diffData','config','revision:','conversion','findIndex','change:activeView','addMarker:revision-suggestion:deletion','commands','activeView','name','next','_markMismatchedRemovedTags','test','range','element','getAttributes','plugins','remove','string','span','keys','markerRange','from','modelRange','_removeMissingPairs','isInline','_setDistance','vid_end','activeChange','addMarker:revision-suggestion:insertion','comment','_update','children','isAttached','model','revisionHistoryLabel','splice','editor','delete','elementToAttribute','reconvertMarker','forward','_revisions','ck-suggestion-marker--active','RevisionViewer','editingDowncast','return','restoreRevisionCallback','revision-viewer','createRange','getItems','first','type','deletions','isAdded','_changeIdToChange','markerToData','isReady','processor','error','unshift','enableReadOnlyMode','element:pre','createAttributeElement','startsWith','data-revision-','revisionHistory','includes','hasAttribute','getAttribute','getIndex','markerName','toData','nextPosition','consumable','add','_step','isAddSuggestion','mapViewToDom','updatePosition','change:numberOfChanges','ck-revision-history-root-remove','elementStart','markerToHighlight','_findChangeIdFromDomTarget','forEach','distance','document','marked','get','dataDowncast','find','showStack','editing','init','level','markersEnd','vid','getRootNames','slice','locale','values','map','attachChange','writer','dataToMarker','maxOffset','data-change-id','_markMarkers','_sortAndFilterDiffChanges','_markSuggestions','_removeRevisionMarkers','ck-suggestion-marker-merge','ck-revision-history-root--active','isContent','resolve','affectsData','repository','domEvent','isEnabled','mouseover','_getViewForChange','createPositionBefore','requires','parent','pop','revision-comment:','ck-suggestion-marker-split','_getRevisionsRange','high','createPositionFromPath','concat','_data','isIncorrect','addClass','refresh','isCollapsed','push','softBreak','then','ck-revision-history-root-add','index','_cleanUp','for','data','revision','setAttribute','numberOfChanges','suggestion','toViewRange','execute','markers','merge','deletion','done','uiElement','isSuggestion','length'];(function(_0x330e14,_0x55da35){const _0x154145=function(_0x14c755){while(--_0x14c755){_0x330e14['push'](_0x330e14['shift']());}};_0x154145(++_0x55da35);}(_0x55da,0x71));const _0x1541=function(_0x330e14,_0x55da35){_0x330e14=_0x330e14-0x0;let _0x154145=_0x55da[_0x330e14];return _0x154145;};import{Plugin as _0xc50a9,Command as _0x2b67f2}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x142e83}from'ckeditor5/src/utils';import{ContextualBalloon as _0x586a0f}from'ckeditor5/src/ui';import{DocumentFragment as _0x4390f7,Element as _0x24838a,Text as _0x4109a4,ViewDocumentFragment as _0x50f55e,ViewText as _0x21a021,ViewElement as _0x3bf22,ViewContainerElement as _0x144727,ViewAttributeElement as _0x5147e8,ViewEmptyElement as _0x12029b,ViewRawElement as _0x1778ab,ViewUIElement as _0x3c5547}from'ckeditor5/src/engine';import{Users as _0x5c6c21,getMarkerDomElement as _0x10b913}from'ckeditor5-collaboration/src/collaboration-core';import _0x4e0c7a from'./ui/revisionviewer/changedetailsview';import _0x245276 from'./revisionsrepository';import _0x90d829 from'./changeitem';import{default as _0x328195}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1fa925}from'lodash-es';const tt={'c':_0x144727,'a':_0x5147e8,'e':_0x12029b,'r':_0x1778ab,'u':_0x3c5547};export default class d extends _0xc50a9{static get[_0x1541('0x111')](){return _0x1541('0x42');}static get[_0x1541('0x91')](){return[_0x5c6c21,_0x586a0f,_0x245276];}constructor(_0x2d2fec){super(_0x2d2fec),this[_0x1541('0x8b')]=this[_0x1541('0x3b')]['plugins'][_0x1541('0x6f')]('RevisionsRepository'),this[_0x1541('0xc8')](_0x1541('0x32'),null),this[_0x1541('0xc8')](_0x1541('0x1e'),null),this[_0x1541('0xbb')]=null,this[_0x1541('0xc8')](_0x1541('0xc5'),null),this['set']('isReady',!0x1),this[_0x1541('0xc8')](_0x1541('0x8d'),!0x0),this['on'](_0x1541('0xf4'),(_0x5cbe39,_0x30e000,_0x102837)=>{this[_0x1541('0x32')]=null,this['activeView']=null,this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')]['change'](_0x168e63=>{for(const _0xb5690f of this[_0x1541('0x3b')]['editing'][_0x1541('0x2')][_0x1541('0x6d')]['roots'])_0x102837?_0x168e63[_0x1541('0x12')]('ck-editor__editable__overlay',_0xb5690f):_0x168e63['addClass']('ck-editor__editable__overlay',_0xb5690f);});}),this[_0x1541('0x101')](_0x1541('0x109'))['to'](this,_0x1541('0x32'),_0x35bb24=>null!==_0x35bb24),this['bind'](_0x1541('0xf9'))['to'](this,_0x1541('0x4f'),this,'diff',this,_0x1541('0x32'),(_0x35d166,_0x3e101c,_0x30aa2b)=>_0x35d166&&_0x30aa2b?_0x3e101c[_0x1541('0x10d')]['getIndex'](_0x30aa2b):0x0),this[_0x1541('0x101')](_0x1541('0xa9'))['to'](this,_0x1541('0x4f'),this,_0x1541('0xc5'),(_0x44cc0e,_0x4a7566)=>_0x44cc0e?_0x4a7566[_0x1541('0x10d')][_0x1541('0xb3')]:0x0),this[_0x1541('0xb7')]=null,this[_0x1541('0x4d')]=new Map(),this[_0x1541('0xe0')]=null,this[_0x1541('0x3')]=this['editor'][_0x1541('0x26')]['get'](_0x586a0f);}[_0x1541('0x74')](){const _0x21ad04=this[_0x1541('0x3b')],_0x47629a=new ShowChangeCommand(_0x21ad04,{'direction':_0x1541('0xfa')}),_0x2806d6=new ShowChangeCommand(_0x21ad04,{'direction':_0x1541('0x3f')});(_0x21ad04['commands']['add'](_0x1541('0xcb'),_0x47629a),_0x21ad04[_0x1541('0x1d')][_0x1541('0x61')](_0x1541('0xd9'),_0x2806d6),_0x21ad04['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x21ad04)),this['on'](_0x1541('0x66'),()=>{_0x47629a[_0x1541('0x9d')](),_0x2806d6[_0x1541('0x9d')]();}),this[_0x1541('0x5')](),this['_initInteractions'](),_0x21ad04[_0x1541('0x53')](_0x1541('0x46')),_0x21ad04[_0x1541('0x26')][_0x1541('0x15')](_0x1541('0xe9')))&&_0x21ad04[_0x1541('0x26')][_0x1541('0x6f')]('WidgetToolbarRepository')[_0x1541('0xdf')](_0x1541('0x46'));}async['getRevisionData'](_0x394885){await this[_0x1541('0xb4')](_0x394885);const _0x5dc72b={};for(const _0x5d0ef9 in _0x394885[_0x1541('0x16')]){if(_0x394885['diffData'][_0x5d0ef9][_0x1541('0x7d')]&&!_0x394885[_0x1541('0x16')][_0x5d0ef9]['attachChange']['isAttached'])continue;const _0x38f671=this[_0x1541('0x85')](JSON['parse'](_0x394885[_0x1541('0x16')][_0x5d0ef9]['insertions'])),_0x52c754=this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')]['document'],_0x8ea774=new _0x50f55e(_0x52c754,_0x38f671[_0x1541('0x7c')](_0x8fe96a=>this[_0x1541('0x108')](_0x8fe96a)));this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0x50')][_0x1541('0xe1')](_0x1541('0x6e')),_0x5dc72b[_0x5d0ef9]=this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0x50')][_0x1541('0x5e')](_0x8ea774),this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0x50')][_0x1541('0xe1')]('default');}return _0x5dc72b;}async['getRevisionRootsAttributes'](_0x23f10f){await this[_0x1541('0xb4')](_0x23f10f);const _0x4c5939={};for(const _0x125a81 in _0x23f10f[_0x1541('0x16')])_0x23f10f[_0x1541('0x16')][_0x125a81][_0x1541('0x7d')]&&!_0x23f10f[_0x1541('0x16')][_0x125a81]['attachChange']['isAttached']||(_0x4c5939[_0x125a81]=_0x23f10f[_0x1541('0x16')][_0x125a81][_0x1541('0xb9')]||{});return _0x4c5939;}[_0x1541('0x85')](_0xccda6d){return(_0xccda6d=_0xccda6d[_0x1541('0x6')](_0x448a4e=>!_0x448a4e['name']||'revision-start'!==_0x448a4e[_0x1541('0x1f')]&&_0x1541('0xd8')!==_0x448a4e['name']))[_0x1541('0x6b')](_0x1fd9ef=>{'string'!=typeof _0x1fd9ef&&(_0x1fd9ef[_0x1541('0x36')]=this[_0x1541('0x85')](_0x1fd9ef['children']),_0x1fd9ef[_0x1541('0x124')]=_0x1fd9ef[_0x1541('0x124')][_0x1541('0x6')](_0x36ca70=>!_0x36ca70[0x0][_0x1541('0x56')](_0x1541('0x57'))));}),_0xccda6d;}async[_0x1541('0xce')](_0x47d23b,_0x23771e,_0x2d1f1c=!0x1){if(!this[_0x1541('0x8d')])return;const _0x193405=this[_0x1541('0xc5')],_0x2c17c2=this[_0x1541('0x8b')],_0x4b3121=_0x1541('0x28')==typeof _0x47d23b?_0x2c17c2[_0x1541('0xc7')](_0x47d23b):_0x47d23b,_0x2de21b=_0x1541('0x28')==typeof _0x23771e?_0x2c17c2[_0x1541('0xc7')](_0x23771e):_0x23771e,_0x3dcf68=_0x4b3121['id'],_0x5c63ba=_0x2de21b?_0x2de21b['id']:null;if(!_0x2d1f1c&&this['diff']&&this[_0x1541('0xc5')]['newRevisionId']===_0x3dcf68&&this[_0x1541('0xc5')][_0x1541('0x120')]===_0x5c63ba)return Promise[_0x1541('0x89')]();this[_0x1541('0x4f')]=!0x1,this[_0x1541('0x1e')]=null,this[_0x1541('0x32')]=null,this[_0x1541('0xc5')]=new _0x328195(_0x3dcf68,_0x5c63ba);const _0x3c7317=this[_0x1541('0x96')](_0x4b3121,_0x2de21b,!0x0)[_0x1541('0x7c')](_0x10217f=>this[_0x1541('0xb4')](_0x10217f));return _0x3c7317[_0x1541('0x9f')](new Promise(_0x4ecb10=>{setTimeout(_0x4ecb10,0x14);})),Promise['all'](_0x3c7317)['then'](()=>{if(!this[_0x1541('0x8d')])return;this[_0x1541('0xa4')]();const _0x5452ce=this[_0x1541('0xc4')](_0x3dcf68,_0x5c63ba);for(const _0x2b4fae of _0x5452ce[_0x1541('0x10d')])this[_0x1541('0x4d')][_0x1541('0xc8')](_0x2b4fae['id'],_0x2b4fae);this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x8')]({'isUndoable':!0x1},_0x4aa5ce=>{for(const _0xc7544b of this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x6d')][_0x1541('0x78')]())_0x4aa5ce['detachRoot'](_0xc7544b);for(const _0x2c97a1 of Object[_0x1541('0x2a')](_0x5452ce['model'])){const _0x516a5f=_0x4aa5ce[_0x1541('0x110')](_0x2c97a1);for(const _0x1bceec of Object[_0x1541('0x2a')](_0x5452ce[_0x1541('0x124')][_0x2c97a1]))_0x4aa5ce[_0x1541('0xa8')](_0x1bceec,_0x5452ce[_0x1541('0x124')][_0x2c97a1][_0x1bceec],_0x516a5f);_0x4aa5ce[_0x1541('0xc6')](_0x5452ce['model'][_0x2c97a1],_0x516a5f,0x0);}}),this[_0x1541('0xc5')][_0x1541('0x107')](this['_sortAndFilterDiffChanges'](_0x5452ce['changes'])),this['isReady']=!0x0;})['catch'](_0x5165c0=>{console[_0x1541('0x51')](_0x5165c0),this[_0x1541('0xa4')](),_0x193405&&(this[_0x1541('0xc5')]=_0x193405),this['isReady']=!0x0;});}[_0x1541('0x11c')](_0x445a81,_0x4dca22){const _0x5733da=this[_0x1541('0x8b')][_0x1541('0x13')](_0x445a81);return _0x5733da['on'](_0x1541('0x35'),(_0x5adfd6,_0x2640cd,_0x1a23be)=>_0x4dca22(_0x2640cd,_0x1a23be,_0x5733da)),this[_0x1541('0x8b')]['addRevision'](_0x5733da),_0x5733da;}[_0x1541('0xb4')](_0x2c5c1f){if(!_0x2c5c1f||_0x2c5c1f[_0x1541('0x16')])return Promise[_0x1541('0x89')]();{const _0x594159=this[_0x1541('0x3b')]['config'][_0x1541('0x6f')]('collaboration.channelId');return this[_0x1541('0xe0')]['getRevision']({'channelId':_0x594159,'revisionId':_0x2c5c1f['id']})[_0x1541('0xa1')](_0x5d429f=>{_0x2c5c1f[_0x1541('0x35')]({'diffData':_0x5d429f[_0x1541('0x16')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x1541('0xfe')](),this[_0x1541('0xb7')]&&this['_changeView'][_0x1541('0xd1')](),this[_0x1541('0xb7')]=null,this['_changeIdToChange']['clear'](),this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x8')]({'isUndoable':!0x1},_0x311d8b=>{for(const _0xe37c18 of this['editor'][_0x1541('0x38')]['document'][_0x1541('0x78')]())_0x311d8b['detachRoot'](_0xe37c18);});}[_0x1541('0x83')](_0x1985be){const _0x178496=[],_0xe21987=new Map();for(const _0x348bd5 of this[_0x1541('0x3b')]['model'][_0x1541('0x6d')][_0x1541('0x78')]()){const _0x2e6058=this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')][_0x1541('0xd7')](_0x348bd5);if(!_0x2e6058)continue;const _0x4d1409=_0x2e6058[_0x1541('0x7')]()['item'](0x0);_0x4d1409&&(_0x178496[_0x1541('0x9f')](_0x348bd5),_0xe21987[_0x1541('0xc8')](_0x348bd5,_0x4d1409));}return _0x178496['sort']((_0xc72d9c,_0xb66cfb)=>{const _0x5c0ab3=_0xe21987[_0x1541('0x6f')](_0xc72d9c),_0xa9321c=_0xe21987['get'](_0xb66cfb);return _0x5c0ab3['y']-_0xa9321c['y']||_0x5c0ab3['x']-_0xa9321c['x'];}),(_0x1985be=_0x1985be[_0x1541('0x6')](_0x1b41aa=>_0x178496[_0x1541('0x59')](_0x1b41aa[_0x1541('0xf2')])))[_0x1541('0x103')]((_0x116391,_0x2a587f)=>_0x178496[_0x1541('0xe4')](_0x116391[_0x1541('0xf2')])-_0x178496[_0x1541('0xe4')](_0x2a587f[_0x1541('0xf2')])),_0x1985be;}['_makeTape'](_0x5170bb){const _0x5d96a0=Array[_0x1541('0x2c')](_0x5170bb[_0x1541('0xad')])[_0x1541('0x6')](([_0x57831f,_0x2781ae])=>_0x57831f[_0x1541('0x56')](_0x1541('0x18'))&&!_0x2781ae[_0x1541('0x9e')]),_0x5c2fc4=Array[_0x1541('0x2c')](this[_0x1541('0x3b')][_0x1541('0x38')]['createRangeIn'](_0x5170bb)[_0x1541('0xc9')]({'singleCharacters':!0x0}));if(0x0!=_0x5d96a0['length'])for(const _0x223f76 of _0x5c2fc4){const [_0x311945,_0x2131d4]=_0x5d96a0[0x0],[,_0x8693f6,_0x177df7]=_0x311945[_0x1541('0xba')](':');if(_0x2131d4[_0x1541('0xc')]['isEqual'](_0x223f76[_0x1541('0x5f')])&&_0x5d96a0[_0x1541('0xe7')](),(_0x223f76[_0x1541('0xd6')]['isEqual'](_0x2131d4[_0x1541('0xdc')])||_0x223f76['previousPosition'][_0x1541('0xc0')](_0x2131d4[_0x1541('0xdc')]))&&(_0x1541('0x11e')==_0x8693f6?_0x223f76[_0x1541('0x4c')]={'userId':_0x177df7}:'deletion'==_0x8693f6&&(_0x223f76[_0x1541('0x100')]={'userId':_0x177df7})),0x0==_0x5d96a0[_0x1541('0xb3')])break;}return _0x5c2fc4;}[_0x1541('0xf7')](_0x246434){const _0x55ebb7=new Map();for(let _0x1317da=0x0;_0x1317da<_0x246434[_0x1541('0xb3')];_0x1317da++)_0x1541('0x4')===_0x246434[_0x1317da]['type']?(_0x246434[_0x1317da][_0x1541('0x11')][_0x1541('0xc1')]=_0x1317da,_0x246434[_0x1317da][_0x1541('0x11')][_0x1541('0x123')]=_0x1317da):(_0x1541('0x68')===_0x246434[_0x1317da]['type']?_0x246434[_0x1317da]['item']['startIndex']=_0x1317da:_0x1541('0x112')===_0x246434[_0x1317da][_0x1541('0x4a')]&&(_0x246434[_0x1317da]['item'][_0x1541('0x123')]=_0x1317da),_0x55ebb7['set'](_0x246434[_0x1317da]['id'],_0x1317da));for(const _0x479e3b of _0x55ebb7[_0x1541('0x7b')]())'elementStart'===_0x246434[_0x479e3b][_0x1541('0x4a')]?_0x246434[_0x479e3b][_0x1541('0x11')]['endIndex']=_0x55ebb7[_0x1541('0x6f')](_0x246434[_0x479e3b][_0x1541('0xfc')]):_0x1541('0x112')===_0x246434[_0x479e3b][_0x1541('0x4a')]&&(_0x246434[_0x479e3b][_0x1541('0x11')]['startIndex']=_0x55ebb7[_0x1541('0x6f')](_0x246434[_0x479e3b][_0x1541('0xfc')]));}[_0x1541('0xfd')](_0x5a8560){for(let _0x389475=0x0;_0x389475<_0x5a8560[_0x1541('0xb3')];_0x389475++){if(_0x1541('0x68')===_0x5a8560[_0x389475]['type'])_0x5a8560[_0x389475][_0x1541('0x11')]['startIndex']=_0x389475;else{if(_0x1541('0x112')===_0x5a8560[_0x389475]['type']){_0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0x123')]=_0x389475;const _0x1b38f5=_0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0xc1')];_0x5a8560[_0x1b38f5]['pairId']=_0x5a8560[_0x389475]['id'],_0x5a8560[_0x389475][_0x1541('0xfc')]=_0x5a8560[_0x1b38f5]['id'];}else _0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0xc1')]=_0x389475,_0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0x123')]=_0x389475,_0x5a8560[_0x389475][_0x1541('0xfc')]=null;}_0x5a8560[_0x389475]['markersStart']||(_0x5a8560[_0x389475]['markersStart']=[],_0x5a8560[_0x389475][_0x1541('0x76')]=[]);}}[_0x1541('0xd')](_0x3ee86a,_0x3e89cb){const _0x2d9892=_0x3ee86a[_0x1541('0x6')](_0x461851=>!_0x461851[_0x1541('0x4c')]);for(let _0x465509=0x0;_0x465509<_0x3e89cb[_0x1541('0xb3')];_0x465509++)_0x3e89cb[_0x465509][_0x1541('0x4c')]&&(_0x2d9892[_0x465509][_0x1541('0x4c')]=_0x3e89cb[_0x465509][_0x1541('0x4c')]);}[_0x1541('0xe3')](_0x27e8c9){const _0x4a97f9=JSON['parse'](_0x27e8c9),_0x518c9d=this[_0x1541('0x3b')][_0x1541('0x73')]['view']['document'],_0x20ff63=new _0x50f55e(_0x518c9d,_0x4a97f9[_0x1541('0x7c')](_0x4ea949=>this[_0x1541('0x108')](_0x4ea949)));return this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0xa')](_0x20ff63);}[_0x1541('0x108')](_0x303092){const _0x7e0b0e=this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')][_0x1541('0x6d')];if(_0x1541('0x28')==typeof _0x303092)return new _0x21a021(_0x7e0b0e,_0x303092);{const _0x54c0f1=_0x303092[_0x1541('0x36')][_0x1541('0x7c')](_0x3d3208=>this['_getViewObj'](_0x3d3208));return new(tt[_0x303092[(_0x1541('0x4a'))]]||_0x3bf22)(_0x7e0b0e,_0x303092[_0x1541('0x1f')],_0x303092[_0x1541('0x124')],_0x54c0f1);}}['_getDiff'](_0x28526e,_0x543b9b=null){const _0x4a6b4e=this['repository'][_0x1541('0xc7')](_0x28526e),_0x5983f3=_0x543b9b?this[_0x1541('0x8b')][_0x1541('0xc7')](_0x543b9b):null,_0x25cfdf=this[_0x1541('0x96')](_0x4a6b4e,_0x5983f3),_0x6df84=_0x25cfdf[_0x25cfdf['length']-0x1],_0x5d5e26=new Map(),_0x5d6212={'model':{},'attributes':{},'changes':[]},_0x2b8781=new Set(),_0x19dbd7=new Map();for(let _0x2b7127=_0x25cfdf['length']-0x1;_0x2b7127>=0x0;_0x2b7127--){const _0x15109b=_0x25cfdf[_0x2b7127];for(const _0x4cbdd5 of Object['keys'](_0x15109b[_0x1541('0x16')]))if(_0x15109b['diffData'][_0x4cbdd5]['attachChange']){const _0x3f736a=_0x15109b[_0x1541('0x16')][_0x4cbdd5][_0x1541('0x7d')];_0x3f736a[_0x1541('0x37')]?(_0x2b8781[_0x1541('0x61')](_0x4cbdd5),_0x19dbd7['has'](_0x4cbdd5)&&_0x19dbd7[_0x1541('0x6f')](_0x4cbdd5)['userId']==_0x3f736a[_0x1541('0xf0')]?_0x19dbd7[_0x1541('0x3c')](_0x4cbdd5):_0x19dbd7['set'](_0x4cbdd5,_0x3f736a)):_0x19dbd7['has'](_0x4cbdd5)?(_0x2b8781[_0x1541('0x3c')](_0x4cbdd5),_0x19dbd7[_0x1541('0x3c')](_0x4cbdd5)):(_0x2b8781[_0x1541('0x61')](_0x4cbdd5),_0x19dbd7[_0x1541('0xc8')](_0x4cbdd5,_0x3f736a));}else _0x2b8781[_0x1541('0x61')](_0x4cbdd5);}for(const _0x1220db of _0x2b8781){const _0x5ac097=_0x19dbd7['has'](_0x1220db)&&!_0x19dbd7[_0x1541('0x6f')](_0x1220db)[_0x1541('0x37')];let _0x307335=_0x5ac097?_0x25cfdf['length']-0x1:0x0;const _0x58f364=_0x5ac097?-0x1:0x1;for(;_0x25cfdf[_0x307335];){const _0x9f8a97=_0x25cfdf[_0x307335];if(_0x9f8a97['diffData'][_0x1220db]){const _0x4b1557=_0x5ac097?_0x9f8a97[_0x1541('0x16')][_0x1220db]['attributesBefore']:_0x9f8a97['diffData'][_0x1220db][_0x1541('0xb9')];_0x5d6212[_0x1541('0x124')][_0x1220db]=_0x4b1557?_0x1fa925(_0x4b1557):{};break;}_0x307335+=_0x58f364;}}for(const _0x2e0e20 of _0x25cfdf){_0x2e0e20[_0x1541('0x38')]={};for(const _0x121832 of _0x2e0e20['authors'])_0x5d5e26[_0x1541('0xc8')](_0x121832['id'],_0x121832);for(const _0x54a4a0 of _0x2b8781){const _0x45463f=_0x2e0e20[_0x1541('0x16')][_0x54a4a0]?_0x2e0e20[_0x1541('0x16')][_0x54a4a0]['insertions']:'[]',_0x2622a7=_0x2e0e20[_0x1541('0x16')][_0x54a4a0]?_0x2e0e20[_0x1541('0x16')][_0x54a4a0]['deletions']:'[]';_0x2e0e20['model'][_0x54a4a0]={'insertions':this[_0x1541('0xe3')](_0x45463f),'deletions':this['_makeModelFromViewString'](_0x2622a7)};}}for(const _0x5f2f70 of _0x2b8781){let _0x4606f0=null,_0x26e920=0x0;const _0x5a58bd=new Map(Array['from'](_0x4a6b4e['model'][_0x5f2f70]['insertions'][_0x1541('0xad')])[_0x1541('0x6')](([_0x546fad])=>!_0x546fad[_0x1541('0x56')](_0x1541('0x18'))));let _0x278a6c=0x0;for(const _0x1292fe of _0x25cfdf){const _0x105904=this[_0x1541('0xcf')](_0x1292fe[_0x1541('0x38')][_0x5f2f70]['insertions']);_0x1292fe==_0x4a6b4e?(_0x4606f0=_0x105904,_0x26e920=_0x4606f0[_0x1541('0xb3')],_0x4606f0[_0x1541('0x6b')](_0x498dca=>{_0x498dca['id']=_0x278a6c++;}),this[_0x1541('0xfd')](_0x4606f0)):this['_markInsertions'](_0x4606f0,_0x105904);const _0xf3910a=_0x4606f0[_0x1541('0x6')](_0x16be59=>!_0x16be59[_0x1541('0x4c')])[_0x1541('0x7c')](_0x3d4e15=>_0x3d4e15['id']);let _0x4e0d59=0x0;const _0x5a3e3b=this['_makeTape'](_0x1292fe['model'][_0x5f2f70]['deletions']);_0x5a3e3b['forEach'](_0x1988fd=>{_0x1988fd[_0x1541('0x100')]?_0x1988fd['id']=_0x26e920++:_0x1988fd['id']=_0xf3910a[_0x4e0d59++];}),this['_processTape'](_0x5a3e3b),this['_setDistance'](_0x4606f0,_0x1541('0x4c')),this[_0x1541('0x30')](_0x5a3e3b,_0x1541('0x100')),_0x1292fe==_0x4a6b4e&&this[_0x1541('0x82')](_0x4606f0,_0x5a58bd),_0x4606f0=this[_0x1541('0x10f')](_0x4606f0,_0x5a3e3b),this[_0x1541('0xf7')](_0x4606f0),this[_0x1541('0x30')](_0x4606f0,_0x1541('0x100'));}_0x4606f0=_0x4606f0[_0x1541('0x6')](_0x4a564a=>!(_0x4a564a[_0x1541('0x4c')]&&_0x4a564a[_0x1541('0x100')]));const _0xdb3cea=new Map(_0x6df84[_0x1541('0x38')][_0x5f2f70][_0x1541('0x4b')][_0x1541('0xad')]),_0x142d0c=new Set(_0x5a58bd['keys']());for(const _0x53c28c of _0xdb3cea[_0x1541('0x2a')]())_0x142d0c['delete'](_0x53c28c);this[_0x1541('0x84')](_0x4606f0,_0x142d0c),this['_fixObsoleteTags'](_0x4606f0),_0x4606f0=this[_0x1541('0x2e')](_0x4606f0),_0x4606f0=this[_0x1541('0x21')](_0x4606f0),_0x4606f0=this['_removeUnsupportedChanges'](_0x4606f0);const {root:_0x90eb05,changes:_0x71b98f}=this[_0x1541('0x116')](_0x4606f0,_0x5d5e26,_0x5f2f70);_0x5d6212['model'][_0x5f2f70]=_0x90eb05;const _0x3e94ab=_0x19dbd7[_0x1541('0x6f')](_0x5f2f70);if(_0x3e94ab){const _0x3b073a=_0x5d5e26[_0x1541('0x6f')](_0x3e94ab['userId']),_0x165bdd=new _0x90d829({'author':_0x3b073a,'type':_0x3e94ab[_0x1541('0x37')]?_0x1541('0x61'):_0x1541('0x27'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5f2f70});_0x71b98f[_0x1541('0x52')](_0x165bdd),_0x5d6212[_0x1541('0x124')][_0x5f2f70][_0x1541('0x10a')]=_0x165bdd['id'];}_0x5d6212['changes']=_0x5d6212[_0x1541('0x10d')][_0x1541('0x99')](_0x71b98f);}return _0x5d6212;}['_markMarkers'](_0x4c7d02,_0x5a00c8){for(let _0x593fa8=0x0;_0x593fa8<_0x4c7d02[_0x1541('0xb3')];_0x593fa8++)for(const [_0x5a67d3,_0x5907ac]of _0x5a00c8)_0x5907ac[_0x1541('0xdc')]['isEqual'](_0x4c7d02[_0x593fa8][_0x1541('0xd6')])&&_0x4c7d02[_0x593fa8][_0x1541('0xd0')][_0x1541('0x9f')](_0x5a67d3),_0x5907ac['end'][_0x1541('0xff')](_0x4c7d02[_0x593fa8][_0x1541('0x5f')])&&_0x4c7d02[_0x593fa8][_0x1541('0x76')][_0x1541('0x9f')](_0x5a67d3);}[_0x1541('0x10f')](_0x13047c,_0x28fc2b){let _0x27ba92=[],_0x57c87e=0x0,_0x197cac=0x0;for(;_0x57c87e<_0x13047c['length']||_0x197cac<_0x28fc2b[_0x1541('0xb3')];){const _0x313e52=_0x13047c[_0x57c87e]||{},_0x117294=_0x28fc2b[_0x197cac]||{};if(_0x313e52['id']==_0x117294['id'])_0x57c87e++,_0x197cac++,_0x27ba92['push'](_0x313e52);else{if(_0x117294[_0x1541('0x100')]&&_0x313e52[_0x1541('0x4c')]){const {commonTape:_0x115112,iEnd:_0x1dfb16,jEnd:_0x584ed2}=this[_0x1541('0x1')](_0x13047c,_0x57c87e,_0x28fc2b,_0x197cac);_0x27ba92=_0x27ba92[_0x1541('0x99')](_0x115112),_0x57c87e=_0x1dfb16,_0x197cac=_0x584ed2;}else _0x117294['isRemoved']?(_0x197cac++,_0x27ba92['push'](_0x117294)):(_0x57c87e++,_0x27ba92[_0x1541('0x9f')](_0x313e52));}}return _0x27ba92;}[_0x1541('0x84')](_0x395a3c,_0x52af06){const _0x11cb7c=[];for(let _0x572a32=0x0;_0x572a32<_0x395a3c['length'];_0x572a32++){for(let _0x434f1b=0x0;_0x434f1b<_0x395a3c[_0x572a32]['markersStart']['length'];_0x434f1b++){const _0x1a3846=_0x395a3c[_0x572a32][_0x1541('0xd0')][_0x434f1b];if(!_0x52af06[_0x1541('0x15')](_0x1a3846))continue;const {group:_0x4ccb21,type:_0x14a467,authorId:_0x2e196c}=_0x4edc10(_0x1a3846);_0x1541('0xcd')!=_0x4ccb21||'insertion'!=_0x14a467&&'deletion'!=_0x14a467||(_0x11cb7c[_0x1541('0x52')]({'type':_0x14a467,'name':_0x1a3846,'userId':_0x2e196c}),_0x395a3c[_0x572a32][_0x1541('0xd0')][_0x1541('0x3a')](_0x434f1b,0x1),_0x434f1b--);}_0x3d869d(_0x395a3c[_0x572a32]);for(let _0xdda860=0x0;_0xdda860<_0x395a3c[_0x572a32][_0x1541('0x76')][_0x1541('0xb3')];_0xdda860++){const _0xdfddd3=_0x395a3c[_0x572a32][_0x1541('0x76')][_0xdda860];if(!_0x52af06[_0x1541('0x15')](_0xdfddd3))continue;const {group:_0x4f6233,type:_0x4b051a}=_0x4edc10(_0xdfddd3);if(_0x1541('0xcd')!=_0x4f6233||'insertion'!=_0x4b051a&&_0x1541('0xaf')!=_0x4b051a)continue;_0x395a3c[_0x572a32][_0x1541('0x76')][_0x1541('0x3a')](_0xdda860,0x1),_0xdda860--;const _0x136803=_0x11cb7c[_0x1541('0x1a')](_0xcb581d=>_0xcb581d[_0x1541('0x1f')]==_0xdfddd3);_0x136803>-0x1&&_0x11cb7c[_0x1541('0x3a')](_0x136803,0x1);}}function _0x4edc10(_0x337a5a){const _0x3ad80e=_0x337a5a[_0x1541('0xba')](':');return{'group':_0x3ad80e[0x0],'type':_0x3ad80e[0x1],'subType':_0x3ad80e[_0x1541('0xb3')]>=0x5?_0x3ad80e[0x2]:null,'id':_0x3ad80e['length']<0x5?_0x3ad80e[0x2]:_0x3ad80e[0x3],'authorId':_0x3ad80e['length']<0x5?_0x3ad80e[0x3]:_0x3ad80e[0x4],'markerCount':0x6==_0x3ad80e['length']?_0x3ad80e[0x5]:null};}function _0x3d869d(_0x3e8cf9){for(let _0x5369dc=0x0;_0x5369dc<_0x11cb7c[_0x1541('0xb3')];_0x5369dc++){if(_0x3e8cf9[_0x1541('0x4c')]&&_0x1541('0x11e')==_0x11cb7c[_0x5369dc][_0x1541('0x4a')])return _0x3e8cf9['isAddSuggestion']=_0x11cb7c[_0x5369dc],void delete _0x3e8cf9[_0x1541('0x4c')];if(!_0x3e8cf9['isAdded']&&!_0x3e8cf9[_0x1541('0x100')]&&_0x1541('0xaf')==_0x11cb7c[_0x5369dc][_0x1541('0x4a')])return void(_0x3e8cf9[_0x1541('0xf6')]=_0x11cb7c[_0x5369dc]);}}}['_setDistance'](_0x4492d6,_0x145b20){let _0x20287c=0x0,_0x257a51=!0x1;const _0x7a345c=new Map();for(const _0x19eb79 of _0x4492d6)_0x19eb79[_0x145b20]?_0x257a51&&(_0x20287c++,_0x257a51=!0x1):(_0x20287c++,_0x257a51=!0x0),_0x7a345c[_0x1541('0xc8')](_0x19eb79['id'],_0x20287c);for(let _0x4221b7=0x0;_0x4221b7<_0x4492d6['length'];_0x4221b7++){if(_0x1541('0x100')==_0x145b20&&_0x4492d6[_0x4221b7][_0x1541('0x4c')]||_0x1541('0x4c')==_0x145b20&&_0x4492d6[_0x4221b7]['isRemoved'])continue;if(_0x1541('0x4')==_0x4492d6[_0x4221b7]['type']){_0x4492d6[_0x4221b7][_0x1541('0x6c')]=0x0;continue;}const _0x4c83dd=_0x7a345c[_0x1541('0x6f')](_0x4492d6[_0x4221b7][_0x1541('0xfc')]),_0x4a549c=_0x7a345c[_0x1541('0x6f')](_0x4492d6[_0x4221b7]['id']);_0x4492d6[_0x4221b7][_0x1541('0x6c')]=_0x4c83dd-_0x4a549c;}}[_0x1541('0x96')](_0x2c46a9,_0x288aed,_0x4d0477=!0x1){const _0x525ee5=[];let _0x40573e=this[_0x1541('0x8b')][_0x1541('0x5c')](_0x2c46a9),_0x59ba30=this[_0x1541('0x8b')][_0x1541('0x5c')](_0x288aed);for(-0x1==_0x59ba30&&(_0x59ba30=this[_0x1541('0x8b')][_0x1541('0x40')][_0x1541('0xb3')],_0x4d0477=!0x1);_0x40573e<_0x59ba30;)_0x525ee5[_0x1541('0x9f')](this[_0x1541('0x8b')][_0x1541('0xc7')](_0x40573e)),_0x40573e++;return _0x4d0477&&_0x525ee5[_0x1541('0x9f')](this['repository'][_0x1541('0xc7')](_0x40573e)),_0x525ee5;}[_0x1541('0x1')](_0xebd0a,_0x497636,_0x451213,_0x558814){const _0x544bb7=this[_0x1541('0x3b')]['model']['schema'];let _0x233102=_0x497636;for(;_0xebd0a[_0x233102]&&_0xebd0a[_0x233102]['isAdded'];)_0x233102++;let _0x4c7128=_0x558814;for(;_0x451213[_0x4c7128]&&_0x451213[_0x4c7128]['isRemoved'];)_0x4c7128++;_0x33ac72(_0xebd0a,_0x497636,_0x233102),_0x33ac72(_0x451213,_0x558814,_0x4c7128);const _0x5b7ee8=_0x451213['slice'](_0x558814,_0x4c7128)['concat'](_0xebd0a[_0x1541('0x79')](_0x497636,_0x233102));return _0x5b7ee8[_0x1541('0x103')]((_0x51dd1f,_0x487118)=>_0x51dd1f[_0x1541('0x10b')]!=_0x487118['side']?_0x51dd1f['side']-_0x487118[_0x1541('0x10b')]:_0x51dd1f[_0x1541('0x75')]!=_0x487118[_0x1541('0x75')]?_0x51dd1f[_0x1541('0x75')]-_0x487118[_0x1541('0x75')]:_0x51dd1f['distance']!=_0x487118[_0x1541('0x6c')]?_0x487118[_0x1541('0x6c')]-_0x51dd1f[_0x1541('0x6c')]:!!_0x51dd1f[_0x1541('0x4c')]!=!!_0x487118['isAdded']?-0x1==_0x51dd1f[_0x1541('0x10b')]||0x0==_0x51dd1f[_0x1541('0x10b')]?_0x51dd1f[_0x1541('0x4c')]?-0x1:0x1:_0x51dd1f[_0x1541('0x4c')]?0x1:-0x1:_0x51dd1f[_0x1541('0xa3')]-_0x487118[_0x1541('0xa3')]),{'commonTape':_0x5b7ee8,'iEnd':_0x233102,'jEnd':_0x4c7128};function _0x33ac72(_0x361e1c,_0x2f95d3,_0x36cda1){let _0x59e9c6=-0x1,_0x52a943=Number[_0x1541('0xbf')],_0x1eb222=!0x0;for(let _0x8051f2=_0x2f95d3;_0x8051f2<_0x36cda1;_0x8051f2++)if(_0x544bb7[_0x1541('0x2f')](_0x361e1c[_0x8051f2][_0x1541('0x11')])||(_0x1eb222=!0x1),_0x361e1c[_0x8051f2][_0x1541('0x11')][_0x1541('0xc1')]<_0x2f95d3&&(_0x59e9c6=_0x8051f2),_0x361e1c[_0x8051f2]['item'][_0x1541('0x123')]>=_0x36cda1){_0x52a943=_0x8051f2;break;}_0x1eb222&&(_0x59e9c6=_0x36cda1-0x1);for(let _0x46a5ed=_0x2f95d3;_0x46a5ed<_0x36cda1;_0x46a5ed++)_0x361e1c[_0x46a5ed][_0x1541('0x10b')]=_0x46a5ed<=_0x59e9c6?-0x1:_0x46a5ed<_0x52a943?0x0:0x1,_0x361e1c[_0x46a5ed][_0x1541('0xa3')]=_0x46a5ed;let _0x12a5b8=0x0;for(let _0x89768d=_0x2f95d3;_0x89768d<=_0x59e9c6;_0x89768d++)0x0==_0x361e1c[_0x89768d]['distance']?_0x361e1c[_0x89768d][_0x1541('0x75')]=_0x12a5b8:(_0x12a5b8++,_0x361e1c[_0x89768d]['level']=_0x12a5b8,_0x12a5b8++);for(let _0x540793=_0x2f95d3;_0x540793<_0x36cda1;_0x540793++)0x0==_0x361e1c[_0x540793][_0x1541('0x10b')]&&(_0x361e1c[_0x540793][_0x1541('0x75')]=_0x12a5b8);_0x12a5b8=0x0;for(let _0x4ccb04=_0x36cda1-0x1;_0x4ccb04>=_0x52a943;_0x4ccb04--)0x0==_0x361e1c[_0x4ccb04][_0x1541('0x6c')]?_0x361e1c[_0x4ccb04][_0x1541('0x75')]=_0x12a5b8:(_0x12a5b8--,_0x361e1c[_0x4ccb04][_0x1541('0x75')]=_0x12a5b8,_0x12a5b8--);}}['_fixObsoleteTags'](_0x1076b5){const _0x1393a0=new Map(),_0x505021=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xb')];for(let _0x39c758=0x1;_0x39c758<_0x1076b5[_0x1541('0xb3')];_0x39c758++){let _0x3c632f,_0x3b0c65,_0x1d18a1;const _0x427be3=_0x1076b5[_0x39c758],_0x52038d=_0x1076b5[_0x39c758-0x1];if('text'==_0x427be3[_0x1541('0x4a')])continue;if(_0x427be3['type']!=_0x52038d[_0x1541('0x4a')])continue;if(!_0x505021[_0x1541('0xf5')](_0x52038d['item'])||_0x505021[_0x1541('0x102')](_0x52038d[_0x1541('0x11')]))continue;if(!_0x505021[_0x1541('0xf5')](_0x427be3[_0x1541('0x11')])||_0x505021[_0x1541('0x102')](_0x427be3[_0x1541('0x11')]))continue;if((_0x1076b5[_0x39c758][_0x1541('0x4c')]||_0x1076b5[_0x39c758][_0x1541('0x63')])&&_0x1076b5[_0x39c758-0x1]['isRemoved'])_0x3c632f=_0x1076b5[_0x39c758],_0x3b0c65=_0x1076b5[_0x39c758-0x1],_0x1d18a1=_0x39c758-0x1;else{if(!_0x1076b5[_0x39c758][_0x1541('0x100')]||!_0x1076b5[_0x39c758-0x1][_0x1541('0x4c')]&&!_0x1076b5[_0x39c758-0x1][_0x1541('0x63')])continue;_0x3c632f=_0x1076b5[_0x39c758-0x1],_0x3b0c65=_0x1076b5[_0x39c758],_0x1d18a1=_0x39c758;}const _0x574929=_0x3c632f[_0x1541('0x75')]==_0x3b0c65[_0x1541('0x75')],_0x52c008=Math['abs'](_0x3c632f[_0x1541('0x75')])<Math[_0x1541('0x10c')](_0x3b0c65[_0x1541('0x75')])&&0x0==_0x3b0c65['distance'];(_0x574929||_0x52c008)&&(_0x1393a0['set'](_0x3b0c65['id'],_0x3c632f['id']),_0x1076b5[_0x1541('0x3a')](_0x1d18a1,0x1),_0x39c758--,_0x3c632f[_0x1541('0x4c')]=!0x1);}for(let _0x181bfb=0x0;_0x181bfb<_0x1076b5[_0x1541('0xb3')];_0x181bfb++)_0x1393a0[_0x1541('0x15')](_0x1076b5[_0x181bfb][_0x1541('0xfc')])&&(_0x1076b5[_0x181bfb][_0x1541('0xfc')]=_0x1393a0['get'](_0x1076b5[_0x181bfb][_0x1541('0xfc')]));}[_0x1541('0x2e')](_0x502dd0){const _0x2f19fc=new Set(_0x502dd0[_0x1541('0x7c')](_0x22303e=>_0x22303e['id']));for(let _0x1b75b9=0x0;_0x1b75b9<_0x502dd0['length'];_0x1b75b9++)_0x2f19fc[_0x1541('0x15')](_0x502dd0[_0x1b75b9][_0x1541('0xfc')])||0x0==_0x502dd0[_0x1b75b9][_0x1541('0x6c')]||(_0x502dd0[_0x1b75b9][_0x1541('0x9b')]=!0x0);return _0x502dd0['filter'](_0x42b2c4=>!_0x42b2c4['isIncorrect']);}[_0x1541('0x21')](_0x509b53){const _0xec84dd=new Set();for(let _0x1a4112=0x0;_0x1a4112<_0x509b53[_0x1541('0xb3')];_0x1a4112++){if(_0xec84dd[_0x1541('0x15')](_0x509b53[_0x1a4112]['id'])&&_0x509b53[_0x1a4112][_0x1541('0x100')]&&(_0x509b53[_0x1a4112]['isIncorrect']=!0x0),_0x509b53[_0x1a4112][_0x1541('0x9b')])continue;if(0x0==_0x509b53[_0x1a4112]['distance'])continue;if(_0x1541('0x68')!=_0x509b53[_0x1a4112]['type'])continue;if(null==_0x509b53[_0x1a4112][_0x1541('0xfc')])continue;let _0x10c7fd=_0x1a4112+0x1,_0xad055=0x0;for(;_0x509b53[_0x10c7fd]['id']!=_0x509b53[_0x1a4112][_0x1541('0xfc')];)_0x1541('0x68')==_0x509b53[_0x10c7fd][_0x1541('0x4a')]?_0xad055++:_0x1541('0x112')==_0x509b53[_0x10c7fd][_0x1541('0x4a')]&&_0xad055--,_0x10c7fd++;if(0x0!=_0xad055){if(_0x509b53[_0x1a4112][_0x1541('0x100')])_0x509b53[_0x1a4112][_0x1541('0x9b')]=!0x0;else for(;_0x10c7fd!=_0x1a4112;)_0x509b53[_0x10c7fd][_0x1541('0x100')]&&0x0!=_0x509b53[_0x10c7fd]['distance']&&(_0x509b53[_0x10c7fd][_0x1541('0x9b')]=!0x0,_0xec84dd['add'](_0x509b53[_0x10c7fd]['pairId'])),_0x10c7fd--;}}return _0x509b53[_0x1541('0x6')](_0x5b4220=>!_0x5b4220['isIncorrect']);}['_removeUnsupportedChanges'](_0x4575aa){const _0x5c5def=this['editor'][_0x1541('0x38')]['schema'];for(let _0x108b31=0x0;_0x108b31<_0x4575aa[_0x1541('0xb3')];_0x108b31++){if(!(_0x4575aa[_0x108b31]['isAdded']||_0x4575aa[_0x108b31]['isAddSuggestion']||_0x4575aa[_0x108b31][_0x1541('0x100')]||_0x4575aa[_0x108b31]['isRemoveSuggestion']))continue;if(0x0==_0x4575aa[_0x108b31]['distance'])continue;const _0x9e7bfe=_0x4575aa[_0x108b31]['item'];_0x5c5def[_0x1541('0xf5')](_0x9e7bfe)||_0x5c5def[_0x1541('0x102')](_0x9e7bfe)||(_0x4575aa[_0x108b31][_0x1541('0x4c')]&&delete _0x4575aa[_0x108b31][_0x1541('0x4c')],_0x4575aa[_0x108b31][_0x1541('0x63')]&&delete _0x4575aa[_0x108b31]['isAddSuggestion'],_0x4575aa[_0x108b31][_0x1541('0xf6')]&&delete _0x4575aa[_0x108b31][_0x1541('0xf6')],_0x4575aa[_0x108b31][_0x1541('0x100')]&&(_0x4575aa[_0x108b31][_0x1541('0x9b')]=!0x0));}return _0x4575aa[_0x1541('0x6')](_0x4d48a5=>!_0x4d48a5['isIncorrect']);}[_0x1541('0x116')](_0x3c3f83,_0x503103,_0x5a30dd){const _0x3071ca=new _0x4390f7(),_0x234aca=[],_0x38363f=new Map(),_0x294a46=this[_0x1541('0x3b')]['model'],_0x3037bc=_0x294a46[_0x1541('0xb')],_0x6b217=[_0x3071ca],_0x22691f={},_0x355bc0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x23b5dc=null;const _0x99cf9d=[0x0];for(let _0x1a4459=0x0;_0x1a4459<_0x3c3f83[_0x1541('0xb3')];_0x1a4459++){let _0x22873b,_0x5d470f;if('elementStart'===_0x3c3f83[_0x1a4459][_0x1541('0x4a')]){_0x22873b=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d);const _0x231c79=new _0x24838a(_0x3c3f83[_0x1a4459][_0x1541('0x11')]['name'],_0x3c3f83[_0x1a4459]['item'][_0x1541('0x25')]());_0x6b217[0x0][_0x1541('0xee')](_0x231c79),_0x99cf9d['push'](0x0),_0x6b217[_0x1541('0x52')](_0x231c79),_0x5d470f=_0x294a46['createPositionFromPath'](_0x3071ca,_0x99cf9d),_0x23b5dc=null;}else{if(_0x1541('0x112')===_0x3c3f83[_0x1a4459][_0x1541('0x4a')])_0x6b217['shift'](),_0x22873b=_0x294a46['createPositionFromPath'](_0x3071ca,_0x99cf9d),_0x99cf9d[_0x1541('0x93')](),_0x99cf9d[_0x99cf9d[_0x1541('0xb3')]-0x1]++,_0x5d470f=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d),_0x23b5dc=null;else{if(_0x22873b=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d),_0x23b5dc&&_0x51ff52(_0x23b5dc,_0x3c3f83[_0x1a4459][_0x1541('0x11')]))_0x23b5dc[_0x1541('0x9a')]+=_0x3c3f83[_0x1a4459]['item'][_0x1541('0xa6')];else{const _0x434367=new _0x4109a4(_0x3c3f83[_0x1a4459][_0x1541('0x11')]['data'],_0x3c3f83[_0x1a4459][_0x1541('0x11')][_0x1541('0x25')]());_0x6b217[0x0]['_appendChild'](_0x434367),_0x23b5dc=_0x434367;}_0x99cf9d[_0x99cf9d[_0x1541('0xb3')]-0x1]+=_0x3c3f83[_0x1a4459][_0x1541('0x11')][_0x1541('0xc3')],_0x5d470f=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d);}}for(const _0x20f173 of _0x3c3f83[_0x1a4459][_0x1541('0xd0')])_0x38363f[_0x1541('0xc8')](_0x20f173,{'start':_0x22873b,'end':null});_0x31ae5f(_0x1541('0xf6'),_0x1a4459,_0x22873b,_0x5d470f),_0x31ae5f(_0x1541('0x63'),_0x1a4459,_0x22873b,_0x5d470f),_0x31ae5f(_0x1541('0x100'),_0x1a4459,_0x22873b,_0x5d470f),_0x31ae5f(_0x1541('0x4c'),_0x1a4459,_0x22873b,_0x5d470f);for(const _0x2d9ed5 of _0x3c3f83[_0x1a4459]['markersEnd']){_0x38363f[_0x1541('0x6f')](_0x2d9ed5)[_0x1541('0xc')]=_0x5d470f;}}for(const [_0x24b1dc,_0x2bbe1c]of _0x38363f){const _0x17968f=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x47')](_0x2bbe1c[_0x1541('0xdc')],_0x2bbe1c[_0x1541('0xc')]);_0x3071ca[_0x1541('0xad')][_0x1541('0xc8')](_0x24b1dc,_0x17968f);}return _0x234aca['sort']((_0x275b6a,_0x23f783)=>{const _0x14cac3=_0x3071ca['markers'][_0x1541('0x6f')](_0x1541('0x18')+_0x275b6a['id']),_0x3580c9=_0x3071ca[_0x1541('0xad')]['get'](_0x1541('0x18')+_0x23f783['id']);return _0x14cac3[_0x1541('0xdc')]['isBefore'](_0x3580c9[_0x1541('0xdc')])?-0x1:_0x14cac3[_0x1541('0xdc')]['isAfter'](_0x3580c9[_0x1541('0xdc')])?0x1:_0x14cac3[_0x1541('0xc')][_0x1541('0x119')](_0x3580c9[_0x1541('0xc')])?-0x1:_0x14cac3[_0x1541('0xc')][_0x1541('0xc0')](_0x3580c9[_0x1541('0xc')])?0x1:_0x1541('0x61')===_0x275b6a[_0x1541('0x4a')]?-0x1:0x1;}),{'root':_0x3071ca,'changes':_0x234aca};function _0x31ae5f(_0x477ba4,_0x40501e,_0x2b6b5a,_0x196921){const _0x429128=!!_0x3c3f83[_0x40501e][_0x477ba4],_0x19a2b1=_0x429128?_0x3c3f83[_0x40501e][_0x477ba4][_0x1541('0xf0')]:null,_0x3859f4=_0x40501e===_0x3c3f83[_0x1541('0xb3')]-0x1,_0x4f78f2=_0x355bc0[_0x477ba4][0x0],_0x140c85=_0x3037bc[_0x1541('0x10')](_0x3c3f83[_0x40501e]['item']);!_0x22691f[_0x477ba4]&&_0x429128?_0x22691f[_0x477ba4]={'start':_0x2b6b5a,'tapeItem':_0x3c3f83[_0x40501e],'userId':_0x19a2b1,'type':_0x477ba4}:_0x22691f[_0x477ba4]&&!_0x429128?(_0x22691f[_0x477ba4][_0x1541('0xc')]=_0x2b6b5a,_0x284f4a(_0x22691f[_0x477ba4]),_0x22691f[_0x477ba4]=null):_0x22691f[_0x477ba4]&&_0x429128&&_0x22691f[_0x477ba4][_0x1541('0xf0')]!==_0x19a2b1&&(_0x22691f[_0x477ba4][_0x1541('0xc')]=_0x2b6b5a,_0x4f78f2&&_0x4f78f2[_0x1541('0xf0')]===_0x22691f[_0x477ba4][_0x1541('0xf0')]||_0x284f4a(_0x22691f[_0x477ba4]),_0x22691f[_0x477ba4]={'start':_0x2b6b5a,'tapeItem':_0x3c3f83[_0x40501e],'userId':_0x19a2b1,'type':_0x477ba4}),_0x22691f[_0x477ba4]&&_0x140c85&&(_0x1541('0x68')!==_0x3c3f83[_0x40501e][_0x1541('0x4a')]||_0x4f78f2&&_0x4f78f2[_0x1541('0xf0')]===_0x19a2b1||_0x355bc0[_0x477ba4][_0x1541('0x52')]({'userId':_0x19a2b1,'object':_0x3c3f83[_0x40501e][_0x1541('0x11')],'change':_0x22691f[_0x477ba4]}),_0x1541('0x112')===_0x3c3f83[_0x40501e]['type']&&_0x4f78f2&&_0x4f78f2[_0x1541('0xd3')]===_0x3c3f83[_0x40501e][_0x1541('0x11')]&&(_0x355bc0[_0x477ba4][_0x1541('0xe7')](),_0x22691f[_0x477ba4]=_0x4f78f2['change'])),_0x22691f[_0x477ba4]&&_0x3859f4&&(_0x22691f[_0x477ba4][_0x1541('0xc')]=_0x196921,_0x284f4a(_0x22691f[_0x477ba4]),_0x22691f[_0x477ba4]=null);}function _0x284f4a({start:_0x19ec73,end:_0x3f6d8f,tapeItem:_0x4c0996,userId:_0x4c64e2,type:_0x23894d}){const _0xdee98d=_0x4c0996[_0x1541('0x11')],_0x188505=_0x294a46[_0x1541('0xb')][_0x1541('0xf5')](_0xdee98d)&&!_0x294a46[_0x1541('0xb')][_0x1541('0x102')](_0xdee98d),_0x6ae4dc=_0x19ec73['nodeAfter']==_0x3f6d8f[_0x1541('0x92')]&&_0x3f6d8f[_0x1541('0xb6')];if(_0x188505&&_0x6ae4dc)return;const _0x5656e8=_0x294a46[_0x1541('0x47')](_0x19ec73,_0x3f6d8f),_0x43bf03=_0x503103[_0x1541('0x6f')](_0x4c64e2),_0x22daff=new _0x90d829({'author':_0x43bf03,'type':_0x1541('0x4c')==_0x23894d||_0x1541('0x63')==_0x23894d?_0x1541('0x61'):_0x1541('0x27'),'data':{'isSuggestion':_0x1541('0x63')==_0x23894d||_0x1541('0xf6')==_0x23894d},'createdAt':new Date(),'rootName':_0x5a30dd});_0x234aca[_0x1541('0x9f')](_0x22daff),_0x3071ca[_0x1541('0xad')][_0x1541('0xc8')](_0x1541('0x18')+_0x22daff['id'],_0x5656e8);}function _0x51ff52(_0x1c88ca,_0x26f864){const _0x177288=_0x1c88ca[_0x1541('0x25')](),_0x5b5a4e=_0x26f864[_0x1541('0x25')]();for(const _0x166689 of _0x177288){if(_0x166689[0x1]!==_0x26f864[_0x1541('0x5b')](_0x166689[0x0]))return!0x1;_0x5b5a4e[_0x1541('0x20')]();}return _0x5b5a4e['next']()[_0x1541('0xb0')];}}[_0x1541('0x5')](){this[_0x1541('0x3b')]['conversion']['for'](_0x1541('0xe'))[_0x1541('0x7f')]({'view':_0x1541('0xa7')}),this['editor'][_0x1541('0x19')][_0x1541('0xa5')]('editingDowncast')['markerToHighlight']({'model':_0x1541('0xa7'),'view':_0x1a2b90=>{const _0x31d845=_0x1a2b90['markerName'][_0x1541('0xba')](':')[0x1],_0x5558a1=this[_0x1541('0x118')](_0x31d845);if(!_0x5558a1)return null;const _0x16a306=_0x1541('0x61')==_0x5558a1[_0x1541('0x4a')]?_0x1541('0x11e'):_0x1541('0xaf'),_0x5d816b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x16a306];return _0x5558a1[_0x1541('0xa6')][_0x1541('0xb2')]&&_0x5d816b[_0x1541('0x9f')](_0x1541('0x10e')+_0x16a306+'-new'),this[_0x1541('0x32')]==_0x5558a1&&_0x5d816b['push'](_0x1541('0x41')),{'classes':_0x5d816b,'attributes':{'data-change-id':_0x31d845}};}}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0xe'))['add'](_0x26c4d1=>{_0x26c4d1['on'](_0x1541('0x54'),(_0x298375,_0x13255a,_0x50fb0d)=>{const _0x139355=_0x13255a[_0x1541('0xd5')]['getChild'](0x0);if(!_0x139355||!_0x139355['is'](_0x1541('0x24'),_0x1541('0x11b')))return;if(!_0x50fb0d[_0x1541('0x60')][_0x1541('0xf8')](_0x139355,{'attributes':[_0x1541('0x121'),'vid_end']}))return;const _0x31c374=_0x13255a['modelRange'][_0x1541('0xdc')]['nodeAfter'];_0x50fb0d[_0x1541('0x7e')][_0x1541('0xa8')]('vid_start',_0x139355[_0x1541('0x5b')]('vid_start'),_0x31c374),_0x50fb0d[_0x1541('0x7e')][_0x1541('0xa8')]('vid_end',_0x139355[_0x1541('0x5b')](_0x1541('0x31')),_0x31c374);},{'priority':'low'});}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0xe'))[_0x1541('0x61')](_0x2525be=>{_0x2525be['on'](_0x1541('0x24'),(_0x736b25,_0x1107bc,_0x2b4c31)=>{if(!_0x2b4c31['consumable']['consume'](_0x1107bc[_0x1541('0xd5')],{'attributes':[_0x1541('0x121'),'vid_end']}))return;if(_0x1107bc[_0x1541('0x2d')][_0x1541('0x9e')])return;const _0x55cc46=_0x1107bc['modelRange']['start'][_0x1541('0x105')];_0x55cc46['hasAttribute'](_0x1541('0x121'))||_0x55cc46[_0x1541('0x5a')](_0x1541('0x77'))||(_0x2b4c31[_0x1541('0x7e')][_0x1541('0xa8')](_0x1541('0x121'),_0x1107bc['viewItem']['getAttribute'](_0x1541('0x121')),_0x55cc46),_0x2b4c31[_0x1541('0x7e')][_0x1541('0xa8')](_0x1541('0x31'),_0x1107bc[_0x1541('0xd5')][_0x1541('0x5b')](_0x1541('0x31')),_0x55cc46));},{'priority':_0x1541('0xe8')});}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0xe'))[_0x1541('0x3d')]({'view':{'name':_0x1541('0x29'),'attributes':{'vid':!0x0}},'model':{'key':_0x1541('0x77'),'value':_0x3e2805=>_0x3e2805[_0x1541('0x5b')](_0x1541('0x77'))}}),this[_0x1541('0x3b')][_0x1541('0x38')]['schema']['on']('checkAttribute',(_0x4609a5,[,_0x56f1b9])=>{[_0x1541('0x121'),_0x1541('0x31'),_0x1541('0x77')][_0x1541('0x59')](_0x56f1b9)&&(_0x4609a5[_0x1541('0x44')]=!0x0,_0x4609a5['stop']());},{'priority':_0x1541('0xbe')}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0x70'))['add'](_0x556023=>{_0x556023['on'](_0x1541('0xe2'),(_0x314d79,_0x3d6947,_0x568a9e)=>{if('\x20'!=_0x3d6947['item'][_0x1541('0xa6')]||_0x3d6947[_0x1541('0x11')][_0x1541('0x92')][_0x1541('0x80')]>0x1)return;if(!_0x568a9e[_0x1541('0x60')]['consume'](_0x3d6947['item'],_0x314d79[_0x1541('0x1f')]))return;const _0x4f5709=_0x568a9e['writer'],_0x21a9d0=_0x568a9e[_0x1541('0xb8')][_0x1541('0xab')](_0x3d6947[_0x1541('0x23')]);_0x4f5709[_0x1541('0xe6')](_0x21a9d0,_0x4f5709[_0x1541('0x55')]('span'));});}),this[_0x1541('0x3b')][_0x1541('0x19')]['for'](_0x1541('0x70'))[_0x1541('0x4e')]({'model':'revision'}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0xea'),function(_0x2f4241){const _0x28403b=_0x2f4241['plugins'][_0x1541('0x6f')](_0x1541('0x42'));return(_0x42a09d,_0x2b497a,_0x42ca3f)=>{const _0x4098c8=_0x2b497a[_0x1541('0x5d')][_0x1541('0xba')](':')[0x1],_0x2ee003=_0x28403b[_0x1541('0x118')](_0x4098c8);if(!_0x2ee003)return null;const _0x34d68d=_0x1541('0x61')==_0x2ee003[_0x1541('0x4a')]?_0x1541('0xba'):_0x1541('0xae');if(!_0x42ca3f[_0x1541('0x60')]['test'](_0x2b497a['markerRange'],_0x42a09d[_0x1541('0x1f')]))return;const _0x4e8136=_0x2b497a[_0x1541('0x2b')][_0x1541('0xc9')](),_0x240fcd=_0x2b497a[_0x1541('0x2b')][_0x1541('0xdc')],_0x418487=_0x2f4241[_0x1541('0x38')]['schema'];let _0x4fc95f=null,_0x4578a4=null,_0x5b345=!0x1,_0x4a0245=!0x1;for(const _0x493082 of _0x4e8136){const _0xb60f2=_0x493082['item'];_0x5b345=_0x5b345||_0x418487[_0x1541('0x88')](_0xb60f2);const _0x5a34d1=_0x42ca3f[_0x1541('0xb8')][_0x1541('0xdd')](_0xb60f2);if(_0x5a34d1&&_0x5a34d1[_0x1541('0xb5')](_0x1541('0x122')))return;_0x1541('0x112')==_0x493082[_0x1541('0x4a')]&&(_0x418487[_0x1541('0xf5')](_0xb60f2)&&!_0x418487[_0x1541('0x102')](_0xb60f2)&&(_0xb60f2['nextSibling']||_0x240fcd[_0x1541('0xfb')]?_0x4fc95f&&_0x4fc95f[_0x1541('0x92')]==_0xb60f2||(_0x4fc95f=_0xb60f2,_0x3a89e0(_0x493082[_0x1541('0xd6')]),_0x4a0245=!0x0):_0x4578a4=_0x4578a4||_0x493082[_0x1541('0xd6')]));}function _0x3a89e0(_0x428918){const _0xb7514d=_0x42ca3f[_0x1541('0x7e')][_0x1541('0xca')]('span',{'class':_0x1541('0x10e')+_0x34d68d}),_0x53390f=_0x42ca3f[_0x1541('0xb8')][_0x1541('0x11a')](_0x428918);_0x2ee003[_0x1541('0xa6')][_0x1541('0xb2')]&&_0x42ca3f[_0x1541('0x7e')][_0x1541('0x9c')](_0x1541('0x10e')+_0x34d68d+_0x1541('0xec'),_0xb7514d),_0x28403b['activeChange']==_0x2ee003&&_0x42ca3f[_0x1541('0x7e')][_0x1541('0x9c')](_0x1541('0x41'),_0xb7514d),_0x42ca3f['writer'][_0x1541('0xc6')](_0x53390f,_0xb7514d),_0x42ca3f['mapper'][_0x1541('0xd2')](_0xb7514d,_0x2b497a[_0x1541('0x5d')]);}_0x5b345||_0x4a0245||!_0x4578a4||_0x3a89e0(_0x4578a4);};}(this['editor']),{'priority':_0x1541('0x97')}),this['editor'][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0xc2'),(_0x29ee74,_0x36d205,_0x11f7c0)=>{const _0x28351d=_0x11f7c0[_0x1541('0xb8')][_0x1541('0x0')](_0x36d205[_0x1541('0x5d')]);if(_0x28351d)for(const _0x3c8cdc of _0x28351d)(_0x3c8cdc[_0x1541('0x114')](_0x1541('0x95'))||_0x3c8cdc['hasClass'](_0x1541('0x86')))&&(_0x11f7c0[_0x1541('0xb8')][_0x1541('0x14')](_0x3c8cdc,_0x36d205[_0x1541('0x5d')]),_0x11f7c0[_0x1541('0x7e')][_0x1541('0x27')](_0x3c8cdc));},{'priority':_0x1541('0x97')}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on']('addMarker:revision',(_0xe26a9b,_0x3ac5d9,_0x8d2618)=>{const _0x426d4a=_0x3ac5d9['markerName'][_0x1541('0xba')](':')[0x1],_0x1c5dd5=this[_0x1541('0x118')](_0x426d4a);if(!_0x1c5dd5)return null;const _0x67b9ea=_0x1541('0x61')==_0x1c5dd5[_0x1541('0x4a')]?_0x1541('0xba'):'merge';if(_0x8d2618[_0x1541('0x60')]['test'](_0x3ac5d9[_0x1541('0x2b')],_0xe26a9b[_0x1541('0x1f')]))for(const _0x47ef9e of _0x3ac5d9[_0x1541('0x2b')][_0x1541('0x48')]()){if(!_0x47ef9e['is'](_0x1541('0x24'),_0x1541('0xa0')))continue;const _0x3c0a2b=_0x8d2618[_0x1541('0x7e')]['createUIElement'](_0x1541('0x29'),{'class':_0x1541('0x10e')+_0x67b9ea}),_0x405444=_0x8d2618[_0x1541('0xb8')][_0x1541('0x11a')](this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x90')](_0x47ef9e));_0x1c5dd5['data'][_0x1541('0xb2')]&&_0x8d2618[_0x1541('0x7e')]['addClass']('ck-suggestion-marker-'+_0x67b9ea+_0x1541('0xec'),_0x3c0a2b),this[_0x1541('0x32')]==_0x1c5dd5&&_0x8d2618[_0x1541('0x7e')]['addClass']('ck-suggestion-marker--active',_0x3c0a2b),_0x8d2618[_0x1541('0x7e')]['insert'](_0x405444,_0x3c0a2b),_0x8d2618[_0x1541('0xb8')][_0x1541('0xd2')](_0x3c0a2b,_0x3ac5d9['markerName']);}},{'priority':_0x1541('0x97')}),this[_0x1541('0x3b')][_0x1541('0x38')]['document']['on']('change',()=>{this['editor'][_0x1541('0x73')][_0x1541('0x2')][_0x1541('0xcc')](_0x517937=>{for(const _0x23ac5c of this['editor'][_0x1541('0x38')][_0x1541('0x6d')][_0x1541('0x78')]()){const _0x5a4c66=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x6d')]['getRoot'](_0x23ac5c),_0x5a1f7c=this[_0x1541('0x3b')]['editing'][_0x1541('0x2')][_0x1541('0x6d')][_0x1541('0xdb')](_0x23ac5c);if(_0x5a1f7c){const _0x430048=_0x5a4c66[_0x1541('0x5b')](_0x1541('0x10a'));if(_0x517937['removeAttribute'](_0x1541('0x81'),_0x5a1f7c),_0x517937[_0x1541('0x12')](_0x1541('0xa2'),_0x5a1f7c),_0x517937[_0x1541('0x12')](_0x1541('0x67'),_0x5a1f7c),_0x517937[_0x1541('0x12')]('ck-revision-history-root--active',_0x5a1f7c),_0x430048){const _0x3089bf=this[_0x1541('0x118')](_0x430048);if(!_0x3089bf)return null;_0x517937[_0x1541('0xa8')](_0x1541('0x81'),_0x430048,_0x5a1f7c),_0x517937[_0x1541('0x9c')](_0x1541('0xed')+_0x3089bf[_0x1541('0x4a')],_0x5a1f7c),this[_0x1541('0x32')]==_0x3089bf&&_0x517937['addClass']('ck-revision-history-root--active',_0x5a1f7c);}}}});}),this[_0x1541('0x3b')]['conversion'][_0x1541('0xa5')](_0x1541('0xe'))['dataToMarker']({'view':_0x1541('0x34'),'model':_0x491c81=>_0x1541('0x94')+_0x491c81,'converterPriority':_0x1541('0xbe')}),this[_0x1541('0x3b')]['conversion']['for'](_0x1541('0xe'))['dataToMarker']({'view':_0x1541('0xaa'),'model':_0xea8a2d=>_0x1541('0xf1')+_0xea8a2d,'converterPriority':_0x1541('0xbe')}),this[_0x1541('0x3b')]['conversion'][_0x1541('0xa5')](_0x1541('0x70'))[_0x1541('0x4e')]({'model':_0x1541('0xcd'),'view':_0x2b9810=>({'name':_0x1541('0x117')+_0x2b9810,'group':'revision-suggestion'}),'converterPriority':'highest'}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0x43'))[_0x1541('0x69')]({'model':_0x1541('0xcd'),'view':_0x150ab6=>{const _0x551991=_0x150ab6[_0x1541('0x5d')][_0x1541('0xba')](':')[0x1];return _0x1541('0x11e')!=_0x551991&&_0x1541('0xaf')!=_0x551991?null:{'classes':['ck-suggestion-preview-marker',_0x1541('0xbd')+_0x551991]};}}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0x1c'),et(this[_0x1541('0x3b')],'merge'),{'priority':_0x1541('0x97')}),this['editor'][_0x1541('0x73')]['downcastDispatcher']['on'](_0x1541('0x33'),et(this[_0x1541('0x3b')],_0x1541('0xba')),{'priority':_0x1541('0x97')}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0xe5'),(_0x3dbd88,_0x2acd58,_0x2d26fb)=>{const _0x1e90de=_0x2d26fb[_0x1541('0xb8')][_0x1541('0x0')](_0x2acd58[_0x1541('0x5d')]);if(_0x1e90de)for(const _0x4869ff of _0x1e90de)_0x4869ff['is'](_0x1541('0xb1'))&&(_0x2d26fb[_0x1541('0xb8')][_0x1541('0x14')](_0x4869ff,_0x2acd58[_0x1541('0x5d')]),_0x2d26fb[_0x1541('0x7e')][_0x1541('0x27')](_0x4869ff));},{'priority':_0x1541('0x97')});}[_0x1541('0x118')](_0x105e14){return this['_changeIdToChange'][_0x1541('0x6f')](_0x105e14);}[_0x1541('0x8f')](_0x27f49e){return this[_0x1541('0xb7')]&&this[_0x1541('0xb7')][_0x1541('0xd1')](),this[_0x1541('0xb7')]=new _0x4e0c7a(this[_0x1541('0x3b')][_0x1541('0x7a')],_0x27f49e),this[_0x1541('0xb7')];}[_0x1541('0x106')](){this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x6d')][_0x1541('0xde')][_0x1541('0xd4')](_0x1541('0xa7')),this['on'](_0x1541('0x1b'),(_0x4e5a22,_0x3ce941,_0x7bfdc0,_0xb0d1b4)=>{_0xb0d1b4&&this[_0x1541('0x3')][_0x1541('0x27')](_0xb0d1b4),_0x7bfdc0&&(this[_0x1541('0x3')][_0x1541('0x61')]({'view':_0x7bfdc0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x503e38=this[_0x1541('0x3b')][_0x1541('0x73')],_0x237717=this['_getChangeFromId'](_0x7bfdc0[_0x1541('0x11f')]);let _0x5463a5;if(_0x237717['data'][_0x1541('0x11d')]){const _0x12345d=_0x503e38[_0x1541('0x2')]['getDomRoot'](_0x237717[_0x1541('0xf2')]);_0x5463a5=Array[_0x1541('0x2c')](_0x12345d['getClientRects']());}else{const _0x225d51=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xad')][_0x1541('0x6f')](_0x1541('0x18')+_0x7bfdc0[_0x1541('0x11f')]);_0x5463a5=Array[_0x1541('0x2c')](_0x503e38[_0x1541('0xb8')][_0x1541('0x0')](_0x225d51[_0x1541('0x1f')]))[_0x1541('0x7c')](_0x175840=>_0x503e38[_0x1541('0x2')]['domConverter'][_0x1541('0x64')](_0x175840))['map'](_0x203040=>Array[_0x1541('0x2c')](_0x203040[_0x1541('0x7')]()))[_0x1541('0xef')]();}if(!this[_0x1541('0xbb')])return _0x5463a5[0x0];return _0x5463a5[_0x1541('0x71')](_0xb83fdd=>_0xb83fdd['top']-0x3<=this['_activeViewTarget']['y']&&_0xb83fdd[_0x1541('0x9')]+0x3>=this[_0x1541('0xbb')]['y']&&_0xb83fdd['left']-0x3<=this[_0x1541('0xbb')]['x']&&_0xb83fdd[_0x1541('0xda')]+0x3>=this[_0x1541('0xbb')]['x'])||_0x5463a5[0x0];}}}),this[_0x1541('0x3')][_0x1541('0x72')](_0x1541('0x39')));}),this['on'](_0x1541('0xbc'),(_0x72f325,_0x5d2b57,_0x3f105b,_0x5de37d)=>{this[_0x1541('0x1e')]=_0x3f105b?this[_0x1541('0x8f')](_0x3f105b):null,this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xcc')](()=>{const _0x20d182=this[_0x1541('0x3b')][_0x1541('0x73')];_0x5de37d&&(_0x5de37d[_0x1541('0xa6')][_0x1541('0x11d')]?_0x20d182[_0x1541('0x2')][_0x1541('0xcc')](_0x1a53ba=>{_0x1a53ba[_0x1541('0x12')](_0x1541('0x87'),_0x20d182['view'][_0x1541('0x6d')]['getRoot'](_0x5de37d[_0x1541('0xf2')]));}):_0x20d182[_0x1541('0x3e')](_0x1541('0x18')+_0x5de37d['id'])),_0x3f105b&&(_0x3f105b[_0x1541('0xa6')][_0x1541('0x11d')]?_0x20d182[_0x1541('0x2')][_0x1541('0xcc')](_0x3c8660=>{_0x3c8660['addClass']('ck-revision-history-root--active',_0x20d182[_0x1541('0x2')]['document'][_0x1541('0xdb')](_0x3f105b[_0x1541('0xf2')]));}):_0x20d182[_0x1541('0x3e')](_0x1541('0x18')+_0x3f105b['id']));});}),this[_0x1541('0x115')](this[_0x1541('0x3b')]['editing'][_0x1541('0x2')]['document'],_0x1541('0x8e'),(_0x348d33,_0x2ecf73)=>{if(this[_0x1541('0x32')])return;const _0x4c29db=this[_0x1541('0x6a')](_0x2ecf73[_0x1541('0xeb')]),_0x162b99=this[_0x1541('0x4d')][_0x1541('0x6f')](_0x4c29db);_0x162b99?(this[_0x1541('0xbb')]={'x':_0x2ecf73['domEvent']['x'],'y':_0x2ecf73[_0x1541('0x8c')]['y']},this[_0x1541('0x1e')]=this['_getViewForChange'](_0x162b99)):(this[_0x1541('0xbb')]=null,this[_0x1541('0x1e')]=null);}),this[_0x1541('0x115')](this[_0x1541('0x3b')]['editing'][_0x1541('0x2')][_0x1541('0x6d')],'mousedown',(_0xdb7e49,_0x3a763e)=>{const _0x24a7c5=this[_0x1541('0x6a')](_0x3a763e[_0x1541('0xeb')]),_0x2f5034=this[_0x1541('0x4d')]['get'](_0x24a7c5);_0x2f5034?(this[_0x1541('0xbb')]={'x':_0x3a763e[_0x1541('0x8c')]['x'],'y':_0x3a763e[_0x1541('0x8c')]['y']},_0x2f5034===this['activeChange']?this['_balloon'][_0x1541('0x65')]():this[_0x1541('0x32')]=_0x2f5034):(this[_0x1541('0xbb')]=null,this[_0x1541('0x32')]=null);});}[_0x1541('0x6a')](_0x36b879){do{const _0xb03e6c=_0x36b879[_0x1541('0x5b')](_0x1541('0x81'));if(_0xb03e6c)return _0xb03e6c;_0x36b879=_0x36b879[_0x1541('0x92')];}while(_0x36b879);return null;}['_cleanMarkers'](){this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xcc')](_0x4be012=>{for(const _0x1438d5 of this[_0x1541('0x3b')]['model'][_0x1541('0xad')])_0x4be012[_0x1541('0xf')](_0x1438d5);});}}function et(_0x547893,_0x5e6f16){return(_0x1614f8,_0x4bcdb2,_0x2c47f0)=>{if(!_0x2c47f0[_0x1541('0x60')][_0x1541('0x22')](_0x4bcdb2['markerRange'],_0x1614f8['name']))return;const _0x406d1d=_0x4bcdb2['markerRange'][_0x1541('0xc9')](),_0x543fed=_0x4bcdb2['markerRange'][_0x1541('0xdc')],_0x69faea=_0x547893[_0x1541('0x38')][_0x1541('0xb')];let _0x1fac10=null,_0x195805=null,_0x327130=!0x1,_0x19e99d=!0x1;for(const _0x1ace5f of _0x406d1d){const _0x5082e0=_0x1ace5f[_0x1541('0x11')];_0x327130=_0x327130||_0x69faea[_0x1541('0x88')](_0x5082e0);const _0x1c284b=_0x2c47f0[_0x1541('0xb8')][_0x1541('0xdd')](_0x5082e0);if(_0x1c284b&&_0x1c284b[_0x1541('0xb5')](_0x1541('0x122')))return;_0x1541('0x112')==_0x1ace5f['type']&&(_0x69faea[_0x1541('0xf5')](_0x5082e0)&&!_0x69faea[_0x1541('0x102')](_0x5082e0)&&(_0x5082e0[_0x1541('0xf3')]||_0x543fed['isAtEnd']?_0x1fac10&&_0x1fac10[_0x1541('0x92')]==_0x5082e0||(_0x1fac10=_0x5082e0,_0x14f47e(_0x1ace5f[_0x1541('0xd6')]),_0x19e99d=!0x0):_0x195805=_0x195805||_0x1ace5f[_0x1541('0xd6')]));}function _0x14f47e(_0x55e41f){const _0x157e88=_0x2c47f0[_0x1541('0xb8')][_0x1541('0x11a')](_0x55e41f),_0xfd6e8e=_0x2c47f0[_0x1541('0x7e')][_0x1541('0xca')](_0x1541('0x29'),{'class':_0x1541('0xbd')+_0x5e6f16});_0x2c47f0['writer'][_0x1541('0xc6')](_0x157e88,_0xfd6e8e),_0x2c47f0['mapper'][_0x1541('0xd2')](_0xfd6e8e,_0x4bcdb2[_0x1541('0x5d')]);}_0x327130||_0x19e99d||!_0x195805||_0x14f47e(_0x195805);};}export class RestoreRevisionCommand extends _0x2b67f2{constructor(_0x4f73ff){super(_0x4f73ff);const _0x4647ad=_0x4f73ff[_0x1541('0x26')]['get'](d);this[_0x1541('0x8a')]=!0x1,this[_0x1541('0x115')](_0x4647ad,'change:isReady',()=>this['refresh']()),this[_0x1541('0x115')](_0x4647ad,_0x1541('0xf4'),()=>this[_0x1541('0x9d')]());}['execute'](){const _0x9472f2=this[_0x1541('0x3b')],_0xa6cfd6=_0x9472f2['plugins'][_0x1541('0x6f')](d),_0x26752a=_0xa6cfd6[_0x1541('0x4f')]?_0xa6cfd6[_0x1541('0xc5')]['newRevisionId']:null;_0x9472f2[_0x1541('0x17')][_0x1541('0x6f')](_0x1541('0x58'))[_0x1541('0x45')](_0x26752a);}[_0x1541('0x9d')](){const {isReady:_0x52c8b6,isEnabled:_0x143cfd}=this[_0x1541('0x3b')][_0x1541('0x26')][_0x1541('0x6f')](d);this[_0x1541('0x8d')]=_0x52c8b6&&_0x143cfd;}}export class ShowChangeCommand extends _0x2b67f2{constructor(_0x2a17bb,{direction:_0x52e5ba}){super(_0x2a17bb);const _0x43e5d7=_0x2a17bb[_0x1541('0x26')][_0x1541('0x6f')](d);this[_0x1541('0x8a')]=!0x1,this['_step']=_0x1541('0x3f')===_0x52e5ba?0x1:-0x1,this[_0x1541('0x115')](_0x43e5d7,_0x1541('0x113'),()=>this[_0x1541('0x9d')]()),this[_0x1541('0x115')](_0x43e5d7,_0x1541('0xf4'),()=>this[_0x1541('0x9d')]()),this['listenTo'](_0x43e5d7,'change:activeChange',()=>this[_0x1541('0x9d')]());}[_0x1541('0xac')](){const _0x35d91d=this[_0x1541('0x3b')],_0x6bdb21=_0x35d91d[_0x1541('0x26')][_0x1541('0x6f')](d),{isNavigationMode:_0x5b5910,currentChangeNumber:_0x30b28e}=_0x6bdb21;let _0x13821c;if(_0x6bdb21[_0x1541('0x32')]=_0x5b5910?_0x6bdb21[_0x1541('0xc5')][_0x1541('0x10d')][_0x1541('0x6f')](_0x30b28e+this[_0x1541('0x62')]):_0x6bdb21['diff']['changes'][_0x1541('0x49')],_0x6bdb21['activeChange'][_0x1541('0xa6')][_0x1541('0x11d')])_0x13821c=_0x35d91d[_0x1541('0x73')]['view'][_0x1541('0xd7')](_0x6bdb21['activeChange'][_0x1541('0xf2')]);else{const _0x594219=_0x35d91d[_0x1541('0x38')][_0x1541('0xad')][_0x1541('0x6f')]('revision:'+_0x6bdb21['activeChange']['id']);_0x13821c=_0x10b913(_0x35d91d[_0x1541('0x73')],_0x594219);}_0x142e83({'target':_0x13821c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19d59e,currentChangeNumber:_0x19dd97,numberOfChanges:_0x53fcf1,isReady:_0xbd14c6,isEnabled:_0x298971}=this[_0x1541('0x3b')][_0x1541('0x26')]['get'](d);this[_0x1541('0x8d')]=!!(_0x298971&&_0xbd14c6&&_0x53fcf1)&&(!_0x19d59e||(0x1===this[_0x1541('0x62')]?_0x19dd97<_0x53fcf1-0x1:_0x19dd97>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2184=['buttonView','Compare\x20against\x20selected','locale','children','class','Name\x20this\x20revision','isReady','extendTemplate','listenTo','_action','source','set','listView','isEnabled','Show\x20more\x20items','isActionsDropdownOpen','find','name','button','change:isActionsDropdownOpen','add','stopPropagation','first','bind','isVisible','panelPosition','items','bindTemplate','ck-on','function','action'];(function(_0x595473,_0x218429){const _0x1981ff=function(_0x553d38){while(--_0x553d38){_0x595473['push'](_0x595473['shift']());}};_0x1981ff(++_0x218429);}(_0x2184,0x1db));const _0x1981=function(_0x595473,_0x218429){_0x595473=_0x595473-0x0;let _0x1981ff=_0x2184[_0x595473];return _0x1981ff;};import{Collection as _0xc49d42}from'ckeditor5/src/utils';import{icons as _0x1c91df}from'ckeditor5/src/core';import{Model as _0x5e790a,addListToDropdown as _0x102008,createDropdown as _0x2df76e}from'ckeditor5/src/ui';import{getTranslation as _0x5d5537}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x283458,_0x40be32){const _0x2f53ae=_0x283458[_0x1981('0x11')],_0x376bd5=_0x283458[_0x1981('0x17')],_0x2e3a6b=_0x2df76e(_0x376bd5);_0x2e3a6b[_0x1981('0xf')]='sw';const _0xfc9c84=function(_0x9e26de,_0x429816){const _0x11c485=function(_0x2e599d,_0x1b2120){const _0x3cdc9d=_0x2e599d[_0x1981('0x17')],_0x3f9e13={'Compare\x20against\x20selected':_0x5d5537(_0x3cdc9d,_0x1981('0x16')),'Name\x20this\x20revision':_0x5d5537(_0x3cdc9d,_0x1981('0x1a')),'Restore\x20this\x20revision':_0x5d5537(_0x3cdc9d,'Restore\x20this\x20revision')};return _0x1b2120['map'](_0xcc7d3f=>{const _0x5f23dd=_0x3f9e13[_0xcc7d3f[_0x1981('0x7')]];return _0x5f23dd&&_0x5f23dd!==_0xcc7d3f[_0x1981('0x7')]&&(_0xcc7d3f[_0x1981('0x7')]=_0x5f23dd),_0xcc7d3f;});}(_0x9e26de,_0x429816),_0x1d7fa3=new _0xc49d42();for(const _0x1ec0e8 of _0x11c485){const _0x371376={'type':_0x1981('0x8'),'model':new _0x5e790a({'label':_0x1ec0e8['name'],'class':_0x1ec0e8[_0x1981('0x19')],'withText':!0x0,'_action':_0x1ec0e8[_0x1981('0x14')]})};_0x371376['model'][_0x1981('0xd')](_0x1981('0x3'))['to'](_0x9e26de,_0x1981('0x5'),_0x3ecf65=>_0x1981('0x13')!=typeof _0x1ec0e8['isEnabled']||(!_0x3ecf65||_0x1ec0e8['isEnabled'](_0x9e26de))),_0x1d7fa3[_0x1981('0xa')](_0x371376);}return _0x1d7fa3;}(_0x283458,_0x40be32);return _0x283458[_0x1981('0xd')](_0x1981('0x5'))['to'](_0x2e3a6b,'isOpen'),_0x2e3a6b[_0x1981('0x15')][_0x1981('0x1')]({'label':_0x5d5537(_0x376bd5,_0x1981('0x4')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c91df['threeVerticalDots']}),_0x2e3a6b[_0x1981('0x1c')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2f53ae['if'](_0x1981('0x5'),_0x1981('0x12'))]},'on':{'click':_0x2f53ae['to'](_0x1d9f8=>_0x1d9f8[_0x1981('0xb')]())}}),_0x2e3a6b['on']('execute',_0x54c99e=>{_0x283458[_0x1981('0x1b')]&&_0x1981('0x13')==typeof _0x54c99e[_0x1981('0x0')][_0x1981('0x1e')]&&_0x54c99e[_0x1981('0x0')][_0x1981('0x1e')](_0x283458);}),_0x102008(_0x2e3a6b,_0xfc9c84),_0x2e3a6b[_0x1981('0x1d')](_0x283458,_0x1981('0x9'),(_0x3135e4,_0x4b052c,_0x3f6a86)=>{if(_0x3f6a86)for(const _0x5bc647 of _0x2e3a6b[_0x1981('0x2')][_0x1981('0x10')]){const _0x417b02=_0x5bc647[_0x1981('0x18')][_0x1981('0xc')],_0x1109a9=_0x40be32[_0x1981('0x6')](_0x11945c=>_0x11945c['action']===_0x417b02[_0x1981('0x1e')])[_0x1981('0xe')];_0x5bc647[_0x1981('0xe')]=void 0x0===_0x1109a9||_0x1109a9(_0x283458);}}),_0x2e3a6b;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c32=['push','ck-revision-history-sidebar__revision-author__name','Revision\x20author','span','ck-revision-history-sidebar__revision-author','name','0\x200\x2011\x2010','setTemplate','Revision\x20creator'];(function(_0x5db984,_0x3c32ee){const _0x53410c=function(_0x2af928){while(--_0x2af928){_0x5db984['push'](_0x5db984['shift']());}};_0x53410c(++_0x3c32ee);}(_0x3c32,0x1ee));const _0x5341=function(_0x5db984,_0x3c32ee){_0x5db984=_0x5db984-0x0;let _0x53410c=_0x3c32[_0x5db984];return _0x53410c;};import{View as _0x3f565a,IconView as _0x23381d}from'ckeditor5/src/ui';import{getTranslation as _0x3e2271}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x47cba8 from'../../../theme/icons/user.svg';export default class ti extends _0x3f565a{constructor(_0x2b98ec,_0xae2758,_0x30d4bd){super(_0x2b98ec);const _0x55661f=new _0x23381d();_0x55661f['set']({'content':_0x47cba8,'viewBox':_0x5341('0x7')});const _0x39da23=['ck',_0x5341('0x5')];_0x30d4bd&&_0x39da23[_0x5341('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x34a835=[{'tag':_0x5341('0x4'),'attributes':{'class':['ck',_0x5341('0x2')],'title':_0x3e2271(_0x2b98ec,_0x30d4bd?_0x5341('0x0'):_0x5341('0x3'))},'children':[_0x55661f,_0xae2758[_0x5341('0x6')]]}];this[_0x5341('0x8')]({'tag':'li','attributes':{'class':_0x39da23},'children':_0x34a835});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2980=['ck-revision-history-sidebar__revision-name','span','set','Revision\x20name'];(function(_0x4d945f,_0x2980d1){var _0x6f1c2=function(_0x42e0b9){while(--_0x42e0b9){_0x4d945f['push'](_0x4d945f['shift']());}};_0x6f1c2(++_0x2980d1);}(_0x2980,0x1aa));var _0x6f1c=function(_0x4d945f,_0x2980d1){_0x4d945f=_0x4d945f-0x0;var _0x6f1c2=_0x2980[_0x4d945f];return _0x6f1c2;};import{LabeledFieldView as _0x593001}from'ckeditor5/src/ui';import{getTranslation as _0x41fa6f}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x593001{constructor(_0x53e46b,_0x3b8868){super(_0x53e46b,_0x3b8868),this[_0x6f1c('0x0')]({'label':_0x41fa6f(_0x53e46b,_0x6f1c('0x1'))}),this['extendTemplate']({'tag':_0x6f1c('0x3'),'attributes':{'class':[_0x6f1c('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc095=['listenTo','_createdAtFormatted','ck-revision-history-sidebar__actions_dropdown_open','span','ck-revision-history-sidebar__revision_selected','from','closest','authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','div','unshift','map','isConfirm','name','uiLanguage','isEnabled','change','_revision','element','length','fieldView','createdAt','set','revisionActionsView','ck-disabled','deselect','srcElement','fire','isSelected','.ck-thread__remove-confirm','isHighlighted','ck-revision-history-sidebar__revision__controls-wrapper','isReady','unhighlight','creator','revisionNameView','ck-revision-history-sidebar__revision-authors','filter','isActionsDropdownOpen','highlight','ck-reset','select','value','ck-revision-history-sidebar__revision__date','bind','bindTemplate','setTemplate','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision_highlighted'];(function(_0x44f4a3,_0xc095ce){const _0x55f499=function(_0x10ed5b){while(--_0x10ed5b){_0x44f4a3['push'](_0x44f4a3['shift']());}};_0x55f499(++_0xc095ce);}(_0xc095,0x185));const _0x55f4=function(_0x44f4a3,_0xc095ce){_0x44f4a3=_0x44f4a3-0x0;let _0x55f499=_0xc095[_0x44f4a3];return _0x55f499;};import{View as _0x16fb83,createLabeledInputText as _0x3681e9}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5163ff}from'ckeditor5-collaboration/src/collaboration-core';import _0xfe269c from'./revisionnameview';import _0x22ee94 from'./revisionauthorview';import{dateToPrettyFormat as _0x25d2ad}from'./utils';import{createActionsDropdownView as _0x3c396b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5163ff(_0x16fb83){constructor(_0x35cb23,_0x5eba1b,_0x3378e9){super(_0x35cb23);const _0x6210a7=this[_0x55f4('0x30')],_0x4d6ee7=function(_0x3a0f62,_0x3054bd){const _0x204481=Array[_0x55f4('0x8')](_0x3054bd[_0x55f4('0xa')])[_0x55f4('0x28')](_0x187d14=>_0x187d14!=_0x3054bd[_0x55f4('0x25')]);return _0x3054bd[_0x55f4('0x25')]&&_0x204481[_0x55f4('0xd')](_0x3054bd[_0x55f4('0x25')]),_0x204481[_0x55f4('0xe')](_0x191f1b=>new _0x22ee94(_0x3a0f62,_0x191f1b,_0x191f1b==_0x3054bd[_0x55f4('0x25')]));}(_0x35cb23,_0x5eba1b);this['id']=_0x5eba1b['id'],this[_0x55f4('0x14')]=_0x5eba1b,this['bind'](_0x55f4('0x10'),_0x55f4('0x18'))['to'](_0x5eba1b),this[_0x55f4('0x2f')](_0x55f4('0x4'))['to'](this,_0x55f4('0x18'),_0x10ff9b=>_0x10ff9b?_0x25d2ad(_0x35cb23[_0x55f4('0x11')],_0x10ff9b):void 0x0),this['set'](_0x55f4('0x1f'),!0x1),this[_0x55f4('0x19')]('isHighlighted',!0x1),this[_0x55f4('0x19')](_0x55f4('0x29'),!0x1),this[_0x55f4('0x19')](_0x55f4('0x23'),!0x1),this[_0x55f4('0x19')](_0x55f4('0x12'),!0x1),this['revisionNameView']=new _0xfe269c(_0x35cb23,_0x3681e9),this[_0x55f4('0x26')][_0x55f4('0x17')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x55f4('0x26')]['fieldView'][_0x55f4('0x2f')](_0x55f4('0x2d'),'placeholder')['to'](this,'name',_0x55f4('0x4')),this['revisionNameView'][_0x55f4('0x2f')](_0x55f4('0x12'))['to'](this,_0x55f4('0x1f'),this,_0x55f4('0x12'),(_0x5d3dab,_0x548e41)=>_0x5d3dab&&_0x548e41),this[_0x55f4('0x1a')]=_0x3378e9&&_0x3378e9[_0x55f4('0x16')]?_0x3c396b(this,_0x3378e9):'',this[_0x55f4('0x1a')]&&this[_0x55f4('0x1a')]['bind'](_0x55f4('0x12'))['to'](this),this[_0x55f4('0x0')]({'tag':'div','attributes':{'class':['ck',_0x55f4('0x2b'),_0x55f4('0x1'),_0x6210a7['if'](_0x55f4('0xf'),_0x55f4('0xb'))]},'children':[{'tag':_0x55f4('0xc'),'attributes':{'class':['ck',_0x55f4('0x2b'),'ck-revision-history-sidebar__revision',_0x6210a7['if'](_0x55f4('0x12'),_0x55f4('0x1b'),_0x305372=>!_0x305372),_0x6210a7['if'](_0x55f4('0x1f'),_0x55f4('0x7')),_0x6210a7['if'](_0x55f4('0x21'),_0x55f4('0x2')),_0x6210a7['if']('isActionsDropdownOpen',_0x55f4('0x5'))]},'children':[this['revisionNameView'],{'tag':_0x55f4('0x6'),'attributes':{'class':['ck',_0x55f4('0x2e')]},'children':[{'text':_0x6210a7['to'](_0x55f4('0x4'))}]},{'tag':'div','attributes':{'class':['ck',_0x55f4('0x22')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x55f4('0x27')]},'children':_0x4d6ee7}]},this[_0x55f4('0x1a')]],'on':{'click':_0x6210a7['to'](_0x44521b=>{_0x44521b[_0x55f4('0x1d')][_0x55f4('0x9')](_0x55f4('0x20'))||this[_0x55f4('0x23')]&&this[_0x55f4('0x12')]&&this['fire'](_0x55f4('0x2c'),{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1fd00e=this['revisionNameView']['fieldView'][_0x55f4('0x15')];this[_0x55f4('0x3')](_0x1fd00e,_0x55f4('0x13'),()=>{this[_0x55f4('0x1e')]('setName',{'id':this['id'],'name':_0x1fd00e[_0x55f4('0x2d')]});});}[_0x55f4('0x2c')](){this[_0x55f4('0x1f')]=!0x0;}[_0x55f4('0x1c')](){this[_0x55f4('0x1f')]=!0x1;}[_0x55f4('0x2a')](){this[_0x55f4('0x21')]=!0x0;}[_0x55f4('0x24')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c95=['button','ck-revision-history-sidebar__subrevision-collapser__inner','toggle','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','isVisible','ck-revision-history-sidebar__subrevision-collapser','click','ck-hidden','bindTemplate','span','set','true','_isCollapsed'];(function(_0x563a3a,_0x1c9511){const _0x47a8f2=function(_0x1683e6){while(--_0x1683e6){_0x563a3a['push'](_0x563a3a['shift']());}};_0x47a8f2(++_0x1c9511);}(_0x1c95,0x1ce));const _0x47a8=function(_0x563a3a,_0x1c9511){_0x563a3a=_0x563a3a-0x0;let _0x47a8f2=_0x1c95[_0x563a3a];return _0x47a8f2;};import{View as _0x32fc5e}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x32fc5e{constructor(_0x48e575){super(_0x48e575);const _0x489117=this[_0x47a8('0x9')];this[_0x47a8('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x47a8('0x4')]({'tag':_0x47a8('0xa'),'attributes':{'class':['ck',_0x47a8('0x6'),_0x489117['if'](_0x47a8('0x5'),_0x47a8('0x8'),_0x3f6b39=>!_0x3f6b39),_0x489117['if']('_isCollapsed',_0x47a8('0x3'))],'role':_0x47a8('0x0'),'aria-pressed':_0x489117['to'](_0x47a8('0xd'),_0x2568d0=>_0x2568d0?'false':_0x47a8('0xc'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x47a8('0x1')]}}],'on':{'click':_0x489117['to'](_0x47a8('0x7'))}});}[_0x47a8('0x2')](){this['_isCollapsed']=!this[_0x47a8('0xd')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x326e=['select','creator','setTemplate','bind','deselect','ck-revision-history-sidebar__revision_selected','div','ck-revision-history-sidebar__revision-authors','uiLanguage','_createdAtFormatted','bindTemplate','_parentRevisionId','createdAt','fire','isSelected','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision'];(function(_0x4c7c61,_0x326e71){const _0x81be11=function(_0x183f3a){while(--_0x183f3a){_0x4c7c61['push'](_0x4c7c61['shift']());}};_0x81be11(++_0x326e71);}(_0x326e,0x1a5));const _0x81be=function(_0x4c7c61,_0x326e71){_0x4c7c61=_0x4c7c61-0x0;let _0x81be11=_0x326e[_0x4c7c61];return _0x81be11;};import{View as _0x2583dc}from'ckeditor5/src/ui';import _0x5c212e from'./revisionauthorview';import{dateToPrettyFormat as _0x5b7fb1}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2583dc{constructor(_0x2c26b6,_0x37308b,_0x172158){super(_0x2c26b6);const _0x5c7343=this[_0x81be('0x3')];this['id']=_0x37308b['id'],this['bind']('createdAt')['to'](_0x37308b),this['set'](_0x81be('0x7'),!0x1),this[_0x81be('0xe')](_0x81be('0x2'))['to'](this,_0x81be('0x5'),_0x208c90=>_0x208c90?_0x5b7fb1(_0x2c26b6[_0x81be('0x1')],_0x208c90):void 0x0),this[_0x81be('0x4')]=_0x172158,this[_0x81be('0xd')]({'tag':_0x81be('0x11'),'attributes':{'class':['ck','ck-reset',_0x81be('0x9'),_0x81be('0xa'),_0x5c7343['if']('isSelected',_0x81be('0x10'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x81be('0x8')]},'children':[{'text':_0x5c7343['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x81be('0x0')]},'children':[new _0x5c212e(_0x2c26b6,_0x37308b[_0x81be('0xc')],!0x0)]}],'on':{'click':_0x5c7343['to'](this['select']['bind'](this))}});}[_0x81be('0xb')](){this[_0x81be('0x7')]=!0x0,this[_0x81be('0x6')]('select',{'parentId':this[_0x81be('0x4')]});}[_0x81be('0xf')](){this[_0x81be('0x7')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2fee=['numeric','long','toLocaleDateString','toLocaleTimeString'];(function(_0x32d5ea,_0x2fee33){var _0x54df88=function(_0x891e07){while(--_0x891e07){_0x32d5ea['push'](_0x32d5ea['shift']());}};_0x54df88(++_0x2fee33);}(_0x2fee,0x139));var _0x54df=function(_0x32d5ea,_0x2fee33){_0x32d5ea=_0x32d5ea-0x0;var _0x54df88=_0x2fee[_0x32d5ea];return _0x54df88;};export function dateToPrettyFormat(_0xf27c96,_0x92db07){return _0x92db07[_0x54df('0x1')](_0xf27c96,{'month':_0x54df('0x0'),'day':_0x54df('0x3')})+',\x20'+_0x92db07[_0x54df('0x2')](_0xf27c96,{'hour':'numeric','minute':_0x54df('0x3')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38f8=['value','revisionNameInputValue','arrowdown','delegate','reset','tab','arrowright','extendTemplate','cancelButtonView','submit','ck-responsive-form','_focusCycler','render','keystrokes','add','fieldView','input','focusTracker','trim','set','saveButtonView','stopPropagation','Save','type','focusFirst','listenTo','focus','element','arrowleft','revisionNameInputView','arrowup','220','forEach','form','cancel','Cancel','shift\x20+\x20tab','_createRevisionNameInput','_createButton','locale','_focusables','revisionName'];(function(_0x2f173b,_0x38f88f){const _0x3060f9=function(_0x276b10){while(--_0x276b10){_0x2f173b['push'](_0x2f173b['shift']());}};_0x3060f9(++_0x38f88f);}(_0x38f8,0x129));const _0x3060=function(_0x2f173b,_0x38f88f){_0x2f173b=_0x2f173b-0x0;let _0x3060f9=_0x38f8[_0x2f173b];return _0x3060f9;};import{icons as _0x4f9cbc}from'ckeditor5/src/core';import{ButtonView as _0x20f421,FocusCycler as _0x32d891,LabeledFieldView as _0xe5c541,View as _0x2fa817,ViewCollection as _0x5934df,createLabeledInputText as _0x55b4cd,injectCssTransitionDisabler as _0x44c32f,submitHandler as _0xf93fa2}from'ckeditor5/src/ui';import{FocusTracker as _0x55e30b,KeystrokeHandler as _0x4610c6}from'ckeditor5/src/utils';import{getTranslation as _0x240433}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2fa817{constructor(_0x3d7880){super(_0x3d7880),this[_0x3060('0xe')]=new _0x55e30b(),this['keystrokes']=new _0x4610c6(),this[_0x3060('0x10')](_0x3060('0x28'),''),this[_0x3060('0x1a')]=this[_0x3060('0x22')](),this['saveButtonView']=this[_0x3060('0x23')](_0x240433(_0x3d7880,_0x3060('0x13')),_0x4f9cbc['check'],'ck-button-save'),this[_0x3060('0x11')][_0x3060('0x14')]=_0x3060('0x6'),this[_0x3060('0x5')]=this[_0x3060('0x23')](_0x240433(_0x3d7880,_0x3060('0x20')),_0x4f9cbc['cancel'],'ck-button-cancel',_0x3060('0x1f')),this[_0x3060('0x25')]=new _0x5934df(),this['_focusCycler']=new _0x32d891({'focusables':this[_0x3060('0x25')],'focusTracker':this[_0x3060('0xe')],'keystrokeHandler':this[_0x3060('0xa')],'actions':{'focusPrevious':_0x3060('0x21'),'focusNext':_0x3060('0x2')}}),this['setTemplate']({'tag':_0x3060('0x1e'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x3060('0x7')],'tabindex':'-1'},'children':[this[_0x3060('0x1a')],this[_0x3060('0x11')],this[_0x3060('0x5')]]}),_0x44c32f(this);}[_0x3060('0x9')](){super[_0x3060('0x9')](),_0xf93fa2({'view':this}),([this[_0x3060('0x1a')],this[_0x3060('0x11')],this['cancelButtonView']][_0x3060('0x1d')](_0x579ddb=>{this[_0x3060('0x25')][_0x3060('0xb')](_0x579ddb),this['focusTracker'][_0x3060('0xb')](_0x579ddb['element']);}),this[_0x3060('0xa')][_0x3060('0x16')](this[_0x3060('0x18')]));const _0x3dcb99=_0x47fdec=>_0x47fdec[_0x3060('0x12')]();this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x3'),_0x3dcb99),this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x19'),_0x3dcb99),this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x1b'),_0x3dcb99),this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x29'),_0x3dcb99);}[_0x3060('0x17')](){this[_0x3060('0x8')][_0x3060('0x15')]();}get[_0x3060('0x26')](){return this[_0x3060('0x1a')][_0x3060('0xc')][_0x3060('0x18')]['value']['trim']();}set[_0x3060('0x26')](_0x380950){this[_0x3060('0x1a')][_0x3060('0xc')][_0x3060('0x18')]['value']=_0x380950['trim']();}[_0x3060('0x1')](){this['revisionNameInputView'][_0x3060('0xc')]['element'][_0x3060('0x27')]='';}[_0x3060('0x22')](){const _0x1dd66b=new _0xe5c541(this[_0x3060('0x24')],_0x55b4cd),_0x491196=_0x1dd66b['fieldView'];return _0x491196[_0x3060('0x4')]({'attributes':{'maxlength':_0x3060('0x1c')}}),_0x1dd66b['label']=_0x240433(this[_0x3060('0x24')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x491196['on'](_0x3060('0xd'),()=>{this[_0x3060('0x28')]=_0x491196[_0x3060('0x18')][_0x3060('0x27')][_0x3060('0xf')]();}),_0x1dd66b;}['_createButton'](_0x57f219,_0x1e99d9,_0x556351,_0x57bce7){const _0x5c597e=new _0x20f421(this['locale']);return _0x5c597e[_0x3060('0x10')]({'label':_0x57f219,'icon':_0x1e99d9,'tooltip':!0x0}),_0x5c597e[_0x3060('0x4')]({'attributes':{'class':_0x556351}}),_0x57bce7&&_0x5c597e[_0x3060('0x0')]('execute')['to'](this,_0x57bce7),_0x5c597e;}}
|