@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241214.0 → 0.0.0-nightly-20241215.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x42fc44,uid as _0x45c6ed,Collection as _0xc46275,logWarning as _0x1f749e,FocusTracker as _0x426056,KeystrokeHandler as _0x5bb513,scrollViewportToShowTarget as _0x1c6bfe,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x2e7d78}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1fbbd4,set as _0x21c1f9,unset as _0x329f06,isEqual as _0x217429}from'lodash-es';import{Plugin as _0x5a5f64,PendingActions as _0xa8dbbf,icons as _0x2b22d2,Command as _0x455b3a,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x13a039,getMarkerDomElement as _0x494947,ConfirmMixin as _0x3151ef,sanitizeEditorConfig as _0x23d80d}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x29157b,ViewText as _0x580579,ViewElement as _0x9fe0f9,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x34a5a1,ViewAttributeElement as _0x598c3e,ViewEmptyElement as _0x29e244,ViewRawElement as _0x38a7d8,ViewUIElement as _0x196df5,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x59c2ca,injectCssTransitionDisabler as ts,submitHandler as _0x2b7941,LabeledFieldView as at,createLabeledInputText as _0x2931d8,createDropdown as _0x40e817,ListView as _0xab325d,ListItemView as te,ButtonView as _0x3b013d,MenuBarMenuView as _0x8cd669,MenuBarMenuListView as _0x3181c6,MenuBarMenuListItemView as _0x41624a,MenuBarMenuListItemButtonView as _0x58d60f,ContextualBalloon as _0xc8f96d,ToolbarSeparatorView as _0x491304,IconView as _0x58f379,addListToDropdown as _0x1d8c31,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 _0x3dbd8b}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x42fc44(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x561b95){super(),this['id']=_0x561b95['id']||_0x45c6ed(),this['creator']=_0x561b95['creator']||null,this['authors']=_0x561b95['authors']||[],this['diffData']=_0x561b95['diffData']||null,this['toVersion']=_0x561b95['toVersion']||0x0,this['fromVersion']=_0x561b95['fromVersion']||0x0,this['set']('name',_0x561b95['name']||''),this['set']('createdAt',_0x561b95['createdAt']||new Date()),this['set']('attributes',_0x561b95['attributes']||{});}['setName'](_0x3a5a05){this['_update']({'name':_0x3a5a05});}['setAttribute'](_0x2f5ce8,_0x199828){const _0x7f20e2=_0x1fbbd4(this['attributes']);_0x21c1f9(_0x7f20e2,_0x2f5ce8,_0x199828),this['_update']({'attributes':_0x7f20e2});}['removeAttribute'](_0x5c17a1){const _0x4dcc39=_0x1fbbd4(this['attributes']);_0x329f06(_0x4dcc39,_0x5c17a1),this['_update']({'attributes':_0x4dcc39});}['_update'](_0x12434f,_0x45ca45=!0x1){let _0x34d2b8=!0x1;const _0xa2324c={'id':this['id']},_0x52729d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5c1627 of _0x52729d){const _0x3cdd51=_0x12434f[_0x5c1627];void 0x0!==_0x3cdd51&&_0x3cdd51!==this[_0x5c1627]&&(this[_0x5c1627]=_0x3cdd51,_0xa2324c[_0x5c1627]=_0x3cdd51,_0x34d2b8=!0x0);}_0x34d2b8&&(_0xa2324c['authors']&&(_0xa2324c['authorsIds']=_0xa2324c['authors']['map'](_0x443358=>_0x443358['id']),delete _0xa2324c['authors']),this['fire']('_update',_0xa2324c,_0x45ca45));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3c6ec6=>_0x3c6ec6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5a5f64{['_revisions'];static get['requires'](){return[_0x13a039];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3c5b43){super(_0x3c5b43),this['_revisions']=new _0xc46275();}['afterInit'](){!async function(_0x1faa03){const _0x2b232b=_0xff6763([0x58,0x48,0x56,0x71,0x6a,0x4d,0x49,0x4a,0x6f,0x44,0x33,0x76,0x42,0x61,0x52,0x55,0x30,0x57,0x47,0x66,0x74,0x68,0x73,0x43,0x75,0x4c,0x39,0x72,0x69,0x54,0x53,0x4f,0x45,0x4e,0x4b,0x6e,0x77,0x35,0x6c,0x64,0x46,0x62,0x78,0x65,0x50,0x51,0x6d,0x37,0x63,0x70,0x31,0x34,0x36,0x38,0x6b,0x41,0x5a,0x79,0x67,0x32,0x7a,0x59]),_0x1a0697=0xeb829,_0x1620a8=0x45322756,_0x180ae9=0x45357efe^_0x1620a8,_0x2ea1b9=window[_0xff6763([0x44,0x61,0x74,0x65])][_0xff6763([0x6e,0x6f,0x77])](),_0x971275=_0x1faa03[_0xff6763([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b8527=new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f14c=>{_0x971275[_0xff6763([0x6f,0x6e,0x63,0x65])](_0xff6763([0x72,0x65,0x61,0x64,0x79]),_0x57f14c);}),_0x421329={[_0xff6763([0x6b,0x74,0x79])]:_0xff6763([0x45,0x43]),[_0xff6763([0x75,0x73,0x65])]:_0xff6763([0x73,0x69,0x67]),[_0xff6763([0x63,0x72,0x76])]:_0xff6763([0x50,0x2d,0x32,0x35,0x36]),[_0xff6763([0x78])]:_0xff6763([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]),[_0xff6763([0x79])]:_0xff6763([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]),[_0xff6763([0x61,0x6c,0x67])]:_0xff6763([0x45,0x53,0x32,0x35,0x36])},_0x4ba9d9=_0x971275[_0xff6763([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xff6763([0x67,0x65,0x74])](_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3db0b(){let _0x50a944,_0x42e224=null,_0x149014=null;try{if(_0x4ba9d9==_0xff6763([0x47,0x50,0x4c]))return _0xff6763([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50a944=_0x32582a(),!_0x50a944)return _0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50a944[_0xff6763([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x149014=_0x4aa9cb(_0x50a944[_0xff6763([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50a944[_0xff6763([0x6a,0x74,0x69])])),await _0x52e8ff()?_0x3e5ddb()?_0x493696()?_0xff6763([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50e7e1()?(_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42e224=_0x176998(_0xff6763([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x74,0x72,0x69,0x61,0x6c])&&(_0x42e224=_0x176998(_0xff6763([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x42e224=_0x176998(_0xff6763([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51aed2()):_0xff6763([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xff6763([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54001b){return _0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x493696(){const _0x2069d2=[_0xff6763([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xff6763([0x74,0x72,0x69,0x61,0x6c])][_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ea1b9/0x3e8:0xe10*_0x180ae9;return _0x50a944[_0xff6763([0x65,0x78,0x70])]<_0x2069d2;}function _0x3e5ddb(){const _0x1b8baf=_0x50a944[_0xff6763([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1b8baf)return!0x1;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x2a])))return!0x0;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x52,0x48])))return!0x0;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x52,0x52,0x48]))){if(_0x5f1e4f())return!0x0;if(_0x4d1d2f()||_0x272dd8())return!0x0;}return!0x1;}function _0x50e7e1(){const _0x5e07c9=_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e07c9||0x0==_0x5e07c9[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53db5b}=new URL(window[_0xff6763([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e07c9[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db5b))return!0x0;const _0x1fb7f4=_0x53db5b[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e]));return _0x5e07c9[_0xff6763([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x150c5b=>_0x150c5b[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x2a])))[_0xff6763([0x6d,0x61,0x70])](_0x3dd03c=>_0x3dd03c[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e])))[_0xff6763([0x73,0x6f,0x6d,0x65])](_0x1b996d=>_0x1fb7f4[_0xff6763([0x65,0x76,0x65,0x72,0x79])]((_0x182e03,_0x36c5e5)=>_0x1b996d[_0x36c5e5]===_0x182e03||_0x1b996d[_0x36c5e5]===_0xff6763([0x2a])));}function _0x51aed2(){return _0x42e224&&_0x149014?new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48a268,_0x347052)=>{_0x42e224[_0xff6763([0x74,0x68,0x65,0x6e])](_0x48a268,_0x347052),_0x149014[_0xff6763([0x74,0x68,0x65,0x6e])](_0x3f1e56=>{_0x3f1e56!=_0xff6763([0x56,0x61,0x6c,0x69,0x64])&&_0x48a268(_0x3f1e56);},_0x347052);}):_0x42e224||_0x149014||_0xff6763([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4aa9cb(_0x3f27d0,_0x37cc69){return new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48c950=>{if(_0x18c7e5())return _0x48c950(_0xff6763([0x56,0x61,0x6c,0x69,0x64]));_0x1bfdf1(),_0x971275[_0xff6763([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b3168=!0x1;const _0x4c2e48=_0x45c6ed();function _0x3e4fcd(_0x404afd){return!!_0x404afd&&(typeof _0x404afd===_0xff6763([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x404afd===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x404afd[_0xff6763([0x74,0x68,0x65,0x6e])]===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x404afd[_0xff6763([0x63,0x61,0x74,0x63,0x68])]===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdfaecc(_0x51685d){_0x597dc5(_0x51685d)[_0xff6763([0x74,0x68,0x65,0x6e])](_0x58484d=>{if(!_0x58484d||_0x58484d[_0xff6763([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xff6763([0x6f,0x6b]))return _0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x541f84(_0x71f6c5(_0x4c2e48+_0x37cc69))!=_0x58484d[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xff6763([0x56,0x61,0x6c,0x69,0x64]);})[_0xff6763([0x74,0x68,0x65,0x6e])](_0x544739=>(_0x23a44b(),_0x544739),()=>{const _0x55dbdf=_0x3d4fdc();return null==_0x55dbdf?(_0x23a44b(),_0xff6763([0x56,0x61,0x6c,0x69,0x64])):_0xff6763(_0x2ea1b9-_0x55dbdf>(0x613ea356^_0x1620a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xff6763([0x74,0x68,0x65,0x6e])](_0x48c950)[_0xff6763([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3fd6de=0x4504c9d6^_0x1620a8;function _0x23a44b(){const _0x22566c=_0xff6763([0x6c,0x6c,0x63,0x74,0x2d])+_0x541f84(_0x71f6c5(_0x3f27d0)),_0x3466dc=_0x3dc24c(_0x541f84(window[_0xff6763([0x4d,0x61,0x74,0x68])][_0xff6763([0x63,0x65,0x69,0x6c])](_0x2ea1b9/_0x3fd6de)));window[_0xff6763([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xff6763([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22566c,_0x3466dc);}function _0x3d4fdc(){const _0x1c2369=_0xff6763([0x6c,0x6c,0x63,0x74,0x2d])+_0x541f84(_0x71f6c5(_0x3f27d0)),_0x1ebdcb=window[_0xff6763([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xff6763([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c2369);return _0x1ebdcb?window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dc24c(_0x1ebdcb),0x10)*_0x3fd6de:null;}function _0x597dc5(_0x2a53e7){return new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x278de8,_0x4b9c67)=>{_0x2a53e7[_0xff6763([0x74,0x68,0x65,0x6e])](_0x278de8,_0x4b9c67),window[_0xff6763([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b9c67,0x4533f396^_0x1620a8);});}}_0x971275[_0xff6763([0x6f,0x6e])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54dfdd,_0x50edfa)=>{if(_0x50edfa[0x0]!=_0x3f27d0)return _0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50edfa[0x1]={..._0x50edfa[0x1],[_0xff6763([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c2e48};},{[_0xff6763([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xff6763([0x68,0x69,0x67,0x68])}),_0x971275[_0xff6763([0x6f,0x6e])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498451=>{_0x3e4fcd(_0x498451[_0xff6763([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b3168=!0x0,_0xdfaecc(_0x498451[_0xff6763([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xff6763([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xff6763([0x6c,0x6f,0x77])}),_0x4b8527[_0xff6763([0x74,0x68,0x65,0x6e])](()=>{_0x4b3168||_0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18c7e5(){return _0x971275[_0xff6763([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xff6763([0x76,0x69,0x65,0x77])][_0xff6763([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xff6763([0x61,0x75,0x74,0x6f]);}function _0x1bfdf1(){_0x971275[_0xff6763([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xff6763([0x76,0x69,0x65,0x77])][_0xff6763([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xff6763([0x61,0x75,0x74,0x6f]);}}function _0x176998(_0x2e2e97){const _0x5376eb=[new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165a18=>setTimeout(_0x165a18,0x453b199a^_0x1620a8)),_0x4b8527[_0xff6763([0x74,0x68,0x65,0x6e])](()=>new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23e2bf=>{const _0x27f565=0x45322751^_0x1620a8,_0x259727=_0x1faa03[_0xff6763([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xf5bc4e(){_0x259727[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x27f565&&_0x23e2bf();}_0xf5bc4e(),_0x259727[_0xff6763([0x6f,0x6e])](_0xff6763([0x61,0x64,0x64]),_0xf5bc4e);})),new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11f535=>{function _0x1aff21(){for(const _0x43b4bb in window)if(window[_0xff6763([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xff6763([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x43b4bb))&&window[_0x43b4bb]==_0x1a0697)return _0x11f535();_0x971275[_0xff6763([0x73,0x74,0x61,0x74,0x65])]!=_0xff6763([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xff6763([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1aff21,0x453234de^_0x1620a8);}_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1aff21();})];return window[_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xff6763([0x72,0x61,0x63,0x65])](_0x5376eb)[_0xff6763([0x74,0x68,0x65,0x6e])](()=>_0x2e2e97);}async function _0x156ddc(){if(await _0x4b8527,_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b24de=_0x1faa03[_0xff6763([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1f1c55=_0x1faa03[_0xff6763([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])](_0x1b24de[_0xff6763([0x69,0x64])]),_0x34d327=_0x15dd98(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x34d327[_0xff6763([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b24de['id'],_0x1f1c55?_0x1f1c55['id']:null,!0x0),_0x34d327[_0xff6763([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x34d327[_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x34d327[_0xff6763([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4925c9,void(_0x34d327[_0xff6763([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4925c9);}if(_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1ae611=_0x15dd98(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1ae611[_0xff6763([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1ae611[_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1ae611[_0xff6763([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4925c9,_0x1ae611[_0xff6763([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4925c9;}_0x971275[_0xff6763([0x6d,0x6f,0x64,0x65,0x6c])][_0xff6763([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4925c9,_0x971275[_0xff6763([0x6d,0x6f,0x64,0x65,0x6c])][_0xff6763([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4925c9,_0x971275[_0xff6763([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xff6763([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f1e4f(){return _0x27be7a(_0xff6763([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x15dd98(_0xff6763([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xff6763([0x73,0x74,0x61,0x74,0x65])]==_0xff6763([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d1d2f(){return _0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x272dd8(){return _0x27be7a(_0xff6763([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x18d08f(_0x44143d){const _0x44b5f1=_0x4d6562();_0x971275[_0x44b5f1]=_0xff6763([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])+_0x44143d,_0x44143d[_0xff6763([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xff6763([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4d6562()]=_0x1a0697),_0x44143d!=_0xff6763([0x56,0x61,0x6c,0x69,0x64])&&_0x156ddc();}function _0x4d6562(){const _0x51eb30=window[_0xff6763([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xff6763([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xff6763([0x6e,0x6f,0x77])]())[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xff6763([0x2e]),'');let _0x4b3122=_0xff6763([0x58]);for(let _0x47c4d5=0x0;_0x47c4d5<_0x51eb30[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47c4d5+=0x2){let _0x27ad52=window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51eb30[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47c4d5,_0x47c4d5+0x2));_0x27ad52>=_0x2b232b[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27ad52-=_0x2b232b[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b3122+=_0x2b232b[_0x27ad52];}return _0x4b3122;}function _0x32582a(){const _0x59f4a8=_0x4ba9d9[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e]));if(0x3!=_0x59f4a8[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545585(_0x59f4a8[0x1]);function _0x545585(_0x2f7d36){const _0x64863=_0x6f134a(_0x2f7d36);return _0x64863&&_0x440010()?_0x64863:null;function _0x440010(){const _0x114be0=_0x64863[_0xff6763([0x6a,0x74,0x69])],_0xfa9c38=window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114be0[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x114be0[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33ff4d={..._0x64863,[_0xff6763([0x6a,0x74,0x69])]:_0x114be0[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x114be0[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33ff4d[_0xff6763([0x76,0x63])],_0x71f6c5(_0x33ff4d)==_0xfa9c38;}}}async function _0x52e8ff(){let _0x1f47e6=!0x0;try{const _0x34e267=_0x4ba9d9[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e])),[_0x35d5f1,_0x26ce7c,_0x368afa]=_0x34e267;return _0x130c8c(_0x35d5f1),await _0x15ae60(_0x35d5f1,_0x26ce7c,_0x368afa),_0x1f47e6;}catch(_0x426c0e){return!0x1;}function _0x130c8c(_0x45faf8){const _0x148ae7=_0x6f134a(_0x45faf8);_0x148ae7&&_0x148ae7[_0xff6763([0x61,0x6c,0x67])]==_0xff6763([0x45,0x53,0x32,0x35,0x36])||(_0x1f47e6=!0x1);}async function _0x15ae60(_0x58d1e5,_0x29038c,_0x2d3c77){const _0x494603=window[_0xff6763([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xff6763([0x66,0x72,0x6f,0x6d])](_0x3e15aa(_0x2d3c77),_0x3a01d4=>_0x3a01d4[_0xff6763([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dd59d=new window[(_0xff6763([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xff6763([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58d1e5+_0xff6763([0x2e])+_0x29038c),_0x199e56=window[_0xff6763([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xff6763([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x199e56)return;const _0x32c7cf=await _0x199e56[_0xff6763([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xff6763([0x6a,0x77,0x6b]),_0x421329,{[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x45,0x43,0x44,0x53,0x41]),[_0xff6763([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xff6763([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x199e56[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x45,0x43,0x44,0x53,0x41]),[_0xff6763([0x68,0x61,0x73,0x68])]:{[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32c7cf,_0x494603,_0x4dd59d)||(_0x1f47e6=!0x1);}}function _0x6f134a(_0x39cb7f){return _0x39cb7f[_0xff6763([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xff6763([0x65,0x79]))?JSON[_0xff6763([0x70,0x61,0x72,0x73,0x65])](_0x3e15aa(_0x39cb7f)):null;}function _0x3e15aa(_0x2f7872){return window[_0xff6763([0x61,0x74,0x6f,0x62])](_0x2f7872[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xff6763([0x2b]))[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xff6763([0x2f])));}function _0x71f6c5(_0x191f8c){let _0x5165f7=0x1505;function _0x1b7acd(_0x212d0d){for(let _0x1f29cf=0x0;_0x1f29cf<_0x212d0d[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f29cf++){const _0x100bbe=_0x212d0d[_0xff6763([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f29cf);_0x5165f7=(_0x5165f7<<0x5)+_0x5165f7+_0x100bbe,_0x5165f7&=_0x5165f7;}}function _0x157513(_0x356efd){Array[_0xff6763([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x356efd)?_0x356efd[_0xff6763([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x157513):_0x356efd&&typeof _0x356efd==_0xff6763([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xff6763([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x356efd)[_0xff6763([0x73,0x6f,0x72,0x74])]()[_0xff6763([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x818b34,_0x24dc53])=>{_0x1b7acd(_0x818b34),_0x157513(_0x24dc53);}):_0x1b7acd(window[_0xff6763([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x356efd));}return _0x157513(_0x191f8c),_0x5165f7>>>0x0;}function _0x541f84(_0x14434c){return _0x14434c[_0xff6763([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xff6763([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xff6763([0x30]));}function _0x3dc24c(_0x4f17e4){return _0x4f17e4[_0xff6763([0x73,0x70,0x6c,0x69,0x74])]('')[_0xff6763([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xff6763([0x6a,0x6f,0x69,0x6e])]('');}function _0x27be7a(_0x208b3a){return _0x971275[_0xff6763([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xff6763([0x68,0x61,0x73])](_0x208b3a);}function _0x15dd98(_0x3202e7){return _0x971275[_0xff6763([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xff6763([0x67,0x65,0x74])](_0x3202e7);}function _0x4925c9(){}function _0xff6763(_0x2a1227){return _0x2a1227['map'](_0x24b4d7=>String['fromCharCode'](_0x24b4d7))['join']('');}_0x18d08f(await _0x3db0b());}(this);}['createRevision'](_0x3b0cd9){const _0xed4c41=this['editor']['plugins']['get']('Users');return new a({'id':_0x3b0cd9['id'],'name':_0x3b0cd9['name'],'creator':_0x3b0cd9['creatorId']?_0xed4c41['getUser'](_0x3b0cd9['creatorId']):null,'diffData':_0x3b0cd9['diffData']||_0x3b0cd9['data'],'authors':_0x3b0cd9['authorsIds']['map'](_0x51848e=>_0xed4c41['getUser'](_0x51848e)),'createdAt':new Date(_0x3b0cd9['createdAt']),'attributes':_0x3b0cd9['attributes'],'fromVersion':_0x3b0cd9['fromVersion'],'toVersion':_0x3b0cd9['toVersion']});}['addRevision'](_0x38c7c1,_0x2f1a5f=0x0){this['_revisions']['add'](_0x38c7c1,_0x2f1a5f);}['getRevision'](_0x3410b4){return this['_revisions']['get'](_0x3410b4);}['getRevisions'](_0x37f779={'toJSON':!0x1}){const _0x1aa772=Array['from'](this['_revisions']);return _0x1aa772['reverse'](),_0x37f779['toJSON']?_0x1aa772['map'](_0x1e497d=>_0x1e497d['toJSON']()):_0x1aa772;}['getIndex'](_0x7adb9){return this['_revisions']['getIndex'](_0x7adb9);}['getEarlierVisibleRevision'](_0xbdd507){const [,_0x463b6d]=this['getRevisionsIterator'](_0xbdd507,{'direction':'earlier'});return _0x463b6d;}['getLaterVisibleRevision'](_0x21a5fe){const [,_0xafeded]=this['getRevisionsIterator'](_0x21a5fe,{'direction':'later'});return _0xafeded;}['getRevisionsInDiff'](_0x481a6b){const _0x50d117=[];for(const _0x420bde of this['getRevisionsIterator'](_0x481a6b['newRevisionId']))if(_0x50d117['push'](_0x420bde),_0x420bde['id']===_0x481a6b['oldRevisionId'])break;return _0x50d117;}*['getRevisionsIterator'](_0x1d6217,{direction:_0x25ed2f='earlier',filter:_0x3ac180=()=>!0x0}={}){const _0xacf1e5='earlier'===_0x25ed2f?0x1:-0x1;let _0x2657d6=this['_revisions']['get'](_0x1d6217),_0x310944=this['getIndex'](_0x2657d6);for(yield _0x2657d6;_0x2657d6;){if(_0x310944+=_0xacf1e5,_0x2657d6=this['getRevision'](_0x310944),!_0x2657d6)return;_0x3ac180(_0x2657d6)&&(yield _0x2657d6);}}}function R(_0x398b14,_0x5ef7fa,_0xfe12d9){const t=_0x398b14['t'];switch(_0x5ef7fa){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'},_0xfe12d9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xfe12d9);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':_0x34a5a1,'a':_0x598c3e,'e':_0x29e244,'r':_0x38a7d8,'u':_0x196df5};class l extends _0x5a5f64{['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[_0x13a039,j,_0xa8dbbf];}constructor(_0x1e65ec){super(_0x1e65ec),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 _0x2f6cf6=_0x45c6ed();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2f6cf6},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 _0xc199e5=this['repository']['getRevision'](0x0),_0x146a9d=_0xc199e5&&null===_0xc199e5['creator']?_0xc199e5:null;if(this['_continueCurrentRevision']=!!_0x146a9d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf6f992=this['_source']['getCurrentRevisionId'](),_0x55aff8=this['repository']['getRevision'](_0xf6f992);if(_0x55aff8)this['_startingVersion']=_0x55aff8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x51350d=this['_source']['history']['_operations']['find'](_0x52fefa=>!_0x52fefa['_isInit']),_0x3a5151=_0x51350d?_0x51350d['baseVersion']:this['_source']['history']['version'];_0xc199e5?(_0xc199e5['toVersion']<_0x3a5151&&_0xc199e5['_update']({'toVersion':_0x3a5151}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id'],this['_startingVersion']=_0x146a9d['fromVersion']):(this['_startingVersion']=_0xc199e5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a5151,this['_continueCurrentRevision']=!0x1);}}else _0x146a9d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x146a9d['toVersion'],this['editor']['model']['document']['history']['version']),_0x146a9d['fromVersion']===_0x146a9d['toVersion']?(0x0!==_0x146a9d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id'],this['_startingVersion']=_0x146a9d['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',_0x50e9e8=>!_0x50e9e8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x514db6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb35ab;for(const _0x18567e in _0x514db6){const _0x368bf4=_0x18567e,_0x3944e6=_0x514db6[_0x368bf4];if('revisionHistoryLicenseKeyValid'==_0x3944e6||'revisionHistoryLicenseKeyInvalid'==_0x3944e6||'revisionHistoryLicenseKeyExpired'==_0x3944e6||'revisionHistoryLicenseKeyDomainLimit'==_0x3944e6||'revisionHistoryLicenseKeyNotAllowed'==_0x3944e6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3944e6||'revisionHistoryLicenseKeyTrialLimit'==_0x3944e6||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3944e6||'revisionHistoryLicenseKeyUsageLimit'==_0x3944e6){delete _0x514db6[_0x368bf4],_0xb35ab=_0x3944e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xb35ab&&_0x514db6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xb35ab&&_0x514db6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xb35ab&&_0x514db6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xe59fdf=this['repository']['getRevision'](0x0),_0x2fda2b=await this['getRevisionDocumentData'](_0xe59fdf),_0x1dbfc9=await this['getRevisionRootsAttributes'](_0xe59fdf);this['_replaceEditorDataWithRevisionData'](_0x2fda2b,_0x1dbfc9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x59d9e7){this['_source']=_0x59d9e7;}async['update'](){const _0x4748ef=await this['_source']['getLatestVersion']();if(_0x4748ef>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5cc124=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4748ef});_0x5cc124['authors']=_0x5cc124['authorsIds']['map'](_0x4513fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x4513fb)),this['currentRevision']['_update'](_0x5cc124);}}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'](_0x1651ef={},_0x31885b=null){const _0x53feed=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31885b>this['currentRevision']['toVersion']&&(_0x31885b=null),null===_0x31885b&&(_0x31885b=await this['_source']['getLatestVersion']());const _0x493cfd=this['_getFromVersion'](_0x31885b),_0x17d185=this['buildRevisionData']({'from':_0x493cfd,'to':_0x31885b});if(this['currentRevision']['toVersion']<_0x31885b){const _0x48bf3a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x31885b,'to':_0x31885b});_0x48bf3a['authors']=[],_0x48bf3a['authorsIds']=[],_0x48bf3a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x48bf3a,!0x0),delete _0x48bf3a['authors'],_0x53feed['push'](_0x48bf3a);}_0x1651ef['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1651ef['name']=_0x1651ef['name']||null,_0x1651ef['id']=_0x1651ef['id']||_0x45c6ed(),_0x1651ef={..._0x1651ef,..._0x17d185};const _0x2dd961=this['addRevisionData'](_0x1651ef);_0x53feed['push'](_0x1651ef);const _0x476f68=this['repository']['getIndex'](_0x2dd961);if(0x0!==_0x476f68){const _0x1f2331=this['repository']['getRevision'](_0x476f68-0x1);if(_0x1f2331['fromVersion']!==_0x31885b){const _0x4b36ad=this['_revisionDataBuilder']['getData'](_0x31885b,_0x1f2331['toVersion']),_0x5d3974={'id':_0x1f2331['id'],'diffData':_0x4b36ad['diffData'],'authorsIds':_0x4b36ad['authorsIds'],'authors':_0x4b36ad['authorsIds']['map'](_0x3b7644=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b7644)),'fromVersion':_0x31885b};_0x1f2331===this['currentRevision']&&(_0x5d3974['createdAt']=new Date(_0x1651ef['createdAt']['getTime']()+0xa)),_0x1f2331['_update'](_0x5d3974,!0x0),delete _0x5d3974['authors'],_0x53feed['push'](_0x5d3974);}}if(this['adapter']){for(const _0x54ec41 of _0x53feed)this['_bufferUpdate'](_0x54ec41['id'],_0x54ec41,!0x0);this['sendBufferedUpdates']();}return _0x2dd961;}['addRevisionData'](_0x5b7d6a){const _0x1e6d9d=this['repository']['createRevision'](_0x5b7d6a);return this['adapter']&&_0x1e6d9d['on']('_update',(_0x51558e,_0x43abe2,_0x48273b)=>{_0x48273b||(this['_bufferUpdate'](_0x43abe2['id'],_0x43abe2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e6d9d,this['_findInsertionIndex'](_0x1e6d9d)),_0x1e6d9d;}async['getRevisionDocumentData'](_0x487601){await this['_loadRevisionData'](_0x487601);const _0x111d81={};for(const _0x45ab74 in _0x487601['diffData']){if(_0x487601['diffData'][_0x45ab74]['attachChange']&&!_0x487601['diffData'][_0x45ab74]['attachChange']['isAttached'])continue;const _0x3139d8=this['_removeRevisionMarkers'](JSON['parse'](_0x487601['diffData'][_0x45ab74]['insertions'])),_0x3774fb=this['editor']['editing']['view']['document'],_0x2140da=new _0x29157b(_0x3774fb,_0x3139d8['map'](_0x4f7cd5=>V(_0x4f7cd5,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x111d81[_0x45ab74]=this['editor']['data']['processor']['toData'](_0x2140da),this['editor']['data']['processor']['useFillerType']('default');}return _0x111d81;}async['getRevisionRootsAttributes'](_0x17741a){await this['_loadRevisionData'](_0x17741a);const _0xbb6214={};for(const _0x48bdef in _0x17741a['diffData'])_0x17741a['diffData'][_0x48bdef]['attachChange']&&!_0x17741a['diffData'][_0x48bdef]['attachChange']['isAttached']||(_0xbb6214[_0x48bdef]=_0x17741a['diffData'][_0x48bdef]['attributesAfter']||{});return _0xbb6214;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x228b63=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2fca85=0x0;_0x2fca85<_0x228b63['length'];_0x2fca85++){const _0x4562ae=_0x228b63[_0x2fca85];let _0xfdb3db=!0x1;for(const _0x290010 of Object['keys'](_0x4562ae))void 0x0===_0x4562ae[_0x290010]?delete _0x4562ae[_0x290010]:'id'!==_0x290010&&(_0xfdb3db=!0x0);_0xfdb3db||(_0x228b63[_0x2fca85]=null);}if(_0x228b63=_0x228b63['filter'](_0x1c6041=>null!==_0x1c6041),!_0x228b63['length'])return;for(let _0x5d3c43=0x0;_0x5d3c43<_0x228b63['length'];_0x5d3c43++){const _0x2bc3b0=_0x228b63[_0x5d3c43];void 0x0!==_0x2bc3b0['fromVersion']&&void 0x0===_0x2bc3b0['toVersion']&&(_0x2bc3b0['toVersion']=this['repository']['getRevision'](_0x2bc3b0['id'])['toVersion']),void 0x0!==_0x2bc3b0['toVersion']&&void 0x0===_0x2bc3b0['fromVersion']&&(_0x2bc3b0['fromVersion']=this['repository']['getRevision'](_0x2bc3b0['id'])['fromVersion']);}const _0x41ab06=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x228b63,_0x41ab06)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x177e0e=>{if(_0x177e0e){for(const _0x42b944 of _0x177e0e)this['setRevisionData']({'id':_0x42b944['id'],'createdAt':_0x42b944['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x974032,_0x158e1b){let _0x48bf90=this['editor']['config']['get']('initialData'),_0x89a535=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48bf90){_0x48bf90={};for(const _0x221223 of this['editor']['model']['document']['getRootNames']())_0x48bf90[_0x221223]='';}if('string'==typeof _0x48bf90&&(_0x48bf90={'main':_0x48bf90}),void 0x0===_0x89a535){_0x89a535={};for(const _0x34d412 of this['editor']['model']['document']['getRootNames']())_0x89a535[_0x34d412]={};}let _0x596621=!0x1;const _0x534b81=Object['keys'](_0x48bf90),_0x5be602=Object['keys'](_0x974032);for(const _0x3808e2 of _0x534b81){if(_0x48bf90[_0x3808e2]!==_0x974032[_0x3808e2]&&''!==_0x48bf90[_0x3808e2]['trim']()){_0x596621=!0x0;break;}if(!_0x217429(_0x89a535[_0x3808e2],_0x158e1b[_0x3808e2])&&Object['keys'](_0x89a535[_0x3808e2])['length']>0x0){_0x596621=!0x0;break;}}_0x596621||(_0x596621=_0x5be602['some'](_0x3ebc34=>!this['editor']['model']['document']['getRoot'](_0x3ebc34))),_0x596621&&_0x1f749e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48bf90,'editorRootsAttributes':_0x89a535,'revisionData':_0x974032,'revisionRootsAttributes':_0x158e1b}),this['editor']['config']['set']('initialData',_0x974032),this['editor']['config']['set']('rootsAttributes',_0x158e1b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24ed12=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24ed12['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x41d92c){const _0x3cf97a=this['repository']['getRevisions']();_0x3cf97a['reverse']();let _0x3415a1=0x0;for(;_0x3415a1<_0x3cf97a['length'];){const _0x37aa1b=_0x3cf97a[_0x3415a1];if(_0x37aa1b===this['currentRevision']){_0x3415a1++;continue;}if(_0x37aa1b['id']===this['_initialRevisionId'])break;const _0x42e326=_0x41d92c['toVersion']-_0x37aa1b['toVersion']||_0x41d92c['fromVersion']-_0x37aa1b['fromVersion'];if(_0x42e326>0x0)break;if(_0x42e326<0x0)_0x3415a1++;else{if(!_0x41d92c['creator']&&_0x37aa1b['creator'])break;if(_0x37aa1b['creator']||!_0x41d92c['creator']){if(_0x41d92c['createdAt']>_0x37aa1b['createdAt'])break;_0x3415a1++;}else _0x3415a1++;}}return _0x3415a1;}['setRevisionData'](_0xe442ed){const _0x52f1f7=this['repository']['getRevision'](_0xe442ed['id']);if(_0xe442ed['createdAt']&&(_0xe442ed['createdAt']=new Date(_0xe442ed['createdAt'])),_0xe442ed['authorsIds']){const _0x11ca40=this['editor']['plugins']['get']('Users');_0xe442ed['authors']=_0xe442ed['authorsIds']['map'](_0x12b623=>_0x11ca40['getUser'](_0x12b623));}_0x52f1f7['_update'](_0xe442ed,!0x0);}['buildRevisionData']({revision:_0x1ecb18=null,from:_0x2aba00=null,to:_0x29db43=null}){_0x2aba00=null!==_0x2aba00?_0x2aba00:_0x1ecb18['fromVersion'],_0x29db43=null!==_0x29db43?_0x29db43:_0x1ecb18['toVersion'];const _0x437a04=this['_revisionDataBuilder']['getData'](_0x2aba00,_0x29db43),_0x300bae={'diffData':_0x437a04['diffData'],'authorsIds':_0x437a04['authorsIds'],'fromVersion':_0x2aba00,'toVersion':_0x29db43};if(!_0x1ecb18||_0x29db43!==_0x1ecb18['toVersion']){const _0x2bc758=_0x29db43-0x1,_0x3f2861=this['_source']['history']['getOperation'](_0x2bc758);_0x300bae['createdAt']=_0x3f2861&&_0x3f2861['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2aba00===this['_loadedStateData']['fromVersion']){for(const _0x37de77 of this['_loadedStateData']['authors'])_0x300bae['authorsIds']['includes'](_0x37de77['id'])||_0x300bae['authorsIds']['push'](_0x37de77['id']);}return _0x300bae;}['_loadRevisionData'](_0xdccdf4){if(!_0xdccdf4||_0xdccdf4['diffData'])return Promise['resolve']();{const _0x389952=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x389952,'revisionId':_0xdccdf4['id']})['then'](_0x13114b=>{_0xdccdf4['diffData']=_0x13114b['diffData'];});}}['_bufferUpdate'](_0x12fe06,_0x2d2a5a,_0xfdb842){if(this['_bufferedUpdates']['has'](_0x12fe06)){const _0x3c790c=this['_bufferedUpdates']['get'](_0x12fe06);_0x2d2a5a=_0xfdb842?{..._0x3c790c,..._0x2d2a5a}:{..._0x2d2a5a,..._0x3c790c};}this['_bufferedUpdates']['set'](_0x12fe06,_0x2d2a5a);}['_getFromVersion'](_0x5a9e96){const _0x27f8e6=this['repository']['getRevisions']();_0x27f8e6['reverse'](),_0x27f8e6['shift']();const _0x4c1099=_0x27f8e6['find'](_0x602c6e=>_0x602c6e['toVersion']<=_0x5a9e96)['toVersion'];return _0x4c1099<this['_startingVersion']?this['_startingVersion']:_0x4c1099;}['_createInitialRevision'](_0x9ba8ed){const _0x245197=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x245197)this['_initialRevisionId']=_0x245197['id'];else{const _0x42da90=!this['editor']['model']['document']['roots']['find'](_0x579dd5=>this['editor']['model']['hasContent'](_0x579dd5)),_0x4c5f62=this['editor']['plugins']['get']('Users')['me']['id'],_0x1312d8=R(this['editor']['locale'],_0x42da90?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x9ba8ed,'to':_0x9ba8ed,'id':this['_initialRevisionId'],'name':_0x1312d8,'creatorId':_0x4c5f62});}}['_createCurrentRevision'](_0x1147c6){const _0x3dc5b2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3dc5b2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1147c6,'to':_0x1147c6,'id':_0x3dc5b2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1e5f80,from:_0x5842ac,to:_0xa0b246,creatorId:_0x17e6b1,id:_0x5c9c91}){const _0x4387bb=this['buildRevisionData']({'from':_0x5842ac,'to':_0xa0b246});_0x4387bb['name']=_0x1e5f80,_0x4387bb['creatorId']=_0x17e6b1,_0x4387bb['id']=_0x5c9c91;const _0x4e8a2b=this['addRevisionData'](_0x4387bb);return this['adapter']&&this['_bufferUpdate'](_0x4387bb['id'],_0x4387bb,!0x0),_0x4e8a2b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4920ea){return(_0x4920ea=_0x4920ea['filter'](_0x40c012=>!_0x40c012['name']||'revision-start'!==_0x40c012['name']&&'revision-end'!==_0x40c012['name']))['forEach'](_0x5c40a4=>{'string'!=typeof _0x5c40a4&&(_0x5c40a4['children']=this['_removeRevisionMarkers'](_0x5c40a4['children']),_0x5c40a4['attributes']=_0x5c40a4['attributes']['filter'](_0x1df344=>!_0x1df344[0x0]['startsWith']('data-revision-')));}),_0x4920ea;}}function V(_0x54e4f0,_0x547eb8){const _0x5a9f53=_0x547eb8['editing']['view']['document'];if('string'==typeof _0x54e4f0)return new _0x580579(_0x5a9f53,_0x54e4f0);{const _0x438c0b=_0x54e4f0['children']['map'](_0x31ebb6=>V(_0x31ebb6,_0x547eb8));return new(C[_0x54e4f0['type']]||_0x9fe0f9)(_0x5a9f53,_0x54e4f0['name'],_0x54e4f0['attributes'],_0x438c0b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3d0988){this['editor']=_0x3d0988,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'](_0x2e995d){this['source']=_0x2e995d;const _0x1347b3=new Map(),_0x43ef1f=new Map(),_0x9618b0=this['editor']['model']['document']['roots']['map'](_0x1d3730=>_0x1d3730['rootName']);for(const _0x46f26c of _0x9618b0){const _0x12c692=this['editor']['model']['document']['getRoot'](_0x46f26c),_0x3be5d1=F(_0x12c692);_0x1347b3['set'](_0x46f26c,_0x3be5d1),_0x43ef1f['set'](_0x46f26c,Object['fromEntries'](_0x12c692['getAttributes']()));}const _0x5c1801=Array['from'](this['editor']['model']['markers'])['map'](_0xcbab7c=>[_0xcbab7c['name'],_0xcbab7c['getRange']()]),_0x1d59ec=this['source']['version'];this['_saveMetaData'](_0x1d59ec,_0x1347b3,_0x5c1801,_0x43ef1f),this['_startingRevisionId']=this['_revisionId'];const _0x1909e2=new Map(),_0x543117=new Map();for(const _0x46aab0 of _0x9618b0){const _0x3e0b8e=B(_0x46aab0);_0x1909e2['set'](_0x46aab0,_0x3e0b8e),_0x543117['set'](_0x46aab0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1909e2,[],_0x543117);}['getData'](_0xe07e70,_0x4326d6){if(this['_lastFrom']===_0xe07e70&&this['_lastTo']<=_0x4326d6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4326d6,!0x0);else{if(!this['_savedMetaData']['has'](_0xe07e70)){const _0x189911=this['_getPreviousFrom'](_0xe07e70);this['_calculateMetaData'](_0x189911,_0xe07e70,!0x1);}this['_calculateMetaData'](_0xe07e70,_0x4326d6,!0x0);}return this['_lastFrom']=_0xe07e70,this['_lastTo']=_0x4326d6,this['_getState']();}['loadState'](_0x54bd85){this['_reset'](),this['_lastFrom']=_0x54bd85['fromVersion'],this['_lastTo']=_0x54bd85['toVersion'];for(const _0x40f569 in _0x54bd85['diffData']){const _0x303097=_0x54bd85['diffData'][_0x40f569]['attachChange'],_0x12086b=_0x1fbbd4(_0x54bd85['diffData'][_0x40f569]['attributesBefore'])||{},_0x2fc0a5=this['_makeModelFromViewString'](_0x54bd85['diffData'][_0x40f569]['deletions']);_0x2fc0a5['rootName']=_0x40f569,_0x2fc0a5['_isAttached']=!_0x303097||!_0x303097['isAttached'],_0x2fc0a5['isAttached']=()=>_0x2fc0a5['_isAttached'],this['_baseRoots']['set'](_0x40f569,_0x2fc0a5),this['_baseRootsAttributes']['set'](_0x40f569,_0x12086b),_0x303097&&this['_touchedRoots']['set'](_0x40f569,_0x303097);const _0x52b847=this['_makeIdsRoot'](_0x2fc0a5);this['_baseIdsRoots']['set'](_0x40f569,_0x52b847);for(const [_0x43dfca,_0xcd4df2]of _0x2fc0a5['markers']){if(!_0x43dfca['startsWith']('revision:'))continue;const _0x38fdb2=_0x43dfca['split'](':')[0x2];for(const _0x4b966b of _0xcd4df2['getWalker']({'singleCharacters':!0x0})){const _0x5dbb63=this['_getVidAttributeName'](_0x4b966b),_0x144e4b='elementEnd'==_0x4b966b['type']?_0x4b966b['previousPosition']['path']['slice'](0x0,-0x1):_0x4b966b['previousPosition']['path'],_0x5e3c0a=_0x52b847['getNodeByPath'](_0x144e4b)['getAttribute'](_0x5dbb63);this['_touched']['set'](_0x5e3c0a,{'userId':_0x38fdb2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x382784=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54e00d=>!this['_touched']['has'](_0x54e00d));let _0x51ecea=0x0;const _0x31e3f0=new Map();for(const _0x2c067e in _0x54bd85['diffData']){const _0x5526bb=_0x54bd85['diffData'][_0x2c067e]['attachChange'],_0x57741f=_0x1fbbd4(_0x54bd85['diffData'][_0x2c067e]['attributesAfter'])||{},_0x1f78a8=this['_makeModelFromViewString'](_0x54bd85['diffData'][_0x2c067e]['insertions']);_0x1f78a8['rootName']=_0x2c067e,_0x1f78a8['_isAttached']=!_0x5526bb||_0x5526bb['isAttached'],_0x1f78a8['isAttached']=()=>_0x1f78a8['_isAttached'],this['_diffRoots']['set'](_0x2c067e,_0x1f78a8),this['_diffRootsAttributes']['set'](_0x2c067e,_0x57741f);const _0x32694e=this['_makeIdsRoot'](_0x1f78a8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2c067e,_0x32694e),_0x31e3f0['set'](_0x2c067e,_0x1f78a8['isAttached']()?_0x57741f:{});for(const [_0x57b4c3,_0x383ac2]of _0x1f78a8['markers']){if(!_0x57b4c3['startsWith']('revision:'))continue;const _0x5236f2=_0x57b4c3['split'](':')[0x2];for(const _0x24461d of _0x383ac2['getWalker']({'singleCharacters':!0x0})){const _0x244cb9=this['_getVidAttributeName'](_0x24461d),_0x3407d2=this['_revisionId']++,_0x3d8b4d='elementEnd'==_0x24461d['type']?_0x24461d['previousPosition']['path']['slice'](0x0,-0x1):_0x24461d['previousPosition']['path'];_0x32694e['getNodeByPath'](_0x3d8b4d)['_setAttribute'](_0x244cb9,_0x3407d2),this['_touched']['set'](_0x3407d2,{'userId':_0x5236f2});}}for(const _0x59dee0 of this['editor']['model']['createRangeIn'](_0x1f78a8)['getWalker']({'singleCharacters':!0x0})){const _0x49ebed=this['_getVidAttributeName'](_0x59dee0),_0x83e81e='elementEnd'==_0x59dee0['type']?_0x59dee0['previousPosition']['path']['slice'](0x0,-0x1):_0x59dee0['previousPosition']['path'],_0x51242a=_0x32694e['getNodeByPath'](_0x83e81e);_0x51242a['getAttribute'](_0x49ebed)>0x0||_0x51242a['_setAttribute'](_0x49ebed,_0x382784[_0x51ecea++]);}for(const [_0x287f64,_0x1977cd]of _0x1f78a8['markers'])_0x287f64['startsWith']('revision:')||this['_markers']['set'](_0x287f64,_0x1977cd);}const _0x33aa06=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x33aa06),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33aa06,0x1));const _0x2ce5e3=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2ce5e3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2ce5e3,0x1));const _0x5cd82f=Array['from'](this['_diffRoots'])['map'](([_0x3ef481,_0x118d56])=>[_0x3ef481,F(_0x118d56)]);this['_saveMetaData'](this['_lastTo'],_0x5cd82f,this['_markers'],_0x31e3f0);}['_makeModelFromViewString'](_0x4b12ed){const _0x5a550b=JSON['parse'](_0x4b12ed),_0x2cf673=this['editor']['editing']['view']['document'],_0x1a0190=new _0x29157b(_0x2cf673,_0x5a550b['map'](_0x46b8be=>V(_0x46b8be,this['editor'])));return this['editor']['data']['toModel'](_0x1a0190);}['_saveMetaData'](_0x2a42ba,_0x4a5ecf,_0x44ebc7,_0x46faa3){const _0x67550a=new Map(_0x4a5ecf),_0x41e418=new Map(_0x1fbbd4(_0x46faa3)),_0x5ac75d=new Map();for(const [_0xca5da3,_0x2c0088]of _0x44ebc7)_0x5ac75d['set'](_0xca5da3,{'start':_0x2c0088['start']['clone'](),'end':_0x2c0088['end']['clone'](),'rootName':_0x2c0088['root']['rootName']});this['_savedMetaData']['set'](_0x2a42ba,{'roots':_0x67550a,'markers':_0x5ac75d,'rootsAttributes':_0x41e418});}['_removeMetaData'](_0x1165db){this['_savedMetaData']['delete'](_0x1165db);}['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'](_0x6852fd,_0x3e6043=null){let _0x2457eb=null;_0x6852fd['is']('documentFragment')||(_0x2457eb=new ft(_0x6852fd['name'],{'vid_start':null===_0x3e6043?this['_revisionId']++:_0x3e6043++}));const _0x4c3921=[];for(const _0x40ea8e of _0x6852fd['getChildren']())if(_0x40ea8e['is']('element')){_0x4c3921['push'](this['_makeIdsRoot'](_0x40ea8e,_0x3e6043));const _0x1c8ad0=_0x4c3921[_0x4c3921['length']-0x1];null!==_0x3e6043&&(_0x3e6043=_0x1c8ad0['is']('element','$text')?_0x1c8ad0['getAttribute']('vid')+0x1:_0x1c8ad0['getAttribute']('vid_end')+0x1);}else{for(let _0x1745e6=0x0;_0x1745e6<_0x40ea8e['offsetSize'];_0x1745e6++)_0x4c3921['push'](new ft('$text',{'vid':null===_0x3e6043?this['_revisionId']++:_0x3e6043++}));}if(_0x6852fd['is']('documentFragment')){const _0x5495a2=B(_0x6852fd['rootName']);return _0x5495a2['_insertChild'](0x0,_0x4c3921),_0x5495a2;}return _0x2457eb['_setAttribute']('vid_end',null===_0x3e6043?this['_revisionId']++:_0x3e6043++),_0x2457eb['_insertChild'](0x0,_0x4c3921),_0x2457eb;}['_calculateMetaData'](_0x2608ee,_0x20e39c,_0x14abe6){this['_reset']();const {roots:_0x220ff5,markers:_0x5245d6,rootsAttributes:_0x477e1a}=this['_savedMetaData']['get'](_0x2608ee);this['_baseRoots']=new Map(_0x220ff5),this['_baseRootsAttributes']=new Map(_0x1fbbd4(_0x477e1a));for(const [_0x5208b5,_0x7e488]of this['_baseRoots'])if('$graveyard'!==_0x5208b5&&(this['_diffRoots']['set'](_0x5208b5,F(_0x7e488)),this['_diffRootsAttributes']=new Map(_0x1fbbd4(_0x477e1a)),_0x14abe6)){const _0x2d6c44=this['_revisionId'];this['_idsRoots']['set'](_0x5208b5,this['_makeIdsRoot'](_0x7e488)),this['_baseIdsRoots']['set'](_0x5208b5,this['_makeIdsRoot'](_0x7e488,_0x2d6c44));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x14abe6&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x31b127,_0x16a6d3]of _0x5245d6){const _0x2a8ba7=this['_baseRoots']['get'](_0x16a6d3['rootName']),_0x467949=this['_diffRoots']['get'](_0x16a6d3['rootName']),_0x1547b2=new vt(this['_fixPosition'](_0x16a6d3['start'],_0x2a8ba7),this['_fixPosition'](_0x16a6d3['end'],_0x2a8ba7)),_0x1f3937=this['_fixRange'](_0x1547b2,_0x467949);_0x2a8ba7['markers']['set'](_0x31b127,_0x1547b2),this['_markers']['set'](_0x31b127,_0x1f3937);}this['_applyOperations'](_0x2608ee,_0x20e39c,_0x14abe6);}['_applyOperations'](_0x346cd6,_0x23e23b,_0x35f139){for(const _0x185dc7 of this['source']['getOperations'](_0x346cd6,_0x23e23b))this['_handleOperation'](_0x185dc7,_0x35f139);for(const _0x4fa5aa of this['_diffRoots']['values']())_0x4fa5aa['markers']['clear']();for(const [_0x14af02,_0x11682a]of this['_markers']){this['_diffRoots']['get'](_0x11682a['root']['rootName'])['markers']['set'](_0x14af02,_0x11682a['clone']());}const _0x4f166c=new Map(),_0x24453a=new Map();for(const [_0x5eceb8,_0x9710a3]of this['_diffRoots'])_0x4f166c['set'](_0x5eceb8,F(_0x9710a3)),_0x24453a['set'](_0x5eceb8,this['_diffRootsAttributes']['get'](_0x5eceb8));this['_saveMetaData'](_0x23e23b,_0x4f166c,this['_markers'],_0x24453a);}['_getPreviousFrom'](_0x5b1be8){const _0x7c5602=Array['from'](this['_savedMetaData']['keys']());_0x7c5602['sort']((_0x617aaa,_0x10a742)=>_0x617aaa-_0x10a742),_0x7c5602['reverse']();for(const _0x554759 of _0x7c5602)if(_0x554759<_0x5b1be8)return _0x554759;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12901e,_0x88668c){const _0x548d17=Array['from'](_0x88668c['markers'])['map'](([_0x501b52,_0x1cb914])=>[_0x501b52,this['_fixRange'](_0x1cb914,_0x12901e)]);_0x12901e['markers']=new Map(_0x548d17);}['_transformMarkers'](_0x2ba555){for(const _0x268499 of this['_markers']['values']()){const _0x318478=_0x268499['getTransformedByOperation'](_0x2ba555),_0x50ad36=vt['_createFromRanges'](_0x318478);_0x268499['start']=_0x50ad36['start'],_0x268499['end']=_0x50ad36['end'];}}['_handleOperation'](_0x630ef1,_0x10fa64){if('addRoot'!=_0x630ef1['type']&&'detachRoot'!=_0x630ef1['type']){if('insert'==_0x630ef1['type']){const _0x18a918=_0x630ef1['position']['root']['rootName'];this['_diffRoots']['has'](_0x18a918)||(this['_diffRoots']['set'](_0x18a918,B(_0x18a918,!0x0)),this['_diffRootsAttributes']['set'](_0x18a918,{}),_0x10fa64&&this['_idsRoots']['set'](_0x18a918,B(_0x18a918,!0x0)));}else{if('addRootAttribute'==_0x630ef1['type']||'removeRootAttribute'==_0x630ef1['type']||'changeRootAttribute'==_0x630ef1['type'])return void this['_handleRootAttributeOperation'](_0x630ef1);'marker'==_0x630ef1['type']&&this['_handleMarkerOperation'](_0x630ef1);}if('marker'!==_0x630ef1['type']){const _0x2464f7=this['_cloneOperation'](_0x630ef1,this['_diffRoots']);_0x2464f7['_execute'](),this['_transformMarkers'](_0x2464f7);}if(_0x10fa64)switch(_0x630ef1['type']){case'insert':this['_handleInsertOperation'](_0x630ef1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x630ef1);break;case'merge':this['_handleMergeOperation'](_0x630ef1);break;case'split':this['_handleSplitOperation'](_0x630ef1);}}else this['_handleRootOperation'](_0x630ef1,_0x10fa64);}['_cloneOperation'](_0x5ea7c1,_0x195d9d){const _0x962620=_0x5ea7c1['clone']();return _0x962620['_authorId']=_0x5ea7c1['_authorId'],this['_fixOperation'](_0x962620,_0x195d9d),_0x962620;}['_getBaseVids'](_0x2cc1ae){return _0x2cc1ae['map'](_0x59697d=>{const _0x471c7e=this['_getVidAttributeName'](_0x59697d);return Number(_0x59697d['item']['getAttribute'](_0x471c7e));});}['_generateTape'](_0x52940a,_0x26bde9){if(_0x52940a['is']('element','$text'))_0x26bde9['push']({'item':_0x52940a,'type':'text'});else{_0x52940a['is']('element')&&_0x26bde9['push']({'item':_0x52940a,'type':'elementStart'});for(const _0x24a729 of _0x52940a['getChildren']())this['_generateTape'](_0x24a729,_0x26bde9);_0x52940a['is']('element')&&_0x26bde9['push']({'item':_0x52940a,'type':'elementEnd'});}return _0x26bde9;}['_getState'](){const _0x2db93b=new Map(this['_touched']),_0x5e5edd=new Map(_0x2db93b),_0x532d7d=new Map(),_0x563df1={'insertions':{},'deletions':{}},_0x2b90df={'insertions':{},'deletions':{}},_0x56dae4=new Map(),_0x59f568=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x59f568['delete']('$graveyard');for(const _0x36c3a9 of _0x59f568){const _0x36ae61=this['_diffRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1),_0x21c621=this['_baseRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1);_0x36ae61['isAttached']()||_0x21c621['isAttached']()?(_0x563df1['insertions'][_0x36c3a9]=F(_0x36ae61),_0x563df1['deletions'][_0x36c3a9]=F(_0x21c621),this['_copyMarkers'](_0x563df1['deletions'][_0x36c3a9],_0x21c621),this['_copyMarkers'](_0x563df1['insertions'][_0x36c3a9],_0x36ae61),_0x2b90df['insertions'][_0x36c3a9]=this['_generateTape'](this['_idsRoots']['get'](_0x36c3a9),[]),_0x2b90df['deletions'][_0x36c3a9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1),[])):_0x59f568['delete'](_0x36c3a9);}for(const _0x1e5bb8 of _0x59f568){const _0x2aaa47=_0x2b90df['insertions'][_0x1e5bb8];for(const _0x2ee5b8 of _0x2aaa47){const _0x53a43c=this['_getVidAttributeName'](_0x2ee5b8),_0x22a844=_0x2ee5b8['item']['getAttribute'](_0x53a43c);_0x5e5edd['delete'](_0x22a844),_0x22a844>=this['_startingRevisionId']&&_0x532d7d['set'](_0x22a844,_0x2db93b['get'](_0x22a844));}}for(const _0x1985d0 of _0x59f568){const _0x4436a2=_0x2b90df['insertions'][_0x1985d0],_0xec75b2=this['_getBaseVids'](_0x2b90df['deletions'][_0x1985d0]);let _0xdfc885=0x0;for(const _0x50d732 of _0x4436a2){const _0x36bdbb=this['_getVidAttributeName'](_0x50d732),_0xaf5c9e=_0x50d732['item']['getAttribute'](_0x36bdbb);if(!_0x532d7d['has'](_0xaf5c9e)&&!_0x56dae4['has'](_0xaf5c9e)){if(_0x5e5edd['has'](_0xaf5c9e))_0xdfc885++;else{if(_0xaf5c9e!=_0xec75b2[_0xdfc885]){const _0x1347ff=_0x2db93b['get'](_0xaf5c9e)||_0x2db93b['get'](_0xec75b2[_0xdfc885]);for(;_0xaf5c9e!=_0xec75b2[_0xdfc885];)_0x5e5edd['has'](_0xec75b2[_0xdfc885])||(_0x56dae4['set'](_0xec75b2[_0xdfc885],_0x1347ff),_0x2db93b['set'](_0xec75b2[_0xdfc885],_0x1347ff)),_0xdfc885++;}_0xdfc885++;}}}}for(const _0x5dacb8 of _0x59f568){const _0x3f809d=_0x2b90df['insertions'][_0x5dacb8];for(const _0x2d0472 of _0x3f809d){const _0x233c26=this['_getVidAttributeName'](_0x2d0472),_0x128079=_0x2d0472['item']['getAttribute'](_0x233c26);if(_0x56dae4['has'](_0x128079)){const _0x42a711=_0x56dae4['get'](_0x128079);_0x5e5edd['has'](_0x128079)||_0x5e5edd['set'](_0x128079,{..._0x42a711}),_0x532d7d['set'](_0x128079,{..._0x42a711});}}}for(const _0x23c26c of _0x5e5edd['keys']())_0x23c26c>=this['_startingRevisionId']&&_0x5e5edd['delete'](_0x23c26c);const _0x927f3=new Map();for(const _0x2819b0 of _0x59f568){let _0x23f2d0=_0x2b90df['insertions'][_0x2819b0];for(const _0x39bc45 of _0x23f2d0)if(_0x39bc45['item']['is']('element','tableCell')){const _0x4189bf=this['_getVidAttributeName'](_0x39bc45),_0x1460f8=_0x39bc45['item']['getAttribute'](_0x4189bf);if(_0x532d7d['has'](_0x1460f8)){const _0x109c37=_0x39bc45['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d5381=_0x927f3['get'](_0x109c37)||new Set();_0x5d5381['add'](_0x532d7d['get'](_0x1460f8)['userId']),_0x927f3['set'](_0x109c37,_0x5d5381);}}_0x23f2d0=_0x2b90df['deletions'][_0x2819b0];for(const _0x4d0de7 of _0x23f2d0)if(_0x4d0de7['item']['is']('element','tableCell')){const _0x5d098a=this['_getVidAttributeName'](_0x4d0de7),_0x276c01=_0x4d0de7['item']['getAttribute'](_0x5d098a);if(_0x5e5edd['has'](_0x276c01)){const _0x189f8f=_0x4d0de7['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a6aef=_0x927f3['get'](_0x189f8f)||new Set();_0x3a6aef['add'](_0x5e5edd['get'](_0x276c01)['userId']),_0x927f3['set'](_0x189f8f,_0x3a6aef);}}for(const _0x30a225 of _0x927f3['keys']())(_0x532d7d['has'](_0x30a225)||_0x5e5edd['has'](_0x30a225))&&_0x927f3['delete'](_0x30a225);}for(const _0x13b965 of _0x59f568){const _0x1a562a=_0x2b90df['insertions'][_0x13b965];let _0xb8feff=null,_0x4cd556=null;for(const _0x30fb28 of _0x1a562a){const _0x145133=this['_getVidAttributeName'](_0x30fb28),_0x270912=_0x30fb28['item']['getAttribute'](_0x145133),_0x4925a0=_0x927f3['get'](_0x270912);_0x4925a0&&'elementStart'==_0x30fb28['type']&&(_0xb8feff=Array['from'](_0x4925a0)[0x0],_0x4cd556=_0x30fb28['item']['getAttribute']('vid_end')),_0xb8feff&&(_0x5e5edd['set'](_0x270912,{'userId':_0xb8feff}),_0x532d7d['set'](_0x270912,{'userId':_0xb8feff})),_0x270912==_0x4cd556&&(_0xb8feff=null,_0x4cd556=null);}}const _0x3ab72d={},_0x38c97f=new Set();for(const _0x38a5dd of _0x59f568){const _0x59e5dd=_0x563df1['deletions'][_0x38a5dd],_0x23fb23=_0x563df1['insertions'][_0x38a5dd];for(const {userId:_0x128b43}of this['_touchedMarkers']['values']())null!==_0x128b43&&_0x38c97f['add'](_0x128b43);for(const {userId:_0x255a7e}of this['_touchedRoots']['values']())null!==_0x255a7e&&_0x38c97f['add'](_0x255a7e);this['_markChanges'](_0x23fb23,_0x2b90df['insertions'][_0x38a5dd],_0x532d7d,'insertion',_0x38c97f),this['_markChanges'](_0x59e5dd,_0x2b90df['deletions'][_0x38a5dd],_0x5e5edd,'deletion',_0x38c97f),_0x3ab72d[_0x38a5dd]={'insertions':this['_prepareViewToSave'](_0x23fb23),'deletions':this['_prepareViewToSave'](_0x59e5dd),'attachChange':this['_touchedRoots']['get'](_0x38a5dd)||null,'attributesBefore':_0x1fbbd4(this['_baseRootsAttributes']['get'](_0x38a5dd))||{},'attributesAfter':_0x1fbbd4(this['_diffRootsAttributes']['get'](_0x38a5dd))};}return{'diffData':_0x3ab72d,'authorsIds':Array['from'](_0x38c97f)};}['_processRootBeforeSave'](_0x5f2fad){for(const [,_0x2cd9a8]of _0x5f2fad['markers']){const _0x29f512=_0x2cd9a8['start']['getAncestors']()['filter'](_0x52c4a5=>'tableCell'==_0x52c4a5['name']);for(const _0x17e4c7 of _0x29f512)0x1==_0x17e4c7['childCount']&&_0x17e4c7['getChild'](0x0)['is']('element','paragraph')&&_0x17e4c7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5d2de6){this['_processRootBeforeSave'](_0x5d2de6);const _0x5ca2b5=this['editor']['data']['toView'](_0x5d2de6,{}),_0x5764ee=Array['from'](_0x5ca2b5['getChildren']())['map'](_0x4743cb=>this['_getViewJson'](_0x4743cb));return JSON['stringify'](_0x5764ee);}['_getViewJson'](_0x53829c){if(_0x53829c['is']('$text'))return _0x53829c['data'];{const _0x23df38=_0x53829c;return{'type':Object['keys'](C)['find'](_0x25905b=>_0x53829c instanceof C[_0x25905b]),'name':_0x23df38['name'],'attributes':Array['from'](_0x23df38['getAttributes']()),'children':Array['from'](_0x23df38['getChildren']())['map'](_0x23f0e1=>this['_getViewJson'](_0x23f0e1))};}}['_markChanges'](_0x44059b,_0x494c70,_0x3f6145,_0x1d4c17,_0x1bd683){let _0x53a989=null,_0x30abed=null,_0x5705c7=0x0;const _0x144b4a=this['editor']['model'];for(let _0x1801b5=0x0;_0x1801b5<_0x494c70['length'];_0x1801b5++){const _0x1bdc1a=this['_getVidAttributeName'](_0x494c70[_0x1801b5]),_0x5efbdf=_0x494c70[_0x1801b5]['item']['getAttribute'](_0x1bdc1a),_0xcf152f=_0x3f6145['get'](_0x5efbdf),_0xbce1a2=_0x1801b5==_0x494c70['length']-0x1;(!_0x53a989&&_0xcf152f&&(_0x53a989=_0xcf152f,_0x30abed=_0x494c70[_0x1801b5]),_0x53a989&&(!_0xcf152f||_0xcf152f['userId']!=_0x53a989['userId']))&&(_0x160d05(_0xcf152f,J(_0x30abed,_0x44059b,_0x144b4a),J(_0x494c70[_0x1801b5],_0x44059b,_0x144b4a)),_0x53a989=_0xcf152f||null,_0x30abed=_0xcf152f?_0x494c70[_0x1801b5]:null),_0x53a989&&_0xbce1a2&&_0x160d05(_0xcf152f,J(_0x30abed,_0x44059b,_0x144b4a),q(_0x494c70[_0x1801b5],_0x44059b,_0x144b4a));}function _0x160d05(_0x4c8e21,_0x20aab9,_0x42fa30){const _0x2a16a2=_0x53a989['userId'],_0xe5527='revision:'+_0x1d4c17+':'+_0x2a16a2+':'+_0x5705c7++,_0x2e08fa=_0x144b4a['createRange'](_0x20aab9,_0x42fa30);_0x44059b['markers']['set'](_0xe5527,_0x2e08fa),null!==_0x2a16a2&&_0x1bd683['add'](_0x2a16a2);}}['_getVidAttributeName'](_0x539c14){switch(_0x539c14['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x512ba5,_0x59217f){_0x512ba5['baseVersion']=null;for(const _0x4ebe36 in _0x512ba5){const _0x109173=_0x512ba5[_0x4ebe36];if(_0x109173 instanceof gt){const _0x3cc437=_0x59217f['get'](_0x109173['root']['rootName']);_0x512ba5[_0x4ebe36]=this['_fixPosition'](_0x109173,_0x3cc437);}if(_0x109173 instanceof vt){const _0x5e59e2=_0x59217f['get'](_0x109173['root']['rootName']);_0x512ba5[_0x4ebe36]=this['_fixRange'](_0x109173,_0x5e59e2);}'root'===_0x4ebe36&&(_0x512ba5['root']=_0x59217f['get'](_0x512ba5['root']['rootName']));}}['_fixRange'](_0x2fc228,_0x4339cd){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2fc228['start'],_0x4339cd),this['_fixPosition'](_0x2fc228['end'],_0x4339cd));}['_fixPosition'](_0x3146c2,_0x2390b2){return this['editor']['model']['createPositionFromPath'](_0x2390b2,_0x3146c2['path'],_0x3146c2['stickiness']);}['_handleInsertOperation'](_0x8ff259){const _0x2b71a2=this['_idsRoots']['get'](_0x8ff259['position']['root']['rootName']),_0x2b215d=this['_fixPosition'](_0x8ff259['position'],_0x2b71a2),_0x117abd=null===_0x8ff259['_authorId']?null:_0x8ff259['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfe277=_0x2b215d['parent'],_0x374817=this['_revisionId'],_0x4ad98d=[];for(const _0x1478d2 of _0x8ff259['nodes'])if(_0x1478d2['is']('element'))_0x4ad98d['push'](this['_makeIdsRoot'](_0x1478d2));else{for(let _0x1b2867=0x0;_0x1b2867<_0x1478d2['offsetSize'];_0x1b2867++)_0x4ad98d['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x45d7f0=this['_revisionId'];for(let _0x50ad60=_0x374817;_0x50ad60<_0x45d7f0;_0x50ad60++)this['_touched']['set'](_0x50ad60,{'userId':_0x117abd});_0xfe277['_insertChild'](_0x2b215d['offset'],_0x4ad98d);}['_handleMoveOperation'](_0x173240){(_0x173240=this['_cloneOperation'](_0x173240,this['_idsRoots']))['_execute']();const _0x3cba08=null===_0x173240['_authorId']?null:_0x173240['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56aca9=_0x173240['getMovedRangeStart'](),_0x45f1bd=_0x56aca9['parent'],_0x421d77=_0x56aca9['offset'];!function _0x586e56(_0x3b155a,_0x127a53,_0x56dc6f,_0x3a4a9f){for(let _0x4d59ed=_0x56dc6f;_0x4d59ed<_0x3a4a9f;_0x4d59ed++){const _0xc121a9=_0x127a53['getChild'](_0x4d59ed);_0xc121a9['is']('element','$text')?_0x3b155a['set'](_0xc121a9['getAttribute']('vid'),{'userId':_0x3cba08}):(_0x3b155a['set'](_0xc121a9['getAttribute']('vid_start'),{'userId':_0x3cba08}),_0x586e56(_0x3b155a,_0xc121a9,0x0,_0xc121a9['childCount']),_0x3b155a['set'](_0xc121a9['getAttribute']('vid_end'),{'userId':_0x3cba08}));}}(this['_touched'],_0x45f1bd,_0x421d77,_0x421d77+_0x173240['howMany']);}['_handleMergeOperation'](_0x54272f){const _0xd3e70f=null===(_0x54272f=this['_cloneOperation'](_0x54272f,this['_idsRoots']))['_authorId']?null:_0x54272f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4db9ee=_0x54272f['targetPosition']['parent'],_0x410b1f=_0x54272f['sourcePosition']['parent'],_0xb182=_0x4db9ee['getAttribute']('vid_end'),_0x5a2f49=_0x410b1f['getAttribute']('vid_start');_0x4db9ee['_setAttribute']('vid_end',_0x410b1f['getAttribute']('vid_end')),_0x410b1f['_setAttribute']('vid_end',_0xb182),this['_touched']['set'](_0x5a2f49,{'userId':_0xd3e70f}),this['_touched']['set'](_0xb182,{'userId':_0xd3e70f}),_0x54272f['_execute']();}['_handleSplitOperation'](_0x4d3672){const _0x2bd32f=null===(_0x4d3672=this['_cloneOperation'](_0x4d3672,this['_idsRoots']))['_authorId']?null:_0x4d3672['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf71313=_0x4d3672['graveyardPosition'],_0x58f544=_0x4d3672['splitPosition']['parent'];_0x4d3672['_execute']();const _0x11836b=_0x58f544['getAttribute']('vid_end'),_0x1ee3bb=_0x4d3672['insertionPosition']['nodeAfter'];if(_0xf71313){const _0x51e074=_0x1ee3bb['getAttribute']('vid_end'),_0x165f86=_0x58f544['getAttribute']('vid_end');_0x58f544['_setAttribute']('vid_end',_0x51e074),_0x1ee3bb['_setAttribute']('vid_end',_0x165f86),this['_touched']['set'](_0x58f544['getAttribute']('vid_end'),{'userId':_0x2bd32f}),this['_touched']['set'](_0x1ee3bb['getAttribute']('vid_start'),{'userId':_0x2bd32f});}else{const _0x31e73d=this['_revisionId']++,_0x25d2e2=this['_revisionId']++;_0x58f544['_setAttribute']('vid_end',_0x31e73d),_0x1ee3bb['_setAttribute']('vid_start',_0x25d2e2),_0x1ee3bb['_setAttribute']('vid_end',_0x11836b),this['_touched']['set'](_0x31e73d,{'userId':_0x2bd32f}),this['_touched']['set'](_0x25d2e2,{'userId':_0x2bd32f});}}['_handleMarkerOperation'](_0x533505){if(!_0x533505['affectsData'])return;const _0x1c5c50=(_0x533505=this['_cloneOperation'](_0x533505,this['_diffRoots']))['oldRange']?_0x533505['oldRange']['root']:null,_0x421cc6=_0x533505['newRange']?_0x533505['newRange']['root']:null;_0x1c5c50&&this['_markers']['delete'](_0x533505['name']),_0x421cc6&&this['_markers']['set'](_0x533505['name'],_0x533505['newRange']['clone']());const _0x32b440=null===_0x533505['_authorId']?null:_0x533505['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bca63=_0x533505['name'];if(!this['_touchedMarkers']['has'](_0x2bca63))return void this['_touchedMarkers']['set'](_0x2bca63,{'range':_0x533505['oldRange'],'userId':_0x32b440});const _0x40bcc6=this['_touchedMarkers']['get'](_0x2bca63),_0x3e39ed=_0x40bcc6['range'],_0x17ebc3=_0x533505['newRange'];null==_0x3e39ed&&null==_0x17ebc3||_0x3e39ed&&_0x17ebc3&&_0x3e39ed['isEqual'](_0x17ebc3)?this['_touchedMarkers']['delete'](_0x533505['name']):_0x40bcc6['userId']=_0x32b440;}['_handleRootOperation'](_0x1e6456,_0x353553){this['_diffRoots']['has'](_0x1e6456['rootName'])?this['_diffRoots']['get'](_0x1e6456['rootName'])['_isAttached']=_0x1e6456['isAdd']:(this['_diffRoots']['set'](_0x1e6456['rootName'],B(_0x1e6456['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e6456['rootName'],{}),_0x353553&&this['_idsRoots']['set'](_0x1e6456['rootName'],B(_0x1e6456['rootName'],!0x0)));const _0x3639c7=null===_0x1e6456['_authorId']?null:_0x1e6456['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b9436=this['_touchedRoots']['get'](_0x1e6456['rootName']);_0x5b9436&&_0x5b9436['userId']===_0x3639c7?this['_touchedRoots']['delete'](_0x1e6456['rootName']):this['_touchedRoots']['set'](_0x1e6456['rootName'],{'userId':_0x3639c7,'isAttached':_0x1e6456['isAdd']});}['_handleRootAttributeOperation'](_0x3f38cb){const _0x3c4286=this['_diffRootsAttributes']['get'](_0x3f38cb['root']['rootName']);null===_0x3f38cb['newValue']?delete _0x3c4286[_0x3f38cb['key']]:_0x3c4286[_0x3f38cb['key']]=_0x3f38cb['newValue'];}}function F(_0x18d478){const _0x330720=B(_0x18d478['rootName'],_0x18d478['isAttached']());for(const _0x38f82e of _0x18d478['getChildren']()){const _0x400da1=_0x38f82e['_clone'](!0x0);_0x330720['_appendChild'](_0x400da1);}return _0x330720;}function B(_0x4c45ef,_0x5060d3=!0x0){const _0xf38868=new wt();return _0xf38868['rootName']=_0x4c45ef,_0xf38868['_isAttached']=_0x5060d3,_0xf38868['isAttached']=()=>_0xf38868['_isAttached'],_0xf38868;}function J(_0x4e9e29,_0x1344e8,_0x207e0c){const _0x429140='elementEnd'==_0x4e9e29['type']?_0x207e0c['createPositionAt'](_0x4e9e29['item'],'end'):_0x207e0c['createPositionBefore'](_0x4e9e29['item']);return _0x207e0c['createPositionFromPath'](_0x1344e8,_0x429140['path'],_0x429140['stickiness']);}function q(_0xefadd2,_0x281377,_0x115391){const _0x146e08='elementStart'==_0xefadd2['type']?_0x115391['createPositionAt'](_0xefadd2['item'],0x0):_0x115391['createPositionAfter'](_0xefadd2['item']);return _0x115391['createPositionFromPath'](_0x281377,_0x146e08['path'],_0x146e08['stickiness']);}class hs extends _0x59c2ca{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1896ab,_0x6d8c37){super(_0x1896ab),this['focusTracker']=new _0x426056(),this['keystrokes']=new _0x5bb513(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x6d8c37),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'](),_0x2b7941({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x151553=_0x3347bc=>_0x3347bc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x151553),this['keystrokes']['set']('arrowleft',_0x151553),this['keystrokes']['set']('arrowup',_0x151553),this['keystrokes']['set']('arrowdown',_0x151553);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3cbd2b){this['revisionNameInputView']['fieldView']['element']['value']=_0x3cbd2b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x539bc3){const _0x479067=new at(this['locale'],_0x2931d8),_0x13b4ca=_0x479067['fieldView'];_0x13b4ca['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x26e258=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x539bc3&&(_0x26e258+='\x20('+R(this['locale'],'optional')+')'),(_0x479067['label']=_0x26e258,_0x13b4ca['on']('input',()=>{this['revisionNameInputValue']=_0x13b4ca['element']['value']['trim']();}),_0x479067);}}class u extends _0x5a5f64{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x12f5be=this['editor'],_0x130906=_0x12f5be['plugins']['get']('RevisionTracker');_0x12f5be['ui']['componentFactory']['add']('revisionHistory',_0x4b6957=>{const _0x5144d8=_0x40e817(_0x4b6957),_0x45eb3d=_0x5144d8['panelView']['children'],_0x4a1ffd=new _0xab325d(_0x4b6957),_0x5ae1c8=new te(_0x4b6957),_0x5853cb=new _0x3b013d(_0x4b6957),_0xeacc99=new te(_0x4b6957),_0x5c9290=new _0x3b013d(_0x4b6957);return _0x5144d8['bind']('isEnabled')['to'](_0x130906,'isReady',_0x130906,'isEnabled',_0x12f5be,'isReadOnly',(_0x4b8c69,_0xa5d373,_0xdfcfd5)=>_0x4b8c69&&_0xa5d373&&!_0xdfcfd5),_0x5144d8['buttonView']['set']({'icon':_0x2b22d2['history'],'label':R(_0x4b6957,'Revision\x20history'),'tooltip':!0x0}),_0x5853cb['set']({'label':R(_0x4b6957,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5853cb['bind']('isEnabled')['to'](_0x130906,'isReady',_0x130906,'isEnabled',_0x12f5be,'isReadOnly',(_0x385a2b,_0x287c53,_0x5786d5)=>_0x385a2b&&_0x287c53&&!_0x5786d5),_0x5853cb['on']('execute',()=>this['_showDialog']()),_0x5c9290['set']({'label':R(_0x4b6957,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5c9290['bind']('isEnabled')['to'](_0x130906,'isReady',_0x12f5be,'isReadOnly',(_0x2bc45d,_0x4ab749)=>_0x2bc45d&&!_0x4ab749),_0x5c9290['on']('execute',()=>{_0x12f5be['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5144d8['isOpen']=!0x1,_0x12f5be['editing']['view']['focus']();}),_0x5ae1c8['children']['add'](_0x5853cb),_0xeacc99['children']['add'](_0x5c9290),_0x4a1ffd['role']='menu',_0x4a1ffd['items']['addMany']([_0x5ae1c8,_0xeacc99]),_0x45eb3d['add'](_0x4a1ffd),_0x5144d8;}),_0x12f5be['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x14ecd1=this['editor'],_0x146fa0=_0x14ecd1['locale'],_0x4d689e=new _0x8cd669(_0x146fa0),_0x3d0983=new _0x3181c6(_0x146fa0);_0x4d689e['buttonView']['set']({'icon':_0x2b22d2['history'],'label':R(_0x146fa0,'Revision\x20history')});const _0xc3d78c=new _0x41624a(_0x146fa0,_0x4d689e),_0x134035=new _0x58d60f(_0x146fa0);_0x134035['set']({'label':R(_0x146fa0,'Save\x20current\x20revision')}),_0x134035['delegate']('execute')['to'](_0x4d689e),_0x134035['on']('execute',()=>{this['_showDialog']();}),_0xc3d78c['children']['add'](_0x134035),_0x3d0983['items']['add'](_0xc3d78c);const _0x807ae0=new _0x41624a(_0x146fa0,_0x4d689e),_0xbd37e5=new _0x58d60f(_0x146fa0);return _0xbd37e5['set']({'label':R(_0x146fa0,'Open\x20revision\x20history')}),_0xbd37e5['delegate']('execute')['to'](_0x4d689e),_0xbd37e5['on']('execute',()=>{_0x14ecd1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x807ae0['children']['add'](_0xbd37e5),_0x3d0983['items']['add'](_0x807ae0),_0x4d689e['panelView']['children']['add'](_0x3d0983),_0x4d689e;}['_showDialog'](){const _0x6edda2=this['editor'],_0x382b8d=_0x6edda2['locale'],_0x212516=_0x6edda2['plugins']['get']('Dialog'),_0x34ee5b=_0x6edda2['plugins']['get']('RevisionTracker');function _0x492475(_0x3b1585){_0x6edda2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3b1585['revisionName']?_0x3b1585['revisionNameInputView']['errorText']=R(_0x382b8d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x6edda2['plugins']['get'](l)['saveRevision']({'name':_0x3b1585['revisionName']}),_0x212516['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x492475(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x212516['show']({'id':'revisionSave','title':R(_0x382b8d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x6edda2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x212516['hide']()},{'label':R(_0x6edda2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4ed09b){_0x4ed09b['bind']('isEnabled')['to'](_0x34ee5b,'isReady',_0x34ee5b,'isEnabled',_0x6edda2,'isReadOnly',(_0x204f12,_0x29073c,_0x26cc5a)=>_0x204f12&&_0x29073c&&!_0x26cc5a);},'onExecute':()=>_0x492475(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1b3681=this['editor'],_0x40b55a=_0x1b3681['locale'];this['_saveRevisionFormView']=new hs(_0x40b55a,_0x1b3681['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x59c2ca{['changeId'];['_model'];constructor(_0x2a3899,_0x5a09c7){super(_0x2a3899),this['_model']=_0x5a09c7,this['changeId']=_0x5a09c7['id'];const _0x1cefa2=this['bindTemplate'],_0xe347cb=R(_0x2a3899,_0x5a09c7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5a09c7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5a09c7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1cefa2['to']('type',_0x87bdcf=>'ck-revision-change__'+_0x87bdcf)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe347cb}]},{'text':'\x20'+_0x5a09c7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x42fc44(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1e13ca){super(),this['id']=_0x1e13ca['id']||_0x45c6ed(),this['author']=_0x1e13ca['author'],this['type']=_0x1e13ca['type'],this['data']=_0x1e13ca['data']||{},this['rootName']=_0x1e13ca['rootName'],this['set']('createdAt',_0x1e13ca['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(_0x153db1,_0x464f2a){this['newRevisionId']=_0x153db1,this['oldRevisionId']=_0x464f2a,this['changes']=new _0xc46275();}['_setChanges'](_0x140c25){for(const _0x332c7d of _0x140c25)this['changes']['add'](_0x332c7d);}}const Z={'c':_0x34a5a1,'a':_0x598c3e,'e':_0x29e244,'r':_0x38a7d8,'u':_0x196df5};class d extends _0x5a5f64{['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[_0x13a039,_0xc8f96d,j];}constructor(_0x57908d){super(_0x57908d),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',(_0x2263d5,_0x2e6017,_0x1e0ea4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x219635=>{for(const _0x1ff8b9 of this['editor']['editing']['view']['document']['roots'])_0x1e0ea4?_0x219635['removeClass']('ck-editor__editable__overlay',_0x1ff8b9):_0x219635['addClass']('ck-editor__editable__overlay',_0x1ff8b9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x56a33=>null!==_0x56a33),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5a4e67,_0x315b99,_0x491d61)=>_0x5a4e67&&_0x491d61?_0x315b99['changes']['getIndex'](_0x491d61):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x306ca9,_0x2fd040)=>_0x306ca9?_0x2fd040['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xc8f96d);}['init'](){const _0x2c87c5=this['editor'],_0x502983=new bt(_0x2c87c5,{'direction':'backward'}),_0x393ab9=new bt(_0x2c87c5,{'direction':'forward'});(_0x2c87c5['commands']['add']('showPreviousChange',_0x502983),_0x2c87c5['commands']['add']('showNextChange',_0x393ab9),_0x2c87c5['commands']['add']('restoreRevision',new yt(_0x2c87c5)),this['on']('change:numberOfChanges',()=>{_0x502983['refresh'](),_0x393ab9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2c87c5['enableReadOnlyMode']('revision-viewer'),_0x2c87c5['plugins']['has']('WidgetToolbarRepository'))&&_0x2c87c5['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1a13b9){await this['loadRevisionData'](_0x1a13b9);const _0x2ee7d7={};for(const _0x4a12a7 in _0x1a13b9['diffData']){if(_0x1a13b9['diffData'][_0x4a12a7]['attachChange']&&!_0x1a13b9['diffData'][_0x4a12a7]['attachChange']['isAttached'])continue;const _0x2e8b25=this['_removeRevisionMarkers'](JSON['parse'](_0x1a13b9['diffData'][_0x4a12a7]['insertions'])),_0x5e4e5d=this['editor']['editing']['view']['document'],_0x4fed5b=new _0x29157b(_0x5e4e5d,_0x2e8b25['map'](_0x5f5dd6=>this['_getViewObj'](_0x5f5dd6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2ee7d7[_0x4a12a7]=this['editor']['data']['processor']['toData'](_0x4fed5b),this['editor']['data']['processor']['useFillerType']('default');}return _0x2ee7d7;}async['getRevisionRootsAttributes'](_0x245b1b){await this['loadRevisionData'](_0x245b1b);const _0x5eeff5={};for(const _0x56d918 in _0x245b1b['diffData'])_0x245b1b['diffData'][_0x56d918]['attachChange']&&!_0x245b1b['diffData'][_0x56d918]['attachChange']['isAttached']||(_0x5eeff5[_0x56d918]=_0x245b1b['diffData'][_0x56d918]['attributesAfter']||{});return _0x5eeff5;}['_removeRevisionMarkers'](_0x43c751){return(_0x43c751=_0x43c751['filter'](_0x227ed3=>!_0x227ed3['name']||'revision-start'!==_0x227ed3['name']&&'revision-end'!==_0x227ed3['name']))['forEach'](_0x292c6f=>{'string'!=typeof _0x292c6f&&(_0x292c6f['children']=this['_removeRevisionMarkers'](_0x292c6f['children']),_0x292c6f['attributes']=_0x292c6f['attributes']['filter'](_0x1243c6=>!_0x1243c6[0x0]['startsWith']('data-revision-')));}),_0x43c751;}async['compare'](_0x28507d,_0x3093ad,_0x3b1ad7=!0x1){if(!this['isEnabled'])return;const _0x525b09=this['diff'],_0x21db0c=this['repository'],_0x27f3f6='string'==typeof _0x28507d?_0x21db0c['getRevision'](_0x28507d):_0x28507d,_0x3e4b8f='string'==typeof _0x3093ad?_0x21db0c['getRevision'](_0x3093ad):_0x3093ad,_0x2d2f37=_0x27f3f6['id'],_0x348f52=_0x3e4b8f?_0x3e4b8f['id']:null;if(!_0x3b1ad7&&this['diff']&&this['diff']['newRevisionId']===_0x2d2f37&&this['diff']['oldRevisionId']===_0x348f52)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2d2f37,_0x348f52);const _0x4b82df=this['_getRevisionsRange'](_0x27f3f6,_0x3e4b8f,!0x0)['map'](_0x500a4=>this['loadRevisionData'](_0x500a4));return _0x4b82df['push'](new Promise(_0x2969f2=>{setTimeout(_0x2969f2,0x14);})),Promise['all'](_0x4b82df)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1907d3=this['_getDiff'](_0x2d2f37,_0x348f52);for(const _0x5dd44f of _0x1907d3['changes'])this['_changeIdToChange']['set'](_0x5dd44f['id'],_0x5dd44f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x59eb56=>{for(const _0x9e9eae of this['editor']['model']['document']['getRootNames']())_0x59eb56['detachRoot'](_0x9e9eae);for(const _0x241771 of Object['keys'](_0x1907d3['model'])){const _0x324e79=_0x59eb56['addRoot'](_0x241771);for(const _0x43acaf of Object['keys'](_0x1907d3['attributes'][_0x241771]))_0x59eb56['setAttribute'](_0x43acaf,_0x1907d3['attributes'][_0x241771][_0x43acaf],_0x324e79);_0x59eb56['insert'](_0x1907d3['model'][_0x241771],_0x324e79,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1907d3['changes'])),this['isReady']=!0x0;})['catch'](_0x2bf360=>{console['error'](_0x2bf360),this['_cleanUp'](),_0x525b09&&(this['diff']=_0x525b09),this['isReady']=!0x0;});}['addRevisionData'](_0x1b1bab,_0x3499d5){const _0x1e431e=this['repository']['createRevision'](_0x1b1bab);return _0x1e431e['on']('_update',(_0x240a66,_0x185b89,_0x556ed8)=>_0x3499d5(_0x185b89,_0x556ed8,_0x1e431e)),this['repository']['addRevision'](_0x1e431e),_0x1e431e;}['loadRevisionData'](_0x1e3993){if(!_0x1e3993||_0x1e3993['diffData'])return Promise['resolve']();{const _0x185fc1=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x185fc1,'revisionId':_0x1e3993['id']})['then'](_0x4c3055=>{_0x1e3993['_update']({'diffData':_0x4c3055['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},_0x14c7c8=>{for(const _0x4cfb50 of this['editor']['model']['document']['getRootNames']())_0x14c7c8['detachRoot'](_0x4cfb50);});}['_sortAndFilterDiffChanges'](_0x387ac4){const _0x170aa6=[],_0x1914d3=new Map();for(const _0xf247c4 of this['editor']['model']['document']['getRootNames']()){const _0x9fcd70=this['editor']['editing']['view']['getDomRoot'](_0xf247c4);if(!_0x9fcd70)continue;const _0x3cf6d9=_0x9fcd70['getClientRects']()['item'](0x0);_0x3cf6d9&&(_0x170aa6['push'](_0xf247c4),_0x1914d3['set'](_0xf247c4,_0x3cf6d9));}return _0x170aa6['sort']((_0x646d61,_0x6540f6)=>{const _0x5a9d9b=_0x1914d3['get'](_0x646d61),_0x131b66=_0x1914d3['get'](_0x6540f6);return _0x5a9d9b['y']-_0x131b66['y']||_0x5a9d9b['x']-_0x131b66['x'];}),(_0x387ac4=_0x387ac4['filter'](_0x445483=>_0x170aa6['includes'](_0x445483['rootName'])))['sort']((_0x23c342,_0x4368e8)=>_0x170aa6['indexOf'](_0x23c342['rootName'])-_0x170aa6['indexOf'](_0x4368e8['rootName'])),_0x387ac4;}['_makeTape'](_0x150cf0){const _0x526906=Array['from'](_0x150cf0['markers'])['filter'](([_0x25fdd9,_0x3e6d90])=>_0x25fdd9['startsWith']('revision:')&&!_0x3e6d90['isCollapsed']),_0x48b5ed=Array['from'](this['editor']['model']['createRangeIn'](_0x150cf0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x526906['length'])for(const _0x480be6 of _0x48b5ed){const [_0x39e529,_0x47e5e0]=_0x526906[0x0],[,_0x1ee717,_0x21b1f6]=_0x39e529['split'](':');if(_0x47e5e0['end']['isEqual'](_0x480be6['nextPosition'])&&_0x526906['shift'](),(_0x480be6['previousPosition']['isEqual'](_0x47e5e0['start'])||_0x480be6['previousPosition']['isAfter'](_0x47e5e0['start']))&&('insertion'==_0x1ee717?_0x480be6['isAdded']={'userId':_0x21b1f6}:'deletion'==_0x1ee717&&(_0x480be6['isRemoved']={'userId':_0x21b1f6})),0x0==_0x526906['length'])break;}return _0x48b5ed;}['_refreshStartEndIndex'](_0x593f1c){const _0x315cac=new Map();for(let _0x2c6f20=0x0;_0x2c6f20<_0x593f1c['length'];_0x2c6f20++)'text'===_0x593f1c[_0x2c6f20]['type']?(_0x593f1c[_0x2c6f20]['item']['startIndex']=_0x2c6f20,_0x593f1c[_0x2c6f20]['item']['endIndex']=_0x2c6f20):('elementStart'===_0x593f1c[_0x2c6f20]['type']?_0x593f1c[_0x2c6f20]['item']['startIndex']=_0x2c6f20:'elementEnd'===_0x593f1c[_0x2c6f20]['type']&&(_0x593f1c[_0x2c6f20]['item']['endIndex']=_0x2c6f20),_0x315cac['set'](_0x593f1c[_0x2c6f20]['id'],_0x2c6f20));for(const _0x30e8f2 of _0x315cac['values']())'elementStart'===_0x593f1c[_0x30e8f2]['type']?_0x593f1c[_0x30e8f2]['item']['endIndex']=_0x315cac['get'](_0x593f1c[_0x30e8f2]['pairId']):'elementEnd'===_0x593f1c[_0x30e8f2]['type']&&(_0x593f1c[_0x30e8f2]['item']['startIndex']=_0x315cac['get'](_0x593f1c[_0x30e8f2]['pairId']));}['_processTape'](_0x17f139){for(let _0x83f327=0x0;_0x83f327<_0x17f139['length'];_0x83f327++){if('elementStart'===_0x17f139[_0x83f327]['type'])_0x17f139[_0x83f327]['item']['startIndex']=_0x83f327;else{if('elementEnd'===_0x17f139[_0x83f327]['type']){_0x17f139[_0x83f327]['item']['endIndex']=_0x83f327;const _0x516fec=_0x17f139[_0x83f327]['item']['startIndex'];_0x17f139[_0x516fec]['pairId']=_0x17f139[_0x83f327]['id'],_0x17f139[_0x83f327]['pairId']=_0x17f139[_0x516fec]['id'];}else _0x17f139[_0x83f327]['item']['startIndex']=_0x83f327,_0x17f139[_0x83f327]['item']['endIndex']=_0x83f327,_0x17f139[_0x83f327]['pairId']=null;}_0x17f139[_0x83f327]['markersStart']||(_0x17f139[_0x83f327]['markersStart']=[],_0x17f139[_0x83f327]['markersEnd']=[]);}}['_markInsertions'](_0x2494c2,_0x24e6fd){const _0x104de4=_0x2494c2['filter'](_0x4db2ed=>!_0x4db2ed['isAdded']);for(let _0x5445d3=0x0;_0x5445d3<_0x24e6fd['length'];_0x5445d3++)_0x24e6fd[_0x5445d3]['isAdded']&&(_0x104de4[_0x5445d3]['isAdded']=_0x24e6fd[_0x5445d3]['isAdded']);}['_makeModelFromViewString'](_0x51a208){const _0x4853d=JSON['parse'](_0x51a208),_0x5d63ec=this['editor']['editing']['view']['document'],_0x452e3f=new _0x29157b(_0x5d63ec,_0x4853d['map'](_0x2c6363=>this['_getViewObj'](_0x2c6363)));return this['editor']['data']['toModel'](_0x452e3f);}['_getViewObj'](_0x50d6ed){const _0x46bc03=this['editor']['editing']['view']['document'];if('string'==typeof _0x50d6ed)return new _0x580579(_0x46bc03,_0x50d6ed);{const _0x48d34e=_0x50d6ed['children']['map'](_0x4e8a7d=>this['_getViewObj'](_0x4e8a7d));return new(Z[_0x50d6ed['type']]||_0x9fe0f9)(_0x46bc03,_0x50d6ed['name'],_0x50d6ed['attributes'],_0x48d34e);}}['_getDiff'](_0x51efd1,_0x5e3ae6=null){const _0x1d1607=this['repository']['getRevision'](_0x51efd1),_0x3d3b88=_0x5e3ae6?this['repository']['getRevision'](_0x5e3ae6):null,_0x4084e6=this['_getRevisionsRange'](_0x1d1607,_0x3d3b88),_0x332264=_0x4084e6[_0x4084e6['length']-0x1],_0x22742d=new Map(),_0x275a00={'model':{},'attributes':{},'changes':[]},_0x3fd309=new Set(),_0x136e5d=new Map();for(let _0x3bb811=_0x4084e6['length']-0x1;_0x3bb811>=0x0;_0x3bb811--){const _0x5a0920=_0x4084e6[_0x3bb811];for(const _0x16d40f of Object['keys'](_0x5a0920['diffData']))if(_0x5a0920['diffData'][_0x16d40f]['attachChange']){const _0x190a6f=_0x5a0920['diffData'][_0x16d40f]['attachChange'];_0x190a6f['isAttached']?(_0x3fd309['add'](_0x16d40f),_0x136e5d['has'](_0x16d40f)&&_0x136e5d['get'](_0x16d40f)['userId']==_0x190a6f['userId']?_0x136e5d['delete'](_0x16d40f):_0x136e5d['set'](_0x16d40f,_0x190a6f)):_0x136e5d['has'](_0x16d40f)?(_0x3fd309['delete'](_0x16d40f),_0x136e5d['delete'](_0x16d40f)):(_0x3fd309['add'](_0x16d40f),_0x136e5d['set'](_0x16d40f,_0x190a6f));}else _0x3fd309['add'](_0x16d40f);}for(const _0x494b33 of _0x3fd309){const _0x3e2ee9=_0x136e5d['has'](_0x494b33)&&!_0x136e5d['get'](_0x494b33)['isAttached'];let _0x1b860c=_0x3e2ee9?_0x4084e6['length']-0x1:0x0;const _0x1be726=_0x3e2ee9?-0x1:0x1;for(;_0x4084e6[_0x1b860c];){const _0x4042c0=_0x4084e6[_0x1b860c];if(_0x4042c0['diffData'][_0x494b33]){const _0x147651=_0x3e2ee9?_0x4042c0['diffData'][_0x494b33]['attributesBefore']:_0x4042c0['diffData'][_0x494b33]['attributesAfter'];_0x275a00['attributes'][_0x494b33]=_0x147651?_0x1fbbd4(_0x147651):{};break;}_0x1b860c+=_0x1be726;}}for(const _0x16817c of _0x4084e6){_0x16817c['model']={};for(const _0x6495da of _0x16817c['authors'])_0x22742d['set'](_0x6495da['id'],_0x6495da);for(const _0x4bc340 of _0x3fd309){const _0xd1ea91=_0x16817c['diffData'][_0x4bc340]?_0x16817c['diffData'][_0x4bc340]['insertions']:'[]',_0x55cade=_0x16817c['diffData'][_0x4bc340]?_0x16817c['diffData'][_0x4bc340]['deletions']:'[]';_0x16817c['model'][_0x4bc340]={'insertions':this['_makeModelFromViewString'](_0xd1ea91),'deletions':this['_makeModelFromViewString'](_0x55cade)};}}for(const _0x306eb5 of _0x3fd309){let _0x105317=null,_0x440771=0x0;const _0x5f49a9=new Map(Array['from'](_0x1d1607['model'][_0x306eb5]['insertions']['markers'])['filter'](([_0x483bf3])=>!_0x483bf3['startsWith']('revision:')));let _0x20d50f=0x0;for(const _0x14a72f of _0x4084e6){const _0x2a5321=this['_makeTape'](_0x14a72f['model'][_0x306eb5]['insertions']);_0x14a72f==_0x1d1607?(_0x105317=_0x2a5321,_0x440771=_0x105317['length'],_0x105317['forEach'](_0x14a8d0=>{_0x14a8d0['id']=_0x20d50f++;}),this['_processTape'](_0x105317)):this['_markInsertions'](_0x105317,_0x2a5321);const _0x5b536c=_0x105317['filter'](_0x15491b=>!_0x15491b['isAdded'])['map'](_0x2f7325=>_0x2f7325['id']);let _0x48da24=0x0;const _0x2a1e41=this['_makeTape'](_0x14a72f['model'][_0x306eb5]['deletions']);_0x2a1e41['forEach'](_0x139f54=>{_0x139f54['isRemoved']?_0x139f54['id']=_0x440771++:_0x139f54['id']=_0x5b536c[_0x48da24++];}),this['_processTape'](_0x2a1e41),this['_setDistance'](_0x105317,'isAdded'),this['_setDistance'](_0x2a1e41,'isRemoved'),_0x14a72f==_0x1d1607&&this['_markMarkers'](_0x105317,_0x5f49a9),_0x105317=this['_joinTapes'](_0x105317,_0x2a1e41),this['_refreshStartEndIndex'](_0x105317),this['_setDistance'](_0x105317,'isRemoved');}_0x105317=_0x105317['filter'](_0xa8510d=>!(_0xa8510d['isAdded']&&_0xa8510d['isRemoved']));const _0x475c38=new Map(_0x332264['model'][_0x306eb5]['deletions']['markers']),_0x168709=new Set(_0x5f49a9['keys']());for(const _0x564ff2 of _0x475c38['keys']())_0x168709['delete'](_0x564ff2);this['_markSuggestions'](_0x105317,_0x168709),this['_fixObsoleteTags'](_0x105317),_0x105317=this['_removeMissingPairs'](_0x105317),_0x105317=this['_markMismatchedRemovedTags'](_0x105317),_0x105317=this['_removeUnsupportedChanges'](_0x105317);const {root:_0x303dbe,changes:_0x36b525}=this['_makeModelFromTape'](_0x105317,_0x22742d,_0x306eb5);_0x275a00['model'][_0x306eb5]=_0x303dbe;const _0x16f2eb=_0x136e5d['get'](_0x306eb5);if(_0x16f2eb){const _0x570dd9=_0x22742d['get'](_0x16f2eb['userId']),_0x52a12c=new r({'author':_0x570dd9,'type':_0x16f2eb['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x306eb5});_0x36b525['unshift'](_0x52a12c),_0x275a00['attributes'][_0x306eb5]['revisionHistoryAttachChange']=_0x52a12c['id'];}_0x275a00['changes']=_0x275a00['changes']['concat'](_0x36b525);}return _0x275a00;}['_markMarkers'](_0x4d359e,_0x5917f1){for(let _0xfb8bd4=0x0;_0xfb8bd4<_0x4d359e['length'];_0xfb8bd4++)for(const [_0x59b300,_0x4e7b7a]of _0x5917f1)_0x4e7b7a['start']['isEqual'](_0x4d359e[_0xfb8bd4]['previousPosition'])&&_0x4d359e[_0xfb8bd4]['markersStart']['push'](_0x59b300),_0x4e7b7a['end']['isEqual'](_0x4d359e[_0xfb8bd4]['nextPosition'])&&_0x4d359e[_0xfb8bd4]['markersEnd']['push'](_0x59b300);}['_joinTapes'](_0x40888b,_0xd06eb1){let _0x368315=[],_0x2e492c=0x0,_0x34c76a=0x0;for(;_0x2e492c<_0x40888b['length']||_0x34c76a<_0xd06eb1['length'];){const _0x422336=_0x40888b[_0x2e492c]||{},_0x378332=_0xd06eb1[_0x34c76a]||{};if(_0x422336['id']==_0x378332['id'])_0x2e492c++,_0x34c76a++,_0x368315['push'](_0x422336);else{if(_0x378332['isRemoved']&&_0x422336['isAdded']){const {commonTape:_0x44d7c4,iEnd:_0x3ada62,jEnd:_0x5c6b99}=this['_threeWayMerge'](_0x40888b,_0x2e492c,_0xd06eb1,_0x34c76a);_0x368315=_0x368315['concat'](_0x44d7c4),_0x2e492c=_0x3ada62,_0x34c76a=_0x5c6b99;}else _0x378332['isRemoved']?(_0x34c76a++,_0x368315['push'](_0x378332)):(_0x2e492c++,_0x368315['push'](_0x422336));}}return _0x368315;}['_markSuggestions'](_0x5ca50f,_0x470c39){const _0x41ca78=[];for(let _0x1994bd=0x0;_0x1994bd<_0x5ca50f['length'];_0x1994bd++){for(let _0x375291=0x0;_0x375291<_0x5ca50f[_0x1994bd]['markersStart']['length'];_0x375291++){const _0x4f412c=_0x5ca50f[_0x1994bd]['markersStart'][_0x375291];if(!_0x470c39['has'](_0x4f412c))continue;const {group:_0x4191cc,type:_0x110aab,authorId:_0x21462f}=_0x278fd6(_0x4f412c);'revision-suggestion'!=_0x4191cc||'insertion'!=_0x110aab&&'deletion'!=_0x110aab||(_0x41ca78['unshift']({'type':_0x110aab,'name':_0x4f412c,'userId':_0x21462f}),_0x5ca50f[_0x1994bd]['markersStart']['splice'](_0x375291,0x1),_0x375291--);}_0x3e8122(_0x5ca50f[_0x1994bd]);for(let _0x1264c5=0x0;_0x1264c5<_0x5ca50f[_0x1994bd]['markersEnd']['length'];_0x1264c5++){const _0x4f868f=_0x5ca50f[_0x1994bd]['markersEnd'][_0x1264c5];if(!_0x470c39['has'](_0x4f868f))continue;const {group:_0x3efd18,type:_0x153631}=_0x278fd6(_0x4f868f);if('revision-suggestion'!=_0x3efd18||'insertion'!=_0x153631&&'deletion'!=_0x153631)continue;_0x5ca50f[_0x1994bd]['markersEnd']['splice'](_0x1264c5,0x1),_0x1264c5--;const _0x1ebfb4=_0x41ca78['findIndex'](_0x16e82c=>_0x16e82c['name']==_0x4f868f);_0x1ebfb4>-0x1&&_0x41ca78['splice'](_0x1ebfb4,0x1);}}function _0x278fd6(_0x2e3163){const _0x1600e5=_0x2e3163['split'](':');return{'group':_0x1600e5[0x0],'type':_0x1600e5[0x1],'subType':_0x1600e5['length']>=0x5?_0x1600e5[0x2]:null,'id':_0x1600e5['length']<0x5?_0x1600e5[0x2]:_0x1600e5[0x3],'authorId':_0x1600e5['length']<0x5?_0x1600e5[0x3]:_0x1600e5[0x4],'markerCount':0x6==_0x1600e5['length']?_0x1600e5[0x5]:null};}function _0x3e8122(_0x30de5d){for(let _0x572417=0x0;_0x572417<_0x41ca78['length'];_0x572417++){if(_0x30de5d['isAdded']&&'insertion'==_0x41ca78[_0x572417]['type'])return _0x30de5d['isAddSuggestion']=_0x41ca78[_0x572417],void delete _0x30de5d['isAdded'];if(!_0x30de5d['isAdded']&&!_0x30de5d['isRemoved']&&'deletion'==_0x41ca78[_0x572417]['type'])return void(_0x30de5d['isRemoveSuggestion']=_0x41ca78[_0x572417]);}}}['_setDistance'](_0x51648f,_0x46c1ea){let _0x41c873=0x0,_0x5cfbba=!0x1;const _0x1d49b8=new Map();for(const _0x1c7840 of _0x51648f)_0x1c7840[_0x46c1ea]?_0x5cfbba&&(_0x41c873++,_0x5cfbba=!0x1):(_0x41c873++,_0x5cfbba=!0x0),_0x1d49b8['set'](_0x1c7840['id'],_0x41c873);for(let _0x2ddb43=0x0;_0x2ddb43<_0x51648f['length'];_0x2ddb43++){if('isRemoved'==_0x46c1ea&&_0x51648f[_0x2ddb43]['isAdded']||'isAdded'==_0x46c1ea&&_0x51648f[_0x2ddb43]['isRemoved'])continue;if('text'==_0x51648f[_0x2ddb43]['type']){_0x51648f[_0x2ddb43]['distance']=0x0;continue;}const _0xd32339=_0x1d49b8['get'](_0x51648f[_0x2ddb43]['pairId']),_0x1b0b37=_0x1d49b8['get'](_0x51648f[_0x2ddb43]['id']);_0x51648f[_0x2ddb43]['distance']=_0xd32339-_0x1b0b37;}}['_getRevisionsRange'](_0x11767b,_0x2b2be7,_0x10f321=!0x1){const _0x483449=[];let _0x463506=this['repository']['getIndex'](_0x11767b),_0x1f9c7f=this['repository']['getIndex'](_0x2b2be7);for(-0x1==_0x1f9c7f&&(_0x1f9c7f=this['repository']['_revisions']['length'],_0x10f321=!0x1);_0x463506<_0x1f9c7f;)_0x483449['push'](this['repository']['getRevision'](_0x463506)),_0x463506++;return _0x10f321&&_0x483449['push'](this['repository']['getRevision'](_0x463506)),_0x483449;}['_threeWayMerge'](_0x1362e7,_0x215547,_0x1dc4a0,_0x2a4e48){const _0x115bcf=this['editor']['model']['schema'];let _0x200312=_0x215547;for(;_0x1362e7[_0x200312]&&_0x1362e7[_0x200312]['isAdded'];)_0x200312++;let _0x20da61=_0x2a4e48;for(;_0x1dc4a0[_0x20da61]&&_0x1dc4a0[_0x20da61]['isRemoved'];)_0x20da61++;_0x10d60b(_0x1362e7,_0x215547,_0x200312),_0x10d60b(_0x1dc4a0,_0x2a4e48,_0x20da61);const _0x247b59=_0x1dc4a0['slice'](_0x2a4e48,_0x20da61)['concat'](_0x1362e7['slice'](_0x215547,_0x200312));return _0x247b59['sort']((_0x2cd9eb,_0x5532d3)=>_0x2cd9eb['side']!=_0x5532d3['side']?_0x2cd9eb['side']-_0x5532d3['side']:_0x2cd9eb['level']!=_0x5532d3['level']?_0x2cd9eb['level']-_0x5532d3['level']:_0x2cd9eb['distance']!=_0x5532d3['distance']?_0x5532d3['distance']-_0x2cd9eb['distance']:!!_0x2cd9eb['isAdded']!=!!_0x5532d3['isAdded']?-0x1==_0x2cd9eb['side']||0x0==_0x2cd9eb['side']?_0x2cd9eb['isAdded']?-0x1:0x1:_0x2cd9eb['isAdded']?0x1:-0x1:_0x2cd9eb['index']-_0x5532d3['index']),{'commonTape':_0x247b59,'iEnd':_0x200312,'jEnd':_0x20da61};function _0x10d60b(_0x319f0e,_0x2af40d,_0x28bd8a){let _0x4c4945=-0x1,_0x9e57cb=Number['POSITIVE_INFINITY'],_0x5edcd3=!0x0;for(let _0x2c1a17=_0x2af40d;_0x2c1a17<_0x28bd8a;_0x2c1a17++)if(_0x115bcf['isInline'](_0x319f0e[_0x2c1a17]['item'])||(_0x5edcd3=!0x1),_0x319f0e[_0x2c1a17]['item']['startIndex']<_0x2af40d&&(_0x4c4945=_0x2c1a17),_0x319f0e[_0x2c1a17]['item']['endIndex']>=_0x28bd8a){_0x9e57cb=_0x2c1a17;break;}_0x5edcd3&&(_0x4c4945=_0x28bd8a-0x1);for(let _0x36bc39=_0x2af40d;_0x36bc39<_0x28bd8a;_0x36bc39++)_0x319f0e[_0x36bc39]['side']=_0x36bc39<=_0x4c4945?-0x1:_0x36bc39<_0x9e57cb?0x0:0x1,_0x319f0e[_0x36bc39]['index']=_0x36bc39;let _0x1e3b7e=0x0;for(let _0x247509=_0x2af40d;_0x247509<=_0x4c4945;_0x247509++)0x0==_0x319f0e[_0x247509]['distance']?_0x319f0e[_0x247509]['level']=_0x1e3b7e:(_0x1e3b7e++,_0x319f0e[_0x247509]['level']=_0x1e3b7e,_0x1e3b7e++);for(let _0x348dab=_0x2af40d;_0x348dab<_0x28bd8a;_0x348dab++)0x0==_0x319f0e[_0x348dab]['side']&&(_0x319f0e[_0x348dab]['level']=_0x1e3b7e);_0x1e3b7e=0x0;for(let _0x105c1a=_0x28bd8a-0x1;_0x105c1a>=_0x9e57cb;_0x105c1a--)0x0==_0x319f0e[_0x105c1a]['distance']?_0x319f0e[_0x105c1a]['level']=_0x1e3b7e:(_0x1e3b7e--,_0x319f0e[_0x105c1a]['level']=_0x1e3b7e,_0x1e3b7e--);}}['_fixObsoleteTags'](_0x5b5b06){const _0xeafc5d=new Map(),_0xe9a752=this['editor']['model']['schema'];for(let _0x57a2fe=0x1;_0x57a2fe<_0x5b5b06['length'];_0x57a2fe++){let _0x504211,_0x176562,_0x3c8ab4;const _0x1d3643=_0x5b5b06[_0x57a2fe],_0xe7b3a5=_0x5b5b06[_0x57a2fe-0x1];if('text'==_0x1d3643['type'])continue;if(_0x1d3643['type']!=_0xe7b3a5['type'])continue;if(!_0xe9a752['isBlock'](_0xe7b3a5['item'])||_0xe9a752['isLimit'](_0xe7b3a5['item']))continue;if(!_0xe9a752['isBlock'](_0x1d3643['item'])||_0xe9a752['isLimit'](_0x1d3643['item']))continue;if((_0x5b5b06[_0x57a2fe]['isAdded']||_0x5b5b06[_0x57a2fe]['isAddSuggestion'])&&_0x5b5b06[_0x57a2fe-0x1]['isRemoved'])_0x504211=_0x5b5b06[_0x57a2fe],_0x176562=_0x5b5b06[_0x57a2fe-0x1],_0x3c8ab4=_0x57a2fe-0x1;else{if(!_0x5b5b06[_0x57a2fe]['isRemoved']||!_0x5b5b06[_0x57a2fe-0x1]['isAdded']&&!_0x5b5b06[_0x57a2fe-0x1]['isAddSuggestion'])continue;_0x504211=_0x5b5b06[_0x57a2fe-0x1],_0x176562=_0x5b5b06[_0x57a2fe],_0x3c8ab4=_0x57a2fe;}const _0x5e92d0=_0x504211['level']==_0x176562['level'],_0x4d04a7=Math['abs'](_0x504211['level'])<Math['abs'](_0x176562['level'])&&0x0==_0x176562['distance'];(_0x5e92d0||_0x4d04a7)&&(_0xeafc5d['set'](_0x176562['id'],_0x504211['id']),_0x5b5b06['splice'](_0x3c8ab4,0x1),_0x57a2fe--,_0x504211['isAdded']=!0x1);}for(let _0x3e7ea4=0x0;_0x3e7ea4<_0x5b5b06['length'];_0x3e7ea4++)_0xeafc5d['has'](_0x5b5b06[_0x3e7ea4]['pairId'])&&(_0x5b5b06[_0x3e7ea4]['pairId']=_0xeafc5d['get'](_0x5b5b06[_0x3e7ea4]['pairId']));}['_removeMissingPairs'](_0x136a6d){const _0x584409=new Set(_0x136a6d['map'](_0x50e67d=>_0x50e67d['id']));for(let _0x5da352=0x0;_0x5da352<_0x136a6d['length'];_0x5da352++)_0x584409['has'](_0x136a6d[_0x5da352]['pairId'])||0x0==_0x136a6d[_0x5da352]['distance']||(_0x136a6d[_0x5da352]['isIncorrect']=!0x0);return _0x136a6d['filter'](_0x187ce5=>!_0x187ce5['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4be1df){const _0x3c5e12=new Set();for(let _0x344c98=0x0;_0x344c98<_0x4be1df['length'];_0x344c98++){if(_0x3c5e12['has'](_0x4be1df[_0x344c98]['id'])&&_0x4be1df[_0x344c98]['isRemoved']&&(_0x4be1df[_0x344c98]['isIncorrect']=!0x0),_0x4be1df[_0x344c98]['isIncorrect'])continue;if(0x0==_0x4be1df[_0x344c98]['distance'])continue;if('elementStart'!=_0x4be1df[_0x344c98]['type'])continue;if(null==_0x4be1df[_0x344c98]['pairId'])continue;let _0x26bb7a=_0x344c98+0x1,_0x3e1c55=0x0;for(;_0x4be1df[_0x26bb7a]['id']!=_0x4be1df[_0x344c98]['pairId'];)'elementStart'==_0x4be1df[_0x26bb7a]['type']?_0x3e1c55++:'elementEnd'==_0x4be1df[_0x26bb7a]['type']&&_0x3e1c55--,_0x26bb7a++;if(0x0!=_0x3e1c55){if(_0x4be1df[_0x344c98]['isRemoved'])_0x4be1df[_0x344c98]['isIncorrect']=!0x0;else{for(;_0x26bb7a!=_0x344c98;)_0x4be1df[_0x26bb7a]['isRemoved']&&0x0!=_0x4be1df[_0x26bb7a]['distance']&&(_0x4be1df[_0x26bb7a]['isIncorrect']=!0x0,_0x3c5e12['add'](_0x4be1df[_0x26bb7a]['pairId'])),_0x26bb7a--;}}}return _0x4be1df['filter'](_0x5843ff=>!_0x5843ff['isIncorrect']);}['_removeUnsupportedChanges'](_0x8c9caa){const _0x1a089e=this['editor']['model']['schema'];for(let _0x2b87fd=0x0;_0x2b87fd<_0x8c9caa['length'];_0x2b87fd++){if(!(_0x8c9caa[_0x2b87fd]['isAdded']||_0x8c9caa[_0x2b87fd]['isAddSuggestion']||_0x8c9caa[_0x2b87fd]['isRemoved']||_0x8c9caa[_0x2b87fd]['isRemoveSuggestion']))continue;if(0x0==_0x8c9caa[_0x2b87fd]['distance'])continue;const _0x215ea3=_0x8c9caa[_0x2b87fd]['item'];_0x1a089e['isBlock'](_0x215ea3)||_0x1a089e['isLimit'](_0x215ea3)||(_0x8c9caa[_0x2b87fd]['isAdded']&&delete _0x8c9caa[_0x2b87fd]['isAdded'],_0x8c9caa[_0x2b87fd]['isAddSuggestion']&&delete _0x8c9caa[_0x2b87fd]['isAddSuggestion'],_0x8c9caa[_0x2b87fd]['isRemoveSuggestion']&&delete _0x8c9caa[_0x2b87fd]['isRemoveSuggestion'],_0x8c9caa[_0x2b87fd]['isRemoved']&&(_0x8c9caa[_0x2b87fd]['isIncorrect']=!0x0));}return _0x8c9caa['filter'](_0x56ee74=>!_0x56ee74['isIncorrect']);}['_makeModelFromTape'](_0x720d4c,_0x324503,_0xec3f19){const _0x35918e=new wt(),_0x38794a=[],_0x502a07=new Map(),_0x7c1729=this['editor']['model'],_0x55eccf=_0x7c1729['schema'],_0x405ba5=[_0x35918e],_0x2413e2={},_0x1feb98={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x6ac410=null;const _0x15e2ca=[0x0];for(let _0x1c2fca=0x0;_0x1c2fca<_0x720d4c['length'];_0x1c2fca++)if('elementStart'===_0x720d4c[_0x1c2fca]['type']){_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca);const _0x3306df=new ft(_0x720d4c[_0x1c2fca]['item']['name'],_0x720d4c[_0x1c2fca]['item']['getAttributes']());_0x405ba5[0x0]['_appendChild'](_0x3306df),_0x15e2ca['push'](0x0),_0x405ba5['unshift'](_0x3306df),_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca);}else'elementEnd'===_0x720d4c[_0x1c2fca]['type']?(_0x405ba5['shift'](),_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca),_0x15e2ca['pop'](),_0x15e2ca[_0x15e2ca['length']-0x1]++,_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca)):(_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca),_0x6ac410?_0x6ac410['_data']+=_0x720d4c[_0x1c2fca]['item']['data']:_0x6ac410=new _t(_0x720d4c[_0x1c2fca]['item']['data'],_0x720d4c[_0x1c2fca]['item']['getAttributes']()),_0x720d4c[_0x1c2fca+0x1]&&'text'===_0x720d4c[_0x1c2fca+0x1]['type']&&_0x160049(_0x6ac410,_0x720d4c[_0x1c2fca+0x1]['item'])||(_0x405ba5[0x0]['_appendChild'](_0x6ac410),_0x6ac410=null),_0x15e2ca[_0x15e2ca['length']-0x1]+=_0x720d4c[_0x1c2fca]['item']['offsetSize'],_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca));for(let _0x1c959e=0x0;_0x1c959e<_0x720d4c['length'];_0x1c959e++){const _0x42f613=_0x720d4c[_0x1c959e]['previousPosition'],_0x1449e5=_0x720d4c[_0x1c959e]['nextPosition'];for(const _0x4228ea of _0x720d4c[_0x1c959e]['markersStart'])_0x502a07['set'](_0x4228ea,{'start':_0x42f613,'end':null});_0x2a309c('isRemoveSuggestion',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isAddSuggestion',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isRemoved',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isAdded',_0x1c959e,_0x42f613,_0x1449e5);for(const _0x594c90 of _0x720d4c[_0x1c959e]['markersEnd']){_0x502a07['get'](_0x594c90)['end']=_0x1449e5;}}for(const [_0x3621c8,_0x1b121f]of _0x502a07){const _0x423102=this['editor']['model']['createRange'](_0x1b121f['start'],_0x1b121f['end']);_0x35918e['markers']['set'](_0x3621c8,_0x423102);}return _0x38794a['sort']((_0x46976a,_0x2dad2b)=>{const _0x1663d5=_0x35918e['markers']['get']('revision:'+_0x46976a['id']),_0x3ebd44=_0x35918e['markers']['get']('revision:'+_0x2dad2b['id']);return _0x1663d5['start']['isBefore'](_0x3ebd44['start'])?-0x1:_0x1663d5['start']['isAfter'](_0x3ebd44['start'])?0x1:_0x1663d5['end']['isBefore'](_0x3ebd44['end'])?-0x1:_0x1663d5['end']['isAfter'](_0x3ebd44['end'])?0x1:'add'===_0x46976a['type']?-0x1:0x1;}),{'root':_0x35918e,'changes':_0x38794a};function _0x2a309c(_0x17e5cd,_0x428182,_0x31921c,_0x51a500){const _0x38fc9e=!!_0x720d4c[_0x428182][_0x17e5cd],_0x3a7a0d=_0x38fc9e?_0x720d4c[_0x428182][_0x17e5cd]['userId']:null,_0x19917b=_0x428182===_0x720d4c['length']-0x1,_0x30a8c3=_0x1feb98[_0x17e5cd][0x0],_0x3aa00f=_0x55eccf['isObject'](_0x720d4c[_0x428182]['item']);!_0x2413e2[_0x17e5cd]&&_0x38fc9e?_0x2413e2[_0x17e5cd]={'start':_0x31921c,'tapeItem':_0x720d4c[_0x428182],'userId':_0x3a7a0d,'type':_0x17e5cd}:_0x2413e2[_0x17e5cd]&&!_0x38fc9e?(_0x2413e2[_0x17e5cd]['end']=_0x31921c,_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]=null):_0x2413e2[_0x17e5cd]&&_0x38fc9e&&_0x2413e2[_0x17e5cd]['userId']!==_0x3a7a0d&&(_0x2413e2[_0x17e5cd]['end']=_0x31921c,_0x30a8c3&&_0x30a8c3['userId']===_0x2413e2[_0x17e5cd]['userId']||_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]={'start':_0x31921c,'tapeItem':_0x720d4c[_0x428182],'userId':_0x3a7a0d,'type':_0x17e5cd}),_0x2413e2[_0x17e5cd]&&_0x3aa00f&&('elementStart'!==_0x720d4c[_0x428182]['type']||_0x30a8c3&&_0x30a8c3['userId']===_0x3a7a0d||_0x1feb98[_0x17e5cd]['unshift']({'userId':_0x3a7a0d,'object':_0x720d4c[_0x428182]['item'],'change':_0x2413e2[_0x17e5cd]}),'elementEnd'===_0x720d4c[_0x428182]['type']&&_0x30a8c3&&_0x30a8c3['object']===_0x720d4c[_0x428182]['item']&&(_0x1feb98[_0x17e5cd]['shift'](),_0x2413e2[_0x17e5cd]=_0x30a8c3['change'])),_0x2413e2[_0x17e5cd]&&_0x19917b&&(_0x2413e2[_0x17e5cd]['end']=_0x51a500,_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]=null);}function _0x338464({start:_0x1aa512,end:_0xff4cf6,tapeItem:_0x4e3d48,userId:_0x33b825,type:_0x47828b}){const _0xcaf971=_0x4e3d48['item'],_0x442289=_0x7c1729['schema']['isBlock'](_0xcaf971)&&!_0x7c1729['schema']['isLimit'](_0xcaf971),_0x1d5025=_0x1aa512['nodeAfter']==_0xff4cf6['parent']&&_0xff4cf6['isAtStart'];if(_0x442289&&_0x1d5025)return;const _0x18d8d3=_0x7c1729['createRange'](_0x1aa512,_0xff4cf6),_0x10bdf6=_0x324503['get'](_0x33b825),_0x2ff90e=new r({'author':_0x10bdf6,'type':'isAdded'==_0x47828b||'isAddSuggestion'==_0x47828b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x47828b||'isRemoveSuggestion'==_0x47828b},'createdAt':new Date(),'rootName':_0xec3f19});_0x38794a['push'](_0x2ff90e),_0x35918e['markers']['set']('revision:'+_0x2ff90e['id'],_0x18d8d3);}function _0x160049(_0x11a51a,_0xff702e){const _0x4dac59=_0x11a51a['getAttributes'](),_0x52ec91=_0xff702e['getAttributes']();for(const _0x307189 of _0x4dac59){if(_0x307189[0x1]!==_0xff702e['getAttribute'](_0x307189[0x0]))return!0x1;_0x52ec91['next']();}return _0x52ec91['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x12ef21=>{const _0x48d509=_0x12ef21['markerName']['split'](':')[0x1],_0x186a14=this['_getChangeFromId'](_0x48d509);if(!_0x186a14)return null;const _0x4ac026='add'==_0x186a14['type']?'insertion':'deletion',_0x4e9a06=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4ac026];return _0x186a14['data']['isSuggestion']&&_0x4e9a06['push']('ck-suggestion-marker-'+_0x4ac026+'-new'),this['activeChange']==_0x186a14&&_0x4e9a06['push']('ck-suggestion-marker--active'),{'classes':_0x4e9a06,'attributes':{'data-change-id':_0x48d509}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x300b66=>{_0x300b66['on']('element:pre',(_0x5468e8,_0x50c95e,_0x3a803e)=>{const _0x3f63e2=_0x50c95e['viewItem']['getChild'](0x0);if(!_0x3f63e2||!_0x3f63e2['is']('element','code'))return;if(!_0x3a803e['consumable']['consume'](_0x3f63e2,{'attributes':['vid_start','vid_end']}))return;const _0x2bee65=_0x50c95e['modelRange']['start']['nodeAfter'];_0x3a803e['writer']['setAttribute']('vid_start',_0x3f63e2['getAttribute']('vid_start'),_0x2bee65),_0x3a803e['writer']['setAttribute']('vid_end',_0x3f63e2['getAttribute']('vid_end'),_0x2bee65);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x58e7c2=>{_0x58e7c2['on']('element',(_0x140bd1,_0x3ebe38,_0x4ea50f)=>{if(!_0x4ea50f['consumable']['consume'](_0x3ebe38['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ebe38['modelRange']['isCollapsed'])return;const _0x2ea93a=_0x3ebe38['modelRange']['start']['nodeAfter'];_0x2ea93a['hasAttribute']('vid_start')||_0x2ea93a['hasAttribute']('vid')||(_0x4ea50f['writer']['setAttribute']('vid_start',_0x3ebe38['viewItem']['getAttribute']('vid_start'),_0x2ea93a),_0x4ea50f['writer']['setAttribute']('vid_end',_0x3ebe38['viewItem']['getAttribute']('vid_end'),_0x2ea93a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x556a3d=>_0x556a3d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2f32c0,[,_0x1ac732])=>{['vid_start','vid_end','vid']['includes'](_0x1ac732)&&(_0x2f32c0['return']=!0x0,_0x2f32c0['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x149cfb=>{_0x149cfb['on']('attribute:vid',(_0x5a34f1,_0x33855f,_0x28468a)=>{if('\x20'!=_0x33855f['item']['data']||_0x33855f['item']['parent']['maxOffset']>0x1)return;if(!_0x28468a['consumable']['consume'](_0x33855f['item'],_0x5a34f1['name']))return;const _0x1ce5db=_0x28468a['writer'],_0x541f08=_0x28468a['mapper']['toViewRange'](_0x33855f['range']);_0x1ce5db['wrap'](_0x541f08,_0x1ce5db['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x342ba4){const _0x4e1d21=_0x342ba4['plugins']['get']('RevisionViewer');return(_0x1b617b,_0x741401,_0x16da06)=>{const _0x1b6abc=_0x741401['markerName']['split'](':')[0x1],_0x46165e=_0x4e1d21['_getChangeFromId'](_0x1b6abc);if(!_0x46165e)return null;const _0x1818c6='add'==_0x46165e['type']?'split':'merge';if(!_0x16da06['consumable']['test'](_0x741401['markerRange'],_0x1b617b['name']))return;const _0x198466=_0x741401['markerRange']['getWalker'](),_0x42ef35=_0x741401['markerRange']['start'],_0x53329e=_0x342ba4['model']['schema'];let _0x161404=null,_0x3d52bd=null,_0x413ce5=!0x1,_0x5d106c=!0x1;for(const _0x28cd05 of _0x198466){const _0x13191d=_0x28cd05['item'];_0x413ce5=_0x413ce5||_0x53329e['isContent'](_0x13191d);const _0xbb87d1=_0x16da06['mapper']['toViewElement'](_0x13191d);if(_0xbb87d1&&_0xbb87d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x28cd05['type']&&(_0x53329e['isBlock'](_0x13191d)&&!_0x53329e['isLimit'](_0x13191d)&&(_0x13191d['nextSibling']||_0x42ef35['isAtEnd']?_0x161404&&_0x161404['parent']==_0x13191d||(_0x161404=_0x13191d,_0x488a52(_0x28cd05['previousPosition']),_0x5d106c=!0x0):_0x3d52bd=_0x3d52bd||_0x28cd05['previousPosition']));}function _0x488a52(_0x275a18){const _0x4de643=_0x16da06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1818c6}),_0x3c6bb4=_0x16da06['mapper']['toViewPosition'](_0x275a18);_0x46165e['data']['isSuggestion']&&_0x16da06['writer']['addClass']('ck-suggestion-marker-'+_0x1818c6+'-new',_0x4de643),_0x4e1d21['activeChange']==_0x46165e&&_0x16da06['writer']['addClass']('ck-suggestion-marker--active',_0x4de643),_0x16da06['writer']['insert'](_0x3c6bb4,_0x4de643),_0x16da06['mapper']['bindElementToMarker'](_0x4de643,_0x741401['markerName']);}_0x413ce5||_0x5d106c||!_0x3d52bd||_0x488a52(_0x3d52bd);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x26e809,_0x28ce1f,_0x32c813)=>{const _0x3a2515=_0x32c813['mapper']['markerNameToElements'](_0x28ce1f['markerName']);if(_0x3a2515){for(const _0x52b34f of _0x3a2515)(_0x52b34f['hasClass']('ck-suggestion-marker-split')||_0x52b34f['hasClass']('ck-suggestion-marker-merge'))&&(_0x32c813['mapper']['unbindElementFromMarkerName'](_0x52b34f,_0x28ce1f['markerName']),_0x32c813['writer']['remove'](_0x52b34f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x52af8e,_0x5430e4,_0x1011bd)=>{const _0x2edfb5=_0x5430e4['markerName']['split'](':')[0x1],_0x852d9d=this['_getChangeFromId'](_0x2edfb5);if(!_0x852d9d)return null;const _0x3bf632='add'==_0x852d9d['type']?'split':'merge';if(_0x1011bd['consumable']['test'](_0x5430e4['markerRange'],_0x52af8e['name']))for(const _0x20509f of _0x5430e4['markerRange']['getItems']()){if(!_0x20509f['is']('element','softBreak'))continue;const _0x40a078=_0x1011bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3bf632}),_0x1ab5a0=_0x1011bd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x20509f));_0x852d9d['data']['isSuggestion']&&_0x1011bd['writer']['addClass']('ck-suggestion-marker-'+_0x3bf632+'-new',_0x40a078),this['activeChange']==_0x852d9d&&_0x1011bd['writer']['addClass']('ck-suggestion-marker--active',_0x40a078),_0x1011bd['writer']['insert'](_0x1ab5a0,_0x40a078),_0x1011bd['mapper']['bindElementToMarker'](_0x40a078,_0x5430e4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x41a2ab=>{for(const _0x14bfe3 of this['editor']['model']['document']['getRootNames']()){const _0x31af72=this['editor']['model']['document']['getRoot'](_0x14bfe3),_0x166b94=this['editor']['editing']['view']['document']['getRoot'](_0x14bfe3);if(_0x166b94){const _0x2e8fc3=_0x31af72['getAttribute']('revisionHistoryAttachChange');if(_0x41a2ab['removeAttribute']('data-change-id',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root-add',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root-remove',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root--active',_0x166b94),_0x2e8fc3){const _0x340c97=this['_getChangeFromId'](_0x2e8fc3);if(!_0x340c97)return null;_0x41a2ab['setAttribute']('data-change-id',_0x2e8fc3,_0x166b94),_0x41a2ab['addClass']('ck-revision-history-root-'+_0x340c97['type'],_0x166b94),this['activeChange']==_0x340c97&&_0x41a2ab['addClass']('ck-revision-history-root--active',_0x166b94);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xc73da7=>'revision-comment:'+_0xc73da7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x494d71=>'revision-suggestion:'+_0x494d71,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x13c7fc=>({'name':'suggestion:'+_0x13c7fc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3307e0=>{const _0x3f9950=_0x3307e0['markerName']['split'](':')[0x1];return'insertion'!=_0x3f9950&&'deletion'!=_0x3f9950?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3f9950]};}}),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',(_0x40c28d,_0x19041e,_0x511397)=>{const _0x4474bd=_0x511397['mapper']['markerNameToElements'](_0x19041e['markerName']);if(_0x4474bd){for(const _0x62ede1 of _0x4474bd)_0x62ede1['is']('uiElement')&&(_0x511397['mapper']['unbindElementFromMarkerName'](_0x62ede1,_0x19041e['markerName']),_0x511397['writer']['remove'](_0x62ede1));}},{'priority':'high'});}['_getChangeFromId'](_0x5be9ce){return this['_changeIdToChange']['get'](_0x5be9ce);}['_getViewForChange'](_0x5a821a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5a821a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x113ba6,_0x283d78,_0x246a70,_0x4c6505)=>{_0x4c6505&&this['_balloon']['remove'](_0x4c6505),_0x246a70&&(this['_balloon']['add']({'view':_0x246a70,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x29a0f3=this['editor']['editing'],_0x54bf4b=this['_getChangeFromId'](_0x246a70['changeId']);let _0x300987;if(_0x54bf4b['data']['isOnRoot']){const _0x541663=_0x29a0f3['view']['getDomRoot'](_0x54bf4b['rootName']);_0x300987=Array['from'](_0x541663['getClientRects']());}else{const _0x4917a8=this['editor']['model']['markers']['get']('revision:'+_0x246a70['changeId']);_0x300987=Array['from'](_0x29a0f3['mapper']['markerNameToElements'](_0x4917a8['name']))['map'](_0x4ff298=>_0x29a0f3['view']['domConverter']['mapViewToDom'](_0x4ff298))['map'](_0x391efd=>Array['from'](_0x391efd['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x300987[0x0];return _0x300987['find'](_0xeedcd2=>_0xeedcd2['top']-0x3<=this['_activeViewTarget']['y']&&_0xeedcd2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xeedcd2['left']-0x3<=this['_activeViewTarget']['x']&&_0xeedcd2['right']+0x3>=this['_activeViewTarget']['x'])||_0x300987[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x280fbc,_0x1b8edc,_0x32aee,_0x245756)=>{this['activeView']=_0x32aee?this['_getViewForChange'](_0x32aee):null,this['editor']['model']['change'](()=>{const _0xb23f5a=this['editor']['editing'];_0x245756&&(_0x245756['data']['isOnRoot']?_0xb23f5a['view']['change'](_0x2e2f10=>{_0x2e2f10['removeClass']('ck-revision-history-root--active',_0xb23f5a['view']['document']['getRoot'](_0x245756['rootName']));}):_0xb23f5a['reconvertMarker']('revision:'+_0x245756['id'])),_0x32aee&&(_0x32aee['data']['isOnRoot']?_0xb23f5a['view']['change'](_0x49ca3c=>{_0x49ca3c['addClass']('ck-revision-history-root--active',_0xb23f5a['view']['document']['getRoot'](_0x32aee['rootName']));}):_0xb23f5a['reconvertMarker']('revision:'+_0x32aee['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xf584da,_0x5e291c)=>{if(this['activeChange'])return;const _0x47b78a=this['_findChangeIdFromDomTarget'](_0x5e291c['target']),_0xf73df5=this['_changeIdToChange']['get'](_0x47b78a);_0xf73df5?(this['_activeViewTarget']={'x':_0x5e291c['domEvent']['x'],'y':_0x5e291c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf73df5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2871e9,_0x2bc8e6)=>{const _0x8330ec=this['_findChangeIdFromDomTarget'](_0x2bc8e6['target']),_0x283e75=this['_changeIdToChange']['get'](_0x8330ec);_0x283e75?(this['_activeViewTarget']={'x':_0x2bc8e6['domEvent']['x'],'y':_0x2bc8e6['domEvent']['y']},_0x283e75===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x283e75):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x17d6e7){do{const _0x4924dd=_0x17d6e7['getAttribute']('data-change-id');if(_0x4924dd)return _0x4924dd;_0x17d6e7=_0x17d6e7['parent'];}while(_0x17d6e7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x50f901=>{for(const _0x4d75ec of this['editor']['model']['markers'])_0x50f901['removeMarker'](_0x4d75ec);});}}function tt(_0x2312b8,_0x56a552){return(_0x4a173b,_0x5a03a3,_0x2187e5)=>{if(!_0x2187e5['consumable']['test'](_0x5a03a3['markerRange'],_0x4a173b['name']))return;const _0x48eddd=_0x5a03a3['markerRange']['getWalker'](),_0x599c64=_0x5a03a3['markerRange']['start'],_0x5938cd=_0x2312b8['model']['schema'];let _0x4866cc=null,_0x2d8324=null,_0x5907a1=!0x1,_0x4e21ec=!0x1;for(const _0x4fd88b of _0x48eddd){const _0x34e312=_0x4fd88b['item'];_0x5907a1=_0x5907a1||_0x5938cd['isContent'](_0x34e312);const _0x47999f=_0x2187e5['mapper']['toViewElement'](_0x34e312);if(_0x47999f&&_0x47999f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4fd88b['type']&&(_0x5938cd['isBlock'](_0x34e312)&&!_0x5938cd['isLimit'](_0x34e312)&&(_0x34e312['nextSibling']||_0x599c64['isAtEnd']?_0x4866cc&&_0x4866cc['parent']==_0x34e312||(_0x4866cc=_0x34e312,_0x46a080(_0x4fd88b['previousPosition']),_0x4e21ec=!0x0):_0x2d8324=_0x2d8324||_0x4fd88b['previousPosition']));}function _0x46a080(_0x5e9df8){const _0x3b031e=_0x2187e5['mapper']['toViewPosition'](_0x5e9df8),_0x54f687=_0x2187e5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x56a552});_0x2187e5['writer']['insert'](_0x3b031e,_0x54f687),_0x2187e5['mapper']['bindElementToMarker'](_0x54f687,_0x5a03a3['markerName']);}_0x5907a1||_0x4e21ec||!_0x2d8324||_0x46a080(_0x2d8324);};}class yt extends _0x455b3a{constructor(_0x3640a3){super(_0x3640a3);const _0x48189c=_0x3640a3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x48189c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x48189c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x25384e=this['editor'],_0x16f9a6=_0x25384e['plugins']['get'](d),_0x31f2c8=_0x16f9a6['isReady']?_0x16f9a6['diff']['newRevisionId']:null;_0x25384e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31f2c8);}['refresh'](){const {isReady:_0x5ed7e7,isEnabled:_0x3180de,repository:_0x35e437,diff:_0xe48d5c}=this['editor']['plugins']['get'](d),_0x268578=_0xe48d5c&&_0x35e437['getLaterVisibleRevision'](_0xe48d5c['newRevisionId']);this['isEnabled']=_0x5ed7e7&&_0x3180de&&Boolean(_0x268578);}}class bt extends _0x455b3a{['_step'];constructor(_0x34d7bf,{direction:_0x527ad8}){super(_0x34d7bf);const _0x5cf3ca=_0x34d7bf['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x527ad8?0x1:-0x1,this['listenTo'](_0x5cf3ca,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5cf3ca,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5cf3ca,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x188411=this['editor'],_0x320e93=_0x188411['plugins']['get'](d),{isNavigationMode:_0x2f7754,currentChangeNumber:_0x3758b6}=_0x320e93;let _0x499577;if(_0x320e93['activeChange']=_0x2f7754?_0x320e93['diff']['changes']['get'](_0x3758b6+this['_step']):_0x320e93['diff']['changes']['first'],_0x320e93['activeChange']['data']['isOnRoot'])_0x499577=_0x188411['editing']['view']['getDomRoot'](_0x320e93['activeChange']['rootName']);else{const _0x276eaf=_0x188411['model']['markers']['get']('revision:'+_0x320e93['activeChange']['id']);_0x499577=_0x494947(_0x188411['editing'],_0x276eaf);}_0x1c6bfe({'target':_0x499577,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x17f5a9,currentChangeNumber:_0x5fe137,numberOfChanges:_0x462213,isReady:_0x24455c,isEnabled:_0x2b7526}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2b7526&&_0x24455c&&_0x462213)&&(!_0x17f5a9||(0x1===this['_step']?_0x5fe137<_0x462213-0x1:_0x5fe137>0x0));}}class _i extends _0x59c2ca{constructor(_0x3fbf8c){super(_0x3fbf8c);const _0x3185d1=this['bindTemplate'],_0x4e8041=new _0x3b013d(_0x3fbf8c),_0x2eddd2=new _0x3b013d(_0x3fbf8c);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',(_0x41b5e6,_0x3d2e5e)=>_0x41b5e6&&_0x3d2e5e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3bb14f,_0x36d0bb,_0x404058,_0x38f349)=>{if(!_0x3bb14f)return R(_0x3fbf8c,'Loading...');if(!_0x404058)return R(_0x3fbf8c,'No\x20changes');const _0x40f983=R(_0x3fbf8c,'NUMBER_OF_CHANGES',_0x404058);return _0x38f349?R(_0x3fbf8c,'X_OF_Y_CHANGES',[_0x36d0bb+0x1,_0x404058]):_0x40f983;}),_0x4e8041['set']({'label':R(_0x3fbf8c,'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'}),_0x2eddd2['set']({'label':R(_0x3fbf8c,'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'}),_0x4e8041['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2eddd2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e8041['on']('execute',()=>this['fire']('execute','backward')),_0x2eddd2['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',_0x3185d1['if']('_isStatusLabelVisible','ck-hidden',_0x2981f4=>!_0x2981f4)]},'children':[{'text':_0x3185d1['to']('isNavigationMode',_0x598029=>_0x598029?R(_0x3fbf8c,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3fbf8c,'Total')+':\x20')}]},{'text':_0x3185d1['to']('_statusText')}]},new _0x491304(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e8041,_0x2eddd2]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5a5f64{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1801ca=this['editor']['editing']['view'];_0x1801ca['change'](_0x3456f5=>{for(const _0x3adcaf of _0x1801ca['document']['roots'])_0x3456f5['addClass'](ce,_0x3adcaf);});}['hide'](){const _0x2c9021=this['editor']['editing']['view'];_0x2c9021['change'](_0x1c05f0=>{for(const _0x526475 of _0x2c9021['document']['roots'])_0x1c05f0['removeClass'](ce,_0x526475);});}}class m extends _0x5a5f64{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x4ad935=this['editor'],_0x547c4b=_0x4ad935['plugins']['get'](d),_0x5247e8=_0x4ad935['plugins']['get'](le);_0x4ad935['ui']['componentFactory']['add']('exitToEditing',_0x3f6276=>{const _0x3bde07=new _0x3b013d(_0x3f6276);return _0x3bde07['set']({'label':R(_0x3f6276,'Back\x20to\x20editing'),'icon':_0x2b22d2['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3bde07,'execute',()=>{_0x4ad935['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3bde07;}),_0x4ad935['ui']['componentFactory']['add']('restoreRevision',_0x3355fd=>{const _0x5ed90e=new _0x3b013d(_0x3355fd);return _0x5ed90e['set']({'label':R(_0x3355fd,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5ed90e['bind']('isEnabled')['to'](_0x4ad935['commands']['get']('restoreRevision')),this['listenTo'](_0x5ed90e,'execute',()=>_0x4ad935['execute']('restoreRevision')),_0x5ed90e;}),_0x4ad935['ui']['componentFactory']['add']('changesNavigation',_0x3f30fa=>{const _0xf4e6b5=new _i(_0x3f30fa),_0x559005=_0x4ad935['commands']['get']('showPreviousChange'),_0xb9a2c6=_0x4ad935['commands']['get']('showNextChange');return _0xf4e6b5['bind']('isBackwardNavigationEnabled')['to'](_0x559005,'isEnabled'),_0xf4e6b5['bind']('isForwardNavigationEnabled')['to'](_0xb9a2c6,'isEnabled'),_0xf4e6b5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x547c4b),this['listenTo'](_0xf4e6b5,'execute',(_0x275c7e,_0x53f63b)=>{_0x4ad935['execute']('forward'===_0x53f63b?'showNextChange':'showPreviousChange');}),_0xf4e6b5;}),_0x5247e8['show'](),_0x547c4b['on']('change:isReady',(_0x155681,_0x3dd84c,_0x174515)=>{_0x174515?_0x5247e8['hide']():_0x5247e8['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x3a77db,_0x64b8ce){super(_0x3a77db,_0x64b8ce);const _0x4d18e2=this['bindTemplate'];this['set']({'label':R(_0x3a77db,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3a77db,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4d18e2['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 _0xb04384=this['fieldView']['element'];this['_tooltipString']=_0xb04384['scrollWidth']>_0xb04384['clientWidth']&&_0xb04384['value']||'';}}class ti extends _0x59c2ca{constructor(_0x1e703d,_0x392d8f,_0x275852){super(_0x1e703d);const _0xa79f2f=new _0x58f379();_0xa79f2f['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 _0x483ffc=['ck','ck-revision-history-sidebar__revision-author'];_0x275852&&_0x483ffc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x53ca68=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1e703d,_0x275852?'Revision\x20creator':'Revision\x20author')},'children':[_0xa79f2f,_0x392d8f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x483ffc},'children':_0x53ca68});}}function ni(_0x277141,_0xa1b789){const _0x1cde6d=_0x277141['bindTemplate'],_0x3fa13a=_0x277141['locale'],_0x4a5227=_0x40e817(_0x3fa13a);_0x4a5227['panelPosition']='sw';const _0x325a83=function(_0x51cf05,_0x48acf6){const _0x3cb12f=function(_0x46f92a,_0x230ae4){const _0x55b19e=_0x46f92a['locale'],_0x200fd3={'Compare\x20against\x20selected':R(_0x55b19e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x55b19e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x55b19e,'Restore\x20this\x20revision')};return _0x230ae4['map'](_0x313e0e=>{const _0x3a4e66=_0x200fd3[_0x313e0e['name']];return _0x3a4e66&&_0x3a4e66!==_0x313e0e['name']&&(_0x313e0e['name']=_0x3a4e66),_0x313e0e;});}(_0x51cf05,_0x48acf6),_0x3a384f=new _0xc46275();for(const _0x103d7c of _0x3cb12f){const _0x559956={'type':'button','model':new to({'label':_0x103d7c['name'],'class':_0x103d7c['class'],'withText':!0x0,'role':'menuitem','_action':_0x103d7c['action']})};_0x559956['model']['bind']('isEnabled')['to'](_0x51cf05,'isActionsDropdownOpen',_0x5611bf=>'function'!=typeof _0x103d7c['isEnabled']||(!_0x5611bf||_0x103d7c['isEnabled'](_0x51cf05))),_0x3a384f['add'](_0x559956);}return _0x3a384f;}(_0x277141,_0xa1b789);return _0x277141['bind']('isActionsDropdownOpen')['to'](_0x4a5227,'isOpen'),_0x4a5227['buttonView']['set']({'label':R(_0x3fa13a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2b22d2['threeVerticalDots']}),_0x4a5227['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1cde6d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1cde6d['to'](_0x223df0=>_0x223df0['stopPropagation']())}}),_0x4a5227['on']('execute',_0x24766c=>{_0x277141['isReady']&&'function'==typeof _0x24766c['source']['_action']&&_0x24766c['source']['_action'](_0x277141);}),_0x1d8c31(_0x4a5227,_0x325a83,{'role':'menu'}),_0x4a5227['listenTo'](_0x277141,'change:isActionsDropdownOpen',(_0x1740a6,_0xf4a1f2,_0x1f5040)=>{if(_0x1f5040)for(const _0x27972b of _0x4a5227['listView']['items']){const _0x16509c=_0x27972b['children']['first'],_0x13114e=_0xa1b789['find'](_0x58b106=>_0x58b106['action']===_0x16509c['_action'])['isVisible'];_0x27972b['isVisible']=void 0x0===_0x13114e||_0x13114e(_0x277141);}}),_0x4a5227;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x3151ef(_0x59c2ca){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1bdfdb,_0x54596d,_0xfa0d9b,_0x566cb1){super(_0x1bdfdb);const _0x3239b3=this['bindTemplate'],_0x3cad78=function(_0x1f9618,_0x20e3be){const _0x4c52e0=Array['from'](_0x20e3be['authors'])['filter'](_0x3e5d29=>_0x3e5d29!=_0x20e3be['creator']);return _0x20e3be['creator']&&_0x4c52e0['unshift'](_0x20e3be['creator']),_0x4c52e0['map'](_0x3d7f7f=>new ti(_0x1f9618,_0x3d7f7f,_0x3d7f7f==_0x20e3be['creator']));}(_0x1bdfdb,_0x54596d);this['id']=_0x54596d['id'],this['_revision']=_0x54596d,this['_requireRevisionName']=_0x566cb1,this['bind']('name','createdAt')['to'](_0x54596d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x63956=>{return _0x2872cb=_0x1bdfdb['uiLanguage'],(_0x16effe=_0x63956)['toLocaleDateString'](_0x2872cb,{'month':'long','day':'numeric'})+',\x20'+_0x16effe['toLocaleTimeString'](_0x2872cb,{'hour':'numeric','minute':'numeric'});var _0x2872cb,_0x16effe;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x1bdfdb,_0x2931d8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3503e4=>_0x3503e4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x107f26,_0x5a26d7)=>_0x107f26&&_0x5a26d7),this['revisionActionsView']=_0xfa0d9b&&_0xfa0d9b['length']?ni(this,_0xfa0d9b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3239b3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3239b3['if']('isEnabled','ck-disabled',_0x1a1755=>!_0x1a1755),_0x3239b3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3239b3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3239b3['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':_0x3239b3['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':_0x3cad78}]},this['revisionActionsView']],'on':{'click':_0x3239b3['to'](_0x24c4d7=>{_0x24c4d7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b577a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1b577a,'change',()=>{this['_requireRevisionName']&&!_0x1b577a['value']||this['fire']('setName',{'id':this['id'],'name':_0x1b577a['value']}),_0x1b577a['value']||(_0x1b577a['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(_0x584a07,_0x1ab3de){const _0x490483=_0x3dbd8b['fromJSDate'](_0x584a07)['setLocale'](_0x1ab3de),_0xeb316d=_0x3dbd8b['local'](),_0x20e2bd=_0xeb316d['minus']({'days':0x1})['startOf']('day');let _0x175bda,_0xcf22c8;return _0x490483['hasSame'](_0xeb316d,'day')?(_0x175bda=_0x490483['startOf']('day')['toJSDate'](),_0xcf22c8=_0x490483['toRelativeCalendar']()):_0x490483['hasSame'](_0x20e2bd,'day')?(_0x175bda=_0x20e2bd['toJSDate'](),_0xcf22c8=_0x490483['toRelativeCalendar']()):_0x490483['hasSame'](_0xeb316d,'week')?(_0x175bda=_0x490483['startOf']('week')['toJSDate'](),_0xcf22c8=_0x490483['weekdayLong']||''):_0x490483['hasSame'](_0xeb316d,'year')?(_0x175bda=_0x490483['startOf']('month')['toJSDate'](),_0xcf22c8=_0x490483['monthLong']||''):(_0x175bda=_0x490483['startOf']('year')['toJSDate'](),_0xcf22c8=String(_0x490483['year'])),{'startDate':_0x175bda,'localizedPeriodName':_0xcf22c8};}class mi extends _0x59c2ca{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58b29b,_0x6fd646,_0x3935a4,_0x10d5b6){super(_0x58b29b);const _0x13afe6=di(_0x6fd646,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x6fd646,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3935a4,this['_requireRevisionName']=_0x10d5b6,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':_0x13afe6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54ccd0){const _0x99fcb9=new ai(this['locale'],_0x54ccd0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x99fcb9);}['removeRevision'](_0x5c0d3d){const _0x3dd76f=this['revisionViews']['find'](_0x524b7e=>_0x524b7e['id']===_0x5c0d3d['id']);this['revisionViews']['remove'](_0x3dd76f);}}class rs extends _0x59c2ca{constructor(_0x491366){super(_0x491366);const _0x4bce6b=new _0x58f379();_0x4bce6b['content']=_0x2b22d2['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4bce6b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x491366,'Revision\x20history')]}]});}}class ci extends _0x59c2ca{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3650e8,_0x92dc43,_0x36f038,_0x15a769){super(_0x3650e8);const _0x23bca1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x92dc43,this['_revisionActions']=_0x36f038,this['_requireRevisionName']=_0x15a769,this['on']('select',(_0x1a0c33,_0x35e8c7)=>{this['fire']('revisionSelected',_0x35e8c7);}),this['on']('setName',(_0x917d0d,_0x1fce9b)=>{this['fire']('revisionSetName',_0x1fce9b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x3650e8),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x23bca1['if']('isEnabled','ck-disabled',_0xe3668f=>!_0xe3668f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5364a0 of this['_revisions'])this['_addRevision'](_0x5364a0);this['_revisions']['on']('add',(_0x6eae1f,_0x418e21)=>{this['_addRevision'](_0x418e21);}),this['_revisions']['on']('remove',(_0x2f2af0,_0x53c9f6)=>{this['_removeRevision'](_0x53c9f6);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5a203b=>_0x5a203b['revisionViews']['map'](_0x5c3146=>_0x5c3146))['flat']();}['selectRevision'](_0x36a85b){for(const _0x9e8d1d of this['revisionViews'])_0x36a85b&&_0x36a85b['id']===_0x9e8d1d['id']?_0x9e8d1d['select']():_0x9e8d1d['deselect']();}['highlightRevisions'](_0x4cf5ae){for(const _0x1da81b of this['revisionViews'])_0x4cf5ae['some'](({id:_0x4d1d1c})=>_0x4d1d1c===_0x1da81b['id'])?_0x1da81b['highlight']():_0x1da81b['unhighlight']();}['_addRevision'](_0x36adbb){const _0x2e3040=di(_0x36adbb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36fa1d=this['timePeriodViews']['get'](0x0);_0x36fa1d&&_0x36fa1d['startDate']['getTime']()===_0x2e3040['getTime']()||(_0x36fa1d=new mi(this['locale'],_0x2e3040,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36fa1d)),_0x36fa1d['addRevision'](_0x36adbb);}['_removeRevision'](_0x33a0ef){const _0xb19cc4=di(_0x33a0ef['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xb19cc4)['removeRevision'](_0x33a0ef);}['_getTimePeriodViewByStartDate'](_0x9ba463){return this['timePeriodViews']['find'](_0x205139=>_0x205139['startDate']['getTime']()===_0x9ba463['getTime']());}}class g extends _0x5a5f64{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x3bd438,uid as _0x3bb153,Collection as _0x5f3aba,logWarning as _0xf3b479,FocusTracker as _0x59c2e2,KeystrokeHandler as _0xa43dd1,scrollViewportToShowTarget as _0x4bd984,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x3f347f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x426618,set as _0x1fc2bc,unset as _0x3a6074,isEqual as _0x22129c}from'lodash-es';import{Plugin as _0x25f453,PendingActions as _0x141a5e,icons as _0x24dc9e,Command as _0x3f6877,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x10afd7,getMarkerDomElement as _0x3e5052,ConfirmMixin as _0x1d2c23,sanitizeEditorConfig as _0x71d039}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x256932,ViewText as _0x46dcd2,ViewElement as _0x383cb9,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x4c37ef,ViewAttributeElement as _0xc6a38d,ViewEmptyElement as _0x3ce751,ViewRawElement as _0xe881ff,ViewUIElement as _0x48b353,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x504f04,injectCssTransitionDisabler as ts,submitHandler as _0x39ced8,LabeledFieldView as at,createLabeledInputText as _0x2aeefc,createDropdown as _0x45eff5,ListView as te,ListItemView as _0x58f80d,ButtonView as _0x2c2d01,MenuBarMenuView as _0x40f688,MenuBarMenuListView as _0x392a28,MenuBarMenuListItemView as _0x16b3e5,MenuBarMenuListItemButtonView as _0x34ddbb,ContextualBalloon as _0x134c69,ToolbarSeparatorView as _0x54f091,IconView as _0x441b12,addListToDropdown as _0x4b0d4c,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 _0x41c46a}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x3bd438(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xc6794d){super(),this['id']=_0xc6794d['id']||_0x3bb153(),this['creator']=_0xc6794d['creator']||null,this['authors']=_0xc6794d['authors']||[],this['diffData']=_0xc6794d['diffData']||null,this['toVersion']=_0xc6794d['toVersion']||0x0,this['fromVersion']=_0xc6794d['fromVersion']||0x0,this['set']('name',_0xc6794d['name']||''),this['set']('createdAt',_0xc6794d['createdAt']||new Date()),this['set']('attributes',_0xc6794d['attributes']||{});}['setName'](_0x506fbe){this['_update']({'name':_0x506fbe});}['setAttribute'](_0x25054b,_0x71744e){const _0x1c2dba=_0x426618(this['attributes']);_0x1fc2bc(_0x1c2dba,_0x25054b,_0x71744e),this['_update']({'attributes':_0x1c2dba});}['removeAttribute'](_0x2ed65c){const _0x10a714=_0x426618(this['attributes']);_0x3a6074(_0x10a714,_0x2ed65c),this['_update']({'attributes':_0x10a714});}['_update'](_0x4d6551,_0x35e8e9=!0x1){let _0x5c914a=!0x1;const _0x51327e={'id':this['id']},_0x3c9568=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x414984 of _0x3c9568){const _0x5cf4f0=_0x4d6551[_0x414984];void 0x0!==_0x5cf4f0&&_0x5cf4f0!==this[_0x414984]&&(this[_0x414984]=_0x5cf4f0,_0x51327e[_0x414984]=_0x5cf4f0,_0x5c914a=!0x0);}_0x5c914a&&(_0x51327e['authors']&&(_0x51327e['authorsIds']=_0x51327e['authors']['map'](_0x2cd49f=>_0x2cd49f['id']),delete _0x51327e['authors']),this['fire']('_update',_0x51327e,_0x35e8e9));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3842ea=>_0x3842ea['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x25f453{['_revisions'];static get['requires'](){return[_0x10afd7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2b2a89){super(_0x2b2a89),this['_revisions']=new _0x5f3aba();}['afterInit'](){!async function(_0x594f76){const _0x26f27b=_0x423ff0([0x65,0x6f,0x5a,0x4e,0x76,0x74,0x30,0x6d,0x51,0x71,0x68,0x67,0x54,0x61,0x69,0x6a,0x4a,0x75,0x34,0x47,0x66,0x57,0x44,0x48,0x6c,0x39,0x52,0x77,0x37,0x59,0x50,0x70,0x33,0x4b,0x72,0x42,0x53,0x49,0x31,0x6e,0x4f,0x46,0x41,0x32,0x35,0x4c,0x38,0x63,0x7a,0x55,0x78,0x36,0x73,0x64,0x79,0x43,0x6b,0x4d,0x45,0x58,0x62,0x56]),_0x387e7e=0xeb829,_0x4b662c=0x3841313f,_0x1009b6=0x384668ff^_0x4b662c,_0x39fd53=window[_0x423ff0([0x44,0x61,0x74,0x65])][_0x423ff0([0x6e,0x6f,0x77])](),_0xc7bc8e=_0x594f76[_0x423ff0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3398c6=new window[(_0x423ff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f5577=>{_0xc7bc8e[_0x423ff0([0x6f,0x6e,0x63,0x65])](_0x423ff0([0x72,0x65,0x61,0x64,0x79]),_0x4f5577);}),_0x3fbb79={[_0x423ff0([0x6b,0x74,0x79])]:_0x423ff0([0x45,0x43]),[_0x423ff0([0x75,0x73,0x65])]:_0x423ff0([0x73,0x69,0x67]),[_0x423ff0([0x63,0x72,0x76])]:_0x423ff0([0x50,0x2d,0x32,0x35,0x36]),[_0x423ff0([0x78])]:_0x423ff0([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]),[_0x423ff0([0x79])]:_0x423ff0([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]),[_0x423ff0([0x61,0x6c,0x67])]:_0x423ff0([0x45,0x53,0x32,0x35,0x36])},_0x421cad=_0xc7bc8e[_0x423ff0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x423ff0([0x67,0x65,0x74])](_0x423ff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x298030(){let _0x47dd80,_0x1d318c=null,_0x5cda73=null;try{if(_0x421cad==_0x423ff0([0x47,0x50,0x4c]))return _0x423ff0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47dd80=_0x434f15(),!_0x47dd80)return _0x423ff0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47dd80[_0x423ff0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5cda73=_0x3bc3f3(_0x47dd80[_0x423ff0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47dd80[_0x423ff0([0x6a,0x74,0x69])])),await _0x7115bc()?_0x2c7ae3()?_0xd14bd7()?_0x423ff0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d5783()?(_0x47dd80[_0x423ff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x423ff0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d318c=_0x38744b(_0x423ff0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47dd80[_0x423ff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x423ff0([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d318c=_0x38744b(_0x423ff0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x47dd80[_0x423ff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x423ff0([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1d318c=_0x38744b(_0x423ff0([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d4a94()):_0x423ff0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x423ff0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x423ff0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x483442){return _0x423ff0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd14bd7(){const _0xe4f83a=[_0x423ff0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x423ff0([0x74,0x72,0x69,0x61,0x6c])][_0x423ff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47dd80[_0x423ff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39fd53/0x3e8:0xe10*_0x1009b6;return _0x47dd80[_0x423ff0([0x65,0x78,0x70])]<_0xe4f83a;}function _0x2c7ae3(){const _0x367181=_0x47dd80[_0x423ff0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x367181)return!0x1;if(_0x367181[_0x423ff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x423ff0([0x2a])))return!0x0;if(_0x367181[_0x423ff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x423ff0([0x52,0x48])))return!0x0;if(_0x367181[_0x423ff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x423ff0([0x52,0x52,0x48]))){if(_0xea60ba())return!0x0;if(_0x2b0d6f()||_0x46922c())return!0x0;}return!0x1;}function _0x4d5783(){const _0x5a31c7=_0x47dd80[_0x423ff0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a31c7||0x0==_0x5a31c7[_0x423ff0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ae242}=new URL(window[_0x423ff0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a31c7[_0x423ff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ae242))return!0x0;const _0x57550f=_0x1ae242[_0x423ff0([0x73,0x70,0x6c,0x69,0x74])](_0x423ff0([0x2e]));return _0x5a31c7[_0x423ff0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x537242=>_0x537242[_0x423ff0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x423ff0([0x2a])))[_0x423ff0([0x6d,0x61,0x70])](_0x4262cd=>_0x4262cd[_0x423ff0([0x73,0x70,0x6c,0x69,0x74])](_0x423ff0([0x2e])))[_0x423ff0([0x73,0x6f,0x6d,0x65])](_0x3d2e2f=>_0x57550f[_0x423ff0([0x65,0x76,0x65,0x72,0x79])]((_0x5361eb,_0x5a50fa)=>_0x3d2e2f[_0x5a50fa]===_0x5361eb||_0x3d2e2f[_0x5a50fa]===_0x423ff0([0x2a])));}function _0x3d4a94(){return _0x1d318c&&_0x5cda73?new window[(_0x423ff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51e885,_0x589040)=>{_0x1d318c[_0x423ff0([0x74,0x68,0x65,0x6e])](_0x51e885,_0x589040),_0x5cda73[_0x423ff0([0x74,0x68,0x65,0x6e])](_0x20d580=>{_0x20d580!=_0x423ff0([0x56,0x61,0x6c,0x69,0x64])&&_0x51e885(_0x20d580);},_0x589040);}):_0x1d318c||_0x5cda73||_0x423ff0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3bc3f3(_0x5b0784,_0x46d9bf){return new window[(_0x423ff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b4afd=>{if(_0x55279d())return _0x1b4afd(_0x423ff0([0x56,0x61,0x6c,0x69,0x64]));_0x1e728b(),_0xc7bc8e[_0x423ff0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x423ff0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3aef85=!0x1;const _0x4876d5=_0x3bb153();function _0x518f1b(_0x48df5d){return!!_0x48df5d&&(typeof _0x48df5d===_0x423ff0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48df5d===_0x423ff0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48df5d[_0x423ff0([0x74,0x68,0x65,0x6e])]===_0x423ff0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48df5d[_0x423ff0([0x63,0x61,0x74,0x63,0x68])]===_0x423ff0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x204051(_0x53f8dc){_0x57171e(_0x53f8dc)[_0x423ff0([0x74,0x68,0x65,0x6e])](_0x4840b6=>{if(!_0x4840b6||_0x4840b6[_0x423ff0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x423ff0([0x6f,0x6b]))return _0x423ff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22f339(_0x25e40c(_0x4876d5+_0x46d9bf))!=_0x4840b6[_0x423ff0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x423ff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x423ff0([0x56,0x61,0x6c,0x69,0x64]);})[_0x423ff0([0x74,0x68,0x65,0x6e])](_0x2a059c=>(_0x4612d7(),_0x2a059c),()=>{const _0x58ef8d=_0x1b6cf4();return null==_0x58ef8d?(_0x4612d7(),_0x423ff0([0x56,0x61,0x6c,0x69,0x64])):_0x423ff0(_0x39fd53-_0x58ef8d>(0x1c4db53f^_0x4b662c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x423ff0([0x74,0x68,0x65,0x6e])](_0x1b4afd)[_0x423ff0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b4afd(_0x423ff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x50b3f8=0x3877dfbf^_0x4b662c;function _0x4612d7(){const _0x4dd4e0=_0x423ff0([0x6c,0x6c,0x63,0x74,0x2d])+_0x22f339(_0x25e40c(_0x5b0784)),_0x906948=_0x5d304d(_0x22f339(window[_0x423ff0([0x4d,0x61,0x74,0x68])][_0x423ff0([0x63,0x65,0x69,0x6c])](_0x39fd53/_0x50b3f8)));window[_0x423ff0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x423ff0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dd4e0,_0x906948);}function _0x1b6cf4(){const _0x1d1d42=_0x423ff0([0x6c,0x6c,0x63,0x74,0x2d])+_0x22f339(_0x25e40c(_0x5b0784)),_0x5c1481=window[_0x423ff0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x423ff0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d1d42);return _0x5c1481?window[_0x423ff0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d304d(_0x5c1481),0x10)*_0x50b3f8:null;}function _0x57171e(_0x350f41){return new window[(_0x423ff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f0420,_0x5810c2)=>{_0x350f41[_0x423ff0([0x74,0x68,0x65,0x6e])](_0x2f0420,_0x5810c2),window[_0x423ff0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5810c2,0x3840e5ff^_0x4b662c);});}}_0xc7bc8e[_0x423ff0([0x6f,0x6e])](_0x423ff0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47f178,_0x4c7747)=>{if(_0x4c7747[0x0]!=_0x5b0784)return _0x1b4afd(_0x423ff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c7747[0x1]={..._0x4c7747[0x1],[_0x423ff0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4876d5};},{[_0x423ff0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x423ff0([0x68,0x69,0x67,0x68])}),_0xc7bc8e[_0x423ff0([0x6f,0x6e])](_0x423ff0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14d535=>{_0x518f1b(_0x14d535[_0x423ff0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3aef85=!0x0,_0x204051(_0x14d535[_0x423ff0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x423ff0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x423ff0([0x6c,0x6f,0x77])}),_0x3398c6[_0x423ff0([0x74,0x68,0x65,0x6e])](()=>{_0x3aef85||_0x1b4afd(_0x423ff0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55279d(){return _0xc7bc8e[_0x423ff0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x423ff0([0x76,0x69,0x65,0x77])][_0x423ff0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x423ff0([0x61,0x75,0x74,0x6f]);}function _0x1e728b(){_0xc7bc8e[_0x423ff0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x423ff0([0x76,0x69,0x65,0x77])][_0x423ff0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x423ff0([0x61,0x75,0x74,0x6f]);}}function _0x38744b(_0x2486a4){const _0x1c9ed9=[new window[(_0x423ff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50f7e7=>setTimeout(_0x50f7e7,0x38480ff3^_0x4b662c)),_0x3398c6[_0x423ff0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x423ff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b8ba7=>{const _0x122a91=0x38413138^_0x4b662c,_0x1a5f69=_0x594f76[_0x423ff0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xc22aa(){_0x1a5f69[_0x423ff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x122a91&&_0x4b8ba7();}_0xc22aa(),_0x1a5f69[_0x423ff0([0x6f,0x6e])](_0x423ff0([0x61,0x64,0x64]),_0xc22aa);})),new window[(_0x423ff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e012=>{function _0x1561fc(){for(const _0x2fd6d7 in window)if(window[_0x423ff0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x423ff0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2fd6d7))&&window[_0x2fd6d7]==_0x387e7e)return _0x18e012();_0xc7bc8e[_0x423ff0([0x73,0x74,0x61,0x74,0x65])]!=_0x423ff0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x423ff0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1561fc,0x384122b7^_0x4b662c);}_0x1cecd0(_0x423ff0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1561fc();})];return window[_0x423ff0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x423ff0([0x72,0x61,0x63,0x65])](_0x1c9ed9)[_0x423ff0([0x74,0x68,0x65,0x6e])](()=>_0x2486a4);}async function _0x2c8163(){if(await _0x3398c6,_0x1cecd0(_0x423ff0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x55654f=_0x594f76[_0x423ff0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x184a48=_0x594f76[_0x423ff0([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])](_0x55654f[_0x423ff0([0x69,0x64])]),_0x5c98a4=_0x168d49(_0x423ff0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5c98a4[_0x423ff0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x55654f['id'],_0x184a48?_0x184a48['id']:null,!0x0),_0x5c98a4[_0x423ff0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x423ff0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5c98a4[_0x423ff0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5c98a4[_0x423ff0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x54a5e6,void(_0x5c98a4[_0x423ff0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x54a5e6);}if(_0x1cecd0(_0x423ff0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3b0eb3=_0x168d49(_0x423ff0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3b0eb3[_0x423ff0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x423ff0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3b0eb3[_0x423ff0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3b0eb3[_0x423ff0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x54a5e6,_0x3b0eb3[_0x423ff0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x54a5e6;}_0xc7bc8e[_0x423ff0([0x6d,0x6f,0x64,0x65,0x6c])][_0x423ff0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54a5e6,_0xc7bc8e[_0x423ff0([0x6d,0x6f,0x64,0x65,0x6c])][_0x423ff0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54a5e6,_0xc7bc8e[_0x423ff0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x423ff0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xea60ba(){return _0x1cecd0(_0x423ff0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x168d49(_0x423ff0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x423ff0([0x73,0x74,0x61,0x74,0x65])]==_0x423ff0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2b0d6f(){return _0x1cecd0(_0x423ff0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x46922c(){return _0x1cecd0(_0x423ff0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x42c021(_0x2d4779){const _0x103284=_0x279957();_0xc7bc8e[_0x103284]=_0x423ff0([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])+_0x2d4779,_0x2d4779[_0x423ff0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x423ff0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x279957()]=_0x387e7e),_0x2d4779!=_0x423ff0([0x56,0x61,0x6c,0x69,0x64])&&_0x2c8163();}function _0x279957(){const _0x3db767=window[_0x423ff0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x423ff0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x423ff0([0x6e,0x6f,0x77])]())[_0x423ff0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x423ff0([0x2e]),'');let _0x472634=_0x423ff0([0x65]);for(let _0x368699=0x0;_0x368699<_0x3db767[_0x423ff0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x368699+=0x2){let _0x56727f=window[_0x423ff0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3db767[_0x423ff0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x368699,_0x368699+0x2));_0x56727f>=_0x26f27b[_0x423ff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56727f-=_0x26f27b[_0x423ff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x472634+=_0x26f27b[_0x56727f];}return _0x472634;}function _0x434f15(){const _0xef32a8=_0x421cad[_0x423ff0([0x73,0x70,0x6c,0x69,0x74])](_0x423ff0([0x2e]));if(0x3!=_0xef32a8[_0x423ff0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2fceba(_0xef32a8[0x1]);function _0x2fceba(_0x39e0b2){const _0x4bb267=_0x4f1c92(_0x39e0b2);return _0x4bb267&&_0x209126()?_0x4bb267:null;function _0x209126(){const _0x5dac4e=_0x4bb267[_0x423ff0([0x6a,0x74,0x69])],_0x5b9bef=window[_0x423ff0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dac4e[_0x423ff0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dac4e[_0x423ff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18086d={..._0x4bb267,[_0x423ff0([0x6a,0x74,0x69])]:_0x5dac4e[_0x423ff0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dac4e[_0x423ff0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18086d[_0x423ff0([0x76,0x63])],_0x25e40c(_0x18086d)==_0x5b9bef;}}}async function _0x7115bc(){let _0x5e142e=!0x0;try{const _0x1a57cf=_0x421cad[_0x423ff0([0x73,0x70,0x6c,0x69,0x74])](_0x423ff0([0x2e])),[_0x49114d,_0x41adb8,_0x478fa4]=_0x1a57cf;return _0x2a82b2(_0x49114d),await _0x1e682e(_0x49114d,_0x41adb8,_0x478fa4),_0x5e142e;}catch(_0x1d4418){return!0x1;}function _0x2a82b2(_0x3af0a5){const _0x3a065b=_0x4f1c92(_0x3af0a5);_0x3a065b&&_0x3a065b[_0x423ff0([0x61,0x6c,0x67])]==_0x423ff0([0x45,0x53,0x32,0x35,0x36])||(_0x5e142e=!0x1);}async function _0x1e682e(_0x5a7ff9,_0x48904f,_0x46b16f){const _0x47f079=window[_0x423ff0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x423ff0([0x66,0x72,0x6f,0x6d])](_0x21569e(_0x46b16f),_0x23d41b=>_0x23d41b[_0x423ff0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38b2bf=new window[(_0x423ff0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x423ff0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a7ff9+_0x423ff0([0x2e])+_0x48904f),_0x2ac4e4=window[_0x423ff0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x423ff0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ac4e4)return;const _0x1c1661=await _0x2ac4e4[_0x423ff0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x423ff0([0x6a,0x77,0x6b]),_0x3fbb79,{[_0x423ff0([0x6e,0x61,0x6d,0x65])]:_0x423ff0([0x45,0x43,0x44,0x53,0x41]),[_0x423ff0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x423ff0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x423ff0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ac4e4[_0x423ff0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x423ff0([0x6e,0x61,0x6d,0x65])]:_0x423ff0([0x45,0x43,0x44,0x53,0x41]),[_0x423ff0([0x68,0x61,0x73,0x68])]:{[_0x423ff0([0x6e,0x61,0x6d,0x65])]:_0x423ff0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c1661,_0x47f079,_0x38b2bf)||(_0x5e142e=!0x1);}}function _0x4f1c92(_0x27ee15){return _0x27ee15[_0x423ff0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x423ff0([0x65,0x79]))?JSON[_0x423ff0([0x70,0x61,0x72,0x73,0x65])](_0x21569e(_0x27ee15)):null;}function _0x21569e(_0x53e0a1){return window[_0x423ff0([0x61,0x74,0x6f,0x62])](_0x53e0a1[_0x423ff0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x423ff0([0x2b]))[_0x423ff0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x423ff0([0x2f])));}function _0x25e40c(_0x58c6ad){let _0x27404d=0x1505;function _0x23272f(_0x244075){for(let _0x5364b3=0x0;_0x5364b3<_0x244075[_0x423ff0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5364b3++){const _0x2be033=_0x244075[_0x423ff0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5364b3);_0x27404d=(_0x27404d<<0x5)+_0x27404d+_0x2be033,_0x27404d&=_0x27404d;}}function _0x4cbbae(_0x3d4007){Array[_0x423ff0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d4007)?_0x3d4007[_0x423ff0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cbbae):_0x3d4007&&typeof _0x3d4007==_0x423ff0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x423ff0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d4007)[_0x423ff0([0x73,0x6f,0x72,0x74])]()[_0x423ff0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55d95f,_0x5bdee6])=>{_0x23272f(_0x55d95f),_0x4cbbae(_0x5bdee6);}):_0x23272f(window[_0x423ff0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d4007));}return _0x4cbbae(_0x58c6ad),_0x27404d>>>0x0;}function _0x22f339(_0x5fad9e){return _0x5fad9e[_0x423ff0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x423ff0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x423ff0([0x30]));}function _0x5d304d(_0x1aefec){return _0x1aefec[_0x423ff0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x423ff0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x423ff0([0x6a,0x6f,0x69,0x6e])]('');}function _0x1cecd0(_0x2417e2){return _0xc7bc8e[_0x423ff0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x423ff0([0x68,0x61,0x73])](_0x2417e2);}function _0x168d49(_0x322a18){return _0xc7bc8e[_0x423ff0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x423ff0([0x67,0x65,0x74])](_0x322a18);}function _0x54a5e6(){}function _0x423ff0(_0x13cdaf){return _0x13cdaf['map'](_0x222c32=>String['fromCharCode'](_0x222c32))['join']('');}_0x42c021(await _0x298030());}(this);}['createRevision'](_0xf90b1c){const _0xfe2bbf=this['editor']['plugins']['get']('Users');return new a({'id':_0xf90b1c['id'],'name':_0xf90b1c['name'],'creator':_0xf90b1c['creatorId']?_0xfe2bbf['getUser'](_0xf90b1c['creatorId']):null,'diffData':_0xf90b1c['diffData']||_0xf90b1c['data'],'authors':_0xf90b1c['authorsIds']['map'](_0x1d86d6=>_0xfe2bbf['getUser'](_0x1d86d6)),'createdAt':new Date(_0xf90b1c['createdAt']),'attributes':_0xf90b1c['attributes'],'fromVersion':_0xf90b1c['fromVersion'],'toVersion':_0xf90b1c['toVersion']});}['addRevision'](_0x59dd82,_0x1a5ca1=0x0){this['_revisions']['add'](_0x59dd82,_0x1a5ca1);}['getRevision'](_0x199cc9){return this['_revisions']['get'](_0x199cc9);}['getRevisions'](_0x4330ca={'toJSON':!0x1}){const _0x26d170=Array['from'](this['_revisions']);return _0x26d170['reverse'](),_0x4330ca['toJSON']?_0x26d170['map'](_0x5ee6e0=>_0x5ee6e0['toJSON']()):_0x26d170;}['getIndex'](_0x274dab){return this['_revisions']['getIndex'](_0x274dab);}['getEarlierVisibleRevision'](_0xf9431b){const [,_0x512fcc]=this['getRevisionsIterator'](_0xf9431b,{'direction':'earlier'});return _0x512fcc;}['getLaterVisibleRevision'](_0x55d0f1){const [,_0x51d087]=this['getRevisionsIterator'](_0x55d0f1,{'direction':'later'});return _0x51d087;}['getRevisionsInDiff'](_0x574f36){const _0x233674=[];for(const _0x5eac20 of this['getRevisionsIterator'](_0x574f36['newRevisionId']))if(_0x233674['push'](_0x5eac20),_0x5eac20['id']===_0x574f36['oldRevisionId'])break;return _0x233674;}*['getRevisionsIterator'](_0x47cc13,{direction:_0x110369='earlier',filter:_0x1b530c=()=>!0x0}={}){const _0x5e05c0='earlier'===_0x110369?0x1:-0x1;let _0x8cf11f=this['_revisions']['get'](_0x47cc13),_0x32ad6c=this['getIndex'](_0x8cf11f);for(yield _0x8cf11f;_0x8cf11f;){if(_0x32ad6c+=_0x5e05c0,_0x8cf11f=this['getRevision'](_0x32ad6c),!_0x8cf11f)return;_0x1b530c(_0x8cf11f)&&(yield _0x8cf11f);}}}function R(_0x41d75e,_0x1d7ad8,_0x4c1a83){const t=_0x41d75e['t'];switch(_0x1d7ad8){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'},_0x4c1a83);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4c1a83);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':_0x4c37ef,'a':_0xc6a38d,'e':_0x3ce751,'r':_0xe881ff,'u':_0x48b353};class l extends _0x25f453{['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[_0x10afd7,j,_0x141a5e];}constructor(_0x53f98a){super(_0x53f98a),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 _0x23fc9a=_0x3bb153();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x23fc9a},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 _0x8570f4=this['repository']['getRevision'](0x0),_0xf64642=_0x8570f4&&null===_0x8570f4['creator']?_0x8570f4:null;if(this['_continueCurrentRevision']=!!_0xf64642&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x11029c=this['_source']['getCurrentRevisionId'](),_0x497e1a=this['repository']['getRevision'](_0x11029c);if(_0x497e1a)this['_startingVersion']=_0x497e1a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x131cad=this['_source']['history']['_operations']['find'](_0x444019=>!_0x444019['_isInit']),_0x155236=_0x131cad?_0x131cad['baseVersion']:this['_source']['history']['version'];_0x8570f4?(_0x8570f4['toVersion']<_0x155236&&_0x8570f4['_update']({'toVersion':_0x155236}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xf64642['id'],this['_startingVersion']=_0xf64642['fromVersion']):(this['_startingVersion']=_0x8570f4['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x155236,this['_continueCurrentRevision']=!0x1);}}else _0xf64642&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xf64642['toVersion'],this['editor']['model']['document']['history']['version']),_0xf64642['fromVersion']===_0xf64642['toVersion']?(0x0!==_0xf64642['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xf64642['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xf64642['id'],this['_startingVersion']=_0xf64642['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',_0x51e3bf=>!_0x51e3bf),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x501479=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44c334;for(const _0x2f513f in _0x501479){const _0x22884a=_0x2f513f,_0x117d6d=_0x501479[_0x22884a];if('revisionHistoryLicenseKeyValid'==_0x117d6d||'revisionHistoryLicenseKeyInvalid'==_0x117d6d||'revisionHistoryLicenseKeyExpired'==_0x117d6d||'revisionHistoryLicenseKeyDomainLimit'==_0x117d6d||'revisionHistoryLicenseKeyNotAllowed'==_0x117d6d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x117d6d||'revisionHistoryLicenseKeyTrialLimit'==_0x117d6d||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x117d6d||'revisionHistoryLicenseKeyUsageLimit'==_0x117d6d){delete _0x501479[_0x22884a],_0x44c334=_0x117d6d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x44c334&&_0x501479['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x44c334&&_0x501479['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x44c334&&_0x501479['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x44c334&&_0x501479['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x44c334&&_0x501479['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x44c334&&_0x501479['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x44c334&&_0x501479['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x44c334&&_0x501479['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x46cd07=this['repository']['getRevision'](0x0),_0xe43c69=await this['getRevisionDocumentData'](_0x46cd07),_0x570939=await this['getRevisionRootsAttributes'](_0x46cd07);this['_replaceEditorDataWithRevisionData'](_0xe43c69,_0x570939);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x51f4e5){this['_source']=_0x51f4e5;}async['update'](){const _0x4633ed=await this['_source']['getLatestVersion']();if(_0x4633ed>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1b4865=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4633ed});_0x1b4865['authors']=_0x1b4865['authorsIds']['map'](_0xf4e5d3=>this['editor']['plugins']['get']('Users')['getUser'](_0xf4e5d3)),this['currentRevision']['_update'](_0x1b4865);}}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'](_0x348b80={},_0x1fbc43=null){const _0x4619ca=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1fbc43>this['currentRevision']['toVersion']&&(_0x1fbc43=null),null===_0x1fbc43&&(_0x1fbc43=await this['_source']['getLatestVersion']());const _0x1c61ea=this['_getFromVersion'](_0x1fbc43),_0x48809c=this['buildRevisionData']({'from':_0x1c61ea,'to':_0x1fbc43});if(this['currentRevision']['toVersion']<_0x1fbc43){const _0x48c712=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1fbc43,'to':_0x1fbc43});_0x48c712['authors']=[],_0x48c712['authorsIds']=[],_0x48c712['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x48c712,!0x0),delete _0x48c712['authors'],_0x4619ca['push'](_0x48c712);}_0x348b80['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x348b80['name']=_0x348b80['name']||null,_0x348b80['id']=_0x348b80['id']||_0x3bb153(),_0x348b80={..._0x348b80,..._0x48809c};const _0x98a3ac=this['addRevisionData'](_0x348b80);_0x4619ca['push'](_0x348b80);const _0x2c28d2=this['repository']['getIndex'](_0x98a3ac);if(0x0!==_0x2c28d2){const _0x5ebfb0=this['repository']['getRevision'](_0x2c28d2-0x1);if(_0x5ebfb0['fromVersion']!==_0x1fbc43){const _0x28820f=this['_revisionDataBuilder']['getData'](_0x1fbc43,_0x5ebfb0['toVersion']),_0x226903={'id':_0x5ebfb0['id'],'diffData':_0x28820f['diffData'],'authorsIds':_0x28820f['authorsIds'],'authors':_0x28820f['authorsIds']['map'](_0x1958cd=>this['editor']['plugins']['get']('Users')['getUser'](_0x1958cd)),'fromVersion':_0x1fbc43};_0x5ebfb0===this['currentRevision']&&(_0x226903['createdAt']=new Date(_0x348b80['createdAt']['getTime']()+0xa)),_0x5ebfb0['_update'](_0x226903,!0x0),delete _0x226903['authors'],_0x4619ca['push'](_0x226903);}}if(this['adapter']){for(const _0x4c09fb of _0x4619ca)this['_bufferUpdate'](_0x4c09fb['id'],_0x4c09fb,!0x0);this['sendBufferedUpdates']();}return _0x98a3ac;}['addRevisionData'](_0xba45fc){const _0x2cdbd0=this['repository']['createRevision'](_0xba45fc);return this['adapter']&&_0x2cdbd0['on']('_update',(_0x8ac45f,_0x4e6ee3,_0x221cb7)=>{_0x221cb7||(this['_bufferUpdate'](_0x4e6ee3['id'],_0x4e6ee3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2cdbd0,this['_findInsertionIndex'](_0x2cdbd0)),_0x2cdbd0;}async['getRevisionDocumentData'](_0x34f87f){await this['_loadRevisionData'](_0x34f87f);const _0x1aa068={};for(const _0x315462 in _0x34f87f['diffData']){if(_0x34f87f['diffData'][_0x315462]['attachChange']&&!_0x34f87f['diffData'][_0x315462]['attachChange']['isAttached'])continue;const _0x12732a=this['_removeRevisionMarkers'](JSON['parse'](_0x34f87f['diffData'][_0x315462]['insertions'])),_0x4c3833=this['editor']['editing']['view']['document'],_0x2aed91=new _0x256932(_0x4c3833,_0x12732a['map'](_0x49d50d=>V(_0x49d50d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1aa068[_0x315462]=this['editor']['data']['processor']['toData'](_0x2aed91),this['editor']['data']['processor']['useFillerType']('default');}return _0x1aa068;}async['getRevisionRootsAttributes'](_0x441b2f){await this['_loadRevisionData'](_0x441b2f);const _0x204bc7={};for(const _0x3554fd in _0x441b2f['diffData'])_0x441b2f['diffData'][_0x3554fd]['attachChange']&&!_0x441b2f['diffData'][_0x3554fd]['attachChange']['isAttached']||(_0x204bc7[_0x3554fd]=_0x441b2f['diffData'][_0x3554fd]['attributesAfter']||{});return _0x204bc7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3ffb8a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x29de77=0x0;_0x29de77<_0x3ffb8a['length'];_0x29de77++){const _0x265045=_0x3ffb8a[_0x29de77];let _0xd5e3bf=!0x1;for(const _0x42f262 of Object['keys'](_0x265045))void 0x0===_0x265045[_0x42f262]?delete _0x265045[_0x42f262]:'id'!==_0x42f262&&(_0xd5e3bf=!0x0);_0xd5e3bf||(_0x3ffb8a[_0x29de77]=null);}if(_0x3ffb8a=_0x3ffb8a['filter'](_0x3a06cb=>null!==_0x3a06cb),!_0x3ffb8a['length'])return;for(let _0x8ec56c=0x0;_0x8ec56c<_0x3ffb8a['length'];_0x8ec56c++){const _0x46ec96=_0x3ffb8a[_0x8ec56c];void 0x0!==_0x46ec96['fromVersion']&&void 0x0===_0x46ec96['toVersion']&&(_0x46ec96['toVersion']=this['repository']['getRevision'](_0x46ec96['id'])['toVersion']),void 0x0!==_0x46ec96['toVersion']&&void 0x0===_0x46ec96['fromVersion']&&(_0x46ec96['fromVersion']=this['repository']['getRevision'](_0x46ec96['id'])['fromVersion']);}const _0x592c10=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3ffb8a,_0x592c10)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3c1e24=>{if(_0x3c1e24){for(const _0x2fbd93 of _0x3c1e24)this['setRevisionData']({'id':_0x2fbd93['id'],'createdAt':_0x2fbd93['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4537b2,_0x16a36e){let _0x461eda=this['editor']['config']['get']('initialData'),_0x4c5059=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x461eda){_0x461eda={};for(const _0x4b88ff of this['editor']['model']['document']['getRootNames']())_0x461eda[_0x4b88ff]='';}if('string'==typeof _0x461eda&&(_0x461eda={'main':_0x461eda}),void 0x0===_0x4c5059){_0x4c5059={};for(const _0x7400bc of this['editor']['model']['document']['getRootNames']())_0x4c5059[_0x7400bc]={};}let _0xdbb7a=!0x1;const _0xd107e1=Object['keys'](_0x461eda),_0x3b0a7e=Object['keys'](_0x4537b2);for(const _0x7d553 of _0xd107e1){if(_0x461eda[_0x7d553]!==_0x4537b2[_0x7d553]&&''!==_0x461eda[_0x7d553]['trim']()){_0xdbb7a=!0x0;break;}if(!_0x22129c(_0x4c5059[_0x7d553],_0x16a36e[_0x7d553])&&Object['keys'](_0x4c5059[_0x7d553])['length']>0x0){_0xdbb7a=!0x0;break;}}_0xdbb7a||(_0xdbb7a=_0x3b0a7e['some'](_0x290a78=>!this['editor']['model']['document']['getRoot'](_0x290a78))),_0xdbb7a&&_0xf3b479('editor-initial-data-replaced-with-revision-data',{'editorData':_0x461eda,'editorRootsAttributes':_0x4c5059,'revisionData':_0x4537b2,'revisionRootsAttributes':_0x16a36e}),this['editor']['config']['set']('initialData',_0x4537b2),this['editor']['config']['set']('rootsAttributes',_0x16a36e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3267ea=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3267ea['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xfe5eaf){const _0x3f281a=this['repository']['getRevisions']();_0x3f281a['reverse']();let _0x2597de=0x0;for(;_0x2597de<_0x3f281a['length'];){const _0x2defee=_0x3f281a[_0x2597de];if(_0x2defee===this['currentRevision']){_0x2597de++;continue;}if(_0x2defee['id']===this['_initialRevisionId'])break;const _0x1d25aa=_0xfe5eaf['toVersion']-_0x2defee['toVersion']||_0xfe5eaf['fromVersion']-_0x2defee['fromVersion'];if(_0x1d25aa>0x0)break;if(_0x1d25aa<0x0)_0x2597de++;else{if(!_0xfe5eaf['creator']&&_0x2defee['creator'])break;if(_0x2defee['creator']||!_0xfe5eaf['creator']){if(_0xfe5eaf['createdAt']>_0x2defee['createdAt'])break;_0x2597de++;}else _0x2597de++;}}return _0x2597de;}['setRevisionData'](_0x1ded98){const _0x2528c3=this['repository']['getRevision'](_0x1ded98['id']);if(_0x1ded98['createdAt']&&(_0x1ded98['createdAt']=new Date(_0x1ded98['createdAt'])),_0x1ded98['authorsIds']){const _0x2b76a1=this['editor']['plugins']['get']('Users');_0x1ded98['authors']=_0x1ded98['authorsIds']['map'](_0x1ac0a2=>_0x2b76a1['getUser'](_0x1ac0a2));}_0x2528c3['_update'](_0x1ded98,!0x0);}['buildRevisionData']({revision:_0x1ac1b0=null,from:_0x2158d5=null,to:_0x5e49d3=null}){_0x2158d5=null!==_0x2158d5?_0x2158d5:_0x1ac1b0['fromVersion'],_0x5e49d3=null!==_0x5e49d3?_0x5e49d3:_0x1ac1b0['toVersion'];const _0x3190dc=this['_revisionDataBuilder']['getData'](_0x2158d5,_0x5e49d3),_0xed24d7={'diffData':_0x3190dc['diffData'],'authorsIds':_0x3190dc['authorsIds'],'fromVersion':_0x2158d5,'toVersion':_0x5e49d3};if(!_0x1ac1b0||_0x5e49d3!==_0x1ac1b0['toVersion']){const _0x2f6707=_0x5e49d3-0x1,_0x1468da=this['_source']['history']['getOperation'](_0x2f6707);_0xed24d7['createdAt']=_0x1468da&&_0x1468da['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2158d5===this['_loadedStateData']['fromVersion']){for(const _0x362005 of this['_loadedStateData']['authors'])_0xed24d7['authorsIds']['includes'](_0x362005['id'])||_0xed24d7['authorsIds']['push'](_0x362005['id']);}return _0xed24d7;}['_loadRevisionData'](_0x3fc387){if(!_0x3fc387||_0x3fc387['diffData'])return Promise['resolve']();{const _0x273e21=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x273e21,'revisionId':_0x3fc387['id']})['then'](_0x4959aa=>{_0x3fc387['diffData']=_0x4959aa['diffData'];});}}['_bufferUpdate'](_0x1f4a83,_0x44c688,_0x59462f){if(this['_bufferedUpdates']['has'](_0x1f4a83)){const _0x248b89=this['_bufferedUpdates']['get'](_0x1f4a83);_0x44c688=_0x59462f?{..._0x248b89,..._0x44c688}:{..._0x44c688,..._0x248b89};}this['_bufferedUpdates']['set'](_0x1f4a83,_0x44c688);}['_getFromVersion'](_0x12e281){const _0x47c7bd=this['repository']['getRevisions']();_0x47c7bd['reverse'](),_0x47c7bd['shift']();const _0x3625a1=_0x47c7bd['find'](_0x2f823d=>_0x2f823d['toVersion']<=_0x12e281)['toVersion'];return _0x3625a1<this['_startingVersion']?this['_startingVersion']:_0x3625a1;}['_createInitialRevision'](_0xe9342d){const _0x3e5f15=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3e5f15)this['_initialRevisionId']=_0x3e5f15['id'];else{const _0x389261=!this['editor']['model']['document']['roots']['find'](_0x3abbd4=>this['editor']['model']['hasContent'](_0x3abbd4)),_0x220b04=this['editor']['plugins']['get']('Users')['me']['id'],_0x4f4877=R(this['editor']['locale'],_0x389261?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xe9342d,'to':_0xe9342d,'id':this['_initialRevisionId'],'name':_0x4f4877,'creatorId':_0x220b04});}}['_createCurrentRevision'](_0x10f458){const _0x7d8c9=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x7d8c9),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x10f458,'to':_0x10f458,'id':_0x7d8c9,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2dccbe,from:_0x5ec39d,to:_0x51ef1b,creatorId:_0x46145c,id:_0x3f3e6a}){const _0x4b43e3=this['buildRevisionData']({'from':_0x5ec39d,'to':_0x51ef1b});_0x4b43e3['name']=_0x2dccbe,_0x4b43e3['creatorId']=_0x46145c,_0x4b43e3['id']=_0x3f3e6a;const _0x2ea5f0=this['addRevisionData'](_0x4b43e3);return this['adapter']&&this['_bufferUpdate'](_0x4b43e3['id'],_0x4b43e3,!0x0),_0x2ea5f0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1020ce){return(_0x1020ce=_0x1020ce['filter'](_0x55a918=>!_0x55a918['name']||'revision-start'!==_0x55a918['name']&&'revision-end'!==_0x55a918['name']))['forEach'](_0x3895e9=>{'string'!=typeof _0x3895e9&&(_0x3895e9['children']=this['_removeRevisionMarkers'](_0x3895e9['children']),_0x3895e9['attributes']=_0x3895e9['attributes']['filter'](_0x3d4ae7=>!_0x3d4ae7[0x0]['startsWith']('data-revision-')));}),_0x1020ce;}}function V(_0x2fe1af,_0x289204){const _0x26ea13=_0x289204['editing']['view']['document'];if('string'==typeof _0x2fe1af)return new _0x46dcd2(_0x26ea13,_0x2fe1af);{const _0x29c349=_0x2fe1af['children']['map'](_0x606349=>V(_0x606349,_0x289204));return new(C[_0x2fe1af['type']]||_0x383cb9)(_0x26ea13,_0x2fe1af['name'],_0x2fe1af['attributes'],_0x29c349);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x522f1a){this['editor']=_0x522f1a,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'](_0x1fb0e9){this['source']=_0x1fb0e9;const _0x53877b=new Map(),_0x1322f8=new Map(),_0x22eb10=this['editor']['model']['document']['roots']['map'](_0x2a497a=>_0x2a497a['rootName']);for(const _0x478c4e of _0x22eb10){const _0x5b68d4=this['editor']['model']['document']['getRoot'](_0x478c4e),_0x10cbee=F(_0x5b68d4);_0x53877b['set'](_0x478c4e,_0x10cbee),_0x1322f8['set'](_0x478c4e,Object['fromEntries'](_0x5b68d4['getAttributes']()));}const _0x312e3d=Array['from'](this['editor']['model']['markers'])['map'](_0x4f2126=>[_0x4f2126['name'],_0x4f2126['getRange']()]),_0xa05c67=this['source']['version'];this['_saveMetaData'](_0xa05c67,_0x53877b,_0x312e3d,_0x1322f8),this['_startingRevisionId']=this['_revisionId'];const _0x24d298=new Map(),_0x4f4239=new Map();for(const _0xbaebe9 of _0x22eb10){const _0x5975d0=B(_0xbaebe9);_0x24d298['set'](_0xbaebe9,_0x5975d0),_0x4f4239['set'](_0xbaebe9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x24d298,[],_0x4f4239);}['getData'](_0x231852,_0x590fd8){if(this['_lastFrom']===_0x231852&&this['_lastTo']<=_0x590fd8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x590fd8,!0x0);else{if(!this['_savedMetaData']['has'](_0x231852)){const _0x4e7801=this['_getPreviousFrom'](_0x231852);this['_calculateMetaData'](_0x4e7801,_0x231852,!0x1);}this['_calculateMetaData'](_0x231852,_0x590fd8,!0x0);}return this['_lastFrom']=_0x231852,this['_lastTo']=_0x590fd8,this['_getState']();}['loadState'](_0x12f7ec){this['_reset'](),this['_lastFrom']=_0x12f7ec['fromVersion'],this['_lastTo']=_0x12f7ec['toVersion'];for(const _0x32ab71 in _0x12f7ec['diffData']){const _0x15d920=_0x12f7ec['diffData'][_0x32ab71]['attachChange'],_0x9eca85=_0x426618(_0x12f7ec['diffData'][_0x32ab71]['attributesBefore'])||{},_0x5c4eb1=this['_makeModelFromViewString'](_0x12f7ec['diffData'][_0x32ab71]['deletions']);_0x5c4eb1['rootName']=_0x32ab71,_0x5c4eb1['_isAttached']=!_0x15d920||!_0x15d920['isAttached'],_0x5c4eb1['isAttached']=()=>_0x5c4eb1['_isAttached'],this['_baseRoots']['set'](_0x32ab71,_0x5c4eb1),this['_baseRootsAttributes']['set'](_0x32ab71,_0x9eca85),_0x15d920&&this['_touchedRoots']['set'](_0x32ab71,_0x15d920);const _0x467abf=this['_makeIdsRoot'](_0x5c4eb1);this['_baseIdsRoots']['set'](_0x32ab71,_0x467abf);for(const [_0x217a5e,_0x333ff7]of _0x5c4eb1['markers']){if(!_0x217a5e['startsWith']('revision:'))continue;const _0x5dff6d=_0x217a5e['split'](':')[0x2];for(const _0x5cf8ae of _0x333ff7['getWalker']({'singleCharacters':!0x0})){const _0x3195a6=this['_getVidAttributeName'](_0x5cf8ae),_0x426336='elementEnd'==_0x5cf8ae['type']?_0x5cf8ae['previousPosition']['path']['slice'](0x0,-0x1):_0x5cf8ae['previousPosition']['path'],_0x1dc607=_0x467abf['getNodeByPath'](_0x426336)['getAttribute'](_0x3195a6);this['_touched']['set'](_0x1dc607,{'userId':_0x5dff6d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x294c88=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x43545a=>!this['_touched']['has'](_0x43545a));let _0x38fd60=0x0;const _0x4e5163=new Map();for(const _0x526852 in _0x12f7ec['diffData']){const _0x1ed23f=_0x12f7ec['diffData'][_0x526852]['attachChange'],_0x167640=_0x426618(_0x12f7ec['diffData'][_0x526852]['attributesAfter'])||{},_0x356f74=this['_makeModelFromViewString'](_0x12f7ec['diffData'][_0x526852]['insertions']);_0x356f74['rootName']=_0x526852,_0x356f74['_isAttached']=!_0x1ed23f||_0x1ed23f['isAttached'],_0x356f74['isAttached']=()=>_0x356f74['_isAttached'],this['_diffRoots']['set'](_0x526852,_0x356f74),this['_diffRootsAttributes']['set'](_0x526852,_0x167640);const _0x4d32db=this['_makeIdsRoot'](_0x356f74,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x526852,_0x4d32db),_0x4e5163['set'](_0x526852,_0x356f74['isAttached']()?_0x167640:{});for(const [_0x1ca103,_0x1a32c7]of _0x356f74['markers']){if(!_0x1ca103['startsWith']('revision:'))continue;const _0x36fb6d=_0x1ca103['split'](':')[0x2];for(const _0x5f0f4f of _0x1a32c7['getWalker']({'singleCharacters':!0x0})){const _0x205b05=this['_getVidAttributeName'](_0x5f0f4f),_0x65542a=this['_revisionId']++,_0x4e3bbb='elementEnd'==_0x5f0f4f['type']?_0x5f0f4f['previousPosition']['path']['slice'](0x0,-0x1):_0x5f0f4f['previousPosition']['path'];_0x4d32db['getNodeByPath'](_0x4e3bbb)['_setAttribute'](_0x205b05,_0x65542a),this['_touched']['set'](_0x65542a,{'userId':_0x36fb6d});}}for(const _0x16b92a of this['editor']['model']['createRangeIn'](_0x356f74)['getWalker']({'singleCharacters':!0x0})){const _0xbf1ffe=this['_getVidAttributeName'](_0x16b92a),_0x2b6c9d='elementEnd'==_0x16b92a['type']?_0x16b92a['previousPosition']['path']['slice'](0x0,-0x1):_0x16b92a['previousPosition']['path'],_0x1b362a=_0x4d32db['getNodeByPath'](_0x2b6c9d);_0x1b362a['getAttribute'](_0xbf1ffe)>0x0||_0x1b362a['_setAttribute'](_0xbf1ffe,_0x294c88[_0x38fd60++]);}for(const [_0x472c57,_0x5b87cc]of _0x356f74['markers'])_0x472c57['startsWith']('revision:')||this['_markers']['set'](_0x472c57,_0x5b87cc);}const _0x54f83b=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x54f83b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x54f83b,0x1));const _0x8f525c=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x8f525c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x8f525c,0x1));const _0x1166f5=Array['from'](this['_diffRoots'])['map'](([_0x5c0b7d,_0x4c0b90])=>[_0x5c0b7d,F(_0x4c0b90)]);this['_saveMetaData'](this['_lastTo'],_0x1166f5,this['_markers'],_0x4e5163);}['_makeModelFromViewString'](_0x36b134){const _0x2f9127=JSON['parse'](_0x36b134),_0x20f84a=this['editor']['editing']['view']['document'],_0x56836c=new _0x256932(_0x20f84a,_0x2f9127['map'](_0x569737=>V(_0x569737,this['editor'])));return this['editor']['data']['toModel'](_0x56836c);}['_saveMetaData'](_0x4ececf,_0x5abef2,_0x4537ef,_0xb02704){const _0x25b165=new Map(_0x5abef2),_0x5b7dd1=new Map(_0x426618(_0xb02704)),_0x192ce4=new Map();for(const [_0x5a9e46,_0x377d84]of _0x4537ef)_0x192ce4['set'](_0x5a9e46,{'start':_0x377d84['start']['clone'](),'end':_0x377d84['end']['clone'](),'rootName':_0x377d84['root']['rootName']});this['_savedMetaData']['set'](_0x4ececf,{'roots':_0x25b165,'markers':_0x192ce4,'rootsAttributes':_0x5b7dd1});}['_removeMetaData'](_0x46afc4){this['_savedMetaData']['delete'](_0x46afc4);}['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'](_0xe5be36,_0x18e5bf=null){let _0x4a1ff3=null;_0xe5be36['is']('documentFragment')||(_0x4a1ff3=new ft(_0xe5be36['name'],{'vid_start':null===_0x18e5bf?this['_revisionId']++:_0x18e5bf++}));const _0x124512=[];for(const _0x2e83d0 of _0xe5be36['getChildren']())if(_0x2e83d0['is']('element')){_0x124512['push'](this['_makeIdsRoot'](_0x2e83d0,_0x18e5bf));const _0x3b8721=_0x124512[_0x124512['length']-0x1];null!==_0x18e5bf&&(_0x18e5bf=_0x3b8721['is']('element','$text')?_0x3b8721['getAttribute']('vid')+0x1:_0x3b8721['getAttribute']('vid_end')+0x1);}else{for(let _0x28255e=0x0;_0x28255e<_0x2e83d0['offsetSize'];_0x28255e++)_0x124512['push'](new ft('$text',{'vid':null===_0x18e5bf?this['_revisionId']++:_0x18e5bf++}));}if(_0xe5be36['is']('documentFragment')){const _0x5c0ef2=B(_0xe5be36['rootName']);return _0x5c0ef2['_insertChild'](0x0,_0x124512),_0x5c0ef2;}return _0x4a1ff3['_setAttribute']('vid_end',null===_0x18e5bf?this['_revisionId']++:_0x18e5bf++),_0x4a1ff3['_insertChild'](0x0,_0x124512),_0x4a1ff3;}['_calculateMetaData'](_0x1a8155,_0x2d0597,_0xe3f747){this['_reset']();const {roots:_0x4703c6,markers:_0x2c5afa,rootsAttributes:_0x5a15bb}=this['_savedMetaData']['get'](_0x1a8155);this['_baseRoots']=new Map(_0x4703c6),this['_baseRootsAttributes']=new Map(_0x426618(_0x5a15bb));for(const [_0x543c74,_0x25c22c]of this['_baseRoots'])if('$graveyard'!==_0x543c74&&(this['_diffRoots']['set'](_0x543c74,F(_0x25c22c)),this['_diffRootsAttributes']=new Map(_0x426618(_0x5a15bb)),_0xe3f747)){const _0x5199ff=this['_revisionId'];this['_idsRoots']['set'](_0x543c74,this['_makeIdsRoot'](_0x25c22c)),this['_baseIdsRoots']['set'](_0x543c74,this['_makeIdsRoot'](_0x25c22c,_0x5199ff));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0xe3f747&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5e526d,_0xb3a5d2]of _0x2c5afa){const _0x3cfc45=this['_baseRoots']['get'](_0xb3a5d2['rootName']),_0xd1fd5=this['_diffRoots']['get'](_0xb3a5d2['rootName']),_0x3365bf=new vt(this['_fixPosition'](_0xb3a5d2['start'],_0x3cfc45),this['_fixPosition'](_0xb3a5d2['end'],_0x3cfc45)),_0x5dfc8a=this['_fixRange'](_0x3365bf,_0xd1fd5);_0x3cfc45['markers']['set'](_0x5e526d,_0x3365bf),this['_markers']['set'](_0x5e526d,_0x5dfc8a);}this['_applyOperations'](_0x1a8155,_0x2d0597,_0xe3f747);}['_applyOperations'](_0x1e3998,_0x206ac8,_0x5f4913){for(const _0x32ff77 of this['source']['getOperations'](_0x1e3998,_0x206ac8))this['_handleOperation'](_0x32ff77,_0x5f4913);for(const _0x3fe696 of this['_diffRoots']['values']())_0x3fe696['markers']['clear']();for(const [_0x4d4389,_0x578d69]of this['_markers']){this['_diffRoots']['get'](_0x578d69['root']['rootName'])['markers']['set'](_0x4d4389,_0x578d69['clone']());}const _0x3787db=new Map(),_0x5c12ee=new Map();for(const [_0xf9acb6,_0x5d3559]of this['_diffRoots'])_0x3787db['set'](_0xf9acb6,F(_0x5d3559)),_0x5c12ee['set'](_0xf9acb6,this['_diffRootsAttributes']['get'](_0xf9acb6));this['_saveMetaData'](_0x206ac8,_0x3787db,this['_markers'],_0x5c12ee);}['_getPreviousFrom'](_0x3b36de){const _0x3565b1=Array['from'](this['_savedMetaData']['keys']());_0x3565b1['sort']((_0x51c40,_0x5bcc80)=>_0x51c40-_0x5bcc80),_0x3565b1['reverse']();for(const _0x804468 of _0x3565b1)if(_0x804468<_0x3b36de)return _0x804468;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x15979e,_0x8cf8e7){const _0x2fbb54=Array['from'](_0x8cf8e7['markers'])['map'](([_0x313a2b,_0x59e93a])=>[_0x313a2b,this['_fixRange'](_0x59e93a,_0x15979e)]);_0x15979e['markers']=new Map(_0x2fbb54);}['_transformMarkers'](_0x34efbf){for(const _0x357e18 of this['_markers']['values']()){const _0x2cb031=_0x357e18['getTransformedByOperation'](_0x34efbf),_0x24782c=vt['_createFromRanges'](_0x2cb031);_0x357e18['start']=_0x24782c['start'],_0x357e18['end']=_0x24782c['end'];}}['_handleOperation'](_0x3f2adb,_0x207e27){if('addRoot'!=_0x3f2adb['type']&&'detachRoot'!=_0x3f2adb['type']){if('insert'==_0x3f2adb['type']){const _0x33413c=_0x3f2adb['position']['root']['rootName'];this['_diffRoots']['has'](_0x33413c)||(this['_diffRoots']['set'](_0x33413c,B(_0x33413c,!0x0)),this['_diffRootsAttributes']['set'](_0x33413c,{}),_0x207e27&&this['_idsRoots']['set'](_0x33413c,B(_0x33413c,!0x0)));}else{if('addRootAttribute'==_0x3f2adb['type']||'removeRootAttribute'==_0x3f2adb['type']||'changeRootAttribute'==_0x3f2adb['type'])return void this['_handleRootAttributeOperation'](_0x3f2adb);'marker'==_0x3f2adb['type']&&this['_handleMarkerOperation'](_0x3f2adb);}if('marker'!==_0x3f2adb['type']){const _0x21c259=this['_cloneOperation'](_0x3f2adb,this['_diffRoots']);_0x21c259['_execute'](),this['_transformMarkers'](_0x21c259);}if(_0x207e27)switch(_0x3f2adb['type']){case'insert':this['_handleInsertOperation'](_0x3f2adb);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3f2adb);break;case'merge':this['_handleMergeOperation'](_0x3f2adb);break;case'split':this['_handleSplitOperation'](_0x3f2adb);}}else this['_handleRootOperation'](_0x3f2adb,_0x207e27);}['_cloneOperation'](_0x40e766,_0x5f265e){const _0x2106a0=_0x40e766['clone']();return _0x2106a0['_authorId']=_0x40e766['_authorId'],this['_fixOperation'](_0x2106a0,_0x5f265e),_0x2106a0;}['_getBaseVids'](_0x476968){return _0x476968['map'](_0x371fe0=>{const _0x4d3e3c=this['_getVidAttributeName'](_0x371fe0);return Number(_0x371fe0['item']['getAttribute'](_0x4d3e3c));});}['_generateTape'](_0x55b987,_0x27248b){if(_0x55b987['is']('element','$text'))_0x27248b['push']({'item':_0x55b987,'type':'text'});else{_0x55b987['is']('element')&&_0x27248b['push']({'item':_0x55b987,'type':'elementStart'});for(const _0xe2fe60 of _0x55b987['getChildren']())this['_generateTape'](_0xe2fe60,_0x27248b);_0x55b987['is']('element')&&_0x27248b['push']({'item':_0x55b987,'type':'elementEnd'});}return _0x27248b;}['_getState'](){const _0x275e72=new Map(this['_touched']),_0x31283e=new Map(_0x275e72),_0x1211c0=new Map(),_0x5194d7={'insertions':{},'deletions':{}},_0x2e19f9={'insertions':{},'deletions':{}},_0x594184=new Map(),_0x1789b5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1789b5['delete']('$graveyard');for(const _0x47fcec of _0x1789b5){const _0x4fdaec=this['_diffRoots']['get'](_0x47fcec)||B(_0x47fcec,!0x1),_0x3c6415=this['_baseRoots']['get'](_0x47fcec)||B(_0x47fcec,!0x1);_0x4fdaec['isAttached']()||_0x3c6415['isAttached']()?(_0x5194d7['insertions'][_0x47fcec]=F(_0x4fdaec),_0x5194d7['deletions'][_0x47fcec]=F(_0x3c6415),this['_copyMarkers'](_0x5194d7['deletions'][_0x47fcec],_0x3c6415),this['_copyMarkers'](_0x5194d7['insertions'][_0x47fcec],_0x4fdaec),_0x2e19f9['insertions'][_0x47fcec]=this['_generateTape'](this['_idsRoots']['get'](_0x47fcec),[]),_0x2e19f9['deletions'][_0x47fcec]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x47fcec)||B(_0x47fcec,!0x1),[])):_0x1789b5['delete'](_0x47fcec);}for(const _0x1fe1b1 of _0x1789b5){const _0x5ab51c=_0x2e19f9['insertions'][_0x1fe1b1];for(const _0x304671 of _0x5ab51c){const _0x3bce8b=this['_getVidAttributeName'](_0x304671),_0x95635e=_0x304671['item']['getAttribute'](_0x3bce8b);_0x31283e['delete'](_0x95635e),_0x95635e>=this['_startingRevisionId']&&_0x1211c0['set'](_0x95635e,_0x275e72['get'](_0x95635e));}}for(const _0x17b478 of _0x1789b5){const _0x3be3ce=_0x2e19f9['insertions'][_0x17b478],_0x1ae3cf=this['_getBaseVids'](_0x2e19f9['deletions'][_0x17b478]);let _0x18c0f7=0x0;for(const _0x548ba6 of _0x3be3ce){const _0x2c762d=this['_getVidAttributeName'](_0x548ba6),_0x147e7b=_0x548ba6['item']['getAttribute'](_0x2c762d);if(!_0x1211c0['has'](_0x147e7b)&&!_0x594184['has'](_0x147e7b)){if(_0x31283e['has'](_0x147e7b))_0x18c0f7++;else{if(_0x147e7b!=_0x1ae3cf[_0x18c0f7]){const _0x9b8624=_0x275e72['get'](_0x147e7b)||_0x275e72['get'](_0x1ae3cf[_0x18c0f7]);for(;_0x147e7b!=_0x1ae3cf[_0x18c0f7];)_0x31283e['has'](_0x1ae3cf[_0x18c0f7])||(_0x594184['set'](_0x1ae3cf[_0x18c0f7],_0x9b8624),_0x275e72['set'](_0x1ae3cf[_0x18c0f7],_0x9b8624)),_0x18c0f7++;}_0x18c0f7++;}}}}for(const _0x4dbd1b of _0x1789b5){const _0x5c9378=_0x2e19f9['insertions'][_0x4dbd1b];for(const _0x16f1b5 of _0x5c9378){const _0x2e940c=this['_getVidAttributeName'](_0x16f1b5),_0x588cdc=_0x16f1b5['item']['getAttribute'](_0x2e940c);if(_0x594184['has'](_0x588cdc)){const _0x3d8d83=_0x594184['get'](_0x588cdc);_0x31283e['has'](_0x588cdc)||_0x31283e['set'](_0x588cdc,{..._0x3d8d83}),_0x1211c0['set'](_0x588cdc,{..._0x3d8d83});}}}for(const _0x6f039 of _0x31283e['keys']())_0x6f039>=this['_startingRevisionId']&&_0x31283e['delete'](_0x6f039);const _0x2dd32f=new Map();for(const _0x110644 of _0x1789b5){let _0x4818d6=_0x2e19f9['insertions'][_0x110644];for(const _0x5b710c of _0x4818d6)if(_0x5b710c['item']['is']('element','tableCell')){const _0x52cf88=this['_getVidAttributeName'](_0x5b710c),_0x38f4f7=_0x5b710c['item']['getAttribute'](_0x52cf88);if(_0x1211c0['has'](_0x38f4f7)){const _0x5edeb0=_0x5b710c['item']['parent']['parent']['getAttribute']('vid_start'),_0x499380=_0x2dd32f['get'](_0x5edeb0)||new Set();_0x499380['add'](_0x1211c0['get'](_0x38f4f7)['userId']),_0x2dd32f['set'](_0x5edeb0,_0x499380);}}_0x4818d6=_0x2e19f9['deletions'][_0x110644];for(const _0x17d419 of _0x4818d6)if(_0x17d419['item']['is']('element','tableCell')){const _0x285fcc=this['_getVidAttributeName'](_0x17d419),_0x24aa4f=_0x17d419['item']['getAttribute'](_0x285fcc);if(_0x31283e['has'](_0x24aa4f)){const _0x416b5b=_0x17d419['item']['parent']['parent']['getAttribute']('vid_start'),_0xf6fbc8=_0x2dd32f['get'](_0x416b5b)||new Set();_0xf6fbc8['add'](_0x31283e['get'](_0x24aa4f)['userId']),_0x2dd32f['set'](_0x416b5b,_0xf6fbc8);}}for(const _0x1f3e3b of _0x2dd32f['keys']())(_0x1211c0['has'](_0x1f3e3b)||_0x31283e['has'](_0x1f3e3b))&&_0x2dd32f['delete'](_0x1f3e3b);}for(const _0x2f886d of _0x1789b5){const _0xe8dd35=_0x2e19f9['insertions'][_0x2f886d];let _0x173c1c=null,_0x1d3061=null;for(const _0x24cdc1 of _0xe8dd35){const _0x13e7a6=this['_getVidAttributeName'](_0x24cdc1),_0x2eeb1b=_0x24cdc1['item']['getAttribute'](_0x13e7a6),_0xe28715=_0x2dd32f['get'](_0x2eeb1b);_0xe28715&&'elementStart'==_0x24cdc1['type']&&(_0x173c1c=Array['from'](_0xe28715)[0x0],_0x1d3061=_0x24cdc1['item']['getAttribute']('vid_end')),_0x173c1c&&(_0x31283e['set'](_0x2eeb1b,{'userId':_0x173c1c}),_0x1211c0['set'](_0x2eeb1b,{'userId':_0x173c1c})),_0x2eeb1b==_0x1d3061&&(_0x173c1c=null,_0x1d3061=null);}}const _0x35f05f={},_0x2bcf7e=new Set();for(const _0x3e0c3a of _0x1789b5){const _0x1abb31=_0x5194d7['deletions'][_0x3e0c3a],_0x14f762=_0x5194d7['insertions'][_0x3e0c3a];for(const {userId:_0x3b5161}of this['_touchedMarkers']['values']())null!==_0x3b5161&&_0x2bcf7e['add'](_0x3b5161);for(const {userId:_0x4924de}of this['_touchedRoots']['values']())null!==_0x4924de&&_0x2bcf7e['add'](_0x4924de);this['_markChanges'](_0x14f762,_0x2e19f9['insertions'][_0x3e0c3a],_0x1211c0,'insertion',_0x2bcf7e),this['_markChanges'](_0x1abb31,_0x2e19f9['deletions'][_0x3e0c3a],_0x31283e,'deletion',_0x2bcf7e),_0x35f05f[_0x3e0c3a]={'insertions':this['_prepareViewToSave'](_0x14f762),'deletions':this['_prepareViewToSave'](_0x1abb31),'attachChange':this['_touchedRoots']['get'](_0x3e0c3a)||null,'attributesBefore':_0x426618(this['_baseRootsAttributes']['get'](_0x3e0c3a))||{},'attributesAfter':_0x426618(this['_diffRootsAttributes']['get'](_0x3e0c3a))};}return{'diffData':_0x35f05f,'authorsIds':Array['from'](_0x2bcf7e)};}['_processRootBeforeSave'](_0x24d803){for(const [,_0x43f90d]of _0x24d803['markers']){const _0x560c5c=_0x43f90d['start']['getAncestors']()['filter'](_0x44fa45=>'tableCell'==_0x44fa45['name']);for(const _0x4ea38e of _0x560c5c)0x1==_0x4ea38e['childCount']&&_0x4ea38e['getChild'](0x0)['is']('element','paragraph')&&_0x4ea38e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x46da7a){this['_processRootBeforeSave'](_0x46da7a);const _0x1ffd9f=this['editor']['data']['toView'](_0x46da7a,{}),_0x118714=Array['from'](_0x1ffd9f['getChildren']())['map'](_0x5e5de4=>this['_getViewJson'](_0x5e5de4));return JSON['stringify'](_0x118714);}['_getViewJson'](_0x3946df){if(_0x3946df['is']('$text'))return _0x3946df['data'];{const _0x465f12=_0x3946df;return{'type':Object['keys'](C)['find'](_0x543121=>_0x3946df instanceof C[_0x543121]),'name':_0x465f12['name'],'attributes':Array['from'](_0x465f12['getAttributes']()),'children':Array['from'](_0x465f12['getChildren']())['map'](_0x434ee5=>this['_getViewJson'](_0x434ee5))};}}['_markChanges'](_0x4e9c94,_0x395066,_0x4d6ac7,_0x579502,_0x30f349){let _0x394418=null,_0x5a49f1=null,_0x486cb7=0x0;const _0x64574f=this['editor']['model'];for(let _0x128bca=0x0;_0x128bca<_0x395066['length'];_0x128bca++){const _0x34d723=this['_getVidAttributeName'](_0x395066[_0x128bca]),_0x440ac0=_0x395066[_0x128bca]['item']['getAttribute'](_0x34d723),_0x429272=_0x4d6ac7['get'](_0x440ac0),_0x57d046=_0x128bca==_0x395066['length']-0x1;(!_0x394418&&_0x429272&&(_0x394418=_0x429272,_0x5a49f1=_0x395066[_0x128bca]),_0x394418&&(!_0x429272||_0x429272['userId']!=_0x394418['userId']))&&(_0x1dd6ef(_0x429272,J(_0x5a49f1,_0x4e9c94,_0x64574f),J(_0x395066[_0x128bca],_0x4e9c94,_0x64574f)),_0x394418=_0x429272||null,_0x5a49f1=_0x429272?_0x395066[_0x128bca]:null),_0x394418&&_0x57d046&&_0x1dd6ef(_0x429272,J(_0x5a49f1,_0x4e9c94,_0x64574f),q(_0x395066[_0x128bca],_0x4e9c94,_0x64574f));}function _0x1dd6ef(_0x2b5fb5,_0x5d01ce,_0x4597c8){const _0x585038=_0x394418['userId'],_0x598d71='revision:'+_0x579502+':'+_0x585038+':'+_0x486cb7++,_0x203eb7=_0x64574f['createRange'](_0x5d01ce,_0x4597c8);_0x4e9c94['markers']['set'](_0x598d71,_0x203eb7),null!==_0x585038&&_0x30f349['add'](_0x585038);}}['_getVidAttributeName'](_0x510d29){switch(_0x510d29['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x194995,_0x591303){_0x194995['baseVersion']=null;for(const _0xb08807 in _0x194995){const _0x16c222=_0x194995[_0xb08807];if(_0x16c222 instanceof gt){const _0x7fc7b7=_0x591303['get'](_0x16c222['root']['rootName']);_0x194995[_0xb08807]=this['_fixPosition'](_0x16c222,_0x7fc7b7);}if(_0x16c222 instanceof vt){const _0x51fcd0=_0x591303['get'](_0x16c222['root']['rootName']);_0x194995[_0xb08807]=this['_fixRange'](_0x16c222,_0x51fcd0);}'root'===_0xb08807&&(_0x194995['root']=_0x591303['get'](_0x194995['root']['rootName']));}}['_fixRange'](_0x78035,_0x1bb90e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x78035['start'],_0x1bb90e),this['_fixPosition'](_0x78035['end'],_0x1bb90e));}['_fixPosition'](_0x128f34,_0x2ac08a){return this['editor']['model']['createPositionFromPath'](_0x2ac08a,_0x128f34['path'],_0x128f34['stickiness']);}['_handleInsertOperation'](_0x2d7f52){const _0x39fbc2=this['_idsRoots']['get'](_0x2d7f52['position']['root']['rootName']),_0x347aa7=this['_fixPosition'](_0x2d7f52['position'],_0x39fbc2),_0x43bc0c=null===_0x2d7f52['_authorId']?null:_0x2d7f52['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4166ff=_0x347aa7['parent'],_0x30c33b=this['_revisionId'],_0x11e1c5=[];for(const _0x22571a of _0x2d7f52['nodes'])if(_0x22571a['is']('element'))_0x11e1c5['push'](this['_makeIdsRoot'](_0x22571a));else{for(let _0x50724e=0x0;_0x50724e<_0x22571a['offsetSize'];_0x50724e++)_0x11e1c5['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x493f40=this['_revisionId'];for(let _0x263f26=_0x30c33b;_0x263f26<_0x493f40;_0x263f26++)this['_touched']['set'](_0x263f26,{'userId':_0x43bc0c});_0x4166ff['_insertChild'](_0x347aa7['offset'],_0x11e1c5);}['_handleMoveOperation'](_0x54c5fe){(_0x54c5fe=this['_cloneOperation'](_0x54c5fe,this['_idsRoots']))['_execute']();const _0xbe4c27=null===_0x54c5fe['_authorId']?null:_0x54c5fe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x413a57=_0x54c5fe['getMovedRangeStart'](),_0x1dceb2=_0x413a57['parent'],_0x465b42=_0x413a57['offset'];!function _0x4d821c(_0x1ec487,_0x3177a1,_0x10eb1d,_0xe6ab0c){for(let _0x684cd7=_0x10eb1d;_0x684cd7<_0xe6ab0c;_0x684cd7++){const _0x23be5f=_0x3177a1['getChild'](_0x684cd7);_0x23be5f['is']('element','$text')?_0x1ec487['set'](_0x23be5f['getAttribute']('vid'),{'userId':_0xbe4c27}):(_0x1ec487['set'](_0x23be5f['getAttribute']('vid_start'),{'userId':_0xbe4c27}),_0x4d821c(_0x1ec487,_0x23be5f,0x0,_0x23be5f['childCount']),_0x1ec487['set'](_0x23be5f['getAttribute']('vid_end'),{'userId':_0xbe4c27}));}}(this['_touched'],_0x1dceb2,_0x465b42,_0x465b42+_0x54c5fe['howMany']);}['_handleMergeOperation'](_0x38b061){const _0x56541c=null===(_0x38b061=this['_cloneOperation'](_0x38b061,this['_idsRoots']))['_authorId']?null:_0x38b061['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x354597=_0x38b061['targetPosition']['parent'],_0x359c89=_0x38b061['sourcePosition']['parent'],_0x3b3b9d=_0x354597['getAttribute']('vid_end'),_0x3a06fb=_0x359c89['getAttribute']('vid_start');_0x354597['_setAttribute']('vid_end',_0x359c89['getAttribute']('vid_end')),_0x359c89['_setAttribute']('vid_end',_0x3b3b9d),this['_touched']['set'](_0x3a06fb,{'userId':_0x56541c}),this['_touched']['set'](_0x3b3b9d,{'userId':_0x56541c}),_0x38b061['_execute']();}['_handleSplitOperation'](_0x56ae04){const _0xf95e29=null===(_0x56ae04=this['_cloneOperation'](_0x56ae04,this['_idsRoots']))['_authorId']?null:_0x56ae04['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3fb73a=_0x56ae04['graveyardPosition'],_0x262814=_0x56ae04['splitPosition']['parent'];_0x56ae04['_execute']();const _0x80c365=_0x262814['getAttribute']('vid_end'),_0x4ff8d1=_0x56ae04['insertionPosition']['nodeAfter'];if(_0x3fb73a){const _0x2bc68c=_0x4ff8d1['getAttribute']('vid_end'),_0x1828fe=_0x262814['getAttribute']('vid_end');_0x262814['_setAttribute']('vid_end',_0x2bc68c),_0x4ff8d1['_setAttribute']('vid_end',_0x1828fe),this['_touched']['set'](_0x262814['getAttribute']('vid_end'),{'userId':_0xf95e29}),this['_touched']['set'](_0x4ff8d1['getAttribute']('vid_start'),{'userId':_0xf95e29});}else{const _0x8175a0=this['_revisionId']++,_0x4e7edf=this['_revisionId']++;_0x262814['_setAttribute']('vid_end',_0x8175a0),_0x4ff8d1['_setAttribute']('vid_start',_0x4e7edf),_0x4ff8d1['_setAttribute']('vid_end',_0x80c365),this['_touched']['set'](_0x8175a0,{'userId':_0xf95e29}),this['_touched']['set'](_0x4e7edf,{'userId':_0xf95e29});}}['_handleMarkerOperation'](_0xdad83e){if(!_0xdad83e['affectsData'])return;const _0x218d35=(_0xdad83e=this['_cloneOperation'](_0xdad83e,this['_diffRoots']))['oldRange']?_0xdad83e['oldRange']['root']:null,_0x427189=_0xdad83e['newRange']?_0xdad83e['newRange']['root']:null;_0x218d35&&this['_markers']['delete'](_0xdad83e['name']),_0x427189&&this['_markers']['set'](_0xdad83e['name'],_0xdad83e['newRange']['clone']());const _0x5ca7d7=null===_0xdad83e['_authorId']?null:_0xdad83e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x244f29=_0xdad83e['name'];if(!this['_touchedMarkers']['has'](_0x244f29))return void this['_touchedMarkers']['set'](_0x244f29,{'range':_0xdad83e['oldRange'],'userId':_0x5ca7d7});const _0x4fcbb2=this['_touchedMarkers']['get'](_0x244f29),_0x7f2688=_0x4fcbb2['range'],_0x2eeb21=_0xdad83e['newRange'];null==_0x7f2688&&null==_0x2eeb21||_0x7f2688&&_0x2eeb21&&_0x7f2688['isEqual'](_0x2eeb21)?this['_touchedMarkers']['delete'](_0xdad83e['name']):_0x4fcbb2['userId']=_0x5ca7d7;}['_handleRootOperation'](_0x401268,_0x4b0e42){this['_diffRoots']['has'](_0x401268['rootName'])?this['_diffRoots']['get'](_0x401268['rootName'])['_isAttached']=_0x401268['isAdd']:(this['_diffRoots']['set'](_0x401268['rootName'],B(_0x401268['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x401268['rootName'],{}),_0x4b0e42&&this['_idsRoots']['set'](_0x401268['rootName'],B(_0x401268['rootName'],!0x0)));const _0x126fb7=null===_0x401268['_authorId']?null:_0x401268['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x176a94=this['_touchedRoots']['get'](_0x401268['rootName']);_0x176a94&&_0x176a94['userId']===_0x126fb7?this['_touchedRoots']['delete'](_0x401268['rootName']):this['_touchedRoots']['set'](_0x401268['rootName'],{'userId':_0x126fb7,'isAttached':_0x401268['isAdd']});}['_handleRootAttributeOperation'](_0x5b2e41){const _0x3c12d5=this['_diffRootsAttributes']['get'](_0x5b2e41['root']['rootName']);null===_0x5b2e41['newValue']?delete _0x3c12d5[_0x5b2e41['key']]:_0x3c12d5[_0x5b2e41['key']]=_0x5b2e41['newValue'];}}function F(_0x3e975f){const _0x41d35b=B(_0x3e975f['rootName'],_0x3e975f['isAttached']());for(const _0x1ea18a of _0x3e975f['getChildren']()){const _0x4631b4=_0x1ea18a['_clone'](!0x0);_0x41d35b['_appendChild'](_0x4631b4);}return _0x41d35b;}function B(_0x11ea99,_0x53a63b=!0x0){const _0x18c6d1=new wt();return _0x18c6d1['rootName']=_0x11ea99,_0x18c6d1['_isAttached']=_0x53a63b,_0x18c6d1['isAttached']=()=>_0x18c6d1['_isAttached'],_0x18c6d1;}function J(_0x8a4224,_0x3c7949,_0x4585a1){const _0x5df6b='elementEnd'==_0x8a4224['type']?_0x4585a1['createPositionAt'](_0x8a4224['item'],'end'):_0x4585a1['createPositionBefore'](_0x8a4224['item']);return _0x4585a1['createPositionFromPath'](_0x3c7949,_0x5df6b['path'],_0x5df6b['stickiness']);}function q(_0x168aba,_0x301941,_0x2949c7){const _0x575458='elementStart'==_0x168aba['type']?_0x2949c7['createPositionAt'](_0x168aba['item'],0x0):_0x2949c7['createPositionAfter'](_0x168aba['item']);return _0x2949c7['createPositionFromPath'](_0x301941,_0x575458['path'],_0x575458['stickiness']);}class ns extends _0x504f04{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xa7a44a,_0x47112d){super(_0xa7a44a),this['focusTracker']=new _0x59c2e2(),this['keystrokes']=new _0xa43dd1(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x47112d),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'](),_0x39ced8({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x582b1b=_0x49db10=>_0x49db10['stopPropagation']();this['keystrokes']['set']('arrowright',_0x582b1b),this['keystrokes']['set']('arrowleft',_0x582b1b),this['keystrokes']['set']('arrowup',_0x582b1b),this['keystrokes']['set']('arrowdown',_0x582b1b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x30e88a){this['revisionNameInputView']['fieldView']['element']['value']=_0x30e88a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x33de44){const _0x26b779=new at(this['locale'],_0x2aeefc),_0x313346=_0x26b779['fieldView'];_0x313346['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x8300d2=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x33de44&&(_0x8300d2+='\x20('+R(this['locale'],'optional')+')'),(_0x26b779['label']=_0x8300d2,_0x313346['on']('input',()=>{this['revisionNameInputValue']=_0x313346['element']['value']['trim']();}),_0x26b779);}}class u extends _0x25f453{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x37dbf9=this['editor'],_0x1d7f35=_0x37dbf9['plugins']['get']('RevisionTracker');_0x37dbf9['ui']['componentFactory']['add']('revisionHistory',_0x1e7e27=>{const _0x671633=_0x45eff5(_0x1e7e27),_0x15e0df=_0x671633['panelView']['children'],_0x202576=new te(_0x1e7e27),_0x35aba7=new _0x58f80d(_0x1e7e27),_0x43e548=new _0x2c2d01(_0x1e7e27),_0x529a73=new _0x58f80d(_0x1e7e27),_0x46e2d6=new _0x2c2d01(_0x1e7e27);return _0x671633['bind']('isEnabled')['to'](_0x1d7f35,'isReady',_0x1d7f35,'isEnabled',_0x37dbf9,'isReadOnly',(_0x5af792,_0x376dc3,_0x28f9bf)=>_0x5af792&&_0x376dc3&&!_0x28f9bf),_0x671633['buttonView']['set']({'icon':_0x24dc9e['history'],'label':R(_0x1e7e27,'Revision\x20history'),'tooltip':!0x0}),_0x43e548['set']({'label':R(_0x1e7e27,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x43e548['bind']('isEnabled')['to'](_0x1d7f35,'isReady',_0x1d7f35,'isEnabled',_0x37dbf9,'isReadOnly',(_0x3b674d,_0x491cfb,_0x490687)=>_0x3b674d&&_0x491cfb&&!_0x490687),_0x43e548['on']('execute',()=>this['_showDialog']()),_0x46e2d6['set']({'label':R(_0x1e7e27,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x46e2d6['bind']('isEnabled')['to'](_0x1d7f35,'isReady',_0x37dbf9,'isReadOnly',(_0x1e3cda,_0x421ed3)=>_0x1e3cda&&!_0x421ed3),_0x46e2d6['on']('execute',()=>{_0x37dbf9['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x671633['isOpen']=!0x1,_0x37dbf9['editing']['view']['focus']();}),_0x35aba7['children']['add'](_0x43e548),_0x529a73['children']['add'](_0x46e2d6),_0x202576['role']='menu',_0x202576['items']['addMany']([_0x35aba7,_0x529a73]),_0x15e0df['add'](_0x202576),_0x671633;}),_0x37dbf9['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3bf4e0=this['editor'],_0x47a9=_0x3bf4e0['locale'],_0x474c50=new _0x40f688(_0x47a9),_0x3fa8a8=new _0x392a28(_0x47a9);_0x474c50['buttonView']['set']({'icon':_0x24dc9e['history'],'label':R(_0x47a9,'Revision\x20history')});const _0x25be82=new _0x16b3e5(_0x47a9,_0x474c50),_0x1797f4=new _0x34ddbb(_0x47a9);_0x1797f4['set']({'label':R(_0x47a9,'Save\x20current\x20revision')}),_0x1797f4['delegate']('execute')['to'](_0x474c50),_0x1797f4['on']('execute',()=>{this['_showDialog']();}),_0x25be82['children']['add'](_0x1797f4),_0x3fa8a8['items']['add'](_0x25be82);const _0xc1a39b=new _0x16b3e5(_0x47a9,_0x474c50),_0x5843ba=new _0x34ddbb(_0x47a9);return _0x5843ba['set']({'label':R(_0x47a9,'Open\x20revision\x20history')}),_0x5843ba['delegate']('execute')['to'](_0x474c50),_0x5843ba['on']('execute',()=>{_0x3bf4e0['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xc1a39b['children']['add'](_0x5843ba),_0x3fa8a8['items']['add'](_0xc1a39b),_0x474c50['panelView']['children']['add'](_0x3fa8a8),_0x474c50;}['_showDialog'](){const _0x4fa4d7=this['editor'],_0xe37639=_0x4fa4d7['locale'],_0xe020d2=_0x4fa4d7['plugins']['get']('Dialog'),_0x3ac4ac=_0x4fa4d7['plugins']['get']('RevisionTracker');function _0x170eb9(_0x52d73e){_0x4fa4d7['config']['get']('revisionHistory.requireRevisionName')&&''===_0x52d73e['revisionName']?_0x52d73e['revisionNameInputView']['errorText']=R(_0xe37639,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4fa4d7['plugins']['get'](l)['saveRevision']({'name':_0x52d73e['revisionName']}),_0xe020d2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x170eb9(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xe020d2['show']({'id':'revisionSave','title':R(_0xe37639,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x4fa4d7['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xe020d2['hide']()},{'label':R(_0x4fa4d7['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x32fcb9){_0x32fcb9['bind']('isEnabled')['to'](_0x3ac4ac,'isReady',_0x3ac4ac,'isEnabled',_0x4fa4d7,'isReadOnly',(_0xc57e45,_0x4f67ac,_0x41d42e)=>_0xc57e45&&_0x4f67ac&&!_0x41d42e);},'onExecute':()=>_0x170eb9(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x338ebe=this['editor'],_0x3bb9e3=_0x338ebe['locale'];this['_saveRevisionFormView']=new ns(_0x3bb9e3,_0x338ebe['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x504f04{['changeId'];['_model'];constructor(_0x4da72b,_0x4f379b){super(_0x4da72b),this['_model']=_0x4f379b,this['changeId']=_0x4f379b['id'];const _0x5eebb6=this['bindTemplate'],_0x5194b6=R(_0x4da72b,_0x4f379b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4f379b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4f379b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5eebb6['to']('type',_0x444e56=>'ck-revision-change__'+_0x444e56)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5194b6}]},{'text':'\x20'+_0x4f379b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x3bd438(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x119202){super(),this['id']=_0x119202['id']||_0x3bb153(),this['author']=_0x119202['author'],this['type']=_0x119202['type'],this['data']=_0x119202['data']||{},this['rootName']=_0x119202['rootName'],this['set']('createdAt',_0x119202['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(_0x101eaf,_0x118318){this['newRevisionId']=_0x101eaf,this['oldRevisionId']=_0x118318,this['changes']=new _0x5f3aba();}['_setChanges'](_0x17f517){for(const _0x7dcba0 of _0x17f517)this['changes']['add'](_0x7dcba0);}}const Z={'c':_0x4c37ef,'a':_0xc6a38d,'e':_0x3ce751,'r':_0xe881ff,'u':_0x48b353};class d extends _0x25f453{['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[_0x10afd7,_0x134c69,j];}constructor(_0x1fabec){super(_0x1fabec),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',(_0x289046,_0x43b7da,_0x111817)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4759c5=>{for(const _0x1bb093 of this['editor']['editing']['view']['document']['roots'])_0x111817?_0x4759c5['removeClass']('ck-editor__editable__overlay',_0x1bb093):_0x4759c5['addClass']('ck-editor__editable__overlay',_0x1bb093);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4044e3=>null!==_0x4044e3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x458541,_0x17ce42,_0x455222)=>_0x458541&&_0x455222?_0x17ce42['changes']['getIndex'](_0x455222):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x7acd98,_0x3bef84)=>_0x7acd98?_0x3bef84['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x134c69);}['init'](){const _0x415000=this['editor'],_0x254f7e=new bt(_0x415000,{'direction':'backward'}),_0x11a6ac=new bt(_0x415000,{'direction':'forward'});(_0x415000['commands']['add']('showPreviousChange',_0x254f7e),_0x415000['commands']['add']('showNextChange',_0x11a6ac),_0x415000['commands']['add']('restoreRevision',new yt(_0x415000)),this['on']('change:numberOfChanges',()=>{_0x254f7e['refresh'](),_0x11a6ac['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x415000['enableReadOnlyMode']('revision-viewer'),_0x415000['plugins']['has']('WidgetToolbarRepository'))&&_0x415000['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4b5ef9){await this['loadRevisionData'](_0x4b5ef9);const _0x51f574={};for(const _0x78ca8d in _0x4b5ef9['diffData']){if(_0x4b5ef9['diffData'][_0x78ca8d]['attachChange']&&!_0x4b5ef9['diffData'][_0x78ca8d]['attachChange']['isAttached'])continue;const _0x8e2812=this['_removeRevisionMarkers'](JSON['parse'](_0x4b5ef9['diffData'][_0x78ca8d]['insertions'])),_0x2dbaef=this['editor']['editing']['view']['document'],_0x1d53d8=new _0x256932(_0x2dbaef,_0x8e2812['map'](_0x113ac9=>this['_getViewObj'](_0x113ac9)));this['editor']['data']['processor']['useFillerType']('marked'),_0x51f574[_0x78ca8d]=this['editor']['data']['processor']['toData'](_0x1d53d8),this['editor']['data']['processor']['useFillerType']('default');}return _0x51f574;}async['getRevisionRootsAttributes'](_0x3258b6){await this['loadRevisionData'](_0x3258b6);const _0x10423f={};for(const _0x2127bb in _0x3258b6['diffData'])_0x3258b6['diffData'][_0x2127bb]['attachChange']&&!_0x3258b6['diffData'][_0x2127bb]['attachChange']['isAttached']||(_0x10423f[_0x2127bb]=_0x3258b6['diffData'][_0x2127bb]['attributesAfter']||{});return _0x10423f;}['_removeRevisionMarkers'](_0x547d7a){return(_0x547d7a=_0x547d7a['filter'](_0x425efd=>!_0x425efd['name']||'revision-start'!==_0x425efd['name']&&'revision-end'!==_0x425efd['name']))['forEach'](_0x2a4cef=>{'string'!=typeof _0x2a4cef&&(_0x2a4cef['children']=this['_removeRevisionMarkers'](_0x2a4cef['children']),_0x2a4cef['attributes']=_0x2a4cef['attributes']['filter'](_0x41721c=>!_0x41721c[0x0]['startsWith']('data-revision-')));}),_0x547d7a;}async['compare'](_0x4ebbec,_0x54c032,_0x1706b4=!0x1){if(!this['isEnabled'])return;const _0x424784=this['diff'],_0x5f542f=this['repository'],_0x4b585d='string'==typeof _0x4ebbec?_0x5f542f['getRevision'](_0x4ebbec):_0x4ebbec,_0x1750e5='string'==typeof _0x54c032?_0x5f542f['getRevision'](_0x54c032):_0x54c032,_0x382407=_0x4b585d['id'],_0xc0880e=_0x1750e5?_0x1750e5['id']:null;if(!_0x1706b4&&this['diff']&&this['diff']['newRevisionId']===_0x382407&&this['diff']['oldRevisionId']===_0xc0880e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x382407,_0xc0880e);const _0x120722=this['_getRevisionsRange'](_0x4b585d,_0x1750e5,!0x0)['map'](_0x2ddb83=>this['loadRevisionData'](_0x2ddb83));return _0x120722['push'](new Promise(_0x261601=>{setTimeout(_0x261601,0x14);})),Promise['all'](_0x120722)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x331e51=this['_getDiff'](_0x382407,_0xc0880e);for(const _0x12e971 of _0x331e51['changes'])this['_changeIdToChange']['set'](_0x12e971['id'],_0x12e971);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x460ffa=>{for(const _0x1491bd of this['editor']['model']['document']['getRootNames']())_0x460ffa['detachRoot'](_0x1491bd);for(const _0x27a567 of Object['keys'](_0x331e51['model'])){const _0x12934d=_0x460ffa['addRoot'](_0x27a567);for(const _0x4b412e of Object['keys'](_0x331e51['attributes'][_0x27a567]))_0x460ffa['setAttribute'](_0x4b412e,_0x331e51['attributes'][_0x27a567][_0x4b412e],_0x12934d);_0x460ffa['insert'](_0x331e51['model'][_0x27a567],_0x12934d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x331e51['changes'])),this['isReady']=!0x0;})['catch'](_0x33ec47=>{console['error'](_0x33ec47),this['_cleanUp'](),_0x424784&&(this['diff']=_0x424784),this['isReady']=!0x0;});}['addRevisionData'](_0x4fe06c,_0x3af7a3){const _0xb4902=this['repository']['createRevision'](_0x4fe06c);return _0xb4902['on']('_update',(_0x751ede,_0x423b34,_0xd09e3f)=>_0x3af7a3(_0x423b34,_0xd09e3f,_0xb4902)),this['repository']['addRevision'](_0xb4902),_0xb4902;}['loadRevisionData'](_0x10cd21){if(!_0x10cd21||_0x10cd21['diffData'])return Promise['resolve']();{const _0x28e880=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x28e880,'revisionId':_0x10cd21['id']})['then'](_0x3dbeb4=>{_0x10cd21['_update']({'diffData':_0x3dbeb4['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},_0x195df1=>{for(const _0x375a3c of this['editor']['model']['document']['getRootNames']())_0x195df1['detachRoot'](_0x375a3c);});}['_sortAndFilterDiffChanges'](_0x2a2587){const _0x3f5617=[],_0x2694cf=new Map();for(const _0xa3730e of this['editor']['model']['document']['getRootNames']()){const _0x413323=this['editor']['editing']['view']['getDomRoot'](_0xa3730e);if(!_0x413323)continue;const _0x1cdf4d=_0x413323['getClientRects']()['item'](0x0);_0x1cdf4d&&(_0x3f5617['push'](_0xa3730e),_0x2694cf['set'](_0xa3730e,_0x1cdf4d));}return _0x3f5617['sort']((_0x4c3bbb,_0x368de9)=>{const _0x5c44ff=_0x2694cf['get'](_0x4c3bbb),_0x435213=_0x2694cf['get'](_0x368de9);return _0x5c44ff['y']-_0x435213['y']||_0x5c44ff['x']-_0x435213['x'];}),(_0x2a2587=_0x2a2587['filter'](_0x591a3e=>_0x3f5617['includes'](_0x591a3e['rootName'])))['sort']((_0x5b0b66,_0x928292)=>_0x3f5617['indexOf'](_0x5b0b66['rootName'])-_0x3f5617['indexOf'](_0x928292['rootName'])),_0x2a2587;}['_makeTape'](_0x342dd1){const _0x1d8549=Array['from'](_0x342dd1['markers'])['filter'](([_0x4137c2,_0x3bec20])=>_0x4137c2['startsWith']('revision:')&&!_0x3bec20['isCollapsed']),_0x482c5c=Array['from'](this['editor']['model']['createRangeIn'](_0x342dd1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1d8549['length'])for(const _0x4f00c9 of _0x482c5c){const [_0x1c2e4d,_0x1cd7a]=_0x1d8549[0x0],[,_0xb8611b,_0x368dc4]=_0x1c2e4d['split'](':');if(_0x1cd7a['end']['isEqual'](_0x4f00c9['nextPosition'])&&_0x1d8549['shift'](),(_0x4f00c9['previousPosition']['isEqual'](_0x1cd7a['start'])||_0x4f00c9['previousPosition']['isAfter'](_0x1cd7a['start']))&&('insertion'==_0xb8611b?_0x4f00c9['isAdded']={'userId':_0x368dc4}:'deletion'==_0xb8611b&&(_0x4f00c9['isRemoved']={'userId':_0x368dc4})),0x0==_0x1d8549['length'])break;}return _0x482c5c;}['_refreshStartEndIndex'](_0x8061a){const _0x3ae250=new Map();for(let _0x268d98=0x0;_0x268d98<_0x8061a['length'];_0x268d98++)'text'===_0x8061a[_0x268d98]['type']?(_0x8061a[_0x268d98]['item']['startIndex']=_0x268d98,_0x8061a[_0x268d98]['item']['endIndex']=_0x268d98):('elementStart'===_0x8061a[_0x268d98]['type']?_0x8061a[_0x268d98]['item']['startIndex']=_0x268d98:'elementEnd'===_0x8061a[_0x268d98]['type']&&(_0x8061a[_0x268d98]['item']['endIndex']=_0x268d98),_0x3ae250['set'](_0x8061a[_0x268d98]['id'],_0x268d98));for(const _0x1a2881 of _0x3ae250['values']())'elementStart'===_0x8061a[_0x1a2881]['type']?_0x8061a[_0x1a2881]['item']['endIndex']=_0x3ae250['get'](_0x8061a[_0x1a2881]['pairId']):'elementEnd'===_0x8061a[_0x1a2881]['type']&&(_0x8061a[_0x1a2881]['item']['startIndex']=_0x3ae250['get'](_0x8061a[_0x1a2881]['pairId']));}['_processTape'](_0x289fe0){for(let _0x105853=0x0;_0x105853<_0x289fe0['length'];_0x105853++){if('elementStart'===_0x289fe0[_0x105853]['type'])_0x289fe0[_0x105853]['item']['startIndex']=_0x105853;else{if('elementEnd'===_0x289fe0[_0x105853]['type']){_0x289fe0[_0x105853]['item']['endIndex']=_0x105853;const _0x12aab0=_0x289fe0[_0x105853]['item']['startIndex'];_0x289fe0[_0x12aab0]['pairId']=_0x289fe0[_0x105853]['id'],_0x289fe0[_0x105853]['pairId']=_0x289fe0[_0x12aab0]['id'];}else _0x289fe0[_0x105853]['item']['startIndex']=_0x105853,_0x289fe0[_0x105853]['item']['endIndex']=_0x105853,_0x289fe0[_0x105853]['pairId']=null;}_0x289fe0[_0x105853]['markersStart']||(_0x289fe0[_0x105853]['markersStart']=[],_0x289fe0[_0x105853]['markersEnd']=[]);}}['_markInsertions'](_0x472226,_0x52c5e5){const _0x5b446d=_0x472226['filter'](_0x1ca4d6=>!_0x1ca4d6['isAdded']);for(let _0x50e337=0x0;_0x50e337<_0x52c5e5['length'];_0x50e337++)_0x52c5e5[_0x50e337]['isAdded']&&(_0x5b446d[_0x50e337]['isAdded']=_0x52c5e5[_0x50e337]['isAdded']);}['_makeModelFromViewString'](_0x307e67){const _0x587bef=JSON['parse'](_0x307e67),_0xc05c81=this['editor']['editing']['view']['document'],_0x4c6e89=new _0x256932(_0xc05c81,_0x587bef['map'](_0xcdb94f=>this['_getViewObj'](_0xcdb94f)));return this['editor']['data']['toModel'](_0x4c6e89);}['_getViewObj'](_0x378897){const _0x586863=this['editor']['editing']['view']['document'];if('string'==typeof _0x378897)return new _0x46dcd2(_0x586863,_0x378897);{const _0x1d1739=_0x378897['children']['map'](_0x2ab0a3=>this['_getViewObj'](_0x2ab0a3));return new(Z[_0x378897['type']]||_0x383cb9)(_0x586863,_0x378897['name'],_0x378897['attributes'],_0x1d1739);}}['_getDiff'](_0xd18fd7,_0x184679=null){const _0x34bb2d=this['repository']['getRevision'](_0xd18fd7),_0x59b131=_0x184679?this['repository']['getRevision'](_0x184679):null,_0x3ec090=this['_getRevisionsRange'](_0x34bb2d,_0x59b131),_0x30e446=_0x3ec090[_0x3ec090['length']-0x1],_0x337046=new Map(),_0x230f61={'model':{},'attributes':{},'changes':[]},_0x345e44=new Set(),_0x4e2dee=new Map();for(let _0x42c79f=_0x3ec090['length']-0x1;_0x42c79f>=0x0;_0x42c79f--){const _0x448d12=_0x3ec090[_0x42c79f];for(const _0x3761dd of Object['keys'](_0x448d12['diffData']))if(_0x448d12['diffData'][_0x3761dd]['attachChange']){const _0x7ce0f4=_0x448d12['diffData'][_0x3761dd]['attachChange'];_0x7ce0f4['isAttached']?(_0x345e44['add'](_0x3761dd),_0x4e2dee['has'](_0x3761dd)&&_0x4e2dee['get'](_0x3761dd)['userId']==_0x7ce0f4['userId']?_0x4e2dee['delete'](_0x3761dd):_0x4e2dee['set'](_0x3761dd,_0x7ce0f4)):_0x4e2dee['has'](_0x3761dd)?(_0x345e44['delete'](_0x3761dd),_0x4e2dee['delete'](_0x3761dd)):(_0x345e44['add'](_0x3761dd),_0x4e2dee['set'](_0x3761dd,_0x7ce0f4));}else _0x345e44['add'](_0x3761dd);}for(const _0x23f410 of _0x345e44){const _0x39853e=_0x4e2dee['has'](_0x23f410)&&!_0x4e2dee['get'](_0x23f410)['isAttached'];let _0x3f68d6=_0x39853e?_0x3ec090['length']-0x1:0x0;const _0x47254c=_0x39853e?-0x1:0x1;for(;_0x3ec090[_0x3f68d6];){const _0x1b13f4=_0x3ec090[_0x3f68d6];if(_0x1b13f4['diffData'][_0x23f410]){const _0x5df71e=_0x39853e?_0x1b13f4['diffData'][_0x23f410]['attributesBefore']:_0x1b13f4['diffData'][_0x23f410]['attributesAfter'];_0x230f61['attributes'][_0x23f410]=_0x5df71e?_0x426618(_0x5df71e):{};break;}_0x3f68d6+=_0x47254c;}}for(const _0x249e4c of _0x3ec090){_0x249e4c['model']={};for(const _0x944f4f of _0x249e4c['authors'])_0x337046['set'](_0x944f4f['id'],_0x944f4f);for(const _0x160778 of _0x345e44){const _0x4e2407=_0x249e4c['diffData'][_0x160778]?_0x249e4c['diffData'][_0x160778]['insertions']:'[]',_0x452664=_0x249e4c['diffData'][_0x160778]?_0x249e4c['diffData'][_0x160778]['deletions']:'[]';_0x249e4c['model'][_0x160778]={'insertions':this['_makeModelFromViewString'](_0x4e2407),'deletions':this['_makeModelFromViewString'](_0x452664)};}}for(const _0x463332 of _0x345e44){let _0x101386=null,_0x4a1e57=0x0;const _0x3b9f8e=new Map(Array['from'](_0x34bb2d['model'][_0x463332]['insertions']['markers'])['filter'](([_0x4fab35])=>!_0x4fab35['startsWith']('revision:')));let _0x4fff80=0x0;for(const _0xe7da49 of _0x3ec090){const _0x32a5d=this['_makeTape'](_0xe7da49['model'][_0x463332]['insertions']);_0xe7da49==_0x34bb2d?(_0x101386=_0x32a5d,_0x4a1e57=_0x101386['length'],_0x101386['forEach'](_0x1b7022=>{_0x1b7022['id']=_0x4fff80++;}),this['_processTape'](_0x101386)):this['_markInsertions'](_0x101386,_0x32a5d);const _0x5e6473=_0x101386['filter'](_0xc6c1b7=>!_0xc6c1b7['isAdded'])['map'](_0x218863=>_0x218863['id']);let _0x23ec4b=0x0;const _0x145047=this['_makeTape'](_0xe7da49['model'][_0x463332]['deletions']);_0x145047['forEach'](_0x3c6cdd=>{_0x3c6cdd['isRemoved']?_0x3c6cdd['id']=_0x4a1e57++:_0x3c6cdd['id']=_0x5e6473[_0x23ec4b++];}),this['_processTape'](_0x145047),this['_setDistance'](_0x101386,'isAdded'),this['_setDistance'](_0x145047,'isRemoved'),_0xe7da49==_0x34bb2d&&this['_markMarkers'](_0x101386,_0x3b9f8e),_0x101386=this['_joinTapes'](_0x101386,_0x145047),this['_refreshStartEndIndex'](_0x101386),this['_setDistance'](_0x101386,'isRemoved');}_0x101386=_0x101386['filter'](_0x54d0f3=>!(_0x54d0f3['isAdded']&&_0x54d0f3['isRemoved']));const _0x8434ac=new Map(_0x30e446['model'][_0x463332]['deletions']['markers']),_0x29265b=new Set(_0x3b9f8e['keys']());for(const _0x1433bc of _0x8434ac['keys']())_0x29265b['delete'](_0x1433bc);this['_markSuggestions'](_0x101386,_0x29265b),this['_fixObsoleteTags'](_0x101386),_0x101386=this['_removeMissingPairs'](_0x101386),_0x101386=this['_markMismatchedRemovedTags'](_0x101386),_0x101386=this['_removeUnsupportedChanges'](_0x101386);const {root:_0x574718,changes:_0x525f06}=this['_makeModelFromTape'](_0x101386,_0x337046,_0x463332);_0x230f61['model'][_0x463332]=_0x574718;const _0x41e20a=_0x4e2dee['get'](_0x463332);if(_0x41e20a){const _0x23f0e7=_0x337046['get'](_0x41e20a['userId']),_0x783917=new r({'author':_0x23f0e7,'type':_0x41e20a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x463332});_0x525f06['unshift'](_0x783917),_0x230f61['attributes'][_0x463332]['revisionHistoryAttachChange']=_0x783917['id'];}_0x230f61['changes']=_0x230f61['changes']['concat'](_0x525f06);}return _0x230f61;}['_markMarkers'](_0x4addc6,_0x27c634){for(let _0x158577=0x0;_0x158577<_0x4addc6['length'];_0x158577++)for(const [_0x419c53,_0x1730db]of _0x27c634)_0x1730db['start']['isEqual'](_0x4addc6[_0x158577]['previousPosition'])&&_0x4addc6[_0x158577]['markersStart']['push'](_0x419c53),_0x1730db['end']['isEqual'](_0x4addc6[_0x158577]['nextPosition'])&&_0x4addc6[_0x158577]['markersEnd']['push'](_0x419c53);}['_joinTapes'](_0x32401b,_0x45adf8){let _0x497d44=[],_0x1adcbe=0x0,_0x5ff1f0=0x0;for(;_0x1adcbe<_0x32401b['length']||_0x5ff1f0<_0x45adf8['length'];){const _0x4d3780=_0x32401b[_0x1adcbe]||{},_0x289cf2=_0x45adf8[_0x5ff1f0]||{};if(_0x4d3780['id']==_0x289cf2['id'])_0x1adcbe++,_0x5ff1f0++,_0x497d44['push'](_0x4d3780);else{if(_0x289cf2['isRemoved']&&_0x4d3780['isAdded']){const {commonTape:_0x95a300,iEnd:_0x25c043,jEnd:_0x52cfd5}=this['_threeWayMerge'](_0x32401b,_0x1adcbe,_0x45adf8,_0x5ff1f0);_0x497d44=_0x497d44['concat'](_0x95a300),_0x1adcbe=_0x25c043,_0x5ff1f0=_0x52cfd5;}else _0x289cf2['isRemoved']?(_0x5ff1f0++,_0x497d44['push'](_0x289cf2)):(_0x1adcbe++,_0x497d44['push'](_0x4d3780));}}return _0x497d44;}['_markSuggestions'](_0x233985,_0x9224dc){const _0x347ab1=[];for(let _0xff7b93=0x0;_0xff7b93<_0x233985['length'];_0xff7b93++){for(let _0x2d1a2c=0x0;_0x2d1a2c<_0x233985[_0xff7b93]['markersStart']['length'];_0x2d1a2c++){const _0x11f840=_0x233985[_0xff7b93]['markersStart'][_0x2d1a2c];if(!_0x9224dc['has'](_0x11f840))continue;const {group:_0x372c9e,type:_0x5c58fc,authorId:_0x16f360}=_0x31e0de(_0x11f840);'revision-suggestion'!=_0x372c9e||'insertion'!=_0x5c58fc&&'deletion'!=_0x5c58fc||(_0x347ab1['unshift']({'type':_0x5c58fc,'name':_0x11f840,'userId':_0x16f360}),_0x233985[_0xff7b93]['markersStart']['splice'](_0x2d1a2c,0x1),_0x2d1a2c--);}_0x31c163(_0x233985[_0xff7b93]);for(let _0x166d36=0x0;_0x166d36<_0x233985[_0xff7b93]['markersEnd']['length'];_0x166d36++){const _0x5d1ae2=_0x233985[_0xff7b93]['markersEnd'][_0x166d36];if(!_0x9224dc['has'](_0x5d1ae2))continue;const {group:_0x4e8a47,type:_0x22b6f9}=_0x31e0de(_0x5d1ae2);if('revision-suggestion'!=_0x4e8a47||'insertion'!=_0x22b6f9&&'deletion'!=_0x22b6f9)continue;_0x233985[_0xff7b93]['markersEnd']['splice'](_0x166d36,0x1),_0x166d36--;const _0x35cccd=_0x347ab1['findIndex'](_0xc36af4=>_0xc36af4['name']==_0x5d1ae2);_0x35cccd>-0x1&&_0x347ab1['splice'](_0x35cccd,0x1);}}function _0x31e0de(_0x542a15){const _0x48638e=_0x542a15['split'](':');return{'group':_0x48638e[0x0],'type':_0x48638e[0x1],'subType':_0x48638e['length']>=0x5?_0x48638e[0x2]:null,'id':_0x48638e['length']<0x5?_0x48638e[0x2]:_0x48638e[0x3],'authorId':_0x48638e['length']<0x5?_0x48638e[0x3]:_0x48638e[0x4],'markerCount':0x6==_0x48638e['length']?_0x48638e[0x5]:null};}function _0x31c163(_0x3088c2){for(let _0x5760eb=0x0;_0x5760eb<_0x347ab1['length'];_0x5760eb++){if(_0x3088c2['isAdded']&&'insertion'==_0x347ab1[_0x5760eb]['type'])return _0x3088c2['isAddSuggestion']=_0x347ab1[_0x5760eb],void delete _0x3088c2['isAdded'];if(!_0x3088c2['isAdded']&&!_0x3088c2['isRemoved']&&'deletion'==_0x347ab1[_0x5760eb]['type'])return void(_0x3088c2['isRemoveSuggestion']=_0x347ab1[_0x5760eb]);}}}['_setDistance'](_0x26c9c7,_0x571af3){let _0x568a7b=0x0,_0xebf11=!0x1;const _0x1a4080=new Map();for(const _0x37e304 of _0x26c9c7)_0x37e304[_0x571af3]?_0xebf11&&(_0x568a7b++,_0xebf11=!0x1):(_0x568a7b++,_0xebf11=!0x0),_0x1a4080['set'](_0x37e304['id'],_0x568a7b);for(let _0x25dfc3=0x0;_0x25dfc3<_0x26c9c7['length'];_0x25dfc3++){if('isRemoved'==_0x571af3&&_0x26c9c7[_0x25dfc3]['isAdded']||'isAdded'==_0x571af3&&_0x26c9c7[_0x25dfc3]['isRemoved'])continue;if('text'==_0x26c9c7[_0x25dfc3]['type']){_0x26c9c7[_0x25dfc3]['distance']=0x0;continue;}const _0x6e6107=_0x1a4080['get'](_0x26c9c7[_0x25dfc3]['pairId']),_0x340777=_0x1a4080['get'](_0x26c9c7[_0x25dfc3]['id']);_0x26c9c7[_0x25dfc3]['distance']=_0x6e6107-_0x340777;}}['_getRevisionsRange'](_0x43dde9,_0x27fbfc,_0x21468a=!0x1){const _0x33f314=[];let _0x4857a4=this['repository']['getIndex'](_0x43dde9),_0x4db8af=this['repository']['getIndex'](_0x27fbfc);for(-0x1==_0x4db8af&&(_0x4db8af=this['repository']['_revisions']['length'],_0x21468a=!0x1);_0x4857a4<_0x4db8af;)_0x33f314['push'](this['repository']['getRevision'](_0x4857a4)),_0x4857a4++;return _0x21468a&&_0x33f314['push'](this['repository']['getRevision'](_0x4857a4)),_0x33f314;}['_threeWayMerge'](_0x35389e,_0x28e92c,_0x5b694d,_0x40ddb1){const _0x55e144=this['editor']['model']['schema'];let _0x162acd=_0x28e92c;for(;_0x35389e[_0x162acd]&&_0x35389e[_0x162acd]['isAdded'];)_0x162acd++;let _0x52a720=_0x40ddb1;for(;_0x5b694d[_0x52a720]&&_0x5b694d[_0x52a720]['isRemoved'];)_0x52a720++;_0x57df7b(_0x35389e,_0x28e92c,_0x162acd),_0x57df7b(_0x5b694d,_0x40ddb1,_0x52a720);const _0x1a395f=_0x5b694d['slice'](_0x40ddb1,_0x52a720)['concat'](_0x35389e['slice'](_0x28e92c,_0x162acd));return _0x1a395f['sort']((_0x2ae5c4,_0x32d155)=>_0x2ae5c4['side']!=_0x32d155['side']?_0x2ae5c4['side']-_0x32d155['side']:_0x2ae5c4['level']!=_0x32d155['level']?_0x2ae5c4['level']-_0x32d155['level']:_0x2ae5c4['distance']!=_0x32d155['distance']?_0x32d155['distance']-_0x2ae5c4['distance']:!!_0x2ae5c4['isAdded']!=!!_0x32d155['isAdded']?-0x1==_0x2ae5c4['side']||0x0==_0x2ae5c4['side']?_0x2ae5c4['isAdded']?-0x1:0x1:_0x2ae5c4['isAdded']?0x1:-0x1:_0x2ae5c4['index']-_0x32d155['index']),{'commonTape':_0x1a395f,'iEnd':_0x162acd,'jEnd':_0x52a720};function _0x57df7b(_0x4fa2da,_0x2eebdb,_0x54049c){let _0x3358b1=-0x1,_0x3b5e8f=Number['POSITIVE_INFINITY'],_0x1eeb45=!0x0;for(let _0x417192=_0x2eebdb;_0x417192<_0x54049c;_0x417192++)if(_0x55e144['isInline'](_0x4fa2da[_0x417192]['item'])||(_0x1eeb45=!0x1),_0x4fa2da[_0x417192]['item']['startIndex']<_0x2eebdb&&(_0x3358b1=_0x417192),_0x4fa2da[_0x417192]['item']['endIndex']>=_0x54049c){_0x3b5e8f=_0x417192;break;}_0x1eeb45&&(_0x3358b1=_0x54049c-0x1);for(let _0x1139bf=_0x2eebdb;_0x1139bf<_0x54049c;_0x1139bf++)_0x4fa2da[_0x1139bf]['side']=_0x1139bf<=_0x3358b1?-0x1:_0x1139bf<_0x3b5e8f?0x0:0x1,_0x4fa2da[_0x1139bf]['index']=_0x1139bf;let _0x190b37=0x0;for(let _0x1a4220=_0x2eebdb;_0x1a4220<=_0x3358b1;_0x1a4220++)0x0==_0x4fa2da[_0x1a4220]['distance']?_0x4fa2da[_0x1a4220]['level']=_0x190b37:(_0x190b37++,_0x4fa2da[_0x1a4220]['level']=_0x190b37,_0x190b37++);for(let _0x6c5023=_0x2eebdb;_0x6c5023<_0x54049c;_0x6c5023++)0x0==_0x4fa2da[_0x6c5023]['side']&&(_0x4fa2da[_0x6c5023]['level']=_0x190b37);_0x190b37=0x0;for(let _0x49b766=_0x54049c-0x1;_0x49b766>=_0x3b5e8f;_0x49b766--)0x0==_0x4fa2da[_0x49b766]['distance']?_0x4fa2da[_0x49b766]['level']=_0x190b37:(_0x190b37--,_0x4fa2da[_0x49b766]['level']=_0x190b37,_0x190b37--);}}['_fixObsoleteTags'](_0x1fd304){const _0x3b79d3=new Map(),_0x40428c=this['editor']['model']['schema'];for(let _0x1a4efc=0x1;_0x1a4efc<_0x1fd304['length'];_0x1a4efc++){let _0x4ba3dd,_0x5352ef,_0x464449;const _0x390119=_0x1fd304[_0x1a4efc],_0x17bcb3=_0x1fd304[_0x1a4efc-0x1];if('text'==_0x390119['type'])continue;if(_0x390119['type']!=_0x17bcb3['type'])continue;if(!_0x40428c['isBlock'](_0x17bcb3['item'])||_0x40428c['isLimit'](_0x17bcb3['item']))continue;if(!_0x40428c['isBlock'](_0x390119['item'])||_0x40428c['isLimit'](_0x390119['item']))continue;if((_0x1fd304[_0x1a4efc]['isAdded']||_0x1fd304[_0x1a4efc]['isAddSuggestion'])&&_0x1fd304[_0x1a4efc-0x1]['isRemoved'])_0x4ba3dd=_0x1fd304[_0x1a4efc],_0x5352ef=_0x1fd304[_0x1a4efc-0x1],_0x464449=_0x1a4efc-0x1;else{if(!_0x1fd304[_0x1a4efc]['isRemoved']||!_0x1fd304[_0x1a4efc-0x1]['isAdded']&&!_0x1fd304[_0x1a4efc-0x1]['isAddSuggestion'])continue;_0x4ba3dd=_0x1fd304[_0x1a4efc-0x1],_0x5352ef=_0x1fd304[_0x1a4efc],_0x464449=_0x1a4efc;}const _0x24a725=_0x4ba3dd['level']==_0x5352ef['level'],_0x83fff3=Math['abs'](_0x4ba3dd['level'])<Math['abs'](_0x5352ef['level'])&&0x0==_0x5352ef['distance'];(_0x24a725||_0x83fff3)&&(_0x3b79d3['set'](_0x5352ef['id'],_0x4ba3dd['id']),_0x1fd304['splice'](_0x464449,0x1),_0x1a4efc--,_0x4ba3dd['isAdded']=!0x1);}for(let _0x5c5e60=0x0;_0x5c5e60<_0x1fd304['length'];_0x5c5e60++)_0x3b79d3['has'](_0x1fd304[_0x5c5e60]['pairId'])&&(_0x1fd304[_0x5c5e60]['pairId']=_0x3b79d3['get'](_0x1fd304[_0x5c5e60]['pairId']));}['_removeMissingPairs'](_0x1f9c3b){const _0x41ed42=new Set(_0x1f9c3b['map'](_0x1c254f=>_0x1c254f['id']));for(let _0x328024=0x0;_0x328024<_0x1f9c3b['length'];_0x328024++)_0x41ed42['has'](_0x1f9c3b[_0x328024]['pairId'])||0x0==_0x1f9c3b[_0x328024]['distance']||(_0x1f9c3b[_0x328024]['isIncorrect']=!0x0);return _0x1f9c3b['filter'](_0x336eb7=>!_0x336eb7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x435c54){const _0x4a4db0=new Set();for(let _0x25b5fd=0x0;_0x25b5fd<_0x435c54['length'];_0x25b5fd++){if(_0x4a4db0['has'](_0x435c54[_0x25b5fd]['id'])&&_0x435c54[_0x25b5fd]['isRemoved']&&(_0x435c54[_0x25b5fd]['isIncorrect']=!0x0),_0x435c54[_0x25b5fd]['isIncorrect'])continue;if(0x0==_0x435c54[_0x25b5fd]['distance'])continue;if('elementStart'!=_0x435c54[_0x25b5fd]['type'])continue;if(null==_0x435c54[_0x25b5fd]['pairId'])continue;let _0x25f808=_0x25b5fd+0x1,_0x1370fc=0x0;for(;_0x435c54[_0x25f808]['id']!=_0x435c54[_0x25b5fd]['pairId'];)'elementStart'==_0x435c54[_0x25f808]['type']?_0x1370fc++:'elementEnd'==_0x435c54[_0x25f808]['type']&&_0x1370fc--,_0x25f808++;if(0x0!=_0x1370fc){if(_0x435c54[_0x25b5fd]['isRemoved'])_0x435c54[_0x25b5fd]['isIncorrect']=!0x0;else{for(;_0x25f808!=_0x25b5fd;)_0x435c54[_0x25f808]['isRemoved']&&0x0!=_0x435c54[_0x25f808]['distance']&&(_0x435c54[_0x25f808]['isIncorrect']=!0x0,_0x4a4db0['add'](_0x435c54[_0x25f808]['pairId'])),_0x25f808--;}}}return _0x435c54['filter'](_0x210bf0=>!_0x210bf0['isIncorrect']);}['_removeUnsupportedChanges'](_0xee9469){const _0x52ab6d=this['editor']['model']['schema'];for(let _0x5e0f07=0x0;_0x5e0f07<_0xee9469['length'];_0x5e0f07++){if(!(_0xee9469[_0x5e0f07]['isAdded']||_0xee9469[_0x5e0f07]['isAddSuggestion']||_0xee9469[_0x5e0f07]['isRemoved']||_0xee9469[_0x5e0f07]['isRemoveSuggestion']))continue;if(0x0==_0xee9469[_0x5e0f07]['distance'])continue;const _0x37f185=_0xee9469[_0x5e0f07]['item'];_0x52ab6d['isBlock'](_0x37f185)||_0x52ab6d['isLimit'](_0x37f185)||(_0xee9469[_0x5e0f07]['isAdded']&&delete _0xee9469[_0x5e0f07]['isAdded'],_0xee9469[_0x5e0f07]['isAddSuggestion']&&delete _0xee9469[_0x5e0f07]['isAddSuggestion'],_0xee9469[_0x5e0f07]['isRemoveSuggestion']&&delete _0xee9469[_0x5e0f07]['isRemoveSuggestion'],_0xee9469[_0x5e0f07]['isRemoved']&&(_0xee9469[_0x5e0f07]['isIncorrect']=!0x0));}return _0xee9469['filter'](_0x1038db=>!_0x1038db['isIncorrect']);}['_makeModelFromTape'](_0x35f0bd,_0x15c2ac,_0x5bb0fd){const _0x1247bd=new wt(),_0xf2f2b6=[],_0x2928da=new Map(),_0x293c31=this['editor']['model'],_0x524dbe=_0x293c31['schema'],_0x1ea4b6=[_0x1247bd],_0x755944={},_0x5e7a85={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4bed9e=null;const _0x23c211=[0x0];for(let _0x21d2cd=0x0;_0x21d2cd<_0x35f0bd['length'];_0x21d2cd++)if('elementStart'===_0x35f0bd[_0x21d2cd]['type']){_0x35f0bd[_0x21d2cd]['previousPosition']=_0x293c31['createPositionFromPath'](_0x1247bd,_0x23c211);const _0xff577a=new ft(_0x35f0bd[_0x21d2cd]['item']['name'],_0x35f0bd[_0x21d2cd]['item']['getAttributes']());_0x1ea4b6[0x0]['_appendChild'](_0xff577a),_0x23c211['push'](0x0),_0x1ea4b6['unshift'](_0xff577a),_0x35f0bd[_0x21d2cd]['nextPosition']=_0x293c31['createPositionFromPath'](_0x1247bd,_0x23c211);}else'elementEnd'===_0x35f0bd[_0x21d2cd]['type']?(_0x1ea4b6['shift'](),_0x35f0bd[_0x21d2cd]['previousPosition']=_0x293c31['createPositionFromPath'](_0x1247bd,_0x23c211),_0x23c211['pop'](),_0x23c211[_0x23c211['length']-0x1]++,_0x35f0bd[_0x21d2cd]['nextPosition']=_0x293c31['createPositionFromPath'](_0x1247bd,_0x23c211)):(_0x35f0bd[_0x21d2cd]['previousPosition']=_0x293c31['createPositionFromPath'](_0x1247bd,_0x23c211),_0x4bed9e?_0x4bed9e['_data']+=_0x35f0bd[_0x21d2cd]['item']['data']:_0x4bed9e=new _t(_0x35f0bd[_0x21d2cd]['item']['data'],_0x35f0bd[_0x21d2cd]['item']['getAttributes']()),_0x35f0bd[_0x21d2cd+0x1]&&'text'===_0x35f0bd[_0x21d2cd+0x1]['type']&&_0x348296(_0x4bed9e,_0x35f0bd[_0x21d2cd+0x1]['item'])||(_0x1ea4b6[0x0]['_appendChild'](_0x4bed9e),_0x4bed9e=null),_0x23c211[_0x23c211['length']-0x1]+=_0x35f0bd[_0x21d2cd]['item']['offsetSize'],_0x35f0bd[_0x21d2cd]['nextPosition']=_0x293c31['createPositionFromPath'](_0x1247bd,_0x23c211));for(let _0x30fdce=0x0;_0x30fdce<_0x35f0bd['length'];_0x30fdce++){const _0x158128=_0x35f0bd[_0x30fdce]['previousPosition'],_0x5111d7=_0x35f0bd[_0x30fdce]['nextPosition'];for(const _0x4c25c5 of _0x35f0bd[_0x30fdce]['markersStart'])_0x2928da['set'](_0x4c25c5,{'start':_0x158128,'end':null});_0x3eff7f('isRemoveSuggestion',_0x30fdce,_0x158128,_0x5111d7),_0x3eff7f('isAddSuggestion',_0x30fdce,_0x158128,_0x5111d7),_0x3eff7f('isRemoved',_0x30fdce,_0x158128,_0x5111d7),_0x3eff7f('isAdded',_0x30fdce,_0x158128,_0x5111d7);for(const _0x106b7f of _0x35f0bd[_0x30fdce]['markersEnd']){_0x2928da['get'](_0x106b7f)['end']=_0x5111d7;}}for(const [_0x45d421,_0xd36cc3]of _0x2928da){const _0x4b4f4f=this['editor']['model']['createRange'](_0xd36cc3['start'],_0xd36cc3['end']);_0x1247bd['markers']['set'](_0x45d421,_0x4b4f4f);}return _0xf2f2b6['sort']((_0x304c52,_0x229b2d)=>{const _0x1d2ef9=_0x1247bd['markers']['get']('revision:'+_0x304c52['id']),_0x1b2bf6=_0x1247bd['markers']['get']('revision:'+_0x229b2d['id']);return _0x1d2ef9['start']['isBefore'](_0x1b2bf6['start'])?-0x1:_0x1d2ef9['start']['isAfter'](_0x1b2bf6['start'])?0x1:_0x1d2ef9['end']['isBefore'](_0x1b2bf6['end'])?-0x1:_0x1d2ef9['end']['isAfter'](_0x1b2bf6['end'])?0x1:'add'===_0x304c52['type']?-0x1:0x1;}),{'root':_0x1247bd,'changes':_0xf2f2b6};function _0x3eff7f(_0x2fb59d,_0x15dd4d,_0x13d65a,_0x252c17){const _0x32947b=!!_0x35f0bd[_0x15dd4d][_0x2fb59d],_0x2cc8f0=_0x32947b?_0x35f0bd[_0x15dd4d][_0x2fb59d]['userId']:null,_0x30e593=_0x15dd4d===_0x35f0bd['length']-0x1,_0x2619bb=_0x5e7a85[_0x2fb59d][0x0],_0x2a9729=_0x524dbe['isObject'](_0x35f0bd[_0x15dd4d]['item']);!_0x755944[_0x2fb59d]&&_0x32947b?_0x755944[_0x2fb59d]={'start':_0x13d65a,'tapeItem':_0x35f0bd[_0x15dd4d],'userId':_0x2cc8f0,'type':_0x2fb59d}:_0x755944[_0x2fb59d]&&!_0x32947b?(_0x755944[_0x2fb59d]['end']=_0x13d65a,_0x5ace26(_0x755944[_0x2fb59d]),_0x755944[_0x2fb59d]=null):_0x755944[_0x2fb59d]&&_0x32947b&&_0x755944[_0x2fb59d]['userId']!==_0x2cc8f0&&(_0x755944[_0x2fb59d]['end']=_0x13d65a,_0x2619bb&&_0x2619bb['userId']===_0x755944[_0x2fb59d]['userId']||_0x5ace26(_0x755944[_0x2fb59d]),_0x755944[_0x2fb59d]={'start':_0x13d65a,'tapeItem':_0x35f0bd[_0x15dd4d],'userId':_0x2cc8f0,'type':_0x2fb59d}),_0x755944[_0x2fb59d]&&_0x2a9729&&('elementStart'!==_0x35f0bd[_0x15dd4d]['type']||_0x2619bb&&_0x2619bb['userId']===_0x2cc8f0||_0x5e7a85[_0x2fb59d]['unshift']({'userId':_0x2cc8f0,'object':_0x35f0bd[_0x15dd4d]['item'],'change':_0x755944[_0x2fb59d]}),'elementEnd'===_0x35f0bd[_0x15dd4d]['type']&&_0x2619bb&&_0x2619bb['object']===_0x35f0bd[_0x15dd4d]['item']&&(_0x5e7a85[_0x2fb59d]['shift'](),_0x755944[_0x2fb59d]=_0x2619bb['change'])),_0x755944[_0x2fb59d]&&_0x30e593&&(_0x755944[_0x2fb59d]['end']=_0x252c17,_0x5ace26(_0x755944[_0x2fb59d]),_0x755944[_0x2fb59d]=null);}function _0x5ace26({start:_0x96810a,end:_0x103fcc,tapeItem:_0x19f90f,userId:_0x20dc7c,type:_0x35c086}){const _0x36c330=_0x19f90f['item'],_0x21808d=_0x293c31['schema']['isBlock'](_0x36c330)&&!_0x293c31['schema']['isLimit'](_0x36c330),_0x41ef10=_0x96810a['nodeAfter']==_0x103fcc['parent']&&_0x103fcc['isAtStart'];if(_0x21808d&&_0x41ef10)return;const _0x3388aa=_0x293c31['createRange'](_0x96810a,_0x103fcc),_0x354e68=_0x15c2ac['get'](_0x20dc7c),_0x5c0b49=new r({'author':_0x354e68,'type':'isAdded'==_0x35c086||'isAddSuggestion'==_0x35c086?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x35c086||'isRemoveSuggestion'==_0x35c086},'createdAt':new Date(),'rootName':_0x5bb0fd});_0xf2f2b6['push'](_0x5c0b49),_0x1247bd['markers']['set']('revision:'+_0x5c0b49['id'],_0x3388aa);}function _0x348296(_0x9aa108,_0x5751fe){const _0x4fb107=_0x9aa108['getAttributes'](),_0x5f3eb3=_0x5751fe['getAttributes']();for(const _0x90fc61 of _0x4fb107){if(_0x90fc61[0x1]!==_0x5751fe['getAttribute'](_0x90fc61[0x0]))return!0x1;_0x5f3eb3['next']();}return _0x5f3eb3['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x96dd67=>{const _0x491c28=_0x96dd67['markerName']['split'](':')[0x1],_0x56cabf=this['_getChangeFromId'](_0x491c28);if(!_0x56cabf)return null;const _0x36fabb='add'==_0x56cabf['type']?'insertion':'deletion',_0x421fe9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x36fabb];return _0x56cabf['data']['isSuggestion']&&_0x421fe9['push']('ck-suggestion-marker-'+_0x36fabb+'-new'),this['activeChange']==_0x56cabf&&_0x421fe9['push']('ck-suggestion-marker--active'),{'classes':_0x421fe9,'attributes':{'data-change-id':_0x491c28}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x418ce4=>{_0x418ce4['on']('element:pre',(_0x5cd76a,_0x30aca2,_0x538a4d)=>{const _0xe8591f=_0x30aca2['viewItem']['getChild'](0x0);if(!_0xe8591f||!_0xe8591f['is']('element','code'))return;if(!_0x538a4d['consumable']['consume'](_0xe8591f,{'attributes':['vid_start','vid_end']}))return;const _0x3651c2=_0x30aca2['modelRange']['start']['nodeAfter'];_0x538a4d['writer']['setAttribute']('vid_start',_0xe8591f['getAttribute']('vid_start'),_0x3651c2),_0x538a4d['writer']['setAttribute']('vid_end',_0xe8591f['getAttribute']('vid_end'),_0x3651c2);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x16a835=>{_0x16a835['on']('element',(_0x11c62b,_0x42759f,_0x38ab3e)=>{if(!_0x38ab3e['consumable']['consume'](_0x42759f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x42759f['modelRange']['isCollapsed'])return;const _0x273a3d=_0x42759f['modelRange']['start']['nodeAfter'];_0x273a3d['hasAttribute']('vid_start')||_0x273a3d['hasAttribute']('vid')||(_0x38ab3e['writer']['setAttribute']('vid_start',_0x42759f['viewItem']['getAttribute']('vid_start'),_0x273a3d),_0x38ab3e['writer']['setAttribute']('vid_end',_0x42759f['viewItem']['getAttribute']('vid_end'),_0x273a3d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x51505e=>_0x51505e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x577c4b,[,_0x2cff66])=>{['vid_start','vid_end','vid']['includes'](_0x2cff66)&&(_0x577c4b['return']=!0x0,_0x577c4b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x399ea3=>{_0x399ea3['on']('attribute:vid',(_0x537f82,_0x3789f3,_0x442a14)=>{if('\x20'!=_0x3789f3['item']['data']||_0x3789f3['item']['parent']['maxOffset']>0x1)return;if(!_0x442a14['consumable']['consume'](_0x3789f3['item'],_0x537f82['name']))return;const _0x30ac3d=_0x442a14['writer'],_0x2a5a3a=_0x442a14['mapper']['toViewRange'](_0x3789f3['range']);_0x30ac3d['wrap'](_0x2a5a3a,_0x30ac3d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x27c5b3){const _0x381147=_0x27c5b3['plugins']['get']('RevisionViewer');return(_0x1cca2a,_0x361af6,_0xe26f07)=>{const _0x2255ed=_0x361af6['markerName']['split'](':')[0x1],_0x171934=_0x381147['_getChangeFromId'](_0x2255ed);if(!_0x171934)return null;const _0x48a788='add'==_0x171934['type']?'split':'merge';if(!_0xe26f07['consumable']['test'](_0x361af6['markerRange'],_0x1cca2a['name']))return;const _0x88be5=_0x361af6['markerRange']['getWalker'](),_0x43a9bf=_0x361af6['markerRange']['start'],_0x48639e=_0x27c5b3['model']['schema'];let _0x6b8d0b=null,_0x36946f=null,_0x468bc7=!0x1,_0x1b9310=!0x1;for(const _0x4c0f86 of _0x88be5){const _0x5c9b07=_0x4c0f86['item'];_0x468bc7=_0x468bc7||_0x48639e['isContent'](_0x5c9b07);const _0x58b9fc=_0xe26f07['mapper']['toViewElement'](_0x5c9b07);if(_0x58b9fc&&_0x58b9fc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4c0f86['type']&&(_0x48639e['isBlock'](_0x5c9b07)&&!_0x48639e['isLimit'](_0x5c9b07)&&(_0x5c9b07['nextSibling']||_0x43a9bf['isAtEnd']?_0x6b8d0b&&_0x6b8d0b['parent']==_0x5c9b07||(_0x6b8d0b=_0x5c9b07,_0x4b180f(_0x4c0f86['previousPosition']),_0x1b9310=!0x0):_0x36946f=_0x36946f||_0x4c0f86['previousPosition']));}function _0x4b180f(_0xed8560){const _0x451679=_0xe26f07['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x48a788}),_0x22033d=_0xe26f07['mapper']['toViewPosition'](_0xed8560);_0x171934['data']['isSuggestion']&&_0xe26f07['writer']['addClass']('ck-suggestion-marker-'+_0x48a788+'-new',_0x451679),_0x381147['activeChange']==_0x171934&&_0xe26f07['writer']['addClass']('ck-suggestion-marker--active',_0x451679),_0xe26f07['writer']['insert'](_0x22033d,_0x451679),_0xe26f07['mapper']['bindElementToMarker'](_0x451679,_0x361af6['markerName']);}_0x468bc7||_0x1b9310||!_0x36946f||_0x4b180f(_0x36946f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4d0da5,_0x120abd,_0x114447)=>{const _0x54ed66=_0x114447['mapper']['markerNameToElements'](_0x120abd['markerName']);if(_0x54ed66){for(const _0x28a6cf of _0x54ed66)(_0x28a6cf['hasClass']('ck-suggestion-marker-split')||_0x28a6cf['hasClass']('ck-suggestion-marker-merge'))&&(_0x114447['mapper']['unbindElementFromMarkerName'](_0x28a6cf,_0x120abd['markerName']),_0x114447['writer']['remove'](_0x28a6cf));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1ad812,_0x586b38,_0x3212e9)=>{const _0x4c3dce=_0x586b38['markerName']['split'](':')[0x1],_0x124855=this['_getChangeFromId'](_0x4c3dce);if(!_0x124855)return null;const _0x4856ac='add'==_0x124855['type']?'split':'merge';if(_0x3212e9['consumable']['test'](_0x586b38['markerRange'],_0x1ad812['name']))for(const _0x1a5b1a of _0x586b38['markerRange']['getItems']()){if(!_0x1a5b1a['is']('element','softBreak'))continue;const _0x38809f=_0x3212e9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4856ac}),_0x1459ca=_0x3212e9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1a5b1a));_0x124855['data']['isSuggestion']&&_0x3212e9['writer']['addClass']('ck-suggestion-marker-'+_0x4856ac+'-new',_0x38809f),this['activeChange']==_0x124855&&_0x3212e9['writer']['addClass']('ck-suggestion-marker--active',_0x38809f),_0x3212e9['writer']['insert'](_0x1459ca,_0x38809f),_0x3212e9['mapper']['bindElementToMarker'](_0x38809f,_0x586b38['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x16e9db=>{for(const _0x1d6e17 of this['editor']['model']['document']['getRootNames']()){const _0x1227a7=this['editor']['model']['document']['getRoot'](_0x1d6e17),_0x358806=this['editor']['editing']['view']['document']['getRoot'](_0x1d6e17);if(_0x358806){const _0x3a4688=_0x1227a7['getAttribute']('revisionHistoryAttachChange');if(_0x16e9db['removeAttribute']('data-change-id',_0x358806),_0x16e9db['removeClass']('ck-revision-history-root-add',_0x358806),_0x16e9db['removeClass']('ck-revision-history-root-remove',_0x358806),_0x16e9db['removeClass']('ck-revision-history-root--active',_0x358806),_0x3a4688){const _0x513686=this['_getChangeFromId'](_0x3a4688);if(!_0x513686)return null;_0x16e9db['setAttribute']('data-change-id',_0x3a4688,_0x358806),_0x16e9db['addClass']('ck-revision-history-root-'+_0x513686['type'],_0x358806),this['activeChange']==_0x513686&&_0x16e9db['addClass']('ck-revision-history-root--active',_0x358806);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5a898c=>'revision-comment:'+_0x5a898c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x50a52f=>'revision-suggestion:'+_0x50a52f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2085be=>({'name':'suggestion:'+_0x2085be,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x103c89=>{const _0x5ec694=_0x103c89['markerName']['split'](':')[0x1];return'insertion'!=_0x5ec694&&'deletion'!=_0x5ec694?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5ec694]};}}),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',(_0x33c141,_0x1d02c2,_0x258ab4)=>{const _0x3adc27=_0x258ab4['mapper']['markerNameToElements'](_0x1d02c2['markerName']);if(_0x3adc27){for(const _0x5b4cef of _0x3adc27)_0x5b4cef['is']('uiElement')&&(_0x258ab4['mapper']['unbindElementFromMarkerName'](_0x5b4cef,_0x1d02c2['markerName']),_0x258ab4['writer']['remove'](_0x5b4cef));}},{'priority':'high'});}['_getChangeFromId'](_0x583bff){return this['_changeIdToChange']['get'](_0x583bff);}['_getViewForChange'](_0x34fc88){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x34fc88),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4751c3,_0x1788a1,_0x52171a,_0xd158b7)=>{_0xd158b7&&this['_balloon']['remove'](_0xd158b7),_0x52171a&&(this['_balloon']['add']({'view':_0x52171a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2412dd=this['editor']['editing'],_0x147a7c=this['_getChangeFromId'](_0x52171a['changeId']);let _0x3fd53c;if(_0x147a7c['data']['isOnRoot']){const _0x2b957b=_0x2412dd['view']['getDomRoot'](_0x147a7c['rootName']);_0x3fd53c=Array['from'](_0x2b957b['getClientRects']());}else{const _0x4c1c1b=this['editor']['model']['markers']['get']('revision:'+_0x52171a['changeId']);_0x3fd53c=Array['from'](_0x2412dd['mapper']['markerNameToElements'](_0x4c1c1b['name']))['map'](_0xe17223=>_0x2412dd['view']['domConverter']['mapViewToDom'](_0xe17223))['map'](_0x58a669=>Array['from'](_0x58a669['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3fd53c[0x0];return _0x3fd53c['find'](_0x160f82=>_0x160f82['top']-0x3<=this['_activeViewTarget']['y']&&_0x160f82['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x160f82['left']-0x3<=this['_activeViewTarget']['x']&&_0x160f82['right']+0x3>=this['_activeViewTarget']['x'])||_0x3fd53c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3f4d97,_0x56cf18,_0x133cb3,_0x5ab2ee)=>{this['activeView']=_0x133cb3?this['_getViewForChange'](_0x133cb3):null,this['editor']['model']['change'](()=>{const _0x3c8160=this['editor']['editing'];_0x5ab2ee&&(_0x5ab2ee['data']['isOnRoot']?_0x3c8160['view']['change'](_0x260f01=>{_0x260f01['removeClass']('ck-revision-history-root--active',_0x3c8160['view']['document']['getRoot'](_0x5ab2ee['rootName']));}):_0x3c8160['reconvertMarker']('revision:'+_0x5ab2ee['id'])),_0x133cb3&&(_0x133cb3['data']['isOnRoot']?_0x3c8160['view']['change'](_0x2a334a=>{_0x2a334a['addClass']('ck-revision-history-root--active',_0x3c8160['view']['document']['getRoot'](_0x133cb3['rootName']));}):_0x3c8160['reconvertMarker']('revision:'+_0x133cb3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4f9eba,_0x386670)=>{if(this['activeChange'])return;const _0x29a0c5=this['_findChangeIdFromDomTarget'](_0x386670['target']),_0x51c19f=this['_changeIdToChange']['get'](_0x29a0c5);_0x51c19f?(this['_activeViewTarget']={'x':_0x386670['domEvent']['x'],'y':_0x386670['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x51c19f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5ecd7d,_0x58eb04)=>{const _0x5b19af=this['_findChangeIdFromDomTarget'](_0x58eb04['target']),_0x286fc4=this['_changeIdToChange']['get'](_0x5b19af);_0x286fc4?(this['_activeViewTarget']={'x':_0x58eb04['domEvent']['x'],'y':_0x58eb04['domEvent']['y']},_0x286fc4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x286fc4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5c05b0){do{const _0xda25cd=_0x5c05b0['getAttribute']('data-change-id');if(_0xda25cd)return _0xda25cd;_0x5c05b0=_0x5c05b0['parent'];}while(_0x5c05b0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1ac176=>{for(const _0x468526 of this['editor']['model']['markers'])_0x1ac176['removeMarker'](_0x468526);});}}function tt(_0x211623,_0x3642eb){return(_0x8e2f50,_0x56e841,_0x42c98b)=>{if(!_0x42c98b['consumable']['test'](_0x56e841['markerRange'],_0x8e2f50['name']))return;const _0xf59069=_0x56e841['markerRange']['getWalker'](),_0x1a011a=_0x56e841['markerRange']['start'],_0x4dfc3a=_0x211623['model']['schema'];let _0x6bf49a=null,_0x208b3b=null,_0x58d847=!0x1,_0x591d9f=!0x1;for(const _0x557b36 of _0xf59069){const _0x91aabe=_0x557b36['item'];_0x58d847=_0x58d847||_0x4dfc3a['isContent'](_0x91aabe);const _0x197a0e=_0x42c98b['mapper']['toViewElement'](_0x91aabe);if(_0x197a0e&&_0x197a0e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x557b36['type']&&(_0x4dfc3a['isBlock'](_0x91aabe)&&!_0x4dfc3a['isLimit'](_0x91aabe)&&(_0x91aabe['nextSibling']||_0x1a011a['isAtEnd']?_0x6bf49a&&_0x6bf49a['parent']==_0x91aabe||(_0x6bf49a=_0x91aabe,_0x126285(_0x557b36['previousPosition']),_0x591d9f=!0x0):_0x208b3b=_0x208b3b||_0x557b36['previousPosition']));}function _0x126285(_0x3412e7){const _0x47c3d8=_0x42c98b['mapper']['toViewPosition'](_0x3412e7),_0x3a3dbc=_0x42c98b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3642eb});_0x42c98b['writer']['insert'](_0x47c3d8,_0x3a3dbc),_0x42c98b['mapper']['bindElementToMarker'](_0x3a3dbc,_0x56e841['markerName']);}_0x58d847||_0x591d9f||!_0x208b3b||_0x126285(_0x208b3b);};}class yt extends _0x3f6877{constructor(_0x41ff03){super(_0x41ff03);const _0xc0eb65=_0x41ff03['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xc0eb65,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xc0eb65,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x120a98=this['editor'],_0x51b3b4=_0x120a98['plugins']['get'](d),_0x371783=_0x51b3b4['isReady']?_0x51b3b4['diff']['newRevisionId']:null;_0x120a98['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x371783);}['refresh'](){const {isReady:_0x570cb9,isEnabled:_0x9d8f8a,repository:_0x2c9b60,diff:_0xe9839c}=this['editor']['plugins']['get'](d),_0xb75e17=_0xe9839c&&_0x2c9b60['getLaterVisibleRevision'](_0xe9839c['newRevisionId']);this['isEnabled']=_0x570cb9&&_0x9d8f8a&&Boolean(_0xb75e17);}}class bt extends _0x3f6877{['_step'];constructor(_0x1e8818,{direction:_0x3bec05}){super(_0x1e8818);const _0x3725c4=_0x1e8818['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3bec05?0x1:-0x1,this['listenTo'](_0x3725c4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3725c4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3725c4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x7fbd3=this['editor'],_0x39e341=_0x7fbd3['plugins']['get'](d),{isNavigationMode:_0x28a6e8,currentChangeNumber:_0x47a526}=_0x39e341;let _0x16599e;if(_0x39e341['activeChange']=_0x28a6e8?_0x39e341['diff']['changes']['get'](_0x47a526+this['_step']):_0x39e341['diff']['changes']['first'],_0x39e341['activeChange']['data']['isOnRoot'])_0x16599e=_0x7fbd3['editing']['view']['getDomRoot'](_0x39e341['activeChange']['rootName']);else{const _0x52749a=_0x7fbd3['model']['markers']['get']('revision:'+_0x39e341['activeChange']['id']);_0x16599e=_0x3e5052(_0x7fbd3['editing'],_0x52749a);}_0x4bd984({'target':_0x16599e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x20535f,currentChangeNumber:_0x8c1b1d,numberOfChanges:_0x170681,isReady:_0x20b9fe,isEnabled:_0x3d4861}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3d4861&&_0x20b9fe&&_0x170681)&&(!_0x20535f||(0x1===this['_step']?_0x8c1b1d<_0x170681-0x1:_0x8c1b1d>0x0));}}class _i extends _0x504f04{constructor(_0x2c0004){super(_0x2c0004);const _0x27a2d4=this['bindTemplate'],_0x48df32=new _0x2c2d01(_0x2c0004),_0x13b1c1=new _0x2c2d01(_0x2c0004);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',(_0x3bb540,_0x2c66b3)=>_0x3bb540&&_0x2c66b3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x15f628,_0x5abc3a,_0x4eab6,_0x5edf56)=>{if(!_0x15f628)return R(_0x2c0004,'Loading...');if(!_0x4eab6)return R(_0x2c0004,'No\x20changes');const _0x486572=R(_0x2c0004,'NUMBER_OF_CHANGES',_0x4eab6);return _0x5edf56?R(_0x2c0004,'X_OF_Y_CHANGES',[_0x5abc3a+0x1,_0x4eab6]):_0x486572;}),_0x48df32['set']({'label':R(_0x2c0004,'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'}),_0x13b1c1['set']({'label':R(_0x2c0004,'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'}),_0x48df32['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x13b1c1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x48df32['on']('execute',()=>this['fire']('execute','backward')),_0x13b1c1['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',_0x27a2d4['if']('_isStatusLabelVisible','ck-hidden',_0x25633f=>!_0x25633f)]},'children':[{'text':_0x27a2d4['to']('isNavigationMode',_0x4864e4=>_0x4864e4?R(_0x2c0004,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2c0004,'Total')+':\x20')}]},{'text':_0x27a2d4['to']('_statusText')}]},new _0x54f091(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x48df32,_0x13b1c1]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x25f453{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3bee4e=this['editor']['editing']['view'];_0x3bee4e['change'](_0x4289f3=>{for(const _0x4b8683 of _0x3bee4e['document']['roots'])_0x4289f3['addClass'](ce,_0x4b8683);});}['hide'](){const _0xf74eb2=this['editor']['editing']['view'];_0xf74eb2['change'](_0x615331=>{for(const _0x560eff of _0xf74eb2['document']['roots'])_0x615331['removeClass'](ce,_0x560eff);});}}class m extends _0x25f453{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x21f759=this['editor'],_0x311880=_0x21f759['plugins']['get'](d),_0x4144c8=_0x21f759['plugins']['get'](le);_0x21f759['ui']['componentFactory']['add']('exitToEditing',_0x9d7f15=>{const _0x3ce1be=new _0x2c2d01(_0x9d7f15);return _0x3ce1be['set']({'label':R(_0x9d7f15,'Back\x20to\x20editing'),'icon':_0x24dc9e['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3ce1be,'execute',()=>{_0x21f759['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3ce1be;}),_0x21f759['ui']['componentFactory']['add']('restoreRevision',_0x5b8f50=>{const _0x5e165f=new _0x2c2d01(_0x5b8f50);return _0x5e165f['set']({'label':R(_0x5b8f50,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5e165f['bind']('isEnabled')['to'](_0x21f759['commands']['get']('restoreRevision')),this['listenTo'](_0x5e165f,'execute',()=>_0x21f759['execute']('restoreRevision')),_0x5e165f;}),_0x21f759['ui']['componentFactory']['add']('changesNavigation',_0x2df79a=>{const _0x557531=new _i(_0x2df79a),_0x5217b6=_0x21f759['commands']['get']('showPreviousChange'),_0x1bebb5=_0x21f759['commands']['get']('showNextChange');return _0x557531['bind']('isBackwardNavigationEnabled')['to'](_0x5217b6,'isEnabled'),_0x557531['bind']('isForwardNavigationEnabled')['to'](_0x1bebb5,'isEnabled'),_0x557531['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x311880),this['listenTo'](_0x557531,'execute',(_0x2fba46,_0x2c0807)=>{_0x21f759['execute']('forward'===_0x2c0807?'showNextChange':'showPreviousChange');}),_0x557531;}),_0x4144c8['show'](),_0x311880['on']('change:isReady',(_0x50ed24,_0x53f603,_0x27cc16)=>{_0x27cc16?_0x4144c8['hide']():_0x4144c8['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x4e712d,_0x29e826){super(_0x4e712d,_0x29e826);const _0x1d8d4e=this['bindTemplate'];this['set']({'label':R(_0x4e712d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4e712d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1d8d4e['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 _0x47d5cd=this['fieldView']['element'];this['_tooltipString']=_0x47d5cd['scrollWidth']>_0x47d5cd['clientWidth']&&_0x47d5cd['value']||'';}}class ti extends _0x504f04{constructor(_0x4c83c2,_0x1912c4,_0x18a6e4){super(_0x4c83c2);const _0x2732b9=new _0x441b12();_0x2732b9['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 _0x4ff3dd=['ck','ck-revision-history-sidebar__revision-author'];_0x18a6e4&&_0x4ff3dd['push']('ck-revision-history-sidebar__revision-author_creator');const _0x14ca0=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x4c83c2,_0x18a6e4?'Revision\x20creator':'Revision\x20author')},'children':[_0x2732b9,_0x1912c4['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4ff3dd},'children':_0x14ca0});}}function ni(_0x1b71e7,_0xd75621){const _0x5ec313=_0x1b71e7['bindTemplate'],_0x562085=_0x1b71e7['locale'],_0x46990a=_0x45eff5(_0x562085);_0x46990a['panelPosition']='sw';const _0x48f2f1=function(_0x4a302a,_0x502a97){const _0x505e00=function(_0x5c7fd6,_0x6a800a){const _0x2c56e2=_0x5c7fd6['locale'],_0x549de9={'Compare\x20against\x20selected':R(_0x2c56e2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2c56e2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2c56e2,'Restore\x20this\x20revision')};return _0x6a800a['map'](_0x6a85f3=>{const _0x3b87fa=_0x549de9[_0x6a85f3['name']];return _0x3b87fa&&_0x3b87fa!==_0x6a85f3['name']&&(_0x6a85f3['name']=_0x3b87fa),_0x6a85f3;});}(_0x4a302a,_0x502a97),_0xa352a6=new _0x5f3aba();for(const _0x470bab of _0x505e00){const _0x18a14d={'type':'button','model':new to({'label':_0x470bab['name'],'class':_0x470bab['class'],'withText':!0x0,'role':'menuitem','_action':_0x470bab['action']})};_0x18a14d['model']['bind']('isEnabled')['to'](_0x4a302a,'isActionsDropdownOpen',_0x2bec89=>'function'!=typeof _0x470bab['isEnabled']||(!_0x2bec89||_0x470bab['isEnabled'](_0x4a302a))),_0xa352a6['add'](_0x18a14d);}return _0xa352a6;}(_0x1b71e7,_0xd75621);return _0x1b71e7['bind']('isActionsDropdownOpen')['to'](_0x46990a,'isOpen'),_0x46990a['buttonView']['set']({'label':R(_0x562085,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x24dc9e['threeVerticalDots']}),_0x46990a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5ec313['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5ec313['to'](_0x2e5126=>_0x2e5126['stopPropagation']())}}),_0x46990a['on']('execute',_0x1ac2af=>{_0x1b71e7['isReady']&&'function'==typeof _0x1ac2af['source']['_action']&&_0x1ac2af['source']['_action'](_0x1b71e7);}),_0x4b0d4c(_0x46990a,_0x48f2f1,{'role':'menu'}),_0x46990a['listenTo'](_0x1b71e7,'change:isActionsDropdownOpen',(_0x20ddaa,_0x2170a7,_0x3bc0c2)=>{if(_0x3bc0c2)for(const _0x16e0d7 of _0x46990a['listView']['items']){const _0x3d74b0=_0x16e0d7['children']['first'],_0xa8c986=_0xd75621['find'](_0x3e445e=>_0x3e445e['action']===_0x3d74b0['_action'])['isVisible'];_0x16e0d7['isVisible']=void 0x0===_0xa8c986||_0xa8c986(_0x1b71e7);}}),_0x46990a;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x1d2c23(_0x504f04){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x112481,_0x3ec675,_0x57bd60,_0x428fe8){super(_0x112481);const _0x18e111=this['bindTemplate'],_0x3b8f0d=function(_0x50397f,_0x55a56e){const _0x441211=Array['from'](_0x55a56e['authors'])['filter'](_0xf5e357=>_0xf5e357!=_0x55a56e['creator']);return _0x55a56e['creator']&&_0x441211['unshift'](_0x55a56e['creator']),_0x441211['map'](_0x133901=>new ti(_0x50397f,_0x133901,_0x133901==_0x55a56e['creator']));}(_0x112481,_0x3ec675);this['id']=_0x3ec675['id'],this['_revision']=_0x3ec675,this['_requireRevisionName']=_0x428fe8,this['bind']('name','createdAt')['to'](_0x3ec675),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3326cc=>{return _0x497509=_0x112481['uiLanguage'],(_0x19056a=_0x3326cc)['toLocaleDateString'](_0x497509,{'month':'long','day':'numeric'})+',\x20'+_0x19056a['toLocaleTimeString'](_0x497509,{'hour':'numeric','minute':'numeric'});var _0x497509,_0x19056a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x112481,_0x2aeefc),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3dc891=>_0x3dc891||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x378146,_0x2298d3)=>_0x378146&&_0x2298d3),this['revisionActionsView']=_0x57bd60&&_0x57bd60['length']?ni(this,_0x57bd60):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x18e111['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x18e111['if']('isEnabled','ck-disabled',_0x91219c=>!_0x91219c),_0x18e111['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x18e111['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x18e111['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':_0x18e111['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':_0x3b8f0d}]},this['revisionActionsView']],'on':{'click':_0x18e111['to'](_0x16f62f=>{_0x16f62f['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x83a237=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x83a237,'change',()=>{this['_requireRevisionName']&&!_0x83a237['value']||this['fire']('setName',{'id':this['id'],'name':_0x83a237['value']}),_0x83a237['value']||(_0x83a237['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(_0x172f29,_0xb9f751){const _0x1b361f=_0x41c46a['fromJSDate'](_0x172f29)['setLocale'](_0xb9f751),_0x8f17e6=_0x41c46a['local'](),_0x401a93=_0x8f17e6['minus']({'days':0x1})['startOf']('day');let _0x57ee8b,_0x164f17;return _0x1b361f['hasSame'](_0x8f17e6,'day')?(_0x57ee8b=_0x1b361f['startOf']('day')['toJSDate'](),_0x164f17=_0x1b361f['toRelativeCalendar']()):_0x1b361f['hasSame'](_0x401a93,'day')?(_0x57ee8b=_0x401a93['toJSDate'](),_0x164f17=_0x1b361f['toRelativeCalendar']()):_0x1b361f['hasSame'](_0x8f17e6,'week')?(_0x57ee8b=_0x1b361f['startOf']('week')['toJSDate'](),_0x164f17=_0x1b361f['weekdayLong']||''):_0x1b361f['hasSame'](_0x8f17e6,'year')?(_0x57ee8b=_0x1b361f['startOf']('month')['toJSDate'](),_0x164f17=_0x1b361f['monthLong']||''):(_0x57ee8b=_0x1b361f['startOf']('year')['toJSDate'](),_0x164f17=String(_0x1b361f['year'])),{'startDate':_0x57ee8b,'localizedPeriodName':_0x164f17};}class mi extends _0x504f04{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5be2bf,_0x392ee4,_0x32074d,_0x5d9012){super(_0x5be2bf);const _0x244946=di(_0x392ee4,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x392ee4,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x32074d,this['_requireRevisionName']=_0x5d9012,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':_0x244946}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x279774){const _0x1c2a60=new ai(this['locale'],_0x279774,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1c2a60);}['removeRevision'](_0x1c25ec){const _0x4fa236=this['revisionViews']['find'](_0x167a15=>_0x167a15['id']===_0x1c25ec['id']);this['revisionViews']['remove'](_0x4fa236);}}class as extends _0x504f04{constructor(_0x215a54){super(_0x215a54);const _0x11cba5=new _0x441b12();_0x11cba5['content']=_0x24dc9e['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x11cba5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x215a54,'Revision\x20history')]}]});}}class ci extends _0x504f04{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x361adc,_0x2b6d79,_0x2690a7,_0x461332){super(_0x361adc);const _0x1513c0=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2b6d79,this['_revisionActions']=_0x2690a7,this['_requireRevisionName']=_0x461332,this['on']('select',(_0x8d289d,_0x521e99)=>{this['fire']('revisionSelected',_0x521e99);}),this['on']('setName',(_0x4e7523,_0x17b502)=>{this['fire']('revisionSetName',_0x17b502);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x361adc),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1513c0['if']('isEnabled','ck-disabled',_0x5d2d32=>!_0x5d2d32)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x52883f of this['_revisions'])this['_addRevision'](_0x52883f);this['_revisions']['on']('add',(_0x5044c6,_0xfc9c2d)=>{this['_addRevision'](_0xfc9c2d);}),this['_revisions']['on']('remove',(_0x48eff3,_0x474abc)=>{this['_removeRevision'](_0x474abc);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x488968=>_0x488968['revisionViews']['map'](_0x42eaf5=>_0x42eaf5))['flat']();}['selectRevision'](_0x22d7ca){for(const _0x49de2a of this['revisionViews'])_0x22d7ca&&_0x22d7ca['id']===_0x49de2a['id']?_0x49de2a['select']():_0x49de2a['deselect']();}['highlightRevisions'](_0x1f74fe){for(const _0x3c932c of this['revisionViews'])_0x1f74fe['some'](({id:_0x5e5dd6})=>_0x5e5dd6===_0x3c932c['id'])?_0x3c932c['highlight']():_0x3c932c['unhighlight']();}['_addRevision'](_0x30849f){const _0x16b380=di(_0x30849f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x523cf2=this['timePeriodViews']['get'](0x0);_0x523cf2&&_0x523cf2['startDate']['getTime']()===_0x16b380['getTime']()||(_0x523cf2=new mi(this['locale'],_0x16b380,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x523cf2)),_0x523cf2['addRevision'](_0x30849f);}['_removeRevision'](_0x1012af){const _0x2c3952=di(_0x1012af['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2c3952)['removeRevision'](_0x1012af);}['_getTimePeriodViewByStartDate'](_0x5cec58){return this['timePeriodViews']['find'](_0x24dffa=>_0x24dffa['startDate']['getTime']()===_0x5cec58['getTime']());}}class g extends _0x25f453{['_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(_0x3090c6){super(_0x3090c6),this['_revisionViewer']=_0x3090c6['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1e7bf2=this['_revisionsRepository']['_revisions'],_0x527ce9=this['_createRevisionActions'](),_0x77d94b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x1e7bf2,_0x527ce9,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',(_0x40a448,_0x51c0f3)=>{_0x51c0f3['revisionViews']['on']('add',(_0x35f9e7,_0x7961df)=>{_0x7961df['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)),_0x77d94b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x42e994=this['_revisionsRepository']['getRevision'](0x0);if(_0x42e994){const _0x370da2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x42e994['id']);this['_revisionViewer']['compare'](_0x42e994,_0x370da2);}}['_handleRevisionSelected'](_0x118e3f,_0x2fc8a3){const _0x3798e5=this['_revisionsRepository']['getRevision'](_0x2fc8a3['id']),_0xb53d44=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3798e5['id']);this['_revisionViewer']['compare'](_0x3798e5,_0xb53d44);}['_handleRevisionSetName'](_0x499674,_0xada889){this['_revisionsRepository']['getRevision'](_0xada889['id'])['setName'](_0xada889['name']);}['_handleDiffChange'](_0x241417,_0x59ca25,_0x5113de){const _0x31025d=this['_revisionsRepository']['getRevisionsInDiff'](_0x5113de);_0x31025d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x31025d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x31025d[0x0]));}['_createRevisionActions'](){const _0xf9c1cd=this['editor'],_0x4ac7bc=g['availableRevisionActions'],_0x32e15b=_0xf9c1cd['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x32e15b['length'])return _0x32e15b['map'](_0x5aff07=>{const _0x5dae43='string'==typeof _0x5aff07?Object['assign']({},_0x4ac7bc[_0x5aff07]):_0x5aff07;return _0x5dae43['action']=_0x5dae43['action']['bind'](this,_0xf9c1cd),_0x5dae43['isVisible']&&(_0x5dae43['isVisible']=_0x5dae43['isVisible']['bind'](this,_0xf9c1cd)),_0x5dae43;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4a4a33},_0x214bd5)=>{const _0x49b297=_0x4a4a33['get'](d),_0x5a41af=_0x49b297['repository'];let _0x1e1e67=_0x49b297['diff']['newRevisionId'],_0x523e7c=_0x214bd5['id'];_0x5a41af['getIndex'](_0x1e1e67)>_0x5a41af['getIndex'](_0x523e7c)&&([_0x1e1e67,_0x523e7c]=[_0x523e7c,_0x1e1e67]),_0x49b297['compare'](_0x1e1e67,_0x523e7c);},'isVisible':({plugins:_0x1408a9},_0x43170f)=>{const _0x349155=_0x1408a9['get'](d);return!(_0x349155['repository']['getRevisionsInDiff'](_0x349155['diff'])['length']>0x2)&&!_0x43170f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x23ba78,{id:_0x2c7929})=>{_0x23ba78['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c7929);},'isVisible':({plugins:_0x3c102b},_0x28f6a4)=>!!_0x3c102b['get'](d)['repository']['getLaterVisibleRevision'](_0x28f6a4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2952b0},{id:_0x4fdc37,revisionNameView:_0x496ca6})=>{const _0x23a6ac=_0x2952b0['get'](d),_0x2137a3=_0x23a6ac['repository']['getEarlierVisibleRevision'](_0x4fdc37);_0x23a6ac['compare'](_0x4fdc37,_0x2137a3),_0x496ca6['focus'](),_0x496ca6['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x15e66e,_0x4e87a3){super(_0x15e66e),this['_view']=_0x4e87a3,this['_toolbarConfig']=ht(_0x15e66e['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x5f3824){const _0xa946dc=this['editor'],_0x5b7ac2=this['view'],_0x287d1e=_0xa946dc['editing']['view'],_0x1d1686=_0x5b7ac2['editable'],_0x1aef1e=_0x287d1e['document']['getRoot']();_0x1d1686['name']=_0x1aef1e['rootName'],_0x5b7ac2['render']();const _0x1970e4=_0x1d1686['element'];this['setEditableElement'](_0x1d1686['name'],_0x1970e4),_0x5b7ac2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x287d1e['attachDomRoot'](_0x1970e4),this['_elementReplacer']['replace'](_0x5f3824,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x54139a=this['view'],_0x91a9ad=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x91a9ad['detachDomRoot'](_0x54139a['editable']['name']),_0x54139a['destroy']();}['_initToolbar'](){const _0x50f533=this['view'];_0x50f533['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x50f533['stickyPanel']['limiterElement']=_0x50f533['element'],_0x50f533['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x493149})=>_0x493149),_0x50f533['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x50f533['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3cac9d,_0xe0dad4,_0x3be185={}){super(_0x3cac9d),this['stickyPanel']=new lt(_0x3cac9d),this['toolbar']=new nt(_0x3cac9d,{'shouldGroupWhenFull':_0x3be185['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x3cac9d,_0xe0dad4);}['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(_0x555cf9,_0x2f5436){super(_0x2f5436),this['sourceElement']=_0x555cf9,this['model']['document']['createRoot']();const _0x173e27=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x173e27);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5ab1bc,_0x2b814c){const _0x3ab7cb=new this(_0x5ab1bc,_0x2b814c);return await _0x3ab7cb['initPlugins'](),await _0x3ab7cb['ui']['init'](_0x5ab1bc),await _0x3ab7cb['data']['init'](_0x3ab7cb['config']['get']('initialData')||''),_0x3ab7cb['fire']('ready'),_0x3ab7cb;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5a5f64{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x312435){function _0x5499d1(_0x2d6bfa){return _0x2d6bfa['map'](_0x5550b6=>String['fromCharCode'](_0x5550b6))['join']('');}super(_0x312435),this['result']='end',_0x312435[_0x5499d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5499d1([0x76,0x69,0x65,0x77])][_0x5499d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5499d1([0x61,0x75,0x74,0x6f]),_0x312435[_0x5499d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5499d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5499d1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5499d1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5499d1([0x6f,0x6b])});}}class H extends _0x5a5f64{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2763e2){if(super(_0x2763e2),!this['editor']['config']['get']('revisionHistory'))throw new _0x2e7d78('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x58a9ea=>this['_showRevisionViewer']({..._0x58a9ea,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x37fa0e=>this['_closeRevisionViewer'](_0x37fa0e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2b2ea6=>this['_restoreRevision'](_0x2b2ea6)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4dba88){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4dba88;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x53304b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x53304b);}['getRevision'](_0x3b1998){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b1998);}['getRevisions'](_0x4b8d25){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4b8d25||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4149c6=this['editor'],_0x4499e4=_0x23d80d(_0x4149c6,p),_0xd71079=_0x4149c6['plugins']['get']('RevisionTracker'),_0x31bed6=_0x4149c6['plugins']['get']('Users')['users'];return _0x4499e4['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4499e4['lazyRoots'],(_0x4499e4['plugins']['push'](k,d,m,class extends _0x5a5f64{static get['requires'](){return[d,'Users'];}['init'](){const _0x121881=this['editor']['plugins']['get']('Users');for(const _0x23b40d of _0x31bed6)_0x23b40d['isAnonymous']||_0x121881['getUser'](_0x23b40d['id'])||_0x121881['addUser'](_0x23b40d);const _0x33551e=_0xd71079['repository']['getRevisions']();let _0x3fba6f=null;const _0x3afa3d=this['editor']['plugins']['get']('RevisionViewer');_0x3afa3d['adapter']=_0xd71079['adapter'],_0x3afa3d['bind']('isEnabled')['to'](_0xd71079),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4149c6,'isReadOnly',_0x4d2546=>!_0x4d2546);for(const _0x48a170 of _0x33551e){const _0x21856b=null===_0x48a170['creator'];if(_0x21856b&&_0x48a170['toVersion']===_0x48a170['fromVersion'])continue;const _0x7496d7=_0x48a170['toJSON']();_0x3afa3d['addRevisionData'](_0x7496d7,(_0x2f1992,_0x1e5d95,_0x37d975)=>{if(_0x21856b){if(_0x3fba6f)_0x3fba6f['_update'](_0x2f1992,_0x1e5d95);else{if(!_0x1e5d95){const _0x58ef5d=_0x37d975['toJSON']();_0x58ef5d['id']=_0x45c6ed(),_0xd71079['saveRevision'](_0x58ef5d,_0x37d975['toVersion'])['then'](_0x3ffab7=>{_0x3fba6f=_0x3ffab7;});}}}else _0x48a170['_update'](_0x2f1992,_0x1e5d95);});}}},g),_0x4499e4);}['_enhanceShowRevisionViewerCallback'](){const _0x3ea9a6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x337e61=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x206efa=this['editor']['plugins']['get']('Autosave');await _0x206efa['save']();}else await _0x337e61['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x7d7499=this['editor']['plugins']['get']('Dialog');_0x7d7499['isOpen']&&_0x7d7499['hide']();}const _0xa2a55b=this['_getRevisionViewerEditorConfig']();return _0x3ea9a6(_0xa2a55b)['then'](_0x446907=>{return(this['_viewerEditor']=_0x446907,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x446907;})['catch'](_0x58c8a3=>(console['error'](_0x58c8a3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x56e1b5=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'](),_0x56e1b5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2dfd92=this['editor']['plugins']['get']('Annotations');_0x2dfd92['refreshVisibility'](),_0x2dfd92['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2ac409){const _0x3fa010=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x444863=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x428674=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x428674,_0x2ac409)['then'](_0x188a14=>(_0x444863['style']['display']='block',_0x3fa010['style']['display']='none',_0x188a14));}['_closeRevisionViewer'](_0x3c0ef4){const _0x3381fa=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3381fa['style']['display']='',_0x3c0ef4['destroy']();}async['_restoreRevision'](_0x539664){const _0x329e77=this['editor'],_0x47730a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2e9a82=_0x329e77['plugins']['get']('RevisionTracker'),_0x535583=_0x47730a['repository']['getRevision'](_0x539664);let _0x17e548,_0xbb4426,_0xaf4fc7;try{_0x17e548=await _0x47730a['getRevisionData'](_0x535583),_0xbb4426=await _0x47730a['getRevisionRootsAttributes'](_0x535583);}catch(_0x5b5794){return void console['error'](_0x5b5794);}_0x329e77['model']['change'](_0x3fd81a=>{for(const _0x4fbc24 of Array['from'](_0x329e77['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3fd81a['removeMarker'](_0x4fbc24);}),_0x47730a['isReady']=!0x1,_0x329e77['model']['enqueueChange'](_0x2be2d9=>{_0x2be2d9['setSelection'](null),_0x2be2d9['removeSelectionAttribute'](_0x329e77['model']['document']['selection']['getAttributeKeys']());const _0x4ccd0a=Object['keys'](_0x17e548);for(const _0x259eb3 of _0x329e77['model']['document']['roots'])'$graveyard'!=_0x259eb3['rootName']&&_0x259eb3['isAttached']()&&!_0x4ccd0a['includes'](_0x259eb3['rootName'])&&_0x2be2d9['detachRoot'](_0x259eb3);for(const _0x1bd61b of _0x4ccd0a){let _0x97d0a4=_0x329e77['model']['document']['getRoot'](_0x1bd61b);_0x97d0a4&&_0x97d0a4['isAttached']()||(_0x97d0a4=_0x2be2d9['addRoot'](_0x1bd61b));const _0x41c7ca=_0xbb4426[_0x1bd61b],_0x209448=Object['keys'](_0x41c7ca),_0x37b7e5=_0x17e548[_0x1bd61b];for(const _0x113d2f of _0x97d0a4['getAttributeKeys']())_0x209448['includes'](_0x113d2f)||_0x2be2d9['removeAttribute'](_0x113d2f,_0x97d0a4);for(const _0x382d76 of _0x209448)_0x2be2d9['setAttribute'](_0x382d76,_0xbb4426[_0x1bd61b][_0x382d76],_0x97d0a4);_0x2be2d9['remove'](_0x2be2d9['createRangeIn'](_0x97d0a4)),_0x2be2d9['insert'](_0x329e77['data']['parse'](_0x37b7e5,_0x97d0a4),_0x97d0a4,0x0);}});const _0x566f62=R(_0x329e77['locale'],'Restored');if(_0x535583['name'])_0xaf4fc7=-0x1==_0x535583['name']['indexOf'](_0x566f62)?_0x566f62+':\x20'+_0x535583['name']:_0x535583['name'];else _0xaf4fc7=_0x566f62+':\x20'+(_0x535583['createdAt']['toLocaleDateString'](_0x329e77['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x535583['createdAt']['toLocaleTimeString'](_0x329e77['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2e9a82['saveRevision']({'name':_0xaf4fc7}),_0x47730a['isReady']=!0x0,_0x329e77['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(_0x1266ce){super(_0x1266ce),this['_revisionViewer']=_0x1266ce['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xca8bf8=this['_revisionsRepository']['_revisions'],_0x45b7db=this['_createRevisionActions'](),_0x598dd4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0xca8bf8,_0x45b7db,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',(_0x61b8d1,_0x1e20e3)=>{_0x1e20e3['revisionViews']['on']('add',(_0x34b556,_0x4aebf3)=>{_0x4aebf3['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)),_0x598dd4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1ccb6e=this['_revisionsRepository']['getRevision'](0x0);if(_0x1ccb6e){const _0x1377f2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1ccb6e['id']);this['_revisionViewer']['compare'](_0x1ccb6e,_0x1377f2);}}['_handleRevisionSelected'](_0x2fb092,_0x36fdf6){const _0x11fadf=this['_revisionsRepository']['getRevision'](_0x36fdf6['id']),_0x2a77a5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x11fadf['id']);this['_revisionViewer']['compare'](_0x11fadf,_0x2a77a5);}['_handleRevisionSetName'](_0x44ec44,_0x2601bf){this['_revisionsRepository']['getRevision'](_0x2601bf['id'])['setName'](_0x2601bf['name']);}['_handleDiffChange'](_0x2aa9cb,_0x2575c1,_0x2088ca){const _0x108fe8=this['_revisionsRepository']['getRevisionsInDiff'](_0x2088ca);_0x108fe8['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x108fe8),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x108fe8[0x0]));}['_createRevisionActions'](){const _0x4bed42=this['editor'],_0x2f1ca9=g['availableRevisionActions'],_0x56cfab=_0x4bed42['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x56cfab['length'])return _0x56cfab['map'](_0x5ce3fe=>{const _0x4849d2='string'==typeof _0x5ce3fe?Object['assign']({},_0x2f1ca9[_0x5ce3fe]):_0x5ce3fe;return _0x4849d2['action']=_0x4849d2['action']['bind'](this,_0x4bed42),_0x4849d2['isVisible']&&(_0x4849d2['isVisible']=_0x4849d2['isVisible']['bind'](this,_0x4bed42)),_0x4849d2;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x21e93e},_0x324cbb)=>{const _0xb7266a=_0x21e93e['get'](d),_0x371fd4=_0xb7266a['repository'];let _0x4155b3=_0xb7266a['diff']['newRevisionId'],_0x599366=_0x324cbb['id'];_0x371fd4['getIndex'](_0x4155b3)>_0x371fd4['getIndex'](_0x599366)&&([_0x4155b3,_0x599366]=[_0x599366,_0x4155b3]),_0xb7266a['compare'](_0x4155b3,_0x599366);},'isVisible':({plugins:_0x335186},_0x259536)=>{const _0x16027c=_0x335186['get'](d);return!(_0x16027c['repository']['getRevisionsInDiff'](_0x16027c['diff'])['length']>0x2)&&!_0x259536['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2964ec,{id:_0x2d09b2})=>{_0x2964ec['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2d09b2);},'isVisible':({plugins:_0x5b70b0},_0x3c2538)=>!!_0x5b70b0['get'](d)['repository']['getLaterVisibleRevision'](_0x3c2538['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x175a9c},{id:_0x23f8cc,revisionNameView:_0x32a24a})=>{const _0x1b803e=_0x175a9c['get'](d),_0x5a84f6=_0x1b803e['repository']['getEarlierVisibleRevision'](_0x23f8cc);_0x1b803e['compare'](_0x23f8cc,_0x5a84f6),_0x32a24a['focus'](),_0x32a24a['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5f3f7a,_0x1365d7){super(_0x5f3f7a),this['_view']=_0x1365d7,this['_toolbarConfig']=ht(_0x5f3f7a['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x59dc50){const _0x34a11f=this['editor'],_0x3d130e=this['view'],_0x3b5f4b=_0x34a11f['editing']['view'],_0x3dc0fc=_0x3d130e['editable'],_0x1428b0=_0x3b5f4b['document']['getRoot']();_0x3dc0fc['name']=_0x1428b0['rootName'],_0x3d130e['render']();const _0x2c97d6=_0x3dc0fc['element'];this['setEditableElement'](_0x3dc0fc['name'],_0x2c97d6),_0x3d130e['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3b5f4b['attachDomRoot'](_0x2c97d6),this['_elementReplacer']['replace'](_0x59dc50,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3a4e72=this['view'],_0x5e3aa3=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5e3aa3['detachDomRoot'](_0x3a4e72['editable']['name']),_0x3a4e72['destroy']();}['_initToolbar'](){const _0x26ec36=this['view'];_0x26ec36['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x26ec36['stickyPanel']['limiterElement']=_0x26ec36['element'],_0x26ec36['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x405d28})=>_0x405d28),_0x26ec36['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x26ec36['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2aec98,_0xa58342,_0x207653={}){super(_0x2aec98),this['stickyPanel']=new lt(_0x2aec98),this['toolbar']=new nt(_0x2aec98,{'shouldGroupWhenFull':_0x207653['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x2aec98,_0xa58342);}['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(_0x1a6520,_0x4a6430){super(_0x4a6430),this['sourceElement']=_0x1a6520,this['model']['document']['createRoot']();const _0xcb9a46=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0xcb9a46);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2ae3f1,_0x30d86e){const _0x2cf671=new this(_0x2ae3f1,_0x30d86e);return await _0x2cf671['initPlugins'](),await _0x2cf671['ui']['init'](_0x2ae3f1),await _0x2cf671['data']['init'](_0x2cf671['config']['get']('initialData')||''),_0x2cf671['fire']('ready'),_0x2cf671;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x25f453{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33db6e){function _0x125d0e(_0x4f4b7f){return _0x4f4b7f['map'](_0x3a485b=>String['fromCharCode'](_0x3a485b))['join']('');}super(_0x33db6e),this['result']='end',_0x33db6e[_0x125d0e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x125d0e([0x76,0x69,0x65,0x77])][_0x125d0e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x125d0e([0x61,0x75,0x74,0x6f]),_0x33db6e[_0x125d0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x125d0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x125d0e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x125d0e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x125d0e([0x6f,0x6b])});}}class H extends _0x25f453{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x17bd8c){if(super(_0x17bd8c),!this['editor']['config']['get']('revisionHistory'))throw new _0x3f347f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x556494=>this['_showRevisionViewer']({..._0x556494,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5067e8=>this['_closeRevisionViewer'](_0x5067e8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x31e752=>this['_restoreRevision'](_0x31e752)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39a918){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39a918;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xd2f9f8){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xd2f9f8);}['getRevision'](_0x16c78c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x16c78c);}['getRevisions'](_0x2af0f7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2af0f7||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x468171=this['editor'],_0x5da150=_0x71d039(_0x468171,p),_0x309a1e=_0x468171['plugins']['get']('RevisionTracker'),_0x52aeb8=_0x468171['plugins']['get']('Users')['users'];return _0x5da150['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5da150['lazyRoots'],(_0x5da150['plugins']['push'](k,d,m,class extends _0x25f453{static get['requires'](){return[d,'Users'];}['init'](){const _0x21f608=this['editor']['plugins']['get']('Users');for(const _0x5e99b3 of _0x52aeb8)_0x5e99b3['isAnonymous']||_0x21f608['getUser'](_0x5e99b3['id'])||_0x21f608['addUser'](_0x5e99b3);const _0x2b005d=_0x309a1e['repository']['getRevisions']();let _0x24ae71=null;const _0x7c5a3c=this['editor']['plugins']['get']('RevisionViewer');_0x7c5a3c['adapter']=_0x309a1e['adapter'],_0x7c5a3c['bind']('isEnabled')['to'](_0x309a1e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x468171,'isReadOnly',_0x1c7849=>!_0x1c7849);for(const _0x4ba10b of _0x2b005d){const _0xe53538=null===_0x4ba10b['creator'];if(_0xe53538&&_0x4ba10b['toVersion']===_0x4ba10b['fromVersion'])continue;const _0x458637=_0x4ba10b['toJSON']();_0x7c5a3c['addRevisionData'](_0x458637,(_0x581d69,_0x31a972,_0x29752a)=>{if(_0xe53538){if(_0x24ae71)_0x24ae71['_update'](_0x581d69,_0x31a972);else{if(!_0x31a972){const _0x512c6c=_0x29752a['toJSON']();_0x512c6c['id']=_0x3bb153(),_0x309a1e['saveRevision'](_0x512c6c,_0x29752a['toVersion'])['then'](_0xeefc62=>{_0x24ae71=_0xeefc62;});}}}else _0x4ba10b['_update'](_0x581d69,_0x31a972);});}}},g),_0x5da150);}['_enhanceShowRevisionViewerCallback'](){const _0x2886fc=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x42d7ab=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x42ef25=this['editor']['plugins']['get']('Autosave');await _0x42ef25['save']();}else await _0x42d7ab['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x53065d=this['editor']['plugins']['get']('Dialog');_0x53065d['isOpen']&&_0x53065d['hide']();}const _0xdb747f=this['_getRevisionViewerEditorConfig']();return _0x2886fc(_0xdb747f)['then'](_0x1098b4=>{return(this['_viewerEditor']=_0x1098b4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1098b4;})['catch'](_0x87d3b2=>(console['error'](_0x87d3b2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x312ecd=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'](),_0x312ecd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x530a9c=this['editor']['plugins']['get']('Annotations');_0x530a9c['refreshVisibility'](),_0x530a9c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x13a64d){const _0x64e217=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4590bf=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xf536c4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xf536c4,_0x13a64d)['then'](_0x59e7e7=>(_0x4590bf['style']['display']='block',_0x64e217['style']['display']='none',_0x59e7e7));}['_closeRevisionViewer'](_0x217248){const _0x45a0cf=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x45a0cf['style']['display']='',_0x217248['destroy']();}async['_restoreRevision'](_0x38cfef){const _0x1768da=this['editor'],_0x201700=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x104de3=_0x1768da['plugins']['get']('RevisionTracker'),_0x25b549=_0x201700['repository']['getRevision'](_0x38cfef);let _0x580001,_0x176603,_0x125644;try{_0x580001=await _0x201700['getRevisionData'](_0x25b549),_0x176603=await _0x201700['getRevisionRootsAttributes'](_0x25b549);}catch(_0x3f04a5){return void console['error'](_0x3f04a5);}_0x1768da['model']['change'](_0x17c55d=>{for(const _0x8bb669 of Array['from'](_0x1768da['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x17c55d['removeMarker'](_0x8bb669);}),_0x201700['isReady']=!0x1,_0x1768da['model']['enqueueChange'](_0x23c32a=>{_0x23c32a['setSelection'](null),_0x23c32a['removeSelectionAttribute'](_0x1768da['model']['document']['selection']['getAttributeKeys']());const _0x393b4d=Object['keys'](_0x580001);for(const _0x2e959a of _0x1768da['model']['document']['roots'])'$graveyard'!=_0x2e959a['rootName']&&_0x2e959a['isAttached']()&&!_0x393b4d['includes'](_0x2e959a['rootName'])&&_0x23c32a['detachRoot'](_0x2e959a);for(const _0x530b59 of _0x393b4d){let _0xc2f2e1=_0x1768da['model']['document']['getRoot'](_0x530b59);_0xc2f2e1&&_0xc2f2e1['isAttached']()||(_0xc2f2e1=_0x23c32a['addRoot'](_0x530b59));const _0x1195ac=_0x176603[_0x530b59],_0x7f6103=Object['keys'](_0x1195ac),_0x1e7ae8=_0x580001[_0x530b59];for(const _0x21031b of _0xc2f2e1['getAttributeKeys']())_0x7f6103['includes'](_0x21031b)||_0x23c32a['removeAttribute'](_0x21031b,_0xc2f2e1);for(const _0x52b59c of _0x7f6103)_0x23c32a['setAttribute'](_0x52b59c,_0x176603[_0x530b59][_0x52b59c],_0xc2f2e1);_0x23c32a['remove'](_0x23c32a['createRangeIn'](_0xc2f2e1)),_0x23c32a['insert'](_0x1768da['data']['parse'](_0x1e7ae8,_0xc2f2e1),_0xc2f2e1,0x0);}});const _0x32af54=R(_0x1768da['locale'],'Restored');if(_0x25b549['name'])_0x125644=-0x1==_0x25b549['name']['indexOf'](_0x32af54)?_0x32af54+':\x20'+_0x25b549['name']:_0x25b549['name'];else _0x125644=_0x32af54+':\x20'+(_0x25b549['createdAt']['toLocaleDateString'](_0x1768da['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x25b549['createdAt']['toLocaleTimeString'](_0x1768da['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x104de3['saveRevision']({'name':_0x125644}),_0x201700['isReady']=!0x0,_0x1768da['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};