@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231124.0 → 0.0.0-nightly-20231126.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 _0x2c06=['catch','map','done','markersStart','isContent','isEqual','upcast','addHighlight','isOnRoot','error','uiElement','nodeAfter','change','_changeView','adapter','item','commands','diff','from','changeId','getChild','push','attributes','addMarker:revision','bottom','_getViewObj','getIndex','createRevision','target','end','vid','distance','endIndex','markerRange','data-change-id','affectsData','get','mousedown','find','length','hasAttribute','domEvent','ck-revision-history-root-add','repository','getWalker','writer','nextSibling','isAttached','_activeViewTarget','isAddSuggestion','toViewElement','sort','vid_start','loadRevisionData','isNavigationMode','listenTo','remove','_removeMissingPairs','isAtEnd','oldRevisionId','softBreak','ck-suggestion-preview-marker','offsetSize','processor','delete','getRoot','init','enqueueChange','return','includes','getAttributes','model','forEach','attachChange','addRevision','consume','previousPosition','_markInsertions','_setConversion','string','_cleanMarkers','insert','ck-suggestion-marker-split','getDomRoot','isReady','activeChange','revision:','config','startIndex','restoreRevision','revision','toModel','element','set','_processTape','indexOf','removeAttribute','_getDiff','compare','span','isLimit','attribute:vid','_markMismatchedRemovedTags','_makeModelFromViewString','low','getRootNames','addRoot','createPositionBefore','requires','authors','values','forward','isBefore','for','observeMarkers','text','findIndex','dataDowncast','ck-suggestion-marker','ck-editor__editable__overlay','addClass','bindElementToMarker','_setChanges','restoreRevisionCallback','change:activeChange','destroy','view','_makeTape','_refreshStartEndIndex','revisionHistoryAttachChange','attributesAfter','side','downcastDispatcher','newRevisionId','nextPosition','_setDistance','abs','revisionHistory','_step','filter','mapper','markers','merge','test','highest','WidgetToolbarRepository','ck-suggestion-marker-merge','elementEnd','viewItem','schema','userId','change:isReady','createUIElement','ck-suggestion-preview-marker-','revision-suggestion','getAttribute','getItems','_data','keys','bind','markersEnd','revision-viewer','setAttribute','stop','insertions','level','_revisions','isCollapsed','object','toViewRange','ck-revision-history-root--active','consumable','revision-suggestion:','RevisionsRepository','_findChangeIdFromDomTarget','getRevision','index','high','selection','change:isEnabled','markerToData','ck-suggestion-marker-','modelRange','revisionHistoryLabel','domConverter','createRange','element:pre','unshift','elementStart','editingDowncast','editor','markerToHighlight','useFillerType','isRemoved','markerNameToElements','data-revision-','dataToMarker','removeMarker','isInline','has','shift','document','_cleanUp','left','_initInteractions','mapViewToDom','removeMarker:revision-suggestion','_sortAndFilterDiffChanges','_getViewForChange','_balloon','plugins','_changeIdToChange','removeClass','type','wrap','addMarker:revision-suggestion:insertion','code','showStack','changes','getCustomProperty','pairId','markerName','add','start','showNextChange','_update','activeView','data','unbindElementFromMarkerName','_getRevisionsRange','ck-suggestion-marker--active','suggestion:','getRevisionData','reconvertMarker','revision-comment:','top','isAfter','editing','-new','deletions','insertion','execute','roots','isEnabled','parse','suggestion','splice','split','name','vid_end','flat','mouseover','removeMarker:revision','diffData','createPositionFromPath','isRemoveSuggestion','children','_removeUnsupportedChanges','then','deletion','rootName','conversion','isAdded','createRangeIn','pluginName','isIncorrect','getClientRects','comment','pop','_getChangeFromId','startsWith','concat','ck-revision-history-root-','refresh','_removeRevisionMarkers','next','isBlock','parent','ck-revision-history-root-remove','showPreviousChange','toViewPosition','isSuggestion','_markMarkers','hasClass','elementToAttribute'];(function(_0x38b41d,_0x2c06f7){const _0x2c7496=function(_0x347b38){while(--_0x347b38){_0x38b41d['push'](_0x38b41d['shift']());}};_0x2c7496(++_0x2c06f7);}(_0x2c06,0x152));const _0x2c74=function(_0x38b41d,_0x2c06f7){_0x38b41d=_0x38b41d-0x0;let _0x2c7496=_0x2c06[_0x38b41d];return _0x2c7496;};import{Plugin as _0x4a23ba,Command as _0x402c0a}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x518404}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5d024b}from'ckeditor5/src/ui';import{DocumentFragment as _0x3d9a35,Element as _0x54db79,Text as _0x4b0ca6,ViewDocumentFragment as _0x4394df,ViewText as _0x5464d7,ViewElement as _0x3f6e08,ViewContainerElement as _0x201a82,ViewAttributeElement as _0x3c85c3,ViewEmptyElement as _0x1751d5,ViewRawElement as _0x73e402,ViewUIElement as _0x35685b}from'ckeditor5/src/engine';import{Users as _0x1be52b,getMarkerDomElement as _0x440720}from'ckeditor5-collaboration/src/collaboration-core';import _0x213ff7 from'./ui/revisionviewer/changedetailsview';import _0x400e4e from'./revisionsrepository';import _0x2da2d8 from'./changeitem';import{default as _0x5974b0}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x153910}from'lodash-es';const tt={'c':_0x201a82,'a':_0x3c85c3,'e':_0x1751d5,'r':_0x73e402,'u':_0x35685b};export default class d extends _0x4a23ba{static get[_0x2c74('0xd3')](){return'RevisionViewer';}static get[_0x2c74('0x37')](){return[_0x1be52b,_0x5d024b,_0x400e4e];}constructor(_0x44f684){super(_0x44f684),this['repository']=this[_0x2c74('0x89')][_0x2c74('0x9d')][_0x2c74('0x10c')](_0x2c74('0x78')),this[_0x2c74('0x28')](_0x2c74('0x20'),null),this[_0x2c74('0x28')](_0x2c74('0xad'),null),this[_0x2c74('0x118')]=null,this[_0x2c74('0x28')](_0x2c74('0xf9'),null),this[_0x2c74('0x28')]('isReady',!0x1),this['set'](_0x2c74('0xbe'),!0x0),this['on']('change:isEnabled',(_0x3c4bab,_0x14cd69,_0x8cf335)=>{this['activeChange']=null,this['activeView']=null,this['editor'][_0x2c74('0xb8')][_0x2c74('0x49')][_0x2c74('0xf4')](_0x35662c=>{for(const _0x10f591 of this[_0x2c74('0x89')]['editing'][_0x2c74('0x49')]['document'][_0x2c74('0xbd')])_0x8cf335?_0x35662c[_0x2c74('0x9f')]('ck-editor__editable__overlay',_0x10f591):_0x35662c[_0x2c74('0x43')](_0x2c74('0x42'),_0x10f591);});}),this['bind'](_0x2c74('0x1'))['to'](this,_0x2c74('0x20'),_0x1c42c5=>null!==_0x1c42c5),this[_0x2c74('0x6a')]('currentChangeNumber')['to'](this,'isReady',this,_0x2c74('0xf9'),this,_0x2c74('0x20'),(_0x54b358,_0x2a824c,_0x517fe5)=>_0x54b358&&_0x517fe5?_0x2a824c[_0x2c74('0xa5')][_0x2c74('0x102')](_0x517fe5):0x0),this[_0x2c74('0x6a')]('numberOfChanges')['to'](this,'isReady',this,_0x2c74('0xf9'),(_0x869199,_0x4945bd)=>_0x869199?_0x4945bd[_0x2c74('0xa5')][_0x2c74('0x10f')]:0x0),this['_changeView']=null,this[_0x2c74('0x9e')]=new Map(),this[_0x2c74('0xf6')]=null,this[_0x2c74('0x9c')]=this['editor'][_0x2c74('0x9d')][_0x2c74('0x10c')](_0x5d024b);}[_0x2c74('0xd')](){const _0x104026=this[_0x2c74('0x89')],_0x2113b4=new ShowChangeCommand(_0x104026,{'direction':'backward'}),_0x136359=new ShowChangeCommand(_0x104026,{'direction':_0x2c74('0x3a')});(_0x104026['commands'][_0x2c74('0xa9')](_0x2c74('0xe2'),_0x2113b4),_0x104026[_0x2c74('0xf8')][_0x2c74('0xa9')](_0x2c74('0xab'),_0x136359),_0x104026['commands'][_0x2c74('0xa9')](_0x2c74('0x24'),new RestoreRevisionCommand(_0x104026)),this['on']('change:numberOfChanges',()=>{_0x2113b4[_0x2c74('0xdc')](),_0x136359[_0x2c74('0xdc')]();}),this[_0x2c74('0x19')](),this[_0x2c74('0x97')](),_0x104026['enableReadOnlyMode'](_0x2c74('0x6c')),_0x104026[_0x2c74('0x9d')][_0x2c74('0x92')](_0x2c74('0x5c')))&&_0x104026['plugins'][_0x2c74('0x10c')](_0x2c74('0x5c'))['forceDisabled'](_0x2c74('0x6c'));}async[_0x2c74('0xb3')](_0x154b0d){await this[_0x2c74('0x0')](_0x154b0d);const _0x3f2c3e={};for(const _0xdb2d0b in _0x154b0d[_0x2c74('0xc8')]){if(_0x154b0d[_0x2c74('0xc8')][_0xdb2d0b][_0x2c74('0x14')]&&!_0x154b0d[_0x2c74('0xc8')][_0xdb2d0b][_0x2c74('0x14')][_0x2c74('0x117')])continue;const _0x1ec9fc=this['_removeRevisionMarkers'](JSON[_0x2c74('0xbf')](_0x154b0d[_0x2c74('0xc8')][_0xdb2d0b][_0x2c74('0x6f')])),_0x16bcb0=this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x49')]['document'],_0x4f8b32=new _0x4394df(_0x16bcb0,_0x1ec9fc[_0x2c74('0xe9')](_0xfbd49d=>this['_getViewObj'](_0xfbd49d)));this[_0x2c74('0x89')][_0x2c74('0xae')][_0x2c74('0xa')][_0x2c74('0x8b')]('marked'),_0x3f2c3e[_0xdb2d0b]=this[_0x2c74('0x89')][_0x2c74('0xae')][_0x2c74('0xa')]['toData'](_0x4f8b32),this[_0x2c74('0x89')][_0x2c74('0xae')][_0x2c74('0xa')]['useFillerType']('default');}return _0x3f2c3e;}async['getRevisionRootsAttributes'](_0xd89697){await this['loadRevisionData'](_0xd89697);const _0x3e1b5d={};for(const _0x2bf711 in _0xd89697[_0x2c74('0xc8')])_0xd89697[_0x2c74('0xc8')][_0x2bf711][_0x2c74('0x14')]&&!_0xd89697[_0x2c74('0xc8')][_0x2bf711][_0x2c74('0x14')]['isAttached']||(_0x3e1b5d[_0x2bf711]=_0xd89697[_0x2c74('0xc8')][_0x2bf711][_0x2c74('0x4d')]||{});return _0x3e1b5d;}['_removeRevisionMarkers'](_0x191f55){return(_0x191f55=_0x191f55['filter'](_0x136b45=>!_0x136b45[_0x2c74('0xc3')]||'revision-start'!==_0x136b45['name']&&'revision-end'!==_0x136b45[_0x2c74('0xc3')]))[_0x2c74('0x13')](_0x10709b=>{'string'!=typeof _0x10709b&&(_0x10709b[_0x2c74('0xcb')]=this[_0x2c74('0xdd')](_0x10709b['children']),_0x10709b['attributes']=_0x10709b[_0x2c74('0xfe')][_0x2c74('0x56')](_0x2ccc9d=>!_0x2ccc9d[0x0][_0x2c74('0xd9')](_0x2c74('0x8e'))));}),_0x191f55;}async[_0x2c74('0x2d')](_0x5b22ef,_0x5277d0,_0x4d2284=!0x1){if(!this[_0x2c74('0xbe')])return;const _0x4685ca=this[_0x2c74('0xf9')],_0xffae1=this[_0x2c74('0x113')],_0x1e8499=_0x2c74('0x1a')==typeof _0x5b22ef?_0xffae1[_0x2c74('0x7a')](_0x5b22ef):_0x5b22ef,_0x222ff2=_0x2c74('0x1a')==typeof _0x5277d0?_0xffae1[_0x2c74('0x7a')](_0x5277d0):_0x5277d0,_0x57579c=_0x1e8499['id'],_0x1c3ef9=_0x222ff2?_0x222ff2['id']:null;if(!_0x4d2284&&this[_0x2c74('0xf9')]&&this[_0x2c74('0xf9')][_0x2c74('0x50')]===_0x57579c&&this[_0x2c74('0xf9')][_0x2c74('0x6')]===_0x1c3ef9)return Promise['resolve']();this[_0x2c74('0x1f')]=!0x1,this[_0x2c74('0xad')]=null,this[_0x2c74('0x20')]=null,this[_0x2c74('0xf9')]=new _0x5974b0(_0x57579c,_0x1c3ef9);const _0x508dcc=this[_0x2c74('0xb0')](_0x1e8499,_0x222ff2,!0x0)[_0x2c74('0xe9')](_0xcb745f=>this['loadRevisionData'](_0xcb745f));return _0x508dcc[_0x2c74('0xfd')](new Promise(_0x5e01ce=>{setTimeout(_0x5e01ce,0x14);})),Promise['all'](_0x508dcc)[_0x2c74('0xcd')](()=>{if(!this[_0x2c74('0xbe')])return;this[_0x2c74('0x95')]();const _0x4e5d2d=this['_getDiff'](_0x57579c,_0x1c3ef9);for(const _0x25806e of _0x4e5d2d[_0x2c74('0xa5')])this[_0x2c74('0x9e')][_0x2c74('0x28')](_0x25806e['id'],_0x25806e);this['editor'][_0x2c74('0x12')][_0x2c74('0xe')]({'isUndoable':!0x1},_0x13d39e=>{for(const _0x21a0c7 of this['editor'][_0x2c74('0x12')][_0x2c74('0x94')][_0x2c74('0x34')]())_0x13d39e['detachRoot'](_0x21a0c7);for(const _0x506c61 of Object['keys'](_0x4e5d2d[_0x2c74('0x12')])){const _0x523796=_0x13d39e[_0x2c74('0x35')](_0x506c61);for(const _0x54773f of Object[_0x2c74('0x69')](_0x4e5d2d[_0x2c74('0xfe')][_0x506c61]))_0x13d39e['setAttribute'](_0x54773f,_0x4e5d2d['attributes'][_0x506c61][_0x54773f],_0x523796);_0x13d39e[_0x2c74('0x1c')](_0x4e5d2d[_0x2c74('0x12')][_0x506c61],_0x523796,0x0);}}),this[_0x2c74('0xf9')][_0x2c74('0x45')](this[_0x2c74('0x9a')](_0x4e5d2d[_0x2c74('0xa5')])),this[_0x2c74('0x1f')]=!0x0;})[_0x2c74('0xe8')](_0x3f05b6=>{console[_0x2c74('0xf1')](_0x3f05b6),this[_0x2c74('0x95')](),_0x4685ca&&(this['diff']=_0x4685ca),this[_0x2c74('0x1f')]=!0x0;});}['addRevisionData'](_0x2a6ec1,_0x559938){const _0x1dd735=this[_0x2c74('0x113')][_0x2c74('0x103')](_0x2a6ec1);return _0x1dd735['on'](_0x2c74('0xac'),(_0x6cf34d,_0x3f351c,_0x5f5bc8)=>_0x559938(_0x3f351c,_0x5f5bc8,_0x1dd735)),this[_0x2c74('0x113')][_0x2c74('0x15')](_0x1dd735),_0x1dd735;}[_0x2c74('0x0')](_0x54d87c){if(!_0x54d87c||_0x54d87c['diffData'])return Promise['resolve']();{const _0x42b3b7=this[_0x2c74('0x89')][_0x2c74('0x22')][_0x2c74('0x10c')]('collaboration.channelId');return this[_0x2c74('0xf6')][_0x2c74('0x7a')]({'channelId':_0x42b3b7,'revisionId':_0x54d87c['id']})[_0x2c74('0xcd')](_0x1f2ddc=>{_0x54d87c[_0x2c74('0xac')]({'diffData':_0x1f2ddc['diffData']},!0x0);});}}[_0x2c74('0x95')](){this[_0x2c74('0x20')]=null,this[_0x2c74('0x1b')](),this[_0x2c74('0xf5')]&&this[_0x2c74('0xf5')][_0x2c74('0x48')](),this[_0x2c74('0xf5')]=null,this[_0x2c74('0x9e')]['clear'](),this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0xe')]({'isUndoable':!0x1},_0x432873=>{for(const _0x1c4330 of this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x94')][_0x2c74('0x34')]())_0x432873['detachRoot'](_0x1c4330);});}[_0x2c74('0x9a')](_0x3b009c){const _0x433e6d=[],_0xc5f591=new Map();for(const _0x3e91b1 of this[_0x2c74('0x89')]['model'][_0x2c74('0x94')]['getRootNames']()){const _0xc2302f=this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x49')]['getDomRoot'](_0x3e91b1);if(!_0xc2302f)continue;const _0x25040a=_0xc2302f['getClientRects']()[_0x2c74('0xf7')](0x0);_0x25040a&&(_0x433e6d['push'](_0x3e91b1),_0xc5f591[_0x2c74('0x28')](_0x3e91b1,_0x25040a));}return _0x433e6d['sort']((_0x235ee5,_0x12681c)=>{const _0x35db4c=_0xc5f591[_0x2c74('0x10c')](_0x235ee5),_0x35c1eb=_0xc5f591['get'](_0x12681c);return _0x35db4c['y']-_0x35c1eb['y']||_0x35db4c['x']-_0x35c1eb['x'];}),(_0x3b009c=_0x3b009c[_0x2c74('0x56')](_0x29f4b8=>_0x433e6d['includes'](_0x29f4b8['rootName'])))[_0x2c74('0x11b')]((_0x325c85,_0x1157ec)=>_0x433e6d[_0x2c74('0x2a')](_0x325c85['rootName'])-_0x433e6d['indexOf'](_0x1157ec[_0x2c74('0xcf')])),_0x3b009c;}[_0x2c74('0x4a')](_0x22a7b4){const _0x52f89d=Array[_0x2c74('0xfa')](_0x22a7b4['markers'])[_0x2c74('0x56')](([_0x581f7e,_0x530185])=>_0x581f7e[_0x2c74('0xd9')](_0x2c74('0x21'))&&!_0x530185[_0x2c74('0x72')]),_0x74d842=Array['from'](this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0xd2')](_0x22a7b4)[_0x2c74('0x114')]({'singleCharacters':!0x0}));if(0x0!=_0x52f89d['length'])for(const _0x7ad416 of _0x74d842){const [_0x537868,_0x4e9118]=_0x52f89d[0x0],[,_0x267c84,_0x8c4c7a]=_0x537868[_0x2c74('0xc2')](':');if(_0x4e9118['end'][_0x2c74('0xed')](_0x7ad416[_0x2c74('0x51')])&&_0x52f89d[_0x2c74('0x93')](),(_0x7ad416[_0x2c74('0x17')][_0x2c74('0xed')](_0x4e9118[_0x2c74('0xaa')])||_0x7ad416[_0x2c74('0x17')][_0x2c74('0xb7')](_0x4e9118['start']))&&(_0x2c74('0xbb')==_0x267c84?_0x7ad416[_0x2c74('0xd1')]={'userId':_0x8c4c7a}:_0x2c74('0xce')==_0x267c84&&(_0x7ad416[_0x2c74('0x8c')]={'userId':_0x8c4c7a})),0x0==_0x52f89d['length'])break;}return _0x74d842;}[_0x2c74('0x4b')](_0x177028){const _0x2ce01c=new Map();for(let _0x54e795=0x0;_0x54e795<_0x177028[_0x2c74('0x10f')];_0x54e795++)_0x2c74('0x3e')===_0x177028[_0x54e795][_0x2c74('0xa0')]?(_0x177028[_0x54e795]['item']['startIndex']=_0x54e795,_0x177028[_0x54e795][_0x2c74('0xf7')][_0x2c74('0x108')]=_0x54e795):('elementStart'===_0x177028[_0x54e795][_0x2c74('0xa0')]?_0x177028[_0x54e795]['item'][_0x2c74('0x23')]=_0x54e795:'elementEnd'===_0x177028[_0x54e795][_0x2c74('0xa0')]&&(_0x177028[_0x54e795][_0x2c74('0xf7')][_0x2c74('0x108')]=_0x54e795),_0x2ce01c[_0x2c74('0x28')](_0x177028[_0x54e795]['id'],_0x54e795));for(const _0x448337 of _0x2ce01c[_0x2c74('0x39')]())_0x2c74('0x87')===_0x177028[_0x448337][_0x2c74('0xa0')]?_0x177028[_0x448337][_0x2c74('0xf7')][_0x2c74('0x108')]=_0x2ce01c[_0x2c74('0x10c')](_0x177028[_0x448337][_0x2c74('0xa7')]):_0x2c74('0x5e')===_0x177028[_0x448337][_0x2c74('0xa0')]&&(_0x177028[_0x448337][_0x2c74('0xf7')][_0x2c74('0x23')]=_0x2ce01c['get'](_0x177028[_0x448337][_0x2c74('0xa7')]));}[_0x2c74('0x29')](_0x2c0889){for(let _0x35b08d=0x0;_0x35b08d<_0x2c0889[_0x2c74('0x10f')];_0x35b08d++){if(_0x2c74('0x87')===_0x2c0889[_0x35b08d][_0x2c74('0xa0')])_0x2c0889[_0x35b08d]['item'][_0x2c74('0x23')]=_0x35b08d;else{if('elementEnd'===_0x2c0889[_0x35b08d][_0x2c74('0xa0')]){_0x2c0889[_0x35b08d][_0x2c74('0xf7')]['endIndex']=_0x35b08d;const _0x4ea012=_0x2c0889[_0x35b08d][_0x2c74('0xf7')]['startIndex'];_0x2c0889[_0x4ea012][_0x2c74('0xa7')]=_0x2c0889[_0x35b08d]['id'],_0x2c0889[_0x35b08d][_0x2c74('0xa7')]=_0x2c0889[_0x4ea012]['id'];}else _0x2c0889[_0x35b08d]['item'][_0x2c74('0x23')]=_0x35b08d,_0x2c0889[_0x35b08d][_0x2c74('0xf7')][_0x2c74('0x108')]=_0x35b08d,_0x2c0889[_0x35b08d]['pairId']=null;}_0x2c0889[_0x35b08d][_0x2c74('0xeb')]||(_0x2c0889[_0x35b08d][_0x2c74('0xeb')]=[],_0x2c0889[_0x35b08d][_0x2c74('0x6b')]=[]);}}[_0x2c74('0x18')](_0x157ddd,_0x3694b6){const _0x16f0ee=_0x157ddd[_0x2c74('0x56')](_0x181547=>!_0x181547[_0x2c74('0xd1')]);for(let _0x3655da=0x0;_0x3655da<_0x3694b6[_0x2c74('0x10f')];_0x3655da++)_0x3694b6[_0x3655da]['isAdded']&&(_0x16f0ee[_0x3655da][_0x2c74('0xd1')]=_0x3694b6[_0x3655da][_0x2c74('0xd1')]);}[_0x2c74('0x32')](_0x1be9c){const _0x4e1312=JSON[_0x2c74('0xbf')](_0x1be9c),_0x4d9576=this['editor'][_0x2c74('0xb8')]['view'][_0x2c74('0x94')],_0x185b0a=new _0x4394df(_0x4d9576,_0x4e1312[_0x2c74('0xe9')](_0x49f941=>this['_getViewObj'](_0x49f941)));return this[_0x2c74('0x89')][_0x2c74('0xae')][_0x2c74('0x26')](_0x185b0a);}[_0x2c74('0x101')](_0xf6c15d){const _0x332db7=this[_0x2c74('0x89')]['editing'][_0x2c74('0x49')]['document'];if(_0x2c74('0x1a')==typeof _0xf6c15d)return new _0x5464d7(_0x332db7,_0xf6c15d);{const _0x40b359=_0xf6c15d[_0x2c74('0xcb')][_0x2c74('0xe9')](_0x526540=>this[_0x2c74('0x101')](_0x526540));return new(tt[_0xf6c15d[(_0x2c74('0xa0'))]]||_0x3f6e08)(_0x332db7,_0xf6c15d[_0x2c74('0xc3')],_0xf6c15d['attributes'],_0x40b359);}}[_0x2c74('0x2c')](_0x42a28b,_0x4fd317=null){const _0x472e2f=this['repository'][_0x2c74('0x7a')](_0x42a28b),_0x45e316=_0x4fd317?this['repository'][_0x2c74('0x7a')](_0x4fd317):null,_0x5f3cc3=this[_0x2c74('0xb0')](_0x472e2f,_0x45e316),_0x1327b3=_0x5f3cc3[_0x5f3cc3[_0x2c74('0x10f')]-0x1],_0x4f8bd4=new Map(),_0x2ddc5e={'model':{},'attributes':{},'changes':[]},_0x51c95a=new Set(),_0x3d1d84=new Map();for(let _0x2b9d90=_0x5f3cc3[_0x2c74('0x10f')]-0x1;_0x2b9d90>=0x0;_0x2b9d90--){const _0x46bad4=_0x5f3cc3[_0x2b9d90];for(const _0x203c77 of Object[_0x2c74('0x69')](_0x46bad4[_0x2c74('0xc8')]))if(_0x46bad4[_0x2c74('0xc8')][_0x203c77][_0x2c74('0x14')]){const _0x6cea5c=_0x46bad4[_0x2c74('0xc8')][_0x203c77]['attachChange'];_0x6cea5c['isAttached']?(_0x51c95a[_0x2c74('0xa9')](_0x203c77),_0x3d1d84[_0x2c74('0x92')](_0x203c77)&&_0x3d1d84[_0x2c74('0x10c')](_0x203c77)['userId']==_0x6cea5c[_0x2c74('0x61')]?_0x3d1d84['delete'](_0x203c77):_0x3d1d84[_0x2c74('0x28')](_0x203c77,_0x6cea5c)):_0x3d1d84[_0x2c74('0x92')](_0x203c77)?(_0x51c95a[_0x2c74('0xb')](_0x203c77),_0x3d1d84[_0x2c74('0xb')](_0x203c77)):(_0x51c95a[_0x2c74('0xa9')](_0x203c77),_0x3d1d84[_0x2c74('0x28')](_0x203c77,_0x6cea5c));}else _0x51c95a[_0x2c74('0xa9')](_0x203c77);}for(const _0x186919 of _0x51c95a){const _0x9de1bb=_0x3d1d84['has'](_0x186919)&&!_0x3d1d84['get'](_0x186919)[_0x2c74('0x117')];let _0x2e3e57=_0x9de1bb?_0x5f3cc3[_0x2c74('0x10f')]-0x1:0x0;const _0x43209b=_0x9de1bb?-0x1:0x1;for(;_0x5f3cc3[_0x2e3e57];){const _0x1960bb=_0x5f3cc3[_0x2e3e57];if(_0x1960bb[_0x2c74('0xc8')][_0x186919]){const _0x2153b4=_0x9de1bb?_0x1960bb[_0x2c74('0xc8')][_0x186919]['attributesBefore']:_0x1960bb['diffData'][_0x186919][_0x2c74('0x4d')];_0x2ddc5e[_0x2c74('0xfe')][_0x186919]=_0x2153b4?_0x153910(_0x2153b4):{};break;}_0x2e3e57+=_0x43209b;}}for(const _0x5ba738 of _0x5f3cc3){_0x5ba738[_0x2c74('0x12')]={};for(const _0x5d98a0 of _0x5ba738[_0x2c74('0x38')])_0x4f8bd4[_0x2c74('0x28')](_0x5d98a0['id'],_0x5d98a0);for(const _0x4e0d99 of _0x51c95a){const _0x223d76=_0x5ba738[_0x2c74('0xc8')][_0x4e0d99]?_0x5ba738[_0x2c74('0xc8')][_0x4e0d99][_0x2c74('0x6f')]:'[]',_0x1ec6fe=_0x5ba738[_0x2c74('0xc8')][_0x4e0d99]?_0x5ba738['diffData'][_0x4e0d99][_0x2c74('0xba')]:'[]';_0x5ba738[_0x2c74('0x12')][_0x4e0d99]={'insertions':this['_makeModelFromViewString'](_0x223d76),'deletions':this[_0x2c74('0x32')](_0x1ec6fe)};}}for(const _0x3074b2 of _0x51c95a){let _0x1250ce=null,_0x51ac71=0x0;const _0x40564a=new Map(Array[_0x2c74('0xfa')](_0x472e2f[_0x2c74('0x12')][_0x3074b2][_0x2c74('0x6f')]['markers'])[_0x2c74('0x56')](([_0x3b4d60])=>!_0x3b4d60[_0x2c74('0xd9')](_0x2c74('0x21'))));let _0x32b698=0x0;for(const _0x5e5ab3 of _0x5f3cc3){const _0x4ea2ab=this['_makeTape'](_0x5e5ab3[_0x2c74('0x12')][_0x3074b2][_0x2c74('0x6f')]);_0x5e5ab3==_0x472e2f?(_0x1250ce=_0x4ea2ab,_0x51ac71=_0x1250ce[_0x2c74('0x10f')],_0x1250ce[_0x2c74('0x13')](_0x3601ba=>{_0x3601ba['id']=_0x32b698++;}),this[_0x2c74('0x29')](_0x1250ce)):this[_0x2c74('0x18')](_0x1250ce,_0x4ea2ab);const _0x5aad42=_0x1250ce[_0x2c74('0x56')](_0x46fa45=>!_0x46fa45[_0x2c74('0xd1')])['map'](_0x7650d0=>_0x7650d0['id']);let _0xdd915=0x0;const _0x191192=this[_0x2c74('0x4a')](_0x5e5ab3[_0x2c74('0x12')][_0x3074b2][_0x2c74('0xba')]);_0x191192['forEach'](_0x5ad1de=>{_0x5ad1de['isRemoved']?_0x5ad1de['id']=_0x51ac71++:_0x5ad1de['id']=_0x5aad42[_0xdd915++];}),this[_0x2c74('0x29')](_0x191192),this[_0x2c74('0x52')](_0x1250ce,_0x2c74('0xd1')),this['_setDistance'](_0x191192,_0x2c74('0x8c')),_0x5e5ab3==_0x472e2f&&this[_0x2c74('0xe5')](_0x1250ce,_0x40564a),_0x1250ce=this['_joinTapes'](_0x1250ce,_0x191192),this[_0x2c74('0x4b')](_0x1250ce),this[_0x2c74('0x52')](_0x1250ce,_0x2c74('0x8c'));}_0x1250ce=_0x1250ce[_0x2c74('0x56')](_0x1d245d=>!(_0x1d245d[_0x2c74('0xd1')]&&_0x1d245d[_0x2c74('0x8c')]));const _0x16ca73=new Map(_0x1327b3['model'][_0x3074b2][_0x2c74('0xba')][_0x2c74('0x58')]),_0x4b7647=new Set(_0x40564a[_0x2c74('0x69')]());for(const _0xe7251b of _0x16ca73[_0x2c74('0x69')]())_0x4b7647[_0x2c74('0xb')](_0xe7251b);this['_markSuggestions'](_0x1250ce,_0x4b7647),this['_fixObsoleteTags'](_0x1250ce),_0x1250ce=this[_0x2c74('0x4')](_0x1250ce),_0x1250ce=this[_0x2c74('0x31')](_0x1250ce),_0x1250ce=this[_0x2c74('0xcc')](_0x1250ce);const {root:_0x1a283f,changes:_0x3bb24b}=this['_makeModelFromTape'](_0x1250ce,_0x4f8bd4,_0x3074b2);_0x2ddc5e['model'][_0x3074b2]=_0x1a283f;const _0x1dcde6=_0x3d1d84['get'](_0x3074b2);if(_0x1dcde6){const _0x4ab58d=_0x4f8bd4[_0x2c74('0x10c')](_0x1dcde6['userId']),_0x42067a=new _0x2da2d8({'author':_0x4ab58d,'type':_0x1dcde6[_0x2c74('0x117')]?_0x2c74('0xa9'):_0x2c74('0x3'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3074b2});_0x3bb24b[_0x2c74('0x86')](_0x42067a),_0x2ddc5e['attributes'][_0x3074b2][_0x2c74('0x4c')]=_0x42067a['id'];}_0x2ddc5e[_0x2c74('0xa5')]=_0x2ddc5e[_0x2c74('0xa5')][_0x2c74('0xda')](_0x3bb24b);}return _0x2ddc5e;}[_0x2c74('0xe5')](_0x263c15,_0x19130c){for(let _0x28c45f=0x0;_0x28c45f<_0x263c15[_0x2c74('0x10f')];_0x28c45f++)for(const [_0x513a24,_0x5c09b2]of _0x19130c)_0x5c09b2[_0x2c74('0xaa')][_0x2c74('0xed')](_0x263c15[_0x28c45f][_0x2c74('0x17')])&&_0x263c15[_0x28c45f][_0x2c74('0xeb')][_0x2c74('0xfd')](_0x513a24),_0x5c09b2[_0x2c74('0x105')]['isEqual'](_0x263c15[_0x28c45f][_0x2c74('0x51')])&&_0x263c15[_0x28c45f][_0x2c74('0x6b')][_0x2c74('0xfd')](_0x513a24);}['_joinTapes'](_0x407a97,_0x18f4b7){let _0x59c38a=[],_0x57219a=0x0,_0x6f8b5=0x0;for(;_0x57219a<_0x407a97[_0x2c74('0x10f')]||_0x6f8b5<_0x18f4b7['length'];){const _0x21fd26=_0x407a97[_0x57219a]||{},_0xe67c3f=_0x18f4b7[_0x6f8b5]||{};if(_0x21fd26['id']==_0xe67c3f['id'])_0x57219a++,_0x6f8b5++,_0x59c38a[_0x2c74('0xfd')](_0x21fd26);else{if(_0xe67c3f[_0x2c74('0x8c')]&&_0x21fd26[_0x2c74('0xd1')]){const {commonTape:_0x208e94,iEnd:_0x4a2f60,jEnd:_0x13bbf8}=this['_threeWayMerge'](_0x407a97,_0x57219a,_0x18f4b7,_0x6f8b5);_0x59c38a=_0x59c38a[_0x2c74('0xda')](_0x208e94),_0x57219a=_0x4a2f60,_0x6f8b5=_0x13bbf8;}else _0xe67c3f[_0x2c74('0x8c')]?(_0x6f8b5++,_0x59c38a[_0x2c74('0xfd')](_0xe67c3f)):(_0x57219a++,_0x59c38a[_0x2c74('0xfd')](_0x21fd26));}}return _0x59c38a;}['_markSuggestions'](_0x4eff7e,_0x32a6f7){const _0x33c980=[];for(let _0x314e11=0x0;_0x314e11<_0x4eff7e[_0x2c74('0x10f')];_0x314e11++){for(let _0x587e71=0x0;_0x587e71<_0x4eff7e[_0x314e11][_0x2c74('0xeb')]['length'];_0x587e71++){const _0x1d3871=_0x4eff7e[_0x314e11][_0x2c74('0xeb')][_0x587e71];if(!_0x32a6f7[_0x2c74('0x92')](_0x1d3871))continue;const {group:_0x161971,type:_0x4164a0,authorId:_0x9293b}=_0x18042e(_0x1d3871);_0x2c74('0x65')!=_0x161971||_0x2c74('0xbb')!=_0x4164a0&&'deletion'!=_0x4164a0||(_0x33c980['unshift']({'type':_0x4164a0,'name':_0x1d3871,'userId':_0x9293b}),_0x4eff7e[_0x314e11][_0x2c74('0xeb')][_0x2c74('0xc1')](_0x587e71,0x1),_0x587e71--);}_0x33ff29(_0x4eff7e[_0x314e11]);for(let _0x30f77b=0x0;_0x30f77b<_0x4eff7e[_0x314e11][_0x2c74('0x6b')][_0x2c74('0x10f')];_0x30f77b++){const _0x3294ac=_0x4eff7e[_0x314e11][_0x2c74('0x6b')][_0x30f77b];if(!_0x32a6f7[_0x2c74('0x92')](_0x3294ac))continue;const {group:_0x308a5f,type:_0x28555f}=_0x18042e(_0x3294ac);if(_0x2c74('0x65')!=_0x308a5f||_0x2c74('0xbb')!=_0x28555f&&_0x2c74('0xce')!=_0x28555f)continue;_0x4eff7e[_0x314e11][_0x2c74('0x6b')][_0x2c74('0xc1')](_0x30f77b,0x1),_0x30f77b--;const _0x1b037f=_0x33c980[_0x2c74('0x3f')](_0x578deb=>_0x578deb[_0x2c74('0xc3')]==_0x3294ac);_0x1b037f>-0x1&&_0x33c980[_0x2c74('0xc1')](_0x1b037f,0x1);}}function _0x18042e(_0x555aaf){const _0x4f0acd=_0x555aaf[_0x2c74('0xc2')](':');return{'group':_0x4f0acd[0x0],'type':_0x4f0acd[0x1],'subType':_0x4f0acd[_0x2c74('0x10f')]>=0x5?_0x4f0acd[0x2]:null,'id':_0x4f0acd[_0x2c74('0x10f')]<0x5?_0x4f0acd[0x2]:_0x4f0acd[0x3],'authorId':_0x4f0acd['length']<0x5?_0x4f0acd[0x3]:_0x4f0acd[0x4],'markerCount':0x6==_0x4f0acd[_0x2c74('0x10f')]?_0x4f0acd[0x5]:null};}function _0x33ff29(_0x47eec5){for(let _0x1f24a3=0x0;_0x1f24a3<_0x33c980[_0x2c74('0x10f')];_0x1f24a3++){if(_0x47eec5['isAdded']&&_0x2c74('0xbb')==_0x33c980[_0x1f24a3][_0x2c74('0xa0')])return _0x47eec5['isAddSuggestion']=_0x33c980[_0x1f24a3],void delete _0x47eec5[_0x2c74('0xd1')];if(!_0x47eec5['isAdded']&&!_0x47eec5[_0x2c74('0x8c')]&&_0x2c74('0xce')==_0x33c980[_0x1f24a3]['type'])return void(_0x47eec5['isRemoveSuggestion']=_0x33c980[_0x1f24a3]);}}}[_0x2c74('0x52')](_0x6d4c67,_0xdfe265){let _0x2e8421=0x0,_0x3b6bee=!0x1;const _0x5708d7=new Map();for(const _0x51d135 of _0x6d4c67)_0x51d135[_0xdfe265]?_0x3b6bee&&(_0x2e8421++,_0x3b6bee=!0x1):(_0x2e8421++,_0x3b6bee=!0x0),_0x5708d7['set'](_0x51d135['id'],_0x2e8421);for(let _0x2742db=0x0;_0x2742db<_0x6d4c67['length'];_0x2742db++){if('isRemoved'==_0xdfe265&&_0x6d4c67[_0x2742db][_0x2c74('0xd1')]||_0x2c74('0xd1')==_0xdfe265&&_0x6d4c67[_0x2742db][_0x2c74('0x8c')])continue;if(_0x2c74('0x3e')==_0x6d4c67[_0x2742db][_0x2c74('0xa0')]){_0x6d4c67[_0x2742db][_0x2c74('0x107')]=0x0;continue;}const _0x4334dc=_0x5708d7[_0x2c74('0x10c')](_0x6d4c67[_0x2742db][_0x2c74('0xa7')]),_0x592a6b=_0x5708d7[_0x2c74('0x10c')](_0x6d4c67[_0x2742db]['id']);_0x6d4c67[_0x2742db][_0x2c74('0x107')]=_0x4334dc-_0x592a6b;}}[_0x2c74('0xb0')](_0x1ae1fd,_0x368253,_0x3b9360=!0x1){const _0x31c0fa=[];let _0x4ab3a1=this[_0x2c74('0x113')]['getIndex'](_0x1ae1fd),_0x20670a=this[_0x2c74('0x113')][_0x2c74('0x102')](_0x368253);for(-0x1==_0x20670a&&(_0x20670a=this['repository'][_0x2c74('0x71')][_0x2c74('0x10f')],_0x3b9360=!0x1);_0x4ab3a1<_0x20670a;)_0x31c0fa[_0x2c74('0xfd')](this[_0x2c74('0x113')][_0x2c74('0x7a')](_0x4ab3a1)),_0x4ab3a1++;return _0x3b9360&&_0x31c0fa[_0x2c74('0xfd')](this[_0x2c74('0x113')][_0x2c74('0x7a')](_0x4ab3a1)),_0x31c0fa;}['_threeWayMerge'](_0x2be537,_0x4744fb,_0x4fc794,_0x33054f){const _0x5a9d87=this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x60')];let _0x461e49=_0x4744fb;for(;_0x2be537[_0x461e49]&&_0x2be537[_0x461e49][_0x2c74('0xd1')];)_0x461e49++;let _0xa20d1a=_0x33054f;for(;_0x4fc794[_0xa20d1a]&&_0x4fc794[_0xa20d1a][_0x2c74('0x8c')];)_0xa20d1a++;_0x28994b(_0x2be537,_0x4744fb,_0x461e49),_0x28994b(_0x4fc794,_0x33054f,_0xa20d1a);const _0x3f33fe=_0x4fc794['slice'](_0x33054f,_0xa20d1a)[_0x2c74('0xda')](_0x2be537['slice'](_0x4744fb,_0x461e49));return _0x3f33fe['sort']((_0x2cbc68,_0x375079)=>_0x2cbc68[_0x2c74('0x4e')]!=_0x375079[_0x2c74('0x4e')]?_0x2cbc68[_0x2c74('0x4e')]-_0x375079[_0x2c74('0x4e')]:_0x2cbc68[_0x2c74('0x70')]!=_0x375079[_0x2c74('0x70')]?_0x2cbc68[_0x2c74('0x70')]-_0x375079[_0x2c74('0x70')]:_0x2cbc68['distance']!=_0x375079[_0x2c74('0x107')]?_0x375079[_0x2c74('0x107')]-_0x2cbc68[_0x2c74('0x107')]:!!_0x2cbc68[_0x2c74('0xd1')]!=!!_0x375079[_0x2c74('0xd1')]?-0x1==_0x2cbc68[_0x2c74('0x4e')]||0x0==_0x2cbc68[_0x2c74('0x4e')]?_0x2cbc68[_0x2c74('0xd1')]?-0x1:0x1:_0x2cbc68['isAdded']?0x1:-0x1:_0x2cbc68[_0x2c74('0x7b')]-_0x375079[_0x2c74('0x7b')]),{'commonTape':_0x3f33fe,'iEnd':_0x461e49,'jEnd':_0xa20d1a};function _0x28994b(_0x697a51,_0x146211,_0x1165bb){let _0x19f4b4=-0x1,_0x241906=Number['POSITIVE_INFINITY'],_0x3055d1=!0x0;for(let _0x4b963b=_0x146211;_0x4b963b<_0x1165bb;_0x4b963b++)if(_0x5a9d87[_0x2c74('0x91')](_0x697a51[_0x4b963b]['item'])||(_0x3055d1=!0x1),_0x697a51[_0x4b963b][_0x2c74('0xf7')]['startIndex']<_0x146211&&(_0x19f4b4=_0x4b963b),_0x697a51[_0x4b963b][_0x2c74('0xf7')][_0x2c74('0x108')]>=_0x1165bb){_0x241906=_0x4b963b;break;}_0x3055d1&&(_0x19f4b4=_0x1165bb-0x1);for(let _0x24bd7b=_0x146211;_0x24bd7b<_0x1165bb;_0x24bd7b++)_0x697a51[_0x24bd7b][_0x2c74('0x4e')]=_0x24bd7b<=_0x19f4b4?-0x1:_0x24bd7b<_0x241906?0x0:0x1,_0x697a51[_0x24bd7b]['index']=_0x24bd7b;let _0x5c1b25=0x0;for(let _0x5d297a=_0x146211;_0x5d297a<=_0x19f4b4;_0x5d297a++)0x0==_0x697a51[_0x5d297a]['distance']?_0x697a51[_0x5d297a][_0x2c74('0x70')]=_0x5c1b25:(_0x5c1b25++,_0x697a51[_0x5d297a][_0x2c74('0x70')]=_0x5c1b25,_0x5c1b25++);for(let _0x5db308=_0x146211;_0x5db308<_0x1165bb;_0x5db308++)0x0==_0x697a51[_0x5db308]['side']&&(_0x697a51[_0x5db308][_0x2c74('0x70')]=_0x5c1b25);_0x5c1b25=0x0;for(let _0x27b3a1=_0x1165bb-0x1;_0x27b3a1>=_0x241906;_0x27b3a1--)0x0==_0x697a51[_0x27b3a1][_0x2c74('0x107')]?_0x697a51[_0x27b3a1][_0x2c74('0x70')]=_0x5c1b25:(_0x5c1b25--,_0x697a51[_0x27b3a1][_0x2c74('0x70')]=_0x5c1b25,_0x5c1b25--);}}['_fixObsoleteTags'](_0x24e8be){const _0x39b538=new Map(),_0x55fa9a=this[_0x2c74('0x89')]['model']['schema'];for(let _0x3911ab=0x1;_0x3911ab<_0x24e8be[_0x2c74('0x10f')];_0x3911ab++){let _0x1d4a84,_0x29f5c9,_0x3c524e;const _0x14fad5=_0x24e8be[_0x3911ab],_0x3627fc=_0x24e8be[_0x3911ab-0x1];if(_0x2c74('0x3e')==_0x14fad5[_0x2c74('0xa0')])continue;if(_0x14fad5['type']!=_0x3627fc[_0x2c74('0xa0')])continue;if(!_0x55fa9a['isBlock'](_0x3627fc[_0x2c74('0xf7')])||_0x55fa9a[_0x2c74('0x2f')](_0x3627fc[_0x2c74('0xf7')]))continue;if(!_0x55fa9a[_0x2c74('0xdf')](_0x14fad5[_0x2c74('0xf7')])||_0x55fa9a[_0x2c74('0x2f')](_0x14fad5[_0x2c74('0xf7')]))continue;if((_0x24e8be[_0x3911ab][_0x2c74('0xd1')]||_0x24e8be[_0x3911ab][_0x2c74('0x119')])&&_0x24e8be[_0x3911ab-0x1][_0x2c74('0x8c')])_0x1d4a84=_0x24e8be[_0x3911ab],_0x29f5c9=_0x24e8be[_0x3911ab-0x1],_0x3c524e=_0x3911ab-0x1;else{if(!_0x24e8be[_0x3911ab][_0x2c74('0x8c')]||!_0x24e8be[_0x3911ab-0x1][_0x2c74('0xd1')]&&!_0x24e8be[_0x3911ab-0x1]['isAddSuggestion'])continue;_0x1d4a84=_0x24e8be[_0x3911ab-0x1],_0x29f5c9=_0x24e8be[_0x3911ab],_0x3c524e=_0x3911ab;}const _0x356ebd=_0x1d4a84[_0x2c74('0x70')]==_0x29f5c9[_0x2c74('0x70')],_0x76729=Math[_0x2c74('0x53')](_0x1d4a84[_0x2c74('0x70')])<Math[_0x2c74('0x53')](_0x29f5c9['level'])&&0x0==_0x29f5c9[_0x2c74('0x107')];(_0x356ebd||_0x76729)&&(_0x39b538[_0x2c74('0x28')](_0x29f5c9['id'],_0x1d4a84['id']),_0x24e8be['splice'](_0x3c524e,0x1),_0x3911ab--,_0x1d4a84[_0x2c74('0xd1')]=!0x1);}for(let _0x182bb2=0x0;_0x182bb2<_0x24e8be[_0x2c74('0x10f')];_0x182bb2++)_0x39b538[_0x2c74('0x92')](_0x24e8be[_0x182bb2][_0x2c74('0xa7')])&&(_0x24e8be[_0x182bb2][_0x2c74('0xa7')]=_0x39b538[_0x2c74('0x10c')](_0x24e8be[_0x182bb2][_0x2c74('0xa7')]));}['_removeMissingPairs'](_0xa2d667){const _0x353da2=new Set(_0xa2d667[_0x2c74('0xe9')](_0x584505=>_0x584505['id']));for(let _0x6ed703=0x0;_0x6ed703<_0xa2d667[_0x2c74('0x10f')];_0x6ed703++)_0x353da2[_0x2c74('0x92')](_0xa2d667[_0x6ed703][_0x2c74('0xa7')])||0x0==_0xa2d667[_0x6ed703][_0x2c74('0x107')]||(_0xa2d667[_0x6ed703][_0x2c74('0xd4')]=!0x0);return _0xa2d667[_0x2c74('0x56')](_0x420a9c=>!_0x420a9c[_0x2c74('0xd4')]);}[_0x2c74('0x31')](_0x257277){const _0x3b8a99=new Set();for(let _0x307beb=0x0;_0x307beb<_0x257277['length'];_0x307beb++){if(_0x3b8a99[_0x2c74('0x92')](_0x257277[_0x307beb]['id'])&&_0x257277[_0x307beb][_0x2c74('0x8c')]&&(_0x257277[_0x307beb][_0x2c74('0xd4')]=!0x0),_0x257277[_0x307beb][_0x2c74('0xd4')])continue;if(0x0==_0x257277[_0x307beb]['distance'])continue;if(_0x2c74('0x87')!=_0x257277[_0x307beb]['type'])continue;if(null==_0x257277[_0x307beb][_0x2c74('0xa7')])continue;let _0x407c23=_0x307beb+0x1,_0x2dc8bb=0x0;for(;_0x257277[_0x407c23]['id']!=_0x257277[_0x307beb][_0x2c74('0xa7')];)_0x2c74('0x87')==_0x257277[_0x407c23][_0x2c74('0xa0')]?_0x2dc8bb++:_0x2c74('0x5e')==_0x257277[_0x407c23][_0x2c74('0xa0')]&&_0x2dc8bb--,_0x407c23++;if(0x0!=_0x2dc8bb){if(_0x257277[_0x307beb][_0x2c74('0x8c')])_0x257277[_0x307beb][_0x2c74('0xd4')]=!0x0;else for(;_0x407c23!=_0x307beb;)_0x257277[_0x407c23][_0x2c74('0x8c')]&&0x0!=_0x257277[_0x407c23][_0x2c74('0x107')]&&(_0x257277[_0x407c23][_0x2c74('0xd4')]=!0x0,_0x3b8a99[_0x2c74('0xa9')](_0x257277[_0x407c23]['pairId'])),_0x407c23--;}}return _0x257277[_0x2c74('0x56')](_0x367fea=>!_0x367fea[_0x2c74('0xd4')]);}[_0x2c74('0xcc')](_0x3cba7d){const _0x30b554=this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x60')];for(let _0x33c5de=0x0;_0x33c5de<_0x3cba7d[_0x2c74('0x10f')];_0x33c5de++){if(!(_0x3cba7d[_0x33c5de]['isAdded']||_0x3cba7d[_0x33c5de][_0x2c74('0x119')]||_0x3cba7d[_0x33c5de][_0x2c74('0x8c')]||_0x3cba7d[_0x33c5de][_0x2c74('0xca')]))continue;if(0x0==_0x3cba7d[_0x33c5de][_0x2c74('0x107')])continue;const _0x438ebd=_0x3cba7d[_0x33c5de]['item'];_0x30b554['isBlock'](_0x438ebd)||_0x30b554[_0x2c74('0x2f')](_0x438ebd)||(_0x3cba7d[_0x33c5de][_0x2c74('0xd1')]&&delete _0x3cba7d[_0x33c5de][_0x2c74('0xd1')],_0x3cba7d[_0x33c5de]['isAddSuggestion']&&delete _0x3cba7d[_0x33c5de][_0x2c74('0x119')],_0x3cba7d[_0x33c5de][_0x2c74('0xca')]&&delete _0x3cba7d[_0x33c5de][_0x2c74('0xca')],_0x3cba7d[_0x33c5de][_0x2c74('0x8c')]&&(_0x3cba7d[_0x33c5de][_0x2c74('0xd4')]=!0x0));}return _0x3cba7d[_0x2c74('0x56')](_0x41ff1f=>!_0x41ff1f[_0x2c74('0xd4')]);}['_makeModelFromTape'](_0x2bae49,_0x2f2c8c,_0x353eef){const _0x180102=new _0x3d9a35(),_0x46ca9e=[],_0x4a5f09=new Map(),_0x4493ee=this[_0x2c74('0x89')][_0x2c74('0x12')],_0x164f9c=_0x4493ee[_0x2c74('0x60')],_0x558db7=[_0x180102],_0x3134d8={},_0x948975={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x13c943=null;const _0x559e51=[0x0];for(let _0x2a5525=0x0;_0x2a5525<_0x2bae49[_0x2c74('0x10f')];_0x2a5525++){let _0xe34b5e,_0x2f5865;if(_0x2c74('0x87')===_0x2bae49[_0x2a5525][_0x2c74('0xa0')]){_0xe34b5e=_0x4493ee[_0x2c74('0xc9')](_0x180102,_0x559e51);const _0x21bb55=new _0x54db79(_0x2bae49[_0x2a5525][_0x2c74('0xf7')][_0x2c74('0xc3')],_0x2bae49[_0x2a5525][_0x2c74('0xf7')]['getAttributes']());_0x558db7[0x0]['_appendChild'](_0x21bb55),_0x559e51[_0x2c74('0xfd')](0x0),_0x558db7[_0x2c74('0x86')](_0x21bb55),_0x2f5865=_0x4493ee['createPositionFromPath'](_0x180102,_0x559e51),_0x13c943=null;}else{if('elementEnd'===_0x2bae49[_0x2a5525][_0x2c74('0xa0')])_0x558db7[_0x2c74('0x93')](),_0xe34b5e=_0x4493ee['createPositionFromPath'](_0x180102,_0x559e51),_0x559e51[_0x2c74('0xd7')](),_0x559e51[_0x559e51[_0x2c74('0x10f')]-0x1]++,_0x2f5865=_0x4493ee[_0x2c74('0xc9')](_0x180102,_0x559e51),_0x13c943=null;else{if(_0xe34b5e=_0x4493ee[_0x2c74('0xc9')](_0x180102,_0x559e51),_0x13c943&&_0x44530c(_0x13c943,_0x2bae49[_0x2a5525][_0x2c74('0xf7')]))_0x13c943[_0x2c74('0x68')]+=_0x2bae49[_0x2a5525]['item'][_0x2c74('0xae')];else{const _0xad5f35=new _0x4b0ca6(_0x2bae49[_0x2a5525]['item'][_0x2c74('0xae')],_0x2bae49[_0x2a5525][_0x2c74('0xf7')][_0x2c74('0x11')]());_0x558db7[0x0]['_appendChild'](_0xad5f35),_0x13c943=_0xad5f35;}_0x559e51[_0x559e51[_0x2c74('0x10f')]-0x1]+=_0x2bae49[_0x2a5525][_0x2c74('0xf7')][_0x2c74('0x9')],_0x2f5865=_0x4493ee[_0x2c74('0xc9')](_0x180102,_0x559e51);}}for(const _0x4d9641 of _0x2bae49[_0x2a5525][_0x2c74('0xeb')])_0x4a5f09[_0x2c74('0x28')](_0x4d9641,{'start':_0xe34b5e,'end':null});_0x1c4014(_0x2c74('0xca'),_0x2a5525,_0xe34b5e,_0x2f5865),_0x1c4014(_0x2c74('0x119'),_0x2a5525,_0xe34b5e,_0x2f5865),_0x1c4014(_0x2c74('0x8c'),_0x2a5525,_0xe34b5e,_0x2f5865),_0x1c4014(_0x2c74('0xd1'),_0x2a5525,_0xe34b5e,_0x2f5865);for(const _0xcc6f0f of _0x2bae49[_0x2a5525][_0x2c74('0x6b')]){_0x4a5f09['get'](_0xcc6f0f)[_0x2c74('0x105')]=_0x2f5865;}}for(const [_0x121842,_0xbf5189]of _0x4a5f09){const _0x4fc741=this['editor'][_0x2c74('0x12')][_0x2c74('0x84')](_0xbf5189[_0x2c74('0xaa')],_0xbf5189[_0x2c74('0x105')]);_0x180102['markers']['set'](_0x121842,_0x4fc741);}return _0x46ca9e[_0x2c74('0x11b')]((_0x1061c1,_0x799abc)=>{const _0x368099=_0x180102[_0x2c74('0x58')][_0x2c74('0x10c')](_0x2c74('0x21')+_0x1061c1['id']),_0x4ef240=_0x180102['markers'][_0x2c74('0x10c')](_0x2c74('0x21')+_0x799abc['id']);return _0x368099[_0x2c74('0xaa')][_0x2c74('0x3b')](_0x4ef240['start'])?-0x1:_0x368099[_0x2c74('0xaa')][_0x2c74('0xb7')](_0x4ef240[_0x2c74('0xaa')])?0x1:_0x368099['end'][_0x2c74('0x3b')](_0x4ef240[_0x2c74('0x105')])?-0x1:_0x368099[_0x2c74('0x105')]['isAfter'](_0x4ef240[_0x2c74('0x105')])?0x1:_0x2c74('0xa9')===_0x1061c1['type']?-0x1:0x1;}),{'root':_0x180102,'changes':_0x46ca9e};function _0x1c4014(_0x4ec43e,_0x3865cf,_0x5f5c72,_0x53d8fd){const _0x548c6d=!!_0x2bae49[_0x3865cf][_0x4ec43e],_0x448f94=_0x548c6d?_0x2bae49[_0x3865cf][_0x4ec43e]['userId']:null,_0x24557a=_0x3865cf===_0x2bae49[_0x2c74('0x10f')]-0x1,_0xfc211=_0x948975[_0x4ec43e][0x0],_0x38c47c=_0x164f9c['isObject'](_0x2bae49[_0x3865cf][_0x2c74('0xf7')]);!_0x3134d8[_0x4ec43e]&&_0x548c6d?_0x3134d8[_0x4ec43e]={'start':_0x5f5c72,'tapeItem':_0x2bae49[_0x3865cf],'userId':_0x448f94,'type':_0x4ec43e}:_0x3134d8[_0x4ec43e]&&!_0x548c6d?(_0x3134d8[_0x4ec43e][_0x2c74('0x105')]=_0x5f5c72,_0x5907d1(_0x3134d8[_0x4ec43e]),_0x3134d8[_0x4ec43e]=null):_0x3134d8[_0x4ec43e]&&_0x548c6d&&_0x3134d8[_0x4ec43e]['userId']!==_0x448f94&&(_0x3134d8[_0x4ec43e][_0x2c74('0x105')]=_0x5f5c72,_0xfc211&&_0xfc211[_0x2c74('0x61')]===_0x3134d8[_0x4ec43e]['userId']||_0x5907d1(_0x3134d8[_0x4ec43e]),_0x3134d8[_0x4ec43e]={'start':_0x5f5c72,'tapeItem':_0x2bae49[_0x3865cf],'userId':_0x448f94,'type':_0x4ec43e}),_0x3134d8[_0x4ec43e]&&_0x38c47c&&(_0x2c74('0x87')!==_0x2bae49[_0x3865cf][_0x2c74('0xa0')]||_0xfc211&&_0xfc211[_0x2c74('0x61')]===_0x448f94||_0x948975[_0x4ec43e]['unshift']({'userId':_0x448f94,'object':_0x2bae49[_0x3865cf]['item'],'change':_0x3134d8[_0x4ec43e]}),_0x2c74('0x5e')===_0x2bae49[_0x3865cf]['type']&&_0xfc211&&_0xfc211[_0x2c74('0x73')]===_0x2bae49[_0x3865cf]['item']&&(_0x948975[_0x4ec43e][_0x2c74('0x93')](),_0x3134d8[_0x4ec43e]=_0xfc211[_0x2c74('0xf4')])),_0x3134d8[_0x4ec43e]&&_0x24557a&&(_0x3134d8[_0x4ec43e]['end']=_0x53d8fd,_0x5907d1(_0x3134d8[_0x4ec43e]),_0x3134d8[_0x4ec43e]=null);}function _0x5907d1({start:_0x2294a3,end:_0x8e6b31,tapeItem:_0x7a7c57,userId:_0x454308,type:_0x185fe2}){const _0xbc7d09=_0x7a7c57['item'],_0x1a46ab=_0x4493ee[_0x2c74('0x60')][_0x2c74('0xdf')](_0xbc7d09)&&!_0x4493ee[_0x2c74('0x60')][_0x2c74('0x2f')](_0xbc7d09),_0x54ea95=_0x2294a3[_0x2c74('0xf3')]==_0x8e6b31[_0x2c74('0xe0')]&&_0x8e6b31['isAtStart'];if(_0x1a46ab&&_0x54ea95)return;const _0x282646=_0x4493ee[_0x2c74('0x84')](_0x2294a3,_0x8e6b31),_0x3358b9=_0x2f2c8c[_0x2c74('0x10c')](_0x454308),_0x4ae577=new _0x2da2d8({'author':_0x3358b9,'type':'isAdded'==_0x185fe2||_0x2c74('0x119')==_0x185fe2?_0x2c74('0xa9'):_0x2c74('0x3'),'data':{'isSuggestion':'isAddSuggestion'==_0x185fe2||_0x2c74('0xca')==_0x185fe2},'createdAt':new Date(),'rootName':_0x353eef});_0x46ca9e[_0x2c74('0xfd')](_0x4ae577),_0x180102[_0x2c74('0x58')][_0x2c74('0x28')](_0x2c74('0x21')+_0x4ae577['id'],_0x282646);}function _0x44530c(_0x34e12b,_0x4f3e8a){const _0x4e7405=_0x34e12b[_0x2c74('0x11')](),_0x212cf1=_0x4f3e8a[_0x2c74('0x11')]();for(const _0x1389b7 of _0x4e7405){if(_0x1389b7[0x1]!==_0x4f3e8a[_0x2c74('0x66')](_0x1389b7[0x0]))return!0x1;_0x212cf1[_0x2c74('0xde')]();}return _0x212cf1[_0x2c74('0xde')]()[_0x2c74('0xea')];}}[_0x2c74('0x19')](){this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')]('upcast')[_0x2c74('0x8f')]({'view':_0x2c74('0x25')}),this[_0x2c74('0x89')][_0x2c74('0xd0')]['for'](_0x2c74('0x88'))[_0x2c74('0x8a')]({'model':_0x2c74('0x25'),'view':_0x218708=>{const _0x1e00f9=_0x218708['markerName'][_0x2c74('0xc2')](':')[0x1],_0x1b0d21=this[_0x2c74('0xd8')](_0x1e00f9);if(!_0x1b0d21)return null;const _0x33340f=_0x2c74('0xa9')==_0x1b0d21['type']?'insertion':_0x2c74('0xce'),_0x241b5d=[_0x2c74('0x41'),_0x2c74('0x80')+_0x33340f];return _0x1b0d21[_0x2c74('0xae')][_0x2c74('0xe4')]&&_0x241b5d[_0x2c74('0xfd')](_0x2c74('0x80')+_0x33340f+_0x2c74('0xb9')),this[_0x2c74('0x20')]==_0x1b0d21&&_0x241b5d[_0x2c74('0xfd')](_0x2c74('0xb1')),{'classes':_0x241b5d,'attributes':{'data-change-id':_0x1e00f9}};}}),this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')](_0x2c74('0xee'))[_0x2c74('0xa9')](_0x37a9ac=>{_0x37a9ac['on'](_0x2c74('0x85'),(_0x54b868,_0x4380f3,_0x160621)=>{const _0x4cc137=_0x4380f3[_0x2c74('0x5f')][_0x2c74('0xfc')](0x0);if(!_0x4cc137||!_0x4cc137['is'](_0x2c74('0x27'),_0x2c74('0xa3')))return;if(!_0x160621[_0x2c74('0x76')][_0x2c74('0x16')](_0x4cc137,{'attributes':[_0x2c74('0x11c'),'vid_end']}))return;const _0x136276=_0x4380f3[_0x2c74('0x81')]['start']['nodeAfter'];_0x160621['writer'][_0x2c74('0x6d')](_0x2c74('0x11c'),_0x4cc137['getAttribute'](_0x2c74('0x11c')),_0x136276),_0x160621['writer'][_0x2c74('0x6d')]('vid_end',_0x4cc137[_0x2c74('0x66')](_0x2c74('0xc4')),_0x136276);},{'priority':_0x2c74('0x33')});}),this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')](_0x2c74('0xee'))['add'](_0x5883c2=>{_0x5883c2['on'](_0x2c74('0x27'),(_0x463c4c,_0x4ad452,_0x36622f)=>{if(!_0x36622f['consumable'][_0x2c74('0x16')](_0x4ad452[_0x2c74('0x5f')],{'attributes':['vid_start',_0x2c74('0xc4')]}))return;if(_0x4ad452[_0x2c74('0x81')]['isCollapsed'])return;const _0x583407=_0x4ad452[_0x2c74('0x81')]['start'][_0x2c74('0xf3')];_0x583407[_0x2c74('0x110')]('vid_start')||_0x583407[_0x2c74('0x110')]('vid')||(_0x36622f[_0x2c74('0x115')][_0x2c74('0x6d')](_0x2c74('0x11c'),_0x4ad452[_0x2c74('0x5f')][_0x2c74('0x66')](_0x2c74('0x11c')),_0x583407),_0x36622f[_0x2c74('0x115')][_0x2c74('0x6d')]('vid_end',_0x4ad452[_0x2c74('0x5f')][_0x2c74('0x66')](_0x2c74('0xc4')),_0x583407));},{'priority':_0x2c74('0x33')});}),this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')]('upcast')[_0x2c74('0xe7')]({'view':{'name':_0x2c74('0x2e'),'attributes':{'vid':!0x0}},'model':{'key':_0x2c74('0x106'),'value':_0x5ab692=>_0x5ab692['getAttribute']('vid')}}),this[_0x2c74('0x89')][_0x2c74('0x12')]['schema']['on']('checkAttribute',(_0x5e02f8,[,_0x47f1a3])=>{[_0x2c74('0x11c'),_0x2c74('0xc4'),_0x2c74('0x106')][_0x2c74('0x10')](_0x47f1a3)&&(_0x5e02f8[_0x2c74('0xf')]=!0x0,_0x5e02f8[_0x2c74('0x6e')]());},{'priority':'highest'}),this['editor'][_0x2c74('0xd0')][_0x2c74('0x3c')](_0x2c74('0x40'))['add'](_0x1032df=>{_0x1032df['on'](_0x2c74('0x30'),(_0x3714bd,_0x2e250c,_0x411181)=>{if('\x20'!=_0x2e250c[_0x2c74('0xf7')]['data']||_0x2e250c[_0x2c74('0xf7')][_0x2c74('0xe0')]['maxOffset']>0x1)return;if(!_0x411181[_0x2c74('0x76')][_0x2c74('0x16')](_0x2e250c[_0x2c74('0xf7')],_0x3714bd['name']))return;const _0x3171e3=_0x411181[_0x2c74('0x115')],_0x34c702=_0x411181[_0x2c74('0x57')][_0x2c74('0x74')](_0x2e250c['range']);_0x3171e3[_0x2c74('0xa1')](_0x34c702,_0x3171e3['createAttributeElement'](_0x2c74('0x2e')));});}),this[_0x2c74('0x89')]['conversion'][_0x2c74('0x3c')]('dataDowncast')[_0x2c74('0x7f')]({'model':_0x2c74('0x25')}),this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x4f')]['on'](_0x2c74('0xff'),function(_0x4ce5f2){const _0x1164b9=_0x4ce5f2[_0x2c74('0x9d')][_0x2c74('0x10c')]('RevisionViewer');return(_0x4523cc,_0x2ac225,_0x578a87)=>{const _0x31ed3c=_0x2ac225[_0x2c74('0xa8')][_0x2c74('0xc2')](':')[0x1],_0xc621cd=_0x1164b9[_0x2c74('0xd8')](_0x31ed3c);if(!_0xc621cd)return null;const _0x1a3527=_0x2c74('0xa9')==_0xc621cd[_0x2c74('0xa0')]?_0x2c74('0xc2'):_0x2c74('0x59');if(!_0x578a87['consumable'][_0x2c74('0x5a')](_0x2ac225[_0x2c74('0x109')],_0x4523cc[_0x2c74('0xc3')]))return;const _0x5313e7=_0x2ac225['markerRange']['getWalker'](),_0x2ed70d=_0x2ac225[_0x2c74('0x109')][_0x2c74('0xaa')],_0x4df60c=_0x4ce5f2[_0x2c74('0x12')][_0x2c74('0x60')];let _0x3c8263=null,_0x51438f=null,_0x78162=!0x1,_0x51cda7=!0x1;for(const _0x2d0548 of _0x5313e7){const _0x58b4da=_0x2d0548[_0x2c74('0xf7')];_0x78162=_0x78162||_0x4df60c[_0x2c74('0xec')](_0x58b4da);const _0x4d9d9e=_0x578a87['mapper'][_0x2c74('0x11a')](_0x58b4da);if(_0x4d9d9e&&_0x4d9d9e[_0x2c74('0xa6')](_0x2c74('0xef')))return;_0x2c74('0x5e')==_0x2d0548['type']&&(_0x4df60c['isBlock'](_0x58b4da)&&!_0x4df60c[_0x2c74('0x2f')](_0x58b4da)&&(_0x58b4da[_0x2c74('0x116')]||_0x2ed70d[_0x2c74('0x5')]?_0x3c8263&&_0x3c8263[_0x2c74('0xe0')]==_0x58b4da||(_0x3c8263=_0x58b4da,_0x5c371b(_0x2d0548[_0x2c74('0x17')]),_0x51cda7=!0x0):_0x51438f=_0x51438f||_0x2d0548[_0x2c74('0x17')]));}function _0x5c371b(_0x570a6d){const _0x1e15da=_0x578a87[_0x2c74('0x115')]['createUIElement'](_0x2c74('0x2e'),{'class':_0x2c74('0x80')+_0x1a3527}),_0x5c8d5a=_0x578a87[_0x2c74('0x57')][_0x2c74('0xe3')](_0x570a6d);_0xc621cd[_0x2c74('0xae')][_0x2c74('0xe4')]&&_0x578a87['writer'][_0x2c74('0x43')](_0x2c74('0x80')+_0x1a3527+_0x2c74('0xb9'),_0x1e15da),_0x1164b9[_0x2c74('0x20')]==_0xc621cd&&_0x578a87[_0x2c74('0x115')]['addClass'](_0x2c74('0xb1'),_0x1e15da),_0x578a87[_0x2c74('0x115')][_0x2c74('0x1c')](_0x5c8d5a,_0x1e15da),_0x578a87[_0x2c74('0x57')][_0x2c74('0x44')](_0x1e15da,_0x2ac225[_0x2c74('0xa8')]);}_0x78162||_0x51cda7||!_0x51438f||_0x5c371b(_0x51438f);};}(this['editor']),{'priority':'high'}),this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x4f')]['on'](_0x2c74('0xc7'),(_0x384472,_0x2ee258,_0x3521c3)=>{const _0x1171a0=_0x3521c3['mapper'][_0x2c74('0x8d')](_0x2ee258[_0x2c74('0xa8')]);if(_0x1171a0)for(const _0x434bd0 of _0x1171a0)(_0x434bd0[_0x2c74('0xe6')](_0x2c74('0x1d'))||_0x434bd0[_0x2c74('0xe6')](_0x2c74('0x5d')))&&(_0x3521c3[_0x2c74('0x57')][_0x2c74('0xaf')](_0x434bd0,_0x2ee258['markerName']),_0x3521c3[_0x2c74('0x115')][_0x2c74('0x3')](_0x434bd0));},{'priority':_0x2c74('0x7c')}),this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x4f')]['on'](_0x2c74('0xff'),(_0x2645a2,_0x467ab2,_0xf7390f)=>{const _0x48d296=_0x467ab2[_0x2c74('0xa8')]['split'](':')[0x1],_0x495262=this[_0x2c74('0xd8')](_0x48d296);if(!_0x495262)return null;const _0x1fc60c=_0x2c74('0xa9')==_0x495262[_0x2c74('0xa0')]?_0x2c74('0xc2'):_0x2c74('0x59');if(_0xf7390f['consumable'][_0x2c74('0x5a')](_0x467ab2[_0x2c74('0x109')],_0x2645a2[_0x2c74('0xc3')]))for(const _0x2a7462 of _0x467ab2['markerRange'][_0x2c74('0x67')]()){if(!_0x2a7462['is'](_0x2c74('0x27'),_0x2c74('0x7')))continue;const _0x105f8b=_0xf7390f[_0x2c74('0x115')][_0x2c74('0x63')](_0x2c74('0x2e'),{'class':_0x2c74('0x80')+_0x1fc60c}),_0x58333e=_0xf7390f[_0x2c74('0x57')][_0x2c74('0xe3')](this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x36')](_0x2a7462));_0x495262[_0x2c74('0xae')][_0x2c74('0xe4')]&&_0xf7390f[_0x2c74('0x115')][_0x2c74('0x43')](_0x2c74('0x80')+_0x1fc60c+_0x2c74('0xb9'),_0x105f8b),this[_0x2c74('0x20')]==_0x495262&&_0xf7390f[_0x2c74('0x115')][_0x2c74('0x43')]('ck-suggestion-marker--active',_0x105f8b),_0xf7390f[_0x2c74('0x115')]['insert'](_0x58333e,_0x105f8b),_0xf7390f[_0x2c74('0x57')][_0x2c74('0x44')](_0x105f8b,_0x467ab2[_0x2c74('0xa8')]);}},{'priority':_0x2c74('0x7c')}),this['editor'][_0x2c74('0x12')][_0x2c74('0x94')]['on'](_0x2c74('0xf4'),()=>{this['editor'][_0x2c74('0xb8')]['view']['change'](_0x36a76b=>{for(const _0x310b08 of this['editor'][_0x2c74('0x12')][_0x2c74('0x94')]['getRootNames']()){const _0x3d26cc=this[_0x2c74('0x89')][_0x2c74('0x12')]['document'][_0x2c74('0xc')](_0x310b08),_0x3df0c7=this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x49')][_0x2c74('0x94')][_0x2c74('0xc')](_0x310b08);if(_0x3df0c7){const _0x1aedf3=_0x3d26cc[_0x2c74('0x66')](_0x2c74('0x4c'));if(_0x36a76b[_0x2c74('0x2b')](_0x2c74('0x10a'),_0x3df0c7),_0x36a76b[_0x2c74('0x9f')](_0x2c74('0x112'),_0x3df0c7),_0x36a76b['removeClass'](_0x2c74('0xe1'),_0x3df0c7),_0x36a76b[_0x2c74('0x9f')](_0x2c74('0x75'),_0x3df0c7),_0x1aedf3){const _0x17e839=this[_0x2c74('0xd8')](_0x1aedf3);if(!_0x17e839)return null;_0x36a76b[_0x2c74('0x6d')](_0x2c74('0x10a'),_0x1aedf3,_0x3df0c7),_0x36a76b[_0x2c74('0x43')](_0x2c74('0xdb')+_0x17e839[_0x2c74('0xa0')],_0x3df0c7),this[_0x2c74('0x20')]==_0x17e839&&_0x36a76b[_0x2c74('0x43')](_0x2c74('0x75'),_0x3df0c7);}}}});}),this[_0x2c74('0x89')]['conversion'][_0x2c74('0x3c')]('upcast')[_0x2c74('0x8f')]({'view':_0x2c74('0xd6'),'model':_0x306a68=>_0x2c74('0xb5')+_0x306a68,'converterPriority':'highest'}),this[_0x2c74('0x89')]['conversion']['for'](_0x2c74('0xee'))[_0x2c74('0x8f')]({'view':_0x2c74('0xc0'),'model':_0xfdbcfd=>_0x2c74('0x77')+_0xfdbcfd,'converterPriority':_0x2c74('0x5b')}),this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')](_0x2c74('0x40'))[_0x2c74('0x7f')]({'model':'revision-suggestion','view':_0x127844=>({'name':_0x2c74('0xb2')+_0x127844,'group':_0x2c74('0x65')}),'converterPriority':_0x2c74('0x5b')}),this['editor']['conversion']['for'](_0x2c74('0x88'))[_0x2c74('0x8a')]({'model':_0x2c74('0x65'),'view':_0x5a6ace=>{const _0xe00ea5=_0x5a6ace[_0x2c74('0xa8')][_0x2c74('0xc2')](':')[0x1];return'insertion'!=_0xe00ea5&&_0x2c74('0xce')!=_0xe00ea5?null:{'classes':[_0x2c74('0x8'),_0x2c74('0x64')+_0xe00ea5]};}}),this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x4f')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x2c74('0x89')],_0x2c74('0x59')),{'priority':_0x2c74('0x7c')}),this['editor'][_0x2c74('0xb8')][_0x2c74('0x4f')]['on'](_0x2c74('0xa2'),et(this[_0x2c74('0x89')],'split'),{'priority':'high'}),this[_0x2c74('0x89')][_0x2c74('0xb8')]['downcastDispatcher']['on'](_0x2c74('0x99'),(_0x2d776b,_0x58b06c,_0x427dd6)=>{const _0x509a29=_0x427dd6[_0x2c74('0x57')]['markerNameToElements'](_0x58b06c[_0x2c74('0xa8')]);if(_0x509a29)for(const _0x4179a1 of _0x509a29)_0x4179a1['is'](_0x2c74('0xf2'))&&(_0x427dd6[_0x2c74('0x57')][_0x2c74('0xaf')](_0x4179a1,_0x58b06c[_0x2c74('0xa8')]),_0x427dd6[_0x2c74('0x115')]['remove'](_0x4179a1));},{'priority':_0x2c74('0x7c')});}[_0x2c74('0xd8')](_0x236dbc){return this[_0x2c74('0x9e')][_0x2c74('0x10c')](_0x236dbc);}[_0x2c74('0x9b')](_0x130267){return this[_0x2c74('0xf5')]&&this[_0x2c74('0xf5')]['destroy'](),this['_changeView']=new _0x213ff7(this[_0x2c74('0x89')]['locale'],_0x130267),this['_changeView'];}[_0x2c74('0x97')](){this['editor']['model']['document'][_0x2c74('0x7d')][_0x2c74('0x3d')](_0x2c74('0x25')),this['on']('change:activeView',(_0x50d9af,_0x1ca447,_0x120df3,_0x474c5b)=>{_0x474c5b&&this[_0x2c74('0x9c')][_0x2c74('0x3')](_0x474c5b),_0x120df3&&(this[_0x2c74('0x9c')][_0x2c74('0xa9')]({'view':_0x120df3,'stackId':_0x2c74('0x82'),'position':{'target':()=>{const _0x1fe354=this[_0x2c74('0x89')][_0x2c74('0xb8')],_0x2918ce=this[_0x2c74('0xd8')](_0x120df3[_0x2c74('0xfb')]);let _0x1da52e;if(_0x2918ce['data'][_0x2c74('0xf0')]){const _0x16d650=_0x1fe354[_0x2c74('0x49')][_0x2c74('0x1e')](_0x2918ce['rootName']);_0x1da52e=Array[_0x2c74('0xfa')](_0x16d650[_0x2c74('0xd5')]());}else{const _0x3fc0a5=this['editor'][_0x2c74('0x12')][_0x2c74('0x58')][_0x2c74('0x10c')]('revision:'+_0x120df3[_0x2c74('0xfb')]);_0x1da52e=Array[_0x2c74('0xfa')](_0x1fe354[_0x2c74('0x57')][_0x2c74('0x8d')](_0x3fc0a5[_0x2c74('0xc3')]))[_0x2c74('0xe9')](_0xfcd14=>_0x1fe354[_0x2c74('0x49')][_0x2c74('0x83')][_0x2c74('0x98')](_0xfcd14))['map'](_0x92242d=>Array[_0x2c74('0xfa')](_0x92242d[_0x2c74('0xd5')]()))[_0x2c74('0xc5')]();}if(!this[_0x2c74('0x118')])return _0x1da52e[0x0];return _0x1da52e[_0x2c74('0x10e')](_0x5d92d2=>_0x5d92d2[_0x2c74('0xb6')]-0x3<=this['_activeViewTarget']['y']&&_0x5d92d2[_0x2c74('0x100')]+0x3>=this['_activeViewTarget']['y']&&_0x5d92d2[_0x2c74('0x96')]-0x3<=this[_0x2c74('0x118')]['x']&&_0x5d92d2['right']+0x3>=this[_0x2c74('0x118')]['x'])||_0x1da52e[0x0];}}}),this[_0x2c74('0x9c')][_0x2c74('0xa4')](_0x2c74('0x82')));}),this['on'](_0x2c74('0x47'),(_0x3c9c0c,_0x5a2f30,_0x17f9bb,_0x5828ab)=>{this[_0x2c74('0xad')]=_0x17f9bb?this['_getViewForChange'](_0x17f9bb):null,this[_0x2c74('0x89')][_0x2c74('0x12')]['change'](()=>{const _0x126b2a=this[_0x2c74('0x89')]['editing'];_0x5828ab&&(_0x5828ab['data'][_0x2c74('0xf0')]?_0x126b2a[_0x2c74('0x49')][_0x2c74('0xf4')](_0x1a6d25=>{_0x1a6d25[_0x2c74('0x9f')](_0x2c74('0x75'),_0x126b2a['view'][_0x2c74('0x94')]['getRoot'](_0x5828ab['rootName']));}):_0x126b2a[_0x2c74('0xb4')](_0x2c74('0x21')+_0x5828ab['id'])),_0x17f9bb&&(_0x17f9bb[_0x2c74('0xae')][_0x2c74('0xf0')]?_0x126b2a['view'][_0x2c74('0xf4')](_0x36c664=>{_0x36c664[_0x2c74('0x43')]('ck-revision-history-root--active',_0x126b2a[_0x2c74('0x49')][_0x2c74('0x94')][_0x2c74('0xc')](_0x17f9bb['rootName']));}):_0x126b2a[_0x2c74('0xb4')](_0x2c74('0x21')+_0x17f9bb['id']));});}),this[_0x2c74('0x2')](this[_0x2c74('0x89')]['editing'][_0x2c74('0x49')][_0x2c74('0x94')],_0x2c74('0xc6'),(_0x1c2c49,_0x4e45ed)=>{if(this[_0x2c74('0x20')])return;const _0x411385=this[_0x2c74('0x79')](_0x4e45ed['target']),_0x2e769d=this[_0x2c74('0x9e')][_0x2c74('0x10c')](_0x411385);_0x2e769d?(this[_0x2c74('0x118')]={'x':_0x4e45ed['domEvent']['x'],'y':_0x4e45ed[_0x2c74('0x111')]['y']},this[_0x2c74('0xad')]=this[_0x2c74('0x9b')](_0x2e769d)):(this['_activeViewTarget']=null,this[_0x2c74('0xad')]=null);}),this['listenTo'](this['editor'][_0x2c74('0xb8')][_0x2c74('0x49')]['document'],_0x2c74('0x10d'),(_0x38a9f0,_0x37dd99)=>{const _0x4722a2=this[_0x2c74('0x79')](_0x37dd99[_0x2c74('0x104')]),_0x5e022e=this[_0x2c74('0x9e')]['get'](_0x4722a2);_0x5e022e?(this[_0x2c74('0x118')]={'x':_0x37dd99['domEvent']['x'],'y':_0x37dd99['domEvent']['y']},_0x5e022e===this[_0x2c74('0x20')]?this[_0x2c74('0x9c')]['updatePosition']():this['activeChange']=_0x5e022e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x47ab91){do{const _0xc69656=_0x47ab91[_0x2c74('0x66')](_0x2c74('0x10a'));if(_0xc69656)return _0xc69656;_0x47ab91=_0x47ab91[_0x2c74('0xe0')];}while(_0x47ab91);return null;}[_0x2c74('0x1b')](){this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0xf4')](_0xf1671b=>{for(const _0x159dfb of this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x58')])_0xf1671b[_0x2c74('0x90')](_0x159dfb);});}}function et(_0x2e325a,_0x27eddf){return(_0x4a81cb,_0x249467,_0x59b788)=>{if(!_0x59b788[_0x2c74('0x76')][_0x2c74('0x5a')](_0x249467[_0x2c74('0x109')],_0x4a81cb[_0x2c74('0xc3')]))return;const _0x14ff9c=_0x249467[_0x2c74('0x109')][_0x2c74('0x114')](),_0xa5689e=_0x249467[_0x2c74('0x109')]['start'],_0x43ecab=_0x2e325a[_0x2c74('0x12')][_0x2c74('0x60')];let _0x4154ee=null,_0x42cb14=null,_0x1d3334=!0x1,_0x54dd6d=!0x1;for(const _0x5cc514 of _0x14ff9c){const _0x1360a0=_0x5cc514[_0x2c74('0xf7')];_0x1d3334=_0x1d3334||_0x43ecab[_0x2c74('0xec')](_0x1360a0);const _0x3a063c=_0x59b788[_0x2c74('0x57')][_0x2c74('0x11a')](_0x1360a0);if(_0x3a063c&&_0x3a063c[_0x2c74('0xa6')](_0x2c74('0xef')))return;_0x2c74('0x5e')==_0x5cc514['type']&&(_0x43ecab[_0x2c74('0xdf')](_0x1360a0)&&!_0x43ecab[_0x2c74('0x2f')](_0x1360a0)&&(_0x1360a0[_0x2c74('0x116')]||_0xa5689e['isAtEnd']?_0x4154ee&&_0x4154ee[_0x2c74('0xe0')]==_0x1360a0||(_0x4154ee=_0x1360a0,_0x3f5faa(_0x5cc514[_0x2c74('0x17')]),_0x54dd6d=!0x0):_0x42cb14=_0x42cb14||_0x5cc514[_0x2c74('0x17')]));}function _0x3f5faa(_0x18f492){const _0x226977=_0x59b788[_0x2c74('0x57')][_0x2c74('0xe3')](_0x18f492),_0xb88f2a=_0x59b788[_0x2c74('0x115')][_0x2c74('0x63')](_0x2c74('0x2e'),{'class':'ck-suggestion-preview-marker-'+_0x27eddf});_0x59b788[_0x2c74('0x115')][_0x2c74('0x1c')](_0x226977,_0xb88f2a),_0x59b788[_0x2c74('0x57')][_0x2c74('0x44')](_0xb88f2a,_0x249467[_0x2c74('0xa8')]);}_0x1d3334||_0x54dd6d||!_0x42cb14||_0x3f5faa(_0x42cb14);};}export class RestoreRevisionCommand extends _0x402c0a{constructor(_0x4f521e){super(_0x4f521e);const _0x77e157=_0x4f521e[_0x2c74('0x9d')][_0x2c74('0x10c')](d);this[_0x2c74('0x10b')]=!0x1,this[_0x2c74('0x2')](_0x77e157,_0x2c74('0x62'),()=>this[_0x2c74('0xdc')]()),this[_0x2c74('0x2')](_0x77e157,_0x2c74('0x7e'),()=>this[_0x2c74('0xdc')]());}[_0x2c74('0xbc')](){const _0x5e65c2=this[_0x2c74('0x89')],_0x461c48=_0x5e65c2[_0x2c74('0x9d')]['get'](d),_0x340dfc=_0x461c48[_0x2c74('0x1f')]?_0x461c48['diff'][_0x2c74('0x50')]:null;_0x5e65c2['config'][_0x2c74('0x10c')](_0x2c74('0x54'))[_0x2c74('0x46')](_0x340dfc);}['refresh'](){const {isReady:_0x54d0c8,isEnabled:_0x152ad4}=this[_0x2c74('0x89')][_0x2c74('0x9d')]['get'](d);this[_0x2c74('0xbe')]=_0x54d0c8&&_0x152ad4;}}export class ShowChangeCommand extends _0x402c0a{constructor(_0xb3cfe5,{direction:_0x55b89b}){super(_0xb3cfe5);const _0x308ff3=_0xb3cfe5['plugins'][_0x2c74('0x10c')](d);this['affectsData']=!0x1,this['_step']=_0x2c74('0x3a')===_0x55b89b?0x1:-0x1,this[_0x2c74('0x2')](_0x308ff3,_0x2c74('0x62'),()=>this['refresh']()),this[_0x2c74('0x2')](_0x308ff3,_0x2c74('0x7e'),()=>this[_0x2c74('0xdc')]()),this['listenTo'](_0x308ff3,_0x2c74('0x47'),()=>this[_0x2c74('0xdc')]());}[_0x2c74('0xbc')](){const _0xae9ee7=this[_0x2c74('0x89')],_0x523426=_0xae9ee7['plugins']['get'](d),{isNavigationMode:_0x59093a,currentChangeNumber:_0x1910a9}=_0x523426;let _0x305dc6;if(_0x523426['activeChange']=_0x59093a?_0x523426[_0x2c74('0xf9')]['changes'][_0x2c74('0x10c')](_0x1910a9+this[_0x2c74('0x55')]):_0x523426[_0x2c74('0xf9')]['changes']['first'],_0x523426[_0x2c74('0x20')][_0x2c74('0xae')][_0x2c74('0xf0')])_0x305dc6=_0xae9ee7[_0x2c74('0xb8')]['view'][_0x2c74('0x1e')](_0x523426[_0x2c74('0x20')][_0x2c74('0xcf')]);else{const _0x1ecbfb=_0xae9ee7[_0x2c74('0x12')][_0x2c74('0x58')]['get']('revision:'+_0x523426[_0x2c74('0x20')]['id']);_0x305dc6=_0x440720(_0xae9ee7[_0x2c74('0xb8')],_0x1ecbfb);}_0x518404({'target':_0x305dc6,'viewportOffset':0x28});}[_0x2c74('0xdc')](){const {isNavigationMode:_0x2b92c5,currentChangeNumber:_0x4186dc,numberOfChanges:_0x36a9f8,isReady:_0x4a19f8,isEnabled:_0x452248}=this[_0x2c74('0x89')][_0x2c74('0x9d')][_0x2c74('0x10c')](d);this['isEnabled']=!!(_0x452248&&_0x4a19f8&&_0x36a9f8)&&(!_0x2b92c5||(0x1===this['_step']?_0x4186dc<_0x36a9f8-0x1:_0x4186dc>0x0));}}
|
|
23
|
+
const _0xb233=['change:isReady','createAttributeElement','name','restoreRevision','attribute:vid','element:pre','isContent','_processTape','roots','forceDisabled','revisionHistory','_findChangeIdFromDomTarget','isEnabled','error','editingDowncast','children','bottom','revision-comment:','splice','getRevisionRootsAttributes','concat','end','revision','stop','POSITIVE_INFINITY','markerToHighlight','upcast','_initInteractions','getWalker','highest','index','parent','dataToMarker','diffData','includes','createPositionFromPath','writer','attachChange','get','getRootNames','_changeIdToChange','high','editor','ck-revision-history-root-remove','isAdded','refresh','target','nextSibling','insertion','_refreshStartEndIndex','element','has','adapter','view','revisionHistoryAttachChange','removeMarker','addHighlight','createRevision','isBefore','remove','abs','_removeUnsupportedChanges','repository','deletion','findIndex','data-change-id','hasAttribute','from','isLimit','span','_appendChild','dataDowncast','revision-viewer','bind','split','numberOfChanges','rootName','showStack','_sortAndFilterDiffChanges','revisionHistoryLabel','then','sort','low','_getViewForChange','isAtEnd','previousPosition','addMarker:revision','_activeViewTarget','elementEnd','isAttached','mousedown','markerNameToElements','isBlock','execute','checkAttribute','isOnRoot','side','oldRevisionId','_markMismatchedRemovedTags','isAfter','getAttributes','merge','viewItem','_setDistance','currentChangeNumber','change','done','enqueueChange','isInline','activeView','isReady','suggestion:','revision-end','_removeRevisionMarkers','_removeMissingPairs','config','isEqual','indexOf','downcastDispatcher','getChild','deletions','addMarker:revision-suggestion:deletion','ck-suggestion-preview-marker-','markerRange','commands','isAddSuggestion','range','elementToAttribute','revision-suggestion:','all','_joinTapes','comment','_step','test','removeMarker:revision','change:activeChange','forEach','revision-suggestion','_makeModelFromViewString','shift','_cleanMarkers','insertions','left','offsetSize','toModel','getDomRoot','markerToData','addRevision','startIndex','for','toData','getRoot','text','consumable','ck-suggestion-marker--active','pluginName','catch','isRemoved','ck-revision-history-root-add','ck-suggestion-marker','data-revision-','loadRevisionData','hasClass','affectsData','code','removeClass','userId','consume','mapper','diff','change:isEnabled','getRevision','restoreRevisionCallback','useFillerType','clear','filter','init','slice','createRangeIn','data','find','changes','WidgetToolbarRepository','getClientRects','add','nodeAfter','pairId','document','_makeTape','nextPosition','elementStart','observeMarkers','getItems','requires','_changeView','string','_balloon','attributes','isRemoveSuggestion','markersEnd','_makeModelFromTape','conversion','change:activeView','revision:','getAttribute','_getChangeFromId','start','_setChanges','_getDiff','editing','vid_end','_getViewObj','unbindElementFromMarkerName','ck-editor__editable__overlay','createRange','item','maxOffset','showNextChange','wrap','_setConversion','addMarker:revision-suggestion:insertion','_threeWayMerge','attributesAfter','map','processor','authors','uiElement','suggestion','markersStart','_markMarkers','listenTo','selection','detachRoot','modelRange','addClass','compare','unshift','destroy','isNavigationMode','isObject','bindElementToMarker','isAtStart','endIndex','RevisionsRepository','_fixObsoleteTags','_data','markers','_cleanUp','_getRevisionsRange','domConverter','schema','type','-new','locale','set','length','getIndex','activeChange','isCollapsed','object','vid','markerName','softBreak','insert','marked','startsWith','ck-suggestion-marker-','plugins','push','reconvertMarker','vid_start','delete','level','model','next','_markSuggestions','createUIElement','_markInsertions','_update','ck-revision-history-root--active','isIncorrect','keys','isSuggestion','getCustomProperty','distance','setAttribute','toViewPosition','first','changeId','domEvent','RevisionViewer'];(function(_0x2d735b,_0xb23323){const _0x234b76=function(_0x1d74ad){while(--_0x1d74ad){_0x2d735b['push'](_0x2d735b['shift']());}};_0x234b76(++_0xb23323);}(_0xb233,0x123));const _0x234b=function(_0x2d735b,_0xb23323){_0x2d735b=_0x2d735b-0x0;let _0x234b76=_0xb233[_0x2d735b];return _0x234b76;};import{Plugin as _0x2e0c8d,Command as _0x349962}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x46ecbd}from'ckeditor5/src/utils';import{ContextualBalloon as _0x28bc6c}from'ckeditor5/src/ui';import{DocumentFragment as _0x5611e1,Element as _0x30e2cd,Text as _0x5bcfa1,ViewDocumentFragment as _0x561f79,ViewText as _0x524404,ViewElement as _0x68b40a,ViewContainerElement as _0x4b94fa,ViewAttributeElement as _0x19e4b2,ViewEmptyElement as _0x21a0e2,ViewRawElement as _0x50f20a,ViewUIElement as _0x922b7a}from'ckeditor5/src/engine';import{Users as _0x2cd8b7,getMarkerDomElement as _0x1d3894}from'ckeditor5-collaboration/src/collaboration-core';import _0x3d3978 from'./ui/revisionviewer/changedetailsview';import _0x2055b9 from'./revisionsrepository';import _0x5656c0 from'./changeitem';import{default as _0x2e9d2b}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x28b9ba}from'lodash-es';const tt={'c':_0x4b94fa,'a':_0x19e4b2,'e':_0x21a0e2,'r':_0x50f20a,'u':_0x922b7a};export default class d extends _0x2e0c8d{static get[_0x234b('0x9b')](){return _0x234b('0x122');}static get[_0x234b('0xc1')](){return[_0x2cd8b7,_0x28bc6c,_0x2055b9];}constructor(_0xb3e726){super(_0xb3e726),this[_0x234b('0x3e')]=this[_0x234b('0x2a')][_0x234b('0x10b')]['get'](_0x234b('0xf3')),this[_0x234b('0xfe')](_0x234b('0x101'),null),this['set'](_0x234b('0x6d'),null),this[_0x234b('0x57')]=null,this[_0x234b('0xfe')](_0x234b('0xa9'),null),this[_0x234b('0xfe')](_0x234b('0x6e'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x234b('0xaa'),(_0x5607d1,_0x4cee4b,_0xf7bc3a)=>{this[_0x234b('0x101')]=null,this['activeView']=null,this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x69')](_0x2e2649=>{for(const _0x40ebe8 of this['editor'][_0x234b('0xd1')][_0x234b('0x35')]['document'][_0x234b('0x8')])_0xf7bc3a?_0x2e2649[_0x234b('0xa5')](_0x234b('0xd5'),_0x40ebe8):_0x2e2649[_0x234b('0xea')]('ck-editor__editable__overlay',_0x40ebe8);});}),this[_0x234b('0x49')](_0x234b('0xee'))['to'](this,_0x234b('0x101'),_0x287940=>null!==_0x287940),this[_0x234b('0x49')](_0x234b('0x68'))['to'](this,'isReady',this,'diff',this,_0x234b('0x101'),(_0x5ef7db,_0x460153,_0x22b7d0)=>_0x5ef7db&&_0x22b7d0?_0x460153[_0x234b('0xb5')]['getIndex'](_0x22b7d0):0x0),this['bind'](_0x234b('0x4b'))['to'](this,_0x234b('0x6e'),this,_0x234b('0xa9'),(_0x396516,_0x245fc4)=>_0x396516?_0x245fc4['changes'][_0x234b('0xff')]:0x0),this[_0x234b('0xc2')]=null,this[_0x234b('0x28')]=new Map(),this[_0x234b('0x34')]=null,this['_balloon']=this[_0x234b('0x2a')]['plugins'][_0x234b('0x26')](_0x28bc6c);}[_0x234b('0xb0')](){const _0x12b66a=this[_0x234b('0x2a')],_0x266ce9=new ShowChangeCommand(_0x12b66a,{'direction':'backward'}),_0x1681c5=new ShowChangeCommand(_0x12b66a,{'direction':'forward'});(_0x12b66a[_0x234b('0x7c')]['add']('showPreviousChange',_0x266ce9),_0x12b66a[_0x234b('0x7c')]['add'](_0x234b('0xd9'),_0x1681c5),_0x12b66a[_0x234b('0x7c')][_0x234b('0xb8')](_0x234b('0x3'),new RestoreRevisionCommand(_0x12b66a)),this['on']('change:numberOfChanges',()=>{_0x266ce9[_0x234b('0x2d')](),_0x1681c5[_0x234b('0x2d')]();}),this[_0x234b('0xdb')](),this[_0x234b('0x1b')](),_0x12b66a['enableReadOnlyMode']('revision-viewer'),_0x12b66a['plugins'][_0x234b('0x33')]('WidgetToolbarRepository'))&&_0x12b66a['plugins'][_0x234b('0x26')](_0x234b('0xb6'))[_0x234b('0x9')](_0x234b('0x48'));}async['getRevisionData'](_0x1f2d0f){await this[_0x234b('0xa1')](_0x1f2d0f);const _0x35ca52={};for(const _0x32ec75 in _0x1f2d0f['diffData']){if(_0x1f2d0f[_0x234b('0x21')][_0x32ec75][_0x234b('0x25')]&&!_0x1f2d0f[_0x234b('0x21')][_0x32ec75]['attachChange'][_0x234b('0x59')])continue;const _0x41afd3=this[_0x234b('0x71')](JSON['parse'](_0x1f2d0f[_0x234b('0x21')][_0x32ec75][_0x234b('0x8d')])),_0xb1d4ee=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')]['document'],_0x1f1b13=new _0x561f79(_0xb1d4ee,_0x41afd3['map'](_0x966b73=>this['_getViewObj'](_0x966b73)));this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')]['useFillerType'](_0x234b('0x108')),_0x35ca52[_0x32ec75]=this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')][_0x234b('0x96')](_0x1f1b13),this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')][_0x234b('0xad')]('default');}return _0x35ca52;}async[_0x234b('0x13')](_0x506e0d){await this[_0x234b('0xa1')](_0x506e0d);const _0x5c544a={};for(const _0x26eaf0 in _0x506e0d[_0x234b('0x21')])_0x506e0d[_0x234b('0x21')][_0x26eaf0][_0x234b('0x25')]&&!_0x506e0d[_0x234b('0x21')][_0x26eaf0]['attachChange']['isAttached']||(_0x5c544a[_0x26eaf0]=_0x506e0d['diffData'][_0x26eaf0][_0x234b('0xde')]||{});return _0x5c544a;}['_removeRevisionMarkers'](_0x44112e){return(_0x44112e=_0x44112e[_0x234b('0xaf')](_0x9a799=>!_0x9a799[_0x234b('0x2')]||'revision-start'!==_0x9a799[_0x234b('0x2')]&&_0x234b('0x70')!==_0x9a799[_0x234b('0x2')]))['forEach'](_0x479954=>{_0x234b('0xc3')!=typeof _0x479954&&(_0x479954['children']=this[_0x234b('0x71')](_0x479954['children']),_0x479954[_0x234b('0xc5')]=_0x479954[_0x234b('0xc5')][_0x234b('0xaf')](_0x2f8867=>!_0x2f8867[0x0][_0x234b('0x109')](_0x234b('0xa0'))));}),_0x44112e;}async[_0x234b('0xeb')](_0x24e4c1,_0x568d39,_0x1e4855=!0x1){if(!this[_0x234b('0xc')])return;const _0x27d9be=this[_0x234b('0xa9')],_0x4c73e8=this[_0x234b('0x3e')],_0x13fd60=_0x234b('0xc3')==typeof _0x24e4c1?_0x4c73e8[_0x234b('0xab')](_0x24e4c1):_0x24e4c1,_0xf4576f=_0x234b('0xc3')==typeof _0x568d39?_0x4c73e8[_0x234b('0xab')](_0x568d39):_0x568d39,_0x51ae97=_0x13fd60['id'],_0x54d2d3=_0xf4576f?_0xf4576f['id']:null;if(!_0x1e4855&&this[_0x234b('0xa9')]&&this[_0x234b('0xa9')]['newRevisionId']===_0x51ae97&&this[_0x234b('0xa9')][_0x234b('0x61')]===_0x54d2d3)return Promise['resolve']();this['isReady']=!0x1,this[_0x234b('0x6d')]=null,this[_0x234b('0x101')]=null,this['diff']=new _0x2e9d2b(_0x51ae97,_0x54d2d3);const _0x51cc22=this[_0x234b('0xf8')](_0x13fd60,_0xf4576f,!0x0)[_0x234b('0xdf')](_0x3f8ad4=>this['loadRevisionData'](_0x3f8ad4));return _0x51cc22['push'](new Promise(_0x4146a5=>{setTimeout(_0x4146a5,0x14);})),Promise[_0x234b('0x81')](_0x51cc22)['then'](()=>{if(!this[_0x234b('0xc')])return;this[_0x234b('0xf7')]();const _0x5ac68e=this[_0x234b('0xd0')](_0x51ae97,_0x54d2d3);for(const _0x1de02c of _0x5ac68e[_0x234b('0xb5')])this[_0x234b('0x28')][_0x234b('0xfe')](_0x1de02c['id'],_0x1de02c);this['editor'][_0x234b('0x111')][_0x234b('0x6b')]({'isUndoable':!0x1},_0x52c274=>{for(const _0x1451f8 of this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]())_0x52c274['detachRoot'](_0x1451f8);for(const _0x4ebe66 of Object[_0x234b('0x119')](_0x5ac68e['model'])){const _0x1437ed=_0x52c274['addRoot'](_0x4ebe66);for(const _0x4b50f6 of Object['keys'](_0x5ac68e[_0x234b('0xc5')][_0x4ebe66]))_0x52c274['setAttribute'](_0x4b50f6,_0x5ac68e[_0x234b('0xc5')][_0x4ebe66][_0x4b50f6],_0x1437ed);_0x52c274['insert'](_0x5ac68e[_0x234b('0x111')][_0x4ebe66],_0x1437ed,0x0);}}),this[_0x234b('0xa9')][_0x234b('0xcf')](this[_0x234b('0x4e')](_0x5ac68e[_0x234b('0xb5')])),this[_0x234b('0x6e')]=!0x0;})[_0x234b('0x9c')](_0x102280=>{console[_0x234b('0xd')](_0x102280),this[_0x234b('0xf7')](),_0x27d9be&&(this['diff']=_0x27d9be),this[_0x234b('0x6e')]=!0x0;});}['addRevisionData'](_0x346ece,_0x277c6c){const _0x2a0183=this[_0x234b('0x3e')][_0x234b('0x39')](_0x346ece);return _0x2a0183['on'](_0x234b('0x116'),(_0x407534,_0x3b1492,_0x14b73d)=>_0x277c6c(_0x3b1492,_0x14b73d,_0x2a0183)),this[_0x234b('0x3e')][_0x234b('0x93')](_0x2a0183),_0x2a0183;}[_0x234b('0xa1')](_0x2458a1){if(!_0x2458a1||_0x2458a1['diffData'])return Promise['resolve']();{const _0x221b07=this[_0x234b('0x2a')][_0x234b('0x73')][_0x234b('0x26')]('collaboration.channelId');return this['adapter'][_0x234b('0xab')]({'channelId':_0x221b07,'revisionId':_0x2458a1['id']})[_0x234b('0x50')](_0x59f23b=>{_0x2458a1[_0x234b('0x116')]({'diffData':_0x59f23b['diffData']},!0x0);});}}[_0x234b('0xf7')](){this[_0x234b('0x101')]=null,this['_cleanMarkers'](),this[_0x234b('0xc2')]&&this[_0x234b('0xc2')][_0x234b('0xed')](),this[_0x234b('0xc2')]=null,this['_changeIdToChange'][_0x234b('0xae')](),this[_0x234b('0x2a')]['model'][_0x234b('0x6b')]({'isUndoable':!0x1},_0x466a37=>{for(const _0x4b26d8 of this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]())_0x466a37[_0x234b('0xe8')](_0x4b26d8);});}[_0x234b('0x4e')](_0x1fe1ce){const _0x5b2159=[],_0x5b6cc6=new Map();for(const _0xbf1e2b of this['editor'][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]()){const _0x14eaac=this['editor'][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x91')](_0xbf1e2b);if(!_0x14eaac)continue;const _0x3d2a33=_0x14eaac[_0x234b('0xb7')]()['item'](0x0);_0x3d2a33&&(_0x5b2159[_0x234b('0x10c')](_0xbf1e2b),_0x5b6cc6['set'](_0xbf1e2b,_0x3d2a33));}return _0x5b2159[_0x234b('0x51')]((_0x24cc86,_0x26ede5)=>{const _0x34cadd=_0x5b6cc6[_0x234b('0x26')](_0x24cc86),_0xe8abe2=_0x5b6cc6[_0x234b('0x26')](_0x26ede5);return _0x34cadd['y']-_0xe8abe2['y']||_0x34cadd['x']-_0xe8abe2['x'];}),(_0x1fe1ce=_0x1fe1ce['filter'](_0x2c96c9=>_0x5b2159['includes'](_0x2c96c9[_0x234b('0x4c')])))[_0x234b('0x51')]((_0x3b18d0,_0xd92641)=>_0x5b2159[_0x234b('0x75')](_0x3b18d0[_0x234b('0x4c')])-_0x5b2159['indexOf'](_0xd92641[_0x234b('0x4c')])),_0x1fe1ce;}['_makeTape'](_0x5f9226){const _0x533db1=Array['from'](_0x5f9226[_0x234b('0xf6')])[_0x234b('0xaf')](([_0x5ea261,_0x133e2c])=>_0x5ea261[_0x234b('0x109')]('revision:')&&!_0x133e2c[_0x234b('0x102')]),_0x51b135=Array[_0x234b('0x43')](this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xb2')](_0x5f9226)[_0x234b('0x1c')]({'singleCharacters':!0x0}));if(0x0!=_0x533db1[_0x234b('0xff')])for(const _0x32d7c7 of _0x51b135){const [_0x7f129a,_0x5b6c17]=_0x533db1[0x0],[,_0x339ea8,_0x425fb9]=_0x7f129a[_0x234b('0x4a')](':');if(_0x5b6c17[_0x234b('0x15')][_0x234b('0x74')](_0x32d7c7['nextPosition'])&&_0x533db1[_0x234b('0x8b')](),(_0x32d7c7[_0x234b('0x55')]['isEqual'](_0x5b6c17[_0x234b('0xce')])||_0x32d7c7[_0x234b('0x55')][_0x234b('0x63')](_0x5b6c17[_0x234b('0xce')]))&&(_0x234b('0x30')==_0x339ea8?_0x32d7c7[_0x234b('0x2c')]={'userId':_0x425fb9}:'deletion'==_0x339ea8&&(_0x32d7c7[_0x234b('0x9d')]={'userId':_0x425fb9})),0x0==_0x533db1[_0x234b('0xff')])break;}return _0x51b135;}[_0x234b('0x31')](_0x189763){const _0x4789fc=new Map();for(let _0x4b0aad=0x0;_0x4b0aad<_0x189763[_0x234b('0xff')];_0x4b0aad++)_0x234b('0x98')===_0x189763[_0x4b0aad][_0x234b('0xfb')]?(_0x189763[_0x4b0aad][_0x234b('0xd7')][_0x234b('0x94')]=_0x4b0aad,_0x189763[_0x4b0aad]['item'][_0x234b('0xf2')]=_0x4b0aad):('elementStart'===_0x189763[_0x4b0aad][_0x234b('0xfb')]?_0x189763[_0x4b0aad][_0x234b('0xd7')][_0x234b('0x94')]=_0x4b0aad:_0x234b('0x58')===_0x189763[_0x4b0aad][_0x234b('0xfb')]&&(_0x189763[_0x4b0aad]['item']['endIndex']=_0x4b0aad),_0x4789fc[_0x234b('0xfe')](_0x189763[_0x4b0aad]['id'],_0x4b0aad));for(const _0x4ec4ae of _0x4789fc['values']())_0x234b('0xbe')===_0x189763[_0x4ec4ae][_0x234b('0xfb')]?_0x189763[_0x4ec4ae][_0x234b('0xd7')][_0x234b('0xf2')]=_0x4789fc[_0x234b('0x26')](_0x189763[_0x4ec4ae][_0x234b('0xba')]):_0x234b('0x58')===_0x189763[_0x4ec4ae][_0x234b('0xfb')]&&(_0x189763[_0x4ec4ae][_0x234b('0xd7')][_0x234b('0x94')]=_0x4789fc[_0x234b('0x26')](_0x189763[_0x4ec4ae]['pairId']));}[_0x234b('0x7')](_0x32207c){for(let _0x47c24c=0x0;_0x47c24c<_0x32207c[_0x234b('0xff')];_0x47c24c++){if(_0x234b('0xbe')===_0x32207c[_0x47c24c][_0x234b('0xfb')])_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')]=_0x47c24c;else{if(_0x234b('0x58')===_0x32207c[_0x47c24c]['type']){_0x32207c[_0x47c24c][_0x234b('0xd7')]['endIndex']=_0x47c24c;const _0x28ad84=_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')];_0x32207c[_0x28ad84][_0x234b('0xba')]=_0x32207c[_0x47c24c]['id'],_0x32207c[_0x47c24c][_0x234b('0xba')]=_0x32207c[_0x28ad84]['id'];}else _0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')]=_0x47c24c,_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0xf2')]=_0x47c24c,_0x32207c[_0x47c24c][_0x234b('0xba')]=null;}_0x32207c[_0x47c24c][_0x234b('0xe4')]||(_0x32207c[_0x47c24c][_0x234b('0xe4')]=[],_0x32207c[_0x47c24c][_0x234b('0xc7')]=[]);}}[_0x234b('0x115')](_0x562f78,_0x2e7e73){const _0x572d10=_0x562f78[_0x234b('0xaf')](_0x54fa4a=>!_0x54fa4a['isAdded']);for(let _0x12f0a3=0x0;_0x12f0a3<_0x2e7e73[_0x234b('0xff')];_0x12f0a3++)_0x2e7e73[_0x12f0a3][_0x234b('0x2c')]&&(_0x572d10[_0x12f0a3][_0x234b('0x2c')]=_0x2e7e73[_0x12f0a3]['isAdded']);}['_makeModelFromViewString'](_0x21e7ba){const _0x340d94=JSON['parse'](_0x21e7ba),_0x623bca=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],_0xd7aecd=new _0x561f79(_0x623bca,_0x340d94[_0x234b('0xdf')](_0x1f5e98=>this[_0x234b('0xd3')](_0x1f5e98)));return this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0x90')](_0xd7aecd);}['_getViewObj'](_0x170f25){const _0xaaf21e=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')];if('string'==typeof _0x170f25)return new _0x524404(_0xaaf21e,_0x170f25);{const _0x1bb17a=_0x170f25[_0x234b('0xf')][_0x234b('0xdf')](_0x186c15=>this[_0x234b('0xd3')](_0x186c15));return new(tt[_0x170f25[(_0x234b('0xfb'))]]||_0x68b40a)(_0xaaf21e,_0x170f25[_0x234b('0x2')],_0x170f25[_0x234b('0xc5')],_0x1bb17a);}}['_getDiff'](_0x3754b7,_0x363284=null){const _0x5c7ced=this['repository'][_0x234b('0xab')](_0x3754b7),_0x1c8bad=_0x363284?this[_0x234b('0x3e')][_0x234b('0xab')](_0x363284):null,_0x4e409f=this[_0x234b('0xf8')](_0x5c7ced,_0x1c8bad),_0x2362c5=_0x4e409f[_0x4e409f[_0x234b('0xff')]-0x1],_0xe3b5a2=new Map(),_0x4bdd4f={'model':{},'attributes':{},'changes':[]},_0x46a910=new Set(),_0x588155=new Map();for(let _0x2cd68b=_0x4e409f['length']-0x1;_0x2cd68b>=0x0;_0x2cd68b--){const _0x23bb6b=_0x4e409f[_0x2cd68b];for(const _0x3f63a8 of Object['keys'](_0x23bb6b[_0x234b('0x21')]))if(_0x23bb6b['diffData'][_0x3f63a8]['attachChange']){const _0x40461e=_0x23bb6b[_0x234b('0x21')][_0x3f63a8][_0x234b('0x25')];_0x40461e[_0x234b('0x59')]?(_0x46a910[_0x234b('0xb8')](_0x3f63a8),_0x588155[_0x234b('0x33')](_0x3f63a8)&&_0x588155[_0x234b('0x26')](_0x3f63a8)['userId']==_0x40461e[_0x234b('0xa6')]?_0x588155[_0x234b('0x10f')](_0x3f63a8):_0x588155['set'](_0x3f63a8,_0x40461e)):_0x588155['has'](_0x3f63a8)?(_0x46a910[_0x234b('0x10f')](_0x3f63a8),_0x588155[_0x234b('0x10f')](_0x3f63a8)):(_0x46a910['add'](_0x3f63a8),_0x588155[_0x234b('0xfe')](_0x3f63a8,_0x40461e));}else _0x46a910[_0x234b('0xb8')](_0x3f63a8);}for(const _0x2a4ee9 of _0x46a910){const _0xe4da4f=_0x588155[_0x234b('0x33')](_0x2a4ee9)&&!_0x588155[_0x234b('0x26')](_0x2a4ee9)[_0x234b('0x59')];let _0x5093a7=_0xe4da4f?_0x4e409f[_0x234b('0xff')]-0x1:0x0;const _0x35d14a=_0xe4da4f?-0x1:0x1;for(;_0x4e409f[_0x5093a7];){const _0x32880c=_0x4e409f[_0x5093a7];if(_0x32880c['diffData'][_0x2a4ee9]){const _0x31ea1f=_0xe4da4f?_0x32880c[_0x234b('0x21')][_0x2a4ee9]['attributesBefore']:_0x32880c[_0x234b('0x21')][_0x2a4ee9]['attributesAfter'];_0x4bdd4f['attributes'][_0x2a4ee9]=_0x31ea1f?_0x28b9ba(_0x31ea1f):{};break;}_0x5093a7+=_0x35d14a;}}for(const _0x2bc356 of _0x4e409f){_0x2bc356[_0x234b('0x111')]={};for(const _0x3e359a of _0x2bc356[_0x234b('0xe1')])_0xe3b5a2['set'](_0x3e359a['id'],_0x3e359a);for(const _0x1c55e9 of _0x46a910){const _0x21db5d=_0x2bc356[_0x234b('0x21')][_0x1c55e9]?_0x2bc356['diffData'][_0x1c55e9][_0x234b('0x8d')]:'[]',_0x426650=_0x2bc356[_0x234b('0x21')][_0x1c55e9]?_0x2bc356[_0x234b('0x21')][_0x1c55e9]['deletions']:'[]';_0x2bc356[_0x234b('0x111')][_0x1c55e9]={'insertions':this[_0x234b('0x8a')](_0x21db5d),'deletions':this[_0x234b('0x8a')](_0x426650)};}}for(const _0x258bf2 of _0x46a910){let _0x34b2b2=null,_0x5e0a3d=0x0;const _0x522ded=new Map(Array[_0x234b('0x43')](_0x5c7ced[_0x234b('0x111')][_0x258bf2][_0x234b('0x8d')][_0x234b('0xf6')])['filter'](([_0x76eaec])=>!_0x76eaec[_0x234b('0x109')](_0x234b('0xcb'))));let _0x3dabad=0x0;for(const _0x4b49da of _0x4e409f){const _0x69bafd=this[_0x234b('0xbc')](_0x4b49da['model'][_0x258bf2][_0x234b('0x8d')]);_0x4b49da==_0x5c7ced?(_0x34b2b2=_0x69bafd,_0x5e0a3d=_0x34b2b2[_0x234b('0xff')],_0x34b2b2['forEach'](_0x5519df=>{_0x5519df['id']=_0x3dabad++;}),this[_0x234b('0x7')](_0x34b2b2)):this['_markInsertions'](_0x34b2b2,_0x69bafd);const _0x551a2b=_0x34b2b2[_0x234b('0xaf')](_0x46133d=>!_0x46133d[_0x234b('0x2c')])[_0x234b('0xdf')](_0x42caf0=>_0x42caf0['id']);let _0x3d5577=0x0;const _0x933c40=this['_makeTape'](_0x4b49da[_0x234b('0x111')][_0x258bf2][_0x234b('0x78')]);_0x933c40[_0x234b('0x88')](_0xc58518=>{_0xc58518[_0x234b('0x9d')]?_0xc58518['id']=_0x5e0a3d++:_0xc58518['id']=_0x551a2b[_0x3d5577++];}),this['_processTape'](_0x933c40),this[_0x234b('0x67')](_0x34b2b2,_0x234b('0x2c')),this[_0x234b('0x67')](_0x933c40,'isRemoved'),_0x4b49da==_0x5c7ced&&this[_0x234b('0xe5')](_0x34b2b2,_0x522ded),_0x34b2b2=this[_0x234b('0x82')](_0x34b2b2,_0x933c40),this[_0x234b('0x31')](_0x34b2b2),this[_0x234b('0x67')](_0x34b2b2,_0x234b('0x9d'));}_0x34b2b2=_0x34b2b2[_0x234b('0xaf')](_0x9d902a=>!(_0x9d902a[_0x234b('0x2c')]&&_0x9d902a[_0x234b('0x9d')]));const _0xaf4397=new Map(_0x2362c5['model'][_0x258bf2][_0x234b('0x78')][_0x234b('0xf6')]),_0x44ab19=new Set(_0x522ded[_0x234b('0x119')]());for(const _0x4d059e of _0xaf4397[_0x234b('0x119')]())_0x44ab19[_0x234b('0x10f')](_0x4d059e);this['_markSuggestions'](_0x34b2b2,_0x44ab19),this['_fixObsoleteTags'](_0x34b2b2),_0x34b2b2=this[_0x234b('0x72')](_0x34b2b2),_0x34b2b2=this['_markMismatchedRemovedTags'](_0x34b2b2),_0x34b2b2=this[_0x234b('0x3d')](_0x34b2b2);const {root:_0x34f1b8,changes:_0x181900}=this[_0x234b('0xc8')](_0x34b2b2,_0xe3b5a2,_0x258bf2);_0x4bdd4f[_0x234b('0x111')][_0x258bf2]=_0x34f1b8;const _0x33b5d5=_0x588155[_0x234b('0x26')](_0x258bf2);if(_0x33b5d5){const _0x270677=_0xe3b5a2['get'](_0x33b5d5['userId']),_0x145175=new _0x5656c0({'author':_0x270677,'type':_0x33b5d5['isAttached']?_0x234b('0xb8'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x258bf2});_0x181900[_0x234b('0xec')](_0x145175),_0x4bdd4f[_0x234b('0xc5')][_0x258bf2][_0x234b('0x36')]=_0x145175['id'];}_0x4bdd4f[_0x234b('0xb5')]=_0x4bdd4f['changes'][_0x234b('0x14')](_0x181900);}return _0x4bdd4f;}['_markMarkers'](_0x319c28,_0x29ecc9){for(let _0x574438=0x0;_0x574438<_0x319c28[_0x234b('0xff')];_0x574438++)for(const [_0x93be27,_0x5f5a66]of _0x29ecc9)_0x5f5a66[_0x234b('0xce')][_0x234b('0x74')](_0x319c28[_0x574438][_0x234b('0x55')])&&_0x319c28[_0x574438][_0x234b('0xe4')][_0x234b('0x10c')](_0x93be27),_0x5f5a66[_0x234b('0x15')][_0x234b('0x74')](_0x319c28[_0x574438][_0x234b('0xbd')])&&_0x319c28[_0x574438][_0x234b('0xc7')]['push'](_0x93be27);}[_0x234b('0x82')](_0x12e97d,_0x4c4d82){let _0x593c3a=[],_0x42845f=0x0,_0x3613e4=0x0;for(;_0x42845f<_0x12e97d[_0x234b('0xff')]||_0x3613e4<_0x4c4d82[_0x234b('0xff')];){const _0xefc53f=_0x12e97d[_0x42845f]||{},_0x1b2d16=_0x4c4d82[_0x3613e4]||{};if(_0xefc53f['id']==_0x1b2d16['id'])_0x42845f++,_0x3613e4++,_0x593c3a[_0x234b('0x10c')](_0xefc53f);else{if(_0x1b2d16[_0x234b('0x9d')]&&_0xefc53f['isAdded']){const {commonTape:_0x58de7f,iEnd:_0xad94ac,jEnd:_0x3511f3}=this['_threeWayMerge'](_0x12e97d,_0x42845f,_0x4c4d82,_0x3613e4);_0x593c3a=_0x593c3a[_0x234b('0x14')](_0x58de7f),_0x42845f=_0xad94ac,_0x3613e4=_0x3511f3;}else _0x1b2d16[_0x234b('0x9d')]?(_0x3613e4++,_0x593c3a[_0x234b('0x10c')](_0x1b2d16)):(_0x42845f++,_0x593c3a[_0x234b('0x10c')](_0xefc53f));}}return _0x593c3a;}[_0x234b('0x113')](_0xc2ee8e,_0x3de6d9){const _0x1a4c95=[];for(let _0x38b8c6=0x0;_0x38b8c6<_0xc2ee8e['length'];_0x38b8c6++){for(let _0x3c7d38=0x0;_0x3c7d38<_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')]['length'];_0x3c7d38++){const _0x2ffedc=_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')][_0x3c7d38];if(!_0x3de6d9['has'](_0x2ffedc))continue;const {group:_0x5ae783,type:_0x43b1c4,authorId:_0x53f03b}=_0x993aa7(_0x2ffedc);'revision-suggestion'!=_0x5ae783||_0x234b('0x30')!=_0x43b1c4&&_0x234b('0x3f')!=_0x43b1c4||(_0x1a4c95[_0x234b('0xec')]({'type':_0x43b1c4,'name':_0x2ffedc,'userId':_0x53f03b}),_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')]['splice'](_0x3c7d38,0x1),_0x3c7d38--);}_0x590b03(_0xc2ee8e[_0x38b8c6]);for(let _0x1d613a=0x0;_0x1d613a<_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')]['length'];_0x1d613a++){const _0x1f3035=_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')][_0x1d613a];if(!_0x3de6d9[_0x234b('0x33')](_0x1f3035))continue;const {group:_0x17f723,type:_0x546bee}=_0x993aa7(_0x1f3035);if(_0x234b('0x89')!=_0x17f723||'insertion'!=_0x546bee&&_0x234b('0x3f')!=_0x546bee)continue;_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')]['splice'](_0x1d613a,0x1),_0x1d613a--;const _0x1eca38=_0x1a4c95[_0x234b('0x40')](_0x177674=>_0x177674[_0x234b('0x2')]==_0x1f3035);_0x1eca38>-0x1&&_0x1a4c95['splice'](_0x1eca38,0x1);}}function _0x993aa7(_0x53ea60){const _0x3da905=_0x53ea60[_0x234b('0x4a')](':');return{'group':_0x3da905[0x0],'type':_0x3da905[0x1],'subType':_0x3da905['length']>=0x5?_0x3da905[0x2]:null,'id':_0x3da905[_0x234b('0xff')]<0x5?_0x3da905[0x2]:_0x3da905[0x3],'authorId':_0x3da905[_0x234b('0xff')]<0x5?_0x3da905[0x3]:_0x3da905[0x4],'markerCount':0x6==_0x3da905[_0x234b('0xff')]?_0x3da905[0x5]:null};}function _0x590b03(_0x18856e){for(let _0x2afe1e=0x0;_0x2afe1e<_0x1a4c95[_0x234b('0xff')];_0x2afe1e++){if(_0x18856e[_0x234b('0x2c')]&&_0x234b('0x30')==_0x1a4c95[_0x2afe1e][_0x234b('0xfb')])return _0x18856e[_0x234b('0x7d')]=_0x1a4c95[_0x2afe1e],void delete _0x18856e[_0x234b('0x2c')];if(!_0x18856e['isAdded']&&!_0x18856e['isRemoved']&&_0x234b('0x3f')==_0x1a4c95[_0x2afe1e][_0x234b('0xfb')])return void(_0x18856e['isRemoveSuggestion']=_0x1a4c95[_0x2afe1e]);}}}[_0x234b('0x67')](_0x3206f7,_0x52cd1d){let _0x4dc33e=0x0,_0x433ddb=!0x1;const _0x200b89=new Map();for(const _0x320d14 of _0x3206f7)_0x320d14[_0x52cd1d]?_0x433ddb&&(_0x4dc33e++,_0x433ddb=!0x1):(_0x4dc33e++,_0x433ddb=!0x0),_0x200b89['set'](_0x320d14['id'],_0x4dc33e);for(let _0x283491=0x0;_0x283491<_0x3206f7[_0x234b('0xff')];_0x283491++){if(_0x234b('0x9d')==_0x52cd1d&&_0x3206f7[_0x283491][_0x234b('0x2c')]||'isAdded'==_0x52cd1d&&_0x3206f7[_0x283491][_0x234b('0x9d')])continue;if('text'==_0x3206f7[_0x283491][_0x234b('0xfb')]){_0x3206f7[_0x283491][_0x234b('0x11c')]=0x0;continue;}const _0x3446e3=_0x200b89[_0x234b('0x26')](_0x3206f7[_0x283491][_0x234b('0xba')]),_0x562670=_0x200b89[_0x234b('0x26')](_0x3206f7[_0x283491]['id']);_0x3206f7[_0x283491]['distance']=_0x3446e3-_0x562670;}}[_0x234b('0xf8')](_0x4f46cd,_0x5a94f6,_0x4dfc69=!0x1){const _0x59ddd8=[];let _0x47508d=this[_0x234b('0x3e')][_0x234b('0x100')](_0x4f46cd),_0x2c610f=this[_0x234b('0x3e')][_0x234b('0x100')](_0x5a94f6);for(-0x1==_0x2c610f&&(_0x2c610f=this[_0x234b('0x3e')]['_revisions'][_0x234b('0xff')],_0x4dfc69=!0x1);_0x47508d<_0x2c610f;)_0x59ddd8[_0x234b('0x10c')](this[_0x234b('0x3e')][_0x234b('0xab')](_0x47508d)),_0x47508d++;return _0x4dfc69&&_0x59ddd8[_0x234b('0x10c')](this[_0x234b('0x3e')][_0x234b('0xab')](_0x47508d)),_0x59ddd8;}[_0x234b('0xdd')](_0xdacf50,_0x519c7b,_0x1f51d0,_0x356b7d){const _0x193390=this[_0x234b('0x2a')]['model'][_0x234b('0xfa')];let _0x2903c7=_0x519c7b;for(;_0xdacf50[_0x2903c7]&&_0xdacf50[_0x2903c7][_0x234b('0x2c')];)_0x2903c7++;let _0x3eb93d=_0x356b7d;for(;_0x1f51d0[_0x3eb93d]&&_0x1f51d0[_0x3eb93d][_0x234b('0x9d')];)_0x3eb93d++;_0x21d794(_0xdacf50,_0x519c7b,_0x2903c7),_0x21d794(_0x1f51d0,_0x356b7d,_0x3eb93d);const _0x3332c6=_0x1f51d0[_0x234b('0xb1')](_0x356b7d,_0x3eb93d)['concat'](_0xdacf50[_0x234b('0xb1')](_0x519c7b,_0x2903c7));return _0x3332c6[_0x234b('0x51')]((_0x359bce,_0x426d52)=>_0x359bce[_0x234b('0x60')]!=_0x426d52[_0x234b('0x60')]?_0x359bce['side']-_0x426d52['side']:_0x359bce['level']!=_0x426d52['level']?_0x359bce[_0x234b('0x110')]-_0x426d52['level']:_0x359bce['distance']!=_0x426d52[_0x234b('0x11c')]?_0x426d52[_0x234b('0x11c')]-_0x359bce[_0x234b('0x11c')]:!!_0x359bce[_0x234b('0x2c')]!=!!_0x426d52[_0x234b('0x2c')]?-0x1==_0x359bce[_0x234b('0x60')]||0x0==_0x359bce[_0x234b('0x60')]?_0x359bce['isAdded']?-0x1:0x1:_0x359bce[_0x234b('0x2c')]?0x1:-0x1:_0x359bce[_0x234b('0x1e')]-_0x426d52[_0x234b('0x1e')]),{'commonTape':_0x3332c6,'iEnd':_0x2903c7,'jEnd':_0x3eb93d};function _0x21d794(_0xe7c91e,_0x57bc84,_0x3ef6e7){let _0x568537=-0x1,_0x2e3b6a=Number[_0x234b('0x18')],_0x520cd1=!0x0;for(let _0xf8dc13=_0x57bc84;_0xf8dc13<_0x3ef6e7;_0xf8dc13++)if(_0x193390[_0x234b('0x6c')](_0xe7c91e[_0xf8dc13][_0x234b('0xd7')])||(_0x520cd1=!0x1),_0xe7c91e[_0xf8dc13][_0x234b('0xd7')][_0x234b('0x94')]<_0x57bc84&&(_0x568537=_0xf8dc13),_0xe7c91e[_0xf8dc13][_0x234b('0xd7')]['endIndex']>=_0x3ef6e7){_0x2e3b6a=_0xf8dc13;break;}_0x520cd1&&(_0x568537=_0x3ef6e7-0x1);for(let _0x1b5b51=_0x57bc84;_0x1b5b51<_0x3ef6e7;_0x1b5b51++)_0xe7c91e[_0x1b5b51][_0x234b('0x60')]=_0x1b5b51<=_0x568537?-0x1:_0x1b5b51<_0x2e3b6a?0x0:0x1,_0xe7c91e[_0x1b5b51][_0x234b('0x1e')]=_0x1b5b51;let _0x224ea5=0x0;for(let _0x2bfe64=_0x57bc84;_0x2bfe64<=_0x568537;_0x2bfe64++)0x0==_0xe7c91e[_0x2bfe64][_0x234b('0x11c')]?_0xe7c91e[_0x2bfe64]['level']=_0x224ea5:(_0x224ea5++,_0xe7c91e[_0x2bfe64][_0x234b('0x110')]=_0x224ea5,_0x224ea5++);for(let _0x1695ff=_0x57bc84;_0x1695ff<_0x3ef6e7;_0x1695ff++)0x0==_0xe7c91e[_0x1695ff][_0x234b('0x60')]&&(_0xe7c91e[_0x1695ff][_0x234b('0x110')]=_0x224ea5);_0x224ea5=0x0;for(let _0x34c5fb=_0x3ef6e7-0x1;_0x34c5fb>=_0x2e3b6a;_0x34c5fb--)0x0==_0xe7c91e[_0x34c5fb][_0x234b('0x11c')]?_0xe7c91e[_0x34c5fb][_0x234b('0x110')]=_0x224ea5:(_0x224ea5--,_0xe7c91e[_0x34c5fb][_0x234b('0x110')]=_0x224ea5,_0x224ea5--);}}[_0x234b('0xf4')](_0xff4e62){const _0x359697=new Map(),_0x136e2f=this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xfa')];for(let _0x5ac80e=0x1;_0x5ac80e<_0xff4e62[_0x234b('0xff')];_0x5ac80e++){let _0x5e4586,_0x3db19f,_0x23880e;const _0x499ebd=_0xff4e62[_0x5ac80e],_0x2ea360=_0xff4e62[_0x5ac80e-0x1];if(_0x234b('0x98')==_0x499ebd['type'])continue;if(_0x499ebd[_0x234b('0xfb')]!=_0x2ea360[_0x234b('0xfb')])continue;if(!_0x136e2f['isBlock'](_0x2ea360['item'])||_0x136e2f[_0x234b('0x44')](_0x2ea360[_0x234b('0xd7')]))continue;if(!_0x136e2f[_0x234b('0x5c')](_0x499ebd[_0x234b('0xd7')])||_0x136e2f['isLimit'](_0x499ebd[_0x234b('0xd7')]))continue;if((_0xff4e62[_0x5ac80e][_0x234b('0x2c')]||_0xff4e62[_0x5ac80e]['isAddSuggestion'])&&_0xff4e62[_0x5ac80e-0x1][_0x234b('0x9d')])_0x5e4586=_0xff4e62[_0x5ac80e],_0x3db19f=_0xff4e62[_0x5ac80e-0x1],_0x23880e=_0x5ac80e-0x1;else{if(!_0xff4e62[_0x5ac80e][_0x234b('0x9d')]||!_0xff4e62[_0x5ac80e-0x1][_0x234b('0x2c')]&&!_0xff4e62[_0x5ac80e-0x1]['isAddSuggestion'])continue;_0x5e4586=_0xff4e62[_0x5ac80e-0x1],_0x3db19f=_0xff4e62[_0x5ac80e],_0x23880e=_0x5ac80e;}const _0x3d1476=_0x5e4586[_0x234b('0x110')]==_0x3db19f[_0x234b('0x110')],_0xf5f2d0=Math['abs'](_0x5e4586[_0x234b('0x110')])<Math[_0x234b('0x3c')](_0x3db19f[_0x234b('0x110')])&&0x0==_0x3db19f[_0x234b('0x11c')];(_0x3d1476||_0xf5f2d0)&&(_0x359697[_0x234b('0xfe')](_0x3db19f['id'],_0x5e4586['id']),_0xff4e62[_0x234b('0x12')](_0x23880e,0x1),_0x5ac80e--,_0x5e4586['isAdded']=!0x1);}for(let _0x4cd791=0x0;_0x4cd791<_0xff4e62[_0x234b('0xff')];_0x4cd791++)_0x359697[_0x234b('0x33')](_0xff4e62[_0x4cd791][_0x234b('0xba')])&&(_0xff4e62[_0x4cd791]['pairId']=_0x359697[_0x234b('0x26')](_0xff4e62[_0x4cd791][_0x234b('0xba')]));}['_removeMissingPairs'](_0x4cedea){const _0x330080=new Set(_0x4cedea[_0x234b('0xdf')](_0x1917d9=>_0x1917d9['id']));for(let _0x3bf2c2=0x0;_0x3bf2c2<_0x4cedea['length'];_0x3bf2c2++)_0x330080[_0x234b('0x33')](_0x4cedea[_0x3bf2c2][_0x234b('0xba')])||0x0==_0x4cedea[_0x3bf2c2][_0x234b('0x11c')]||(_0x4cedea[_0x3bf2c2][_0x234b('0x118')]=!0x0);return _0x4cedea[_0x234b('0xaf')](_0x49a1ce=>!_0x49a1ce[_0x234b('0x118')]);}[_0x234b('0x62')](_0x1a2fcf){const _0xb54ae7=new Set();for(let _0x8397a9=0x0;_0x8397a9<_0x1a2fcf[_0x234b('0xff')];_0x8397a9++){if(_0xb54ae7[_0x234b('0x33')](_0x1a2fcf[_0x8397a9]['id'])&&_0x1a2fcf[_0x8397a9]['isRemoved']&&(_0x1a2fcf[_0x8397a9][_0x234b('0x118')]=!0x0),_0x1a2fcf[_0x8397a9][_0x234b('0x118')])continue;if(0x0==_0x1a2fcf[_0x8397a9][_0x234b('0x11c')])continue;if(_0x234b('0xbe')!=_0x1a2fcf[_0x8397a9][_0x234b('0xfb')])continue;if(null==_0x1a2fcf[_0x8397a9][_0x234b('0xba')])continue;let _0x1af4da=_0x8397a9+0x1,_0xb68286=0x0;for(;_0x1a2fcf[_0x1af4da]['id']!=_0x1a2fcf[_0x8397a9][_0x234b('0xba')];)_0x234b('0xbe')==_0x1a2fcf[_0x1af4da]['type']?_0xb68286++:_0x234b('0x58')==_0x1a2fcf[_0x1af4da][_0x234b('0xfb')]&&_0xb68286--,_0x1af4da++;if(0x0!=_0xb68286){if(_0x1a2fcf[_0x8397a9][_0x234b('0x9d')])_0x1a2fcf[_0x8397a9][_0x234b('0x118')]=!0x0;else for(;_0x1af4da!=_0x8397a9;)_0x1a2fcf[_0x1af4da][_0x234b('0x9d')]&&0x0!=_0x1a2fcf[_0x1af4da][_0x234b('0x11c')]&&(_0x1a2fcf[_0x1af4da][_0x234b('0x118')]=!0x0,_0xb54ae7[_0x234b('0xb8')](_0x1a2fcf[_0x1af4da]['pairId'])),_0x1af4da--;}}return _0x1a2fcf[_0x234b('0xaf')](_0x1a3798=>!_0x1a3798[_0x234b('0x118')]);}[_0x234b('0x3d')](_0x1a4342){const _0x352e44=this['editor']['model'][_0x234b('0xfa')];for(let _0xb30fc8=0x0;_0xb30fc8<_0x1a4342[_0x234b('0xff')];_0xb30fc8++){if(!(_0x1a4342[_0xb30fc8]['isAdded']||_0x1a4342[_0xb30fc8]['isAddSuggestion']||_0x1a4342[_0xb30fc8][_0x234b('0x9d')]||_0x1a4342[_0xb30fc8][_0x234b('0xc6')]))continue;if(0x0==_0x1a4342[_0xb30fc8][_0x234b('0x11c')])continue;const _0x2f42f4=_0x1a4342[_0xb30fc8][_0x234b('0xd7')];_0x352e44['isBlock'](_0x2f42f4)||_0x352e44['isLimit'](_0x2f42f4)||(_0x1a4342[_0xb30fc8][_0x234b('0x2c')]&&delete _0x1a4342[_0xb30fc8][_0x234b('0x2c')],_0x1a4342[_0xb30fc8][_0x234b('0x7d')]&&delete _0x1a4342[_0xb30fc8][_0x234b('0x7d')],_0x1a4342[_0xb30fc8]['isRemoveSuggestion']&&delete _0x1a4342[_0xb30fc8][_0x234b('0xc6')],_0x1a4342[_0xb30fc8][_0x234b('0x9d')]&&(_0x1a4342[_0xb30fc8]['isIncorrect']=!0x0));}return _0x1a4342[_0x234b('0xaf')](_0x1e13da=>!_0x1e13da[_0x234b('0x118')]);}[_0x234b('0xc8')](_0x29d353,_0xfe1aa2,_0x38a3de){const _0xe1301a=new _0x5611e1(),_0x5055c4=[],_0x4de747=new Map(),_0x327ae4=this[_0x234b('0x2a')]['model'],_0xce8471=_0x327ae4[_0x234b('0xfa')],_0x566703=[_0xe1301a],_0x884428={},_0x52d387={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x35a86d=null;const _0x46cc60=[0x0];for(let _0x4273ff=0x0;_0x4273ff<_0x29d353['length'];_0x4273ff++){let _0x10d688,_0xa63869;if(_0x234b('0xbe')===_0x29d353[_0x4273ff][_0x234b('0xfb')]){_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60);const _0x223f16=new _0x30e2cd(_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x2')],_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x64')]());_0x566703[0x0][_0x234b('0x46')](_0x223f16),_0x46cc60[_0x234b('0x10c')](0x0),_0x566703['unshift'](_0x223f16),_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d=null;}else{if(_0x234b('0x58')===_0x29d353[_0x4273ff][_0x234b('0xfb')])_0x566703[_0x234b('0x8b')](),_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x46cc60['pop'](),_0x46cc60[_0x46cc60[_0x234b('0xff')]-0x1]++,_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d=null;else{if(_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d&&_0x5b9029(_0x35a86d,_0x29d353[_0x4273ff][_0x234b('0xd7')]))_0x35a86d[_0x234b('0xf5')]+=_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0xb3')];else{const _0x144ca6=new _0x5bcfa1(_0x29d353[_0x4273ff][_0x234b('0xd7')]['data'],_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x64')]());_0x566703[0x0][_0x234b('0x46')](_0x144ca6),_0x35a86d=_0x144ca6;}_0x46cc60[_0x46cc60['length']-0x1]+=_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x8f')],_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60);}}for(const _0x509f20 of _0x29d353[_0x4273ff][_0x234b('0xe4')])_0x4de747[_0x234b('0xfe')](_0x509f20,{'start':_0x10d688,'end':null});_0x5bf409('isRemoveSuggestion',_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x7d'),_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x9d'),_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x2c'),_0x4273ff,_0x10d688,_0xa63869);for(const _0x17320c of _0x29d353[_0x4273ff][_0x234b('0xc7')]){_0x4de747[_0x234b('0x26')](_0x17320c)['end']=_0xa63869;}}for(const [_0x485ab6,_0x1c39ea]of _0x4de747){const _0x4fa36b=this[_0x234b('0x2a')]['model'][_0x234b('0xd6')](_0x1c39ea['start'],_0x1c39ea[_0x234b('0x15')]);_0xe1301a['markers'][_0x234b('0xfe')](_0x485ab6,_0x4fa36b);}return _0x5055c4[_0x234b('0x51')]((_0x4449c4,_0x7e66b6)=>{const _0x556bf5=_0xe1301a['markers'][_0x234b('0x26')](_0x234b('0xcb')+_0x4449c4['id']),_0x5237c8=_0xe1301a[_0x234b('0xf6')]['get']('revision:'+_0x7e66b6['id']);return _0x556bf5['start']['isBefore'](_0x5237c8[_0x234b('0xce')])?-0x1:_0x556bf5[_0x234b('0xce')][_0x234b('0x63')](_0x5237c8[_0x234b('0xce')])?0x1:_0x556bf5[_0x234b('0x15')][_0x234b('0x3a')](_0x5237c8[_0x234b('0x15')])?-0x1:_0x556bf5[_0x234b('0x15')][_0x234b('0x63')](_0x5237c8[_0x234b('0x15')])?0x1:_0x234b('0xb8')===_0x4449c4['type']?-0x1:0x1;}),{'root':_0xe1301a,'changes':_0x5055c4};function _0x5bf409(_0x4d304f,_0x463f7a,_0x3aab35,_0x1fc1b1){const _0x5a05cc=!!_0x29d353[_0x463f7a][_0x4d304f],_0x3a8383=_0x5a05cc?_0x29d353[_0x463f7a][_0x4d304f][_0x234b('0xa6')]:null,_0x4fda59=_0x463f7a===_0x29d353[_0x234b('0xff')]-0x1,_0x25bc1f=_0x52d387[_0x4d304f][0x0],_0x59cc4a=_0xce8471[_0x234b('0xef')](_0x29d353[_0x463f7a]['item']);!_0x884428[_0x4d304f]&&_0x5a05cc?_0x884428[_0x4d304f]={'start':_0x3aab35,'tapeItem':_0x29d353[_0x463f7a],'userId':_0x3a8383,'type':_0x4d304f}:_0x884428[_0x4d304f]&&!_0x5a05cc?(_0x884428[_0x4d304f][_0x234b('0x15')]=_0x3aab35,_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]=null):_0x884428[_0x4d304f]&&_0x5a05cc&&_0x884428[_0x4d304f][_0x234b('0xa6')]!==_0x3a8383&&(_0x884428[_0x4d304f][_0x234b('0x15')]=_0x3aab35,_0x25bc1f&&_0x25bc1f[_0x234b('0xa6')]===_0x884428[_0x4d304f][_0x234b('0xa6')]||_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]={'start':_0x3aab35,'tapeItem':_0x29d353[_0x463f7a],'userId':_0x3a8383,'type':_0x4d304f}),_0x884428[_0x4d304f]&&_0x59cc4a&&('elementStart'!==_0x29d353[_0x463f7a][_0x234b('0xfb')]||_0x25bc1f&&_0x25bc1f[_0x234b('0xa6')]===_0x3a8383||_0x52d387[_0x4d304f][_0x234b('0xec')]({'userId':_0x3a8383,'object':_0x29d353[_0x463f7a][_0x234b('0xd7')],'change':_0x884428[_0x4d304f]}),_0x234b('0x58')===_0x29d353[_0x463f7a]['type']&&_0x25bc1f&&_0x25bc1f[_0x234b('0x103')]===_0x29d353[_0x463f7a][_0x234b('0xd7')]&&(_0x52d387[_0x4d304f][_0x234b('0x8b')](),_0x884428[_0x4d304f]=_0x25bc1f[_0x234b('0x69')])),_0x884428[_0x4d304f]&&_0x4fda59&&(_0x884428[_0x4d304f]['end']=_0x1fc1b1,_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]=null);}function _0x2a3c07({start:_0x4dc165,end:_0x14808c,tapeItem:_0x51b39a,userId:_0x115b6f,type:_0x597e83}){const _0x3e66cd=_0x51b39a['item'],_0x5d646c=_0x327ae4['schema']['isBlock'](_0x3e66cd)&&!_0x327ae4['schema'][_0x234b('0x44')](_0x3e66cd),_0x3c41e0=_0x4dc165[_0x234b('0xb9')]==_0x14808c['parent']&&_0x14808c[_0x234b('0xf1')];if(_0x5d646c&&_0x3c41e0)return;const _0x3a5414=_0x327ae4[_0x234b('0xd6')](_0x4dc165,_0x14808c),_0x1c1822=_0xfe1aa2[_0x234b('0x26')](_0x115b6f),_0xeaa320=new _0x5656c0({'author':_0x1c1822,'type':_0x234b('0x2c')==_0x597e83||_0x234b('0x7d')==_0x597e83?_0x234b('0xb8'):'remove','data':{'isSuggestion':_0x234b('0x7d')==_0x597e83||_0x234b('0xc6')==_0x597e83},'createdAt':new Date(),'rootName':_0x38a3de});_0x5055c4[_0x234b('0x10c')](_0xeaa320),_0xe1301a[_0x234b('0xf6')][_0x234b('0xfe')](_0x234b('0xcb')+_0xeaa320['id'],_0x3a5414);}function _0x5b9029(_0x133f14,_0x4dfaa9){const _0x24ba15=_0x133f14[_0x234b('0x64')](),_0x27205f=_0x4dfaa9[_0x234b('0x64')]();for(const _0x12b490 of _0x24ba15){if(_0x12b490[0x1]!==_0x4dfaa9[_0x234b('0xcc')](_0x12b490[0x0]))return!0x1;_0x27205f[_0x234b('0x112')]();}return _0x27205f[_0x234b('0x112')]()[_0x234b('0x6a')];}}[_0x234b('0xdb')](){this['editor'][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0x20')]({'view':_0x234b('0x16')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0xe'))['markerToHighlight']({'model':_0x234b('0x16'),'view':_0x34d7dd=>{const _0xd33a10=_0x34d7dd[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x24a8e1=this['_getChangeFromId'](_0xd33a10);if(!_0x24a8e1)return null;const _0x15ab34='add'==_0x24a8e1[_0x234b('0xfb')]?_0x234b('0x30'):_0x234b('0x3f'),_0x5e44ca=[_0x234b('0x9f'),_0x234b('0x10a')+_0x15ab34];return _0x24a8e1[_0x234b('0xb3')][_0x234b('0x11a')]&&_0x5e44ca[_0x234b('0x10c')](_0x234b('0x10a')+_0x15ab34+_0x234b('0xfc')),this[_0x234b('0x101')]==_0x24a8e1&&_0x5e44ca[_0x234b('0x10c')](_0x234b('0x9a')),{'classes':_0x5e44ca,'attributes':{'data-change-id':_0xd33a10}};}}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))['add'](_0x11c17b=>{_0x11c17b['on'](_0x234b('0x5'),(_0x38b42a,_0x2e4d11,_0x29a3f)=>{const _0x24f349=_0x2e4d11[_0x234b('0x66')][_0x234b('0x77')](0x0);if(!_0x24f349||!_0x24f349['is'](_0x234b('0x32'),_0x234b('0xa4')))return;if(!_0x29a3f['consumable'][_0x234b('0xa7')](_0x24f349,{'attributes':[_0x234b('0x10e'),_0x234b('0xd2')]}))return;const _0x44e6c7=_0x2e4d11[_0x234b('0xe9')][_0x234b('0xce')]['nodeAfter'];_0x29a3f[_0x234b('0x24')][_0x234b('0x11d')]('vid_start',_0x24f349['getAttribute']('vid_start'),_0x44e6c7),_0x29a3f[_0x234b('0x24')][_0x234b('0x11d')](_0x234b('0xd2'),_0x24f349[_0x234b('0xcc')](_0x234b('0xd2')),_0x44e6c7);},{'priority':_0x234b('0x52')});}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0xb8')](_0x5afd26=>{_0x5afd26['on'](_0x234b('0x32'),(_0x5c0558,_0x1e68df,_0x2ff815)=>{if(!_0x2ff815[_0x234b('0x99')][_0x234b('0xa7')](_0x1e68df['viewItem'],{'attributes':['vid_start',_0x234b('0xd2')]}))return;if(_0x1e68df['modelRange']['isCollapsed'])return;const _0x2c39ca=_0x1e68df['modelRange'][_0x234b('0xce')][_0x234b('0xb9')];_0x2c39ca[_0x234b('0x42')](_0x234b('0x10e'))||_0x2c39ca[_0x234b('0x42')](_0x234b('0x104'))||(_0x2ff815[_0x234b('0x24')][_0x234b('0x11d')]('vid_start',_0x1e68df[_0x234b('0x66')][_0x234b('0xcc')](_0x234b('0x10e')),_0x2c39ca),_0x2ff815['writer'][_0x234b('0x11d')](_0x234b('0xd2'),_0x1e68df[_0x234b('0x66')][_0x234b('0xcc')](_0x234b('0xd2')),_0x2c39ca));},{'priority':_0x234b('0x52')});}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0x7f')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x234b('0x104'),'value':_0x4eabdd=>_0x4eabdd[_0x234b('0xcc')](_0x234b('0x104'))}}),this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xfa')]['on'](_0x234b('0x5e'),(_0x51d636,[,_0xbd6151])=>{[_0x234b('0x10e'),_0x234b('0xd2'),_0x234b('0x104')][_0x234b('0x22')](_0xbd6151)&&(_0x51d636['return']=!0x0,_0x51d636[_0x234b('0x17')]());},{'priority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')]('dataDowncast')[_0x234b('0xb8')](_0x5440e8=>{_0x5440e8['on'](_0x234b('0x4'),(_0xa85408,_0x4e6bf5,_0x598aea)=>{if('\x20'!=_0x4e6bf5[_0x234b('0xd7')]['data']||_0x4e6bf5['item'][_0x234b('0x1f')][_0x234b('0xd8')]>0x1)return;if(!_0x598aea[_0x234b('0x99')][_0x234b('0xa7')](_0x4e6bf5[_0x234b('0xd7')],_0xa85408[_0x234b('0x2')]))return;const _0x263477=_0x598aea[_0x234b('0x24')],_0xa726d0=_0x598aea[_0x234b('0xa8')]['toViewRange'](_0x4e6bf5[_0x234b('0x7e')]);_0x263477[_0x234b('0xda')](_0xa726d0,_0x263477[_0x234b('0x1')](_0x234b('0x45')));});}),this[_0x234b('0x2a')]['conversion'][_0x234b('0x95')](_0x234b('0x47'))[_0x234b('0x92')]({'model':_0x234b('0x16')}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x56'),function(_0xdae6ac){const _0x37e292=_0xdae6ac['plugins'][_0x234b('0x26')](_0x234b('0x122'));return(_0x3e532f,_0x2d305c,_0xfa4530)=>{const _0x643514=_0x2d305c[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x219383=_0x37e292[_0x234b('0xcd')](_0x643514);if(!_0x219383)return null;const _0x1a82ba=_0x234b('0xb8')==_0x219383[_0x234b('0xfb')]?_0x234b('0x4a'):'merge';if(!_0xfa4530[_0x234b('0x99')]['test'](_0x2d305c['markerRange'],_0x3e532f['name']))return;const _0x553991=_0x2d305c[_0x234b('0x7b')][_0x234b('0x1c')](),_0x327d22=_0x2d305c[_0x234b('0x7b')][_0x234b('0xce')],_0x20fade=_0xdae6ac['model'][_0x234b('0xfa')];let _0x18a2e7=null,_0x211959=null,_0x12e7a0=!0x1,_0x26e154=!0x1;for(const _0x5b73d6 of _0x553991){const _0x33e992=_0x5b73d6[_0x234b('0xd7')];_0x12e7a0=_0x12e7a0||_0x20fade['isContent'](_0x33e992);const _0x111778=_0xfa4530[_0x234b('0xa8')]['toViewElement'](_0x33e992);if(_0x111778&&_0x111778[_0x234b('0x11b')](_0x234b('0x38')))return;_0x234b('0x58')==_0x5b73d6['type']&&(_0x20fade[_0x234b('0x5c')](_0x33e992)&&!_0x20fade['isLimit'](_0x33e992)&&(_0x33e992[_0x234b('0x2f')]||_0x327d22['isAtEnd']?_0x18a2e7&&_0x18a2e7['parent']==_0x33e992||(_0x18a2e7=_0x33e992,_0xca04c7(_0x5b73d6['previousPosition']),_0x26e154=!0x0):_0x211959=_0x211959||_0x5b73d6['previousPosition']));}function _0xca04c7(_0x1cd058){const _0x30d593=_0xfa4530[_0x234b('0x24')]['createUIElement'](_0x234b('0x45'),{'class':_0x234b('0x10a')+_0x1a82ba}),_0x13e17b=_0xfa4530['mapper'][_0x234b('0x11e')](_0x1cd058);_0x219383[_0x234b('0xb3')]['isSuggestion']&&_0xfa4530[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x10a')+_0x1a82ba+_0x234b('0xfc'),_0x30d593),_0x37e292[_0x234b('0x101')]==_0x219383&&_0xfa4530[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x9a'),_0x30d593),_0xfa4530[_0x234b('0x24')][_0x234b('0x107')](_0x13e17b,_0x30d593),_0xfa4530[_0x234b('0xa8')][_0x234b('0xf0')](_0x30d593,_0x2d305c['markerName']);}_0x12e7a0||_0x26e154||!_0x211959||_0xca04c7(_0x211959);};}(this['editor']),{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')][_0x234b('0xd1')]['downcastDispatcher']['on'](_0x234b('0x86'),(_0x466c52,_0xea034f,_0x4a67ed)=>{const _0x59bf8e=_0x4a67ed[_0x234b('0xa8')]['markerNameToElements'](_0xea034f['markerName']);if(_0x59bf8e)for(const _0x20e8cf of _0x59bf8e)(_0x20e8cf[_0x234b('0xa2')]('ck-suggestion-marker-split')||_0x20e8cf[_0x234b('0xa2')]('ck-suggestion-marker-merge'))&&(_0x4a67ed['mapper'][_0x234b('0xd4')](_0x20e8cf,_0xea034f[_0x234b('0x105')]),_0x4a67ed[_0x234b('0x24')]['remove'](_0x20e8cf));},{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x56'),(_0x10d482,_0xaa7930,_0x3e3ace)=>{const _0x766a8b=_0xaa7930[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x35379d=this['_getChangeFromId'](_0x766a8b);if(!_0x35379d)return null;const _0x5dcd18=_0x234b('0xb8')==_0x35379d[_0x234b('0xfb')]?'split':_0x234b('0x65');if(_0x3e3ace[_0x234b('0x99')][_0x234b('0x85')](_0xaa7930[_0x234b('0x7b')],_0x10d482['name']))for(const _0x5d45a8 of _0xaa7930[_0x234b('0x7b')][_0x234b('0xc0')]()){if(!_0x5d45a8['is'](_0x234b('0x32'),_0x234b('0x106')))continue;const _0x2e8698=_0x3e3ace[_0x234b('0x24')][_0x234b('0x114')](_0x234b('0x45'),{'class':_0x234b('0x10a')+_0x5dcd18}),_0x278070=_0x3e3ace['mapper'][_0x234b('0x11e')](this[_0x234b('0x2a')][_0x234b('0x111')]['createPositionBefore'](_0x5d45a8));_0x35379d['data']['isSuggestion']&&_0x3e3ace[_0x234b('0x24')][_0x234b('0xea')]('ck-suggestion-marker-'+_0x5dcd18+_0x234b('0xfc'),_0x2e8698),this['activeChange']==_0x35379d&&_0x3e3ace[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x9a'),_0x2e8698),_0x3e3ace[_0x234b('0x24')][_0x234b('0x107')](_0x278070,_0x2e8698),_0x3e3ace['mapper']['bindElementToMarker'](_0x2e8698,_0xaa7930['markerName']);}},{'priority':_0x234b('0x29')}),this['editor'][_0x234b('0x111')][_0x234b('0xbb')]['on'](_0x234b('0x69'),()=>{this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x69')](_0x19f667=>{for(const _0x425563 of this[_0x234b('0x2a')][_0x234b('0x111')]['document'][_0x234b('0x27')]()){const _0x2ca774=this[_0x234b('0x2a')][_0x234b('0x111')]['document']['getRoot'](_0x425563),_0x5c505c=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')][_0x234b('0x97')](_0x425563);if(_0x5c505c){const _0x458d79=_0x2ca774[_0x234b('0xcc')](_0x234b('0x36'));if(_0x19f667['removeAttribute'](_0x234b('0x41'),_0x5c505c),_0x19f667[_0x234b('0xa5')](_0x234b('0x9e'),_0x5c505c),_0x19f667[_0x234b('0xa5')](_0x234b('0x2b'),_0x5c505c),_0x19f667['removeClass'](_0x234b('0x117'),_0x5c505c),_0x458d79){const _0x571298=this[_0x234b('0xcd')](_0x458d79);if(!_0x571298)return null;_0x19f667[_0x234b('0x11d')](_0x234b('0x41'),_0x458d79,_0x5c505c),_0x19f667['addClass']('ck-revision-history-root-'+_0x571298[_0x234b('0xfb')],_0x5c505c),this[_0x234b('0x101')]==_0x571298&&_0x19f667[_0x234b('0xea')](_0x234b('0x117'),_0x5c505c);}}}});}),this['editor']['conversion']['for'](_0x234b('0x1a'))[_0x234b('0x20')]({'view':_0x234b('0x83'),'model':_0x589b38=>_0x234b('0x11')+_0x589b38,'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')]('upcast')[_0x234b('0x20')]({'view':_0x234b('0xe3'),'model':_0x1ee07f=>_0x234b('0x80')+_0x1ee07f,'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')]['conversion'][_0x234b('0x95')]('dataDowncast')[_0x234b('0x92')]({'model':_0x234b('0x89'),'view':_0x36841b=>({'name':_0x234b('0x6f')+_0x36841b,'group':_0x234b('0x89')}),'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0xe'))[_0x234b('0x19')]({'model':_0x234b('0x89'),'view':_0x543f5b=>{const _0xa4d937=_0x543f5b[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1];return _0x234b('0x30')!=_0xa4d937&&_0x234b('0x3f')!=_0xa4d937?null:{'classes':['ck-suggestion-preview-marker',_0x234b('0x7a')+_0xa4d937]};}}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x79'),et(this[_0x234b('0x2a')],_0x234b('0x65')),{'priority':_0x234b('0x29')}),this['editor'][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0xdc'),et(this[_0x234b('0x2a')],'split'),{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')]['editing'][_0x234b('0x76')]['on']('removeMarker:revision-suggestion',(_0xcaa285,_0x58421e,_0x38fc3d)=>{const _0x5bb839=_0x38fc3d[_0x234b('0xa8')][_0x234b('0x5b')](_0x58421e[_0x234b('0x105')]);if(_0x5bb839)for(const _0x256d02 of _0x5bb839)_0x256d02['is'](_0x234b('0xe2'))&&(_0x38fc3d[_0x234b('0xa8')][_0x234b('0xd4')](_0x256d02,_0x58421e['markerName']),_0x38fc3d[_0x234b('0x24')][_0x234b('0x3b')](_0x256d02));},{'priority':_0x234b('0x29')});}[_0x234b('0xcd')](_0x3eeb93){return this['_changeIdToChange'][_0x234b('0x26')](_0x3eeb93);}[_0x234b('0x53')](_0x3d5ffc){return this[_0x234b('0xc2')]&&this[_0x234b('0xc2')][_0x234b('0xed')](),this[_0x234b('0xc2')]=new _0x3d3978(this[_0x234b('0x2a')][_0x234b('0xfd')],_0x3d5ffc),this[_0x234b('0xc2')];}[_0x234b('0x1b')](){this['editor'][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0xe7')][_0x234b('0xbf')](_0x234b('0x16')),this['on'](_0x234b('0xca'),(_0x2b1bf7,_0x49eab0,_0x435933,_0x39cf3e)=>{_0x39cf3e&&this['_balloon'][_0x234b('0x3b')](_0x39cf3e),_0x435933&&(this[_0x234b('0xc4')][_0x234b('0xb8')]({'view':_0x435933,'stackId':_0x234b('0x4f'),'position':{'target':()=>{const _0x557327=this[_0x234b('0x2a')][_0x234b('0xd1')],_0x343af1=this[_0x234b('0xcd')](_0x435933[_0x234b('0x120')]);let _0x680095;if(_0x343af1[_0x234b('0xb3')][_0x234b('0x5f')]){const _0x2b53f5=_0x557327[_0x234b('0x35')][_0x234b('0x91')](_0x343af1[_0x234b('0x4c')]);_0x680095=Array[_0x234b('0x43')](_0x2b53f5[_0x234b('0xb7')]());}else{const _0x43df5d=this['editor'][_0x234b('0x111')][_0x234b('0xf6')][_0x234b('0x26')](_0x234b('0xcb')+_0x435933[_0x234b('0x120')]);_0x680095=Array[_0x234b('0x43')](_0x557327[_0x234b('0xa8')]['markerNameToElements'](_0x43df5d[_0x234b('0x2')]))['map'](_0x5df3ed=>_0x557327[_0x234b('0x35')][_0x234b('0xf9')]['mapViewToDom'](_0x5df3ed))['map'](_0x412a1c=>Array[_0x234b('0x43')](_0x412a1c[_0x234b('0xb7')]()))['flat']();}if(!this[_0x234b('0x57')])return _0x680095[0x0];return _0x680095[_0x234b('0xb4')](_0x141c8d=>_0x141c8d['top']-0x3<=this[_0x234b('0x57')]['y']&&_0x141c8d[_0x234b('0x10')]+0x3>=this[_0x234b('0x57')]['y']&&_0x141c8d[_0x234b('0x8e')]-0x3<=this[_0x234b('0x57')]['x']&&_0x141c8d['right']+0x3>=this['_activeViewTarget']['x'])||_0x680095[0x0];}}}),this['_balloon'][_0x234b('0x4d')](_0x234b('0x4f')));}),this['on'](_0x234b('0x87'),(_0x5bdf66,_0xbae009,_0x3c2a93,_0x2dc6a7)=>{this['activeView']=_0x3c2a93?this[_0x234b('0x53')](_0x3c2a93):null,this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0x69')](()=>{const _0xb6023d=this[_0x234b('0x2a')]['editing'];_0x2dc6a7&&(_0x2dc6a7['data']['isOnRoot']?_0xb6023d[_0x234b('0x35')][_0x234b('0x69')](_0x177877=>{_0x177877[_0x234b('0xa5')](_0x234b('0x117'),_0xb6023d['view'][_0x234b('0xbb')][_0x234b('0x97')](_0x2dc6a7[_0x234b('0x4c')]));}):_0xb6023d['reconvertMarker'](_0x234b('0xcb')+_0x2dc6a7['id'])),_0x3c2a93&&(_0x3c2a93[_0x234b('0xb3')]['isOnRoot']?_0xb6023d[_0x234b('0x35')][_0x234b('0x69')](_0x2080b1=>{_0x2080b1[_0x234b('0xea')](_0x234b('0x117'),_0xb6023d['view']['document'][_0x234b('0x97')](_0x3c2a93[_0x234b('0x4c')]));}):_0xb6023d[_0x234b('0x10d')](_0x234b('0xcb')+_0x3c2a93['id']));});}),this[_0x234b('0xe6')](this['editor'][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],'mouseover',(_0x4f927c,_0x5e1a33)=>{if(this['activeChange'])return;const _0x4086db=this[_0x234b('0xb')](_0x5e1a33[_0x234b('0x2e')]),_0x4b5bd7=this[_0x234b('0x28')][_0x234b('0x26')](_0x4086db);_0x4b5bd7?(this[_0x234b('0x57')]={'x':_0x5e1a33['domEvent']['x'],'y':_0x5e1a33[_0x234b('0x121')]['y']},this[_0x234b('0x6d')]=this['_getViewForChange'](_0x4b5bd7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],_0x234b('0x5a'),(_0x5cd2a2,_0xdc1a17)=>{const _0x453324=this['_findChangeIdFromDomTarget'](_0xdc1a17[_0x234b('0x2e')]),_0x1cafef=this[_0x234b('0x28')][_0x234b('0x26')](_0x453324);_0x1cafef?(this[_0x234b('0x57')]={'x':_0xdc1a17[_0x234b('0x121')]['x'],'y':_0xdc1a17[_0x234b('0x121')]['y']},_0x1cafef===this[_0x234b('0x101')]?this['_balloon']['updatePosition']():this['activeChange']=_0x1cafef):(this[_0x234b('0x57')]=null,this['activeChange']=null);});}[_0x234b('0xb')](_0x1b93e6){do{const _0xc9e3e1=_0x1b93e6['getAttribute'](_0x234b('0x41'));if(_0xc9e3e1)return _0xc9e3e1;_0x1b93e6=_0x1b93e6[_0x234b('0x1f')];}while(_0x1b93e6);return null;}[_0x234b('0x8c')](){this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0x69')](_0x36adb9=>{for(const _0x3d6440 of this[_0x234b('0x2a')]['model'][_0x234b('0xf6')])_0x36adb9[_0x234b('0x37')](_0x3d6440);});}}function et(_0x588aa6,_0xee45bd){return(_0x5efd2f,_0x15840c,_0x25eac0)=>{if(!_0x25eac0[_0x234b('0x99')][_0x234b('0x85')](_0x15840c[_0x234b('0x7b')],_0x5efd2f[_0x234b('0x2')]))return;const _0x54ec82=_0x15840c[_0x234b('0x7b')]['getWalker'](),_0x1004b5=_0x15840c['markerRange'][_0x234b('0xce')],_0x41ee5a=_0x588aa6[_0x234b('0x111')][_0x234b('0xfa')];let _0x5dc804=null,_0x2f06a0=null,_0x4e2638=!0x1,_0x21368a=!0x1;for(const _0x2a784c of _0x54ec82){const _0x14749b=_0x2a784c[_0x234b('0xd7')];_0x4e2638=_0x4e2638||_0x41ee5a[_0x234b('0x6')](_0x14749b);const _0xaa8d61=_0x25eac0[_0x234b('0xa8')]['toViewElement'](_0x14749b);if(_0xaa8d61&&_0xaa8d61[_0x234b('0x11b')]('addHighlight'))return;_0x234b('0x58')==_0x2a784c['type']&&(_0x41ee5a[_0x234b('0x5c')](_0x14749b)&&!_0x41ee5a[_0x234b('0x44')](_0x14749b)&&(_0x14749b[_0x234b('0x2f')]||_0x1004b5[_0x234b('0x54')]?_0x5dc804&&_0x5dc804[_0x234b('0x1f')]==_0x14749b||(_0x5dc804=_0x14749b,_0x584711(_0x2a784c[_0x234b('0x55')]),_0x21368a=!0x0):_0x2f06a0=_0x2f06a0||_0x2a784c[_0x234b('0x55')]));}function _0x584711(_0xf4d798){const _0xea41bf=_0x25eac0['mapper'][_0x234b('0x11e')](_0xf4d798),_0x5dc5de=_0x25eac0[_0x234b('0x24')][_0x234b('0x114')](_0x234b('0x45'),{'class':'ck-suggestion-preview-marker-'+_0xee45bd});_0x25eac0[_0x234b('0x24')]['insert'](_0xea41bf,_0x5dc5de),_0x25eac0[_0x234b('0xa8')]['bindElementToMarker'](_0x5dc5de,_0x15840c[_0x234b('0x105')]);}_0x4e2638||_0x21368a||!_0x2f06a0||_0x584711(_0x2f06a0);};}export class RestoreRevisionCommand extends _0x349962{constructor(_0x5f103b){super(_0x5f103b);const _0x47a4a5=_0x5f103b['plugins'][_0x234b('0x26')](d);this[_0x234b('0xa3')]=!0x1,this[_0x234b('0xe6')](_0x47a4a5,'change:isReady',()=>this[_0x234b('0x2d')]()),this[_0x234b('0xe6')](_0x47a4a5,_0x234b('0xaa'),()=>this['refresh']());}['execute'](){const _0x19e3b7=this[_0x234b('0x2a')],_0x5e111c=_0x19e3b7[_0x234b('0x10b')]['get'](d),_0x549bae=_0x5e111c[_0x234b('0x6e')]?_0x5e111c[_0x234b('0xa9')]['newRevisionId']:null;_0x19e3b7['config'][_0x234b('0x26')](_0x234b('0xa'))[_0x234b('0xac')](_0x549bae);}['refresh'](){const {isReady:_0x127141,isEnabled:_0x2869b6}=this[_0x234b('0x2a')][_0x234b('0x10b')][_0x234b('0x26')](d);this[_0x234b('0xc')]=_0x127141&&_0x2869b6;}}export class ShowChangeCommand extends _0x349962{constructor(_0xb76121,{direction:_0x258abd}){super(_0xb76121);const _0x2fa319=_0xb76121[_0x234b('0x10b')][_0x234b('0x26')](d);this[_0x234b('0xa3')]=!0x1,this[_0x234b('0x84')]='forward'===_0x258abd?0x1:-0x1,this[_0x234b('0xe6')](_0x2fa319,_0x234b('0x0'),()=>this[_0x234b('0x2d')]()),this[_0x234b('0xe6')](_0x2fa319,_0x234b('0xaa'),()=>this[_0x234b('0x2d')]()),this['listenTo'](_0x2fa319,_0x234b('0x87'),()=>this[_0x234b('0x2d')]());}[_0x234b('0x5d')](){const _0x179954=this['editor'],_0x3a928c=_0x179954[_0x234b('0x10b')]['get'](d),{isNavigationMode:_0x25a373,currentChangeNumber:_0x589198}=_0x3a928c;let _0x306334;if(_0x3a928c[_0x234b('0x101')]=_0x25a373?_0x3a928c['diff'][_0x234b('0xb5')][_0x234b('0x26')](_0x589198+this[_0x234b('0x84')]):_0x3a928c[_0x234b('0xa9')]['changes'][_0x234b('0x11f')],_0x3a928c[_0x234b('0x101')][_0x234b('0xb3')][_0x234b('0x5f')])_0x306334=_0x179954[_0x234b('0xd1')][_0x234b('0x35')]['getDomRoot'](_0x3a928c[_0x234b('0x101')][_0x234b('0x4c')]);else{const _0x276a24=_0x179954[_0x234b('0x111')][_0x234b('0xf6')][_0x234b('0x26')]('revision:'+_0x3a928c['activeChange']['id']);_0x306334=_0x1d3894(_0x179954[_0x234b('0xd1')],_0x276a24);}_0x46ecbd({'target':_0x306334,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19eb8b,currentChangeNumber:_0x1acbc3,numberOfChanges:_0x1f350e,isReady:_0x277825,isEnabled:_0x391c8b}=this[_0x234b('0x2a')][_0x234b('0x10b')][_0x234b('0x26')](d);this['isEnabled']=!!(_0x391c8b&&_0x277825&&_0x1f350e)&&(!_0x19eb8b||(0x1===this['_step']?_0x1acbc3<_0x1f350e-0x1:_0x1acbc3>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x392c=['class','first','execute','find','add','function','listenTo','children','action','items','threeVerticalDots','change:isActionsDropdownOpen','panelPosition','isVisible','name','stopPropagation','set','isOpen','Name\x20this\x20revision','listView','isActionsDropdownOpen','button','buttonView','ck-revision-history-sidebar__revision__actions','Restore\x20this\x20revision','locale','source','bind','bindTemplate','isReady','_action','isEnabled'];(function(_0x579b1b,_0x392c5d){const _0x501cbb=function(_0x1d105e){while(--_0x1d105e){_0x579b1b['push'](_0x579b1b['shift']());}};_0x501cbb(++_0x392c5d);}(_0x392c,0x1d4));const _0x501c=function(_0x579b1b,_0x392c5d){_0x579b1b=_0x579b1b-0x0;let _0x501cbb=_0x392c[_0x579b1b];return _0x501cbb;};import{Collection as _0x2e126b}from'ckeditor5/src/utils';import{icons as _0x1130d8}from'ckeditor5/src/core';import{Model as _0x59a1e1,addListToDropdown as _0x1bc17e,createDropdown as _0x383949}from'ckeditor5/src/ui';import{getTranslation as _0x4f11ac}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x48e23b,_0x4e02cb){const _0x98131c=_0x48e23b[_0x501c('0x8')],_0x451b6a=_0x48e23b[_0x501c('0x5')],_0x56d868=_0x383949(_0x451b6a);_0x56d868[_0x501c('0x18')]='sw';const _0x2f7abe=function(_0x294615,_0x3defd7){const _0x120894=function(_0x40a1af,_0x139f7f){const _0x229252=_0x40a1af['locale'],_0x46178e={'Compare\x20against\x20selected':_0x4f11ac(_0x229252,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x4f11ac(_0x229252,_0x501c('0x1e')),'Restore\x20this\x20revision':_0x4f11ac(_0x229252,_0x501c('0x4'))};return _0x139f7f['map'](_0x43cac8=>{const _0x4992c9=_0x46178e[_0x43cac8['name']];return _0x4992c9&&_0x4992c9!==_0x43cac8[_0x501c('0x1a')]&&(_0x43cac8[_0x501c('0x1a')]=_0x4992c9),_0x43cac8;});}(_0x294615,_0x3defd7),_0x14b9ea=new _0x2e126b();for(const _0x742309 of _0x120894){const _0x36a947={'type':_0x501c('0x1'),'model':new _0x59a1e1({'label':_0x742309[_0x501c('0x1a')],'class':_0x742309[_0x501c('0xc')],'withText':!0x0,'_action':_0x742309['action']})};_0x36a947['model']['bind'](_0x501c('0xb'))['to'](_0x294615,_0x501c('0x0'),_0x6ce7ed=>_0x501c('0x11')!=typeof _0x742309[_0x501c('0xb')]||(!_0x6ce7ed||_0x742309[_0x501c('0xb')](_0x294615))),_0x14b9ea[_0x501c('0x10')](_0x36a947);}return _0x14b9ea;}(_0x48e23b,_0x4e02cb);return _0x48e23b[_0x501c('0x7')](_0x501c('0x0'))['to'](_0x56d868,_0x501c('0x1d')),_0x56d868[_0x501c('0x2')][_0x501c('0x1c')]({'label':_0x4f11ac(_0x451b6a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1130d8[_0x501c('0x16')]}),_0x56d868['extendTemplate']({'attributes':{'class':[_0x501c('0x3'),_0x98131c['if'](_0x501c('0x0'),'ck-on')]},'on':{'click':_0x98131c['to'](_0x50dc92=>_0x50dc92[_0x501c('0x1b')]())}}),_0x56d868['on'](_0x501c('0xe'),_0x2ff21d=>{_0x48e23b[_0x501c('0x9')]&&'function'==typeof _0x2ff21d[_0x501c('0x6')][_0x501c('0xa')]&&_0x2ff21d[_0x501c('0x6')][_0x501c('0xa')](_0x48e23b);}),_0x1bc17e(_0x56d868,_0x2f7abe),_0x56d868[_0x501c('0x12')](_0x48e23b,_0x501c('0x17'),(_0x3613bc,_0x2a74ed,_0xe5fe0d)=>{if(_0xe5fe0d)for(const _0x133352 of _0x56d868[_0x501c('0x1f')][_0x501c('0x15')]){const _0xb9a91e=_0x133352[_0x501c('0x13')][_0x501c('0xd')],_0xc114e7=_0x4e02cb[_0x501c('0xf')](_0x120af1=>_0x120af1[_0x501c('0x14')]===_0xb9a91e[_0x501c('0xa')])[_0x501c('0x19')];_0x133352[_0x501c('0x19')]=void 0x0===_0xc114e7||_0xc114e7(_0x48e23b);}}),_0x56d868;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a0a=['Revision\x20author','name','setTemplate','Revision\x20creator','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name','span'];(function(_0x5efb5c,_0x4a0a1b){const _0x210b24=function(_0x3e9823){while(--_0x3e9823){_0x5efb5c['push'](_0x5efb5c['shift']());}};_0x210b24(++_0x4a0a1b);}(_0x4a0a,0x1f3));const _0x210b=function(_0x5efb5c,_0x4a0a1b){_0x5efb5c=_0x5efb5c-0x0;let _0x210b24=_0x4a0a[_0x5efb5c];return _0x210b24;};import{View as _0x565772,IconView as _0x7ba919}from'ckeditor5/src/ui';import{getTranslation as _0x45dd9d}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x35ce93 from'../../../theme/icons/user.svg';export default class ti extends _0x565772{constructor(_0x1cbe96,_0x6ac0bf,_0xaa7377){super(_0x1cbe96);const _0x22c59e=new _0x7ba919();_0x22c59e['set']({'content':_0x35ce93,'viewBox':'0\x200\x2011\x2010'});const _0x21e033=['ck',_0x210b('0x2')];_0xaa7377&&_0x21e033['push']('ck-revision-history-sidebar__revision-author_creator');const _0xdfabaa=[{'tag':_0x210b('0x4'),'attributes':{'class':['ck',_0x210b('0x3')],'title':_0x45dd9d(_0x1cbe96,_0xaa7377?_0x210b('0x1'):_0x210b('0x5'))},'children':[_0x22c59e,_0x6ac0bf[_0x210b('0x6')]]}];this[_0x210b('0x0')]({'tag':'li','attributes':{'class':_0x21e033},'children':_0xdfabaa});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2a8e=['extendTemplate','ck-revision-history-sidebar__revision-name','set','Revision\x20name'];(function(_0xd320b2,_0x2a8e60){var _0x565158=function(_0x572357){while(--_0x572357){_0xd320b2['push'](_0xd320b2['shift']());}};_0x565158(++_0x2a8e60);}(_0x2a8e,0x9b));var _0x5651=function(_0xd320b2,_0x2a8e60){_0xd320b2=_0xd320b2-0x0;var _0x565158=_0x2a8e[_0xd320b2];return _0x565158;};import{LabeledFieldView as _0x51fe15}from'ckeditor5/src/ui';import{getTranslation as _0x1f538e}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x51fe15{constructor(_0x2efdb7,_0x354a0a){super(_0x2efdb7,_0x354a0a),this[_0x5651('0x3')]({'label':_0x1f538e(_0x2efdb7,_0x5651('0x0'))}),this[_0x5651('0x1')]({'tag':'span','attributes':{'class':[_0x5651('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ac5=['name','ck-disabled','span','isEnabled','ck-revision-history-sidebar__revision__date','bindTemplate','render','length','from','isHighlighted','isReady','value','set','setTemplate','isSelected','element','ck-revision-history-sidebar__revision','220','_createdAtFormatted','div','extendTemplate','ck-revision-history-sidebar__revision_selected','revisionNameView','highlight','ck-reset','revisionActionsView','.ck-thread__remove-confirm','fire','ck-revision-history-sidebar__revision__controls-wrapper','placeholder','select','closest','bind','srcElement','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','_revision','isActionsDropdownOpen','creator','fieldView','map','deselect','createdAt','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__actions_dropdown_open','unshift'];(function(_0x2db954,_0x4ac583){const _0x29c3ca=function(_0x12808c){while(--_0x12808c){_0x2db954['push'](_0x2db954['shift']());}};_0x29c3ca(++_0x4ac583);}(_0x4ac5,0x124));const _0x29c3=function(_0x2db954,_0x4ac583){_0x2db954=_0x2db954-0x0;let _0x29c3ca=_0x4ac5[_0x2db954];return _0x29c3ca;};import{View as _0x3210dc,createLabeledInputText as _0x2ca384}from'ckeditor5/src/ui';import{ConfirmMixin as _0xc6ea05}from'ckeditor5-collaboration/src/collaboration-core';import _0x3da5c9 from'./revisionnameview';import _0x193724 from'./revisionauthorview';import{dateToPrettyFormat as _0x34be19}from'./utils';import{createActionsDropdownView as _0x58068e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0xc6ea05(_0x3210dc){constructor(_0x3a5620,_0x5359c9,_0x31cd45){super(_0x3a5620);const _0x3d1019=this[_0x29c3('0x23')],_0x293277=function(_0x6a25e3,_0x36896a){const _0xd40618=Array[_0x29c3('0x26')](_0x36896a['authors'])['filter'](_0x3fedc1=>_0x3fedc1!=_0x36896a[_0x29c3('0x16')]);return _0x36896a[_0x29c3('0x16')]&&_0xd40618[_0x29c3('0x1d')](_0x36896a[_0x29c3('0x16')]),_0xd40618[_0x29c3('0x18')](_0x19de39=>new _0x193724(_0x6a25e3,_0x19de39,_0x19de39==_0x36896a[_0x29c3('0x16')]));}(_0x3a5620,_0x5359c9);this['id']=_0x5359c9['id'],this[_0x29c3('0x14')]=_0x5359c9,this['bind'](_0x29c3('0x1e'),_0x29c3('0x1a'))['to'](_0x5359c9),this['bind']('_createdAtFormatted')['to'](this,_0x29c3('0x1a'),_0x37835b=>_0x37835b?_0x34be19(_0x3a5620['uiLanguage'],_0x37835b):void 0x0),this['set'](_0x29c3('0x2c'),!0x1),this[_0x29c3('0x2a')]('isHighlighted',!0x1),this[_0x29c3('0x2a')]('isActionsDropdownOpen',!0x1),this[_0x29c3('0x2a')]('isReady',!0x1),this[_0x29c3('0x2a')](_0x29c3('0x21'),!0x1),this[_0x29c3('0x6')]=new _0x3da5c9(_0x3a5620,_0x2ca384),this[_0x29c3('0x6')][_0x29c3('0x17')][_0x29c3('0x4')]({'attributes':{'maxlength':_0x29c3('0x1')}}),this[_0x29c3('0x6')][_0x29c3('0x17')]['bind'](_0x29c3('0x29'),_0x29c3('0xd'))['to'](this,_0x29c3('0x1e'),_0x29c3('0x2')),this[_0x29c3('0x6')][_0x29c3('0x10')](_0x29c3('0x21'))['to'](this,_0x29c3('0x2c'),this,_0x29c3('0x21'),(_0xb3bead,_0x246b63)=>_0xb3bead&&_0x246b63),this[_0x29c3('0x9')]=_0x31cd45&&_0x31cd45[_0x29c3('0x25')]?_0x58068e(this,_0x31cd45):'',this[_0x29c3('0x9')]&&this[_0x29c3('0x9')][_0x29c3('0x10')](_0x29c3('0x21'))['to'](this),this[_0x29c3('0x2b')]({'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0x8'),'ck-revision-history-sidebar__revision-wrapper',_0x3d1019['if']('isConfirm',_0x29c3('0x13'))]},'children':[{'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0x8'),_0x29c3('0x0'),_0x3d1019['if'](_0x29c3('0x21'),_0x29c3('0x1f'),_0xe9f546=>!_0xe9f546),_0x3d1019['if'](_0x29c3('0x2c'),_0x29c3('0x5')),_0x3d1019['if'](_0x29c3('0x27'),_0x29c3('0x1b')),_0x3d1019['if'](_0x29c3('0x15'),_0x29c3('0x1c'))]},'children':[this['revisionNameView'],{'tag':_0x29c3('0x20'),'attributes':{'class':['ck',_0x29c3('0x22')]},'children':[{'text':_0x3d1019['to'](_0x29c3('0x2'))}]},{'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0xc')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x29c3('0x12')]},'children':_0x293277}]},this[_0x29c3('0x9')]],'on':{'click':_0x3d1019['to'](_0x424792=>{_0x424792[_0x29c3('0x11')][_0x29c3('0xf')](_0x29c3('0xa'))||this[_0x29c3('0x28')]&&this[_0x29c3('0x21')]&&this[_0x29c3('0xb')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x29c3('0x24')]();const _0x28c945=this[_0x29c3('0x6')][_0x29c3('0x17')][_0x29c3('0x2d')];this['listenTo'](_0x28c945,'change',()=>{this[_0x29c3('0xb')]('setName',{'id':this['id'],'name':_0x28c945[_0x29c3('0x29')]});});}[_0x29c3('0xe')](){this[_0x29c3('0x2c')]=!0x0;}[_0x29c3('0x19')](){this[_0x29c3('0x2c')]=!0x1;}[_0x29c3('0x7')](){this[_0x29c3('0x27')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1847=['_isCollapsed','bindTemplate','set','toggle','true','button','span','ck-hidden','isVisible','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner','setTemplate'];(function(_0x1a917b,_0x1847c0){const _0x50ad26=function(_0x220805){while(--_0x220805){_0x1a917b['push'](_0x1a917b['shift']());}};_0x50ad26(++_0x1847c0);}(_0x1847,0xd3));const _0x50ad=function(_0x1a917b,_0x1847c0){_0x1a917b=_0x1a917b-0x0;let _0x50ad26=_0x1847[_0x1a917b];return _0x50ad26;};import{View as _0x2da169}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2da169{constructor(_0x38ad81){super(_0x38ad81);const _0x22180d=this[_0x50ad('0x6')];this[_0x50ad('0x7')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x50ad('0x4')]({'tag':'span','attributes':{'class':['ck',_0x50ad('0x2'),_0x22180d['if'](_0x50ad('0x1'),_0x50ad('0x0'),_0x32d73b=>!_0x32d73b),_0x22180d['if'](_0x50ad('0x5'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x50ad('0xa'),'aria-pressed':_0x22180d['to'](_0x50ad('0x5'),_0x491040=>_0x491040?'false':_0x50ad('0x9'))},'children':[{'tag':_0x50ad('0xb'),'attributes':{'class':['ck',_0x50ad('0x3')]}}],'on':{'click':_0x22180d['to']('click')}});}[_0x50ad('0x8')](){this[_0x50ad('0x5')]=!this[_0x50ad('0x5')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c6f=['createdAt','div','isSelected','select','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','bind','deselect','_createdAtFormatted','creator','ck-reset','ck-revision-history-sidebar__revision-authors','span','_parentRevisionId','bindTemplate','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision','uiLanguage'];(function(_0xd188d8,_0x5c6f5f){const _0x19ae79=function(_0x150297){while(--_0x150297){_0xd188d8['push'](_0xd188d8['shift']());}};_0x19ae79(++_0x5c6f5f);}(_0x5c6f,0x9b));const _0x19ae=function(_0xd188d8,_0x5c6f5f){_0xd188d8=_0xd188d8-0x0;let _0x19ae79=_0x5c6f[_0xd188d8];return _0x19ae79;};import{View as _0x3c72d9}from'ckeditor5/src/ui';import _0xbc5505 from'./revisionauthorview';import{dateToPrettyFormat as _0x73d907}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3c72d9{constructor(_0x50995f,_0x3142a8,_0x49bfff){super(_0x50995f);const _0x5617b0=this[_0x19ae('0x3')];this['id']=_0x3142a8['id'],this['bind'](_0x19ae('0x7'))['to'](_0x3142a8),this['set'](_0x19ae('0x9'),!0x1),this[_0x19ae('0xd')](_0x19ae('0xf'))['to'](this,_0x19ae('0x7'),_0x5c8366=>_0x5c8366?_0x73d907(_0x50995f[_0x19ae('0x6')],_0x5c8366):void 0x0),this['_parentRevisionId']=_0x49bfff,this['setTemplate']({'tag':_0x19ae('0x8'),'attributes':{'class':['ck',_0x19ae('0x11'),_0x19ae('0x5'),_0x19ae('0x4'),_0x5617b0['if'](_0x19ae('0x9'),_0x19ae('0xb'))]},'children':[{'tag':_0x19ae('0x1'),'attributes':{'class':['ck',_0x19ae('0xc')]},'children':[{'text':_0x5617b0['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x19ae('0x0')]},'children':[new _0xbc5505(_0x50995f,_0x3142a8[_0x19ae('0x10')],!0x0)]}],'on':{'click':_0x5617b0['to'](this[_0x19ae('0xa')][_0x19ae('0xd')](this))}});}[_0x19ae('0xa')](){this[_0x19ae('0x9')]=!0x0,this['fire']('select',{'parentId':this[_0x19ae('0x2')]});}[_0x19ae('0xe')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x53d9=['numeric','toLocaleTimeString','long'];(function(_0x582648,_0x53d931){var _0x2b25a6=function(_0x32c0fa){while(--_0x32c0fa){_0x582648['push'](_0x582648['shift']());}};_0x2b25a6(++_0x53d931);}(_0x53d9,0x1d6));var _0x2b25=function(_0x582648,_0x53d931){_0x582648=_0x582648-0x0;var _0x2b25a6=_0x53d9[_0x582648];return _0x2b25a6;};export function dateToPrettyFormat(_0x268e8d,_0x552b34){return _0x552b34['toLocaleDateString'](_0x268e8d,{'month':_0x2b25('0x0'),'day':_0x2b25('0x1')})+',\x20'+_0x552b34[_0x2b25('0x2')](_0x268e8d,{'hour':'numeric','minute':_0x2b25('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54b9=['setTemplate','Name\x20of\x20the\x20revision\x20(optional)','arrowright','trim','_createRevisionNameInput','add','focusFirst','fieldView','revisionNameInputView','revisionName','tab','saveButtonView','execute','_focusables','shift\x20+\x20tab','value','ck-button-cancel','label','reset','arrowup','keystrokes','form','set','cancelButtonView','input','submit','Cancel','focus','element','_createButton','listenTo','arrowleft','extendTemplate','locale','arrowdown','_focusCycler','delegate','ck-responsive-form','ck-revision-history-save-revision-form','render','cancel','forEach','focusTracker'];(function(_0x16f81f,_0x54b9ab){const _0x5e66b0=function(_0x4bd49d){while(--_0x4bd49d){_0x16f81f['push'](_0x16f81f['shift']());}};_0x5e66b0(++_0x54b9ab);}(_0x54b9,0xc4));const _0x5e66=function(_0x16f81f,_0x54b9ab){_0x16f81f=_0x16f81f-0x0;let _0x5e66b0=_0x54b9[_0x16f81f];return _0x5e66b0;};import{icons as _0x156f0e}from'ckeditor5/src/core';import{ButtonView as _0x47f805,FocusCycler as _0x3d3a7d,LabeledFieldView as _0x36fd4e,View as _0x40738f,ViewCollection as _0xe77f32,createLabeledInputText as _0x3e852e,injectCssTransitionDisabler as _0x123942,submitHandler as _0xfa23a2}from'ckeditor5/src/ui';import{FocusTracker as _0x53e0c0,KeystrokeHandler as _0x73a621}from'ckeditor5/src/utils';import{getTranslation as _0x98215e}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x40738f{constructor(_0x1a254e){super(_0x1a254e),this[_0x5e66('0x12')]=new _0x53e0c0(),this[_0x5e66('0x27')]=new _0x73a621(),this[_0x5e66('0x29')]('revisionNameInputValue',''),this[_0x5e66('0x1b')]=this[_0x5e66('0x17')](),this[_0x5e66('0x1e')]=this['_createButton'](_0x98215e(_0x1a254e,'Save'),_0x156f0e['check'],'ck-button-save'),this['saveButtonView']['type']=_0x5e66('0x1'),this[_0x5e66('0x2a')]=this['_createButton'](_0x98215e(_0x1a254e,_0x5e66('0x2')),_0x156f0e[_0x5e66('0x10')],_0x5e66('0x23'),_0x5e66('0x10')),this[_0x5e66('0x20')]=new _0xe77f32(),this[_0x5e66('0xb')]=new _0x3d3a7d({'focusables':this[_0x5e66('0x20')],'focusTracker':this[_0x5e66('0x12')],'keystrokeHandler':this[_0x5e66('0x27')],'actions':{'focusPrevious':_0x5e66('0x21'),'focusNext':_0x5e66('0x1d')}}),this[_0x5e66('0x13')]({'tag':_0x5e66('0x28'),'attributes':{'class':['ck',_0x5e66('0xe'),_0x5e66('0xd')],'tabindex':'-1'},'children':[this[_0x5e66('0x1b')],this[_0x5e66('0x1e')],this['cancelButtonView']]}),_0x123942(this);}['render'](){super[_0x5e66('0xf')](),_0xfa23a2({'view':this}),([this[_0x5e66('0x1b')],this[_0x5e66('0x1e')],this[_0x5e66('0x2a')]][_0x5e66('0x11')](_0x44ee2e=>{this[_0x5e66('0x20')][_0x5e66('0x18')](_0x44ee2e),this[_0x5e66('0x12')]['add'](_0x44ee2e[_0x5e66('0x4')]);}),this[_0x5e66('0x27')][_0x5e66('0x6')](this[_0x5e66('0x4')]));const _0x125620=_0x340155=>_0x340155['stopPropagation']();this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x15'),_0x125620),this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x7'),_0x125620),this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x26'),_0x125620),this[_0x5e66('0x27')]['set'](_0x5e66('0xa'),_0x125620);}[_0x5e66('0x3')](){this['_focusCycler'][_0x5e66('0x19')]();}get[_0x5e66('0x1c')](){return this[_0x5e66('0x1b')]['fieldView'][_0x5e66('0x4')][_0x5e66('0x22')]['trim']();}set['revisionName'](_0x1cb0a9){this['revisionNameInputView'][_0x5e66('0x1a')][_0x5e66('0x4')][_0x5e66('0x22')]=_0x1cb0a9[_0x5e66('0x16')]();}[_0x5e66('0x25')](){this['revisionNameInputView']['fieldView'][_0x5e66('0x4')][_0x5e66('0x22')]='';}[_0x5e66('0x17')](){const _0x14c068=new _0x36fd4e(this[_0x5e66('0x9')],_0x3e852e),_0x55699a=_0x14c068[_0x5e66('0x1a')];return _0x55699a['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x14c068[_0x5e66('0x24')]=_0x98215e(this[_0x5e66('0x9')],_0x5e66('0x14')),_0x55699a['on'](_0x5e66('0x0'),()=>{this['revisionNameInputValue']=_0x55699a[_0x5e66('0x4')]['value'][_0x5e66('0x16')]();}),_0x14c068;}[_0x5e66('0x5')](_0x42d471,_0x42a3eb,_0x3ece03,_0x316b12){const _0x32dd33=new _0x47f805(this['locale']);return _0x32dd33['set']({'label':_0x42d471,'icon':_0x42a3eb,'tooltip':!0x0}),_0x32dd33[_0x5e66('0x8')]({'attributes':{'class':_0x3ece03}}),_0x316b12&&_0x32dd33[_0x5e66('0xc')](_0x5e66('0x1f'))['to'](this,_0x316b12),_0x32dd33;}}
|