@ckeditor/ckeditor5-revision-history 44.0.0-alpha.3 → 44.0.0-alpha.5

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/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x585a54,uid as _0x39e673,Collection as _0xe94121,logWarning as _0x38e91a,FocusTracker as _0x14bb7d,KeystrokeHandler as _0x111389,scrollViewportToShowTarget as _0x596890,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x4264c4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4c4f16,set as _0xee9c7,unset as _0x54bfea,isEqual as _0x3cdcfc}from'lodash-es';import{Plugin as _0x749fac,PendingActions as _0x3ed924,icons as _0x363a49,Command as _0x4504ec,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x262ae6,getMarkerDomElement as _0x31c5eb,ConfirmMixin as _0x5ad316,sanitizeEditorConfig as _0x35e906}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x51b7f4,ViewText as _0x56c270,ViewElement as _0x34cc4b,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x173824,ViewAttributeElement as _0xf7b691,ViewEmptyElement as _0x20d1bc,ViewRawElement as _0x121912,ViewUIElement as _0x4cde5d,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x2ff6e1,injectCssTransitionDisabler as ts,submitHandler as _0x53b023,LabeledFieldView as at,createLabeledInputText as _0x3ca5a4,createDropdown as _0x5c649b,ListView as te,ListItemView as _0x4bd843,ButtonView as _0x8c1ed8,MenuBarMenuView as _0x3c3b2d,MenuBarMenuListView as _0x6aef71,MenuBarMenuListItemView as _0xc81641,MenuBarMenuListItemButtonView as _0x1f9553,ContextualBalloon as _0x31879f,ToolbarSeparatorView as _0x453ecf,IconView as _0x5a27dd,addListToDropdown as _0x35ca2e,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1222bf}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x585a54(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1f71ed){super(),this['id']=_0x1f71ed['id']||_0x39e673(),this['creator']=_0x1f71ed['creator']||null,this['authors']=_0x1f71ed['authors']||[],this['diffData']=_0x1f71ed['diffData']||null,this['toVersion']=_0x1f71ed['toVersion']||0x0,this['fromVersion']=_0x1f71ed['fromVersion']||0x0,this['set']('name',_0x1f71ed['name']||''),this['set']('createdAt',_0x1f71ed['createdAt']||new Date()),this['set']('attributes',_0x1f71ed['attributes']||{});}['setName'](_0x35a9c2){this['_update']({'name':_0x35a9c2});}['setAttribute'](_0x220eb2,_0x29a529){const _0x3e6d0e=_0x4c4f16(this['attributes']);_0xee9c7(_0x3e6d0e,_0x220eb2,_0x29a529),this['_update']({'attributes':_0x3e6d0e});}['removeAttribute'](_0x261fc6){const _0x8ec7b0=_0x4c4f16(this['attributes']);_0x54bfea(_0x8ec7b0,_0x261fc6),this['_update']({'attributes':_0x8ec7b0});}['_update'](_0x3416c4,_0x88b32=!0x1){let _0x368136=!0x1;const _0x3ee6a1={'id':this['id']},_0x1a7104=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x450199 of _0x1a7104){const _0x37651e=_0x3416c4[_0x450199];void 0x0!==_0x37651e&&_0x37651e!==this[_0x450199]&&(this[_0x450199]=_0x37651e,_0x3ee6a1[_0x450199]=_0x37651e,_0x368136=!0x0);}_0x368136&&(_0x3ee6a1['authors']&&(_0x3ee6a1['authorsIds']=_0x3ee6a1['authors']['map'](_0x1e7a43=>_0x1e7a43['id']),delete _0x3ee6a1['authors']),this['fire']('_update',_0x3ee6a1,_0x88b32));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x25eea0=>_0x25eea0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x749fac{['_revisions'];static get['requires'](){return[_0x262ae6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x446181){super(_0x446181),this['_revisions']=new _0xe94121();}['afterInit'](){!async function(_0x2450d4){const _0x259ae0=_0x73a868([0x4c,0x72,0x6d,0x6b,0x5a,0x71,0x70,0x78,0x69,0x6e,0x41,0x51,0x4e,0x47,0x76,0x42,0x64,0x74,0x66,0x77,0x79,0x32,0x58,0x7a,0x36,0x44,0x59,0x67,0x52,0x53,0x46,0x6f,0x62,0x45,0x6c,0x48,0x61,0x55,0x73,0x33,0x31,0x56,0x4a,0x68,0x65,0x4b,0x30,0x6a,0x34,0x4d,0x39,0x75,0x54,0x50,0x38,0x57,0x4f,0x37,0x43,0x35,0x63,0x49]),_0x4540e6=0xeb829,_0x49ae50=0x383fb105,_0x70a852=0x3838e6b5^_0x49ae50,_0x1992b6=window[_0x73a868([0x44,0x61,0x74,0x65])][_0x73a868([0x6e,0x6f,0x77])](),_0x5e31f2=_0x2450d4[_0x73a868([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x117325=new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x225516=>{_0x5e31f2[_0x73a868([0x6f,0x6e,0x63,0x65])](_0x73a868([0x72,0x65,0x61,0x64,0x79]),_0x225516);}),_0xeacedd={[_0x73a868([0x6b,0x74,0x79])]:_0x73a868([0x45,0x43]),[_0x73a868([0x75,0x73,0x65])]:_0x73a868([0x73,0x69,0x67]),[_0x73a868([0x63,0x72,0x76])]:_0x73a868([0x50,0x2d,0x32,0x35,0x36]),[_0x73a868([0x78])]:_0x73a868([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x73a868([0x79])]:_0x73a868([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x73a868([0x61,0x6c,0x67])]:_0x73a868([0x45,0x53,0x32,0x35,0x36])},_0x34868c=_0x5e31f2[_0x73a868([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x73a868([0x67,0x65,0x74])](_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x345632(){let _0x578277,_0x11b580=null,_0x292fde=null;try{if(_0x34868c==_0x73a868([0x47,0x50,0x4c]))return _0x73a868([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x578277=_0x57e80d(),!_0x578277)return _0x73a868([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x578277[_0x73a868([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x292fde=_0x4629ae(_0x578277[_0x73a868([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x578277[_0x73a868([0x6a,0x74,0x69])])),await _0x4411e8()?_0xb17ea6()?_0x3a13e2()?_0x73a868([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1785ce()?(_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x73a868([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11b580=_0x8f7cd0(_0x73a868([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x73a868([0x74,0x72,0x69,0x61,0x6c])&&(_0x11b580=_0x8f7cd0(_0x73a868([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x73a868([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x11b580=_0x8f7cd0(_0x73a868([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25aa32()):_0x73a868([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x73a868([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x73a868([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ea79a){return _0x73a868([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a13e2(){const _0x278e62=[_0x73a868([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x73a868([0x74,0x72,0x69,0x61,0x6c])][_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1992b6/0x3e8:0xe10*_0x70a852;return _0x578277[_0x73a868([0x65,0x78,0x70])]<_0x278e62;}function _0xb17ea6(){const _0x1b8f01=_0x578277[_0x73a868([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b8f01&&(!!_0x1b8f01[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73a868([0x2a]))||(!!_0x1b8f01[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73a868([0x52,0x48]))||!(!_0x1b8f01[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73a868([0x52,0x52,0x48]))||!_0x5f4b9e())));}function _0x1785ce(){const _0x1b4d1b=_0x578277[_0x73a868([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b4d1b||0x0==_0x1b4d1b[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29682a}=new URL(window[_0x73a868([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b4d1b[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29682a))return!0x0;const _0x2b18b0=_0x29682a[_0x73a868([0x73,0x70,0x6c,0x69,0x74])](_0x73a868([0x2e]));return _0x1b4d1b[_0x73a868([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x465449=>_0x465449[_0x73a868([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73a868([0x2a])))[_0x73a868([0x6d,0x61,0x70])](_0x2f759d=>_0x2f759d[_0x73a868([0x73,0x70,0x6c,0x69,0x74])](_0x73a868([0x2e])))[_0x73a868([0x73,0x6f,0x6d,0x65])](_0x548204=>_0x2b18b0[_0x73a868([0x65,0x76,0x65,0x72,0x79])]((_0x1a7a15,_0x4e113f)=>_0x548204[_0x4e113f]===_0x1a7a15||_0x548204[_0x4e113f]===_0x73a868([0x2a])));}function _0x25aa32(){return _0x11b580&&_0x292fde?new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x489fd6,_0xbf40fb)=>{_0x11b580[_0x73a868([0x74,0x68,0x65,0x6e])](_0x489fd6,_0xbf40fb),_0x292fde[_0x73a868([0x74,0x68,0x65,0x6e])](_0x560bfc=>{_0x560bfc!=_0x73a868([0x56,0x61,0x6c,0x69,0x64])&&_0x489fd6(_0x560bfc);},_0xbf40fb);}):_0x11b580||_0x292fde||_0x73a868([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4629ae(_0xd2a5a3,_0x1dd3bf){return new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3657c1=>{if(_0x226f57())return _0x3657c1(_0x73a868([0x56,0x61,0x6c,0x69,0x64]));_0x168cc7(),_0x5e31f2[_0x73a868([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x73a868([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2370eb=!0x1;const _0x303713=_0x39e673();function _0x56a14a(_0x4e6bf6){return!!_0x4e6bf6&&(typeof _0x4e6bf6===_0x73a868([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e6bf6===_0x73a868([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e6bf6[_0x73a868([0x74,0x68,0x65,0x6e])]===_0x73a868([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e6bf6[_0x73a868([0x63,0x61,0x74,0x63,0x68])]===_0x73a868([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b406a(_0x4823ec){_0x402dbc(_0x4823ec)[_0x73a868([0x74,0x68,0x65,0x6e])](_0x2f0357=>{if(!_0x2f0357||_0x2f0357[_0x73a868([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x73a868([0x6f,0x6b]))return _0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d1996(_0x2e869d(_0x303713+_0x1dd3bf))!=_0x2f0357[_0x73a868([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x73a868([0x56,0x61,0x6c,0x69,0x64]);})[_0x73a868([0x74,0x68,0x65,0x6e])](_0x5a5552=>(_0x4c2c14(),_0x5a5552),()=>{const _0x44c926=_0x4213a1();return null==_0x44c926?(_0x4c2c14(),_0x73a868([0x56,0x61,0x6c,0x69,0x64])):_0x73a868(_0x1992b6-_0x44c926>(0x1c333505^_0x49ae50)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x73a868([0x74,0x68,0x65,0x6e])](_0x3657c1)[_0x73a868([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3657c1(_0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x207b88=0x38095f85^_0x49ae50;function _0x4c2c14(){const _0x547a41=_0x73a868([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1996(_0x2e869d(_0xd2a5a3)),_0x268d2d=_0x105385(_0x3d1996(window[_0x73a868([0x4d,0x61,0x74,0x68])][_0x73a868([0x63,0x65,0x69,0x6c])](_0x1992b6/_0x207b88)));window[_0x73a868([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x73a868([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x547a41,_0x268d2d);}function _0x4213a1(){const _0x3e0d5f=_0x73a868([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1996(_0x2e869d(_0xd2a5a3)),_0x24161c=window[_0x73a868([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x73a868([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e0d5f);return _0x24161c?window[_0x73a868([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x105385(_0x24161c),0x10)*_0x207b88:null;}function _0x402dbc(_0x544cf0){return new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x279a6d,_0x5a44ee)=>{_0x544cf0[_0x73a868([0x74,0x68,0x65,0x6e])](_0x279a6d,_0x5a44ee),window[_0x73a868([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a44ee,0x383e65c5^_0x49ae50);});}}_0x5e31f2[_0x73a868([0x6f,0x6e])](_0x73a868([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x557e9b,_0x1d8592)=>{if(_0x1d8592[0x0]!=_0xd2a5a3)return _0x3657c1(_0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d8592[0x1]={..._0x1d8592[0x1],[_0x73a868([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x303713};},{[_0x73a868([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x73a868([0x68,0x69,0x67,0x68])}),_0x5e31f2[_0x73a868([0x6f,0x6e])](_0x73a868([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b2e16=>{_0x56a14a(_0x1b2e16[_0x73a868([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2370eb=!0x0,_0x1b406a(_0x1b2e16[_0x73a868([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x73a868([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x73a868([0x6c,0x6f,0x77])}),_0x117325[_0x73a868([0x74,0x68,0x65,0x6e])](()=>{_0x2370eb||_0x3657c1(_0x73a868([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x226f57(){return _0x5e31f2[_0x73a868([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x73a868([0x76,0x69,0x65,0x77])][_0x73a868([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x73a868([0x61,0x75,0x74,0x6f]);}function _0x168cc7(){_0x5e31f2[_0x73a868([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x73a868([0x76,0x69,0x65,0x77])][_0x73a868([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x73a868([0x61,0x75,0x74,0x6f]);}}function _0x8f7cd0(_0x36dda5){const _0x4c1cbf=[new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12b4a1=>setTimeout(_0x12b4a1,0x38368fc9^_0x49ae50)),_0x117325[_0x73a868([0x74,0x68,0x65,0x6e])](()=>new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499b34=>{const _0xb80327=0x383fb102^_0x49ae50,_0x26516c=_0x2450d4[_0x73a868([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x35eefc(){_0x26516c[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xb80327&&_0x499b34();}_0x35eefc(),_0x26516c[_0x73a868([0x6f,0x6e])](_0x73a868([0x61,0x64,0x64]),_0x35eefc);})),new window[(_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13e2d3=>{function _0x2dde75(){for(const _0x51770f in window)if(window[_0x73a868([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x73a868([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x51770f))&&window[_0x51770f]==_0x4540e6)return _0x13e2d3();_0x5e31f2[_0x73a868([0x73,0x74,0x61,0x74,0x65])]!=_0x73a868([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x73a868([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2dde75,0x383fa28d^_0x49ae50);}_0x17bc93(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2dde75();})];return window[_0x73a868([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x73a868([0x72,0x61,0x63,0x65])](_0x4c1cbf)[_0x73a868([0x74,0x68,0x65,0x6e])](()=>_0x36dda5);}async function _0x1a48e0(){if(await _0x117325,_0x17bc93(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x334cb3=_0x2450d4[_0x73a868([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x127f4d=_0x2450d4[_0x73a868([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x334cb3[_0x73a868([0x69,0x64])]),_0x223395=_0x2b1cbb(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x223395[_0x73a868([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x334cb3['id'],_0x127f4d?_0x127f4d['id']:null,!0x0),_0x223395[_0x73a868([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x73a868([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x223395[_0x73a868([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x223395[_0x73a868([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x59b193,void(_0x223395[_0x73a868([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x59b193);}if(_0x17bc93(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x150856=_0x2b1cbb(_0x73a868([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x150856[_0x73a868([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x73a868([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x150856[_0x73a868([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x150856[_0x73a868([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x59b193,_0x150856[_0x73a868([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x59b193;}_0x5e31f2[_0x73a868([0x6d,0x6f,0x64,0x65,0x6c])][_0x73a868([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59b193,_0x5e31f2[_0x73a868([0x6d,0x6f,0x64,0x65,0x6c])][_0x73a868([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59b193,_0x5e31f2[_0x73a868([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x73a868([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f4b9e(){return _0x17bc93(_0x73a868([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b1cbb(_0x73a868([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x73a868([0x73,0x74,0x61,0x74,0x65])]==_0x73a868([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x42340d(_0x42e9c0){const _0x4d7f18=_0x3e4b3d();_0x5e31f2[_0x4d7f18]=_0x73a868([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42e9c0,_0x42e9c0[_0x73a868([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x73a868([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3e4b3d()]=_0x4540e6),_0x42e9c0!=_0x73a868([0x56,0x61,0x6c,0x69,0x64])&&_0x1a48e0();}function _0x3e4b3d(){const _0x437dd4=window[_0x73a868([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x73a868([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x73a868([0x6e,0x6f,0x77])]())[_0x73a868([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x73a868([0x2e]),'');let _0x2db33a=_0x73a868([0x4c]);for(let _0x3fbdba=0x0;_0x3fbdba<_0x437dd4[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fbdba+=0x2){let _0x19ad1d=window[_0x73a868([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x437dd4[_0x73a868([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fbdba,_0x3fbdba+0x2));_0x19ad1d>=_0x259ae0[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19ad1d-=_0x259ae0[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2db33a+=_0x259ae0[_0x19ad1d];}return _0x2db33a;}function _0x57e80d(){const _0x39e46d=_0x34868c[_0x73a868([0x73,0x70,0x6c,0x69,0x74])](_0x73a868([0x2e]));if(0x3!=_0x39e46d[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x17e9bc(_0x39e46d[0x1]);function _0x17e9bc(_0x48ce5c){const _0x1e0c65=_0x22faff(_0x48ce5c);return _0x1e0c65&&_0x396261()?_0x1e0c65:null;function _0x396261(){const _0x206d55=_0x1e0c65[_0x73a868([0x6a,0x74,0x69])],_0xea460=window[_0x73a868([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x206d55[_0x73a868([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x206d55[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c18ea={..._0x1e0c65,[_0x73a868([0x6a,0x74,0x69])]:_0x206d55[_0x73a868([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x206d55[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c18ea[_0x73a868([0x76,0x63])],_0x2e869d(_0x4c18ea)==_0xea460;}}}async function _0x4411e8(){let _0x5b934c=!0x0;try{const _0x29370b=_0x34868c[_0x73a868([0x73,0x70,0x6c,0x69,0x74])](_0x73a868([0x2e])),[_0x222143,_0x30f667,_0x570b89]=_0x29370b;return _0x2d99dc(_0x222143),await _0x5a4110(_0x222143,_0x30f667,_0x570b89),_0x5b934c;}catch(_0x14fd26){return!0x1;}function _0x2d99dc(_0x41268b){const _0x22a9cf=_0x22faff(_0x41268b);_0x22a9cf&&_0x22a9cf[_0x73a868([0x61,0x6c,0x67])]==_0x73a868([0x45,0x53,0x32,0x35,0x36])||(_0x5b934c=!0x1);}async function _0x5a4110(_0x188d94,_0x3f827c,_0x404d81){const _0x654df5=window[_0x73a868([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x73a868([0x66,0x72,0x6f,0x6d])](_0xdcbc93(_0x404d81),_0x5d72db=>_0x5d72db[_0x73a868([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c6711=new window[(_0x73a868([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x73a868([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x188d94+_0x73a868([0x2e])+_0x3f827c),_0x305ee6=window[_0x73a868([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x73a868([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x305ee6)return;const _0x366168=await _0x305ee6[_0x73a868([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x73a868([0x6a,0x77,0x6b]),_0xeacedd,{[_0x73a868([0x6e,0x61,0x6d,0x65])]:_0x73a868([0x45,0x43,0x44,0x53,0x41]),[_0x73a868([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x73a868([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x73a868([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x305ee6[_0x73a868([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x73a868([0x6e,0x61,0x6d,0x65])]:_0x73a868([0x45,0x43,0x44,0x53,0x41]),[_0x73a868([0x68,0x61,0x73,0x68])]:{[_0x73a868([0x6e,0x61,0x6d,0x65])]:_0x73a868([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x366168,_0x654df5,_0x1c6711)||(_0x5b934c=!0x1);}}function _0x22faff(_0x14a576){return _0x14a576[_0x73a868([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x73a868([0x65,0x79]))?JSON[_0x73a868([0x70,0x61,0x72,0x73,0x65])](_0xdcbc93(_0x14a576)):null;}function _0xdcbc93(_0x30ff70){return window[_0x73a868([0x61,0x74,0x6f,0x62])](_0x30ff70[_0x73a868([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x73a868([0x2b]))[_0x73a868([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x73a868([0x2f])));}function _0x2e869d(_0x56c427){let _0x10eaf3=0x1505;function _0x386c04(_0x867b4){for(let _0x4677be=0x0;_0x4677be<_0x867b4[_0x73a868([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4677be++){const _0x5a0106=_0x867b4[_0x73a868([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4677be);_0x10eaf3=(_0x10eaf3<<0x5)+_0x10eaf3+_0x5a0106,_0x10eaf3&=_0x10eaf3;}}function _0x2ae523(_0x58c45d){Array[_0x73a868([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58c45d)?_0x58c45d[_0x73a868([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ae523):_0x58c45d&&typeof _0x58c45d==_0x73a868([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x73a868([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58c45d)[_0x73a868([0x73,0x6f,0x72,0x74])]()[_0x73a868([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45a0f5,_0x5026e0])=>{_0x386c04(_0x45a0f5),_0x2ae523(_0x5026e0);}):_0x386c04(window[_0x73a868([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58c45d));}return _0x2ae523(_0x56c427),_0x10eaf3>>>0x0;}function _0x3d1996(_0x8101ae){return _0x8101ae[_0x73a868([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x73a868([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x73a868([0x30]));}function _0x105385(_0x1d144c){return _0x1d144c[_0x73a868([0x73,0x70,0x6c,0x69,0x74])]('')[_0x73a868([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x73a868([0x6a,0x6f,0x69,0x6e])]('');}function _0x17bc93(_0x4a0a30){return _0x5e31f2[_0x73a868([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x73a868([0x68,0x61,0x73])](_0x4a0a30);}function _0x2b1cbb(_0x5d9cab){return _0x5e31f2[_0x73a868([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x73a868([0x67,0x65,0x74])](_0x5d9cab);}function _0x59b193(){}function _0x73a868(_0x1c4bbe){return _0x1c4bbe['map'](_0x276c7b=>String['fromCharCode'](_0x276c7b))['join']('');}_0x42340d(await _0x345632());}(this);}['createRevision'](_0x1f24a6){const _0x5c3640=this['editor']['plugins']['get']('Users');return new a({'id':_0x1f24a6['id'],'name':_0x1f24a6['name'],'creator':_0x1f24a6['creatorId']?_0x5c3640['getUser'](_0x1f24a6['creatorId']):null,'diffData':_0x1f24a6['diffData']||_0x1f24a6['data'],'authors':_0x1f24a6['authorsIds']['map'](_0x39f923=>_0x5c3640['getUser'](_0x39f923)),'createdAt':new Date(_0x1f24a6['createdAt']),'attributes':_0x1f24a6['attributes'],'fromVersion':_0x1f24a6['fromVersion'],'toVersion':_0x1f24a6['toVersion']});}['addRevision'](_0x185752,_0x26f32e=0x0){this['_revisions']['add'](_0x185752,_0x26f32e);}['getRevision'](_0x1e9f93){return this['_revisions']['get'](_0x1e9f93);}['getRevisions'](_0x8dd8d7={'toJSON':!0x1}){const _0x474f9a=Array['from'](this['_revisions']);return _0x474f9a['reverse'](),_0x8dd8d7['toJSON']?_0x474f9a['map'](_0x1cf35a=>_0x1cf35a['toJSON']()):_0x474f9a;}['getIndex'](_0x461143){return this['_revisions']['getIndex'](_0x461143);}['getEarlierVisibleRevision'](_0x142c2b){const [,_0x164f43]=this['getRevisionsIterator'](_0x142c2b,{'direction':'earlier'});return _0x164f43;}['getLaterVisibleRevision'](_0x395e16){const [,_0x3c2a6d]=this['getRevisionsIterator'](_0x395e16,{'direction':'later'});return _0x3c2a6d;}['getRevisionsInDiff'](_0x21698d){const _0x47c0cd=[];for(const _0x48a026 of this['getRevisionsIterator'](_0x21698d['newRevisionId']))if(_0x47c0cd['push'](_0x48a026),_0x48a026['id']===_0x21698d['oldRevisionId'])break;return _0x47c0cd;}*['getRevisionsIterator'](_0x365c96,{direction:_0x2276f5='earlier',filter:_0x579c19=()=>!0x0}={}){const _0x32f208='earlier'===_0x2276f5?0x1:-0x1;let _0x3c13ea=this['_revisions']['get'](_0x365c96),_0x19eb0d=this['getIndex'](_0x3c13ea);for(yield _0x3c13ea;_0x3c13ea;){if(_0x19eb0d+=_0x32f208,_0x3c13ea=this['getRevision'](_0x19eb0d),!_0x3c13ea)return;_0x579c19(_0x3c13ea)&&(yield _0x3c13ea);}}}function R(_0x42e732,_0x6c6135,_0x56fbe5){const t=_0x42e732['t'];switch(_0x6c6135){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x56fbe5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x56fbe5);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x173824,'a':_0xf7b691,'e':_0x20d1bc,'r':_0x121912,'u':_0x4cde5d};class l extends _0x749fac{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x262ae6,j,_0x3ed924];}constructor(_0x9fe56f){super(_0x9fe56f),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x99fa74=_0x39e673();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x99fa74},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x10f677=this['repository']['getRevision'](0x0),_0x46f1c9=_0x10f677&&null===_0x10f677['creator']?_0x10f677:null;if(this['_continueCurrentRevision']=!!_0x46f1c9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1964e0=this['_source']['getCurrentRevisionId'](),_0xf97bd0=this['repository']['getRevision'](_0x1964e0);if(_0xf97bd0)this['_startingVersion']=_0xf97bd0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4ce3be=this['_source']['history']['_operations']['find'](_0x4e889e=>!_0x4e889e['_isInit']),_0x596653=_0x4ce3be?_0x4ce3be['baseVersion']:this['_source']['history']['version'];_0x10f677?(_0x10f677['toVersion']<_0x596653&&_0x10f677['_update']({'toVersion':_0x596653}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46f1c9['id'],this['_startingVersion']=_0x46f1c9['fromVersion']):(this['_startingVersion']=_0x10f677['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x596653,this['_continueCurrentRevision']=!0x1);}}else _0x46f1c9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46f1c9['toVersion'],this['editor']['model']['document']['history']['version']),_0x46f1c9['fromVersion']===_0x46f1c9['toVersion']?(0x0!==_0x46f1c9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46f1c9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46f1c9['id'],this['_startingVersion']=_0x46f1c9['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x1d5a44=>!_0x1d5a44),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x498876=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x52854a;for(const _0x4a7fa0 in _0x498876){const _0x16c61e=_0x4a7fa0,_0x5119ea=_0x498876[_0x16c61e];if('revisionHistoryLicenseKeyValid'==_0x5119ea||'revisionHistoryLicenseKeyInvalid'==_0x5119ea||'revisionHistoryLicenseKeyExpired'==_0x5119ea||'revisionHistoryLicenseKeyDomainLimit'==_0x5119ea||'revisionHistoryLicenseKeyNotAllowed'==_0x5119ea||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5119ea||'revisionHistoryLicenseKeyTrialLimit'==_0x5119ea||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5119ea||'revisionHistoryLicenseKeyUsageLimit'==_0x5119ea){delete _0x498876[_0x16c61e],_0x52854a=_0x5119ea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x52854a&&_0x498876['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x52854a&&_0x498876['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x52854a&&_0x498876['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x52854a&&_0x498876['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x52854a&&_0x498876['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x52854a&&_0x498876['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x52854a&&_0x498876['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x52854a&&_0x498876['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2cb741=this['repository']['getRevision'](0x0),_0x3523f2=await this['getRevisionDocumentData'](_0x2cb741),_0x13a010=await this['getRevisionRootsAttributes'](_0x2cb741);this['_replaceEditorDataWithRevisionData'](_0x3523f2,_0x13a010);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xc6fb69){this['_source']=_0xc6fb69;}async['update'](){const _0x2055f7=await this['_source']['getLatestVersion']();if(_0x2055f7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x231f20=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2055f7});_0x231f20['authors']=_0x231f20['authorsIds']['map'](_0x43d2cf=>this['editor']['plugins']['get']('Users')['getUser'](_0x43d2cf)),this['currentRevision']['_update'](_0x231f20);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x28a975={},_0x9fc488=null){const _0xda5c5e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x9fc488>this['currentRevision']['toVersion']&&(_0x9fc488=null),null===_0x9fc488&&(_0x9fc488=await this['_source']['getLatestVersion']());const _0x1003d6=this['_getFromVersion'](_0x9fc488),_0x2b29c5=this['buildRevisionData']({'from':_0x1003d6,'to':_0x9fc488});if(this['currentRevision']['toVersion']<_0x9fc488){const _0x3aa554=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x9fc488,'to':_0x9fc488});_0x3aa554['authors']=[],_0x3aa554['authorsIds']=[],_0x3aa554['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3aa554,!0x0),delete _0x3aa554['authors'],_0xda5c5e['push'](_0x3aa554);}_0x28a975['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x28a975['name']=_0x28a975['name']||null,_0x28a975['id']=_0x28a975['id']||_0x39e673(),_0x28a975={..._0x28a975,..._0x2b29c5};const _0x53b2ff=this['addRevisionData'](_0x28a975);_0xda5c5e['push'](_0x28a975);const _0x1d38fb=this['repository']['getIndex'](_0x53b2ff);if(0x0!==_0x1d38fb){const _0x43fcc0=this['repository']['getRevision'](_0x1d38fb-0x1);if(_0x43fcc0['fromVersion']!==_0x9fc488){const _0x340a43=this['_revisionDataBuilder']['getData'](_0x9fc488,_0x43fcc0['toVersion']),_0x488ef1={'id':_0x43fcc0['id'],'diffData':_0x340a43['diffData'],'authorsIds':_0x340a43['authorsIds'],'authors':_0x340a43['authorsIds']['map'](_0x5ece4c=>this['editor']['plugins']['get']('Users')['getUser'](_0x5ece4c)),'fromVersion':_0x9fc488};_0x43fcc0===this['currentRevision']&&(_0x488ef1['createdAt']=new Date(_0x28a975['createdAt']['getTime']()+0xa)),_0x43fcc0['_update'](_0x488ef1,!0x0),delete _0x488ef1['authors'],_0xda5c5e['push'](_0x488ef1);}}if(this['adapter']){for(const _0x14f132 of _0xda5c5e)this['_bufferUpdate'](_0x14f132['id'],_0x14f132,!0x0);this['sendBufferedUpdates']();}return _0x53b2ff;}['addRevisionData'](_0x5dfa8d){const _0x3ab3ee=this['repository']['createRevision'](_0x5dfa8d);return this['adapter']&&_0x3ab3ee['on']('_update',(_0xa3d909,_0x51b7c0,_0x4f7cc6)=>{_0x4f7cc6||(this['_bufferUpdate'](_0x51b7c0['id'],_0x51b7c0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3ab3ee,this['_findInsertionIndex'](_0x3ab3ee)),_0x3ab3ee;}async['getRevisionDocumentData'](_0x4e72af){await this['_loadRevisionData'](_0x4e72af);const _0x23ee3f={};for(const _0x5ba6ea in _0x4e72af['diffData']){if(_0x4e72af['diffData'][_0x5ba6ea]['attachChange']&&!_0x4e72af['diffData'][_0x5ba6ea]['attachChange']['isAttached'])continue;const _0x263b1d=this['_removeRevisionMarkers'](JSON['parse'](_0x4e72af['diffData'][_0x5ba6ea]['insertions'])),_0x16448b=this['editor']['editing']['view']['document'],_0x5395c0=new _0x51b7f4(_0x16448b,_0x263b1d['map'](_0x2449bb=>V(_0x2449bb,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x23ee3f[_0x5ba6ea]=this['editor']['data']['processor']['toData'](_0x5395c0),this['editor']['data']['processor']['useFillerType']('default');}return _0x23ee3f;}async['getRevisionRootsAttributes'](_0x4595c1){await this['_loadRevisionData'](_0x4595c1);const _0x2a6ac7={};for(const _0x35030d in _0x4595c1['diffData'])_0x4595c1['diffData'][_0x35030d]['attachChange']&&!_0x4595c1['diffData'][_0x35030d]['attachChange']['isAttached']||(_0x2a6ac7[_0x35030d]=_0x4595c1['diffData'][_0x35030d]['attributesAfter']||{});return _0x2a6ac7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x41bcff=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x58326f=0x0;_0x58326f<_0x41bcff['length'];_0x58326f++){const _0x162a3d=_0x41bcff[_0x58326f];let _0x56efeb=!0x1;for(const _0x2f2b56 of Object['keys'](_0x162a3d))void 0x0===_0x162a3d[_0x2f2b56]?delete _0x162a3d[_0x2f2b56]:'id'!==_0x2f2b56&&(_0x56efeb=!0x0);_0x56efeb||(_0x41bcff[_0x58326f]=null);}if(_0x41bcff=_0x41bcff['filter'](_0x18d1dc=>null!==_0x18d1dc),!_0x41bcff['length'])return;for(let _0x1c6471=0x0;_0x1c6471<_0x41bcff['length'];_0x1c6471++){const _0x2ce380=_0x41bcff[_0x1c6471];void 0x0!==_0x2ce380['fromVersion']&&void 0x0===_0x2ce380['toVersion']&&(_0x2ce380['toVersion']=this['repository']['getRevision'](_0x2ce380['id'])['toVersion']),void 0x0!==_0x2ce380['toVersion']&&void 0x0===_0x2ce380['fromVersion']&&(_0x2ce380['fromVersion']=this['repository']['getRevision'](_0x2ce380['id'])['fromVersion']);}const _0x5e8ebd=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x41bcff,_0x5e8ebd)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x37028a=>{if(_0x37028a){for(const _0x135adb of _0x37028a)this['setRevisionData']({'id':_0x135adb['id'],'createdAt':_0x135adb['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4ac886,_0x31739e){let _0x61bbe1=this['editor']['config']['get']('initialData'),_0x5721af=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x61bbe1){_0x61bbe1={};for(const _0x40a0d0 of this['editor']['model']['document']['getRootNames']())_0x61bbe1[_0x40a0d0]='';}if('string'==typeof _0x61bbe1&&(_0x61bbe1={'main':_0x61bbe1}),void 0x0===_0x5721af){_0x5721af={};for(const _0x407934 of this['editor']['model']['document']['getRootNames']())_0x5721af[_0x407934]={};}let _0x2492aa=!0x1;const _0x235419=Object['keys'](_0x61bbe1),_0x4c44c5=Object['keys'](_0x4ac886);for(const _0x5c1fb2 of _0x235419){if(_0x61bbe1[_0x5c1fb2]!==_0x4ac886[_0x5c1fb2]&&''!==_0x61bbe1[_0x5c1fb2]['trim']()){_0x2492aa=!0x0;break;}if(!_0x3cdcfc(_0x5721af[_0x5c1fb2],_0x31739e[_0x5c1fb2])&&Object['keys'](_0x5721af[_0x5c1fb2])['length']>0x0){_0x2492aa=!0x0;break;}}_0x2492aa||(_0x2492aa=_0x4c44c5['some'](_0x4a49b0=>!this['editor']['model']['document']['getRoot'](_0x4a49b0))),_0x2492aa&&_0x38e91a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x61bbe1,'editorRootsAttributes':_0x5721af,'revisionData':_0x4ac886,'revisionRootsAttributes':_0x31739e}),this['editor']['config']['set']('initialData',_0x4ac886),this['editor']['config']['set']('rootsAttributes',_0x31739e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5d65c1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5d65c1['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5cf51f){const _0x472fb4=this['repository']['getRevisions']();_0x472fb4['reverse']();let _0x2e59b0=0x0;for(;_0x2e59b0<_0x472fb4['length'];){const _0x5ce091=_0x472fb4[_0x2e59b0];if(_0x5ce091===this['currentRevision']){_0x2e59b0++;continue;}if(_0x5ce091['id']===this['_initialRevisionId'])break;const _0x354c9d=_0x5cf51f['toVersion']-_0x5ce091['toVersion']||_0x5cf51f['fromVersion']-_0x5ce091['fromVersion'];if(_0x354c9d>0x0)break;if(_0x354c9d<0x0)_0x2e59b0++;else{if(!_0x5cf51f['creator']&&_0x5ce091['creator'])break;if(_0x5ce091['creator']||!_0x5cf51f['creator']){if(_0x5cf51f['createdAt']>_0x5ce091['createdAt'])break;_0x2e59b0++;}else _0x2e59b0++;}}return _0x2e59b0;}['setRevisionData'](_0x252909){const _0x328286=this['repository']['getRevision'](_0x252909['id']);if(_0x252909['createdAt']&&(_0x252909['createdAt']=new Date(_0x252909['createdAt'])),_0x252909['authorsIds']){const _0x46303a=this['editor']['plugins']['get']('Users');_0x252909['authors']=_0x252909['authorsIds']['map'](_0x4298a7=>_0x46303a['getUser'](_0x4298a7));}_0x328286['_update'](_0x252909,!0x0);}['buildRevisionData']({revision:_0xbe1be7=null,from:_0x479307=null,to:_0x57d178=null}){_0x479307=null!==_0x479307?_0x479307:_0xbe1be7['fromVersion'],_0x57d178=null!==_0x57d178?_0x57d178:_0xbe1be7['toVersion'];const _0x2370b6=this['_revisionDataBuilder']['getData'](_0x479307,_0x57d178),_0xbaacf0={'diffData':_0x2370b6['diffData'],'authorsIds':_0x2370b6['authorsIds'],'fromVersion':_0x479307,'toVersion':_0x57d178};if(!_0xbe1be7||_0x57d178!==_0xbe1be7['toVersion']){const _0x1f7ccd=_0x57d178-0x1,_0x422eaf=this['_source']['history']['getOperation'](_0x1f7ccd);_0xbaacf0['createdAt']=_0x422eaf&&_0x422eaf['createdAt']||new Date();}if(this['_loadedStateData']&&_0x479307===this['_loadedStateData']['fromVersion']){for(const _0x4d94b7 of this['_loadedStateData']['authors'])_0xbaacf0['authorsIds']['includes'](_0x4d94b7['id'])||_0xbaacf0['authorsIds']['push'](_0x4d94b7['id']);}return _0xbaacf0;}['_loadRevisionData'](_0x47cc15){if(!_0x47cc15||_0x47cc15['diffData'])return Promise['resolve']();{const _0x3e4ebb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3e4ebb,'revisionId':_0x47cc15['id']})['then'](_0x5b54cf=>{_0x47cc15['diffData']=_0x5b54cf['diffData'];});}}['_bufferUpdate'](_0x5f4120,_0x3b9318,_0x564028){if(this['_bufferedUpdates']['has'](_0x5f4120)){const _0x18baa8=this['_bufferedUpdates']['get'](_0x5f4120);_0x3b9318=_0x564028?{..._0x18baa8,..._0x3b9318}:{..._0x3b9318,..._0x18baa8};}this['_bufferedUpdates']['set'](_0x5f4120,_0x3b9318);}['_getFromVersion'](_0x254d13){const _0x4ce68a=this['repository']['getRevisions']();_0x4ce68a['reverse'](),_0x4ce68a['shift']();const _0x2123b1=_0x4ce68a['find'](_0x4c29bd=>_0x4c29bd['toVersion']<=_0x254d13)['toVersion'];return _0x2123b1<this['_startingVersion']?this['_startingVersion']:_0x2123b1;}['_createInitialRevision'](_0x390ae0){const _0x260722=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x260722)this['_initialRevisionId']=_0x260722['id'];else{const _0x3336e6=!this['editor']['model']['document']['roots']['find'](_0x1707c6=>this['editor']['model']['hasContent'](_0x1707c6)),_0x5b3953=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f304a=R(this['editor']['locale'],_0x3336e6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x390ae0,'to':_0x390ae0,'id':this['_initialRevisionId'],'name':_0x2f304a,'creatorId':_0x5b3953});}}['_createCurrentRevision'](_0xc21472){const _0x1bd049=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1bd049),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xc21472,'to':_0xc21472,'id':_0x1bd049,'name':'','creatorId':null}));}['_makeRevision']({name:_0x180a31,from:_0x29cfca,to:_0x428f04,creatorId:_0x3294b4,id:_0x5004e4}){const _0x4a5e8a=this['buildRevisionData']({'from':_0x29cfca,'to':_0x428f04});_0x4a5e8a['name']=_0x180a31,_0x4a5e8a['creatorId']=_0x3294b4,_0x4a5e8a['id']=_0x5004e4;const _0x2e41b4=this['addRevisionData'](_0x4a5e8a);return this['adapter']&&this['_bufferUpdate'](_0x4a5e8a['id'],_0x4a5e8a,!0x0),_0x2e41b4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3d07c2){return(_0x3d07c2=_0x3d07c2['filter'](_0x476604=>!_0x476604['name']||'revision-start'!==_0x476604['name']&&'revision-end'!==_0x476604['name']))['forEach'](_0x2d13ee=>{'string'!=typeof _0x2d13ee&&(_0x2d13ee['children']=this['_removeRevisionMarkers'](_0x2d13ee['children']),_0x2d13ee['attributes']=_0x2d13ee['attributes']['filter'](_0x5dbbd0=>!_0x5dbbd0[0x0]['startsWith']('data-revision-')));}),_0x3d07c2;}}function V(_0x596675,_0x5ae85f){const _0x15a07c=_0x5ae85f['editing']['view']['document'];if('string'==typeof _0x596675)return new _0x56c270(_0x15a07c,_0x596675);{const _0x3aa18b=_0x596675['children']['map'](_0x35ea6f=>V(_0x35ea6f,_0x5ae85f));return new(C[_0x596675['type']]||_0x34cc4b)(_0x15a07c,_0x596675['name'],_0x596675['attributes'],_0x3aa18b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x54531e){this['editor']=_0x54531e,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x1c9103){this['source']=_0x1c9103;const _0x3886e5=new Map(),_0x4180b5=new Map(),_0x4b1fa9=this['editor']['model']['document']['roots']['map'](_0x374e3f=>_0x374e3f['rootName']);for(const _0x35394e of _0x4b1fa9){const _0x21ca5f=this['editor']['model']['document']['getRoot'](_0x35394e),_0x424915=F(_0x21ca5f);_0x3886e5['set'](_0x35394e,_0x424915),_0x4180b5['set'](_0x35394e,Object['fromEntries'](_0x21ca5f['getAttributes']()));}const _0x14ea39=Array['from'](this['editor']['model']['markers'])['map'](_0x15b4aa=>[_0x15b4aa['name'],_0x15b4aa['getRange']()]),_0x4ed575=this['source']['version'];this['_saveMetaData'](_0x4ed575,_0x3886e5,_0x14ea39,_0x4180b5),this['_startingRevisionId']=this['_revisionId'];const _0x30aee3=new Map(),_0x1b370d=new Map();for(const _0x59db8e of _0x4b1fa9){const _0x40167d=B(_0x59db8e);_0x30aee3['set'](_0x59db8e,_0x40167d),_0x1b370d['set'](_0x59db8e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x30aee3,[],_0x1b370d);}['getData'](_0x39bc69,_0x5e4cc9){if(this['_lastFrom']===_0x39bc69&&this['_lastTo']<=_0x5e4cc9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5e4cc9,!0x0);else{if(!this['_savedMetaData']['has'](_0x39bc69)){const _0x4498e4=this['_getPreviousFrom'](_0x39bc69);this['_calculateMetaData'](_0x4498e4,_0x39bc69,!0x1);}this['_calculateMetaData'](_0x39bc69,_0x5e4cc9,!0x0);}return this['_lastFrom']=_0x39bc69,this['_lastTo']=_0x5e4cc9,this['_getState']();}['loadState'](_0x31251b){this['_reset'](),this['_lastFrom']=_0x31251b['fromVersion'],this['_lastTo']=_0x31251b['toVersion'];for(const _0x4320be in _0x31251b['diffData']){const _0x55935c=_0x31251b['diffData'][_0x4320be]['attachChange'],_0x59ba0d=_0x4c4f16(_0x31251b['diffData'][_0x4320be]['attributesBefore'])||{},_0x56e3d3=this['_makeModelFromViewString'](_0x31251b['diffData'][_0x4320be]['deletions']);_0x56e3d3['rootName']=_0x4320be,_0x56e3d3['_isAttached']=!_0x55935c||!_0x55935c['isAttached'],_0x56e3d3['isAttached']=()=>_0x56e3d3['_isAttached'],this['_baseRoots']['set'](_0x4320be,_0x56e3d3),this['_baseRootsAttributes']['set'](_0x4320be,_0x59ba0d),_0x55935c&&this['_touchedRoots']['set'](_0x4320be,_0x55935c);const _0x5e2e7d=this['_makeIdsRoot'](_0x56e3d3);this['_baseIdsRoots']['set'](_0x4320be,_0x5e2e7d);for(const [_0x5cacfe,_0x1f8ce3]of _0x56e3d3['markers']){if(!_0x5cacfe['startsWith']('revision:'))continue;const _0xaab21a=_0x5cacfe['split'](':')[0x2];for(const _0x2b6e6b of _0x1f8ce3['getWalker']({'singleCharacters':!0x0})){const _0x292459=this['_getVidAttributeName'](_0x2b6e6b),_0x484192='elementEnd'==_0x2b6e6b['type']?_0x2b6e6b['previousPosition']['path']['slice'](0x0,-0x1):_0x2b6e6b['previousPosition']['path'],_0x234cf2=_0x5e2e7d['getNodeByPath'](_0x484192)['getAttribute'](_0x292459);this['_touched']['set'](_0x234cf2,{'userId':_0xaab21a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x51da24=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4c2a41=>!this['_touched']['has'](_0x4c2a41));let _0x413983=0x0;const _0x4f02b2=new Map();for(const _0x1dbcb7 in _0x31251b['diffData']){const _0x52308d=_0x31251b['diffData'][_0x1dbcb7]['attachChange'],_0x3e6ddc=_0x4c4f16(_0x31251b['diffData'][_0x1dbcb7]['attributesAfter'])||{},_0x316a11=this['_makeModelFromViewString'](_0x31251b['diffData'][_0x1dbcb7]['insertions']);_0x316a11['rootName']=_0x1dbcb7,_0x316a11['_isAttached']=!_0x52308d||_0x52308d['isAttached'],_0x316a11['isAttached']=()=>_0x316a11['_isAttached'],this['_diffRoots']['set'](_0x1dbcb7,_0x316a11),this['_diffRootsAttributes']['set'](_0x1dbcb7,_0x3e6ddc);const _0x1a4f90=this['_makeIdsRoot'](_0x316a11,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1dbcb7,_0x1a4f90),_0x4f02b2['set'](_0x1dbcb7,_0x316a11['isAttached']()?_0x3e6ddc:{});for(const [_0x253f00,_0xcf99bc]of _0x316a11['markers']){if(!_0x253f00['startsWith']('revision:'))continue;const _0x358fe5=_0x253f00['split'](':')[0x2];for(const _0x2b283f of _0xcf99bc['getWalker']({'singleCharacters':!0x0})){const _0x5c1e66=this['_getVidAttributeName'](_0x2b283f),_0x2754d8=this['_revisionId']++,_0x4f312f='elementEnd'==_0x2b283f['type']?_0x2b283f['previousPosition']['path']['slice'](0x0,-0x1):_0x2b283f['previousPosition']['path'];_0x1a4f90['getNodeByPath'](_0x4f312f)['_setAttribute'](_0x5c1e66,_0x2754d8),this['_touched']['set'](_0x2754d8,{'userId':_0x358fe5});}}for(const _0x4cd91a of this['editor']['model']['createRangeIn'](_0x316a11)['getWalker']({'singleCharacters':!0x0})){const _0xfa5efe=this['_getVidAttributeName'](_0x4cd91a),_0x28d88d='elementEnd'==_0x4cd91a['type']?_0x4cd91a['previousPosition']['path']['slice'](0x0,-0x1):_0x4cd91a['previousPosition']['path'],_0x559d31=_0x1a4f90['getNodeByPath'](_0x28d88d);_0x559d31['getAttribute'](_0xfa5efe)>0x0||_0x559d31['_setAttribute'](_0xfa5efe,_0x51da24[_0x413983++]);}for(const [_0x10d1ca,_0x23692b]of _0x316a11['markers'])_0x10d1ca['startsWith']('revision:')||this['_markers']['set'](_0x10d1ca,_0x23692b);}const _0x4c7608=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4c7608),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c7608,0x1));const _0x5df958=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5df958),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5df958,0x1));const _0x308496=Array['from'](this['_diffRoots'])['map'](([_0x12afbd,_0x1d2c8e])=>[_0x12afbd,F(_0x1d2c8e)]);this['_saveMetaData'](this['_lastTo'],_0x308496,this['_markers'],_0x4f02b2);}['_makeModelFromViewString'](_0x45c2d0){const _0x39107e=JSON['parse'](_0x45c2d0),_0x1a7a63=this['editor']['editing']['view']['document'],_0x52afa5=new _0x51b7f4(_0x1a7a63,_0x39107e['map'](_0xde7292=>V(_0xde7292,this['editor'])));return this['editor']['data']['toModel'](_0x52afa5);}['_saveMetaData'](_0x31bc43,_0x5bd1a3,_0x10f5d1,_0x364fb5){const _0x2b5c42=new Map(_0x5bd1a3),_0x767506=new Map(_0x4c4f16(_0x364fb5)),_0xbde4dc=new Map();for(const [_0x3b77f0,_0x2a3a4f]of _0x10f5d1)_0xbde4dc['set'](_0x3b77f0,{'start':_0x2a3a4f['start']['clone'](),'end':_0x2a3a4f['end']['clone'](),'rootName':_0x2a3a4f['root']['rootName']});this['_savedMetaData']['set'](_0x31bc43,{'roots':_0x2b5c42,'markers':_0xbde4dc,'rootsAttributes':_0x767506});}['_removeMetaData'](_0x459bb1){this['_savedMetaData']['delete'](_0x459bb1);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x40503f,_0x3a5e7f=null){let _0x59e9d4=null;_0x40503f['is']('documentFragment')||(_0x59e9d4=new ft(_0x40503f['name'],{'vid_start':null===_0x3a5e7f?this['_revisionId']++:_0x3a5e7f++}));const _0x54089f=[];for(const _0x47cb6c of _0x40503f['getChildren']())if(_0x47cb6c['is']('element')){_0x54089f['push'](this['_makeIdsRoot'](_0x47cb6c,_0x3a5e7f));const _0x5141ba=_0x54089f[_0x54089f['length']-0x1];null!==_0x3a5e7f&&(_0x3a5e7f=_0x5141ba['is']('element','$text')?_0x5141ba['getAttribute']('vid')+0x1:_0x5141ba['getAttribute']('vid_end')+0x1);}else{for(let _0x10f329=0x0;_0x10f329<_0x47cb6c['offsetSize'];_0x10f329++)_0x54089f['push'](new ft('$text',{'vid':null===_0x3a5e7f?this['_revisionId']++:_0x3a5e7f++}));}if(_0x40503f['is']('documentFragment')){const _0x3e6e6d=B(_0x40503f['rootName']);return _0x3e6e6d['_insertChild'](0x0,_0x54089f),_0x3e6e6d;}return _0x59e9d4['_setAttribute']('vid_end',null===_0x3a5e7f?this['_revisionId']++:_0x3a5e7f++),_0x59e9d4['_insertChild'](0x0,_0x54089f),_0x59e9d4;}['_calculateMetaData'](_0x449ee7,_0x1006ef,_0xe9642c){this['_reset']();const {roots:_0x214daa,markers:_0x3dccfe,rootsAttributes:_0xbd865b}=this['_savedMetaData']['get'](_0x449ee7);this['_baseRoots']=new Map(_0x214daa),this['_baseRootsAttributes']=new Map(_0x4c4f16(_0xbd865b));for(const [_0xde0294,_0x5261be]of this['_baseRoots'])if('$graveyard'!==_0xde0294&&(this['_diffRoots']['set'](_0xde0294,F(_0x5261be)),this['_diffRootsAttributes']=new Map(_0x4c4f16(_0xbd865b)),_0xe9642c)){const _0x11bc87=this['_revisionId'];this['_idsRoots']['set'](_0xde0294,this['_makeIdsRoot'](_0x5261be)),this['_baseIdsRoots']['set'](_0xde0294,this['_makeIdsRoot'](_0x5261be,_0x11bc87));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0xe9642c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2bc7a5,_0x199eba]of _0x3dccfe){const _0x2c394b=this['_baseRoots']['get'](_0x199eba['rootName']),_0x3c44dd=this['_diffRoots']['get'](_0x199eba['rootName']),_0x1386d7=new vt(this['_fixPosition'](_0x199eba['start'],_0x2c394b),this['_fixPosition'](_0x199eba['end'],_0x2c394b)),_0x550221=this['_fixRange'](_0x1386d7,_0x3c44dd);_0x2c394b['markers']['set'](_0x2bc7a5,_0x1386d7),this['_markers']['set'](_0x2bc7a5,_0x550221);}this['_applyOperations'](_0x449ee7,_0x1006ef,_0xe9642c);}['_applyOperations'](_0x3285aa,_0x848d1f,_0x31f802){for(const _0x4b559a of this['source']['getOperations'](_0x3285aa,_0x848d1f))this['_handleOperation'](_0x4b559a,_0x31f802);for(const _0xca2b44 of this['_diffRoots']['values']())_0xca2b44['markers']['clear']();for(const [_0xa4c7e8,_0x125a74]of this['_markers']){this['_diffRoots']['get'](_0x125a74['root']['rootName'])['markers']['set'](_0xa4c7e8,_0x125a74['clone']());}const _0x54777e=new Map(),_0x21afcc=new Map();for(const [_0x270988,_0x3a273a]of this['_diffRoots'])_0x54777e['set'](_0x270988,F(_0x3a273a)),_0x21afcc['set'](_0x270988,this['_diffRootsAttributes']['get'](_0x270988));this['_saveMetaData'](_0x848d1f,_0x54777e,this['_markers'],_0x21afcc);}['_getPreviousFrom'](_0x51be90){const _0x516123=Array['from'](this['_savedMetaData']['keys']());_0x516123['sort']((_0xc9601d,_0x12bc0b)=>_0xc9601d-_0x12bc0b),_0x516123['reverse']();for(const _0x2c9bb4 of _0x516123)if(_0x2c9bb4<_0x51be90)return _0x2c9bb4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xa4ef29,_0x277e17){const _0x313559=Array['from'](_0x277e17['markers'])['map'](([_0x3cc2c7,_0x3fd5a4])=>[_0x3cc2c7,this['_fixRange'](_0x3fd5a4,_0xa4ef29)]);_0xa4ef29['markers']=new Map(_0x313559);}['_transformMarkers'](_0x288fdf){for(const _0x4ff375 of this['_markers']['values']()){const _0xd23495=_0x4ff375['getTransformedByOperation'](_0x288fdf),_0x4a52c7=vt['_createFromRanges'](_0xd23495);_0x4ff375['start']=_0x4a52c7['start'],_0x4ff375['end']=_0x4a52c7['end'];}}['_handleOperation'](_0x32c6e0,_0x530104){if('addRoot'!=_0x32c6e0['type']&&'detachRoot'!=_0x32c6e0['type']){if('insert'==_0x32c6e0['type']){const _0x203d4f=_0x32c6e0['position']['root']['rootName'];this['_diffRoots']['has'](_0x203d4f)||(this['_diffRoots']['set'](_0x203d4f,B(_0x203d4f,!0x0)),this['_diffRootsAttributes']['set'](_0x203d4f,{}),_0x530104&&this['_idsRoots']['set'](_0x203d4f,B(_0x203d4f,!0x0)));}else{if('addRootAttribute'==_0x32c6e0['type']||'removeRootAttribute'==_0x32c6e0['type']||'changeRootAttribute'==_0x32c6e0['type'])return void this['_handleRootAttributeOperation'](_0x32c6e0);'marker'==_0x32c6e0['type']&&this['_handleMarkerOperation'](_0x32c6e0);}if('marker'!==_0x32c6e0['type']){const _0x4e4edb=this['_cloneOperation'](_0x32c6e0,this['_diffRoots']);_0x4e4edb['_execute'](),this['_transformMarkers'](_0x4e4edb);}if(_0x530104)switch(_0x32c6e0['type']){case'insert':this['_handleInsertOperation'](_0x32c6e0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x32c6e0);break;case'merge':this['_handleMergeOperation'](_0x32c6e0);break;case'split':this['_handleSplitOperation'](_0x32c6e0);}}else this['_handleRootOperation'](_0x32c6e0,_0x530104);}['_cloneOperation'](_0x5a7f65,_0x521de9){const _0x216166=_0x5a7f65['clone']();return _0x216166['_authorId']=_0x5a7f65['_authorId'],this['_fixOperation'](_0x216166,_0x521de9),_0x216166;}['_getBaseVids'](_0x15d416){return _0x15d416['map'](_0x216bb7=>{const _0x385d2d=this['_getVidAttributeName'](_0x216bb7);return Number(_0x216bb7['item']['getAttribute'](_0x385d2d));});}['_generateTape'](_0x3f53bc,_0x225c22){if(_0x3f53bc['is']('element','$text'))_0x225c22['push']({'item':_0x3f53bc,'type':'text'});else{_0x3f53bc['is']('element')&&_0x225c22['push']({'item':_0x3f53bc,'type':'elementStart'});for(const _0x211687 of _0x3f53bc['getChildren']())this['_generateTape'](_0x211687,_0x225c22);_0x3f53bc['is']('element')&&_0x225c22['push']({'item':_0x3f53bc,'type':'elementEnd'});}return _0x225c22;}['_getState'](){const _0x3fdb01=new Map(this['_touched']),_0x4c88af=new Map(_0x3fdb01),_0x2521f9=new Map(),_0x304048={'insertions':{},'deletions':{}},_0x348737={'insertions':{},'deletions':{}},_0x2a52b9=new Map(),_0x4c9f94=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4c9f94['delete']('$graveyard');for(const _0x8aac75 of _0x4c9f94){const _0x2e8c2b=this['_diffRoots']['get'](_0x8aac75)||B(_0x8aac75,!0x1),_0x5be969=this['_baseRoots']['get'](_0x8aac75)||B(_0x8aac75,!0x1);_0x2e8c2b['isAttached']()||_0x5be969['isAttached']()?(_0x304048['insertions'][_0x8aac75]=F(_0x2e8c2b),_0x304048['deletions'][_0x8aac75]=F(_0x5be969),this['_copyMarkers'](_0x304048['deletions'][_0x8aac75],_0x5be969),this['_copyMarkers'](_0x304048['insertions'][_0x8aac75],_0x2e8c2b),_0x348737['insertions'][_0x8aac75]=this['_generateTape'](this['_idsRoots']['get'](_0x8aac75),[]),_0x348737['deletions'][_0x8aac75]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x8aac75)||B(_0x8aac75,!0x1),[])):_0x4c9f94['delete'](_0x8aac75);}for(const _0x26d32d of _0x4c9f94){const _0x59ace1=_0x348737['insertions'][_0x26d32d];for(const _0x1196cc of _0x59ace1){const _0x3cb3cc=this['_getVidAttributeName'](_0x1196cc),_0x451d12=_0x1196cc['item']['getAttribute'](_0x3cb3cc);_0x4c88af['delete'](_0x451d12),_0x451d12>=this['_startingRevisionId']&&_0x2521f9['set'](_0x451d12,_0x3fdb01['get'](_0x451d12));}}for(const _0x42d4a0 of _0x4c9f94){const _0x54452e=_0x348737['insertions'][_0x42d4a0],_0x2c0bff=this['_getBaseVids'](_0x348737['deletions'][_0x42d4a0]);let _0xa352a9=0x0;for(const _0x1c4c17 of _0x54452e){const _0x55de4a=this['_getVidAttributeName'](_0x1c4c17),_0x2f3795=_0x1c4c17['item']['getAttribute'](_0x55de4a);if(!_0x2521f9['has'](_0x2f3795)&&!_0x2a52b9['has'](_0x2f3795)){if(_0x4c88af['has'](_0x2f3795))_0xa352a9++;else{if(_0x2f3795!=_0x2c0bff[_0xa352a9]){const _0x450b33=_0x3fdb01['get'](_0x2f3795)||_0x3fdb01['get'](_0x2c0bff[_0xa352a9]);for(;_0x2f3795!=_0x2c0bff[_0xa352a9];)_0x4c88af['has'](_0x2c0bff[_0xa352a9])||(_0x2a52b9['set'](_0x2c0bff[_0xa352a9],_0x450b33),_0x3fdb01['set'](_0x2c0bff[_0xa352a9],_0x450b33)),_0xa352a9++;}_0xa352a9++;}}}}for(const _0x39c8d8 of _0x4c9f94){const _0xb2a78=_0x348737['insertions'][_0x39c8d8];for(const _0x145b1b of _0xb2a78){const _0x4bc6dd=this['_getVidAttributeName'](_0x145b1b),_0x1c45aa=_0x145b1b['item']['getAttribute'](_0x4bc6dd);if(_0x2a52b9['has'](_0x1c45aa)){const _0x519cb4=_0x2a52b9['get'](_0x1c45aa);_0x4c88af['has'](_0x1c45aa)||_0x4c88af['set'](_0x1c45aa,{..._0x519cb4}),_0x2521f9['set'](_0x1c45aa,{..._0x519cb4});}}}for(const _0xed79ef of _0x4c88af['keys']())_0xed79ef>=this['_startingRevisionId']&&_0x4c88af['delete'](_0xed79ef);const _0x3a5995=new Map();for(const _0x5724e1 of _0x4c9f94){let _0x132b95=_0x348737['insertions'][_0x5724e1];for(const _0x37008a of _0x132b95)if(_0x37008a['item']['is']('element','tableCell')){const _0x21e259=this['_getVidAttributeName'](_0x37008a),_0x16e92a=_0x37008a['item']['getAttribute'](_0x21e259);if(_0x2521f9['has'](_0x16e92a)){const _0x2edef4=_0x37008a['item']['parent']['parent']['getAttribute']('vid_start'),_0x4d88d4=_0x3a5995['get'](_0x2edef4)||new Set();_0x4d88d4['add'](_0x2521f9['get'](_0x16e92a)['userId']),_0x3a5995['set'](_0x2edef4,_0x4d88d4);}}_0x132b95=_0x348737['deletions'][_0x5724e1];for(const _0x35f29f of _0x132b95)if(_0x35f29f['item']['is']('element','tableCell')){const _0x29e17a=this['_getVidAttributeName'](_0x35f29f),_0x3f21a6=_0x35f29f['item']['getAttribute'](_0x29e17a);if(_0x4c88af['has'](_0x3f21a6)){const _0x418391=_0x35f29f['item']['parent']['parent']['getAttribute']('vid_start'),_0x3fda67=_0x3a5995['get'](_0x418391)||new Set();_0x3fda67['add'](_0x4c88af['get'](_0x3f21a6)['userId']),_0x3a5995['set'](_0x418391,_0x3fda67);}}for(const _0x1e2457 of _0x3a5995['keys']())(_0x2521f9['has'](_0x1e2457)||_0x4c88af['has'](_0x1e2457))&&_0x3a5995['delete'](_0x1e2457);}for(const _0x43d79e of _0x4c9f94){const _0x3c813b=_0x348737['insertions'][_0x43d79e];let _0x51b73f=null,_0x5a61a1=null;for(const _0x3437c5 of _0x3c813b){const _0x1ae480=this['_getVidAttributeName'](_0x3437c5),_0x12e439=_0x3437c5['item']['getAttribute'](_0x1ae480),_0x5a175e=_0x3a5995['get'](_0x12e439);_0x5a175e&&'elementStart'==_0x3437c5['type']&&(_0x51b73f=Array['from'](_0x5a175e)[0x0],_0x5a61a1=_0x3437c5['item']['getAttribute']('vid_end')),_0x51b73f&&(_0x4c88af['set'](_0x12e439,{'userId':_0x51b73f}),_0x2521f9['set'](_0x12e439,{'userId':_0x51b73f})),_0x12e439==_0x5a61a1&&(_0x51b73f=null,_0x5a61a1=null);}}const _0x1deebe={},_0x360e04=new Set();for(const _0x8ee1f8 of _0x4c9f94){const _0x536c43=_0x304048['deletions'][_0x8ee1f8],_0x46f5e7=_0x304048['insertions'][_0x8ee1f8];for(const {userId:_0x5eaf29}of this['_touchedMarkers']['values']())null!==_0x5eaf29&&_0x360e04['add'](_0x5eaf29);for(const {userId:_0x93d309}of this['_touchedRoots']['values']())null!==_0x93d309&&_0x360e04['add'](_0x93d309);this['_markChanges'](_0x46f5e7,_0x348737['insertions'][_0x8ee1f8],_0x2521f9,'insertion',_0x360e04),this['_markChanges'](_0x536c43,_0x348737['deletions'][_0x8ee1f8],_0x4c88af,'deletion',_0x360e04),_0x1deebe[_0x8ee1f8]={'insertions':this['_prepareViewToSave'](_0x46f5e7),'deletions':this['_prepareViewToSave'](_0x536c43),'attachChange':this['_touchedRoots']['get'](_0x8ee1f8)||null,'attributesBefore':_0x4c4f16(this['_baseRootsAttributes']['get'](_0x8ee1f8))||{},'attributesAfter':_0x4c4f16(this['_diffRootsAttributes']['get'](_0x8ee1f8))};}return{'diffData':_0x1deebe,'authorsIds':Array['from'](_0x360e04)};}['_processRootBeforeSave'](_0x1c7d00){for(const [,_0x4c59ab]of _0x1c7d00['markers']){const _0x1f16e5=_0x4c59ab['start']['getAncestors']()['filter'](_0x3b1601=>'tableCell'==_0x3b1601['name']);for(const _0x38c986 of _0x1f16e5)0x1==_0x38c986['childCount']&&_0x38c986['getChild'](0x0)['is']('element','paragraph')&&_0x38c986['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xb06c93){this['_processRootBeforeSave'](_0xb06c93);const _0x2dd604=this['editor']['data']['toView'](_0xb06c93,{}),_0xb0af86=Array['from'](_0x2dd604['getChildren']())['map'](_0x4cd588=>this['_getViewJson'](_0x4cd588));return JSON['stringify'](_0xb0af86);}['_getViewJson'](_0x1465a3){if(_0x1465a3['is']('$text'))return _0x1465a3['data'];{const _0x26f403=_0x1465a3;return{'type':Object['keys'](C)['find'](_0x4d0a66=>_0x1465a3 instanceof C[_0x4d0a66]),'name':_0x26f403['name'],'attributes':Array['from'](_0x26f403['getAttributes']()),'children':Array['from'](_0x26f403['getChildren']())['map'](_0x1a0a4f=>this['_getViewJson'](_0x1a0a4f))};}}['_markChanges'](_0x3fd9eb,_0xb48d02,_0x3962fd,_0x101010,_0x299eea){let _0x2f1402=null,_0x1b8841=null,_0x32acae=0x0;const _0x2f0ace=this['editor']['model'];for(let _0x285d88=0x0;_0x285d88<_0xb48d02['length'];_0x285d88++){const _0x484730=this['_getVidAttributeName'](_0xb48d02[_0x285d88]),_0x4dc14c=_0xb48d02[_0x285d88]['item']['getAttribute'](_0x484730),_0x12d0cb=_0x3962fd['get'](_0x4dc14c),_0x511e8a=_0x285d88==_0xb48d02['length']-0x1;(!_0x2f1402&&_0x12d0cb&&(_0x2f1402=_0x12d0cb,_0x1b8841=_0xb48d02[_0x285d88]),_0x2f1402&&(!_0x12d0cb||_0x12d0cb['userId']!=_0x2f1402['userId']))&&(_0x408bcf(_0x12d0cb,J(_0x1b8841,_0x3fd9eb,_0x2f0ace),J(_0xb48d02[_0x285d88],_0x3fd9eb,_0x2f0ace)),_0x2f1402=_0x12d0cb||null,_0x1b8841=_0x12d0cb?_0xb48d02[_0x285d88]:null),_0x2f1402&&_0x511e8a&&_0x408bcf(_0x12d0cb,J(_0x1b8841,_0x3fd9eb,_0x2f0ace),q(_0xb48d02[_0x285d88],_0x3fd9eb,_0x2f0ace));}function _0x408bcf(_0x17efb3,_0x5da0a3,_0x1f8c13){const _0x5dc6c2=_0x2f1402['userId'],_0x5141c7='revision:'+_0x101010+':'+_0x5dc6c2+':'+_0x32acae++,_0x3a33e5=_0x2f0ace['createRange'](_0x5da0a3,_0x1f8c13);_0x3fd9eb['markers']['set'](_0x5141c7,_0x3a33e5),null!==_0x5dc6c2&&_0x299eea['add'](_0x5dc6c2);}}['_getVidAttributeName'](_0x35cefc){switch(_0x35cefc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4ef2aa,_0x2adac4){_0x4ef2aa['baseVersion']=null;for(const _0x31c1b0 in _0x4ef2aa){const _0x47a73e=_0x4ef2aa[_0x31c1b0];if(_0x47a73e instanceof gt){const _0x42944c=_0x2adac4['get'](_0x47a73e['root']['rootName']);_0x4ef2aa[_0x31c1b0]=this['_fixPosition'](_0x47a73e,_0x42944c);}if(_0x47a73e instanceof vt){const _0x36934f=_0x2adac4['get'](_0x47a73e['root']['rootName']);_0x4ef2aa[_0x31c1b0]=this['_fixRange'](_0x47a73e,_0x36934f);}'root'===_0x31c1b0&&(_0x4ef2aa['root']=_0x2adac4['get'](_0x4ef2aa['root']['rootName']));}}['_fixRange'](_0x29cd01,_0x42d791){return this['editor']['model']['createRange'](this['_fixPosition'](_0x29cd01['start'],_0x42d791),this['_fixPosition'](_0x29cd01['end'],_0x42d791));}['_fixPosition'](_0x6ebe05,_0xa473ba){return this['editor']['model']['createPositionFromPath'](_0xa473ba,_0x6ebe05['path'],_0x6ebe05['stickiness']);}['_handleInsertOperation'](_0x282d8d){const _0x5bf559=this['_idsRoots']['get'](_0x282d8d['position']['root']['rootName']),_0x524d8a=this['_fixPosition'](_0x282d8d['position'],_0x5bf559),_0x3e7874=null===_0x282d8d['_authorId']?null:_0x282d8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4680fc=_0x524d8a['parent'],_0x252a9e=this['_revisionId'],_0x13d37c=[];for(const _0x1c96a4 of _0x282d8d['nodes'])if(_0x1c96a4['is']('element'))_0x13d37c['push'](this['_makeIdsRoot'](_0x1c96a4));else{for(let _0xd7593d=0x0;_0xd7593d<_0x1c96a4['offsetSize'];_0xd7593d++)_0x13d37c['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x59145b=this['_revisionId'];for(let _0x4b134c=_0x252a9e;_0x4b134c<_0x59145b;_0x4b134c++)this['_touched']['set'](_0x4b134c,{'userId':_0x3e7874});_0x4680fc['_insertChild'](_0x524d8a['offset'],_0x13d37c);}['_handleMoveOperation'](_0x1dfa4c){(_0x1dfa4c=this['_cloneOperation'](_0x1dfa4c,this['_idsRoots']))['_execute']();const _0x33803e=null===_0x1dfa4c['_authorId']?null:_0x1dfa4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2565b9=_0x1dfa4c['getMovedRangeStart'](),_0x548b13=_0x2565b9['parent'],_0x3dd8f3=_0x2565b9['offset'];!function _0x27fb37(_0x6f0688,_0x3d6466,_0x10cd57,_0x40e9ba){for(let _0x34d8eb=_0x10cd57;_0x34d8eb<_0x40e9ba;_0x34d8eb++){const _0x11eb83=_0x3d6466['getChild'](_0x34d8eb);_0x11eb83['is']('element','$text')?_0x6f0688['set'](_0x11eb83['getAttribute']('vid'),{'userId':_0x33803e}):(_0x6f0688['set'](_0x11eb83['getAttribute']('vid_start'),{'userId':_0x33803e}),_0x27fb37(_0x6f0688,_0x11eb83,0x0,_0x11eb83['childCount']),_0x6f0688['set'](_0x11eb83['getAttribute']('vid_end'),{'userId':_0x33803e}));}}(this['_touched'],_0x548b13,_0x3dd8f3,_0x3dd8f3+_0x1dfa4c['howMany']);}['_handleMergeOperation'](_0x206b28){const _0x392471=null===(_0x206b28=this['_cloneOperation'](_0x206b28,this['_idsRoots']))['_authorId']?null:_0x206b28['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x546191=_0x206b28['targetPosition']['parent'],_0x4e6f44=_0x206b28['sourcePosition']['parent'],_0x3e3724=_0x546191['getAttribute']('vid_end'),_0x39c8cf=_0x4e6f44['getAttribute']('vid_start');_0x546191['_setAttribute']('vid_end',_0x4e6f44['getAttribute']('vid_end')),_0x4e6f44['_setAttribute']('vid_end',_0x3e3724),this['_touched']['set'](_0x39c8cf,{'userId':_0x392471}),this['_touched']['set'](_0x3e3724,{'userId':_0x392471}),_0x206b28['_execute']();}['_handleSplitOperation'](_0x555def){const _0xb83bf7=null===(_0x555def=this['_cloneOperation'](_0x555def,this['_idsRoots']))['_authorId']?null:_0x555def['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b1e8b=_0x555def['graveyardPosition'],_0x5163cb=_0x555def['splitPosition']['parent'];_0x555def['_execute']();const _0x2da9ea=_0x5163cb['getAttribute']('vid_end'),_0x55c0e0=_0x555def['insertionPosition']['nodeAfter'];if(_0x5b1e8b){const _0x47f80b=_0x55c0e0['getAttribute']('vid_end'),_0x52dec1=_0x5163cb['getAttribute']('vid_end');_0x5163cb['_setAttribute']('vid_end',_0x47f80b),_0x55c0e0['_setAttribute']('vid_end',_0x52dec1),this['_touched']['set'](_0x5163cb['getAttribute']('vid_end'),{'userId':_0xb83bf7}),this['_touched']['set'](_0x55c0e0['getAttribute']('vid_start'),{'userId':_0xb83bf7});}else{const _0x23fc81=this['_revisionId']++,_0x3f4727=this['_revisionId']++;_0x5163cb['_setAttribute']('vid_end',_0x23fc81),_0x55c0e0['_setAttribute']('vid_start',_0x3f4727),_0x55c0e0['_setAttribute']('vid_end',_0x2da9ea),this['_touched']['set'](_0x23fc81,{'userId':_0xb83bf7}),this['_touched']['set'](_0x3f4727,{'userId':_0xb83bf7});}}['_handleMarkerOperation'](_0x5eef6f){if(!_0x5eef6f['affectsData'])return;const _0x2c15e2=(_0x5eef6f=this['_cloneOperation'](_0x5eef6f,this['_diffRoots']))['oldRange']?_0x5eef6f['oldRange']['root']:null,_0x40c1c8=_0x5eef6f['newRange']?_0x5eef6f['newRange']['root']:null;_0x2c15e2&&this['_markers']['delete'](_0x5eef6f['name']),_0x40c1c8&&this['_markers']['set'](_0x5eef6f['name'],_0x5eef6f['newRange']['clone']());const _0x5697ff=null===_0x5eef6f['_authorId']?null:_0x5eef6f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x513fba=_0x5eef6f['name'];if(!this['_touchedMarkers']['has'](_0x513fba))return void this['_touchedMarkers']['set'](_0x513fba,{'range':_0x5eef6f['oldRange'],'userId':_0x5697ff});const _0x47724f=this['_touchedMarkers']['get'](_0x513fba),_0x4f6a46=_0x47724f['range'],_0x11361d=_0x5eef6f['newRange'];null==_0x4f6a46&&null==_0x11361d||_0x4f6a46&&_0x11361d&&_0x4f6a46['isEqual'](_0x11361d)?this['_touchedMarkers']['delete'](_0x5eef6f['name']):_0x47724f['userId']=_0x5697ff;}['_handleRootOperation'](_0x1e38ca,_0x1dde22){this['_diffRoots']['has'](_0x1e38ca['rootName'])?this['_diffRoots']['get'](_0x1e38ca['rootName'])['_isAttached']=_0x1e38ca['isAdd']:(this['_diffRoots']['set'](_0x1e38ca['rootName'],B(_0x1e38ca['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e38ca['rootName'],{}),_0x1dde22&&this['_idsRoots']['set'](_0x1e38ca['rootName'],B(_0x1e38ca['rootName'],!0x0)));const _0x578016=null===_0x1e38ca['_authorId']?null:_0x1e38ca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x477115=this['_touchedRoots']['get'](_0x1e38ca['rootName']);_0x477115&&_0x477115['userId']===_0x578016?this['_touchedRoots']['delete'](_0x1e38ca['rootName']):this['_touchedRoots']['set'](_0x1e38ca['rootName'],{'userId':_0x578016,'isAttached':_0x1e38ca['isAdd']});}['_handleRootAttributeOperation'](_0x5e5ffb){const _0x5eedae=this['_diffRootsAttributes']['get'](_0x5e5ffb['root']['rootName']);null===_0x5e5ffb['newValue']?delete _0x5eedae[_0x5e5ffb['key']]:_0x5eedae[_0x5e5ffb['key']]=_0x5e5ffb['newValue'];}}function F(_0x438e29){const _0x53552a=B(_0x438e29['rootName'],_0x438e29['isAttached']());for(const _0x2c14eb of _0x438e29['getChildren']()){const _0x5d4e29=_0x2c14eb['_clone'](!0x0);_0x53552a['_appendChild'](_0x5d4e29);}return _0x53552a;}function B(_0x1b655d,_0x76524f=!0x0){const _0x24d6c0=new wt();return _0x24d6c0['rootName']=_0x1b655d,_0x24d6c0['_isAttached']=_0x76524f,_0x24d6c0['isAttached']=()=>_0x24d6c0['_isAttached'],_0x24d6c0;}function J(_0x595f24,_0x34f3c6,_0x4451e3){const _0x4a93d8='elementEnd'==_0x595f24['type']?_0x4451e3['createPositionAt'](_0x595f24['item'],'end'):_0x4451e3['createPositionBefore'](_0x595f24['item']);return _0x4451e3['createPositionFromPath'](_0x34f3c6,_0x4a93d8['path'],_0x4a93d8['stickiness']);}function q(_0x5ef0,_0x38206e,_0x5198ac){const _0x12cbf0='elementStart'==_0x5ef0['type']?_0x5198ac['createPositionAt'](_0x5ef0['item'],0x0):_0x5198ac['createPositionAfter'](_0x5ef0['item']);return _0x5198ac['createPositionFromPath'](_0x38206e,_0x12cbf0['path'],_0x12cbf0['stickiness']);}class ns extends _0x2ff6e1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xcf70e2,_0x302b4e){super(_0xcf70e2),this['focusTracker']=new _0x14bb7d(),this['keystrokes']=new _0x111389(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x302b4e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x53b023({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3abcd4=_0x13aa72=>_0x13aa72['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3abcd4),this['keystrokes']['set']('arrowleft',_0x3abcd4),this['keystrokes']['set']('arrowup',_0x3abcd4),this['keystrokes']['set']('arrowdown',_0x3abcd4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1c6353){this['revisionNameInputView']['fieldView']['element']['value']=_0x1c6353['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x51a52c){const _0x366d0b=new at(this['locale'],_0x3ca5a4),_0x11fdb6=_0x366d0b['fieldView'];_0x11fdb6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x18c658=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x51a52c&&(_0x18c658+='\x20('+R(this['locale'],'optional')+')'),(_0x366d0b['label']=_0x18c658,_0x11fdb6['on']('input',()=>{this['revisionNameInputValue']=_0x11fdb6['element']['value']['trim']();}),_0x366d0b);}}class u extends _0x749fac{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x191495=this['editor'],_0x1671fd=_0x191495['plugins']['get']('RevisionTracker');_0x191495['ui']['componentFactory']['add']('revisionHistory',_0x576e23=>{const _0x5db119=_0x5c649b(_0x576e23),_0x40e78e=_0x5db119['panelView']['children'],_0x2d14cf=new te(_0x576e23),_0x595825=new _0x4bd843(_0x576e23),_0x1653aa=new _0x8c1ed8(_0x576e23),_0x5b5ca6=new _0x4bd843(_0x576e23),_0x55c341=new _0x8c1ed8(_0x576e23);return _0x5db119['bind']('isEnabled')['to'](_0x1671fd,'isReady',_0x1671fd,'isEnabled',_0x191495,'isReadOnly',(_0x235c63,_0xb10778,_0x557db0)=>_0x235c63&&_0xb10778&&!_0x557db0),_0x5db119['buttonView']['set']({'icon':_0x363a49['history'],'label':R(_0x576e23,'Revision\x20history'),'tooltip':!0x0}),_0x1653aa['set']({'label':R(_0x576e23,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1653aa['bind']('isEnabled')['to'](_0x1671fd,'isReady',_0x1671fd,'isEnabled',_0x191495,'isReadOnly',(_0x4efc92,_0x347a59,_0x4a55a2)=>_0x4efc92&&_0x347a59&&!_0x4a55a2),_0x1653aa['on']('execute',()=>this['_showDialog']()),_0x55c341['set']({'label':R(_0x576e23,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x55c341['bind']('isEnabled')['to'](_0x1671fd,'isReady',_0x191495,'isReadOnly',(_0x1254d7,_0x57f347)=>_0x1254d7&&!_0x57f347),_0x55c341['on']('execute',()=>{_0x191495['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5db119['isOpen']=!0x1,_0x191495['editing']['view']['focus']();}),_0x595825['children']['add'](_0x1653aa),_0x5b5ca6['children']['add'](_0x55c341),_0x2d14cf['role']='menu',_0x2d14cf['items']['addMany']([_0x595825,_0x5b5ca6]),_0x40e78e['add'](_0x2d14cf),_0x5db119;}),_0x191495['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x259abe=this['editor'],_0x340a5f=_0x259abe['locale'],_0x2b9db0=new _0x3c3b2d(_0x340a5f),_0x274d03=new _0x6aef71(_0x340a5f);_0x2b9db0['buttonView']['set']({'icon':_0x363a49['history'],'label':R(_0x340a5f,'Revision\x20history')});const _0x58fcbf=new _0xc81641(_0x340a5f,_0x2b9db0),_0x5bf638=new _0x1f9553(_0x340a5f);_0x5bf638['set']({'label':R(_0x340a5f,'Save\x20current\x20revision')}),_0x5bf638['delegate']('execute')['to'](_0x2b9db0),_0x5bf638['on']('execute',()=>{this['_showDialog']();}),_0x58fcbf['children']['add'](_0x5bf638),_0x274d03['items']['add'](_0x58fcbf);const _0x2088d8=new _0xc81641(_0x340a5f,_0x2b9db0),_0x449507=new _0x1f9553(_0x340a5f);return _0x449507['set']({'label':R(_0x340a5f,'Open\x20revision\x20history')}),_0x449507['delegate']('execute')['to'](_0x2b9db0),_0x449507['on']('execute',()=>{_0x259abe['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2088d8['children']['add'](_0x449507),_0x274d03['items']['add'](_0x2088d8),_0x2b9db0['panelView']['children']['add'](_0x274d03),_0x2b9db0;}['_showDialog'](){const _0x28991f=this['editor'],_0x1a3228=_0x28991f['locale'],_0x1ea3a4=_0x28991f['plugins']['get']('Dialog'),_0x20441a=_0x28991f['plugins']['get']('RevisionTracker');function _0x1dd731(_0x33d055){_0x28991f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x33d055['revisionName']?_0x33d055['revisionNameInputView']['errorText']=R(_0x1a3228,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x28991f['plugins']['get'](l)['saveRevision']({'name':_0x33d055['revisionName']}),_0x1ea3a4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1dd731(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1ea3a4['show']({'id':'revisionSave','title':R(_0x1a3228,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x28991f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1ea3a4['hide']()},{'label':R(_0x28991f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5c9487){_0x5c9487['bind']('isEnabled')['to'](_0x20441a,'isReady',_0x20441a,'isEnabled',_0x28991f,'isReadOnly',(_0x13782d,_0x51d628,_0xd9e06e)=>_0x13782d&&_0x51d628&&!_0xd9e06e);},'onExecute':()=>_0x1dd731(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1547dd=this['editor'],_0x337be9=_0x1547dd['locale'];this['_saveRevisionFormView']=new ns(_0x337be9,_0x1547dd['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x2ff6e1{['changeId'];['_model'];constructor(_0x4b50f1,_0x50f794){super(_0x4b50f1),this['_model']=_0x50f794,this['changeId']=_0x50f794['id'];const _0x50c66e=this['bindTemplate'],_0x3bd286=R(_0x4b50f1,_0x50f794['data']['isSuggestion']?'Suggested\x20by':'add'==_0x50f794['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x50f794['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x50c66e['to']('type',_0x4a3dc4=>'ck-revision-change__'+_0x4a3dc4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3bd286}]},{'text':'\x20'+_0x50f794['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x585a54(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x81a6fa){super(),this['id']=_0x81a6fa['id']||_0x39e673(),this['author']=_0x81a6fa['author'],this['type']=_0x81a6fa['type'],this['data']=_0x81a6fa['data']||{},this['rootName']=_0x81a6fa['rootName'],this['set']('createdAt',_0x81a6fa['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x160d17,_0x5d6d1e){this['newRevisionId']=_0x160d17,this['oldRevisionId']=_0x5d6d1e,this['changes']=new _0xe94121();}['_setChanges'](_0x3f9cc4){for(const _0x1aeb04 of _0x3f9cc4)this['changes']['add'](_0x1aeb04);}}const Z={'c':_0x173824,'a':_0xf7b691,'e':_0x20d1bc,'r':_0x121912,'u':_0x4cde5d};class d extends _0x749fac{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x262ae6,_0x31879f,j];}constructor(_0x539f1d){super(_0x539f1d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x59bc62,_0x239a3a,_0x28fe9b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x45dffc=>{for(const _0x4b0179 of this['editor']['editing']['view']['document']['roots'])_0x28fe9b?_0x45dffc['removeClass']('ck-editor__editable__overlay',_0x4b0179):_0x45dffc['addClass']('ck-editor__editable__overlay',_0x4b0179);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x39926b=>null!==_0x39926b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x255407,_0x6ae8ba,_0x5b87af)=>_0x255407&&_0x5b87af?_0x6ae8ba['changes']['getIndex'](_0x5b87af):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xd1fed0,_0x4c4d8f)=>_0xd1fed0?_0x4c4d8f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x31879f);}['init'](){const _0x276413=this['editor'],_0x3565ea=new bt(_0x276413,{'direction':'backward'}),_0x3a89a9=new bt(_0x276413,{'direction':'forward'});(_0x276413['commands']['add']('showPreviousChange',_0x3565ea),_0x276413['commands']['add']('showNextChange',_0x3a89a9),_0x276413['commands']['add']('restoreRevision',new yt(_0x276413)),this['on']('change:numberOfChanges',()=>{_0x3565ea['refresh'](),_0x3a89a9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x276413['enableReadOnlyMode']('revision-viewer'),_0x276413['plugins']['has']('WidgetToolbarRepository'))&&_0x276413['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x47826a){await this['loadRevisionData'](_0x47826a);const _0x1f4f5e={};for(const _0x15a229 in _0x47826a['diffData']){if(_0x47826a['diffData'][_0x15a229]['attachChange']&&!_0x47826a['diffData'][_0x15a229]['attachChange']['isAttached'])continue;const _0x330a08=this['_removeRevisionMarkers'](JSON['parse'](_0x47826a['diffData'][_0x15a229]['insertions'])),_0x5829e7=this['editor']['editing']['view']['document'],_0x426379=new _0x51b7f4(_0x5829e7,_0x330a08['map'](_0x347446=>this['_getViewObj'](_0x347446)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1f4f5e[_0x15a229]=this['editor']['data']['processor']['toData'](_0x426379),this['editor']['data']['processor']['useFillerType']('default');}return _0x1f4f5e;}async['getRevisionRootsAttributes'](_0xbdbb75){await this['loadRevisionData'](_0xbdbb75);const _0x2fa45b={};for(const _0x20f27c in _0xbdbb75['diffData'])_0xbdbb75['diffData'][_0x20f27c]['attachChange']&&!_0xbdbb75['diffData'][_0x20f27c]['attachChange']['isAttached']||(_0x2fa45b[_0x20f27c]=_0xbdbb75['diffData'][_0x20f27c]['attributesAfter']||{});return _0x2fa45b;}['_removeRevisionMarkers'](_0x246c09){return(_0x246c09=_0x246c09['filter'](_0xa2e8e2=>!_0xa2e8e2['name']||'revision-start'!==_0xa2e8e2['name']&&'revision-end'!==_0xa2e8e2['name']))['forEach'](_0x257ad5=>{'string'!=typeof _0x257ad5&&(_0x257ad5['children']=this['_removeRevisionMarkers'](_0x257ad5['children']),_0x257ad5['attributes']=_0x257ad5['attributes']['filter'](_0x187d86=>!_0x187d86[0x0]['startsWith']('data-revision-')));}),_0x246c09;}async['compare'](_0x3aade6,_0x47c808,_0x5eebdf=!0x1){if(!this['isEnabled'])return;const _0x565825=this['diff'],_0x282494=this['repository'],_0x264fcc='string'==typeof _0x3aade6?_0x282494['getRevision'](_0x3aade6):_0x3aade6,_0xb9a588='string'==typeof _0x47c808?_0x282494['getRevision'](_0x47c808):_0x47c808,_0xab155a=_0x264fcc['id'],_0x58cfde=_0xb9a588?_0xb9a588['id']:null;if(!_0x5eebdf&&this['diff']&&this['diff']['newRevisionId']===_0xab155a&&this['diff']['oldRevisionId']===_0x58cfde)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xab155a,_0x58cfde);const _0x483e7e=this['_getRevisionsRange'](_0x264fcc,_0xb9a588,!0x0)['map'](_0x382121=>this['loadRevisionData'](_0x382121));return _0x483e7e['push'](new Promise(_0x588bae=>{setTimeout(_0x588bae,0x14);})),Promise['all'](_0x483e7e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5a4733=this['_getDiff'](_0xab155a,_0x58cfde);for(const _0x4ece3c of _0x5a4733['changes'])this['_changeIdToChange']['set'](_0x4ece3c['id'],_0x4ece3c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x53c752=>{for(const _0x274506 of this['editor']['model']['document']['getRootNames']())_0x53c752['detachRoot'](_0x274506);for(const _0xefad59 of Object['keys'](_0x5a4733['model'])){const _0x11893e=_0x53c752['addRoot'](_0xefad59);for(const _0x27d8bc of Object['keys'](_0x5a4733['attributes'][_0xefad59]))_0x53c752['setAttribute'](_0x27d8bc,_0x5a4733['attributes'][_0xefad59][_0x27d8bc],_0x11893e);_0x53c752['insert'](_0x5a4733['model'][_0xefad59],_0x11893e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5a4733['changes'])),this['isReady']=!0x0;})['catch'](_0x12dade=>{console['error'](_0x12dade),this['_cleanUp'](),_0x565825&&(this['diff']=_0x565825),this['isReady']=!0x0;});}['addRevisionData'](_0x6492ae,_0x55f9fb){const _0x117048=this['repository']['createRevision'](_0x6492ae);return _0x117048['on']('_update',(_0x3bb5cb,_0xd67b4d,_0x5ea21e)=>_0x55f9fb(_0xd67b4d,_0x5ea21e,_0x117048)),this['repository']['addRevision'](_0x117048),_0x117048;}['loadRevisionData'](_0x2b4c26){if(!_0x2b4c26||_0x2b4c26['diffData'])return Promise['resolve']();{const _0xe7ebaa=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xe7ebaa,'revisionId':_0x2b4c26['id']})['then'](_0x1b7c26=>{_0x2b4c26['_update']({'diffData':_0x1b7c26['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x14d518=>{for(const _0x5e2b4d of this['editor']['model']['document']['getRootNames']())_0x14d518['detachRoot'](_0x5e2b4d);});}['_sortAndFilterDiffChanges'](_0x1f1cee){const _0x54f87a=[],_0x30e4f3=new Map();for(const _0x5c3195 of this['editor']['model']['document']['getRootNames']()){const _0x40bae3=this['editor']['editing']['view']['getDomRoot'](_0x5c3195);if(!_0x40bae3)continue;const _0x94c332=_0x40bae3['getClientRects']()['item'](0x0);_0x94c332&&(_0x54f87a['push'](_0x5c3195),_0x30e4f3['set'](_0x5c3195,_0x94c332));}return _0x54f87a['sort']((_0x1af389,_0x24a636)=>{const _0x4f5166=_0x30e4f3['get'](_0x1af389),_0x56a468=_0x30e4f3['get'](_0x24a636);return _0x4f5166['y']-_0x56a468['y']||_0x4f5166['x']-_0x56a468['x'];}),(_0x1f1cee=_0x1f1cee['filter'](_0x28ff10=>_0x54f87a['includes'](_0x28ff10['rootName'])))['sort']((_0x1ec8af,_0x5d7615)=>_0x54f87a['indexOf'](_0x1ec8af['rootName'])-_0x54f87a['indexOf'](_0x5d7615['rootName'])),_0x1f1cee;}['_makeTape'](_0x18d585){const _0x139e45=Array['from'](_0x18d585['markers'])['filter'](([_0x4fc78e,_0x55886b])=>_0x4fc78e['startsWith']('revision:')&&!_0x55886b['isCollapsed']),_0xc142de=Array['from'](this['editor']['model']['createRangeIn'](_0x18d585)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x139e45['length'])for(const _0x18fe47 of _0xc142de){const [_0x2673b4,_0x4aae48]=_0x139e45[0x0],[,_0x15aeba,_0x3a87ec]=_0x2673b4['split'](':');if(_0x4aae48['end']['isEqual'](_0x18fe47['nextPosition'])&&_0x139e45['shift'](),(_0x18fe47['previousPosition']['isEqual'](_0x4aae48['start'])||_0x18fe47['previousPosition']['isAfter'](_0x4aae48['start']))&&('insertion'==_0x15aeba?_0x18fe47['isAdded']={'userId':_0x3a87ec}:'deletion'==_0x15aeba&&(_0x18fe47['isRemoved']={'userId':_0x3a87ec})),0x0==_0x139e45['length'])break;}return _0xc142de;}['_refreshStartEndIndex'](_0x47e81d){const _0x385582=new Map();for(let _0x65c767=0x0;_0x65c767<_0x47e81d['length'];_0x65c767++)'text'===_0x47e81d[_0x65c767]['type']?(_0x47e81d[_0x65c767]['item']['startIndex']=_0x65c767,_0x47e81d[_0x65c767]['item']['endIndex']=_0x65c767):('elementStart'===_0x47e81d[_0x65c767]['type']?_0x47e81d[_0x65c767]['item']['startIndex']=_0x65c767:'elementEnd'===_0x47e81d[_0x65c767]['type']&&(_0x47e81d[_0x65c767]['item']['endIndex']=_0x65c767),_0x385582['set'](_0x47e81d[_0x65c767]['id'],_0x65c767));for(const _0x388d3c of _0x385582['values']())'elementStart'===_0x47e81d[_0x388d3c]['type']?_0x47e81d[_0x388d3c]['item']['endIndex']=_0x385582['get'](_0x47e81d[_0x388d3c]['pairId']):'elementEnd'===_0x47e81d[_0x388d3c]['type']&&(_0x47e81d[_0x388d3c]['item']['startIndex']=_0x385582['get'](_0x47e81d[_0x388d3c]['pairId']));}['_processTape'](_0x56cb63){for(let _0xaeb506=0x0;_0xaeb506<_0x56cb63['length'];_0xaeb506++){if('elementStart'===_0x56cb63[_0xaeb506]['type'])_0x56cb63[_0xaeb506]['item']['startIndex']=_0xaeb506;else{if('elementEnd'===_0x56cb63[_0xaeb506]['type']){_0x56cb63[_0xaeb506]['item']['endIndex']=_0xaeb506;const _0x43d7fc=_0x56cb63[_0xaeb506]['item']['startIndex'];_0x56cb63[_0x43d7fc]['pairId']=_0x56cb63[_0xaeb506]['id'],_0x56cb63[_0xaeb506]['pairId']=_0x56cb63[_0x43d7fc]['id'];}else _0x56cb63[_0xaeb506]['item']['startIndex']=_0xaeb506,_0x56cb63[_0xaeb506]['item']['endIndex']=_0xaeb506,_0x56cb63[_0xaeb506]['pairId']=null;}_0x56cb63[_0xaeb506]['markersStart']||(_0x56cb63[_0xaeb506]['markersStart']=[],_0x56cb63[_0xaeb506]['markersEnd']=[]);}}['_markInsertions'](_0x595475,_0x55491d){const _0x5b6eef=_0x595475['filter'](_0x1e8973=>!_0x1e8973['isAdded']);for(let _0x5de668=0x0;_0x5de668<_0x55491d['length'];_0x5de668++)_0x55491d[_0x5de668]['isAdded']&&(_0x5b6eef[_0x5de668]['isAdded']=_0x55491d[_0x5de668]['isAdded']);}['_makeModelFromViewString'](_0x47d12b){const _0x17e36a=JSON['parse'](_0x47d12b),_0x25c551=this['editor']['editing']['view']['document'],_0x23da6f=new _0x51b7f4(_0x25c551,_0x17e36a['map'](_0x379023=>this['_getViewObj'](_0x379023)));return this['editor']['data']['toModel'](_0x23da6f);}['_getViewObj'](_0x58945e){const _0x20f726=this['editor']['editing']['view']['document'];if('string'==typeof _0x58945e)return new _0x56c270(_0x20f726,_0x58945e);{const _0x2360bc=_0x58945e['children']['map'](_0x4500ed=>this['_getViewObj'](_0x4500ed));return new(Z[_0x58945e['type']]||_0x34cc4b)(_0x20f726,_0x58945e['name'],_0x58945e['attributes'],_0x2360bc);}}['_getDiff'](_0x455582,_0xadbb5c=null){const _0x358ad8=this['repository']['getRevision'](_0x455582),_0x3711a1=_0xadbb5c?this['repository']['getRevision'](_0xadbb5c):null,_0x77040a=this['_getRevisionsRange'](_0x358ad8,_0x3711a1),_0x5d7496=_0x77040a[_0x77040a['length']-0x1],_0x4cbc8f=new Map(),_0x4a9f43={'model':{},'attributes':{},'changes':[]},_0x4e74e5=new Set(),_0x39f7c2=new Map();for(let _0x3bbc42=_0x77040a['length']-0x1;_0x3bbc42>=0x0;_0x3bbc42--){const _0x38443b=_0x77040a[_0x3bbc42];for(const _0x177973 of Object['keys'](_0x38443b['diffData']))if(_0x38443b['diffData'][_0x177973]['attachChange']){const _0x161692=_0x38443b['diffData'][_0x177973]['attachChange'];_0x161692['isAttached']?(_0x4e74e5['add'](_0x177973),_0x39f7c2['has'](_0x177973)&&_0x39f7c2['get'](_0x177973)['userId']==_0x161692['userId']?_0x39f7c2['delete'](_0x177973):_0x39f7c2['set'](_0x177973,_0x161692)):_0x39f7c2['has'](_0x177973)?(_0x4e74e5['delete'](_0x177973),_0x39f7c2['delete'](_0x177973)):(_0x4e74e5['add'](_0x177973),_0x39f7c2['set'](_0x177973,_0x161692));}else _0x4e74e5['add'](_0x177973);}for(const _0x3347ac of _0x4e74e5){const _0x3533c4=_0x39f7c2['has'](_0x3347ac)&&!_0x39f7c2['get'](_0x3347ac)['isAttached'];let _0x2ccb72=_0x3533c4?_0x77040a['length']-0x1:0x0;const _0x587e04=_0x3533c4?-0x1:0x1;for(;_0x77040a[_0x2ccb72];){const _0x1fc92b=_0x77040a[_0x2ccb72];if(_0x1fc92b['diffData'][_0x3347ac]){const _0x520609=_0x3533c4?_0x1fc92b['diffData'][_0x3347ac]['attributesBefore']:_0x1fc92b['diffData'][_0x3347ac]['attributesAfter'];_0x4a9f43['attributes'][_0x3347ac]=_0x520609?_0x4c4f16(_0x520609):{};break;}_0x2ccb72+=_0x587e04;}}for(const _0x26f805 of _0x77040a){_0x26f805['model']={};for(const _0x450c09 of _0x26f805['authors'])_0x4cbc8f['set'](_0x450c09['id'],_0x450c09);for(const _0x335902 of _0x4e74e5){const _0x32a40f=_0x26f805['diffData'][_0x335902]?_0x26f805['diffData'][_0x335902]['insertions']:'[]',_0x50c30d=_0x26f805['diffData'][_0x335902]?_0x26f805['diffData'][_0x335902]['deletions']:'[]';_0x26f805['model'][_0x335902]={'insertions':this['_makeModelFromViewString'](_0x32a40f),'deletions':this['_makeModelFromViewString'](_0x50c30d)};}}for(const _0x40556e of _0x4e74e5){let _0xb8dc4d=null,_0x592a3a=0x0;const _0x13df92=new Map(Array['from'](_0x358ad8['model'][_0x40556e]['insertions']['markers'])['filter'](([_0x1cc2df])=>!_0x1cc2df['startsWith']('revision:')));let _0x20f2e6=0x0;for(const _0x13c1cf of _0x77040a){const _0x4d396e=this['_makeTape'](_0x13c1cf['model'][_0x40556e]['insertions']);_0x13c1cf==_0x358ad8?(_0xb8dc4d=_0x4d396e,_0x592a3a=_0xb8dc4d['length'],_0xb8dc4d['forEach'](_0x1c7a88=>{_0x1c7a88['id']=_0x20f2e6++;}),this['_processTape'](_0xb8dc4d)):this['_markInsertions'](_0xb8dc4d,_0x4d396e);const _0x117575=_0xb8dc4d['filter'](_0x297d4d=>!_0x297d4d['isAdded'])['map'](_0x33e2c0=>_0x33e2c0['id']);let _0x1c591c=0x0;const _0x420c4f=this['_makeTape'](_0x13c1cf['model'][_0x40556e]['deletions']);_0x420c4f['forEach'](_0x5dd186=>{_0x5dd186['isRemoved']?_0x5dd186['id']=_0x592a3a++:_0x5dd186['id']=_0x117575[_0x1c591c++];}),this['_processTape'](_0x420c4f),this['_setDistance'](_0xb8dc4d,'isAdded'),this['_setDistance'](_0x420c4f,'isRemoved'),_0x13c1cf==_0x358ad8&&this['_markMarkers'](_0xb8dc4d,_0x13df92),_0xb8dc4d=this['_joinTapes'](_0xb8dc4d,_0x420c4f),this['_refreshStartEndIndex'](_0xb8dc4d),this['_setDistance'](_0xb8dc4d,'isRemoved');}_0xb8dc4d=_0xb8dc4d['filter'](_0xb9e419=>!(_0xb9e419['isAdded']&&_0xb9e419['isRemoved']));const _0xbd312e=new Map(_0x5d7496['model'][_0x40556e]['deletions']['markers']),_0x769e2d=new Set(_0x13df92['keys']());for(const _0x3a3f54 of _0xbd312e['keys']())_0x769e2d['delete'](_0x3a3f54);this['_markSuggestions'](_0xb8dc4d,_0x769e2d),this['_fixObsoleteTags'](_0xb8dc4d),_0xb8dc4d=this['_removeMissingPairs'](_0xb8dc4d),_0xb8dc4d=this['_markMismatchedRemovedTags'](_0xb8dc4d),_0xb8dc4d=this['_removeUnsupportedChanges'](_0xb8dc4d);const {root:_0x2d6f01,changes:_0x180e9d}=this['_makeModelFromTape'](_0xb8dc4d,_0x4cbc8f,_0x40556e);_0x4a9f43['model'][_0x40556e]=_0x2d6f01;const _0x53afbb=_0x39f7c2['get'](_0x40556e);if(_0x53afbb){const _0x4d3042=_0x4cbc8f['get'](_0x53afbb['userId']),_0x4ab3c6=new r({'author':_0x4d3042,'type':_0x53afbb['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x40556e});_0x180e9d['unshift'](_0x4ab3c6),_0x4a9f43['attributes'][_0x40556e]['revisionHistoryAttachChange']=_0x4ab3c6['id'];}_0x4a9f43['changes']=_0x4a9f43['changes']['concat'](_0x180e9d);}return _0x4a9f43;}['_markMarkers'](_0x354585,_0x425651){for(let _0x32c00b=0x0;_0x32c00b<_0x354585['length'];_0x32c00b++)for(const [_0x4b47a0,_0x351eb9]of _0x425651)_0x351eb9['start']['isEqual'](_0x354585[_0x32c00b]['previousPosition'])&&_0x354585[_0x32c00b]['markersStart']['push'](_0x4b47a0),_0x351eb9['end']['isEqual'](_0x354585[_0x32c00b]['nextPosition'])&&_0x354585[_0x32c00b]['markersEnd']['push'](_0x4b47a0);}['_joinTapes'](_0x17576e,_0x1db8b4){let _0x5793cc=[],_0x4a80fc=0x0,_0x228115=0x0;for(;_0x4a80fc<_0x17576e['length']||_0x228115<_0x1db8b4['length'];){const _0x5e74e8=_0x17576e[_0x4a80fc]||{},_0x1c683a=_0x1db8b4[_0x228115]||{};if(_0x5e74e8['id']==_0x1c683a['id'])_0x4a80fc++,_0x228115++,_0x5793cc['push'](_0x5e74e8);else{if(_0x1c683a['isRemoved']&&_0x5e74e8['isAdded']){const {commonTape:_0xdc599b,iEnd:_0x4580a5,jEnd:_0x196610}=this['_threeWayMerge'](_0x17576e,_0x4a80fc,_0x1db8b4,_0x228115);_0x5793cc=_0x5793cc['concat'](_0xdc599b),_0x4a80fc=_0x4580a5,_0x228115=_0x196610;}else _0x1c683a['isRemoved']?(_0x228115++,_0x5793cc['push'](_0x1c683a)):(_0x4a80fc++,_0x5793cc['push'](_0x5e74e8));}}return _0x5793cc;}['_markSuggestions'](_0x43ed5c,_0x39eef5){const _0x412f5e=[];for(let _0x199443=0x0;_0x199443<_0x43ed5c['length'];_0x199443++){for(let _0xe11a4e=0x0;_0xe11a4e<_0x43ed5c[_0x199443]['markersStart']['length'];_0xe11a4e++){const _0x51d1bc=_0x43ed5c[_0x199443]['markersStart'][_0xe11a4e];if(!_0x39eef5['has'](_0x51d1bc))continue;const {group:_0x158924,type:_0x22325f,authorId:_0x1ad749}=_0x1f8d1d(_0x51d1bc);'revision-suggestion'!=_0x158924||'insertion'!=_0x22325f&&'deletion'!=_0x22325f||(_0x412f5e['unshift']({'type':_0x22325f,'name':_0x51d1bc,'userId':_0x1ad749}),_0x43ed5c[_0x199443]['markersStart']['splice'](_0xe11a4e,0x1),_0xe11a4e--);}_0x42b7ef(_0x43ed5c[_0x199443]);for(let _0x356baf=0x0;_0x356baf<_0x43ed5c[_0x199443]['markersEnd']['length'];_0x356baf++){const _0x5a0fbb=_0x43ed5c[_0x199443]['markersEnd'][_0x356baf];if(!_0x39eef5['has'](_0x5a0fbb))continue;const {group:_0x2b8112,type:_0x4250a0}=_0x1f8d1d(_0x5a0fbb);if('revision-suggestion'!=_0x2b8112||'insertion'!=_0x4250a0&&'deletion'!=_0x4250a0)continue;_0x43ed5c[_0x199443]['markersEnd']['splice'](_0x356baf,0x1),_0x356baf--;const _0x372d30=_0x412f5e['findIndex'](_0x2b2132=>_0x2b2132['name']==_0x5a0fbb);_0x372d30>-0x1&&_0x412f5e['splice'](_0x372d30,0x1);}}function _0x1f8d1d(_0x3d53bf){const _0x3232b5=_0x3d53bf['split'](':');return{'group':_0x3232b5[0x0],'type':_0x3232b5[0x1],'subType':_0x3232b5['length']>=0x5?_0x3232b5[0x2]:null,'id':_0x3232b5['length']<0x5?_0x3232b5[0x2]:_0x3232b5[0x3],'authorId':_0x3232b5['length']<0x5?_0x3232b5[0x3]:_0x3232b5[0x4],'markerCount':0x6==_0x3232b5['length']?_0x3232b5[0x5]:null};}function _0x42b7ef(_0x47c537){for(let _0x191662=0x0;_0x191662<_0x412f5e['length'];_0x191662++){if(_0x47c537['isAdded']&&'insertion'==_0x412f5e[_0x191662]['type'])return _0x47c537['isAddSuggestion']=_0x412f5e[_0x191662],void delete _0x47c537['isAdded'];if(!_0x47c537['isAdded']&&!_0x47c537['isRemoved']&&'deletion'==_0x412f5e[_0x191662]['type'])return void(_0x47c537['isRemoveSuggestion']=_0x412f5e[_0x191662]);}}}['_setDistance'](_0x492c95,_0x2c68b4){let _0x1f65b5=0x0,_0x38c331=!0x1;const _0x5a8f2b=new Map();for(const _0x4d6c3d of _0x492c95)_0x4d6c3d[_0x2c68b4]?_0x38c331&&(_0x1f65b5++,_0x38c331=!0x1):(_0x1f65b5++,_0x38c331=!0x0),_0x5a8f2b['set'](_0x4d6c3d['id'],_0x1f65b5);for(let _0x3c4a49=0x0;_0x3c4a49<_0x492c95['length'];_0x3c4a49++){if('isRemoved'==_0x2c68b4&&_0x492c95[_0x3c4a49]['isAdded']||'isAdded'==_0x2c68b4&&_0x492c95[_0x3c4a49]['isRemoved'])continue;if('text'==_0x492c95[_0x3c4a49]['type']){_0x492c95[_0x3c4a49]['distance']=0x0;continue;}const _0x2645ba=_0x5a8f2b['get'](_0x492c95[_0x3c4a49]['pairId']),_0x10012b=_0x5a8f2b['get'](_0x492c95[_0x3c4a49]['id']);_0x492c95[_0x3c4a49]['distance']=_0x2645ba-_0x10012b;}}['_getRevisionsRange'](_0x446fae,_0x55f315,_0x3f7883=!0x1){const _0x416f78=[];let _0x312169=this['repository']['getIndex'](_0x446fae),_0x3e2049=this['repository']['getIndex'](_0x55f315);for(-0x1==_0x3e2049&&(_0x3e2049=this['repository']['_revisions']['length'],_0x3f7883=!0x1);_0x312169<_0x3e2049;)_0x416f78['push'](this['repository']['getRevision'](_0x312169)),_0x312169++;return _0x3f7883&&_0x416f78['push'](this['repository']['getRevision'](_0x312169)),_0x416f78;}['_threeWayMerge'](_0x49ca6d,_0x214553,_0x25f552,_0x28e208){const _0x5726f6=this['editor']['model']['schema'];let _0x372d99=_0x214553;for(;_0x49ca6d[_0x372d99]&&_0x49ca6d[_0x372d99]['isAdded'];)_0x372d99++;let _0x485d30=_0x28e208;for(;_0x25f552[_0x485d30]&&_0x25f552[_0x485d30]['isRemoved'];)_0x485d30++;_0x30823c(_0x49ca6d,_0x214553,_0x372d99),_0x30823c(_0x25f552,_0x28e208,_0x485d30);const _0x4b299c=_0x25f552['slice'](_0x28e208,_0x485d30)['concat'](_0x49ca6d['slice'](_0x214553,_0x372d99));return _0x4b299c['sort']((_0x506be4,_0x42a279)=>_0x506be4['side']!=_0x42a279['side']?_0x506be4['side']-_0x42a279['side']:_0x506be4['level']!=_0x42a279['level']?_0x506be4['level']-_0x42a279['level']:_0x506be4['distance']!=_0x42a279['distance']?_0x42a279['distance']-_0x506be4['distance']:!!_0x506be4['isAdded']!=!!_0x42a279['isAdded']?-0x1==_0x506be4['side']||0x0==_0x506be4['side']?_0x506be4['isAdded']?-0x1:0x1:_0x506be4['isAdded']?0x1:-0x1:_0x506be4['index']-_0x42a279['index']),{'commonTape':_0x4b299c,'iEnd':_0x372d99,'jEnd':_0x485d30};function _0x30823c(_0xf2c2f3,_0x4cdfb3,_0x398dd5){let _0x5f02c3=-0x1,_0x237fce=Number['POSITIVE_INFINITY'],_0x43eff9=!0x0;for(let _0x28fe3a=_0x4cdfb3;_0x28fe3a<_0x398dd5;_0x28fe3a++)if(_0x5726f6['isInline'](_0xf2c2f3[_0x28fe3a]['item'])||(_0x43eff9=!0x1),_0xf2c2f3[_0x28fe3a]['item']['startIndex']<_0x4cdfb3&&(_0x5f02c3=_0x28fe3a),_0xf2c2f3[_0x28fe3a]['item']['endIndex']>=_0x398dd5){_0x237fce=_0x28fe3a;break;}_0x43eff9&&(_0x5f02c3=_0x398dd5-0x1);for(let _0x40aace=_0x4cdfb3;_0x40aace<_0x398dd5;_0x40aace++)_0xf2c2f3[_0x40aace]['side']=_0x40aace<=_0x5f02c3?-0x1:_0x40aace<_0x237fce?0x0:0x1,_0xf2c2f3[_0x40aace]['index']=_0x40aace;let _0x3afc16=0x0;for(let _0x7fa80a=_0x4cdfb3;_0x7fa80a<=_0x5f02c3;_0x7fa80a++)0x0==_0xf2c2f3[_0x7fa80a]['distance']?_0xf2c2f3[_0x7fa80a]['level']=_0x3afc16:(_0x3afc16++,_0xf2c2f3[_0x7fa80a]['level']=_0x3afc16,_0x3afc16++);for(let _0x6d6667=_0x4cdfb3;_0x6d6667<_0x398dd5;_0x6d6667++)0x0==_0xf2c2f3[_0x6d6667]['side']&&(_0xf2c2f3[_0x6d6667]['level']=_0x3afc16);_0x3afc16=0x0;for(let _0x562ad4=_0x398dd5-0x1;_0x562ad4>=_0x237fce;_0x562ad4--)0x0==_0xf2c2f3[_0x562ad4]['distance']?_0xf2c2f3[_0x562ad4]['level']=_0x3afc16:(_0x3afc16--,_0xf2c2f3[_0x562ad4]['level']=_0x3afc16,_0x3afc16--);}}['_fixObsoleteTags'](_0x152e28){const _0x27bd84=new Map(),_0x252211=this['editor']['model']['schema'];for(let _0x241c09=0x1;_0x241c09<_0x152e28['length'];_0x241c09++){let _0x53377e,_0x2b3182,_0x5df50;const _0x5bb684=_0x152e28[_0x241c09],_0x389b93=_0x152e28[_0x241c09-0x1];if('text'==_0x5bb684['type'])continue;if(_0x5bb684['type']!=_0x389b93['type'])continue;if(!_0x252211['isBlock'](_0x389b93['item'])||_0x252211['isLimit'](_0x389b93['item']))continue;if(!_0x252211['isBlock'](_0x5bb684['item'])||_0x252211['isLimit'](_0x5bb684['item']))continue;if((_0x152e28[_0x241c09]['isAdded']||_0x152e28[_0x241c09]['isAddSuggestion'])&&_0x152e28[_0x241c09-0x1]['isRemoved'])_0x53377e=_0x152e28[_0x241c09],_0x2b3182=_0x152e28[_0x241c09-0x1],_0x5df50=_0x241c09-0x1;else{if(!_0x152e28[_0x241c09]['isRemoved']||!_0x152e28[_0x241c09-0x1]['isAdded']&&!_0x152e28[_0x241c09-0x1]['isAddSuggestion'])continue;_0x53377e=_0x152e28[_0x241c09-0x1],_0x2b3182=_0x152e28[_0x241c09],_0x5df50=_0x241c09;}const _0x351f7c=_0x53377e['level']==_0x2b3182['level'],_0x47e945=Math['abs'](_0x53377e['level'])<Math['abs'](_0x2b3182['level'])&&0x0==_0x2b3182['distance'];(_0x351f7c||_0x47e945)&&(_0x27bd84['set'](_0x2b3182['id'],_0x53377e['id']),_0x152e28['splice'](_0x5df50,0x1),_0x241c09--,_0x53377e['isAdded']=!0x1);}for(let _0x133f7b=0x0;_0x133f7b<_0x152e28['length'];_0x133f7b++)_0x27bd84['has'](_0x152e28[_0x133f7b]['pairId'])&&(_0x152e28[_0x133f7b]['pairId']=_0x27bd84['get'](_0x152e28[_0x133f7b]['pairId']));}['_removeMissingPairs'](_0x1d329f){const _0x39c48a=new Set(_0x1d329f['map'](_0xe15adc=>_0xe15adc['id']));for(let _0x580d7a=0x0;_0x580d7a<_0x1d329f['length'];_0x580d7a++)_0x39c48a['has'](_0x1d329f[_0x580d7a]['pairId'])||0x0==_0x1d329f[_0x580d7a]['distance']||(_0x1d329f[_0x580d7a]['isIncorrect']=!0x0);return _0x1d329f['filter'](_0x1a17ad=>!_0x1a17ad['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41efff){const _0x257dc2=new Set();for(let _0x28fcb2=0x0;_0x28fcb2<_0x41efff['length'];_0x28fcb2++){if(_0x257dc2['has'](_0x41efff[_0x28fcb2]['id'])&&_0x41efff[_0x28fcb2]['isRemoved']&&(_0x41efff[_0x28fcb2]['isIncorrect']=!0x0),_0x41efff[_0x28fcb2]['isIncorrect'])continue;if(0x0==_0x41efff[_0x28fcb2]['distance'])continue;if('elementStart'!=_0x41efff[_0x28fcb2]['type'])continue;if(null==_0x41efff[_0x28fcb2]['pairId'])continue;let _0xbb93c6=_0x28fcb2+0x1,_0x20a743=0x0;for(;_0x41efff[_0xbb93c6]['id']!=_0x41efff[_0x28fcb2]['pairId'];)'elementStart'==_0x41efff[_0xbb93c6]['type']?_0x20a743++:'elementEnd'==_0x41efff[_0xbb93c6]['type']&&_0x20a743--,_0xbb93c6++;if(0x0!=_0x20a743){if(_0x41efff[_0x28fcb2]['isRemoved'])_0x41efff[_0x28fcb2]['isIncorrect']=!0x0;else{for(;_0xbb93c6!=_0x28fcb2;)_0x41efff[_0xbb93c6]['isRemoved']&&0x0!=_0x41efff[_0xbb93c6]['distance']&&(_0x41efff[_0xbb93c6]['isIncorrect']=!0x0,_0x257dc2['add'](_0x41efff[_0xbb93c6]['pairId'])),_0xbb93c6--;}}}return _0x41efff['filter'](_0x386f23=>!_0x386f23['isIncorrect']);}['_removeUnsupportedChanges'](_0x46d61a){const _0x34e9a3=this['editor']['model']['schema'];for(let _0x16ece8=0x0;_0x16ece8<_0x46d61a['length'];_0x16ece8++){if(!(_0x46d61a[_0x16ece8]['isAdded']||_0x46d61a[_0x16ece8]['isAddSuggestion']||_0x46d61a[_0x16ece8]['isRemoved']||_0x46d61a[_0x16ece8]['isRemoveSuggestion']))continue;if(0x0==_0x46d61a[_0x16ece8]['distance'])continue;const _0x1e3132=_0x46d61a[_0x16ece8]['item'];_0x34e9a3['isBlock'](_0x1e3132)||_0x34e9a3['isLimit'](_0x1e3132)||(_0x46d61a[_0x16ece8]['isAdded']&&delete _0x46d61a[_0x16ece8]['isAdded'],_0x46d61a[_0x16ece8]['isAddSuggestion']&&delete _0x46d61a[_0x16ece8]['isAddSuggestion'],_0x46d61a[_0x16ece8]['isRemoveSuggestion']&&delete _0x46d61a[_0x16ece8]['isRemoveSuggestion'],_0x46d61a[_0x16ece8]['isRemoved']&&(_0x46d61a[_0x16ece8]['isIncorrect']=!0x0));}return _0x46d61a['filter'](_0x47f1b8=>!_0x47f1b8['isIncorrect']);}['_makeModelFromTape'](_0x374b90,_0x32cf63,_0x2a0713){const _0x3ade6a=new wt(),_0x1129f9=[],_0x107301=new Map(),_0x586767=this['editor']['model'],_0x4461bf=_0x586767['schema'],_0x5ca4fd=[_0x3ade6a],_0x964d5e={},_0x27b647={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1a5d80=null;const _0x278175=[0x0];for(let _0x186917=0x0;_0x186917<_0x374b90['length'];_0x186917++)if('elementStart'===_0x374b90[_0x186917]['type']){_0x374b90[_0x186917]['previousPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175);const _0x5e9b44=new ft(_0x374b90[_0x186917]['item']['name'],_0x374b90[_0x186917]['item']['getAttributes']());_0x5ca4fd[0x0]['_appendChild'](_0x5e9b44),_0x278175['push'](0x0),_0x5ca4fd['unshift'](_0x5e9b44),_0x374b90[_0x186917]['nextPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175);}else'elementEnd'===_0x374b90[_0x186917]['type']?(_0x5ca4fd['shift'](),_0x374b90[_0x186917]['previousPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175),_0x278175['pop'](),_0x278175[_0x278175['length']-0x1]++,_0x374b90[_0x186917]['nextPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175)):(_0x374b90[_0x186917]['previousPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175),_0x1a5d80?_0x1a5d80['_data']+=_0x374b90[_0x186917]['item']['data']:_0x1a5d80=new _t(_0x374b90[_0x186917]['item']['data'],_0x374b90[_0x186917]['item']['getAttributes']()),_0x374b90[_0x186917+0x1]&&'text'===_0x374b90[_0x186917+0x1]['type']&&_0x4b1541(_0x1a5d80,_0x374b90[_0x186917+0x1]['item'])||(_0x5ca4fd[0x0]['_appendChild'](_0x1a5d80),_0x1a5d80=null),_0x278175[_0x278175['length']-0x1]+=_0x374b90[_0x186917]['item']['offsetSize'],_0x374b90[_0x186917]['nextPosition']=_0x586767['createPositionFromPath'](_0x3ade6a,_0x278175));for(let _0x54b4f=0x0;_0x54b4f<_0x374b90['length'];_0x54b4f++){const _0x5a06cb=_0x374b90[_0x54b4f]['previousPosition'],_0x5e94b7=_0x374b90[_0x54b4f]['nextPosition'];for(const _0x551360 of _0x374b90[_0x54b4f]['markersStart'])_0x107301['set'](_0x551360,{'start':_0x5a06cb,'end':null});_0x4be77d('isRemoveSuggestion',_0x54b4f,_0x5a06cb,_0x5e94b7),_0x4be77d('isAddSuggestion',_0x54b4f,_0x5a06cb,_0x5e94b7),_0x4be77d('isRemoved',_0x54b4f,_0x5a06cb,_0x5e94b7),_0x4be77d('isAdded',_0x54b4f,_0x5a06cb,_0x5e94b7);for(const _0x43f903 of _0x374b90[_0x54b4f]['markersEnd']){_0x107301['get'](_0x43f903)['end']=_0x5e94b7;}}for(const [_0x220f43,_0x412965]of _0x107301){const _0x399f30=this['editor']['model']['createRange'](_0x412965['start'],_0x412965['end']);_0x3ade6a['markers']['set'](_0x220f43,_0x399f30);}return _0x1129f9['sort']((_0x4c2a75,_0xdc5900)=>{const _0x25b2c1=_0x3ade6a['markers']['get']('revision:'+_0x4c2a75['id']),_0x3a2d79=_0x3ade6a['markers']['get']('revision:'+_0xdc5900['id']);return _0x25b2c1['start']['isBefore'](_0x3a2d79['start'])?-0x1:_0x25b2c1['start']['isAfter'](_0x3a2d79['start'])?0x1:_0x25b2c1['end']['isBefore'](_0x3a2d79['end'])?-0x1:_0x25b2c1['end']['isAfter'](_0x3a2d79['end'])?0x1:'add'===_0x4c2a75['type']?-0x1:0x1;}),{'root':_0x3ade6a,'changes':_0x1129f9};function _0x4be77d(_0x2a9e3b,_0x4d63b9,_0x19e5b7,_0x47d3ac){const _0x237da4=!!_0x374b90[_0x4d63b9][_0x2a9e3b],_0x2bbf40=_0x237da4?_0x374b90[_0x4d63b9][_0x2a9e3b]['userId']:null,_0x3e1257=_0x4d63b9===_0x374b90['length']-0x1,_0x688f2e=_0x27b647[_0x2a9e3b][0x0],_0x1165cb=_0x4461bf['isObject'](_0x374b90[_0x4d63b9]['item']);!_0x964d5e[_0x2a9e3b]&&_0x237da4?_0x964d5e[_0x2a9e3b]={'start':_0x19e5b7,'tapeItem':_0x374b90[_0x4d63b9],'userId':_0x2bbf40,'type':_0x2a9e3b}:_0x964d5e[_0x2a9e3b]&&!_0x237da4?(_0x964d5e[_0x2a9e3b]['end']=_0x19e5b7,_0x56ba93(_0x964d5e[_0x2a9e3b]),_0x964d5e[_0x2a9e3b]=null):_0x964d5e[_0x2a9e3b]&&_0x237da4&&_0x964d5e[_0x2a9e3b]['userId']!==_0x2bbf40&&(_0x964d5e[_0x2a9e3b]['end']=_0x19e5b7,_0x688f2e&&_0x688f2e['userId']===_0x964d5e[_0x2a9e3b]['userId']||_0x56ba93(_0x964d5e[_0x2a9e3b]),_0x964d5e[_0x2a9e3b]={'start':_0x19e5b7,'tapeItem':_0x374b90[_0x4d63b9],'userId':_0x2bbf40,'type':_0x2a9e3b}),_0x964d5e[_0x2a9e3b]&&_0x1165cb&&('elementStart'!==_0x374b90[_0x4d63b9]['type']||_0x688f2e&&_0x688f2e['userId']===_0x2bbf40||_0x27b647[_0x2a9e3b]['unshift']({'userId':_0x2bbf40,'object':_0x374b90[_0x4d63b9]['item'],'change':_0x964d5e[_0x2a9e3b]}),'elementEnd'===_0x374b90[_0x4d63b9]['type']&&_0x688f2e&&_0x688f2e['object']===_0x374b90[_0x4d63b9]['item']&&(_0x27b647[_0x2a9e3b]['shift'](),_0x964d5e[_0x2a9e3b]=_0x688f2e['change'])),_0x964d5e[_0x2a9e3b]&&_0x3e1257&&(_0x964d5e[_0x2a9e3b]['end']=_0x47d3ac,_0x56ba93(_0x964d5e[_0x2a9e3b]),_0x964d5e[_0x2a9e3b]=null);}function _0x56ba93({start:_0x1deed7,end:_0x3a9cbf,tapeItem:_0x28f66a,userId:_0x39f8f8,type:_0x30e012}){const _0x140522=_0x28f66a['item'],_0x153000=_0x586767['schema']['isBlock'](_0x140522)&&!_0x586767['schema']['isLimit'](_0x140522),_0x4220d4=_0x1deed7['nodeAfter']==_0x3a9cbf['parent']&&_0x3a9cbf['isAtStart'];if(_0x153000&&_0x4220d4)return;const _0x362fab=_0x586767['createRange'](_0x1deed7,_0x3a9cbf),_0x4e2582=_0x32cf63['get'](_0x39f8f8),_0x12cf31=new r({'author':_0x4e2582,'type':'isAdded'==_0x30e012||'isAddSuggestion'==_0x30e012?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x30e012||'isRemoveSuggestion'==_0x30e012},'createdAt':new Date(),'rootName':_0x2a0713});_0x1129f9['push'](_0x12cf31),_0x3ade6a['markers']['set']('revision:'+_0x12cf31['id'],_0x362fab);}function _0x4b1541(_0x524023,_0x27b14f){const _0x2c01a6=_0x524023['getAttributes'](),_0xc1a6c9=_0x27b14f['getAttributes']();for(const _0x2f5ad4 of _0x2c01a6){if(_0x2f5ad4[0x1]!==_0x27b14f['getAttribute'](_0x2f5ad4[0x0]))return!0x1;_0xc1a6c9['next']();}return _0xc1a6c9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4953be=>{const _0x1b4633=_0x4953be['markerName']['split'](':')[0x1],_0x1dabef=this['_getChangeFromId'](_0x1b4633);if(!_0x1dabef)return null;const _0x49074b='add'==_0x1dabef['type']?'insertion':'deletion',_0x106b6b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x49074b];return _0x1dabef['data']['isSuggestion']&&_0x106b6b['push']('ck-suggestion-marker-'+_0x49074b+'-new'),this['activeChange']==_0x1dabef&&_0x106b6b['push']('ck-suggestion-marker--active'),{'classes':_0x106b6b,'attributes':{'data-change-id':_0x1b4633}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x511373=>{_0x511373['on']('element:pre',(_0x5620a2,_0x4e4567,_0x2db512)=>{const _0x45a999=_0x4e4567['viewItem']['getChild'](0x0);if(!_0x45a999||!_0x45a999['is']('element','code'))return;if(!_0x2db512['consumable']['consume'](_0x45a999,{'attributes':['vid_start','vid_end']}))return;const _0x21566e=_0x4e4567['modelRange']['start']['nodeAfter'];_0x2db512['writer']['setAttribute']('vid_start',_0x45a999['getAttribute']('vid_start'),_0x21566e),_0x2db512['writer']['setAttribute']('vid_end',_0x45a999['getAttribute']('vid_end'),_0x21566e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xcfb7bd=>{_0xcfb7bd['on']('element',(_0x2378af,_0x302c78,_0x1225cd)=>{if(!_0x1225cd['consumable']['consume'](_0x302c78['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x302c78['modelRange']['isCollapsed'])return;const _0x3ea005=_0x302c78['modelRange']['start']['nodeAfter'];_0x3ea005['hasAttribute']('vid_start')||_0x3ea005['hasAttribute']('vid')||(_0x1225cd['writer']['setAttribute']('vid_start',_0x302c78['viewItem']['getAttribute']('vid_start'),_0x3ea005),_0x1225cd['writer']['setAttribute']('vid_end',_0x302c78['viewItem']['getAttribute']('vid_end'),_0x3ea005));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb92a63=>_0xb92a63['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x133f33,[,_0x535e66])=>{['vid_start','vid_end','vid']['includes'](_0x535e66)&&(_0x133f33['return']=!0x0,_0x133f33['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x243404=>{_0x243404['on']('attribute:vid',(_0x3305b1,_0x3875af,_0x1c03fa)=>{if('\x20'!=_0x3875af['item']['data']||_0x3875af['item']['parent']['maxOffset']>0x1)return;if(!_0x1c03fa['consumable']['consume'](_0x3875af['item'],_0x3305b1['name']))return;const _0x1e9a3a=_0x1c03fa['writer'],_0x14e3e2=_0x1c03fa['mapper']['toViewRange'](_0x3875af['range']);_0x1e9a3a['wrap'](_0x14e3e2,_0x1e9a3a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x588540){const _0x2bcebc=_0x588540['plugins']['get']('RevisionViewer');return(_0x469750,_0x50733a,_0x3aa8f9)=>{const _0x2e4aa2=_0x50733a['markerName']['split'](':')[0x1],_0x2c6e0f=_0x2bcebc['_getChangeFromId'](_0x2e4aa2);if(!_0x2c6e0f)return null;const _0x27c414='add'==_0x2c6e0f['type']?'split':'merge';if(!_0x3aa8f9['consumable']['test'](_0x50733a['markerRange'],_0x469750['name']))return;const _0x31c994=_0x50733a['markerRange']['getWalker'](),_0x31c137=_0x50733a['markerRange']['start'],_0x95ca6d=_0x588540['model']['schema'];let _0x5d72c3=null,_0x3ea423=null,_0x3e8fe1=!0x1,_0xb9a81d=!0x1;for(const _0x430aa4 of _0x31c994){const _0x57de8d=_0x430aa4['item'];_0x3e8fe1=_0x3e8fe1||_0x95ca6d['isContent'](_0x57de8d);const _0x132bca=_0x3aa8f9['mapper']['toViewElement'](_0x57de8d);if(_0x132bca&&_0x132bca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x430aa4['type']&&(_0x95ca6d['isBlock'](_0x57de8d)&&!_0x95ca6d['isLimit'](_0x57de8d)&&(_0x57de8d['nextSibling']||_0x31c137['isAtEnd']?_0x5d72c3&&_0x5d72c3['parent']==_0x57de8d||(_0x5d72c3=_0x57de8d,_0xfef3aa(_0x430aa4['previousPosition']),_0xb9a81d=!0x0):_0x3ea423=_0x3ea423||_0x430aa4['previousPosition']));}function _0xfef3aa(_0x2ea0dc){const _0x2c06ff=_0x3aa8f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x27c414}),_0x3ecd57=_0x3aa8f9['mapper']['toViewPosition'](_0x2ea0dc);_0x2c6e0f['data']['isSuggestion']&&_0x3aa8f9['writer']['addClass']('ck-suggestion-marker-'+_0x27c414+'-new',_0x2c06ff),_0x2bcebc['activeChange']==_0x2c6e0f&&_0x3aa8f9['writer']['addClass']('ck-suggestion-marker--active',_0x2c06ff),_0x3aa8f9['writer']['insert'](_0x3ecd57,_0x2c06ff),_0x3aa8f9['mapper']['bindElementToMarker'](_0x2c06ff,_0x50733a['markerName']);}_0x3e8fe1||_0xb9a81d||!_0x3ea423||_0xfef3aa(_0x3ea423);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3f5d27,_0x379cda,_0x58d52c)=>{const _0x4475da=_0x58d52c['mapper']['markerNameToElements'](_0x379cda['markerName']);if(_0x4475da){for(const _0x218a86 of _0x4475da)(_0x218a86['hasClass']('ck-suggestion-marker-split')||_0x218a86['hasClass']('ck-suggestion-marker-merge'))&&(_0x58d52c['mapper']['unbindElementFromMarkerName'](_0x218a86,_0x379cda['markerName']),_0x58d52c['writer']['remove'](_0x218a86));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x18b99f,_0x191007,_0x1efc71)=>{const _0xfd4aaf=_0x191007['markerName']['split'](':')[0x1],_0x3f411d=this['_getChangeFromId'](_0xfd4aaf);if(!_0x3f411d)return null;const _0x2012a1='add'==_0x3f411d['type']?'split':'merge';if(_0x1efc71['consumable']['test'](_0x191007['markerRange'],_0x18b99f['name']))for(const _0x4904ba of _0x191007['markerRange']['getItems']()){if(!_0x4904ba['is']('element','softBreak'))continue;const _0x5a2101=_0x1efc71['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2012a1}),_0x39c81a=_0x1efc71['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4904ba));_0x3f411d['data']['isSuggestion']&&_0x1efc71['writer']['addClass']('ck-suggestion-marker-'+_0x2012a1+'-new',_0x5a2101),this['activeChange']==_0x3f411d&&_0x1efc71['writer']['addClass']('ck-suggestion-marker--active',_0x5a2101),_0x1efc71['writer']['insert'](_0x39c81a,_0x5a2101),_0x1efc71['mapper']['bindElementToMarker'](_0x5a2101,_0x191007['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x52d2bc=>{for(const _0x56bcdc of this['editor']['model']['document']['getRootNames']()){const _0xc1c8c8=this['editor']['model']['document']['getRoot'](_0x56bcdc),_0x4c4bee=this['editor']['editing']['view']['document']['getRoot'](_0x56bcdc);if(_0x4c4bee){const _0xfcaf53=_0xc1c8c8['getAttribute']('revisionHistoryAttachChange');if(_0x52d2bc['removeAttribute']('data-change-id',_0x4c4bee),_0x52d2bc['removeClass']('ck-revision-history-root-add',_0x4c4bee),_0x52d2bc['removeClass']('ck-revision-history-root-remove',_0x4c4bee),_0x52d2bc['removeClass']('ck-revision-history-root--active',_0x4c4bee),_0xfcaf53){const _0x1ca059=this['_getChangeFromId'](_0xfcaf53);if(!_0x1ca059)return null;_0x52d2bc['setAttribute']('data-change-id',_0xfcaf53,_0x4c4bee),_0x52d2bc['addClass']('ck-revision-history-root-'+_0x1ca059['type'],_0x4c4bee),this['activeChange']==_0x1ca059&&_0x52d2bc['addClass']('ck-revision-history-root--active',_0x4c4bee);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x388295=>'revision-comment:'+_0x388295,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3eb036=>'revision-suggestion:'+_0x3eb036,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x18ea8e=>({'name':'suggestion:'+_0x18ea8e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1bc73d=>{const _0x58219c=_0x1bc73d['markerName']['split'](':')[0x1];return'insertion'!=_0x58219c&&'deletion'!=_0x58219c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x58219c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2472f3,_0x34e221,_0x58b597)=>{const _0x17c3a7=_0x58b597['mapper']['markerNameToElements'](_0x34e221['markerName']);if(_0x17c3a7){for(const _0x29ec8f of _0x17c3a7)_0x29ec8f['is']('uiElement')&&(_0x58b597['mapper']['unbindElementFromMarkerName'](_0x29ec8f,_0x34e221['markerName']),_0x58b597['writer']['remove'](_0x29ec8f));}},{'priority':'high'});}['_getChangeFromId'](_0x2c5bab){return this['_changeIdToChange']['get'](_0x2c5bab);}['_getViewForChange'](_0xc13821){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0xc13821),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x34faa8,_0xf155c9,_0x3c612f,_0x5a15b6)=>{_0x5a15b6&&this['_balloon']['remove'](_0x5a15b6),_0x3c612f&&(this['_balloon']['add']({'view':_0x3c612f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2bb688=this['editor']['editing'],_0x1b7758=this['_getChangeFromId'](_0x3c612f['changeId']);let _0x5b05a0;if(_0x1b7758['data']['isOnRoot']){const _0x6bdfa0=_0x2bb688['view']['getDomRoot'](_0x1b7758['rootName']);_0x5b05a0=Array['from'](_0x6bdfa0['getClientRects']());}else{const _0x6381e9=this['editor']['model']['markers']['get']('revision:'+_0x3c612f['changeId']);_0x5b05a0=Array['from'](_0x2bb688['mapper']['markerNameToElements'](_0x6381e9['name']))['map'](_0x46b387=>_0x2bb688['view']['domConverter']['mapViewToDom'](_0x46b387))['map'](_0x213975=>Array['from'](_0x213975['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5b05a0[0x0];return _0x5b05a0['find'](_0x2f0c57=>_0x2f0c57['top']-0x3<=this['_activeViewTarget']['y']&&_0x2f0c57['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2f0c57['left']-0x3<=this['_activeViewTarget']['x']&&_0x2f0c57['right']+0x3>=this['_activeViewTarget']['x'])||_0x5b05a0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x177e25,_0x34eea1,_0x4acc72,_0x580e78)=>{this['activeView']=_0x4acc72?this['_getViewForChange'](_0x4acc72):null,this['editor']['model']['change'](()=>{const _0x4fbf41=this['editor']['editing'];_0x580e78&&(_0x580e78['data']['isOnRoot']?_0x4fbf41['view']['change'](_0xa4be64=>{_0xa4be64['removeClass']('ck-revision-history-root--active',_0x4fbf41['view']['document']['getRoot'](_0x580e78['rootName']));}):_0x4fbf41['reconvertMarker']('revision:'+_0x580e78['id'])),_0x4acc72&&(_0x4acc72['data']['isOnRoot']?_0x4fbf41['view']['change'](_0x381c6b=>{_0x381c6b['addClass']('ck-revision-history-root--active',_0x4fbf41['view']['document']['getRoot'](_0x4acc72['rootName']));}):_0x4fbf41['reconvertMarker']('revision:'+_0x4acc72['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3c69f0,_0x1df77d)=>{if(this['activeChange'])return;const _0x18e683=this['_findChangeIdFromDomTarget'](_0x1df77d['target']),_0x44a930=this['_changeIdToChange']['get'](_0x18e683);_0x44a930?(this['_activeViewTarget']={'x':_0x1df77d['domEvent']['x'],'y':_0x1df77d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x44a930)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2bf569,_0x174142)=>{const _0x21c056=this['_findChangeIdFromDomTarget'](_0x174142['target']),_0x5823f4=this['_changeIdToChange']['get'](_0x21c056);_0x5823f4?(this['_activeViewTarget']={'x':_0x174142['domEvent']['x'],'y':_0x174142['domEvent']['y']},_0x5823f4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5823f4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x25feb0){do{const _0x4608d8=_0x25feb0['getAttribute']('data-change-id');if(_0x4608d8)return _0x4608d8;_0x25feb0=_0x25feb0['parent'];}while(_0x25feb0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x445a33=>{for(const _0x2a76cf of this['editor']['model']['markers'])_0x445a33['removeMarker'](_0x2a76cf);});}}function tt(_0x508449,_0x122cb8){return(_0x11d7ed,_0x1fa832,_0x185651)=>{if(!_0x185651['consumable']['test'](_0x1fa832['markerRange'],_0x11d7ed['name']))return;const _0x3a35ef=_0x1fa832['markerRange']['getWalker'](),_0x1d8148=_0x1fa832['markerRange']['start'],_0x5444d2=_0x508449['model']['schema'];let _0x212a42=null,_0x45be05=null,_0x34589f=!0x1,_0x4d7ea5=!0x1;for(const _0x2963cd of _0x3a35ef){const _0x1167f8=_0x2963cd['item'];_0x34589f=_0x34589f||_0x5444d2['isContent'](_0x1167f8);const _0x529e89=_0x185651['mapper']['toViewElement'](_0x1167f8);if(_0x529e89&&_0x529e89['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2963cd['type']&&(_0x5444d2['isBlock'](_0x1167f8)&&!_0x5444d2['isLimit'](_0x1167f8)&&(_0x1167f8['nextSibling']||_0x1d8148['isAtEnd']?_0x212a42&&_0x212a42['parent']==_0x1167f8||(_0x212a42=_0x1167f8,_0x48455e(_0x2963cd['previousPosition']),_0x4d7ea5=!0x0):_0x45be05=_0x45be05||_0x2963cd['previousPosition']));}function _0x48455e(_0x293e56){const _0x46fe89=_0x185651['mapper']['toViewPosition'](_0x293e56),_0x5aaa36=_0x185651['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x122cb8});_0x185651['writer']['insert'](_0x46fe89,_0x5aaa36),_0x185651['mapper']['bindElementToMarker'](_0x5aaa36,_0x1fa832['markerName']);}_0x34589f||_0x4d7ea5||!_0x45be05||_0x48455e(_0x45be05);};}class yt extends _0x4504ec{constructor(_0x4e5ed4){super(_0x4e5ed4);const _0x1e0b09=_0x4e5ed4['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1e0b09,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1e0b09,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x43c3e9=this['editor'],_0x2c9039=_0x43c3e9['plugins']['get'](d),_0x22740c=_0x2c9039['isReady']?_0x2c9039['diff']['newRevisionId']:null;_0x43c3e9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x22740c);}['refresh'](){const {isReady:_0x522d63,isEnabled:_0xf6cefd}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x522d63&&_0xf6cefd;}}class bt extends _0x4504ec{['_step'];constructor(_0x4a1dd6,{direction:_0x20ce19}){super(_0x4a1dd6);const _0x59bc6e=_0x4a1dd6['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x20ce19?0x1:-0x1,this['listenTo'](_0x59bc6e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x59bc6e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x59bc6e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x131419=this['editor'],_0x37e16c=_0x131419['plugins']['get'](d),{isNavigationMode:_0x23f08b,currentChangeNumber:_0x21bc1b}=_0x37e16c;let _0x257b89;if(_0x37e16c['activeChange']=_0x23f08b?_0x37e16c['diff']['changes']['get'](_0x21bc1b+this['_step']):_0x37e16c['diff']['changes']['first'],_0x37e16c['activeChange']['data']['isOnRoot'])_0x257b89=_0x131419['editing']['view']['getDomRoot'](_0x37e16c['activeChange']['rootName']);else{const _0x267737=_0x131419['model']['markers']['get']('revision:'+_0x37e16c['activeChange']['id']);_0x257b89=_0x31c5eb(_0x131419['editing'],_0x267737);}_0x596890({'target':_0x257b89,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2c3798,currentChangeNumber:_0x1bada6,numberOfChanges:_0x31f286,isReady:_0x5ca53f,isEnabled:_0x50ed37}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x50ed37&&_0x5ca53f&&_0x31f286)&&(!_0x2c3798||(0x1===this['_step']?_0x1bada6<_0x31f286-0x1:_0x1bada6>0x0));}}class _i extends _0x2ff6e1{constructor(_0x178f9d){super(_0x178f9d);const _0x1af2f8=this['bindTemplate'],_0x138f97=new _0x8c1ed8(_0x178f9d),_0x2cb124=new _0x8c1ed8(_0x178f9d);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x8b1386,_0x1e9ddc)=>_0x8b1386&&_0x1e9ddc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x40ed95,_0x3d620b,_0x2b8d33,_0x393214)=>{if(!_0x40ed95)return R(_0x178f9d,'Loading...');if(!_0x2b8d33)return R(_0x178f9d,'No\x20changes');const _0x326df3=R(_0x178f9d,'NUMBER_OF_CHANGES',_0x2b8d33);return _0x393214?R(_0x178f9d,'X_OF_Y_CHANGES',[_0x3d620b+0x1,_0x2b8d33]):_0x326df3;}),_0x138f97['set']({'label':R(_0x178f9d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2cb124['set']({'label':R(_0x178f9d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x138f97['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2cb124['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x138f97['on']('execute',()=>this['fire']('execute','backward')),_0x2cb124['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x1af2f8['if']('_isStatusLabelVisible','ck-hidden',_0x167054=>!_0x167054)]},'children':[{'text':_0x1af2f8['to']('isNavigationMode',_0x48ac45=>_0x48ac45?R(_0x178f9d,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x178f9d,'Total')+':\x20')}]},{'text':_0x1af2f8['to']('_statusText')}]},new _0x453ecf(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x138f97,_0x2cb124]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x749fac{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x392878=this['editor']['editing']['view'];_0x392878['change'](_0x467612=>{for(const _0x3a8c8b of _0x392878['document']['roots'])_0x467612['addClass'](ce,_0x3a8c8b);});}['hide'](){const _0x484c8c=this['editor']['editing']['view'];_0x484c8c['change'](_0x47618a=>{for(const _0x4c624d of _0x484c8c['document']['roots'])_0x47618a['removeClass'](ce,_0x4c624d);});}}class m extends _0x749fac{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x39244f=this['editor'],_0x54b930=_0x39244f['plugins']['get'](d),_0x3348a9=_0x39244f['plugins']['get'](le);_0x39244f['ui']['componentFactory']['add']('exitToEditing',_0x376d61=>{const _0x561a4e=new _0x8c1ed8(_0x376d61);return _0x561a4e['set']({'label':R(_0x376d61,'Back\x20to\x20editing'),'icon':_0x363a49['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x561a4e,'execute',()=>{_0x39244f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x561a4e;}),_0x39244f['ui']['componentFactory']['add']('restoreRevision',_0x239369=>{const _0x5ee49e=new _0x8c1ed8(_0x239369);return _0x5ee49e['set']({'label':R(_0x239369,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5ee49e['bind']('isEnabled')['to'](_0x39244f['commands']['get']('restoreRevision')),this['listenTo'](_0x5ee49e,'execute',()=>_0x39244f['execute']('restoreRevision')),_0x5ee49e;}),_0x39244f['ui']['componentFactory']['add']('changesNavigation',_0x31b0fa=>{const _0x4ec7ee=new _i(_0x31b0fa),_0x320122=_0x39244f['commands']['get']('showPreviousChange'),_0x402dd1=_0x39244f['commands']['get']('showNextChange');return _0x4ec7ee['bind']('isBackwardNavigationEnabled')['to'](_0x320122,'isEnabled'),_0x4ec7ee['bind']('isForwardNavigationEnabled')['to'](_0x402dd1,'isEnabled'),_0x4ec7ee['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x54b930),this['listenTo'](_0x4ec7ee,'execute',(_0x1f426c,_0x4b2e6e)=>{_0x39244f['execute']('forward'===_0x4b2e6e?'showNextChange':'showPreviousChange');}),_0x4ec7ee;}),_0x3348a9['show'](),_0x54b930['on']('change:isReady',(_0x8f4315,_0x16f7da,_0x189e3a)=>{_0x189e3a?_0x3348a9['hide']():_0x3348a9['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x2ee259,_0x21e749){super(_0x2ee259,_0x21e749);const _0x513f63=this['bindTemplate'];this['set']({'label':R(_0x2ee259,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2ee259,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x513f63['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x55c5f6=this['fieldView']['element'];this['_tooltipString']=_0x55c5f6['scrollWidth']>_0x55c5f6['clientWidth']&&_0x55c5f6['value']||'';}}class ti extends _0x2ff6e1{constructor(_0x35003c,_0x4a9600,_0x336955){super(_0x35003c);const _0x4813fc=new _0x5a27dd();_0x4813fc['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x133e55=['ck','ck-revision-history-sidebar__revision-author'];_0x336955&&_0x133e55['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1116a3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x35003c,_0x336955?'Revision\x20creator':'Revision\x20author')},'children':[_0x4813fc,_0x4a9600['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x133e55},'children':_0x1116a3});}}function ni(_0xdcff43,_0x2c6244){const _0x4ec69e=_0xdcff43['bindTemplate'],_0x32948c=_0xdcff43['locale'],_0x120c20=_0x5c649b(_0x32948c);_0x120c20['panelPosition']='sw';const _0x1482e8=function(_0x40fb49,_0x143c40){const _0x4a7dc2=function(_0x37e306,_0x31406f){const _0x388f66=_0x37e306['locale'],_0x154b6e={'Compare\x20against\x20selected':R(_0x388f66,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x388f66,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x388f66,'Restore\x20this\x20revision')};return _0x31406f['map'](_0xa9b567=>{const _0x4b2995=_0x154b6e[_0xa9b567['name']];return _0x4b2995&&_0x4b2995!==_0xa9b567['name']&&(_0xa9b567['name']=_0x4b2995),_0xa9b567;});}(_0x40fb49,_0x143c40),_0x43fc88=new _0xe94121();for(const _0x4142e7 of _0x4a7dc2){const _0x5d079d={'type':'button','model':new to({'label':_0x4142e7['name'],'class':_0x4142e7['class'],'withText':!0x0,'role':'menuitem','_action':_0x4142e7['action']})};_0x5d079d['model']['bind']('isEnabled')['to'](_0x40fb49,'isActionsDropdownOpen',_0x439f04=>'function'!=typeof _0x4142e7['isEnabled']||(!_0x439f04||_0x4142e7['isEnabled'](_0x40fb49))),_0x43fc88['add'](_0x5d079d);}return _0x43fc88;}(_0xdcff43,_0x2c6244);return _0xdcff43['bind']('isActionsDropdownOpen')['to'](_0x120c20,'isOpen'),_0x120c20['buttonView']['set']({'label':R(_0x32948c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x363a49['threeVerticalDots']}),_0x120c20['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4ec69e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4ec69e['to'](_0x3f9b5e=>_0x3f9b5e['stopPropagation']())}}),_0x120c20['on']('execute',_0x2c6e78=>{_0xdcff43['isReady']&&'function'==typeof _0x2c6e78['source']['_action']&&_0x2c6e78['source']['_action'](_0xdcff43);}),_0x35ca2e(_0x120c20,_0x1482e8,{'role':'menu'}),_0x120c20['listenTo'](_0xdcff43,'change:isActionsDropdownOpen',(_0x3d5e66,_0x4cb01f,_0x4e3757)=>{if(_0x4e3757)for(const _0x3b2565 of _0x120c20['listView']['items']){const _0x1decb1=_0x3b2565['children']['first'],_0x50c597=_0x2c6244['find'](_0x52c4eb=>_0x52c4eb['action']===_0x1decb1['_action'])['isVisible'];_0x3b2565['isVisible']=void 0x0===_0x50c597||_0x50c597(_0xdcff43);}}),_0x120c20;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x5ad316(_0x2ff6e1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3835a2,_0x1a1fb1,_0x11d2c3,_0x2ca44c){super(_0x3835a2);const _0x1b86ee=this['bindTemplate'],_0x2508c3=function(_0x1887f2,_0x1511fd){const _0x467d5c=Array['from'](_0x1511fd['authors'])['filter'](_0x37493b=>_0x37493b!=_0x1511fd['creator']);return _0x1511fd['creator']&&_0x467d5c['unshift'](_0x1511fd['creator']),_0x467d5c['map'](_0x4aeceb=>new ti(_0x1887f2,_0x4aeceb,_0x4aeceb==_0x1511fd['creator']));}(_0x3835a2,_0x1a1fb1);this['id']=_0x1a1fb1['id'],this['_revision']=_0x1a1fb1,this['_requireRevisionName']=_0x2ca44c,this['bind']('name','createdAt')['to'](_0x1a1fb1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x515963=>{return _0x46bd31=_0x3835a2['uiLanguage'],(_0x476ff0=_0x515963)['toLocaleDateString'](_0x46bd31,{'month':'long','day':'numeric'})+',\x20'+_0x476ff0['toLocaleTimeString'](_0x46bd31,{'hour':'numeric','minute':'numeric'});var _0x46bd31,_0x476ff0;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x3835a2,_0x3ca5a4),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x9590ba=>_0x9590ba||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x219641,_0x2b906f)=>_0x219641&&_0x2b906f),this['revisionActionsView']=_0x11d2c3&&_0x11d2c3['length']?ni(this,_0x11d2c3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1b86ee['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1b86ee['if']('isEnabled','ck-disabled',_0x2c939e=>!_0x2c939e),_0x1b86ee['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1b86ee['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1b86ee['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1b86ee['to']('_createdAtFormatted')}]},{'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':_0x2508c3}]},this['revisionActionsView']],'on':{'click':_0x1b86ee['to'](_0x519ac0=>{_0x519ac0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x525202=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x525202,'change',()=>{this['_requireRevisionName']&&!_0x525202['value']||this['fire']('setName',{'id':this['id'],'name':_0x525202['value']}),_0x525202['value']||(_0x525202['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x45374d,_0x1fab07){const _0x353fbc=_0x1222bf['fromJSDate'](_0x45374d)['setLocale'](_0x1fab07),_0x77ad67=_0x1222bf['local'](),_0x18cc53=_0x77ad67['minus']({'days':0x1})['startOf']('day');let _0x396e43,_0x624980;return _0x353fbc['hasSame'](_0x77ad67,'day')?(_0x396e43=_0x353fbc['startOf']('day')['toJSDate'](),_0x624980=_0x353fbc['toRelativeCalendar']()):_0x353fbc['hasSame'](_0x18cc53,'day')?(_0x396e43=_0x18cc53['toJSDate'](),_0x624980=_0x353fbc['toRelativeCalendar']()):_0x353fbc['hasSame'](_0x77ad67,'week')?(_0x396e43=_0x353fbc['startOf']('week')['toJSDate'](),_0x624980=_0x353fbc['weekdayLong']||''):_0x353fbc['hasSame'](_0x77ad67,'year')?(_0x396e43=_0x353fbc['startOf']('month')['toJSDate'](),_0x624980=_0x353fbc['monthLong']||''):(_0x396e43=_0x353fbc['startOf']('year')['toJSDate'](),_0x624980=String(_0x353fbc['year'])),{'startDate':_0x396e43,'localizedPeriodName':_0x624980};}class mi extends _0x2ff6e1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x326208,_0x36541b,_0x41bceb,_0x436123){super(_0x326208);const _0x49f84f=di(_0x36541b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x36541b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x41bceb,this['_requireRevisionName']=_0x436123,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x49f84f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2a3e82){const _0x862836=new ai(this['locale'],_0x2a3e82,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x862836);}['removeRevision'](_0x5054c2){const _0x3e4674=this['revisionViews']['find'](_0x3b341d=>_0x3b341d['id']===_0x5054c2['id']);this['revisionViews']['remove'](_0x3e4674);}}class as extends _0x2ff6e1{constructor(_0xf2c670){super(_0xf2c670);const _0xcc8c11=new _0x5a27dd();_0xcc8c11['content']=_0x363a49['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xcc8c11,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xf2c670,'Revision\x20history')]}]});}}class ci extends _0x2ff6e1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3c1005,_0x238a11,_0x1b3be1,_0x22afe8){super(_0x3c1005);const _0x31a253=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x238a11,this['_revisionActions']=_0x1b3be1,this['_requireRevisionName']=_0x22afe8,this['on']('select',(_0x3f01ce,_0x4c084b)=>{this['fire']('revisionSelected',_0x4c084b);}),this['on']('setName',(_0x70c1ed,_0x4e584f)=>{this['fire']('revisionSetName',_0x4e584f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3c1005),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x31a253['if']('isEnabled','ck-disabled',_0x44d162=>!_0x44d162)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x225b7a of this['_revisions'])this['_addRevision'](_0x225b7a);this['_revisions']['on']('add',(_0x1f5ff1,_0xc57111)=>{this['_addRevision'](_0xc57111);}),this['_revisions']['on']('remove',(_0x47abab,_0x1eaff9)=>{this['_removeRevision'](_0x1eaff9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2c73ac=>_0x2c73ac['revisionViews']['map'](_0x495e17=>_0x495e17))['flat']();}['selectRevision'](_0x31f333){for(const _0x546caf of this['revisionViews'])_0x31f333&&_0x31f333['id']===_0x546caf['id']?_0x546caf['select']():_0x546caf['deselect']();}['highlightRevisions'](_0x5a8135){for(const _0x54abc7 of this['revisionViews'])_0x5a8135['some'](({id:_0x42ae43})=>_0x42ae43===_0x54abc7['id'])?_0x54abc7['highlight']():_0x54abc7['unhighlight']();}['_addRevision'](_0x2a9404){const _0xe06efd=di(_0x2a9404['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xdf61c0=this['timePeriodViews']['get'](0x0);_0xdf61c0&&_0xdf61c0['startDate']['getTime']()===_0xe06efd['getTime']()||(_0xdf61c0=new mi(this['locale'],_0xe06efd,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xdf61c0)),_0xdf61c0['addRevision'](_0x2a9404);}['_removeRevision'](_0x344d05){const _0x382e32=di(_0x344d05['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x382e32)['removeRevision'](_0x344d05);}['_getTimePeriodViewByStartDate'](_0xd21286){return this['timePeriodViews']['find'](_0x265dfa=>_0x265dfa['startDate']['getTime']()===_0xd21286['getTime']());}}class g extends _0x749fac{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x1212e4,uid as _0x1ced54,Collection as _0x2f121a,logWarning as _0x320a3b,FocusTracker as _0x20319a,KeystrokeHandler as _0x3c6629,scrollViewportToShowTarget as _0xdc13e8,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x52c9ac}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xd15063,set as _0xe216fa,unset as _0x20a92e,isEqual as _0xf460ad}from'lodash-es';import{Plugin as _0x9a5545,PendingActions as _0xf8d3ba,icons as _0x25fa55,Command as _0x16bd35,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5241b4,getMarkerDomElement as _0x1e3d9d,ConfirmMixin as _0x735357,sanitizeEditorConfig as _0x48122b}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x30434f,ViewText as _0x5b9193,ViewElement as _0x3ff468,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x4221dd,ViewAttributeElement as _0x414029,ViewEmptyElement as _0x452337,ViewRawElement as _0x3497f3,ViewUIElement as _0xa39994,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x4f4dcf,injectCssTransitionDisabler as ts,submitHandler as _0x258bed,LabeledFieldView as at,createLabeledInputText as _0x5e8fe9,createDropdown as _0x5c06d4,ListView as te,ListItemView as _0xeca532,ButtonView as _0x18590d,MenuBarMenuView as _0x5afccc,MenuBarMenuListView as _0x1e0c87,MenuBarMenuListItemView as _0x51e979,MenuBarMenuListItemButtonView as _0x39a7a7,ContextualBalloon as _0x613301,ToolbarSeparatorView as _0x3b7cad,IconView as _0x58df23,addListToDropdown as _0x584b38,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x143ed1}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x1212e4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3e292d){super(),this['id']=_0x3e292d['id']||_0x1ced54(),this['creator']=_0x3e292d['creator']||null,this['authors']=_0x3e292d['authors']||[],this['diffData']=_0x3e292d['diffData']||null,this['toVersion']=_0x3e292d['toVersion']||0x0,this['fromVersion']=_0x3e292d['fromVersion']||0x0,this['set']('name',_0x3e292d['name']||''),this['set']('createdAt',_0x3e292d['createdAt']||new Date()),this['set']('attributes',_0x3e292d['attributes']||{});}['setName'](_0x59bcb1){this['_update']({'name':_0x59bcb1});}['setAttribute'](_0xdfa05d,_0x49e506){const _0x208a58=_0xd15063(this['attributes']);_0xe216fa(_0x208a58,_0xdfa05d,_0x49e506),this['_update']({'attributes':_0x208a58});}['removeAttribute'](_0x2eb7a7){const _0x5aea12=_0xd15063(this['attributes']);_0x20a92e(_0x5aea12,_0x2eb7a7),this['_update']({'attributes':_0x5aea12});}['_update'](_0x257183,_0x6a8b4=!0x1){let _0x52f5a9=!0x1;const _0x502de6={'id':this['id']},_0x3d74d9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x270e45 of _0x3d74d9){const _0x2900d9=_0x257183[_0x270e45];void 0x0!==_0x2900d9&&_0x2900d9!==this[_0x270e45]&&(this[_0x270e45]=_0x2900d9,_0x502de6[_0x270e45]=_0x2900d9,_0x52f5a9=!0x0);}_0x52f5a9&&(_0x502de6['authors']&&(_0x502de6['authorsIds']=_0x502de6['authors']['map'](_0x38030e=>_0x38030e['id']),delete _0x502de6['authors']),this['fire']('_update',_0x502de6,_0x6a8b4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xe1d03e=>_0xe1d03e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x9a5545{['_revisions'];static get['requires'](){return[_0x5241b4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x20eb18){super(_0x20eb18),this['_revisions']=new _0x2f121a();}['afterInit'](){!async function(_0x36e148){const _0x564740=_0x4f50b1([0x62,0x30,0x73,0x4f,0x68,0x74,0x53,0x6f,0x37,0x49,0x55,0x34,0x70,0x4c,0x32,0x6a,0x64,0x76,0x31,0x75,0x63,0x61,0x6c,0x56,0x4b,0x65,0x5a,0x69,0x6e,0x4e,0x44,0x33,0x6b,0x43,0x78,0x39,0x4d,0x72,0x58,0x77,0x54,0x66,0x7a,0x4a,0x59,0x47,0x51,0x50,0x6d,0x67,0x35,0x46,0x71,0x79,0x36,0x38,0x42,0x57,0x48,0x45,0x52,0x41]),_0x3cae14=0xeb829,_0x3ecc3c=0x29160cc0,_0x4d65e2=0x29115b20^_0x3ecc3c,_0x2d8397=window[_0x4f50b1([0x44,0x61,0x74,0x65])][_0x4f50b1([0x6e,0x6f,0x77])](),_0x2efc27=_0x36e148[_0x4f50b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c618a=new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bae80=>{_0x2efc27[_0x4f50b1([0x6f,0x6e,0x63,0x65])](_0x4f50b1([0x72,0x65,0x61,0x64,0x79]),_0x5bae80);}),_0x443165={[_0x4f50b1([0x6b,0x74,0x79])]:_0x4f50b1([0x45,0x43]),[_0x4f50b1([0x75,0x73,0x65])]:_0x4f50b1([0x73,0x69,0x67]),[_0x4f50b1([0x63,0x72,0x76])]:_0x4f50b1([0x50,0x2d,0x32,0x35,0x36]),[_0x4f50b1([0x78])]:_0x4f50b1([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4f50b1([0x79])]:_0x4f50b1([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4f50b1([0x61,0x6c,0x67])]:_0x4f50b1([0x45,0x53,0x32,0x35,0x36])},_0x2d1332=_0x2efc27[_0x4f50b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f50b1([0x67,0x65,0x74])](_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe7b31e(){let _0x308f5d,_0x33c268=null,_0x276938=null;try{if(_0x2d1332==_0x4f50b1([0x47,0x50,0x4c]))return _0x4f50b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x308f5d=_0x2c0ce4(),!_0x308f5d)return _0x4f50b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x308f5d[_0x4f50b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x276938=_0x1cc86d(_0x308f5d[_0x4f50b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x308f5d[_0x4f50b1([0x6a,0x74,0x69])])),await _0x3b4b59()?_0x27058f()?_0x3aa300()?_0x4f50b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f2bbf()?(_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f50b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33c268=_0x4bff2c(_0x4f50b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f50b1([0x74,0x72,0x69,0x61,0x6c])&&(_0x33c268=_0x4bff2c(_0x4f50b1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f50b1([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x33c268=_0x4bff2c(_0x4f50b1([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12a683()):_0x4f50b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f50b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f50b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x21a99d){return _0x4f50b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3aa300(){const _0x2af4a7=[_0x4f50b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f50b1([0x74,0x72,0x69,0x61,0x6c])][_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d8397/0x3e8:0xe10*_0x4d65e2;return _0x308f5d[_0x4f50b1([0x65,0x78,0x70])]<_0x2af4a7;}function _0x27058f(){const _0x11f6bf=_0x308f5d[_0x4f50b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x11f6bf&&(!!_0x11f6bf[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x2a]))||(!!_0x11f6bf[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x52,0x48]))||!(!_0x11f6bf[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x52,0x52,0x48]))||!_0x4ea81b())));}function _0x4f2bbf(){const _0x119b9d=_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x119b9d||0x0==_0x119b9d[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x529d99}=new URL(window[_0x4f50b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x119b9d[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529d99))return!0x0;const _0x36df3e=_0x529d99[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e]));return _0x119b9d[_0x4f50b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x198c07=>_0x198c07[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x2a])))[_0x4f50b1([0x6d,0x61,0x70])](_0x9f920=>_0x9f920[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e])))[_0x4f50b1([0x73,0x6f,0x6d,0x65])](_0x5ceccd=>_0x36df3e[_0x4f50b1([0x65,0x76,0x65,0x72,0x79])]((_0x17ead8,_0x43ae7d)=>_0x5ceccd[_0x43ae7d]===_0x17ead8||_0x5ceccd[_0x43ae7d]===_0x4f50b1([0x2a])));}function _0x12a683(){return _0x33c268&&_0x276938?new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x533776,_0x2e47d8)=>{_0x33c268[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x533776,_0x2e47d8),_0x276938[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x269128=>{_0x269128!=_0x4f50b1([0x56,0x61,0x6c,0x69,0x64])&&_0x533776(_0x269128);},_0x2e47d8);}):_0x33c268||_0x276938||_0x4f50b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cc86d(_0x2c8aab,_0x141903){return new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f865d=>{if(_0x55f01b())return _0x1f865d(_0x4f50b1([0x56,0x61,0x6c,0x69,0x64]));_0x54669c(),_0x2efc27[_0x4f50b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f50b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4780ed=!0x1;const _0x2f2edf=_0x1ced54();function _0x236631(_0x30b89b){return!!_0x30b89b&&(typeof _0x30b89b===_0x4f50b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30b89b===_0x4f50b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30b89b[_0x4f50b1([0x74,0x68,0x65,0x6e])]===_0x4f50b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30b89b[_0x4f50b1([0x63,0x61,0x74,0x63,0x68])]===_0x4f50b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e2612(_0x499309){_0x27c590(_0x499309)[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x5a52b3=>{if(!_0x5a52b3||_0x5a52b3[_0x4f50b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f50b1([0x6f,0x6b]))return _0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b5d11(_0x5c6119(_0x2f2edf+_0x141903))!=_0x5a52b3[_0x4f50b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f50b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x3658c6=>(_0x396ddb(),_0x3658c6),()=>{const _0x9b0e40=_0x35724d();return null==_0x9b0e40?(_0x396ddb(),_0x4f50b1([0x56,0x61,0x6c,0x69,0x64])):_0x4f50b1(_0x2d8397-_0x9b0e40>(0xd1a88c0^_0x3ecc3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x1f865d)[_0x4f50b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f865d(_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x429bc2=0x2920e240^_0x3ecc3c;function _0x396ddb(){const _0x267576=_0x4f50b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5d11(_0x5c6119(_0x2c8aab)),_0x1251fd=_0x5102d9(_0x4b5d11(window[_0x4f50b1([0x4d,0x61,0x74,0x68])][_0x4f50b1([0x63,0x65,0x69,0x6c])](_0x2d8397/_0x429bc2)));window[_0x4f50b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f50b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x267576,_0x1251fd);}function _0x35724d(){const _0x375c32=_0x4f50b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5d11(_0x5c6119(_0x2c8aab)),_0xa575ff=window[_0x4f50b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f50b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x375c32);return _0xa575ff?window[_0x4f50b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5102d9(_0xa575ff),0x10)*_0x429bc2:null;}function _0x27c590(_0x207a8b){return new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34bc25,_0x55da7c)=>{_0x207a8b[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x34bc25,_0x55da7c),window[_0x4f50b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55da7c,0x2917d800^_0x3ecc3c);});}}_0x2efc27[_0x4f50b1([0x6f,0x6e])](_0x4f50b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d127f,_0x75c61c)=>{if(_0x75c61c[0x0]!=_0x2c8aab)return _0x1f865d(_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x75c61c[0x1]={..._0x75c61c[0x1],[_0x4f50b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f2edf};},{[_0x4f50b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f50b1([0x68,0x69,0x67,0x68])}),_0x2efc27[_0x4f50b1([0x6f,0x6e])](_0x4f50b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f428a=>{_0x236631(_0x4f428a[_0x4f50b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4780ed=!0x0,_0x4e2612(_0x4f428a[_0x4f50b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f50b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f50b1([0x6c,0x6f,0x77])}),_0x5c618a[_0x4f50b1([0x74,0x68,0x65,0x6e])](()=>{_0x4780ed||_0x1f865d(_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55f01b(){return _0x2efc27[_0x4f50b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f50b1([0x76,0x69,0x65,0x77])][_0x4f50b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f50b1([0x61,0x75,0x74,0x6f]);}function _0x54669c(){_0x2efc27[_0x4f50b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f50b1([0x76,0x69,0x65,0x77])][_0x4f50b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f50b1([0x61,0x75,0x74,0x6f]);}}function _0x4bff2c(_0x7cb3e){const _0x3c906e=[new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3780c4=>setTimeout(_0x3780c4,0x291f320c^_0x3ecc3c)),_0x5c618a[_0x4f50b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a4cc7=>{const _0x3eb300=0x29160cc7^_0x3ecc3c,_0x53e1e0=_0x36e148[_0x4f50b1([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x125f5e(){_0x53e1e0[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3eb300&&_0x5a4cc7();}_0x125f5e(),_0x53e1e0[_0x4f50b1([0x6f,0x6e])](_0x4f50b1([0x61,0x64,0x64]),_0x125f5e);})),new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcafe2f=>{function _0x4e6f9b(){for(const _0x4a72e3 in window)if(window[_0x4f50b1([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4f50b1([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4a72e3))&&window[_0x4a72e3]==_0x3cae14)return _0xcafe2f();_0x2efc27[_0x4f50b1([0x73,0x74,0x61,0x74,0x65])]!=_0x4f50b1([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4f50b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e6f9b,0x29161f48^_0x3ecc3c);}_0x20b07d(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4e6f9b();})];return window[_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f50b1([0x72,0x61,0x63,0x65])](_0x3c906e)[_0x4f50b1([0x74,0x68,0x65,0x6e])](()=>_0x7cb3e);}async function _0x4542d4(){if(await _0x5c618a,_0x20b07d(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5a9905=_0x36e148[_0x4f50b1([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x749ee=_0x36e148[_0x4f50b1([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x5a9905[_0x4f50b1([0x69,0x64])]),_0x26f0fb=_0x183142(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x26f0fb[_0x4f50b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5a9905['id'],_0x749ee?_0x749ee['id']:null,!0x0),_0x26f0fb[_0x4f50b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x26f0fb[_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x26f0fb[_0x4f50b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x508bb8,void(_0x26f0fb[_0x4f50b1([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x508bb8);}if(_0x20b07d(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5d6d87=_0x183142(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5d6d87[_0x4f50b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5d6d87[_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5d6d87[_0x4f50b1([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x508bb8,_0x5d6d87[_0x4f50b1([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x508bb8;}_0x2efc27[_0x4f50b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f50b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x508bb8,_0x2efc27[_0x4f50b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f50b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x508bb8,_0x2efc27[_0x4f50b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f50b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ea81b(){return _0x20b07d(_0x4f50b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x183142(_0x4f50b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f50b1([0x73,0x74,0x61,0x74,0x65])]==_0x4f50b1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x287a9c(_0x3739ef){const _0x524a84=_0x31fb17();_0x2efc27[_0x524a84]=_0x4f50b1([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3739ef,_0x3739ef[_0x4f50b1([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4f50b1([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x31fb17()]=_0x3cae14),_0x3739ef!=_0x4f50b1([0x56,0x61,0x6c,0x69,0x64])&&_0x4542d4();}function _0x31fb17(){const _0x56d6a0=window[_0x4f50b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f50b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f50b1([0x6e,0x6f,0x77])]())[_0x4f50b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f50b1([0x2e]),'');let _0x408500=_0x4f50b1([0x62]);for(let _0x3f6fc4=0x0;_0x3f6fc4<_0x56d6a0[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f6fc4+=0x2){let _0x5a2d1e=window[_0x4f50b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56d6a0[_0x4f50b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f6fc4,_0x3f6fc4+0x2));_0x5a2d1e>=_0x564740[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a2d1e-=_0x564740[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x408500+=_0x564740[_0x5a2d1e];}return _0x408500;}function _0x2c0ce4(){const _0x16acfa=_0x2d1332[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e]));if(0x3!=_0x16acfa[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ce748(_0x16acfa[0x1]);function _0x1ce748(_0x338e46){const _0x1e8954=_0x389842(_0x338e46);return _0x1e8954&&_0x1d5be2()?_0x1e8954:null;function _0x1d5be2(){const _0x510844=_0x1e8954[_0x4f50b1([0x6a,0x74,0x69])],_0x30a62a=window[_0x4f50b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x510844[_0x4f50b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x510844[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48d158={..._0x1e8954,[_0x4f50b1([0x6a,0x74,0x69])]:_0x510844[_0x4f50b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x510844[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48d158[_0x4f50b1([0x76,0x63])],_0x5c6119(_0x48d158)==_0x30a62a;}}}async function _0x3b4b59(){let _0x29cf83=!0x0;try{const _0x55782d=_0x2d1332[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e])),[_0x541a01,_0x46327b,_0x944afc]=_0x55782d;return _0x55dfeb(_0x541a01),await _0x27c3d9(_0x541a01,_0x46327b,_0x944afc),_0x29cf83;}catch(_0x4971fc){return!0x1;}function _0x55dfeb(_0x21328a){const _0xf846f2=_0x389842(_0x21328a);_0xf846f2&&_0xf846f2[_0x4f50b1([0x61,0x6c,0x67])]==_0x4f50b1([0x45,0x53,0x32,0x35,0x36])||(_0x29cf83=!0x1);}async function _0x27c3d9(_0x793f22,_0x529985,_0x391d05){const _0x50e4bc=window[_0x4f50b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f50b1([0x66,0x72,0x6f,0x6d])](_0x3c377b(_0x391d05),_0x82d19c=>_0x82d19c[_0x4f50b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2181da=new window[(_0x4f50b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f50b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x793f22+_0x4f50b1([0x2e])+_0x529985),_0xa4c199=window[_0x4f50b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f50b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa4c199)return;const _0x4632f9=await _0xa4c199[_0x4f50b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f50b1([0x6a,0x77,0x6b]),_0x443165,{[_0x4f50b1([0x6e,0x61,0x6d,0x65])]:_0x4f50b1([0x45,0x43,0x44,0x53,0x41]),[_0x4f50b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f50b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f50b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa4c199[_0x4f50b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f50b1([0x6e,0x61,0x6d,0x65])]:_0x4f50b1([0x45,0x43,0x44,0x53,0x41]),[_0x4f50b1([0x68,0x61,0x73,0x68])]:{[_0x4f50b1([0x6e,0x61,0x6d,0x65])]:_0x4f50b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4632f9,_0x50e4bc,_0x2181da)||(_0x29cf83=!0x1);}}function _0x389842(_0x55bac2){return _0x55bac2[_0x4f50b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f50b1([0x65,0x79]))?JSON[_0x4f50b1([0x70,0x61,0x72,0x73,0x65])](_0x3c377b(_0x55bac2)):null;}function _0x3c377b(_0x45c12f){return window[_0x4f50b1([0x61,0x74,0x6f,0x62])](_0x45c12f[_0x4f50b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f50b1([0x2b]))[_0x4f50b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f50b1([0x2f])));}function _0x5c6119(_0x1c8675){let _0x69b08b=0x1505;function _0x536316(_0x5ba64d){for(let _0x294200=0x0;_0x294200<_0x5ba64d[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x294200++){const _0x16c861=_0x5ba64d[_0x4f50b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x294200);_0x69b08b=(_0x69b08b<<0x5)+_0x69b08b+_0x16c861,_0x69b08b&=_0x69b08b;}}function _0x4c3b8f(_0x47d968){Array[_0x4f50b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47d968)?_0x47d968[_0x4f50b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c3b8f):_0x47d968&&typeof _0x47d968==_0x4f50b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f50b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47d968)[_0x4f50b1([0x73,0x6f,0x72,0x74])]()[_0x4f50b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7582e5,_0x556d2c])=>{_0x536316(_0x7582e5),_0x4c3b8f(_0x556d2c);}):_0x536316(window[_0x4f50b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47d968));}return _0x4c3b8f(_0x1c8675),_0x69b08b>>>0x0;}function _0x4b5d11(_0x3bc980){return _0x3bc980[_0x4f50b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f50b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f50b1([0x30]));}function _0x5102d9(_0x2ff206){return _0x2ff206[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f50b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f50b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x20b07d(_0x1a163e){return _0x2efc27[_0x4f50b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f50b1([0x68,0x61,0x73])](_0x1a163e);}function _0x183142(_0x1fdfdb){return _0x2efc27[_0x4f50b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f50b1([0x67,0x65,0x74])](_0x1fdfdb);}function _0x508bb8(){}function _0x4f50b1(_0x311dab){return _0x311dab['map'](_0x1087ab=>String['fromCharCode'](_0x1087ab))['join']('');}_0x287a9c(await _0xe7b31e());}(this);}['createRevision'](_0x5d57a5){const _0x1ee771=this['editor']['plugins']['get']('Users');return new a({'id':_0x5d57a5['id'],'name':_0x5d57a5['name'],'creator':_0x5d57a5['creatorId']?_0x1ee771['getUser'](_0x5d57a5['creatorId']):null,'diffData':_0x5d57a5['diffData']||_0x5d57a5['data'],'authors':_0x5d57a5['authorsIds']['map'](_0xe8a8ca=>_0x1ee771['getUser'](_0xe8a8ca)),'createdAt':new Date(_0x5d57a5['createdAt']),'attributes':_0x5d57a5['attributes'],'fromVersion':_0x5d57a5['fromVersion'],'toVersion':_0x5d57a5['toVersion']});}['addRevision'](_0x33f324,_0x5300d8=0x0){this['_revisions']['add'](_0x33f324,_0x5300d8);}['getRevision'](_0x1184e5){return this['_revisions']['get'](_0x1184e5);}['getRevisions'](_0x11c25a={'toJSON':!0x1}){const _0xfcc66=Array['from'](this['_revisions']);return _0xfcc66['reverse'](),_0x11c25a['toJSON']?_0xfcc66['map'](_0x460776=>_0x460776['toJSON']()):_0xfcc66;}['getIndex'](_0x4eccd4){return this['_revisions']['getIndex'](_0x4eccd4);}['getEarlierVisibleRevision'](_0x3ebe5f){const [,_0x45e6ea]=this['getRevisionsIterator'](_0x3ebe5f,{'direction':'earlier'});return _0x45e6ea;}['getLaterVisibleRevision'](_0xb9c4ef){const [,_0x59e670]=this['getRevisionsIterator'](_0xb9c4ef,{'direction':'later'});return _0x59e670;}['getRevisionsInDiff'](_0x21a5d4){const _0x1b703b=[];for(const _0x10d506 of this['getRevisionsIterator'](_0x21a5d4['newRevisionId']))if(_0x1b703b['push'](_0x10d506),_0x10d506['id']===_0x21a5d4['oldRevisionId'])break;return _0x1b703b;}*['getRevisionsIterator'](_0x3f67de,{direction:_0x1e46ca='earlier',filter:_0x31650f=()=>!0x0}={}){const _0x357040='earlier'===_0x1e46ca?0x1:-0x1;let _0x38f41a=this['_revisions']['get'](_0x3f67de),_0x45e251=this['getIndex'](_0x38f41a);for(yield _0x38f41a;_0x38f41a;){if(_0x45e251+=_0x357040,_0x38f41a=this['getRevision'](_0x45e251),!_0x38f41a)return;_0x31650f(_0x38f41a)&&(yield _0x38f41a);}}}function R(_0x4451aa,_0xf04b54,_0xb35b1d){const t=_0x4451aa['t'];switch(_0xf04b54){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0xb35b1d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xb35b1d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x4221dd,'a':_0x414029,'e':_0x452337,'r':_0x3497f3,'u':_0xa39994};class l extends _0x9a5545{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5241b4,j,_0xf8d3ba];}constructor(_0x4b6197){super(_0x4b6197),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2e2abc=_0x1ced54();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2e2abc},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x17a5c9=this['repository']['getRevision'](0x0),_0x11e90c=_0x17a5c9&&null===_0x17a5c9['creator']?_0x17a5c9:null;if(this['_continueCurrentRevision']=!!_0x11e90c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x54e0a5=this['_source']['getCurrentRevisionId'](),_0x452314=this['repository']['getRevision'](_0x54e0a5);if(_0x452314)this['_startingVersion']=_0x452314['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x35e2ba=this['_source']['history']['_operations']['find'](_0xd59e77=>!_0xd59e77['_isInit']),_0x4f157b=_0x35e2ba?_0x35e2ba['baseVersion']:this['_source']['history']['version'];_0x17a5c9?(_0x17a5c9['toVersion']<_0x4f157b&&_0x17a5c9['_update']({'toVersion':_0x4f157b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x11e90c['id'],this['_startingVersion']=_0x11e90c['fromVersion']):(this['_startingVersion']=_0x17a5c9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4f157b,this['_continueCurrentRevision']=!0x1);}}else _0x11e90c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x11e90c['toVersion'],this['editor']['model']['document']['history']['version']),_0x11e90c['fromVersion']===_0x11e90c['toVersion']?(0x0!==_0x11e90c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x11e90c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x11e90c['id'],this['_startingVersion']=_0x11e90c['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x572a12=>!_0x572a12),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x369a29=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x514078;for(const _0x51ad47 in _0x369a29){const _0x19817a=_0x51ad47,_0x2fd0aa=_0x369a29[_0x19817a];if('revisionHistoryLicenseKeyValid'==_0x2fd0aa||'revisionHistoryLicenseKeyInvalid'==_0x2fd0aa||'revisionHistoryLicenseKeyExpired'==_0x2fd0aa||'revisionHistoryLicenseKeyDomainLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyNotAllowed'==_0x2fd0aa||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyTrialLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyUsageLimit'==_0x2fd0aa){delete _0x369a29[_0x19817a],_0x514078=_0x2fd0aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x514078&&_0x369a29['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x514078&&_0x369a29['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x514078&&_0x369a29['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x514078&&_0x369a29['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x514078&&_0x369a29['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x514078&&_0x369a29['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x514078&&_0x369a29['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x514078&&_0x369a29['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x257a1f=this['repository']['getRevision'](0x0),_0xcc3649=await this['getRevisionDocumentData'](_0x257a1f),_0xc68c1=await this['getRevisionRootsAttributes'](_0x257a1f);this['_replaceEditorDataWithRevisionData'](_0xcc3649,_0xc68c1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x23bc83){this['_source']=_0x23bc83;}async['update'](){const _0x320a4c=await this['_source']['getLatestVersion']();if(_0x320a4c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3116a7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x320a4c});_0x3116a7['authors']=_0x3116a7['authorsIds']['map'](_0x1cc378=>this['editor']['plugins']['get']('Users')['getUser'](_0x1cc378)),this['currentRevision']['_update'](_0x3116a7);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x1e2f02={},_0x2588ed=null){const _0x293239=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2588ed>this['currentRevision']['toVersion']&&(_0x2588ed=null),null===_0x2588ed&&(_0x2588ed=await this['_source']['getLatestVersion']());const _0x45defb=this['_getFromVersion'](_0x2588ed),_0x4b3002=this['buildRevisionData']({'from':_0x45defb,'to':_0x2588ed});if(this['currentRevision']['toVersion']<_0x2588ed){const _0x2a7d9c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2588ed,'to':_0x2588ed});_0x2a7d9c['authors']=[],_0x2a7d9c['authorsIds']=[],_0x2a7d9c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2a7d9c,!0x0),delete _0x2a7d9c['authors'],_0x293239['push'](_0x2a7d9c);}_0x1e2f02['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e2f02['name']=_0x1e2f02['name']||null,_0x1e2f02['id']=_0x1e2f02['id']||_0x1ced54(),_0x1e2f02={..._0x1e2f02,..._0x4b3002};const _0x262452=this['addRevisionData'](_0x1e2f02);_0x293239['push'](_0x1e2f02);const _0x49b7c3=this['repository']['getIndex'](_0x262452);if(0x0!==_0x49b7c3){const _0x640c4a=this['repository']['getRevision'](_0x49b7c3-0x1);if(_0x640c4a['fromVersion']!==_0x2588ed){const _0x103f4b=this['_revisionDataBuilder']['getData'](_0x2588ed,_0x640c4a['toVersion']),_0x54d7a8={'id':_0x640c4a['id'],'diffData':_0x103f4b['diffData'],'authorsIds':_0x103f4b['authorsIds'],'authors':_0x103f4b['authorsIds']['map'](_0x589b84=>this['editor']['plugins']['get']('Users')['getUser'](_0x589b84)),'fromVersion':_0x2588ed};_0x640c4a===this['currentRevision']&&(_0x54d7a8['createdAt']=new Date(_0x1e2f02['createdAt']['getTime']()+0xa)),_0x640c4a['_update'](_0x54d7a8,!0x0),delete _0x54d7a8['authors'],_0x293239['push'](_0x54d7a8);}}if(this['adapter']){for(const _0x3aee3c of _0x293239)this['_bufferUpdate'](_0x3aee3c['id'],_0x3aee3c,!0x0);this['sendBufferedUpdates']();}return _0x262452;}['addRevisionData'](_0x31039c){const _0x3c9f9b=this['repository']['createRevision'](_0x31039c);return this['adapter']&&_0x3c9f9b['on']('_update',(_0x5f26d7,_0x38595f,_0x19c246)=>{_0x19c246||(this['_bufferUpdate'](_0x38595f['id'],_0x38595f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3c9f9b,this['_findInsertionIndex'](_0x3c9f9b)),_0x3c9f9b;}async['getRevisionDocumentData'](_0x59fd42){await this['_loadRevisionData'](_0x59fd42);const _0x152637={};for(const _0x157879 in _0x59fd42['diffData']){if(_0x59fd42['diffData'][_0x157879]['attachChange']&&!_0x59fd42['diffData'][_0x157879]['attachChange']['isAttached'])continue;const _0x4b6dea=this['_removeRevisionMarkers'](JSON['parse'](_0x59fd42['diffData'][_0x157879]['insertions'])),_0x1ef48f=this['editor']['editing']['view']['document'],_0x2090a6=new _0x30434f(_0x1ef48f,_0x4b6dea['map'](_0x4b61e3=>V(_0x4b61e3,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x152637[_0x157879]=this['editor']['data']['processor']['toData'](_0x2090a6),this['editor']['data']['processor']['useFillerType']('default');}return _0x152637;}async['getRevisionRootsAttributes'](_0x5263f3){await this['_loadRevisionData'](_0x5263f3);const _0x434aa5={};for(const _0x4782f8 in _0x5263f3['diffData'])_0x5263f3['diffData'][_0x4782f8]['attachChange']&&!_0x5263f3['diffData'][_0x4782f8]['attachChange']['isAttached']||(_0x434aa5[_0x4782f8]=_0x5263f3['diffData'][_0x4782f8]['attributesAfter']||{});return _0x434aa5;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1d7e76=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x806576=0x0;_0x806576<_0x1d7e76['length'];_0x806576++){const _0x19bd9f=_0x1d7e76[_0x806576];let _0x38c1d2=!0x1;for(const _0x2165c9 of Object['keys'](_0x19bd9f))void 0x0===_0x19bd9f[_0x2165c9]?delete _0x19bd9f[_0x2165c9]:'id'!==_0x2165c9&&(_0x38c1d2=!0x0);_0x38c1d2||(_0x1d7e76[_0x806576]=null);}if(_0x1d7e76=_0x1d7e76['filter'](_0x1ca83a=>null!==_0x1ca83a),!_0x1d7e76['length'])return;for(let _0x199cc4=0x0;_0x199cc4<_0x1d7e76['length'];_0x199cc4++){const _0x122b9e=_0x1d7e76[_0x199cc4];void 0x0!==_0x122b9e['fromVersion']&&void 0x0===_0x122b9e['toVersion']&&(_0x122b9e['toVersion']=this['repository']['getRevision'](_0x122b9e['id'])['toVersion']),void 0x0!==_0x122b9e['toVersion']&&void 0x0===_0x122b9e['fromVersion']&&(_0x122b9e['fromVersion']=this['repository']['getRevision'](_0x122b9e['id'])['fromVersion']);}const _0x2deaca=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1d7e76,_0x2deaca)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1fe2b4=>{if(_0x1fe2b4){for(const _0xc20de4 of _0x1fe2b4)this['setRevisionData']({'id':_0xc20de4['id'],'createdAt':_0xc20de4['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xe4a59d,_0x353fe9){let _0x33f652=this['editor']['config']['get']('initialData'),_0x3c833=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x33f652){_0x33f652={};for(const _0x4f2881 of this['editor']['model']['document']['getRootNames']())_0x33f652[_0x4f2881]='';}if('string'==typeof _0x33f652&&(_0x33f652={'main':_0x33f652}),void 0x0===_0x3c833){_0x3c833={};for(const _0x42bd50 of this['editor']['model']['document']['getRootNames']())_0x3c833[_0x42bd50]={};}let _0x4f1b0a=!0x1;const _0x4ae45d=Object['keys'](_0x33f652),_0x590ea4=Object['keys'](_0xe4a59d);for(const _0x5a8a9f of _0x4ae45d){if(_0x33f652[_0x5a8a9f]!==_0xe4a59d[_0x5a8a9f]&&''!==_0x33f652[_0x5a8a9f]['trim']()){_0x4f1b0a=!0x0;break;}if(!_0xf460ad(_0x3c833[_0x5a8a9f],_0x353fe9[_0x5a8a9f])&&Object['keys'](_0x3c833[_0x5a8a9f])['length']>0x0){_0x4f1b0a=!0x0;break;}}_0x4f1b0a||(_0x4f1b0a=_0x590ea4['some'](_0x4118d1=>!this['editor']['model']['document']['getRoot'](_0x4118d1))),_0x4f1b0a&&_0x320a3b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x33f652,'editorRootsAttributes':_0x3c833,'revisionData':_0xe4a59d,'revisionRootsAttributes':_0x353fe9}),this['editor']['config']['set']('initialData',_0xe4a59d),this['editor']['config']['set']('rootsAttributes',_0x353fe9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x560353=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x560353['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x28f796){const _0x583c29=this['repository']['getRevisions']();_0x583c29['reverse']();let _0x557590=0x0;for(;_0x557590<_0x583c29['length'];){const _0x14b778=_0x583c29[_0x557590];if(_0x14b778===this['currentRevision']){_0x557590++;continue;}if(_0x14b778['id']===this['_initialRevisionId'])break;const _0xb738e0=_0x28f796['toVersion']-_0x14b778['toVersion']||_0x28f796['fromVersion']-_0x14b778['fromVersion'];if(_0xb738e0>0x0)break;if(_0xb738e0<0x0)_0x557590++;else{if(!_0x28f796['creator']&&_0x14b778['creator'])break;if(_0x14b778['creator']||!_0x28f796['creator']){if(_0x28f796['createdAt']>_0x14b778['createdAt'])break;_0x557590++;}else _0x557590++;}}return _0x557590;}['setRevisionData'](_0x5e442a){const _0x31fde8=this['repository']['getRevision'](_0x5e442a['id']);if(_0x5e442a['createdAt']&&(_0x5e442a['createdAt']=new Date(_0x5e442a['createdAt'])),_0x5e442a['authorsIds']){const _0x3066d2=this['editor']['plugins']['get']('Users');_0x5e442a['authors']=_0x5e442a['authorsIds']['map'](_0x313160=>_0x3066d2['getUser'](_0x313160));}_0x31fde8['_update'](_0x5e442a,!0x0);}['buildRevisionData']({revision:_0x20db19=null,from:_0x4e5a95=null,to:_0x2462b9=null}){_0x4e5a95=null!==_0x4e5a95?_0x4e5a95:_0x20db19['fromVersion'],_0x2462b9=null!==_0x2462b9?_0x2462b9:_0x20db19['toVersion'];const _0x314554=this['_revisionDataBuilder']['getData'](_0x4e5a95,_0x2462b9),_0x1c7f36={'diffData':_0x314554['diffData'],'authorsIds':_0x314554['authorsIds'],'fromVersion':_0x4e5a95,'toVersion':_0x2462b9};if(!_0x20db19||_0x2462b9!==_0x20db19['toVersion']){const _0x50e886=_0x2462b9-0x1,_0x175ed7=this['_source']['history']['getOperation'](_0x50e886);_0x1c7f36['createdAt']=_0x175ed7&&_0x175ed7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e5a95===this['_loadedStateData']['fromVersion']){for(const _0x2d1d8 of this['_loadedStateData']['authors'])_0x1c7f36['authorsIds']['includes'](_0x2d1d8['id'])||_0x1c7f36['authorsIds']['push'](_0x2d1d8['id']);}return _0x1c7f36;}['_loadRevisionData'](_0x49c4bf){if(!_0x49c4bf||_0x49c4bf['diffData'])return Promise['resolve']();{const _0x5e1561=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5e1561,'revisionId':_0x49c4bf['id']})['then'](_0x158054=>{_0x49c4bf['diffData']=_0x158054['diffData'];});}}['_bufferUpdate'](_0x47617c,_0x30a90b,_0x267c0b){if(this['_bufferedUpdates']['has'](_0x47617c)){const _0x3ec4a8=this['_bufferedUpdates']['get'](_0x47617c);_0x30a90b=_0x267c0b?{..._0x3ec4a8,..._0x30a90b}:{..._0x30a90b,..._0x3ec4a8};}this['_bufferedUpdates']['set'](_0x47617c,_0x30a90b);}['_getFromVersion'](_0x4c23ac){const _0x37c4a7=this['repository']['getRevisions']();_0x37c4a7['reverse'](),_0x37c4a7['shift']();const _0x48a91b=_0x37c4a7['find'](_0x168bb6=>_0x168bb6['toVersion']<=_0x4c23ac)['toVersion'];return _0x48a91b<this['_startingVersion']?this['_startingVersion']:_0x48a91b;}['_createInitialRevision'](_0x5ce619){const _0x32e0aa=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x32e0aa)this['_initialRevisionId']=_0x32e0aa['id'];else{const _0x5d93d4=!this['editor']['model']['document']['roots']['find'](_0x399d37=>this['editor']['model']['hasContent'](_0x399d37)),_0xfa8534=this['editor']['plugins']['get']('Users')['me']['id'],_0x501c53=R(this['editor']['locale'],_0x5d93d4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5ce619,'to':_0x5ce619,'id':this['_initialRevisionId'],'name':_0x501c53,'creatorId':_0xfa8534});}}['_createCurrentRevision'](_0x5eb640){const _0x1466fb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1466fb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5eb640,'to':_0x5eb640,'id':_0x1466fb,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4a8d3c,from:_0xae28c6,to:_0x3c3c62,creatorId:_0x4669ee,id:_0x15bb9f}){const _0x2ab37c=this['buildRevisionData']({'from':_0xae28c6,'to':_0x3c3c62});_0x2ab37c['name']=_0x4a8d3c,_0x2ab37c['creatorId']=_0x4669ee,_0x2ab37c['id']=_0x15bb9f;const _0x16ce4a=this['addRevisionData'](_0x2ab37c);return this['adapter']&&this['_bufferUpdate'](_0x2ab37c['id'],_0x2ab37c,!0x0),_0x16ce4a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4f760a){return(_0x4f760a=_0x4f760a['filter'](_0x585e26=>!_0x585e26['name']||'revision-start'!==_0x585e26['name']&&'revision-end'!==_0x585e26['name']))['forEach'](_0x222b0e=>{'string'!=typeof _0x222b0e&&(_0x222b0e['children']=this['_removeRevisionMarkers'](_0x222b0e['children']),_0x222b0e['attributes']=_0x222b0e['attributes']['filter'](_0x4b57ce=>!_0x4b57ce[0x0]['startsWith']('data-revision-')));}),_0x4f760a;}}function V(_0x563f52,_0x5f5c22){const _0x472d7a=_0x5f5c22['editing']['view']['document'];if('string'==typeof _0x563f52)return new _0x5b9193(_0x472d7a,_0x563f52);{const _0x3e1c1a=_0x563f52['children']['map'](_0x42053b=>V(_0x42053b,_0x5f5c22));return new(C[_0x563f52['type']]||_0x3ff468)(_0x472d7a,_0x563f52['name'],_0x563f52['attributes'],_0x3e1c1a);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x24541f){this['editor']=_0x24541f,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x28002b){this['source']=_0x28002b;const _0x38ac9c=new Map(),_0x5c8e57=new Map(),_0x5a3c3f=this['editor']['model']['document']['roots']['map'](_0x3d2590=>_0x3d2590['rootName']);for(const _0x4cb64a of _0x5a3c3f){const _0x445a69=this['editor']['model']['document']['getRoot'](_0x4cb64a),_0x4a30c5=F(_0x445a69);_0x38ac9c['set'](_0x4cb64a,_0x4a30c5),_0x5c8e57['set'](_0x4cb64a,Object['fromEntries'](_0x445a69['getAttributes']()));}const _0x38af73=Array['from'](this['editor']['model']['markers'])['map'](_0x5a1ed6=>[_0x5a1ed6['name'],_0x5a1ed6['getRange']()]),_0x388808=this['source']['version'];this['_saveMetaData'](_0x388808,_0x38ac9c,_0x38af73,_0x5c8e57),this['_startingRevisionId']=this['_revisionId'];const _0x198437=new Map(),_0x56a9e2=new Map();for(const _0x5d18a0 of _0x5a3c3f){const _0x595040=B(_0x5d18a0);_0x198437['set'](_0x5d18a0,_0x595040),_0x56a9e2['set'](_0x5d18a0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x198437,[],_0x56a9e2);}['getData'](_0x36dfcf,_0xb0c92c){if(this['_lastFrom']===_0x36dfcf&&this['_lastTo']<=_0xb0c92c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xb0c92c,!0x0);else{if(!this['_savedMetaData']['has'](_0x36dfcf)){const _0x560a81=this['_getPreviousFrom'](_0x36dfcf);this['_calculateMetaData'](_0x560a81,_0x36dfcf,!0x1);}this['_calculateMetaData'](_0x36dfcf,_0xb0c92c,!0x0);}return this['_lastFrom']=_0x36dfcf,this['_lastTo']=_0xb0c92c,this['_getState']();}['loadState'](_0x53d8fe){this['_reset'](),this['_lastFrom']=_0x53d8fe['fromVersion'],this['_lastTo']=_0x53d8fe['toVersion'];for(const _0xd98a42 in _0x53d8fe['diffData']){const _0x251172=_0x53d8fe['diffData'][_0xd98a42]['attachChange'],_0x238f86=_0xd15063(_0x53d8fe['diffData'][_0xd98a42]['attributesBefore'])||{},_0xf436e7=this['_makeModelFromViewString'](_0x53d8fe['diffData'][_0xd98a42]['deletions']);_0xf436e7['rootName']=_0xd98a42,_0xf436e7['_isAttached']=!_0x251172||!_0x251172['isAttached'],_0xf436e7['isAttached']=()=>_0xf436e7['_isAttached'],this['_baseRoots']['set'](_0xd98a42,_0xf436e7),this['_baseRootsAttributes']['set'](_0xd98a42,_0x238f86),_0x251172&&this['_touchedRoots']['set'](_0xd98a42,_0x251172);const _0xa55aed=this['_makeIdsRoot'](_0xf436e7);this['_baseIdsRoots']['set'](_0xd98a42,_0xa55aed);for(const [_0x33a898,_0x5732f8]of _0xf436e7['markers']){if(!_0x33a898['startsWith']('revision:'))continue;const _0x297b4f=_0x33a898['split'](':')[0x2];for(const _0x1b6e0f of _0x5732f8['getWalker']({'singleCharacters':!0x0})){const _0x17fd5f=this['_getVidAttributeName'](_0x1b6e0f),_0x59d79a='elementEnd'==_0x1b6e0f['type']?_0x1b6e0f['previousPosition']['path']['slice'](0x0,-0x1):_0x1b6e0f['previousPosition']['path'],_0x2328c1=_0xa55aed['getNodeByPath'](_0x59d79a)['getAttribute'](_0x17fd5f);this['_touched']['set'](_0x2328c1,{'userId':_0x297b4f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x162757=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4eef4c=>!this['_touched']['has'](_0x4eef4c));let _0x27e0bf=0x0;const _0xb57577=new Map();for(const _0x529e45 in _0x53d8fe['diffData']){const _0x570621=_0x53d8fe['diffData'][_0x529e45]['attachChange'],_0xd5021c=_0xd15063(_0x53d8fe['diffData'][_0x529e45]['attributesAfter'])||{},_0x5b2118=this['_makeModelFromViewString'](_0x53d8fe['diffData'][_0x529e45]['insertions']);_0x5b2118['rootName']=_0x529e45,_0x5b2118['_isAttached']=!_0x570621||_0x570621['isAttached'],_0x5b2118['isAttached']=()=>_0x5b2118['_isAttached'],this['_diffRoots']['set'](_0x529e45,_0x5b2118),this['_diffRootsAttributes']['set'](_0x529e45,_0xd5021c);const _0x582a92=this['_makeIdsRoot'](_0x5b2118,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x529e45,_0x582a92),_0xb57577['set'](_0x529e45,_0x5b2118['isAttached']()?_0xd5021c:{});for(const [_0x28983e,_0xe375d9]of _0x5b2118['markers']){if(!_0x28983e['startsWith']('revision:'))continue;const _0x256872=_0x28983e['split'](':')[0x2];for(const _0x346b7f of _0xe375d9['getWalker']({'singleCharacters':!0x0})){const _0x29bef0=this['_getVidAttributeName'](_0x346b7f),_0x5a13be=this['_revisionId']++,_0x14d471='elementEnd'==_0x346b7f['type']?_0x346b7f['previousPosition']['path']['slice'](0x0,-0x1):_0x346b7f['previousPosition']['path'];_0x582a92['getNodeByPath'](_0x14d471)['_setAttribute'](_0x29bef0,_0x5a13be),this['_touched']['set'](_0x5a13be,{'userId':_0x256872});}}for(const _0x17e592 of this['editor']['model']['createRangeIn'](_0x5b2118)['getWalker']({'singleCharacters':!0x0})){const _0xe502fd=this['_getVidAttributeName'](_0x17e592),_0x228be5='elementEnd'==_0x17e592['type']?_0x17e592['previousPosition']['path']['slice'](0x0,-0x1):_0x17e592['previousPosition']['path'],_0x201243=_0x582a92['getNodeByPath'](_0x228be5);_0x201243['getAttribute'](_0xe502fd)>0x0||_0x201243['_setAttribute'](_0xe502fd,_0x162757[_0x27e0bf++]);}for(const [_0x10f6d7,_0xe53e22]of _0x5b2118['markers'])_0x10f6d7['startsWith']('revision:')||this['_markers']['set'](_0x10f6d7,_0xe53e22);}const _0x17ddbe=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x17ddbe),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x17ddbe,0x1));const _0x40f33c=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x40f33c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x40f33c,0x1));const _0x105fa6=Array['from'](this['_diffRoots'])['map'](([_0x102baf,_0x377fa6])=>[_0x102baf,F(_0x377fa6)]);this['_saveMetaData'](this['_lastTo'],_0x105fa6,this['_markers'],_0xb57577);}['_makeModelFromViewString'](_0xdc683a){const _0x66104e=JSON['parse'](_0xdc683a),_0x353f86=this['editor']['editing']['view']['document'],_0x56d0a8=new _0x30434f(_0x353f86,_0x66104e['map'](_0x1aa266=>V(_0x1aa266,this['editor'])));return this['editor']['data']['toModel'](_0x56d0a8);}['_saveMetaData'](_0x206b41,_0x5b1cd4,_0x4e5dd7,_0xf43cc1){const _0x22eb59=new Map(_0x5b1cd4),_0x2cc01c=new Map(_0xd15063(_0xf43cc1)),_0x1e3cc5=new Map();for(const [_0x515dbc,_0x234db3]of _0x4e5dd7)_0x1e3cc5['set'](_0x515dbc,{'start':_0x234db3['start']['clone'](),'end':_0x234db3['end']['clone'](),'rootName':_0x234db3['root']['rootName']});this['_savedMetaData']['set'](_0x206b41,{'roots':_0x22eb59,'markers':_0x1e3cc5,'rootsAttributes':_0x2cc01c});}['_removeMetaData'](_0x4c035a){this['_savedMetaData']['delete'](_0x4c035a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x3677e2,_0x49fb74=null){let _0x20f99c=null;_0x3677e2['is']('documentFragment')||(_0x20f99c=new ft(_0x3677e2['name'],{'vid_start':null===_0x49fb74?this['_revisionId']++:_0x49fb74++}));const _0x38eb22=[];for(const _0x4cbb54 of _0x3677e2['getChildren']())if(_0x4cbb54['is']('element')){_0x38eb22['push'](this['_makeIdsRoot'](_0x4cbb54,_0x49fb74));const _0x493f12=_0x38eb22[_0x38eb22['length']-0x1];null!==_0x49fb74&&(_0x49fb74=_0x493f12['is']('element','$text')?_0x493f12['getAttribute']('vid')+0x1:_0x493f12['getAttribute']('vid_end')+0x1);}else{for(let _0x5f3f49=0x0;_0x5f3f49<_0x4cbb54['offsetSize'];_0x5f3f49++)_0x38eb22['push'](new ft('$text',{'vid':null===_0x49fb74?this['_revisionId']++:_0x49fb74++}));}if(_0x3677e2['is']('documentFragment')){const _0x16fe45=B(_0x3677e2['rootName']);return _0x16fe45['_insertChild'](0x0,_0x38eb22),_0x16fe45;}return _0x20f99c['_setAttribute']('vid_end',null===_0x49fb74?this['_revisionId']++:_0x49fb74++),_0x20f99c['_insertChild'](0x0,_0x38eb22),_0x20f99c;}['_calculateMetaData'](_0x43cc2a,_0x3a260d,_0x3d3442){this['_reset']();const {roots:_0x17a079,markers:_0x416817,rootsAttributes:_0x42596f}=this['_savedMetaData']['get'](_0x43cc2a);this['_baseRoots']=new Map(_0x17a079),this['_baseRootsAttributes']=new Map(_0xd15063(_0x42596f));for(const [_0xd81ae0,_0x27d165]of this['_baseRoots'])if('$graveyard'!==_0xd81ae0&&(this['_diffRoots']['set'](_0xd81ae0,F(_0x27d165)),this['_diffRootsAttributes']=new Map(_0xd15063(_0x42596f)),_0x3d3442)){const _0x1f2d77=this['_revisionId'];this['_idsRoots']['set'](_0xd81ae0,this['_makeIdsRoot'](_0x27d165)),this['_baseIdsRoots']['set'](_0xd81ae0,this['_makeIdsRoot'](_0x27d165,_0x1f2d77));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3d3442&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1f0dc8,_0x41884f]of _0x416817){const _0x74f1a5=this['_baseRoots']['get'](_0x41884f['rootName']),_0x35d859=this['_diffRoots']['get'](_0x41884f['rootName']),_0x2931a3=new vt(this['_fixPosition'](_0x41884f['start'],_0x74f1a5),this['_fixPosition'](_0x41884f['end'],_0x74f1a5)),_0x49efc3=this['_fixRange'](_0x2931a3,_0x35d859);_0x74f1a5['markers']['set'](_0x1f0dc8,_0x2931a3),this['_markers']['set'](_0x1f0dc8,_0x49efc3);}this['_applyOperations'](_0x43cc2a,_0x3a260d,_0x3d3442);}['_applyOperations'](_0x4f7133,_0x1554b1,_0x1d065a){for(const _0x5884e5 of this['source']['getOperations'](_0x4f7133,_0x1554b1))this['_handleOperation'](_0x5884e5,_0x1d065a);for(const _0x13245d of this['_diffRoots']['values']())_0x13245d['markers']['clear']();for(const [_0x2878eb,_0x28fc50]of this['_markers']){this['_diffRoots']['get'](_0x28fc50['root']['rootName'])['markers']['set'](_0x2878eb,_0x28fc50['clone']());}const _0x48b161=new Map(),_0x2c4f01=new Map();for(const [_0x1cd86d,_0x2c072a]of this['_diffRoots'])_0x48b161['set'](_0x1cd86d,F(_0x2c072a)),_0x2c4f01['set'](_0x1cd86d,this['_diffRootsAttributes']['get'](_0x1cd86d));this['_saveMetaData'](_0x1554b1,_0x48b161,this['_markers'],_0x2c4f01);}['_getPreviousFrom'](_0x3de369){const _0x1d087c=Array['from'](this['_savedMetaData']['keys']());_0x1d087c['sort']((_0x50de8c,_0x860ca9)=>_0x50de8c-_0x860ca9),_0x1d087c['reverse']();for(const _0x1b25be of _0x1d087c)if(_0x1b25be<_0x3de369)return _0x1b25be;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x229e18,_0x1bfbbe){const _0x35c6e6=Array['from'](_0x1bfbbe['markers'])['map'](([_0x301e36,_0x83f688])=>[_0x301e36,this['_fixRange'](_0x83f688,_0x229e18)]);_0x229e18['markers']=new Map(_0x35c6e6);}['_transformMarkers'](_0x430535){for(const _0x3ccbd5 of this['_markers']['values']()){const _0x435368=_0x3ccbd5['getTransformedByOperation'](_0x430535),_0x457937=vt['_createFromRanges'](_0x435368);_0x3ccbd5['start']=_0x457937['start'],_0x3ccbd5['end']=_0x457937['end'];}}['_handleOperation'](_0xbc77ff,_0x251fb7){if('addRoot'!=_0xbc77ff['type']&&'detachRoot'!=_0xbc77ff['type']){if('insert'==_0xbc77ff['type']){const _0x181047=_0xbc77ff['position']['root']['rootName'];this['_diffRoots']['has'](_0x181047)||(this['_diffRoots']['set'](_0x181047,B(_0x181047,!0x0)),this['_diffRootsAttributes']['set'](_0x181047,{}),_0x251fb7&&this['_idsRoots']['set'](_0x181047,B(_0x181047,!0x0)));}else{if('addRootAttribute'==_0xbc77ff['type']||'removeRootAttribute'==_0xbc77ff['type']||'changeRootAttribute'==_0xbc77ff['type'])return void this['_handleRootAttributeOperation'](_0xbc77ff);'marker'==_0xbc77ff['type']&&this['_handleMarkerOperation'](_0xbc77ff);}if('marker'!==_0xbc77ff['type']){const _0xdefa37=this['_cloneOperation'](_0xbc77ff,this['_diffRoots']);_0xdefa37['_execute'](),this['_transformMarkers'](_0xdefa37);}if(_0x251fb7)switch(_0xbc77ff['type']){case'insert':this['_handleInsertOperation'](_0xbc77ff);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xbc77ff);break;case'merge':this['_handleMergeOperation'](_0xbc77ff);break;case'split':this['_handleSplitOperation'](_0xbc77ff);}}else this['_handleRootOperation'](_0xbc77ff,_0x251fb7);}['_cloneOperation'](_0x42f707,_0x12c45e){const _0x2ac3d3=_0x42f707['clone']();return _0x2ac3d3['_authorId']=_0x42f707['_authorId'],this['_fixOperation'](_0x2ac3d3,_0x12c45e),_0x2ac3d3;}['_getBaseVids'](_0x7018a3){return _0x7018a3['map'](_0x529f95=>{const _0x28a456=this['_getVidAttributeName'](_0x529f95);return Number(_0x529f95['item']['getAttribute'](_0x28a456));});}['_generateTape'](_0x1bd8e7,_0x5e9c40){if(_0x1bd8e7['is']('element','$text'))_0x5e9c40['push']({'item':_0x1bd8e7,'type':'text'});else{_0x1bd8e7['is']('element')&&_0x5e9c40['push']({'item':_0x1bd8e7,'type':'elementStart'});for(const _0x1477c7 of _0x1bd8e7['getChildren']())this['_generateTape'](_0x1477c7,_0x5e9c40);_0x1bd8e7['is']('element')&&_0x5e9c40['push']({'item':_0x1bd8e7,'type':'elementEnd'});}return _0x5e9c40;}['_getState'](){const _0x5a1db7=new Map(this['_touched']),_0x169da6=new Map(_0x5a1db7),_0x2b4b65=new Map(),_0x203df6={'insertions':{},'deletions':{}},_0x21bfc4={'insertions':{},'deletions':{}},_0x199bec=new Map(),_0x164801=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x164801['delete']('$graveyard');for(const _0x35157b of _0x164801){const _0x417bf6=this['_diffRoots']['get'](_0x35157b)||B(_0x35157b,!0x1),_0x5e09ed=this['_baseRoots']['get'](_0x35157b)||B(_0x35157b,!0x1);_0x417bf6['isAttached']()||_0x5e09ed['isAttached']()?(_0x203df6['insertions'][_0x35157b]=F(_0x417bf6),_0x203df6['deletions'][_0x35157b]=F(_0x5e09ed),this['_copyMarkers'](_0x203df6['deletions'][_0x35157b],_0x5e09ed),this['_copyMarkers'](_0x203df6['insertions'][_0x35157b],_0x417bf6),_0x21bfc4['insertions'][_0x35157b]=this['_generateTape'](this['_idsRoots']['get'](_0x35157b),[]),_0x21bfc4['deletions'][_0x35157b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x35157b)||B(_0x35157b,!0x1),[])):_0x164801['delete'](_0x35157b);}for(const _0x3c115d of _0x164801){const _0x3d56a4=_0x21bfc4['insertions'][_0x3c115d];for(const _0x5739d7 of _0x3d56a4){const _0x39265a=this['_getVidAttributeName'](_0x5739d7),_0x150980=_0x5739d7['item']['getAttribute'](_0x39265a);_0x169da6['delete'](_0x150980),_0x150980>=this['_startingRevisionId']&&_0x2b4b65['set'](_0x150980,_0x5a1db7['get'](_0x150980));}}for(const _0x51595f of _0x164801){const _0x74368e=_0x21bfc4['insertions'][_0x51595f],_0x32d194=this['_getBaseVids'](_0x21bfc4['deletions'][_0x51595f]);let _0x11577c=0x0;for(const _0x871ce0 of _0x74368e){const _0x95a981=this['_getVidAttributeName'](_0x871ce0),_0x145f43=_0x871ce0['item']['getAttribute'](_0x95a981);if(!_0x2b4b65['has'](_0x145f43)&&!_0x199bec['has'](_0x145f43)){if(_0x169da6['has'](_0x145f43))_0x11577c++;else{if(_0x145f43!=_0x32d194[_0x11577c]){const _0x1b62e6=_0x5a1db7['get'](_0x145f43)||_0x5a1db7['get'](_0x32d194[_0x11577c]);for(;_0x145f43!=_0x32d194[_0x11577c];)_0x169da6['has'](_0x32d194[_0x11577c])||(_0x199bec['set'](_0x32d194[_0x11577c],_0x1b62e6),_0x5a1db7['set'](_0x32d194[_0x11577c],_0x1b62e6)),_0x11577c++;}_0x11577c++;}}}}for(const _0x11f9b0 of _0x164801){const _0x35f8e6=_0x21bfc4['insertions'][_0x11f9b0];for(const _0x364158 of _0x35f8e6){const _0x3c105b=this['_getVidAttributeName'](_0x364158),_0x2e1cd6=_0x364158['item']['getAttribute'](_0x3c105b);if(_0x199bec['has'](_0x2e1cd6)){const _0xde6226=_0x199bec['get'](_0x2e1cd6);_0x169da6['has'](_0x2e1cd6)||_0x169da6['set'](_0x2e1cd6,{..._0xde6226}),_0x2b4b65['set'](_0x2e1cd6,{..._0xde6226});}}}for(const _0xcec316 of _0x169da6['keys']())_0xcec316>=this['_startingRevisionId']&&_0x169da6['delete'](_0xcec316);const _0x9d684b=new Map();for(const _0x22a4bc of _0x164801){let _0x145755=_0x21bfc4['insertions'][_0x22a4bc];for(const _0x41e486 of _0x145755)if(_0x41e486['item']['is']('element','tableCell')){const _0x1d9d1b=this['_getVidAttributeName'](_0x41e486),_0x2afb78=_0x41e486['item']['getAttribute'](_0x1d9d1b);if(_0x2b4b65['has'](_0x2afb78)){const _0x4ac1f3=_0x41e486['item']['parent']['parent']['getAttribute']('vid_start'),_0x50241c=_0x9d684b['get'](_0x4ac1f3)||new Set();_0x50241c['add'](_0x2b4b65['get'](_0x2afb78)['userId']),_0x9d684b['set'](_0x4ac1f3,_0x50241c);}}_0x145755=_0x21bfc4['deletions'][_0x22a4bc];for(const _0xa5407f of _0x145755)if(_0xa5407f['item']['is']('element','tableCell')){const _0x5b1377=this['_getVidAttributeName'](_0xa5407f),_0x5f3ee7=_0xa5407f['item']['getAttribute'](_0x5b1377);if(_0x169da6['has'](_0x5f3ee7)){const _0xcea671=_0xa5407f['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ce4d=_0x9d684b['get'](_0xcea671)||new Set();_0x4ce4d['add'](_0x169da6['get'](_0x5f3ee7)['userId']),_0x9d684b['set'](_0xcea671,_0x4ce4d);}}for(const _0x2be9c1 of _0x9d684b['keys']())(_0x2b4b65['has'](_0x2be9c1)||_0x169da6['has'](_0x2be9c1))&&_0x9d684b['delete'](_0x2be9c1);}for(const _0x2d50ab of _0x164801){const _0xc9520e=_0x21bfc4['insertions'][_0x2d50ab];let _0x184e98=null,_0x27c93f=null;for(const _0x148679 of _0xc9520e){const _0xf4a7ef=this['_getVidAttributeName'](_0x148679),_0x12f8ee=_0x148679['item']['getAttribute'](_0xf4a7ef),_0x3d3c5f=_0x9d684b['get'](_0x12f8ee);_0x3d3c5f&&'elementStart'==_0x148679['type']&&(_0x184e98=Array['from'](_0x3d3c5f)[0x0],_0x27c93f=_0x148679['item']['getAttribute']('vid_end')),_0x184e98&&(_0x169da6['set'](_0x12f8ee,{'userId':_0x184e98}),_0x2b4b65['set'](_0x12f8ee,{'userId':_0x184e98})),_0x12f8ee==_0x27c93f&&(_0x184e98=null,_0x27c93f=null);}}const _0x4c991a={},_0x39f86f=new Set();for(const _0x30fd48 of _0x164801){const _0x2050b3=_0x203df6['deletions'][_0x30fd48],_0x3619cf=_0x203df6['insertions'][_0x30fd48];for(const {userId:_0x469cc6}of this['_touchedMarkers']['values']())null!==_0x469cc6&&_0x39f86f['add'](_0x469cc6);for(const {userId:_0x506483}of this['_touchedRoots']['values']())null!==_0x506483&&_0x39f86f['add'](_0x506483);this['_markChanges'](_0x3619cf,_0x21bfc4['insertions'][_0x30fd48],_0x2b4b65,'insertion',_0x39f86f),this['_markChanges'](_0x2050b3,_0x21bfc4['deletions'][_0x30fd48],_0x169da6,'deletion',_0x39f86f),_0x4c991a[_0x30fd48]={'insertions':this['_prepareViewToSave'](_0x3619cf),'deletions':this['_prepareViewToSave'](_0x2050b3),'attachChange':this['_touchedRoots']['get'](_0x30fd48)||null,'attributesBefore':_0xd15063(this['_baseRootsAttributes']['get'](_0x30fd48))||{},'attributesAfter':_0xd15063(this['_diffRootsAttributes']['get'](_0x30fd48))};}return{'diffData':_0x4c991a,'authorsIds':Array['from'](_0x39f86f)};}['_processRootBeforeSave'](_0x272068){for(const [,_0x2ccaf9]of _0x272068['markers']){const _0x402f59=_0x2ccaf9['start']['getAncestors']()['filter'](_0x256785=>'tableCell'==_0x256785['name']);for(const _0x5aa23d of _0x402f59)0x1==_0x5aa23d['childCount']&&_0x5aa23d['getChild'](0x0)['is']('element','paragraph')&&_0x5aa23d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4c4e2d){this['_processRootBeforeSave'](_0x4c4e2d);const _0xbdf34f=this['editor']['data']['toView'](_0x4c4e2d,{}),_0x1910ac=Array['from'](_0xbdf34f['getChildren']())['map'](_0x51d4a8=>this['_getViewJson'](_0x51d4a8));return JSON['stringify'](_0x1910ac);}['_getViewJson'](_0x231782){if(_0x231782['is']('$text'))return _0x231782['data'];{const _0x180c44=_0x231782;return{'type':Object['keys'](C)['find'](_0x24512a=>_0x231782 instanceof C[_0x24512a]),'name':_0x180c44['name'],'attributes':Array['from'](_0x180c44['getAttributes']()),'children':Array['from'](_0x180c44['getChildren']())['map'](_0x417945=>this['_getViewJson'](_0x417945))};}}['_markChanges'](_0x503de1,_0x27c5b4,_0x29ec93,_0x2d4fab,_0x5508e4){let _0x3c317a=null,_0x1b056e=null,_0x576476=0x0;const _0x20540e=this['editor']['model'];for(let _0x2bace4=0x0;_0x2bace4<_0x27c5b4['length'];_0x2bace4++){const _0x51ab31=this['_getVidAttributeName'](_0x27c5b4[_0x2bace4]),_0x5acfe1=_0x27c5b4[_0x2bace4]['item']['getAttribute'](_0x51ab31),_0x2c1408=_0x29ec93['get'](_0x5acfe1),_0x54032f=_0x2bace4==_0x27c5b4['length']-0x1;(!_0x3c317a&&_0x2c1408&&(_0x3c317a=_0x2c1408,_0x1b056e=_0x27c5b4[_0x2bace4]),_0x3c317a&&(!_0x2c1408||_0x2c1408['userId']!=_0x3c317a['userId']))&&(_0x2a9af0(_0x2c1408,J(_0x1b056e,_0x503de1,_0x20540e),J(_0x27c5b4[_0x2bace4],_0x503de1,_0x20540e)),_0x3c317a=_0x2c1408||null,_0x1b056e=_0x2c1408?_0x27c5b4[_0x2bace4]:null),_0x3c317a&&_0x54032f&&_0x2a9af0(_0x2c1408,J(_0x1b056e,_0x503de1,_0x20540e),q(_0x27c5b4[_0x2bace4],_0x503de1,_0x20540e));}function _0x2a9af0(_0x53a7c9,_0x53bd90,_0x1e2183){const _0x503e44=_0x3c317a['userId'],_0x53eff9='revision:'+_0x2d4fab+':'+_0x503e44+':'+_0x576476++,_0x1346ca=_0x20540e['createRange'](_0x53bd90,_0x1e2183);_0x503de1['markers']['set'](_0x53eff9,_0x1346ca),null!==_0x503e44&&_0x5508e4['add'](_0x503e44);}}['_getVidAttributeName'](_0x38d1ae){switch(_0x38d1ae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x344811,_0x49641d){_0x344811['baseVersion']=null;for(const _0x27c5e0 in _0x344811){const _0x48cd8a=_0x344811[_0x27c5e0];if(_0x48cd8a instanceof gt){const _0x3afd5d=_0x49641d['get'](_0x48cd8a['root']['rootName']);_0x344811[_0x27c5e0]=this['_fixPosition'](_0x48cd8a,_0x3afd5d);}if(_0x48cd8a instanceof vt){const _0x497537=_0x49641d['get'](_0x48cd8a['root']['rootName']);_0x344811[_0x27c5e0]=this['_fixRange'](_0x48cd8a,_0x497537);}'root'===_0x27c5e0&&(_0x344811['root']=_0x49641d['get'](_0x344811['root']['rootName']));}}['_fixRange'](_0x18f54f,_0x4a0ac2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x18f54f['start'],_0x4a0ac2),this['_fixPosition'](_0x18f54f['end'],_0x4a0ac2));}['_fixPosition'](_0x45165d,_0x4afbce){return this['editor']['model']['createPositionFromPath'](_0x4afbce,_0x45165d['path'],_0x45165d['stickiness']);}['_handleInsertOperation'](_0x57b34e){const _0x14b899=this['_idsRoots']['get'](_0x57b34e['position']['root']['rootName']),_0x3351a5=this['_fixPosition'](_0x57b34e['position'],_0x14b899),_0x54735c=null===_0x57b34e['_authorId']?null:_0x57b34e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51e79a=_0x3351a5['parent'],_0x42735c=this['_revisionId'],_0x447c0f=[];for(const _0x308bab of _0x57b34e['nodes'])if(_0x308bab['is']('element'))_0x447c0f['push'](this['_makeIdsRoot'](_0x308bab));else{for(let _0x2f6c1d=0x0;_0x2f6c1d<_0x308bab['offsetSize'];_0x2f6c1d++)_0x447c0f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5a93e4=this['_revisionId'];for(let _0x41e7a5=_0x42735c;_0x41e7a5<_0x5a93e4;_0x41e7a5++)this['_touched']['set'](_0x41e7a5,{'userId':_0x54735c});_0x51e79a['_insertChild'](_0x3351a5['offset'],_0x447c0f);}['_handleMoveOperation'](_0x19926b){(_0x19926b=this['_cloneOperation'](_0x19926b,this['_idsRoots']))['_execute']();const _0xb9d175=null===_0x19926b['_authorId']?null:_0x19926b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5abcc2=_0x19926b['getMovedRangeStart'](),_0xfad0d7=_0x5abcc2['parent'],_0x1caa36=_0x5abcc2['offset'];!function _0x5d5529(_0x5bf133,_0x59f6c6,_0x1f592e,_0x4875fd){for(let _0xf995da=_0x1f592e;_0xf995da<_0x4875fd;_0xf995da++){const _0x36d164=_0x59f6c6['getChild'](_0xf995da);_0x36d164['is']('element','$text')?_0x5bf133['set'](_0x36d164['getAttribute']('vid'),{'userId':_0xb9d175}):(_0x5bf133['set'](_0x36d164['getAttribute']('vid_start'),{'userId':_0xb9d175}),_0x5d5529(_0x5bf133,_0x36d164,0x0,_0x36d164['childCount']),_0x5bf133['set'](_0x36d164['getAttribute']('vid_end'),{'userId':_0xb9d175}));}}(this['_touched'],_0xfad0d7,_0x1caa36,_0x1caa36+_0x19926b['howMany']);}['_handleMergeOperation'](_0x2e77ee){const _0x32c25a=null===(_0x2e77ee=this['_cloneOperation'](_0x2e77ee,this['_idsRoots']))['_authorId']?null:_0x2e77ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c3fe1=_0x2e77ee['targetPosition']['parent'],_0x438dcf=_0x2e77ee['sourcePosition']['parent'],_0x40cb44=_0x4c3fe1['getAttribute']('vid_end'),_0x35b874=_0x438dcf['getAttribute']('vid_start');_0x4c3fe1['_setAttribute']('vid_end',_0x438dcf['getAttribute']('vid_end')),_0x438dcf['_setAttribute']('vid_end',_0x40cb44),this['_touched']['set'](_0x35b874,{'userId':_0x32c25a}),this['_touched']['set'](_0x40cb44,{'userId':_0x32c25a}),_0x2e77ee['_execute']();}['_handleSplitOperation'](_0x5923c1){const _0x5499a3=null===(_0x5923c1=this['_cloneOperation'](_0x5923c1,this['_idsRoots']))['_authorId']?null:_0x5923c1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x725209=_0x5923c1['graveyardPosition'],_0x47b78e=_0x5923c1['splitPosition']['parent'];_0x5923c1['_execute']();const _0x53d347=_0x47b78e['getAttribute']('vid_end'),_0x1b6acd=_0x5923c1['insertionPosition']['nodeAfter'];if(_0x725209){const _0x2118b2=_0x1b6acd['getAttribute']('vid_end'),_0x5401ad=_0x47b78e['getAttribute']('vid_end');_0x47b78e['_setAttribute']('vid_end',_0x2118b2),_0x1b6acd['_setAttribute']('vid_end',_0x5401ad),this['_touched']['set'](_0x47b78e['getAttribute']('vid_end'),{'userId':_0x5499a3}),this['_touched']['set'](_0x1b6acd['getAttribute']('vid_start'),{'userId':_0x5499a3});}else{const _0x4bae47=this['_revisionId']++,_0x2572ef=this['_revisionId']++;_0x47b78e['_setAttribute']('vid_end',_0x4bae47),_0x1b6acd['_setAttribute']('vid_start',_0x2572ef),_0x1b6acd['_setAttribute']('vid_end',_0x53d347),this['_touched']['set'](_0x4bae47,{'userId':_0x5499a3}),this['_touched']['set'](_0x2572ef,{'userId':_0x5499a3});}}['_handleMarkerOperation'](_0x243f6e){if(!_0x243f6e['affectsData'])return;const _0x27ae72=(_0x243f6e=this['_cloneOperation'](_0x243f6e,this['_diffRoots']))['oldRange']?_0x243f6e['oldRange']['root']:null,_0x152afa=_0x243f6e['newRange']?_0x243f6e['newRange']['root']:null;_0x27ae72&&this['_markers']['delete'](_0x243f6e['name']),_0x152afa&&this['_markers']['set'](_0x243f6e['name'],_0x243f6e['newRange']['clone']());const _0x44bfe6=null===_0x243f6e['_authorId']?null:_0x243f6e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d8d80=_0x243f6e['name'];if(!this['_touchedMarkers']['has'](_0x1d8d80))return void this['_touchedMarkers']['set'](_0x1d8d80,{'range':_0x243f6e['oldRange'],'userId':_0x44bfe6});const _0x15d06c=this['_touchedMarkers']['get'](_0x1d8d80),_0x4ba06e=_0x15d06c['range'],_0x3e8211=_0x243f6e['newRange'];null==_0x4ba06e&&null==_0x3e8211||_0x4ba06e&&_0x3e8211&&_0x4ba06e['isEqual'](_0x3e8211)?this['_touchedMarkers']['delete'](_0x243f6e['name']):_0x15d06c['userId']=_0x44bfe6;}['_handleRootOperation'](_0x56bbca,_0x1af674){this['_diffRoots']['has'](_0x56bbca['rootName'])?this['_diffRoots']['get'](_0x56bbca['rootName'])['_isAttached']=_0x56bbca['isAdd']:(this['_diffRoots']['set'](_0x56bbca['rootName'],B(_0x56bbca['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x56bbca['rootName'],{}),_0x1af674&&this['_idsRoots']['set'](_0x56bbca['rootName'],B(_0x56bbca['rootName'],!0x0)));const _0x3c65dd=null===_0x56bbca['_authorId']?null:_0x56bbca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10f74f=this['_touchedRoots']['get'](_0x56bbca['rootName']);_0x10f74f&&_0x10f74f['userId']===_0x3c65dd?this['_touchedRoots']['delete'](_0x56bbca['rootName']):this['_touchedRoots']['set'](_0x56bbca['rootName'],{'userId':_0x3c65dd,'isAttached':_0x56bbca['isAdd']});}['_handleRootAttributeOperation'](_0x3cf4f4){const _0xbea939=this['_diffRootsAttributes']['get'](_0x3cf4f4['root']['rootName']);null===_0x3cf4f4['newValue']?delete _0xbea939[_0x3cf4f4['key']]:_0xbea939[_0x3cf4f4['key']]=_0x3cf4f4['newValue'];}}function F(_0x3944d1){const _0x3ff8c0=B(_0x3944d1['rootName'],_0x3944d1['isAttached']());for(const _0x3c5f1f of _0x3944d1['getChildren']()){const _0x40c57b=_0x3c5f1f['_clone'](!0x0);_0x3ff8c0['_appendChild'](_0x40c57b);}return _0x3ff8c0;}function B(_0x1abf3c,_0x2116a2=!0x0){const _0x54abfb=new wt();return _0x54abfb['rootName']=_0x1abf3c,_0x54abfb['_isAttached']=_0x2116a2,_0x54abfb['isAttached']=()=>_0x54abfb['_isAttached'],_0x54abfb;}function J(_0x2ead10,_0x11a15b,_0x32c54e){const _0x55e92e='elementEnd'==_0x2ead10['type']?_0x32c54e['createPositionAt'](_0x2ead10['item'],'end'):_0x32c54e['createPositionBefore'](_0x2ead10['item']);return _0x32c54e['createPositionFromPath'](_0x11a15b,_0x55e92e['path'],_0x55e92e['stickiness']);}function q(_0x483a0c,_0x14c205,_0x537390){const _0x2a5fbe='elementStart'==_0x483a0c['type']?_0x537390['createPositionAt'](_0x483a0c['item'],0x0):_0x537390['createPositionAfter'](_0x483a0c['item']);return _0x537390['createPositionFromPath'](_0x14c205,_0x2a5fbe['path'],_0x2a5fbe['stickiness']);}class ns extends _0x4f4dcf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x38c630,_0x3b0c64){super(_0x38c630),this['focusTracker']=new _0x20319a(),this['keystrokes']=new _0x3c6629(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3b0c64),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x258bed({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x40832a=_0xc53dc7=>_0xc53dc7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x40832a),this['keystrokes']['set']('arrowleft',_0x40832a),this['keystrokes']['set']('arrowup',_0x40832a),this['keystrokes']['set']('arrowdown',_0x40832a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3df83f){this['revisionNameInputView']['fieldView']['element']['value']=_0x3df83f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x267ff1){const _0x2198c9=new at(this['locale'],_0x5e8fe9),_0x318b21=_0x2198c9['fieldView'];_0x318b21['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3c50bf=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x267ff1&&(_0x3c50bf+='\x20('+R(this['locale'],'optional')+')'),(_0x2198c9['label']=_0x3c50bf,_0x318b21['on']('input',()=>{this['revisionNameInputValue']=_0x318b21['element']['value']['trim']();}),_0x2198c9);}}class u extends _0x9a5545{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x38a021=this['editor'],_0x446b5b=_0x38a021['plugins']['get']('RevisionTracker');_0x38a021['ui']['componentFactory']['add']('revisionHistory',_0x2a6813=>{const _0x56f1b9=_0x5c06d4(_0x2a6813),_0x475eae=_0x56f1b9['panelView']['children'],_0x315652=new te(_0x2a6813),_0x4126c5=new _0xeca532(_0x2a6813),_0x77fd2f=new _0x18590d(_0x2a6813),_0x2df7f5=new _0xeca532(_0x2a6813),_0x31220b=new _0x18590d(_0x2a6813);return _0x56f1b9['bind']('isEnabled')['to'](_0x446b5b,'isReady',_0x446b5b,'isEnabled',_0x38a021,'isReadOnly',(_0x57e9c2,_0x11d88d,_0x28ab9f)=>_0x57e9c2&&_0x11d88d&&!_0x28ab9f),_0x56f1b9['buttonView']['set']({'icon':_0x25fa55['history'],'label':R(_0x2a6813,'Revision\x20history'),'tooltip':!0x0}),_0x77fd2f['set']({'label':R(_0x2a6813,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x77fd2f['bind']('isEnabled')['to'](_0x446b5b,'isReady',_0x446b5b,'isEnabled',_0x38a021,'isReadOnly',(_0x3abce1,_0x4e0496,_0x2a7d12)=>_0x3abce1&&_0x4e0496&&!_0x2a7d12),_0x77fd2f['on']('execute',()=>this['_showDialog']()),_0x31220b['set']({'label':R(_0x2a6813,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x31220b['bind']('isEnabled')['to'](_0x446b5b,'isReady',_0x38a021,'isReadOnly',(_0x723d4d,_0x5defbe)=>_0x723d4d&&!_0x5defbe),_0x31220b['on']('execute',()=>{_0x38a021['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x56f1b9['isOpen']=!0x1,_0x38a021['editing']['view']['focus']();}),_0x4126c5['children']['add'](_0x77fd2f),_0x2df7f5['children']['add'](_0x31220b),_0x315652['role']='menu',_0x315652['items']['addMany']([_0x4126c5,_0x2df7f5]),_0x475eae['add'](_0x315652),_0x56f1b9;}),_0x38a021['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5b3e9e=this['editor'],_0x33fc12=_0x5b3e9e['locale'],_0x3bba36=new _0x5afccc(_0x33fc12),_0x4a5c05=new _0x1e0c87(_0x33fc12);_0x3bba36['buttonView']['set']({'icon':_0x25fa55['history'],'label':R(_0x33fc12,'Revision\x20history')});const _0x42cce8=new _0x51e979(_0x33fc12,_0x3bba36),_0x32d6d9=new _0x39a7a7(_0x33fc12);_0x32d6d9['set']({'label':R(_0x33fc12,'Save\x20current\x20revision')}),_0x32d6d9['delegate']('execute')['to'](_0x3bba36),_0x32d6d9['on']('execute',()=>{this['_showDialog']();}),_0x42cce8['children']['add'](_0x32d6d9),_0x4a5c05['items']['add'](_0x42cce8);const _0x5d919b=new _0x51e979(_0x33fc12,_0x3bba36),_0x1a9045=new _0x39a7a7(_0x33fc12);return _0x1a9045['set']({'label':R(_0x33fc12,'Open\x20revision\x20history')}),_0x1a9045['delegate']('execute')['to'](_0x3bba36),_0x1a9045['on']('execute',()=>{_0x5b3e9e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5d919b['children']['add'](_0x1a9045),_0x4a5c05['items']['add'](_0x5d919b),_0x3bba36['panelView']['children']['add'](_0x4a5c05),_0x3bba36;}['_showDialog'](){const _0x9bea38=this['editor'],_0x448209=_0x9bea38['locale'],_0x5b0dc9=_0x9bea38['plugins']['get']('Dialog'),_0x49c6ab=_0x9bea38['plugins']['get']('RevisionTracker');function _0x4cdaec(_0x346f10){_0x9bea38['config']['get']('revisionHistory.requireRevisionName')&&''===_0x346f10['revisionName']?_0x346f10['revisionNameInputView']['errorText']=R(_0x448209,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x9bea38['plugins']['get'](l)['saveRevision']({'name':_0x346f10['revisionName']}),_0x5b0dc9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4cdaec(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5b0dc9['show']({'id':'revisionSave','title':R(_0x448209,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x9bea38['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5b0dc9['hide']()},{'label':R(_0x9bea38['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4e0a62){_0x4e0a62['bind']('isEnabled')['to'](_0x49c6ab,'isReady',_0x49c6ab,'isEnabled',_0x9bea38,'isReadOnly',(_0x1dfe4d,_0x109787,_0x14b67f)=>_0x1dfe4d&&_0x109787&&!_0x14b67f);},'onExecute':()=>_0x4cdaec(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x55bb89=this['editor'],_0x430080=_0x55bb89['locale'];this['_saveRevisionFormView']=new ns(_0x430080,_0x55bb89['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x4f4dcf{['changeId'];['_model'];constructor(_0x14bcea,_0x1d6ff5){super(_0x14bcea),this['_model']=_0x1d6ff5,this['changeId']=_0x1d6ff5['id'];const _0x46ce0c=this['bindTemplate'],_0x14cc00=R(_0x14bcea,_0x1d6ff5['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1d6ff5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1d6ff5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x46ce0c['to']('type',_0x387b59=>'ck-revision-change__'+_0x387b59)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x14cc00}]},{'text':'\x20'+_0x1d6ff5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x1212e4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x34ae7a){super(),this['id']=_0x34ae7a['id']||_0x1ced54(),this['author']=_0x34ae7a['author'],this['type']=_0x34ae7a['type'],this['data']=_0x34ae7a['data']||{},this['rootName']=_0x34ae7a['rootName'],this['set']('createdAt',_0x34ae7a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1a6426,_0x5c5079){this['newRevisionId']=_0x1a6426,this['oldRevisionId']=_0x5c5079,this['changes']=new _0x2f121a();}['_setChanges'](_0x2e3124){for(const _0x463904 of _0x2e3124)this['changes']['add'](_0x463904);}}const Z={'c':_0x4221dd,'a':_0x414029,'e':_0x452337,'r':_0x3497f3,'u':_0xa39994};class d extends _0x9a5545{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5241b4,_0x613301,j];}constructor(_0x5a8d84){super(_0x5a8d84),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x11459b,_0x51d503,_0x744414)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x567ea1=>{for(const _0x4239cc of this['editor']['editing']['view']['document']['roots'])_0x744414?_0x567ea1['removeClass']('ck-editor__editable__overlay',_0x4239cc):_0x567ea1['addClass']('ck-editor__editable__overlay',_0x4239cc);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x354764=>null!==_0x354764),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xc13487,_0x1c4974,_0x1efadc)=>_0xc13487&&_0x1efadc?_0x1c4974['changes']['getIndex'](_0x1efadc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2570a5,_0x1208f6)=>_0x2570a5?_0x1208f6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x613301);}['init'](){const _0x55ddd2=this['editor'],_0x47df75=new bt(_0x55ddd2,{'direction':'backward'}),_0x25e73a=new bt(_0x55ddd2,{'direction':'forward'});(_0x55ddd2['commands']['add']('showPreviousChange',_0x47df75),_0x55ddd2['commands']['add']('showNextChange',_0x25e73a),_0x55ddd2['commands']['add']('restoreRevision',new yt(_0x55ddd2)),this['on']('change:numberOfChanges',()=>{_0x47df75['refresh'](),_0x25e73a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x55ddd2['enableReadOnlyMode']('revision-viewer'),_0x55ddd2['plugins']['has']('WidgetToolbarRepository'))&&_0x55ddd2['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5f575c){await this['loadRevisionData'](_0x5f575c);const _0x160f72={};for(const _0x4abe9f in _0x5f575c['diffData']){if(_0x5f575c['diffData'][_0x4abe9f]['attachChange']&&!_0x5f575c['diffData'][_0x4abe9f]['attachChange']['isAttached'])continue;const _0x44639f=this['_removeRevisionMarkers'](JSON['parse'](_0x5f575c['diffData'][_0x4abe9f]['insertions'])),_0x2f465a=this['editor']['editing']['view']['document'],_0x196dda=new _0x30434f(_0x2f465a,_0x44639f['map'](_0x5c0ad9=>this['_getViewObj'](_0x5c0ad9)));this['editor']['data']['processor']['useFillerType']('marked'),_0x160f72[_0x4abe9f]=this['editor']['data']['processor']['toData'](_0x196dda),this['editor']['data']['processor']['useFillerType']('default');}return _0x160f72;}async['getRevisionRootsAttributes'](_0x13ca62){await this['loadRevisionData'](_0x13ca62);const _0x377ef7={};for(const _0x213603 in _0x13ca62['diffData'])_0x13ca62['diffData'][_0x213603]['attachChange']&&!_0x13ca62['diffData'][_0x213603]['attachChange']['isAttached']||(_0x377ef7[_0x213603]=_0x13ca62['diffData'][_0x213603]['attributesAfter']||{});return _0x377ef7;}['_removeRevisionMarkers'](_0x1e0c46){return(_0x1e0c46=_0x1e0c46['filter'](_0x535ded=>!_0x535ded['name']||'revision-start'!==_0x535ded['name']&&'revision-end'!==_0x535ded['name']))['forEach'](_0x222cf5=>{'string'!=typeof _0x222cf5&&(_0x222cf5['children']=this['_removeRevisionMarkers'](_0x222cf5['children']),_0x222cf5['attributes']=_0x222cf5['attributes']['filter'](_0x3e9aa8=>!_0x3e9aa8[0x0]['startsWith']('data-revision-')));}),_0x1e0c46;}async['compare'](_0x5d59d4,_0x101049,_0x1f04f5=!0x1){if(!this['isEnabled'])return;const _0x5b64d7=this['diff'],_0x405ae4=this['repository'],_0x33870b='string'==typeof _0x5d59d4?_0x405ae4['getRevision'](_0x5d59d4):_0x5d59d4,_0x470141='string'==typeof _0x101049?_0x405ae4['getRevision'](_0x101049):_0x101049,_0x3a1ac1=_0x33870b['id'],_0x5bc1d5=_0x470141?_0x470141['id']:null;if(!_0x1f04f5&&this['diff']&&this['diff']['newRevisionId']===_0x3a1ac1&&this['diff']['oldRevisionId']===_0x5bc1d5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3a1ac1,_0x5bc1d5);const _0x5ef374=this['_getRevisionsRange'](_0x33870b,_0x470141,!0x0)['map'](_0x330052=>this['loadRevisionData'](_0x330052));return _0x5ef374['push'](new Promise(_0x5cfee3=>{setTimeout(_0x5cfee3,0x14);})),Promise['all'](_0x5ef374)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4e9e21=this['_getDiff'](_0x3a1ac1,_0x5bc1d5);for(const _0x23a8a0 of _0x4e9e21['changes'])this['_changeIdToChange']['set'](_0x23a8a0['id'],_0x23a8a0);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4ed0d6=>{for(const _0xca3d9a of this['editor']['model']['document']['getRootNames']())_0x4ed0d6['detachRoot'](_0xca3d9a);for(const _0x1433dc of Object['keys'](_0x4e9e21['model'])){const _0x293463=_0x4ed0d6['addRoot'](_0x1433dc);for(const _0x435483 of Object['keys'](_0x4e9e21['attributes'][_0x1433dc]))_0x4ed0d6['setAttribute'](_0x435483,_0x4e9e21['attributes'][_0x1433dc][_0x435483],_0x293463);_0x4ed0d6['insert'](_0x4e9e21['model'][_0x1433dc],_0x293463,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4e9e21['changes'])),this['isReady']=!0x0;})['catch'](_0x598481=>{console['error'](_0x598481),this['_cleanUp'](),_0x5b64d7&&(this['diff']=_0x5b64d7),this['isReady']=!0x0;});}['addRevisionData'](_0x43b846,_0x57db55){const _0x5a3ffb=this['repository']['createRevision'](_0x43b846);return _0x5a3ffb['on']('_update',(_0x1be6a8,_0x3693ef,_0x1ab509)=>_0x57db55(_0x3693ef,_0x1ab509,_0x5a3ffb)),this['repository']['addRevision'](_0x5a3ffb),_0x5a3ffb;}['loadRevisionData'](_0x6b3834){if(!_0x6b3834||_0x6b3834['diffData'])return Promise['resolve']();{const _0x3aa90e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3aa90e,'revisionId':_0x6b3834['id']})['then'](_0x2b5e70=>{_0x6b3834['_update']({'diffData':_0x2b5e70['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x576aa5=>{for(const _0x52e0eb of this['editor']['model']['document']['getRootNames']())_0x576aa5['detachRoot'](_0x52e0eb);});}['_sortAndFilterDiffChanges'](_0xc7b9a6){const _0xa739eb=[],_0x2dd155=new Map();for(const _0x49c34c of this['editor']['model']['document']['getRootNames']()){const _0x47c88f=this['editor']['editing']['view']['getDomRoot'](_0x49c34c);if(!_0x47c88f)continue;const _0x4dfacb=_0x47c88f['getClientRects']()['item'](0x0);_0x4dfacb&&(_0xa739eb['push'](_0x49c34c),_0x2dd155['set'](_0x49c34c,_0x4dfacb));}return _0xa739eb['sort']((_0x1ad2fb,_0x1dca5e)=>{const _0x242ce4=_0x2dd155['get'](_0x1ad2fb),_0x30ee77=_0x2dd155['get'](_0x1dca5e);return _0x242ce4['y']-_0x30ee77['y']||_0x242ce4['x']-_0x30ee77['x'];}),(_0xc7b9a6=_0xc7b9a6['filter'](_0x5536f6=>_0xa739eb['includes'](_0x5536f6['rootName'])))['sort']((_0x1ef54c,_0x4fe01b)=>_0xa739eb['indexOf'](_0x1ef54c['rootName'])-_0xa739eb['indexOf'](_0x4fe01b['rootName'])),_0xc7b9a6;}['_makeTape'](_0x560f1f){const _0x3a96c3=Array['from'](_0x560f1f['markers'])['filter'](([_0x2bac06,_0x47032e])=>_0x2bac06['startsWith']('revision:')&&!_0x47032e['isCollapsed']),_0x1ec013=Array['from'](this['editor']['model']['createRangeIn'](_0x560f1f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3a96c3['length'])for(const _0x397f9d of _0x1ec013){const [_0x393a69,_0x567d9b]=_0x3a96c3[0x0],[,_0x191ad7,_0x5017f0]=_0x393a69['split'](':');if(_0x567d9b['end']['isEqual'](_0x397f9d['nextPosition'])&&_0x3a96c3['shift'](),(_0x397f9d['previousPosition']['isEqual'](_0x567d9b['start'])||_0x397f9d['previousPosition']['isAfter'](_0x567d9b['start']))&&('insertion'==_0x191ad7?_0x397f9d['isAdded']={'userId':_0x5017f0}:'deletion'==_0x191ad7&&(_0x397f9d['isRemoved']={'userId':_0x5017f0})),0x0==_0x3a96c3['length'])break;}return _0x1ec013;}['_refreshStartEndIndex'](_0x336642){const _0x2ed4de=new Map();for(let _0x45b39c=0x0;_0x45b39c<_0x336642['length'];_0x45b39c++)'text'===_0x336642[_0x45b39c]['type']?(_0x336642[_0x45b39c]['item']['startIndex']=_0x45b39c,_0x336642[_0x45b39c]['item']['endIndex']=_0x45b39c):('elementStart'===_0x336642[_0x45b39c]['type']?_0x336642[_0x45b39c]['item']['startIndex']=_0x45b39c:'elementEnd'===_0x336642[_0x45b39c]['type']&&(_0x336642[_0x45b39c]['item']['endIndex']=_0x45b39c),_0x2ed4de['set'](_0x336642[_0x45b39c]['id'],_0x45b39c));for(const _0x24e052 of _0x2ed4de['values']())'elementStart'===_0x336642[_0x24e052]['type']?_0x336642[_0x24e052]['item']['endIndex']=_0x2ed4de['get'](_0x336642[_0x24e052]['pairId']):'elementEnd'===_0x336642[_0x24e052]['type']&&(_0x336642[_0x24e052]['item']['startIndex']=_0x2ed4de['get'](_0x336642[_0x24e052]['pairId']));}['_processTape'](_0x36941c){for(let _0x272dee=0x0;_0x272dee<_0x36941c['length'];_0x272dee++){if('elementStart'===_0x36941c[_0x272dee]['type'])_0x36941c[_0x272dee]['item']['startIndex']=_0x272dee;else{if('elementEnd'===_0x36941c[_0x272dee]['type']){_0x36941c[_0x272dee]['item']['endIndex']=_0x272dee;const _0x97f2d5=_0x36941c[_0x272dee]['item']['startIndex'];_0x36941c[_0x97f2d5]['pairId']=_0x36941c[_0x272dee]['id'],_0x36941c[_0x272dee]['pairId']=_0x36941c[_0x97f2d5]['id'];}else _0x36941c[_0x272dee]['item']['startIndex']=_0x272dee,_0x36941c[_0x272dee]['item']['endIndex']=_0x272dee,_0x36941c[_0x272dee]['pairId']=null;}_0x36941c[_0x272dee]['markersStart']||(_0x36941c[_0x272dee]['markersStart']=[],_0x36941c[_0x272dee]['markersEnd']=[]);}}['_markInsertions'](_0x1086b7,_0x56f97a){const _0xd0a074=_0x1086b7['filter'](_0x1bdca8=>!_0x1bdca8['isAdded']);for(let _0x54bd17=0x0;_0x54bd17<_0x56f97a['length'];_0x54bd17++)_0x56f97a[_0x54bd17]['isAdded']&&(_0xd0a074[_0x54bd17]['isAdded']=_0x56f97a[_0x54bd17]['isAdded']);}['_makeModelFromViewString'](_0x1cab2e){const _0x40dca9=JSON['parse'](_0x1cab2e),_0x34fbcb=this['editor']['editing']['view']['document'],_0x872766=new _0x30434f(_0x34fbcb,_0x40dca9['map'](_0x3ef8b6=>this['_getViewObj'](_0x3ef8b6)));return this['editor']['data']['toModel'](_0x872766);}['_getViewObj'](_0x562b26){const _0x2ab79b=this['editor']['editing']['view']['document'];if('string'==typeof _0x562b26)return new _0x5b9193(_0x2ab79b,_0x562b26);{const _0x2f49cc=_0x562b26['children']['map'](_0x7923e9=>this['_getViewObj'](_0x7923e9));return new(Z[_0x562b26['type']]||_0x3ff468)(_0x2ab79b,_0x562b26['name'],_0x562b26['attributes'],_0x2f49cc);}}['_getDiff'](_0x2510c4,_0x1e881b=null){const _0x34b88a=this['repository']['getRevision'](_0x2510c4),_0x538d98=_0x1e881b?this['repository']['getRevision'](_0x1e881b):null,_0x354309=this['_getRevisionsRange'](_0x34b88a,_0x538d98),_0x4e3d32=_0x354309[_0x354309['length']-0x1],_0x58d264=new Map(),_0x385d6c={'model':{},'attributes':{},'changes':[]},_0x18abe4=new Set(),_0x303db5=new Map();for(let _0x2b82c4=_0x354309['length']-0x1;_0x2b82c4>=0x0;_0x2b82c4--){const _0x5ea5ea=_0x354309[_0x2b82c4];for(const _0x3b75d3 of Object['keys'](_0x5ea5ea['diffData']))if(_0x5ea5ea['diffData'][_0x3b75d3]['attachChange']){const _0x2fdad6=_0x5ea5ea['diffData'][_0x3b75d3]['attachChange'];_0x2fdad6['isAttached']?(_0x18abe4['add'](_0x3b75d3),_0x303db5['has'](_0x3b75d3)&&_0x303db5['get'](_0x3b75d3)['userId']==_0x2fdad6['userId']?_0x303db5['delete'](_0x3b75d3):_0x303db5['set'](_0x3b75d3,_0x2fdad6)):_0x303db5['has'](_0x3b75d3)?(_0x18abe4['delete'](_0x3b75d3),_0x303db5['delete'](_0x3b75d3)):(_0x18abe4['add'](_0x3b75d3),_0x303db5['set'](_0x3b75d3,_0x2fdad6));}else _0x18abe4['add'](_0x3b75d3);}for(const _0x1afe61 of _0x18abe4){const _0x473dca=_0x303db5['has'](_0x1afe61)&&!_0x303db5['get'](_0x1afe61)['isAttached'];let _0x163ac9=_0x473dca?_0x354309['length']-0x1:0x0;const _0x5ed6d1=_0x473dca?-0x1:0x1;for(;_0x354309[_0x163ac9];){const _0x48d9b0=_0x354309[_0x163ac9];if(_0x48d9b0['diffData'][_0x1afe61]){const _0x28aba0=_0x473dca?_0x48d9b0['diffData'][_0x1afe61]['attributesBefore']:_0x48d9b0['diffData'][_0x1afe61]['attributesAfter'];_0x385d6c['attributes'][_0x1afe61]=_0x28aba0?_0xd15063(_0x28aba0):{};break;}_0x163ac9+=_0x5ed6d1;}}for(const _0x41c74f of _0x354309){_0x41c74f['model']={};for(const _0x3bf481 of _0x41c74f['authors'])_0x58d264['set'](_0x3bf481['id'],_0x3bf481);for(const _0x2d360a of _0x18abe4){const _0xe3d2b6=_0x41c74f['diffData'][_0x2d360a]?_0x41c74f['diffData'][_0x2d360a]['insertions']:'[]',_0x47923d=_0x41c74f['diffData'][_0x2d360a]?_0x41c74f['diffData'][_0x2d360a]['deletions']:'[]';_0x41c74f['model'][_0x2d360a]={'insertions':this['_makeModelFromViewString'](_0xe3d2b6),'deletions':this['_makeModelFromViewString'](_0x47923d)};}}for(const _0x4c315b of _0x18abe4){let _0x4995e4=null,_0x73cf6a=0x0;const _0x689606=new Map(Array['from'](_0x34b88a['model'][_0x4c315b]['insertions']['markers'])['filter'](([_0x507616])=>!_0x507616['startsWith']('revision:')));let _0x211e6a=0x0;for(const _0x8f95c4 of _0x354309){const _0x5b868d=this['_makeTape'](_0x8f95c4['model'][_0x4c315b]['insertions']);_0x8f95c4==_0x34b88a?(_0x4995e4=_0x5b868d,_0x73cf6a=_0x4995e4['length'],_0x4995e4['forEach'](_0x27ebe9=>{_0x27ebe9['id']=_0x211e6a++;}),this['_processTape'](_0x4995e4)):this['_markInsertions'](_0x4995e4,_0x5b868d);const _0x3039b0=_0x4995e4['filter'](_0x3c54b5=>!_0x3c54b5['isAdded'])['map'](_0xea6d6d=>_0xea6d6d['id']);let _0x2bc5e0=0x0;const _0x40c89e=this['_makeTape'](_0x8f95c4['model'][_0x4c315b]['deletions']);_0x40c89e['forEach'](_0x3c6618=>{_0x3c6618['isRemoved']?_0x3c6618['id']=_0x73cf6a++:_0x3c6618['id']=_0x3039b0[_0x2bc5e0++];}),this['_processTape'](_0x40c89e),this['_setDistance'](_0x4995e4,'isAdded'),this['_setDistance'](_0x40c89e,'isRemoved'),_0x8f95c4==_0x34b88a&&this['_markMarkers'](_0x4995e4,_0x689606),_0x4995e4=this['_joinTapes'](_0x4995e4,_0x40c89e),this['_refreshStartEndIndex'](_0x4995e4),this['_setDistance'](_0x4995e4,'isRemoved');}_0x4995e4=_0x4995e4['filter'](_0x5bff4b=>!(_0x5bff4b['isAdded']&&_0x5bff4b['isRemoved']));const _0x3f8d13=new Map(_0x4e3d32['model'][_0x4c315b]['deletions']['markers']),_0x106532=new Set(_0x689606['keys']());for(const _0x448e31 of _0x3f8d13['keys']())_0x106532['delete'](_0x448e31);this['_markSuggestions'](_0x4995e4,_0x106532),this['_fixObsoleteTags'](_0x4995e4),_0x4995e4=this['_removeMissingPairs'](_0x4995e4),_0x4995e4=this['_markMismatchedRemovedTags'](_0x4995e4),_0x4995e4=this['_removeUnsupportedChanges'](_0x4995e4);const {root:_0x1b0539,changes:_0x1483c3}=this['_makeModelFromTape'](_0x4995e4,_0x58d264,_0x4c315b);_0x385d6c['model'][_0x4c315b]=_0x1b0539;const _0x202848=_0x303db5['get'](_0x4c315b);if(_0x202848){const _0x565287=_0x58d264['get'](_0x202848['userId']),_0x467b07=new r({'author':_0x565287,'type':_0x202848['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4c315b});_0x1483c3['unshift'](_0x467b07),_0x385d6c['attributes'][_0x4c315b]['revisionHistoryAttachChange']=_0x467b07['id'];}_0x385d6c['changes']=_0x385d6c['changes']['concat'](_0x1483c3);}return _0x385d6c;}['_markMarkers'](_0x5e3225,_0x51ef48){for(let _0x500f1b=0x0;_0x500f1b<_0x5e3225['length'];_0x500f1b++)for(const [_0x3612d4,_0x57d34b]of _0x51ef48)_0x57d34b['start']['isEqual'](_0x5e3225[_0x500f1b]['previousPosition'])&&_0x5e3225[_0x500f1b]['markersStart']['push'](_0x3612d4),_0x57d34b['end']['isEqual'](_0x5e3225[_0x500f1b]['nextPosition'])&&_0x5e3225[_0x500f1b]['markersEnd']['push'](_0x3612d4);}['_joinTapes'](_0xe73a08,_0x5d96ff){let _0x1c8e6b=[],_0x1daf80=0x0,_0x114c97=0x0;for(;_0x1daf80<_0xe73a08['length']||_0x114c97<_0x5d96ff['length'];){const _0x2fd481=_0xe73a08[_0x1daf80]||{},_0x15dd11=_0x5d96ff[_0x114c97]||{};if(_0x2fd481['id']==_0x15dd11['id'])_0x1daf80++,_0x114c97++,_0x1c8e6b['push'](_0x2fd481);else{if(_0x15dd11['isRemoved']&&_0x2fd481['isAdded']){const {commonTape:_0x23ee69,iEnd:_0x106106,jEnd:_0x5d5b47}=this['_threeWayMerge'](_0xe73a08,_0x1daf80,_0x5d96ff,_0x114c97);_0x1c8e6b=_0x1c8e6b['concat'](_0x23ee69),_0x1daf80=_0x106106,_0x114c97=_0x5d5b47;}else _0x15dd11['isRemoved']?(_0x114c97++,_0x1c8e6b['push'](_0x15dd11)):(_0x1daf80++,_0x1c8e6b['push'](_0x2fd481));}}return _0x1c8e6b;}['_markSuggestions'](_0x3dd7ae,_0x3e5cba){const _0x155368=[];for(let _0x36f468=0x0;_0x36f468<_0x3dd7ae['length'];_0x36f468++){for(let _0x12e251=0x0;_0x12e251<_0x3dd7ae[_0x36f468]['markersStart']['length'];_0x12e251++){const _0x1219aa=_0x3dd7ae[_0x36f468]['markersStart'][_0x12e251];if(!_0x3e5cba['has'](_0x1219aa))continue;const {group:_0x2ef843,type:_0x3db1a8,authorId:_0x5d51bc}=_0x3cfb68(_0x1219aa);'revision-suggestion'!=_0x2ef843||'insertion'!=_0x3db1a8&&'deletion'!=_0x3db1a8||(_0x155368['unshift']({'type':_0x3db1a8,'name':_0x1219aa,'userId':_0x5d51bc}),_0x3dd7ae[_0x36f468]['markersStart']['splice'](_0x12e251,0x1),_0x12e251--);}_0x588cb2(_0x3dd7ae[_0x36f468]);for(let _0x578f06=0x0;_0x578f06<_0x3dd7ae[_0x36f468]['markersEnd']['length'];_0x578f06++){const _0x49d078=_0x3dd7ae[_0x36f468]['markersEnd'][_0x578f06];if(!_0x3e5cba['has'](_0x49d078))continue;const {group:_0x1509bb,type:_0x5090e3}=_0x3cfb68(_0x49d078);if('revision-suggestion'!=_0x1509bb||'insertion'!=_0x5090e3&&'deletion'!=_0x5090e3)continue;_0x3dd7ae[_0x36f468]['markersEnd']['splice'](_0x578f06,0x1),_0x578f06--;const _0x2d63fe=_0x155368['findIndex'](_0x503f5e=>_0x503f5e['name']==_0x49d078);_0x2d63fe>-0x1&&_0x155368['splice'](_0x2d63fe,0x1);}}function _0x3cfb68(_0x48637b){const _0x419bd1=_0x48637b['split'](':');return{'group':_0x419bd1[0x0],'type':_0x419bd1[0x1],'subType':_0x419bd1['length']>=0x5?_0x419bd1[0x2]:null,'id':_0x419bd1['length']<0x5?_0x419bd1[0x2]:_0x419bd1[0x3],'authorId':_0x419bd1['length']<0x5?_0x419bd1[0x3]:_0x419bd1[0x4],'markerCount':0x6==_0x419bd1['length']?_0x419bd1[0x5]:null};}function _0x588cb2(_0x15239a){for(let _0x581d82=0x0;_0x581d82<_0x155368['length'];_0x581d82++){if(_0x15239a['isAdded']&&'insertion'==_0x155368[_0x581d82]['type'])return _0x15239a['isAddSuggestion']=_0x155368[_0x581d82],void delete _0x15239a['isAdded'];if(!_0x15239a['isAdded']&&!_0x15239a['isRemoved']&&'deletion'==_0x155368[_0x581d82]['type'])return void(_0x15239a['isRemoveSuggestion']=_0x155368[_0x581d82]);}}}['_setDistance'](_0x274b60,_0x49b6cb){let _0x34a0c9=0x0,_0x3c83a2=!0x1;const _0x2b2992=new Map();for(const _0x286033 of _0x274b60)_0x286033[_0x49b6cb]?_0x3c83a2&&(_0x34a0c9++,_0x3c83a2=!0x1):(_0x34a0c9++,_0x3c83a2=!0x0),_0x2b2992['set'](_0x286033['id'],_0x34a0c9);for(let _0x353a62=0x0;_0x353a62<_0x274b60['length'];_0x353a62++){if('isRemoved'==_0x49b6cb&&_0x274b60[_0x353a62]['isAdded']||'isAdded'==_0x49b6cb&&_0x274b60[_0x353a62]['isRemoved'])continue;if('text'==_0x274b60[_0x353a62]['type']){_0x274b60[_0x353a62]['distance']=0x0;continue;}const _0x590c21=_0x2b2992['get'](_0x274b60[_0x353a62]['pairId']),_0x18a2a6=_0x2b2992['get'](_0x274b60[_0x353a62]['id']);_0x274b60[_0x353a62]['distance']=_0x590c21-_0x18a2a6;}}['_getRevisionsRange'](_0x3f898b,_0x323660,_0xe6e5eb=!0x1){const _0x5c90af=[];let _0x1946fd=this['repository']['getIndex'](_0x3f898b),_0x5495d6=this['repository']['getIndex'](_0x323660);for(-0x1==_0x5495d6&&(_0x5495d6=this['repository']['_revisions']['length'],_0xe6e5eb=!0x1);_0x1946fd<_0x5495d6;)_0x5c90af['push'](this['repository']['getRevision'](_0x1946fd)),_0x1946fd++;return _0xe6e5eb&&_0x5c90af['push'](this['repository']['getRevision'](_0x1946fd)),_0x5c90af;}['_threeWayMerge'](_0x33a5ba,_0x5578b2,_0x17920f,_0xe37068){const _0x48a88a=this['editor']['model']['schema'];let _0x3ab8ec=_0x5578b2;for(;_0x33a5ba[_0x3ab8ec]&&_0x33a5ba[_0x3ab8ec]['isAdded'];)_0x3ab8ec++;let _0x3c3e4f=_0xe37068;for(;_0x17920f[_0x3c3e4f]&&_0x17920f[_0x3c3e4f]['isRemoved'];)_0x3c3e4f++;_0x452bb4(_0x33a5ba,_0x5578b2,_0x3ab8ec),_0x452bb4(_0x17920f,_0xe37068,_0x3c3e4f);const _0x2f9a15=_0x17920f['slice'](_0xe37068,_0x3c3e4f)['concat'](_0x33a5ba['slice'](_0x5578b2,_0x3ab8ec));return _0x2f9a15['sort']((_0x485120,_0x2d63ea)=>_0x485120['side']!=_0x2d63ea['side']?_0x485120['side']-_0x2d63ea['side']:_0x485120['level']!=_0x2d63ea['level']?_0x485120['level']-_0x2d63ea['level']:_0x485120['distance']!=_0x2d63ea['distance']?_0x2d63ea['distance']-_0x485120['distance']:!!_0x485120['isAdded']!=!!_0x2d63ea['isAdded']?-0x1==_0x485120['side']||0x0==_0x485120['side']?_0x485120['isAdded']?-0x1:0x1:_0x485120['isAdded']?0x1:-0x1:_0x485120['index']-_0x2d63ea['index']),{'commonTape':_0x2f9a15,'iEnd':_0x3ab8ec,'jEnd':_0x3c3e4f};function _0x452bb4(_0x39730b,_0x108f91,_0x4b99cd){let _0x59c750=-0x1,_0x462914=Number['POSITIVE_INFINITY'],_0x109749=!0x0;for(let _0x656749=_0x108f91;_0x656749<_0x4b99cd;_0x656749++)if(_0x48a88a['isInline'](_0x39730b[_0x656749]['item'])||(_0x109749=!0x1),_0x39730b[_0x656749]['item']['startIndex']<_0x108f91&&(_0x59c750=_0x656749),_0x39730b[_0x656749]['item']['endIndex']>=_0x4b99cd){_0x462914=_0x656749;break;}_0x109749&&(_0x59c750=_0x4b99cd-0x1);for(let _0x9d23f6=_0x108f91;_0x9d23f6<_0x4b99cd;_0x9d23f6++)_0x39730b[_0x9d23f6]['side']=_0x9d23f6<=_0x59c750?-0x1:_0x9d23f6<_0x462914?0x0:0x1,_0x39730b[_0x9d23f6]['index']=_0x9d23f6;let _0xc0e2ad=0x0;for(let _0x419764=_0x108f91;_0x419764<=_0x59c750;_0x419764++)0x0==_0x39730b[_0x419764]['distance']?_0x39730b[_0x419764]['level']=_0xc0e2ad:(_0xc0e2ad++,_0x39730b[_0x419764]['level']=_0xc0e2ad,_0xc0e2ad++);for(let _0x20c5bb=_0x108f91;_0x20c5bb<_0x4b99cd;_0x20c5bb++)0x0==_0x39730b[_0x20c5bb]['side']&&(_0x39730b[_0x20c5bb]['level']=_0xc0e2ad);_0xc0e2ad=0x0;for(let _0x3a314a=_0x4b99cd-0x1;_0x3a314a>=_0x462914;_0x3a314a--)0x0==_0x39730b[_0x3a314a]['distance']?_0x39730b[_0x3a314a]['level']=_0xc0e2ad:(_0xc0e2ad--,_0x39730b[_0x3a314a]['level']=_0xc0e2ad,_0xc0e2ad--);}}['_fixObsoleteTags'](_0x5c36cd){const _0x91369e=new Map(),_0x365d96=this['editor']['model']['schema'];for(let _0xb99a90=0x1;_0xb99a90<_0x5c36cd['length'];_0xb99a90++){let _0x412476,_0x32949b,_0x277196;const _0x3c45ea=_0x5c36cd[_0xb99a90],_0x55af84=_0x5c36cd[_0xb99a90-0x1];if('text'==_0x3c45ea['type'])continue;if(_0x3c45ea['type']!=_0x55af84['type'])continue;if(!_0x365d96['isBlock'](_0x55af84['item'])||_0x365d96['isLimit'](_0x55af84['item']))continue;if(!_0x365d96['isBlock'](_0x3c45ea['item'])||_0x365d96['isLimit'](_0x3c45ea['item']))continue;if((_0x5c36cd[_0xb99a90]['isAdded']||_0x5c36cd[_0xb99a90]['isAddSuggestion'])&&_0x5c36cd[_0xb99a90-0x1]['isRemoved'])_0x412476=_0x5c36cd[_0xb99a90],_0x32949b=_0x5c36cd[_0xb99a90-0x1],_0x277196=_0xb99a90-0x1;else{if(!_0x5c36cd[_0xb99a90]['isRemoved']||!_0x5c36cd[_0xb99a90-0x1]['isAdded']&&!_0x5c36cd[_0xb99a90-0x1]['isAddSuggestion'])continue;_0x412476=_0x5c36cd[_0xb99a90-0x1],_0x32949b=_0x5c36cd[_0xb99a90],_0x277196=_0xb99a90;}const _0x2d9393=_0x412476['level']==_0x32949b['level'],_0x19da3b=Math['abs'](_0x412476['level'])<Math['abs'](_0x32949b['level'])&&0x0==_0x32949b['distance'];(_0x2d9393||_0x19da3b)&&(_0x91369e['set'](_0x32949b['id'],_0x412476['id']),_0x5c36cd['splice'](_0x277196,0x1),_0xb99a90--,_0x412476['isAdded']=!0x1);}for(let _0x37a60f=0x0;_0x37a60f<_0x5c36cd['length'];_0x37a60f++)_0x91369e['has'](_0x5c36cd[_0x37a60f]['pairId'])&&(_0x5c36cd[_0x37a60f]['pairId']=_0x91369e['get'](_0x5c36cd[_0x37a60f]['pairId']));}['_removeMissingPairs'](_0x58ccc2){const _0x396544=new Set(_0x58ccc2['map'](_0x2907a2=>_0x2907a2['id']));for(let _0x2b9d86=0x0;_0x2b9d86<_0x58ccc2['length'];_0x2b9d86++)_0x396544['has'](_0x58ccc2[_0x2b9d86]['pairId'])||0x0==_0x58ccc2[_0x2b9d86]['distance']||(_0x58ccc2[_0x2b9d86]['isIncorrect']=!0x0);return _0x58ccc2['filter'](_0x10cf9c=>!_0x10cf9c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3a17ca){const _0x516187=new Set();for(let _0x1a48e2=0x0;_0x1a48e2<_0x3a17ca['length'];_0x1a48e2++){if(_0x516187['has'](_0x3a17ca[_0x1a48e2]['id'])&&_0x3a17ca[_0x1a48e2]['isRemoved']&&(_0x3a17ca[_0x1a48e2]['isIncorrect']=!0x0),_0x3a17ca[_0x1a48e2]['isIncorrect'])continue;if(0x0==_0x3a17ca[_0x1a48e2]['distance'])continue;if('elementStart'!=_0x3a17ca[_0x1a48e2]['type'])continue;if(null==_0x3a17ca[_0x1a48e2]['pairId'])continue;let _0xa2a73a=_0x1a48e2+0x1,_0x5523d5=0x0;for(;_0x3a17ca[_0xa2a73a]['id']!=_0x3a17ca[_0x1a48e2]['pairId'];)'elementStart'==_0x3a17ca[_0xa2a73a]['type']?_0x5523d5++:'elementEnd'==_0x3a17ca[_0xa2a73a]['type']&&_0x5523d5--,_0xa2a73a++;if(0x0!=_0x5523d5){if(_0x3a17ca[_0x1a48e2]['isRemoved'])_0x3a17ca[_0x1a48e2]['isIncorrect']=!0x0;else{for(;_0xa2a73a!=_0x1a48e2;)_0x3a17ca[_0xa2a73a]['isRemoved']&&0x0!=_0x3a17ca[_0xa2a73a]['distance']&&(_0x3a17ca[_0xa2a73a]['isIncorrect']=!0x0,_0x516187['add'](_0x3a17ca[_0xa2a73a]['pairId'])),_0xa2a73a--;}}}return _0x3a17ca['filter'](_0x1f200f=>!_0x1f200f['isIncorrect']);}['_removeUnsupportedChanges'](_0x47c4a0){const _0x47b287=this['editor']['model']['schema'];for(let _0x48dd77=0x0;_0x48dd77<_0x47c4a0['length'];_0x48dd77++){if(!(_0x47c4a0[_0x48dd77]['isAdded']||_0x47c4a0[_0x48dd77]['isAddSuggestion']||_0x47c4a0[_0x48dd77]['isRemoved']||_0x47c4a0[_0x48dd77]['isRemoveSuggestion']))continue;if(0x0==_0x47c4a0[_0x48dd77]['distance'])continue;const _0x12590a=_0x47c4a0[_0x48dd77]['item'];_0x47b287['isBlock'](_0x12590a)||_0x47b287['isLimit'](_0x12590a)||(_0x47c4a0[_0x48dd77]['isAdded']&&delete _0x47c4a0[_0x48dd77]['isAdded'],_0x47c4a0[_0x48dd77]['isAddSuggestion']&&delete _0x47c4a0[_0x48dd77]['isAddSuggestion'],_0x47c4a0[_0x48dd77]['isRemoveSuggestion']&&delete _0x47c4a0[_0x48dd77]['isRemoveSuggestion'],_0x47c4a0[_0x48dd77]['isRemoved']&&(_0x47c4a0[_0x48dd77]['isIncorrect']=!0x0));}return _0x47c4a0['filter'](_0x279406=>!_0x279406['isIncorrect']);}['_makeModelFromTape'](_0x3f2afa,_0x9162b9,_0xfaa90c){const _0x4b88ad=new wt(),_0x4d4790=[],_0x8a2e84=new Map(),_0x42c364=this['editor']['model'],_0x299ff1=_0x42c364['schema'],_0xb9e352=[_0x4b88ad],_0x1a5bf9={},_0x4efe17={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3068cf=null;const _0x141561=[0x0];for(let _0x2b9d32=0x0;_0x2b9d32<_0x3f2afa['length'];_0x2b9d32++)if('elementStart'===_0x3f2afa[_0x2b9d32]['type']){_0x3f2afa[_0x2b9d32]['previousPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561);const _0x56eca9=new ft(_0x3f2afa[_0x2b9d32]['item']['name'],_0x3f2afa[_0x2b9d32]['item']['getAttributes']());_0xb9e352[0x0]['_appendChild'](_0x56eca9),_0x141561['push'](0x0),_0xb9e352['unshift'](_0x56eca9),_0x3f2afa[_0x2b9d32]['nextPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561);}else'elementEnd'===_0x3f2afa[_0x2b9d32]['type']?(_0xb9e352['shift'](),_0x3f2afa[_0x2b9d32]['previousPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561),_0x141561['pop'](),_0x141561[_0x141561['length']-0x1]++,_0x3f2afa[_0x2b9d32]['nextPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561)):(_0x3f2afa[_0x2b9d32]['previousPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561),_0x3068cf?_0x3068cf['_data']+=_0x3f2afa[_0x2b9d32]['item']['data']:_0x3068cf=new _t(_0x3f2afa[_0x2b9d32]['item']['data'],_0x3f2afa[_0x2b9d32]['item']['getAttributes']()),_0x3f2afa[_0x2b9d32+0x1]&&'text'===_0x3f2afa[_0x2b9d32+0x1]['type']&&_0x45ac5c(_0x3068cf,_0x3f2afa[_0x2b9d32+0x1]['item'])||(_0xb9e352[0x0]['_appendChild'](_0x3068cf),_0x3068cf=null),_0x141561[_0x141561['length']-0x1]+=_0x3f2afa[_0x2b9d32]['item']['offsetSize'],_0x3f2afa[_0x2b9d32]['nextPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561));for(let _0x27996d=0x0;_0x27996d<_0x3f2afa['length'];_0x27996d++){const _0x66007d=_0x3f2afa[_0x27996d]['previousPosition'],_0x3810f4=_0x3f2afa[_0x27996d]['nextPosition'];for(const _0x469dc9 of _0x3f2afa[_0x27996d]['markersStart'])_0x8a2e84['set'](_0x469dc9,{'start':_0x66007d,'end':null});_0x443076('isRemoveSuggestion',_0x27996d,_0x66007d,_0x3810f4),_0x443076('isAddSuggestion',_0x27996d,_0x66007d,_0x3810f4),_0x443076('isRemoved',_0x27996d,_0x66007d,_0x3810f4),_0x443076('isAdded',_0x27996d,_0x66007d,_0x3810f4);for(const _0x256564 of _0x3f2afa[_0x27996d]['markersEnd']){_0x8a2e84['get'](_0x256564)['end']=_0x3810f4;}}for(const [_0x246a4d,_0x1c2a00]of _0x8a2e84){const _0x65f7b=this['editor']['model']['createRange'](_0x1c2a00['start'],_0x1c2a00['end']);_0x4b88ad['markers']['set'](_0x246a4d,_0x65f7b);}return _0x4d4790['sort']((_0x2558e1,_0x33e897)=>{const _0x2b4312=_0x4b88ad['markers']['get']('revision:'+_0x2558e1['id']),_0x36e7eb=_0x4b88ad['markers']['get']('revision:'+_0x33e897['id']);return _0x2b4312['start']['isBefore'](_0x36e7eb['start'])?-0x1:_0x2b4312['start']['isAfter'](_0x36e7eb['start'])?0x1:_0x2b4312['end']['isBefore'](_0x36e7eb['end'])?-0x1:_0x2b4312['end']['isAfter'](_0x36e7eb['end'])?0x1:'add'===_0x2558e1['type']?-0x1:0x1;}),{'root':_0x4b88ad,'changes':_0x4d4790};function _0x443076(_0x5b3369,_0x4a1f5a,_0x118d89,_0x3dba3f){const _0x5102b8=!!_0x3f2afa[_0x4a1f5a][_0x5b3369],_0x432849=_0x5102b8?_0x3f2afa[_0x4a1f5a][_0x5b3369]['userId']:null,_0x26e526=_0x4a1f5a===_0x3f2afa['length']-0x1,_0x4257fe=_0x4efe17[_0x5b3369][0x0],_0x1b2258=_0x299ff1['isObject'](_0x3f2afa[_0x4a1f5a]['item']);!_0x1a5bf9[_0x5b3369]&&_0x5102b8?_0x1a5bf9[_0x5b3369]={'start':_0x118d89,'tapeItem':_0x3f2afa[_0x4a1f5a],'userId':_0x432849,'type':_0x5b3369}:_0x1a5bf9[_0x5b3369]&&!_0x5102b8?(_0x1a5bf9[_0x5b3369]['end']=_0x118d89,_0x1d8364(_0x1a5bf9[_0x5b3369]),_0x1a5bf9[_0x5b3369]=null):_0x1a5bf9[_0x5b3369]&&_0x5102b8&&_0x1a5bf9[_0x5b3369]['userId']!==_0x432849&&(_0x1a5bf9[_0x5b3369]['end']=_0x118d89,_0x4257fe&&_0x4257fe['userId']===_0x1a5bf9[_0x5b3369]['userId']||_0x1d8364(_0x1a5bf9[_0x5b3369]),_0x1a5bf9[_0x5b3369]={'start':_0x118d89,'tapeItem':_0x3f2afa[_0x4a1f5a],'userId':_0x432849,'type':_0x5b3369}),_0x1a5bf9[_0x5b3369]&&_0x1b2258&&('elementStart'!==_0x3f2afa[_0x4a1f5a]['type']||_0x4257fe&&_0x4257fe['userId']===_0x432849||_0x4efe17[_0x5b3369]['unshift']({'userId':_0x432849,'object':_0x3f2afa[_0x4a1f5a]['item'],'change':_0x1a5bf9[_0x5b3369]}),'elementEnd'===_0x3f2afa[_0x4a1f5a]['type']&&_0x4257fe&&_0x4257fe['object']===_0x3f2afa[_0x4a1f5a]['item']&&(_0x4efe17[_0x5b3369]['shift'](),_0x1a5bf9[_0x5b3369]=_0x4257fe['change'])),_0x1a5bf9[_0x5b3369]&&_0x26e526&&(_0x1a5bf9[_0x5b3369]['end']=_0x3dba3f,_0x1d8364(_0x1a5bf9[_0x5b3369]),_0x1a5bf9[_0x5b3369]=null);}function _0x1d8364({start:_0x245733,end:_0x50ea8f,tapeItem:_0x31ccc3,userId:_0x3ec4a9,type:_0x597c58}){const _0x1ef9c6=_0x31ccc3['item'],_0x170835=_0x42c364['schema']['isBlock'](_0x1ef9c6)&&!_0x42c364['schema']['isLimit'](_0x1ef9c6),_0x59910a=_0x245733['nodeAfter']==_0x50ea8f['parent']&&_0x50ea8f['isAtStart'];if(_0x170835&&_0x59910a)return;const _0x41de29=_0x42c364['createRange'](_0x245733,_0x50ea8f),_0xb9ffba=_0x9162b9['get'](_0x3ec4a9),_0x58c438=new r({'author':_0xb9ffba,'type':'isAdded'==_0x597c58||'isAddSuggestion'==_0x597c58?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x597c58||'isRemoveSuggestion'==_0x597c58},'createdAt':new Date(),'rootName':_0xfaa90c});_0x4d4790['push'](_0x58c438),_0x4b88ad['markers']['set']('revision:'+_0x58c438['id'],_0x41de29);}function _0x45ac5c(_0x242032,_0x5cc6fb){const _0x1c0799=_0x242032['getAttributes'](),_0x1a513c=_0x5cc6fb['getAttributes']();for(const _0x6571f0 of _0x1c0799){if(_0x6571f0[0x1]!==_0x5cc6fb['getAttribute'](_0x6571f0[0x0]))return!0x1;_0x1a513c['next']();}return _0x1a513c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x156c98=>{const _0x1e99d3=_0x156c98['markerName']['split'](':')[0x1],_0x1a2fc6=this['_getChangeFromId'](_0x1e99d3);if(!_0x1a2fc6)return null;const _0x5b6532='add'==_0x1a2fc6['type']?'insertion':'deletion',_0x203cac=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5b6532];return _0x1a2fc6['data']['isSuggestion']&&_0x203cac['push']('ck-suggestion-marker-'+_0x5b6532+'-new'),this['activeChange']==_0x1a2fc6&&_0x203cac['push']('ck-suggestion-marker--active'),{'classes':_0x203cac,'attributes':{'data-change-id':_0x1e99d3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e2153=>{_0x5e2153['on']('element:pre',(_0x4a5b98,_0x50ae90,_0x2aab8a)=>{const _0x74e635=_0x50ae90['viewItem']['getChild'](0x0);if(!_0x74e635||!_0x74e635['is']('element','code'))return;if(!_0x2aab8a['consumable']['consume'](_0x74e635,{'attributes':['vid_start','vid_end']}))return;const _0x55056a=_0x50ae90['modelRange']['start']['nodeAfter'];_0x2aab8a['writer']['setAttribute']('vid_start',_0x74e635['getAttribute']('vid_start'),_0x55056a),_0x2aab8a['writer']['setAttribute']('vid_end',_0x74e635['getAttribute']('vid_end'),_0x55056a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x268c04=>{_0x268c04['on']('element',(_0x286bff,_0x3419ad,_0x41b322)=>{if(!_0x41b322['consumable']['consume'](_0x3419ad['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3419ad['modelRange']['isCollapsed'])return;const _0x144ce3=_0x3419ad['modelRange']['start']['nodeAfter'];_0x144ce3['hasAttribute']('vid_start')||_0x144ce3['hasAttribute']('vid')||(_0x41b322['writer']['setAttribute']('vid_start',_0x3419ad['viewItem']['getAttribute']('vid_start'),_0x144ce3),_0x41b322['writer']['setAttribute']('vid_end',_0x3419ad['viewItem']['getAttribute']('vid_end'),_0x144ce3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xbde84f=>_0xbde84f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3b19a0,[,_0x38b397])=>{['vid_start','vid_end','vid']['includes'](_0x38b397)&&(_0x3b19a0['return']=!0x0,_0x3b19a0['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x57de3a=>{_0x57de3a['on']('attribute:vid',(_0x5bb448,_0x3172de,_0x13beec)=>{if('\x20'!=_0x3172de['item']['data']||_0x3172de['item']['parent']['maxOffset']>0x1)return;if(!_0x13beec['consumable']['consume'](_0x3172de['item'],_0x5bb448['name']))return;const _0x577d47=_0x13beec['writer'],_0xa852ea=_0x13beec['mapper']['toViewRange'](_0x3172de['range']);_0x577d47['wrap'](_0xa852ea,_0x577d47['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x27ac6f){const _0x48efad=_0x27ac6f['plugins']['get']('RevisionViewer');return(_0x5f08f8,_0x1801ad,_0x5a4d1c)=>{const _0x29cebf=_0x1801ad['markerName']['split'](':')[0x1],_0x526ba1=_0x48efad['_getChangeFromId'](_0x29cebf);if(!_0x526ba1)return null;const _0x393bdb='add'==_0x526ba1['type']?'split':'merge';if(!_0x5a4d1c['consumable']['test'](_0x1801ad['markerRange'],_0x5f08f8['name']))return;const _0x48771b=_0x1801ad['markerRange']['getWalker'](),_0x455671=_0x1801ad['markerRange']['start'],_0x405f92=_0x27ac6f['model']['schema'];let _0x3f28e3=null,_0x418ac4=null,_0xfec8de=!0x1,_0x5c9638=!0x1;for(const _0x49c91a of _0x48771b){const _0xb04513=_0x49c91a['item'];_0xfec8de=_0xfec8de||_0x405f92['isContent'](_0xb04513);const _0x1d07a4=_0x5a4d1c['mapper']['toViewElement'](_0xb04513);if(_0x1d07a4&&_0x1d07a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49c91a['type']&&(_0x405f92['isBlock'](_0xb04513)&&!_0x405f92['isLimit'](_0xb04513)&&(_0xb04513['nextSibling']||_0x455671['isAtEnd']?_0x3f28e3&&_0x3f28e3['parent']==_0xb04513||(_0x3f28e3=_0xb04513,_0x2e7ea4(_0x49c91a['previousPosition']),_0x5c9638=!0x0):_0x418ac4=_0x418ac4||_0x49c91a['previousPosition']));}function _0x2e7ea4(_0x24aa67){const _0x1ffe32=_0x5a4d1c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x393bdb}),_0x3addfe=_0x5a4d1c['mapper']['toViewPosition'](_0x24aa67);_0x526ba1['data']['isSuggestion']&&_0x5a4d1c['writer']['addClass']('ck-suggestion-marker-'+_0x393bdb+'-new',_0x1ffe32),_0x48efad['activeChange']==_0x526ba1&&_0x5a4d1c['writer']['addClass']('ck-suggestion-marker--active',_0x1ffe32),_0x5a4d1c['writer']['insert'](_0x3addfe,_0x1ffe32),_0x5a4d1c['mapper']['bindElementToMarker'](_0x1ffe32,_0x1801ad['markerName']);}_0xfec8de||_0x5c9638||!_0x418ac4||_0x2e7ea4(_0x418ac4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2be13a,_0x305797,_0x52fd14)=>{const _0x118f0a=_0x52fd14['mapper']['markerNameToElements'](_0x305797['markerName']);if(_0x118f0a){for(const _0x299887 of _0x118f0a)(_0x299887['hasClass']('ck-suggestion-marker-split')||_0x299887['hasClass']('ck-suggestion-marker-merge'))&&(_0x52fd14['mapper']['unbindElementFromMarkerName'](_0x299887,_0x305797['markerName']),_0x52fd14['writer']['remove'](_0x299887));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x17c8be,_0x5b055c,_0x69cc58)=>{const _0x27877f=_0x5b055c['markerName']['split'](':')[0x1],_0x150195=this['_getChangeFromId'](_0x27877f);if(!_0x150195)return null;const _0x35b0c0='add'==_0x150195['type']?'split':'merge';if(_0x69cc58['consumable']['test'](_0x5b055c['markerRange'],_0x17c8be['name']))for(const _0x200c6f of _0x5b055c['markerRange']['getItems']()){if(!_0x200c6f['is']('element','softBreak'))continue;const _0x3c903f=_0x69cc58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35b0c0}),_0x51c7c3=_0x69cc58['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x200c6f));_0x150195['data']['isSuggestion']&&_0x69cc58['writer']['addClass']('ck-suggestion-marker-'+_0x35b0c0+'-new',_0x3c903f),this['activeChange']==_0x150195&&_0x69cc58['writer']['addClass']('ck-suggestion-marker--active',_0x3c903f),_0x69cc58['writer']['insert'](_0x51c7c3,_0x3c903f),_0x69cc58['mapper']['bindElementToMarker'](_0x3c903f,_0x5b055c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x583821=>{for(const _0xdf6ac8 of this['editor']['model']['document']['getRootNames']()){const _0x5f30f6=this['editor']['model']['document']['getRoot'](_0xdf6ac8),_0x3b1941=this['editor']['editing']['view']['document']['getRoot'](_0xdf6ac8);if(_0x3b1941){const _0x57248c=_0x5f30f6['getAttribute']('revisionHistoryAttachChange');if(_0x583821['removeAttribute']('data-change-id',_0x3b1941),_0x583821['removeClass']('ck-revision-history-root-add',_0x3b1941),_0x583821['removeClass']('ck-revision-history-root-remove',_0x3b1941),_0x583821['removeClass']('ck-revision-history-root--active',_0x3b1941),_0x57248c){const _0x25d32a=this['_getChangeFromId'](_0x57248c);if(!_0x25d32a)return null;_0x583821['setAttribute']('data-change-id',_0x57248c,_0x3b1941),_0x583821['addClass']('ck-revision-history-root-'+_0x25d32a['type'],_0x3b1941),this['activeChange']==_0x25d32a&&_0x583821['addClass']('ck-revision-history-root--active',_0x3b1941);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x18de01=>'revision-comment:'+_0x18de01,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xa54a02=>'revision-suggestion:'+_0xa54a02,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x22b0f2=>({'name':'suggestion:'+_0x22b0f2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x51efd3=>{const _0x56cbf0=_0x51efd3['markerName']['split'](':')[0x1];return'insertion'!=_0x56cbf0&&'deletion'!=_0x56cbf0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x56cbf0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x575894,_0x546158,_0x435ef8)=>{const _0x4b6714=_0x435ef8['mapper']['markerNameToElements'](_0x546158['markerName']);if(_0x4b6714){for(const _0x43d126 of _0x4b6714)_0x43d126['is']('uiElement')&&(_0x435ef8['mapper']['unbindElementFromMarkerName'](_0x43d126,_0x546158['markerName']),_0x435ef8['writer']['remove'](_0x43d126));}},{'priority':'high'});}['_getChangeFromId'](_0x12e7a7){return this['_changeIdToChange']['get'](_0x12e7a7);}['_getViewForChange'](_0x5b4c85){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5b4c85),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xba4acd,_0x5dd626,_0x3c5857,_0x58bfa4)=>{_0x58bfa4&&this['_balloon']['remove'](_0x58bfa4),_0x3c5857&&(this['_balloon']['add']({'view':_0x3c5857,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2ff0cb=this['editor']['editing'],_0x3bedf2=this['_getChangeFromId'](_0x3c5857['changeId']);let _0x1dcf02;if(_0x3bedf2['data']['isOnRoot']){const _0x3cfe6d=_0x2ff0cb['view']['getDomRoot'](_0x3bedf2['rootName']);_0x1dcf02=Array['from'](_0x3cfe6d['getClientRects']());}else{const _0x5d6aef=this['editor']['model']['markers']['get']('revision:'+_0x3c5857['changeId']);_0x1dcf02=Array['from'](_0x2ff0cb['mapper']['markerNameToElements'](_0x5d6aef['name']))['map'](_0x3b9cb5=>_0x2ff0cb['view']['domConverter']['mapViewToDom'](_0x3b9cb5))['map'](_0x52d462=>Array['from'](_0x52d462['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1dcf02[0x0];return _0x1dcf02['find'](_0x2bd09d=>_0x2bd09d['top']-0x3<=this['_activeViewTarget']['y']&&_0x2bd09d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2bd09d['left']-0x3<=this['_activeViewTarget']['x']&&_0x2bd09d['right']+0x3>=this['_activeViewTarget']['x'])||_0x1dcf02[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2c91a3,_0x5727aa,_0x5f4f00,_0x3180ca)=>{this['activeView']=_0x5f4f00?this['_getViewForChange'](_0x5f4f00):null,this['editor']['model']['change'](()=>{const _0x590a8f=this['editor']['editing'];_0x3180ca&&(_0x3180ca['data']['isOnRoot']?_0x590a8f['view']['change'](_0x1f77ed=>{_0x1f77ed['removeClass']('ck-revision-history-root--active',_0x590a8f['view']['document']['getRoot'](_0x3180ca['rootName']));}):_0x590a8f['reconvertMarker']('revision:'+_0x3180ca['id'])),_0x5f4f00&&(_0x5f4f00['data']['isOnRoot']?_0x590a8f['view']['change'](_0x5ecb55=>{_0x5ecb55['addClass']('ck-revision-history-root--active',_0x590a8f['view']['document']['getRoot'](_0x5f4f00['rootName']));}):_0x590a8f['reconvertMarker']('revision:'+_0x5f4f00['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x59a574,_0x50e861)=>{if(this['activeChange'])return;const _0x34b1a2=this['_findChangeIdFromDomTarget'](_0x50e861['target']),_0x5dc35d=this['_changeIdToChange']['get'](_0x34b1a2);_0x5dc35d?(this['_activeViewTarget']={'x':_0x50e861['domEvent']['x'],'y':_0x50e861['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5dc35d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x31fcc5,_0x4af0df)=>{const _0x38f491=this['_findChangeIdFromDomTarget'](_0x4af0df['target']),_0x25793c=this['_changeIdToChange']['get'](_0x38f491);_0x25793c?(this['_activeViewTarget']={'x':_0x4af0df['domEvent']['x'],'y':_0x4af0df['domEvent']['y']},_0x25793c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25793c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x22fe6b){do{const _0x21a965=_0x22fe6b['getAttribute']('data-change-id');if(_0x21a965)return _0x21a965;_0x22fe6b=_0x22fe6b['parent'];}while(_0x22fe6b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4d5849=>{for(const _0x15fd1b of this['editor']['model']['markers'])_0x4d5849['removeMarker'](_0x15fd1b);});}}function tt(_0x5f019c,_0x453ed9){return(_0x51e891,_0x44c247,_0x1836a5)=>{if(!_0x1836a5['consumable']['test'](_0x44c247['markerRange'],_0x51e891['name']))return;const _0x2b6804=_0x44c247['markerRange']['getWalker'](),_0x11f572=_0x44c247['markerRange']['start'],_0x2197a1=_0x5f019c['model']['schema'];let _0x2cb332=null,_0x199063=null,_0x505531=!0x1,_0x20af7d=!0x1;for(const _0x239049 of _0x2b6804){const _0x483f85=_0x239049['item'];_0x505531=_0x505531||_0x2197a1['isContent'](_0x483f85);const _0x11a92b=_0x1836a5['mapper']['toViewElement'](_0x483f85);if(_0x11a92b&&_0x11a92b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x239049['type']&&(_0x2197a1['isBlock'](_0x483f85)&&!_0x2197a1['isLimit'](_0x483f85)&&(_0x483f85['nextSibling']||_0x11f572['isAtEnd']?_0x2cb332&&_0x2cb332['parent']==_0x483f85||(_0x2cb332=_0x483f85,_0x1b6bdc(_0x239049['previousPosition']),_0x20af7d=!0x0):_0x199063=_0x199063||_0x239049['previousPosition']));}function _0x1b6bdc(_0x1b763f){const _0x477fd3=_0x1836a5['mapper']['toViewPosition'](_0x1b763f),_0x2e713d=_0x1836a5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x453ed9});_0x1836a5['writer']['insert'](_0x477fd3,_0x2e713d),_0x1836a5['mapper']['bindElementToMarker'](_0x2e713d,_0x44c247['markerName']);}_0x505531||_0x20af7d||!_0x199063||_0x1b6bdc(_0x199063);};}class yt extends _0x16bd35{constructor(_0x1d91ca){super(_0x1d91ca);const _0xef3b6d=_0x1d91ca['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xef3b6d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xef3b6d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x504ca0=this['editor'],_0x23ff04=_0x504ca0['plugins']['get'](d),_0x1b4d19=_0x23ff04['isReady']?_0x23ff04['diff']['newRevisionId']:null;_0x504ca0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1b4d19);}['refresh'](){const {isReady:_0x2c1d08,isEnabled:_0x2fab54}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x2c1d08&&_0x2fab54;}}class bt extends _0x16bd35{['_step'];constructor(_0xf80c81,{direction:_0x30d909}){super(_0xf80c81);const _0x2137c9=_0xf80c81['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x30d909?0x1:-0x1,this['listenTo'](_0x2137c9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2137c9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2137c9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2ce991=this['editor'],_0x492b09=_0x2ce991['plugins']['get'](d),{isNavigationMode:_0x3654b1,currentChangeNumber:_0xf6f6bc}=_0x492b09;let _0x3425d2;if(_0x492b09['activeChange']=_0x3654b1?_0x492b09['diff']['changes']['get'](_0xf6f6bc+this['_step']):_0x492b09['diff']['changes']['first'],_0x492b09['activeChange']['data']['isOnRoot'])_0x3425d2=_0x2ce991['editing']['view']['getDomRoot'](_0x492b09['activeChange']['rootName']);else{const _0x5cac28=_0x2ce991['model']['markers']['get']('revision:'+_0x492b09['activeChange']['id']);_0x3425d2=_0x1e3d9d(_0x2ce991['editing'],_0x5cac28);}_0xdc13e8({'target':_0x3425d2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x35aea9,currentChangeNumber:_0x39240b,numberOfChanges:_0x4198c4,isReady:_0x2b8057,isEnabled:_0xdf8550}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xdf8550&&_0x2b8057&&_0x4198c4)&&(!_0x35aea9||(0x1===this['_step']?_0x39240b<_0x4198c4-0x1:_0x39240b>0x0));}}class di extends _0x4f4dcf{constructor(_0x315ea2){super(_0x315ea2);const _0x1b5dde=this['bindTemplate'],_0x3f7bdf=new _0x18590d(_0x315ea2),_0x92cd7c=new _0x18590d(_0x315ea2);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0xc36be0,_0x5bcf0e)=>_0xc36be0&&_0x5bcf0e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x144d8b,_0x16e4c8,_0x23a613,_0x19f4f5)=>{if(!_0x144d8b)return R(_0x315ea2,'Loading...');if(!_0x23a613)return R(_0x315ea2,'No\x20changes');const _0x33042b=R(_0x315ea2,'NUMBER_OF_CHANGES',_0x23a613);return _0x19f4f5?R(_0x315ea2,'X_OF_Y_CHANGES',[_0x16e4c8+0x1,_0x23a613]):_0x33042b;}),_0x3f7bdf['set']({'label':R(_0x315ea2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x92cd7c['set']({'label':R(_0x315ea2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3f7bdf['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x92cd7c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f7bdf['on']('execute',()=>this['fire']('execute','backward')),_0x92cd7c['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x1b5dde['if']('_isStatusLabelVisible','ck-hidden',_0x5e9126=>!_0x5e9126)]},'children':[{'text':_0x1b5dde['to']('isNavigationMode',_0xb5db1f=>_0xb5db1f?R(_0x315ea2,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x315ea2,'Total')+':\x20')}]},{'text':_0x1b5dde['to']('_statusText')}]},new _0x3b7cad(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f7bdf,_0x92cd7c]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x9a5545{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xbed15a=this['editor']['editing']['view'];_0xbed15a['change'](_0x5b0291=>{for(const _0x363d68 of _0xbed15a['document']['roots'])_0x5b0291['addClass'](ce,_0x363d68);});}['hide'](){const _0x4d35ca=this['editor']['editing']['view'];_0x4d35ca['change'](_0x451487=>{for(const _0x278be8 of _0x4d35ca['document']['roots'])_0x451487['removeClass'](ce,_0x278be8);});}}class m extends _0x9a5545{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x29bedc=this['editor'],_0x4e1132=_0x29bedc['plugins']['get'](d),_0xec447f=_0x29bedc['plugins']['get'](ae);_0x29bedc['ui']['componentFactory']['add']('exitToEditing',_0x2be7a7=>{const _0x25e763=new _0x18590d(_0x2be7a7);return _0x25e763['set']({'label':R(_0x2be7a7,'Back\x20to\x20editing'),'icon':_0x25fa55['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x25e763,'execute',()=>{_0x29bedc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x25e763;}),_0x29bedc['ui']['componentFactory']['add']('restoreRevision',_0x183354=>{const _0x3b4e41=new _0x18590d(_0x183354);return _0x3b4e41['set']({'label':R(_0x183354,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3b4e41['bind']('isEnabled')['to'](_0x29bedc['commands']['get']('restoreRevision')),this['listenTo'](_0x3b4e41,'execute',()=>_0x29bedc['execute']('restoreRevision')),_0x3b4e41;}),_0x29bedc['ui']['componentFactory']['add']('changesNavigation',_0x2c8d33=>{const _0x2c1633=new di(_0x2c8d33),_0x59715b=_0x29bedc['commands']['get']('showPreviousChange'),_0x12ef38=_0x29bedc['commands']['get']('showNextChange');return _0x2c1633['bind']('isBackwardNavigationEnabled')['to'](_0x59715b,'isEnabled'),_0x2c1633['bind']('isForwardNavigationEnabled')['to'](_0x12ef38,'isEnabled'),_0x2c1633['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4e1132),this['listenTo'](_0x2c1633,'execute',(_0x13ebdb,_0x18e0a4)=>{_0x29bedc['execute']('forward'===_0x18e0a4?'showNextChange':'showPreviousChange');}),_0x2c1633;}),_0xec447f['show'](),_0x4e1132['on']('change:isReady',(_0x1e8d5b,_0x28d650,_0x21e609)=>{_0x21e609?_0xec447f['hide']():_0xec447f['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x407381,_0x9c6319){super(_0x407381,_0x9c6319);const _0x7f271c=this['bindTemplate'];this['set']({'label':R(_0x407381,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x407381,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x7f271c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5d5db1=this['fieldView']['element'];this['_tooltipString']=_0x5d5db1['scrollWidth']>_0x5d5db1['clientWidth']&&_0x5d5db1['value']||'';}}class ti extends _0x4f4dcf{constructor(_0x2f6ccd,_0x265d92,_0x1c190b){super(_0x2f6ccd);const _0x59c38a=new _0x58df23();_0x59c38a['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x4731e0=['ck','ck-revision-history-sidebar__revision-author'];_0x1c190b&&_0x4731e0['push']('ck-revision-history-sidebar__revision-author_creator');const _0xa19858=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2f6ccd,_0x1c190b?'Revision\x20creator':'Revision\x20author')},'children':[_0x59c38a,_0x265d92['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4731e0},'children':_0xa19858});}}function ni(_0x225c61,_0x5d269b){const _0x2b0080=_0x225c61['bindTemplate'],_0x41a643=_0x225c61['locale'],_0x504e9a=_0x5c06d4(_0x41a643);_0x504e9a['panelPosition']='sw';const _0x50b68d=function(_0x3090de,_0x47512b){const _0x53d1f4=function(_0x20e461,_0x193b93){const _0x57b863=_0x20e461['locale'],_0x143e68={'Compare\x20against\x20selected':R(_0x57b863,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x57b863,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x57b863,'Restore\x20this\x20revision')};return _0x193b93['map'](_0xbf7a77=>{const _0x5ef09b=_0x143e68[_0xbf7a77['name']];return _0x5ef09b&&_0x5ef09b!==_0xbf7a77['name']&&(_0xbf7a77['name']=_0x5ef09b),_0xbf7a77;});}(_0x3090de,_0x47512b),_0x527d94=new _0x2f121a();for(const _0x341765 of _0x53d1f4){const _0x3310ad={'type':'button','model':new to({'label':_0x341765['name'],'class':_0x341765['class'],'withText':!0x0,'role':'menuitem','_action':_0x341765['action']})};_0x3310ad['model']['bind']('isEnabled')['to'](_0x3090de,'isActionsDropdownOpen',_0x3cc4ef=>'function'!=typeof _0x341765['isEnabled']||(!_0x3cc4ef||_0x341765['isEnabled'](_0x3090de))),_0x527d94['add'](_0x3310ad);}return _0x527d94;}(_0x225c61,_0x5d269b);return _0x225c61['bind']('isActionsDropdownOpen')['to'](_0x504e9a,'isOpen'),_0x504e9a['buttonView']['set']({'label':R(_0x41a643,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x25fa55['threeVerticalDots']}),_0x504e9a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2b0080['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2b0080['to'](_0x2870b2=>_0x2870b2['stopPropagation']())}}),_0x504e9a['on']('execute',_0x10b435=>{_0x225c61['isReady']&&'function'==typeof _0x10b435['source']['_action']&&_0x10b435['source']['_action'](_0x225c61);}),_0x584b38(_0x504e9a,_0x50b68d,{'role':'menu'}),_0x504e9a['listenTo'](_0x225c61,'change:isActionsDropdownOpen',(_0x3ab9d3,_0x3e89f2,_0x11d9a0)=>{if(_0x11d9a0)for(const _0x2954e2 of _0x504e9a['listView']['items']){const _0x1cf105=_0x2954e2['children']['first'],_0x13f8bf=_0x5d269b['find'](_0x35a40d=>_0x35a40d['action']===_0x1cf105['_action'])['isVisible'];_0x2954e2['isVisible']=void 0x0===_0x13f8bf||_0x13f8bf(_0x225c61);}}),_0x504e9a;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x735357(_0x4f4dcf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x327c5a,_0xa53223,_0x459cb3,_0x1fb3ab){super(_0x327c5a);const _0x1142a1=this['bindTemplate'],_0x3ee046=function(_0xedded2,_0x10647d){const _0x3aeb12=Array['from'](_0x10647d['authors'])['filter'](_0x15e303=>_0x15e303!=_0x10647d['creator']);return _0x10647d['creator']&&_0x3aeb12['unshift'](_0x10647d['creator']),_0x3aeb12['map'](_0x469b0a=>new ti(_0xedded2,_0x469b0a,_0x469b0a==_0x10647d['creator']));}(_0x327c5a,_0xa53223);this['id']=_0xa53223['id'],this['_revision']=_0xa53223,this['_requireRevisionName']=_0x1fb3ab,this['bind']('name','createdAt')['to'](_0xa53223),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x53b294=>{return _0x285ecb=_0x327c5a['uiLanguage'],(_0x3578be=_0x53b294)['toLocaleDateString'](_0x285ecb,{'month':'long','day':'numeric'})+',\x20'+_0x3578be['toLocaleTimeString'](_0x285ecb,{'hour':'numeric','minute':'numeric'});var _0x285ecb,_0x3578be;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x327c5a,_0x5e8fe9),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x18b073=>_0x18b073||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x259e75,_0x43da7d)=>_0x259e75&&_0x43da7d),this['revisionActionsView']=_0x459cb3&&_0x459cb3['length']?ni(this,_0x459cb3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1142a1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1142a1['if']('isEnabled','ck-disabled',_0x20c4ec=>!_0x20c4ec),_0x1142a1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1142a1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1142a1['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1142a1['to']('_createdAtFormatted')}]},{'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':_0x3ee046}]},this['revisionActionsView']],'on':{'click':_0x1142a1['to'](_0x133a74=>{_0x133a74['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3045d1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3045d1,'change',()=>{this['_requireRevisionName']&&!_0x3045d1['value']||this['fire']('setName',{'id':this['id'],'name':_0x3045d1['value']}),_0x3045d1['value']||(_0x3045d1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3482a4,_0x10a765){const _0xdd84d2=_0x143ed1['fromJSDate'](_0x3482a4)['setLocale'](_0x10a765),_0x14ad43=_0x143ed1['local'](),_0x1a98c1=_0x14ad43['minus']({'days':0x1})['startOf']('day');let _0x489f11,_0xdcfba2;return _0xdd84d2['hasSame'](_0x14ad43,'day')?(_0x489f11=_0xdd84d2['startOf']('day')['toJSDate'](),_0xdcfba2=_0xdd84d2['toRelativeCalendar']()):_0xdd84d2['hasSame'](_0x1a98c1,'day')?(_0x489f11=_0x1a98c1['toJSDate'](),_0xdcfba2=_0xdd84d2['toRelativeCalendar']()):_0xdd84d2['hasSame'](_0x14ad43,'week')?(_0x489f11=_0xdd84d2['startOf']('week')['toJSDate'](),_0xdcfba2=_0xdd84d2['weekdayLong']||''):_0xdd84d2['hasSame'](_0x14ad43,'year')?(_0x489f11=_0xdd84d2['startOf']('month')['toJSDate'](),_0xdcfba2=_0xdd84d2['monthLong']||''):(_0x489f11=_0xdd84d2['startOf']('year')['toJSDate'](),_0xdcfba2=String(_0xdd84d2['year'])),{'startDate':_0x489f11,'localizedPeriodName':_0xdcfba2};}class vi extends _0x4f4dcf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xcf4a2,_0x345c68,_0x49adec,_0x16f75a){super(_0xcf4a2);const _0x35f603=mi(_0x345c68,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x345c68,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x49adec,this['_requireRevisionName']=_0x16f75a,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x35f603}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3e7098){const _0x202987=new ai(this['locale'],_0x3e7098,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x202987);}['removeRevision'](_0x5d0c46){const _0x12b0b5=this['revisionViews']['find'](_0x170518=>_0x170518['id']===_0x5d0c46['id']);this['revisionViews']['remove'](_0x12b0b5);}}class as extends _0x4f4dcf{constructor(_0x28c0ff){super(_0x28c0ff);const _0x57d5df=new _0x58df23();_0x57d5df['content']=_0x25fa55['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x57d5df,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x28c0ff,'Revision\x20history')]}]});}}class li extends _0x4f4dcf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x292239,_0x45dbf2,_0xc98234,_0x4e6e42){super(_0x292239);const _0x232589=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x45dbf2,this['_revisionActions']=_0xc98234,this['_requireRevisionName']=_0x4e6e42,this['on']('select',(_0x43932f,_0x91cf7)=>{this['fire']('revisionSelected',_0x91cf7);}),this['on']('setName',(_0x32e797,_0x5e54c8)=>{this['fire']('revisionSetName',_0x5e54c8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x292239),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x232589['if']('isEnabled','ck-disabled',_0x2ee6ce=>!_0x2ee6ce)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x158639 of this['_revisions'])this['_addRevision'](_0x158639);this['_revisions']['on']('add',(_0x287578,_0x85660f)=>{this['_addRevision'](_0x85660f);}),this['_revisions']['on']('remove',(_0x2a222f,_0x276219)=>{this['_removeRevision'](_0x276219);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4a4c11=>_0x4a4c11['revisionViews']['map'](_0x26d26f=>_0x26d26f))['flat']();}['selectRevision'](_0x205846){for(const _0x56c2a8 of this['revisionViews'])_0x205846&&_0x205846['id']===_0x56c2a8['id']?_0x56c2a8['select']():_0x56c2a8['deselect']();}['highlightRevisions'](_0x52f06a){for(const _0x18bb7b of this['revisionViews'])_0x52f06a['some'](({id:_0x78a731})=>_0x78a731===_0x18bb7b['id'])?_0x18bb7b['highlight']():_0x18bb7b['unhighlight']();}['_addRevision'](_0xcd8947){const _0x2d76e2=mi(_0xcd8947['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x28a811=this['timePeriodViews']['get'](0x0);_0x28a811&&_0x28a811['startDate']['getTime']()===_0x2d76e2['getTime']()||(_0x28a811=new vi(this['locale'],_0x2d76e2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x28a811)),_0x28a811['addRevision'](_0xcd8947);}['_removeRevision'](_0x5e9a31){const _0x183d3d=mi(_0x5e9a31['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x183d3d)['removeRevision'](_0x5e9a31);}['_getTimePeriodViewByStartDate'](_0x3329b4){return this['timePeriodViews']['find'](_0x58a335=>_0x58a335['startDate']['getTime']()===_0x3329b4['getTime']());}}class g extends _0x9a5545{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x933897){super(_0x933897),this['_revisionViewer']=_0x933897['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2e8464=this['_revisionsRepository']['_revisions'],_0x450def=this['_createRevisionActions'](),_0x3b6eed=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x2e8464,_0x450def,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x5dcb61,_0x18a602)=>{_0x18a602['revisionViews']['on']('add',(_0x136a54,_0x53a1e7)=>{_0x53a1e7['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x3b6eed['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x251275=this['_revisionsRepository']['getRevision'](0x0);if(_0x251275){const _0x3deedd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x251275['id']);this['_revisionViewer']['compare'](_0x251275,_0x3deedd);}}['_handleRevisionSelected'](_0x54158f,_0x5a2bf2){const _0x42a87b=this['_revisionsRepository']['getRevision'](_0x5a2bf2['id']),_0x5e4106=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x42a87b['id']);this['_revisionViewer']['compare'](_0x42a87b,_0x5e4106);}['_handleRevisionSetName'](_0x447710,_0x57639c){this['_revisionsRepository']['getRevision'](_0x57639c['id'])['setName'](_0x57639c['name']);}['_handleDiffChange'](_0x5430cb,_0x436598,_0xdf0103){const _0xd0c1c5=this['_revisionsRepository']['getRevisionsInDiff'](_0xdf0103);_0xd0c1c5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xd0c1c5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xd0c1c5[0x0]));}['_createRevisionActions'](){const _0x107178=this['editor'],_0x853a35=g['availableRevisionActions'],_0x562bd9=_0x107178['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x562bd9['length'])return _0x562bd9['map'](_0x65388f=>{const _0x57e30f='string'==typeof _0x65388f?Object['assign']({},_0x853a35[_0x65388f]):_0x65388f;return _0x57e30f['action']=_0x57e30f['action']['bind'](this,_0x107178),_0x57e30f['isVisible']&&(_0x57e30f['isVisible']=_0x57e30f['isVisible']['bind'](this,_0x107178)),_0x57e30f;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xb962b4},_0x18edad)=>{const _0x15ff4e=_0xb962b4['get'](d),_0x549505=_0x15ff4e['repository'];let _0x26d5b0=_0x15ff4e['diff']['newRevisionId'],_0x29ca3e=_0x18edad['id'];_0x549505['getIndex'](_0x26d5b0)>_0x549505['getIndex'](_0x29ca3e)&&([_0x26d5b0,_0x29ca3e]=[_0x29ca3e,_0x26d5b0]),_0x15ff4e['compare'](_0x26d5b0,_0x29ca3e);},'isVisible':({plugins:_0x22c882},_0x46c511)=>{const _0x46734c=_0x22c882['get'](d);return!(_0x46734c['repository']['getRevisionsInDiff'](_0x46734c['diff'])['length']>0x2)&&!_0x46c511['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xbe144a,{id:_0x2e50c1})=>{_0xbe144a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e50c1);},'isVisible':({plugins:_0x4a4b25},_0x56b55a)=>!!_0x4a4b25['get'](d)['repository']['getLaterVisibleRevision'](_0x56b55a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5d9fe3},{id:_0x4d597c,revisionNameView:_0x444a1b})=>{const _0xf2ce7c=_0x5d9fe3['get'](d),_0x4a267d=_0xf2ce7c['repository']['getEarlierVisibleRevision'](_0x4d597c);_0xf2ce7c['compare'](_0x4d597c,_0x4a267d),_0x444a1b['focus'](),_0x444a1b['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x16afee,_0x48011b){super(_0x16afee),this['_view']=_0x48011b,this['_toolbarConfig']=ht(_0x16afee['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x3eddbf){const _0x38c649=this['editor'],_0x14b142=this['view'],_0x252839=_0x38c649['editing']['view'],_0x3cf112=_0x14b142['editable'],_0x35e700=_0x252839['document']['getRoot']();_0x3cf112['name']=_0x35e700['rootName'],_0x14b142['render']();const _0x233f9a=_0x3cf112['element'];this['setEditableElement'](_0x3cf112['name'],_0x233f9a),_0x14b142['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x252839['attachDomRoot'](_0x233f9a),this['_elementReplacer']['replace'](_0x3eddbf,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x27ce67=this['view'],_0x454cbf=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x454cbf['detachDomRoot'](_0x27ce67['editable']['name']),_0x27ce67['destroy']();}['_initToolbar'](){const _0x2e9880=this['view'];_0x2e9880['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2e9880['stickyPanel']['limiterElement']=_0x2e9880['element'],_0x2e9880['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2d1416})=>_0x2d1416),_0x2e9880['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2e9880['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x34ecb3,_0x3d9306,_0x57b6aa={}){super(_0x34ecb3),this['stickyPanel']=new lt(_0x34ecb3),this['toolbar']=new nt(_0x34ecb3,{'shouldGroupWhenFull':_0x57b6aa['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x34ecb3,_0x3d9306);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x49b494,_0x28c4c0){super(_0x28c4c0),this['sourceElement']=_0x49b494,this['model']['document']['createRoot']();const _0x204495=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x204495);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3f9c73,_0x220b70){const _0x49cade=new this(_0x3f9c73,_0x220b70);return await _0x49cade['initPlugins'](),await _0x49cade['ui']['init'](_0x3f9c73),await _0x49cade['data']['init'](_0x49cade['config']['get']('initialData')||''),_0x49cade['fire']('ready'),_0x49cade;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x749fac{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x214ed7){function _0x346bce(_0x229c4b){return _0x229c4b['map'](_0x4080a9=>String['fromCharCode'](_0x4080a9))['join']('');}super(_0x214ed7),this['result']='end',_0x214ed7[_0x346bce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x346bce([0x76,0x69,0x65,0x77])][_0x346bce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x346bce([0x61,0x75,0x74,0x6f]),_0x214ed7[_0x346bce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x346bce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x346bce([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x346bce([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x346bce([0x6f,0x6b])});}}class H extends _0x749fac{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xc3a87b){if(super(_0xc3a87b),!this['editor']['config']['get']('revisionHistory'))throw new _0x4264c4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xa48792=>this['_showRevisionViewer']({..._0xa48792,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5610e0=>this['_closeRevisionViewer'](_0x5610e0)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5e3de4=>this['_restoreRevision'](_0x5e3de4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x761eb0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x761eb0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4fff72){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4fff72);}['getRevision'](_0x56d286){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x56d286);}['getRevisions'](_0x210482){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x210482||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x23d98b=this['editor'],_0x255893=_0x35e906(_0x23d98b,p),_0x405c96=_0x23d98b['plugins']['get']('RevisionTracker'),_0x38d567=_0x23d98b['plugins']['get']('Users')['users'];return _0x255893['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x255893['lazyRoots'],(_0x255893['plugins']['push'](k,d,m,class extends _0x749fac{static get['requires'](){return[d,'Users'];}['init'](){const _0x198e14=this['editor']['plugins']['get']('Users');for(const _0x252c7b of _0x38d567)_0x252c7b['isAnonymous']||_0x198e14['getUser'](_0x252c7b['id'])||_0x198e14['addUser'](_0x252c7b);const _0x469d8f=_0x405c96['repository']['getRevisions']();let _0x9911ba=null;const _0xbea846=this['editor']['plugins']['get']('RevisionViewer');_0xbea846['adapter']=_0x405c96['adapter'],_0xbea846['bind']('isEnabled')['to'](_0x405c96),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x23d98b,'isReadOnly',_0x416eca=>!_0x416eca);for(const _0x3ac6b9 of _0x469d8f){const _0x5db010=null===_0x3ac6b9['creator'];if(_0x5db010&&_0x3ac6b9['toVersion']===_0x3ac6b9['fromVersion'])continue;const _0x1c706b=_0x3ac6b9['toJSON']();_0xbea846['addRevisionData'](_0x1c706b,(_0x55d617,_0x1d63be,_0x2a9e5d)=>{if(_0x5db010){if(_0x9911ba)_0x9911ba['_update'](_0x55d617,_0x1d63be);else{if(!_0x1d63be){const _0x1ea40b=_0x2a9e5d['toJSON']();_0x1ea40b['id']=_0x39e673(),_0x405c96['saveRevision'](_0x1ea40b,_0x2a9e5d['toVersion'])['then'](_0x21b985=>{_0x9911ba=_0x21b985;});}}}else _0x3ac6b9['_update'](_0x55d617,_0x1d63be);});}}},g),_0x255893);}['_enhanceShowRevisionViewerCallback'](){const _0x13eaf5=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1edf82=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a8fea=this['editor']['plugins']['get']('Autosave');await _0x4a8fea['save']();}else await _0x1edf82['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x6f2672=this['editor']['plugins']['get']('Dialog');_0x6f2672['isOpen']&&_0x6f2672['hide']();}const _0x1fbd25=this['_getRevisionViewerEditorConfig']();return _0x13eaf5(_0x1fbd25)['then'](_0x515074=>{return(this['_viewerEditor']=_0x515074,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x515074;})['catch'](_0x44b3fc=>(console['error'](_0x44b3fc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x77a9dc=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x77a9dc(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x421d59=this['editor']['plugins']['get']('Annotations');_0x421d59['refreshVisibility'](),_0x421d59['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5dd712){const _0x369619=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4b1e22=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x30cb58=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x30cb58,_0x5dd712)['then'](_0x1ce6a5=>(_0x4b1e22['style']['display']='block',_0x369619['style']['display']='none',_0x1ce6a5));}['_closeRevisionViewer'](_0x467aea){const _0x7ce189=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x7ce189['style']['display']='',_0x467aea['destroy']();}async['_restoreRevision'](_0x4c5211){const _0x8e8f43=this['editor'],_0x21bbc9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x390d68=_0x8e8f43['plugins']['get']('RevisionTracker'),_0x22fee9=_0x21bbc9['repository']['getRevision'](_0x4c5211);let _0x164b6a,_0x135c49,_0x50ecde;try{_0x164b6a=await _0x21bbc9['getRevisionData'](_0x22fee9),_0x135c49=await _0x21bbc9['getRevisionRootsAttributes'](_0x22fee9);}catch(_0x59dc9d){return void console['error'](_0x59dc9d);}_0x8e8f43['model']['change'](_0x3c6374=>{for(const _0x2b84db of Array['from'](_0x8e8f43['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3c6374['removeMarker'](_0x2b84db);}),_0x21bbc9['isReady']=!0x1,_0x8e8f43['model']['enqueueChange'](_0x2d5ff6=>{_0x2d5ff6['setSelection'](null),_0x2d5ff6['removeSelectionAttribute'](_0x8e8f43['model']['document']['selection']['getAttributeKeys']());const _0x4ab9da=Object['keys'](_0x164b6a);for(const _0x4d3d3c of _0x8e8f43['model']['document']['roots'])'$graveyard'!=_0x4d3d3c['rootName']&&_0x4d3d3c['isAttached']()&&!_0x4ab9da['includes'](_0x4d3d3c['rootName'])&&_0x2d5ff6['detachRoot'](_0x4d3d3c);for(const _0x41a5ea of _0x4ab9da){let _0x3d3bf9=_0x8e8f43['model']['document']['getRoot'](_0x41a5ea);_0x3d3bf9&&_0x3d3bf9['isAttached']()||(_0x3d3bf9=_0x2d5ff6['addRoot'](_0x41a5ea));const _0x294788=_0x135c49[_0x41a5ea],_0x4ea06a=Object['keys'](_0x294788),_0x41d5e9=_0x164b6a[_0x41a5ea];for(const _0x583bc6 of _0x3d3bf9['getAttributeKeys']())_0x4ea06a['includes'](_0x583bc6)||_0x2d5ff6['removeAttribute'](_0x583bc6,_0x3d3bf9);for(const _0x378b08 of _0x4ea06a)_0x2d5ff6['setAttribute'](_0x378b08,_0x135c49[_0x41a5ea][_0x378b08],_0x3d3bf9);_0x2d5ff6['remove'](_0x2d5ff6['createRangeIn'](_0x3d3bf9)),_0x2d5ff6['insert'](_0x8e8f43['data']['parse'](_0x41d5e9,_0x3d3bf9),_0x3d3bf9,0x0);}});const _0x590a5a=R(_0x8e8f43['locale'],'Restored');if(_0x22fee9['name'])_0x50ecde=-0x1==_0x22fee9['name']['indexOf'](_0x590a5a)?_0x590a5a+':\x20'+_0x22fee9['name']:_0x22fee9['name'];else _0x50ecde=_0x590a5a+':\x20'+(_0x22fee9['createdAt']['toLocaleDateString'](_0x8e8f43['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x22fee9['createdAt']['toLocaleTimeString'](_0x8e8f43['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x390d68['saveRevision']({'name':_0x50ecde}),_0x21bbc9['isReady']=!0x0,_0x8e8f43['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x196587){super(_0x196587),this['_revisionViewer']=_0x196587['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x15421c=this['_revisionsRepository']['_revisions'],_0x69158b=this['_createRevisionActions'](),_0x642bcf=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x15421c,_0x69158b,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x25b510,_0x1d2dbe)=>{_0x1d2dbe['revisionViews']['on']('add',(_0x51f4d9,_0x4c7283)=>{_0x4c7283['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x642bcf['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3e87df=this['_revisionsRepository']['getRevision'](0x0);if(_0x3e87df){const _0x7b0916=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3e87df['id']);this['_revisionViewer']['compare'](_0x3e87df,_0x7b0916);}}['_handleRevisionSelected'](_0x3828c0,_0x49e711){const _0x8f019b=this['_revisionsRepository']['getRevision'](_0x49e711['id']),_0x1aac4f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x8f019b['id']);this['_revisionViewer']['compare'](_0x8f019b,_0x1aac4f);}['_handleRevisionSetName'](_0x5a4a64,_0xcae481){this['_revisionsRepository']['getRevision'](_0xcae481['id'])['setName'](_0xcae481['name']);}['_handleDiffChange'](_0x5ce7c8,_0x23a68e,_0x32c9b5){const _0x3d08c8=this['_revisionsRepository']['getRevisionsInDiff'](_0x32c9b5);_0x3d08c8['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3d08c8),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3d08c8[0x0]));}['_createRevisionActions'](){const _0x4fba7b=this['editor'],_0x3a10f4=g['availableRevisionActions'],_0x1903db=_0x4fba7b['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1903db['length'])return _0x1903db['map'](_0x474ffa=>{const _0x528ced='string'==typeof _0x474ffa?Object['assign']({},_0x3a10f4[_0x474ffa]):_0x474ffa;return _0x528ced['action']=_0x528ced['action']['bind'](this,_0x4fba7b),_0x528ced['isVisible']&&(_0x528ced['isVisible']=_0x528ced['isVisible']['bind'](this,_0x4fba7b)),_0x528ced;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x14aa36},_0x576b28)=>{const _0x417a8d=_0x14aa36['get'](d),_0x18bab9=_0x417a8d['repository'];let _0x21b288=_0x417a8d['diff']['newRevisionId'],_0x4fc41f=_0x576b28['id'];_0x18bab9['getIndex'](_0x21b288)>_0x18bab9['getIndex'](_0x4fc41f)&&([_0x21b288,_0x4fc41f]=[_0x4fc41f,_0x21b288]),_0x417a8d['compare'](_0x21b288,_0x4fc41f);},'isVisible':({plugins:_0x1796e4},_0x3f152a)=>{const _0x389089=_0x1796e4['get'](d);return!(_0x389089['repository']['getRevisionsInDiff'](_0x389089['diff'])['length']>0x2)&&!_0x3f152a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x486651,{id:_0x1e8b32})=>{_0x486651['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1e8b32);},'isVisible':({plugins:_0x40ef11},_0x535ccc)=>!!_0x40ef11['get'](d)['repository']['getLaterVisibleRevision'](_0x535ccc['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x110fcd},{id:_0x4cf8e0,revisionNameView:_0x2d3a7a})=>{const _0x142bbf=_0x110fcd['get'](d),_0x559ba4=_0x142bbf['repository']['getEarlierVisibleRevision'](_0x4cf8e0);_0x142bbf['compare'](_0x4cf8e0,_0x559ba4),_0x2d3a7a['focus'](),_0x2d3a7a['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1d5326,_0x1af508){super(_0x1d5326),this['_view']=_0x1af508,this['_toolbarConfig']=ht(_0x1d5326['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x1e2f16){const _0x18c458=this['editor'],_0x6d201c=this['view'],_0x25987a=_0x18c458['editing']['view'],_0x2d7e37=_0x6d201c['editable'],_0x39f0af=_0x25987a['document']['getRoot']();_0x2d7e37['name']=_0x39f0af['rootName'],_0x6d201c['render']();const _0x4cfb76=_0x2d7e37['element'];this['setEditableElement'](_0x2d7e37['name'],_0x4cfb76),_0x6d201c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x25987a['attachDomRoot'](_0x4cfb76),this['_elementReplacer']['replace'](_0x1e2f16,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xebc8f9=this['view'],_0x5cef8b=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5cef8b['detachDomRoot'](_0xebc8f9['editable']['name']),_0xebc8f9['destroy']();}['_initToolbar'](){const _0x34630a=this['view'];_0x34630a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x34630a['stickyPanel']['limiterElement']=_0x34630a['element'],_0x34630a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4c1d1b})=>_0x4c1d1b),_0x34630a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x34630a['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4b700c,_0x2611db,_0x369898={}){super(_0x4b700c),this['stickyPanel']=new lt(_0x4b700c),this['toolbar']=new nt(_0x4b700c,{'shouldGroupWhenFull':_0x369898['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x4b700c,_0x2611db);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x205c10,_0x292749){super(_0x292749),this['sourceElement']=_0x205c10,this['model']['document']['createRoot']();const _0x15be77=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x15be77);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x125290,_0x4484d6){const _0x2b92d3=new this(_0x125290,_0x4484d6);return await _0x2b92d3['initPlugins'](),await _0x2b92d3['ui']['init'](_0x125290),await _0x2b92d3['data']['init'](_0x2b92d3['config']['get']('initialData')||''),_0x2b92d3['fire']('ready'),_0x2b92d3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x9a5545{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c5713){function _0x1ac147(_0x3d5207){return _0x3d5207['map'](_0x9d4357=>String['fromCharCode'](_0x9d4357))['join']('');}super(_0x3c5713),this['result']='end',_0x3c5713[_0x1ac147([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ac147([0x76,0x69,0x65,0x77])][_0x1ac147([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ac147([0x61,0x75,0x74,0x6f]),_0x3c5713[_0x1ac147([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1ac147([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ac147([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1ac147([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1ac147([0x6f,0x6b])});}}class H extends _0x9a5545{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3671e5){if(super(_0x3671e5),!this['editor']['config']['get']('revisionHistory'))throw new _0x52c9ac('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xd1dcb3=>this['_showRevisionViewer']({..._0xd1dcb3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1e610f=>this['_closeRevisionViewer'](_0x1e610f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x14378c=>this['_restoreRevision'](_0x14378c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xaa7ef5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xaa7ef5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x336ea6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x336ea6);}['getRevision'](_0x4fefed){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4fefed);}['getRevisions'](_0x4ab34a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4ab34a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4cb82c=this['editor'],_0x1e833f=_0x48122b(_0x4cb82c,p),_0x3d535d=_0x4cb82c['plugins']['get']('RevisionTracker'),_0x27f321=_0x4cb82c['plugins']['get']('Users')['users'];return _0x1e833f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1e833f['lazyRoots'],(_0x1e833f['plugins']['push'](k,d,m,class extends _0x9a5545{static get['requires'](){return[d,'Users'];}['init'](){const _0x8960f0=this['editor']['plugins']['get']('Users');for(const _0x4c521a of _0x27f321)_0x4c521a['isAnonymous']||_0x8960f0['getUser'](_0x4c521a['id'])||_0x8960f0['addUser'](_0x4c521a);const _0x24bd02=_0x3d535d['repository']['getRevisions']();let _0x302dbe=null;const _0x89efa0=this['editor']['plugins']['get']('RevisionViewer');_0x89efa0['adapter']=_0x3d535d['adapter'],_0x89efa0['bind']('isEnabled')['to'](_0x3d535d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4cb82c,'isReadOnly',_0x1df206=>!_0x1df206);for(const _0x538037 of _0x24bd02){const _0x38210a=null===_0x538037['creator'];if(_0x38210a&&_0x538037['toVersion']===_0x538037['fromVersion'])continue;const _0x4ea644=_0x538037['toJSON']();_0x89efa0['addRevisionData'](_0x4ea644,(_0x1ecd1c,_0x276866,_0x55f73e)=>{if(_0x38210a){if(_0x302dbe)_0x302dbe['_update'](_0x1ecd1c,_0x276866);else{if(!_0x276866){const _0x5b08e0=_0x55f73e['toJSON']();_0x5b08e0['id']=_0x1ced54(),_0x3d535d['saveRevision'](_0x5b08e0,_0x55f73e['toVersion'])['then'](_0x4e472a=>{_0x302dbe=_0x4e472a;});}}}else _0x538037['_update'](_0x1ecd1c,_0x276866);});}}},g),_0x1e833f);}['_enhanceShowRevisionViewerCallback'](){const _0x3e00d1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x48b95a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x52dcfa=this['editor']['plugins']['get']('Autosave');await _0x52dcfa['save']();}else await _0x48b95a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4161db=this['editor']['plugins']['get']('Dialog');_0x4161db['isOpen']&&_0x4161db['hide']();}const _0x56c004=this['_getRevisionViewerEditorConfig']();return _0x3e00d1(_0x56c004)['then'](_0x37b99a=>{return(this['_viewerEditor']=_0x37b99a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x37b99a;})['catch'](_0x5ac3f6=>(console['error'](_0x5ac3f6),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xc17422=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xc17422(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x39e2bf=this['editor']['plugins']['get']('Annotations');_0x39e2bf['refreshVisibility'](),_0x39e2bf['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5f0f0c){const _0x1d8bf6=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x437908=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2830c2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2830c2,_0x5f0f0c)['then'](_0xb848c3=>(_0x437908['style']['display']='block',_0x1d8bf6['style']['display']='none',_0xb848c3));}['_closeRevisionViewer'](_0x5b240a){const _0x56654f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x56654f['style']['display']='',_0x5b240a['destroy']();}async['_restoreRevision'](_0x41033e){const _0x42da29=this['editor'],_0x2d39b1=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x58b872=_0x42da29['plugins']['get']('RevisionTracker'),_0x3e16bb=_0x2d39b1['repository']['getRevision'](_0x41033e);let _0x23f3f4,_0x3d240d,_0x575e66;try{_0x23f3f4=await _0x2d39b1['getRevisionData'](_0x3e16bb),_0x3d240d=await _0x2d39b1['getRevisionRootsAttributes'](_0x3e16bb);}catch(_0x1843d4){return void console['error'](_0x1843d4);}_0x42da29['model']['change'](_0x58b400=>{for(const _0x382d89 of Array['from'](_0x42da29['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x58b400['removeMarker'](_0x382d89);}),_0x2d39b1['isReady']=!0x1,_0x42da29['model']['enqueueChange'](_0x311643=>{_0x311643['setSelection'](null),_0x311643['removeSelectionAttribute'](_0x42da29['model']['document']['selection']['getAttributeKeys']());const _0x451bd5=Object['keys'](_0x23f3f4);for(const _0x49df59 of _0x42da29['model']['document']['roots'])'$graveyard'!=_0x49df59['rootName']&&_0x49df59['isAttached']()&&!_0x451bd5['includes'](_0x49df59['rootName'])&&_0x311643['detachRoot'](_0x49df59);for(const _0x3af571 of _0x451bd5){let _0x1307ff=_0x42da29['model']['document']['getRoot'](_0x3af571);_0x1307ff&&_0x1307ff['isAttached']()||(_0x1307ff=_0x311643['addRoot'](_0x3af571));const _0x29e9db=_0x3d240d[_0x3af571],_0x6f4fc7=Object['keys'](_0x29e9db),_0x492c19=_0x23f3f4[_0x3af571];for(const _0x2ae031 of _0x1307ff['getAttributeKeys']())_0x6f4fc7['includes'](_0x2ae031)||_0x311643['removeAttribute'](_0x2ae031,_0x1307ff);for(const _0x395f9c of _0x6f4fc7)_0x311643['setAttribute'](_0x395f9c,_0x3d240d[_0x3af571][_0x395f9c],_0x1307ff);_0x311643['remove'](_0x311643['createRangeIn'](_0x1307ff)),_0x311643['insert'](_0x42da29['data']['parse'](_0x492c19,_0x1307ff),_0x1307ff,0x0);}});const _0x311173=R(_0x42da29['locale'],'Restored');if(_0x3e16bb['name'])_0x575e66=-0x1==_0x3e16bb['name']['indexOf'](_0x311173)?_0x311173+':\x20'+_0x3e16bb['name']:_0x3e16bb['name'];else _0x575e66=_0x311173+':\x20'+(_0x3e16bb['createdAt']['toLocaleDateString'](_0x42da29['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3e16bb['createdAt']['toLocaleTimeString'](_0x42da29['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x58b872['saveRevision']({'name':_0x575e66}),_0x2d39b1['isReady']=!0x0,_0x42da29['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};