@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231006.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 _0x3ed3=['insertions','config','isBefore','markers','WidgetToolbarRepository','elementStart','getDomRoot','_initInteractions','add','remove','side','right','ck-editor__editable__overlay','isRemoved','_update','index','removeClass','data-change-id','hasAttribute','split','createUIElement','bindElementToMarker','locale','children','_setConversion','_removeRevisionMarkers','first','indexOf','change:activeChange','updatePosition','unbindElementFromMarkerName','data','isAfter','offsetSize','affectsData','string','return','diff','destroy','highest','newRevisionId','push','ck-suggestion-marker--active','_makeTape','revisionHistoryLabel','activeChange','_balloon','addMarker:revision','editing','ck-revision-history-root-add','test','backward','element:pre','change:numberOfChanges','target','_makeModelFromViewString','schema','editor','roots','_markSuggestions','_markMarkers','isSuggestion','markersStart','set','mousedown','isEnabled','isIncorrect','consumable','getAttribute','downcastDispatcher','consume','bottom','span','activeView','document','execute','revision','startsWith','_markMismatchedRemovedTags','start','_step','ck-suggestion-preview-marker-','authors','removeAttribute','error','RevisionViewer','forward','viewItem','selection','modelRange','isObject','_setDistance','_processTape','isAdded','refresh','revision-suggestion','detachRoot','ck-suggestion-marker-split','_cleanUp','createAttributeElement','createPositionFromPath','enqueueChange','RevisionsRepository','removeMarker:revision-suggestion','values','keys','mouseover','toViewRange','userId','_sortAndFilterDiffChanges','isReady','isAtEnd','hasClass','createRangeIn','isContent','text','endIndex','nextPosition','isLimit','markersEnd','from','shift','_activeViewTarget','_changeIdToChange','startIndex','length','change:isReady','processor','vid_end','_getViewObj','_joinTapes','end','useFillerType','parent','isBlock','_refreshStartEndIndex','ck-revision-history-root-remove','toModel','reconvertMarker','ck-suggestion-preview-marker','getItems','_makeModelFromTape','object','addHighlight','attributesAfter','_getChangeFromId','init','next','rootName','addMarker:revision-suggestion:insertion','distance','setAttribute','getClientRects','pairId','done','oldRevisionId','vid_start','showNextChange','repository','change:activeView','domEvent','_findChangeIdFromDomTarget','revision-viewer','element','deletions','createRevision','find','isNavigationMode','elementToAttribute','unshift','marked','filter','isAddSuggestion','previousPosition','editingDowncast','ck-revision-history-root--active','listenTo','view','_appendChild','attributes','isCollapsed','currentChangeNumber','low','model','_markInsertions','markerToHighlight','left','removeMarker','revision-comment:','revision-suggestion:','bind','splice','nodeAfter','getRootNames','mapViewToDom','_changeView','addRoot','all','insert','resolve','_getRevisionsRange','collaboration.channelId','delete','adapter','toViewPosition','showPreviousChange','_removeUnsupportedChanges','revisionHistory','concat','_removeMissingPairs','vid','_cleanMarkers','writer','requires','changes','change:isEnabled','getIndex','softBreak','stop','high','ck-suggestion-marker','abs','restoreRevisionCallback','isOnRoot','getRoot','insertion','mapper','revision-start','elementEnd','comment','toViewElement','createPositionBefore','markerRange','-new','loadRevisionData','then','type','has','compare','addClass','isEqual','sort','nextSibling','getWalker','removeMarker:revision','plugins','_getViewForChange','level','attributesBefore','addMarker:revision-suggestion:deletion','name','data-revision-','clear','map','diffData','ck-suggestion-marker-','maxOffset','deletion','item','attachChange','parse','getRevision','getCustomProperty','observeMarkers','upcast','isAtStart','forceDisabled','merge','forEach','for','get','dataDowncast','enableReadOnlyMode','isInline','markerNameToElements','default','commands','dataToMarker','isAttached','addRevisionData','revision:','restoreRevision','getAttributes','getRevisionRootsAttributes','getRevisionData','isRemoveSuggestion','change','pop','markerName','flat','pluginName','conversion'];(function(_0x4621ba,_0x3ed390){const _0x360443=function(_0x3ccfc4){while(--_0x3ccfc4){_0x4621ba['push'](_0x4621ba['shift']());}};_0x360443(++_0x3ed390);}(_0x3ed3,0x18a));const _0x3604=function(_0x4621ba,_0x3ed390){_0x4621ba=_0x4621ba-0x0;let _0x360443=_0x3ed3[_0x4621ba];return _0x360443;};import{Plugin as _0x483fce,Command as _0x524429}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x14bcb4}from'ckeditor5/src/utils';import{ContextualBalloon as _0x25cb05}from'ckeditor5/src/ui';import{DocumentFragment as _0x31ed5d,Element as _0x2bb520,Text as _0xc9bffc,ViewDocumentFragment as _0x47e122,ViewText as _0x26a2d1,ViewElement as _0x215ee7,ViewContainerElement as _0x37ff20,ViewAttributeElement as _0x66c7f,ViewEmptyElement as _0x65e48d,ViewRawElement as _0x4bae77,ViewUIElement as _0x17b459}from'ckeditor5/src/engine';import{Users as _0x33bd03,getMarkerDomElement as _0x48f1fb}from'ckeditor5-collaboration/src/collaboration-core';import _0x470938 from'./ui/revisionviewer/changedetailsview';import _0x59f1d4 from'./revisionsrepository';import _0x58e1bf from'./changeitem';import{default as _0x97b06e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x13cd76}from'lodash-es';const tt={'c':_0x37ff20,'a':_0x66c7f,'e':_0x65e48d,'r':_0x4bae77,'u':_0x17b459};export default class d extends _0x483fce{static get[_0x3604('0xbc')](){return _0x3604('0x113');}static get[_0x3604('0x6f')](){return[_0x33bd03,_0x25cb05,_0x59f1d4];}constructor(_0x558b0c){super(_0x558b0c),this[_0x3604('0x38')]=this['editor']['plugins'][_0x3604('0xa8')](_0x3604('0x0')),this[_0x3604('0xfd')]('activeChange',null),this[_0x3604('0xfd')](_0x3604('0x107'),null),this[_0x3604('0x14')]=null,this[_0x3604('0xfd')]('diff',null),this[_0x3604('0xfd')](_0x3604('0x8'),!0x1),this[_0x3604('0xfd')](_0x3604('0xff'),!0x0),this['on'](_0x3604('0x71'),(_0x5ee129,_0x3f686e,_0x638d38)=>{this['activeChange']=null,this[_0x3604('0x107')]=null,this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x4b')]['change'](_0x4db313=>{for(const _0x512c19 of this['editor'][_0x3604('0xee')][_0x3604('0x4b')]['document'][_0x3604('0xf8')])_0x638d38?_0x4db313[_0x3604('0xce')](_0x3604('0xca'),_0x512c19):_0x4db313[_0x3604('0x89')](_0x3604('0xca'),_0x512c19);});}),this[_0x3604('0x58')](_0x3604('0x41'))['to'](this,_0x3604('0xeb'),_0x38bf81=>null!==_0x38bf81),this['bind'](_0x3604('0x4f'))['to'](this,_0x3604('0x8'),this,_0x3604('0xe3'),this,'activeChange',(_0x184ee8,_0x1ee0a4,_0x20f616)=>_0x184ee8&&_0x20f616?_0x1ee0a4[_0x3604('0x70')]['getIndex'](_0x20f616):0x0),this[_0x3604('0x58')]('numberOfChanges')['to'](this,_0x3604('0x8'),this,_0x3604('0xe3'),(_0x556c21,_0x15bdeb)=>_0x556c21?_0x15bdeb['changes']['length']:0x0),this[_0x3604('0x5d')]=null,this['_changeIdToChange']=new Map(),this[_0x3604('0x65')]=null,this['_balloon']=this[_0x3604('0xf7')][_0x3604('0x8f')]['get'](_0x25cb05);}[_0x3604('0x2c')](){const _0x871d00=this[_0x3604('0xf7')],_0x3afd66=new ShowChangeCommand(_0x871d00,{'direction':_0x3604('0xf1')}),_0x2093c8=new ShowChangeCommand(_0x871d00,{'direction':_0x3604('0x114')});(_0x871d00[_0x3604('0xae')][_0x3604('0xc6')](_0x3604('0x67'),_0x3afd66),_0x871d00[_0x3604('0xae')]['add'](_0x3604('0x37'),_0x2093c8),_0x871d00[_0x3604('0xae')][_0x3604('0xc6')](_0x3604('0xb3'),new RestoreRevisionCommand(_0x871d00)),this['on'](_0x3604('0xf3'),()=>{_0x3afd66['refresh'](),_0x2093c8[_0x3604('0x11c')]();}),this[_0x3604('0xd6')](),this[_0x3604('0xc5')](),_0x871d00[_0x3604('0xaa')](_0x3604('0x3c')),_0x871d00[_0x3604('0x8f')][_0x3604('0x87')](_0x3604('0xc2')))&&_0x871d00[_0x3604('0x8f')]['get'](_0x3604('0xc2'))[_0x3604('0xa4')](_0x3604('0x3c'));}async[_0x3604('0xb6')](_0x5e600){await this[_0x3604('0x84')](_0x5e600);const _0x3a44fb={};for(const _0x13cc92 in _0x5e600[_0x3604('0x98')]){if(_0x5e600[_0x3604('0x98')][_0x13cc92][_0x3604('0x9d')]&&!_0x5e600[_0x3604('0x98')][_0x13cc92][_0x3604('0x9d')][_0x3604('0xb0')])continue;const _0x4d6cf5=this['_removeRevisionMarkers'](JSON[_0x3604('0x9e')](_0x5e600[_0x3604('0x98')][_0x13cc92][_0x3604('0xbe')])),_0x29618a=this[_0x3604('0xf7')]['editing'][_0x3604('0x4b')]['document'],_0x82a22f=new _0x47e122(_0x29618a,_0x4d6cf5[_0x3604('0x97')](_0x3ec764=>this[_0x3604('0x1b')](_0x3ec764)));this[_0x3604('0xf7')]['data'][_0x3604('0x19')]['useFillerType'](_0x3604('0x44')),_0x3a44fb[_0x13cc92]=this[_0x3604('0xf7')][_0x3604('0xdd')][_0x3604('0x19')]['toData'](_0x82a22f),this[_0x3604('0xf7')][_0x3604('0xdd')][_0x3604('0x19')][_0x3604('0x1e')](_0x3604('0xad'));}return _0x3a44fb;}async[_0x3604('0xb5')](_0x5f5acd){await this['loadRevisionData'](_0x5f5acd);const _0x4cf726={};for(const _0x395709 in _0x5f5acd['diffData'])_0x5f5acd[_0x3604('0x98')][_0x395709][_0x3604('0x9d')]&&!_0x5f5acd[_0x3604('0x98')][_0x395709][_0x3604('0x9d')][_0x3604('0xb0')]||(_0x4cf726[_0x395709]=_0x5f5acd[_0x3604('0x98')][_0x395709][_0x3604('0x2a')]||{});return _0x4cf726;}[_0x3604('0xd7')](_0x458a94){return(_0x458a94=_0x458a94['filter'](_0x4b18af=>!_0x4b18af[_0x3604('0x94')]||_0x3604('0x7d')!==_0x4b18af[_0x3604('0x94')]&&'revision-end'!==_0x4b18af[_0x3604('0x94')]))[_0x3604('0xa6')](_0x11b9f9=>{_0x3604('0xe1')!=typeof _0x11b9f9&&(_0x11b9f9[_0x3604('0xd5')]=this['_removeRevisionMarkers'](_0x11b9f9[_0x3604('0xd5')]),_0x11b9f9['attributes']=_0x11b9f9['attributes'][_0x3604('0x45')](_0x15e8e6=>!_0x15e8e6[0x0][_0x3604('0x10b')](_0x3604('0x95'))));}),_0x458a94;}async[_0x3604('0x88')](_0x145e04,_0x235b51,_0x2d2ad1=!0x1){if(!this[_0x3604('0xff')])return;const _0x537543=this[_0x3604('0xe3')],_0x42ddcd=this[_0x3604('0x38')],_0x5b1a5d=_0x3604('0xe1')==typeof _0x145e04?_0x42ddcd[_0x3604('0x9f')](_0x145e04):_0x145e04,_0x3aeede=_0x3604('0xe1')==typeof _0x235b51?_0x42ddcd[_0x3604('0x9f')](_0x235b51):_0x235b51,_0x1208d7=_0x5b1a5d['id'],_0x14bae7=_0x3aeede?_0x3aeede['id']:null;if(!_0x2d2ad1&&this['diff']&&this['diff'][_0x3604('0xe6')]===_0x1208d7&&this[_0x3604('0xe3')][_0x3604('0x35')]===_0x14bae7)return Promise['resolve']();this[_0x3604('0x8')]=!0x1,this[_0x3604('0x107')]=null,this[_0x3604('0xeb')]=null,this['diff']=new _0x97b06e(_0x1208d7,_0x14bae7);const _0x38dffb=this[_0x3604('0x62')](_0x5b1a5d,_0x3aeede,!0x0)['map'](_0x4a6b34=>this[_0x3604('0x84')](_0x4a6b34));return _0x38dffb['push'](new Promise(_0x31064a=>{setTimeout(_0x31064a,0x14);})),Promise[_0x3604('0x5f')](_0x38dffb)[_0x3604('0x85')](()=>{if(!this[_0x3604('0xff')])return;this['_cleanUp']();const _0xb28175=this['_getDiff'](_0x1208d7,_0x14bae7);for(const _0x35f44d of _0xb28175[_0x3604('0x70')])this[_0x3604('0x15')][_0x3604('0xfd')](_0x35f44d['id'],_0x35f44d);this[_0x3604('0xf7')]['model'][_0x3604('0x123')]({'isUndoable':!0x1},_0x5bbf59=>{for(const _0x308cf8 of this[_0x3604('0xf7')]['model'][_0x3604('0x108')][_0x3604('0x5b')]())_0x5bbf59[_0x3604('0x11e')](_0x308cf8);for(const _0x4c0041 of Object['keys'](_0xb28175[_0x3604('0x51')])){const _0x4eb96b=_0x5bbf59[_0x3604('0x5e')](_0x4c0041);for(const _0xf8d73b of Object[_0x3604('0x3')](_0xb28175['attributes'][_0x4c0041]))_0x5bbf59[_0x3604('0x31')](_0xf8d73b,_0xb28175[_0x3604('0x4d')][_0x4c0041][_0xf8d73b],_0x4eb96b);_0x5bbf59[_0x3604('0x60')](_0xb28175[_0x3604('0x51')][_0x4c0041],_0x4eb96b,0x0);}}),this['diff']['_setChanges'](this[_0x3604('0x7')](_0xb28175[_0x3604('0x70')])),this[_0x3604('0x8')]=!0x0;})['catch'](_0x1f4690=>{console[_0x3604('0x112')](_0x1f4690),this[_0x3604('0x120')](),_0x537543&&(this[_0x3604('0xe3')]=_0x537543),this[_0x3604('0x8')]=!0x0;});}[_0x3604('0xb1')](_0x452e1c,_0x48d0f8){const _0x2ee423=this['repository'][_0x3604('0x3f')](_0x452e1c);return _0x2ee423['on'](_0x3604('0xcc'),(_0x1784c5,_0xefc75b,_0x7f66e3)=>_0x48d0f8(_0xefc75b,_0x7f66e3,_0x2ee423)),this['repository']['addRevision'](_0x2ee423),_0x2ee423;}[_0x3604('0x84')](_0x3909b1){if(!_0x3909b1||_0x3909b1[_0x3604('0x98')])return Promise[_0x3604('0x61')]();{const _0x53bf7b=this[_0x3604('0xf7')][_0x3604('0xbf')]['get'](_0x3604('0x63'));return this['adapter'][_0x3604('0x9f')]({'channelId':_0x53bf7b,'revisionId':_0x3909b1['id']})[_0x3604('0x85')](_0xe5fe56=>{_0x3909b1[_0x3604('0xcc')]({'diffData':_0xe5fe56[_0x3604('0x98')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x3604('0x6d')](),this[_0x3604('0x5d')]&&this[_0x3604('0x5d')][_0x3604('0xe4')](),this['_changeView']=null,this[_0x3604('0x15')][_0x3604('0x96')](),this[_0x3604('0xf7')][_0x3604('0x51')]['enqueueChange']({'isUndoable':!0x1},_0x1d69e8=>{for(const _0x46a998 of this[_0x3604('0xf7')]['model'][_0x3604('0x108')][_0x3604('0x5b')]())_0x1d69e8[_0x3604('0x11e')](_0x46a998);});}['_sortAndFilterDiffChanges'](_0x27b4d1){const _0x3d06bd=[],_0x3023ec=new Map();for(const _0xeae635 of this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0x108')]['getRootNames']()){const _0x5dd49a=this[_0x3604('0xf7')][_0x3604('0xee')]['view'][_0x3604('0xc4')](_0xeae635);if(!_0x5dd49a)continue;const _0x214301=_0x5dd49a[_0x3604('0x32')]()[_0x3604('0x9c')](0x0);_0x214301&&(_0x3d06bd[_0x3604('0xe7')](_0xeae635),_0x3023ec[_0x3604('0xfd')](_0xeae635,_0x214301));}return _0x3d06bd[_0x3604('0x8b')]((_0x4fbc00,_0xec7ab7)=>{const _0x585099=_0x3023ec[_0x3604('0xa8')](_0x4fbc00),_0x1b7b7c=_0x3023ec[_0x3604('0xa8')](_0xec7ab7);return _0x585099['y']-_0x1b7b7c['y']||_0x585099['x']-_0x1b7b7c['x'];}),(_0x27b4d1=_0x27b4d1[_0x3604('0x45')](_0x446a65=>_0x3d06bd['includes'](_0x446a65[_0x3604('0x2e')])))[_0x3604('0x8b')]((_0x1c7e10,_0xe20a3f)=>_0x3d06bd[_0x3604('0xd9')](_0x1c7e10['rootName'])-_0x3d06bd['indexOf'](_0xe20a3f['rootName'])),_0x27b4d1;}[_0x3604('0xe9')](_0x6c19c8){const _0x46f18a=Array['from'](_0x6c19c8[_0x3604('0xc1')])[_0x3604('0x45')](([_0x14b322,_0xbf67a4])=>_0x14b322[_0x3604('0x10b')](_0x3604('0xb2'))&&!_0xbf67a4['isCollapsed']),_0x4529b6=Array[_0x3604('0x12')](this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xb')](_0x6c19c8)[_0x3604('0x8d')]({'singleCharacters':!0x0}));if(0x0!=_0x46f18a['length'])for(const _0x21a4ec of _0x4529b6){const [_0x536ede,_0x48208e]=_0x46f18a[0x0],[,_0x33213b,_0x420348]=_0x536ede[_0x3604('0xd1')](':');if(_0x48208e['end'][_0x3604('0x8a')](_0x21a4ec[_0x3604('0xf')])&&_0x46f18a[_0x3604('0x13')](),(_0x21a4ec[_0x3604('0x47')][_0x3604('0x8a')](_0x48208e[_0x3604('0x10d')])||_0x21a4ec[_0x3604('0x47')]['isAfter'](_0x48208e[_0x3604('0x10d')]))&&(_0x3604('0x7b')==_0x33213b?_0x21a4ec['isAdded']={'userId':_0x420348}:_0x3604('0x9b')==_0x33213b&&(_0x21a4ec[_0x3604('0xcb')]={'userId':_0x420348})),0x0==_0x46f18a[_0x3604('0x17')])break;}return _0x4529b6;}[_0x3604('0x21')](_0x28853e){const _0x4af295=new Map();for(let _0x572bf8=0x0;_0x572bf8<_0x28853e[_0x3604('0x17')];_0x572bf8++)_0x3604('0xd')===_0x28853e[_0x572bf8][_0x3604('0x86')]?(_0x28853e[_0x572bf8][_0x3604('0x9c')][_0x3604('0x16')]=_0x572bf8,_0x28853e[_0x572bf8]['item'][_0x3604('0xe')]=_0x572bf8):(_0x3604('0xc3')===_0x28853e[_0x572bf8][_0x3604('0x86')]?_0x28853e[_0x572bf8][_0x3604('0x9c')][_0x3604('0x16')]=_0x572bf8:'elementEnd'===_0x28853e[_0x572bf8][_0x3604('0x86')]&&(_0x28853e[_0x572bf8]['item'][_0x3604('0xe')]=_0x572bf8),_0x4af295['set'](_0x28853e[_0x572bf8]['id'],_0x572bf8));for(const _0x481d86 of _0x4af295[_0x3604('0x2')]())'elementStart'===_0x28853e[_0x481d86][_0x3604('0x86')]?_0x28853e[_0x481d86][_0x3604('0x9c')][_0x3604('0xe')]=_0x4af295[_0x3604('0xa8')](_0x28853e[_0x481d86]['pairId']):_0x3604('0x7e')===_0x28853e[_0x481d86][_0x3604('0x86')]&&(_0x28853e[_0x481d86][_0x3604('0x9c')][_0x3604('0x16')]=_0x4af295[_0x3604('0xa8')](_0x28853e[_0x481d86]['pairId']));}[_0x3604('0x11a')](_0x19425d){for(let _0x216939=0x0;_0x216939<_0x19425d[_0x3604('0x17')];_0x216939++){if(_0x3604('0xc3')===_0x19425d[_0x216939][_0x3604('0x86')])_0x19425d[_0x216939][_0x3604('0x9c')]['startIndex']=_0x216939;else{if(_0x3604('0x7e')===_0x19425d[_0x216939]['type']){_0x19425d[_0x216939][_0x3604('0x9c')]['endIndex']=_0x216939;const _0x637c83=_0x19425d[_0x216939]['item'][_0x3604('0x16')];_0x19425d[_0x637c83][_0x3604('0x33')]=_0x19425d[_0x216939]['id'],_0x19425d[_0x216939][_0x3604('0x33')]=_0x19425d[_0x637c83]['id'];}else _0x19425d[_0x216939][_0x3604('0x9c')][_0x3604('0x16')]=_0x216939,_0x19425d[_0x216939]['item'][_0x3604('0xe')]=_0x216939,_0x19425d[_0x216939][_0x3604('0x33')]=null;}_0x19425d[_0x216939][_0x3604('0xfc')]||(_0x19425d[_0x216939][_0x3604('0xfc')]=[],_0x19425d[_0x216939][_0x3604('0x11')]=[]);}}[_0x3604('0x52')](_0xabc8d2,_0x2fa731){const _0x4d2f98=_0xabc8d2['filter'](_0x4f56aa=>!_0x4f56aa['isAdded']);for(let _0x275841=0x0;_0x275841<_0x2fa731[_0x3604('0x17')];_0x275841++)_0x2fa731[_0x275841][_0x3604('0x11b')]&&(_0x4d2f98[_0x275841]['isAdded']=_0x2fa731[_0x275841]['isAdded']);}[_0x3604('0xf5')](_0x35bc06){const _0x1e2928=JSON['parse'](_0x35bc06),_0x5a208b=this[_0x3604('0xf7')][_0x3604('0xee')]['view'][_0x3604('0x108')],_0x3a5a5d=new _0x47e122(_0x5a208b,_0x1e2928[_0x3604('0x97')](_0x3e980f=>this[_0x3604('0x1b')](_0x3e980f)));return this[_0x3604('0xf7')]['data'][_0x3604('0x23')](_0x3a5a5d);}[_0x3604('0x1b')](_0x118373){const _0x43faae=this[_0x3604('0xf7')]['editing'][_0x3604('0x4b')][_0x3604('0x108')];if('string'==typeof _0x118373)return new _0x26a2d1(_0x43faae,_0x118373);{const _0x59ac9f=_0x118373[_0x3604('0xd5')]['map'](_0x373336=>this[_0x3604('0x1b')](_0x373336));return new(tt[_0x118373[(_0x3604('0x86'))]]||_0x215ee7)(_0x43faae,_0x118373[_0x3604('0x94')],_0x118373['attributes'],_0x59ac9f);}}['_getDiff'](_0x200ce2,_0x10a730=null){const _0x3bb318=this[_0x3604('0x38')][_0x3604('0x9f')](_0x200ce2),_0x2f143f=_0x10a730?this[_0x3604('0x38')][_0x3604('0x9f')](_0x10a730):null,_0x108a73=this[_0x3604('0x62')](_0x3bb318,_0x2f143f),_0x249f1f=_0x108a73[_0x108a73['length']-0x1],_0x315ec9=new Map(),_0x3f1924={'model':{},'attributes':{},'changes':[]},_0xd00626=new Set(),_0x39570e=new Map();for(let _0x206d2c=_0x108a73[_0x3604('0x17')]-0x1;_0x206d2c>=0x0;_0x206d2c--){const _0x232c0f=_0x108a73[_0x206d2c];for(const _0x130ca5 of Object['keys'](_0x232c0f[_0x3604('0x98')]))if(_0x232c0f[_0x3604('0x98')][_0x130ca5]['attachChange']){const _0x5b86a4=_0x232c0f[_0x3604('0x98')][_0x130ca5][_0x3604('0x9d')];_0x5b86a4[_0x3604('0xb0')]?(_0xd00626[_0x3604('0xc6')](_0x130ca5),_0x39570e[_0x3604('0x87')](_0x130ca5)&&_0x39570e['get'](_0x130ca5)['userId']==_0x5b86a4[_0x3604('0x6')]?_0x39570e[_0x3604('0x64')](_0x130ca5):_0x39570e[_0x3604('0xfd')](_0x130ca5,_0x5b86a4)):_0x39570e[_0x3604('0x87')](_0x130ca5)?(_0xd00626[_0x3604('0x64')](_0x130ca5),_0x39570e['delete'](_0x130ca5)):(_0xd00626['add'](_0x130ca5),_0x39570e[_0x3604('0xfd')](_0x130ca5,_0x5b86a4));}else _0xd00626[_0x3604('0xc6')](_0x130ca5);}for(const _0x54a0be of _0xd00626){const _0x27c96a=_0x39570e[_0x3604('0x87')](_0x54a0be)&&!_0x39570e[_0x3604('0xa8')](_0x54a0be)['isAttached'];let _0x18edb8=_0x27c96a?_0x108a73[_0x3604('0x17')]-0x1:0x0;const _0x36f155=_0x27c96a?-0x1:0x1;for(;_0x108a73[_0x18edb8];){const _0x22d60a=_0x108a73[_0x18edb8];if(_0x22d60a['diffData'][_0x54a0be]){const _0x4373f4=_0x27c96a?_0x22d60a[_0x3604('0x98')][_0x54a0be][_0x3604('0x92')]:_0x22d60a['diffData'][_0x54a0be][_0x3604('0x2a')];_0x3f1924['attributes'][_0x54a0be]=_0x4373f4?_0x13cd76(_0x4373f4):{};break;}_0x18edb8+=_0x36f155;}}for(const _0x476dec of _0x108a73){_0x476dec['model']={};for(const _0x1c3844 of _0x476dec[_0x3604('0x110')])_0x315ec9[_0x3604('0xfd')](_0x1c3844['id'],_0x1c3844);for(const _0x1d5f18 of _0xd00626){const _0x27e248=_0x476dec[_0x3604('0x98')][_0x1d5f18]?_0x476dec['diffData'][_0x1d5f18][_0x3604('0xbe')]:'[]',_0x24d864=_0x476dec[_0x3604('0x98')][_0x1d5f18]?_0x476dec[_0x3604('0x98')][_0x1d5f18][_0x3604('0x3e')]:'[]';_0x476dec['model'][_0x1d5f18]={'insertions':this['_makeModelFromViewString'](_0x27e248),'deletions':this[_0x3604('0xf5')](_0x24d864)};}}for(const _0x3343d1 of _0xd00626){let _0x38286b=null,_0x4a502d=0x0;const _0xb9de25=new Map(Array[_0x3604('0x12')](_0x3bb318['model'][_0x3343d1][_0x3604('0xbe')][_0x3604('0xc1')])['filter'](([_0x4a442a])=>!_0x4a442a['startsWith'](_0x3604('0xb2'))));let _0x51b852=0x0;for(const _0x597284 of _0x108a73){const _0x255e5b=this[_0x3604('0xe9')](_0x597284[_0x3604('0x51')][_0x3343d1][_0x3604('0xbe')]);_0x597284==_0x3bb318?(_0x38286b=_0x255e5b,_0x4a502d=_0x38286b[_0x3604('0x17')],_0x38286b[_0x3604('0xa6')](_0x7b9acb=>{_0x7b9acb['id']=_0x51b852++;}),this['_processTape'](_0x38286b)):this[_0x3604('0x52')](_0x38286b,_0x255e5b);const _0x3f234d=_0x38286b['filter'](_0x114023=>!_0x114023[_0x3604('0x11b')])['map'](_0x417440=>_0x417440['id']);let _0x3cfae4=0x0;const _0x352e64=this[_0x3604('0xe9')](_0x597284['model'][_0x3343d1][_0x3604('0x3e')]);_0x352e64[_0x3604('0xa6')](_0x154efd=>{_0x154efd[_0x3604('0xcb')]?_0x154efd['id']=_0x4a502d++:_0x154efd['id']=_0x3f234d[_0x3cfae4++];}),this[_0x3604('0x11a')](_0x352e64),this['_setDistance'](_0x38286b,'isAdded'),this[_0x3604('0x119')](_0x352e64,_0x3604('0xcb')),_0x597284==_0x3bb318&&this[_0x3604('0xfa')](_0x38286b,_0xb9de25),_0x38286b=this[_0x3604('0x1c')](_0x38286b,_0x352e64),this[_0x3604('0x21')](_0x38286b),this['_setDistance'](_0x38286b,_0x3604('0xcb'));}_0x38286b=_0x38286b[_0x3604('0x45')](_0x457e26=>!(_0x457e26['isAdded']&&_0x457e26['isRemoved']));const _0x1198cd=new Map(_0x249f1f['model'][_0x3343d1]['deletions'][_0x3604('0xc1')]),_0x14f5eb=new Set(_0xb9de25[_0x3604('0x3')]());for(const _0x9a5199 of _0x1198cd[_0x3604('0x3')]())_0x14f5eb[_0x3604('0x64')](_0x9a5199);this[_0x3604('0xf9')](_0x38286b,_0x14f5eb),this['_fixObsoleteTags'](_0x38286b),_0x38286b=this[_0x3604('0x6b')](_0x38286b),_0x38286b=this[_0x3604('0x10c')](_0x38286b),_0x38286b=this[_0x3604('0x68')](_0x38286b);const {root:_0x30966a,changes:_0x215e39}=this[_0x3604('0x27')](_0x38286b,_0x315ec9,_0x3343d1);_0x3f1924[_0x3604('0x51')][_0x3343d1]=_0x30966a;const _0x2706e0=_0x39570e[_0x3604('0xa8')](_0x3343d1);if(_0x2706e0){const _0x2eb79b=_0x315ec9[_0x3604('0xa8')](_0x2706e0[_0x3604('0x6')]),_0x22e14f=new _0x58e1bf({'author':_0x2eb79b,'type':_0x2706e0[_0x3604('0xb0')]?_0x3604('0xc6'):_0x3604('0xc7'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3343d1});_0x215e39[_0x3604('0x43')](_0x22e14f),_0x3f1924[_0x3604('0x4d')][_0x3343d1]['revisionHistoryAttachChange']=_0x22e14f['id'];}_0x3f1924[_0x3604('0x70')]=_0x3f1924['changes'][_0x3604('0x6a')](_0x215e39);}return _0x3f1924;}[_0x3604('0xfa')](_0x944838,_0x152b92){for(let _0x126feb=0x0;_0x126feb<_0x944838[_0x3604('0x17')];_0x126feb++)for(const [_0x39049a,_0x1c7ca9]of _0x152b92)_0x1c7ca9['start'][_0x3604('0x8a')](_0x944838[_0x126feb][_0x3604('0x47')])&&_0x944838[_0x126feb][_0x3604('0xfc')][_0x3604('0xe7')](_0x39049a),_0x1c7ca9[_0x3604('0x1d')][_0x3604('0x8a')](_0x944838[_0x126feb][_0x3604('0xf')])&&_0x944838[_0x126feb][_0x3604('0x11')][_0x3604('0xe7')](_0x39049a);}[_0x3604('0x1c')](_0x290a56,_0x146bc5){let _0x42f393=[],_0x4707f3=0x0,_0x5f54a7=0x0;for(;_0x4707f3<_0x290a56[_0x3604('0x17')]||_0x5f54a7<_0x146bc5['length'];){const _0x4318b9=_0x290a56[_0x4707f3]||{},_0x2a210a=_0x146bc5[_0x5f54a7]||{};if(_0x4318b9['id']==_0x2a210a['id'])_0x4707f3++,_0x5f54a7++,_0x42f393['push'](_0x4318b9);else{if(_0x2a210a[_0x3604('0xcb')]&&_0x4318b9[_0x3604('0x11b')]){const {commonTape:_0x32a218,iEnd:_0x289c53,jEnd:_0x1f64da}=this['_threeWayMerge'](_0x290a56,_0x4707f3,_0x146bc5,_0x5f54a7);_0x42f393=_0x42f393[_0x3604('0x6a')](_0x32a218),_0x4707f3=_0x289c53,_0x5f54a7=_0x1f64da;}else _0x2a210a['isRemoved']?(_0x5f54a7++,_0x42f393[_0x3604('0xe7')](_0x2a210a)):(_0x4707f3++,_0x42f393[_0x3604('0xe7')](_0x4318b9));}}return _0x42f393;}[_0x3604('0xf9')](_0x20cebf,_0x24aa27){const _0x479294=[];for(let _0x1e9860=0x0;_0x1e9860<_0x20cebf[_0x3604('0x17')];_0x1e9860++){for(let _0x2ab424=0x0;_0x2ab424<_0x20cebf[_0x1e9860][_0x3604('0xfc')][_0x3604('0x17')];_0x2ab424++){const _0x4939ef=_0x20cebf[_0x1e9860][_0x3604('0xfc')][_0x2ab424];if(!_0x24aa27['has'](_0x4939ef))continue;const {group:_0x5c3c31,type:_0x18a00e,authorId:_0xef5aab}=_0x5f312a(_0x4939ef);_0x3604('0x11d')!=_0x5c3c31||_0x3604('0x7b')!=_0x18a00e&&_0x3604('0x9b')!=_0x18a00e||(_0x479294[_0x3604('0x43')]({'type':_0x18a00e,'name':_0x4939ef,'userId':_0xef5aab}),_0x20cebf[_0x1e9860][_0x3604('0xfc')][_0x3604('0x59')](_0x2ab424,0x1),_0x2ab424--);}_0x982fc1(_0x20cebf[_0x1e9860]);for(let _0x346fde=0x0;_0x346fde<_0x20cebf[_0x1e9860][_0x3604('0x11')][_0x3604('0x17')];_0x346fde++){const _0x5a7e40=_0x20cebf[_0x1e9860][_0x3604('0x11')][_0x346fde];if(!_0x24aa27[_0x3604('0x87')](_0x5a7e40))continue;const {group:_0x4207f8,type:_0x475a2c}=_0x5f312a(_0x5a7e40);if(_0x3604('0x11d')!=_0x4207f8||'insertion'!=_0x475a2c&&'deletion'!=_0x475a2c)continue;_0x20cebf[_0x1e9860][_0x3604('0x11')]['splice'](_0x346fde,0x1),_0x346fde--;const _0x376a3a=_0x479294['findIndex'](_0x5d9a35=>_0x5d9a35[_0x3604('0x94')]==_0x5a7e40);_0x376a3a>-0x1&&_0x479294[_0x3604('0x59')](_0x376a3a,0x1);}}function _0x5f312a(_0xfd196){const _0x9deae5=_0xfd196[_0x3604('0xd1')](':');return{'group':_0x9deae5[0x0],'type':_0x9deae5[0x1],'subType':_0x9deae5[_0x3604('0x17')]>=0x5?_0x9deae5[0x2]:null,'id':_0x9deae5[_0x3604('0x17')]<0x5?_0x9deae5[0x2]:_0x9deae5[0x3],'authorId':_0x9deae5[_0x3604('0x17')]<0x5?_0x9deae5[0x3]:_0x9deae5[0x4],'markerCount':0x6==_0x9deae5['length']?_0x9deae5[0x5]:null};}function _0x982fc1(_0x6b36bf){for(let _0x14c03f=0x0;_0x14c03f<_0x479294[_0x3604('0x17')];_0x14c03f++){if(_0x6b36bf[_0x3604('0x11b')]&&_0x3604('0x7b')==_0x479294[_0x14c03f][_0x3604('0x86')])return _0x6b36bf[_0x3604('0x46')]=_0x479294[_0x14c03f],void delete _0x6b36bf[_0x3604('0x11b')];if(!_0x6b36bf[_0x3604('0x11b')]&&!_0x6b36bf[_0x3604('0xcb')]&&_0x3604('0x9b')==_0x479294[_0x14c03f][_0x3604('0x86')])return void(_0x6b36bf[_0x3604('0xb7')]=_0x479294[_0x14c03f]);}}}[_0x3604('0x119')](_0x11bd10,_0x493344){let _0x40490a=0x0,_0x21ff8d=!0x1;const _0x35712a=new Map();for(const _0x2d16b6 of _0x11bd10)_0x2d16b6[_0x493344]?_0x21ff8d&&(_0x40490a++,_0x21ff8d=!0x1):(_0x40490a++,_0x21ff8d=!0x0),_0x35712a[_0x3604('0xfd')](_0x2d16b6['id'],_0x40490a);for(let _0x596fc6=0x0;_0x596fc6<_0x11bd10[_0x3604('0x17')];_0x596fc6++){if('isRemoved'==_0x493344&&_0x11bd10[_0x596fc6][_0x3604('0x11b')]||_0x3604('0x11b')==_0x493344&&_0x11bd10[_0x596fc6][_0x3604('0xcb')])continue;if(_0x3604('0xd')==_0x11bd10[_0x596fc6][_0x3604('0x86')]){_0x11bd10[_0x596fc6][_0x3604('0x30')]=0x0;continue;}const _0x51a97a=_0x35712a[_0x3604('0xa8')](_0x11bd10[_0x596fc6][_0x3604('0x33')]),_0xe98708=_0x35712a[_0x3604('0xa8')](_0x11bd10[_0x596fc6]['id']);_0x11bd10[_0x596fc6][_0x3604('0x30')]=_0x51a97a-_0xe98708;}}[_0x3604('0x62')](_0x2c4e78,_0x53ee45,_0x3fc628=!0x1){const _0x4d32c7=[];let _0x4d4aa5=this[_0x3604('0x38')]['getIndex'](_0x2c4e78),_0xff7685=this[_0x3604('0x38')][_0x3604('0x72')](_0x53ee45);for(-0x1==_0xff7685&&(_0xff7685=this[_0x3604('0x38')]['_revisions'][_0x3604('0x17')],_0x3fc628=!0x1);_0x4d4aa5<_0xff7685;)_0x4d32c7[_0x3604('0xe7')](this['repository'][_0x3604('0x9f')](_0x4d4aa5)),_0x4d4aa5++;return _0x3fc628&&_0x4d32c7[_0x3604('0xe7')](this[_0x3604('0x38')][_0x3604('0x9f')](_0x4d4aa5)),_0x4d32c7;}['_threeWayMerge'](_0x278f1e,_0x5e7db4,_0x531b65,_0x4b1c53){const _0x2f561a=this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xf6')];let _0x4c36ff=_0x5e7db4;for(;_0x278f1e[_0x4c36ff]&&_0x278f1e[_0x4c36ff][_0x3604('0x11b')];)_0x4c36ff++;let _0x3e528d=_0x4b1c53;for(;_0x531b65[_0x3e528d]&&_0x531b65[_0x3e528d]['isRemoved'];)_0x3e528d++;_0x485a0f(_0x278f1e,_0x5e7db4,_0x4c36ff),_0x485a0f(_0x531b65,_0x4b1c53,_0x3e528d);const _0x57354c=_0x531b65['slice'](_0x4b1c53,_0x3e528d)['concat'](_0x278f1e['slice'](_0x5e7db4,_0x4c36ff));return _0x57354c[_0x3604('0x8b')]((_0x5142c3,_0x1538a8)=>_0x5142c3['side']!=_0x1538a8[_0x3604('0xc8')]?_0x5142c3[_0x3604('0xc8')]-_0x1538a8['side']:_0x5142c3[_0x3604('0x91')]!=_0x1538a8[_0x3604('0x91')]?_0x5142c3['level']-_0x1538a8[_0x3604('0x91')]:_0x5142c3[_0x3604('0x30')]!=_0x1538a8[_0x3604('0x30')]?_0x1538a8[_0x3604('0x30')]-_0x5142c3[_0x3604('0x30')]:!!_0x5142c3[_0x3604('0x11b')]!=!!_0x1538a8[_0x3604('0x11b')]?-0x1==_0x5142c3[_0x3604('0xc8')]||0x0==_0x5142c3[_0x3604('0xc8')]?_0x5142c3[_0x3604('0x11b')]?-0x1:0x1:_0x5142c3[_0x3604('0x11b')]?0x1:-0x1:_0x5142c3[_0x3604('0xcd')]-_0x1538a8[_0x3604('0xcd')]),{'commonTape':_0x57354c,'iEnd':_0x4c36ff,'jEnd':_0x3e528d};function _0x485a0f(_0x4d0bcb,_0x20fb0a,_0x415ff7){let _0x7ab01a=-0x1,_0x521e23=Number['POSITIVE_INFINITY'],_0x4502a2=!0x0;for(let _0x2022a8=_0x20fb0a;_0x2022a8<_0x415ff7;_0x2022a8++)if(_0x2f561a[_0x3604('0xab')](_0x4d0bcb[_0x2022a8]['item'])||(_0x4502a2=!0x1),_0x4d0bcb[_0x2022a8]['item'][_0x3604('0x16')]<_0x20fb0a&&(_0x7ab01a=_0x2022a8),_0x4d0bcb[_0x2022a8][_0x3604('0x9c')]['endIndex']>=_0x415ff7){_0x521e23=_0x2022a8;break;}_0x4502a2&&(_0x7ab01a=_0x415ff7-0x1);for(let _0xab1d8d=_0x20fb0a;_0xab1d8d<_0x415ff7;_0xab1d8d++)_0x4d0bcb[_0xab1d8d]['side']=_0xab1d8d<=_0x7ab01a?-0x1:_0xab1d8d<_0x521e23?0x0:0x1,_0x4d0bcb[_0xab1d8d][_0x3604('0xcd')]=_0xab1d8d;let _0x430637=0x0;for(let _0x4e9591=_0x20fb0a;_0x4e9591<=_0x7ab01a;_0x4e9591++)0x0==_0x4d0bcb[_0x4e9591][_0x3604('0x30')]?_0x4d0bcb[_0x4e9591][_0x3604('0x91')]=_0x430637:(_0x430637++,_0x4d0bcb[_0x4e9591]['level']=_0x430637,_0x430637++);for(let _0x3e3fd8=_0x20fb0a;_0x3e3fd8<_0x415ff7;_0x3e3fd8++)0x0==_0x4d0bcb[_0x3e3fd8][_0x3604('0xc8')]&&(_0x4d0bcb[_0x3e3fd8][_0x3604('0x91')]=_0x430637);_0x430637=0x0;for(let _0x29326b=_0x415ff7-0x1;_0x29326b>=_0x521e23;_0x29326b--)0x0==_0x4d0bcb[_0x29326b][_0x3604('0x30')]?_0x4d0bcb[_0x29326b][_0x3604('0x91')]=_0x430637:(_0x430637--,_0x4d0bcb[_0x29326b]['level']=_0x430637,_0x430637--);}}['_fixObsoleteTags'](_0x39fa2b){const _0x2bccac=new Map(),_0x3b7aa0=this['editor'][_0x3604('0x51')][_0x3604('0xf6')];for(let _0x41408b=0x1;_0x41408b<_0x39fa2b[_0x3604('0x17')];_0x41408b++){let _0x1229bc,_0x6707f,_0x2ed925;const _0x132a99=_0x39fa2b[_0x41408b],_0xb9b784=_0x39fa2b[_0x41408b-0x1];if(_0x3604('0xd')==_0x132a99[_0x3604('0x86')])continue;if(_0x132a99[_0x3604('0x86')]!=_0xb9b784[_0x3604('0x86')])continue;if(!_0x3b7aa0[_0x3604('0x20')](_0xb9b784['item'])||_0x3b7aa0[_0x3604('0x10')](_0xb9b784['item']))continue;if(!_0x3b7aa0[_0x3604('0x20')](_0x132a99[_0x3604('0x9c')])||_0x3b7aa0[_0x3604('0x10')](_0x132a99[_0x3604('0x9c')]))continue;if((_0x39fa2b[_0x41408b][_0x3604('0x11b')]||_0x39fa2b[_0x41408b][_0x3604('0x46')])&&_0x39fa2b[_0x41408b-0x1][_0x3604('0xcb')])_0x1229bc=_0x39fa2b[_0x41408b],_0x6707f=_0x39fa2b[_0x41408b-0x1],_0x2ed925=_0x41408b-0x1;else{if(!_0x39fa2b[_0x41408b][_0x3604('0xcb')]||!_0x39fa2b[_0x41408b-0x1][_0x3604('0x11b')]&&!_0x39fa2b[_0x41408b-0x1][_0x3604('0x46')])continue;_0x1229bc=_0x39fa2b[_0x41408b-0x1],_0x6707f=_0x39fa2b[_0x41408b],_0x2ed925=_0x41408b;}const _0x5c8673=_0x1229bc['level']==_0x6707f[_0x3604('0x91')],_0x2cf9f2=Math[_0x3604('0x77')](_0x1229bc[_0x3604('0x91')])<Math[_0x3604('0x77')](_0x6707f['level'])&&0x0==_0x6707f[_0x3604('0x30')];(_0x5c8673||_0x2cf9f2)&&(_0x2bccac[_0x3604('0xfd')](_0x6707f['id'],_0x1229bc['id']),_0x39fa2b[_0x3604('0x59')](_0x2ed925,0x1),_0x41408b--,_0x1229bc['isAdded']=!0x1);}for(let _0x3bb04f=0x0;_0x3bb04f<_0x39fa2b[_0x3604('0x17')];_0x3bb04f++)_0x2bccac[_0x3604('0x87')](_0x39fa2b[_0x3bb04f][_0x3604('0x33')])&&(_0x39fa2b[_0x3bb04f][_0x3604('0x33')]=_0x2bccac[_0x3604('0xa8')](_0x39fa2b[_0x3bb04f][_0x3604('0x33')]));}[_0x3604('0x6b')](_0x1b1e3a){const _0x1c0555=new Set(_0x1b1e3a['map'](_0x1a580f=>_0x1a580f['id']));for(let _0x561b7f=0x0;_0x561b7f<_0x1b1e3a[_0x3604('0x17')];_0x561b7f++)_0x1c0555[_0x3604('0x87')](_0x1b1e3a[_0x561b7f][_0x3604('0x33')])||0x0==_0x1b1e3a[_0x561b7f]['distance']||(_0x1b1e3a[_0x561b7f][_0x3604('0x100')]=!0x0);return _0x1b1e3a[_0x3604('0x45')](_0x587182=>!_0x587182['isIncorrect']);}[_0x3604('0x10c')](_0x51d0e0){const _0x2249cf=new Set();for(let _0x3a45d1=0x0;_0x3a45d1<_0x51d0e0[_0x3604('0x17')];_0x3a45d1++){if(_0x2249cf[_0x3604('0x87')](_0x51d0e0[_0x3a45d1]['id'])&&_0x51d0e0[_0x3a45d1][_0x3604('0xcb')]&&(_0x51d0e0[_0x3a45d1]['isIncorrect']=!0x0),_0x51d0e0[_0x3a45d1][_0x3604('0x100')])continue;if(0x0==_0x51d0e0[_0x3a45d1][_0x3604('0x30')])continue;if(_0x3604('0xc3')!=_0x51d0e0[_0x3a45d1]['type'])continue;if(null==_0x51d0e0[_0x3a45d1][_0x3604('0x33')])continue;let _0x476c91=_0x3a45d1+0x1,_0x36367f=0x0;for(;_0x51d0e0[_0x476c91]['id']!=_0x51d0e0[_0x3a45d1][_0x3604('0x33')];)_0x3604('0xc3')==_0x51d0e0[_0x476c91][_0x3604('0x86')]?_0x36367f++:_0x3604('0x7e')==_0x51d0e0[_0x476c91][_0x3604('0x86')]&&_0x36367f--,_0x476c91++;if(0x0!=_0x36367f){if(_0x51d0e0[_0x3a45d1][_0x3604('0xcb')])_0x51d0e0[_0x3a45d1][_0x3604('0x100')]=!0x0;else for(;_0x476c91!=_0x3a45d1;)_0x51d0e0[_0x476c91][_0x3604('0xcb')]&&0x0!=_0x51d0e0[_0x476c91][_0x3604('0x30')]&&(_0x51d0e0[_0x476c91]['isIncorrect']=!0x0,_0x2249cf[_0x3604('0xc6')](_0x51d0e0[_0x476c91][_0x3604('0x33')])),_0x476c91--;}}return _0x51d0e0[_0x3604('0x45')](_0x2976a1=>!_0x2976a1['isIncorrect']);}[_0x3604('0x68')](_0xf9277b){const _0x1e435e=this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xf6')];for(let _0x337da6=0x0;_0x337da6<_0xf9277b['length'];_0x337da6++){if(!(_0xf9277b[_0x337da6][_0x3604('0x11b')]||_0xf9277b[_0x337da6][_0x3604('0x46')]||_0xf9277b[_0x337da6][_0x3604('0xcb')]||_0xf9277b[_0x337da6][_0x3604('0xb7')]))continue;if(0x0==_0xf9277b[_0x337da6][_0x3604('0x30')])continue;const _0x5cf2c0=_0xf9277b[_0x337da6][_0x3604('0x9c')];_0x1e435e[_0x3604('0x20')](_0x5cf2c0)||_0x1e435e['isLimit'](_0x5cf2c0)||(_0xf9277b[_0x337da6][_0x3604('0x11b')]&&delete _0xf9277b[_0x337da6][_0x3604('0x11b')],_0xf9277b[_0x337da6][_0x3604('0x46')]&&delete _0xf9277b[_0x337da6]['isAddSuggestion'],_0xf9277b[_0x337da6][_0x3604('0xb7')]&&delete _0xf9277b[_0x337da6][_0x3604('0xb7')],_0xf9277b[_0x337da6][_0x3604('0xcb')]&&(_0xf9277b[_0x337da6][_0x3604('0x100')]=!0x0));}return _0xf9277b['filter'](_0x4977cf=>!_0x4977cf[_0x3604('0x100')]);}[_0x3604('0x27')](_0x152345,_0x492bb9,_0x5c14f3){const _0x296f6b=new _0x31ed5d(),_0x53a14=[],_0x23ae9a=new Map(),_0x5da321=this[_0x3604('0xf7')][_0x3604('0x51')],_0x18d6d6=_0x5da321[_0x3604('0xf6')],_0x42eaf0=[_0x296f6b],_0x2cdc02={},_0x5e3051={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xf8378a=null;const _0x119d43=[0x0];for(let _0x3f23e6=0x0;_0x3f23e6<_0x152345[_0x3604('0x17')];_0x3f23e6++){let _0x439386,_0x15e04e;if(_0x3604('0xc3')===_0x152345[_0x3f23e6]['type']){_0x439386=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43);const _0x5678e9=new _0x2bb520(_0x152345[_0x3f23e6]['item'][_0x3604('0x94')],_0x152345[_0x3f23e6][_0x3604('0x9c')]['getAttributes']());_0x42eaf0[0x0][_0x3604('0x4c')](_0x5678e9),_0x119d43[_0x3604('0xe7')](0x0),_0x42eaf0[_0x3604('0x43')](_0x5678e9),_0x15e04e=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43),_0xf8378a=null;}else{if(_0x3604('0x7e')===_0x152345[_0x3f23e6][_0x3604('0x86')])_0x42eaf0[_0x3604('0x13')](),_0x439386=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43),_0x119d43[_0x3604('0xb9')](),_0x119d43[_0x119d43[_0x3604('0x17')]-0x1]++,_0x15e04e=_0x5da321['createPositionFromPath'](_0x296f6b,_0x119d43),_0xf8378a=null;else{if(_0x439386=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43),_0xf8378a&&_0x9bc52f(_0xf8378a,_0x152345[_0x3f23e6][_0x3604('0x9c')]))_0xf8378a['_data']+=_0x152345[_0x3f23e6][_0x3604('0x9c')]['data'];else{const _0x4cc8a2=new _0xc9bffc(_0x152345[_0x3f23e6]['item'][_0x3604('0xdd')],_0x152345[_0x3f23e6]['item'][_0x3604('0xb4')]());_0x42eaf0[0x0]['_appendChild'](_0x4cc8a2),_0xf8378a=_0x4cc8a2;}_0x119d43[_0x119d43[_0x3604('0x17')]-0x1]+=_0x152345[_0x3f23e6][_0x3604('0x9c')][_0x3604('0xdf')],_0x15e04e=_0x5da321['createPositionFromPath'](_0x296f6b,_0x119d43);}}for(const _0x15b429 of _0x152345[_0x3f23e6][_0x3604('0xfc')])_0x23ae9a[_0x3604('0xfd')](_0x15b429,{'start':_0x439386,'end':null});_0x1132df('isRemoveSuggestion',_0x3f23e6,_0x439386,_0x15e04e),_0x1132df(_0x3604('0x46'),_0x3f23e6,_0x439386,_0x15e04e),_0x1132df('isRemoved',_0x3f23e6,_0x439386,_0x15e04e),_0x1132df('isAdded',_0x3f23e6,_0x439386,_0x15e04e);for(const _0x376b54 of _0x152345[_0x3f23e6][_0x3604('0x11')]){_0x23ae9a['get'](_0x376b54)[_0x3604('0x1d')]=_0x15e04e;}}for(const [_0x5373c1,_0x802b44]of _0x23ae9a){const _0x5236d5=this[_0x3604('0xf7')][_0x3604('0x51')]['createRange'](_0x802b44[_0x3604('0x10d')],_0x802b44[_0x3604('0x1d')]);_0x296f6b[_0x3604('0xc1')][_0x3604('0xfd')](_0x5373c1,_0x5236d5);}return _0x53a14[_0x3604('0x8b')]((_0x3fc2bf,_0x5bc1fd)=>{const _0x476ef4=_0x296f6b['markers']['get']('revision:'+_0x3fc2bf['id']),_0x425f38=_0x296f6b[_0x3604('0xc1')][_0x3604('0xa8')](_0x3604('0xb2')+_0x5bc1fd['id']);return _0x476ef4[_0x3604('0x10d')][_0x3604('0xc0')](_0x425f38[_0x3604('0x10d')])?-0x1:_0x476ef4[_0x3604('0x10d')][_0x3604('0xde')](_0x425f38[_0x3604('0x10d')])?0x1:_0x476ef4['end'][_0x3604('0xc0')](_0x425f38[_0x3604('0x1d')])?-0x1:_0x476ef4[_0x3604('0x1d')][_0x3604('0xde')](_0x425f38[_0x3604('0x1d')])?0x1:'add'===_0x3fc2bf[_0x3604('0x86')]?-0x1:0x1;}),{'root':_0x296f6b,'changes':_0x53a14};function _0x1132df(_0x551b97,_0x2e6fd2,_0x30097e,_0x2bca10){const _0x54d0c5=!!_0x152345[_0x2e6fd2][_0x551b97],_0x517d40=_0x54d0c5?_0x152345[_0x2e6fd2][_0x551b97][_0x3604('0x6')]:null,_0x2e1074=_0x2e6fd2===_0x152345[_0x3604('0x17')]-0x1,_0x20e233=_0x5e3051[_0x551b97][0x0],_0x4b61b4=_0x18d6d6[_0x3604('0x118')](_0x152345[_0x2e6fd2][_0x3604('0x9c')]);!_0x2cdc02[_0x551b97]&&_0x54d0c5?_0x2cdc02[_0x551b97]={'start':_0x30097e,'tapeItem':_0x152345[_0x2e6fd2],'userId':_0x517d40,'type':_0x551b97}:_0x2cdc02[_0x551b97]&&!_0x54d0c5?(_0x2cdc02[_0x551b97][_0x3604('0x1d')]=_0x30097e,_0x1f098e(_0x2cdc02[_0x551b97]),_0x2cdc02[_0x551b97]=null):_0x2cdc02[_0x551b97]&&_0x54d0c5&&_0x2cdc02[_0x551b97]['userId']!==_0x517d40&&(_0x2cdc02[_0x551b97]['end']=_0x30097e,_0x20e233&&_0x20e233[_0x3604('0x6')]===_0x2cdc02[_0x551b97]['userId']||_0x1f098e(_0x2cdc02[_0x551b97]),_0x2cdc02[_0x551b97]={'start':_0x30097e,'tapeItem':_0x152345[_0x2e6fd2],'userId':_0x517d40,'type':_0x551b97}),_0x2cdc02[_0x551b97]&&_0x4b61b4&&(_0x3604('0xc3')!==_0x152345[_0x2e6fd2][_0x3604('0x86')]||_0x20e233&&_0x20e233[_0x3604('0x6')]===_0x517d40||_0x5e3051[_0x551b97]['unshift']({'userId':_0x517d40,'object':_0x152345[_0x2e6fd2]['item'],'change':_0x2cdc02[_0x551b97]}),_0x3604('0x7e')===_0x152345[_0x2e6fd2][_0x3604('0x86')]&&_0x20e233&&_0x20e233[_0x3604('0x28')]===_0x152345[_0x2e6fd2][_0x3604('0x9c')]&&(_0x5e3051[_0x551b97][_0x3604('0x13')](),_0x2cdc02[_0x551b97]=_0x20e233['change'])),_0x2cdc02[_0x551b97]&&_0x2e1074&&(_0x2cdc02[_0x551b97][_0x3604('0x1d')]=_0x2bca10,_0x1f098e(_0x2cdc02[_0x551b97]),_0x2cdc02[_0x551b97]=null);}function _0x1f098e({start:_0x5d0e93,end:_0x504105,tapeItem:_0x5ee90a,userId:_0x49c54f,type:_0x354f37}){const _0x1822f0=_0x5ee90a['item'],_0x58d852=_0x5da321['schema']['isBlock'](_0x1822f0)&&!_0x5da321['schema'][_0x3604('0x10')](_0x1822f0),_0x1c8f13=_0x5d0e93['nodeAfter']==_0x504105[_0x3604('0x1f')]&&_0x504105[_0x3604('0xa3')];if(_0x58d852&&_0x1c8f13)return;const _0x209378=_0x5da321['createRange'](_0x5d0e93,_0x504105),_0x424807=_0x492bb9['get'](_0x49c54f),_0x1b7196=new _0x58e1bf({'author':_0x424807,'type':'isAdded'==_0x354f37||'isAddSuggestion'==_0x354f37?'add':_0x3604('0xc7'),'data':{'isSuggestion':'isAddSuggestion'==_0x354f37||_0x3604('0xb7')==_0x354f37},'createdAt':new Date(),'rootName':_0x5c14f3});_0x53a14[_0x3604('0xe7')](_0x1b7196),_0x296f6b[_0x3604('0xc1')][_0x3604('0xfd')](_0x3604('0xb2')+_0x1b7196['id'],_0x209378);}function _0x9bc52f(_0x3a2487,_0x31f14a){const _0x3c6105=_0x3a2487[_0x3604('0xb4')](),_0x46e932=_0x31f14a['getAttributes']();for(const _0x18a8fa of _0x3c6105){if(_0x18a8fa[0x1]!==_0x31f14a[_0x3604('0x102')](_0x18a8fa[0x0]))return!0x1;_0x46e932[_0x3604('0x2d')]();}return _0x46e932[_0x3604('0x2d')]()[_0x3604('0x34')];}}[_0x3604('0xd6')](){this['editor']['conversion'][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xaf')]({'view':_0x3604('0x10a')}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0x48'))[_0x3604('0x53')]({'model':'revision','view':_0x34ea94=>{const _0x5d1a07=_0x34ea94['markerName'][_0x3604('0xd1')](':')[0x1],_0x26728d=this['_getChangeFromId'](_0x5d1a07);if(!_0x26728d)return null;const _0x3b12bf=_0x3604('0xc6')==_0x26728d['type']?_0x3604('0x7b'):_0x3604('0x9b'),_0x2fd9d2=[_0x3604('0x76'),_0x3604('0x99')+_0x3b12bf];return _0x26728d[_0x3604('0xdd')]['isSuggestion']&&_0x2fd9d2[_0x3604('0xe7')](_0x3604('0x99')+_0x3b12bf+_0x3604('0x83')),this[_0x3604('0xeb')]==_0x26728d&&_0x2fd9d2[_0x3604('0xe7')]('ck-suggestion-marker--active'),{'classes':_0x2fd9d2,'attributes':{'data-change-id':_0x5d1a07}};}}),this['editor'][_0x3604('0xbd')]['for'](_0x3604('0xa2'))[_0x3604('0xc6')](_0x192f34=>{_0x192f34['on'](_0x3604('0xf2'),(_0x3ba67f,_0x561d23,_0x5d1da5)=>{const _0x1a7ca7=_0x561d23[_0x3604('0x115')]['getChild'](0x0);if(!_0x1a7ca7||!_0x1a7ca7['is']('element','code'))return;if(!_0x5d1da5[_0x3604('0x101')]['consume'](_0x1a7ca7,{'attributes':[_0x3604('0x36'),'vid_end']}))return;const _0x264239=_0x561d23[_0x3604('0x117')][_0x3604('0x10d')][_0x3604('0x5a')];_0x5d1da5[_0x3604('0x6e')][_0x3604('0x31')](_0x3604('0x36'),_0x1a7ca7[_0x3604('0x102')]('vid_start'),_0x264239),_0x5d1da5['writer'][_0x3604('0x31')](_0x3604('0x1a'),_0x1a7ca7[_0x3604('0x102')](_0x3604('0x1a')),_0x264239);},{'priority':_0x3604('0x50')});}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xc6')](_0x1280ba=>{_0x1280ba['on'](_0x3604('0x3d'),(_0x195c08,_0x26f897,_0x401a09)=>{if(!_0x401a09[_0x3604('0x101')][_0x3604('0x104')](_0x26f897[_0x3604('0x115')],{'attributes':['vid_start',_0x3604('0x1a')]}))return;if(_0x26f897['modelRange'][_0x3604('0x4e')])return;const _0x3b379a=_0x26f897[_0x3604('0x117')][_0x3604('0x10d')][_0x3604('0x5a')];_0x3b379a['hasAttribute'](_0x3604('0x36'))||_0x3b379a[_0x3604('0xd0')](_0x3604('0x6c'))||(_0x401a09[_0x3604('0x6e')][_0x3604('0x31')]('vid_start',_0x26f897[_0x3604('0x115')][_0x3604('0x102')](_0x3604('0x36')),_0x3b379a),_0x401a09['writer'][_0x3604('0x31')]('vid_end',_0x26f897['viewItem'][_0x3604('0x102')]('vid_end'),_0x3b379a));},{'priority':_0x3604('0x50')});}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0x42')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x3604('0x6c'),'value':_0x59f98f=>_0x59f98f[_0x3604('0x102')](_0x3604('0x6c'))}}),this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xf6')]['on']('checkAttribute',(_0x20d9e3,[,_0x5e5a3c])=>{[_0x3604('0x36'),_0x3604('0x1a'),_0x3604('0x6c')]['includes'](_0x5e5a3c)&&(_0x20d9e3[_0x3604('0xe2')]=!0x0,_0x20d9e3[_0x3604('0x74')]());},{'priority':_0x3604('0xe5')}),this['editor']['conversion'][_0x3604('0xa7')](_0x3604('0xa9'))['add'](_0xfa0a94=>{_0xfa0a94['on']('attribute:vid',(_0xe1f737,_0x383dcb,_0x3aeb17)=>{if('\x20'!=_0x383dcb[_0x3604('0x9c')][_0x3604('0xdd')]||_0x383dcb['item'][_0x3604('0x1f')][_0x3604('0x9a')]>0x1)return;if(!_0x3aeb17[_0x3604('0x101')]['consume'](_0x383dcb[_0x3604('0x9c')],_0xe1f737[_0x3604('0x94')]))return;const _0x361a80=_0x3aeb17[_0x3604('0x6e')],_0x1c2260=_0x3aeb17['mapper'][_0x3604('0x5')](_0x383dcb['range']);_0x361a80['wrap'](_0x1c2260,_0x361a80[_0x3604('0x121')](_0x3604('0x106')));});}),this[_0x3604('0xf7')]['conversion'][_0x3604('0xa7')](_0x3604('0xa9'))['markerToData']({'model':_0x3604('0x10a')}),this['editor'][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0xed'),function(_0x56f1e4){const _0x356ad3=_0x56f1e4['plugins'][_0x3604('0xa8')](_0x3604('0x113'));return(_0x272418,_0x4cc8bd,_0xb49a9a)=>{const _0x21e43d=_0x4cc8bd[_0x3604('0xba')]['split'](':')[0x1],_0x39a766=_0x356ad3['_getChangeFromId'](_0x21e43d);if(!_0x39a766)return null;const _0x35e85b='add'==_0x39a766[_0x3604('0x86')]?_0x3604('0xd1'):_0x3604('0xa5');if(!_0xb49a9a[_0x3604('0x101')]['test'](_0x4cc8bd[_0x3604('0x82')],_0x272418[_0x3604('0x94')]))return;const _0x48bf9f=_0x4cc8bd[_0x3604('0x82')][_0x3604('0x8d')](),_0x436185=_0x4cc8bd[_0x3604('0x82')][_0x3604('0x10d')],_0x2b5c7e=_0x56f1e4[_0x3604('0x51')][_0x3604('0xf6')];let _0x1559fa=null,_0x36e767=null,_0x42014f=!0x1,_0x545c6b=!0x1;for(const _0x3de5f1 of _0x48bf9f){const _0x1b19fd=_0x3de5f1['item'];_0x42014f=_0x42014f||_0x2b5c7e[_0x3604('0xc')](_0x1b19fd);const _0x4a0dca=_0xb49a9a[_0x3604('0x7c')][_0x3604('0x80')](_0x1b19fd);if(_0x4a0dca&&_0x4a0dca[_0x3604('0xa0')]('addHighlight'))return;_0x3604('0x7e')==_0x3de5f1[_0x3604('0x86')]&&(_0x2b5c7e[_0x3604('0x20')](_0x1b19fd)&&!_0x2b5c7e[_0x3604('0x10')](_0x1b19fd)&&(_0x1b19fd[_0x3604('0x8c')]||_0x436185[_0x3604('0x9')]?_0x1559fa&&_0x1559fa[_0x3604('0x1f')]==_0x1b19fd||(_0x1559fa=_0x1b19fd,_0x2a300c(_0x3de5f1['previousPosition']),_0x545c6b=!0x0):_0x36e767=_0x36e767||_0x3de5f1[_0x3604('0x47')]));}function _0x2a300c(_0x1f3e0e){const _0x3c1c99=_0xb49a9a[_0x3604('0x6e')]['createUIElement'](_0x3604('0x106'),{'class':_0x3604('0x99')+_0x35e85b}),_0x40b9f2=_0xb49a9a[_0x3604('0x7c')]['toViewPosition'](_0x1f3e0e);_0x39a766[_0x3604('0xdd')][_0x3604('0xfb')]&&_0xb49a9a[_0x3604('0x6e')][_0x3604('0x89')]('ck-suggestion-marker-'+_0x35e85b+_0x3604('0x83'),_0x3c1c99),_0x356ad3['activeChange']==_0x39a766&&_0xb49a9a[_0x3604('0x6e')][_0x3604('0x89')](_0x3604('0xe8'),_0x3c1c99),_0xb49a9a[_0x3604('0x6e')][_0x3604('0x60')](_0x40b9f2,_0x3c1c99),_0xb49a9a[_0x3604('0x7c')][_0x3604('0xd3')](_0x3c1c99,_0x4cc8bd[_0x3604('0xba')]);}_0x42014f||_0x545c6b||!_0x36e767||_0x2a300c(_0x36e767);};}(this[_0x3604('0xf7')]),{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0xee')]['downcastDispatcher']['on'](_0x3604('0x8e'),(_0x345189,_0x12d043,_0x229f73)=>{const _0x349bfb=_0x229f73[_0x3604('0x7c')][_0x3604('0xac')](_0x12d043[_0x3604('0xba')]);if(_0x349bfb)for(const _0x1ea3db of _0x349bfb)(_0x1ea3db[_0x3604('0xa')](_0x3604('0x11f'))||_0x1ea3db[_0x3604('0xa')]('ck-suggestion-marker-merge'))&&(_0x229f73[_0x3604('0x7c')][_0x3604('0xdc')](_0x1ea3db,_0x12d043[_0x3604('0xba')]),_0x229f73['writer'][_0x3604('0xc7')](_0x1ea3db));},{'priority':_0x3604('0x75')}),this['editor'][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0xed'),(_0x69eace,_0x31ae1e,_0x3d6e56)=>{const _0x257a1c=_0x31ae1e['markerName']['split'](':')[0x1],_0x39eb7c=this[_0x3604('0x2b')](_0x257a1c);if(!_0x39eb7c)return null;const _0x3c4ad6=_0x3604('0xc6')==_0x39eb7c['type']?_0x3604('0xd1'):_0x3604('0xa5');if(_0x3d6e56['consumable'][_0x3604('0xf0')](_0x31ae1e['markerRange'],_0x69eace[_0x3604('0x94')]))for(const _0xfd0a80 of _0x31ae1e['markerRange'][_0x3604('0x26')]()){if(!_0xfd0a80['is']('element',_0x3604('0x73')))continue;const _0x5b035d=_0x3d6e56[_0x3604('0x6e')][_0x3604('0xd2')]('span',{'class':_0x3604('0x99')+_0x3c4ad6}),_0x48fabe=_0x3d6e56[_0x3604('0x7c')]['toViewPosition'](this[_0x3604('0xf7')]['model'][_0x3604('0x81')](_0xfd0a80));_0x39eb7c[_0x3604('0xdd')]['isSuggestion']&&_0x3d6e56[_0x3604('0x6e')][_0x3604('0x89')](_0x3604('0x99')+_0x3c4ad6+_0x3604('0x83'),_0x5b035d),this[_0x3604('0xeb')]==_0x39eb7c&&_0x3d6e56['writer'][_0x3604('0x89')]('ck-suggestion-marker--active',_0x5b035d),_0x3d6e56[_0x3604('0x6e')][_0x3604('0x60')](_0x48fabe,_0x5b035d),_0x3d6e56[_0x3604('0x7c')]['bindElementToMarker'](_0x5b035d,_0x31ae1e[_0x3604('0xba')]);}},{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0x108')]['on'](_0x3604('0xb8'),()=>{this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x4b')]['change'](_0x46f25d=>{for(const _0x195178 of this['editor'][_0x3604('0x51')][_0x3604('0x108')]['getRootNames']()){const _0x330bd4=this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0x108')][_0x3604('0x7a')](_0x195178),_0x243053=this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x4b')][_0x3604('0x108')]['getRoot'](_0x195178);if(_0x243053){const _0x1cf4ec=_0x330bd4[_0x3604('0x102')]('revisionHistoryAttachChange');if(_0x46f25d[_0x3604('0x111')](_0x3604('0xcf'),_0x243053),_0x46f25d[_0x3604('0xce')](_0x3604('0xef'),_0x243053),_0x46f25d[_0x3604('0xce')](_0x3604('0x22'),_0x243053),_0x46f25d['removeClass'](_0x3604('0x49'),_0x243053),_0x1cf4ec){const _0xee1edd=this[_0x3604('0x2b')](_0x1cf4ec);if(!_0xee1edd)return null;_0x46f25d[_0x3604('0x31')]('data-change-id',_0x1cf4ec,_0x243053),_0x46f25d[_0x3604('0x89')]('ck-revision-history-root-'+_0xee1edd['type'],_0x243053),this[_0x3604('0xeb')]==_0xee1edd&&_0x46f25d['addClass'](_0x3604('0x49'),_0x243053);}}}});}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xaf')]({'view':_0x3604('0x7f'),'model':_0x31a041=>_0x3604('0x56')+_0x31a041,'converterPriority':_0x3604('0xe5')}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xaf')]({'view':'suggestion','model':_0x24a4ba=>_0x3604('0x57')+_0x24a4ba,'converterPriority':_0x3604('0xe5')}),this[_0x3604('0xf7')][_0x3604('0xbd')]['for'](_0x3604('0xa9'))['markerToData']({'model':_0x3604('0x11d'),'view':_0x4e4966=>({'name':'suggestion:'+_0x4e4966,'group':_0x3604('0x11d')}),'converterPriority':_0x3604('0xe5')}),this['editor'][_0x3604('0xbd')]['for']('editingDowncast')['markerToHighlight']({'model':_0x3604('0x11d'),'view':_0x20c00e=>{const _0x54b851=_0x20c00e[_0x3604('0xba')][_0x3604('0xd1')](':')[0x1];return _0x3604('0x7b')!=_0x54b851&&'deletion'!=_0x54b851?null:{'classes':[_0x3604('0x25'),_0x3604('0x10f')+_0x54b851]};}}),this['editor'][_0x3604('0xee')]['downcastDispatcher']['on'](_0x3604('0x93'),et(this[_0x3604('0xf7')],'merge'),{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0x2f'),et(this['editor'],_0x3604('0xd1')),{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0x1'),(_0xf1aae7,_0x15ee34,_0x39c866)=>{const _0x2b3baa=_0x39c866['mapper'][_0x3604('0xac')](_0x15ee34[_0x3604('0xba')]);if(_0x2b3baa)for(const _0x21c68e of _0x2b3baa)_0x21c68e['is']('uiElement')&&(_0x39c866[_0x3604('0x7c')]['unbindElementFromMarkerName'](_0x21c68e,_0x15ee34[_0x3604('0xba')]),_0x39c866['writer'][_0x3604('0xc7')](_0x21c68e));},{'priority':_0x3604('0x75')});}[_0x3604('0x2b')](_0x5510a3){return this[_0x3604('0x15')][_0x3604('0xa8')](_0x5510a3);}[_0x3604('0x90')](_0x40f617){return this['_changeView']&&this[_0x3604('0x5d')]['destroy'](),this[_0x3604('0x5d')]=new _0x470938(this[_0x3604('0xf7')][_0x3604('0xd4')],_0x40f617),this[_0x3604('0x5d')];}[_0x3604('0xc5')](){this['editor'][_0x3604('0x51')][_0x3604('0x108')][_0x3604('0x116')][_0x3604('0xa1')](_0x3604('0x10a')),this['on'](_0x3604('0x39'),(_0x4acee8,_0x460faf,_0x5ed5a5,_0xe2751b)=>{_0xe2751b&&this[_0x3604('0xec')][_0x3604('0xc7')](_0xe2751b),_0x5ed5a5&&(this[_0x3604('0xec')][_0x3604('0xc6')]({'view':_0x5ed5a5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x291558=this[_0x3604('0xf7')]['editing'],_0x1dea4e=this[_0x3604('0x2b')](_0x5ed5a5['changeId']);let _0x1ec111;if(_0x1dea4e[_0x3604('0xdd')][_0x3604('0x79')]){const _0x4c4a00=_0x291558[_0x3604('0x4b')]['getDomRoot'](_0x1dea4e[_0x3604('0x2e')]);_0x1ec111=Array[_0x3604('0x12')](_0x4c4a00[_0x3604('0x32')]());}else{const _0x1a6d4e=this[_0x3604('0xf7')]['model'][_0x3604('0xc1')]['get']('revision:'+_0x5ed5a5['changeId']);_0x1ec111=Array['from'](_0x291558[_0x3604('0x7c')][_0x3604('0xac')](_0x1a6d4e['name']))[_0x3604('0x97')](_0x2bc14f=>_0x291558[_0x3604('0x4b')]['domConverter'][_0x3604('0x5c')](_0x2bc14f))[_0x3604('0x97')](_0x2a6f00=>Array[_0x3604('0x12')](_0x2a6f00[_0x3604('0x32')]()))[_0x3604('0xbb')]();}if(!this[_0x3604('0x14')])return _0x1ec111[0x0];return _0x1ec111[_0x3604('0x40')](_0x135944=>_0x135944['top']-0x3<=this[_0x3604('0x14')]['y']&&_0x135944[_0x3604('0x105')]+0x3>=this[_0x3604('0x14')]['y']&&_0x135944[_0x3604('0x54')]-0x3<=this[_0x3604('0x14')]['x']&&_0x135944[_0x3604('0xc9')]+0x3>=this[_0x3604('0x14')]['x'])||_0x1ec111[0x0];}}}),this[_0x3604('0xec')]['showStack'](_0x3604('0xea')));}),this['on'](_0x3604('0xda'),(_0x417eac,_0x49b771,_0x18cfc8,_0x434461)=>{this[_0x3604('0x107')]=_0x18cfc8?this['_getViewForChange'](_0x18cfc8):null,this['editor'][_0x3604('0x51')][_0x3604('0xb8')](()=>{const _0x4f5b3a=this[_0x3604('0xf7')][_0x3604('0xee')];_0x434461&&(_0x434461['data'][_0x3604('0x79')]?_0x4f5b3a[_0x3604('0x4b')][_0x3604('0xb8')](_0x14da6e=>{_0x14da6e['removeClass'](_0x3604('0x49'),_0x4f5b3a['view']['document']['getRoot'](_0x434461[_0x3604('0x2e')]));}):_0x4f5b3a[_0x3604('0x24')](_0x3604('0xb2')+_0x434461['id'])),_0x18cfc8&&(_0x18cfc8[_0x3604('0xdd')][_0x3604('0x79')]?_0x4f5b3a[_0x3604('0x4b')][_0x3604('0xb8')](_0xe78b1b=>{_0xe78b1b[_0x3604('0x89')]('ck-revision-history-root--active',_0x4f5b3a[_0x3604('0x4b')][_0x3604('0x108')][_0x3604('0x7a')](_0x18cfc8[_0x3604('0x2e')]));}):_0x4f5b3a['reconvertMarker'](_0x3604('0xb2')+_0x18cfc8['id']));});}),this[_0x3604('0x4a')](this[_0x3604('0xf7')]['editing']['view'][_0x3604('0x108')],_0x3604('0x4'),(_0xa845a,_0x5ef21e)=>{if(this[_0x3604('0xeb')])return;const _0x4b17d8=this['_findChangeIdFromDomTarget'](_0x5ef21e['target']),_0x3cfe0d=this[_0x3604('0x15')]['get'](_0x4b17d8);_0x3cfe0d?(this[_0x3604('0x14')]={'x':_0x5ef21e[_0x3604('0x3a')]['x'],'y':_0x5ef21e[_0x3604('0x3a')]['y']},this[_0x3604('0x107')]=this[_0x3604('0x90')](_0x3cfe0d)):(this[_0x3604('0x14')]=null,this[_0x3604('0x107')]=null);}),this[_0x3604('0x4a')](this['editor'][_0x3604('0xee')][_0x3604('0x4b')][_0x3604('0x108')],_0x3604('0xfe'),(_0x2b9c45,_0x415686)=>{const _0x162389=this[_0x3604('0x3b')](_0x415686[_0x3604('0xf4')]),_0x1ecc18=this[_0x3604('0x15')][_0x3604('0xa8')](_0x162389);_0x1ecc18?(this['_activeViewTarget']={'x':_0x415686[_0x3604('0x3a')]['x'],'y':_0x415686[_0x3604('0x3a')]['y']},_0x1ecc18===this['activeChange']?this[_0x3604('0xec')][_0x3604('0xdb')]():this[_0x3604('0xeb')]=_0x1ecc18):(this['_activeViewTarget']=null,this['activeChange']=null);});}[_0x3604('0x3b')](_0x2308ca){do{const _0x45fa6a=_0x2308ca[_0x3604('0x102')](_0x3604('0xcf'));if(_0x45fa6a)return _0x45fa6a;_0x2308ca=_0x2308ca[_0x3604('0x1f')];}while(_0x2308ca);return null;}[_0x3604('0x6d')](){this[_0x3604('0xf7')][_0x3604('0x51')]['change'](_0x569012=>{for(const _0x592f2a of this[_0x3604('0xf7')]['model'][_0x3604('0xc1')])_0x569012[_0x3604('0x55')](_0x592f2a);});}}function et(_0x33d187,_0x3323c2){return(_0xdb976d,_0x4df198,_0x125774)=>{if(!_0x125774['consumable'][_0x3604('0xf0')](_0x4df198[_0x3604('0x82')],_0xdb976d[_0x3604('0x94')]))return;const _0x5234e7=_0x4df198['markerRange'][_0x3604('0x8d')](),_0x2cfc29=_0x4df198[_0x3604('0x82')]['start'],_0x57f495=_0x33d187['model'][_0x3604('0xf6')];let _0x328378=null,_0x5a4a05=null,_0x22fbc6=!0x1,_0x289626=!0x1;for(const _0x3f8ec8 of _0x5234e7){const _0x26f7d7=_0x3f8ec8[_0x3604('0x9c')];_0x22fbc6=_0x22fbc6||_0x57f495[_0x3604('0xc')](_0x26f7d7);const _0x4d9fad=_0x125774['mapper'][_0x3604('0x80')](_0x26f7d7);if(_0x4d9fad&&_0x4d9fad[_0x3604('0xa0')](_0x3604('0x29')))return;'elementEnd'==_0x3f8ec8['type']&&(_0x57f495[_0x3604('0x20')](_0x26f7d7)&&!_0x57f495['isLimit'](_0x26f7d7)&&(_0x26f7d7[_0x3604('0x8c')]||_0x2cfc29[_0x3604('0x9')]?_0x328378&&_0x328378['parent']==_0x26f7d7||(_0x328378=_0x26f7d7,_0x243423(_0x3f8ec8[_0x3604('0x47')]),_0x289626=!0x0):_0x5a4a05=_0x5a4a05||_0x3f8ec8[_0x3604('0x47')]));}function _0x243423(_0x7c68af){const _0x12f274=_0x125774[_0x3604('0x7c')][_0x3604('0x66')](_0x7c68af),_0x4836e4=_0x125774[_0x3604('0x6e')][_0x3604('0xd2')](_0x3604('0x106'),{'class':_0x3604('0x10f')+_0x3323c2});_0x125774[_0x3604('0x6e')][_0x3604('0x60')](_0x12f274,_0x4836e4),_0x125774['mapper'][_0x3604('0xd3')](_0x4836e4,_0x4df198[_0x3604('0xba')]);}_0x22fbc6||_0x289626||!_0x5a4a05||_0x243423(_0x5a4a05);};}export class RestoreRevisionCommand extends _0x524429{constructor(_0x1a1d89){super(_0x1a1d89);const _0x48ee01=_0x1a1d89['plugins'][_0x3604('0xa8')](d);this[_0x3604('0xe0')]=!0x1,this[_0x3604('0x4a')](_0x48ee01,_0x3604('0x18'),()=>this[_0x3604('0x11c')]()),this['listenTo'](_0x48ee01,'change:isEnabled',()=>this[_0x3604('0x11c')]());}['execute'](){const _0xaccd1e=this[_0x3604('0xf7')],_0x46a5b4=_0xaccd1e[_0x3604('0x8f')]['get'](d),_0x4d7d37=_0x46a5b4['isReady']?_0x46a5b4[_0x3604('0xe3')][_0x3604('0xe6')]:null;_0xaccd1e['config'][_0x3604('0xa8')](_0x3604('0x69'))[_0x3604('0x78')](_0x4d7d37);}['refresh'](){const {isReady:_0x8296b4,isEnabled:_0x33e45b}=this[_0x3604('0xf7')]['plugins']['get'](d);this['isEnabled']=_0x8296b4&&_0x33e45b;}}export class ShowChangeCommand extends _0x524429{constructor(_0x3908dc,{direction:_0x5a0cfe}){super(_0x3908dc);const _0x323db7=_0x3908dc[_0x3604('0x8f')][_0x3604('0xa8')](d);this[_0x3604('0xe0')]=!0x1,this['_step']=_0x3604('0x114')===_0x5a0cfe?0x1:-0x1,this[_0x3604('0x4a')](_0x323db7,_0x3604('0x18'),()=>this[_0x3604('0x11c')]()),this['listenTo'](_0x323db7,_0x3604('0x71'),()=>this[_0x3604('0x11c')]()),this['listenTo'](_0x323db7,_0x3604('0xda'),()=>this[_0x3604('0x11c')]());}[_0x3604('0x109')](){const _0x458cc=this[_0x3604('0xf7')],_0x14be6c=_0x458cc[_0x3604('0x8f')][_0x3604('0xa8')](d),{isNavigationMode:_0x29dd04,currentChangeNumber:_0x445062}=_0x14be6c;let _0x35d826;if(_0x14be6c[_0x3604('0xeb')]=_0x29dd04?_0x14be6c[_0x3604('0xe3')][_0x3604('0x70')][_0x3604('0xa8')](_0x445062+this[_0x3604('0x10e')]):_0x14be6c[_0x3604('0xe3')]['changes'][_0x3604('0xd8')],_0x14be6c[_0x3604('0xeb')][_0x3604('0xdd')][_0x3604('0x79')])_0x35d826=_0x458cc[_0x3604('0xee')][_0x3604('0x4b')][_0x3604('0xc4')](_0x14be6c['activeChange'][_0x3604('0x2e')]);else{const _0xd02196=_0x458cc[_0x3604('0x51')][_0x3604('0xc1')][_0x3604('0xa8')](_0x3604('0xb2')+_0x14be6c[_0x3604('0xeb')]['id']);_0x35d826=_0x48f1fb(_0x458cc[_0x3604('0xee')],_0xd02196);}_0x14bcb4({'target':_0x35d826,'viewportOffset':0x28});}[_0x3604('0x11c')](){const {isNavigationMode:_0x4413ec,currentChangeNumber:_0x56422a,numberOfChanges:_0x2d5dea,isReady:_0x3f4e80,isEnabled:_0x4ca4dc}=this[_0x3604('0xf7')]['plugins']['get'](d);this['isEnabled']=!!(_0x4ca4dc&&_0x3f4e80&&_0x2d5dea)&&(!_0x4413ec||(0x1===this['_step']?_0x56422a<_0x2d5dea-0x1:_0x56422a>0x0));}}
|
|
23
|
+
const _0x235a=['_getRevisionsRange','sort','getRevision','isAdded','comment','createRangeIn','_threeWayMerge','compare','_findChangeIdFromDomTarget','type','domConverter','revisionHistoryLabel','createUIElement','toViewElement','hasAttribute','toViewPosition','nodeAfter','element:pre','low','top','deletion','data-change-id','_removeUnsupportedChanges','addClass','getChild','activeView','isRemoveSuggestion','toData','addRevisionData','bindElementToMarker','insertion','RevisionsRepository','affectsData','startIndex','isSuggestion','_initInteractions','forward','view','isInline','isOnRoot','forEach','mouseover','destroy','clear','_markMarkers','setAttribute','createAttributeElement','add','newRevisionId','dataDowncast','addMarker:revision-suggestion:insertion','vid_start','addHighlight','attributesAfter','markers','_markSuggestions','ck-revision-history-root-remove','isCollapsed','concat','plugins','activeChange','upcast','uiElement','changeId','_fixObsoleteTags','ck-suggestion-preview-marker','flat','isAttached','endIndex','isBefore','_balloon','markersEnd','_changeIdToChange','children','split','parse','_activeViewTarget','change:activeChange','suggestion','left','ck-suggestion-marker-split','collaboration.channelId','data','next','_markMismatchedRemovedTags','isObject','config','toViewRange','default','isAfter','_getChangeFromId','distance','vid_end','schema','revision','isLimit','dataToMarker','RevisionViewer','right','span','mapper','roots','_joinTapes','revision-suggestion:','change:activeView','_makeModelFromViewString','removeMarker:revision-suggestion','ck-suggestion-marker-','name','_makeTape','high','vid','isIncorrect','find','WidgetToolbarRepository','highest','refresh','pairId','_cleanUp','ck-revision-history-root--active','editing','_removeRevisionMarkers','findIndex','revision-viewer','set','_getDiff','unshift','isContent','length','hasClass','merge','POSITIVE_INFINITY','end','showNextChange','addMarker:revision-suggestion:deletion','previousPosition','addRevision','writer','adapter','_appendChild','isReady','bottom','loadRevisionData','numberOfChanges','_setChanges','_refreshStartEndIndex','_update','elementEnd','elementStart','modelRange','changes','from','offsetSize','shift','abs','getCustomProperty','push','domEvent','selection','restoreRevisionCallback','insertions','index','values','enqueueChange','checkAttribute','removeMarker','ck-editor__editable__overlay','get','element','_step','test','repository','deletions','markerToData','createPositionFromPath','parent','_revisions','attributesBefore','model','isRemoved','pop','consume','_removeMissingPairs','resolve','markerName','conversion','return','getIndex','catch','change:isEnabled','consumable','useFillerType','isEnabled','side','oldRevisionId','pluginName','string','startsWith','currentChangeNumber','getClientRects','_processTape','data-revision-','downcastDispatcher','stop','getRootNames','markersStart','markerRange','getWalker','_markInsertions','item','isBlock','for','userId','_cleanMarkers','updatePosition','-new','nextSibling','createRange','wrap','revision:','done','restoreRevision','_sortAndFilterDiffChanges','processor','reconvertMarker','object','locale','listenTo','bind','getAttribute','mapViewToDom','_setConversion','isAddSuggestion','getRoot','observeMarkers','showPreviousChange','marked','requires','createPositionBefore','change','unbindElementFromMarkerName','markerNameToElements','nextPosition','_changeView','editingDowncast','insert','indexOf','attachChange','diffData','_getViewObj','ck-suggestion-marker--active','splice','level','detachRoot','editor','isAtEnd','attributes','removeClass','remove','isEqual','map','addRoot','then','filter','_setDistance','document','revision-suggestion','start','change:isReady','revisionHistoryAttachChange','markerToHighlight','createRevision','slice','error','has','_makeModelFromTape','getDomRoot','ck-suggestion-preview-marker-','viewItem','attribute:vid','addMarker:revision','_getViewForChange','rootName','delete','includes','commands','keys','isAtStart','getAttributes','revisionHistory','text','isNavigationMode','ck-revision-history-root-add','diff'];(function(_0x35a48b,_0x235a76){const _0x15a650=function(_0x1070a4){while(--_0x1070a4){_0x35a48b['push'](_0x35a48b['shift']());}};_0x15a650(++_0x235a76);}(_0x235a,0x145));const _0x15a6=function(_0x35a48b,_0x235a76){_0x35a48b=_0x35a48b-0x0;let _0x15a650=_0x235a[_0x35a48b];return _0x15a650;};import{Plugin as _0x484acf,Command as _0x64b08}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3117ae}from'ckeditor5/src/utils';import{ContextualBalloon as _0xa75035}from'ckeditor5/src/ui';import{DocumentFragment as _0x3b6f74,Element as _0x5770d2,Text as _0x4de0b2,ViewDocumentFragment as _0x1a1b45,ViewText as _0xc36790,ViewElement as _0x45b95c,ViewContainerElement as _0x24d480,ViewAttributeElement as _0x20a51d,ViewEmptyElement as _0x5989c1,ViewRawElement as _0x35bb69,ViewUIElement as _0x259bc9}from'ckeditor5/src/engine';import{Users as _0x3c63ef,getMarkerDomElement as _0x3e8826}from'ckeditor5-collaboration/src/collaboration-core';import _0x13ee47 from'./ui/revisionviewer/changedetailsview';import _0x387cb0 from'./revisionsrepository';import _0x162c8f from'./changeitem';import{default as _0x523f0d}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x539880}from'lodash-es';const tt={'c':_0x24d480,'a':_0x20a51d,'e':_0x5989c1,'r':_0x35bb69,'u':_0x259bc9};export default class d extends _0x484acf{static get[_0x15a6('0xa4')](){return'RevisionViewer';}static get[_0x15a6('0xce')](){return[_0x3c63ef,_0xa75035,_0x387cb0];}constructor(_0x43bd81){super(_0x43bd81),this['repository']=this['editor'][_0x15a6('0x1c')]['get'](_0x15a6('0x0')),this[_0x15a6('0x5d')](_0x15a6('0x1d'),null),this['set'](_0x15a6('0x120'),null),this[_0x15a6('0x2d')]=null,this[_0x15a6('0x5d')](_0x15a6('0x106'),null),this['set'](_0x15a6('0x6d'),!0x1),this[_0x15a6('0x5d')](_0x15a6('0xa1'),!0x0),this['on'](_0x15a6('0x9e'),(_0x5532e6,_0xb8ad3f,_0x16c159)=>{this['activeChange']=null,this['activeView']=null,this[_0x15a6('0xdf')]['editing'][_0x15a6('0x6')][_0x15a6('0xd0')](_0x1f133c=>{for(const _0xab415b of this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0x6')][_0x15a6('0xea')][_0x15a6('0x46')])_0x16c159?_0x1f133c[_0x15a6('0xe2')](_0x15a6('0x87'),_0xab415b):_0x1f133c[_0x15a6('0x11e')](_0x15a6('0x87'),_0xab415b);});}),this[_0x15a6('0xc5')](_0x15a6('0x104'))['to'](this,_0x15a6('0x1d'),_0x1b1a87=>null!==_0x1b1a87),this[_0x15a6('0xc5')](_0x15a6('0xa7'))['to'](this,_0x15a6('0x6d'),this,_0x15a6('0x106'),this,'activeChange',(_0x89774c,_0x4c391e,_0x1e6942)=>_0x89774c&&_0x1e6942?_0x4c391e[_0x15a6('0x77')][_0x15a6('0x9c')](_0x1e6942):0x0),this['bind'](_0x15a6('0x70'))['to'](this,_0x15a6('0x6d'),this,'diff',(_0x119065,_0x142cad)=>_0x119065?_0x142cad['changes'][_0x15a6('0x61')]:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this[_0x15a6('0x6b')]=null,this[_0x15a6('0x27')]=this[_0x15a6('0xdf')]['plugins'][_0x15a6('0x88')](_0xa75035);}['init'](){const _0x2bcd18=this[_0x15a6('0xdf')],_0x504979=new ShowChangeCommand(_0x2bcd18,{'direction':'backward'}),_0x21ea4a=new ShowChangeCommand(_0x2bcd18,{'direction':_0x15a6('0x5')});(_0x2bcd18[_0x15a6('0xfe')][_0x15a6('0x10')](_0x15a6('0xcc'),_0x504979),_0x2bcd18[_0x15a6('0xfe')][_0x15a6('0x10')](_0x15a6('0x66'),_0x21ea4a),_0x2bcd18[_0x15a6('0xfe')][_0x15a6('0x10')](_0x15a6('0xbe'),new RestoreRevisionCommand(_0x2bcd18)),this['on']('change:numberOfChanges',()=>{_0x504979['refresh'](),_0x21ea4a[_0x15a6('0x55')]();}),this[_0x15a6('0xc8')](),this[_0x15a6('0x4')](),_0x2bcd18['enableReadOnlyMode'](_0x15a6('0x5c')),_0x2bcd18[_0x15a6('0x1c')][_0x15a6('0xf3')](_0x15a6('0x53')))&&_0x2bcd18[_0x15a6('0x1c')][_0x15a6('0x88')]('WidgetToolbarRepository')['forceDisabled'](_0x15a6('0x5c'));}async['getRevisionData'](_0x43f4f3){await this[_0x15a6('0x6f')](_0x43f4f3);const _0x31d2c3={};for(const _0x240bd4 in _0x43f4f3[_0x15a6('0xd9')]){if(_0x43f4f3[_0x15a6('0xd9')][_0x240bd4]['attachChange']&&!_0x43f4f3[_0x15a6('0xd9')][_0x240bd4][_0x15a6('0xd8')][_0x15a6('0x24')])continue;const _0x35e026=this[_0x15a6('0x5a')](JSON['parse'](_0x43f4f3[_0x15a6('0xd9')][_0x240bd4][_0x15a6('0x81')])),_0x234e15=this['editor'][_0x15a6('0x59')][_0x15a6('0x6')][_0x15a6('0xea')],_0x22a561=new _0x1a1b45(_0x234e15,_0x35e026[_0x15a6('0xe5')](_0x13d1c6=>this[_0x15a6('0xda')](_0x13d1c6)));this['editor'][_0x15a6('0x33')]['processor'][_0x15a6('0xa0')](_0x15a6('0xcd')),_0x31d2c3[_0x240bd4]=this['editor'][_0x15a6('0x33')][_0x15a6('0xc0')][_0x15a6('0x122')](_0x22a561),this[_0x15a6('0xdf')][_0x15a6('0x33')][_0x15a6('0xc0')][_0x15a6('0xa0')](_0x15a6('0x39'));}return _0x31d2c3;}async['getRevisionRootsAttributes'](_0x17c7c0){await this[_0x15a6('0x6f')](_0x17c7c0);const _0xadeb06={};for(const _0x26e7f8 in _0x17c7c0[_0x15a6('0xd9')])_0x17c7c0[_0x15a6('0xd9')][_0x26e7f8][_0x15a6('0xd8')]&&!_0x17c7c0[_0x15a6('0xd9')][_0x26e7f8]['attachChange'][_0x15a6('0x24')]||(_0xadeb06[_0x26e7f8]=_0x17c7c0[_0x15a6('0xd9')][_0x26e7f8]['attributesAfter']||{});return _0xadeb06;}[_0x15a6('0x5a')](_0x3745a2){return(_0x3745a2=_0x3745a2['filter'](_0x7af357=>!_0x7af357['name']||'revision-start'!==_0x7af357['name']&&'revision-end'!==_0x7af357[_0x15a6('0x4d')]))[_0x15a6('0x9')](_0x3e0aa5=>{'string'!=typeof _0x3e0aa5&&(_0x3e0aa5['children']=this[_0x15a6('0x5a')](_0x3e0aa5[_0x15a6('0x2a')]),_0x3e0aa5[_0x15a6('0xe1')]=_0x3e0aa5[_0x15a6('0xe1')]['filter'](_0x1dee8e=>!_0x1dee8e[0x0][_0x15a6('0xa6')](_0x15a6('0xaa'))));}),_0x3745a2;}async[_0x15a6('0x10e')](_0x203674,_0x305f15,_0x3edb53=!0x1){if(!this[_0x15a6('0xa1')])return;const _0x3ec5a1=this[_0x15a6('0x106')],_0x59eb74=this['repository'],_0x217c70=_0x15a6('0xa5')==typeof _0x203674?_0x59eb74['getRevision'](_0x203674):_0x203674,_0x24f9d6=_0x15a6('0xa5')==typeof _0x305f15?_0x59eb74['getRevision'](_0x305f15):_0x305f15,_0x3d5857=_0x217c70['id'],_0x267634=_0x24f9d6?_0x24f9d6['id']:null;if(!_0x3edb53&&this['diff']&&this[_0x15a6('0x106')]['newRevisionId']===_0x3d5857&&this[_0x15a6('0x106')][_0x15a6('0xa3')]===_0x267634)return Promise['resolve']();this['isReady']=!0x1,this[_0x15a6('0x120')]=null,this[_0x15a6('0x1d')]=null,this[_0x15a6('0x106')]=new _0x523f0d(_0x3d5857,_0x267634);const _0x1f8560=this[_0x15a6('0x107')](_0x217c70,_0x24f9d6,!0x0)[_0x15a6('0xe5')](_0x2124af=>this['loadRevisionData'](_0x2124af));return _0x1f8560[_0x15a6('0x7d')](new Promise(_0x33340b=>{setTimeout(_0x33340b,0x14);})),Promise['all'](_0x1f8560)[_0x15a6('0xe7')](()=>{if(!this['isEnabled'])return;this[_0x15a6('0x57')]();const _0x187df0=this[_0x15a6('0x5e')](_0x3d5857,_0x267634);for(const _0x3b0694 of _0x187df0[_0x15a6('0x77')])this[_0x15a6('0x29')][_0x15a6('0x5d')](_0x3b0694['id'],_0x3b0694);this[_0x15a6('0xdf')]['model']['enqueueChange']({'isUndoable':!0x1},_0x2ee3a6=>{for(const _0x614fb2 of this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xea')]['getRootNames']())_0x2ee3a6[_0x15a6('0xde')](_0x614fb2);for(const _0x56ee08 of Object[_0x15a6('0xff')](_0x187df0['model'])){const _0x4d53c8=_0x2ee3a6[_0x15a6('0xe6')](_0x56ee08);for(const _0x9a936a of Object['keys'](_0x187df0['attributes'][_0x56ee08]))_0x2ee3a6[_0x15a6('0xe')](_0x9a936a,_0x187df0[_0x15a6('0xe1')][_0x56ee08][_0x9a936a],_0x4d53c8);_0x2ee3a6[_0x15a6('0xd6')](_0x187df0[_0x15a6('0x93')][_0x56ee08],_0x4d53c8,0x0);}}),this[_0x15a6('0x106')][_0x15a6('0x71')](this[_0x15a6('0xbf')](_0x187df0['changes'])),this[_0x15a6('0x6d')]=!0x0;})[_0x15a6('0x9d')](_0x59b51d=>{console[_0x15a6('0xf2')](_0x59b51d),this['_cleanUp'](),_0x3ec5a1&&(this[_0x15a6('0x106')]=_0x3ec5a1),this[_0x15a6('0x6d')]=!0x0;});}[_0x15a6('0x123')](_0x1a7141,_0x21901e){const _0x313b8f=this[_0x15a6('0x8c')][_0x15a6('0xf0')](_0x1a7141);return _0x313b8f['on'](_0x15a6('0x73'),(_0x148244,_0x4ee99f,_0x4f909d)=>_0x21901e(_0x4ee99f,_0x4f909d,_0x313b8f)),this['repository'][_0x15a6('0x69')](_0x313b8f),_0x313b8f;}[_0x15a6('0x6f')](_0x8c354a){if(!_0x8c354a||_0x8c354a[_0x15a6('0xd9')])return Promise[_0x15a6('0x98')]();{const _0x297029=this[_0x15a6('0xdf')][_0x15a6('0x37')][_0x15a6('0x88')](_0x15a6('0x32'));return this[_0x15a6('0x6b')]['getRevision']({'channelId':_0x297029,'revisionId':_0x8c354a['id']})[_0x15a6('0xe7')](_0x29e5cc=>{_0x8c354a[_0x15a6('0x73')]({'diffData':_0x29e5cc[_0x15a6('0xd9')]},!0x0);});}}[_0x15a6('0x57')](){this[_0x15a6('0x1d')]=null,this[_0x15a6('0xb6')](),this[_0x15a6('0xd4')]&&this[_0x15a6('0xd4')][_0x15a6('0xb')](),this['_changeView']=null,this[_0x15a6('0x29')][_0x15a6('0xc')](),this[_0x15a6('0xdf')]['model'][_0x15a6('0x84')]({'isUndoable':!0x1},_0x5c4870=>{for(const _0x3e4a42 of this[_0x15a6('0xdf')][_0x15a6('0x93')]['document'][_0x15a6('0xad')]())_0x5c4870[_0x15a6('0xde')](_0x3e4a42);});}['_sortAndFilterDiffChanges'](_0xb0c1b9){const _0x1fa58c=[],_0x3fb61c=new Map();for(const _0x57387a of this['editor']['model'][_0x15a6('0xea')][_0x15a6('0xad')]()){const _0x340376=this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0x6')][_0x15a6('0xf5')](_0x57387a);if(!_0x340376)continue;const _0x50b6b5=_0x340376['getClientRects']()[_0x15a6('0xb2')](0x0);_0x50b6b5&&(_0x1fa58c[_0x15a6('0x7d')](_0x57387a),_0x3fb61c[_0x15a6('0x5d')](_0x57387a,_0x50b6b5));}return _0x1fa58c[_0x15a6('0x108')]((_0x374a24,_0x339232)=>{const _0x1f93d7=_0x3fb61c['get'](_0x374a24),_0xf63a8c=_0x3fb61c[_0x15a6('0x88')](_0x339232);return _0x1f93d7['y']-_0xf63a8c['y']||_0x1f93d7['x']-_0xf63a8c['x'];}),(_0xb0c1b9=_0xb0c1b9[_0x15a6('0xe8')](_0x53e24b=>_0x1fa58c[_0x15a6('0xfd')](_0x53e24b[_0x15a6('0xfb')])))[_0x15a6('0x108')]((_0x36c83a,_0x43332b)=>_0x1fa58c[_0x15a6('0xd7')](_0x36c83a[_0x15a6('0xfb')])-_0x1fa58c[_0x15a6('0xd7')](_0x43332b[_0x15a6('0xfb')])),_0xb0c1b9;}[_0x15a6('0x4e')](_0x318aee){const _0x9a5b83=Array[_0x15a6('0x78')](_0x318aee[_0x15a6('0x17')])['filter'](([_0x5f1cde,_0x32607c])=>_0x5f1cde[_0x15a6('0xa6')]('revision:')&&!_0x32607c[_0x15a6('0x1a')]),_0x1b4a78=Array[_0x15a6('0x78')](this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0x10c')](_0x318aee)[_0x15a6('0xb0')]({'singleCharacters':!0x0}));if(0x0!=_0x9a5b83['length'])for(const _0x154a7b of _0x1b4a78){const [_0x18fa01,_0x53334e]=_0x9a5b83[0x0],[,_0x51ee8d,_0xd8b552]=_0x18fa01[_0x15a6('0x2b')](':');if(_0x53334e[_0x15a6('0x65')][_0x15a6('0xe4')](_0x154a7b['nextPosition'])&&_0x9a5b83[_0x15a6('0x7a')](),(_0x154a7b[_0x15a6('0x68')]['isEqual'](_0x53334e[_0x15a6('0xec')])||_0x154a7b[_0x15a6('0x68')][_0x15a6('0x3a')](_0x53334e[_0x15a6('0xec')]))&&(_0x15a6('0x125')==_0x51ee8d?_0x154a7b[_0x15a6('0x10a')]={'userId':_0xd8b552}:'deletion'==_0x51ee8d&&(_0x154a7b[_0x15a6('0x94')]={'userId':_0xd8b552})),0x0==_0x9a5b83[_0x15a6('0x61')])break;}return _0x1b4a78;}[_0x15a6('0x72')](_0x1e8c0c){const _0x3d94c9=new Map();for(let _0x4c7143=0x0;_0x4c7143<_0x1e8c0c['length'];_0x4c7143++)_0x15a6('0x103')===_0x1e8c0c[_0x4c7143][_0x15a6('0x110')]?(_0x1e8c0c[_0x4c7143][_0x15a6('0xb2')]['startIndex']=_0x4c7143,_0x1e8c0c[_0x4c7143][_0x15a6('0xb2')][_0x15a6('0x25')]=_0x4c7143):('elementStart'===_0x1e8c0c[_0x4c7143]['type']?_0x1e8c0c[_0x4c7143][_0x15a6('0xb2')][_0x15a6('0x2')]=_0x4c7143:_0x15a6('0x74')===_0x1e8c0c[_0x4c7143][_0x15a6('0x110')]&&(_0x1e8c0c[_0x4c7143]['item'][_0x15a6('0x25')]=_0x4c7143),_0x3d94c9[_0x15a6('0x5d')](_0x1e8c0c[_0x4c7143]['id'],_0x4c7143));for(const _0x264998 of _0x3d94c9[_0x15a6('0x83')]())'elementStart'===_0x1e8c0c[_0x264998][_0x15a6('0x110')]?_0x1e8c0c[_0x264998][_0x15a6('0xb2')][_0x15a6('0x25')]=_0x3d94c9[_0x15a6('0x88')](_0x1e8c0c[_0x264998][_0x15a6('0x56')]):_0x15a6('0x74')===_0x1e8c0c[_0x264998]['type']&&(_0x1e8c0c[_0x264998][_0x15a6('0xb2')][_0x15a6('0x2')]=_0x3d94c9[_0x15a6('0x88')](_0x1e8c0c[_0x264998][_0x15a6('0x56')]));}['_processTape'](_0x5820cc){for(let _0x224dfa=0x0;_0x224dfa<_0x5820cc[_0x15a6('0x61')];_0x224dfa++){if('elementStart'===_0x5820cc[_0x224dfa][_0x15a6('0x110')])_0x5820cc[_0x224dfa][_0x15a6('0xb2')][_0x15a6('0x2')]=_0x224dfa;else{if('elementEnd'===_0x5820cc[_0x224dfa][_0x15a6('0x110')]){_0x5820cc[_0x224dfa]['item'][_0x15a6('0x25')]=_0x224dfa;const _0x567697=_0x5820cc[_0x224dfa][_0x15a6('0xb2')][_0x15a6('0x2')];_0x5820cc[_0x567697][_0x15a6('0x56')]=_0x5820cc[_0x224dfa]['id'],_0x5820cc[_0x224dfa][_0x15a6('0x56')]=_0x5820cc[_0x567697]['id'];}else _0x5820cc[_0x224dfa][_0x15a6('0xb2')][_0x15a6('0x2')]=_0x224dfa,_0x5820cc[_0x224dfa][_0x15a6('0xb2')][_0x15a6('0x25')]=_0x224dfa,_0x5820cc[_0x224dfa][_0x15a6('0x56')]=null;}_0x5820cc[_0x224dfa]['markersStart']||(_0x5820cc[_0x224dfa][_0x15a6('0xae')]=[],_0x5820cc[_0x224dfa][_0x15a6('0x28')]=[]);}}[_0x15a6('0xb1')](_0x56c7f0,_0x2b1e90){const _0x49c7a7=_0x56c7f0['filter'](_0x28ce22=>!_0x28ce22[_0x15a6('0x10a')]);for(let _0x181346=0x0;_0x181346<_0x2b1e90['length'];_0x181346++)_0x2b1e90[_0x181346][_0x15a6('0x10a')]&&(_0x49c7a7[_0x181346][_0x15a6('0x10a')]=_0x2b1e90[_0x181346]['isAdded']);}[_0x15a6('0x4a')](_0x41bb5e){const _0x39f7b8=JSON[_0x15a6('0x2c')](_0x41bb5e),_0x4d1520=this[_0x15a6('0xdf')][_0x15a6('0x59')]['view'][_0x15a6('0xea')],_0x2d9ec3=new _0x1a1b45(_0x4d1520,_0x39f7b8[_0x15a6('0xe5')](_0x27322a=>this[_0x15a6('0xda')](_0x27322a)));return this[_0x15a6('0xdf')][_0x15a6('0x33')]['toModel'](_0x2d9ec3);}[_0x15a6('0xda')](_0x41d055){const _0x15a15e=this[_0x15a6('0xdf')]['editing'][_0x15a6('0x6')]['document'];if(_0x15a6('0xa5')==typeof _0x41d055)return new _0xc36790(_0x15a15e,_0x41d055);{const _0x32f018=_0x41d055['children']['map'](_0x47a312=>this[_0x15a6('0xda')](_0x47a312));return new(tt[_0x41d055['type']]||_0x45b95c)(_0x15a15e,_0x41d055[_0x15a6('0x4d')],_0x41d055[_0x15a6('0xe1')],_0x32f018);}}[_0x15a6('0x5e')](_0x522582,_0x2e7b52=null){const _0x4c85b3=this[_0x15a6('0x8c')]['getRevision'](_0x522582),_0x2824de=_0x2e7b52?this['repository'][_0x15a6('0x109')](_0x2e7b52):null,_0x4c7184=this[_0x15a6('0x107')](_0x4c85b3,_0x2824de),_0x2e24ea=_0x4c7184[_0x4c7184[_0x15a6('0x61')]-0x1],_0x2bc940=new Map(),_0x267760={'model':{},'attributes':{},'changes':[]},_0x579795=new Set(),_0xd42d67=new Map();for(let _0x222650=_0x4c7184[_0x15a6('0x61')]-0x1;_0x222650>=0x0;_0x222650--){const _0xf6b51=_0x4c7184[_0x222650];for(const _0x513d2b of Object[_0x15a6('0xff')](_0xf6b51[_0x15a6('0xd9')]))if(_0xf6b51['diffData'][_0x513d2b][_0x15a6('0xd8')]){const _0x2a3508=_0xf6b51[_0x15a6('0xd9')][_0x513d2b][_0x15a6('0xd8')];_0x2a3508['isAttached']?(_0x579795[_0x15a6('0x10')](_0x513d2b),_0xd42d67[_0x15a6('0xf3')](_0x513d2b)&&_0xd42d67['get'](_0x513d2b)[_0x15a6('0xb5')]==_0x2a3508[_0x15a6('0xb5')]?_0xd42d67['delete'](_0x513d2b):_0xd42d67[_0x15a6('0x5d')](_0x513d2b,_0x2a3508)):_0xd42d67[_0x15a6('0xf3')](_0x513d2b)?(_0x579795[_0x15a6('0xfc')](_0x513d2b),_0xd42d67[_0x15a6('0xfc')](_0x513d2b)):(_0x579795['add'](_0x513d2b),_0xd42d67['set'](_0x513d2b,_0x2a3508));}else _0x579795[_0x15a6('0x10')](_0x513d2b);}for(const _0x19e19a of _0x579795){const _0x3a2418=_0xd42d67[_0x15a6('0xf3')](_0x19e19a)&&!_0xd42d67[_0x15a6('0x88')](_0x19e19a)[_0x15a6('0x24')];let _0x30cdfb=_0x3a2418?_0x4c7184[_0x15a6('0x61')]-0x1:0x0;const _0x3c6281=_0x3a2418?-0x1:0x1;for(;_0x4c7184[_0x30cdfb];){const _0x3bcf3f=_0x4c7184[_0x30cdfb];if(_0x3bcf3f['diffData'][_0x19e19a]){const _0x1483c1=_0x3a2418?_0x3bcf3f[_0x15a6('0xd9')][_0x19e19a][_0x15a6('0x92')]:_0x3bcf3f[_0x15a6('0xd9')][_0x19e19a][_0x15a6('0x16')];_0x267760['attributes'][_0x19e19a]=_0x1483c1?_0x539880(_0x1483c1):{};break;}_0x30cdfb+=_0x3c6281;}}for(const _0x9bb2c0 of _0x4c7184){_0x9bb2c0[_0x15a6('0x93')]={};for(const _0x12d99c of _0x9bb2c0['authors'])_0x2bc940[_0x15a6('0x5d')](_0x12d99c['id'],_0x12d99c);for(const _0x218950 of _0x579795){const _0x41f6ff=_0x9bb2c0['diffData'][_0x218950]?_0x9bb2c0[_0x15a6('0xd9')][_0x218950][_0x15a6('0x81')]:'[]',_0x4f7ac8=_0x9bb2c0[_0x15a6('0xd9')][_0x218950]?_0x9bb2c0[_0x15a6('0xd9')][_0x218950][_0x15a6('0x8d')]:'[]';_0x9bb2c0[_0x15a6('0x93')][_0x218950]={'insertions':this[_0x15a6('0x4a')](_0x41f6ff),'deletions':this['_makeModelFromViewString'](_0x4f7ac8)};}}for(const _0x5885b6 of _0x579795){let _0x46497b=null,_0x51e126=0x0;const _0x3c8a2c=new Map(Array[_0x15a6('0x78')](_0x4c85b3[_0x15a6('0x93')][_0x5885b6]['insertions'][_0x15a6('0x17')])[_0x15a6('0xe8')](([_0x30bfea])=>!_0x30bfea[_0x15a6('0xa6')](_0x15a6('0xbc'))));let _0x1e4d3b=0x0;for(const _0x467e60 of _0x4c7184){const _0x1a2f06=this[_0x15a6('0x4e')](_0x467e60[_0x15a6('0x93')][_0x5885b6][_0x15a6('0x81')]);_0x467e60==_0x4c85b3?(_0x46497b=_0x1a2f06,_0x51e126=_0x46497b[_0x15a6('0x61')],_0x46497b['forEach'](_0x2c7654=>{_0x2c7654['id']=_0x1e4d3b++;}),this['_processTape'](_0x46497b)):this[_0x15a6('0xb1')](_0x46497b,_0x1a2f06);const _0x1fee63=_0x46497b[_0x15a6('0xe8')](_0x42458f=>!_0x42458f['isAdded'])[_0x15a6('0xe5')](_0x25ed77=>_0x25ed77['id']);let _0xe8173b=0x0;const _0xebf327=this[_0x15a6('0x4e')](_0x467e60[_0x15a6('0x93')][_0x5885b6][_0x15a6('0x8d')]);_0xebf327['forEach'](_0x38632d=>{_0x38632d[_0x15a6('0x94')]?_0x38632d['id']=_0x51e126++:_0x38632d['id']=_0x1fee63[_0xe8173b++];}),this[_0x15a6('0xa9')](_0xebf327),this[_0x15a6('0xe9')](_0x46497b,_0x15a6('0x10a')),this[_0x15a6('0xe9')](_0xebf327,'isRemoved'),_0x467e60==_0x4c85b3&&this['_markMarkers'](_0x46497b,_0x3c8a2c),_0x46497b=this[_0x15a6('0x47')](_0x46497b,_0xebf327),this[_0x15a6('0x72')](_0x46497b),this[_0x15a6('0xe9')](_0x46497b,'isRemoved');}_0x46497b=_0x46497b[_0x15a6('0xe8')](_0x513971=>!(_0x513971[_0x15a6('0x10a')]&&_0x513971[_0x15a6('0x94')]));const _0x2a42c8=new Map(_0x2e24ea[_0x15a6('0x93')][_0x5885b6][_0x15a6('0x8d')][_0x15a6('0x17')]),_0x543ded=new Set(_0x3c8a2c[_0x15a6('0xff')]());for(const _0x45e7b5 of _0x2a42c8['keys']())_0x543ded[_0x15a6('0xfc')](_0x45e7b5);this[_0x15a6('0x18')](_0x46497b,_0x543ded),this[_0x15a6('0x21')](_0x46497b),_0x46497b=this[_0x15a6('0x97')](_0x46497b),_0x46497b=this['_markMismatchedRemovedTags'](_0x46497b),_0x46497b=this[_0x15a6('0x11d')](_0x46497b);const {root:_0x5885e2,changes:_0x1f4063}=this['_makeModelFromTape'](_0x46497b,_0x2bc940,_0x5885b6);_0x267760[_0x15a6('0x93')][_0x5885b6]=_0x5885e2;const _0x4df65f=_0xd42d67[_0x15a6('0x88')](_0x5885b6);if(_0x4df65f){const _0x13cbd5=_0x2bc940[_0x15a6('0x88')](_0x4df65f[_0x15a6('0xb5')]),_0x373523=new _0x162c8f({'author':_0x13cbd5,'type':_0x4df65f[_0x15a6('0x24')]?_0x15a6('0x10'):_0x15a6('0xe3'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5885b6});_0x1f4063['unshift'](_0x373523),_0x267760[_0x15a6('0xe1')][_0x5885b6][_0x15a6('0xee')]=_0x373523['id'];}_0x267760[_0x15a6('0x77')]=_0x267760[_0x15a6('0x77')][_0x15a6('0x1b')](_0x1f4063);}return _0x267760;}[_0x15a6('0xd')](_0x1d853c,_0x514013){for(let _0x25cc56=0x0;_0x25cc56<_0x1d853c['length'];_0x25cc56++)for(const [_0x49a25e,_0x3d6d3d]of _0x514013)_0x3d6d3d[_0x15a6('0xec')][_0x15a6('0xe4')](_0x1d853c[_0x25cc56][_0x15a6('0x68')])&&_0x1d853c[_0x25cc56][_0x15a6('0xae')]['push'](_0x49a25e),_0x3d6d3d[_0x15a6('0x65')][_0x15a6('0xe4')](_0x1d853c[_0x25cc56][_0x15a6('0xd3')])&&_0x1d853c[_0x25cc56][_0x15a6('0x28')]['push'](_0x49a25e);}[_0x15a6('0x47')](_0x338dfd,_0x5c6ac1){let _0x568202=[],_0x4d4f1e=0x0,_0x9fdac8=0x0;for(;_0x4d4f1e<_0x338dfd[_0x15a6('0x61')]||_0x9fdac8<_0x5c6ac1[_0x15a6('0x61')];){const _0x93a3f4=_0x338dfd[_0x4d4f1e]||{},_0x2d4830=_0x5c6ac1[_0x9fdac8]||{};if(_0x93a3f4['id']==_0x2d4830['id'])_0x4d4f1e++,_0x9fdac8++,_0x568202['push'](_0x93a3f4);else{if(_0x2d4830[_0x15a6('0x94')]&&_0x93a3f4['isAdded']){const {commonTape:_0x2531ef,iEnd:_0x357a21,jEnd:_0x37a5eb}=this[_0x15a6('0x10d')](_0x338dfd,_0x4d4f1e,_0x5c6ac1,_0x9fdac8);_0x568202=_0x568202[_0x15a6('0x1b')](_0x2531ef),_0x4d4f1e=_0x357a21,_0x9fdac8=_0x37a5eb;}else _0x2d4830['isRemoved']?(_0x9fdac8++,_0x568202[_0x15a6('0x7d')](_0x2d4830)):(_0x4d4f1e++,_0x568202[_0x15a6('0x7d')](_0x93a3f4));}}return _0x568202;}[_0x15a6('0x18')](_0x5c6683,_0x19a731){const _0x1c87a3=[];for(let _0x36a0b2=0x0;_0x36a0b2<_0x5c6683['length'];_0x36a0b2++){for(let _0x1a6822=0x0;_0x1a6822<_0x5c6683[_0x36a0b2]['markersStart']['length'];_0x1a6822++){const _0x48c97d=_0x5c6683[_0x36a0b2]['markersStart'][_0x1a6822];if(!_0x19a731['has'](_0x48c97d))continue;const {group:_0x37a89f,type:_0x3c0b19,authorId:_0x2aca81}=_0x584b99(_0x48c97d);_0x15a6('0xeb')!=_0x37a89f||_0x15a6('0x125')!=_0x3c0b19&&_0x15a6('0x11b')!=_0x3c0b19||(_0x1c87a3[_0x15a6('0x5f')]({'type':_0x3c0b19,'name':_0x48c97d,'userId':_0x2aca81}),_0x5c6683[_0x36a0b2][_0x15a6('0xae')][_0x15a6('0xdc')](_0x1a6822,0x1),_0x1a6822--);}_0x35e23e(_0x5c6683[_0x36a0b2]);for(let _0x168e1b=0x0;_0x168e1b<_0x5c6683[_0x36a0b2][_0x15a6('0x28')][_0x15a6('0x61')];_0x168e1b++){const _0x3e95ae=_0x5c6683[_0x36a0b2][_0x15a6('0x28')][_0x168e1b];if(!_0x19a731['has'](_0x3e95ae))continue;const {group:_0xe62f5b,type:_0x14a33e}=_0x584b99(_0x3e95ae);if(_0x15a6('0xeb')!=_0xe62f5b||_0x15a6('0x125')!=_0x14a33e&&_0x15a6('0x11b')!=_0x14a33e)continue;_0x5c6683[_0x36a0b2][_0x15a6('0x28')][_0x15a6('0xdc')](_0x168e1b,0x1),_0x168e1b--;const _0x21a317=_0x1c87a3[_0x15a6('0x5b')](_0x2e2542=>_0x2e2542[_0x15a6('0x4d')]==_0x3e95ae);_0x21a317>-0x1&&_0x1c87a3[_0x15a6('0xdc')](_0x21a317,0x1);}}function _0x584b99(_0x3d960e){const _0x5ab3f8=_0x3d960e[_0x15a6('0x2b')](':');return{'group':_0x5ab3f8[0x0],'type':_0x5ab3f8[0x1],'subType':_0x5ab3f8[_0x15a6('0x61')]>=0x5?_0x5ab3f8[0x2]:null,'id':_0x5ab3f8[_0x15a6('0x61')]<0x5?_0x5ab3f8[0x2]:_0x5ab3f8[0x3],'authorId':_0x5ab3f8[_0x15a6('0x61')]<0x5?_0x5ab3f8[0x3]:_0x5ab3f8[0x4],'markerCount':0x6==_0x5ab3f8[_0x15a6('0x61')]?_0x5ab3f8[0x5]:null};}function _0x35e23e(_0x5ef5d1){for(let _0x56dac7=0x0;_0x56dac7<_0x1c87a3['length'];_0x56dac7++){if(_0x5ef5d1['isAdded']&&'insertion'==_0x1c87a3[_0x56dac7]['type'])return _0x5ef5d1[_0x15a6('0xc9')]=_0x1c87a3[_0x56dac7],void delete _0x5ef5d1[_0x15a6('0x10a')];if(!_0x5ef5d1[_0x15a6('0x10a')]&&!_0x5ef5d1['isRemoved']&&_0x15a6('0x11b')==_0x1c87a3[_0x56dac7]['type'])return void(_0x5ef5d1[_0x15a6('0x121')]=_0x1c87a3[_0x56dac7]);}}}[_0x15a6('0xe9')](_0x2c0b91,_0x43dc9e){let _0x39ff6a=0x0,_0x178596=!0x1;const _0x5efb93=new Map();for(const _0x231523 of _0x2c0b91)_0x231523[_0x43dc9e]?_0x178596&&(_0x39ff6a++,_0x178596=!0x1):(_0x39ff6a++,_0x178596=!0x0),_0x5efb93['set'](_0x231523['id'],_0x39ff6a);for(let _0xe4b67d=0x0;_0xe4b67d<_0x2c0b91[_0x15a6('0x61')];_0xe4b67d++){if('isRemoved'==_0x43dc9e&&_0x2c0b91[_0xe4b67d][_0x15a6('0x10a')]||_0x15a6('0x10a')==_0x43dc9e&&_0x2c0b91[_0xe4b67d][_0x15a6('0x94')])continue;if(_0x15a6('0x103')==_0x2c0b91[_0xe4b67d][_0x15a6('0x110')]){_0x2c0b91[_0xe4b67d][_0x15a6('0x3c')]=0x0;continue;}const _0x2a059f=_0x5efb93[_0x15a6('0x88')](_0x2c0b91[_0xe4b67d][_0x15a6('0x56')]),_0x48cb90=_0x5efb93[_0x15a6('0x88')](_0x2c0b91[_0xe4b67d]['id']);_0x2c0b91[_0xe4b67d]['distance']=_0x2a059f-_0x48cb90;}}['_getRevisionsRange'](_0x642fbe,_0x326f56,_0x3bbad3=!0x1){const _0x541332=[];let _0x28e7e3=this[_0x15a6('0x8c')][_0x15a6('0x9c')](_0x642fbe),_0x4c619f=this['repository'][_0x15a6('0x9c')](_0x326f56);for(-0x1==_0x4c619f&&(_0x4c619f=this['repository'][_0x15a6('0x91')][_0x15a6('0x61')],_0x3bbad3=!0x1);_0x28e7e3<_0x4c619f;)_0x541332[_0x15a6('0x7d')](this[_0x15a6('0x8c')][_0x15a6('0x109')](_0x28e7e3)),_0x28e7e3++;return _0x3bbad3&&_0x541332[_0x15a6('0x7d')](this[_0x15a6('0x8c')][_0x15a6('0x109')](_0x28e7e3)),_0x541332;}['_threeWayMerge'](_0x1a90f0,_0x2e7a30,_0x4562be,_0x2814a3){const _0x3e2b3d=this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0x3e')];let _0x4bcb76=_0x2e7a30;for(;_0x1a90f0[_0x4bcb76]&&_0x1a90f0[_0x4bcb76][_0x15a6('0x10a')];)_0x4bcb76++;let _0xeafed6=_0x2814a3;for(;_0x4562be[_0xeafed6]&&_0x4562be[_0xeafed6][_0x15a6('0x94')];)_0xeafed6++;_0x1b47a1(_0x1a90f0,_0x2e7a30,_0x4bcb76),_0x1b47a1(_0x4562be,_0x2814a3,_0xeafed6);const _0x32c726=_0x4562be['slice'](_0x2814a3,_0xeafed6)[_0x15a6('0x1b')](_0x1a90f0[_0x15a6('0xf1')](_0x2e7a30,_0x4bcb76));return _0x32c726[_0x15a6('0x108')]((_0xc9c539,_0x5a9be2)=>_0xc9c539['side']!=_0x5a9be2['side']?_0xc9c539['side']-_0x5a9be2['side']:_0xc9c539[_0x15a6('0xdd')]!=_0x5a9be2[_0x15a6('0xdd')]?_0xc9c539[_0x15a6('0xdd')]-_0x5a9be2[_0x15a6('0xdd')]:_0xc9c539[_0x15a6('0x3c')]!=_0x5a9be2['distance']?_0x5a9be2['distance']-_0xc9c539['distance']:!!_0xc9c539['isAdded']!=!!_0x5a9be2['isAdded']?-0x1==_0xc9c539[_0x15a6('0xa2')]||0x0==_0xc9c539[_0x15a6('0xa2')]?_0xc9c539[_0x15a6('0x10a')]?-0x1:0x1:_0xc9c539['isAdded']?0x1:-0x1:_0xc9c539['index']-_0x5a9be2['index']),{'commonTape':_0x32c726,'iEnd':_0x4bcb76,'jEnd':_0xeafed6};function _0x1b47a1(_0x1b57b5,_0x456d57,_0x26d23e){let _0x310726=-0x1,_0x533dd7=Number[_0x15a6('0x64')],_0x422766=!0x0;for(let _0x5324c5=_0x456d57;_0x5324c5<_0x26d23e;_0x5324c5++)if(_0x3e2b3d[_0x15a6('0x7')](_0x1b57b5[_0x5324c5][_0x15a6('0xb2')])||(_0x422766=!0x1),_0x1b57b5[_0x5324c5][_0x15a6('0xb2')]['startIndex']<_0x456d57&&(_0x310726=_0x5324c5),_0x1b57b5[_0x5324c5]['item']['endIndex']>=_0x26d23e){_0x533dd7=_0x5324c5;break;}_0x422766&&(_0x310726=_0x26d23e-0x1);for(let _0x128b35=_0x456d57;_0x128b35<_0x26d23e;_0x128b35++)_0x1b57b5[_0x128b35][_0x15a6('0xa2')]=_0x128b35<=_0x310726?-0x1:_0x128b35<_0x533dd7?0x0:0x1,_0x1b57b5[_0x128b35][_0x15a6('0x82')]=_0x128b35;let _0x15726c=0x0;for(let _0x5ce086=_0x456d57;_0x5ce086<=_0x310726;_0x5ce086++)0x0==_0x1b57b5[_0x5ce086][_0x15a6('0x3c')]?_0x1b57b5[_0x5ce086][_0x15a6('0xdd')]=_0x15726c:(_0x15726c++,_0x1b57b5[_0x5ce086][_0x15a6('0xdd')]=_0x15726c,_0x15726c++);for(let _0x2e5077=_0x456d57;_0x2e5077<_0x26d23e;_0x2e5077++)0x0==_0x1b57b5[_0x2e5077]['side']&&(_0x1b57b5[_0x2e5077][_0x15a6('0xdd')]=_0x15726c);_0x15726c=0x0;for(let _0x323e86=_0x26d23e-0x1;_0x323e86>=_0x533dd7;_0x323e86--)0x0==_0x1b57b5[_0x323e86]['distance']?_0x1b57b5[_0x323e86][_0x15a6('0xdd')]=_0x15726c:(_0x15726c--,_0x1b57b5[_0x323e86][_0x15a6('0xdd')]=_0x15726c,_0x15726c--);}}[_0x15a6('0x21')](_0x3b0d6a){const _0x54c7b4=new Map(),_0x40534c=this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0x3e')];for(let _0x1b8a6a=0x1;_0x1b8a6a<_0x3b0d6a[_0x15a6('0x61')];_0x1b8a6a++){let _0x3cd103,_0x32cf22,_0x13f977;const _0x859385=_0x3b0d6a[_0x1b8a6a],_0x37f6fc=_0x3b0d6a[_0x1b8a6a-0x1];if(_0x15a6('0x103')==_0x859385[_0x15a6('0x110')])continue;if(_0x859385['type']!=_0x37f6fc[_0x15a6('0x110')])continue;if(!_0x40534c[_0x15a6('0xb3')](_0x37f6fc[_0x15a6('0xb2')])||_0x40534c[_0x15a6('0x40')](_0x37f6fc[_0x15a6('0xb2')]))continue;if(!_0x40534c[_0x15a6('0xb3')](_0x859385[_0x15a6('0xb2')])||_0x40534c[_0x15a6('0x40')](_0x859385['item']))continue;if((_0x3b0d6a[_0x1b8a6a][_0x15a6('0x10a')]||_0x3b0d6a[_0x1b8a6a][_0x15a6('0xc9')])&&_0x3b0d6a[_0x1b8a6a-0x1][_0x15a6('0x94')])_0x3cd103=_0x3b0d6a[_0x1b8a6a],_0x32cf22=_0x3b0d6a[_0x1b8a6a-0x1],_0x13f977=_0x1b8a6a-0x1;else{if(!_0x3b0d6a[_0x1b8a6a]['isRemoved']||!_0x3b0d6a[_0x1b8a6a-0x1][_0x15a6('0x10a')]&&!_0x3b0d6a[_0x1b8a6a-0x1]['isAddSuggestion'])continue;_0x3cd103=_0x3b0d6a[_0x1b8a6a-0x1],_0x32cf22=_0x3b0d6a[_0x1b8a6a],_0x13f977=_0x1b8a6a;}const _0x4f15ed=_0x3cd103[_0x15a6('0xdd')]==_0x32cf22[_0x15a6('0xdd')],_0x270f20=Math[_0x15a6('0x7b')](_0x3cd103[_0x15a6('0xdd')])<Math['abs'](_0x32cf22['level'])&&0x0==_0x32cf22['distance'];(_0x4f15ed||_0x270f20)&&(_0x54c7b4['set'](_0x32cf22['id'],_0x3cd103['id']),_0x3b0d6a[_0x15a6('0xdc')](_0x13f977,0x1),_0x1b8a6a--,_0x3cd103[_0x15a6('0x10a')]=!0x1);}for(let _0x323afd=0x0;_0x323afd<_0x3b0d6a[_0x15a6('0x61')];_0x323afd++)_0x54c7b4[_0x15a6('0xf3')](_0x3b0d6a[_0x323afd][_0x15a6('0x56')])&&(_0x3b0d6a[_0x323afd][_0x15a6('0x56')]=_0x54c7b4[_0x15a6('0x88')](_0x3b0d6a[_0x323afd][_0x15a6('0x56')]));}[_0x15a6('0x97')](_0x190750){const _0x40f6e2=new Set(_0x190750[_0x15a6('0xe5')](_0x4f4920=>_0x4f4920['id']));for(let _0x202fc1=0x0;_0x202fc1<_0x190750[_0x15a6('0x61')];_0x202fc1++)_0x40f6e2[_0x15a6('0xf3')](_0x190750[_0x202fc1][_0x15a6('0x56')])||0x0==_0x190750[_0x202fc1][_0x15a6('0x3c')]||(_0x190750[_0x202fc1][_0x15a6('0x51')]=!0x0);return _0x190750[_0x15a6('0xe8')](_0x14bf35=>!_0x14bf35[_0x15a6('0x51')]);}[_0x15a6('0x35')](_0x18fc68){const _0x306840=new Set();for(let _0x19d113=0x0;_0x19d113<_0x18fc68['length'];_0x19d113++){if(_0x306840[_0x15a6('0xf3')](_0x18fc68[_0x19d113]['id'])&&_0x18fc68[_0x19d113][_0x15a6('0x94')]&&(_0x18fc68[_0x19d113][_0x15a6('0x51')]=!0x0),_0x18fc68[_0x19d113][_0x15a6('0x51')])continue;if(0x0==_0x18fc68[_0x19d113]['distance'])continue;if(_0x15a6('0x75')!=_0x18fc68[_0x19d113]['type'])continue;if(null==_0x18fc68[_0x19d113][_0x15a6('0x56')])continue;let _0x6815f7=_0x19d113+0x1,_0x13d4c5=0x0;for(;_0x18fc68[_0x6815f7]['id']!=_0x18fc68[_0x19d113][_0x15a6('0x56')];)'elementStart'==_0x18fc68[_0x6815f7][_0x15a6('0x110')]?_0x13d4c5++:'elementEnd'==_0x18fc68[_0x6815f7][_0x15a6('0x110')]&&_0x13d4c5--,_0x6815f7++;if(0x0!=_0x13d4c5){if(_0x18fc68[_0x19d113][_0x15a6('0x94')])_0x18fc68[_0x19d113][_0x15a6('0x51')]=!0x0;else for(;_0x6815f7!=_0x19d113;)_0x18fc68[_0x6815f7][_0x15a6('0x94')]&&0x0!=_0x18fc68[_0x6815f7]['distance']&&(_0x18fc68[_0x6815f7][_0x15a6('0x51')]=!0x0,_0x306840[_0x15a6('0x10')](_0x18fc68[_0x6815f7][_0x15a6('0x56')])),_0x6815f7--;}}return _0x18fc68[_0x15a6('0xe8')](_0x114738=>!_0x114738['isIncorrect']);}[_0x15a6('0x11d')](_0x51ee0c){const _0x3ed5e6=this['editor']['model'][_0x15a6('0x3e')];for(let _0x477c1e=0x0;_0x477c1e<_0x51ee0c[_0x15a6('0x61')];_0x477c1e++){if(!(_0x51ee0c[_0x477c1e][_0x15a6('0x10a')]||_0x51ee0c[_0x477c1e]['isAddSuggestion']||_0x51ee0c[_0x477c1e][_0x15a6('0x94')]||_0x51ee0c[_0x477c1e][_0x15a6('0x121')]))continue;if(0x0==_0x51ee0c[_0x477c1e][_0x15a6('0x3c')])continue;const _0x593949=_0x51ee0c[_0x477c1e][_0x15a6('0xb2')];_0x3ed5e6[_0x15a6('0xb3')](_0x593949)||_0x3ed5e6[_0x15a6('0x40')](_0x593949)||(_0x51ee0c[_0x477c1e][_0x15a6('0x10a')]&&delete _0x51ee0c[_0x477c1e][_0x15a6('0x10a')],_0x51ee0c[_0x477c1e][_0x15a6('0xc9')]&&delete _0x51ee0c[_0x477c1e]['isAddSuggestion'],_0x51ee0c[_0x477c1e][_0x15a6('0x121')]&&delete _0x51ee0c[_0x477c1e][_0x15a6('0x121')],_0x51ee0c[_0x477c1e][_0x15a6('0x94')]&&(_0x51ee0c[_0x477c1e][_0x15a6('0x51')]=!0x0));}return _0x51ee0c[_0x15a6('0xe8')](_0x5283aa=>!_0x5283aa[_0x15a6('0x51')]);}[_0x15a6('0xf4')](_0x3d5feb,_0x4b8b8b,_0x5dcd14){const _0x5a860d=new _0x3b6f74(),_0x45fb6d=[],_0x5d94d6=new Map(),_0x465a1e=this['editor'][_0x15a6('0x93')],_0x4a8164=_0x465a1e['schema'],_0xfc4ebb=[_0x5a860d],_0x15c1f0={},_0x141c81={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24dfd1=null;const _0x3f45fa=[0x0];for(let _0x1dac7a=0x0;_0x1dac7a<_0x3d5feb[_0x15a6('0x61')];_0x1dac7a++){let _0x262604,_0x486a73;if(_0x15a6('0x75')===_0x3d5feb[_0x1dac7a][_0x15a6('0x110')]){_0x262604=_0x465a1e[_0x15a6('0x8f')](_0x5a860d,_0x3f45fa);const _0x2a31fc=new _0x5770d2(_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')][_0x15a6('0x4d')],_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')]['getAttributes']());_0xfc4ebb[0x0][_0x15a6('0x6c')](_0x2a31fc),_0x3f45fa[_0x15a6('0x7d')](0x0),_0xfc4ebb[_0x15a6('0x5f')](_0x2a31fc),_0x486a73=_0x465a1e[_0x15a6('0x8f')](_0x5a860d,_0x3f45fa),_0x24dfd1=null;}else{if(_0x15a6('0x74')===_0x3d5feb[_0x1dac7a][_0x15a6('0x110')])_0xfc4ebb[_0x15a6('0x7a')](),_0x262604=_0x465a1e['createPositionFromPath'](_0x5a860d,_0x3f45fa),_0x3f45fa[_0x15a6('0x95')](),_0x3f45fa[_0x3f45fa['length']-0x1]++,_0x486a73=_0x465a1e['createPositionFromPath'](_0x5a860d,_0x3f45fa),_0x24dfd1=null;else{if(_0x262604=_0x465a1e['createPositionFromPath'](_0x5a860d,_0x3f45fa),_0x24dfd1&&_0x31ab92(_0x24dfd1,_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')]))_0x24dfd1['_data']+=_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')]['data'];else{const _0x8df206=new _0x4de0b2(_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')][_0x15a6('0x33')],_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')][_0x15a6('0x101')]());_0xfc4ebb[0x0][_0x15a6('0x6c')](_0x8df206),_0x24dfd1=_0x8df206;}_0x3f45fa[_0x3f45fa[_0x15a6('0x61')]-0x1]+=_0x3d5feb[_0x1dac7a][_0x15a6('0xb2')][_0x15a6('0x79')],_0x486a73=_0x465a1e[_0x15a6('0x8f')](_0x5a860d,_0x3f45fa);}}for(const _0x5efa73 of _0x3d5feb[_0x1dac7a][_0x15a6('0xae')])_0x5d94d6[_0x15a6('0x5d')](_0x5efa73,{'start':_0x262604,'end':null});_0x5df917(_0x15a6('0x121'),_0x1dac7a,_0x262604,_0x486a73),_0x5df917(_0x15a6('0xc9'),_0x1dac7a,_0x262604,_0x486a73),_0x5df917(_0x15a6('0x94'),_0x1dac7a,_0x262604,_0x486a73),_0x5df917('isAdded',_0x1dac7a,_0x262604,_0x486a73);for(const _0x126156 of _0x3d5feb[_0x1dac7a]['markersEnd']){_0x5d94d6[_0x15a6('0x88')](_0x126156)['end']=_0x486a73;}}for(const [_0x2a9300,_0x328bfc]of _0x5d94d6){const _0x35b325=this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xba')](_0x328bfc[_0x15a6('0xec')],_0x328bfc[_0x15a6('0x65')]);_0x5a860d[_0x15a6('0x17')][_0x15a6('0x5d')](_0x2a9300,_0x35b325);}return _0x45fb6d[_0x15a6('0x108')]((_0x2a0491,_0x745b3c)=>{const _0x38e034=_0x5a860d[_0x15a6('0x17')][_0x15a6('0x88')](_0x15a6('0xbc')+_0x2a0491['id']),_0x35a354=_0x5a860d[_0x15a6('0x17')][_0x15a6('0x88')](_0x15a6('0xbc')+_0x745b3c['id']);return _0x38e034[_0x15a6('0xec')][_0x15a6('0x26')](_0x35a354[_0x15a6('0xec')])?-0x1:_0x38e034[_0x15a6('0xec')]['isAfter'](_0x35a354['start'])?0x1:_0x38e034[_0x15a6('0x65')][_0x15a6('0x26')](_0x35a354['end'])?-0x1:_0x38e034[_0x15a6('0x65')][_0x15a6('0x3a')](_0x35a354[_0x15a6('0x65')])?0x1:'add'===_0x2a0491[_0x15a6('0x110')]?-0x1:0x1;}),{'root':_0x5a860d,'changes':_0x45fb6d};function _0x5df917(_0x50baea,_0x23ac3d,_0x1947dc,_0x57e5c6){const _0x486f09=!!_0x3d5feb[_0x23ac3d][_0x50baea],_0x1b6c84=_0x486f09?_0x3d5feb[_0x23ac3d][_0x50baea][_0x15a6('0xb5')]:null,_0x41c0f3=_0x23ac3d===_0x3d5feb[_0x15a6('0x61')]-0x1,_0x9232df=_0x141c81[_0x50baea][0x0],_0x2cddf8=_0x4a8164[_0x15a6('0x36')](_0x3d5feb[_0x23ac3d][_0x15a6('0xb2')]);!_0x15c1f0[_0x50baea]&&_0x486f09?_0x15c1f0[_0x50baea]={'start':_0x1947dc,'tapeItem':_0x3d5feb[_0x23ac3d],'userId':_0x1b6c84,'type':_0x50baea}:_0x15c1f0[_0x50baea]&&!_0x486f09?(_0x15c1f0[_0x50baea]['end']=_0x1947dc,_0x3eaf69(_0x15c1f0[_0x50baea]),_0x15c1f0[_0x50baea]=null):_0x15c1f0[_0x50baea]&&_0x486f09&&_0x15c1f0[_0x50baea][_0x15a6('0xb5')]!==_0x1b6c84&&(_0x15c1f0[_0x50baea][_0x15a6('0x65')]=_0x1947dc,_0x9232df&&_0x9232df[_0x15a6('0xb5')]===_0x15c1f0[_0x50baea][_0x15a6('0xb5')]||_0x3eaf69(_0x15c1f0[_0x50baea]),_0x15c1f0[_0x50baea]={'start':_0x1947dc,'tapeItem':_0x3d5feb[_0x23ac3d],'userId':_0x1b6c84,'type':_0x50baea}),_0x15c1f0[_0x50baea]&&_0x2cddf8&&(_0x15a6('0x75')!==_0x3d5feb[_0x23ac3d]['type']||_0x9232df&&_0x9232df[_0x15a6('0xb5')]===_0x1b6c84||_0x141c81[_0x50baea]['unshift']({'userId':_0x1b6c84,'object':_0x3d5feb[_0x23ac3d][_0x15a6('0xb2')],'change':_0x15c1f0[_0x50baea]}),_0x15a6('0x74')===_0x3d5feb[_0x23ac3d]['type']&&_0x9232df&&_0x9232df[_0x15a6('0xc2')]===_0x3d5feb[_0x23ac3d]['item']&&(_0x141c81[_0x50baea][_0x15a6('0x7a')](),_0x15c1f0[_0x50baea]=_0x9232df[_0x15a6('0xd0')])),_0x15c1f0[_0x50baea]&&_0x41c0f3&&(_0x15c1f0[_0x50baea][_0x15a6('0x65')]=_0x57e5c6,_0x3eaf69(_0x15c1f0[_0x50baea]),_0x15c1f0[_0x50baea]=null);}function _0x3eaf69({start:_0x277495,end:_0x4c544c,tapeItem:_0x438cec,userId:_0x1be756,type:_0x63e2b8}){const _0xcf57f4=_0x438cec[_0x15a6('0xb2')],_0x1cf8a3=_0x465a1e[_0x15a6('0x3e')][_0x15a6('0xb3')](_0xcf57f4)&&!_0x465a1e[_0x15a6('0x3e')][_0x15a6('0x40')](_0xcf57f4),_0x17ba4c=_0x277495[_0x15a6('0x117')]==_0x4c544c[_0x15a6('0x90')]&&_0x4c544c[_0x15a6('0x100')];if(_0x1cf8a3&&_0x17ba4c)return;const _0x565eed=_0x465a1e[_0x15a6('0xba')](_0x277495,_0x4c544c),_0x4cc393=_0x4b8b8b[_0x15a6('0x88')](_0x1be756),_0x34192a=new _0x162c8f({'author':_0x4cc393,'type':_0x15a6('0x10a')==_0x63e2b8||_0x15a6('0xc9')==_0x63e2b8?'add':_0x15a6('0xe3'),'data':{'isSuggestion':_0x15a6('0xc9')==_0x63e2b8||'isRemoveSuggestion'==_0x63e2b8},'createdAt':new Date(),'rootName':_0x5dcd14});_0x45fb6d[_0x15a6('0x7d')](_0x34192a),_0x5a860d[_0x15a6('0x17')][_0x15a6('0x5d')]('revision:'+_0x34192a['id'],_0x565eed);}function _0x31ab92(_0x40d030,_0x3b8290){const _0x5bc8b9=_0x40d030['getAttributes'](),_0x181c50=_0x3b8290[_0x15a6('0x101')]();for(const _0x524634 of _0x5bc8b9){if(_0x524634[0x1]!==_0x3b8290['getAttribute'](_0x524634[0x0]))return!0x1;_0x181c50[_0x15a6('0x34')]();}return _0x181c50['next']()[_0x15a6('0xbd')];}}[_0x15a6('0xc8')](){this['editor'][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))[_0x15a6('0x41')]({'view':_0x15a6('0x3f')}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0xd5'))[_0x15a6('0xef')]({'model':_0x15a6('0x3f'),'view':_0xa08c80=>{const _0x1179b0=_0xa08c80[_0x15a6('0x99')]['split'](':')[0x1],_0x205019=this['_getChangeFromId'](_0x1179b0);if(!_0x205019)return null;const _0x1f8cb8=_0x15a6('0x10')==_0x205019[_0x15a6('0x110')]?_0x15a6('0x125'):'deletion',_0x297009=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1f8cb8];return _0x205019[_0x15a6('0x33')][_0x15a6('0x3')]&&_0x297009['push'](_0x15a6('0x4c')+_0x1f8cb8+_0x15a6('0xb8')),this['activeChange']==_0x205019&&_0x297009[_0x15a6('0x7d')](_0x15a6('0xdb')),{'classes':_0x297009,'attributes':{'data-change-id':_0x1179b0}};}}),this['editor'][_0x15a6('0x9a')]['for']('upcast')[_0x15a6('0x10')](_0x4b0ea9=>{_0x4b0ea9['on'](_0x15a6('0x118'),(_0x4eaaf3,_0x38f6ef,_0x38b8aa)=>{const _0x3cc20c=_0x38f6ef[_0x15a6('0xf7')][_0x15a6('0x11f')](0x0);if(!_0x3cc20c||!_0x3cc20c['is'](_0x15a6('0x89'),'code'))return;if(!_0x38b8aa[_0x15a6('0x9f')][_0x15a6('0x96')](_0x3cc20c,{'attributes':[_0x15a6('0x14'),_0x15a6('0x3d')]}))return;const _0xf4f479=_0x38f6ef[_0x15a6('0x76')][_0x15a6('0xec')][_0x15a6('0x117')];_0x38b8aa[_0x15a6('0x6a')][_0x15a6('0xe')]('vid_start',_0x3cc20c['getAttribute'](_0x15a6('0x14')),_0xf4f479),_0x38b8aa[_0x15a6('0x6a')][_0x15a6('0xe')](_0x15a6('0x3d'),_0x3cc20c['getAttribute'](_0x15a6('0x3d')),_0xf4f479);},{'priority':_0x15a6('0x119')});}),this['editor'][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))[_0x15a6('0x10')](_0x9d6e1a=>{_0x9d6e1a['on']('element',(_0x20d372,_0x50dce4,_0x28ee27)=>{if(!_0x28ee27[_0x15a6('0x9f')][_0x15a6('0x96')](_0x50dce4[_0x15a6('0xf7')],{'attributes':[_0x15a6('0x14'),'vid_end']}))return;if(_0x50dce4['modelRange'][_0x15a6('0x1a')])return;const _0x3c68e6=_0x50dce4[_0x15a6('0x76')][_0x15a6('0xec')]['nodeAfter'];_0x3c68e6[_0x15a6('0x115')](_0x15a6('0x14'))||_0x3c68e6[_0x15a6('0x115')]('vid')||(_0x28ee27[_0x15a6('0x6a')][_0x15a6('0xe')](_0x15a6('0x14'),_0x50dce4[_0x15a6('0xf7')][_0x15a6('0xc6')](_0x15a6('0x14')),_0x3c68e6),_0x28ee27[_0x15a6('0x6a')][_0x15a6('0xe')](_0x15a6('0x3d'),_0x50dce4[_0x15a6('0xf7')][_0x15a6('0xc6')](_0x15a6('0x3d')),_0x3c68e6));},{'priority':_0x15a6('0x119')});}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))['elementToAttribute']({'view':{'name':_0x15a6('0x44'),'attributes':{'vid':!0x0}},'model':{'key':_0x15a6('0x50'),'value':_0x433611=>_0x433611['getAttribute'](_0x15a6('0x50'))}}),this[_0x15a6('0xdf')]['model']['schema']['on'](_0x15a6('0x85'),(_0xcd5cc6,[,_0x46c096])=>{['vid_start','vid_end',_0x15a6('0x50')]['includes'](_0x46c096)&&(_0xcd5cc6[_0x15a6('0x9b')]=!0x0,_0xcd5cc6[_0x15a6('0xac')]());},{'priority':_0x15a6('0x54')}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')]('dataDowncast')[_0x15a6('0x10')](_0x3dd301=>{_0x3dd301['on'](_0x15a6('0xf8'),(_0x19a6ce,_0x4eb588,_0x299630)=>{if('\x20'!=_0x4eb588[_0x15a6('0xb2')][_0x15a6('0x33')]||_0x4eb588[_0x15a6('0xb2')]['parent']['maxOffset']>0x1)return;if(!_0x299630[_0x15a6('0x9f')]['consume'](_0x4eb588['item'],_0x19a6ce[_0x15a6('0x4d')]))return;const _0x2fa33d=_0x299630[_0x15a6('0x6a')],_0x49f0c2=_0x299630[_0x15a6('0x45')][_0x15a6('0x38')](_0x4eb588['range']);_0x2fa33d[_0x15a6('0xbb')](_0x49f0c2,_0x2fa33d[_0x15a6('0xf')](_0x15a6('0x44')));});}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x12'))['markerToData']({'model':_0x15a6('0x3f')}),this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0xf9'),function(_0x360fc9){const _0x4ac740=_0x360fc9['plugins'][_0x15a6('0x88')](_0x15a6('0x42'));return(_0x474152,_0x287a7a,_0x351866)=>{const _0x3b4e74=_0x287a7a['markerName']['split'](':')[0x1],_0x46e40f=_0x4ac740[_0x15a6('0x3b')](_0x3b4e74);if(!_0x46e40f)return null;const _0x4123ee='add'==_0x46e40f[_0x15a6('0x110')]?_0x15a6('0x2b'):_0x15a6('0x63');if(!_0x351866[_0x15a6('0x9f')][_0x15a6('0x8b')](_0x287a7a[_0x15a6('0xaf')],_0x474152[_0x15a6('0x4d')]))return;const _0x5116e0=_0x287a7a[_0x15a6('0xaf')][_0x15a6('0xb0')](),_0x53112b=_0x287a7a[_0x15a6('0xaf')][_0x15a6('0xec')],_0x4af5f6=_0x360fc9[_0x15a6('0x93')]['schema'];let _0x4b82ba=null,_0x7ee2b0=null,_0x4b6c03=!0x1,_0x4b013f=!0x1;for(const _0xe47c9e of _0x5116e0){const _0x42d082=_0xe47c9e[_0x15a6('0xb2')];_0x4b6c03=_0x4b6c03||_0x4af5f6[_0x15a6('0x60')](_0x42d082);const _0x5d26b8=_0x351866[_0x15a6('0x45')][_0x15a6('0x114')](_0x42d082);if(_0x5d26b8&&_0x5d26b8['getCustomProperty'](_0x15a6('0x15')))return;_0x15a6('0x74')==_0xe47c9e[_0x15a6('0x110')]&&(_0x4af5f6[_0x15a6('0xb3')](_0x42d082)&&!_0x4af5f6[_0x15a6('0x40')](_0x42d082)&&(_0x42d082[_0x15a6('0xb9')]||_0x53112b[_0x15a6('0xe0')]?_0x4b82ba&&_0x4b82ba[_0x15a6('0x90')]==_0x42d082||(_0x4b82ba=_0x42d082,_0x2d40fb(_0xe47c9e[_0x15a6('0x68')]),_0x4b013f=!0x0):_0x7ee2b0=_0x7ee2b0||_0xe47c9e[_0x15a6('0x68')]));}function _0x2d40fb(_0x12212c){const _0x42b88d=_0x351866[_0x15a6('0x6a')]['createUIElement'](_0x15a6('0x44'),{'class':_0x15a6('0x4c')+_0x4123ee}),_0x48b238=_0x351866[_0x15a6('0x45')]['toViewPosition'](_0x12212c);_0x46e40f[_0x15a6('0x33')]['isSuggestion']&&_0x351866[_0x15a6('0x6a')][_0x15a6('0x11e')](_0x15a6('0x4c')+_0x4123ee+'-new',_0x42b88d),_0x4ac740['activeChange']==_0x46e40f&&_0x351866[_0x15a6('0x6a')]['addClass']('ck-suggestion-marker--active',_0x42b88d),_0x351866[_0x15a6('0x6a')][_0x15a6('0xd6')](_0x48b238,_0x42b88d),_0x351866[_0x15a6('0x45')]['bindElementToMarker'](_0x42b88d,_0x287a7a[_0x15a6('0x99')]);}_0x4b6c03||_0x4b013f||!_0x7ee2b0||_0x2d40fb(_0x7ee2b0);};}(this[_0x15a6('0xdf')]),{'priority':'high'}),this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0xab')]['on']('removeMarker:revision',(_0x2dbd1d,_0x164f96,_0x2fb662)=>{const _0x1a49aa=_0x2fb662[_0x15a6('0x45')]['markerNameToElements'](_0x164f96[_0x15a6('0x99')]);if(_0x1a49aa)for(const _0x309fa8 of _0x1a49aa)(_0x309fa8[_0x15a6('0x62')](_0x15a6('0x31'))||_0x309fa8[_0x15a6('0x62')]('ck-suggestion-marker-merge'))&&(_0x2fb662[_0x15a6('0x45')][_0x15a6('0xd1')](_0x309fa8,_0x164f96[_0x15a6('0x99')]),_0x2fb662[_0x15a6('0x6a')][_0x15a6('0xe3')](_0x309fa8));},{'priority':'high'}),this['editor'][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0xf9'),(_0x13f0de,_0x3346de,_0x283921)=>{const _0xa38db0=_0x3346de[_0x15a6('0x99')]['split'](':')[0x1],_0x409caf=this[_0x15a6('0x3b')](_0xa38db0);if(!_0x409caf)return null;const _0x3db725=_0x15a6('0x10')==_0x409caf['type']?_0x15a6('0x2b'):_0x15a6('0x63');if(_0x283921['consumable'][_0x15a6('0x8b')](_0x3346de[_0x15a6('0xaf')],_0x13f0de[_0x15a6('0x4d')]))for(const _0x3800c7 of _0x3346de[_0x15a6('0xaf')]['getItems']()){if(!_0x3800c7['is'](_0x15a6('0x89'),'softBreak'))continue;const _0x1bac68=_0x283921[_0x15a6('0x6a')][_0x15a6('0x113')]('span',{'class':'ck-suggestion-marker-'+_0x3db725}),_0x17b1b6=_0x283921[_0x15a6('0x45')][_0x15a6('0x116')](this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xcf')](_0x3800c7));_0x409caf[_0x15a6('0x33')]['isSuggestion']&&_0x283921['writer'][_0x15a6('0x11e')](_0x15a6('0x4c')+_0x3db725+_0x15a6('0xb8'),_0x1bac68),this[_0x15a6('0x1d')]==_0x409caf&&_0x283921[_0x15a6('0x6a')][_0x15a6('0x11e')](_0x15a6('0xdb'),_0x1bac68),_0x283921[_0x15a6('0x6a')][_0x15a6('0xd6')](_0x17b1b6,_0x1bac68),_0x283921[_0x15a6('0x45')][_0x15a6('0x124')](_0x1bac68,_0x3346de['markerName']);}},{'priority':_0x15a6('0x4f')}),this['editor'][_0x15a6('0x93')][_0x15a6('0xea')]['on'](_0x15a6('0xd0'),()=>{this[_0x15a6('0xdf')]['editing'][_0x15a6('0x6')][_0x15a6('0xd0')](_0x226d5a=>{for(const _0x477996 of this['editor'][_0x15a6('0x93')][_0x15a6('0xea')][_0x15a6('0xad')]()){const _0x24eea7=this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xea')][_0x15a6('0xca')](_0x477996),_0x20c875=this[_0x15a6('0xdf')][_0x15a6('0x59')]['view'][_0x15a6('0xea')][_0x15a6('0xca')](_0x477996);if(_0x20c875){const _0x4b9778=_0x24eea7['getAttribute'](_0x15a6('0xee'));if(_0x226d5a['removeAttribute'](_0x15a6('0x11c'),_0x20c875),_0x226d5a['removeClass'](_0x15a6('0x105'),_0x20c875),_0x226d5a[_0x15a6('0xe2')](_0x15a6('0x19'),_0x20c875),_0x226d5a[_0x15a6('0xe2')](_0x15a6('0x58'),_0x20c875),_0x4b9778){const _0x522138=this['_getChangeFromId'](_0x4b9778);if(!_0x522138)return null;_0x226d5a[_0x15a6('0xe')]('data-change-id',_0x4b9778,_0x20c875),_0x226d5a[_0x15a6('0x11e')]('ck-revision-history-root-'+_0x522138[_0x15a6('0x110')],_0x20c875),this['activeChange']==_0x522138&&_0x226d5a[_0x15a6('0x11e')]('ck-revision-history-root--active',_0x20c875);}}}});}),this['editor'][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))[_0x15a6('0x41')]({'view':_0x15a6('0x10b'),'model':_0x220e4d=>'revision-comment:'+_0x220e4d,'converterPriority':'highest'}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')](_0x15a6('0x1e'))[_0x15a6('0x41')]({'view':_0x15a6('0x2f'),'model':_0x371bbf=>_0x15a6('0x48')+_0x371bbf,'converterPriority':_0x15a6('0x54')}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')]('dataDowncast')[_0x15a6('0x8e')]({'model':_0x15a6('0xeb'),'view':_0x342e65=>({'name':'suggestion:'+_0x342e65,'group':_0x15a6('0xeb')}),'converterPriority':_0x15a6('0x54')}),this[_0x15a6('0xdf')][_0x15a6('0x9a')][_0x15a6('0xb4')]('editingDowncast')[_0x15a6('0xef')]({'model':'revision-suggestion','view':_0x3054f5=>{const _0x40cd61=_0x3054f5['markerName']['split'](':')[0x1];return'insertion'!=_0x40cd61&&_0x15a6('0x11b')!=_0x40cd61?null:{'classes':[_0x15a6('0x22'),_0x15a6('0xf6')+_0x40cd61]};}}),this['editor'][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0x67'),et(this[_0x15a6('0xdf')],_0x15a6('0x63')),{'priority':_0x15a6('0x4f')}),this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0x13'),et(this[_0x15a6('0xdf')],_0x15a6('0x2b')),{'priority':_0x15a6('0x4f')}),this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0xab')]['on'](_0x15a6('0x4b'),(_0x6ac9b1,_0x9ab858,_0x1bc051)=>{const _0x13f3ac=_0x1bc051[_0x15a6('0x45')][_0x15a6('0xd2')](_0x9ab858[_0x15a6('0x99')]);if(_0x13f3ac)for(const _0x2bc3d0 of _0x13f3ac)_0x2bc3d0['is'](_0x15a6('0x1f'))&&(_0x1bc051[_0x15a6('0x45')][_0x15a6('0xd1')](_0x2bc3d0,_0x9ab858['markerName']),_0x1bc051[_0x15a6('0x6a')][_0x15a6('0xe3')](_0x2bc3d0));},{'priority':'high'});}['_getChangeFromId'](_0x5871a3){return this[_0x15a6('0x29')][_0x15a6('0x88')](_0x5871a3);}[_0x15a6('0xfa')](_0x299a95){return this['_changeView']&&this[_0x15a6('0xd4')][_0x15a6('0xb')](),this[_0x15a6('0xd4')]=new _0x13ee47(this[_0x15a6('0xdf')][_0x15a6('0xc3')],_0x299a95),this[_0x15a6('0xd4')];}[_0x15a6('0x4')](){this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xea')][_0x15a6('0x7f')][_0x15a6('0xcb')](_0x15a6('0x3f')),this['on'](_0x15a6('0x49'),(_0x3a7b8f,_0x5154c5,_0x4e55d5,_0x2d9107)=>{_0x2d9107&&this[_0x15a6('0x27')][_0x15a6('0xe3')](_0x2d9107),_0x4e55d5&&(this[_0x15a6('0x27')]['add']({'view':_0x4e55d5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5be077=this[_0x15a6('0xdf')][_0x15a6('0x59')],_0x44be73=this[_0x15a6('0x3b')](_0x4e55d5[_0x15a6('0x20')]);let _0x185902;if(_0x44be73[_0x15a6('0x33')]['isOnRoot']){const _0x1c3e9f=_0x5be077[_0x15a6('0x6')]['getDomRoot'](_0x44be73[_0x15a6('0xfb')]);_0x185902=Array['from'](_0x1c3e9f[_0x15a6('0xa8')]());}else{const _0x1f0406=this[_0x15a6('0xdf')]['model'][_0x15a6('0x17')]['get'](_0x15a6('0xbc')+_0x4e55d5[_0x15a6('0x20')]);_0x185902=Array[_0x15a6('0x78')](_0x5be077[_0x15a6('0x45')][_0x15a6('0xd2')](_0x1f0406[_0x15a6('0x4d')]))[_0x15a6('0xe5')](_0x557761=>_0x5be077[_0x15a6('0x6')][_0x15a6('0x111')][_0x15a6('0xc7')](_0x557761))[_0x15a6('0xe5')](_0x3dc513=>Array[_0x15a6('0x78')](_0x3dc513[_0x15a6('0xa8')]()))[_0x15a6('0x23')]();}if(!this[_0x15a6('0x2d')])return _0x185902[0x0];return _0x185902[_0x15a6('0x52')](_0x2e067e=>_0x2e067e[_0x15a6('0x11a')]-0x3<=this[_0x15a6('0x2d')]['y']&&_0x2e067e[_0x15a6('0x6e')]+0x3>=this[_0x15a6('0x2d')]['y']&&_0x2e067e[_0x15a6('0x30')]-0x3<=this[_0x15a6('0x2d')]['x']&&_0x2e067e[_0x15a6('0x43')]+0x3>=this[_0x15a6('0x2d')]['x'])||_0x185902[0x0];}}}),this[_0x15a6('0x27')]['showStack'](_0x15a6('0x112')));}),this['on'](_0x15a6('0x2e'),(_0x1bc7c7,_0x11ba30,_0x4e772d,_0xc2d157)=>{this['activeView']=_0x4e772d?this['_getViewForChange'](_0x4e772d):null,this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xd0')](()=>{const _0x46b207=this[_0x15a6('0xdf')][_0x15a6('0x59')];_0xc2d157&&(_0xc2d157[_0x15a6('0x33')][_0x15a6('0x8')]?_0x46b207[_0x15a6('0x6')][_0x15a6('0xd0')](_0x15d586=>{_0x15d586[_0x15a6('0xe2')](_0x15a6('0x58'),_0x46b207[_0x15a6('0x6')][_0x15a6('0xea')]['getRoot'](_0xc2d157[_0x15a6('0xfb')]));}):_0x46b207[_0x15a6('0xc1')](_0x15a6('0xbc')+_0xc2d157['id'])),_0x4e772d&&(_0x4e772d[_0x15a6('0x33')][_0x15a6('0x8')]?_0x46b207[_0x15a6('0x6')]['change'](_0x4d690a=>{_0x4d690a[_0x15a6('0x11e')](_0x15a6('0x58'),_0x46b207['view'][_0x15a6('0xea')]['getRoot'](_0x4e772d[_0x15a6('0xfb')]));}):_0x46b207[_0x15a6('0xc1')](_0x15a6('0xbc')+_0x4e772d['id']));});}),this[_0x15a6('0xc4')](this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0x6')]['document'],_0x15a6('0xa'),(_0x28ec16,_0x1f360d)=>{if(this['activeChange'])return;const _0x4e59d8=this[_0x15a6('0x10f')](_0x1f360d['target']),_0x579b49=this[_0x15a6('0x29')][_0x15a6('0x88')](_0x4e59d8);_0x579b49?(this[_0x15a6('0x2d')]={'x':_0x1f360d[_0x15a6('0x7e')]['x'],'y':_0x1f360d[_0x15a6('0x7e')]['y']},this[_0x15a6('0x120')]=this[_0x15a6('0xfa')](_0x579b49)):(this[_0x15a6('0x2d')]=null,this[_0x15a6('0x120')]=null);}),this[_0x15a6('0xc4')](this[_0x15a6('0xdf')][_0x15a6('0x59')][_0x15a6('0x6')]['document'],'mousedown',(_0x118350,_0x791565)=>{const _0x2dd9b8=this[_0x15a6('0x10f')](_0x791565['target']),_0x205b93=this[_0x15a6('0x29')]['get'](_0x2dd9b8);_0x205b93?(this[_0x15a6('0x2d')]={'x':_0x791565['domEvent']['x'],'y':_0x791565['domEvent']['y']},_0x205b93===this[_0x15a6('0x1d')]?this[_0x15a6('0x27')][_0x15a6('0xb7')]():this['activeChange']=_0x205b93):(this[_0x15a6('0x2d')]=null,this[_0x15a6('0x1d')]=null);});}[_0x15a6('0x10f')](_0x1eaddc){do{const _0x132fb3=_0x1eaddc[_0x15a6('0xc6')]('data-change-id');if(_0x132fb3)return _0x132fb3;_0x1eaddc=_0x1eaddc[_0x15a6('0x90')];}while(_0x1eaddc);return null;}[_0x15a6('0xb6')](){this[_0x15a6('0xdf')][_0x15a6('0x93')][_0x15a6('0xd0')](_0x4080ca=>{for(const _0xd3f8b7 of this['editor'][_0x15a6('0x93')][_0x15a6('0x17')])_0x4080ca[_0x15a6('0x86')](_0xd3f8b7);});}}function et(_0x4c8637,_0x124f03){return(_0x4a163b,_0x1b985a,_0x48ced2)=>{if(!_0x48ced2[_0x15a6('0x9f')]['test'](_0x1b985a[_0x15a6('0xaf')],_0x4a163b[_0x15a6('0x4d')]))return;const _0x362d5d=_0x1b985a[_0x15a6('0xaf')][_0x15a6('0xb0')](),_0x20989f=_0x1b985a[_0x15a6('0xaf')][_0x15a6('0xec')],_0x3b9cea=_0x4c8637[_0x15a6('0x93')][_0x15a6('0x3e')];let _0x44c23a=null,_0x3105fc=null,_0x30021a=!0x1,_0xac33d8=!0x1;for(const _0xb360c3 of _0x362d5d){const _0xa915b8=_0xb360c3['item'];_0x30021a=_0x30021a||_0x3b9cea['isContent'](_0xa915b8);const _0x4de138=_0x48ced2[_0x15a6('0x45')]['toViewElement'](_0xa915b8);if(_0x4de138&&_0x4de138[_0x15a6('0x7c')](_0x15a6('0x15')))return;'elementEnd'==_0xb360c3[_0x15a6('0x110')]&&(_0x3b9cea[_0x15a6('0xb3')](_0xa915b8)&&!_0x3b9cea['isLimit'](_0xa915b8)&&(_0xa915b8[_0x15a6('0xb9')]||_0x20989f['isAtEnd']?_0x44c23a&&_0x44c23a['parent']==_0xa915b8||(_0x44c23a=_0xa915b8,_0x55dc68(_0xb360c3[_0x15a6('0x68')]),_0xac33d8=!0x0):_0x3105fc=_0x3105fc||_0xb360c3['previousPosition']));}function _0x55dc68(_0x434edb){const _0x2fb52b=_0x48ced2[_0x15a6('0x45')][_0x15a6('0x116')](_0x434edb),_0x2b6c1a=_0x48ced2[_0x15a6('0x6a')][_0x15a6('0x113')]('span',{'class':'ck-suggestion-preview-marker-'+_0x124f03});_0x48ced2['writer']['insert'](_0x2fb52b,_0x2b6c1a),_0x48ced2[_0x15a6('0x45')][_0x15a6('0x124')](_0x2b6c1a,_0x1b985a[_0x15a6('0x99')]);}_0x30021a||_0xac33d8||!_0x3105fc||_0x55dc68(_0x3105fc);};}export class RestoreRevisionCommand extends _0x64b08{constructor(_0x4ff0c4){super(_0x4ff0c4);const _0x85c885=_0x4ff0c4[_0x15a6('0x1c')][_0x15a6('0x88')](d);this[_0x15a6('0x1')]=!0x1,this[_0x15a6('0xc4')](_0x85c885,_0x15a6('0xed'),()=>this[_0x15a6('0x55')]()),this[_0x15a6('0xc4')](_0x85c885,_0x15a6('0x9e'),()=>this[_0x15a6('0x55')]());}['execute'](){const _0x55709e=this[_0x15a6('0xdf')],_0x1221fa=_0x55709e[_0x15a6('0x1c')][_0x15a6('0x88')](d),_0x21957f=_0x1221fa[_0x15a6('0x6d')]?_0x1221fa[_0x15a6('0x106')][_0x15a6('0x11')]:null;_0x55709e['config'][_0x15a6('0x88')](_0x15a6('0x102'))[_0x15a6('0x80')](_0x21957f);}['refresh'](){const {isReady:_0x499ee4,isEnabled:_0x54d004}=this[_0x15a6('0xdf')][_0x15a6('0x1c')][_0x15a6('0x88')](d);this[_0x15a6('0xa1')]=_0x499ee4&&_0x54d004;}}export class ShowChangeCommand extends _0x64b08{constructor(_0xd45e59,{direction:_0x51a790}){super(_0xd45e59);const _0x19d399=_0xd45e59[_0x15a6('0x1c')][_0x15a6('0x88')](d);this[_0x15a6('0x1')]=!0x1,this[_0x15a6('0x8a')]=_0x15a6('0x5')===_0x51a790?0x1:-0x1,this[_0x15a6('0xc4')](_0x19d399,_0x15a6('0xed'),()=>this[_0x15a6('0x55')]()),this[_0x15a6('0xc4')](_0x19d399,'change:isEnabled',()=>this[_0x15a6('0x55')]()),this[_0x15a6('0xc4')](_0x19d399,'change:activeChange',()=>this[_0x15a6('0x55')]());}['execute'](){const _0x3621c7=this[_0x15a6('0xdf')],_0x234a74=_0x3621c7['plugins'][_0x15a6('0x88')](d),{isNavigationMode:_0x540958,currentChangeNumber:_0x24f992}=_0x234a74;let _0x3cd86b;if(_0x234a74[_0x15a6('0x1d')]=_0x540958?_0x234a74[_0x15a6('0x106')][_0x15a6('0x77')]['get'](_0x24f992+this['_step']):_0x234a74[_0x15a6('0x106')][_0x15a6('0x77')]['first'],_0x234a74['activeChange']['data'][_0x15a6('0x8')])_0x3cd86b=_0x3621c7[_0x15a6('0x59')][_0x15a6('0x6')][_0x15a6('0xf5')](_0x234a74[_0x15a6('0x1d')][_0x15a6('0xfb')]);else{const _0x30ca92=_0x3621c7[_0x15a6('0x93')][_0x15a6('0x17')][_0x15a6('0x88')](_0x15a6('0xbc')+_0x234a74[_0x15a6('0x1d')]['id']);_0x3cd86b=_0x3e8826(_0x3621c7[_0x15a6('0x59')],_0x30ca92);}_0x3117ae({'target':_0x3cd86b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x430996,currentChangeNumber:_0x2b1b72,numberOfChanges:_0x25131f,isReady:_0x462caa,isEnabled:_0x2a93bc}=this[_0x15a6('0xdf')][_0x15a6('0x1c')]['get'](d);this['isEnabled']=!!(_0x2a93bc&&_0x462caa&&_0x25131f)&&(!_0x430996||(0x1===this[_0x15a6('0x8a')]?_0x2b1b72<_0x25131f-0x1:_0x2b1b72>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d65=['isReady','stopPropagation','execute','function','first','source','listenTo','name','isVisible','locale','set','isActionsDropdownOpen','threeVerticalDots','bindTemplate','add','find','Restore\x20this\x20revision','buttonView','panelPosition','bind','class','listView','action','items','_action','ck-revision-history-sidebar__revision__actions','Compare\x20against\x20selected','children','model'];(function(_0x2d1c78,_0x4d6578){const _0xcc5ea6=function(_0x380f69){while(--_0x380f69){_0x2d1c78['push'](_0x2d1c78['shift']());}};_0xcc5ea6(++_0x4d6578);}(_0x4d65,0x121));const _0xcc5e=function(_0x2d1c78,_0x4d6578){_0x2d1c78=_0x2d1c78-0x0;let _0xcc5ea6=_0x4d65[_0x2d1c78];return _0xcc5ea6;};import{Collection as _0x4343ac}from'ckeditor5/src/utils';import{icons as _0x1a8e2e}from'ckeditor5/src/core';import{Model as _0x5ef8d4,addListToDropdown as _0x3b5832,createDropdown as _0x1100a5}from'ckeditor5/src/ui';import{getTranslation as _0x192628}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x5d3101,_0x142074){const _0x7dd764=_0x5d3101[_0xcc5e('0xe')],_0x10403d=_0x5d3101[_0xcc5e('0xa')],_0x50dd64=_0x1100a5(_0x10403d);_0x50dd64[_0xcc5e('0x13')]='sw';const _0x1ddc1e=function(_0x2475da,_0x199d18){const _0x260843=function(_0x1e413b,_0xb5b28d){const _0xd867a7=_0x1e413b[_0xcc5e('0xa')],_0x1d8b0f={'Compare\x20against\x20selected':_0x192628(_0xd867a7,_0xcc5e('0x1b')),'Name\x20this\x20revision':_0x192628(_0xd867a7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x192628(_0xd867a7,_0xcc5e('0x11'))};return _0xb5b28d['map'](_0x3ab258=>{const _0x426004=_0x1d8b0f[_0x3ab258[_0xcc5e('0x8')]];return _0x426004&&_0x426004!==_0x3ab258[_0xcc5e('0x8')]&&(_0x3ab258[_0xcc5e('0x8')]=_0x426004),_0x3ab258;});}(_0x2475da,_0x199d18),_0x2eff17=new _0x4343ac();for(const _0x546f80 of _0x260843){const _0x55ed2c={'type':'button','model':new _0x5ef8d4({'label':_0x546f80[_0xcc5e('0x8')],'class':_0x546f80[_0xcc5e('0x15')],'withText':!0x0,'_action':_0x546f80[_0xcc5e('0x17')]})};_0x55ed2c[_0xcc5e('0x0')][_0xcc5e('0x14')]('isEnabled')['to'](_0x2475da,'isActionsDropdownOpen',_0x5725d2=>_0xcc5e('0x4')!=typeof _0x546f80['isEnabled']||(!_0x5725d2||_0x546f80['isEnabled'](_0x2475da))),_0x2eff17[_0xcc5e('0xf')](_0x55ed2c);}return _0x2eff17;}(_0x5d3101,_0x142074);return _0x5d3101[_0xcc5e('0x14')](_0xcc5e('0xc'))['to'](_0x50dd64,'isOpen'),_0x50dd64[_0xcc5e('0x12')][_0xcc5e('0xb')]({'label':_0x192628(_0x10403d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1a8e2e[_0xcc5e('0xd')]}),_0x50dd64['extendTemplate']({'attributes':{'class':[_0xcc5e('0x1a'),_0x7dd764['if'](_0xcc5e('0xc'),'ck-on')]},'on':{'click':_0x7dd764['to'](_0x6176d5=>_0x6176d5[_0xcc5e('0x2')]())}}),_0x50dd64['on'](_0xcc5e('0x3'),_0x28b95c=>{_0x5d3101[_0xcc5e('0x1')]&&_0xcc5e('0x4')==typeof _0x28b95c[_0xcc5e('0x6')][_0xcc5e('0x19')]&&_0x28b95c['source'][_0xcc5e('0x19')](_0x5d3101);}),_0x3b5832(_0x50dd64,_0x1ddc1e),_0x50dd64[_0xcc5e('0x7')](_0x5d3101,'change:isActionsDropdownOpen',(_0x3dc86f,_0x127d23,_0x14f681)=>{if(_0x14f681)for(const _0x386bc4 of _0x50dd64[_0xcc5e('0x16')][_0xcc5e('0x18')]){const _0x167ba1=_0x386bc4[_0xcc5e('0x1c')][_0xcc5e('0x5')],_0x33758e=_0x142074[_0xcc5e('0x10')](_0x35100d=>_0x35100d['action']===_0x167ba1[_0xcc5e('0x19')])[_0xcc5e('0x9')];_0x386bc4[_0xcc5e('0x9')]=void 0x0===_0x33758e||_0x33758e(_0x5d3101);}}),_0x50dd64;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cd0=['push','ck-revision-history-sidebar__revision-author','name','Revision\x20creator','ck-revision-history-sidebar__revision-author_creator','setTemplate','ck-revision-history-sidebar__revision-author__name','Revision\x20author'];(function(_0x1c8ef2,_0x4cd0f1){const _0x557261=function(_0x2b72e9){while(--_0x2b72e9){_0x1c8ef2['push'](_0x1c8ef2['shift']());}};_0x557261(++_0x4cd0f1);}(_0x4cd0,0xdc));const _0x5572=function(_0x1c8ef2,_0x4cd0f1){_0x1c8ef2=_0x1c8ef2-0x0;let _0x557261=_0x4cd0[_0x1c8ef2];return _0x557261;};import{View as _0x45c9ae,IconView as _0x49bb84}from'ckeditor5/src/ui';import{getTranslation as _0x2f422e}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x6e0c48 from'../../../theme/icons/user.svg';export default class ti extends _0x45c9ae{constructor(_0xaef646,_0x16a399,_0x50a792){super(_0xaef646);const _0x1e6ea3=new _0x49bb84();_0x1e6ea3['set']({'content':_0x6e0c48,'viewBox':'0\x200\x2011\x2010'});const _0x5b5a7d=['ck',_0x5572('0x5')];_0x50a792&&_0x5b5a7d[_0x5572('0x4')](_0x5572('0x0'));const _0x141886=[{'tag':'span','attributes':{'class':['ck',_0x5572('0x2')],'title':_0x2f422e(_0xaef646,_0x50a792?_0x5572('0x7'):_0x5572('0x3'))},'children':[_0x1e6ea3,_0x16a399[_0x5572('0x6')]]}];this[_0x5572('0x1')]({'tag':'li','attributes':{'class':_0x5b5a7d},'children':_0x141886});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x41ea=['extendTemplate','span','set'];(function(_0x2c6b89,_0x41ea98){var _0x2528ed=function(_0x180264){while(--_0x180264){_0x2c6b89['push'](_0x2c6b89['shift']());}};_0x2528ed(++_0x41ea98);}(_0x41ea,0x11e));var _0x2528=function(_0x2c6b89,_0x41ea98){_0x2c6b89=_0x2c6b89-0x0;var _0x2528ed=_0x41ea[_0x2c6b89];return _0x2528ed;};import{LabeledFieldView as _0x2bda1c}from'ckeditor5/src/ui';import{getTranslation as _0x336ea5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x2bda1c{constructor(_0x5d8858,_0x145004){super(_0x5d8858,_0x145004),this[_0x2528('0x1')]({'label':_0x336ea5(_0x5d8858,'Revision\x20name')}),this[_0x2528('0x2')]({'tag':_0x2528('0x0'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5627=['revisionNameView','set','setName','isSelected','render','bind','srcElement','createdAt','closest','change','ck-revision-history-sidebar__revision-wrapper','.ck-thread__remove-confirm','bindTemplate','creator','deselect','isConfirm','revisionActionsView','map','fire','div','isHighlighted','filter','unhighlight','ck-revision-history-sidebar__revision__controls-wrapper','isActionsDropdownOpen','from','placeholder','ck-reset','name','ck-revision-history-sidebar__revision_highlighted','_revision','ck-revision-history-sidebar__revision_selected','uiLanguage','value','ck-disabled','ck-revision-history-sidebar__revision','listenTo','fieldView','ck-revision-history-sidebar__actions_dropdown_open','unshift','element','length','ck-revision-history-sidebar__revision__date','_createdAtFormatted','isEnabled','highlight'];(function(_0x3929f1,_0x56271b){const _0x21affb=function(_0x3e0f02){while(--_0x3e0f02){_0x3929f1['push'](_0x3929f1['shift']());}};_0x21affb(++_0x56271b);}(_0x5627,0x154));const _0x21af=function(_0x3929f1,_0x56271b){_0x3929f1=_0x3929f1-0x0;let _0x21affb=_0x5627[_0x3929f1];return _0x21affb;};import{View as _0x41c6c6,createLabeledInputText as _0x5725cb}from'ckeditor5/src/ui';import{ConfirmMixin as _0x1304d4}from'ckeditor5-collaboration/src/collaboration-core';import _0x584715 from'./revisionnameview';import _0x338d14 from'./revisionauthorview';import{dateToPrettyFormat as _0x499dd6}from'./utils';import{createActionsDropdownView as _0x3d7bf1}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x1304d4(_0x41c6c6){constructor(_0x476564,_0x136dea,_0x5e9214){super(_0x476564);const _0x1d29d3=this[_0x21af('0x28')],_0x505e07=function(_0x40011f,_0x2b6366){const _0x3f9341=Array[_0x21af('0x7')](_0x2b6366['authors'])[_0x21af('0x3')](_0x5a247b=>_0x5a247b!=_0x2b6366['creator']);return _0x2b6366[_0x21af('0x29')]&&_0x3f9341[_0x21af('0x15')](_0x2b6366[_0x21af('0x29')]),_0x3f9341[_0x21af('0x2d')](_0x3cf9a=>new _0x338d14(_0x40011f,_0x3cf9a,_0x3cf9a==_0x2b6366[_0x21af('0x29')]));}(_0x476564,_0x136dea);this['id']=_0x136dea['id'],this[_0x21af('0xc')]=_0x136dea,this[_0x21af('0x21')](_0x21af('0xa'),'createdAt')['to'](_0x136dea),this[_0x21af('0x21')]('_createdAtFormatted')['to'](this,_0x21af('0x23'),_0x3f91f3=>_0x3f91f3?_0x499dd6(_0x476564[_0x21af('0xe')],_0x3f91f3):void 0x0),this['set'](_0x21af('0x1f'),!0x1),this[_0x21af('0x1d')](_0x21af('0x2'),!0x1),this['set'](_0x21af('0x6'),!0x1),this[_0x21af('0x1d')]('isReady',!0x1),this['set'](_0x21af('0x1a'),!0x1),this[_0x21af('0x1c')]=new _0x584715(_0x476564,_0x5725cb),this[_0x21af('0x1c')][_0x21af('0x13')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView'][_0x21af('0x21')](_0x21af('0xf'),_0x21af('0x8'))['to'](this,_0x21af('0xa'),_0x21af('0x19')),this[_0x21af('0x1c')][_0x21af('0x21')](_0x21af('0x1a'))['to'](this,_0x21af('0x1f'),this,_0x21af('0x1a'),(_0x7aded7,_0x121fe1)=>_0x7aded7&&_0x121fe1),this[_0x21af('0x2c')]=_0x5e9214&&_0x5e9214[_0x21af('0x17')]?_0x3d7bf1(this,_0x5e9214):'',this[_0x21af('0x2c')]&&this[_0x21af('0x2c')][_0x21af('0x21')](_0x21af('0x1a'))['to'](this),this['setTemplate']({'tag':_0x21af('0x1'),'attributes':{'class':['ck',_0x21af('0x9'),_0x21af('0x26'),_0x1d29d3['if'](_0x21af('0x2b'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x21af('0x1'),'attributes':{'class':['ck',_0x21af('0x9'),_0x21af('0x11'),_0x1d29d3['if']('isEnabled',_0x21af('0x10'),_0x168030=>!_0x168030),_0x1d29d3['if'](_0x21af('0x1f'),_0x21af('0xd')),_0x1d29d3['if']('isHighlighted',_0x21af('0xb')),_0x1d29d3['if'](_0x21af('0x6'),_0x21af('0x14'))]},'children':[this[_0x21af('0x1c')],{'tag':'span','attributes':{'class':['ck',_0x21af('0x18')]},'children':[{'text':_0x1d29d3['to'](_0x21af('0x19'))}]},{'tag':'div','attributes':{'class':['ck',_0x21af('0x5')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x505e07}]},this['revisionActionsView']],'on':{'click':_0x1d29d3['to'](_0x5289f8=>{_0x5289f8[_0x21af('0x22')][_0x21af('0x24')](_0x21af('0x27'))||this['isReady']&&this[_0x21af('0x1a')]&&this[_0x21af('0x0')]('select',{'id':this['id']});})}}]});}[_0x21af('0x20')](){super['render']();const _0x274315=this[_0x21af('0x1c')][_0x21af('0x13')][_0x21af('0x16')];this[_0x21af('0x12')](_0x274315,_0x21af('0x25'),()=>{this['fire'](_0x21af('0x1e'),{'id':this['id'],'name':_0x274315['value']});});}['select'](){this[_0x21af('0x1f')]=!0x0;}[_0x21af('0x2a')](){this[_0x21af('0x1f')]=!0x1;}[_0x21af('0x1b')](){this[_0x21af('0x2')]=!0x0;}[_0x21af('0x4')](){this[_0x21af('0x2')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1445=['set','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','click','false','span','ck-hidden','_isCollapsed','setTemplate','ck-revision-history-sidebar__subrevision-collapser__inner'];(function(_0xad2bfb,_0x14450f){const _0x25c078=function(_0x264356){while(--_0x264356){_0xad2bfb['push'](_0xad2bfb['shift']());}};_0x25c078(++_0x14450f);}(_0x1445,0x91));const _0x25c0=function(_0xad2bfb,_0x14450f){_0xad2bfb=_0xad2bfb-0x0;let _0x25c078=_0x1445[_0xad2bfb];return _0x25c078;};import{View as _0x46c7a4}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x46c7a4{constructor(_0x392c5d){super(_0x392c5d);const _0x3dc93d=this[_0x25c0('0x6')];this[_0x25c0('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x25c0('0x3')]({'tag':_0x25c0('0x0'),'attributes':{'class':['ck',_0x25c0('0x7'),_0x3dc93d['if']('isVisible',_0x25c0('0x1'),_0x37d42a=>!_0x37d42a),_0x3dc93d['if'](_0x25c0('0x2'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':'button','aria-pressed':_0x3dc93d['to'](_0x25c0('0x2'),_0x3b0554=>_0x3b0554?_0x25c0('0x9'):'true')},'children':[{'tag':_0x25c0('0x0'),'attributes':{'class':['ck',_0x25c0('0x4')]}}],'on':{'click':_0x3dc93d['to'](_0x25c0('0x8'))}});}['toggle'](){this[_0x25c0('0x2')]=!this[_0x25c0('0x2')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56d8=['ck-revision-history-sidebar__subrevision','deselect','select','_parentRevisionId','div','creator','bind','ck-revision-history-sidebar__revision','createdAt','ck-revision-history-sidebar__revision_selected','span','setTemplate','ck-revision-history-sidebar__revision__date','isSelected','set','_createdAtFormatted','uiLanguage','bindTemplate'];(function(_0x4a1986,_0x56d8b1){const _0x212cd0=function(_0x4012b1){while(--_0x4012b1){_0x4a1986['push'](_0x4a1986['shift']());}};_0x212cd0(++_0x56d8b1);}(_0x56d8,0x19b));const _0x212c=function(_0x4a1986,_0x56d8b1){_0x4a1986=_0x4a1986-0x0;let _0x212cd0=_0x56d8[_0x4a1986];return _0x212cd0;};import{View as _0x1863f1}from'ckeditor5/src/ui';import _0x358a95 from'./revisionauthorview';import{dateToPrettyFormat as _0x3dbaec}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1863f1{constructor(_0x3e344c,_0x2b60b1,_0x5038b0){super(_0x3e344c);const _0x4914bc=this[_0x212c('0x2')];this['id']=_0x2b60b1['id'],this[_0x212c('0x9')](_0x212c('0xb'))['to'](_0x2b60b1),this[_0x212c('0x11')]('isSelected',!0x1),this['bind'](_0x212c('0x0'))['to'](this,_0x212c('0xb'),_0x48b6ed=>_0x48b6ed?_0x3dbaec(_0x3e344c[_0x212c('0x1')],_0x48b6ed):void 0x0),this[_0x212c('0x6')]=_0x5038b0,this[_0x212c('0xe')]({'tag':_0x212c('0x7'),'attributes':{'class':['ck','ck-reset',_0x212c('0xa'),_0x212c('0x3'),_0x4914bc['if'](_0x212c('0x10'),_0x212c('0xc'))]},'children':[{'tag':_0x212c('0xd'),'attributes':{'class':['ck',_0x212c('0xf')]},'children':[{'text':_0x4914bc['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x358a95(_0x3e344c,_0x2b60b1[_0x212c('0x8')],!0x0)]}],'on':{'click':_0x4914bc['to'](this['select']['bind'](this))}});}[_0x212c('0x5')](){this[_0x212c('0x10')]=!0x0,this['fire']('select',{'parentId':this[_0x212c('0x6')]});}[_0x212c('0x4')](){this[_0x212c('0x10')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e6a=['long','toLocaleDateString','numeric'];(function(_0x409415,_0x5e6a9a){var _0x230ea6=function(_0x15b1ca){while(--_0x15b1ca){_0x409415['push'](_0x409415['shift']());}};_0x230ea6(++_0x5e6a9a);}(_0x5e6a,0x173));var _0x230e=function(_0x409415,_0x5e6a9a){_0x409415=_0x409415-0x0;var _0x230ea6=_0x5e6a[_0x409415];return _0x230ea6;};export function dateToPrettyFormat(_0x3618af,_0x24816d){return _0x24816d[_0x230e('0x2')](_0x3618af,{'month':_0x230e('0x1'),'day':_0x230e('0x0')})+',\x20'+_0x24816d['toLocaleTimeString'](_0x3618af,{'hour':'numeric','minute':_0x230e('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ab6=['arrowright','input','revisionNameInputValue','form','set','trim','_createRevisionNameInput','extendTemplate','cancelButtonView','arrowleft','submit','stopPropagation','check','ck-revision-history-save-revision-form','element','focus','delegate','Save','ck-button-save','type','focusTracker','saveButtonView','render','ck-button-cancel','execute','value','_focusCycler','setTemplate','locale','fieldView','cancel','revisionName','arrowdown','shift\x20+\x20tab','_focusables','Name\x20of\x20the\x20revision\x20(optional)','add','focusFirst','revisionNameInputView','keystrokes'];(function(_0x38a5bb,_0x4ab628){const _0x5d8e21=function(_0x177ff3){while(--_0x177ff3){_0x38a5bb['push'](_0x38a5bb['shift']());}};_0x5d8e21(++_0x4ab628);}(_0x4ab6,0x152));const _0x5d8e=function(_0x38a5bb,_0x4ab628){_0x38a5bb=_0x38a5bb-0x0;let _0x5d8e21=_0x4ab6[_0x38a5bb];return _0x5d8e21;};import{icons as _0x48b109}from'ckeditor5/src/core';import{ButtonView as _0x50096a,FocusCycler as _0x2c3130,LabeledFieldView as _0x5927a4,View as _0x5de70c,ViewCollection as _0x4f7465,createLabeledInputText as _0x270d21,injectCssTransitionDisabler as _0x1b61a1,submitHandler as _0x22ee95}from'ckeditor5/src/ui';import{FocusTracker as _0x42ad90,KeystrokeHandler as _0x477cef}from'ckeditor5/src/utils';import{getTranslation as _0x147a56}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5de70c{constructor(_0x172b1d){super(_0x172b1d),this[_0x5d8e('0x2')]=new _0x42ad90(),this[_0x5d8e('0x15')]=new _0x477cef(),this[_0x5d8e('0x1a')]('revisionNameInputValue',''),this[_0x5d8e('0x14')]=this[_0x5d8e('0x1c')](),this[_0x5d8e('0x3')]=this['_createButton'](_0x147a56(_0x172b1d,_0x5d8e('0x27')),_0x48b109[_0x5d8e('0x22')],_0x5d8e('0x0')),this[_0x5d8e('0x3')][_0x5d8e('0x1')]=_0x5d8e('0x20'),this['cancelButtonView']=this['_createButton'](_0x147a56(_0x172b1d,'Cancel'),_0x48b109[_0x5d8e('0xc')],_0x5d8e('0x5'),'cancel'),this['_focusables']=new _0x4f7465(),this['_focusCycler']=new _0x2c3130({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x5d8e('0x15')],'actions':{'focusPrevious':_0x5d8e('0xf'),'focusNext':'tab'}}),this[_0x5d8e('0x9')]({'tag':_0x5d8e('0x19'),'attributes':{'class':['ck',_0x5d8e('0x23'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x5d8e('0x14')],this['saveButtonView'],this[_0x5d8e('0x1e')]]}),_0x1b61a1(this);}[_0x5d8e('0x4')](){super[_0x5d8e('0x4')](),_0x22ee95({'view':this}),([this['revisionNameInputView'],this[_0x5d8e('0x3')],this[_0x5d8e('0x1e')]]['forEach'](_0x514490=>{this[_0x5d8e('0x10')]['add'](_0x514490),this['focusTracker'][_0x5d8e('0x12')](_0x514490[_0x5d8e('0x24')]);}),this['keystrokes']['listenTo'](this[_0x5d8e('0x24')]));const _0x1be7ea=_0x796025=>_0x796025[_0x5d8e('0x21')]();this[_0x5d8e('0x15')][_0x5d8e('0x1a')](_0x5d8e('0x16'),_0x1be7ea),this['keystrokes'][_0x5d8e('0x1a')](_0x5d8e('0x1f'),_0x1be7ea),this[_0x5d8e('0x15')][_0x5d8e('0x1a')]('arrowup',_0x1be7ea),this[_0x5d8e('0x15')][_0x5d8e('0x1a')](_0x5d8e('0xe'),_0x1be7ea);}[_0x5d8e('0x25')](){this[_0x5d8e('0x8')][_0x5d8e('0x13')]();}get[_0x5d8e('0xd')](){return this['revisionNameInputView'][_0x5d8e('0xb')][_0x5d8e('0x24')][_0x5d8e('0x7')][_0x5d8e('0x1b')]();}set[_0x5d8e('0xd')](_0x2c9529){this['revisionNameInputView'][_0x5d8e('0xb')][_0x5d8e('0x24')][_0x5d8e('0x7')]=_0x2c9529[_0x5d8e('0x1b')]();}['reset'](){this['revisionNameInputView'][_0x5d8e('0xb')][_0x5d8e('0x24')][_0x5d8e('0x7')]='';}[_0x5d8e('0x1c')](){const _0x4e7a86=new _0x5927a4(this['locale'],_0x270d21),_0x430808=_0x4e7a86['fieldView'];return _0x430808[_0x5d8e('0x1d')]({'attributes':{'maxlength':'220'}}),_0x4e7a86['label']=_0x147a56(this[_0x5d8e('0xa')],_0x5d8e('0x11')),_0x430808['on'](_0x5d8e('0x17'),()=>{this[_0x5d8e('0x18')]=_0x430808[_0x5d8e('0x24')]['value'][_0x5d8e('0x1b')]();}),_0x4e7a86;}['_createButton'](_0x419975,_0x252d4b,_0x2b2f56,_0x4e3f60){const _0x499611=new _0x50096a(this['locale']);return _0x499611[_0x5d8e('0x1a')]({'label':_0x419975,'icon':_0x252d4b,'tooltip':!0x0}),_0x499611[_0x5d8e('0x1d')]({'attributes':{'class':_0x2b2f56}}),_0x4e3f60&&_0x499611[_0x5d8e('0x26')](_0x5d8e('0x6'))['to'](this,_0x4e3f60),_0x499611;}}
|