@ckeditor/ckeditor5-revision-history 46.0.1-alpha.13 → 46.0.1-alpha.14

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,11 +20,11 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x2af6a4,uid as _0x370f6e,Collection as _0x14698c,logWarning as _0xf0aaf1,FocusTracker as _0x4e3524,KeystrokeHandler as _0x223386,scrollViewportToShowTarget as _0xbff3ab,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x1c8921}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x51beb1,set as _0x3808e1,unset as _0x10061a,isEqual as _0x4420e0}from'es-toolkit/compat';import{Plugin as _0x3cc8d8,PendingActions as _0x8fe366,Command as _0x475e67,ElementApiMixin as _0x32dc4c,Editor as _0x308c8e}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5b1ee3,getMarkerDomElement as _0x3a83c9,ConfirmMixin as _0xb87c50,sanitizeEditorConfig as _0x222f71}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0xb809c6,ViewAttributeElement as _0x3c26a6,ViewEmptyElement as _0x3b210b,ViewRawElement as _0x17caaf,ViewUIElement as _0x44aa0b,ViewDocumentFragment as _0x3a487f,ViewText as _0x684585,ViewElement as _0x3dcf2d,ModelElement as _0x19a103,ModelRange as _0x1c8fcc,ModelPosition as _0x46582e,ModelDocumentFragment as _0x22a6a4,ModelText as _0x3b8071}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x2ce5eb,IconChevronUp as _0x31a6a8,IconChevronDown as _0x59abf8,IconUndo as _0x42ff5e,IconUser as _0x422bb7,IconThreeVerticalDots as _0x59fb43}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x4c7e4b,View as _0x3aefbb,submitHandler as _0x5e3dab,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x27dd0c,ListView as _0x3715d0,ListItemView as _0x2a6b9e,ButtonView as _0x458543,MenuBarMenuView as _0x25e575,MenuBarMenuListView as _0x1d16d7,MenuBarMenuListItemView as _0x55dbea,MenuBarMenuListItemButtonView as _0x55e301,ContextualBalloon as _0x50a837,ToolbarSeparatorView as _0x5c9cfb,IconView as _0x28cd6b,addListToDropdown as _0x29e27e,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x6102c7,StickyPanelView as _0x355e71,ToolbarView as _0x4c257a,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x39bd96}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
- _0x2af6a4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1e9a6e){super(),this['id']=_0x1e9a6e['id']||_0x370f6e(),this['creator']=_0x1e9a6e['creator']||null,this['authors']=_0x1e9a6e['authors']||[],this['diffData']=_0x1e9a6e['diffData']||null,this['toVersion']=_0x1e9a6e['toVersion']||0x0,this['fromVersion']=_0x1e9a6e['fromVersion']||0x0,this['set']('name',_0x1e9a6e['name']||''),this['set']('createdAt',_0x1e9a6e['createdAt']||new Date()),this['set']('attributes',_0x1e9a6e['attributes']||{});}['setName'](_0x127c5f){this['_update']({'name':_0x127c5f});}['setAttribute'](_0x42ae33,_0x27bf43){const _0x32999d=_0x51beb1(this['attributes']);_0x3808e1(_0x32999d,_0x42ae33,_0x27bf43),this['_update']({'attributes':_0x32999d});}['removeAttribute'](_0x6c4516){const _0x48984b=_0x51beb1(this['attributes']);_0x10061a(_0x48984b,_0x6c4516),this['_update']({'attributes':_0x48984b});}['_update'](_0x46f70c,_0x24a117=!0x1){let _0x5a2013=!0x1;const _0x5f4072={'id':this['id']},_0x499ec7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x42e353 of _0x499ec7){const _0x37f370=_0x46f70c[_0x42e353];void 0x0!==_0x37f370&&_0x37f370!==this[_0x42e353]&&(this[_0x42e353]=_0x37f370,_0x5f4072[_0x42e353]=_0x37f370,_0x5a2013=!0x0);}_0x5a2013&&(_0x5f4072['authors']&&(_0x5f4072['authorsIds']=_0x5f4072['authors']['map'](_0x7f7c2e=>_0x7f7c2e['id']),delete _0x5f4072['authors']),this['fire']('_update',_0x5f4072,_0x24a117));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4765fe=>_0x4765fe['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x3cc8d8{['_revisions'];static get['requires'](){return[_0x5b1ee3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x21c297){super(_0x21c297),this['_revisions']=new _0x14698c();}['afterInit'](){!async function(_0x268c9e){const _0x22a7b7=_0x5bf512([0x74,0x56,0x6b,0x38,0x49,0x6f,0x68,0x70,0x75,0x61,0x35,0x33,0x64,0x43,0x63,0x58,0x47,0x41,0x37,0x4c,0x4d,0x62,0x71,0x6a,0x7a,0x78,0x46,0x6e,0x51,0x30,0x31,0x4f,0x5a,0x32,0x67,0x69,0x50,0x39,0x4b,0x6c,0x66,0x53,0x72,0x59,0x79,0x65,0x52,0x73,0x54,0x4a,0x55,0x34,0x4e,0x77,0x45,0x36,0x42,0x57,0x48,0x6d,0x76,0x44]),_0x303ffc=0xeb829,_0x7e325d=0x111c666d,_0xf2d32e=0x111b167d^_0x7e325d,_0x459ebd=window[_0x5bf512([0x44,0x61,0x74,0x65])][_0x5bf512([0x6e,0x6f,0x77])](),_0x2e579c=_0x268c9e[_0x5bf512([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1612e5=new window[(_0x5bf512([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32f832=>{_0x2e579c[_0x5bf512([0x6f,0x6e,0x63,0x65])](_0x5bf512([0x72,0x65,0x61,0x64,0x79]),_0x32f832);}),_0x9e4cad={[_0x5bf512([0x6b,0x74,0x79])]:_0x5bf512([0x45,0x43]),[_0x5bf512([0x75,0x73,0x65])]:_0x5bf512([0x73,0x69,0x67]),[_0x5bf512([0x63,0x72,0x76])]:_0x5bf512([0x50,0x2d,0x32,0x35,0x36]),[_0x5bf512([0x78])]:_0x5bf512([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]),[_0x5bf512([0x79])]:_0x5bf512([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]),[_0x5bf512([0x61,0x6c,0x67])]:_0x5bf512([0x45,0x53,0x32,0x35,0x36])},_0x53a054=_0x2e579c[_0x5bf512([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5bf512([0x67,0x65,0x74])](_0x5bf512([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x375b99(){let _0x4fd080,_0x5c8c20=null,_0x57c995=null;try{if(_0x53a054==_0x5bf512([0x47,0x50,0x4c]))return _0x5bf512([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4fd080=_0x9fd5aa(),!_0x4fd080)return _0x5bf512([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4fd080[_0x5bf512([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57c995=_0x34164b(_0x4fd080[_0x5bf512([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4fd080[_0x5bf512([0x6a,0x74,0x69])])),await _0x134d30()?_0x23ebf8()?_0x1fad80()?_0x5bf512([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9867f3()?(_0x4fd080[_0x5bf512([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bf512([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c8c20=_0x4c534e(_0x5bf512([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4fd080[_0x5bf512([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bf512([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c8c20=_0x4c534e(_0x5bf512([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x284b05()):_0x5bf512([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5bf512([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5bf512([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5bf512([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fad80(){const _0x3d0779=[_0x5bf512([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5bf512([0x74,0x72,0x69,0x61,0x6c])][_0x5bf512([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd080[_0x5bf512([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x459ebd/0x3e8:0xe10*_0xf2d32e;return _0x4fd080[_0x5bf512([0x65,0x78,0x70])]<_0x3d0779;}function _0x23ebf8(){const _0x5cfd73=_0x4fd080[_0x5bf512([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5cfd73)return!0x1;if(_0x5cfd73[_0x5bf512([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf512([0x2a])))return!0x0;if(_0x5cfd73[_0x5bf512([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf512([0x52,0x48])))return!0x0;if(_0x5cfd73[_0x5bf512([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf512([0x52,0x52,0x48]))){if(_0x2f5a78())return!0x0;if(_0x56eaa5()||_0x3b7a32())return!0x0;}return!0x1;}function _0x9867f3(){const _0x1635ff=_0x4fd080[_0x5bf512([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1635ff||0x0==_0x1635ff[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x90054f}=new URL(window[_0x5bf512([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1635ff[_0x5bf512([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x90054f))return!0x0;const _0x570eac=_0x90054f[_0x5bf512([0x73,0x70,0x6c,0x69,0x74])](_0x5bf512([0x2e]));return _0x1635ff[_0x5bf512([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e5799=>_0x5e5799[_0x5bf512([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf512([0x2a])))[_0x5bf512([0x6d,0x61,0x70])](_0x3ba9af=>_0x3ba9af[_0x5bf512([0x73,0x70,0x6c,0x69,0x74])](_0x5bf512([0x2e])))[_0x5bf512([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x516b85=>_0x516b85[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x570eac[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bf512([0x6d,0x61,0x70])](_0x53cc56=>Array(_0x570eac[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53cc56[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bf512([0x66,0x69,0x6c,0x6c])](_0x53cc56[0x0]===_0x5bf512([0x2a])?_0x5bf512([0x2a]):'')[_0x5bf512([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53cc56))[_0x5bf512([0x73,0x6f,0x6d,0x65])](_0x295856=>_0x570eac[_0x5bf512([0x65,0x76,0x65,0x72,0x79])]((_0x3038e2,_0x28c922)=>_0x295856[_0x28c922]===_0x3038e2||_0x295856[_0x28c922]===_0x5bf512([0x2a])));}function _0x284b05(){return _0x5c8c20&&_0x57c995?new window[(_0x5bf512([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5baab9,_0x465b59)=>{_0x5c8c20[_0x5bf512([0x74,0x68,0x65,0x6e])](_0x5baab9,_0x465b59),_0x57c995[_0x5bf512([0x74,0x68,0x65,0x6e])](_0x57a12c=>{_0x57a12c!=_0x5bf512([0x56,0x61,0x6c,0x69,0x64])&&_0x5baab9(_0x57a12c);},_0x465b59);}):_0x5c8c20||_0x57c995||_0x5bf512([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34164b(_0x27f5b9,_0x13cd99){return new window[(_0x5bf512([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x259c5c=>{if(_0x59c2a4())return _0x259c5c(_0x5bf512([0x56,0x61,0x6c,0x69,0x64]));_0x581766(),_0x2e579c[_0x5bf512([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5bf512([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xeb64ab=!0x1;const _0x27aaf5=_0x370f6e();function _0x5dfc19(_0x526ce8){return!!_0x526ce8&&(typeof _0x526ce8===_0x5bf512([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x526ce8===_0x5bf512([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x526ce8[_0x5bf512([0x74,0x68,0x65,0x6e])]===_0x5bf512([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x526ce8[_0x5bf512([0x63,0x61,0x74,0x63,0x68])]===_0x5bf512([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x101389(_0x1ba0d2){_0x57b5a8(_0x1ba0d2)[_0x5bf512([0x74,0x68,0x65,0x6e])](_0x5c0124=>{if(!_0x5c0124||_0x5c0124[_0x5bf512([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5bf512([0x6f,0x6b]))return _0x5bf512([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x397c06(_0x4938db(_0x27aaf5+_0x13cd99))!=_0x5c0124[_0x5bf512([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5bf512([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5bf512([0x56,0x61,0x6c,0x69,0x64]);})[_0x5bf512([0x74,0x68,0x65,0x6e])](_0x4468be=>(_0x4935bc(),_0x4468be),()=>{const _0x451c19=_0x2b4c83();return null==_0x451c19?(_0x4935bc(),_0x5bf512([0x56,0x61,0x6c,0x69,0x64])):_0x5bf512(_0x459ebd-_0x451c19>(0x3510e26d^_0x7e325d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5bf512([0x74,0x68,0x65,0x6e])](_0x259c5c)[_0x5bf512([0x63,0x61,0x74,0x63,0x68])](()=>{_0x259c5c(_0x5bf512([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd4ee29=0x112a88ed^_0x7e325d;function _0x4935bc(){const _0x4233e7=_0x5bf512([0x6c,0x6c,0x63,0x74,0x2d])+_0x397c06(_0x4938db(_0x27f5b9)),_0x49918f=_0x39fbc1(_0x397c06(window[_0x5bf512([0x4d,0x61,0x74,0x68])][_0x5bf512([0x63,0x65,0x69,0x6c])](_0x459ebd/_0xd4ee29)));window[_0x5bf512([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bf512([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4233e7,_0x49918f);}function _0x2b4c83(){const _0x345980=_0x5bf512([0x6c,0x6c,0x63,0x74,0x2d])+_0x397c06(_0x4938db(_0x27f5b9)),_0x2c173e=window[_0x5bf512([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bf512([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x345980);return _0x2c173e?window[_0x5bf512([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39fbc1(_0x2c173e),0x10)*_0xd4ee29:null;}function _0x57b5a8(_0x3f5e3f){return new window[(_0x5bf512([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20d0ca,_0x240ebd)=>{_0x3f5e3f[_0x5bf512([0x74,0x68,0x65,0x6e])](_0x20d0ca,_0x240ebd),window[_0x5bf512([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x240ebd,0x111db2ad^_0x7e325d);});}}_0x2e579c[_0x5bf512([0x6f,0x6e])](_0x5bf512([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a0bd5,_0x14bce4)=>{if(_0x14bce4[0x0]!=_0x27f5b9)return _0x259c5c(_0x5bf512([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14bce4[0x1]={..._0x14bce4[0x1],[_0x5bf512([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x27aaf5};},{[_0x5bf512([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bf512([0x68,0x69,0x67,0x68])}),_0x2e579c[_0x5bf512([0x6f,0x6e])](_0x5bf512([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa5f5cf=>{_0x5dfc19(_0xa5f5cf[_0x5bf512([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xeb64ab=!0x0,_0x101389(_0xa5f5cf[_0x5bf512([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5bf512([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bf512([0x6c,0x6f,0x77])}),_0x1612e5[_0x5bf512([0x74,0x68,0x65,0x6e])](()=>{_0xeb64ab||_0x259c5c(_0x5bf512([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59c2a4(){return _0x2e579c[_0x5bf512([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bf512([0x76,0x69,0x65,0x77])][_0x5bf512([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5bf512([0x61,0x75,0x74,0x6f]);}function _0x581766(){_0x2e579c[_0x5bf512([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bf512([0x76,0x69,0x65,0x77])][_0x5bf512([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5bf512([0x61,0x75,0x74,0x6f]);}}function _0x4c534e(_0x52ed09){const _0x39ffc1=[new window[(_0x5bf512([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127a4d=>setTimeout(_0x127a4d,0x111558a1^_0x7e325d)),_0x1612e5[_0x5bf512([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5bf512([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2614c6=>{const _0x5864db=0x111c666a^_0x7e325d,_0x2de811=_0x268c9e[_0x5bf512([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x154869(){_0x2de811[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5864db&&_0x2614c6();}_0x154869(),_0x2de811[_0x5bf512([0x6f,0x6e])](_0x5bf512([0x61,0x64,0x64]),_0x154869);})),new window[(_0x5bf512([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ceb9d=>{function _0x5110ed(){for(const _0x35b903 in window)if(window[_0x5bf512([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5bf512([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x35b903))&&window[_0x35b903]==_0x303ffc)return _0x2ceb9d();_0x2e579c[_0x5bf512([0x73,0x74,0x61,0x74,0x65])]!=_0x5bf512([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5bf512([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5110ed,0x111c75e5^_0x7e325d);}_0x537d34(_0x5bf512([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5110ed();})];return window[_0x5bf512([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5bf512([0x72,0x61,0x63,0x65])](_0x39ffc1)[_0x5bf512([0x74,0x68,0x65,0x6e])](()=>_0x52ed09);}async function _0x2c6603(){if(await _0x1612e5,_0x537d34(_0x5bf512([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2251eb=_0x268c9e[_0x5bf512([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3e3e6e=_0x268c9e[_0x5bf512([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])](_0x2251eb[_0x5bf512([0x69,0x64])]),_0x18d69c=_0x259293(_0x5bf512([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x18d69c[_0x5bf512([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2251eb['id'],_0x3e3e6e?_0x3e3e6e['id']:null,!0x0),_0x18d69c[_0x5bf512([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5bf512([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x18d69c[_0x5bf512([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x18d69c[_0x5bf512([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3b1d9c,void(_0x18d69c[_0x5bf512([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3b1d9c);}if(_0x537d34(_0x5bf512([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3ec82e=_0x259293(_0x5bf512([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3ec82e[_0x5bf512([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5bf512([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3ec82e[_0x5bf512([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3ec82e[_0x5bf512([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3b1d9c,_0x3ec82e[_0x5bf512([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3b1d9c;}_0x2e579c[_0x5bf512([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bf512([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b1d9c,_0x2e579c[_0x5bf512([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bf512([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b1d9c,_0x2e579c[_0x5bf512([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5bf512([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f5a78(){return _0x537d34(_0x5bf512([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x259293(_0x5bf512([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5bf512([0x73,0x74,0x61,0x74,0x65])]==_0x5bf512([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x56eaa5(){return _0x537d34(_0x5bf512([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 _0x3b7a32(){return _0x537d34(_0x5bf512([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x115d45(_0x4ca083){const _0x8b0fdd=_0xb9d629();_0x2e579c[_0x8b0fdd]=_0x5bf512([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])+_0x4ca083,_0x4ca083[_0x5bf512([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5bf512([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xb9d629()]=_0x303ffc),_0x4ca083!=_0x5bf512([0x56,0x61,0x6c,0x69,0x64])&&_0x2c6603();}function _0xb9d629(){const _0x593fec=window[_0x5bf512([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5bf512([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5bf512([0x6e,0x6f,0x77])]())[_0x5bf512([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5bf512([0x2e]),'');let _0x1d4d95=_0x5bf512([0x74]);for(let _0x1cc5cd=0x0;_0x1cc5cd<_0x593fec[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cc5cd+=0x2){let _0x26e175=window[_0x5bf512([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x593fec[_0x5bf512([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cc5cd,_0x1cc5cd+0x2));_0x26e175>=_0x22a7b7[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26e175-=_0x22a7b7[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d4d95+=_0x22a7b7[_0x26e175];}return _0x1d4d95;}function _0x9fd5aa(){const _0x5b358b=_0x53a054[_0x5bf512([0x73,0x70,0x6c,0x69,0x74])](_0x5bf512([0x2e]));if(0x3!=_0x5b358b[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x217de1(_0x5b358b[0x1]);function _0x217de1(_0x53c3ca){const _0x18066d=_0x20ff80(_0x53c3ca);return _0x18066d&&_0x53f392()?_0x18066d:null;function _0x53f392(){const _0x142c12=_0x18066d[_0x5bf512([0x6a,0x74,0x69])],_0x3f272d=window[_0x5bf512([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x142c12[_0x5bf512([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x142c12[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51562f={..._0x18066d,[_0x5bf512([0x6a,0x74,0x69])]:_0x142c12[_0x5bf512([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x142c12[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51562f[_0x5bf512([0x76,0x63])],_0x4938db(_0x51562f)==_0x3f272d;}}}async function _0x134d30(){let _0x31e9b3=!0x0;try{const _0xb10964=_0x53a054[_0x5bf512([0x73,0x70,0x6c,0x69,0x74])](_0x5bf512([0x2e])),[_0x4a9b3f,_0x5601c9,_0x17fed1]=_0xb10964;return _0x55ea71(_0x4a9b3f),await _0x7ed31(_0x4a9b3f,_0x5601c9,_0x17fed1),_0x31e9b3;}catch{return!0x1;}function _0x55ea71(_0x401b2e){const _0x31b4bf=_0x20ff80(_0x401b2e);_0x31b4bf&&_0x31b4bf[_0x5bf512([0x61,0x6c,0x67])]==_0x5bf512([0x45,0x53,0x32,0x35,0x36])||(_0x31e9b3=!0x1);}async function _0x7ed31(_0x32cf86,_0x2932a4,_0x19e7e1){const _0x5872bd=window[_0x5bf512([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5bf512([0x66,0x72,0x6f,0x6d])](_0x207d3d(_0x19e7e1),_0x56455d=>_0x56455d[_0x5bf512([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d4489=new window[(_0x5bf512([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5bf512([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32cf86+_0x5bf512([0x2e])+_0x2932a4),_0x354cbe=window[_0x5bf512([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5bf512([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x354cbe)return;const _0x52c07f=await _0x354cbe[_0x5bf512([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5bf512([0x6a,0x77,0x6b]),_0x9e4cad,{[_0x5bf512([0x6e,0x61,0x6d,0x65])]:_0x5bf512([0x45,0x43,0x44,0x53,0x41]),[_0x5bf512([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5bf512([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5bf512([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x354cbe[_0x5bf512([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5bf512([0x6e,0x61,0x6d,0x65])]:_0x5bf512([0x45,0x43,0x44,0x53,0x41]),[_0x5bf512([0x68,0x61,0x73,0x68])]:{[_0x5bf512([0x6e,0x61,0x6d,0x65])]:_0x5bf512([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52c07f,_0x5872bd,_0x5d4489)||(_0x31e9b3=!0x1);}}function _0x20ff80(_0x1c0e09){return _0x1c0e09[_0x5bf512([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5bf512([0x65,0x79]))?JSON[_0x5bf512([0x70,0x61,0x72,0x73,0x65])](_0x207d3d(_0x1c0e09)):null;}function _0x207d3d(_0x12ee10){return window[_0x5bf512([0x61,0x74,0x6f,0x62])](_0x12ee10[_0x5bf512([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5bf512([0x2b]))[_0x5bf512([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5bf512([0x2f])));}function _0x4938db(_0x45c3c4){let _0x25e4e2=0x1505;function _0x342b14(_0x552882){for(let _0x1b8194=0x0;_0x1b8194<_0x552882[_0x5bf512([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b8194++){const _0x30b978=_0x552882[_0x5bf512([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b8194);_0x25e4e2=(_0x25e4e2<<0x5)+_0x25e4e2+_0x30b978,_0x25e4e2&=_0x25e4e2;}}function _0x33f661(_0x5b74bd){Array[_0x5bf512([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b74bd)?_0x5b74bd[_0x5bf512([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33f661):_0x5b74bd&&typeof _0x5b74bd==_0x5bf512([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5bf512([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b74bd)[_0x5bf512([0x73,0x6f,0x72,0x74])]()[_0x5bf512([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x517029,_0x403e84])=>{_0x342b14(_0x517029),_0x33f661(_0x403e84);}):_0x342b14(window[_0x5bf512([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b74bd));}return _0x33f661(_0x45c3c4),_0x25e4e2>>>0x0;}function _0x397c06(_0x172d00){return _0x172d00[_0x5bf512([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5bf512([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5bf512([0x30]));}function _0x39fbc1(_0x197dc3){return _0x197dc3[_0x5bf512([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5bf512([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5bf512([0x6a,0x6f,0x69,0x6e])]('');}function _0x537d34(_0x5d86ce){return _0x2e579c[_0x5bf512([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5bf512([0x68,0x61,0x73])](_0x5d86ce);}function _0x259293(_0x405a6f){return _0x2e579c[_0x5bf512([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5bf512([0x67,0x65,0x74])](_0x405a6f);}function _0x3b1d9c(){}function _0x5bf512(_0x405ec7){return _0x405ec7['map'](_0x114f1d=>String['fromCharCode'](_0x114f1d))['join']('');}_0x115d45(await _0x375b99());}(this);}['createRevision'](_0x4aebf7){const _0x170c34=this['editor']['plugins']['get']('Users');return new I({'id':_0x4aebf7['id'],'name':_0x4aebf7['name'],'creator':_0x4aebf7['creatorId']?_0x170c34['getUser'](_0x4aebf7['creatorId']):null,'diffData':_0x4aebf7['diffData']||_0x4aebf7['data'],'authors':_0x4aebf7['authorsIds']['map'](_0x106910=>_0x170c34['getUser'](_0x106910)),'createdAt':new Date(_0x4aebf7['createdAt']),'attributes':_0x4aebf7['attributes'],'fromVersion':_0x4aebf7['fromVersion'],'toVersion':_0x4aebf7['toVersion']});}['addRevision'](_0x17a023,_0x483977=0x0){this['_revisions']['add'](_0x17a023,_0x483977);}['getRevision'](_0x4008ef){return this['_revisions']['get'](_0x4008ef);}['getRevisions'](_0x14386e={'toJSON':!0x1}){const _0x1b0422=Array['from'](this['_revisions']);return _0x1b0422['reverse'](),_0x14386e['toJSON']?_0x1b0422['map'](_0x43f184=>_0x43f184['toJSON']()):_0x1b0422;}['getIndex'](_0x3e7646){return this['_revisions']['getIndex'](_0x3e7646);}['getEarlierVisibleRevision'](_0x23fd30){const [,_0x35289a]=this['getRevisionsIterator'](_0x23fd30,{'direction':'earlier'});return _0x35289a;}['getLaterVisibleRevision'](_0x2e510d){const [,_0x320d77]=this['getRevisionsIterator'](_0x2e510d,{'direction':'later'});return _0x320d77;}['getRevisionsInDiff'](_0x4f7b71){const _0x50cd79=[];for(const _0x17eecd of this['getRevisionsIterator'](_0x4f7b71['newRevisionId']))if(_0x50cd79['push'](_0x17eecd),_0x17eecd['id']===_0x4f7b71['oldRevisionId'])break;return _0x50cd79;}*['getRevisionsIterator'](_0x5e6815,{direction:_0xab0092='earlier',filter:_0x253826=()=>!0x0}={}){const _0x1110d6='earlier'===_0xab0092?0x1:-0x1;let _0x59df49=this['_revisions']['get'](_0x5e6815),_0x3b056a=this['getIndex'](_0x59df49);for(yield _0x59df49;_0x59df49;){if(_0x3b056a+=_0x1110d6,_0x59df49=this['getRevision'](_0x3b056a),!_0x59df49)return;_0x253826(_0x59df49)&&(yield _0x59df49);}}}class $ extends _0x3cc8d8{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0xb809c6,'c'],[_0x3c26a6,'a'],[_0x3b210b,'e'],[_0x17caaf,'r'],[_0x44aa0b,'u']]);['_typeCharToViewClass']=new Map([['c',_0xb809c6],['a',_0x3c26a6],['e',_0x3b210b],['r',_0x17caaf],['u',_0x44aa0b]]);async['loadRevisionData'](_0x51c317,_0x2308bc){if(_0x51c317['diffData']||!_0x2308bc)return;const _0x349ff9=this['editor']['config']['get']('collaboration.channelId'),_0x2fcb0e=await _0x2308bc['getRevision']({'channelId':_0x349ff9,'revisionId':_0x51c317['id']});_0x51c317['diffData']=_0x2fcb0e['diffData'];}['getRevisionDocumentData'](_0x568085){const _0x3e2886={};for(const _0x17d4aa in _0x568085['diffData']){if(_0x568085['diffData'][_0x17d4aa]['attachChange']&&!_0x568085['diffData'][_0x17d4aa]['attachChange']['isAttached'])continue;const _0x4d6bae=this['_removeRevisionMarkers'](JSON['parse'](_0x568085['diffData'][_0x17d4aa]['insertions'])),_0x50f331=this['editor']['editing']['view']['document'],_0xeee2f2=new _0x3a487f(_0x50f331,_0x4d6bae['map'](_0x5f4f06=>this['_getViewFromDiffObj'](_0x5f4f06,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3e2886[_0x17d4aa]=this['editor']['data']['processor']['toData'](_0xeee2f2),this['editor']['data']['processor']['useFillerType']('default');}return _0x3e2886;}['getRevisionRootsAttributes'](_0x59cd1c){const _0x2dc44d={};for(const _0x3fd61b in _0x59cd1c['diffData'])_0x59cd1c['diffData'][_0x3fd61b]['attachChange']&&!_0x59cd1c['diffData'][_0x3fd61b]['attachChange']['isAttached']||(_0x2dc44d[_0x3fd61b]=_0x59cd1c['diffData'][_0x3fd61b]['attributesAfter']||{});return _0x2dc44d;}['_getTypeCharForViewElement'](_0x5f4e43){return this['_viewClassToTypeChar']['get'](_0x5f4e43['constructor']);}['_getViewFromDiffObj'](_0xc5f27c,_0x167926){const _0x289330=this['editor']['editing']['view']['document'];if('string'==typeof _0xc5f27c)return new _0x684585(_0x289330,_0xc5f27c);{let _0xebb759,_0xe064f1;_0xe064f1='u'==_0xc5f27c['type']||'r'==_0xc5f27c['type']?[]:_0xc5f27c['children']['map'](_0x3cec58=>this['_getViewFromDiffObj'](_0x3cec58,_0x167926));const _0x38d4f6=this['_typeCharToViewClass']['get'](_0xc5f27c['type'])||_0x3dcf2d,_0x27d449=this['editor']['data']['htmlProcessor']['domConverter'];if(_0xebb759=new _0x38d4f6(_0x289330,_0xc5f27c['name'],_0xc5f27c['attributes'],_0xe064f1),'u'==_0xc5f27c['type']&&_0xc5f27c['children'][0x0]){const _0x3a5c89=_0xc5f27c['children'][0x0];if(_0xebb759['render']=function(_0x438215){const _0xc1293f=_0x438215['createElement']('div');return _0xc1293f['innerHTML']=_0x3a5c89,_0xc1293f['childNodes'][0x0];},_0x167926){const _0x5cb69c=new _0x3a487f(_0x289330);_0x5cb69c['_appendChild'](_0xebb759);const _0x3f93b8=Array['from'](_0x27d449['viewChildrenToDom'](_0x5cb69c,{'bind':!0x1})),_0x18daae=_0x27d449['domDocument']['createElement']('div');_0x18daae['append'](..._0x3f93b8),_0xebb759=Array['from'](_0x27d449['domChildrenToView'](_0x18daae))[0x0];}}else{if('r'==_0xc5f27c['type']&&_0xc5f27c['children'][0x0]){const _0x5a607d=_0xc5f27c['children'][0x0];if(_0xebb759['render']=function(_0x328f2d){_0x328f2d['innerHTML']=_0x5a607d;},_0x167926){const _0x38c25c=new _0x3a487f(_0x289330);_0x38c25c['_appendChild'](_0xebb759);const _0x2e44f8=Array['from'](_0x27d449['viewChildrenToDom'](_0x38c25c,{'bind':!0x1})),_0x2b686d=_0x27d449['domDocument']['createElement']('div');_0x2b686d['append'](..._0x2e44f8);const _0x386835=Array['from'](_0x27d449['domChildrenToView'](_0x2b686d));_0x386835['length']>0x1?_0xebb759['_appendChild'](_0x386835):_0xebb759=_0x386835[0x0];}}}if(_0xc5f27c['customProperties']){for(const [_0x406f53,_0x37952c]of _0xc5f27c['customProperties'])_0xebb759['_setCustomProperty'](_0x406f53,_0x37952c);}const _0x18b90d=void 0x0===_0xc5f27c['fillerOffset']?null:_0xc5f27c['fillerOffset'];return null!==_0x18b90d&&(_0xebb759['getFillerOffset']=()=>_0x18b90d),_0xebb759;}}['_makeModelFromViewString'](_0x1bfe1a){const _0x5af3a2=JSON['parse'](_0x1bfe1a),_0xaa84f1=this['editor']['editing']['view']['document'],_0x1e16dd=new _0x3a487f(_0xaa84f1,_0x5af3a2['map'](_0x2f3637=>this['_getViewFromDiffObj'](_0x2f3637,!0x0)));return this['editor']['data']['toModel'](_0x1e16dd);}['_removeRevisionMarkers'](_0x2a3020){return(_0x2a3020=_0x2a3020['filter'](_0x426962=>!_0x426962['name']||'revision-start'!==_0x426962['name']&&'revision-end'!==_0x426962['name']))['forEach'](_0x48ec1b=>{'string'!=typeof _0x48ec1b&&(_0x48ec1b['children']=this['_removeRevisionMarkers'](_0x48ec1b['children']),_0x48ec1b['attributes']=_0x48ec1b['attributes']['filter'](_0xa39096=>!_0xa39096[0x0]['startsWith']('data-revision-')));}),_0x2a3020;}}function R(_0x25d7c1,_0x3dabc8,_0x4c1806){const t=_0x25d7c1['t'];switch(_0x3dabc8){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'},_0x4c1806);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4c1806);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'';}}class h extends _0x3cc8d8{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5b1ee3,S,$,_0x8fe366];}constructor(_0x4357ba){super(_0x4357ba),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x24e9a0=_0x370f6e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x24e9a0},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3a8b2f=this['repository']['getRevision'](0x0),_0xe358f8=_0x3a8b2f&&null===_0x3a8b2f['creator']?_0x3a8b2f:null;if(this['_continueCurrentRevision']=!!_0xe358f8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2090df=this['_source']['getCurrentRevisionId'](),_0x3906aa=this['repository']['getRevision'](_0x2090df);if(_0x3906aa)this['_startingVersion']=_0x3906aa['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x431f56=this['_source']['history']['_operations']['find'](_0x5753cc=>!_0x5753cc['_isInit']),_0x290cb7=_0x431f56?_0x431f56['baseVersion']:this['_source']['history']['version'];_0x3a8b2f?(_0x3a8b2f['toVersion']<_0x290cb7&&_0x3a8b2f['_update']({'toVersion':_0x290cb7}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xe358f8['id'],this['_startingVersion']=_0xe358f8['fromVersion']):(this['_startingVersion']=_0x3a8b2f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x290cb7,this['_continueCurrentRevision']=!0x1);}}else _0xe358f8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xe358f8['toVersion'],this['editor']['model']['document']['history']['version']),_0xe358f8['fromVersion']===_0xe358f8['toVersion']?(0x0!==_0xe358f8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xe358f8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xe358f8['id'],this['_startingVersion']=_0xe358f8['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',_0x2316d1=>!_0x2316d1),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x447cbf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x766296;for(const _0x221160 in _0x447cbf){const _0x365b2d=_0x221160,_0x5f4dd3=_0x447cbf[_0x365b2d];if('revisionHistoryLicenseKeyValid'==_0x5f4dd3||'revisionHistoryLicenseKeyInvalid'==_0x5f4dd3||'revisionHistoryLicenseKeyExpired'==_0x5f4dd3||'revisionHistoryLicenseKeyDomainLimit'==_0x5f4dd3||'revisionHistoryLicenseKeyNotAllowed'==_0x5f4dd3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5f4dd3||'revisionHistoryLicenseKeyTrialLimit'==_0x5f4dd3||'revisionHistoryLicenseKeyUsageLimit'==_0x5f4dd3){delete _0x447cbf[_0x365b2d],_0x766296=_0x5f4dd3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x766296&&_0x447cbf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x766296&&_0x447cbf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x766296&&_0x447cbf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x766296&&_0x447cbf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x766296&&_0x447cbf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x766296&&_0x447cbf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x766296&&_0x447cbf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x21b404=this['repository']['getRevision'](0x0),_0x1a40be=await this['getRevisionDocumentData'](_0x21b404),_0x34d88b=await this['getRevisionRootsAttributes'](_0x21b404);this['_replaceEditorDataWithRevisionData'](_0x1a40be,_0x34d88b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x20c5c4){this['_source']=_0x20c5c4;}async['update'](){const _0x2f12f6=await this['_source']['getLatestVersion']();if(_0x2f12f6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x289d87=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2f12f6});_0x289d87['authors']=_0x289d87['authorsIds']['map'](_0x5d6623=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d6623)),this['currentRevision']['_update'](_0x289d87);}}async['saveRevision'](_0x2b373b={},_0x50cac6=null){const _0x1242d2=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x50cac6>this['currentRevision']['toVersion']&&(_0x50cac6=null),null===_0x50cac6&&(_0x50cac6=await this['_source']['getLatestVersion']());const _0x9f7d4f=this['_getFromVersion'](_0x50cac6),_0x3ac9b0=this['buildRevisionData']({'from':_0x9f7d4f,'to':_0x50cac6});if(this['currentRevision']['toVersion']<_0x50cac6){const _0x3e1005=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x50cac6,'to':_0x50cac6});_0x3e1005['authors']=[],_0x3e1005['authorsIds']=[],_0x3e1005['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3e1005,!0x0),delete _0x3e1005['authors'],_0x1242d2['push'](_0x3e1005);}_0x2b373b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2b373b['name']=_0x2b373b['name']||null,_0x2b373b['id']=_0x2b373b['id']||_0x370f6e(),_0x2b373b={..._0x2b373b,..._0x3ac9b0};const _0xd920d7=this['addRevisionData'](_0x2b373b);_0x1242d2['push'](_0x2b373b);const _0xa1c054=this['repository']['getIndex'](_0xd920d7);if(0x0!==_0xa1c054){const _0x315c0a=this['repository']['getRevision'](_0xa1c054-0x1);if(_0x315c0a['fromVersion']!==_0x50cac6){const _0x1182eb=this['_revisionDataBuilder']['getData'](_0x50cac6,_0x315c0a['toVersion']),_0x1b7bc3={'id':_0x315c0a['id'],'diffData':_0x1182eb['diffData'],'authorsIds':_0x1182eb['authorsIds'],'authors':_0x1182eb['authorsIds']['map'](_0xc8ceb5=>this['editor']['plugins']['get']('Users')['getUser'](_0xc8ceb5)),'fromVersion':_0x50cac6};_0x315c0a===this['currentRevision']&&(_0x1b7bc3['createdAt']=new Date(_0x2b373b['createdAt']['getTime']()+0xa)),_0x315c0a['_update'](_0x1b7bc3,!0x0),delete _0x1b7bc3['authors'],_0x1242d2['push'](_0x1b7bc3);}}if(this['adapter']){for(const _0x4f3d78 of _0x1242d2)this['_bufferUpdate'](_0x4f3d78['id'],_0x4f3d78,!0x0);this['sendBufferedUpdates']();}return _0xd920d7;}['addRevisionData'](_0x1b133f){const _0x290a80=this['repository']['createRevision'](_0x1b133f);return this['adapter']&&_0x290a80['on']('_update',(_0x25f38c,_0x45df01,_0x32f753)=>{_0x32f753||(this['_bufferUpdate'](_0x45df01['id'],_0x45df01,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x290a80,this['_findInsertionIndex'](_0x290a80)),_0x290a80;}async['getRevisionDocumentData'](_0x4a9787){return await this['_utils']['loadRevisionData'](_0x4a9787,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4a9787);}async['getRevisionRootsAttributes'](_0x4c8096){return await this['_utils']['loadRevisionData'](_0x4c8096,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4c8096);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x290607=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x13ed70=0x0;_0x13ed70<_0x290607['length'];_0x13ed70++){const _0x4cee4f=_0x290607[_0x13ed70];let _0x15c8cd=!0x1;for(const _0x450a8e of Object['keys'](_0x4cee4f))void 0x0===_0x4cee4f[_0x450a8e]?delete _0x4cee4f[_0x450a8e]:'id'!==_0x450a8e&&(_0x15c8cd=!0x0);_0x15c8cd||(_0x290607[_0x13ed70]=null);}if(_0x290607=_0x290607['filter'](_0x52132c=>null!==_0x52132c),!_0x290607['length'])return;for(let _0x11e821=0x0;_0x11e821<_0x290607['length'];_0x11e821++){const _0x83672b=_0x290607[_0x11e821];void 0x0!==_0x83672b['fromVersion']&&void 0x0===_0x83672b['toVersion']&&(_0x83672b['toVersion']=this['repository']['getRevision'](_0x83672b['id'])['toVersion']),void 0x0!==_0x83672b['toVersion']&&void 0x0===_0x83672b['fromVersion']&&(_0x83672b['fromVersion']=this['repository']['getRevision'](_0x83672b['id'])['fromVersion']);}const _0x53080f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x290607,_0x53080f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1778c4=>{if(_0x1778c4){for(const _0x32d9a5 of _0x1778c4)this['setRevisionData']({'id':_0x32d9a5['id'],'createdAt':_0x32d9a5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5d43ed=null,from:_0x5e50ab=null,to:_0x4140fe=null}){_0x5e50ab=null!==_0x5e50ab?_0x5e50ab:_0x5d43ed['fromVersion'],_0x4140fe=null!==_0x4140fe?_0x4140fe:_0x5d43ed['toVersion'];const _0x827c6=this['_revisionDataBuilder']['getData'](_0x5e50ab,_0x4140fe),_0x59f290={'diffData':_0x827c6['diffData'],'authorsIds':_0x827c6['authorsIds'],'fromVersion':_0x5e50ab,'toVersion':_0x4140fe};if(!_0x5d43ed||_0x4140fe!==_0x5d43ed['toVersion']){const _0x2d688a=_0x4140fe-0x1,_0x263ee6=this['_source']['history']['getOperation'](_0x2d688a);_0x59f290['createdAt']=_0x263ee6&&_0x263ee6['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5e50ab===this['_loadedStateData']['fromVersion']){for(const _0x139667 of this['_loadedStateData']['authors'])_0x59f290['authorsIds']['includes'](_0x139667['id'])||_0x59f290['authorsIds']['push'](_0x139667['id']);}return _0x59f290;}['_bufferUpdate'](_0xee2736,_0xef0f3d,_0x2c13fd){if(this['_bufferedUpdates']['has'](_0xee2736)){const _0x46858f=this['_bufferedUpdates']['get'](_0xee2736);_0xef0f3d=_0x2c13fd?{..._0x46858f,..._0xef0f3d}:{..._0xef0f3d,..._0x46858f};}this['_bufferedUpdates']['set'](_0xee2736,_0xef0f3d);}['setRevisionData'](_0x35ffc6){const _0x4486ce=this['repository']['getRevision'](_0x35ffc6['id']);if(_0x35ffc6['createdAt']&&(_0x35ffc6['createdAt']=new Date(_0x35ffc6['createdAt'])),_0x35ffc6['authorsIds']){const _0x546ee9=this['editor']['plugins']['get']('Users');_0x35ffc6['authors']=_0x35ffc6['authorsIds']['map'](_0x1314fa=>_0x546ee9['getUser'](_0x1314fa));}_0x4486ce['_update'](_0x35ffc6,!0x0);}['_createInitialRevision'](_0x25db47){const _0x45dfab=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x45dfab)this['_initialRevisionId']=_0x45dfab['id'];else{const _0x9475d7=!this['editor']['model']['document']['roots']['find'](_0x28a38f=>this['editor']['model']['hasContent'](_0x28a38f)),_0x217bdd=this['editor']['plugins']['get']('Users')['me']['id'],_0x3849aa=R(this['editor']['locale'],_0x9475d7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x25db47,'to':_0x25db47,'id':this['_initialRevisionId'],'name':_0x3849aa,'creatorId':_0x217bdd});}}['_createCurrentRevision'](_0x520b6d){const _0x4bde34=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4bde34),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x520b6d,'to':_0x520b6d,'id':_0x4bde34,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x26adae,_0x23cbea){let _0x57592c=this['editor']['config']['get']('initialData'),_0x1017bc=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x57592c){_0x57592c={};for(const _0x49d178 of this['editor']['model']['document']['getRootNames']())_0x57592c[_0x49d178]='';}if('string'==typeof _0x57592c&&(_0x57592c={'main':_0x57592c}),void 0x0===_0x1017bc){_0x1017bc={};for(const _0x10dfd1 of this['editor']['model']['document']['getRootNames']())_0x1017bc[_0x10dfd1]={};}let _0x4f34f0=!0x1;const _0x5aadc2=Object['keys'](_0x57592c),_0x4baacb=Object['keys'](_0x26adae);for(const _0x32fe86 of _0x5aadc2){if(_0x57592c[_0x32fe86]!==_0x26adae[_0x32fe86]&&''!==_0x57592c[_0x32fe86]['trim']()){_0x4f34f0=!0x0;break;}if(!_0x4420e0(_0x1017bc[_0x32fe86],_0x23cbea[_0x32fe86])&&Object['keys'](_0x1017bc[_0x32fe86])['length']>0x0){_0x4f34f0=!0x0;break;}}_0x4f34f0||(_0x4f34f0=_0x4baacb['some'](_0x550d46=>!this['editor']['model']['document']['getRoot'](_0x550d46))),_0x4f34f0&&_0xf0aaf1('editor-initial-data-replaced-with-revision-data',{'editorData':_0x57592c,'editorRootsAttributes':_0x1017bc,'revisionData':_0x26adae,'revisionRootsAttributes':_0x23cbea}),this['editor']['config']['set']('initialData',_0x26adae),this['editor']['config']['set']('rootsAttributes',_0x23cbea);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x10d7aa=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x10d7aa['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x11cbef){const _0x2e866f=this['repository']['getRevisions']();_0x2e866f['reverse']();let _0x1442d1=0x0;for(;_0x1442d1<_0x2e866f['length'];){const _0x436b9c=_0x2e866f[_0x1442d1];if(_0x436b9c===this['currentRevision']){_0x1442d1++;continue;}if(_0x436b9c['id']===this['_initialRevisionId'])break;const _0x3f1a81=_0x11cbef['toVersion']-_0x436b9c['toVersion']||_0x11cbef['fromVersion']-_0x436b9c['fromVersion'];if(_0x3f1a81>0x0)break;if(_0x3f1a81<0x0)_0x1442d1++;else{if(!_0x11cbef['creator']&&_0x436b9c['creator'])break;if(_0x436b9c['creator']||!_0x11cbef['creator']){if(_0x11cbef['createdAt']>_0x436b9c['createdAt'])break;_0x1442d1++;}else _0x1442d1++;}}return _0x1442d1;}['_getFromVersion'](_0x4d66cb){const _0x4afd3a=this['repository']['getRevisions']();_0x4afd3a['reverse'](),_0x4afd3a['shift']();const _0x2be87c=_0x4afd3a['find'](_0x236156=>_0x236156['toVersion']<=_0x4d66cb)['toVersion'];return _0x2be87c<this['_startingVersion']?this['_startingVersion']:_0x2be87c;}['_makeRevision']({name:_0x36cb2b,from:_0x321609,to:_0x1ca443,creatorId:_0x4d7a1c,id:_0x459873}){const _0x56cb51=this['buildRevisionData']({'from':_0x321609,'to':_0x1ca443});_0x56cb51['name']=_0x36cb2b,_0x56cb51['creatorId']=_0x4d7a1c,_0x56cb51['id']=_0x459873;const _0x5a0d4f=this['addRevisionData'](_0x56cb51);return this['adapter']&&this['_bufferUpdate'](_0x56cb51['id'],_0x56cb51,!0x0),_0x5a0d4f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x287132){this['editor']=_0x287132,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'](_0x3a3b76){this['source']=_0x3a3b76;const _0x330ebb=new Map(),_0x2f0856=new Map(),_0x13336b=this['editor']['model']['document']['roots']['map'](_0x4b4217=>_0x4b4217['rootName']);for(const _0x49cb51 of _0x13336b){const _0x75f22c=this['editor']['model']['document']['getRoot'](_0x49cb51),_0x11d40e=x(_0x75f22c);_0x330ebb['set'](_0x49cb51,_0x11d40e),_0x2f0856['set'](_0x49cb51,Object['fromEntries'](_0x75f22c['getAttributes']()));}const _0x4cd4fb=Array['from'](this['editor']['model']['markers'])['map'](_0x215621=>[_0x215621['name'],_0x215621['getRange']()]),_0x3ae68d=this['source']['version'];this['_saveMetaData'](_0x3ae68d,_0x330ebb,_0x4cd4fb,_0x2f0856),this['_startingRevisionId']=this['_revisionId'];const _0x74d4ee=new Map(),_0x2d794b=new Map();for(const _0x7d3b80 of _0x13336b){const _0x1f86b3=N(_0x7d3b80);_0x74d4ee['set'](_0x7d3b80,_0x1f86b3),_0x2d794b['set'](_0x7d3b80,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x74d4ee,[],_0x2d794b);}['getData'](_0x34bf12,_0x284aa4){if(this['_lastFrom']===_0x34bf12&&this['_lastTo']<=_0x284aa4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x284aa4,!0x0);else{if(!this['_savedMetaData']['has'](_0x34bf12)){const _0x202026=this['_getPreviousFrom'](_0x34bf12);this['_calculateMetaData'](_0x202026,_0x34bf12,!0x1);}this['_calculateMetaData'](_0x34bf12,_0x284aa4,!0x0);}return this['_lastFrom']=_0x34bf12,this['_lastTo']=_0x284aa4,this['_getState']();}['loadState'](_0x1d517f){const _0x519ffd=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1d517f['fromVersion'],this['_lastTo']=_0x1d517f['toVersion'];for(const _0x1cbaa8 in _0x1d517f['diffData']){const _0x46da9f=_0x1d517f['diffData'][_0x1cbaa8]['attachChange'],_0x33c140=_0x51beb1(_0x1d517f['diffData'][_0x1cbaa8]['attributesBefore'])||{},_0xc8f6=_0x519ffd['_makeModelFromViewString'](_0x1d517f['diffData'][_0x1cbaa8]['deletions']);_0xc8f6['rootName']=_0x1cbaa8,_0xc8f6['_isAttached']=!_0x46da9f||!_0x46da9f['isAttached'],_0xc8f6['isAttached']=()=>_0xc8f6['_isAttached'],this['_baseRoots']['set'](_0x1cbaa8,_0xc8f6),this['_baseRootsAttributes']['set'](_0x1cbaa8,_0x33c140),_0x46da9f&&this['_touchedRoots']['set'](_0x1cbaa8,_0x46da9f);const _0x51b316=this['_makeIdsRoot'](_0xc8f6);this['_baseIdsRoots']['set'](_0x1cbaa8,_0x51b316);for(const [_0x441101,_0x1d24c1]of _0xc8f6['markers']){if(!_0x441101['startsWith']('revision:'))continue;const _0x1eac43=_0x441101['split'](':')[0x2];for(const _0x1f238a of _0x1d24c1['getWalker']({'singleCharacters':!0x0})){const _0x984e79=this['_getVidAttributeName'](_0x1f238a),_0x96e9dc='elementEnd'==_0x1f238a['type']?_0x1f238a['previousPosition']['path']['slice'](0x0,-0x1):_0x1f238a['previousPosition']['path'],_0x2b6566=_0x51b316['getNodeByPath'](_0x96e9dc)['getAttribute'](_0x984e79);this['_touched']['set'](_0x2b6566,{'userId':_0x1eac43});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5201da=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x34f8ad=>!this['_touched']['has'](_0x34f8ad));let _0x20a735=0x0;const _0x54d60c=new Map();for(const _0x96543d in _0x1d517f['diffData']){const _0x22791f=_0x1d517f['diffData'][_0x96543d]['attachChange'],_0x9f3d51=_0x51beb1(_0x1d517f['diffData'][_0x96543d]['attributesAfter'])||{},_0x301f91=_0x519ffd['_makeModelFromViewString'](_0x1d517f['diffData'][_0x96543d]['insertions']);_0x301f91['rootName']=_0x96543d,_0x301f91['_isAttached']=!_0x22791f||_0x22791f['isAttached'],_0x301f91['isAttached']=()=>_0x301f91['_isAttached'],this['_diffRoots']['set'](_0x96543d,_0x301f91),this['_diffRootsAttributes']['set'](_0x96543d,_0x9f3d51);const _0x270f10=this['_makeIdsRoot'](_0x301f91,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x96543d,_0x270f10),_0x54d60c['set'](_0x96543d,_0x301f91['isAttached']()?_0x9f3d51:{});for(const [_0x342df4,_0x2fd3ff]of _0x301f91['markers']){if(!_0x342df4['startsWith']('revision:'))continue;const _0x28e55e=_0x342df4['split'](':')[0x2];for(const _0x1bacad of _0x2fd3ff['getWalker']({'singleCharacters':!0x0})){const _0x1dde62=this['_getVidAttributeName'](_0x1bacad),_0x1d1aec=this['_revisionId']++,_0x566d8c='elementEnd'==_0x1bacad['type']?_0x1bacad['previousPosition']['path']['slice'](0x0,-0x1):_0x1bacad['previousPosition']['path'];_0x270f10['getNodeByPath'](_0x566d8c)['_setAttribute'](_0x1dde62,_0x1d1aec),this['_touched']['set'](_0x1d1aec,{'userId':_0x28e55e});}}for(const _0x5cd1f6 of this['editor']['model']['createRangeIn'](_0x301f91)['getWalker']({'singleCharacters':!0x0})){const _0x559f83=this['_getVidAttributeName'](_0x5cd1f6),_0x3de2f4='elementEnd'==_0x5cd1f6['type']?_0x5cd1f6['previousPosition']['path']['slice'](0x0,-0x1):_0x5cd1f6['previousPosition']['path'],_0x506768=_0x270f10['getNodeByPath'](_0x3de2f4);_0x506768['getAttribute'](_0x559f83)>0x0||_0x506768['_setAttribute'](_0x559f83,_0x5201da[_0x20a735++]);}for(const [_0x193af7,_0x4216e9]of _0x301f91['markers'])_0x193af7['startsWith']('revision:')||this['_markers']['set'](_0x193af7,_0x4216e9);}const _0x168b50=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x168b50),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x168b50,0x1));const _0x77e62d=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x77e62d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x77e62d,0x1));const _0x161a81=Array['from'](this['_diffRoots'])['map'](([_0xec9018,_0x2f9bd5])=>[_0xec9018,x(_0x2f9bd5)]);this['_saveMetaData'](this['_lastTo'],_0x161a81,this['_markers'],_0x54d60c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x12fb23,_0x313329,_0x5b5ba3,_0x368cff){const _0x5947dc=new Map(_0x313329),_0x380a2d=new Map(_0x51beb1(_0x368cff)),_0x127d27=new Map();for(const [_0x4bfe2e,_0x47b06d]of _0x5b5ba3)_0x127d27['set'](_0x4bfe2e,{'start':_0x47b06d['start']['clone'](),'end':_0x47b06d['end']['clone'](),'rootName':_0x47b06d['root']['rootName']});this['_savedMetaData']['set'](_0x12fb23,{'roots':_0x5947dc,'markers':_0x127d27,'rootsAttributes':_0x380a2d});}['_removeMetaData'](_0x59cc3e){this['_savedMetaData']['delete'](_0x59cc3e);}['_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'](_0x3f4e7d,_0x547b53=null){let _0x1f69ea=null;_0x3f4e7d['is']('documentFragment')||(_0x1f69ea=new _0x19a103(_0x3f4e7d['name'],{'vid_start':null===_0x547b53?this['_revisionId']++:_0x547b53++}));const _0x2d0031=[];for(const _0x4bd871 of _0x3f4e7d['getChildren']())if(_0x4bd871['is']('element')){_0x2d0031['push'](this['_makeIdsRoot'](_0x4bd871,_0x547b53));const _0x38bc98=_0x2d0031[_0x2d0031['length']-0x1];null!==_0x547b53&&(_0x547b53=_0x38bc98['is']('element','$text')?_0x38bc98['getAttribute']('vid')+0x1:_0x38bc98['getAttribute']('vid_end')+0x1);}else{for(let _0x45d3c4=0x0;_0x45d3c4<_0x4bd871['offsetSize'];_0x45d3c4++)_0x2d0031['push'](new _0x19a103('$text',{'vid':null===_0x547b53?this['_revisionId']++:_0x547b53++}));}if(_0x3f4e7d['is']('documentFragment')){const _0x107a87=N(_0x3f4e7d['rootName']);return _0x107a87['_insertChild'](0x0,_0x2d0031),_0x107a87;}return _0x1f69ea['_setAttribute']('vid_end',null===_0x547b53?this['_revisionId']++:_0x547b53++),_0x1f69ea['_insertChild'](0x0,_0x2d0031),_0x1f69ea;}['_calculateMetaData'](_0x83e46a,_0x56accf,_0x1caacb){this['_reset']();const {roots:_0x4eab2c,markers:_0x4bcd51,rootsAttributes:_0x33e95c}=this['_savedMetaData']['get'](_0x83e46a);this['_baseRoots']=new Map(_0x4eab2c),this['_baseRootsAttributes']=new Map(_0x51beb1(_0x33e95c));for(const [_0x3e3b5a,_0x4eda3b]of this['_baseRoots'])if('$graveyard'!==_0x3e3b5a&&(this['_diffRoots']['set'](_0x3e3b5a,x(_0x4eda3b)),this['_diffRootsAttributes']=new Map(_0x51beb1(_0x33e95c)),_0x1caacb)){const _0x162cc9=this['_revisionId'];this['_idsRoots']['set'](_0x3e3b5a,this['_makeIdsRoot'](_0x4eda3b)),this['_baseIdsRoots']['set'](_0x3e3b5a,this['_makeIdsRoot'](_0x4eda3b,_0x162cc9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x1caacb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x39d247,_0x4911bd]of _0x4bcd51){const _0x2a0b7c=this['_baseRoots']['get'](_0x4911bd['rootName']),_0x119ca9=this['_diffRoots']['get'](_0x4911bd['rootName']),_0x360328=new _0x1c8fcc(this['_fixPosition'](_0x4911bd['start'],_0x2a0b7c),this['_fixPosition'](_0x4911bd['end'],_0x2a0b7c)),_0x22459c=this['_fixRange'](_0x360328,_0x119ca9);_0x2a0b7c['markers']['set'](_0x39d247,_0x360328),this['_markers']['set'](_0x39d247,_0x22459c);}this['_applyOperations'](_0x83e46a,_0x56accf,_0x1caacb);}['_applyOperations'](_0x25b130,_0x115088,_0x1d4e4e){for(const _0x4e7162 of this['source']['getOperations'](_0x25b130,_0x115088))this['_handleOperation'](_0x4e7162,_0x1d4e4e);for(const _0xf83af4 of this['_diffRoots']['values']())_0xf83af4['markers']['clear']();for(const [_0x163158,_0x3c4f7f]of this['_markers']){this['_diffRoots']['get'](_0x3c4f7f['root']['rootName'])['markers']['set'](_0x163158,_0x3c4f7f['clone']());}const _0x32bb7f=new Map(),_0x44b5a4=new Map();for(const [_0x503b9e,_0x409188]of this['_diffRoots'])_0x32bb7f['set'](_0x503b9e,x(_0x409188)),_0x44b5a4['set'](_0x503b9e,this['_diffRootsAttributes']['get'](_0x503b9e));this['_saveMetaData'](_0x115088,_0x32bb7f,this['_markers'],_0x44b5a4);}['_getPreviousFrom'](_0x16b1b5){const _0x14d01e=Array['from'](this['_savedMetaData']['keys']());_0x14d01e['sort']((_0x10e13d,_0x70a69e)=>_0x10e13d-_0x70a69e),_0x14d01e['reverse']();for(const _0x24a01f of _0x14d01e)if(_0x24a01f<_0x16b1b5)return _0x24a01f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x132d64,_0x48ec3d){const _0x244931=Array['from'](_0x48ec3d['markers'])['map'](([_0x558154,_0x5be9c2])=>[_0x558154,this['_fixRange'](_0x5be9c2,_0x132d64)]);_0x132d64['markers']=new Map(_0x244931);}['_transformMarkers'](_0x4fe35f){for(const _0x3bcb80 of this['_markers']['values']()){const _0x37f163=_0x3bcb80['getTransformedByOperation'](_0x4fe35f),_0x168d40=_0x1c8fcc['_createFromRanges'](_0x37f163);_0x3bcb80['start']=_0x168d40['start'],_0x3bcb80['end']=_0x168d40['end'];}}['_handleOperation'](_0x26a1c8,_0x556267){if('addRoot'!=_0x26a1c8['type']&&'detachRoot'!=_0x26a1c8['type']){if('insert'==_0x26a1c8['type']){const _0x20e310=_0x26a1c8['position']['root']['rootName'];this['_diffRoots']['has'](_0x20e310)||(this['_diffRoots']['set'](_0x20e310,N(_0x20e310,!0x0)),this['_diffRootsAttributes']['set'](_0x20e310,{}),_0x556267&&this['_idsRoots']['set'](_0x20e310,N(_0x20e310,!0x0)));}else{if('addRootAttribute'==_0x26a1c8['type']||'removeRootAttribute'==_0x26a1c8['type']||'changeRootAttribute'==_0x26a1c8['type'])return void this['_handleRootAttributeOperation'](_0x26a1c8);'marker'==_0x26a1c8['type']&&this['_handleMarkerOperation'](_0x26a1c8);}if('marker'!==_0x26a1c8['type']){const _0x32b512=this['_cloneOperation'](_0x26a1c8,this['_diffRoots']);_0x32b512['_execute'](),this['_transformMarkers'](_0x32b512);}if(_0x556267)switch(_0x26a1c8['type']){case'insert':this['_handleInsertOperation'](_0x26a1c8);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x26a1c8);break;case'merge':this['_handleMergeOperation'](_0x26a1c8);break;case'split':this['_handleSplitOperation'](_0x26a1c8);}}else this['_handleRootOperation'](_0x26a1c8,_0x556267);}['_cloneOperation'](_0x404925,_0x2b231f){const _0x31cc1a=_0x404925['clone']();return _0x31cc1a['_authorId']=_0x404925['_authorId'],this['_fixOperation'](_0x31cc1a,_0x2b231f),_0x31cc1a;}['_getBaseVids'](_0x550caa){return _0x550caa['map'](_0x205c25=>{const _0x5f302f=this['_getVidAttributeName'](_0x205c25);return Number(_0x205c25['item']['getAttribute'](_0x5f302f));});}['_generateTape'](_0x150f52,_0x3b0dd9){if(_0x150f52['is']('element','$text'))_0x3b0dd9['push']({'item':_0x150f52,'type':'text'});else{_0x150f52['is']('element')&&_0x3b0dd9['push']({'item':_0x150f52,'type':'elementStart'});for(const _0x2d2aab of _0x150f52['getChildren']())this['_generateTape'](_0x2d2aab,_0x3b0dd9);_0x150f52['is']('element')&&_0x3b0dd9['push']({'item':_0x150f52,'type':'elementEnd'});}return _0x3b0dd9;}['_getState'](){const _0x34f171=new Map(this['_touched']),_0x34b9fa=new Map(_0x34f171),_0x23ca66=new Map(),_0x2a4d51={'insertions':{},'deletions':{}},_0x17e699={'insertions':{},'deletions':{}},_0x3e1c58=new Map(),_0x542c24=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x542c24['delete']('$graveyard');for(const _0x333045 of _0x542c24){const _0x279470=this['_diffRoots']['get'](_0x333045)||N(_0x333045,!0x1),_0x1c837a=this['_baseRoots']['get'](_0x333045)||N(_0x333045,!0x1);_0x279470['isAttached']()||_0x1c837a['isAttached']()?(_0x2a4d51['insertions'][_0x333045]=x(_0x279470),_0x2a4d51['deletions'][_0x333045]=x(_0x1c837a),this['_copyMarkers'](_0x2a4d51['deletions'][_0x333045],_0x1c837a),this['_copyMarkers'](_0x2a4d51['insertions'][_0x333045],_0x279470),_0x17e699['insertions'][_0x333045]=this['_generateTape'](this['_idsRoots']['get'](_0x333045),[]),_0x17e699['deletions'][_0x333045]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x333045)||N(_0x333045,!0x1),[])):_0x542c24['delete'](_0x333045);}for(const _0x3ea305 of _0x542c24){const _0x1b282b=_0x17e699['insertions'][_0x3ea305];for(const _0x8ae975 of _0x1b282b){const _0xf4e5e1=this['_getVidAttributeName'](_0x8ae975),_0x7efe75=_0x8ae975['item']['getAttribute'](_0xf4e5e1);_0x34b9fa['delete'](_0x7efe75),_0x7efe75>=this['_startingRevisionId']&&_0x23ca66['set'](_0x7efe75,_0x34f171['get'](_0x7efe75));}}for(const _0x436d66 of _0x542c24){const _0x202697=_0x17e699['insertions'][_0x436d66],_0x27d5f9=this['_getBaseVids'](_0x17e699['deletions'][_0x436d66]);let _0x25d2a3=0x0;for(const _0x1d7a67 of _0x202697){const _0x4dfa85=this['_getVidAttributeName'](_0x1d7a67),_0x29d4b5=_0x1d7a67['item']['getAttribute'](_0x4dfa85);if(!_0x23ca66['has'](_0x29d4b5)&&!_0x3e1c58['has'](_0x29d4b5)){if(_0x34b9fa['has'](_0x29d4b5))_0x25d2a3++;else{if(_0x29d4b5!=_0x27d5f9[_0x25d2a3]){const _0x145e74=_0x34f171['get'](_0x29d4b5)||_0x34f171['get'](_0x27d5f9[_0x25d2a3]);for(;_0x29d4b5!=_0x27d5f9[_0x25d2a3];)_0x34b9fa['has'](_0x27d5f9[_0x25d2a3])||(_0x3e1c58['set'](_0x27d5f9[_0x25d2a3],_0x145e74),_0x34f171['set'](_0x27d5f9[_0x25d2a3],_0x145e74)),_0x25d2a3++;}_0x25d2a3++;}}}}for(const _0xb15198 of _0x542c24){const _0x5201f6=_0x17e699['insertions'][_0xb15198];for(const _0x543af9 of _0x5201f6){const _0x376470=this['_getVidAttributeName'](_0x543af9),_0x2d1c26=_0x543af9['item']['getAttribute'](_0x376470);if(_0x3e1c58['has'](_0x2d1c26)){const _0x3083cf=_0x3e1c58['get'](_0x2d1c26);_0x34b9fa['has'](_0x2d1c26)||_0x34b9fa['set'](_0x2d1c26,{..._0x3083cf}),_0x23ca66['set'](_0x2d1c26,{..._0x3083cf});}}}for(const _0x1dccc9 of _0x34b9fa['keys']())_0x1dccc9>=this['_startingRevisionId']&&_0x34b9fa['delete'](_0x1dccc9);const _0x4655e0=new Map();for(const _0x4431bd of _0x542c24){let _0x1958fc=_0x17e699['insertions'][_0x4431bd];for(const _0x45c048 of _0x1958fc)if(_0x45c048['item']['is']('element','tableCell')){const _0x1849f5=this['_getVidAttributeName'](_0x45c048),_0xade8b8=_0x45c048['item']['getAttribute'](_0x1849f5);if(_0x23ca66['has'](_0xade8b8)){const _0x5c1a30=_0x45c048['item']['parent']['parent']['getAttribute']('vid_start'),_0x487e99=_0x4655e0['get'](_0x5c1a30)||new Set();_0x487e99['add'](_0x23ca66['get'](_0xade8b8)['userId']),_0x4655e0['set'](_0x5c1a30,_0x487e99);}}_0x1958fc=_0x17e699['deletions'][_0x4431bd];for(const _0x2cdb46 of _0x1958fc)if(_0x2cdb46['item']['is']('element','tableCell')){const _0x1d81e1=this['_getVidAttributeName'](_0x2cdb46),_0x2b8fa8=_0x2cdb46['item']['getAttribute'](_0x1d81e1);if(_0x34b9fa['has'](_0x2b8fa8)){const _0x324be1=_0x2cdb46['item']['parent']['parent']['getAttribute']('vid_start'),_0xee6ffa=_0x4655e0['get'](_0x324be1)||new Set();_0xee6ffa['add'](_0x34b9fa['get'](_0x2b8fa8)['userId']),_0x4655e0['set'](_0x324be1,_0xee6ffa);}}for(const _0x3e14c1 of _0x4655e0['keys']())(_0x23ca66['has'](_0x3e14c1)||_0x34b9fa['has'](_0x3e14c1))&&_0x4655e0['delete'](_0x3e14c1);}for(const _0x4d20b8 of _0x542c24){const _0x5371de=_0x17e699['insertions'][_0x4d20b8];let _0x559757=null,_0x21fc52=null;for(const _0x31f46c of _0x5371de){const _0x50c74d=this['_getVidAttributeName'](_0x31f46c),_0x5c5a19=_0x31f46c['item']['getAttribute'](_0x50c74d),_0x103072=_0x4655e0['get'](_0x5c5a19);_0x103072&&'elementStart'==_0x31f46c['type']&&(_0x559757=Array['from'](_0x103072)[0x0],_0x21fc52=_0x31f46c['item']['getAttribute']('vid_end')),_0x559757&&(_0x34b9fa['set'](_0x5c5a19,{'userId':_0x559757}),_0x23ca66['set'](_0x5c5a19,{'userId':_0x559757})),_0x5c5a19==_0x21fc52&&(_0x559757=null,_0x21fc52=null);}}const _0x36469a={},_0x14d575=new Set();for(const _0x4fb773 of _0x542c24){const _0x430e71=_0x2a4d51['deletions'][_0x4fb773],_0x3abf04=_0x2a4d51['insertions'][_0x4fb773];for(const {userId:_0x46a28e}of this['_touchedMarkers']['values']())null!==_0x46a28e&&_0x14d575['add'](_0x46a28e);for(const {userId:_0x3ba557}of this['_touchedRoots']['values']())null!==_0x3ba557&&_0x14d575['add'](_0x3ba557);this['_markChanges'](_0x3abf04,_0x17e699['insertions'][_0x4fb773],_0x23ca66,'insertion',_0x14d575),this['_markChanges'](_0x430e71,_0x17e699['deletions'][_0x4fb773],_0x34b9fa,'deletion',_0x14d575),_0x36469a[_0x4fb773]={'insertions':this['_prepareViewToSave'](_0x3abf04),'deletions':this['_prepareViewToSave'](_0x430e71),'attachChange':this['_touchedRoots']['get'](_0x4fb773)||null,'attributesBefore':_0x51beb1(this['_baseRootsAttributes']['get'](_0x4fb773))||{},'attributesAfter':_0x51beb1(this['_diffRootsAttributes']['get'](_0x4fb773))};}return{'diffData':_0x36469a,'authorsIds':Array['from'](_0x14d575)};}['_processRootBeforeSave'](_0x113864){for(const [,_0x3e3f02]of _0x113864['markers']){const _0x4157f2=_0x3e3f02['start']['getAncestors']()['filter'](_0x371b5e=>'tableCell'==_0x371b5e['name']);for(const _0x1307fd of _0x4157f2)0x1==_0x1307fd['childCount']&&_0x1307fd['getChild'](0x0)['is']('element','paragraph')&&_0x1307fd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x226701){this['_processRootBeforeSave'](_0x226701);const _0x587ea7=this['editor']['data']['toView'](_0x226701,{}),_0x287d91=Array['from'](_0x587ea7['getChildren']())['map'](_0x59d511=>this['_getViewJson'](_0x59d511));return JSON['stringify'](_0x287d91);}['_getViewJson'](_0x53d05b){if(_0x53d05b['is']('$text'))return _0x53d05b['data'];{const _0x54d0a3=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xdb571d=_0x53d05b,_0x9b005f=this['editor']['data']['htmlProcessor']['domConverter'],_0x417897={'type':_0x54d0a3['_getTypeCharForViewElement'](_0xdb571d),'name':_0xdb571d['name'],'attributes':Array['from'](_0xdb571d['getAttributes']()),'children':Array['from'](_0xdb571d['getChildren']())['map'](_0x172d6e=>this['_getViewJson'](_0x172d6e))};if(_0x53d05b['is']('uiElement')&&'$comment'!=_0x53d05b['name']){const _0x203c36=_0x53d05b['render'](_0x9b005f['domDocument'],_0x9b005f);_0x417897['children']['push'](_0x203c36['outerHTML']);}else{if(_0x53d05b['is']('rawElement')){const _0x5aeee3=_0x9b005f['domDocument']['createElement'](_0xdb571d['name']);_0x53d05b['render'](_0x5aeee3,_0x9b005f),_0x417897['children']['push'](_0x5aeee3['innerHTML']);}}const _0x5b53f1=Array['from'](_0xdb571d['getCustomProperties']());_0x5b53f1['length']>0x0&&(_0x417897['customProperties']=_0x5b53f1);const _0x4e5e22=_0xdb571d['getFillerOffset']();return null!==_0x4e5e22&&(_0x417897['fillerOffset']=_0x4e5e22),_0x417897;}}['_markChanges'](_0x796ef2,_0x1a4528,_0x3c2dbf,_0x43e7b1,_0x4bd77f){let _0x284f24=null,_0xb64223=null,_0x4053f8=0x0;const _0x52cbce=this['editor']['model'];for(let _0xc5d75d=0x0;_0xc5d75d<_0x1a4528['length'];_0xc5d75d++){const _0x38c12e=this['_getVidAttributeName'](_0x1a4528[_0xc5d75d]),_0x342799=_0x1a4528[_0xc5d75d]['item']['getAttribute'](_0x38c12e),_0x39f828=_0x3c2dbf['get'](_0x342799),_0x3fc173=_0xc5d75d==_0x1a4528['length']-0x1;(!_0x284f24&&_0x39f828&&(_0x284f24=_0x39f828,_0xb64223=_0x1a4528[_0xc5d75d]),_0x284f24&&(!_0x39f828||_0x39f828['userId']!=_0x284f24['userId']))&&(_0x6b4d29(_0x39f828,P(_0xb64223,_0x796ef2,_0x52cbce),P(_0x1a4528[_0xc5d75d],_0x796ef2,_0x52cbce)),_0x284f24=_0x39f828||null,_0xb64223=_0x39f828?_0x1a4528[_0xc5d75d]:null),_0x284f24&&_0x3fc173&&_0x6b4d29(_0x39f828,P(_0xb64223,_0x796ef2,_0x52cbce),V(_0x1a4528[_0xc5d75d],_0x796ef2,_0x52cbce));}function _0x6b4d29(_0x263a4f,_0x4725b1,_0x1816b3){const _0x539bdd=_0x284f24['userId'],_0x4b2e09='revision:'+_0x43e7b1+':'+_0x539bdd+':'+_0x4053f8++,_0x3adbcf=_0x52cbce['createRange'](_0x4725b1,_0x1816b3);_0x796ef2['markers']['set'](_0x4b2e09,_0x3adbcf),null!==_0x539bdd&&_0x4bd77f['add'](_0x539bdd);}}['_getVidAttributeName'](_0x366ede){switch(_0x366ede['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xb4e40d,_0x4236b0){_0xb4e40d['baseVersion']=null;for(const _0x2eace4 in _0xb4e40d){const _0x55a792=_0xb4e40d[_0x2eace4];if(_0x55a792 instanceof _0x46582e){const _0x29838f=_0x4236b0['get'](_0x55a792['root']['rootName']);_0xb4e40d[_0x2eace4]=this['_fixPosition'](_0x55a792,_0x29838f);}if(_0x55a792 instanceof _0x1c8fcc){const _0x383d23=_0x4236b0['get'](_0x55a792['root']['rootName']);_0xb4e40d[_0x2eace4]=this['_fixRange'](_0x55a792,_0x383d23);}'root'===_0x2eace4&&(_0xb4e40d['root']=_0x4236b0['get'](_0xb4e40d['root']['rootName']));}}['_fixRange'](_0x45c6d6,_0x446de4){return this['editor']['model']['createRange'](this['_fixPosition'](_0x45c6d6['start'],_0x446de4),this['_fixPosition'](_0x45c6d6['end'],_0x446de4));}['_fixPosition'](_0x3494c3,_0x44faec){return this['editor']['model']['createPositionFromPath'](_0x44faec,_0x3494c3['path'],_0x3494c3['stickiness']);}['_handleInsertOperation'](_0x17ec6a){const _0x4bf563=this['_idsRoots']['get'](_0x17ec6a['position']['root']['rootName']),_0x2652ba=this['_fixPosition'](_0x17ec6a['position'],_0x4bf563),_0x3ac0d1=null===_0x17ec6a['_authorId']?null:_0x17ec6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d973f=_0x2652ba['parent'],_0x1efb2e=this['_revisionId'],_0x58ceed=[];for(const _0x45983e of _0x17ec6a['nodes'])if(_0x45983e['is']('element'))_0x58ceed['push'](this['_makeIdsRoot'](_0x45983e));else{for(let _0x1dfadb=0x0;_0x1dfadb<_0x45983e['offsetSize'];_0x1dfadb++)_0x58ceed['push'](new _0x19a103('$text',{'vid':this['_revisionId']++}));}const _0x16a973=this['_revisionId'];for(let _0x33dd28=_0x1efb2e;_0x33dd28<_0x16a973;_0x33dd28++)this['_touched']['set'](_0x33dd28,{'userId':_0x3ac0d1});_0x5d973f['_insertChild'](_0x2652ba['offset'],_0x58ceed);}['_handleMoveOperation'](_0x5c652b){(_0x5c652b=this['_cloneOperation'](_0x5c652b,this['_idsRoots']))['_execute']();const _0x4a0140=null===_0x5c652b['_authorId']?null:_0x5c652b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1be83c=_0x5c652b['getMovedRangeStart'](),_0x357b54=_0x1be83c['parent'],_0x1121df=_0x1be83c['offset'];!function _0x262a66(_0x448b3b,_0x317049,_0x40d98d,_0x55c282){for(let _0x3a575a=_0x40d98d;_0x3a575a<_0x55c282;_0x3a575a++){const _0x489920=_0x317049['getChild'](_0x3a575a);_0x489920['is']('element','$text')?_0x448b3b['set'](_0x489920['getAttribute']('vid'),{'userId':_0x4a0140}):(_0x448b3b['set'](_0x489920['getAttribute']('vid_start'),{'userId':_0x4a0140}),_0x262a66(_0x448b3b,_0x489920,0x0,_0x489920['childCount']),_0x448b3b['set'](_0x489920['getAttribute']('vid_end'),{'userId':_0x4a0140}));}}(this['_touched'],_0x357b54,_0x1121df,_0x1121df+_0x5c652b['howMany']);}['_handleMergeOperation'](_0x22ab64){const _0x3242f4=null===(_0x22ab64=this['_cloneOperation'](_0x22ab64,this['_idsRoots']))['_authorId']?null:_0x22ab64['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b2b76=_0x22ab64['targetPosition']['parent'],_0xf3bced=_0x22ab64['sourcePosition']['parent'],_0xe29da=_0x4b2b76['getAttribute']('vid_end'),_0x5dc91f=_0xf3bced['getAttribute']('vid_start');_0x4b2b76['_setAttribute']('vid_end',_0xf3bced['getAttribute']('vid_end')),_0xf3bced['_setAttribute']('vid_end',_0xe29da),this['_touched']['set'](_0x5dc91f,{'userId':_0x3242f4}),this['_touched']['set'](_0xe29da,{'userId':_0x3242f4}),_0x22ab64['_execute']();}['_handleSplitOperation'](_0x47b02c){const _0xe41b8b=null===(_0x47b02c=this['_cloneOperation'](_0x47b02c,this['_idsRoots']))['_authorId']?null:_0x47b02c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x835605=_0x47b02c['graveyardPosition'],_0xb37020=_0x47b02c['splitPosition']['parent'];_0x47b02c['_execute']();const _0x533c2f=_0xb37020['getAttribute']('vid_end'),_0x370e26=_0x47b02c['insertionPosition']['nodeAfter'];if(_0x835605){const _0x11d466=_0x370e26['getAttribute']('vid_end'),_0x917354=_0xb37020['getAttribute']('vid_end');_0xb37020['_setAttribute']('vid_end',_0x11d466),_0x370e26['_setAttribute']('vid_end',_0x917354),this['_touched']['set'](_0xb37020['getAttribute']('vid_end'),{'userId':_0xe41b8b}),this['_touched']['set'](_0x370e26['getAttribute']('vid_start'),{'userId':_0xe41b8b});}else{const _0x47e95e=this['_revisionId']++,_0x5d344e=this['_revisionId']++;_0xb37020['_setAttribute']('vid_end',_0x47e95e),_0x370e26['_setAttribute']('vid_start',_0x5d344e),_0x370e26['_setAttribute']('vid_end',_0x533c2f),this['_touched']['set'](_0x47e95e,{'userId':_0xe41b8b}),this['_touched']['set'](_0x5d344e,{'userId':_0xe41b8b});}}['_handleMarkerOperation'](_0x572b78){if(!_0x572b78['affectsData'])return;const _0x44c57e=(_0x572b78=this['_cloneOperation'](_0x572b78,this['_diffRoots']))['oldRange']?_0x572b78['oldRange']['root']:null,_0x5b0112=_0x572b78['newRange']?_0x572b78['newRange']['root']:null;_0x44c57e&&this['_markers']['delete'](_0x572b78['name']),_0x5b0112&&this['_markers']['set'](_0x572b78['name'],_0x572b78['newRange']['clone']());const _0x2d77b7=null===_0x572b78['_authorId']?null:_0x572b78['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4036f5=_0x572b78['name'];if(!this['_touchedMarkers']['has'](_0x4036f5))return void this['_touchedMarkers']['set'](_0x4036f5,{'range':_0x572b78['oldRange'],'userId':_0x2d77b7});const _0x5be9af=this['_touchedMarkers']['get'](_0x4036f5),_0x2f888f=_0x5be9af['range'],_0x521261=_0x572b78['newRange'];null==_0x2f888f&&null==_0x521261||_0x2f888f&&_0x521261&&_0x2f888f['isEqual'](_0x521261)?this['_touchedMarkers']['delete'](_0x572b78['name']):_0x5be9af['userId']=_0x2d77b7;}['_handleRootOperation'](_0x269734,_0x53f141){this['_diffRoots']['has'](_0x269734['rootName'])?this['_diffRoots']['get'](_0x269734['rootName'])['_isAttached']=_0x269734['isAdd']:(this['_diffRoots']['set'](_0x269734['rootName'],N(_0x269734['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x269734['rootName'],{}),_0x53f141&&this['_idsRoots']['set'](_0x269734['rootName'],N(_0x269734['rootName'],!0x0)));const _0x113223=null===_0x269734['_authorId']?null:_0x269734['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x267698=this['_touchedRoots']['get'](_0x269734['rootName']);_0x267698&&_0x267698['userId']===_0x113223?this['_touchedRoots']['delete'](_0x269734['rootName']):this['_touchedRoots']['set'](_0x269734['rootName'],{'userId':_0x113223,'isAttached':_0x269734['isAdd']});}['_handleRootAttributeOperation'](_0x4bcbf8){const _0x1dc0ff=this['_diffRootsAttributes']['get'](_0x4bcbf8['root']['rootName']);null===_0x4bcbf8['newValue']?delete _0x1dc0ff[_0x4bcbf8['key']]:_0x1dc0ff[_0x4bcbf8['key']]=_0x4bcbf8['newValue'];}}function x(_0x653f0b){const _0x527f52=N(_0x653f0b['rootName'],_0x653f0b['isAttached']());for(const _0x2716e8 of _0x653f0b['getChildren']()){const _0x48ace7=_0x2716e8['_clone'](!0x0);_0x527f52['_appendChild'](_0x48ace7);}return _0x527f52;}function N(_0x15a45b,_0x4298e7=!0x0){const _0x1d76d9=new _0x22a6a4();return _0x1d76d9['rootName']=_0x15a45b,_0x1d76d9['_isAttached']=_0x4298e7,_0x1d76d9['isAttached']=()=>_0x1d76d9['_isAttached'],_0x1d76d9;}function P(_0x18b933,_0x1d0e2f,_0xe016b2){const _0x959cc4='elementEnd'==_0x18b933['type']?_0xe016b2['createPositionAt'](_0x18b933['item'],'end'):_0xe016b2['createPositionBefore'](_0x18b933['item']);return _0xe016b2['createPositionFromPath'](_0x1d0e2f,_0x959cc4['path'],_0x959cc4['stickiness']);}function V(_0x3b495b,_0x56978e,_0x38ace5){const _0x49396f='elementStart'==_0x3b495b['type']?_0x38ace5['createPositionAt'](_0x3b495b['item'],0x0):_0x38ace5['createPositionAfter'](_0x3b495b['item']);return _0x38ace5['createPositionFromPath'](_0x56978e,_0x49396f['path'],_0x49396f['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
- _0x4c7e4b(_0x3aefbb){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3f0625,_0x1cde0b){super(_0x3f0625),this['focusTracker']=new _0x4e3524(),this['keystrokes']=new _0x223386(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1cde0b),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x5e3dab({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x9ee8e2=_0x365f58=>_0x365f58['stopPropagation']();this['keystrokes']['set']('arrowright',_0x9ee8e2),this['keystrokes']['set']('arrowleft',_0x9ee8e2),this['keystrokes']['set']('arrowup',_0x9ee8e2),this['keystrokes']['set']('arrowdown',_0x9ee8e2);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x217c54){this['revisionNameInputView']['fieldView']['element']['value']=_0x217c54['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2932f7){const _0x5daf4f=new et(this['locale'],ti),_0x11a2c5=_0x5daf4f['fieldView'];_0x11a2c5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x29c895=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2932f7&&(_0x29c895+='\x20('+R(this['locale'],'optional')+')'),(_0x5daf4f['label']=_0x29c895,_0x11a2c5['on']('input',()=>{this['revisionNameInputValue']=_0x11a2c5['element']['value']['trim']();}),_0x5daf4f);}}class v extends _0x3cc8d8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0xb07069=this['editor'],_0x54ff68=_0xb07069['plugins']['get']('RevisionTracker');_0xb07069['ui']['componentFactory']['add']('revisionHistory',_0x30d5e3=>{const _0x454e75=_0x27dd0c(_0x30d5e3),_0x4c91f9=_0x454e75['panelView']['children'],_0x14c013=new _0x3715d0(_0x30d5e3),_0x3039ca=new _0x2a6b9e(_0x30d5e3),_0xcd5c6f=new _0x458543(_0x30d5e3),_0x1e586d=new _0x2a6b9e(_0x30d5e3),_0xc67cdb=new _0x458543(_0x30d5e3);return _0x454e75['bind']('isEnabled')['to'](_0x54ff68,'isReady',_0x54ff68,'isEnabled',_0xb07069,'isReadOnly',(_0x5bf826,_0x538d29,_0x1ec465)=>_0x5bf826&&_0x538d29&&!_0x1ec465),_0x454e75['buttonView']['set']({'icon':_0x2ce5eb,'label':R(_0x30d5e3,'Revision\x20history'),'tooltip':!0x0}),_0xcd5c6f['set']({'label':R(_0x30d5e3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xcd5c6f['bind']('isEnabled')['to'](_0x54ff68,'isReady',_0x54ff68,'isEnabled',_0xb07069,'isReadOnly',(_0x1edef2,_0x1f119d,_0x2d1131)=>_0x1edef2&&_0x1f119d&&!_0x2d1131),_0xcd5c6f['on']('execute',()=>this['_showDialog']()),_0xc67cdb['set']({'label':R(_0x30d5e3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xc67cdb['bind']('isEnabled')['to'](_0x54ff68,'isReady',_0xb07069,'isReadOnly',(_0x40e847,_0xb21656)=>_0x40e847&&!_0xb21656),_0xc67cdb['on']('execute',()=>{_0xb07069['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x454e75['isOpen']=!0x1,_0xb07069['editing']['view']['focus']();}),_0x3039ca['children']['add'](_0xcd5c6f),_0x1e586d['children']['add'](_0xc67cdb),_0x14c013['role']='menu',_0x14c013['items']['addMany']([_0x3039ca,_0x1e586d]),_0x4c91f9['add'](_0x14c013),_0x454e75;}),_0xb07069['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x17ebf3=this['editor'],_0x3aa51a=_0x17ebf3['locale'],_0x288f75=new _0x25e575(_0x3aa51a),_0x641080=new _0x1d16d7(_0x3aa51a);_0x288f75['buttonView']['set']({'icon':_0x2ce5eb,'label':R(_0x3aa51a,'Revision\x20history')});const _0x5b8a1f=new _0x55dbea(_0x3aa51a,_0x288f75),_0xe9447=new _0x55e301(_0x3aa51a);_0xe9447['set']({'label':R(_0x3aa51a,'Save\x20current\x20revision')}),_0xe9447['delegate']('execute')['to'](_0x288f75),_0xe9447['on']('execute',()=>{this['_showDialog']();}),_0x5b8a1f['children']['add'](_0xe9447),_0x641080['items']['add'](_0x5b8a1f);const _0x448724=new _0x55dbea(_0x3aa51a,_0x288f75),_0x24e2b5=new _0x55e301(_0x3aa51a);return _0x24e2b5['set']({'label':R(_0x3aa51a,'Open\x20revision\x20history')}),_0x24e2b5['delegate']('execute')['to'](_0x288f75),_0x24e2b5['on']('execute',()=>{_0x17ebf3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x448724['children']['add'](_0x24e2b5),_0x641080['items']['add'](_0x448724),_0x288f75['panelView']['children']['add'](_0x641080),_0x288f75;}['_showDialog'](){const _0x13f82f=this['editor'],_0xb2a86f=_0x13f82f['locale'],_0x37c047=_0x13f82f['plugins']['get']('Dialog'),_0x4ee384=_0x13f82f['plugins']['get']('RevisionTracker');function _0x5a755a(_0x5a7e82){_0x13f82f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5a7e82['revisionName']?_0x5a7e82['revisionNameInputView']['errorText']=R(_0xb2a86f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x13f82f['plugins']['get'](h)['saveRevision']({'name':_0x5a7e82['revisionName']}),_0x37c047['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5a755a(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x37c047['show']({'id':'revisionSave','title':R(_0xb2a86f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x13f82f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x37c047['hide']()},{'label':R(_0x13f82f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x419772){_0x419772['bind']('isEnabled')['to'](_0x4ee384,'isReady',_0x4ee384,'isEnabled',_0x13f82f,'isReadOnly',(_0x102ac7,_0xe22080,_0x2eae79)=>_0x102ac7&&_0xe22080&&!_0x2eae79);},'onExecute':()=>_0x5a755a(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1c8c4a=this['editor'],_0x11cada=_0x1c8c4a['locale'];this['_saveRevisionFormView']=new me(_0x11cada,_0x1c8c4a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x3aefbb{['changeId'];['_model'];constructor(_0x24f3ba,_0x1d639a){super(_0x24f3ba),this['_model']=_0x1d639a,this['changeId']=_0x1d639a['id'];const _0x49136e=this['bindTemplate'],_0x1eb962=R(_0x24f3ba,_0x1d639a['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1d639a['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1d639a['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x49136e['to']('type',_0x52b64f=>'ck-revision-change__'+_0x52b64f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1eb962}]},{'text':'\x20'+_0x1d639a['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
- _0x2af6a4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4c567a){super(),this['id']=_0x4c567a['id']||_0x370f6e(),this['author']=_0x4c567a['author'],this['type']=_0x4c567a['type'],this['data']=_0x4c567a['data']||{},this['rootName']=_0x4c567a['rootName'],this['set']('createdAt',_0x4c567a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1a1f4c,_0x3695db){this['newRevisionId']=_0x1a1f4c,this['oldRevisionId']=_0x3695db,this['changes']=new _0x14698c();}['_setChanges'](_0x157ae9){for(const _0x495d87 of _0x157ae9)this['changes']['add'](_0x495d87);}}class l extends _0x3cc8d8{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5b1ee3,_0x50a837,S,$];}constructor(_0x5cbb84){super(_0x5cbb84),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x3f6738,_0x34d47d,_0xaa793c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x55f304=>{for(const _0x548c95 of this['editor']['editing']['view']['document']['roots'])_0xaa793c?_0x55f304['removeClass']('ck-editor__editable__overlay',_0x548c95):_0x55f304['addClass']('ck-editor__editable__overlay',_0x548c95);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x28e015=>null!==_0x28e015),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x13305c,_0x9a1008,_0x3542bf)=>_0x13305c&&_0x3542bf?_0x9a1008['changes']['getIndex'](_0x3542bf):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1dc804,_0x48936b)=>_0x1dc804?_0x48936b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x50a837);}['init'](){const _0xf0f35e=this['editor'],_0x5121ed=new rt(_0xf0f35e,{'direction':'backward'}),_0x11786d=new rt(_0xf0f35e,{'direction':'forward'});(_0xf0f35e['commands']['add']('showPreviousChange',_0x5121ed),_0xf0f35e['commands']['add']('showNextChange',_0x11786d),_0xf0f35e['commands']['add']('restoreRevision',new nt(_0xf0f35e)),this['on']('change:numberOfChanges',()=>{_0x5121ed['refresh'](),_0x11786d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xf0f35e['enableReadOnlyMode']('revision-viewer'),_0xf0f35e['plugins']['has']('WidgetToolbarRepository'))&&_0xf0f35e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3b450b){return await this['_utils']['loadRevisionData'](_0x3b450b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b450b);}async['getRevisionRootsAttributes'](_0x3aeca1){return await this['_utils']['loadRevisionData'](_0x3aeca1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3aeca1);}async['compare'](_0x5d2891,_0x2aad2c,_0x1b6263=!0x1){if(!this['isEnabled'])return;const _0x3b49dd=this['diff'],_0x27877b=this['repository'],_0x3daba9='string'==typeof _0x5d2891?_0x27877b['getRevision'](_0x5d2891):_0x5d2891,_0x96ee21='string'==typeof _0x2aad2c?_0x27877b['getRevision'](_0x2aad2c):_0x2aad2c,_0xc6564c=_0x3daba9['id'],_0x5145ff=_0x96ee21?_0x96ee21['id']:null;if(!_0x1b6263&&this['diff']&&this['diff']['newRevisionId']===_0xc6564c&&this['diff']['oldRevisionId']===_0x5145ff)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xc6564c,_0x5145ff);const _0x1382e9=this['_getRevisionsRange'](_0x3daba9,_0x96ee21,!0x0)['map'](_0x8c24ca=>this['_utils']['loadRevisionData'](_0x8c24ca,this['adapter']));return _0x1382e9['push'](new Promise(_0xcf2770=>{setTimeout(_0xcf2770,0x14);})),Promise['all'](_0x1382e9)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x83ff25=this['_getDiff'](_0xc6564c,_0x5145ff);for(const _0x42dca2 of _0x83ff25['changes'])this['_changeIdToChange']['set'](_0x42dca2['id'],_0x42dca2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x394be7=>{for(const _0x477d27 of this['editor']['model']['document']['getRootNames']())_0x394be7['detachRoot'](_0x477d27);for(const _0x12c7e3 of Object['keys'](_0x83ff25['model'])){const _0x576758=_0x394be7['addRoot'](_0x12c7e3);for(const _0x35e930 of Object['keys'](_0x83ff25['attributes'][_0x12c7e3]))_0x394be7['setAttribute'](_0x35e930,_0x83ff25['attributes'][_0x12c7e3][_0x35e930],_0x576758);_0x394be7['insert'](_0x83ff25['model'][_0x12c7e3],_0x576758,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x83ff25['changes'])),this['isReady']=!0x0;})['catch'](_0x126bac=>{console['error'](_0x126bac),this['_cleanUp'](),_0x3b49dd&&(this['diff']=_0x3b49dd),this['isReady']=!0x0;});}['addRevisionData'](_0x55b3e5,_0x4315c9){const _0x59ab48=this['repository']['createRevision'](_0x55b3e5);return _0x59ab48['on']('_update',(_0x9aeca2,_0x3a6b60,_0x569044)=>_0x4315c9(_0x3a6b60,_0x569044,_0x59ab48)),this['repository']['addRevision'](_0x59ab48),_0x59ab48;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x349446=>{for(const _0x281f65 of this['editor']['model']['document']['getRootNames']())_0x349446['detachRoot'](_0x281f65);});}['_sortAndFilterDiffChanges'](_0x3fdfb5){const _0x5048a4=[],_0x2f5072=new Map();for(const _0x38df4c of this['editor']['model']['document']['getRootNames']()){const _0x28fe89=this['editor']['editing']['view']['getDomRoot'](_0x38df4c);if(!_0x28fe89)continue;const _0xf7d1c5=_0x28fe89['getClientRects']()['item'](0x0);_0xf7d1c5&&(_0x5048a4['push'](_0x38df4c),_0x2f5072['set'](_0x38df4c,_0xf7d1c5));}return _0x5048a4['sort']((_0x3bf92a,_0x43d311)=>{const _0x273f8c=_0x2f5072['get'](_0x3bf92a),_0x340003=_0x2f5072['get'](_0x43d311);return _0x273f8c['y']-_0x340003['y']||_0x273f8c['x']-_0x340003['x'];}),(_0x3fdfb5=_0x3fdfb5['filter'](_0x5a41cf=>_0x5048a4['includes'](_0x5a41cf['rootName'])))['sort']((_0xb0afb6,_0x2fd373)=>_0x5048a4['indexOf'](_0xb0afb6['rootName'])-_0x5048a4['indexOf'](_0x2fd373['rootName'])),_0x3fdfb5;}['_makeTape'](_0x46774e){const _0x400b68=Array['from'](_0x46774e['markers'])['filter'](([_0x1b827f,_0x5061ab])=>_0x1b827f['startsWith']('revision:')&&!_0x5061ab['isCollapsed']),_0x462a1a=Array['from'](this['editor']['model']['createRangeIn'](_0x46774e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x400b68['length'])for(const _0x18c77a of _0x462a1a){const [_0x5c7c48,_0xf6c401]=_0x400b68[0x0],[,_0x3e4903,_0x207152]=_0x5c7c48['split'](':');if(_0xf6c401['end']['isEqual'](_0x18c77a['nextPosition'])&&_0x400b68['shift'](),(_0x18c77a['previousPosition']['isEqual'](_0xf6c401['start'])||_0x18c77a['previousPosition']['isAfter'](_0xf6c401['start']))&&('insertion'==_0x3e4903?_0x18c77a['isAdded']={'userId':_0x207152}:'deletion'==_0x3e4903&&(_0x18c77a['isRemoved']={'userId':_0x207152})),0x0==_0x400b68['length'])break;}return _0x462a1a;}['_refreshStartEndIndex'](_0x597809){const _0x5ea26b=new Map();for(let _0x52ef37=0x0;_0x52ef37<_0x597809['length'];_0x52ef37++)'text'===_0x597809[_0x52ef37]['type']?(_0x597809[_0x52ef37]['item']['startIndex']=_0x52ef37,_0x597809[_0x52ef37]['item']['endIndex']=_0x52ef37):('elementStart'===_0x597809[_0x52ef37]['type']?_0x597809[_0x52ef37]['item']['startIndex']=_0x52ef37:'elementEnd'===_0x597809[_0x52ef37]['type']&&(_0x597809[_0x52ef37]['item']['endIndex']=_0x52ef37),_0x5ea26b['set'](_0x597809[_0x52ef37]['id'],_0x52ef37));for(const _0x340640 of _0x5ea26b['values']())'elementStart'===_0x597809[_0x340640]['type']?_0x597809[_0x340640]['item']['endIndex']=_0x5ea26b['get'](_0x597809[_0x340640]['pairId']):'elementEnd'===_0x597809[_0x340640]['type']&&(_0x597809[_0x340640]['item']['startIndex']=_0x5ea26b['get'](_0x597809[_0x340640]['pairId']));}['_processTape'](_0x5c81c8){for(let _0x5d04e9=0x0;_0x5d04e9<_0x5c81c8['length'];_0x5d04e9++){if('elementStart'===_0x5c81c8[_0x5d04e9]['type'])_0x5c81c8[_0x5d04e9]['item']['startIndex']=_0x5d04e9;else{if('elementEnd'===_0x5c81c8[_0x5d04e9]['type']){_0x5c81c8[_0x5d04e9]['item']['endIndex']=_0x5d04e9;const _0x5a1348=_0x5c81c8[_0x5d04e9]['item']['startIndex'];_0x5c81c8[_0x5a1348]['pairId']=_0x5c81c8[_0x5d04e9]['id'],_0x5c81c8[_0x5d04e9]['pairId']=_0x5c81c8[_0x5a1348]['id'];}else _0x5c81c8[_0x5d04e9]['item']['startIndex']=_0x5d04e9,_0x5c81c8[_0x5d04e9]['item']['endIndex']=_0x5d04e9,_0x5c81c8[_0x5d04e9]['pairId']=null;}_0x5c81c8[_0x5d04e9]['markersStart']||(_0x5c81c8[_0x5d04e9]['markersStart']=[],_0x5c81c8[_0x5d04e9]['markersEnd']=[]);}}['_markInsertions'](_0xe1ff41,_0x34173f){const _0x41d527=_0xe1ff41['filter'](_0x4b1302=>!_0x4b1302['isAdded']);for(let _0x40c602=0x0;_0x40c602<_0x34173f['length'];_0x40c602++)_0x34173f[_0x40c602]['isAdded']&&(_0x41d527[_0x40c602]['isAdded']=_0x34173f[_0x40c602]['isAdded']);}['_getDiff'](_0x288216,_0x28b61b=null){const _0x21f922=this['repository']['getRevision'](_0x288216),_0x593d10=_0x28b61b?this['repository']['getRevision'](_0x28b61b):null,_0x485022=this['_getRevisionsRange'](_0x21f922,_0x593d10),_0x23626f=_0x485022[_0x485022['length']-0x1],_0xfad6a8=new Map(),_0x1d53ac={'model':{},'attributes':{},'changes':[]},_0x1dde99=new Set(),_0x208fe5=new Map();for(let _0x3f3ffe=_0x485022['length']-0x1;_0x3f3ffe>=0x0;_0x3f3ffe--){const _0xc68052=_0x485022[_0x3f3ffe];for(const _0x1e15aa of Object['keys'](_0xc68052['diffData']))if(_0xc68052['diffData'][_0x1e15aa]['attachChange']){const _0x217bef=_0xc68052['diffData'][_0x1e15aa]['attachChange'];_0x217bef['isAttached']?(_0x1dde99['add'](_0x1e15aa),_0x208fe5['has'](_0x1e15aa)&&_0x208fe5['get'](_0x1e15aa)['userId']==_0x217bef['userId']?_0x208fe5['delete'](_0x1e15aa):_0x208fe5['set'](_0x1e15aa,_0x217bef)):_0x208fe5['has'](_0x1e15aa)?(_0x1dde99['delete'](_0x1e15aa),_0x208fe5['delete'](_0x1e15aa)):(_0x1dde99['add'](_0x1e15aa),_0x208fe5['set'](_0x1e15aa,_0x217bef));}else _0x1dde99['add'](_0x1e15aa);}for(const _0x24c14a of _0x1dde99){const _0x52a24b=_0x208fe5['has'](_0x24c14a)&&!_0x208fe5['get'](_0x24c14a)['isAttached'];let _0x8f193e=_0x52a24b?_0x485022['length']-0x1:0x0;const _0x1a3ffd=_0x52a24b?-0x1:0x1;for(;_0x485022[_0x8f193e];){const _0x2df37e=_0x485022[_0x8f193e];if(_0x2df37e['diffData'][_0x24c14a]){const _0xb7a181=_0x52a24b?_0x2df37e['diffData'][_0x24c14a]['attributesBefore']:_0x2df37e['diffData'][_0x24c14a]['attributesAfter'];_0x1d53ac['attributes'][_0x24c14a]=_0xb7a181?_0x51beb1(_0xb7a181):{};break;}_0x8f193e+=_0x1a3ffd;}}for(const _0x2b358f of _0x485022){_0x2b358f['model']={};for(const _0x4c3aed of _0x2b358f['authors'])_0xfad6a8['set'](_0x4c3aed['id'],_0x4c3aed);for(const _0x1a6219 of _0x1dde99){const _0x5e8778=_0x2b358f['diffData'][_0x1a6219]?_0x2b358f['diffData'][_0x1a6219]['insertions']:'[]',_0x154713=_0x2b358f['diffData'][_0x1a6219]?_0x2b358f['diffData'][_0x1a6219]['deletions']:'[]';_0x2b358f['model'][_0x1a6219]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5e8778),'deletions':this['_utils']['_makeModelFromViewString'](_0x154713)};}}for(const _0x4a2cf3 of _0x1dde99){let _0x10cfcc=null,_0x434317=0x0;const _0x158031=new Map(Array['from'](_0x21f922['model'][_0x4a2cf3]['insertions']['markers'])['filter'](([_0x11e109])=>!_0x11e109['startsWith']('revision:')));let _0x42ba28=0x0;for(const _0x4deca8 of _0x485022){const _0x6d8f4b=this['_makeTape'](_0x4deca8['model'][_0x4a2cf3]['insertions']);_0x4deca8==_0x21f922?(_0x10cfcc=_0x6d8f4b,_0x434317=_0x10cfcc['length'],_0x10cfcc['forEach'](_0x3a0df4=>{_0x3a0df4['id']=_0x42ba28++;}),this['_processTape'](_0x10cfcc)):this['_markInsertions'](_0x10cfcc,_0x6d8f4b);const _0x1c0f97=_0x10cfcc['filter'](_0x1af381=>!_0x1af381['isAdded'])['map'](_0x41f3e9=>_0x41f3e9['id']);let _0xdfb424=0x0;const _0x1f212b=this['_makeTape'](_0x4deca8['model'][_0x4a2cf3]['deletions']);_0x1f212b['forEach'](_0x5cd198=>{_0x5cd198['isRemoved']?_0x5cd198['id']=_0x434317++:_0x5cd198['id']=_0x1c0f97[_0xdfb424++];}),this['_processTape'](_0x1f212b),this['_setDistance'](_0x10cfcc,'isAdded'),this['_setDistance'](_0x1f212b,'isRemoved'),_0x4deca8==_0x21f922&&this['_markMarkers'](_0x10cfcc,_0x158031),_0x10cfcc=this['_joinTapes'](_0x10cfcc,_0x1f212b),this['_refreshStartEndIndex'](_0x10cfcc),this['_setDistance'](_0x10cfcc,'isRemoved');}_0x10cfcc=_0x10cfcc['filter'](_0x4e2651=>!(_0x4e2651['isAdded']&&_0x4e2651['isRemoved']));const _0x303863=new Map(_0x23626f['model'][_0x4a2cf3]['deletions']['markers']),_0x33f0d3=new Set(_0x158031['keys']());for(const _0x5d3ed5 of _0x303863['keys']())_0x33f0d3['delete'](_0x5d3ed5);this['_markSuggestions'](_0x10cfcc,_0x33f0d3),this['_fixObsoleteTags'](_0x10cfcc),_0x10cfcc=this['_removeMissingPairs'](_0x10cfcc),_0x10cfcc=this['_markMismatchedRemovedTags'](_0x10cfcc),_0x10cfcc=this['_removeUnsupportedChanges'](_0x10cfcc);const {root:_0x3a9eca,changes:_0x512f46}=this['_makeModelFromTape'](_0x10cfcc,_0xfad6a8,_0x4a2cf3);_0x1d53ac['model'][_0x4a2cf3]=_0x3a9eca;const _0x35dc2=_0x208fe5['get'](_0x4a2cf3);if(_0x35dc2){const _0x4e122a=_0xfad6a8['get'](_0x35dc2['userId']),_0x2f22cf=new G({'author':_0x4e122a,'type':_0x35dc2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4a2cf3});_0x512f46['unshift'](_0x2f22cf),_0x1d53ac['attributes'][_0x4a2cf3]['revisionHistoryAttachChange']=_0x2f22cf['id'];}_0x1d53ac['changes']=_0x1d53ac['changes']['concat'](_0x512f46);}return _0x1d53ac;}['_markMarkers'](_0x36ef8f,_0x2e8cd8){for(let _0x1ea21f=0x0;_0x1ea21f<_0x36ef8f['length'];_0x1ea21f++)for(const [_0x206244,_0x86c69f]of _0x2e8cd8)!_0x86c69f['isCollapsed']&&_0x86c69f['start']['isEqual'](_0x36ef8f[_0x1ea21f]['previousPosition'])&&_0x36ef8f[_0x1ea21f]['markersStart']['push'](_0x206244),_0x86c69f['end']['isEqual'](_0x36ef8f[_0x1ea21f]['nextPosition'])&&_0x36ef8f[_0x1ea21f]['markersEnd']['push'](_0x206244);}['_joinTapes'](_0x2fa636,_0x3e7b07){let _0x4052b0=[],_0x575c85=0x0,_0x5a287b=0x0;for(;_0x575c85<_0x2fa636['length']||_0x5a287b<_0x3e7b07['length'];){const _0x27dcb8=_0x2fa636[_0x575c85]||{},_0x3d0d46=_0x3e7b07[_0x5a287b]||{};if(_0x27dcb8['id']==_0x3d0d46['id'])_0x575c85++,_0x5a287b++,_0x4052b0['push'](_0x27dcb8);else{if(_0x3d0d46['isRemoved']&&_0x27dcb8['isAdded']){const {commonTape:_0xa4cf5c,iEnd:_0x3ef1ee,jEnd:_0x29f59b}=this['_threeWayMerge'](_0x2fa636,_0x575c85,_0x3e7b07,_0x5a287b);_0x4052b0=_0x4052b0['concat'](_0xa4cf5c),_0x575c85=_0x3ef1ee,_0x5a287b=_0x29f59b;}else _0x3d0d46['isRemoved']?(_0x5a287b++,_0x4052b0['push'](_0x3d0d46)):(_0x575c85++,_0x4052b0['push'](_0x27dcb8));}}return _0x4052b0;}['_markSuggestions'](_0x511d2f,_0x2e83a1){const _0xf9e6cb=[];for(let _0x4b98c7=0x0;_0x4b98c7<_0x511d2f['length'];_0x4b98c7++){for(let _0x1926d8=0x0;_0x1926d8<_0x511d2f[_0x4b98c7]['markersStart']['length'];_0x1926d8++){const _0x33f131=_0x511d2f[_0x4b98c7]['markersStart'][_0x1926d8];if(!_0x2e83a1['has'](_0x33f131))continue;const {group:_0x43cf1,type:_0x2d20c7,authorId:_0x5a2083}=_0x48b856(_0x33f131);'revision-suggestion'!=_0x43cf1||'insertion'!=_0x2d20c7&&'deletion'!=_0x2d20c7||(_0xf9e6cb['unshift']({'type':_0x2d20c7,'name':_0x33f131,'userId':_0x5a2083}),_0x511d2f[_0x4b98c7]['markersStart']['splice'](_0x1926d8,0x1),_0x1926d8--);}_0x1e2477(_0x511d2f[_0x4b98c7]);for(let _0x56492d=0x0;_0x56492d<_0x511d2f[_0x4b98c7]['markersEnd']['length'];_0x56492d++){const _0x19d39f=_0x511d2f[_0x4b98c7]['markersEnd'][_0x56492d];if(!_0x2e83a1['has'](_0x19d39f))continue;const {group:_0x2891a8,type:_0x5e797a}=_0x48b856(_0x19d39f);if('revision-suggestion'!=_0x2891a8||'insertion'!=_0x5e797a&&'deletion'!=_0x5e797a)continue;_0x511d2f[_0x4b98c7]['markersEnd']['splice'](_0x56492d,0x1),_0x56492d--;const _0x2a17aa=_0xf9e6cb['findIndex'](_0x1eb97c=>_0x1eb97c['name']==_0x19d39f);_0x2a17aa>-0x1&&_0xf9e6cb['splice'](_0x2a17aa,0x1);}}function _0x48b856(_0x41b1ac){const _0x2a4dad=_0x41b1ac['split'](':');return{'group':_0x2a4dad[0x0],'type':_0x2a4dad[0x1],'subType':_0x2a4dad['length']>=0x5?_0x2a4dad[0x2]:null,'id':_0x2a4dad['length']<0x5?_0x2a4dad[0x2]:_0x2a4dad[0x3],'authorId':_0x2a4dad['length']<0x5?_0x2a4dad[0x3]:_0x2a4dad[0x4],'markerCount':0x6==_0x2a4dad['length']?_0x2a4dad[0x5]:null};}function _0x1e2477(_0x199225){for(let _0x3991fe=0x0;_0x3991fe<_0xf9e6cb['length'];_0x3991fe++){if(_0x199225['isAdded']&&'insertion'==_0xf9e6cb[_0x3991fe]['type']&&_0x199225['isAdded']['userId']==_0xf9e6cb[_0x3991fe]['userId'])return _0x199225['isAddSuggestion']=_0xf9e6cb[_0x3991fe],void delete _0x199225['isAdded'];if(!_0x199225['isAdded']&&!_0x199225['isRemoved']&&'deletion'==_0xf9e6cb[_0x3991fe]['type'])return void(_0x199225['isRemoveSuggestion']=_0xf9e6cb[_0x3991fe]);}}}['_setDistance'](_0x46328a,_0x4084a1){let _0x566a34=0x0,_0x4841f3=!0x1;const _0x2ad614=new Map();for(const _0x3bf49a of _0x46328a)_0x3bf49a[_0x4084a1]?_0x4841f3&&(_0x566a34++,_0x4841f3=!0x1):(_0x566a34++,_0x4841f3=!0x0),_0x2ad614['set'](_0x3bf49a['id'],_0x566a34);for(let _0x2deeaf=0x0;_0x2deeaf<_0x46328a['length'];_0x2deeaf++){if('isRemoved'==_0x4084a1&&_0x46328a[_0x2deeaf]['isAdded']||'isAdded'==_0x4084a1&&_0x46328a[_0x2deeaf]['isRemoved'])continue;if('text'==_0x46328a[_0x2deeaf]['type']){_0x46328a[_0x2deeaf]['distance']=0x0;continue;}const _0x5a6f13=_0x2ad614['get'](_0x46328a[_0x2deeaf]['pairId']),_0x4af4e1=_0x2ad614['get'](_0x46328a[_0x2deeaf]['id']);_0x46328a[_0x2deeaf]['distance']=_0x5a6f13-_0x4af4e1;}}['_getRevisionsRange'](_0x1a2a07,_0x287ee3,_0x3593c2=!0x1){const _0x93f0ed=[];let _0x23bfe8=this['repository']['getIndex'](_0x1a2a07),_0x1f76e8=this['repository']['getIndex'](_0x287ee3);for(-0x1==_0x1f76e8&&(_0x1f76e8=this['repository']['_revisions']['length'],_0x3593c2=!0x1);_0x23bfe8<_0x1f76e8;)_0x93f0ed['push'](this['repository']['getRevision'](_0x23bfe8)),_0x23bfe8++;return _0x3593c2&&_0x93f0ed['push'](this['repository']['getRevision'](_0x23bfe8)),_0x93f0ed;}['_threeWayMerge'](_0x90d80f,_0x2fb54d,_0x4ac8b0,_0x24340d){const _0x528797=this['editor']['model']['schema'];let _0x1d31ac=_0x2fb54d;for(;_0x90d80f[_0x1d31ac]&&_0x90d80f[_0x1d31ac]['isAdded'];)_0x1d31ac++;let _0x296589=_0x24340d;for(;_0x4ac8b0[_0x296589]&&_0x4ac8b0[_0x296589]['isRemoved'];)_0x296589++;_0x2e76cd(_0x90d80f,_0x2fb54d,_0x1d31ac),_0x2e76cd(_0x4ac8b0,_0x24340d,_0x296589);const _0x1c224a=_0x4ac8b0['slice'](_0x24340d,_0x296589)['concat'](_0x90d80f['slice'](_0x2fb54d,_0x1d31ac));return _0x1c224a['sort']((_0x43f67c,_0x82eee7)=>_0x43f67c['side']!=_0x82eee7['side']?_0x43f67c['side']-_0x82eee7['side']:_0x43f67c['level']!=_0x82eee7['level']?_0x43f67c['level']-_0x82eee7['level']:_0x43f67c['distance']!=_0x82eee7['distance']?_0x82eee7['distance']-_0x43f67c['distance']:!!_0x43f67c['isAdded']!=!!_0x82eee7['isAdded']?-0x1==_0x43f67c['side']||0x0==_0x43f67c['side']?_0x43f67c['isAdded']?-0x1:0x1:_0x43f67c['isAdded']?0x1:-0x1:_0x43f67c['index']-_0x82eee7['index']),{'commonTape':_0x1c224a,'iEnd':_0x1d31ac,'jEnd':_0x296589};function _0x2e76cd(_0x31203f,_0x1139fa,_0x1ebfd1){let _0x42d621=-0x1,_0x440a38=Number['POSITIVE_INFINITY'],_0x5ab077=!0x0;for(let _0x587a36=_0x1139fa;_0x587a36<_0x1ebfd1;_0x587a36++)if(_0x528797['isInline'](_0x31203f[_0x587a36]['item'])||(_0x5ab077=!0x1),_0x31203f[_0x587a36]['item']['startIndex']<_0x1139fa&&(_0x42d621=_0x587a36),_0x31203f[_0x587a36]['item']['endIndex']>=_0x1ebfd1){_0x440a38=_0x587a36;break;}_0x5ab077&&(_0x42d621=_0x1ebfd1-0x1);for(let _0x157815=_0x1139fa;_0x157815<_0x1ebfd1;_0x157815++)_0x31203f[_0x157815]['side']=_0x157815<=_0x42d621?-0x1:_0x157815<_0x440a38?0x0:0x1,_0x31203f[_0x157815]['index']=_0x157815;let _0x210923=0x0;for(let _0x214779=_0x1139fa;_0x214779<=_0x42d621;_0x214779++)0x0==_0x31203f[_0x214779]['distance']?_0x31203f[_0x214779]['level']=_0x210923:(_0x210923++,_0x31203f[_0x214779]['level']=_0x210923,_0x210923++);for(let _0x1b0d20=_0x1139fa;_0x1b0d20<_0x1ebfd1;_0x1b0d20++)0x0==_0x31203f[_0x1b0d20]['side']&&(_0x31203f[_0x1b0d20]['level']=_0x210923);_0x210923=0x0;for(let _0x3433de=_0x1ebfd1-0x1;_0x3433de>=_0x440a38;_0x3433de--)0x0==_0x31203f[_0x3433de]['distance']?_0x31203f[_0x3433de]['level']=_0x210923:(_0x210923--,_0x31203f[_0x3433de]['level']=_0x210923,_0x210923--);}}['_fixObsoleteTags'](_0x2e5508){const _0x418fda=new Map(),_0x1c1ba6=this['editor']['model']['schema'];for(let _0x39bba5=0x1;_0x39bba5<_0x2e5508['length'];_0x39bba5++){let _0x4614b3,_0x700588,_0x4bd47f;const _0x2d3159=_0x2e5508[_0x39bba5],_0x170489=_0x2e5508[_0x39bba5-0x1];if('text'==_0x2d3159['type'])continue;if(_0x2d3159['type']!=_0x170489['type'])continue;if(!_0x1c1ba6['isBlock'](_0x170489['item'])||_0x1c1ba6['isLimit'](_0x170489['item']))continue;if(!_0x1c1ba6['isBlock'](_0x2d3159['item'])||_0x1c1ba6['isLimit'](_0x2d3159['item']))continue;if((_0x2e5508[_0x39bba5]['isAdded']||_0x2e5508[_0x39bba5]['isAddSuggestion'])&&_0x2e5508[_0x39bba5-0x1]['isRemoved'])_0x4614b3=_0x2e5508[_0x39bba5],_0x700588=_0x2e5508[_0x39bba5-0x1],_0x4bd47f=_0x39bba5-0x1;else{if(!_0x2e5508[_0x39bba5]['isRemoved']||!_0x2e5508[_0x39bba5-0x1]['isAdded']&&!_0x2e5508[_0x39bba5-0x1]['isAddSuggestion'])continue;_0x4614b3=_0x2e5508[_0x39bba5-0x1],_0x700588=_0x2e5508[_0x39bba5],_0x4bd47f=_0x39bba5;}const _0x185ead=_0x4614b3['level']==_0x700588['level'],_0x38a858=Math['abs'](_0x4614b3['level'])<Math['abs'](_0x700588['level'])&&0x0==_0x700588['distance'];(_0x185ead||_0x38a858)&&(_0x418fda['set'](_0x700588['id'],_0x4614b3['id']),_0x2e5508['splice'](_0x4bd47f,0x1),_0x39bba5--,_0x4614b3['isAdded']=!0x1);}for(let _0xcfcffa=0x0;_0xcfcffa<_0x2e5508['length'];_0xcfcffa++)_0x418fda['has'](_0x2e5508[_0xcfcffa]['pairId'])&&(_0x2e5508[_0xcfcffa]['pairId']=_0x418fda['get'](_0x2e5508[_0xcfcffa]['pairId']));}['_removeMissingPairs'](_0x2fa3c9){const _0x5656d4=new Set(_0x2fa3c9['map'](_0x329601=>_0x329601['id']));for(let _0x295601=0x0;_0x295601<_0x2fa3c9['length'];_0x295601++)_0x5656d4['has'](_0x2fa3c9[_0x295601]['pairId'])||0x0==_0x2fa3c9[_0x295601]['distance']||(_0x2fa3c9[_0x295601]['isIncorrect']=!0x0);return _0x2fa3c9['filter'](_0x132317=>!_0x132317['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5c1e8d){const _0x478a49=new Set();for(let _0x568a3c=0x0;_0x568a3c<_0x5c1e8d['length'];_0x568a3c++){if(_0x478a49['has'](_0x5c1e8d[_0x568a3c]['id'])&&_0x5c1e8d[_0x568a3c]['isRemoved']&&(_0x5c1e8d[_0x568a3c]['isIncorrect']=!0x0),_0x5c1e8d[_0x568a3c]['isIncorrect'])continue;if(0x0==_0x5c1e8d[_0x568a3c]['distance'])continue;if('elementStart'!=_0x5c1e8d[_0x568a3c]['type'])continue;if(null==_0x5c1e8d[_0x568a3c]['pairId'])continue;let _0x168e7c=_0x568a3c+0x1,_0x2d3abe=0x0;for(;_0x5c1e8d[_0x168e7c]['id']!=_0x5c1e8d[_0x568a3c]['pairId'];)'elementStart'==_0x5c1e8d[_0x168e7c]['type']?_0x2d3abe++:'elementEnd'==_0x5c1e8d[_0x168e7c]['type']&&_0x2d3abe--,_0x168e7c++;if(0x0!=_0x2d3abe){if(_0x5c1e8d[_0x568a3c]['isRemoved'])_0x5c1e8d[_0x568a3c]['isIncorrect']=!0x0;else{for(;_0x168e7c!=_0x568a3c;)_0x5c1e8d[_0x168e7c]['isRemoved']&&0x0!=_0x5c1e8d[_0x168e7c]['distance']&&(_0x5c1e8d[_0x168e7c]['isIncorrect']=!0x0,_0x478a49['add'](_0x5c1e8d[_0x168e7c]['pairId'])),_0x168e7c--;}}}return _0x5c1e8d['filter'](_0x54b365=>!_0x54b365['isIncorrect']);}['_removeUnsupportedChanges'](_0x29c30d){const _0x59bbd1=this['editor']['model']['schema'];for(let _0x53cffb=0x0;_0x53cffb<_0x29c30d['length'];_0x53cffb++){if(!(_0x29c30d[_0x53cffb]['isAdded']||_0x29c30d[_0x53cffb]['isAddSuggestion']||_0x29c30d[_0x53cffb]['isRemoved']||_0x29c30d[_0x53cffb]['isRemoveSuggestion']))continue;if(0x0==_0x29c30d[_0x53cffb]['distance'])continue;const _0x47b58f=_0x29c30d[_0x53cffb]['item'];_0x59bbd1['isBlock'](_0x47b58f)||_0x59bbd1['isLimit'](_0x47b58f)||(_0x29c30d[_0x53cffb]['isAdded']&&delete _0x29c30d[_0x53cffb]['isAdded'],_0x29c30d[_0x53cffb]['isAddSuggestion']&&delete _0x29c30d[_0x53cffb]['isAddSuggestion'],_0x29c30d[_0x53cffb]['isRemoveSuggestion']&&delete _0x29c30d[_0x53cffb]['isRemoveSuggestion'],_0x29c30d[_0x53cffb]['isRemoved']&&(_0x29c30d[_0x53cffb]['isIncorrect']=!0x0));}return _0x29c30d['filter'](_0x52c68a=>!_0x52c68a['isIncorrect']);}['_makeModelFromTape'](_0x2329bf,_0x13db57,_0x4a3110){const _0x22aba6=new _0x22a6a4(),_0x9e19db=[],_0x349d1e=new Map(),_0x40c9aa=this['editor']['model'],_0x459534=_0x40c9aa['schema'],_0x5279a7=[_0x22aba6],_0x4d2c42={},_0x3b35fd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5a413b=null;const _0x5512bf=[0x0];for(let _0x417205=0x0;_0x417205<_0x2329bf['length'];_0x417205++)if('elementStart'===_0x2329bf[_0x417205]['type']){_0x2329bf[_0x417205]['previousPosition']=_0x40c9aa['createPositionFromPath'](_0x22aba6,_0x5512bf);const _0x2cc15e=new _0x19a103(_0x2329bf[_0x417205]['item']['name'],_0x2329bf[_0x417205]['item']['getAttributes']());_0x5279a7[0x0]['_appendChild'](_0x2cc15e),_0x5512bf['push'](0x0),_0x5279a7['unshift'](_0x2cc15e),_0x2329bf[_0x417205]['nextPosition']=_0x40c9aa['createPositionFromPath'](_0x22aba6,_0x5512bf);}else'elementEnd'===_0x2329bf[_0x417205]['type']?(_0x5279a7['shift'](),_0x2329bf[_0x417205]['previousPosition']=_0x40c9aa['createPositionFromPath'](_0x22aba6,_0x5512bf),_0x5512bf['pop'](),_0x5512bf[_0x5512bf['length']-0x1]++,_0x2329bf[_0x417205]['nextPosition']=_0x40c9aa['createPositionFromPath'](_0x22aba6,_0x5512bf)):(_0x2329bf[_0x417205]['previousPosition']=_0x40c9aa['createPositionFromPath'](_0x22aba6,_0x5512bf),_0x5a413b?_0x5a413b['_data']+=_0x2329bf[_0x417205]['item']['data']:_0x5a413b=new _0x3b8071(_0x2329bf[_0x417205]['item']['data'],_0x2329bf[_0x417205]['item']['getAttributes']()),_0x2329bf[_0x417205+0x1]&&'text'===_0x2329bf[_0x417205+0x1]['type']&&_0x58139f(_0x5a413b,_0x2329bf[_0x417205+0x1]['item'])||(_0x5279a7[0x0]['_appendChild'](_0x5a413b),_0x5a413b=null),_0x5512bf[_0x5512bf['length']-0x1]+=_0x2329bf[_0x417205]['item']['offsetSize'],_0x2329bf[_0x417205]['nextPosition']=_0x40c9aa['createPositionFromPath'](_0x22aba6,_0x5512bf));for(let _0x2be804=0x0;_0x2be804<_0x2329bf['length'];_0x2be804++){const _0x5ef8c7=_0x2329bf[_0x2be804]['previousPosition'],_0x2a5c37=_0x2329bf[_0x2be804]['nextPosition'];for(const _0xdea90e of _0x2329bf[_0x2be804]['markersStart'])_0x349d1e['set'](_0xdea90e,{'start':_0x5ef8c7,'end':null});_0x3e4f9e('isRemoveSuggestion',_0x2be804,_0x5ef8c7,_0x2a5c37),_0x3e4f9e('isAddSuggestion',_0x2be804,_0x5ef8c7,_0x2a5c37),_0x3e4f9e('isRemoved',_0x2be804,_0x5ef8c7,_0x2a5c37),_0x3e4f9e('isAdded',_0x2be804,_0x5ef8c7,_0x2a5c37);for(const _0x234240 of _0x2329bf[_0x2be804]['markersEnd']){const _0x18ebc9=_0x349d1e['get'](_0x234240);_0x18ebc9?_0x18ebc9['end']=_0x2a5c37:_0x349d1e['set'](_0x234240,{'start':_0x2a5c37,'end':_0x2a5c37});}}for(const [_0x510f4f,_0x2c0325]of _0x349d1e){const _0x2f85fe=this['editor']['model']['createRange'](_0x2c0325['start'],_0x2c0325['end']);_0x22aba6['markers']['set'](_0x510f4f,_0x2f85fe);}return _0x9e19db['sort']((_0x48c89e,_0x5cf33d)=>{const _0x2b402a=_0x22aba6['markers']['get']('revision:'+_0x48c89e['id']),_0x3ef7f0=_0x22aba6['markers']['get']('revision:'+_0x5cf33d['id']);return _0x2b402a['start']['isBefore'](_0x3ef7f0['start'])?-0x1:_0x2b402a['start']['isAfter'](_0x3ef7f0['start'])?0x1:_0x2b402a['end']['isBefore'](_0x3ef7f0['end'])?-0x1:_0x2b402a['end']['isAfter'](_0x3ef7f0['end'])?0x1:'add'===_0x48c89e['type']?-0x1:0x1;}),{'root':_0x22aba6,'changes':_0x9e19db};function _0x3e4f9e(_0x112c76,_0x47ab95,_0x4c7e42,_0x41fedd){const _0x383ecc=!!_0x2329bf[_0x47ab95][_0x112c76],_0xbf4673=_0x383ecc?_0x2329bf[_0x47ab95][_0x112c76]['userId']:null,_0xe7a4e1=_0x47ab95===_0x2329bf['length']-0x1,_0x1be460=_0x3b35fd[_0x112c76][0x0],_0x4fd2a2=_0x459534['isObject'](_0x2329bf[_0x47ab95]['item']);!_0x4d2c42[_0x112c76]&&_0x383ecc?_0x4d2c42[_0x112c76]={'start':_0x4c7e42,'tapeItem':_0x2329bf[_0x47ab95],'userId':_0xbf4673,'type':_0x112c76}:_0x4d2c42[_0x112c76]&&!_0x383ecc?(_0x4d2c42[_0x112c76]['end']=_0x4c7e42,_0x4b8b68(_0x4d2c42[_0x112c76]),_0x4d2c42[_0x112c76]=null):_0x4d2c42[_0x112c76]&&_0x383ecc&&_0x4d2c42[_0x112c76]['userId']!==_0xbf4673&&(_0x4d2c42[_0x112c76]['end']=_0x4c7e42,_0x1be460&&_0x1be460['userId']===_0x4d2c42[_0x112c76]['userId']||_0x4b8b68(_0x4d2c42[_0x112c76]),_0x4d2c42[_0x112c76]={'start':_0x4c7e42,'tapeItem':_0x2329bf[_0x47ab95],'userId':_0xbf4673,'type':_0x112c76}),_0x4d2c42[_0x112c76]&&_0x4fd2a2&&('elementStart'!==_0x2329bf[_0x47ab95]['type']||_0x1be460&&_0x1be460['userId']===_0xbf4673||_0x3b35fd[_0x112c76]['unshift']({'userId':_0xbf4673,'object':_0x2329bf[_0x47ab95]['item'],'change':_0x4d2c42[_0x112c76]}),'elementEnd'===_0x2329bf[_0x47ab95]['type']&&_0x1be460&&_0x1be460['object']===_0x2329bf[_0x47ab95]['item']&&(_0x3b35fd[_0x112c76]['shift'](),_0x4d2c42[_0x112c76]=_0x1be460['change'])),_0x4d2c42[_0x112c76]&&_0xe7a4e1&&(_0x4d2c42[_0x112c76]['end']=_0x41fedd,_0x4b8b68(_0x4d2c42[_0x112c76]),_0x4d2c42[_0x112c76]=null);}function _0x4b8b68({start:_0x1b2ab0,end:_0x3d103b,tapeItem:_0x37ebb4,userId:_0x26c43a,type:_0x466600}){const _0x3b558d=_0x37ebb4['item'],_0x2f019b=_0x40c9aa['schema']['isBlock'](_0x3b558d)&&!_0x40c9aa['schema']['isLimit'](_0x3b558d),_0x3cec79=_0x1b2ab0['nodeAfter']==_0x3d103b['parent']&&_0x3d103b['isAtStart'];if(_0x2f019b&&_0x3cec79)return;const _0x35c3b1=_0x40c9aa['createRange'](_0x1b2ab0,_0x3d103b),_0x998530=_0x13db57['get'](_0x26c43a),_0x580b40=new G({'author':_0x998530,'type':'isAdded'==_0x466600||'isAddSuggestion'==_0x466600?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x466600||'isRemoveSuggestion'==_0x466600},'createdAt':new Date(),'rootName':_0x4a3110});_0x9e19db['push'](_0x580b40),_0x22aba6['markers']['set']('revision:'+_0x580b40['id'],_0x35c3b1);}function _0x58139f(_0x45aeb2,_0x3aba21){const _0x4ad1b8=_0x45aeb2['getAttributes'](),_0x8d2745=_0x3aba21['getAttributes']();for(const _0x19f714 of _0x4ad1b8){if(_0x19f714[0x1]!==_0x3aba21['getAttribute'](_0x19f714[0x0]))return!0x1;_0x8d2745['next']();}return _0x8d2745['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x324fbd=>{const _0x209298=_0x324fbd['markerName']['split'](':')[0x1],_0x517395=this['_getChangeFromId'](_0x209298);if(!_0x517395)return null;const _0x5d4e84='add'==_0x517395['type']?'insertion':'deletion',_0x22485d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5d4e84];return _0x517395['data']['isSuggestion']&&_0x22485d['push']('ck-suggestion-marker-'+_0x5d4e84+'-new'),this['activeChange']==_0x517395&&_0x22485d['push']('ck-suggestion-marker--active'),{'classes':_0x22485d,'attributes':{'data-change-id':_0x209298}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4be8eb=>{_0x4be8eb['on']('element:pre',(_0x3b53f6,_0x3ac2a4,_0x2fd0dd)=>{const _0x4f6c26=_0x3ac2a4['viewItem']['getChild'](0x0);if(!_0x4f6c26||!_0x4f6c26['is']('element','code'))return;if(!_0x2fd0dd['consumable']['consume'](_0x4f6c26,{'attributes':['vid_start','vid_end']}))return;const _0x1ae719=_0x3ac2a4['modelRange']['start']['nodeAfter'];_0x2fd0dd['writer']['setAttribute']('vid_start',_0x4f6c26['getAttribute']('vid_start'),_0x1ae719),_0x2fd0dd['writer']['setAttribute']('vid_end',_0x4f6c26['getAttribute']('vid_end'),_0x1ae719);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x23a47c=>{_0x23a47c['on']('element',(_0x2c7d68,_0x403e71,_0x5f4346)=>{if(!_0x5f4346['consumable']['consume'](_0x403e71['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x403e71['modelRange']['isCollapsed'])return;const _0xc41b77=_0x403e71['modelRange']['start']['nodeAfter'];_0xc41b77['hasAttribute']('vid_start')||_0xc41b77['hasAttribute']('vid')||(_0x5f4346['writer']['setAttribute']('vid_start',_0x403e71['viewItem']['getAttribute']('vid_start'),_0xc41b77),_0x5f4346['writer']['setAttribute']('vid_end',_0x403e71['viewItem']['getAttribute']('vid_end'),_0xc41b77));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x59dd52=>_0x59dd52['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1ebfbb,[,_0x36c223])=>{['vid_start','vid_end','vid']['includes'](_0x36c223)&&(_0x1ebfbb['return']=!0x0,_0x1ebfbb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1b6d72=>{_0x1b6d72['on']('attribute:vid',(_0x518fe4,_0x341a26,_0x58f2c6)=>{if('\x20'!=_0x341a26['item']['data']||_0x341a26['item']['parent']['maxOffset']>0x1)return;if(!_0x58f2c6['consumable']['consume'](_0x341a26['item'],_0x518fe4['name']))return;const _0x5bd54d=_0x58f2c6['writer'],_0x2b8f5c=_0x58f2c6['mapper']['toViewRange'](_0x341a26['range']);_0x5bd54d['wrap'](_0x2b8f5c,_0x5bd54d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1bacd6){const _0x5da5fb=_0x1bacd6['plugins']['get']('RevisionViewer');return(_0x38143a,_0x38fc40,_0x5bdbda)=>{const _0x275dc4=_0x38fc40['markerName']['split'](':')[0x1],_0x4bbaa8=_0x5da5fb['_getChangeFromId'](_0x275dc4);if(!_0x4bbaa8)return null;const _0x248f56='add'==_0x4bbaa8['type']?'split':'merge';if(!_0x5bdbda['consumable']['test'](_0x38fc40['markerRange'],_0x38143a['name']))return;const _0x3cb93c=_0x38fc40['markerRange']['getWalker'](),_0x25ed27=_0x38fc40['markerRange']['start'],_0x36d661=_0x1bacd6['model']['schema'];let _0x3fef6e=null,_0x59d39a=null,_0x475557=!0x1,_0x2b71e6=!0x1;for(const _0x4e6c1a of _0x3cb93c){const _0x473b23=_0x4e6c1a['item'];_0x475557=_0x475557||_0x36d661['isContent'](_0x473b23);const _0x219a30=_0x5bdbda['mapper']['toViewElement'](_0x473b23);if(_0x219a30&&_0x219a30['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e6c1a['type']&&(_0x36d661['isBlock'](_0x473b23)&&!_0x36d661['isLimit'](_0x473b23)&&(_0x473b23['nextSibling']||_0x25ed27['isAtEnd']?_0x3fef6e&&_0x3fef6e['parent']==_0x473b23||(_0x3fef6e=_0x473b23,_0x14a1ed(_0x4e6c1a['previousPosition']),_0x2b71e6=!0x0):_0x59d39a=_0x59d39a||_0x4e6c1a['previousPosition']));}function _0x14a1ed(_0x162598){const _0x214d98=_0x5bdbda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x248f56}),_0x24eb5d=_0x5bdbda['mapper']['toViewPosition'](_0x162598);_0x4bbaa8['data']['isSuggestion']&&_0x5bdbda['writer']['addClass']('ck-suggestion-marker-'+_0x248f56+'-new',_0x214d98),_0x5da5fb['activeChange']==_0x4bbaa8&&_0x5bdbda['writer']['addClass']('ck-suggestion-marker--active',_0x214d98),_0x5bdbda['writer']['insert'](_0x24eb5d,_0x214d98),_0x5bdbda['mapper']['bindElementToMarker'](_0x214d98,_0x38fc40['markerName']);}_0x475557||_0x2b71e6||!_0x59d39a||_0x14a1ed(_0x59d39a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x58c049,_0x49518c,_0x4dd4ff)=>{const _0x3e5dbe=_0x4dd4ff['mapper']['markerNameToElements'](_0x49518c['markerName']);if(_0x3e5dbe){for(const _0xdcafd of _0x3e5dbe)(_0xdcafd['hasClass']('ck-suggestion-marker-split')||_0xdcafd['hasClass']('ck-suggestion-marker-merge'))&&(_0x4dd4ff['mapper']['unbindElementFromMarkerName'](_0xdcafd,_0x49518c['markerName']),_0x4dd4ff['writer']['remove'](_0xdcafd));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2fc240,_0x5a2dee,_0xf631e8)=>{const _0xcbaff1=_0x5a2dee['markerName']['split'](':')[0x1],_0x3d093b=this['_getChangeFromId'](_0xcbaff1);if(!_0x3d093b)return null;const _0x31fbdf='add'==_0x3d093b['type']?'split':'merge';if(_0xf631e8['consumable']['test'](_0x5a2dee['markerRange'],_0x2fc240['name']))for(const _0xecb637 of _0x5a2dee['markerRange']['getItems']()){if(!_0xecb637['is']('element','softBreak'))continue;const _0x1e0550=_0xf631e8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31fbdf}),_0x26d024=_0xf631e8['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xecb637));_0x3d093b['data']['isSuggestion']&&_0xf631e8['writer']['addClass']('ck-suggestion-marker-'+_0x31fbdf+'-new',_0x1e0550),this['activeChange']==_0x3d093b&&_0xf631e8['writer']['addClass']('ck-suggestion-marker--active',_0x1e0550),_0xf631e8['writer']['insert'](_0x26d024,_0x1e0550),_0xf631e8['mapper']['bindElementToMarker'](_0x1e0550,_0x5a2dee['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x470f8f=>{for(const _0x3cf455 of this['editor']['model']['document']['getRootNames']()){const _0x98bfb=this['editor']['model']['document']['getRoot'](_0x3cf455),_0x5c65cb=this['editor']['editing']['view']['document']['getRoot'](_0x3cf455);if(_0x5c65cb){const _0x5c52f9=_0x98bfb['getAttribute']('revisionHistoryAttachChange');if(_0x470f8f['removeAttribute']('data-change-id',_0x5c65cb),_0x470f8f['removeClass']('ck-revision-history-root-add',_0x5c65cb),_0x470f8f['removeClass']('ck-revision-history-root-remove',_0x5c65cb),_0x470f8f['removeClass']('ck-revision-history-root--active',_0x5c65cb),_0x5c52f9){const _0xba0ae4=this['_getChangeFromId'](_0x5c52f9);if(!_0xba0ae4)return null;_0x470f8f['setAttribute']('data-change-id',_0x5c52f9,_0x5c65cb),_0x470f8f['addClass']('ck-revision-history-root-'+_0xba0ae4['type'],_0x5c65cb),this['activeChange']==_0xba0ae4&&_0x470f8f['addClass']('ck-revision-history-root--active',_0x5c65cb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2f3b7c=>'revision-comment:'+_0x2f3b7c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x159926=>'revision-suggestion:'+_0x159926,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3ecb6a=>({'name':'suggestion:'+_0x3ecb6a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x21518f=>{const _0x3f0150=_0x21518f['markerName']['split'](':')[0x1];return'insertion'!=_0x3f0150&&'deletion'!=_0x3f0150?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3f0150]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a57ff,_0x2b71a9,_0x3bf37f)=>{const _0x523742=_0x3bf37f['mapper']['markerNameToElements'](_0x2b71a9['markerName']);if(_0x523742){for(const _0x1444f7 of _0x523742)_0x1444f7['is']('uiElement')&&(_0x3bf37f['mapper']['unbindElementFromMarkerName'](_0x1444f7,_0x2b71a9['markerName']),_0x3bf37f['writer']['remove'](_0x1444f7));}},{'priority':'high'});}['_getChangeFromId'](_0x15a69a){return this['_changeIdToChange']['get'](_0x15a69a);}['_getViewForChange'](_0x3f8690){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3f8690),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x205713,_0x274d73,_0x5957f3,_0x24726e)=>{_0x24726e&&this['_balloon']['remove'](_0x24726e),_0x5957f3&&(this['_balloon']['add']({'view':_0x5957f3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5aa94c=this['editor']['editing'],_0x259b8a=this['_getChangeFromId'](_0x5957f3['changeId']);let _0xbf57aa;if(_0x259b8a['data']['isOnRoot']){const _0xa5f326=_0x5aa94c['view']['getDomRoot'](_0x259b8a['rootName']);_0xbf57aa=Array['from'](_0xa5f326['getClientRects']());}else{const _0x4a963c=this['editor']['model']['markers']['get']('revision:'+_0x5957f3['changeId']);_0xbf57aa=Array['from'](_0x5aa94c['mapper']['markerNameToElements'](_0x4a963c['name']))['map'](_0x5935fb=>_0x5aa94c['view']['domConverter']['mapViewToDom'](_0x5935fb))['map'](_0x2bd86a=>Array['from'](_0x2bd86a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xbf57aa[0x0];return _0xbf57aa['find'](_0x1ed520=>_0x1ed520['top']-0x3<=this['_activeViewTarget']['y']&&_0x1ed520['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1ed520['left']-0x3<=this['_activeViewTarget']['x']&&_0x1ed520['right']+0x3>=this['_activeViewTarget']['x'])||_0xbf57aa[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x99009,_0x40fa4b,_0x2336a4,_0x50d542)=>{this['activeView']=_0x2336a4?this['_getViewForChange'](_0x2336a4):null,this['editor']['model']['change'](()=>{const _0x48b08f=this['editor']['editing'];_0x50d542&&(_0x50d542['data']['isOnRoot']?_0x48b08f['view']['change'](_0x2a1159=>{_0x2a1159['removeClass']('ck-revision-history-root--active',_0x48b08f['view']['document']['getRoot'](_0x50d542['rootName']));}):_0x48b08f['reconvertMarker']('revision:'+_0x50d542['id'])),_0x2336a4&&(_0x2336a4['data']['isOnRoot']?_0x48b08f['view']['change'](_0x384eb4=>{_0x384eb4['addClass']('ck-revision-history-root--active',_0x48b08f['view']['document']['getRoot'](_0x2336a4['rootName']));}):_0x48b08f['reconvertMarker']('revision:'+_0x2336a4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x205c15,_0x536f3b)=>{if(this['activeChange'])return;const _0x402942=this['_findChangeIdFromDomTarget'](_0x536f3b['target']),_0x947b67=this['_changeIdToChange']['get'](_0x402942);_0x947b67?(this['_activeViewTarget']={'x':_0x536f3b['domEvent']['x'],'y':_0x536f3b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x947b67)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x330d17,_0x533145)=>{const _0x285479=this['_findChangeIdFromDomTarget'](_0x533145['target']),_0x412e05=this['_changeIdToChange']['get'](_0x285479);_0x412e05?(this['_activeViewTarget']={'x':_0x533145['domEvent']['x'],'y':_0x533145['domEvent']['y']},_0x412e05===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x412e05):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x58fb64){do{const _0x4ce755=_0x58fb64['getAttribute']('data-change-id');if(_0x4ce755)return _0x4ce755;_0x58fb64=_0x58fb64['parent'];}while(_0x58fb64);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xfb0a90=>{for(const _0x3c1956 of this['editor']['model']['markers'])_0xfb0a90['removeMarker'](_0x3c1956);});}}function Q(_0x290c86,_0x131f2a){return(_0x1692b3,_0x3dcb46,_0x4efe46)=>{if(!_0x4efe46['consumable']['test'](_0x3dcb46['markerRange'],_0x1692b3['name']))return;const _0x1868d7=_0x3dcb46['markerRange']['getWalker'](),_0x3273a6=_0x3dcb46['markerRange']['start'],_0x4b25e4=_0x290c86['model']['schema'];let _0x1f5502=null,_0x414359=null,_0x361a81=!0x1,_0x44bf09=!0x1;for(const _0x325d11 of _0x1868d7){const _0x516f32=_0x325d11['item'];_0x361a81=_0x361a81||_0x4b25e4['isContent'](_0x516f32);const _0x41b2ea=_0x4efe46['mapper']['toViewElement'](_0x516f32);if(_0x41b2ea&&_0x41b2ea['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x325d11['type']&&(_0x4b25e4['isBlock'](_0x516f32)&&!_0x4b25e4['isLimit'](_0x516f32)&&(_0x516f32['nextSibling']||_0x3273a6['isAtEnd']?_0x1f5502&&_0x1f5502['parent']==_0x516f32||(_0x1f5502=_0x516f32,_0x273e4c(_0x325d11['previousPosition']),_0x44bf09=!0x0):_0x414359=_0x414359||_0x325d11['previousPosition']));}function _0x273e4c(_0x363e05){const _0x22c2bd=_0x4efe46['mapper']['toViewPosition'](_0x363e05),_0x5d0448=_0x4efe46['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x131f2a});_0x4efe46['writer']['insert'](_0x22c2bd,_0x5d0448),_0x4efe46['mapper']['bindElementToMarker'](_0x5d0448,_0x3dcb46['markerName']);}_0x361a81||_0x44bf09||!_0x414359||_0x273e4c(_0x414359);};}class nt extends _0x475e67{constructor(_0x538ead){super(_0x538ead);const _0x563f4b=_0x538ead['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x563f4b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x563f4b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x44c200=this['editor'],_0x1b776d=_0x44c200['plugins']['get'](l),_0x2b1673=_0x1b776d['isReady']?_0x1b776d['diff']['newRevisionId']:null;_0x44c200['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2b1673);}['refresh'](){const {isReady:_0x46d47c,isEnabled:_0x526e90,repository:_0x5fab2d,diff:_0x53771f}=this['editor']['plugins']['get'](l),_0x2b0f7d=_0x53771f&&_0x5fab2d['getLaterVisibleRevision'](_0x53771f['newRevisionId']);this['isEnabled']=_0x46d47c&&_0x526e90&&Boolean(_0x2b0f7d);}}class rt extends _0x475e67{['_step'];constructor(_0x3f8e31,{direction:_0x4babca}){super(_0x3f8e31);const _0x474569=_0x3f8e31['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x4babca?0x1:-0x1,this['listenTo'](_0x474569,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x474569,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x474569,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1f0cb7=this['editor'],_0x29e82e=_0x1f0cb7['plugins']['get'](l),{isNavigationMode:_0x226d92,currentChangeNumber:_0x13417e}=_0x29e82e;let _0x4a8844;if(_0x29e82e['activeChange']=_0x226d92?_0x29e82e['diff']['changes']['get'](_0x13417e+this['_step']):_0x29e82e['diff']['changes']['first'],_0x29e82e['activeChange']['data']['isOnRoot'])_0x4a8844=_0x1f0cb7['editing']['view']['getDomRoot'](_0x29e82e['activeChange']['rootName']);else{const _0xa1812c=_0x1f0cb7['model']['markers']['get']('revision:'+_0x29e82e['activeChange']['id']);_0x4a8844=_0x3a83c9(_0x1f0cb7['editing'],_0xa1812c);}_0xbff3ab({'target':_0x4a8844,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x113d63,currentChangeNumber:_0x119776,numberOfChanges:_0x3996b2,isReady:_0x198cd5,isEnabled:_0x3c216f}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3c216f&&_0x198cd5&&_0x3996b2)&&(!_0x113d63||(0x1===this['_step']?_0x119776<_0x3996b2-0x1:_0x119776>0x0));}}class vi extends _0x3aefbb{constructor(_0x444816){super(_0x444816);const _0x4bb66d=this['bindTemplate'],_0x33cdf4=new _0x458543(_0x444816),_0x2a4984=new _0x458543(_0x444816);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',(_0x483af8,_0x5d59fe)=>_0x483af8&&_0x5d59fe>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x32ae8d,_0xb398ef,_0x475802,_0x2fd772)=>{if(!_0x32ae8d)return R(_0x444816,'Loading...');if(!_0x475802)return R(_0x444816,'No\x20changes');const _0x8afa1c=R(_0x444816,'NUMBER_OF_CHANGES',_0x475802);return _0x2fd772?R(_0x444816,'X_OF_Y_CHANGES',[_0xb398ef+0x1,_0x475802]):_0x8afa1c;}),_0x33cdf4['set']({'label':R(_0x444816,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x31a6a8}),_0x2a4984['set']({'label':R(_0x444816,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x59abf8}),_0x33cdf4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2a4984['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x33cdf4['on']('execute',()=>this['fire']('execute','backward')),_0x2a4984['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',_0x4bb66d['if']('_isStatusLabelVisible','ck-hidden',_0x7fb997=>!_0x7fb997)]},'children':[{'text':_0x4bb66d['to']('isNavigationMode',_0x110695=>_0x110695?R(_0x444816,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x444816,'Total')+':\x20')}]},{'text':_0x4bb66d['to']('_statusText')}]},new _0x5c9cfb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x33cdf4,_0x2a4984]}]});}}const oe='ck-editor__editable__loading-overlay';class wi extends _0x3cc8d8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x350216=this['editor']['editing']['view'];_0x350216['change'](_0x326639=>{for(const _0xd90752 of _0x350216['document']['roots'])_0x326639['addClass'](oe,_0xd90752);});}['hide'](){const _0x1c74e3=this['editor']['editing']['view'];_0x1c74e3['change'](_0x2c0d56=>{for(const _0x132224 of _0x1c74e3['document']['roots'])_0x2c0d56['removeClass'](oe,_0x132224);});}}class u extends _0x3cc8d8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,wi];}['init'](){const _0x4a3ecc=this['editor'],_0x1c4aa4=_0x4a3ecc['plugins']['get'](l),_0x14325c=_0x4a3ecc['plugins']['get'](wi);_0x4a3ecc['ui']['componentFactory']['add']('exitToEditing',_0x2df1c0=>{const _0x138ee6=new _0x458543(_0x2df1c0);return _0x138ee6['set']({'label':R(_0x2df1c0,'Back\x20to\x20editing'),'icon':_0x42ff5e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x138ee6,'execute',()=>{_0x4a3ecc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x138ee6;}),_0x4a3ecc['ui']['componentFactory']['add']('restoreRevision',_0x455936=>{const _0x24c77a=new _0x458543(_0x455936);return _0x24c77a['set']({'label':R(_0x455936,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x24c77a['bind']('isEnabled')['to'](_0x4a3ecc['commands']['get']('restoreRevision')),this['listenTo'](_0x24c77a,'execute',()=>_0x4a3ecc['execute']('restoreRevision')),_0x24c77a;}),_0x4a3ecc['ui']['componentFactory']['add']('changesNavigation',_0x303cb8=>{const _0x14ab61=new vi(_0x303cb8),_0x4c2af5=_0x4a3ecc['commands']['get']('showPreviousChange'),_0x574216=_0x4a3ecc['commands']['get']('showNextChange');return _0x14ab61['bind']('isBackwardNavigationEnabled')['to'](_0x4c2af5,'isEnabled'),_0x14ab61['bind']('isForwardNavigationEnabled')['to'](_0x574216,'isEnabled'),_0x14ab61['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1c4aa4),this['listenTo'](_0x14ab61,'execute',(_0x58ab02,_0x43bc38)=>{_0x4a3ecc['execute']('forward'===_0x43bc38?'showNextChange':'showPreviousChange');}),_0x14ab61;}),_0x14325c['show'](),_0x1c4aa4['on']('change:isReady',(_0x4d602c,_0x40f44d,_0x30d631)=>{_0x30d631?_0x14325c['hide']():_0x14325c['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x171899,_0x15c73f){super(_0x171899,_0x15c73f);const _0x22bc61=this['bindTemplate'];this['set']({'label':R(_0x171899,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x171899,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x22bc61['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2627ea=this['fieldView']['element'];this['_tooltipString']=_0x2627ea['scrollWidth']>_0x2627ea['clientWidth']&&_0x2627ea['value']||'';}}class ni extends _0x3aefbb{constructor(_0x57f014,_0x4ea450,_0x58ccf4){super(_0x57f014);const _0x1b0190=new _0x28cd6b();_0x1b0190['set']({'content':_0x422bb7,'viewBox':'0\x200\x2011\x2010'});const _0x5a461b=['ck','ck-revision-history-sidebar__revision-author'];_0x58ccf4&&_0x5a461b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4524b8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x57f014,_0x58ccf4?'Revision\x20creator':'Revision\x20author')},'children':[_0x1b0190,_0x4ea450['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5a461b},'children':_0x4524b8});}}function ci(_0x1e1017,_0x141e10){const _0x455636=_0x1e1017['bindTemplate'],_0x432264=_0x1e1017['locale'],_0x543a1d=_0x27dd0c(_0x432264);_0x543a1d['panelPosition']='sw';const _0x3dac85=function(_0x53f70e,_0x432e94){const _0x306778=function(_0x4b4ce6,_0x5d528b){const _0x339aa2=_0x4b4ce6['locale'],_0x33e919={'Compare\x20against\x20selected':R(_0x339aa2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x339aa2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x339aa2,'Restore\x20this\x20revision')};return _0x5d528b['map'](_0x38a27c=>{const _0x1e3cca=_0x33e919[_0x38a27c['name']];return _0x1e3cca&&_0x1e3cca!==_0x38a27c['name']&&(_0x38a27c['name']=_0x1e3cca),_0x38a27c;});}(_0x53f70e,_0x432e94),_0x5986de=new _0x14698c();for(const _0x1cd2cb of _0x306778){const _0x247ee9={'type':'button','model':new to({'label':_0x1cd2cb['name'],'class':_0x1cd2cb['class'],'withText':!0x0,'role':'menuitem','_action':_0x1cd2cb['action']})};_0x247ee9['model']['bind']('isEnabled')['to'](_0x53f70e,'isActionsDropdownOpen',_0x5e3667=>'function'!=typeof _0x1cd2cb['isEnabled']||(!_0x5e3667||_0x1cd2cb['isEnabled'](_0x53f70e))),_0x5986de['add'](_0x247ee9);}return _0x5986de;}(_0x1e1017,_0x141e10);return _0x1e1017['bind']('isActionsDropdownOpen')['to'](_0x543a1d,'isOpen'),_0x543a1d['buttonView']['set']({'label':R(_0x432264,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x59fb43}),_0x543a1d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x455636['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x455636['to'](_0x4191f3=>_0x4191f3['stopPropagation']())}}),_0x543a1d['on']('execute',_0x418ac3=>{_0x1e1017['isReady']&&'function'==typeof _0x418ac3['source']['_action']&&_0x418ac3['source']['_action'](_0x1e1017);}),_0x29e27e(_0x543a1d,_0x3dac85,{'role':'menu'}),_0x543a1d['listenTo'](_0x1e1017,'change:isActionsDropdownOpen',(_0x5f31c7,_0x295fe4,_0x9eb384)=>{if(_0x9eb384)for(const _0x4322c5 of _0x543a1d['listView']['items']){const _0x182a6a=_0x4322c5['children']['first'],_0x262f6d=_0x141e10['find'](_0x29a649=>_0x29a649['action']===_0x182a6a['_action'])['isVisible'];_0x4322c5['isVisible']=void 0x0===_0x262f6d||_0x262f6d(_0x1e1017);}}),_0x543a1d;}class _i extends/* #__PURE__ -- @preserve */
27
- _0xb87c50(_0x3aefbb){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3462f8,_0x5e609d,_0x580aa2,_0x141f55){super(_0x3462f8);const _0x32df31=this['bindTemplate'],_0x326658=function(_0xf972fd,_0x38eba0){const _0x1fac5e=Array['from'](_0x38eba0['authors'])['filter'](_0x2ef0f1=>_0x2ef0f1!=_0x38eba0['creator']);return _0x38eba0['creator']&&_0x1fac5e['unshift'](_0x38eba0['creator']),_0x1fac5e['map'](_0x3ef8c3=>new ni(_0xf972fd,_0x3ef8c3,_0x3ef8c3==_0x38eba0['creator']));}(_0x3462f8,_0x5e609d);this['id']=_0x5e609d['id'],this['_revision']=_0x5e609d,this['_requireRevisionName']=_0x141f55,this['bind']('name','createdAt')['to'](_0x5e609d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3f269b=>{return _0x1f28f6=_0x3462f8['uiLanguage'],(_0x475d25=_0x3f269b)['toLocaleDateString'](_0x1f28f6,{'month':'long','day':'numeric'})+',\x20'+_0x475d25['toLocaleTimeString'](_0x1f28f6,{'hour':'numeric','minute':'numeric'});var _0x1f28f6,_0x475d25;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x3462f8,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3ac6fd=>_0x3ac6fd||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1f7968,_0x535091)=>_0x1f7968&&_0x535091),this['revisionActionsView']=_0x580aa2&&_0x580aa2['length']?ci(this,_0x580aa2):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x32df31['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x32df31['if']('isEnabled','ck-disabled',_0x1142f8=>!_0x1142f8),_0x32df31['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x32df31['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x32df31['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':_0x32df31['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':_0x326658}]},this['revisionActionsView']],'on':{'click':_0x32df31['to'](_0x5883c0=>{_0x5883c0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1885a9=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1885a9,'change',()=>{this['_requireRevisionName']&&!_0x1885a9['value']||this['fire']('setName',{'id':this['id'],'name':_0x1885a9['value']}),_0x1885a9['value']||(_0x1885a9['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0xa9c2aa,_0x3ee21f){const _0x4a4035=_0x39bd96['fromJSDate'](_0xa9c2aa)['setLocale'](_0x3ee21f),_0x415104=_0x39bd96['local'](),_0x3e88ea=_0x415104['minus']({'days':0x1})['startOf']('day');let _0x43c943,_0x57d9e8;return _0x4a4035['hasSame'](_0x415104,'day')?(_0x43c943=_0x4a4035['startOf']('day')['toJSDate'](),_0x57d9e8=_0x4a4035['toRelativeCalendar']()):_0x4a4035['hasSame'](_0x3e88ea,'day')?(_0x43c943=_0x3e88ea['toJSDate'](),_0x57d9e8=_0x4a4035['toRelativeCalendar']()):_0x4a4035['hasSame'](_0x415104,'week')?(_0x43c943=_0x4a4035['startOf']('week')['toJSDate'](),_0x57d9e8=_0x4a4035['weekdayLong']||''):_0x4a4035['hasSame'](_0x415104,'year')?(_0x43c943=_0x4a4035['startOf']('month')['toJSDate'](),_0x57d9e8=_0x4a4035['monthLong']||''):(_0x43c943=_0x4a4035['startOf']('year')['toJSDate'](),_0x57d9e8=String(_0x4a4035['year'])),{'startDate':_0x43c943,'localizedPeriodName':_0x57d9e8};}class ji extends _0x3aefbb{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3818d2,_0xd90665,_0x413692,_0x1fce8b){super(_0x3818d2);const _0x1df839=bi(_0xd90665,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xd90665,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x413692,this['_requireRevisionName']=_0x1fce8b,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':_0x1df839}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1acaeb){const _0x3472d8=new _i(this['locale'],_0x1acaeb,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3472d8);}['removeRevision'](_0x3b455d){const _0x47d961=this['revisionViews']['find'](_0x3dcb22=>_0x3dcb22['id']===_0x3b455d['id']);this['revisionViews']['remove'](_0x47d961);}}class Si extends _0x3aefbb{constructor(_0x81551d){super(_0x81551d);const _0x5a03a0=new _0x28cd6b();_0x5a03a0['content']=_0x2ce5eb,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5a03a0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x81551d,'Revision\x20history')]}]});}}class Ri extends _0x3aefbb{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x514cdf,_0x516c30,_0x1c24f5,_0x4dec1f){super(_0x514cdf);const _0x50544=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x516c30,this['_revisionActions']=_0x1c24f5,this['_requireRevisionName']=_0x4dec1f,this['on']('select',(_0x19aabf,_0x5321e7)=>{this['fire']('revisionSelected',_0x5321e7);}),this['on']('setName',(_0xc47f81,_0x5bd538)=>{this['fire']('revisionSetName',_0x5bd538);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Si(_0x514cdf),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x50544['if']('isEnabled','ck-disabled',_0x381f60=>!_0x381f60)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xde050b of this['_revisions'])this['_addRevision'](_0xde050b);this['_revisions']['on']('add',(_0x161423,_0x36ff7b)=>{this['_addRevision'](_0x36ff7b);}),this['_revisions']['on']('remove',(_0x30d04d,_0xc12659)=>{this['_removeRevision'](_0xc12659);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1114a9=>_0x1114a9['revisionViews']['map'](_0x2c580c=>_0x2c580c))['flat']();}['selectRevision'](_0xda05e3){for(const _0x14d461 of this['revisionViews'])_0xda05e3&&_0xda05e3['id']===_0x14d461['id']?_0x14d461['select']():_0x14d461['deselect']();}['highlightRevisions'](_0x57ab12){for(const _0x45c84d of this['revisionViews'])_0x57ab12['some'](({id:_0xf01cdd})=>_0xf01cdd===_0x45c84d['id'])?_0x45c84d['highlight']():_0x45c84d['unhighlight']();}['_addRevision'](_0x34b785){const _0x498206=bi(_0x34b785['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36c477=this['timePeriodViews']['get'](0x0);_0x36c477&&_0x36c477['startDate']['getTime']()===_0x498206['getTime']()||(_0x36c477=new ji(this['locale'],_0x498206,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36c477)),_0x36c477['addRevision'](_0x34b785);}['_removeRevision'](_0x276e82){const _0x13d8b8=bi(_0x276e82['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x13d8b8)['removeRevision'](_0x276e82);}['_getTimePeriodViewByStartDate'](_0x2d27f3){return this['timePeriodViews']['find'](_0xe4dbec=>_0xe4dbec['startDate']['getTime']()===_0x2d27f3['getTime']());}}class f extends _0x3cc8d8{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x287c71,uid as _0x5ef564,Collection as _0x29dd17,logWarning as _0x13f5c7,FocusTracker as _0x59de6d,KeystrokeHandler as _0x44f42e,scrollViewportToShowTarget as _0x20461a,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x38f5a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3efe9f,set as _0xfaae99,unset as _0x1289fb,isEqual as _0x1f2838}from'es-toolkit/compat';import{Plugin as _0x509aae,PendingActions as _0x3ee766,Command as _0xfd458d,ElementApiMixin as _0x1bc375,Editor as _0x3146a8}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4478cb,getMarkerDomElement as _0x669bcf,ConfirmMixin as _0x54514f,sanitizeEditorConfig as _0x571ec7}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5f42f3,ViewAttributeElement as _0x575954,ViewEmptyElement as _0x1f78c1,ViewRawElement as _0x35fc61,ViewUIElement as _0x2f5b5c,ViewDocumentFragment as _0x573b8b,ViewText as _0x1c7c37,ViewElement as _0x45aa71,ModelElement as _0x26dd35,ModelRange as _0x17ba4e,ModelPosition as _0x3f473d,ModelDocumentFragment as _0x187e7a,ModelText as _0x43ad21}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0xf22200,IconChevronUp as _0x9e82f6,IconChevronDown as _0xc0dfe3,IconUndo as _0x2c1de5,IconUser as _0x5e4d67,IconThreeVerticalDots as _0x5a9097}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x4d336e,View as _0x59d538,submitHandler as _0x2c6473,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0xdbd6ae,ListView as _0x4d4131,ListItemView as _0x36873e,ButtonView as _0x5874dc,MenuBarMenuView as _0xce0bba,MenuBarMenuListView as _0x433936,MenuBarMenuListItemView as _0x47cd1d,MenuBarMenuListItemButtonView as _0xad25de,ContextualBalloon as _0x48932b,ToolbarSeparatorView as _0x2b8726,IconView as _0x3c5ebd,addListToDropdown as _0x315abf,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x173c14,StickyPanelView as _0x56d54b,ToolbarView as _0x5d123f,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5c5dfc}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
+ _0x287c71(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2f658f){super(),this['id']=_0x2f658f['id']||_0x5ef564(),this['creator']=_0x2f658f['creator']||null,this['authors']=_0x2f658f['authors']||[],this['diffData']=_0x2f658f['diffData']||null,this['toVersion']=_0x2f658f['toVersion']||0x0,this['fromVersion']=_0x2f658f['fromVersion']||0x0,this['set']('name',_0x2f658f['name']||''),this['set']('createdAt',_0x2f658f['createdAt']||new Date()),this['set']('attributes',_0x2f658f['attributes']||{});}['setName'](_0xc15446){this['_update']({'name':_0xc15446});}['setAttribute'](_0x5dc255,_0x26174f){const _0x1b6447=_0x3efe9f(this['attributes']);_0xfaae99(_0x1b6447,_0x5dc255,_0x26174f),this['_update']({'attributes':_0x1b6447});}['removeAttribute'](_0x350fd2){const _0x17d37b=_0x3efe9f(this['attributes']);_0x1289fb(_0x17d37b,_0x350fd2),this['_update']({'attributes':_0x17d37b});}['_update'](_0x360b12,_0x1a5e38=!0x1){let _0x4627e1=!0x1;const _0x5770bd={'id':this['id']},_0x15f68f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x73824b of _0x15f68f){const _0x1235b2=_0x360b12[_0x73824b];void 0x0!==_0x1235b2&&_0x1235b2!==this[_0x73824b]&&(this[_0x73824b]=_0x1235b2,_0x5770bd[_0x73824b]=_0x1235b2,_0x4627e1=!0x0);}_0x4627e1&&(_0x5770bd['authors']&&(_0x5770bd['authorsIds']=_0x5770bd['authors']['map'](_0x335588=>_0x335588['id']),delete _0x5770bd['authors']),this['fire']('_update',_0x5770bd,_0x1a5e38));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x105cd9=>_0x105cd9['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x509aae{['_revisions'];static get['requires'](){return[_0x4478cb];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4970ef){super(_0x4970ef),this['_revisions']=new _0x29dd17();}['afterInit'](){!async function(_0x29a5c4){const _0x4d81a8=_0x444a0c([0x6e,0x4e,0x66,0x68,0x76,0x79,0x35,0x33,0x55,0x77,0x36,0x49,0x4a,0x34,0x71,0x31,0x4d,0x6a,0x37,0x39,0x54,0x30,0x50,0x61,0x44,0x41,0x63,0x67,0x53,0x56,0x38,0x6d,0x74,0x7a,0x45,0x6b,0x42,0x59,0x69,0x75,0x48,0x73,0x62,0x4c,0x57,0x32,0x5a,0x4b,0x43,0x47,0x65,0x70,0x6f,0x6c,0x72,0x64,0x52,0x51,0x78,0x4f,0x58,0x46]),_0x2a7901=0xeb829,_0x417571=0xb81e723,_0x50c1c5=0xb86970b^_0x417571,_0x1517df=window[_0x444a0c([0x44,0x61,0x74,0x65])][_0x444a0c([0x6e,0x6f,0x77])](),_0x182e80=_0x29a5c4[_0x444a0c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c9a76=new window[(_0x444a0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x151f84=>{_0x182e80[_0x444a0c([0x6f,0x6e,0x63,0x65])](_0x444a0c([0x72,0x65,0x61,0x64,0x79]),_0x151f84);}),_0x3f8ae4={[_0x444a0c([0x6b,0x74,0x79])]:_0x444a0c([0x45,0x43]),[_0x444a0c([0x75,0x73,0x65])]:_0x444a0c([0x73,0x69,0x67]),[_0x444a0c([0x63,0x72,0x76])]:_0x444a0c([0x50,0x2d,0x32,0x35,0x36]),[_0x444a0c([0x78])]:_0x444a0c([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]),[_0x444a0c([0x79])]:_0x444a0c([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]),[_0x444a0c([0x61,0x6c,0x67])]:_0x444a0c([0x45,0x53,0x32,0x35,0x36])},_0x4d3134=_0x182e80[_0x444a0c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x444a0c([0x67,0x65,0x74])](_0x444a0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2584ba(){let _0x27e73e,_0x4f1a85=null,_0x1043d8=null;try{if(_0x4d3134==_0x444a0c([0x47,0x50,0x4c]))return _0x444a0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27e73e=_0x2501c7(),!_0x27e73e)return _0x444a0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27e73e[_0x444a0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1043d8=_0x5c4127(_0x27e73e[_0x444a0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27e73e[_0x444a0c([0x6a,0x74,0x69])])),await _0x2291b5()?_0x5ac31e()?_0x8711e1()?_0x444a0c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b9a5e()?(_0x27e73e[_0x444a0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x444a0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f1a85=_0x5456b5(_0x444a0c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27e73e[_0x444a0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x444a0c([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f1a85=_0x5456b5(_0x444a0c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x432e1c()):_0x444a0c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x444a0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x444a0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x444a0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8711e1(){const _0x538f82=[_0x444a0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x444a0c([0x74,0x72,0x69,0x61,0x6c])][_0x444a0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27e73e[_0x444a0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1517df/0x3e8:0xe10*_0x50c1c5;return _0x27e73e[_0x444a0c([0x65,0x78,0x70])]<_0x538f82;}function _0x5ac31e(){const _0x2fc1b8=_0x27e73e[_0x444a0c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2fc1b8)return!0x1;if(_0x2fc1b8[_0x444a0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444a0c([0x2a])))return!0x0;if(_0x2fc1b8[_0x444a0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444a0c([0x52,0x48])))return!0x0;if(_0x2fc1b8[_0x444a0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444a0c([0x52,0x52,0x48]))){if(_0x59ee45())return!0x0;if(_0x93f431()||_0x43c0c5())return!0x0;}return!0x1;}function _0x1b9a5e(){const _0x38e1be=_0x27e73e[_0x444a0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38e1be||0x0==_0x38e1be[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x575473}=new URL(window[_0x444a0c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38e1be[_0x444a0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x575473))return!0x0;const _0xddeaeb=_0x575473[_0x444a0c([0x73,0x70,0x6c,0x69,0x74])](_0x444a0c([0x2e]));return _0x38e1be[_0x444a0c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x576a9c=>_0x576a9c[_0x444a0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x444a0c([0x2a])))[_0x444a0c([0x6d,0x61,0x70])](_0xfab7c6=>_0xfab7c6[_0x444a0c([0x73,0x70,0x6c,0x69,0x74])](_0x444a0c([0x2e])))[_0x444a0c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e39bd=>_0x2e39bd[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xddeaeb[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x444a0c([0x6d,0x61,0x70])](_0x20f791=>Array(_0xddeaeb[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x20f791[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x444a0c([0x66,0x69,0x6c,0x6c])](_0x20f791[0x0]===_0x444a0c([0x2a])?_0x444a0c([0x2a]):'')[_0x444a0c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x20f791))[_0x444a0c([0x73,0x6f,0x6d,0x65])](_0x371709=>_0xddeaeb[_0x444a0c([0x65,0x76,0x65,0x72,0x79])]((_0x54a466,_0x1a1dd4)=>_0x371709[_0x1a1dd4]===_0x54a466||_0x371709[_0x1a1dd4]===_0x444a0c([0x2a])));}function _0x432e1c(){return _0x4f1a85&&_0x1043d8?new window[(_0x444a0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44d72f,_0xfe8f4d)=>{_0x4f1a85[_0x444a0c([0x74,0x68,0x65,0x6e])](_0x44d72f,_0xfe8f4d),_0x1043d8[_0x444a0c([0x74,0x68,0x65,0x6e])](_0x33b27a=>{_0x33b27a!=_0x444a0c([0x56,0x61,0x6c,0x69,0x64])&&_0x44d72f(_0x33b27a);},_0xfe8f4d);}):_0x4f1a85||_0x1043d8||_0x444a0c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c4127(_0x9defe5,_0x50f74c){return new window[(_0x444a0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x129296=>{if(_0x18e249())return _0x129296(_0x444a0c([0x56,0x61,0x6c,0x69,0x64]));_0xe1c44e(),_0x182e80[_0x444a0c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x444a0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa1d168=!0x1;const _0x172435=_0x5ef564();function _0x46de57(_0x5cf8f3){return!!_0x5cf8f3&&(typeof _0x5cf8f3===_0x444a0c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cf8f3===_0x444a0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cf8f3[_0x444a0c([0x74,0x68,0x65,0x6e])]===_0x444a0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cf8f3[_0x444a0c([0x63,0x61,0x74,0x63,0x68])]===_0x444a0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27eed9(_0x949a21){_0x16a35b(_0x949a21)[_0x444a0c([0x74,0x68,0x65,0x6e])](_0xecd621=>{if(!_0xecd621||_0xecd621[_0x444a0c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x444a0c([0x6f,0x6b]))return _0x444a0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x53c4f4(_0x5b4b3c(_0x172435+_0x50f74c))!=_0xecd621[_0x444a0c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x444a0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x444a0c([0x56,0x61,0x6c,0x69,0x64]);})[_0x444a0c([0x74,0x68,0x65,0x6e])](_0x26c026=>(_0x338388(),_0x26c026),()=>{const _0x426586=_0x58c777();return null==_0x426586?(_0x338388(),_0x444a0c([0x56,0x61,0x6c,0x69,0x64])):_0x444a0c(_0x1517df-_0x426586>(0x2f8d6323^_0x417571)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x444a0c([0x74,0x68,0x65,0x6e])](_0x129296)[_0x444a0c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x129296(_0x444a0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48de3c=0xbb709a3^_0x417571;function _0x338388(){const _0x56f97a=_0x444a0c([0x6c,0x6c,0x63,0x74,0x2d])+_0x53c4f4(_0x5b4b3c(_0x9defe5)),_0x329dd5=_0x80b497(_0x53c4f4(window[_0x444a0c([0x4d,0x61,0x74,0x68])][_0x444a0c([0x63,0x65,0x69,0x6c])](_0x1517df/_0x48de3c)));window[_0x444a0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x444a0c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56f97a,_0x329dd5);}function _0x58c777(){const _0x4c2812=_0x444a0c([0x6c,0x6c,0x63,0x74,0x2d])+_0x53c4f4(_0x5b4b3c(_0x9defe5)),_0x455d67=window[_0x444a0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x444a0c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c2812);return _0x455d67?window[_0x444a0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x80b497(_0x455d67),0x10)*_0x48de3c:null;}function _0x16a35b(_0x1c7a0a){return new window[(_0x444a0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c9dbf,_0x368aac)=>{_0x1c7a0a[_0x444a0c([0x74,0x68,0x65,0x6e])](_0x2c9dbf,_0x368aac),window[_0x444a0c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x368aac,0xb8033e3^_0x417571);});}}_0x182e80[_0x444a0c([0x6f,0x6e])](_0x444a0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x163392,_0x441ce5)=>{if(_0x441ce5[0x0]!=_0x9defe5)return _0x129296(_0x444a0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x441ce5[0x1]={..._0x441ce5[0x1],[_0x444a0c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x172435};},{[_0x444a0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x444a0c([0x68,0x69,0x67,0x68])}),_0x182e80[_0x444a0c([0x6f,0x6e])](_0x444a0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x469b3a=>{_0x46de57(_0x469b3a[_0x444a0c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa1d168=!0x0,_0x27eed9(_0x469b3a[_0x444a0c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x444a0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x444a0c([0x6c,0x6f,0x77])}),_0x1c9a76[_0x444a0c([0x74,0x68,0x65,0x6e])](()=>{_0xa1d168||_0x129296(_0x444a0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18e249(){return _0x182e80[_0x444a0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x444a0c([0x76,0x69,0x65,0x77])][_0x444a0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x444a0c([0x61,0x75,0x74,0x6f]);}function _0xe1c44e(){_0x182e80[_0x444a0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x444a0c([0x76,0x69,0x65,0x77])][_0x444a0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x444a0c([0x61,0x75,0x74,0x6f]);}}function _0x5456b5(_0x347a23){const _0x32a396=[new window[(_0x444a0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102da7=>setTimeout(_0x102da7,0xb88d9ef^_0x417571)),_0x1c9a76[_0x444a0c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x444a0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53c47b=>{const _0x314d9a=0xb81e724^_0x417571,_0x43f392=_0x29a5c4[_0x444a0c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x31c589(){_0x43f392[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x314d9a&&_0x53c47b();}_0x31c589(),_0x43f392[_0x444a0c([0x6f,0x6e])](_0x444a0c([0x61,0x64,0x64]),_0x31c589);})),new window[(_0x444a0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48f8c2=>{function _0x2a62ce(){for(const _0x3ab5a8 in window)if(window[_0x444a0c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x444a0c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ab5a8))&&window[_0x3ab5a8]==_0x2a7901)return _0x48f8c2();_0x182e80[_0x444a0c([0x73,0x74,0x61,0x74,0x65])]!=_0x444a0c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x444a0c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a62ce,0xb81f4ab^_0x417571);}_0x147925(_0x444a0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2a62ce();})];return window[_0x444a0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x444a0c([0x72,0x61,0x63,0x65])](_0x32a396)[_0x444a0c([0x74,0x68,0x65,0x6e])](()=>_0x347a23);}async function _0x4eb71a(){if(await _0x1c9a76,_0x147925(_0x444a0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x485ed3=_0x29a5c4[_0x444a0c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x20931a=_0x29a5c4[_0x444a0c([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])](_0x485ed3[_0x444a0c([0x69,0x64])]),_0x442366=_0x40201e(_0x444a0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x442366[_0x444a0c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x485ed3['id'],_0x20931a?_0x20931a['id']:null,!0x0),_0x442366[_0x444a0c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x444a0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x442366[_0x444a0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x442366[_0x444a0c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3f9d09,void(_0x442366[_0x444a0c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3f9d09);}if(_0x147925(_0x444a0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x450cdd=_0x40201e(_0x444a0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x450cdd[_0x444a0c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x444a0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x450cdd[_0x444a0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x450cdd[_0x444a0c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3f9d09,_0x450cdd[_0x444a0c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3f9d09;}_0x182e80[_0x444a0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x444a0c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f9d09,_0x182e80[_0x444a0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x444a0c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f9d09,_0x182e80[_0x444a0c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x444a0c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59ee45(){return _0x147925(_0x444a0c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40201e(_0x444a0c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x444a0c([0x73,0x74,0x61,0x74,0x65])]==_0x444a0c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x93f431(){return _0x147925(_0x444a0c([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 _0x43c0c5(){return _0x147925(_0x444a0c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x116bd1(_0x2db03f){const _0x74bd86=_0x59d657();_0x182e80[_0x74bd86]=_0x444a0c([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])+_0x2db03f,_0x2db03f[_0x444a0c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x444a0c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x59d657()]=_0x2a7901),_0x2db03f!=_0x444a0c([0x56,0x61,0x6c,0x69,0x64])&&_0x4eb71a();}function _0x59d657(){const _0x3349b1=window[_0x444a0c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x444a0c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x444a0c([0x6e,0x6f,0x77])]())[_0x444a0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x444a0c([0x2e]),'');let _0x23af03=_0x444a0c([0x6e]);for(let _0x298cd2=0x0;_0x298cd2<_0x3349b1[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x298cd2+=0x2){let _0x23a4a0=window[_0x444a0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3349b1[_0x444a0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x298cd2,_0x298cd2+0x2));_0x23a4a0>=_0x4d81a8[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23a4a0-=_0x4d81a8[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23af03+=_0x4d81a8[_0x23a4a0];}return _0x23af03;}function _0x2501c7(){const _0x153011=_0x4d3134[_0x444a0c([0x73,0x70,0x6c,0x69,0x74])](_0x444a0c([0x2e]));if(0x3!=_0x153011[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9206de(_0x153011[0x1]);function _0x9206de(_0x477067){const _0x5bcf0a=_0x29bd88(_0x477067);return _0x5bcf0a&&_0x5ebb1b()?_0x5bcf0a:null;function _0x5ebb1b(){const _0x3061ca=_0x5bcf0a[_0x444a0c([0x6a,0x74,0x69])],_0x47578f=window[_0x444a0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3061ca[_0x444a0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3061ca[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44c774={..._0x5bcf0a,[_0x444a0c([0x6a,0x74,0x69])]:_0x3061ca[_0x444a0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3061ca[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44c774[_0x444a0c([0x76,0x63])],_0x5b4b3c(_0x44c774)==_0x47578f;}}}async function _0x2291b5(){let _0x314370=!0x0;try{const _0x298274=_0x4d3134[_0x444a0c([0x73,0x70,0x6c,0x69,0x74])](_0x444a0c([0x2e])),[_0x3f9350,_0x5cb8f2,_0x52356b]=_0x298274;return _0x194ca9(_0x3f9350),await _0x4fa934(_0x3f9350,_0x5cb8f2,_0x52356b),_0x314370;}catch{return!0x1;}function _0x194ca9(_0x299bc9){const _0x222d0c=_0x29bd88(_0x299bc9);_0x222d0c&&_0x222d0c[_0x444a0c([0x61,0x6c,0x67])]==_0x444a0c([0x45,0x53,0x32,0x35,0x36])||(_0x314370=!0x1);}async function _0x4fa934(_0x3ee14a,_0xe80a18,_0x241565){const _0x3a2259=window[_0x444a0c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x444a0c([0x66,0x72,0x6f,0x6d])](_0x3efb96(_0x241565),_0x268bbc=>_0x268bbc[_0x444a0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d0dad=new window[(_0x444a0c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x444a0c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ee14a+_0x444a0c([0x2e])+_0xe80a18),_0xcb0eac=window[_0x444a0c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x444a0c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xcb0eac)return;const _0x3b99e8=await _0xcb0eac[_0x444a0c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x444a0c([0x6a,0x77,0x6b]),_0x3f8ae4,{[_0x444a0c([0x6e,0x61,0x6d,0x65])]:_0x444a0c([0x45,0x43,0x44,0x53,0x41]),[_0x444a0c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x444a0c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x444a0c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xcb0eac[_0x444a0c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x444a0c([0x6e,0x61,0x6d,0x65])]:_0x444a0c([0x45,0x43,0x44,0x53,0x41]),[_0x444a0c([0x68,0x61,0x73,0x68])]:{[_0x444a0c([0x6e,0x61,0x6d,0x65])]:_0x444a0c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b99e8,_0x3a2259,_0x5d0dad)||(_0x314370=!0x1);}}function _0x29bd88(_0x3ef887){return _0x3ef887[_0x444a0c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x444a0c([0x65,0x79]))?JSON[_0x444a0c([0x70,0x61,0x72,0x73,0x65])](_0x3efb96(_0x3ef887)):null;}function _0x3efb96(_0x48c8f4){return window[_0x444a0c([0x61,0x74,0x6f,0x62])](_0x48c8f4[_0x444a0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x444a0c([0x2b]))[_0x444a0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x444a0c([0x2f])));}function _0x5b4b3c(_0x348982){let _0x109539=0x1505;function _0x3065d6(_0x52fc89){for(let _0x10fa3a=0x0;_0x10fa3a<_0x52fc89[_0x444a0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10fa3a++){const _0x379dd9=_0x52fc89[_0x444a0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10fa3a);_0x109539=(_0x109539<<0x5)+_0x109539+_0x379dd9,_0x109539&=_0x109539;}}function _0x13503c(_0x25d754){Array[_0x444a0c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25d754)?_0x25d754[_0x444a0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x13503c):_0x25d754&&typeof _0x25d754==_0x444a0c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x444a0c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25d754)[_0x444a0c([0x73,0x6f,0x72,0x74])]()[_0x444a0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x396d7d,_0x4ac714])=>{_0x3065d6(_0x396d7d),_0x13503c(_0x4ac714);}):_0x3065d6(window[_0x444a0c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25d754));}return _0x13503c(_0x348982),_0x109539>>>0x0;}function _0x53c4f4(_0x339cdd){return _0x339cdd[_0x444a0c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x444a0c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x444a0c([0x30]));}function _0x80b497(_0x10e250){return _0x10e250[_0x444a0c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x444a0c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x444a0c([0x6a,0x6f,0x69,0x6e])]('');}function _0x147925(_0x48fc64){return _0x182e80[_0x444a0c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x444a0c([0x68,0x61,0x73])](_0x48fc64);}function _0x40201e(_0x4e3991){return _0x182e80[_0x444a0c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x444a0c([0x67,0x65,0x74])](_0x4e3991);}function _0x3f9d09(){}function _0x444a0c(_0x3d4183){return _0x3d4183['map'](_0x430c19=>String['fromCharCode'](_0x430c19))['join']('');}_0x116bd1(await _0x2584ba());}(this);}['createRevision'](_0x37d229){const _0x2aad34=this['editor']['plugins']['get']('Users');return new I({'id':_0x37d229['id'],'name':_0x37d229['name'],'creator':_0x37d229['creatorId']?_0x2aad34['getUser'](_0x37d229['creatorId']):null,'diffData':_0x37d229['diffData']||_0x37d229['data'],'authors':_0x37d229['authorsIds']['map'](_0x1493f6=>_0x2aad34['getUser'](_0x1493f6)),'createdAt':new Date(_0x37d229['createdAt']),'attributes':_0x37d229['attributes'],'fromVersion':_0x37d229['fromVersion'],'toVersion':_0x37d229['toVersion']});}['addRevision'](_0x240653,_0x12bfce=0x0){this['_revisions']['add'](_0x240653,_0x12bfce);}['getRevision'](_0x50fe07){return this['_revisions']['get'](_0x50fe07);}['getRevisions'](_0x530d7e={'toJSON':!0x1}){const _0x56972b=Array['from'](this['_revisions']);return _0x56972b['reverse'](),_0x530d7e['toJSON']?_0x56972b['map'](_0xa2b147=>_0xa2b147['toJSON']()):_0x56972b;}['getIndex'](_0x28bac2){return this['_revisions']['getIndex'](_0x28bac2);}['getEarlierVisibleRevision'](_0x5a6288){const [,_0x3c845d]=this['getRevisionsIterator'](_0x5a6288,{'direction':'earlier'});return _0x3c845d;}['getLaterVisibleRevision'](_0x28b3fc){const [,_0x537388]=this['getRevisionsIterator'](_0x28b3fc,{'direction':'later'});return _0x537388;}['getRevisionsInDiff'](_0x501cba){const _0x4a1267=[];for(const _0x236f60 of this['getRevisionsIterator'](_0x501cba['newRevisionId']))if(_0x4a1267['push'](_0x236f60),_0x236f60['id']===_0x501cba['oldRevisionId'])break;return _0x4a1267;}*['getRevisionsIterator'](_0x5b4132,{direction:_0xd10926='earlier',filter:_0x56e59c=()=>!0x0}={}){const _0x314630='earlier'===_0xd10926?0x1:-0x1;let _0xf0d3eb=this['_revisions']['get'](_0x5b4132),_0x1224fa=this['getIndex'](_0xf0d3eb);for(yield _0xf0d3eb;_0xf0d3eb;){if(_0x1224fa+=_0x314630,_0xf0d3eb=this['getRevision'](_0x1224fa),!_0xf0d3eb)return;_0x56e59c(_0xf0d3eb)&&(yield _0xf0d3eb);}}}class $ extends _0x509aae{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5f42f3,'c'],[_0x575954,'a'],[_0x1f78c1,'e'],[_0x35fc61,'r'],[_0x2f5b5c,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5f42f3],['a',_0x575954],['e',_0x1f78c1],['r',_0x35fc61],['u',_0x2f5b5c]]);async['loadRevisionData'](_0x4f13c4,_0x1c60aa){if(_0x4f13c4['diffData']||!_0x1c60aa)return;const _0x14e5c2=this['editor']['config']['get']('collaboration.channelId'),_0x105282=await _0x1c60aa['getRevision']({'channelId':_0x14e5c2,'revisionId':_0x4f13c4['id']});_0x4f13c4['diffData']=_0x105282['diffData'];}['getRevisionDocumentData'](_0x328792){const _0x2f9e6f={};for(const _0x23cbd3 in _0x328792['diffData']){if(_0x328792['diffData'][_0x23cbd3]['attachChange']&&!_0x328792['diffData'][_0x23cbd3]['attachChange']['isAttached'])continue;const _0x443485=this['_removeRevisionMarkers'](JSON['parse'](_0x328792['diffData'][_0x23cbd3]['insertions'])),_0x434dc0=this['editor']['editing']['view']['document'],_0x184ea3=new _0x573b8b(_0x434dc0,_0x443485['map'](_0x3ec1ed=>this['_getViewFromDiffObj'](_0x3ec1ed,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2f9e6f[_0x23cbd3]=this['editor']['data']['processor']['toData'](_0x184ea3),this['editor']['data']['processor']['useFillerType']('default');}return _0x2f9e6f;}['getRevisionRootsAttributes'](_0x48a365){const _0x2dc14d={};for(const _0x2f3be5 in _0x48a365['diffData'])_0x48a365['diffData'][_0x2f3be5]['attachChange']&&!_0x48a365['diffData'][_0x2f3be5]['attachChange']['isAttached']||(_0x2dc14d[_0x2f3be5]=_0x48a365['diffData'][_0x2f3be5]['attributesAfter']||{});return _0x2dc14d;}['_getTypeCharForViewElement'](_0x474e1d){return this['_viewClassToTypeChar']['get'](_0x474e1d['constructor']);}['_getViewFromDiffObj'](_0x30c864,_0x5bd2c5){const _0x4ecc46=this['editor']['editing']['view']['document'];if('string'==typeof _0x30c864)return new _0x1c7c37(_0x4ecc46,_0x30c864);{let _0x56b133,_0x5d50de;_0x5d50de='u'==_0x30c864['type']||'r'==_0x30c864['type']?[]:_0x30c864['children']['map'](_0xa7a30a=>this['_getViewFromDiffObj'](_0xa7a30a,_0x5bd2c5));const _0x1ce217=this['_typeCharToViewClass']['get'](_0x30c864['type'])||_0x45aa71,_0x3c7fcf=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x56b133=new _0x1ce217(_0x4ecc46,_0x30c864['name'],_0x30c864['attributes'],_0x5d50de),'u'==_0x30c864['type']&&_0x30c864['children'][0x0]){const _0x5061f4=_0x30c864['children'][0x0];if(_0x56b133['render']=function(_0x596fa8){const _0x150528=_0x596fa8['createElement']('div');return _0x150528['innerHTML']=_0x5061f4,_0x150528['childNodes'][0x0];},_0x5bd2c5){const _0x376aa5=new _0x573b8b(_0x4ecc46);_0x376aa5['_appendChild'](_0x56b133);const _0x7a949c=Array['from'](_0x3c7fcf['viewChildrenToDom'](_0x376aa5,{'bind':!0x1})),_0x5d56b5=_0x3c7fcf['domDocument']['createElement']('div');_0x5d56b5['append'](..._0x7a949c),_0x56b133=Array['from'](_0x3c7fcf['domChildrenToView'](_0x5d56b5))[0x0];}}else{if('r'==_0x30c864['type']&&_0x30c864['children'][0x0]){const _0x10a040=_0x30c864['children'][0x0];if(_0x56b133['render']=function(_0x259549){_0x259549['innerHTML']=_0x10a040;},_0x5bd2c5){const _0x5e4eb4=new _0x573b8b(_0x4ecc46);_0x5e4eb4['_appendChild'](_0x56b133);const _0x72aff7=Array['from'](_0x3c7fcf['viewChildrenToDom'](_0x5e4eb4,{'bind':!0x1})),_0x1cdd7e=_0x3c7fcf['domDocument']['createElement']('div');_0x1cdd7e['append'](..._0x72aff7);const _0x5a26ea=Array['from'](_0x3c7fcf['domChildrenToView'](_0x1cdd7e));_0x5a26ea['length']>0x1?_0x56b133['_appendChild'](_0x5a26ea):_0x56b133=_0x5a26ea[0x0];}}}if(_0x30c864['customProperties']){for(const [_0x4fea6e,_0x48ebc8]of _0x30c864['customProperties'])_0x56b133['_setCustomProperty'](_0x4fea6e,_0x48ebc8);}const _0x2ec9d9=void 0x0===_0x30c864['fillerOffset']?null:_0x30c864['fillerOffset'];return null!==_0x2ec9d9&&(_0x56b133['getFillerOffset']=()=>_0x2ec9d9),_0x56b133;}}['_makeModelFromViewString'](_0x480b13){const _0x2aefed=JSON['parse'](_0x480b13),_0x20cfaa=this['editor']['editing']['view']['document'],_0x942222=new _0x573b8b(_0x20cfaa,_0x2aefed['map'](_0x299bff=>this['_getViewFromDiffObj'](_0x299bff,!0x0)));return this['editor']['data']['toModel'](_0x942222);}['_removeRevisionMarkers'](_0xa67509){return(_0xa67509=_0xa67509['filter'](_0x6919d8=>!_0x6919d8['name']||'revision-start'!==_0x6919d8['name']&&'revision-end'!==_0x6919d8['name']))['forEach'](_0x2da6c2=>{'string'!=typeof _0x2da6c2&&(_0x2da6c2['children']=this['_removeRevisionMarkers'](_0x2da6c2['children']),_0x2da6c2['attributes']=_0x2da6c2['attributes']['filter'](_0x1e3049=>!_0x1e3049[0x0]['startsWith']('data-revision-')));}),_0xa67509;}}function R(_0x349f9e,_0x377430,_0x2804fd){const t=_0x349f9e['t'];switch(_0x377430){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'},_0x2804fd);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2804fd);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'';}}class h extends _0x509aae{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4478cb,S,$,_0x3ee766];}constructor(_0x389a04){super(_0x389a04),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3dadcc=_0x5ef564();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3dadcc},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4d8f07=this['repository']['getRevision'](0x0),_0x388a02=_0x4d8f07&&null===_0x4d8f07['creator']?_0x4d8f07:null;if(this['_continueCurrentRevision']=!!_0x388a02&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x319215=this['_source']['getCurrentRevisionId'](),_0x3efb9f=this['repository']['getRevision'](_0x319215);if(_0x3efb9f)this['_startingVersion']=_0x3efb9f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x137dc0=this['_source']['history']['_operations']['find'](_0x5a5fda=>!_0x5a5fda['_isInit']),_0x44cbcf=_0x137dc0?_0x137dc0['baseVersion']:this['_source']['history']['version'];_0x4d8f07?(_0x4d8f07['toVersion']<_0x44cbcf&&_0x4d8f07['_update']({'toVersion':_0x44cbcf}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x388a02['id'],this['_startingVersion']=_0x388a02['fromVersion']):(this['_startingVersion']=_0x4d8f07['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x44cbcf,this['_continueCurrentRevision']=!0x1);}}else _0x388a02&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x388a02['toVersion'],this['editor']['model']['document']['history']['version']),_0x388a02['fromVersion']===_0x388a02['toVersion']?(0x0!==_0x388a02['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x388a02['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x388a02['id'],this['_startingVersion']=_0x388a02['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',_0x1bfd62=>!_0x1bfd62),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x129090=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa1a129;for(const _0x5c474e in _0x129090){const _0x4a6465=_0x5c474e,_0xf582ef=_0x129090[_0x4a6465];if('revisionHistoryLicenseKeyValid'==_0xf582ef||'revisionHistoryLicenseKeyInvalid'==_0xf582ef||'revisionHistoryLicenseKeyExpired'==_0xf582ef||'revisionHistoryLicenseKeyDomainLimit'==_0xf582ef||'revisionHistoryLicenseKeyNotAllowed'==_0xf582ef||'revisionHistoryLicenseKeyEvaluationLimit'==_0xf582ef||'revisionHistoryLicenseKeyTrialLimit'==_0xf582ef||'revisionHistoryLicenseKeyUsageLimit'==_0xf582ef){delete _0x129090[_0x4a6465],_0xa1a129=_0xf582ef,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xa1a129&&_0x129090['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xa1a129&&_0x129090['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xa1a129&&_0x129090['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xa1a129&&_0x129090['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xa1a129&&_0x129090['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xa1a129&&_0x129090['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xa1a129&&_0x129090['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5b6c37=this['repository']['getRevision'](0x0),_0x56b462=await this['getRevisionDocumentData'](_0x5b6c37),_0xff6f09=await this['getRevisionRootsAttributes'](_0x5b6c37);this['_replaceEditorDataWithRevisionData'](_0x56b462,_0xff6f09);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x19ef82){this['_source']=_0x19ef82;}async['update'](){const _0x3687d9=await this['_source']['getLatestVersion']();if(_0x3687d9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x16fdc1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3687d9});_0x16fdc1['authors']=_0x16fdc1['authorsIds']['map'](_0x34a6d0=>this['editor']['plugins']['get']('Users')['getUser'](_0x34a6d0)),this['currentRevision']['_update'](_0x16fdc1);}}async['saveRevision'](_0x3d226c={},_0xa8ab5a=null){const _0x3fd02c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xa8ab5a>this['currentRevision']['toVersion']&&(_0xa8ab5a=null),null===_0xa8ab5a&&(_0xa8ab5a=await this['_source']['getLatestVersion']());const _0x252177=this['_getFromVersion'](_0xa8ab5a),_0x11b6b9=this['buildRevisionData']({'from':_0x252177,'to':_0xa8ab5a});if(this['currentRevision']['toVersion']<_0xa8ab5a){const _0x2b18f9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xa8ab5a,'to':_0xa8ab5a});_0x2b18f9['authors']=[],_0x2b18f9['authorsIds']=[],_0x2b18f9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2b18f9,!0x0),delete _0x2b18f9['authors'],_0x3fd02c['push'](_0x2b18f9);}_0x3d226c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d226c['name']=_0x3d226c['name']||null,_0x3d226c['id']=_0x3d226c['id']||_0x5ef564(),_0x3d226c={..._0x3d226c,..._0x11b6b9};const _0x4d0e6f=this['addRevisionData'](_0x3d226c);_0x3fd02c['push'](_0x3d226c);const _0x1d2d23=this['repository']['getIndex'](_0x4d0e6f);if(0x0!==_0x1d2d23){const _0x3f7f6b=this['repository']['getRevision'](_0x1d2d23-0x1);if(_0x3f7f6b['fromVersion']!==_0xa8ab5a){const _0x47d174=this['_revisionDataBuilder']['getData'](_0xa8ab5a,_0x3f7f6b['toVersion']),_0x1fd472={'id':_0x3f7f6b['id'],'diffData':_0x47d174['diffData'],'authorsIds':_0x47d174['authorsIds'],'authors':_0x47d174['authorsIds']['map'](_0x3da61c=>this['editor']['plugins']['get']('Users')['getUser'](_0x3da61c)),'fromVersion':_0xa8ab5a};_0x3f7f6b===this['currentRevision']&&(_0x1fd472['createdAt']=new Date(_0x3d226c['createdAt']['getTime']()+0xa)),_0x3f7f6b['_update'](_0x1fd472,!0x0),delete _0x1fd472['authors'],_0x3fd02c['push'](_0x1fd472);}}if(this['adapter']){for(const _0x356f4d of _0x3fd02c)this['_bufferUpdate'](_0x356f4d['id'],_0x356f4d,!0x0);this['sendBufferedUpdates']();}return _0x4d0e6f;}['addRevisionData'](_0x1cbd43){const _0x1b9d86=this['repository']['createRevision'](_0x1cbd43);return this['adapter']&&_0x1b9d86['on']('_update',(_0x17f041,_0x7fced2,_0x2e356d)=>{_0x2e356d||(this['_bufferUpdate'](_0x7fced2['id'],_0x7fced2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b9d86,this['_findInsertionIndex'](_0x1b9d86)),_0x1b9d86;}async['getRevisionDocumentData'](_0x2a310f){return await this['_utils']['loadRevisionData'](_0x2a310f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2a310f);}async['getRevisionRootsAttributes'](_0x2c4169){return await this['_utils']['loadRevisionData'](_0x2c4169,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2c4169);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x523301=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1b9d45=0x0;_0x1b9d45<_0x523301['length'];_0x1b9d45++){const _0x5dedb8=_0x523301[_0x1b9d45];let _0x1ab053=!0x1;for(const _0x1a8389 of Object['keys'](_0x5dedb8))void 0x0===_0x5dedb8[_0x1a8389]?delete _0x5dedb8[_0x1a8389]:'id'!==_0x1a8389&&(_0x1ab053=!0x0);_0x1ab053||(_0x523301[_0x1b9d45]=null);}if(_0x523301=_0x523301['filter'](_0x3a63e8=>null!==_0x3a63e8),!_0x523301['length'])return;for(let _0x3dae1e=0x0;_0x3dae1e<_0x523301['length'];_0x3dae1e++){const _0x1478a4=_0x523301[_0x3dae1e];void 0x0!==_0x1478a4['fromVersion']&&void 0x0===_0x1478a4['toVersion']&&(_0x1478a4['toVersion']=this['repository']['getRevision'](_0x1478a4['id'])['toVersion']),void 0x0!==_0x1478a4['toVersion']&&void 0x0===_0x1478a4['fromVersion']&&(_0x1478a4['fromVersion']=this['repository']['getRevision'](_0x1478a4['id'])['fromVersion']);}const _0x43b2d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x523301,_0x43b2d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1f185b=>{if(_0x1f185b){for(const _0x44d8b1 of _0x1f185b)this['setRevisionData']({'id':_0x44d8b1['id'],'createdAt':_0x44d8b1['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4e2667=null,from:_0x14246d=null,to:_0x219dd3=null}){_0x14246d=null!==_0x14246d?_0x14246d:_0x4e2667['fromVersion'],_0x219dd3=null!==_0x219dd3?_0x219dd3:_0x4e2667['toVersion'];const _0xa57fd6=this['_revisionDataBuilder']['getData'](_0x14246d,_0x219dd3),_0x2fa344={'diffData':_0xa57fd6['diffData'],'authorsIds':_0xa57fd6['authorsIds'],'fromVersion':_0x14246d,'toVersion':_0x219dd3};if(!_0x4e2667||_0x219dd3!==_0x4e2667['toVersion']){const _0x127fdd=_0x219dd3-0x1,_0x42c3a4=this['_source']['history']['getOperation'](_0x127fdd);_0x2fa344['createdAt']=_0x42c3a4&&_0x42c3a4['createdAt']||new Date();}if(this['_loadedStateData']&&_0x14246d===this['_loadedStateData']['fromVersion']){for(const _0x3f844d of this['_loadedStateData']['authors'])_0x2fa344['authorsIds']['includes'](_0x3f844d['id'])||_0x2fa344['authorsIds']['push'](_0x3f844d['id']);}return _0x2fa344;}['_bufferUpdate'](_0xd15018,_0x47c848,_0x1a5aa8){if(this['_bufferedUpdates']['has'](_0xd15018)){const _0x1a85d8=this['_bufferedUpdates']['get'](_0xd15018);_0x47c848=_0x1a5aa8?{..._0x1a85d8,..._0x47c848}:{..._0x47c848,..._0x1a85d8};}this['_bufferedUpdates']['set'](_0xd15018,_0x47c848);}['setRevisionData'](_0x2901d2){const _0x5d151d=this['repository']['getRevision'](_0x2901d2['id']);if(_0x2901d2['createdAt']&&(_0x2901d2['createdAt']=new Date(_0x2901d2['createdAt'])),_0x2901d2['authorsIds']){const _0x5b0ef3=this['editor']['plugins']['get']('Users');_0x2901d2['authors']=_0x2901d2['authorsIds']['map'](_0x3183ac=>_0x5b0ef3['getUser'](_0x3183ac));}_0x5d151d['_update'](_0x2901d2,!0x0);}['_createInitialRevision'](_0x376231){const _0xb5d142=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xb5d142)this['_initialRevisionId']=_0xb5d142['id'];else{const _0x58bf30=!this['editor']['model']['document']['roots']['find'](_0x45a487=>this['editor']['model']['hasContent'](_0x45a487)),_0xd479aa=this['editor']['plugins']['get']('Users')['me']['id'],_0x4cd6da=R(this['editor']['locale'],_0x58bf30?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x376231,'to':_0x376231,'id':this['_initialRevisionId'],'name':_0x4cd6da,'creatorId':_0xd479aa});}}['_createCurrentRevision'](_0x2d6825){const _0x10c687=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x10c687),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2d6825,'to':_0x2d6825,'id':_0x10c687,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x20a3c5,_0x29bece){let _0x46773b=this['editor']['config']['get']('initialData'),_0xa077a6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x46773b){_0x46773b={};for(const _0x4c37be of this['editor']['model']['document']['getRootNames']())_0x46773b[_0x4c37be]='';}if('string'==typeof _0x46773b&&(_0x46773b={'main':_0x46773b}),void 0x0===_0xa077a6){_0xa077a6={};for(const _0x9491d2 of this['editor']['model']['document']['getRootNames']())_0xa077a6[_0x9491d2]={};}let _0x576970=!0x1;const _0x4000cf=Object['keys'](_0x46773b),_0x4f4142=Object['keys'](_0x20a3c5);for(const _0x532f60 of _0x4000cf){if(_0x46773b[_0x532f60]!==_0x20a3c5[_0x532f60]&&''!==_0x46773b[_0x532f60]['trim']()){_0x576970=!0x0;break;}if(!_0x1f2838(_0xa077a6[_0x532f60],_0x29bece[_0x532f60])&&Object['keys'](_0xa077a6[_0x532f60])['length']>0x0){_0x576970=!0x0;break;}}_0x576970||(_0x576970=_0x4f4142['some'](_0x4b4d0f=>!this['editor']['model']['document']['getRoot'](_0x4b4d0f))),_0x576970&&_0x13f5c7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x46773b,'editorRootsAttributes':_0xa077a6,'revisionData':_0x20a3c5,'revisionRootsAttributes':_0x29bece}),this['editor']['config']['set']('initialData',_0x20a3c5),this['editor']['config']['set']('rootsAttributes',_0x29bece);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4cfaf2=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4cfaf2['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2ef0c7){const _0x5ade57=this['repository']['getRevisions']();_0x5ade57['reverse']();let _0x31ac4a=0x0;for(;_0x31ac4a<_0x5ade57['length'];){const _0x5294f1=_0x5ade57[_0x31ac4a];if(_0x5294f1===this['currentRevision']){_0x31ac4a++;continue;}if(_0x5294f1['id']===this['_initialRevisionId'])break;const _0x350ef4=_0x2ef0c7['toVersion']-_0x5294f1['toVersion']||_0x2ef0c7['fromVersion']-_0x5294f1['fromVersion'];if(_0x350ef4>0x0)break;if(_0x350ef4<0x0)_0x31ac4a++;else{if(!_0x2ef0c7['creator']&&_0x5294f1['creator'])break;if(_0x5294f1['creator']||!_0x2ef0c7['creator']){if(_0x2ef0c7['createdAt']>_0x5294f1['createdAt'])break;_0x31ac4a++;}else _0x31ac4a++;}}return _0x31ac4a;}['_getFromVersion'](_0x44a6d2){const _0x106b05=this['repository']['getRevisions']();_0x106b05['reverse'](),_0x106b05['shift']();const _0x1482a7=_0x106b05['find'](_0x2a08fa=>_0x2a08fa['toVersion']<=_0x44a6d2)['toVersion'];return _0x1482a7<this['_startingVersion']?this['_startingVersion']:_0x1482a7;}['_makeRevision']({name:_0x485869,from:_0x13787b,to:_0x57afed,creatorId:_0x1642ac,id:_0x1a993d}){const _0x573e45=this['buildRevisionData']({'from':_0x13787b,'to':_0x57afed});_0x573e45['name']=_0x485869,_0x573e45['creatorId']=_0x1642ac,_0x573e45['id']=_0x1a993d;const _0xcd227d=this['addRevisionData'](_0x573e45);return this['adapter']&&this['_bufferUpdate'](_0x573e45['id'],_0x573e45,!0x0),_0xcd227d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5a3d2b){this['editor']=_0x5a3d2b,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'](_0x3c9f99){this['source']=_0x3c9f99;const _0x58ccf2=new Map(),_0x2b1792=new Map(),_0x4fba5b=this['editor']['model']['document']['roots']['map'](_0x23c59f=>_0x23c59f['rootName']);for(const _0xedd895 of _0x4fba5b){const _0x2955b6=this['editor']['model']['document']['getRoot'](_0xedd895),_0x20bdee=x(_0x2955b6);_0x58ccf2['set'](_0xedd895,_0x20bdee),_0x2b1792['set'](_0xedd895,Object['fromEntries'](_0x2955b6['getAttributes']()));}const _0x3982f5=Array['from'](this['editor']['model']['markers'])['map'](_0x1ff617=>[_0x1ff617['name'],_0x1ff617['getRange']()]),_0x284f93=this['source']['version'];this['_saveMetaData'](_0x284f93,_0x58ccf2,_0x3982f5,_0x2b1792),this['_startingRevisionId']=this['_revisionId'];const _0x1dec59=new Map(),_0x32dd5d=new Map();for(const _0x3f1eb6 of _0x4fba5b){const _0x371213=N(_0x3f1eb6);_0x1dec59['set'](_0x3f1eb6,_0x371213),_0x32dd5d['set'](_0x3f1eb6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1dec59,[],_0x32dd5d);}['getData'](_0x43211c,_0x359a8c){if(this['_lastFrom']===_0x43211c&&this['_lastTo']<=_0x359a8c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x359a8c,!0x0);else{if(!this['_savedMetaData']['has'](_0x43211c)){const _0x4f9d9e=this['_getPreviousFrom'](_0x43211c);this['_calculateMetaData'](_0x4f9d9e,_0x43211c,!0x1);}this['_calculateMetaData'](_0x43211c,_0x359a8c,!0x0);}return this['_lastFrom']=_0x43211c,this['_lastTo']=_0x359a8c,this['_getState']();}['loadState'](_0x4b46b1){const _0x4bc061=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4b46b1['fromVersion'],this['_lastTo']=_0x4b46b1['toVersion'];for(const _0x28f7b7 in _0x4b46b1['diffData']){const _0xd48173=_0x4b46b1['diffData'][_0x28f7b7]['attachChange'],_0x13bcba=_0x3efe9f(_0x4b46b1['diffData'][_0x28f7b7]['attributesBefore'])||{},_0x29259b=_0x4bc061['_makeModelFromViewString'](_0x4b46b1['diffData'][_0x28f7b7]['deletions']);_0x29259b['rootName']=_0x28f7b7,_0x29259b['_isAttached']=!_0xd48173||!_0xd48173['isAttached'],_0x29259b['isAttached']=()=>_0x29259b['_isAttached'],this['_baseRoots']['set'](_0x28f7b7,_0x29259b),this['_baseRootsAttributes']['set'](_0x28f7b7,_0x13bcba),_0xd48173&&this['_touchedRoots']['set'](_0x28f7b7,_0xd48173);const _0x598ba0=this['_makeIdsRoot'](_0x29259b);this['_baseIdsRoots']['set'](_0x28f7b7,_0x598ba0);for(const [_0x4ef9c8,_0xad36c8]of _0x29259b['markers']){if(!_0x4ef9c8['startsWith']('revision:'))continue;const _0x186106=_0x4ef9c8['split'](':')[0x2];for(const _0x3634f3 of _0xad36c8['getWalker']({'singleCharacters':!0x0})){const _0xf4c9bb=this['_getVidAttributeName'](_0x3634f3),_0x51bf65='elementEnd'==_0x3634f3['type']?_0x3634f3['previousPosition']['path']['slice'](0x0,-0x1):_0x3634f3['previousPosition']['path'],_0x3f6fef=_0x598ba0['getNodeByPath'](_0x51bf65)['getAttribute'](_0xf4c9bb);this['_touched']['set'](_0x3f6fef,{'userId':_0x186106});}}}this['_startingRevisionId']=this['_revisionId'];const _0x220653=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x588ed6=>!this['_touched']['has'](_0x588ed6));let _0x2ffc4b=0x0;const _0x4efe41=new Map();for(const _0x1968e1 in _0x4b46b1['diffData']){const _0x5a2d02=_0x4b46b1['diffData'][_0x1968e1]['attachChange'],_0x29d2d5=_0x3efe9f(_0x4b46b1['diffData'][_0x1968e1]['attributesAfter'])||{},_0x42fdc0=_0x4bc061['_makeModelFromViewString'](_0x4b46b1['diffData'][_0x1968e1]['insertions']);_0x42fdc0['rootName']=_0x1968e1,_0x42fdc0['_isAttached']=!_0x5a2d02||_0x5a2d02['isAttached'],_0x42fdc0['isAttached']=()=>_0x42fdc0['_isAttached'],this['_diffRoots']['set'](_0x1968e1,_0x42fdc0),this['_diffRootsAttributes']['set'](_0x1968e1,_0x29d2d5);const _0x21dc50=this['_makeIdsRoot'](_0x42fdc0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1968e1,_0x21dc50),_0x4efe41['set'](_0x1968e1,_0x42fdc0['isAttached']()?_0x29d2d5:{});for(const [_0x1f291c,_0x3eb578]of _0x42fdc0['markers']){if(!_0x1f291c['startsWith']('revision:'))continue;const _0x21c9f7=_0x1f291c['split'](':')[0x2];for(const _0x4f6773 of _0x3eb578['getWalker']({'singleCharacters':!0x0})){const _0x140337=this['_getVidAttributeName'](_0x4f6773),_0x1ee9ca=this['_revisionId']++,_0x368e0e='elementEnd'==_0x4f6773['type']?_0x4f6773['previousPosition']['path']['slice'](0x0,-0x1):_0x4f6773['previousPosition']['path'];_0x21dc50['getNodeByPath'](_0x368e0e)['_setAttribute'](_0x140337,_0x1ee9ca),this['_touched']['set'](_0x1ee9ca,{'userId':_0x21c9f7});}}for(const _0x2d4191 of this['editor']['model']['createRangeIn'](_0x42fdc0)['getWalker']({'singleCharacters':!0x0})){const _0x58ed09=this['_getVidAttributeName'](_0x2d4191),_0x4d3ffa='elementEnd'==_0x2d4191['type']?_0x2d4191['previousPosition']['path']['slice'](0x0,-0x1):_0x2d4191['previousPosition']['path'],_0x2cb2fa=_0x21dc50['getNodeByPath'](_0x4d3ffa);_0x2cb2fa['getAttribute'](_0x58ed09)>0x0||_0x2cb2fa['_setAttribute'](_0x58ed09,_0x220653[_0x2ffc4b++]);}for(const [_0x3778ea,_0xf8ddc9]of _0x42fdc0['markers'])_0x3778ea['startsWith']('revision:')||this['_markers']['set'](_0x3778ea,_0xf8ddc9);}const _0x144a00=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x144a00),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x144a00,0x1));const _0x392226=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x392226),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x392226,0x1));const _0x30afac=Array['from'](this['_diffRoots'])['map'](([_0x3d9c71,_0x39c3d4])=>[_0x3d9c71,x(_0x39c3d4)]);this['_saveMetaData'](this['_lastTo'],_0x30afac,this['_markers'],_0x4efe41);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x24d703,_0x2b5e38,_0x2e381b,_0x34c5ef){const _0x3f7929=new Map(_0x2b5e38),_0x1ce583=new Map(_0x3efe9f(_0x34c5ef)),_0x38f839=new Map();for(const [_0x8deeb,_0x566de9]of _0x2e381b)_0x38f839['set'](_0x8deeb,{'start':_0x566de9['start']['clone'](),'end':_0x566de9['end']['clone'](),'rootName':_0x566de9['root']['rootName']});this['_savedMetaData']['set'](_0x24d703,{'roots':_0x3f7929,'markers':_0x38f839,'rootsAttributes':_0x1ce583});}['_removeMetaData'](_0x472f29){this['_savedMetaData']['delete'](_0x472f29);}['_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'](_0x14eab2,_0x5e48a2=null){let _0x1780c3=null;_0x14eab2['is']('documentFragment')||(_0x1780c3=new _0x26dd35(_0x14eab2['name'],{'vid_start':null===_0x5e48a2?this['_revisionId']++:_0x5e48a2++}));const _0x7d7916=[];for(const _0x27e22a of _0x14eab2['getChildren']())if(_0x27e22a['is']('element')){_0x7d7916['push'](this['_makeIdsRoot'](_0x27e22a,_0x5e48a2));const _0x21e05e=_0x7d7916[_0x7d7916['length']-0x1];null!==_0x5e48a2&&(_0x5e48a2=_0x21e05e['is']('element','$text')?_0x21e05e['getAttribute']('vid')+0x1:_0x21e05e['getAttribute']('vid_end')+0x1);}else{for(let _0x4141ee=0x0;_0x4141ee<_0x27e22a['offsetSize'];_0x4141ee++)_0x7d7916['push'](new _0x26dd35('$text',{'vid':null===_0x5e48a2?this['_revisionId']++:_0x5e48a2++}));}if(_0x14eab2['is']('documentFragment')){const _0x179a1f=N(_0x14eab2['rootName']);return _0x179a1f['_insertChild'](0x0,_0x7d7916),_0x179a1f;}return _0x1780c3['_setAttribute']('vid_end',null===_0x5e48a2?this['_revisionId']++:_0x5e48a2++),_0x1780c3['_insertChild'](0x0,_0x7d7916),_0x1780c3;}['_calculateMetaData'](_0x37a5a9,_0x42087b,_0x26aea7){this['_reset']();const {roots:_0x5c8135,markers:_0x42f969,rootsAttributes:_0x598596}=this['_savedMetaData']['get'](_0x37a5a9);this['_baseRoots']=new Map(_0x5c8135),this['_baseRootsAttributes']=new Map(_0x3efe9f(_0x598596));for(const [_0x4431f3,_0x25ec06]of this['_baseRoots'])if('$graveyard'!==_0x4431f3&&(this['_diffRoots']['set'](_0x4431f3,x(_0x25ec06)),this['_diffRootsAttributes']=new Map(_0x3efe9f(_0x598596)),_0x26aea7)){const _0x30e98f=this['_revisionId'];this['_idsRoots']['set'](_0x4431f3,this['_makeIdsRoot'](_0x25ec06)),this['_baseIdsRoots']['set'](_0x4431f3,this['_makeIdsRoot'](_0x25ec06,_0x30e98f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x26aea7&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x31735a,_0x1b377d]of _0x42f969){const _0x5bb43c=this['_baseRoots']['get'](_0x1b377d['rootName']),_0x13f7c4=this['_diffRoots']['get'](_0x1b377d['rootName']),_0x701e3f=new _0x17ba4e(this['_fixPosition'](_0x1b377d['start'],_0x5bb43c),this['_fixPosition'](_0x1b377d['end'],_0x5bb43c)),_0x3f5416=this['_fixRange'](_0x701e3f,_0x13f7c4);_0x5bb43c['markers']['set'](_0x31735a,_0x701e3f),this['_markers']['set'](_0x31735a,_0x3f5416);}this['_applyOperations'](_0x37a5a9,_0x42087b,_0x26aea7);}['_applyOperations'](_0xcbfd9f,_0x3a66d6,_0x8f5ad3){for(const _0x28a2d1 of this['source']['getOperations'](_0xcbfd9f,_0x3a66d6))this['_handleOperation'](_0x28a2d1,_0x8f5ad3);for(const _0x4610dd of this['_diffRoots']['values']())_0x4610dd['markers']['clear']();for(const [_0x2614e6,_0x7f1729]of this['_markers']){this['_diffRoots']['get'](_0x7f1729['root']['rootName'])['markers']['set'](_0x2614e6,_0x7f1729['clone']());}const _0x5d63e3=new Map(),_0x38bad5=new Map();for(const [_0x30d314,_0x5e66d3]of this['_diffRoots'])_0x5d63e3['set'](_0x30d314,x(_0x5e66d3)),_0x38bad5['set'](_0x30d314,this['_diffRootsAttributes']['get'](_0x30d314));this['_saveMetaData'](_0x3a66d6,_0x5d63e3,this['_markers'],_0x38bad5);}['_getPreviousFrom'](_0x3c58c5){const _0x5f400e=Array['from'](this['_savedMetaData']['keys']());_0x5f400e['sort']((_0x21225d,_0x2360b2)=>_0x21225d-_0x2360b2),_0x5f400e['reverse']();for(const _0x14acca of _0x5f400e)if(_0x14acca<_0x3c58c5)return _0x14acca;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5efa4a,_0x252151){const _0x4c5a00=Array['from'](_0x252151['markers'])['map'](([_0x23846a,_0x3a39bf])=>[_0x23846a,this['_fixRange'](_0x3a39bf,_0x5efa4a)]);_0x5efa4a['markers']=new Map(_0x4c5a00);}['_transformMarkers'](_0x239435){for(const _0x5ed010 of this['_markers']['values']()){const _0x1a6f05=_0x5ed010['getTransformedByOperation'](_0x239435),_0x4903b1=_0x17ba4e['_createFromRanges'](_0x1a6f05);_0x5ed010['start']=_0x4903b1['start'],_0x5ed010['end']=_0x4903b1['end'];}}['_handleOperation'](_0x206d0b,_0x42a413){if('addRoot'!=_0x206d0b['type']&&'detachRoot'!=_0x206d0b['type']){if('insert'==_0x206d0b['type']){const _0x9c3bd6=_0x206d0b['position']['root']['rootName'];this['_diffRoots']['has'](_0x9c3bd6)||(this['_diffRoots']['set'](_0x9c3bd6,N(_0x9c3bd6,!0x0)),this['_diffRootsAttributes']['set'](_0x9c3bd6,{}),_0x42a413&&this['_idsRoots']['set'](_0x9c3bd6,N(_0x9c3bd6,!0x0)));}else{if('addRootAttribute'==_0x206d0b['type']||'removeRootAttribute'==_0x206d0b['type']||'changeRootAttribute'==_0x206d0b['type'])return void this['_handleRootAttributeOperation'](_0x206d0b);'marker'==_0x206d0b['type']&&this['_handleMarkerOperation'](_0x206d0b);}if('marker'!==_0x206d0b['type']){const _0x3313d5=this['_cloneOperation'](_0x206d0b,this['_diffRoots']);_0x3313d5['_execute'](),this['_transformMarkers'](_0x3313d5);}if(_0x42a413)switch(_0x206d0b['type']){case'insert':this['_handleInsertOperation'](_0x206d0b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x206d0b);break;case'merge':this['_handleMergeOperation'](_0x206d0b);break;case'split':this['_handleSplitOperation'](_0x206d0b);}}else this['_handleRootOperation'](_0x206d0b,_0x42a413);}['_cloneOperation'](_0x170357,_0x2a2b50){const _0x6dc634=_0x170357['clone']();return _0x6dc634['_authorId']=_0x170357['_authorId'],this['_fixOperation'](_0x6dc634,_0x2a2b50),_0x6dc634;}['_getBaseVids'](_0x4d7108){return _0x4d7108['map'](_0x5e9a68=>{const _0xee8570=this['_getVidAttributeName'](_0x5e9a68);return Number(_0x5e9a68['item']['getAttribute'](_0xee8570));});}['_generateTape'](_0x1dcad6,_0x16a355){if(_0x1dcad6['is']('element','$text'))_0x16a355['push']({'item':_0x1dcad6,'type':'text'});else{_0x1dcad6['is']('element')&&_0x16a355['push']({'item':_0x1dcad6,'type':'elementStart'});for(const _0x105521 of _0x1dcad6['getChildren']())this['_generateTape'](_0x105521,_0x16a355);_0x1dcad6['is']('element')&&_0x16a355['push']({'item':_0x1dcad6,'type':'elementEnd'});}return _0x16a355;}['_getState'](){const _0x464756=new Map(this['_touched']),_0x19921b=new Map(_0x464756),_0x162328=new Map(),_0x242d61={'insertions':{},'deletions':{}},_0x37edf5={'insertions':{},'deletions':{}},_0x3fa651=new Map(),_0x17e768=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x17e768['delete']('$graveyard');for(const _0x569251 of _0x17e768){const _0x2d4c8e=this['_diffRoots']['get'](_0x569251)||N(_0x569251,!0x1),_0x2143a9=this['_baseRoots']['get'](_0x569251)||N(_0x569251,!0x1);_0x2d4c8e['isAttached']()||_0x2143a9['isAttached']()?(_0x242d61['insertions'][_0x569251]=x(_0x2d4c8e),_0x242d61['deletions'][_0x569251]=x(_0x2143a9),this['_copyMarkers'](_0x242d61['deletions'][_0x569251],_0x2143a9),this['_copyMarkers'](_0x242d61['insertions'][_0x569251],_0x2d4c8e),_0x37edf5['insertions'][_0x569251]=this['_generateTape'](this['_idsRoots']['get'](_0x569251),[]),_0x37edf5['deletions'][_0x569251]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x569251)||N(_0x569251,!0x1),[])):_0x17e768['delete'](_0x569251);}for(const _0x32a1aa of _0x17e768){const _0x482a74=_0x37edf5['insertions'][_0x32a1aa];for(const _0x4aad2c of _0x482a74){const _0x36bf40=this['_getVidAttributeName'](_0x4aad2c),_0x3eb86c=_0x4aad2c['item']['getAttribute'](_0x36bf40);_0x19921b['delete'](_0x3eb86c),_0x3eb86c>=this['_startingRevisionId']&&_0x162328['set'](_0x3eb86c,_0x464756['get'](_0x3eb86c));}}for(const _0x2c16bc of _0x17e768){const _0x3a677a=_0x37edf5['insertions'][_0x2c16bc],_0x2402b8=this['_getBaseVids'](_0x37edf5['deletions'][_0x2c16bc]);let _0x37ec0c=0x0;for(const _0x3c842a of _0x3a677a){const _0x5b37ee=this['_getVidAttributeName'](_0x3c842a),_0x4645ce=_0x3c842a['item']['getAttribute'](_0x5b37ee);if(!_0x162328['has'](_0x4645ce)&&!_0x3fa651['has'](_0x4645ce)){if(_0x19921b['has'](_0x4645ce))_0x37ec0c++;else{if(_0x4645ce!=_0x2402b8[_0x37ec0c]){const _0x27c62b=_0x464756['get'](_0x4645ce)||_0x464756['get'](_0x2402b8[_0x37ec0c]);for(;_0x4645ce!=_0x2402b8[_0x37ec0c];)_0x19921b['has'](_0x2402b8[_0x37ec0c])||(_0x3fa651['set'](_0x2402b8[_0x37ec0c],_0x27c62b),_0x464756['set'](_0x2402b8[_0x37ec0c],_0x27c62b)),_0x37ec0c++;}_0x37ec0c++;}}}}for(const _0x114aac of _0x17e768){const _0x2ccf6e=_0x37edf5['insertions'][_0x114aac];for(const _0x3841a3 of _0x2ccf6e){const _0x1f229d=this['_getVidAttributeName'](_0x3841a3),_0x3d7b11=_0x3841a3['item']['getAttribute'](_0x1f229d);if(_0x3fa651['has'](_0x3d7b11)){const _0x439570=_0x3fa651['get'](_0x3d7b11);_0x19921b['has'](_0x3d7b11)||_0x19921b['set'](_0x3d7b11,{..._0x439570}),_0x162328['set'](_0x3d7b11,{..._0x439570});}}}for(const _0x2ff7a1 of _0x19921b['keys']())_0x2ff7a1>=this['_startingRevisionId']&&_0x19921b['delete'](_0x2ff7a1);const _0x275e1b=new Map();for(const _0x104025 of _0x17e768){let _0x4fffe4=_0x37edf5['insertions'][_0x104025];for(const _0x47dac9 of _0x4fffe4)if(_0x47dac9['item']['is']('element','tableCell')){const _0x779fe0=this['_getVidAttributeName'](_0x47dac9),_0x53bae6=_0x47dac9['item']['getAttribute'](_0x779fe0);if(_0x162328['has'](_0x53bae6)){const _0xbd4449=_0x47dac9['item']['parent']['parent']['getAttribute']('vid_start'),_0x12ca94=_0x275e1b['get'](_0xbd4449)||new Set();_0x12ca94['add'](_0x162328['get'](_0x53bae6)['userId']),_0x275e1b['set'](_0xbd4449,_0x12ca94);}}_0x4fffe4=_0x37edf5['deletions'][_0x104025];for(const _0x2fc4cc of _0x4fffe4)if(_0x2fc4cc['item']['is']('element','tableCell')){const _0x4b7c7e=this['_getVidAttributeName'](_0x2fc4cc),_0x4cb1fc=_0x2fc4cc['item']['getAttribute'](_0x4b7c7e);if(_0x19921b['has'](_0x4cb1fc)){const _0x563199=_0x2fc4cc['item']['parent']['parent']['getAttribute']('vid_start'),_0x74de2a=_0x275e1b['get'](_0x563199)||new Set();_0x74de2a['add'](_0x19921b['get'](_0x4cb1fc)['userId']),_0x275e1b['set'](_0x563199,_0x74de2a);}}for(const _0x53c475 of _0x275e1b['keys']())(_0x162328['has'](_0x53c475)||_0x19921b['has'](_0x53c475))&&_0x275e1b['delete'](_0x53c475);}for(const _0x2d3f95 of _0x17e768){const _0x2a62bf=_0x37edf5['insertions'][_0x2d3f95];let _0x4cc659=null,_0x1a6bc1=null;for(const _0x23b281 of _0x2a62bf){const _0x2a153a=this['_getVidAttributeName'](_0x23b281),_0x502634=_0x23b281['item']['getAttribute'](_0x2a153a),_0x2f5d3c=_0x275e1b['get'](_0x502634);_0x2f5d3c&&'elementStart'==_0x23b281['type']&&(_0x4cc659=Array['from'](_0x2f5d3c)[0x0],_0x1a6bc1=_0x23b281['item']['getAttribute']('vid_end')),_0x4cc659&&(_0x19921b['set'](_0x502634,{'userId':_0x4cc659}),_0x162328['set'](_0x502634,{'userId':_0x4cc659})),_0x502634==_0x1a6bc1&&(_0x4cc659=null,_0x1a6bc1=null);}}const _0x7c4aa5={},_0x317375=new Set();for(const _0x39e022 of _0x17e768){const _0xd7fc96=_0x242d61['deletions'][_0x39e022],_0x123b4a=_0x242d61['insertions'][_0x39e022];for(const {userId:_0x496ef7}of this['_touchedMarkers']['values']())null!==_0x496ef7&&_0x317375['add'](_0x496ef7);for(const {userId:_0x179813}of this['_touchedRoots']['values']())null!==_0x179813&&_0x317375['add'](_0x179813);this['_markChanges'](_0x123b4a,_0x37edf5['insertions'][_0x39e022],_0x162328,'insertion',_0x317375),this['_markChanges'](_0xd7fc96,_0x37edf5['deletions'][_0x39e022],_0x19921b,'deletion',_0x317375),_0x7c4aa5[_0x39e022]={'insertions':this['_prepareViewToSave'](_0x123b4a),'deletions':this['_prepareViewToSave'](_0xd7fc96),'attachChange':this['_touchedRoots']['get'](_0x39e022)||null,'attributesBefore':_0x3efe9f(this['_baseRootsAttributes']['get'](_0x39e022))||{},'attributesAfter':_0x3efe9f(this['_diffRootsAttributes']['get'](_0x39e022))};}return{'diffData':_0x7c4aa5,'authorsIds':Array['from'](_0x317375)};}['_processRootBeforeSave'](_0x1b36b3){for(const [,_0x558464]of _0x1b36b3['markers']){const _0x14a6e9=_0x558464['start']['getAncestors']()['filter'](_0x8444f4=>'tableCell'==_0x8444f4['name']);for(const _0x362ff8 of _0x14a6e9)0x1==_0x362ff8['childCount']&&_0x362ff8['getChild'](0x0)['is']('element','paragraph')&&_0x362ff8['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x178c4f){this['_processRootBeforeSave'](_0x178c4f);const _0x461f6b=this['editor']['data']['toView'](_0x178c4f,{}),_0x8b90c2=Array['from'](_0x461f6b['getChildren']())['map'](_0x195a1a=>this['_getViewJson'](_0x195a1a));return JSON['stringify'](_0x8b90c2);}['_getViewJson'](_0x3d0105){if(_0x3d0105['is']('$text'))return _0x3d0105['data'];{const _0x4e72c0=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x54aba3=_0x3d0105,_0x40c838=this['editor']['data']['htmlProcessor']['domConverter'],_0x5f0f07={'type':_0x4e72c0['_getTypeCharForViewElement'](_0x54aba3),'name':_0x54aba3['name'],'attributes':Array['from'](_0x54aba3['getAttributes']()),'children':Array['from'](_0x54aba3['getChildren']())['map'](_0x35c92a=>this['_getViewJson'](_0x35c92a))};if(_0x3d0105['is']('uiElement')&&'$comment'!=_0x3d0105['name']){const _0x17d6b4=_0x3d0105['render'](_0x40c838['domDocument'],_0x40c838);_0x5f0f07['children']['push'](_0x17d6b4['outerHTML']);}else{if(_0x3d0105['is']('rawElement')){const _0x1ba23a=_0x40c838['domDocument']['createElement'](_0x54aba3['name']);_0x3d0105['render'](_0x1ba23a,_0x40c838),_0x5f0f07['children']['push'](_0x1ba23a['innerHTML']);}}const _0x2f0630=Array['from'](_0x54aba3['getCustomProperties']());_0x2f0630['length']>0x0&&(_0x5f0f07['customProperties']=_0x2f0630);const _0x5acbf9=_0x54aba3['getFillerOffset']();return null!==_0x5acbf9&&(_0x5f0f07['fillerOffset']=_0x5acbf9),_0x5f0f07;}}['_markChanges'](_0x5f0bce,_0x1fa4c0,_0x25030d,_0x513663,_0x5364b1){let _0x172d5d=null,_0x49249b=null,_0x129459=0x0;const _0xb81087=this['editor']['model'];for(let _0x444eda=0x0;_0x444eda<_0x1fa4c0['length'];_0x444eda++){const _0x3e9968=this['_getVidAttributeName'](_0x1fa4c0[_0x444eda]),_0x439785=_0x1fa4c0[_0x444eda]['item']['getAttribute'](_0x3e9968),_0x26b0b0=_0x25030d['get'](_0x439785),_0x3f38ff=_0x444eda==_0x1fa4c0['length']-0x1;(!_0x172d5d&&_0x26b0b0&&(_0x172d5d=_0x26b0b0,_0x49249b=_0x1fa4c0[_0x444eda]),_0x172d5d&&(!_0x26b0b0||_0x26b0b0['userId']!=_0x172d5d['userId']))&&(_0x250dff(_0x26b0b0,P(_0x49249b,_0x5f0bce,_0xb81087),P(_0x1fa4c0[_0x444eda],_0x5f0bce,_0xb81087)),_0x172d5d=_0x26b0b0||null,_0x49249b=_0x26b0b0?_0x1fa4c0[_0x444eda]:null),_0x172d5d&&_0x3f38ff&&_0x250dff(_0x26b0b0,P(_0x49249b,_0x5f0bce,_0xb81087),V(_0x1fa4c0[_0x444eda],_0x5f0bce,_0xb81087));}function _0x250dff(_0x49be0c,_0x2bf227,_0x2c979b){const _0x4bee84=_0x172d5d['userId'],_0xbccc5='revision:'+_0x513663+':'+_0x4bee84+':'+_0x129459++,_0x21afdd=_0xb81087['createRange'](_0x2bf227,_0x2c979b);_0x5f0bce['markers']['set'](_0xbccc5,_0x21afdd),null!==_0x4bee84&&_0x5364b1['add'](_0x4bee84);}}['_getVidAttributeName'](_0x3d6e38){switch(_0x3d6e38['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3e2ffc,_0x404c86){_0x3e2ffc['baseVersion']=null;for(const _0x8f5ccf in _0x3e2ffc){const _0x5167d4=_0x3e2ffc[_0x8f5ccf];if(_0x5167d4 instanceof _0x3f473d){const _0x4d34a2=_0x404c86['get'](_0x5167d4['root']['rootName']);_0x3e2ffc[_0x8f5ccf]=this['_fixPosition'](_0x5167d4,_0x4d34a2);}if(_0x5167d4 instanceof _0x17ba4e){const _0x1b4185=_0x404c86['get'](_0x5167d4['root']['rootName']);_0x3e2ffc[_0x8f5ccf]=this['_fixRange'](_0x5167d4,_0x1b4185);}'root'===_0x8f5ccf&&(_0x3e2ffc['root']=_0x404c86['get'](_0x3e2ffc['root']['rootName']));}}['_fixRange'](_0x22d173,_0x577ac6){return this['editor']['model']['createRange'](this['_fixPosition'](_0x22d173['start'],_0x577ac6),this['_fixPosition'](_0x22d173['end'],_0x577ac6));}['_fixPosition'](_0x249fe3,_0x3986b9){return this['editor']['model']['createPositionFromPath'](_0x3986b9,_0x249fe3['path'],_0x249fe3['stickiness']);}['_handleInsertOperation'](_0x14edee){const _0xe216ed=this['_idsRoots']['get'](_0x14edee['position']['root']['rootName']),_0x4b54ff=this['_fixPosition'](_0x14edee['position'],_0xe216ed),_0x837651=null===_0x14edee['_authorId']?null:_0x14edee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48df88=_0x4b54ff['parent'],_0x3fdac4=this['_revisionId'],_0x108b7a=[];for(const _0x5d726a of _0x14edee['nodes'])if(_0x5d726a['is']('element'))_0x108b7a['push'](this['_makeIdsRoot'](_0x5d726a));else{for(let _0x50ef37=0x0;_0x50ef37<_0x5d726a['offsetSize'];_0x50ef37++)_0x108b7a['push'](new _0x26dd35('$text',{'vid':this['_revisionId']++}));}const _0x2b07c8=this['_revisionId'];for(let _0x4b51c9=_0x3fdac4;_0x4b51c9<_0x2b07c8;_0x4b51c9++)this['_touched']['set'](_0x4b51c9,{'userId':_0x837651});_0x48df88['_insertChild'](_0x4b54ff['offset'],_0x108b7a);}['_handleMoveOperation'](_0x53ab9c){(_0x53ab9c=this['_cloneOperation'](_0x53ab9c,this['_idsRoots']))['_execute']();const _0x413c70=null===_0x53ab9c['_authorId']?null:_0x53ab9c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x309763=_0x53ab9c['getMovedRangeStart'](),_0x196c87=_0x309763['parent'],_0x3bca7e=_0x309763['offset'];!function _0x23b3c1(_0x22c0e3,_0x509152,_0x1570db,_0x499d6c){for(let _0x3694a0=_0x1570db;_0x3694a0<_0x499d6c;_0x3694a0++){const _0x2c2684=_0x509152['getChild'](_0x3694a0);_0x2c2684['is']('element','$text')?_0x22c0e3['set'](_0x2c2684['getAttribute']('vid'),{'userId':_0x413c70}):(_0x22c0e3['set'](_0x2c2684['getAttribute']('vid_start'),{'userId':_0x413c70}),_0x23b3c1(_0x22c0e3,_0x2c2684,0x0,_0x2c2684['childCount']),_0x22c0e3['set'](_0x2c2684['getAttribute']('vid_end'),{'userId':_0x413c70}));}}(this['_touched'],_0x196c87,_0x3bca7e,_0x3bca7e+_0x53ab9c['howMany']);}['_handleMergeOperation'](_0x57a367){const _0x227799=null===(_0x57a367=this['_cloneOperation'](_0x57a367,this['_idsRoots']))['_authorId']?null:_0x57a367['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x59203b=_0x57a367['targetPosition']['parent'],_0x1a4c45=_0x57a367['sourcePosition']['parent'],_0x3ecfba=_0x59203b['getAttribute']('vid_end'),_0x5a38b0=_0x1a4c45['getAttribute']('vid_start');_0x59203b['_setAttribute']('vid_end',_0x1a4c45['getAttribute']('vid_end')),_0x1a4c45['_setAttribute']('vid_end',_0x3ecfba),this['_touched']['set'](_0x5a38b0,{'userId':_0x227799}),this['_touched']['set'](_0x3ecfba,{'userId':_0x227799}),_0x57a367['_execute']();}['_handleSplitOperation'](_0x4bc05e){const _0x18ce5d=null===(_0x4bc05e=this['_cloneOperation'](_0x4bc05e,this['_idsRoots']))['_authorId']?null:_0x4bc05e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f5c7d=_0x4bc05e['graveyardPosition'],_0x3935c2=_0x4bc05e['splitPosition']['parent'];_0x4bc05e['_execute']();const _0x33583f=_0x3935c2['getAttribute']('vid_end'),_0x23e58b=_0x4bc05e['insertionPosition']['nodeAfter'];if(_0x5f5c7d){const _0x295533=_0x23e58b['getAttribute']('vid_end'),_0x3a1f1d=_0x3935c2['getAttribute']('vid_end');_0x3935c2['_setAttribute']('vid_end',_0x295533),_0x23e58b['_setAttribute']('vid_end',_0x3a1f1d),this['_touched']['set'](_0x3935c2['getAttribute']('vid_end'),{'userId':_0x18ce5d}),this['_touched']['set'](_0x23e58b['getAttribute']('vid_start'),{'userId':_0x18ce5d});}else{const _0x24aaac=this['_revisionId']++,_0x563186=this['_revisionId']++;_0x3935c2['_setAttribute']('vid_end',_0x24aaac),_0x23e58b['_setAttribute']('vid_start',_0x563186),_0x23e58b['_setAttribute']('vid_end',_0x33583f),this['_touched']['set'](_0x24aaac,{'userId':_0x18ce5d}),this['_touched']['set'](_0x563186,{'userId':_0x18ce5d});}}['_handleMarkerOperation'](_0x1bca29){if(!_0x1bca29['affectsData'])return;const _0x31e6c2=(_0x1bca29=this['_cloneOperation'](_0x1bca29,this['_diffRoots']))['oldRange']?_0x1bca29['oldRange']['root']:null,_0x178592=_0x1bca29['newRange']?_0x1bca29['newRange']['root']:null;_0x31e6c2&&this['_markers']['delete'](_0x1bca29['name']),_0x178592&&this['_markers']['set'](_0x1bca29['name'],_0x1bca29['newRange']['clone']());const _0x470fff=null===_0x1bca29['_authorId']?null:_0x1bca29['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b15d7=_0x1bca29['name'];if(!this['_touchedMarkers']['has'](_0x3b15d7))return void this['_touchedMarkers']['set'](_0x3b15d7,{'range':_0x1bca29['oldRange'],'userId':_0x470fff});const _0x1672c9=this['_touchedMarkers']['get'](_0x3b15d7),_0x20087a=_0x1672c9['range'],_0x212486=_0x1bca29['newRange'];null==_0x20087a&&null==_0x212486||_0x20087a&&_0x212486&&_0x20087a['isEqual'](_0x212486)?this['_touchedMarkers']['delete'](_0x1bca29['name']):_0x1672c9['userId']=_0x470fff;}['_handleRootOperation'](_0x17cece,_0x353c7d){this['_diffRoots']['has'](_0x17cece['rootName'])?this['_diffRoots']['get'](_0x17cece['rootName'])['_isAttached']=_0x17cece['isAdd']:(this['_diffRoots']['set'](_0x17cece['rootName'],N(_0x17cece['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x17cece['rootName'],{}),_0x353c7d&&this['_idsRoots']['set'](_0x17cece['rootName'],N(_0x17cece['rootName'],!0x0)));const _0x3b908f=null===_0x17cece['_authorId']?null:_0x17cece['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb818e6=this['_touchedRoots']['get'](_0x17cece['rootName']);_0xb818e6&&_0xb818e6['userId']===_0x3b908f?this['_touchedRoots']['delete'](_0x17cece['rootName']):this['_touchedRoots']['set'](_0x17cece['rootName'],{'userId':_0x3b908f,'isAttached':_0x17cece['isAdd']});}['_handleRootAttributeOperation'](_0x3063b0){const _0x5e7a5f=this['_diffRootsAttributes']['get'](_0x3063b0['root']['rootName']);null===_0x3063b0['newValue']?delete _0x5e7a5f[_0x3063b0['key']]:_0x5e7a5f[_0x3063b0['key']]=_0x3063b0['newValue'];}}function x(_0x247843){const _0x533952=N(_0x247843['rootName'],_0x247843['isAttached']());for(const _0x32bb33 of _0x247843['getChildren']()){const _0x185b3e=_0x32bb33['_clone'](!0x0);_0x533952['_appendChild'](_0x185b3e);}return _0x533952;}function N(_0x3238e1,_0x4f4334=!0x0){const _0x7bca00=new _0x187e7a();return _0x7bca00['rootName']=_0x3238e1,_0x7bca00['_isAttached']=_0x4f4334,_0x7bca00['isAttached']=()=>_0x7bca00['_isAttached'],_0x7bca00;}function P(_0xec2982,_0x4dfb78,_0x3c873e){const _0x2e991b='elementEnd'==_0xec2982['type']?_0x3c873e['createPositionAt'](_0xec2982['item'],'end'):_0x3c873e['createPositionBefore'](_0xec2982['item']);return _0x3c873e['createPositionFromPath'](_0x4dfb78,_0x2e991b['path'],_0x2e991b['stickiness']);}function V(_0x46c5ce,_0x238ef1,_0x2b018f){const _0x587032='elementStart'==_0x46c5ce['type']?_0x2b018f['createPositionAt'](_0x46c5ce['item'],0x0):_0x2b018f['createPositionAfter'](_0x46c5ce['item']);return _0x2b018f['createPositionFromPath'](_0x238ef1,_0x587032['path'],_0x587032['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
+ _0x4d336e(_0x59d538){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x19b28a,_0x2c192f){super(_0x19b28a),this['focusTracker']=new _0x59de6d(),this['keystrokes']=new _0x44f42e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c192f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x2c6473({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2d48b5=_0x70a092=>_0x70a092['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2d48b5),this['keystrokes']['set']('arrowleft',_0x2d48b5),this['keystrokes']['set']('arrowup',_0x2d48b5),this['keystrokes']['set']('arrowdown',_0x2d48b5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x34f16e){this['revisionNameInputView']['fieldView']['element']['value']=_0x34f16e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3be631){const _0x28a6a2=new et(this['locale'],ti),_0x5c6ab5=_0x28a6a2['fieldView'];_0x5c6ab5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x317a4b=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3be631&&(_0x317a4b+='\x20('+R(this['locale'],'optional')+')'),(_0x28a6a2['label']=_0x317a4b,_0x5c6ab5['on']('input',()=>{this['revisionNameInputValue']=_0x5c6ab5['element']['value']['trim']();}),_0x28a6a2);}}class v extends _0x509aae{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x14bcce=this['editor'],_0x128c0c=_0x14bcce['plugins']['get']('RevisionTracker');_0x14bcce['ui']['componentFactory']['add']('revisionHistory',_0x5f12a6=>{const _0x3a9487=_0xdbd6ae(_0x5f12a6),_0x2466aa=_0x3a9487['panelView']['children'],_0x3e16b2=new _0x4d4131(_0x5f12a6),_0x11f29e=new _0x36873e(_0x5f12a6),_0x4c88c9=new _0x5874dc(_0x5f12a6),_0x375ac6=new _0x36873e(_0x5f12a6),_0x45d658=new _0x5874dc(_0x5f12a6);return _0x3a9487['bind']('isEnabled')['to'](_0x128c0c,'isReady',_0x128c0c,'isEnabled',_0x14bcce,'isReadOnly',(_0x4cf6af,_0x3131f8,_0x4e46d2)=>_0x4cf6af&&_0x3131f8&&!_0x4e46d2),_0x3a9487['buttonView']['set']({'icon':_0xf22200,'label':R(_0x5f12a6,'Revision\x20history'),'tooltip':!0x0}),_0x4c88c9['set']({'label':R(_0x5f12a6,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4c88c9['bind']('isEnabled')['to'](_0x128c0c,'isReady',_0x128c0c,'isEnabled',_0x14bcce,'isReadOnly',(_0x53a8bc,_0xbdcc4d,_0x47b893)=>_0x53a8bc&&_0xbdcc4d&&!_0x47b893),_0x4c88c9['on']('execute',()=>this['_showDialog']()),_0x45d658['set']({'label':R(_0x5f12a6,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x45d658['bind']('isEnabled')['to'](_0x128c0c,'isReady',_0x14bcce,'isReadOnly',(_0x187ea3,_0x270d33)=>_0x187ea3&&!_0x270d33),_0x45d658['on']('execute',()=>{_0x14bcce['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3a9487['isOpen']=!0x1,_0x14bcce['editing']['view']['focus']();}),_0x11f29e['children']['add'](_0x4c88c9),_0x375ac6['children']['add'](_0x45d658),_0x3e16b2['role']='menu',_0x3e16b2['items']['addMany']([_0x11f29e,_0x375ac6]),_0x2466aa['add'](_0x3e16b2),_0x3a9487;}),_0x14bcce['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xc58a71=this['editor'],_0x3357e8=_0xc58a71['locale'],_0xa1db52=new _0xce0bba(_0x3357e8),_0x54491b=new _0x433936(_0x3357e8);_0xa1db52['buttonView']['set']({'icon':_0xf22200,'label':R(_0x3357e8,'Revision\x20history')});const _0x3fb938=new _0x47cd1d(_0x3357e8,_0xa1db52),_0x40b9b5=new _0xad25de(_0x3357e8);_0x40b9b5['set']({'label':R(_0x3357e8,'Save\x20current\x20revision')}),_0x40b9b5['delegate']('execute')['to'](_0xa1db52),_0x40b9b5['on']('execute',()=>{this['_showDialog']();}),_0x3fb938['children']['add'](_0x40b9b5),_0x54491b['items']['add'](_0x3fb938);const _0x4323b2=new _0x47cd1d(_0x3357e8,_0xa1db52),_0x236335=new _0xad25de(_0x3357e8);return _0x236335['set']({'label':R(_0x3357e8,'Open\x20revision\x20history')}),_0x236335['delegate']('execute')['to'](_0xa1db52),_0x236335['on']('execute',()=>{_0xc58a71['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4323b2['children']['add'](_0x236335),_0x54491b['items']['add'](_0x4323b2),_0xa1db52['panelView']['children']['add'](_0x54491b),_0xa1db52;}['_showDialog'](){const _0x47275c=this['editor'],_0x5ef368=_0x47275c['locale'],_0x4270b8=_0x47275c['plugins']['get']('Dialog'),_0x554c77=_0x47275c['plugins']['get']('RevisionTracker');function _0xc6f6aa(_0x1b106b){_0x47275c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1b106b['revisionName']?_0x1b106b['revisionNameInputView']['errorText']=R(_0x5ef368,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x47275c['plugins']['get'](h)['saveRevision']({'name':_0x1b106b['revisionName']}),_0x4270b8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xc6f6aa(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4270b8['show']({'id':'revisionSave','title':R(_0x5ef368,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x47275c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4270b8['hide']()},{'label':R(_0x47275c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x45fb04){_0x45fb04['bind']('isEnabled')['to'](_0x554c77,'isReady',_0x554c77,'isEnabled',_0x47275c,'isReadOnly',(_0x55e74b,_0x50451f,_0x16ed00)=>_0x55e74b&&_0x50451f&&!_0x16ed00);},'onExecute':()=>_0xc6f6aa(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x9134e7=this['editor'],_0x43c3c8=_0x9134e7['locale'];this['_saveRevisionFormView']=new me(_0x43c3c8,_0x9134e7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x59d538{['changeId'];['_model'];constructor(_0x5683ef,_0x3cc386){super(_0x5683ef),this['_model']=_0x3cc386,this['changeId']=_0x3cc386['id'];const _0x2ea56c=this['bindTemplate'],_0xe73af9=R(_0x5683ef,_0x3cc386['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3cc386['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3cc386['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2ea56c['to']('type',_0x4e17b1=>'ck-revision-change__'+_0x4e17b1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe73af9}]},{'text':'\x20'+_0x3cc386['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
+ _0x287c71(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x505153){super(),this['id']=_0x505153['id']||_0x5ef564(),this['author']=_0x505153['author'],this['type']=_0x505153['type'],this['data']=_0x505153['data']||{},this['rootName']=_0x505153['rootName'],this['set']('createdAt',_0x505153['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xf0e97e,_0x365779){this['newRevisionId']=_0xf0e97e,this['oldRevisionId']=_0x365779,this['changes']=new _0x29dd17();}['_setChanges'](_0x1eb5fe){for(const _0x2e8c41 of _0x1eb5fe)this['changes']['add'](_0x2e8c41);}}class l extends _0x509aae{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4478cb,_0x48932b,S,$];}constructor(_0x15e794){super(_0x15e794),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x4ca200,_0x5c6433,_0x479970)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3764cd=>{for(const _0x5ae844 of this['editor']['editing']['view']['document']['roots'])_0x479970?_0x3764cd['removeClass']('ck-editor__editable__overlay',_0x5ae844):_0x3764cd['addClass']('ck-editor__editable__overlay',_0x5ae844);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1cdd21=>null!==_0x1cdd21),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x16b3a8,_0x171875,_0x2e0614)=>_0x16b3a8&&_0x2e0614?_0x171875['changes']['getIndex'](_0x2e0614):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xb6bd05,_0x105598)=>_0xb6bd05?_0x105598['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x48932b);}['init'](){const _0x1270ea=this['editor'],_0x5c0555=new rt(_0x1270ea,{'direction':'backward'}),_0x5454d6=new rt(_0x1270ea,{'direction':'forward'});(_0x1270ea['commands']['add']('showPreviousChange',_0x5c0555),_0x1270ea['commands']['add']('showNextChange',_0x5454d6),_0x1270ea['commands']['add']('restoreRevision',new nt(_0x1270ea)),this['on']('change:numberOfChanges',()=>{_0x5c0555['refresh'](),_0x5454d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1270ea['enableReadOnlyMode']('revision-viewer'),_0x1270ea['plugins']['has']('WidgetToolbarRepository'))&&_0x1270ea['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1cba59){return await this['_utils']['loadRevisionData'](_0x1cba59,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1cba59);}async['getRevisionRootsAttributes'](_0x59d684){return await this['_utils']['loadRevisionData'](_0x59d684,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x59d684);}async['compare'](_0x3237b9,_0x3ec6c3,_0x8383b0=!0x1){if(!this['isEnabled'])return;const _0x7659a8=this['diff'],_0x38076f=this['repository'],_0x499e6c='string'==typeof _0x3237b9?_0x38076f['getRevision'](_0x3237b9):_0x3237b9,_0x319f9f='string'==typeof _0x3ec6c3?_0x38076f['getRevision'](_0x3ec6c3):_0x3ec6c3,_0x4b1476=_0x499e6c['id'],_0x568c84=_0x319f9f?_0x319f9f['id']:null;if(!_0x8383b0&&this['diff']&&this['diff']['newRevisionId']===_0x4b1476&&this['diff']['oldRevisionId']===_0x568c84)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4b1476,_0x568c84);const _0x3ab08c=this['_getRevisionsRange'](_0x499e6c,_0x319f9f,!0x0)['map'](_0xd913e4=>this['_utils']['loadRevisionData'](_0xd913e4,this['adapter']));return _0x3ab08c['push'](new Promise(_0x1dc73d=>{setTimeout(_0x1dc73d,0x14);})),Promise['all'](_0x3ab08c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5f060e=this['_getDiff'](_0x4b1476,_0x568c84);for(const _0x16004b of _0x5f060e['changes'])this['_changeIdToChange']['set'](_0x16004b['id'],_0x16004b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x18d477=>{for(const _0x274df4 of this['editor']['model']['document']['getRootNames']())_0x18d477['detachRoot'](_0x274df4);for(const _0x433b0b of Object['keys'](_0x5f060e['model'])){const _0x2fb0e0=_0x18d477['addRoot'](_0x433b0b);for(const _0x280811 of Object['keys'](_0x5f060e['attributes'][_0x433b0b]))_0x18d477['setAttribute'](_0x280811,_0x5f060e['attributes'][_0x433b0b][_0x280811],_0x2fb0e0);_0x18d477['insert'](_0x5f060e['model'][_0x433b0b],_0x2fb0e0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5f060e['changes'])),this['isReady']=!0x0;})['catch'](_0x35b8e9=>{console['error'](_0x35b8e9),this['_cleanUp'](),_0x7659a8&&(this['diff']=_0x7659a8),this['isReady']=!0x0;});}['addRevisionData'](_0x4c1011,_0x591c2c){const _0x502a18=this['repository']['createRevision'](_0x4c1011);return _0x502a18['on']('_update',(_0x19ed35,_0x1e006c,_0x1f1e6d)=>_0x591c2c(_0x1e006c,_0x1f1e6d,_0x502a18)),this['repository']['addRevision'](_0x502a18),_0x502a18;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2b9fd5=>{for(const _0x2f3c85 of this['editor']['model']['document']['getRootNames']())_0x2b9fd5['detachRoot'](_0x2f3c85);});}['_sortAndFilterDiffChanges'](_0x107797){const _0x5e1b40=[],_0x4f2adc=new Map();for(const _0x2c0a10 of this['editor']['model']['document']['getRootNames']()){const _0x236645=this['editor']['editing']['view']['getDomRoot'](_0x2c0a10);if(!_0x236645)continue;const _0x2de7d0=_0x236645['getClientRects']()['item'](0x0);_0x2de7d0&&(_0x5e1b40['push'](_0x2c0a10),_0x4f2adc['set'](_0x2c0a10,_0x2de7d0));}return _0x5e1b40['sort']((_0x1b0533,_0x42ad53)=>{const _0x253c51=_0x4f2adc['get'](_0x1b0533),_0x5c9583=_0x4f2adc['get'](_0x42ad53);return _0x253c51['y']-_0x5c9583['y']||_0x253c51['x']-_0x5c9583['x'];}),(_0x107797=_0x107797['filter'](_0x494425=>_0x5e1b40['includes'](_0x494425['rootName'])))['sort']((_0x25767d,_0x2fe543)=>_0x5e1b40['indexOf'](_0x25767d['rootName'])-_0x5e1b40['indexOf'](_0x2fe543['rootName'])),_0x107797;}['_makeTape'](_0x40fe13){const _0xcd00e6=Array['from'](_0x40fe13['markers'])['filter'](([_0x33b41c,_0x110c7e])=>_0x33b41c['startsWith']('revision:')&&!_0x110c7e['isCollapsed']),_0x3a1ac3=Array['from'](this['editor']['model']['createRangeIn'](_0x40fe13)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xcd00e6['length'])for(const _0x3d83b6 of _0x3a1ac3){const [_0x241205,_0x41a2d3]=_0xcd00e6[0x0],[,_0xa3af49,_0x1dc89a]=_0x241205['split'](':');if(_0x41a2d3['end']['isEqual'](_0x3d83b6['nextPosition'])&&_0xcd00e6['shift'](),(_0x3d83b6['previousPosition']['isEqual'](_0x41a2d3['start'])||_0x3d83b6['previousPosition']['isAfter'](_0x41a2d3['start']))&&('insertion'==_0xa3af49?_0x3d83b6['isAdded']={'userId':_0x1dc89a}:'deletion'==_0xa3af49&&(_0x3d83b6['isRemoved']={'userId':_0x1dc89a})),0x0==_0xcd00e6['length'])break;}return _0x3a1ac3;}['_refreshStartEndIndex'](_0x34a384){const _0x85501a=new Map();for(let _0xf32427=0x0;_0xf32427<_0x34a384['length'];_0xf32427++)'text'===_0x34a384[_0xf32427]['type']?(_0x34a384[_0xf32427]['item']['startIndex']=_0xf32427,_0x34a384[_0xf32427]['item']['endIndex']=_0xf32427):('elementStart'===_0x34a384[_0xf32427]['type']?_0x34a384[_0xf32427]['item']['startIndex']=_0xf32427:'elementEnd'===_0x34a384[_0xf32427]['type']&&(_0x34a384[_0xf32427]['item']['endIndex']=_0xf32427),_0x85501a['set'](_0x34a384[_0xf32427]['id'],_0xf32427));for(const _0x2b60d0 of _0x85501a['values']())'elementStart'===_0x34a384[_0x2b60d0]['type']?_0x34a384[_0x2b60d0]['item']['endIndex']=_0x85501a['get'](_0x34a384[_0x2b60d0]['pairId']):'elementEnd'===_0x34a384[_0x2b60d0]['type']&&(_0x34a384[_0x2b60d0]['item']['startIndex']=_0x85501a['get'](_0x34a384[_0x2b60d0]['pairId']));}['_processTape'](_0x33991c){for(let _0xace217=0x0;_0xace217<_0x33991c['length'];_0xace217++){if('elementStart'===_0x33991c[_0xace217]['type'])_0x33991c[_0xace217]['item']['startIndex']=_0xace217;else{if('elementEnd'===_0x33991c[_0xace217]['type']){_0x33991c[_0xace217]['item']['endIndex']=_0xace217;const _0x2a27d4=_0x33991c[_0xace217]['item']['startIndex'];_0x33991c[_0x2a27d4]['pairId']=_0x33991c[_0xace217]['id'],_0x33991c[_0xace217]['pairId']=_0x33991c[_0x2a27d4]['id'];}else _0x33991c[_0xace217]['item']['startIndex']=_0xace217,_0x33991c[_0xace217]['item']['endIndex']=_0xace217,_0x33991c[_0xace217]['pairId']=null;}_0x33991c[_0xace217]['markersStart']||(_0x33991c[_0xace217]['markersStart']=[],_0x33991c[_0xace217]['markersEnd']=[]);}}['_markInsertions'](_0x3afb88,_0xba8e7d){const _0x22f855=_0x3afb88['filter'](_0x57f8e8=>!_0x57f8e8['isAdded']);for(let _0x4cbf27=0x0;_0x4cbf27<_0xba8e7d['length'];_0x4cbf27++)_0xba8e7d[_0x4cbf27]['isAdded']&&(_0x22f855[_0x4cbf27]['isAdded']=_0xba8e7d[_0x4cbf27]['isAdded']);}['_getDiff'](_0x56701f,_0x1d3dce=null){const _0x53249b=this['repository']['getRevision'](_0x56701f),_0x4b2d3c=_0x1d3dce?this['repository']['getRevision'](_0x1d3dce):null,_0x45866f=this['_getRevisionsRange'](_0x53249b,_0x4b2d3c),_0x169b74=_0x45866f[_0x45866f['length']-0x1],_0x46e253=new Map(),_0x30f8a8={'model':{},'attributes':{},'changes':[]},_0x4175c2=new Set(),_0x244ca1=new Map();for(let _0x37cc33=_0x45866f['length']-0x1;_0x37cc33>=0x0;_0x37cc33--){const _0x9badf6=_0x45866f[_0x37cc33];for(const _0x5095cf of Object['keys'](_0x9badf6['diffData']))if(_0x9badf6['diffData'][_0x5095cf]['attachChange']){const _0x302f37=_0x9badf6['diffData'][_0x5095cf]['attachChange'];_0x302f37['isAttached']?(_0x4175c2['add'](_0x5095cf),_0x244ca1['has'](_0x5095cf)&&_0x244ca1['get'](_0x5095cf)['userId']==_0x302f37['userId']?_0x244ca1['delete'](_0x5095cf):_0x244ca1['set'](_0x5095cf,_0x302f37)):_0x244ca1['has'](_0x5095cf)?(_0x4175c2['delete'](_0x5095cf),_0x244ca1['delete'](_0x5095cf)):(_0x4175c2['add'](_0x5095cf),_0x244ca1['set'](_0x5095cf,_0x302f37));}else _0x4175c2['add'](_0x5095cf);}for(const _0x4d19a8 of _0x4175c2){const _0x25d844=_0x244ca1['has'](_0x4d19a8)&&!_0x244ca1['get'](_0x4d19a8)['isAttached'];let _0x3fad2b=_0x25d844?_0x45866f['length']-0x1:0x0;const _0x297c98=_0x25d844?-0x1:0x1;for(;_0x45866f[_0x3fad2b];){const _0x3a2547=_0x45866f[_0x3fad2b];if(_0x3a2547['diffData'][_0x4d19a8]){const _0x38f5e1=_0x25d844?_0x3a2547['diffData'][_0x4d19a8]['attributesBefore']:_0x3a2547['diffData'][_0x4d19a8]['attributesAfter'];_0x30f8a8['attributes'][_0x4d19a8]=_0x38f5e1?_0x3efe9f(_0x38f5e1):{};break;}_0x3fad2b+=_0x297c98;}}for(const _0x268578 of _0x45866f){_0x268578['model']={};for(const _0x556283 of _0x268578['authors'])_0x46e253['set'](_0x556283['id'],_0x556283);for(const _0x3778b2 of _0x4175c2){const _0x53ba66=_0x268578['diffData'][_0x3778b2]?_0x268578['diffData'][_0x3778b2]['insertions']:'[]',_0x4eac25=_0x268578['diffData'][_0x3778b2]?_0x268578['diffData'][_0x3778b2]['deletions']:'[]';_0x268578['model'][_0x3778b2]={'insertions':this['_utils']['_makeModelFromViewString'](_0x53ba66),'deletions':this['_utils']['_makeModelFromViewString'](_0x4eac25)};}}for(const _0x543783 of _0x4175c2){let _0x4b664f=null,_0x4f19e5=0x0;const _0x169dec=new Map(Array['from'](_0x53249b['model'][_0x543783]['insertions']['markers'])['filter'](([_0x20b404])=>!_0x20b404['startsWith']('revision:')));let _0x135a29=0x0;for(const _0x3933e0 of _0x45866f){const _0x46c4bb=this['_makeTape'](_0x3933e0['model'][_0x543783]['insertions']);_0x3933e0==_0x53249b?(_0x4b664f=_0x46c4bb,_0x4f19e5=_0x4b664f['length'],_0x4b664f['forEach'](_0x465439=>{_0x465439['id']=_0x135a29++;}),this['_processTape'](_0x4b664f)):this['_markInsertions'](_0x4b664f,_0x46c4bb);const _0x3a8ead=_0x4b664f['filter'](_0x56464b=>!_0x56464b['isAdded'])['map'](_0x22ccbd=>_0x22ccbd['id']);let _0xaced63=0x0;const _0x3d4354=this['_makeTape'](_0x3933e0['model'][_0x543783]['deletions']);_0x3d4354['forEach'](_0x1555ec=>{_0x1555ec['isRemoved']?_0x1555ec['id']=_0x4f19e5++:_0x1555ec['id']=_0x3a8ead[_0xaced63++];}),this['_processTape'](_0x3d4354),this['_setDistance'](_0x4b664f,'isAdded'),this['_setDistance'](_0x3d4354,'isRemoved'),_0x3933e0==_0x53249b&&this['_markMarkers'](_0x4b664f,_0x169dec),_0x4b664f=this['_joinTapes'](_0x4b664f,_0x3d4354),this['_refreshStartEndIndex'](_0x4b664f),this['_setDistance'](_0x4b664f,'isRemoved');}_0x4b664f=_0x4b664f['filter'](_0x6760cd=>!(_0x6760cd['isAdded']&&_0x6760cd['isRemoved']));const _0x12fb83=new Map(_0x169b74['model'][_0x543783]['deletions']['markers']),_0x2e4bd9=new Set(_0x169dec['keys']());for(const _0x221368 of _0x12fb83['keys']())_0x2e4bd9['delete'](_0x221368);this['_markSuggestions'](_0x4b664f,_0x2e4bd9),this['_fixObsoleteTags'](_0x4b664f),_0x4b664f=this['_removeMissingPairs'](_0x4b664f),_0x4b664f=this['_markMismatchedRemovedTags'](_0x4b664f),_0x4b664f=this['_removeUnsupportedChanges'](_0x4b664f);const {root:_0x4685a8,changes:_0x166e74}=this['_makeModelFromTape'](_0x4b664f,_0x46e253,_0x543783);_0x30f8a8['model'][_0x543783]=_0x4685a8;const _0x20f3a4=_0x244ca1['get'](_0x543783);if(_0x20f3a4){const _0x67defb=_0x46e253['get'](_0x20f3a4['userId']),_0x4d3071=new G({'author':_0x67defb,'type':_0x20f3a4['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x543783});_0x166e74['unshift'](_0x4d3071),_0x30f8a8['attributes'][_0x543783]['revisionHistoryAttachChange']=_0x4d3071['id'];}_0x30f8a8['changes']=_0x30f8a8['changes']['concat'](_0x166e74);}return _0x30f8a8;}['_markMarkers'](_0x344868,_0x4d5065){for(let _0x58b2bb=0x0;_0x58b2bb<_0x344868['length'];_0x58b2bb++)for(const [_0x5c45af,_0x57580d]of _0x4d5065)!_0x57580d['isCollapsed']&&_0x57580d['start']['isEqual'](_0x344868[_0x58b2bb]['previousPosition'])&&_0x344868[_0x58b2bb]['markersStart']['push'](_0x5c45af),_0x57580d['end']['isEqual'](_0x344868[_0x58b2bb]['nextPosition'])&&_0x344868[_0x58b2bb]['markersEnd']['push'](_0x5c45af);}['_joinTapes'](_0x8c4910,_0x41e209){let _0x43e8cc=[],_0xb746b9=0x0,_0x178fa3=0x0;for(;_0xb746b9<_0x8c4910['length']||_0x178fa3<_0x41e209['length'];){const _0x1cd99c=_0x8c4910[_0xb746b9]||{},_0x379577=_0x41e209[_0x178fa3]||{};if(_0x1cd99c['id']==_0x379577['id'])_0xb746b9++,_0x178fa3++,_0x43e8cc['push'](_0x1cd99c);else{if(_0x379577['isRemoved']&&_0x1cd99c['isAdded']){const {commonTape:_0x42d1ab,iEnd:_0x4e6bdc,jEnd:_0x474dcf}=this['_threeWayMerge'](_0x8c4910,_0xb746b9,_0x41e209,_0x178fa3);_0x43e8cc=_0x43e8cc['concat'](_0x42d1ab),_0xb746b9=_0x4e6bdc,_0x178fa3=_0x474dcf;}else _0x379577['isRemoved']?(_0x178fa3++,_0x43e8cc['push'](_0x379577)):(_0xb746b9++,_0x43e8cc['push'](_0x1cd99c));}}return _0x43e8cc;}['_markSuggestions'](_0x15e426,_0x513b23){const _0x30c818=[];for(let _0x213a4a=0x0;_0x213a4a<_0x15e426['length'];_0x213a4a++){for(let _0x57ea81=0x0;_0x57ea81<_0x15e426[_0x213a4a]['markersStart']['length'];_0x57ea81++){const _0x12d5ce=_0x15e426[_0x213a4a]['markersStart'][_0x57ea81];if(!_0x513b23['has'](_0x12d5ce))continue;const {group:_0x23c68e,type:_0x11cf9b,authorId:_0x71dfd1}=_0x326b05(_0x12d5ce);'revision-suggestion'!=_0x23c68e||'insertion'!=_0x11cf9b&&'deletion'!=_0x11cf9b||(_0x30c818['unshift']({'type':_0x11cf9b,'name':_0x12d5ce,'userId':_0x71dfd1}),_0x15e426[_0x213a4a]['markersStart']['splice'](_0x57ea81,0x1),_0x57ea81--);}_0x49a91e(_0x15e426[_0x213a4a]);for(let _0x4bcc0e=0x0;_0x4bcc0e<_0x15e426[_0x213a4a]['markersEnd']['length'];_0x4bcc0e++){const _0x1e36cc=_0x15e426[_0x213a4a]['markersEnd'][_0x4bcc0e];if(!_0x513b23['has'](_0x1e36cc))continue;const {group:_0x5706c1,type:_0x416fdb}=_0x326b05(_0x1e36cc);if('revision-suggestion'!=_0x5706c1||'insertion'!=_0x416fdb&&'deletion'!=_0x416fdb)continue;_0x15e426[_0x213a4a]['markersEnd']['splice'](_0x4bcc0e,0x1),_0x4bcc0e--;const _0x2de862=_0x30c818['findIndex'](_0x40f82f=>_0x40f82f['name']==_0x1e36cc);_0x2de862>-0x1&&_0x30c818['splice'](_0x2de862,0x1);}}function _0x326b05(_0x4d42e7){const _0x399abb=_0x4d42e7['split'](':');return{'group':_0x399abb[0x0],'type':_0x399abb[0x1],'subType':_0x399abb['length']>=0x5?_0x399abb[0x2]:null,'id':_0x399abb['length']<0x5?_0x399abb[0x2]:_0x399abb[0x3],'authorId':_0x399abb['length']<0x5?_0x399abb[0x3]:_0x399abb[0x4],'markerCount':0x6==_0x399abb['length']?_0x399abb[0x5]:null};}function _0x49a91e(_0x3ef445){for(let _0x9f2ee8=0x0;_0x9f2ee8<_0x30c818['length'];_0x9f2ee8++){if(_0x3ef445['isAdded']&&'insertion'==_0x30c818[_0x9f2ee8]['type']&&_0x3ef445['isAdded']['userId']==_0x30c818[_0x9f2ee8]['userId'])return _0x3ef445['isAddSuggestion']=_0x30c818[_0x9f2ee8],void delete _0x3ef445['isAdded'];if(!_0x3ef445['isAdded']&&!_0x3ef445['isRemoved']&&'deletion'==_0x30c818[_0x9f2ee8]['type'])return void(_0x3ef445['isRemoveSuggestion']=_0x30c818[_0x9f2ee8]);}}}['_setDistance'](_0x5c8605,_0x33691a){let _0x380753=0x0,_0x42434f=!0x1;const _0x2e38e8=new Map();for(const _0x259cdd of _0x5c8605)_0x259cdd[_0x33691a]?_0x42434f&&(_0x380753++,_0x42434f=!0x1):(_0x380753++,_0x42434f=!0x0),_0x2e38e8['set'](_0x259cdd['id'],_0x380753);for(let _0x4ce79a=0x0;_0x4ce79a<_0x5c8605['length'];_0x4ce79a++){if('isRemoved'==_0x33691a&&_0x5c8605[_0x4ce79a]['isAdded']||'isAdded'==_0x33691a&&_0x5c8605[_0x4ce79a]['isRemoved'])continue;if('text'==_0x5c8605[_0x4ce79a]['type']){_0x5c8605[_0x4ce79a]['distance']=0x0;continue;}const _0x4a76ea=_0x2e38e8['get'](_0x5c8605[_0x4ce79a]['pairId']),_0x4dc60e=_0x2e38e8['get'](_0x5c8605[_0x4ce79a]['id']);_0x5c8605[_0x4ce79a]['distance']=_0x4a76ea-_0x4dc60e;}}['_getRevisionsRange'](_0x4fbccf,_0x571595,_0x314ef6=!0x1){const _0x1cd5c1=[];let _0x5969c2=this['repository']['getIndex'](_0x4fbccf),_0x132303=this['repository']['getIndex'](_0x571595);for(-0x1==_0x132303&&(_0x132303=this['repository']['_revisions']['length'],_0x314ef6=!0x1);_0x5969c2<_0x132303;)_0x1cd5c1['push'](this['repository']['getRevision'](_0x5969c2)),_0x5969c2++;return _0x314ef6&&_0x1cd5c1['push'](this['repository']['getRevision'](_0x5969c2)),_0x1cd5c1;}['_threeWayMerge'](_0x163c3c,_0x6dcff4,_0x3fa576,_0x38f0c1){const _0x1baaac=this['editor']['model']['schema'];let _0x319667=_0x6dcff4;for(;_0x163c3c[_0x319667]&&_0x163c3c[_0x319667]['isAdded'];)_0x319667++;let _0xb3d942=_0x38f0c1;for(;_0x3fa576[_0xb3d942]&&_0x3fa576[_0xb3d942]['isRemoved'];)_0xb3d942++;_0x524b6a(_0x163c3c,_0x6dcff4,_0x319667),_0x524b6a(_0x3fa576,_0x38f0c1,_0xb3d942);const _0x2b3a81=_0x3fa576['slice'](_0x38f0c1,_0xb3d942)['concat'](_0x163c3c['slice'](_0x6dcff4,_0x319667));return _0x2b3a81['sort']((_0x58c75c,_0x41e64c)=>_0x58c75c['side']!=_0x41e64c['side']?_0x58c75c['side']-_0x41e64c['side']:_0x58c75c['level']!=_0x41e64c['level']?_0x58c75c['level']-_0x41e64c['level']:_0x58c75c['distance']!=_0x41e64c['distance']?_0x41e64c['distance']-_0x58c75c['distance']:!!_0x58c75c['isAdded']!=!!_0x41e64c['isAdded']?-0x1==_0x58c75c['side']||0x0==_0x58c75c['side']?_0x58c75c['isAdded']?-0x1:0x1:_0x58c75c['isAdded']?0x1:-0x1:_0x58c75c['index']-_0x41e64c['index']),{'commonTape':_0x2b3a81,'iEnd':_0x319667,'jEnd':_0xb3d942};function _0x524b6a(_0x41e972,_0x594afe,_0x162753){let _0x5be811=-0x1,_0x1fc42a=Number['POSITIVE_INFINITY'],_0x183bfe=!0x0;for(let _0x578958=_0x594afe;_0x578958<_0x162753;_0x578958++)if(_0x1baaac['isInline'](_0x41e972[_0x578958]['item'])||(_0x183bfe=!0x1),_0x41e972[_0x578958]['item']['startIndex']<_0x594afe&&(_0x5be811=_0x578958),_0x41e972[_0x578958]['item']['endIndex']>=_0x162753){_0x1fc42a=_0x578958;break;}_0x183bfe&&(_0x5be811=_0x162753-0x1);for(let _0x8177fa=_0x594afe;_0x8177fa<_0x162753;_0x8177fa++)_0x41e972[_0x8177fa]['side']=_0x8177fa<=_0x5be811?-0x1:_0x8177fa<_0x1fc42a?0x0:0x1,_0x41e972[_0x8177fa]['index']=_0x8177fa;let _0x46b711=0x0;for(let _0x132aff=_0x594afe;_0x132aff<=_0x5be811;_0x132aff++)0x0==_0x41e972[_0x132aff]['distance']?_0x41e972[_0x132aff]['level']=_0x46b711:(_0x46b711++,_0x41e972[_0x132aff]['level']=_0x46b711,_0x46b711++);for(let _0x2c5943=_0x594afe;_0x2c5943<_0x162753;_0x2c5943++)0x0==_0x41e972[_0x2c5943]['side']&&(_0x41e972[_0x2c5943]['level']=_0x46b711);_0x46b711=0x0;for(let _0x14aa27=_0x162753-0x1;_0x14aa27>=_0x1fc42a;_0x14aa27--)0x0==_0x41e972[_0x14aa27]['distance']?_0x41e972[_0x14aa27]['level']=_0x46b711:(_0x46b711--,_0x41e972[_0x14aa27]['level']=_0x46b711,_0x46b711--);}}['_fixObsoleteTags'](_0x201da8){const _0x22306b=new Map(),_0x3262d8=this['editor']['model']['schema'];for(let _0xf8113e=0x1;_0xf8113e<_0x201da8['length'];_0xf8113e++){let _0x26f1ec,_0x492e46,_0xba2219;const _0x150a58=_0x201da8[_0xf8113e],_0xfd9a86=_0x201da8[_0xf8113e-0x1];if('text'==_0x150a58['type'])continue;if(_0x150a58['type']!=_0xfd9a86['type'])continue;if(!_0x3262d8['isBlock'](_0xfd9a86['item'])||_0x3262d8['isLimit'](_0xfd9a86['item']))continue;if(!_0x3262d8['isBlock'](_0x150a58['item'])||_0x3262d8['isLimit'](_0x150a58['item']))continue;if((_0x201da8[_0xf8113e]['isAdded']||_0x201da8[_0xf8113e]['isAddSuggestion'])&&_0x201da8[_0xf8113e-0x1]['isRemoved'])_0x26f1ec=_0x201da8[_0xf8113e],_0x492e46=_0x201da8[_0xf8113e-0x1],_0xba2219=_0xf8113e-0x1;else{if(!_0x201da8[_0xf8113e]['isRemoved']||!_0x201da8[_0xf8113e-0x1]['isAdded']&&!_0x201da8[_0xf8113e-0x1]['isAddSuggestion'])continue;_0x26f1ec=_0x201da8[_0xf8113e-0x1],_0x492e46=_0x201da8[_0xf8113e],_0xba2219=_0xf8113e;}const _0x2e75a8=_0x26f1ec['level']==_0x492e46['level'],_0x2e2f41=Math['abs'](_0x26f1ec['level'])<Math['abs'](_0x492e46['level'])&&0x0==_0x492e46['distance'];(_0x2e75a8||_0x2e2f41)&&(_0x22306b['set'](_0x492e46['id'],_0x26f1ec['id']),_0x201da8['splice'](_0xba2219,0x1),_0xf8113e--,_0x26f1ec['isAdded']=!0x1);}for(let _0xce308=0x0;_0xce308<_0x201da8['length'];_0xce308++)_0x22306b['has'](_0x201da8[_0xce308]['pairId'])&&(_0x201da8[_0xce308]['pairId']=_0x22306b['get'](_0x201da8[_0xce308]['pairId']));}['_removeMissingPairs'](_0x26bf41){const _0x5689f6=new Set(_0x26bf41['map'](_0x260512=>_0x260512['id']));for(let _0x5b880a=0x0;_0x5b880a<_0x26bf41['length'];_0x5b880a++)_0x5689f6['has'](_0x26bf41[_0x5b880a]['pairId'])||0x0==_0x26bf41[_0x5b880a]['distance']||(_0x26bf41[_0x5b880a]['isIncorrect']=!0x0);return _0x26bf41['filter'](_0x540474=>!_0x540474['isIncorrect']);}['_markMismatchedRemovedTags'](_0x52eb4a){const _0x51f2ed=new Set();for(let _0x480b21=0x0;_0x480b21<_0x52eb4a['length'];_0x480b21++){if(_0x51f2ed['has'](_0x52eb4a[_0x480b21]['id'])&&_0x52eb4a[_0x480b21]['isRemoved']&&(_0x52eb4a[_0x480b21]['isIncorrect']=!0x0),_0x52eb4a[_0x480b21]['isIncorrect'])continue;if(0x0==_0x52eb4a[_0x480b21]['distance'])continue;if('elementStart'!=_0x52eb4a[_0x480b21]['type'])continue;if(null==_0x52eb4a[_0x480b21]['pairId'])continue;let _0x7a7cb0=_0x480b21+0x1,_0x3ab17e=0x0;for(;_0x52eb4a[_0x7a7cb0]['id']!=_0x52eb4a[_0x480b21]['pairId'];)'elementStart'==_0x52eb4a[_0x7a7cb0]['type']?_0x3ab17e++:'elementEnd'==_0x52eb4a[_0x7a7cb0]['type']&&_0x3ab17e--,_0x7a7cb0++;if(0x0!=_0x3ab17e){if(_0x52eb4a[_0x480b21]['isRemoved'])_0x52eb4a[_0x480b21]['isIncorrect']=!0x0;else{for(;_0x7a7cb0!=_0x480b21;)_0x52eb4a[_0x7a7cb0]['isRemoved']&&0x0!=_0x52eb4a[_0x7a7cb0]['distance']&&(_0x52eb4a[_0x7a7cb0]['isIncorrect']=!0x0,_0x51f2ed['add'](_0x52eb4a[_0x7a7cb0]['pairId'])),_0x7a7cb0--;}}}return _0x52eb4a['filter'](_0x12310f=>!_0x12310f['isIncorrect']);}['_removeUnsupportedChanges'](_0x3026ad){const _0x15212a=this['editor']['model']['schema'];for(let _0x1be028=0x0;_0x1be028<_0x3026ad['length'];_0x1be028++){if(!(_0x3026ad[_0x1be028]['isAdded']||_0x3026ad[_0x1be028]['isAddSuggestion']||_0x3026ad[_0x1be028]['isRemoved']||_0x3026ad[_0x1be028]['isRemoveSuggestion']))continue;if(0x0==_0x3026ad[_0x1be028]['distance'])continue;const _0x51946e=_0x3026ad[_0x1be028]['item'];_0x15212a['isBlock'](_0x51946e)||_0x15212a['isLimit'](_0x51946e)||(_0x3026ad[_0x1be028]['isAdded']&&delete _0x3026ad[_0x1be028]['isAdded'],_0x3026ad[_0x1be028]['isAddSuggestion']&&delete _0x3026ad[_0x1be028]['isAddSuggestion'],_0x3026ad[_0x1be028]['isRemoveSuggestion']&&delete _0x3026ad[_0x1be028]['isRemoveSuggestion'],_0x3026ad[_0x1be028]['isRemoved']&&(_0x3026ad[_0x1be028]['isIncorrect']=!0x0));}return _0x3026ad['filter'](_0x3cc7b4=>!_0x3cc7b4['isIncorrect']);}['_makeModelFromTape'](_0x2ee6fe,_0x2c3219,_0x6345ab){const _0x380b15=new _0x187e7a(),_0x5d6957=[],_0x3a71ca=new Map(),_0x2b4df9=this['editor']['model'],_0x15ce4b=_0x2b4df9['schema'],_0x31e397=[_0x380b15],_0x29efb5={},_0xf8c321={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x41dfb2=null;const _0x32ebe5=[0x0];for(let _0x58f65f=0x0;_0x58f65f<_0x2ee6fe['length'];_0x58f65f++)if('elementStart'===_0x2ee6fe[_0x58f65f]['type']){_0x2ee6fe[_0x58f65f]['previousPosition']=_0x2b4df9['createPositionFromPath'](_0x380b15,_0x32ebe5);const _0x29db08=new _0x26dd35(_0x2ee6fe[_0x58f65f]['item']['name'],_0x2ee6fe[_0x58f65f]['item']['getAttributes']());_0x31e397[0x0]['_appendChild'](_0x29db08),_0x32ebe5['push'](0x0),_0x31e397['unshift'](_0x29db08),_0x2ee6fe[_0x58f65f]['nextPosition']=_0x2b4df9['createPositionFromPath'](_0x380b15,_0x32ebe5);}else'elementEnd'===_0x2ee6fe[_0x58f65f]['type']?(_0x31e397['shift'](),_0x2ee6fe[_0x58f65f]['previousPosition']=_0x2b4df9['createPositionFromPath'](_0x380b15,_0x32ebe5),_0x32ebe5['pop'](),_0x32ebe5[_0x32ebe5['length']-0x1]++,_0x2ee6fe[_0x58f65f]['nextPosition']=_0x2b4df9['createPositionFromPath'](_0x380b15,_0x32ebe5)):(_0x2ee6fe[_0x58f65f]['previousPosition']=_0x2b4df9['createPositionFromPath'](_0x380b15,_0x32ebe5),_0x41dfb2?_0x41dfb2['_data']+=_0x2ee6fe[_0x58f65f]['item']['data']:_0x41dfb2=new _0x43ad21(_0x2ee6fe[_0x58f65f]['item']['data'],_0x2ee6fe[_0x58f65f]['item']['getAttributes']()),_0x2ee6fe[_0x58f65f+0x1]&&'text'===_0x2ee6fe[_0x58f65f+0x1]['type']&&_0x2d815(_0x41dfb2,_0x2ee6fe[_0x58f65f+0x1]['item'])||(_0x31e397[0x0]['_appendChild'](_0x41dfb2),_0x41dfb2=null),_0x32ebe5[_0x32ebe5['length']-0x1]+=_0x2ee6fe[_0x58f65f]['item']['offsetSize'],_0x2ee6fe[_0x58f65f]['nextPosition']=_0x2b4df9['createPositionFromPath'](_0x380b15,_0x32ebe5));for(let _0x3c9b52=0x0;_0x3c9b52<_0x2ee6fe['length'];_0x3c9b52++){const _0xcd7e27=_0x2ee6fe[_0x3c9b52]['previousPosition'],_0x210f95=_0x2ee6fe[_0x3c9b52]['nextPosition'];for(const _0x462803 of _0x2ee6fe[_0x3c9b52]['markersStart'])_0x3a71ca['set'](_0x462803,{'start':_0xcd7e27,'end':null});_0x36febc('isRemoveSuggestion',_0x3c9b52,_0xcd7e27,_0x210f95),_0x36febc('isAddSuggestion',_0x3c9b52,_0xcd7e27,_0x210f95),_0x36febc('isRemoved',_0x3c9b52,_0xcd7e27,_0x210f95),_0x36febc('isAdded',_0x3c9b52,_0xcd7e27,_0x210f95);for(const _0x31877a of _0x2ee6fe[_0x3c9b52]['markersEnd']){const _0x391aeb=_0x3a71ca['get'](_0x31877a);_0x391aeb?_0x391aeb['end']=_0x210f95:_0x3a71ca['set'](_0x31877a,{'start':_0x210f95,'end':_0x210f95});}}for(const [_0x256366,_0x2ce955]of _0x3a71ca){const _0x2bcec3=this['editor']['model']['createRange'](_0x2ce955['start'],_0x2ce955['end']);_0x380b15['markers']['set'](_0x256366,_0x2bcec3);}return _0x5d6957['sort']((_0x401375,_0x188126)=>{const _0x55af7e=_0x380b15['markers']['get']('revision:'+_0x401375['id']),_0x329fa8=_0x380b15['markers']['get']('revision:'+_0x188126['id']);return _0x55af7e['start']['isBefore'](_0x329fa8['start'])?-0x1:_0x55af7e['start']['isAfter'](_0x329fa8['start'])?0x1:_0x55af7e['end']['isBefore'](_0x329fa8['end'])?-0x1:_0x55af7e['end']['isAfter'](_0x329fa8['end'])?0x1:'add'===_0x401375['type']?-0x1:0x1;}),{'root':_0x380b15,'changes':_0x5d6957};function _0x36febc(_0x31e98b,_0x2edb68,_0x48945d,_0x220fec){const _0x221e52=!!_0x2ee6fe[_0x2edb68][_0x31e98b],_0x1018e2=_0x221e52?_0x2ee6fe[_0x2edb68][_0x31e98b]['userId']:null,_0x860a7f=_0x2edb68===_0x2ee6fe['length']-0x1,_0x422470=_0xf8c321[_0x31e98b][0x0],_0x33d2a9=_0x15ce4b['isObject'](_0x2ee6fe[_0x2edb68]['item']);!_0x29efb5[_0x31e98b]&&_0x221e52?_0x29efb5[_0x31e98b]={'start':_0x48945d,'tapeItem':_0x2ee6fe[_0x2edb68],'userId':_0x1018e2,'type':_0x31e98b}:_0x29efb5[_0x31e98b]&&!_0x221e52?(_0x29efb5[_0x31e98b]['end']=_0x48945d,_0x3d68af(_0x29efb5[_0x31e98b]),_0x29efb5[_0x31e98b]=null):_0x29efb5[_0x31e98b]&&_0x221e52&&_0x29efb5[_0x31e98b]['userId']!==_0x1018e2&&(_0x29efb5[_0x31e98b]['end']=_0x48945d,_0x422470&&_0x422470['userId']===_0x29efb5[_0x31e98b]['userId']||_0x3d68af(_0x29efb5[_0x31e98b]),_0x29efb5[_0x31e98b]={'start':_0x48945d,'tapeItem':_0x2ee6fe[_0x2edb68],'userId':_0x1018e2,'type':_0x31e98b}),_0x29efb5[_0x31e98b]&&_0x33d2a9&&('elementStart'!==_0x2ee6fe[_0x2edb68]['type']||_0x422470&&_0x422470['userId']===_0x1018e2||_0xf8c321[_0x31e98b]['unshift']({'userId':_0x1018e2,'object':_0x2ee6fe[_0x2edb68]['item'],'change':_0x29efb5[_0x31e98b]}),'elementEnd'===_0x2ee6fe[_0x2edb68]['type']&&_0x422470&&_0x422470['object']===_0x2ee6fe[_0x2edb68]['item']&&(_0xf8c321[_0x31e98b]['shift'](),_0x29efb5[_0x31e98b]=_0x422470['change'])),_0x29efb5[_0x31e98b]&&_0x860a7f&&(_0x29efb5[_0x31e98b]['end']=_0x220fec,_0x3d68af(_0x29efb5[_0x31e98b]),_0x29efb5[_0x31e98b]=null);}function _0x3d68af({start:_0x4b5872,end:_0x45a951,tapeItem:_0x207707,userId:_0x244477,type:_0x3abea8}){const _0x3abd4b=_0x207707['item'],_0x485da9=_0x2b4df9['schema']['isBlock'](_0x3abd4b)&&!_0x2b4df9['schema']['isLimit'](_0x3abd4b),_0xc722b7=_0x4b5872['nodeAfter']==_0x45a951['parent']&&_0x45a951['isAtStart'];if(_0x485da9&&_0xc722b7)return;const _0x38c840=_0x2b4df9['createRange'](_0x4b5872,_0x45a951),_0x2a50e4=_0x2c3219['get'](_0x244477),_0x4789e3=new G({'author':_0x2a50e4,'type':'isAdded'==_0x3abea8||'isAddSuggestion'==_0x3abea8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3abea8||'isRemoveSuggestion'==_0x3abea8},'createdAt':new Date(),'rootName':_0x6345ab});_0x5d6957['push'](_0x4789e3),_0x380b15['markers']['set']('revision:'+_0x4789e3['id'],_0x38c840);}function _0x2d815(_0x25c488,_0x4a22a2){const _0x1c402c=_0x25c488['getAttributes'](),_0x4c069b=_0x4a22a2['getAttributes']();for(const _0x68daa3 of _0x1c402c){if(_0x68daa3[0x1]!==_0x4a22a2['getAttribute'](_0x68daa3[0x0]))return!0x1;_0x4c069b['next']();}return _0x4c069b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x370d5a=>{const _0x16e98c=_0x370d5a['markerName']['split'](':')[0x1],_0x359780=this['_getChangeFromId'](_0x16e98c);if(!_0x359780)return null;const _0x3c4ed7='add'==_0x359780['type']?'insertion':'deletion',_0x1a4133=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c4ed7];return _0x359780['data']['isSuggestion']&&_0x1a4133['push']('ck-suggestion-marker-'+_0x3c4ed7+'-new'),this['activeChange']==_0x359780&&_0x1a4133['push']('ck-suggestion-marker--active'),{'classes':_0x1a4133,'attributes':{'data-change-id':_0x16e98c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x43e294=>{_0x43e294['on']('element:pre',(_0x246bf4,_0x224417,_0x771db4)=>{const _0x34ad2d=_0x224417['viewItem']['getChild'](0x0);if(!_0x34ad2d||!_0x34ad2d['is']('element','code'))return;if(!_0x771db4['consumable']['consume'](_0x34ad2d,{'attributes':['vid_start','vid_end']}))return;const _0x3030=_0x224417['modelRange']['start']['nodeAfter'];_0x771db4['writer']['setAttribute']('vid_start',_0x34ad2d['getAttribute']('vid_start'),_0x3030),_0x771db4['writer']['setAttribute']('vid_end',_0x34ad2d['getAttribute']('vid_end'),_0x3030);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4f0fd3=>{_0x4f0fd3['on']('element',(_0xfe2407,_0x42e52c,_0x24b9d0)=>{if(!_0x24b9d0['consumable']['consume'](_0x42e52c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x42e52c['modelRange']['isCollapsed'])return;const _0x18d897=_0x42e52c['modelRange']['start']['nodeAfter'];_0x18d897['hasAttribute']('vid_start')||_0x18d897['hasAttribute']('vid')||(_0x24b9d0['writer']['setAttribute']('vid_start',_0x42e52c['viewItem']['getAttribute']('vid_start'),_0x18d897),_0x24b9d0['writer']['setAttribute']('vid_end',_0x42e52c['viewItem']['getAttribute']('vid_end'),_0x18d897));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x23ff9f=>_0x23ff9f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3f68a9,[,_0x187d9c])=>{['vid_start','vid_end','vid']['includes'](_0x187d9c)&&(_0x3f68a9['return']=!0x0,_0x3f68a9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x101e3b=>{_0x101e3b['on']('attribute:vid',(_0x53f5f2,_0x6c75bc,_0x2e2a75)=>{if('\x20'!=_0x6c75bc['item']['data']||_0x6c75bc['item']['parent']['maxOffset']>0x1)return;if(!_0x2e2a75['consumable']['consume'](_0x6c75bc['item'],_0x53f5f2['name']))return;const _0x4fdf7c=_0x2e2a75['writer'],_0x44601a=_0x2e2a75['mapper']['toViewRange'](_0x6c75bc['range']);_0x4fdf7c['wrap'](_0x44601a,_0x4fdf7c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5d97b7){const _0x547580=_0x5d97b7['plugins']['get']('RevisionViewer');return(_0x3e8baf,_0x4d9e7d,_0x1d72fe)=>{const _0x35f985=_0x4d9e7d['markerName']['split'](':')[0x1],_0x204214=_0x547580['_getChangeFromId'](_0x35f985);if(!_0x204214)return null;const _0x10277a='add'==_0x204214['type']?'split':'merge';if(!_0x1d72fe['consumable']['test'](_0x4d9e7d['markerRange'],_0x3e8baf['name']))return;const _0x544686=_0x4d9e7d['markerRange']['getWalker'](),_0x3541a6=_0x4d9e7d['markerRange']['start'],_0x10c436=_0x5d97b7['model']['schema'];let _0x5e2b96=null,_0x563d34=null,_0x577b0c=!0x1,_0x359c86=!0x1;for(const _0x2d477d of _0x544686){const _0x3b253d=_0x2d477d['item'];_0x577b0c=_0x577b0c||_0x10c436['isContent'](_0x3b253d);const _0x5e4276=_0x1d72fe['mapper']['toViewElement'](_0x3b253d);if(_0x5e4276&&_0x5e4276['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d477d['type']&&(_0x10c436['isBlock'](_0x3b253d)&&!_0x10c436['isLimit'](_0x3b253d)&&(_0x3b253d['nextSibling']||_0x3541a6['isAtEnd']?_0x5e2b96&&_0x5e2b96['parent']==_0x3b253d||(_0x5e2b96=_0x3b253d,_0x58a11f(_0x2d477d['previousPosition']),_0x359c86=!0x0):_0x563d34=_0x563d34||_0x2d477d['previousPosition']));}function _0x58a11f(_0x1906e6){const _0xd0bb70=_0x1d72fe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x10277a}),_0x5019c2=_0x1d72fe['mapper']['toViewPosition'](_0x1906e6);_0x204214['data']['isSuggestion']&&_0x1d72fe['writer']['addClass']('ck-suggestion-marker-'+_0x10277a+'-new',_0xd0bb70),_0x547580['activeChange']==_0x204214&&_0x1d72fe['writer']['addClass']('ck-suggestion-marker--active',_0xd0bb70),_0x1d72fe['writer']['insert'](_0x5019c2,_0xd0bb70),_0x1d72fe['mapper']['bindElementToMarker'](_0xd0bb70,_0x4d9e7d['markerName']);}_0x577b0c||_0x359c86||!_0x563d34||_0x58a11f(_0x563d34);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x270c72,_0x2637cb,_0x5b2b90)=>{const _0x208e55=_0x5b2b90['mapper']['markerNameToElements'](_0x2637cb['markerName']);if(_0x208e55){for(const _0x18d6e8 of _0x208e55)(_0x18d6e8['hasClass']('ck-suggestion-marker-split')||_0x18d6e8['hasClass']('ck-suggestion-marker-merge'))&&(_0x5b2b90['mapper']['unbindElementFromMarkerName'](_0x18d6e8,_0x2637cb['markerName']),_0x5b2b90['writer']['remove'](_0x18d6e8));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4b659c,_0x3c486c,_0x57afec)=>{const _0x3140b6=_0x3c486c['markerName']['split'](':')[0x1],_0x438633=this['_getChangeFromId'](_0x3140b6);if(!_0x438633)return null;const _0x288157='add'==_0x438633['type']?'split':'merge';if(_0x57afec['consumable']['test'](_0x3c486c['markerRange'],_0x4b659c['name']))for(const _0x2e5610 of _0x3c486c['markerRange']['getItems']()){if(!_0x2e5610['is']('element','softBreak'))continue;const _0x38da75=_0x57afec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x288157}),_0x28ba7a=_0x57afec['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2e5610));_0x438633['data']['isSuggestion']&&_0x57afec['writer']['addClass']('ck-suggestion-marker-'+_0x288157+'-new',_0x38da75),this['activeChange']==_0x438633&&_0x57afec['writer']['addClass']('ck-suggestion-marker--active',_0x38da75),_0x57afec['writer']['insert'](_0x28ba7a,_0x38da75),_0x57afec['mapper']['bindElementToMarker'](_0x38da75,_0x3c486c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x591fb3=>{for(const _0x3020f7 of this['editor']['model']['document']['getRootNames']()){const _0x8d6a40=this['editor']['model']['document']['getRoot'](_0x3020f7),_0x884387=this['editor']['editing']['view']['document']['getRoot'](_0x3020f7);if(_0x884387){const _0x62c6c3=_0x8d6a40['getAttribute']('revisionHistoryAttachChange');if(_0x591fb3['removeAttribute']('data-change-id',_0x884387),_0x591fb3['removeClass']('ck-revision-history-root-add',_0x884387),_0x591fb3['removeClass']('ck-revision-history-root-remove',_0x884387),_0x591fb3['removeClass']('ck-revision-history-root--active',_0x884387),_0x62c6c3){const _0x4ab2c0=this['_getChangeFromId'](_0x62c6c3);if(!_0x4ab2c0)return null;_0x591fb3['setAttribute']('data-change-id',_0x62c6c3,_0x884387),_0x591fb3['addClass']('ck-revision-history-root-'+_0x4ab2c0['type'],_0x884387),this['activeChange']==_0x4ab2c0&&_0x591fb3['addClass']('ck-revision-history-root--active',_0x884387);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x46a22a=>'revision-comment:'+_0x46a22a,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x57a0be=>'revision-suggestion:'+_0x57a0be,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x490322=>({'name':'suggestion:'+_0x490322,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x21f018=>{const _0x5d9565=_0x21f018['markerName']['split'](':')[0x1];return'insertion'!=_0x5d9565&&'deletion'!=_0x5d9565?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5d9565]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x267a96,_0xe0f106,_0x571038)=>{const _0x13ca18=_0x571038['mapper']['markerNameToElements'](_0xe0f106['markerName']);if(_0x13ca18){for(const _0x2d8a0a of _0x13ca18)_0x2d8a0a['is']('uiElement')&&(_0x571038['mapper']['unbindElementFromMarkerName'](_0x2d8a0a,_0xe0f106['markerName']),_0x571038['writer']['remove'](_0x2d8a0a));}},{'priority':'high'});}['_getChangeFromId'](_0x45aef8){return this['_changeIdToChange']['get'](_0x45aef8);}['_getViewForChange'](_0xdb3a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0xdb3a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3bbcf2,_0x1dca7f,_0x338c55,_0x538c8e)=>{_0x538c8e&&this['_balloon']['remove'](_0x538c8e),_0x338c55&&(this['_balloon']['add']({'view':_0x338c55,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5bc9ae=this['editor']['editing'],_0x733f0d=this['_getChangeFromId'](_0x338c55['changeId']);let _0x1d5fe8;if(_0x733f0d['data']['isOnRoot']){const _0x573aa0=_0x5bc9ae['view']['getDomRoot'](_0x733f0d['rootName']);_0x1d5fe8=Array['from'](_0x573aa0['getClientRects']());}else{const _0x5528a4=this['editor']['model']['markers']['get']('revision:'+_0x338c55['changeId']);_0x1d5fe8=Array['from'](_0x5bc9ae['mapper']['markerNameToElements'](_0x5528a4['name']))['map'](_0x930bb8=>_0x5bc9ae['view']['domConverter']['mapViewToDom'](_0x930bb8))['map'](_0x23fbca=>Array['from'](_0x23fbca['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1d5fe8[0x0];return _0x1d5fe8['find'](_0x53bdd4=>_0x53bdd4['top']-0x3<=this['_activeViewTarget']['y']&&_0x53bdd4['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x53bdd4['left']-0x3<=this['_activeViewTarget']['x']&&_0x53bdd4['right']+0x3>=this['_activeViewTarget']['x'])||_0x1d5fe8[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x540513,_0x139d1b,_0x1ab500,_0x2f70fc)=>{this['activeView']=_0x1ab500?this['_getViewForChange'](_0x1ab500):null,this['editor']['model']['change'](()=>{const _0xef1c74=this['editor']['editing'];_0x2f70fc&&(_0x2f70fc['data']['isOnRoot']?_0xef1c74['view']['change'](_0x29abe4=>{_0x29abe4['removeClass']('ck-revision-history-root--active',_0xef1c74['view']['document']['getRoot'](_0x2f70fc['rootName']));}):_0xef1c74['reconvertMarker']('revision:'+_0x2f70fc['id'])),_0x1ab500&&(_0x1ab500['data']['isOnRoot']?_0xef1c74['view']['change'](_0x4f288b=>{_0x4f288b['addClass']('ck-revision-history-root--active',_0xef1c74['view']['document']['getRoot'](_0x1ab500['rootName']));}):_0xef1c74['reconvertMarker']('revision:'+_0x1ab500['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x93c7bb,_0x16d693)=>{if(this['activeChange'])return;const _0x4cda65=this['_findChangeIdFromDomTarget'](_0x16d693['target']),_0x319f38=this['_changeIdToChange']['get'](_0x4cda65);_0x319f38?(this['_activeViewTarget']={'x':_0x16d693['domEvent']['x'],'y':_0x16d693['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x319f38)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x110e2c,_0x5088c0)=>{const _0x6b735d=this['_findChangeIdFromDomTarget'](_0x5088c0['target']),_0xf9feb2=this['_changeIdToChange']['get'](_0x6b735d);_0xf9feb2?(this['_activeViewTarget']={'x':_0x5088c0['domEvent']['x'],'y':_0x5088c0['domEvent']['y']},_0xf9feb2===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xf9feb2):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2b5f89){do{const _0xcc8f6a=_0x2b5f89['getAttribute']('data-change-id');if(_0xcc8f6a)return _0xcc8f6a;_0x2b5f89=_0x2b5f89['parent'];}while(_0x2b5f89);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2dd9e6=>{for(const _0x47c8f1 of this['editor']['model']['markers'])_0x2dd9e6['removeMarker'](_0x47c8f1);});}}function Q(_0x565452,_0x37c702){return(_0x5c95fa,_0x50c8ae,_0x1dcdd9)=>{if(!_0x1dcdd9['consumable']['test'](_0x50c8ae['markerRange'],_0x5c95fa['name']))return;const _0x28db6c=_0x50c8ae['markerRange']['getWalker'](),_0x5b2d2a=_0x50c8ae['markerRange']['start'],_0x9fb2c4=_0x565452['model']['schema'];let _0x2ee90=null,_0x378bf0=null,_0x494b51=!0x1,_0x3fdf77=!0x1;for(const _0x3d42a5 of _0x28db6c){const _0x5bc81c=_0x3d42a5['item'];_0x494b51=_0x494b51||_0x9fb2c4['isContent'](_0x5bc81c);const _0x2de615=_0x1dcdd9['mapper']['toViewElement'](_0x5bc81c);if(_0x2de615&&_0x2de615['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d42a5['type']&&(_0x9fb2c4['isBlock'](_0x5bc81c)&&!_0x9fb2c4['isLimit'](_0x5bc81c)&&(_0x5bc81c['nextSibling']||_0x5b2d2a['isAtEnd']?_0x2ee90&&_0x2ee90['parent']==_0x5bc81c||(_0x2ee90=_0x5bc81c,_0x2f5c31(_0x3d42a5['previousPosition']),_0x3fdf77=!0x0):_0x378bf0=_0x378bf0||_0x3d42a5['previousPosition']));}function _0x2f5c31(_0xb43dd9){const _0x3352a2=_0x1dcdd9['mapper']['toViewPosition'](_0xb43dd9),_0x25bdcf=_0x1dcdd9['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x37c702});_0x1dcdd9['writer']['insert'](_0x3352a2,_0x25bdcf),_0x1dcdd9['mapper']['bindElementToMarker'](_0x25bdcf,_0x50c8ae['markerName']);}_0x494b51||_0x3fdf77||!_0x378bf0||_0x2f5c31(_0x378bf0);};}class nt extends _0xfd458d{constructor(_0x2f9bb8){super(_0x2f9bb8);const _0x186118=_0x2f9bb8['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x186118,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x186118,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x21b611=this['editor'],_0x2b7939=_0x21b611['plugins']['get'](l),_0x537da1=_0x2b7939['isReady']?_0x2b7939['diff']['newRevisionId']:null;_0x21b611['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x537da1);}['refresh'](){const {isReady:_0x2d8f2b,isEnabled:_0x58e7b3,repository:_0x3efeec,diff:_0x2184ac}=this['editor']['plugins']['get'](l),_0x178de2=_0x2184ac&&_0x3efeec['getLaterVisibleRevision'](_0x2184ac['newRevisionId']);this['isEnabled']=_0x2d8f2b&&_0x58e7b3&&Boolean(_0x178de2);}}class rt extends _0xfd458d{['_step'];constructor(_0x1f64ec,{direction:_0x15d5d1}){super(_0x1f64ec);const _0x15e7b6=_0x1f64ec['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x15d5d1?0x1:-0x1,this['listenTo'](_0x15e7b6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x15e7b6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x15e7b6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4d29b2=this['editor'],_0x1afa02=_0x4d29b2['plugins']['get'](l),{isNavigationMode:_0x4c7092,currentChangeNumber:_0x5b3d54}=_0x1afa02;let _0x3b7053;if(_0x1afa02['activeChange']=_0x4c7092?_0x1afa02['diff']['changes']['get'](_0x5b3d54+this['_step']):_0x1afa02['diff']['changes']['first'],_0x1afa02['activeChange']['data']['isOnRoot'])_0x3b7053=_0x4d29b2['editing']['view']['getDomRoot'](_0x1afa02['activeChange']['rootName']);else{const _0x3dbe73=_0x4d29b2['model']['markers']['get']('revision:'+_0x1afa02['activeChange']['id']);_0x3b7053=_0x669bcf(_0x4d29b2['editing'],_0x3dbe73);}_0x20461a({'target':_0x3b7053,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x380421,currentChangeNumber:_0xe7f457,numberOfChanges:_0x3d1707,isReady:_0xbe24e6,isEnabled:_0x3812fa}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3812fa&&_0xbe24e6&&_0x3d1707)&&(!_0x380421||(0x1===this['_step']?_0xe7f457<_0x3d1707-0x1:_0xe7f457>0x0));}}class Ri extends _0x59d538{constructor(_0x308a18){super(_0x308a18);const _0x23bbde=this['bindTemplate'],_0x5a69b4=new _0x5874dc(_0x308a18),_0x45b866=new _0x5874dc(_0x308a18);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',(_0x4a123d,_0x271001)=>_0x4a123d&&_0x271001>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x59ce05,_0x423ace,_0x568d08,_0x1b7551)=>{if(!_0x59ce05)return R(_0x308a18,'Loading...');if(!_0x568d08)return R(_0x308a18,'No\x20changes');const _0x211ec9=R(_0x308a18,'NUMBER_OF_CHANGES',_0x568d08);return _0x1b7551?R(_0x308a18,'X_OF_Y_CHANGES',[_0x423ace+0x1,_0x568d08]):_0x211ec9;}),_0x5a69b4['set']({'label':R(_0x308a18,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x9e82f6}),_0x45b866['set']({'label':R(_0x308a18,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xc0dfe3}),_0x5a69b4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x45b866['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5a69b4['on']('execute',()=>this['fire']('execute','backward')),_0x45b866['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',_0x23bbde['if']('_isStatusLabelVisible','ck-hidden',_0x1967cc=>!_0x1967cc)]},'children':[{'text':_0x23bbde['to']('isNavigationMode',_0x21acd1=>_0x21acd1?R(_0x308a18,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x308a18,'Total')+':\x20')}]},{'text':_0x23bbde['to']('_statusText')}]},new _0x2b8726(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5a69b4,_0x45b866]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x509aae{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5501c4=this['editor']['editing']['view'];_0x5501c4['change'](_0x1bb846=>{for(const _0x4b65eb of _0x5501c4['document']['roots'])_0x1bb846['addClass'](ge,_0x4b65eb);});}['hide'](){const _0x27c623=this['editor']['editing']['view'];_0x27c623['change'](_0x52f68d=>{for(const _0x20ef16 of _0x27c623['document']['roots'])_0x52f68d['removeClass'](ge,_0x20ef16);});}}class u extends _0x509aae{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x3081db=this['editor'],_0x30467f=_0x3081db['plugins']['get'](l),_0x1e3f85=_0x3081db['plugins']['get'](ji);_0x3081db['ui']['componentFactory']['add']('exitToEditing',_0x1e47ae=>{const _0x403803=new _0x5874dc(_0x1e47ae);return _0x403803['set']({'label':R(_0x1e47ae,'Back\x20to\x20editing'),'icon':_0x2c1de5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x403803,'execute',()=>{_0x3081db['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x403803;}),_0x3081db['ui']['componentFactory']['add']('restoreRevision',_0x2ba86c=>{const _0x591225=new _0x5874dc(_0x2ba86c);return _0x591225['set']({'label':R(_0x2ba86c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x591225['bind']('isEnabled')['to'](_0x3081db['commands']['get']('restoreRevision')),this['listenTo'](_0x591225,'execute',()=>_0x3081db['execute']('restoreRevision')),_0x591225;}),_0x3081db['ui']['componentFactory']['add']('changesNavigation',_0x6bf152=>{const _0x5745a8=new Ri(_0x6bf152),_0x51c98a=_0x3081db['commands']['get']('showPreviousChange'),_0xdd58a7=_0x3081db['commands']['get']('showNextChange');return _0x5745a8['bind']('isBackwardNavigationEnabled')['to'](_0x51c98a,'isEnabled'),_0x5745a8['bind']('isForwardNavigationEnabled')['to'](_0xdd58a7,'isEnabled'),_0x5745a8['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x30467f),this['listenTo'](_0x5745a8,'execute',(_0x2fdcba,_0x351b29)=>{_0x3081db['execute']('forward'===_0x351b29?'showNextChange':'showPreviousChange');}),_0x5745a8;}),_0x1e3f85['show'](),_0x30467f['on']('change:isReady',(_0x412568,_0x212b66,_0x596a7e)=>{_0x596a7e?_0x1e3f85['hide']():_0x1e3f85['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4a0a22,_0x31b74a){super(_0x4a0a22,_0x31b74a);const _0x156f52=this['bindTemplate'];this['set']({'label':R(_0x4a0a22,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4a0a22,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x156f52['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3816d6=this['fieldView']['element'];this['_tooltipString']=_0x3816d6['scrollWidth']>_0x3816d6['clientWidth']&&_0x3816d6['value']||'';}}class ni extends _0x59d538{constructor(_0x1cb975,_0x453f02,_0x1b75e3){super(_0x1cb975);const _0x13fd2e=new _0x3c5ebd();_0x13fd2e['set']({'content':_0x5e4d67,'viewBox':'0\x200\x2011\x2010'});const _0x49aab5=['ck','ck-revision-history-sidebar__revision-author'];_0x1b75e3&&_0x49aab5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x9d4792=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1cb975,_0x1b75e3?'Revision\x20creator':'Revision\x20author')},'children':[_0x13fd2e,_0x453f02['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x49aab5},'children':_0x9d4792});}}function ci(_0x80f3ea,_0x3daf20){const _0x17a643=_0x80f3ea['bindTemplate'],_0x3629d6=_0x80f3ea['locale'],_0x1058df=_0xdbd6ae(_0x3629d6);_0x1058df['panelPosition']='sw';const _0xe1f1c1=function(_0x4ece90,_0x1bab9e){const _0xa48710=function(_0x2446cc,_0x53a1b6){const _0x1f865d=_0x2446cc['locale'],_0x436d17={'Compare\x20against\x20selected':R(_0x1f865d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1f865d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1f865d,'Restore\x20this\x20revision')};return _0x53a1b6['map'](_0x1bca47=>{const _0x1bd425=_0x436d17[_0x1bca47['name']];return _0x1bd425&&_0x1bd425!==_0x1bca47['name']&&(_0x1bca47['name']=_0x1bd425),_0x1bca47;});}(_0x4ece90,_0x1bab9e),_0x48a213=new _0x29dd17();for(const _0x2323d0 of _0xa48710){const _0x8eb36a={'type':'button','model':new to({'label':_0x2323d0['name'],'class':_0x2323d0['class'],'withText':!0x0,'role':'menuitem','_action':_0x2323d0['action']})};_0x8eb36a['model']['bind']('isEnabled')['to'](_0x4ece90,'isActionsDropdownOpen',_0x3d46fb=>'function'!=typeof _0x2323d0['isEnabled']||(!_0x3d46fb||_0x2323d0['isEnabled'](_0x4ece90))),_0x48a213['add'](_0x8eb36a);}return _0x48a213;}(_0x80f3ea,_0x3daf20);return _0x80f3ea['bind']('isActionsDropdownOpen')['to'](_0x1058df,'isOpen'),_0x1058df['buttonView']['set']({'label':R(_0x3629d6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5a9097}),_0x1058df['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x17a643['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x17a643['to'](_0x7b0fb3=>_0x7b0fb3['stopPropagation']())}}),_0x1058df['on']('execute',_0x46e34a=>{_0x80f3ea['isReady']&&'function'==typeof _0x46e34a['source']['_action']&&_0x46e34a['source']['_action'](_0x80f3ea);}),_0x315abf(_0x1058df,_0xe1f1c1,{'role':'menu'}),_0x1058df['listenTo'](_0x80f3ea,'change:isActionsDropdownOpen',(_0x31aec6,_0x37402c,_0x24c467)=>{if(_0x24c467)for(const _0x4f95ff of _0x1058df['listView']['items']){const _0x2b3694=_0x4f95ff['children']['first'],_0xe27e55=_0x3daf20['find'](_0xd0bac0=>_0xd0bac0['action']===_0x2b3694['_action'])['isVisible'];_0x4f95ff['isVisible']=void 0x0===_0xe27e55||_0xe27e55(_0x80f3ea);}}),_0x1058df;}class _i extends/* #__PURE__ -- @preserve */
27
+ _0x54514f(_0x59d538){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x29b8a7,_0x258063,_0x573424,_0x3ddedb){super(_0x29b8a7);const _0x7b0532=this['bindTemplate'],_0x4a44a2=function(_0x1651af,_0x1fe35e){const _0x54db5f=Array['from'](_0x1fe35e['authors'])['filter'](_0x121ba6=>_0x121ba6!=_0x1fe35e['creator']);return _0x1fe35e['creator']&&_0x54db5f['unshift'](_0x1fe35e['creator']),_0x54db5f['map'](_0x319b5b=>new ni(_0x1651af,_0x319b5b,_0x319b5b==_0x1fe35e['creator']));}(_0x29b8a7,_0x258063);this['id']=_0x258063['id'],this['_revision']=_0x258063,this['_requireRevisionName']=_0x3ddedb,this['bind']('name','createdAt')['to'](_0x258063),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4784f2=>{return _0x185944=_0x29b8a7['uiLanguage'],(_0x1f715a=_0x4784f2)['toLocaleDateString'](_0x185944,{'month':'long','day':'numeric'})+',\x20'+_0x1f715a['toLocaleTimeString'](_0x185944,{'hour':'numeric','minute':'numeric'});var _0x185944,_0x1f715a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x29b8a7,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x24cda7=>_0x24cda7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4103fd,_0x2e119d)=>_0x4103fd&&_0x2e119d),this['revisionActionsView']=_0x573424&&_0x573424['length']?ci(this,_0x573424):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x7b0532['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x7b0532['if']('isEnabled','ck-disabled',_0x10fcc3=>!_0x10fcc3),_0x7b0532['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x7b0532['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x7b0532['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':_0x7b0532['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':_0x4a44a2}]},this['revisionActionsView']],'on':{'click':_0x7b0532['to'](_0x59f098=>{_0x59f098['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x363eaa=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x363eaa,'change',()=>{this['_requireRevisionName']&&!_0x363eaa['value']||this['fire']('setName',{'id':this['id'],'name':_0x363eaa['value']}),_0x363eaa['value']||(_0x363eaa['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x21e901,_0x3ece4e){const _0x176ee0=_0x5c5dfc['fromJSDate'](_0x21e901)['setLocale'](_0x3ece4e),_0x144d1e=_0x5c5dfc['local'](),_0x559b9e=_0x144d1e['minus']({'days':0x1})['startOf']('day');let _0x5873ae,_0x10563f;return _0x176ee0['hasSame'](_0x144d1e,'day')?(_0x5873ae=_0x176ee0['startOf']('day')['toJSDate'](),_0x10563f=_0x176ee0['toRelativeCalendar']()):_0x176ee0['hasSame'](_0x559b9e,'day')?(_0x5873ae=_0x559b9e['toJSDate'](),_0x10563f=_0x176ee0['toRelativeCalendar']()):_0x176ee0['hasSame'](_0x144d1e,'week')?(_0x5873ae=_0x176ee0['startOf']('week')['toJSDate'](),_0x10563f=_0x176ee0['weekdayLong']||''):_0x176ee0['hasSame'](_0x144d1e,'year')?(_0x5873ae=_0x176ee0['startOf']('month')['toJSDate'](),_0x10563f=_0x176ee0['monthLong']||''):(_0x5873ae=_0x176ee0['startOf']('year')['toJSDate'](),_0x10563f=String(_0x176ee0['year'])),{'startDate':_0x5873ae,'localizedPeriodName':_0x10563f};}class bi extends _0x59d538{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4bc8fc,_0x84ca8f,_0x5e1f57,_0x3b60ff){super(_0x4bc8fc);const _0x100721=li(_0x84ca8f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x84ca8f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5e1f57,this['_requireRevisionName']=_0x3b60ff,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':_0x100721}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x144765){const _0x170c42=new _i(this['locale'],_0x144765,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x170c42);}['removeRevision'](_0x4ef371){const _0x1a6d7a=this['revisionViews']['find'](_0x1d0906=>_0x1d0906['id']===_0x4ef371['id']);this['revisionViews']['remove'](_0x1a6d7a);}}class fi extends _0x59d538{constructor(_0x24ccc9){super(_0x24ccc9);const _0x5858a5=new _0x3c5ebd();_0x5858a5['content']=_0xf22200,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5858a5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x24ccc9,'Revision\x20history')]}]});}}class di extends _0x59d538{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x329c69,_0x48bc5c,_0x3b60a8,_0xbcb96b){super(_0x329c69);const _0x4d2fa8=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x48bc5c,this['_revisionActions']=_0x3b60a8,this['_requireRevisionName']=_0xbcb96b,this['on']('select',(_0x185d49,_0x111add)=>{this['fire']('revisionSelected',_0x111add);}),this['on']('setName',(_0x48e7cd,_0x41f2f5)=>{this['fire']('revisionSetName',_0x41f2f5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x329c69),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4d2fa8['if']('isEnabled','ck-disabled',_0x4797e1=>!_0x4797e1)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4df7fb of this['_revisions'])this['_addRevision'](_0x4df7fb);this['_revisions']['on']('add',(_0x4daa1f,_0x325d42)=>{this['_addRevision'](_0x325d42);}),this['_revisions']['on']('remove',(_0x32bc61,_0x2ace24)=>{this['_removeRevision'](_0x2ace24);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x144cb7=>_0x144cb7['revisionViews']['map'](_0x5192be=>_0x5192be))['flat']();}['selectRevision'](_0x20201d){for(const _0x4e1bd2 of this['revisionViews'])_0x20201d&&_0x20201d['id']===_0x4e1bd2['id']?_0x4e1bd2['select']():_0x4e1bd2['deselect']();}['highlightRevisions'](_0xb08150){for(const _0x22ae98 of this['revisionViews'])_0xb08150['some'](({id:_0x3aff02})=>_0x3aff02===_0x22ae98['id'])?_0x22ae98['highlight']():_0x22ae98['unhighlight']();}['_addRevision'](_0x44aa3c){const _0x1b5589=li(_0x44aa3c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x7b7585=this['timePeriodViews']['get'](0x0);_0x7b7585&&_0x7b7585['startDate']['getTime']()===_0x1b5589['getTime']()||(_0x7b7585=new bi(this['locale'],_0x1b5589,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x7b7585)),_0x7b7585['addRevision'](_0x44aa3c);}['_removeRevision'](_0x2859cf){const _0x160e2a=li(_0x2859cf['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x160e2a)['removeRevision'](_0x2859cf);}['_getTimePeriodViewByStartDate'](_0x100dcb){return this['timePeriodViews']['find'](_0x1f6ec7=>_0x1f6ec7['startDate']['getTime']()===_0x100dcb['getTime']());}}class f extends _0x509aae{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
28
28
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
29
- at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x122b01){super(_0x122b01),this['_revisionViewer']=_0x122b01['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5765e7=this['_revisionsRepository']['_revisions'],_0x4e5c35=this['_createRevisionActions'](),_0x5e8c78=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x5765e7,_0x4e5c35,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',(_0x534c5d,_0xfe294a)=>{_0xfe294a['revisionViews']['on']('add',(_0x6dad96,_0xecfda7)=>{_0xecfda7['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)),_0x5e8c78['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5c65ea=this['_revisionsRepository']['getRevision'](0x0);if(_0x5c65ea){const _0x31f878=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5c65ea['id']);this['_revisionViewer']['compare'](_0x5c65ea,_0x31f878);}}['_handleRevisionSelected'](_0x142e24,_0x50ca31){const _0x3ee04b=this['_revisionsRepository']['getRevision'](_0x50ca31['id']),_0xede7e4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3ee04b['id']);this['_revisionViewer']['compare'](_0x3ee04b,_0xede7e4);}['_handleRevisionSetName'](_0x443ad3,_0x4fb741){this['_revisionsRepository']['getRevision'](_0x4fb741['id'])['setName'](_0x4fb741['name']);}['_handleDiffChange'](_0xd918ab,_0xd8b054,_0x5ef9d3){const _0x14ff00=this['_revisionsRepository']['getRevisionsInDiff'](_0x5ef9d3);_0x14ff00['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x14ff00),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x14ff00[0x0]));}['_createRevisionActions'](){const _0x5dd993=this['editor'],_0x37be46=f['availableRevisionActions'],_0x5bf482=_0x5dd993['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x5bf482['length'])return _0x5bf482['map'](_0x6953c2=>{const _0x34da35='string'==typeof _0x6953c2?Object['assign']({},_0x37be46[_0x6953c2]):_0x6953c2;return _0x34da35['action']=_0x34da35['action']['bind'](this,_0x5dd993),_0x34da35['isVisible']&&(_0x34da35['isVisible']=_0x34da35['isVisible']['bind'](this,_0x5dd993)),_0x34da35;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3b5ee2},_0x194489)=>{const _0x8ff7fe=_0x3b5ee2['get'](l),_0x3813f8=_0x8ff7fe['repository'];let _0x86b718=_0x8ff7fe['diff']['newRevisionId'],_0x153c13=_0x194489['id'];_0x3813f8['getIndex'](_0x86b718)>_0x3813f8['getIndex'](_0x153c13)&&([_0x86b718,_0x153c13]=[_0x153c13,_0x86b718]),_0x8ff7fe['compare'](_0x86b718,_0x153c13);},'isVisible':({plugins:_0x1aa365},_0x2f3012)=>{const _0xcdf8db=_0x1aa365['get'](l);return!(_0xcdf8db['repository']['getRevisionsInDiff'](_0xcdf8db['diff'])['length']>0x2)&&!_0x2f3012['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3b0c4b,{id:_0x1fb364})=>{_0x3b0c4b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1fb364);},'isVisible':({plugins:_0x2927c7},_0x3d3802)=>!!_0x2927c7['get'](l)['repository']['getLaterVisibleRevision'](_0x3d3802['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x53af73},{id:_0xd2d48b,revisionNameView:_0x541486})=>{const _0xc814ea=_0x53af73['get'](l),_0x30e447=_0xc814ea['repository']['getEarlierVisibleRevision'](_0xd2d48b);_0xc814ea['compare'](_0xd2d48b,_0x30e447),_0x541486['focus'](),_0x541486['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4b7ccb,_0xc7fdbb){super(_0x4b7ccb),this['_view']=_0xc7fdbb,this['_toolbarConfig']=st(_0x4b7ccb['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x2d0c50){const _0x515b9c=this['editor'],_0x446256=this['view'],_0x2773bb=_0x515b9c['editing']['view'],_0x35f87c=_0x446256['editable'],_0xe111c9=_0x2773bb['document']['getRoot']();_0x35f87c['name']=_0xe111c9['rootName'],_0x446256['render']();const _0x3a8a5f=_0x35f87c['element'];this['setEditableElement'](_0x35f87c['name'],_0x3a8a5f),_0x446256['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2773bb['attachDomRoot'](_0x3a8a5f),this['_elementReplacer']['replace'](_0x2d0c50,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3e9e11=this['view'],_0x3e1995=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3e1995['detachDomRoot'](_0x3e9e11['editable']['name']),_0x3e9e11['destroy']();}['_initToolbar'](){const _0x5f3169=this['view'];_0x5f3169['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5f3169['stickyPanel']['limiterElement']=_0x5f3169['element'],_0x5f3169['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x180ffe})=>_0x180ffe),_0x5f3169['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5f3169['toolbar']);}}class ii extends _0x6102c7{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2ed9eb,_0x8916b2,_0x3cee28={}){super(_0x2ed9eb),this['stickyPanel']=new _0x355e71(_0x2ed9eb),this['toolbar']=new _0x4c257a(_0x2ed9eb,{'shouldGroupWhenFull':_0x3cee28['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x2ed9eb,_0x8916b2);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
30
- _0x32dc4c(_0x308c8e){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x313acd,_0x1d6f9f){super(_0x1d6f9f),this['sourceElement']=_0x313acd,this['model']['document']['createRoot']();const _0x50127a=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x50127a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5125bc,_0x35162c){const _0x5fea6=new this(_0x5125bc,_0x35162c);return await _0x5fea6['initPlugins'](),await _0x5fea6['ui']['init'](_0x5125bc),await _0x5fea6['data']['init'](_0x5fea6['config']['get']('initialData')||''),_0x5fea6['fire']('ready'),_0x5fea6;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x3cc8d8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xabcb23){function _0x4ddd09(_0x464e0a){return _0x464e0a['map'](_0x2fb355=>String['fromCharCode'](_0x2fb355))['join']('');}super(_0xabcb23),this['result']='end',_0xabcb23[_0x4ddd09([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ddd09([0x76,0x69,0x65,0x77])][_0x4ddd09([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ddd09([0x61,0x75,0x74,0x6f]),_0xabcb23[_0x4ddd09([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4ddd09([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ddd09([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4ddd09([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4ddd09([0x6f,0x6b])});}}class ct extends _0x3cc8d8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0xfa2a17){if(super(_0xfa2a17),!this['editor']['config']['get']('revisionHistory'))throw new _0x1c8921('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x31b96a=>this['_showRevisionViewer']({..._0x31b96a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x303f5d=>this['_closeRevisionViewer'](_0x303f5d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2648c6=>this['_restoreRevision'](_0x2648c6)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3a103a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3a103a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x50dee6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x50dee6);}['getRevision'](_0x29c7e2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x29c7e2);}['getRevisions'](_0x2ac109){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2ac109||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x28e9ab=this['editor'],_0x2bf071=_0x222f71(_0x28e9ab,d),_0x43737e=_0x28e9ab['plugins']['get']('RevisionTracker'),_0x1cd592=_0x28e9ab['plugins']['get']('Users')['users'];return _0x2bf071['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2bf071['lazyRoots'],(_0x2bf071['plugins']['push'](ht,l,u,class extends _0x3cc8d8{static get['requires'](){return[l,'Users'];}['init'](){const _0x470d5f=this['editor']['plugins']['get']('Users');for(const _0x52e2d6 of _0x1cd592)_0x52e2d6['isAnonymous']||_0x470d5f['getUser'](_0x52e2d6['id'])||_0x470d5f['addUser'](_0x52e2d6);const _0x1ab59d=_0x43737e['repository']['getRevisions']();let _0x9f04d7=null;const _0x46738c=this['editor']['plugins']['get']('RevisionViewer');_0x46738c['adapter']=_0x43737e['adapter'],_0x46738c['bind']('isEnabled')['to'](_0x43737e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x28e9ab,'isReadOnly',_0x45008c=>!_0x45008c);for(const _0x2fd6ca of _0x1ab59d){const _0xb43455=null===_0x2fd6ca['creator'];if(_0xb43455&&_0x2fd6ca['toVersion']===_0x2fd6ca['fromVersion'])continue;const _0x12f6fa=_0x2fd6ca['toJSON']();_0x46738c['addRevisionData'](_0x12f6fa,(_0x388dd7,_0x273076,_0x2d81fc)=>{if(_0xb43455){if(_0x9f04d7)_0x9f04d7['_update'](_0x388dd7,_0x273076);else{if(!_0x273076){const _0xbe7c74=_0x2d81fc['toJSON']();_0xbe7c74['id']=_0x370f6e(),_0x43737e['saveRevision'](_0xbe7c74,_0x2d81fc['toVersion'])['then'](_0x30b6c9=>{_0x9f04d7=_0x30b6c9;});}}}else _0x2fd6ca['_update'](_0x388dd7,_0x273076);});}}},f),_0x2bf071);}['_enhanceShowRevisionViewerCallback'](){const _0xd954fe=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2c2a70=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x282482=this['editor']['plugins']['get']('Autosave');await _0x282482['save']();}else await _0x2c2a70['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xa46bfc=this['editor']['plugins']['get']('Dialog');_0xa46bfc['isOpen']&&_0xa46bfc['hide']();}const _0x19d72c=this['_getRevisionViewerEditorConfig']();return _0xd954fe(_0x19d72c)['then'](_0x33f7c3=>{return(this['_viewerEditor']=_0x33f7c3,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x33f7c3);})['catch'](_0x4299a9=>(console['error'](_0x4299a9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3483ba=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3483ba(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2ebdda=this['editor']['plugins']['get']('Annotations');_0x2ebdda['refreshVisibility'](),_0x2ebdda['refreshPositioning']();}})));}['_showRevisionViewer'](_0x54bd9b){const _0x5ed158=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x448ad3=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4ddab0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4ddab0,_0x54bd9b)['then'](_0x74dd86=>(_0x448ad3['style']['display']='block',_0x5ed158['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x74dd86));}['_closeRevisionViewer'](_0x14eaf4){const _0x51bd8b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x51bd8b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x14eaf4['destroy']();}async['_restoreRevision'](_0x4e08e8){const _0x2fbf9f=this['editor'],_0x2d2524=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x38970a=_0x2fbf9f['plugins']['get']('RevisionTracker'),_0x4a2266=_0x2fbf9f['plugins']['get']('RevisionHistoryUtils'),_0x40be42=_0x2d2524['repository']['getRevision'](_0x4e08e8);let _0x51a303,_0x407df5,_0x1c43dc;try{await _0x4a2266['loadRevisionData'](_0x40be42,this['adapter']),_0x51a303=_0x4a2266['getRevisionDocumentData'](_0x40be42),_0x407df5=_0x4a2266['getRevisionRootsAttributes'](_0x40be42);}catch(_0x3f6685){return void console['error'](_0x3f6685);}_0x2fbf9f['model']['change'](_0x1eed4b=>{for(const _0x27734d of Array['from'](_0x2fbf9f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1eed4b['removeMarker'](_0x27734d);}),_0x2d2524['isReady']=!0x1,_0x2fbf9f['model']['enqueueChange'](_0x59472e=>{_0x59472e['setSelection'](null),_0x59472e['removeSelectionAttribute'](_0x2fbf9f['model']['document']['selection']['getAttributeKeys']());const _0x5d62a4=Object['keys'](_0x51a303);for(const _0x269403 of _0x2fbf9f['model']['document']['roots'])'$graveyard'!=_0x269403['rootName']&&_0x269403['isAttached']()&&!_0x5d62a4['includes'](_0x269403['rootName'])&&_0x59472e['detachRoot'](_0x269403);for(const _0x263a70 of _0x5d62a4){let _0x373e70=_0x2fbf9f['model']['document']['getRoot'](_0x263a70);_0x373e70&&_0x373e70['isAttached']()||(_0x373e70=_0x59472e['addRoot'](_0x263a70));const _0xb9c057=_0x407df5[_0x263a70],_0x2d94ec=Object['keys'](_0xb9c057),_0x4de8da=_0x51a303[_0x263a70];for(const _0x13faf0 of _0x373e70['getAttributeKeys']())_0x2d94ec['includes'](_0x13faf0)||_0x59472e['removeAttribute'](_0x13faf0,_0x373e70);for(const _0x4c4230 of _0x2d94ec)_0x59472e['setAttribute'](_0x4c4230,_0x407df5[_0x263a70][_0x4c4230],_0x373e70);_0x59472e['remove'](_0x59472e['createRangeIn'](_0x373e70)),_0x59472e['insert'](_0x2fbf9f['data']['parse'](_0x4de8da,_0x373e70),_0x373e70,0x0);}});const _0x503128=R(_0x2fbf9f['locale'],'Restored');if(_0x40be42['name'])_0x1c43dc=-0x1==_0x40be42['name']['indexOf'](_0x503128)?_0x503128+':\x20'+_0x40be42['name']:_0x40be42['name'];else _0x1c43dc=_0x503128+':\x20'+(_0x40be42['createdAt']['toLocaleDateString'](_0x2fbf9f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x40be42['createdAt']['toLocaleTimeString'](_0x2fbf9f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x38970a['saveRevision']({'name':_0x1c43dc}),_0x2d2524['isReady']=!0x0,_0x2fbf9f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,wi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
29
+ at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0xf9caec){super(_0xf9caec),this['_revisionViewer']=_0xf9caec['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x7155c1=this['_revisionsRepository']['_revisions'],_0x109195=this['_createRevisionActions'](),_0xedf8eb=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x7155c1,_0x109195,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',(_0x43012e,_0x1e1a55)=>{_0x1e1a55['revisionViews']['on']('add',(_0x3c3309,_0x5bbb0b)=>{_0x5bbb0b['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)),_0xedf8eb['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4d5fad=this['_revisionsRepository']['getRevision'](0x0);if(_0x4d5fad){const _0x4ed873=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4d5fad['id']);this['_revisionViewer']['compare'](_0x4d5fad,_0x4ed873);}}['_handleRevisionSelected'](_0x5c8b65,_0x24b63f){const _0x417449=this['_revisionsRepository']['getRevision'](_0x24b63f['id']),_0x496cfb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x417449['id']);this['_revisionViewer']['compare'](_0x417449,_0x496cfb);}['_handleRevisionSetName'](_0x4723be,_0x5eab85){this['_revisionsRepository']['getRevision'](_0x5eab85['id'])['setName'](_0x5eab85['name']);}['_handleDiffChange'](_0x269ab8,_0x47ec33,_0x18e094){const _0x17af74=this['_revisionsRepository']['getRevisionsInDiff'](_0x18e094);_0x17af74['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x17af74),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x17af74[0x0]));}['_createRevisionActions'](){const _0xfbece4=this['editor'],_0x379b8a=f['availableRevisionActions'],_0x2ad599=_0xfbece4['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x2ad599['length'])return _0x2ad599['map'](_0x30c5b0=>{const _0x9d052b='string'==typeof _0x30c5b0?Object['assign']({},_0x379b8a[_0x30c5b0]):_0x30c5b0;return _0x9d052b['action']=_0x9d052b['action']['bind'](this,_0xfbece4),_0x9d052b['isVisible']&&(_0x9d052b['isVisible']=_0x9d052b['isVisible']['bind'](this,_0xfbece4)),_0x9d052b;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xd8e5d2},_0x182ea9)=>{const _0x1cbd22=_0xd8e5d2['get'](l),_0x471107=_0x1cbd22['repository'];let _0x31327a=_0x1cbd22['diff']['newRevisionId'],_0x184de5=_0x182ea9['id'];_0x471107['getIndex'](_0x31327a)>_0x471107['getIndex'](_0x184de5)&&([_0x31327a,_0x184de5]=[_0x184de5,_0x31327a]),_0x1cbd22['compare'](_0x31327a,_0x184de5);},'isVisible':({plugins:_0x2bb2f2},_0xd7a1b1)=>{const _0x204ad7=_0x2bb2f2['get'](l);return!(_0x204ad7['repository']['getRevisionsInDiff'](_0x204ad7['diff'])['length']>0x2)&&!_0xd7a1b1['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2caa4c,{id:_0x655e10})=>{_0x2caa4c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x655e10);},'isVisible':({plugins:_0xbf0eb6},_0x1ab917)=>!!_0xbf0eb6['get'](l)['repository']['getLaterVisibleRevision'](_0x1ab917['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xd89d62},{id:_0x2d9730,revisionNameView:_0x20398e})=>{const _0x294f17=_0xd89d62['get'](l),_0x491c85=_0x294f17['repository']['getEarlierVisibleRevision'](_0x2d9730);_0x294f17['compare'](_0x2d9730,_0x491c85),_0x20398e['focus'](),_0x20398e['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4e5f62,_0x212056){super(_0x4e5f62),this['_view']=_0x212056,this['_toolbarConfig']=st(_0x4e5f62['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0xcb2e2c){const _0x218d4f=this['editor'],_0x1b1c29=this['view'],_0x260952=_0x218d4f['editing']['view'],_0x33fc3b=_0x1b1c29['editable'],_0x14aa3d=_0x260952['document']['getRoot']();_0x33fc3b['name']=_0x14aa3d['rootName'],_0x1b1c29['render']();const _0xf2a347=_0x33fc3b['element'];this['setEditableElement'](_0x33fc3b['name'],_0xf2a347),_0x1b1c29['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x260952['attachDomRoot'](_0xf2a347),this['_elementReplacer']['replace'](_0xcb2e2c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x25a349=this['view'],_0xa4823e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xa4823e['detachDomRoot'](_0x25a349['editable']['name']),_0x25a349['destroy']();}['_initToolbar'](){const _0x53530f=this['view'];_0x53530f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x53530f['stickyPanel']['limiterElement']=_0x53530f['element'],_0x53530f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5bb6c9})=>_0x5bb6c9),_0x53530f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x53530f['toolbar']);}}class ii extends _0x173c14{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x32ea12,_0x4f011b,_0x3cad1c={}){super(_0x32ea12),this['stickyPanel']=new _0x56d54b(_0x32ea12),this['toolbar']=new _0x5d123f(_0x32ea12,{'shouldGroupWhenFull':_0x3cad1c['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x32ea12,_0x4f011b);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
30
+ _0x1bc375(_0x3146a8){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x347559,_0x1993cc){super(_0x1993cc),this['sourceElement']=_0x347559,this['model']['document']['createRoot']();const _0xb6d926=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0xb6d926);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x47d61f,_0x39caa4){const _0x556858=new this(_0x47d61f,_0x39caa4);return await _0x556858['initPlugins'](),await _0x556858['ui']['init'](_0x47d61f),await _0x556858['data']['init'](_0x556858['config']['get']('initialData')||''),_0x556858['fire']('ready'),_0x556858;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x509aae{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b9137){function _0x10dfef(_0x5bf00a){return _0x5bf00a['map'](_0x26cb5c=>String['fromCharCode'](_0x26cb5c))['join']('');}super(_0x4b9137),this['result']='end',_0x4b9137[_0x10dfef([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10dfef([0x76,0x69,0x65,0x77])][_0x10dfef([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10dfef([0x61,0x75,0x74,0x6f]),_0x4b9137[_0x10dfef([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x10dfef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10dfef([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x10dfef([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x10dfef([0x6f,0x6b])});}}class ct extends _0x509aae{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x87b407){if(super(_0x87b407),!this['editor']['config']['get']('revisionHistory'))throw new _0x38f5a3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2c0d82=>this['_showRevisionViewer']({..._0x2c0d82,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x566569=>this['_closeRevisionViewer'](_0x566569)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x126687=>this['_restoreRevision'](_0x126687)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x210e83){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x210e83;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4c9e74){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4c9e74);}['getRevision'](_0x4c1ea0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4c1ea0);}['getRevisions'](_0x59a181){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x59a181||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x8b9b5d=this['editor'],_0x2e66cd=_0x571ec7(_0x8b9b5d,d),_0x437d7d=_0x8b9b5d['plugins']['get']('RevisionTracker'),_0x1eba0a=_0x8b9b5d['plugins']['get']('Users')['users'];return _0x2e66cd['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2e66cd['lazyRoots'],(_0x2e66cd['plugins']['push'](ht,l,u,class extends _0x509aae{static get['requires'](){return[l,'Users'];}['init'](){const _0x10680a=this['editor']['plugins']['get']('Users');for(const _0x538dee of _0x1eba0a)_0x538dee['isAnonymous']||_0x10680a['getUser'](_0x538dee['id'])||_0x10680a['addUser'](_0x538dee);const _0x29aaed=_0x437d7d['repository']['getRevisions']();let _0x185fb7=null;const _0x29dc59=this['editor']['plugins']['get']('RevisionViewer');_0x29dc59['adapter']=_0x437d7d['adapter'],_0x29dc59['bind']('isEnabled')['to'](_0x437d7d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x8b9b5d,'isReadOnly',_0x3db810=>!_0x3db810);for(const _0x2fda12 of _0x29aaed){const _0x2f657c=null===_0x2fda12['creator'];if(_0x2f657c&&_0x2fda12['toVersion']===_0x2fda12['fromVersion'])continue;const _0x238a5f=_0x2fda12['toJSON']();_0x29dc59['addRevisionData'](_0x238a5f,(_0xa8556e,_0x52beea,_0x5ad178)=>{if(_0x2f657c){if(_0x185fb7)_0x185fb7['_update'](_0xa8556e,_0x52beea);else{if(!_0x52beea){const _0x206b8d=_0x5ad178['toJSON']();_0x206b8d['id']=_0x5ef564(),_0x437d7d['saveRevision'](_0x206b8d,_0x5ad178['toVersion'])['then'](_0x42a1c7=>{_0x185fb7=_0x42a1c7;});}}}else _0x2fda12['_update'](_0xa8556e,_0x52beea);});}}},f),_0x2e66cd);}['_enhanceShowRevisionViewerCallback'](){const _0x22d8d8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5ba5be=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x52bf8b=this['editor']['plugins']['get']('Autosave');await _0x52bf8b['save']();}else await _0x5ba5be['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1346db=this['editor']['plugins']['get']('Dialog');_0x1346db['isOpen']&&_0x1346db['hide']();}const _0x5e77c0=this['_getRevisionViewerEditorConfig']();return _0x22d8d8(_0x5e77c0)['then'](_0x141eb1=>{return(this['_viewerEditor']=_0x141eb1,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x141eb1);})['catch'](_0x3f4bed=>(console['error'](_0x3f4bed),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x27eef0=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x27eef0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2f5eff=this['editor']['plugins']['get']('Annotations');_0x2f5eff['refreshVisibility'](),_0x2f5eff['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1f4885){const _0x11423f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x19e60a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x44b308=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x44b308,_0x1f4885)['then'](_0x355511=>(_0x19e60a['style']['display']='block',_0x11423f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x355511));}['_closeRevisionViewer'](_0x344b10){const _0x247468=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x247468['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x344b10['destroy']();}async['_restoreRevision'](_0x10d40d){const _0x568c03=this['editor'],_0x196580=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x211231=_0x568c03['plugins']['get']('RevisionTracker'),_0x3050ae=_0x568c03['plugins']['get']('RevisionHistoryUtils'),_0x14ccde=_0x196580['repository']['getRevision'](_0x10d40d);let _0x341305,_0x2cc038,_0x1f4e62;try{await _0x3050ae['loadRevisionData'](_0x14ccde,this['adapter']),_0x341305=_0x3050ae['getRevisionDocumentData'](_0x14ccde),_0x2cc038=_0x3050ae['getRevisionRootsAttributes'](_0x14ccde);}catch(_0x2a813c){return void console['error'](_0x2a813c);}_0x568c03['model']['change'](_0x5a7ccb=>{for(const _0x5290c9 of Array['from'](_0x568c03['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5a7ccb['removeMarker'](_0x5290c9);}),_0x196580['isReady']=!0x1,_0x568c03['model']['enqueueChange'](_0x33b605=>{_0x33b605['setSelection'](null),_0x33b605['removeSelectionAttribute'](_0x568c03['model']['document']['selection']['getAttributeKeys']());const _0x311ebf=Object['keys'](_0x341305);for(const _0x1924bc of _0x568c03['model']['document']['roots'])'$graveyard'!=_0x1924bc['rootName']&&_0x1924bc['isAttached']()&&!_0x311ebf['includes'](_0x1924bc['rootName'])&&_0x33b605['detachRoot'](_0x1924bc);for(const _0x2ff873 of _0x311ebf){let _0x12dd7d=_0x568c03['model']['document']['getRoot'](_0x2ff873);_0x12dd7d&&_0x12dd7d['isAttached']()||(_0x12dd7d=_0x33b605['addRoot'](_0x2ff873));const _0x4be1ff=_0x2cc038[_0x2ff873],_0x2d0a2d=Object['keys'](_0x4be1ff),_0x174e9c=_0x341305[_0x2ff873];for(const _0x48d3a8 of _0x12dd7d['getAttributeKeys']())_0x2d0a2d['includes'](_0x48d3a8)||_0x33b605['removeAttribute'](_0x48d3a8,_0x12dd7d);for(const _0x5a861c of _0x2d0a2d)_0x33b605['setAttribute'](_0x5a861c,_0x2cc038[_0x2ff873][_0x5a861c],_0x12dd7d);_0x33b605['remove'](_0x33b605['createRangeIn'](_0x12dd7d)),_0x33b605['insert'](_0x568c03['data']['parse'](_0x174e9c,_0x12dd7d),_0x12dd7d,0x0);}});const _0x59f3cd=R(_0x568c03['locale'],'Restored');if(_0x14ccde['name'])_0x1f4e62=-0x1==_0x14ccde['name']['indexOf'](_0x59f3cd)?_0x59f3cd+':\x20'+_0x14ccde['name']:_0x14ccde['name'];else _0x1f4e62=_0x59f3cd+':\x20'+(_0x14ccde['createdAt']['toLocaleDateString'](_0x568c03['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x14ccde['createdAt']['toLocaleTimeString'](_0x568c03['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x211231['saveRevision']({'name':_0x1f4e62}),_0x196580['isReady']=!0x0,_0x568c03['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};