@ckeditor/ckeditor5-revision-history 38.1.1 → 38.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +7 -6
- package/src/augmentation.d.ts +25 -25
- package/src/changeitem.d.ts +57 -57
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.d.ts +27 -27
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.d.ts +28 -28
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.d.ts +43 -43
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +11 -11
- package/src/index.js +1 -1
- package/src/revision.d.ts +153 -153
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +20 -20
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +95 -95
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +60 -60
- package/src/revisionhistoryconfig.d.ts +60 -60
- package/src/revisionsrepository.d.ts +48 -48
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +77 -77
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +21 -21
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +9 -9
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +4 -4
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +4 -4
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +91 -91
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +17 -17
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +30 -30
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +4 -4
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +80 -80
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +22 -22
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -40
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +4 -4
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +25 -25
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +40 -40
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +8 -8
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +18 -18
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +36 -36
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +22 -22
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +24 -24
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +7 -7
- 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 _0x4774=['distance','_activeViewTarget','createPositionFromPath','adapter','start','schema','code','previousPosition','authors','diffData','modelRange','getRootNames','pairId','createPositionBefore','isLimit','plugins','toModel','_getDiff','downcastDispatcher','requires','dataDowncast','insertion','RevisionViewer','_setConversion','showStack','includes','loadRevisionData','revision-start','ck-revision-history-root-add','change:activeChange','consumable','init','reconvertMarker','mouseover','useFillerType','addClass','slice','merge','addRevisionData','getWalker','consume','getIndex','ck-suggestion-marker-merge','backward','_joinTapes','getRoot','isAtEnd','data','newRevisionId','wrap','ck-suggestion-marker--active','default','unshift','POSITIVE_INFINITY','highest','toViewRange','string','has','getClientRects','restoreRevision','revisionHistoryAttachChange','_step','span','values','dataToMarker','side','_cleanMarkers','revisionHistoryLabel','flat','_cleanUp','showNextChange','end','vid_end','find','length','toViewElement','detachRoot','insertions','editingDowncast','delete','parent','execute','isReady','editing','attributes','isObject','elementEnd','elementStart','currentChangeNumber','return','set','nextSibling','-new','writer','test','diff','_data','children','attributesAfter','removeAttribute','changes','isSuggestion','destroy','element','concat','push','model','softBreak','WidgetToolbarRepository','viewItem','isAddSuggestion','markerName','_findChangeIdFromDomTarget','domEvent','clear','_refreshStartEndIndex','index','ck-editor__editable__overlay','isAdded','add','isContent','nextPosition','_getViewObj','domConverter','data-change-id','_removeMissingPairs','activeView','createRevision','markersEnd','_markSuggestions','high','forward','item','ck-revision-history-root-','change','left','_changeIdToChange','editor','level','attachChange','rootName','revision-end','selection','_update','done','ck-suggestion-marker-split','enqueueChange','splice','activeChange','ck-suggestion-preview-marker-','forEach','startsWith','getChild','removeClass','repository','markerToData','_getChangeFromId','getRevision','toData','insert','isBlock','_getRevisionsRange','split','revision-suggestion','_markInsertions','ck-revision-history-root--active','_changeView','listenTo','removeMarker','deletion','isAfter','updatePosition','_makeTape','getCustomProperty','changeId','then','oldRevisionId','from','suggestion:','commands','get','isEnabled','processor','pluginName','revision-comment:','_appendChild','abs','conversion','isInline','ck-suggestion-preview-marker','upcast','revision-suggestion:','RevisionsRepository','addRevision','toViewPosition','startIndex','change:numberOfChanges','config','low','addMarker:revision-suggestion:insertion','keys','mapper','elementToAttribute','userId','unbindElementFromMarkerName','_makeModelFromViewString','isAttached','for','markersStart','type','createRange','addHighlight','_initInteractions','collaboration.channelId','createUIElement','_threeWayMerge','markerRange','_makeModelFromTape','attributesBefore','removeMarker:revision-suggestion','bindElementToMarker','hasClass','checkAttribute','ck-suggestion-marker','compare','bind','ck-suggestion-marker-','shift','isEqual','maxOffset','filter','forceDisabled','isOnRoot','setAttribute','indexOf','_getViewForChange','markerNameToElements','_balloon','getAttributes','isRemoveSuggestion','remove','markers','createRangeIn','refresh','_sortAndFilterDiffChanges','isNavigationMode','change:activeView','name','getAttribute','_setDistance','target','observeMarkers','vid_start','next','getDomRoot','sort','revision:','nodeAfter','markerToHighlight','_fixObsoleteTags','first','isRemoved','vid','isBefore','isCollapsed','change:isEnabled','removeMarker:revision','revision-viewer','addRoot','mapViewToDom','numberOfChanges','document','getItems','attribute:vid','deletions','addMarker:revision-suggestion:deletion','isIncorrect','right','view','pop','affectsData','_removeRevisionMarkers','_processTape','map','resolve','createAttributeElement','text','endIndex','ck-revision-history-root-remove'];(function(_0x1f1e3b,_0x477492){const _0x373492=function(_0x1aceb1){while(--_0x1aceb1){_0x1f1e3b['push'](_0x1f1e3b['shift']());}};_0x373492(++_0x477492);}(_0x4774,0xe6));const _0x3734=function(_0x1f1e3b,_0x477492){_0x1f1e3b=_0x1f1e3b-0x0;let _0x373492=_0x4774[_0x1f1e3b];return _0x373492;};import{Plugin as _0xaac9dd,Command as _0xb2e483}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x36ccbc}from'ckeditor5/src/utils';import{ContextualBalloon as _0x6b5488}from'ckeditor5/src/ui';import{DocumentFragment as _0x99ef10,Element as _0x38edf8,Text as _0x38e85f,ViewDocumentFragment as _0x33425e,ViewText as _0x466d83,ViewElement as _0x227110,ViewContainerElement as _0x1d88c3,ViewAttributeElement as _0x2885d0,ViewEmptyElement as _0x483d09,ViewRawElement as _0x197fa7,ViewUIElement as _0x37aea1}from'ckeditor5/src/engine';import{Users as _0xa28dc2,getMarkerDomElement as _0x33f3e1}from'ckeditor5-collaboration/src/collaboration-core';import _0x5bb6b2 from'./ui/revisionviewer/changedetailsview';import _0x55e59d from'./revisionsrepository';import _0x3b9c9d from'./changeitem';import{default as _0x12ed21}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x16597d}from'lodash-es';const Y={'c':_0x1d88c3,'a':_0x2885d0,'e':_0x483d09,'r':_0x197fa7,'u':_0x37aea1};export default class d extends _0xaac9dd{static get[_0x3734('0xf2')](){return _0x3734('0x51');}static get[_0x3734('0x4e')](){return[_0xa28dc2,_0x6b5488,_0x55e59d];}constructor(_0x1de6a6){super(_0x1de6a6),this['repository']=this[_0x3734('0xc4')]['plugins'][_0x3734('0xef')](_0x3734('0xfb')),this[_0x3734('0x95')](_0x3734('0xcf'),null),this[_0x3734('0x95')]('activeView',null),this[_0x3734('0x3c')]=null,this[_0x3734('0x95')](_0x3734('0x9a'),null),this[_0x3734('0x95')](_0x3734('0x8d'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x3734('0x23'),(_0x398141,_0x2dade0,_0x1447c0)=>{this[_0x3734('0xcf')]=null,this[_0x3734('0xb9')]=null,this['editor'][_0x3734('0x8e')]['view'][_0x3734('0xc1')](_0x566a50=>{for(const _0x2795a5 of this[_0x3734('0xc4')][_0x3734('0x8e')]['view'][_0x3734('0x29')]['roots'])_0x1447c0?_0x566a50[_0x3734('0xd4')](_0x3734('0xb0'),_0x2795a5):_0x566a50[_0x3734('0x5e')]('ck-editor__editable__overlay',_0x2795a5);});}),this[_0x3734('0x11c')](_0x3734('0xf'))['to'](this,_0x3734('0xcf'),_0x488fe2=>null!==_0x488fe2),this[_0x3734('0x11c')](_0x3734('0x93'))['to'](this,'isReady',this,_0x3734('0x9a'),this,_0x3734('0xcf'),(_0x148054,_0x18723b,_0xd5b1ea)=>_0x148054&&_0xd5b1ea?_0x18723b[_0x3734('0x9f')][_0x3734('0x64')](_0xd5b1ea):0x0),this['bind'](_0x3734('0x28'))['to'](this,'isReady',this,_0x3734('0x9a'),(_0x1d0768,_0x41b0c2)=>_0x1d0768?_0x41b0c2[_0x3734('0x9f')][_0x3734('0x85')]:0x0),this[_0x3734('0xe1')]=null,this[_0x3734('0xc3')]=new Map(),this[_0x3734('0x3e')]=null,this['_balloon']=this[_0x3734('0xc4')][_0x3734('0x4a')][_0x3734('0xef')](_0x6b5488);}[_0x3734('0x5a')](){const _0x11ac0b=this['editor'],_0x16551d=new ShowChangeCommand(_0x11ac0b,{'direction':_0x3734('0x66')}),_0x5f164d=new ShowChangeCommand(_0x11ac0b,{'direction':_0x3734('0xbe')});(_0x11ac0b[_0x3734('0xee')][_0x3734('0xb2')]('showPreviousChange',_0x16551d),_0x11ac0b[_0x3734('0xee')]['add'](_0x3734('0x81'),_0x5f164d),_0x11ac0b[_0x3734('0xee')]['add'](_0x3734('0x76'),new RestoreRevisionCommand(_0x11ac0b)),this['on'](_0x3734('0xff'),()=>{_0x16551d[_0x3734('0xd')](),_0x5f164d[_0x3734('0xd')]();}),this['_setConversion'](),this[_0x3734('0x10f')](),_0x11ac0b['enableReadOnlyMode']('revision-viewer'),_0x11ac0b['plugins']['has'](_0x3734('0xa7')))&&_0x11ac0b['plugins'][_0x3734('0xef')](_0x3734('0xa7'))[_0x3734('0x1')](_0x3734('0x25'));}async['getRevisionData'](_0x27fdcc){await this[_0x3734('0x55')](_0x27fdcc);const _0x3dbb92={};for(const _0x1b2b4f in _0x27fdcc[_0x3734('0x44')]){if(_0x27fdcc[_0x3734('0x44')][_0x1b2b4f]['attachChange']&&!_0x27fdcc[_0x3734('0x44')][_0x1b2b4f][_0x3734('0xc6')]['isAttached'])continue;const _0x7d803f=this[_0x3734('0x33')](JSON['parse'](_0x27fdcc[_0x3734('0x44')][_0x1b2b4f]['insertions'])),_0x5357a4=this['editor'][_0x3734('0x8e')][_0x3734('0x30')][_0x3734('0x29')],_0x14614f=new _0x33425e(_0x5357a4,_0x7d803f[_0x3734('0x35')](_0x4859c1=>this['_getViewObj'](_0x4859c1)));this[_0x3734('0xc4')][_0x3734('0x6a')][_0x3734('0xf1')][_0x3734('0x5d')]('marked'),_0x3dbb92[_0x1b2b4f]=this[_0x3734('0xc4')][_0x3734('0x6a')][_0x3734('0xf1')][_0x3734('0xd9')](_0x14614f),this['editor'][_0x3734('0x6a')][_0x3734('0xf1')]['useFillerType'](_0x3734('0x6e'));}return _0x3dbb92;}async['getRevisionRootsAttributes'](_0x2ce94c){await this[_0x3734('0x55')](_0x2ce94c);const _0x13fdf7={};for(const _0x4a225a in _0x2ce94c[_0x3734('0x44')])_0x2ce94c['diffData'][_0x4a225a]['attachChange']&&!_0x2ce94c[_0x3734('0x44')][_0x4a225a][_0x3734('0xc6')][_0x3734('0x109')]||(_0x13fdf7[_0x4a225a]=_0x2ce94c[_0x3734('0x44')][_0x4a225a][_0x3734('0x9d')]||{});return _0x13fdf7;}[_0x3734('0x33')](_0x1ee0e4){return(_0x1ee0e4=_0x1ee0e4['filter'](_0x4f5e60=>!_0x4f5e60[_0x3734('0x11')]||_0x3734('0x56')!==_0x4f5e60['name']&&_0x3734('0xc8')!==_0x4f5e60[_0x3734('0x11')]))['forEach'](_0x41857e=>{_0x3734('0x73')!=typeof _0x41857e&&(_0x41857e[_0x3734('0x9c')]=this['_removeRevisionMarkers'](_0x41857e[_0x3734('0x9c')]),_0x41857e['attributes']=_0x41857e[_0x3734('0x8f')][_0x3734('0x0')](_0x5c8084=>!_0x5c8084[0x0][_0x3734('0xd2')]('data-revision-')));}),_0x1ee0e4;}async[_0x3734('0x11b')](_0x404b86,_0x34b603,_0x56235a=!0x1){if(!this['isEnabled'])return;const _0x146ccd=this[_0x3734('0x9a')],_0x1fbd86=this[_0x3734('0xd5')],_0x3031fc=_0x3734('0x73')==typeof _0x404b86?_0x1fbd86['getRevision'](_0x404b86):_0x404b86,_0x31ad36='string'==typeof _0x34b603?_0x1fbd86['getRevision'](_0x34b603):_0x34b603,_0x25a24c=_0x3031fc['id'],_0x3f631b=_0x31ad36?_0x31ad36['id']:null;if(!_0x56235a&&this[_0x3734('0x9a')]&&this[_0x3734('0x9a')][_0x3734('0x6b')]===_0x25a24c&&this[_0x3734('0x9a')][_0x3734('0xeb')]===_0x3f631b)return Promise[_0x3734('0x36')]();this[_0x3734('0x8d')]=!0x1,this[_0x3734('0xb9')]=null,this[_0x3734('0xcf')]=null,this[_0x3734('0x9a')]=new _0x12ed21(_0x25a24c,_0x3f631b);const _0x55c93f=this[_0x3734('0xdc')](_0x3031fc,_0x31ad36,!0x0)[_0x3734('0x35')](_0x29413d=>this['loadRevisionData'](_0x29413d));return _0x55c93f[_0x3734('0xa4')](new Promise(_0x501027=>{setTimeout(_0x501027,0x14);})),Promise['all'](_0x55c93f)['then'](()=>{if(!this[_0x3734('0xf0')])return;this[_0x3734('0x80')]();const _0x18fb2e=this[_0x3734('0x4c')](_0x25a24c,_0x3f631b);for(const _0x348ad9 of _0x18fb2e[_0x3734('0x9f')])this[_0x3734('0xc3')][_0x3734('0x95')](_0x348ad9['id'],_0x348ad9);this[_0x3734('0xc4')][_0x3734('0xa5')]['enqueueChange']({'isUndoable':!0x1},_0x5c6b3d=>{for(const _0x40cd21 of this['editor'][_0x3734('0xa5')][_0x3734('0x29')][_0x3734('0x46')]())_0x5c6b3d[_0x3734('0x87')](_0x40cd21);for(const _0xb8f7fa of Object[_0x3734('0x103')](_0x18fb2e[_0x3734('0xa5')])){const _0x7285e9=_0x5c6b3d[_0x3734('0x26')](_0xb8f7fa);for(const _0x18b478 of Object['keys'](_0x18fb2e[_0x3734('0x8f')][_0xb8f7fa]))_0x5c6b3d[_0x3734('0x3')](_0x18b478,_0x18fb2e[_0x3734('0x8f')][_0xb8f7fa][_0x18b478],_0x7285e9);_0x5c6b3d[_0x3734('0xda')](_0x18fb2e[_0x3734('0xa5')][_0xb8f7fa],_0x7285e9,0x0);}}),this[_0x3734('0x9a')]['_setChanges'](this['_sortAndFilterDiffChanges'](_0x18fb2e[_0x3734('0x9f')])),this[_0x3734('0x8d')]=!0x0;})['catch'](_0x3a8dbe=>{console['error'](_0x3a8dbe),this[_0x3734('0x80')](),_0x146ccd&&(this[_0x3734('0x9a')]=_0x146ccd),this['isReady']=!0x0;});}[_0x3734('0x61')](_0x1b89e6,_0x56af06){const _0x32e024=this['repository'][_0x3734('0xba')](_0x1b89e6);return _0x32e024['on'](_0x3734('0xca'),(_0x4aeb46,_0x20c4b6,_0x1f8369)=>_0x56af06(_0x20c4b6,_0x1f8369,_0x32e024)),this[_0x3734('0xd5')][_0x3734('0xfc')](_0x32e024),_0x32e024;}[_0x3734('0x55')](_0x23c178){if(!_0x23c178||_0x23c178[_0x3734('0x44')])return Promise[_0x3734('0x36')]();{const _0xb6e8d4=this[_0x3734('0xc4')]['config'][_0x3734('0xef')](_0x3734('0x110'));return this['adapter'][_0x3734('0xd8')]({'channelId':_0xb6e8d4,'revisionId':_0x23c178['id']})[_0x3734('0xea')](_0x1a7529=>{_0x23c178['_update']({'diffData':_0x1a7529[_0x3734('0x44')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x3734('0x7d')](),this[_0x3734('0xe1')]&&this[_0x3734('0xe1')]['destroy'](),this[_0x3734('0xe1')]=null,this[_0x3734('0xc3')][_0x3734('0xad')](),this[_0x3734('0xc4')]['model'][_0x3734('0xcd')]({'isUndoable':!0x1},_0x254b92=>{for(const _0x111212 of this['editor'][_0x3734('0xa5')]['document'][_0x3734('0x46')]())_0x254b92[_0x3734('0x87')](_0x111212);});}[_0x3734('0xe')](_0x596075){const _0x5157c9=[],_0x274ee9=new Map();for(const _0xc555cb of this[_0x3734('0xc4')][_0x3734('0xa5')]['document'][_0x3734('0x46')]()){const _0x569ec6=this[_0x3734('0xc4')]['editing'][_0x3734('0x30')][_0x3734('0x18')](_0xc555cb);if(!_0x569ec6)continue;const _0x57a99c=_0x569ec6[_0x3734('0x75')]()[_0x3734('0xbf')](0x0);_0x57a99c&&(_0x5157c9[_0x3734('0xa4')](_0xc555cb),_0x274ee9[_0x3734('0x95')](_0xc555cb,_0x57a99c));}return _0x5157c9[_0x3734('0x19')]((_0x487176,_0x51ed85)=>{const _0x2649fc=_0x274ee9[_0x3734('0xef')](_0x487176),_0x1f99e1=_0x274ee9[_0x3734('0xef')](_0x51ed85);return _0x2649fc['y']-_0x1f99e1['y']||_0x2649fc['x']-_0x1f99e1['x'];}),(_0x596075=_0x596075['filter'](_0x1b7477=>_0x5157c9[_0x3734('0x54')](_0x1b7477[_0x3734('0xc7')])))[_0x3734('0x19')]((_0x4eddd3,_0x231777)=>_0x5157c9[_0x3734('0x4')](_0x4eddd3[_0x3734('0xc7')])-_0x5157c9[_0x3734('0x4')](_0x231777['rootName'])),_0x596075;}[_0x3734('0xe7')](_0x2a9847){const _0x176be3=Array[_0x3734('0xec')](_0x2a9847['markers'])[_0x3734('0x0')](([_0x41ad91,_0x5df5b7])=>_0x41ad91[_0x3734('0xd2')](_0x3734('0x1a'))&&!_0x5df5b7[_0x3734('0x22')]),_0x5a08fb=Array[_0x3734('0xec')](this[_0x3734('0xc4')][_0x3734('0xa5')][_0x3734('0xc')](_0x2a9847)[_0x3734('0x62')]({'singleCharacters':!0x0}));if(0x0!=_0x176be3[_0x3734('0x85')])for(const _0x141411 of _0x5a08fb){const [_0x2b9d8d,_0x5f2883]=_0x176be3[0x0],[,_0x118f02,_0x1c2b38]=_0x2b9d8d[_0x3734('0xdd')](':');if(_0x5f2883[_0x3734('0x82')]['isEqual'](_0x141411['nextPosition'])&&_0x176be3[_0x3734('0x11e')](),(_0x141411[_0x3734('0x42')][_0x3734('0x11f')](_0x5f2883['start'])||_0x141411[_0x3734('0x42')][_0x3734('0xe5')](_0x5f2883['start']))&&(_0x3734('0x50')==_0x118f02?_0x141411[_0x3734('0xb1')]={'userId':_0x1c2b38}:_0x3734('0xe4')==_0x118f02&&(_0x141411[_0x3734('0x1f')]={'userId':_0x1c2b38})),0x0==_0x176be3['length'])break;}return _0x5a08fb;}[_0x3734('0xae')](_0x320723){const _0x561552=new Map();for(let _0x5650df=0x0;_0x5650df<_0x320723[_0x3734('0x85')];_0x5650df++)_0x3734('0x38')===_0x320723[_0x5650df]['type']?(_0x320723[_0x5650df]['item'][_0x3734('0xfe')]=_0x5650df,_0x320723[_0x5650df]['item'][_0x3734('0x39')]=_0x5650df):(_0x3734('0x92')===_0x320723[_0x5650df][_0x3734('0x10c')]?_0x320723[_0x5650df][_0x3734('0xbf')]['startIndex']=_0x5650df:_0x3734('0x91')===_0x320723[_0x5650df][_0x3734('0x10c')]&&(_0x320723[_0x5650df][_0x3734('0xbf')][_0x3734('0x39')]=_0x5650df),_0x561552[_0x3734('0x95')](_0x320723[_0x5650df]['id'],_0x5650df));for(const _0xf35f3c of _0x561552[_0x3734('0x7a')]())_0x3734('0x92')===_0x320723[_0xf35f3c][_0x3734('0x10c')]?_0x320723[_0xf35f3c][_0x3734('0xbf')]['endIndex']=_0x561552[_0x3734('0xef')](_0x320723[_0xf35f3c][_0x3734('0x47')]):'elementEnd'===_0x320723[_0xf35f3c][_0x3734('0x10c')]&&(_0x320723[_0xf35f3c][_0x3734('0xbf')][_0x3734('0xfe')]=_0x561552['get'](_0x320723[_0xf35f3c]['pairId']));}['_processTape'](_0x3ff6e0){for(let _0x5a0a8d=0x0;_0x5a0a8d<_0x3ff6e0[_0x3734('0x85')];_0x5a0a8d++){if(_0x3734('0x92')===_0x3ff6e0[_0x5a0a8d][_0x3734('0x10c')])_0x3ff6e0[_0x5a0a8d]['item'][_0x3734('0xfe')]=_0x5a0a8d;else{if(_0x3734('0x91')===_0x3ff6e0[_0x5a0a8d]['type']){_0x3ff6e0[_0x5a0a8d][_0x3734('0xbf')][_0x3734('0x39')]=_0x5a0a8d;const _0x1aa918=_0x3ff6e0[_0x5a0a8d][_0x3734('0xbf')][_0x3734('0xfe')];_0x3ff6e0[_0x1aa918][_0x3734('0x47')]=_0x3ff6e0[_0x5a0a8d]['id'],_0x3ff6e0[_0x5a0a8d][_0x3734('0x47')]=_0x3ff6e0[_0x1aa918]['id'];}else _0x3ff6e0[_0x5a0a8d][_0x3734('0xbf')][_0x3734('0xfe')]=_0x5a0a8d,_0x3ff6e0[_0x5a0a8d][_0x3734('0xbf')][_0x3734('0x39')]=_0x5a0a8d,_0x3ff6e0[_0x5a0a8d][_0x3734('0x47')]=null;}_0x3ff6e0[_0x5a0a8d][_0x3734('0x10b')]||(_0x3ff6e0[_0x5a0a8d]['markersStart']=[],_0x3ff6e0[_0x5a0a8d][_0x3734('0xbb')]=[]);}}[_0x3734('0xdf')](_0x3b775d,_0x20a46f){const _0x4eb85e=_0x3b775d[_0x3734('0x0')](_0x1deb12=>!_0x1deb12['isAdded']);for(let _0x55b57f=0x0;_0x55b57f<_0x20a46f['length'];_0x55b57f++)_0x20a46f[_0x55b57f]['isAdded']&&(_0x4eb85e[_0x55b57f][_0x3734('0xb1')]=_0x20a46f[_0x55b57f]['isAdded']);}['_makeModelFromViewString'](_0x301a75){const _0x231795=JSON['parse'](_0x301a75),_0x2d4487=this[_0x3734('0xc4')][_0x3734('0x8e')][_0x3734('0x30')]['document'],_0x14030b=new _0x33425e(_0x2d4487,_0x231795[_0x3734('0x35')](_0x16383f=>this[_0x3734('0xb5')](_0x16383f)));return this[_0x3734('0xc4')][_0x3734('0x6a')][_0x3734('0x4b')](_0x14030b);}[_0x3734('0xb5')](_0x106fb1){const _0x161656=this[_0x3734('0xc4')][_0x3734('0x8e')]['view'][_0x3734('0x29')];if(_0x3734('0x73')==typeof _0x106fb1)return new _0x466d83(_0x161656,_0x106fb1);{const _0xf0db5f=_0x106fb1[_0x3734('0x9c')][_0x3734('0x35')](_0x2d3758=>this[_0x3734('0xb5')](_0x2d3758));return new(Y[_0x106fb1[(_0x3734('0x10c'))]]||_0x227110)(_0x161656,_0x106fb1[_0x3734('0x11')],_0x106fb1[_0x3734('0x8f')],_0xf0db5f);}}['_getDiff'](_0x128478,_0x36796c=null){const _0x26b1a4=this[_0x3734('0xd5')]['getRevision'](_0x128478),_0x185e15=_0x36796c?this['repository'][_0x3734('0xd8')](_0x36796c):null,_0x43d85e=this[_0x3734('0xdc')](_0x26b1a4,_0x185e15),_0x9bf4e=_0x43d85e[_0x43d85e[_0x3734('0x85')]-0x1],_0x326db2=new Map(),_0x5d124e={'model':{},'attributes':{},'changes':[]},_0x5ebc6d=new Set(),_0x27ecb0=new Map();for(let _0x588611=_0x43d85e['length']-0x1;_0x588611>=0x0;_0x588611--){const _0x5d1cab=_0x43d85e[_0x588611];for(const _0x3f633f of Object[_0x3734('0x103')](_0x5d1cab[_0x3734('0x44')]))if(_0x5d1cab[_0x3734('0x44')][_0x3f633f]['attachChange']){const _0x5e7d94=_0x5d1cab['diffData'][_0x3f633f]['attachChange'];_0x5e7d94[_0x3734('0x109')]?(_0x5ebc6d[_0x3734('0xb2')](_0x3f633f),_0x27ecb0[_0x3734('0x74')](_0x3f633f)&&_0x27ecb0['get'](_0x3f633f)['userId']==_0x5e7d94[_0x3734('0x106')]?_0x27ecb0['delete'](_0x3f633f):_0x27ecb0[_0x3734('0x95')](_0x3f633f,_0x5e7d94)):_0x27ecb0[_0x3734('0x74')](_0x3f633f)?(_0x5ebc6d[_0x3734('0x8a')](_0x3f633f),_0x27ecb0[_0x3734('0x8a')](_0x3f633f)):(_0x5ebc6d[_0x3734('0xb2')](_0x3f633f),_0x27ecb0[_0x3734('0x95')](_0x3f633f,_0x5e7d94));}else _0x5ebc6d['add'](_0x3f633f);}for(const _0x45cbed of _0x5ebc6d){const _0x108854=_0x27ecb0[_0x3734('0x74')](_0x45cbed)&&!_0x27ecb0[_0x3734('0xef')](_0x45cbed)['isAttached'];let _0x2280fa=_0x108854?_0x43d85e[_0x3734('0x85')]-0x1:0x0;const _0x362683=_0x108854?-0x1:0x1;for(;_0x43d85e[_0x2280fa];){const _0x5985d8=_0x43d85e[_0x2280fa];if(_0x5985d8[_0x3734('0x44')][_0x45cbed]){const _0x5ddc8f=_0x108854?_0x5985d8['diffData'][_0x45cbed][_0x3734('0x115')]:_0x5985d8[_0x3734('0x44')][_0x45cbed][_0x3734('0x9d')];_0x5d124e['attributes'][_0x45cbed]=_0x5ddc8f?_0x16597d(_0x5ddc8f):{};break;}_0x2280fa+=_0x362683;}}for(const _0x142d82 of _0x43d85e){_0x142d82[_0x3734('0xa5')]={};for(const _0x4a2ac3 of _0x142d82[_0x3734('0x43')])_0x326db2['set'](_0x4a2ac3['id'],_0x4a2ac3);for(const _0x219e8f of _0x5ebc6d){const _0xb5b11b=_0x142d82['diffData'][_0x219e8f]?_0x142d82['diffData'][_0x219e8f]['insertions']:'[]',_0xe92caf=_0x142d82[_0x3734('0x44')][_0x219e8f]?_0x142d82[_0x3734('0x44')][_0x219e8f][_0x3734('0x2c')]:'[]';_0x142d82[_0x3734('0xa5')][_0x219e8f]={'insertions':this[_0x3734('0x108')](_0xb5b11b),'deletions':this[_0x3734('0x108')](_0xe92caf)};}}for(const _0x2036c4 of _0x5ebc6d){let _0x1d7d42=null,_0x3b214d=0x0;const _0x422a60=new Map(Array['from'](_0x26b1a4[_0x3734('0xa5')][_0x2036c4][_0x3734('0x88')]['markers'])[_0x3734('0x0')](([_0x4459a2])=>!_0x4459a2[_0x3734('0xd2')](_0x3734('0x1a'))));let _0x15f2a5=0x0;for(const _0x389e00 of _0x43d85e){const _0x2ca141=this[_0x3734('0xe7')](_0x389e00['model'][_0x2036c4]['insertions']);_0x389e00==_0x26b1a4?(_0x1d7d42=_0x2ca141,_0x3b214d=_0x1d7d42[_0x3734('0x85')],_0x1d7d42[_0x3734('0xd1')](_0x118375=>{_0x118375['id']=_0x15f2a5++;}),this['_processTape'](_0x1d7d42)):this['_markInsertions'](_0x1d7d42,_0x2ca141);const _0x54c61f=_0x1d7d42[_0x3734('0x0')](_0x6fcb85=>!_0x6fcb85['isAdded'])[_0x3734('0x35')](_0x42a904=>_0x42a904['id']);let _0x307bfd=0x0;const _0x207f95=this[_0x3734('0xe7')](_0x389e00[_0x3734('0xa5')][_0x2036c4][_0x3734('0x2c')]);_0x207f95[_0x3734('0xd1')](_0x4cbbeb=>{_0x4cbbeb[_0x3734('0x1f')]?_0x4cbbeb['id']=_0x3b214d++:_0x4cbbeb['id']=_0x54c61f[_0x307bfd++];}),this[_0x3734('0x34')](_0x207f95),this['_setDistance'](_0x1d7d42,_0x3734('0xb1')),this['_setDistance'](_0x207f95,_0x3734('0x1f')),_0x389e00==_0x26b1a4&&this['_markMarkers'](_0x1d7d42,_0x422a60),_0x1d7d42=this[_0x3734('0x67')](_0x1d7d42,_0x207f95),this[_0x3734('0xae')](_0x1d7d42),this[_0x3734('0x13')](_0x1d7d42,_0x3734('0x1f'));}_0x1d7d42=_0x1d7d42[_0x3734('0x0')](_0xddbe41=>!(_0xddbe41['isAdded']&&_0xddbe41[_0x3734('0x1f')]));const _0x1b762b=new Map(_0x9bf4e['model'][_0x2036c4][_0x3734('0x2c')]['markers']),_0x23f2e2=new Set(_0x422a60[_0x3734('0x103')]());for(const _0x4ade20 of _0x1b762b['keys']())_0x23f2e2['delete'](_0x4ade20);this[_0x3734('0xbc')](_0x1d7d42,_0x23f2e2),this[_0x3734('0x1d')](_0x1d7d42),_0x1d7d42=this[_0x3734('0xb8')](_0x1d7d42),_0x1d7d42=this['_markMismatchedRemovedTags'](_0x1d7d42),_0x1d7d42=this['_removeUnsupportedChanges'](_0x1d7d42);const {root:_0x26b340,changes:_0x41431f}=this[_0x3734('0x114')](_0x1d7d42,_0x326db2,_0x2036c4);_0x5d124e[_0x3734('0xa5')][_0x2036c4]=_0x26b340;const _0x1838a2=_0x27ecb0[_0x3734('0xef')](_0x2036c4);if(_0x1838a2){const _0x17a7a7=_0x326db2[_0x3734('0xef')](_0x1838a2[_0x3734('0x106')]),_0xef5827=new _0x3b9c9d({'author':_0x17a7a7,'type':_0x1838a2['isAttached']?_0x3734('0xb2'):_0x3734('0xa'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2036c4});_0x41431f[_0x3734('0x6f')](_0xef5827),_0x5d124e['attributes'][_0x2036c4][_0x3734('0x77')]=_0xef5827['id'];}_0x5d124e[_0x3734('0x9f')]=_0x5d124e[_0x3734('0x9f')]['concat'](_0x41431f);}return _0x5d124e;}['_markMarkers'](_0x5bb435,_0x2c4983){for(let _0x3972ca=0x0;_0x3972ca<_0x5bb435[_0x3734('0x85')];_0x3972ca++)for(const [_0xaf4682,_0x3b157f]of _0x2c4983)_0x3b157f['start'][_0x3734('0x11f')](_0x5bb435[_0x3972ca][_0x3734('0x42')])&&_0x5bb435[_0x3972ca][_0x3734('0x10b')][_0x3734('0xa4')](_0xaf4682),_0x3b157f[_0x3734('0x82')][_0x3734('0x11f')](_0x5bb435[_0x3972ca][_0x3734('0xb4')])&&_0x5bb435[_0x3972ca][_0x3734('0xbb')][_0x3734('0xa4')](_0xaf4682);}['_joinTapes'](_0x13964b,_0x505625){let _0x39cc0b=[],_0x27870d=0x0,_0x3b478d=0x0;for(;_0x27870d<_0x13964b[_0x3734('0x85')]||_0x3b478d<_0x505625[_0x3734('0x85')];){const _0x405eb7=_0x13964b[_0x27870d]||{},_0x557db3=_0x505625[_0x3b478d]||{};if(_0x405eb7['id']==_0x557db3['id'])_0x27870d++,_0x3b478d++,_0x39cc0b[_0x3734('0xa4')](_0x405eb7);else{if(_0x557db3['isRemoved']&&_0x405eb7['isAdded']){const {commonTape:_0x51c49a,iEnd:_0x5755d7,jEnd:_0x51c7ab}=this[_0x3734('0x112')](_0x13964b,_0x27870d,_0x505625,_0x3b478d);_0x39cc0b=_0x39cc0b['concat'](_0x51c49a),_0x27870d=_0x5755d7,_0x3b478d=_0x51c7ab;}else _0x557db3[_0x3734('0x1f')]?(_0x3b478d++,_0x39cc0b['push'](_0x557db3)):(_0x27870d++,_0x39cc0b[_0x3734('0xa4')](_0x405eb7));}}return _0x39cc0b;}[_0x3734('0xbc')](_0x43dbd9,_0x2fa6dc){const _0x12468b=[];for(let _0x53dc7e=0x0;_0x53dc7e<_0x43dbd9[_0x3734('0x85')];_0x53dc7e++){for(let _0x3c0a85=0x0;_0x3c0a85<_0x43dbd9[_0x53dc7e][_0x3734('0x10b')][_0x3734('0x85')];_0x3c0a85++){const _0x5a2758=_0x43dbd9[_0x53dc7e][_0x3734('0x10b')][_0x3c0a85];if(!_0x2fa6dc[_0x3734('0x74')](_0x5a2758))continue;const {group:_0x1621cc,type:_0x2f3dce,authorId:_0x3e22f3}=_0x34610b(_0x5a2758);_0x3734('0xde')!=_0x1621cc||_0x3734('0x50')!=_0x2f3dce&&_0x3734('0xe4')!=_0x2f3dce||(_0x12468b[_0x3734('0x6f')]({'type':_0x2f3dce,'name':_0x5a2758,'userId':_0x3e22f3}),_0x43dbd9[_0x53dc7e]['markersStart'][_0x3734('0xce')](_0x3c0a85,0x1),_0x3c0a85--);}_0xc2c350(_0x43dbd9[_0x53dc7e]);for(let _0x585a91=0x0;_0x585a91<_0x43dbd9[_0x53dc7e][_0x3734('0xbb')]['length'];_0x585a91++){const _0xb65bde=_0x43dbd9[_0x53dc7e][_0x3734('0xbb')][_0x585a91];if(!_0x2fa6dc[_0x3734('0x74')](_0xb65bde))continue;const {group:_0x3042a2,type:_0x3b7c58}=_0x34610b(_0xb65bde);if('revision-suggestion'!=_0x3042a2||_0x3734('0x50')!=_0x3b7c58&&_0x3734('0xe4')!=_0x3b7c58)continue;_0x43dbd9[_0x53dc7e][_0x3734('0xbb')][_0x3734('0xce')](_0x585a91,0x1),_0x585a91--;const _0x418ef1=_0x12468b['findIndex'](_0x1cac7e=>_0x1cac7e[_0x3734('0x11')]==_0xb65bde);_0x418ef1>-0x1&&_0x12468b[_0x3734('0xce')](_0x418ef1,0x1);}}function _0x34610b(_0x4635ce){const _0x115b4c=_0x4635ce[_0x3734('0xdd')](':');return{'group':_0x115b4c[0x0],'type':_0x115b4c[0x1],'subType':_0x115b4c['length']>=0x5?_0x115b4c[0x2]:null,'id':_0x115b4c[_0x3734('0x85')]<0x5?_0x115b4c[0x2]:_0x115b4c[0x3],'authorId':_0x115b4c[_0x3734('0x85')]<0x5?_0x115b4c[0x3]:_0x115b4c[0x4],'markerCount':0x6==_0x115b4c[_0x3734('0x85')]?_0x115b4c[0x5]:null};}function _0xc2c350(_0x402ae7){for(let _0xd1a8f0=0x0;_0xd1a8f0<_0x12468b['length'];_0xd1a8f0++){if(_0x402ae7['isAdded']&&_0x3734('0x50')==_0x12468b[_0xd1a8f0][_0x3734('0x10c')])return _0x402ae7[_0x3734('0xa9')]=_0x12468b[_0xd1a8f0],void delete _0x402ae7['isAdded'];if(!_0x402ae7[_0x3734('0xb1')]&&!_0x402ae7[_0x3734('0x1f')]&&_0x3734('0xe4')==_0x12468b[_0xd1a8f0]['type'])return void(_0x402ae7[_0x3734('0x9')]=_0x12468b[_0xd1a8f0]);}}}[_0x3734('0x13')](_0x3a52e3,_0x1ba644){let _0x4ffce8=0x0,_0x52c0da=!0x1;const _0x2e14bb=new Map();for(const _0x181c53 of _0x3a52e3)_0x181c53[_0x1ba644]?_0x52c0da&&(_0x4ffce8++,_0x52c0da=!0x1):(_0x4ffce8++,_0x52c0da=!0x0),_0x2e14bb['set'](_0x181c53['id'],_0x4ffce8);for(let _0x480ec7=0x0;_0x480ec7<_0x3a52e3[_0x3734('0x85')];_0x480ec7++){if(_0x3734('0x1f')==_0x1ba644&&_0x3a52e3[_0x480ec7][_0x3734('0xb1')]||_0x3734('0xb1')==_0x1ba644&&_0x3a52e3[_0x480ec7][_0x3734('0x1f')])continue;if(_0x3734('0x38')==_0x3a52e3[_0x480ec7]['type']){_0x3a52e3[_0x480ec7][_0x3734('0x3b')]=0x0;continue;}const _0x1ac3d1=_0x2e14bb[_0x3734('0xef')](_0x3a52e3[_0x480ec7]['pairId']),_0x128627=_0x2e14bb[_0x3734('0xef')](_0x3a52e3[_0x480ec7]['id']);_0x3a52e3[_0x480ec7]['distance']=_0x1ac3d1-_0x128627;}}['_getRevisionsRange'](_0x3011f0,_0x30957b,_0x193da6=!0x1){const _0x18e20e=[];let _0x2c6a19=this[_0x3734('0xd5')][_0x3734('0x64')](_0x3011f0),_0x1b0ac8=this[_0x3734('0xd5')]['getIndex'](_0x30957b);for(-0x1==_0x1b0ac8&&(_0x1b0ac8=this[_0x3734('0xd5')]['_revisions'][_0x3734('0x85')],_0x193da6=!0x1);_0x2c6a19<_0x1b0ac8;)_0x18e20e[_0x3734('0xa4')](this['repository'][_0x3734('0xd8')](_0x2c6a19)),_0x2c6a19++;return _0x193da6&&_0x18e20e[_0x3734('0xa4')](this[_0x3734('0xd5')][_0x3734('0xd8')](_0x2c6a19)),_0x18e20e;}[_0x3734('0x112')](_0x387d3e,_0x20ae7e,_0x593a1f,_0x28d2f8){const _0x52f824=this[_0x3734('0xc4')][_0x3734('0xa5')][_0x3734('0x40')];let _0x495be1=_0x20ae7e;for(;_0x387d3e[_0x495be1]&&_0x387d3e[_0x495be1][_0x3734('0xb1')];)_0x495be1++;let _0x61ae67=_0x28d2f8;for(;_0x593a1f[_0x61ae67]&&_0x593a1f[_0x61ae67][_0x3734('0x1f')];)_0x61ae67++;_0xdb51c1(_0x387d3e,_0x20ae7e,_0x495be1),_0xdb51c1(_0x593a1f,_0x28d2f8,_0x61ae67);const _0xc9209=_0x593a1f['slice'](_0x28d2f8,_0x61ae67)[_0x3734('0xa3')](_0x387d3e[_0x3734('0x5f')](_0x20ae7e,_0x495be1));return _0xc9209[_0x3734('0x19')]((_0x165f83,_0x29d7a8)=>_0x165f83['side']!=_0x29d7a8[_0x3734('0x7c')]?_0x165f83['side']-_0x29d7a8[_0x3734('0x7c')]:_0x165f83[_0x3734('0xc5')]!=_0x29d7a8['level']?_0x165f83[_0x3734('0xc5')]-_0x29d7a8[_0x3734('0xc5')]:_0x165f83[_0x3734('0x3b')]!=_0x29d7a8[_0x3734('0x3b')]?_0x29d7a8[_0x3734('0x3b')]-_0x165f83['distance']:!!_0x165f83['isAdded']!=!!_0x29d7a8[_0x3734('0xb1')]?-0x1==_0x165f83[_0x3734('0x7c')]||0x0==_0x165f83['side']?_0x165f83[_0x3734('0xb1')]?-0x1:0x1:_0x165f83[_0x3734('0xb1')]?0x1:-0x1:_0x165f83[_0x3734('0xaf')]-_0x29d7a8[_0x3734('0xaf')]),{'commonTape':_0xc9209,'iEnd':_0x495be1,'jEnd':_0x61ae67};function _0xdb51c1(_0x18b190,_0x3bc11f,_0x427585){let _0x3bace2=-0x1,_0x4ebabd=Number[_0x3734('0x70')],_0x825e29=!0x0;for(let _0x3166de=_0x3bc11f;_0x3166de<_0x427585;_0x3166de++)if(_0x52f824[_0x3734('0xf7')](_0x18b190[_0x3166de][_0x3734('0xbf')])||(_0x825e29=!0x1),_0x18b190[_0x3166de][_0x3734('0xbf')][_0x3734('0xfe')]<_0x3bc11f&&(_0x3bace2=_0x3166de),_0x18b190[_0x3166de][_0x3734('0xbf')][_0x3734('0x39')]>=_0x427585){_0x4ebabd=_0x3166de;break;}_0x825e29&&(_0x3bace2=_0x427585-0x1);for(let _0x4f2f41=_0x3bc11f;_0x4f2f41<_0x427585;_0x4f2f41++)_0x18b190[_0x4f2f41]['side']=_0x4f2f41<=_0x3bace2?-0x1:_0x4f2f41<_0x4ebabd?0x0:0x1,_0x18b190[_0x4f2f41][_0x3734('0xaf')]=_0x4f2f41;let _0x543037=0x0;for(let _0x5eea91=_0x3bc11f;_0x5eea91<=_0x3bace2;_0x5eea91++)0x0==_0x18b190[_0x5eea91][_0x3734('0x3b')]?_0x18b190[_0x5eea91]['level']=_0x543037:(_0x543037++,_0x18b190[_0x5eea91]['level']=_0x543037,_0x543037++);for(let _0x187f12=_0x3bc11f;_0x187f12<_0x427585;_0x187f12++)0x0==_0x18b190[_0x187f12]['side']&&(_0x18b190[_0x187f12][_0x3734('0xc5')]=_0x543037);_0x543037=0x0;for(let _0x5dcd93=_0x427585-0x1;_0x5dcd93>=_0x4ebabd;_0x5dcd93--)0x0==_0x18b190[_0x5dcd93]['distance']?_0x18b190[_0x5dcd93]['level']=_0x543037:(_0x543037--,_0x18b190[_0x5dcd93][_0x3734('0xc5')]=_0x543037,_0x543037--);}}[_0x3734('0x1d')](_0x46b498){const _0x5dbeea=new Map(),_0x33616d=this[_0x3734('0xc4')]['model'][_0x3734('0x40')];for(let _0x530e24=0x1;_0x530e24<_0x46b498['length'];_0x530e24++){let _0x5b65f7,_0xd86f22,_0x1ac721;const _0xcbbbd8=_0x46b498[_0x530e24],_0x3ae63d=_0x46b498[_0x530e24-0x1];if(_0x3734('0x38')==_0xcbbbd8['type'])continue;if(_0xcbbbd8[_0x3734('0x10c')]!=_0x3ae63d['type'])continue;if(!_0x33616d[_0x3734('0xdb')](_0x3ae63d[_0x3734('0xbf')])||_0x33616d[_0x3734('0x49')](_0x3ae63d[_0x3734('0xbf')]))continue;if(!_0x33616d[_0x3734('0xdb')](_0xcbbbd8['item'])||_0x33616d[_0x3734('0x49')](_0xcbbbd8['item']))continue;if((_0x46b498[_0x530e24][_0x3734('0xb1')]||_0x46b498[_0x530e24][_0x3734('0xa9')])&&_0x46b498[_0x530e24-0x1][_0x3734('0x1f')])_0x5b65f7=_0x46b498[_0x530e24],_0xd86f22=_0x46b498[_0x530e24-0x1],_0x1ac721=_0x530e24-0x1;else{if(!_0x46b498[_0x530e24][_0x3734('0x1f')]||!_0x46b498[_0x530e24-0x1][_0x3734('0xb1')]&&!_0x46b498[_0x530e24-0x1]['isAddSuggestion'])continue;_0x5b65f7=_0x46b498[_0x530e24-0x1],_0xd86f22=_0x46b498[_0x530e24],_0x1ac721=_0x530e24;}const _0x38ddbc=_0x5b65f7[_0x3734('0xc5')]==_0xd86f22[_0x3734('0xc5')],_0x270302=Math[_0x3734('0xf5')](_0x5b65f7['level'])<Math[_0x3734('0xf5')](_0xd86f22[_0x3734('0xc5')])&&0x0==_0xd86f22[_0x3734('0x3b')];(_0x38ddbc||_0x270302)&&(_0x5dbeea[_0x3734('0x95')](_0xd86f22['id'],_0x5b65f7['id']),_0x46b498['splice'](_0x1ac721,0x1),_0x530e24--,_0x5b65f7[_0x3734('0xb1')]=!0x1);}for(let _0x34d44c=0x0;_0x34d44c<_0x46b498[_0x3734('0x85')];_0x34d44c++)_0x5dbeea[_0x3734('0x74')](_0x46b498[_0x34d44c][_0x3734('0x47')])&&(_0x46b498[_0x34d44c][_0x3734('0x47')]=_0x5dbeea[_0x3734('0xef')](_0x46b498[_0x34d44c][_0x3734('0x47')]));}['_removeMissingPairs'](_0x13c2a5){const _0x202273=new Set(_0x13c2a5[_0x3734('0x35')](_0x25bc07=>_0x25bc07['id']));for(let _0x39d3f1=0x0;_0x39d3f1<_0x13c2a5[_0x3734('0x85')];_0x39d3f1++)_0x202273[_0x3734('0x74')](_0x13c2a5[_0x39d3f1][_0x3734('0x47')])||0x0==_0x13c2a5[_0x39d3f1][_0x3734('0x3b')]||(_0x13c2a5[_0x39d3f1][_0x3734('0x2e')]=!0x0);return _0x13c2a5[_0x3734('0x0')](_0x52ac6b=>!_0x52ac6b[_0x3734('0x2e')]);}['_markMismatchedRemovedTags'](_0x2967b5){const _0x4ff2b3=new Set();for(let _0x1b5608=0x0;_0x1b5608<_0x2967b5[_0x3734('0x85')];_0x1b5608++){if(_0x4ff2b3[_0x3734('0x74')](_0x2967b5[_0x1b5608]['id'])&&_0x2967b5[_0x1b5608][_0x3734('0x1f')]&&(_0x2967b5[_0x1b5608][_0x3734('0x2e')]=!0x0),_0x2967b5[_0x1b5608][_0x3734('0x2e')])continue;if(0x0==_0x2967b5[_0x1b5608][_0x3734('0x3b')])continue;if(_0x3734('0x92')!=_0x2967b5[_0x1b5608]['type'])continue;if(null==_0x2967b5[_0x1b5608][_0x3734('0x47')])continue;let _0x111158=_0x1b5608+0x1,_0x161402=0x0;for(;_0x2967b5[_0x111158]['id']!=_0x2967b5[_0x1b5608]['pairId'];)'elementStart'==_0x2967b5[_0x111158][_0x3734('0x10c')]?_0x161402++:'elementEnd'==_0x2967b5[_0x111158][_0x3734('0x10c')]&&_0x161402--,_0x111158++;if(0x0!=_0x161402){if(_0x2967b5[_0x1b5608]['isRemoved'])_0x2967b5[_0x1b5608]['isIncorrect']=!0x0;else for(;_0x111158!=_0x1b5608;)_0x2967b5[_0x111158][_0x3734('0x1f')]&&0x0!=_0x2967b5[_0x111158][_0x3734('0x3b')]&&(_0x2967b5[_0x111158][_0x3734('0x2e')]=!0x0,_0x4ff2b3[_0x3734('0xb2')](_0x2967b5[_0x111158][_0x3734('0x47')])),_0x111158--;}}return _0x2967b5[_0x3734('0x0')](_0x516b9f=>!_0x516b9f['isIncorrect']);}['_removeUnsupportedChanges'](_0x24e884){const _0x232fcd=this[_0x3734('0xc4')][_0x3734('0xa5')][_0x3734('0x40')];for(let _0x3289c7=0x0;_0x3289c7<_0x24e884[_0x3734('0x85')];_0x3289c7++){if(!(_0x24e884[_0x3289c7][_0x3734('0xb1')]||_0x24e884[_0x3289c7][_0x3734('0xa9')]||_0x24e884[_0x3289c7]['isRemoved']||_0x24e884[_0x3289c7][_0x3734('0x9')]))continue;if(0x0==_0x24e884[_0x3289c7]['distance'])continue;const _0x24e663=_0x24e884[_0x3289c7]['item'];_0x232fcd[_0x3734('0xdb')](_0x24e663)||_0x232fcd[_0x3734('0x49')](_0x24e663)||(_0x24e884[_0x3289c7]['isAdded']&&delete _0x24e884[_0x3289c7][_0x3734('0xb1')],_0x24e884[_0x3289c7][_0x3734('0xa9')]&&delete _0x24e884[_0x3289c7]['isAddSuggestion'],_0x24e884[_0x3289c7]['isRemoveSuggestion']&&delete _0x24e884[_0x3289c7][_0x3734('0x9')],_0x24e884[_0x3289c7][_0x3734('0x1f')]&&(_0x24e884[_0x3289c7][_0x3734('0x2e')]=!0x0));}return _0x24e884['filter'](_0x565dfa=>!_0x565dfa[_0x3734('0x2e')]);}[_0x3734('0x114')](_0x1af648,_0x40a98b,_0x3146e8){const _0xf6533f=new _0x99ef10(),_0x746919=[],_0x5ea303=new Map(),_0xda8342=this[_0x3734('0xc4')][_0x3734('0xa5')],_0x1a8464=_0xda8342[_0x3734('0x40')],_0x18bb2d=[_0xf6533f],_0x1c2701={},_0x320d5d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x775603=null;const _0x4c8cdb=[0x0];for(let _0x2e65a7=0x0;_0x2e65a7<_0x1af648[_0x3734('0x85')];_0x2e65a7++){let _0x178b8f,_0x5beabb;if(_0x3734('0x92')===_0x1af648[_0x2e65a7]['type']){_0x178b8f=_0xda8342[_0x3734('0x3d')](_0xf6533f,_0x4c8cdb);const _0x36de91=new _0x38edf8(_0x1af648[_0x2e65a7][_0x3734('0xbf')][_0x3734('0x11')],_0x1af648[_0x2e65a7][_0x3734('0xbf')][_0x3734('0x8')]());_0x18bb2d[0x0][_0x3734('0xf4')](_0x36de91),_0x4c8cdb[_0x3734('0xa4')](0x0),_0x18bb2d[_0x3734('0x6f')](_0x36de91),_0x5beabb=_0xda8342[_0x3734('0x3d')](_0xf6533f,_0x4c8cdb),_0x775603=null;}else{if(_0x3734('0x91')===_0x1af648[_0x2e65a7]['type'])_0x18bb2d[_0x3734('0x11e')](),_0x178b8f=_0xda8342[_0x3734('0x3d')](_0xf6533f,_0x4c8cdb),_0x4c8cdb[_0x3734('0x31')](),_0x4c8cdb[_0x4c8cdb[_0x3734('0x85')]-0x1]++,_0x5beabb=_0xda8342[_0x3734('0x3d')](_0xf6533f,_0x4c8cdb),_0x775603=null;else{if(_0x178b8f=_0xda8342['createPositionFromPath'](_0xf6533f,_0x4c8cdb),_0x775603&&_0x2cd340(_0x775603,_0x1af648[_0x2e65a7][_0x3734('0xbf')]))_0x775603[_0x3734('0x9b')]+=_0x1af648[_0x2e65a7][_0x3734('0xbf')][_0x3734('0x6a')];else{const _0x3d8e1d=new _0x38e85f(_0x1af648[_0x2e65a7][_0x3734('0xbf')][_0x3734('0x6a')],_0x1af648[_0x2e65a7][_0x3734('0xbf')][_0x3734('0x8')]());_0x18bb2d[0x0][_0x3734('0xf4')](_0x3d8e1d),_0x775603=_0x3d8e1d;}_0x4c8cdb[_0x4c8cdb['length']-0x1]+=_0x1af648[_0x2e65a7][_0x3734('0xbf')]['offsetSize'],_0x5beabb=_0xda8342['createPositionFromPath'](_0xf6533f,_0x4c8cdb);}}for(const _0x2a552a of _0x1af648[_0x2e65a7][_0x3734('0x10b')])_0x5ea303[_0x3734('0x95')](_0x2a552a,{'start':_0x178b8f,'end':null});_0x3e8c45(_0x3734('0x9'),_0x2e65a7,_0x178b8f,_0x5beabb),_0x3e8c45(_0x3734('0xa9'),_0x2e65a7,_0x178b8f,_0x5beabb),_0x3e8c45('isRemoved',_0x2e65a7,_0x178b8f,_0x5beabb),_0x3e8c45('isAdded',_0x2e65a7,_0x178b8f,_0x5beabb);for(const _0x1f4f09 of _0x1af648[_0x2e65a7][_0x3734('0xbb')]){_0x5ea303['get'](_0x1f4f09)[_0x3734('0x82')]=_0x5beabb;}}for(const [_0x3a7d82,_0x32640d]of _0x5ea303){const _0x35e297=this[_0x3734('0xc4')][_0x3734('0xa5')][_0x3734('0x10d')](_0x32640d[_0x3734('0x3f')],_0x32640d[_0x3734('0x82')]);_0xf6533f[_0x3734('0xb')][_0x3734('0x95')](_0x3a7d82,_0x35e297);}return _0x746919[_0x3734('0x19')]((_0x10ecbb,_0xdf223c)=>{const _0x200089=_0xf6533f[_0x3734('0xb')][_0x3734('0xef')]('revision:'+_0x10ecbb['id']),_0xd655d8=_0xf6533f[_0x3734('0xb')]['get'](_0x3734('0x1a')+_0xdf223c['id']);return _0x200089[_0x3734('0x3f')][_0x3734('0x21')](_0xd655d8[_0x3734('0x3f')])?-0x1:_0x200089[_0x3734('0x3f')][_0x3734('0xe5')](_0xd655d8['start'])?0x1:_0x200089[_0x3734('0x82')][_0x3734('0x21')](_0xd655d8[_0x3734('0x82')])?-0x1:_0x200089[_0x3734('0x82')][_0x3734('0xe5')](_0xd655d8[_0x3734('0x82')])?0x1:'add'===_0x10ecbb[_0x3734('0x10c')]?-0x1:0x1;}),{'root':_0xf6533f,'changes':_0x746919};function _0x3e8c45(_0x3e3133,_0x22ce70,_0x4370e4,_0x36dfba){const _0x4bb6a2=!!_0x1af648[_0x22ce70][_0x3e3133],_0x14b07d=_0x4bb6a2?_0x1af648[_0x22ce70][_0x3e3133][_0x3734('0x106')]:null,_0x232484=_0x22ce70===_0x1af648[_0x3734('0x85')]-0x1,_0x3987b8=_0x320d5d[_0x3e3133][0x0],_0x33707d=_0x1a8464[_0x3734('0x90')](_0x1af648[_0x22ce70][_0x3734('0xbf')]);!_0x1c2701[_0x3e3133]&&_0x4bb6a2?_0x1c2701[_0x3e3133]={'start':_0x4370e4,'tapeItem':_0x1af648[_0x22ce70],'userId':_0x14b07d,'type':_0x3e3133}:_0x1c2701[_0x3e3133]&&!_0x4bb6a2?(_0x1c2701[_0x3e3133][_0x3734('0x82')]=_0x4370e4,_0x2af744(_0x1c2701[_0x3e3133]),_0x1c2701[_0x3e3133]=null):_0x1c2701[_0x3e3133]&&_0x4bb6a2&&_0x1c2701[_0x3e3133][_0x3734('0x106')]!==_0x14b07d&&(_0x1c2701[_0x3e3133][_0x3734('0x82')]=_0x4370e4,_0x3987b8&&_0x3987b8[_0x3734('0x106')]===_0x1c2701[_0x3e3133][_0x3734('0x106')]||_0x2af744(_0x1c2701[_0x3e3133]),_0x1c2701[_0x3e3133]={'start':_0x4370e4,'tapeItem':_0x1af648[_0x22ce70],'userId':_0x14b07d,'type':_0x3e3133}),_0x1c2701[_0x3e3133]&&_0x33707d&&(_0x3734('0x92')!==_0x1af648[_0x22ce70][_0x3734('0x10c')]||_0x3987b8&&_0x3987b8['userId']===_0x14b07d||_0x320d5d[_0x3e3133][_0x3734('0x6f')]({'userId':_0x14b07d,'object':_0x1af648[_0x22ce70][_0x3734('0xbf')],'change':_0x1c2701[_0x3e3133]}),_0x3734('0x91')===_0x1af648[_0x22ce70]['type']&&_0x3987b8&&_0x3987b8['object']===_0x1af648[_0x22ce70][_0x3734('0xbf')]&&(_0x320d5d[_0x3e3133][_0x3734('0x11e')](),_0x1c2701[_0x3e3133]=_0x3987b8[_0x3734('0xc1')])),_0x1c2701[_0x3e3133]&&_0x232484&&(_0x1c2701[_0x3e3133][_0x3734('0x82')]=_0x36dfba,_0x2af744(_0x1c2701[_0x3e3133]),_0x1c2701[_0x3e3133]=null);}function _0x2af744({start:_0x5570f2,end:_0x1df362,tapeItem:_0x586f44,userId:_0x504c7d,type:_0x52ef7f}){const _0x5182e3=_0x586f44[_0x3734('0xbf')],_0x2c7419=_0xda8342['schema'][_0x3734('0xdb')](_0x5182e3)&&!_0xda8342[_0x3734('0x40')][_0x3734('0x49')](_0x5182e3),_0x130404=_0x5570f2[_0x3734('0x1b')]==_0x1df362['parent']&&_0x1df362['isAtStart'];if(_0x2c7419&&_0x130404)return;const _0x28bc63=_0xda8342[_0x3734('0x10d')](_0x5570f2,_0x1df362),_0x4a80d7=_0x40a98b[_0x3734('0xef')](_0x504c7d),_0x551705=new _0x3b9c9d({'author':_0x4a80d7,'type':'isAdded'==_0x52ef7f||'isAddSuggestion'==_0x52ef7f?_0x3734('0xb2'):'remove','data':{'isSuggestion':_0x3734('0xa9')==_0x52ef7f||_0x3734('0x9')==_0x52ef7f},'createdAt':new Date(),'rootName':_0x3146e8});_0x746919[_0x3734('0xa4')](_0x551705),_0xf6533f['markers'][_0x3734('0x95')](_0x3734('0x1a')+_0x551705['id'],_0x28bc63);}function _0x2cd340(_0x967f4a,_0x56a00c){const _0x593177=_0x967f4a[_0x3734('0x8')](),_0x247755=_0x56a00c[_0x3734('0x8')]();for(const _0x140815 of _0x593177){if(_0x140815[0x1]!==_0x56a00c[_0x3734('0x12')](_0x140815[0x0]))return!0x1;_0x247755[_0x3734('0x17')]();}return _0x247755[_0x3734('0x17')]()[_0x3734('0xcb')];}}[_0x3734('0x52')](){this[_0x3734('0xc4')]['conversion'][_0x3734('0x10a')]('upcast')[_0x3734('0x7b')]({'view':'revision'}),this[_0x3734('0xc4')][_0x3734('0xf6')][_0x3734('0x10a')](_0x3734('0x89'))[_0x3734('0x1c')]({'model':'revision','view':_0x208869=>{const _0x2e07c4=_0x208869[_0x3734('0xaa')]['split'](':')[0x1],_0x22bdf8=this[_0x3734('0xd7')](_0x2e07c4);if(!_0x22bdf8)return null;const _0xa1c655=_0x3734('0xb2')==_0x22bdf8[_0x3734('0x10c')]?'insertion':_0x3734('0xe4'),_0x4a2a8b=[_0x3734('0x11a'),_0x3734('0x11d')+_0xa1c655];return _0x22bdf8['data'][_0x3734('0xa0')]&&_0x4a2a8b[_0x3734('0xa4')](_0x3734('0x11d')+_0xa1c655+_0x3734('0x97')),this['activeChange']==_0x22bdf8&&_0x4a2a8b[_0x3734('0xa4')](_0x3734('0x6d')),{'classes':_0x4a2a8b,'attributes':{'data-change-id':_0x2e07c4}};}}),this[_0x3734('0xc4')][_0x3734('0xf6')]['for'](_0x3734('0xf9'))[_0x3734('0xb2')](_0x2cc351=>{_0x2cc351['on']('element:pre',(_0x5adb22,_0x3dbdb2,_0x217c14)=>{const _0x18b4fc=_0x3dbdb2['viewItem'][_0x3734('0xd3')](0x0);if(!_0x18b4fc||!_0x18b4fc['is'](_0x3734('0xa2'),_0x3734('0x41')))return;if(!_0x217c14[_0x3734('0x59')][_0x3734('0x63')](_0x18b4fc,{'attributes':[_0x3734('0x16'),_0x3734('0x83')]}))return;const _0x12f142=_0x3dbdb2[_0x3734('0x45')][_0x3734('0x3f')][_0x3734('0x1b')];_0x217c14['writer']['setAttribute'](_0x3734('0x16'),_0x18b4fc[_0x3734('0x12')]('vid_start'),_0x12f142),_0x217c14['writer'][_0x3734('0x3')](_0x3734('0x83'),_0x18b4fc[_0x3734('0x12')](_0x3734('0x83')),_0x12f142);},{'priority':_0x3734('0x101')});}),this[_0x3734('0xc4')][_0x3734('0xf6')][_0x3734('0x10a')](_0x3734('0xf9'))[_0x3734('0xb2')](_0x562d52=>{_0x562d52['on'](_0x3734('0xa2'),(_0x5173cb,_0x4ce5cd,_0x331f68)=>{if(!_0x331f68['consumable'][_0x3734('0x63')](_0x4ce5cd[_0x3734('0xa8')],{'attributes':[_0x3734('0x16'),_0x3734('0x83')]}))return;if(_0x4ce5cd[_0x3734('0x45')][_0x3734('0x22')])return;const _0x43bf7f=_0x4ce5cd[_0x3734('0x45')][_0x3734('0x3f')][_0x3734('0x1b')];_0x43bf7f['hasAttribute'](_0x3734('0x16'))||_0x43bf7f['hasAttribute'](_0x3734('0x20'))||(_0x331f68[_0x3734('0x98')]['setAttribute'](_0x3734('0x16'),_0x4ce5cd[_0x3734('0xa8')][_0x3734('0x12')]('vid_start'),_0x43bf7f),_0x331f68[_0x3734('0x98')][_0x3734('0x3')](_0x3734('0x83'),_0x4ce5cd[_0x3734('0xa8')]['getAttribute'](_0x3734('0x83')),_0x43bf7f));},{'priority':'low'});}),this[_0x3734('0xc4')]['conversion']['for']('upcast')[_0x3734('0x105')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x3734('0x20'),'value':_0x526aa8=>_0x526aa8[_0x3734('0x12')](_0x3734('0x20'))}}),this[_0x3734('0xc4')]['model']['schema']['on'](_0x3734('0x119'),(_0x127ff4,[,_0x2b4afb])=>{['vid_start','vid_end',_0x3734('0x20')][_0x3734('0x54')](_0x2b4afb)&&(_0x127ff4[_0x3734('0x94')]=!0x0,_0x127ff4['stop']());},{'priority':_0x3734('0x71')}),this[_0x3734('0xc4')][_0x3734('0xf6')]['for'](_0x3734('0x4f'))['add'](_0x364d23=>{_0x364d23['on'](_0x3734('0x2b'),(_0x516457,_0x50b613,_0x3d6f2a)=>{if('\x20'!=_0x50b613[_0x3734('0xbf')][_0x3734('0x6a')]||_0x50b613[_0x3734('0xbf')]['parent'][_0x3734('0x120')]>0x1)return;if(!_0x3d6f2a['consumable'][_0x3734('0x63')](_0x50b613['item'],_0x516457[_0x3734('0x11')]))return;const _0xa2fe4b=_0x3d6f2a[_0x3734('0x98')],_0xe907e5=_0x3d6f2a[_0x3734('0x104')][_0x3734('0x72')](_0x50b613['range']);_0xa2fe4b[_0x3734('0x6c')](_0xe907e5,_0xa2fe4b[_0x3734('0x37')](_0x3734('0x79')));});}),this['editor'][_0x3734('0xf6')][_0x3734('0x10a')](_0x3734('0x4f'))[_0x3734('0xd6')]({'model':'revision'}),this['editor'][_0x3734('0x8e')]['downcastDispatcher']['on']('addMarker:revision',function(_0xf0c168){const _0x3fd8b5=_0xf0c168['plugins'][_0x3734('0xef')](_0x3734('0x51'));return(_0x2fce9e,_0x51c1f8,_0x473b9a)=>{const _0x2df202=_0x51c1f8['markerName'][_0x3734('0xdd')](':')[0x1],_0x1b5330=_0x3fd8b5[_0x3734('0xd7')](_0x2df202);if(!_0x1b5330)return null;const _0xa464eb=_0x3734('0xb2')==_0x1b5330['type']?_0x3734('0xdd'):_0x3734('0x60');if(!_0x473b9a[_0x3734('0x59')][_0x3734('0x99')](_0x51c1f8[_0x3734('0x113')],_0x2fce9e[_0x3734('0x11')]))return;const _0x544415=_0x51c1f8['markerRange'][_0x3734('0x62')](),_0x591fa1=_0x51c1f8[_0x3734('0x113')]['start'],_0x125c8a=_0xf0c168['model'][_0x3734('0x40')];let _0x71d70=null,_0x8f7169=null,_0x5032f6=!0x1,_0x53bae9=!0x1;for(const _0x4d03b0 of _0x544415){const _0x5b8118=_0x4d03b0['item'];_0x5032f6=_0x5032f6||_0x125c8a['isContent'](_0x5b8118);const _0x2756d3=_0x473b9a['mapper'][_0x3734('0x86')](_0x5b8118);if(_0x2756d3&&_0x2756d3[_0x3734('0xe8')](_0x3734('0x10e')))return;_0x3734('0x91')==_0x4d03b0[_0x3734('0x10c')]&&(_0x125c8a['isBlock'](_0x5b8118)&&!_0x125c8a[_0x3734('0x49')](_0x5b8118)&&(_0x5b8118[_0x3734('0x96')]||_0x591fa1[_0x3734('0x69')]?_0x71d70&&_0x71d70[_0x3734('0x8b')]==_0x5b8118||(_0x71d70=_0x5b8118,_0x35dc8b(_0x4d03b0[_0x3734('0x42')]),_0x53bae9=!0x0):_0x8f7169=_0x8f7169||_0x4d03b0[_0x3734('0x42')]));}function _0x35dc8b(_0x27ab85){const _0x32bac4=_0x473b9a[_0x3734('0x98')][_0x3734('0x111')](_0x3734('0x79'),{'class':_0x3734('0x11d')+_0xa464eb}),_0x59f14b=_0x473b9a['mapper'][_0x3734('0xfd')](_0x27ab85);_0x1b5330[_0x3734('0x6a')]['isSuggestion']&&_0x473b9a[_0x3734('0x98')][_0x3734('0x5e')](_0x3734('0x11d')+_0xa464eb+_0x3734('0x97'),_0x32bac4),_0x3fd8b5[_0x3734('0xcf')]==_0x1b5330&&_0x473b9a[_0x3734('0x98')][_0x3734('0x5e')](_0x3734('0x6d'),_0x32bac4),_0x473b9a[_0x3734('0x98')][_0x3734('0xda')](_0x59f14b,_0x32bac4),_0x473b9a[_0x3734('0x104')]['bindElementToMarker'](_0x32bac4,_0x51c1f8['markerName']);}_0x5032f6||_0x53bae9||!_0x8f7169||_0x35dc8b(_0x8f7169);};}(this[_0x3734('0xc4')]),{'priority':_0x3734('0xbd')}),this[_0x3734('0xc4')][_0x3734('0x8e')]['downcastDispatcher']['on'](_0x3734('0x24'),(_0x363a68,_0x2aa765,_0xf42688)=>{const _0x2b790c=_0xf42688[_0x3734('0x104')][_0x3734('0x6')](_0x2aa765[_0x3734('0xaa')]);if(_0x2b790c)for(const _0x5d0ff8 of _0x2b790c)(_0x5d0ff8[_0x3734('0x118')](_0x3734('0xcc'))||_0x5d0ff8[_0x3734('0x118')](_0x3734('0x65')))&&(_0xf42688[_0x3734('0x104')][_0x3734('0x107')](_0x5d0ff8,_0x2aa765['markerName']),_0xf42688[_0x3734('0x98')][_0x3734('0xa')](_0x5d0ff8));},{'priority':_0x3734('0xbd')}),this[_0x3734('0xc4')][_0x3734('0x8e')][_0x3734('0x4d')]['on']('addMarker:revision',(_0x2d3d1e,_0x28b2ad,_0x5655bd)=>{const _0x27f211=_0x28b2ad[_0x3734('0xaa')][_0x3734('0xdd')](':')[0x1],_0x4abf44=this[_0x3734('0xd7')](_0x27f211);if(!_0x4abf44)return null;const _0x1d910f='add'==_0x4abf44[_0x3734('0x10c')]?'split':_0x3734('0x60');if(_0x5655bd[_0x3734('0x59')]['test'](_0x28b2ad[_0x3734('0x113')],_0x2d3d1e[_0x3734('0x11')]))for(const _0x3e3426 of _0x28b2ad[_0x3734('0x113')][_0x3734('0x2a')]()){if(!_0x3e3426['is']('element',_0x3734('0xa6')))continue;const _0x312118=_0x5655bd['writer'][_0x3734('0x111')](_0x3734('0x79'),{'class':'ck-suggestion-marker-'+_0x1d910f}),_0x888054=_0x5655bd[_0x3734('0x104')]['toViewPosition'](this[_0x3734('0xc4')][_0x3734('0xa5')][_0x3734('0x48')](_0x3e3426));_0x4abf44[_0x3734('0x6a')]['isSuggestion']&&_0x5655bd['writer'][_0x3734('0x5e')](_0x3734('0x11d')+_0x1d910f+'-new',_0x312118),this['activeChange']==_0x4abf44&&_0x5655bd['writer'][_0x3734('0x5e')](_0x3734('0x6d'),_0x312118),_0x5655bd[_0x3734('0x98')][_0x3734('0xda')](_0x888054,_0x312118),_0x5655bd[_0x3734('0x104')]['bindElementToMarker'](_0x312118,_0x28b2ad[_0x3734('0xaa')]);}},{'priority':_0x3734('0xbd')}),this['editor'][_0x3734('0xa5')][_0x3734('0x29')]['on']('change',()=>{this[_0x3734('0xc4')][_0x3734('0x8e')]['view']['change'](_0x49b682=>{for(const _0x3eb524 of this['editor']['model']['document'][_0x3734('0x46')]()){const _0x20f175=this['editor'][_0x3734('0xa5')][_0x3734('0x29')]['getRoot'](_0x3eb524),_0x372f2a=this[_0x3734('0xc4')][_0x3734('0x8e')][_0x3734('0x30')][_0x3734('0x29')][_0x3734('0x68')](_0x3eb524);if(_0x372f2a){const _0x4da3b0=_0x20f175[_0x3734('0x12')](_0x3734('0x77'));if(_0x49b682[_0x3734('0x9e')]('data-change-id',_0x372f2a),_0x49b682[_0x3734('0xd4')](_0x3734('0x57'),_0x372f2a),_0x49b682['removeClass'](_0x3734('0x3a'),_0x372f2a),_0x49b682[_0x3734('0xd4')]('ck-revision-history-root--active',_0x372f2a),_0x4da3b0){const _0x370545=this[_0x3734('0xd7')](_0x4da3b0);if(!_0x370545)return null;_0x49b682[_0x3734('0x3')](_0x3734('0xb7'),_0x4da3b0,_0x372f2a),_0x49b682[_0x3734('0x5e')](_0x3734('0xc0')+_0x370545['type'],_0x372f2a),this[_0x3734('0xcf')]==_0x370545&&_0x49b682['addClass']('ck-revision-history-root--active',_0x372f2a);}}}});}),this[_0x3734('0xc4')]['conversion'][_0x3734('0x10a')]('upcast')[_0x3734('0x7b')]({'view':'comment','model':_0x5aed11=>_0x3734('0xf3')+_0x5aed11,'converterPriority':'highest'}),this[_0x3734('0xc4')][_0x3734('0xf6')][_0x3734('0x10a')](_0x3734('0xf9'))[_0x3734('0x7b')]({'view':'suggestion','model':_0x5960fd=>_0x3734('0xfa')+_0x5960fd,'converterPriority':'highest'}),this[_0x3734('0xc4')]['conversion'][_0x3734('0x10a')](_0x3734('0x4f'))[_0x3734('0xd6')]({'model':_0x3734('0xde'),'view':_0x5c22cd=>({'name':_0x3734('0xed')+_0x5c22cd,'group':_0x3734('0xde')}),'converterPriority':_0x3734('0x71')}),this[_0x3734('0xc4')][_0x3734('0xf6')][_0x3734('0x10a')]('editingDowncast')[_0x3734('0x1c')]({'model':'revision-suggestion','view':_0x5db12e=>{const _0x319e24=_0x5db12e[_0x3734('0xaa')][_0x3734('0xdd')](':')[0x1];return _0x3734('0x50')!=_0x319e24&&_0x3734('0xe4')!=_0x319e24?null:{'classes':[_0x3734('0xf8'),_0x3734('0xd0')+_0x319e24]};}}),this[_0x3734('0xc4')][_0x3734('0x8e')]['downcastDispatcher']['on'](_0x3734('0x2d'),Z(this[_0x3734('0xc4')],_0x3734('0x60')),{'priority':'high'}),this[_0x3734('0xc4')][_0x3734('0x8e')][_0x3734('0x4d')]['on'](_0x3734('0x102'),Z(this[_0x3734('0xc4')],_0x3734('0xdd')),{'priority':_0x3734('0xbd')}),this['editor'][_0x3734('0x8e')][_0x3734('0x4d')]['on'](_0x3734('0x116'),(_0x22973e,_0x2f2fa5,_0x10e6a9)=>{const _0x450bd2=_0x10e6a9['mapper']['markerNameToElements'](_0x2f2fa5[_0x3734('0xaa')]);if(_0x450bd2)for(const _0x3c3537 of _0x450bd2)_0x3c3537['is']('uiElement')&&(_0x10e6a9[_0x3734('0x104')]['unbindElementFromMarkerName'](_0x3c3537,_0x2f2fa5[_0x3734('0xaa')]),_0x10e6a9[_0x3734('0x98')][_0x3734('0xa')](_0x3c3537));},{'priority':_0x3734('0xbd')});}[_0x3734('0xd7')](_0x53c1c0){return this[_0x3734('0xc3')][_0x3734('0xef')](_0x53c1c0);}[_0x3734('0x5')](_0x43df36){return this[_0x3734('0xe1')]&&this[_0x3734('0xe1')][_0x3734('0xa1')](),this[_0x3734('0xe1')]=new _0x5bb6b2(this[_0x3734('0xc4')]['locale'],_0x43df36),this[_0x3734('0xe1')];}[_0x3734('0x10f')](){this[_0x3734('0xc4')][_0x3734('0xa5')][_0x3734('0x29')][_0x3734('0xc9')][_0x3734('0x15')]('revision'),this['on'](_0x3734('0x10'),(_0x419725,_0x3702b1,_0x3fceb9,_0x448e52)=>{_0x448e52&&this['_balloon'][_0x3734('0xa')](_0x448e52),_0x3fceb9&&(this[_0x3734('0x7')][_0x3734('0xb2')]({'view':_0x3fceb9,'stackId':_0x3734('0x7e'),'position':{'target':()=>{const _0x2cab71=this[_0x3734('0xc4')][_0x3734('0x8e')],_0x21a8e8=this[_0x3734('0xd7')](_0x3fceb9[_0x3734('0xe9')]);let _0x35ccf8;if(_0x21a8e8['data'][_0x3734('0x2')]){const _0x3e1a5f=_0x2cab71[_0x3734('0x30')][_0x3734('0x18')](_0x21a8e8['rootName']);_0x35ccf8=Array[_0x3734('0xec')](_0x3e1a5f[_0x3734('0x75')]());}else{const _0x249c3c=this[_0x3734('0xc4')][_0x3734('0xa5')][_0x3734('0xb')]['get'](_0x3734('0x1a')+_0x3fceb9[_0x3734('0xe9')]);_0x35ccf8=Array[_0x3734('0xec')](_0x2cab71['mapper'][_0x3734('0x6')](_0x249c3c[_0x3734('0x11')]))[_0x3734('0x35')](_0x5127c6=>_0x2cab71['view'][_0x3734('0xb6')][_0x3734('0x27')](_0x5127c6))['map'](_0x4181a4=>Array['from'](_0x4181a4['getClientRects']()))[_0x3734('0x7f')]();}if(!this['_activeViewTarget'])return _0x35ccf8[0x0];return _0x35ccf8[_0x3734('0x84')](_0x4548b2=>_0x4548b2['top']-0x3<=this['_activeViewTarget']['y']&&_0x4548b2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4548b2[_0x3734('0xc2')]-0x3<=this[_0x3734('0x3c')]['x']&&_0x4548b2[_0x3734('0x2f')]+0x3>=this[_0x3734('0x3c')]['x'])||_0x35ccf8[0x0];}}}),this[_0x3734('0x7')][_0x3734('0x53')]('revisionHistoryLabel'));}),this['on'](_0x3734('0x58'),(_0x4361df,_0x12c29c,_0x3e9da8,_0xd63817)=>{this[_0x3734('0xb9')]=_0x3e9da8?this[_0x3734('0x5')](_0x3e9da8):null,this[_0x3734('0xc4')]['model']['change'](()=>{const _0x526203=this[_0x3734('0xc4')]['editing'];_0xd63817&&(_0xd63817[_0x3734('0x6a')][_0x3734('0x2')]?_0x526203['view'][_0x3734('0xc1')](_0x3c2a1a=>{_0x3c2a1a['removeClass'](_0x3734('0xe0'),_0x526203['view'][_0x3734('0x29')][_0x3734('0x68')](_0xd63817[_0x3734('0xc7')]));}):_0x526203[_0x3734('0x5b')]('revision:'+_0xd63817['id'])),_0x3e9da8&&(_0x3e9da8[_0x3734('0x6a')]['isOnRoot']?_0x526203['view'][_0x3734('0xc1')](_0x1eb526=>{_0x1eb526[_0x3734('0x5e')](_0x3734('0xe0'),_0x526203[_0x3734('0x30')][_0x3734('0x29')]['getRoot'](_0x3e9da8['rootName']));}):_0x526203[_0x3734('0x5b')]('revision:'+_0x3e9da8['id']));});}),this[_0x3734('0xe2')](this[_0x3734('0xc4')][_0x3734('0x8e')][_0x3734('0x30')][_0x3734('0x29')],_0x3734('0x5c'),(_0x7b73e2,_0x1a8e58)=>{if(this[_0x3734('0xcf')])return;const _0x15b964=this[_0x3734('0xab')](_0x1a8e58[_0x3734('0x14')]),_0x4cf12d=this[_0x3734('0xc3')][_0x3734('0xef')](_0x15b964);_0x4cf12d?(this['_activeViewTarget']={'x':_0x1a8e58['domEvent']['x'],'y':_0x1a8e58[_0x3734('0xac')]['y']},this[_0x3734('0xb9')]=this['_getViewForChange'](_0x4cf12d)):(this[_0x3734('0x3c')]=null,this[_0x3734('0xb9')]=null);}),this[_0x3734('0xe2')](this[_0x3734('0xc4')]['editing'][_0x3734('0x30')][_0x3734('0x29')],'mousedown',(_0x1615f3,_0x3de299)=>{const _0x5e3205=this[_0x3734('0xab')](_0x3de299['target']),_0x15c694=this[_0x3734('0xc3')][_0x3734('0xef')](_0x5e3205);_0x15c694?(this['_activeViewTarget']={'x':_0x3de299[_0x3734('0xac')]['x'],'y':_0x3de299[_0x3734('0xac')]['y']},_0x15c694===this[_0x3734('0xcf')]?this[_0x3734('0x7')][_0x3734('0xe6')]():this[_0x3734('0xcf')]=_0x15c694):(this[_0x3734('0x3c')]=null,this['activeChange']=null);});}[_0x3734('0xab')](_0x3c8238){do{const _0x3e4a71=_0x3c8238['getAttribute'](_0x3734('0xb7'));if(_0x3e4a71)return _0x3e4a71;_0x3c8238=_0x3c8238[_0x3734('0x8b')];}while(_0x3c8238);return null;}[_0x3734('0x7d')](){this[_0x3734('0xc4')][_0x3734('0xa5')][_0x3734('0xc1')](_0x41cb04=>{for(const _0x34ea81 of this[_0x3734('0xc4')][_0x3734('0xa5')][_0x3734('0xb')])_0x41cb04[_0x3734('0xe3')](_0x34ea81);});}}function Z(_0x53a2cd,_0x1a1b27){return(_0x49f24a,_0x3eecc1,_0x5c76e2)=>{if(!_0x5c76e2[_0x3734('0x59')][_0x3734('0x99')](_0x3eecc1[_0x3734('0x113')],_0x49f24a['name']))return;const _0x2c2467=_0x3eecc1['markerRange'][_0x3734('0x62')](),_0x62217a=_0x3eecc1['markerRange'][_0x3734('0x3f')],_0xd30a04=_0x53a2cd[_0x3734('0xa5')]['schema'];let _0x21822f=null,_0x519f89=null,_0x1c2ea8=!0x1,_0x522060=!0x1;for(const _0x3c998a of _0x2c2467){const _0x407828=_0x3c998a['item'];_0x1c2ea8=_0x1c2ea8||_0xd30a04[_0x3734('0xb3')](_0x407828);const _0x49335e=_0x5c76e2[_0x3734('0x104')][_0x3734('0x86')](_0x407828);if(_0x49335e&&_0x49335e['getCustomProperty'](_0x3734('0x10e')))return;_0x3734('0x91')==_0x3c998a[_0x3734('0x10c')]&&(_0xd30a04[_0x3734('0xdb')](_0x407828)&&!_0xd30a04[_0x3734('0x49')](_0x407828)&&(_0x407828[_0x3734('0x96')]||_0x62217a[_0x3734('0x69')]?_0x21822f&&_0x21822f[_0x3734('0x8b')]==_0x407828||(_0x21822f=_0x407828,_0x483990(_0x3c998a[_0x3734('0x42')]),_0x522060=!0x0):_0x519f89=_0x519f89||_0x3c998a[_0x3734('0x42')]));}function _0x483990(_0x33b904){const _0x342956=_0x5c76e2[_0x3734('0x104')]['toViewPosition'](_0x33b904),_0x5e9aac=_0x5c76e2[_0x3734('0x98')][_0x3734('0x111')](_0x3734('0x79'),{'class':_0x3734('0xd0')+_0x1a1b27});_0x5c76e2[_0x3734('0x98')][_0x3734('0xda')](_0x342956,_0x5e9aac),_0x5c76e2[_0x3734('0x104')][_0x3734('0x117')](_0x5e9aac,_0x3eecc1[_0x3734('0xaa')]);}_0x1c2ea8||_0x522060||!_0x519f89||_0x483990(_0x519f89);};}export class RestoreRevisionCommand extends _0xb2e483{constructor(_0x29f191){super(_0x29f191);const _0x132c2d=_0x29f191['plugins']['get'](d);this[_0x3734('0x32')]=!0x1,this['listenTo'](_0x132c2d,'change:isReady',()=>this[_0x3734('0xd')]()),this[_0x3734('0xe2')](_0x132c2d,'change:isEnabled',()=>this[_0x3734('0xd')]());}[_0x3734('0x8c')](){const _0x2b8a40=this[_0x3734('0xc4')],_0x121a49=_0x2b8a40[_0x3734('0x4a')]['get'](d),_0x37f64d=_0x121a49[_0x3734('0x8d')]?_0x121a49[_0x3734('0x9a')][_0x3734('0x6b')]:null;_0x2b8a40[_0x3734('0x100')][_0x3734('0xef')]('revisionHistory')['restoreRevisionCallback'](_0x37f64d);}['refresh'](){const {isReady:_0x351fb6,isEnabled:_0x358afd}=this[_0x3734('0xc4')][_0x3734('0x4a')][_0x3734('0xef')](d);this[_0x3734('0xf0')]=_0x351fb6&&_0x358afd;}}export class ShowChangeCommand extends _0xb2e483{constructor(_0x7b51c4,{direction:_0x3330eb}){super(_0x7b51c4);const _0x3fb6e2=_0x7b51c4[_0x3734('0x4a')][_0x3734('0xef')](d);this[_0x3734('0x32')]=!0x1,this[_0x3734('0x78')]='forward'===_0x3330eb?0x1:-0x1,this[_0x3734('0xe2')](_0x3fb6e2,'change:isReady',()=>this[_0x3734('0xd')]()),this['listenTo'](_0x3fb6e2,_0x3734('0x23'),()=>this[_0x3734('0xd')]());}[_0x3734('0x8c')](){const _0x2782e9=this['editor'],_0x5e555f=_0x2782e9[_0x3734('0x4a')]['get'](d),{isNavigationMode:_0x56ef5a,currentChangeNumber:_0x2453ac}=_0x5e555f;let _0x571643;if(_0x5e555f[_0x3734('0xcf')]=_0x56ef5a?_0x5e555f[_0x3734('0x9a')][_0x3734('0x9f')][_0x3734('0xef')](_0x2453ac+this['_step']):_0x5e555f['diff'][_0x3734('0x9f')][_0x3734('0x1e')],_0x5e555f['activeChange'][_0x3734('0x6a')][_0x3734('0x2')])_0x571643=_0x2782e9[_0x3734('0x8e')]['view'][_0x3734('0x18')](_0x5e555f[_0x3734('0xcf')][_0x3734('0xc7')]);else{const _0x5a1644=_0x2782e9[_0x3734('0xa5')][_0x3734('0xb')][_0x3734('0xef')](_0x3734('0x1a')+_0x5e555f[_0x3734('0xcf')]['id']);_0x571643=_0x33f3e1(_0x2782e9[_0x3734('0x8e')],_0x5a1644);}_0x36ccbc({'target':_0x571643,'viewportOffset':0x28});}[_0x3734('0xd')](){const {isNavigationMode:_0x44fff5,currentChangeNumber:_0x18a95,numberOfChanges:_0x13d42b,isReady:_0x2b8581,isEnabled:_0x4b66e3}=this[_0x3734('0xc4')][_0x3734('0x4a')][_0x3734('0xef')](d);this[_0x3734('0xf0')]=!!(_0x4b66e3&&_0x2b8581&&_0x13d42b)&&(!_0x44fff5||(0x1===this[_0x3734('0x78')]?_0x18a95<_0x13d42b-0x1:_0x18a95>0x0));}}
|
|
23
|
+
const _0x13b1=['code','isAtEnd','_cleanMarkers','isOnRoot','highest','revision-comment:','domConverter','isSuggestion','isNavigationMode','merge','isEqual','nextPosition','_changeIdToChange','isContent','find','RevisionsRepository','add','listenTo','range','high','offsetSize','addClass','_processTape','_activeViewTarget','change','modelRange','markerToData','consume','ck-suggestion-marker-merge','diff','stop','findIndex','model','wrap','includes','upcast','getRevision','WidgetToolbarRepository','suggestion','_getChangeFromId','top','dataDowncast','children','startsWith','low','changes','slice','insertions','suggestion:','revision:','distance','push','backward','revisionHistoryAttachChange','revision-viewer','forEach','ck-revision-history-root-add','setAttribute','isIncorrect','createRange','selection','comment','element:pre','toViewPosition','data','keys','addHighlight','getRootNames','isRemoveSuggestion','for','splice','updatePosition','from','_update','done','vid_start','parent','_threeWayMerge','index','ck-revision-history-root--active','removeAttribute','change:activeChange','getAttributes','attribute:vid','toData','reconvertMarker','_setConversion','deletion','nextSibling','bindElementToMarker','writer','createPositionFromPath','type','target','_markSuggestions','markersEnd','ck-suggestion-preview-marker','bottom','collaboration.channelId','bind','markers','rootName','markerNameToElements','_setDistance','right','return','split','forward','ck-editor__editable__overlay','isCollapsed','requires','attachChange','document','pluginName','next','downcastDispatcher','_removeMissingPairs','RevisionViewer','activeChange','ck-suggestion-preview-marker-','data-change-id','remove','mapper','_step','attributes','_markInsertions','showPreviousChange','toViewRange','name','getItems','showNextChange','_getViewForChange','insertion','revision-start','isEnabled','getAttribute','default','previousPosition','isReady','has','isAddSuggestion','_makeModelFromTape','addMarker:revision','isAttached','isAfter','_data','insert','_appendChild','startIndex','_markMarkers','repository','mousedown','viewItem','_makeModelFromViewString','enqueueChange','map','first','span','_makeTape','_markMismatchedRemovedTags','changeId','restoreRevision','item','_removeRevisionMarkers','concat','conversion','enableReadOnlyMode','revision','editingDowncast','isInline','isLimit','plugins','test','abs','execute','refresh','end','loadRevisionData','removeClass','revision-suggestion','revisionHistory','config','_changeView','data-revision-','revisionHistoryLabel','_initInteractions','diffData','pairId','activeView','adapter','createRevision','numberOfChanges','toModel','unbindElementFromMarkerName','get','nodeAfter','ck-suggestion-marker-','getWalker','pop','_fixObsoleteTags','destroy','removeMarker','_getViewObj','editing','userId','change:isReady','_removeUnsupportedChanges','getClientRects','createPositionBefore','deletions','change:isEnabled','string','isRemoved','mouseover','left','getDomRoot','isAtStart','getRevisionData','_refreshStartEndIndex','shift','marked','uiElement','markersStart','side','set','text','markerName','endIndex','length','useFillerType','authors','_getDiff','markerRange','removeMarker:revision-suggestion','isBefore','level','createRangeIn','schema','isAdded','dataToMarker','maxOffset','catch','addRevision','getRoot','detachRoot','sort','filter','ck-revision-history-root-','view','hasAttribute','domEvent','attributesAfter','elementStart','getRevisionRootsAttributes','delete','processor','elementEnd','then','vid','createAttributeElement','-new','markerToHighlight','error','newRevisionId','unshift','isObject','ck-suggestion-marker--active','commands','start','editor','getIndex','_balloon','clear','_joinTapes','ck-revision-history-root-remove','consumable','_cleanUp','_findChangeIdFromDomTarget','vid_end','getCustomProperty','roots','toViewElement','resolve','_getRevisionsRange','isBlock','ck-suggestion-marker','affectsData'];(function(_0x3c8c5b,_0x13b1da){const _0x2bf378=function(_0x47c6d8){while(--_0x47c6d8){_0x3c8c5b['push'](_0x3c8c5b['shift']());}};_0x2bf378(++_0x13b1da);}(_0x13b1,0x73));const _0x2bf3=function(_0x3c8c5b,_0x13b1da){_0x3c8c5b=_0x3c8c5b-0x0;let _0x2bf378=_0x13b1[_0x3c8c5b];return _0x2bf378;};import{Plugin as _0xdc9ebc,Command as _0x524872}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x240ab4}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x1f5acd}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x375ce7,Element as _0x59b09a,Text as _0x3efad0,ViewDocumentFragment as _0x3fe7bf,ViewText as _0x32a398,ViewElement as _0x171304,ViewContainerElement as _0x2d5251,ViewAttributeElement as _0x2d2d44,ViewEmptyElement as _0x115905,ViewRawElement as _0x2215d6,ViewUIElement as _0x2ea457}from'ckeditor5/src/engine.js';import{Users as _0x17a36a,getMarkerDomElement as _0x24264c}from'ckeditor5-collaboration';import _0x3a53e9 from'./ui/revisionviewer/changedetailsview.js';import _0x6042d8 from'./revisionsrepository.js';import _0x2291e3 from'./changeitem.js';import{default as _0x5790e7}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x44e643}from'lodash-es';const tt={'c':_0x2d5251,'a':_0x2d2d44,'e':_0x115905,'r':_0x2215d6,'u':_0x2ea457};export default class d extends _0xdc9ebc{static get[_0x2bf3('0x11d')](){return'RevisionViewer';}static get[_0x2bf3('0x11a')](){return[_0x17a36a,_0x1f5acd,_0x6042d8];}constructor(_0x322bfd){super(_0x322bfd),this[_0x2bf3('0x23')]=this[_0x2bf3('0x9a')]['plugins'][_0x2bf3('0x4f')](_0x2bf3('0xbb')),this['set'](_0x2bf3('0x3'),null),this[_0x2bf3('0x6d')](_0x2bf3('0x49'),null),this[_0x2bf3('0xc3')]=null,this[_0x2bf3('0x6d')](_0x2bf3('0xc9'),null),this[_0x2bf3('0x6d')](_0x2bf3('0x17'),!0x1),this[_0x2bf3('0x6d')](_0x2bf3('0x13'),!0x0),this['on']('change:isEnabled',(_0x381a3f,_0x423ff4,_0x571cbf)=>{this['activeChange']=null,this[_0x2bf3('0x49')]=null,this[_0x2bf3('0x9a')][_0x2bf3('0x58')]['view'][_0x2bf3('0xc4')](_0x34277c=>{for(const _0x3f424d of this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')][_0x2bf3('0xa5')])_0x571cbf?_0x34277c[_0x2bf3('0x3f')](_0x2bf3('0x118'),_0x3f424d):_0x34277c[_0x2bf3('0xc1')](_0x2bf3('0x118'),_0x3f424d);});}),this['bind'](_0x2bf3('0xb4'))['to'](this,'activeChange',_0x224cf4=>null!==_0x224cf4),this[_0x2bf3('0x10f')]('currentChangeNumber')['to'](this,_0x2bf3('0x17'),this,_0x2bf3('0xc9'),this,_0x2bf3('0x3'),(_0x2b82ef,_0x24bfc4,_0x152f84)=>_0x2b82ef&&_0x152f84?_0x24bfc4['changes'][_0x2bf3('0x9b')](_0x152f84):0x0),this[_0x2bf3('0x10f')](_0x2bf3('0x4c'))['to'](this,_0x2bf3('0x17'),this,_0x2bf3('0xc9'),(_0x5178d4,_0x3473b9)=>_0x5178d4?_0x3473b9[_0x2bf3('0xd9')][_0x2bf3('0x71')]:0x0),this[_0x2bf3('0x43')]=null,this[_0x2bf3('0xb8')]=new Map(),this['adapter']=null,this[_0x2bf3('0x9c')]=this[_0x2bf3('0x9a')][_0x2bf3('0x38')][_0x2bf3('0x4f')](_0x1f5acd);}['init'](){const _0x328bf0=this[_0x2bf3('0x9a')],_0x3f4fa1=new ShowChangeCommand(_0x328bf0,{'direction':_0x2bf3('0xe0')}),_0x3be40e=new ShowChangeCommand(_0x328bf0,{'direction':_0x2bf3('0x117')});(_0x328bf0[_0x2bf3('0x98')][_0x2bf3('0xbc')](_0x2bf3('0xb'),_0x3f4fa1),_0x328bf0['commands'][_0x2bf3('0xbc')](_0x2bf3('0xf'),_0x3be40e),_0x328bf0[_0x2bf3('0x98')]['add'](_0x2bf3('0x2e'),new RestoreRevisionCommand(_0x328bf0)),this['on']('change:numberOfChanges',()=>{_0x3f4fa1[_0x2bf3('0x3c')](),_0x3be40e['refresh']();}),this[_0x2bf3('0x102')](),this[_0x2bf3('0x46')](),_0x328bf0[_0x2bf3('0x33')](_0x2bf3('0xe2')),_0x328bf0['plugins']['has']('WidgetToolbarRepository'))&&_0x328bf0[_0x2bf3('0x38')][_0x2bf3('0x4f')](_0x2bf3('0xd1'))['forceDisabled'](_0x2bf3('0xe2'));}async[_0x2bf3('0x66')](_0x1c6696){await this['loadRevisionData'](_0x1c6696);const _0x218718={};for(const _0xd447e4 in _0x1c6696[_0x2bf3('0x47')]){if(_0x1c6696['diffData'][_0xd447e4][_0x2bf3('0x11b')]&&!_0x1c6696[_0x2bf3('0x47')][_0xd447e4][_0x2bf3('0x11b')][_0x2bf3('0x1c')])continue;const _0xb60634=this[_0x2bf3('0x30')](JSON['parse'](_0x1c6696[_0x2bf3('0x47')][_0xd447e4]['insertions'])),_0x1c0468=this[_0x2bf3('0x9a')]['editing'][_0x2bf3('0x85')]['document'],_0x1daad9=new _0x3fe7bf(_0x1c0468,_0xb60634[_0x2bf3('0x28')](_0x444125=>this[_0x2bf3('0x57')](_0x444125)));this['editor'][_0x2bf3('0xec')][_0x2bf3('0x8c')][_0x2bf3('0x72')](_0x2bf3('0x69')),_0x218718[_0xd447e4]=this[_0x2bf3('0x9a')][_0x2bf3('0xec')]['processor'][_0x2bf3('0x100')](_0x1daad9),this[_0x2bf3('0x9a')][_0x2bf3('0xec')][_0x2bf3('0x8c')][_0x2bf3('0x72')](_0x2bf3('0x15'));}return _0x218718;}async[_0x2bf3('0x8a')](_0x3013c3){await this[_0x2bf3('0x3e')](_0x3013c3);const _0x494fda={};for(const _0x1e1985 in _0x3013c3['diffData'])_0x3013c3[_0x2bf3('0x47')][_0x1e1985][_0x2bf3('0x11b')]&&!_0x3013c3[_0x2bf3('0x47')][_0x1e1985][_0x2bf3('0x11b')][_0x2bf3('0x1c')]||(_0x494fda[_0x1e1985]=_0x3013c3[_0x2bf3('0x47')][_0x1e1985][_0x2bf3('0x88')]||{});return _0x494fda;}[_0x2bf3('0x30')](_0x3708be){return(_0x3708be=_0x3708be[_0x2bf3('0x83')](_0xa349dd=>!_0xa349dd[_0x2bf3('0xd')]||_0x2bf3('0x12')!==_0xa349dd[_0x2bf3('0xd')]&&'revision-end'!==_0xa349dd[_0x2bf3('0xd')]))[_0x2bf3('0xe3')](_0x2a6e38=>{_0x2bf3('0x60')!=typeof _0x2a6e38&&(_0x2a6e38[_0x2bf3('0xd6')]=this[_0x2bf3('0x30')](_0x2a6e38[_0x2bf3('0xd6')]),_0x2a6e38[_0x2bf3('0x9')]=_0x2a6e38[_0x2bf3('0x9')][_0x2bf3('0x83')](_0x1125ac=>!_0x1125ac[0x0][_0x2bf3('0xd7')](_0x2bf3('0x44'))));}),_0x3708be;}async['compare'](_0x756eb5,_0x51f079,_0x4e0871=!0x1){if(!this['isEnabled'])return;const _0x4ac253=this['diff'],_0x9d1039=this[_0x2bf3('0x23')],_0xd5517e=_0x2bf3('0x60')==typeof _0x756eb5?_0x9d1039[_0x2bf3('0xd0')](_0x756eb5):_0x756eb5,_0x3611e4='string'==typeof _0x51f079?_0x9d1039['getRevision'](_0x51f079):_0x51f079,_0x2ce47f=_0xd5517e['id'],_0x18bcf9=_0x3611e4?_0x3611e4['id']:null;if(!_0x4e0871&&this[_0x2bf3('0xc9')]&&this[_0x2bf3('0xc9')]['newRevisionId']===_0x2ce47f&&this[_0x2bf3('0xc9')]['oldRevisionId']===_0x18bcf9)return Promise['resolve']();this['isReady']=!0x1,this[_0x2bf3('0x49')]=null,this[_0x2bf3('0x3')]=null,this[_0x2bf3('0xc9')]=new _0x5790e7(_0x2ce47f,_0x18bcf9);const _0x40b06c=this['_getRevisionsRange'](_0xd5517e,_0x3611e4,!0x0)[_0x2bf3('0x28')](_0x1b6fcc=>this['loadRevisionData'](_0x1b6fcc));return _0x40b06c[_0x2bf3('0xdf')](new Promise(_0x5aa72a=>{setTimeout(_0x5aa72a,0x14);})),Promise['all'](_0x40b06c)[_0x2bf3('0x8e')](()=>{if(!this[_0x2bf3('0x13')])return;this[_0x2bf3('0xa1')]();const _0x24141f=this[_0x2bf3('0x74')](_0x2ce47f,_0x18bcf9);for(const _0x5dd3ec of _0x24141f['changes'])this[_0x2bf3('0xb8')][_0x2bf3('0x6d')](_0x5dd3ec['id'],_0x5dd3ec);this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x27')]({'isUndoable':!0x1},_0x1d2c1e=>{for(const _0x62499a of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['document']['getRootNames']())_0x1d2c1e[_0x2bf3('0x81')](_0x62499a);for(const _0xadf351 of Object[_0x2bf3('0xed')](_0x24141f[_0x2bf3('0xcc')])){const _0x577cc4=_0x1d2c1e['addRoot'](_0xadf351);for(const _0x5a456f of Object['keys'](_0x24141f[_0x2bf3('0x9')][_0xadf351]))_0x1d2c1e[_0x2bf3('0xe5')](_0x5a456f,_0x24141f[_0x2bf3('0x9')][_0xadf351][_0x5a456f],_0x577cc4);_0x1d2c1e[_0x2bf3('0x1f')](_0x24141f['model'][_0xadf351],_0x577cc4,0x0);}}),this[_0x2bf3('0xc9')]['_setChanges'](this['_sortAndFilterDiffChanges'](_0x24141f['changes'])),this['isReady']=!0x0;})[_0x2bf3('0x7e')](_0x19fa9b=>{console[_0x2bf3('0x93')](_0x19fa9b),this[_0x2bf3('0xa1')](),_0x4ac253&&(this['diff']=_0x4ac253),this[_0x2bf3('0x17')]=!0x0;});}['addRevisionData'](_0x256308,_0x2e9b73){const _0x253ccb=this['repository'][_0x2bf3('0x4b')](_0x256308);return _0x253ccb['on'](_0x2bf3('0xf5'),(_0x218798,_0x3bba83,_0x39257c)=>_0x2e9b73(_0x3bba83,_0x39257c,_0x253ccb)),this[_0x2bf3('0x23')][_0x2bf3('0x7f')](_0x253ccb),_0x253ccb;}[_0x2bf3('0x3e')](_0x59a898){if(!_0x59a898||_0x59a898[_0x2bf3('0x47')])return Promise[_0x2bf3('0xa7')]();{const _0x4089f6=this[_0x2bf3('0x9a')][_0x2bf3('0x42')]['get'](_0x2bf3('0x10e'));return this[_0x2bf3('0x4a')][_0x2bf3('0xd0')]({'channelId':_0x4089f6,'revisionId':_0x59a898['id']})[_0x2bf3('0x8e')](_0x58f5b0=>{_0x59a898[_0x2bf3('0xf5')]({'diffData':_0x58f5b0[_0x2bf3('0x47')]},!0x0);});}}['_cleanUp'](){this[_0x2bf3('0x3')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x2bf3('0x43')]['destroy'](),this['_changeView']=null,this[_0x2bf3('0xb8')][_0x2bf3('0x9d')](),this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x27')]({'isUndoable':!0x1},_0x47f506=>{for(const _0x1ff1a9 of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['document'][_0x2bf3('0xef')]())_0x47f506[_0x2bf3('0x81')](_0x1ff1a9);});}['_sortAndFilterDiffChanges'](_0x5b2cbb){const _0x7e2885=[],_0x4bc04c=new Map();for(const _0x305393 of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x11c')][_0x2bf3('0xef')]()){const _0x59c4e6=this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x64')](_0x305393);if(!_0x59c4e6)continue;const _0x12ec61=_0x59c4e6[_0x2bf3('0x5c')]()['item'](0x0);_0x12ec61&&(_0x7e2885[_0x2bf3('0xdf')](_0x305393),_0x4bc04c['set'](_0x305393,_0x12ec61));}return _0x7e2885[_0x2bf3('0x82')]((_0x677a37,_0x111e80)=>{const _0x5cd327=_0x4bc04c['get'](_0x677a37),_0x17c9d0=_0x4bc04c[_0x2bf3('0x4f')](_0x111e80);return _0x5cd327['y']-_0x17c9d0['y']||_0x5cd327['x']-_0x17c9d0['x'];}),(_0x5b2cbb=_0x5b2cbb[_0x2bf3('0x83')](_0x21fcd8=>_0x7e2885[_0x2bf3('0xce')](_0x21fcd8[_0x2bf3('0x111')])))['sort']((_0x879b26,_0x590f2b)=>_0x7e2885['indexOf'](_0x879b26['rootName'])-_0x7e2885['indexOf'](_0x590f2b[_0x2bf3('0x111')])),_0x5b2cbb;}[_0x2bf3('0x2b')](_0x301ec2){const _0x8990bf=Array[_0x2bf3('0xf4')](_0x301ec2[_0x2bf3('0x110')])[_0x2bf3('0x83')](([_0x27a1bb,_0x185f2f])=>_0x27a1bb[_0x2bf3('0xd7')](_0x2bf3('0xdd'))&&!_0x185f2f[_0x2bf3('0x119')]),_0x571ce0=Array[_0x2bf3('0xf4')](this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x79')](_0x301ec2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x8990bf[_0x2bf3('0x71')])for(const _0xbe633d of _0x571ce0){const [_0x4a3264,_0x4d188a]=_0x8990bf[0x0],[,_0x1ee86b,_0x272a9a]=_0x4a3264[_0x2bf3('0x116')](':');if(_0x4d188a[_0x2bf3('0x3d')]['isEqual'](_0xbe633d[_0x2bf3('0xb7')])&&_0x8990bf[_0x2bf3('0x68')](),(_0xbe633d[_0x2bf3('0x16')][_0x2bf3('0xb6')](_0x4d188a[_0x2bf3('0x99')])||_0xbe633d[_0x2bf3('0x16')][_0x2bf3('0x1d')](_0x4d188a[_0x2bf3('0x99')]))&&('insertion'==_0x1ee86b?_0xbe633d['isAdded']={'userId':_0x272a9a}:'deletion'==_0x1ee86b&&(_0xbe633d[_0x2bf3('0x61')]={'userId':_0x272a9a})),0x0==_0x8990bf['length'])break;}return _0x571ce0;}[_0x2bf3('0x67')](_0x2c130f){const _0x498e23=new Map();for(let _0x2bef04=0x0;_0x2bef04<_0x2c130f['length'];_0x2bef04++)'text'===_0x2c130f[_0x2bef04]['type']?(_0x2c130f[_0x2bef04][_0x2bf3('0x2f')][_0x2bf3('0x21')]=_0x2bef04,_0x2c130f[_0x2bef04]['item'][_0x2bf3('0x70')]=_0x2bef04):('elementStart'===_0x2c130f[_0x2bef04][_0x2bf3('0x108')]?_0x2c130f[_0x2bef04][_0x2bf3('0x2f')]['startIndex']=_0x2bef04:_0x2bf3('0x8d')===_0x2c130f[_0x2bef04]['type']&&(_0x2c130f[_0x2bef04][_0x2bf3('0x2f')]['endIndex']=_0x2bef04),_0x498e23[_0x2bf3('0x6d')](_0x2c130f[_0x2bef04]['id'],_0x2bef04));for(const _0x25d029 of _0x498e23['values']())_0x2bf3('0x89')===_0x2c130f[_0x25d029][_0x2bf3('0x108')]?_0x2c130f[_0x25d029][_0x2bf3('0x2f')][_0x2bf3('0x70')]=_0x498e23[_0x2bf3('0x4f')](_0x2c130f[_0x25d029][_0x2bf3('0x48')]):'elementEnd'===_0x2c130f[_0x25d029][_0x2bf3('0x108')]&&(_0x2c130f[_0x25d029][_0x2bf3('0x2f')][_0x2bf3('0x21')]=_0x498e23[_0x2bf3('0x4f')](_0x2c130f[_0x25d029][_0x2bf3('0x48')]));}[_0x2bf3('0xc2')](_0x466af8){for(let _0x1c7882=0x0;_0x1c7882<_0x466af8['length'];_0x1c7882++){if('elementStart'===_0x466af8[_0x1c7882][_0x2bf3('0x108')])_0x466af8[_0x1c7882][_0x2bf3('0x2f')][_0x2bf3('0x21')]=_0x1c7882;else{if('elementEnd'===_0x466af8[_0x1c7882][_0x2bf3('0x108')]){_0x466af8[_0x1c7882][_0x2bf3('0x2f')][_0x2bf3('0x70')]=_0x1c7882;const _0x189402=_0x466af8[_0x1c7882][_0x2bf3('0x2f')][_0x2bf3('0x21')];_0x466af8[_0x189402][_0x2bf3('0x48')]=_0x466af8[_0x1c7882]['id'],_0x466af8[_0x1c7882][_0x2bf3('0x48')]=_0x466af8[_0x189402]['id'];}else _0x466af8[_0x1c7882][_0x2bf3('0x2f')]['startIndex']=_0x1c7882,_0x466af8[_0x1c7882]['item'][_0x2bf3('0x70')]=_0x1c7882,_0x466af8[_0x1c7882]['pairId']=null;}_0x466af8[_0x1c7882][_0x2bf3('0x6b')]||(_0x466af8[_0x1c7882]['markersStart']=[],_0x466af8[_0x1c7882][_0x2bf3('0x10b')]=[]);}}[_0x2bf3('0xa')](_0x53c964,_0x38687d){const _0x34c14b=_0x53c964['filter'](_0x4da1eb=>!_0x4da1eb[_0x2bf3('0x7b')]);for(let _0x4d0884=0x0;_0x4d0884<_0x38687d[_0x2bf3('0x71')];_0x4d0884++)_0x38687d[_0x4d0884]['isAdded']&&(_0x34c14b[_0x4d0884][_0x2bf3('0x7b')]=_0x38687d[_0x4d0884][_0x2bf3('0x7b')]);}['_makeModelFromViewString'](_0x36a37f){const _0x43f972=JSON['parse'](_0x36a37f),_0x5b7740=this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')],_0x5c84c5=new _0x3fe7bf(_0x5b7740,_0x43f972[_0x2bf3('0x28')](_0x3c65b2=>this[_0x2bf3('0x57')](_0x3c65b2)));return this[_0x2bf3('0x9a')][_0x2bf3('0xec')][_0x2bf3('0x4d')](_0x5c84c5);}[_0x2bf3('0x57')](_0x1a361b){const _0x338135=this['editor'][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')];if(_0x2bf3('0x60')==typeof _0x1a361b)return new _0x32a398(_0x338135,_0x1a361b);{const _0x2df7c7=_0x1a361b[_0x2bf3('0xd6')]['map'](_0x17e5e8=>this[_0x2bf3('0x57')](_0x17e5e8));return new(tt[_0x1a361b['type']]||_0x171304)(_0x338135,_0x1a361b['name'],_0x1a361b[_0x2bf3('0x9')],_0x2df7c7);}}[_0x2bf3('0x74')](_0x1c3e05,_0x1424cc=null){const _0x5aefba=this[_0x2bf3('0x23')][_0x2bf3('0xd0')](_0x1c3e05),_0x5a45af=_0x1424cc?this[_0x2bf3('0x23')][_0x2bf3('0xd0')](_0x1424cc):null,_0x5a5b92=this[_0x2bf3('0xa8')](_0x5aefba,_0x5a45af),_0x198dd3=_0x5a5b92[_0x5a5b92[_0x2bf3('0x71')]-0x1],_0x449983=new Map(),_0x2764e5={'model':{},'attributes':{},'changes':[]},_0x11b056=new Set(),_0x3dd9d9=new Map();for(let _0x583f20=_0x5a5b92[_0x2bf3('0x71')]-0x1;_0x583f20>=0x0;_0x583f20--){const _0x38f31f=_0x5a5b92[_0x583f20];for(const _0x407770 of Object['keys'](_0x38f31f[_0x2bf3('0x47')]))if(_0x38f31f[_0x2bf3('0x47')][_0x407770]['attachChange']){const _0x24357c=_0x38f31f[_0x2bf3('0x47')][_0x407770][_0x2bf3('0x11b')];_0x24357c[_0x2bf3('0x1c')]?(_0x11b056['add'](_0x407770),_0x3dd9d9[_0x2bf3('0x18')](_0x407770)&&_0x3dd9d9['get'](_0x407770)[_0x2bf3('0x59')]==_0x24357c[_0x2bf3('0x59')]?_0x3dd9d9[_0x2bf3('0x8b')](_0x407770):_0x3dd9d9[_0x2bf3('0x6d')](_0x407770,_0x24357c)):_0x3dd9d9[_0x2bf3('0x18')](_0x407770)?(_0x11b056['delete'](_0x407770),_0x3dd9d9['delete'](_0x407770)):(_0x11b056[_0x2bf3('0xbc')](_0x407770),_0x3dd9d9[_0x2bf3('0x6d')](_0x407770,_0x24357c));}else _0x11b056[_0x2bf3('0xbc')](_0x407770);}for(const _0x1fb0a5 of _0x11b056){const _0x4accd5=_0x3dd9d9[_0x2bf3('0x18')](_0x1fb0a5)&&!_0x3dd9d9[_0x2bf3('0x4f')](_0x1fb0a5)['isAttached'];let _0x5b4810=_0x4accd5?_0x5a5b92[_0x2bf3('0x71')]-0x1:0x0;const _0x292c7e=_0x4accd5?-0x1:0x1;for(;_0x5a5b92[_0x5b4810];){const _0x236215=_0x5a5b92[_0x5b4810];if(_0x236215[_0x2bf3('0x47')][_0x1fb0a5]){const _0x578a98=_0x4accd5?_0x236215[_0x2bf3('0x47')][_0x1fb0a5]['attributesBefore']:_0x236215[_0x2bf3('0x47')][_0x1fb0a5][_0x2bf3('0x88')];_0x2764e5[_0x2bf3('0x9')][_0x1fb0a5]=_0x578a98?_0x44e643(_0x578a98):{};break;}_0x5b4810+=_0x292c7e;}}for(const _0x269a41 of _0x5a5b92){_0x269a41[_0x2bf3('0xcc')]={};for(const _0x38e1b6 of _0x269a41[_0x2bf3('0x73')])_0x449983[_0x2bf3('0x6d')](_0x38e1b6['id'],_0x38e1b6);for(const _0x101025 of _0x11b056){const _0x237b35=_0x269a41[_0x2bf3('0x47')][_0x101025]?_0x269a41[_0x2bf3('0x47')][_0x101025]['insertions']:'[]',_0x7afd9b=_0x269a41[_0x2bf3('0x47')][_0x101025]?_0x269a41[_0x2bf3('0x47')][_0x101025][_0x2bf3('0x5e')]:'[]';_0x269a41[_0x2bf3('0xcc')][_0x101025]={'insertions':this['_makeModelFromViewString'](_0x237b35),'deletions':this[_0x2bf3('0x26')](_0x7afd9b)};}}for(const _0x1136ee of _0x11b056){let _0x3d7de7=null,_0x2e37ca=0x0;const _0xd29a9b=new Map(Array['from'](_0x5aefba[_0x2bf3('0xcc')][_0x1136ee][_0x2bf3('0xdb')][_0x2bf3('0x110')])[_0x2bf3('0x83')](([_0x563d94])=>!_0x563d94[_0x2bf3('0xd7')](_0x2bf3('0xdd'))));let _0x4cdb79=0x0;for(const _0x3ec4d5 of _0x5a5b92){const _0x42859a=this[_0x2bf3('0x2b')](_0x3ec4d5[_0x2bf3('0xcc')][_0x1136ee][_0x2bf3('0xdb')]);_0x3ec4d5==_0x5aefba?(_0x3d7de7=_0x42859a,_0x2e37ca=_0x3d7de7['length'],_0x3d7de7['forEach'](_0x303eb3=>{_0x303eb3['id']=_0x4cdb79++;}),this['_processTape'](_0x3d7de7)):this['_markInsertions'](_0x3d7de7,_0x42859a);const _0x3aec1c=_0x3d7de7[_0x2bf3('0x83')](_0x54a747=>!_0x54a747[_0x2bf3('0x7b')])[_0x2bf3('0x28')](_0x4f4ded=>_0x4f4ded['id']);let _0x24e289=0x0;const _0x379e80=this[_0x2bf3('0x2b')](_0x3ec4d5[_0x2bf3('0xcc')][_0x1136ee]['deletions']);_0x379e80[_0x2bf3('0xe3')](_0x229b3e=>{_0x229b3e[_0x2bf3('0x61')]?_0x229b3e['id']=_0x2e37ca++:_0x229b3e['id']=_0x3aec1c[_0x24e289++];}),this['_processTape'](_0x379e80),this[_0x2bf3('0x113')](_0x3d7de7,_0x2bf3('0x7b')),this[_0x2bf3('0x113')](_0x379e80,_0x2bf3('0x61')),_0x3ec4d5==_0x5aefba&&this[_0x2bf3('0x22')](_0x3d7de7,_0xd29a9b),_0x3d7de7=this['_joinTapes'](_0x3d7de7,_0x379e80),this[_0x2bf3('0x67')](_0x3d7de7),this[_0x2bf3('0x113')](_0x3d7de7,_0x2bf3('0x61'));}_0x3d7de7=_0x3d7de7[_0x2bf3('0x83')](_0x5ad71f=>!(_0x5ad71f[_0x2bf3('0x7b')]&&_0x5ad71f['isRemoved']));const _0x31ffcd=new Map(_0x198dd3[_0x2bf3('0xcc')][_0x1136ee]['deletions'][_0x2bf3('0x110')]),_0x418855=new Set(_0xd29a9b[_0x2bf3('0xed')]());for(const _0x38ff61 of _0x31ffcd[_0x2bf3('0xed')]())_0x418855[_0x2bf3('0x8b')](_0x38ff61);this[_0x2bf3('0x10a')](_0x3d7de7,_0x418855),this['_fixObsoleteTags'](_0x3d7de7),_0x3d7de7=this[_0x2bf3('0x1')](_0x3d7de7),_0x3d7de7=this[_0x2bf3('0x2c')](_0x3d7de7),_0x3d7de7=this['_removeUnsupportedChanges'](_0x3d7de7);const {root:_0x3e4100,changes:_0x5bdbce}=this[_0x2bf3('0x1a')](_0x3d7de7,_0x449983,_0x1136ee);_0x2764e5[_0x2bf3('0xcc')][_0x1136ee]=_0x3e4100;const _0x1e3f92=_0x3dd9d9[_0x2bf3('0x4f')](_0x1136ee);if(_0x1e3f92){const _0x46773e=_0x449983[_0x2bf3('0x4f')](_0x1e3f92['userId']),_0x1cd248=new _0x2291e3({'author':_0x46773e,'type':_0x1e3f92[_0x2bf3('0x1c')]?_0x2bf3('0xbc'):_0x2bf3('0x6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1136ee});_0x5bdbce[_0x2bf3('0x95')](_0x1cd248),_0x2764e5['attributes'][_0x1136ee][_0x2bf3('0xe1')]=_0x1cd248['id'];}_0x2764e5['changes']=_0x2764e5[_0x2bf3('0xd9')]['concat'](_0x5bdbce);}return _0x2764e5;}[_0x2bf3('0x22')](_0x386cd1,_0x467a29){for(let _0x589fb8=0x0;_0x589fb8<_0x386cd1[_0x2bf3('0x71')];_0x589fb8++)for(const [_0x4aae1d,_0x13419a]of _0x467a29)_0x13419a[_0x2bf3('0x99')][_0x2bf3('0xb6')](_0x386cd1[_0x589fb8]['previousPosition'])&&_0x386cd1[_0x589fb8][_0x2bf3('0x6b')][_0x2bf3('0xdf')](_0x4aae1d),_0x13419a[_0x2bf3('0x3d')][_0x2bf3('0xb6')](_0x386cd1[_0x589fb8]['nextPosition'])&&_0x386cd1[_0x589fb8][_0x2bf3('0x10b')]['push'](_0x4aae1d);}[_0x2bf3('0x9e')](_0x1e434d,_0x24e71c){let _0x4aa50b=[],_0x4f17ca=0x0,_0x38812c=0x0;for(;_0x4f17ca<_0x1e434d['length']||_0x38812c<_0x24e71c[_0x2bf3('0x71')];){const _0x4a1515=_0x1e434d[_0x4f17ca]||{},_0x3ee982=_0x24e71c[_0x38812c]||{};if(_0x4a1515['id']==_0x3ee982['id'])_0x4f17ca++,_0x38812c++,_0x4aa50b[_0x2bf3('0xdf')](_0x4a1515);else{if(_0x3ee982[_0x2bf3('0x61')]&&_0x4a1515[_0x2bf3('0x7b')]){const {commonTape:_0x519afd,iEnd:_0x4f210c,jEnd:_0x41dd58}=this[_0x2bf3('0xf9')](_0x1e434d,_0x4f17ca,_0x24e71c,_0x38812c);_0x4aa50b=_0x4aa50b[_0x2bf3('0x31')](_0x519afd),_0x4f17ca=_0x4f210c,_0x38812c=_0x41dd58;}else _0x3ee982[_0x2bf3('0x61')]?(_0x38812c++,_0x4aa50b[_0x2bf3('0xdf')](_0x3ee982)):(_0x4f17ca++,_0x4aa50b[_0x2bf3('0xdf')](_0x4a1515));}}return _0x4aa50b;}['_markSuggestions'](_0x57e969,_0x19f2b4){const _0x31c852=[];for(let _0x2736cc=0x0;_0x2736cc<_0x57e969[_0x2bf3('0x71')];_0x2736cc++){for(let _0x44c154=0x0;_0x44c154<_0x57e969[_0x2736cc][_0x2bf3('0x6b')][_0x2bf3('0x71')];_0x44c154++){const _0x1561da=_0x57e969[_0x2736cc][_0x2bf3('0x6b')][_0x44c154];if(!_0x19f2b4['has'](_0x1561da))continue;const {group:_0x30f37c,type:_0x595f85,authorId:_0x3914a3}=_0x4cd415(_0x1561da);_0x2bf3('0x40')!=_0x30f37c||_0x2bf3('0x11')!=_0x595f85&&_0x2bf3('0x103')!=_0x595f85||(_0x31c852[_0x2bf3('0x95')]({'type':_0x595f85,'name':_0x1561da,'userId':_0x3914a3}),_0x57e969[_0x2736cc][_0x2bf3('0x6b')][_0x2bf3('0xf2')](_0x44c154,0x1),_0x44c154--);}_0xa9d7e9(_0x57e969[_0x2736cc]);for(let _0x7c3963=0x0;_0x7c3963<_0x57e969[_0x2736cc]['markersEnd'][_0x2bf3('0x71')];_0x7c3963++){const _0x9bbaba=_0x57e969[_0x2736cc][_0x2bf3('0x10b')][_0x7c3963];if(!_0x19f2b4[_0x2bf3('0x18')](_0x9bbaba))continue;const {group:_0x1aa89b,type:_0x4205b7}=_0x4cd415(_0x9bbaba);if('revision-suggestion'!=_0x1aa89b||_0x2bf3('0x11')!=_0x4205b7&&'deletion'!=_0x4205b7)continue;_0x57e969[_0x2736cc][_0x2bf3('0x10b')]['splice'](_0x7c3963,0x1),_0x7c3963--;const _0x61e0c6=_0x31c852[_0x2bf3('0xcb')](_0x362982=>_0x362982[_0x2bf3('0xd')]==_0x9bbaba);_0x61e0c6>-0x1&&_0x31c852[_0x2bf3('0xf2')](_0x61e0c6,0x1);}}function _0x4cd415(_0x5e6ea6){const _0x583d15=_0x5e6ea6[_0x2bf3('0x116')](':');return{'group':_0x583d15[0x0],'type':_0x583d15[0x1],'subType':_0x583d15[_0x2bf3('0x71')]>=0x5?_0x583d15[0x2]:null,'id':_0x583d15['length']<0x5?_0x583d15[0x2]:_0x583d15[0x3],'authorId':_0x583d15['length']<0x5?_0x583d15[0x3]:_0x583d15[0x4],'markerCount':0x6==_0x583d15[_0x2bf3('0x71')]?_0x583d15[0x5]:null};}function _0xa9d7e9(_0x23a5a6){for(let _0x1b80f2=0x0;_0x1b80f2<_0x31c852[_0x2bf3('0x71')];_0x1b80f2++){if(_0x23a5a6['isAdded']&&_0x2bf3('0x11')==_0x31c852[_0x1b80f2][_0x2bf3('0x108')])return _0x23a5a6['isAddSuggestion']=_0x31c852[_0x1b80f2],void delete _0x23a5a6[_0x2bf3('0x7b')];if(!_0x23a5a6[_0x2bf3('0x7b')]&&!_0x23a5a6['isRemoved']&&_0x2bf3('0x103')==_0x31c852[_0x1b80f2]['type'])return void(_0x23a5a6[_0x2bf3('0xf0')]=_0x31c852[_0x1b80f2]);}}}['_setDistance'](_0x5a02e5,_0x3b8cb7){let _0x347147=0x0,_0x17949b=!0x1;const _0x25c781=new Map();for(const _0x2a336d of _0x5a02e5)_0x2a336d[_0x3b8cb7]?_0x17949b&&(_0x347147++,_0x17949b=!0x1):(_0x347147++,_0x17949b=!0x0),_0x25c781['set'](_0x2a336d['id'],_0x347147);for(let _0xa46289=0x0;_0xa46289<_0x5a02e5[_0x2bf3('0x71')];_0xa46289++){if(_0x2bf3('0x61')==_0x3b8cb7&&_0x5a02e5[_0xa46289][_0x2bf3('0x7b')]||_0x2bf3('0x7b')==_0x3b8cb7&&_0x5a02e5[_0xa46289][_0x2bf3('0x61')])continue;if(_0x2bf3('0x6e')==_0x5a02e5[_0xa46289][_0x2bf3('0x108')]){_0x5a02e5[_0xa46289]['distance']=0x0;continue;}const _0x43f04c=_0x25c781[_0x2bf3('0x4f')](_0x5a02e5[_0xa46289][_0x2bf3('0x48')]),_0x52eb10=_0x25c781[_0x2bf3('0x4f')](_0x5a02e5[_0xa46289]['id']);_0x5a02e5[_0xa46289][_0x2bf3('0xde')]=_0x43f04c-_0x52eb10;}}[_0x2bf3('0xa8')](_0x47965c,_0x1e379c,_0x3c5648=!0x1){const _0x306032=[];let _0xe8c0cd=this[_0x2bf3('0x23')][_0x2bf3('0x9b')](_0x47965c),_0x1b3032=this[_0x2bf3('0x23')][_0x2bf3('0x9b')](_0x1e379c);for(-0x1==_0x1b3032&&(_0x1b3032=this[_0x2bf3('0x23')]['_revisions'][_0x2bf3('0x71')],_0x3c5648=!0x1);_0xe8c0cd<_0x1b3032;)_0x306032[_0x2bf3('0xdf')](this[_0x2bf3('0x23')][_0x2bf3('0xd0')](_0xe8c0cd)),_0xe8c0cd++;return _0x3c5648&&_0x306032['push'](this[_0x2bf3('0x23')][_0x2bf3('0xd0')](_0xe8c0cd)),_0x306032;}['_threeWayMerge'](_0x10e677,_0x374996,_0x4a698d,_0x6f8fdb){const _0x158837=this[_0x2bf3('0x9a')]['model']['schema'];let _0x452b4a=_0x374996;for(;_0x10e677[_0x452b4a]&&_0x10e677[_0x452b4a][_0x2bf3('0x7b')];)_0x452b4a++;let _0x1f5802=_0x6f8fdb;for(;_0x4a698d[_0x1f5802]&&_0x4a698d[_0x1f5802][_0x2bf3('0x61')];)_0x1f5802++;_0x1ab526(_0x10e677,_0x374996,_0x452b4a),_0x1ab526(_0x4a698d,_0x6f8fdb,_0x1f5802);const _0x54af92=_0x4a698d[_0x2bf3('0xda')](_0x6f8fdb,_0x1f5802)[_0x2bf3('0x31')](_0x10e677[_0x2bf3('0xda')](_0x374996,_0x452b4a));return _0x54af92['sort']((_0x4d4804,_0x723205)=>_0x4d4804[_0x2bf3('0x6c')]!=_0x723205[_0x2bf3('0x6c')]?_0x4d4804['side']-_0x723205[_0x2bf3('0x6c')]:_0x4d4804[_0x2bf3('0x78')]!=_0x723205['level']?_0x4d4804[_0x2bf3('0x78')]-_0x723205[_0x2bf3('0x78')]:_0x4d4804[_0x2bf3('0xde')]!=_0x723205[_0x2bf3('0xde')]?_0x723205[_0x2bf3('0xde')]-_0x4d4804['distance']:!!_0x4d4804[_0x2bf3('0x7b')]!=!!_0x723205[_0x2bf3('0x7b')]?-0x1==_0x4d4804[_0x2bf3('0x6c')]||0x0==_0x4d4804[_0x2bf3('0x6c')]?_0x4d4804[_0x2bf3('0x7b')]?-0x1:0x1:_0x4d4804['isAdded']?0x1:-0x1:_0x4d4804[_0x2bf3('0xfa')]-_0x723205['index']),{'commonTape':_0x54af92,'iEnd':_0x452b4a,'jEnd':_0x1f5802};function _0x1ab526(_0x38127c,_0x45d903,_0x1e9010){let _0xaedd81=-0x1,_0x5d3ce7=Number['POSITIVE_INFINITY'],_0x464af6=!0x0;for(let _0x10af6d=_0x45d903;_0x10af6d<_0x1e9010;_0x10af6d++)if(_0x158837[_0x2bf3('0x36')](_0x38127c[_0x10af6d][_0x2bf3('0x2f')])||(_0x464af6=!0x1),_0x38127c[_0x10af6d][_0x2bf3('0x2f')][_0x2bf3('0x21')]<_0x45d903&&(_0xaedd81=_0x10af6d),_0x38127c[_0x10af6d][_0x2bf3('0x2f')][_0x2bf3('0x70')]>=_0x1e9010){_0x5d3ce7=_0x10af6d;break;}_0x464af6&&(_0xaedd81=_0x1e9010-0x1);for(let _0x93fee5=_0x45d903;_0x93fee5<_0x1e9010;_0x93fee5++)_0x38127c[_0x93fee5][_0x2bf3('0x6c')]=_0x93fee5<=_0xaedd81?-0x1:_0x93fee5<_0x5d3ce7?0x0:0x1,_0x38127c[_0x93fee5][_0x2bf3('0xfa')]=_0x93fee5;let _0x1fef53=0x0;for(let _0x1fa4db=_0x45d903;_0x1fa4db<=_0xaedd81;_0x1fa4db++)0x0==_0x38127c[_0x1fa4db]['distance']?_0x38127c[_0x1fa4db][_0x2bf3('0x78')]=_0x1fef53:(_0x1fef53++,_0x38127c[_0x1fa4db]['level']=_0x1fef53,_0x1fef53++);for(let _0x46affd=_0x45d903;_0x46affd<_0x1e9010;_0x46affd++)0x0==_0x38127c[_0x46affd][_0x2bf3('0x6c')]&&(_0x38127c[_0x46affd][_0x2bf3('0x78')]=_0x1fef53);_0x1fef53=0x0;for(let _0x532d96=_0x1e9010-0x1;_0x532d96>=_0x5d3ce7;_0x532d96--)0x0==_0x38127c[_0x532d96][_0x2bf3('0xde')]?_0x38127c[_0x532d96]['level']=_0x1fef53:(_0x1fef53--,_0x38127c[_0x532d96][_0x2bf3('0x78')]=_0x1fef53,_0x1fef53--);}}[_0x2bf3('0x54')](_0x406345){const _0x51cc4a=new Map(),_0x5919d2=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x7a')];for(let _0x4a93b2=0x1;_0x4a93b2<_0x406345[_0x2bf3('0x71')];_0x4a93b2++){let _0x57d06c,_0x2cbaa9,_0xcde88a;const _0x5cd603=_0x406345[_0x4a93b2],_0xce6e21=_0x406345[_0x4a93b2-0x1];if('text'==_0x5cd603['type'])continue;if(_0x5cd603['type']!=_0xce6e21['type'])continue;if(!_0x5919d2['isBlock'](_0xce6e21[_0x2bf3('0x2f')])||_0x5919d2[_0x2bf3('0x37')](_0xce6e21['item']))continue;if(!_0x5919d2[_0x2bf3('0xa9')](_0x5cd603[_0x2bf3('0x2f')])||_0x5919d2[_0x2bf3('0x37')](_0x5cd603[_0x2bf3('0x2f')]))continue;if((_0x406345[_0x4a93b2][_0x2bf3('0x7b')]||_0x406345[_0x4a93b2][_0x2bf3('0x19')])&&_0x406345[_0x4a93b2-0x1][_0x2bf3('0x61')])_0x57d06c=_0x406345[_0x4a93b2],_0x2cbaa9=_0x406345[_0x4a93b2-0x1],_0xcde88a=_0x4a93b2-0x1;else{if(!_0x406345[_0x4a93b2][_0x2bf3('0x61')]||!_0x406345[_0x4a93b2-0x1]['isAdded']&&!_0x406345[_0x4a93b2-0x1]['isAddSuggestion'])continue;_0x57d06c=_0x406345[_0x4a93b2-0x1],_0x2cbaa9=_0x406345[_0x4a93b2],_0xcde88a=_0x4a93b2;}const _0x295303=_0x57d06c[_0x2bf3('0x78')]==_0x2cbaa9[_0x2bf3('0x78')],_0x42fc43=Math[_0x2bf3('0x3a')](_0x57d06c[_0x2bf3('0x78')])<Math['abs'](_0x2cbaa9[_0x2bf3('0x78')])&&0x0==_0x2cbaa9['distance'];(_0x295303||_0x42fc43)&&(_0x51cc4a['set'](_0x2cbaa9['id'],_0x57d06c['id']),_0x406345['splice'](_0xcde88a,0x1),_0x4a93b2--,_0x57d06c[_0x2bf3('0x7b')]=!0x1);}for(let _0x2f365f=0x0;_0x2f365f<_0x406345[_0x2bf3('0x71')];_0x2f365f++)_0x51cc4a[_0x2bf3('0x18')](_0x406345[_0x2f365f][_0x2bf3('0x48')])&&(_0x406345[_0x2f365f]['pairId']=_0x51cc4a[_0x2bf3('0x4f')](_0x406345[_0x2f365f][_0x2bf3('0x48')]));}[_0x2bf3('0x1')](_0x57678a){const _0x348eb8=new Set(_0x57678a[_0x2bf3('0x28')](_0x5c6dae=>_0x5c6dae['id']));for(let _0x5ce3db=0x0;_0x5ce3db<_0x57678a[_0x2bf3('0x71')];_0x5ce3db++)_0x348eb8[_0x2bf3('0x18')](_0x57678a[_0x5ce3db][_0x2bf3('0x48')])||0x0==_0x57678a[_0x5ce3db]['distance']||(_0x57678a[_0x5ce3db][_0x2bf3('0xe6')]=!0x0);return _0x57678a[_0x2bf3('0x83')](_0x481025=>!_0x481025[_0x2bf3('0xe6')]);}['_markMismatchedRemovedTags'](_0x55e591){const _0x31651a=new Set();for(let _0xa9fa7a=0x0;_0xa9fa7a<_0x55e591['length'];_0xa9fa7a++){if(_0x31651a[_0x2bf3('0x18')](_0x55e591[_0xa9fa7a]['id'])&&_0x55e591[_0xa9fa7a][_0x2bf3('0x61')]&&(_0x55e591[_0xa9fa7a]['isIncorrect']=!0x0),_0x55e591[_0xa9fa7a][_0x2bf3('0xe6')])continue;if(0x0==_0x55e591[_0xa9fa7a][_0x2bf3('0xde')])continue;if(_0x2bf3('0x89')!=_0x55e591[_0xa9fa7a][_0x2bf3('0x108')])continue;if(null==_0x55e591[_0xa9fa7a][_0x2bf3('0x48')])continue;let _0x30750e=_0xa9fa7a+0x1,_0x51f45a=0x0;for(;_0x55e591[_0x30750e]['id']!=_0x55e591[_0xa9fa7a][_0x2bf3('0x48')];)_0x2bf3('0x89')==_0x55e591[_0x30750e][_0x2bf3('0x108')]?_0x51f45a++:_0x2bf3('0x8d')==_0x55e591[_0x30750e][_0x2bf3('0x108')]&&_0x51f45a--,_0x30750e++;if(0x0!=_0x51f45a){if(_0x55e591[_0xa9fa7a][_0x2bf3('0x61')])_0x55e591[_0xa9fa7a][_0x2bf3('0xe6')]=!0x0;else for(;_0x30750e!=_0xa9fa7a;)_0x55e591[_0x30750e][_0x2bf3('0x61')]&&0x0!=_0x55e591[_0x30750e][_0x2bf3('0xde')]&&(_0x55e591[_0x30750e][_0x2bf3('0xe6')]=!0x0,_0x31651a['add'](_0x55e591[_0x30750e][_0x2bf3('0x48')])),_0x30750e--;}}return _0x55e591[_0x2bf3('0x83')](_0x4147ba=>!_0x4147ba[_0x2bf3('0xe6')]);}[_0x2bf3('0x5b')](_0x237ca4){const _0x2ffcb8=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['schema'];for(let _0x3b21aa=0x0;_0x3b21aa<_0x237ca4[_0x2bf3('0x71')];_0x3b21aa++){if(!(_0x237ca4[_0x3b21aa][_0x2bf3('0x7b')]||_0x237ca4[_0x3b21aa][_0x2bf3('0x19')]||_0x237ca4[_0x3b21aa][_0x2bf3('0x61')]||_0x237ca4[_0x3b21aa][_0x2bf3('0xf0')]))continue;if(0x0==_0x237ca4[_0x3b21aa]['distance'])continue;const _0x20fe35=_0x237ca4[_0x3b21aa][_0x2bf3('0x2f')];_0x2ffcb8[_0x2bf3('0xa9')](_0x20fe35)||_0x2ffcb8['isLimit'](_0x20fe35)||(_0x237ca4[_0x3b21aa][_0x2bf3('0x7b')]&&delete _0x237ca4[_0x3b21aa][_0x2bf3('0x7b')],_0x237ca4[_0x3b21aa]['isAddSuggestion']&&delete _0x237ca4[_0x3b21aa]['isAddSuggestion'],_0x237ca4[_0x3b21aa][_0x2bf3('0xf0')]&&delete _0x237ca4[_0x3b21aa][_0x2bf3('0xf0')],_0x237ca4[_0x3b21aa][_0x2bf3('0x61')]&&(_0x237ca4[_0x3b21aa][_0x2bf3('0xe6')]=!0x0));}return _0x237ca4[_0x2bf3('0x83')](_0x28078b=>!_0x28078b[_0x2bf3('0xe6')]);}[_0x2bf3('0x1a')](_0x22bf65,_0x1b3376,_0x2fd35a){const _0x339c86=new _0x375ce7(),_0x4f3a38=[],_0xbeb4a0=new Map(),_0x388c88=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')],_0x405b30=_0x388c88[_0x2bf3('0x7a')],_0x21dd96=[_0x339c86],_0x175aa2={},_0x2b84ac={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x540e61=null;const _0x133be8=[0x0];for(let _0x5d2878=0x0;_0x5d2878<_0x22bf65[_0x2bf3('0x71')];_0x5d2878++){let _0x1c0a9f,_0x1f9101;if(_0x2bf3('0x89')===_0x22bf65[_0x5d2878][_0x2bf3('0x108')]){_0x1c0a9f=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8);const _0x41e46b=new _0x59b09a(_0x22bf65[_0x5d2878][_0x2bf3('0x2f')][_0x2bf3('0xd')],_0x22bf65[_0x5d2878]['item'][_0x2bf3('0xfe')]());_0x21dd96[0x0][_0x2bf3('0x20')](_0x41e46b),_0x133be8[_0x2bf3('0xdf')](0x0),_0x21dd96['unshift'](_0x41e46b),_0x1f9101=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8),_0x540e61=null;}else{if(_0x2bf3('0x8d')===_0x22bf65[_0x5d2878]['type'])_0x21dd96[_0x2bf3('0x68')](),_0x1c0a9f=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8),_0x133be8[_0x2bf3('0x53')](),_0x133be8[_0x133be8['length']-0x1]++,_0x1f9101=_0x388c88['createPositionFromPath'](_0x339c86,_0x133be8),_0x540e61=null;else{if(_0x1c0a9f=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8),_0x540e61&&_0x133fef(_0x540e61,_0x22bf65[_0x5d2878][_0x2bf3('0x2f')]))_0x540e61[_0x2bf3('0x1e')]+=_0x22bf65[_0x5d2878][_0x2bf3('0x2f')]['data'];else{const _0x31ef6b=new _0x3efad0(_0x22bf65[_0x5d2878]['item'][_0x2bf3('0xec')],_0x22bf65[_0x5d2878][_0x2bf3('0x2f')][_0x2bf3('0xfe')]());_0x21dd96[0x0]['_appendChild'](_0x31ef6b),_0x540e61=_0x31ef6b;}_0x133be8[_0x133be8[_0x2bf3('0x71')]-0x1]+=_0x22bf65[_0x5d2878]['item'][_0x2bf3('0xc0')],_0x1f9101=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8);}}for(const _0x46e9ab of _0x22bf65[_0x5d2878][_0x2bf3('0x6b')])_0xbeb4a0[_0x2bf3('0x6d')](_0x46e9ab,{'start':_0x1c0a9f,'end':null});_0x2604e1(_0x2bf3('0xf0'),_0x5d2878,_0x1c0a9f,_0x1f9101),_0x2604e1(_0x2bf3('0x19'),_0x5d2878,_0x1c0a9f,_0x1f9101),_0x2604e1(_0x2bf3('0x61'),_0x5d2878,_0x1c0a9f,_0x1f9101),_0x2604e1(_0x2bf3('0x7b'),_0x5d2878,_0x1c0a9f,_0x1f9101);for(const _0x1e037c of _0x22bf65[_0x5d2878][_0x2bf3('0x10b')]){_0xbeb4a0[_0x2bf3('0x4f')](_0x1e037c)[_0x2bf3('0x3d')]=_0x1f9101;}}for(const [_0x40dae3,_0x486963]of _0xbeb4a0){const _0x55dc2b=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['createRange'](_0x486963[_0x2bf3('0x99')],_0x486963[_0x2bf3('0x3d')]);_0x339c86[_0x2bf3('0x110')][_0x2bf3('0x6d')](_0x40dae3,_0x55dc2b);}return _0x4f3a38[_0x2bf3('0x82')]((_0x4003ab,_0x49b268)=>{const _0x5c5c08=_0x339c86[_0x2bf3('0x110')][_0x2bf3('0x4f')]('revision:'+_0x4003ab['id']),_0x30a6ae=_0x339c86[_0x2bf3('0x110')]['get']('revision:'+_0x49b268['id']);return _0x5c5c08[_0x2bf3('0x99')][_0x2bf3('0x77')](_0x30a6ae['start'])?-0x1:_0x5c5c08[_0x2bf3('0x99')][_0x2bf3('0x1d')](_0x30a6ae[_0x2bf3('0x99')])?0x1:_0x5c5c08[_0x2bf3('0x3d')][_0x2bf3('0x77')](_0x30a6ae['end'])?-0x1:_0x5c5c08[_0x2bf3('0x3d')]['isAfter'](_0x30a6ae['end'])?0x1:_0x2bf3('0xbc')===_0x4003ab[_0x2bf3('0x108')]?-0x1:0x1;}),{'root':_0x339c86,'changes':_0x4f3a38};function _0x2604e1(_0x14227a,_0x1c1e67,_0x114e76,_0x499f3b){const _0x458a84=!!_0x22bf65[_0x1c1e67][_0x14227a],_0x1143c4=_0x458a84?_0x22bf65[_0x1c1e67][_0x14227a][_0x2bf3('0x59')]:null,_0x1c7b15=_0x1c1e67===_0x22bf65['length']-0x1,_0x11c9a8=_0x2b84ac[_0x14227a][0x0],_0x28b60e=_0x405b30[_0x2bf3('0x96')](_0x22bf65[_0x1c1e67][_0x2bf3('0x2f')]);!_0x175aa2[_0x14227a]&&_0x458a84?_0x175aa2[_0x14227a]={'start':_0x114e76,'tapeItem':_0x22bf65[_0x1c1e67],'userId':_0x1143c4,'type':_0x14227a}:_0x175aa2[_0x14227a]&&!_0x458a84?(_0x175aa2[_0x14227a][_0x2bf3('0x3d')]=_0x114e76,_0x39a773(_0x175aa2[_0x14227a]),_0x175aa2[_0x14227a]=null):_0x175aa2[_0x14227a]&&_0x458a84&&_0x175aa2[_0x14227a][_0x2bf3('0x59')]!==_0x1143c4&&(_0x175aa2[_0x14227a][_0x2bf3('0x3d')]=_0x114e76,_0x11c9a8&&_0x11c9a8[_0x2bf3('0x59')]===_0x175aa2[_0x14227a]['userId']||_0x39a773(_0x175aa2[_0x14227a]),_0x175aa2[_0x14227a]={'start':_0x114e76,'tapeItem':_0x22bf65[_0x1c1e67],'userId':_0x1143c4,'type':_0x14227a}),_0x175aa2[_0x14227a]&&_0x28b60e&&('elementStart'!==_0x22bf65[_0x1c1e67][_0x2bf3('0x108')]||_0x11c9a8&&_0x11c9a8[_0x2bf3('0x59')]===_0x1143c4||_0x2b84ac[_0x14227a][_0x2bf3('0x95')]({'userId':_0x1143c4,'object':_0x22bf65[_0x1c1e67][_0x2bf3('0x2f')],'change':_0x175aa2[_0x14227a]}),_0x2bf3('0x8d')===_0x22bf65[_0x1c1e67][_0x2bf3('0x108')]&&_0x11c9a8&&_0x11c9a8['object']===_0x22bf65[_0x1c1e67][_0x2bf3('0x2f')]&&(_0x2b84ac[_0x14227a][_0x2bf3('0x68')](),_0x175aa2[_0x14227a]=_0x11c9a8[_0x2bf3('0xc4')])),_0x175aa2[_0x14227a]&&_0x1c7b15&&(_0x175aa2[_0x14227a]['end']=_0x499f3b,_0x39a773(_0x175aa2[_0x14227a]),_0x175aa2[_0x14227a]=null);}function _0x39a773({start:_0x25151b,end:_0x1ad674,tapeItem:_0x43192c,userId:_0x58dfd6,type:_0x596e90}){const _0x543a8c=_0x43192c['item'],_0x3bedbc=_0x388c88[_0x2bf3('0x7a')][_0x2bf3('0xa9')](_0x543a8c)&&!_0x388c88[_0x2bf3('0x7a')][_0x2bf3('0x37')](_0x543a8c),_0x230e08=_0x25151b['nodeAfter']==_0x1ad674[_0x2bf3('0xf8')]&&_0x1ad674[_0x2bf3('0x65')];if(_0x3bedbc&&_0x230e08)return;const _0x3dadab=_0x388c88[_0x2bf3('0xe7')](_0x25151b,_0x1ad674),_0x3b8d03=_0x1b3376[_0x2bf3('0x4f')](_0x58dfd6),_0x4bc568=new _0x2291e3({'author':_0x3b8d03,'type':_0x2bf3('0x7b')==_0x596e90||'isAddSuggestion'==_0x596e90?_0x2bf3('0xbc'):'remove','data':{'isSuggestion':_0x2bf3('0x19')==_0x596e90||'isRemoveSuggestion'==_0x596e90},'createdAt':new Date(),'rootName':_0x2fd35a});_0x4f3a38[_0x2bf3('0xdf')](_0x4bc568),_0x339c86[_0x2bf3('0x110')]['set'](_0x2bf3('0xdd')+_0x4bc568['id'],_0x3dadab);}function _0x133fef(_0x544bbe,_0x32b171){const _0x1e4d9f=_0x544bbe[_0x2bf3('0xfe')](),_0x44717d=_0x32b171[_0x2bf3('0xfe')]();for(const _0x3a20dd of _0x1e4d9f){if(_0x3a20dd[0x1]!==_0x32b171[_0x2bf3('0x14')](_0x3a20dd[0x0]))return!0x1;_0x44717d[_0x2bf3('0x11e')]();}return _0x44717d[_0x2bf3('0x11e')]()[_0x2bf3('0xf6')];}}[_0x2bf3('0x102')](){this[_0x2bf3('0x9a')][_0x2bf3('0x32')]['for'](_0x2bf3('0xcf'))[_0x2bf3('0x7c')]({'view':_0x2bf3('0x34')}),this['editor'][_0x2bf3('0x32')]['for'](_0x2bf3('0x35'))['markerToHighlight']({'model':'revision','view':_0xfb8cf0=>{const _0x878729=_0xfb8cf0[_0x2bf3('0x6f')][_0x2bf3('0x116')](':')[0x1],_0x57a9d3=this[_0x2bf3('0xd3')](_0x878729);if(!_0x57a9d3)return null;const _0x446b8c=_0x2bf3('0xbc')==_0x57a9d3[_0x2bf3('0x108')]?_0x2bf3('0x11'):_0x2bf3('0x103'),_0x336d7e=[_0x2bf3('0xaa'),_0x2bf3('0x51')+_0x446b8c];return _0x57a9d3[_0x2bf3('0xec')]['isSuggestion']&&_0x336d7e[_0x2bf3('0xdf')](_0x2bf3('0x51')+_0x446b8c+_0x2bf3('0x91')),this[_0x2bf3('0x3')]==_0x57a9d3&&_0x336d7e[_0x2bf3('0xdf')](_0x2bf3('0x97')),{'classes':_0x336d7e,'attributes':{'data-change-id':_0x878729}};}}),this['editor'][_0x2bf3('0x32')][_0x2bf3('0xf1')](_0x2bf3('0xcf'))[_0x2bf3('0xbc')](_0x28d8f8=>{_0x28d8f8['on'](_0x2bf3('0xea'),(_0x48ccff,_0x18342c,_0x561a39)=>{const _0x4be4d7=_0x18342c[_0x2bf3('0x25')]['getChild'](0x0);if(!_0x4be4d7||!_0x4be4d7['is']('element',_0x2bf3('0xac')))return;if(!_0x561a39[_0x2bf3('0xa0')][_0x2bf3('0xc7')](_0x4be4d7,{'attributes':[_0x2bf3('0xf7'),_0x2bf3('0xa3')]}))return;const _0x2a4ad8=_0x18342c[_0x2bf3('0xc5')]['start']['nodeAfter'];_0x561a39[_0x2bf3('0x106')]['setAttribute'](_0x2bf3('0xf7'),_0x4be4d7[_0x2bf3('0x14')](_0x2bf3('0xf7')),_0x2a4ad8),_0x561a39[_0x2bf3('0x106')]['setAttribute'](_0x2bf3('0xa3'),_0x4be4d7[_0x2bf3('0x14')]('vid_end'),_0x2a4ad8);},{'priority':'low'});}),this['editor'][_0x2bf3('0x32')][_0x2bf3('0xf1')](_0x2bf3('0xcf'))[_0x2bf3('0xbc')](_0x10516b=>{_0x10516b['on']('element',(_0x3b58de,_0x1c20f6,_0x56ea3e)=>{if(!_0x56ea3e[_0x2bf3('0xa0')][_0x2bf3('0xc7')](_0x1c20f6[_0x2bf3('0x25')],{'attributes':[_0x2bf3('0xf7'),_0x2bf3('0xa3')]}))return;if(_0x1c20f6['modelRange'][_0x2bf3('0x119')])return;const _0x3ad183=_0x1c20f6['modelRange'][_0x2bf3('0x99')][_0x2bf3('0x50')];_0x3ad183[_0x2bf3('0x86')](_0x2bf3('0xf7'))||_0x3ad183[_0x2bf3('0x86')](_0x2bf3('0x8f'))||(_0x56ea3e[_0x2bf3('0x106')]['setAttribute']('vid_start',_0x1c20f6[_0x2bf3('0x25')][_0x2bf3('0x14')](_0x2bf3('0xf7')),_0x3ad183),_0x56ea3e['writer'][_0x2bf3('0xe5')](_0x2bf3('0xa3'),_0x1c20f6['viewItem'][_0x2bf3('0x14')](_0x2bf3('0xa3')),_0x3ad183));},{'priority':_0x2bf3('0xd8')});}),this['editor'][_0x2bf3('0x32')][_0x2bf3('0xf1')]('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x2bf3('0x8f'),'value':_0x5902a5=>_0x5902a5[_0x2bf3('0x14')](_0x2bf3('0x8f'))}}),this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x7a')]['on']('checkAttribute',(_0xc0414,[,_0x2cc6a2])=>{['vid_start','vid_end',_0x2bf3('0x8f')][_0x2bf3('0xce')](_0x2cc6a2)&&(_0xc0414[_0x2bf3('0x115')]=!0x0,_0xc0414[_0x2bf3('0xca')]());},{'priority':_0x2bf3('0xb0')}),this[_0x2bf3('0x9a')]['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xd5'))['add'](_0x1f614f=>{_0x1f614f['on'](_0x2bf3('0xff'),(_0x4456e7,_0x11aaa7,_0x47df1e)=>{if('\x20'!=_0x11aaa7[_0x2bf3('0x2f')][_0x2bf3('0xec')]||_0x11aaa7[_0x2bf3('0x2f')][_0x2bf3('0xf8')][_0x2bf3('0x7d')]>0x1)return;if(!_0x47df1e['consumable'][_0x2bf3('0xc7')](_0x11aaa7['item'],_0x4456e7[_0x2bf3('0xd')]))return;const _0x24e6b8=_0x47df1e[_0x2bf3('0x106')],_0xb9bc=_0x47df1e[_0x2bf3('0x7')][_0x2bf3('0xc')](_0x11aaa7[_0x2bf3('0xbe')]);_0x24e6b8[_0x2bf3('0xcd')](_0xb9bc,_0x24e6b8[_0x2bf3('0x90')](_0x2bf3('0x2a')));});}),this[_0x2bf3('0x9a')]['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xd5'))['markerToData']({'model':'revision'}),this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x0')]['on'](_0x2bf3('0x1b'),function(_0x9cfa6b){const _0x438f86=_0x9cfa6b['plugins'][_0x2bf3('0x4f')](_0x2bf3('0x2'));return(_0x4e9c10,_0x464a85,_0x111d05)=>{const _0x375914=_0x464a85[_0x2bf3('0x6f')][_0x2bf3('0x116')](':')[0x1],_0x22c4be=_0x438f86['_getChangeFromId'](_0x375914);if(!_0x22c4be)return null;const _0x2b9b31=_0x2bf3('0xbc')==_0x22c4be['type']?_0x2bf3('0x116'):'merge';if(!_0x111d05[_0x2bf3('0xa0')][_0x2bf3('0x39')](_0x464a85[_0x2bf3('0x75')],_0x4e9c10[_0x2bf3('0xd')]))return;const _0x120269=_0x464a85[_0x2bf3('0x75')]['getWalker'](),_0x53bc60=_0x464a85[_0x2bf3('0x75')]['start'],_0x5365ad=_0x9cfa6b['model'][_0x2bf3('0x7a')];let _0x43220a=null,_0xbee2f8=null,_0x1da614=!0x1,_0x26fdfe=!0x1;for(const _0x543e55 of _0x120269){const _0x185025=_0x543e55[_0x2bf3('0x2f')];_0x1da614=_0x1da614||_0x5365ad[_0x2bf3('0xb9')](_0x185025);const _0x2c58a3=_0x111d05[_0x2bf3('0x7')][_0x2bf3('0xa6')](_0x185025);if(_0x2c58a3&&_0x2c58a3[_0x2bf3('0xa4')]('addHighlight'))return;_0x2bf3('0x8d')==_0x543e55[_0x2bf3('0x108')]&&(_0x5365ad[_0x2bf3('0xa9')](_0x185025)&&!_0x5365ad[_0x2bf3('0x37')](_0x185025)&&(_0x185025[_0x2bf3('0x104')]||_0x53bc60[_0x2bf3('0xad')]?_0x43220a&&_0x43220a['parent']==_0x185025||(_0x43220a=_0x185025,_0x18cfaa(_0x543e55[_0x2bf3('0x16')]),_0x26fdfe=!0x0):_0xbee2f8=_0xbee2f8||_0x543e55['previousPosition']));}function _0x18cfaa(_0x7f692b){const _0x11c1ba=_0x111d05[_0x2bf3('0x106')]['createUIElement'](_0x2bf3('0x2a'),{'class':'ck-suggestion-marker-'+_0x2b9b31}),_0x4aab6c=_0x111d05[_0x2bf3('0x7')][_0x2bf3('0xeb')](_0x7f692b);_0x22c4be['data']['isSuggestion']&&_0x111d05[_0x2bf3('0x106')][_0x2bf3('0xc1')]('ck-suggestion-marker-'+_0x2b9b31+_0x2bf3('0x91'),_0x11c1ba),_0x438f86[_0x2bf3('0x3')]==_0x22c4be&&_0x111d05['writer'][_0x2bf3('0xc1')](_0x2bf3('0x97'),_0x11c1ba),_0x111d05['writer']['insert'](_0x4aab6c,_0x11c1ba),_0x111d05[_0x2bf3('0x7')][_0x2bf3('0x105')](_0x11c1ba,_0x464a85[_0x2bf3('0x6f')]);}_0x1da614||_0x26fdfe||!_0xbee2f8||_0x18cfaa(_0xbee2f8);};}(this['editor']),{'priority':'high'}),this['editor'][_0x2bf3('0x58')][_0x2bf3('0x0')]['on']('removeMarker:revision',(_0x5a120a,_0x213156,_0x1ff27a)=>{const _0x4b0790=_0x1ff27a[_0x2bf3('0x7')]['markerNameToElements'](_0x213156[_0x2bf3('0x6f')]);if(_0x4b0790)for(const _0x15cd49 of _0x4b0790)(_0x15cd49['hasClass']('ck-suggestion-marker-split')||_0x15cd49['hasClass'](_0x2bf3('0xc8')))&&(_0x1ff27a[_0x2bf3('0x7')][_0x2bf3('0x4e')](_0x15cd49,_0x213156[_0x2bf3('0x6f')]),_0x1ff27a[_0x2bf3('0x106')][_0x2bf3('0x6')](_0x15cd49));},{'priority':_0x2bf3('0xbf')}),this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x0')]['on']('addMarker:revision',(_0x56fd39,_0x406f7a,_0x3b2063)=>{const _0x2cd6f0=_0x406f7a[_0x2bf3('0x6f')][_0x2bf3('0x116')](':')[0x1],_0x17cd67=this[_0x2bf3('0xd3')](_0x2cd6f0);if(!_0x17cd67)return null;const _0x254c08=_0x2bf3('0xbc')==_0x17cd67[_0x2bf3('0x108')]?_0x2bf3('0x116'):_0x2bf3('0xb5');if(_0x3b2063[_0x2bf3('0xa0')][_0x2bf3('0x39')](_0x406f7a[_0x2bf3('0x75')],_0x56fd39[_0x2bf3('0xd')]))for(const _0x1e057b of _0x406f7a[_0x2bf3('0x75')][_0x2bf3('0xe')]()){if(!_0x1e057b['is']('element','softBreak'))continue;const _0x1a1e75=_0x3b2063[_0x2bf3('0x106')]['createUIElement'](_0x2bf3('0x2a'),{'class':_0x2bf3('0x51')+_0x254c08}),_0x29f608=_0x3b2063[_0x2bf3('0x7')][_0x2bf3('0xeb')](this[_0x2bf3('0x9a')]['model'][_0x2bf3('0x5d')](_0x1e057b));_0x17cd67[_0x2bf3('0xec')][_0x2bf3('0xb3')]&&_0x3b2063[_0x2bf3('0x106')]['addClass'](_0x2bf3('0x51')+_0x254c08+_0x2bf3('0x91'),_0x1a1e75),this[_0x2bf3('0x3')]==_0x17cd67&&_0x3b2063['writer'][_0x2bf3('0xc1')](_0x2bf3('0x97'),_0x1a1e75),_0x3b2063[_0x2bf3('0x106')]['insert'](_0x29f608,_0x1a1e75),_0x3b2063['mapper']['bindElementToMarker'](_0x1a1e75,_0x406f7a[_0x2bf3('0x6f')]);}},{'priority':'high'}),this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x11c')]['on']('change',()=>{this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0xc4')](_0x470006=>{for(const _0x4b891c of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x11c')][_0x2bf3('0xef')]()){const _0x190124=this['editor'][_0x2bf3('0xcc')][_0x2bf3('0x11c')][_0x2bf3('0x80')](_0x4b891c),_0x98a8c5=this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')][_0x2bf3('0x80')](_0x4b891c);if(_0x98a8c5){const _0xae59db=_0x190124['getAttribute'](_0x2bf3('0xe1'));if(_0x470006[_0x2bf3('0xfc')](_0x2bf3('0x5'),_0x98a8c5),_0x470006['removeClass'](_0x2bf3('0xe4'),_0x98a8c5),_0x470006['removeClass'](_0x2bf3('0x9f'),_0x98a8c5),_0x470006[_0x2bf3('0x3f')]('ck-revision-history-root--active',_0x98a8c5),_0xae59db){const _0x5db2f1=this[_0x2bf3('0xd3')](_0xae59db);if(!_0x5db2f1)return null;_0x470006[_0x2bf3('0xe5')]('data-change-id',_0xae59db,_0x98a8c5),_0x470006[_0x2bf3('0xc1')](_0x2bf3('0x84')+_0x5db2f1[_0x2bf3('0x108')],_0x98a8c5),this['activeChange']==_0x5db2f1&&_0x470006[_0x2bf3('0xc1')](_0x2bf3('0xfb'),_0x98a8c5);}}}});}),this['editor']['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xcf'))[_0x2bf3('0x7c')]({'view':_0x2bf3('0xe9'),'model':_0x3c1daf=>_0x2bf3('0xb1')+_0x3c1daf,'converterPriority':'highest'}),this[_0x2bf3('0x9a')]['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xcf'))['dataToMarker']({'view':_0x2bf3('0xd2'),'model':_0x17d6de=>'revision-suggestion:'+_0x17d6de,'converterPriority':_0x2bf3('0xb0')}),this[_0x2bf3('0x9a')]['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xd5'))[_0x2bf3('0xc6')]({'model':'revision-suggestion','view':_0x2ff7b7=>({'name':_0x2bf3('0xdc')+_0x2ff7b7,'group':_0x2bf3('0x40')}),'converterPriority':_0x2bf3('0xb0')}),this[_0x2bf3('0x9a')]['conversion']['for'](_0x2bf3('0x35'))[_0x2bf3('0x92')]({'model':_0x2bf3('0x40'),'view':_0x35b64d=>{const _0x2e0ff0=_0x35b64d[_0x2bf3('0x6f')][_0x2bf3('0x116')](':')[0x1];return'insertion'!=_0x2e0ff0&&_0x2bf3('0x103')!=_0x2e0ff0?null:{'classes':[_0x2bf3('0x10c'),'ck-suggestion-preview-marker-'+_0x2e0ff0]};}}),this[_0x2bf3('0x9a')]['editing'][_0x2bf3('0x0')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x2bf3('0x9a')],_0x2bf3('0xb5')),{'priority':_0x2bf3('0xbf')}),this[_0x2bf3('0x9a')]['editing'][_0x2bf3('0x0')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x2bf3('0x9a')],'split'),{'priority':_0x2bf3('0xbf')}),this[_0x2bf3('0x9a')][_0x2bf3('0x58')]['downcastDispatcher']['on'](_0x2bf3('0x76'),(_0xe0e7b2,_0x310395,_0x910b5e)=>{const _0x2d2ce1=_0x910b5e['mapper'][_0x2bf3('0x112')](_0x310395[_0x2bf3('0x6f')]);if(_0x2d2ce1)for(const _0x3e7c4a of _0x2d2ce1)_0x3e7c4a['is'](_0x2bf3('0x6a'))&&(_0x910b5e['mapper'][_0x2bf3('0x4e')](_0x3e7c4a,_0x310395['markerName']),_0x910b5e[_0x2bf3('0x106')]['remove'](_0x3e7c4a));},{'priority':'high'});}[_0x2bf3('0xd3')](_0x910835){return this[_0x2bf3('0xb8')][_0x2bf3('0x4f')](_0x910835);}[_0x2bf3('0x10')](_0x3e8610){return this[_0x2bf3('0x43')]&&this[_0x2bf3('0x43')][_0x2bf3('0x55')](),this[_0x2bf3('0x43')]=new _0x3a53e9(this[_0x2bf3('0x9a')]['locale'],_0x3e8610),this[_0x2bf3('0x43')];}[_0x2bf3('0x46')](){this[_0x2bf3('0x9a')]['model']['document'][_0x2bf3('0xe8')]['observeMarkers']('revision'),this['on']('change:activeView',(_0x292f70,_0x64c03c,_0x39c6e1,_0x21a529)=>{_0x21a529&&this[_0x2bf3('0x9c')][_0x2bf3('0x6')](_0x21a529),_0x39c6e1&&(this[_0x2bf3('0x9c')][_0x2bf3('0xbc')]({'view':_0x39c6e1,'stackId':_0x2bf3('0x45'),'position':{'target':()=>{const _0x19d8ac=this[_0x2bf3('0x9a')][_0x2bf3('0x58')],_0x575f2e=this['_getChangeFromId'](_0x39c6e1['changeId']);let _0x306c1b;if(_0x575f2e[_0x2bf3('0xec')][_0x2bf3('0xaf')]){const _0x2a9795=_0x19d8ac[_0x2bf3('0x85')]['getDomRoot'](_0x575f2e['rootName']);_0x306c1b=Array['from'](_0x2a9795['getClientRects']());}else{const _0x59ce90=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['markers']['get'](_0x2bf3('0xdd')+_0x39c6e1[_0x2bf3('0x2d')]);_0x306c1b=Array[_0x2bf3('0xf4')](_0x19d8ac[_0x2bf3('0x7')][_0x2bf3('0x112')](_0x59ce90[_0x2bf3('0xd')]))['map'](_0x3ac408=>_0x19d8ac[_0x2bf3('0x85')][_0x2bf3('0xb2')]['mapViewToDom'](_0x3ac408))[_0x2bf3('0x28')](_0x38d261=>Array[_0x2bf3('0xf4')](_0x38d261[_0x2bf3('0x5c')]()))['flat']();}if(!this['_activeViewTarget'])return _0x306c1b[0x0];return _0x306c1b[_0x2bf3('0xba')](_0x1c8f39=>_0x1c8f39[_0x2bf3('0xd4')]-0x3<=this[_0x2bf3('0xc3')]['y']&&_0x1c8f39[_0x2bf3('0x10d')]+0x3>=this[_0x2bf3('0xc3')]['y']&&_0x1c8f39[_0x2bf3('0x63')]-0x3<=this['_activeViewTarget']['x']&&_0x1c8f39[_0x2bf3('0x114')]+0x3>=this['_activeViewTarget']['x'])||_0x306c1b[0x0];}}}),this[_0x2bf3('0x9c')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x2bf3('0xfd'),(_0x8386e0,_0x16d75a,_0x412285,_0x20eb24)=>{this[_0x2bf3('0x49')]=_0x412285?this[_0x2bf3('0x10')](_0x412285):null,this['editor'][_0x2bf3('0xcc')]['change'](()=>{const _0x11fc21=this[_0x2bf3('0x9a')][_0x2bf3('0x58')];_0x20eb24&&(_0x20eb24[_0x2bf3('0xec')][_0x2bf3('0xaf')]?_0x11fc21['view'][_0x2bf3('0xc4')](_0x407866=>{_0x407866[_0x2bf3('0x3f')](_0x2bf3('0xfb'),_0x11fc21[_0x2bf3('0x85')][_0x2bf3('0x11c')]['getRoot'](_0x20eb24[_0x2bf3('0x111')]));}):_0x11fc21[_0x2bf3('0x101')](_0x2bf3('0xdd')+_0x20eb24['id'])),_0x412285&&(_0x412285[_0x2bf3('0xec')]['isOnRoot']?_0x11fc21[_0x2bf3('0x85')][_0x2bf3('0xc4')](_0x409f27=>{_0x409f27[_0x2bf3('0xc1')](_0x2bf3('0xfb'),_0x11fc21[_0x2bf3('0x85')][_0x2bf3('0x11c')][_0x2bf3('0x80')](_0x412285[_0x2bf3('0x111')]));}):_0x11fc21['reconvertMarker'](_0x2bf3('0xdd')+_0x412285['id']));});}),this[_0x2bf3('0xbd')](this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')],_0x2bf3('0x62'),(_0x54526d,_0x5645ac)=>{if(this['activeChange'])return;const _0x5ad545=this[_0x2bf3('0xa2')](_0x5645ac[_0x2bf3('0x109')]),_0x1a299e=this[_0x2bf3('0xb8')][_0x2bf3('0x4f')](_0x5ad545);_0x1a299e?(this[_0x2bf3('0xc3')]={'x':_0x5645ac[_0x2bf3('0x87')]['x'],'y':_0x5645ac[_0x2bf3('0x87')]['y']},this[_0x2bf3('0x49')]=this[_0x2bf3('0x10')](_0x1a299e)):(this[_0x2bf3('0xc3')]=null,this[_0x2bf3('0x49')]=null);}),this['listenTo'](this[_0x2bf3('0x9a')]['editing'][_0x2bf3('0x85')][_0x2bf3('0x11c')],_0x2bf3('0x24'),(_0x336008,_0x3d739f)=>{const _0x37a1a2=this[_0x2bf3('0xa2')](_0x3d739f[_0x2bf3('0x109')]),_0x1e78fa=this[_0x2bf3('0xb8')][_0x2bf3('0x4f')](_0x37a1a2);_0x1e78fa?(this[_0x2bf3('0xc3')]={'x':_0x3d739f[_0x2bf3('0x87')]['x'],'y':_0x3d739f[_0x2bf3('0x87')]['y']},_0x1e78fa===this[_0x2bf3('0x3')]?this['_balloon'][_0x2bf3('0xf3')]():this['activeChange']=_0x1e78fa):(this[_0x2bf3('0xc3')]=null,this[_0x2bf3('0x3')]=null);});}[_0x2bf3('0xa2')](_0x457335){do{const _0x2788c3=_0x457335[_0x2bf3('0x14')]('data-change-id');if(_0x2788c3)return _0x2788c3;_0x457335=_0x457335[_0x2bf3('0xf8')];}while(_0x457335);return null;}[_0x2bf3('0xae')](){this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0xc4')](_0x5e2d96=>{for(const _0x10a90e of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x110')])_0x5e2d96[_0x2bf3('0x56')](_0x10a90e);});}}function et(_0x4b7709,_0x565e37){return(_0x149879,_0x562566,_0x4dde8e)=>{if(!_0x4dde8e['consumable'][_0x2bf3('0x39')](_0x562566[_0x2bf3('0x75')],_0x149879[_0x2bf3('0xd')]))return;const _0x59d39d=_0x562566['markerRange'][_0x2bf3('0x52')](),_0x1e3afc=_0x562566[_0x2bf3('0x75')][_0x2bf3('0x99')],_0x2419d9=_0x4b7709[_0x2bf3('0xcc')][_0x2bf3('0x7a')];let _0xa8c73b=null,_0xebe857=null,_0x3fdef7=!0x1,_0x59a102=!0x1;for(const _0x172040 of _0x59d39d){const _0x1ff105=_0x172040[_0x2bf3('0x2f')];_0x3fdef7=_0x3fdef7||_0x2419d9[_0x2bf3('0xb9')](_0x1ff105);const _0x88c757=_0x4dde8e[_0x2bf3('0x7')][_0x2bf3('0xa6')](_0x1ff105);if(_0x88c757&&_0x88c757[_0x2bf3('0xa4')](_0x2bf3('0xee')))return;_0x2bf3('0x8d')==_0x172040[_0x2bf3('0x108')]&&(_0x2419d9[_0x2bf3('0xa9')](_0x1ff105)&&!_0x2419d9[_0x2bf3('0x37')](_0x1ff105)&&(_0x1ff105[_0x2bf3('0x104')]||_0x1e3afc[_0x2bf3('0xad')]?_0xa8c73b&&_0xa8c73b[_0x2bf3('0xf8')]==_0x1ff105||(_0xa8c73b=_0x1ff105,_0x137189(_0x172040[_0x2bf3('0x16')]),_0x59a102=!0x0):_0xebe857=_0xebe857||_0x172040[_0x2bf3('0x16')]));}function _0x137189(_0x9b52eb){const _0x15216b=_0x4dde8e[_0x2bf3('0x7')][_0x2bf3('0xeb')](_0x9b52eb),_0x2f813=_0x4dde8e[_0x2bf3('0x106')]['createUIElement'](_0x2bf3('0x2a'),{'class':_0x2bf3('0x4')+_0x565e37});_0x4dde8e[_0x2bf3('0x106')][_0x2bf3('0x1f')](_0x15216b,_0x2f813),_0x4dde8e[_0x2bf3('0x7')]['bindElementToMarker'](_0x2f813,_0x562566[_0x2bf3('0x6f')]);}_0x3fdef7||_0x59a102||!_0xebe857||_0x137189(_0xebe857);};}export class RestoreRevisionCommand extends _0x524872{constructor(_0x3f6d0f){super(_0x3f6d0f);const _0x4514de=_0x3f6d0f[_0x2bf3('0x38')][_0x2bf3('0x4f')](d);this[_0x2bf3('0xab')]=!0x1,this['listenTo'](_0x4514de,_0x2bf3('0x5a'),()=>this[_0x2bf3('0x3c')]()),this['listenTo'](_0x4514de,_0x2bf3('0x5f'),()=>this[_0x2bf3('0x3c')]());}[_0x2bf3('0x3b')](){const _0x2efafa=this[_0x2bf3('0x9a')],_0x280a6c=_0x2efafa[_0x2bf3('0x38')][_0x2bf3('0x4f')](d),_0x40d2c9=_0x280a6c['isReady']?_0x280a6c['diff'][_0x2bf3('0x94')]:null;_0x2efafa['config'][_0x2bf3('0x4f')](_0x2bf3('0x41'))['restoreRevisionCallback'](_0x40d2c9);}['refresh'](){const {isReady:_0x135b73,isEnabled:_0x2f99ed}=this[_0x2bf3('0x9a')][_0x2bf3('0x38')][_0x2bf3('0x4f')](d);this['isEnabled']=_0x135b73&&_0x2f99ed;}}export class ShowChangeCommand extends _0x524872{constructor(_0x3fd06f,{direction:_0x37be5d}){super(_0x3fd06f);const _0x422e9c=_0x3fd06f[_0x2bf3('0x38')][_0x2bf3('0x4f')](d);this[_0x2bf3('0xab')]=!0x1,this[_0x2bf3('0x8')]=_0x2bf3('0x117')===_0x37be5d?0x1:-0x1,this[_0x2bf3('0xbd')](_0x422e9c,_0x2bf3('0x5a'),()=>this[_0x2bf3('0x3c')]()),this[_0x2bf3('0xbd')](_0x422e9c,_0x2bf3('0x5f'),()=>this[_0x2bf3('0x3c')]());}[_0x2bf3('0x3b')](){const _0x43eeca=this[_0x2bf3('0x9a')],_0x1d7032=_0x43eeca[_0x2bf3('0x38')][_0x2bf3('0x4f')](d),{isNavigationMode:_0x5e22a6,currentChangeNumber:_0x10413e}=_0x1d7032;let _0x3e2e04;if(_0x1d7032['activeChange']=_0x5e22a6?_0x1d7032[_0x2bf3('0xc9')]['changes'][_0x2bf3('0x4f')](_0x10413e+this[_0x2bf3('0x8')]):_0x1d7032[_0x2bf3('0xc9')]['changes'][_0x2bf3('0x29')],_0x1d7032[_0x2bf3('0x3')]['data']['isOnRoot'])_0x3e2e04=_0x43eeca['editing'][_0x2bf3('0x85')][_0x2bf3('0x64')](_0x1d7032['activeChange'][_0x2bf3('0x111')]);else{const _0x15fc21=_0x43eeca[_0x2bf3('0xcc')]['markers'][_0x2bf3('0x4f')](_0x2bf3('0xdd')+_0x1d7032[_0x2bf3('0x3')]['id']);_0x3e2e04=_0x24264c(_0x43eeca['editing'],_0x15fc21);}_0x240ab4({'target':_0x3e2e04,'viewportOffset':0x28});}[_0x2bf3('0x3c')](){const {isNavigationMode:_0x5dc4dd,currentChangeNumber:_0x30d629,numberOfChanges:_0x54efbb,isReady:_0x549cfc,isEnabled:_0x1e5536}=this['editor']['plugins'][_0x2bf3('0x4f')](d);this[_0x2bf3('0x13')]=!!(_0x1e5536&&_0x549cfc&&_0x54efbb)&&(!_0x5dc4dd||(0x1===this[_0x2bf3('0x8')]?_0x30d629<_0x54efbb-0x1:_0x30d629>0x0));}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revision/createrevisionactionsdropdown
|
|
3
|
-
*/
|
|
4
|
-
import { Model } from 'ckeditor5/src/ui';
|
|
5
|
-
import '../../../theme/revision/revisionactions.css';
|
|
6
|
-
export interface RevisionDropdownOptions {
|
|
7
|
-
type: 'button';
|
|
8
|
-
model: Model;
|
|
9
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revision/createrevisionactionsdropdown
|
|
3
|
+
*/
|
|
4
|
+
import { Model } from 'ckeditor5/src/ui.js';
|
|
5
|
+
import '../../../theme/revision/revisionactions.css';
|
|
6
|
+
export interface RevisionDropdownOptions {
|
|
7
|
+
type: 'button';
|
|
8
|
+
model: Model;
|
|
9
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c72=['locale','action','model','add','source','execute','isOpen','change:isActionsDropdownOpen','map','Name\x20this\x20revision','stopPropagation','find','_action','Compare\x20against\x20selected','Show\x20more\x20items','name','isReady','bind','isActionsDropdownOpen','children','function','Restore\x20this\x20revision','button','listView','buttonView','ck-on','bindTemplate','threeVerticalDots','isEnabled','extendTemplate','isVisible'];(function(_0x29452f,_0x5c72d4){const _0x5c8128=function(_0x5d0efb){while(--_0x5d0efb){_0x29452f['push'](_0x29452f['shift']());}};_0x5c8128(++_0x5c72d4);}(_0x5c72,0x111));const _0x5c81=function(_0x29452f,_0x5c72d4){_0x29452f=_0x29452f-0x0;let _0x5c8128=_0x5c72[_0x29452f];return _0x5c8128;};import{Collection as _0x3d1982}from'ckeditor5/src/utils.js';import{icons as _0x1d8b0d}from'ckeditor5/src/core.js';import{Model as _0x17cc95,addListToDropdown as _0x845c58,createDropdown as _0x3fd888}from'ckeditor5/src/ui.js';import{getTranslation as _0x3437dd}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x599825,_0x8f2dd3){const _0x1de2ed=_0x599825[_0x5c81('0x1')],_0x28c9d3=_0x599825[_0x5c81('0x6')],_0x21458e=_0x3fd888(_0x28c9d3);_0x21458e['panelPosition']='sw';const _0x2af126=function(_0x2b9128,_0x18ead5){const _0x395055=function(_0x405ca1,_0x2be3a0){const _0x1d4454=_0x405ca1[_0x5c81('0x6')],_0x43a436={'Compare\x20against\x20selected':_0x3437dd(_0x1d4454,_0x5c81('0x13')),'Name\x20this\x20revision':_0x3437dd(_0x1d4454,_0x5c81('0xf')),'Restore\x20this\x20revision':_0x3437dd(_0x1d4454,_0x5c81('0x1b'))};return _0x2be3a0[_0x5c81('0xe')](_0x2aa517=>{const _0x4730f8=_0x43a436[_0x2aa517[_0x5c81('0x15')]];return _0x4730f8&&_0x4730f8!==_0x2aa517['name']&&(_0x2aa517[_0x5c81('0x15')]=_0x4730f8),_0x2aa517;});}(_0x2b9128,_0x18ead5),_0x1bb9bd=new _0x3d1982();for(const _0x2d7d7d of _0x395055){const _0x49fe50={'type':_0x5c81('0x1c'),'model':new _0x17cc95({'label':_0x2d7d7d[_0x5c81('0x15')],'class':_0x2d7d7d['class'],'withText':!0x0,'_action':_0x2d7d7d[_0x5c81('0x7')]})};_0x49fe50[_0x5c81('0x8')]['bind']('isEnabled')['to'](_0x2b9128,'isActionsDropdownOpen',_0x16b6f2=>_0x5c81('0x1a')!=typeof _0x2d7d7d[_0x5c81('0x3')]||(!_0x16b6f2||_0x2d7d7d[_0x5c81('0x3')](_0x2b9128))),_0x1bb9bd[_0x5c81('0x9')](_0x49fe50);}return _0x1bb9bd;}(_0x599825,_0x8f2dd3);return _0x599825[_0x5c81('0x17')](_0x5c81('0x18'))['to'](_0x21458e,_0x5c81('0xc')),_0x21458e[_0x5c81('0x1e')]['set']({'label':_0x3437dd(_0x28c9d3,_0x5c81('0x14')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1d8b0d[_0x5c81('0x2')]}),_0x21458e[_0x5c81('0x4')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1de2ed['if'](_0x5c81('0x18'),_0x5c81('0x0'))]},'on':{'click':_0x1de2ed['to'](_0x44a6ec=>_0x44a6ec[_0x5c81('0x10')]())}}),_0x21458e['on'](_0x5c81('0xb'),_0x371b09=>{_0x599825[_0x5c81('0x16')]&&'function'==typeof _0x371b09[_0x5c81('0xa')][_0x5c81('0x12')]&&_0x371b09['source'][_0x5c81('0x12')](_0x599825);}),_0x845c58(_0x21458e,_0x2af126),_0x21458e['listenTo'](_0x599825,_0x5c81('0xd'),(_0x41ca8a,_0x475bed,_0x9a5c78)=>{if(_0x9a5c78)for(const _0x4749a6 of _0x21458e[_0x5c81('0x1d')]['items']){const _0x63f1c1=_0x4749a6[_0x5c81('0x19')]['first'],_0x2de014=_0x8f2dd3[_0x5c81('0x11')](_0xe9f762=>_0xe9f762['action']===_0x63f1c1['_action'])[_0x5c81('0x5')];_0x4749a6[_0x5c81('0x5')]=void 0x0===_0x2de014||_0x2de014(_0x599825);}}),_0x21458e;}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revision/revisionauthorview
|
|
3
|
-
*/
|
|
4
|
-
import '../../../theme/revision/revisionauthor.css';
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revision/revisionauthorview
|
|
3
|
+
*/
|
|
4
|
+
import '../../../theme/revision/revisionauthor.css';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21ca=['setTemplate','set','ck-revision-history-sidebar__revision-author__name','name','Revision\x20creator','0\x200\x2011\x2010','span','ck-revision-history-sidebar__revision-author_creator'];(function(_0x469bb4,_0x21ca8d){const _0x40fbff=function(_0x6beb7a){while(--_0x6beb7a){_0x469bb4['push'](_0x469bb4['shift']());}};_0x40fbff(++_0x21ca8d);}(_0x21ca,0x18c));const _0x40fb=function(_0x469bb4,_0x21ca8d){_0x469bb4=_0x469bb4-0x0;let _0x40fbff=_0x21ca[_0x469bb4];return _0x40fbff;};import{View as _0x46bbd5,IconView as _0x1bc968}from'ckeditor5/src/ui.js';import{getTranslation as _0xdd0551}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x2bace6 from'../../../theme/icons/user.svg';export default class ti extends _0x46bbd5{constructor(_0xa26e55,_0x58a611,_0xfa246c){super(_0xa26e55);const _0x45a2ff=new _0x1bc968();_0x45a2ff[_0x40fb('0x5')]({'content':_0x2bace6,'viewBox':_0x40fb('0x1')});const _0x209067=['ck','ck-revision-history-sidebar__revision-author'];_0xfa246c&&_0x209067['push'](_0x40fb('0x3'));const _0xf34e1d=[{'tag':_0x40fb('0x2'),'attributes':{'class':['ck',_0x40fb('0x6')],'title':_0xdd0551(_0xa26e55,_0xfa246c?_0x40fb('0x0'):'Revision\x20author')},'children':[_0x45a2ff,_0x58a611[_0x40fb('0x7')]]}];this[_0x40fb('0x4')]({'tag':'li','attributes':{'class':_0x209067},'children':_0xf34e1d});}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revision/revisionnameview
|
|
3
|
-
*/
|
|
4
|
-
import '../../../theme/revision/revisionname.css';
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revision/revisionnameview
|
|
3
|
+
*/
|
|
4
|
+
import '../../../theme/revision/revisionname.css';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x45d1=['Revision\x20name','span','extendTemplate'];(function(_0x537055,_0x45d1d8){var _0x4f4663=function(_0x4576ae){while(--_0x4576ae){_0x537055['push'](_0x537055['shift']());}};_0x4f4663(++_0x45d1d8);}(_0x45d1,0x1c2));var _0x4f46=function(_0x537055,_0x45d1d8){_0x537055=_0x537055-0x0;var _0x4f4663=_0x45d1[_0x537055];return _0x4f4663;};import{LabeledFieldView as _0x1a6718}from'ckeditor5/src/ui.js';import{getTranslation as _0xef3296}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x1a6718{constructor(_0x25cee5,_0x1c967f){super(_0x25cee5,_0x1c967f),this['set']({'label':_0xef3296(_0x25cee5,_0x4f46('0x0'))}),this[_0x4f46('0x2')]({'tag':_0x4f46('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|