@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250224.0 → 0.0.0-nightly-20250225.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 _0xa53d47,uid as _0x50e613,Collection as _0x4cb68a,logWarning as _0x4d2d80,FocusTracker as _0x34dd60,KeystrokeHandler as _0x59af65,scrollViewportToShowTarget as _0x3ef4e9,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0xcbc5f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x508619,set as _0x30d854,unset as _0x1a54a0,isEqual as _0x504e9c}from'lodash-es';import{Plugin as _0x7756cd,PendingActions as _0x40074b,icons as _0x2a6eef,Command as _0x3d8b8b,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4ac02a,getMarkerDomElement as _0x26b1fd,ConfirmMixin as _0x2dc541,sanitizeEditorConfig as _0x21f332}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3687a9,Element as ft,Range as vt,ViewUIElement as _0x509c82,ViewRawElement as _0x27e757,ViewEmptyElement as _0x58d5cf,ViewAttributeElement as _0x7f5663,ViewContainerElement as _0x344d68,Position as gt,ViewText as _0x198ef8,ViewElement as _0x5dff6b,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x473b73,injectCssTransitionDisabler as ts,submitHandler as _0x13da2a,LabeledFieldView as nt,createLabeledInputText as _0x2432b5,createDropdown as _0xa6251b,ListView as te,ListItemView as _0x4212ed,ButtonView as _0x1a7b95,MenuBarMenuView as _0x4ee76d,MenuBarMenuListView as _0x26a1b2,MenuBarMenuListItemView as _0x2f27ad,MenuBarMenuListItemButtonView as _0x43c7f8,ContextualBalloon as _0x19208d,ToolbarSeparatorView as _0x4ac7fb,IconView as _0x24bc8d,addListToDropdown as _0x4c7c3e,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2f5ef1}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0xa53d47(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5b0130){super(),this['id']=_0x5b0130['id']||_0x50e613(),this['creator']=_0x5b0130['creator']||null,this['authors']=_0x5b0130['authors']||[],this['diffData']=_0x5b0130['diffData']||null,this['toVersion']=_0x5b0130['toVersion']||0x0,this['fromVersion']=_0x5b0130['fromVersion']||0x0,this['set']('name',_0x5b0130['name']||''),this['set']('createdAt',_0x5b0130['createdAt']||new Date()),this['set']('attributes',_0x5b0130['attributes']||{});}['setName'](_0x26ac3b){this['_update']({'name':_0x26ac3b});}['setAttribute'](_0x15e00d,_0x5c6d00){const _0x1d9607=_0x508619(this['attributes']);_0x30d854(_0x1d9607,_0x15e00d,_0x5c6d00),this['_update']({'attributes':_0x1d9607});}['removeAttribute'](_0x2d584c){const _0x4617bc=_0x508619(this['attributes']);_0x1a54a0(_0x4617bc,_0x2d584c),this['_update']({'attributes':_0x4617bc});}['_update'](_0x16ee08,_0x2e432f=!0x1){let _0x32b337=!0x1;const _0x2560d9={'id':this['id']},_0x52ad0e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x368228 of _0x52ad0e){const _0x4ef8e6=_0x16ee08[_0x368228];void 0x0!==_0x4ef8e6&&_0x4ef8e6!==this[_0x368228]&&(this[_0x368228]=_0x4ef8e6,_0x2560d9[_0x368228]=_0x4ef8e6,_0x32b337=!0x0);}_0x32b337&&(_0x2560d9['authors']&&(_0x2560d9['authorsIds']=_0x2560d9['authors']['map'](_0x59e024=>_0x59e024['id']),delete _0x2560d9['authors']),this['fire']('_update',_0x2560d9,_0x2e432f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x31d604=>_0x31d604['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x7756cd{['_revisions'];static get['requires'](){return[_0x4ac02a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5fe49f){super(_0x5fe49f),this['_revisions']=new _0x4cb68a();}['afterInit'](){!async function(_0x3ee139){const _0x491c81=_0x19b100([0x43,0x54,0x69,0x74,0x30,0x71,0x45,0x46,0x50,0x66,0x64,0x4a,0x78,0x6d,0x61,0x38,0x68,0x42,0x65,0x7a,0x4e,0x72,0x53,0x77,0x6e,0x49,0x58,0x76,0x6c,0x37,0x4f,0x6b,0x31,0x57,0x52,0x44,0x41,0x70,0x56,0x33,0x4d,0x48,0x73,0x32,0x63,0x6f,0x51,0x55,0x75,0x4b,0x59,0x34,0x6a,0x36,0x39,0x67,0x79,0x4c,0x62,0x5a,0x35,0x47]),_0x1870d4=0xeb829,_0x5dead0=0x4c56b857,_0x84ee69=0x4c51d83f^_0x5dead0,_0x46735b=window[_0x19b100([0x44,0x61,0x74,0x65])][_0x19b100([0x6e,0x6f,0x77])](),_0x3266c3=_0x3ee139[_0x19b100([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfd5c01=new window[(_0x19b100([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ea5ec=>{_0x3266c3[_0x19b100([0x6f,0x6e,0x63,0x65])](_0x19b100([0x72,0x65,0x61,0x64,0x79]),_0x2ea5ec);}),_0x2fdf80={[_0x19b100([0x6b,0x74,0x79])]:_0x19b100([0x45,0x43]),[_0x19b100([0x75,0x73,0x65])]:_0x19b100([0x73,0x69,0x67]),[_0x19b100([0x63,0x72,0x76])]:_0x19b100([0x50,0x2d,0x32,0x35,0x36]),[_0x19b100([0x78])]:_0x19b100([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]),[_0x19b100([0x79])]:_0x19b100([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]),[_0x19b100([0x61,0x6c,0x67])]:_0x19b100([0x45,0x53,0x32,0x35,0x36])},_0x3285d7=_0x3266c3[_0x19b100([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x19b100([0x67,0x65,0x74])](_0x19b100([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c62c0(){let _0x24740f,_0x1881ac=null,_0x42560d=null;try{if(_0x3285d7==_0x19b100([0x47,0x50,0x4c]))return _0x19b100([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24740f=_0x9ac8d0(),!_0x24740f)return _0x19b100([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24740f[_0x19b100([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42560d=_0x48bed0(_0x24740f[_0x19b100([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24740f[_0x19b100([0x6a,0x74,0x69])])),await _0x3f87f1()?_0x6f9c34()?_0x25a0da()?_0x19b100([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x308c55()?(_0x24740f[_0x19b100([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19b100([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1881ac=_0x18f000(_0x19b100([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24740f[_0x19b100([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19b100([0x74,0x72,0x69,0x61,0x6c])&&(_0x1881ac=_0x18f000(_0x19b100([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5796c4()):_0x19b100([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x19b100([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x19b100([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3fa7e1){return _0x19b100([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25a0da(){const _0x1d3d4f=[_0x19b100([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x19b100([0x74,0x72,0x69,0x61,0x6c])][_0x19b100([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24740f[_0x19b100([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x46735b/0x3e8:0xe10*_0x84ee69;return _0x24740f[_0x19b100([0x65,0x78,0x70])]<_0x1d3d4f;}function _0x6f9c34(){const _0x19d992=_0x24740f[_0x19b100([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x19d992)return!0x1;if(_0x19d992[_0x19b100([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b100([0x2a])))return!0x0;if(_0x19d992[_0x19b100([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b100([0x52,0x48])))return!0x0;if(_0x19d992[_0x19b100([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b100([0x52,0x52,0x48]))){if(_0xe4a02a())return!0x0;if(_0x2286c8()||_0x5a4902())return!0x0;}return!0x1;}function _0x308c55(){const _0x48c57e=_0x24740f[_0x19b100([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48c57e||0x0==_0x48c57e[_0x19b100([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x275f60}=new URL(window[_0x19b100([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48c57e[_0x19b100([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275f60))return!0x0;const _0x4a3d2d=_0x275f60[_0x19b100([0x73,0x70,0x6c,0x69,0x74])](_0x19b100([0x2e]));return _0x48c57e[_0x19b100([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36e213=>_0x36e213[_0x19b100([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b100([0x2a])))[_0x19b100([0x6d,0x61,0x70])](_0xf4f27=>_0xf4f27[_0x19b100([0x73,0x70,0x6c,0x69,0x74])](_0x19b100([0x2e])))[_0x19b100([0x73,0x6f,0x6d,0x65])](_0x57597d=>_0x4a3d2d[_0x19b100([0x65,0x76,0x65,0x72,0x79])]((_0x263404,_0x472313)=>_0x57597d[_0x472313]===_0x263404||_0x57597d[_0x472313]===_0x19b100([0x2a])));}function _0x5796c4(){return _0x1881ac&&_0x42560d?new window[(_0x19b100([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18304d,_0x4447b2)=>{_0x1881ac[_0x19b100([0x74,0x68,0x65,0x6e])](_0x18304d,_0x4447b2),_0x42560d[_0x19b100([0x74,0x68,0x65,0x6e])](_0x4d3326=>{_0x4d3326!=_0x19b100([0x56,0x61,0x6c,0x69,0x64])&&_0x18304d(_0x4d3326);},_0x4447b2);}):_0x1881ac||_0x42560d||_0x19b100([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48bed0(_0x5cfd36,_0x4ba3b4){return new window[(_0x19b100([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d2ec4=>{if(_0x2fe3ca())return _0x1d2ec4(_0x19b100([0x56,0x61,0x6c,0x69,0x64]));_0x2744a7(),_0x3266c3[_0x19b100([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x19b100([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b1b6c=!0x1;const _0x3e5aee=_0x50e613();function _0x321380(_0x4582ae){return!!_0x4582ae&&(typeof _0x4582ae===_0x19b100([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4582ae===_0x19b100([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4582ae[_0x19b100([0x74,0x68,0x65,0x6e])]===_0x19b100([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4582ae[_0x19b100([0x63,0x61,0x74,0x63,0x68])]===_0x19b100([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2597df(_0x4280ed){_0x86b31e(_0x4280ed)[_0x19b100([0x74,0x68,0x65,0x6e])](_0x2c2a5b=>{if(!_0x2c2a5b||_0x2c2a5b[_0x19b100([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x19b100([0x6f,0x6b]))return _0x19b100([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56762f(_0x57fa7a(_0x3e5aee+_0x4ba3b4))!=_0x2c2a5b[_0x19b100([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x19b100([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x19b100([0x56,0x61,0x6c,0x69,0x64]);})[_0x19b100([0x74,0x68,0x65,0x6e])](_0x5e9c06=>(_0x5af2e0(),_0x5e9c06),()=>{const _0x87cd07=_0x8088ef();return null==_0x87cd07?(_0x5af2e0(),_0x19b100([0x56,0x61,0x6c,0x69,0x64])):_0x19b100(_0x46735b-_0x87cd07>(0x685a3c57^_0x5dead0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x19b100([0x74,0x68,0x65,0x6e])](_0x1d2ec4)[_0x19b100([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d2ec4(_0x19b100([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x101c86=0x4c6056d7^_0x5dead0;function _0x5af2e0(){const _0x3a643b=_0x19b100([0x6c,0x6c,0x63,0x74,0x2d])+_0x56762f(_0x57fa7a(_0x5cfd36)),_0x28d8f7=_0xfedf2b(_0x56762f(window[_0x19b100([0x4d,0x61,0x74,0x68])][_0x19b100([0x63,0x65,0x69,0x6c])](_0x46735b/_0x101c86)));window[_0x19b100([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19b100([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a643b,_0x28d8f7);}function _0x8088ef(){const _0x38b806=_0x19b100([0x6c,0x6c,0x63,0x74,0x2d])+_0x56762f(_0x57fa7a(_0x5cfd36)),_0x1d4465=window[_0x19b100([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19b100([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38b806);return _0x1d4465?window[_0x19b100([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfedf2b(_0x1d4465),0x10)*_0x101c86:null;}function _0x86b31e(_0x56b794){return new window[(_0x19b100([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa418ac,_0x3210de)=>{_0x56b794[_0x19b100([0x74,0x68,0x65,0x6e])](_0xa418ac,_0x3210de),window[_0x19b100([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3210de,0x4c576c97^_0x5dead0);});}}_0x3266c3[_0x19b100([0x6f,0x6e])](_0x19b100([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ef66e,_0x18821f)=>{if(_0x18821f[0x0]!=_0x5cfd36)return _0x1d2ec4(_0x19b100([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18821f[0x1]={..._0x18821f[0x1],[_0x19b100([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e5aee};},{[_0x19b100([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19b100([0x68,0x69,0x67,0x68])}),_0x3266c3[_0x19b100([0x6f,0x6e])](_0x19b100([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x429633=>{_0x321380(_0x429633[_0x19b100([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b1b6c=!0x0,_0x2597df(_0x429633[_0x19b100([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x19b100([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19b100([0x6c,0x6f,0x77])}),_0xfd5c01[_0x19b100([0x74,0x68,0x65,0x6e])](()=>{_0x2b1b6c||_0x1d2ec4(_0x19b100([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2fe3ca(){return _0x3266c3[_0x19b100([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19b100([0x76,0x69,0x65,0x77])][_0x19b100([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x19b100([0x61,0x75,0x74,0x6f]);}function _0x2744a7(){_0x3266c3[_0x19b100([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19b100([0x76,0x69,0x65,0x77])][_0x19b100([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19b100([0x61,0x75,0x74,0x6f]);}}function _0x18f000(_0xa245ad){const _0x447fdd=[new window[(_0x19b100([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10c250=>setTimeout(_0x10c250,0x4c5f869b^_0x5dead0)),_0xfd5c01[_0x19b100([0x74,0x68,0x65,0x6e])](()=>new window[(_0x19b100([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x241020=>{const _0xf30f3f=0x4c56b850^_0x5dead0,_0x30bda0=_0x3ee139[_0x19b100([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4a606d(){_0x30bda0[_0x19b100([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xf30f3f&&_0x241020();}_0x4a606d(),_0x30bda0[_0x19b100([0x6f,0x6e])](_0x19b100([0x61,0x64,0x64]),_0x4a606d);})),new window[(_0x19b100([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x479bda=>{function _0xc6c849(){for(const _0x2e0042 in window)if(window[_0x19b100([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x19b100([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2e0042))&&window[_0x2e0042]==_0x1870d4)return _0x479bda();_0x3266c3[_0x19b100([0x73,0x74,0x61,0x74,0x65])]!=_0x19b100([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x19b100([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc6c849,0x4c56abdf^_0x5dead0);}_0x197c00(_0x19b100([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xc6c849();})];return window[_0x19b100([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19b100([0x72,0x61,0x63,0x65])](_0x447fdd)[_0x19b100([0x74,0x68,0x65,0x6e])](()=>_0xa245ad);}async function _0x5ef293(){if(await _0xfd5c01,_0x197c00(_0x19b100([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1a6f6a=_0x3ee139[_0x19b100([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5d670a=_0x3ee139[_0x19b100([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])](_0x1a6f6a[_0x19b100([0x69,0x64])]),_0x2e4fd1=_0x4dd5fa(_0x19b100([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2e4fd1[_0x19b100([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1a6f6a['id'],_0x5d670a?_0x5d670a['id']:null,!0x0),_0x2e4fd1[_0x19b100([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x19b100([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2e4fd1[_0x19b100([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2e4fd1[_0x19b100([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5d7d7f,void(_0x2e4fd1[_0x19b100([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5d7d7f);}if(_0x197c00(_0x19b100([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4d86b2=_0x4dd5fa(_0x19b100([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4d86b2[_0x19b100([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x19b100([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4d86b2[_0x19b100([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4d86b2[_0x19b100([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5d7d7f,_0x4d86b2[_0x19b100([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5d7d7f;}_0x3266c3[_0x19b100([0x6d,0x6f,0x64,0x65,0x6c])][_0x19b100([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7d7f,_0x3266c3[_0x19b100([0x6d,0x6f,0x64,0x65,0x6c])][_0x19b100([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7d7f,_0x3266c3[_0x19b100([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x19b100([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe4a02a(){return _0x197c00(_0x19b100([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4dd5fa(_0x19b100([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x19b100([0x73,0x74,0x61,0x74,0x65])]==_0x19b100([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2286c8(){return _0x197c00(_0x19b100([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 _0x5a4902(){return _0x197c00(_0x19b100([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x132c34(_0x2ae2df){const _0x356652=_0x584b6c();_0x3266c3[_0x356652]=_0x19b100([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])+_0x2ae2df,_0x2ae2df[_0x19b100([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x19b100([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x584b6c()]=_0x1870d4),_0x2ae2df!=_0x19b100([0x56,0x61,0x6c,0x69,0x64])&&_0x5ef293();}function _0x584b6c(){const _0xe85846=window[_0x19b100([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x19b100([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x19b100([0x6e,0x6f,0x77])]())[_0x19b100([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x19b100([0x2e]),'');let _0x17e9bd=_0x19b100([0x43]);for(let _0x14dc14=0x0;_0x14dc14<_0xe85846[_0x19b100([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14dc14+=0x2){let _0x4de805=window[_0x19b100([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe85846[_0x19b100([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14dc14,_0x14dc14+0x2));_0x4de805>=_0x491c81[_0x19b100([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4de805-=_0x491c81[_0x19b100([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17e9bd+=_0x491c81[_0x4de805];}return _0x17e9bd;}function _0x9ac8d0(){const _0x1f1461=_0x3285d7[_0x19b100([0x73,0x70,0x6c,0x69,0x74])](_0x19b100([0x2e]));if(0x3!=_0x1f1461[_0x19b100([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e806e(_0x1f1461[0x1]);function _0x5e806e(_0x48a4f8){const _0x5bfeb3=_0x32f81f(_0x48a4f8);return _0x5bfeb3&&_0x1ce097()?_0x5bfeb3:null;function _0x1ce097(){const _0x56594b=_0x5bfeb3[_0x19b100([0x6a,0x74,0x69])],_0x1b0c57=window[_0x19b100([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56594b[_0x19b100([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56594b[_0x19b100([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55c41d={..._0x5bfeb3,[_0x19b100([0x6a,0x74,0x69])]:_0x56594b[_0x19b100([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56594b[_0x19b100([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55c41d[_0x19b100([0x76,0x63])],_0x57fa7a(_0x55c41d)==_0x1b0c57;}}}async function _0x3f87f1(){let _0x4db653=!0x0;try{const _0x47d09c=_0x3285d7[_0x19b100([0x73,0x70,0x6c,0x69,0x74])](_0x19b100([0x2e])),[_0x34a5db,_0x44f82b,_0x420f60]=_0x47d09c;return _0x4266dc(_0x34a5db),await _0x589920(_0x34a5db,_0x44f82b,_0x420f60),_0x4db653;}catch(_0x507906){return!0x1;}function _0x4266dc(_0x21bcdb){const _0x50d46c=_0x32f81f(_0x21bcdb);_0x50d46c&&_0x50d46c[_0x19b100([0x61,0x6c,0x67])]==_0x19b100([0x45,0x53,0x32,0x35,0x36])||(_0x4db653=!0x1);}async function _0x589920(_0x4266b6,_0x1c9b26,_0x5fa6a7){const _0x4f6727=window[_0x19b100([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x19b100([0x66,0x72,0x6f,0x6d])](_0x4f835d(_0x5fa6a7),_0x201061=>_0x201061[_0x19b100([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36f333=new window[(_0x19b100([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x19b100([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4266b6+_0x19b100([0x2e])+_0x1c9b26),_0x136d01=window[_0x19b100([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x19b100([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x136d01)return;const _0x1eef55=await _0x136d01[_0x19b100([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x19b100([0x6a,0x77,0x6b]),_0x2fdf80,{[_0x19b100([0x6e,0x61,0x6d,0x65])]:_0x19b100([0x45,0x43,0x44,0x53,0x41]),[_0x19b100([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x19b100([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x19b100([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x136d01[_0x19b100([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x19b100([0x6e,0x61,0x6d,0x65])]:_0x19b100([0x45,0x43,0x44,0x53,0x41]),[_0x19b100([0x68,0x61,0x73,0x68])]:{[_0x19b100([0x6e,0x61,0x6d,0x65])]:_0x19b100([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1eef55,_0x4f6727,_0x36f333)||(_0x4db653=!0x1);}}function _0x32f81f(_0x1f7c61){return _0x1f7c61[_0x19b100([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x19b100([0x65,0x79]))?JSON[_0x19b100([0x70,0x61,0x72,0x73,0x65])](_0x4f835d(_0x1f7c61)):null;}function _0x4f835d(_0x165779){return window[_0x19b100([0x61,0x74,0x6f,0x62])](_0x165779[_0x19b100([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x19b100([0x2b]))[_0x19b100([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x19b100([0x2f])));}function _0x57fa7a(_0x36293c){let _0x5d6b38=0x1505;function _0x55bbf8(_0x5ac082){for(let _0x4ca3cd=0x0;_0x4ca3cd<_0x5ac082[_0x19b100([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ca3cd++){const _0x400b4e=_0x5ac082[_0x19b100([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ca3cd);_0x5d6b38=(_0x5d6b38<<0x5)+_0x5d6b38+_0x400b4e,_0x5d6b38&=_0x5d6b38;}}function _0x48bf25(_0x143f6f){Array[_0x19b100([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x143f6f)?_0x143f6f[_0x19b100([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48bf25):_0x143f6f&&typeof _0x143f6f==_0x19b100([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x19b100([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x143f6f)[_0x19b100([0x73,0x6f,0x72,0x74])]()[_0x19b100([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x414f9a,_0x4e12d6])=>{_0x55bbf8(_0x414f9a),_0x48bf25(_0x4e12d6);}):_0x55bbf8(window[_0x19b100([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x143f6f));}return _0x48bf25(_0x36293c),_0x5d6b38>>>0x0;}function _0x56762f(_0xf8f899){return _0xf8f899[_0x19b100([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x19b100([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x19b100([0x30]));}function _0xfedf2b(_0x3fd5c0){return _0x3fd5c0[_0x19b100([0x73,0x70,0x6c,0x69,0x74])]('')[_0x19b100([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x19b100([0x6a,0x6f,0x69,0x6e])]('');}function _0x197c00(_0x5ab50a){return _0x3266c3[_0x19b100([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x19b100([0x68,0x61,0x73])](_0x5ab50a);}function _0x4dd5fa(_0x8f774f){return _0x3266c3[_0x19b100([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x19b100([0x67,0x65,0x74])](_0x8f774f);}function _0x5d7d7f(){}function _0x19b100(_0x461483){return _0x461483['map'](_0x37d288=>String['fromCharCode'](_0x37d288))['join']('');}_0x132c34(await _0x1c62c0());}(this);}['createRevision'](_0x3c53c7){const _0x9a3292=this['editor']['plugins']['get']('Users');return new a({'id':_0x3c53c7['id'],'name':_0x3c53c7['name'],'creator':_0x3c53c7['creatorId']?_0x9a3292['getUser'](_0x3c53c7['creatorId']):null,'diffData':_0x3c53c7['diffData']||_0x3c53c7['data'],'authors':_0x3c53c7['authorsIds']['map'](_0x3ded04=>_0x9a3292['getUser'](_0x3ded04)),'createdAt':new Date(_0x3c53c7['createdAt']),'attributes':_0x3c53c7['attributes'],'fromVersion':_0x3c53c7['fromVersion'],'toVersion':_0x3c53c7['toVersion']});}['addRevision'](_0x2b06e5,_0x22b2e4=0x0){this['_revisions']['add'](_0x2b06e5,_0x22b2e4);}['getRevision'](_0x59a40c){return this['_revisions']['get'](_0x59a40c);}['getRevisions'](_0x2b59f1={'toJSON':!0x1}){const _0x165445=Array['from'](this['_revisions']);return _0x165445['reverse'](),_0x2b59f1['toJSON']?_0x165445['map'](_0x53f05d=>_0x53f05d['toJSON']()):_0x165445;}['getIndex'](_0x352429){return this['_revisions']['getIndex'](_0x352429);}['getEarlierVisibleRevision'](_0x507177){const [,_0x5790e6]=this['getRevisionsIterator'](_0x507177,{'direction':'earlier'});return _0x5790e6;}['getLaterVisibleRevision'](_0x3f5308){const [,_0x2f99f8]=this['getRevisionsIterator'](_0x3f5308,{'direction':'later'});return _0x2f99f8;}['getRevisionsInDiff'](_0x485171){const _0x209100=[];for(const _0x4cda3a of this['getRevisionsIterator'](_0x485171['newRevisionId']))if(_0x209100['push'](_0x4cda3a),_0x4cda3a['id']===_0x485171['oldRevisionId'])break;return _0x209100;}*['getRevisionsIterator'](_0x50ae0e,{direction:_0x273869='earlier',filter:_0x5e3725=()=>!0x0}={}){const _0x2ebc9b='earlier'===_0x273869?0x1:-0x1;let _0x376ea1=this['_revisions']['get'](_0x50ae0e),_0xf794e5=this['getIndex'](_0x376ea1);for(yield _0x376ea1;_0x376ea1;){if(_0xf794e5+=_0x2ebc9b,_0x376ea1=this['getRevision'](_0xf794e5),!_0x376ea1)return;_0x5e3725(_0x376ea1)&&(yield _0x376ea1);}}}function m(_0x9ff278,_0x148e2b,_0x5a01d3){const t=_0x9ff278['t'];switch(_0x148e2b){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'},_0x5a01d3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a01d3);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 P={'c':_0x344d68,'a':_0x7f5663,'e':_0x58d5cf,'r':_0x27e757,'u':_0x509c82};class l extends _0x7756cd{['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[_0x4ac02a,j,_0x40074b];}constructor(_0x17aa72){super(_0x17aa72),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x53dc00=_0x50e613();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x53dc00},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 _0x33b8d0=this['repository']['getRevision'](0x0),_0x57dc2f=_0x33b8d0&&null===_0x33b8d0['creator']?_0x33b8d0:null;if(this['_continueCurrentRevision']=!!_0x57dc2f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x589fa2=this['_source']['getCurrentRevisionId'](),_0x5491a2=this['repository']['getRevision'](_0x589fa2);if(_0x5491a2)this['_startingVersion']=_0x5491a2['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1620a9=this['_source']['history']['_operations']['find'](_0x5ca81c=>!_0x5ca81c['_isInit']),_0x9aa246=_0x1620a9?_0x1620a9['baseVersion']:this['_source']['history']['version'];_0x33b8d0?(_0x33b8d0['toVersion']<_0x9aa246&&_0x33b8d0['_update']({'toVersion':_0x9aa246}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x57dc2f['id'],this['_startingVersion']=_0x57dc2f['fromVersion']):(this['_startingVersion']=_0x33b8d0['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x9aa246,this['_continueCurrentRevision']=!0x1);}}else _0x57dc2f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x57dc2f['toVersion'],this['editor']['model']['document']['history']['version']),_0x57dc2f['fromVersion']===_0x57dc2f['toVersion']?(0x0!==_0x57dc2f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x57dc2f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x57dc2f['id'],this['_startingVersion']=_0x57dc2f['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',_0x9aedc5=>!_0x9aedc5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c8eb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd26545;for(const _0x23c66d in _0x4c8eb8){const _0x53bcbb=_0x23c66d,_0x574c8b=_0x4c8eb8[_0x53bcbb];if('revisionHistoryLicenseKeyValid'==_0x574c8b||'revisionHistoryLicenseKeyInvalid'==_0x574c8b||'revisionHistoryLicenseKeyExpired'==_0x574c8b||'revisionHistoryLicenseKeyDomainLimit'==_0x574c8b||'revisionHistoryLicenseKeyNotAllowed'==_0x574c8b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x574c8b||'revisionHistoryLicenseKeyTrialLimit'==_0x574c8b||'revisionHistoryLicenseKeyUsageLimit'==_0x574c8b){delete _0x4c8eb8[_0x53bcbb],_0xd26545=_0x574c8b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xd26545&&_0x4c8eb8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xd26545&&_0x4c8eb8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xd26545&&_0x4c8eb8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xd26545&&_0x4c8eb8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xd26545&&_0x4c8eb8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xd26545&&_0x4c8eb8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xd26545&&_0x4c8eb8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x7257b=this['repository']['getRevision'](0x0),_0x29fd2d=await this['getRevisionDocumentData'](_0x7257b),_0x849caf=await this['getRevisionRootsAttributes'](_0x7257b);this['_replaceEditorDataWithRevisionData'](_0x29fd2d,_0x849caf);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5f204d){this['_source']=_0x5f204d;}async['update'](){const _0x290da9=await this['_source']['getLatestVersion']();if(_0x290da9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x57caed=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x290da9});_0x57caed['authors']=_0x57caed['authorsIds']['map'](_0x21796e=>this['editor']['plugins']['get']('Users')['getUser'](_0x21796e)),this['currentRevision']['_update'](_0x57caed);}}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'](_0x3bc2cb={},_0x73bd2b=null){const _0x49b9c7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x73bd2b>this['currentRevision']['toVersion']&&(_0x73bd2b=null),null===_0x73bd2b&&(_0x73bd2b=await this['_source']['getLatestVersion']());const _0x474007=this['_getFromVersion'](_0x73bd2b),_0x364aed=this['buildRevisionData']({'from':_0x474007,'to':_0x73bd2b});if(this['currentRevision']['toVersion']<_0x73bd2b){const _0xb6a6ac=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x73bd2b,'to':_0x73bd2b});_0xb6a6ac['authors']=[],_0xb6a6ac['authorsIds']=[],_0xb6a6ac['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xb6a6ac,!0x0),delete _0xb6a6ac['authors'],_0x49b9c7['push'](_0xb6a6ac);}_0x3bc2cb['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3bc2cb['name']=_0x3bc2cb['name']||null,_0x3bc2cb['id']=_0x3bc2cb['id']||_0x50e613(),_0x3bc2cb={..._0x3bc2cb,..._0x364aed};const _0x11105c=this['addRevisionData'](_0x3bc2cb);_0x49b9c7['push'](_0x3bc2cb);const _0x16ffbb=this['repository']['getIndex'](_0x11105c);if(0x0!==_0x16ffbb){const _0x27caea=this['repository']['getRevision'](_0x16ffbb-0x1);if(_0x27caea['fromVersion']!==_0x73bd2b){const _0x346fc1=this['_revisionDataBuilder']['getData'](_0x73bd2b,_0x27caea['toVersion']),_0x39b7f0={'id':_0x27caea['id'],'diffData':_0x346fc1['diffData'],'authorsIds':_0x346fc1['authorsIds'],'authors':_0x346fc1['authorsIds']['map'](_0x46b0f0=>this['editor']['plugins']['get']('Users')['getUser'](_0x46b0f0)),'fromVersion':_0x73bd2b};_0x27caea===this['currentRevision']&&(_0x39b7f0['createdAt']=new Date(_0x3bc2cb['createdAt']['getTime']()+0xa)),_0x27caea['_update'](_0x39b7f0,!0x0),delete _0x39b7f0['authors'],_0x49b9c7['push'](_0x39b7f0);}}if(this['adapter']){for(const _0x43fec9 of _0x49b9c7)this['_bufferUpdate'](_0x43fec9['id'],_0x43fec9,!0x0);this['sendBufferedUpdates']();}return _0x11105c;}['addRevisionData'](_0x1732fe){const _0x5c2cef=this['repository']['createRevision'](_0x1732fe);return this['adapter']&&_0x5c2cef['on']('_update',(_0x82b3eb,_0x2bc3f0,_0x5ad724)=>{_0x5ad724||(this['_bufferUpdate'](_0x2bc3f0['id'],_0x2bc3f0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c2cef,this['_findInsertionIndex'](_0x5c2cef)),_0x5c2cef;}async['getRevisionDocumentData'](_0x854b8b){await this['_loadRevisionData'](_0x854b8b);const _0x23fc0c={};for(const _0x39546c in _0x854b8b['diffData']){if(_0x854b8b['diffData'][_0x39546c]['attachChange']&&!_0x854b8b['diffData'][_0x39546c]['attachChange']['isAttached'])continue;const _0x11b422=this['_removeRevisionMarkers'](JSON['parse'](_0x854b8b['diffData'][_0x39546c]['insertions'])),_0x1eb6b3=this['editor']['editing']['view']['document'],_0x5e2cda=new _0x3687a9(_0x1eb6b3,_0x11b422['map'](_0x5f5d78=>C(_0x5f5d78,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x23fc0c[_0x39546c]=this['editor']['data']['processor']['toData'](_0x5e2cda),this['editor']['data']['processor']['useFillerType']('default');}return _0x23fc0c;}async['getRevisionRootsAttributes'](_0x43dbca){await this['_loadRevisionData'](_0x43dbca);const _0x477fb7={};for(const _0x3933db in _0x43dbca['diffData'])_0x43dbca['diffData'][_0x3933db]['attachChange']&&!_0x43dbca['diffData'][_0x3933db]['attachChange']['isAttached']||(_0x477fb7[_0x3933db]=_0x43dbca['diffData'][_0x3933db]['attributesAfter']||{});return _0x477fb7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1dd45e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3d5491=0x0;_0x3d5491<_0x1dd45e['length'];_0x3d5491++){const _0xc8d119=_0x1dd45e[_0x3d5491];let _0x4ef2c2=!0x1;for(const _0x4a7700 of Object['keys'](_0xc8d119))void 0x0===_0xc8d119[_0x4a7700]?delete _0xc8d119[_0x4a7700]:'id'!==_0x4a7700&&(_0x4ef2c2=!0x0);_0x4ef2c2||(_0x1dd45e[_0x3d5491]=null);}if(_0x1dd45e=_0x1dd45e['filter'](_0x2ad302=>null!==_0x2ad302),!_0x1dd45e['length'])return;for(let _0x53c094=0x0;_0x53c094<_0x1dd45e['length'];_0x53c094++){const _0x2a2a3c=_0x1dd45e[_0x53c094];void 0x0!==_0x2a2a3c['fromVersion']&&void 0x0===_0x2a2a3c['toVersion']&&(_0x2a2a3c['toVersion']=this['repository']['getRevision'](_0x2a2a3c['id'])['toVersion']),void 0x0!==_0x2a2a3c['toVersion']&&void 0x0===_0x2a2a3c['fromVersion']&&(_0x2a2a3c['fromVersion']=this['repository']['getRevision'](_0x2a2a3c['id'])['fromVersion']);}const _0x53d608=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1dd45e,_0x53d608)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x543dc0=>{if(_0x543dc0){for(const _0x3aaaf2 of _0x543dc0)this['setRevisionData']({'id':_0x3aaaf2['id'],'createdAt':_0x3aaaf2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x45ef7e,_0x59cbce){let _0x1f9856=this['editor']['config']['get']('initialData'),_0x4cf378=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1f9856){_0x1f9856={};for(const _0x21f35e of this['editor']['model']['document']['getRootNames']())_0x1f9856[_0x21f35e]='';}if('string'==typeof _0x1f9856&&(_0x1f9856={'main':_0x1f9856}),void 0x0===_0x4cf378){_0x4cf378={};for(const _0x3a1090 of this['editor']['model']['document']['getRootNames']())_0x4cf378[_0x3a1090]={};}let _0x3172b1=!0x1;const _0x24a929=Object['keys'](_0x1f9856),_0x4dc37d=Object['keys'](_0x45ef7e);for(const _0x3aacbc of _0x24a929){if(_0x1f9856[_0x3aacbc]!==_0x45ef7e[_0x3aacbc]&&''!==_0x1f9856[_0x3aacbc]['trim']()){_0x3172b1=!0x0;break;}if(!_0x504e9c(_0x4cf378[_0x3aacbc],_0x59cbce[_0x3aacbc])&&Object['keys'](_0x4cf378[_0x3aacbc])['length']>0x0){_0x3172b1=!0x0;break;}}_0x3172b1||(_0x3172b1=_0x4dc37d['some'](_0x4e0374=>!this['editor']['model']['document']['getRoot'](_0x4e0374))),_0x3172b1&&_0x4d2d80('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1f9856,'editorRootsAttributes':_0x4cf378,'revisionData':_0x45ef7e,'revisionRootsAttributes':_0x59cbce}),this['editor']['config']['set']('initialData',_0x45ef7e),this['editor']['config']['set']('rootsAttributes',_0x59cbce);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x29be2c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x29be2c['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5ca8d4){const _0x4ab3cc=this['repository']['getRevisions']();_0x4ab3cc['reverse']();let _0x2621a7=0x0;for(;_0x2621a7<_0x4ab3cc['length'];){const _0x16a551=_0x4ab3cc[_0x2621a7];if(_0x16a551===this['currentRevision']){_0x2621a7++;continue;}if(_0x16a551['id']===this['_initialRevisionId'])break;const _0x18d802=_0x5ca8d4['toVersion']-_0x16a551['toVersion']||_0x5ca8d4['fromVersion']-_0x16a551['fromVersion'];if(_0x18d802>0x0)break;if(_0x18d802<0x0)_0x2621a7++;else{if(!_0x5ca8d4['creator']&&_0x16a551['creator'])break;if(_0x16a551['creator']||!_0x5ca8d4['creator']){if(_0x5ca8d4['createdAt']>_0x16a551['createdAt'])break;_0x2621a7++;}else _0x2621a7++;}}return _0x2621a7;}['setRevisionData'](_0xd85dd1){const _0x45eaa6=this['repository']['getRevision'](_0xd85dd1['id']);if(_0xd85dd1['createdAt']&&(_0xd85dd1['createdAt']=new Date(_0xd85dd1['createdAt'])),_0xd85dd1['authorsIds']){const _0x39be24=this['editor']['plugins']['get']('Users');_0xd85dd1['authors']=_0xd85dd1['authorsIds']['map'](_0x7be7d=>_0x39be24['getUser'](_0x7be7d));}_0x45eaa6['_update'](_0xd85dd1,!0x0);}['buildRevisionData']({revision:_0x3cb75a=null,from:_0x26cea4=null,to:_0x17b89e=null}){_0x26cea4=null!==_0x26cea4?_0x26cea4:_0x3cb75a['fromVersion'],_0x17b89e=null!==_0x17b89e?_0x17b89e:_0x3cb75a['toVersion'];const _0x39c246=this['_revisionDataBuilder']['getData'](_0x26cea4,_0x17b89e),_0x169fed={'diffData':_0x39c246['diffData'],'authorsIds':_0x39c246['authorsIds'],'fromVersion':_0x26cea4,'toVersion':_0x17b89e};if(!_0x3cb75a||_0x17b89e!==_0x3cb75a['toVersion']){const _0x291afe=_0x17b89e-0x1,_0x218e60=this['_source']['history']['getOperation'](_0x291afe);_0x169fed['createdAt']=_0x218e60&&_0x218e60['createdAt']||new Date();}if(this['_loadedStateData']&&_0x26cea4===this['_loadedStateData']['fromVersion']){for(const _0x121a91 of this['_loadedStateData']['authors'])_0x169fed['authorsIds']['includes'](_0x121a91['id'])||_0x169fed['authorsIds']['push'](_0x121a91['id']);}return _0x169fed;}['_loadRevisionData'](_0x39f696){if(!_0x39f696||_0x39f696['diffData'])return Promise['resolve']();{const _0x3a5202=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3a5202,'revisionId':_0x39f696['id']})['then'](_0x4b3119=>{_0x39f696['diffData']=_0x4b3119['diffData'];});}}['_bufferUpdate'](_0x414721,_0x41adea,_0x495a1d){if(this['_bufferedUpdates']['has'](_0x414721)){const _0x3571dc=this['_bufferedUpdates']['get'](_0x414721);_0x41adea=_0x495a1d?{..._0x3571dc,..._0x41adea}:{..._0x41adea,..._0x3571dc};}this['_bufferedUpdates']['set'](_0x414721,_0x41adea);}['_getFromVersion'](_0x37e13e){const _0x191d93=this['repository']['getRevisions']();_0x191d93['reverse'](),_0x191d93['shift']();const _0x21eff3=_0x191d93['find'](_0x845388=>_0x845388['toVersion']<=_0x37e13e)['toVersion'];return _0x21eff3<this['_startingVersion']?this['_startingVersion']:_0x21eff3;}['_createInitialRevision'](_0x13c80e){const _0x408853=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x408853)this['_initialRevisionId']=_0x408853['id'];else{const _0x3499d6=!this['editor']['model']['document']['roots']['find'](_0x3e80ad=>this['editor']['model']['hasContent'](_0x3e80ad)),_0x1d0431=this['editor']['plugins']['get']('Users')['me']['id'],_0x2af6f0=m(this['editor']['locale'],_0x3499d6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x13c80e,'to':_0x13c80e,'id':this['_initialRevisionId'],'name':_0x2af6f0,'creatorId':_0x1d0431});}}['_createCurrentRevision'](_0xce482b){const _0x5942d0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5942d0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xce482b,'to':_0xce482b,'id':_0x5942d0,'name':'','creatorId':null}));}['_makeRevision']({name:_0xd91d56,from:_0x45e466,to:_0x310b32,creatorId:_0x30ae91,id:_0x3f4dc6}){const _0x5b53e6=this['buildRevisionData']({'from':_0x45e466,'to':_0x310b32});_0x5b53e6['name']=_0xd91d56,_0x5b53e6['creatorId']=_0x30ae91,_0x5b53e6['id']=_0x3f4dc6;const _0x347797=this['addRevisionData'](_0x5b53e6);return this['adapter']&&this['_bufferUpdate'](_0x5b53e6['id'],_0x5b53e6,!0x0),_0x347797;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x38cdc9){return(_0x38cdc9=_0x38cdc9['filter'](_0xa94848=>!_0xa94848['name']||'revision-start'!==_0xa94848['name']&&'revision-end'!==_0xa94848['name']))['forEach'](_0x195716=>{'string'!=typeof _0x195716&&(_0x195716['children']=this['_removeRevisionMarkers'](_0x195716['children']),_0x195716['attributes']=_0x195716['attributes']['filter'](_0x151d87=>!_0x151d87[0x0]['startsWith']('data-revision-')));}),_0x38cdc9;}}function C(_0x210f6e,_0x6201d6){const _0x1c971a=_0x6201d6['editing']['view']['document'];if('string'==typeof _0x210f6e)return new _0x198ef8(_0x1c971a,_0x210f6e);{const _0x5c43b8=_0x210f6e['children']['map'](_0x428f12=>C(_0x428f12,_0x6201d6));return new(P[_0x210f6e['type']]||_0x5dff6b)(_0x1c971a,_0x210f6e['name'],_0x210f6e['attributes'],_0x5c43b8);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x30d15c){this['editor']=_0x30d15c,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'](_0x53c4e5){this['source']=_0x53c4e5;const _0x154348=new Map(),_0x1c5eca=new Map(),_0x4466cf=this['editor']['model']['document']['roots']['map'](_0xbf60a3=>_0xbf60a3['rootName']);for(const _0x4387a4 of _0x4466cf){const _0x531382=this['editor']['model']['document']['getRoot'](_0x4387a4),_0x5ce274=T(_0x531382);_0x154348['set'](_0x4387a4,_0x5ce274),_0x1c5eca['set'](_0x4387a4,Object['fromEntries'](_0x531382['getAttributes']()));}const _0x37d00e=Array['from'](this['editor']['model']['markers'])['map'](_0x56cbb2=>[_0x56cbb2['name'],_0x56cbb2['getRange']()]),_0xd76e60=this['source']['version'];this['_saveMetaData'](_0xd76e60,_0x154348,_0x37d00e,_0x1c5eca),this['_startingRevisionId']=this['_revisionId'];const _0x2a6642=new Map(),_0x238ab9=new Map();for(const _0x1e25d0 of _0x4466cf){const _0x1afb36=F(_0x1e25d0);_0x2a6642['set'](_0x1e25d0,_0x1afb36),_0x238ab9['set'](_0x1e25d0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2a6642,[],_0x238ab9);}['getData'](_0x4b4b54,_0x58b3b5){if(this['_lastFrom']===_0x4b4b54&&this['_lastTo']<=_0x58b3b5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x58b3b5,!0x0);else{if(!this['_savedMetaData']['has'](_0x4b4b54)){const _0x3fa292=this['_getPreviousFrom'](_0x4b4b54);this['_calculateMetaData'](_0x3fa292,_0x4b4b54,!0x1);}this['_calculateMetaData'](_0x4b4b54,_0x58b3b5,!0x0);}return this['_lastFrom']=_0x4b4b54,this['_lastTo']=_0x58b3b5,this['_getState']();}['loadState'](_0x1fa6c9){this['_reset'](),this['_lastFrom']=_0x1fa6c9['fromVersion'],this['_lastTo']=_0x1fa6c9['toVersion'];for(const _0x40e69a in _0x1fa6c9['diffData']){const _0x475d48=_0x1fa6c9['diffData'][_0x40e69a]['attachChange'],_0x3ac5c4=_0x508619(_0x1fa6c9['diffData'][_0x40e69a]['attributesBefore'])||{},_0xf43153=this['_makeModelFromViewString'](_0x1fa6c9['diffData'][_0x40e69a]['deletions']);_0xf43153['rootName']=_0x40e69a,_0xf43153['_isAttached']=!_0x475d48||!_0x475d48['isAttached'],_0xf43153['isAttached']=()=>_0xf43153['_isAttached'],this['_baseRoots']['set'](_0x40e69a,_0xf43153),this['_baseRootsAttributes']['set'](_0x40e69a,_0x3ac5c4),_0x475d48&&this['_touchedRoots']['set'](_0x40e69a,_0x475d48);const _0x278ab6=this['_makeIdsRoot'](_0xf43153);this['_baseIdsRoots']['set'](_0x40e69a,_0x278ab6);for(const [_0x2ab0a5,_0x4967ca]of _0xf43153['markers']){if(!_0x2ab0a5['startsWith']('revision:'))continue;const _0x1a06aa=_0x2ab0a5['split'](':')[0x2];for(const _0xef3bcb of _0x4967ca['getWalker']({'singleCharacters':!0x0})){const _0x2dd605=this['_getVidAttributeName'](_0xef3bcb),_0x29835b='elementEnd'==_0xef3bcb['type']?_0xef3bcb['previousPosition']['path']['slice'](0x0,-0x1):_0xef3bcb['previousPosition']['path'],_0x3cff81=_0x278ab6['getNodeByPath'](_0x29835b)['getAttribute'](_0x2dd605);this['_touched']['set'](_0x3cff81,{'userId':_0x1a06aa});}}}this['_startingRevisionId']=this['_revisionId'];const _0xbf8234=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x9ce0bc=>!this['_touched']['has'](_0x9ce0bc));let _0x53f17a=0x0;const _0x1956ac=new Map();for(const _0x95422f in _0x1fa6c9['diffData']){const _0x396589=_0x1fa6c9['diffData'][_0x95422f]['attachChange'],_0x338453=_0x508619(_0x1fa6c9['diffData'][_0x95422f]['attributesAfter'])||{},_0x3905f1=this['_makeModelFromViewString'](_0x1fa6c9['diffData'][_0x95422f]['insertions']);_0x3905f1['rootName']=_0x95422f,_0x3905f1['_isAttached']=!_0x396589||_0x396589['isAttached'],_0x3905f1['isAttached']=()=>_0x3905f1['_isAttached'],this['_diffRoots']['set'](_0x95422f,_0x3905f1),this['_diffRootsAttributes']['set'](_0x95422f,_0x338453);const _0x579df6=this['_makeIdsRoot'](_0x3905f1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x95422f,_0x579df6),_0x1956ac['set'](_0x95422f,_0x3905f1['isAttached']()?_0x338453:{});for(const [_0x2ba58a,_0xce0270]of _0x3905f1['markers']){if(!_0x2ba58a['startsWith']('revision:'))continue;const _0xc9d053=_0x2ba58a['split'](':')[0x2];for(const _0x433b00 of _0xce0270['getWalker']({'singleCharacters':!0x0})){const _0x2ed683=this['_getVidAttributeName'](_0x433b00),_0x5d2115=this['_revisionId']++,_0xce78fe='elementEnd'==_0x433b00['type']?_0x433b00['previousPosition']['path']['slice'](0x0,-0x1):_0x433b00['previousPosition']['path'];_0x579df6['getNodeByPath'](_0xce78fe)['_setAttribute'](_0x2ed683,_0x5d2115),this['_touched']['set'](_0x5d2115,{'userId':_0xc9d053});}}for(const _0x48da62 of this['editor']['model']['createRangeIn'](_0x3905f1)['getWalker']({'singleCharacters':!0x0})){const _0x20569d=this['_getVidAttributeName'](_0x48da62),_0x4660fc='elementEnd'==_0x48da62['type']?_0x48da62['previousPosition']['path']['slice'](0x0,-0x1):_0x48da62['previousPosition']['path'],_0x199612=_0x579df6['getNodeByPath'](_0x4660fc);_0x199612['getAttribute'](_0x20569d)>0x0||_0x199612['_setAttribute'](_0x20569d,_0xbf8234[_0x53f17a++]);}for(const [_0xfea06,_0x462064]of _0x3905f1['markers'])_0xfea06['startsWith']('revision:')||this['_markers']['set'](_0xfea06,_0x462064);}const _0xaf0104=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0xaf0104),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xaf0104,0x1));const _0x5f4d8c=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5f4d8c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5f4d8c,0x1));const _0x41b3ad=Array['from'](this['_diffRoots'])['map'](([_0x5e757e,_0x483c64])=>[_0x5e757e,T(_0x483c64)]);this['_saveMetaData'](this['_lastTo'],_0x41b3ad,this['_markers'],_0x1956ac);}['_makeModelFromViewString'](_0x20250a){const _0x26576d=JSON['parse'](_0x20250a),_0x90924=this['editor']['editing']['view']['document'],_0x3a04f6=new _0x3687a9(_0x90924,_0x26576d['map'](_0x532223=>C(_0x532223,this['editor'])));return this['editor']['data']['toModel'](_0x3a04f6);}['_saveMetaData'](_0x386300,_0x492757,_0x1c45fe,_0x4417c1){const _0x2cf1da=new Map(_0x492757),_0x4ea67f=new Map(_0x508619(_0x4417c1)),_0x36d447=new Map();for(const [_0x46df82,_0x205d10]of _0x1c45fe)_0x36d447['set'](_0x46df82,{'start':_0x205d10['start']['clone'](),'end':_0x205d10['end']['clone'](),'rootName':_0x205d10['root']['rootName']});this['_savedMetaData']['set'](_0x386300,{'roots':_0x2cf1da,'markers':_0x36d447,'rootsAttributes':_0x4ea67f});}['_removeMetaData'](_0x3ab6cd){this['_savedMetaData']['delete'](_0x3ab6cd);}['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'](_0x4091b2,_0x44bed8=null){let _0x279a6f=null;_0x4091b2['is']('documentFragment')||(_0x279a6f=new ft(_0x4091b2['name'],{'vid_start':null===_0x44bed8?this['_revisionId']++:_0x44bed8++}));const _0x2c9a20=[];for(const _0xc7109e of _0x4091b2['getChildren']())if(_0xc7109e['is']('element')){_0x2c9a20['push'](this['_makeIdsRoot'](_0xc7109e,_0x44bed8));const _0x77d24e=_0x2c9a20[_0x2c9a20['length']-0x1];null!==_0x44bed8&&(_0x44bed8=_0x77d24e['is']('element','$text')?_0x77d24e['getAttribute']('vid')+0x1:_0x77d24e['getAttribute']('vid_end')+0x1);}else{for(let _0x91fd81=0x0;_0x91fd81<_0xc7109e['offsetSize'];_0x91fd81++)_0x2c9a20['push'](new ft('$text',{'vid':null===_0x44bed8?this['_revisionId']++:_0x44bed8++}));}if(_0x4091b2['is']('documentFragment')){const _0x3692d8=F(_0x4091b2['rootName']);return _0x3692d8['_insertChild'](0x0,_0x2c9a20),_0x3692d8;}return _0x279a6f['_setAttribute']('vid_end',null===_0x44bed8?this['_revisionId']++:_0x44bed8++),_0x279a6f['_insertChild'](0x0,_0x2c9a20),_0x279a6f;}['_calculateMetaData'](_0x1535fb,_0x142278,_0x42efc2){this['_reset']();const {roots:_0x45f4f3,markers:_0x36f007,rootsAttributes:_0x4cf933}=this['_savedMetaData']['get'](_0x1535fb);this['_baseRoots']=new Map(_0x45f4f3),this['_baseRootsAttributes']=new Map(_0x508619(_0x4cf933));for(const [_0xba485f,_0x1394ba]of this['_baseRoots'])if('$graveyard'!==_0xba485f&&(this['_diffRoots']['set'](_0xba485f,T(_0x1394ba)),this['_diffRootsAttributes']=new Map(_0x508619(_0x4cf933)),_0x42efc2)){const _0x52d665=this['_revisionId'];this['_idsRoots']['set'](_0xba485f,this['_makeIdsRoot'](_0x1394ba)),this['_baseIdsRoots']['set'](_0xba485f,this['_makeIdsRoot'](_0x1394ba,_0x52d665));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x42efc2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x10959b,_0x2ee6a0]of _0x36f007){const _0x28b83a=this['_baseRoots']['get'](_0x2ee6a0['rootName']),_0x204387=this['_diffRoots']['get'](_0x2ee6a0['rootName']),_0x550d9f=new vt(this['_fixPosition'](_0x2ee6a0['start'],_0x28b83a),this['_fixPosition'](_0x2ee6a0['end'],_0x28b83a)),_0x19bca6=this['_fixRange'](_0x550d9f,_0x204387);_0x28b83a['markers']['set'](_0x10959b,_0x550d9f),this['_markers']['set'](_0x10959b,_0x19bca6);}this['_applyOperations'](_0x1535fb,_0x142278,_0x42efc2);}['_applyOperations'](_0x3b9e31,_0x414c31,_0x2915c8){for(const _0x3e68ef of this['source']['getOperations'](_0x3b9e31,_0x414c31))this['_handleOperation'](_0x3e68ef,_0x2915c8);for(const _0x2145e6 of this['_diffRoots']['values']())_0x2145e6['markers']['clear']();for(const [_0x2d3660,_0x2be959]of this['_markers']){this['_diffRoots']['get'](_0x2be959['root']['rootName'])['markers']['set'](_0x2d3660,_0x2be959['clone']());}const _0x25c4a5=new Map(),_0x938701=new Map();for(const [_0x2b00d4,_0x42d869]of this['_diffRoots'])_0x25c4a5['set'](_0x2b00d4,T(_0x42d869)),_0x938701['set'](_0x2b00d4,this['_diffRootsAttributes']['get'](_0x2b00d4));this['_saveMetaData'](_0x414c31,_0x25c4a5,this['_markers'],_0x938701);}['_getPreviousFrom'](_0x5e568a){const _0x1b5786=Array['from'](this['_savedMetaData']['keys']());_0x1b5786['sort']((_0x504625,_0x2a3712)=>_0x504625-_0x2a3712),_0x1b5786['reverse']();for(const _0x5cd18c of _0x1b5786)if(_0x5cd18c<_0x5e568a)return _0x5cd18c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x30ceaa,_0x17d4aa){const _0x5f24aa=Array['from'](_0x17d4aa['markers'])['map'](([_0x1b0a39,_0x337371])=>[_0x1b0a39,this['_fixRange'](_0x337371,_0x30ceaa)]);_0x30ceaa['markers']=new Map(_0x5f24aa);}['_transformMarkers'](_0x4cf2f0){for(const _0xb8fc72 of this['_markers']['values']()){const _0xea9bcd=_0xb8fc72['getTransformedByOperation'](_0x4cf2f0),_0x5d12c2=vt['_createFromRanges'](_0xea9bcd);_0xb8fc72['start']=_0x5d12c2['start'],_0xb8fc72['end']=_0x5d12c2['end'];}}['_handleOperation'](_0x2b6c57,_0x99182b){if('addRoot'!=_0x2b6c57['type']&&'detachRoot'!=_0x2b6c57['type']){if('insert'==_0x2b6c57['type']){const _0x280fe8=_0x2b6c57['position']['root']['rootName'];this['_diffRoots']['has'](_0x280fe8)||(this['_diffRoots']['set'](_0x280fe8,F(_0x280fe8,!0x0)),this['_diffRootsAttributes']['set'](_0x280fe8,{}),_0x99182b&&this['_idsRoots']['set'](_0x280fe8,F(_0x280fe8,!0x0)));}else{if('addRootAttribute'==_0x2b6c57['type']||'removeRootAttribute'==_0x2b6c57['type']||'changeRootAttribute'==_0x2b6c57['type'])return void this['_handleRootAttributeOperation'](_0x2b6c57);'marker'==_0x2b6c57['type']&&this['_handleMarkerOperation'](_0x2b6c57);}if('marker'!==_0x2b6c57['type']){const _0x1e9360=this['_cloneOperation'](_0x2b6c57,this['_diffRoots']);_0x1e9360['_execute'](),this['_transformMarkers'](_0x1e9360);}if(_0x99182b)switch(_0x2b6c57['type']){case'insert':this['_handleInsertOperation'](_0x2b6c57);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2b6c57);break;case'merge':this['_handleMergeOperation'](_0x2b6c57);break;case'split':this['_handleSplitOperation'](_0x2b6c57);}}else this['_handleRootOperation'](_0x2b6c57,_0x99182b);}['_cloneOperation'](_0x43b626,_0x37c2f3){const _0x7becc9=_0x43b626['clone']();return _0x7becc9['_authorId']=_0x43b626['_authorId'],this['_fixOperation'](_0x7becc9,_0x37c2f3),_0x7becc9;}['_getBaseVids'](_0x769a){return _0x769a['map'](_0x3a67bf=>{const _0x23079e=this['_getVidAttributeName'](_0x3a67bf);return Number(_0x3a67bf['item']['getAttribute'](_0x23079e));});}['_generateTape'](_0x3ce990,_0x131e18){if(_0x3ce990['is']('element','$text'))_0x131e18['push']({'item':_0x3ce990,'type':'text'});else{_0x3ce990['is']('element')&&_0x131e18['push']({'item':_0x3ce990,'type':'elementStart'});for(const _0xea4e8b of _0x3ce990['getChildren']())this['_generateTape'](_0xea4e8b,_0x131e18);_0x3ce990['is']('element')&&_0x131e18['push']({'item':_0x3ce990,'type':'elementEnd'});}return _0x131e18;}['_getState'](){const _0x364c36=new Map(this['_touched']),_0x2af19a=new Map(_0x364c36),_0x1b0401=new Map(),_0x2f08c2={'insertions':{},'deletions':{}},_0x1fa831={'insertions':{},'deletions':{}},_0x513e81=new Map(),_0x31f210=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x31f210['delete']('$graveyard');for(const _0x2d63e3 of _0x31f210){const _0x24df4f=this['_diffRoots']['get'](_0x2d63e3)||F(_0x2d63e3,!0x1),_0x423758=this['_baseRoots']['get'](_0x2d63e3)||F(_0x2d63e3,!0x1);_0x24df4f['isAttached']()||_0x423758['isAttached']()?(_0x2f08c2['insertions'][_0x2d63e3]=T(_0x24df4f),_0x2f08c2['deletions'][_0x2d63e3]=T(_0x423758),this['_copyMarkers'](_0x2f08c2['deletions'][_0x2d63e3],_0x423758),this['_copyMarkers'](_0x2f08c2['insertions'][_0x2d63e3],_0x24df4f),_0x1fa831['insertions'][_0x2d63e3]=this['_generateTape'](this['_idsRoots']['get'](_0x2d63e3),[]),_0x1fa831['deletions'][_0x2d63e3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2d63e3)||F(_0x2d63e3,!0x1),[])):_0x31f210['delete'](_0x2d63e3);}for(const _0x11e415 of _0x31f210){const _0x4c4be0=_0x1fa831['insertions'][_0x11e415];for(const _0x387125 of _0x4c4be0){const _0x41a35f=this['_getVidAttributeName'](_0x387125),_0x23cf6c=_0x387125['item']['getAttribute'](_0x41a35f);_0x2af19a['delete'](_0x23cf6c),_0x23cf6c>=this['_startingRevisionId']&&_0x1b0401['set'](_0x23cf6c,_0x364c36['get'](_0x23cf6c));}}for(const _0x42d629 of _0x31f210){const _0x251713=_0x1fa831['insertions'][_0x42d629],_0x43673e=this['_getBaseVids'](_0x1fa831['deletions'][_0x42d629]);let _0x5a9052=0x0;for(const _0xe8c4b1 of _0x251713){const _0x51fcbd=this['_getVidAttributeName'](_0xe8c4b1),_0xa3892e=_0xe8c4b1['item']['getAttribute'](_0x51fcbd);if(!_0x1b0401['has'](_0xa3892e)&&!_0x513e81['has'](_0xa3892e)){if(_0x2af19a['has'](_0xa3892e))_0x5a9052++;else{if(_0xa3892e!=_0x43673e[_0x5a9052]){const _0x349964=_0x364c36['get'](_0xa3892e)||_0x364c36['get'](_0x43673e[_0x5a9052]);for(;_0xa3892e!=_0x43673e[_0x5a9052];)_0x2af19a['has'](_0x43673e[_0x5a9052])||(_0x513e81['set'](_0x43673e[_0x5a9052],_0x349964),_0x364c36['set'](_0x43673e[_0x5a9052],_0x349964)),_0x5a9052++;}_0x5a9052++;}}}}for(const _0x413e4f of _0x31f210){const _0x58f5f2=_0x1fa831['insertions'][_0x413e4f];for(const _0x463ca7 of _0x58f5f2){const _0x380a6f=this['_getVidAttributeName'](_0x463ca7),_0x2d9022=_0x463ca7['item']['getAttribute'](_0x380a6f);if(_0x513e81['has'](_0x2d9022)){const _0x1241c8=_0x513e81['get'](_0x2d9022);_0x2af19a['has'](_0x2d9022)||_0x2af19a['set'](_0x2d9022,{..._0x1241c8}),_0x1b0401['set'](_0x2d9022,{..._0x1241c8});}}}for(const _0x2e6b35 of _0x2af19a['keys']())_0x2e6b35>=this['_startingRevisionId']&&_0x2af19a['delete'](_0x2e6b35);const _0x11892b=new Map();for(const _0x3d857a of _0x31f210){let _0x14ba48=_0x1fa831['insertions'][_0x3d857a];for(const _0xf75bfd of _0x14ba48)if(_0xf75bfd['item']['is']('element','tableCell')){const _0x5023f6=this['_getVidAttributeName'](_0xf75bfd),_0x5982ef=_0xf75bfd['item']['getAttribute'](_0x5023f6);if(_0x1b0401['has'](_0x5982ef)){const _0x378224=_0xf75bfd['item']['parent']['parent']['getAttribute']('vid_start'),_0x3f8617=_0x11892b['get'](_0x378224)||new Set();_0x3f8617['add'](_0x1b0401['get'](_0x5982ef)['userId']),_0x11892b['set'](_0x378224,_0x3f8617);}}_0x14ba48=_0x1fa831['deletions'][_0x3d857a];for(const _0x96185e of _0x14ba48)if(_0x96185e['item']['is']('element','tableCell')){const _0x3232e7=this['_getVidAttributeName'](_0x96185e),_0x5460d1=_0x96185e['item']['getAttribute'](_0x3232e7);if(_0x2af19a['has'](_0x5460d1)){const _0xc714f9=_0x96185e['item']['parent']['parent']['getAttribute']('vid_start'),_0x2ae90d=_0x11892b['get'](_0xc714f9)||new Set();_0x2ae90d['add'](_0x2af19a['get'](_0x5460d1)['userId']),_0x11892b['set'](_0xc714f9,_0x2ae90d);}}for(const _0x5808b5 of _0x11892b['keys']())(_0x1b0401['has'](_0x5808b5)||_0x2af19a['has'](_0x5808b5))&&_0x11892b['delete'](_0x5808b5);}for(const _0xd47ef of _0x31f210){const _0xeb1a4=_0x1fa831['insertions'][_0xd47ef];let _0x58fcd0=null,_0x3dac41=null;for(const _0x553f68 of _0xeb1a4){const _0x219055=this['_getVidAttributeName'](_0x553f68),_0x2b71b1=_0x553f68['item']['getAttribute'](_0x219055),_0x30de46=_0x11892b['get'](_0x2b71b1);_0x30de46&&'elementStart'==_0x553f68['type']&&(_0x58fcd0=Array['from'](_0x30de46)[0x0],_0x3dac41=_0x553f68['item']['getAttribute']('vid_end')),_0x58fcd0&&(_0x2af19a['set'](_0x2b71b1,{'userId':_0x58fcd0}),_0x1b0401['set'](_0x2b71b1,{'userId':_0x58fcd0})),_0x2b71b1==_0x3dac41&&(_0x58fcd0=null,_0x3dac41=null);}}const _0x56a229={},_0x4a6b24=new Set();for(const _0x2659f6 of _0x31f210){const _0x175c83=_0x2f08c2['deletions'][_0x2659f6],_0x5ac106=_0x2f08c2['insertions'][_0x2659f6];for(const {userId:_0x277bd2}of this['_touchedMarkers']['values']())null!==_0x277bd2&&_0x4a6b24['add'](_0x277bd2);for(const {userId:_0x53cd0e}of this['_touchedRoots']['values']())null!==_0x53cd0e&&_0x4a6b24['add'](_0x53cd0e);this['_markChanges'](_0x5ac106,_0x1fa831['insertions'][_0x2659f6],_0x1b0401,'insertion',_0x4a6b24),this['_markChanges'](_0x175c83,_0x1fa831['deletions'][_0x2659f6],_0x2af19a,'deletion',_0x4a6b24),_0x56a229[_0x2659f6]={'insertions':this['_prepareViewToSave'](_0x5ac106),'deletions':this['_prepareViewToSave'](_0x175c83),'attachChange':this['_touchedRoots']['get'](_0x2659f6)||null,'attributesBefore':_0x508619(this['_baseRootsAttributes']['get'](_0x2659f6))||{},'attributesAfter':_0x508619(this['_diffRootsAttributes']['get'](_0x2659f6))};}return{'diffData':_0x56a229,'authorsIds':Array['from'](_0x4a6b24)};}['_processRootBeforeSave'](_0x41f52c){for(const [,_0x397c08]of _0x41f52c['markers']){const _0x2d031c=_0x397c08['start']['getAncestors']()['filter'](_0x4b26ce=>'tableCell'==_0x4b26ce['name']);for(const _0x48e6e8 of _0x2d031c)0x1==_0x48e6e8['childCount']&&_0x48e6e8['getChild'](0x0)['is']('element','paragraph')&&_0x48e6e8['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x116f63){this['_processRootBeforeSave'](_0x116f63);const _0x1a85cb=this['editor']['data']['toView'](_0x116f63,{}),_0x46723f=Array['from'](_0x1a85cb['getChildren']())['map'](_0xd1ea2e=>this['_getViewJson'](_0xd1ea2e));return JSON['stringify'](_0x46723f);}['_getViewJson'](_0x3cfd33){if(_0x3cfd33['is']('$text'))return _0x3cfd33['data'];{const _0x31b250=_0x3cfd33;return{'type':Object['keys'](P)['find'](_0x4f9e60=>_0x3cfd33 instanceof P[_0x4f9e60]),'name':_0x31b250['name'],'attributes':Array['from'](_0x31b250['getAttributes']()),'children':Array['from'](_0x31b250['getChildren']())['map'](_0x24d45c=>this['_getViewJson'](_0x24d45c))};}}['_markChanges'](_0x559101,_0x351475,_0x110a6f,_0x550e9b,_0x2a3c5f){let _0x4ee702=null,_0x11a280=null,_0x1c7c70=0x0;const _0x550f14=this['editor']['model'];for(let _0x139655=0x0;_0x139655<_0x351475['length'];_0x139655++){const _0x2796bc=this['_getVidAttributeName'](_0x351475[_0x139655]),_0x560d87=_0x351475[_0x139655]['item']['getAttribute'](_0x2796bc),_0x5479c4=_0x110a6f['get'](_0x560d87),_0x64a6b0=_0x139655==_0x351475['length']-0x1;(!_0x4ee702&&_0x5479c4&&(_0x4ee702=_0x5479c4,_0x11a280=_0x351475[_0x139655]),_0x4ee702&&(!_0x5479c4||_0x5479c4['userId']!=_0x4ee702['userId']))&&(_0x272ebd(_0x5479c4,B(_0x11a280,_0x559101,_0x550f14),B(_0x351475[_0x139655],_0x559101,_0x550f14)),_0x4ee702=_0x5479c4||null,_0x11a280=_0x5479c4?_0x351475[_0x139655]:null),_0x4ee702&&_0x64a6b0&&_0x272ebd(_0x5479c4,B(_0x11a280,_0x559101,_0x550f14),J(_0x351475[_0x139655],_0x559101,_0x550f14));}function _0x272ebd(_0x4ac6de,_0x2e4e15,_0x49048){const _0x401173=_0x4ee702['userId'],_0xe4961b='revision:'+_0x550e9b+':'+_0x401173+':'+_0x1c7c70++,_0x1b4b9f=_0x550f14['createRange'](_0x2e4e15,_0x49048);_0x559101['markers']['set'](_0xe4961b,_0x1b4b9f),null!==_0x401173&&_0x2a3c5f['add'](_0x401173);}}['_getVidAttributeName'](_0x5262ea){switch(_0x5262ea['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x242d19,_0x1d5535){_0x242d19['baseVersion']=null;for(const _0x36c85d in _0x242d19){const _0x52dfc5=_0x242d19[_0x36c85d];if(_0x52dfc5 instanceof gt){const _0x5a7411=_0x1d5535['get'](_0x52dfc5['root']['rootName']);_0x242d19[_0x36c85d]=this['_fixPosition'](_0x52dfc5,_0x5a7411);}if(_0x52dfc5 instanceof vt){const _0x264248=_0x1d5535['get'](_0x52dfc5['root']['rootName']);_0x242d19[_0x36c85d]=this['_fixRange'](_0x52dfc5,_0x264248);}'root'===_0x36c85d&&(_0x242d19['root']=_0x1d5535['get'](_0x242d19['root']['rootName']));}}['_fixRange'](_0x563ff9,_0x3e001a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x563ff9['start'],_0x3e001a),this['_fixPosition'](_0x563ff9['end'],_0x3e001a));}['_fixPosition'](_0x1d637e,_0x48b5df){return this['editor']['model']['createPositionFromPath'](_0x48b5df,_0x1d637e['path'],_0x1d637e['stickiness']);}['_handleInsertOperation'](_0x2a7480){const _0x47e728=this['_idsRoots']['get'](_0x2a7480['position']['root']['rootName']),_0x43e0b4=this['_fixPosition'](_0x2a7480['position'],_0x47e728),_0xf04ad1=null===_0x2a7480['_authorId']?null:_0x2a7480['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24b587=_0x43e0b4['parent'],_0x3b411e=this['_revisionId'],_0x1133a2=[];for(const _0x203bdb of _0x2a7480['nodes'])if(_0x203bdb['is']('element'))_0x1133a2['push'](this['_makeIdsRoot'](_0x203bdb));else{for(let _0x15dfa2=0x0;_0x15dfa2<_0x203bdb['offsetSize'];_0x15dfa2++)_0x1133a2['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0xb1b26e=this['_revisionId'];for(let _0x5aa7a4=_0x3b411e;_0x5aa7a4<_0xb1b26e;_0x5aa7a4++)this['_touched']['set'](_0x5aa7a4,{'userId':_0xf04ad1});_0x24b587['_insertChild'](_0x43e0b4['offset'],_0x1133a2);}['_handleMoveOperation'](_0x164708){(_0x164708=this['_cloneOperation'](_0x164708,this['_idsRoots']))['_execute']();const _0x248c85=null===_0x164708['_authorId']?null:_0x164708['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49dd0e=_0x164708['getMovedRangeStart'](),_0x197c3f=_0x49dd0e['parent'],_0x366c75=_0x49dd0e['offset'];!function _0x4dacbb(_0x47bdce,_0x2ceca7,_0x44848a,_0x15682c){for(let _0x3fae19=_0x44848a;_0x3fae19<_0x15682c;_0x3fae19++){const _0x3afc1b=_0x2ceca7['getChild'](_0x3fae19);_0x3afc1b['is']('element','$text')?_0x47bdce['set'](_0x3afc1b['getAttribute']('vid'),{'userId':_0x248c85}):(_0x47bdce['set'](_0x3afc1b['getAttribute']('vid_start'),{'userId':_0x248c85}),_0x4dacbb(_0x47bdce,_0x3afc1b,0x0,_0x3afc1b['childCount']),_0x47bdce['set'](_0x3afc1b['getAttribute']('vid_end'),{'userId':_0x248c85}));}}(this['_touched'],_0x197c3f,_0x366c75,_0x366c75+_0x164708['howMany']);}['_handleMergeOperation'](_0x323f5e){const _0x3f4ef8=null===(_0x323f5e=this['_cloneOperation'](_0x323f5e,this['_idsRoots']))['_authorId']?null:_0x323f5e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xeabf8e=_0x323f5e['targetPosition']['parent'],_0x433d00=_0x323f5e['sourcePosition']['parent'],_0x1d1289=_0xeabf8e['getAttribute']('vid_end'),_0x268348=_0x433d00['getAttribute']('vid_start');_0xeabf8e['_setAttribute']('vid_end',_0x433d00['getAttribute']('vid_end')),_0x433d00['_setAttribute']('vid_end',_0x1d1289),this['_touched']['set'](_0x268348,{'userId':_0x3f4ef8}),this['_touched']['set'](_0x1d1289,{'userId':_0x3f4ef8}),_0x323f5e['_execute']();}['_handleSplitOperation'](_0x5700da){const _0x10112d=null===(_0x5700da=this['_cloneOperation'](_0x5700da,this['_idsRoots']))['_authorId']?null:_0x5700da['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c637e=_0x5700da['graveyardPosition'],_0x54e5d2=_0x5700da['splitPosition']['parent'];_0x5700da['_execute']();const _0x2cfcb5=_0x54e5d2['getAttribute']('vid_end'),_0x37d6ef=_0x5700da['insertionPosition']['nodeAfter'];if(_0x2c637e){const _0x5b1ee6=_0x37d6ef['getAttribute']('vid_end'),_0x45b8f5=_0x54e5d2['getAttribute']('vid_end');_0x54e5d2['_setAttribute']('vid_end',_0x5b1ee6),_0x37d6ef['_setAttribute']('vid_end',_0x45b8f5),this['_touched']['set'](_0x54e5d2['getAttribute']('vid_end'),{'userId':_0x10112d}),this['_touched']['set'](_0x37d6ef['getAttribute']('vid_start'),{'userId':_0x10112d});}else{const _0x82b679=this['_revisionId']++,_0x38ad8c=this['_revisionId']++;_0x54e5d2['_setAttribute']('vid_end',_0x82b679),_0x37d6ef['_setAttribute']('vid_start',_0x38ad8c),_0x37d6ef['_setAttribute']('vid_end',_0x2cfcb5),this['_touched']['set'](_0x82b679,{'userId':_0x10112d}),this['_touched']['set'](_0x38ad8c,{'userId':_0x10112d});}}['_handleMarkerOperation'](_0x25e806){if(!_0x25e806['affectsData'])return;const _0x1e3486=(_0x25e806=this['_cloneOperation'](_0x25e806,this['_diffRoots']))['oldRange']?_0x25e806['oldRange']['root']:null,_0x59a06e=_0x25e806['newRange']?_0x25e806['newRange']['root']:null;_0x1e3486&&this['_markers']['delete'](_0x25e806['name']),_0x59a06e&&this['_markers']['set'](_0x25e806['name'],_0x25e806['newRange']['clone']());const _0x15c880=null===_0x25e806['_authorId']?null:_0x25e806['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46cbf8=_0x25e806['name'];if(!this['_touchedMarkers']['has'](_0x46cbf8))return void this['_touchedMarkers']['set'](_0x46cbf8,{'range':_0x25e806['oldRange'],'userId':_0x15c880});const _0x2f4b42=this['_touchedMarkers']['get'](_0x46cbf8),_0x26f4ee=_0x2f4b42['range'],_0x3cb1ff=_0x25e806['newRange'];null==_0x26f4ee&&null==_0x3cb1ff||_0x26f4ee&&_0x3cb1ff&&_0x26f4ee['isEqual'](_0x3cb1ff)?this['_touchedMarkers']['delete'](_0x25e806['name']):_0x2f4b42['userId']=_0x15c880;}['_handleRootOperation'](_0x1acda5,_0x3ba491){this['_diffRoots']['has'](_0x1acda5['rootName'])?this['_diffRoots']['get'](_0x1acda5['rootName'])['_isAttached']=_0x1acda5['isAdd']:(this['_diffRoots']['set'](_0x1acda5['rootName'],F(_0x1acda5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1acda5['rootName'],{}),_0x3ba491&&this['_idsRoots']['set'](_0x1acda5['rootName'],F(_0x1acda5['rootName'],!0x0)));const _0x4e5ecb=null===_0x1acda5['_authorId']?null:_0x1acda5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a34fd=this['_touchedRoots']['get'](_0x1acda5['rootName']);_0x4a34fd&&_0x4a34fd['userId']===_0x4e5ecb?this['_touchedRoots']['delete'](_0x1acda5['rootName']):this['_touchedRoots']['set'](_0x1acda5['rootName'],{'userId':_0x4e5ecb,'isAttached':_0x1acda5['isAdd']});}['_handleRootAttributeOperation'](_0x2505b8){const _0x1d757b=this['_diffRootsAttributes']['get'](_0x2505b8['root']['rootName']);null===_0x2505b8['newValue']?delete _0x1d757b[_0x2505b8['key']]:_0x1d757b[_0x2505b8['key']]=_0x2505b8['newValue'];}}function T(_0x31d3f6){const _0x1b6c34=F(_0x31d3f6['rootName'],_0x31d3f6['isAttached']());for(const _0x1ee311 of _0x31d3f6['getChildren']()){const _0x2b1eec=_0x1ee311['_clone'](!0x0);_0x1b6c34['_appendChild'](_0x2b1eec);}return _0x1b6c34;}function F(_0x1afce5,_0x1165e7=!0x0){const _0x3daf85=new mt();return _0x3daf85['rootName']=_0x1afce5,_0x3daf85['_isAttached']=_0x1165e7,_0x3daf85['isAttached']=()=>_0x3daf85['_isAttached'],_0x3daf85;}function B(_0x4068e3,_0x46726,_0x43a7c9){const _0x2fb87c='elementEnd'==_0x4068e3['type']?_0x43a7c9['createPositionAt'](_0x4068e3['item'],'end'):_0x43a7c9['createPositionBefore'](_0x4068e3['item']);return _0x43a7c9['createPositionFromPath'](_0x46726,_0x2fb87c['path'],_0x2fb87c['stickiness']);}function J(_0x1aa488,_0x258c11,_0x23e940){const _0x27feab='elementStart'==_0x1aa488['type']?_0x23e940['createPositionAt'](_0x1aa488['item'],0x0):_0x23e940['createPositionAfter'](_0x1aa488['item']);return _0x23e940['createPositionFromPath'](_0x258c11,_0x27feab['path'],_0x27feab['stickiness']);}class ns extends _0x473b73{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x519d10,_0x548831){super(_0x519d10),this['focusTracker']=new _0x34dd60(),this['keystrokes']=new _0x59af65(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x548831),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'](),_0x13da2a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x312071=_0x1f9683=>_0x1f9683['stopPropagation']();this['keystrokes']['set']('arrowright',_0x312071),this['keystrokes']['set']('arrowleft',_0x312071),this['keystrokes']['set']('arrowup',_0x312071),this['keystrokes']['set']('arrowdown',_0x312071);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5023d9){this['revisionNameInputView']['fieldView']['element']['value']=_0x5023d9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2dd357){const _0x3da252=new nt(this['locale'],_0x2432b5),_0x45e46b=_0x3da252['fieldView'];_0x45e46b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2117a1=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2dd357&&(_0x2117a1+='\x20('+m(this['locale'],'optional')+')'),(_0x3da252['label']=_0x2117a1,_0x45e46b['on']('input',()=>{this['revisionNameInputValue']=_0x45e46b['element']['value']['trim']();}),_0x3da252);}}class u extends _0x7756cd{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x28e9e3=this['editor'],_0x3fc2d5=_0x28e9e3['plugins']['get']('RevisionTracker');_0x28e9e3['ui']['componentFactory']['add']('revisionHistory',_0x85b019=>{const _0x2e897c=_0xa6251b(_0x85b019),_0x115a38=_0x2e897c['panelView']['children'],_0x1a3848=new te(_0x85b019),_0x1be996=new _0x4212ed(_0x85b019),_0x143eb9=new _0x1a7b95(_0x85b019),_0x519b1f=new _0x4212ed(_0x85b019),_0x3a375e=new _0x1a7b95(_0x85b019);return _0x2e897c['bind']('isEnabled')['to'](_0x3fc2d5,'isReady',_0x3fc2d5,'isEnabled',_0x28e9e3,'isReadOnly',(_0x3dc733,_0x4fffa0,_0x421045)=>_0x3dc733&&_0x4fffa0&&!_0x421045),_0x2e897c['buttonView']['set']({'icon':_0x2a6eef['history'],'label':m(_0x85b019,'Revision\x20history'),'tooltip':!0x0}),_0x143eb9['set']({'label':m(_0x85b019,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x143eb9['bind']('isEnabled')['to'](_0x3fc2d5,'isReady',_0x3fc2d5,'isEnabled',_0x28e9e3,'isReadOnly',(_0x3f2b91,_0x41e42e,_0x2e426f)=>_0x3f2b91&&_0x41e42e&&!_0x2e426f),_0x143eb9['on']('execute',()=>this['_showDialog']()),_0x3a375e['set']({'label':m(_0x85b019,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3a375e['bind']('isEnabled')['to'](_0x3fc2d5,'isReady',_0x28e9e3,'isReadOnly',(_0x233b84,_0x39eb74)=>_0x233b84&&!_0x39eb74),_0x3a375e['on']('execute',()=>{_0x28e9e3['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2e897c['isOpen']=!0x1,_0x28e9e3['editing']['view']['focus']();}),_0x1be996['children']['add'](_0x143eb9),_0x519b1f['children']['add'](_0x3a375e),_0x1a3848['role']='menu',_0x1a3848['items']['addMany']([_0x1be996,_0x519b1f]),_0x115a38['add'](_0x1a3848),_0x2e897c;}),_0x28e9e3['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x7a21b8=this['editor'],_0x456e49=_0x7a21b8['locale'],_0x248747=new _0x4ee76d(_0x456e49),_0x4276ac=new _0x26a1b2(_0x456e49);_0x248747['buttonView']['set']({'icon':_0x2a6eef['history'],'label':m(_0x456e49,'Revision\x20history')});const _0x1da8c4=new _0x2f27ad(_0x456e49,_0x248747),_0x47147f=new _0x43c7f8(_0x456e49);_0x47147f['set']({'label':m(_0x456e49,'Save\x20current\x20revision')}),_0x47147f['delegate']('execute')['to'](_0x248747),_0x47147f['on']('execute',()=>{this['_showDialog']();}),_0x1da8c4['children']['add'](_0x47147f),_0x4276ac['items']['add'](_0x1da8c4);const _0x47a2ef=new _0x2f27ad(_0x456e49,_0x248747),_0x3c3f47=new _0x43c7f8(_0x456e49);return _0x3c3f47['set']({'label':m(_0x456e49,'Open\x20revision\x20history')}),_0x3c3f47['delegate']('execute')['to'](_0x248747),_0x3c3f47['on']('execute',()=>{_0x7a21b8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x47a2ef['children']['add'](_0x3c3f47),_0x4276ac['items']['add'](_0x47a2ef),_0x248747['panelView']['children']['add'](_0x4276ac),_0x248747;}['_showDialog'](){const _0x3c798=this['editor'],_0xd727a3=_0x3c798['locale'],_0x61fe53=_0x3c798['plugins']['get']('Dialog'),_0x35467f=_0x3c798['plugins']['get']('RevisionTracker');function _0xf0324a(_0x36135a){_0x3c798['config']['get']('revisionHistory.requireRevisionName')&&''===_0x36135a['revisionName']?_0x36135a['revisionNameInputView']['errorText']=m(_0xd727a3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3c798['plugins']['get'](l)['saveRevision']({'name':_0x36135a['revisionName']}),_0x61fe53['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xf0324a(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x61fe53['show']({'id':'revisionSave','title':m(_0xd727a3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x3c798['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x61fe53['hide']()},{'label':m(_0x3c798['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x828cce){_0x828cce['bind']('isEnabled')['to'](_0x35467f,'isReady',_0x35467f,'isEnabled',_0x3c798,'isReadOnly',(_0x283dd5,_0x56967d,_0xc07dbe)=>_0x283dd5&&_0x56967d&&!_0xc07dbe);},'onExecute':()=>_0xf0324a(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x406bc9=this['editor'],_0x20e78b=_0x406bc9['locale'];this['_saveRevisionFormView']=new ns(_0x20e78b,_0x406bc9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x473b73{['changeId'];['_model'];constructor(_0x7c1ba4,_0x4253e8){super(_0x7c1ba4),this['_model']=_0x4253e8,this['changeId']=_0x4253e8['id'];const _0x44d2ba=this['bindTemplate'],_0xb38ec1=m(_0x7c1ba4,_0x4253e8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4253e8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4253e8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x44d2ba['to']('type',_0x385eae=>'ck-revision-change__'+_0x385eae)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xb38ec1}]},{'text':'\x20'+_0x4253e8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0xa53d47(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3979e8){super(),this['id']=_0x3979e8['id']||_0x50e613(),this['author']=_0x3979e8['author'],this['type']=_0x3979e8['type'],this['data']=_0x3979e8['data']||{},this['rootName']=_0x3979e8['rootName'],this['set']('createdAt',_0x3979e8['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(_0x2cd0da,_0x3e34fe){this['newRevisionId']=_0x2cd0da,this['oldRevisionId']=_0x3e34fe,this['changes']=new _0x4cb68a();}['_setChanges'](_0x1a4566){for(const _0x55d65c of _0x1a4566)this['changes']['add'](_0x55d65c);}}const Y={'c':_0x344d68,'a':_0x7f5663,'e':_0x58d5cf,'r':_0x27e757,'u':_0x509c82};class d extends _0x7756cd{['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[_0x4ac02a,_0x19208d,j];}constructor(_0x4f217c){super(_0x4f217c),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',(_0x50205b,_0x37d5b6,_0x16c843)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xa24d1a=>{for(const _0x5ca2cb of this['editor']['editing']['view']['document']['roots'])_0x16c843?_0xa24d1a['removeClass']('ck-editor__editable__overlay',_0x5ca2cb):_0xa24d1a['addClass']('ck-editor__editable__overlay',_0x5ca2cb);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x243683=>null!==_0x243683),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4a102a,_0x306cb4,_0x3ca74a)=>_0x4a102a&&_0x3ca74a?_0x306cb4['changes']['getIndex'](_0x3ca74a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2d7174,_0x2ff182)=>_0x2d7174?_0x2ff182['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x19208d);}['init'](){const _0x16ef86=this['editor'],_0x20be44=new yt(_0x16ef86,{'direction':'backward'}),_0x36cf81=new yt(_0x16ef86,{'direction':'forward'});(_0x16ef86['commands']['add']('showPreviousChange',_0x20be44),_0x16ef86['commands']['add']('showNextChange',_0x36cf81),_0x16ef86['commands']['add']('restoreRevision',new _t(_0x16ef86)),this['on']('change:numberOfChanges',()=>{_0x20be44['refresh'](),_0x36cf81['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x16ef86['enableReadOnlyMode']('revision-viewer'),_0x16ef86['plugins']['has']('WidgetToolbarRepository'))&&_0x16ef86['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3b68df){await this['loadRevisionData'](_0x3b68df);const _0x486f09={};for(const _0x184b31 in _0x3b68df['diffData']){if(_0x3b68df['diffData'][_0x184b31]['attachChange']&&!_0x3b68df['diffData'][_0x184b31]['attachChange']['isAttached'])continue;const _0x55014b=this['_removeRevisionMarkers'](JSON['parse'](_0x3b68df['diffData'][_0x184b31]['insertions'])),_0x471d22=this['editor']['editing']['view']['document'],_0x210d8e=new _0x3687a9(_0x471d22,_0x55014b['map'](_0x32805c=>this['_getViewObj'](_0x32805c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x486f09[_0x184b31]=this['editor']['data']['processor']['toData'](_0x210d8e),this['editor']['data']['processor']['useFillerType']('default');}return _0x486f09;}async['getRevisionRootsAttributes'](_0x5a3029){await this['loadRevisionData'](_0x5a3029);const _0x6abb5d={};for(const _0x32460a in _0x5a3029['diffData'])_0x5a3029['diffData'][_0x32460a]['attachChange']&&!_0x5a3029['diffData'][_0x32460a]['attachChange']['isAttached']||(_0x6abb5d[_0x32460a]=_0x5a3029['diffData'][_0x32460a]['attributesAfter']||{});return _0x6abb5d;}['_removeRevisionMarkers'](_0x54dd2f){return(_0x54dd2f=_0x54dd2f['filter'](_0x3e3a2f=>!_0x3e3a2f['name']||'revision-start'!==_0x3e3a2f['name']&&'revision-end'!==_0x3e3a2f['name']))['forEach'](_0x2c14f1=>{'string'!=typeof _0x2c14f1&&(_0x2c14f1['children']=this['_removeRevisionMarkers'](_0x2c14f1['children']),_0x2c14f1['attributes']=_0x2c14f1['attributes']['filter'](_0x1a860f=>!_0x1a860f[0x0]['startsWith']('data-revision-')));}),_0x54dd2f;}async['compare'](_0x373b90,_0x435860,_0x3c8a66=!0x1){if(!this['isEnabled'])return;const _0x37e5c4=this['diff'],_0x34598d=this['repository'],_0x2d2b8e='string'==typeof _0x373b90?_0x34598d['getRevision'](_0x373b90):_0x373b90,_0x479930='string'==typeof _0x435860?_0x34598d['getRevision'](_0x435860):_0x435860,_0x26676c=_0x2d2b8e['id'],_0x34f494=_0x479930?_0x479930['id']:null;if(!_0x3c8a66&&this['diff']&&this['diff']['newRevisionId']===_0x26676c&&this['diff']['oldRevisionId']===_0x34f494)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x26676c,_0x34f494);const _0xa00e6c=this['_getRevisionsRange'](_0x2d2b8e,_0x479930,!0x0)['map'](_0x5d0cc4=>this['loadRevisionData'](_0x5d0cc4));return _0xa00e6c['push'](new Promise(_0x1e6baf=>{setTimeout(_0x1e6baf,0x14);})),Promise['all'](_0xa00e6c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1d4ec6=this['_getDiff'](_0x26676c,_0x34f494);for(const _0x55e213 of _0x1d4ec6['changes'])this['_changeIdToChange']['set'](_0x55e213['id'],_0x55e213);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4fb41e=>{for(const _0x392ed3 of this['editor']['model']['document']['getRootNames']())_0x4fb41e['detachRoot'](_0x392ed3);for(const _0x3a88c9 of Object['keys'](_0x1d4ec6['model'])){const _0x582cf3=_0x4fb41e['addRoot'](_0x3a88c9);for(const _0xe58214 of Object['keys'](_0x1d4ec6['attributes'][_0x3a88c9]))_0x4fb41e['setAttribute'](_0xe58214,_0x1d4ec6['attributes'][_0x3a88c9][_0xe58214],_0x582cf3);_0x4fb41e['insert'](_0x1d4ec6['model'][_0x3a88c9],_0x582cf3,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1d4ec6['changes'])),this['isReady']=!0x0;})['catch'](_0x45b6c9=>{console['error'](_0x45b6c9),this['_cleanUp'](),_0x37e5c4&&(this['diff']=_0x37e5c4),this['isReady']=!0x0;});}['addRevisionData'](_0x4ff2ce,_0x4ea310){const _0x5440ce=this['repository']['createRevision'](_0x4ff2ce);return _0x5440ce['on']('_update',(_0x4acedc,_0x1c7563,_0x114973)=>_0x4ea310(_0x1c7563,_0x114973,_0x5440ce)),this['repository']['addRevision'](_0x5440ce),_0x5440ce;}['loadRevisionData'](_0x354f2c){if(!_0x354f2c||_0x354f2c['diffData'])return Promise['resolve']();{const _0x5e5827=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5e5827,'revisionId':_0x354f2c['id']})['then'](_0x2805a1=>{_0x354f2c['_update']({'diffData':_0x2805a1['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},_0x2a38ae=>{for(const _0x32c078 of this['editor']['model']['document']['getRootNames']())_0x2a38ae['detachRoot'](_0x32c078);});}['_sortAndFilterDiffChanges'](_0x5e8a15){const _0x47a241=[],_0x410ee1=new Map();for(const _0x44c42f of this['editor']['model']['document']['getRootNames']()){const _0x1c9e5d=this['editor']['editing']['view']['getDomRoot'](_0x44c42f);if(!_0x1c9e5d)continue;const _0x4ad36b=_0x1c9e5d['getClientRects']()['item'](0x0);_0x4ad36b&&(_0x47a241['push'](_0x44c42f),_0x410ee1['set'](_0x44c42f,_0x4ad36b));}return _0x47a241['sort']((_0x3f550b,_0x1aa490)=>{const _0xe167c7=_0x410ee1['get'](_0x3f550b),_0x4163ae=_0x410ee1['get'](_0x1aa490);return _0xe167c7['y']-_0x4163ae['y']||_0xe167c7['x']-_0x4163ae['x'];}),(_0x5e8a15=_0x5e8a15['filter'](_0x45d65d=>_0x47a241['includes'](_0x45d65d['rootName'])))['sort']((_0x599239,_0x6b6442)=>_0x47a241['indexOf'](_0x599239['rootName'])-_0x47a241['indexOf'](_0x6b6442['rootName'])),_0x5e8a15;}['_makeTape'](_0x999ce3){const _0x57be11=Array['from'](_0x999ce3['markers'])['filter'](([_0x215d32,_0x3688b9])=>_0x215d32['startsWith']('revision:')&&!_0x3688b9['isCollapsed']),_0x1c7885=Array['from'](this['editor']['model']['createRangeIn'](_0x999ce3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x57be11['length'])for(const _0x14be13 of _0x1c7885){const [_0xa72b90,_0x3a4fde]=_0x57be11[0x0],[,_0x34dd08,_0x26464d]=_0xa72b90['split'](':');if(_0x3a4fde['end']['isEqual'](_0x14be13['nextPosition'])&&_0x57be11['shift'](),(_0x14be13['previousPosition']['isEqual'](_0x3a4fde['start'])||_0x14be13['previousPosition']['isAfter'](_0x3a4fde['start']))&&('insertion'==_0x34dd08?_0x14be13['isAdded']={'userId':_0x26464d}:'deletion'==_0x34dd08&&(_0x14be13['isRemoved']={'userId':_0x26464d})),0x0==_0x57be11['length'])break;}return _0x1c7885;}['_refreshStartEndIndex'](_0x3ac5e1){const _0x15feab=new Map();for(let _0x19ea4f=0x0;_0x19ea4f<_0x3ac5e1['length'];_0x19ea4f++)'text'===_0x3ac5e1[_0x19ea4f]['type']?(_0x3ac5e1[_0x19ea4f]['item']['startIndex']=_0x19ea4f,_0x3ac5e1[_0x19ea4f]['item']['endIndex']=_0x19ea4f):('elementStart'===_0x3ac5e1[_0x19ea4f]['type']?_0x3ac5e1[_0x19ea4f]['item']['startIndex']=_0x19ea4f:'elementEnd'===_0x3ac5e1[_0x19ea4f]['type']&&(_0x3ac5e1[_0x19ea4f]['item']['endIndex']=_0x19ea4f),_0x15feab['set'](_0x3ac5e1[_0x19ea4f]['id'],_0x19ea4f));for(const _0x47c7d1 of _0x15feab['values']())'elementStart'===_0x3ac5e1[_0x47c7d1]['type']?_0x3ac5e1[_0x47c7d1]['item']['endIndex']=_0x15feab['get'](_0x3ac5e1[_0x47c7d1]['pairId']):'elementEnd'===_0x3ac5e1[_0x47c7d1]['type']&&(_0x3ac5e1[_0x47c7d1]['item']['startIndex']=_0x15feab['get'](_0x3ac5e1[_0x47c7d1]['pairId']));}['_processTape'](_0x2ab7e8){for(let _0x36cbd9=0x0;_0x36cbd9<_0x2ab7e8['length'];_0x36cbd9++){if('elementStart'===_0x2ab7e8[_0x36cbd9]['type'])_0x2ab7e8[_0x36cbd9]['item']['startIndex']=_0x36cbd9;else{if('elementEnd'===_0x2ab7e8[_0x36cbd9]['type']){_0x2ab7e8[_0x36cbd9]['item']['endIndex']=_0x36cbd9;const _0x7690ea=_0x2ab7e8[_0x36cbd9]['item']['startIndex'];_0x2ab7e8[_0x7690ea]['pairId']=_0x2ab7e8[_0x36cbd9]['id'],_0x2ab7e8[_0x36cbd9]['pairId']=_0x2ab7e8[_0x7690ea]['id'];}else _0x2ab7e8[_0x36cbd9]['item']['startIndex']=_0x36cbd9,_0x2ab7e8[_0x36cbd9]['item']['endIndex']=_0x36cbd9,_0x2ab7e8[_0x36cbd9]['pairId']=null;}_0x2ab7e8[_0x36cbd9]['markersStart']||(_0x2ab7e8[_0x36cbd9]['markersStart']=[],_0x2ab7e8[_0x36cbd9]['markersEnd']=[]);}}['_markInsertions'](_0x18e4e1,_0x4db55c){const _0x40af06=_0x18e4e1['filter'](_0x4278ca=>!_0x4278ca['isAdded']);for(let _0xca3532=0x0;_0xca3532<_0x4db55c['length'];_0xca3532++)_0x4db55c[_0xca3532]['isAdded']&&(_0x40af06[_0xca3532]['isAdded']=_0x4db55c[_0xca3532]['isAdded']);}['_makeModelFromViewString'](_0x4758af){const _0x4e98cc=JSON['parse'](_0x4758af),_0x44a75d=this['editor']['editing']['view']['document'],_0x4676bf=new _0x3687a9(_0x44a75d,_0x4e98cc['map'](_0x19502e=>this['_getViewObj'](_0x19502e)));return this['editor']['data']['toModel'](_0x4676bf);}['_getViewObj'](_0x4d2df4){const _0x462e36=this['editor']['editing']['view']['document'];if('string'==typeof _0x4d2df4)return new _0x198ef8(_0x462e36,_0x4d2df4);{const _0x2610a7=_0x4d2df4['children']['map'](_0x6a617c=>this['_getViewObj'](_0x6a617c));return new(Y[_0x4d2df4['type']]||_0x5dff6b)(_0x462e36,_0x4d2df4['name'],_0x4d2df4['attributes'],_0x2610a7);}}['_getDiff'](_0x13e5ad,_0x5d416c=null){const _0x57a61d=this['repository']['getRevision'](_0x13e5ad),_0x336143=_0x5d416c?this['repository']['getRevision'](_0x5d416c):null,_0x193559=this['_getRevisionsRange'](_0x57a61d,_0x336143),_0x415871=_0x193559[_0x193559['length']-0x1],_0x4f3f35=new Map(),_0x34092b={'model':{},'attributes':{},'changes':[]},_0x416cee=new Set(),_0x15274f=new Map();for(let _0x24bf6b=_0x193559['length']-0x1;_0x24bf6b>=0x0;_0x24bf6b--){const _0x1611bb=_0x193559[_0x24bf6b];for(const _0x5350ee of Object['keys'](_0x1611bb['diffData']))if(_0x1611bb['diffData'][_0x5350ee]['attachChange']){const _0x3a2194=_0x1611bb['diffData'][_0x5350ee]['attachChange'];_0x3a2194['isAttached']?(_0x416cee['add'](_0x5350ee),_0x15274f['has'](_0x5350ee)&&_0x15274f['get'](_0x5350ee)['userId']==_0x3a2194['userId']?_0x15274f['delete'](_0x5350ee):_0x15274f['set'](_0x5350ee,_0x3a2194)):_0x15274f['has'](_0x5350ee)?(_0x416cee['delete'](_0x5350ee),_0x15274f['delete'](_0x5350ee)):(_0x416cee['add'](_0x5350ee),_0x15274f['set'](_0x5350ee,_0x3a2194));}else _0x416cee['add'](_0x5350ee);}for(const _0x4b8046 of _0x416cee){const _0x5f51aa=_0x15274f['has'](_0x4b8046)&&!_0x15274f['get'](_0x4b8046)['isAttached'];let _0x52a6a7=_0x5f51aa?_0x193559['length']-0x1:0x0;const _0x1b6a88=_0x5f51aa?-0x1:0x1;for(;_0x193559[_0x52a6a7];){const _0x3c0c84=_0x193559[_0x52a6a7];if(_0x3c0c84['diffData'][_0x4b8046]){const _0x52df39=_0x5f51aa?_0x3c0c84['diffData'][_0x4b8046]['attributesBefore']:_0x3c0c84['diffData'][_0x4b8046]['attributesAfter'];_0x34092b['attributes'][_0x4b8046]=_0x52df39?_0x508619(_0x52df39):{};break;}_0x52a6a7+=_0x1b6a88;}}for(const _0x27f2d1 of _0x193559){_0x27f2d1['model']={};for(const _0x1778ff of _0x27f2d1['authors'])_0x4f3f35['set'](_0x1778ff['id'],_0x1778ff);for(const _0x58c973 of _0x416cee){const _0x2d2c15=_0x27f2d1['diffData'][_0x58c973]?_0x27f2d1['diffData'][_0x58c973]['insertions']:'[]',_0x1dadfd=_0x27f2d1['diffData'][_0x58c973]?_0x27f2d1['diffData'][_0x58c973]['deletions']:'[]';_0x27f2d1['model'][_0x58c973]={'insertions':this['_makeModelFromViewString'](_0x2d2c15),'deletions':this['_makeModelFromViewString'](_0x1dadfd)};}}for(const _0x4e513e of _0x416cee){let _0x3de2d2=null,_0x2fbb77=0x0;const _0x4bc49b=new Map(Array['from'](_0x57a61d['model'][_0x4e513e]['insertions']['markers'])['filter'](([_0x5e5fed])=>!_0x5e5fed['startsWith']('revision:')));let _0x5a2194=0x0;for(const _0x39baa1 of _0x193559){const _0x426114=this['_makeTape'](_0x39baa1['model'][_0x4e513e]['insertions']);_0x39baa1==_0x57a61d?(_0x3de2d2=_0x426114,_0x2fbb77=_0x3de2d2['length'],_0x3de2d2['forEach'](_0x9e01ca=>{_0x9e01ca['id']=_0x5a2194++;}),this['_processTape'](_0x3de2d2)):this['_markInsertions'](_0x3de2d2,_0x426114);const _0x585a77=_0x3de2d2['filter'](_0x3f6b63=>!_0x3f6b63['isAdded'])['map'](_0x54c62c=>_0x54c62c['id']);let _0x2ddc02=0x0;const _0x400b3e=this['_makeTape'](_0x39baa1['model'][_0x4e513e]['deletions']);_0x400b3e['forEach'](_0x26c2b8=>{_0x26c2b8['isRemoved']?_0x26c2b8['id']=_0x2fbb77++:_0x26c2b8['id']=_0x585a77[_0x2ddc02++];}),this['_processTape'](_0x400b3e),this['_setDistance'](_0x3de2d2,'isAdded'),this['_setDistance'](_0x400b3e,'isRemoved'),_0x39baa1==_0x57a61d&&this['_markMarkers'](_0x3de2d2,_0x4bc49b),_0x3de2d2=this['_joinTapes'](_0x3de2d2,_0x400b3e),this['_refreshStartEndIndex'](_0x3de2d2),this['_setDistance'](_0x3de2d2,'isRemoved');}_0x3de2d2=_0x3de2d2['filter'](_0x50c5f3=>!(_0x50c5f3['isAdded']&&_0x50c5f3['isRemoved']));const _0x2c6085=new Map(_0x415871['model'][_0x4e513e]['deletions']['markers']),_0x19396a=new Set(_0x4bc49b['keys']());for(const _0x522daf of _0x2c6085['keys']())_0x19396a['delete'](_0x522daf);this['_markSuggestions'](_0x3de2d2,_0x19396a),this['_fixObsoleteTags'](_0x3de2d2),_0x3de2d2=this['_removeMissingPairs'](_0x3de2d2),_0x3de2d2=this['_markMismatchedRemovedTags'](_0x3de2d2),_0x3de2d2=this['_removeUnsupportedChanges'](_0x3de2d2);const {root:_0x5e861b,changes:_0xf4f85f}=this['_makeModelFromTape'](_0x3de2d2,_0x4f3f35,_0x4e513e);_0x34092b['model'][_0x4e513e]=_0x5e861b;const _0x2fd5bb=_0x15274f['get'](_0x4e513e);if(_0x2fd5bb){const _0x2de791=_0x4f3f35['get'](_0x2fd5bb['userId']),_0x4b3d71=new r({'author':_0x2de791,'type':_0x2fd5bb['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4e513e});_0xf4f85f['unshift'](_0x4b3d71),_0x34092b['attributes'][_0x4e513e]['revisionHistoryAttachChange']=_0x4b3d71['id'];}_0x34092b['changes']=_0x34092b['changes']['concat'](_0xf4f85f);}return _0x34092b;}['_markMarkers'](_0x25642,_0x2fe3e0){for(let _0x53a92c=0x0;_0x53a92c<_0x25642['length'];_0x53a92c++)for(const [_0x559408,_0x19d9c5]of _0x2fe3e0)_0x19d9c5['start']['isEqual'](_0x25642[_0x53a92c]['previousPosition'])&&_0x25642[_0x53a92c]['markersStart']['push'](_0x559408),_0x19d9c5['end']['isEqual'](_0x25642[_0x53a92c]['nextPosition'])&&_0x25642[_0x53a92c]['markersEnd']['push'](_0x559408);}['_joinTapes'](_0x1edbf7,_0x564779){let _0x271faa=[],_0x4bce2c=0x0,_0x1f8b9f=0x0;for(;_0x4bce2c<_0x1edbf7['length']||_0x1f8b9f<_0x564779['length'];){const _0x2924ef=_0x1edbf7[_0x4bce2c]||{},_0x4eea53=_0x564779[_0x1f8b9f]||{};if(_0x2924ef['id']==_0x4eea53['id'])_0x4bce2c++,_0x1f8b9f++,_0x271faa['push'](_0x2924ef);else{if(_0x4eea53['isRemoved']&&_0x2924ef['isAdded']){const {commonTape:_0x18d082,iEnd:_0x241fa0,jEnd:_0xb74b72}=this['_threeWayMerge'](_0x1edbf7,_0x4bce2c,_0x564779,_0x1f8b9f);_0x271faa=_0x271faa['concat'](_0x18d082),_0x4bce2c=_0x241fa0,_0x1f8b9f=_0xb74b72;}else _0x4eea53['isRemoved']?(_0x1f8b9f++,_0x271faa['push'](_0x4eea53)):(_0x4bce2c++,_0x271faa['push'](_0x2924ef));}}return _0x271faa;}['_markSuggestions'](_0x3eb276,_0x43bffa){const _0x141b96=[];for(let _0x2f123c=0x0;_0x2f123c<_0x3eb276['length'];_0x2f123c++){for(let _0x5495a6=0x0;_0x5495a6<_0x3eb276[_0x2f123c]['markersStart']['length'];_0x5495a6++){const _0x3bea38=_0x3eb276[_0x2f123c]['markersStart'][_0x5495a6];if(!_0x43bffa['has'](_0x3bea38))continue;const {group:_0x26cce1,type:_0x719853,authorId:_0x28b978}=_0x108a0c(_0x3bea38);'revision-suggestion'!=_0x26cce1||'insertion'!=_0x719853&&'deletion'!=_0x719853||(_0x141b96['unshift']({'type':_0x719853,'name':_0x3bea38,'userId':_0x28b978}),_0x3eb276[_0x2f123c]['markersStart']['splice'](_0x5495a6,0x1),_0x5495a6--);}_0x3e9078(_0x3eb276[_0x2f123c]);for(let _0x28cbf1=0x0;_0x28cbf1<_0x3eb276[_0x2f123c]['markersEnd']['length'];_0x28cbf1++){const _0xeb821f=_0x3eb276[_0x2f123c]['markersEnd'][_0x28cbf1];if(!_0x43bffa['has'](_0xeb821f))continue;const {group:_0x5d32bc,type:_0x432cdf}=_0x108a0c(_0xeb821f);if('revision-suggestion'!=_0x5d32bc||'insertion'!=_0x432cdf&&'deletion'!=_0x432cdf)continue;_0x3eb276[_0x2f123c]['markersEnd']['splice'](_0x28cbf1,0x1),_0x28cbf1--;const _0x504f9b=_0x141b96['findIndex'](_0x5a0552=>_0x5a0552['name']==_0xeb821f);_0x504f9b>-0x1&&_0x141b96['splice'](_0x504f9b,0x1);}}function _0x108a0c(_0x166447){const _0xdad337=_0x166447['split'](':');return{'group':_0xdad337[0x0],'type':_0xdad337[0x1],'subType':_0xdad337['length']>=0x5?_0xdad337[0x2]:null,'id':_0xdad337['length']<0x5?_0xdad337[0x2]:_0xdad337[0x3],'authorId':_0xdad337['length']<0x5?_0xdad337[0x3]:_0xdad337[0x4],'markerCount':0x6==_0xdad337['length']?_0xdad337[0x5]:null};}function _0x3e9078(_0x359658){for(let _0xd4aec6=0x0;_0xd4aec6<_0x141b96['length'];_0xd4aec6++){if(_0x359658['isAdded']&&'insertion'==_0x141b96[_0xd4aec6]['type'])return _0x359658['isAddSuggestion']=_0x141b96[_0xd4aec6],void delete _0x359658['isAdded'];if(!_0x359658['isAdded']&&!_0x359658['isRemoved']&&'deletion'==_0x141b96[_0xd4aec6]['type'])return void(_0x359658['isRemoveSuggestion']=_0x141b96[_0xd4aec6]);}}}['_setDistance'](_0x4c7d63,_0x5ef11a){let _0x1f42b4=0x0,_0x13ab6c=!0x1;const _0x4a7e81=new Map();for(const _0x27f69a of _0x4c7d63)_0x27f69a[_0x5ef11a]?_0x13ab6c&&(_0x1f42b4++,_0x13ab6c=!0x1):(_0x1f42b4++,_0x13ab6c=!0x0),_0x4a7e81['set'](_0x27f69a['id'],_0x1f42b4);for(let _0xb854da=0x0;_0xb854da<_0x4c7d63['length'];_0xb854da++){if('isRemoved'==_0x5ef11a&&_0x4c7d63[_0xb854da]['isAdded']||'isAdded'==_0x5ef11a&&_0x4c7d63[_0xb854da]['isRemoved'])continue;if('text'==_0x4c7d63[_0xb854da]['type']){_0x4c7d63[_0xb854da]['distance']=0x0;continue;}const _0x1a44f1=_0x4a7e81['get'](_0x4c7d63[_0xb854da]['pairId']),_0x4a0181=_0x4a7e81['get'](_0x4c7d63[_0xb854da]['id']);_0x4c7d63[_0xb854da]['distance']=_0x1a44f1-_0x4a0181;}}['_getRevisionsRange'](_0x247cfa,_0x2f0db5,_0x37a4a0=!0x1){const _0x2de6a1=[];let _0x2d0be9=this['repository']['getIndex'](_0x247cfa),_0xdc5767=this['repository']['getIndex'](_0x2f0db5);for(-0x1==_0xdc5767&&(_0xdc5767=this['repository']['_revisions']['length'],_0x37a4a0=!0x1);_0x2d0be9<_0xdc5767;)_0x2de6a1['push'](this['repository']['getRevision'](_0x2d0be9)),_0x2d0be9++;return _0x37a4a0&&_0x2de6a1['push'](this['repository']['getRevision'](_0x2d0be9)),_0x2de6a1;}['_threeWayMerge'](_0x5d196d,_0x2f3254,_0x34bc8b,_0x51c9dd){const _0x554105=this['editor']['model']['schema'];let _0x4feda3=_0x2f3254;for(;_0x5d196d[_0x4feda3]&&_0x5d196d[_0x4feda3]['isAdded'];)_0x4feda3++;let _0x7d2317=_0x51c9dd;for(;_0x34bc8b[_0x7d2317]&&_0x34bc8b[_0x7d2317]['isRemoved'];)_0x7d2317++;_0x118c0b(_0x5d196d,_0x2f3254,_0x4feda3),_0x118c0b(_0x34bc8b,_0x51c9dd,_0x7d2317);const _0x5f5729=_0x34bc8b['slice'](_0x51c9dd,_0x7d2317)['concat'](_0x5d196d['slice'](_0x2f3254,_0x4feda3));return _0x5f5729['sort']((_0x2174ee,_0x449bc0)=>_0x2174ee['side']!=_0x449bc0['side']?_0x2174ee['side']-_0x449bc0['side']:_0x2174ee['level']!=_0x449bc0['level']?_0x2174ee['level']-_0x449bc0['level']:_0x2174ee['distance']!=_0x449bc0['distance']?_0x449bc0['distance']-_0x2174ee['distance']:!!_0x2174ee['isAdded']!=!!_0x449bc0['isAdded']?-0x1==_0x2174ee['side']||0x0==_0x2174ee['side']?_0x2174ee['isAdded']?-0x1:0x1:_0x2174ee['isAdded']?0x1:-0x1:_0x2174ee['index']-_0x449bc0['index']),{'commonTape':_0x5f5729,'iEnd':_0x4feda3,'jEnd':_0x7d2317};function _0x118c0b(_0x5b7f6d,_0x163e7f,_0x38a112){let _0x48ecef=-0x1,_0x5b97dd=Number['POSITIVE_INFINITY'],_0x395072=!0x0;for(let _0x5b5f08=_0x163e7f;_0x5b5f08<_0x38a112;_0x5b5f08++)if(_0x554105['isInline'](_0x5b7f6d[_0x5b5f08]['item'])||(_0x395072=!0x1),_0x5b7f6d[_0x5b5f08]['item']['startIndex']<_0x163e7f&&(_0x48ecef=_0x5b5f08),_0x5b7f6d[_0x5b5f08]['item']['endIndex']>=_0x38a112){_0x5b97dd=_0x5b5f08;break;}_0x395072&&(_0x48ecef=_0x38a112-0x1);for(let _0x5edab9=_0x163e7f;_0x5edab9<_0x38a112;_0x5edab9++)_0x5b7f6d[_0x5edab9]['side']=_0x5edab9<=_0x48ecef?-0x1:_0x5edab9<_0x5b97dd?0x0:0x1,_0x5b7f6d[_0x5edab9]['index']=_0x5edab9;let _0x4db659=0x0;for(let _0x1b94bc=_0x163e7f;_0x1b94bc<=_0x48ecef;_0x1b94bc++)0x0==_0x5b7f6d[_0x1b94bc]['distance']?_0x5b7f6d[_0x1b94bc]['level']=_0x4db659:(_0x4db659++,_0x5b7f6d[_0x1b94bc]['level']=_0x4db659,_0x4db659++);for(let _0x4ba956=_0x163e7f;_0x4ba956<_0x38a112;_0x4ba956++)0x0==_0x5b7f6d[_0x4ba956]['side']&&(_0x5b7f6d[_0x4ba956]['level']=_0x4db659);_0x4db659=0x0;for(let _0x388029=_0x38a112-0x1;_0x388029>=_0x5b97dd;_0x388029--)0x0==_0x5b7f6d[_0x388029]['distance']?_0x5b7f6d[_0x388029]['level']=_0x4db659:(_0x4db659--,_0x5b7f6d[_0x388029]['level']=_0x4db659,_0x4db659--);}}['_fixObsoleteTags'](_0x4e981e){const _0x58382f=new Map(),_0x387d66=this['editor']['model']['schema'];for(let _0x1db777=0x1;_0x1db777<_0x4e981e['length'];_0x1db777++){let _0x5bb82b,_0x374a3a,_0x4acf0d;const _0x5c5011=_0x4e981e[_0x1db777],_0x222b81=_0x4e981e[_0x1db777-0x1];if('text'==_0x5c5011['type'])continue;if(_0x5c5011['type']!=_0x222b81['type'])continue;if(!_0x387d66['isBlock'](_0x222b81['item'])||_0x387d66['isLimit'](_0x222b81['item']))continue;if(!_0x387d66['isBlock'](_0x5c5011['item'])||_0x387d66['isLimit'](_0x5c5011['item']))continue;if((_0x4e981e[_0x1db777]['isAdded']||_0x4e981e[_0x1db777]['isAddSuggestion'])&&_0x4e981e[_0x1db777-0x1]['isRemoved'])_0x5bb82b=_0x4e981e[_0x1db777],_0x374a3a=_0x4e981e[_0x1db777-0x1],_0x4acf0d=_0x1db777-0x1;else{if(!_0x4e981e[_0x1db777]['isRemoved']||!_0x4e981e[_0x1db777-0x1]['isAdded']&&!_0x4e981e[_0x1db777-0x1]['isAddSuggestion'])continue;_0x5bb82b=_0x4e981e[_0x1db777-0x1],_0x374a3a=_0x4e981e[_0x1db777],_0x4acf0d=_0x1db777;}const _0x53c127=_0x5bb82b['level']==_0x374a3a['level'],_0x182f6e=Math['abs'](_0x5bb82b['level'])<Math['abs'](_0x374a3a['level'])&&0x0==_0x374a3a['distance'];(_0x53c127||_0x182f6e)&&(_0x58382f['set'](_0x374a3a['id'],_0x5bb82b['id']),_0x4e981e['splice'](_0x4acf0d,0x1),_0x1db777--,_0x5bb82b['isAdded']=!0x1);}for(let _0x1738fe=0x0;_0x1738fe<_0x4e981e['length'];_0x1738fe++)_0x58382f['has'](_0x4e981e[_0x1738fe]['pairId'])&&(_0x4e981e[_0x1738fe]['pairId']=_0x58382f['get'](_0x4e981e[_0x1738fe]['pairId']));}['_removeMissingPairs'](_0x527836){const _0x83fe5c=new Set(_0x527836['map'](_0x19fea6=>_0x19fea6['id']));for(let _0x1e08b8=0x0;_0x1e08b8<_0x527836['length'];_0x1e08b8++)_0x83fe5c['has'](_0x527836[_0x1e08b8]['pairId'])||0x0==_0x527836[_0x1e08b8]['distance']||(_0x527836[_0x1e08b8]['isIncorrect']=!0x0);return _0x527836['filter'](_0x205462=>!_0x205462['isIncorrect']);}['_markMismatchedRemovedTags'](_0x13acea){const _0x31f46a=new Set();for(let _0x2bf830=0x0;_0x2bf830<_0x13acea['length'];_0x2bf830++){if(_0x31f46a['has'](_0x13acea[_0x2bf830]['id'])&&_0x13acea[_0x2bf830]['isRemoved']&&(_0x13acea[_0x2bf830]['isIncorrect']=!0x0),_0x13acea[_0x2bf830]['isIncorrect'])continue;if(0x0==_0x13acea[_0x2bf830]['distance'])continue;if('elementStart'!=_0x13acea[_0x2bf830]['type'])continue;if(null==_0x13acea[_0x2bf830]['pairId'])continue;let _0x1fe3e9=_0x2bf830+0x1,_0x577dbb=0x0;for(;_0x13acea[_0x1fe3e9]['id']!=_0x13acea[_0x2bf830]['pairId'];)'elementStart'==_0x13acea[_0x1fe3e9]['type']?_0x577dbb++:'elementEnd'==_0x13acea[_0x1fe3e9]['type']&&_0x577dbb--,_0x1fe3e9++;if(0x0!=_0x577dbb){if(_0x13acea[_0x2bf830]['isRemoved'])_0x13acea[_0x2bf830]['isIncorrect']=!0x0;else{for(;_0x1fe3e9!=_0x2bf830;)_0x13acea[_0x1fe3e9]['isRemoved']&&0x0!=_0x13acea[_0x1fe3e9]['distance']&&(_0x13acea[_0x1fe3e9]['isIncorrect']=!0x0,_0x31f46a['add'](_0x13acea[_0x1fe3e9]['pairId'])),_0x1fe3e9--;}}}return _0x13acea['filter'](_0x3e80ed=>!_0x3e80ed['isIncorrect']);}['_removeUnsupportedChanges'](_0x3bf9a5){const _0x5cd663=this['editor']['model']['schema'];for(let _0xad715f=0x0;_0xad715f<_0x3bf9a5['length'];_0xad715f++){if(!(_0x3bf9a5[_0xad715f]['isAdded']||_0x3bf9a5[_0xad715f]['isAddSuggestion']||_0x3bf9a5[_0xad715f]['isRemoved']||_0x3bf9a5[_0xad715f]['isRemoveSuggestion']))continue;if(0x0==_0x3bf9a5[_0xad715f]['distance'])continue;const _0x1f8386=_0x3bf9a5[_0xad715f]['item'];_0x5cd663['isBlock'](_0x1f8386)||_0x5cd663['isLimit'](_0x1f8386)||(_0x3bf9a5[_0xad715f]['isAdded']&&delete _0x3bf9a5[_0xad715f]['isAdded'],_0x3bf9a5[_0xad715f]['isAddSuggestion']&&delete _0x3bf9a5[_0xad715f]['isAddSuggestion'],_0x3bf9a5[_0xad715f]['isRemoveSuggestion']&&delete _0x3bf9a5[_0xad715f]['isRemoveSuggestion'],_0x3bf9a5[_0xad715f]['isRemoved']&&(_0x3bf9a5[_0xad715f]['isIncorrect']=!0x0));}return _0x3bf9a5['filter'](_0x33fc4f=>!_0x33fc4f['isIncorrect']);}['_makeModelFromTape'](_0x1f855c,_0x1c7ebf,_0x3eebc0){const _0x1e5fe1=new mt(),_0x726009=[],_0x5befa9=new Map(),_0x25ffc7=this['editor']['model'],_0x21dd0e=_0x25ffc7['schema'],_0x50a16a=[_0x1e5fe1],_0x6a6d5e={},_0x5205f7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x496345=null;const _0x3d9141=[0x0];for(let _0x23efcf=0x0;_0x23efcf<_0x1f855c['length'];_0x23efcf++)if('elementStart'===_0x1f855c[_0x23efcf]['type']){_0x1f855c[_0x23efcf]['previousPosition']=_0x25ffc7['createPositionFromPath'](_0x1e5fe1,_0x3d9141);const _0x707145=new ft(_0x1f855c[_0x23efcf]['item']['name'],_0x1f855c[_0x23efcf]['item']['getAttributes']());_0x50a16a[0x0]['_appendChild'](_0x707145),_0x3d9141['push'](0x0),_0x50a16a['unshift'](_0x707145),_0x1f855c[_0x23efcf]['nextPosition']=_0x25ffc7['createPositionFromPath'](_0x1e5fe1,_0x3d9141);}else'elementEnd'===_0x1f855c[_0x23efcf]['type']?(_0x50a16a['shift'](),_0x1f855c[_0x23efcf]['previousPosition']=_0x25ffc7['createPositionFromPath'](_0x1e5fe1,_0x3d9141),_0x3d9141['pop'](),_0x3d9141[_0x3d9141['length']-0x1]++,_0x1f855c[_0x23efcf]['nextPosition']=_0x25ffc7['createPositionFromPath'](_0x1e5fe1,_0x3d9141)):(_0x1f855c[_0x23efcf]['previousPosition']=_0x25ffc7['createPositionFromPath'](_0x1e5fe1,_0x3d9141),_0x496345?_0x496345['_data']+=_0x1f855c[_0x23efcf]['item']['data']:_0x496345=new wt(_0x1f855c[_0x23efcf]['item']['data'],_0x1f855c[_0x23efcf]['item']['getAttributes']()),_0x1f855c[_0x23efcf+0x1]&&'text'===_0x1f855c[_0x23efcf+0x1]['type']&&_0x2d8876(_0x496345,_0x1f855c[_0x23efcf+0x1]['item'])||(_0x50a16a[0x0]['_appendChild'](_0x496345),_0x496345=null),_0x3d9141[_0x3d9141['length']-0x1]+=_0x1f855c[_0x23efcf]['item']['offsetSize'],_0x1f855c[_0x23efcf]['nextPosition']=_0x25ffc7['createPositionFromPath'](_0x1e5fe1,_0x3d9141));for(let _0x5ece30=0x0;_0x5ece30<_0x1f855c['length'];_0x5ece30++){const _0x46deaa=_0x1f855c[_0x5ece30]['previousPosition'],_0x45a620=_0x1f855c[_0x5ece30]['nextPosition'];for(const _0x39e7e2 of _0x1f855c[_0x5ece30]['markersStart'])_0x5befa9['set'](_0x39e7e2,{'start':_0x46deaa,'end':null});_0x19a8e1('isRemoveSuggestion',_0x5ece30,_0x46deaa,_0x45a620),_0x19a8e1('isAddSuggestion',_0x5ece30,_0x46deaa,_0x45a620),_0x19a8e1('isRemoved',_0x5ece30,_0x46deaa,_0x45a620),_0x19a8e1('isAdded',_0x5ece30,_0x46deaa,_0x45a620);for(const _0x2e01df of _0x1f855c[_0x5ece30]['markersEnd']){_0x5befa9['get'](_0x2e01df)['end']=_0x45a620;}}for(const [_0x32dc2b,_0x3e1ebb]of _0x5befa9){const _0x319cd0=this['editor']['model']['createRange'](_0x3e1ebb['start'],_0x3e1ebb['end']);_0x1e5fe1['markers']['set'](_0x32dc2b,_0x319cd0);}return _0x726009['sort']((_0x50ea11,_0x5c487d)=>{const _0x455126=_0x1e5fe1['markers']['get']('revision:'+_0x50ea11['id']),_0x355b33=_0x1e5fe1['markers']['get']('revision:'+_0x5c487d['id']);return _0x455126['start']['isBefore'](_0x355b33['start'])?-0x1:_0x455126['start']['isAfter'](_0x355b33['start'])?0x1:_0x455126['end']['isBefore'](_0x355b33['end'])?-0x1:_0x455126['end']['isAfter'](_0x355b33['end'])?0x1:'add'===_0x50ea11['type']?-0x1:0x1;}),{'root':_0x1e5fe1,'changes':_0x726009};function _0x19a8e1(_0x244bb2,_0x338dd4,_0x40bc36,_0x404a5f){const _0x5ae046=!!_0x1f855c[_0x338dd4][_0x244bb2],_0x1769ac=_0x5ae046?_0x1f855c[_0x338dd4][_0x244bb2]['userId']:null,_0x4383f3=_0x338dd4===_0x1f855c['length']-0x1,_0x475108=_0x5205f7[_0x244bb2][0x0],_0xd4957b=_0x21dd0e['isObject'](_0x1f855c[_0x338dd4]['item']);!_0x6a6d5e[_0x244bb2]&&_0x5ae046?_0x6a6d5e[_0x244bb2]={'start':_0x40bc36,'tapeItem':_0x1f855c[_0x338dd4],'userId':_0x1769ac,'type':_0x244bb2}:_0x6a6d5e[_0x244bb2]&&!_0x5ae046?(_0x6a6d5e[_0x244bb2]['end']=_0x40bc36,_0x6b4ff(_0x6a6d5e[_0x244bb2]),_0x6a6d5e[_0x244bb2]=null):_0x6a6d5e[_0x244bb2]&&_0x5ae046&&_0x6a6d5e[_0x244bb2]['userId']!==_0x1769ac&&(_0x6a6d5e[_0x244bb2]['end']=_0x40bc36,_0x475108&&_0x475108['userId']===_0x6a6d5e[_0x244bb2]['userId']||_0x6b4ff(_0x6a6d5e[_0x244bb2]),_0x6a6d5e[_0x244bb2]={'start':_0x40bc36,'tapeItem':_0x1f855c[_0x338dd4],'userId':_0x1769ac,'type':_0x244bb2}),_0x6a6d5e[_0x244bb2]&&_0xd4957b&&('elementStart'!==_0x1f855c[_0x338dd4]['type']||_0x475108&&_0x475108['userId']===_0x1769ac||_0x5205f7[_0x244bb2]['unshift']({'userId':_0x1769ac,'object':_0x1f855c[_0x338dd4]['item'],'change':_0x6a6d5e[_0x244bb2]}),'elementEnd'===_0x1f855c[_0x338dd4]['type']&&_0x475108&&_0x475108['object']===_0x1f855c[_0x338dd4]['item']&&(_0x5205f7[_0x244bb2]['shift'](),_0x6a6d5e[_0x244bb2]=_0x475108['change'])),_0x6a6d5e[_0x244bb2]&&_0x4383f3&&(_0x6a6d5e[_0x244bb2]['end']=_0x404a5f,_0x6b4ff(_0x6a6d5e[_0x244bb2]),_0x6a6d5e[_0x244bb2]=null);}function _0x6b4ff({start:_0x124928,end:_0x330328,tapeItem:_0x48fe2c,userId:_0x43886b,type:_0x6ed64e}){const _0x3e69e2=_0x48fe2c['item'],_0x4161b3=_0x25ffc7['schema']['isBlock'](_0x3e69e2)&&!_0x25ffc7['schema']['isLimit'](_0x3e69e2),_0x5d9f9a=_0x124928['nodeAfter']==_0x330328['parent']&&_0x330328['isAtStart'];if(_0x4161b3&&_0x5d9f9a)return;const _0x33eb87=_0x25ffc7['createRange'](_0x124928,_0x330328),_0x2a6fbe=_0x1c7ebf['get'](_0x43886b),_0x105684=new r({'author':_0x2a6fbe,'type':'isAdded'==_0x6ed64e||'isAddSuggestion'==_0x6ed64e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x6ed64e||'isRemoveSuggestion'==_0x6ed64e},'createdAt':new Date(),'rootName':_0x3eebc0});_0x726009['push'](_0x105684),_0x1e5fe1['markers']['set']('revision:'+_0x105684['id'],_0x33eb87);}function _0x2d8876(_0x354592,_0x441d18){const _0x516928=_0x354592['getAttributes'](),_0xda7cd=_0x441d18['getAttributes']();for(const _0x2d7032 of _0x516928){if(_0x2d7032[0x1]!==_0x441d18['getAttribute'](_0x2d7032[0x0]))return!0x1;_0xda7cd['next']();}return _0xda7cd['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x234494=>{const _0x413f4b=_0x234494['markerName']['split'](':')[0x1],_0x2f7590=this['_getChangeFromId'](_0x413f4b);if(!_0x2f7590)return null;const _0x22612e='add'==_0x2f7590['type']?'insertion':'deletion',_0x206a33=['ck-suggestion-marker','ck-suggestion-marker-'+_0x22612e];return _0x2f7590['data']['isSuggestion']&&_0x206a33['push']('ck-suggestion-marker-'+_0x22612e+'-new'),this['activeChange']==_0x2f7590&&_0x206a33['push']('ck-suggestion-marker--active'),{'classes':_0x206a33,'attributes':{'data-change-id':_0x413f4b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3a2b67=>{_0x3a2b67['on']('element:pre',(_0x3df31b,_0x5cb305,_0xc9acef)=>{const _0x551549=_0x5cb305['viewItem']['getChild'](0x0);if(!_0x551549||!_0x551549['is']('element','code'))return;if(!_0xc9acef['consumable']['consume'](_0x551549,{'attributes':['vid_start','vid_end']}))return;const _0x4d35c6=_0x5cb305['modelRange']['start']['nodeAfter'];_0xc9acef['writer']['setAttribute']('vid_start',_0x551549['getAttribute']('vid_start'),_0x4d35c6),_0xc9acef['writer']['setAttribute']('vid_end',_0x551549['getAttribute']('vid_end'),_0x4d35c6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x446c1f=>{_0x446c1f['on']('element',(_0x91980a,_0x49440f,_0x5d71fa)=>{if(!_0x5d71fa['consumable']['consume'](_0x49440f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x49440f['modelRange']['isCollapsed'])return;const _0x4cddec=_0x49440f['modelRange']['start']['nodeAfter'];_0x4cddec['hasAttribute']('vid_start')||_0x4cddec['hasAttribute']('vid')||(_0x5d71fa['writer']['setAttribute']('vid_start',_0x49440f['viewItem']['getAttribute']('vid_start'),_0x4cddec),_0x5d71fa['writer']['setAttribute']('vid_end',_0x49440f['viewItem']['getAttribute']('vid_end'),_0x4cddec));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x261e9a=>_0x261e9a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x22d3b9,[,_0x4712aa])=>{['vid_start','vid_end','vid']['includes'](_0x4712aa)&&(_0x22d3b9['return']=!0x0,_0x22d3b9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x253de2=>{_0x253de2['on']('attribute:vid',(_0x445045,_0x120e80,_0x4c29e1)=>{if('\x20'!=_0x120e80['item']['data']||_0x120e80['item']['parent']['maxOffset']>0x1)return;if(!_0x4c29e1['consumable']['consume'](_0x120e80['item'],_0x445045['name']))return;const _0x142659=_0x4c29e1['writer'],_0x22f089=_0x4c29e1['mapper']['toViewRange'](_0x120e80['range']);_0x142659['wrap'](_0x22f089,_0x142659['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x341f11){const _0x4ae600=_0x341f11['plugins']['get']('RevisionViewer');return(_0x2d0943,_0xa0d4f4,_0x100444)=>{const _0x3966b4=_0xa0d4f4['markerName']['split'](':')[0x1],_0x22b838=_0x4ae600['_getChangeFromId'](_0x3966b4);if(!_0x22b838)return null;const _0xd97a4b='add'==_0x22b838['type']?'split':'merge';if(!_0x100444['consumable']['test'](_0xa0d4f4['markerRange'],_0x2d0943['name']))return;const _0x4ceb68=_0xa0d4f4['markerRange']['getWalker'](),_0x3d481f=_0xa0d4f4['markerRange']['start'],_0x30aacd=_0x341f11['model']['schema'];let _0x375c72=null,_0x3562af=null,_0x3fb209=!0x1,_0x27d666=!0x1;for(const _0x272ede of _0x4ceb68){const _0x3e035a=_0x272ede['item'];_0x3fb209=_0x3fb209||_0x30aacd['isContent'](_0x3e035a);const _0x16b475=_0x100444['mapper']['toViewElement'](_0x3e035a);if(_0x16b475&&_0x16b475['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x272ede['type']&&(_0x30aacd['isBlock'](_0x3e035a)&&!_0x30aacd['isLimit'](_0x3e035a)&&(_0x3e035a['nextSibling']||_0x3d481f['isAtEnd']?_0x375c72&&_0x375c72['parent']==_0x3e035a||(_0x375c72=_0x3e035a,_0x42bc85(_0x272ede['previousPosition']),_0x27d666=!0x0):_0x3562af=_0x3562af||_0x272ede['previousPosition']));}function _0x42bc85(_0x132089){const _0x4570db=_0x100444['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd97a4b}),_0x8f87d=_0x100444['mapper']['toViewPosition'](_0x132089);_0x22b838['data']['isSuggestion']&&_0x100444['writer']['addClass']('ck-suggestion-marker-'+_0xd97a4b+'-new',_0x4570db),_0x4ae600['activeChange']==_0x22b838&&_0x100444['writer']['addClass']('ck-suggestion-marker--active',_0x4570db),_0x100444['writer']['insert'](_0x8f87d,_0x4570db),_0x100444['mapper']['bindElementToMarker'](_0x4570db,_0xa0d4f4['markerName']);}_0x3fb209||_0x27d666||!_0x3562af||_0x42bc85(_0x3562af);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x565951,_0x29faa4,_0x5cbc0c)=>{const _0x11eb2c=_0x5cbc0c['mapper']['markerNameToElements'](_0x29faa4['markerName']);if(_0x11eb2c){for(const _0x5e50c9 of _0x11eb2c)(_0x5e50c9['hasClass']('ck-suggestion-marker-split')||_0x5e50c9['hasClass']('ck-suggestion-marker-merge'))&&(_0x5cbc0c['mapper']['unbindElementFromMarkerName'](_0x5e50c9,_0x29faa4['markerName']),_0x5cbc0c['writer']['remove'](_0x5e50c9));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x507b25,_0x289a13,_0x3005e4)=>{const _0x44d289=_0x289a13['markerName']['split'](':')[0x1],_0xd3b2f5=this['_getChangeFromId'](_0x44d289);if(!_0xd3b2f5)return null;const _0x46b428='add'==_0xd3b2f5['type']?'split':'merge';if(_0x3005e4['consumable']['test'](_0x289a13['markerRange'],_0x507b25['name']))for(const _0x5f476e of _0x289a13['markerRange']['getItems']()){if(!_0x5f476e['is']('element','softBreak'))continue;const _0x974545=_0x3005e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46b428}),_0x1d6209=_0x3005e4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5f476e));_0xd3b2f5['data']['isSuggestion']&&_0x3005e4['writer']['addClass']('ck-suggestion-marker-'+_0x46b428+'-new',_0x974545),this['activeChange']==_0xd3b2f5&&_0x3005e4['writer']['addClass']('ck-suggestion-marker--active',_0x974545),_0x3005e4['writer']['insert'](_0x1d6209,_0x974545),_0x3005e4['mapper']['bindElementToMarker'](_0x974545,_0x289a13['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x48291c=>{for(const _0x204f7a of this['editor']['model']['document']['getRootNames']()){const _0x5d854e=this['editor']['model']['document']['getRoot'](_0x204f7a),_0x3fe039=this['editor']['editing']['view']['document']['getRoot'](_0x204f7a);if(_0x3fe039){const _0x46f91d=_0x5d854e['getAttribute']('revisionHistoryAttachChange');if(_0x48291c['removeAttribute']('data-change-id',_0x3fe039),_0x48291c['removeClass']('ck-revision-history-root-add',_0x3fe039),_0x48291c['removeClass']('ck-revision-history-root-remove',_0x3fe039),_0x48291c['removeClass']('ck-revision-history-root--active',_0x3fe039),_0x46f91d){const _0x11a6df=this['_getChangeFromId'](_0x46f91d);if(!_0x11a6df)return null;_0x48291c['setAttribute']('data-change-id',_0x46f91d,_0x3fe039),_0x48291c['addClass']('ck-revision-history-root-'+_0x11a6df['type'],_0x3fe039),this['activeChange']==_0x11a6df&&_0x48291c['addClass']('ck-revision-history-root--active',_0x3fe039);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x63616a=>'revision-comment:'+_0x63616a,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4cef27=>'revision-suggestion:'+_0x4cef27,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x131947=>({'name':'suggestion:'+_0x131947,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2cc2f4=>{const _0x432d26=_0x2cc2f4['markerName']['split'](':')[0x1];return'insertion'!=_0x432d26&&'deletion'!=_0x432d26?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x432d26]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x48a849,_0x17ae3c,_0x16b740)=>{const _0x34e13e=_0x16b740['mapper']['markerNameToElements'](_0x17ae3c['markerName']);if(_0x34e13e){for(const _0x3271a3 of _0x34e13e)_0x3271a3['is']('uiElement')&&(_0x16b740['mapper']['unbindElementFromMarkerName'](_0x3271a3,_0x17ae3c['markerName']),_0x16b740['writer']['remove'](_0x3271a3));}},{'priority':'high'});}['_getChangeFromId'](_0xc03c8d){return this['_changeIdToChange']['get'](_0xc03c8d);}['_getViewForChange'](_0x5c3e9c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5c3e9c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x521af8,_0x1cdd73,_0x51ebae,_0x24306d)=>{_0x24306d&&this['_balloon']['remove'](_0x24306d),_0x51ebae&&(this['_balloon']['add']({'view':_0x51ebae,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4a41c2=this['editor']['editing'],_0x3a93a2=this['_getChangeFromId'](_0x51ebae['changeId']);let _0x159d9d;if(_0x3a93a2['data']['isOnRoot']){const _0x245620=_0x4a41c2['view']['getDomRoot'](_0x3a93a2['rootName']);_0x159d9d=Array['from'](_0x245620['getClientRects']());}else{const _0x1abafd=this['editor']['model']['markers']['get']('revision:'+_0x51ebae['changeId']);_0x159d9d=Array['from'](_0x4a41c2['mapper']['markerNameToElements'](_0x1abafd['name']))['map'](_0x5bd9b8=>_0x4a41c2['view']['domConverter']['mapViewToDom'](_0x5bd9b8))['map'](_0x182454=>Array['from'](_0x182454['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x159d9d[0x0];return _0x159d9d['find'](_0x3052b4=>_0x3052b4['top']-0x3<=this['_activeViewTarget']['y']&&_0x3052b4['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3052b4['left']-0x3<=this['_activeViewTarget']['x']&&_0x3052b4['right']+0x3>=this['_activeViewTarget']['x'])||_0x159d9d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x27b300,_0x499ad2,_0x2215da,_0x4f7ef0)=>{this['activeView']=_0x2215da?this['_getViewForChange'](_0x2215da):null,this['editor']['model']['change'](()=>{const _0x17c167=this['editor']['editing'];_0x4f7ef0&&(_0x4f7ef0['data']['isOnRoot']?_0x17c167['view']['change'](_0x3af184=>{_0x3af184['removeClass']('ck-revision-history-root--active',_0x17c167['view']['document']['getRoot'](_0x4f7ef0['rootName']));}):_0x17c167['reconvertMarker']('revision:'+_0x4f7ef0['id'])),_0x2215da&&(_0x2215da['data']['isOnRoot']?_0x17c167['view']['change'](_0x542f42=>{_0x542f42['addClass']('ck-revision-history-root--active',_0x17c167['view']['document']['getRoot'](_0x2215da['rootName']));}):_0x17c167['reconvertMarker']('revision:'+_0x2215da['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2d484c,_0x2e4d0a)=>{if(this['activeChange'])return;const _0x1b41fb=this['_findChangeIdFromDomTarget'](_0x2e4d0a['target']),_0x1eec19=this['_changeIdToChange']['get'](_0x1b41fb);_0x1eec19?(this['_activeViewTarget']={'x':_0x2e4d0a['domEvent']['x'],'y':_0x2e4d0a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1eec19)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x11c517,_0x449f7a)=>{const _0x17f027=this['_findChangeIdFromDomTarget'](_0x449f7a['target']),_0x3988d1=this['_changeIdToChange']['get'](_0x17f027);_0x3988d1?(this['_activeViewTarget']={'x':_0x449f7a['domEvent']['x'],'y':_0x449f7a['domEvent']['y']},_0x3988d1===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3988d1):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x377cfe){do{const _0x36c0d7=_0x377cfe['getAttribute']('data-change-id');if(_0x36c0d7)return _0x36c0d7;_0x377cfe=_0x377cfe['parent'];}while(_0x377cfe);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4b86c3=>{for(const _0x35857a of this['editor']['model']['markers'])_0x4b86c3['removeMarker'](_0x35857a);});}}function Z(_0x379a91,_0x5d6400){return(_0x4a1086,_0x24f646,_0x1a966e)=>{if(!_0x1a966e['consumable']['test'](_0x24f646['markerRange'],_0x4a1086['name']))return;const _0x168e9e=_0x24f646['markerRange']['getWalker'](),_0x509da0=_0x24f646['markerRange']['start'],_0x34cce6=_0x379a91['model']['schema'];let _0x545ece=null,_0x372d01=null,_0xa61600=!0x1,_0x34e282=!0x1;for(const _0x530dc4 of _0x168e9e){const _0x494ac0=_0x530dc4['item'];_0xa61600=_0xa61600||_0x34cce6['isContent'](_0x494ac0);const _0x5da8e1=_0x1a966e['mapper']['toViewElement'](_0x494ac0);if(_0x5da8e1&&_0x5da8e1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x530dc4['type']&&(_0x34cce6['isBlock'](_0x494ac0)&&!_0x34cce6['isLimit'](_0x494ac0)&&(_0x494ac0['nextSibling']||_0x509da0['isAtEnd']?_0x545ece&&_0x545ece['parent']==_0x494ac0||(_0x545ece=_0x494ac0,_0x21303c(_0x530dc4['previousPosition']),_0x34e282=!0x0):_0x372d01=_0x372d01||_0x530dc4['previousPosition']));}function _0x21303c(_0x251b94){const _0x1475e6=_0x1a966e['mapper']['toViewPosition'](_0x251b94),_0x1c6759=_0x1a966e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5d6400});_0x1a966e['writer']['insert'](_0x1475e6,_0x1c6759),_0x1a966e['mapper']['bindElementToMarker'](_0x1c6759,_0x24f646['markerName']);}_0xa61600||_0x34e282||!_0x372d01||_0x21303c(_0x372d01);};}class _t extends _0x3d8b8b{constructor(_0x2df3c5){super(_0x2df3c5);const _0x4414bb=_0x2df3c5['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4414bb,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4414bb,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x12ff51=this['editor'],_0x5899f9=_0x12ff51['plugins']['get'](d),_0x350a1b=_0x5899f9['isReady']?_0x5899f9['diff']['newRevisionId']:null;_0x12ff51['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x350a1b);}['refresh'](){const {isReady:_0x1973a3,isEnabled:_0x48c059,repository:_0x4f52ee,diff:_0xa9dc19}=this['editor']['plugins']['get'](d),_0x43e0d1=_0xa9dc19&&_0x4f52ee['getLaterVisibleRevision'](_0xa9dc19['newRevisionId']);this['isEnabled']=_0x1973a3&&_0x48c059&&Boolean(_0x43e0d1);}}class yt extends _0x3d8b8b{['_step'];constructor(_0x3710cb,{direction:_0x2b31a5}){super(_0x3710cb);const _0x157452=_0x3710cb['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2b31a5?0x1:-0x1,this['listenTo'](_0x157452,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x157452,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x157452,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x18de02=this['editor'],_0x1ea217=_0x18de02['plugins']['get'](d),{isNavigationMode:_0x5d935c,currentChangeNumber:_0x5d9bc2}=_0x1ea217;let _0x5551bd;if(_0x1ea217['activeChange']=_0x5d935c?_0x1ea217['diff']['changes']['get'](_0x5d9bc2+this['_step']):_0x1ea217['diff']['changes']['first'],_0x1ea217['activeChange']['data']['isOnRoot'])_0x5551bd=_0x18de02['editing']['view']['getDomRoot'](_0x1ea217['activeChange']['rootName']);else{const _0x518f4a=_0x18de02['model']['markers']['get']('revision:'+_0x1ea217['activeChange']['id']);_0x5551bd=_0x26b1fd(_0x18de02['editing'],_0x518f4a);}_0x3ef4e9({'target':_0x5551bd,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x51bc1c,currentChangeNumber:_0x12f1e2,numberOfChanges:_0x42c025,isReady:_0x5b40e8,isEnabled:_0x28eada}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x28eada&&_0x5b40e8&&_0x42c025)&&(!_0x51bc1c||(0x1===this['_step']?_0x12f1e2<_0x42c025-0x1:_0x12f1e2>0x0));}}class _i extends _0x473b73{constructor(_0x2af83a){super(_0x2af83a);const _0x2d44a5=this['bindTemplate'],_0xcc6aed=new _0x1a7b95(_0x2af83a),_0x5ef84c=new _0x1a7b95(_0x2af83a);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',(_0x10bd1f,_0x325e54)=>_0x10bd1f&&_0x325e54>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x215963,_0x11ce3b,_0x837592,_0x4881eb)=>{if(!_0x215963)return m(_0x2af83a,'Loading...');if(!_0x837592)return m(_0x2af83a,'No\x20changes');const _0x39d650=m(_0x2af83a,'NUMBER_OF_CHANGES',_0x837592);return _0x4881eb?m(_0x2af83a,'X_OF_Y_CHANGES',[_0x11ce3b+0x1,_0x837592]):_0x39d650;}),_0xcc6aed['set']({'label':m(_0x2af83a,'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'}),_0x5ef84c['set']({'label':m(_0x2af83a,'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'}),_0xcc6aed['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5ef84c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xcc6aed['on']('execute',()=>this['fire']('execute','backward')),_0x5ef84c['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',_0x2d44a5['if']('_isStatusLabelVisible','ck-hidden',_0x3f26d9=>!_0x3f26d9)]},'children':[{'text':_0x2d44a5['to']('isNavigationMode',_0x2f05a7=>_0x2f05a7?m(_0x2af83a,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2af83a,'Total')+':\x20')}]},{'text':_0x2d44a5['to']('_statusText')}]},new _0x4ac7fb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xcc6aed,_0x5ef84c]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x7756cd{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4edb38=this['editor']['editing']['view'];_0x4edb38['change'](_0x3c7567=>{for(const _0x262803 of _0x4edb38['document']['roots'])_0x3c7567['addClass'](ce,_0x262803);});}['hide'](){const _0x2d4cd6=this['editor']['editing']['view'];_0x2d4cd6['change'](_0xfa1569=>{for(const _0x44375b of _0x2d4cd6['document']['roots'])_0xfa1569['removeClass'](ce,_0x44375b);});}}class g extends _0x7756cd{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x1f47d3=this['editor'],_0x162efc=_0x1f47d3['plugins']['get'](d),_0x597625=_0x1f47d3['plugins']['get'](le);_0x1f47d3['ui']['componentFactory']['add']('exitToEditing',_0x43c369=>{const _0x361c06=new _0x1a7b95(_0x43c369);return _0x361c06['set']({'label':m(_0x43c369,'Back\x20to\x20editing'),'icon':_0x2a6eef['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x361c06,'execute',()=>{_0x1f47d3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x361c06;}),_0x1f47d3['ui']['componentFactory']['add']('restoreRevision',_0x353381=>{const _0x3362ed=new _0x1a7b95(_0x353381);return _0x3362ed['set']({'label':m(_0x353381,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3362ed['bind']('isEnabled')['to'](_0x1f47d3['commands']['get']('restoreRevision')),this['listenTo'](_0x3362ed,'execute',()=>_0x1f47d3['execute']('restoreRevision')),_0x3362ed;}),_0x1f47d3['ui']['componentFactory']['add']('changesNavigation',_0x440f11=>{const _0x3530e9=new _i(_0x440f11),_0x29e6ba=_0x1f47d3['commands']['get']('showPreviousChange'),_0x312824=_0x1f47d3['commands']['get']('showNextChange');return _0x3530e9['bind']('isBackwardNavigationEnabled')['to'](_0x29e6ba,'isEnabled'),_0x3530e9['bind']('isForwardNavigationEnabled')['to'](_0x312824,'isEnabled'),_0x3530e9['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x162efc),this['listenTo'](_0x3530e9,'execute',(_0x491497,_0x3e42ed)=>{_0x1f47d3['execute']('forward'===_0x3e42ed?'showNextChange':'showPreviousChange');}),_0x3530e9;}),_0x597625['show'](),_0x162efc['on']('change:isReady',(_0x2ac77c,_0x16d651,_0x5ae380)=>{_0x5ae380?_0x597625['hide']():_0x597625['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x58392c,_0x23387b){super(_0x58392c,_0x23387b);const _0x2416d8=this['bindTemplate'];this['set']({'label':m(_0x58392c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x58392c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2416d8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4ece2d=this['fieldView']['element'];this['_tooltipString']=_0x4ece2d['scrollWidth']>_0x4ece2d['clientWidth']&&_0x4ece2d['value']||'';}}class ti extends _0x473b73{constructor(_0x427a86,_0xc261fd,_0x24f09d){super(_0x427a86);const _0xba8ab4=new _0x24bc8d();_0xba8ab4['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 _0x276142=['ck','ck-revision-history-sidebar__revision-author'];_0x24f09d&&_0x276142['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2ca1b1=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x427a86,_0x24f09d?'Revision\x20creator':'Revision\x20author')},'children':[_0xba8ab4,_0xc261fd['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x276142},'children':_0x2ca1b1});}}function ni(_0x16f57e,_0x43b8f5){const _0x1c5b11=_0x16f57e['bindTemplate'],_0x37c23d=_0x16f57e['locale'],_0x2b25f4=_0xa6251b(_0x37c23d);_0x2b25f4['panelPosition']='sw';const _0x596899=function(_0xa9c191,_0x5db971){const _0x15950b=function(_0x4cefa1,_0x5b3d85){const _0x187622=_0x4cefa1['locale'],_0x4ad9bf={'Compare\x20against\x20selected':m(_0x187622,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x187622,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x187622,'Restore\x20this\x20revision')};return _0x5b3d85['map'](_0x5dc134=>{const _0x432532=_0x4ad9bf[_0x5dc134['name']];return _0x432532&&_0x432532!==_0x5dc134['name']&&(_0x5dc134['name']=_0x432532),_0x5dc134;});}(_0xa9c191,_0x5db971),_0x25b081=new _0x4cb68a();for(const _0x19eebd of _0x15950b){const _0x2941ae={'type':'button','model':new to({'label':_0x19eebd['name'],'class':_0x19eebd['class'],'withText':!0x0,'role':'menuitem','_action':_0x19eebd['action']})};_0x2941ae['model']['bind']('isEnabled')['to'](_0xa9c191,'isActionsDropdownOpen',_0x228d2c=>'function'!=typeof _0x19eebd['isEnabled']||(!_0x228d2c||_0x19eebd['isEnabled'](_0xa9c191))),_0x25b081['add'](_0x2941ae);}return _0x25b081;}(_0x16f57e,_0x43b8f5);return _0x16f57e['bind']('isActionsDropdownOpen')['to'](_0x2b25f4,'isOpen'),_0x2b25f4['buttonView']['set']({'label':m(_0x37c23d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2a6eef['threeVerticalDots']}),_0x2b25f4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1c5b11['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1c5b11['to'](_0x3a285a=>_0x3a285a['stopPropagation']())}}),_0x2b25f4['on']('execute',_0x18a38e=>{_0x16f57e['isReady']&&'function'==typeof _0x18a38e['source']['_action']&&_0x18a38e['source']['_action'](_0x16f57e);}),_0x4c7c3e(_0x2b25f4,_0x596899,{'role':'menu'}),_0x2b25f4['listenTo'](_0x16f57e,'change:isActionsDropdownOpen',(_0xdd616b,_0x2b0517,_0x548745)=>{if(_0x548745)for(const _0x4a75b4 of _0x2b25f4['listView']['items']){const _0xac0dad=_0x4a75b4['children']['first'],_0x273102=_0x43b8f5['find'](_0x30d26b=>_0x30d26b['action']===_0xac0dad['_action'])['isVisible'];_0x4a75b4['isVisible']=void 0x0===_0x273102||_0x273102(_0x16f57e);}}),_0x2b25f4;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x2dc541(_0x473b73){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4f0268,_0x437453,_0x41ecec,_0x1940e0){super(_0x4f0268);const _0x6318e9=this['bindTemplate'],_0x7316ed=function(_0x3f24d9,_0x389280){const _0x13512f=Array['from'](_0x389280['authors'])['filter'](_0x2afe83=>_0x2afe83!=_0x389280['creator']);return _0x389280['creator']&&_0x13512f['unshift'](_0x389280['creator']),_0x13512f['map'](_0x437826=>new ti(_0x3f24d9,_0x437826,_0x437826==_0x389280['creator']));}(_0x4f0268,_0x437453);this['id']=_0x437453['id'],this['_revision']=_0x437453,this['_requireRevisionName']=_0x1940e0,this['bind']('name','createdAt')['to'](_0x437453),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x239caa=>{return _0x52ef53=_0x4f0268['uiLanguage'],(_0x5cbe4e=_0x239caa)['toLocaleDateString'](_0x52ef53,{'month':'long','day':'numeric'})+',\x20'+_0x5cbe4e['toLocaleTimeString'](_0x52ef53,{'hour':'numeric','minute':'numeric'});var _0x52ef53,_0x5cbe4e;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x4f0268,_0x2432b5),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x43ea03=>_0x43ea03||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x14b05c,_0x4960e8)=>_0x14b05c&&_0x4960e8),this['revisionActionsView']=_0x41ecec&&_0x41ecec['length']?ni(this,_0x41ecec):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x6318e9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x6318e9['if']('isEnabled','ck-disabled',_0x4582e5=>!_0x4582e5),_0x6318e9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x6318e9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x6318e9['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':_0x6318e9['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':_0x7316ed}]},this['revisionActionsView']],'on':{'click':_0x6318e9['to'](_0x554dbb=>{_0x554dbb['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x342879=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x342879,'change',()=>{this['_requireRevisionName']&&!_0x342879['value']||this['fire']('setName',{'id':this['id'],'name':_0x342879['value']}),_0x342879['value']||(_0x342879['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(_0x1940bd,_0x23104e){const _0x5df848=_0x2f5ef1['fromJSDate'](_0x1940bd)['setLocale'](_0x23104e),_0x2dc892=_0x2f5ef1['local'](),_0x3cf3b0=_0x2dc892['minus']({'days':0x1})['startOf']('day');let _0x40ab2e,_0x3a3a80;return _0x5df848['hasSame'](_0x2dc892,'day')?(_0x40ab2e=_0x5df848['startOf']('day')['toJSDate'](),_0x3a3a80=_0x5df848['toRelativeCalendar']()):_0x5df848['hasSame'](_0x3cf3b0,'day')?(_0x40ab2e=_0x3cf3b0['toJSDate'](),_0x3a3a80=_0x5df848['toRelativeCalendar']()):_0x5df848['hasSame'](_0x2dc892,'week')?(_0x40ab2e=_0x5df848['startOf']('week')['toJSDate'](),_0x3a3a80=_0x5df848['weekdayLong']||''):_0x5df848['hasSame'](_0x2dc892,'year')?(_0x40ab2e=_0x5df848['startOf']('month')['toJSDate'](),_0x3a3a80=_0x5df848['monthLong']||''):(_0x40ab2e=_0x5df848['startOf']('year')['toJSDate'](),_0x3a3a80=String(_0x5df848['year'])),{'startDate':_0x40ab2e,'localizedPeriodName':_0x3a3a80};}class mi extends _0x473b73{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xa01ec1,_0x528c55,_0xe2970d,_0xd90540){super(_0xa01ec1);const _0x27388d=di(_0x528c55,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x528c55,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xe2970d,this['_requireRevisionName']=_0xd90540,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':_0x27388d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x30e891){const _0x276b47=new ai(this['locale'],_0x30e891,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x276b47);}['removeRevision'](_0x57d4cd){const _0x594c9f=this['revisionViews']['find'](_0x510ebf=>_0x510ebf['id']===_0x57d4cd['id']);this['revisionViews']['remove'](_0x594c9f);}}class as extends _0x473b73{constructor(_0x34b9cc){super(_0x34b9cc);const _0x2dd11f=new _0x24bc8d();_0x2dd11f['content']=_0x2a6eef['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2dd11f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x34b9cc,'Revision\x20history')]}]});}}class ci extends _0x473b73{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x17566f,_0x41d858,_0x2750ff,_0x4aefd8){super(_0x17566f);const _0x53a74e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x41d858,this['_revisionActions']=_0x2750ff,this['_requireRevisionName']=_0x4aefd8,this['on']('select',(_0x3b605f,_0x1ddb97)=>{this['fire']('revisionSelected',_0x1ddb97);}),this['on']('setName',(_0x35b94a,_0x5f1c15)=>{this['fire']('revisionSetName',_0x5f1c15);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x17566f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x53a74e['if']('isEnabled','ck-disabled',_0x14bc30=>!_0x14bc30)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2ee5bb of this['_revisions'])this['_addRevision'](_0x2ee5bb);this['_revisions']['on']('add',(_0x3b9240,_0xafc1ce)=>{this['_addRevision'](_0xafc1ce);}),this['_revisions']['on']('remove',(_0x1f1732,_0x4ca845)=>{this['_removeRevision'](_0x4ca845);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4fc196=>_0x4fc196['revisionViews']['map'](_0x4c1f84=>_0x4c1f84))['flat']();}['selectRevision'](_0x318ae1){for(const _0x3b8083 of this['revisionViews'])_0x318ae1&&_0x318ae1['id']===_0x3b8083['id']?_0x3b8083['select']():_0x3b8083['deselect']();}['highlightRevisions'](_0x51eb8a){for(const _0x5db89f of this['revisionViews'])_0x51eb8a['some'](({id:_0x106895})=>_0x106895===_0x5db89f['id'])?_0x5db89f['highlight']():_0x5db89f['unhighlight']();}['_addRevision'](_0x3186c4){const _0x2ef3d7=di(_0x3186c4['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4fadb6=this['timePeriodViews']['get'](0x0);_0x4fadb6&&_0x4fadb6['startDate']['getTime']()===_0x2ef3d7['getTime']()||(_0x4fadb6=new mi(this['locale'],_0x2ef3d7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4fadb6)),_0x4fadb6['addRevision'](_0x3186c4);}['_removeRevision'](_0x5cf703){const _0x18ff42=di(_0x5cf703['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x18ff42)['removeRevision'](_0x5cf703);}['_getTimePeriodViewByStartDate'](_0x4d924f){return this['timePeriodViews']['find'](_0x1e65e0=>_0x1e65e0['startDate']['getTime']()===_0x4d924f['getTime']());}}class w extends _0x7756cd{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x3df942,uid as _0x1f968a,Collection as _0x45da80,logWarning as _0x339b97,FocusTracker as _0x1f39a3,KeystrokeHandler as _0x11ba63,scrollViewportToShowTarget as _0x44e10f,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x2eb646}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3d1bef,set as _0x4c6a22,unset as _0x597acb,isEqual as _0x171344}from'lodash-es';import{Plugin as _0x314a0a,PendingActions as _0x4b2458,icons as _0x42aafe,Command as _0x33fccf,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x7a2999,getMarkerDomElement as _0x4c436f,ConfirmMixin as _0x3f46a5,sanitizeEditorConfig as _0x292d07}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1ebfbf,Element as ft,Range as vt,ViewUIElement as _0xd4e326,ViewRawElement as _0x27d44b,ViewEmptyElement as _0x597b98,ViewAttributeElement as _0x10d9e1,ViewContainerElement as _0xe6e3ea,Position as gt,ViewText as _0x166355,ViewElement as _0x2b1c67,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x571e95,injectCssTransitionDisabler as ts,submitHandler as _0x2af42e,LabeledFieldView as nt,createLabeledInputText as _0x1d2e0c,createDropdown as _0x480339,ListView as te,ListItemView as _0x5f552b,ButtonView as _0x59b23e,MenuBarMenuView as _0x8dd679,MenuBarMenuListView as _0x4ac257,MenuBarMenuListItemView as _0x5053a2,MenuBarMenuListItemButtonView as _0x1b3f57,ContextualBalloon as _0x10aeb9,ToolbarSeparatorView as _0x488774,IconView as _0xc17691,addListToDropdown as _0x581d40,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2e0acd}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x3df942(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1d94b0){super(),this['id']=_0x1d94b0['id']||_0x1f968a(),this['creator']=_0x1d94b0['creator']||null,this['authors']=_0x1d94b0['authors']||[],this['diffData']=_0x1d94b0['diffData']||null,this['toVersion']=_0x1d94b0['toVersion']||0x0,this['fromVersion']=_0x1d94b0['fromVersion']||0x0,this['set']('name',_0x1d94b0['name']||''),this['set']('createdAt',_0x1d94b0['createdAt']||new Date()),this['set']('attributes',_0x1d94b0['attributes']||{});}['setName'](_0x1f9964){this['_update']({'name':_0x1f9964});}['setAttribute'](_0x43556a,_0x3b3fb3){const _0xc2765b=_0x3d1bef(this['attributes']);_0x4c6a22(_0xc2765b,_0x43556a,_0x3b3fb3),this['_update']({'attributes':_0xc2765b});}['removeAttribute'](_0x36d598){const _0x3aed92=_0x3d1bef(this['attributes']);_0x597acb(_0x3aed92,_0x36d598),this['_update']({'attributes':_0x3aed92});}['_update'](_0xdcaf5,_0x96cf9e=!0x1){let _0x2988bf=!0x1;const _0x37169e={'id':this['id']},_0x3388f7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x352815 of _0x3388f7){const _0x386ed3=_0xdcaf5[_0x352815];void 0x0!==_0x386ed3&&_0x386ed3!==this[_0x352815]&&(this[_0x352815]=_0x386ed3,_0x37169e[_0x352815]=_0x386ed3,_0x2988bf=!0x0);}_0x2988bf&&(_0x37169e['authors']&&(_0x37169e['authorsIds']=_0x37169e['authors']['map'](_0x10158a=>_0x10158a['id']),delete _0x37169e['authors']),this['fire']('_update',_0x37169e,_0x96cf9e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3cebdc=>_0x3cebdc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x314a0a{['_revisions'];static get['requires'](){return[_0x7a2999];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x59a36b){super(_0x59a36b),this['_revisions']=new _0x45da80();}['afterInit'](){!async function(_0xced79b){const _0x2a9c4c=_0x14b621([0x79,0x54,0x6d,0x30,0x32,0x35,0x6e,0x31,0x76,0x37,0x56,0x70,0x52,0x46,0x38,0x64,0x55,0x45,0x4a,0x53,0x62,0x58,0x4d,0x71,0x7a,0x50,0x65,0x72,0x6c,0x77,0x4b,0x36,0x4e,0x6f,0x42,0x67,0x34,0x33,0x43,0x49,0x6b,0x41,0x5a,0x6a,0x74,0x39,0x63,0x57,0x59,0x66,0x51,0x4c,0x61,0x78,0x47,0x4f,0x68,0x75,0x69,0x48,0x44,0x73]),_0xceb2b9=0xeb829,_0x59ac37=0x5c87b0f8,_0x591beb=0x5c80d078^_0x59ac37,_0x447471=window[_0x14b621([0x44,0x61,0x74,0x65])][_0x14b621([0x6e,0x6f,0x77])](),_0x308828=_0xced79b[_0x14b621([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d4655=new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ab45d=>{_0x308828[_0x14b621([0x6f,0x6e,0x63,0x65])](_0x14b621([0x72,0x65,0x61,0x64,0x79]),_0x2ab45d);}),_0x9a09fd={[_0x14b621([0x6b,0x74,0x79])]:_0x14b621([0x45,0x43]),[_0x14b621([0x75,0x73,0x65])]:_0x14b621([0x73,0x69,0x67]),[_0x14b621([0x63,0x72,0x76])]:_0x14b621([0x50,0x2d,0x32,0x35,0x36]),[_0x14b621([0x78])]:_0x14b621([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]),[_0x14b621([0x79])]:_0x14b621([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]),[_0x14b621([0x61,0x6c,0x67])]:_0x14b621([0x45,0x53,0x32,0x35,0x36])},_0x400904=_0x308828[_0x14b621([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14b621([0x67,0x65,0x74])](_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xea2942(){let _0x4d495e,_0x5c9027=null,_0x562be6=null;try{if(_0x400904==_0x14b621([0x47,0x50,0x4c]))return _0x14b621([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d495e=_0x53694a(),!_0x4d495e)return _0x14b621([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d495e[_0x14b621([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x562be6=_0x582e5f(_0x4d495e[_0x14b621([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d495e[_0x14b621([0x6a,0x74,0x69])])),await _0x2d83e7()?_0xf6fb8b()?_0x52c29d()?_0x14b621([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40e317()?(_0x4d495e[_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b621([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c9027=_0xdf9aff(_0x14b621([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d495e[_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b621([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c9027=_0xdf9aff(_0x14b621([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b409f()):_0x14b621([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14b621([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14b621([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x201b7e){return _0x14b621([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52c29d(){const _0x29df70=[_0x14b621([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14b621([0x74,0x72,0x69,0x61,0x6c])][_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d495e[_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x447471/0x3e8:0xe10*_0x591beb;return _0x4d495e[_0x14b621([0x65,0x78,0x70])]<_0x29df70;}function _0xf6fb8b(){const _0x13b91a=_0x4d495e[_0x14b621([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13b91a)return!0x1;if(_0x13b91a[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b621([0x2a])))return!0x0;if(_0x13b91a[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b621([0x52,0x48])))return!0x0;if(_0x13b91a[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b621([0x52,0x52,0x48]))){if(_0x24bf3b())return!0x0;if(_0x3e1979()||_0x286398())return!0x0;}return!0x1;}function _0x40e317(){const _0x139620=_0x4d495e[_0x14b621([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x139620||0x0==_0x139620[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bcde0}=new URL(window[_0x14b621([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x139620[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bcde0))return!0x0;const _0x5a6bf8=_0x5bcde0[_0x14b621([0x73,0x70,0x6c,0x69,0x74])](_0x14b621([0x2e]));return _0x139620[_0x14b621([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52c80c=>_0x52c80c[_0x14b621([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b621([0x2a])))[_0x14b621([0x6d,0x61,0x70])](_0x3134da=>_0x3134da[_0x14b621([0x73,0x70,0x6c,0x69,0x74])](_0x14b621([0x2e])))[_0x14b621([0x73,0x6f,0x6d,0x65])](_0x538076=>_0x5a6bf8[_0x14b621([0x65,0x76,0x65,0x72,0x79])]((_0x3273ac,_0x51f19d)=>_0x538076[_0x51f19d]===_0x3273ac||_0x538076[_0x51f19d]===_0x14b621([0x2a])));}function _0x4b409f(){return _0x5c9027&&_0x562be6?new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x619109,_0x2a1f40)=>{_0x5c9027[_0x14b621([0x74,0x68,0x65,0x6e])](_0x619109,_0x2a1f40),_0x562be6[_0x14b621([0x74,0x68,0x65,0x6e])](_0x45b014=>{_0x45b014!=_0x14b621([0x56,0x61,0x6c,0x69,0x64])&&_0x619109(_0x45b014);},_0x2a1f40);}):_0x5c9027||_0x562be6||_0x14b621([0x56,0x61,0x6c,0x69,0x64]);}}function _0x582e5f(_0x4b6925,_0x4d9d2f){return new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f820b=>{if(_0x392e55())return _0x2f820b(_0x14b621([0x56,0x61,0x6c,0x69,0x64]));_0x508412(),_0x308828[_0x14b621([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14b621([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x199782=!0x1;const _0x639339=_0x1f968a();function _0x55d287(_0x42b0fa){return!!_0x42b0fa&&(typeof _0x42b0fa===_0x14b621([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42b0fa===_0x14b621([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42b0fa[_0x14b621([0x74,0x68,0x65,0x6e])]===_0x14b621([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42b0fa[_0x14b621([0x63,0x61,0x74,0x63,0x68])]===_0x14b621([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1bc47b(_0x4e7a06){_0xc4e980(_0x4e7a06)[_0x14b621([0x74,0x68,0x65,0x6e])](_0x239eb5=>{if(!_0x239eb5||_0x239eb5[_0x14b621([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14b621([0x6f,0x6b]))return _0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x280173(_0x3b6d5c(_0x639339+_0x4d9d2f))!=_0x239eb5[_0x14b621([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14b621([0x56,0x61,0x6c,0x69,0x64]);})[_0x14b621([0x74,0x68,0x65,0x6e])](_0x511488=>(_0x5e4558(),_0x511488),()=>{const _0x1947ae=_0x1a4fbb();return null==_0x1947ae?(_0x5e4558(),_0x14b621([0x56,0x61,0x6c,0x69,0x64])):_0x14b621(_0x447471-_0x1947ae>(0x788b34f8^_0x59ac37)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14b621([0x74,0x68,0x65,0x6e])](_0x2f820b)[_0x14b621([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f820b(_0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a8d3b=0x5cb15e78^_0x59ac37;function _0x5e4558(){const _0x7463b=_0x14b621([0x6c,0x6c,0x63,0x74,0x2d])+_0x280173(_0x3b6d5c(_0x4b6925)),_0x56a14c=_0x36be7f(_0x280173(window[_0x14b621([0x4d,0x61,0x74,0x68])][_0x14b621([0x63,0x65,0x69,0x6c])](_0x447471/_0x2a8d3b)));window[_0x14b621([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b621([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7463b,_0x56a14c);}function _0x1a4fbb(){const _0x129f1b=_0x14b621([0x6c,0x6c,0x63,0x74,0x2d])+_0x280173(_0x3b6d5c(_0x4b6925)),_0x12ff20=window[_0x14b621([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b621([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x129f1b);return _0x12ff20?window[_0x14b621([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36be7f(_0x12ff20),0x10)*_0x2a8d3b:null;}function _0xc4e980(_0x1c9add){return new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16bd69,_0x1b025f)=>{_0x1c9add[_0x14b621([0x74,0x68,0x65,0x6e])](_0x16bd69,_0x1b025f),window[_0x14b621([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b025f,0x5c866438^_0x59ac37);});}}_0x308828[_0x14b621([0x6f,0x6e])](_0x14b621([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xace790,_0x10667f)=>{if(_0x10667f[0x0]!=_0x4b6925)return _0x2f820b(_0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10667f[0x1]={..._0x10667f[0x1],[_0x14b621([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x639339};},{[_0x14b621([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b621([0x68,0x69,0x67,0x68])}),_0x308828[_0x14b621([0x6f,0x6e])](_0x14b621([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x231b3b=>{_0x55d287(_0x231b3b[_0x14b621([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x199782=!0x0,_0x1bc47b(_0x231b3b[_0x14b621([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14b621([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b621([0x6c,0x6f,0x77])}),_0x3d4655[_0x14b621([0x74,0x68,0x65,0x6e])](()=>{_0x199782||_0x2f820b(_0x14b621([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x392e55(){return _0x308828[_0x14b621([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b621([0x76,0x69,0x65,0x77])][_0x14b621([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14b621([0x61,0x75,0x74,0x6f]);}function _0x508412(){_0x308828[_0x14b621([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b621([0x76,0x69,0x65,0x77])][_0x14b621([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14b621([0x61,0x75,0x74,0x6f]);}}function _0xdf9aff(_0x283b07){const _0x1590a4=[new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c87f0=>setTimeout(_0x4c87f0,0x5c8e8e34^_0x59ac37)),_0x3d4655[_0x14b621([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a23c=>{const _0x24633b=0x5c87b0ff^_0x59ac37,_0x3026f5=_0xced79b[_0x14b621([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x24b795(){_0x3026f5[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x24633b&&_0x13a23c();}_0x24b795(),_0x3026f5[_0x14b621([0x6f,0x6e])](_0x14b621([0x61,0x64,0x64]),_0x24b795);})),new window[(_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e0b66=>{function _0x2c8549(){for(const _0x18858c in window)if(window[_0x14b621([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x14b621([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x18858c))&&window[_0x18858c]==_0xceb2b9)return _0x2e0b66();_0x308828[_0x14b621([0x73,0x74,0x61,0x74,0x65])]!=_0x14b621([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x14b621([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c8549,0x5c87a370^_0x59ac37);}_0x226888(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2c8549();})];return window[_0x14b621([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14b621([0x72,0x61,0x63,0x65])](_0x1590a4)[_0x14b621([0x74,0x68,0x65,0x6e])](()=>_0x283b07);}async function _0xfb44a5(){if(await _0x3d4655,_0x226888(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5e5e90=_0xced79b[_0x14b621([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x24b5f5=_0xced79b[_0x14b621([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])](_0x5e5e90[_0x14b621([0x69,0x64])]),_0x180c51=_0x4d6ca4(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x180c51[_0x14b621([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5e5e90['id'],_0x24b5f5?_0x24b5f5['id']:null,!0x0),_0x180c51[_0x14b621([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14b621([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x180c51[_0x14b621([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x180c51[_0x14b621([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x38c732,void(_0x180c51[_0x14b621([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x38c732);}if(_0x226888(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x45db0b=_0x4d6ca4(_0x14b621([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x45db0b[_0x14b621([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14b621([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x45db0b[_0x14b621([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x45db0b[_0x14b621([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x38c732,_0x45db0b[_0x14b621([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x38c732;}_0x308828[_0x14b621([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b621([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38c732,_0x308828[_0x14b621([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b621([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38c732,_0x308828[_0x14b621([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14b621([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24bf3b(){return _0x226888(_0x14b621([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d6ca4(_0x14b621([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14b621([0x73,0x74,0x61,0x74,0x65])]==_0x14b621([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e1979(){return _0x226888(_0x14b621([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 _0x286398(){return _0x226888(_0x14b621([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4ce0d0(_0x1ac392){const _0x2e88bd=_0x54ee4f();_0x308828[_0x2e88bd]=_0x14b621([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])+_0x1ac392,_0x1ac392[_0x14b621([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x14b621([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x54ee4f()]=_0xceb2b9),_0x1ac392!=_0x14b621([0x56,0x61,0x6c,0x69,0x64])&&_0xfb44a5();}function _0x54ee4f(){const _0x2158d9=window[_0x14b621([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14b621([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14b621([0x6e,0x6f,0x77])]())[_0x14b621([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14b621([0x2e]),'');let _0x329130=_0x14b621([0x79]);for(let _0x17231f=0x0;_0x17231f<_0x2158d9[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17231f+=0x2){let _0x5362f9=window[_0x14b621([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2158d9[_0x14b621([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17231f,_0x17231f+0x2));_0x5362f9>=_0x2a9c4c[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5362f9-=_0x2a9c4c[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x329130+=_0x2a9c4c[_0x5362f9];}return _0x329130;}function _0x53694a(){const _0x8668c0=_0x400904[_0x14b621([0x73,0x70,0x6c,0x69,0x74])](_0x14b621([0x2e]));if(0x3!=_0x8668c0[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4900ad(_0x8668c0[0x1]);function _0x4900ad(_0x66d169){const _0x4091f2=_0x1bfaa0(_0x66d169);return _0x4091f2&&_0x5e4d3f()?_0x4091f2:null;function _0x5e4d3f(){const _0x3fe3dd=_0x4091f2[_0x14b621([0x6a,0x74,0x69])],_0x1edc49=window[_0x14b621([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fe3dd[_0x14b621([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fe3dd[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x504532={..._0x4091f2,[_0x14b621([0x6a,0x74,0x69])]:_0x3fe3dd[_0x14b621([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3fe3dd[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x504532[_0x14b621([0x76,0x63])],_0x3b6d5c(_0x504532)==_0x1edc49;}}}async function _0x2d83e7(){let _0x14a801=!0x0;try{const _0x50b36c=_0x400904[_0x14b621([0x73,0x70,0x6c,0x69,0x74])](_0x14b621([0x2e])),[_0xa6b8d0,_0x31b922,_0x519a41]=_0x50b36c;return _0x2ab846(_0xa6b8d0),await _0x51a0e8(_0xa6b8d0,_0x31b922,_0x519a41),_0x14a801;}catch(_0x2f0d1){return!0x1;}function _0x2ab846(_0x44e1b1){const _0x300e9b=_0x1bfaa0(_0x44e1b1);_0x300e9b&&_0x300e9b[_0x14b621([0x61,0x6c,0x67])]==_0x14b621([0x45,0x53,0x32,0x35,0x36])||(_0x14a801=!0x1);}async function _0x51a0e8(_0xcf8236,_0x2e589c,_0x2fb8ff){const _0x4abd5e=window[_0x14b621([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14b621([0x66,0x72,0x6f,0x6d])](_0xea760e(_0x2fb8ff),_0xbffabb=>_0xbffabb[_0x14b621([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d2e4c=new window[(_0x14b621([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14b621([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcf8236+_0x14b621([0x2e])+_0x2e589c),_0xae4422=window[_0x14b621([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14b621([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xae4422)return;const _0x19fac6=await _0xae4422[_0x14b621([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14b621([0x6a,0x77,0x6b]),_0x9a09fd,{[_0x14b621([0x6e,0x61,0x6d,0x65])]:_0x14b621([0x45,0x43,0x44,0x53,0x41]),[_0x14b621([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14b621([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14b621([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xae4422[_0x14b621([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14b621([0x6e,0x61,0x6d,0x65])]:_0x14b621([0x45,0x43,0x44,0x53,0x41]),[_0x14b621([0x68,0x61,0x73,0x68])]:{[_0x14b621([0x6e,0x61,0x6d,0x65])]:_0x14b621([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19fac6,_0x4abd5e,_0x2d2e4c)||(_0x14a801=!0x1);}}function _0x1bfaa0(_0x321f46){return _0x321f46[_0x14b621([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14b621([0x65,0x79]))?JSON[_0x14b621([0x70,0x61,0x72,0x73,0x65])](_0xea760e(_0x321f46)):null;}function _0xea760e(_0x257e64){return window[_0x14b621([0x61,0x74,0x6f,0x62])](_0x257e64[_0x14b621([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14b621([0x2b]))[_0x14b621([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14b621([0x2f])));}function _0x3b6d5c(_0x128037){let _0x5d4803=0x1505;function _0x5a322c(_0x12ce8d){for(let _0x33edff=0x0;_0x33edff<_0x12ce8d[_0x14b621([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33edff++){const _0x54f07f=_0x12ce8d[_0x14b621([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33edff);_0x5d4803=(_0x5d4803<<0x5)+_0x5d4803+_0x54f07f,_0x5d4803&=_0x5d4803;}}function _0xbed42(_0x1798a4){Array[_0x14b621([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1798a4)?_0x1798a4[_0x14b621([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xbed42):_0x1798a4&&typeof _0x1798a4==_0x14b621([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14b621([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1798a4)[_0x14b621([0x73,0x6f,0x72,0x74])]()[_0x14b621([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10e658,_0x2ad5cb])=>{_0x5a322c(_0x10e658),_0xbed42(_0x2ad5cb);}):_0x5a322c(window[_0x14b621([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1798a4));}return _0xbed42(_0x128037),_0x5d4803>>>0x0;}function _0x280173(_0x48c9b9){return _0x48c9b9[_0x14b621([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14b621([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14b621([0x30]));}function _0x36be7f(_0x44cda7){return _0x44cda7[_0x14b621([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14b621([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14b621([0x6a,0x6f,0x69,0x6e])]('');}function _0x226888(_0x2f48b5){return _0x308828[_0x14b621([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14b621([0x68,0x61,0x73])](_0x2f48b5);}function _0x4d6ca4(_0x3f15fb){return _0x308828[_0x14b621([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14b621([0x67,0x65,0x74])](_0x3f15fb);}function _0x38c732(){}function _0x14b621(_0x29cea7){return _0x29cea7['map'](_0x47289b=>String['fromCharCode'](_0x47289b))['join']('');}_0x4ce0d0(await _0xea2942());}(this);}['createRevision'](_0x8e856){const _0x34ee40=this['editor']['plugins']['get']('Users');return new a({'id':_0x8e856['id'],'name':_0x8e856['name'],'creator':_0x8e856['creatorId']?_0x34ee40['getUser'](_0x8e856['creatorId']):null,'diffData':_0x8e856['diffData']||_0x8e856['data'],'authors':_0x8e856['authorsIds']['map'](_0x3bd56c=>_0x34ee40['getUser'](_0x3bd56c)),'createdAt':new Date(_0x8e856['createdAt']),'attributes':_0x8e856['attributes'],'fromVersion':_0x8e856['fromVersion'],'toVersion':_0x8e856['toVersion']});}['addRevision'](_0x40faf3,_0x43bf8e=0x0){this['_revisions']['add'](_0x40faf3,_0x43bf8e);}['getRevision'](_0x8388df){return this['_revisions']['get'](_0x8388df);}['getRevisions'](_0x275b3d={'toJSON':!0x1}){const _0x199058=Array['from'](this['_revisions']);return _0x199058['reverse'](),_0x275b3d['toJSON']?_0x199058['map'](_0x4db1f5=>_0x4db1f5['toJSON']()):_0x199058;}['getIndex'](_0x2b496f){return this['_revisions']['getIndex'](_0x2b496f);}['getEarlierVisibleRevision'](_0x214782){const [,_0x1ca0bd]=this['getRevisionsIterator'](_0x214782,{'direction':'earlier'});return _0x1ca0bd;}['getLaterVisibleRevision'](_0x365197){const [,_0x3daaa3]=this['getRevisionsIterator'](_0x365197,{'direction':'later'});return _0x3daaa3;}['getRevisionsInDiff'](_0x10bc22){const _0x1382bd=[];for(const _0x3526dd of this['getRevisionsIterator'](_0x10bc22['newRevisionId']))if(_0x1382bd['push'](_0x3526dd),_0x3526dd['id']===_0x10bc22['oldRevisionId'])break;return _0x1382bd;}*['getRevisionsIterator'](_0x5f1878,{direction:_0x2244c6='earlier',filter:_0x1f6284=()=>!0x0}={}){const _0x393b57='earlier'===_0x2244c6?0x1:-0x1;let _0x31a8e8=this['_revisions']['get'](_0x5f1878),_0x13c9ce=this['getIndex'](_0x31a8e8);for(yield _0x31a8e8;_0x31a8e8;){if(_0x13c9ce+=_0x393b57,_0x31a8e8=this['getRevision'](_0x13c9ce),!_0x31a8e8)return;_0x1f6284(_0x31a8e8)&&(yield _0x31a8e8);}}}function m(_0x1ba0c1,_0x135308,_0x441533){const t=_0x1ba0c1['t'];switch(_0x135308){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'},_0x441533);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x441533);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 P={'c':_0xe6e3ea,'a':_0x10d9e1,'e':_0x597b98,'r':_0x27d44b,'u':_0xd4e326};class l extends _0x314a0a{['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[_0x7a2999,j,_0x4b2458];}constructor(_0x21943d){super(_0x21943d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2b2ba9=_0x1f968a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2b2ba9},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 _0x288642=this['repository']['getRevision'](0x0),_0x5cc797=_0x288642&&null===_0x288642['creator']?_0x288642:null;if(this['_continueCurrentRevision']=!!_0x5cc797&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x338f25=this['_source']['getCurrentRevisionId'](),_0x26fe00=this['repository']['getRevision'](_0x338f25);if(_0x26fe00)this['_startingVersion']=_0x26fe00['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xec1f5b=this['_source']['history']['_operations']['find'](_0x36fc55=>!_0x36fc55['_isInit']),_0x2ad352=_0xec1f5b?_0xec1f5b['baseVersion']:this['_source']['history']['version'];_0x288642?(_0x288642['toVersion']<_0x2ad352&&_0x288642['_update']({'toVersion':_0x2ad352}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5cc797['id'],this['_startingVersion']=_0x5cc797['fromVersion']):(this['_startingVersion']=_0x288642['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ad352,this['_continueCurrentRevision']=!0x1);}}else _0x5cc797&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5cc797['toVersion'],this['editor']['model']['document']['history']['version']),_0x5cc797['fromVersion']===_0x5cc797['toVersion']?(0x0!==_0x5cc797['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5cc797['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5cc797['id'],this['_startingVersion']=_0x5cc797['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',_0xdbe285=>!_0xdbe285),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x223495=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3be0bf;for(const _0xe8fbce in _0x223495){const _0x48ca95=_0xe8fbce,_0x326949=_0x223495[_0x48ca95];if('revisionHistoryLicenseKeyValid'==_0x326949||'revisionHistoryLicenseKeyInvalid'==_0x326949||'revisionHistoryLicenseKeyExpired'==_0x326949||'revisionHistoryLicenseKeyDomainLimit'==_0x326949||'revisionHistoryLicenseKeyNotAllowed'==_0x326949||'revisionHistoryLicenseKeyEvaluationLimit'==_0x326949||'revisionHistoryLicenseKeyTrialLimit'==_0x326949||'revisionHistoryLicenseKeyUsageLimit'==_0x326949){delete _0x223495[_0x48ca95],_0x3be0bf=_0x326949,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3be0bf&&_0x223495['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3be0bf&&_0x223495['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3be0bf&&_0x223495['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3be0bf&&_0x223495['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3be0bf&&_0x223495['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3be0bf&&_0x223495['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3be0bf&&_0x223495['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x531386=this['repository']['getRevision'](0x0),_0x146a50=await this['getRevisionDocumentData'](_0x531386),_0x4d1432=await this['getRevisionRootsAttributes'](_0x531386);this['_replaceEditorDataWithRevisionData'](_0x146a50,_0x4d1432);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2416b2){this['_source']=_0x2416b2;}async['update'](){const _0xedeab6=await this['_source']['getLatestVersion']();if(_0xedeab6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3b3b3b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xedeab6});_0x3b3b3b['authors']=_0x3b3b3b['authorsIds']['map'](_0xa99643=>this['editor']['plugins']['get']('Users')['getUser'](_0xa99643)),this['currentRevision']['_update'](_0x3b3b3b);}}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'](_0x30f531={},_0x226aa9=null){const _0x5411a9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x226aa9>this['currentRevision']['toVersion']&&(_0x226aa9=null),null===_0x226aa9&&(_0x226aa9=await this['_source']['getLatestVersion']());const _0x393388=this['_getFromVersion'](_0x226aa9),_0x4d89b3=this['buildRevisionData']({'from':_0x393388,'to':_0x226aa9});if(this['currentRevision']['toVersion']<_0x226aa9){const _0x1a253c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x226aa9,'to':_0x226aa9});_0x1a253c['authors']=[],_0x1a253c['authorsIds']=[],_0x1a253c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1a253c,!0x0),delete _0x1a253c['authors'],_0x5411a9['push'](_0x1a253c);}_0x30f531['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30f531['name']=_0x30f531['name']||null,_0x30f531['id']=_0x30f531['id']||_0x1f968a(),_0x30f531={..._0x30f531,..._0x4d89b3};const _0x95ee99=this['addRevisionData'](_0x30f531);_0x5411a9['push'](_0x30f531);const _0x14a9d1=this['repository']['getIndex'](_0x95ee99);if(0x0!==_0x14a9d1){const _0x33a2c1=this['repository']['getRevision'](_0x14a9d1-0x1);if(_0x33a2c1['fromVersion']!==_0x226aa9){const _0x306bd3=this['_revisionDataBuilder']['getData'](_0x226aa9,_0x33a2c1['toVersion']),_0x10357d={'id':_0x33a2c1['id'],'diffData':_0x306bd3['diffData'],'authorsIds':_0x306bd3['authorsIds'],'authors':_0x306bd3['authorsIds']['map'](_0x400b73=>this['editor']['plugins']['get']('Users')['getUser'](_0x400b73)),'fromVersion':_0x226aa9};_0x33a2c1===this['currentRevision']&&(_0x10357d['createdAt']=new Date(_0x30f531['createdAt']['getTime']()+0xa)),_0x33a2c1['_update'](_0x10357d,!0x0),delete _0x10357d['authors'],_0x5411a9['push'](_0x10357d);}}if(this['adapter']){for(const _0x305882 of _0x5411a9)this['_bufferUpdate'](_0x305882['id'],_0x305882,!0x0);this['sendBufferedUpdates']();}return _0x95ee99;}['addRevisionData'](_0x29a172){const _0x4c0e5d=this['repository']['createRevision'](_0x29a172);return this['adapter']&&_0x4c0e5d['on']('_update',(_0x437941,_0x1e7899,_0x237b9c)=>{_0x237b9c||(this['_bufferUpdate'](_0x1e7899['id'],_0x1e7899,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4c0e5d,this['_findInsertionIndex'](_0x4c0e5d)),_0x4c0e5d;}async['getRevisionDocumentData'](_0x53c659){await this['_loadRevisionData'](_0x53c659);const _0x3d1ddc={};for(const _0x4660ba in _0x53c659['diffData']){if(_0x53c659['diffData'][_0x4660ba]['attachChange']&&!_0x53c659['diffData'][_0x4660ba]['attachChange']['isAttached'])continue;const _0x151da3=this['_removeRevisionMarkers'](JSON['parse'](_0x53c659['diffData'][_0x4660ba]['insertions'])),_0x15da8d=this['editor']['editing']['view']['document'],_0x55863e=new _0x1ebfbf(_0x15da8d,_0x151da3['map'](_0x5693d7=>C(_0x5693d7,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3d1ddc[_0x4660ba]=this['editor']['data']['processor']['toData'](_0x55863e),this['editor']['data']['processor']['useFillerType']('default');}return _0x3d1ddc;}async['getRevisionRootsAttributes'](_0x1de987){await this['_loadRevisionData'](_0x1de987);const _0x56f9fa={};for(const _0x129cda in _0x1de987['diffData'])_0x1de987['diffData'][_0x129cda]['attachChange']&&!_0x1de987['diffData'][_0x129cda]['attachChange']['isAttached']||(_0x56f9fa[_0x129cda]=_0x1de987['diffData'][_0x129cda]['attributesAfter']||{});return _0x56f9fa;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x920144=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x790af5=0x0;_0x790af5<_0x920144['length'];_0x790af5++){const _0x9cc803=_0x920144[_0x790af5];let _0x3c3a61=!0x1;for(const _0x1603dc of Object['keys'](_0x9cc803))void 0x0===_0x9cc803[_0x1603dc]?delete _0x9cc803[_0x1603dc]:'id'!==_0x1603dc&&(_0x3c3a61=!0x0);_0x3c3a61||(_0x920144[_0x790af5]=null);}if(_0x920144=_0x920144['filter'](_0x554899=>null!==_0x554899),!_0x920144['length'])return;for(let _0x590bf0=0x0;_0x590bf0<_0x920144['length'];_0x590bf0++){const _0x1e2ef4=_0x920144[_0x590bf0];void 0x0!==_0x1e2ef4['fromVersion']&&void 0x0===_0x1e2ef4['toVersion']&&(_0x1e2ef4['toVersion']=this['repository']['getRevision'](_0x1e2ef4['id'])['toVersion']),void 0x0!==_0x1e2ef4['toVersion']&&void 0x0===_0x1e2ef4['fromVersion']&&(_0x1e2ef4['fromVersion']=this['repository']['getRevision'](_0x1e2ef4['id'])['fromVersion']);}const _0x217124=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x920144,_0x217124)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x14d7c2=>{if(_0x14d7c2){for(const _0x3e2efc of _0x14d7c2)this['setRevisionData']({'id':_0x3e2efc['id'],'createdAt':_0x3e2efc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x33872e,_0x372d4e){let _0x1718b1=this['editor']['config']['get']('initialData'),_0x14ee9f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1718b1){_0x1718b1={};for(const _0x13948c of this['editor']['model']['document']['getRootNames']())_0x1718b1[_0x13948c]='';}if('string'==typeof _0x1718b1&&(_0x1718b1={'main':_0x1718b1}),void 0x0===_0x14ee9f){_0x14ee9f={};for(const _0x25f53e of this['editor']['model']['document']['getRootNames']())_0x14ee9f[_0x25f53e]={};}let _0x21a56d=!0x1;const _0x45548e=Object['keys'](_0x1718b1),_0xdb3563=Object['keys'](_0x33872e);for(const _0x1ccb3f of _0x45548e){if(_0x1718b1[_0x1ccb3f]!==_0x33872e[_0x1ccb3f]&&''!==_0x1718b1[_0x1ccb3f]['trim']()){_0x21a56d=!0x0;break;}if(!_0x171344(_0x14ee9f[_0x1ccb3f],_0x372d4e[_0x1ccb3f])&&Object['keys'](_0x14ee9f[_0x1ccb3f])['length']>0x0){_0x21a56d=!0x0;break;}}_0x21a56d||(_0x21a56d=_0xdb3563['some'](_0x5b9ab9=>!this['editor']['model']['document']['getRoot'](_0x5b9ab9))),_0x21a56d&&_0x339b97('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1718b1,'editorRootsAttributes':_0x14ee9f,'revisionData':_0x33872e,'revisionRootsAttributes':_0x372d4e}),this['editor']['config']['set']('initialData',_0x33872e),this['editor']['config']['set']('rootsAttributes',_0x372d4e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5b4919=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5b4919['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x57db57){const _0x5c3ff6=this['repository']['getRevisions']();_0x5c3ff6['reverse']();let _0x441909=0x0;for(;_0x441909<_0x5c3ff6['length'];){const _0x219222=_0x5c3ff6[_0x441909];if(_0x219222===this['currentRevision']){_0x441909++;continue;}if(_0x219222['id']===this['_initialRevisionId'])break;const _0x1a060c=_0x57db57['toVersion']-_0x219222['toVersion']||_0x57db57['fromVersion']-_0x219222['fromVersion'];if(_0x1a060c>0x0)break;if(_0x1a060c<0x0)_0x441909++;else{if(!_0x57db57['creator']&&_0x219222['creator'])break;if(_0x219222['creator']||!_0x57db57['creator']){if(_0x57db57['createdAt']>_0x219222['createdAt'])break;_0x441909++;}else _0x441909++;}}return _0x441909;}['setRevisionData'](_0x3113f4){const _0x17d158=this['repository']['getRevision'](_0x3113f4['id']);if(_0x3113f4['createdAt']&&(_0x3113f4['createdAt']=new Date(_0x3113f4['createdAt'])),_0x3113f4['authorsIds']){const _0x4af19b=this['editor']['plugins']['get']('Users');_0x3113f4['authors']=_0x3113f4['authorsIds']['map'](_0x4d16e0=>_0x4af19b['getUser'](_0x4d16e0));}_0x17d158['_update'](_0x3113f4,!0x0);}['buildRevisionData']({revision:_0x3989ed=null,from:_0x3f5544=null,to:_0x5df0f9=null}){_0x3f5544=null!==_0x3f5544?_0x3f5544:_0x3989ed['fromVersion'],_0x5df0f9=null!==_0x5df0f9?_0x5df0f9:_0x3989ed['toVersion'];const _0x19a69f=this['_revisionDataBuilder']['getData'](_0x3f5544,_0x5df0f9),_0x4b40e5={'diffData':_0x19a69f['diffData'],'authorsIds':_0x19a69f['authorsIds'],'fromVersion':_0x3f5544,'toVersion':_0x5df0f9};if(!_0x3989ed||_0x5df0f9!==_0x3989ed['toVersion']){const _0x100096=_0x5df0f9-0x1,_0x5aed16=this['_source']['history']['getOperation'](_0x100096);_0x4b40e5['createdAt']=_0x5aed16&&_0x5aed16['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3f5544===this['_loadedStateData']['fromVersion']){for(const _0x3c7a38 of this['_loadedStateData']['authors'])_0x4b40e5['authorsIds']['includes'](_0x3c7a38['id'])||_0x4b40e5['authorsIds']['push'](_0x3c7a38['id']);}return _0x4b40e5;}['_loadRevisionData'](_0x4ff883){if(!_0x4ff883||_0x4ff883['diffData'])return Promise['resolve']();{const _0x1dc686=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1dc686,'revisionId':_0x4ff883['id']})['then'](_0x1e03fa=>{_0x4ff883['diffData']=_0x1e03fa['diffData'];});}}['_bufferUpdate'](_0x28f284,_0x551c20,_0x2933b7){if(this['_bufferedUpdates']['has'](_0x28f284)){const _0x350bef=this['_bufferedUpdates']['get'](_0x28f284);_0x551c20=_0x2933b7?{..._0x350bef,..._0x551c20}:{..._0x551c20,..._0x350bef};}this['_bufferedUpdates']['set'](_0x28f284,_0x551c20);}['_getFromVersion'](_0x343373){const _0x4f3b53=this['repository']['getRevisions']();_0x4f3b53['reverse'](),_0x4f3b53['shift']();const _0x386d7b=_0x4f3b53['find'](_0x2ea2c8=>_0x2ea2c8['toVersion']<=_0x343373)['toVersion'];return _0x386d7b<this['_startingVersion']?this['_startingVersion']:_0x386d7b;}['_createInitialRevision'](_0x7921bb){const _0x26c6e2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x26c6e2)this['_initialRevisionId']=_0x26c6e2['id'];else{const _0x4e1c31=!this['editor']['model']['document']['roots']['find'](_0x1354eb=>this['editor']['model']['hasContent'](_0x1354eb)),_0x20cf0f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fdbd5=m(this['editor']['locale'],_0x4e1c31?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x7921bb,'to':_0x7921bb,'id':this['_initialRevisionId'],'name':_0x2fdbd5,'creatorId':_0x20cf0f});}}['_createCurrentRevision'](_0x5a1129){const _0xf4c398=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xf4c398),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5a1129,'to':_0x5a1129,'id':_0xf4c398,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5a4f52,from:_0x1ef828,to:_0x519dbf,creatorId:_0x283440,id:_0x2865ff}){const _0x322ff4=this['buildRevisionData']({'from':_0x1ef828,'to':_0x519dbf});_0x322ff4['name']=_0x5a4f52,_0x322ff4['creatorId']=_0x283440,_0x322ff4['id']=_0x2865ff;const _0x5d9f8b=this['addRevisionData'](_0x322ff4);return this['adapter']&&this['_bufferUpdate'](_0x322ff4['id'],_0x322ff4,!0x0),_0x5d9f8b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5015c7){return(_0x5015c7=_0x5015c7['filter'](_0x1c53a3=>!_0x1c53a3['name']||'revision-start'!==_0x1c53a3['name']&&'revision-end'!==_0x1c53a3['name']))['forEach'](_0x3b70d8=>{'string'!=typeof _0x3b70d8&&(_0x3b70d8['children']=this['_removeRevisionMarkers'](_0x3b70d8['children']),_0x3b70d8['attributes']=_0x3b70d8['attributes']['filter'](_0x8acdcf=>!_0x8acdcf[0x0]['startsWith']('data-revision-')));}),_0x5015c7;}}function C(_0x8534f6,_0x279612){const _0x41e6d3=_0x279612['editing']['view']['document'];if('string'==typeof _0x8534f6)return new _0x166355(_0x41e6d3,_0x8534f6);{const _0x389689=_0x8534f6['children']['map'](_0x27b914=>C(_0x27b914,_0x279612));return new(P[_0x8534f6['type']]||_0x2b1c67)(_0x41e6d3,_0x8534f6['name'],_0x8534f6['attributes'],_0x389689);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x619c26){this['editor']=_0x619c26,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'](_0x50f570){this['source']=_0x50f570;const _0x351e21=new Map(),_0x49e1b4=new Map(),_0x4bd1b7=this['editor']['model']['document']['roots']['map'](_0x46b9a5=>_0x46b9a5['rootName']);for(const _0x4397b1 of _0x4bd1b7){const _0x7933c7=this['editor']['model']['document']['getRoot'](_0x4397b1),_0x482266=T(_0x7933c7);_0x351e21['set'](_0x4397b1,_0x482266),_0x49e1b4['set'](_0x4397b1,Object['fromEntries'](_0x7933c7['getAttributes']()));}const _0x3933c8=Array['from'](this['editor']['model']['markers'])['map'](_0x142de9=>[_0x142de9['name'],_0x142de9['getRange']()]),_0x55de4c=this['source']['version'];this['_saveMetaData'](_0x55de4c,_0x351e21,_0x3933c8,_0x49e1b4),this['_startingRevisionId']=this['_revisionId'];const _0x3d3d9c=new Map(),_0x3f7c7a=new Map();for(const _0x4c9b03 of _0x4bd1b7){const _0x24dfad=F(_0x4c9b03);_0x3d3d9c['set'](_0x4c9b03,_0x24dfad),_0x3f7c7a['set'](_0x4c9b03,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3d3d9c,[],_0x3f7c7a);}['getData'](_0x155a2a,_0x36331e){if(this['_lastFrom']===_0x155a2a&&this['_lastTo']<=_0x36331e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x36331e,!0x0);else{if(!this['_savedMetaData']['has'](_0x155a2a)){const _0x1b305c=this['_getPreviousFrom'](_0x155a2a);this['_calculateMetaData'](_0x1b305c,_0x155a2a,!0x1);}this['_calculateMetaData'](_0x155a2a,_0x36331e,!0x0);}return this['_lastFrom']=_0x155a2a,this['_lastTo']=_0x36331e,this['_getState']();}['loadState'](_0x5e1ee4){this['_reset'](),this['_lastFrom']=_0x5e1ee4['fromVersion'],this['_lastTo']=_0x5e1ee4['toVersion'];for(const _0x1a6f64 in _0x5e1ee4['diffData']){const _0x512103=_0x5e1ee4['diffData'][_0x1a6f64]['attachChange'],_0x400994=_0x3d1bef(_0x5e1ee4['diffData'][_0x1a6f64]['attributesBefore'])||{},_0x32d7e8=this['_makeModelFromViewString'](_0x5e1ee4['diffData'][_0x1a6f64]['deletions']);_0x32d7e8['rootName']=_0x1a6f64,_0x32d7e8['_isAttached']=!_0x512103||!_0x512103['isAttached'],_0x32d7e8['isAttached']=()=>_0x32d7e8['_isAttached'],this['_baseRoots']['set'](_0x1a6f64,_0x32d7e8),this['_baseRootsAttributes']['set'](_0x1a6f64,_0x400994),_0x512103&&this['_touchedRoots']['set'](_0x1a6f64,_0x512103);const _0x59de29=this['_makeIdsRoot'](_0x32d7e8);this['_baseIdsRoots']['set'](_0x1a6f64,_0x59de29);for(const [_0x342111,_0xcec0dc]of _0x32d7e8['markers']){if(!_0x342111['startsWith']('revision:'))continue;const _0x5dbab9=_0x342111['split'](':')[0x2];for(const _0xa9318e of _0xcec0dc['getWalker']({'singleCharacters':!0x0})){const _0x559bf5=this['_getVidAttributeName'](_0xa9318e),_0xcfa546='elementEnd'==_0xa9318e['type']?_0xa9318e['previousPosition']['path']['slice'](0x0,-0x1):_0xa9318e['previousPosition']['path'],_0x2ae32d=_0x59de29['getNodeByPath'](_0xcfa546)['getAttribute'](_0x559bf5);this['_touched']['set'](_0x2ae32d,{'userId':_0x5dbab9});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5466c1=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5cd99c=>!this['_touched']['has'](_0x5cd99c));let _0x25d2f9=0x0;const _0x1688b9=new Map();for(const _0x5e458b in _0x5e1ee4['diffData']){const _0x347f3e=_0x5e1ee4['diffData'][_0x5e458b]['attachChange'],_0xab0f98=_0x3d1bef(_0x5e1ee4['diffData'][_0x5e458b]['attributesAfter'])||{},_0x4c142c=this['_makeModelFromViewString'](_0x5e1ee4['diffData'][_0x5e458b]['insertions']);_0x4c142c['rootName']=_0x5e458b,_0x4c142c['_isAttached']=!_0x347f3e||_0x347f3e['isAttached'],_0x4c142c['isAttached']=()=>_0x4c142c['_isAttached'],this['_diffRoots']['set'](_0x5e458b,_0x4c142c),this['_diffRootsAttributes']['set'](_0x5e458b,_0xab0f98);const _0x3fbcbb=this['_makeIdsRoot'](_0x4c142c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5e458b,_0x3fbcbb),_0x1688b9['set'](_0x5e458b,_0x4c142c['isAttached']()?_0xab0f98:{});for(const [_0x3ec202,_0x46e10b]of _0x4c142c['markers']){if(!_0x3ec202['startsWith']('revision:'))continue;const _0x325ff8=_0x3ec202['split'](':')[0x2];for(const _0x1ec359 of _0x46e10b['getWalker']({'singleCharacters':!0x0})){const _0x369b52=this['_getVidAttributeName'](_0x1ec359),_0x3959c3=this['_revisionId']++,_0x4f781f='elementEnd'==_0x1ec359['type']?_0x1ec359['previousPosition']['path']['slice'](0x0,-0x1):_0x1ec359['previousPosition']['path'];_0x3fbcbb['getNodeByPath'](_0x4f781f)['_setAttribute'](_0x369b52,_0x3959c3),this['_touched']['set'](_0x3959c3,{'userId':_0x325ff8});}}for(const _0x500523 of this['editor']['model']['createRangeIn'](_0x4c142c)['getWalker']({'singleCharacters':!0x0})){const _0x259520=this['_getVidAttributeName'](_0x500523),_0x106773='elementEnd'==_0x500523['type']?_0x500523['previousPosition']['path']['slice'](0x0,-0x1):_0x500523['previousPosition']['path'],_0x2e4158=_0x3fbcbb['getNodeByPath'](_0x106773);_0x2e4158['getAttribute'](_0x259520)>0x0||_0x2e4158['_setAttribute'](_0x259520,_0x5466c1[_0x25d2f9++]);}for(const [_0xceebfb,_0x2a11f0]of _0x4c142c['markers'])_0xceebfb['startsWith']('revision:')||this['_markers']['set'](_0xceebfb,_0x2a11f0);}const _0x155e85=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x155e85),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x155e85,0x1));const _0x238272=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x238272),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x238272,0x1));const _0x18a6e6=Array['from'](this['_diffRoots'])['map'](([_0x2ccd3d,_0x1f6d28])=>[_0x2ccd3d,T(_0x1f6d28)]);this['_saveMetaData'](this['_lastTo'],_0x18a6e6,this['_markers'],_0x1688b9);}['_makeModelFromViewString'](_0x4acba7){const _0x25c157=JSON['parse'](_0x4acba7),_0x5b9424=this['editor']['editing']['view']['document'],_0x8d3fa3=new _0x1ebfbf(_0x5b9424,_0x25c157['map'](_0x45b069=>C(_0x45b069,this['editor'])));return this['editor']['data']['toModel'](_0x8d3fa3);}['_saveMetaData'](_0x4516dd,_0x349782,_0x3979c0,_0x4274fb){const _0x3045c5=new Map(_0x349782),_0x4c30bb=new Map(_0x3d1bef(_0x4274fb)),_0x395a88=new Map();for(const [_0x1b25dc,_0x47f7a1]of _0x3979c0)_0x395a88['set'](_0x1b25dc,{'start':_0x47f7a1['start']['clone'](),'end':_0x47f7a1['end']['clone'](),'rootName':_0x47f7a1['root']['rootName']});this['_savedMetaData']['set'](_0x4516dd,{'roots':_0x3045c5,'markers':_0x395a88,'rootsAttributes':_0x4c30bb});}['_removeMetaData'](_0x86ea26){this['_savedMetaData']['delete'](_0x86ea26);}['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'](_0x4bdcb5,_0x194041=null){let _0x4acd4a=null;_0x4bdcb5['is']('documentFragment')||(_0x4acd4a=new ft(_0x4bdcb5['name'],{'vid_start':null===_0x194041?this['_revisionId']++:_0x194041++}));const _0x2f6c3e=[];for(const _0x4a05ad of _0x4bdcb5['getChildren']())if(_0x4a05ad['is']('element')){_0x2f6c3e['push'](this['_makeIdsRoot'](_0x4a05ad,_0x194041));const _0x577ec9=_0x2f6c3e[_0x2f6c3e['length']-0x1];null!==_0x194041&&(_0x194041=_0x577ec9['is']('element','$text')?_0x577ec9['getAttribute']('vid')+0x1:_0x577ec9['getAttribute']('vid_end')+0x1);}else{for(let _0x43c757=0x0;_0x43c757<_0x4a05ad['offsetSize'];_0x43c757++)_0x2f6c3e['push'](new ft('$text',{'vid':null===_0x194041?this['_revisionId']++:_0x194041++}));}if(_0x4bdcb5['is']('documentFragment')){const _0x25dd01=F(_0x4bdcb5['rootName']);return _0x25dd01['_insertChild'](0x0,_0x2f6c3e),_0x25dd01;}return _0x4acd4a['_setAttribute']('vid_end',null===_0x194041?this['_revisionId']++:_0x194041++),_0x4acd4a['_insertChild'](0x0,_0x2f6c3e),_0x4acd4a;}['_calculateMetaData'](_0x227e3d,_0x4c6aa9,_0xa9a97c){this['_reset']();const {roots:_0x1e4e11,markers:_0x3d801f,rootsAttributes:_0x3fccdd}=this['_savedMetaData']['get'](_0x227e3d);this['_baseRoots']=new Map(_0x1e4e11),this['_baseRootsAttributes']=new Map(_0x3d1bef(_0x3fccdd));for(const [_0x2e2696,_0x509667]of this['_baseRoots'])if('$graveyard'!==_0x2e2696&&(this['_diffRoots']['set'](_0x2e2696,T(_0x509667)),this['_diffRootsAttributes']=new Map(_0x3d1bef(_0x3fccdd)),_0xa9a97c)){const _0x26e746=this['_revisionId'];this['_idsRoots']['set'](_0x2e2696,this['_makeIdsRoot'](_0x509667)),this['_baseIdsRoots']['set'](_0x2e2696,this['_makeIdsRoot'](_0x509667,_0x26e746));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xa9a97c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x199373,_0x18de5d]of _0x3d801f){const _0x5e1d2c=this['_baseRoots']['get'](_0x18de5d['rootName']),_0x508886=this['_diffRoots']['get'](_0x18de5d['rootName']),_0x1bddd1=new vt(this['_fixPosition'](_0x18de5d['start'],_0x5e1d2c),this['_fixPosition'](_0x18de5d['end'],_0x5e1d2c)),_0x27d8c0=this['_fixRange'](_0x1bddd1,_0x508886);_0x5e1d2c['markers']['set'](_0x199373,_0x1bddd1),this['_markers']['set'](_0x199373,_0x27d8c0);}this['_applyOperations'](_0x227e3d,_0x4c6aa9,_0xa9a97c);}['_applyOperations'](_0x190738,_0x49e932,_0x422571){for(const _0x1336b7 of this['source']['getOperations'](_0x190738,_0x49e932))this['_handleOperation'](_0x1336b7,_0x422571);for(const _0x5aee3a of this['_diffRoots']['values']())_0x5aee3a['markers']['clear']();for(const [_0x2d4af8,_0x5c87fd]of this['_markers']){this['_diffRoots']['get'](_0x5c87fd['root']['rootName'])['markers']['set'](_0x2d4af8,_0x5c87fd['clone']());}const _0x53620a=new Map(),_0x3dfeaa=new Map();for(const [_0x16731c,_0x2190e9]of this['_diffRoots'])_0x53620a['set'](_0x16731c,T(_0x2190e9)),_0x3dfeaa['set'](_0x16731c,this['_diffRootsAttributes']['get'](_0x16731c));this['_saveMetaData'](_0x49e932,_0x53620a,this['_markers'],_0x3dfeaa);}['_getPreviousFrom'](_0x6d80b3){const _0x26e58c=Array['from'](this['_savedMetaData']['keys']());_0x26e58c['sort']((_0xc12018,_0x3608e1)=>_0xc12018-_0x3608e1),_0x26e58c['reverse']();for(const _0x1b0916 of _0x26e58c)if(_0x1b0916<_0x6d80b3)return _0x1b0916;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5cb572,_0x4d4d68){const _0x5d9602=Array['from'](_0x4d4d68['markers'])['map'](([_0x59c9fa,_0x15f618])=>[_0x59c9fa,this['_fixRange'](_0x15f618,_0x5cb572)]);_0x5cb572['markers']=new Map(_0x5d9602);}['_transformMarkers'](_0x20b91a){for(const _0x5a574a of this['_markers']['values']()){const _0x57c4a9=_0x5a574a['getTransformedByOperation'](_0x20b91a),_0x34977f=vt['_createFromRanges'](_0x57c4a9);_0x5a574a['start']=_0x34977f['start'],_0x5a574a['end']=_0x34977f['end'];}}['_handleOperation'](_0x26edb1,_0x50e79e){if('addRoot'!=_0x26edb1['type']&&'detachRoot'!=_0x26edb1['type']){if('insert'==_0x26edb1['type']){const _0x360bdf=_0x26edb1['position']['root']['rootName'];this['_diffRoots']['has'](_0x360bdf)||(this['_diffRoots']['set'](_0x360bdf,F(_0x360bdf,!0x0)),this['_diffRootsAttributes']['set'](_0x360bdf,{}),_0x50e79e&&this['_idsRoots']['set'](_0x360bdf,F(_0x360bdf,!0x0)));}else{if('addRootAttribute'==_0x26edb1['type']||'removeRootAttribute'==_0x26edb1['type']||'changeRootAttribute'==_0x26edb1['type'])return void this['_handleRootAttributeOperation'](_0x26edb1);'marker'==_0x26edb1['type']&&this['_handleMarkerOperation'](_0x26edb1);}if('marker'!==_0x26edb1['type']){const _0x42d358=this['_cloneOperation'](_0x26edb1,this['_diffRoots']);_0x42d358['_execute'](),this['_transformMarkers'](_0x42d358);}if(_0x50e79e)switch(_0x26edb1['type']){case'insert':this['_handleInsertOperation'](_0x26edb1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x26edb1);break;case'merge':this['_handleMergeOperation'](_0x26edb1);break;case'split':this['_handleSplitOperation'](_0x26edb1);}}else this['_handleRootOperation'](_0x26edb1,_0x50e79e);}['_cloneOperation'](_0x5df9e0,_0x529e06){const _0x5415a7=_0x5df9e0['clone']();return _0x5415a7['_authorId']=_0x5df9e0['_authorId'],this['_fixOperation'](_0x5415a7,_0x529e06),_0x5415a7;}['_getBaseVids'](_0x3a05f9){return _0x3a05f9['map'](_0x392378=>{const _0x5371d0=this['_getVidAttributeName'](_0x392378);return Number(_0x392378['item']['getAttribute'](_0x5371d0));});}['_generateTape'](_0x2f3785,_0x49ad61){if(_0x2f3785['is']('element','$text'))_0x49ad61['push']({'item':_0x2f3785,'type':'text'});else{_0x2f3785['is']('element')&&_0x49ad61['push']({'item':_0x2f3785,'type':'elementStart'});for(const _0x2e0ffd of _0x2f3785['getChildren']())this['_generateTape'](_0x2e0ffd,_0x49ad61);_0x2f3785['is']('element')&&_0x49ad61['push']({'item':_0x2f3785,'type':'elementEnd'});}return _0x49ad61;}['_getState'](){const _0x5c3a7d=new Map(this['_touched']),_0x3e1820=new Map(_0x5c3a7d),_0x958a1a=new Map(),_0xda2bb8={'insertions':{},'deletions':{}},_0x350f22={'insertions':{},'deletions':{}},_0x16d101=new Map(),_0x4a744d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4a744d['delete']('$graveyard');for(const _0x320248 of _0x4a744d){const _0x2103ff=this['_diffRoots']['get'](_0x320248)||F(_0x320248,!0x1),_0x4b0422=this['_baseRoots']['get'](_0x320248)||F(_0x320248,!0x1);_0x2103ff['isAttached']()||_0x4b0422['isAttached']()?(_0xda2bb8['insertions'][_0x320248]=T(_0x2103ff),_0xda2bb8['deletions'][_0x320248]=T(_0x4b0422),this['_copyMarkers'](_0xda2bb8['deletions'][_0x320248],_0x4b0422),this['_copyMarkers'](_0xda2bb8['insertions'][_0x320248],_0x2103ff),_0x350f22['insertions'][_0x320248]=this['_generateTape'](this['_idsRoots']['get'](_0x320248),[]),_0x350f22['deletions'][_0x320248]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x320248)||F(_0x320248,!0x1),[])):_0x4a744d['delete'](_0x320248);}for(const _0x5ab202 of _0x4a744d){const _0x388500=_0x350f22['insertions'][_0x5ab202];for(const _0x13ba47 of _0x388500){const _0x37d932=this['_getVidAttributeName'](_0x13ba47),_0x2294dd=_0x13ba47['item']['getAttribute'](_0x37d932);_0x3e1820['delete'](_0x2294dd),_0x2294dd>=this['_startingRevisionId']&&_0x958a1a['set'](_0x2294dd,_0x5c3a7d['get'](_0x2294dd));}}for(const _0x67b05f of _0x4a744d){const _0x412bae=_0x350f22['insertions'][_0x67b05f],_0x4781c4=this['_getBaseVids'](_0x350f22['deletions'][_0x67b05f]);let _0x13ee81=0x0;for(const _0x41697e of _0x412bae){const _0x39008a=this['_getVidAttributeName'](_0x41697e),_0x599203=_0x41697e['item']['getAttribute'](_0x39008a);if(!_0x958a1a['has'](_0x599203)&&!_0x16d101['has'](_0x599203)){if(_0x3e1820['has'](_0x599203))_0x13ee81++;else{if(_0x599203!=_0x4781c4[_0x13ee81]){const _0x5122c9=_0x5c3a7d['get'](_0x599203)||_0x5c3a7d['get'](_0x4781c4[_0x13ee81]);for(;_0x599203!=_0x4781c4[_0x13ee81];)_0x3e1820['has'](_0x4781c4[_0x13ee81])||(_0x16d101['set'](_0x4781c4[_0x13ee81],_0x5122c9),_0x5c3a7d['set'](_0x4781c4[_0x13ee81],_0x5122c9)),_0x13ee81++;}_0x13ee81++;}}}}for(const _0x568197 of _0x4a744d){const _0x35973d=_0x350f22['insertions'][_0x568197];for(const _0x3665f1 of _0x35973d){const _0x141ebf=this['_getVidAttributeName'](_0x3665f1),_0x435f5d=_0x3665f1['item']['getAttribute'](_0x141ebf);if(_0x16d101['has'](_0x435f5d)){const _0x4e7446=_0x16d101['get'](_0x435f5d);_0x3e1820['has'](_0x435f5d)||_0x3e1820['set'](_0x435f5d,{..._0x4e7446}),_0x958a1a['set'](_0x435f5d,{..._0x4e7446});}}}for(const _0x29296b of _0x3e1820['keys']())_0x29296b>=this['_startingRevisionId']&&_0x3e1820['delete'](_0x29296b);const _0x2b79dd=new Map();for(const _0x1d972f of _0x4a744d){let _0x1ca833=_0x350f22['insertions'][_0x1d972f];for(const _0xbf207a of _0x1ca833)if(_0xbf207a['item']['is']('element','tableCell')){const _0x2287dd=this['_getVidAttributeName'](_0xbf207a),_0x54863c=_0xbf207a['item']['getAttribute'](_0x2287dd);if(_0x958a1a['has'](_0x54863c)){const _0x102d26=_0xbf207a['item']['parent']['parent']['getAttribute']('vid_start'),_0x1c4238=_0x2b79dd['get'](_0x102d26)||new Set();_0x1c4238['add'](_0x958a1a['get'](_0x54863c)['userId']),_0x2b79dd['set'](_0x102d26,_0x1c4238);}}_0x1ca833=_0x350f22['deletions'][_0x1d972f];for(const _0x40c173 of _0x1ca833)if(_0x40c173['item']['is']('element','tableCell')){const _0x52e1b6=this['_getVidAttributeName'](_0x40c173),_0x4a0a28=_0x40c173['item']['getAttribute'](_0x52e1b6);if(_0x3e1820['has'](_0x4a0a28)){const _0x15511c=_0x40c173['item']['parent']['parent']['getAttribute']('vid_start'),_0xcbb986=_0x2b79dd['get'](_0x15511c)||new Set();_0xcbb986['add'](_0x3e1820['get'](_0x4a0a28)['userId']),_0x2b79dd['set'](_0x15511c,_0xcbb986);}}for(const _0x25eefa of _0x2b79dd['keys']())(_0x958a1a['has'](_0x25eefa)||_0x3e1820['has'](_0x25eefa))&&_0x2b79dd['delete'](_0x25eefa);}for(const _0x3f2a91 of _0x4a744d){const _0x56f6eb=_0x350f22['insertions'][_0x3f2a91];let _0x3a6880=null,_0x4d1074=null;for(const _0x4c9a11 of _0x56f6eb){const _0x5f4249=this['_getVidAttributeName'](_0x4c9a11),_0x53354d=_0x4c9a11['item']['getAttribute'](_0x5f4249),_0x47e17a=_0x2b79dd['get'](_0x53354d);_0x47e17a&&'elementStart'==_0x4c9a11['type']&&(_0x3a6880=Array['from'](_0x47e17a)[0x0],_0x4d1074=_0x4c9a11['item']['getAttribute']('vid_end')),_0x3a6880&&(_0x3e1820['set'](_0x53354d,{'userId':_0x3a6880}),_0x958a1a['set'](_0x53354d,{'userId':_0x3a6880})),_0x53354d==_0x4d1074&&(_0x3a6880=null,_0x4d1074=null);}}const _0x352b5e={},_0x31d8b3=new Set();for(const _0xd32281 of _0x4a744d){const _0x3b55e4=_0xda2bb8['deletions'][_0xd32281],_0x3a3fa6=_0xda2bb8['insertions'][_0xd32281];for(const {userId:_0x30e427}of this['_touchedMarkers']['values']())null!==_0x30e427&&_0x31d8b3['add'](_0x30e427);for(const {userId:_0x4a5041}of this['_touchedRoots']['values']())null!==_0x4a5041&&_0x31d8b3['add'](_0x4a5041);this['_markChanges'](_0x3a3fa6,_0x350f22['insertions'][_0xd32281],_0x958a1a,'insertion',_0x31d8b3),this['_markChanges'](_0x3b55e4,_0x350f22['deletions'][_0xd32281],_0x3e1820,'deletion',_0x31d8b3),_0x352b5e[_0xd32281]={'insertions':this['_prepareViewToSave'](_0x3a3fa6),'deletions':this['_prepareViewToSave'](_0x3b55e4),'attachChange':this['_touchedRoots']['get'](_0xd32281)||null,'attributesBefore':_0x3d1bef(this['_baseRootsAttributes']['get'](_0xd32281))||{},'attributesAfter':_0x3d1bef(this['_diffRootsAttributes']['get'](_0xd32281))};}return{'diffData':_0x352b5e,'authorsIds':Array['from'](_0x31d8b3)};}['_processRootBeforeSave'](_0x4fda04){for(const [,_0x1755f2]of _0x4fda04['markers']){const _0x47e2db=_0x1755f2['start']['getAncestors']()['filter'](_0x414536=>'tableCell'==_0x414536['name']);for(const _0x411132 of _0x47e2db)0x1==_0x411132['childCount']&&_0x411132['getChild'](0x0)['is']('element','paragraph')&&_0x411132['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x117984){this['_processRootBeforeSave'](_0x117984);const _0xd6ef11=this['editor']['data']['toView'](_0x117984,{}),_0x5554dd=Array['from'](_0xd6ef11['getChildren']())['map'](_0x29ba76=>this['_getViewJson'](_0x29ba76));return JSON['stringify'](_0x5554dd);}['_getViewJson'](_0x2c98be){if(_0x2c98be['is']('$text'))return _0x2c98be['data'];{const _0x497b60=_0x2c98be;return{'type':Object['keys'](P)['find'](_0x516d99=>_0x2c98be instanceof P[_0x516d99]),'name':_0x497b60['name'],'attributes':Array['from'](_0x497b60['getAttributes']()),'children':Array['from'](_0x497b60['getChildren']())['map'](_0x130af6=>this['_getViewJson'](_0x130af6))};}}['_markChanges'](_0x581284,_0x1a96c0,_0x41fe01,_0x133fee,_0x496c89){let _0x3cb50d=null,_0x407add=null,_0x2b2e79=0x0;const _0x56da5e=this['editor']['model'];for(let _0x1071ac=0x0;_0x1071ac<_0x1a96c0['length'];_0x1071ac++){const _0x3803c2=this['_getVidAttributeName'](_0x1a96c0[_0x1071ac]),_0x4b027f=_0x1a96c0[_0x1071ac]['item']['getAttribute'](_0x3803c2),_0x5e6ffe=_0x41fe01['get'](_0x4b027f),_0x4352a8=_0x1071ac==_0x1a96c0['length']-0x1;(!_0x3cb50d&&_0x5e6ffe&&(_0x3cb50d=_0x5e6ffe,_0x407add=_0x1a96c0[_0x1071ac]),_0x3cb50d&&(!_0x5e6ffe||_0x5e6ffe['userId']!=_0x3cb50d['userId']))&&(_0x5667ae(_0x5e6ffe,B(_0x407add,_0x581284,_0x56da5e),B(_0x1a96c0[_0x1071ac],_0x581284,_0x56da5e)),_0x3cb50d=_0x5e6ffe||null,_0x407add=_0x5e6ffe?_0x1a96c0[_0x1071ac]:null),_0x3cb50d&&_0x4352a8&&_0x5667ae(_0x5e6ffe,B(_0x407add,_0x581284,_0x56da5e),J(_0x1a96c0[_0x1071ac],_0x581284,_0x56da5e));}function _0x5667ae(_0x235222,_0x2bb55e,_0x1cfbc7){const _0x2c171b=_0x3cb50d['userId'],_0x39f91c='revision:'+_0x133fee+':'+_0x2c171b+':'+_0x2b2e79++,_0x5afe59=_0x56da5e['createRange'](_0x2bb55e,_0x1cfbc7);_0x581284['markers']['set'](_0x39f91c,_0x5afe59),null!==_0x2c171b&&_0x496c89['add'](_0x2c171b);}}['_getVidAttributeName'](_0x6a10af){switch(_0x6a10af['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2c6137,_0x84b2e3){_0x2c6137['baseVersion']=null;for(const _0x12b8ca in _0x2c6137){const _0x3f286c=_0x2c6137[_0x12b8ca];if(_0x3f286c instanceof gt){const _0x190efe=_0x84b2e3['get'](_0x3f286c['root']['rootName']);_0x2c6137[_0x12b8ca]=this['_fixPosition'](_0x3f286c,_0x190efe);}if(_0x3f286c instanceof vt){const _0x79903b=_0x84b2e3['get'](_0x3f286c['root']['rootName']);_0x2c6137[_0x12b8ca]=this['_fixRange'](_0x3f286c,_0x79903b);}'root'===_0x12b8ca&&(_0x2c6137['root']=_0x84b2e3['get'](_0x2c6137['root']['rootName']));}}['_fixRange'](_0x1702c5,_0xf06d38){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1702c5['start'],_0xf06d38),this['_fixPosition'](_0x1702c5['end'],_0xf06d38));}['_fixPosition'](_0x6baba2,_0x149ead){return this['editor']['model']['createPositionFromPath'](_0x149ead,_0x6baba2['path'],_0x6baba2['stickiness']);}['_handleInsertOperation'](_0x384370){const _0xc8143b=this['_idsRoots']['get'](_0x384370['position']['root']['rootName']),_0x3cc150=this['_fixPosition'](_0x384370['position'],_0xc8143b),_0x2a17b4=null===_0x384370['_authorId']?null:_0x384370['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4fa6c4=_0x3cc150['parent'],_0x4c11f6=this['_revisionId'],_0x218039=[];for(const _0x5723bd of _0x384370['nodes'])if(_0x5723bd['is']('element'))_0x218039['push'](this['_makeIdsRoot'](_0x5723bd));else{for(let _0x1e15ac=0x0;_0x1e15ac<_0x5723bd['offsetSize'];_0x1e15ac++)_0x218039['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2c2467=this['_revisionId'];for(let _0x4f55f2=_0x4c11f6;_0x4f55f2<_0x2c2467;_0x4f55f2++)this['_touched']['set'](_0x4f55f2,{'userId':_0x2a17b4});_0x4fa6c4['_insertChild'](_0x3cc150['offset'],_0x218039);}['_handleMoveOperation'](_0x2dde4f){(_0x2dde4f=this['_cloneOperation'](_0x2dde4f,this['_idsRoots']))['_execute']();const _0x53c4f6=null===_0x2dde4f['_authorId']?null:_0x2dde4f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x594ad2=_0x2dde4f['getMovedRangeStart'](),_0x3e642a=_0x594ad2['parent'],_0x5edc9a=_0x594ad2['offset'];!function _0x445783(_0x2150cc,_0x2fd40e,_0x572496,_0x7e006c){for(let _0x2487c4=_0x572496;_0x2487c4<_0x7e006c;_0x2487c4++){const _0x2dfdc1=_0x2fd40e['getChild'](_0x2487c4);_0x2dfdc1['is']('element','$text')?_0x2150cc['set'](_0x2dfdc1['getAttribute']('vid'),{'userId':_0x53c4f6}):(_0x2150cc['set'](_0x2dfdc1['getAttribute']('vid_start'),{'userId':_0x53c4f6}),_0x445783(_0x2150cc,_0x2dfdc1,0x0,_0x2dfdc1['childCount']),_0x2150cc['set'](_0x2dfdc1['getAttribute']('vid_end'),{'userId':_0x53c4f6}));}}(this['_touched'],_0x3e642a,_0x5edc9a,_0x5edc9a+_0x2dde4f['howMany']);}['_handleMergeOperation'](_0xa9a54){const _0x13fbfb=null===(_0xa9a54=this['_cloneOperation'](_0xa9a54,this['_idsRoots']))['_authorId']?null:_0xa9a54['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x414c24=_0xa9a54['targetPosition']['parent'],_0x307280=_0xa9a54['sourcePosition']['parent'],_0x17460f=_0x414c24['getAttribute']('vid_end'),_0x1f050b=_0x307280['getAttribute']('vid_start');_0x414c24['_setAttribute']('vid_end',_0x307280['getAttribute']('vid_end')),_0x307280['_setAttribute']('vid_end',_0x17460f),this['_touched']['set'](_0x1f050b,{'userId':_0x13fbfb}),this['_touched']['set'](_0x17460f,{'userId':_0x13fbfb}),_0xa9a54['_execute']();}['_handleSplitOperation'](_0x2df568){const _0x314c41=null===(_0x2df568=this['_cloneOperation'](_0x2df568,this['_idsRoots']))['_authorId']?null:_0x2df568['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2820d0=_0x2df568['graveyardPosition'],_0x59d88d=_0x2df568['splitPosition']['parent'];_0x2df568['_execute']();const _0x505af4=_0x59d88d['getAttribute']('vid_end'),_0x3c1467=_0x2df568['insertionPosition']['nodeAfter'];if(_0x2820d0){const _0x41231b=_0x3c1467['getAttribute']('vid_end'),_0x232c4e=_0x59d88d['getAttribute']('vid_end');_0x59d88d['_setAttribute']('vid_end',_0x41231b),_0x3c1467['_setAttribute']('vid_end',_0x232c4e),this['_touched']['set'](_0x59d88d['getAttribute']('vid_end'),{'userId':_0x314c41}),this['_touched']['set'](_0x3c1467['getAttribute']('vid_start'),{'userId':_0x314c41});}else{const _0x924f85=this['_revisionId']++,_0x2b120a=this['_revisionId']++;_0x59d88d['_setAttribute']('vid_end',_0x924f85),_0x3c1467['_setAttribute']('vid_start',_0x2b120a),_0x3c1467['_setAttribute']('vid_end',_0x505af4),this['_touched']['set'](_0x924f85,{'userId':_0x314c41}),this['_touched']['set'](_0x2b120a,{'userId':_0x314c41});}}['_handleMarkerOperation'](_0x5d11bc){if(!_0x5d11bc['affectsData'])return;const _0x4f1ce6=(_0x5d11bc=this['_cloneOperation'](_0x5d11bc,this['_diffRoots']))['oldRange']?_0x5d11bc['oldRange']['root']:null,_0x2c20dc=_0x5d11bc['newRange']?_0x5d11bc['newRange']['root']:null;_0x4f1ce6&&this['_markers']['delete'](_0x5d11bc['name']),_0x2c20dc&&this['_markers']['set'](_0x5d11bc['name'],_0x5d11bc['newRange']['clone']());const _0x2682b9=null===_0x5d11bc['_authorId']?null:_0x5d11bc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b3abb=_0x5d11bc['name'];if(!this['_touchedMarkers']['has'](_0x1b3abb))return void this['_touchedMarkers']['set'](_0x1b3abb,{'range':_0x5d11bc['oldRange'],'userId':_0x2682b9});const _0x2df066=this['_touchedMarkers']['get'](_0x1b3abb),_0x5cc844=_0x2df066['range'],_0x224090=_0x5d11bc['newRange'];null==_0x5cc844&&null==_0x224090||_0x5cc844&&_0x224090&&_0x5cc844['isEqual'](_0x224090)?this['_touchedMarkers']['delete'](_0x5d11bc['name']):_0x2df066['userId']=_0x2682b9;}['_handleRootOperation'](_0x57af68,_0xbfe616){this['_diffRoots']['has'](_0x57af68['rootName'])?this['_diffRoots']['get'](_0x57af68['rootName'])['_isAttached']=_0x57af68['isAdd']:(this['_diffRoots']['set'](_0x57af68['rootName'],F(_0x57af68['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x57af68['rootName'],{}),_0xbfe616&&this['_idsRoots']['set'](_0x57af68['rootName'],F(_0x57af68['rootName'],!0x0)));const _0xb471ab=null===_0x57af68['_authorId']?null:_0x57af68['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x576027=this['_touchedRoots']['get'](_0x57af68['rootName']);_0x576027&&_0x576027['userId']===_0xb471ab?this['_touchedRoots']['delete'](_0x57af68['rootName']):this['_touchedRoots']['set'](_0x57af68['rootName'],{'userId':_0xb471ab,'isAttached':_0x57af68['isAdd']});}['_handleRootAttributeOperation'](_0x16476d){const _0xba1c88=this['_diffRootsAttributes']['get'](_0x16476d['root']['rootName']);null===_0x16476d['newValue']?delete _0xba1c88[_0x16476d['key']]:_0xba1c88[_0x16476d['key']]=_0x16476d['newValue'];}}function T(_0x21c566){const _0x4b1aaa=F(_0x21c566['rootName'],_0x21c566['isAttached']());for(const _0x2d06aa of _0x21c566['getChildren']()){const _0x14f4c2=_0x2d06aa['_clone'](!0x0);_0x4b1aaa['_appendChild'](_0x14f4c2);}return _0x4b1aaa;}function F(_0xf5844b,_0x962f4e=!0x0){const _0x2bec04=new mt();return _0x2bec04['rootName']=_0xf5844b,_0x2bec04['_isAttached']=_0x962f4e,_0x2bec04['isAttached']=()=>_0x2bec04['_isAttached'],_0x2bec04;}function B(_0x435d2f,_0x229206,_0x499ce1){const _0xd653c2='elementEnd'==_0x435d2f['type']?_0x499ce1['createPositionAt'](_0x435d2f['item'],'end'):_0x499ce1['createPositionBefore'](_0x435d2f['item']);return _0x499ce1['createPositionFromPath'](_0x229206,_0xd653c2['path'],_0xd653c2['stickiness']);}function J(_0x201764,_0x3f5b61,_0x54418a){const _0x366ae8='elementStart'==_0x201764['type']?_0x54418a['createPositionAt'](_0x201764['item'],0x0):_0x54418a['createPositionAfter'](_0x201764['item']);return _0x54418a['createPositionFromPath'](_0x3f5b61,_0x366ae8['path'],_0x366ae8['stickiness']);}class ns extends _0x571e95{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x13b5fd,_0x8c9a0c){super(_0x13b5fd),this['focusTracker']=new _0x1f39a3(),this['keystrokes']=new _0x11ba63(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x8c9a0c),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'](),_0x2af42e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2e5eb9=_0xebb81d=>_0xebb81d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2e5eb9),this['keystrokes']['set']('arrowleft',_0x2e5eb9),this['keystrokes']['set']('arrowup',_0x2e5eb9),this['keystrokes']['set']('arrowdown',_0x2e5eb9);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2d0cfc){this['revisionNameInputView']['fieldView']['element']['value']=_0x2d0cfc['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4bb4cd){const _0x134f46=new nt(this['locale'],_0x1d2e0c),_0xcdf827=_0x134f46['fieldView'];_0xcdf827['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x307c29=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4bb4cd&&(_0x307c29+='\x20('+m(this['locale'],'optional')+')'),(_0x134f46['label']=_0x307c29,_0xcdf827['on']('input',()=>{this['revisionNameInputValue']=_0xcdf827['element']['value']['trim']();}),_0x134f46);}}class u extends _0x314a0a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2e5373=this['editor'],_0x4ef7d0=_0x2e5373['plugins']['get']('RevisionTracker');_0x2e5373['ui']['componentFactory']['add']('revisionHistory',_0x5c8aac=>{const _0x3a1d8a=_0x480339(_0x5c8aac),_0x21a6d5=_0x3a1d8a['panelView']['children'],_0x93c60f=new te(_0x5c8aac),_0xbb188f=new _0x5f552b(_0x5c8aac),_0x1dcf5b=new _0x59b23e(_0x5c8aac),_0x4a5bdd=new _0x5f552b(_0x5c8aac),_0x44a55e=new _0x59b23e(_0x5c8aac);return _0x3a1d8a['bind']('isEnabled')['to'](_0x4ef7d0,'isReady',_0x4ef7d0,'isEnabled',_0x2e5373,'isReadOnly',(_0x2bbe87,_0x1240dc,_0x4080a6)=>_0x2bbe87&&_0x1240dc&&!_0x4080a6),_0x3a1d8a['buttonView']['set']({'icon':_0x42aafe['history'],'label':m(_0x5c8aac,'Revision\x20history'),'tooltip':!0x0}),_0x1dcf5b['set']({'label':m(_0x5c8aac,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1dcf5b['bind']('isEnabled')['to'](_0x4ef7d0,'isReady',_0x4ef7d0,'isEnabled',_0x2e5373,'isReadOnly',(_0x346b35,_0x3cde31,_0xca5aff)=>_0x346b35&&_0x3cde31&&!_0xca5aff),_0x1dcf5b['on']('execute',()=>this['_showDialog']()),_0x44a55e['set']({'label':m(_0x5c8aac,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x44a55e['bind']('isEnabled')['to'](_0x4ef7d0,'isReady',_0x2e5373,'isReadOnly',(_0x42f00d,_0x1812d7)=>_0x42f00d&&!_0x1812d7),_0x44a55e['on']('execute',()=>{_0x2e5373['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3a1d8a['isOpen']=!0x1,_0x2e5373['editing']['view']['focus']();}),_0xbb188f['children']['add'](_0x1dcf5b),_0x4a5bdd['children']['add'](_0x44a55e),_0x93c60f['role']='menu',_0x93c60f['items']['addMany']([_0xbb188f,_0x4a5bdd]),_0x21a6d5['add'](_0x93c60f),_0x3a1d8a;}),_0x2e5373['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x25686c=this['editor'],_0xa3165c=_0x25686c['locale'],_0x5aeb93=new _0x8dd679(_0xa3165c),_0x32042e=new _0x4ac257(_0xa3165c);_0x5aeb93['buttonView']['set']({'icon':_0x42aafe['history'],'label':m(_0xa3165c,'Revision\x20history')});const _0x32e648=new _0x5053a2(_0xa3165c,_0x5aeb93),_0x21b934=new _0x1b3f57(_0xa3165c);_0x21b934['set']({'label':m(_0xa3165c,'Save\x20current\x20revision')}),_0x21b934['delegate']('execute')['to'](_0x5aeb93),_0x21b934['on']('execute',()=>{this['_showDialog']();}),_0x32e648['children']['add'](_0x21b934),_0x32042e['items']['add'](_0x32e648);const _0x38f8fb=new _0x5053a2(_0xa3165c,_0x5aeb93),_0x4cb7db=new _0x1b3f57(_0xa3165c);return _0x4cb7db['set']({'label':m(_0xa3165c,'Open\x20revision\x20history')}),_0x4cb7db['delegate']('execute')['to'](_0x5aeb93),_0x4cb7db['on']('execute',()=>{_0x25686c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x38f8fb['children']['add'](_0x4cb7db),_0x32042e['items']['add'](_0x38f8fb),_0x5aeb93['panelView']['children']['add'](_0x32042e),_0x5aeb93;}['_showDialog'](){const _0x251fc1=this['editor'],_0x966f81=_0x251fc1['locale'],_0x9ebae5=_0x251fc1['plugins']['get']('Dialog'),_0x5bb5f4=_0x251fc1['plugins']['get']('RevisionTracker');function _0x1ffdde(_0x404bae){_0x251fc1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x404bae['revisionName']?_0x404bae['revisionNameInputView']['errorText']=m(_0x966f81,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x251fc1['plugins']['get'](l)['saveRevision']({'name':_0x404bae['revisionName']}),_0x9ebae5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1ffdde(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x9ebae5['show']({'id':'revisionSave','title':m(_0x966f81,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x251fc1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x9ebae5['hide']()},{'label':m(_0x251fc1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d2905){_0x1d2905['bind']('isEnabled')['to'](_0x5bb5f4,'isReady',_0x5bb5f4,'isEnabled',_0x251fc1,'isReadOnly',(_0x53225e,_0x1d44ab,_0x5a99cb)=>_0x53225e&&_0x1d44ab&&!_0x5a99cb);},'onExecute':()=>_0x1ffdde(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x40a21f=this['editor'],_0x2daed1=_0x40a21f['locale'];this['_saveRevisionFormView']=new ns(_0x2daed1,_0x40a21f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x571e95{['changeId'];['_model'];constructor(_0x176d66,_0x27015d){super(_0x176d66),this['_model']=_0x27015d,this['changeId']=_0x27015d['id'];const _0x4db1de=this['bindTemplate'],_0x21ac29=m(_0x176d66,_0x27015d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x27015d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x27015d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4db1de['to']('type',_0x2d89f6=>'ck-revision-change__'+_0x2d89f6)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x21ac29}]},{'text':'\x20'+_0x27015d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x3df942(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x408863){super(),this['id']=_0x408863['id']||_0x1f968a(),this['author']=_0x408863['author'],this['type']=_0x408863['type'],this['data']=_0x408863['data']||{},this['rootName']=_0x408863['rootName'],this['set']('createdAt',_0x408863['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(_0x3f44eb,_0x2b0276){this['newRevisionId']=_0x3f44eb,this['oldRevisionId']=_0x2b0276,this['changes']=new _0x45da80();}['_setChanges'](_0x47dd7d){for(const _0x49a39e of _0x47dd7d)this['changes']['add'](_0x49a39e);}}const Y={'c':_0xe6e3ea,'a':_0x10d9e1,'e':_0x597b98,'r':_0x27d44b,'u':_0xd4e326};class d extends _0x314a0a{['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[_0x7a2999,_0x10aeb9,j];}constructor(_0x477dfe){super(_0x477dfe),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',(_0x49cb6c,_0x4b3328,_0x826e24)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1d27b4=>{for(const _0x1bd30e of this['editor']['editing']['view']['document']['roots'])_0x826e24?_0x1d27b4['removeClass']('ck-editor__editable__overlay',_0x1bd30e):_0x1d27b4['addClass']('ck-editor__editable__overlay',_0x1bd30e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xda300=>null!==_0xda300),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x27c582,_0x3d141f,_0x28fcf2)=>_0x27c582&&_0x28fcf2?_0x3d141f['changes']['getIndex'](_0x28fcf2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xc77459,_0x1f16d6)=>_0xc77459?_0x1f16d6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x10aeb9);}['init'](){const _0x1352a5=this['editor'],_0x3d0e9b=new yt(_0x1352a5,{'direction':'backward'}),_0x39a3e0=new yt(_0x1352a5,{'direction':'forward'});(_0x1352a5['commands']['add']('showPreviousChange',_0x3d0e9b),_0x1352a5['commands']['add']('showNextChange',_0x39a3e0),_0x1352a5['commands']['add']('restoreRevision',new _t(_0x1352a5)),this['on']('change:numberOfChanges',()=>{_0x3d0e9b['refresh'](),_0x39a3e0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1352a5['enableReadOnlyMode']('revision-viewer'),_0x1352a5['plugins']['has']('WidgetToolbarRepository'))&&_0x1352a5['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x141011){await this['loadRevisionData'](_0x141011);const _0x18b712={};for(const _0x4c44c6 in _0x141011['diffData']){if(_0x141011['diffData'][_0x4c44c6]['attachChange']&&!_0x141011['diffData'][_0x4c44c6]['attachChange']['isAttached'])continue;const _0x2bfedc=this['_removeRevisionMarkers'](JSON['parse'](_0x141011['diffData'][_0x4c44c6]['insertions'])),_0x4a795d=this['editor']['editing']['view']['document'],_0x4fc94c=new _0x1ebfbf(_0x4a795d,_0x2bfedc['map'](_0x991413=>this['_getViewObj'](_0x991413)));this['editor']['data']['processor']['useFillerType']('marked'),_0x18b712[_0x4c44c6]=this['editor']['data']['processor']['toData'](_0x4fc94c),this['editor']['data']['processor']['useFillerType']('default');}return _0x18b712;}async['getRevisionRootsAttributes'](_0x58c88b){await this['loadRevisionData'](_0x58c88b);const _0x4c4952={};for(const _0x1cd808 in _0x58c88b['diffData'])_0x58c88b['diffData'][_0x1cd808]['attachChange']&&!_0x58c88b['diffData'][_0x1cd808]['attachChange']['isAttached']||(_0x4c4952[_0x1cd808]=_0x58c88b['diffData'][_0x1cd808]['attributesAfter']||{});return _0x4c4952;}['_removeRevisionMarkers'](_0x112e00){return(_0x112e00=_0x112e00['filter'](_0x13cbf6=>!_0x13cbf6['name']||'revision-start'!==_0x13cbf6['name']&&'revision-end'!==_0x13cbf6['name']))['forEach'](_0x52aad9=>{'string'!=typeof _0x52aad9&&(_0x52aad9['children']=this['_removeRevisionMarkers'](_0x52aad9['children']),_0x52aad9['attributes']=_0x52aad9['attributes']['filter'](_0x68531d=>!_0x68531d[0x0]['startsWith']('data-revision-')));}),_0x112e00;}async['compare'](_0x4cd475,_0x1931a1,_0x2c7893=!0x1){if(!this['isEnabled'])return;const _0x54bbe7=this['diff'],_0x5943a2=this['repository'],_0x1a3645='string'==typeof _0x4cd475?_0x5943a2['getRevision'](_0x4cd475):_0x4cd475,_0x2c911c='string'==typeof _0x1931a1?_0x5943a2['getRevision'](_0x1931a1):_0x1931a1,_0x315592=_0x1a3645['id'],_0x3e56d5=_0x2c911c?_0x2c911c['id']:null;if(!_0x2c7893&&this['diff']&&this['diff']['newRevisionId']===_0x315592&&this['diff']['oldRevisionId']===_0x3e56d5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x315592,_0x3e56d5);const _0xc8cd9a=this['_getRevisionsRange'](_0x1a3645,_0x2c911c,!0x0)['map'](_0x3180f=>this['loadRevisionData'](_0x3180f));return _0xc8cd9a['push'](new Promise(_0x5b87fb=>{setTimeout(_0x5b87fb,0x14);})),Promise['all'](_0xc8cd9a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x256935=this['_getDiff'](_0x315592,_0x3e56d5);for(const _0x4bdf52 of _0x256935['changes'])this['_changeIdToChange']['set'](_0x4bdf52['id'],_0x4bdf52);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x325c96=>{for(const _0x37d204 of this['editor']['model']['document']['getRootNames']())_0x325c96['detachRoot'](_0x37d204);for(const _0x51dc39 of Object['keys'](_0x256935['model'])){const _0xe82c0=_0x325c96['addRoot'](_0x51dc39);for(const _0x389af9 of Object['keys'](_0x256935['attributes'][_0x51dc39]))_0x325c96['setAttribute'](_0x389af9,_0x256935['attributes'][_0x51dc39][_0x389af9],_0xe82c0);_0x325c96['insert'](_0x256935['model'][_0x51dc39],_0xe82c0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x256935['changes'])),this['isReady']=!0x0;})['catch'](_0x529e74=>{console['error'](_0x529e74),this['_cleanUp'](),_0x54bbe7&&(this['diff']=_0x54bbe7),this['isReady']=!0x0;});}['addRevisionData'](_0x231adb,_0x3f88e6){const _0x22ea2c=this['repository']['createRevision'](_0x231adb);return _0x22ea2c['on']('_update',(_0x5ac148,_0x4f4d83,_0x555ef0)=>_0x3f88e6(_0x4f4d83,_0x555ef0,_0x22ea2c)),this['repository']['addRevision'](_0x22ea2c),_0x22ea2c;}['loadRevisionData'](_0xd11d47){if(!_0xd11d47||_0xd11d47['diffData'])return Promise['resolve']();{const _0x41f853=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x41f853,'revisionId':_0xd11d47['id']})['then'](_0x13a7d3=>{_0xd11d47['_update']({'diffData':_0x13a7d3['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},_0x20dcc0=>{for(const _0x22fc71 of this['editor']['model']['document']['getRootNames']())_0x20dcc0['detachRoot'](_0x22fc71);});}['_sortAndFilterDiffChanges'](_0x621b73){const _0x52cc3f=[],_0x163649=new Map();for(const _0x5cd761 of this['editor']['model']['document']['getRootNames']()){const _0x222963=this['editor']['editing']['view']['getDomRoot'](_0x5cd761);if(!_0x222963)continue;const _0x2b87f6=_0x222963['getClientRects']()['item'](0x0);_0x2b87f6&&(_0x52cc3f['push'](_0x5cd761),_0x163649['set'](_0x5cd761,_0x2b87f6));}return _0x52cc3f['sort']((_0x15eaca,_0x1d7ad4)=>{const _0x3dcc9d=_0x163649['get'](_0x15eaca),_0x24a188=_0x163649['get'](_0x1d7ad4);return _0x3dcc9d['y']-_0x24a188['y']||_0x3dcc9d['x']-_0x24a188['x'];}),(_0x621b73=_0x621b73['filter'](_0x575dd6=>_0x52cc3f['includes'](_0x575dd6['rootName'])))['sort']((_0x51c39c,_0x5871cb)=>_0x52cc3f['indexOf'](_0x51c39c['rootName'])-_0x52cc3f['indexOf'](_0x5871cb['rootName'])),_0x621b73;}['_makeTape'](_0x19c657){const _0x1ac10c=Array['from'](_0x19c657['markers'])['filter'](([_0x13cccb,_0x183aa9])=>_0x13cccb['startsWith']('revision:')&&!_0x183aa9['isCollapsed']),_0x447594=Array['from'](this['editor']['model']['createRangeIn'](_0x19c657)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1ac10c['length'])for(const _0x3d5a3 of _0x447594){const [_0x4430e4,_0x44c6ba]=_0x1ac10c[0x0],[,_0x314cee,_0x4d5d0a]=_0x4430e4['split'](':');if(_0x44c6ba['end']['isEqual'](_0x3d5a3['nextPosition'])&&_0x1ac10c['shift'](),(_0x3d5a3['previousPosition']['isEqual'](_0x44c6ba['start'])||_0x3d5a3['previousPosition']['isAfter'](_0x44c6ba['start']))&&('insertion'==_0x314cee?_0x3d5a3['isAdded']={'userId':_0x4d5d0a}:'deletion'==_0x314cee&&(_0x3d5a3['isRemoved']={'userId':_0x4d5d0a})),0x0==_0x1ac10c['length'])break;}return _0x447594;}['_refreshStartEndIndex'](_0xeb4958){const _0x5d05a9=new Map();for(let _0x4b2780=0x0;_0x4b2780<_0xeb4958['length'];_0x4b2780++)'text'===_0xeb4958[_0x4b2780]['type']?(_0xeb4958[_0x4b2780]['item']['startIndex']=_0x4b2780,_0xeb4958[_0x4b2780]['item']['endIndex']=_0x4b2780):('elementStart'===_0xeb4958[_0x4b2780]['type']?_0xeb4958[_0x4b2780]['item']['startIndex']=_0x4b2780:'elementEnd'===_0xeb4958[_0x4b2780]['type']&&(_0xeb4958[_0x4b2780]['item']['endIndex']=_0x4b2780),_0x5d05a9['set'](_0xeb4958[_0x4b2780]['id'],_0x4b2780));for(const _0x495aa1 of _0x5d05a9['values']())'elementStart'===_0xeb4958[_0x495aa1]['type']?_0xeb4958[_0x495aa1]['item']['endIndex']=_0x5d05a9['get'](_0xeb4958[_0x495aa1]['pairId']):'elementEnd'===_0xeb4958[_0x495aa1]['type']&&(_0xeb4958[_0x495aa1]['item']['startIndex']=_0x5d05a9['get'](_0xeb4958[_0x495aa1]['pairId']));}['_processTape'](_0x33384e){for(let _0x49171a=0x0;_0x49171a<_0x33384e['length'];_0x49171a++){if('elementStart'===_0x33384e[_0x49171a]['type'])_0x33384e[_0x49171a]['item']['startIndex']=_0x49171a;else{if('elementEnd'===_0x33384e[_0x49171a]['type']){_0x33384e[_0x49171a]['item']['endIndex']=_0x49171a;const _0x37bff3=_0x33384e[_0x49171a]['item']['startIndex'];_0x33384e[_0x37bff3]['pairId']=_0x33384e[_0x49171a]['id'],_0x33384e[_0x49171a]['pairId']=_0x33384e[_0x37bff3]['id'];}else _0x33384e[_0x49171a]['item']['startIndex']=_0x49171a,_0x33384e[_0x49171a]['item']['endIndex']=_0x49171a,_0x33384e[_0x49171a]['pairId']=null;}_0x33384e[_0x49171a]['markersStart']||(_0x33384e[_0x49171a]['markersStart']=[],_0x33384e[_0x49171a]['markersEnd']=[]);}}['_markInsertions'](_0x104343,_0x146ba8){const _0x4a7a5d=_0x104343['filter'](_0x582119=>!_0x582119['isAdded']);for(let _0x45abc9=0x0;_0x45abc9<_0x146ba8['length'];_0x45abc9++)_0x146ba8[_0x45abc9]['isAdded']&&(_0x4a7a5d[_0x45abc9]['isAdded']=_0x146ba8[_0x45abc9]['isAdded']);}['_makeModelFromViewString'](_0x4b541c){const _0x374760=JSON['parse'](_0x4b541c),_0xa4d095=this['editor']['editing']['view']['document'],_0x47a6ce=new _0x1ebfbf(_0xa4d095,_0x374760['map'](_0x5b7d6e=>this['_getViewObj'](_0x5b7d6e)));return this['editor']['data']['toModel'](_0x47a6ce);}['_getViewObj'](_0x431692){const _0x551adc=this['editor']['editing']['view']['document'];if('string'==typeof _0x431692)return new _0x166355(_0x551adc,_0x431692);{const _0x2d89e3=_0x431692['children']['map'](_0x33c1a7=>this['_getViewObj'](_0x33c1a7));return new(Y[_0x431692['type']]||_0x2b1c67)(_0x551adc,_0x431692['name'],_0x431692['attributes'],_0x2d89e3);}}['_getDiff'](_0x43444a,_0x1234e5=null){const _0x29b57e=this['repository']['getRevision'](_0x43444a),_0xccab47=_0x1234e5?this['repository']['getRevision'](_0x1234e5):null,_0x1d553e=this['_getRevisionsRange'](_0x29b57e,_0xccab47),_0x432a21=_0x1d553e[_0x1d553e['length']-0x1],_0x4afb93=new Map(),_0x3440dc={'model':{},'attributes':{},'changes':[]},_0x4353aa=new Set(),_0x10a9f4=new Map();for(let _0x53cbb7=_0x1d553e['length']-0x1;_0x53cbb7>=0x0;_0x53cbb7--){const _0x528616=_0x1d553e[_0x53cbb7];for(const _0xacee59 of Object['keys'](_0x528616['diffData']))if(_0x528616['diffData'][_0xacee59]['attachChange']){const _0x185d4a=_0x528616['diffData'][_0xacee59]['attachChange'];_0x185d4a['isAttached']?(_0x4353aa['add'](_0xacee59),_0x10a9f4['has'](_0xacee59)&&_0x10a9f4['get'](_0xacee59)['userId']==_0x185d4a['userId']?_0x10a9f4['delete'](_0xacee59):_0x10a9f4['set'](_0xacee59,_0x185d4a)):_0x10a9f4['has'](_0xacee59)?(_0x4353aa['delete'](_0xacee59),_0x10a9f4['delete'](_0xacee59)):(_0x4353aa['add'](_0xacee59),_0x10a9f4['set'](_0xacee59,_0x185d4a));}else _0x4353aa['add'](_0xacee59);}for(const _0x24ae5f of _0x4353aa){const _0x8d7027=_0x10a9f4['has'](_0x24ae5f)&&!_0x10a9f4['get'](_0x24ae5f)['isAttached'];let _0xf210b7=_0x8d7027?_0x1d553e['length']-0x1:0x0;const _0x49ff17=_0x8d7027?-0x1:0x1;for(;_0x1d553e[_0xf210b7];){const _0x2bc472=_0x1d553e[_0xf210b7];if(_0x2bc472['diffData'][_0x24ae5f]){const _0x4b5866=_0x8d7027?_0x2bc472['diffData'][_0x24ae5f]['attributesBefore']:_0x2bc472['diffData'][_0x24ae5f]['attributesAfter'];_0x3440dc['attributes'][_0x24ae5f]=_0x4b5866?_0x3d1bef(_0x4b5866):{};break;}_0xf210b7+=_0x49ff17;}}for(const _0x3ac146 of _0x1d553e){_0x3ac146['model']={};for(const _0x1b616c of _0x3ac146['authors'])_0x4afb93['set'](_0x1b616c['id'],_0x1b616c);for(const _0x18849e of _0x4353aa){const _0xfd52aa=_0x3ac146['diffData'][_0x18849e]?_0x3ac146['diffData'][_0x18849e]['insertions']:'[]',_0x6e1694=_0x3ac146['diffData'][_0x18849e]?_0x3ac146['diffData'][_0x18849e]['deletions']:'[]';_0x3ac146['model'][_0x18849e]={'insertions':this['_makeModelFromViewString'](_0xfd52aa),'deletions':this['_makeModelFromViewString'](_0x6e1694)};}}for(const _0x38e873 of _0x4353aa){let _0x123943=null,_0x546545=0x0;const _0x2c2449=new Map(Array['from'](_0x29b57e['model'][_0x38e873]['insertions']['markers'])['filter'](([_0x5e5286])=>!_0x5e5286['startsWith']('revision:')));let _0x4533f3=0x0;for(const _0x302513 of _0x1d553e){const _0x49931d=this['_makeTape'](_0x302513['model'][_0x38e873]['insertions']);_0x302513==_0x29b57e?(_0x123943=_0x49931d,_0x546545=_0x123943['length'],_0x123943['forEach'](_0x1fe36b=>{_0x1fe36b['id']=_0x4533f3++;}),this['_processTape'](_0x123943)):this['_markInsertions'](_0x123943,_0x49931d);const _0x1271f1=_0x123943['filter'](_0x2561a1=>!_0x2561a1['isAdded'])['map'](_0x5076ba=>_0x5076ba['id']);let _0x4ae48b=0x0;const _0x315929=this['_makeTape'](_0x302513['model'][_0x38e873]['deletions']);_0x315929['forEach'](_0x3cbba2=>{_0x3cbba2['isRemoved']?_0x3cbba2['id']=_0x546545++:_0x3cbba2['id']=_0x1271f1[_0x4ae48b++];}),this['_processTape'](_0x315929),this['_setDistance'](_0x123943,'isAdded'),this['_setDistance'](_0x315929,'isRemoved'),_0x302513==_0x29b57e&&this['_markMarkers'](_0x123943,_0x2c2449),_0x123943=this['_joinTapes'](_0x123943,_0x315929),this['_refreshStartEndIndex'](_0x123943),this['_setDistance'](_0x123943,'isRemoved');}_0x123943=_0x123943['filter'](_0x191709=>!(_0x191709['isAdded']&&_0x191709['isRemoved']));const _0x573ed0=new Map(_0x432a21['model'][_0x38e873]['deletions']['markers']),_0x3619da=new Set(_0x2c2449['keys']());for(const _0x160ad0 of _0x573ed0['keys']())_0x3619da['delete'](_0x160ad0);this['_markSuggestions'](_0x123943,_0x3619da),this['_fixObsoleteTags'](_0x123943),_0x123943=this['_removeMissingPairs'](_0x123943),_0x123943=this['_markMismatchedRemovedTags'](_0x123943),_0x123943=this['_removeUnsupportedChanges'](_0x123943);const {root:_0x2341a0,changes:_0x297a9b}=this['_makeModelFromTape'](_0x123943,_0x4afb93,_0x38e873);_0x3440dc['model'][_0x38e873]=_0x2341a0;const _0x45c8e6=_0x10a9f4['get'](_0x38e873);if(_0x45c8e6){const _0x1291b6=_0x4afb93['get'](_0x45c8e6['userId']),_0x5c4430=new r({'author':_0x1291b6,'type':_0x45c8e6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x38e873});_0x297a9b['unshift'](_0x5c4430),_0x3440dc['attributes'][_0x38e873]['revisionHistoryAttachChange']=_0x5c4430['id'];}_0x3440dc['changes']=_0x3440dc['changes']['concat'](_0x297a9b);}return _0x3440dc;}['_markMarkers'](_0x1528eb,_0x70a327){for(let _0x558729=0x0;_0x558729<_0x1528eb['length'];_0x558729++)for(const [_0xbe752f,_0x179b37]of _0x70a327)_0x179b37['start']['isEqual'](_0x1528eb[_0x558729]['previousPosition'])&&_0x1528eb[_0x558729]['markersStart']['push'](_0xbe752f),_0x179b37['end']['isEqual'](_0x1528eb[_0x558729]['nextPosition'])&&_0x1528eb[_0x558729]['markersEnd']['push'](_0xbe752f);}['_joinTapes'](_0x432b5a,_0x1e699f){let _0x25fc44=[],_0x58da10=0x0,_0x2c69a5=0x0;for(;_0x58da10<_0x432b5a['length']||_0x2c69a5<_0x1e699f['length'];){const _0x15621a=_0x432b5a[_0x58da10]||{},_0x51d501=_0x1e699f[_0x2c69a5]||{};if(_0x15621a['id']==_0x51d501['id'])_0x58da10++,_0x2c69a5++,_0x25fc44['push'](_0x15621a);else{if(_0x51d501['isRemoved']&&_0x15621a['isAdded']){const {commonTape:_0x3fc19f,iEnd:_0x4e2fbc,jEnd:_0x5b339b}=this['_threeWayMerge'](_0x432b5a,_0x58da10,_0x1e699f,_0x2c69a5);_0x25fc44=_0x25fc44['concat'](_0x3fc19f),_0x58da10=_0x4e2fbc,_0x2c69a5=_0x5b339b;}else _0x51d501['isRemoved']?(_0x2c69a5++,_0x25fc44['push'](_0x51d501)):(_0x58da10++,_0x25fc44['push'](_0x15621a));}}return _0x25fc44;}['_markSuggestions'](_0xdc6f50,_0x13951c){const _0x5d1735=[];for(let _0x5bdc6c=0x0;_0x5bdc6c<_0xdc6f50['length'];_0x5bdc6c++){for(let _0x2ea73d=0x0;_0x2ea73d<_0xdc6f50[_0x5bdc6c]['markersStart']['length'];_0x2ea73d++){const _0x5742c4=_0xdc6f50[_0x5bdc6c]['markersStart'][_0x2ea73d];if(!_0x13951c['has'](_0x5742c4))continue;const {group:_0x592551,type:_0x5e7d5d,authorId:_0x26f303}=_0x34bd0e(_0x5742c4);'revision-suggestion'!=_0x592551||'insertion'!=_0x5e7d5d&&'deletion'!=_0x5e7d5d||(_0x5d1735['unshift']({'type':_0x5e7d5d,'name':_0x5742c4,'userId':_0x26f303}),_0xdc6f50[_0x5bdc6c]['markersStart']['splice'](_0x2ea73d,0x1),_0x2ea73d--);}_0x55a9c1(_0xdc6f50[_0x5bdc6c]);for(let _0x7ea977=0x0;_0x7ea977<_0xdc6f50[_0x5bdc6c]['markersEnd']['length'];_0x7ea977++){const _0x5f9ee2=_0xdc6f50[_0x5bdc6c]['markersEnd'][_0x7ea977];if(!_0x13951c['has'](_0x5f9ee2))continue;const {group:_0x410980,type:_0x96ded4}=_0x34bd0e(_0x5f9ee2);if('revision-suggestion'!=_0x410980||'insertion'!=_0x96ded4&&'deletion'!=_0x96ded4)continue;_0xdc6f50[_0x5bdc6c]['markersEnd']['splice'](_0x7ea977,0x1),_0x7ea977--;const _0x5496cd=_0x5d1735['findIndex'](_0x3cc39b=>_0x3cc39b['name']==_0x5f9ee2);_0x5496cd>-0x1&&_0x5d1735['splice'](_0x5496cd,0x1);}}function _0x34bd0e(_0x17e4a1){const _0x44b832=_0x17e4a1['split'](':');return{'group':_0x44b832[0x0],'type':_0x44b832[0x1],'subType':_0x44b832['length']>=0x5?_0x44b832[0x2]:null,'id':_0x44b832['length']<0x5?_0x44b832[0x2]:_0x44b832[0x3],'authorId':_0x44b832['length']<0x5?_0x44b832[0x3]:_0x44b832[0x4],'markerCount':0x6==_0x44b832['length']?_0x44b832[0x5]:null};}function _0x55a9c1(_0x19b1f4){for(let _0x20ceeb=0x0;_0x20ceeb<_0x5d1735['length'];_0x20ceeb++){if(_0x19b1f4['isAdded']&&'insertion'==_0x5d1735[_0x20ceeb]['type'])return _0x19b1f4['isAddSuggestion']=_0x5d1735[_0x20ceeb],void delete _0x19b1f4['isAdded'];if(!_0x19b1f4['isAdded']&&!_0x19b1f4['isRemoved']&&'deletion'==_0x5d1735[_0x20ceeb]['type'])return void(_0x19b1f4['isRemoveSuggestion']=_0x5d1735[_0x20ceeb]);}}}['_setDistance'](_0x421824,_0x1eb785){let _0x270061=0x0,_0x273b24=!0x1;const _0x2ace2b=new Map();for(const _0x6f9289 of _0x421824)_0x6f9289[_0x1eb785]?_0x273b24&&(_0x270061++,_0x273b24=!0x1):(_0x270061++,_0x273b24=!0x0),_0x2ace2b['set'](_0x6f9289['id'],_0x270061);for(let _0x1ffbf1=0x0;_0x1ffbf1<_0x421824['length'];_0x1ffbf1++){if('isRemoved'==_0x1eb785&&_0x421824[_0x1ffbf1]['isAdded']||'isAdded'==_0x1eb785&&_0x421824[_0x1ffbf1]['isRemoved'])continue;if('text'==_0x421824[_0x1ffbf1]['type']){_0x421824[_0x1ffbf1]['distance']=0x0;continue;}const _0x255556=_0x2ace2b['get'](_0x421824[_0x1ffbf1]['pairId']),_0xdde606=_0x2ace2b['get'](_0x421824[_0x1ffbf1]['id']);_0x421824[_0x1ffbf1]['distance']=_0x255556-_0xdde606;}}['_getRevisionsRange'](_0x2fb2c2,_0x2cea96,_0x345992=!0x1){const _0x8aff2d=[];let _0x2ba582=this['repository']['getIndex'](_0x2fb2c2),_0x3f1185=this['repository']['getIndex'](_0x2cea96);for(-0x1==_0x3f1185&&(_0x3f1185=this['repository']['_revisions']['length'],_0x345992=!0x1);_0x2ba582<_0x3f1185;)_0x8aff2d['push'](this['repository']['getRevision'](_0x2ba582)),_0x2ba582++;return _0x345992&&_0x8aff2d['push'](this['repository']['getRevision'](_0x2ba582)),_0x8aff2d;}['_threeWayMerge'](_0x39bd37,_0x45767f,_0x4d918d,_0x581ca8){const _0x32012c=this['editor']['model']['schema'];let _0x5a30c8=_0x45767f;for(;_0x39bd37[_0x5a30c8]&&_0x39bd37[_0x5a30c8]['isAdded'];)_0x5a30c8++;let _0x904a32=_0x581ca8;for(;_0x4d918d[_0x904a32]&&_0x4d918d[_0x904a32]['isRemoved'];)_0x904a32++;_0x3d2308(_0x39bd37,_0x45767f,_0x5a30c8),_0x3d2308(_0x4d918d,_0x581ca8,_0x904a32);const _0xf10653=_0x4d918d['slice'](_0x581ca8,_0x904a32)['concat'](_0x39bd37['slice'](_0x45767f,_0x5a30c8));return _0xf10653['sort']((_0x31bb77,_0x535142)=>_0x31bb77['side']!=_0x535142['side']?_0x31bb77['side']-_0x535142['side']:_0x31bb77['level']!=_0x535142['level']?_0x31bb77['level']-_0x535142['level']:_0x31bb77['distance']!=_0x535142['distance']?_0x535142['distance']-_0x31bb77['distance']:!!_0x31bb77['isAdded']!=!!_0x535142['isAdded']?-0x1==_0x31bb77['side']||0x0==_0x31bb77['side']?_0x31bb77['isAdded']?-0x1:0x1:_0x31bb77['isAdded']?0x1:-0x1:_0x31bb77['index']-_0x535142['index']),{'commonTape':_0xf10653,'iEnd':_0x5a30c8,'jEnd':_0x904a32};function _0x3d2308(_0x2fcff5,_0x58b942,_0x117029){let _0x15ced8=-0x1,_0x4962d0=Number['POSITIVE_INFINITY'],_0x562d8f=!0x0;for(let _0x35eff4=_0x58b942;_0x35eff4<_0x117029;_0x35eff4++)if(_0x32012c['isInline'](_0x2fcff5[_0x35eff4]['item'])||(_0x562d8f=!0x1),_0x2fcff5[_0x35eff4]['item']['startIndex']<_0x58b942&&(_0x15ced8=_0x35eff4),_0x2fcff5[_0x35eff4]['item']['endIndex']>=_0x117029){_0x4962d0=_0x35eff4;break;}_0x562d8f&&(_0x15ced8=_0x117029-0x1);for(let _0x123f2c=_0x58b942;_0x123f2c<_0x117029;_0x123f2c++)_0x2fcff5[_0x123f2c]['side']=_0x123f2c<=_0x15ced8?-0x1:_0x123f2c<_0x4962d0?0x0:0x1,_0x2fcff5[_0x123f2c]['index']=_0x123f2c;let _0x2a0989=0x0;for(let _0x19d026=_0x58b942;_0x19d026<=_0x15ced8;_0x19d026++)0x0==_0x2fcff5[_0x19d026]['distance']?_0x2fcff5[_0x19d026]['level']=_0x2a0989:(_0x2a0989++,_0x2fcff5[_0x19d026]['level']=_0x2a0989,_0x2a0989++);for(let _0xf20eae=_0x58b942;_0xf20eae<_0x117029;_0xf20eae++)0x0==_0x2fcff5[_0xf20eae]['side']&&(_0x2fcff5[_0xf20eae]['level']=_0x2a0989);_0x2a0989=0x0;for(let _0x10f059=_0x117029-0x1;_0x10f059>=_0x4962d0;_0x10f059--)0x0==_0x2fcff5[_0x10f059]['distance']?_0x2fcff5[_0x10f059]['level']=_0x2a0989:(_0x2a0989--,_0x2fcff5[_0x10f059]['level']=_0x2a0989,_0x2a0989--);}}['_fixObsoleteTags'](_0xe8c0b5){const _0x22ecaf=new Map(),_0x448db0=this['editor']['model']['schema'];for(let _0x51a7a6=0x1;_0x51a7a6<_0xe8c0b5['length'];_0x51a7a6++){let _0x469e49,_0x35b901,_0x4d916a;const _0x2c7115=_0xe8c0b5[_0x51a7a6],_0x1a89b9=_0xe8c0b5[_0x51a7a6-0x1];if('text'==_0x2c7115['type'])continue;if(_0x2c7115['type']!=_0x1a89b9['type'])continue;if(!_0x448db0['isBlock'](_0x1a89b9['item'])||_0x448db0['isLimit'](_0x1a89b9['item']))continue;if(!_0x448db0['isBlock'](_0x2c7115['item'])||_0x448db0['isLimit'](_0x2c7115['item']))continue;if((_0xe8c0b5[_0x51a7a6]['isAdded']||_0xe8c0b5[_0x51a7a6]['isAddSuggestion'])&&_0xe8c0b5[_0x51a7a6-0x1]['isRemoved'])_0x469e49=_0xe8c0b5[_0x51a7a6],_0x35b901=_0xe8c0b5[_0x51a7a6-0x1],_0x4d916a=_0x51a7a6-0x1;else{if(!_0xe8c0b5[_0x51a7a6]['isRemoved']||!_0xe8c0b5[_0x51a7a6-0x1]['isAdded']&&!_0xe8c0b5[_0x51a7a6-0x1]['isAddSuggestion'])continue;_0x469e49=_0xe8c0b5[_0x51a7a6-0x1],_0x35b901=_0xe8c0b5[_0x51a7a6],_0x4d916a=_0x51a7a6;}const _0x1e6aa1=_0x469e49['level']==_0x35b901['level'],_0x3aa877=Math['abs'](_0x469e49['level'])<Math['abs'](_0x35b901['level'])&&0x0==_0x35b901['distance'];(_0x1e6aa1||_0x3aa877)&&(_0x22ecaf['set'](_0x35b901['id'],_0x469e49['id']),_0xe8c0b5['splice'](_0x4d916a,0x1),_0x51a7a6--,_0x469e49['isAdded']=!0x1);}for(let _0xf8aad1=0x0;_0xf8aad1<_0xe8c0b5['length'];_0xf8aad1++)_0x22ecaf['has'](_0xe8c0b5[_0xf8aad1]['pairId'])&&(_0xe8c0b5[_0xf8aad1]['pairId']=_0x22ecaf['get'](_0xe8c0b5[_0xf8aad1]['pairId']));}['_removeMissingPairs'](_0x597e90){const _0x867724=new Set(_0x597e90['map'](_0x14776a=>_0x14776a['id']));for(let _0x22b10e=0x0;_0x22b10e<_0x597e90['length'];_0x22b10e++)_0x867724['has'](_0x597e90[_0x22b10e]['pairId'])||0x0==_0x597e90[_0x22b10e]['distance']||(_0x597e90[_0x22b10e]['isIncorrect']=!0x0);return _0x597e90['filter'](_0x43cd0a=>!_0x43cd0a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x336cb7){const _0x69b211=new Set();for(let _0x4d9910=0x0;_0x4d9910<_0x336cb7['length'];_0x4d9910++){if(_0x69b211['has'](_0x336cb7[_0x4d9910]['id'])&&_0x336cb7[_0x4d9910]['isRemoved']&&(_0x336cb7[_0x4d9910]['isIncorrect']=!0x0),_0x336cb7[_0x4d9910]['isIncorrect'])continue;if(0x0==_0x336cb7[_0x4d9910]['distance'])continue;if('elementStart'!=_0x336cb7[_0x4d9910]['type'])continue;if(null==_0x336cb7[_0x4d9910]['pairId'])continue;let _0x37dae1=_0x4d9910+0x1,_0x314fe6=0x0;for(;_0x336cb7[_0x37dae1]['id']!=_0x336cb7[_0x4d9910]['pairId'];)'elementStart'==_0x336cb7[_0x37dae1]['type']?_0x314fe6++:'elementEnd'==_0x336cb7[_0x37dae1]['type']&&_0x314fe6--,_0x37dae1++;if(0x0!=_0x314fe6){if(_0x336cb7[_0x4d9910]['isRemoved'])_0x336cb7[_0x4d9910]['isIncorrect']=!0x0;else{for(;_0x37dae1!=_0x4d9910;)_0x336cb7[_0x37dae1]['isRemoved']&&0x0!=_0x336cb7[_0x37dae1]['distance']&&(_0x336cb7[_0x37dae1]['isIncorrect']=!0x0,_0x69b211['add'](_0x336cb7[_0x37dae1]['pairId'])),_0x37dae1--;}}}return _0x336cb7['filter'](_0x280743=>!_0x280743['isIncorrect']);}['_removeUnsupportedChanges'](_0x4b4e14){const _0x437d46=this['editor']['model']['schema'];for(let _0x2add56=0x0;_0x2add56<_0x4b4e14['length'];_0x2add56++){if(!(_0x4b4e14[_0x2add56]['isAdded']||_0x4b4e14[_0x2add56]['isAddSuggestion']||_0x4b4e14[_0x2add56]['isRemoved']||_0x4b4e14[_0x2add56]['isRemoveSuggestion']))continue;if(0x0==_0x4b4e14[_0x2add56]['distance'])continue;const _0x110499=_0x4b4e14[_0x2add56]['item'];_0x437d46['isBlock'](_0x110499)||_0x437d46['isLimit'](_0x110499)||(_0x4b4e14[_0x2add56]['isAdded']&&delete _0x4b4e14[_0x2add56]['isAdded'],_0x4b4e14[_0x2add56]['isAddSuggestion']&&delete _0x4b4e14[_0x2add56]['isAddSuggestion'],_0x4b4e14[_0x2add56]['isRemoveSuggestion']&&delete _0x4b4e14[_0x2add56]['isRemoveSuggestion'],_0x4b4e14[_0x2add56]['isRemoved']&&(_0x4b4e14[_0x2add56]['isIncorrect']=!0x0));}return _0x4b4e14['filter'](_0x1bfaea=>!_0x1bfaea['isIncorrect']);}['_makeModelFromTape'](_0xb6e232,_0x14cefc,_0x20cf9f){const _0x52d700=new mt(),_0x325388=[],_0x5ae094=new Map(),_0x5511d7=this['editor']['model'],_0x11b375=_0x5511d7['schema'],_0x515cff=[_0x52d700],_0x5763d0={},_0x23f42a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f56bf=null;const _0xf451dd=[0x0];for(let _0x26d1ba=0x0;_0x26d1ba<_0xb6e232['length'];_0x26d1ba++)if('elementStart'===_0xb6e232[_0x26d1ba]['type']){_0xb6e232[_0x26d1ba]['previousPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd);const _0x496a62=new ft(_0xb6e232[_0x26d1ba]['item']['name'],_0xb6e232[_0x26d1ba]['item']['getAttributes']());_0x515cff[0x0]['_appendChild'](_0x496a62),_0xf451dd['push'](0x0),_0x515cff['unshift'](_0x496a62),_0xb6e232[_0x26d1ba]['nextPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd);}else'elementEnd'===_0xb6e232[_0x26d1ba]['type']?(_0x515cff['shift'](),_0xb6e232[_0x26d1ba]['previousPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd),_0xf451dd['pop'](),_0xf451dd[_0xf451dd['length']-0x1]++,_0xb6e232[_0x26d1ba]['nextPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd)):(_0xb6e232[_0x26d1ba]['previousPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd),_0x3f56bf?_0x3f56bf['_data']+=_0xb6e232[_0x26d1ba]['item']['data']:_0x3f56bf=new wt(_0xb6e232[_0x26d1ba]['item']['data'],_0xb6e232[_0x26d1ba]['item']['getAttributes']()),_0xb6e232[_0x26d1ba+0x1]&&'text'===_0xb6e232[_0x26d1ba+0x1]['type']&&_0x13bed1(_0x3f56bf,_0xb6e232[_0x26d1ba+0x1]['item'])||(_0x515cff[0x0]['_appendChild'](_0x3f56bf),_0x3f56bf=null),_0xf451dd[_0xf451dd['length']-0x1]+=_0xb6e232[_0x26d1ba]['item']['offsetSize'],_0xb6e232[_0x26d1ba]['nextPosition']=_0x5511d7['createPositionFromPath'](_0x52d700,_0xf451dd));for(let _0x55e250=0x0;_0x55e250<_0xb6e232['length'];_0x55e250++){const _0x348959=_0xb6e232[_0x55e250]['previousPosition'],_0x4b1034=_0xb6e232[_0x55e250]['nextPosition'];for(const _0x5d96cf of _0xb6e232[_0x55e250]['markersStart'])_0x5ae094['set'](_0x5d96cf,{'start':_0x348959,'end':null});_0x199615('isRemoveSuggestion',_0x55e250,_0x348959,_0x4b1034),_0x199615('isAddSuggestion',_0x55e250,_0x348959,_0x4b1034),_0x199615('isRemoved',_0x55e250,_0x348959,_0x4b1034),_0x199615('isAdded',_0x55e250,_0x348959,_0x4b1034);for(const _0x1cea7d of _0xb6e232[_0x55e250]['markersEnd']){_0x5ae094['get'](_0x1cea7d)['end']=_0x4b1034;}}for(const [_0xbd1581,_0x4bb7c6]of _0x5ae094){const _0x386212=this['editor']['model']['createRange'](_0x4bb7c6['start'],_0x4bb7c6['end']);_0x52d700['markers']['set'](_0xbd1581,_0x386212);}return _0x325388['sort']((_0x4f0b9e,_0x2f0503)=>{const _0x2df97a=_0x52d700['markers']['get']('revision:'+_0x4f0b9e['id']),_0x3cc04c=_0x52d700['markers']['get']('revision:'+_0x2f0503['id']);return _0x2df97a['start']['isBefore'](_0x3cc04c['start'])?-0x1:_0x2df97a['start']['isAfter'](_0x3cc04c['start'])?0x1:_0x2df97a['end']['isBefore'](_0x3cc04c['end'])?-0x1:_0x2df97a['end']['isAfter'](_0x3cc04c['end'])?0x1:'add'===_0x4f0b9e['type']?-0x1:0x1;}),{'root':_0x52d700,'changes':_0x325388};function _0x199615(_0x53515d,_0x3d9b01,_0xd12724,_0x79f6df){const _0x5c1ca0=!!_0xb6e232[_0x3d9b01][_0x53515d],_0x16d037=_0x5c1ca0?_0xb6e232[_0x3d9b01][_0x53515d]['userId']:null,_0x5905bd=_0x3d9b01===_0xb6e232['length']-0x1,_0x4ec27b=_0x23f42a[_0x53515d][0x0],_0x5ed382=_0x11b375['isObject'](_0xb6e232[_0x3d9b01]['item']);!_0x5763d0[_0x53515d]&&_0x5c1ca0?_0x5763d0[_0x53515d]={'start':_0xd12724,'tapeItem':_0xb6e232[_0x3d9b01],'userId':_0x16d037,'type':_0x53515d}:_0x5763d0[_0x53515d]&&!_0x5c1ca0?(_0x5763d0[_0x53515d]['end']=_0xd12724,_0x4d3b32(_0x5763d0[_0x53515d]),_0x5763d0[_0x53515d]=null):_0x5763d0[_0x53515d]&&_0x5c1ca0&&_0x5763d0[_0x53515d]['userId']!==_0x16d037&&(_0x5763d0[_0x53515d]['end']=_0xd12724,_0x4ec27b&&_0x4ec27b['userId']===_0x5763d0[_0x53515d]['userId']||_0x4d3b32(_0x5763d0[_0x53515d]),_0x5763d0[_0x53515d]={'start':_0xd12724,'tapeItem':_0xb6e232[_0x3d9b01],'userId':_0x16d037,'type':_0x53515d}),_0x5763d0[_0x53515d]&&_0x5ed382&&('elementStart'!==_0xb6e232[_0x3d9b01]['type']||_0x4ec27b&&_0x4ec27b['userId']===_0x16d037||_0x23f42a[_0x53515d]['unshift']({'userId':_0x16d037,'object':_0xb6e232[_0x3d9b01]['item'],'change':_0x5763d0[_0x53515d]}),'elementEnd'===_0xb6e232[_0x3d9b01]['type']&&_0x4ec27b&&_0x4ec27b['object']===_0xb6e232[_0x3d9b01]['item']&&(_0x23f42a[_0x53515d]['shift'](),_0x5763d0[_0x53515d]=_0x4ec27b['change'])),_0x5763d0[_0x53515d]&&_0x5905bd&&(_0x5763d0[_0x53515d]['end']=_0x79f6df,_0x4d3b32(_0x5763d0[_0x53515d]),_0x5763d0[_0x53515d]=null);}function _0x4d3b32({start:_0x39472e,end:_0x2e67fc,tapeItem:_0x3337ec,userId:_0x5154db,type:_0x1a3c91}){const _0x5bd1ba=_0x3337ec['item'],_0x5c7775=_0x5511d7['schema']['isBlock'](_0x5bd1ba)&&!_0x5511d7['schema']['isLimit'](_0x5bd1ba),_0x2abb29=_0x39472e['nodeAfter']==_0x2e67fc['parent']&&_0x2e67fc['isAtStart'];if(_0x5c7775&&_0x2abb29)return;const _0x11ba11=_0x5511d7['createRange'](_0x39472e,_0x2e67fc),_0x418c71=_0x14cefc['get'](_0x5154db),_0x1e1cb7=new r({'author':_0x418c71,'type':'isAdded'==_0x1a3c91||'isAddSuggestion'==_0x1a3c91?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1a3c91||'isRemoveSuggestion'==_0x1a3c91},'createdAt':new Date(),'rootName':_0x20cf9f});_0x325388['push'](_0x1e1cb7),_0x52d700['markers']['set']('revision:'+_0x1e1cb7['id'],_0x11ba11);}function _0x13bed1(_0xcb6ff4,_0x3b5cb3){const _0x191532=_0xcb6ff4['getAttributes'](),_0x29c85b=_0x3b5cb3['getAttributes']();for(const _0x1b3584 of _0x191532){if(_0x1b3584[0x1]!==_0x3b5cb3['getAttribute'](_0x1b3584[0x0]))return!0x1;_0x29c85b['next']();}return _0x29c85b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x39961a=>{const _0x3cb291=_0x39961a['markerName']['split'](':')[0x1],_0x32024c=this['_getChangeFromId'](_0x3cb291);if(!_0x32024c)return null;const _0x43dcb4='add'==_0x32024c['type']?'insertion':'deletion',_0x1fec07=['ck-suggestion-marker','ck-suggestion-marker-'+_0x43dcb4];return _0x32024c['data']['isSuggestion']&&_0x1fec07['push']('ck-suggestion-marker-'+_0x43dcb4+'-new'),this['activeChange']==_0x32024c&&_0x1fec07['push']('ck-suggestion-marker--active'),{'classes':_0x1fec07,'attributes':{'data-change-id':_0x3cb291}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3f5da3=>{_0x3f5da3['on']('element:pre',(_0x49a34a,_0x4a9de4,_0x98ed55)=>{const _0x18a1a5=_0x4a9de4['viewItem']['getChild'](0x0);if(!_0x18a1a5||!_0x18a1a5['is']('element','code'))return;if(!_0x98ed55['consumable']['consume'](_0x18a1a5,{'attributes':['vid_start','vid_end']}))return;const _0xa190ef=_0x4a9de4['modelRange']['start']['nodeAfter'];_0x98ed55['writer']['setAttribute']('vid_start',_0x18a1a5['getAttribute']('vid_start'),_0xa190ef),_0x98ed55['writer']['setAttribute']('vid_end',_0x18a1a5['getAttribute']('vid_end'),_0xa190ef);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x30c192=>{_0x30c192['on']('element',(_0x34b596,_0x6770f3,_0x5cabc7)=>{if(!_0x5cabc7['consumable']['consume'](_0x6770f3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x6770f3['modelRange']['isCollapsed'])return;const _0x2216c0=_0x6770f3['modelRange']['start']['nodeAfter'];_0x2216c0['hasAttribute']('vid_start')||_0x2216c0['hasAttribute']('vid')||(_0x5cabc7['writer']['setAttribute']('vid_start',_0x6770f3['viewItem']['getAttribute']('vid_start'),_0x2216c0),_0x5cabc7['writer']['setAttribute']('vid_end',_0x6770f3['viewItem']['getAttribute']('vid_end'),_0x2216c0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x51854a=>_0x51854a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x53df3f,[,_0x5911cc])=>{['vid_start','vid_end','vid']['includes'](_0x5911cc)&&(_0x53df3f['return']=!0x0,_0x53df3f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4f1adc=>{_0x4f1adc['on']('attribute:vid',(_0x42bad8,_0x59c18a,_0x50b9b0)=>{if('\x20'!=_0x59c18a['item']['data']||_0x59c18a['item']['parent']['maxOffset']>0x1)return;if(!_0x50b9b0['consumable']['consume'](_0x59c18a['item'],_0x42bad8['name']))return;const _0x93df2c=_0x50b9b0['writer'],_0x56bcbb=_0x50b9b0['mapper']['toViewRange'](_0x59c18a['range']);_0x93df2c['wrap'](_0x56bcbb,_0x93df2c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x397c7d){const _0x44ffd2=_0x397c7d['plugins']['get']('RevisionViewer');return(_0x3783b9,_0x3ffc12,_0x4c12c7)=>{const _0x3b374a=_0x3ffc12['markerName']['split'](':')[0x1],_0x9a0433=_0x44ffd2['_getChangeFromId'](_0x3b374a);if(!_0x9a0433)return null;const _0x3676f7='add'==_0x9a0433['type']?'split':'merge';if(!_0x4c12c7['consumable']['test'](_0x3ffc12['markerRange'],_0x3783b9['name']))return;const _0x1b5790=_0x3ffc12['markerRange']['getWalker'](),_0x1cd090=_0x3ffc12['markerRange']['start'],_0x26c27b=_0x397c7d['model']['schema'];let _0x699026=null,_0x4fea67=null,_0x17b310=!0x1,_0x20cb45=!0x1;for(const _0x502e68 of _0x1b5790){const _0x18b327=_0x502e68['item'];_0x17b310=_0x17b310||_0x26c27b['isContent'](_0x18b327);const _0x4f769f=_0x4c12c7['mapper']['toViewElement'](_0x18b327);if(_0x4f769f&&_0x4f769f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x502e68['type']&&(_0x26c27b['isBlock'](_0x18b327)&&!_0x26c27b['isLimit'](_0x18b327)&&(_0x18b327['nextSibling']||_0x1cd090['isAtEnd']?_0x699026&&_0x699026['parent']==_0x18b327||(_0x699026=_0x18b327,_0x54ed0b(_0x502e68['previousPosition']),_0x20cb45=!0x0):_0x4fea67=_0x4fea67||_0x502e68['previousPosition']));}function _0x54ed0b(_0xe9febc){const _0x1d49bd=_0x4c12c7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3676f7}),_0x3c26d9=_0x4c12c7['mapper']['toViewPosition'](_0xe9febc);_0x9a0433['data']['isSuggestion']&&_0x4c12c7['writer']['addClass']('ck-suggestion-marker-'+_0x3676f7+'-new',_0x1d49bd),_0x44ffd2['activeChange']==_0x9a0433&&_0x4c12c7['writer']['addClass']('ck-suggestion-marker--active',_0x1d49bd),_0x4c12c7['writer']['insert'](_0x3c26d9,_0x1d49bd),_0x4c12c7['mapper']['bindElementToMarker'](_0x1d49bd,_0x3ffc12['markerName']);}_0x17b310||_0x20cb45||!_0x4fea67||_0x54ed0b(_0x4fea67);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x536594,_0x5cec99,_0x327cf7)=>{const _0x32269d=_0x327cf7['mapper']['markerNameToElements'](_0x5cec99['markerName']);if(_0x32269d){for(const _0x2049c2 of _0x32269d)(_0x2049c2['hasClass']('ck-suggestion-marker-split')||_0x2049c2['hasClass']('ck-suggestion-marker-merge'))&&(_0x327cf7['mapper']['unbindElementFromMarkerName'](_0x2049c2,_0x5cec99['markerName']),_0x327cf7['writer']['remove'](_0x2049c2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3bacc1,_0xdfb4cc,_0x29c867)=>{const _0x43ddb7=_0xdfb4cc['markerName']['split'](':')[0x1],_0x255fc7=this['_getChangeFromId'](_0x43ddb7);if(!_0x255fc7)return null;const _0x38f25c='add'==_0x255fc7['type']?'split':'merge';if(_0x29c867['consumable']['test'](_0xdfb4cc['markerRange'],_0x3bacc1['name']))for(const _0x474263 of _0xdfb4cc['markerRange']['getItems']()){if(!_0x474263['is']('element','softBreak'))continue;const _0x3d44d7=_0x29c867['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38f25c}),_0x20da42=_0x29c867['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x474263));_0x255fc7['data']['isSuggestion']&&_0x29c867['writer']['addClass']('ck-suggestion-marker-'+_0x38f25c+'-new',_0x3d44d7),this['activeChange']==_0x255fc7&&_0x29c867['writer']['addClass']('ck-suggestion-marker--active',_0x3d44d7),_0x29c867['writer']['insert'](_0x20da42,_0x3d44d7),_0x29c867['mapper']['bindElementToMarker'](_0x3d44d7,_0xdfb4cc['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x264b4f=>{for(const _0x31bb78 of this['editor']['model']['document']['getRootNames']()){const _0x1e9a4a=this['editor']['model']['document']['getRoot'](_0x31bb78),_0x46033e=this['editor']['editing']['view']['document']['getRoot'](_0x31bb78);if(_0x46033e){const _0x347a49=_0x1e9a4a['getAttribute']('revisionHistoryAttachChange');if(_0x264b4f['removeAttribute']('data-change-id',_0x46033e),_0x264b4f['removeClass']('ck-revision-history-root-add',_0x46033e),_0x264b4f['removeClass']('ck-revision-history-root-remove',_0x46033e),_0x264b4f['removeClass']('ck-revision-history-root--active',_0x46033e),_0x347a49){const _0x2e8875=this['_getChangeFromId'](_0x347a49);if(!_0x2e8875)return null;_0x264b4f['setAttribute']('data-change-id',_0x347a49,_0x46033e),_0x264b4f['addClass']('ck-revision-history-root-'+_0x2e8875['type'],_0x46033e),this['activeChange']==_0x2e8875&&_0x264b4f['addClass']('ck-revision-history-root--active',_0x46033e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2669c7=>'revision-comment:'+_0x2669c7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5d2eb7=>'revision-suggestion:'+_0x5d2eb7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2cfd9f=>({'name':'suggestion:'+_0x2cfd9f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x15a808=>{const _0x13d8c5=_0x15a808['markerName']['split'](':')[0x1];return'insertion'!=_0x13d8c5&&'deletion'!=_0x13d8c5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x13d8c5]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4161ad,_0xa1a48f,_0x173cc5)=>{const _0x7b5ab2=_0x173cc5['mapper']['markerNameToElements'](_0xa1a48f['markerName']);if(_0x7b5ab2){for(const _0x449d9c of _0x7b5ab2)_0x449d9c['is']('uiElement')&&(_0x173cc5['mapper']['unbindElementFromMarkerName'](_0x449d9c,_0xa1a48f['markerName']),_0x173cc5['writer']['remove'](_0x449d9c));}},{'priority':'high'});}['_getChangeFromId'](_0x3e10f5){return this['_changeIdToChange']['get'](_0x3e10f5);}['_getViewForChange'](_0x104e75){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x104e75),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4a6bb2,_0x45c7f0,_0x819c0f,_0x11c75b)=>{_0x11c75b&&this['_balloon']['remove'](_0x11c75b),_0x819c0f&&(this['_balloon']['add']({'view':_0x819c0f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5b5e5c=this['editor']['editing'],_0x2339c1=this['_getChangeFromId'](_0x819c0f['changeId']);let _0x176380;if(_0x2339c1['data']['isOnRoot']){const _0x6532ef=_0x5b5e5c['view']['getDomRoot'](_0x2339c1['rootName']);_0x176380=Array['from'](_0x6532ef['getClientRects']());}else{const _0x3e6b5f=this['editor']['model']['markers']['get']('revision:'+_0x819c0f['changeId']);_0x176380=Array['from'](_0x5b5e5c['mapper']['markerNameToElements'](_0x3e6b5f['name']))['map'](_0x2f0382=>_0x5b5e5c['view']['domConverter']['mapViewToDom'](_0x2f0382))['map'](_0x1ffeda=>Array['from'](_0x1ffeda['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x176380[0x0];return _0x176380['find'](_0x1d0485=>_0x1d0485['top']-0x3<=this['_activeViewTarget']['y']&&_0x1d0485['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1d0485['left']-0x3<=this['_activeViewTarget']['x']&&_0x1d0485['right']+0x3>=this['_activeViewTarget']['x'])||_0x176380[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x313fbd,_0x1167df,_0x2776f6,_0x22c6e0)=>{this['activeView']=_0x2776f6?this['_getViewForChange'](_0x2776f6):null,this['editor']['model']['change'](()=>{const _0x2ca90c=this['editor']['editing'];_0x22c6e0&&(_0x22c6e0['data']['isOnRoot']?_0x2ca90c['view']['change'](_0x4a63c4=>{_0x4a63c4['removeClass']('ck-revision-history-root--active',_0x2ca90c['view']['document']['getRoot'](_0x22c6e0['rootName']));}):_0x2ca90c['reconvertMarker']('revision:'+_0x22c6e0['id'])),_0x2776f6&&(_0x2776f6['data']['isOnRoot']?_0x2ca90c['view']['change'](_0x50310a=>{_0x50310a['addClass']('ck-revision-history-root--active',_0x2ca90c['view']['document']['getRoot'](_0x2776f6['rootName']));}):_0x2ca90c['reconvertMarker']('revision:'+_0x2776f6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xd7d6be,_0x3183c9)=>{if(this['activeChange'])return;const _0xd19b86=this['_findChangeIdFromDomTarget'](_0x3183c9['target']),_0x32ef32=this['_changeIdToChange']['get'](_0xd19b86);_0x32ef32?(this['_activeViewTarget']={'x':_0x3183c9['domEvent']['x'],'y':_0x3183c9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x32ef32)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x430658,_0x43451f)=>{const _0x501938=this['_findChangeIdFromDomTarget'](_0x43451f['target']),_0x447671=this['_changeIdToChange']['get'](_0x501938);_0x447671?(this['_activeViewTarget']={'x':_0x43451f['domEvent']['x'],'y':_0x43451f['domEvent']['y']},_0x447671===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x447671):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2ab4d5){do{const _0x311faf=_0x2ab4d5['getAttribute']('data-change-id');if(_0x311faf)return _0x311faf;_0x2ab4d5=_0x2ab4d5['parent'];}while(_0x2ab4d5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x49bbcc=>{for(const _0x17880c of this['editor']['model']['markers'])_0x49bbcc['removeMarker'](_0x17880c);});}}function Z(_0x30e40f,_0x10f402){return(_0xc57c0d,_0x5f1592,_0x51214b)=>{if(!_0x51214b['consumable']['test'](_0x5f1592['markerRange'],_0xc57c0d['name']))return;const _0x3c739d=_0x5f1592['markerRange']['getWalker'](),_0x26aa70=_0x5f1592['markerRange']['start'],_0x543a07=_0x30e40f['model']['schema'];let _0x5e5760=null,_0x1e56d5=null,_0x548e97=!0x1,_0x5400c2=!0x1;for(const _0x2f7150 of _0x3c739d){const _0x189db7=_0x2f7150['item'];_0x548e97=_0x548e97||_0x543a07['isContent'](_0x189db7);const _0x29e78d=_0x51214b['mapper']['toViewElement'](_0x189db7);if(_0x29e78d&&_0x29e78d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2f7150['type']&&(_0x543a07['isBlock'](_0x189db7)&&!_0x543a07['isLimit'](_0x189db7)&&(_0x189db7['nextSibling']||_0x26aa70['isAtEnd']?_0x5e5760&&_0x5e5760['parent']==_0x189db7||(_0x5e5760=_0x189db7,_0x53685b(_0x2f7150['previousPosition']),_0x5400c2=!0x0):_0x1e56d5=_0x1e56d5||_0x2f7150['previousPosition']));}function _0x53685b(_0x2d496a){const _0x2ca58b=_0x51214b['mapper']['toViewPosition'](_0x2d496a),_0x482850=_0x51214b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x10f402});_0x51214b['writer']['insert'](_0x2ca58b,_0x482850),_0x51214b['mapper']['bindElementToMarker'](_0x482850,_0x5f1592['markerName']);}_0x548e97||_0x5400c2||!_0x1e56d5||_0x53685b(_0x1e56d5);};}class _t extends _0x33fccf{constructor(_0x3b33b5){super(_0x3b33b5);const _0x13197f=_0x3b33b5['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x13197f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13197f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x252d2f=this['editor'],_0x5d73c9=_0x252d2f['plugins']['get'](d),_0xec4c1d=_0x5d73c9['isReady']?_0x5d73c9['diff']['newRevisionId']:null;_0x252d2f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xec4c1d);}['refresh'](){const {isReady:_0x1b5885,isEnabled:_0xb6c653,repository:_0x3e0073,diff:_0x15cbf5}=this['editor']['plugins']['get'](d),_0x11855f=_0x15cbf5&&_0x3e0073['getLaterVisibleRevision'](_0x15cbf5['newRevisionId']);this['isEnabled']=_0x1b5885&&_0xb6c653&&Boolean(_0x11855f);}}class yt extends _0x33fccf{['_step'];constructor(_0x4f8957,{direction:_0x335168}){super(_0x4f8957);const _0x4d2dbb=_0x4f8957['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x335168?0x1:-0x1,this['listenTo'](_0x4d2dbb,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d2dbb,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4d2dbb,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x43f33a=this['editor'],_0x36323e=_0x43f33a['plugins']['get'](d),{isNavigationMode:_0x177368,currentChangeNumber:_0x5ba8d3}=_0x36323e;let _0x2faba8;if(_0x36323e['activeChange']=_0x177368?_0x36323e['diff']['changes']['get'](_0x5ba8d3+this['_step']):_0x36323e['diff']['changes']['first'],_0x36323e['activeChange']['data']['isOnRoot'])_0x2faba8=_0x43f33a['editing']['view']['getDomRoot'](_0x36323e['activeChange']['rootName']);else{const _0x2c765d=_0x43f33a['model']['markers']['get']('revision:'+_0x36323e['activeChange']['id']);_0x2faba8=_0x4c436f(_0x43f33a['editing'],_0x2c765d);}_0x44e10f({'target':_0x2faba8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xc10b20,currentChangeNumber:_0x12902a,numberOfChanges:_0x3b2bd9,isReady:_0x4a612a,isEnabled:_0x342dbf}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x342dbf&&_0x4a612a&&_0x3b2bd9)&&(!_0xc10b20||(0x1===this['_step']?_0x12902a<_0x3b2bd9-0x1:_0x12902a>0x0));}}class _i extends _0x571e95{constructor(_0xf1b066){super(_0xf1b066);const _0x27c43a=this['bindTemplate'],_0x10c4ea=new _0x59b23e(_0xf1b066),_0x1e6f70=new _0x59b23e(_0xf1b066);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',(_0x36535f,_0x339c52)=>_0x36535f&&_0x339c52>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x222976,_0x587033,_0x958324,_0x352037)=>{if(!_0x222976)return m(_0xf1b066,'Loading...');if(!_0x958324)return m(_0xf1b066,'No\x20changes');const _0x5659ea=m(_0xf1b066,'NUMBER_OF_CHANGES',_0x958324);return _0x352037?m(_0xf1b066,'X_OF_Y_CHANGES',[_0x587033+0x1,_0x958324]):_0x5659ea;}),_0x10c4ea['set']({'label':m(_0xf1b066,'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'}),_0x1e6f70['set']({'label':m(_0xf1b066,'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'}),_0x10c4ea['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1e6f70['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x10c4ea['on']('execute',()=>this['fire']('execute','backward')),_0x1e6f70['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',_0x27c43a['if']('_isStatusLabelVisible','ck-hidden',_0x244052=>!_0x244052)]},'children':[{'text':_0x27c43a['to']('isNavigationMode',_0x819b72=>_0x819b72?m(_0xf1b066,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xf1b066,'Total')+':\x20')}]},{'text':_0x27c43a['to']('_statusText')}]},new _0x488774(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x10c4ea,_0x1e6f70]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x314a0a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1d9426=this['editor']['editing']['view'];_0x1d9426['change'](_0x115b21=>{for(const _0x3396ce of _0x1d9426['document']['roots'])_0x115b21['addClass'](ce,_0x3396ce);});}['hide'](){const _0x256241=this['editor']['editing']['view'];_0x256241['change'](_0x561195=>{for(const _0x2cee9c of _0x256241['document']['roots'])_0x561195['removeClass'](ce,_0x2cee9c);});}}class g extends _0x314a0a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x21fa54=this['editor'],_0x568b76=_0x21fa54['plugins']['get'](d),_0x4869a7=_0x21fa54['plugins']['get'](le);_0x21fa54['ui']['componentFactory']['add']('exitToEditing',_0x45d1ac=>{const _0x48dbe7=new _0x59b23e(_0x45d1ac);return _0x48dbe7['set']({'label':m(_0x45d1ac,'Back\x20to\x20editing'),'icon':_0x42aafe['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x48dbe7,'execute',()=>{_0x21fa54['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x48dbe7;}),_0x21fa54['ui']['componentFactory']['add']('restoreRevision',_0x4973eb=>{const _0x43c3b4=new _0x59b23e(_0x4973eb);return _0x43c3b4['set']({'label':m(_0x4973eb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x43c3b4['bind']('isEnabled')['to'](_0x21fa54['commands']['get']('restoreRevision')),this['listenTo'](_0x43c3b4,'execute',()=>_0x21fa54['execute']('restoreRevision')),_0x43c3b4;}),_0x21fa54['ui']['componentFactory']['add']('changesNavigation',_0x5148e4=>{const _0xd17881=new _i(_0x5148e4),_0x1c9dee=_0x21fa54['commands']['get']('showPreviousChange'),_0x428060=_0x21fa54['commands']['get']('showNextChange');return _0xd17881['bind']('isBackwardNavigationEnabled')['to'](_0x1c9dee,'isEnabled'),_0xd17881['bind']('isForwardNavigationEnabled')['to'](_0x428060,'isEnabled'),_0xd17881['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x568b76),this['listenTo'](_0xd17881,'execute',(_0x231058,_0x486ed1)=>{_0x21fa54['execute']('forward'===_0x486ed1?'showNextChange':'showPreviousChange');}),_0xd17881;}),_0x4869a7['show'](),_0x568b76['on']('change:isReady',(_0x9e11ff,_0x33898f,_0x20f4a7)=>{_0x20f4a7?_0x4869a7['hide']():_0x4869a7['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x174f37,_0x51bdf1){super(_0x174f37,_0x51bdf1);const _0x15fcab=this['bindTemplate'];this['set']({'label':m(_0x174f37,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x174f37,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x15fcab['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xae285d=this['fieldView']['element'];this['_tooltipString']=_0xae285d['scrollWidth']>_0xae285d['clientWidth']&&_0xae285d['value']||'';}}class ti extends _0x571e95{constructor(_0x4b1766,_0x3f61b0,_0x525d9a){super(_0x4b1766);const _0x2012d4=new _0xc17691();_0x2012d4['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 _0x2099d8=['ck','ck-revision-history-sidebar__revision-author'];_0x525d9a&&_0x2099d8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x209d55=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4b1766,_0x525d9a?'Revision\x20creator':'Revision\x20author')},'children':[_0x2012d4,_0x3f61b0['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2099d8},'children':_0x209d55});}}function ni(_0x51b41b,_0x5076ce){const _0x124463=_0x51b41b['bindTemplate'],_0xc4250e=_0x51b41b['locale'],_0x1bb08e=_0x480339(_0xc4250e);_0x1bb08e['panelPosition']='sw';const _0x408b88=function(_0x2f553c,_0x5ad194){const _0x462b12=function(_0x34cdb9,_0x55edb3){const _0x192b5a=_0x34cdb9['locale'],_0x41760f={'Compare\x20against\x20selected':m(_0x192b5a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x192b5a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x192b5a,'Restore\x20this\x20revision')};return _0x55edb3['map'](_0x3dee1e=>{const _0x39426b=_0x41760f[_0x3dee1e['name']];return _0x39426b&&_0x39426b!==_0x3dee1e['name']&&(_0x3dee1e['name']=_0x39426b),_0x3dee1e;});}(_0x2f553c,_0x5ad194),_0x3973a6=new _0x45da80();for(const _0x239d28 of _0x462b12){const _0x317890={'type':'button','model':new to({'label':_0x239d28['name'],'class':_0x239d28['class'],'withText':!0x0,'role':'menuitem','_action':_0x239d28['action']})};_0x317890['model']['bind']('isEnabled')['to'](_0x2f553c,'isActionsDropdownOpen',_0x3b214d=>'function'!=typeof _0x239d28['isEnabled']||(!_0x3b214d||_0x239d28['isEnabled'](_0x2f553c))),_0x3973a6['add'](_0x317890);}return _0x3973a6;}(_0x51b41b,_0x5076ce);return _0x51b41b['bind']('isActionsDropdownOpen')['to'](_0x1bb08e,'isOpen'),_0x1bb08e['buttonView']['set']({'label':m(_0xc4250e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x42aafe['threeVerticalDots']}),_0x1bb08e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x124463['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x124463['to'](_0x3dc83d=>_0x3dc83d['stopPropagation']())}}),_0x1bb08e['on']('execute',_0x2c86fe=>{_0x51b41b['isReady']&&'function'==typeof _0x2c86fe['source']['_action']&&_0x2c86fe['source']['_action'](_0x51b41b);}),_0x581d40(_0x1bb08e,_0x408b88,{'role':'menu'}),_0x1bb08e['listenTo'](_0x51b41b,'change:isActionsDropdownOpen',(_0xe1d9e3,_0xdf0dcb,_0x367da0)=>{if(_0x367da0)for(const _0x362e53 of _0x1bb08e['listView']['items']){const _0x59ddf6=_0x362e53['children']['first'],_0x265e50=_0x5076ce['find'](_0x20610f=>_0x20610f['action']===_0x59ddf6['_action'])['isVisible'];_0x362e53['isVisible']=void 0x0===_0x265e50||_0x265e50(_0x51b41b);}}),_0x1bb08e;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x3f46a5(_0x571e95){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x818596,_0x3b5b70,_0x2b078c,_0xbd46da){super(_0x818596);const _0x46d3b8=this['bindTemplate'],_0x444cc2=function(_0x21df11,_0x13894d){const _0x597ef2=Array['from'](_0x13894d['authors'])['filter'](_0x36336d=>_0x36336d!=_0x13894d['creator']);return _0x13894d['creator']&&_0x597ef2['unshift'](_0x13894d['creator']),_0x597ef2['map'](_0x3f91cb=>new ti(_0x21df11,_0x3f91cb,_0x3f91cb==_0x13894d['creator']));}(_0x818596,_0x3b5b70);this['id']=_0x3b5b70['id'],this['_revision']=_0x3b5b70,this['_requireRevisionName']=_0xbd46da,this['bind']('name','createdAt')['to'](_0x3b5b70),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1b46b0=>{return _0x59798c=_0x818596['uiLanguage'],(_0x295c37=_0x1b46b0)['toLocaleDateString'](_0x59798c,{'month':'long','day':'numeric'})+',\x20'+_0x295c37['toLocaleTimeString'](_0x59798c,{'hour':'numeric','minute':'numeric'});var _0x59798c,_0x295c37;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x818596,_0x1d2e0c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4f29c6=>_0x4f29c6||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xa0e71d,_0x5ea566)=>_0xa0e71d&&_0x5ea566),this['revisionActionsView']=_0x2b078c&&_0x2b078c['length']?ni(this,_0x2b078c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x46d3b8['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x46d3b8['if']('isEnabled','ck-disabled',_0x287fd9=>!_0x287fd9),_0x46d3b8['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x46d3b8['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x46d3b8['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':_0x46d3b8['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':_0x444cc2}]},this['revisionActionsView']],'on':{'click':_0x46d3b8['to'](_0x3c835c=>{_0x3c835c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x11835e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x11835e,'change',()=>{this['_requireRevisionName']&&!_0x11835e['value']||this['fire']('setName',{'id':this['id'],'name':_0x11835e['value']}),_0x11835e['value']||(_0x11835e['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(_0x5df90e,_0x28ec56){const _0x10aa43=_0x2e0acd['fromJSDate'](_0x5df90e)['setLocale'](_0x28ec56),_0x47e8a9=_0x2e0acd['local'](),_0x351040=_0x47e8a9['minus']({'days':0x1})['startOf']('day');let _0x151f04,_0x564cdc;return _0x10aa43['hasSame'](_0x47e8a9,'day')?(_0x151f04=_0x10aa43['startOf']('day')['toJSDate'](),_0x564cdc=_0x10aa43['toRelativeCalendar']()):_0x10aa43['hasSame'](_0x351040,'day')?(_0x151f04=_0x351040['toJSDate'](),_0x564cdc=_0x10aa43['toRelativeCalendar']()):_0x10aa43['hasSame'](_0x47e8a9,'week')?(_0x151f04=_0x10aa43['startOf']('week')['toJSDate'](),_0x564cdc=_0x10aa43['weekdayLong']||''):_0x10aa43['hasSame'](_0x47e8a9,'year')?(_0x151f04=_0x10aa43['startOf']('month')['toJSDate'](),_0x564cdc=_0x10aa43['monthLong']||''):(_0x151f04=_0x10aa43['startOf']('year')['toJSDate'](),_0x564cdc=String(_0x10aa43['year'])),{'startDate':_0x151f04,'localizedPeriodName':_0x564cdc};}class mi extends _0x571e95{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x806d26,_0x1fc0ea,_0x428951,_0x3a44f8){super(_0x806d26);const _0x1771b1=di(_0x1fc0ea,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1fc0ea,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x428951,this['_requireRevisionName']=_0x3a44f8,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':_0x1771b1}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x50cdab){const _0x5024d9=new ai(this['locale'],_0x50cdab,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5024d9);}['removeRevision'](_0x4817d7){const _0xfd6242=this['revisionViews']['find'](_0x28cb65=>_0x28cb65['id']===_0x4817d7['id']);this['revisionViews']['remove'](_0xfd6242);}}class as extends _0x571e95{constructor(_0x361094){super(_0x361094);const _0x2b6fc0=new _0xc17691();_0x2b6fc0['content']=_0x42aafe['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2b6fc0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x361094,'Revision\x20history')]}]});}}class ci extends _0x571e95{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x382135,_0x32d476,_0x8eb3c4,_0x31a901){super(_0x382135);const _0x5043be=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x32d476,this['_revisionActions']=_0x8eb3c4,this['_requireRevisionName']=_0x31a901,this['on']('select',(_0x167a54,_0x1b5650)=>{this['fire']('revisionSelected',_0x1b5650);}),this['on']('setName',(_0x46615e,_0x3603f5)=>{this['fire']('revisionSetName',_0x3603f5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x382135),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5043be['if']('isEnabled','ck-disabled',_0x2d555a=>!_0x2d555a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x57c379 of this['_revisions'])this['_addRevision'](_0x57c379);this['_revisions']['on']('add',(_0x549671,_0x35e223)=>{this['_addRevision'](_0x35e223);}),this['_revisions']['on']('remove',(_0x32eb8e,_0x2c4cc3)=>{this['_removeRevision'](_0x2c4cc3);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x549a14=>_0x549a14['revisionViews']['map'](_0x2cd0b0=>_0x2cd0b0))['flat']();}['selectRevision'](_0x575359){for(const _0x3e0128 of this['revisionViews'])_0x575359&&_0x575359['id']===_0x3e0128['id']?_0x3e0128['select']():_0x3e0128['deselect']();}['highlightRevisions'](_0x4cdcdf){for(const _0x3e422c of this['revisionViews'])_0x4cdcdf['some'](({id:_0x1a69a1})=>_0x1a69a1===_0x3e422c['id'])?_0x3e422c['highlight']():_0x3e422c['unhighlight']();}['_addRevision'](_0x332202){const _0xed39f5=di(_0x332202['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x19509a=this['timePeriodViews']['get'](0x0);_0x19509a&&_0x19509a['startDate']['getTime']()===_0xed39f5['getTime']()||(_0x19509a=new mi(this['locale'],_0xed39f5,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x19509a)),_0x19509a['addRevision'](_0x332202);}['_removeRevision'](_0x585528){const _0x39bc58=di(_0x585528['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x39bc58)['removeRevision'](_0x585528);}['_getTimePeriodViewByStartDate'](_0xd8a47c){return this['timePeriodViews']['find'](_0x53581a=>_0x53581a['startDate']['getTime']()===_0xd8a47c['getTime']());}}class w extends _0x314a0a{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x259015){super(_0x259015),this['_revisionViewer']=_0x259015['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3dae24=this['_revisionsRepository']['_revisions'],_0x2246a9=this['_createRevisionActions'](),_0x2894f4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x3dae24,_0x2246a9,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',(_0x374ac6,_0x51997f)=>{_0x51997f['revisionViews']['on']('add',(_0x566643,_0x1d6c0e)=>{_0x1d6c0e['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)),_0x2894f4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x295a0a=this['_revisionsRepository']['getRevision'](0x0);if(_0x295a0a){const _0x50abe5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x295a0a['id']);this['_revisionViewer']['compare'](_0x295a0a,_0x50abe5);}}['_handleRevisionSelected'](_0x2c5c26,_0x54bbd8){const _0x153d2d=this['_revisionsRepository']['getRevision'](_0x54bbd8['id']),_0x1109f9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x153d2d['id']);this['_revisionViewer']['compare'](_0x153d2d,_0x1109f9);}['_handleRevisionSetName'](_0x434f61,_0x81c5db){this['_revisionsRepository']['getRevision'](_0x81c5db['id'])['setName'](_0x81c5db['name']);}['_handleDiffChange'](_0x393892,_0x16f977,_0x3994d9){const _0x2ef1b1=this['_revisionsRepository']['getRevisionsInDiff'](_0x3994d9);_0x2ef1b1['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2ef1b1),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2ef1b1[0x0]));}['_createRevisionActions'](){const _0x53c639=this['editor'],_0x2a9dfb=w['availableRevisionActions'],_0xa829ab=_0x53c639['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0xa829ab['length'])return _0xa829ab['map'](_0x61024b=>{const _0x2db924='string'==typeof _0x61024b?Object['assign']({},_0x2a9dfb[_0x61024b]):_0x61024b;return _0x2db924['action']=_0x2db924['action']['bind'](this,_0x53c639),_0x2db924['isVisible']&&(_0x2db924['isVisible']=_0x2db924['isVisible']['bind'](this,_0x53c639)),_0x2db924;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x58b289},_0x380e63)=>{const _0x23d53e=_0x58b289['get'](d),_0xc0c514=_0x23d53e['repository'];let _0xd527c8=_0x23d53e['diff']['newRevisionId'],_0x88be6f=_0x380e63['id'];_0xc0c514['getIndex'](_0xd527c8)>_0xc0c514['getIndex'](_0x88be6f)&&([_0xd527c8,_0x88be6f]=[_0x88be6f,_0xd527c8]),_0x23d53e['compare'](_0xd527c8,_0x88be6f);},'isVisible':({plugins:_0x9738b8},_0x13a325)=>{const _0x45fadc=_0x9738b8['get'](d);return!(_0x45fadc['repository']['getRevisionsInDiff'](_0x45fadc['diff'])['length']>0x2)&&!_0x13a325['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4eaabf,{id:_0x46f958})=>{_0x4eaabf['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x46f958);},'isVisible':({plugins:_0x3ff5d4},_0x1819f4)=>!!_0x3ff5d4['get'](d)['repository']['getLaterVisibleRevision'](_0x1819f4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x243641},{id:_0x50a438,revisionNameView:_0x1dfd93})=>{const _0x3d17fc=_0x243641['get'](d),_0x191301=_0x3d17fc['repository']['getEarlierVisibleRevision'](_0x50a438);_0x3d17fc['compare'](_0x50a438,_0x191301),_0x1dfd93['focus'](),_0x1dfd93['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3dfd72,_0x5abb60){super(_0x3dfd72),this['_view']=_0x5abb60,this['_toolbarConfig']=ot(_0x3dfd72['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x5db923){const _0x426909=this['editor'],_0x2e7eaa=this['view'],_0x14c840=_0x426909['editing']['view'],_0x2d5ff7=_0x2e7eaa['editable'],_0x311650=_0x14c840['document']['getRoot']();_0x2d5ff7['name']=_0x311650['rootName'],_0x2e7eaa['render']();const _0x136045=_0x2d5ff7['element'];this['setEditableElement'](_0x2d5ff7['name'],_0x136045),_0x2e7eaa['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x14c840['attachDomRoot'](_0x136045),this['_elementReplacer']['replace'](_0x5db923,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x42f307=this['view'],_0x21d44c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x21d44c['detachDomRoot'](_0x42f307['editable']['name']),_0x42f307['destroy']();}['_initToolbar'](){const _0xe16b19=this['view'];_0xe16b19['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xe16b19['stickyPanel']['limiterElement']=_0xe16b19['element'],_0xe16b19['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3c7a75})=>_0x3c7a75),_0xe16b19['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xe16b19['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x25acb4,_0x596d16,_0x136bad={}){super(_0x25acb4),this['stickyPanel']=new ut(_0x25acb4),this['toolbar']=new lt(_0x25acb4,{'shouldGroupWhenFull':_0x136bad['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x25acb4,_0x596d16);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x35944a,_0x492ef9){super(_0x492ef9),this['sourceElement']=_0x35944a,this['model']['document']['createRoot']();const _0x25fa89=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x25fa89);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x24be72,_0x2198a6){const _0x504b9e=new this(_0x24be72,_0x2198a6);return await _0x504b9e['initPlugins'](),await _0x504b9e['ui']['init'](_0x24be72),await _0x504b9e['data']['init'](_0x504b9e['config']['get']('initialData')||''),_0x504b9e['fire']('ready'),_0x504b9e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x7756cd{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f5a53){function _0x1fa95a(_0x5e4669){return _0x5e4669['map'](_0x3f904d=>String['fromCharCode'](_0x3f904d))['join']('');}super(_0x4f5a53),this['result']='end',_0x4f5a53[_0x1fa95a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fa95a([0x76,0x69,0x65,0x77])][_0x1fa95a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1fa95a([0x61,0x75,0x74,0x6f]),_0x4f5a53[_0x1fa95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1fa95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1fa95a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1fa95a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1fa95a([0x6f,0x6b])});}}class k extends _0x7756cd{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x89a454){if(super(_0x89a454),!this['editor']['config']['get']('revisionHistory'))throw new _0xcbc5f8('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1ab4ce=>this['_showRevisionViewer']({..._0x1ab4ce,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4a3f6b=>this['_closeRevisionViewer'](_0x4a3f6b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5f1a31=>this['_restoreRevision'](_0x5f1a31)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x35fb43){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x35fb43;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xb3d9e5){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xb3d9e5);}['getRevision'](_0x496f7c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x496f7c);}['getRevisions'](_0x3ee8c0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3ee8c0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x35d802=this['editor'],_0x34a251=_0x21f332(_0x35d802,p),_0x50e17c=_0x35d802['plugins']['get']('RevisionTracker'),_0x33020d=_0x35d802['plugins']['get']('Users')['users'];return _0x34a251['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x34a251['lazyRoots'],(_0x34a251['plugins']['push'](Rt,d,g,class extends _0x7756cd{static get['requires'](){return[d,'Users'];}['init'](){const _0x1f1152=this['editor']['plugins']['get']('Users');for(const _0xf5912 of _0x33020d)_0xf5912['isAnonymous']||_0x1f1152['getUser'](_0xf5912['id'])||_0x1f1152['addUser'](_0xf5912);const _0x5e8f57=_0x50e17c['repository']['getRevisions']();let _0x196045=null;const _0x1da33d=this['editor']['plugins']['get']('RevisionViewer');_0x1da33d['adapter']=_0x50e17c['adapter'],_0x1da33d['bind']('isEnabled')['to'](_0x50e17c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x35d802,'isReadOnly',_0x21a7af=>!_0x21a7af);for(const _0x550a07 of _0x5e8f57){const _0x843cdd=null===_0x550a07['creator'];if(_0x843cdd&&_0x550a07['toVersion']===_0x550a07['fromVersion'])continue;const _0x43589a=_0x550a07['toJSON']();_0x1da33d['addRevisionData'](_0x43589a,(_0x324239,_0x44567d,_0x7cc5c5)=>{if(_0x843cdd){if(_0x196045)_0x196045['_update'](_0x324239,_0x44567d);else{if(!_0x44567d){const _0x25102a=_0x7cc5c5['toJSON']();_0x25102a['id']=_0x50e613(),_0x50e17c['saveRevision'](_0x25102a,_0x7cc5c5['toVersion'])['then'](_0x3b680d=>{_0x196045=_0x3b680d;});}}}else _0x550a07['_update'](_0x324239,_0x44567d);});}}},w),_0x34a251);}['_enhanceShowRevisionViewerCallback'](){const _0x389b8f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3f7c4f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2faab2=this['editor']['plugins']['get']('Autosave');await _0x2faab2['save']();}else await _0x3f7c4f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x539b33=this['editor']['plugins']['get']('Dialog');_0x539b33['isOpen']&&_0x539b33['hide']();}const _0x48d82e=this['_getRevisionViewerEditorConfig']();return _0x389b8f(_0x48d82e)['then'](_0x478e29=>{return(this['_viewerEditor']=_0x478e29,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x478e29;})['catch'](_0x355425=>(console['error'](_0x355425),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2324a0=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'](),_0x2324a0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2f47eb=this['editor']['plugins']['get']('Annotations');_0x2f47eb['refreshVisibility'](),_0x2f47eb['refreshPositioning']();}})));}['_showRevisionViewer'](_0x572202){const _0x521eaa=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1f5622=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x28e5ff=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x28e5ff,_0x572202)['then'](_0x722527=>(_0x1f5622['style']['display']='block',_0x521eaa['style']['display']='none',_0x722527));}['_closeRevisionViewer'](_0x27f202){const _0x262fab=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x262fab['style']['display']='',_0x27f202['destroy']();}async['_restoreRevision'](_0x1b6f74){const _0x406a97=this['editor'],_0x10898e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4350aa=_0x406a97['plugins']['get']('RevisionTracker'),_0x4668f6=_0x10898e['repository']['getRevision'](_0x1b6f74);let _0x1946c5,_0x360333,_0x282f7c;try{_0x1946c5=await _0x10898e['getRevisionData'](_0x4668f6),_0x360333=await _0x10898e['getRevisionRootsAttributes'](_0x4668f6);}catch(_0x264483){return void console['error'](_0x264483);}_0x406a97['model']['change'](_0x82d736=>{for(const _0x217a36 of Array['from'](_0x406a97['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x82d736['removeMarker'](_0x217a36);}),_0x10898e['isReady']=!0x1,_0x406a97['model']['enqueueChange'](_0x2e733=>{_0x2e733['setSelection'](null),_0x2e733['removeSelectionAttribute'](_0x406a97['model']['document']['selection']['getAttributeKeys']());const _0x4dae43=Object['keys'](_0x1946c5);for(const _0x4e8d0f of _0x406a97['model']['document']['roots'])'$graveyard'!=_0x4e8d0f['rootName']&&_0x4e8d0f['isAttached']()&&!_0x4dae43['includes'](_0x4e8d0f['rootName'])&&_0x2e733['detachRoot'](_0x4e8d0f);for(const _0x24ee29 of _0x4dae43){let _0x150689=_0x406a97['model']['document']['getRoot'](_0x24ee29);_0x150689&&_0x150689['isAttached']()||(_0x150689=_0x2e733['addRoot'](_0x24ee29));const _0x49ceab=_0x360333[_0x24ee29],_0x44a0f2=Object['keys'](_0x49ceab),_0x576934=_0x1946c5[_0x24ee29];for(const _0x4a53d5 of _0x150689['getAttributeKeys']())_0x44a0f2['includes'](_0x4a53d5)||_0x2e733['removeAttribute'](_0x4a53d5,_0x150689);for(const _0x35e1cc of _0x44a0f2)_0x2e733['setAttribute'](_0x35e1cc,_0x360333[_0x24ee29][_0x35e1cc],_0x150689);_0x2e733['remove'](_0x2e733['createRangeIn'](_0x150689)),_0x2e733['insert'](_0x406a97['data']['parse'](_0x576934,_0x150689),_0x150689,0x0);}});const _0x36d245=m(_0x406a97['locale'],'Restored');if(_0x4668f6['name'])_0x282f7c=-0x1==_0x4668f6['name']['indexOf'](_0x36d245)?_0x36d245+':\x20'+_0x4668f6['name']:_0x4668f6['name'];else _0x282f7c=_0x36d245+':\x20'+(_0x4668f6['createdAt']['toLocaleDateString'](_0x406a97['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4668f6['createdAt']['toLocaleTimeString'](_0x406a97['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4350aa['saveRevision']({'name':_0x282f7c}),_0x10898e['isReady']=!0x0,_0x406a97['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x47eaa1){super(_0x47eaa1),this['_revisionViewer']=_0x47eaa1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x43710b=this['_revisionsRepository']['_revisions'],_0x16e9d4=this['_createRevisionActions'](),_0x13d233=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x43710b,_0x16e9d4,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',(_0x30be55,_0x18b090)=>{_0x18b090['revisionViews']['on']('add',(_0x4cac34,_0x1412dd)=>{_0x1412dd['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)),_0x13d233['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4bcc82=this['_revisionsRepository']['getRevision'](0x0);if(_0x4bcc82){const _0x15b275=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4bcc82['id']);this['_revisionViewer']['compare'](_0x4bcc82,_0x15b275);}}['_handleRevisionSelected'](_0x5dd5db,_0x4e7435){const _0x59a873=this['_revisionsRepository']['getRevision'](_0x4e7435['id']),_0x1bfa5b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x59a873['id']);this['_revisionViewer']['compare'](_0x59a873,_0x1bfa5b);}['_handleRevisionSetName'](_0x52038c,_0x180ce0){this['_revisionsRepository']['getRevision'](_0x180ce0['id'])['setName'](_0x180ce0['name']);}['_handleDiffChange'](_0x5d508b,_0x18aa61,_0x181e82){const _0xb17c9=this['_revisionsRepository']['getRevisionsInDiff'](_0x181e82);_0xb17c9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xb17c9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xb17c9[0x0]));}['_createRevisionActions'](){const _0x4ce62b=this['editor'],_0xec289d=w['availableRevisionActions'],_0x29664d=_0x4ce62b['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x29664d['length'])return _0x29664d['map'](_0x4da58b=>{const _0x196db0='string'==typeof _0x4da58b?Object['assign']({},_0xec289d[_0x4da58b]):_0x4da58b;return _0x196db0['action']=_0x196db0['action']['bind'](this,_0x4ce62b),_0x196db0['isVisible']&&(_0x196db0['isVisible']=_0x196db0['isVisible']['bind'](this,_0x4ce62b)),_0x196db0;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x57b388},_0x5e6c14)=>{const _0x46eb8c=_0x57b388['get'](d),_0xc56f1a=_0x46eb8c['repository'];let _0x459a81=_0x46eb8c['diff']['newRevisionId'],_0x2ffdae=_0x5e6c14['id'];_0xc56f1a['getIndex'](_0x459a81)>_0xc56f1a['getIndex'](_0x2ffdae)&&([_0x459a81,_0x2ffdae]=[_0x2ffdae,_0x459a81]),_0x46eb8c['compare'](_0x459a81,_0x2ffdae);},'isVisible':({plugins:_0x17952d},_0xbda241)=>{const _0x3fc7f7=_0x17952d['get'](d);return!(_0x3fc7f7['repository']['getRevisionsInDiff'](_0x3fc7f7['diff'])['length']>0x2)&&!_0xbda241['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2d4e68,{id:_0x46189a})=>{_0x2d4e68['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x46189a);},'isVisible':({plugins:_0x5d1c77},_0x3ba378)=>!!_0x5d1c77['get'](d)['repository']['getLaterVisibleRevision'](_0x3ba378['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3bca66},{id:_0x339d4f,revisionNameView:_0xe4aa03})=>{const _0x1513b0=_0x3bca66['get'](d),_0x17913f=_0x1513b0['repository']['getEarlierVisibleRevision'](_0x339d4f);_0x1513b0['compare'](_0x339d4f,_0x17913f),_0xe4aa03['focus'](),_0xe4aa03['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x239d13,_0xe4f7f6){super(_0x239d13),this['_view']=_0xe4f7f6,this['_toolbarConfig']=ot(_0x239d13['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x38b96b){const _0x309f6d=this['editor'],_0xeb47fb=this['view'],_0x412343=_0x309f6d['editing']['view'],_0x220640=_0xeb47fb['editable'],_0xf7b3fe=_0x412343['document']['getRoot']();_0x220640['name']=_0xf7b3fe['rootName'],_0xeb47fb['render']();const _0x2881d2=_0x220640['element'];this['setEditableElement'](_0x220640['name'],_0x2881d2),_0xeb47fb['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x412343['attachDomRoot'](_0x2881d2),this['_elementReplacer']['replace'](_0x38b96b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x347706=this['view'],_0x5dc007=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5dc007['detachDomRoot'](_0x347706['editable']['name']),_0x347706['destroy']();}['_initToolbar'](){const _0x322533=this['view'];_0x322533['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x322533['stickyPanel']['limiterElement']=_0x322533['element'],_0x322533['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1d87ec})=>_0x1d87ec),_0x322533['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x322533['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x360a0c,_0x141115,_0x45815d={}){super(_0x360a0c),this['stickyPanel']=new ut(_0x360a0c),this['toolbar']=new lt(_0x360a0c,{'shouldGroupWhenFull':_0x45815d['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x360a0c,_0x141115);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5782e2,_0x1082ce){super(_0x1082ce),this['sourceElement']=_0x5782e2,this['model']['document']['createRoot']();const _0x5dba3f=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5dba3f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xfaad6e,_0x25da75){const _0x310a8b=new this(_0xfaad6e,_0x25da75);return await _0x310a8b['initPlugins'](),await _0x310a8b['ui']['init'](_0xfaad6e),await _0x310a8b['data']['init'](_0x310a8b['config']['get']('initialData')||''),_0x310a8b['fire']('ready'),_0x310a8b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x314a0a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbe2552){function _0x36f806(_0x3d1309){return _0x3d1309['map'](_0x39e3b7=>String['fromCharCode'](_0x39e3b7))['join']('');}super(_0xbe2552),this['result']='end',_0xbe2552[_0x36f806([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36f806([0x76,0x69,0x65,0x77])][_0x36f806([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36f806([0x61,0x75,0x74,0x6f]),_0xbe2552[_0x36f806([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x36f806([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36f806([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x36f806([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x36f806([0x6f,0x6b])});}}class k extends _0x314a0a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x358b13){if(super(_0x358b13),!this['editor']['config']['get']('revisionHistory'))throw new _0x2eb646('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x47cfe0=>this['_showRevisionViewer']({..._0x47cfe0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1214f=>this['_closeRevisionViewer'](_0x1214f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x140b17=>this['_restoreRevision'](_0x140b17)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x46484e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x46484e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x292c70){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x292c70);}['getRevision'](_0x3c9b9b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3c9b9b);}['getRevisions'](_0x102f03){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x102f03||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3e22f6=this['editor'],_0x2b3525=_0x292d07(_0x3e22f6,p),_0x58d315=_0x3e22f6['plugins']['get']('RevisionTracker'),_0x47e2b8=_0x3e22f6['plugins']['get']('Users')['users'];return _0x2b3525['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2b3525['lazyRoots'],(_0x2b3525['plugins']['push'](Rt,d,g,class extends _0x314a0a{static get['requires'](){return[d,'Users'];}['init'](){const _0x78f6dc=this['editor']['plugins']['get']('Users');for(const _0xb6499b of _0x47e2b8)_0xb6499b['isAnonymous']||_0x78f6dc['getUser'](_0xb6499b['id'])||_0x78f6dc['addUser'](_0xb6499b);const _0x42aef3=_0x58d315['repository']['getRevisions']();let _0x51eb36=null;const _0xb7f3b=this['editor']['plugins']['get']('RevisionViewer');_0xb7f3b['adapter']=_0x58d315['adapter'],_0xb7f3b['bind']('isEnabled')['to'](_0x58d315),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3e22f6,'isReadOnly',_0x51b711=>!_0x51b711);for(const _0x20bd7e of _0x42aef3){const _0x48a2ad=null===_0x20bd7e['creator'];if(_0x48a2ad&&_0x20bd7e['toVersion']===_0x20bd7e['fromVersion'])continue;const _0x430d66=_0x20bd7e['toJSON']();_0xb7f3b['addRevisionData'](_0x430d66,(_0x1c9489,_0x36b752,_0x5bbb99)=>{if(_0x48a2ad){if(_0x51eb36)_0x51eb36['_update'](_0x1c9489,_0x36b752);else{if(!_0x36b752){const _0x42af20=_0x5bbb99['toJSON']();_0x42af20['id']=_0x1f968a(),_0x58d315['saveRevision'](_0x42af20,_0x5bbb99['toVersion'])['then'](_0x4b442c=>{_0x51eb36=_0x4b442c;});}}}else _0x20bd7e['_update'](_0x1c9489,_0x36b752);});}}},w),_0x2b3525);}['_enhanceShowRevisionViewerCallback'](){const _0x336e1a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x17d5a6=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a19bf=this['editor']['plugins']['get']('Autosave');await _0x4a19bf['save']();}else await _0x17d5a6['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x247a03=this['editor']['plugins']['get']('Dialog');_0x247a03['isOpen']&&_0x247a03['hide']();}const _0x49f534=this['_getRevisionViewerEditorConfig']();return _0x336e1a(_0x49f534)['then'](_0x3e9321=>{return(this['_viewerEditor']=_0x3e9321,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3e9321;})['catch'](_0x3a5390=>(console['error'](_0x3a5390),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x40e029=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'](),_0x40e029(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x51c788=this['editor']['plugins']['get']('Annotations');_0x51c788['refreshVisibility'](),_0x51c788['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5df809){const _0x33f43e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x38c8d5=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2fc98e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2fc98e,_0x5df809)['then'](_0x4b3a5d=>(_0x38c8d5['style']['display']='block',_0x33f43e['style']['display']='none',_0x4b3a5d));}['_closeRevisionViewer'](_0x5725b5){const _0x2d3ebf=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2d3ebf['style']['display']='',_0x5725b5['destroy']();}async['_restoreRevision'](_0x22362e){const _0x1681e1=this['editor'],_0x2fbf00=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3ac4a4=_0x1681e1['plugins']['get']('RevisionTracker'),_0x52975c=_0x2fbf00['repository']['getRevision'](_0x22362e);let _0x5c3c4a,_0x10fa21,_0x308307;try{_0x5c3c4a=await _0x2fbf00['getRevisionData'](_0x52975c),_0x10fa21=await _0x2fbf00['getRevisionRootsAttributes'](_0x52975c);}catch(_0x3a4d3f){return void console['error'](_0x3a4d3f);}_0x1681e1['model']['change'](_0x564354=>{for(const _0x26d34d of Array['from'](_0x1681e1['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x564354['removeMarker'](_0x26d34d);}),_0x2fbf00['isReady']=!0x1,_0x1681e1['model']['enqueueChange'](_0x3091a9=>{_0x3091a9['setSelection'](null),_0x3091a9['removeSelectionAttribute'](_0x1681e1['model']['document']['selection']['getAttributeKeys']());const _0xf68cff=Object['keys'](_0x5c3c4a);for(const _0x2921fe of _0x1681e1['model']['document']['roots'])'$graveyard'!=_0x2921fe['rootName']&&_0x2921fe['isAttached']()&&!_0xf68cff['includes'](_0x2921fe['rootName'])&&_0x3091a9['detachRoot'](_0x2921fe);for(const _0x4a8228 of _0xf68cff){let _0x503b30=_0x1681e1['model']['document']['getRoot'](_0x4a8228);_0x503b30&&_0x503b30['isAttached']()||(_0x503b30=_0x3091a9['addRoot'](_0x4a8228));const _0x3b0b1f=_0x10fa21[_0x4a8228],_0x200661=Object['keys'](_0x3b0b1f),_0x15b634=_0x5c3c4a[_0x4a8228];for(const _0xd5502 of _0x503b30['getAttributeKeys']())_0x200661['includes'](_0xd5502)||_0x3091a9['removeAttribute'](_0xd5502,_0x503b30);for(const _0x23792f of _0x200661)_0x3091a9['setAttribute'](_0x23792f,_0x10fa21[_0x4a8228][_0x23792f],_0x503b30);_0x3091a9['remove'](_0x3091a9['createRangeIn'](_0x503b30)),_0x3091a9['insert'](_0x1681e1['data']['parse'](_0x15b634,_0x503b30),_0x503b30,0x0);}});const _0x3c9880=m(_0x1681e1['locale'],'Restored');if(_0x52975c['name'])_0x308307=-0x1==_0x52975c['name']['indexOf'](_0x3c9880)?_0x3c9880+':\x20'+_0x52975c['name']:_0x52975c['name'];else _0x308307=_0x3c9880+':\x20'+(_0x52975c['createdAt']['toLocaleDateString'](_0x1681e1['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x52975c['createdAt']['toLocaleTimeString'](_0x1681e1['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3ac4a4['saveRevision']({'name':_0x308307}),_0x2fbf00['isReady']=!0x0,_0x1681e1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};