@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241222.0 → 0.0.0-nightly-20241223.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 _0x58102d,uid as _0x5267dc,Collection as _0x43490f,logWarning as _0x3587c5,FocusTracker as _0x2550c6,KeystrokeHandler as _0x26fbbd,scrollViewportToShowTarget as _0x8b495d,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x43ae4b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4a7b13,set as _0x1df3b5,unset as _0xb8b1e6,isEqual as _0x28fe1f}from'lodash-es';import{Plugin as _0xfededa,PendingActions as _0x3d12b4,icons as _0x4d2fdd,Command as _0x50220e,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4a5eff,getMarkerDomElement as _0x295fc2,ConfirmMixin as _0x342b0d,sanitizeEditorConfig as _0x51021d}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3de66c,ViewText as _0x4d49ab,ViewElement as _0x2e39e1,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x2854db,ViewAttributeElement as _0x2cb329,ViewEmptyElement as _0x8724e3,ViewRawElement as _0x590a6a,ViewUIElement as _0x1e6437,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x368c30,injectCssTransitionDisabler as ts,submitHandler as _0x5f3966,LabeledFieldView as at,createLabeledInputText as _0x5dff9e,createDropdown as _0x548592,ListView as _0x521f1a,ListItemView as _0x2d5f96,ButtonView as _0x5bb200,MenuBarMenuView as _0x5d5a8e,MenuBarMenuListView as _0x325693,MenuBarMenuListItemView as _0x5b4372,MenuBarMenuListItemButtonView as _0x48b626,ContextualBalloon as _0x34ae00,ToolbarSeparatorView as _0x2c3281,IconView as _0x551b28,addListToDropdown as _0x1314ec,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2859dd}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x58102d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5d54ee){super(),this['id']=_0x5d54ee['id']||_0x5267dc(),this['creator']=_0x5d54ee['creator']||null,this['authors']=_0x5d54ee['authors']||[],this['diffData']=_0x5d54ee['diffData']||null,this['toVersion']=_0x5d54ee['toVersion']||0x0,this['fromVersion']=_0x5d54ee['fromVersion']||0x0,this['set']('name',_0x5d54ee['name']||''),this['set']('createdAt',_0x5d54ee['createdAt']||new Date()),this['set']('attributes',_0x5d54ee['attributes']||{});}['setName'](_0x4be1d5){this['_update']({'name':_0x4be1d5});}['setAttribute'](_0x3ada0c,_0x17db0e){const _0x4f93dd=_0x4a7b13(this['attributes']);_0x1df3b5(_0x4f93dd,_0x3ada0c,_0x17db0e),this['_update']({'attributes':_0x4f93dd});}['removeAttribute'](_0x248333){const _0x495e2d=_0x4a7b13(this['attributes']);_0xb8b1e6(_0x495e2d,_0x248333),this['_update']({'attributes':_0x495e2d});}['_update'](_0x2722e3,_0x350f02=!0x1){let _0x347ac7=!0x1;const _0x132d85={'id':this['id']},_0x100894=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xd4ea8a of _0x100894){const _0x474323=_0x2722e3[_0xd4ea8a];void 0x0!==_0x474323&&_0x474323!==this[_0xd4ea8a]&&(this[_0xd4ea8a]=_0x474323,_0x132d85[_0xd4ea8a]=_0x474323,_0x347ac7=!0x0);}_0x347ac7&&(_0x132d85['authors']&&(_0x132d85['authorsIds']=_0x132d85['authors']['map'](_0x1f36f4=>_0x1f36f4['id']),delete _0x132d85['authors']),this['fire']('_update',_0x132d85,_0x350f02));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4e091c=>_0x4e091c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0xfededa{['_revisions'];static get['requires'](){return[_0x4a5eff];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5d035e){super(_0x5d035e),this['_revisions']=new _0x43490f();}['afterInit'](){!async function(_0x31e8f4){const _0xc730df=_0x301613([0x44,0x70,0x4c,0x62,0x6a,0x36,0x64,0x63,0x45,0x74,0x69,0x34,0x4f,0x30,0x39,0x58,0x76,0x55,0x71,0x68,0x41,0x53,0x50,0x38,0x46,0x43,0x42,0x77,0x6e,0x56,0x31,0x52,0x33,0x75,0x47,0x79,0x49,0x4e,0x59,0x6c,0x48,0x54,0x35,0x5a,0x65,0x51,0x6f,0x67,0x73,0x4b,0x32,0x61,0x4a,0x6d,0x66,0x78,0x37,0x6b,0x57,0x72,0x4d,0x7a]),_0x3080d7=0xeb829,_0x9c99ed=0x54be967a,_0x720fd5=0x54b9cc12^_0x9c99ed,_0xfaaaa9=window[_0x301613([0x44,0x61,0x74,0x65])][_0x301613([0x6e,0x6f,0x77])](),_0x1153f8=_0x31e8f4[_0x301613([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x432259=new window[(_0x301613([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13db25=>{_0x1153f8[_0x301613([0x6f,0x6e,0x63,0x65])](_0x301613([0x72,0x65,0x61,0x64,0x79]),_0x13db25);}),_0x5893ef={[_0x301613([0x6b,0x74,0x79])]:_0x301613([0x45,0x43]),[_0x301613([0x75,0x73,0x65])]:_0x301613([0x73,0x69,0x67]),[_0x301613([0x63,0x72,0x76])]:_0x301613([0x50,0x2d,0x32,0x35,0x36]),[_0x301613([0x78])]:_0x301613([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]),[_0x301613([0x79])]:_0x301613([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]),[_0x301613([0x61,0x6c,0x67])]:_0x301613([0x45,0x53,0x32,0x35,0x36])},_0x489945=_0x1153f8[_0x301613([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x301613([0x67,0x65,0x74])](_0x301613([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ffbee(){let _0x22ce56,_0x293f22=null,_0x3270bd=null;try{if(_0x489945==_0x301613([0x47,0x50,0x4c]))return _0x301613([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22ce56=_0x26d3e9(),!_0x22ce56)return _0x301613([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22ce56[_0x301613([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3270bd=_0x1dab8b(_0x22ce56[_0x301613([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22ce56[_0x301613([0x6a,0x74,0x69])])),await _0x128808()?_0x1f9012()?_0x4f1c1d()?_0x301613([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x530a36()?(_0x22ce56[_0x301613([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x301613([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x293f22=_0x4a74ea(_0x301613([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22ce56[_0x301613([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x301613([0x74,0x72,0x69,0x61,0x6c])&&(_0x293f22=_0x4a74ea(_0x301613([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x22ce56[_0x301613([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x301613([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x293f22=_0x4a74ea(_0x301613([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1430c4()):_0x301613([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x301613([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x301613([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11b578){return _0x301613([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f1c1d(){const _0x59d96d=[_0x301613([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x301613([0x74,0x72,0x69,0x61,0x6c])][_0x301613([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ce56[_0x301613([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfaaaa9/0x3e8:0xe10*_0x720fd5;return _0x22ce56[_0x301613([0x65,0x78,0x70])]<_0x59d96d;}function _0x1f9012(){const _0x4336e9=_0x22ce56[_0x301613([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4336e9)return!0x1;if(_0x4336e9[_0x301613([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x301613([0x2a])))return!0x0;if(_0x4336e9[_0x301613([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x301613([0x52,0x48])))return!0x0;if(_0x4336e9[_0x301613([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x301613([0x52,0x52,0x48]))){if(_0x246b1e())return!0x0;if(_0x2f2b62()||_0x21187e())return!0x0;}return!0x1;}function _0x530a36(){const _0x477cdd=_0x22ce56[_0x301613([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x477cdd||0x0==_0x477cdd[_0x301613([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47931d}=new URL(window[_0x301613([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x477cdd[_0x301613([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47931d))return!0x0;const _0x5b7cc0=_0x47931d[_0x301613([0x73,0x70,0x6c,0x69,0x74])](_0x301613([0x2e]));return _0x477cdd[_0x301613([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38707d=>_0x38707d[_0x301613([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x301613([0x2a])))[_0x301613([0x6d,0x61,0x70])](_0x16f80b=>_0x16f80b[_0x301613([0x73,0x70,0x6c,0x69,0x74])](_0x301613([0x2e])))[_0x301613([0x73,0x6f,0x6d,0x65])](_0x4689b7=>_0x5b7cc0[_0x301613([0x65,0x76,0x65,0x72,0x79])]((_0x5091b0,_0x101eda)=>_0x4689b7[_0x101eda]===_0x5091b0||_0x4689b7[_0x101eda]===_0x301613([0x2a])));}function _0x1430c4(){return _0x293f22&&_0x3270bd?new window[(_0x301613([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21afda,_0xda60f3)=>{_0x293f22[_0x301613([0x74,0x68,0x65,0x6e])](_0x21afda,_0xda60f3),_0x3270bd[_0x301613([0x74,0x68,0x65,0x6e])](_0x1dff5a=>{_0x1dff5a!=_0x301613([0x56,0x61,0x6c,0x69,0x64])&&_0x21afda(_0x1dff5a);},_0xda60f3);}):_0x293f22||_0x3270bd||_0x301613([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1dab8b(_0x17e5ef,_0x2088ac){return new window[(_0x301613([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5011c7=>{if(_0x18ec18())return _0x5011c7(_0x301613([0x56,0x61,0x6c,0x69,0x64]));_0xb2bf3e(),_0x1153f8[_0x301613([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x301613([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33d934=!0x1;const _0x39f219=_0x5267dc();function _0x461c7a(_0x3fe5f7){return!!_0x3fe5f7&&(typeof _0x3fe5f7===_0x301613([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fe5f7===_0x301613([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fe5f7[_0x301613([0x74,0x68,0x65,0x6e])]===_0x301613([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fe5f7[_0x301613([0x63,0x61,0x74,0x63,0x68])]===_0x301613([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x571793(_0x4666a3){_0x449ae9(_0x4666a3)[_0x301613([0x74,0x68,0x65,0x6e])](_0x12e4f5=>{if(!_0x12e4f5||_0x12e4f5[_0x301613([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x301613([0x6f,0x6b]))return _0x301613([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x398842(_0x3f11ea(_0x39f219+_0x2088ac))!=_0x12e4f5[_0x301613([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x301613([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x301613([0x56,0x61,0x6c,0x69,0x64]);})[_0x301613([0x74,0x68,0x65,0x6e])](_0x3311a3=>(_0x42d45e(),_0x3311a3),()=>{const _0x56f138=_0x4ad2d5();return null==_0x56f138?(_0x42d45e(),_0x301613([0x56,0x61,0x6c,0x69,0x64])):_0x301613(_0xfaaaa9-_0x56f138>(0x70b2127a^_0x9c99ed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x301613([0x74,0x68,0x65,0x6e])](_0x5011c7)[_0x301613([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5011c7(_0x301613([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c2a25=0x548878fa^_0x9c99ed;function _0x42d45e(){const _0xbe216b=_0x301613([0x6c,0x6c,0x63,0x74,0x2d])+_0x398842(_0x3f11ea(_0x17e5ef)),_0x42aadb=_0x58eb7c(_0x398842(window[_0x301613([0x4d,0x61,0x74,0x68])][_0x301613([0x63,0x65,0x69,0x6c])](_0xfaaaa9/_0x5c2a25)));window[_0x301613([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x301613([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbe216b,_0x42aadb);}function _0x4ad2d5(){const _0x3cae0d=_0x301613([0x6c,0x6c,0x63,0x74,0x2d])+_0x398842(_0x3f11ea(_0x17e5ef)),_0x42faf7=window[_0x301613([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x301613([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cae0d);return _0x42faf7?window[_0x301613([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58eb7c(_0x42faf7),0x10)*_0x5c2a25:null;}function _0x449ae9(_0x131e4b){return new window[(_0x301613([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f74ca,_0x30e75a)=>{_0x131e4b[_0x301613([0x74,0x68,0x65,0x6e])](_0x3f74ca,_0x30e75a),window[_0x301613([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30e75a,0x54bf42ba^_0x9c99ed);});}}_0x1153f8[_0x301613([0x6f,0x6e])](_0x301613([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a32b9,_0x4a5f7e)=>{if(_0x4a5f7e[0x0]!=_0x17e5ef)return _0x5011c7(_0x301613([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a5f7e[0x1]={..._0x4a5f7e[0x1],[_0x301613([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39f219};},{[_0x301613([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x301613([0x68,0x69,0x67,0x68])}),_0x1153f8[_0x301613([0x6f,0x6e])](_0x301613([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x466f5d=>{_0x461c7a(_0x466f5d[_0x301613([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33d934=!0x0,_0x571793(_0x466f5d[_0x301613([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x301613([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x301613([0x6c,0x6f,0x77])}),_0x432259[_0x301613([0x74,0x68,0x65,0x6e])](()=>{_0x33d934||_0x5011c7(_0x301613([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18ec18(){return _0x1153f8[_0x301613([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x301613([0x76,0x69,0x65,0x77])][_0x301613([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x301613([0x61,0x75,0x74,0x6f]);}function _0xb2bf3e(){_0x1153f8[_0x301613([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x301613([0x76,0x69,0x65,0x77])][_0x301613([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x301613([0x61,0x75,0x74,0x6f]);}}function _0x4a74ea(_0x1e0e41){const _0x36bf51=[new window[(_0x301613([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29dd98=>setTimeout(_0x29dd98,0x54b7a8b6^_0x9c99ed)),_0x432259[_0x301613([0x74,0x68,0x65,0x6e])](()=>new window[(_0x301613([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x177e4e=>{const _0x56bb81=0x54be967d^_0x9c99ed,_0x171cbc=_0x31e8f4[_0x301613([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x42802d(){_0x171cbc[_0x301613([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x56bb81&&_0x177e4e();}_0x42802d(),_0x171cbc[_0x301613([0x6f,0x6e])](_0x301613([0x61,0x64,0x64]),_0x42802d);})),new window[(_0x301613([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fdf87=>{function _0x2a2787(){for(const _0x5bafd8 in window)if(window[_0x301613([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x301613([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5bafd8))&&window[_0x5bafd8]==_0x3080d7)return _0x2fdf87();_0x1153f8[_0x301613([0x73,0x74,0x61,0x74,0x65])]!=_0x301613([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x301613([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a2787,0x54be85f2^_0x9c99ed);}_0x2f2d55(_0x301613([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2a2787();})];return window[_0x301613([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x301613([0x72,0x61,0x63,0x65])](_0x36bf51)[_0x301613([0x74,0x68,0x65,0x6e])](()=>_0x1e0e41);}async function _0x1a40f4(){if(await _0x432259,_0x2f2d55(_0x301613([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x181277=_0x31e8f4[_0x301613([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x209c7a=_0x31e8f4[_0x301613([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])](_0x181277[_0x301613([0x69,0x64])]),_0xb88df3=_0x2cae0c(_0x301613([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xb88df3[_0x301613([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x181277['id'],_0x209c7a?_0x209c7a['id']:null,!0x0),_0xb88df3[_0x301613([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x301613([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xb88df3[_0x301613([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xb88df3[_0x301613([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3e06f4,void(_0xb88df3[_0x301613([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3e06f4);}if(_0x2f2d55(_0x301613([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x59e764=_0x2cae0c(_0x301613([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x59e764[_0x301613([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x301613([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59e764[_0x301613([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59e764[_0x301613([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3e06f4,_0x59e764[_0x301613([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3e06f4;}_0x1153f8[_0x301613([0x6d,0x6f,0x64,0x65,0x6c])][_0x301613([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e06f4,_0x1153f8[_0x301613([0x6d,0x6f,0x64,0x65,0x6c])][_0x301613([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e06f4,_0x1153f8[_0x301613([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x301613([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x246b1e(){return _0x2f2d55(_0x301613([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2cae0c(_0x301613([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x301613([0x73,0x74,0x61,0x74,0x65])]==_0x301613([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f2b62(){return _0x2f2d55(_0x301613([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 _0x21187e(){return _0x2f2d55(_0x301613([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1a5ce4(_0x2df6bb){const _0x4c44c6=_0x1c046e();_0x1153f8[_0x4c44c6]=_0x301613([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])+_0x2df6bb,_0x2df6bb[_0x301613([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x301613([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1c046e()]=_0x3080d7),_0x2df6bb!=_0x301613([0x56,0x61,0x6c,0x69,0x64])&&_0x1a40f4();}function _0x1c046e(){const _0xfc3d5b=window[_0x301613([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x301613([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x301613([0x6e,0x6f,0x77])]())[_0x301613([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x301613([0x2e]),'');let _0x220da7=_0x301613([0x44]);for(let _0x5bbc23=0x0;_0x5bbc23<_0xfc3d5b[_0x301613([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bbc23+=0x2){let _0x294e50=window[_0x301613([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfc3d5b[_0x301613([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bbc23,_0x5bbc23+0x2));_0x294e50>=_0xc730df[_0x301613([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x294e50-=_0xc730df[_0x301613([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x220da7+=_0xc730df[_0x294e50];}return _0x220da7;}function _0x26d3e9(){const _0x570bf4=_0x489945[_0x301613([0x73,0x70,0x6c,0x69,0x74])](_0x301613([0x2e]));if(0x3!=_0x570bf4[_0x301613([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e7de9(_0x570bf4[0x1]);function _0x4e7de9(_0x27993f){const _0x556adc=_0x2c587c(_0x27993f);return _0x556adc&&_0x1232e3()?_0x556adc:null;function _0x1232e3(){const _0x9dc874=_0x556adc[_0x301613([0x6a,0x74,0x69])],_0x352f5a=window[_0x301613([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9dc874[_0x301613([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9dc874[_0x301613([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x656853={..._0x556adc,[_0x301613([0x6a,0x74,0x69])]:_0x9dc874[_0x301613([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9dc874[_0x301613([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x656853[_0x301613([0x76,0x63])],_0x3f11ea(_0x656853)==_0x352f5a;}}}async function _0x128808(){let _0x385a0e=!0x0;try{const _0x10cb07=_0x489945[_0x301613([0x73,0x70,0x6c,0x69,0x74])](_0x301613([0x2e])),[_0x210d7f,_0x55a731,_0x12d66c]=_0x10cb07;return _0x1baac7(_0x210d7f),await _0x442edd(_0x210d7f,_0x55a731,_0x12d66c),_0x385a0e;}catch(_0x2a9a62){return!0x1;}function _0x1baac7(_0x5e4f04){const _0x58b85b=_0x2c587c(_0x5e4f04);_0x58b85b&&_0x58b85b[_0x301613([0x61,0x6c,0x67])]==_0x301613([0x45,0x53,0x32,0x35,0x36])||(_0x385a0e=!0x1);}async function _0x442edd(_0x3b3a6b,_0x43f90d,_0x19dbd2){const _0x342640=window[_0x301613([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x301613([0x66,0x72,0x6f,0x6d])](_0x21865c(_0x19dbd2),_0x4f9e2c=>_0x4f9e2c[_0x301613([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x417523=new window[(_0x301613([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x301613([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b3a6b+_0x301613([0x2e])+_0x43f90d),_0x2e5f52=window[_0x301613([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x301613([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e5f52)return;const _0x154bd0=await _0x2e5f52[_0x301613([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x301613([0x6a,0x77,0x6b]),_0x5893ef,{[_0x301613([0x6e,0x61,0x6d,0x65])]:_0x301613([0x45,0x43,0x44,0x53,0x41]),[_0x301613([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x301613([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x301613([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e5f52[_0x301613([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x301613([0x6e,0x61,0x6d,0x65])]:_0x301613([0x45,0x43,0x44,0x53,0x41]),[_0x301613([0x68,0x61,0x73,0x68])]:{[_0x301613([0x6e,0x61,0x6d,0x65])]:_0x301613([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x154bd0,_0x342640,_0x417523)||(_0x385a0e=!0x1);}}function _0x2c587c(_0x308540){return _0x308540[_0x301613([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x301613([0x65,0x79]))?JSON[_0x301613([0x70,0x61,0x72,0x73,0x65])](_0x21865c(_0x308540)):null;}function _0x21865c(_0x59827c){return window[_0x301613([0x61,0x74,0x6f,0x62])](_0x59827c[_0x301613([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x301613([0x2b]))[_0x301613([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x301613([0x2f])));}function _0x3f11ea(_0x43db41){let _0x5c167f=0x1505;function _0x2010ec(_0x14b341){for(let _0x161368=0x0;_0x161368<_0x14b341[_0x301613([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x161368++){const _0x20fb2f=_0x14b341[_0x301613([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x161368);_0x5c167f=(_0x5c167f<<0x5)+_0x5c167f+_0x20fb2f,_0x5c167f&=_0x5c167f;}}function _0x340858(_0x5f5356){Array[_0x301613([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f5356)?_0x5f5356[_0x301613([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x340858):_0x5f5356&&typeof _0x5f5356==_0x301613([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x301613([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f5356)[_0x301613([0x73,0x6f,0x72,0x74])]()[_0x301613([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e13af,_0x188f8c])=>{_0x2010ec(_0x1e13af),_0x340858(_0x188f8c);}):_0x2010ec(window[_0x301613([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f5356));}return _0x340858(_0x43db41),_0x5c167f>>>0x0;}function _0x398842(_0x4527e7){return _0x4527e7[_0x301613([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x301613([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x301613([0x30]));}function _0x58eb7c(_0x1b024a){return _0x1b024a[_0x301613([0x73,0x70,0x6c,0x69,0x74])]('')[_0x301613([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x301613([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f2d55(_0x5cd172){return _0x1153f8[_0x301613([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x301613([0x68,0x61,0x73])](_0x5cd172);}function _0x2cae0c(_0x46b17f){return _0x1153f8[_0x301613([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x301613([0x67,0x65,0x74])](_0x46b17f);}function _0x3e06f4(){}function _0x301613(_0x1f933c){return _0x1f933c['map'](_0x1cec22=>String['fromCharCode'](_0x1cec22))['join']('');}_0x1a5ce4(await _0x3ffbee());}(this);}['createRevision'](_0x307279){const _0x1fa7c3=this['editor']['plugins']['get']('Users');return new a({'id':_0x307279['id'],'name':_0x307279['name'],'creator':_0x307279['creatorId']?_0x1fa7c3['getUser'](_0x307279['creatorId']):null,'diffData':_0x307279['diffData']||_0x307279['data'],'authors':_0x307279['authorsIds']['map'](_0x177aac=>_0x1fa7c3['getUser'](_0x177aac)),'createdAt':new Date(_0x307279['createdAt']),'attributes':_0x307279['attributes'],'fromVersion':_0x307279['fromVersion'],'toVersion':_0x307279['toVersion']});}['addRevision'](_0xf0950d,_0x50309b=0x0){this['_revisions']['add'](_0xf0950d,_0x50309b);}['getRevision'](_0xa0578){return this['_revisions']['get'](_0xa0578);}['getRevisions'](_0x32ed0d={'toJSON':!0x1}){const _0x142bba=Array['from'](this['_revisions']);return _0x142bba['reverse'](),_0x32ed0d['toJSON']?_0x142bba['map'](_0x7175dd=>_0x7175dd['toJSON']()):_0x142bba;}['getIndex'](_0x25bde0){return this['_revisions']['getIndex'](_0x25bde0);}['getEarlierVisibleRevision'](_0x4bca2f){const [,_0x50444e]=this['getRevisionsIterator'](_0x4bca2f,{'direction':'earlier'});return _0x50444e;}['getLaterVisibleRevision'](_0x1db36c){const [,_0x3b78f4]=this['getRevisionsIterator'](_0x1db36c,{'direction':'later'});return _0x3b78f4;}['getRevisionsInDiff'](_0x4c49aa){const _0x24cda3=[];for(const _0x20d664 of this['getRevisionsIterator'](_0x4c49aa['newRevisionId']))if(_0x24cda3['push'](_0x20d664),_0x20d664['id']===_0x4c49aa['oldRevisionId'])break;return _0x24cda3;}*['getRevisionsIterator'](_0xd4933,{direction:_0x230d77='earlier',filter:_0x3dc412=()=>!0x0}={}){const _0x50f660='earlier'===_0x230d77?0x1:-0x1;let _0x2ac666=this['_revisions']['get'](_0xd4933),_0x3c0c6d=this['getIndex'](_0x2ac666);for(yield _0x2ac666;_0x2ac666;){if(_0x3c0c6d+=_0x50f660,_0x2ac666=this['getRevision'](_0x3c0c6d),!_0x2ac666)return;_0x3dc412(_0x2ac666)&&(yield _0x2ac666);}}}function R(_0x49aae3,_0x25f0d2,_0x1a412c){const t=_0x49aae3['t'];switch(_0x25f0d2){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'},_0x1a412c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1a412c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x2854db,'a':_0x2cb329,'e':_0x8724e3,'r':_0x590a6a,'u':_0x1e6437};class l extends _0xfededa{['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[_0x4a5eff,j,_0x3d12b4];}constructor(_0x4fb4e3){super(_0x4fb4e3),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1d4f87=_0x5267dc();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1d4f87},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 _0x443e82=this['repository']['getRevision'](0x0),_0x58c1c0=_0x443e82&&null===_0x443e82['creator']?_0x443e82:null;if(this['_continueCurrentRevision']=!!_0x58c1c0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4c4946=this['_source']['getCurrentRevisionId'](),_0x91006d=this['repository']['getRevision'](_0x4c4946);if(_0x91006d)this['_startingVersion']=_0x91006d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x213922=this['_source']['history']['_operations']['find'](_0x318fb0=>!_0x318fb0['_isInit']),_0x574c10=_0x213922?_0x213922['baseVersion']:this['_source']['history']['version'];_0x443e82?(_0x443e82['toVersion']<_0x574c10&&_0x443e82['_update']({'toVersion':_0x574c10}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x58c1c0['id'],this['_startingVersion']=_0x58c1c0['fromVersion']):(this['_startingVersion']=_0x443e82['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x574c10,this['_continueCurrentRevision']=!0x1);}}else _0x58c1c0&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x58c1c0['toVersion'],this['editor']['model']['document']['history']['version']),_0x58c1c0['fromVersion']===_0x58c1c0['toVersion']?(0x0!==_0x58c1c0['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x58c1c0['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x58c1c0['id'],this['_startingVersion']=_0x58c1c0['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',_0x452167=>!_0x452167),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a05eb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5247d5;for(const _0x1c7485 in _0x3a05eb){const _0xce85cd=_0x1c7485,_0x3149da=_0x3a05eb[_0xce85cd];if('revisionHistoryLicenseKeyValid'==_0x3149da||'revisionHistoryLicenseKeyInvalid'==_0x3149da||'revisionHistoryLicenseKeyExpired'==_0x3149da||'revisionHistoryLicenseKeyDomainLimit'==_0x3149da||'revisionHistoryLicenseKeyNotAllowed'==_0x3149da||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3149da||'revisionHistoryLicenseKeyTrialLimit'==_0x3149da||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3149da||'revisionHistoryLicenseKeyUsageLimit'==_0x3149da){delete _0x3a05eb[_0xce85cd],_0x5247d5=_0x3149da,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5247d5&&_0x3a05eb['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5247d5&&_0x3a05eb['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5247d5&&_0x3a05eb['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5247d5&&_0x3a05eb['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5247d5&&_0x3a05eb['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5247d5&&_0x3a05eb['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5247d5&&_0x3a05eb['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5247d5&&_0x3a05eb['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x953336=this['repository']['getRevision'](0x0),_0x377501=await this['getRevisionDocumentData'](_0x953336),_0x273762=await this['getRevisionRootsAttributes'](_0x953336);this['_replaceEditorDataWithRevisionData'](_0x377501,_0x273762);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xa8c457){this['_source']=_0xa8c457;}async['update'](){const _0x369eb1=await this['_source']['getLatestVersion']();if(_0x369eb1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2e10b4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x369eb1});_0x2e10b4['authors']=_0x2e10b4['authorsIds']['map'](_0x45d9be=>this['editor']['plugins']['get']('Users')['getUser'](_0x45d9be)),this['currentRevision']['_update'](_0x2e10b4);}}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'](_0x5a3e31={},_0x5c68e3=null){const _0x336e35=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5c68e3>this['currentRevision']['toVersion']&&(_0x5c68e3=null),null===_0x5c68e3&&(_0x5c68e3=await this['_source']['getLatestVersion']());const _0x5de667=this['_getFromVersion'](_0x5c68e3),_0x460cb5=this['buildRevisionData']({'from':_0x5de667,'to':_0x5c68e3});if(this['currentRevision']['toVersion']<_0x5c68e3){const _0x31d46c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5c68e3,'to':_0x5c68e3});_0x31d46c['authors']=[],_0x31d46c['authorsIds']=[],_0x31d46c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x31d46c,!0x0),delete _0x31d46c['authors'],_0x336e35['push'](_0x31d46c);}_0x5a3e31['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5a3e31['name']=_0x5a3e31['name']||null,_0x5a3e31['id']=_0x5a3e31['id']||_0x5267dc(),_0x5a3e31={..._0x5a3e31,..._0x460cb5};const _0x182aee=this['addRevisionData'](_0x5a3e31);_0x336e35['push'](_0x5a3e31);const _0x296a33=this['repository']['getIndex'](_0x182aee);if(0x0!==_0x296a33){const _0x5368df=this['repository']['getRevision'](_0x296a33-0x1);if(_0x5368df['fromVersion']!==_0x5c68e3){const _0x50ab56=this['_revisionDataBuilder']['getData'](_0x5c68e3,_0x5368df['toVersion']),_0x1dd2a8={'id':_0x5368df['id'],'diffData':_0x50ab56['diffData'],'authorsIds':_0x50ab56['authorsIds'],'authors':_0x50ab56['authorsIds']['map'](_0x573e72=>this['editor']['plugins']['get']('Users')['getUser'](_0x573e72)),'fromVersion':_0x5c68e3};_0x5368df===this['currentRevision']&&(_0x1dd2a8['createdAt']=new Date(_0x5a3e31['createdAt']['getTime']()+0xa)),_0x5368df['_update'](_0x1dd2a8,!0x0),delete _0x1dd2a8['authors'],_0x336e35['push'](_0x1dd2a8);}}if(this['adapter']){for(const _0x576309 of _0x336e35)this['_bufferUpdate'](_0x576309['id'],_0x576309,!0x0);this['sendBufferedUpdates']();}return _0x182aee;}['addRevisionData'](_0x481198){const _0xf9a58a=this['repository']['createRevision'](_0x481198);return this['adapter']&&_0xf9a58a['on']('_update',(_0x302634,_0xb27843,_0x5c5067)=>{_0x5c5067||(this['_bufferUpdate'](_0xb27843['id'],_0xb27843,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xf9a58a,this['_findInsertionIndex'](_0xf9a58a)),_0xf9a58a;}async['getRevisionDocumentData'](_0x4c0953){await this['_loadRevisionData'](_0x4c0953);const _0x359212={};for(const _0x9cd1c7 in _0x4c0953['diffData']){if(_0x4c0953['diffData'][_0x9cd1c7]['attachChange']&&!_0x4c0953['diffData'][_0x9cd1c7]['attachChange']['isAttached'])continue;const _0x5ae1f9=this['_removeRevisionMarkers'](JSON['parse'](_0x4c0953['diffData'][_0x9cd1c7]['insertions'])),_0x2599a8=this['editor']['editing']['view']['document'],_0x358bb6=new _0x3de66c(_0x2599a8,_0x5ae1f9['map'](_0x24eee9=>V(_0x24eee9,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x359212[_0x9cd1c7]=this['editor']['data']['processor']['toData'](_0x358bb6),this['editor']['data']['processor']['useFillerType']('default');}return _0x359212;}async['getRevisionRootsAttributes'](_0x101e57){await this['_loadRevisionData'](_0x101e57);const _0x22fa86={};for(const _0x147da8 in _0x101e57['diffData'])_0x101e57['diffData'][_0x147da8]['attachChange']&&!_0x101e57['diffData'][_0x147da8]['attachChange']['isAttached']||(_0x22fa86[_0x147da8]=_0x101e57['diffData'][_0x147da8]['attributesAfter']||{});return _0x22fa86;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3d20d8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x461e91=0x0;_0x461e91<_0x3d20d8['length'];_0x461e91++){const _0x481ace=_0x3d20d8[_0x461e91];let _0x324659=!0x1;for(const _0x28cc12 of Object['keys'](_0x481ace))void 0x0===_0x481ace[_0x28cc12]?delete _0x481ace[_0x28cc12]:'id'!==_0x28cc12&&(_0x324659=!0x0);_0x324659||(_0x3d20d8[_0x461e91]=null);}if(_0x3d20d8=_0x3d20d8['filter'](_0x11833a=>null!==_0x11833a),!_0x3d20d8['length'])return;for(let _0x2e3153=0x0;_0x2e3153<_0x3d20d8['length'];_0x2e3153++){const _0x2c8aa7=_0x3d20d8[_0x2e3153];void 0x0!==_0x2c8aa7['fromVersion']&&void 0x0===_0x2c8aa7['toVersion']&&(_0x2c8aa7['toVersion']=this['repository']['getRevision'](_0x2c8aa7['id'])['toVersion']),void 0x0!==_0x2c8aa7['toVersion']&&void 0x0===_0x2c8aa7['fromVersion']&&(_0x2c8aa7['fromVersion']=this['repository']['getRevision'](_0x2c8aa7['id'])['fromVersion']);}const _0x448822=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3d20d8,_0x448822)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1c617d=>{if(_0x1c617d){for(const _0x36e556 of _0x1c617d)this['setRevisionData']({'id':_0x36e556['id'],'createdAt':_0x36e556['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x491337,_0x2c2698){let _0x5cb2c3=this['editor']['config']['get']('initialData'),_0x56f60b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5cb2c3){_0x5cb2c3={};for(const _0x49e847 of this['editor']['model']['document']['getRootNames']())_0x5cb2c3[_0x49e847]='';}if('string'==typeof _0x5cb2c3&&(_0x5cb2c3={'main':_0x5cb2c3}),void 0x0===_0x56f60b){_0x56f60b={};for(const _0x5156e2 of this['editor']['model']['document']['getRootNames']())_0x56f60b[_0x5156e2]={};}let _0xa239b=!0x1;const _0xfc82c2=Object['keys'](_0x5cb2c3),_0xfdc543=Object['keys'](_0x491337);for(const _0x45ce66 of _0xfc82c2){if(_0x5cb2c3[_0x45ce66]!==_0x491337[_0x45ce66]&&''!==_0x5cb2c3[_0x45ce66]['trim']()){_0xa239b=!0x0;break;}if(!_0x28fe1f(_0x56f60b[_0x45ce66],_0x2c2698[_0x45ce66])&&Object['keys'](_0x56f60b[_0x45ce66])['length']>0x0){_0xa239b=!0x0;break;}}_0xa239b||(_0xa239b=_0xfdc543['some'](_0x5831c2=>!this['editor']['model']['document']['getRoot'](_0x5831c2))),_0xa239b&&_0x3587c5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5cb2c3,'editorRootsAttributes':_0x56f60b,'revisionData':_0x491337,'revisionRootsAttributes':_0x2c2698}),this['editor']['config']['set']('initialData',_0x491337),this['editor']['config']['set']('rootsAttributes',_0x2c2698);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2d7c9d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2d7c9d['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2eb041){const _0xade6dc=this['repository']['getRevisions']();_0xade6dc['reverse']();let _0x477846=0x0;for(;_0x477846<_0xade6dc['length'];){const _0x557530=_0xade6dc[_0x477846];if(_0x557530===this['currentRevision']){_0x477846++;continue;}if(_0x557530['id']===this['_initialRevisionId'])break;const _0x10d22f=_0x2eb041['toVersion']-_0x557530['toVersion']||_0x2eb041['fromVersion']-_0x557530['fromVersion'];if(_0x10d22f>0x0)break;if(_0x10d22f<0x0)_0x477846++;else{if(!_0x2eb041['creator']&&_0x557530['creator'])break;if(_0x557530['creator']||!_0x2eb041['creator']){if(_0x2eb041['createdAt']>_0x557530['createdAt'])break;_0x477846++;}else _0x477846++;}}return _0x477846;}['setRevisionData'](_0x2a55af){const _0x164b79=this['repository']['getRevision'](_0x2a55af['id']);if(_0x2a55af['createdAt']&&(_0x2a55af['createdAt']=new Date(_0x2a55af['createdAt'])),_0x2a55af['authorsIds']){const _0x5c6472=this['editor']['plugins']['get']('Users');_0x2a55af['authors']=_0x2a55af['authorsIds']['map'](_0x375d53=>_0x5c6472['getUser'](_0x375d53));}_0x164b79['_update'](_0x2a55af,!0x0);}['buildRevisionData']({revision:_0x4686c7=null,from:_0x556e1a=null,to:_0xf9ed69=null}){_0x556e1a=null!==_0x556e1a?_0x556e1a:_0x4686c7['fromVersion'],_0xf9ed69=null!==_0xf9ed69?_0xf9ed69:_0x4686c7['toVersion'];const _0x4a7ddb=this['_revisionDataBuilder']['getData'](_0x556e1a,_0xf9ed69),_0x2e2ed1={'diffData':_0x4a7ddb['diffData'],'authorsIds':_0x4a7ddb['authorsIds'],'fromVersion':_0x556e1a,'toVersion':_0xf9ed69};if(!_0x4686c7||_0xf9ed69!==_0x4686c7['toVersion']){const _0x18e234=_0xf9ed69-0x1,_0x53169e=this['_source']['history']['getOperation'](_0x18e234);_0x2e2ed1['createdAt']=_0x53169e&&_0x53169e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x556e1a===this['_loadedStateData']['fromVersion']){for(const _0x39c84f of this['_loadedStateData']['authors'])_0x2e2ed1['authorsIds']['includes'](_0x39c84f['id'])||_0x2e2ed1['authorsIds']['push'](_0x39c84f['id']);}return _0x2e2ed1;}['_loadRevisionData'](_0x3e4c4e){if(!_0x3e4c4e||_0x3e4c4e['diffData'])return Promise['resolve']();{const _0x5ea24d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5ea24d,'revisionId':_0x3e4c4e['id']})['then'](_0x420683=>{_0x3e4c4e['diffData']=_0x420683['diffData'];});}}['_bufferUpdate'](_0x3ddda2,_0x1b4383,_0x4ec7d8){if(this['_bufferedUpdates']['has'](_0x3ddda2)){const _0x83465c=this['_bufferedUpdates']['get'](_0x3ddda2);_0x1b4383=_0x4ec7d8?{..._0x83465c,..._0x1b4383}:{..._0x1b4383,..._0x83465c};}this['_bufferedUpdates']['set'](_0x3ddda2,_0x1b4383);}['_getFromVersion'](_0x888a7a){const _0x32ad9=this['repository']['getRevisions']();_0x32ad9['reverse'](),_0x32ad9['shift']();const _0x36d6e7=_0x32ad9['find'](_0x326601=>_0x326601['toVersion']<=_0x888a7a)['toVersion'];return _0x36d6e7<this['_startingVersion']?this['_startingVersion']:_0x36d6e7;}['_createInitialRevision'](_0x3c4bf8){const _0x4b0b56=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4b0b56)this['_initialRevisionId']=_0x4b0b56['id'];else{const _0x18bfb9=!this['editor']['model']['document']['roots']['find'](_0x2a6079=>this['editor']['model']['hasContent'](_0x2a6079)),_0x451805=this['editor']['plugins']['get']('Users')['me']['id'],_0x477e75=R(this['editor']['locale'],_0x18bfb9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3c4bf8,'to':_0x3c4bf8,'id':this['_initialRevisionId'],'name':_0x477e75,'creatorId':_0x451805});}}['_createCurrentRevision'](_0x29b386){const _0x373c17=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x373c17),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x29b386,'to':_0x29b386,'id':_0x373c17,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1c90a4,from:_0x29ed5b,to:_0x1af18f,creatorId:_0x5c812f,id:_0x23bbe4}){const _0x44551c=this['buildRevisionData']({'from':_0x29ed5b,'to':_0x1af18f});_0x44551c['name']=_0x1c90a4,_0x44551c['creatorId']=_0x5c812f,_0x44551c['id']=_0x23bbe4;const _0x5583f9=this['addRevisionData'](_0x44551c);return this['adapter']&&this['_bufferUpdate'](_0x44551c['id'],_0x44551c,!0x0),_0x5583f9;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2ba752){return(_0x2ba752=_0x2ba752['filter'](_0x5a0e73=>!_0x5a0e73['name']||'revision-start'!==_0x5a0e73['name']&&'revision-end'!==_0x5a0e73['name']))['forEach'](_0x2489f2=>{'string'!=typeof _0x2489f2&&(_0x2489f2['children']=this['_removeRevisionMarkers'](_0x2489f2['children']),_0x2489f2['attributes']=_0x2489f2['attributes']['filter'](_0x48e025=>!_0x48e025[0x0]['startsWith']('data-revision-')));}),_0x2ba752;}}function V(_0x44f0d8,_0x2c160e){const _0x22c626=_0x2c160e['editing']['view']['document'];if('string'==typeof _0x44f0d8)return new _0x4d49ab(_0x22c626,_0x44f0d8);{const _0x4a7de3=_0x44f0d8['children']['map'](_0x4406b6=>V(_0x4406b6,_0x2c160e));return new(C[_0x44f0d8['type']]||_0x2e39e1)(_0x22c626,_0x44f0d8['name'],_0x44f0d8['attributes'],_0x4a7de3);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3d9e71){this['editor']=_0x3d9e71,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'](_0x1e287f){this['source']=_0x1e287f;const _0x48d5ff=new Map(),_0x16a110=new Map(),_0x2f32f=this['editor']['model']['document']['roots']['map'](_0x22153d=>_0x22153d['rootName']);for(const _0x5b4212 of _0x2f32f){const _0x1b552d=this['editor']['model']['document']['getRoot'](_0x5b4212),_0xb354ef=F(_0x1b552d);_0x48d5ff['set'](_0x5b4212,_0xb354ef),_0x16a110['set'](_0x5b4212,Object['fromEntries'](_0x1b552d['getAttributes']()));}const _0x59675e=Array['from'](this['editor']['model']['markers'])['map'](_0x48ced2=>[_0x48ced2['name'],_0x48ced2['getRange']()]),_0x4c9647=this['source']['version'];this['_saveMetaData'](_0x4c9647,_0x48d5ff,_0x59675e,_0x16a110),this['_startingRevisionId']=this['_revisionId'];const _0x99ac20=new Map(),_0x5cb1c=new Map();for(const _0xc0d7b9 of _0x2f32f){const _0x8170=B(_0xc0d7b9);_0x99ac20['set'](_0xc0d7b9,_0x8170),_0x5cb1c['set'](_0xc0d7b9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x99ac20,[],_0x5cb1c);}['getData'](_0x51e39c,_0xf566b5){if(this['_lastFrom']===_0x51e39c&&this['_lastTo']<=_0xf566b5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xf566b5,!0x0);else{if(!this['_savedMetaData']['has'](_0x51e39c)){const _0x40a0f=this['_getPreviousFrom'](_0x51e39c);this['_calculateMetaData'](_0x40a0f,_0x51e39c,!0x1);}this['_calculateMetaData'](_0x51e39c,_0xf566b5,!0x0);}return this['_lastFrom']=_0x51e39c,this['_lastTo']=_0xf566b5,this['_getState']();}['loadState'](_0x5dc75e){this['_reset'](),this['_lastFrom']=_0x5dc75e['fromVersion'],this['_lastTo']=_0x5dc75e['toVersion'];for(const _0xccdb3c in _0x5dc75e['diffData']){const _0x13f3b0=_0x5dc75e['diffData'][_0xccdb3c]['attachChange'],_0x44243c=_0x4a7b13(_0x5dc75e['diffData'][_0xccdb3c]['attributesBefore'])||{},_0x22a2a4=this['_makeModelFromViewString'](_0x5dc75e['diffData'][_0xccdb3c]['deletions']);_0x22a2a4['rootName']=_0xccdb3c,_0x22a2a4['_isAttached']=!_0x13f3b0||!_0x13f3b0['isAttached'],_0x22a2a4['isAttached']=()=>_0x22a2a4['_isAttached'],this['_baseRoots']['set'](_0xccdb3c,_0x22a2a4),this['_baseRootsAttributes']['set'](_0xccdb3c,_0x44243c),_0x13f3b0&&this['_touchedRoots']['set'](_0xccdb3c,_0x13f3b0);const _0x5d42cc=this['_makeIdsRoot'](_0x22a2a4);this['_baseIdsRoots']['set'](_0xccdb3c,_0x5d42cc);for(const [_0x6ef1b6,_0x4927b6]of _0x22a2a4['markers']){if(!_0x6ef1b6['startsWith']('revision:'))continue;const _0x50da4f=_0x6ef1b6['split'](':')[0x2];for(const _0x5427f0 of _0x4927b6['getWalker']({'singleCharacters':!0x0})){const _0x466780=this['_getVidAttributeName'](_0x5427f0),_0x371b18='elementEnd'==_0x5427f0['type']?_0x5427f0['previousPosition']['path']['slice'](0x0,-0x1):_0x5427f0['previousPosition']['path'],_0x51c61b=_0x5d42cc['getNodeByPath'](_0x371b18)['getAttribute'](_0x466780);this['_touched']['set'](_0x51c61b,{'userId':_0x50da4f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1ece9b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x258e4f=>!this['_touched']['has'](_0x258e4f));let _0x1a2afb=0x0;const _0x4aad38=new Map();for(const _0x52641c in _0x5dc75e['diffData']){const _0x3ab0fd=_0x5dc75e['diffData'][_0x52641c]['attachChange'],_0x5668a5=_0x4a7b13(_0x5dc75e['diffData'][_0x52641c]['attributesAfter'])||{},_0x135c43=this['_makeModelFromViewString'](_0x5dc75e['diffData'][_0x52641c]['insertions']);_0x135c43['rootName']=_0x52641c,_0x135c43['_isAttached']=!_0x3ab0fd||_0x3ab0fd['isAttached'],_0x135c43['isAttached']=()=>_0x135c43['_isAttached'],this['_diffRoots']['set'](_0x52641c,_0x135c43),this['_diffRootsAttributes']['set'](_0x52641c,_0x5668a5);const _0xba8d54=this['_makeIdsRoot'](_0x135c43,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x52641c,_0xba8d54),_0x4aad38['set'](_0x52641c,_0x135c43['isAttached']()?_0x5668a5:{});for(const [_0x579b66,_0x354b95]of _0x135c43['markers']){if(!_0x579b66['startsWith']('revision:'))continue;const _0x27bde2=_0x579b66['split'](':')[0x2];for(const _0xf7df2a of _0x354b95['getWalker']({'singleCharacters':!0x0})){const _0x238a0=this['_getVidAttributeName'](_0xf7df2a),_0x10c7c6=this['_revisionId']++,_0x35336f='elementEnd'==_0xf7df2a['type']?_0xf7df2a['previousPosition']['path']['slice'](0x0,-0x1):_0xf7df2a['previousPosition']['path'];_0xba8d54['getNodeByPath'](_0x35336f)['_setAttribute'](_0x238a0,_0x10c7c6),this['_touched']['set'](_0x10c7c6,{'userId':_0x27bde2});}}for(const _0x3cddb1 of this['editor']['model']['createRangeIn'](_0x135c43)['getWalker']({'singleCharacters':!0x0})){const _0x5851c5=this['_getVidAttributeName'](_0x3cddb1),_0x49c7ac='elementEnd'==_0x3cddb1['type']?_0x3cddb1['previousPosition']['path']['slice'](0x0,-0x1):_0x3cddb1['previousPosition']['path'],_0x9c4e3a=_0xba8d54['getNodeByPath'](_0x49c7ac);_0x9c4e3a['getAttribute'](_0x5851c5)>0x0||_0x9c4e3a['_setAttribute'](_0x5851c5,_0x1ece9b[_0x1a2afb++]);}for(const [_0x21f9c1,_0x11ff43]of _0x135c43['markers'])_0x21f9c1['startsWith']('revision:')||this['_markers']['set'](_0x21f9c1,_0x11ff43);}const _0x3d4d48=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3d4d48),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3d4d48,0x1));const _0x4fc858=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4fc858),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4fc858,0x1));const _0x4b5ecf=Array['from'](this['_diffRoots'])['map'](([_0x321371,_0x155e0b])=>[_0x321371,F(_0x155e0b)]);this['_saveMetaData'](this['_lastTo'],_0x4b5ecf,this['_markers'],_0x4aad38);}['_makeModelFromViewString'](_0x32a9dc){const _0x408fb7=JSON['parse'](_0x32a9dc),_0x25e9f6=this['editor']['editing']['view']['document'],_0x3b7ea6=new _0x3de66c(_0x25e9f6,_0x408fb7['map'](_0x354e7d=>V(_0x354e7d,this['editor'])));return this['editor']['data']['toModel'](_0x3b7ea6);}['_saveMetaData'](_0xf38313,_0xc831e6,_0x123ee3,_0x15c0d2){const _0x1d3b29=new Map(_0xc831e6),_0x5d9161=new Map(_0x4a7b13(_0x15c0d2)),_0x94cc39=new Map();for(const [_0x559bc0,_0x5b8152]of _0x123ee3)_0x94cc39['set'](_0x559bc0,{'start':_0x5b8152['start']['clone'](),'end':_0x5b8152['end']['clone'](),'rootName':_0x5b8152['root']['rootName']});this['_savedMetaData']['set'](_0xf38313,{'roots':_0x1d3b29,'markers':_0x94cc39,'rootsAttributes':_0x5d9161});}['_removeMetaData'](_0x2ddfcf){this['_savedMetaData']['delete'](_0x2ddfcf);}['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'](_0x513b1a,_0x1c4aea=null){let _0xa249e=null;_0x513b1a['is']('documentFragment')||(_0xa249e=new ft(_0x513b1a['name'],{'vid_start':null===_0x1c4aea?this['_revisionId']++:_0x1c4aea++}));const _0x4e0127=[];for(const _0x575625 of _0x513b1a['getChildren']())if(_0x575625['is']('element')){_0x4e0127['push'](this['_makeIdsRoot'](_0x575625,_0x1c4aea));const _0x1264cf=_0x4e0127[_0x4e0127['length']-0x1];null!==_0x1c4aea&&(_0x1c4aea=_0x1264cf['is']('element','$text')?_0x1264cf['getAttribute']('vid')+0x1:_0x1264cf['getAttribute']('vid_end')+0x1);}else{for(let _0x436886=0x0;_0x436886<_0x575625['offsetSize'];_0x436886++)_0x4e0127['push'](new ft('$text',{'vid':null===_0x1c4aea?this['_revisionId']++:_0x1c4aea++}));}if(_0x513b1a['is']('documentFragment')){const _0x41a2f3=B(_0x513b1a['rootName']);return _0x41a2f3['_insertChild'](0x0,_0x4e0127),_0x41a2f3;}return _0xa249e['_setAttribute']('vid_end',null===_0x1c4aea?this['_revisionId']++:_0x1c4aea++),_0xa249e['_insertChild'](0x0,_0x4e0127),_0xa249e;}['_calculateMetaData'](_0x2666bd,_0x1773aa,_0x1f46dd){this['_reset']();const {roots:_0x1ca949,markers:_0x4f7a7a,rootsAttributes:_0x21a159}=this['_savedMetaData']['get'](_0x2666bd);this['_baseRoots']=new Map(_0x1ca949),this['_baseRootsAttributes']=new Map(_0x4a7b13(_0x21a159));for(const [_0x23bdee,_0x4e2d3c]of this['_baseRoots'])if('$graveyard'!==_0x23bdee&&(this['_diffRoots']['set'](_0x23bdee,F(_0x4e2d3c)),this['_diffRootsAttributes']=new Map(_0x4a7b13(_0x21a159)),_0x1f46dd)){const _0x2ae723=this['_revisionId'];this['_idsRoots']['set'](_0x23bdee,this['_makeIdsRoot'](_0x4e2d3c)),this['_baseIdsRoots']['set'](_0x23bdee,this['_makeIdsRoot'](_0x4e2d3c,_0x2ae723));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1f46dd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2d3464,_0x4d3298]of _0x4f7a7a){const _0x1f87cc=this['_baseRoots']['get'](_0x4d3298['rootName']),_0x1760be=this['_diffRoots']['get'](_0x4d3298['rootName']),_0x1ee85a=new vt(this['_fixPosition'](_0x4d3298['start'],_0x1f87cc),this['_fixPosition'](_0x4d3298['end'],_0x1f87cc)),_0x26fe79=this['_fixRange'](_0x1ee85a,_0x1760be);_0x1f87cc['markers']['set'](_0x2d3464,_0x1ee85a),this['_markers']['set'](_0x2d3464,_0x26fe79);}this['_applyOperations'](_0x2666bd,_0x1773aa,_0x1f46dd);}['_applyOperations'](_0xe7de83,_0x34d405,_0x143f81){for(const _0x460e63 of this['source']['getOperations'](_0xe7de83,_0x34d405))this['_handleOperation'](_0x460e63,_0x143f81);for(const _0x29ca7f of this['_diffRoots']['values']())_0x29ca7f['markers']['clear']();for(const [_0x25a6b4,_0x4a3f6b]of this['_markers']){this['_diffRoots']['get'](_0x4a3f6b['root']['rootName'])['markers']['set'](_0x25a6b4,_0x4a3f6b['clone']());}const _0x259a05=new Map(),_0x261b1d=new Map();for(const [_0x4e6f32,_0x13a5c8]of this['_diffRoots'])_0x259a05['set'](_0x4e6f32,F(_0x13a5c8)),_0x261b1d['set'](_0x4e6f32,this['_diffRootsAttributes']['get'](_0x4e6f32));this['_saveMetaData'](_0x34d405,_0x259a05,this['_markers'],_0x261b1d);}['_getPreviousFrom'](_0x405d05){const _0x40f748=Array['from'](this['_savedMetaData']['keys']());_0x40f748['sort']((_0x5321cb,_0x1c59c3)=>_0x5321cb-_0x1c59c3),_0x40f748['reverse']();for(const _0x70c840 of _0x40f748)if(_0x70c840<_0x405d05)return _0x70c840;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1da446,_0x57acd0){const _0x231556=Array['from'](_0x57acd0['markers'])['map'](([_0x52b959,_0x5b41c6])=>[_0x52b959,this['_fixRange'](_0x5b41c6,_0x1da446)]);_0x1da446['markers']=new Map(_0x231556);}['_transformMarkers'](_0x453bec){for(const _0x3b5728 of this['_markers']['values']()){const _0xca28c0=_0x3b5728['getTransformedByOperation'](_0x453bec),_0x3513a6=vt['_createFromRanges'](_0xca28c0);_0x3b5728['start']=_0x3513a6['start'],_0x3b5728['end']=_0x3513a6['end'];}}['_handleOperation'](_0x41f8fc,_0xf531bd){if('addRoot'!=_0x41f8fc['type']&&'detachRoot'!=_0x41f8fc['type']){if('insert'==_0x41f8fc['type']){const _0x16f410=_0x41f8fc['position']['root']['rootName'];this['_diffRoots']['has'](_0x16f410)||(this['_diffRoots']['set'](_0x16f410,B(_0x16f410,!0x0)),this['_diffRootsAttributes']['set'](_0x16f410,{}),_0xf531bd&&this['_idsRoots']['set'](_0x16f410,B(_0x16f410,!0x0)));}else{if('addRootAttribute'==_0x41f8fc['type']||'removeRootAttribute'==_0x41f8fc['type']||'changeRootAttribute'==_0x41f8fc['type'])return void this['_handleRootAttributeOperation'](_0x41f8fc);'marker'==_0x41f8fc['type']&&this['_handleMarkerOperation'](_0x41f8fc);}if('marker'!==_0x41f8fc['type']){const _0x372f2d=this['_cloneOperation'](_0x41f8fc,this['_diffRoots']);_0x372f2d['_execute'](),this['_transformMarkers'](_0x372f2d);}if(_0xf531bd)switch(_0x41f8fc['type']){case'insert':this['_handleInsertOperation'](_0x41f8fc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x41f8fc);break;case'merge':this['_handleMergeOperation'](_0x41f8fc);break;case'split':this['_handleSplitOperation'](_0x41f8fc);}}else this['_handleRootOperation'](_0x41f8fc,_0xf531bd);}['_cloneOperation'](_0x40693f,_0x5c2f52){const _0x2f9493=_0x40693f['clone']();return _0x2f9493['_authorId']=_0x40693f['_authorId'],this['_fixOperation'](_0x2f9493,_0x5c2f52),_0x2f9493;}['_getBaseVids'](_0x3c6681){return _0x3c6681['map'](_0x59a677=>{const _0x3bfb1a=this['_getVidAttributeName'](_0x59a677);return Number(_0x59a677['item']['getAttribute'](_0x3bfb1a));});}['_generateTape'](_0xef58c5,_0x57b0e2){if(_0xef58c5['is']('element','$text'))_0x57b0e2['push']({'item':_0xef58c5,'type':'text'});else{_0xef58c5['is']('element')&&_0x57b0e2['push']({'item':_0xef58c5,'type':'elementStart'});for(const _0x26e0db of _0xef58c5['getChildren']())this['_generateTape'](_0x26e0db,_0x57b0e2);_0xef58c5['is']('element')&&_0x57b0e2['push']({'item':_0xef58c5,'type':'elementEnd'});}return _0x57b0e2;}['_getState'](){const _0xc7e77f=new Map(this['_touched']),_0x4c8d1b=new Map(_0xc7e77f),_0x463ef2=new Map(),_0x13b577={'insertions':{},'deletions':{}},_0x235f40={'insertions':{},'deletions':{}},_0x2dae9e=new Map(),_0x280f47=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x280f47['delete']('$graveyard');for(const _0x4b60f2 of _0x280f47){const _0x538690=this['_diffRoots']['get'](_0x4b60f2)||B(_0x4b60f2,!0x1),_0x5cc1a5=this['_baseRoots']['get'](_0x4b60f2)||B(_0x4b60f2,!0x1);_0x538690['isAttached']()||_0x5cc1a5['isAttached']()?(_0x13b577['insertions'][_0x4b60f2]=F(_0x538690),_0x13b577['deletions'][_0x4b60f2]=F(_0x5cc1a5),this['_copyMarkers'](_0x13b577['deletions'][_0x4b60f2],_0x5cc1a5),this['_copyMarkers'](_0x13b577['insertions'][_0x4b60f2],_0x538690),_0x235f40['insertions'][_0x4b60f2]=this['_generateTape'](this['_idsRoots']['get'](_0x4b60f2),[]),_0x235f40['deletions'][_0x4b60f2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4b60f2)||B(_0x4b60f2,!0x1),[])):_0x280f47['delete'](_0x4b60f2);}for(const _0xb9c046 of _0x280f47){const _0x3cb9b2=_0x235f40['insertions'][_0xb9c046];for(const _0x4298e8 of _0x3cb9b2){const _0x11f040=this['_getVidAttributeName'](_0x4298e8),_0x553dd7=_0x4298e8['item']['getAttribute'](_0x11f040);_0x4c8d1b['delete'](_0x553dd7),_0x553dd7>=this['_startingRevisionId']&&_0x463ef2['set'](_0x553dd7,_0xc7e77f['get'](_0x553dd7));}}for(const _0x18192b of _0x280f47){const _0x29fb54=_0x235f40['insertions'][_0x18192b],_0x4bf1a2=this['_getBaseVids'](_0x235f40['deletions'][_0x18192b]);let _0x5a3841=0x0;for(const _0x1acb70 of _0x29fb54){const _0x130bfa=this['_getVidAttributeName'](_0x1acb70),_0x105b20=_0x1acb70['item']['getAttribute'](_0x130bfa);if(!_0x463ef2['has'](_0x105b20)&&!_0x2dae9e['has'](_0x105b20)){if(_0x4c8d1b['has'](_0x105b20))_0x5a3841++;else{if(_0x105b20!=_0x4bf1a2[_0x5a3841]){const _0x5e977a=_0xc7e77f['get'](_0x105b20)||_0xc7e77f['get'](_0x4bf1a2[_0x5a3841]);for(;_0x105b20!=_0x4bf1a2[_0x5a3841];)_0x4c8d1b['has'](_0x4bf1a2[_0x5a3841])||(_0x2dae9e['set'](_0x4bf1a2[_0x5a3841],_0x5e977a),_0xc7e77f['set'](_0x4bf1a2[_0x5a3841],_0x5e977a)),_0x5a3841++;}_0x5a3841++;}}}}for(const _0x105a22 of _0x280f47){const _0x8b0069=_0x235f40['insertions'][_0x105a22];for(const _0x24418d of _0x8b0069){const _0x31b89f=this['_getVidAttributeName'](_0x24418d),_0x35f6e1=_0x24418d['item']['getAttribute'](_0x31b89f);if(_0x2dae9e['has'](_0x35f6e1)){const _0x5cd458=_0x2dae9e['get'](_0x35f6e1);_0x4c8d1b['has'](_0x35f6e1)||_0x4c8d1b['set'](_0x35f6e1,{..._0x5cd458}),_0x463ef2['set'](_0x35f6e1,{..._0x5cd458});}}}for(const _0x2129c2 of _0x4c8d1b['keys']())_0x2129c2>=this['_startingRevisionId']&&_0x4c8d1b['delete'](_0x2129c2);const _0x5f11a9=new Map();for(const _0x7bca97 of _0x280f47){let _0x1382e2=_0x235f40['insertions'][_0x7bca97];for(const _0x20553f of _0x1382e2)if(_0x20553f['item']['is']('element','tableCell')){const _0x462df1=this['_getVidAttributeName'](_0x20553f),_0x11b635=_0x20553f['item']['getAttribute'](_0x462df1);if(_0x463ef2['has'](_0x11b635)){const _0x11f281=_0x20553f['item']['parent']['parent']['getAttribute']('vid_start'),_0x46c308=_0x5f11a9['get'](_0x11f281)||new Set();_0x46c308['add'](_0x463ef2['get'](_0x11b635)['userId']),_0x5f11a9['set'](_0x11f281,_0x46c308);}}_0x1382e2=_0x235f40['deletions'][_0x7bca97];for(const _0x1d3e4a of _0x1382e2)if(_0x1d3e4a['item']['is']('element','tableCell')){const _0x5d8d2e=this['_getVidAttributeName'](_0x1d3e4a),_0x45ac9b=_0x1d3e4a['item']['getAttribute'](_0x5d8d2e);if(_0x4c8d1b['has'](_0x45ac9b)){const _0x5cafb0=_0x1d3e4a['item']['parent']['parent']['getAttribute']('vid_start'),_0x1ab649=_0x5f11a9['get'](_0x5cafb0)||new Set();_0x1ab649['add'](_0x4c8d1b['get'](_0x45ac9b)['userId']),_0x5f11a9['set'](_0x5cafb0,_0x1ab649);}}for(const _0x268ee9 of _0x5f11a9['keys']())(_0x463ef2['has'](_0x268ee9)||_0x4c8d1b['has'](_0x268ee9))&&_0x5f11a9['delete'](_0x268ee9);}for(const _0x37066b of _0x280f47){const _0x2ade03=_0x235f40['insertions'][_0x37066b];let _0x5b4b7b=null,_0xcf8bc0=null;for(const _0x1ba828 of _0x2ade03){const _0x35e059=this['_getVidAttributeName'](_0x1ba828),_0x38ed20=_0x1ba828['item']['getAttribute'](_0x35e059),_0x11c1b0=_0x5f11a9['get'](_0x38ed20);_0x11c1b0&&'elementStart'==_0x1ba828['type']&&(_0x5b4b7b=Array['from'](_0x11c1b0)[0x0],_0xcf8bc0=_0x1ba828['item']['getAttribute']('vid_end')),_0x5b4b7b&&(_0x4c8d1b['set'](_0x38ed20,{'userId':_0x5b4b7b}),_0x463ef2['set'](_0x38ed20,{'userId':_0x5b4b7b})),_0x38ed20==_0xcf8bc0&&(_0x5b4b7b=null,_0xcf8bc0=null);}}const _0x46ebd8={},_0x1f4213=new Set();for(const _0x5814aa of _0x280f47){const _0x4ad811=_0x13b577['deletions'][_0x5814aa],_0x3e171a=_0x13b577['insertions'][_0x5814aa];for(const {userId:_0x1712d8}of this['_touchedMarkers']['values']())null!==_0x1712d8&&_0x1f4213['add'](_0x1712d8);for(const {userId:_0x482075}of this['_touchedRoots']['values']())null!==_0x482075&&_0x1f4213['add'](_0x482075);this['_markChanges'](_0x3e171a,_0x235f40['insertions'][_0x5814aa],_0x463ef2,'insertion',_0x1f4213),this['_markChanges'](_0x4ad811,_0x235f40['deletions'][_0x5814aa],_0x4c8d1b,'deletion',_0x1f4213),_0x46ebd8[_0x5814aa]={'insertions':this['_prepareViewToSave'](_0x3e171a),'deletions':this['_prepareViewToSave'](_0x4ad811),'attachChange':this['_touchedRoots']['get'](_0x5814aa)||null,'attributesBefore':_0x4a7b13(this['_baseRootsAttributes']['get'](_0x5814aa))||{},'attributesAfter':_0x4a7b13(this['_diffRootsAttributes']['get'](_0x5814aa))};}return{'diffData':_0x46ebd8,'authorsIds':Array['from'](_0x1f4213)};}['_processRootBeforeSave'](_0x5b3bcb){for(const [,_0x1bbc68]of _0x5b3bcb['markers']){const _0x40fec0=_0x1bbc68['start']['getAncestors']()['filter'](_0x47c548=>'tableCell'==_0x47c548['name']);for(const _0x409894 of _0x40fec0)0x1==_0x409894['childCount']&&_0x409894['getChild'](0x0)['is']('element','paragraph')&&_0x409894['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x573ee6){this['_processRootBeforeSave'](_0x573ee6);const _0x1aec81=this['editor']['data']['toView'](_0x573ee6,{}),_0x5eb50c=Array['from'](_0x1aec81['getChildren']())['map'](_0x2d5bff=>this['_getViewJson'](_0x2d5bff));return JSON['stringify'](_0x5eb50c);}['_getViewJson'](_0x33e3b3){if(_0x33e3b3['is']('$text'))return _0x33e3b3['data'];{const _0x51c86a=_0x33e3b3;return{'type':Object['keys'](C)['find'](_0x1725b3=>_0x33e3b3 instanceof C[_0x1725b3]),'name':_0x51c86a['name'],'attributes':Array['from'](_0x51c86a['getAttributes']()),'children':Array['from'](_0x51c86a['getChildren']())['map'](_0x35e55f=>this['_getViewJson'](_0x35e55f))};}}['_markChanges'](_0x10ffca,_0x434b43,_0x57a4aa,_0x767468,_0x6fecc6){let _0x441ecc=null,_0x9af728=null,_0x4c3305=0x0;const _0x556693=this['editor']['model'];for(let _0x195f54=0x0;_0x195f54<_0x434b43['length'];_0x195f54++){const _0x3d9828=this['_getVidAttributeName'](_0x434b43[_0x195f54]),_0x34f215=_0x434b43[_0x195f54]['item']['getAttribute'](_0x3d9828),_0x1dc040=_0x57a4aa['get'](_0x34f215),_0x47ae24=_0x195f54==_0x434b43['length']-0x1;(!_0x441ecc&&_0x1dc040&&(_0x441ecc=_0x1dc040,_0x9af728=_0x434b43[_0x195f54]),_0x441ecc&&(!_0x1dc040||_0x1dc040['userId']!=_0x441ecc['userId']))&&(_0x2ca055(_0x1dc040,J(_0x9af728,_0x10ffca,_0x556693),J(_0x434b43[_0x195f54],_0x10ffca,_0x556693)),_0x441ecc=_0x1dc040||null,_0x9af728=_0x1dc040?_0x434b43[_0x195f54]:null),_0x441ecc&&_0x47ae24&&_0x2ca055(_0x1dc040,J(_0x9af728,_0x10ffca,_0x556693),q(_0x434b43[_0x195f54],_0x10ffca,_0x556693));}function _0x2ca055(_0xa1427e,_0xfda9e8,_0x36dd77){const _0x4ff809=_0x441ecc['userId'],_0x3aec5c='revision:'+_0x767468+':'+_0x4ff809+':'+_0x4c3305++,_0x561919=_0x556693['createRange'](_0xfda9e8,_0x36dd77);_0x10ffca['markers']['set'](_0x3aec5c,_0x561919),null!==_0x4ff809&&_0x6fecc6['add'](_0x4ff809);}}['_getVidAttributeName'](_0x5d5c60){switch(_0x5d5c60['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4308bc,_0x201b5a){_0x4308bc['baseVersion']=null;for(const _0x403e52 in _0x4308bc){const _0x5320d0=_0x4308bc[_0x403e52];if(_0x5320d0 instanceof gt){const _0x2ae97a=_0x201b5a['get'](_0x5320d0['root']['rootName']);_0x4308bc[_0x403e52]=this['_fixPosition'](_0x5320d0,_0x2ae97a);}if(_0x5320d0 instanceof vt){const _0x475b05=_0x201b5a['get'](_0x5320d0['root']['rootName']);_0x4308bc[_0x403e52]=this['_fixRange'](_0x5320d0,_0x475b05);}'root'===_0x403e52&&(_0x4308bc['root']=_0x201b5a['get'](_0x4308bc['root']['rootName']));}}['_fixRange'](_0x142585,_0x2bb6f8){return this['editor']['model']['createRange'](this['_fixPosition'](_0x142585['start'],_0x2bb6f8),this['_fixPosition'](_0x142585['end'],_0x2bb6f8));}['_fixPosition'](_0x39a2e7,_0x36fc1b){return this['editor']['model']['createPositionFromPath'](_0x36fc1b,_0x39a2e7['path'],_0x39a2e7['stickiness']);}['_handleInsertOperation'](_0x2e6dbe){const _0x2b2656=this['_idsRoots']['get'](_0x2e6dbe['position']['root']['rootName']),_0xcfe063=this['_fixPosition'](_0x2e6dbe['position'],_0x2b2656),_0x16f1f1=null===_0x2e6dbe['_authorId']?null:_0x2e6dbe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x161484=_0xcfe063['parent'],_0x37720c=this['_revisionId'],_0x5ec9d9=[];for(const _0x373018 of _0x2e6dbe['nodes'])if(_0x373018['is']('element'))_0x5ec9d9['push'](this['_makeIdsRoot'](_0x373018));else{for(let _0x4a3303=0x0;_0x4a3303<_0x373018['offsetSize'];_0x4a3303++)_0x5ec9d9['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x21f084=this['_revisionId'];for(let _0x778d3a=_0x37720c;_0x778d3a<_0x21f084;_0x778d3a++)this['_touched']['set'](_0x778d3a,{'userId':_0x16f1f1});_0x161484['_insertChild'](_0xcfe063['offset'],_0x5ec9d9);}['_handleMoveOperation'](_0x5c90a5){(_0x5c90a5=this['_cloneOperation'](_0x5c90a5,this['_idsRoots']))['_execute']();const _0x54c9c1=null===_0x5c90a5['_authorId']?null:_0x5c90a5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f5c90=_0x5c90a5['getMovedRangeStart'](),_0x45487f=_0x3f5c90['parent'],_0x56a3c6=_0x3f5c90['offset'];!function _0x1f8f83(_0x210d71,_0x38fdcf,_0x354eeb,_0x3cceae){for(let _0x3d19a2=_0x354eeb;_0x3d19a2<_0x3cceae;_0x3d19a2++){const _0xc78d08=_0x38fdcf['getChild'](_0x3d19a2);_0xc78d08['is']('element','$text')?_0x210d71['set'](_0xc78d08['getAttribute']('vid'),{'userId':_0x54c9c1}):(_0x210d71['set'](_0xc78d08['getAttribute']('vid_start'),{'userId':_0x54c9c1}),_0x1f8f83(_0x210d71,_0xc78d08,0x0,_0xc78d08['childCount']),_0x210d71['set'](_0xc78d08['getAttribute']('vid_end'),{'userId':_0x54c9c1}));}}(this['_touched'],_0x45487f,_0x56a3c6,_0x56a3c6+_0x5c90a5['howMany']);}['_handleMergeOperation'](_0x8f7255){const _0x35c785=null===(_0x8f7255=this['_cloneOperation'](_0x8f7255,this['_idsRoots']))['_authorId']?null:_0x8f7255['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x419663=_0x8f7255['targetPosition']['parent'],_0x4e7303=_0x8f7255['sourcePosition']['parent'],_0x242ff9=_0x419663['getAttribute']('vid_end'),_0x123a8d=_0x4e7303['getAttribute']('vid_start');_0x419663['_setAttribute']('vid_end',_0x4e7303['getAttribute']('vid_end')),_0x4e7303['_setAttribute']('vid_end',_0x242ff9),this['_touched']['set'](_0x123a8d,{'userId':_0x35c785}),this['_touched']['set'](_0x242ff9,{'userId':_0x35c785}),_0x8f7255['_execute']();}['_handleSplitOperation'](_0x216056){const _0x1290e6=null===(_0x216056=this['_cloneOperation'](_0x216056,this['_idsRoots']))['_authorId']?null:_0x216056['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d0572=_0x216056['graveyardPosition'],_0x169f22=_0x216056['splitPosition']['parent'];_0x216056['_execute']();const _0x3e9bc3=_0x169f22['getAttribute']('vid_end'),_0x4ca4a9=_0x216056['insertionPosition']['nodeAfter'];if(_0x3d0572){const _0x204f82=_0x4ca4a9['getAttribute']('vid_end'),_0x196107=_0x169f22['getAttribute']('vid_end');_0x169f22['_setAttribute']('vid_end',_0x204f82),_0x4ca4a9['_setAttribute']('vid_end',_0x196107),this['_touched']['set'](_0x169f22['getAttribute']('vid_end'),{'userId':_0x1290e6}),this['_touched']['set'](_0x4ca4a9['getAttribute']('vid_start'),{'userId':_0x1290e6});}else{const _0x50fcda=this['_revisionId']++,_0xa86727=this['_revisionId']++;_0x169f22['_setAttribute']('vid_end',_0x50fcda),_0x4ca4a9['_setAttribute']('vid_start',_0xa86727),_0x4ca4a9['_setAttribute']('vid_end',_0x3e9bc3),this['_touched']['set'](_0x50fcda,{'userId':_0x1290e6}),this['_touched']['set'](_0xa86727,{'userId':_0x1290e6});}}['_handleMarkerOperation'](_0x5b40af){if(!_0x5b40af['affectsData'])return;const _0x5c63ea=(_0x5b40af=this['_cloneOperation'](_0x5b40af,this['_diffRoots']))['oldRange']?_0x5b40af['oldRange']['root']:null,_0x5c37b0=_0x5b40af['newRange']?_0x5b40af['newRange']['root']:null;_0x5c63ea&&this['_markers']['delete'](_0x5b40af['name']),_0x5c37b0&&this['_markers']['set'](_0x5b40af['name'],_0x5b40af['newRange']['clone']());const _0x2252a1=null===_0x5b40af['_authorId']?null:_0x5b40af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40fe55=_0x5b40af['name'];if(!this['_touchedMarkers']['has'](_0x40fe55))return void this['_touchedMarkers']['set'](_0x40fe55,{'range':_0x5b40af['oldRange'],'userId':_0x2252a1});const _0x388f47=this['_touchedMarkers']['get'](_0x40fe55),_0x2a895c=_0x388f47['range'],_0x37d8f5=_0x5b40af['newRange'];null==_0x2a895c&&null==_0x37d8f5||_0x2a895c&&_0x37d8f5&&_0x2a895c['isEqual'](_0x37d8f5)?this['_touchedMarkers']['delete'](_0x5b40af['name']):_0x388f47['userId']=_0x2252a1;}['_handleRootOperation'](_0x2b2dec,_0x3506a8){this['_diffRoots']['has'](_0x2b2dec['rootName'])?this['_diffRoots']['get'](_0x2b2dec['rootName'])['_isAttached']=_0x2b2dec['isAdd']:(this['_diffRoots']['set'](_0x2b2dec['rootName'],B(_0x2b2dec['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2b2dec['rootName'],{}),_0x3506a8&&this['_idsRoots']['set'](_0x2b2dec['rootName'],B(_0x2b2dec['rootName'],!0x0)));const _0x3d368f=null===_0x2b2dec['_authorId']?null:_0x2b2dec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x286ac1=this['_touchedRoots']['get'](_0x2b2dec['rootName']);_0x286ac1&&_0x286ac1['userId']===_0x3d368f?this['_touchedRoots']['delete'](_0x2b2dec['rootName']):this['_touchedRoots']['set'](_0x2b2dec['rootName'],{'userId':_0x3d368f,'isAttached':_0x2b2dec['isAdd']});}['_handleRootAttributeOperation'](_0x20a48a){const _0x4f233a=this['_diffRootsAttributes']['get'](_0x20a48a['root']['rootName']);null===_0x20a48a['newValue']?delete _0x4f233a[_0x20a48a['key']]:_0x4f233a[_0x20a48a['key']]=_0x20a48a['newValue'];}}function F(_0x46252e){const _0x2f8548=B(_0x46252e['rootName'],_0x46252e['isAttached']());for(const _0x56da5b of _0x46252e['getChildren']()){const _0x22d27e=_0x56da5b['_clone'](!0x0);_0x2f8548['_appendChild'](_0x22d27e);}return _0x2f8548;}function B(_0x3caab6,_0x419b36=!0x0){const _0x9b3fa1=new wt();return _0x9b3fa1['rootName']=_0x3caab6,_0x9b3fa1['_isAttached']=_0x419b36,_0x9b3fa1['isAttached']=()=>_0x9b3fa1['_isAttached'],_0x9b3fa1;}function J(_0x42de24,_0x4deb1d,_0x7b1c5f){const _0xeb509='elementEnd'==_0x42de24['type']?_0x7b1c5f['createPositionAt'](_0x42de24['item'],'end'):_0x7b1c5f['createPositionBefore'](_0x42de24['item']);return _0x7b1c5f['createPositionFromPath'](_0x4deb1d,_0xeb509['path'],_0xeb509['stickiness']);}function q(_0x24bb90,_0x59898d,_0x4f727a){const _0x2f835d='elementStart'==_0x24bb90['type']?_0x4f727a['createPositionAt'](_0x24bb90['item'],0x0):_0x4f727a['createPositionAfter'](_0x24bb90['item']);return _0x4f727a['createPositionFromPath'](_0x59898d,_0x2f835d['path'],_0x2f835d['stickiness']);}class hs extends _0x368c30{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x217d0f,_0x5a1596){super(_0x217d0f),this['focusTracker']=new _0x2550c6(),this['keystrokes']=new _0x26fbbd(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5a1596),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'](),_0x5f3966({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4bf9a5=_0x53ba7a=>_0x53ba7a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4bf9a5),this['keystrokes']['set']('arrowleft',_0x4bf9a5),this['keystrokes']['set']('arrowup',_0x4bf9a5),this['keystrokes']['set']('arrowdown',_0x4bf9a5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3dbc8d){this['revisionNameInputView']['fieldView']['element']['value']=_0x3dbc8d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3a4b0e){const _0x37f329=new at(this['locale'],_0x5dff9e),_0x2ebcb4=_0x37f329['fieldView'];_0x2ebcb4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x29d124=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3a4b0e&&(_0x29d124+='\x20('+R(this['locale'],'optional')+')'),(_0x37f329['label']=_0x29d124,_0x2ebcb4['on']('input',()=>{this['revisionNameInputValue']=_0x2ebcb4['element']['value']['trim']();}),_0x37f329);}}class u extends _0xfededa{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xdf4827=this['editor'],_0x1f50be=_0xdf4827['plugins']['get']('RevisionTracker');_0xdf4827['ui']['componentFactory']['add']('revisionHistory',_0x4e7751=>{const _0x36c04a=_0x548592(_0x4e7751),_0x4635ed=_0x36c04a['panelView']['children'],_0x3fd6dd=new _0x521f1a(_0x4e7751),_0x32c8b0=new _0x2d5f96(_0x4e7751),_0x56baf3=new _0x5bb200(_0x4e7751),_0x4ffd50=new _0x2d5f96(_0x4e7751),_0x2e36c9=new _0x5bb200(_0x4e7751);return _0x36c04a['bind']('isEnabled')['to'](_0x1f50be,'isReady',_0x1f50be,'isEnabled',_0xdf4827,'isReadOnly',(_0x30b979,_0x1e6408,_0xee6c97)=>_0x30b979&&_0x1e6408&&!_0xee6c97),_0x36c04a['buttonView']['set']({'icon':_0x4d2fdd['history'],'label':R(_0x4e7751,'Revision\x20history'),'tooltip':!0x0}),_0x56baf3['set']({'label':R(_0x4e7751,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x56baf3['bind']('isEnabled')['to'](_0x1f50be,'isReady',_0x1f50be,'isEnabled',_0xdf4827,'isReadOnly',(_0x508ed7,_0x12a1ae,_0x3d752e)=>_0x508ed7&&_0x12a1ae&&!_0x3d752e),_0x56baf3['on']('execute',()=>this['_showDialog']()),_0x2e36c9['set']({'label':R(_0x4e7751,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2e36c9['bind']('isEnabled')['to'](_0x1f50be,'isReady',_0xdf4827,'isReadOnly',(_0x3ad490,_0x155204)=>_0x3ad490&&!_0x155204),_0x2e36c9['on']('execute',()=>{_0xdf4827['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x36c04a['isOpen']=!0x1,_0xdf4827['editing']['view']['focus']();}),_0x32c8b0['children']['add'](_0x56baf3),_0x4ffd50['children']['add'](_0x2e36c9),_0x3fd6dd['role']='menu',_0x3fd6dd['items']['addMany']([_0x32c8b0,_0x4ffd50]),_0x4635ed['add'](_0x3fd6dd),_0x36c04a;}),_0xdf4827['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x57896d=this['editor'],_0x50f3b6=_0x57896d['locale'],_0x5cd9c8=new _0x5d5a8e(_0x50f3b6),_0x40838b=new _0x325693(_0x50f3b6);_0x5cd9c8['buttonView']['set']({'icon':_0x4d2fdd['history'],'label':R(_0x50f3b6,'Revision\x20history')});const _0x4d3c18=new _0x5b4372(_0x50f3b6,_0x5cd9c8),_0x2c575e=new _0x48b626(_0x50f3b6);_0x2c575e['set']({'label':R(_0x50f3b6,'Save\x20current\x20revision')}),_0x2c575e['delegate']('execute')['to'](_0x5cd9c8),_0x2c575e['on']('execute',()=>{this['_showDialog']();}),_0x4d3c18['children']['add'](_0x2c575e),_0x40838b['items']['add'](_0x4d3c18);const _0x139234=new _0x5b4372(_0x50f3b6,_0x5cd9c8),_0x5576a4=new _0x48b626(_0x50f3b6);return _0x5576a4['set']({'label':R(_0x50f3b6,'Open\x20revision\x20history')}),_0x5576a4['delegate']('execute')['to'](_0x5cd9c8),_0x5576a4['on']('execute',()=>{_0x57896d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x139234['children']['add'](_0x5576a4),_0x40838b['items']['add'](_0x139234),_0x5cd9c8['panelView']['children']['add'](_0x40838b),_0x5cd9c8;}['_showDialog'](){const _0x27fa42=this['editor'],_0x5cf958=_0x27fa42['locale'],_0x4cbd65=_0x27fa42['plugins']['get']('Dialog'),_0x318abf=_0x27fa42['plugins']['get']('RevisionTracker');function _0x1e1627(_0x191b15){_0x27fa42['config']['get']('revisionHistory.requireRevisionName')&&''===_0x191b15['revisionName']?_0x191b15['revisionNameInputView']['errorText']=R(_0x5cf958,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x27fa42['plugins']['get'](l)['saveRevision']({'name':_0x191b15['revisionName']}),_0x4cbd65['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1e1627(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4cbd65['show']({'id':'revisionSave','title':R(_0x5cf958,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x27fa42['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4cbd65['hide']()},{'label':R(_0x27fa42['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x500251){_0x500251['bind']('isEnabled')['to'](_0x318abf,'isReady',_0x318abf,'isEnabled',_0x27fa42,'isReadOnly',(_0x5a5935,_0xe56efa,_0x1118fb)=>_0x5a5935&&_0xe56efa&&!_0x1118fb);},'onExecute':()=>_0x1e1627(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x576bd9=this['editor'],_0x4b45c7=_0x576bd9['locale'];this['_saveRevisionFormView']=new hs(_0x4b45c7,_0x576bd9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x368c30{['changeId'];['_model'];constructor(_0x2baf37,_0x591638){super(_0x2baf37),this['_model']=_0x591638,this['changeId']=_0x591638['id'];const _0x3d91cd=this['bindTemplate'],_0x5c4381=R(_0x2baf37,_0x591638['data']['isSuggestion']?'Suggested\x20by':'add'==_0x591638['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x591638['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3d91cd['to']('type',_0x43c369=>'ck-revision-change__'+_0x43c369)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5c4381}]},{'text':'\x20'+_0x591638['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x58102d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xc194a3){super(),this['id']=_0xc194a3['id']||_0x5267dc(),this['author']=_0xc194a3['author'],this['type']=_0xc194a3['type'],this['data']=_0xc194a3['data']||{},this['rootName']=_0xc194a3['rootName'],this['set']('createdAt',_0xc194a3['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(_0x3c4a42,_0x5702e9){this['newRevisionId']=_0x3c4a42,this['oldRevisionId']=_0x5702e9,this['changes']=new _0x43490f();}['_setChanges'](_0x11abd0){for(const _0xd1772c of _0x11abd0)this['changes']['add'](_0xd1772c);}}const Z={'c':_0x2854db,'a':_0x2cb329,'e':_0x8724e3,'r':_0x590a6a,'u':_0x1e6437};class d extends _0xfededa{['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[_0x4a5eff,_0x34ae00,j];}constructor(_0x38ee8a){super(_0x38ee8a),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',(_0x4b669b,_0x196756,_0x4eabd9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4c8098=>{for(const _0x51f655 of this['editor']['editing']['view']['document']['roots'])_0x4eabd9?_0x4c8098['removeClass']('ck-editor__editable__overlay',_0x51f655):_0x4c8098['addClass']('ck-editor__editable__overlay',_0x51f655);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x17818b=>null!==_0x17818b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xbb41c1,_0x1a7cd9,_0x5cd5a2)=>_0xbb41c1&&_0x5cd5a2?_0x1a7cd9['changes']['getIndex'](_0x5cd5a2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5c7b5b,_0x48de3d)=>_0x5c7b5b?_0x48de3d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x34ae00);}['init'](){const _0x3e66d0=this['editor'],_0x5268cd=new bt(_0x3e66d0,{'direction':'backward'}),_0x5e695a=new bt(_0x3e66d0,{'direction':'forward'});(_0x3e66d0['commands']['add']('showPreviousChange',_0x5268cd),_0x3e66d0['commands']['add']('showNextChange',_0x5e695a),_0x3e66d0['commands']['add']('restoreRevision',new yt(_0x3e66d0)),this['on']('change:numberOfChanges',()=>{_0x5268cd['refresh'](),_0x5e695a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3e66d0['enableReadOnlyMode']('revision-viewer'),_0x3e66d0['plugins']['has']('WidgetToolbarRepository'))&&_0x3e66d0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x425ddf){await this['loadRevisionData'](_0x425ddf);const _0x33d066={};for(const _0x16a186 in _0x425ddf['diffData']){if(_0x425ddf['diffData'][_0x16a186]['attachChange']&&!_0x425ddf['diffData'][_0x16a186]['attachChange']['isAttached'])continue;const _0x2604f0=this['_removeRevisionMarkers'](JSON['parse'](_0x425ddf['diffData'][_0x16a186]['insertions'])),_0x438c4b=this['editor']['editing']['view']['document'],_0x231d3f=new _0x3de66c(_0x438c4b,_0x2604f0['map'](_0x3c44f3=>this['_getViewObj'](_0x3c44f3)));this['editor']['data']['processor']['useFillerType']('marked'),_0x33d066[_0x16a186]=this['editor']['data']['processor']['toData'](_0x231d3f),this['editor']['data']['processor']['useFillerType']('default');}return _0x33d066;}async['getRevisionRootsAttributes'](_0x267cea){await this['loadRevisionData'](_0x267cea);const _0x340c1e={};for(const _0x123010 in _0x267cea['diffData'])_0x267cea['diffData'][_0x123010]['attachChange']&&!_0x267cea['diffData'][_0x123010]['attachChange']['isAttached']||(_0x340c1e[_0x123010]=_0x267cea['diffData'][_0x123010]['attributesAfter']||{});return _0x340c1e;}['_removeRevisionMarkers'](_0x308f39){return(_0x308f39=_0x308f39['filter'](_0x2f2bf0=>!_0x2f2bf0['name']||'revision-start'!==_0x2f2bf0['name']&&'revision-end'!==_0x2f2bf0['name']))['forEach'](_0x14cf92=>{'string'!=typeof _0x14cf92&&(_0x14cf92['children']=this['_removeRevisionMarkers'](_0x14cf92['children']),_0x14cf92['attributes']=_0x14cf92['attributes']['filter'](_0x3a3cd2=>!_0x3a3cd2[0x0]['startsWith']('data-revision-')));}),_0x308f39;}async['compare'](_0x11c357,_0x3e4c1a,_0x8fd558=!0x1){if(!this['isEnabled'])return;const _0x179555=this['diff'],_0xbffe9d=this['repository'],_0x562aaa='string'==typeof _0x11c357?_0xbffe9d['getRevision'](_0x11c357):_0x11c357,_0x1ec61a='string'==typeof _0x3e4c1a?_0xbffe9d['getRevision'](_0x3e4c1a):_0x3e4c1a,_0x2d4390=_0x562aaa['id'],_0x4b774e=_0x1ec61a?_0x1ec61a['id']:null;if(!_0x8fd558&&this['diff']&&this['diff']['newRevisionId']===_0x2d4390&&this['diff']['oldRevisionId']===_0x4b774e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2d4390,_0x4b774e);const _0x372582=this['_getRevisionsRange'](_0x562aaa,_0x1ec61a,!0x0)['map'](_0x15463c=>this['loadRevisionData'](_0x15463c));return _0x372582['push'](new Promise(_0x2e560f=>{setTimeout(_0x2e560f,0x14);})),Promise['all'](_0x372582)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40900d=this['_getDiff'](_0x2d4390,_0x4b774e);for(const _0x1b3198 of _0x40900d['changes'])this['_changeIdToChange']['set'](_0x1b3198['id'],_0x1b3198);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xff3fb7=>{for(const _0x118083 of this['editor']['model']['document']['getRootNames']())_0xff3fb7['detachRoot'](_0x118083);for(const _0x1a024d of Object['keys'](_0x40900d['model'])){const _0x15f9bb=_0xff3fb7['addRoot'](_0x1a024d);for(const _0x2ad581 of Object['keys'](_0x40900d['attributes'][_0x1a024d]))_0xff3fb7['setAttribute'](_0x2ad581,_0x40900d['attributes'][_0x1a024d][_0x2ad581],_0x15f9bb);_0xff3fb7['insert'](_0x40900d['model'][_0x1a024d],_0x15f9bb,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40900d['changes'])),this['isReady']=!0x0;})['catch'](_0x3827e2=>{console['error'](_0x3827e2),this['_cleanUp'](),_0x179555&&(this['diff']=_0x179555),this['isReady']=!0x0;});}['addRevisionData'](_0x523d2c,_0x1f4e67){const _0x5cc5f8=this['repository']['createRevision'](_0x523d2c);return _0x5cc5f8['on']('_update',(_0x561567,_0x3883a2,_0x113408)=>_0x1f4e67(_0x3883a2,_0x113408,_0x5cc5f8)),this['repository']['addRevision'](_0x5cc5f8),_0x5cc5f8;}['loadRevisionData'](_0x43f7e5){if(!_0x43f7e5||_0x43f7e5['diffData'])return Promise['resolve']();{const _0x538720=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x538720,'revisionId':_0x43f7e5['id']})['then'](_0x4ea2df=>{_0x43f7e5['_update']({'diffData':_0x4ea2df['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},_0x1f32bc=>{for(const _0x31379f of this['editor']['model']['document']['getRootNames']())_0x1f32bc['detachRoot'](_0x31379f);});}['_sortAndFilterDiffChanges'](_0x5538de){const _0x3ff704=[],_0x4be726=new Map();for(const _0x3c007c of this['editor']['model']['document']['getRootNames']()){const _0x3b409f=this['editor']['editing']['view']['getDomRoot'](_0x3c007c);if(!_0x3b409f)continue;const _0x1890f2=_0x3b409f['getClientRects']()['item'](0x0);_0x1890f2&&(_0x3ff704['push'](_0x3c007c),_0x4be726['set'](_0x3c007c,_0x1890f2));}return _0x3ff704['sort']((_0x519a77,_0x3dc810)=>{const _0xcf0260=_0x4be726['get'](_0x519a77),_0x4860d2=_0x4be726['get'](_0x3dc810);return _0xcf0260['y']-_0x4860d2['y']||_0xcf0260['x']-_0x4860d2['x'];}),(_0x5538de=_0x5538de['filter'](_0x433d0e=>_0x3ff704['includes'](_0x433d0e['rootName'])))['sort']((_0x260450,_0x21cf07)=>_0x3ff704['indexOf'](_0x260450['rootName'])-_0x3ff704['indexOf'](_0x21cf07['rootName'])),_0x5538de;}['_makeTape'](_0x11a7e8){const _0xcb09f4=Array['from'](_0x11a7e8['markers'])['filter'](([_0x530581,_0x156d45])=>_0x530581['startsWith']('revision:')&&!_0x156d45['isCollapsed']),_0x2d280a=Array['from'](this['editor']['model']['createRangeIn'](_0x11a7e8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xcb09f4['length'])for(const _0x14fead of _0x2d280a){const [_0x102cbf,_0x2f8fd4]=_0xcb09f4[0x0],[,_0x2b8de9,_0x2568ce]=_0x102cbf['split'](':');if(_0x2f8fd4['end']['isEqual'](_0x14fead['nextPosition'])&&_0xcb09f4['shift'](),(_0x14fead['previousPosition']['isEqual'](_0x2f8fd4['start'])||_0x14fead['previousPosition']['isAfter'](_0x2f8fd4['start']))&&('insertion'==_0x2b8de9?_0x14fead['isAdded']={'userId':_0x2568ce}:'deletion'==_0x2b8de9&&(_0x14fead['isRemoved']={'userId':_0x2568ce})),0x0==_0xcb09f4['length'])break;}return _0x2d280a;}['_refreshStartEndIndex'](_0x5d22e6){const _0x398ec7=new Map();for(let _0x392cb1=0x0;_0x392cb1<_0x5d22e6['length'];_0x392cb1++)'text'===_0x5d22e6[_0x392cb1]['type']?(_0x5d22e6[_0x392cb1]['item']['startIndex']=_0x392cb1,_0x5d22e6[_0x392cb1]['item']['endIndex']=_0x392cb1):('elementStart'===_0x5d22e6[_0x392cb1]['type']?_0x5d22e6[_0x392cb1]['item']['startIndex']=_0x392cb1:'elementEnd'===_0x5d22e6[_0x392cb1]['type']&&(_0x5d22e6[_0x392cb1]['item']['endIndex']=_0x392cb1),_0x398ec7['set'](_0x5d22e6[_0x392cb1]['id'],_0x392cb1));for(const _0xe00b06 of _0x398ec7['values']())'elementStart'===_0x5d22e6[_0xe00b06]['type']?_0x5d22e6[_0xe00b06]['item']['endIndex']=_0x398ec7['get'](_0x5d22e6[_0xe00b06]['pairId']):'elementEnd'===_0x5d22e6[_0xe00b06]['type']&&(_0x5d22e6[_0xe00b06]['item']['startIndex']=_0x398ec7['get'](_0x5d22e6[_0xe00b06]['pairId']));}['_processTape'](_0x48073a){for(let _0x376bd3=0x0;_0x376bd3<_0x48073a['length'];_0x376bd3++){if('elementStart'===_0x48073a[_0x376bd3]['type'])_0x48073a[_0x376bd3]['item']['startIndex']=_0x376bd3;else{if('elementEnd'===_0x48073a[_0x376bd3]['type']){_0x48073a[_0x376bd3]['item']['endIndex']=_0x376bd3;const _0x3aadcf=_0x48073a[_0x376bd3]['item']['startIndex'];_0x48073a[_0x3aadcf]['pairId']=_0x48073a[_0x376bd3]['id'],_0x48073a[_0x376bd3]['pairId']=_0x48073a[_0x3aadcf]['id'];}else _0x48073a[_0x376bd3]['item']['startIndex']=_0x376bd3,_0x48073a[_0x376bd3]['item']['endIndex']=_0x376bd3,_0x48073a[_0x376bd3]['pairId']=null;}_0x48073a[_0x376bd3]['markersStart']||(_0x48073a[_0x376bd3]['markersStart']=[],_0x48073a[_0x376bd3]['markersEnd']=[]);}}['_markInsertions'](_0x3e7006,_0x1af5a9){const _0x27499b=_0x3e7006['filter'](_0x2cf385=>!_0x2cf385['isAdded']);for(let _0x2005aa=0x0;_0x2005aa<_0x1af5a9['length'];_0x2005aa++)_0x1af5a9[_0x2005aa]['isAdded']&&(_0x27499b[_0x2005aa]['isAdded']=_0x1af5a9[_0x2005aa]['isAdded']);}['_makeModelFromViewString'](_0x18556a){const _0x5b3dae=JSON['parse'](_0x18556a),_0x37a22a=this['editor']['editing']['view']['document'],_0x1f67e1=new _0x3de66c(_0x37a22a,_0x5b3dae['map'](_0x402f95=>this['_getViewObj'](_0x402f95)));return this['editor']['data']['toModel'](_0x1f67e1);}['_getViewObj'](_0x3607fe){const _0x4149d3=this['editor']['editing']['view']['document'];if('string'==typeof _0x3607fe)return new _0x4d49ab(_0x4149d3,_0x3607fe);{const _0x2d22dd=_0x3607fe['children']['map'](_0x3dd2d6=>this['_getViewObj'](_0x3dd2d6));return new(Z[_0x3607fe['type']]||_0x2e39e1)(_0x4149d3,_0x3607fe['name'],_0x3607fe['attributes'],_0x2d22dd);}}['_getDiff'](_0x5eb236,_0x5a99ea=null){const _0xf30be5=this['repository']['getRevision'](_0x5eb236),_0x3ed5ae=_0x5a99ea?this['repository']['getRevision'](_0x5a99ea):null,_0x558635=this['_getRevisionsRange'](_0xf30be5,_0x3ed5ae),_0x5ccb53=_0x558635[_0x558635['length']-0x1],_0x1066f3=new Map(),_0x57a4bc={'model':{},'attributes':{},'changes':[]},_0x4b4b1e=new Set(),_0xe2225=new Map();for(let _0x44a962=_0x558635['length']-0x1;_0x44a962>=0x0;_0x44a962--){const _0x38f8ee=_0x558635[_0x44a962];for(const _0x4a5a04 of Object['keys'](_0x38f8ee['diffData']))if(_0x38f8ee['diffData'][_0x4a5a04]['attachChange']){const _0x47f7aa=_0x38f8ee['diffData'][_0x4a5a04]['attachChange'];_0x47f7aa['isAttached']?(_0x4b4b1e['add'](_0x4a5a04),_0xe2225['has'](_0x4a5a04)&&_0xe2225['get'](_0x4a5a04)['userId']==_0x47f7aa['userId']?_0xe2225['delete'](_0x4a5a04):_0xe2225['set'](_0x4a5a04,_0x47f7aa)):_0xe2225['has'](_0x4a5a04)?(_0x4b4b1e['delete'](_0x4a5a04),_0xe2225['delete'](_0x4a5a04)):(_0x4b4b1e['add'](_0x4a5a04),_0xe2225['set'](_0x4a5a04,_0x47f7aa));}else _0x4b4b1e['add'](_0x4a5a04);}for(const _0x1b335f of _0x4b4b1e){const _0x2a433a=_0xe2225['has'](_0x1b335f)&&!_0xe2225['get'](_0x1b335f)['isAttached'];let _0x363337=_0x2a433a?_0x558635['length']-0x1:0x0;const _0x5d19af=_0x2a433a?-0x1:0x1;for(;_0x558635[_0x363337];){const _0x1c7035=_0x558635[_0x363337];if(_0x1c7035['diffData'][_0x1b335f]){const _0x5629a6=_0x2a433a?_0x1c7035['diffData'][_0x1b335f]['attributesBefore']:_0x1c7035['diffData'][_0x1b335f]['attributesAfter'];_0x57a4bc['attributes'][_0x1b335f]=_0x5629a6?_0x4a7b13(_0x5629a6):{};break;}_0x363337+=_0x5d19af;}}for(const _0x586c95 of _0x558635){_0x586c95['model']={};for(const _0xcd6765 of _0x586c95['authors'])_0x1066f3['set'](_0xcd6765['id'],_0xcd6765);for(const _0x1586c7 of _0x4b4b1e){const _0x2f1de2=_0x586c95['diffData'][_0x1586c7]?_0x586c95['diffData'][_0x1586c7]['insertions']:'[]',_0x1d1ab7=_0x586c95['diffData'][_0x1586c7]?_0x586c95['diffData'][_0x1586c7]['deletions']:'[]';_0x586c95['model'][_0x1586c7]={'insertions':this['_makeModelFromViewString'](_0x2f1de2),'deletions':this['_makeModelFromViewString'](_0x1d1ab7)};}}for(const _0x58c578 of _0x4b4b1e){let _0x118ff3=null,_0x3e84fd=0x0;const _0x4effdf=new Map(Array['from'](_0xf30be5['model'][_0x58c578]['insertions']['markers'])['filter'](([_0x4aba5a])=>!_0x4aba5a['startsWith']('revision:')));let _0x491bcf=0x0;for(const _0x5618d0 of _0x558635){const _0x3fb59f=this['_makeTape'](_0x5618d0['model'][_0x58c578]['insertions']);_0x5618d0==_0xf30be5?(_0x118ff3=_0x3fb59f,_0x3e84fd=_0x118ff3['length'],_0x118ff3['forEach'](_0x2c3840=>{_0x2c3840['id']=_0x491bcf++;}),this['_processTape'](_0x118ff3)):this['_markInsertions'](_0x118ff3,_0x3fb59f);const _0x3f72da=_0x118ff3['filter'](_0x5be3df=>!_0x5be3df['isAdded'])['map'](_0x1ed6fc=>_0x1ed6fc['id']);let _0x248b6c=0x0;const _0x2ae95c=this['_makeTape'](_0x5618d0['model'][_0x58c578]['deletions']);_0x2ae95c['forEach'](_0x1494eb=>{_0x1494eb['isRemoved']?_0x1494eb['id']=_0x3e84fd++:_0x1494eb['id']=_0x3f72da[_0x248b6c++];}),this['_processTape'](_0x2ae95c),this['_setDistance'](_0x118ff3,'isAdded'),this['_setDistance'](_0x2ae95c,'isRemoved'),_0x5618d0==_0xf30be5&&this['_markMarkers'](_0x118ff3,_0x4effdf),_0x118ff3=this['_joinTapes'](_0x118ff3,_0x2ae95c),this['_refreshStartEndIndex'](_0x118ff3),this['_setDistance'](_0x118ff3,'isRemoved');}_0x118ff3=_0x118ff3['filter'](_0x18aaa1=>!(_0x18aaa1['isAdded']&&_0x18aaa1['isRemoved']));const _0x1ab57e=new Map(_0x5ccb53['model'][_0x58c578]['deletions']['markers']),_0x134458=new Set(_0x4effdf['keys']());for(const _0x37e174 of _0x1ab57e['keys']())_0x134458['delete'](_0x37e174);this['_markSuggestions'](_0x118ff3,_0x134458),this['_fixObsoleteTags'](_0x118ff3),_0x118ff3=this['_removeMissingPairs'](_0x118ff3),_0x118ff3=this['_markMismatchedRemovedTags'](_0x118ff3),_0x118ff3=this['_removeUnsupportedChanges'](_0x118ff3);const {root:_0x573e1a,changes:_0x3bf442}=this['_makeModelFromTape'](_0x118ff3,_0x1066f3,_0x58c578);_0x57a4bc['model'][_0x58c578]=_0x573e1a;const _0x3bb38b=_0xe2225['get'](_0x58c578);if(_0x3bb38b){const _0x573ccb=_0x1066f3['get'](_0x3bb38b['userId']),_0xc1d57e=new r({'author':_0x573ccb,'type':_0x3bb38b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x58c578});_0x3bf442['unshift'](_0xc1d57e),_0x57a4bc['attributes'][_0x58c578]['revisionHistoryAttachChange']=_0xc1d57e['id'];}_0x57a4bc['changes']=_0x57a4bc['changes']['concat'](_0x3bf442);}return _0x57a4bc;}['_markMarkers'](_0x56eecf,_0x276798){for(let _0x3b725a=0x0;_0x3b725a<_0x56eecf['length'];_0x3b725a++)for(const [_0x4ea8fd,_0xb19881]of _0x276798)_0xb19881['start']['isEqual'](_0x56eecf[_0x3b725a]['previousPosition'])&&_0x56eecf[_0x3b725a]['markersStart']['push'](_0x4ea8fd),_0xb19881['end']['isEqual'](_0x56eecf[_0x3b725a]['nextPosition'])&&_0x56eecf[_0x3b725a]['markersEnd']['push'](_0x4ea8fd);}['_joinTapes'](_0xcbded3,_0x1e00f2){let _0x401601=[],_0x56cbdf=0x0,_0x5655d4=0x0;for(;_0x56cbdf<_0xcbded3['length']||_0x5655d4<_0x1e00f2['length'];){const _0x582379=_0xcbded3[_0x56cbdf]||{},_0x379097=_0x1e00f2[_0x5655d4]||{};if(_0x582379['id']==_0x379097['id'])_0x56cbdf++,_0x5655d4++,_0x401601['push'](_0x582379);else{if(_0x379097['isRemoved']&&_0x582379['isAdded']){const {commonTape:_0xb96eb3,iEnd:_0x5a5565,jEnd:_0x1bd5ff}=this['_threeWayMerge'](_0xcbded3,_0x56cbdf,_0x1e00f2,_0x5655d4);_0x401601=_0x401601['concat'](_0xb96eb3),_0x56cbdf=_0x5a5565,_0x5655d4=_0x1bd5ff;}else _0x379097['isRemoved']?(_0x5655d4++,_0x401601['push'](_0x379097)):(_0x56cbdf++,_0x401601['push'](_0x582379));}}return _0x401601;}['_markSuggestions'](_0x5489a5,_0x2d3840){const _0x2b310f=[];for(let _0x2276b9=0x0;_0x2276b9<_0x5489a5['length'];_0x2276b9++){for(let _0xcab938=0x0;_0xcab938<_0x5489a5[_0x2276b9]['markersStart']['length'];_0xcab938++){const _0x3a9c57=_0x5489a5[_0x2276b9]['markersStart'][_0xcab938];if(!_0x2d3840['has'](_0x3a9c57))continue;const {group:_0x2085cd,type:_0x11a21c,authorId:_0x480d6b}=_0x27fba1(_0x3a9c57);'revision-suggestion'!=_0x2085cd||'insertion'!=_0x11a21c&&'deletion'!=_0x11a21c||(_0x2b310f['unshift']({'type':_0x11a21c,'name':_0x3a9c57,'userId':_0x480d6b}),_0x5489a5[_0x2276b9]['markersStart']['splice'](_0xcab938,0x1),_0xcab938--);}_0x384a97(_0x5489a5[_0x2276b9]);for(let _0x55802c=0x0;_0x55802c<_0x5489a5[_0x2276b9]['markersEnd']['length'];_0x55802c++){const _0x4d5b0c=_0x5489a5[_0x2276b9]['markersEnd'][_0x55802c];if(!_0x2d3840['has'](_0x4d5b0c))continue;const {group:_0x1e5a21,type:_0x5a4fe6}=_0x27fba1(_0x4d5b0c);if('revision-suggestion'!=_0x1e5a21||'insertion'!=_0x5a4fe6&&'deletion'!=_0x5a4fe6)continue;_0x5489a5[_0x2276b9]['markersEnd']['splice'](_0x55802c,0x1),_0x55802c--;const _0xf387f0=_0x2b310f['findIndex'](_0x3a2b9a=>_0x3a2b9a['name']==_0x4d5b0c);_0xf387f0>-0x1&&_0x2b310f['splice'](_0xf387f0,0x1);}}function _0x27fba1(_0x3523a5){const _0x339ab1=_0x3523a5['split'](':');return{'group':_0x339ab1[0x0],'type':_0x339ab1[0x1],'subType':_0x339ab1['length']>=0x5?_0x339ab1[0x2]:null,'id':_0x339ab1['length']<0x5?_0x339ab1[0x2]:_0x339ab1[0x3],'authorId':_0x339ab1['length']<0x5?_0x339ab1[0x3]:_0x339ab1[0x4],'markerCount':0x6==_0x339ab1['length']?_0x339ab1[0x5]:null};}function _0x384a97(_0x417e00){for(let _0x59d52e=0x0;_0x59d52e<_0x2b310f['length'];_0x59d52e++){if(_0x417e00['isAdded']&&'insertion'==_0x2b310f[_0x59d52e]['type'])return _0x417e00['isAddSuggestion']=_0x2b310f[_0x59d52e],void delete _0x417e00['isAdded'];if(!_0x417e00['isAdded']&&!_0x417e00['isRemoved']&&'deletion'==_0x2b310f[_0x59d52e]['type'])return void(_0x417e00['isRemoveSuggestion']=_0x2b310f[_0x59d52e]);}}}['_setDistance'](_0x323063,_0xd1a660){let _0x4ab28a=0x0,_0x5d2095=!0x1;const _0x17ed31=new Map();for(const _0xcea7db of _0x323063)_0xcea7db[_0xd1a660]?_0x5d2095&&(_0x4ab28a++,_0x5d2095=!0x1):(_0x4ab28a++,_0x5d2095=!0x0),_0x17ed31['set'](_0xcea7db['id'],_0x4ab28a);for(let _0x430619=0x0;_0x430619<_0x323063['length'];_0x430619++){if('isRemoved'==_0xd1a660&&_0x323063[_0x430619]['isAdded']||'isAdded'==_0xd1a660&&_0x323063[_0x430619]['isRemoved'])continue;if('text'==_0x323063[_0x430619]['type']){_0x323063[_0x430619]['distance']=0x0;continue;}const _0x3247ff=_0x17ed31['get'](_0x323063[_0x430619]['pairId']),_0x3cdc75=_0x17ed31['get'](_0x323063[_0x430619]['id']);_0x323063[_0x430619]['distance']=_0x3247ff-_0x3cdc75;}}['_getRevisionsRange'](_0x1360b3,_0x10c81e,_0x131f2d=!0x1){const _0x573a51=[];let _0x4fa0e8=this['repository']['getIndex'](_0x1360b3),_0x5a4244=this['repository']['getIndex'](_0x10c81e);for(-0x1==_0x5a4244&&(_0x5a4244=this['repository']['_revisions']['length'],_0x131f2d=!0x1);_0x4fa0e8<_0x5a4244;)_0x573a51['push'](this['repository']['getRevision'](_0x4fa0e8)),_0x4fa0e8++;return _0x131f2d&&_0x573a51['push'](this['repository']['getRevision'](_0x4fa0e8)),_0x573a51;}['_threeWayMerge'](_0x3fcd6a,_0x16f4ed,_0x2139c7,_0x1bac3d){const _0x10dd9c=this['editor']['model']['schema'];let _0x2087f6=_0x16f4ed;for(;_0x3fcd6a[_0x2087f6]&&_0x3fcd6a[_0x2087f6]['isAdded'];)_0x2087f6++;let _0x4a5f07=_0x1bac3d;for(;_0x2139c7[_0x4a5f07]&&_0x2139c7[_0x4a5f07]['isRemoved'];)_0x4a5f07++;_0x36b30f(_0x3fcd6a,_0x16f4ed,_0x2087f6),_0x36b30f(_0x2139c7,_0x1bac3d,_0x4a5f07);const _0x490694=_0x2139c7['slice'](_0x1bac3d,_0x4a5f07)['concat'](_0x3fcd6a['slice'](_0x16f4ed,_0x2087f6));return _0x490694['sort']((_0x3d149a,_0x7d46b2)=>_0x3d149a['side']!=_0x7d46b2['side']?_0x3d149a['side']-_0x7d46b2['side']:_0x3d149a['level']!=_0x7d46b2['level']?_0x3d149a['level']-_0x7d46b2['level']:_0x3d149a['distance']!=_0x7d46b2['distance']?_0x7d46b2['distance']-_0x3d149a['distance']:!!_0x3d149a['isAdded']!=!!_0x7d46b2['isAdded']?-0x1==_0x3d149a['side']||0x0==_0x3d149a['side']?_0x3d149a['isAdded']?-0x1:0x1:_0x3d149a['isAdded']?0x1:-0x1:_0x3d149a['index']-_0x7d46b2['index']),{'commonTape':_0x490694,'iEnd':_0x2087f6,'jEnd':_0x4a5f07};function _0x36b30f(_0x51a05e,_0x3fdad2,_0x412bda){let _0xc6a5ae=-0x1,_0x5bc49f=Number['POSITIVE_INFINITY'],_0x5b8ce8=!0x0;for(let _0x24c479=_0x3fdad2;_0x24c479<_0x412bda;_0x24c479++)if(_0x10dd9c['isInline'](_0x51a05e[_0x24c479]['item'])||(_0x5b8ce8=!0x1),_0x51a05e[_0x24c479]['item']['startIndex']<_0x3fdad2&&(_0xc6a5ae=_0x24c479),_0x51a05e[_0x24c479]['item']['endIndex']>=_0x412bda){_0x5bc49f=_0x24c479;break;}_0x5b8ce8&&(_0xc6a5ae=_0x412bda-0x1);for(let _0x2780fd=_0x3fdad2;_0x2780fd<_0x412bda;_0x2780fd++)_0x51a05e[_0x2780fd]['side']=_0x2780fd<=_0xc6a5ae?-0x1:_0x2780fd<_0x5bc49f?0x0:0x1,_0x51a05e[_0x2780fd]['index']=_0x2780fd;let _0x18520d=0x0;for(let _0x455f3a=_0x3fdad2;_0x455f3a<=_0xc6a5ae;_0x455f3a++)0x0==_0x51a05e[_0x455f3a]['distance']?_0x51a05e[_0x455f3a]['level']=_0x18520d:(_0x18520d++,_0x51a05e[_0x455f3a]['level']=_0x18520d,_0x18520d++);for(let _0x180faa=_0x3fdad2;_0x180faa<_0x412bda;_0x180faa++)0x0==_0x51a05e[_0x180faa]['side']&&(_0x51a05e[_0x180faa]['level']=_0x18520d);_0x18520d=0x0;for(let _0x55cb6b=_0x412bda-0x1;_0x55cb6b>=_0x5bc49f;_0x55cb6b--)0x0==_0x51a05e[_0x55cb6b]['distance']?_0x51a05e[_0x55cb6b]['level']=_0x18520d:(_0x18520d--,_0x51a05e[_0x55cb6b]['level']=_0x18520d,_0x18520d--);}}['_fixObsoleteTags'](_0x2885fc){const _0x43c7b7=new Map(),_0xe38753=this['editor']['model']['schema'];for(let _0x14326a=0x1;_0x14326a<_0x2885fc['length'];_0x14326a++){let _0x358864,_0x35d67e,_0x1e06e5;const _0x5791e5=_0x2885fc[_0x14326a],_0x17df6c=_0x2885fc[_0x14326a-0x1];if('text'==_0x5791e5['type'])continue;if(_0x5791e5['type']!=_0x17df6c['type'])continue;if(!_0xe38753['isBlock'](_0x17df6c['item'])||_0xe38753['isLimit'](_0x17df6c['item']))continue;if(!_0xe38753['isBlock'](_0x5791e5['item'])||_0xe38753['isLimit'](_0x5791e5['item']))continue;if((_0x2885fc[_0x14326a]['isAdded']||_0x2885fc[_0x14326a]['isAddSuggestion'])&&_0x2885fc[_0x14326a-0x1]['isRemoved'])_0x358864=_0x2885fc[_0x14326a],_0x35d67e=_0x2885fc[_0x14326a-0x1],_0x1e06e5=_0x14326a-0x1;else{if(!_0x2885fc[_0x14326a]['isRemoved']||!_0x2885fc[_0x14326a-0x1]['isAdded']&&!_0x2885fc[_0x14326a-0x1]['isAddSuggestion'])continue;_0x358864=_0x2885fc[_0x14326a-0x1],_0x35d67e=_0x2885fc[_0x14326a],_0x1e06e5=_0x14326a;}const _0x329129=_0x358864['level']==_0x35d67e['level'],_0x47f2e8=Math['abs'](_0x358864['level'])<Math['abs'](_0x35d67e['level'])&&0x0==_0x35d67e['distance'];(_0x329129||_0x47f2e8)&&(_0x43c7b7['set'](_0x35d67e['id'],_0x358864['id']),_0x2885fc['splice'](_0x1e06e5,0x1),_0x14326a--,_0x358864['isAdded']=!0x1);}for(let _0x328eae=0x0;_0x328eae<_0x2885fc['length'];_0x328eae++)_0x43c7b7['has'](_0x2885fc[_0x328eae]['pairId'])&&(_0x2885fc[_0x328eae]['pairId']=_0x43c7b7['get'](_0x2885fc[_0x328eae]['pairId']));}['_removeMissingPairs'](_0x317d8d){const _0xab614e=new Set(_0x317d8d['map'](_0x1004f2=>_0x1004f2['id']));for(let _0x2d7b06=0x0;_0x2d7b06<_0x317d8d['length'];_0x2d7b06++)_0xab614e['has'](_0x317d8d[_0x2d7b06]['pairId'])||0x0==_0x317d8d[_0x2d7b06]['distance']||(_0x317d8d[_0x2d7b06]['isIncorrect']=!0x0);return _0x317d8d['filter'](_0x3bfdf6=>!_0x3bfdf6['isIncorrect']);}['_markMismatchedRemovedTags'](_0x497a04){const _0x4183e9=new Set();for(let _0x55d6f5=0x0;_0x55d6f5<_0x497a04['length'];_0x55d6f5++){if(_0x4183e9['has'](_0x497a04[_0x55d6f5]['id'])&&_0x497a04[_0x55d6f5]['isRemoved']&&(_0x497a04[_0x55d6f5]['isIncorrect']=!0x0),_0x497a04[_0x55d6f5]['isIncorrect'])continue;if(0x0==_0x497a04[_0x55d6f5]['distance'])continue;if('elementStart'!=_0x497a04[_0x55d6f5]['type'])continue;if(null==_0x497a04[_0x55d6f5]['pairId'])continue;let _0x257c00=_0x55d6f5+0x1,_0x5d1572=0x0;for(;_0x497a04[_0x257c00]['id']!=_0x497a04[_0x55d6f5]['pairId'];)'elementStart'==_0x497a04[_0x257c00]['type']?_0x5d1572++:'elementEnd'==_0x497a04[_0x257c00]['type']&&_0x5d1572--,_0x257c00++;if(0x0!=_0x5d1572){if(_0x497a04[_0x55d6f5]['isRemoved'])_0x497a04[_0x55d6f5]['isIncorrect']=!0x0;else{for(;_0x257c00!=_0x55d6f5;)_0x497a04[_0x257c00]['isRemoved']&&0x0!=_0x497a04[_0x257c00]['distance']&&(_0x497a04[_0x257c00]['isIncorrect']=!0x0,_0x4183e9['add'](_0x497a04[_0x257c00]['pairId'])),_0x257c00--;}}}return _0x497a04['filter'](_0x189f76=>!_0x189f76['isIncorrect']);}['_removeUnsupportedChanges'](_0x456bf8){const _0x20bdc5=this['editor']['model']['schema'];for(let _0x33b0f2=0x0;_0x33b0f2<_0x456bf8['length'];_0x33b0f2++){if(!(_0x456bf8[_0x33b0f2]['isAdded']||_0x456bf8[_0x33b0f2]['isAddSuggestion']||_0x456bf8[_0x33b0f2]['isRemoved']||_0x456bf8[_0x33b0f2]['isRemoveSuggestion']))continue;if(0x0==_0x456bf8[_0x33b0f2]['distance'])continue;const _0x3df1fd=_0x456bf8[_0x33b0f2]['item'];_0x20bdc5['isBlock'](_0x3df1fd)||_0x20bdc5['isLimit'](_0x3df1fd)||(_0x456bf8[_0x33b0f2]['isAdded']&&delete _0x456bf8[_0x33b0f2]['isAdded'],_0x456bf8[_0x33b0f2]['isAddSuggestion']&&delete _0x456bf8[_0x33b0f2]['isAddSuggestion'],_0x456bf8[_0x33b0f2]['isRemoveSuggestion']&&delete _0x456bf8[_0x33b0f2]['isRemoveSuggestion'],_0x456bf8[_0x33b0f2]['isRemoved']&&(_0x456bf8[_0x33b0f2]['isIncorrect']=!0x0));}return _0x456bf8['filter'](_0x4bf943=>!_0x4bf943['isIncorrect']);}['_makeModelFromTape'](_0x5c7405,_0x20baf5,_0x5b10cc){const _0x1ba9b2=new wt(),_0x579cb9=[],_0x4f643f=new Map(),_0x247806=this['editor']['model'],_0x11c531=_0x247806['schema'],_0x805229=[_0x1ba9b2],_0x4d010e={},_0x2e6446={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x408ce9=null;const _0x4cf47b=[0x0];for(let _0x368222=0x0;_0x368222<_0x5c7405['length'];_0x368222++)if('elementStart'===_0x5c7405[_0x368222]['type']){_0x5c7405[_0x368222]['previousPosition']=_0x247806['createPositionFromPath'](_0x1ba9b2,_0x4cf47b);const _0x31cb97=new ft(_0x5c7405[_0x368222]['item']['name'],_0x5c7405[_0x368222]['item']['getAttributes']());_0x805229[0x0]['_appendChild'](_0x31cb97),_0x4cf47b['push'](0x0),_0x805229['unshift'](_0x31cb97),_0x5c7405[_0x368222]['nextPosition']=_0x247806['createPositionFromPath'](_0x1ba9b2,_0x4cf47b);}else'elementEnd'===_0x5c7405[_0x368222]['type']?(_0x805229['shift'](),_0x5c7405[_0x368222]['previousPosition']=_0x247806['createPositionFromPath'](_0x1ba9b2,_0x4cf47b),_0x4cf47b['pop'](),_0x4cf47b[_0x4cf47b['length']-0x1]++,_0x5c7405[_0x368222]['nextPosition']=_0x247806['createPositionFromPath'](_0x1ba9b2,_0x4cf47b)):(_0x5c7405[_0x368222]['previousPosition']=_0x247806['createPositionFromPath'](_0x1ba9b2,_0x4cf47b),_0x408ce9?_0x408ce9['_data']+=_0x5c7405[_0x368222]['item']['data']:_0x408ce9=new _t(_0x5c7405[_0x368222]['item']['data'],_0x5c7405[_0x368222]['item']['getAttributes']()),_0x5c7405[_0x368222+0x1]&&'text'===_0x5c7405[_0x368222+0x1]['type']&&_0x34511b(_0x408ce9,_0x5c7405[_0x368222+0x1]['item'])||(_0x805229[0x0]['_appendChild'](_0x408ce9),_0x408ce9=null),_0x4cf47b[_0x4cf47b['length']-0x1]+=_0x5c7405[_0x368222]['item']['offsetSize'],_0x5c7405[_0x368222]['nextPosition']=_0x247806['createPositionFromPath'](_0x1ba9b2,_0x4cf47b));for(let _0xf531e2=0x0;_0xf531e2<_0x5c7405['length'];_0xf531e2++){const _0x154de4=_0x5c7405[_0xf531e2]['previousPosition'],_0xf1ad6a=_0x5c7405[_0xf531e2]['nextPosition'];for(const _0x2c09e2 of _0x5c7405[_0xf531e2]['markersStart'])_0x4f643f['set'](_0x2c09e2,{'start':_0x154de4,'end':null});_0x559094('isRemoveSuggestion',_0xf531e2,_0x154de4,_0xf1ad6a),_0x559094('isAddSuggestion',_0xf531e2,_0x154de4,_0xf1ad6a),_0x559094('isRemoved',_0xf531e2,_0x154de4,_0xf1ad6a),_0x559094('isAdded',_0xf531e2,_0x154de4,_0xf1ad6a);for(const _0x36d051 of _0x5c7405[_0xf531e2]['markersEnd']){_0x4f643f['get'](_0x36d051)['end']=_0xf1ad6a;}}for(const [_0x3c34c4,_0x35a72b]of _0x4f643f){const _0x2ab2b7=this['editor']['model']['createRange'](_0x35a72b['start'],_0x35a72b['end']);_0x1ba9b2['markers']['set'](_0x3c34c4,_0x2ab2b7);}return _0x579cb9['sort']((_0x1a1a49,_0x110a0e)=>{const _0xf7578c=_0x1ba9b2['markers']['get']('revision:'+_0x1a1a49['id']),_0x266710=_0x1ba9b2['markers']['get']('revision:'+_0x110a0e['id']);return _0xf7578c['start']['isBefore'](_0x266710['start'])?-0x1:_0xf7578c['start']['isAfter'](_0x266710['start'])?0x1:_0xf7578c['end']['isBefore'](_0x266710['end'])?-0x1:_0xf7578c['end']['isAfter'](_0x266710['end'])?0x1:'add'===_0x1a1a49['type']?-0x1:0x1;}),{'root':_0x1ba9b2,'changes':_0x579cb9};function _0x559094(_0x14af24,_0x479b32,_0x335ca6,_0x535da7){const _0x4803f4=!!_0x5c7405[_0x479b32][_0x14af24],_0x576229=_0x4803f4?_0x5c7405[_0x479b32][_0x14af24]['userId']:null,_0x2e3c6a=_0x479b32===_0x5c7405['length']-0x1,_0x2c858c=_0x2e6446[_0x14af24][0x0],_0x522cfc=_0x11c531['isObject'](_0x5c7405[_0x479b32]['item']);!_0x4d010e[_0x14af24]&&_0x4803f4?_0x4d010e[_0x14af24]={'start':_0x335ca6,'tapeItem':_0x5c7405[_0x479b32],'userId':_0x576229,'type':_0x14af24}:_0x4d010e[_0x14af24]&&!_0x4803f4?(_0x4d010e[_0x14af24]['end']=_0x335ca6,_0x3c5ae6(_0x4d010e[_0x14af24]),_0x4d010e[_0x14af24]=null):_0x4d010e[_0x14af24]&&_0x4803f4&&_0x4d010e[_0x14af24]['userId']!==_0x576229&&(_0x4d010e[_0x14af24]['end']=_0x335ca6,_0x2c858c&&_0x2c858c['userId']===_0x4d010e[_0x14af24]['userId']||_0x3c5ae6(_0x4d010e[_0x14af24]),_0x4d010e[_0x14af24]={'start':_0x335ca6,'tapeItem':_0x5c7405[_0x479b32],'userId':_0x576229,'type':_0x14af24}),_0x4d010e[_0x14af24]&&_0x522cfc&&('elementStart'!==_0x5c7405[_0x479b32]['type']||_0x2c858c&&_0x2c858c['userId']===_0x576229||_0x2e6446[_0x14af24]['unshift']({'userId':_0x576229,'object':_0x5c7405[_0x479b32]['item'],'change':_0x4d010e[_0x14af24]}),'elementEnd'===_0x5c7405[_0x479b32]['type']&&_0x2c858c&&_0x2c858c['object']===_0x5c7405[_0x479b32]['item']&&(_0x2e6446[_0x14af24]['shift'](),_0x4d010e[_0x14af24]=_0x2c858c['change'])),_0x4d010e[_0x14af24]&&_0x2e3c6a&&(_0x4d010e[_0x14af24]['end']=_0x535da7,_0x3c5ae6(_0x4d010e[_0x14af24]),_0x4d010e[_0x14af24]=null);}function _0x3c5ae6({start:_0x603ba3,end:_0x5f1074,tapeItem:_0x5d6ca2,userId:_0x1e4888,type:_0x7da48c}){const _0x15c16e=_0x5d6ca2['item'],_0x5d0644=_0x247806['schema']['isBlock'](_0x15c16e)&&!_0x247806['schema']['isLimit'](_0x15c16e),_0x2a24c7=_0x603ba3['nodeAfter']==_0x5f1074['parent']&&_0x5f1074['isAtStart'];if(_0x5d0644&&_0x2a24c7)return;const _0x19228b=_0x247806['createRange'](_0x603ba3,_0x5f1074),_0x24dad1=_0x20baf5['get'](_0x1e4888),_0x2b8e92=new r({'author':_0x24dad1,'type':'isAdded'==_0x7da48c||'isAddSuggestion'==_0x7da48c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x7da48c||'isRemoveSuggestion'==_0x7da48c},'createdAt':new Date(),'rootName':_0x5b10cc});_0x579cb9['push'](_0x2b8e92),_0x1ba9b2['markers']['set']('revision:'+_0x2b8e92['id'],_0x19228b);}function _0x34511b(_0x28fb1b,_0x1fe590){const _0x3d0d1f=_0x28fb1b['getAttributes'](),_0x61af9c=_0x1fe590['getAttributes']();for(const _0x36b54b of _0x3d0d1f){if(_0x36b54b[0x1]!==_0x1fe590['getAttribute'](_0x36b54b[0x0]))return!0x1;_0x61af9c['next']();}return _0x61af9c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x28bd4a=>{const _0x4c788a=_0x28bd4a['markerName']['split'](':')[0x1],_0x455c3a=this['_getChangeFromId'](_0x4c788a);if(!_0x455c3a)return null;const _0x52f7e2='add'==_0x455c3a['type']?'insertion':'deletion',_0x228309=['ck-suggestion-marker','ck-suggestion-marker-'+_0x52f7e2];return _0x455c3a['data']['isSuggestion']&&_0x228309['push']('ck-suggestion-marker-'+_0x52f7e2+'-new'),this['activeChange']==_0x455c3a&&_0x228309['push']('ck-suggestion-marker--active'),{'classes':_0x228309,'attributes':{'data-change-id':_0x4c788a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4dc570=>{_0x4dc570['on']('element:pre',(_0x5c3e13,_0x108c3d,_0x293ff3)=>{const _0xa339d0=_0x108c3d['viewItem']['getChild'](0x0);if(!_0xa339d0||!_0xa339d0['is']('element','code'))return;if(!_0x293ff3['consumable']['consume'](_0xa339d0,{'attributes':['vid_start','vid_end']}))return;const _0x5bc136=_0x108c3d['modelRange']['start']['nodeAfter'];_0x293ff3['writer']['setAttribute']('vid_start',_0xa339d0['getAttribute']('vid_start'),_0x5bc136),_0x293ff3['writer']['setAttribute']('vid_end',_0xa339d0['getAttribute']('vid_end'),_0x5bc136);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x30e7a4=>{_0x30e7a4['on']('element',(_0xd38672,_0x1863b0,_0x3ab6a5)=>{if(!_0x3ab6a5['consumable']['consume'](_0x1863b0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1863b0['modelRange']['isCollapsed'])return;const _0x5ad62e=_0x1863b0['modelRange']['start']['nodeAfter'];_0x5ad62e['hasAttribute']('vid_start')||_0x5ad62e['hasAttribute']('vid')||(_0x3ab6a5['writer']['setAttribute']('vid_start',_0x1863b0['viewItem']['getAttribute']('vid_start'),_0x5ad62e),_0x3ab6a5['writer']['setAttribute']('vid_end',_0x1863b0['viewItem']['getAttribute']('vid_end'),_0x5ad62e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2121b5=>_0x2121b5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x341fa7,[,_0x4e6d23])=>{['vid_start','vid_end','vid']['includes'](_0x4e6d23)&&(_0x341fa7['return']=!0x0,_0x341fa7['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x352b33=>{_0x352b33['on']('attribute:vid',(_0x559641,_0x3f1bc1,_0x1c5abe)=>{if('\x20'!=_0x3f1bc1['item']['data']||_0x3f1bc1['item']['parent']['maxOffset']>0x1)return;if(!_0x1c5abe['consumable']['consume'](_0x3f1bc1['item'],_0x559641['name']))return;const _0x399aeb=_0x1c5abe['writer'],_0x327978=_0x1c5abe['mapper']['toViewRange'](_0x3f1bc1['range']);_0x399aeb['wrap'](_0x327978,_0x399aeb['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x320972){const _0x313ca0=_0x320972['plugins']['get']('RevisionViewer');return(_0x5ac177,_0x12fe7e,_0x22da26)=>{const _0x209e5c=_0x12fe7e['markerName']['split'](':')[0x1],_0x578f6c=_0x313ca0['_getChangeFromId'](_0x209e5c);if(!_0x578f6c)return null;const _0xf222c6='add'==_0x578f6c['type']?'split':'merge';if(!_0x22da26['consumable']['test'](_0x12fe7e['markerRange'],_0x5ac177['name']))return;const _0x574e72=_0x12fe7e['markerRange']['getWalker'](),_0x21124f=_0x12fe7e['markerRange']['start'],_0x34f75a=_0x320972['model']['schema'];let _0x2b62da=null,_0x1255bc=null,_0x49ebad=!0x1,_0x587ff7=!0x1;for(const _0x3a3f93 of _0x574e72){const _0x128dbb=_0x3a3f93['item'];_0x49ebad=_0x49ebad||_0x34f75a['isContent'](_0x128dbb);const _0x15df72=_0x22da26['mapper']['toViewElement'](_0x128dbb);if(_0x15df72&&_0x15df72['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a3f93['type']&&(_0x34f75a['isBlock'](_0x128dbb)&&!_0x34f75a['isLimit'](_0x128dbb)&&(_0x128dbb['nextSibling']||_0x21124f['isAtEnd']?_0x2b62da&&_0x2b62da['parent']==_0x128dbb||(_0x2b62da=_0x128dbb,_0x54d64c(_0x3a3f93['previousPosition']),_0x587ff7=!0x0):_0x1255bc=_0x1255bc||_0x3a3f93['previousPosition']));}function _0x54d64c(_0x33a366){const _0x41bfd0=_0x22da26['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf222c6}),_0x1f9262=_0x22da26['mapper']['toViewPosition'](_0x33a366);_0x578f6c['data']['isSuggestion']&&_0x22da26['writer']['addClass']('ck-suggestion-marker-'+_0xf222c6+'-new',_0x41bfd0),_0x313ca0['activeChange']==_0x578f6c&&_0x22da26['writer']['addClass']('ck-suggestion-marker--active',_0x41bfd0),_0x22da26['writer']['insert'](_0x1f9262,_0x41bfd0),_0x22da26['mapper']['bindElementToMarker'](_0x41bfd0,_0x12fe7e['markerName']);}_0x49ebad||_0x587ff7||!_0x1255bc||_0x54d64c(_0x1255bc);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x36d032,_0x43bed0,_0x248dd3)=>{const _0x560ecc=_0x248dd3['mapper']['markerNameToElements'](_0x43bed0['markerName']);if(_0x560ecc){for(const _0xd7566c of _0x560ecc)(_0xd7566c['hasClass']('ck-suggestion-marker-split')||_0xd7566c['hasClass']('ck-suggestion-marker-merge'))&&(_0x248dd3['mapper']['unbindElementFromMarkerName'](_0xd7566c,_0x43bed0['markerName']),_0x248dd3['writer']['remove'](_0xd7566c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x596a1e,_0xb23375,_0x4726a8)=>{const _0x3cf1fb=_0xb23375['markerName']['split'](':')[0x1],_0x1093da=this['_getChangeFromId'](_0x3cf1fb);if(!_0x1093da)return null;const _0x298346='add'==_0x1093da['type']?'split':'merge';if(_0x4726a8['consumable']['test'](_0xb23375['markerRange'],_0x596a1e['name']))for(const _0x12c97d of _0xb23375['markerRange']['getItems']()){if(!_0x12c97d['is']('element','softBreak'))continue;const _0x3744d5=_0x4726a8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x298346}),_0x80b743=_0x4726a8['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x12c97d));_0x1093da['data']['isSuggestion']&&_0x4726a8['writer']['addClass']('ck-suggestion-marker-'+_0x298346+'-new',_0x3744d5),this['activeChange']==_0x1093da&&_0x4726a8['writer']['addClass']('ck-suggestion-marker--active',_0x3744d5),_0x4726a8['writer']['insert'](_0x80b743,_0x3744d5),_0x4726a8['mapper']['bindElementToMarker'](_0x3744d5,_0xb23375['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x55a96b=>{for(const _0x241c71 of this['editor']['model']['document']['getRootNames']()){const _0x27df2d=this['editor']['model']['document']['getRoot'](_0x241c71),_0x3e3c91=this['editor']['editing']['view']['document']['getRoot'](_0x241c71);if(_0x3e3c91){const _0x26e518=_0x27df2d['getAttribute']('revisionHistoryAttachChange');if(_0x55a96b['removeAttribute']('data-change-id',_0x3e3c91),_0x55a96b['removeClass']('ck-revision-history-root-add',_0x3e3c91),_0x55a96b['removeClass']('ck-revision-history-root-remove',_0x3e3c91),_0x55a96b['removeClass']('ck-revision-history-root--active',_0x3e3c91),_0x26e518){const _0x4f52a6=this['_getChangeFromId'](_0x26e518);if(!_0x4f52a6)return null;_0x55a96b['setAttribute']('data-change-id',_0x26e518,_0x3e3c91),_0x55a96b['addClass']('ck-revision-history-root-'+_0x4f52a6['type'],_0x3e3c91),this['activeChange']==_0x4f52a6&&_0x55a96b['addClass']('ck-revision-history-root--active',_0x3e3c91);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xd32f5=>'revision-comment:'+_0xd32f5,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x335a69=>'revision-suggestion:'+_0x335a69,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x121f47=>({'name':'suggestion:'+_0x121f47,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3a75c6=>{const _0x5164b5=_0x3a75c6['markerName']['split'](':')[0x1];return'insertion'!=_0x5164b5&&'deletion'!=_0x5164b5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5164b5]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x544000,_0x5de298,_0x3250f8)=>{const _0xccef4d=_0x3250f8['mapper']['markerNameToElements'](_0x5de298['markerName']);if(_0xccef4d){for(const _0x3c214c of _0xccef4d)_0x3c214c['is']('uiElement')&&(_0x3250f8['mapper']['unbindElementFromMarkerName'](_0x3c214c,_0x5de298['markerName']),_0x3250f8['writer']['remove'](_0x3c214c));}},{'priority':'high'});}['_getChangeFromId'](_0xa71403){return this['_changeIdToChange']['get'](_0xa71403);}['_getViewForChange'](_0x845544){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x845544),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x38808a,_0x3ecfb3,_0xb71eae,_0x437563)=>{_0x437563&&this['_balloon']['remove'](_0x437563),_0xb71eae&&(this['_balloon']['add']({'view':_0xb71eae,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3abd78=this['editor']['editing'],_0x158ada=this['_getChangeFromId'](_0xb71eae['changeId']);let _0x2afdf9;if(_0x158ada['data']['isOnRoot']){const _0x5c6b38=_0x3abd78['view']['getDomRoot'](_0x158ada['rootName']);_0x2afdf9=Array['from'](_0x5c6b38['getClientRects']());}else{const _0x3ab154=this['editor']['model']['markers']['get']('revision:'+_0xb71eae['changeId']);_0x2afdf9=Array['from'](_0x3abd78['mapper']['markerNameToElements'](_0x3ab154['name']))['map'](_0x48a733=>_0x3abd78['view']['domConverter']['mapViewToDom'](_0x48a733))['map'](_0xf61d0c=>Array['from'](_0xf61d0c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2afdf9[0x0];return _0x2afdf9['find'](_0x25f5fc=>_0x25f5fc['top']-0x3<=this['_activeViewTarget']['y']&&_0x25f5fc['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x25f5fc['left']-0x3<=this['_activeViewTarget']['x']&&_0x25f5fc['right']+0x3>=this['_activeViewTarget']['x'])||_0x2afdf9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5ba63e,_0xf3bf,_0x979cc4,_0x2975f9)=>{this['activeView']=_0x979cc4?this['_getViewForChange'](_0x979cc4):null,this['editor']['model']['change'](()=>{const _0xf1998c=this['editor']['editing'];_0x2975f9&&(_0x2975f9['data']['isOnRoot']?_0xf1998c['view']['change'](_0x13b507=>{_0x13b507['removeClass']('ck-revision-history-root--active',_0xf1998c['view']['document']['getRoot'](_0x2975f9['rootName']));}):_0xf1998c['reconvertMarker']('revision:'+_0x2975f9['id'])),_0x979cc4&&(_0x979cc4['data']['isOnRoot']?_0xf1998c['view']['change'](_0x372604=>{_0x372604['addClass']('ck-revision-history-root--active',_0xf1998c['view']['document']['getRoot'](_0x979cc4['rootName']));}):_0xf1998c['reconvertMarker']('revision:'+_0x979cc4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x120c02,_0x5624bb)=>{if(this['activeChange'])return;const _0x4eb15c=this['_findChangeIdFromDomTarget'](_0x5624bb['target']),_0x4586a9=this['_changeIdToChange']['get'](_0x4eb15c);_0x4586a9?(this['_activeViewTarget']={'x':_0x5624bb['domEvent']['x'],'y':_0x5624bb['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4586a9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x553083,_0x4144b6)=>{const _0xc7b3a1=this['_findChangeIdFromDomTarget'](_0x4144b6['target']),_0x1d04e3=this['_changeIdToChange']['get'](_0xc7b3a1);_0x1d04e3?(this['_activeViewTarget']={'x':_0x4144b6['domEvent']['x'],'y':_0x4144b6['domEvent']['y']},_0x1d04e3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1d04e3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3c1555){do{const _0x17383d=_0x3c1555['getAttribute']('data-change-id');if(_0x17383d)return _0x17383d;_0x3c1555=_0x3c1555['parent'];}while(_0x3c1555);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3c954b=>{for(const _0x183023 of this['editor']['model']['markers'])_0x3c954b['removeMarker'](_0x183023);});}}function tt(_0x545eba,_0x182481){return(_0x27782e,_0x3ad6fd,_0x132604)=>{if(!_0x132604['consumable']['test'](_0x3ad6fd['markerRange'],_0x27782e['name']))return;const _0x453900=_0x3ad6fd['markerRange']['getWalker'](),_0x3f156e=_0x3ad6fd['markerRange']['start'],_0x260264=_0x545eba['model']['schema'];let _0xd38b3d=null,_0x4f64e5=null,_0x18b090=!0x1,_0x1dbf3c=!0x1;for(const _0x3344ee of _0x453900){const _0x25284d=_0x3344ee['item'];_0x18b090=_0x18b090||_0x260264['isContent'](_0x25284d);const _0x10d1da=_0x132604['mapper']['toViewElement'](_0x25284d);if(_0x10d1da&&_0x10d1da['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3344ee['type']&&(_0x260264['isBlock'](_0x25284d)&&!_0x260264['isLimit'](_0x25284d)&&(_0x25284d['nextSibling']||_0x3f156e['isAtEnd']?_0xd38b3d&&_0xd38b3d['parent']==_0x25284d||(_0xd38b3d=_0x25284d,_0xe7f395(_0x3344ee['previousPosition']),_0x1dbf3c=!0x0):_0x4f64e5=_0x4f64e5||_0x3344ee['previousPosition']));}function _0xe7f395(_0x4d2909){const _0x4d602c=_0x132604['mapper']['toViewPosition'](_0x4d2909),_0x223fb0=_0x132604['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x182481});_0x132604['writer']['insert'](_0x4d602c,_0x223fb0),_0x132604['mapper']['bindElementToMarker'](_0x223fb0,_0x3ad6fd['markerName']);}_0x18b090||_0x1dbf3c||!_0x4f64e5||_0xe7f395(_0x4f64e5);};}class yt extends _0x50220e{constructor(_0x5cee0b){super(_0x5cee0b);const _0x3566b0=_0x5cee0b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3566b0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3566b0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3a1bea=this['editor'],_0x1a1e8e=_0x3a1bea['plugins']['get'](d),_0x38a29d=_0x1a1e8e['isReady']?_0x1a1e8e['diff']['newRevisionId']:null;_0x3a1bea['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x38a29d);}['refresh'](){const {isReady:_0x2cede6,isEnabled:_0x530bb5,repository:_0x286ee0,diff:_0x2b0070}=this['editor']['plugins']['get'](d),_0xb0e4e7=_0x2b0070&&_0x286ee0['getLaterVisibleRevision'](_0x2b0070['newRevisionId']);this['isEnabled']=_0x2cede6&&_0x530bb5&&Boolean(_0xb0e4e7);}}class bt extends _0x50220e{['_step'];constructor(_0x5a1f3b,{direction:_0x36bca7}){super(_0x5a1f3b);const _0x5be68a=_0x5a1f3b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x36bca7?0x1:-0x1,this['listenTo'](_0x5be68a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5be68a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5be68a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x495dbf=this['editor'],_0x32c89b=_0x495dbf['plugins']['get'](d),{isNavigationMode:_0x4684d2,currentChangeNumber:_0x17d838}=_0x32c89b;let _0x7fb7e5;if(_0x32c89b['activeChange']=_0x4684d2?_0x32c89b['diff']['changes']['get'](_0x17d838+this['_step']):_0x32c89b['diff']['changes']['first'],_0x32c89b['activeChange']['data']['isOnRoot'])_0x7fb7e5=_0x495dbf['editing']['view']['getDomRoot'](_0x32c89b['activeChange']['rootName']);else{const _0xa64f66=_0x495dbf['model']['markers']['get']('revision:'+_0x32c89b['activeChange']['id']);_0x7fb7e5=_0x295fc2(_0x495dbf['editing'],_0xa64f66);}_0x8b495d({'target':_0x7fb7e5,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x18f13a,currentChangeNumber:_0x5c5012,numberOfChanges:_0x271b2c,isReady:_0xd0690c,isEnabled:_0x1ad3a1}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1ad3a1&&_0xd0690c&&_0x271b2c)&&(!_0x18f13a||(0x1===this['_step']?_0x5c5012<_0x271b2c-0x1:_0x5c5012>0x0));}}class bi extends _0x368c30{constructor(_0x17077b){super(_0x17077b);const _0x35adaa=this['bindTemplate'],_0x22e447=new _0x5bb200(_0x17077b),_0x40c139=new _0x5bb200(_0x17077b);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',(_0x2f1105,_0x1bcf01)=>_0x2f1105&&_0x1bcf01>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x44ae83,_0x3cc283,_0x2e93eb,_0x4da5ea)=>{if(!_0x44ae83)return R(_0x17077b,'Loading...');if(!_0x2e93eb)return R(_0x17077b,'No\x20changes');const _0x2310a2=R(_0x17077b,'NUMBER_OF_CHANGES',_0x2e93eb);return _0x4da5ea?R(_0x17077b,'X_OF_Y_CHANGES',[_0x3cc283+0x1,_0x2e93eb]):_0x2310a2;}),_0x22e447['set']({'label':R(_0x17077b,'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'}),_0x40c139['set']({'label':R(_0x17077b,'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'}),_0x22e447['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x40c139['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x22e447['on']('execute',()=>this['fire']('execute','backward')),_0x40c139['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',_0x35adaa['if']('_isStatusLabelVisible','ck-hidden',_0x4b9b60=>!_0x4b9b60)]},'children':[{'text':_0x35adaa['to']('isNavigationMode',_0xdc6c3a=>_0xdc6c3a?R(_0x17077b,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x17077b,'Total')+':\x20')}]},{'text':_0x35adaa['to']('_statusText')}]},new _0x2c3281(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x22e447,_0x40c139]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0xfededa{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x40e151=this['editor']['editing']['view'];_0x40e151['change'](_0x1ffc8d=>{for(const _0x362abd of _0x40e151['document']['roots'])_0x1ffc8d['addClass'](ie,_0x362abd);});}['hide'](){const _0x462711=this['editor']['editing']['view'];_0x462711['change'](_0x4ffd20=>{for(const _0x48ce76 of _0x462711['document']['roots'])_0x4ffd20['removeClass'](ie,_0x48ce76);});}}class m extends _0xfededa{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x138f7e=this['editor'],_0x304857=_0x138f7e['plugins']['get'](d),_0x2df87a=_0x138f7e['plugins']['get'](te);_0x138f7e['ui']['componentFactory']['add']('exitToEditing',_0xac334d=>{const _0x19d697=new _0x5bb200(_0xac334d);return _0x19d697['set']({'label':R(_0xac334d,'Back\x20to\x20editing'),'icon':_0x4d2fdd['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x19d697,'execute',()=>{_0x138f7e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x19d697;}),_0x138f7e['ui']['componentFactory']['add']('restoreRevision',_0x221234=>{const _0x2618f7=new _0x5bb200(_0x221234);return _0x2618f7['set']({'label':R(_0x221234,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2618f7['bind']('isEnabled')['to'](_0x138f7e['commands']['get']('restoreRevision')),this['listenTo'](_0x2618f7,'execute',()=>_0x138f7e['execute']('restoreRevision')),_0x2618f7;}),_0x138f7e['ui']['componentFactory']['add']('changesNavigation',_0x287de6=>{const _0x3deb86=new bi(_0x287de6),_0x64445b=_0x138f7e['commands']['get']('showPreviousChange'),_0x6b3871=_0x138f7e['commands']['get']('showNextChange');return _0x3deb86['bind']('isBackwardNavigationEnabled')['to'](_0x64445b,'isEnabled'),_0x3deb86['bind']('isForwardNavigationEnabled')['to'](_0x6b3871,'isEnabled'),_0x3deb86['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x304857),this['listenTo'](_0x3deb86,'execute',(_0x184fad,_0x4d6b15)=>{_0x138f7e['execute']('forward'===_0x4d6b15?'showNextChange':'showPreviousChange');}),_0x3deb86;}),_0x2df87a['show'](),_0x304857['on']('change:isReady',(_0x4a9a7f,_0xf8c7ba,_0xa43334)=>{_0xa43334?_0x2df87a['hide']():_0x2df87a['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x455424,_0x2fe2ac){super(_0x455424,_0x2fe2ac);const _0x3fc701=this['bindTemplate'];this['set']({'label':R(_0x455424,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x455424,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3fc701['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x561a8e=this['fieldView']['element'];this['_tooltipString']=_0x561a8e['scrollWidth']>_0x561a8e['clientWidth']&&_0x561a8e['value']||'';}}class ti extends _0x368c30{constructor(_0x4010f1,_0x501294,_0x467940){super(_0x4010f1);const _0x2a7b95=new _0x551b28();_0x2a7b95['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 _0x2d24ad=['ck','ck-revision-history-sidebar__revision-author'];_0x467940&&_0x2d24ad['push']('ck-revision-history-sidebar__revision-author_creator');const _0x23922f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x4010f1,_0x467940?'Revision\x20creator':'Revision\x20author')},'children':[_0x2a7b95,_0x501294['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2d24ad},'children':_0x23922f});}}function ni(_0x5389fd,_0x93ce7d){const _0x395a20=_0x5389fd['bindTemplate'],_0x299367=_0x5389fd['locale'],_0x49ad25=_0x548592(_0x299367);_0x49ad25['panelPosition']='sw';const _0x1af646=function(_0x52089e,_0x1e3fc7){const _0x149c61=function(_0x36bcd9,_0x43a828){const _0x5868cb=_0x36bcd9['locale'],_0xd0eb58={'Compare\x20against\x20selected':R(_0x5868cb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5868cb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5868cb,'Restore\x20this\x20revision')};return _0x43a828['map'](_0x3ceb93=>{const _0x47ecc9=_0xd0eb58[_0x3ceb93['name']];return _0x47ecc9&&_0x47ecc9!==_0x3ceb93['name']&&(_0x3ceb93['name']=_0x47ecc9),_0x3ceb93;});}(_0x52089e,_0x1e3fc7),_0x3d234a=new _0x43490f();for(const _0x37dd30 of _0x149c61){const _0x5b02b5={'type':'button','model':new to({'label':_0x37dd30['name'],'class':_0x37dd30['class'],'withText':!0x0,'role':'menuitem','_action':_0x37dd30['action']})};_0x5b02b5['model']['bind']('isEnabled')['to'](_0x52089e,'isActionsDropdownOpen',_0x9a2e50=>'function'!=typeof _0x37dd30['isEnabled']||(!_0x9a2e50||_0x37dd30['isEnabled'](_0x52089e))),_0x3d234a['add'](_0x5b02b5);}return _0x3d234a;}(_0x5389fd,_0x93ce7d);return _0x5389fd['bind']('isActionsDropdownOpen')['to'](_0x49ad25,'isOpen'),_0x49ad25['buttonView']['set']({'label':R(_0x299367,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4d2fdd['threeVerticalDots']}),_0x49ad25['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x395a20['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x395a20['to'](_0x63847b=>_0x63847b['stopPropagation']())}}),_0x49ad25['on']('execute',_0x13a81d=>{_0x5389fd['isReady']&&'function'==typeof _0x13a81d['source']['_action']&&_0x13a81d['source']['_action'](_0x5389fd);}),_0x1314ec(_0x49ad25,_0x1af646,{'role':'menu'}),_0x49ad25['listenTo'](_0x5389fd,'change:isActionsDropdownOpen',(_0x4c450e,_0x709a48,_0x5c3885)=>{if(_0x5c3885)for(const _0x2fd5a1 of _0x49ad25['listView']['items']){const _0xb594d3=_0x2fd5a1['children']['first'],_0x3c3446=_0x93ce7d['find'](_0x545543=>_0x545543['action']===_0xb594d3['_action'])['isVisible'];_0x2fd5a1['isVisible']=void 0x0===_0x3c3446||_0x3c3446(_0x5389fd);}}),_0x49ad25;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x342b0d(_0x368c30){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5521f7,_0x2b7617,_0x2ef1fc,_0x1a2c78){super(_0x5521f7);const _0x451b56=this['bindTemplate'],_0x5c70b5=function(_0x40ae55,_0x5c06a4){const _0xc4809d=Array['from'](_0x5c06a4['authors'])['filter'](_0x168780=>_0x168780!=_0x5c06a4['creator']);return _0x5c06a4['creator']&&_0xc4809d['unshift'](_0x5c06a4['creator']),_0xc4809d['map'](_0x398808=>new ti(_0x40ae55,_0x398808,_0x398808==_0x5c06a4['creator']));}(_0x5521f7,_0x2b7617);this['id']=_0x2b7617['id'],this['_revision']=_0x2b7617,this['_requireRevisionName']=_0x1a2c78,this['bind']('name','createdAt')['to'](_0x2b7617),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4d066f=>{return _0x113af0=_0x5521f7['uiLanguage'],(_0x34ff4c=_0x4d066f)['toLocaleDateString'](_0x113af0,{'month':'long','day':'numeric'})+',\x20'+_0x34ff4c['toLocaleTimeString'](_0x113af0,{'hour':'numeric','minute':'numeric'});var _0x113af0,_0x34ff4c;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x5521f7,_0x5dff9e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xa72ace=>_0xa72ace||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xc31f59,_0x400145)=>_0xc31f59&&_0x400145),this['revisionActionsView']=_0x2ef1fc&&_0x2ef1fc['length']?ni(this,_0x2ef1fc):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x451b56['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x451b56['if']('isEnabled','ck-disabled',_0x38ec93=>!_0x38ec93),_0x451b56['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x451b56['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x451b56['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':_0x451b56['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':_0x5c70b5}]},this['revisionActionsView']],'on':{'click':_0x451b56['to'](_0x3d9219=>{_0x3d9219['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x18e621=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x18e621,'change',()=>{this['_requireRevisionName']&&!_0x18e621['value']||this['fire']('setName',{'id':this['id'],'name':_0x18e621['value']}),_0x18e621['value']||(_0x18e621['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(_0x582356,_0x1cbb82){const _0x336193=_0x2859dd['fromJSDate'](_0x582356)['setLocale'](_0x1cbb82),_0x43b9e5=_0x2859dd['local'](),_0xab4163=_0x43b9e5['minus']({'days':0x1})['startOf']('day');let _0x54fc1f,_0x124c69;return _0x336193['hasSame'](_0x43b9e5,'day')?(_0x54fc1f=_0x336193['startOf']('day')['toJSDate'](),_0x124c69=_0x336193['toRelativeCalendar']()):_0x336193['hasSame'](_0xab4163,'day')?(_0x54fc1f=_0xab4163['toJSDate'](),_0x124c69=_0x336193['toRelativeCalendar']()):_0x336193['hasSame'](_0x43b9e5,'week')?(_0x54fc1f=_0x336193['startOf']('week')['toJSDate'](),_0x124c69=_0x336193['weekdayLong']||''):_0x336193['hasSame'](_0x43b9e5,'year')?(_0x54fc1f=_0x336193['startOf']('month')['toJSDate'](),_0x124c69=_0x336193['monthLong']||''):(_0x54fc1f=_0x336193['startOf']('year')['toJSDate'](),_0x124c69=String(_0x336193['year'])),{'startDate':_0x54fc1f,'localizedPeriodName':_0x124c69};}class mi extends _0x368c30{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4f9031,_0x3b9261,_0x21420b,_0x354c77){super(_0x4f9031);const _0x4a215a=di(_0x3b9261,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3b9261,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x21420b,this['_requireRevisionName']=_0x354c77,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':_0x4a215a}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xe474cf){const _0x2bd119=new ai(this['locale'],_0xe474cf,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2bd119);}['removeRevision'](_0x4be4d1){const _0x3075ff=this['revisionViews']['find'](_0x7c9d0=>_0x7c9d0['id']===_0x4be4d1['id']);this['revisionViews']['remove'](_0x3075ff);}}class rs extends _0x368c30{constructor(_0x1c1e3f){super(_0x1c1e3f);const _0x379635=new _0x551b28();_0x379635['content']=_0x4d2fdd['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x379635,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1c1e3f,'Revision\x20history')]}]});}}class ci extends _0x368c30{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3540cd,_0x23e8e2,_0x3c294d,_0x26c629){super(_0x3540cd);const _0x38ddef=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x23e8e2,this['_revisionActions']=_0x3c294d,this['_requireRevisionName']=_0x26c629,this['on']('select',(_0x32428d,_0x184c23)=>{this['fire']('revisionSelected',_0x184c23);}),this['on']('setName',(_0xcfa8e3,_0x43d511)=>{this['fire']('revisionSetName',_0x43d511);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x3540cd),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x38ddef['if']('isEnabled','ck-disabled',_0xf7260d=>!_0xf7260d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1c0cfc of this['_revisions'])this['_addRevision'](_0x1c0cfc);this['_revisions']['on']('add',(_0x517f04,_0x884ddd)=>{this['_addRevision'](_0x884ddd);}),this['_revisions']['on']('remove',(_0x154f8b,_0x590a12)=>{this['_removeRevision'](_0x590a12);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3f9948=>_0x3f9948['revisionViews']['map'](_0x2ab5f4=>_0x2ab5f4))['flat']();}['selectRevision'](_0x54f43c){for(const _0x15c27d of this['revisionViews'])_0x54f43c&&_0x54f43c['id']===_0x15c27d['id']?_0x15c27d['select']():_0x15c27d['deselect']();}['highlightRevisions'](_0x3edd96){for(const _0x1daad3 of this['revisionViews'])_0x3edd96['some'](({id:_0x2fe4a1})=>_0x2fe4a1===_0x1daad3['id'])?_0x1daad3['highlight']():_0x1daad3['unhighlight']();}['_addRevision'](_0x44f3f6){const _0x5dd229=di(_0x44f3f6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x390eee=this['timePeriodViews']['get'](0x0);_0x390eee&&_0x390eee['startDate']['getTime']()===_0x5dd229['getTime']()||(_0x390eee=new mi(this['locale'],_0x5dd229,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x390eee)),_0x390eee['addRevision'](_0x44f3f6);}['_removeRevision'](_0x3b429a){const _0x26d0c3=di(_0x3b429a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x26d0c3)['removeRevision'](_0x3b429a);}['_getTimePeriodViewByStartDate'](_0x60f8ce){return this['timePeriodViews']['find'](_0x1b9392=>_0x1b9392['startDate']['getTime']()===_0x60f8ce['getTime']());}}class g extends _0xfededa{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0xaf4875,uid as _0x5168c7,Collection as _0x1ffe77,logWarning as _0x4648e4,FocusTracker as _0x325c49,KeystrokeHandler as _0x3f50e3,scrollViewportToShowTarget as _0x24b293,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x3fa815}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x10dfce,set as _0x1b0c74,unset as _0x25300e,isEqual as _0x525435}from'lodash-es';import{Plugin as _0x5951b8,PendingActions as _0x422bcb,icons as _0x10c6a8,Command as _0x5da42d,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xf71a07,getMarkerDomElement as _0x408031,ConfirmMixin as _0x17991f,sanitizeEditorConfig as _0x19230e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x52f59f,ViewText as _0x176147,ViewElement as _0x241c33,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x3c99dc,ViewAttributeElement as _0x1830f5,ViewEmptyElement as _0x4028f0,ViewRawElement as _0xba7a0d,ViewUIElement as _0x5bc111,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x37329d,submitHandler as _0x43fe95,LabeledFieldView as _0x354fa9,createLabeledInputText as _0x1a2f3e,createDropdown as _0x3b3239,ListView as _0x49de68,ListItemView as _0xb8fceb,ButtonView as te,MenuBarMenuView as _0x5b4880,MenuBarMenuListView as _0x40a26d,MenuBarMenuListItemView as _0x257cab,MenuBarMenuListItemButtonView as _0x3c210a,ContextualBalloon as _0x4588f0,ToolbarSeparatorView as _0x17a559,IconView as _0x48ee11,addListToDropdown as to,ViewModel as _0x16cba2,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4efa5}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0xaf4875(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3b2aad){super(),this['id']=_0x3b2aad['id']||_0x5168c7(),this['creator']=_0x3b2aad['creator']||null,this['authors']=_0x3b2aad['authors']||[],this['diffData']=_0x3b2aad['diffData']||null,this['toVersion']=_0x3b2aad['toVersion']||0x0,this['fromVersion']=_0x3b2aad['fromVersion']||0x0,this['set']('name',_0x3b2aad['name']||''),this['set']('createdAt',_0x3b2aad['createdAt']||new Date()),this['set']('attributes',_0x3b2aad['attributes']||{});}['setName'](_0x391e2c){this['_update']({'name':_0x391e2c});}['setAttribute'](_0x48042b,_0x209119){const _0x131827=_0x10dfce(this['attributes']);_0x1b0c74(_0x131827,_0x48042b,_0x209119),this['_update']({'attributes':_0x131827});}['removeAttribute'](_0x2465d1){const _0x4ff96b=_0x10dfce(this['attributes']);_0x25300e(_0x4ff96b,_0x2465d1),this['_update']({'attributes':_0x4ff96b});}['_update'](_0x213d4e,_0x13a453=!0x1){let _0x9e0894=!0x1;const _0x3412ba={'id':this['id']},_0x2a6285=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x238107 of _0x2a6285){const _0x5b59eb=_0x213d4e[_0x238107];void 0x0!==_0x5b59eb&&_0x5b59eb!==this[_0x238107]&&(this[_0x238107]=_0x5b59eb,_0x3412ba[_0x238107]=_0x5b59eb,_0x9e0894=!0x0);}_0x9e0894&&(_0x3412ba['authors']&&(_0x3412ba['authorsIds']=_0x3412ba['authors']['map'](_0xde6a19=>_0xde6a19['id']),delete _0x3412ba['authors']),this['fire']('_update',_0x3412ba,_0x13a453));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x49ae29=>_0x49ae29['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5951b8{['_revisions'];static get['requires'](){return[_0xf71a07];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x29c795){super(_0x29c795),this['_revisions']=new _0x1ffe77();}['afterInit'](){!async function(_0x47c208){const _0x42bcf6=_0x1479c5([0x34,0x58,0x36,0x66,0x37,0x54,0x52,0x39,0x75,0x55,0x78,0x43,0x35,0x65,0x4b,0x5a,0x33,0x64,0x73,0x70,0x30,0x41,0x6f,0x31,0x62,0x76,0x47,0x50,0x4e,0x71,0x72,0x49,0x69,0x6a,0x45,0x79,0x48,0x6d,0x56,0x51,0x4d,0x4a,0x6b,0x57,0x42,0x38,0x74,0x6c,0x53,0x4c,0x46,0x59,0x77,0x61,0x32,0x68,0x7a,0x44,0x67,0x63,0x6e,0x4f]),_0x5d96c9=0xeb829,_0xd0be81=0x6b1a05fc,_0x54b42c=0x6b1d5f7c^_0xd0be81,_0x2752bc=window[_0x1479c5([0x44,0x61,0x74,0x65])][_0x1479c5([0x6e,0x6f,0x77])](),_0x2bdacb=_0x47c208[_0x1479c5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44e49c=new window[(_0x1479c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd80f=>{_0x2bdacb[_0x1479c5([0x6f,0x6e,0x63,0x65])](_0x1479c5([0x72,0x65,0x61,0x64,0x79]),_0x2dd80f);}),_0x32c366={[_0x1479c5([0x6b,0x74,0x79])]:_0x1479c5([0x45,0x43]),[_0x1479c5([0x75,0x73,0x65])]:_0x1479c5([0x73,0x69,0x67]),[_0x1479c5([0x63,0x72,0x76])]:_0x1479c5([0x50,0x2d,0x32,0x35,0x36]),[_0x1479c5([0x78])]:_0x1479c5([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]),[_0x1479c5([0x79])]:_0x1479c5([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]),[_0x1479c5([0x61,0x6c,0x67])]:_0x1479c5([0x45,0x53,0x32,0x35,0x36])},_0x2eb55c=_0x2bdacb[_0x1479c5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1479c5([0x67,0x65,0x74])](_0x1479c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x258425(){let _0x8f8319,_0x190bd6=null,_0x1b76cc=null;try{if(_0x2eb55c==_0x1479c5([0x47,0x50,0x4c]))return _0x1479c5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8f8319=_0x4be7e3(),!_0x8f8319)return _0x1479c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8f8319[_0x1479c5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b76cc=_0x1d4e08(_0x8f8319[_0x1479c5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8f8319[_0x1479c5([0x6a,0x74,0x69])])),await _0x381008()?_0xf2f80f()?_0x38774f()?_0x1479c5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59d270()?(_0x8f8319[_0x1479c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1479c5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x190bd6=_0x2fa0f3(_0x1479c5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8f8319[_0x1479c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1479c5([0x74,0x72,0x69,0x61,0x6c])&&(_0x190bd6=_0x2fa0f3(_0x1479c5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x8f8319[_0x1479c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1479c5([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x190bd6=_0x2fa0f3(_0x1479c5([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x572d7a()):_0x1479c5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1479c5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1479c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x193305){return _0x1479c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38774f(){const _0x3bef85=[_0x1479c5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1479c5([0x74,0x72,0x69,0x61,0x6c])][_0x1479c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8f8319[_0x1479c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2752bc/0x3e8:0xe10*_0x54b42c;return _0x8f8319[_0x1479c5([0x65,0x78,0x70])]<_0x3bef85;}function _0xf2f80f(){const _0x5aed02=_0x8f8319[_0x1479c5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aed02)return!0x1;if(_0x5aed02[_0x1479c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1479c5([0x2a])))return!0x0;if(_0x5aed02[_0x1479c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1479c5([0x52,0x48])))return!0x0;if(_0x5aed02[_0x1479c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1479c5([0x52,0x52,0x48]))){if(_0x57faa6())return!0x0;if(_0x26fa52()||_0x437da1())return!0x0;}return!0x1;}function _0x59d270(){const _0x36967e=_0x8f8319[_0x1479c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36967e||0x0==_0x36967e[_0x1479c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x436374}=new URL(window[_0x1479c5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x36967e[_0x1479c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x436374))return!0x0;const _0x43aa8e=_0x436374[_0x1479c5([0x73,0x70,0x6c,0x69,0x74])](_0x1479c5([0x2e]));return _0x36967e[_0x1479c5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fd1fd=>_0x4fd1fd[_0x1479c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1479c5([0x2a])))[_0x1479c5([0x6d,0x61,0x70])](_0x354026=>_0x354026[_0x1479c5([0x73,0x70,0x6c,0x69,0x74])](_0x1479c5([0x2e])))[_0x1479c5([0x73,0x6f,0x6d,0x65])](_0x1830d4=>_0x43aa8e[_0x1479c5([0x65,0x76,0x65,0x72,0x79])]((_0x26c6e1,_0x25f6bc)=>_0x1830d4[_0x25f6bc]===_0x26c6e1||_0x1830d4[_0x25f6bc]===_0x1479c5([0x2a])));}function _0x572d7a(){return _0x190bd6&&_0x1b76cc?new window[(_0x1479c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x362e82,_0x311a19)=>{_0x190bd6[_0x1479c5([0x74,0x68,0x65,0x6e])](_0x362e82,_0x311a19),_0x1b76cc[_0x1479c5([0x74,0x68,0x65,0x6e])](_0x10a06a=>{_0x10a06a!=_0x1479c5([0x56,0x61,0x6c,0x69,0x64])&&_0x362e82(_0x10a06a);},_0x311a19);}):_0x190bd6||_0x1b76cc||_0x1479c5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d4e08(_0x5b5fbd,_0x282c6a){return new window[(_0x1479c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39bec6=>{if(_0x460200())return _0x39bec6(_0x1479c5([0x56,0x61,0x6c,0x69,0x64]));_0x24f8cf(),_0x2bdacb[_0x1479c5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1479c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b98c5=!0x1;const _0x561e7d=_0x5168c7();function _0x5f4e21(_0x336c1d){return!!_0x336c1d&&(typeof _0x336c1d===_0x1479c5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x336c1d===_0x1479c5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x336c1d[_0x1479c5([0x74,0x68,0x65,0x6e])]===_0x1479c5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x336c1d[_0x1479c5([0x63,0x61,0x74,0x63,0x68])]===_0x1479c5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x353e3c(_0xc53dd6){_0x2b93ac(_0xc53dd6)[_0x1479c5([0x74,0x68,0x65,0x6e])](_0x2db104=>{if(!_0x2db104||_0x2db104[_0x1479c5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1479c5([0x6f,0x6b]))return _0x1479c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f6337(_0x3d79dc(_0x561e7d+_0x282c6a))!=_0x2db104[_0x1479c5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1479c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1479c5([0x56,0x61,0x6c,0x69,0x64]);})[_0x1479c5([0x74,0x68,0x65,0x6e])](_0x490d8e=>(_0x13282b(),_0x490d8e),()=>{const _0x391f8b=_0x17d979();return null==_0x391f8b?(_0x13282b(),_0x1479c5([0x56,0x61,0x6c,0x69,0x64])):_0x1479c5(_0x2752bc-_0x391f8b>(0x4f1681fc^_0xd0be81)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1479c5([0x74,0x68,0x65,0x6e])](_0x39bec6)[_0x1479c5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39bec6(_0x1479c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39d9a2=0x6b2ceb7c^_0xd0be81;function _0x13282b(){const _0x34990c=_0x1479c5([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f6337(_0x3d79dc(_0x5b5fbd)),_0x3613df=_0x40a198(_0x2f6337(window[_0x1479c5([0x4d,0x61,0x74,0x68])][_0x1479c5([0x63,0x65,0x69,0x6c])](_0x2752bc/_0x39d9a2)));window[_0x1479c5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1479c5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34990c,_0x3613df);}function _0x17d979(){const _0x2c7952=_0x1479c5([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f6337(_0x3d79dc(_0x5b5fbd)),_0x693cb2=window[_0x1479c5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1479c5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c7952);return _0x693cb2?window[_0x1479c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40a198(_0x693cb2),0x10)*_0x39d9a2:null;}function _0x2b93ac(_0x543a95){return new window[(_0x1479c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22f857,_0x1555f5)=>{_0x543a95[_0x1479c5([0x74,0x68,0x65,0x6e])](_0x22f857,_0x1555f5),window[_0x1479c5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1555f5,0x6b1bd13c^_0xd0be81);});}}_0x2bdacb[_0x1479c5([0x6f,0x6e])](_0x1479c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41096a,_0x22d0f5)=>{if(_0x22d0f5[0x0]!=_0x5b5fbd)return _0x39bec6(_0x1479c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22d0f5[0x1]={..._0x22d0f5[0x1],[_0x1479c5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x561e7d};},{[_0x1479c5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1479c5([0x68,0x69,0x67,0x68])}),_0x2bdacb[_0x1479c5([0x6f,0x6e])](_0x1479c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fc92d=>{_0x5f4e21(_0x1fc92d[_0x1479c5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b98c5=!0x0,_0x353e3c(_0x1fc92d[_0x1479c5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1479c5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1479c5([0x6c,0x6f,0x77])}),_0x44e49c[_0x1479c5([0x74,0x68,0x65,0x6e])](()=>{_0x1b98c5||_0x39bec6(_0x1479c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x460200(){return _0x2bdacb[_0x1479c5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1479c5([0x76,0x69,0x65,0x77])][_0x1479c5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1479c5([0x61,0x75,0x74,0x6f]);}function _0x24f8cf(){_0x2bdacb[_0x1479c5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1479c5([0x76,0x69,0x65,0x77])][_0x1479c5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1479c5([0x61,0x75,0x74,0x6f]);}}function _0x2fa0f3(_0x4e7898){const _0x3b8385=[new window[(_0x1479c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1731=>setTimeout(_0x4e1731,0x6b133b30^_0xd0be81)),_0x44e49c[_0x1479c5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1479c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55cda5=>{const _0x1526ee=0x6b1a05fb^_0xd0be81,_0x47562b=_0x47c208[_0x1479c5([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x30520b(){_0x47562b[_0x1479c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1526ee&&_0x55cda5();}_0x30520b(),_0x47562b[_0x1479c5([0x6f,0x6e])](_0x1479c5([0x61,0x64,0x64]),_0x30520b);})),new window[(_0x1479c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x472a65=>{function _0x1ab5e7(){for(const _0x4e1794 in window)if(window[_0x1479c5([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1479c5([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e1794))&&window[_0x4e1794]==_0x5d96c9)return _0x472a65();_0x2bdacb[_0x1479c5([0x73,0x74,0x61,0x74,0x65])]!=_0x1479c5([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1479c5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ab5e7,0x6b1a1674^_0xd0be81);}_0x4f3a8a(_0x1479c5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1ab5e7();})];return window[_0x1479c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1479c5([0x72,0x61,0x63,0x65])](_0x3b8385)[_0x1479c5([0x74,0x68,0x65,0x6e])](()=>_0x4e7898);}async function _0x55f793(){if(await _0x44e49c,_0x4f3a8a(_0x1479c5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x514044=_0x47c208[_0x1479c5([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x38c93c=_0x47c208[_0x1479c5([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])](_0x514044[_0x1479c5([0x69,0x64])]),_0x43eb7d=_0x1b9f2d(_0x1479c5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x43eb7d[_0x1479c5([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x514044['id'],_0x38c93c?_0x38c93c['id']:null,!0x0),_0x43eb7d[_0x1479c5([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1479c5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x43eb7d[_0x1479c5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x43eb7d[_0x1479c5([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x75febb,void(_0x43eb7d[_0x1479c5([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x75febb);}if(_0x4f3a8a(_0x1479c5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x131972=_0x1b9f2d(_0x1479c5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x131972[_0x1479c5([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1479c5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x131972[_0x1479c5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x131972[_0x1479c5([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x75febb,_0x131972[_0x1479c5([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x75febb;}_0x2bdacb[_0x1479c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1479c5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x75febb,_0x2bdacb[_0x1479c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1479c5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x75febb,_0x2bdacb[_0x1479c5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1479c5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x57faa6(){return _0x4f3a8a(_0x1479c5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1b9f2d(_0x1479c5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1479c5([0x73,0x74,0x61,0x74,0x65])]==_0x1479c5([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x26fa52(){return _0x4f3a8a(_0x1479c5([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 _0x437da1(){return _0x4f3a8a(_0x1479c5([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x112421(_0x39495a){const _0x916c3a=_0x2b1931();_0x2bdacb[_0x916c3a]=_0x1479c5([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])+_0x39495a,_0x39495a[_0x1479c5([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1479c5([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2b1931()]=_0x5d96c9),_0x39495a!=_0x1479c5([0x56,0x61,0x6c,0x69,0x64])&&_0x55f793();}function _0x2b1931(){const _0x44d432=window[_0x1479c5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1479c5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1479c5([0x6e,0x6f,0x77])]())[_0x1479c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1479c5([0x2e]),'');let _0x2b969c=_0x1479c5([0x58]);for(let _0xf84275=0x0;_0xf84275<_0x44d432[_0x1479c5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf84275+=0x2){let _0x2afaee=window[_0x1479c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44d432[_0x1479c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf84275,_0xf84275+0x2));_0x2afaee>=_0x42bcf6[_0x1479c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2afaee-=_0x42bcf6[_0x1479c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b969c+=_0x42bcf6[_0x2afaee];}return _0x2b969c;}function _0x4be7e3(){const _0x7159de=_0x2eb55c[_0x1479c5([0x73,0x70,0x6c,0x69,0x74])](_0x1479c5([0x2e]));if(0x3!=_0x7159de[_0x1479c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16e02a(_0x7159de[0x1]);function _0x16e02a(_0x23421c){const _0x1ad1d8=_0x289198(_0x23421c);return _0x1ad1d8&&_0x3586ad()?_0x1ad1d8:null;function _0x3586ad(){const _0x17914f=_0x1ad1d8[_0x1479c5([0x6a,0x74,0x69])],_0x5a0e94=window[_0x1479c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17914f[_0x1479c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17914f[_0x1479c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1dcca8={..._0x1ad1d8,[_0x1479c5([0x6a,0x74,0x69])]:_0x17914f[_0x1479c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17914f[_0x1479c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1dcca8[_0x1479c5([0x76,0x63])],_0x3d79dc(_0x1dcca8)==_0x5a0e94;}}}async function _0x381008(){let _0x121464=!0x0;try{const _0x428034=_0x2eb55c[_0x1479c5([0x73,0x70,0x6c,0x69,0x74])](_0x1479c5([0x2e])),[_0x454bcb,_0x15ca0a,_0x9f2ec3]=_0x428034;return _0x423fd8(_0x454bcb),await _0x4e0b2f(_0x454bcb,_0x15ca0a,_0x9f2ec3),_0x121464;}catch(_0x181d38){return!0x1;}function _0x423fd8(_0x514236){const _0xf1657d=_0x289198(_0x514236);_0xf1657d&&_0xf1657d[_0x1479c5([0x61,0x6c,0x67])]==_0x1479c5([0x45,0x53,0x32,0x35,0x36])||(_0x121464=!0x1);}async function _0x4e0b2f(_0x678818,_0x5b77e7,_0x26ecfa){const _0x2dbb7e=window[_0x1479c5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1479c5([0x66,0x72,0x6f,0x6d])](_0x488408(_0x26ecfa),_0x2cc26a=>_0x2cc26a[_0x1479c5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4da72f=new window[(_0x1479c5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1479c5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x678818+_0x1479c5([0x2e])+_0x5b77e7),_0x92ad01=window[_0x1479c5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1479c5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x92ad01)return;const _0x3a7a80=await _0x92ad01[_0x1479c5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1479c5([0x6a,0x77,0x6b]),_0x32c366,{[_0x1479c5([0x6e,0x61,0x6d,0x65])]:_0x1479c5([0x45,0x43,0x44,0x53,0x41]),[_0x1479c5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1479c5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1479c5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x92ad01[_0x1479c5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1479c5([0x6e,0x61,0x6d,0x65])]:_0x1479c5([0x45,0x43,0x44,0x53,0x41]),[_0x1479c5([0x68,0x61,0x73,0x68])]:{[_0x1479c5([0x6e,0x61,0x6d,0x65])]:_0x1479c5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a7a80,_0x2dbb7e,_0x4da72f)||(_0x121464=!0x1);}}function _0x289198(_0x23a5fc){return _0x23a5fc[_0x1479c5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1479c5([0x65,0x79]))?JSON[_0x1479c5([0x70,0x61,0x72,0x73,0x65])](_0x488408(_0x23a5fc)):null;}function _0x488408(_0x158e50){return window[_0x1479c5([0x61,0x74,0x6f,0x62])](_0x158e50[_0x1479c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1479c5([0x2b]))[_0x1479c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1479c5([0x2f])));}function _0x3d79dc(_0x3b1261){let _0x45a0f1=0x1505;function _0x589f04(_0xf6c6ff){for(let _0x532494=0x0;_0x532494<_0xf6c6ff[_0x1479c5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x532494++){const _0x42d292=_0xf6c6ff[_0x1479c5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x532494);_0x45a0f1=(_0x45a0f1<<0x5)+_0x45a0f1+_0x42d292,_0x45a0f1&=_0x45a0f1;}}function _0x4fb44f(_0x1c24f9){Array[_0x1479c5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c24f9)?_0x1c24f9[_0x1479c5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fb44f):_0x1c24f9&&typeof _0x1c24f9==_0x1479c5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1479c5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c24f9)[_0x1479c5([0x73,0x6f,0x72,0x74])]()[_0x1479c5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x459431,_0x4545e9])=>{_0x589f04(_0x459431),_0x4fb44f(_0x4545e9);}):_0x589f04(window[_0x1479c5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c24f9));}return _0x4fb44f(_0x3b1261),_0x45a0f1>>>0x0;}function _0x2f6337(_0x450b6d){return _0x450b6d[_0x1479c5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1479c5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1479c5([0x30]));}function _0x40a198(_0x219b10){return _0x219b10[_0x1479c5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1479c5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1479c5([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f3a8a(_0x259f9c){return _0x2bdacb[_0x1479c5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1479c5([0x68,0x61,0x73])](_0x259f9c);}function _0x1b9f2d(_0x24c943){return _0x2bdacb[_0x1479c5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1479c5([0x67,0x65,0x74])](_0x24c943);}function _0x75febb(){}function _0x1479c5(_0x3faeb3){return _0x3faeb3['map'](_0x3ad57c=>String['fromCharCode'](_0x3ad57c))['join']('');}_0x112421(await _0x258425());}(this);}['createRevision'](_0x540650){const _0x5cb997=this['editor']['plugins']['get']('Users');return new a({'id':_0x540650['id'],'name':_0x540650['name'],'creator':_0x540650['creatorId']?_0x5cb997['getUser'](_0x540650['creatorId']):null,'diffData':_0x540650['diffData']||_0x540650['data'],'authors':_0x540650['authorsIds']['map'](_0x1bc7e0=>_0x5cb997['getUser'](_0x1bc7e0)),'createdAt':new Date(_0x540650['createdAt']),'attributes':_0x540650['attributes'],'fromVersion':_0x540650['fromVersion'],'toVersion':_0x540650['toVersion']});}['addRevision'](_0xdf60a0,_0x344ef8=0x0){this['_revisions']['add'](_0xdf60a0,_0x344ef8);}['getRevision'](_0x59cf96){return this['_revisions']['get'](_0x59cf96);}['getRevisions'](_0x264bf4={'toJSON':!0x1}){const _0x325dea=Array['from'](this['_revisions']);return _0x325dea['reverse'](),_0x264bf4['toJSON']?_0x325dea['map'](_0xacaada=>_0xacaada['toJSON']()):_0x325dea;}['getIndex'](_0x467978){return this['_revisions']['getIndex'](_0x467978);}['getEarlierVisibleRevision'](_0x3a1885){const [,_0x5d5691]=this['getRevisionsIterator'](_0x3a1885,{'direction':'earlier'});return _0x5d5691;}['getLaterVisibleRevision'](_0x3ba928){const [,_0x54467]=this['getRevisionsIterator'](_0x3ba928,{'direction':'later'});return _0x54467;}['getRevisionsInDiff'](_0x367d57){const _0x188f3d=[];for(const _0x3d1652 of this['getRevisionsIterator'](_0x367d57['newRevisionId']))if(_0x188f3d['push'](_0x3d1652),_0x3d1652['id']===_0x367d57['oldRevisionId'])break;return _0x188f3d;}*['getRevisionsIterator'](_0x1eeb4a,{direction:_0x5535f2='earlier',filter:_0x30b18c=()=>!0x0}={}){const _0x5eae49='earlier'===_0x5535f2?0x1:-0x1;let _0x52635f=this['_revisions']['get'](_0x1eeb4a),_0x296ced=this['getIndex'](_0x52635f);for(yield _0x52635f;_0x52635f;){if(_0x296ced+=_0x5eae49,_0x52635f=this['getRevision'](_0x296ced),!_0x52635f)return;_0x30b18c(_0x52635f)&&(yield _0x52635f);}}}function R(_0x478e4f,_0x1feb38,_0x1715d8){const t=_0x478e4f['t'];switch(_0x1feb38){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'},_0x1715d8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1715d8);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x3c99dc,'a':_0x1830f5,'e':_0x4028f0,'r':_0xba7a0d,'u':_0x5bc111};class l extends _0x5951b8{['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[_0xf71a07,j,_0x422bcb];}constructor(_0x511e25){super(_0x511e25),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4703a5=_0x5168c7();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4703a5},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 _0x1b27d8=this['repository']['getRevision'](0x0),_0x1bf277=_0x1b27d8&&null===_0x1b27d8['creator']?_0x1b27d8:null;if(this['_continueCurrentRevision']=!!_0x1bf277&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2a80b8=this['_source']['getCurrentRevisionId'](),_0x5adf31=this['repository']['getRevision'](_0x2a80b8);if(_0x5adf31)this['_startingVersion']=_0x5adf31['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5ca7ce=this['_source']['history']['_operations']['find'](_0x45ca0b=>!_0x45ca0b['_isInit']),_0x5326fb=_0x5ca7ce?_0x5ca7ce['baseVersion']:this['_source']['history']['version'];_0x1b27d8?(_0x1b27d8['toVersion']<_0x5326fb&&_0x1b27d8['_update']({'toVersion':_0x5326fb}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1bf277['id'],this['_startingVersion']=_0x1bf277['fromVersion']):(this['_startingVersion']=_0x1b27d8['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5326fb,this['_continueCurrentRevision']=!0x1);}}else _0x1bf277&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1bf277['toVersion'],this['editor']['model']['document']['history']['version']),_0x1bf277['fromVersion']===_0x1bf277['toVersion']?(0x0!==_0x1bf277['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1bf277['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1bf277['id'],this['_startingVersion']=_0x1bf277['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',_0x591b90=>!_0x591b90),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc387d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d78ec;for(const _0x3da115 in _0xc387d3){const _0x462660=_0x3da115,_0x2a8eb8=_0xc387d3[_0x462660];if('revisionHistoryLicenseKeyValid'==_0x2a8eb8||'revisionHistoryLicenseKeyInvalid'==_0x2a8eb8||'revisionHistoryLicenseKeyExpired'==_0x2a8eb8||'revisionHistoryLicenseKeyDomainLimit'==_0x2a8eb8||'revisionHistoryLicenseKeyNotAllowed'==_0x2a8eb8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2a8eb8||'revisionHistoryLicenseKeyTrialLimit'==_0x2a8eb8||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2a8eb8||'revisionHistoryLicenseKeyUsageLimit'==_0x2a8eb8){delete _0xc387d3[_0x462660],_0x4d78ec=_0x2a8eb8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4d78ec&&_0xc387d3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4d78ec&&_0xc387d3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4d78ec&&_0xc387d3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4d78ec&&_0xc387d3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4d78ec&&_0xc387d3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4d78ec&&_0xc387d3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4d78ec&&_0xc387d3['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4d78ec&&_0xc387d3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xcfe83f=this['repository']['getRevision'](0x0),_0x55573e=await this['getRevisionDocumentData'](_0xcfe83f),_0x1598e0=await this['getRevisionRootsAttributes'](_0xcfe83f);this['_replaceEditorDataWithRevisionData'](_0x55573e,_0x1598e0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x9d14f8){this['_source']=_0x9d14f8;}async['update'](){const _0x1c0481=await this['_source']['getLatestVersion']();if(_0x1c0481>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1ec9ad=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1c0481});_0x1ec9ad['authors']=_0x1ec9ad['authorsIds']['map'](_0x3f6647=>this['editor']['plugins']['get']('Users')['getUser'](_0x3f6647)),this['currentRevision']['_update'](_0x1ec9ad);}}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'](_0x5feac2={},_0x1ac75a=null){const _0x45e0f7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1ac75a>this['currentRevision']['toVersion']&&(_0x1ac75a=null),null===_0x1ac75a&&(_0x1ac75a=await this['_source']['getLatestVersion']());const _0x227a2b=this['_getFromVersion'](_0x1ac75a),_0xc22164=this['buildRevisionData']({'from':_0x227a2b,'to':_0x1ac75a});if(this['currentRevision']['toVersion']<_0x1ac75a){const _0xe96add=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1ac75a,'to':_0x1ac75a});_0xe96add['authors']=[],_0xe96add['authorsIds']=[],_0xe96add['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xe96add,!0x0),delete _0xe96add['authors'],_0x45e0f7['push'](_0xe96add);}_0x5feac2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5feac2['name']=_0x5feac2['name']||null,_0x5feac2['id']=_0x5feac2['id']||_0x5168c7(),_0x5feac2={..._0x5feac2,..._0xc22164};const _0x2b77e5=this['addRevisionData'](_0x5feac2);_0x45e0f7['push'](_0x5feac2);const _0x43762b=this['repository']['getIndex'](_0x2b77e5);if(0x0!==_0x43762b){const _0x648ce4=this['repository']['getRevision'](_0x43762b-0x1);if(_0x648ce4['fromVersion']!==_0x1ac75a){const _0x23ac0c=this['_revisionDataBuilder']['getData'](_0x1ac75a,_0x648ce4['toVersion']),_0xd0f3d8={'id':_0x648ce4['id'],'diffData':_0x23ac0c['diffData'],'authorsIds':_0x23ac0c['authorsIds'],'authors':_0x23ac0c['authorsIds']['map'](_0x4fc6a5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4fc6a5)),'fromVersion':_0x1ac75a};_0x648ce4===this['currentRevision']&&(_0xd0f3d8['createdAt']=new Date(_0x5feac2['createdAt']['getTime']()+0xa)),_0x648ce4['_update'](_0xd0f3d8,!0x0),delete _0xd0f3d8['authors'],_0x45e0f7['push'](_0xd0f3d8);}}if(this['adapter']){for(const _0x4cbfae of _0x45e0f7)this['_bufferUpdate'](_0x4cbfae['id'],_0x4cbfae,!0x0);this['sendBufferedUpdates']();}return _0x2b77e5;}['addRevisionData'](_0x3d0f16){const _0x37bf21=this['repository']['createRevision'](_0x3d0f16);return this['adapter']&&_0x37bf21['on']('_update',(_0x176810,_0x479dcc,_0x703480)=>{_0x703480||(this['_bufferUpdate'](_0x479dcc['id'],_0x479dcc,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x37bf21,this['_findInsertionIndex'](_0x37bf21)),_0x37bf21;}async['getRevisionDocumentData'](_0xfef448){await this['_loadRevisionData'](_0xfef448);const _0x28df1e={};for(const _0xa271a3 in _0xfef448['diffData']){if(_0xfef448['diffData'][_0xa271a3]['attachChange']&&!_0xfef448['diffData'][_0xa271a3]['attachChange']['isAttached'])continue;const _0x4c5e5b=this['_removeRevisionMarkers'](JSON['parse'](_0xfef448['diffData'][_0xa271a3]['insertions'])),_0x380192=this['editor']['editing']['view']['document'],_0x4bef6=new _0x52f59f(_0x380192,_0x4c5e5b['map'](_0x5ec4e0=>V(_0x5ec4e0,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x28df1e[_0xa271a3]=this['editor']['data']['processor']['toData'](_0x4bef6),this['editor']['data']['processor']['useFillerType']('default');}return _0x28df1e;}async['getRevisionRootsAttributes'](_0xe18f38){await this['_loadRevisionData'](_0xe18f38);const _0xee8d0b={};for(const _0x43f1f9 in _0xe18f38['diffData'])_0xe18f38['diffData'][_0x43f1f9]['attachChange']&&!_0xe18f38['diffData'][_0x43f1f9]['attachChange']['isAttached']||(_0xee8d0b[_0x43f1f9]=_0xe18f38['diffData'][_0x43f1f9]['attributesAfter']||{});return _0xee8d0b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x497d3c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1ec99b=0x0;_0x1ec99b<_0x497d3c['length'];_0x1ec99b++){const _0x32c80f=_0x497d3c[_0x1ec99b];let _0x3dca64=!0x1;for(const _0x5015ac of Object['keys'](_0x32c80f))void 0x0===_0x32c80f[_0x5015ac]?delete _0x32c80f[_0x5015ac]:'id'!==_0x5015ac&&(_0x3dca64=!0x0);_0x3dca64||(_0x497d3c[_0x1ec99b]=null);}if(_0x497d3c=_0x497d3c['filter'](_0x2c5c4d=>null!==_0x2c5c4d),!_0x497d3c['length'])return;for(let _0x51555c=0x0;_0x51555c<_0x497d3c['length'];_0x51555c++){const _0x45ff35=_0x497d3c[_0x51555c];void 0x0!==_0x45ff35['fromVersion']&&void 0x0===_0x45ff35['toVersion']&&(_0x45ff35['toVersion']=this['repository']['getRevision'](_0x45ff35['id'])['toVersion']),void 0x0!==_0x45ff35['toVersion']&&void 0x0===_0x45ff35['fromVersion']&&(_0x45ff35['fromVersion']=this['repository']['getRevision'](_0x45ff35['id'])['fromVersion']);}const _0x25c8d2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x497d3c,_0x25c8d2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2688f0=>{if(_0x2688f0){for(const _0x455334 of _0x2688f0)this['setRevisionData']({'id':_0x455334['id'],'createdAt':_0x455334['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x43dd46,_0x20facb){let _0x42fb20=this['editor']['config']['get']('initialData'),_0x2ccd8a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x42fb20){_0x42fb20={};for(const _0xb98c49 of this['editor']['model']['document']['getRootNames']())_0x42fb20[_0xb98c49]='';}if('string'==typeof _0x42fb20&&(_0x42fb20={'main':_0x42fb20}),void 0x0===_0x2ccd8a){_0x2ccd8a={};for(const _0x18e37e of this['editor']['model']['document']['getRootNames']())_0x2ccd8a[_0x18e37e]={};}let _0x1241c1=!0x1;const _0x3a42a1=Object['keys'](_0x42fb20),_0x5d4051=Object['keys'](_0x43dd46);for(const _0x1d230a of _0x3a42a1){if(_0x42fb20[_0x1d230a]!==_0x43dd46[_0x1d230a]&&''!==_0x42fb20[_0x1d230a]['trim']()){_0x1241c1=!0x0;break;}if(!_0x525435(_0x2ccd8a[_0x1d230a],_0x20facb[_0x1d230a])&&Object['keys'](_0x2ccd8a[_0x1d230a])['length']>0x0){_0x1241c1=!0x0;break;}}_0x1241c1||(_0x1241c1=_0x5d4051['some'](_0x2ed981=>!this['editor']['model']['document']['getRoot'](_0x2ed981))),_0x1241c1&&_0x4648e4('editor-initial-data-replaced-with-revision-data',{'editorData':_0x42fb20,'editorRootsAttributes':_0x2ccd8a,'revisionData':_0x43dd46,'revisionRootsAttributes':_0x20facb}),this['editor']['config']['set']('initialData',_0x43dd46),this['editor']['config']['set']('rootsAttributes',_0x20facb);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x20ed25=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x20ed25['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xe596d5){const _0x2fc441=this['repository']['getRevisions']();_0x2fc441['reverse']();let _0xb082fe=0x0;for(;_0xb082fe<_0x2fc441['length'];){const _0x3b25b4=_0x2fc441[_0xb082fe];if(_0x3b25b4===this['currentRevision']){_0xb082fe++;continue;}if(_0x3b25b4['id']===this['_initialRevisionId'])break;const _0x569f92=_0xe596d5['toVersion']-_0x3b25b4['toVersion']||_0xe596d5['fromVersion']-_0x3b25b4['fromVersion'];if(_0x569f92>0x0)break;if(_0x569f92<0x0)_0xb082fe++;else{if(!_0xe596d5['creator']&&_0x3b25b4['creator'])break;if(_0x3b25b4['creator']||!_0xe596d5['creator']){if(_0xe596d5['createdAt']>_0x3b25b4['createdAt'])break;_0xb082fe++;}else _0xb082fe++;}}return _0xb082fe;}['setRevisionData'](_0x3cbcb8){const _0x894636=this['repository']['getRevision'](_0x3cbcb8['id']);if(_0x3cbcb8['createdAt']&&(_0x3cbcb8['createdAt']=new Date(_0x3cbcb8['createdAt'])),_0x3cbcb8['authorsIds']){const _0x7d2682=this['editor']['plugins']['get']('Users');_0x3cbcb8['authors']=_0x3cbcb8['authorsIds']['map'](_0x106c0d=>_0x7d2682['getUser'](_0x106c0d));}_0x894636['_update'](_0x3cbcb8,!0x0);}['buildRevisionData']({revision:_0x3f86fc=null,from:_0x4d3254=null,to:_0x40369c=null}){_0x4d3254=null!==_0x4d3254?_0x4d3254:_0x3f86fc['fromVersion'],_0x40369c=null!==_0x40369c?_0x40369c:_0x3f86fc['toVersion'];const _0xd7c19c=this['_revisionDataBuilder']['getData'](_0x4d3254,_0x40369c),_0x38042f={'diffData':_0xd7c19c['diffData'],'authorsIds':_0xd7c19c['authorsIds'],'fromVersion':_0x4d3254,'toVersion':_0x40369c};if(!_0x3f86fc||_0x40369c!==_0x3f86fc['toVersion']){const _0xbae43b=_0x40369c-0x1,_0x537132=this['_source']['history']['getOperation'](_0xbae43b);_0x38042f['createdAt']=_0x537132&&_0x537132['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4d3254===this['_loadedStateData']['fromVersion']){for(const _0x5d8883 of this['_loadedStateData']['authors'])_0x38042f['authorsIds']['includes'](_0x5d8883['id'])||_0x38042f['authorsIds']['push'](_0x5d8883['id']);}return _0x38042f;}['_loadRevisionData'](_0x3b2328){if(!_0x3b2328||_0x3b2328['diffData'])return Promise['resolve']();{const _0x3453f9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3453f9,'revisionId':_0x3b2328['id']})['then'](_0x58d390=>{_0x3b2328['diffData']=_0x58d390['diffData'];});}}['_bufferUpdate'](_0x9b2a4b,_0x1500f3,_0xbdb3e3){if(this['_bufferedUpdates']['has'](_0x9b2a4b)){const _0x45a56e=this['_bufferedUpdates']['get'](_0x9b2a4b);_0x1500f3=_0xbdb3e3?{..._0x45a56e,..._0x1500f3}:{..._0x1500f3,..._0x45a56e};}this['_bufferedUpdates']['set'](_0x9b2a4b,_0x1500f3);}['_getFromVersion'](_0x5d24b7){const _0x2ffad5=this['repository']['getRevisions']();_0x2ffad5['reverse'](),_0x2ffad5['shift']();const _0x17761b=_0x2ffad5['find'](_0x21cae7=>_0x21cae7['toVersion']<=_0x5d24b7)['toVersion'];return _0x17761b<this['_startingVersion']?this['_startingVersion']:_0x17761b;}['_createInitialRevision'](_0xefb685){const _0x41636c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x41636c)this['_initialRevisionId']=_0x41636c['id'];else{const _0x47237b=!this['editor']['model']['document']['roots']['find'](_0x5566b1=>this['editor']['model']['hasContent'](_0x5566b1)),_0x29b780=this['editor']['plugins']['get']('Users')['me']['id'],_0x37c37a=R(this['editor']['locale'],_0x47237b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xefb685,'to':_0xefb685,'id':this['_initialRevisionId'],'name':_0x37c37a,'creatorId':_0x29b780});}}['_createCurrentRevision'](_0x1c4f76){const _0x2d203d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2d203d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1c4f76,'to':_0x1c4f76,'id':_0x2d203d,'name':'','creatorId':null}));}['_makeRevision']({name:_0x11718f,from:_0x57f35f,to:_0x3368c6,creatorId:_0x526f0d,id:_0x35ecd8}){const _0x489888=this['buildRevisionData']({'from':_0x57f35f,'to':_0x3368c6});_0x489888['name']=_0x11718f,_0x489888['creatorId']=_0x526f0d,_0x489888['id']=_0x35ecd8;const _0x3e56ae=this['addRevisionData'](_0x489888);return this['adapter']&&this['_bufferUpdate'](_0x489888['id'],_0x489888,!0x0),_0x3e56ae;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3edab9){return(_0x3edab9=_0x3edab9['filter'](_0xc7a9b2=>!_0xc7a9b2['name']||'revision-start'!==_0xc7a9b2['name']&&'revision-end'!==_0xc7a9b2['name']))['forEach'](_0x46ede0=>{'string'!=typeof _0x46ede0&&(_0x46ede0['children']=this['_removeRevisionMarkers'](_0x46ede0['children']),_0x46ede0['attributes']=_0x46ede0['attributes']['filter'](_0x2a0019=>!_0x2a0019[0x0]['startsWith']('data-revision-')));}),_0x3edab9;}}function V(_0xa5b0b6,_0x1a9e5a){const _0x5ef8d8=_0x1a9e5a['editing']['view']['document'];if('string'==typeof _0xa5b0b6)return new _0x176147(_0x5ef8d8,_0xa5b0b6);{const _0x3bb56b=_0xa5b0b6['children']['map'](_0x3866f1=>V(_0x3866f1,_0x1a9e5a));return new(C[_0xa5b0b6['type']]||_0x241c33)(_0x5ef8d8,_0xa5b0b6['name'],_0xa5b0b6['attributes'],_0x3bb56b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x58b21f){this['editor']=_0x58b21f,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'](_0x328775){this['source']=_0x328775;const _0x1b6f16=new Map(),_0x195287=new Map(),_0x5c87b5=this['editor']['model']['document']['roots']['map'](_0x34a7a4=>_0x34a7a4['rootName']);for(const _0x3547d3 of _0x5c87b5){const _0x47d7cc=this['editor']['model']['document']['getRoot'](_0x3547d3),_0x585ee1=F(_0x47d7cc);_0x1b6f16['set'](_0x3547d3,_0x585ee1),_0x195287['set'](_0x3547d3,Object['fromEntries'](_0x47d7cc['getAttributes']()));}const _0x480769=Array['from'](this['editor']['model']['markers'])['map'](_0x33d256=>[_0x33d256['name'],_0x33d256['getRange']()]),_0x187fa5=this['source']['version'];this['_saveMetaData'](_0x187fa5,_0x1b6f16,_0x480769,_0x195287),this['_startingRevisionId']=this['_revisionId'];const _0x60b657=new Map(),_0x3f154b=new Map();for(const _0x29fe1b of _0x5c87b5){const _0x48433a=B(_0x29fe1b);_0x60b657['set'](_0x29fe1b,_0x48433a),_0x3f154b['set'](_0x29fe1b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x60b657,[],_0x3f154b);}['getData'](_0x340278,_0x238ac4){if(this['_lastFrom']===_0x340278&&this['_lastTo']<=_0x238ac4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x238ac4,!0x0);else{if(!this['_savedMetaData']['has'](_0x340278)){const _0xb9a1f7=this['_getPreviousFrom'](_0x340278);this['_calculateMetaData'](_0xb9a1f7,_0x340278,!0x1);}this['_calculateMetaData'](_0x340278,_0x238ac4,!0x0);}return this['_lastFrom']=_0x340278,this['_lastTo']=_0x238ac4,this['_getState']();}['loadState'](_0x1abe3f){this['_reset'](),this['_lastFrom']=_0x1abe3f['fromVersion'],this['_lastTo']=_0x1abe3f['toVersion'];for(const _0x153ce2 in _0x1abe3f['diffData']){const _0x594a07=_0x1abe3f['diffData'][_0x153ce2]['attachChange'],_0x294fcb=_0x10dfce(_0x1abe3f['diffData'][_0x153ce2]['attributesBefore'])||{},_0x5a886d=this['_makeModelFromViewString'](_0x1abe3f['diffData'][_0x153ce2]['deletions']);_0x5a886d['rootName']=_0x153ce2,_0x5a886d['_isAttached']=!_0x594a07||!_0x594a07['isAttached'],_0x5a886d['isAttached']=()=>_0x5a886d['_isAttached'],this['_baseRoots']['set'](_0x153ce2,_0x5a886d),this['_baseRootsAttributes']['set'](_0x153ce2,_0x294fcb),_0x594a07&&this['_touchedRoots']['set'](_0x153ce2,_0x594a07);const _0x597f93=this['_makeIdsRoot'](_0x5a886d);this['_baseIdsRoots']['set'](_0x153ce2,_0x597f93);for(const [_0x8cc16a,_0xdd4bed]of _0x5a886d['markers']){if(!_0x8cc16a['startsWith']('revision:'))continue;const _0x12a6e8=_0x8cc16a['split'](':')[0x2];for(const _0x25a41f of _0xdd4bed['getWalker']({'singleCharacters':!0x0})){const _0x17817b=this['_getVidAttributeName'](_0x25a41f),_0x11cb60='elementEnd'==_0x25a41f['type']?_0x25a41f['previousPosition']['path']['slice'](0x0,-0x1):_0x25a41f['previousPosition']['path'],_0x15f74e=_0x597f93['getNodeByPath'](_0x11cb60)['getAttribute'](_0x17817b);this['_touched']['set'](_0x15f74e,{'userId':_0x12a6e8});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3400bb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3421d3=>!this['_touched']['has'](_0x3421d3));let _0x48c492=0x0;const _0x200d2a=new Map();for(const _0xed30d2 in _0x1abe3f['diffData']){const _0x4c02e7=_0x1abe3f['diffData'][_0xed30d2]['attachChange'],_0x25ee1d=_0x10dfce(_0x1abe3f['diffData'][_0xed30d2]['attributesAfter'])||{},_0x22b16d=this['_makeModelFromViewString'](_0x1abe3f['diffData'][_0xed30d2]['insertions']);_0x22b16d['rootName']=_0xed30d2,_0x22b16d['_isAttached']=!_0x4c02e7||_0x4c02e7['isAttached'],_0x22b16d['isAttached']=()=>_0x22b16d['_isAttached'],this['_diffRoots']['set'](_0xed30d2,_0x22b16d),this['_diffRootsAttributes']['set'](_0xed30d2,_0x25ee1d);const _0x24c4b7=this['_makeIdsRoot'](_0x22b16d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xed30d2,_0x24c4b7),_0x200d2a['set'](_0xed30d2,_0x22b16d['isAttached']()?_0x25ee1d:{});for(const [_0x2797db,_0x5086b8]of _0x22b16d['markers']){if(!_0x2797db['startsWith']('revision:'))continue;const _0x17827e=_0x2797db['split'](':')[0x2];for(const _0x1e5fc4 of _0x5086b8['getWalker']({'singleCharacters':!0x0})){const _0x25f1cf=this['_getVidAttributeName'](_0x1e5fc4),_0x9b1db6=this['_revisionId']++,_0x5f227c='elementEnd'==_0x1e5fc4['type']?_0x1e5fc4['previousPosition']['path']['slice'](0x0,-0x1):_0x1e5fc4['previousPosition']['path'];_0x24c4b7['getNodeByPath'](_0x5f227c)['_setAttribute'](_0x25f1cf,_0x9b1db6),this['_touched']['set'](_0x9b1db6,{'userId':_0x17827e});}}for(const _0x2e5821 of this['editor']['model']['createRangeIn'](_0x22b16d)['getWalker']({'singleCharacters':!0x0})){const _0x4fd575=this['_getVidAttributeName'](_0x2e5821),_0xadd13f='elementEnd'==_0x2e5821['type']?_0x2e5821['previousPosition']['path']['slice'](0x0,-0x1):_0x2e5821['previousPosition']['path'],_0x1ea0a6=_0x24c4b7['getNodeByPath'](_0xadd13f);_0x1ea0a6['getAttribute'](_0x4fd575)>0x0||_0x1ea0a6['_setAttribute'](_0x4fd575,_0x3400bb[_0x48c492++]);}for(const [_0x586561,_0x46055d]of _0x22b16d['markers'])_0x586561['startsWith']('revision:')||this['_markers']['set'](_0x586561,_0x46055d);}const _0x1f09d7=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1f09d7),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1f09d7,0x1));const _0x2498c2=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2498c2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2498c2,0x1));const _0x49c4d8=Array['from'](this['_diffRoots'])['map'](([_0x55b846,_0x1cbbec])=>[_0x55b846,F(_0x1cbbec)]);this['_saveMetaData'](this['_lastTo'],_0x49c4d8,this['_markers'],_0x200d2a);}['_makeModelFromViewString'](_0x4a26d6){const _0x23f442=JSON['parse'](_0x4a26d6),_0x11c770=this['editor']['editing']['view']['document'],_0x1e3867=new _0x52f59f(_0x11c770,_0x23f442['map'](_0x5d10c7=>V(_0x5d10c7,this['editor'])));return this['editor']['data']['toModel'](_0x1e3867);}['_saveMetaData'](_0x2ec5ee,_0x4f2275,_0x9fe5f,_0x4b3674){const _0x128930=new Map(_0x4f2275),_0x1e5f71=new Map(_0x10dfce(_0x4b3674)),_0x42eab7=new Map();for(const [_0x27e86d,_0x19decd]of _0x9fe5f)_0x42eab7['set'](_0x27e86d,{'start':_0x19decd['start']['clone'](),'end':_0x19decd['end']['clone'](),'rootName':_0x19decd['root']['rootName']});this['_savedMetaData']['set'](_0x2ec5ee,{'roots':_0x128930,'markers':_0x42eab7,'rootsAttributes':_0x1e5f71});}['_removeMetaData'](_0x1b8f9f){this['_savedMetaData']['delete'](_0x1b8f9f);}['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'](_0x347d28,_0x2c58dc=null){let _0x111efd=null;_0x347d28['is']('documentFragment')||(_0x111efd=new ft(_0x347d28['name'],{'vid_start':null===_0x2c58dc?this['_revisionId']++:_0x2c58dc++}));const _0x49ff06=[];for(const _0x228ee0 of _0x347d28['getChildren']())if(_0x228ee0['is']('element')){_0x49ff06['push'](this['_makeIdsRoot'](_0x228ee0,_0x2c58dc));const _0x2363da=_0x49ff06[_0x49ff06['length']-0x1];null!==_0x2c58dc&&(_0x2c58dc=_0x2363da['is']('element','$text')?_0x2363da['getAttribute']('vid')+0x1:_0x2363da['getAttribute']('vid_end')+0x1);}else{for(let _0x7b21db=0x0;_0x7b21db<_0x228ee0['offsetSize'];_0x7b21db++)_0x49ff06['push'](new ft('$text',{'vid':null===_0x2c58dc?this['_revisionId']++:_0x2c58dc++}));}if(_0x347d28['is']('documentFragment')){const _0x14d2e4=B(_0x347d28['rootName']);return _0x14d2e4['_insertChild'](0x0,_0x49ff06),_0x14d2e4;}return _0x111efd['_setAttribute']('vid_end',null===_0x2c58dc?this['_revisionId']++:_0x2c58dc++),_0x111efd['_insertChild'](0x0,_0x49ff06),_0x111efd;}['_calculateMetaData'](_0x20b00c,_0x5d44ba,_0x4e1002){this['_reset']();const {roots:_0x394beb,markers:_0x7a24e5,rootsAttributes:_0x319ab5}=this['_savedMetaData']['get'](_0x20b00c);this['_baseRoots']=new Map(_0x394beb),this['_baseRootsAttributes']=new Map(_0x10dfce(_0x319ab5));for(const [_0x5937ed,_0x24ddf7]of this['_baseRoots'])if('$graveyard'!==_0x5937ed&&(this['_diffRoots']['set'](_0x5937ed,F(_0x24ddf7)),this['_diffRootsAttributes']=new Map(_0x10dfce(_0x319ab5)),_0x4e1002)){const _0x220cae=this['_revisionId'];this['_idsRoots']['set'](_0x5937ed,this['_makeIdsRoot'](_0x24ddf7)),this['_baseIdsRoots']['set'](_0x5937ed,this['_makeIdsRoot'](_0x24ddf7,_0x220cae));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x4e1002&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x32986d,_0x1930b7]of _0x7a24e5){const _0x142c70=this['_baseRoots']['get'](_0x1930b7['rootName']),_0x23f7e3=this['_diffRoots']['get'](_0x1930b7['rootName']),_0x50550c=new vt(this['_fixPosition'](_0x1930b7['start'],_0x142c70),this['_fixPosition'](_0x1930b7['end'],_0x142c70)),_0x5efad8=this['_fixRange'](_0x50550c,_0x23f7e3);_0x142c70['markers']['set'](_0x32986d,_0x50550c),this['_markers']['set'](_0x32986d,_0x5efad8);}this['_applyOperations'](_0x20b00c,_0x5d44ba,_0x4e1002);}['_applyOperations'](_0x217137,_0x375abf,_0x524260){for(const _0x6da9ff of this['source']['getOperations'](_0x217137,_0x375abf))this['_handleOperation'](_0x6da9ff,_0x524260);for(const _0x215127 of this['_diffRoots']['values']())_0x215127['markers']['clear']();for(const [_0x1c6062,_0x454759]of this['_markers']){this['_diffRoots']['get'](_0x454759['root']['rootName'])['markers']['set'](_0x1c6062,_0x454759['clone']());}const _0x67ba49=new Map(),_0x544056=new Map();for(const [_0x534290,_0x43ca4d]of this['_diffRoots'])_0x67ba49['set'](_0x534290,F(_0x43ca4d)),_0x544056['set'](_0x534290,this['_diffRootsAttributes']['get'](_0x534290));this['_saveMetaData'](_0x375abf,_0x67ba49,this['_markers'],_0x544056);}['_getPreviousFrom'](_0x4bc492){const _0x4a2269=Array['from'](this['_savedMetaData']['keys']());_0x4a2269['sort']((_0x285a3c,_0x35fa11)=>_0x285a3c-_0x35fa11),_0x4a2269['reverse']();for(const _0x4ebf42 of _0x4a2269)if(_0x4ebf42<_0x4bc492)return _0x4ebf42;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x21375b,_0x1d6407){const _0x5068fc=Array['from'](_0x1d6407['markers'])['map'](([_0x26ed2c,_0x33edac])=>[_0x26ed2c,this['_fixRange'](_0x33edac,_0x21375b)]);_0x21375b['markers']=new Map(_0x5068fc);}['_transformMarkers'](_0x561ea0){for(const _0x36dd26 of this['_markers']['values']()){const _0x3e73d7=_0x36dd26['getTransformedByOperation'](_0x561ea0),_0x54a53a=vt['_createFromRanges'](_0x3e73d7);_0x36dd26['start']=_0x54a53a['start'],_0x36dd26['end']=_0x54a53a['end'];}}['_handleOperation'](_0x37a3cb,_0x517758){if('addRoot'!=_0x37a3cb['type']&&'detachRoot'!=_0x37a3cb['type']){if('insert'==_0x37a3cb['type']){const _0x43111b=_0x37a3cb['position']['root']['rootName'];this['_diffRoots']['has'](_0x43111b)||(this['_diffRoots']['set'](_0x43111b,B(_0x43111b,!0x0)),this['_diffRootsAttributes']['set'](_0x43111b,{}),_0x517758&&this['_idsRoots']['set'](_0x43111b,B(_0x43111b,!0x0)));}else{if('addRootAttribute'==_0x37a3cb['type']||'removeRootAttribute'==_0x37a3cb['type']||'changeRootAttribute'==_0x37a3cb['type'])return void this['_handleRootAttributeOperation'](_0x37a3cb);'marker'==_0x37a3cb['type']&&this['_handleMarkerOperation'](_0x37a3cb);}if('marker'!==_0x37a3cb['type']){const _0x2f8152=this['_cloneOperation'](_0x37a3cb,this['_diffRoots']);_0x2f8152['_execute'](),this['_transformMarkers'](_0x2f8152);}if(_0x517758)switch(_0x37a3cb['type']){case'insert':this['_handleInsertOperation'](_0x37a3cb);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x37a3cb);break;case'merge':this['_handleMergeOperation'](_0x37a3cb);break;case'split':this['_handleSplitOperation'](_0x37a3cb);}}else this['_handleRootOperation'](_0x37a3cb,_0x517758);}['_cloneOperation'](_0x14d1fa,_0x3963aa){const _0x386c7e=_0x14d1fa['clone']();return _0x386c7e['_authorId']=_0x14d1fa['_authorId'],this['_fixOperation'](_0x386c7e,_0x3963aa),_0x386c7e;}['_getBaseVids'](_0x4537f1){return _0x4537f1['map'](_0x1db4e6=>{const _0x6c757e=this['_getVidAttributeName'](_0x1db4e6);return Number(_0x1db4e6['item']['getAttribute'](_0x6c757e));});}['_generateTape'](_0x17a8b0,_0x7d5b5a){if(_0x17a8b0['is']('element','$text'))_0x7d5b5a['push']({'item':_0x17a8b0,'type':'text'});else{_0x17a8b0['is']('element')&&_0x7d5b5a['push']({'item':_0x17a8b0,'type':'elementStart'});for(const _0x2626e8 of _0x17a8b0['getChildren']())this['_generateTape'](_0x2626e8,_0x7d5b5a);_0x17a8b0['is']('element')&&_0x7d5b5a['push']({'item':_0x17a8b0,'type':'elementEnd'});}return _0x7d5b5a;}['_getState'](){const _0x26e1b9=new Map(this['_touched']),_0x280be6=new Map(_0x26e1b9),_0x283ce6=new Map(),_0x40fcca={'insertions':{},'deletions':{}},_0x4b3561={'insertions':{},'deletions':{}},_0x346a69=new Map(),_0x3c5d5e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3c5d5e['delete']('$graveyard');for(const _0x3abe89 of _0x3c5d5e){const _0x3c6daf=this['_diffRoots']['get'](_0x3abe89)||B(_0x3abe89,!0x1),_0x1d7f66=this['_baseRoots']['get'](_0x3abe89)||B(_0x3abe89,!0x1);_0x3c6daf['isAttached']()||_0x1d7f66['isAttached']()?(_0x40fcca['insertions'][_0x3abe89]=F(_0x3c6daf),_0x40fcca['deletions'][_0x3abe89]=F(_0x1d7f66),this['_copyMarkers'](_0x40fcca['deletions'][_0x3abe89],_0x1d7f66),this['_copyMarkers'](_0x40fcca['insertions'][_0x3abe89],_0x3c6daf),_0x4b3561['insertions'][_0x3abe89]=this['_generateTape'](this['_idsRoots']['get'](_0x3abe89),[]),_0x4b3561['deletions'][_0x3abe89]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3abe89)||B(_0x3abe89,!0x1),[])):_0x3c5d5e['delete'](_0x3abe89);}for(const _0x2b24aa of _0x3c5d5e){const _0x4e4ed0=_0x4b3561['insertions'][_0x2b24aa];for(const _0x4ca30a of _0x4e4ed0){const _0x111f66=this['_getVidAttributeName'](_0x4ca30a),_0x4faaab=_0x4ca30a['item']['getAttribute'](_0x111f66);_0x280be6['delete'](_0x4faaab),_0x4faaab>=this['_startingRevisionId']&&_0x283ce6['set'](_0x4faaab,_0x26e1b9['get'](_0x4faaab));}}for(const _0x1f1e4c of _0x3c5d5e){const _0x379b10=_0x4b3561['insertions'][_0x1f1e4c],_0x2a94f0=this['_getBaseVids'](_0x4b3561['deletions'][_0x1f1e4c]);let _0x1b39c9=0x0;for(const _0x58a143 of _0x379b10){const _0x1b46e6=this['_getVidAttributeName'](_0x58a143),_0x4949a9=_0x58a143['item']['getAttribute'](_0x1b46e6);if(!_0x283ce6['has'](_0x4949a9)&&!_0x346a69['has'](_0x4949a9)){if(_0x280be6['has'](_0x4949a9))_0x1b39c9++;else{if(_0x4949a9!=_0x2a94f0[_0x1b39c9]){const _0x2bc431=_0x26e1b9['get'](_0x4949a9)||_0x26e1b9['get'](_0x2a94f0[_0x1b39c9]);for(;_0x4949a9!=_0x2a94f0[_0x1b39c9];)_0x280be6['has'](_0x2a94f0[_0x1b39c9])||(_0x346a69['set'](_0x2a94f0[_0x1b39c9],_0x2bc431),_0x26e1b9['set'](_0x2a94f0[_0x1b39c9],_0x2bc431)),_0x1b39c9++;}_0x1b39c9++;}}}}for(const _0x50d93a of _0x3c5d5e){const _0x21dc6c=_0x4b3561['insertions'][_0x50d93a];for(const _0x4966b8 of _0x21dc6c){const _0x2f2c2e=this['_getVidAttributeName'](_0x4966b8),_0x1dbe84=_0x4966b8['item']['getAttribute'](_0x2f2c2e);if(_0x346a69['has'](_0x1dbe84)){const _0xf07e34=_0x346a69['get'](_0x1dbe84);_0x280be6['has'](_0x1dbe84)||_0x280be6['set'](_0x1dbe84,{..._0xf07e34}),_0x283ce6['set'](_0x1dbe84,{..._0xf07e34});}}}for(const _0x43c4ad of _0x280be6['keys']())_0x43c4ad>=this['_startingRevisionId']&&_0x280be6['delete'](_0x43c4ad);const _0x58e4f=new Map();for(const _0xc49b6c of _0x3c5d5e){let _0x4c2811=_0x4b3561['insertions'][_0xc49b6c];for(const _0x50da53 of _0x4c2811)if(_0x50da53['item']['is']('element','tableCell')){const _0x4de974=this['_getVidAttributeName'](_0x50da53),_0x1a0b7d=_0x50da53['item']['getAttribute'](_0x4de974);if(_0x283ce6['has'](_0x1a0b7d)){const _0xdefe54=_0x50da53['item']['parent']['parent']['getAttribute']('vid_start'),_0x1266bc=_0x58e4f['get'](_0xdefe54)||new Set();_0x1266bc['add'](_0x283ce6['get'](_0x1a0b7d)['userId']),_0x58e4f['set'](_0xdefe54,_0x1266bc);}}_0x4c2811=_0x4b3561['deletions'][_0xc49b6c];for(const _0x1a881e of _0x4c2811)if(_0x1a881e['item']['is']('element','tableCell')){const _0x21277c=this['_getVidAttributeName'](_0x1a881e),_0x115a09=_0x1a881e['item']['getAttribute'](_0x21277c);if(_0x280be6['has'](_0x115a09)){const _0x109ace=_0x1a881e['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d1d60=_0x58e4f['get'](_0x109ace)||new Set();_0x5d1d60['add'](_0x280be6['get'](_0x115a09)['userId']),_0x58e4f['set'](_0x109ace,_0x5d1d60);}}for(const _0x31e2db of _0x58e4f['keys']())(_0x283ce6['has'](_0x31e2db)||_0x280be6['has'](_0x31e2db))&&_0x58e4f['delete'](_0x31e2db);}for(const _0x1adeee of _0x3c5d5e){const _0x1dc9c8=_0x4b3561['insertions'][_0x1adeee];let _0x31ec82=null,_0x3e5830=null;for(const _0x1d921c of _0x1dc9c8){const _0x14eba3=this['_getVidAttributeName'](_0x1d921c),_0xf679d=_0x1d921c['item']['getAttribute'](_0x14eba3),_0xd015c9=_0x58e4f['get'](_0xf679d);_0xd015c9&&'elementStart'==_0x1d921c['type']&&(_0x31ec82=Array['from'](_0xd015c9)[0x0],_0x3e5830=_0x1d921c['item']['getAttribute']('vid_end')),_0x31ec82&&(_0x280be6['set'](_0xf679d,{'userId':_0x31ec82}),_0x283ce6['set'](_0xf679d,{'userId':_0x31ec82})),_0xf679d==_0x3e5830&&(_0x31ec82=null,_0x3e5830=null);}}const _0x5254e8={},_0x1dec19=new Set();for(const _0x529be3 of _0x3c5d5e){const _0x2c49ed=_0x40fcca['deletions'][_0x529be3],_0x460433=_0x40fcca['insertions'][_0x529be3];for(const {userId:_0x201654}of this['_touchedMarkers']['values']())null!==_0x201654&&_0x1dec19['add'](_0x201654);for(const {userId:_0x12f567}of this['_touchedRoots']['values']())null!==_0x12f567&&_0x1dec19['add'](_0x12f567);this['_markChanges'](_0x460433,_0x4b3561['insertions'][_0x529be3],_0x283ce6,'insertion',_0x1dec19),this['_markChanges'](_0x2c49ed,_0x4b3561['deletions'][_0x529be3],_0x280be6,'deletion',_0x1dec19),_0x5254e8[_0x529be3]={'insertions':this['_prepareViewToSave'](_0x460433),'deletions':this['_prepareViewToSave'](_0x2c49ed),'attachChange':this['_touchedRoots']['get'](_0x529be3)||null,'attributesBefore':_0x10dfce(this['_baseRootsAttributes']['get'](_0x529be3))||{},'attributesAfter':_0x10dfce(this['_diffRootsAttributes']['get'](_0x529be3))};}return{'diffData':_0x5254e8,'authorsIds':Array['from'](_0x1dec19)};}['_processRootBeforeSave'](_0x3e6775){for(const [,_0x4cd08d]of _0x3e6775['markers']){const _0x47dd96=_0x4cd08d['start']['getAncestors']()['filter'](_0x3dac5d=>'tableCell'==_0x3dac5d['name']);for(const _0x5699b7 of _0x47dd96)0x1==_0x5699b7['childCount']&&_0x5699b7['getChild'](0x0)['is']('element','paragraph')&&_0x5699b7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x19ff17){this['_processRootBeforeSave'](_0x19ff17);const _0x1c54b0=this['editor']['data']['toView'](_0x19ff17,{}),_0x55768a=Array['from'](_0x1c54b0['getChildren']())['map'](_0x535c81=>this['_getViewJson'](_0x535c81));return JSON['stringify'](_0x55768a);}['_getViewJson'](_0x10b596){if(_0x10b596['is']('$text'))return _0x10b596['data'];{const _0x1f4c70=_0x10b596;return{'type':Object['keys'](C)['find'](_0x47385a=>_0x10b596 instanceof C[_0x47385a]),'name':_0x1f4c70['name'],'attributes':Array['from'](_0x1f4c70['getAttributes']()),'children':Array['from'](_0x1f4c70['getChildren']())['map'](_0x5d7341=>this['_getViewJson'](_0x5d7341))};}}['_markChanges'](_0x2f8fac,_0x3ccac4,_0x3d914e,_0x4ccafd,_0x5cfe09){let _0x334bd4=null,_0x2f66ab=null,_0x3ddc01=0x0;const _0x259cbd=this['editor']['model'];for(let _0x5b629f=0x0;_0x5b629f<_0x3ccac4['length'];_0x5b629f++){const _0xa2297d=this['_getVidAttributeName'](_0x3ccac4[_0x5b629f]),_0x41943b=_0x3ccac4[_0x5b629f]['item']['getAttribute'](_0xa2297d),_0x125e91=_0x3d914e['get'](_0x41943b),_0x3789cb=_0x5b629f==_0x3ccac4['length']-0x1;(!_0x334bd4&&_0x125e91&&(_0x334bd4=_0x125e91,_0x2f66ab=_0x3ccac4[_0x5b629f]),_0x334bd4&&(!_0x125e91||_0x125e91['userId']!=_0x334bd4['userId']))&&(_0x4a200f(_0x125e91,J(_0x2f66ab,_0x2f8fac,_0x259cbd),J(_0x3ccac4[_0x5b629f],_0x2f8fac,_0x259cbd)),_0x334bd4=_0x125e91||null,_0x2f66ab=_0x125e91?_0x3ccac4[_0x5b629f]:null),_0x334bd4&&_0x3789cb&&_0x4a200f(_0x125e91,J(_0x2f66ab,_0x2f8fac,_0x259cbd),q(_0x3ccac4[_0x5b629f],_0x2f8fac,_0x259cbd));}function _0x4a200f(_0x31cc82,_0x23a42c,_0x52a8d8){const _0x48474b=_0x334bd4['userId'],_0x592999='revision:'+_0x4ccafd+':'+_0x48474b+':'+_0x3ddc01++,_0x16ebe4=_0x259cbd['createRange'](_0x23a42c,_0x52a8d8);_0x2f8fac['markers']['set'](_0x592999,_0x16ebe4),null!==_0x48474b&&_0x5cfe09['add'](_0x48474b);}}['_getVidAttributeName'](_0x2245ea){switch(_0x2245ea['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x59a81f,_0x50fd04){_0x59a81f['baseVersion']=null;for(const _0x4b683e in _0x59a81f){const _0x1739c8=_0x59a81f[_0x4b683e];if(_0x1739c8 instanceof gt){const _0x5a53f9=_0x50fd04['get'](_0x1739c8['root']['rootName']);_0x59a81f[_0x4b683e]=this['_fixPosition'](_0x1739c8,_0x5a53f9);}if(_0x1739c8 instanceof vt){const _0x335b95=_0x50fd04['get'](_0x1739c8['root']['rootName']);_0x59a81f[_0x4b683e]=this['_fixRange'](_0x1739c8,_0x335b95);}'root'===_0x4b683e&&(_0x59a81f['root']=_0x50fd04['get'](_0x59a81f['root']['rootName']));}}['_fixRange'](_0x4d1e91,_0xeaa74f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4d1e91['start'],_0xeaa74f),this['_fixPosition'](_0x4d1e91['end'],_0xeaa74f));}['_fixPosition'](_0x5f322d,_0x45cf01){return this['editor']['model']['createPositionFromPath'](_0x45cf01,_0x5f322d['path'],_0x5f322d['stickiness']);}['_handleInsertOperation'](_0x1db5b3){const _0x734216=this['_idsRoots']['get'](_0x1db5b3['position']['root']['rootName']),_0x2c3c36=this['_fixPosition'](_0x1db5b3['position'],_0x734216),_0x5e5608=null===_0x1db5b3['_authorId']?null:_0x1db5b3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x421f65=_0x2c3c36['parent'],_0x480d94=this['_revisionId'],_0x138b1d=[];for(const _0x2922ed of _0x1db5b3['nodes'])if(_0x2922ed['is']('element'))_0x138b1d['push'](this['_makeIdsRoot'](_0x2922ed));else{for(let _0x5928e0=0x0;_0x5928e0<_0x2922ed['offsetSize'];_0x5928e0++)_0x138b1d['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x55bbd8=this['_revisionId'];for(let _0x55fe7c=_0x480d94;_0x55fe7c<_0x55bbd8;_0x55fe7c++)this['_touched']['set'](_0x55fe7c,{'userId':_0x5e5608});_0x421f65['_insertChild'](_0x2c3c36['offset'],_0x138b1d);}['_handleMoveOperation'](_0x7fbd94){(_0x7fbd94=this['_cloneOperation'](_0x7fbd94,this['_idsRoots']))['_execute']();const _0x4d7b94=null===_0x7fbd94['_authorId']?null:_0x7fbd94['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ed199=_0x7fbd94['getMovedRangeStart'](),_0x1bb435=_0x1ed199['parent'],_0xdc9739=_0x1ed199['offset'];!function _0x396e81(_0x49b838,_0xb26760,_0x4aa655,_0x51e20c){for(let _0x31c175=_0x4aa655;_0x31c175<_0x51e20c;_0x31c175++){const _0x37b86d=_0xb26760['getChild'](_0x31c175);_0x37b86d['is']('element','$text')?_0x49b838['set'](_0x37b86d['getAttribute']('vid'),{'userId':_0x4d7b94}):(_0x49b838['set'](_0x37b86d['getAttribute']('vid_start'),{'userId':_0x4d7b94}),_0x396e81(_0x49b838,_0x37b86d,0x0,_0x37b86d['childCount']),_0x49b838['set'](_0x37b86d['getAttribute']('vid_end'),{'userId':_0x4d7b94}));}}(this['_touched'],_0x1bb435,_0xdc9739,_0xdc9739+_0x7fbd94['howMany']);}['_handleMergeOperation'](_0x324a40){const _0x39b1d8=null===(_0x324a40=this['_cloneOperation'](_0x324a40,this['_idsRoots']))['_authorId']?null:_0x324a40['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2081a9=_0x324a40['targetPosition']['parent'],_0x3bdfa1=_0x324a40['sourcePosition']['parent'],_0x4c9eca=_0x2081a9['getAttribute']('vid_end'),_0x4c5209=_0x3bdfa1['getAttribute']('vid_start');_0x2081a9['_setAttribute']('vid_end',_0x3bdfa1['getAttribute']('vid_end')),_0x3bdfa1['_setAttribute']('vid_end',_0x4c9eca),this['_touched']['set'](_0x4c5209,{'userId':_0x39b1d8}),this['_touched']['set'](_0x4c9eca,{'userId':_0x39b1d8}),_0x324a40['_execute']();}['_handleSplitOperation'](_0xb011a4){const _0xd89696=null===(_0xb011a4=this['_cloneOperation'](_0xb011a4,this['_idsRoots']))['_authorId']?null:_0xb011a4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x361e6e=_0xb011a4['graveyardPosition'],_0x10c7c3=_0xb011a4['splitPosition']['parent'];_0xb011a4['_execute']();const _0x33d315=_0x10c7c3['getAttribute']('vid_end'),_0x6c8dbe=_0xb011a4['insertionPosition']['nodeAfter'];if(_0x361e6e){const _0x1d39db=_0x6c8dbe['getAttribute']('vid_end'),_0x38f2fa=_0x10c7c3['getAttribute']('vid_end');_0x10c7c3['_setAttribute']('vid_end',_0x1d39db),_0x6c8dbe['_setAttribute']('vid_end',_0x38f2fa),this['_touched']['set'](_0x10c7c3['getAttribute']('vid_end'),{'userId':_0xd89696}),this['_touched']['set'](_0x6c8dbe['getAttribute']('vid_start'),{'userId':_0xd89696});}else{const _0x5adc7=this['_revisionId']++,_0x3f9f34=this['_revisionId']++;_0x10c7c3['_setAttribute']('vid_end',_0x5adc7),_0x6c8dbe['_setAttribute']('vid_start',_0x3f9f34),_0x6c8dbe['_setAttribute']('vid_end',_0x33d315),this['_touched']['set'](_0x5adc7,{'userId':_0xd89696}),this['_touched']['set'](_0x3f9f34,{'userId':_0xd89696});}}['_handleMarkerOperation'](_0x2927e6){if(!_0x2927e6['affectsData'])return;const _0x101ba0=(_0x2927e6=this['_cloneOperation'](_0x2927e6,this['_diffRoots']))['oldRange']?_0x2927e6['oldRange']['root']:null,_0x42c50b=_0x2927e6['newRange']?_0x2927e6['newRange']['root']:null;_0x101ba0&&this['_markers']['delete'](_0x2927e6['name']),_0x42c50b&&this['_markers']['set'](_0x2927e6['name'],_0x2927e6['newRange']['clone']());const _0x10f8a5=null===_0x2927e6['_authorId']?null:_0x2927e6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd55275=_0x2927e6['name'];if(!this['_touchedMarkers']['has'](_0xd55275))return void this['_touchedMarkers']['set'](_0xd55275,{'range':_0x2927e6['oldRange'],'userId':_0x10f8a5});const _0x228dfe=this['_touchedMarkers']['get'](_0xd55275),_0x1c4b37=_0x228dfe['range'],_0x66bd94=_0x2927e6['newRange'];null==_0x1c4b37&&null==_0x66bd94||_0x1c4b37&&_0x66bd94&&_0x1c4b37['isEqual'](_0x66bd94)?this['_touchedMarkers']['delete'](_0x2927e6['name']):_0x228dfe['userId']=_0x10f8a5;}['_handleRootOperation'](_0x3ad4bd,_0x5497d6){this['_diffRoots']['has'](_0x3ad4bd['rootName'])?this['_diffRoots']['get'](_0x3ad4bd['rootName'])['_isAttached']=_0x3ad4bd['isAdd']:(this['_diffRoots']['set'](_0x3ad4bd['rootName'],B(_0x3ad4bd['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3ad4bd['rootName'],{}),_0x5497d6&&this['_idsRoots']['set'](_0x3ad4bd['rootName'],B(_0x3ad4bd['rootName'],!0x0)));const _0x35b263=null===_0x3ad4bd['_authorId']?null:_0x3ad4bd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bcc06=this['_touchedRoots']['get'](_0x3ad4bd['rootName']);_0x2bcc06&&_0x2bcc06['userId']===_0x35b263?this['_touchedRoots']['delete'](_0x3ad4bd['rootName']):this['_touchedRoots']['set'](_0x3ad4bd['rootName'],{'userId':_0x35b263,'isAttached':_0x3ad4bd['isAdd']});}['_handleRootAttributeOperation'](_0x3900b3){const _0x482eb7=this['_diffRootsAttributes']['get'](_0x3900b3['root']['rootName']);null===_0x3900b3['newValue']?delete _0x482eb7[_0x3900b3['key']]:_0x482eb7[_0x3900b3['key']]=_0x3900b3['newValue'];}}function F(_0x13b5b0){const _0x56a7b8=B(_0x13b5b0['rootName'],_0x13b5b0['isAttached']());for(const _0x3e963b of _0x13b5b0['getChildren']()){const _0x55c615=_0x3e963b['_clone'](!0x0);_0x56a7b8['_appendChild'](_0x55c615);}return _0x56a7b8;}function B(_0x2f70a1,_0x4a1b45=!0x0){const _0x862951=new mt();return _0x862951['rootName']=_0x2f70a1,_0x862951['_isAttached']=_0x4a1b45,_0x862951['isAttached']=()=>_0x862951['_isAttached'],_0x862951;}function J(_0x699c1c,_0x21601a,_0x53991d){const _0x3216ee='elementEnd'==_0x699c1c['type']?_0x53991d['createPositionAt'](_0x699c1c['item'],'end'):_0x53991d['createPositionBefore'](_0x699c1c['item']);return _0x53991d['createPositionFromPath'](_0x21601a,_0x3216ee['path'],_0x3216ee['stickiness']);}function q(_0x2b60d4,_0x44dfc6,_0x3e0faa){const _0x435983='elementStart'==_0x2b60d4['type']?_0x3e0faa['createPositionAt'](_0x2b60d4['item'],0x0):_0x3e0faa['createPositionAfter'](_0x2b60d4['item']);return _0x3e0faa['createPositionFromPath'](_0x44dfc6,_0x435983['path'],_0x435983['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x9e9f08,_0x39df0d){super(_0x9e9f08),this['focusTracker']=new _0x325c49(),this['keystrokes']=new _0x3f50e3(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x39df0d),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x37329d(this);}['render'](){super['render'](),_0x43fe95({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5713fc=_0x3d7da7=>_0x3d7da7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5713fc),this['keystrokes']['set']('arrowleft',_0x5713fc),this['keystrokes']['set']('arrowup',_0x5713fc),this['keystrokes']['set']('arrowdown',_0x5713fc);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x47b3e9){this['revisionNameInputView']['fieldView']['element']['value']=_0x47b3e9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2c036a){const _0xc036bd=new _0x354fa9(this['locale'],_0x1a2f3e),_0x3ed7a5=_0xc036bd['fieldView'];_0x3ed7a5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x387117=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2c036a&&(_0x387117+='\x20('+R(this['locale'],'optional')+')'),(_0xc036bd['label']=_0x387117,_0x3ed7a5['on']('input',()=>{this['revisionNameInputValue']=_0x3ed7a5['element']['value']['trim']();}),_0xc036bd);}}class u extends _0x5951b8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x45053f=this['editor'],_0x2077db=_0x45053f['plugins']['get']('RevisionTracker');_0x45053f['ui']['componentFactory']['add']('revisionHistory',_0x33ed21=>{const _0x46c8e9=_0x3b3239(_0x33ed21),_0x53888d=_0x46c8e9['panelView']['children'],_0x56a6e0=new _0x49de68(_0x33ed21),_0x1e579b=new _0xb8fceb(_0x33ed21),_0x1a70db=new te(_0x33ed21),_0x3943e3=new _0xb8fceb(_0x33ed21),_0x114ee7=new te(_0x33ed21);return _0x46c8e9['bind']('isEnabled')['to'](_0x2077db,'isReady',_0x2077db,'isEnabled',_0x45053f,'isReadOnly',(_0x58c479,_0x23b475,_0xc0cb45)=>_0x58c479&&_0x23b475&&!_0xc0cb45),_0x46c8e9['buttonView']['set']({'icon':_0x10c6a8['history'],'label':R(_0x33ed21,'Revision\x20history'),'tooltip':!0x0}),_0x1a70db['set']({'label':R(_0x33ed21,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1a70db['bind']('isEnabled')['to'](_0x2077db,'isReady',_0x2077db,'isEnabled',_0x45053f,'isReadOnly',(_0x1e1508,_0x3c01e7,_0x4d4323)=>_0x1e1508&&_0x3c01e7&&!_0x4d4323),_0x1a70db['on']('execute',()=>this['_showDialog']()),_0x114ee7['set']({'label':R(_0x33ed21,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x114ee7['bind']('isEnabled')['to'](_0x2077db,'isReady',_0x45053f,'isReadOnly',(_0x1652f0,_0x4a1643)=>_0x1652f0&&!_0x4a1643),_0x114ee7['on']('execute',()=>{_0x45053f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x46c8e9['isOpen']=!0x1,_0x45053f['editing']['view']['focus']();}),_0x1e579b['children']['add'](_0x1a70db),_0x3943e3['children']['add'](_0x114ee7),_0x56a6e0['role']='menu',_0x56a6e0['items']['addMany']([_0x1e579b,_0x3943e3]),_0x53888d['add'](_0x56a6e0),_0x46c8e9;}),_0x45053f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5d7aab=this['editor'],_0x184235=_0x5d7aab['locale'],_0x4a34ac=new _0x5b4880(_0x184235),_0x31dc1c=new _0x40a26d(_0x184235);_0x4a34ac['buttonView']['set']({'icon':_0x10c6a8['history'],'label':R(_0x184235,'Revision\x20history')});const _0x4a8822=new _0x257cab(_0x184235,_0x4a34ac),_0x55886d=new _0x3c210a(_0x184235);_0x55886d['set']({'label':R(_0x184235,'Save\x20current\x20revision')}),_0x55886d['delegate']('execute')['to'](_0x4a34ac),_0x55886d['on']('execute',()=>{this['_showDialog']();}),_0x4a8822['children']['add'](_0x55886d),_0x31dc1c['items']['add'](_0x4a8822);const _0x4d6707=new _0x257cab(_0x184235,_0x4a34ac),_0x4afc9=new _0x3c210a(_0x184235);return _0x4afc9['set']({'label':R(_0x184235,'Open\x20revision\x20history')}),_0x4afc9['delegate']('execute')['to'](_0x4a34ac),_0x4afc9['on']('execute',()=>{_0x5d7aab['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4d6707['children']['add'](_0x4afc9),_0x31dc1c['items']['add'](_0x4d6707),_0x4a34ac['panelView']['children']['add'](_0x31dc1c),_0x4a34ac;}['_showDialog'](){const _0x3f6274=this['editor'],_0x35316b=_0x3f6274['locale'],_0x4468c3=_0x3f6274['plugins']['get']('Dialog'),_0x53fda0=_0x3f6274['plugins']['get']('RevisionTracker');function _0x925f12(_0xc47061){_0x3f6274['config']['get']('revisionHistory.requireRevisionName')&&''===_0xc47061['revisionName']?_0xc47061['revisionNameInputView']['errorText']=R(_0x35316b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3f6274['plugins']['get'](l)['saveRevision']({'name':_0xc47061['revisionName']}),_0x4468c3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x925f12(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4468c3['show']({'id':'revisionSave','title':R(_0x35316b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x3f6274['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4468c3['hide']()},{'label':R(_0x3f6274['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1bf509){_0x1bf509['bind']('isEnabled')['to'](_0x53fda0,'isReady',_0x53fda0,'isEnabled',_0x3f6274,'isReadOnly',(_0x1ac10d,_0x2774fc,_0x347322)=>_0x1ac10d&&_0x2774fc&&!_0x347322);},'onExecute':()=>_0x925f12(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x16318b=this['editor'],_0x12af28=_0x16318b['locale'];this['_saveRevisionFormView']=new hs(_0x12af28,_0x16318b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x4635b9,_0x3713c0){super(_0x4635b9),this['_model']=_0x3713c0,this['changeId']=_0x3713c0['id'];const _0x123f84=this['bindTemplate'],_0x23b2b4=R(_0x4635b9,_0x3713c0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3713c0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3713c0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x123f84['to']('type',_0x21656a=>'ck-revision-change__'+_0x21656a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x23b2b4}]},{'text':'\x20'+_0x3713c0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0xaf4875(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x254bcd){super(),this['id']=_0x254bcd['id']||_0x5168c7(),this['author']=_0x254bcd['author'],this['type']=_0x254bcd['type'],this['data']=_0x254bcd['data']||{},this['rootName']=_0x254bcd['rootName'],this['set']('createdAt',_0x254bcd['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(_0x3e4bda,_0x21f34e){this['newRevisionId']=_0x3e4bda,this['oldRevisionId']=_0x21f34e,this['changes']=new _0x1ffe77();}['_setChanges'](_0x52a45b){for(const _0x41ccdb of _0x52a45b)this['changes']['add'](_0x41ccdb);}}const Z={'c':_0x3c99dc,'a':_0x1830f5,'e':_0x4028f0,'r':_0xba7a0d,'u':_0x5bc111};class d extends _0x5951b8{['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[_0xf71a07,_0x4588f0,j];}constructor(_0x456f50){super(_0x456f50),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',(_0x52a2e8,_0x1115aa,_0x4b731d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x43ace0=>{for(const _0x322203 of this['editor']['editing']['view']['document']['roots'])_0x4b731d?_0x43ace0['removeClass']('ck-editor__editable__overlay',_0x322203):_0x43ace0['addClass']('ck-editor__editable__overlay',_0x322203);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5e3770=>null!==_0x5e3770),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x59a479,_0x33681,_0x4667e1)=>_0x59a479&&_0x4667e1?_0x33681['changes']['getIndex'](_0x4667e1):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1395be,_0x255944)=>_0x1395be?_0x255944['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4588f0);}['init'](){const _0x4d4597=this['editor'],_0x14f6f1=new yt(_0x4d4597,{'direction':'backward'}),_0x51380c=new yt(_0x4d4597,{'direction':'forward'});(_0x4d4597['commands']['add']('showPreviousChange',_0x14f6f1),_0x4d4597['commands']['add']('showNextChange',_0x51380c),_0x4d4597['commands']['add']('restoreRevision',new _t(_0x4d4597)),this['on']('change:numberOfChanges',()=>{_0x14f6f1['refresh'](),_0x51380c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4d4597['enableReadOnlyMode']('revision-viewer'),_0x4d4597['plugins']['has']('WidgetToolbarRepository'))&&_0x4d4597['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x15ec32){await this['loadRevisionData'](_0x15ec32);const _0xa9ee6e={};for(const _0x422a39 in _0x15ec32['diffData']){if(_0x15ec32['diffData'][_0x422a39]['attachChange']&&!_0x15ec32['diffData'][_0x422a39]['attachChange']['isAttached'])continue;const _0x5ae908=this['_removeRevisionMarkers'](JSON['parse'](_0x15ec32['diffData'][_0x422a39]['insertions'])),_0x10f6d0=this['editor']['editing']['view']['document'],_0xc4e190=new _0x52f59f(_0x10f6d0,_0x5ae908['map'](_0x500fa=>this['_getViewObj'](_0x500fa)));this['editor']['data']['processor']['useFillerType']('marked'),_0xa9ee6e[_0x422a39]=this['editor']['data']['processor']['toData'](_0xc4e190),this['editor']['data']['processor']['useFillerType']('default');}return _0xa9ee6e;}async['getRevisionRootsAttributes'](_0x4c8ff1){await this['loadRevisionData'](_0x4c8ff1);const _0x369a54={};for(const _0x2c1b51 in _0x4c8ff1['diffData'])_0x4c8ff1['diffData'][_0x2c1b51]['attachChange']&&!_0x4c8ff1['diffData'][_0x2c1b51]['attachChange']['isAttached']||(_0x369a54[_0x2c1b51]=_0x4c8ff1['diffData'][_0x2c1b51]['attributesAfter']||{});return _0x369a54;}['_removeRevisionMarkers'](_0x2fc921){return(_0x2fc921=_0x2fc921['filter'](_0x3eb421=>!_0x3eb421['name']||'revision-start'!==_0x3eb421['name']&&'revision-end'!==_0x3eb421['name']))['forEach'](_0x2069d4=>{'string'!=typeof _0x2069d4&&(_0x2069d4['children']=this['_removeRevisionMarkers'](_0x2069d4['children']),_0x2069d4['attributes']=_0x2069d4['attributes']['filter'](_0x18e172=>!_0x18e172[0x0]['startsWith']('data-revision-')));}),_0x2fc921;}async['compare'](_0x15f0c5,_0x14d75d,_0x39d806=!0x1){if(!this['isEnabled'])return;const _0x2c6b58=this['diff'],_0x158fc3=this['repository'],_0x3b905e='string'==typeof _0x15f0c5?_0x158fc3['getRevision'](_0x15f0c5):_0x15f0c5,_0x2d66a8='string'==typeof _0x14d75d?_0x158fc3['getRevision'](_0x14d75d):_0x14d75d,_0x404f53=_0x3b905e['id'],_0x390806=_0x2d66a8?_0x2d66a8['id']:null;if(!_0x39d806&&this['diff']&&this['diff']['newRevisionId']===_0x404f53&&this['diff']['oldRevisionId']===_0x390806)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x404f53,_0x390806);const _0x24fec0=this['_getRevisionsRange'](_0x3b905e,_0x2d66a8,!0x0)['map'](_0x2db76a=>this['loadRevisionData'](_0x2db76a));return _0x24fec0['push'](new Promise(_0x49cd9f=>{setTimeout(_0x49cd9f,0x14);})),Promise['all'](_0x24fec0)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x602c4f=this['_getDiff'](_0x404f53,_0x390806);for(const _0x1f8a49 of _0x602c4f['changes'])this['_changeIdToChange']['set'](_0x1f8a49['id'],_0x1f8a49);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3fa4a4=>{for(const _0x257aea of this['editor']['model']['document']['getRootNames']())_0x3fa4a4['detachRoot'](_0x257aea);for(const _0x1f131b of Object['keys'](_0x602c4f['model'])){const _0x315898=_0x3fa4a4['addRoot'](_0x1f131b);for(const _0x1e5c5f of Object['keys'](_0x602c4f['attributes'][_0x1f131b]))_0x3fa4a4['setAttribute'](_0x1e5c5f,_0x602c4f['attributes'][_0x1f131b][_0x1e5c5f],_0x315898);_0x3fa4a4['insert'](_0x602c4f['model'][_0x1f131b],_0x315898,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x602c4f['changes'])),this['isReady']=!0x0;})['catch'](_0x43c80e=>{console['error'](_0x43c80e),this['_cleanUp'](),_0x2c6b58&&(this['diff']=_0x2c6b58),this['isReady']=!0x0;});}['addRevisionData'](_0x546a75,_0x4b9ba0){const _0x411f4c=this['repository']['createRevision'](_0x546a75);return _0x411f4c['on']('_update',(_0x304bc8,_0x136937,_0x5d76d0)=>_0x4b9ba0(_0x136937,_0x5d76d0,_0x411f4c)),this['repository']['addRevision'](_0x411f4c),_0x411f4c;}['loadRevisionData'](_0x5c2d70){if(!_0x5c2d70||_0x5c2d70['diffData'])return Promise['resolve']();{const _0x929845=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x929845,'revisionId':_0x5c2d70['id']})['then'](_0x2a31a3=>{_0x5c2d70['_update']({'diffData':_0x2a31a3['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},_0x1c064f=>{for(const _0x4c7403 of this['editor']['model']['document']['getRootNames']())_0x1c064f['detachRoot'](_0x4c7403);});}['_sortAndFilterDiffChanges'](_0x5808d2){const _0x3c10e7=[],_0x3e2a5c=new Map();for(const _0x3b8657 of this['editor']['model']['document']['getRootNames']()){const _0x360d83=this['editor']['editing']['view']['getDomRoot'](_0x3b8657);if(!_0x360d83)continue;const _0xbe38d8=_0x360d83['getClientRects']()['item'](0x0);_0xbe38d8&&(_0x3c10e7['push'](_0x3b8657),_0x3e2a5c['set'](_0x3b8657,_0xbe38d8));}return _0x3c10e7['sort']((_0x3e6c04,_0xe14b0d)=>{const _0x517c07=_0x3e2a5c['get'](_0x3e6c04),_0x590d51=_0x3e2a5c['get'](_0xe14b0d);return _0x517c07['y']-_0x590d51['y']||_0x517c07['x']-_0x590d51['x'];}),(_0x5808d2=_0x5808d2['filter'](_0x2fbf9b=>_0x3c10e7['includes'](_0x2fbf9b['rootName'])))['sort']((_0x301cf8,_0x284396)=>_0x3c10e7['indexOf'](_0x301cf8['rootName'])-_0x3c10e7['indexOf'](_0x284396['rootName'])),_0x5808d2;}['_makeTape'](_0x568359){const _0x49250d=Array['from'](_0x568359['markers'])['filter'](([_0x3b0a55,_0x1850b0])=>_0x3b0a55['startsWith']('revision:')&&!_0x1850b0['isCollapsed']),_0x43ec34=Array['from'](this['editor']['model']['createRangeIn'](_0x568359)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x49250d['length'])for(const _0x5277de of _0x43ec34){const [_0x14e76c,_0x1c5cbb]=_0x49250d[0x0],[,_0x5a7c9e,_0x513bc1]=_0x14e76c['split'](':');if(_0x1c5cbb['end']['isEqual'](_0x5277de['nextPosition'])&&_0x49250d['shift'](),(_0x5277de['previousPosition']['isEqual'](_0x1c5cbb['start'])||_0x5277de['previousPosition']['isAfter'](_0x1c5cbb['start']))&&('insertion'==_0x5a7c9e?_0x5277de['isAdded']={'userId':_0x513bc1}:'deletion'==_0x5a7c9e&&(_0x5277de['isRemoved']={'userId':_0x513bc1})),0x0==_0x49250d['length'])break;}return _0x43ec34;}['_refreshStartEndIndex'](_0x273852){const _0x5d408b=new Map();for(let _0x3d01be=0x0;_0x3d01be<_0x273852['length'];_0x3d01be++)'text'===_0x273852[_0x3d01be]['type']?(_0x273852[_0x3d01be]['item']['startIndex']=_0x3d01be,_0x273852[_0x3d01be]['item']['endIndex']=_0x3d01be):('elementStart'===_0x273852[_0x3d01be]['type']?_0x273852[_0x3d01be]['item']['startIndex']=_0x3d01be:'elementEnd'===_0x273852[_0x3d01be]['type']&&(_0x273852[_0x3d01be]['item']['endIndex']=_0x3d01be),_0x5d408b['set'](_0x273852[_0x3d01be]['id'],_0x3d01be));for(const _0x1f3efa of _0x5d408b['values']())'elementStart'===_0x273852[_0x1f3efa]['type']?_0x273852[_0x1f3efa]['item']['endIndex']=_0x5d408b['get'](_0x273852[_0x1f3efa]['pairId']):'elementEnd'===_0x273852[_0x1f3efa]['type']&&(_0x273852[_0x1f3efa]['item']['startIndex']=_0x5d408b['get'](_0x273852[_0x1f3efa]['pairId']));}['_processTape'](_0x545f43){for(let _0x10e3e3=0x0;_0x10e3e3<_0x545f43['length'];_0x10e3e3++){if('elementStart'===_0x545f43[_0x10e3e3]['type'])_0x545f43[_0x10e3e3]['item']['startIndex']=_0x10e3e3;else{if('elementEnd'===_0x545f43[_0x10e3e3]['type']){_0x545f43[_0x10e3e3]['item']['endIndex']=_0x10e3e3;const _0x2e2688=_0x545f43[_0x10e3e3]['item']['startIndex'];_0x545f43[_0x2e2688]['pairId']=_0x545f43[_0x10e3e3]['id'],_0x545f43[_0x10e3e3]['pairId']=_0x545f43[_0x2e2688]['id'];}else _0x545f43[_0x10e3e3]['item']['startIndex']=_0x10e3e3,_0x545f43[_0x10e3e3]['item']['endIndex']=_0x10e3e3,_0x545f43[_0x10e3e3]['pairId']=null;}_0x545f43[_0x10e3e3]['markersStart']||(_0x545f43[_0x10e3e3]['markersStart']=[],_0x545f43[_0x10e3e3]['markersEnd']=[]);}}['_markInsertions'](_0x18b358,_0x5e1ecf){const _0x5b03c1=_0x18b358['filter'](_0x4723fb=>!_0x4723fb['isAdded']);for(let _0x50dc96=0x0;_0x50dc96<_0x5e1ecf['length'];_0x50dc96++)_0x5e1ecf[_0x50dc96]['isAdded']&&(_0x5b03c1[_0x50dc96]['isAdded']=_0x5e1ecf[_0x50dc96]['isAdded']);}['_makeModelFromViewString'](_0xbbecd7){const _0x22963d=JSON['parse'](_0xbbecd7),_0x304db9=this['editor']['editing']['view']['document'],_0x218e38=new _0x52f59f(_0x304db9,_0x22963d['map'](_0x147988=>this['_getViewObj'](_0x147988)));return this['editor']['data']['toModel'](_0x218e38);}['_getViewObj'](_0x38ea08){const _0x2336c4=this['editor']['editing']['view']['document'];if('string'==typeof _0x38ea08)return new _0x176147(_0x2336c4,_0x38ea08);{const _0x488112=_0x38ea08['children']['map'](_0x99ee30=>this['_getViewObj'](_0x99ee30));return new(Z[_0x38ea08['type']]||_0x241c33)(_0x2336c4,_0x38ea08['name'],_0x38ea08['attributes'],_0x488112);}}['_getDiff'](_0x264050,_0xa7c743=null){const _0xf5b807=this['repository']['getRevision'](_0x264050),_0xa08c20=_0xa7c743?this['repository']['getRevision'](_0xa7c743):null,_0xdb7f99=this['_getRevisionsRange'](_0xf5b807,_0xa08c20),_0x3c35c9=_0xdb7f99[_0xdb7f99['length']-0x1],_0x19ce9b=new Map(),_0x300280={'model':{},'attributes':{},'changes':[]},_0x516d69=new Set(),_0x9c64b7=new Map();for(let _0x1f1b46=_0xdb7f99['length']-0x1;_0x1f1b46>=0x0;_0x1f1b46--){const _0x4f053a=_0xdb7f99[_0x1f1b46];for(const _0x1ad9cd of Object['keys'](_0x4f053a['diffData']))if(_0x4f053a['diffData'][_0x1ad9cd]['attachChange']){const _0x32d7a9=_0x4f053a['diffData'][_0x1ad9cd]['attachChange'];_0x32d7a9['isAttached']?(_0x516d69['add'](_0x1ad9cd),_0x9c64b7['has'](_0x1ad9cd)&&_0x9c64b7['get'](_0x1ad9cd)['userId']==_0x32d7a9['userId']?_0x9c64b7['delete'](_0x1ad9cd):_0x9c64b7['set'](_0x1ad9cd,_0x32d7a9)):_0x9c64b7['has'](_0x1ad9cd)?(_0x516d69['delete'](_0x1ad9cd),_0x9c64b7['delete'](_0x1ad9cd)):(_0x516d69['add'](_0x1ad9cd),_0x9c64b7['set'](_0x1ad9cd,_0x32d7a9));}else _0x516d69['add'](_0x1ad9cd);}for(const _0x26134c of _0x516d69){const _0x55a8fd=_0x9c64b7['has'](_0x26134c)&&!_0x9c64b7['get'](_0x26134c)['isAttached'];let _0x3d7697=_0x55a8fd?_0xdb7f99['length']-0x1:0x0;const _0x20b382=_0x55a8fd?-0x1:0x1;for(;_0xdb7f99[_0x3d7697];){const _0x2ab6dc=_0xdb7f99[_0x3d7697];if(_0x2ab6dc['diffData'][_0x26134c]){const _0x403df7=_0x55a8fd?_0x2ab6dc['diffData'][_0x26134c]['attributesBefore']:_0x2ab6dc['diffData'][_0x26134c]['attributesAfter'];_0x300280['attributes'][_0x26134c]=_0x403df7?_0x10dfce(_0x403df7):{};break;}_0x3d7697+=_0x20b382;}}for(const _0x296f62 of _0xdb7f99){_0x296f62['model']={};for(const _0x5cf087 of _0x296f62['authors'])_0x19ce9b['set'](_0x5cf087['id'],_0x5cf087);for(const _0x49ec0d of _0x516d69){const _0x11c742=_0x296f62['diffData'][_0x49ec0d]?_0x296f62['diffData'][_0x49ec0d]['insertions']:'[]',_0x4fb0f5=_0x296f62['diffData'][_0x49ec0d]?_0x296f62['diffData'][_0x49ec0d]['deletions']:'[]';_0x296f62['model'][_0x49ec0d]={'insertions':this['_makeModelFromViewString'](_0x11c742),'deletions':this['_makeModelFromViewString'](_0x4fb0f5)};}}for(const _0x20ffbc of _0x516d69){let _0x28abb8=null,_0x4f98ff=0x0;const _0x5a3514=new Map(Array['from'](_0xf5b807['model'][_0x20ffbc]['insertions']['markers'])['filter'](([_0x1c285c])=>!_0x1c285c['startsWith']('revision:')));let _0x17803c=0x0;for(const _0x54cc91 of _0xdb7f99){const _0x556b6c=this['_makeTape'](_0x54cc91['model'][_0x20ffbc]['insertions']);_0x54cc91==_0xf5b807?(_0x28abb8=_0x556b6c,_0x4f98ff=_0x28abb8['length'],_0x28abb8['forEach'](_0x37055e=>{_0x37055e['id']=_0x17803c++;}),this['_processTape'](_0x28abb8)):this['_markInsertions'](_0x28abb8,_0x556b6c);const _0x47021d=_0x28abb8['filter'](_0x2dcafa=>!_0x2dcafa['isAdded'])['map'](_0x14d4ba=>_0x14d4ba['id']);let _0x2affb0=0x0;const _0x473329=this['_makeTape'](_0x54cc91['model'][_0x20ffbc]['deletions']);_0x473329['forEach'](_0x2d9a3a=>{_0x2d9a3a['isRemoved']?_0x2d9a3a['id']=_0x4f98ff++:_0x2d9a3a['id']=_0x47021d[_0x2affb0++];}),this['_processTape'](_0x473329),this['_setDistance'](_0x28abb8,'isAdded'),this['_setDistance'](_0x473329,'isRemoved'),_0x54cc91==_0xf5b807&&this['_markMarkers'](_0x28abb8,_0x5a3514),_0x28abb8=this['_joinTapes'](_0x28abb8,_0x473329),this['_refreshStartEndIndex'](_0x28abb8),this['_setDistance'](_0x28abb8,'isRemoved');}_0x28abb8=_0x28abb8['filter'](_0x129e95=>!(_0x129e95['isAdded']&&_0x129e95['isRemoved']));const _0x523668=new Map(_0x3c35c9['model'][_0x20ffbc]['deletions']['markers']),_0x21b753=new Set(_0x5a3514['keys']());for(const _0x5cac20 of _0x523668['keys']())_0x21b753['delete'](_0x5cac20);this['_markSuggestions'](_0x28abb8,_0x21b753),this['_fixObsoleteTags'](_0x28abb8),_0x28abb8=this['_removeMissingPairs'](_0x28abb8),_0x28abb8=this['_markMismatchedRemovedTags'](_0x28abb8),_0x28abb8=this['_removeUnsupportedChanges'](_0x28abb8);const {root:_0x13348d,changes:_0x9fe1b7}=this['_makeModelFromTape'](_0x28abb8,_0x19ce9b,_0x20ffbc);_0x300280['model'][_0x20ffbc]=_0x13348d;const _0x3255c3=_0x9c64b7['get'](_0x20ffbc);if(_0x3255c3){const _0x3bad68=_0x19ce9b['get'](_0x3255c3['userId']),_0x25d60a=new r({'author':_0x3bad68,'type':_0x3255c3['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x20ffbc});_0x9fe1b7['unshift'](_0x25d60a),_0x300280['attributes'][_0x20ffbc]['revisionHistoryAttachChange']=_0x25d60a['id'];}_0x300280['changes']=_0x300280['changes']['concat'](_0x9fe1b7);}return _0x300280;}['_markMarkers'](_0x4d8689,_0x3db3f0){for(let _0x39bf4b=0x0;_0x39bf4b<_0x4d8689['length'];_0x39bf4b++)for(const [_0x128cb7,_0x4f7b56]of _0x3db3f0)_0x4f7b56['start']['isEqual'](_0x4d8689[_0x39bf4b]['previousPosition'])&&_0x4d8689[_0x39bf4b]['markersStart']['push'](_0x128cb7),_0x4f7b56['end']['isEqual'](_0x4d8689[_0x39bf4b]['nextPosition'])&&_0x4d8689[_0x39bf4b]['markersEnd']['push'](_0x128cb7);}['_joinTapes'](_0x385997,_0x4d38c7){let _0xdf1ca6=[],_0x5767bf=0x0,_0x17315e=0x0;for(;_0x5767bf<_0x385997['length']||_0x17315e<_0x4d38c7['length'];){const _0xe6c2db=_0x385997[_0x5767bf]||{},_0x28fbcf=_0x4d38c7[_0x17315e]||{};if(_0xe6c2db['id']==_0x28fbcf['id'])_0x5767bf++,_0x17315e++,_0xdf1ca6['push'](_0xe6c2db);else{if(_0x28fbcf['isRemoved']&&_0xe6c2db['isAdded']){const {commonTape:_0x4451ac,iEnd:_0x330823,jEnd:_0x3d66f1}=this['_threeWayMerge'](_0x385997,_0x5767bf,_0x4d38c7,_0x17315e);_0xdf1ca6=_0xdf1ca6['concat'](_0x4451ac),_0x5767bf=_0x330823,_0x17315e=_0x3d66f1;}else _0x28fbcf['isRemoved']?(_0x17315e++,_0xdf1ca6['push'](_0x28fbcf)):(_0x5767bf++,_0xdf1ca6['push'](_0xe6c2db));}}return _0xdf1ca6;}['_markSuggestions'](_0x3f8d59,_0x3a4841){const _0x1e7c3c=[];for(let _0xce9405=0x0;_0xce9405<_0x3f8d59['length'];_0xce9405++){for(let _0xd9286c=0x0;_0xd9286c<_0x3f8d59[_0xce9405]['markersStart']['length'];_0xd9286c++){const _0x2fcd96=_0x3f8d59[_0xce9405]['markersStart'][_0xd9286c];if(!_0x3a4841['has'](_0x2fcd96))continue;const {group:_0x5021d,type:_0x3d3dd4,authorId:_0x467eb5}=_0x4bfcc7(_0x2fcd96);'revision-suggestion'!=_0x5021d||'insertion'!=_0x3d3dd4&&'deletion'!=_0x3d3dd4||(_0x1e7c3c['unshift']({'type':_0x3d3dd4,'name':_0x2fcd96,'userId':_0x467eb5}),_0x3f8d59[_0xce9405]['markersStart']['splice'](_0xd9286c,0x1),_0xd9286c--);}_0x746d31(_0x3f8d59[_0xce9405]);for(let _0x1af521=0x0;_0x1af521<_0x3f8d59[_0xce9405]['markersEnd']['length'];_0x1af521++){const _0x3f7d20=_0x3f8d59[_0xce9405]['markersEnd'][_0x1af521];if(!_0x3a4841['has'](_0x3f7d20))continue;const {group:_0x2a2bd5,type:_0x39d316}=_0x4bfcc7(_0x3f7d20);if('revision-suggestion'!=_0x2a2bd5||'insertion'!=_0x39d316&&'deletion'!=_0x39d316)continue;_0x3f8d59[_0xce9405]['markersEnd']['splice'](_0x1af521,0x1),_0x1af521--;const _0x2a3340=_0x1e7c3c['findIndex'](_0xcfb1bb=>_0xcfb1bb['name']==_0x3f7d20);_0x2a3340>-0x1&&_0x1e7c3c['splice'](_0x2a3340,0x1);}}function _0x4bfcc7(_0x22e755){const _0x327d71=_0x22e755['split'](':');return{'group':_0x327d71[0x0],'type':_0x327d71[0x1],'subType':_0x327d71['length']>=0x5?_0x327d71[0x2]:null,'id':_0x327d71['length']<0x5?_0x327d71[0x2]:_0x327d71[0x3],'authorId':_0x327d71['length']<0x5?_0x327d71[0x3]:_0x327d71[0x4],'markerCount':0x6==_0x327d71['length']?_0x327d71[0x5]:null};}function _0x746d31(_0x34e0ae){for(let _0x2d2706=0x0;_0x2d2706<_0x1e7c3c['length'];_0x2d2706++){if(_0x34e0ae['isAdded']&&'insertion'==_0x1e7c3c[_0x2d2706]['type'])return _0x34e0ae['isAddSuggestion']=_0x1e7c3c[_0x2d2706],void delete _0x34e0ae['isAdded'];if(!_0x34e0ae['isAdded']&&!_0x34e0ae['isRemoved']&&'deletion'==_0x1e7c3c[_0x2d2706]['type'])return void(_0x34e0ae['isRemoveSuggestion']=_0x1e7c3c[_0x2d2706]);}}}['_setDistance'](_0x5de110,_0x3ace56){let _0x4d316c=0x0,_0x58ee46=!0x1;const _0x4bf90f=new Map();for(const _0x5ecec0 of _0x5de110)_0x5ecec0[_0x3ace56]?_0x58ee46&&(_0x4d316c++,_0x58ee46=!0x1):(_0x4d316c++,_0x58ee46=!0x0),_0x4bf90f['set'](_0x5ecec0['id'],_0x4d316c);for(let _0x272e97=0x0;_0x272e97<_0x5de110['length'];_0x272e97++){if('isRemoved'==_0x3ace56&&_0x5de110[_0x272e97]['isAdded']||'isAdded'==_0x3ace56&&_0x5de110[_0x272e97]['isRemoved'])continue;if('text'==_0x5de110[_0x272e97]['type']){_0x5de110[_0x272e97]['distance']=0x0;continue;}const _0x4d5f10=_0x4bf90f['get'](_0x5de110[_0x272e97]['pairId']),_0x33ca5c=_0x4bf90f['get'](_0x5de110[_0x272e97]['id']);_0x5de110[_0x272e97]['distance']=_0x4d5f10-_0x33ca5c;}}['_getRevisionsRange'](_0x4532a4,_0x5f456d,_0x5b61af=!0x1){const _0x445927=[];let _0x5b3202=this['repository']['getIndex'](_0x4532a4),_0x101a96=this['repository']['getIndex'](_0x5f456d);for(-0x1==_0x101a96&&(_0x101a96=this['repository']['_revisions']['length'],_0x5b61af=!0x1);_0x5b3202<_0x101a96;)_0x445927['push'](this['repository']['getRevision'](_0x5b3202)),_0x5b3202++;return _0x5b61af&&_0x445927['push'](this['repository']['getRevision'](_0x5b3202)),_0x445927;}['_threeWayMerge'](_0x22cb1a,_0xb32747,_0x4e3874,_0x39c7f7){const _0x5dcf72=this['editor']['model']['schema'];let _0x2c9bcf=_0xb32747;for(;_0x22cb1a[_0x2c9bcf]&&_0x22cb1a[_0x2c9bcf]['isAdded'];)_0x2c9bcf++;let _0x558888=_0x39c7f7;for(;_0x4e3874[_0x558888]&&_0x4e3874[_0x558888]['isRemoved'];)_0x558888++;_0x3851cd(_0x22cb1a,_0xb32747,_0x2c9bcf),_0x3851cd(_0x4e3874,_0x39c7f7,_0x558888);const _0x1d3b11=_0x4e3874['slice'](_0x39c7f7,_0x558888)['concat'](_0x22cb1a['slice'](_0xb32747,_0x2c9bcf));return _0x1d3b11['sort']((_0x2a7dba,_0x377711)=>_0x2a7dba['side']!=_0x377711['side']?_0x2a7dba['side']-_0x377711['side']:_0x2a7dba['level']!=_0x377711['level']?_0x2a7dba['level']-_0x377711['level']:_0x2a7dba['distance']!=_0x377711['distance']?_0x377711['distance']-_0x2a7dba['distance']:!!_0x2a7dba['isAdded']!=!!_0x377711['isAdded']?-0x1==_0x2a7dba['side']||0x0==_0x2a7dba['side']?_0x2a7dba['isAdded']?-0x1:0x1:_0x2a7dba['isAdded']?0x1:-0x1:_0x2a7dba['index']-_0x377711['index']),{'commonTape':_0x1d3b11,'iEnd':_0x2c9bcf,'jEnd':_0x558888};function _0x3851cd(_0x3e6c24,_0x4635ad,_0x5a5ba8){let _0x3b393d=-0x1,_0x3992b0=Number['POSITIVE_INFINITY'],_0xa9bf82=!0x0;for(let _0x57c2a8=_0x4635ad;_0x57c2a8<_0x5a5ba8;_0x57c2a8++)if(_0x5dcf72['isInline'](_0x3e6c24[_0x57c2a8]['item'])||(_0xa9bf82=!0x1),_0x3e6c24[_0x57c2a8]['item']['startIndex']<_0x4635ad&&(_0x3b393d=_0x57c2a8),_0x3e6c24[_0x57c2a8]['item']['endIndex']>=_0x5a5ba8){_0x3992b0=_0x57c2a8;break;}_0xa9bf82&&(_0x3b393d=_0x5a5ba8-0x1);for(let _0x4180ab=_0x4635ad;_0x4180ab<_0x5a5ba8;_0x4180ab++)_0x3e6c24[_0x4180ab]['side']=_0x4180ab<=_0x3b393d?-0x1:_0x4180ab<_0x3992b0?0x0:0x1,_0x3e6c24[_0x4180ab]['index']=_0x4180ab;let _0x5a57e8=0x0;for(let _0x30d641=_0x4635ad;_0x30d641<=_0x3b393d;_0x30d641++)0x0==_0x3e6c24[_0x30d641]['distance']?_0x3e6c24[_0x30d641]['level']=_0x5a57e8:(_0x5a57e8++,_0x3e6c24[_0x30d641]['level']=_0x5a57e8,_0x5a57e8++);for(let _0x23d7c7=_0x4635ad;_0x23d7c7<_0x5a5ba8;_0x23d7c7++)0x0==_0x3e6c24[_0x23d7c7]['side']&&(_0x3e6c24[_0x23d7c7]['level']=_0x5a57e8);_0x5a57e8=0x0;for(let _0x4a2246=_0x5a5ba8-0x1;_0x4a2246>=_0x3992b0;_0x4a2246--)0x0==_0x3e6c24[_0x4a2246]['distance']?_0x3e6c24[_0x4a2246]['level']=_0x5a57e8:(_0x5a57e8--,_0x3e6c24[_0x4a2246]['level']=_0x5a57e8,_0x5a57e8--);}}['_fixObsoleteTags'](_0x344272){const _0x2d4617=new Map(),_0x1f1fd0=this['editor']['model']['schema'];for(let _0x5dd7a2=0x1;_0x5dd7a2<_0x344272['length'];_0x5dd7a2++){let _0x1492bc,_0x1db905,_0x2559ce;const _0x450b0c=_0x344272[_0x5dd7a2],_0x228769=_0x344272[_0x5dd7a2-0x1];if('text'==_0x450b0c['type'])continue;if(_0x450b0c['type']!=_0x228769['type'])continue;if(!_0x1f1fd0['isBlock'](_0x228769['item'])||_0x1f1fd0['isLimit'](_0x228769['item']))continue;if(!_0x1f1fd0['isBlock'](_0x450b0c['item'])||_0x1f1fd0['isLimit'](_0x450b0c['item']))continue;if((_0x344272[_0x5dd7a2]['isAdded']||_0x344272[_0x5dd7a2]['isAddSuggestion'])&&_0x344272[_0x5dd7a2-0x1]['isRemoved'])_0x1492bc=_0x344272[_0x5dd7a2],_0x1db905=_0x344272[_0x5dd7a2-0x1],_0x2559ce=_0x5dd7a2-0x1;else{if(!_0x344272[_0x5dd7a2]['isRemoved']||!_0x344272[_0x5dd7a2-0x1]['isAdded']&&!_0x344272[_0x5dd7a2-0x1]['isAddSuggestion'])continue;_0x1492bc=_0x344272[_0x5dd7a2-0x1],_0x1db905=_0x344272[_0x5dd7a2],_0x2559ce=_0x5dd7a2;}const _0x56c403=_0x1492bc['level']==_0x1db905['level'],_0x237554=Math['abs'](_0x1492bc['level'])<Math['abs'](_0x1db905['level'])&&0x0==_0x1db905['distance'];(_0x56c403||_0x237554)&&(_0x2d4617['set'](_0x1db905['id'],_0x1492bc['id']),_0x344272['splice'](_0x2559ce,0x1),_0x5dd7a2--,_0x1492bc['isAdded']=!0x1);}for(let _0x49ce23=0x0;_0x49ce23<_0x344272['length'];_0x49ce23++)_0x2d4617['has'](_0x344272[_0x49ce23]['pairId'])&&(_0x344272[_0x49ce23]['pairId']=_0x2d4617['get'](_0x344272[_0x49ce23]['pairId']));}['_removeMissingPairs'](_0x379c68){const _0x5a68ad=new Set(_0x379c68['map'](_0x2ac6c4=>_0x2ac6c4['id']));for(let _0x5e5c91=0x0;_0x5e5c91<_0x379c68['length'];_0x5e5c91++)_0x5a68ad['has'](_0x379c68[_0x5e5c91]['pairId'])||0x0==_0x379c68[_0x5e5c91]['distance']||(_0x379c68[_0x5e5c91]['isIncorrect']=!0x0);return _0x379c68['filter'](_0x31de3b=>!_0x31de3b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41fbab){const _0x5f4c52=new Set();for(let _0x5d3c5e=0x0;_0x5d3c5e<_0x41fbab['length'];_0x5d3c5e++){if(_0x5f4c52['has'](_0x41fbab[_0x5d3c5e]['id'])&&_0x41fbab[_0x5d3c5e]['isRemoved']&&(_0x41fbab[_0x5d3c5e]['isIncorrect']=!0x0),_0x41fbab[_0x5d3c5e]['isIncorrect'])continue;if(0x0==_0x41fbab[_0x5d3c5e]['distance'])continue;if('elementStart'!=_0x41fbab[_0x5d3c5e]['type'])continue;if(null==_0x41fbab[_0x5d3c5e]['pairId'])continue;let _0x2aac6f=_0x5d3c5e+0x1,_0x177e2a=0x0;for(;_0x41fbab[_0x2aac6f]['id']!=_0x41fbab[_0x5d3c5e]['pairId'];)'elementStart'==_0x41fbab[_0x2aac6f]['type']?_0x177e2a++:'elementEnd'==_0x41fbab[_0x2aac6f]['type']&&_0x177e2a--,_0x2aac6f++;if(0x0!=_0x177e2a){if(_0x41fbab[_0x5d3c5e]['isRemoved'])_0x41fbab[_0x5d3c5e]['isIncorrect']=!0x0;else{for(;_0x2aac6f!=_0x5d3c5e;)_0x41fbab[_0x2aac6f]['isRemoved']&&0x0!=_0x41fbab[_0x2aac6f]['distance']&&(_0x41fbab[_0x2aac6f]['isIncorrect']=!0x0,_0x5f4c52['add'](_0x41fbab[_0x2aac6f]['pairId'])),_0x2aac6f--;}}}return _0x41fbab['filter'](_0x316a7e=>!_0x316a7e['isIncorrect']);}['_removeUnsupportedChanges'](_0x48c09e){const _0x3e8e43=this['editor']['model']['schema'];for(let _0xd2b3df=0x0;_0xd2b3df<_0x48c09e['length'];_0xd2b3df++){if(!(_0x48c09e[_0xd2b3df]['isAdded']||_0x48c09e[_0xd2b3df]['isAddSuggestion']||_0x48c09e[_0xd2b3df]['isRemoved']||_0x48c09e[_0xd2b3df]['isRemoveSuggestion']))continue;if(0x0==_0x48c09e[_0xd2b3df]['distance'])continue;const _0xe4a62a=_0x48c09e[_0xd2b3df]['item'];_0x3e8e43['isBlock'](_0xe4a62a)||_0x3e8e43['isLimit'](_0xe4a62a)||(_0x48c09e[_0xd2b3df]['isAdded']&&delete _0x48c09e[_0xd2b3df]['isAdded'],_0x48c09e[_0xd2b3df]['isAddSuggestion']&&delete _0x48c09e[_0xd2b3df]['isAddSuggestion'],_0x48c09e[_0xd2b3df]['isRemoveSuggestion']&&delete _0x48c09e[_0xd2b3df]['isRemoveSuggestion'],_0x48c09e[_0xd2b3df]['isRemoved']&&(_0x48c09e[_0xd2b3df]['isIncorrect']=!0x0));}return _0x48c09e['filter'](_0x28b7d0=>!_0x28b7d0['isIncorrect']);}['_makeModelFromTape'](_0x5a6f25,_0x434e39,_0x412ee3){const _0x3f1e24=new mt(),_0x47bbcf=[],_0x571ea2=new Map(),_0x2b145f=this['editor']['model'],_0x4eedb0=_0x2b145f['schema'],_0x42697e=[_0x3f1e24],_0x359611={},_0x43c74c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x270ef9=null;const _0x3acd9c=[0x0];for(let _0x4b6adc=0x0;_0x4b6adc<_0x5a6f25['length'];_0x4b6adc++)if('elementStart'===_0x5a6f25[_0x4b6adc]['type']){_0x5a6f25[_0x4b6adc]['previousPosition']=_0x2b145f['createPositionFromPath'](_0x3f1e24,_0x3acd9c);const _0x104e43=new ft(_0x5a6f25[_0x4b6adc]['item']['name'],_0x5a6f25[_0x4b6adc]['item']['getAttributes']());_0x42697e[0x0]['_appendChild'](_0x104e43),_0x3acd9c['push'](0x0),_0x42697e['unshift'](_0x104e43),_0x5a6f25[_0x4b6adc]['nextPosition']=_0x2b145f['createPositionFromPath'](_0x3f1e24,_0x3acd9c);}else'elementEnd'===_0x5a6f25[_0x4b6adc]['type']?(_0x42697e['shift'](),_0x5a6f25[_0x4b6adc]['previousPosition']=_0x2b145f['createPositionFromPath'](_0x3f1e24,_0x3acd9c),_0x3acd9c['pop'](),_0x3acd9c[_0x3acd9c['length']-0x1]++,_0x5a6f25[_0x4b6adc]['nextPosition']=_0x2b145f['createPositionFromPath'](_0x3f1e24,_0x3acd9c)):(_0x5a6f25[_0x4b6adc]['previousPosition']=_0x2b145f['createPositionFromPath'](_0x3f1e24,_0x3acd9c),_0x270ef9?_0x270ef9['_data']+=_0x5a6f25[_0x4b6adc]['item']['data']:_0x270ef9=new wt(_0x5a6f25[_0x4b6adc]['item']['data'],_0x5a6f25[_0x4b6adc]['item']['getAttributes']()),_0x5a6f25[_0x4b6adc+0x1]&&'text'===_0x5a6f25[_0x4b6adc+0x1]['type']&&_0x5cd341(_0x270ef9,_0x5a6f25[_0x4b6adc+0x1]['item'])||(_0x42697e[0x0]['_appendChild'](_0x270ef9),_0x270ef9=null),_0x3acd9c[_0x3acd9c['length']-0x1]+=_0x5a6f25[_0x4b6adc]['item']['offsetSize'],_0x5a6f25[_0x4b6adc]['nextPosition']=_0x2b145f['createPositionFromPath'](_0x3f1e24,_0x3acd9c));for(let _0x23db68=0x0;_0x23db68<_0x5a6f25['length'];_0x23db68++){const _0x1e8fa2=_0x5a6f25[_0x23db68]['previousPosition'],_0x1a0ffa=_0x5a6f25[_0x23db68]['nextPosition'];for(const _0x56b420 of _0x5a6f25[_0x23db68]['markersStart'])_0x571ea2['set'](_0x56b420,{'start':_0x1e8fa2,'end':null});_0x54a8e7('isRemoveSuggestion',_0x23db68,_0x1e8fa2,_0x1a0ffa),_0x54a8e7('isAddSuggestion',_0x23db68,_0x1e8fa2,_0x1a0ffa),_0x54a8e7('isRemoved',_0x23db68,_0x1e8fa2,_0x1a0ffa),_0x54a8e7('isAdded',_0x23db68,_0x1e8fa2,_0x1a0ffa);for(const _0x27e37d of _0x5a6f25[_0x23db68]['markersEnd']){_0x571ea2['get'](_0x27e37d)['end']=_0x1a0ffa;}}for(const [_0x2256b4,_0x3c339a]of _0x571ea2){const _0x33c03e=this['editor']['model']['createRange'](_0x3c339a['start'],_0x3c339a['end']);_0x3f1e24['markers']['set'](_0x2256b4,_0x33c03e);}return _0x47bbcf['sort']((_0x4bdb70,_0x1fa0b7)=>{const _0xa70e28=_0x3f1e24['markers']['get']('revision:'+_0x4bdb70['id']),_0x473a4c=_0x3f1e24['markers']['get']('revision:'+_0x1fa0b7['id']);return _0xa70e28['start']['isBefore'](_0x473a4c['start'])?-0x1:_0xa70e28['start']['isAfter'](_0x473a4c['start'])?0x1:_0xa70e28['end']['isBefore'](_0x473a4c['end'])?-0x1:_0xa70e28['end']['isAfter'](_0x473a4c['end'])?0x1:'add'===_0x4bdb70['type']?-0x1:0x1;}),{'root':_0x3f1e24,'changes':_0x47bbcf};function _0x54a8e7(_0x2c4ab8,_0x3721b4,_0x114177,_0x258152){const _0x246395=!!_0x5a6f25[_0x3721b4][_0x2c4ab8],_0x40bf90=_0x246395?_0x5a6f25[_0x3721b4][_0x2c4ab8]['userId']:null,_0x4ae41f=_0x3721b4===_0x5a6f25['length']-0x1,_0x2cab7b=_0x43c74c[_0x2c4ab8][0x0],_0x5e79b2=_0x4eedb0['isObject'](_0x5a6f25[_0x3721b4]['item']);!_0x359611[_0x2c4ab8]&&_0x246395?_0x359611[_0x2c4ab8]={'start':_0x114177,'tapeItem':_0x5a6f25[_0x3721b4],'userId':_0x40bf90,'type':_0x2c4ab8}:_0x359611[_0x2c4ab8]&&!_0x246395?(_0x359611[_0x2c4ab8]['end']=_0x114177,_0x3a86f0(_0x359611[_0x2c4ab8]),_0x359611[_0x2c4ab8]=null):_0x359611[_0x2c4ab8]&&_0x246395&&_0x359611[_0x2c4ab8]['userId']!==_0x40bf90&&(_0x359611[_0x2c4ab8]['end']=_0x114177,_0x2cab7b&&_0x2cab7b['userId']===_0x359611[_0x2c4ab8]['userId']||_0x3a86f0(_0x359611[_0x2c4ab8]),_0x359611[_0x2c4ab8]={'start':_0x114177,'tapeItem':_0x5a6f25[_0x3721b4],'userId':_0x40bf90,'type':_0x2c4ab8}),_0x359611[_0x2c4ab8]&&_0x5e79b2&&('elementStart'!==_0x5a6f25[_0x3721b4]['type']||_0x2cab7b&&_0x2cab7b['userId']===_0x40bf90||_0x43c74c[_0x2c4ab8]['unshift']({'userId':_0x40bf90,'object':_0x5a6f25[_0x3721b4]['item'],'change':_0x359611[_0x2c4ab8]}),'elementEnd'===_0x5a6f25[_0x3721b4]['type']&&_0x2cab7b&&_0x2cab7b['object']===_0x5a6f25[_0x3721b4]['item']&&(_0x43c74c[_0x2c4ab8]['shift'](),_0x359611[_0x2c4ab8]=_0x2cab7b['change'])),_0x359611[_0x2c4ab8]&&_0x4ae41f&&(_0x359611[_0x2c4ab8]['end']=_0x258152,_0x3a86f0(_0x359611[_0x2c4ab8]),_0x359611[_0x2c4ab8]=null);}function _0x3a86f0({start:_0x2bfbc3,end:_0x5e6af0,tapeItem:_0x1261a8,userId:_0x365746,type:_0x45f7fc}){const _0x337679=_0x1261a8['item'],_0x53a040=_0x2b145f['schema']['isBlock'](_0x337679)&&!_0x2b145f['schema']['isLimit'](_0x337679),_0x485dfb=_0x2bfbc3['nodeAfter']==_0x5e6af0['parent']&&_0x5e6af0['isAtStart'];if(_0x53a040&&_0x485dfb)return;const _0x417d49=_0x2b145f['createRange'](_0x2bfbc3,_0x5e6af0),_0x59da26=_0x434e39['get'](_0x365746),_0x6832b5=new r({'author':_0x59da26,'type':'isAdded'==_0x45f7fc||'isAddSuggestion'==_0x45f7fc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x45f7fc||'isRemoveSuggestion'==_0x45f7fc},'createdAt':new Date(),'rootName':_0x412ee3});_0x47bbcf['push'](_0x6832b5),_0x3f1e24['markers']['set']('revision:'+_0x6832b5['id'],_0x417d49);}function _0x5cd341(_0x1e641a,_0x2a0f3f){const _0xb5abdf=_0x1e641a['getAttributes'](),_0x5ce6b9=_0x2a0f3f['getAttributes']();for(const _0x4e9ea9 of _0xb5abdf){if(_0x4e9ea9[0x1]!==_0x2a0f3f['getAttribute'](_0x4e9ea9[0x0]))return!0x1;_0x5ce6b9['next']();}return _0x5ce6b9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5b0131=>{const _0x2c2263=_0x5b0131['markerName']['split'](':')[0x1],_0x4aa26f=this['_getChangeFromId'](_0x2c2263);if(!_0x4aa26f)return null;const _0x555a14='add'==_0x4aa26f['type']?'insertion':'deletion',_0x122670=['ck-suggestion-marker','ck-suggestion-marker-'+_0x555a14];return _0x4aa26f['data']['isSuggestion']&&_0x122670['push']('ck-suggestion-marker-'+_0x555a14+'-new'),this['activeChange']==_0x4aa26f&&_0x122670['push']('ck-suggestion-marker--active'),{'classes':_0x122670,'attributes':{'data-change-id':_0x2c2263}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xd306ce=>{_0xd306ce['on']('element:pre',(_0x5cb43c,_0x14b72f,_0x3355e2)=>{const _0x22da96=_0x14b72f['viewItem']['getChild'](0x0);if(!_0x22da96||!_0x22da96['is']('element','code'))return;if(!_0x3355e2['consumable']['consume'](_0x22da96,{'attributes':['vid_start','vid_end']}))return;const _0x504db5=_0x14b72f['modelRange']['start']['nodeAfter'];_0x3355e2['writer']['setAttribute']('vid_start',_0x22da96['getAttribute']('vid_start'),_0x504db5),_0x3355e2['writer']['setAttribute']('vid_end',_0x22da96['getAttribute']('vid_end'),_0x504db5);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1aa46b=>{_0x1aa46b['on']('element',(_0x2e8a33,_0x5b9e23,_0x5505a9)=>{if(!_0x5505a9['consumable']['consume'](_0x5b9e23['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5b9e23['modelRange']['isCollapsed'])return;const _0x4da84b=_0x5b9e23['modelRange']['start']['nodeAfter'];_0x4da84b['hasAttribute']('vid_start')||_0x4da84b['hasAttribute']('vid')||(_0x5505a9['writer']['setAttribute']('vid_start',_0x5b9e23['viewItem']['getAttribute']('vid_start'),_0x4da84b),_0x5505a9['writer']['setAttribute']('vid_end',_0x5b9e23['viewItem']['getAttribute']('vid_end'),_0x4da84b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5e9380=>_0x5e9380['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3d40a8,[,_0x53bb5e])=>{['vid_start','vid_end','vid']['includes'](_0x53bb5e)&&(_0x3d40a8['return']=!0x0,_0x3d40a8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x157784=>{_0x157784['on']('attribute:vid',(_0x5601b9,_0x2fdaf5,_0x2c7c41)=>{if('\x20'!=_0x2fdaf5['item']['data']||_0x2fdaf5['item']['parent']['maxOffset']>0x1)return;if(!_0x2c7c41['consumable']['consume'](_0x2fdaf5['item'],_0x5601b9['name']))return;const _0x1c9867=_0x2c7c41['writer'],_0x2aca60=_0x2c7c41['mapper']['toViewRange'](_0x2fdaf5['range']);_0x1c9867['wrap'](_0x2aca60,_0x1c9867['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4c23c8){const _0x23a02a=_0x4c23c8['plugins']['get']('RevisionViewer');return(_0x2ddbf5,_0x4f5c60,_0x304321)=>{const _0x5357c4=_0x4f5c60['markerName']['split'](':')[0x1],_0x56fc8d=_0x23a02a['_getChangeFromId'](_0x5357c4);if(!_0x56fc8d)return null;const _0x1b5964='add'==_0x56fc8d['type']?'split':'merge';if(!_0x304321['consumable']['test'](_0x4f5c60['markerRange'],_0x2ddbf5['name']))return;const _0x1a445a=_0x4f5c60['markerRange']['getWalker'](),_0x126f1c=_0x4f5c60['markerRange']['start'],_0x295902=_0x4c23c8['model']['schema'];let _0x31aa54=null,_0xa577cd=null,_0x4979ce=!0x1,_0x533cff=!0x1;for(const _0x3d1dc2 of _0x1a445a){const _0x575bcf=_0x3d1dc2['item'];_0x4979ce=_0x4979ce||_0x295902['isContent'](_0x575bcf);const _0xbee36b=_0x304321['mapper']['toViewElement'](_0x575bcf);if(_0xbee36b&&_0xbee36b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d1dc2['type']&&(_0x295902['isBlock'](_0x575bcf)&&!_0x295902['isLimit'](_0x575bcf)&&(_0x575bcf['nextSibling']||_0x126f1c['isAtEnd']?_0x31aa54&&_0x31aa54['parent']==_0x575bcf||(_0x31aa54=_0x575bcf,_0x2bc639(_0x3d1dc2['previousPosition']),_0x533cff=!0x0):_0xa577cd=_0xa577cd||_0x3d1dc2['previousPosition']));}function _0x2bc639(_0x128fa4){const _0x398764=_0x304321['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b5964}),_0x44c91c=_0x304321['mapper']['toViewPosition'](_0x128fa4);_0x56fc8d['data']['isSuggestion']&&_0x304321['writer']['addClass']('ck-suggestion-marker-'+_0x1b5964+'-new',_0x398764),_0x23a02a['activeChange']==_0x56fc8d&&_0x304321['writer']['addClass']('ck-suggestion-marker--active',_0x398764),_0x304321['writer']['insert'](_0x44c91c,_0x398764),_0x304321['mapper']['bindElementToMarker'](_0x398764,_0x4f5c60['markerName']);}_0x4979ce||_0x533cff||!_0xa577cd||_0x2bc639(_0xa577cd);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5426fb,_0x188fa1,_0x2f3362)=>{const _0x4859e5=_0x2f3362['mapper']['markerNameToElements'](_0x188fa1['markerName']);if(_0x4859e5){for(const _0x132730 of _0x4859e5)(_0x132730['hasClass']('ck-suggestion-marker-split')||_0x132730['hasClass']('ck-suggestion-marker-merge'))&&(_0x2f3362['mapper']['unbindElementFromMarkerName'](_0x132730,_0x188fa1['markerName']),_0x2f3362['writer']['remove'](_0x132730));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x14d1f0,_0x3c5d80,_0x51172a)=>{const _0x359930=_0x3c5d80['markerName']['split'](':')[0x1],_0x5f2eb5=this['_getChangeFromId'](_0x359930);if(!_0x5f2eb5)return null;const _0x596275='add'==_0x5f2eb5['type']?'split':'merge';if(_0x51172a['consumable']['test'](_0x3c5d80['markerRange'],_0x14d1f0['name']))for(const _0x2c904e of _0x3c5d80['markerRange']['getItems']()){if(!_0x2c904e['is']('element','softBreak'))continue;const _0x2b862e=_0x51172a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x596275}),_0x38ef64=_0x51172a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2c904e));_0x5f2eb5['data']['isSuggestion']&&_0x51172a['writer']['addClass']('ck-suggestion-marker-'+_0x596275+'-new',_0x2b862e),this['activeChange']==_0x5f2eb5&&_0x51172a['writer']['addClass']('ck-suggestion-marker--active',_0x2b862e),_0x51172a['writer']['insert'](_0x38ef64,_0x2b862e),_0x51172a['mapper']['bindElementToMarker'](_0x2b862e,_0x3c5d80['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2f6a80=>{for(const _0x209084 of this['editor']['model']['document']['getRootNames']()){const _0x2a2847=this['editor']['model']['document']['getRoot'](_0x209084),_0x115c14=this['editor']['editing']['view']['document']['getRoot'](_0x209084);if(_0x115c14){const _0x1d89b8=_0x2a2847['getAttribute']('revisionHistoryAttachChange');if(_0x2f6a80['removeAttribute']('data-change-id',_0x115c14),_0x2f6a80['removeClass']('ck-revision-history-root-add',_0x115c14),_0x2f6a80['removeClass']('ck-revision-history-root-remove',_0x115c14),_0x2f6a80['removeClass']('ck-revision-history-root--active',_0x115c14),_0x1d89b8){const _0x4ee80f=this['_getChangeFromId'](_0x1d89b8);if(!_0x4ee80f)return null;_0x2f6a80['setAttribute']('data-change-id',_0x1d89b8,_0x115c14),_0x2f6a80['addClass']('ck-revision-history-root-'+_0x4ee80f['type'],_0x115c14),this['activeChange']==_0x4ee80f&&_0x2f6a80['addClass']('ck-revision-history-root--active',_0x115c14);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1c87c0=>'revision-comment:'+_0x1c87c0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3b1e3f=>'revision-suggestion:'+_0x3b1e3f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x477824=>({'name':'suggestion:'+_0x477824,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1a2951=>{const _0x31dcce=_0x1a2951['markerName']['split'](':')[0x1];return'insertion'!=_0x31dcce&&'deletion'!=_0x31dcce?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x31dcce]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x22d6e3,_0x224f35,_0x4ce82e)=>{const _0x1e8669=_0x4ce82e['mapper']['markerNameToElements'](_0x224f35['markerName']);if(_0x1e8669){for(const _0x20b01e of _0x1e8669)_0x20b01e['is']('uiElement')&&(_0x4ce82e['mapper']['unbindElementFromMarkerName'](_0x20b01e,_0x224f35['markerName']),_0x4ce82e['writer']['remove'](_0x20b01e));}},{'priority':'high'});}['_getChangeFromId'](_0x1178b4){return this['_changeIdToChange']['get'](_0x1178b4);}['_getViewForChange'](_0x2bfc80){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x2bfc80),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x322f63,_0x12d657,_0x3cf0de,_0x13014b)=>{_0x13014b&&this['_balloon']['remove'](_0x13014b),_0x3cf0de&&(this['_balloon']['add']({'view':_0x3cf0de,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4cf31c=this['editor']['editing'],_0x8d83ce=this['_getChangeFromId'](_0x3cf0de['changeId']);let _0x293d12;if(_0x8d83ce['data']['isOnRoot']){const _0x31a921=_0x4cf31c['view']['getDomRoot'](_0x8d83ce['rootName']);_0x293d12=Array['from'](_0x31a921['getClientRects']());}else{const _0x37194d=this['editor']['model']['markers']['get']('revision:'+_0x3cf0de['changeId']);_0x293d12=Array['from'](_0x4cf31c['mapper']['markerNameToElements'](_0x37194d['name']))['map'](_0x484c29=>_0x4cf31c['view']['domConverter']['mapViewToDom'](_0x484c29))['map'](_0x51476c=>Array['from'](_0x51476c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x293d12[0x0];return _0x293d12['find'](_0x21d909=>_0x21d909['top']-0x3<=this['_activeViewTarget']['y']&&_0x21d909['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x21d909['left']-0x3<=this['_activeViewTarget']['x']&&_0x21d909['right']+0x3>=this['_activeViewTarget']['x'])||_0x293d12[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5eb6a2,_0x3c837b,_0x2d7522,_0x34a36e)=>{this['activeView']=_0x2d7522?this['_getViewForChange'](_0x2d7522):null,this['editor']['model']['change'](()=>{const _0x4e0809=this['editor']['editing'];_0x34a36e&&(_0x34a36e['data']['isOnRoot']?_0x4e0809['view']['change'](_0x17c7d6=>{_0x17c7d6['removeClass']('ck-revision-history-root--active',_0x4e0809['view']['document']['getRoot'](_0x34a36e['rootName']));}):_0x4e0809['reconvertMarker']('revision:'+_0x34a36e['id'])),_0x2d7522&&(_0x2d7522['data']['isOnRoot']?_0x4e0809['view']['change'](_0x12430f=>{_0x12430f['addClass']('ck-revision-history-root--active',_0x4e0809['view']['document']['getRoot'](_0x2d7522['rootName']));}):_0x4e0809['reconvertMarker']('revision:'+_0x2d7522['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x10356f,_0xd742b3)=>{if(this['activeChange'])return;const _0x3a1487=this['_findChangeIdFromDomTarget'](_0xd742b3['target']),_0x575b3b=this['_changeIdToChange']['get'](_0x3a1487);_0x575b3b?(this['_activeViewTarget']={'x':_0xd742b3['domEvent']['x'],'y':_0xd742b3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x575b3b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x164153,_0x46eeac)=>{const _0x2d1729=this['_findChangeIdFromDomTarget'](_0x46eeac['target']),_0x4a65dd=this['_changeIdToChange']['get'](_0x2d1729);_0x4a65dd?(this['_activeViewTarget']={'x':_0x46eeac['domEvent']['x'],'y':_0x46eeac['domEvent']['y']},_0x4a65dd===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4a65dd):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x9e9f0e){do{const _0x1dfcb7=_0x9e9f0e['getAttribute']('data-change-id');if(_0x1dfcb7)return _0x1dfcb7;_0x9e9f0e=_0x9e9f0e['parent'];}while(_0x9e9f0e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x471baf=>{for(const _0x1b7f1c of this['editor']['model']['markers'])_0x471baf['removeMarker'](_0x1b7f1c);});}}function tt(_0x29cb60,_0x5a0f8b){return(_0x10a856,_0x3050d8,_0x519aec)=>{if(!_0x519aec['consumable']['test'](_0x3050d8['markerRange'],_0x10a856['name']))return;const _0x23e4a2=_0x3050d8['markerRange']['getWalker'](),_0x5621d7=_0x3050d8['markerRange']['start'],_0x25876c=_0x29cb60['model']['schema'];let _0x4d75a5=null,_0x374784=null,_0x34c3e7=!0x1,_0x36a48b=!0x1;for(const _0x12d0d4 of _0x23e4a2){const _0x54ed74=_0x12d0d4['item'];_0x34c3e7=_0x34c3e7||_0x25876c['isContent'](_0x54ed74);const _0x5e3db1=_0x519aec['mapper']['toViewElement'](_0x54ed74);if(_0x5e3db1&&_0x5e3db1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x12d0d4['type']&&(_0x25876c['isBlock'](_0x54ed74)&&!_0x25876c['isLimit'](_0x54ed74)&&(_0x54ed74['nextSibling']||_0x5621d7['isAtEnd']?_0x4d75a5&&_0x4d75a5['parent']==_0x54ed74||(_0x4d75a5=_0x54ed74,_0x5c72f7(_0x12d0d4['previousPosition']),_0x36a48b=!0x0):_0x374784=_0x374784||_0x12d0d4['previousPosition']));}function _0x5c72f7(_0xda77c6){const _0x3c93c3=_0x519aec['mapper']['toViewPosition'](_0xda77c6),_0xf5189e=_0x519aec['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5a0f8b});_0x519aec['writer']['insert'](_0x3c93c3,_0xf5189e),_0x519aec['mapper']['bindElementToMarker'](_0xf5189e,_0x3050d8['markerName']);}_0x34c3e7||_0x36a48b||!_0x374784||_0x5c72f7(_0x374784);};}class _t extends _0x5da42d{constructor(_0xe79c41){super(_0xe79c41);const _0x7ca246=_0xe79c41['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x7ca246,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x7ca246,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4595cd=this['editor'],_0x4a84fc=_0x4595cd['plugins']['get'](d),_0x3d4d7a=_0x4a84fc['isReady']?_0x4a84fc['diff']['newRevisionId']:null;_0x4595cd['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3d4d7a);}['refresh'](){const {isReady:_0x2c400a,isEnabled:_0x43f2f9,repository:_0x5e96da,diff:_0x4ffa43}=this['editor']['plugins']['get'](d),_0x1794d5=_0x4ffa43&&_0x5e96da['getLaterVisibleRevision'](_0x4ffa43['newRevisionId']);this['isEnabled']=_0x2c400a&&_0x43f2f9&&Boolean(_0x1794d5);}}class yt extends _0x5da42d{['_step'];constructor(_0x44448d,{direction:_0x4d8452}){super(_0x44448d);const _0x367392=_0x44448d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4d8452?0x1:-0x1,this['listenTo'](_0x367392,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x367392,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x367392,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3ed066=this['editor'],_0x562240=_0x3ed066['plugins']['get'](d),{isNavigationMode:_0x2563d4,currentChangeNumber:_0x2ca5cf}=_0x562240;let _0x265569;if(_0x562240['activeChange']=_0x2563d4?_0x562240['diff']['changes']['get'](_0x2ca5cf+this['_step']):_0x562240['diff']['changes']['first'],_0x562240['activeChange']['data']['isOnRoot'])_0x265569=_0x3ed066['editing']['view']['getDomRoot'](_0x562240['activeChange']['rootName']);else{const _0x494c1e=_0x3ed066['model']['markers']['get']('revision:'+_0x562240['activeChange']['id']);_0x265569=_0x408031(_0x3ed066['editing'],_0x494c1e);}_0x24b293({'target':_0x265569,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x528480,currentChangeNumber:_0x410ae9,numberOfChanges:_0xdb3125,isReady:_0x2d36ef,isEnabled:_0x3f55e7}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3f55e7&&_0x2d36ef&&_0xdb3125)&&(!_0x528480||(0x1===this['_step']?_0x410ae9<_0xdb3125-0x1:_0x410ae9>0x0));}}class ei extends ts{constructor(_0x268195){super(_0x268195);const _0x11d74c=this['bindTemplate'],_0x104160=new te(_0x268195),_0x55a904=new te(_0x268195);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',(_0x2721f2,_0x58a0ca)=>_0x2721f2&&_0x58a0ca>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1263ee,_0x45b3e7,_0x1f3b1c,_0x3b0478)=>{if(!_0x1263ee)return R(_0x268195,'Loading...');if(!_0x1f3b1c)return R(_0x268195,'No\x20changes');const _0x28180c=R(_0x268195,'NUMBER_OF_CHANGES',_0x1f3b1c);return _0x3b0478?R(_0x268195,'X_OF_Y_CHANGES',[_0x45b3e7+0x1,_0x1f3b1c]):_0x28180c;}),_0x104160['set']({'label':R(_0x268195,'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'}),_0x55a904['set']({'label':R(_0x268195,'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'}),_0x104160['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x55a904['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x104160['on']('execute',()=>this['fire']('execute','backward')),_0x55a904['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',_0x11d74c['if']('_isStatusLabelVisible','ck-hidden',_0xb7c06=>!_0xb7c06)]},'children':[{'text':_0x11d74c['to']('isNavigationMode',_0x4f972a=>_0x4f972a?R(_0x268195,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x268195,'Total')+':\x20')}]},{'text':_0x11d74c['to']('_statusText')}]},new _0x17a559(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x104160,_0x55a904]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x5951b8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x492478=this['editor']['editing']['view'];_0x492478['change'](_0xb7b575=>{for(const _0x26f952 of _0x492478['document']['roots'])_0xb7b575['addClass'](le,_0x26f952);});}['hide'](){const _0x18d2f1=this['editor']['editing']['view'];_0x18d2f1['change'](_0x4fcd20=>{for(const _0x50713b of _0x18d2f1['document']['roots'])_0x4fcd20['removeClass'](le,_0x50713b);});}}class m extends _0x5951b8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x54d5c4=this['editor'],_0x14f586=_0x54d5c4['plugins']['get'](d),_0x2ab765=_0x54d5c4['plugins']['get'](de);_0x54d5c4['ui']['componentFactory']['add']('exitToEditing',_0x204777=>{const _0x426ea4=new te(_0x204777);return _0x426ea4['set']({'label':R(_0x204777,'Back\x20to\x20editing'),'icon':_0x10c6a8['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x426ea4,'execute',()=>{_0x54d5c4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x426ea4;}),_0x54d5c4['ui']['componentFactory']['add']('restoreRevision',_0x3429e2=>{const _0x218b93=new te(_0x3429e2);return _0x218b93['set']({'label':R(_0x3429e2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x218b93['bind']('isEnabled')['to'](_0x54d5c4['commands']['get']('restoreRevision')),this['listenTo'](_0x218b93,'execute',()=>_0x54d5c4['execute']('restoreRevision')),_0x218b93;}),_0x54d5c4['ui']['componentFactory']['add']('changesNavigation',_0x34aed8=>{const _0x36e922=new ei(_0x34aed8),_0x2ff23b=_0x54d5c4['commands']['get']('showPreviousChange'),_0x4a347d=_0x54d5c4['commands']['get']('showNextChange');return _0x36e922['bind']('isBackwardNavigationEnabled')['to'](_0x2ff23b,'isEnabled'),_0x36e922['bind']('isForwardNavigationEnabled')['to'](_0x4a347d,'isEnabled'),_0x36e922['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x14f586),this['listenTo'](_0x36e922,'execute',(_0x195fe5,_0xfec516)=>{_0x54d5c4['execute']('forward'===_0xfec516?'showNextChange':'showPreviousChange');}),_0x36e922;}),_0x2ab765['show'](),_0x14f586['on']('change:isReady',(_0x2ed856,_0x3bf0cd,_0x4fe4d3)=>{_0x4fe4d3?_0x2ab765['hide']():_0x2ab765['show']();});}}class pt extends _0x354fa9{['_resizeObserver']=null;constructor(_0x210fac,_0x40aa3c){super(_0x210fac,_0x40aa3c);const _0x2bea37=this['bindTemplate'];this['set']({'label':R(_0x210fac,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x210fac,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2bea37['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 _0x2d4e6c=this['fieldView']['element'];this['_tooltipString']=_0x2d4e6c['scrollWidth']>_0x2d4e6c['clientWidth']&&_0x2d4e6c['value']||'';}}class ai extends ts{constructor(_0x1c5098,_0x3e4919,_0x398135){super(_0x1c5098);const _0xaf83b6=new _0x48ee11();_0xaf83b6['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 _0x81e1fa=['ck','ck-revision-history-sidebar__revision-author'];_0x398135&&_0x81e1fa['push']('ck-revision-history-sidebar__revision-author_creator');const _0x373da5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1c5098,_0x398135?'Revision\x20creator':'Revision\x20author')},'children':[_0xaf83b6,_0x3e4919['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x81e1fa},'children':_0x373da5});}}function _i(_0x57e20c,_0xcb915c){const _0x32f846=_0x57e20c['bindTemplate'],_0x3b5cd7=_0x57e20c['locale'],_0xb092f9=_0x3b3239(_0x3b5cd7);_0xb092f9['panelPosition']='sw';const _0xb0dae2=function(_0x3b7348,_0x18947d){const _0x1b18b7=function(_0x1e07ce,_0x8fc6fb){const _0x5aea89=_0x1e07ce['locale'],_0x285dd1={'Compare\x20against\x20selected':R(_0x5aea89,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5aea89,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5aea89,'Restore\x20this\x20revision')};return _0x8fc6fb['map'](_0x38764f=>{const _0x50c39c=_0x285dd1[_0x38764f['name']];return _0x50c39c&&_0x50c39c!==_0x38764f['name']&&(_0x38764f['name']=_0x50c39c),_0x38764f;});}(_0x3b7348,_0x18947d),_0x50ad14=new _0x1ffe77();for(const _0x261788 of _0x1b18b7){const _0x5614f9={'type':'button','model':new _0x16cba2({'label':_0x261788['name'],'class':_0x261788['class'],'withText':!0x0,'role':'menuitem','_action':_0x261788['action']})};_0x5614f9['model']['bind']('isEnabled')['to'](_0x3b7348,'isActionsDropdownOpen',_0xac31b4=>'function'!=typeof _0x261788['isEnabled']||(!_0xac31b4||_0x261788['isEnabled'](_0x3b7348))),_0x50ad14['add'](_0x5614f9);}return _0x50ad14;}(_0x57e20c,_0xcb915c);return _0x57e20c['bind']('isActionsDropdownOpen')['to'](_0xb092f9,'isOpen'),_0xb092f9['buttonView']['set']({'label':R(_0x3b5cd7,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x10c6a8['threeVerticalDots']}),_0xb092f9['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x32f846['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x32f846['to'](_0x56724=>_0x56724['stopPropagation']())}}),_0xb092f9['on']('execute',_0x1e387a=>{_0x57e20c['isReady']&&'function'==typeof _0x1e387a['source']['_action']&&_0x1e387a['source']['_action'](_0x57e20c);}),to(_0xb092f9,_0xb0dae2,{'role':'menu'}),_0xb092f9['listenTo'](_0x57e20c,'change:isActionsDropdownOpen',(_0x49cf9a,_0x5b0f79,_0x18e4c7)=>{if(_0x18e4c7)for(const _0xc9c65e of _0xb092f9['listView']['items']){const _0x3817ab=_0xc9c65e['children']['first'],_0x4164d5=_0xcb915c['find'](_0x2b1857=>_0x2b1857['action']===_0x3817ab['_action'])['isVisible'];_0xc9c65e['isVisible']=void 0x0===_0x4164d5||_0x4164d5(_0x57e20c);}}),_0xb092f9;}class ri extends/* #__PURE__ -- @preserve */
26
+ _0x17991f(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5ecd3b,_0x4ec68c,_0x2145e6,_0x3429d1){super(_0x5ecd3b);const _0x2aa1c3=this['bindTemplate'],_0x4c4262=function(_0x3443c5,_0x2ba6a0){const _0x3da2c1=Array['from'](_0x2ba6a0['authors'])['filter'](_0x10bd72=>_0x10bd72!=_0x2ba6a0['creator']);return _0x2ba6a0['creator']&&_0x3da2c1['unshift'](_0x2ba6a0['creator']),_0x3da2c1['map'](_0x14433b=>new ai(_0x3443c5,_0x14433b,_0x14433b==_0x2ba6a0['creator']));}(_0x5ecd3b,_0x4ec68c);this['id']=_0x4ec68c['id'],this['_revision']=_0x4ec68c,this['_requireRevisionName']=_0x3429d1,this['bind']('name','createdAt')['to'](_0x4ec68c),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5f01d3=>{return _0x44545d=_0x5ecd3b['uiLanguage'],(_0x5a4370=_0x5f01d3)['toLocaleDateString'](_0x44545d,{'month':'long','day':'numeric'})+',\x20'+_0x5a4370['toLocaleTimeString'](_0x44545d,{'hour':'numeric','minute':'numeric'});var _0x44545d,_0x5a4370;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x5ecd3b,_0x1a2f3e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x504ba4=>_0x504ba4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x28ccbe,_0x3c1916)=>_0x28ccbe&&_0x3c1916),this['revisionActionsView']=_0x2145e6&&_0x2145e6['length']?_i(this,_0x2145e6):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2aa1c3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2aa1c3['if']('isEnabled','ck-disabled',_0x5a34e6=>!_0x5a34e6),_0x2aa1c3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2aa1c3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2aa1c3['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':_0x2aa1c3['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':_0x4c4262}]},this['revisionActionsView']],'on':{'click':_0x2aa1c3['to'](_0x35f691=>{_0x35f691['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4f3a89=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4f3a89,'change',()=>{this['_requireRevisionName']&&!_0x4f3a89['value']||this['fire']('setName',{'id':this['id'],'name':_0x4f3a89['value']}),_0x4f3a89['value']||(_0x4f3a89['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function oi(_0x121290,_0x492f94){const _0xcaf7eb=_0x4efa5['fromJSDate'](_0x121290)['setLocale'](_0x492f94),_0x4c647b=_0x4efa5['local'](),_0x5b9946=_0x4c647b['minus']({'days':0x1})['startOf']('day');let _0x1a22be,_0x16d8cc;return _0xcaf7eb['hasSame'](_0x4c647b,'day')?(_0x1a22be=_0xcaf7eb['startOf']('day')['toJSDate'](),_0x16d8cc=_0xcaf7eb['toRelativeCalendar']()):_0xcaf7eb['hasSame'](_0x5b9946,'day')?(_0x1a22be=_0x5b9946['toJSDate'](),_0x16d8cc=_0xcaf7eb['toRelativeCalendar']()):_0xcaf7eb['hasSame'](_0x4c647b,'week')?(_0x1a22be=_0xcaf7eb['startOf']('week')['toJSDate'](),_0x16d8cc=_0xcaf7eb['weekdayLong']||''):_0xcaf7eb['hasSame'](_0x4c647b,'year')?(_0x1a22be=_0xcaf7eb['startOf']('month')['toJSDate'](),_0x16d8cc=_0xcaf7eb['monthLong']||''):(_0x1a22be=_0xcaf7eb['startOf']('year')['toJSDate'](),_0x16d8cc=String(_0xcaf7eb['year'])),{'startDate':_0x1a22be,'localizedPeriodName':_0x16d8cc};}class hi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x349c06,_0x5e7523,_0x43d14d,_0x1ded09){super(_0x349c06);const _0x526aa7=oi(_0x5e7523,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5e7523,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x43d14d,this['_requireRevisionName']=_0x1ded09,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':_0x526aa7}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x41b7eb){const _0x540cdc=new ri(this['locale'],_0x41b7eb,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x540cdc);}['removeRevision'](_0x438fad){const _0x291f73=this['revisionViews']['find'](_0x43cc16=>_0x43cc16['id']===_0x438fad['id']);this['revisionViews']['remove'](_0x291f73);}}class cs extends ts{constructor(_0x9b4e34){super(_0x9b4e34);const _0x4df92a=new _0x48ee11();_0x4df92a['content']=_0x10c6a8['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4df92a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x9b4e34,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x405811,_0x1fa3b2,_0x451579,_0x26fe6b){super(_0x405811);const _0x3ea8ec=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1fa3b2,this['_revisionActions']=_0x451579,this['_requireRevisionName']=_0x26fe6b,this['on']('select',(_0x1d8786,_0x1a662d)=>{this['fire']('revisionSelected',_0x1a662d);}),this['on']('setName',(_0x1b0b35,_0x24d4c1)=>{this['fire']('revisionSetName',_0x24d4c1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x405811),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3ea8ec['if']('isEnabled','ck-disabled',_0x70e1d2=>!_0x70e1d2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xbd02f6 of this['_revisions'])this['_addRevision'](_0xbd02f6);this['_revisions']['on']('add',(_0x28d995,_0x58afbe)=>{this['_addRevision'](_0x58afbe);}),this['_revisions']['on']('remove',(_0x250af9,_0x529cd7)=>{this['_removeRevision'](_0x529cd7);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xdbcf2d=>_0xdbcf2d['revisionViews']['map'](_0x128d42=>_0x128d42))['flat']();}['selectRevision'](_0xcb1bec){for(const _0x15db1b of this['revisionViews'])_0xcb1bec&&_0xcb1bec['id']===_0x15db1b['id']?_0x15db1b['select']():_0x15db1b['deselect']();}['highlightRevisions'](_0x5cd02f){for(const _0x3e7786 of this['revisionViews'])_0x5cd02f['some'](({id:_0x34b431})=>_0x34b431===_0x3e7786['id'])?_0x3e7786['highlight']():_0x3e7786['unhighlight']();}['_addRevision'](_0x4e7d69){const _0x3e0c6f=oi(_0x4e7d69['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1d64ed=this['timePeriodViews']['get'](0x0);_0x1d64ed&&_0x1d64ed['startDate']['getTime']()===_0x3e0c6f['getTime']()||(_0x1d64ed=new hi(this['locale'],_0x3e0c6f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1d64ed)),_0x1d64ed['addRevision'](_0x4e7d69);}['_removeRevision'](_0x1882b4){const _0x3dbadb=oi(_0x1882b4['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3dbadb)['removeRevision'](_0x1882b4);}['_getTimePeriodViewByStartDate'](_0x54bfe0){return this['timePeriodViews']['find'](_0x466399=>_0x466399['startDate']['getTime']()===_0x54bfe0['getTime']());}}class g extends _0x5951b8{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x50174d){super(_0x50174d),this['_revisionViewer']=_0x50174d['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x313741=this['_revisionsRepository']['_revisions'],_0xe67a71=this['_createRevisionActions'](),_0x39a88f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x313741,_0xe67a71,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',(_0x39c4eb,_0x22c7a0)=>{_0x22c7a0['revisionViews']['on']('add',(_0x2ec537,_0xf4b760)=>{_0xf4b760['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)),_0x39a88f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x18b457=this['_revisionsRepository']['getRevision'](0x0);if(_0x18b457){const _0x1e5d34=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x18b457['id']);this['_revisionViewer']['compare'](_0x18b457,_0x1e5d34);}}['_handleRevisionSelected'](_0x59a806,_0xc055e5){const _0x7859d7=this['_revisionsRepository']['getRevision'](_0xc055e5['id']),_0x41deba=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x7859d7['id']);this['_revisionViewer']['compare'](_0x7859d7,_0x41deba);}['_handleRevisionSetName'](_0x3f0218,_0x150eb1){this['_revisionsRepository']['getRevision'](_0x150eb1['id'])['setName'](_0x150eb1['name']);}['_handleDiffChange'](_0x3109a0,_0x564230,_0x389775){const _0x3f1641=this['_revisionsRepository']['getRevisionsInDiff'](_0x389775);_0x3f1641['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3f1641),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3f1641[0x0]));}['_createRevisionActions'](){const _0x1a2b02=this['editor'],_0x3f7ce8=g['availableRevisionActions'],_0x592fdf=_0x1a2b02['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x592fdf['length'])return _0x592fdf['map'](_0x3e4c1e=>{const _0x40701c='string'==typeof _0x3e4c1e?Object['assign']({},_0x3f7ce8[_0x3e4c1e]):_0x3e4c1e;return _0x40701c['action']=_0x40701c['action']['bind'](this,_0x1a2b02),_0x40701c['isVisible']&&(_0x40701c['isVisible']=_0x40701c['isVisible']['bind'](this,_0x1a2b02)),_0x40701c;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x467dd4},_0x4c1104)=>{const _0x56ee93=_0x467dd4['get'](d),_0x2de09f=_0x56ee93['repository'];let _0x40af73=_0x56ee93['diff']['newRevisionId'],_0x5de070=_0x4c1104['id'];_0x2de09f['getIndex'](_0x40af73)>_0x2de09f['getIndex'](_0x5de070)&&([_0x40af73,_0x5de070]=[_0x5de070,_0x40af73]),_0x56ee93['compare'](_0x40af73,_0x5de070);},'isVisible':({plugins:_0xa56273},_0x55af79)=>{const _0x13e3ac=_0xa56273['get'](d);return!(_0x13e3ac['repository']['getRevisionsInDiff'](_0x13e3ac['diff'])['length']>0x2)&&!_0x55af79['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x330abc,{id:_0x5739a8})=>{_0x330abc['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5739a8);},'isVisible':({plugins:_0x38031a},_0x2172ae)=>!!_0x38031a['get'](d)['repository']['getLaterVisibleRevision'](_0x2172ae['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xf723c8},{id:_0x4471c9,revisionNameView:_0x38816d})=>{const _0x1c9df6=_0xf723c8['get'](d),_0x2c0ee3=_0x1c9df6['repository']['getEarlierVisibleRevision'](_0x4471c9);_0x1c9df6['compare'](_0x4471c9,_0x2c0ee3),_0x38816d['focus'](),_0x38816d['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x8bd121,_0x546237){super(_0x8bd121),this['_view']=_0x546237,this['_toolbarConfig']=ht(_0x8bd121['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x20ebcd){const _0x51a9c6=this['editor'],_0x329c84=this['view'],_0x4fb776=_0x51a9c6['editing']['view'],_0x5b725e=_0x329c84['editable'],_0x4a0864=_0x4fb776['document']['getRoot']();_0x5b725e['name']=_0x4a0864['rootName'],_0x329c84['render']();const _0x4f30ae=_0x5b725e['element'];this['setEditableElement'](_0x5b725e['name'],_0x4f30ae),_0x329c84['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4fb776['attachDomRoot'](_0x4f30ae),this['_elementReplacer']['replace'](_0x20ebcd,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3be447=this['view'],_0x18be91=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x18be91['detachDomRoot'](_0x3be447['editable']['name']),_0x3be447['destroy']();}['_initToolbar'](){const _0x1efac7=this['view'];_0x1efac7['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1efac7['stickyPanel']['limiterElement']=_0x1efac7['element'],_0x1efac7['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xd2145a})=>_0xd2145a),_0x1efac7['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1efac7['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2f369c,_0x449313,_0x192a59={}){super(_0x2f369c),this['stickyPanel']=new lt(_0x2f369c),this['toolbar']=new nt(_0x2f369c,{'shouldGroupWhenFull':_0x192a59['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x2f369c,_0x449313);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x50573f,_0x1f15ed){super(_0x1f15ed),this['sourceElement']=_0x50573f,this['model']['document']['createRoot']();const _0x53ba56=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x53ba56);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5b7757,_0x5f3f90){const _0x270975=new this(_0x5b7757,_0x5f3f90);return await _0x270975['initPlugins'](),await _0x270975['ui']['init'](_0x5b7757),await _0x270975['data']['init'](_0x270975['config']['get']('initialData')||''),_0x270975['fire']('ready'),_0x270975;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0xfededa{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41dd44){function _0x3fd4ef(_0x50c8e0){return _0x50c8e0['map'](_0x1b7181=>String['fromCharCode'](_0x1b7181))['join']('');}super(_0x41dd44),this['result']='end',_0x41dd44[_0x3fd4ef([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fd4ef([0x76,0x69,0x65,0x77])][_0x3fd4ef([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fd4ef([0x61,0x75,0x74,0x6f]),_0x41dd44[_0x3fd4ef([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3fd4ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fd4ef([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3fd4ef([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3fd4ef([0x6f,0x6b])});}}class H extends _0xfededa{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x523731){if(super(_0x523731),!this['editor']['config']['get']('revisionHistory'))throw new _0x43ae4b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3cde34=>this['_showRevisionViewer']({..._0x3cde34,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x43094d=>this['_closeRevisionViewer'](_0x43094d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x21e837=>this['_restoreRevision'](_0x21e837)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x135e77){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x135e77;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3f487a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3f487a);}['getRevision'](_0x15d067){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x15d067);}['getRevisions'](_0x599343){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x599343||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1ee346=this['editor'],_0x1c99af=_0x51021d(_0x1ee346,p),_0x577868=_0x1ee346['plugins']['get']('RevisionTracker'),_0x1165d1=_0x1ee346['plugins']['get']('Users')['users'];return _0x1c99af['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1c99af['lazyRoots'],(_0x1c99af['plugins']['push'](k,d,m,class extends _0xfededa{static get['requires'](){return[d,'Users'];}['init'](){const _0x106a21=this['editor']['plugins']['get']('Users');for(const _0x4bfd1f of _0x1165d1)_0x4bfd1f['isAnonymous']||_0x106a21['getUser'](_0x4bfd1f['id'])||_0x106a21['addUser'](_0x4bfd1f);const _0x13f76f=_0x577868['repository']['getRevisions']();let _0x1255cc=null;const _0x145177=this['editor']['plugins']['get']('RevisionViewer');_0x145177['adapter']=_0x577868['adapter'],_0x145177['bind']('isEnabled')['to'](_0x577868),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1ee346,'isReadOnly',_0x571f1d=>!_0x571f1d);for(const _0xa159cc of _0x13f76f){const _0x207ccb=null===_0xa159cc['creator'];if(_0x207ccb&&_0xa159cc['toVersion']===_0xa159cc['fromVersion'])continue;const _0xbd63a9=_0xa159cc['toJSON']();_0x145177['addRevisionData'](_0xbd63a9,(_0x572bbb,_0x415882,_0x4144bc)=>{if(_0x207ccb){if(_0x1255cc)_0x1255cc['_update'](_0x572bbb,_0x415882);else{if(!_0x415882){const _0x55b904=_0x4144bc['toJSON']();_0x55b904['id']=_0x5267dc(),_0x577868['saveRevision'](_0x55b904,_0x4144bc['toVersion'])['then'](_0x2ba7b9=>{_0x1255cc=_0x2ba7b9;});}}}else _0xa159cc['_update'](_0x572bbb,_0x415882);});}}},g),_0x1c99af);}['_enhanceShowRevisionViewerCallback'](){const _0x5add1b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x211217=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4ad603=this['editor']['plugins']['get']('Autosave');await _0x4ad603['save']();}else await _0x211217['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x282d1d=this['editor']['plugins']['get']('Dialog');_0x282d1d['isOpen']&&_0x282d1d['hide']();}const _0x2d2bc1=this['_getRevisionViewerEditorConfig']();return _0x5add1b(_0x2d2bc1)['then'](_0x2bab63=>{return(this['_viewerEditor']=_0x2bab63,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2bab63;})['catch'](_0x2c7684=>(console['error'](_0x2c7684),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2a92c8=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'](),_0x2a92c8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5bd6ed=this['editor']['plugins']['get']('Annotations');_0x5bd6ed['refreshVisibility'](),_0x5bd6ed['refreshPositioning']();}})));}['_showRevisionViewer'](_0x18d8db){const _0x4e0f28=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1bc9cb=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2f3f27=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2f3f27,_0x18d8db)['then'](_0x1a90a3=>(_0x1bc9cb['style']['display']='block',_0x4e0f28['style']['display']='none',_0x1a90a3));}['_closeRevisionViewer'](_0x359147){const _0x5bef72=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5bef72['style']['display']='',_0x359147['destroy']();}async['_restoreRevision'](_0x51a59b){const _0x2a9e6f=this['editor'],_0x3a054c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x997551=_0x2a9e6f['plugins']['get']('RevisionTracker'),_0x4402c3=_0x3a054c['repository']['getRevision'](_0x51a59b);let _0x7ef744,_0x753699,_0x1ffac2;try{_0x7ef744=await _0x3a054c['getRevisionData'](_0x4402c3),_0x753699=await _0x3a054c['getRevisionRootsAttributes'](_0x4402c3);}catch(_0xdf8f7c){return void console['error'](_0xdf8f7c);}_0x2a9e6f['model']['change'](_0x5090a8=>{for(const _0xbfd273 of Array['from'](_0x2a9e6f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5090a8['removeMarker'](_0xbfd273);}),_0x3a054c['isReady']=!0x1,_0x2a9e6f['model']['enqueueChange'](_0x54b1c5=>{_0x54b1c5['setSelection'](null),_0x54b1c5['removeSelectionAttribute'](_0x2a9e6f['model']['document']['selection']['getAttributeKeys']());const _0xde31a5=Object['keys'](_0x7ef744);for(const _0x4ad767 of _0x2a9e6f['model']['document']['roots'])'$graveyard'!=_0x4ad767['rootName']&&_0x4ad767['isAttached']()&&!_0xde31a5['includes'](_0x4ad767['rootName'])&&_0x54b1c5['detachRoot'](_0x4ad767);for(const _0x3cacf3 of _0xde31a5){let _0x577c5c=_0x2a9e6f['model']['document']['getRoot'](_0x3cacf3);_0x577c5c&&_0x577c5c['isAttached']()||(_0x577c5c=_0x54b1c5['addRoot'](_0x3cacf3));const _0x471fba=_0x753699[_0x3cacf3],_0x119ca4=Object['keys'](_0x471fba),_0x42829c=_0x7ef744[_0x3cacf3];for(const _0x4e2ddf of _0x577c5c['getAttributeKeys']())_0x119ca4['includes'](_0x4e2ddf)||_0x54b1c5['removeAttribute'](_0x4e2ddf,_0x577c5c);for(const _0x5272f4 of _0x119ca4)_0x54b1c5['setAttribute'](_0x5272f4,_0x753699[_0x3cacf3][_0x5272f4],_0x577c5c);_0x54b1c5['remove'](_0x54b1c5['createRangeIn'](_0x577c5c)),_0x54b1c5['insert'](_0x2a9e6f['data']['parse'](_0x42829c,_0x577c5c),_0x577c5c,0x0);}});const _0x56f06a=R(_0x2a9e6f['locale'],'Restored');if(_0x4402c3['name'])_0x1ffac2=-0x1==_0x4402c3['name']['indexOf'](_0x56f06a)?_0x56f06a+':\x20'+_0x4402c3['name']:_0x4402c3['name'];else _0x1ffac2=_0x56f06a+':\x20'+(_0x4402c3['createdAt']['toLocaleDateString'](_0x2a9e6f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4402c3['createdAt']['toLocaleTimeString'](_0x2a9e6f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x997551['saveRevision']({'name':_0x1ffac2}),_0x3a054c['isReady']=!0x0,_0x2a9e6f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g 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(_0x37fa96){super(_0x37fa96),this['_revisionViewer']=_0x37fa96['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x251e18=this['_revisionsRepository']['_revisions'],_0xb39689=this['_createRevisionActions'](),_0x2657d4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x251e18,_0xb39689,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',(_0x48d948,_0x42f654)=>{_0x42f654['revisionViews']['on']('add',(_0x25ab96,_0x416cfe)=>{_0x416cfe['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)),_0x2657d4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x106648=this['_revisionsRepository']['getRevision'](0x0);if(_0x106648){const _0x3082f6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x106648['id']);this['_revisionViewer']['compare'](_0x106648,_0x3082f6);}}['_handleRevisionSelected'](_0x30b6d7,_0x45998e){const _0x548ff7=this['_revisionsRepository']['getRevision'](_0x45998e['id']),_0x38120c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x548ff7['id']);this['_revisionViewer']['compare'](_0x548ff7,_0x38120c);}['_handleRevisionSetName'](_0x22c58f,_0x26ef4f){this['_revisionsRepository']['getRevision'](_0x26ef4f['id'])['setName'](_0x26ef4f['name']);}['_handleDiffChange'](_0x3f7410,_0x1bb0a4,_0x4ab5dd){const _0x2781fc=this['_revisionsRepository']['getRevisionsInDiff'](_0x4ab5dd);_0x2781fc['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2781fc),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2781fc[0x0]));}['_createRevisionActions'](){const _0x469337=this['editor'],_0x1c4259=g['availableRevisionActions'],_0x308d0c=_0x469337['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x308d0c['length'])return _0x308d0c['map'](_0x259cc3=>{const _0x178f54='string'==typeof _0x259cc3?Object['assign']({},_0x1c4259[_0x259cc3]):_0x259cc3;return _0x178f54['action']=_0x178f54['action']['bind'](this,_0x469337),_0x178f54['isVisible']&&(_0x178f54['isVisible']=_0x178f54['isVisible']['bind'](this,_0x469337)),_0x178f54;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x473644},_0x464f36)=>{const _0x58a58c=_0x473644['get'](d),_0x23d85b=_0x58a58c['repository'];let _0x449fa3=_0x58a58c['diff']['newRevisionId'],_0x785907=_0x464f36['id'];_0x23d85b['getIndex'](_0x449fa3)>_0x23d85b['getIndex'](_0x785907)&&([_0x449fa3,_0x785907]=[_0x785907,_0x449fa3]),_0x58a58c['compare'](_0x449fa3,_0x785907);},'isVisible':({plugins:_0x4454ab},_0x423a77)=>{const _0x4cbe10=_0x4454ab['get'](d);return!(_0x4cbe10['repository']['getRevisionsInDiff'](_0x4cbe10['diff'])['length']>0x2)&&!_0x423a77['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x413dba,{id:_0x2c65d2})=>{_0x413dba['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c65d2);},'isVisible':({plugins:_0x1873ad},_0x4e4ae9)=>!!_0x1873ad['get'](d)['repository']['getLaterVisibleRevision'](_0x4e4ae9['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x6b6814},{id:_0x13f926,revisionNameView:_0x1bcba0})=>{const _0x5047bc=_0x6b6814['get'](d),_0x33aa19=_0x5047bc['repository']['getEarlierVisibleRevision'](_0x13f926);_0x5047bc['compare'](_0x13f926,_0x33aa19),_0x1bcba0['focus'](),_0x1bcba0['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2306bb,_0x3ebaba){super(_0x2306bb),this['_view']=_0x3ebaba,this['_toolbarConfig']=ht(_0x2306bb['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x51f45b){const _0x40c7d6=this['editor'],_0x5cbfdb=this['view'],_0x53ed45=_0x40c7d6['editing']['view'],_0x69c6cb=_0x5cbfdb['editable'],_0x4cf194=_0x53ed45['document']['getRoot']();_0x69c6cb['name']=_0x4cf194['rootName'],_0x5cbfdb['render']();const _0x5920ff=_0x69c6cb['element'];this['setEditableElement'](_0x69c6cb['name'],_0x5920ff),_0x5cbfdb['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x53ed45['attachDomRoot'](_0x5920ff),this['_elementReplacer']['replace'](_0x51f45b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2fd88d=this['view'],_0x7a7ae0=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x7a7ae0['detachDomRoot'](_0x2fd88d['editable']['name']),_0x2fd88d['destroy']();}['_initToolbar'](){const _0x3bdddd=this['view'];_0x3bdddd['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3bdddd['stickyPanel']['limiterElement']=_0x3bdddd['element'],_0x3bdddd['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x43c78c})=>_0x43c78c),_0x3bdddd['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3bdddd['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x350134,_0x29441e,_0x1ba71a={}){super(_0x350134),this['stickyPanel']=new lt(_0x350134),this['toolbar']=new nt(_0x350134,{'shouldGroupWhenFull':_0x1ba71a['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x350134,_0x29441e);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4342d7,_0x122f34){super(_0x122f34),this['sourceElement']=_0x4342d7,this['model']['document']['createRoot']();const _0x62c02f=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x62c02f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x130e60,_0x439ef2){const _0x43af54=new this(_0x130e60,_0x439ef2);return await _0x43af54['initPlugins'](),await _0x43af54['ui']['init'](_0x130e60),await _0x43af54['data']['init'](_0x43af54['config']['get']('initialData')||''),_0x43af54['fire']('ready'),_0x43af54;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5951b8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2631ca){function _0x1ab6d9(_0x101ec5){return _0x101ec5['map'](_0x9c3348=>String['fromCharCode'](_0x9c3348))['join']('');}super(_0x2631ca),this['result']='end',_0x2631ca[_0x1ab6d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ab6d9([0x76,0x69,0x65,0x77])][_0x1ab6d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ab6d9([0x61,0x75,0x74,0x6f]),_0x2631ca[_0x1ab6d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1ab6d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ab6d9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1ab6d9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1ab6d9([0x6f,0x6b])});}}class H extends _0x5951b8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4588f2){if(super(_0x4588f2),!this['editor']['config']['get']('revisionHistory'))throw new _0x3fa815('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x50819c=>this['_showRevisionViewer']({..._0x50819c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x305ceb=>this['_closeRevisionViewer'](_0x305ceb)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x889008=>this['_restoreRevision'](_0x889008)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1a8d84){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1a8d84;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5c6f1f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5c6f1f);}['getRevision'](_0x19a00c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x19a00c);}['getRevisions'](_0x4a8836){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4a8836||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4207eb=this['editor'],_0x2db3a7=_0x19230e(_0x4207eb,p),_0x4a44b4=_0x4207eb['plugins']['get']('RevisionTracker'),_0x2870e9=_0x4207eb['plugins']['get']('Users')['users'];return _0x2db3a7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2db3a7['lazyRoots'],(_0x2db3a7['plugins']['push'](k,d,m,class extends _0x5951b8{static get['requires'](){return[d,'Users'];}['init'](){const _0x4299a0=this['editor']['plugins']['get']('Users');for(const _0x33cd7c of _0x2870e9)_0x33cd7c['isAnonymous']||_0x4299a0['getUser'](_0x33cd7c['id'])||_0x4299a0['addUser'](_0x33cd7c);const _0x5c1586=_0x4a44b4['repository']['getRevisions']();let _0x3d5c83=null;const _0x2c668f=this['editor']['plugins']['get']('RevisionViewer');_0x2c668f['adapter']=_0x4a44b4['adapter'],_0x2c668f['bind']('isEnabled')['to'](_0x4a44b4),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4207eb,'isReadOnly',_0x11788d=>!_0x11788d);for(const _0x12b838 of _0x5c1586){const _0x55e3e3=null===_0x12b838['creator'];if(_0x55e3e3&&_0x12b838['toVersion']===_0x12b838['fromVersion'])continue;const _0x1f76f4=_0x12b838['toJSON']();_0x2c668f['addRevisionData'](_0x1f76f4,(_0x542cac,_0x38b86d,_0x3e38ad)=>{if(_0x55e3e3){if(_0x3d5c83)_0x3d5c83['_update'](_0x542cac,_0x38b86d);else{if(!_0x38b86d){const _0x463eca=_0x3e38ad['toJSON']();_0x463eca['id']=_0x5168c7(),_0x4a44b4['saveRevision'](_0x463eca,_0x3e38ad['toVersion'])['then'](_0x318234=>{_0x3d5c83=_0x318234;});}}}else _0x12b838['_update'](_0x542cac,_0x38b86d);});}}},g),_0x2db3a7);}['_enhanceShowRevisionViewerCallback'](){const _0x1e7511=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x452e15=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x803c92=this['editor']['plugins']['get']('Autosave');await _0x803c92['save']();}else await _0x452e15['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x219938=this['editor']['plugins']['get']('Dialog');_0x219938['isOpen']&&_0x219938['hide']();}const _0x3ef292=this['_getRevisionViewerEditorConfig']();return _0x1e7511(_0x3ef292)['then'](_0x50c912=>{return(this['_viewerEditor']=_0x50c912,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x50c912;})['catch'](_0x4152fa=>(console['error'](_0x4152fa),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5663b6=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'](),_0x5663b6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3d4bc6=this['editor']['plugins']['get']('Annotations');_0x3d4bc6['refreshVisibility'](),_0x3d4bc6['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2a3590){const _0x1679ec=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x159138=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x9b06e3=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x9b06e3,_0x2a3590)['then'](_0x2cbc2c=>(_0x159138['style']['display']='block',_0x1679ec['style']['display']='none',_0x2cbc2c));}['_closeRevisionViewer'](_0xfacd4a){const _0x28cbfd=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x28cbfd['style']['display']='',_0xfacd4a['destroy']();}async['_restoreRevision'](_0x497d73){const _0x485bb9=this['editor'],_0x464378=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1c2520=_0x485bb9['plugins']['get']('RevisionTracker'),_0x39ee4e=_0x464378['repository']['getRevision'](_0x497d73);let _0x4c8ef0,_0x31ed6f,_0x366e9f;try{_0x4c8ef0=await _0x464378['getRevisionData'](_0x39ee4e),_0x31ed6f=await _0x464378['getRevisionRootsAttributes'](_0x39ee4e);}catch(_0x3c1cb8){return void console['error'](_0x3c1cb8);}_0x485bb9['model']['change'](_0x23ec92=>{for(const _0x3674fc of Array['from'](_0x485bb9['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x23ec92['removeMarker'](_0x3674fc);}),_0x464378['isReady']=!0x1,_0x485bb9['model']['enqueueChange'](_0x1b4bd4=>{_0x1b4bd4['setSelection'](null),_0x1b4bd4['removeSelectionAttribute'](_0x485bb9['model']['document']['selection']['getAttributeKeys']());const _0xd0d413=Object['keys'](_0x4c8ef0);for(const _0x12aecf of _0x485bb9['model']['document']['roots'])'$graveyard'!=_0x12aecf['rootName']&&_0x12aecf['isAttached']()&&!_0xd0d413['includes'](_0x12aecf['rootName'])&&_0x1b4bd4['detachRoot'](_0x12aecf);for(const _0x54922a of _0xd0d413){let _0x511d22=_0x485bb9['model']['document']['getRoot'](_0x54922a);_0x511d22&&_0x511d22['isAttached']()||(_0x511d22=_0x1b4bd4['addRoot'](_0x54922a));const _0x53b6cf=_0x31ed6f[_0x54922a],_0x5958a9=Object['keys'](_0x53b6cf),_0x1818d8=_0x4c8ef0[_0x54922a];for(const _0x4d75af of _0x511d22['getAttributeKeys']())_0x5958a9['includes'](_0x4d75af)||_0x1b4bd4['removeAttribute'](_0x4d75af,_0x511d22);for(const _0x593744 of _0x5958a9)_0x1b4bd4['setAttribute'](_0x593744,_0x31ed6f[_0x54922a][_0x593744],_0x511d22);_0x1b4bd4['remove'](_0x1b4bd4['createRangeIn'](_0x511d22)),_0x1b4bd4['insert'](_0x485bb9['data']['parse'](_0x1818d8,_0x511d22),_0x511d22,0x0);}});const _0x1b8d3b=R(_0x485bb9['locale'],'Restored');if(_0x39ee4e['name'])_0x366e9f=-0x1==_0x39ee4e['name']['indexOf'](_0x1b8d3b)?_0x1b8d3b+':\x20'+_0x39ee4e['name']:_0x39ee4e['name'];else _0x366e9f=_0x1b8d3b+':\x20'+(_0x39ee4e['createdAt']['toLocaleDateString'](_0x485bb9['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x39ee4e['createdAt']['toLocaleTimeString'](_0x485bb9['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1c2520['saveRevision']({'name':_0x366e9f}),_0x464378['isReady']=!0x0,_0x485bb9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};