@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230720.0 → 0.0.0-nightly-20230721.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e91=['markerRange','isRemoved','addRevisionData','useFillerType','mapViewToDom','left','revision-viewer','showPreviousChange','_removeRevisionMarkers','_fixObsoleteTags','ck-editor__editable__overlay','isContent','isAddSuggestion','plugins','set','push','isEqual','splice','init','_markMismatchedRemovedTags','toModel','revision-end','adapter','ck-revision-history-root-add','markerToData','suggestion:','startsWith','setAttribute','ck-suggestion-marker-split','then','change:activeChange','bottom','rootName','revision-suggestion','ck-revision-history-root-remove','start','values','addMarker:revision','_joinTapes','forEach','toData','enableReadOnlyMode','WidgetToolbarRepository','userId','isIncorrect','sort','_processTape','viewItem','pluginName','enqueueChange','flat','editingDowncast','length','_step','highest','revision','_markMarkers','activeChange','getRootNames','consumable','_refreshStartEndIndex','span','isSuggestion','downcastDispatcher','numberOfChanges','revisionHistory','slice','ck-suggestion-marker-','element:pre','backward','_makeModelFromViewString','isBlock','_changeView','createAttributeElement','getRevisionData','affectsData','hasClass','softBreak','test','startIndex','bindElementToMarker','includes','_setConversion','revisionHistoryAttachChange','isLimit','_revisions','error','keys','elementStart','isRemoveSuggestion','changeId','_data','concat','document','comment','data','_getRevisionsRange','restoreRevisionCallback','from','merge','reconvertMarker','_activeViewTarget','commands','wrap','revision:','find','children','object','observeMarkers','_getViewObj','showNextChange','_findChangeIdFromDomTarget','-new','parse','compare','removeAttribute','side','editor','oldRevisionId','markerNameToElements','markers','suggestion','_setChanges','model','pairId','get','getItems','diffData','isBefore','removeMarker','schema','code','domEvent','_removeUnsupportedChanges','activeView','authors','element','level','ck-suggestion-marker','top','isOnRoot','hasAttribute','writer','isCollapsed','getDomRoot','insertion','_threeWayMerge','all','stop','target','isAdded','index','addHighlight','unshift','item','return','elementEnd','removeMarker:revision','first','_changeIdToChange','getIndex','insertions','_makeTape','upcast','revision-comment:','addMarker:revision-suggestion:deletion','range','_balloon','_makeModelFromTape','shift','getAttribute','modelRange','getWalker','_update','requires','_markInsertions','next','selection','markerName','abs','markersStart','vid','attachChange','newRevisionId','ck-revision-history-root-','conversion','dataToMarker','elementToAttribute','data-change-id','currentChangeNumber','config','processor','delete','_appendChild','default','isAfter','revision-suggestion:','isAttached','vid_start','previousPosition','end','uiElement','isAtStart','catch','RevisionViewer','endIndex','consume','loadRevisionData','isEnabled','createRangeIn','nextPosition','name','repository','nextSibling','for','removeClass','ck-revision-history-root--active','editing','markerToHighlight','add','toViewRange','low','findIndex','split','attribute:vid','_setDistance','markersEnd','getRevisionRootsAttributes','resolve','done','getAttributes','toViewElement','vid_end','deletion','listenTo','change','changes','mousedown','parent','filter','change:numberOfChanges','change:isEnabled','getClientRects','text','attributesAfter','toViewPosition','ck-suggestion-marker--active','map','attributesBefore','createPositionBefore','refresh','destroy','insert','marked','maxOffset','revision-start','dataDowncast','unbindElementFromMarkerName','showStack','diff','createUIElement','createPositionFromPath','mapper','bind','high','ck-suggestion-marker-merge','getCustomProperty','_getDiff','createRange','nodeAfter','attributes','execute','ck-suggestion-preview-marker-','_getChangeFromId','isObject','detachRoot','roots','createRevision','type','addRoot','view','isAtEnd','_initInteractions','has','pop','string','locale','getRoot','offsetSize','updatePosition','getRevision','_cleanMarkers','change:isReady','_sortAndFilterDiffChanges','addClass','_cleanUp','remove','distance','deletions','isReady','revisionHistoryLabel'];(function(_0xb1354a,_0x4e917d){const _0x59370e=function(_0x5c5a7f){while(--_0x5c5a7f){_0xb1354a['push'](_0xb1354a['shift']());}};_0x59370e(++_0x4e917d);}(_0x4e91,0x92));const _0x5937=function(_0xb1354a,_0x4e917d){_0xb1354a=_0xb1354a-0x0;let _0x59370e=_0x4e91[_0xb1354a];return _0x59370e;};import{Plugin as _0x4759d4,Command as _0x676285}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4bfb65}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2c9bcf}from'ckeditor5/src/ui';import{DocumentFragment as _0x3be22e,Element as _0x586de6,Text as _0x45b63b,ViewDocumentFragment as _0x399ea3,ViewText as _0x9079bf,ViewElement as _0x1a7c58,ViewContainerElement as _0x4238fc,ViewAttributeElement as _0x25cc4b,ViewEmptyElement as _0x516007,ViewRawElement as _0x59e43a,ViewUIElement as _0xf901c0}from'ckeditor5/src/engine';import{Users as _0xac2904,getMarkerDomElement as _0x508032}from'ckeditor5-collaboration/src/collaboration-core';import _0xf36502 from'./ui/revisionviewer/changedetailsview';import _0x456661 from'./revisionsrepository';import _0x4782d0 from'./changeitem';import{default as _0x135f56}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x283255}from'lodash-es';const tt={'c':_0x4238fc,'a':_0x25cc4b,'e':_0x516007,'r':_0x59e43a,'u':_0xf901c0};export default class d extends _0x4759d4{static get[_0x5937('0xcb')](){return _0x5937('0x3a');}static get[_0x5937('0x1c')](){return[_0xac2904,_0x2c9bcf,_0x456661];}constructor(_0x2e3e38){super(_0x2e3e38),this[_0x5937('0x42')]=this[_0x5937('0x110')][_0x5937('0xa8')][_0x5937('0x118')]('RevisionsRepository'),this[_0x5937('0xa9')](_0x5937('0xd4'),null),this[_0x5937('0xa9')](_0x5937('0x121'),null),this[_0x5937('0x100')]=null,this['set'](_0x5937('0x71'),null),this[_0x5937('0xa9')](_0x5937('0x99'),!0x1),this[_0x5937('0xa9')](_0x5937('0x3e'),!0x0),this['on'](_0x5937('0x5f'),(_0x3462b3,_0x2f48dd,_0x58430d)=>{this[_0x5937('0xd4')]=null,this['activeView']=null,this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0x59')](_0x3149ee=>{for(const _0x521583 of this['editor'][_0x5937('0x47')][_0x5937('0x86')]['document'][_0x5937('0x82')])_0x58430d?_0x3149ee[_0x5937('0x45')](_0x5937('0xa5'),_0x521583):_0x3149ee['addClass'](_0x5937('0xa5'),_0x521583);});}),this[_0x5937('0x75')]('isNavigationMode')['to'](this,_0x5937('0xd4'),_0x4feea5=>null!==_0x4feea5),this[_0x5937('0x75')](_0x5937('0x2b'))['to'](this,'isReady',this,'diff',this,_0x5937('0xd4'),(_0x194a95,_0x77349,_0x1e5cad)=>_0x194a95&&_0x1e5cad?_0x77349[_0x5937('0x5a')][_0x5937('0xe')](_0x1e5cad):0x0),this[_0x5937('0x75')](_0x5937('0xdb'))['to'](this,_0x5937('0x99'),this,'diff',(_0x38eaa0,_0x3aa01d)=>_0x38eaa0?_0x3aa01d['changes'][_0x5937('0xcf')]:0x0),this[_0x5937('0xe3')]=null,this[_0x5937('0xd')]=new Map(),this[_0x5937('0xb1')]=null,this[_0x5937('0x15')]=this[_0x5937('0x110')]['plugins'][_0x5937('0x118')](_0x2c9bcf);}[_0x5937('0xad')](){const _0x549962=this['editor'],_0x34d83f=new ShowChangeCommand(_0x549962,{'direction':_0x5937('0xe0')}),_0x3747d7=new ShowChangeCommand(_0x549962,{'direction':'forward'});(_0x549962['commands']['add'](_0x5937('0xa2'),_0x34d83f),_0x549962[_0x5937('0x101')][_0x5937('0x49')](_0x5937('0x109'),_0x3747d7),_0x549962['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x549962)),this['on'](_0x5937('0x5e'),()=>{_0x34d83f[_0x5937('0x68')](),_0x3747d7[_0x5937('0x68')]();}),this[_0x5937('0xed')](),this[_0x5937('0x88')](),_0x549962[_0x5937('0xc4')]('revision-viewer'),_0x549962[_0x5937('0xa8')][_0x5937('0x89')](_0x5937('0xc5')))&&_0x549962['plugins']['get']('WidgetToolbarRepository')['forceDisabled'](_0x5937('0xa1'));}async[_0x5937('0xe5')](_0x3e1c85){await this[_0x5937('0x3d')](_0x3e1c85);const _0x463c43={};for(const _0x2bfafe in _0x3e1c85[_0x5937('0x11a')]){if(_0x3e1c85['diffData'][_0x2bfafe][_0x5937('0x24')]&&!_0x3e1c85[_0x5937('0x11a')][_0x2bfafe][_0x5937('0x24')][_0x5937('0x33')])continue;const _0x5e0933=this[_0x5937('0xa3')](JSON[_0x5937('0x10c')](_0x3e1c85[_0x5937('0x11a')][_0x2bfafe][_0x5937('0xf')])),_0x531323=this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0xf8')],_0x2c8ee2=new _0x399ea3(_0x531323,_0x5e0933['map'](_0x333f07=>this[_0x5937('0x108')](_0x333f07)));this['editor'][_0x5937('0xfa')][_0x5937('0x2d')][_0x5937('0x9e')](_0x5937('0x6b')),_0x463c43[_0x2bfafe]=this['editor']['data'][_0x5937('0x2d')][_0x5937('0xc3')](_0x2c8ee2),this[_0x5937('0x110')][_0x5937('0xfa')][_0x5937('0x2d')][_0x5937('0x9e')](_0x5937('0x30'));}return _0x463c43;}async[_0x5937('0x51')](_0x591faf){await this[_0x5937('0x3d')](_0x591faf);const _0x7b4d34={};for(const _0x61cd7e in _0x591faf[_0x5937('0x11a')])_0x591faf[_0x5937('0x11a')][_0x61cd7e][_0x5937('0x24')]&&!_0x591faf[_0x5937('0x11a')][_0x61cd7e][_0x5937('0x24')][_0x5937('0x33')]||(_0x7b4d34[_0x61cd7e]=_0x591faf[_0x5937('0x11a')][_0x61cd7e][_0x5937('0x62')]||{});return _0x7b4d34;}['_removeRevisionMarkers'](_0x67323){return(_0x67323=_0x67323[_0x5937('0x5d')](_0x440e57=>!_0x440e57[_0x5937('0x41')]||_0x5937('0x6d')!==_0x440e57[_0x5937('0x41')]&&_0x5937('0xb0')!==_0x440e57[_0x5937('0x41')]))[_0x5937('0xc2')](_0x4a0942=>{_0x5937('0x8b')!=typeof _0x4a0942&&(_0x4a0942[_0x5937('0x105')]=this[_0x5937('0xa3')](_0x4a0942['children']),_0x4a0942[_0x5937('0x7c')]=_0x4a0942[_0x5937('0x7c')]['filter'](_0xff1cec=>!_0xff1cec[0x0][_0x5937('0xb5')]('data-revision-')));}),_0x67323;}async[_0x5937('0x10d')](_0x3c1bbd,_0x36f311,_0x5b975b=!0x1){if(!this[_0x5937('0x3e')])return;const _0x6c7893=this['diff'],_0x448b6a=this[_0x5937('0x42')],_0x2e4c5c=_0x5937('0x8b')==typeof _0x3c1bbd?_0x448b6a[_0x5937('0x90')](_0x3c1bbd):_0x3c1bbd,_0x36c8c2=_0x5937('0x8b')==typeof _0x36f311?_0x448b6a[_0x5937('0x90')](_0x36f311):_0x36f311,_0x4d9474=_0x2e4c5c['id'],_0x49da50=_0x36c8c2?_0x36c8c2['id']:null;if(!_0x5b975b&&this[_0x5937('0x71')]&&this['diff'][_0x5937('0x25')]===_0x4d9474&&this[_0x5937('0x71')][_0x5937('0x111')]===_0x49da50)return Promise[_0x5937('0x52')]();this[_0x5937('0x99')]=!0x1,this[_0x5937('0x121')]=null,this[_0x5937('0xd4')]=null,this[_0x5937('0x71')]=new _0x135f56(_0x4d9474,_0x49da50);const _0x4728f0=this[_0x5937('0xfb')](_0x2e4c5c,_0x36c8c2,!0x0)['map'](_0x417eda=>this[_0x5937('0x3d')](_0x417eda));return _0x4728f0[_0x5937('0xaa')](new Promise(_0x386e9f=>{setTimeout(_0x386e9f,0x14);})),Promise[_0x5937('0x1')](_0x4728f0)[_0x5937('0xb8')](()=>{if(!this[_0x5937('0x3e')])return;this[_0x5937('0x95')]();const _0x3ef4cb=this[_0x5937('0x79')](_0x4d9474,_0x49da50);for(const _0x2d6a02 of _0x3ef4cb['changes'])this['_changeIdToChange']['set'](_0x2d6a02['id'],_0x2d6a02);this['editor'][_0x5937('0x116')]['enqueueChange']({'isUndoable':!0x1},_0x90a462=>{for(const _0x445419 of this[_0x5937('0x110')]['model'][_0x5937('0xf8')][_0x5937('0xd5')]())_0x90a462[_0x5937('0x81')](_0x445419);for(const _0x9dbe54 of Object[_0x5937('0xf2')](_0x3ef4cb[_0x5937('0x116')])){const _0x42d65e=_0x90a462[_0x5937('0x85')](_0x9dbe54);for(const _0x445ce3 of Object[_0x5937('0xf2')](_0x3ef4cb['attributes'][_0x9dbe54]))_0x90a462[_0x5937('0xb6')](_0x445ce3,_0x3ef4cb[_0x5937('0x7c')][_0x9dbe54][_0x445ce3],_0x42d65e);_0x90a462[_0x5937('0x6a')](_0x3ef4cb['model'][_0x9dbe54],_0x42d65e,0x0);}}),this[_0x5937('0x71')][_0x5937('0x115')](this[_0x5937('0x93')](_0x3ef4cb[_0x5937('0x5a')])),this[_0x5937('0x99')]=!0x0;})[_0x5937('0x39')](_0x41530e=>{console[_0x5937('0xf1')](_0x41530e),this[_0x5937('0x95')](),_0x6c7893&&(this[_0x5937('0x71')]=_0x6c7893),this[_0x5937('0x99')]=!0x0;});}[_0x5937('0x9d')](_0x424902,_0x1ae1cc){const _0x4fb01a=this[_0x5937('0x42')][_0x5937('0x83')](_0x424902);return _0x4fb01a['on'](_0x5937('0x1b'),(_0x29b84f,_0x2d1db5,_0x96e59d)=>_0x1ae1cc(_0x2d1db5,_0x96e59d,_0x4fb01a)),this[_0x5937('0x42')]['addRevision'](_0x4fb01a),_0x4fb01a;}['loadRevisionData'](_0x59b41a){if(!_0x59b41a||_0x59b41a[_0x5937('0x11a')])return Promise[_0x5937('0x52')]();{const _0x1ed8b9=this[_0x5937('0x110')][_0x5937('0x2c')][_0x5937('0x118')]('collaboration.channelId');return this[_0x5937('0xb1')][_0x5937('0x90')]({'channelId':_0x1ed8b9,'revisionId':_0x59b41a['id']})[_0x5937('0xb8')](_0xbfb5fe=>{_0x59b41a[_0x5937('0x1b')]({'diffData':_0xbfb5fe[_0x5937('0x11a')]},!0x0);});}}[_0x5937('0x95')](){this[_0x5937('0xd4')]=null,this[_0x5937('0x91')](),this[_0x5937('0xe3')]&&this[_0x5937('0xe3')][_0x5937('0x69')](),this[_0x5937('0xe3')]=null,this[_0x5937('0xd')]['clear'](),this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xcc')]({'isUndoable':!0x1},_0x55dccf=>{for(const _0x101fb7 of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')]['getRootNames']())_0x55dccf[_0x5937('0x81')](_0x101fb7);});}['_sortAndFilterDiffChanges'](_0x3e394e){const _0x1a5594=[],_0x18c55b=new Map();for(const _0x98ca60 of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')][_0x5937('0xd5')]()){const _0x5351d4=this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0x12b')](_0x98ca60);if(!_0x5351d4)continue;const _0x59eb94=_0x5351d4[_0x5937('0x60')]()[_0x5937('0x8')](0x0);_0x59eb94&&(_0x1a5594[_0x5937('0xaa')](_0x98ca60),_0x18c55b[_0x5937('0xa9')](_0x98ca60,_0x59eb94));}return _0x1a5594['sort']((_0x5a2001,_0x565f56)=>{const _0x5b5782=_0x18c55b[_0x5937('0x118')](_0x5a2001),_0x10b1c9=_0x18c55b[_0x5937('0x118')](_0x565f56);return _0x5b5782['y']-_0x10b1c9['y']||_0x5b5782['x']-_0x10b1c9['x'];}),(_0x3e394e=_0x3e394e[_0x5937('0x5d')](_0x83607e=>_0x1a5594[_0x5937('0xec')](_0x83607e[_0x5937('0xbb')])))[_0x5937('0xc8')]((_0x2c779b,_0x400439)=>_0x1a5594['indexOf'](_0x2c779b[_0x5937('0xbb')])-_0x1a5594['indexOf'](_0x400439[_0x5937('0xbb')])),_0x3e394e;}[_0x5937('0x10')](_0x246b1b){const _0x39ba0d=Array[_0x5937('0xfd')](_0x246b1b[_0x5937('0x113')])[_0x5937('0x5d')](([_0x213a00,_0x491777])=>_0x213a00[_0x5937('0xb5')](_0x5937('0x103'))&&!_0x491777[_0x5937('0x12a')]),_0x7f87eb=Array['from'](this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x3f')](_0x246b1b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x39ba0d[_0x5937('0xcf')])for(const _0x2201e9 of _0x7f87eb){const [_0x15ebaa,_0xc6494c]=_0x39ba0d[0x0],[,_0x1195e7,_0x321d6d]=_0x15ebaa[_0x5937('0x4d')](':');if(_0xc6494c[_0x5937('0x36')]['isEqual'](_0x2201e9[_0x5937('0x40')])&&_0x39ba0d['shift'](),(_0x2201e9[_0x5937('0x35')][_0x5937('0xab')](_0xc6494c[_0x5937('0xbe')])||_0x2201e9['previousPosition']['isAfter'](_0xc6494c['start']))&&(_0x5937('0x12c')==_0x1195e7?_0x2201e9[_0x5937('0x4')]={'userId':_0x321d6d}:'deletion'==_0x1195e7&&(_0x2201e9[_0x5937('0x9c')]={'userId':_0x321d6d})),0x0==_0x39ba0d[_0x5937('0xcf')])break;}return _0x7f87eb;}[_0x5937('0xd7')](_0x9034a1){const _0x2f3942=new Map();for(let _0x363d0b=0x0;_0x363d0b<_0x9034a1[_0x5937('0xcf')];_0x363d0b++)_0x5937('0x61')===_0x9034a1[_0x363d0b][_0x5937('0x84')]?(_0x9034a1[_0x363d0b][_0x5937('0x8')]['startIndex']=_0x363d0b,_0x9034a1[_0x363d0b][_0x5937('0x8')][_0x5937('0x3b')]=_0x363d0b):(_0x5937('0xf3')===_0x9034a1[_0x363d0b]['type']?_0x9034a1[_0x363d0b]['item'][_0x5937('0xea')]=_0x363d0b:_0x5937('0xa')===_0x9034a1[_0x363d0b][_0x5937('0x84')]&&(_0x9034a1[_0x363d0b][_0x5937('0x8')][_0x5937('0x3b')]=_0x363d0b),_0x2f3942[_0x5937('0xa9')](_0x9034a1[_0x363d0b]['id'],_0x363d0b));for(const _0x3b70e of _0x2f3942[_0x5937('0xbf')]())_0x5937('0xf3')===_0x9034a1[_0x3b70e][_0x5937('0x84')]?_0x9034a1[_0x3b70e][_0x5937('0x8')][_0x5937('0x3b')]=_0x2f3942['get'](_0x9034a1[_0x3b70e][_0x5937('0x117')]):'elementEnd'===_0x9034a1[_0x3b70e][_0x5937('0x84')]&&(_0x9034a1[_0x3b70e][_0x5937('0x8')]['startIndex']=_0x2f3942[_0x5937('0x118')](_0x9034a1[_0x3b70e]['pairId']));}[_0x5937('0xc9')](_0x40a037){for(let _0x1c4558=0x0;_0x1c4558<_0x40a037[_0x5937('0xcf')];_0x1c4558++){if(_0x5937('0xf3')===_0x40a037[_0x1c4558][_0x5937('0x84')])_0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0xea')]=_0x1c4558;else{if(_0x5937('0xa')===_0x40a037[_0x1c4558]['type']){_0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0x3b')]=_0x1c4558;const _0x134498=_0x40a037[_0x1c4558]['item'][_0x5937('0xea')];_0x40a037[_0x134498][_0x5937('0x117')]=_0x40a037[_0x1c4558]['id'],_0x40a037[_0x1c4558][_0x5937('0x117')]=_0x40a037[_0x134498]['id'];}else _0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0xea')]=_0x1c4558,_0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0x3b')]=_0x1c4558,_0x40a037[_0x1c4558][_0x5937('0x117')]=null;}_0x40a037[_0x1c4558]['markersStart']||(_0x40a037[_0x1c4558][_0x5937('0x22')]=[],_0x40a037[_0x1c4558]['markersEnd']=[]);}}[_0x5937('0x1d')](_0xe061fc,_0x38a676){const _0x18c570=_0xe061fc[_0x5937('0x5d')](_0x21ae48=>!_0x21ae48[_0x5937('0x4')]);for(let _0x420408=0x0;_0x420408<_0x38a676[_0x5937('0xcf')];_0x420408++)_0x38a676[_0x420408][_0x5937('0x4')]&&(_0x18c570[_0x420408][_0x5937('0x4')]=_0x38a676[_0x420408][_0x5937('0x4')]);}[_0x5937('0xe1')](_0x40a1b2){const _0x1bba66=JSON['parse'](_0x40a1b2),_0x5d9243=this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0xf8')],_0x3fbdaf=new _0x399ea3(_0x5d9243,_0x1bba66[_0x5937('0x65')](_0x559b01=>this[_0x5937('0x108')](_0x559b01)));return this[_0x5937('0x110')][_0x5937('0xfa')][_0x5937('0xaf')](_0x3fbdaf);}[_0x5937('0x108')](_0x1f349b){const _0x29b425=this['editor'][_0x5937('0x47')]['view'][_0x5937('0xf8')];if(_0x5937('0x8b')==typeof _0x1f349b)return new _0x9079bf(_0x29b425,_0x1f349b);{const _0x848a00=_0x1f349b[_0x5937('0x105')][_0x5937('0x65')](_0x5c46a3=>this['_getViewObj'](_0x5c46a3));return new(tt[_0x1f349b[(_0x5937('0x84'))]]||_0x1a7c58)(_0x29b425,_0x1f349b['name'],_0x1f349b[_0x5937('0x7c')],_0x848a00);}}['_getDiff'](_0x4cedef,_0x350239=null){const _0x451151=this[_0x5937('0x42')][_0x5937('0x90')](_0x4cedef),_0x4ba6f3=_0x350239?this[_0x5937('0x42')][_0x5937('0x90')](_0x350239):null,_0xf2057e=this[_0x5937('0xfb')](_0x451151,_0x4ba6f3),_0x96d159=_0xf2057e[_0xf2057e['length']-0x1],_0x577be0=new Map(),_0x345d31={'model':{},'attributes':{},'changes':[]},_0x53a9bc=new Set(),_0x1914de=new Map();for(let _0x4803b1=_0xf2057e['length']-0x1;_0x4803b1>=0x0;_0x4803b1--){const _0x39c33d=_0xf2057e[_0x4803b1];for(const _0x48c789 of Object['keys'](_0x39c33d[_0x5937('0x11a')]))if(_0x39c33d[_0x5937('0x11a')][_0x48c789][_0x5937('0x24')]){const _0x13350d=_0x39c33d['diffData'][_0x48c789][_0x5937('0x24')];_0x13350d[_0x5937('0x33')]?(_0x53a9bc[_0x5937('0x49')](_0x48c789),_0x1914de[_0x5937('0x89')](_0x48c789)&&_0x1914de[_0x5937('0x118')](_0x48c789)[_0x5937('0xc6')]==_0x13350d[_0x5937('0xc6')]?_0x1914de[_0x5937('0x2e')](_0x48c789):_0x1914de[_0x5937('0xa9')](_0x48c789,_0x13350d)):_0x1914de[_0x5937('0x89')](_0x48c789)?(_0x53a9bc[_0x5937('0x2e')](_0x48c789),_0x1914de[_0x5937('0x2e')](_0x48c789)):(_0x53a9bc['add'](_0x48c789),_0x1914de['set'](_0x48c789,_0x13350d));}else _0x53a9bc[_0x5937('0x49')](_0x48c789);}for(const _0x2848ed of _0x53a9bc){const _0x206f2b=_0x1914de['has'](_0x2848ed)&&!_0x1914de[_0x5937('0x118')](_0x2848ed)[_0x5937('0x33')];let _0x51a575=_0x206f2b?_0xf2057e['length']-0x1:0x0;const _0x4bec7a=_0x206f2b?-0x1:0x1;for(;_0xf2057e[_0x51a575];){const _0x2b0ce0=_0xf2057e[_0x51a575];if(_0x2b0ce0['diffData'][_0x2848ed]){const _0x5539e1=_0x206f2b?_0x2b0ce0[_0x5937('0x11a')][_0x2848ed][_0x5937('0x66')]:_0x2b0ce0[_0x5937('0x11a')][_0x2848ed]['attributesAfter'];_0x345d31[_0x5937('0x7c')][_0x2848ed]=_0x5539e1?_0x283255(_0x5539e1):{};break;}_0x51a575+=_0x4bec7a;}}for(const _0xdf6f9c of _0xf2057e){_0xdf6f9c['model']={};for(const _0x57838e of _0xdf6f9c[_0x5937('0x122')])_0x577be0[_0x5937('0xa9')](_0x57838e['id'],_0x57838e);for(const _0x5602c2 of _0x53a9bc){const _0x432644=_0xdf6f9c[_0x5937('0x11a')][_0x5602c2]?_0xdf6f9c[_0x5937('0x11a')][_0x5602c2][_0x5937('0xf')]:'[]',_0x300566=_0xdf6f9c[_0x5937('0x11a')][_0x5602c2]?_0xdf6f9c[_0x5937('0x11a')][_0x5602c2]['deletions']:'[]';_0xdf6f9c[_0x5937('0x116')][_0x5602c2]={'insertions':this[_0x5937('0xe1')](_0x432644),'deletions':this[_0x5937('0xe1')](_0x300566)};}}for(const _0x412d1d of _0x53a9bc){let _0x3b8ba7=null,_0x39a358=0x0;const _0x2b9525=new Map(Array['from'](_0x451151[_0x5937('0x116')][_0x412d1d]['insertions'][_0x5937('0x113')])[_0x5937('0x5d')](([_0x4e5f8f])=>!_0x4e5f8f[_0x5937('0xb5')](_0x5937('0x103'))));let _0x36b482=0x0;for(const _0x10e1c7 of _0xf2057e){const _0x5f5b47=this[_0x5937('0x10')](_0x10e1c7['model'][_0x412d1d][_0x5937('0xf')]);_0x10e1c7==_0x451151?(_0x3b8ba7=_0x5f5b47,_0x39a358=_0x3b8ba7['length'],_0x3b8ba7[_0x5937('0xc2')](_0x2af555=>{_0x2af555['id']=_0x36b482++;}),this[_0x5937('0xc9')](_0x3b8ba7)):this[_0x5937('0x1d')](_0x3b8ba7,_0x5f5b47);const _0x26444a=_0x3b8ba7[_0x5937('0x5d')](_0x110cca=>!_0x110cca[_0x5937('0x4')])[_0x5937('0x65')](_0x5d3eed=>_0x5d3eed['id']);let _0x1be607=0x0;const _0x14fb33=this['_makeTape'](_0x10e1c7['model'][_0x412d1d][_0x5937('0x98')]);_0x14fb33['forEach'](_0x525de2=>{_0x525de2[_0x5937('0x9c')]?_0x525de2['id']=_0x39a358++:_0x525de2['id']=_0x26444a[_0x1be607++];}),this[_0x5937('0xc9')](_0x14fb33),this[_0x5937('0x4f')](_0x3b8ba7,_0x5937('0x4')),this['_setDistance'](_0x14fb33,_0x5937('0x9c')),_0x10e1c7==_0x451151&&this['_markMarkers'](_0x3b8ba7,_0x2b9525),_0x3b8ba7=this[_0x5937('0xc1')](_0x3b8ba7,_0x14fb33),this[_0x5937('0xd7')](_0x3b8ba7),this['_setDistance'](_0x3b8ba7,_0x5937('0x9c'));}_0x3b8ba7=_0x3b8ba7[_0x5937('0x5d')](_0x47777b=>!(_0x47777b['isAdded']&&_0x47777b[_0x5937('0x9c')]));const _0x292081=new Map(_0x96d159[_0x5937('0x116')][_0x412d1d]['deletions'][_0x5937('0x113')]),_0x27803e=new Set(_0x2b9525['keys']());for(const _0xb42c74 of _0x292081[_0x5937('0xf2')]())_0x27803e[_0x5937('0x2e')](_0xb42c74);this['_markSuggestions'](_0x3b8ba7,_0x27803e),this['_fixObsoleteTags'](_0x3b8ba7),_0x3b8ba7=this['_removeMissingPairs'](_0x3b8ba7),_0x3b8ba7=this[_0x5937('0xae')](_0x3b8ba7),_0x3b8ba7=this[_0x5937('0x120')](_0x3b8ba7);const {root:_0x3a581c,changes:_0x264514}=this[_0x5937('0x16')](_0x3b8ba7,_0x577be0,_0x412d1d);_0x345d31[_0x5937('0x116')][_0x412d1d]=_0x3a581c;const _0x3302e2=_0x1914de[_0x5937('0x118')](_0x412d1d);if(_0x3302e2){const _0x51d8a8=_0x577be0[_0x5937('0x118')](_0x3302e2['userId']),_0x3cc433=new _0x4782d0({'author':_0x51d8a8,'type':_0x3302e2[_0x5937('0x33')]?'add':_0x5937('0x96'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x412d1d});_0x264514[_0x5937('0x7')](_0x3cc433),_0x345d31[_0x5937('0x7c')][_0x412d1d][_0x5937('0xee')]=_0x3cc433['id'];}_0x345d31[_0x5937('0x5a')]=_0x345d31['changes'][_0x5937('0xf7')](_0x264514);}return _0x345d31;}[_0x5937('0xd3')](_0x46b424,_0x5e6b90){for(let _0x73a6=0x0;_0x73a6<_0x46b424[_0x5937('0xcf')];_0x73a6++)for(const [_0xa6a1bd,_0x1e707d]of _0x5e6b90)_0x1e707d['start'][_0x5937('0xab')](_0x46b424[_0x73a6][_0x5937('0x35')])&&_0x46b424[_0x73a6][_0x5937('0x22')][_0x5937('0xaa')](_0xa6a1bd),_0x1e707d[_0x5937('0x36')][_0x5937('0xab')](_0x46b424[_0x73a6][_0x5937('0x40')])&&_0x46b424[_0x73a6][_0x5937('0x50')][_0x5937('0xaa')](_0xa6a1bd);}[_0x5937('0xc1')](_0x22dfba,_0x491bcb){let _0x583ade=[],_0x4e9726=0x0,_0x27a287=0x0;for(;_0x4e9726<_0x22dfba[_0x5937('0xcf')]||_0x27a287<_0x491bcb[_0x5937('0xcf')];){const _0x14617a=_0x22dfba[_0x4e9726]||{},_0x14ab15=_0x491bcb[_0x27a287]||{};if(_0x14617a['id']==_0x14ab15['id'])_0x4e9726++,_0x27a287++,_0x583ade[_0x5937('0xaa')](_0x14617a);else{if(_0x14ab15[_0x5937('0x9c')]&&_0x14617a[_0x5937('0x4')]){const {commonTape:_0x125684,iEnd:_0x49141b,jEnd:_0x405cc2}=this[_0x5937('0x0')](_0x22dfba,_0x4e9726,_0x491bcb,_0x27a287);_0x583ade=_0x583ade['concat'](_0x125684),_0x4e9726=_0x49141b,_0x27a287=_0x405cc2;}else _0x14ab15[_0x5937('0x9c')]?(_0x27a287++,_0x583ade[_0x5937('0xaa')](_0x14ab15)):(_0x4e9726++,_0x583ade['push'](_0x14617a));}}return _0x583ade;}['_markSuggestions'](_0x3a63fe,_0x2fad7c){const _0x68cec=[];for(let _0x6539d2=0x0;_0x6539d2<_0x3a63fe[_0x5937('0xcf')];_0x6539d2++){for(let _0x2ee587=0x0;_0x2ee587<_0x3a63fe[_0x6539d2]['markersStart'][_0x5937('0xcf')];_0x2ee587++){const _0x30d992=_0x3a63fe[_0x6539d2][_0x5937('0x22')][_0x2ee587];if(!_0x2fad7c['has'](_0x30d992))continue;const {group:_0x404c7a,type:_0x5dd303,authorId:_0x3770ef}=_0x343d1b(_0x30d992);_0x5937('0xbc')!=_0x404c7a||_0x5937('0x12c')!=_0x5dd303&&_0x5937('0x57')!=_0x5dd303||(_0x68cec[_0x5937('0x7')]({'type':_0x5dd303,'name':_0x30d992,'userId':_0x3770ef}),_0x3a63fe[_0x6539d2][_0x5937('0x22')][_0x5937('0xac')](_0x2ee587,0x1),_0x2ee587--);}_0x395d89(_0x3a63fe[_0x6539d2]);for(let _0x114756=0x0;_0x114756<_0x3a63fe[_0x6539d2][_0x5937('0x50')][_0x5937('0xcf')];_0x114756++){const _0x48ad0c=_0x3a63fe[_0x6539d2]['markersEnd'][_0x114756];if(!_0x2fad7c['has'](_0x48ad0c))continue;const {group:_0x1f9a97,type:_0x437672}=_0x343d1b(_0x48ad0c);if(_0x5937('0xbc')!=_0x1f9a97||_0x5937('0x12c')!=_0x437672&&_0x5937('0x57')!=_0x437672)continue;_0x3a63fe[_0x6539d2]['markersEnd'][_0x5937('0xac')](_0x114756,0x1),_0x114756--;const _0xa17ada=_0x68cec[_0x5937('0x4c')](_0xa6d21b=>_0xa6d21b[_0x5937('0x41')]==_0x48ad0c);_0xa17ada>-0x1&&_0x68cec[_0x5937('0xac')](_0xa17ada,0x1);}}function _0x343d1b(_0x4f93a0){const _0x25b293=_0x4f93a0['split'](':');return{'group':_0x25b293[0x0],'type':_0x25b293[0x1],'subType':_0x25b293[_0x5937('0xcf')]>=0x5?_0x25b293[0x2]:null,'id':_0x25b293[_0x5937('0xcf')]<0x5?_0x25b293[0x2]:_0x25b293[0x3],'authorId':_0x25b293[_0x5937('0xcf')]<0x5?_0x25b293[0x3]:_0x25b293[0x4],'markerCount':0x6==_0x25b293[_0x5937('0xcf')]?_0x25b293[0x5]:null};}function _0x395d89(_0x43839e){for(let _0x1b1c5c=0x0;_0x1b1c5c<_0x68cec[_0x5937('0xcf')];_0x1b1c5c++){if(_0x43839e[_0x5937('0x4')]&&'insertion'==_0x68cec[_0x1b1c5c][_0x5937('0x84')])return _0x43839e[_0x5937('0xa7')]=_0x68cec[_0x1b1c5c],void delete _0x43839e[_0x5937('0x4')];if(!_0x43839e[_0x5937('0x4')]&&!_0x43839e[_0x5937('0x9c')]&&_0x5937('0x57')==_0x68cec[_0x1b1c5c][_0x5937('0x84')])return void(_0x43839e[_0x5937('0xf4')]=_0x68cec[_0x1b1c5c]);}}}[_0x5937('0x4f')](_0x470af5,_0x55dd3e){let _0x2ca13f=0x0,_0x54fa80=!0x1;const _0x7fad4=new Map();for(const _0x71ec43 of _0x470af5)_0x71ec43[_0x55dd3e]?_0x54fa80&&(_0x2ca13f++,_0x54fa80=!0x1):(_0x2ca13f++,_0x54fa80=!0x0),_0x7fad4[_0x5937('0xa9')](_0x71ec43['id'],_0x2ca13f);for(let _0xf29908=0x0;_0xf29908<_0x470af5['length'];_0xf29908++){if(_0x5937('0x9c')==_0x55dd3e&&_0x470af5[_0xf29908]['isAdded']||_0x5937('0x4')==_0x55dd3e&&_0x470af5[_0xf29908][_0x5937('0x9c')])continue;if(_0x5937('0x61')==_0x470af5[_0xf29908][_0x5937('0x84')]){_0x470af5[_0xf29908][_0x5937('0x97')]=0x0;continue;}const _0xa22779=_0x7fad4[_0x5937('0x118')](_0x470af5[_0xf29908]['pairId']),_0x269646=_0x7fad4[_0x5937('0x118')](_0x470af5[_0xf29908]['id']);_0x470af5[_0xf29908][_0x5937('0x97')]=_0xa22779-_0x269646;}}['_getRevisionsRange'](_0x449146,_0x354dd5,_0x2a6df1=!0x1){const _0x339fa1=[];let _0x4d410f=this[_0x5937('0x42')]['getIndex'](_0x449146),_0x3c8a56=this['repository'][_0x5937('0xe')](_0x354dd5);for(-0x1==_0x3c8a56&&(_0x3c8a56=this[_0x5937('0x42')][_0x5937('0xf0')][_0x5937('0xcf')],_0x2a6df1=!0x1);_0x4d410f<_0x3c8a56;)_0x339fa1[_0x5937('0xaa')](this[_0x5937('0x42')]['getRevision'](_0x4d410f)),_0x4d410f++;return _0x2a6df1&&_0x339fa1[_0x5937('0xaa')](this[_0x5937('0x42')]['getRevision'](_0x4d410f)),_0x339fa1;}[_0x5937('0x0')](_0x38c305,_0x58a8b8,_0x91f653,_0x503172){const _0x6efe27=this['editor']['model'][_0x5937('0x11d')];let _0xa2de83=_0x58a8b8;for(;_0x38c305[_0xa2de83]&&_0x38c305[_0xa2de83][_0x5937('0x4')];)_0xa2de83++;let _0x4039b7=_0x503172;for(;_0x91f653[_0x4039b7]&&_0x91f653[_0x4039b7]['isRemoved'];)_0x4039b7++;_0x5996c2(_0x38c305,_0x58a8b8,_0xa2de83),_0x5996c2(_0x91f653,_0x503172,_0x4039b7);const _0x3a521d=_0x91f653[_0x5937('0xdd')](_0x503172,_0x4039b7)[_0x5937('0xf7')](_0x38c305[_0x5937('0xdd')](_0x58a8b8,_0xa2de83));return _0x3a521d[_0x5937('0xc8')]((_0x33bd63,_0x1a8dee)=>_0x33bd63[_0x5937('0x10f')]!=_0x1a8dee[_0x5937('0x10f')]?_0x33bd63[_0x5937('0x10f')]-_0x1a8dee[_0x5937('0x10f')]:_0x33bd63['level']!=_0x1a8dee[_0x5937('0x124')]?_0x33bd63[_0x5937('0x124')]-_0x1a8dee[_0x5937('0x124')]:_0x33bd63['distance']!=_0x1a8dee['distance']?_0x1a8dee[_0x5937('0x97')]-_0x33bd63[_0x5937('0x97')]:!!_0x33bd63['isAdded']!=!!_0x1a8dee[_0x5937('0x4')]?-0x1==_0x33bd63['side']||0x0==_0x33bd63['side']?_0x33bd63[_0x5937('0x4')]?-0x1:0x1:_0x33bd63[_0x5937('0x4')]?0x1:-0x1:_0x33bd63[_0x5937('0x5')]-_0x1a8dee['index']),{'commonTape':_0x3a521d,'iEnd':_0xa2de83,'jEnd':_0x4039b7};function _0x5996c2(_0x124c29,_0x3046bf,_0x4424ea){let _0x5eff8b=-0x1,_0x156786=Number['POSITIVE_INFINITY'],_0x3e5a3b=!0x0;for(let _0x10b9cf=_0x3046bf;_0x10b9cf<_0x4424ea;_0x10b9cf++)if(_0x6efe27['isInline'](_0x124c29[_0x10b9cf]['item'])||(_0x3e5a3b=!0x1),_0x124c29[_0x10b9cf][_0x5937('0x8')]['startIndex']<_0x3046bf&&(_0x5eff8b=_0x10b9cf),_0x124c29[_0x10b9cf][_0x5937('0x8')][_0x5937('0x3b')]>=_0x4424ea){_0x156786=_0x10b9cf;break;}_0x3e5a3b&&(_0x5eff8b=_0x4424ea-0x1);for(let _0x516cef=_0x3046bf;_0x516cef<_0x4424ea;_0x516cef++)_0x124c29[_0x516cef]['side']=_0x516cef<=_0x5eff8b?-0x1:_0x516cef<_0x156786?0x0:0x1,_0x124c29[_0x516cef]['index']=_0x516cef;let _0x4a74e2=0x0;for(let _0x525d82=_0x3046bf;_0x525d82<=_0x5eff8b;_0x525d82++)0x0==_0x124c29[_0x525d82][_0x5937('0x97')]?_0x124c29[_0x525d82]['level']=_0x4a74e2:(_0x4a74e2++,_0x124c29[_0x525d82][_0x5937('0x124')]=_0x4a74e2,_0x4a74e2++);for(let _0x4bba1d=_0x3046bf;_0x4bba1d<_0x4424ea;_0x4bba1d++)0x0==_0x124c29[_0x4bba1d][_0x5937('0x10f')]&&(_0x124c29[_0x4bba1d][_0x5937('0x124')]=_0x4a74e2);_0x4a74e2=0x0;for(let _0x423a31=_0x4424ea-0x1;_0x423a31>=_0x156786;_0x423a31--)0x0==_0x124c29[_0x423a31][_0x5937('0x97')]?_0x124c29[_0x423a31][_0x5937('0x124')]=_0x4a74e2:(_0x4a74e2--,_0x124c29[_0x423a31][_0x5937('0x124')]=_0x4a74e2,_0x4a74e2--);}}[_0x5937('0xa4')](_0x783952){const _0x2f949c=new Map(),_0x557f94=this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x11d')];for(let _0x546014=0x1;_0x546014<_0x783952[_0x5937('0xcf')];_0x546014++){let _0x5508a1,_0x43fbc6,_0x237484;const _0x1f78fb=_0x783952[_0x546014],_0x28beee=_0x783952[_0x546014-0x1];if(_0x5937('0x61')==_0x1f78fb[_0x5937('0x84')])continue;if(_0x1f78fb[_0x5937('0x84')]!=_0x28beee['type'])continue;if(!_0x557f94['isBlock'](_0x28beee[_0x5937('0x8')])||_0x557f94['isLimit'](_0x28beee[_0x5937('0x8')]))continue;if(!_0x557f94['isBlock'](_0x1f78fb[_0x5937('0x8')])||_0x557f94[_0x5937('0xef')](_0x1f78fb[_0x5937('0x8')]))continue;if((_0x783952[_0x546014]['isAdded']||_0x783952[_0x546014][_0x5937('0xa7')])&&_0x783952[_0x546014-0x1]['isRemoved'])_0x5508a1=_0x783952[_0x546014],_0x43fbc6=_0x783952[_0x546014-0x1],_0x237484=_0x546014-0x1;else{if(!_0x783952[_0x546014][_0x5937('0x9c')]||!_0x783952[_0x546014-0x1]['isAdded']&&!_0x783952[_0x546014-0x1][_0x5937('0xa7')])continue;_0x5508a1=_0x783952[_0x546014-0x1],_0x43fbc6=_0x783952[_0x546014],_0x237484=_0x546014;}const _0x46c74f=_0x5508a1[_0x5937('0x124')]==_0x43fbc6[_0x5937('0x124')],_0x355ea3=Math[_0x5937('0x21')](_0x5508a1[_0x5937('0x124')])<Math[_0x5937('0x21')](_0x43fbc6[_0x5937('0x124')])&&0x0==_0x43fbc6[_0x5937('0x97')];(_0x46c74f||_0x355ea3)&&(_0x2f949c['set'](_0x43fbc6['id'],_0x5508a1['id']),_0x783952['splice'](_0x237484,0x1),_0x546014--,_0x5508a1[_0x5937('0x4')]=!0x1);}for(let _0x4300f=0x0;_0x4300f<_0x783952['length'];_0x4300f++)_0x2f949c[_0x5937('0x89')](_0x783952[_0x4300f][_0x5937('0x117')])&&(_0x783952[_0x4300f][_0x5937('0x117')]=_0x2f949c[_0x5937('0x118')](_0x783952[_0x4300f][_0x5937('0x117')]));}['_removeMissingPairs'](_0xbc141){const _0x2e14d6=new Set(_0xbc141[_0x5937('0x65')](_0x249919=>_0x249919['id']));for(let _0x125e6f=0x0;_0x125e6f<_0xbc141[_0x5937('0xcf')];_0x125e6f++)_0x2e14d6[_0x5937('0x89')](_0xbc141[_0x125e6f][_0x5937('0x117')])||0x0==_0xbc141[_0x125e6f][_0x5937('0x97')]||(_0xbc141[_0x125e6f][_0x5937('0xc7')]=!0x0);return _0xbc141[_0x5937('0x5d')](_0x7b8e81=>!_0x7b8e81[_0x5937('0xc7')]);}[_0x5937('0xae')](_0x32234b){const _0x357c1e=new Set();for(let _0x353788=0x0;_0x353788<_0x32234b[_0x5937('0xcf')];_0x353788++){if(_0x357c1e['has'](_0x32234b[_0x353788]['id'])&&_0x32234b[_0x353788][_0x5937('0x9c')]&&(_0x32234b[_0x353788][_0x5937('0xc7')]=!0x0),_0x32234b[_0x353788][_0x5937('0xc7')])continue;if(0x0==_0x32234b[_0x353788][_0x5937('0x97')])continue;if(_0x5937('0xf3')!=_0x32234b[_0x353788][_0x5937('0x84')])continue;if(null==_0x32234b[_0x353788]['pairId'])continue;let _0x1c7a84=_0x353788+0x1,_0xe2e7fe=0x0;for(;_0x32234b[_0x1c7a84]['id']!=_0x32234b[_0x353788][_0x5937('0x117')];)_0x5937('0xf3')==_0x32234b[_0x1c7a84][_0x5937('0x84')]?_0xe2e7fe++:_0x5937('0xa')==_0x32234b[_0x1c7a84][_0x5937('0x84')]&&_0xe2e7fe--,_0x1c7a84++;if(0x0!=_0xe2e7fe){if(_0x32234b[_0x353788][_0x5937('0x9c')])_0x32234b[_0x353788][_0x5937('0xc7')]=!0x0;else for(;_0x1c7a84!=_0x353788;)_0x32234b[_0x1c7a84][_0x5937('0x9c')]&&0x0!=_0x32234b[_0x1c7a84][_0x5937('0x97')]&&(_0x32234b[_0x1c7a84][_0x5937('0xc7')]=!0x0,_0x357c1e[_0x5937('0x49')](_0x32234b[_0x1c7a84][_0x5937('0x117')])),_0x1c7a84--;}}return _0x32234b['filter'](_0xc17808=>!_0xc17808[_0x5937('0xc7')]);}[_0x5937('0x120')](_0x11d5c3){const _0x374ef3=this['editor'][_0x5937('0x116')][_0x5937('0x11d')];for(let _0x43271c=0x0;_0x43271c<_0x11d5c3[_0x5937('0xcf')];_0x43271c++){if(!(_0x11d5c3[_0x43271c][_0x5937('0x4')]||_0x11d5c3[_0x43271c][_0x5937('0xa7')]||_0x11d5c3[_0x43271c][_0x5937('0x9c')]||_0x11d5c3[_0x43271c][_0x5937('0xf4')]))continue;if(0x0==_0x11d5c3[_0x43271c][_0x5937('0x97')])continue;const _0x2a48ec=_0x11d5c3[_0x43271c][_0x5937('0x8')];_0x374ef3[_0x5937('0xe2')](_0x2a48ec)||_0x374ef3['isLimit'](_0x2a48ec)||(_0x11d5c3[_0x43271c][_0x5937('0x4')]&&delete _0x11d5c3[_0x43271c][_0x5937('0x4')],_0x11d5c3[_0x43271c][_0x5937('0xa7')]&&delete _0x11d5c3[_0x43271c][_0x5937('0xa7')],_0x11d5c3[_0x43271c][_0x5937('0xf4')]&&delete _0x11d5c3[_0x43271c][_0x5937('0xf4')],_0x11d5c3[_0x43271c][_0x5937('0x9c')]&&(_0x11d5c3[_0x43271c][_0x5937('0xc7')]=!0x0));}return _0x11d5c3[_0x5937('0x5d')](_0x4e36aa=>!_0x4e36aa[_0x5937('0xc7')]);}[_0x5937('0x16')](_0x4cb459,_0x335474,_0x1de706){const _0x159f52=new _0x3be22e(),_0x374369=[],_0x2264e4=new Map(),_0x35f6b6=this[_0x5937('0x110')][_0x5937('0x116')],_0x187eb0=_0x35f6b6[_0x5937('0x11d')],_0x2194ee=[_0x159f52],_0x3524af={},_0x527352={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43b3b8=null;const _0x1e36d7=[0x0];for(let _0x1deced=0x0;_0x1deced<_0x4cb459[_0x5937('0xcf')];_0x1deced++){let _0x4df175,_0x418e04;if(_0x5937('0xf3')===_0x4cb459[_0x1deced]['type']){_0x4df175=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7);const _0x48de7e=new _0x586de6(_0x4cb459[_0x1deced]['item'][_0x5937('0x41')],_0x4cb459[_0x1deced][_0x5937('0x8')][_0x5937('0x54')]());_0x2194ee[0x0][_0x5937('0x2f')](_0x48de7e),_0x1e36d7[_0x5937('0xaa')](0x0),_0x2194ee['unshift'](_0x48de7e),_0x418e04=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x43b3b8=null;}else{if(_0x5937('0xa')===_0x4cb459[_0x1deced][_0x5937('0x84')])_0x2194ee[_0x5937('0x17')](),_0x4df175=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x1e36d7[_0x5937('0x8a')](),_0x1e36d7[_0x1e36d7[_0x5937('0xcf')]-0x1]++,_0x418e04=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x43b3b8=null;else{if(_0x4df175=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x43b3b8&&_0x4df0a3(_0x43b3b8,_0x4cb459[_0x1deced][_0x5937('0x8')]))_0x43b3b8[_0x5937('0xf6')]+=_0x4cb459[_0x1deced]['item'][_0x5937('0xfa')];else{const _0x15b30c=new _0x45b63b(_0x4cb459[_0x1deced]['item']['data'],_0x4cb459[_0x1deced][_0x5937('0x8')][_0x5937('0x54')]());_0x2194ee[0x0]['_appendChild'](_0x15b30c),_0x43b3b8=_0x15b30c;}_0x1e36d7[_0x1e36d7[_0x5937('0xcf')]-0x1]+=_0x4cb459[_0x1deced][_0x5937('0x8')][_0x5937('0x8e')],_0x418e04=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7);}}for(const _0xa22f2f of _0x4cb459[_0x1deced][_0x5937('0x22')])_0x2264e4[_0x5937('0xa9')](_0xa22f2f,{'start':_0x4df175,'end':null});_0x271263(_0x5937('0xf4'),_0x1deced,_0x4df175,_0x418e04),_0x271263(_0x5937('0xa7'),_0x1deced,_0x4df175,_0x418e04),_0x271263(_0x5937('0x9c'),_0x1deced,_0x4df175,_0x418e04),_0x271263(_0x5937('0x4'),_0x1deced,_0x4df175,_0x418e04);for(const _0x58d2ce of _0x4cb459[_0x1deced][_0x5937('0x50')]){_0x2264e4[_0x5937('0x118')](_0x58d2ce)[_0x5937('0x36')]=_0x418e04;}}for(const [_0x40f4fe,_0xd50472]of _0x2264e4){const _0xb0c3d5=this[_0x5937('0x110')]['model'][_0x5937('0x7a')](_0xd50472[_0x5937('0xbe')],_0xd50472[_0x5937('0x36')]);_0x159f52[_0x5937('0x113')]['set'](_0x40f4fe,_0xb0c3d5);}return _0x374369['sort']((_0x3d388b,_0x3b0db1)=>{const _0x33e173=_0x159f52[_0x5937('0x113')][_0x5937('0x118')](_0x5937('0x103')+_0x3d388b['id']),_0x3c8c71=_0x159f52[_0x5937('0x113')][_0x5937('0x118')]('revision:'+_0x3b0db1['id']);return _0x33e173['start'][_0x5937('0x11b')](_0x3c8c71[_0x5937('0xbe')])?-0x1:_0x33e173['start'][_0x5937('0x31')](_0x3c8c71[_0x5937('0xbe')])?0x1:_0x33e173['end']['isBefore'](_0x3c8c71['end'])?-0x1:_0x33e173[_0x5937('0x36')][_0x5937('0x31')](_0x3c8c71['end'])?0x1:_0x5937('0x49')===_0x3d388b[_0x5937('0x84')]?-0x1:0x1;}),{'root':_0x159f52,'changes':_0x374369};function _0x271263(_0x15412f,_0xae7ffb,_0x419356,_0x450ca6){const _0x3ade5a=!!_0x4cb459[_0xae7ffb][_0x15412f],_0x1dc386=_0x3ade5a?_0x4cb459[_0xae7ffb][_0x15412f][_0x5937('0xc6')]:null,_0x5ec0c7=_0xae7ffb===_0x4cb459[_0x5937('0xcf')]-0x1,_0x564669=_0x527352[_0x15412f][0x0],_0x582a55=_0x187eb0[_0x5937('0x80')](_0x4cb459[_0xae7ffb][_0x5937('0x8')]);!_0x3524af[_0x15412f]&&_0x3ade5a?_0x3524af[_0x15412f]={'start':_0x419356,'tapeItem':_0x4cb459[_0xae7ffb],'userId':_0x1dc386,'type':_0x15412f}:_0x3524af[_0x15412f]&&!_0x3ade5a?(_0x3524af[_0x15412f][_0x5937('0x36')]=_0x419356,_0x47d869(_0x3524af[_0x15412f]),_0x3524af[_0x15412f]=null):_0x3524af[_0x15412f]&&_0x3ade5a&&_0x3524af[_0x15412f]['userId']!==_0x1dc386&&(_0x3524af[_0x15412f][_0x5937('0x36')]=_0x419356,_0x564669&&_0x564669[_0x5937('0xc6')]===_0x3524af[_0x15412f][_0x5937('0xc6')]||_0x47d869(_0x3524af[_0x15412f]),_0x3524af[_0x15412f]={'start':_0x419356,'tapeItem':_0x4cb459[_0xae7ffb],'userId':_0x1dc386,'type':_0x15412f}),_0x3524af[_0x15412f]&&_0x582a55&&(_0x5937('0xf3')!==_0x4cb459[_0xae7ffb][_0x5937('0x84')]||_0x564669&&_0x564669[_0x5937('0xc6')]===_0x1dc386||_0x527352[_0x15412f]['unshift']({'userId':_0x1dc386,'object':_0x4cb459[_0xae7ffb][_0x5937('0x8')],'change':_0x3524af[_0x15412f]}),_0x5937('0xa')===_0x4cb459[_0xae7ffb][_0x5937('0x84')]&&_0x564669&&_0x564669[_0x5937('0x106')]===_0x4cb459[_0xae7ffb]['item']&&(_0x527352[_0x15412f][_0x5937('0x17')](),_0x3524af[_0x15412f]=_0x564669[_0x5937('0x59')])),_0x3524af[_0x15412f]&&_0x5ec0c7&&(_0x3524af[_0x15412f][_0x5937('0x36')]=_0x450ca6,_0x47d869(_0x3524af[_0x15412f]),_0x3524af[_0x15412f]=null);}function _0x47d869({start:_0x5d3375,end:_0x4631c0,tapeItem:_0x165323,userId:_0x3a7638,type:_0x44f15a}){const _0x21504e=_0x165323['item'],_0x12c9c1=_0x35f6b6['schema'][_0x5937('0xe2')](_0x21504e)&&!_0x35f6b6[_0x5937('0x11d')][_0x5937('0xef')](_0x21504e),_0x4df35c=_0x5d3375['nodeAfter']==_0x4631c0[_0x5937('0x5c')]&&_0x4631c0[_0x5937('0x38')];if(_0x12c9c1&&_0x4df35c)return;const _0x1b12c8=_0x35f6b6['createRange'](_0x5d3375,_0x4631c0),_0x3ce3e4=_0x335474[_0x5937('0x118')](_0x3a7638),_0x2489bf=new _0x4782d0({'author':_0x3ce3e4,'type':_0x5937('0x4')==_0x44f15a||'isAddSuggestion'==_0x44f15a?'add':_0x5937('0x96'),'data':{'isSuggestion':_0x5937('0xa7')==_0x44f15a||_0x5937('0xf4')==_0x44f15a},'createdAt':new Date(),'rootName':_0x1de706});_0x374369[_0x5937('0xaa')](_0x2489bf),_0x159f52['markers'][_0x5937('0xa9')]('revision:'+_0x2489bf['id'],_0x1b12c8);}function _0x4df0a3(_0x435348,_0x541d37){const _0x2ab0b9=_0x435348[_0x5937('0x54')](),_0x801a95=_0x541d37[_0x5937('0x54')]();for(const _0x5d9b5b of _0x2ab0b9){if(_0x5d9b5b[0x1]!==_0x541d37['getAttribute'](_0x5d9b5b[0x0]))return!0x1;_0x801a95['next']();}return _0x801a95[_0x5937('0x1e')]()[_0x5937('0x53')];}}[_0x5937('0xed')](){this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0x11'))[_0x5937('0x28')]({'view':_0x5937('0xd2')}),this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0xce'))['markerToHighlight']({'model':_0x5937('0xd2'),'view':_0x4e8fff=>{const _0x102bba=_0x4e8fff[_0x5937('0x20')][_0x5937('0x4d')](':')[0x1],_0xdb0714=this[_0x5937('0x7f')](_0x102bba);if(!_0xdb0714)return null;const _0x4e6446='add'==_0xdb0714['type']?_0x5937('0x12c'):'deletion',_0x38f223=[_0x5937('0x125'),_0x5937('0xde')+_0x4e6446];return _0xdb0714[_0x5937('0xfa')][_0x5937('0xd9')]&&_0x38f223[_0x5937('0xaa')](_0x5937('0xde')+_0x4e6446+_0x5937('0x10b')),this[_0x5937('0xd4')]==_0xdb0714&&_0x38f223['push']('ck-suggestion-marker--active'),{'classes':_0x38f223,'attributes':{'data-change-id':_0x102bba}};}}),this['editor']['conversion'][_0x5937('0x44')](_0x5937('0x11'))[_0x5937('0x49')](_0x40f2e6=>{_0x40f2e6['on'](_0x5937('0xdf'),(_0x166375,_0x43e87f,_0x40a166)=>{const _0x12c35f=_0x43e87f['viewItem']['getChild'](0x0);if(!_0x12c35f||!_0x12c35f['is']('element',_0x5937('0x11e')))return;if(!_0x40a166[_0x5937('0xd6')][_0x5937('0x3c')](_0x12c35f,{'attributes':['vid_start',_0x5937('0x56')]}))return;const _0x89db36=_0x43e87f['modelRange'][_0x5937('0xbe')][_0x5937('0x7b')];_0x40a166[_0x5937('0x129')][_0x5937('0xb6')](_0x5937('0x34'),_0x12c35f[_0x5937('0x18')](_0x5937('0x34')),_0x89db36),_0x40a166[_0x5937('0x129')]['setAttribute']('vid_end',_0x12c35f[_0x5937('0x18')]('vid_end'),_0x89db36);},{'priority':_0x5937('0x4b')});}),this[_0x5937('0x110')]['conversion'][_0x5937('0x44')]('upcast')[_0x5937('0x49')](_0x1546da=>{_0x1546da['on']('element',(_0x48380a,_0x53e37e,_0x7f1daa)=>{if(!_0x7f1daa[_0x5937('0xd6')][_0x5937('0x3c')](_0x53e37e['viewItem'],{'attributes':['vid_start',_0x5937('0x56')]}))return;if(_0x53e37e[_0x5937('0x19')][_0x5937('0x12a')])return;const _0x50f373=_0x53e37e[_0x5937('0x19')][_0x5937('0xbe')][_0x5937('0x7b')];_0x50f373[_0x5937('0x128')](_0x5937('0x34'))||_0x50f373['hasAttribute'](_0x5937('0x23'))||(_0x7f1daa[_0x5937('0x129')][_0x5937('0xb6')](_0x5937('0x34'),_0x53e37e[_0x5937('0xca')][_0x5937('0x18')](_0x5937('0x34')),_0x50f373),_0x7f1daa['writer'][_0x5937('0xb6')]('vid_end',_0x53e37e[_0x5937('0xca')][_0x5937('0x18')](_0x5937('0x56')),_0x50f373));},{'priority':'low'});}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0x11'))[_0x5937('0x29')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x5937('0x23'),'value':_0x4d900a=>_0x4d900a[_0x5937('0x18')]('vid')}}),this[_0x5937('0x110')][_0x5937('0x116')]['schema']['on']('checkAttribute',(_0x4db79d,[,_0x52924f])=>{[_0x5937('0x34'),_0x5937('0x56'),_0x5937('0x23')][_0x5937('0xec')](_0x52924f)&&(_0x4db79d[_0x5937('0x9')]=!0x0,_0x4db79d[_0x5937('0x2')]());},{'priority':_0x5937('0xd1')}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0x6e'))[_0x5937('0x49')](_0x1f8834=>{_0x1f8834['on'](_0x5937('0x4e'),(_0x171ee6,_0x2d32da,_0x48fae4)=>{if('\x20'!=_0x2d32da[_0x5937('0x8')][_0x5937('0xfa')]||_0x2d32da['item'][_0x5937('0x5c')][_0x5937('0x6c')]>0x1)return;if(!_0x48fae4[_0x5937('0xd6')][_0x5937('0x3c')](_0x2d32da[_0x5937('0x8')],_0x171ee6[_0x5937('0x41')]))return;const _0x4e939b=_0x48fae4[_0x5937('0x129')],_0xeb720e=_0x48fae4[_0x5937('0x74')][_0x5937('0x4a')](_0x2d32da[_0x5937('0x14')]);_0x4e939b[_0x5937('0x102')](_0xeb720e,_0x4e939b[_0x5937('0xe4')](_0x5937('0xd8')));});}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0x6e'))[_0x5937('0xb3')]({'model':_0x5937('0xd2')}),this[_0x5937('0x110')][_0x5937('0x47')][_0x5937('0xda')]['on']('addMarker:revision',function(_0x2dcd4f){const _0x9ada2c=_0x2dcd4f[_0x5937('0xa8')][_0x5937('0x118')](_0x5937('0x3a'));return(_0x5408d8,_0x902b36,_0x3c0d25)=>{const _0x3bd44d=_0x902b36[_0x5937('0x20')][_0x5937('0x4d')](':')[0x1],_0x59a08f=_0x9ada2c[_0x5937('0x7f')](_0x3bd44d);if(!_0x59a08f)return null;const _0x1493b0=_0x5937('0x49')==_0x59a08f[_0x5937('0x84')]?'split':_0x5937('0xfe');if(!_0x3c0d25['consumable'][_0x5937('0xe9')](_0x902b36['markerRange'],_0x5408d8[_0x5937('0x41')]))return;const _0x4d7e41=_0x902b36[_0x5937('0x9b')][_0x5937('0x1a')](),_0x3edb87=_0x902b36[_0x5937('0x9b')][_0x5937('0xbe')],_0x878b24=_0x2dcd4f[_0x5937('0x116')][_0x5937('0x11d')];let _0x140928=null,_0x5cc16f=null,_0x3fa81b=!0x1,_0x5e0a1f=!0x1;for(const _0x13e0d4 of _0x4d7e41){const _0x182463=_0x13e0d4[_0x5937('0x8')];_0x3fa81b=_0x3fa81b||_0x878b24[_0x5937('0xa6')](_0x182463);const _0x478170=_0x3c0d25[_0x5937('0x74')][_0x5937('0x55')](_0x182463);if(_0x478170&&_0x478170['getCustomProperty'](_0x5937('0x6')))return;'elementEnd'==_0x13e0d4[_0x5937('0x84')]&&(_0x878b24[_0x5937('0xe2')](_0x182463)&&!_0x878b24[_0x5937('0xef')](_0x182463)&&(_0x182463[_0x5937('0x43')]||_0x3edb87['isAtEnd']?_0x140928&&_0x140928[_0x5937('0x5c')]==_0x182463||(_0x140928=_0x182463,_0x242b9f(_0x13e0d4[_0x5937('0x35')]),_0x5e0a1f=!0x0):_0x5cc16f=_0x5cc16f||_0x13e0d4[_0x5937('0x35')]));}function _0x242b9f(_0x5cce4e){const _0x5dd5b5=_0x3c0d25[_0x5937('0x129')][_0x5937('0x72')](_0x5937('0xd8'),{'class':_0x5937('0xde')+_0x1493b0}),_0x1aaba6=_0x3c0d25[_0x5937('0x74')]['toViewPosition'](_0x5cce4e);_0x59a08f['data'][_0x5937('0xd9')]&&_0x3c0d25[_0x5937('0x129')][_0x5937('0x94')](_0x5937('0xde')+_0x1493b0+'-new',_0x5dd5b5),_0x9ada2c[_0x5937('0xd4')]==_0x59a08f&&_0x3c0d25['writer']['addClass'](_0x5937('0x64'),_0x5dd5b5),_0x3c0d25[_0x5937('0x129')][_0x5937('0x6a')](_0x1aaba6,_0x5dd5b5),_0x3c0d25['mapper']['bindElementToMarker'](_0x5dd5b5,_0x902b36['markerName']);}_0x3fa81b||_0x5e0a1f||!_0x5cc16f||_0x242b9f(_0x5cc16f);};}(this['editor']),{'priority':'high'}),this[_0x5937('0x110')][_0x5937('0x47')]['downcastDispatcher']['on'](_0x5937('0xb'),(_0x1bb0d8,_0x34d98a,_0x2901c1)=>{const _0x143763=_0x2901c1[_0x5937('0x74')][_0x5937('0x112')](_0x34d98a[_0x5937('0x20')]);if(_0x143763)for(const _0x4b8d70 of _0x143763)(_0x4b8d70[_0x5937('0xe7')](_0x5937('0xb7'))||_0x4b8d70['hasClass'](_0x5937('0x77')))&&(_0x2901c1['mapper'][_0x5937('0x6f')](_0x4b8d70,_0x34d98a[_0x5937('0x20')]),_0x2901c1[_0x5937('0x129')][_0x5937('0x96')](_0x4b8d70));},{'priority':_0x5937('0x76')}),this[_0x5937('0x110')]['editing']['downcastDispatcher']['on'](_0x5937('0xc0'),(_0x3a1d3e,_0x55882c,_0x6e9cc5)=>{const _0x1c0a8d=_0x55882c[_0x5937('0x20')]['split'](':')[0x1],_0x45812e=this[_0x5937('0x7f')](_0x1c0a8d);if(!_0x45812e)return null;const _0x16355c='add'==_0x45812e[_0x5937('0x84')]?_0x5937('0x4d'):_0x5937('0xfe');if(_0x6e9cc5['consumable'][_0x5937('0xe9')](_0x55882c[_0x5937('0x9b')],_0x3a1d3e[_0x5937('0x41')]))for(const _0x4334b2 of _0x55882c[_0x5937('0x9b')][_0x5937('0x119')]()){if(!_0x4334b2['is'](_0x5937('0x123'),_0x5937('0xe8')))continue;const _0x3cae18=_0x6e9cc5[_0x5937('0x129')][_0x5937('0x72')](_0x5937('0xd8'),{'class':_0x5937('0xde')+_0x16355c}),_0x530f25=_0x6e9cc5[_0x5937('0x74')][_0x5937('0x63')](this['editor'][_0x5937('0x116')][_0x5937('0x67')](_0x4334b2));_0x45812e[_0x5937('0xfa')]['isSuggestion']&&_0x6e9cc5['writer']['addClass'](_0x5937('0xde')+_0x16355c+'-new',_0x3cae18),this['activeChange']==_0x45812e&&_0x6e9cc5[_0x5937('0x129')]['addClass'](_0x5937('0x64'),_0x3cae18),_0x6e9cc5[_0x5937('0x129')][_0x5937('0x6a')](_0x530f25,_0x3cae18),_0x6e9cc5['mapper'][_0x5937('0xeb')](_0x3cae18,_0x55882c['markerName']);}},{'priority':_0x5937('0x76')}),this['editor']['model'][_0x5937('0xf8')]['on'](_0x5937('0x59'),()=>{this[_0x5937('0x110')][_0x5937('0x47')][_0x5937('0x86')][_0x5937('0x59')](_0x4be5d1=>{for(const _0x5eaa52 of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')]['getRootNames']()){const _0x12f28b=this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')][_0x5937('0x8d')](_0x5eaa52),_0x2ef7ca=this[_0x5937('0x110')]['editing'][_0x5937('0x86')][_0x5937('0xf8')][_0x5937('0x8d')](_0x5eaa52);if(_0x2ef7ca){const _0x3951f1=_0x12f28b['getAttribute'](_0x5937('0xee'));if(_0x4be5d1[_0x5937('0x10e')](_0x5937('0x2a'),_0x2ef7ca),_0x4be5d1['removeClass'](_0x5937('0xb2'),_0x2ef7ca),_0x4be5d1[_0x5937('0x45')](_0x5937('0xbd'),_0x2ef7ca),_0x4be5d1[_0x5937('0x45')](_0x5937('0x46'),_0x2ef7ca),_0x3951f1){const _0x46fe2c=this[_0x5937('0x7f')](_0x3951f1);if(!_0x46fe2c)return null;_0x4be5d1[_0x5937('0xb6')]('data-change-id',_0x3951f1,_0x2ef7ca),_0x4be5d1['addClass'](_0x5937('0x26')+_0x46fe2c[_0x5937('0x84')],_0x2ef7ca),this[_0x5937('0xd4')]==_0x46fe2c&&_0x4be5d1[_0x5937('0x94')]('ck-revision-history-root--active',_0x2ef7ca);}}}});}),this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0x11'))[_0x5937('0x28')]({'view':_0x5937('0xf9'),'model':_0x474062=>_0x5937('0x12')+_0x474062,'converterPriority':_0x5937('0xd1')}),this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0x11'))[_0x5937('0x28')]({'view':_0x5937('0x114'),'model':_0x3ed6e9=>_0x5937('0x32')+_0x3ed6e9,'converterPriority':'highest'}),this[_0x5937('0x110')][_0x5937('0x27')]['for']('dataDowncast')['markerToData']({'model':_0x5937('0xbc'),'view':_0x2a9e03=>({'name':_0x5937('0xb4')+_0x2a9e03,'group':_0x5937('0xbc')}),'converterPriority':_0x5937('0xd1')}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0xce'))[_0x5937('0x48')]({'model':'revision-suggestion','view':_0x3a66ee=>{const _0x3ca26a=_0x3a66ee['markerName'][_0x5937('0x4d')](':')[0x1];return _0x5937('0x12c')!=_0x3ca26a&&_0x5937('0x57')!=_0x3ca26a?null:{'classes':['ck-suggestion-preview-marker',_0x5937('0x7e')+_0x3ca26a]};}}),this['editor'][_0x5937('0x47')][_0x5937('0xda')]['on'](_0x5937('0x13'),et(this[_0x5937('0x110')],_0x5937('0xfe')),{'priority':_0x5937('0x76')}),this['editor'][_0x5937('0x47')][_0x5937('0xda')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x5937('0x110')],'split'),{'priority':'high'}),this[_0x5937('0x110')]['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1fc926,_0x1bdad5,_0x56bd51)=>{const _0x5cccaa=_0x56bd51[_0x5937('0x74')][_0x5937('0x112')](_0x1bdad5[_0x5937('0x20')]);if(_0x5cccaa)for(const _0x2d25e9 of _0x5cccaa)_0x2d25e9['is'](_0x5937('0x37'))&&(_0x56bd51['mapper']['unbindElementFromMarkerName'](_0x2d25e9,_0x1bdad5[_0x5937('0x20')]),_0x56bd51[_0x5937('0x129')][_0x5937('0x96')](_0x2d25e9));},{'priority':_0x5937('0x76')});}['_getChangeFromId'](_0x68802d){return this['_changeIdToChange'][_0x5937('0x118')](_0x68802d);}['_getViewForChange'](_0x3f06e8){return this['_changeView']&&this[_0x5937('0xe3')][_0x5937('0x69')](),this[_0x5937('0xe3')]=new _0xf36502(this[_0x5937('0x110')][_0x5937('0x8c')],_0x3f06e8),this[_0x5937('0xe3')];}[_0x5937('0x88')](){this['editor'][_0x5937('0x116')]['document'][_0x5937('0x1f')][_0x5937('0x107')](_0x5937('0xd2')),this['on']('change:activeView',(_0x2c6b30,_0x4cda73,_0x1ce113,_0x442517)=>{_0x442517&&this[_0x5937('0x15')][_0x5937('0x96')](_0x442517),_0x1ce113&&(this[_0x5937('0x15')][_0x5937('0x49')]({'view':_0x1ce113,'stackId':_0x5937('0x9a'),'position':{'target':()=>{const _0x2d355e=this['editor'][_0x5937('0x47')],_0x4a55e7=this['_getChangeFromId'](_0x1ce113[_0x5937('0xf5')]);let _0x185c43;if(_0x4a55e7[_0x5937('0xfa')][_0x5937('0x127')]){const _0x3cf797=_0x2d355e[_0x5937('0x86')][_0x5937('0x12b')](_0x4a55e7['rootName']);_0x185c43=Array[_0x5937('0xfd')](_0x3cf797['getClientRects']());}else{const _0x52d18f=this['editor'][_0x5937('0x116')][_0x5937('0x113')][_0x5937('0x118')]('revision:'+_0x1ce113['changeId']);_0x185c43=Array[_0x5937('0xfd')](_0x2d355e[_0x5937('0x74')][_0x5937('0x112')](_0x52d18f[_0x5937('0x41')]))[_0x5937('0x65')](_0xdd6e8a=>_0x2d355e[_0x5937('0x86')]['domConverter'][_0x5937('0x9f')](_0xdd6e8a))[_0x5937('0x65')](_0x1fdc7a=>Array['from'](_0x1fdc7a[_0x5937('0x60')]()))[_0x5937('0xcd')]();}if(!this[_0x5937('0x100')])return _0x185c43[0x0];return _0x185c43[_0x5937('0x104')](_0x3b3ca7=>_0x3b3ca7[_0x5937('0x126')]-0x3<=this[_0x5937('0x100')]['y']&&_0x3b3ca7[_0x5937('0xba')]+0x3>=this[_0x5937('0x100')]['y']&&_0x3b3ca7[_0x5937('0xa0')]-0x3<=this[_0x5937('0x100')]['x']&&_0x3b3ca7['right']+0x3>=this[_0x5937('0x100')]['x'])||_0x185c43[0x0];}}}),this['_balloon'][_0x5937('0x70')](_0x5937('0x9a')));}),this['on'](_0x5937('0xb9'),(_0x19d4a0,_0x1febd8,_0x14b9d4,_0x480a23)=>{this[_0x5937('0x121')]=_0x14b9d4?this['_getViewForChange'](_0x14b9d4):null,this[_0x5937('0x110')][_0x5937('0x116')]['change'](()=>{const _0x2328f1=this['editor'][_0x5937('0x47')];_0x480a23&&(_0x480a23[_0x5937('0xfa')][_0x5937('0x127')]?_0x2328f1[_0x5937('0x86')][_0x5937('0x59')](_0x524e37=>{_0x524e37[_0x5937('0x45')](_0x5937('0x46'),_0x2328f1[_0x5937('0x86')][_0x5937('0xf8')][_0x5937('0x8d')](_0x480a23[_0x5937('0xbb')]));}):_0x2328f1[_0x5937('0xff')](_0x5937('0x103')+_0x480a23['id'])),_0x14b9d4&&(_0x14b9d4[_0x5937('0xfa')]['isOnRoot']?_0x2328f1[_0x5937('0x86')][_0x5937('0x59')](_0x5c608e=>{_0x5c608e[_0x5937('0x94')](_0x5937('0x46'),_0x2328f1[_0x5937('0x86')]['document'][_0x5937('0x8d')](_0x14b9d4[_0x5937('0xbb')]));}):_0x2328f1[_0x5937('0xff')](_0x5937('0x103')+_0x14b9d4['id']));});}),this['listenTo'](this[_0x5937('0x110')][_0x5937('0x47')][_0x5937('0x86')][_0x5937('0xf8')],'mouseover',(_0x2e552c,_0x4151b7)=>{if(this[_0x5937('0xd4')])return;const _0x47e94c=this[_0x5937('0x10a')](_0x4151b7['target']),_0x22fc48=this['_changeIdToChange'][_0x5937('0x118')](_0x47e94c);_0x22fc48?(this['_activeViewTarget']={'x':_0x4151b7[_0x5937('0x11f')]['x'],'y':_0x4151b7[_0x5937('0x11f')]['y']},this[_0x5937('0x121')]=this['_getViewForChange'](_0x22fc48)):(this[_0x5937('0x100')]=null,this[_0x5937('0x121')]=null);}),this['listenTo'](this['editor']['editing']['view'][_0x5937('0xf8')],_0x5937('0x5b'),(_0x11d93c,_0x4e16a8)=>{const _0x50c83a=this['_findChangeIdFromDomTarget'](_0x4e16a8[_0x5937('0x3')]),_0x288808=this[_0x5937('0xd')][_0x5937('0x118')](_0x50c83a);_0x288808?(this[_0x5937('0x100')]={'x':_0x4e16a8[_0x5937('0x11f')]['x'],'y':_0x4e16a8[_0x5937('0x11f')]['y']},_0x288808===this['activeChange']?this['_balloon'][_0x5937('0x8f')]():this[_0x5937('0xd4')]=_0x288808):(this[_0x5937('0x100')]=null,this[_0x5937('0xd4')]=null);});}[_0x5937('0x10a')](_0x22a498){do{const _0x5110ef=_0x22a498[_0x5937('0x18')](_0x5937('0x2a'));if(_0x5110ef)return _0x5110ef;_0x22a498=_0x22a498['parent'];}while(_0x22a498);return null;}[_0x5937('0x91')](){this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x59')](_0x3b3244=>{for(const _0x56233d of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x113')])_0x3b3244[_0x5937('0x11c')](_0x56233d);});}}function et(_0x332c67,_0x44a8cc){return(_0x39042e,_0x195fc6,_0x3d5a84)=>{if(!_0x3d5a84[_0x5937('0xd6')]['test'](_0x195fc6[_0x5937('0x9b')],_0x39042e[_0x5937('0x41')]))return;const _0x29df2a=_0x195fc6['markerRange'][_0x5937('0x1a')](),_0x4f0075=_0x195fc6[_0x5937('0x9b')]['start'],_0x3ce2cf=_0x332c67['model'][_0x5937('0x11d')];let _0x4567b2=null,_0x49cfa0=null,_0x466d26=!0x1,_0x104ca4=!0x1;for(const _0x2bc00b of _0x29df2a){const _0x328dd9=_0x2bc00b[_0x5937('0x8')];_0x466d26=_0x466d26||_0x3ce2cf[_0x5937('0xa6')](_0x328dd9);const _0x52b3fd=_0x3d5a84[_0x5937('0x74')][_0x5937('0x55')](_0x328dd9);if(_0x52b3fd&&_0x52b3fd[_0x5937('0x78')](_0x5937('0x6')))return;_0x5937('0xa')==_0x2bc00b[_0x5937('0x84')]&&(_0x3ce2cf['isBlock'](_0x328dd9)&&!_0x3ce2cf[_0x5937('0xef')](_0x328dd9)&&(_0x328dd9[_0x5937('0x43')]||_0x4f0075[_0x5937('0x87')]?_0x4567b2&&_0x4567b2[_0x5937('0x5c')]==_0x328dd9||(_0x4567b2=_0x328dd9,_0x1a64e8(_0x2bc00b[_0x5937('0x35')]),_0x104ca4=!0x0):_0x49cfa0=_0x49cfa0||_0x2bc00b[_0x5937('0x35')]));}function _0x1a64e8(_0x242c81){const _0x20eb33=_0x3d5a84[_0x5937('0x74')]['toViewPosition'](_0x242c81),_0x3d5faf=_0x3d5a84[_0x5937('0x129')][_0x5937('0x72')](_0x5937('0xd8'),{'class':_0x5937('0x7e')+_0x44a8cc});_0x3d5a84[_0x5937('0x129')][_0x5937('0x6a')](_0x20eb33,_0x3d5faf),_0x3d5a84['mapper']['bindElementToMarker'](_0x3d5faf,_0x195fc6[_0x5937('0x20')]);}_0x466d26||_0x104ca4||!_0x49cfa0||_0x1a64e8(_0x49cfa0);};}export class RestoreRevisionCommand extends _0x676285{constructor(_0x33a5f6){super(_0x33a5f6);const _0x3e3d06=_0x33a5f6[_0x5937('0xa8')]['get'](d);this[_0x5937('0xe6')]=!0x1,this[_0x5937('0x58')](_0x3e3d06,'change:isReady',()=>this[_0x5937('0x68')]()),this[_0x5937('0x58')](_0x3e3d06,'change:isEnabled',()=>this['refresh']());}[_0x5937('0x7d')](){const _0x41c10c=this[_0x5937('0x110')],_0x1d6ea7=_0x41c10c[_0x5937('0xa8')]['get'](d),_0x1380b2=_0x1d6ea7[_0x5937('0x99')]?_0x1d6ea7[_0x5937('0x71')][_0x5937('0x25')]:null;_0x41c10c[_0x5937('0x2c')][_0x5937('0x118')](_0x5937('0xdc'))[_0x5937('0xfc')](_0x1380b2);}[_0x5937('0x68')](){const {isReady:_0x499421,isEnabled:_0x2a5a94}=this['editor'][_0x5937('0xa8')][_0x5937('0x118')](d);this['isEnabled']=_0x499421&&_0x2a5a94;}}export class ShowChangeCommand extends _0x676285{constructor(_0x4c053b,{direction:_0x3afb01}){super(_0x4c053b);const _0x203b14=_0x4c053b[_0x5937('0xa8')][_0x5937('0x118')](d);this[_0x5937('0xe6')]=!0x1,this[_0x5937('0xd0')]='forward'===_0x3afb01?0x1:-0x1,this['listenTo'](_0x203b14,_0x5937('0x92'),()=>this['refresh']()),this[_0x5937('0x58')](_0x203b14,_0x5937('0x5f'),()=>this['refresh']());}[_0x5937('0x7d')](){const _0x2c1005=this[_0x5937('0x110')],_0x1d0107=_0x2c1005[_0x5937('0xa8')][_0x5937('0x118')](d),{isNavigationMode:_0x4ea4da,currentChangeNumber:_0x761f2c}=_0x1d0107;let _0x5bff4e;if(_0x1d0107[_0x5937('0xd4')]=_0x4ea4da?_0x1d0107[_0x5937('0x71')][_0x5937('0x5a')][_0x5937('0x118')](_0x761f2c+this['_step']):_0x1d0107['diff']['changes'][_0x5937('0xc')],_0x1d0107[_0x5937('0xd4')][_0x5937('0xfa')][_0x5937('0x127')])_0x5bff4e=_0x2c1005[_0x5937('0x47')]['view'][_0x5937('0x12b')](_0x1d0107[_0x5937('0xd4')]['rootName']);else{const _0x12abbd=_0x2c1005[_0x5937('0x116')]['markers'][_0x5937('0x118')](_0x5937('0x103')+_0x1d0107[_0x5937('0xd4')]['id']);_0x5bff4e=_0x508032(_0x2c1005[_0x5937('0x47')],_0x12abbd);}_0x4bfb65({'target':_0x5bff4e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3a2bcb,currentChangeNumber:_0x12eca6,numberOfChanges:_0x545457,isReady:_0x752ddf,isEnabled:_0xf94a50}=this[_0x5937('0x110')]['plugins'][_0x5937('0x118')](d);this[_0x5937('0x3e')]=!!(_0xf94a50&&_0x752ddf&&_0x545457)&&(!_0x3a2bcb||(0x1===this[_0x5937('0xd0')]?_0x12eca6<_0x545457-0x1:_0x12eca6>0x0));}}
|
|
23
|
+
const _0x51b7=['changes','isAtStart','vid','isAfter','isOnRoot','hasClass','nodeAfter','keys','children','adapter','requires','processor','schema','findIndex','insert','parse','ck-revision-history-root--active','userId','_update','_threeWayMerge','addRevision','downcastDispatcher','_refreshStartEndIndex','data','indexOf','writer','revision-start','enqueueChange','activeChange','suggestion:','revision-suggestion','isInline','splice','_markInsertions','change:activeView','_markSuggestions','bindElementToMarker','selection','compare','then','side','_markMarkers','createPositionFromPath','isAttached','createRangeIn','WidgetToolbarRepository','forward','_getViewObj','getIndex','attributesBefore','find','checkAttribute','changeId','values','highest','flat','getRoot','filter','string','next','error','shift','ck-suggestion-marker','editor','mouseover','addRoot','push','code','revision','revision-viewer','isSuggestion','set','showPreviousChange','execute','_makeTape','_processTape','addMarker:revision','showStack','_getRevisionsRange','ck-suggestion-marker-','updatePosition','isBefore','unshift','addRevisionData','commands','ck-revision-history-root-','isRemoveSuggestion','slice','getChild','domEvent','item','markerName','affectsData','startIndex','uiElement','parent','get','getWalker','data-change-id','_removeUnsupportedChanges','createUIElement','isIncorrect','toViewElement','addHighlight','_makeModelFromTape','attributes','merge','includes','revision:','elementToAttribute','_revisions','_makeModelFromViewString','insertions','distance','removeAttribute','from','isAdded','enableReadOnlyMode','model','isObject','_getDiff','end','upcast','destroy','backward','maxOffset','domConverter','forceDisabled','change:numberOfChanges','attribute:vid','split','restoreRevision','viewItem','getDomRoot','getRootNames','_removeRevisionMarkers','removeMarker:revision-suggestion','revision-comment:','change:isReady','consume','unbindElementFromMarkerName','change:isEnabled','isLimit','low','ck-suggestion-marker--active','modelRange','getItems','getRevisionRootsAttributes','diff','_balloon','detachRoot','length','newRevisionId','plugins','delete','POSITIVE_INFINITY','add','done','markerNameToElements','test','view','document','getAttribute','revisionHistoryAttachChange','nextSibling','_setConversion','listenTo','_setChanges','elementStart','createRevision','vid_start','revisionHistoryLabel','ck-suggestion-marker-merge','clear','elementEnd','suggestion','_findChangeIdFromDomTarget','activeView','toViewPosition','markersStart','map','wrap','conversion','isAtEnd','isEnabled','getClientRects','createPositionBefore','_joinTapes','concat','createRange','consumable','remove','deletions','start','type','bottom','span','nextPosition','ck-revision-history-root-add','object','_changeIdToChange','sort','previousPosition','comment','attachChange','_fixObsoleteTags','editingDowncast','oldRevisionId','toViewRange','addClass','default','_setDistance','isContent','level','_step','diffData','stop','element','isRemoved','useFillerType','_initInteractions','createAttributeElement','ck-revision-history-root-remove','markerRange','pairId','resolve','all','init','ck-editor__editable__overlay','observeMarkers','_activeViewTarget','removeClass','name','config','getRevision','repository','isBlock','target','isAddSuggestion','isReady','deletion','first','getCustomProperty','change:activeChange','startsWith','_getChangeFromId','restoreRevisionCallback','showNextChange','markerToData','mapper','marked','getRevisionData','markersEnd','rootName','collaboration.channelId','_changeView','attributesAfter','markerToHighlight','removeMarker','RevisionViewer','for','change','numberOfChanges','reconvertMarker','_removeMissingPairs','getAttributes','high','endIndex','text','insertion','_cleanMarkers','markers','_cleanUp','isEqual','forEach','element:pre','revision-suggestion:','left','bind','revisionHistory','hasAttribute','has','_markMismatchedRemovedTags','_sortAndFilterDiffChanges','_appendChild','dataDowncast','editing','ck-suggestion-preview-marker-','right','loadRevisionData','return','vid_end','range','addMarker:revision-suggestion:deletion','RevisionsRepository','pluginName','refresh','index','abs','_data','-new','setAttribute','_getViewForChange','softBreak'];(function(_0x1475bf,_0x51b771){const _0x1eb776=function(_0x10c631){while(--_0x10c631){_0x1475bf['push'](_0x1475bf['shift']());}};_0x1eb776(++_0x51b771);}(_0x51b7,0xb9));const _0x1eb7=function(_0x1475bf,_0x51b771){_0x1475bf=_0x1475bf-0x0;let _0x1eb776=_0x51b7[_0x1475bf];return _0x1eb776;};import{Plugin as _0x4e01f2,Command as _0x1b9488}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x31f9c3}from'ckeditor5/src/utils';import{ContextualBalloon as _0x472063}from'ckeditor5/src/ui';import{DocumentFragment as _0x49eb37,Element as _0x2eb7dd,Text as _0x2bb13a,ViewDocumentFragment as _0x4d64c6,ViewText as _0x4ed475,ViewElement as _0x476983,ViewContainerElement as _0x50fc99,ViewAttributeElement as _0x34ac1e,ViewEmptyElement as _0x3aa67c,ViewRawElement as _0x4b85fc,ViewUIElement as _0x3907ae}from'ckeditor5/src/engine';import{Users as _0x4ed9cb,getMarkerDomElement as _0x549ae7}from'ckeditor5-collaboration/src/collaboration-core';import _0x790867 from'./ui/revisionviewer/changedetailsview';import _0x1749d9 from'./revisionsrepository';import _0x2aab27 from'./changeitem';import{default as _0x62e71a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x522e3c}from'lodash-es';const tt={'c':_0x50fc99,'a':_0x34ac1e,'e':_0x3aa67c,'r':_0x4b85fc,'u':_0x3907ae};export default class d extends _0x4e01f2{static get[_0x1eb7('0x6e')](){return _0x1eb7('0x4a');}static get[_0x1eb7('0x81')](){return[_0x4ed9cb,_0x472063,_0x1749d9];}constructor(_0x272627){super(_0x272627),this[_0x1eb7('0x32')]=this[_0x1eb7('0xb6')][_0x1eb7('0x110')][_0x1eb7('0xd7')](_0x1eb7('0x6d')),this['set'](_0x1eb7('0x93'),null),this['set']('activeView',null),this[_0x1eb7('0x2d')]=null,this['set'](_0x1eb7('0x10b'),null),this[_0x1eb7('0xbe')](_0x1eb7('0x36'),!0x1),this[_0x1eb7('0xbe')](_0x1eb7('0x12f'),!0x0),this['on'](_0x1eb7('0x104'),(_0x4549c4,_0x359220,_0x21fa4d)=>{this['activeChange']=null,this[_0x1eb7('0x128')]=null,this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x4c')](_0x75c0fa=>{for(const _0x1222f2 of this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['document']['roots'])_0x21fa4d?_0x75c0fa[_0x1eb7('0x2e')](_0x1eb7('0x2b'),_0x1222f2):_0x75c0fa[_0x1eb7('0x18')]('ck-editor__editable__overlay',_0x1222f2);});}),this[_0x1eb7('0x5d')]('isNavigationMode')['to'](this,_0x1eb7('0x93'),_0x28b0c1=>null!==_0x28b0c1),this[_0x1eb7('0x5d')]('currentChangeNumber')['to'](this,_0x1eb7('0x36'),this,_0x1eb7('0x10b'),this,_0x1eb7('0x93'),(_0x3f6caf,_0x3a15bf,_0x3dff8b)=>_0x3f6caf&&_0x3dff8b?_0x3a15bf[_0x1eb7('0x77')][_0x1eb7('0xa7')](_0x3dff8b):0x0),this[_0x1eb7('0x5d')](_0x1eb7('0x4d'))['to'](this,_0x1eb7('0x36'),this,'diff',(_0xd7bb7f,_0x2c0235)=>_0xd7bb7f?_0x2c0235[_0x1eb7('0x77')][_0x1eb7('0x10e')]:0x0),this[_0x1eb7('0x46')]=null,this[_0x1eb7('0xf')]=new Map(),this['adapter']=null,this[_0x1eb7('0x10c')]=this[_0x1eb7('0xb6')][_0x1eb7('0x110')][_0x1eb7('0xd7')](_0x472063);}[_0x1eb7('0x2a')](){const _0x2b7cbd=this['editor'],_0x2aaa05=new ShowChangeCommand(_0x2b7cbd,{'direction':_0x1eb7('0xf3')}),_0x4189e8=new ShowChangeCommand(_0x2b7cbd,{'direction':'forward'});(_0x2b7cbd[_0x1eb7('0xcb')][_0x1eb7('0x113')](_0x1eb7('0xbf'),_0x2aaa05),_0x2b7cbd[_0x1eb7('0xcb')][_0x1eb7('0x113')](_0x1eb7('0x3e'),_0x4189e8),_0x2b7cbd[_0x1eb7('0xcb')]['add'](_0x1eb7('0xfa'),new RestoreRevisionCommand(_0x2b7cbd)),this['on'](_0x1eb7('0xf7'),()=>{_0x2aaa05[_0x1eb7('0x6f')](),_0x4189e8[_0x1eb7('0x6f')]();}),this[_0x1eb7('0x11c')](),this[_0x1eb7('0x23')](),_0x2b7cbd[_0x1eb7('0xec')]('revision-viewer'),_0x2b7cbd[_0x1eb7('0x110')][_0x1eb7('0x60')](_0x1eb7('0xa4')))&&_0x2b7cbd['plugins'][_0x1eb7('0xd7')]('WidgetToolbarRepository')[_0x1eb7('0xf6')](_0x1eb7('0xbc'));}async[_0x1eb7('0x42')](_0x2abb0b){await this['loadRevisionData'](_0x2abb0b);const _0x651f04={};for(const _0x519308 in _0x2abb0b[_0x1eb7('0x1e')]){if(_0x2abb0b[_0x1eb7('0x1e')][_0x519308][_0x1eb7('0x13')]&&!_0x2abb0b[_0x1eb7('0x1e')][_0x519308][_0x1eb7('0x13')][_0x1eb7('0xa2')])continue;const _0x240a04=this['_removeRevisionMarkers'](JSON[_0x1eb7('0x86')](_0x2abb0b[_0x1eb7('0x1e')][_0x519308][_0x1eb7('0xe7')])),_0x58c9e6=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['document'],_0x229763=new _0x4d64c6(_0x58c9e6,_0x240a04['map'](_0x221422=>this[_0x1eb7('0xa6')](_0x221422)));this[_0x1eb7('0xb6')]['data'][_0x1eb7('0x82')][_0x1eb7('0x22')](_0x1eb7('0x41')),_0x651f04[_0x519308]=this[_0x1eb7('0xb6')][_0x1eb7('0x8e')][_0x1eb7('0x82')]['toData'](_0x229763),this[_0x1eb7('0xb6')]['data'][_0x1eb7('0x82')][_0x1eb7('0x22')](_0x1eb7('0x19'));}return _0x651f04;}async[_0x1eb7('0x10a')](_0x524a37){await this[_0x1eb7('0x68')](_0x524a37);const _0x4383e1={};for(const _0x11378a in _0x524a37[_0x1eb7('0x1e')])_0x524a37[_0x1eb7('0x1e')][_0x11378a][_0x1eb7('0x13')]&&!_0x524a37[_0x1eb7('0x1e')][_0x11378a][_0x1eb7('0x13')][_0x1eb7('0xa2')]||(_0x4383e1[_0x11378a]=_0x524a37[_0x1eb7('0x1e')][_0x11378a]['attributesAfter']||{});return _0x4383e1;}['_removeRevisionMarkers'](_0x13ed99){return(_0x13ed99=_0x13ed99[_0x1eb7('0xb0')](_0x1ff7b1=>!_0x1ff7b1[_0x1eb7('0x2f')]||_0x1eb7('0x91')!==_0x1ff7b1[_0x1eb7('0x2f')]&&'revision-end'!==_0x1ff7b1['name']))['forEach'](_0x2a6791=>{_0x1eb7('0xb1')!=typeof _0x2a6791&&(_0x2a6791[_0x1eb7('0x7f')]=this[_0x1eb7('0xfe')](_0x2a6791[_0x1eb7('0x7f')]),_0x2a6791['attributes']=_0x2a6791[_0x1eb7('0xe0')]['filter'](_0x195241=>!_0x195241[0x0][_0x1eb7('0x3b')]('data-revision-')));}),_0x13ed99;}async[_0x1eb7('0x9d')](_0x38e920,_0x235c51,_0x51e1cd=!0x1){if(!this[_0x1eb7('0x12f')])return;const _0x2954b6=this[_0x1eb7('0x10b')],_0x110cd9=this[_0x1eb7('0x32')],_0x465954=_0x1eb7('0xb1')==typeof _0x38e920?_0x110cd9['getRevision'](_0x38e920):_0x38e920,_0x2648a4=_0x1eb7('0xb1')==typeof _0x235c51?_0x110cd9['getRevision'](_0x235c51):_0x235c51,_0x4a51f9=_0x465954['id'],_0x55b725=_0x2648a4?_0x2648a4['id']:null;if(!_0x51e1cd&&this[_0x1eb7('0x10b')]&&this[_0x1eb7('0x10b')][_0x1eb7('0x10f')]===_0x4a51f9&&this[_0x1eb7('0x10b')][_0x1eb7('0x16')]===_0x55b725)return Promise[_0x1eb7('0x28')]();this['isReady']=!0x1,this[_0x1eb7('0x128')]=null,this[_0x1eb7('0x93')]=null,this[_0x1eb7('0x10b')]=new _0x62e71a(_0x4a51f9,_0x55b725);const _0x4a6590=this[_0x1eb7('0xc5')](_0x465954,_0x2648a4,!0x0)[_0x1eb7('0x12b')](_0x16a50c=>this[_0x1eb7('0x68')](_0x16a50c));return _0x4a6590['push'](new Promise(_0x2d10e7=>{setTimeout(_0x2d10e7,0x14);})),Promise[_0x1eb7('0x29')](_0x4a6590)['then'](()=>{if(!this[_0x1eb7('0x12f')])return;this[_0x1eb7('0x57')]();const _0x4efc08=this[_0x1eb7('0xef')](_0x4a51f9,_0x55b725);for(const _0x4239e0 of _0x4efc08[_0x1eb7('0x77')])this['_changeIdToChange'][_0x1eb7('0xbe')](_0x4239e0['id'],_0x4239e0);this[_0x1eb7('0xb6')][_0x1eb7('0xed')]['enqueueChange']({'isUndoable':!0x1},_0x3d3744=>{for(const _0x4752c2 of this['editor'][_0x1eb7('0xed')]['document']['getRootNames']())_0x3d3744[_0x1eb7('0x10d')](_0x4752c2);for(const _0x3aff7f of Object[_0x1eb7('0x7e')](_0x4efc08[_0x1eb7('0xed')])){const _0x5a127c=_0x3d3744[_0x1eb7('0xb8')](_0x3aff7f);for(const _0x13c874 of Object[_0x1eb7('0x7e')](_0x4efc08[_0x1eb7('0xe0')][_0x3aff7f]))_0x3d3744[_0x1eb7('0x74')](_0x13c874,_0x4efc08[_0x1eb7('0xe0')][_0x3aff7f][_0x13c874],_0x5a127c);_0x3d3744[_0x1eb7('0x85')](_0x4efc08['model'][_0x3aff7f],_0x5a127c,0x0);}}),this[_0x1eb7('0x10b')][_0x1eb7('0x11e')](this[_0x1eb7('0x62')](_0x4efc08[_0x1eb7('0x77')])),this[_0x1eb7('0x36')]=!0x0;})['catch'](_0x48e0ff=>{console[_0x1eb7('0xb3')](_0x48e0ff),this['_cleanUp'](),_0x2954b6&&(this[_0x1eb7('0x10b')]=_0x2954b6),this[_0x1eb7('0x36')]=!0x0;});}[_0x1eb7('0xca')](_0x1fe596,_0x3f13a2){const _0x4e9391=this[_0x1eb7('0x32')][_0x1eb7('0x120')](_0x1fe596);return _0x4e9391['on'](_0x1eb7('0x89'),(_0x25a5e6,_0x229c1a,_0x5b1ce2)=>_0x3f13a2(_0x229c1a,_0x5b1ce2,_0x4e9391)),this['repository'][_0x1eb7('0x8b')](_0x4e9391),_0x4e9391;}[_0x1eb7('0x68')](_0x3b5ec6){if(!_0x3b5ec6||_0x3b5ec6['diffData'])return Promise[_0x1eb7('0x28')]();{const _0x476553=this[_0x1eb7('0xb6')][_0x1eb7('0x30')][_0x1eb7('0xd7')](_0x1eb7('0x45'));return this[_0x1eb7('0x80')][_0x1eb7('0x31')]({'channelId':_0x476553,'revisionId':_0x3b5ec6['id']})[_0x1eb7('0x9e')](_0x20e10d=>{_0x3b5ec6[_0x1eb7('0x89')]({'diffData':_0x20e10d[_0x1eb7('0x1e')]},!0x0);});}}[_0x1eb7('0x57')](){this[_0x1eb7('0x93')]=null,this[_0x1eb7('0x55')](),this[_0x1eb7('0x46')]&&this[_0x1eb7('0x46')][_0x1eb7('0xf2')](),this['_changeView']=null,this[_0x1eb7('0xf')][_0x1eb7('0x124')](),this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x92')]({'isUndoable':!0x1},_0x5e97c2=>{for(const _0x50bfbb of this['editor'][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xfd')]())_0x5e97c2[_0x1eb7('0x10d')](_0x50bfbb);});}[_0x1eb7('0x62')](_0x29dcdd){const _0x491ca1=[],_0x33b98d=new Map();for(const _0x3a8a25 of this['editor'][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xfd')]()){const _0x36f970=this['editor'][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0xfc')](_0x3a8a25);if(!_0x36f970)continue;const _0x37d6ab=_0x36f970['getClientRects']()['item'](0x0);_0x37d6ab&&(_0x491ca1['push'](_0x3a8a25),_0x33b98d[_0x1eb7('0xbe')](_0x3a8a25,_0x37d6ab));}return _0x491ca1[_0x1eb7('0x10')]((_0x37b8a0,_0x786bb1)=>{const _0x139029=_0x33b98d[_0x1eb7('0xd7')](_0x37b8a0),_0x3c5882=_0x33b98d['get'](_0x786bb1);return _0x139029['y']-_0x3c5882['y']||_0x139029['x']-_0x3c5882['x'];}),(_0x29dcdd=_0x29dcdd[_0x1eb7('0xb0')](_0x38f81f=>_0x491ca1[_0x1eb7('0xe2')](_0x38f81f[_0x1eb7('0x44')])))[_0x1eb7('0x10')]((_0x3758e4,_0x580e31)=>_0x491ca1[_0x1eb7('0x8f')](_0x3758e4['rootName'])-_0x491ca1['indexOf'](_0x580e31[_0x1eb7('0x44')])),_0x29dcdd;}[_0x1eb7('0xc1')](_0xf5b5b9){const _0x3e4def=Array[_0x1eb7('0xea')](_0xf5b5b9['markers'])['filter'](([_0x4833cd,_0x43811b])=>_0x4833cd['startsWith'](_0x1eb7('0xe3'))&&!_0x43811b['isCollapsed']),_0x27c08e=Array[_0x1eb7('0xea')](this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0xa3')](_0xf5b5b9)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3e4def['length'])for(const _0x28e552 of _0x27c08e){const [_0x3b0ccf,_0x3ef4c1]=_0x3e4def[0x0],[,_0x135cc7,_0x1a8551]=_0x3b0ccf['split'](':');if(_0x3ef4c1['end']['isEqual'](_0x28e552[_0x1eb7('0xc')])&&_0x3e4def[_0x1eb7('0xb4')](),(_0x28e552[_0x1eb7('0x11')]['isEqual'](_0x3ef4c1[_0x1eb7('0x8')])||_0x28e552[_0x1eb7('0x11')][_0x1eb7('0x7a')](_0x3ef4c1['start']))&&(_0x1eb7('0x54')==_0x135cc7?_0x28e552[_0x1eb7('0xeb')]={'userId':_0x1a8551}:_0x1eb7('0x37')==_0x135cc7&&(_0x28e552[_0x1eb7('0x21')]={'userId':_0x1a8551})),0x0==_0x3e4def[_0x1eb7('0x10e')])break;}return _0x27c08e;}[_0x1eb7('0x8d')](_0x25fcc7){const _0xc80ba0=new Map();for(let _0x2efae2=0x0;_0x2efae2<_0x25fcc7[_0x1eb7('0x10e')];_0x2efae2++)_0x1eb7('0x53')===_0x25fcc7[_0x2efae2]['type']?(_0x25fcc7[_0x2efae2][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0x2efae2,_0x25fcc7[_0x2efae2]['item']['endIndex']=_0x2efae2):('elementStart'===_0x25fcc7[_0x2efae2]['type']?_0x25fcc7[_0x2efae2]['item'][_0x1eb7('0xd4')]=_0x2efae2:_0x1eb7('0x125')===_0x25fcc7[_0x2efae2][_0x1eb7('0x9')]&&(_0x25fcc7[_0x2efae2][_0x1eb7('0xd1')][_0x1eb7('0x52')]=_0x2efae2),_0xc80ba0[_0x1eb7('0xbe')](_0x25fcc7[_0x2efae2]['id'],_0x2efae2));for(const _0x51b0e1 of _0xc80ba0[_0x1eb7('0xac')]())_0x1eb7('0x11f')===_0x25fcc7[_0x51b0e1][_0x1eb7('0x9')]?_0x25fcc7[_0x51b0e1][_0x1eb7('0xd1')]['endIndex']=_0xc80ba0[_0x1eb7('0xd7')](_0x25fcc7[_0x51b0e1]['pairId']):_0x1eb7('0x125')===_0x25fcc7[_0x51b0e1][_0x1eb7('0x9')]&&(_0x25fcc7[_0x51b0e1][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0xc80ba0['get'](_0x25fcc7[_0x51b0e1][_0x1eb7('0x27')]));}[_0x1eb7('0xc2')](_0x11fe5a){for(let _0x141043=0x0;_0x141043<_0x11fe5a['length'];_0x141043++){if(_0x1eb7('0x11f')===_0x11fe5a[_0x141043][_0x1eb7('0x9')])_0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0x141043;else{if(_0x1eb7('0x125')===_0x11fe5a[_0x141043][_0x1eb7('0x9')]){_0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0x52')]=_0x141043;const _0x2cc802=_0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0xd4')];_0x11fe5a[_0x2cc802]['pairId']=_0x11fe5a[_0x141043]['id'],_0x11fe5a[_0x141043][_0x1eb7('0x27')]=_0x11fe5a[_0x2cc802]['id'];}else _0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0x141043,_0x11fe5a[_0x141043][_0x1eb7('0xd1')]['endIndex']=_0x141043,_0x11fe5a[_0x141043]['pairId']=null;}_0x11fe5a[_0x141043][_0x1eb7('0x12a')]||(_0x11fe5a[_0x141043]['markersStart']=[],_0x11fe5a[_0x141043][_0x1eb7('0x43')]=[]);}}[_0x1eb7('0x98')](_0x36f872,_0x34742f){const _0x69109=_0x36f872[_0x1eb7('0xb0')](_0x49ef05=>!_0x49ef05[_0x1eb7('0xeb')]);for(let _0x2735d9=0x0;_0x2735d9<_0x34742f['length'];_0x2735d9++)_0x34742f[_0x2735d9][_0x1eb7('0xeb')]&&(_0x69109[_0x2735d9][_0x1eb7('0xeb')]=_0x34742f[_0x2735d9][_0x1eb7('0xeb')]);}[_0x1eb7('0xe6')](_0x3d6b10){const _0x4a5e4a=JSON['parse'](_0x3d6b10),_0x3dfcbe=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['document'],_0x1d4aa3=new _0x4d64c6(_0x3dfcbe,_0x4a5e4a[_0x1eb7('0x12b')](_0xf0cbc2=>this[_0x1eb7('0xa6')](_0xf0cbc2)));return this[_0x1eb7('0xb6')][_0x1eb7('0x8e')]['toModel'](_0x1d4aa3);}[_0x1eb7('0xa6')](_0x1b1859){const _0x29d9a5=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x118')];if(_0x1eb7('0xb1')==typeof _0x1b1859)return new _0x4ed475(_0x29d9a5,_0x1b1859);{const _0x69cf3f=_0x1b1859[_0x1eb7('0x7f')][_0x1eb7('0x12b')](_0x296ff0=>this['_getViewObj'](_0x296ff0));return new(tt[_0x1b1859['type']]||_0x476983)(_0x29d9a5,_0x1b1859[_0x1eb7('0x2f')],_0x1b1859['attributes'],_0x69cf3f);}}['_getDiff'](_0x57e2d9,_0x26f332=null){const _0x441c5f=this['repository']['getRevision'](_0x57e2d9),_0x3eb708=_0x26f332?this[_0x1eb7('0x32')][_0x1eb7('0x31')](_0x26f332):null,_0x4a211b=this[_0x1eb7('0xc5')](_0x441c5f,_0x3eb708),_0x1345fe=_0x4a211b[_0x4a211b['length']-0x1],_0x55360f=new Map(),_0x228ad2={'model':{},'attributes':{},'changes':[]},_0x140fcf=new Set(),_0x318614=new Map();for(let _0x13c614=_0x4a211b[_0x1eb7('0x10e')]-0x1;_0x13c614>=0x0;_0x13c614--){const _0x417f03=_0x4a211b[_0x13c614];for(const _0xc62eaf of Object['keys'](_0x417f03[_0x1eb7('0x1e')]))if(_0x417f03[_0x1eb7('0x1e')][_0xc62eaf][_0x1eb7('0x13')]){const _0x52e2b9=_0x417f03[_0x1eb7('0x1e')][_0xc62eaf]['attachChange'];_0x52e2b9[_0x1eb7('0xa2')]?(_0x140fcf['add'](_0xc62eaf),_0x318614[_0x1eb7('0x60')](_0xc62eaf)&&_0x318614[_0x1eb7('0xd7')](_0xc62eaf)[_0x1eb7('0x88')]==_0x52e2b9[_0x1eb7('0x88')]?_0x318614[_0x1eb7('0x111')](_0xc62eaf):_0x318614[_0x1eb7('0xbe')](_0xc62eaf,_0x52e2b9)):_0x318614['has'](_0xc62eaf)?(_0x140fcf['delete'](_0xc62eaf),_0x318614['delete'](_0xc62eaf)):(_0x140fcf['add'](_0xc62eaf),_0x318614[_0x1eb7('0xbe')](_0xc62eaf,_0x52e2b9));}else _0x140fcf[_0x1eb7('0x113')](_0xc62eaf);}for(const _0x3127bb of _0x140fcf){const _0x3f0dc4=_0x318614[_0x1eb7('0x60')](_0x3127bb)&&!_0x318614[_0x1eb7('0xd7')](_0x3127bb)[_0x1eb7('0xa2')];let _0x1fab46=_0x3f0dc4?_0x4a211b[_0x1eb7('0x10e')]-0x1:0x0;const _0x3d2bc1=_0x3f0dc4?-0x1:0x1;for(;_0x4a211b[_0x1fab46];){const _0x1c2696=_0x4a211b[_0x1fab46];if(_0x1c2696[_0x1eb7('0x1e')][_0x3127bb]){const _0x50f9a9=_0x3f0dc4?_0x1c2696[_0x1eb7('0x1e')][_0x3127bb][_0x1eb7('0xa8')]:_0x1c2696[_0x1eb7('0x1e')][_0x3127bb][_0x1eb7('0x47')];_0x228ad2[_0x1eb7('0xe0')][_0x3127bb]=_0x50f9a9?_0x522e3c(_0x50f9a9):{};break;}_0x1fab46+=_0x3d2bc1;}}for(const _0xe2de12 of _0x4a211b){_0xe2de12['model']={};for(const _0xf04d99 of _0xe2de12['authors'])_0x55360f[_0x1eb7('0xbe')](_0xf04d99['id'],_0xf04d99);for(const _0x359f45 of _0x140fcf){const _0x37cc23=_0xe2de12[_0x1eb7('0x1e')][_0x359f45]?_0xe2de12['diffData'][_0x359f45][_0x1eb7('0xe7')]:'[]',_0x1c9ff7=_0xe2de12[_0x1eb7('0x1e')][_0x359f45]?_0xe2de12[_0x1eb7('0x1e')][_0x359f45][_0x1eb7('0x7')]:'[]';_0xe2de12[_0x1eb7('0xed')][_0x359f45]={'insertions':this['_makeModelFromViewString'](_0x37cc23),'deletions':this['_makeModelFromViewString'](_0x1c9ff7)};}}for(const _0x440191 of _0x140fcf){let _0x1a411c=null,_0x2e1d90=0x0;const _0x3b9e10=new Map(Array[_0x1eb7('0xea')](_0x441c5f[_0x1eb7('0xed')][_0x440191][_0x1eb7('0xe7')][_0x1eb7('0x56')])[_0x1eb7('0xb0')](([_0x24c126])=>!_0x24c126[_0x1eb7('0x3b')](_0x1eb7('0xe3'))));let _0x3a6080=0x0;for(const _0x3aa3ff of _0x4a211b){const _0x15a9ab=this[_0x1eb7('0xc1')](_0x3aa3ff[_0x1eb7('0xed')][_0x440191][_0x1eb7('0xe7')]);_0x3aa3ff==_0x441c5f?(_0x1a411c=_0x15a9ab,_0x2e1d90=_0x1a411c[_0x1eb7('0x10e')],_0x1a411c[_0x1eb7('0x59')](_0x419b0c=>{_0x419b0c['id']=_0x3a6080++;}),this['_processTape'](_0x1a411c)):this['_markInsertions'](_0x1a411c,_0x15a9ab);const _0x243db2=_0x1a411c['filter'](_0x575a8b=>!_0x575a8b[_0x1eb7('0xeb')])[_0x1eb7('0x12b')](_0x4f2880=>_0x4f2880['id']);let _0x201a44=0x0;const _0x360635=this[_0x1eb7('0xc1')](_0x3aa3ff[_0x1eb7('0xed')][_0x440191][_0x1eb7('0x7')]);_0x360635[_0x1eb7('0x59')](_0x19bd1e=>{_0x19bd1e[_0x1eb7('0x21')]?_0x19bd1e['id']=_0x2e1d90++:_0x19bd1e['id']=_0x243db2[_0x201a44++];}),this['_processTape'](_0x360635),this[_0x1eb7('0x1a')](_0x1a411c,_0x1eb7('0xeb')),this[_0x1eb7('0x1a')](_0x360635,_0x1eb7('0x21')),_0x3aa3ff==_0x441c5f&&this[_0x1eb7('0xa0')](_0x1a411c,_0x3b9e10),_0x1a411c=this[_0x1eb7('0x2')](_0x1a411c,_0x360635),this[_0x1eb7('0x8d')](_0x1a411c),this[_0x1eb7('0x1a')](_0x1a411c,_0x1eb7('0x21'));}_0x1a411c=_0x1a411c[_0x1eb7('0xb0')](_0x3faedb=>!(_0x3faedb[_0x1eb7('0xeb')]&&_0x3faedb['isRemoved']));const _0x31939a=new Map(_0x1345fe[_0x1eb7('0xed')][_0x440191][_0x1eb7('0x7')][_0x1eb7('0x56')]),_0x121a75=new Set(_0x3b9e10[_0x1eb7('0x7e')]());for(const _0x2c4726 of _0x31939a['keys']())_0x121a75[_0x1eb7('0x111')](_0x2c4726);this[_0x1eb7('0x9a')](_0x1a411c,_0x121a75),this[_0x1eb7('0x14')](_0x1a411c),_0x1a411c=this['_removeMissingPairs'](_0x1a411c),_0x1a411c=this[_0x1eb7('0x61')](_0x1a411c),_0x1a411c=this[_0x1eb7('0xda')](_0x1a411c);const {root:_0x221eb8,changes:_0xe6a864}=this['_makeModelFromTape'](_0x1a411c,_0x55360f,_0x440191);_0x228ad2[_0x1eb7('0xed')][_0x440191]=_0x221eb8;const _0xdad3d4=_0x318614['get'](_0x440191);if(_0xdad3d4){const _0x30efdb=_0x55360f[_0x1eb7('0xd7')](_0xdad3d4[_0x1eb7('0x88')]),_0x3b13f0=new _0x2aab27({'author':_0x30efdb,'type':_0xdad3d4[_0x1eb7('0xa2')]?_0x1eb7('0x113'):_0x1eb7('0x6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x440191});_0xe6a864[_0x1eb7('0xc9')](_0x3b13f0),_0x228ad2[_0x1eb7('0xe0')][_0x440191][_0x1eb7('0x11a')]=_0x3b13f0['id'];}_0x228ad2[_0x1eb7('0x77')]=_0x228ad2[_0x1eb7('0x77')][_0x1eb7('0x3')](_0xe6a864);}return _0x228ad2;}['_markMarkers'](_0x5e4116,_0x54f342){for(let _0x1f2633=0x0;_0x1f2633<_0x5e4116[_0x1eb7('0x10e')];_0x1f2633++)for(const [_0x45fa0f,_0x534d73]of _0x54f342)_0x534d73[_0x1eb7('0x8')][_0x1eb7('0x58')](_0x5e4116[_0x1f2633][_0x1eb7('0x11')])&&_0x5e4116[_0x1f2633][_0x1eb7('0x12a')][_0x1eb7('0xb9')](_0x45fa0f),_0x534d73[_0x1eb7('0xf0')][_0x1eb7('0x58')](_0x5e4116[_0x1f2633][_0x1eb7('0xc')])&&_0x5e4116[_0x1f2633][_0x1eb7('0x43')]['push'](_0x45fa0f);}[_0x1eb7('0x2')](_0x46e0e4,_0x480565){let _0xac20a6=[],_0x78befd=0x0,_0x4a7720=0x0;for(;_0x78befd<_0x46e0e4['length']||_0x4a7720<_0x480565[_0x1eb7('0x10e')];){const _0x370e82=_0x46e0e4[_0x78befd]||{},_0x300634=_0x480565[_0x4a7720]||{};if(_0x370e82['id']==_0x300634['id'])_0x78befd++,_0x4a7720++,_0xac20a6[_0x1eb7('0xb9')](_0x370e82);else{if(_0x300634[_0x1eb7('0x21')]&&_0x370e82['isAdded']){const {commonTape:_0x568930,iEnd:_0x32fd4b,jEnd:_0x2dbe26}=this[_0x1eb7('0x8a')](_0x46e0e4,_0x78befd,_0x480565,_0x4a7720);_0xac20a6=_0xac20a6[_0x1eb7('0x3')](_0x568930),_0x78befd=_0x32fd4b,_0x4a7720=_0x2dbe26;}else _0x300634[_0x1eb7('0x21')]?(_0x4a7720++,_0xac20a6[_0x1eb7('0xb9')](_0x300634)):(_0x78befd++,_0xac20a6[_0x1eb7('0xb9')](_0x370e82));}}return _0xac20a6;}[_0x1eb7('0x9a')](_0x131db0,_0x1b4101){const _0x3837a1=[];for(let _0x17f749=0x0;_0x17f749<_0x131db0[_0x1eb7('0x10e')];_0x17f749++){for(let _0x15d0bc=0x0;_0x15d0bc<_0x131db0[_0x17f749]['markersStart'][_0x1eb7('0x10e')];_0x15d0bc++){const _0x2dad32=_0x131db0[_0x17f749][_0x1eb7('0x12a')][_0x15d0bc];if(!_0x1b4101[_0x1eb7('0x60')](_0x2dad32))continue;const {group:_0x2a7f50,type:_0x2bed8,authorId:_0x4c4021}=_0x857b3(_0x2dad32);_0x1eb7('0x95')!=_0x2a7f50||'insertion'!=_0x2bed8&&_0x1eb7('0x37')!=_0x2bed8||(_0x3837a1[_0x1eb7('0xc9')]({'type':_0x2bed8,'name':_0x2dad32,'userId':_0x4c4021}),_0x131db0[_0x17f749][_0x1eb7('0x12a')][_0x1eb7('0x97')](_0x15d0bc,0x1),_0x15d0bc--);}_0x1fec70(_0x131db0[_0x17f749]);for(let _0x1d94b6=0x0;_0x1d94b6<_0x131db0[_0x17f749][_0x1eb7('0x43')][_0x1eb7('0x10e')];_0x1d94b6++){const _0x3629c6=_0x131db0[_0x17f749][_0x1eb7('0x43')][_0x1d94b6];if(!_0x1b4101[_0x1eb7('0x60')](_0x3629c6))continue;const {group:_0x56b3d9,type:_0x3936cc}=_0x857b3(_0x3629c6);if('revision-suggestion'!=_0x56b3d9||'insertion'!=_0x3936cc&&_0x1eb7('0x37')!=_0x3936cc)continue;_0x131db0[_0x17f749][_0x1eb7('0x43')][_0x1eb7('0x97')](_0x1d94b6,0x1),_0x1d94b6--;const _0x353273=_0x3837a1[_0x1eb7('0x84')](_0x41073c=>_0x41073c['name']==_0x3629c6);_0x353273>-0x1&&_0x3837a1[_0x1eb7('0x97')](_0x353273,0x1);}}function _0x857b3(_0x3217e6){const _0x26170b=_0x3217e6['split'](':');return{'group':_0x26170b[0x0],'type':_0x26170b[0x1],'subType':_0x26170b[_0x1eb7('0x10e')]>=0x5?_0x26170b[0x2]:null,'id':_0x26170b[_0x1eb7('0x10e')]<0x5?_0x26170b[0x2]:_0x26170b[0x3],'authorId':_0x26170b[_0x1eb7('0x10e')]<0x5?_0x26170b[0x3]:_0x26170b[0x4],'markerCount':0x6==_0x26170b[_0x1eb7('0x10e')]?_0x26170b[0x5]:null};}function _0x1fec70(_0x573b22){for(let _0x5bddf7=0x0;_0x5bddf7<_0x3837a1['length'];_0x5bddf7++){if(_0x573b22[_0x1eb7('0xeb')]&&'insertion'==_0x3837a1[_0x5bddf7][_0x1eb7('0x9')])return _0x573b22[_0x1eb7('0x35')]=_0x3837a1[_0x5bddf7],void delete _0x573b22[_0x1eb7('0xeb')];if(!_0x573b22[_0x1eb7('0xeb')]&&!_0x573b22[_0x1eb7('0x21')]&&_0x1eb7('0x37')==_0x3837a1[_0x5bddf7][_0x1eb7('0x9')])return void(_0x573b22['isRemoveSuggestion']=_0x3837a1[_0x5bddf7]);}}}[_0x1eb7('0x1a')](_0x22f484,_0x4a6cd3){let _0x374625=0x0,_0x456c47=!0x1;const _0x1a4a66=new Map();for(const _0x31ec65 of _0x22f484)_0x31ec65[_0x4a6cd3]?_0x456c47&&(_0x374625++,_0x456c47=!0x1):(_0x374625++,_0x456c47=!0x0),_0x1a4a66[_0x1eb7('0xbe')](_0x31ec65['id'],_0x374625);for(let _0x541eba=0x0;_0x541eba<_0x22f484[_0x1eb7('0x10e')];_0x541eba++){if('isRemoved'==_0x4a6cd3&&_0x22f484[_0x541eba][_0x1eb7('0xeb')]||_0x1eb7('0xeb')==_0x4a6cd3&&_0x22f484[_0x541eba][_0x1eb7('0x21')])continue;if(_0x1eb7('0x53')==_0x22f484[_0x541eba][_0x1eb7('0x9')]){_0x22f484[_0x541eba][_0x1eb7('0xe8')]=0x0;continue;}const _0x5d8ddb=_0x1a4a66[_0x1eb7('0xd7')](_0x22f484[_0x541eba][_0x1eb7('0x27')]),_0x5f5bfa=_0x1a4a66[_0x1eb7('0xd7')](_0x22f484[_0x541eba]['id']);_0x22f484[_0x541eba][_0x1eb7('0xe8')]=_0x5d8ddb-_0x5f5bfa;}}[_0x1eb7('0xc5')](_0x5f264f,_0xe50a14,_0x14a438=!0x1){const _0x55b4e1=[];let _0x1535cf=this[_0x1eb7('0x32')][_0x1eb7('0xa7')](_0x5f264f),_0x5db581=this['repository'][_0x1eb7('0xa7')](_0xe50a14);for(-0x1==_0x5db581&&(_0x5db581=this[_0x1eb7('0x32')][_0x1eb7('0xe5')][_0x1eb7('0x10e')],_0x14a438=!0x1);_0x1535cf<_0x5db581;)_0x55b4e1['push'](this[_0x1eb7('0x32')][_0x1eb7('0x31')](_0x1535cf)),_0x1535cf++;return _0x14a438&&_0x55b4e1[_0x1eb7('0xb9')](this[_0x1eb7('0x32')][_0x1eb7('0x31')](_0x1535cf)),_0x55b4e1;}[_0x1eb7('0x8a')](_0x57d954,_0x11402c,_0x437414,_0x2fec74){const _0x4b8838=this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x83')];let _0x19a6a9=_0x11402c;for(;_0x57d954[_0x19a6a9]&&_0x57d954[_0x19a6a9][_0x1eb7('0xeb')];)_0x19a6a9++;let _0x546921=_0x2fec74;for(;_0x437414[_0x546921]&&_0x437414[_0x546921][_0x1eb7('0x21')];)_0x546921++;_0xf76aee(_0x57d954,_0x11402c,_0x19a6a9),_0xf76aee(_0x437414,_0x2fec74,_0x546921);const _0x176aae=_0x437414[_0x1eb7('0xce')](_0x2fec74,_0x546921)[_0x1eb7('0x3')](_0x57d954[_0x1eb7('0xce')](_0x11402c,_0x19a6a9));return _0x176aae[_0x1eb7('0x10')]((_0x55ad40,_0x447af7)=>_0x55ad40[_0x1eb7('0x9f')]!=_0x447af7[_0x1eb7('0x9f')]?_0x55ad40[_0x1eb7('0x9f')]-_0x447af7[_0x1eb7('0x9f')]:_0x55ad40['level']!=_0x447af7[_0x1eb7('0x1c')]?_0x55ad40[_0x1eb7('0x1c')]-_0x447af7[_0x1eb7('0x1c')]:_0x55ad40[_0x1eb7('0xe8')]!=_0x447af7['distance']?_0x447af7['distance']-_0x55ad40['distance']:!!_0x55ad40[_0x1eb7('0xeb')]!=!!_0x447af7[_0x1eb7('0xeb')]?-0x1==_0x55ad40['side']||0x0==_0x55ad40[_0x1eb7('0x9f')]?_0x55ad40[_0x1eb7('0xeb')]?-0x1:0x1:_0x55ad40[_0x1eb7('0xeb')]?0x1:-0x1:_0x55ad40[_0x1eb7('0x70')]-_0x447af7['index']),{'commonTape':_0x176aae,'iEnd':_0x19a6a9,'jEnd':_0x546921};function _0xf76aee(_0x410234,_0x4aeed3,_0x1b26a1){let _0x7ac168=-0x1,_0x33c0f5=Number[_0x1eb7('0x112')],_0x1b3714=!0x0;for(let _0x550475=_0x4aeed3;_0x550475<_0x1b26a1;_0x550475++)if(_0x4b8838[_0x1eb7('0x96')](_0x410234[_0x550475][_0x1eb7('0xd1')])||(_0x1b3714=!0x1),_0x410234[_0x550475][_0x1eb7('0xd1')][_0x1eb7('0xd4')]<_0x4aeed3&&(_0x7ac168=_0x550475),_0x410234[_0x550475][_0x1eb7('0xd1')][_0x1eb7('0x52')]>=_0x1b26a1){_0x33c0f5=_0x550475;break;}_0x1b3714&&(_0x7ac168=_0x1b26a1-0x1);for(let _0x5c5c9b=_0x4aeed3;_0x5c5c9b<_0x1b26a1;_0x5c5c9b++)_0x410234[_0x5c5c9b][_0x1eb7('0x9f')]=_0x5c5c9b<=_0x7ac168?-0x1:_0x5c5c9b<_0x33c0f5?0x0:0x1,_0x410234[_0x5c5c9b][_0x1eb7('0x70')]=_0x5c5c9b;let _0x1296b5=0x0;for(let _0x9e2a87=_0x4aeed3;_0x9e2a87<=_0x7ac168;_0x9e2a87++)0x0==_0x410234[_0x9e2a87][_0x1eb7('0xe8')]?_0x410234[_0x9e2a87][_0x1eb7('0x1c')]=_0x1296b5:(_0x1296b5++,_0x410234[_0x9e2a87][_0x1eb7('0x1c')]=_0x1296b5,_0x1296b5++);for(let _0x38dbe8=_0x4aeed3;_0x38dbe8<_0x1b26a1;_0x38dbe8++)0x0==_0x410234[_0x38dbe8][_0x1eb7('0x9f')]&&(_0x410234[_0x38dbe8][_0x1eb7('0x1c')]=_0x1296b5);_0x1296b5=0x0;for(let _0x168b3e=_0x1b26a1-0x1;_0x168b3e>=_0x33c0f5;_0x168b3e--)0x0==_0x410234[_0x168b3e][_0x1eb7('0xe8')]?_0x410234[_0x168b3e][_0x1eb7('0x1c')]=_0x1296b5:(_0x1296b5--,_0x410234[_0x168b3e][_0x1eb7('0x1c')]=_0x1296b5,_0x1296b5--);}}['_fixObsoleteTags'](_0x58ee32){const _0x33e6ee=new Map(),_0x5061cb=this['editor'][_0x1eb7('0xed')][_0x1eb7('0x83')];for(let _0x4dc266=0x1;_0x4dc266<_0x58ee32[_0x1eb7('0x10e')];_0x4dc266++){let _0x4016fb,_0x10493c,_0x75edc6;const _0x55343c=_0x58ee32[_0x4dc266],_0x2d89ba=_0x58ee32[_0x4dc266-0x1];if(_0x1eb7('0x53')==_0x55343c[_0x1eb7('0x9')])continue;if(_0x55343c[_0x1eb7('0x9')]!=_0x2d89ba[_0x1eb7('0x9')])continue;if(!_0x5061cb[_0x1eb7('0x33')](_0x2d89ba['item'])||_0x5061cb[_0x1eb7('0x105')](_0x2d89ba['item']))continue;if(!_0x5061cb['isBlock'](_0x55343c['item'])||_0x5061cb[_0x1eb7('0x105')](_0x55343c[_0x1eb7('0xd1')]))continue;if((_0x58ee32[_0x4dc266][_0x1eb7('0xeb')]||_0x58ee32[_0x4dc266][_0x1eb7('0x35')])&&_0x58ee32[_0x4dc266-0x1]['isRemoved'])_0x4016fb=_0x58ee32[_0x4dc266],_0x10493c=_0x58ee32[_0x4dc266-0x1],_0x75edc6=_0x4dc266-0x1;else{if(!_0x58ee32[_0x4dc266][_0x1eb7('0x21')]||!_0x58ee32[_0x4dc266-0x1][_0x1eb7('0xeb')]&&!_0x58ee32[_0x4dc266-0x1][_0x1eb7('0x35')])continue;_0x4016fb=_0x58ee32[_0x4dc266-0x1],_0x10493c=_0x58ee32[_0x4dc266],_0x75edc6=_0x4dc266;}const _0x4bae3e=_0x4016fb[_0x1eb7('0x1c')]==_0x10493c[_0x1eb7('0x1c')],_0x1d46d0=Math[_0x1eb7('0x71')](_0x4016fb[_0x1eb7('0x1c')])<Math[_0x1eb7('0x71')](_0x10493c[_0x1eb7('0x1c')])&&0x0==_0x10493c['distance'];(_0x4bae3e||_0x1d46d0)&&(_0x33e6ee['set'](_0x10493c['id'],_0x4016fb['id']),_0x58ee32['splice'](_0x75edc6,0x1),_0x4dc266--,_0x4016fb[_0x1eb7('0xeb')]=!0x1);}for(let _0x125eb4=0x0;_0x125eb4<_0x58ee32[_0x1eb7('0x10e')];_0x125eb4++)_0x33e6ee[_0x1eb7('0x60')](_0x58ee32[_0x125eb4][_0x1eb7('0x27')])&&(_0x58ee32[_0x125eb4]['pairId']=_0x33e6ee[_0x1eb7('0xd7')](_0x58ee32[_0x125eb4][_0x1eb7('0x27')]));}[_0x1eb7('0x4f')](_0x540b04){const _0x27c133=new Set(_0x540b04[_0x1eb7('0x12b')](_0x482ba7=>_0x482ba7['id']));for(let _0x5ab089=0x0;_0x5ab089<_0x540b04[_0x1eb7('0x10e')];_0x5ab089++)_0x27c133[_0x1eb7('0x60')](_0x540b04[_0x5ab089][_0x1eb7('0x27')])||0x0==_0x540b04[_0x5ab089][_0x1eb7('0xe8')]||(_0x540b04[_0x5ab089]['isIncorrect']=!0x0);return _0x540b04[_0x1eb7('0xb0')](_0x36d3ac=>!_0x36d3ac[_0x1eb7('0xdc')]);}[_0x1eb7('0x61')](_0x4d75b8){const _0xbb2b6=new Set();for(let _0x528d4c=0x0;_0x528d4c<_0x4d75b8[_0x1eb7('0x10e')];_0x528d4c++){if(_0xbb2b6[_0x1eb7('0x60')](_0x4d75b8[_0x528d4c]['id'])&&_0x4d75b8[_0x528d4c][_0x1eb7('0x21')]&&(_0x4d75b8[_0x528d4c]['isIncorrect']=!0x0),_0x4d75b8[_0x528d4c][_0x1eb7('0xdc')])continue;if(0x0==_0x4d75b8[_0x528d4c][_0x1eb7('0xe8')])continue;if(_0x1eb7('0x11f')!=_0x4d75b8[_0x528d4c]['type'])continue;if(null==_0x4d75b8[_0x528d4c][_0x1eb7('0x27')])continue;let _0x28db6e=_0x528d4c+0x1,_0x411a26=0x0;for(;_0x4d75b8[_0x28db6e]['id']!=_0x4d75b8[_0x528d4c]['pairId'];)_0x1eb7('0x11f')==_0x4d75b8[_0x28db6e]['type']?_0x411a26++:_0x1eb7('0x125')==_0x4d75b8[_0x28db6e][_0x1eb7('0x9')]&&_0x411a26--,_0x28db6e++;if(0x0!=_0x411a26){if(_0x4d75b8[_0x528d4c]['isRemoved'])_0x4d75b8[_0x528d4c][_0x1eb7('0xdc')]=!0x0;else for(;_0x28db6e!=_0x528d4c;)_0x4d75b8[_0x28db6e]['isRemoved']&&0x0!=_0x4d75b8[_0x28db6e][_0x1eb7('0xe8')]&&(_0x4d75b8[_0x28db6e][_0x1eb7('0xdc')]=!0x0,_0xbb2b6['add'](_0x4d75b8[_0x28db6e][_0x1eb7('0x27')])),_0x28db6e--;}}return _0x4d75b8[_0x1eb7('0xb0')](_0x102298=>!_0x102298[_0x1eb7('0xdc')]);}[_0x1eb7('0xda')](_0x767e94){const _0x510e3c=this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x83')];for(let _0x29a065=0x0;_0x29a065<_0x767e94[_0x1eb7('0x10e')];_0x29a065++){if(!(_0x767e94[_0x29a065][_0x1eb7('0xeb')]||_0x767e94[_0x29a065]['isAddSuggestion']||_0x767e94[_0x29a065][_0x1eb7('0x21')]||_0x767e94[_0x29a065][_0x1eb7('0xcd')]))continue;if(0x0==_0x767e94[_0x29a065][_0x1eb7('0xe8')])continue;const _0x22337f=_0x767e94[_0x29a065][_0x1eb7('0xd1')];_0x510e3c[_0x1eb7('0x33')](_0x22337f)||_0x510e3c['isLimit'](_0x22337f)||(_0x767e94[_0x29a065][_0x1eb7('0xeb')]&&delete _0x767e94[_0x29a065]['isAdded'],_0x767e94[_0x29a065]['isAddSuggestion']&&delete _0x767e94[_0x29a065][_0x1eb7('0x35')],_0x767e94[_0x29a065][_0x1eb7('0xcd')]&&delete _0x767e94[_0x29a065][_0x1eb7('0xcd')],_0x767e94[_0x29a065][_0x1eb7('0x21')]&&(_0x767e94[_0x29a065][_0x1eb7('0xdc')]=!0x0));}return _0x767e94['filter'](_0x18e01f=>!_0x18e01f[_0x1eb7('0xdc')]);}[_0x1eb7('0xdf')](_0x4690f8,_0x7a52f7,_0x4cb3b1){const _0x2ae210=new _0x49eb37(),_0x5783e7=[],_0x2d94bf=new Map(),_0x47f322=this['editor'][_0x1eb7('0xed')],_0x47026a=_0x47f322[_0x1eb7('0x83')],_0x4ffcae=[_0x2ae210],_0x3cc630={},_0x4d6b22={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f8217=null;const _0x121aba=[0x0];for(let _0x58fa43=0x0;_0x58fa43<_0x4690f8[_0x1eb7('0x10e')];_0x58fa43++){let _0x369712,_0x408bfb;if(_0x1eb7('0x11f')===_0x4690f8[_0x58fa43][_0x1eb7('0x9')]){_0x369712=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba);const _0x4721b7=new _0x2eb7dd(_0x4690f8[_0x58fa43]['item'][_0x1eb7('0x2f')],_0x4690f8[_0x58fa43][_0x1eb7('0xd1')][_0x1eb7('0x50')]());_0x4ffcae[0x0][_0x1eb7('0x63')](_0x4721b7),_0x121aba[_0x1eb7('0xb9')](0x0),_0x4ffcae[_0x1eb7('0xc9')](_0x4721b7),_0x408bfb=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba),_0x3f8217=null;}else{if(_0x1eb7('0x125')===_0x4690f8[_0x58fa43]['type'])_0x4ffcae[_0x1eb7('0xb4')](),_0x369712=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba),_0x121aba['pop'](),_0x121aba[_0x121aba['length']-0x1]++,_0x408bfb=_0x47f322['createPositionFromPath'](_0x2ae210,_0x121aba),_0x3f8217=null;else{if(_0x369712=_0x47f322['createPositionFromPath'](_0x2ae210,_0x121aba),_0x3f8217&&_0x2b6cbe(_0x3f8217,_0x4690f8[_0x58fa43][_0x1eb7('0xd1')]))_0x3f8217[_0x1eb7('0x72')]+=_0x4690f8[_0x58fa43]['item'][_0x1eb7('0x8e')];else{const _0x543d56=new _0x2bb13a(_0x4690f8[_0x58fa43][_0x1eb7('0xd1')][_0x1eb7('0x8e')],_0x4690f8[_0x58fa43]['item'][_0x1eb7('0x50')]());_0x4ffcae[0x0][_0x1eb7('0x63')](_0x543d56),_0x3f8217=_0x543d56;}_0x121aba[_0x121aba[_0x1eb7('0x10e')]-0x1]+=_0x4690f8[_0x58fa43][_0x1eb7('0xd1')]['offsetSize'],_0x408bfb=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba);}}for(const _0x5c5349 of _0x4690f8[_0x58fa43][_0x1eb7('0x12a')])_0x2d94bf[_0x1eb7('0xbe')](_0x5c5349,{'start':_0x369712,'end':null});_0x4896ae(_0x1eb7('0xcd'),_0x58fa43,_0x369712,_0x408bfb),_0x4896ae(_0x1eb7('0x35'),_0x58fa43,_0x369712,_0x408bfb),_0x4896ae(_0x1eb7('0x21'),_0x58fa43,_0x369712,_0x408bfb),_0x4896ae('isAdded',_0x58fa43,_0x369712,_0x408bfb);for(const _0x42206d of _0x4690f8[_0x58fa43][_0x1eb7('0x43')]){_0x2d94bf[_0x1eb7('0xd7')](_0x42206d)[_0x1eb7('0xf0')]=_0x408bfb;}}for(const [_0x22e508,_0x132309]of _0x2d94bf){const _0xe0ae0a=this[_0x1eb7('0xb6')]['model'][_0x1eb7('0x4')](_0x132309[_0x1eb7('0x8')],_0x132309[_0x1eb7('0xf0')]);_0x2ae210[_0x1eb7('0x56')][_0x1eb7('0xbe')](_0x22e508,_0xe0ae0a);}return _0x5783e7[_0x1eb7('0x10')]((_0x112159,_0x308e23)=>{const _0x25ee72=_0x2ae210[_0x1eb7('0x56')][_0x1eb7('0xd7')](_0x1eb7('0xe3')+_0x112159['id']),_0x5737d4=_0x2ae210['markers'][_0x1eb7('0xd7')](_0x1eb7('0xe3')+_0x308e23['id']);return _0x25ee72[_0x1eb7('0x8')][_0x1eb7('0xc8')](_0x5737d4[_0x1eb7('0x8')])?-0x1:_0x25ee72[_0x1eb7('0x8')][_0x1eb7('0x7a')](_0x5737d4[_0x1eb7('0x8')])?0x1:_0x25ee72[_0x1eb7('0xf0')][_0x1eb7('0xc8')](_0x5737d4[_0x1eb7('0xf0')])?-0x1:_0x25ee72[_0x1eb7('0xf0')]['isAfter'](_0x5737d4[_0x1eb7('0xf0')])?0x1:_0x1eb7('0x113')===_0x112159[_0x1eb7('0x9')]?-0x1:0x1;}),{'root':_0x2ae210,'changes':_0x5783e7};function _0x4896ae(_0x141532,_0x3e100e,_0x46fcf5,_0x429a64){const _0x375559=!!_0x4690f8[_0x3e100e][_0x141532],_0x24aa14=_0x375559?_0x4690f8[_0x3e100e][_0x141532][_0x1eb7('0x88')]:null,_0x252d3e=_0x3e100e===_0x4690f8[_0x1eb7('0x10e')]-0x1,_0x2742a9=_0x4d6b22[_0x141532][0x0],_0x465799=_0x47026a[_0x1eb7('0xee')](_0x4690f8[_0x3e100e][_0x1eb7('0xd1')]);!_0x3cc630[_0x141532]&&_0x375559?_0x3cc630[_0x141532]={'start':_0x46fcf5,'tapeItem':_0x4690f8[_0x3e100e],'userId':_0x24aa14,'type':_0x141532}:_0x3cc630[_0x141532]&&!_0x375559?(_0x3cc630[_0x141532][_0x1eb7('0xf0')]=_0x46fcf5,_0x170ca3(_0x3cc630[_0x141532]),_0x3cc630[_0x141532]=null):_0x3cc630[_0x141532]&&_0x375559&&_0x3cc630[_0x141532][_0x1eb7('0x88')]!==_0x24aa14&&(_0x3cc630[_0x141532]['end']=_0x46fcf5,_0x2742a9&&_0x2742a9[_0x1eb7('0x88')]===_0x3cc630[_0x141532][_0x1eb7('0x88')]||_0x170ca3(_0x3cc630[_0x141532]),_0x3cc630[_0x141532]={'start':_0x46fcf5,'tapeItem':_0x4690f8[_0x3e100e],'userId':_0x24aa14,'type':_0x141532}),_0x3cc630[_0x141532]&&_0x465799&&(_0x1eb7('0x11f')!==_0x4690f8[_0x3e100e][_0x1eb7('0x9')]||_0x2742a9&&_0x2742a9[_0x1eb7('0x88')]===_0x24aa14||_0x4d6b22[_0x141532]['unshift']({'userId':_0x24aa14,'object':_0x4690f8[_0x3e100e][_0x1eb7('0xd1')],'change':_0x3cc630[_0x141532]}),_0x1eb7('0x125')===_0x4690f8[_0x3e100e][_0x1eb7('0x9')]&&_0x2742a9&&_0x2742a9[_0x1eb7('0xe')]===_0x4690f8[_0x3e100e][_0x1eb7('0xd1')]&&(_0x4d6b22[_0x141532][_0x1eb7('0xb4')](),_0x3cc630[_0x141532]=_0x2742a9['change'])),_0x3cc630[_0x141532]&&_0x252d3e&&(_0x3cc630[_0x141532][_0x1eb7('0xf0')]=_0x429a64,_0x170ca3(_0x3cc630[_0x141532]),_0x3cc630[_0x141532]=null);}function _0x170ca3({start:_0x47728c,end:_0x321663,tapeItem:_0x46440f,userId:_0x43a614,type:_0x1f62c9}){const _0x29b7a3=_0x46440f['item'],_0x1fa535=_0x47f322[_0x1eb7('0x83')][_0x1eb7('0x33')](_0x29b7a3)&&!_0x47f322[_0x1eb7('0x83')][_0x1eb7('0x105')](_0x29b7a3),_0xa7c6bd=_0x47728c[_0x1eb7('0x7d')]==_0x321663['parent']&&_0x321663[_0x1eb7('0x78')];if(_0x1fa535&&_0xa7c6bd)return;const _0x586bff=_0x47f322['createRange'](_0x47728c,_0x321663),_0x590a15=_0x7a52f7[_0x1eb7('0xd7')](_0x43a614),_0x13f81e=new _0x2aab27({'author':_0x590a15,'type':'isAdded'==_0x1f62c9||_0x1eb7('0x35')==_0x1f62c9?'add':'remove','data':{'isSuggestion':_0x1eb7('0x35')==_0x1f62c9||_0x1eb7('0xcd')==_0x1f62c9},'createdAt':new Date(),'rootName':_0x4cb3b1});_0x5783e7[_0x1eb7('0xb9')](_0x13f81e),_0x2ae210[_0x1eb7('0x56')][_0x1eb7('0xbe')](_0x1eb7('0xe3')+_0x13f81e['id'],_0x586bff);}function _0x2b6cbe(_0x24ee63,_0x40eb58){const _0x5f26bf=_0x24ee63[_0x1eb7('0x50')](),_0x4ce396=_0x40eb58[_0x1eb7('0x50')]();for(const _0x2713dd of _0x5f26bf){if(_0x2713dd[0x1]!==_0x40eb58[_0x1eb7('0x119')](_0x2713dd[0x0]))return!0x1;_0x4ce396['next']();}return _0x4ce396[_0x1eb7('0xb2')]()[_0x1eb7('0x114')];}}[_0x1eb7('0x11c')](){this[_0x1eb7('0xb6')][_0x1eb7('0x12d')]['for'](_0x1eb7('0xf1'))['dataToMarker']({'view':_0x1eb7('0xbb')}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x15'))[_0x1eb7('0x48')]({'model':_0x1eb7('0xbb'),'view':_0x41ad02=>{const _0x9de775=_0x41ad02['markerName'][_0x1eb7('0xf9')](':')[0x1],_0x42cc32=this[_0x1eb7('0x3c')](_0x9de775);if(!_0x42cc32)return null;const _0x256e7f=_0x1eb7('0x113')==_0x42cc32['type']?_0x1eb7('0x54'):_0x1eb7('0x37'),_0x55b0dc=[_0x1eb7('0xb5'),'ck-suggestion-marker-'+_0x256e7f];return _0x42cc32[_0x1eb7('0x8e')][_0x1eb7('0xbd')]&&_0x55b0dc[_0x1eb7('0xb9')](_0x1eb7('0xc6')+_0x256e7f+'-new'),this[_0x1eb7('0x93')]==_0x42cc32&&_0x55b0dc['push'](_0x1eb7('0x107')),{'classes':_0x55b0dc,'attributes':{'data-change-id':_0x9de775}};}}),this[_0x1eb7('0xb6')]['conversion']['for'](_0x1eb7('0xf1'))[_0x1eb7('0x113')](_0x4b00b5=>{_0x4b00b5['on'](_0x1eb7('0x5a'),(_0x4769e3,_0xbe2384,_0x4843f3)=>{const _0x42b3e0=_0xbe2384[_0x1eb7('0xfb')][_0x1eb7('0xcf')](0x0);if(!_0x42b3e0||!_0x42b3e0['is'](_0x1eb7('0x20'),_0x1eb7('0xba')))return;if(!_0x4843f3[_0x1eb7('0x5')][_0x1eb7('0x102')](_0x42b3e0,{'attributes':[_0x1eb7('0x121'),_0x1eb7('0x6a')]}))return;const _0x286ba2=_0xbe2384['modelRange'][_0x1eb7('0x8')][_0x1eb7('0x7d')];_0x4843f3['writer'][_0x1eb7('0x74')](_0x1eb7('0x121'),_0x42b3e0[_0x1eb7('0x119')](_0x1eb7('0x121')),_0x286ba2),_0x4843f3['writer'][_0x1eb7('0x74')]('vid_end',_0x42b3e0[_0x1eb7('0x119')]('vid_end'),_0x286ba2);},{'priority':'low'});}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0xf1'))['add'](_0x2fc75a=>{_0x2fc75a['on'](_0x1eb7('0x20'),(_0x2e5f4f,_0x5eb9e3,_0x6c6391)=>{if(!_0x6c6391['consumable'][_0x1eb7('0x102')](_0x5eb9e3[_0x1eb7('0xfb')],{'attributes':[_0x1eb7('0x121'),_0x1eb7('0x6a')]}))return;if(_0x5eb9e3[_0x1eb7('0x108')]['isCollapsed'])return;const _0x1757c2=_0x5eb9e3[_0x1eb7('0x108')][_0x1eb7('0x8')][_0x1eb7('0x7d')];_0x1757c2[_0x1eb7('0x5f')]('vid_start')||_0x1757c2[_0x1eb7('0x5f')](_0x1eb7('0x79'))||(_0x6c6391[_0x1eb7('0x90')][_0x1eb7('0x74')](_0x1eb7('0x121'),_0x5eb9e3[_0x1eb7('0xfb')][_0x1eb7('0x119')](_0x1eb7('0x121')),_0x1757c2),_0x6c6391[_0x1eb7('0x90')][_0x1eb7('0x74')]('vid_end',_0x5eb9e3[_0x1eb7('0xfb')][_0x1eb7('0x119')](_0x1eb7('0x6a')),_0x1757c2));},{'priority':_0x1eb7('0x106')});}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0xf1'))[_0x1eb7('0xe4')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x1eb7('0x79'),'value':_0x4676af=>_0x4676af[_0x1eb7('0x119')](_0x1eb7('0x79'))}}),this[_0x1eb7('0xb6')][_0x1eb7('0xed')]['schema']['on'](_0x1eb7('0xaa'),(_0x489260,[,_0x56b13f])=>{['vid_start','vid_end','vid'][_0x1eb7('0xe2')](_0x56b13f)&&(_0x489260[_0x1eb7('0x69')]=!0x0,_0x489260[_0x1eb7('0x1f')]());},{'priority':_0x1eb7('0xad')}),this[_0x1eb7('0xb6')]['conversion'][_0x1eb7('0x4b')](_0x1eb7('0x64'))[_0x1eb7('0x113')](_0x37bd1b=>{_0x37bd1b['on'](_0x1eb7('0xf8'),(_0x8ca9d1,_0x4eb043,_0x59ff39)=>{if('\x20'!=_0x4eb043[_0x1eb7('0xd1')][_0x1eb7('0x8e')]||_0x4eb043[_0x1eb7('0xd1')][_0x1eb7('0xd6')][_0x1eb7('0xf4')]>0x1)return;if(!_0x59ff39['consumable'][_0x1eb7('0x102')](_0x4eb043[_0x1eb7('0xd1')],_0x8ca9d1['name']))return;const _0x47191b=_0x59ff39[_0x1eb7('0x90')],_0x958f13=_0x59ff39[_0x1eb7('0x40')][_0x1eb7('0x17')](_0x4eb043[_0x1eb7('0x6b')]);_0x47191b[_0x1eb7('0x12c')](_0x958f13,_0x47191b[_0x1eb7('0x24')](_0x1eb7('0xb')));});}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x64'))[_0x1eb7('0x3f')]({'model':_0x1eb7('0xbb')}),this[_0x1eb7('0xb6')]['editing'][_0x1eb7('0x8c')]['on']('addMarker:revision',function(_0x2a89f6){const _0x5386a0=_0x2a89f6[_0x1eb7('0x110')][_0x1eb7('0xd7')](_0x1eb7('0x4a'));return(_0x37a5c5,_0x9f08f9,_0xe02b0a)=>{const _0x349a1e=_0x9f08f9[_0x1eb7('0xd2')][_0x1eb7('0xf9')](':')[0x1],_0x63572c=_0x5386a0[_0x1eb7('0x3c')](_0x349a1e);if(!_0x63572c)return null;const _0x4e4498=_0x1eb7('0x113')==_0x63572c['type']?_0x1eb7('0xf9'):_0x1eb7('0xe1');if(!_0xe02b0a['consumable'][_0x1eb7('0x116')](_0x9f08f9['markerRange'],_0x37a5c5[_0x1eb7('0x2f')]))return;const _0xe940c3=_0x9f08f9['markerRange'][_0x1eb7('0xd8')](),_0x2ad2c4=_0x9f08f9[_0x1eb7('0x26')][_0x1eb7('0x8')],_0x49167b=_0x2a89f6[_0x1eb7('0xed')][_0x1eb7('0x83')];let _0x3a2195=null,_0x2910b0=null,_0x217d9e=!0x1,_0x26b795=!0x1;for(const _0x3b7546 of _0xe940c3){const _0xd3d08d=_0x3b7546[_0x1eb7('0xd1')];_0x217d9e=_0x217d9e||_0x49167b[_0x1eb7('0x1b')](_0xd3d08d);const _0x38256e=_0xe02b0a[_0x1eb7('0x40')][_0x1eb7('0xdd')](_0xd3d08d);if(_0x38256e&&_0x38256e[_0x1eb7('0x39')](_0x1eb7('0xde')))return;'elementEnd'==_0x3b7546[_0x1eb7('0x9')]&&(_0x49167b[_0x1eb7('0x33')](_0xd3d08d)&&!_0x49167b[_0x1eb7('0x105')](_0xd3d08d)&&(_0xd3d08d['nextSibling']||_0x2ad2c4[_0x1eb7('0x12e')]?_0x3a2195&&_0x3a2195[_0x1eb7('0xd6')]==_0xd3d08d||(_0x3a2195=_0xd3d08d,_0x39e0c9(_0x3b7546[_0x1eb7('0x11')]),_0x26b795=!0x0):_0x2910b0=_0x2910b0||_0x3b7546['previousPosition']));}function _0x39e0c9(_0x5ea56e){const _0xd75b9b=_0xe02b0a[_0x1eb7('0x90')][_0x1eb7('0xdb')](_0x1eb7('0xb'),{'class':_0x1eb7('0xc6')+_0x4e4498}),_0x185295=_0xe02b0a['mapper'][_0x1eb7('0x129')](_0x5ea56e);_0x63572c[_0x1eb7('0x8e')][_0x1eb7('0xbd')]&&_0xe02b0a[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0xc6')+_0x4e4498+_0x1eb7('0x73'),_0xd75b9b),_0x5386a0[_0x1eb7('0x93')]==_0x63572c&&_0xe02b0a[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0x107'),_0xd75b9b),_0xe02b0a['writer']['insert'](_0x185295,_0xd75b9b),_0xe02b0a[_0x1eb7('0x40')]['bindElementToMarker'](_0xd75b9b,_0x9f08f9['markerName']);}_0x217d9e||_0x26b795||!_0x2910b0||_0x39e0c9(_0x2910b0);};}(this['editor']),{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x8c')]['on']('removeMarker:revision',(_0x10c591,_0x9bd281,_0x4d73df)=>{const _0x39cd8e=_0x4d73df['mapper'][_0x1eb7('0x115')](_0x9bd281[_0x1eb7('0xd2')]);if(_0x39cd8e)for(const _0x54d822 of _0x39cd8e)(_0x54d822[_0x1eb7('0x7c')]('ck-suggestion-marker-split')||_0x54d822[_0x1eb7('0x7c')](_0x1eb7('0x123')))&&(_0x4d73df[_0x1eb7('0x40')][_0x1eb7('0x103')](_0x54d822,_0x9bd281[_0x1eb7('0xd2')]),_0x4d73df[_0x1eb7('0x90')]['remove'](_0x54d822));},{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0x65')]['downcastDispatcher']['on'](_0x1eb7('0xc3'),(_0xd73dcb,_0x150d7c,_0x576974)=>{const _0x30e5fe=_0x150d7c[_0x1eb7('0xd2')][_0x1eb7('0xf9')](':')[0x1],_0x438940=this[_0x1eb7('0x3c')](_0x30e5fe);if(!_0x438940)return null;const _0x12f22f=_0x1eb7('0x113')==_0x438940[_0x1eb7('0x9')]?_0x1eb7('0xf9'):'merge';if(_0x576974[_0x1eb7('0x5')][_0x1eb7('0x116')](_0x150d7c['markerRange'],_0xd73dcb['name']))for(const _0x2bf3d8 of _0x150d7c[_0x1eb7('0x26')][_0x1eb7('0x109')]()){if(!_0x2bf3d8['is'](_0x1eb7('0x20'),_0x1eb7('0x76')))continue;const _0x461a89=_0x576974[_0x1eb7('0x90')]['createUIElement'](_0x1eb7('0xb'),{'class':'ck-suggestion-marker-'+_0x12f22f}),_0x30793f=_0x576974[_0x1eb7('0x40')][_0x1eb7('0x129')](this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x1')](_0x2bf3d8));_0x438940[_0x1eb7('0x8e')][_0x1eb7('0xbd')]&&_0x576974[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0xc6')+_0x12f22f+'-new',_0x461a89),this[_0x1eb7('0x93')]==_0x438940&&_0x576974[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0x107'),_0x461a89),_0x576974[_0x1eb7('0x90')][_0x1eb7('0x85')](_0x30793f,_0x461a89),_0x576974[_0x1eb7('0x40')][_0x1eb7('0x9b')](_0x461a89,_0x150d7c['markerName']);}},{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0xed')]['document']['on'](_0x1eb7('0x4c'),()=>{this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['change'](_0x3661fc=>{for(const _0x3a3e01 of this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xfd')]()){const _0x4f2460=this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xaf')](_0x3a3e01),_0x424f9e=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x118')]['getRoot'](_0x3a3e01);if(_0x424f9e){const _0x68f464=_0x4f2460[_0x1eb7('0x119')](_0x1eb7('0x11a'));if(_0x3661fc[_0x1eb7('0xe9')](_0x1eb7('0xd9'),_0x424f9e),_0x3661fc[_0x1eb7('0x2e')](_0x1eb7('0xd'),_0x424f9e),_0x3661fc['removeClass'](_0x1eb7('0x25'),_0x424f9e),_0x3661fc['removeClass'](_0x1eb7('0x87'),_0x424f9e),_0x68f464){const _0x47f057=this['_getChangeFromId'](_0x68f464);if(!_0x47f057)return null;_0x3661fc['setAttribute']('data-change-id',_0x68f464,_0x424f9e),_0x3661fc[_0x1eb7('0x18')](_0x1eb7('0xcc')+_0x47f057[_0x1eb7('0x9')],_0x424f9e),this[_0x1eb7('0x93')]==_0x47f057&&_0x3661fc[_0x1eb7('0x18')](_0x1eb7('0x87'),_0x424f9e);}}}});}),this['editor'][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0xf1'))['dataToMarker']({'view':_0x1eb7('0x12'),'model':_0x4dfeac=>_0x1eb7('0x100')+_0x4dfeac,'converterPriority':_0x1eb7('0xad')}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')]['for']('upcast')['dataToMarker']({'view':_0x1eb7('0x126'),'model':_0x5b8923=>_0x1eb7('0x5b')+_0x5b8923,'converterPriority':_0x1eb7('0xad')}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x64'))[_0x1eb7('0x3f')]({'model':_0x1eb7('0x95'),'view':_0x3a2f83=>({'name':_0x1eb7('0x94')+_0x3a2f83,'group':_0x1eb7('0x95')}),'converterPriority':_0x1eb7('0xad')}),this['editor'][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x15'))[_0x1eb7('0x48')]({'model':'revision-suggestion','view':_0x1e8f9e=>{const _0x11add3=_0x1e8f9e[_0x1eb7('0xd2')][_0x1eb7('0xf9')](':')[0x1];return _0x1eb7('0x54')!=_0x11add3&&_0x1eb7('0x37')!=_0x11add3?null:{'classes':['ck-suggestion-preview-marker',_0x1eb7('0x66')+_0x11add3]};}}),this[_0x1eb7('0xb6')]['editing'][_0x1eb7('0x8c')]['on'](_0x1eb7('0x6c'),et(this[_0x1eb7('0xb6')],'merge'),{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')]['editing'][_0x1eb7('0x8c')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x1eb7('0xb6')],_0x1eb7('0xf9')),{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x8c')]['on'](_0x1eb7('0xff'),(_0x3c1759,_0x146f56,_0xed0b39)=>{const _0x15ac6b=_0xed0b39[_0x1eb7('0x40')][_0x1eb7('0x115')](_0x146f56[_0x1eb7('0xd2')]);if(_0x15ac6b)for(const _0x61b2f4 of _0x15ac6b)_0x61b2f4['is'](_0x1eb7('0xd5'))&&(_0xed0b39[_0x1eb7('0x40')][_0x1eb7('0x103')](_0x61b2f4,_0x146f56[_0x1eb7('0xd2')]),_0xed0b39[_0x1eb7('0x90')][_0x1eb7('0x6')](_0x61b2f4));},{'priority':_0x1eb7('0x51')});}[_0x1eb7('0x3c')](_0x57b006){return this[_0x1eb7('0xf')]['get'](_0x57b006);}[_0x1eb7('0x75')](_0x31226d){return this[_0x1eb7('0x46')]&&this[_0x1eb7('0x46')][_0x1eb7('0xf2')](),this[_0x1eb7('0x46')]=new _0x790867(this[_0x1eb7('0xb6')]['locale'],_0x31226d),this[_0x1eb7('0x46')];}[_0x1eb7('0x23')](){this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0x9c')][_0x1eb7('0x2c')](_0x1eb7('0xbb')),this['on'](_0x1eb7('0x99'),(_0x35fd2e,_0x38acea,_0x557be1,_0x3fc0ae)=>{_0x3fc0ae&&this[_0x1eb7('0x10c')]['remove'](_0x3fc0ae),_0x557be1&&(this['_balloon'][_0x1eb7('0x113')]({'view':_0x557be1,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x47e5f9=this[_0x1eb7('0xb6')][_0x1eb7('0x65')],_0x38bfa9=this[_0x1eb7('0x3c')](_0x557be1[_0x1eb7('0xab')]);let _0x187f13;if(_0x38bfa9[_0x1eb7('0x8e')]['isOnRoot']){const _0x1cea7a=_0x47e5f9[_0x1eb7('0x117')]['getDomRoot'](_0x38bfa9[_0x1eb7('0x44')]);_0x187f13=Array[_0x1eb7('0xea')](_0x1cea7a[_0x1eb7('0x0')]());}else{const _0x47ef8f=this['editor']['model'][_0x1eb7('0x56')]['get'](_0x1eb7('0xe3')+_0x557be1['changeId']);_0x187f13=Array['from'](_0x47e5f9[_0x1eb7('0x40')]['markerNameToElements'](_0x47ef8f[_0x1eb7('0x2f')]))[_0x1eb7('0x12b')](_0x4e58c4=>_0x47e5f9['view'][_0x1eb7('0xf5')]['mapViewToDom'](_0x4e58c4))[_0x1eb7('0x12b')](_0x43a063=>Array[_0x1eb7('0xea')](_0x43a063[_0x1eb7('0x0')]()))[_0x1eb7('0xae')]();}if(!this[_0x1eb7('0x2d')])return _0x187f13[0x0];return _0x187f13[_0x1eb7('0xa9')](_0x9f93b5=>_0x9f93b5['top']-0x3<=this[_0x1eb7('0x2d')]['y']&&_0x9f93b5[_0x1eb7('0xa')]+0x3>=this['_activeViewTarget']['y']&&_0x9f93b5[_0x1eb7('0x5c')]-0x3<=this[_0x1eb7('0x2d')]['x']&&_0x9f93b5[_0x1eb7('0x67')]+0x3>=this[_0x1eb7('0x2d')]['x'])||_0x187f13[0x0];}}}),this[_0x1eb7('0x10c')][_0x1eb7('0xc4')](_0x1eb7('0x122')));}),this['on'](_0x1eb7('0x3a'),(_0x22c322,_0x280d71,_0xa5867b,_0x144a21)=>{this['activeView']=_0xa5867b?this[_0x1eb7('0x75')](_0xa5867b):null,this['editor']['model'][_0x1eb7('0x4c')](()=>{const _0x1999ed=this['editor'][_0x1eb7('0x65')];_0x144a21&&(_0x144a21[_0x1eb7('0x8e')][_0x1eb7('0x7b')]?_0x1999ed[_0x1eb7('0x117')]['change'](_0x24603f=>{_0x24603f[_0x1eb7('0x2e')]('ck-revision-history-root--active',_0x1999ed[_0x1eb7('0x117')][_0x1eb7('0x118')]['getRoot'](_0x144a21[_0x1eb7('0x44')]));}):_0x1999ed[_0x1eb7('0x4e')](_0x1eb7('0xe3')+_0x144a21['id'])),_0xa5867b&&(_0xa5867b['data'][_0x1eb7('0x7b')]?_0x1999ed[_0x1eb7('0x117')][_0x1eb7('0x4c')](_0x545771=>{_0x545771[_0x1eb7('0x18')](_0x1eb7('0x87'),_0x1999ed[_0x1eb7('0x117')]['document'][_0x1eb7('0xaf')](_0xa5867b[_0x1eb7('0x44')]));}):_0x1999ed['reconvertMarker'](_0x1eb7('0xe3')+_0xa5867b['id']));});}),this[_0x1eb7('0x11d')](this[_0x1eb7('0xb6')][_0x1eb7('0x65')]['view']['document'],_0x1eb7('0xb7'),(_0x480bcc,_0x36de42)=>{if(this[_0x1eb7('0x93')])return;const _0x2936c9=this[_0x1eb7('0x127')](_0x36de42[_0x1eb7('0x34')]),_0x4146e5=this[_0x1eb7('0xf')][_0x1eb7('0xd7')](_0x2936c9);_0x4146e5?(this['_activeViewTarget']={'x':_0x36de42['domEvent']['x'],'y':_0x36de42[_0x1eb7('0xd0')]['y']},this[_0x1eb7('0x128')]=this[_0x1eb7('0x75')](_0x4146e5)):(this[_0x1eb7('0x2d')]=null,this[_0x1eb7('0x128')]=null);}),this[_0x1eb7('0x11d')](this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x118')],'mousedown',(_0x3506f0,_0x117f76)=>{const _0x26a375=this[_0x1eb7('0x127')](_0x117f76[_0x1eb7('0x34')]),_0x124c33=this[_0x1eb7('0xf')][_0x1eb7('0xd7')](_0x26a375);_0x124c33?(this['_activeViewTarget']={'x':_0x117f76[_0x1eb7('0xd0')]['x'],'y':_0x117f76[_0x1eb7('0xd0')]['y']},_0x124c33===this['activeChange']?this['_balloon'][_0x1eb7('0xc7')]():this[_0x1eb7('0x93')]=_0x124c33):(this[_0x1eb7('0x2d')]=null,this[_0x1eb7('0x93')]=null);});}[_0x1eb7('0x127')](_0x1ac0ef){do{const _0x5efa95=_0x1ac0ef[_0x1eb7('0x119')](_0x1eb7('0xd9'));if(_0x5efa95)return _0x5efa95;_0x1ac0ef=_0x1ac0ef[_0x1eb7('0xd6')];}while(_0x1ac0ef);return null;}[_0x1eb7('0x55')](){this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x4c')](_0x5b4347=>{for(const _0x503120 of this['editor'][_0x1eb7('0xed')]['markers'])_0x5b4347[_0x1eb7('0x49')](_0x503120);});}}function et(_0x1512e8,_0x5ad39e){return(_0xfba98a,_0x2dc5b0,_0xb537a9)=>{if(!_0xb537a9[_0x1eb7('0x5')]['test'](_0x2dc5b0[_0x1eb7('0x26')],_0xfba98a[_0x1eb7('0x2f')]))return;const _0x9725c1=_0x2dc5b0['markerRange'][_0x1eb7('0xd8')](),_0x4c6e44=_0x2dc5b0['markerRange'][_0x1eb7('0x8')],_0x3566b1=_0x1512e8[_0x1eb7('0xed')]['schema'];let _0x5278ff=null,_0x45b189=null,_0x249ec4=!0x1,_0x181423=!0x1;for(const _0x2e4b4d of _0x9725c1){const _0x595b8e=_0x2e4b4d[_0x1eb7('0xd1')];_0x249ec4=_0x249ec4||_0x3566b1[_0x1eb7('0x1b')](_0x595b8e);const _0x420684=_0xb537a9[_0x1eb7('0x40')]['toViewElement'](_0x595b8e);if(_0x420684&&_0x420684[_0x1eb7('0x39')]('addHighlight'))return;'elementEnd'==_0x2e4b4d[_0x1eb7('0x9')]&&(_0x3566b1[_0x1eb7('0x33')](_0x595b8e)&&!_0x3566b1[_0x1eb7('0x105')](_0x595b8e)&&(_0x595b8e[_0x1eb7('0x11b')]||_0x4c6e44[_0x1eb7('0x12e')]?_0x5278ff&&_0x5278ff[_0x1eb7('0xd6')]==_0x595b8e||(_0x5278ff=_0x595b8e,_0x4e2fe4(_0x2e4b4d[_0x1eb7('0x11')]),_0x181423=!0x0):_0x45b189=_0x45b189||_0x2e4b4d[_0x1eb7('0x11')]));}function _0x4e2fe4(_0x14c83d){const _0x5ec501=_0xb537a9[_0x1eb7('0x40')][_0x1eb7('0x129')](_0x14c83d),_0x124437=_0xb537a9[_0x1eb7('0x90')][_0x1eb7('0xdb')](_0x1eb7('0xb'),{'class':'ck-suggestion-preview-marker-'+_0x5ad39e});_0xb537a9['writer'][_0x1eb7('0x85')](_0x5ec501,_0x124437),_0xb537a9[_0x1eb7('0x40')][_0x1eb7('0x9b')](_0x124437,_0x2dc5b0[_0x1eb7('0xd2')]);}_0x249ec4||_0x181423||!_0x45b189||_0x4e2fe4(_0x45b189);};}export class RestoreRevisionCommand extends _0x1b9488{constructor(_0x5df9da){super(_0x5df9da);const _0x563f9d=_0x5df9da['plugins']['get'](d);this[_0x1eb7('0xd3')]=!0x1,this[_0x1eb7('0x11d')](_0x563f9d,_0x1eb7('0x101'),()=>this[_0x1eb7('0x6f')]()),this[_0x1eb7('0x11d')](_0x563f9d,_0x1eb7('0x104'),()=>this[_0x1eb7('0x6f')]());}[_0x1eb7('0xc0')](){const _0x5537ef=this[_0x1eb7('0xb6')],_0x526eae=_0x5537ef[_0x1eb7('0x110')][_0x1eb7('0xd7')](d),_0x34a43a=_0x526eae[_0x1eb7('0x36')]?_0x526eae[_0x1eb7('0x10b')][_0x1eb7('0x10f')]:null;_0x5537ef[_0x1eb7('0x30')][_0x1eb7('0xd7')](_0x1eb7('0x5e'))[_0x1eb7('0x3d')](_0x34a43a);}[_0x1eb7('0x6f')](){const {isReady:_0x50fe10,isEnabled:_0x47f37d}=this[_0x1eb7('0xb6')]['plugins'][_0x1eb7('0xd7')](d);this['isEnabled']=_0x50fe10&&_0x47f37d;}}export class ShowChangeCommand extends _0x1b9488{constructor(_0x8d21a5,{direction:_0x1aeec7}){super(_0x8d21a5);const _0x568c70=_0x8d21a5[_0x1eb7('0x110')][_0x1eb7('0xd7')](d);this['affectsData']=!0x1,this[_0x1eb7('0x1d')]=_0x1eb7('0xa5')===_0x1aeec7?0x1:-0x1,this['listenTo'](_0x568c70,_0x1eb7('0x101'),()=>this[_0x1eb7('0x6f')]()),this['listenTo'](_0x568c70,'change:isEnabled',()=>this[_0x1eb7('0x6f')]());}[_0x1eb7('0xc0')](){const _0x31d272=this['editor'],_0x310e75=_0x31d272[_0x1eb7('0x110')][_0x1eb7('0xd7')](d),{isNavigationMode:_0x332077,currentChangeNumber:_0x41d5e4}=_0x310e75;let _0x503134;if(_0x310e75[_0x1eb7('0x93')]=_0x332077?_0x310e75[_0x1eb7('0x10b')][_0x1eb7('0x77')]['get'](_0x41d5e4+this[_0x1eb7('0x1d')]):_0x310e75[_0x1eb7('0x10b')]['changes'][_0x1eb7('0x38')],_0x310e75[_0x1eb7('0x93')]['data'][_0x1eb7('0x7b')])_0x503134=_0x31d272[_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0xfc')](_0x310e75[_0x1eb7('0x93')][_0x1eb7('0x44')]);else{const _0x501f4a=_0x31d272[_0x1eb7('0xed')][_0x1eb7('0x56')][_0x1eb7('0xd7')](_0x1eb7('0xe3')+_0x310e75['activeChange']['id']);_0x503134=_0x549ae7(_0x31d272[_0x1eb7('0x65')],_0x501f4a);}_0x31f9c3({'target':_0x503134,'viewportOffset':0x28});}[_0x1eb7('0x6f')](){const {isNavigationMode:_0x411abc,currentChangeNumber:_0x45cc3c,numberOfChanges:_0x21fa8f,isReady:_0x514188,isEnabled:_0x3154fe}=this['editor'][_0x1eb7('0x110')]['get'](d);this[_0x1eb7('0x12f')]=!!(_0x3154fe&&_0x514188&&_0x21fa8f)&&(!_0x411abc||(0x1===this[_0x1eb7('0x1d')]?_0x45cc3c<_0x21fa8f-0x1:_0x45cc3c>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a2e=['Restore\x20this\x20revision','add','Compare\x20against\x20selected','execute','class','find','isVisible','action','ck-revision-history-sidebar__revision__actions','threeVerticalDots','Name\x20this\x20revision','isReady','locale','children','model','isOpen','function','bind','isActionsDropdownOpen','ck-on','map','set','_action','Show\x20more\x20items','name','isEnabled','stopPropagation','button','change:isActionsDropdownOpen','source','listenTo','first'];(function(_0x10b4ba,_0x1a2ec8){const _0x4b91fa=function(_0x35f636){while(--_0x35f636){_0x10b4ba['push'](_0x10b4ba['shift']());}};_0x4b91fa(++_0x1a2ec8);}(_0x1a2e,0xaa));const _0x4b91=function(_0x10b4ba,_0x1a2ec8){_0x10b4ba=_0x10b4ba-0x0;let _0x4b91fa=_0x1a2e[_0x10b4ba];return _0x4b91fa;};import{Collection as _0x1766a8}from'ckeditor5/src/utils';import{icons as _0x39d7a2}from'ckeditor5/src/core';import{Model as _0x19b2b,addListToDropdown as _0x104bb7,createDropdown as _0x432f6e}from'ckeditor5/src/ui';import{getTranslation as _0x35fce5}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x40db35,_0x699f25){const _0x293edd=_0x40db35['bindTemplate'],_0x1172b0=_0x40db35['locale'],_0x1c3011=_0x432f6e(_0x1172b0);_0x1c3011['panelPosition']='sw';const _0x578eac=function(_0x3e2a1c,_0x479256){const _0x5b603c=function(_0x5c90b3,_0x55aeca){const _0x568581=_0x5c90b3[_0x4b91('0x2')],_0x3ed8fa={'Compare\x20against\x20selected':_0x35fce5(_0x568581,_0x4b91('0x18')),'Name\x20this\x20revision':_0x35fce5(_0x568581,_0x4b91('0x0')),'Restore\x20this\x20revision':_0x35fce5(_0x568581,_0x4b91('0x16'))};return _0x55aeca[_0x4b91('0xa')](_0x418a4e=>{const _0x494a0a=_0x3ed8fa[_0x418a4e[_0x4b91('0xe')]];return _0x494a0a&&_0x494a0a!==_0x418a4e['name']&&(_0x418a4e[_0x4b91('0xe')]=_0x494a0a),_0x418a4e;});}(_0x3e2a1c,_0x479256),_0x2cb09b=new _0x1766a8();for(const _0x5dd99e of _0x5b603c){const _0x6cd32={'type':_0x4b91('0x11'),'model':new _0x19b2b({'label':_0x5dd99e[_0x4b91('0xe')],'class':_0x5dd99e[_0x4b91('0x1a')],'withText':!0x0,'_action':_0x5dd99e[_0x4b91('0x1d')]})};_0x6cd32[_0x4b91('0x4')][_0x4b91('0x7')]('isEnabled')['to'](_0x3e2a1c,_0x4b91('0x8'),_0x2ec04b=>_0x4b91('0x6')!=typeof _0x5dd99e[_0x4b91('0xf')]||(!_0x2ec04b||_0x5dd99e[_0x4b91('0xf')](_0x3e2a1c))),_0x2cb09b[_0x4b91('0x17')](_0x6cd32);}return _0x2cb09b;}(_0x40db35,_0x699f25);return _0x40db35['bind'](_0x4b91('0x8'))['to'](_0x1c3011,_0x4b91('0x5')),_0x1c3011['buttonView'][_0x4b91('0xb')]({'label':_0x35fce5(_0x1172b0,_0x4b91('0xd')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x39d7a2[_0x4b91('0x1f')]}),_0x1c3011['extendTemplate']({'attributes':{'class':[_0x4b91('0x1e'),_0x293edd['if']('isActionsDropdownOpen',_0x4b91('0x9'))]},'on':{'click':_0x293edd['to'](_0x285657=>_0x285657[_0x4b91('0x10')]())}}),_0x1c3011['on'](_0x4b91('0x19'),_0x3a3eb0=>{_0x40db35[_0x4b91('0x1')]&&'function'==typeof _0x3a3eb0[_0x4b91('0x13')][_0x4b91('0xc')]&&_0x3a3eb0[_0x4b91('0x13')][_0x4b91('0xc')](_0x40db35);}),_0x104bb7(_0x1c3011,_0x578eac),_0x1c3011[_0x4b91('0x14')](_0x40db35,_0x4b91('0x12'),(_0x303340,_0x54af94,_0x11f1b5)=>{if(_0x11f1b5)for(const _0x5393b4 of _0x1c3011['listView']['items']){const _0x21144a=_0x5393b4[_0x4b91('0x3')][_0x4b91('0x15')],_0x13a7c3=_0x699f25[_0x4b91('0x1b')](_0xba59bf=>_0xba59bf[_0x4b91('0x1d')]===_0x21144a[_0x4b91('0xc')])[_0x4b91('0x1c')];_0x5393b4[_0x4b91('0x1c')]=void 0x0===_0x13a7c3||_0x13a7c3(_0x40db35);}}),_0x1c3011;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45fd=['name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','push','span','Revision\x20creator','ck-revision-history-sidebar__revision-author','setTemplate'];(function(_0x4c1671,_0x45fd19){const _0x1d23b3=function(_0x18a171){while(--_0x18a171){_0x4c1671['push'](_0x4c1671['shift']());}};_0x1d23b3(++_0x45fd19);}(_0x45fd,0x1a3));const _0x1d23=function(_0x4c1671,_0x45fd19){_0x4c1671=_0x4c1671-0x0;let _0x1d23b3=_0x45fd[_0x4c1671];return _0x1d23b3;};import{View as _0xbbb090,IconView as _0x5713ec}from'ckeditor5/src/ui';import{getTranslation as _0x1c0df9}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x2ba18e from'../../../theme/icons/user.svg';export default class ti extends _0xbbb090{constructor(_0x5acd64,_0x4c172d,_0x1b94fb){super(_0x5acd64);const _0x1201cc=new _0x5713ec();_0x1201cc['set']({'content':_0x2ba18e,'viewBox':_0x1d23('0x6')});const _0x2f9989=['ck',_0x1d23('0x3')];_0x1b94fb&&_0x2f9989[_0x1d23('0x0')](_0x1d23('0x7'));const _0x3f86ea=[{'tag':_0x1d23('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x1c0df9(_0x5acd64,_0x1b94fb?_0x1d23('0x2'):'Revision\x20author')},'children':[_0x1201cc,_0x4c172d[_0x1d23('0x5')]]}];this[_0x1d23('0x4')]({'tag':'li','attributes':{'class':_0x2f9989},'children':_0x3f86ea});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x32a4=['span','Revision\x20name','set'];(function(_0x358417,_0x32a4e0){var _0x5717cc=function(_0x50fa5b){while(--_0x50fa5b){_0x358417['push'](_0x358417['shift']());}};_0x5717cc(++_0x32a4e0);}(_0x32a4,0x145));var _0x5717=function(_0x358417,_0x32a4e0){_0x358417=_0x358417-0x0;var _0x5717cc=_0x32a4[_0x358417];return _0x5717cc;};import{LabeledFieldView as _0x519196}from'ckeditor5/src/ui';import{getTranslation as _0x3e26cf}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x519196{constructor(_0x3ab6c9,_0x56d404){super(_0x3ab6c9,_0x56d404),this[_0x5717('0x1')]({'label':_0x3e26cf(_0x3ab6c9,_0x5717('0x0'))}),this['extendTemplate']({'tag':_0x5717('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55d8=['isSelected','revisionNameView','set','ck-reset','closest','authors','length','highlight','isConfirm','from','listenTo','name','isEnabled','extendTemplate','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision__controls-wrapper','ck-disabled','.ck-thread__remove-confirm','220','setTemplate','isActionsDropdownOpen','bind','select','createdAt','ck-revision-history-sidebar__revision-wrapper','isReady','_createdAtFormatted','creator','revisionActionsView','isHighlighted','fieldView','deselect','unhighlight','unshift','span','map','filter','render','fire','placeholder','value','div','ck-revision-history-sidebar__revision','setName'];(function(_0x197d91,_0x55d81f){const _0x1c8613=function(_0x37a2fc){while(--_0x37a2fc){_0x197d91['push'](_0x197d91['shift']());}};_0x1c8613(++_0x55d81f);}(_0x55d8,0xcf));const _0x1c86=function(_0x197d91,_0x55d81f){_0x197d91=_0x197d91-0x0;let _0x1c8613=_0x55d8[_0x197d91];return _0x1c8613;};import{View as _0x3eacb9,createLabeledInputText as _0x13a0b2}from'ckeditor5/src/ui';import{ConfirmMixin as _0x1308f4}from'ckeditor5-collaboration/src/collaboration-core';import _0x11f710 from'./revisionnameview';import _0x2aba68 from'./revisionauthorview';import{dateToPrettyFormat as _0x486593}from'./utils';import{createActionsDropdownView as _0xda2997}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x1308f4(_0x3eacb9){constructor(_0x16b4f9,_0x40168c,_0x330709){super(_0x16b4f9);const _0x23f80d=this['bindTemplate'],_0x56888d=function(_0xd0166e,_0x3fc623){const _0x27f15=Array[_0x1c86('0x1b')](_0x3fc623[_0x1c86('0x17')])[_0x1c86('0xa')](_0x40f2c4=>_0x40f2c4!=_0x3fc623['creator']);return _0x3fc623[_0x1c86('0x1')]&&_0x27f15[_0x1c86('0x7')](_0x3fc623[_0x1c86('0x1')]),_0x27f15[_0x1c86('0x9')](_0x16ec62=>new _0x2aba68(_0xd0166e,_0x16ec62,_0x16ec62==_0x3fc623[_0x1c86('0x1')]));}(_0x16b4f9,_0x40168c);this['id']=_0x40168c['id'],this['_revision']=_0x40168c,this[_0x1c86('0x28')](_0x1c86('0x1d'),_0x1c86('0x2a'))['to'](_0x40168c),this[_0x1c86('0x28')]('_createdAtFormatted')['to'](this,_0x1c86('0x2a'),_0x26cb6a=>_0x26cb6a?_0x486593(_0x16b4f9['uiLanguage'],_0x26cb6a):void 0x0),this['set']('isSelected',!0x1),this[_0x1c86('0x14')](_0x1c86('0x3'),!0x1),this[_0x1c86('0x14')](_0x1c86('0x27'),!0x1),this['set'](_0x1c86('0x2c'),!0x1),this[_0x1c86('0x14')](_0x1c86('0x1e'),!0x1),this[_0x1c86('0x13')]=new _0x11f710(_0x16b4f9,_0x13a0b2),this['revisionNameView'][_0x1c86('0x4')][_0x1c86('0x1f')]({'attributes':{'maxlength':_0x1c86('0x25')}}),this[_0x1c86('0x13')][_0x1c86('0x4')][_0x1c86('0x28')](_0x1c86('0xe'),_0x1c86('0xd'))['to'](this,'name',_0x1c86('0x0')),this[_0x1c86('0x13')][_0x1c86('0x28')](_0x1c86('0x1e'))['to'](this,_0x1c86('0x12'),this,_0x1c86('0x1e'),(_0x26aef4,_0xf4242f)=>_0x26aef4&&_0xf4242f),this[_0x1c86('0x2')]=_0x330709&&_0x330709[_0x1c86('0x18')]?_0xda2997(this,_0x330709):'',this[_0x1c86('0x2')]&&this[_0x1c86('0x2')]['bind'](_0x1c86('0x1e'))['to'](this),this[_0x1c86('0x26')]({'tag':_0x1c86('0xf'),'attributes':{'class':['ck',_0x1c86('0x15'),_0x1c86('0x2b'),_0x23f80d['if'](_0x1c86('0x1a'),_0x1c86('0x21'))]},'children':[{'tag':_0x1c86('0xf'),'attributes':{'class':['ck','ck-reset',_0x1c86('0x10'),_0x23f80d['if']('isEnabled',_0x1c86('0x23'),_0x5b75d0=>!_0x5b75d0),_0x23f80d['if'](_0x1c86('0x12'),_0x1c86('0x20')),_0x23f80d['if'](_0x1c86('0x3'),'ck-revision-history-sidebar__revision_highlighted'),_0x23f80d['if'](_0x1c86('0x27'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x1c86('0x13')],{'tag':_0x1c86('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x23f80d['to'](_0x1c86('0x0'))}]},{'tag':_0x1c86('0xf'),'attributes':{'class':['ck',_0x1c86('0x22')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x56888d}]},this['revisionActionsView']],'on':{'click':_0x23f80d['to'](_0x56e82b=>{_0x56e82b['srcElement'][_0x1c86('0x16')](_0x1c86('0x24'))||this['isReady']&&this[_0x1c86('0x1e')]&&this[_0x1c86('0xc')]('select',{'id':this['id']});})}}]});}[_0x1c86('0xb')](){super['render']();const _0x2f23ff=this[_0x1c86('0x13')][_0x1c86('0x4')]['element'];this[_0x1c86('0x1c')](_0x2f23ff,'change',()=>{this['fire'](_0x1c86('0x11'),{'id':this['id'],'name':_0x2f23ff[_0x1c86('0xe')]});});}[_0x1c86('0x29')](){this['isSelected']=!0x0;}[_0x1c86('0x5')](){this['isSelected']=!0x1;}[_0x1c86('0x19')](){this['isHighlighted']=!0x0;}[_0x1c86('0x6')](){this[_0x1c86('0x3')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16c6=['isVisible','click','ck-revision-history-sidebar__subrevision-collapser','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','set','setTemplate','_isCollapsed','true','ck-hidden','bindTemplate'];(function(_0xeeaeaa,_0x16c662){const _0xc0252b=function(_0x4ccdb0){while(--_0x4ccdb0){_0xeeaeaa['push'](_0xeeaeaa['shift']());}};_0xc0252b(++_0x16c662);}(_0x16c6,0xa2));const _0xc025=function(_0xeeaeaa,_0x16c662){_0xeeaeaa=_0xeeaeaa-0x0;let _0xc0252b=_0x16c6[_0xeeaeaa];return _0xc0252b;};import{View as _0x5af3c1}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x5af3c1{constructor(_0x5a7b2d){super(_0x5a7b2d);const _0x1a1522=this[_0xc025('0x2')];this[_0xc025('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xc025('0x9')]({'tag':'span','attributes':{'class':['ck',_0xc025('0x5'),_0x1a1522['if'](_0xc025('0x3'),_0xc025('0x1'),_0x40782f=>!_0x40782f),_0x1a1522['if'](_0xc025('0xa'),_0xc025('0x7'))],'role':'button','aria-pressed':_0x1a1522['to'](_0xc025('0xa'),_0x2a3568=>_0x2a3568?_0xc025('0x6'):_0xc025('0x0'))},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x1a1522['to'](_0xc025('0x4'))}});}['toggle'](){this[_0xc025('0xa')]=!this[_0xc025('0xa')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x346f=['deselect','span','_parentRevisionId','set','_createdAtFormatted','select','ck-revision-history-sidebar__subrevision','bindTemplate','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','setTemplate','ck-revision-history-sidebar__revision__date','creator','isSelected','createdAt','ck-reset','fire','bind'];(function(_0x4107d4,_0x346fb0){const _0x2fb5fe=function(_0x44f744){while(--_0x44f744){_0x4107d4['push'](_0x4107d4['shift']());}};_0x2fb5fe(++_0x346fb0);}(_0x346f,0x175));const _0x2fb5=function(_0x4107d4,_0x346fb0){_0x4107d4=_0x4107d4-0x0;let _0x2fb5fe=_0x346f[_0x4107d4];return _0x2fb5fe;};import{View as _0x42a649}from'ckeditor5/src/ui';import _0x45ca73 from'./revisionauthorview';import{dateToPrettyFormat as _0x281448}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x42a649{constructor(_0x43a937,_0x29a5d7,_0x2f4b7c){super(_0x43a937);const _0x4680eb=this[_0x2fb5('0xe')];this['id']=_0x29a5d7['id'],this[_0x2fb5('0x6')](_0x2fb5('0x3'))['to'](_0x29a5d7),this[_0x2fb5('0xa')](_0x2fb5('0x2'),!0x1),this['bind'](_0x2fb5('0xb'))['to'](this,_0x2fb5('0x3'),_0x395553=>_0x395553?_0x281448(_0x43a937['uiLanguage'],_0x395553):void 0x0),this[_0x2fb5('0x9')]=_0x2f4b7c,this[_0x2fb5('0x12')]({'tag':'div','attributes':{'class':['ck',_0x2fb5('0x4'),_0x2fb5('0xf'),_0x2fb5('0xd'),_0x4680eb['if'](_0x2fb5('0x2'),_0x2fb5('0x11'))]},'children':[{'tag':_0x2fb5('0x8'),'attributes':{'class':['ck',_0x2fb5('0x0')]},'children':[{'text':_0x4680eb['to'](_0x2fb5('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0x2fb5('0x10')]},'children':[new _0x45ca73(_0x43a937,_0x29a5d7[_0x2fb5('0x1')],!0x0)]}],'on':{'click':_0x4680eb['to'](this[_0x2fb5('0xc')][_0x2fb5('0x6')](this))}});}[_0x2fb5('0xc')](){this['isSelected']=!0x0,this[_0x2fb5('0x5')](_0x2fb5('0xc'),{'parentId':this[_0x2fb5('0x9')]});}[_0x2fb5('0x7')](){this[_0x2fb5('0x2')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x37bb=['toLocaleTimeString','long','numeric'];(function(_0x82b99,_0x37bb6b){var _0x2d1ef7=function(_0x4c5b18){while(--_0x4c5b18){_0x82b99['push'](_0x82b99['shift']());}};_0x2d1ef7(++_0x37bb6b);}(_0x37bb,0x66));var _0x2d1e=function(_0x82b99,_0x37bb6b){_0x82b99=_0x82b99-0x0;var _0x2d1ef7=_0x37bb[_0x82b99];return _0x2d1ef7;};export function dateToPrettyFormat(_0x3e51bf,_0x115d2c){return _0x115d2c['toLocaleDateString'](_0x3e51bf,{'month':_0x2d1e('0x1'),'day':_0x2d1e('0x2')})+',\x20'+_0x115d2c[_0x2d1e('0x0')](_0x3e51bf,{'hour':'numeric','minute':_0x2d1e('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x619c=['focusFirst','cancel','focusTracker','forEach','arrowleft','listenTo','input','element','ck-button-cancel','revisionNameInputValue','Save','220','revisionNameInputView','stopPropagation','fieldView','execute','keystrokes','saveButtonView','arrowup','_focusCycler','locale','set','_createButton','arrowdown','arrowright','focus','reset','add','submit','ck-revision-history-save-revision-form','cancelButtonView','Cancel','value','trim','revisionName','_focusables','Name\x20of\x20the\x20revision\x20(optional)','label','extendTemplate','render','form','shift\x20+\x20tab'];(function(_0x1cc7b4,_0x619c43){const _0x5e856b=function(_0x54a593){while(--_0x54a593){_0x1cc7b4['push'](_0x1cc7b4['shift']());}};_0x5e856b(++_0x619c43);}(_0x619c,0xdc));const _0x5e85=function(_0x1cc7b4,_0x619c43){_0x1cc7b4=_0x1cc7b4-0x0;let _0x5e856b=_0x619c[_0x1cc7b4];return _0x5e856b;};import{icons as _0x406d82}from'ckeditor5/src/core';import{ButtonView as _0x4a04f4,FocusCycler as _0x544438,LabeledFieldView as _0x106a0,View as _0x58c06e,ViewCollection as _0x723b63,createLabeledInputText as _0x1dde17,injectCssTransitionDisabler as _0x2b9f41,submitHandler as _0x1d0a29}from'ckeditor5/src/ui';import{FocusTracker as _0x28c279,KeystrokeHandler as _0x590c92}from'ckeditor5/src/utils';import{getTranslation as _0x283e13}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x58c06e{constructor(_0x3d1dee){super(_0x3d1dee),this[_0x5e85('0x22')]=new _0x28c279(),this[_0x5e85('0x6')]=new _0x590c92(),this[_0x5e85('0xb')](_0x5e85('0x29'),''),this[_0x5e85('0x2')]=this['_createRevisionNameInput'](),this[_0x5e85('0x7')]=this[_0x5e85('0xc')](_0x283e13(_0x3d1dee,_0x5e85('0x0')),_0x406d82['check'],'ck-button-save'),this['saveButtonView']['type']=_0x5e85('0x12'),this[_0x5e85('0x14')]=this[_0x5e85('0xc')](_0x283e13(_0x3d1dee,_0x5e85('0x15')),_0x406d82[_0x5e85('0x21')],_0x5e85('0x28'),_0x5e85('0x21')),this[_0x5e85('0x19')]=new _0x723b63(),this[_0x5e85('0x9')]=new _0x544438({'focusables':this[_0x5e85('0x19')],'focusTracker':this[_0x5e85('0x22')],'keystrokeHandler':this[_0x5e85('0x6')],'actions':{'focusPrevious':_0x5e85('0x1f'),'focusNext':'tab'}}),this['setTemplate']({'tag':_0x5e85('0x1e'),'attributes':{'class':['ck',_0x5e85('0x13'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x5e85('0x2')],this['saveButtonView'],this['cancelButtonView']]}),_0x2b9f41(this);}['render'](){super[_0x5e85('0x1d')](),_0x1d0a29({'view':this}),([this['revisionNameInputView'],this[_0x5e85('0x7')],this[_0x5e85('0x14')]][_0x5e85('0x23')](_0x443d33=>{this[_0x5e85('0x19')][_0x5e85('0x11')](_0x443d33),this['focusTracker'][_0x5e85('0x11')](_0x443d33[_0x5e85('0x27')]);}),this[_0x5e85('0x6')][_0x5e85('0x25')](this[_0x5e85('0x27')]));const _0x58152f=_0x191c86=>_0x191c86[_0x5e85('0x3')]();this[_0x5e85('0x6')][_0x5e85('0xb')](_0x5e85('0xe'),_0x58152f),this[_0x5e85('0x6')][_0x5e85('0xb')](_0x5e85('0x24'),_0x58152f),this[_0x5e85('0x6')]['set'](_0x5e85('0x8'),_0x58152f),this[_0x5e85('0x6')][_0x5e85('0xb')](_0x5e85('0xd'),_0x58152f);}[_0x5e85('0xf')](){this[_0x5e85('0x9')][_0x5e85('0x20')]();}get[_0x5e85('0x18')](){return this[_0x5e85('0x2')]['fieldView'][_0x5e85('0x27')][_0x5e85('0x16')][_0x5e85('0x17')]();}set[_0x5e85('0x18')](_0x8e40c5){this[_0x5e85('0x2')][_0x5e85('0x4')]['element'][_0x5e85('0x16')]=_0x8e40c5['trim']();}[_0x5e85('0x10')](){this['revisionNameInputView'][_0x5e85('0x4')][_0x5e85('0x27')][_0x5e85('0x16')]='';}['_createRevisionNameInput'](){const _0x265c17=new _0x106a0(this['locale'],_0x1dde17),_0x52d2ae=_0x265c17['fieldView'];return _0x52d2ae[_0x5e85('0x1c')]({'attributes':{'maxlength':_0x5e85('0x1')}}),_0x265c17[_0x5e85('0x1b')]=_0x283e13(this[_0x5e85('0xa')],_0x5e85('0x1a')),_0x52d2ae['on'](_0x5e85('0x26'),()=>{this[_0x5e85('0x29')]=_0x52d2ae[_0x5e85('0x27')][_0x5e85('0x16')][_0x5e85('0x17')]();}),_0x265c17;}[_0x5e85('0xc')](_0x3904a6,_0x561303,_0x34e52a,_0x376d01){const _0x421df7=new _0x4a04f4(this[_0x5e85('0xa')]);return _0x421df7[_0x5e85('0xb')]({'label':_0x3904a6,'icon':_0x561303,'tooltip':!0x0}),_0x421df7[_0x5e85('0x1c')]({'attributes':{'class':_0x34e52a}}),_0x376d01&&_0x421df7['delegate'](_0x5e85('0x5'))['to'](this,_0x376d01),_0x421df7;}}
|