@ckeditor/ckeditor5-revision-history 35.3.2 → 36.0.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 +3 -2
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +2 -2
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +7 -7
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +2 -2
- package/src/editor/revisionviewereditoruiview.js +2 -2
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +2 -2
- package/src/revisionhistory.js +2 -2
- package/src/revisionsrepository.js +2 -2
- package/src/revisiontracker.js +2 -2
- package/src/revisionviewer.js +2 -2
- package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
- package/src/ui/revision/revisionauthorview.js +2 -2
- package/src/ui/revision/revisionnameview.js +2 -2
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +2 -2
- package/src/ui/revision/subrevisionview.js +2 -2
- package/src/ui/revision/utils.js +2 -2
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
- package/src/ui/revisionssidebar/utils.js +2 -2
- package/src/ui/revisionviewer/changedetailsview.js +2 -2
- package/src/ui/revisionviewer/changesnavigationview.js +2 -2
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
- package/src/ui/revisionviewer/revisionviewerui.js +2 -2
- package/src/utils/common-translations.js +2 -2
package/src/revisionviewer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x98e0=['numberOfChanges','document','_getChangeFromId','startsWith','clear','toViewPosition','from','_step','revision','done','pairId','bindElementToMarker','getWalker','markerName','suggestion','execute','createRange','plugins','showPreviousChange','currentChangeNumber','for','removeMarker','data-revision-','isAtStart','element','refresh','revision-end','getAttributes','isBefore','isAfter','resolve','elementStart','newRevisionId','markersStart','forward','isRemoveSuggestion','_getViewForChange','_processTape','side','bind','enqueueChange','addMarker:revision-suggestion:deletion','_update','conversion','revision-suggestion','markersEnd','change:isEnabled','isAddSuggestion','addMarker:revision','listenTo','item','attribute:vid','collaboration.channelId','stop','_appendChild','findIndex','revisionHistory','destroy','isIncorrect','mouseover','type','removeMarker:revision','nextPosition','revision:','config','_refreshStartEndIndex','text','toViewElement','_initInteractions','markerToData','_getViewObj','activeView','writer','unshift','softBreak','shift','concat','upcast','nextSibling','_cleanMarkers','merge','_getRevisionsRange','next','map','editor','isContent','useFillerType','stopListening','change:isReadOnly','_joinTapes','markerRange','forceDisabled','restoreRevision','clearForceDisabled','deletions','getCustomProperty','addRevisionData','parent','getChild','isReady','createRevision','ck-suggestion-marker','isEnabled','length','revision-viewer','marked','showStack','isCollapsed','remove','toViewRange','_makeTape','offsetSize','locale','_markMarkers','test','markerToHighlight','isObject','ck-suggestion-marker-merge','ck-suggestion-marker-','splice','code','string','oldRevisionId','wrap','isAdded','set','compare','ck-suggestion-preview-marker','insertions','modelRange','getRootNames','ck-editor__editable__overlay','isSuggestion','keys','getIndex','repository','_removeMissingPairs','_findChangeIdFromDomTarget','commands','schema','processor','comment','markerNameToElements','isRemoved','endIndex','editing','_threeWayMerge','diffData','level','dataDowncast','userId','delete','reconvertMarker','init','revisionHistoryLabel','readOnlyMode','view','isBlock','first','createPositionFromPath','high','data-change-id','abs','_changeIdToChange','startIndex','filter','nodeAfter','previousPosition','enableReadOnlyMode','insertion','getRoot','authors','object','_getDiff','diff','setAttribute','change:activeView','getRevision','_setConversion','insert','split','_changeView','_removeRevisionMarkers','addHighlight','downcastDispatcher','_setDistance','ck-suggestion-marker--active','mapper','_removeUnsupportedChanges','name','changes','showNextChange','_data','elementToAttribute','target','span','dataToMarker','revision-suggestion:','_markSuggestions','_markMismatchedRemovedTags','consumable','RevisionsRepository','start','forEach','createAttributeElement','unbindElementFromMarkerName','revision-comment:','low','attributes','removeClass','backward','_setData','editingDowncast','_fixObsoleteTags','addRevision','activeChange','element:pre','_cleanUp','error','RevisionViewer','vid','ck-suggestion-marker-split','deletion','catch','createUIElement','adapter','return','isLimit','hasClass','includes','_target','isAtEnd','roots','then','change','_balloon','getAttribute','viewItem','data','revision-start','elementEnd','checkAttribute','model','_markInsertions','<p></p>','_makeModelFromTape','-new','markers','WidgetToolbarRepository','suggestion:','parse','consume','push','ck-suggestion-preview-marker-','change:isReady','isInline','createRangeIn','maxOffset','sort','children','_makeModelFromViewString','setData','values','end','mousedown','index','toModel','vid_start','get','vid_end','has','highest','add','addClass','slice','loadRevisionData','hasAttribute','addMarker:revision-suggestion:insertion','change:activeChange','distance','isEqual','removeMarker:revision-suggestion'];(function(_0x2e1f4d,_0x98e0f4){const _0x189b5a=function(_0x1980a2){while(--_0x1980a2){_0x2e1f4d['push'](_0x2e1f4d['shift']());}};_0x189b5a(++_0x98e0f4);}(_0x98e0,0x125));const _0x189b=function(_0x2e1f4d,_0x98e0f4){_0x2e1f4d=_0x2e1f4d-0x0;let _0x189b5a=_0x98e0[_0x2e1f4d];return _0x189b5a;};import{Plugin as _0x202d92,Command as _0x460336}from'ckeditor5/src/core';import{ObservableMixin as _0x10a00a,mix as _0xc947e1,scrollViewportToShowTarget as _0x587c20}from'ckeditor5/src/utils';import{ContextualBalloon as _0x19d05d}from'ckeditor5/src/ui';import{DocumentFragment as _0x485c4a,Element as _0x27f781,Text as _0x3c37f0,ViewDocumentFragment as _0x36cdc2,ViewText as _0x244946,ViewElement as _0x2abda1,ViewContainerElement as _0x17da0d,ViewAttributeElement as _0x48d779,ViewEmptyElement as _0x4cf78f,ViewRawElement as _0x2d5959,ViewUIElement as _0x5507d9}from'ckeditor5/src/engine';import{Users as _0xd2d1a5,getMarkerDomElement as _0x4d1f24}from'ckeditor5-collaboration/src/collaboration-core';import _0x2164ba from'./ui/revisionviewer/changedetailsview';import _0x2e1f75 from'./revisionsrepository';import _0x84517a from'./changeitem';import _0x5323d1 from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x17da0d,'a':_0x48d779,'e':_0x4cf78f,'r':_0x2d5959,'u':_0x5507d9};export default class d extends _0x202d92{static get['pluginName'](){return _0x189b('0xd0');}static get['requires'](){return[_0xd2d1a5,_0x19d05d,_0x2e1f75];}constructor(..._0x165b69){super(..._0x165b69),this['repository']=this['editor'][_0x189b('0x6')][_0x189b('0x101')](_0x189b('0xbe')),this['set'](_0x189b('0xcc'),null),this['set']('activeView',null),this[_0x189b('0x72')]('diff',null),this['set']('isReady',!0x1),this[_0x189b('0x72')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5bceab,_0x509cb1,_0x111b8c)=>{this[_0x189b('0xcc')]=null,this[_0x189b('0x3c')]=null,this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0x91')][_0x189b('0xdf')](_0x1a298f=>{for(const _0x559226 of this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0x91')][_0x189b('0x110')][_0x189b('0xdd')])_0x111b8c?_0x1a298f[_0x189b('0xc6')](_0x189b('0x78'),_0x559226):_0x1a298f['addClass'](_0x189b('0x78'),_0x559226);});}),this[_0x189b('0x1c')]('isNavigationMode')['to'](this,_0x189b('0xcc'),_0x3db0de=>null!==_0x3db0de),this[_0x189b('0x1c')](_0x189b('0x8'))['to'](this,_0x189b('0x58'),this,_0x189b('0xa3'),this,'activeChange',(_0x2d2a76,_0x365751,_0x130a2e)=>_0x2d2a76&&_0x130a2e?_0x365751[_0x189b('0xb3')][_0x189b('0x7b')](_0x130a2e):0x0),this[_0x189b('0x1c')](_0x189b('0x10f'))['to'](this,_0x189b('0x58'),this,_0x189b('0xa3'),(_0x2ea613,_0x2d9f1d)=>_0x2ea613?_0x2d9f1d['changes'][_0x189b('0x5c')]:0x0),this[_0x189b('0xaa')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x189b('0xe0')]=this[_0x189b('0x49')]['plugins'][_0x189b('0x101')](_0x19d05d);}[_0x189b('0x8e')](){const _0xdcd6bc=this[_0x189b('0x49')],_0x551a4d=new et(_0xdcd6bc,{'direction':_0x189b('0xc7')}),_0x3ad686=new et(_0xdcd6bc,{'direction':_0x189b('0x17')});_0xdcd6bc[_0x189b('0x7f')]['add'](_0x189b('0x7'),_0x551a4d),_0xdcd6bc[_0x189b('0x7f')][_0x189b('0x105')](_0x189b('0xb4'),_0x3ad686),_0xdcd6bc[_0x189b('0x7f')][_0x189b('0x105')](_0x189b('0x51'),new tt(_0xdcd6bc)),this['on']('change:numberOfChanges',()=>{_0x551a4d[_0x189b('0xe')](),_0x3ad686[_0x189b('0xe')]();}),this[_0x189b('0xa7')](),this[_0x189b('0x39')](),_0xdcd6bc[_0x189b('0x9d')](_0x189b('0x5d')),_0xdcd6bc[_0x189b('0x6')][_0x189b('0x103')](_0x189b('0xed'))&&_0xdcd6bc[_0x189b('0x6')]['get'](_0x189b('0xed'))[_0x189b('0x50')](_0x189b('0x5d'));}async['getRevisionData'](_0x5014cc){await this['loadRevisionData'](_0x5014cc);const _0x3e3a7c={};for(const _0x3622a5 in _0x5014cc[_0x189b('0x88')]){const _0x5a0ff4=this['_removeRevisionMarkers'](JSON['parse'](_0x5014cc['diffData'][_0x3622a5][_0x189b('0x75')])),_0x27dd77=this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0x91')][_0x189b('0x110')],_0x32c691=new _0x36cdc2(_0x27dd77,_0x5a0ff4[_0x189b('0x48')](_0x49e998=>this[_0x189b('0x3b')](_0x49e998)));this['editor'][_0x189b('0xe3')][_0x189b('0x81')][_0x189b('0x4b')](_0x189b('0x5e')),_0x3e3a7c[_0x3622a5]=this[_0x189b('0x49')]['data'][_0x189b('0x81')]['toData'](_0x32c691),this[_0x189b('0x49')]['data'][_0x189b('0x81')][_0x189b('0x4b')]('default');}return _0x3e3a7c;}[_0x189b('0xab')](_0x5f866f){return(_0x5f866f=_0x5f866f[_0x189b('0x9a')](_0x568adb=>!_0x568adb[_0x189b('0xb2')]||_0x189b('0xe4')!==_0x568adb[_0x189b('0xb2')]&&_0x189b('0xf')!==_0x568adb[_0x189b('0xb2')]))[_0x189b('0xc0')](_0x134176=>{'string'!=typeof _0x134176&&(_0x134176[_0x189b('0xf8')]=this[_0x189b('0xab')](_0x134176['children']),_0x134176[_0x189b('0xc5')]=_0x134176[_0x189b('0xc5')][_0x189b('0x9a')](_0x572bea=>!_0x572bea[0x0][_0x189b('0x112')](_0x189b('0xb'))));}),_0x5f866f;}[_0x189b('0x73')](_0x1c3a9e,_0x735fe1,_0x2db780=!0x1){if(!this['isEnabled'])return;const _0x35cfd6=this[_0x189b('0xa3')],_0x17286f=this[_0x189b('0x7c')],_0xb4221d='string'==typeof _0x1c3a9e?_0x17286f[_0x189b('0xa6')](_0x1c3a9e):_0x1c3a9e,_0x418fc2='string'==typeof _0x735fe1?_0x17286f[_0x189b('0xa6')](_0x735fe1):_0x735fe1,_0x243576=_0xb4221d['id'],_0x2d9696=_0x418fc2?_0x418fc2['id']:null;if(!_0x2db780&&this[_0x189b('0xa3')]&&this[_0x189b('0xa3')][_0x189b('0x15')]===_0x243576&&this[_0x189b('0xa3')][_0x189b('0x6f')]===_0x2d9696)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this[_0x189b('0xcc')]=null,this['diff']=new _0x5323d1(_0x243576,_0x2d9696);const _0x14a2e2=this[_0x189b('0x46')](_0xb4221d,_0x418fc2,!0x0)[_0x189b('0x48')](_0x442fe4=>this['loadRevisionData'](_0x442fe4));return _0x14a2e2[_0x189b('0xf1')](new Promise(_0x2e1990=>{setTimeout(_0x2e1990,0x14);})),Promise['all'](_0x14a2e2)[_0x189b('0xde')](()=>{if(!this[_0x189b('0x5b')])return;this['_cleanUp']();const _0x8fa132=this[_0x189b('0xa2')](_0x243576,_0x2d9696);this[_0x189b('0xa3')][_0x189b('0xc8')](_0x8fa132);for(const _0x47d8d9 of this[_0x189b('0xa3')][_0x189b('0xb3')])this[_0x189b('0x98')]['set'](_0x47d8d9['id'],_0x47d8d9);this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x1d')]({'isUndoable':!0x1},_0xba72ee=>{for(const _0x182613 of Object[_0x189b('0x7a')](_0x8fa132[_0x189b('0xe7')])){const _0x427f18=this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x110')][_0x189b('0x9f')](_0x182613);_0xba72ee[_0x189b('0x61')](_0xba72ee[_0x189b('0xf5')](_0x427f18)),_0xba72ee[_0x189b('0xa8')](_0x8fa132[_0x189b('0xe7')][_0x182613],_0x427f18,0x0);}}),this['isReady']=!0x0;})[_0x189b('0xd4')](_0x34792a=>{console[_0x189b('0xcf')](_0x34792a),this[_0x189b('0xce')](),_0x35cfd6?this[_0x189b('0xa3')]=_0x35cfd6:this[_0x189b('0x49')][_0x189b('0xfa')](_0x189b('0xe9')),this[_0x189b('0x58')]=!0x0;});}[_0x189b('0x2e')](){this[_0x189b('0x3c')]=null,this[_0x189b('0xaa')]&&this[_0x189b('0xaa')]['destroy']();}[_0x189b('0x55')](_0x5b3d26,_0x4d5292){const _0x5138ae=this[_0x189b('0x7c')][_0x189b('0x59')](_0x5b3d26);return _0x5138ae['on'](_0x189b('0x1f'),(_0x3f6a52,_0x472014,_0x5c5013)=>_0x4d5292(_0x472014,_0x5c5013,_0x5138ae)),this['repository'][_0x189b('0xcb')](_0x5138ae),_0x5138ae;}[_0x189b('0x108')](_0x47cbf4){if(!_0x47cbf4||_0x47cbf4['diffData'])return Promise[_0x189b('0x13')]();{const _0x5117fe=this[_0x189b('0x49')][_0x189b('0x35')][_0x189b('0x101')](_0x189b('0x29'));return this[_0x189b('0xd6')][_0x189b('0xa6')]({'channelId':_0x5117fe,'revisionId':_0x47cbf4['id']})[_0x189b('0xde')](_0x196625=>{_0x47cbf4['_update']({'diffData':_0x196625[_0x189b('0x88')]},!0x0);});}}[_0x189b('0xce')](){this[_0x189b('0xcc')]=null,this[_0x189b('0x44')](),this[_0x189b('0xaa')]&&this['_changeView'][_0x189b('0x2e')](),this['_changeView']=null,this['_changeIdToChange'][_0x189b('0x113')]();}[_0x189b('0x63')](_0x52c4c9){const _0x439e7c=Array['from'](_0x52c4c9[_0x189b('0xec')])[_0x189b('0x9a')](([_0x3b2def,_0x48948b])=>_0x3b2def[_0x189b('0x112')](_0x189b('0x34'))&&!_0x48948b[_0x189b('0x60')]),_0x37ae7a=Array[_0x189b('0x115')](this['editor'][_0x189b('0xe7')][_0x189b('0xf5')](_0x52c4c9)[_0x189b('0x1')]({'singleCharacters':!0x0}));if(0x0!=_0x439e7c[_0x189b('0x5c')])for(const _0x862b21 of _0x37ae7a){const [_0x2e1cd4,_0x4bc86b]=_0x439e7c[0x0],[,_0x3fe25b,_0x1c9372]=_0x2e1cd4[_0x189b('0xa9')](':');if(_0x4bc86b[_0x189b('0xfc')][_0x189b('0x10d')](_0x862b21[_0x189b('0x33')])&&_0x439e7c[_0x189b('0x40')](),(_0x862b21[_0x189b('0x9c')]['isEqual'](_0x4bc86b['start'])||_0x862b21['previousPosition'][_0x189b('0x12')](_0x4bc86b[_0x189b('0xbf')]))&&(_0x189b('0x9e')==_0x3fe25b?_0x862b21[_0x189b('0x71')]={'userId':_0x1c9372}:_0x189b('0xd3')==_0x3fe25b&&(_0x862b21[_0x189b('0x84')]={'userId':_0x1c9372})),0x0==_0x439e7c['length'])break;}return _0x37ae7a;}['_refreshStartEndIndex'](_0x216449){const _0xd5cda5=new Map();for(let _0x1fe9c8=0x0;_0x1fe9c8<_0x216449[_0x189b('0x5c')];_0x1fe9c8++)_0x189b('0x37')===_0x216449[_0x1fe9c8]['type']?(_0x216449[_0x1fe9c8][_0x189b('0x27')][_0x189b('0x99')]=_0x1fe9c8,_0x216449[_0x1fe9c8][_0x189b('0x27')][_0x189b('0x85')]=_0x1fe9c8):(_0x189b('0x14')===_0x216449[_0x1fe9c8]['type']?_0x216449[_0x1fe9c8]['item']['startIndex']=_0x1fe9c8:_0x189b('0xe5')===_0x216449[_0x1fe9c8][_0x189b('0x31')]&&(_0x216449[_0x1fe9c8]['item']['endIndex']=_0x1fe9c8),_0xd5cda5[_0x189b('0x72')](_0x216449[_0x1fe9c8]['id'],_0x1fe9c8));for(const _0x2121a5 of _0xd5cda5[_0x189b('0xfb')]())_0x189b('0x14')===_0x216449[_0x2121a5][_0x189b('0x31')]?_0x216449[_0x2121a5][_0x189b('0x27')][_0x189b('0x85')]=_0xd5cda5[_0x189b('0x101')](_0x216449[_0x2121a5][_0x189b('0x119')]):_0x189b('0xe5')===_0x216449[_0x2121a5]['type']&&(_0x216449[_0x2121a5][_0x189b('0x27')][_0x189b('0x99')]=_0xd5cda5[_0x189b('0x101')](_0x216449[_0x2121a5][_0x189b('0x119')]));}[_0x189b('0x1a')](_0x3016d6){for(let _0x21396f=0x0;_0x21396f<_0x3016d6[_0x189b('0x5c')];_0x21396f++){if(_0x189b('0x14')===_0x3016d6[_0x21396f]['type'])_0x3016d6[_0x21396f][_0x189b('0x27')]['startIndex']=_0x21396f;else{if(_0x189b('0xe5')===_0x3016d6[_0x21396f][_0x189b('0x31')]){_0x3016d6[_0x21396f][_0x189b('0x27')][_0x189b('0x85')]=_0x21396f;const _0x45bc22=_0x3016d6[_0x21396f][_0x189b('0x27')][_0x189b('0x99')];_0x3016d6[_0x45bc22][_0x189b('0x119')]=_0x3016d6[_0x21396f]['id'],_0x3016d6[_0x21396f][_0x189b('0x119')]=_0x3016d6[_0x45bc22]['id'];}else _0x3016d6[_0x21396f][_0x189b('0x27')][_0x189b('0x99')]=_0x21396f,_0x3016d6[_0x21396f][_0x189b('0x27')][_0x189b('0x85')]=_0x21396f,_0x3016d6[_0x21396f][_0x189b('0x119')]=null;}_0x3016d6[_0x21396f][_0x189b('0x16')]||(_0x3016d6[_0x21396f][_0x189b('0x16')]=[],_0x3016d6[_0x21396f]['markersEnd']=[]);}}['_markInsertions'](_0x1ae0af,_0x4e581f){const _0xdc5d18=_0x1ae0af[_0x189b('0x9a')](_0x3f4d24=>!_0x3f4d24['isAdded']);for(let _0x5b6cd0=0x0;_0x5b6cd0<_0x4e581f['length'];_0x5b6cd0++)_0x4e581f[_0x5b6cd0][_0x189b('0x71')]&&(_0xdc5d18[_0x5b6cd0][_0x189b('0x71')]=_0x4e581f[_0x5b6cd0][_0x189b('0x71')]);}[_0x189b('0xf9')](_0x2e554a){const _0x2f6eca=JSON[_0x189b('0xef')](_0x2e554a),_0x49d287=this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0x91')][_0x189b('0x110')],_0x2b2bf1=new _0x36cdc2(_0x49d287,_0x2f6eca['map'](_0x1c5322=>this['_getViewObj'](_0x1c5322)));return this[_0x189b('0x49')][_0x189b('0xe3')][_0x189b('0xff')](_0x2b2bf1);}[_0x189b('0x3b')](_0x3ef376){const _0x310269=this['editor'][_0x189b('0x86')][_0x189b('0x91')]['document'];if(_0x189b('0x6e')==typeof _0x3ef376)return new _0x244946(_0x310269,_0x3ef376);{const _0x33abe6=_0x3ef376[_0x189b('0xf8')][_0x189b('0x48')](_0x182368=>this['_getViewObj'](_0x182368));return new(Y[_0x3ef376[(_0x189b('0x31'))]]||_0x2abda1)(_0x310269,_0x3ef376['name'],_0x3ef376[_0x189b('0xc5')],_0x33abe6);}}[_0x189b('0xa2')](_0x2d1863,_0xbd1256=null){const _0x595908=this['repository'][_0x189b('0xa6')](_0x2d1863),_0x358df7=_0xbd1256?this['repository'][_0x189b('0xa6')](_0xbd1256):null,_0x1bf422=this[_0x189b('0x46')](_0x595908,_0x358df7),_0x2444cb=_0x1bf422[_0x1bf422[_0x189b('0x5c')]-0x1],_0x287aaf=new Map();for(const _0x11273b of _0x1bf422){_0x11273b[_0x189b('0xe7')]={};for(const _0x42efa2 of _0x11273b[_0x189b('0xa0')])_0x287aaf[_0x189b('0x72')](_0x42efa2['id'],_0x42efa2);for(const _0x43419d of this[_0x189b('0x49')][_0x189b('0xe7')]['document'][_0x189b('0x77')]())_0x11273b['diffData'][_0x43419d]||(_0x11273b[_0x189b('0x88')][_0x43419d]={'insertions':'[]','deletions':'[]'}),_0x11273b['model'][_0x43419d]={'insertions':this['_makeModelFromViewString'](_0x11273b[_0x189b('0x88')][_0x43419d][_0x189b('0x75')]),'deletions':this['_makeModelFromViewString'](_0x11273b[_0x189b('0x88')][_0x43419d]['deletions'])};}const _0x39e77b={'model':{},'changes':[]};for(const _0xbc909c of this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x110')][_0x189b('0x77')]()){let _0x13b475=null,_0x5ee924=0x0;const _0x1520eb=new Map(Array[_0x189b('0x115')](_0x595908[_0x189b('0xe7')][_0xbc909c][_0x189b('0x75')][_0x189b('0xec')])['filter'](([_0x874a24])=>!_0x874a24[_0x189b('0x112')](_0x189b('0x34'))));let _0x232522=0x0;for(const _0x146338 of _0x1bf422){const _0x97fe89=this[_0x189b('0x63')](_0x146338[_0x189b('0xe7')][_0xbc909c][_0x189b('0x75')]);_0x146338==_0x595908?(_0x13b475=_0x97fe89,_0x5ee924=_0x13b475[_0x189b('0x5c')],_0x13b475[_0x189b('0xc0')](_0x18c91c=>{_0x18c91c['id']=_0x232522++;}),this[_0x189b('0x1a')](_0x13b475)):this[_0x189b('0xe8')](_0x13b475,_0x97fe89);const _0x54fcfc=_0x13b475['filter'](_0x293364=>!_0x293364[_0x189b('0x71')])[_0x189b('0x48')](_0x1d84d6=>_0x1d84d6['id']);let _0x3e426d=0x0;const _0x192eb0=this[_0x189b('0x63')](_0x146338[_0x189b('0xe7')][_0xbc909c][_0x189b('0x53')]);_0x192eb0[_0x189b('0xc0')](_0x418b11=>{_0x418b11[_0x189b('0x84')]?_0x418b11['id']=_0x5ee924++:_0x418b11['id']=_0x54fcfc[_0x3e426d++];}),this[_0x189b('0x1a')](_0x192eb0),this[_0x189b('0xae')](_0x13b475,_0x189b('0x71')),this['_setDistance'](_0x192eb0,_0x189b('0x84')),_0x146338==_0x595908&&this['_markMarkers'](_0x13b475,_0x1520eb),_0x13b475=this[_0x189b('0x4e')](_0x13b475,_0x192eb0),this[_0x189b('0x36')](_0x13b475),this[_0x189b('0xae')](_0x13b475,'isRemoved');}_0x13b475=_0x13b475[_0x189b('0x9a')](_0x20a581=>!(_0x20a581[_0x189b('0x71')]&&_0x20a581[_0x189b('0x84')]));const _0x2ad139=new Map(_0x2444cb['model'][_0xbc909c][_0x189b('0x53')][_0x189b('0xec')]),_0x179ddd=new Set(_0x1520eb[_0x189b('0x7a')]());for(const _0x50b626 of _0x2ad139[_0x189b('0x7a')]())_0x179ddd[_0x189b('0x8c')](_0x50b626);this[_0x189b('0xbb')](_0x13b475,_0x179ddd),this[_0x189b('0xca')](_0x13b475),_0x13b475=this['_removeMissingPairs'](_0x13b475),_0x13b475=this[_0x189b('0xbc')](_0x13b475),_0x13b475=this[_0x189b('0xb1')](_0x13b475);const {root:_0x29c966,changes:_0x5082e4}=this[_0x189b('0xea')](_0x13b475,_0x287aaf);_0x39e77b[_0x189b('0xe7')][_0xbc909c]=_0x29c966,_0x39e77b[_0x189b('0xb3')]=_0x39e77b[_0x189b('0xb3')][_0x189b('0x41')](_0x5082e4);}return _0x39e77b;}[_0x189b('0x66')](_0x4b1584,_0x5e7ece){for(let _0x5135a5=0x0;_0x5135a5<_0x4b1584[_0x189b('0x5c')];_0x5135a5++)for(const [_0x35a5b2,_0x19fd88]of _0x5e7ece)_0x19fd88[_0x189b('0xbf')]['isEqual'](_0x4b1584[_0x5135a5][_0x189b('0x9c')])&&_0x4b1584[_0x5135a5][_0x189b('0x16')][_0x189b('0xf1')](_0x35a5b2),_0x19fd88[_0x189b('0xfc')][_0x189b('0x10d')](_0x4b1584[_0x5135a5][_0x189b('0x33')])&&_0x4b1584[_0x5135a5]['markersEnd'][_0x189b('0xf1')](_0x35a5b2);}[_0x189b('0x4e')](_0x1e6f22,_0x1cbe0c){let _0x299a70=[],_0x569f5a=0x0,_0x832c4b=0x0;for(;_0x569f5a<_0x1e6f22[_0x189b('0x5c')]||_0x832c4b<_0x1cbe0c[_0x189b('0x5c')];){const _0x87469e=_0x1e6f22[_0x569f5a]||{},_0x28ab16=_0x1cbe0c[_0x832c4b]||{};if(_0x87469e['id']==_0x28ab16['id'])_0x569f5a++,_0x832c4b++,_0x299a70[_0x189b('0xf1')](_0x87469e);else{if(_0x28ab16[_0x189b('0x84')]&&_0x87469e[_0x189b('0x71')]){const {commonTape:_0x571cce,iEnd:_0x590b42,jEnd:_0x1ed0cc}=this[_0x189b('0x87')](_0x1e6f22,_0x569f5a,_0x1cbe0c,_0x832c4b);_0x299a70=_0x299a70[_0x189b('0x41')](_0x571cce),_0x569f5a=_0x590b42,_0x832c4b=_0x1ed0cc;}else _0x28ab16[_0x189b('0x84')]?(_0x832c4b++,_0x299a70[_0x189b('0xf1')](_0x28ab16)):(_0x569f5a++,_0x299a70[_0x189b('0xf1')](_0x87469e));}}return _0x299a70;}[_0x189b('0xbb')](_0x48190c,_0x50d755){const _0x11857e=[];for(let _0x5c26d1=0x0;_0x5c26d1<_0x48190c[_0x189b('0x5c')];_0x5c26d1++){for(let _0x4ab75d=0x0;_0x4ab75d<_0x48190c[_0x5c26d1][_0x189b('0x16')][_0x189b('0x5c')];_0x4ab75d++){const _0x50b141=_0x48190c[_0x5c26d1][_0x189b('0x16')][_0x4ab75d];if(!_0x50d755[_0x189b('0x103')](_0x50b141))continue;const {group:_0x39768f,type:_0x3c97c2,authorId:_0x5b1415}=_0x3d1000(_0x50b141);_0x189b('0x21')!=_0x39768f||'insertion'!=_0x3c97c2&&'deletion'!=_0x3c97c2||(_0x11857e[_0x189b('0x3e')]({'type':_0x3c97c2,'name':_0x50b141,'userId':_0x5b1415}),_0x48190c[_0x5c26d1]['markersStart'][_0x189b('0x6c')](_0x4ab75d,0x1),_0x4ab75d--);}_0x1f72ae(_0x48190c[_0x5c26d1]);for(let _0x3be3ee=0x0;_0x3be3ee<_0x48190c[_0x5c26d1]['markersEnd']['length'];_0x3be3ee++){const _0x1ccdfb=_0x48190c[_0x5c26d1][_0x189b('0x22')][_0x3be3ee];if(!_0x50d755[_0x189b('0x103')](_0x1ccdfb))continue;const {group:_0x24d45e,type:_0x82d8a1}=_0x3d1000(_0x1ccdfb);if(_0x189b('0x21')!=_0x24d45e||_0x189b('0x9e')!=_0x82d8a1&&'deletion'!=_0x82d8a1)continue;_0x48190c[_0x5c26d1][_0x189b('0x22')]['splice'](_0x3be3ee,0x1),_0x3be3ee--;const _0x20751f=_0x11857e[_0x189b('0x2c')](_0x501502=>_0x501502[_0x189b('0xb2')]==_0x1ccdfb);_0x20751f>-0x1&&_0x11857e['splice'](_0x20751f,0x1);}}function _0x3d1000(_0x169048){const _0x561064=_0x169048['split'](':');return{'group':_0x561064[0x0],'type':_0x561064[0x1],'subType':_0x561064['length']>=0x5?_0x561064[0x2]:null,'id':_0x561064[_0x189b('0x5c')]<0x5?_0x561064[0x2]:_0x561064[0x3],'authorId':_0x561064['length']<0x5?_0x561064[0x3]:_0x561064[0x4],'markerCount':0x6==_0x561064['length']?_0x561064[0x5]:null};}function _0x1f72ae(_0x2af722){for(let _0x319561=0x0;_0x319561<_0x11857e[_0x189b('0x5c')];_0x319561++){if(_0x2af722['isAdded']&&_0x189b('0x9e')==_0x11857e[_0x319561][_0x189b('0x31')])return _0x2af722[_0x189b('0x24')]=_0x11857e[_0x319561],void delete _0x2af722['isAdded'];if(!_0x2af722[_0x189b('0x71')]&&!_0x2af722[_0x189b('0x84')]&&'deletion'==_0x11857e[_0x319561][_0x189b('0x31')])return void(_0x2af722[_0x189b('0x18')]=_0x11857e[_0x319561]);}}}[_0x189b('0xae')](_0x12f886,_0x214bb1){let _0x350612=0x0,_0x13c0c2=!0x1;const _0x264200=new Map();for(const _0x5910dc of _0x12f886)_0x5910dc[_0x214bb1]?_0x13c0c2&&(_0x350612++,_0x13c0c2=!0x1):(_0x350612++,_0x13c0c2=!0x0),_0x264200[_0x189b('0x72')](_0x5910dc['id'],_0x350612);for(let _0x2e6acb=0x0;_0x2e6acb<_0x12f886[_0x189b('0x5c')];_0x2e6acb++){if(_0x189b('0x84')==_0x214bb1&&_0x12f886[_0x2e6acb][_0x189b('0x71')]||_0x189b('0x71')==_0x214bb1&&_0x12f886[_0x2e6acb]['isRemoved'])continue;if(_0x189b('0x37')==_0x12f886[_0x2e6acb][_0x189b('0x31')]){_0x12f886[_0x2e6acb][_0x189b('0x10c')]=0x0;continue;}const _0x44af46=_0x264200[_0x189b('0x101')](_0x12f886[_0x2e6acb][_0x189b('0x119')]),_0x286b4f=_0x264200['get'](_0x12f886[_0x2e6acb]['id']);_0x12f886[_0x2e6acb]['distance']=_0x44af46-_0x286b4f;}}[_0x189b('0x46')](_0x236c9f,_0x3d5c4f,_0x42431c=!0x1){const _0x5573f8=[];let _0x39ca2f=this['repository']['getIndex'](_0x236c9f),_0x36bbf2=this['repository']['getIndex'](_0x3d5c4f);for(-0x1==_0x36bbf2&&(_0x36bbf2=this[_0x189b('0x7c')]['_revisions'][_0x189b('0x5c')],_0x42431c=!0x1);_0x39ca2f<_0x36bbf2;)_0x5573f8[_0x189b('0xf1')](this[_0x189b('0x7c')]['getRevision'](_0x39ca2f)),_0x39ca2f++;return _0x42431c&&_0x5573f8[_0x189b('0xf1')](this[_0x189b('0x7c')]['getRevision'](_0x39ca2f)),_0x5573f8;}[_0x189b('0x87')](_0x38181e,_0x24c5b8,_0x579426,_0x3129ad){const _0x477c9c=this['editor'][_0x189b('0xe7')]['schema'];let _0x277610=_0x24c5b8;for(;_0x38181e[_0x277610]&&_0x38181e[_0x277610][_0x189b('0x71')];)_0x277610++;let _0x2ea386=_0x3129ad;for(;_0x579426[_0x2ea386]&&_0x579426[_0x2ea386][_0x189b('0x84')];)_0x2ea386++;_0x2c0a73(_0x38181e,_0x24c5b8,_0x277610),_0x2c0a73(_0x579426,_0x3129ad,_0x2ea386);const _0x53beb3=_0x579426[_0x189b('0x107')](_0x3129ad,_0x2ea386)[_0x189b('0x41')](_0x38181e[_0x189b('0x107')](_0x24c5b8,_0x277610));return _0x53beb3['sort']((_0x5e6144,_0x410c65)=>_0x5e6144[_0x189b('0x1b')]!=_0x410c65[_0x189b('0x1b')]?_0x5e6144['side']-_0x410c65['side']:_0x5e6144['level']!=_0x410c65['level']?_0x5e6144[_0x189b('0x89')]-_0x410c65['level']:_0x5e6144[_0x189b('0x10c')]!=_0x410c65['distance']?_0x410c65['distance']-_0x5e6144[_0x189b('0x10c')]:!!_0x5e6144['isAdded']!=!!_0x410c65[_0x189b('0x71')]?-0x1==_0x5e6144['side']||0x0==_0x5e6144[_0x189b('0x1b')]?_0x5e6144[_0x189b('0x71')]?-0x1:0x1:_0x5e6144[_0x189b('0x71')]?0x1:-0x1:_0x5e6144[_0x189b('0xfe')]-_0x410c65['index']),{'commonTape':_0x53beb3,'iEnd':_0x277610,'jEnd':_0x2ea386};function _0x2c0a73(_0x4caaa5,_0x5dd83d,_0xd20977){let _0x12a7a8=-0x1,_0x4a6368=Number['POSITIVE_INFINITY'],_0x535cf6=!0x0;for(let _0x46d2c3=_0x5dd83d;_0x46d2c3<_0xd20977;_0x46d2c3++)if(_0x477c9c[_0x189b('0xf4')](_0x4caaa5[_0x46d2c3][_0x189b('0x27')])||(_0x535cf6=!0x1),_0x4caaa5[_0x46d2c3][_0x189b('0x27')][_0x189b('0x99')]<_0x5dd83d&&(_0x12a7a8=_0x46d2c3),_0x4caaa5[_0x46d2c3][_0x189b('0x27')][_0x189b('0x85')]>=_0xd20977){_0x4a6368=_0x46d2c3;break;}_0x535cf6&&(_0x12a7a8=_0xd20977-0x1);for(let _0x4a5134=_0x5dd83d;_0x4a5134<_0xd20977;_0x4a5134++)_0x4caaa5[_0x4a5134][_0x189b('0x1b')]=_0x4a5134<=_0x12a7a8?-0x1:_0x4a5134<_0x4a6368?0x0:0x1,_0x4caaa5[_0x4a5134]['index']=_0x4a5134;let _0xd37254=0x0;for(let _0x14d5d5=_0x5dd83d;_0x14d5d5<=_0x12a7a8;_0x14d5d5++)0x0==_0x4caaa5[_0x14d5d5][_0x189b('0x10c')]?_0x4caaa5[_0x14d5d5]['level']=_0xd37254:(_0xd37254++,_0x4caaa5[_0x14d5d5][_0x189b('0x89')]=_0xd37254,_0xd37254++);for(let _0x8ce949=_0x5dd83d;_0x8ce949<_0xd20977;_0x8ce949++)0x0==_0x4caaa5[_0x8ce949][_0x189b('0x1b')]&&(_0x4caaa5[_0x8ce949][_0x189b('0x89')]=_0xd37254);_0xd37254=0x0;for(let _0x3e7ec9=_0xd20977-0x1;_0x3e7ec9>=_0x4a6368;_0x3e7ec9--)0x0==_0x4caaa5[_0x3e7ec9][_0x189b('0x10c')]?_0x4caaa5[_0x3e7ec9][_0x189b('0x89')]=_0xd37254:(_0xd37254--,_0x4caaa5[_0x3e7ec9][_0x189b('0x89')]=_0xd37254,_0xd37254--);}}[_0x189b('0xca')](_0x50c750){const _0x41f696=new Map(),_0x5657d1=this[_0x189b('0x49')]['model'][_0x189b('0x80')];for(let _0x186951=0x1;_0x186951<_0x50c750[_0x189b('0x5c')];_0x186951++){let _0x5e129c,_0x26d476,_0x5b8110;const _0x52f7ad=_0x50c750[_0x186951],_0x45378d=_0x50c750[_0x186951-0x1];if(_0x189b('0x37')==_0x52f7ad['type'])continue;if(_0x52f7ad[_0x189b('0x31')]!=_0x45378d[_0x189b('0x31')])continue;if(!_0x5657d1[_0x189b('0x92')](_0x45378d[_0x189b('0x27')])||_0x5657d1['isLimit'](_0x45378d[_0x189b('0x27')]))continue;if(!_0x5657d1[_0x189b('0x92')](_0x52f7ad['item'])||_0x5657d1[_0x189b('0xd8')](_0x52f7ad[_0x189b('0x27')]))continue;if((_0x50c750[_0x186951][_0x189b('0x71')]||_0x50c750[_0x186951][_0x189b('0x24')])&&_0x50c750[_0x186951-0x1][_0x189b('0x84')])_0x5e129c=_0x50c750[_0x186951],_0x26d476=_0x50c750[_0x186951-0x1],_0x5b8110=_0x186951-0x1;else{if(!_0x50c750[_0x186951][_0x189b('0x84')]||!_0x50c750[_0x186951-0x1][_0x189b('0x71')]&&!_0x50c750[_0x186951-0x1]['isAddSuggestion'])continue;_0x5e129c=_0x50c750[_0x186951-0x1],_0x26d476=_0x50c750[_0x186951],_0x5b8110=_0x186951;}const _0x4704e6=_0x5e129c[_0x189b('0x89')]==_0x26d476[_0x189b('0x89')],_0x1cff81=Math[_0x189b('0x97')](_0x5e129c[_0x189b('0x89')])<Math['abs'](_0x26d476[_0x189b('0x89')])&&0x0==_0x26d476['distance'];(_0x4704e6||_0x1cff81)&&(_0x41f696[_0x189b('0x72')](_0x26d476['id'],_0x5e129c['id']),_0x50c750[_0x189b('0x6c')](_0x5b8110,0x1),_0x186951--,_0x5e129c[_0x189b('0x71')]=!0x1);}for(let _0x3235bc=0x0;_0x3235bc<_0x50c750[_0x189b('0x5c')];_0x3235bc++)_0x41f696[_0x189b('0x103')](_0x50c750[_0x3235bc][_0x189b('0x119')])&&(_0x50c750[_0x3235bc][_0x189b('0x119')]=_0x41f696[_0x189b('0x101')](_0x50c750[_0x3235bc]['pairId']));}[_0x189b('0x7d')](_0x791930){const _0x1e5a68=new Set(_0x791930[_0x189b('0x48')](_0x5e9825=>_0x5e9825['id']));for(let _0xec94ac=0x0;_0xec94ac<_0x791930['length'];_0xec94ac++)_0x1e5a68[_0x189b('0x103')](_0x791930[_0xec94ac]['pairId'])||0x0==_0x791930[_0xec94ac]['distance']||(_0x791930[_0xec94ac]['isIncorrect']=!0x0);return _0x791930[_0x189b('0x9a')](_0x29148b=>!_0x29148b[_0x189b('0x2f')]);}[_0x189b('0xbc')](_0x219b2b){const _0x491d98=new Set();for(let _0x256391=0x0;_0x256391<_0x219b2b[_0x189b('0x5c')];_0x256391++){if(_0x491d98[_0x189b('0x103')](_0x219b2b[_0x256391]['id'])&&_0x219b2b[_0x256391][_0x189b('0x84')]&&(_0x219b2b[_0x256391][_0x189b('0x2f')]=!0x0),_0x219b2b[_0x256391]['isIncorrect'])continue;if(0x0==_0x219b2b[_0x256391]['distance'])continue;if(_0x189b('0x14')!=_0x219b2b[_0x256391][_0x189b('0x31')])continue;if(null==_0x219b2b[_0x256391]['pairId'])continue;let _0x18c9e4=_0x256391+0x1,_0x2f1e2c=0x0;for(;_0x219b2b[_0x18c9e4]['id']!=_0x219b2b[_0x256391]['pairId'];)_0x189b('0x14')==_0x219b2b[_0x18c9e4][_0x189b('0x31')]?_0x2f1e2c++:_0x189b('0xe5')==_0x219b2b[_0x18c9e4][_0x189b('0x31')]&&_0x2f1e2c--,_0x18c9e4++;if(0x0!=_0x2f1e2c){if(_0x219b2b[_0x256391][_0x189b('0x84')])_0x219b2b[_0x256391][_0x189b('0x2f')]=!0x0;else for(;_0x18c9e4!=_0x256391;)_0x219b2b[_0x18c9e4][_0x189b('0x84')]&&0x0!=_0x219b2b[_0x18c9e4][_0x189b('0x10c')]&&(_0x219b2b[_0x18c9e4][_0x189b('0x2f')]=!0x0,_0x491d98[_0x189b('0x105')](_0x219b2b[_0x18c9e4][_0x189b('0x119')])),_0x18c9e4--;}}return _0x219b2b[_0x189b('0x9a')](_0x5b56ca=>!_0x5b56ca[_0x189b('0x2f')]);}['_removeUnsupportedChanges'](_0x3dc01f){const _0x58a477=this[_0x189b('0x49')][_0x189b('0xe7')]['schema'];for(let _0x1e36e9=0x0;_0x1e36e9<_0x3dc01f['length'];_0x1e36e9++){if(!(_0x3dc01f[_0x1e36e9][_0x189b('0x71')]||_0x3dc01f[_0x1e36e9]['isAddSuggestion']||_0x3dc01f[_0x1e36e9][_0x189b('0x84')]||_0x3dc01f[_0x1e36e9][_0x189b('0x18')]))continue;if(0x0==_0x3dc01f[_0x1e36e9]['distance'])continue;const _0x1129a1=_0x3dc01f[_0x1e36e9][_0x189b('0x27')];_0x58a477[_0x189b('0x92')](_0x1129a1)||_0x58a477[_0x189b('0xd8')](_0x1129a1)||(_0x3dc01f[_0x1e36e9]['isAdded']&&delete _0x3dc01f[_0x1e36e9]['isAdded'],_0x3dc01f[_0x1e36e9]['isAddSuggestion']&&delete _0x3dc01f[_0x1e36e9]['isAddSuggestion'],_0x3dc01f[_0x1e36e9][_0x189b('0x18')]&&delete _0x3dc01f[_0x1e36e9][_0x189b('0x18')],_0x3dc01f[_0x1e36e9][_0x189b('0x84')]&&(_0x3dc01f[_0x1e36e9][_0x189b('0x2f')]=!0x0));}return _0x3dc01f[_0x189b('0x9a')](_0x3c406c=>!_0x3c406c[_0x189b('0x2f')]);}[_0x189b('0xea')](_0x54874d,_0x366d40){const _0x115ce1=new _0x485c4a(),_0x4f3855=[],_0x50a2da=new Map(),_0x3d6df2=this[_0x189b('0x49')][_0x189b('0xe7')],_0x29ee27=_0x3d6df2[_0x189b('0x80')],_0x2afac4=[_0x115ce1],_0x13fb65={},_0x337328={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x815918=null;const _0x87c5ee=[0x0];for(let _0x91d166=0x0;_0x91d166<_0x54874d['length'];_0x91d166++){let _0x2f8778,_0x369ecb;if(_0x189b('0x14')===_0x54874d[_0x91d166][_0x189b('0x31')]){_0x2f8778=_0x3d6df2[_0x189b('0x94')](_0x115ce1,_0x87c5ee);const _0x34fe4f=new _0x27f781(_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0xb2')],_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0x10')]());_0x2afac4[0x0][_0x189b('0x2b')](_0x34fe4f),_0x87c5ee[_0x189b('0xf1')](0x0),_0x2afac4[_0x189b('0x3e')](_0x34fe4f),_0x369ecb=_0x3d6df2['createPositionFromPath'](_0x115ce1,_0x87c5ee),_0x815918=null;}else{if(_0x189b('0xe5')===_0x54874d[_0x91d166]['type'])_0x2afac4[_0x189b('0x40')](),_0x2f8778=_0x3d6df2[_0x189b('0x94')](_0x115ce1,_0x87c5ee),_0x87c5ee['pop'](),_0x87c5ee[_0x87c5ee[_0x189b('0x5c')]-0x1]++,_0x369ecb=_0x3d6df2[_0x189b('0x94')](_0x115ce1,_0x87c5ee),_0x815918=null;else{if(_0x2f8778=_0x3d6df2['createPositionFromPath'](_0x115ce1,_0x87c5ee),_0x815918&&_0x4f590a(_0x815918,_0x54874d[_0x91d166]['item']))_0x815918[_0x189b('0xb5')]+=_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0xe3')];else{const _0x36dac0=new _0x3c37f0(_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0xe3')],_0x54874d[_0x91d166]['item'][_0x189b('0x10')]());_0x2afac4[0x0][_0x189b('0x2b')](_0x36dac0),_0x815918=_0x36dac0;}_0x87c5ee[_0x87c5ee[_0x189b('0x5c')]-0x1]+=_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0x64')],_0x369ecb=_0x3d6df2[_0x189b('0x94')](_0x115ce1,_0x87c5ee);}}for(const _0x2738e3 of _0x54874d[_0x91d166][_0x189b('0x16')])_0x50a2da[_0x189b('0x72')](_0x2738e3,{'start':_0x2f8778,'end':null});_0x2cb03b(_0x189b('0x18'),_0x91d166,_0x2f8778,_0x369ecb),_0x2cb03b(_0x189b('0x24'),_0x91d166,_0x2f8778,_0x369ecb),_0x2cb03b(_0x189b('0x84'),_0x91d166,_0x2f8778,_0x369ecb),_0x2cb03b(_0x189b('0x71'),_0x91d166,_0x2f8778,_0x369ecb);for(const _0x1ed9a7 of _0x54874d[_0x91d166][_0x189b('0x22')]){_0x50a2da[_0x189b('0x101')](_0x1ed9a7)[_0x189b('0xfc')]=_0x369ecb;}}for(const [_0x475c72,_0x4c687e]of _0x50a2da){const _0x241ee3=this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x5')](_0x4c687e[_0x189b('0xbf')],_0x4c687e['end']);_0x115ce1[_0x189b('0xec')][_0x189b('0x72')](_0x475c72,_0x241ee3);}return _0x4f3855[_0x189b('0xf7')]((_0x4caa19,_0x50f590)=>{const _0x2eb701=_0x115ce1[_0x189b('0xec')][_0x189b('0x101')]('revision:'+_0x4caa19['id']),_0x3f7b2c=_0x115ce1[_0x189b('0xec')][_0x189b('0x101')](_0x189b('0x34')+_0x50f590['id']);return _0x2eb701[_0x189b('0xbf')][_0x189b('0x11')](_0x3f7b2c['start'])?-0x1:_0x2eb701['start']['isAfter'](_0x3f7b2c[_0x189b('0xbf')])?0x1:_0x2eb701[_0x189b('0xfc')][_0x189b('0x11')](_0x3f7b2c[_0x189b('0xfc')])?-0x1:_0x2eb701[_0x189b('0xfc')]['isAfter'](_0x3f7b2c[_0x189b('0xfc')])?0x1:'add'===_0x4caa19[_0x189b('0x31')]?-0x1:0x1;}),{'root':_0x115ce1,'changes':_0x4f3855};function _0x2cb03b(_0x3d9607,_0x7d7974,_0x394604,_0x2c9157){const _0x285a5=!!_0x54874d[_0x7d7974][_0x3d9607],_0x3f7dec=_0x285a5?_0x54874d[_0x7d7974][_0x3d9607]['userId']:null,_0x3ba1c5=_0x7d7974===_0x54874d[_0x189b('0x5c')]-0x1,_0x479511=_0x337328[_0x3d9607][0x0],_0x51c216=_0x29ee27[_0x189b('0x69')](_0x54874d[_0x7d7974][_0x189b('0x27')]);!_0x13fb65[_0x3d9607]&&_0x285a5?_0x13fb65[_0x3d9607]={'start':_0x394604,'tapeItem':_0x54874d[_0x7d7974],'userId':_0x3f7dec,'type':_0x3d9607}:_0x13fb65[_0x3d9607]&&!_0x285a5?(_0x13fb65[_0x3d9607][_0x189b('0xfc')]=_0x394604,_0x585751(_0x13fb65[_0x3d9607]),_0x13fb65[_0x3d9607]=null):_0x13fb65[_0x3d9607]&&_0x285a5&&_0x13fb65[_0x3d9607]['userId']!==_0x3f7dec&&(_0x13fb65[_0x3d9607][_0x189b('0xfc')]=_0x394604,_0x479511&&_0x479511[_0x189b('0x8b')]===_0x13fb65[_0x3d9607]['userId']||_0x585751(_0x13fb65[_0x3d9607]),_0x13fb65[_0x3d9607]={'start':_0x394604,'tapeItem':_0x54874d[_0x7d7974],'userId':_0x3f7dec,'type':_0x3d9607}),_0x13fb65[_0x3d9607]&&_0x51c216&&(_0x189b('0x14')!==_0x54874d[_0x7d7974][_0x189b('0x31')]||_0x479511&&_0x479511[_0x189b('0x8b')]===_0x3f7dec||_0x337328[_0x3d9607][_0x189b('0x3e')]({'userId':_0x3f7dec,'object':_0x54874d[_0x7d7974][_0x189b('0x27')],'change':_0x13fb65[_0x3d9607]}),_0x189b('0xe5')===_0x54874d[_0x7d7974][_0x189b('0x31')]&&_0x479511&&_0x479511[_0x189b('0xa1')]===_0x54874d[_0x7d7974][_0x189b('0x27')]&&(_0x337328[_0x3d9607][_0x189b('0x40')](),_0x13fb65[_0x3d9607]=_0x479511[_0x189b('0xdf')])),_0x13fb65[_0x3d9607]&&_0x3ba1c5&&(_0x13fb65[_0x3d9607]['end']=_0x2c9157,_0x585751(_0x13fb65[_0x3d9607]),_0x13fb65[_0x3d9607]=null);}function _0x585751({start:_0x12f687,end:_0x429876,tapeItem:_0x42351f,userId:_0x4369d0,type:_0x1c1661}){const _0x5ae6f5=_0x42351f[_0x189b('0x27')],_0x50c2d9=_0x3d6df2[_0x189b('0x80')][_0x189b('0x92')](_0x5ae6f5)&&!_0x3d6df2[_0x189b('0x80')]['isLimit'](_0x5ae6f5),_0x5afa97=_0x12f687['nodeAfter']==_0x429876[_0x189b('0x56')]&&_0x429876[_0x189b('0xc')];if(_0x50c2d9&&_0x5afa97)return;const _0x424a9d=_0x3d6df2[_0x189b('0x5')](_0x12f687,_0x429876),_0x7ae98e=_0x366d40[_0x189b('0x101')](_0x4369d0),_0x4eed8e=new _0x84517a({'author':_0x7ae98e,'type':_0x189b('0x71')==_0x1c1661||_0x189b('0x24')==_0x1c1661?_0x189b('0x105'):_0x189b('0x61'),'data':{'isSuggestion':_0x189b('0x24')==_0x1c1661||_0x189b('0x18')==_0x1c1661},'createdAt':new Date()});_0x4f3855[_0x189b('0xf1')](_0x4eed8e),_0x115ce1['markers']['set'](_0x189b('0x34')+_0x4eed8e['id'],_0x424a9d);}function _0x4f590a(_0x2d0c9b,_0xcff9b9){const _0x2ed879=_0x2d0c9b['getAttributes'](),_0x584896=_0xcff9b9['getAttributes']();for(const _0x437352 of _0x2ed879){if(_0x437352[0x1]!==_0xcff9b9['getAttribute'](_0x437352[0x0]))return!0x1;_0x584896[_0x189b('0x47')]();}return _0x584896[_0x189b('0x47')]()[_0x189b('0x118')];}}[_0x189b('0xa7')](){this[_0x189b('0x49')]['conversion'][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0xb9')]({'view':_0x189b('0x117')}),this[_0x189b('0x49')]['conversion'][_0x189b('0x9')]('editingDowncast')[_0x189b('0x68')]({'model':'revision','view':_0x3e7167=>{const _0x18b753=_0x3e7167[_0x189b('0x2')][_0x189b('0xa9')](':')[0x1],_0x41c7d8=this['_getChangeFromId'](_0x18b753);if(!_0x41c7d8)return null;const _0x9359ce='add'==_0x41c7d8[_0x189b('0x31')]?_0x189b('0x9e'):'deletion',_0x1993b9=[_0x189b('0x5a'),_0x189b('0x6b')+_0x9359ce];return _0x41c7d8[_0x189b('0xe3')][_0x189b('0x79')]&&_0x1993b9[_0x189b('0xf1')](_0x189b('0x6b')+_0x9359ce+_0x189b('0xeb')),this[_0x189b('0xcc')]==_0x41c7d8&&_0x1993b9[_0x189b('0xf1')](_0x189b('0xaf')),{'classes':_0x1993b9,'attributes':{'data-change-id':_0x18b753}};}}),this[_0x189b('0x49')]['conversion'][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0x105')](_0x2c54b8=>{_0x2c54b8['on'](_0x189b('0xcd'),(_0x395d17,_0x5917c0,_0x911bd2)=>{const _0x18d510=_0x5917c0[_0x189b('0xe2')][_0x189b('0x57')](0x0);if(!_0x18d510||!_0x18d510['is']('element',_0x189b('0x6d')))return;if(!_0x911bd2[_0x189b('0xbd')]['consume'](_0x18d510,{'attributes':[_0x189b('0x100'),_0x189b('0x102')]}))return;const _0x85812=_0x5917c0['modelRange']['start'][_0x189b('0x9b')];_0x911bd2[_0x189b('0x3d')][_0x189b('0xa4')](_0x189b('0x100'),_0x18d510['getAttribute'](_0x189b('0x100')),_0x85812),_0x911bd2['writer'][_0x189b('0xa4')](_0x189b('0x102'),_0x18d510[_0x189b('0xe1')](_0x189b('0x102')),_0x85812);},{'priority':'low'});}),this[_0x189b('0x49')]['conversion'][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0x105')](_0x44cb61=>{_0x44cb61['on'](_0x189b('0xd'),(_0x290cad,_0x2fc3ef,_0x577056)=>{if(!_0x577056[_0x189b('0xbd')][_0x189b('0xf0')](_0x2fc3ef['viewItem'],{'attributes':[_0x189b('0x100'),_0x189b('0x102')]}))return;if(_0x2fc3ef[_0x189b('0x76')][_0x189b('0x60')])return;const _0x190be6=_0x2fc3ef[_0x189b('0x76')][_0x189b('0xbf')][_0x189b('0x9b')];_0x190be6[_0x189b('0x109')](_0x189b('0x100'))||_0x190be6['hasAttribute'](_0x189b('0xd1'))||(_0x577056['writer']['setAttribute'](_0x189b('0x100'),_0x2fc3ef[_0x189b('0xe2')][_0x189b('0xe1')]('vid_start'),_0x190be6),_0x577056['writer'][_0x189b('0xa4')](_0x189b('0x102'),_0x2fc3ef['viewItem']['getAttribute'](_0x189b('0x102')),_0x190be6));},{'priority':_0x189b('0xc4')});}),this[_0x189b('0x49')]['conversion'][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0xb6')]({'view':{'name':_0x189b('0xb8'),'attributes':{'vid':!0x0}},'model':{'key':_0x189b('0xd1'),'value':_0x52a872=>_0x52a872[_0x189b('0xe1')]('vid')}}),this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x80')]['on'](_0x189b('0xe6'),(_0x2f9e33,[,_0x1f7141])=>{[_0x189b('0x100'),_0x189b('0x102'),'vid'][_0x189b('0xda')](_0x1f7141)&&(_0x2f9e33[_0x189b('0xd7')]=!0x0,_0x2f9e33[_0x189b('0x2a')]());},{'priority':'highest'}),this['editor'][_0x189b('0x20')][_0x189b('0x9')](_0x189b('0x8a'))[_0x189b('0x105')](_0x357fd6=>{_0x357fd6['on'](_0x189b('0x28'),(_0x382ad3,_0x1fd2b2,_0x14d02e)=>{if('\x20'!=_0x1fd2b2[_0x189b('0x27')]['data']||_0x1fd2b2[_0x189b('0x27')][_0x189b('0x56')][_0x189b('0xf6')]>0x1)return;if(!_0x14d02e[_0x189b('0xbd')][_0x189b('0xf0')](_0x1fd2b2[_0x189b('0x27')],_0x382ad3[_0x189b('0xb2')]))return;const _0x1218b2=_0x14d02e[_0x189b('0x3d')],_0x7193e2=_0x14d02e[_0x189b('0xb0')][_0x189b('0x62')](_0x1fd2b2['range']);_0x1218b2[_0x189b('0x70')](_0x7193e2,_0x1218b2[_0x189b('0xc1')](_0x189b('0xb8')));});}),this['editor'][_0x189b('0x20')]['for'](_0x189b('0x8a'))[_0x189b('0x3a')]({'model':_0x189b('0x117')}),this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0xad')]['on'](_0x189b('0x25'),function(_0x3416b7){const _0x2b0939=_0x3416b7['plugins'][_0x189b('0x101')](_0x189b('0xd0'));return(_0x495fac,_0x3609da,_0x189ccc)=>{const _0xe55207=_0x3609da[_0x189b('0x2')]['split'](':')[0x1],_0x554c4a=_0x2b0939['_getChangeFromId'](_0xe55207);if(!_0x554c4a)return null;const _0x3d59e9=_0x189b('0x105')==_0x554c4a[_0x189b('0x31')]?'split':'merge';if(!_0x189ccc['consumable']['test'](_0x3609da[_0x189b('0x4f')],_0x495fac[_0x189b('0xb2')]))return;const _0x2a2e4b=_0x3609da[_0x189b('0x4f')][_0x189b('0x1')](),_0x5aa9a6=_0x3609da['markerRange'][_0x189b('0xbf')],_0x49bf3a=_0x3416b7[_0x189b('0xe7')]['schema'];let _0x579528=null,_0x478c04=null,_0x3b15e2=!0x1,_0x2d48d1=!0x1;for(const _0x118642 of _0x2a2e4b){const _0x18659d=_0x118642[_0x189b('0x27')];_0x3b15e2=_0x3b15e2||_0x49bf3a[_0x189b('0x4a')](_0x18659d);const _0x52049f=_0x189ccc[_0x189b('0xb0')][_0x189b('0x38')](_0x18659d);if(_0x52049f&&_0x52049f[_0x189b('0x54')](_0x189b('0xac')))return;_0x189b('0xe5')==_0x118642[_0x189b('0x31')]&&(_0x49bf3a[_0x189b('0x92')](_0x18659d)&&!_0x49bf3a[_0x189b('0xd8')](_0x18659d)&&(_0x18659d[_0x189b('0x43')]||_0x5aa9a6[_0x189b('0xdc')]?_0x579528&&_0x579528[_0x189b('0x56')]==_0x18659d||(_0x579528=_0x18659d,_0x5b719b(_0x118642[_0x189b('0x9c')]),_0x2d48d1=!0x0):_0x478c04=_0x478c04||_0x118642[_0x189b('0x9c')]));}function _0x5b719b(_0x50152d){const _0x7b0e=_0x189ccc[_0x189b('0x3d')][_0x189b('0xd5')]('span',{'class':_0x189b('0x6b')+_0x3d59e9}),_0x2f800b=_0x189ccc[_0x189b('0xb0')]['toViewPosition'](_0x50152d);_0x554c4a[_0x189b('0xe3')][_0x189b('0x79')]&&_0x189ccc[_0x189b('0x3d')][_0x189b('0x106')](_0x189b('0x6b')+_0x3d59e9+_0x189b('0xeb'),_0x7b0e),_0x2b0939['activeChange']==_0x554c4a&&_0x189ccc[_0x189b('0x3d')]['addClass'](_0x189b('0xaf'),_0x7b0e),_0x189ccc['writer'][_0x189b('0xa8')](_0x2f800b,_0x7b0e),_0x189ccc[_0x189b('0xb0')][_0x189b('0x0')](_0x7b0e,_0x3609da['markerName']);}_0x3b15e2||_0x2d48d1||!_0x478c04||_0x5b719b(_0x478c04);};}(this[_0x189b('0x49')]),{'priority':_0x189b('0x95')}),this['editor'][_0x189b('0x86')]['downcastDispatcher']['on'](_0x189b('0x32'),(_0x20afbf,_0x1520e3,_0x213356)=>{const _0x50cd54=_0x213356['mapper'][_0x189b('0x83')](_0x1520e3[_0x189b('0x2')]);if(_0x50cd54)for(const _0x516c44 of _0x50cd54)(_0x516c44[_0x189b('0xd9')](_0x189b('0xd2'))||_0x516c44[_0x189b('0xd9')](_0x189b('0x6a')))&&(_0x213356[_0x189b('0xb0')][_0x189b('0xc2')](_0x516c44,_0x1520e3['markerName']),_0x213356[_0x189b('0x3d')][_0x189b('0x61')](_0x516c44));},{'priority':'high'}),this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0xad')]['on'](_0x189b('0x25'),(_0x41f9c3,_0x4043b9,_0x27daba)=>{const _0xa71f21=_0x4043b9[_0x189b('0x2')][_0x189b('0xa9')](':')[0x1],_0x4968a2=this[_0x189b('0x111')](_0xa71f21);if(!_0x4968a2)return null;const _0x3af18b='add'==_0x4968a2[_0x189b('0x31')]?_0x189b('0xa9'):_0x189b('0x45');if(_0x27daba[_0x189b('0xbd')][_0x189b('0x67')](_0x4043b9[_0x189b('0x4f')],_0x41f9c3[_0x189b('0xb2')]))for(const _0x534946 of _0x4043b9['markerRange']['getItems']()){if(!_0x534946['is'](_0x189b('0xd'),_0x189b('0x3f')))continue;const _0xdc5b31=_0x27daba['writer'][_0x189b('0xd5')](_0x189b('0xb8'),{'class':'ck-suggestion-marker-'+_0x3af18b}),_0x2dc000=_0x27daba[_0x189b('0xb0')]['toViewPosition'](this[_0x189b('0x49')][_0x189b('0xe7')]['createPositionBefore'](_0x534946));_0x4968a2[_0x189b('0xe3')]['isSuggestion']&&_0x27daba[_0x189b('0x3d')][_0x189b('0x106')]('ck-suggestion-marker-'+_0x3af18b+_0x189b('0xeb'),_0xdc5b31),this[_0x189b('0xcc')]==_0x4968a2&&_0x27daba[_0x189b('0x3d')]['addClass'](_0x189b('0xaf'),_0xdc5b31),_0x27daba['writer']['insert'](_0x2dc000,_0xdc5b31),_0x27daba[_0x189b('0xb0')]['bindElementToMarker'](_0xdc5b31,_0x4043b9[_0x189b('0x2')]);}},{'priority':_0x189b('0x95')}),this[_0x189b('0x49')][_0x189b('0x20')][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0xb9')]({'view':_0x189b('0x82'),'model':_0x4adf62=>_0x189b('0xc3')+_0x4adf62,'converterPriority':_0x189b('0x104')}),this[_0x189b('0x49')][_0x189b('0x20')]['for']('upcast')['dataToMarker']({'view':_0x189b('0x3'),'model':_0x38121b=>_0x189b('0xba')+_0x38121b,'converterPriority':'highest'}),this[_0x189b('0x49')]['conversion']['for'](_0x189b('0x8a'))[_0x189b('0x3a')]({'model':_0x189b('0x21'),'view':_0x44ed11=>_0x189b('0xee')+_0x44ed11,'converterPriority':_0x189b('0x104')}),this[_0x189b('0x49')][_0x189b('0x20')][_0x189b('0x9')](_0x189b('0xc9'))[_0x189b('0x68')]({'model':_0x189b('0x21'),'view':_0x2f3e19=>{const _0x585bbc=_0x2f3e19[_0x189b('0x2')]['split'](':')[0x1];return _0x189b('0x9e')!=_0x585bbc&&_0x189b('0xd3')!=_0x585bbc?null:{'classes':[_0x189b('0x74'),_0x189b('0xf2')+_0x585bbc]};}}),this[_0x189b('0x49')][_0x189b('0x86')]['downcastDispatcher']['on'](_0x189b('0x1e'),Z(this[_0x189b('0x49')],'merge'),{'priority':_0x189b('0x95')}),this[_0x189b('0x49')]['editing'][_0x189b('0xad')]['on'](_0x189b('0x10a'),Z(this[_0x189b('0x49')],_0x189b('0xa9')),{'priority':_0x189b('0x95')}),this['editor'][_0x189b('0x86')][_0x189b('0xad')]['on'](_0x189b('0x10e'),(_0x5284d9,_0x382c45,_0x34db55)=>{const _0x4407c4=_0x34db55[_0x189b('0xb0')][_0x189b('0x83')](_0x382c45['markerName']);if(_0x4407c4)for(const _0x415103 of _0x4407c4)_0x415103['is']('uiElement')&&(_0x34db55[_0x189b('0xb0')][_0x189b('0xc2')](_0x415103,_0x382c45[_0x189b('0x2')]),_0x34db55[_0x189b('0x3d')][_0x189b('0x61')](_0x415103));},{'priority':_0x189b('0x95')});}[_0x189b('0x111')](_0x198910){return this[_0x189b('0x98')]['get'](_0x198910);}[_0x189b('0x19')](_0x23ed46){this[_0x189b('0xaa')]&&this[_0x189b('0xaa')][_0x189b('0x2e')](),this[_0x189b('0xaa')]=new _0x2164ba(this[_0x189b('0x49')][_0x189b('0x65')],_0x23ed46);const _0x3842f9=this['editor'][_0x189b('0xe7')][_0x189b('0xec')][_0x189b('0x101')]('revision:'+_0x23ed46['id']);return this['_changeView'][_0x189b('0xdb')]=()=>_0x4d1f24(this['editor'][_0x189b('0x86')],_0x3842f9),this[_0x189b('0xaa')];}[_0x189b('0x39')](){this['editor'][_0x189b('0xe7')]['document']['selection']['observeMarkers']('revision'),this['on'](_0x189b('0xa5'),(_0x5a69b0,_0x3a2703,_0x144950,_0x569739)=>{_0x569739&&this[_0x189b('0xe0')]['remove'](_0x569739),_0x144950&&(this[_0x189b('0xe0')][_0x189b('0x105')]({'view':_0x144950,'stackId':_0x189b('0x8f'),'position':{'target':_0x144950[_0x189b('0xdb')]}}),this[_0x189b('0xe0')][_0x189b('0x5f')](_0x189b('0x8f')));}),this['on'](_0x189b('0x10b'),(_0x4393b0,_0x5d69fd,_0x3ee387,_0x2e1323)=>{this['activeView']=_0x3ee387?this[_0x189b('0x19')](_0x3ee387):null,this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0xdf')](()=>{const _0x3def64=this[_0x189b('0x49')]['editing'];_0x2e1323&&_0x3def64[_0x189b('0x8d')](_0x189b('0x34')+_0x2e1323['id']),_0x3ee387&&_0x3def64[_0x189b('0x8d')](_0x189b('0x34')+_0x3ee387['id']);});}),this['listenTo'](this['editor'][_0x189b('0x86')][_0x189b('0x91')]['document'],_0x189b('0x30'),(_0x188aa6,_0x15a339)=>{if(this[_0x189b('0xcc')])return;const _0xc851e2=this[_0x189b('0x7e')](_0x15a339[_0x189b('0xb7')]),_0x35ffa6=this[_0x189b('0x98')][_0x189b('0x101')](_0xc851e2);this['activeView']=_0x35ffa6?this['_getViewForChange'](_0x35ffa6):null;}),this[_0x189b('0x26')](this['editor']['editing'][_0x189b('0x91')][_0x189b('0x110')],_0x189b('0xfd'),(_0x2e8a3b,_0x2dba28)=>{const _0x44dc8f=this[_0x189b('0x7e')](_0x2dba28['target']),_0x7f41b=this[_0x189b('0x98')][_0x189b('0x101')](_0x44dc8f);this[_0x189b('0xcc')]=_0x7f41b||null;});}[_0x189b('0x7e')](_0x3d066f){do{const _0x3f3d15=_0x3d066f[_0x189b('0xe1')](_0x189b('0x96'));if(_0x3f3d15)return _0x3f3d15;_0x3d066f=_0x3d066f[_0x189b('0x56')];}while(_0x3d066f);return null;}[_0x189b('0x44')](){this[_0x189b('0x49')][_0x189b('0xe7')]['change'](_0x46ffc6=>{for(const _0x43942c of this[_0x189b('0x49')]['model']['markers'])_0x46ffc6[_0x189b('0xa')](_0x43942c);});}}function Z(_0x86af01,_0x10333b){return(_0x372e4b,_0x216d64,_0x4d4525)=>{if(!_0x4d4525[_0x189b('0xbd')][_0x189b('0x67')](_0x216d64[_0x189b('0x4f')],_0x372e4b[_0x189b('0xb2')]))return;const _0x5ebf79=_0x216d64[_0x189b('0x4f')][_0x189b('0x1')](),_0x2e5108=_0x216d64[_0x189b('0x4f')][_0x189b('0xbf')],_0x303008=_0x86af01[_0x189b('0xe7')][_0x189b('0x80')];let _0x506ef4=null,_0x45771d=null,_0x156aae=!0x1,_0xe0dd10=!0x1;for(const _0xc6445b of _0x5ebf79){const _0x22bf74=_0xc6445b['item'];_0x156aae=_0x156aae||_0x303008['isContent'](_0x22bf74);const _0x3e8efb=_0x4d4525['mapper']['toViewElement'](_0x22bf74);if(_0x3e8efb&&_0x3e8efb[_0x189b('0x54')](_0x189b('0xac')))return;_0x189b('0xe5')==_0xc6445b[_0x189b('0x31')]&&(_0x303008['isBlock'](_0x22bf74)&&!_0x303008[_0x189b('0xd8')](_0x22bf74)&&(_0x22bf74[_0x189b('0x43')]||_0x2e5108[_0x189b('0xdc')]?_0x506ef4&&_0x506ef4[_0x189b('0x56')]==_0x22bf74||(_0x506ef4=_0x22bf74,_0x3a436b(_0xc6445b[_0x189b('0x9c')]),_0xe0dd10=!0x0):_0x45771d=_0x45771d||_0xc6445b[_0x189b('0x9c')]));}function _0x3a436b(_0x56cbdb){const _0x5551bd=_0x4d4525['mapper'][_0x189b('0x114')](_0x56cbdb),_0x1c1ad4=_0x4d4525[_0x189b('0x3d')][_0x189b('0xd5')](_0x189b('0xb8'),{'class':_0x189b('0xf2')+_0x10333b});_0x4d4525[_0x189b('0x3d')][_0x189b('0xa8')](_0x5551bd,_0x1c1ad4),_0x4d4525[_0x189b('0xb0')][_0x189b('0x0')](_0x1c1ad4,_0x216d64[_0x189b('0x2')]);}_0x156aae||_0xe0dd10||!_0x45771d||_0x3a436b(_0x45771d);};}_0xc947e1(d,_0x10a00a);class tt extends _0x460336{constructor(_0x1dd2d8){super(_0x1dd2d8);const _0x48f9a5=_0x1dd2d8['plugins']['get'](d);this[_0x189b('0x4c')](_0x1dd2d8,_0x189b('0x4d')),this[_0x189b('0x52')]('readOnlyMode'),this[_0x189b('0x26')](_0x48f9a5,'change:isReady',()=>this[_0x189b('0xe')]()),this[_0x189b('0x26')](_0x48f9a5,_0x189b('0x23'),()=>this[_0x189b('0xe')]());}[_0x189b('0x4')](){const _0x59a2a4=this['editor'],_0x4bd88c=_0x59a2a4[_0x189b('0x6')]['get'](d),_0x4c96c9=_0x4bd88c[_0x189b('0x58')]?_0x4bd88c[_0x189b('0xa3')]['newRevisionId']:null;_0x59a2a4[_0x189b('0x35')]['get'](_0x189b('0x2d'))['restoreRevisionCallback'](_0x4c96c9);}[_0x189b('0xe')](){const {isReady:_0x33f5e3,isEnabled:_0x51d5f4}=this[_0x189b('0x49')][_0x189b('0x6')]['get'](d);this['isEnabled']=_0x33f5e3&&_0x51d5f4;}}class et extends _0x460336{constructor(_0x34f70b,{direction:_0x2b8a53}){super(_0x34f70b);const _0x2975ca=_0x34f70b[_0x189b('0x6')]['get'](d);this[_0x189b('0x4c')](_0x34f70b,_0x189b('0x4d')),this[_0x189b('0x52')](_0x189b('0x90')),this[_0x189b('0x116')]=_0x189b('0x17')===_0x2b8a53?0x1:-0x1,this[_0x189b('0x26')](_0x2975ca,_0x189b('0xf3'),()=>this['refresh']()),this[_0x189b('0x26')](_0x2975ca,_0x189b('0x23'),()=>this[_0x189b('0xe')]());}[_0x189b('0x4')](){const _0x4c1a98=this[_0x189b('0x49')],_0x3028cd=_0x4c1a98[_0x189b('0x6')][_0x189b('0x101')](d),{isNavigationMode:_0x3f5baa,currentChangeNumber:_0x1e5de5}=_0x3028cd;_0x3028cd[_0x189b('0xcc')]=_0x3f5baa?_0x3028cd['diff'][_0x189b('0xb3')][_0x189b('0x101')](_0x1e5de5+this[_0x189b('0x116')]):_0x3028cd[_0x189b('0xa3')][_0x189b('0xb3')][_0x189b('0x93')];const _0xd05172=_0x4c1a98[_0x189b('0xe7')][_0x189b('0xec')][_0x189b('0x101')](_0x189b('0x34')+_0x3028cd[_0x189b('0xcc')]['id']),_0x397c42=_0x4d1f24(_0x4c1a98['editing'],_0xd05172);_0x587c20({'target':_0x397c42,'viewportOffset':0x28});}[_0x189b('0xe')](){const {isNavigationMode:_0x28ffe5,currentChangeNumber:_0x35b455,numberOfChanges:_0x312f4b,isReady:_0x45ee72,isEnabled:_0x4e33a9}=this[_0x189b('0x49')][_0x189b('0x6')]['get'](d);this[_0x189b('0x5b')]=!!(_0x4e33a9&&_0x45ee72&&_0x312f4b)&&(!_0x28ffe5||(0x1===this[_0x189b('0x116')]?_0x35b455<_0x312f4b-0x1:_0x35b455>0x0));}}
|
|
23
|
+
const _0x1c22=['getAttribute','remove','get','revision','_setData','insert','setAttribute','deletions','init','getCustomProperty','set','getClientRects','name','isAdded','collaboration.channelId','mapper','deletion','useFillerType','done','object','_step','_makeModelFromViewString','length','delete','keys','forceDisabled','isRemoved','refresh','distance','selection','mapViewToDom','model','authors','for','execute','createUIElement','ck-suggestion-preview-marker-','flat','default','_joinTapes','WidgetToolbarRepository','revision:','isEnabled','split','top','change:activeView','start','isAddSuggestion','isAtEnd','from','compare','editingDowncast','sort','createRange','getRoot','merge','vid','schema','highest','markerName','showNextChange','activeChange','removeMarker:revision-suggestion','listenTo','backward','isCollapsed','currentChangeNumber','change:numberOfChanges','splice','resolve','_markMismatchedRemovedTags','change:isEnabled','markers','editing','endIndex','previousPosition','isBlock','markerRange','activeView','commands','revision-suggestion:','nextPosition','next','range','insertions','_markInsertions','suggestion','newRevisionId','low','ck-suggestion-marker-split','loadRevisionData','attribute:vid','getIndex','isRemoveSuggestion','elementToAttribute','roots','getRevision','isEqual','downcastDispatcher','ck-suggestion-marker--active','add','isInline','isAtStart','_removeUnsupportedChanges','dataDowncast','-new','clearForceDisabled','_processTape','writer','addMarker:revision-suggestion:insertion','parse','_getDiff','type','getItems','isBefore','attributes','markerToData','text','isNavigationMode','removeMarker:revision','ck-suggestion-preview-marker','markerNameToElements','toData','change:isReadOnly','editor','createRevision','observeMarkers','readOnlyMode','_fixObsoleteTags','comment','view','revision-suggestion','change','updatePosition','dataToMarker','element','unbindElementFromMarkerName','destroy','level','code','data-change-id','_removeMissingPairs','mouseover','_update','revisionHistoryLabel','filter','startsWith','wrap','then','span','_initInteractions','forEach','config','vid_start','adapter','push','locale','_markSuggestions','bind','diff','pairId','checkAttribute','conversion','hasClass','viewItem','bottom','_data','pluginName','isReady','elementStart','startIndex','abs','revision-end','_getViewForChange','addHighlight','stop','softBreak','userId','addRevision','removeClass','_markMarkers','requires','enqueueChange','end','data','getWalker','plugins','createPositionBefore','maxOffset','document','_activeViewTarget','shift','_changeView','_removeRevisionMarkers','_cleanUp','insertion','unshift','ck-suggestion-marker-','string','domEvent','_makeTape','repository','stopListening','isSuggestion','restoreRevisionCallback','processor','high','modelRange','changes','catch','right','addMarker:revision-suggestion:deletion','parent','map','markersStart','bindElementToMarker','item','getAttributes','marked','reconvertMarker','concat','_cleanMarkers','upcast','_getViewObj','getRevisionData','_getChangeFromId','vid_end','hasAttribute','_refreshStartEndIndex','includes','_threeWayMerge','isLimit','setData','change:isReady','_findChangeIdFromDomTarget','consume','has','addMarker:revision','getRootNames','_appendChild','oldRevisionId','isIncorrect','_makeModelFromTape','elementEnd','createPositionFromPath','_changeIdToChange','createRangeIn','addClass','forward','isAfter','children','createAttributeElement','_getRevisionsRange','consumable','offsetSize','diffData','_setDistance','nextSibling','isContent','markerToHighlight','numberOfChanges','revision-start','toViewPosition','side','RevisionViewer','ck-editor__editable__overlay','<p></p>','ck-suggestion-marker','toModel','toViewElement','all','suggestion:','markersEnd','_balloon','uiElement','_setConversion','index','test','addRevisionData','nodeAfter','revision-viewer'];(function(_0x532805,_0x1c22a5){const _0x18ae01=function(_0x51f224){while(--_0x51f224){_0x532805['push'](_0x532805['shift']());}};_0x18ae01(++_0x1c22a5);}(_0x1c22,0x1c1));const _0x18ae=function(_0x532805,_0x1c22a5){_0x532805=_0x532805-0x0;let _0x18ae01=_0x1c22[_0x532805];return _0x18ae01;};import{Plugin as _0xfcf616,Command as _0x8572e9}from'ckeditor5/src/core';import{ObservableMixin as _0xf6445f,mix as _0xbe2659,scrollViewportToShowTarget as _0x50d93f}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2651f2}from'ckeditor5/src/ui';import{DocumentFragment as _0x4c8654,Element as _0x377bd4,Text as _0x222662,ViewDocumentFragment as _0x2ef47d,ViewText as _0x2117d4,ViewElement as _0x18ddd1,ViewContainerElement as _0xc54206,ViewAttributeElement as _0x4653b4,ViewEmptyElement as _0x24d4f0,ViewRawElement as _0x22a28d,ViewUIElement as _0x2ffbc7}from'ckeditor5/src/engine';import{Users as _0x4e2010,getMarkerDomElement as _0x435574}from'ckeditor5-collaboration/src/collaboration-core';import _0x132f2b from'./ui/revisionviewer/changedetailsview';import _0x3826d6 from'./revisionsrepository';import _0x230f63 from'./changeitem';import _0x56eb55 from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0xc54206,'a':_0x4653b4,'e':_0x24d4f0,'r':_0x22a28d,'u':_0x2ffbc7};export default class w extends _0xfcf616{static get[_0x18ae('0x118')](){return _0x18ae('0x60');}static get[_0x18ae('0xd')](){return[_0x4e2010,_0x2651f2,_0x3826d6];}constructor(..._0x202387){super(..._0x202387),this[_0x18ae('0x21')]=this['editor'][_0x18ae('0x12')][_0x18ae('0x73')]('RevisionsRepository'),this[_0x18ae('0x7b')](_0x18ae('0xae'),null),this['set'](_0x18ae('0xbf'),null),this[_0x18ae('0x16')]=null,this[_0x18ae('0x7b')]('diff',null),this[_0x18ae('0x7b')](_0x18ae('0x0'),!0x1),this['set'](_0x18ae('0x9b'),!0x0),this['on'](_0x18ae('0xb8'),(_0x462b28,_0x444aea,_0x229849)=>{this[_0x18ae('0xae')]=null,this[_0x18ae('0xbf')]=null,this[_0x18ae('0xed')][_0x18ae('0xba')][_0x18ae('0xf3')][_0x18ae('0xf5')](_0x2be286=>{for(const _0x5da5e3 of this['editor']['editing']['view'][_0x18ae('0x15')][_0x18ae('0xd0')])_0x229849?_0x2be286[_0x18ae('0xb')]('ck-editor__editable__overlay',_0x5da5e3):_0x2be286[_0x18ae('0x4f')](_0x18ae('0x61'),_0x5da5e3);});}),this[_0x18ae('0x10f')](_0x18ae('0xe7'))['to'](this,'activeChange',_0x4030ce=>null!==_0x4030ce),this[_0x18ae('0x10f')](_0x18ae('0xb3'))['to'](this,_0x18ae('0x0'),this,_0x18ae('0x110'),this,'activeChange',(_0x153945,_0x253ddd,_0x540c6a)=>_0x153945&&_0x540c6a?_0x253ddd[_0x18ae('0x28')][_0x18ae('0xcd')](_0x540c6a):0x0),this[_0x18ae('0x10f')](_0x18ae('0x5c'))['to'](this,_0x18ae('0x0'),this,_0x18ae('0x110'),(_0x102812,_0x277076)=>_0x102812?_0x277076[_0x18ae('0x28')][_0x18ae('0x87')]:0x0),this['_changeView']=null,this[_0x18ae('0x4d')]=new Map(),this[_0x18ae('0x10b')]=null,this[_0x18ae('0x69')]=this[_0x18ae('0xed')]['plugins'][_0x18ae('0x73')](_0x2651f2);}[_0x18ae('0x79')](){const _0x5edc23=this[_0x18ae('0xed')],_0x147c12=new Y(_0x5edc23,{'direction':_0x18ae('0xb1')}),_0x58da92=new Y(_0x5edc23,{'direction':_0x18ae('0x50')});_0x5edc23[_0x18ae('0xc0')][_0x18ae('0xd5')]('showPreviousChange',_0x147c12),_0x5edc23[_0x18ae('0xc0')]['add'](_0x18ae('0xad'),_0x58da92),_0x5edc23['commands'][_0x18ae('0xd5')]('restoreRevision',new X(_0x5edc23)),this['on'](_0x18ae('0xb4'),()=>{_0x147c12[_0x18ae('0x8c')](),_0x58da92[_0x18ae('0x8c')]();}),this[_0x18ae('0x6b')](),this[_0x18ae('0x107')](),_0x5edc23['enableReadOnlyMode'](_0x18ae('0x70')),_0x5edc23[_0x18ae('0x12')][_0x18ae('0x44')](_0x18ae('0x99'))&&_0x5edc23[_0x18ae('0x12')][_0x18ae('0x73')](_0x18ae('0x99'))[_0x18ae('0x8a')](_0x18ae('0x70'));}async[_0x18ae('0x38')](_0xa666e){await this[_0x18ae('0xcb')](_0xa666e);const _0x1b5668={};for(const _0x2988f3 in _0xa666e['diffData']){const _0x532056=this['_removeRevisionMarkers'](JSON[_0x18ae('0xdf')](_0xa666e[_0x18ae('0x57')][_0x2988f3]['insertions'])),_0x3d231b=this['editor'][_0x18ae('0xba')]['view']['document'],_0x543890=new _0x2ef47d(_0x3d231b,_0x532056[_0x18ae('0x2d')](_0x482d3a=>this[_0x18ae('0x37')](_0x482d3a)));this[_0x18ae('0xed')][_0x18ae('0x10')][_0x18ae('0x25')]['useFillerType'](_0x18ae('0x32')),_0x1b5668[_0x2988f3]=this[_0x18ae('0xed')][_0x18ae('0x10')][_0x18ae('0x25')][_0x18ae('0xeb')](_0x543890),this[_0x18ae('0xed')]['data'][_0x18ae('0x25')][_0x18ae('0x82')](_0x18ae('0x97'));}return _0x1b5668;}[_0x18ae('0x19')](_0x15962e){return(_0x15962e=_0x15962e[_0x18ae('0x102')](_0xa5c7fd=>!_0xa5c7fd[_0x18ae('0x7d')]||_0x18ae('0x5d')!==_0xa5c7fd['name']&&_0x18ae('0x4')!==_0xa5c7fd[_0x18ae('0x7d')]))[_0x18ae('0x108')](_0x3acd1e=>{'string'!=typeof _0x3acd1e&&(_0x3acd1e[_0x18ae('0x52')]=this[_0x18ae('0x19')](_0x3acd1e['children']),_0x3acd1e[_0x18ae('0xe4')]=_0x3acd1e[_0x18ae('0xe4')]['filter'](_0x32c244=>!_0x32c244[0x0][_0x18ae('0x103')]('data-revision-')));}),_0x15962e;}[_0x18ae('0xa3')](_0x73d60e,_0x4f7bed,_0x27cad1=!0x1){if(!this['isEnabled'])return;const _0x6883ef=this[_0x18ae('0x110')],_0x5d4d5a=this[_0x18ae('0x21')],_0x3506fc='string'==typeof _0x73d60e?_0x5d4d5a[_0x18ae('0xd1')](_0x73d60e):_0x73d60e,_0x558bcf=_0x18ae('0x1e')==typeof _0x4f7bed?_0x5d4d5a[_0x18ae('0xd1')](_0x4f7bed):_0x4f7bed,_0x56a33c=_0x3506fc['id'],_0x251c39=_0x558bcf?_0x558bcf['id']:null;if(!_0x27cad1&&this[_0x18ae('0x110')]&&this['diff'][_0x18ae('0xc8')]===_0x56a33c&&this[_0x18ae('0x110')][_0x18ae('0x48')]===_0x251c39)return Promise[_0x18ae('0xb6')]();this[_0x18ae('0x0')]=!0x1,this[_0x18ae('0xbf')]=null,this[_0x18ae('0xae')]=null,this[_0x18ae('0x110')]=new _0x56eb55(_0x56a33c,_0x251c39);const _0x3e42a4=this[_0x18ae('0x54')](_0x3506fc,_0x558bcf,!0x0)[_0x18ae('0x2d')](_0x47f4ae=>this[_0x18ae('0xcb')](_0x47f4ae));return _0x3e42a4['push'](new Promise(_0x3cd4ae=>{setTimeout(_0x3cd4ae,0x14);})),Promise[_0x18ae('0x66')](_0x3e42a4)[_0x18ae('0x105')](()=>{if(!this[_0x18ae('0x9b')])return;this[_0x18ae('0x1a')]();const _0x40812e=this[_0x18ae('0xe0')](_0x56a33c,_0x251c39);this['diff'][_0x18ae('0x75')](_0x40812e);for(const _0x5c4f87 of this[_0x18ae('0x110')][_0x18ae('0x28')])this[_0x18ae('0x4d')]['set'](_0x5c4f87['id'],_0x5c4f87);this['editor'][_0x18ae('0x90')][_0x18ae('0xe')]({'isUndoable':!0x1},_0x1efd4a=>{for(const _0x52f5bd of Object[_0x18ae('0x89')](_0x40812e[_0x18ae('0x90')])){const _0x2f8aa7=this[_0x18ae('0xed')][_0x18ae('0x90')]['document'][_0x18ae('0xa7')](_0x52f5bd);_0x1efd4a[_0x18ae('0x72')](_0x1efd4a[_0x18ae('0x4e')](_0x2f8aa7)),_0x1efd4a[_0x18ae('0x76')](_0x40812e['model'][_0x52f5bd],_0x2f8aa7,0x0);}}),this[_0x18ae('0x0')]=!0x0;})[_0x18ae('0x29')](_0x192ab9=>{console['error'](_0x192ab9),this[_0x18ae('0x1a')](),_0x6883ef?this['diff']=_0x6883ef:this[_0x18ae('0xed')][_0x18ae('0x40')](_0x18ae('0x62')),this[_0x18ae('0x0')]=!0x0;});}[_0x18ae('0xfa')](){this['activeView']=null,this[_0x18ae('0x18')]&&this[_0x18ae('0x18')]['destroy']();}[_0x18ae('0x6e')](_0x2e8934,_0xf33f87){const _0x49e989=this[_0x18ae('0x21')][_0x18ae('0xee')](_0x2e8934);return _0x49e989['on'](_0x18ae('0x100'),(_0x34a6c2,_0x27e2ef,_0x1c05ff)=>_0xf33f87(_0x27e2ef,_0x1c05ff,_0x49e989)),this[_0x18ae('0x21')][_0x18ae('0xa')](_0x49e989),_0x49e989;}['loadRevisionData'](_0x4d1984){if(!_0x4d1984||_0x4d1984['diffData'])return Promise[_0x18ae('0xb6')]();{const _0x1fe7ad=this[_0x18ae('0xed')][_0x18ae('0x109')][_0x18ae('0x73')](_0x18ae('0x7f'));return this[_0x18ae('0x10b')][_0x18ae('0xd1')]({'channelId':_0x1fe7ad,'revisionId':_0x4d1984['id']})['then'](_0x1ff3e8=>{_0x4d1984[_0x18ae('0x100')]({'diffData':_0x1ff3e8[_0x18ae('0x57')]},!0x0);});}}[_0x18ae('0x1a')](){this[_0x18ae('0xae')]=null,this[_0x18ae('0x35')](),this[_0x18ae('0x18')]&&this[_0x18ae('0x18')][_0x18ae('0xfa')](),this['_changeView']=null,this[_0x18ae('0x4d')]['clear']();}[_0x18ae('0x20')](_0x47a277){const _0x27c678=Array['from'](_0x47a277['markers'])[_0x18ae('0x102')](([_0x12a166,_0x4472f4])=>_0x12a166[_0x18ae('0x103')](_0x18ae('0x9a'))&&!_0x4472f4[_0x18ae('0xb2')]),_0x45d416=Array[_0x18ae('0xa2')](this[_0x18ae('0xed')][_0x18ae('0x90')][_0x18ae('0x4e')](_0x47a277)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x27c678['length'])for(const _0x6d8a81 of _0x45d416){const [_0x169ae1,_0x32bef2]=_0x27c678[0x0],[,_0x7a5898,_0x3a4dac]=_0x169ae1[_0x18ae('0x9c')](':');if(_0x32bef2[_0x18ae('0xf')][_0x18ae('0xd2')](_0x6d8a81[_0x18ae('0xc2')])&&_0x27c678[_0x18ae('0x17')](),(_0x6d8a81[_0x18ae('0xbc')][_0x18ae('0xd2')](_0x32bef2['start'])||_0x6d8a81['previousPosition'][_0x18ae('0x51')](_0x32bef2[_0x18ae('0x9f')]))&&(_0x18ae('0x1b')==_0x7a5898?_0x6d8a81[_0x18ae('0x7e')]={'userId':_0x3a4dac}:_0x18ae('0x81')==_0x7a5898&&(_0x6d8a81[_0x18ae('0x8b')]={'userId':_0x3a4dac})),0x0==_0x27c678['length'])break;}return _0x45d416;}[_0x18ae('0x3c')](_0x455d41){const _0x1dc44e=new Map();for(let _0x479cf9=0x0;_0x479cf9<_0x455d41[_0x18ae('0x87')];_0x479cf9++)'text'===_0x455d41[_0x479cf9][_0x18ae('0xe1')]?(_0x455d41[_0x479cf9][_0x18ae('0x30')]['startIndex']=_0x479cf9,_0x455d41[_0x479cf9]['item'][_0x18ae('0xbb')]=_0x479cf9):('elementStart'===_0x455d41[_0x479cf9][_0x18ae('0xe1')]?_0x455d41[_0x479cf9][_0x18ae('0x30')][_0x18ae('0x2')]=_0x479cf9:_0x18ae('0x4b')===_0x455d41[_0x479cf9]['type']&&(_0x455d41[_0x479cf9]['item'][_0x18ae('0xbb')]=_0x479cf9),_0x1dc44e[_0x18ae('0x7b')](_0x455d41[_0x479cf9]['id'],_0x479cf9));for(const _0x3dad34 of _0x1dc44e['values']())_0x18ae('0x1')===_0x455d41[_0x3dad34][_0x18ae('0xe1')]?_0x455d41[_0x3dad34][_0x18ae('0x30')][_0x18ae('0xbb')]=_0x1dc44e[_0x18ae('0x73')](_0x455d41[_0x3dad34][_0x18ae('0x111')]):_0x18ae('0x4b')===_0x455d41[_0x3dad34]['type']&&(_0x455d41[_0x3dad34][_0x18ae('0x30')]['startIndex']=_0x1dc44e['get'](_0x455d41[_0x3dad34][_0x18ae('0x111')]));}[_0x18ae('0xdc')](_0x217b8b){for(let _0x2a8159=0x0;_0x2a8159<_0x217b8b['length'];_0x2a8159++){if('elementStart'===_0x217b8b[_0x2a8159][_0x18ae('0xe1')])_0x217b8b[_0x2a8159][_0x18ae('0x30')][_0x18ae('0x2')]=_0x2a8159;else{if(_0x18ae('0x4b')===_0x217b8b[_0x2a8159][_0x18ae('0xe1')]){_0x217b8b[_0x2a8159][_0x18ae('0x30')][_0x18ae('0xbb')]=_0x2a8159;const _0x4123cd=_0x217b8b[_0x2a8159][_0x18ae('0x30')][_0x18ae('0x2')];_0x217b8b[_0x4123cd]['pairId']=_0x217b8b[_0x2a8159]['id'],_0x217b8b[_0x2a8159][_0x18ae('0x111')]=_0x217b8b[_0x4123cd]['id'];}else _0x217b8b[_0x2a8159][_0x18ae('0x30')]['startIndex']=_0x2a8159,_0x217b8b[_0x2a8159]['item']['endIndex']=_0x2a8159,_0x217b8b[_0x2a8159][_0x18ae('0x111')]=null;}_0x217b8b[_0x2a8159][_0x18ae('0x2e')]||(_0x217b8b[_0x2a8159][_0x18ae('0x2e')]=[],_0x217b8b[_0x2a8159][_0x18ae('0x68')]=[]);}}['_markInsertions'](_0xc1fb43,_0x8a0bb2){const _0x3cfef4=_0xc1fb43['filter'](_0x1b2393=>!_0x1b2393[_0x18ae('0x7e')]);for(let _0x427fdf=0x0;_0x427fdf<_0x8a0bb2[_0x18ae('0x87')];_0x427fdf++)_0x8a0bb2[_0x427fdf]['isAdded']&&(_0x3cfef4[_0x427fdf][_0x18ae('0x7e')]=_0x8a0bb2[_0x427fdf][_0x18ae('0x7e')]);}['_makeModelFromViewString'](_0x4df3a2){const _0x52ce2e=JSON[_0x18ae('0xdf')](_0x4df3a2),_0x346c73=this[_0x18ae('0xed')]['editing'][_0x18ae('0xf3')][_0x18ae('0x15')],_0xf8798c=new _0x2ef47d(_0x346c73,_0x52ce2e[_0x18ae('0x2d')](_0x52864e=>this['_getViewObj'](_0x52864e)));return this[_0x18ae('0xed')][_0x18ae('0x10')][_0x18ae('0x64')](_0xf8798c);}[_0x18ae('0x37')](_0x28456a){const _0x42a616=this[_0x18ae('0xed')]['editing']['view'][_0x18ae('0x15')];if(_0x18ae('0x1e')==typeof _0x28456a)return new _0x2117d4(_0x42a616,_0x28456a);{const _0x3099b5=_0x28456a['children'][_0x18ae('0x2d')](_0x10390f=>this['_getViewObj'](_0x10390f));return new(K[_0x28456a['type']]||_0x18ddd1)(_0x42a616,_0x28456a['name'],_0x28456a[_0x18ae('0xe4')],_0x3099b5);}}[_0x18ae('0xe0')](_0x1f7b7b,_0x59997a=null){const _0x593ea0=this[_0x18ae('0x21')][_0x18ae('0xd1')](_0x1f7b7b),_0x339e20=_0x59997a?this[_0x18ae('0x21')]['getRevision'](_0x59997a):null,_0x46434b=this[_0x18ae('0x54')](_0x593ea0,_0x339e20),_0x542dad=_0x46434b[_0x46434b[_0x18ae('0x87')]-0x1],_0x1c887f=new Map();for(const _0x53dcd6 of _0x46434b){_0x53dcd6[_0x18ae('0x90')]={};for(const _0x5831e3 of _0x53dcd6[_0x18ae('0x91')])_0x1c887f[_0x18ae('0x7b')](_0x5831e3['id'],_0x5831e3);for(const _0x1ff8dc of this[_0x18ae('0xed')][_0x18ae('0x90')][_0x18ae('0x15')]['getRootNames']())_0x53dcd6[_0x18ae('0x57')][_0x1ff8dc]||(_0x53dcd6[_0x18ae('0x57')][_0x1ff8dc]={'insertions':'[]','deletions':'[]'}),_0x53dcd6['model'][_0x1ff8dc]={'insertions':this[_0x18ae('0x86')](_0x53dcd6[_0x18ae('0x57')][_0x1ff8dc][_0x18ae('0xc5')]),'deletions':this[_0x18ae('0x86')](_0x53dcd6[_0x18ae('0x57')][_0x1ff8dc]['deletions'])};}const _0x602ab2={'model':{},'changes':[]};for(const _0x177c9b of this[_0x18ae('0xed')][_0x18ae('0x90')][_0x18ae('0x15')][_0x18ae('0x46')]()){let _0x5ed4b5=null,_0x25c574=0x0;const _0x30fb25=new Map(Array[_0x18ae('0xa2')](_0x593ea0['model'][_0x177c9b][_0x18ae('0xc5')][_0x18ae('0xb9')])[_0x18ae('0x102')](([_0x20a916])=>!_0x20a916['startsWith'](_0x18ae('0x9a'))));let _0x1cc384=0x0;for(const _0x1025e4 of _0x46434b){const _0x44d7ca=this[_0x18ae('0x20')](_0x1025e4[_0x18ae('0x90')][_0x177c9b][_0x18ae('0xc5')]);_0x1025e4==_0x593ea0?(_0x5ed4b5=_0x44d7ca,_0x25c574=_0x5ed4b5[_0x18ae('0x87')],_0x5ed4b5[_0x18ae('0x108')](_0x5de3a9=>{_0x5de3a9['id']=_0x1cc384++;}),this[_0x18ae('0xdc')](_0x5ed4b5)):this[_0x18ae('0xc6')](_0x5ed4b5,_0x44d7ca);const _0x22a2cc=_0x5ed4b5[_0x18ae('0x102')](_0x57d3e9=>!_0x57d3e9[_0x18ae('0x7e')])[_0x18ae('0x2d')](_0x4f5c45=>_0x4f5c45['id']);let _0x4260e2=0x0;const _0xb0890=this[_0x18ae('0x20')](_0x1025e4['model'][_0x177c9b][_0x18ae('0x78')]);_0xb0890[_0x18ae('0x108')](_0x5c6aa0=>{_0x5c6aa0['isRemoved']?_0x5c6aa0['id']=_0x25c574++:_0x5c6aa0['id']=_0x22a2cc[_0x4260e2++];}),this[_0x18ae('0xdc')](_0xb0890),this['_setDistance'](_0x5ed4b5,'isAdded'),this[_0x18ae('0x58')](_0xb0890,'isRemoved'),_0x1025e4==_0x593ea0&&this['_markMarkers'](_0x5ed4b5,_0x30fb25),_0x5ed4b5=this[_0x18ae('0x98')](_0x5ed4b5,_0xb0890),this[_0x18ae('0x3c')](_0x5ed4b5),this[_0x18ae('0x58')](_0x5ed4b5,'isRemoved');}_0x5ed4b5=_0x5ed4b5[_0x18ae('0x102')](_0x354180=>!(_0x354180[_0x18ae('0x7e')]&&_0x354180[_0x18ae('0x8b')]));const _0x158311=new Map(_0x542dad[_0x18ae('0x90')][_0x177c9b][_0x18ae('0x78')]['markers']),_0x4e5d16=new Set(_0x30fb25[_0x18ae('0x89')]());for(const _0x19e685 of _0x158311[_0x18ae('0x89')]())_0x4e5d16[_0x18ae('0x88')](_0x19e685);this[_0x18ae('0x10e')](_0x5ed4b5,_0x4e5d16),this[_0x18ae('0xf1')](_0x5ed4b5),_0x5ed4b5=this[_0x18ae('0xfe')](_0x5ed4b5),_0x5ed4b5=this[_0x18ae('0xb7')](_0x5ed4b5),_0x5ed4b5=this[_0x18ae('0xd8')](_0x5ed4b5);const {root:_0x16f3a2,changes:_0x1a28b1}=this[_0x18ae('0x4a')](_0x5ed4b5,_0x1c887f);_0x602ab2[_0x18ae('0x90')][_0x177c9b]=_0x16f3a2,_0x602ab2[_0x18ae('0x28')]=_0x602ab2[_0x18ae('0x28')]['concat'](_0x1a28b1);}return _0x602ab2;}[_0x18ae('0xc')](_0x1566aa,_0xe4a876){for(let _0xe9b1d4=0x0;_0xe9b1d4<_0x1566aa[_0x18ae('0x87')];_0xe9b1d4++)for(const [_0x3a839b,_0x5d1de8]of _0xe4a876)_0x5d1de8[_0x18ae('0x9f')][_0x18ae('0xd2')](_0x1566aa[_0xe9b1d4][_0x18ae('0xbc')])&&_0x1566aa[_0xe9b1d4][_0x18ae('0x2e')]['push'](_0x3a839b),_0x5d1de8[_0x18ae('0xf')][_0x18ae('0xd2')](_0x1566aa[_0xe9b1d4]['nextPosition'])&&_0x1566aa[_0xe9b1d4]['markersEnd'][_0x18ae('0x10c')](_0x3a839b);}['_joinTapes'](_0x252fbe,_0xe11166){let _0x4ad18f=[],_0x1b1373=0x0,_0x3ac75d=0x0;for(;_0x1b1373<_0x252fbe[_0x18ae('0x87')]||_0x3ac75d<_0xe11166[_0x18ae('0x87')];){const _0xff9e1c=_0x252fbe[_0x1b1373]||{},_0x355fd5=_0xe11166[_0x3ac75d]||{};if(_0xff9e1c['id']==_0x355fd5['id'])_0x1b1373++,_0x3ac75d++,_0x4ad18f[_0x18ae('0x10c')](_0xff9e1c);else{if(_0x355fd5[_0x18ae('0x8b')]&&_0xff9e1c['isAdded']){const {commonTape:_0x30983b,iEnd:_0x4f1114,jEnd:_0x43ee80}=this[_0x18ae('0x3e')](_0x252fbe,_0x1b1373,_0xe11166,_0x3ac75d);_0x4ad18f=_0x4ad18f[_0x18ae('0x34')](_0x30983b),_0x1b1373=_0x4f1114,_0x3ac75d=_0x43ee80;}else _0x355fd5[_0x18ae('0x8b')]?(_0x3ac75d++,_0x4ad18f[_0x18ae('0x10c')](_0x355fd5)):(_0x1b1373++,_0x4ad18f[_0x18ae('0x10c')](_0xff9e1c));}}return _0x4ad18f;}[_0x18ae('0x10e')](_0x1c880e,_0xd44f90){const _0x179644=[];for(let _0x348076=0x0;_0x348076<_0x1c880e['length'];_0x348076++){for(let _0x2c97fa=0x0;_0x2c97fa<_0x1c880e[_0x348076][_0x18ae('0x2e')]['length'];_0x2c97fa++){const _0x50336b=_0x1c880e[_0x348076][_0x18ae('0x2e')][_0x2c97fa];if(!_0xd44f90[_0x18ae('0x44')](_0x50336b))continue;const {group:_0x7698bd,type:_0x4f0033,authorId:_0x449344}=_0x96120f(_0x50336b);_0x18ae('0xf4')!=_0x7698bd||_0x18ae('0x1b')!=_0x4f0033&&_0x18ae('0x81')!=_0x4f0033||(_0x179644[_0x18ae('0x1c')]({'type':_0x4f0033,'name':_0x50336b,'userId':_0x449344}),_0x1c880e[_0x348076][_0x18ae('0x2e')][_0x18ae('0xb5')](_0x2c97fa,0x1),_0x2c97fa--);}_0x3f2291(_0x1c880e[_0x348076]);for(let _0xaa6e97=0x0;_0xaa6e97<_0x1c880e[_0x348076][_0x18ae('0x68')]['length'];_0xaa6e97++){const _0x5aae5a=_0x1c880e[_0x348076][_0x18ae('0x68')][_0xaa6e97];if(!_0xd44f90[_0x18ae('0x44')](_0x5aae5a))continue;const {group:_0x3875a2,type:_0x46bbe2}=_0x96120f(_0x5aae5a);if(_0x18ae('0xf4')!=_0x3875a2||'insertion'!=_0x46bbe2&&_0x18ae('0x81')!=_0x46bbe2)continue;_0x1c880e[_0x348076]['markersEnd'][_0x18ae('0xb5')](_0xaa6e97,0x1),_0xaa6e97--;const _0x263b8e=_0x179644['findIndex'](_0x1aa04a=>_0x1aa04a[_0x18ae('0x7d')]==_0x5aae5a);_0x263b8e>-0x1&&_0x179644['splice'](_0x263b8e,0x1);}}function _0x96120f(_0x505d8b){const _0x227452=_0x505d8b['split'](':');return{'group':_0x227452[0x0],'type':_0x227452[0x1],'subType':_0x227452['length']>=0x5?_0x227452[0x2]:null,'id':_0x227452['length']<0x5?_0x227452[0x2]:_0x227452[0x3],'authorId':_0x227452['length']<0x5?_0x227452[0x3]:_0x227452[0x4],'markerCount':0x6==_0x227452[_0x18ae('0x87')]?_0x227452[0x5]:null};}function _0x3f2291(_0x4bc6a3){for(let _0xf67ad9=0x0;_0xf67ad9<_0x179644[_0x18ae('0x87')];_0xf67ad9++){if(_0x4bc6a3[_0x18ae('0x7e')]&&'insertion'==_0x179644[_0xf67ad9][_0x18ae('0xe1')])return _0x4bc6a3['isAddSuggestion']=_0x179644[_0xf67ad9],void delete _0x4bc6a3[_0x18ae('0x7e')];if(!_0x4bc6a3[_0x18ae('0x7e')]&&!_0x4bc6a3[_0x18ae('0x8b')]&&_0x18ae('0x81')==_0x179644[_0xf67ad9][_0x18ae('0xe1')])return void(_0x4bc6a3[_0x18ae('0xce')]=_0x179644[_0xf67ad9]);}}}[_0x18ae('0x58')](_0x4ac6f6,_0x52c7f5){let _0x23449e=0x0,_0x50fcc7=!0x1;const _0x1ae1b4=new Map();for(const _0x26ab7b of _0x4ac6f6)_0x26ab7b[_0x52c7f5]?_0x50fcc7&&(_0x23449e++,_0x50fcc7=!0x1):(_0x23449e++,_0x50fcc7=!0x0),_0x1ae1b4[_0x18ae('0x7b')](_0x26ab7b['id'],_0x23449e);for(let _0x52ae3f=0x0;_0x52ae3f<_0x4ac6f6[_0x18ae('0x87')];_0x52ae3f++){if(_0x18ae('0x8b')==_0x52c7f5&&_0x4ac6f6[_0x52ae3f][_0x18ae('0x7e')]||'isAdded'==_0x52c7f5&&_0x4ac6f6[_0x52ae3f]['isRemoved'])continue;if(_0x18ae('0xe6')==_0x4ac6f6[_0x52ae3f][_0x18ae('0xe1')]){_0x4ac6f6[_0x52ae3f][_0x18ae('0x8d')]=0x0;continue;}const _0x3b9d67=_0x1ae1b4[_0x18ae('0x73')](_0x4ac6f6[_0x52ae3f][_0x18ae('0x111')]),_0x40f591=_0x1ae1b4[_0x18ae('0x73')](_0x4ac6f6[_0x52ae3f]['id']);_0x4ac6f6[_0x52ae3f]['distance']=_0x3b9d67-_0x40f591;}}[_0x18ae('0x54')](_0x16847b,_0x136219,_0x198edd=!0x1){const _0x41bf52=[];let _0x29e316=this['repository'][_0x18ae('0xcd')](_0x16847b),_0x18cd58=this[_0x18ae('0x21')]['getIndex'](_0x136219);for(-0x1==_0x18cd58&&(_0x18cd58=this['repository']['_revisions']['length'],_0x198edd=!0x1);_0x29e316<_0x18cd58;)_0x41bf52[_0x18ae('0x10c')](this[_0x18ae('0x21')][_0x18ae('0xd1')](_0x29e316)),_0x29e316++;return _0x198edd&&_0x41bf52['push'](this[_0x18ae('0x21')]['getRevision'](_0x29e316)),_0x41bf52;}[_0x18ae('0x3e')](_0x28a114,_0x2dd21a,_0x214eaa,_0x2b15f8){const _0x5ee8e8=this[_0x18ae('0xed')]['model'][_0x18ae('0xaa')];let _0x4a39b4=_0x2dd21a;for(;_0x28a114[_0x4a39b4]&&_0x28a114[_0x4a39b4][_0x18ae('0x7e')];)_0x4a39b4++;let _0x42d787=_0x2b15f8;for(;_0x214eaa[_0x42d787]&&_0x214eaa[_0x42d787][_0x18ae('0x8b')];)_0x42d787++;_0x2cccc6(_0x28a114,_0x2dd21a,_0x4a39b4),_0x2cccc6(_0x214eaa,_0x2b15f8,_0x42d787);const _0x15166f=_0x214eaa['slice'](_0x2b15f8,_0x42d787)[_0x18ae('0x34')](_0x28a114['slice'](_0x2dd21a,_0x4a39b4));return _0x15166f['sort']((_0x1f1f8f,_0x7d26dc)=>_0x1f1f8f[_0x18ae('0x5f')]!=_0x7d26dc['side']?_0x1f1f8f[_0x18ae('0x5f')]-_0x7d26dc[_0x18ae('0x5f')]:_0x1f1f8f[_0x18ae('0xfb')]!=_0x7d26dc[_0x18ae('0xfb')]?_0x1f1f8f[_0x18ae('0xfb')]-_0x7d26dc[_0x18ae('0xfb')]:_0x1f1f8f['distance']!=_0x7d26dc[_0x18ae('0x8d')]?_0x7d26dc[_0x18ae('0x8d')]-_0x1f1f8f[_0x18ae('0x8d')]:!!_0x1f1f8f['isAdded']!=!!_0x7d26dc[_0x18ae('0x7e')]?-0x1==_0x1f1f8f[_0x18ae('0x5f')]||0x0==_0x1f1f8f[_0x18ae('0x5f')]?_0x1f1f8f[_0x18ae('0x7e')]?-0x1:0x1:_0x1f1f8f[_0x18ae('0x7e')]?0x1:-0x1:_0x1f1f8f[_0x18ae('0x6c')]-_0x7d26dc[_0x18ae('0x6c')]),{'commonTape':_0x15166f,'iEnd':_0x4a39b4,'jEnd':_0x42d787};function _0x2cccc6(_0x481bc9,_0x17dd21,_0x1e4047){let _0x2a8cb7=-0x1,_0x573abd=Number['POSITIVE_INFINITY'],_0x3595e8=!0x0;for(let _0x2aea5e=_0x17dd21;_0x2aea5e<_0x1e4047;_0x2aea5e++)if(_0x5ee8e8[_0x18ae('0xd6')](_0x481bc9[_0x2aea5e]['item'])||(_0x3595e8=!0x1),_0x481bc9[_0x2aea5e][_0x18ae('0x30')][_0x18ae('0x2')]<_0x17dd21&&(_0x2a8cb7=_0x2aea5e),_0x481bc9[_0x2aea5e]['item']['endIndex']>=_0x1e4047){_0x573abd=_0x2aea5e;break;}_0x3595e8&&(_0x2a8cb7=_0x1e4047-0x1);for(let _0xc76e06=_0x17dd21;_0xc76e06<_0x1e4047;_0xc76e06++)_0x481bc9[_0xc76e06][_0x18ae('0x5f')]=_0xc76e06<=_0x2a8cb7?-0x1:_0xc76e06<_0x573abd?0x0:0x1,_0x481bc9[_0xc76e06]['index']=_0xc76e06;let _0xda31ae=0x0;for(let _0x2377cc=_0x17dd21;_0x2377cc<=_0x2a8cb7;_0x2377cc++)0x0==_0x481bc9[_0x2377cc][_0x18ae('0x8d')]?_0x481bc9[_0x2377cc]['level']=_0xda31ae:(_0xda31ae++,_0x481bc9[_0x2377cc][_0x18ae('0xfb')]=_0xda31ae,_0xda31ae++);for(let _0x32b7de=_0x17dd21;_0x32b7de<_0x1e4047;_0x32b7de++)0x0==_0x481bc9[_0x32b7de][_0x18ae('0x5f')]&&(_0x481bc9[_0x32b7de][_0x18ae('0xfb')]=_0xda31ae);_0xda31ae=0x0;for(let _0x36a9fd=_0x1e4047-0x1;_0x36a9fd>=_0x573abd;_0x36a9fd--)0x0==_0x481bc9[_0x36a9fd][_0x18ae('0x8d')]?_0x481bc9[_0x36a9fd][_0x18ae('0xfb')]=_0xda31ae:(_0xda31ae--,_0x481bc9[_0x36a9fd][_0x18ae('0xfb')]=_0xda31ae,_0xda31ae--);}}[_0x18ae('0xf1')](_0x406c73){const _0x94758e=new Map(),_0x50dfc2=this['editor'][_0x18ae('0x90')][_0x18ae('0xaa')];for(let _0x3f5daa=0x1;_0x3f5daa<_0x406c73[_0x18ae('0x87')];_0x3f5daa++){let _0xf085ba,_0x3cbc71,_0x5a8cc0;const _0x4c3ef8=_0x406c73[_0x3f5daa],_0x30ac95=_0x406c73[_0x3f5daa-0x1];if('text'==_0x4c3ef8[_0x18ae('0xe1')])continue;if(_0x4c3ef8[_0x18ae('0xe1')]!=_0x30ac95[_0x18ae('0xe1')])continue;if(!_0x50dfc2[_0x18ae('0xbd')](_0x30ac95[_0x18ae('0x30')])||_0x50dfc2[_0x18ae('0x3f')](_0x30ac95[_0x18ae('0x30')]))continue;if(!_0x50dfc2[_0x18ae('0xbd')](_0x4c3ef8['item'])||_0x50dfc2[_0x18ae('0x3f')](_0x4c3ef8[_0x18ae('0x30')]))continue;if((_0x406c73[_0x3f5daa][_0x18ae('0x7e')]||_0x406c73[_0x3f5daa]['isAddSuggestion'])&&_0x406c73[_0x3f5daa-0x1][_0x18ae('0x8b')])_0xf085ba=_0x406c73[_0x3f5daa],_0x3cbc71=_0x406c73[_0x3f5daa-0x1],_0x5a8cc0=_0x3f5daa-0x1;else{if(!_0x406c73[_0x3f5daa]['isRemoved']||!_0x406c73[_0x3f5daa-0x1][_0x18ae('0x7e')]&&!_0x406c73[_0x3f5daa-0x1][_0x18ae('0xa0')])continue;_0xf085ba=_0x406c73[_0x3f5daa-0x1],_0x3cbc71=_0x406c73[_0x3f5daa],_0x5a8cc0=_0x3f5daa;}const _0x1023a3=_0xf085ba[_0x18ae('0xfb')]==_0x3cbc71[_0x18ae('0xfb')],_0x19b2c2=Math['abs'](_0xf085ba[_0x18ae('0xfb')])<Math[_0x18ae('0x3')](_0x3cbc71[_0x18ae('0xfb')])&&0x0==_0x3cbc71[_0x18ae('0x8d')];(_0x1023a3||_0x19b2c2)&&(_0x94758e[_0x18ae('0x7b')](_0x3cbc71['id'],_0xf085ba['id']),_0x406c73[_0x18ae('0xb5')](_0x5a8cc0,0x1),_0x3f5daa--,_0xf085ba[_0x18ae('0x7e')]=!0x1);}for(let _0x6345ac=0x0;_0x6345ac<_0x406c73[_0x18ae('0x87')];_0x6345ac++)_0x94758e[_0x18ae('0x44')](_0x406c73[_0x6345ac][_0x18ae('0x111')])&&(_0x406c73[_0x6345ac][_0x18ae('0x111')]=_0x94758e['get'](_0x406c73[_0x6345ac][_0x18ae('0x111')]));}[_0x18ae('0xfe')](_0x314639){const _0x49d34d=new Set(_0x314639[_0x18ae('0x2d')](_0x5d992f=>_0x5d992f['id']));for(let _0x92ffea=0x0;_0x92ffea<_0x314639['length'];_0x92ffea++)_0x49d34d[_0x18ae('0x44')](_0x314639[_0x92ffea]['pairId'])||0x0==_0x314639[_0x92ffea][_0x18ae('0x8d')]||(_0x314639[_0x92ffea][_0x18ae('0x49')]=!0x0);return _0x314639[_0x18ae('0x102')](_0x28b696=>!_0x28b696['isIncorrect']);}[_0x18ae('0xb7')](_0x1ee5c1){const _0x180a53=new Set();for(let _0x7f4a7=0x0;_0x7f4a7<_0x1ee5c1['length'];_0x7f4a7++){if(_0x180a53[_0x18ae('0x44')](_0x1ee5c1[_0x7f4a7]['id'])&&_0x1ee5c1[_0x7f4a7][_0x18ae('0x8b')]&&(_0x1ee5c1[_0x7f4a7][_0x18ae('0x49')]=!0x0),_0x1ee5c1[_0x7f4a7][_0x18ae('0x49')])continue;if(0x0==_0x1ee5c1[_0x7f4a7][_0x18ae('0x8d')])continue;if(_0x18ae('0x1')!=_0x1ee5c1[_0x7f4a7]['type'])continue;if(null==_0x1ee5c1[_0x7f4a7][_0x18ae('0x111')])continue;let _0x4c6570=_0x7f4a7+0x1,_0x23f075=0x0;for(;_0x1ee5c1[_0x4c6570]['id']!=_0x1ee5c1[_0x7f4a7][_0x18ae('0x111')];)_0x18ae('0x1')==_0x1ee5c1[_0x4c6570][_0x18ae('0xe1')]?_0x23f075++:_0x18ae('0x4b')==_0x1ee5c1[_0x4c6570]['type']&&_0x23f075--,_0x4c6570++;if(0x0!=_0x23f075){if(_0x1ee5c1[_0x7f4a7]['isRemoved'])_0x1ee5c1[_0x7f4a7]['isIncorrect']=!0x0;else for(;_0x4c6570!=_0x7f4a7;)_0x1ee5c1[_0x4c6570][_0x18ae('0x8b')]&&0x0!=_0x1ee5c1[_0x4c6570][_0x18ae('0x8d')]&&(_0x1ee5c1[_0x4c6570][_0x18ae('0x49')]=!0x0,_0x180a53['add'](_0x1ee5c1[_0x4c6570][_0x18ae('0x111')])),_0x4c6570--;}}return _0x1ee5c1[_0x18ae('0x102')](_0x3d4e8d=>!_0x3d4e8d[_0x18ae('0x49')]);}[_0x18ae('0xd8')](_0x58c5c3){const _0x248890=this[_0x18ae('0xed')][_0x18ae('0x90')][_0x18ae('0xaa')];for(let _0x2209bc=0x0;_0x2209bc<_0x58c5c3['length'];_0x2209bc++){if(!(_0x58c5c3[_0x2209bc][_0x18ae('0x7e')]||_0x58c5c3[_0x2209bc][_0x18ae('0xa0')]||_0x58c5c3[_0x2209bc]['isRemoved']||_0x58c5c3[_0x2209bc]['isRemoveSuggestion']))continue;if(0x0==_0x58c5c3[_0x2209bc][_0x18ae('0x8d')])continue;const _0xfb973b=_0x58c5c3[_0x2209bc]['item'];_0x248890[_0x18ae('0xbd')](_0xfb973b)||_0x248890[_0x18ae('0x3f')](_0xfb973b)||(_0x58c5c3[_0x2209bc]['isAdded']&&delete _0x58c5c3[_0x2209bc][_0x18ae('0x7e')],_0x58c5c3[_0x2209bc][_0x18ae('0xa0')]&&delete _0x58c5c3[_0x2209bc]['isAddSuggestion'],_0x58c5c3[_0x2209bc][_0x18ae('0xce')]&&delete _0x58c5c3[_0x2209bc]['isRemoveSuggestion'],_0x58c5c3[_0x2209bc]['isRemoved']&&(_0x58c5c3[_0x2209bc][_0x18ae('0x49')]=!0x0));}return _0x58c5c3[_0x18ae('0x102')](_0x5aeb88=>!_0x5aeb88[_0x18ae('0x49')]);}[_0x18ae('0x4a')](_0x173d9d,_0x528864){const _0x402ae0=new _0x4c8654(),_0x142038=[],_0x346b9a=new Map(),_0x2f14e3=this[_0x18ae('0xed')][_0x18ae('0x90')],_0x186155=_0x2f14e3[_0x18ae('0xaa')],_0x1e683d=[_0x402ae0],_0xacf16f={},_0x2a400f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xc344b5=null;const _0x3f1f36=[0x0];for(let _0x5e1718=0x0;_0x5e1718<_0x173d9d['length'];_0x5e1718++){let _0x3ae0a1,_0x79dbf5;if(_0x18ae('0x1')===_0x173d9d[_0x5e1718][_0x18ae('0xe1')]){_0x3ae0a1=_0x2f14e3[_0x18ae('0x4c')](_0x402ae0,_0x3f1f36);const _0x5c0df2=new _0x377bd4(_0x173d9d[_0x5e1718][_0x18ae('0x30')][_0x18ae('0x7d')],_0x173d9d[_0x5e1718]['item'][_0x18ae('0x31')]());_0x1e683d[0x0]['_appendChild'](_0x5c0df2),_0x3f1f36[_0x18ae('0x10c')](0x0),_0x1e683d[_0x18ae('0x1c')](_0x5c0df2),_0x79dbf5=_0x2f14e3[_0x18ae('0x4c')](_0x402ae0,_0x3f1f36),_0xc344b5=null;}else{if(_0x18ae('0x4b')===_0x173d9d[_0x5e1718][_0x18ae('0xe1')])_0x1e683d[_0x18ae('0x17')](),_0x3ae0a1=_0x2f14e3['createPositionFromPath'](_0x402ae0,_0x3f1f36),_0x3f1f36['pop'](),_0x3f1f36[_0x3f1f36['length']-0x1]++,_0x79dbf5=_0x2f14e3[_0x18ae('0x4c')](_0x402ae0,_0x3f1f36),_0xc344b5=null;else{if(_0x3ae0a1=_0x2f14e3[_0x18ae('0x4c')](_0x402ae0,_0x3f1f36),_0xc344b5&&_0x2e61b1(_0xc344b5,_0x173d9d[_0x5e1718][_0x18ae('0x30')]))_0xc344b5[_0x18ae('0x117')]+=_0x173d9d[_0x5e1718][_0x18ae('0x30')]['data'];else{const _0x166976=new _0x222662(_0x173d9d[_0x5e1718][_0x18ae('0x30')][_0x18ae('0x10')],_0x173d9d[_0x5e1718][_0x18ae('0x30')]['getAttributes']());_0x1e683d[0x0][_0x18ae('0x47')](_0x166976),_0xc344b5=_0x166976;}_0x3f1f36[_0x3f1f36[_0x18ae('0x87')]-0x1]+=_0x173d9d[_0x5e1718][_0x18ae('0x30')][_0x18ae('0x56')],_0x79dbf5=_0x2f14e3[_0x18ae('0x4c')](_0x402ae0,_0x3f1f36);}}for(const _0x27d36d of _0x173d9d[_0x5e1718]['markersStart'])_0x346b9a[_0x18ae('0x7b')](_0x27d36d,{'start':_0x3ae0a1,'end':null});_0xb66138(_0x18ae('0xce'),_0x5e1718,_0x3ae0a1,_0x79dbf5),_0xb66138(_0x18ae('0xa0'),_0x5e1718,_0x3ae0a1,_0x79dbf5),_0xb66138(_0x18ae('0x8b'),_0x5e1718,_0x3ae0a1,_0x79dbf5),_0xb66138(_0x18ae('0x7e'),_0x5e1718,_0x3ae0a1,_0x79dbf5);for(const _0x430709 of _0x173d9d[_0x5e1718][_0x18ae('0x68')]){_0x346b9a[_0x18ae('0x73')](_0x430709)['end']=_0x79dbf5;}}for(const [_0x41e87b,_0x28602c]of _0x346b9a){const _0x3efa84=this[_0x18ae('0xed')][_0x18ae('0x90')]['createRange'](_0x28602c[_0x18ae('0x9f')],_0x28602c['end']);_0x402ae0[_0x18ae('0xb9')][_0x18ae('0x7b')](_0x41e87b,_0x3efa84);}return _0x142038[_0x18ae('0xa5')]((_0x4d69c1,_0xbd49d6)=>{const _0xd78243=_0x402ae0[_0x18ae('0xb9')][_0x18ae('0x73')](_0x18ae('0x9a')+_0x4d69c1['id']),_0x173552=_0x402ae0[_0x18ae('0xb9')][_0x18ae('0x73')]('revision:'+_0xbd49d6['id']);return _0xd78243[_0x18ae('0x9f')][_0x18ae('0xe3')](_0x173552[_0x18ae('0x9f')])?-0x1:_0xd78243[_0x18ae('0x9f')][_0x18ae('0x51')](_0x173552[_0x18ae('0x9f')])?0x1:_0xd78243['end']['isBefore'](_0x173552[_0x18ae('0xf')])?-0x1:_0xd78243['end'][_0x18ae('0x51')](_0x173552[_0x18ae('0xf')])?0x1:_0x18ae('0xd5')===_0x4d69c1[_0x18ae('0xe1')]?-0x1:0x1;}),{'root':_0x402ae0,'changes':_0x142038};function _0xb66138(_0x57caf5,_0x52064c,_0x3481f7,_0x2b495a){const _0x28d8ce=!!_0x173d9d[_0x52064c][_0x57caf5],_0x332354=_0x28d8ce?_0x173d9d[_0x52064c][_0x57caf5][_0x18ae('0x9')]:null,_0x282ccd=_0x52064c===_0x173d9d[_0x18ae('0x87')]-0x1,_0x14f007=_0x2a400f[_0x57caf5][0x0],_0x4dffae=_0x186155['isObject'](_0x173d9d[_0x52064c][_0x18ae('0x30')]);!_0xacf16f[_0x57caf5]&&_0x28d8ce?_0xacf16f[_0x57caf5]={'start':_0x3481f7,'tapeItem':_0x173d9d[_0x52064c],'userId':_0x332354,'type':_0x57caf5}:_0xacf16f[_0x57caf5]&&!_0x28d8ce?(_0xacf16f[_0x57caf5][_0x18ae('0xf')]=_0x3481f7,_0x26d4da(_0xacf16f[_0x57caf5]),_0xacf16f[_0x57caf5]=null):_0xacf16f[_0x57caf5]&&_0x28d8ce&&_0xacf16f[_0x57caf5]['userId']!==_0x332354&&(_0xacf16f[_0x57caf5]['end']=_0x3481f7,_0x14f007&&_0x14f007[_0x18ae('0x9')]===_0xacf16f[_0x57caf5][_0x18ae('0x9')]||_0x26d4da(_0xacf16f[_0x57caf5]),_0xacf16f[_0x57caf5]={'start':_0x3481f7,'tapeItem':_0x173d9d[_0x52064c],'userId':_0x332354,'type':_0x57caf5}),_0xacf16f[_0x57caf5]&&_0x4dffae&&(_0x18ae('0x1')!==_0x173d9d[_0x52064c][_0x18ae('0xe1')]||_0x14f007&&_0x14f007[_0x18ae('0x9')]===_0x332354||_0x2a400f[_0x57caf5]['unshift']({'userId':_0x332354,'object':_0x173d9d[_0x52064c][_0x18ae('0x30')],'change':_0xacf16f[_0x57caf5]}),'elementEnd'===_0x173d9d[_0x52064c][_0x18ae('0xe1')]&&_0x14f007&&_0x14f007[_0x18ae('0x84')]===_0x173d9d[_0x52064c]['item']&&(_0x2a400f[_0x57caf5][_0x18ae('0x17')](),_0xacf16f[_0x57caf5]=_0x14f007[_0x18ae('0xf5')])),_0xacf16f[_0x57caf5]&&_0x282ccd&&(_0xacf16f[_0x57caf5][_0x18ae('0xf')]=_0x2b495a,_0x26d4da(_0xacf16f[_0x57caf5]),_0xacf16f[_0x57caf5]=null);}function _0x26d4da({start:_0x18db2a,end:_0x30c7d7,tapeItem:_0x4d0ab9,userId:_0x2c7c19,type:_0x27cf8c}){const _0x4f0259=_0x4d0ab9[_0x18ae('0x30')],_0x1064bf=_0x2f14e3[_0x18ae('0xaa')]['isBlock'](_0x4f0259)&&!_0x2f14e3[_0x18ae('0xaa')][_0x18ae('0x3f')](_0x4f0259),_0x380408=_0x18db2a['nodeAfter']==_0x30c7d7['parent']&&_0x30c7d7[_0x18ae('0xd7')];if(_0x1064bf&&_0x380408)return;const _0x354f1d=_0x2f14e3[_0x18ae('0xa6')](_0x18db2a,_0x30c7d7),_0x143941=_0x528864[_0x18ae('0x73')](_0x2c7c19),_0x279a5d=new _0x230f63({'author':_0x143941,'type':_0x18ae('0x7e')==_0x27cf8c||_0x18ae('0xa0')==_0x27cf8c?'add':_0x18ae('0x72'),'data':{'isSuggestion':_0x18ae('0xa0')==_0x27cf8c||_0x18ae('0xce')==_0x27cf8c},'createdAt':new Date()});_0x142038[_0x18ae('0x10c')](_0x279a5d),_0x402ae0['markers'][_0x18ae('0x7b')](_0x18ae('0x9a')+_0x279a5d['id'],_0x354f1d);}function _0x2e61b1(_0x4580c5,_0x33460f){const _0x12167a=_0x4580c5[_0x18ae('0x31')](),_0x58813d=_0x33460f[_0x18ae('0x31')]();for(const _0x3337b5 of _0x12167a){if(_0x3337b5[0x1]!==_0x33460f['getAttribute'](_0x3337b5[0x0]))return!0x1;_0x58813d['next']();}return _0x58813d[_0x18ae('0xc3')]()[_0x18ae('0x83')];}}[_0x18ae('0x6b')](){this[_0x18ae('0xed')][_0x18ae('0x113')]['for'](_0x18ae('0x36'))[_0x18ae('0xf7')]({'view':_0x18ae('0x74')}),this[_0x18ae('0xed')][_0x18ae('0x113')]['for'](_0x18ae('0xa4'))['markerToHighlight']({'model':_0x18ae('0x74'),'view':_0x27fc25=>{const _0x40e69b=_0x27fc25[_0x18ae('0xac')][_0x18ae('0x9c')](':')[0x1],_0x2837c4=this[_0x18ae('0x39')](_0x40e69b);if(!_0x2837c4)return null;const _0x27b896=_0x18ae('0xd5')==_0x2837c4[_0x18ae('0xe1')]?_0x18ae('0x1b'):_0x18ae('0x81'),_0x839ce0=[_0x18ae('0x63'),'ck-suggestion-marker-'+_0x27b896];return _0x2837c4[_0x18ae('0x10')][_0x18ae('0x23')]&&_0x839ce0[_0x18ae('0x10c')]('ck-suggestion-marker-'+_0x27b896+_0x18ae('0xda')),this[_0x18ae('0xae')]==_0x2837c4&&_0x839ce0[_0x18ae('0x10c')]('ck-suggestion-marker--active'),{'classes':_0x839ce0,'attributes':{'data-change-id':_0x40e69b}};}}),this[_0x18ae('0xed')][_0x18ae('0x113')][_0x18ae('0x92')](_0x18ae('0x36'))[_0x18ae('0xd5')](_0x1b1c10=>{_0x1b1c10['on']('element:pre',(_0x13264c,_0x3e0cc9,_0xa769d7)=>{const _0x348e6d=_0x3e0cc9[_0x18ae('0x115')]['getChild'](0x0);if(!_0x348e6d||!_0x348e6d['is'](_0x18ae('0xf8'),_0x18ae('0xfc')))return;if(!_0xa769d7[_0x18ae('0x55')][_0x18ae('0x43')](_0x348e6d,{'attributes':[_0x18ae('0x10a'),_0x18ae('0x3a')]}))return;const _0x5240d6=_0x3e0cc9[_0x18ae('0x27')][_0x18ae('0x9f')][_0x18ae('0x6f')];_0xa769d7[_0x18ae('0xdd')]['setAttribute']('vid_start',_0x348e6d['getAttribute'](_0x18ae('0x10a')),_0x5240d6),_0xa769d7['writer'][_0x18ae('0x77')]('vid_end',_0x348e6d[_0x18ae('0x71')](_0x18ae('0x3a')),_0x5240d6);},{'priority':'low'});}),this[_0x18ae('0xed')]['conversion'][_0x18ae('0x92')](_0x18ae('0x36'))[_0x18ae('0xd5')](_0x4dcf5e=>{_0x4dcf5e['on'](_0x18ae('0xf8'),(_0x34398b,_0x4c2cea,_0x11e668)=>{if(!_0x11e668[_0x18ae('0x55')][_0x18ae('0x43')](_0x4c2cea['viewItem'],{'attributes':[_0x18ae('0x10a'),_0x18ae('0x3a')]}))return;if(_0x4c2cea[_0x18ae('0x27')][_0x18ae('0xb2')])return;const _0x463b47=_0x4c2cea[_0x18ae('0x27')][_0x18ae('0x9f')][_0x18ae('0x6f')];_0x463b47[_0x18ae('0x3b')](_0x18ae('0x10a'))||_0x463b47[_0x18ae('0x3b')](_0x18ae('0xa9'))||(_0x11e668['writer'][_0x18ae('0x77')]('vid_start',_0x4c2cea[_0x18ae('0x115')]['getAttribute'](_0x18ae('0x10a')),_0x463b47),_0x11e668[_0x18ae('0xdd')][_0x18ae('0x77')](_0x18ae('0x3a'),_0x4c2cea['viewItem']['getAttribute'](_0x18ae('0x3a')),_0x463b47));},{'priority':_0x18ae('0xc9')});}),this[_0x18ae('0xed')][_0x18ae('0x113')][_0x18ae('0x92')]('upcast')[_0x18ae('0xcf')]({'view':{'name':_0x18ae('0x106'),'attributes':{'vid':!0x0}},'model':{'key':_0x18ae('0xa9'),'value':_0x5c0d84=>_0x5c0d84[_0x18ae('0x71')](_0x18ae('0xa9'))}}),this[_0x18ae('0xed')][_0x18ae('0x90')][_0x18ae('0xaa')]['on'](_0x18ae('0x112'),(_0xdb3a6e,[,_0xbba3ce])=>{[_0x18ae('0x10a'),'vid_end',_0x18ae('0xa9')][_0x18ae('0x3d')](_0xbba3ce)&&(_0xdb3a6e['return']=!0x0,_0xdb3a6e[_0x18ae('0x7')]());},{'priority':_0x18ae('0xab')}),this[_0x18ae('0xed')][_0x18ae('0x113')]['for'](_0x18ae('0xd9'))['add'](_0x460647=>{_0x460647['on'](_0x18ae('0xcc'),(_0xaf8bec,_0xa7c131,_0x554208)=>{if('\x20'!=_0xa7c131[_0x18ae('0x30')][_0x18ae('0x10')]||_0xa7c131[_0x18ae('0x30')][_0x18ae('0x2c')][_0x18ae('0x14')]>0x1)return;if(!_0x554208[_0x18ae('0x55')][_0x18ae('0x43')](_0xa7c131['item'],_0xaf8bec[_0x18ae('0x7d')]))return;const _0x135b19=_0x554208[_0x18ae('0xdd')],_0x3aa56f=_0x554208[_0x18ae('0x80')]['toViewRange'](_0xa7c131[_0x18ae('0xc4')]);_0x135b19[_0x18ae('0x104')](_0x3aa56f,_0x135b19[_0x18ae('0x53')](_0x18ae('0x106')));});}),this[_0x18ae('0xed')][_0x18ae('0x113')][_0x18ae('0x92')](_0x18ae('0xd9'))[_0x18ae('0xe5')]({'model':_0x18ae('0x74')}),this[_0x18ae('0xed')][_0x18ae('0xba')][_0x18ae('0xd3')]['on']('addMarker:revision',function(_0x9a7751){const _0x200ad2=_0x9a7751[_0x18ae('0x12')]['get']('RevisionViewer');return(_0x3634ba,_0x189226,_0x22d3aa)=>{const _0x4de806=_0x189226['markerName']['split'](':')[0x1],_0x5997f2=_0x200ad2[_0x18ae('0x39')](_0x4de806);if(!_0x5997f2)return null;const _0x167f3b='add'==_0x5997f2[_0x18ae('0xe1')]?_0x18ae('0x9c'):'merge';if(!_0x22d3aa[_0x18ae('0x55')]['test'](_0x189226['markerRange'],_0x3634ba[_0x18ae('0x7d')]))return;const _0x6b5f0e=_0x189226[_0x18ae('0xbe')][_0x18ae('0x11')](),_0x421d3e=_0x189226[_0x18ae('0xbe')][_0x18ae('0x9f')],_0x6481ae=_0x9a7751['model'][_0x18ae('0xaa')];let _0x53b01d=null,_0x371d6d=null,_0x48e67f=!0x1,_0x884758=!0x1;for(const _0x931e6c of _0x6b5f0e){const _0x287392=_0x931e6c['item'];_0x48e67f=_0x48e67f||_0x6481ae[_0x18ae('0x5a')](_0x287392);const _0x1c274f=_0x22d3aa['mapper']['toViewElement'](_0x287392);if(_0x1c274f&&_0x1c274f['getCustomProperty'](_0x18ae('0x6')))return;_0x18ae('0x4b')==_0x931e6c['type']&&(_0x6481ae[_0x18ae('0xbd')](_0x287392)&&!_0x6481ae[_0x18ae('0x3f')](_0x287392)&&(_0x287392[_0x18ae('0x59')]||_0x421d3e[_0x18ae('0xa1')]?_0x53b01d&&_0x53b01d[_0x18ae('0x2c')]==_0x287392||(_0x53b01d=_0x287392,_0x4ca36c(_0x931e6c['previousPosition']),_0x884758=!0x0):_0x371d6d=_0x371d6d||_0x931e6c[_0x18ae('0xbc')]));}function _0x4ca36c(_0x7f6574){const _0x3ca4b1=_0x22d3aa[_0x18ae('0xdd')][_0x18ae('0x94')](_0x18ae('0x106'),{'class':_0x18ae('0x1d')+_0x167f3b}),_0x50abaf=_0x22d3aa[_0x18ae('0x80')][_0x18ae('0x5e')](_0x7f6574);_0x5997f2['data'][_0x18ae('0x23')]&&_0x22d3aa[_0x18ae('0xdd')][_0x18ae('0x4f')](_0x18ae('0x1d')+_0x167f3b+_0x18ae('0xda'),_0x3ca4b1),_0x200ad2[_0x18ae('0xae')]==_0x5997f2&&_0x22d3aa[_0x18ae('0xdd')][_0x18ae('0x4f')](_0x18ae('0xd4'),_0x3ca4b1),_0x22d3aa[_0x18ae('0xdd')][_0x18ae('0x76')](_0x50abaf,_0x3ca4b1),_0x22d3aa[_0x18ae('0x80')][_0x18ae('0x2f')](_0x3ca4b1,_0x189226[_0x18ae('0xac')]);}_0x48e67f||_0x884758||!_0x371d6d||_0x4ca36c(_0x371d6d);};}(this[_0x18ae('0xed')]),{'priority':_0x18ae('0x26')}),this[_0x18ae('0xed')]['editing'][_0x18ae('0xd3')]['on'](_0x18ae('0xe8'),(_0x4afd18,_0xaf3cfa,_0x4b70c6)=>{const _0x23fc5e=_0x4b70c6[_0x18ae('0x80')][_0x18ae('0xea')](_0xaf3cfa[_0x18ae('0xac')]);if(_0x23fc5e)for(const _0x292ef8 of _0x23fc5e)(_0x292ef8[_0x18ae('0x114')](_0x18ae('0xca'))||_0x292ef8[_0x18ae('0x114')]('ck-suggestion-marker-merge'))&&(_0x4b70c6[_0x18ae('0x80')][_0x18ae('0xf9')](_0x292ef8,_0xaf3cfa['markerName']),_0x4b70c6['writer'][_0x18ae('0x72')](_0x292ef8));},{'priority':_0x18ae('0x26')}),this['editor'][_0x18ae('0xba')]['downcastDispatcher']['on'](_0x18ae('0x45'),(_0x20ff3d,_0x3f84f4,_0x6b8225)=>{const _0x1b4648=_0x3f84f4[_0x18ae('0xac')][_0x18ae('0x9c')](':')[0x1],_0x3b4ea1=this[_0x18ae('0x39')](_0x1b4648);if(!_0x3b4ea1)return null;const _0xd79d2c='add'==_0x3b4ea1[_0x18ae('0xe1')]?_0x18ae('0x9c'):_0x18ae('0xa8');if(_0x6b8225[_0x18ae('0x55')]['test'](_0x3f84f4[_0x18ae('0xbe')],_0x20ff3d[_0x18ae('0x7d')]))for(const _0x382f4a of _0x3f84f4['markerRange'][_0x18ae('0xe2')]()){if(!_0x382f4a['is'](_0x18ae('0xf8'),_0x18ae('0x8')))continue;const _0x407b51=_0x6b8225[_0x18ae('0xdd')]['createUIElement'](_0x18ae('0x106'),{'class':_0x18ae('0x1d')+_0xd79d2c}),_0x4b8d65=_0x6b8225['mapper']['toViewPosition'](this[_0x18ae('0xed')][_0x18ae('0x90')][_0x18ae('0x13')](_0x382f4a));_0x3b4ea1[_0x18ae('0x10')][_0x18ae('0x23')]&&_0x6b8225['writer'][_0x18ae('0x4f')](_0x18ae('0x1d')+_0xd79d2c+'-new',_0x407b51),this[_0x18ae('0xae')]==_0x3b4ea1&&_0x6b8225[_0x18ae('0xdd')][_0x18ae('0x4f')](_0x18ae('0xd4'),_0x407b51),_0x6b8225['writer'][_0x18ae('0x76')](_0x4b8d65,_0x407b51),_0x6b8225[_0x18ae('0x80')][_0x18ae('0x2f')](_0x407b51,_0x3f84f4['markerName']);}},{'priority':_0x18ae('0x26')}),this['editor'][_0x18ae('0x113')][_0x18ae('0x92')](_0x18ae('0x36'))['dataToMarker']({'view':_0x18ae('0xf2'),'model':_0xd86ca4=>'revision-comment:'+_0xd86ca4,'converterPriority':_0x18ae('0xab')}),this['editor']['conversion']['for'](_0x18ae('0x36'))[_0x18ae('0xf7')]({'view':_0x18ae('0xc7'),'model':_0x4e05c9=>_0x18ae('0xc1')+_0x4e05c9,'converterPriority':_0x18ae('0xab')}),this['editor'][_0x18ae('0x113')]['for'](_0x18ae('0xd9'))[_0x18ae('0xe5')]({'model':_0x18ae('0xf4'),'view':_0x25115a=>_0x18ae('0x67')+_0x25115a,'converterPriority':'highest'}),this[_0x18ae('0xed')][_0x18ae('0x113')][_0x18ae('0x92')]('editingDowncast')[_0x18ae('0x5b')]({'model':_0x18ae('0xf4'),'view':_0x12d250=>{const _0x5f255d=_0x12d250['markerName'][_0x18ae('0x9c')](':')[0x1];return _0x18ae('0x1b')!=_0x5f255d&&'deletion'!=_0x5f255d?null:{'classes':[_0x18ae('0xe9'),_0x18ae('0x95')+_0x5f255d]};}}),this['editor'][_0x18ae('0xba')][_0x18ae('0xd3')]['on'](_0x18ae('0x2b'),Q(this[_0x18ae('0xed')],_0x18ae('0xa8')),{'priority':'high'}),this['editor']['editing'][_0x18ae('0xd3')]['on'](_0x18ae('0xde'),Q(this[_0x18ae('0xed')],_0x18ae('0x9c')),{'priority':_0x18ae('0x26')}),this['editor'][_0x18ae('0xba')][_0x18ae('0xd3')]['on'](_0x18ae('0xaf'),(_0x17af60,_0x1d2397,_0x26d6b2)=>{const _0xd1982=_0x26d6b2[_0x18ae('0x80')][_0x18ae('0xea')](_0x1d2397[_0x18ae('0xac')]);if(_0xd1982)for(const _0x3eb004 of _0xd1982)_0x3eb004['is'](_0x18ae('0x6a'))&&(_0x26d6b2['mapper']['unbindElementFromMarkerName'](_0x3eb004,_0x1d2397[_0x18ae('0xac')]),_0x26d6b2[_0x18ae('0xdd')]['remove'](_0x3eb004));},{'priority':_0x18ae('0x26')});}[_0x18ae('0x39')](_0x4918b4){return this[_0x18ae('0x4d')][_0x18ae('0x73')](_0x4918b4);}[_0x18ae('0x5')](_0x25ca17){return this['_changeView']&&this[_0x18ae('0x18')][_0x18ae('0xfa')](),this[_0x18ae('0x18')]=new _0x132f2b(this[_0x18ae('0xed')][_0x18ae('0x10d')],_0x25ca17),this[_0x18ae('0x18')];}[_0x18ae('0x107')](){this['editor'][_0x18ae('0x90')][_0x18ae('0x15')][_0x18ae('0x8e')][_0x18ae('0xef')](_0x18ae('0x74')),this['on'](_0x18ae('0x9e'),(_0x1487b2,_0x2091a3,_0x48235f,_0x25e55a)=>{_0x25e55a&&this['_balloon']['remove'](_0x25e55a),_0x48235f&&(this[_0x18ae('0x69')][_0x18ae('0xd5')]({'view':_0x48235f,'stackId':_0x18ae('0x101'),'position':{'target':()=>{const _0x589b7e=this['editor'][_0x18ae('0xba')],_0x5ad22c=this[_0x18ae('0xed')][_0x18ae('0x90')][_0x18ae('0xb9')][_0x18ae('0x73')](_0x18ae('0x9a')+_0x48235f['changeId']),_0x2d54fa=Array[_0x18ae('0xa2')](_0x589b7e['mapper'][_0x18ae('0xea')](_0x5ad22c[_0x18ae('0x7d')]))[_0x18ae('0x2d')](_0x5cac30=>_0x589b7e[_0x18ae('0xf3')]['domConverter'][_0x18ae('0x8f')](_0x5cac30))[_0x18ae('0x2d')](_0x189c14=>Array[_0x18ae('0xa2')](_0x189c14[_0x18ae('0x7c')]()))[_0x18ae('0x96')]();if(!this[_0x18ae('0x16')])return _0x2d54fa[0x0];return _0x2d54fa['find'](_0x2c3182=>_0x2c3182[_0x18ae('0x9d')]-0x3<=this['_activeViewTarget']['y']&&_0x2c3182[_0x18ae('0x116')]+0x3>=this[_0x18ae('0x16')]['y']&&_0x2c3182['left']-0x3<=this[_0x18ae('0x16')]['x']&&_0x2c3182[_0x18ae('0x2a')]+0x3>=this[_0x18ae('0x16')]['x'])||_0x2d54fa[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1933d4,_0x490088,_0x1bee48,_0x41d14b)=>{this[_0x18ae('0xbf')]=_0x1bee48?this[_0x18ae('0x5')](_0x1bee48):null,this[_0x18ae('0xed')]['model'][_0x18ae('0xf5')](()=>{const _0x424c14=this[_0x18ae('0xed')][_0x18ae('0xba')];_0x41d14b&&_0x424c14['reconvertMarker']('revision:'+_0x41d14b['id']),_0x1bee48&&_0x424c14[_0x18ae('0x33')](_0x18ae('0x9a')+_0x1bee48['id']);});}),this[_0x18ae('0xb0')](this[_0x18ae('0xed')][_0x18ae('0xba')][_0x18ae('0xf3')][_0x18ae('0x15')],_0x18ae('0xff'),(_0x538096,_0x34cf92)=>{if(this[_0x18ae('0xae')])return;const _0x412acf=this['_findChangeIdFromDomTarget'](_0x34cf92['target']),_0x25725d=this[_0x18ae('0x4d')][_0x18ae('0x73')](_0x412acf);_0x25725d?(this[_0x18ae('0x16')]={'x':_0x34cf92[_0x18ae('0x1f')]['x'],'y':_0x34cf92[_0x18ae('0x1f')]['y']},this[_0x18ae('0xbf')]=this['_getViewForChange'](_0x25725d)):(this[_0x18ae('0x16')]=null,this['activeView']=null);}),this[_0x18ae('0xb0')](this[_0x18ae('0xed')]['editing'][_0x18ae('0xf3')][_0x18ae('0x15')],'mousedown',(_0x1bcd81,_0x806d9f)=>{const _0x4a7032=this['_findChangeIdFromDomTarget'](_0x806d9f['target']),_0x3b7ef7=this[_0x18ae('0x4d')]['get'](_0x4a7032);_0x3b7ef7?(this[_0x18ae('0x16')]={'x':_0x806d9f['domEvent']['x'],'y':_0x806d9f[_0x18ae('0x1f')]['y']},_0x3b7ef7===this[_0x18ae('0xae')]?this[_0x18ae('0x69')][_0x18ae('0xf6')]():this[_0x18ae('0xae')]=_0x3b7ef7):(this[_0x18ae('0x16')]=null,this[_0x18ae('0xae')]=null);});}[_0x18ae('0x42')](_0x5c4489){do{const _0x37b934=_0x5c4489[_0x18ae('0x71')](_0x18ae('0xfd'));if(_0x37b934)return _0x37b934;_0x5c4489=_0x5c4489[_0x18ae('0x2c')];}while(_0x5c4489);return null;}[_0x18ae('0x35')](){this[_0x18ae('0xed')][_0x18ae('0x90')][_0x18ae('0xf5')](_0x8257f9=>{for(const _0x1423c3 of this[_0x18ae('0xed')][_0x18ae('0x90')][_0x18ae('0xb9')])_0x8257f9['removeMarker'](_0x1423c3);});}}function Q(_0x13fd9e,_0x45397e){return(_0x3920a0,_0x36836b,_0x40a539)=>{if(!_0x40a539[_0x18ae('0x55')][_0x18ae('0x6d')](_0x36836b[_0x18ae('0xbe')],_0x3920a0[_0x18ae('0x7d')]))return;const _0xcc7034=_0x36836b[_0x18ae('0xbe')][_0x18ae('0x11')](),_0x53f931=_0x36836b[_0x18ae('0xbe')][_0x18ae('0x9f')],_0x25e629=_0x13fd9e[_0x18ae('0x90')][_0x18ae('0xaa')];let _0x149eca=null,_0x25e163=null,_0x5126e5=!0x1,_0x589157=!0x1;for(const _0x56904d of _0xcc7034){const _0x286018=_0x56904d['item'];_0x5126e5=_0x5126e5||_0x25e629[_0x18ae('0x5a')](_0x286018);const _0x1b113b=_0x40a539[_0x18ae('0x80')][_0x18ae('0x65')](_0x286018);if(_0x1b113b&&_0x1b113b[_0x18ae('0x7a')](_0x18ae('0x6')))return;_0x18ae('0x4b')==_0x56904d['type']&&(_0x25e629['isBlock'](_0x286018)&&!_0x25e629['isLimit'](_0x286018)&&(_0x286018[_0x18ae('0x59')]||_0x53f931['isAtEnd']?_0x149eca&&_0x149eca['parent']==_0x286018||(_0x149eca=_0x286018,_0x5adf31(_0x56904d[_0x18ae('0xbc')]),_0x589157=!0x0):_0x25e163=_0x25e163||_0x56904d[_0x18ae('0xbc')]));}function _0x5adf31(_0x1434d1){const _0x1fb9ea=_0x40a539[_0x18ae('0x80')]['toViewPosition'](_0x1434d1),_0x22ff3e=_0x40a539[_0x18ae('0xdd')][_0x18ae('0x94')](_0x18ae('0x106'),{'class':_0x18ae('0x95')+_0x45397e});_0x40a539[_0x18ae('0xdd')][_0x18ae('0x76')](_0x1fb9ea,_0x22ff3e),_0x40a539[_0x18ae('0x80')][_0x18ae('0x2f')](_0x22ff3e,_0x36836b[_0x18ae('0xac')]);}_0x5126e5||_0x589157||!_0x25e163||_0x5adf31(_0x25e163);};}_0xbe2659(w,_0xf6445f);class X extends _0x8572e9{constructor(_0x14985d){super(_0x14985d);const _0x342a9c=_0x14985d[_0x18ae('0x12')]['get'](w);this[_0x18ae('0x22')](_0x14985d,_0x18ae('0xec')),this[_0x18ae('0xdb')](_0x18ae('0xf0')),this['listenTo'](_0x342a9c,_0x18ae('0x41'),()=>this['refresh']()),this[_0x18ae('0xb0')](_0x342a9c,_0x18ae('0xb8'),()=>this[_0x18ae('0x8c')]());}['execute'](){const _0x2932a0=this[_0x18ae('0xed')],_0x35fa59=_0x2932a0[_0x18ae('0x12')][_0x18ae('0x73')](w),_0x2886ee=_0x35fa59[_0x18ae('0x0')]?_0x35fa59[_0x18ae('0x110')][_0x18ae('0xc8')]:null;_0x2932a0[_0x18ae('0x109')][_0x18ae('0x73')]('revisionHistory')[_0x18ae('0x24')](_0x2886ee);}[_0x18ae('0x8c')](){const {isReady:_0x1cae2b,isEnabled:_0x529661}=this['editor']['plugins']['get'](w);this[_0x18ae('0x9b')]=_0x1cae2b&&_0x529661;}}class Y extends _0x8572e9{constructor(_0x2130c8,{direction:_0x4c4ea7}){super(_0x2130c8);const _0x44e0e7=_0x2130c8[_0x18ae('0x12')][_0x18ae('0x73')](w);this['stopListening'](_0x2130c8,_0x18ae('0xec')),this[_0x18ae('0xdb')](_0x18ae('0xf0')),this[_0x18ae('0x85')]='forward'===_0x4c4ea7?0x1:-0x1,this['listenTo'](_0x44e0e7,_0x18ae('0x41'),()=>this[_0x18ae('0x8c')]()),this['listenTo'](_0x44e0e7,_0x18ae('0xb8'),()=>this['refresh']());}[_0x18ae('0x93')](){const _0x3b7d58=this[_0x18ae('0xed')],_0x2862d0=_0x3b7d58[_0x18ae('0x12')][_0x18ae('0x73')](w),{isNavigationMode:_0x24be4d,currentChangeNumber:_0x289e40}=_0x2862d0;_0x2862d0['activeChange']=_0x24be4d?_0x2862d0[_0x18ae('0x110')]['changes'][_0x18ae('0x73')](_0x289e40+this['_step']):_0x2862d0[_0x18ae('0x110')][_0x18ae('0x28')]['first'];const _0x30c045=_0x3b7d58['model']['markers'][_0x18ae('0x73')](_0x18ae('0x9a')+_0x2862d0[_0x18ae('0xae')]['id']),_0x38d11c=_0x435574(_0x3b7d58['editing'],_0x30c045);_0x50d93f({'target':_0x38d11c,'viewportOffset':0x28});}[_0x18ae('0x8c')](){const {isNavigationMode:_0x13eafc,currentChangeNumber:_0x2abb3e,numberOfChanges:_0x3f483e,isReady:_0x430bba,isEnabled:_0x5ae451}=this['editor'][_0x18ae('0x12')]['get'](w);this['isEnabled']=!!(_0x5ae451&&_0x430bba&&_0x3f483e)&&(!_0x13eafc||(0x1===this[_0x18ae('0x85')]?_0x2abb3e<_0x3f483e-0x1:_0x2abb3e>0x0));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1165=['model','isActionsDropdownOpen','change:isActionsDropdownOpen','function','button','class','isReady','set','listenTo','items','Name\x20this\x20revision','bind','isVisible','Restore\x20this\x20revision','panelPosition','map','listView','source','isEnabled','bindTemplate','execute','ck-revision-history-sidebar__revision__actions','first','buttonView','extendTemplate','find','Compare\x20against\x20selected','children','locale','name','ck-on','_action','action','isOpen'];(function(_0x538e7c,_0x116597){const _0x40c674=function(_0x47c2b1){while(--_0x47c2b1){_0x538e7c['push'](_0x538e7c['shift']());}};_0x40c674(++_0x116597);}(_0x1165,0x1c3));const _0x40c6=function(_0x538e7c,_0x116597){_0x538e7c=_0x538e7c-0x0;let _0x40c674=_0x1165[_0x538e7c];return _0x40c674;};import{Collection as _0x558d7e}from'ckeditor5/src/utils';import{Model as _0x2e71c2,addListToDropdown as _0x1018c5,createDropdown as _0x278363}from'ckeditor5/src/ui';import{getTranslation as _0x38b4a0}from'../../utils/common-translations';import _0x55c96e from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3bed47,_0x24774a){const _0x1aa714=_0x3bed47[_0x40c6('0xa')],_0x1047c8=_0x3bed47[_0x40c6('0x13')],_0x5dbebd=_0x278363(_0x1047c8);_0x5dbebd[_0x40c6('0x5')]='sw';const _0x5ce4f4=function(_0x231409,_0x5f176c){const _0x3b65e1=function(_0x46a0c9,_0x164259){const _0x519856=_0x46a0c9[_0x40c6('0x13')],_0xa27316={'Compare\x20against\x20selected':_0x38b4a0(_0x519856,_0x40c6('0x11')),'Name\x20this\x20revision':_0x38b4a0(_0x519856,_0x40c6('0x1')),'Restore\x20this\x20revision':_0x38b4a0(_0x519856,_0x40c6('0x4'))};return _0x164259[_0x40c6('0x6')](_0x5ac5f0=>{const _0x53d656=_0xa27316[_0x5ac5f0['name']];return _0x53d656&&_0x53d656!==_0x5ac5f0[_0x40c6('0x14')]&&(_0x5ac5f0['name']=_0x53d656),_0x5ac5f0;});}(_0x231409,_0x5f176c),_0x4a04c1=new _0x558d7e();for(const _0x52e741 of _0x3b65e1){const _0x32b81e={'type':_0x40c6('0x1d'),'model':new _0x2e71c2({'label':_0x52e741[_0x40c6('0x14')],'class':_0x52e741[_0x40c6('0x1e')],'withText':!0x0,'_action':_0x52e741[_0x40c6('0x17')]})};_0x32b81e[_0x40c6('0x19')][_0x40c6('0x2')](_0x40c6('0x9'))['to'](_0x231409,'isActionsDropdownOpen',_0x2e008c=>_0x40c6('0x1c')!=typeof _0x52e741[_0x40c6('0x9')]||(!_0x2e008c||_0x52e741['isEnabled'](_0x231409))),_0x4a04c1['add'](_0x32b81e);}return _0x4a04c1;}(_0x3bed47,_0x24774a);return _0x3bed47[_0x40c6('0x2')](_0x40c6('0x1a'))['to'](_0x5dbebd,_0x40c6('0x18')),_0x5dbebd[_0x40c6('0xe')][_0x40c6('0x20')]({'label':_0x38b4a0(_0x1047c8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x55c96e}),_0x5dbebd[_0x40c6('0xf')]({'attributes':{'class':[_0x40c6('0xc'),_0x1aa714['if']('isActionsDropdownOpen',_0x40c6('0x15'))]},'on':{'click':_0x1aa714['to'](_0x5640df=>_0x5640df['stopPropagation']())}}),_0x5dbebd['on'](_0x40c6('0xb'),_0x23ffb7=>{_0x3bed47[_0x40c6('0x1f')]&&_0x40c6('0x1c')==typeof _0x23ffb7[_0x40c6('0x8')]['_action']&&_0x23ffb7[_0x40c6('0x8')][_0x40c6('0x16')](_0x3bed47);}),_0x1018c5(_0x5dbebd,_0x5ce4f4),_0x5dbebd[_0x40c6('0x21')](_0x3bed47,_0x40c6('0x1b'),(_0x1e1917,_0x18fea3,_0x13b2d5)=>{if(_0x13b2d5)for(const _0x450c98 of _0x5dbebd[_0x40c6('0x7')][_0x40c6('0x0')]){const _0x500f2b=_0x450c98[_0x40c6('0x12')][_0x40c6('0xd')],_0x2ae65e=_0x24774a[_0x40c6('0x10')](_0x33d9d6=>_0x33d9d6['action']===_0x500f2b[_0x40c6('0x16')])['isVisible'];_0x450c98[_0x40c6('0x3')]=void 0x0===_0x2ae65e||_0x2ae65e(_0x3bed47);}}),_0x5dbebd;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x578f=['0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','Revision\x20creator','Revision\x20author','setTemplate','name','set','push','ck-revision-history-sidebar__revision-author_creator','span'];(function(_0x398186,_0x578fdf){const _0x16c21d=function(_0x603c46){while(--_0x603c46){_0x398186['push'](_0x398186['shift']());}};_0x16c21d(++_0x578fdf);}(_0x578f,0x155));const _0x16c2=function(_0x398186,_0x578fdf){_0x398186=_0x398186-0x0;let _0x16c21d=_0x578f[_0x398186];return _0x16c21d;};import{View as _0x32c9f0,IconView as _0x4777b9}from'ckeditor5/src/ui';import{getTranslation as _0x24a067}from'../../utils/common-translations';import _0x4cfc5e from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x32c9f0{constructor(_0x29cc00,_0x1b5296,_0x39538c){super(_0x29cc00);const _0x213745=new _0x4777b9(_0x29cc00);_0x213745[_0x16c2('0x5')]({'content':_0x4cfc5e,'viewBox':_0x16c2('0x9')});const _0x434fbd=['ck',_0x16c2('0x0')];_0x39538c&&_0x434fbd[_0x16c2('0x6')](_0x16c2('0x7'));const _0x3bb795=[{'tag':_0x16c2('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x24a067(_0x29cc00,_0x39538c?_0x16c2('0x1'):_0x16c2('0x2'))},'children':[_0x213745,_0x1b5296[_0x16c2('0x4')]]}];this[_0x16c2('0x3')]({'tag':'li','attributes':{'class':_0x434fbd},'children':_0x3bb795});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c30=['extendTemplate','ck-revision-history-sidebar__revision-name','Revision\x20name','set'];(function(_0x6f55af,_0x5c30e8){var _0x480093=function(_0x15a8b1){while(--_0x15a8b1){_0x6f55af['push'](_0x6f55af['shift']());}};_0x480093(++_0x5c30e8);}(_0x5c30,0x81));var _0x4800=function(_0x6f55af,_0x5c30e8){_0x6f55af=_0x6f55af-0x0;var _0x480093=_0x5c30[_0x6f55af];return _0x480093;};import{LabeledFieldView as _0x3c6c86}from'ckeditor5/src/ui';import{getTranslation as _0x3d53eb}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x3c6c86{constructor(_0x25fcf6,..._0x24359d){super(_0x25fcf6,..._0x24359d),this[_0x4800('0x2')]({'label':_0x3d53eb(_0x25fcf6,_0x4800('0x1'))}),this[_0x4800('0x3')]({'tag':'span','attributes':{'class':[_0x4800('0x0')]}});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x351c=['isConfirm','setTemplate','220','placeholder','isReady','unhighlight','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','set','extendTemplate','from','bindTemplate','ck-reset','closest','render','unshift','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision_selected','isSelected','filter','span','srcElement','deselect','ck-revision-history-sidebar__revision__date','isHighlighted','ck-revision-history-sidebar__revision-wrapper','setName','select','isEnabled','revisionNameView','isActionsDropdownOpen','fieldView','uiLanguage','revisionActionsView','_createdAtFormatted','name','div','createdAt','value','_revision','map','ck-revision-history-sidebar__actions_dropdown_open','creator','fire','bind','ck-revision-history-sidebar__revision_highlighted'];(function(_0x4af5e0,_0x351c83){const _0x33ed04=function(_0x545ee3){while(--_0x545ee3){_0x4af5e0['push'](_0x4af5e0['shift']());}};_0x33ed04(++_0x351c83);}(_0x351c,0x19f));const _0x33ed=function(_0x4af5e0,_0x351c83){_0x4af5e0=_0x4af5e0-0x0;let _0x33ed04=_0x351c[_0x4af5e0];return _0x33ed04;};import{View as _0x32c326,createLabeledInputText as _0x41c94f}from'ckeditor5/src/ui';import{mix as _0x35c55e}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2140e2}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e6a8e from'./revisionnameview';import _0x5c9855 from'./revisionauthorview';import{dateToPrettyFormat as _0x3296cf}from'./utils';import{createActionsDropdownView as _0x476e01}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x32c326{constructor(_0x3b8840,_0x5a7932,_0x415ab7){super(_0x3b8840);const _0x1d19da=this[_0x33ed('0x0')],_0x451e7a=function(_0x419ec7,_0x460f2c){const _0x3dad6e=Array[_0x33ed('0x2c')](_0x460f2c['authors'])[_0x33ed('0x8')](_0x21d404=>_0x21d404!=_0x460f2c[_0x33ed('0x1f')]);return _0x460f2c['creator']&&_0x3dad6e[_0x33ed('0x4')](_0x460f2c[_0x33ed('0x1f')]),_0x3dad6e[_0x33ed('0x1d')](_0x490c1f=>new _0x5c9855(_0x419ec7,_0x490c1f,_0x490c1f==_0x460f2c[_0x33ed('0x1f')]));}(_0x3b8840,_0x5a7932);this[_0x33ed('0x1c')]=_0x5a7932,this['id']=_0x5a7932['id'],this['bind'](_0x33ed('0x18'),_0x33ed('0x1a'))['to'](_0x5a7932),this[_0x33ed('0x2a')](_0x33ed('0x7'),!0x1),this[_0x33ed('0x2a')](_0x33ed('0xd'),!0x1),this['set'](_0x33ed('0x13'),!0x1),this['set'](_0x33ed('0x27'),!0x1),this[_0x33ed('0x21')](_0x33ed('0x17'))['to'](this,_0x33ed('0x1a'),_0x470755=>_0x470755?_0x3296cf(_0x3b8840[_0x33ed('0x15')],_0x470755):null),this[_0x33ed('0x2a')](_0x33ed('0x11'),!0x1),this[_0x33ed('0x12')]=new _0x2e6a8e(_0x3b8840,_0x41c94f),this[_0x33ed('0x12')]['fieldView'][_0x33ed('0x2b')]({'attributes':{'maxlength':_0x33ed('0x25')}}),this[_0x33ed('0x12')][_0x33ed('0x14')]['bind']('value',_0x33ed('0x26'))['to'](this,_0x33ed('0x18'),_0x33ed('0x17')),this[_0x33ed('0x12')]['bind']('isEnabled')['to'](this,_0x33ed('0x7'),this,_0x33ed('0x11'),(_0x47e87b,_0x55e177)=>_0x47e87b&&_0x55e177),this[_0x33ed('0x16')]=_0x415ab7&&_0x415ab7['length']?_0x476e01(this,_0x415ab7):'',this[_0x33ed('0x16')][_0x33ed('0x21')](_0x33ed('0x11'))['to'](this),this[_0x33ed('0x24')]({'tag':_0x33ed('0x19'),'attributes':{'class':['ck','ck-reset',_0x33ed('0xe'),_0x1d19da['if'](_0x33ed('0x23'),_0x33ed('0x29'))]},'children':[{'tag':_0x33ed('0x19'),'attributes':{'class':['ck',_0x33ed('0x1'),'ck-revision-history-sidebar__revision',_0x1d19da['if'](_0x33ed('0x11'),'ck-disabled',_0x45cc6b=>!_0x45cc6b),_0x1d19da['if'](_0x33ed('0x7'),_0x33ed('0x6')),_0x1d19da['if'](_0x33ed('0xd'),_0x33ed('0x22')),_0x1d19da['if'](_0x33ed('0x13'),_0x33ed('0x1e'))]},'children':[this[_0x33ed('0x12')],{'tag':_0x33ed('0x9'),'attributes':{'class':['ck',_0x33ed('0xc')]},'children':[{'text':_0x1d19da['to'](_0x33ed('0x17'))}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x451e7a}]},this[_0x33ed('0x16')]],'on':{'click':_0x1d19da['to'](_0x32b283=>{_0x32b283[_0x33ed('0xa')][_0x33ed('0x2')](_0x33ed('0x5'))||this[_0x33ed('0x27')]&&this[_0x33ed('0x11')]&&this[_0x33ed('0x20')](_0x33ed('0x10'),{'id':this['id']});})}}]});}[_0x33ed('0x3')](){super[_0x33ed('0x3')]();const _0x41db38=this[_0x33ed('0x12')][_0x33ed('0x14')]['element'];this['listenTo'](_0x41db38,'change',()=>{this[_0x33ed('0x20')](_0x33ed('0xf'),{'id':this['id'],'name':_0x41db38[_0x33ed('0x1b')]});});}['select'](){this[_0x33ed('0x7')]=!0x0;}[_0x33ed('0xb')](){this[_0x33ed('0x7')]=!0x1;}['highlight'](){this[_0x33ed('0xd')]=!0x0;}[_0x33ed('0x28')](){this[_0x33ed('0xd')]=!0x1;}}_0x35c55e(ci,_0x2140e2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2066=['_isCollapsed','toggle','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','span','set','ck-revision-history-sidebar__subrevision-collapser__inner','button','true','click','ck-revision-history-sidebar__subrevision-collapser'];(function(_0x4752d8,_0x2066a4){const _0x51b00c=function(_0x19d304){while(--_0x19d304){_0x4752d8['push'](_0x4752d8['shift']());}};_0x51b00c(++_0x2066a4);}(_0x2066,0x18f));const _0x51b0=function(_0x4752d8,_0x2066a4){_0x4752d8=_0x4752d8-0x0;let _0x51b00c=_0x2066[_0x4752d8];return _0x51b00c;};import{View as _0x2f5475}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x2f5475{constructor(_0xa811c0){super(_0xa811c0);const _0x21e98a=this['bindTemplate'];this[_0x51b0('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x51b0('0x7'),_0x21e98a['if']('isVisible','ck-hidden',_0x31942a=>!_0x31942a),_0x21e98a['if'](_0x51b0('0x8'),_0x51b0('0x0'))],'role':_0x51b0('0x4'),'aria-pressed':_0x21e98a['to'](_0x51b0('0x8'),_0x2e6179=>_0x2e6179?_0x51b0('0xa'):_0x51b0('0x5'))},'children':[{'tag':_0x51b0('0x1'),'attributes':{'class':['ck',_0x51b0('0x3')]}}],'on':{'click':_0x21e98a['to'](_0x51b0('0x6'))}});}[_0x51b0('0x9')](){this[_0x51b0('0x8')]=!this[_0x51b0('0x8')];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4942=['createdAt','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','div','bind','uiLanguage','bindTemplate','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__subrevision','set','ck-revision-history-sidebar__revision-authors','_createdAtFormatted','span','deselect','isSelected','select'];(function(_0x57f8d4,_0x494284){const _0x3e5f4b=function(_0x40e65b){while(--_0x40e65b){_0x57f8d4['push'](_0x57f8d4['shift']());}};_0x3e5f4b(++_0x494284);}(_0x4942,0x1d5));const _0x3e5f=function(_0x57f8d4,_0x494284){_0x57f8d4=_0x57f8d4-0x0;let _0x3e5f4b=_0x4942[_0x57f8d4];return _0x3e5f4b;};import{View as _0x27ebc5}from'ckeditor5/src/ui';import _0xe0b67f from'./revisionauthorview';import{dateToPrettyFormat as _0x38be98}from'./utils';import'../../../theme/revision/subrevision.css';export default class ct extends _0x27ebc5{constructor(_0x515fc4,_0x3b0629,_0x1d8d94){super(_0x515fc4);const _0x159292=this[_0x3e5f('0x1')];this['id']=_0x3b0629['id'],this['bind'](_0x3e5f('0xb'))['to'](_0x3b0629),this[_0x3e5f('0x4')](_0x3e5f('0x9'),!0x1),this['bind'](_0x3e5f('0x6'))['to'](this,_0x3e5f('0xb'),_0x4b59b5=>_0x4b59b5?_0x38be98(_0x515fc4[_0x3e5f('0x0')],_0x4b59b5):null),this['_parentRevisionId']=_0x1d8d94,this['setTemplate']({'tag':_0x3e5f('0xe'),'attributes':{'class':['ck','ck-reset',_0x3e5f('0xc'),_0x3e5f('0x3'),_0x159292['if'](_0x3e5f('0x9'),_0x3e5f('0x2'))]},'children':[{'tag':_0x3e5f('0x7'),'attributes':{'class':['ck',_0x3e5f('0xd')]},'children':[{'text':_0x159292['to'](_0x3e5f('0x6'))}]},{'tag':'ul','attributes':{'class':['ck',_0x3e5f('0x5')]},'children':[new _0xe0b67f(_0x515fc4,_0x3b0629['author'],!0x0)]}],'on':{'click':_0x159292['to'](this[_0x3e5f('0xa')][_0x3e5f('0xf')](this))}});}[_0x3e5f('0xa')](){this['isSelected']=!0x0,this['fire'](_0x3e5f('0xa'),{'parentId':this['_parentRevisionId']});}[_0x3e5f('0x8')](){this[_0x3e5f('0x9')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4112=['long','toLocaleTimeString','numeric','toLocaleDateString'];(function(_0x4ccd01,_0x411217){var _0x565dd8=function(_0x11a469){while(--_0x11a469){_0x4ccd01['push'](_0x4ccd01['shift']());}};_0x565dd8(++_0x411217);}(_0x4112,0x1a6));var _0x565d=function(_0x4ccd01,_0x411217){_0x4ccd01=_0x4ccd01-0x0;var _0x565dd8=_0x4112[_0x4ccd01];return _0x565dd8;};export function dateToPrettyFormat(_0x46df6d,_0x20823b){return _0x20823b[_0x565d('0x1')](_0x46df6d,{'month':_0x565d('0x2'),'day':_0x565d('0x0')})+',\x20'+_0x20823b[_0x565d('0x3')](_0x46df6d,{'hour':_0x565d('0x0'),'minute':_0x565d('0x0')});}
|