@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250523.0 → 0.0.0-nightly-20250525.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x80fd2,uid as _0x32ff0a,Collection as _0x4cc644,logWarning as _0x156045,FocusTracker as _0x1473a9,KeystrokeHandler as _0x2ff732,scrollViewportToShowTarget as _0x1e191f,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x4cce17}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4cdb56,set as _0x173cf2,unset as _0x2c1494,isEqual as _0x410915}from'es-toolkit/compat';import{Plugin as _0x156834,PendingActions as _0x50d6a9,Command as _0x1122d0,ElementApiMixin as _0x40fadd,Editor as _0x1ed093}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x543348,getMarkerDomElement as _0x1d4af0,ConfirmMixin as _0xc597a8,sanitizeEditorConfig as _0x3e03d9}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5ecb95,ViewAttributeElement as _0x1dd94f,ViewEmptyElement as _0x18272e,ViewRawElement as _0x4bc277,ViewUIElement as _0x49fee3,ViewDocumentFragment as _0x36a44f,ViewText as _0x16094e,ViewElement as _0x4ab02e,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5cdd2b,IconChevronUp as _0x183156,IconChevronDown as _0x5debcc,IconUndo as _0x5533ee,IconUser as _0x419668,IconThreeVerticalDots as _0x351c46}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2cb964,injectCssTransitionDisabler as ts,submitHandler as _0x7434ff,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x3a34e7,ListView as _0x587ef5,ListItemView as te,ButtonView as _0x9857a7,MenuBarMenuView as _0x390ac1,MenuBarMenuListView as _0x110ce8,MenuBarMenuListItemView as _0x230e5f,MenuBarMenuListItemButtonView as _0x4d2c08,ContextualBalloon as _0x3953ff,ToolbarSeparatorView as _0x354a4f,IconView as _0x502b31,addListToDropdown as _0x1dd5d5,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2a97cf}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x80fd2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2efdcd){super(),this['id']=_0x2efdcd['id']||_0x32ff0a(),this['creator']=_0x2efdcd['creator']||null,this['authors']=_0x2efdcd['authors']||[],this['diffData']=_0x2efdcd['diffData']||null,this['toVersion']=_0x2efdcd['toVersion']||0x0,this['fromVersion']=_0x2efdcd['fromVersion']||0x0,this['set']('name',_0x2efdcd['name']||''),this['set']('createdAt',_0x2efdcd['createdAt']||new Date()),this['set']('attributes',_0x2efdcd['attributes']||{});}['setName'](_0x2179a6){this['_update']({'name':_0x2179a6});}['setAttribute'](_0x3909a6,_0x4771b5){const _0x14d30e=_0x4cdb56(this['attributes']);_0x173cf2(_0x14d30e,_0x3909a6,_0x4771b5),this['_update']({'attributes':_0x14d30e});}['removeAttribute'](_0x1397b1){const _0x3881eb=_0x4cdb56(this['attributes']);_0x2c1494(_0x3881eb,_0x1397b1),this['_update']({'attributes':_0x3881eb});}['_update'](_0x402b22,_0xa70b40=!0x1){let _0x1262b3=!0x1;const _0x572876={'id':this['id']},_0x23e368=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a2bfc of _0x23e368){const _0x1e6f41=_0x402b22[_0x5a2bfc];void 0x0!==_0x1e6f41&&_0x1e6f41!==this[_0x5a2bfc]&&(this[_0x5a2bfc]=_0x1e6f41,_0x572876[_0x5a2bfc]=_0x1e6f41,_0x1262b3=!0x0);}_0x1262b3&&(_0x572876['authors']&&(_0x572876['authorsIds']=_0x572876['authors']['map'](_0x36c073=>_0x36c073['id']),delete _0x572876['authors']),this['fire']('_update',_0x572876,_0xa70b40));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x17441b=>_0x17441b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x156834{['_revisions'];static get['requires'](){return[_0x543348];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x34bd2f){super(_0x34bd2f),this['_revisions']=new _0x4cc644();}['afterInit'](){!async function(_0x2e81ab){const _0x56d3de=_0x4821a3([0x39,0x52,0x69,0x79,0x4f,0x4e,0x4b,0x50,0x5a,0x6b,0x4d,0x72,0x77,0x34,0x33,0x58,0x45,0x56,0x76,0x6e,0x36,0x31,0x54,0x47,0x49,0x53,0x35,0x48,0x57,0x73,0x37,0x63,0x62,0x65,0x6a,0x43,0x64,0x71,0x74,0x30,0x61,0x55,0x6c,0x44,0x42,0x70,0x51,0x6f,0x68,0x67,0x32,0x75,0x41,0x66,0x46,0x6d,0x78,0x59,0x4c,0x7a,0x38,0x4a]),_0x14c884=0xeb829,_0x5c68de=0x51081c42,_0x3df795=0x510f74ea^_0x5c68de,_0x2cd1a5=window[_0x4821a3([0x44,0x61,0x74,0x65])][_0x4821a3([0x6e,0x6f,0x77])](),_0x38b444=_0x2e81ab[_0x4821a3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a3d13=new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x494cbd=>{_0x38b444[_0x4821a3([0x6f,0x6e,0x63,0x65])](_0x4821a3([0x72,0x65,0x61,0x64,0x79]),_0x494cbd);}),_0x23e598={[_0x4821a3([0x6b,0x74,0x79])]:_0x4821a3([0x45,0x43]),[_0x4821a3([0x75,0x73,0x65])]:_0x4821a3([0x73,0x69,0x67]),[_0x4821a3([0x63,0x72,0x76])]:_0x4821a3([0x50,0x2d,0x32,0x35,0x36]),[_0x4821a3([0x78])]:_0x4821a3([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]),[_0x4821a3([0x79])]:_0x4821a3([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]),[_0x4821a3([0x61,0x6c,0x67])]:_0x4821a3([0x45,0x53,0x32,0x35,0x36])},_0x4fa59c=_0x38b444[_0x4821a3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4821a3([0x67,0x65,0x74])](_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x361a96(){let _0x245843,_0x4e8085=null,_0x11b174=null;try{if(_0x4fa59c==_0x4821a3([0x47,0x50,0x4c]))return _0x4821a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x245843=_0x3a0480(),!_0x245843)return _0x4821a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x245843[_0x4821a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11b174=_0x3c8c8c(_0x245843[_0x4821a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x245843[_0x4821a3([0x6a,0x74,0x69])])),await _0x326b0a()?_0x3c0dcc()?_0x14316()?_0x4821a3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d414f()?(_0x245843[_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4821a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e8085=_0x900005(_0x4821a3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x245843[_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4821a3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e8085=_0x900005(_0x4821a3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1db764()):_0x4821a3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4821a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4821a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4e6e73){return _0x4821a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14316(){const _0x3c53ef=[_0x4821a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4821a3([0x74,0x72,0x69,0x61,0x6c])][_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x245843[_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cd1a5/0x3e8:0xe10*_0x3df795;return _0x245843[_0x4821a3([0x65,0x78,0x70])]<_0x3c53ef;}function _0x3c0dcc(){const _0x55e9fe=_0x245843[_0x4821a3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x55e9fe)return!0x1;if(_0x55e9fe[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a3([0x2a])))return!0x0;if(_0x55e9fe[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a3([0x52,0x48])))return!0x0;if(_0x55e9fe[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a3([0x52,0x52,0x48]))){if(_0x26ae3f())return!0x0;if(_0x462e9a()||_0x532903())return!0x0;}return!0x1;}function _0x2d414f(){const _0x538467=_0x245843[_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x538467||0x0==_0x538467[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x239750}=new URL(window[_0x4821a3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x538467[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x239750))return!0x0;const _0x2abf04=_0x239750[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])](_0x4821a3([0x2e]));return _0x538467[_0x4821a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2406e=>_0x2406e[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a3([0x2a])))[_0x4821a3([0x6d,0x61,0x70])](_0x47d4fc=>_0x47d4fc[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])](_0x4821a3([0x2e])))[_0x4821a3([0x73,0x6f,0x6d,0x65])](_0x1c892d=>_0x2abf04[_0x4821a3([0x65,0x76,0x65,0x72,0x79])]((_0x4cdbde,_0x9463dd)=>_0x1c892d[_0x9463dd]===_0x4cdbde||_0x1c892d[_0x9463dd]===_0x4821a3([0x2a])));}function _0x1db764(){return _0x4e8085&&_0x11b174?new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b3adf,_0x542cf5)=>{_0x4e8085[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x3b3adf,_0x542cf5),_0x11b174[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x4596eb=>{_0x4596eb!=_0x4821a3([0x56,0x61,0x6c,0x69,0x64])&&_0x3b3adf(_0x4596eb);},_0x542cf5);}):_0x4e8085||_0x11b174||_0x4821a3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c8c8c(_0x290009,_0x4203ea){return new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca11a=>{if(_0x5723fd())return _0x2ca11a(_0x4821a3([0x56,0x61,0x6c,0x69,0x64]));_0x153520(),_0x38b444[_0x4821a3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4821a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7c8bdf=!0x1;const _0x57782d=_0x32ff0a();function _0x471073(_0x22abc5){return!!_0x22abc5&&(typeof _0x22abc5===_0x4821a3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22abc5===_0x4821a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22abc5[_0x4821a3([0x74,0x68,0x65,0x6e])]===_0x4821a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22abc5[_0x4821a3([0x63,0x61,0x74,0x63,0x68])]===_0x4821a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x422ab2(_0x4c89e3){_0x13a26a(_0x4c89e3)[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x28ae1c=>{if(!_0x28ae1c||_0x28ae1c[_0x4821a3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4821a3([0x6f,0x6b]))return _0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d4c6a(_0x51aaa7(_0x57782d+_0x4203ea))!=_0x28ae1c[_0x4821a3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4821a3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x15b569=>(_0x58a8ed(),_0x15b569),()=>{const _0x5b841b=_0x70bbfe();return null==_0x5b841b?(_0x58a8ed(),_0x4821a3([0x56,0x61,0x6c,0x69,0x64])):_0x4821a3(_0x2cd1a5-_0x5b841b>(0x75049842^_0x5c68de)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x2ca11a)[_0x4821a3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ca11a(_0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x258a50=0x513ef2c2^_0x5c68de;function _0x58a8ed(){const _0xb6e758=_0x4821a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d4c6a(_0x51aaa7(_0x290009)),_0x52132a=_0x482c2e(_0x1d4c6a(window[_0x4821a3([0x4d,0x61,0x74,0x68])][_0x4821a3([0x63,0x65,0x69,0x6c])](_0x2cd1a5/_0x258a50)));window[_0x4821a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4821a3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb6e758,_0x52132a);}function _0x70bbfe(){const _0x2fd9f1=_0x4821a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d4c6a(_0x51aaa7(_0x290009)),_0x58de1c=window[_0x4821a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4821a3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fd9f1);return _0x58de1c?window[_0x4821a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x482c2e(_0x58de1c),0x10)*_0x258a50:null;}function _0x13a26a(_0x54f74d){return new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17e3a6,_0x4e6ada)=>{_0x54f74d[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x17e3a6,_0x4e6ada),window[_0x4821a3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e6ada,0x5109c882^_0x5c68de);});}}_0x38b444[_0x4821a3([0x6f,0x6e])](_0x4821a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19ca55,_0x1fe303)=>{if(_0x1fe303[0x0]!=_0x290009)return _0x2ca11a(_0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fe303[0x1]={..._0x1fe303[0x1],[_0x4821a3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57782d};},{[_0x4821a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4821a3([0x68,0x69,0x67,0x68])}),_0x38b444[_0x4821a3([0x6f,0x6e])](_0x4821a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5afbfe=>{_0x471073(_0x5afbfe[_0x4821a3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7c8bdf=!0x0,_0x422ab2(_0x5afbfe[_0x4821a3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4821a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4821a3([0x6c,0x6f,0x77])}),_0x5a3d13[_0x4821a3([0x74,0x68,0x65,0x6e])](()=>{_0x7c8bdf||_0x2ca11a(_0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5723fd(){return _0x38b444[_0x4821a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4821a3([0x76,0x69,0x65,0x77])][_0x4821a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4821a3([0x61,0x75,0x74,0x6f]);}function _0x153520(){_0x38b444[_0x4821a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4821a3([0x76,0x69,0x65,0x77])][_0x4821a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4821a3([0x61,0x75,0x74,0x6f]);}}function _0x900005(_0x4db3c4){const _0x1c2a6e=[new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x730c1=>setTimeout(_0x730c1,0x5101228e^_0x5c68de)),_0x5a3d13[_0x4821a3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3569ce=>{const _0xa81be5=0x51081c45^_0x5c68de,_0x28c9=_0x2e81ab[_0x4821a3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x517151(){_0x28c9[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xa81be5&&_0x3569ce();}_0x517151(),_0x28c9[_0x4821a3([0x6f,0x6e])](_0x4821a3([0x61,0x64,0x64]),_0x517151);})),new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57dbc2=>{function _0x21cee8(){for(const _0x5254dd in window)if(window[_0x4821a3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4821a3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5254dd))&&window[_0x5254dd]==_0x14c884)return _0x57dbc2();_0x38b444[_0x4821a3([0x73,0x74,0x61,0x74,0x65])]!=_0x4821a3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4821a3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21cee8,0x51080fca^_0x5c68de);}_0x37f198(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x21cee8();})];return window[_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4821a3([0x72,0x61,0x63,0x65])](_0x1c2a6e)[_0x4821a3([0x74,0x68,0x65,0x6e])](()=>_0x4db3c4);}async function _0xba297e(){if(await _0x5a3d13,_0x37f198(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x360c6f=_0x2e81ab[_0x4821a3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2d5750=_0x2e81ab[_0x4821a3([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])](_0x360c6f[_0x4821a3([0x69,0x64])]),_0x558c71=_0x2e61df(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x558c71[_0x4821a3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x360c6f['id'],_0x2d5750?_0x2d5750['id']:null,!0x0),_0x558c71[_0x4821a3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4821a3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x558c71[_0x4821a3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x558c71[_0x4821a3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5c2e7f,void(_0x558c71[_0x4821a3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5c2e7f);}if(_0x37f198(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1aae72=_0x2e61df(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1aae72[_0x4821a3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4821a3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1aae72[_0x4821a3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1aae72[_0x4821a3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5c2e7f,_0x1aae72[_0x4821a3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5c2e7f;}_0x38b444[_0x4821a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4821a3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c2e7f,_0x38b444[_0x4821a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4821a3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c2e7f,_0x38b444[_0x4821a3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4821a3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26ae3f(){return _0x37f198(_0x4821a3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e61df(_0x4821a3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4821a3([0x73,0x74,0x61,0x74,0x65])]==_0x4821a3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x462e9a(){return _0x37f198(_0x4821a3([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 _0x532903(){return _0x37f198(_0x4821a3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x58a5f4(_0x1ea4a5){const _0x4aa918=_0x5a4108();_0x38b444[_0x4aa918]=_0x4821a3([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])+_0x1ea4a5,_0x1ea4a5[_0x4821a3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4821a3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5a4108()]=_0x14c884),_0x1ea4a5!=_0x4821a3([0x56,0x61,0x6c,0x69,0x64])&&_0xba297e();}function _0x5a4108(){const _0x419a00=window[_0x4821a3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4821a3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4821a3([0x6e,0x6f,0x77])]())[_0x4821a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4821a3([0x2e]),'');let _0x4c79de=_0x4821a3([0x52]);for(let _0x786da=0x0;_0x786da<_0x419a00[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x786da+=0x2){let _0x5883c9=window[_0x4821a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x419a00[_0x4821a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x786da,_0x786da+0x2));_0x5883c9>=_0x56d3de[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5883c9-=_0x56d3de[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c79de+=_0x56d3de[_0x5883c9];}return _0x4c79de;}function _0x3a0480(){const _0x18c165=_0x4fa59c[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])](_0x4821a3([0x2e]));if(0x3!=_0x18c165[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c30ee(_0x18c165[0x1]);function _0x2c30ee(_0x2b204f){const _0x38e809=_0x18195b(_0x2b204f);return _0x38e809&&_0x3b78cb()?_0x38e809:null;function _0x3b78cb(){const _0x4347eb=_0x38e809[_0x4821a3([0x6a,0x74,0x69])],_0x177a7b=window[_0x4821a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4347eb[_0x4821a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4347eb[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20c78a={..._0x38e809,[_0x4821a3([0x6a,0x74,0x69])]:_0x4347eb[_0x4821a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4347eb[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20c78a[_0x4821a3([0x76,0x63])],_0x51aaa7(_0x20c78a)==_0x177a7b;}}}async function _0x326b0a(){let _0x44fba9=!0x0;try{const _0x171370=_0x4fa59c[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])](_0x4821a3([0x2e])),[_0x5c2342,_0x51376d,_0x9a7302]=_0x171370;return _0x4299bc(_0x5c2342),await _0x553808(_0x5c2342,_0x51376d,_0x9a7302),_0x44fba9;}catch(_0x1b839b){return!0x1;}function _0x4299bc(_0x369d9e){const _0xe60264=_0x18195b(_0x369d9e);_0xe60264&&_0xe60264[_0x4821a3([0x61,0x6c,0x67])]==_0x4821a3([0x45,0x53,0x32,0x35,0x36])||(_0x44fba9=!0x1);}async function _0x553808(_0x11deb9,_0x573aaa,_0x2526a4){const _0x4bef14=window[_0x4821a3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4821a3([0x66,0x72,0x6f,0x6d])](_0x46559f(_0x2526a4),_0x411854=>_0x411854[_0x4821a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12dc01=new window[(_0x4821a3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4821a3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11deb9+_0x4821a3([0x2e])+_0x573aaa),_0x6282c1=window[_0x4821a3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4821a3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6282c1)return;const _0x1f9f49=await _0x6282c1[_0x4821a3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4821a3([0x6a,0x77,0x6b]),_0x23e598,{[_0x4821a3([0x6e,0x61,0x6d,0x65])]:_0x4821a3([0x45,0x43,0x44,0x53,0x41]),[_0x4821a3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4821a3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4821a3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6282c1[_0x4821a3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4821a3([0x6e,0x61,0x6d,0x65])]:_0x4821a3([0x45,0x43,0x44,0x53,0x41]),[_0x4821a3([0x68,0x61,0x73,0x68])]:{[_0x4821a3([0x6e,0x61,0x6d,0x65])]:_0x4821a3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f9f49,_0x4bef14,_0x12dc01)||(_0x44fba9=!0x1);}}function _0x18195b(_0xd6a920){return _0xd6a920[_0x4821a3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4821a3([0x65,0x79]))?JSON[_0x4821a3([0x70,0x61,0x72,0x73,0x65])](_0x46559f(_0xd6a920)):null;}function _0x46559f(_0x15f274){return window[_0x4821a3([0x61,0x74,0x6f,0x62])](_0x15f274[_0x4821a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4821a3([0x2b]))[_0x4821a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4821a3([0x2f])));}function _0x51aaa7(_0x24136d){let _0x4ce059=0x1505;function _0x6adc77(_0x514da0){for(let _0x1aa4c0=0x0;_0x1aa4c0<_0x514da0[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa4c0++){const _0x5d8f24=_0x514da0[_0x4821a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1aa4c0);_0x4ce059=(_0x4ce059<<0x5)+_0x4ce059+_0x5d8f24,_0x4ce059&=_0x4ce059;}}function _0x347b5b(_0x32cb75){Array[_0x4821a3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32cb75)?_0x32cb75[_0x4821a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x347b5b):_0x32cb75&&typeof _0x32cb75==_0x4821a3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4821a3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32cb75)[_0x4821a3([0x73,0x6f,0x72,0x74])]()[_0x4821a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x560f2c,_0x3d6ce9])=>{_0x6adc77(_0x560f2c),_0x347b5b(_0x3d6ce9);}):_0x6adc77(window[_0x4821a3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32cb75));}return _0x347b5b(_0x24136d),_0x4ce059>>>0x0;}function _0x1d4c6a(_0x3cb8c2){return _0x3cb8c2[_0x4821a3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4821a3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4821a3([0x30]));}function _0x482c2e(_0x2ef28b){return _0x2ef28b[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4821a3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4821a3([0x6a,0x6f,0x69,0x6e])]('');}function _0x37f198(_0x1098e7){return _0x38b444[_0x4821a3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4821a3([0x68,0x61,0x73])](_0x1098e7);}function _0x2e61df(_0x274e26){return _0x38b444[_0x4821a3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4821a3([0x67,0x65,0x74])](_0x274e26);}function _0x5c2e7f(){}function _0x4821a3(_0x425da0){return _0x425da0['map'](_0x478d47=>String['fromCharCode'](_0x478d47))['join']('');}_0x58a5f4(await _0x361a96());}(this);}['createRevision'](_0x163c0d){const _0x23d62c=this['editor']['plugins']['get']('Users');return new h({'id':_0x163c0d['id'],'name':_0x163c0d['name'],'creator':_0x163c0d['creatorId']?_0x23d62c['getUser'](_0x163c0d['creatorId']):null,'diffData':_0x163c0d['diffData']||_0x163c0d['data'],'authors':_0x163c0d['authorsIds']['map'](_0xe6c1be=>_0x23d62c['getUser'](_0xe6c1be)),'createdAt':new Date(_0x163c0d['createdAt']),'attributes':_0x163c0d['attributes'],'fromVersion':_0x163c0d['fromVersion'],'toVersion':_0x163c0d['toVersion']});}['addRevision'](_0x51ecda,_0x44ed87=0x0){this['_revisions']['add'](_0x51ecda,_0x44ed87);}['getRevision'](_0x1bd544){return this['_revisions']['get'](_0x1bd544);}['getRevisions'](_0x1ff38e={'toJSON':!0x1}){const _0x464707=Array['from'](this['_revisions']);return _0x464707['reverse'](),_0x1ff38e['toJSON']?_0x464707['map'](_0x3252dd=>_0x3252dd['toJSON']()):_0x464707;}['getIndex'](_0x474133){return this['_revisions']['getIndex'](_0x474133);}['getEarlierVisibleRevision'](_0x6a29e2){const [,_0x4b4ba1]=this['getRevisionsIterator'](_0x6a29e2,{'direction':'earlier'});return _0x4b4ba1;}['getLaterVisibleRevision'](_0x553a68){const [,_0x22f4ff]=this['getRevisionsIterator'](_0x553a68,{'direction':'later'});return _0x22f4ff;}['getRevisionsInDiff'](_0x829021){const _0x299970=[];for(const _0x2d986e of this['getRevisionsIterator'](_0x829021['newRevisionId']))if(_0x299970['push'](_0x2d986e),_0x2d986e['id']===_0x829021['oldRevisionId'])break;return _0x299970;}*['getRevisionsIterator'](_0x46c44c,{direction:_0x440704='earlier',filter:_0x5535f2=()=>!0x0}={}){const _0x4ad36d='earlier'===_0x440704?0x1:-0x1;let _0x5026aa=this['_revisions']['get'](_0x46c44c),_0x55c6de=this['getIndex'](_0x5026aa);for(yield _0x5026aa;_0x5026aa;){if(_0x55c6de+=_0x4ad36d,_0x5026aa=this['getRevision'](_0x55c6de),!_0x5026aa)return;_0x5535f2(_0x5026aa)&&(yield _0x5026aa);}}}class V extends _0x156834{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5ecb95,'c'],[_0x1dd94f,'a'],[_0x18272e,'e'],[_0x4bc277,'r'],[_0x49fee3,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5ecb95],['a',_0x1dd94f],['e',_0x18272e],['r',_0x4bc277],['u',_0x49fee3]]);async['loadRevisionData'](_0x2d429b,_0x210554){if(_0x2d429b['diffData']||!_0x210554)return;const _0x2d882=this['editor']['config']['get']('collaboration.channelId'),_0x1636a2=await _0x210554['getRevision']({'channelId':_0x2d882,'revisionId':_0x2d429b['id']});_0x2d429b['diffData']=_0x1636a2['diffData'];}['getRevisionDocumentData'](_0x4817c1){const _0x2994d2={};for(const _0x37fc02 in _0x4817c1['diffData']){if(_0x4817c1['diffData'][_0x37fc02]['attachChange']&&!_0x4817c1['diffData'][_0x37fc02]['attachChange']['isAttached'])continue;const _0xa6c863=this['_removeRevisionMarkers'](JSON['parse'](_0x4817c1['diffData'][_0x37fc02]['insertions'])),_0x2ff2b0=this['editor']['editing']['view']['document'],_0x58857b=new _0x36a44f(_0x2ff2b0,_0xa6c863['map'](_0x5c779f=>this['_getViewFromDiffObj'](_0x5c779f,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2994d2[_0x37fc02]=this['editor']['data']['processor']['toData'](_0x58857b),this['editor']['data']['processor']['useFillerType']('default');}return _0x2994d2;}['getRevisionRootsAttributes'](_0x5a6893){const _0x4c2751={};for(const _0x4d511f in _0x5a6893['diffData'])_0x5a6893['diffData'][_0x4d511f]['attachChange']&&!_0x5a6893['diffData'][_0x4d511f]['attachChange']['isAttached']||(_0x4c2751[_0x4d511f]=_0x5a6893['diffData'][_0x4d511f]['attributesAfter']||{});return _0x4c2751;}['_getTypeCharForViewElement'](_0x2d5ea3){return this['_viewClassToTypeChar']['get'](_0x2d5ea3['constructor']);}['_getViewFromDiffObj'](_0x56591d,_0x41d7c9){const _0x330b01=this['editor']['editing']['view']['document'];if('string'==typeof _0x56591d)return new _0x16094e(_0x330b01,_0x56591d);{let _0x236450,_0x53ca8f;_0x53ca8f='u'==_0x56591d['type']||'r'==_0x56591d['type']?[]:_0x56591d['children']['map'](_0x5698cb=>this['_getViewFromDiffObj'](_0x5698cb,_0x41d7c9));const _0x5a0f7f=this['_typeCharToViewClass']['get'](_0x56591d['type'])||_0x4ab02e,_0x4dea3b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x236450=new _0x5a0f7f(_0x330b01,_0x56591d['name'],_0x56591d['attributes'],_0x53ca8f),'u'==_0x56591d['type']&&_0x56591d['children'][0x0]){const _0x1e89b0=_0x56591d['children'][0x0];if(_0x236450['render']=function(_0x4bbf74){const _0x5c6bf6=_0x4bbf74['createElement']('div');return _0x5c6bf6['innerHTML']=_0x1e89b0,_0x5c6bf6['childNodes'][0x0];},_0x41d7c9){const _0x404cf5=new _0x36a44f(_0x330b01);_0x404cf5['_appendChild'](_0x236450);const _0x3e9b8e=Array['from'](_0x4dea3b['viewChildrenToDom'](_0x404cf5,{'bind':!0x1})),_0x436f23=_0x4dea3b['domDocument']['createElement']('div');_0x436f23['append'](..._0x3e9b8e),_0x236450=Array['from'](_0x4dea3b['domChildrenToView'](_0x436f23))[0x0];}}else{if('r'==_0x56591d['type']&&_0x56591d['children'][0x0]){const _0x27515f=_0x56591d['children'][0x0];if(_0x236450['render']=function(_0x1ff1c4){_0x1ff1c4['innerHTML']=_0x27515f;},_0x41d7c9){const _0x4deb2a=new _0x36a44f(_0x330b01);_0x4deb2a['_appendChild'](_0x236450);const _0x46ad8b=Array['from'](_0x4dea3b['viewChildrenToDom'](_0x4deb2a,{'bind':!0x1})),_0x188800=_0x4dea3b['domDocument']['createElement']('div');_0x188800['append'](..._0x46ad8b);const _0x35c7b6=Array['from'](_0x4dea3b['domChildrenToView'](_0x188800));_0x35c7b6['length']>0x1?_0x236450['_appendChild'](_0x35c7b6):_0x236450=_0x35c7b6[0x0];}}}if(_0x56591d['customProperties']){for(const [_0x4719d1,_0x59bca7]of _0x56591d['customProperties'])_0x236450['_setCustomProperty'](_0x4719d1,_0x59bca7);}const _0x5b4dbb=void 0x0===_0x56591d['fillerOffset']?null:_0x56591d['fillerOffset'];return null!==_0x5b4dbb&&(_0x236450['getFillerOffset']=()=>_0x5b4dbb),_0x236450;}}['_makeModelFromViewString'](_0x2d1de3){const _0x5816b0=JSON['parse'](_0x2d1de3),_0x56b57c=this['editor']['editing']['view']['document'],_0x396727=new _0x36a44f(_0x56b57c,_0x5816b0['map'](_0xbd2f6c=>this['_getViewFromDiffObj'](_0xbd2f6c,!0x0)));return this['editor']['data']['toModel'](_0x396727);}['_removeRevisionMarkers'](_0x4b8dc8){return(_0x4b8dc8=_0x4b8dc8['filter'](_0x1c5454=>!_0x1c5454['name']||'revision-start'!==_0x1c5454['name']&&'revision-end'!==_0x1c5454['name']))['forEach'](_0x2b3d89=>{'string'!=typeof _0x2b3d89&&(_0x2b3d89['children']=this['_removeRevisionMarkers'](_0x2b3d89['children']),_0x2b3d89['attributes']=_0x2b3d89['attributes']['filter'](_0xfee82=>!_0xfee82[0x0]['startsWith']('data-revision-')));}),_0x4b8dc8;}}function g(_0x4ae1be,_0x5d574f,_0x2e9002){const t=_0x4ae1be['t'];switch(_0x5d574f){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'},_0x2e9002);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2e9002);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 u extends _0x156834{['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[_0x543348,I,V,_0x50d6a9];}constructor(_0x478d6d){super(_0x478d6d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x248048=_0x32ff0a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x248048},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 _0x56c4a6=this['repository']['getRevision'](0x0),_0x43e555=_0x56c4a6&&null===_0x56c4a6['creator']?_0x56c4a6:null;if(this['_continueCurrentRevision']=!!_0x43e555&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3f7f58=this['_source']['getCurrentRevisionId'](),_0x2e21aa=this['repository']['getRevision'](_0x3f7f58);if(_0x2e21aa)this['_startingVersion']=_0x2e21aa['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x38f2a4=this['_source']['history']['_operations']['find'](_0x1ab918=>!_0x1ab918['_isInit']),_0x5c1198=_0x38f2a4?_0x38f2a4['baseVersion']:this['_source']['history']['version'];_0x56c4a6?(_0x56c4a6['toVersion']<_0x5c1198&&_0x56c4a6['_update']({'toVersion':_0x5c1198}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x43e555['id'],this['_startingVersion']=_0x43e555['fromVersion']):(this['_startingVersion']=_0x56c4a6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5c1198,this['_continueCurrentRevision']=!0x1);}}else _0x43e555&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x43e555['toVersion'],this['editor']['model']['document']['history']['version']),_0x43e555['fromVersion']===_0x43e555['toVersion']?(0x0!==_0x43e555['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x43e555['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x43e555['id'],this['_startingVersion']=_0x43e555['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',_0x35bcc5=>!_0x35bcc5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c9dda=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a2222;for(const _0x118b6d in _0x5c9dda){const _0x2a3ec5=_0x118b6d,_0x770437=_0x5c9dda[_0x2a3ec5];if('revisionHistoryLicenseKeyValid'==_0x770437||'revisionHistoryLicenseKeyInvalid'==_0x770437||'revisionHistoryLicenseKeyExpired'==_0x770437||'revisionHistoryLicenseKeyDomainLimit'==_0x770437||'revisionHistoryLicenseKeyNotAllowed'==_0x770437||'revisionHistoryLicenseKeyEvaluationLimit'==_0x770437||'revisionHistoryLicenseKeyTrialLimit'==_0x770437||'revisionHistoryLicenseKeyUsageLimit'==_0x770437){delete _0x5c9dda[_0x2a3ec5],_0x4a2222=_0x770437,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4a2222&&_0x5c9dda['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4a2222&&_0x5c9dda['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4a2222&&_0x5c9dda['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4a2222&&_0x5c9dda['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a2222&&_0x5c9dda['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4a2222&&_0x5c9dda['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4a2222&&_0x5c9dda['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x513c24=this['repository']['getRevision'](0x0),_0x10c137=await this['getRevisionDocumentData'](_0x513c24),_0x40bd8b=await this['getRevisionRootsAttributes'](_0x513c24);this['_replaceEditorDataWithRevisionData'](_0x10c137,_0x40bd8b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1d5349){this['_source']=_0x1d5349;}async['update'](){const _0xce30ae=await this['_source']['getLatestVersion']();if(_0xce30ae>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5cf965=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xce30ae});_0x5cf965['authors']=_0x5cf965['authorsIds']['map'](_0x10518d=>this['editor']['plugins']['get']('Users')['getUser'](_0x10518d)),this['currentRevision']['_update'](_0x5cf965);}}async['saveRevision'](_0x3fc902={},_0x1a7aca=null){const _0x1bbba6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1a7aca>this['currentRevision']['toVersion']&&(_0x1a7aca=null),null===_0x1a7aca&&(_0x1a7aca=await this['_source']['getLatestVersion']());const _0x5dbdaa=this['_getFromVersion'](_0x1a7aca),_0x57ba87=this['buildRevisionData']({'from':_0x5dbdaa,'to':_0x1a7aca});if(this['currentRevision']['toVersion']<_0x1a7aca){const _0x59f6f9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1a7aca,'to':_0x1a7aca});_0x59f6f9['authors']=[],_0x59f6f9['authorsIds']=[],_0x59f6f9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x59f6f9,!0x0),delete _0x59f6f9['authors'],_0x1bbba6['push'](_0x59f6f9);}_0x3fc902['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3fc902['name']=_0x3fc902['name']||null,_0x3fc902['id']=_0x3fc902['id']||_0x32ff0a(),_0x3fc902={..._0x3fc902,..._0x57ba87};const _0x1fde9c=this['addRevisionData'](_0x3fc902);_0x1bbba6['push'](_0x3fc902);const _0x328054=this['repository']['getIndex'](_0x1fde9c);if(0x0!==_0x328054){const _0x5739f0=this['repository']['getRevision'](_0x328054-0x1);if(_0x5739f0['fromVersion']!==_0x1a7aca){const _0x135ccf=this['_revisionDataBuilder']['getData'](_0x1a7aca,_0x5739f0['toVersion']),_0x4a19d9={'id':_0x5739f0['id'],'diffData':_0x135ccf['diffData'],'authorsIds':_0x135ccf['authorsIds'],'authors':_0x135ccf['authorsIds']['map'](_0x2e12ac=>this['editor']['plugins']['get']('Users')['getUser'](_0x2e12ac)),'fromVersion':_0x1a7aca};_0x5739f0===this['currentRevision']&&(_0x4a19d9['createdAt']=new Date(_0x3fc902['createdAt']['getTime']()+0xa)),_0x5739f0['_update'](_0x4a19d9,!0x0),delete _0x4a19d9['authors'],_0x1bbba6['push'](_0x4a19d9);}}if(this['adapter']){for(const _0x120058 of _0x1bbba6)this['_bufferUpdate'](_0x120058['id'],_0x120058,!0x0);this['sendBufferedUpdates']();}return _0x1fde9c;}['addRevisionData'](_0x24651a){const _0x474cc4=this['repository']['createRevision'](_0x24651a);return this['adapter']&&_0x474cc4['on']('_update',(_0x39750a,_0x55c460,_0x19adb6)=>{_0x19adb6||(this['_bufferUpdate'](_0x55c460['id'],_0x55c460,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x474cc4,this['_findInsertionIndex'](_0x474cc4)),_0x474cc4;}async['getRevisionDocumentData'](_0x542ba7){return await this['_utils']['loadRevisionData'](_0x542ba7,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x542ba7);}async['getRevisionRootsAttributes'](_0x2396ae){return await this['_utils']['loadRevisionData'](_0x2396ae,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2396ae);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x43c382=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x283669=0x0;_0x283669<_0x43c382['length'];_0x283669++){const _0xe528a2=_0x43c382[_0x283669];let _0x2d6c8b=!0x1;for(const _0x3d6c88 of Object['keys'](_0xe528a2))void 0x0===_0xe528a2[_0x3d6c88]?delete _0xe528a2[_0x3d6c88]:'id'!==_0x3d6c88&&(_0x2d6c8b=!0x0);_0x2d6c8b||(_0x43c382[_0x283669]=null);}if(_0x43c382=_0x43c382['filter'](_0x70cf70=>null!==_0x70cf70),!_0x43c382['length'])return;for(let _0x5004de=0x0;_0x5004de<_0x43c382['length'];_0x5004de++){const _0x54f76b=_0x43c382[_0x5004de];void 0x0!==_0x54f76b['fromVersion']&&void 0x0===_0x54f76b['toVersion']&&(_0x54f76b['toVersion']=this['repository']['getRevision'](_0x54f76b['id'])['toVersion']),void 0x0!==_0x54f76b['toVersion']&&void 0x0===_0x54f76b['fromVersion']&&(_0x54f76b['fromVersion']=this['repository']['getRevision'](_0x54f76b['id'])['fromVersion']);}const _0xa7dfa3=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x43c382,_0xa7dfa3)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x23d1a7=>{if(_0x23d1a7){for(const _0x36c9f0 of _0x23d1a7)this['setRevisionData']({'id':_0x36c9f0['id'],'createdAt':_0x36c9f0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3c4f68=null,from:_0x3a214c=null,to:_0x426743=null}){_0x3a214c=null!==_0x3a214c?_0x3a214c:_0x3c4f68['fromVersion'],_0x426743=null!==_0x426743?_0x426743:_0x3c4f68['toVersion'];const _0x4bd291=this['_revisionDataBuilder']['getData'](_0x3a214c,_0x426743),_0xb8f601={'diffData':_0x4bd291['diffData'],'authorsIds':_0x4bd291['authorsIds'],'fromVersion':_0x3a214c,'toVersion':_0x426743};if(!_0x3c4f68||_0x426743!==_0x3c4f68['toVersion']){const _0x112830=_0x426743-0x1,_0x142a0e=this['_source']['history']['getOperation'](_0x112830);_0xb8f601['createdAt']=_0x142a0e&&_0x142a0e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3a214c===this['_loadedStateData']['fromVersion']){for(const _0x381904 of this['_loadedStateData']['authors'])_0xb8f601['authorsIds']['includes'](_0x381904['id'])||_0xb8f601['authorsIds']['push'](_0x381904['id']);}return _0xb8f601;}['_bufferUpdate'](_0x40f2c2,_0x231599,_0x517a7b){if(this['_bufferedUpdates']['has'](_0x40f2c2)){const _0x41335f=this['_bufferedUpdates']['get'](_0x40f2c2);_0x231599=_0x517a7b?{..._0x41335f,..._0x231599}:{..._0x231599,..._0x41335f};}this['_bufferedUpdates']['set'](_0x40f2c2,_0x231599);}['setRevisionData'](_0x11a3f6){const _0x1b5192=this['repository']['getRevision'](_0x11a3f6['id']);if(_0x11a3f6['createdAt']&&(_0x11a3f6['createdAt']=new Date(_0x11a3f6['createdAt'])),_0x11a3f6['authorsIds']){const _0x213bf0=this['editor']['plugins']['get']('Users');_0x11a3f6['authors']=_0x11a3f6['authorsIds']['map'](_0x38a5a8=>_0x213bf0['getUser'](_0x38a5a8));}_0x1b5192['_update'](_0x11a3f6,!0x0);}['_createInitialRevision'](_0xd205c){const _0x593216=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x593216)this['_initialRevisionId']=_0x593216['id'];else{const _0x5a0419=!this['editor']['model']['document']['roots']['find'](_0x3514f4=>this['editor']['model']['hasContent'](_0x3514f4)),_0x590afe=this['editor']['plugins']['get']('Users')['me']['id'],_0x44f4f1=g(this['editor']['locale'],_0x5a0419?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xd205c,'to':_0xd205c,'id':this['_initialRevisionId'],'name':_0x44f4f1,'creatorId':_0x590afe});}}['_createCurrentRevision'](_0x1f1553){const _0x872737=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x872737),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1f1553,'to':_0x1f1553,'id':_0x872737,'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'](_0x6913ce,_0x395280){let _0x51141b=this['editor']['config']['get']('initialData'),_0x542352=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x51141b){_0x51141b={};for(const _0x25ef44 of this['editor']['model']['document']['getRootNames']())_0x51141b[_0x25ef44]='';}if('string'==typeof _0x51141b&&(_0x51141b={'main':_0x51141b}),void 0x0===_0x542352){_0x542352={};for(const _0x2abaa6 of this['editor']['model']['document']['getRootNames']())_0x542352[_0x2abaa6]={};}let _0x3b404a=!0x1;const _0xd42058=Object['keys'](_0x51141b),_0x21a14b=Object['keys'](_0x6913ce);for(const _0x4dabb2 of _0xd42058){if(_0x51141b[_0x4dabb2]!==_0x6913ce[_0x4dabb2]&&''!==_0x51141b[_0x4dabb2]['trim']()){_0x3b404a=!0x0;break;}if(!_0x410915(_0x542352[_0x4dabb2],_0x395280[_0x4dabb2])&&Object['keys'](_0x542352[_0x4dabb2])['length']>0x0){_0x3b404a=!0x0;break;}}_0x3b404a||(_0x3b404a=_0x21a14b['some'](_0x2303aa=>!this['editor']['model']['document']['getRoot'](_0x2303aa))),_0x3b404a&&_0x156045('editor-initial-data-replaced-with-revision-data',{'editorData':_0x51141b,'editorRootsAttributes':_0x542352,'revisionData':_0x6913ce,'revisionRootsAttributes':_0x395280}),this['editor']['config']['set']('initialData',_0x6913ce),this['editor']['config']['set']('rootsAttributes',_0x395280);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x356df4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x356df4['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x20a550){const _0xa908a9=this['repository']['getRevisions']();_0xa908a9['reverse']();let _0x31b312=0x0;for(;_0x31b312<_0xa908a9['length'];){const _0x3cdef9=_0xa908a9[_0x31b312];if(_0x3cdef9===this['currentRevision']){_0x31b312++;continue;}if(_0x3cdef9['id']===this['_initialRevisionId'])break;const _0xb35ba5=_0x20a550['toVersion']-_0x3cdef9['toVersion']||_0x20a550['fromVersion']-_0x3cdef9['fromVersion'];if(_0xb35ba5>0x0)break;if(_0xb35ba5<0x0)_0x31b312++;else{if(!_0x20a550['creator']&&_0x3cdef9['creator'])break;if(_0x3cdef9['creator']||!_0x20a550['creator']){if(_0x20a550['createdAt']>_0x3cdef9['createdAt'])break;_0x31b312++;}else _0x31b312++;}}return _0x31b312;}['_getFromVersion'](_0x6271f0){const _0x44a738=this['repository']['getRevisions']();_0x44a738['reverse'](),_0x44a738['shift']();const _0x501153=_0x44a738['find'](_0x1e030d=>_0x1e030d['toVersion']<=_0x6271f0)['toVersion'];return _0x501153<this['_startingVersion']?this['_startingVersion']:_0x501153;}['_makeRevision']({name:_0x3f1e0a,from:_0x48ba6d,to:_0x4045cf,creatorId:_0x180ed2,id:_0x5e6742}){const _0x4a8a5f=this['buildRevisionData']({'from':_0x48ba6d,'to':_0x4045cf});_0x4a8a5f['name']=_0x3f1e0a,_0x4a8a5f['creatorId']=_0x180ed2,_0x4a8a5f['id']=_0x5e6742;const _0x3ff8c0=this['addRevisionData'](_0x4a8a5f);return this['adapter']&&this['_bufferUpdate'](_0x4a8a5f['id'],_0x4a8a5f,!0x0),_0x3ff8c0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x947537){this['editor']=_0x947537,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'](_0x2fa625){this['source']=_0x2fa625;const _0x317d29=new Map(),_0x3db382=new Map(),_0x3f2a63=this['editor']['model']['document']['roots']['map'](_0x5254da=>_0x5254da['rootName']);for(const _0x3ae0fb of _0x3f2a63){const _0x1077a6=this['editor']['model']['document']['getRoot'](_0x3ae0fb),_0x1151a3=N(_0x1077a6);_0x317d29['set'](_0x3ae0fb,_0x1151a3),_0x3db382['set'](_0x3ae0fb,Object['fromEntries'](_0x1077a6['getAttributes']()));}const _0xe56eb6=Array['from'](this['editor']['model']['markers'])['map'](_0x4846f6=>[_0x4846f6['name'],_0x4846f6['getRange']()]),_0x17354a=this['source']['version'];this['_saveMetaData'](_0x17354a,_0x317d29,_0xe56eb6,_0x3db382),this['_startingRevisionId']=this['_revisionId'];const _0x9a949d=new Map(),_0x2a4df4=new Map();for(const _0x37e523 of _0x3f2a63){const _0x44b55c=P(_0x37e523);_0x9a949d['set'](_0x37e523,_0x44b55c),_0x2a4df4['set'](_0x37e523,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x9a949d,[],_0x2a4df4);}['getData'](_0x2dfa32,_0x2ed94a){if(this['_lastFrom']===_0x2dfa32&&this['_lastTo']<=_0x2ed94a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2ed94a,!0x0);else{if(!this['_savedMetaData']['has'](_0x2dfa32)){const _0x4cfce2=this['_getPreviousFrom'](_0x2dfa32);this['_calculateMetaData'](_0x4cfce2,_0x2dfa32,!0x1);}this['_calculateMetaData'](_0x2dfa32,_0x2ed94a,!0x0);}return this['_lastFrom']=_0x2dfa32,this['_lastTo']=_0x2ed94a,this['_getState']();}['loadState'](_0x2e70b0){const _0x3c0bb9=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2e70b0['fromVersion'],this['_lastTo']=_0x2e70b0['toVersion'];for(const _0x5679ea in _0x2e70b0['diffData']){const _0xfa5081=_0x2e70b0['diffData'][_0x5679ea]['attachChange'],_0x458978=_0x4cdb56(_0x2e70b0['diffData'][_0x5679ea]['attributesBefore'])||{},_0x213bed=_0x3c0bb9['_makeModelFromViewString'](_0x2e70b0['diffData'][_0x5679ea]['deletions']);_0x213bed['rootName']=_0x5679ea,_0x213bed['_isAttached']=!_0xfa5081||!_0xfa5081['isAttached'],_0x213bed['isAttached']=()=>_0x213bed['_isAttached'],this['_baseRoots']['set'](_0x5679ea,_0x213bed),this['_baseRootsAttributes']['set'](_0x5679ea,_0x458978),_0xfa5081&&this['_touchedRoots']['set'](_0x5679ea,_0xfa5081);const _0x1692c5=this['_makeIdsRoot'](_0x213bed);this['_baseIdsRoots']['set'](_0x5679ea,_0x1692c5);for(const [_0x3f57ff,_0x17c24e]of _0x213bed['markers']){if(!_0x3f57ff['startsWith']('revision:'))continue;const _0x5d4431=_0x3f57ff['split'](':')[0x2];for(const _0x21914a of _0x17c24e['getWalker']({'singleCharacters':!0x0})){const _0x4bdf3b=this['_getVidAttributeName'](_0x21914a),_0x142fcb='elementEnd'==_0x21914a['type']?_0x21914a['previousPosition']['path']['slice'](0x0,-0x1):_0x21914a['previousPosition']['path'],_0x229775=_0x1692c5['getNodeByPath'](_0x142fcb)['getAttribute'](_0x4bdf3b);this['_touched']['set'](_0x229775,{'userId':_0x5d4431});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3dfe10=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x15c477=>!this['_touched']['has'](_0x15c477));let _0x55bed0=0x0;const _0x4119d1=new Map();for(const _0x5d83ce in _0x2e70b0['diffData']){const _0x36fa04=_0x2e70b0['diffData'][_0x5d83ce]['attachChange'],_0x3a672c=_0x4cdb56(_0x2e70b0['diffData'][_0x5d83ce]['attributesAfter'])||{},_0x1365a2=_0x3c0bb9['_makeModelFromViewString'](_0x2e70b0['diffData'][_0x5d83ce]['insertions']);_0x1365a2['rootName']=_0x5d83ce,_0x1365a2['_isAttached']=!_0x36fa04||_0x36fa04['isAttached'],_0x1365a2['isAttached']=()=>_0x1365a2['_isAttached'],this['_diffRoots']['set'](_0x5d83ce,_0x1365a2),this['_diffRootsAttributes']['set'](_0x5d83ce,_0x3a672c);const _0x46f989=this['_makeIdsRoot'](_0x1365a2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5d83ce,_0x46f989),_0x4119d1['set'](_0x5d83ce,_0x1365a2['isAttached']()?_0x3a672c:{});for(const [_0x50aa16,_0x1a36a3]of _0x1365a2['markers']){if(!_0x50aa16['startsWith']('revision:'))continue;const _0x21579b=_0x50aa16['split'](':')[0x2];for(const _0x59f8da of _0x1a36a3['getWalker']({'singleCharacters':!0x0})){const _0xa8a8cc=this['_getVidAttributeName'](_0x59f8da),_0xa22610=this['_revisionId']++,_0xeb4d91='elementEnd'==_0x59f8da['type']?_0x59f8da['previousPosition']['path']['slice'](0x0,-0x1):_0x59f8da['previousPosition']['path'];_0x46f989['getNodeByPath'](_0xeb4d91)['_setAttribute'](_0xa8a8cc,_0xa22610),this['_touched']['set'](_0xa22610,{'userId':_0x21579b});}}for(const _0x141abd of this['editor']['model']['createRangeIn'](_0x1365a2)['getWalker']({'singleCharacters':!0x0})){const _0x175b80=this['_getVidAttributeName'](_0x141abd),_0x315b55='elementEnd'==_0x141abd['type']?_0x141abd['previousPosition']['path']['slice'](0x0,-0x1):_0x141abd['previousPosition']['path'],_0x496873=_0x46f989['getNodeByPath'](_0x315b55);_0x496873['getAttribute'](_0x175b80)>0x0||_0x496873['_setAttribute'](_0x175b80,_0x3dfe10[_0x55bed0++]);}for(const [_0x4c4cf4,_0x3c37f2]of _0x1365a2['markers'])_0x4c4cf4['startsWith']('revision:')||this['_markers']['set'](_0x4c4cf4,_0x3c37f2);}const _0x5d9b7a=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5d9b7a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5d9b7a,0x1));const _0x4bf35c=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4bf35c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4bf35c,0x1));const _0x52524e=Array['from'](this['_diffRoots'])['map'](([_0x1f62dd,_0x5b2650])=>[_0x1f62dd,N(_0x5b2650)]);this['_saveMetaData'](this['_lastTo'],_0x52524e,this['_markers'],_0x4119d1);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d5e63,_0x41a898,_0x10bb96,_0x323aa1){const _0x54ac77=new Map(_0x41a898),_0x4ea21c=new Map(_0x4cdb56(_0x323aa1)),_0x292534=new Map();for(const [_0x174cf5,_0x2d8c39]of _0x10bb96)_0x292534['set'](_0x174cf5,{'start':_0x2d8c39['start']['clone'](),'end':_0x2d8c39['end']['clone'](),'rootName':_0x2d8c39['root']['rootName']});this['_savedMetaData']['set'](_0x4d5e63,{'roots':_0x54ac77,'markers':_0x292534,'rootsAttributes':_0x4ea21c});}['_removeMetaData'](_0x883a07){this['_savedMetaData']['delete'](_0x883a07);}['_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'](_0x3b0919,_0x3e6c4c=null){let _0x21fbb9=null;_0x3b0919['is']('documentFragment')||(_0x21fbb9=new ut(_0x3b0919['name'],{'vid_start':null===_0x3e6c4c?this['_revisionId']++:_0x3e6c4c++}));const _0x325ce2=[];for(const _0x22b305 of _0x3b0919['getChildren']())if(_0x22b305['is']('element')){_0x325ce2['push'](this['_makeIdsRoot'](_0x22b305,_0x3e6c4c));const _0x1f433a=_0x325ce2[_0x325ce2['length']-0x1];null!==_0x3e6c4c&&(_0x3e6c4c=_0x1f433a['is']('element','$text')?_0x1f433a['getAttribute']('vid')+0x1:_0x1f433a['getAttribute']('vid_end')+0x1);}else{for(let _0x334932=0x0;_0x334932<_0x22b305['offsetSize'];_0x334932++)_0x325ce2['push'](new ut('$text',{'vid':null===_0x3e6c4c?this['_revisionId']++:_0x3e6c4c++}));}if(_0x3b0919['is']('documentFragment')){const _0x2b74cc=P(_0x3b0919['rootName']);return _0x2b74cc['_insertChild'](0x0,_0x325ce2),_0x2b74cc;}return _0x21fbb9['_setAttribute']('vid_end',null===_0x3e6c4c?this['_revisionId']++:_0x3e6c4c++),_0x21fbb9['_insertChild'](0x0,_0x325ce2),_0x21fbb9;}['_calculateMetaData'](_0x530828,_0x514305,_0x101375){this['_reset']();const {roots:_0x56402c,markers:_0x21e1a7,rootsAttributes:_0x169020}=this['_savedMetaData']['get'](_0x530828);this['_baseRoots']=new Map(_0x56402c),this['_baseRootsAttributes']=new Map(_0x4cdb56(_0x169020));for(const [_0x53f199,_0x5ad32a]of this['_baseRoots'])if('$graveyard'!==_0x53f199&&(this['_diffRoots']['set'](_0x53f199,N(_0x5ad32a)),this['_diffRootsAttributes']=new Map(_0x4cdb56(_0x169020)),_0x101375)){const _0x17fe21=this['_revisionId'];this['_idsRoots']['set'](_0x53f199,this['_makeIdsRoot'](_0x5ad32a)),this['_baseIdsRoots']['set'](_0x53f199,this['_makeIdsRoot'](_0x5ad32a,_0x17fe21));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x101375&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x379ba3,_0x361543]of _0x21e1a7){const _0x20ee79=this['_baseRoots']['get'](_0x361543['rootName']),_0x3d5b40=this['_diffRoots']['get'](_0x361543['rootName']),_0x5b8186=new ft(this['_fixPosition'](_0x361543['start'],_0x20ee79),this['_fixPosition'](_0x361543['end'],_0x20ee79)),_0x3d8613=this['_fixRange'](_0x5b8186,_0x3d5b40);_0x20ee79['markers']['set'](_0x379ba3,_0x5b8186),this['_markers']['set'](_0x379ba3,_0x3d8613);}this['_applyOperations'](_0x530828,_0x514305,_0x101375);}['_applyOperations'](_0x4b47cb,_0x53937f,_0x32840f){for(const _0x1aa540 of this['source']['getOperations'](_0x4b47cb,_0x53937f))this['_handleOperation'](_0x1aa540,_0x32840f);for(const _0x37fa0d of this['_diffRoots']['values']())_0x37fa0d['markers']['clear']();for(const [_0x243db0,_0x679f64]of this['_markers']){this['_diffRoots']['get'](_0x679f64['root']['rootName'])['markers']['set'](_0x243db0,_0x679f64['clone']());}const _0x23ce30=new Map(),_0x409a21=new Map();for(const [_0x19d919,_0x2afa50]of this['_diffRoots'])_0x23ce30['set'](_0x19d919,N(_0x2afa50)),_0x409a21['set'](_0x19d919,this['_diffRootsAttributes']['get'](_0x19d919));this['_saveMetaData'](_0x53937f,_0x23ce30,this['_markers'],_0x409a21);}['_getPreviousFrom'](_0x54f035){const _0x520e70=Array['from'](this['_savedMetaData']['keys']());_0x520e70['sort']((_0x5120d5,_0xa94866)=>_0x5120d5-_0xa94866),_0x520e70['reverse']();for(const _0x5cce5d of _0x520e70)if(_0x5cce5d<_0x54f035)return _0x5cce5d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x557b53,_0xd6f2f1){const _0x957a3b=Array['from'](_0xd6f2f1['markers'])['map'](([_0x25b92f,_0x30f556])=>[_0x25b92f,this['_fixRange'](_0x30f556,_0x557b53)]);_0x557b53['markers']=new Map(_0x957a3b);}['_transformMarkers'](_0x5c0f33){for(const _0x435225 of this['_markers']['values']()){const _0x323cdd=_0x435225['getTransformedByOperation'](_0x5c0f33),_0x20c3e6=ft['_createFromRanges'](_0x323cdd);_0x435225['start']=_0x20c3e6['start'],_0x435225['end']=_0x20c3e6['end'];}}['_handleOperation'](_0x1146f3,_0x4746ca){if('addRoot'!=_0x1146f3['type']&&'detachRoot'!=_0x1146f3['type']){if('insert'==_0x1146f3['type']){const _0x127c8f=_0x1146f3['position']['root']['rootName'];this['_diffRoots']['has'](_0x127c8f)||(this['_diffRoots']['set'](_0x127c8f,P(_0x127c8f,!0x0)),this['_diffRootsAttributes']['set'](_0x127c8f,{}),_0x4746ca&&this['_idsRoots']['set'](_0x127c8f,P(_0x127c8f,!0x0)));}else{if('addRootAttribute'==_0x1146f3['type']||'removeRootAttribute'==_0x1146f3['type']||'changeRootAttribute'==_0x1146f3['type'])return void this['_handleRootAttributeOperation'](_0x1146f3);'marker'==_0x1146f3['type']&&this['_handleMarkerOperation'](_0x1146f3);}if('marker'!==_0x1146f3['type']){const _0x19107d=this['_cloneOperation'](_0x1146f3,this['_diffRoots']);_0x19107d['_execute'](),this['_transformMarkers'](_0x19107d);}if(_0x4746ca)switch(_0x1146f3['type']){case'insert':this['_handleInsertOperation'](_0x1146f3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1146f3);break;case'merge':this['_handleMergeOperation'](_0x1146f3);break;case'split':this['_handleSplitOperation'](_0x1146f3);}}else this['_handleRootOperation'](_0x1146f3,_0x4746ca);}['_cloneOperation'](_0x588883,_0xe76f04){const _0x2cbd8f=_0x588883['clone']();return _0x2cbd8f['_authorId']=_0x588883['_authorId'],this['_fixOperation'](_0x2cbd8f,_0xe76f04),_0x2cbd8f;}['_getBaseVids'](_0x4a6eb7){return _0x4a6eb7['map'](_0x9fd5b1=>{const _0x541005=this['_getVidAttributeName'](_0x9fd5b1);return Number(_0x9fd5b1['item']['getAttribute'](_0x541005));});}['_generateTape'](_0x12e4f2,_0xbe51f3){if(_0x12e4f2['is']('element','$text'))_0xbe51f3['push']({'item':_0x12e4f2,'type':'text'});else{_0x12e4f2['is']('element')&&_0xbe51f3['push']({'item':_0x12e4f2,'type':'elementStart'});for(const _0x39b36b of _0x12e4f2['getChildren']())this['_generateTape'](_0x39b36b,_0xbe51f3);_0x12e4f2['is']('element')&&_0xbe51f3['push']({'item':_0x12e4f2,'type':'elementEnd'});}return _0xbe51f3;}['_getState'](){const _0x4cf49e=new Map(this['_touched']),_0x5d2d7b=new Map(_0x4cf49e),_0x549a8d=new Map(),_0x48b4c6={'insertions':{},'deletions':{}},_0x39741b={'insertions':{},'deletions':{}},_0x181440=new Map(),_0x179d0e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x179d0e['delete']('$graveyard');for(const _0x3e9af7 of _0x179d0e){const _0x4e639c=this['_diffRoots']['get'](_0x3e9af7)||P(_0x3e9af7,!0x1),_0x540915=this['_baseRoots']['get'](_0x3e9af7)||P(_0x3e9af7,!0x1);_0x4e639c['isAttached']()||_0x540915['isAttached']()?(_0x48b4c6['insertions'][_0x3e9af7]=N(_0x4e639c),_0x48b4c6['deletions'][_0x3e9af7]=N(_0x540915),this['_copyMarkers'](_0x48b4c6['deletions'][_0x3e9af7],_0x540915),this['_copyMarkers'](_0x48b4c6['insertions'][_0x3e9af7],_0x4e639c),_0x39741b['insertions'][_0x3e9af7]=this['_generateTape'](this['_idsRoots']['get'](_0x3e9af7),[]),_0x39741b['deletions'][_0x3e9af7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3e9af7)||P(_0x3e9af7,!0x1),[])):_0x179d0e['delete'](_0x3e9af7);}for(const _0x2d88da of _0x179d0e){const _0x4995c7=_0x39741b['insertions'][_0x2d88da];for(const _0x18c37b of _0x4995c7){const _0x384d27=this['_getVidAttributeName'](_0x18c37b),_0x1b9a7f=_0x18c37b['item']['getAttribute'](_0x384d27);_0x5d2d7b['delete'](_0x1b9a7f),_0x1b9a7f>=this['_startingRevisionId']&&_0x549a8d['set'](_0x1b9a7f,_0x4cf49e['get'](_0x1b9a7f));}}for(const _0x27e9bb of _0x179d0e){const _0x15c2cc=_0x39741b['insertions'][_0x27e9bb],_0x171c07=this['_getBaseVids'](_0x39741b['deletions'][_0x27e9bb]);let _0x587832=0x0;for(const _0x4c51e0 of _0x15c2cc){const _0x507483=this['_getVidAttributeName'](_0x4c51e0),_0x9f6b75=_0x4c51e0['item']['getAttribute'](_0x507483);if(!_0x549a8d['has'](_0x9f6b75)&&!_0x181440['has'](_0x9f6b75)){if(_0x5d2d7b['has'](_0x9f6b75))_0x587832++;else{if(_0x9f6b75!=_0x171c07[_0x587832]){const _0x495cf7=_0x4cf49e['get'](_0x9f6b75)||_0x4cf49e['get'](_0x171c07[_0x587832]);for(;_0x9f6b75!=_0x171c07[_0x587832];)_0x5d2d7b['has'](_0x171c07[_0x587832])||(_0x181440['set'](_0x171c07[_0x587832],_0x495cf7),_0x4cf49e['set'](_0x171c07[_0x587832],_0x495cf7)),_0x587832++;}_0x587832++;}}}}for(const _0x58f4f3 of _0x179d0e){const _0x5e4301=_0x39741b['insertions'][_0x58f4f3];for(const _0x5ae028 of _0x5e4301){const _0x3c1bdf=this['_getVidAttributeName'](_0x5ae028),_0x1df41c=_0x5ae028['item']['getAttribute'](_0x3c1bdf);if(_0x181440['has'](_0x1df41c)){const _0xc4188b=_0x181440['get'](_0x1df41c);_0x5d2d7b['has'](_0x1df41c)||_0x5d2d7b['set'](_0x1df41c,{..._0xc4188b}),_0x549a8d['set'](_0x1df41c,{..._0xc4188b});}}}for(const _0x131abb of _0x5d2d7b['keys']())_0x131abb>=this['_startingRevisionId']&&_0x5d2d7b['delete'](_0x131abb);const _0x2b965d=new Map();for(const _0x3ca31a of _0x179d0e){let _0x5e3543=_0x39741b['insertions'][_0x3ca31a];for(const _0x2cd2b7 of _0x5e3543)if(_0x2cd2b7['item']['is']('element','tableCell')){const _0x544cee=this['_getVidAttributeName'](_0x2cd2b7),_0x292244=_0x2cd2b7['item']['getAttribute'](_0x544cee);if(_0x549a8d['has'](_0x292244)){const _0x414353=_0x2cd2b7['item']['parent']['parent']['getAttribute']('vid_start'),_0x43f93c=_0x2b965d['get'](_0x414353)||new Set();_0x43f93c['add'](_0x549a8d['get'](_0x292244)['userId']),_0x2b965d['set'](_0x414353,_0x43f93c);}}_0x5e3543=_0x39741b['deletions'][_0x3ca31a];for(const _0x4c0f29 of _0x5e3543)if(_0x4c0f29['item']['is']('element','tableCell')){const _0x3b2aa1=this['_getVidAttributeName'](_0x4c0f29),_0x12e713=_0x4c0f29['item']['getAttribute'](_0x3b2aa1);if(_0x5d2d7b['has'](_0x12e713)){const _0x700e7c=_0x4c0f29['item']['parent']['parent']['getAttribute']('vid_start'),_0x33786d=_0x2b965d['get'](_0x700e7c)||new Set();_0x33786d['add'](_0x5d2d7b['get'](_0x12e713)['userId']),_0x2b965d['set'](_0x700e7c,_0x33786d);}}for(const _0x5d7932 of _0x2b965d['keys']())(_0x549a8d['has'](_0x5d7932)||_0x5d2d7b['has'](_0x5d7932))&&_0x2b965d['delete'](_0x5d7932);}for(const _0x1b1233 of _0x179d0e){const _0x3ab46f=_0x39741b['insertions'][_0x1b1233];let _0x1f0016=null,_0x28bcd4=null;for(const _0xeeee74 of _0x3ab46f){const _0x36e430=this['_getVidAttributeName'](_0xeeee74),_0x223c85=_0xeeee74['item']['getAttribute'](_0x36e430),_0x1f50fc=_0x2b965d['get'](_0x223c85);_0x1f50fc&&'elementStart'==_0xeeee74['type']&&(_0x1f0016=Array['from'](_0x1f50fc)[0x0],_0x28bcd4=_0xeeee74['item']['getAttribute']('vid_end')),_0x1f0016&&(_0x5d2d7b['set'](_0x223c85,{'userId':_0x1f0016}),_0x549a8d['set'](_0x223c85,{'userId':_0x1f0016})),_0x223c85==_0x28bcd4&&(_0x1f0016=null,_0x28bcd4=null);}}const _0x360019={},_0x25a1de=new Set();for(const _0x4db3b7 of _0x179d0e){const _0x3bd5b1=_0x48b4c6['deletions'][_0x4db3b7],_0xe94e5c=_0x48b4c6['insertions'][_0x4db3b7];for(const {userId:_0xcc6168}of this['_touchedMarkers']['values']())null!==_0xcc6168&&_0x25a1de['add'](_0xcc6168);for(const {userId:_0x246efe}of this['_touchedRoots']['values']())null!==_0x246efe&&_0x25a1de['add'](_0x246efe);this['_markChanges'](_0xe94e5c,_0x39741b['insertions'][_0x4db3b7],_0x549a8d,'insertion',_0x25a1de),this['_markChanges'](_0x3bd5b1,_0x39741b['deletions'][_0x4db3b7],_0x5d2d7b,'deletion',_0x25a1de),_0x360019[_0x4db3b7]={'insertions':this['_prepareViewToSave'](_0xe94e5c),'deletions':this['_prepareViewToSave'](_0x3bd5b1),'attachChange':this['_touchedRoots']['get'](_0x4db3b7)||null,'attributesBefore':_0x4cdb56(this['_baseRootsAttributes']['get'](_0x4db3b7))||{},'attributesAfter':_0x4cdb56(this['_diffRootsAttributes']['get'](_0x4db3b7))};}return{'diffData':_0x360019,'authorsIds':Array['from'](_0x25a1de)};}['_processRootBeforeSave'](_0x259f18){for(const [,_0x184569]of _0x259f18['markers']){const _0x57884e=_0x184569['start']['getAncestors']()['filter'](_0x43ac61=>'tableCell'==_0x43ac61['name']);for(const _0x3087cf of _0x57884e)0x1==_0x3087cf['childCount']&&_0x3087cf['getChild'](0x0)['is']('element','paragraph')&&_0x3087cf['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x21025b){this['_processRootBeforeSave'](_0x21025b);const _0x2ba6ae=this['editor']['data']['toView'](_0x21025b,{}),_0x401caa=Array['from'](_0x2ba6ae['getChildren']())['map'](_0x2111ad=>this['_getViewJson'](_0x2111ad));return JSON['stringify'](_0x401caa);}['_getViewJson'](_0x525729){if(_0x525729['is']('$text'))return _0x525729['data'];{const _0x29b730=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x31d776=_0x525729,_0xedd454=this['editor']['data']['htmlProcessor']['domConverter'],_0x5eebc7={'type':_0x29b730['_getTypeCharForViewElement'](_0x31d776),'name':_0x31d776['name'],'attributes':Array['from'](_0x31d776['getAttributes']()),'children':Array['from'](_0x31d776['getChildren']())['map'](_0x2f4171=>this['_getViewJson'](_0x2f4171))};if(_0x525729['is']('uiElement')&&'$comment'!=_0x525729['name']){const _0x477b40=_0x525729['render'](_0xedd454['domDocument'],_0xedd454);_0x5eebc7['children']['push'](_0x477b40['outerHTML']);}else{if(_0x525729['is']('rawElement')){const _0xfdaf74=_0xedd454['domDocument']['createElement'](_0x31d776['name']);_0x525729['render'](_0xfdaf74,_0xedd454),_0x5eebc7['children']['push'](_0xfdaf74['innerHTML']);}}const _0x396d69=Array['from'](_0x31d776['getCustomProperties']());_0x396d69['length']>0x0&&(_0x5eebc7['customProperties']=_0x396d69);const _0x15d845=_0x31d776['getFillerOffset']();return null!==_0x15d845&&(_0x5eebc7['fillerOffset']=_0x15d845),_0x5eebc7;}}['_markChanges'](_0x10a33c,_0xea6c01,_0x5b807b,_0x4269c5,_0x32a809){let _0x415300=null,_0x34cffd=null,_0x165e38=0x0;const _0x215626=this['editor']['model'];for(let _0x7baf5b=0x0;_0x7baf5b<_0xea6c01['length'];_0x7baf5b++){const _0x14c62d=this['_getVidAttributeName'](_0xea6c01[_0x7baf5b]),_0x175915=_0xea6c01[_0x7baf5b]['item']['getAttribute'](_0x14c62d),_0x497229=_0x5b807b['get'](_0x175915),_0x6aeb27=_0x7baf5b==_0xea6c01['length']-0x1;(!_0x415300&&_0x497229&&(_0x415300=_0x497229,_0x34cffd=_0xea6c01[_0x7baf5b]),_0x415300&&(!_0x497229||_0x497229['userId']!=_0x415300['userId']))&&(_0x12a877(_0x497229,F(_0x34cffd,_0x10a33c,_0x215626),F(_0xea6c01[_0x7baf5b],_0x10a33c,_0x215626)),_0x415300=_0x497229||null,_0x34cffd=_0x497229?_0xea6c01[_0x7baf5b]:null),_0x415300&&_0x6aeb27&&_0x12a877(_0x497229,F(_0x34cffd,_0x10a33c,_0x215626),B(_0xea6c01[_0x7baf5b],_0x10a33c,_0x215626));}function _0x12a877(_0x3eab32,_0x4d90de,_0x5b633f){const _0x4995de=_0x415300['userId'],_0x2ab049='revision:'+_0x4269c5+':'+_0x4995de+':'+_0x165e38++,_0x55d285=_0x215626['createRange'](_0x4d90de,_0x5b633f);_0x10a33c['markers']['set'](_0x2ab049,_0x55d285),null!==_0x4995de&&_0x32a809['add'](_0x4995de);}}['_getVidAttributeName'](_0x4298b0){switch(_0x4298b0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x55eb52,_0x1cd4be){_0x55eb52['baseVersion']=null;for(const _0x4ed7c2 in _0x55eb52){const _0x1052fd=_0x55eb52[_0x4ed7c2];if(_0x1052fd instanceof vt){const _0x420c95=_0x1cd4be['get'](_0x1052fd['root']['rootName']);_0x55eb52[_0x4ed7c2]=this['_fixPosition'](_0x1052fd,_0x420c95);}if(_0x1052fd instanceof ft){const _0x158a13=_0x1cd4be['get'](_0x1052fd['root']['rootName']);_0x55eb52[_0x4ed7c2]=this['_fixRange'](_0x1052fd,_0x158a13);}'root'===_0x4ed7c2&&(_0x55eb52['root']=_0x1cd4be['get'](_0x55eb52['root']['rootName']));}}['_fixRange'](_0x443fa8,_0x50a7fe){return this['editor']['model']['createRange'](this['_fixPosition'](_0x443fa8['start'],_0x50a7fe),this['_fixPosition'](_0x443fa8['end'],_0x50a7fe));}['_fixPosition'](_0x5a0381,_0x3a6aec){return this['editor']['model']['createPositionFromPath'](_0x3a6aec,_0x5a0381['path'],_0x5a0381['stickiness']);}['_handleInsertOperation'](_0x16c051){const _0x3392ca=this['_idsRoots']['get'](_0x16c051['position']['root']['rootName']),_0x2fcfa8=this['_fixPosition'](_0x16c051['position'],_0x3392ca),_0x2d3e9a=null===_0x16c051['_authorId']?null:_0x16c051['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34eb30=_0x2fcfa8['parent'],_0x482733=this['_revisionId'],_0x388962=[];for(const _0x448629 of _0x16c051['nodes'])if(_0x448629['is']('element'))_0x388962['push'](this['_makeIdsRoot'](_0x448629));else{for(let _0x4c1893=0x0;_0x4c1893<_0x448629['offsetSize'];_0x4c1893++)_0x388962['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x45221d=this['_revisionId'];for(let _0x533be5=_0x482733;_0x533be5<_0x45221d;_0x533be5++)this['_touched']['set'](_0x533be5,{'userId':_0x2d3e9a});_0x34eb30['_insertChild'](_0x2fcfa8['offset'],_0x388962);}['_handleMoveOperation'](_0x25f4be){(_0x25f4be=this['_cloneOperation'](_0x25f4be,this['_idsRoots']))['_execute']();const _0x68c55a=null===_0x25f4be['_authorId']?null:_0x25f4be['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16fd9c=_0x25f4be['getMovedRangeStart'](),_0x5ab586=_0x16fd9c['parent'],_0xf77d17=_0x16fd9c['offset'];!function _0x4f515e(_0x483ed1,_0x55a3d2,_0x2b3f9c,_0x2f1778){for(let _0x4e84dd=_0x2b3f9c;_0x4e84dd<_0x2f1778;_0x4e84dd++){const _0x45ab4c=_0x55a3d2['getChild'](_0x4e84dd);_0x45ab4c['is']('element','$text')?_0x483ed1['set'](_0x45ab4c['getAttribute']('vid'),{'userId':_0x68c55a}):(_0x483ed1['set'](_0x45ab4c['getAttribute']('vid_start'),{'userId':_0x68c55a}),_0x4f515e(_0x483ed1,_0x45ab4c,0x0,_0x45ab4c['childCount']),_0x483ed1['set'](_0x45ab4c['getAttribute']('vid_end'),{'userId':_0x68c55a}));}}(this['_touched'],_0x5ab586,_0xf77d17,_0xf77d17+_0x25f4be['howMany']);}['_handleMergeOperation'](_0x5cda56){const _0x66429e=null===(_0x5cda56=this['_cloneOperation'](_0x5cda56,this['_idsRoots']))['_authorId']?null:_0x5cda56['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b2edc=_0x5cda56['targetPosition']['parent'],_0x36584f=_0x5cda56['sourcePosition']['parent'],_0x3f5704=_0x4b2edc['getAttribute']('vid_end'),_0x3ee99d=_0x36584f['getAttribute']('vid_start');_0x4b2edc['_setAttribute']('vid_end',_0x36584f['getAttribute']('vid_end')),_0x36584f['_setAttribute']('vid_end',_0x3f5704),this['_touched']['set'](_0x3ee99d,{'userId':_0x66429e}),this['_touched']['set'](_0x3f5704,{'userId':_0x66429e}),_0x5cda56['_execute']();}['_handleSplitOperation'](_0x566390){const _0x3f42b3=null===(_0x566390=this['_cloneOperation'](_0x566390,this['_idsRoots']))['_authorId']?null:_0x566390['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x172c57=_0x566390['graveyardPosition'],_0x3ea32b=_0x566390['splitPosition']['parent'];_0x566390['_execute']();const _0x694949=_0x3ea32b['getAttribute']('vid_end'),_0x279f82=_0x566390['insertionPosition']['nodeAfter'];if(_0x172c57){const _0x2fd9e9=_0x279f82['getAttribute']('vid_end'),_0x345579=_0x3ea32b['getAttribute']('vid_end');_0x3ea32b['_setAttribute']('vid_end',_0x2fd9e9),_0x279f82['_setAttribute']('vid_end',_0x345579),this['_touched']['set'](_0x3ea32b['getAttribute']('vid_end'),{'userId':_0x3f42b3}),this['_touched']['set'](_0x279f82['getAttribute']('vid_start'),{'userId':_0x3f42b3});}else{const _0x40aa85=this['_revisionId']++,_0x28a1b8=this['_revisionId']++;_0x3ea32b['_setAttribute']('vid_end',_0x40aa85),_0x279f82['_setAttribute']('vid_start',_0x28a1b8),_0x279f82['_setAttribute']('vid_end',_0x694949),this['_touched']['set'](_0x40aa85,{'userId':_0x3f42b3}),this['_touched']['set'](_0x28a1b8,{'userId':_0x3f42b3});}}['_handleMarkerOperation'](_0x358a0c){if(!_0x358a0c['affectsData'])return;const _0x4e6abf=(_0x358a0c=this['_cloneOperation'](_0x358a0c,this['_diffRoots']))['oldRange']?_0x358a0c['oldRange']['root']:null,_0x337933=_0x358a0c['newRange']?_0x358a0c['newRange']['root']:null;_0x4e6abf&&this['_markers']['delete'](_0x358a0c['name']),_0x337933&&this['_markers']['set'](_0x358a0c['name'],_0x358a0c['newRange']['clone']());const _0x499e6b=null===_0x358a0c['_authorId']?null:_0x358a0c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xcb92fa=_0x358a0c['name'];if(!this['_touchedMarkers']['has'](_0xcb92fa))return void this['_touchedMarkers']['set'](_0xcb92fa,{'range':_0x358a0c['oldRange'],'userId':_0x499e6b});const _0x4bdaf3=this['_touchedMarkers']['get'](_0xcb92fa),_0x22e3d5=_0x4bdaf3['range'],_0x24fc2c=_0x358a0c['newRange'];null==_0x22e3d5&&null==_0x24fc2c||_0x22e3d5&&_0x24fc2c&&_0x22e3d5['isEqual'](_0x24fc2c)?this['_touchedMarkers']['delete'](_0x358a0c['name']):_0x4bdaf3['userId']=_0x499e6b;}['_handleRootOperation'](_0x30fd6a,_0x5f5bb4){this['_diffRoots']['has'](_0x30fd6a['rootName'])?this['_diffRoots']['get'](_0x30fd6a['rootName'])['_isAttached']=_0x30fd6a['isAdd']:(this['_diffRoots']['set'](_0x30fd6a['rootName'],P(_0x30fd6a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x30fd6a['rootName'],{}),_0x5f5bb4&&this['_idsRoots']['set'](_0x30fd6a['rootName'],P(_0x30fd6a['rootName'],!0x0)));const _0x515cf4=null===_0x30fd6a['_authorId']?null:_0x30fd6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d7735=this['_touchedRoots']['get'](_0x30fd6a['rootName']);_0x3d7735&&_0x3d7735['userId']===_0x515cf4?this['_touchedRoots']['delete'](_0x30fd6a['rootName']):this['_touchedRoots']['set'](_0x30fd6a['rootName'],{'userId':_0x515cf4,'isAttached':_0x30fd6a['isAdd']});}['_handleRootAttributeOperation'](_0x38b877){const _0x4c50a7=this['_diffRootsAttributes']['get'](_0x38b877['root']['rootName']);null===_0x38b877['newValue']?delete _0x4c50a7[_0x38b877['key']]:_0x4c50a7[_0x38b877['key']]=_0x38b877['newValue'];}}function N(_0x3f7832){const _0xce45b5=P(_0x3f7832['rootName'],_0x3f7832['isAttached']());for(const _0x2af88b of _0x3f7832['getChildren']()){const _0x3ab3e9=_0x2af88b['_clone'](!0x0);_0xce45b5['_appendChild'](_0x3ab3e9);}return _0xce45b5;}function P(_0x225225,_0x16756f=!0x0){const _0x2b7d71=new gt();return _0x2b7d71['rootName']=_0x225225,_0x2b7d71['_isAttached']=_0x16756f,_0x2b7d71['isAttached']=()=>_0x2b7d71['_isAttached'],_0x2b7d71;}function F(_0x4c895c,_0x47ebc2,_0x283ec9){const _0x1fc6f9='elementEnd'==_0x4c895c['type']?_0x283ec9['createPositionAt'](_0x4c895c['item'],'end'):_0x283ec9['createPositionBefore'](_0x4c895c['item']);return _0x283ec9['createPositionFromPath'](_0x47ebc2,_0x1fc6f9['path'],_0x1fc6f9['stickiness']);}function B(_0x25c09a,_0x7e6553,_0x30fd72){const _0x1e8801='elementStart'==_0x25c09a['type']?_0x30fd72['createPositionAt'](_0x25c09a['item'],0x0):_0x30fd72['createPositionAfter'](_0x25c09a['item']);return _0x30fd72['createPositionFromPath'](_0x7e6553,_0x1e8801['path'],_0x1e8801['stickiness']);}class os extends _0x2cb964{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3f7688,_0x1de11e){super(_0x3f7688),this['focusTracker']=new _0x1473a9(),this['keystrokes']=new _0x2ff732(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1de11e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x7434ff({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3275b5=_0x1e8812=>_0x1e8812['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3275b5),this['keystrokes']['set']('arrowleft',_0x3275b5),this['keystrokes']['set']('arrowup',_0x3275b5),this['keystrokes']['set']('arrowdown',_0x3275b5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3ab160){this['revisionNameInputView']['fieldView']['element']['value']=_0x3ab160['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3b0b6d){const _0x1fe5a2=new nt(this['locale'],ti),_0x32a6e4=_0x1fe5a2['fieldView'];_0x32a6e4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x37860a=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3b0b6d&&(_0x37860a+='\x20('+g(this['locale'],'optional')+')'),(_0x1fe5a2['label']=_0x37860a,_0x32a6e4['on']('input',()=>{this['revisionNameInputValue']=_0x32a6e4['element']['value']['trim']();}),_0x1fe5a2);}}class f extends _0x156834{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4e00fd=this['editor'],_0x42fdde=_0x4e00fd['plugins']['get']('RevisionTracker');_0x4e00fd['ui']['componentFactory']['add']('revisionHistory',_0x3af155=>{const _0x405415=_0x3a34e7(_0x3af155),_0x23671f=_0x405415['panelView']['children'],_0x4cb51f=new _0x587ef5(_0x3af155),_0xcdb124=new te(_0x3af155),_0x48b45c=new _0x9857a7(_0x3af155),_0x29bd5e=new te(_0x3af155),_0x450b1a=new _0x9857a7(_0x3af155);return _0x405415['bind']('isEnabled')['to'](_0x42fdde,'isReady',_0x42fdde,'isEnabled',_0x4e00fd,'isReadOnly',(_0xc70f88,_0x10457a,_0x3dcf60)=>_0xc70f88&&_0x10457a&&!_0x3dcf60),_0x405415['buttonView']['set']({'icon':_0x5cdd2b,'label':g(_0x3af155,'Revision\x20history'),'tooltip':!0x0}),_0x48b45c['set']({'label':g(_0x3af155,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x48b45c['bind']('isEnabled')['to'](_0x42fdde,'isReady',_0x42fdde,'isEnabled',_0x4e00fd,'isReadOnly',(_0x341c55,_0x5f343e,_0x4c1c60)=>_0x341c55&&_0x5f343e&&!_0x4c1c60),_0x48b45c['on']('execute',()=>this['_showDialog']()),_0x450b1a['set']({'label':g(_0x3af155,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x450b1a['bind']('isEnabled')['to'](_0x42fdde,'isReady',_0x4e00fd,'isReadOnly',(_0x1844f2,_0x1802c3)=>_0x1844f2&&!_0x1802c3),_0x450b1a['on']('execute',()=>{_0x4e00fd['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x405415['isOpen']=!0x1,_0x4e00fd['editing']['view']['focus']();}),_0xcdb124['children']['add'](_0x48b45c),_0x29bd5e['children']['add'](_0x450b1a),_0x4cb51f['role']='menu',_0x4cb51f['items']['addMany']([_0xcdb124,_0x29bd5e]),_0x23671f['add'](_0x4cb51f),_0x405415;}),_0x4e00fd['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x331ced=this['editor'],_0x7eb1f9=_0x331ced['locale'],_0x180f2a=new _0x390ac1(_0x7eb1f9),_0x4eebfb=new _0x110ce8(_0x7eb1f9);_0x180f2a['buttonView']['set']({'icon':_0x5cdd2b,'label':g(_0x7eb1f9,'Revision\x20history')});const _0x182937=new _0x230e5f(_0x7eb1f9,_0x180f2a),_0x76e1b0=new _0x4d2c08(_0x7eb1f9);_0x76e1b0['set']({'label':g(_0x7eb1f9,'Save\x20current\x20revision')}),_0x76e1b0['delegate']('execute')['to'](_0x180f2a),_0x76e1b0['on']('execute',()=>{this['_showDialog']();}),_0x182937['children']['add'](_0x76e1b0),_0x4eebfb['items']['add'](_0x182937);const _0x13ef75=new _0x230e5f(_0x7eb1f9,_0x180f2a),_0x284b2a=new _0x4d2c08(_0x7eb1f9);return _0x284b2a['set']({'label':g(_0x7eb1f9,'Open\x20revision\x20history')}),_0x284b2a['delegate']('execute')['to'](_0x180f2a),_0x284b2a['on']('execute',()=>{_0x331ced['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x13ef75['children']['add'](_0x284b2a),_0x4eebfb['items']['add'](_0x13ef75),_0x180f2a['panelView']['children']['add'](_0x4eebfb),_0x180f2a;}['_showDialog'](){const _0x4c0579=this['editor'],_0x4a743a=_0x4c0579['locale'],_0x4146a5=_0x4c0579['plugins']['get']('Dialog'),_0x749bae=_0x4c0579['plugins']['get']('RevisionTracker');function _0x3fa9b7(_0x582a49){_0x4c0579['config']['get']('revisionHistory.requireRevisionName')&&''===_0x582a49['revisionName']?_0x582a49['revisionNameInputView']['errorText']=g(_0x4a743a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4c0579['plugins']['get'](u)['saveRevision']({'name':_0x582a49['revisionName']}),_0x4146a5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3fa9b7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4146a5['show']({'id':'revisionSave','title':g(_0x4a743a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4c0579['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4146a5['hide']()},{'label':g(_0x4c0579['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x6d4e29){_0x6d4e29['bind']('isEnabled')['to'](_0x749bae,'isReady',_0x749bae,'isEnabled',_0x4c0579,'isReadOnly',(_0x344c0e,_0x38eb19,_0x36cc4e)=>_0x344c0e&&_0x38eb19&&!_0x36cc4e);},'onExecute':()=>_0x3fa9b7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x43fe73=this['editor'],_0x5799e2=_0x43fe73['locale'];this['_saveRevisionFormView']=new os(_0x5799e2,_0x43fe73['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x2cb964{['changeId'];['_model'];constructor(_0x32bd8b,_0x3959e7){super(_0x32bd8b),this['_model']=_0x3959e7,this['changeId']=_0x3959e7['id'];const _0x55af0c=this['bindTemplate'],_0x559564=g(_0x32bd8b,_0x3959e7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3959e7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3959e7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x55af0c['to']('type',_0x4cfc15=>'ck-revision-change__'+_0x4cfc15)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x559564}]},{'text':'\x20'+_0x3959e7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x80fd2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xbff25c){super(),this['id']=_0xbff25c['id']||_0x32ff0a(),this['author']=_0xbff25c['author'],this['type']=_0xbff25c['type'],this['data']=_0xbff25c['data']||{},this['rootName']=_0xbff25c['rootName'],this['set']('createdAt',_0xbff25c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4128b5,_0x390458){this['newRevisionId']=_0x4128b5,this['oldRevisionId']=_0x390458,this['changes']=new _0x4cc644();}['_setChanges'](_0x533807){for(const _0x3e3833 of _0x533807)this['changes']['add'](_0x3e3833);}}class m extends _0x156834{['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[_0x543348,_0x3953ff,I,V];}constructor(_0x2427a6){super(_0x2427a6),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',(_0x5ee045,_0x3b5092,_0x51372f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x9091f7=>{for(const _0x599e4c of this['editor']['editing']['view']['document']['roots'])_0x51372f?_0x9091f7['removeClass']('ck-editor__editable__overlay',_0x599e4c):_0x9091f7['addClass']('ck-editor__editable__overlay',_0x599e4c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1de65e=>null!==_0x1de65e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1af48a,_0x5f2f5b,_0x10ef01)=>_0x1af48a&&_0x10ef01?_0x5f2f5b['changes']['getIndex'](_0x10ef01):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4434cb,_0x18cb48)=>_0x4434cb?_0x18cb48['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3953ff);}['init'](){const _0x581da2=this['editor'],_0x55af58=new pt(_0x581da2,{'direction':'backward'}),_0x532453=new pt(_0x581da2,{'direction':'forward'});(_0x581da2['commands']['add']('showPreviousChange',_0x55af58),_0x581da2['commands']['add']('showNextChange',_0x532453),_0x581da2['commands']['add']('restoreRevision',new wt(_0x581da2)),this['on']('change:numberOfChanges',()=>{_0x55af58['refresh'](),_0x532453['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x581da2['enableReadOnlyMode']('revision-viewer'),_0x581da2['plugins']['has']('WidgetToolbarRepository'))&&_0x581da2['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x143fcc){return await this['_utils']['loadRevisionData'](_0x143fcc,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x143fcc);}async['getRevisionRootsAttributes'](_0x21fb71){return await this['_utils']['loadRevisionData'](_0x21fb71,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x21fb71);}async['compare'](_0x24b997,_0x3db42c,_0x399c12=!0x1){if(!this['isEnabled'])return;const _0x51aab3=this['diff'],_0x3a7ce9=this['repository'],_0x185469='string'==typeof _0x24b997?_0x3a7ce9['getRevision'](_0x24b997):_0x24b997,_0x14bf76='string'==typeof _0x3db42c?_0x3a7ce9['getRevision'](_0x3db42c):_0x3db42c,_0x2de598=_0x185469['id'],_0x74942=_0x14bf76?_0x14bf76['id']:null;if(!_0x399c12&&this['diff']&&this['diff']['newRevisionId']===_0x2de598&&this['diff']['oldRevisionId']===_0x74942)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x2de598,_0x74942);const _0x40f956=this['_getRevisionsRange'](_0x185469,_0x14bf76,!0x0)['map'](_0x3ba213=>this['_utils']['loadRevisionData'](_0x3ba213,this['adapter']));return _0x40f956['push'](new Promise(_0xa786bc=>{setTimeout(_0xa786bc,0x14);})),Promise['all'](_0x40f956)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2c80da=this['_getDiff'](_0x2de598,_0x74942);for(const _0x259480 of _0x2c80da['changes'])this['_changeIdToChange']['set'](_0x259480['id'],_0x259480);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x154ae8=>{for(const _0x35c9e4 of this['editor']['model']['document']['getRootNames']())_0x154ae8['detachRoot'](_0x35c9e4);for(const _0x1981aa of Object['keys'](_0x2c80da['model'])){const _0xf94d58=_0x154ae8['addRoot'](_0x1981aa);for(const _0x3c9457 of Object['keys'](_0x2c80da['attributes'][_0x1981aa]))_0x154ae8['setAttribute'](_0x3c9457,_0x2c80da['attributes'][_0x1981aa][_0x3c9457],_0xf94d58);_0x154ae8['insert'](_0x2c80da['model'][_0x1981aa],_0xf94d58,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2c80da['changes'])),this['isReady']=!0x0;})['catch'](_0x51b18c=>{console['error'](_0x51b18c),this['_cleanUp'](),_0x51aab3&&(this['diff']=_0x51aab3),this['isReady']=!0x0;});}['addRevisionData'](_0x6a4766,_0x24d518){const _0xd3ebb7=this['repository']['createRevision'](_0x6a4766);return _0xd3ebb7['on']('_update',(_0x53557f,_0x212663,_0x9e0fe6)=>_0x24d518(_0x212663,_0x9e0fe6,_0xd3ebb7)),this['repository']['addRevision'](_0xd3ebb7),_0xd3ebb7;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x456123=>{for(const _0x21dce9 of this['editor']['model']['document']['getRootNames']())_0x456123['detachRoot'](_0x21dce9);});}['_sortAndFilterDiffChanges'](_0x2fc2d3){const _0x18c004=[],_0x3c7bf1=new Map();for(const _0x454f1 of this['editor']['model']['document']['getRootNames']()){const _0x1ba221=this['editor']['editing']['view']['getDomRoot'](_0x454f1);if(!_0x1ba221)continue;const _0x28f201=_0x1ba221['getClientRects']()['item'](0x0);_0x28f201&&(_0x18c004['push'](_0x454f1),_0x3c7bf1['set'](_0x454f1,_0x28f201));}return _0x18c004['sort']((_0x3468c1,_0x395765)=>{const _0x3c8c58=_0x3c7bf1['get'](_0x3468c1),_0x3f069f=_0x3c7bf1['get'](_0x395765);return _0x3c8c58['y']-_0x3f069f['y']||_0x3c8c58['x']-_0x3f069f['x'];}),(_0x2fc2d3=_0x2fc2d3['filter'](_0x22d857=>_0x18c004['includes'](_0x22d857['rootName'])))['sort']((_0x2e1d36,_0x4e19bf)=>_0x18c004['indexOf'](_0x2e1d36['rootName'])-_0x18c004['indexOf'](_0x4e19bf['rootName'])),_0x2fc2d3;}['_makeTape'](_0x1d90a7){const _0x875472=Array['from'](_0x1d90a7['markers'])['filter'](([_0x5f00f5,_0x1d5c6a])=>_0x5f00f5['startsWith']('revision:')&&!_0x1d5c6a['isCollapsed']),_0x17d6d4=Array['from'](this['editor']['model']['createRangeIn'](_0x1d90a7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x875472['length'])for(const _0x3501ee of _0x17d6d4){const [_0x1821c2,_0x27b4d6]=_0x875472[0x0],[,_0x36adda,_0x18c07e]=_0x1821c2['split'](':');if(_0x27b4d6['end']['isEqual'](_0x3501ee['nextPosition'])&&_0x875472['shift'](),(_0x3501ee['previousPosition']['isEqual'](_0x27b4d6['start'])||_0x3501ee['previousPosition']['isAfter'](_0x27b4d6['start']))&&('insertion'==_0x36adda?_0x3501ee['isAdded']={'userId':_0x18c07e}:'deletion'==_0x36adda&&(_0x3501ee['isRemoved']={'userId':_0x18c07e})),0x0==_0x875472['length'])break;}return _0x17d6d4;}['_refreshStartEndIndex'](_0x32d079){const _0x2ffeef=new Map();for(let _0x1ed8e5=0x0;_0x1ed8e5<_0x32d079['length'];_0x1ed8e5++)'text'===_0x32d079[_0x1ed8e5]['type']?(_0x32d079[_0x1ed8e5]['item']['startIndex']=_0x1ed8e5,_0x32d079[_0x1ed8e5]['item']['endIndex']=_0x1ed8e5):('elementStart'===_0x32d079[_0x1ed8e5]['type']?_0x32d079[_0x1ed8e5]['item']['startIndex']=_0x1ed8e5:'elementEnd'===_0x32d079[_0x1ed8e5]['type']&&(_0x32d079[_0x1ed8e5]['item']['endIndex']=_0x1ed8e5),_0x2ffeef['set'](_0x32d079[_0x1ed8e5]['id'],_0x1ed8e5));for(const _0x6b44ab of _0x2ffeef['values']())'elementStart'===_0x32d079[_0x6b44ab]['type']?_0x32d079[_0x6b44ab]['item']['endIndex']=_0x2ffeef['get'](_0x32d079[_0x6b44ab]['pairId']):'elementEnd'===_0x32d079[_0x6b44ab]['type']&&(_0x32d079[_0x6b44ab]['item']['startIndex']=_0x2ffeef['get'](_0x32d079[_0x6b44ab]['pairId']));}['_processTape'](_0x2fc431){for(let _0x59805b=0x0;_0x59805b<_0x2fc431['length'];_0x59805b++){if('elementStart'===_0x2fc431[_0x59805b]['type'])_0x2fc431[_0x59805b]['item']['startIndex']=_0x59805b;else{if('elementEnd'===_0x2fc431[_0x59805b]['type']){_0x2fc431[_0x59805b]['item']['endIndex']=_0x59805b;const _0x5172de=_0x2fc431[_0x59805b]['item']['startIndex'];_0x2fc431[_0x5172de]['pairId']=_0x2fc431[_0x59805b]['id'],_0x2fc431[_0x59805b]['pairId']=_0x2fc431[_0x5172de]['id'];}else _0x2fc431[_0x59805b]['item']['startIndex']=_0x59805b,_0x2fc431[_0x59805b]['item']['endIndex']=_0x59805b,_0x2fc431[_0x59805b]['pairId']=null;}_0x2fc431[_0x59805b]['markersStart']||(_0x2fc431[_0x59805b]['markersStart']=[],_0x2fc431[_0x59805b]['markersEnd']=[]);}}['_markInsertions'](_0x323789,_0x4dfc57){const _0x392311=_0x323789['filter'](_0x5cbcee=>!_0x5cbcee['isAdded']);for(let _0x8d2d48=0x0;_0x8d2d48<_0x4dfc57['length'];_0x8d2d48++)_0x4dfc57[_0x8d2d48]['isAdded']&&(_0x392311[_0x8d2d48]['isAdded']=_0x4dfc57[_0x8d2d48]['isAdded']);}['_getDiff'](_0x1c68d2,_0x193732=null){const _0x46a6c3=this['repository']['getRevision'](_0x1c68d2),_0x5271fb=_0x193732?this['repository']['getRevision'](_0x193732):null,_0x4827b0=this['_getRevisionsRange'](_0x46a6c3,_0x5271fb),_0x84d8f7=_0x4827b0[_0x4827b0['length']-0x1],_0x4d85a3=new Map(),_0x28d678={'model':{},'attributes':{},'changes':[]},_0x3728a4=new Set(),_0x23561f=new Map();for(let _0x28c656=_0x4827b0['length']-0x1;_0x28c656>=0x0;_0x28c656--){const _0x591797=_0x4827b0[_0x28c656];for(const _0x800409 of Object['keys'](_0x591797['diffData']))if(_0x591797['diffData'][_0x800409]['attachChange']){const _0x8cbec2=_0x591797['diffData'][_0x800409]['attachChange'];_0x8cbec2['isAttached']?(_0x3728a4['add'](_0x800409),_0x23561f['has'](_0x800409)&&_0x23561f['get'](_0x800409)['userId']==_0x8cbec2['userId']?_0x23561f['delete'](_0x800409):_0x23561f['set'](_0x800409,_0x8cbec2)):_0x23561f['has'](_0x800409)?(_0x3728a4['delete'](_0x800409),_0x23561f['delete'](_0x800409)):(_0x3728a4['add'](_0x800409),_0x23561f['set'](_0x800409,_0x8cbec2));}else _0x3728a4['add'](_0x800409);}for(const _0x5f162e of _0x3728a4){const _0xc181c8=_0x23561f['has'](_0x5f162e)&&!_0x23561f['get'](_0x5f162e)['isAttached'];let _0x143abd=_0xc181c8?_0x4827b0['length']-0x1:0x0;const _0x3198ef=_0xc181c8?-0x1:0x1;for(;_0x4827b0[_0x143abd];){const _0x2f55d5=_0x4827b0[_0x143abd];if(_0x2f55d5['diffData'][_0x5f162e]){const _0x183d58=_0xc181c8?_0x2f55d5['diffData'][_0x5f162e]['attributesBefore']:_0x2f55d5['diffData'][_0x5f162e]['attributesAfter'];_0x28d678['attributes'][_0x5f162e]=_0x183d58?_0x4cdb56(_0x183d58):{};break;}_0x143abd+=_0x3198ef;}}for(const _0x528719 of _0x4827b0){_0x528719['model']={};for(const _0x1f9c21 of _0x528719['authors'])_0x4d85a3['set'](_0x1f9c21['id'],_0x1f9c21);for(const _0x5da523 of _0x3728a4){const _0xadad3b=_0x528719['diffData'][_0x5da523]?_0x528719['diffData'][_0x5da523]['insertions']:'[]',_0x4cfe13=_0x528719['diffData'][_0x5da523]?_0x528719['diffData'][_0x5da523]['deletions']:'[]';_0x528719['model'][_0x5da523]={'insertions':this['_utils']['_makeModelFromViewString'](_0xadad3b),'deletions':this['_utils']['_makeModelFromViewString'](_0x4cfe13)};}}for(const _0x39b744 of _0x3728a4){let _0x434f24=null,_0x4a7004=0x0;const _0xe1bd6f=new Map(Array['from'](_0x46a6c3['model'][_0x39b744]['insertions']['markers'])['filter'](([_0x28e33f])=>!_0x28e33f['startsWith']('revision:')));let _0x1d1a66=0x0;for(const _0x43fbda of _0x4827b0){const _0x43f627=this['_makeTape'](_0x43fbda['model'][_0x39b744]['insertions']);_0x43fbda==_0x46a6c3?(_0x434f24=_0x43f627,_0x4a7004=_0x434f24['length'],_0x434f24['forEach'](_0x41146d=>{_0x41146d['id']=_0x1d1a66++;}),this['_processTape'](_0x434f24)):this['_markInsertions'](_0x434f24,_0x43f627);const _0x11b3fa=_0x434f24['filter'](_0x2a8e9c=>!_0x2a8e9c['isAdded'])['map'](_0x5aabc5=>_0x5aabc5['id']);let _0x49241d=0x0;const _0x2338b4=this['_makeTape'](_0x43fbda['model'][_0x39b744]['deletions']);_0x2338b4['forEach'](_0x4a9eb5=>{_0x4a9eb5['isRemoved']?_0x4a9eb5['id']=_0x4a7004++:_0x4a9eb5['id']=_0x11b3fa[_0x49241d++];}),this['_processTape'](_0x2338b4),this['_setDistance'](_0x434f24,'isAdded'),this['_setDistance'](_0x2338b4,'isRemoved'),_0x43fbda==_0x46a6c3&&this['_markMarkers'](_0x434f24,_0xe1bd6f),_0x434f24=this['_joinTapes'](_0x434f24,_0x2338b4),this['_refreshStartEndIndex'](_0x434f24),this['_setDistance'](_0x434f24,'isRemoved');}_0x434f24=_0x434f24['filter'](_0x570abc=>!(_0x570abc['isAdded']&&_0x570abc['isRemoved']));const _0x45a893=new Map(_0x84d8f7['model'][_0x39b744]['deletions']['markers']),_0x4a1536=new Set(_0xe1bd6f['keys']());for(const _0x3627e6 of _0x45a893['keys']())_0x4a1536['delete'](_0x3627e6);this['_markSuggestions'](_0x434f24,_0x4a1536),this['_fixObsoleteTags'](_0x434f24),_0x434f24=this['_removeMissingPairs'](_0x434f24),_0x434f24=this['_markMismatchedRemovedTags'](_0x434f24),_0x434f24=this['_removeUnsupportedChanges'](_0x434f24);const {root:_0x2de83c,changes:_0x90ab1}=this['_makeModelFromTape'](_0x434f24,_0x4d85a3,_0x39b744);_0x28d678['model'][_0x39b744]=_0x2de83c;const _0x1f080e=_0x23561f['get'](_0x39b744);if(_0x1f080e){const _0x504a3c=_0x4d85a3['get'](_0x1f080e['userId']),_0x218b65=new r({'author':_0x504a3c,'type':_0x1f080e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x39b744});_0x90ab1['unshift'](_0x218b65),_0x28d678['attributes'][_0x39b744]['revisionHistoryAttachChange']=_0x218b65['id'];}_0x28d678['changes']=_0x28d678['changes']['concat'](_0x90ab1);}return _0x28d678;}['_markMarkers'](_0x11739a,_0x15011c){for(let _0x19f824=0x0;_0x19f824<_0x11739a['length'];_0x19f824++)for(const [_0x43f29d,_0x250a11]of _0x15011c)!_0x250a11['isCollapsed']&&_0x250a11['start']['isEqual'](_0x11739a[_0x19f824]['previousPosition'])&&_0x11739a[_0x19f824]['markersStart']['push'](_0x43f29d),_0x250a11['end']['isEqual'](_0x11739a[_0x19f824]['nextPosition'])&&_0x11739a[_0x19f824]['markersEnd']['push'](_0x43f29d);}['_joinTapes'](_0xfd7821,_0x3087c8){let _0xe732b1=[],_0x1e744f=0x0,_0xbb5561=0x0;for(;_0x1e744f<_0xfd7821['length']||_0xbb5561<_0x3087c8['length'];){const _0x3f6d38=_0xfd7821[_0x1e744f]||{},_0x377938=_0x3087c8[_0xbb5561]||{};if(_0x3f6d38['id']==_0x377938['id'])_0x1e744f++,_0xbb5561++,_0xe732b1['push'](_0x3f6d38);else{if(_0x377938['isRemoved']&&_0x3f6d38['isAdded']){const {commonTape:_0x5732a6,iEnd:_0x59ed67,jEnd:_0x53f097}=this['_threeWayMerge'](_0xfd7821,_0x1e744f,_0x3087c8,_0xbb5561);_0xe732b1=_0xe732b1['concat'](_0x5732a6),_0x1e744f=_0x59ed67,_0xbb5561=_0x53f097;}else _0x377938['isRemoved']?(_0xbb5561++,_0xe732b1['push'](_0x377938)):(_0x1e744f++,_0xe732b1['push'](_0x3f6d38));}}return _0xe732b1;}['_markSuggestions'](_0x49ffb3,_0x5aabcb){const _0x80fe96=[];for(let _0x1d0ddb=0x0;_0x1d0ddb<_0x49ffb3['length'];_0x1d0ddb++){for(let _0xb662bc=0x0;_0xb662bc<_0x49ffb3[_0x1d0ddb]['markersStart']['length'];_0xb662bc++){const _0x26d7d5=_0x49ffb3[_0x1d0ddb]['markersStart'][_0xb662bc];if(!_0x5aabcb['has'](_0x26d7d5))continue;const {group:_0x2be387,type:_0x7ec528,authorId:_0x218937}=_0xb98330(_0x26d7d5);'revision-suggestion'!=_0x2be387||'insertion'!=_0x7ec528&&'deletion'!=_0x7ec528||(_0x80fe96['unshift']({'type':_0x7ec528,'name':_0x26d7d5,'userId':_0x218937}),_0x49ffb3[_0x1d0ddb]['markersStart']['splice'](_0xb662bc,0x1),_0xb662bc--);}_0x1fdffa(_0x49ffb3[_0x1d0ddb]);for(let _0x104722=0x0;_0x104722<_0x49ffb3[_0x1d0ddb]['markersEnd']['length'];_0x104722++){const _0x54b960=_0x49ffb3[_0x1d0ddb]['markersEnd'][_0x104722];if(!_0x5aabcb['has'](_0x54b960))continue;const {group:_0x1b2beb,type:_0x2e6787}=_0xb98330(_0x54b960);if('revision-suggestion'!=_0x1b2beb||'insertion'!=_0x2e6787&&'deletion'!=_0x2e6787)continue;_0x49ffb3[_0x1d0ddb]['markersEnd']['splice'](_0x104722,0x1),_0x104722--;const _0x318061=_0x80fe96['findIndex'](_0x5092ba=>_0x5092ba['name']==_0x54b960);_0x318061>-0x1&&_0x80fe96['splice'](_0x318061,0x1);}}function _0xb98330(_0x2bef55){const _0x50f28c=_0x2bef55['split'](':');return{'group':_0x50f28c[0x0],'type':_0x50f28c[0x1],'subType':_0x50f28c['length']>=0x5?_0x50f28c[0x2]:null,'id':_0x50f28c['length']<0x5?_0x50f28c[0x2]:_0x50f28c[0x3],'authorId':_0x50f28c['length']<0x5?_0x50f28c[0x3]:_0x50f28c[0x4],'markerCount':0x6==_0x50f28c['length']?_0x50f28c[0x5]:null};}function _0x1fdffa(_0x2a4cdd){for(let _0x5cc5f8=0x0;_0x5cc5f8<_0x80fe96['length'];_0x5cc5f8++){if(_0x2a4cdd['isAdded']&&'insertion'==_0x80fe96[_0x5cc5f8]['type']&&_0x2a4cdd['isAdded']['userId']==_0x80fe96[_0x5cc5f8]['userId'])return _0x2a4cdd['isAddSuggestion']=_0x80fe96[_0x5cc5f8],void delete _0x2a4cdd['isAdded'];if(!_0x2a4cdd['isAdded']&&!_0x2a4cdd['isRemoved']&&'deletion'==_0x80fe96[_0x5cc5f8]['type'])return void(_0x2a4cdd['isRemoveSuggestion']=_0x80fe96[_0x5cc5f8]);}}}['_setDistance'](_0x1f8081,_0x5a371c){let _0x1b5574=0x0,_0x3eab0d=!0x1;const _0x148e13=new Map();for(const _0x1f3b90 of _0x1f8081)_0x1f3b90[_0x5a371c]?_0x3eab0d&&(_0x1b5574++,_0x3eab0d=!0x1):(_0x1b5574++,_0x3eab0d=!0x0),_0x148e13['set'](_0x1f3b90['id'],_0x1b5574);for(let _0x4fde96=0x0;_0x4fde96<_0x1f8081['length'];_0x4fde96++){if('isRemoved'==_0x5a371c&&_0x1f8081[_0x4fde96]['isAdded']||'isAdded'==_0x5a371c&&_0x1f8081[_0x4fde96]['isRemoved'])continue;if('text'==_0x1f8081[_0x4fde96]['type']){_0x1f8081[_0x4fde96]['distance']=0x0;continue;}const _0x21c3de=_0x148e13['get'](_0x1f8081[_0x4fde96]['pairId']),_0x483c4b=_0x148e13['get'](_0x1f8081[_0x4fde96]['id']);_0x1f8081[_0x4fde96]['distance']=_0x21c3de-_0x483c4b;}}['_getRevisionsRange'](_0x4f332e,_0x418931,_0x137d0b=!0x1){const _0x1201d2=[];let _0x25010b=this['repository']['getIndex'](_0x4f332e),_0x3c2871=this['repository']['getIndex'](_0x418931);for(-0x1==_0x3c2871&&(_0x3c2871=this['repository']['_revisions']['length'],_0x137d0b=!0x1);_0x25010b<_0x3c2871;)_0x1201d2['push'](this['repository']['getRevision'](_0x25010b)),_0x25010b++;return _0x137d0b&&_0x1201d2['push'](this['repository']['getRevision'](_0x25010b)),_0x1201d2;}['_threeWayMerge'](_0x52b386,_0xba87c1,_0x39ed06,_0x23ed69){const _0x51d4b4=this['editor']['model']['schema'];let _0xae5086=_0xba87c1;for(;_0x52b386[_0xae5086]&&_0x52b386[_0xae5086]['isAdded'];)_0xae5086++;let _0x23c3e1=_0x23ed69;for(;_0x39ed06[_0x23c3e1]&&_0x39ed06[_0x23c3e1]['isRemoved'];)_0x23c3e1++;_0x3c640c(_0x52b386,_0xba87c1,_0xae5086),_0x3c640c(_0x39ed06,_0x23ed69,_0x23c3e1);const _0x39d75f=_0x39ed06['slice'](_0x23ed69,_0x23c3e1)['concat'](_0x52b386['slice'](_0xba87c1,_0xae5086));return _0x39d75f['sort']((_0x4a5100,_0x14b92b)=>_0x4a5100['side']!=_0x14b92b['side']?_0x4a5100['side']-_0x14b92b['side']:_0x4a5100['level']!=_0x14b92b['level']?_0x4a5100['level']-_0x14b92b['level']:_0x4a5100['distance']!=_0x14b92b['distance']?_0x14b92b['distance']-_0x4a5100['distance']:!!_0x4a5100['isAdded']!=!!_0x14b92b['isAdded']?-0x1==_0x4a5100['side']||0x0==_0x4a5100['side']?_0x4a5100['isAdded']?-0x1:0x1:_0x4a5100['isAdded']?0x1:-0x1:_0x4a5100['index']-_0x14b92b['index']),{'commonTape':_0x39d75f,'iEnd':_0xae5086,'jEnd':_0x23c3e1};function _0x3c640c(_0x5d0251,_0x2f73b1,_0x39e0a7){let _0x47413f=-0x1,_0x4381d9=Number['POSITIVE_INFINITY'],_0x4ff3e1=!0x0;for(let _0x2f254a=_0x2f73b1;_0x2f254a<_0x39e0a7;_0x2f254a++)if(_0x51d4b4['isInline'](_0x5d0251[_0x2f254a]['item'])||(_0x4ff3e1=!0x1),_0x5d0251[_0x2f254a]['item']['startIndex']<_0x2f73b1&&(_0x47413f=_0x2f254a),_0x5d0251[_0x2f254a]['item']['endIndex']>=_0x39e0a7){_0x4381d9=_0x2f254a;break;}_0x4ff3e1&&(_0x47413f=_0x39e0a7-0x1);for(let _0x4e31f5=_0x2f73b1;_0x4e31f5<_0x39e0a7;_0x4e31f5++)_0x5d0251[_0x4e31f5]['side']=_0x4e31f5<=_0x47413f?-0x1:_0x4e31f5<_0x4381d9?0x0:0x1,_0x5d0251[_0x4e31f5]['index']=_0x4e31f5;let _0x4d9ebc=0x0;for(let _0x4ccd72=_0x2f73b1;_0x4ccd72<=_0x47413f;_0x4ccd72++)0x0==_0x5d0251[_0x4ccd72]['distance']?_0x5d0251[_0x4ccd72]['level']=_0x4d9ebc:(_0x4d9ebc++,_0x5d0251[_0x4ccd72]['level']=_0x4d9ebc,_0x4d9ebc++);for(let _0x230ddf=_0x2f73b1;_0x230ddf<_0x39e0a7;_0x230ddf++)0x0==_0x5d0251[_0x230ddf]['side']&&(_0x5d0251[_0x230ddf]['level']=_0x4d9ebc);_0x4d9ebc=0x0;for(let _0xf97572=_0x39e0a7-0x1;_0xf97572>=_0x4381d9;_0xf97572--)0x0==_0x5d0251[_0xf97572]['distance']?_0x5d0251[_0xf97572]['level']=_0x4d9ebc:(_0x4d9ebc--,_0x5d0251[_0xf97572]['level']=_0x4d9ebc,_0x4d9ebc--);}}['_fixObsoleteTags'](_0x293618){const _0xce0458=new Map(),_0x56695d=this['editor']['model']['schema'];for(let _0x53de32=0x1;_0x53de32<_0x293618['length'];_0x53de32++){let _0xc9b8ef,_0x1cfda0,_0x115381;const _0x5b2661=_0x293618[_0x53de32],_0x368f78=_0x293618[_0x53de32-0x1];if('text'==_0x5b2661['type'])continue;if(_0x5b2661['type']!=_0x368f78['type'])continue;if(!_0x56695d['isBlock'](_0x368f78['item'])||_0x56695d['isLimit'](_0x368f78['item']))continue;if(!_0x56695d['isBlock'](_0x5b2661['item'])||_0x56695d['isLimit'](_0x5b2661['item']))continue;if((_0x293618[_0x53de32]['isAdded']||_0x293618[_0x53de32]['isAddSuggestion'])&&_0x293618[_0x53de32-0x1]['isRemoved'])_0xc9b8ef=_0x293618[_0x53de32],_0x1cfda0=_0x293618[_0x53de32-0x1],_0x115381=_0x53de32-0x1;else{if(!_0x293618[_0x53de32]['isRemoved']||!_0x293618[_0x53de32-0x1]['isAdded']&&!_0x293618[_0x53de32-0x1]['isAddSuggestion'])continue;_0xc9b8ef=_0x293618[_0x53de32-0x1],_0x1cfda0=_0x293618[_0x53de32],_0x115381=_0x53de32;}const _0x37760d=_0xc9b8ef['level']==_0x1cfda0['level'],_0x3befc2=Math['abs'](_0xc9b8ef['level'])<Math['abs'](_0x1cfda0['level'])&&0x0==_0x1cfda0['distance'];(_0x37760d||_0x3befc2)&&(_0xce0458['set'](_0x1cfda0['id'],_0xc9b8ef['id']),_0x293618['splice'](_0x115381,0x1),_0x53de32--,_0xc9b8ef['isAdded']=!0x1);}for(let _0xe47694=0x0;_0xe47694<_0x293618['length'];_0xe47694++)_0xce0458['has'](_0x293618[_0xe47694]['pairId'])&&(_0x293618[_0xe47694]['pairId']=_0xce0458['get'](_0x293618[_0xe47694]['pairId']));}['_removeMissingPairs'](_0x1e5673){const _0x1ac2b4=new Set(_0x1e5673['map'](_0x16d386=>_0x16d386['id']));for(let _0x5728c3=0x0;_0x5728c3<_0x1e5673['length'];_0x5728c3++)_0x1ac2b4['has'](_0x1e5673[_0x5728c3]['pairId'])||0x0==_0x1e5673[_0x5728c3]['distance']||(_0x1e5673[_0x5728c3]['isIncorrect']=!0x0);return _0x1e5673['filter'](_0x5e5160=>!_0x5e5160['isIncorrect']);}['_markMismatchedRemovedTags'](_0x45d5fc){const _0xf1232c=new Set();for(let _0x108fe9=0x0;_0x108fe9<_0x45d5fc['length'];_0x108fe9++){if(_0xf1232c['has'](_0x45d5fc[_0x108fe9]['id'])&&_0x45d5fc[_0x108fe9]['isRemoved']&&(_0x45d5fc[_0x108fe9]['isIncorrect']=!0x0),_0x45d5fc[_0x108fe9]['isIncorrect'])continue;if(0x0==_0x45d5fc[_0x108fe9]['distance'])continue;if('elementStart'!=_0x45d5fc[_0x108fe9]['type'])continue;if(null==_0x45d5fc[_0x108fe9]['pairId'])continue;let _0x586110=_0x108fe9+0x1,_0x51dd7a=0x0;for(;_0x45d5fc[_0x586110]['id']!=_0x45d5fc[_0x108fe9]['pairId'];)'elementStart'==_0x45d5fc[_0x586110]['type']?_0x51dd7a++:'elementEnd'==_0x45d5fc[_0x586110]['type']&&_0x51dd7a--,_0x586110++;if(0x0!=_0x51dd7a){if(_0x45d5fc[_0x108fe9]['isRemoved'])_0x45d5fc[_0x108fe9]['isIncorrect']=!0x0;else{for(;_0x586110!=_0x108fe9;)_0x45d5fc[_0x586110]['isRemoved']&&0x0!=_0x45d5fc[_0x586110]['distance']&&(_0x45d5fc[_0x586110]['isIncorrect']=!0x0,_0xf1232c['add'](_0x45d5fc[_0x586110]['pairId'])),_0x586110--;}}}return _0x45d5fc['filter'](_0x3ba14b=>!_0x3ba14b['isIncorrect']);}['_removeUnsupportedChanges'](_0x1515eb){const _0x5af319=this['editor']['model']['schema'];for(let _0x563007=0x0;_0x563007<_0x1515eb['length'];_0x563007++){if(!(_0x1515eb[_0x563007]['isAdded']||_0x1515eb[_0x563007]['isAddSuggestion']||_0x1515eb[_0x563007]['isRemoved']||_0x1515eb[_0x563007]['isRemoveSuggestion']))continue;if(0x0==_0x1515eb[_0x563007]['distance'])continue;const _0x1c95fe=_0x1515eb[_0x563007]['item'];_0x5af319['isBlock'](_0x1c95fe)||_0x5af319['isLimit'](_0x1c95fe)||(_0x1515eb[_0x563007]['isAdded']&&delete _0x1515eb[_0x563007]['isAdded'],_0x1515eb[_0x563007]['isAddSuggestion']&&delete _0x1515eb[_0x563007]['isAddSuggestion'],_0x1515eb[_0x563007]['isRemoveSuggestion']&&delete _0x1515eb[_0x563007]['isRemoveSuggestion'],_0x1515eb[_0x563007]['isRemoved']&&(_0x1515eb[_0x563007]['isIncorrect']=!0x0));}return _0x1515eb['filter'](_0x2957bc=>!_0x2957bc['isIncorrect']);}['_makeModelFromTape'](_0x1b3afc,_0x3ba3f2,_0x56870c){const _0x4e5126=new gt(),_0x40bec4=[],_0x1a7cde=new Map(),_0x26fdbb=this['editor']['model'],_0x6460a4=_0x26fdbb['schema'],_0x5a802a=[_0x4e5126],_0x482d50={},_0x343407={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3c01e8=null;const _0x414acb=[0x0];for(let _0x3f9cc4=0x0;_0x3f9cc4<_0x1b3afc['length'];_0x3f9cc4++)if('elementStart'===_0x1b3afc[_0x3f9cc4]['type']){_0x1b3afc[_0x3f9cc4]['previousPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb);const _0x305caa=new ut(_0x1b3afc[_0x3f9cc4]['item']['name'],_0x1b3afc[_0x3f9cc4]['item']['getAttributes']());_0x5a802a[0x0]['_appendChild'](_0x305caa),_0x414acb['push'](0x0),_0x5a802a['unshift'](_0x305caa),_0x1b3afc[_0x3f9cc4]['nextPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb);}else'elementEnd'===_0x1b3afc[_0x3f9cc4]['type']?(_0x5a802a['shift'](),_0x1b3afc[_0x3f9cc4]['previousPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb),_0x414acb['pop'](),_0x414acb[_0x414acb['length']-0x1]++,_0x1b3afc[_0x3f9cc4]['nextPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb)):(_0x1b3afc[_0x3f9cc4]['previousPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb),_0x3c01e8?_0x3c01e8['_data']+=_0x1b3afc[_0x3f9cc4]['item']['data']:_0x3c01e8=new mt(_0x1b3afc[_0x3f9cc4]['item']['data'],_0x1b3afc[_0x3f9cc4]['item']['getAttributes']()),_0x1b3afc[_0x3f9cc4+0x1]&&'text'===_0x1b3afc[_0x3f9cc4+0x1]['type']&&_0x5793d1(_0x3c01e8,_0x1b3afc[_0x3f9cc4+0x1]['item'])||(_0x5a802a[0x0]['_appendChild'](_0x3c01e8),_0x3c01e8=null),_0x414acb[_0x414acb['length']-0x1]+=_0x1b3afc[_0x3f9cc4]['item']['offsetSize'],_0x1b3afc[_0x3f9cc4]['nextPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb));for(let _0x50a42e=0x0;_0x50a42e<_0x1b3afc['length'];_0x50a42e++){const _0x3e2690=_0x1b3afc[_0x50a42e]['previousPosition'],_0x3c7fb8=_0x1b3afc[_0x50a42e]['nextPosition'];for(const _0x49fa25 of _0x1b3afc[_0x50a42e]['markersStart'])_0x1a7cde['set'](_0x49fa25,{'start':_0x3e2690,'end':null});_0x146982('isRemoveSuggestion',_0x50a42e,_0x3e2690,_0x3c7fb8),_0x146982('isAddSuggestion',_0x50a42e,_0x3e2690,_0x3c7fb8),_0x146982('isRemoved',_0x50a42e,_0x3e2690,_0x3c7fb8),_0x146982('isAdded',_0x50a42e,_0x3e2690,_0x3c7fb8);for(const _0x3b1aa0 of _0x1b3afc[_0x50a42e]['markersEnd']){const _0x56c867=_0x1a7cde['get'](_0x3b1aa0);_0x56c867?_0x56c867['end']=_0x3c7fb8:_0x1a7cde['set'](_0x3b1aa0,{'start':_0x3c7fb8,'end':_0x3c7fb8});}}for(const [_0xf13f51,_0x395d73]of _0x1a7cde){const _0x2c39d2=this['editor']['model']['createRange'](_0x395d73['start'],_0x395d73['end']);_0x4e5126['markers']['set'](_0xf13f51,_0x2c39d2);}return _0x40bec4['sort']((_0x504500,_0x20755c)=>{const _0xf5b430=_0x4e5126['markers']['get']('revision:'+_0x504500['id']),_0x3d8b5e=_0x4e5126['markers']['get']('revision:'+_0x20755c['id']);return _0xf5b430['start']['isBefore'](_0x3d8b5e['start'])?-0x1:_0xf5b430['start']['isAfter'](_0x3d8b5e['start'])?0x1:_0xf5b430['end']['isBefore'](_0x3d8b5e['end'])?-0x1:_0xf5b430['end']['isAfter'](_0x3d8b5e['end'])?0x1:'add'===_0x504500['type']?-0x1:0x1;}),{'root':_0x4e5126,'changes':_0x40bec4};function _0x146982(_0xf317fa,_0x3b00cb,_0x33470d,_0x2a2832){const _0x40ca12=!!_0x1b3afc[_0x3b00cb][_0xf317fa],_0x4d3116=_0x40ca12?_0x1b3afc[_0x3b00cb][_0xf317fa]['userId']:null,_0x15d9be=_0x3b00cb===_0x1b3afc['length']-0x1,_0x1a3f64=_0x343407[_0xf317fa][0x0],_0x1665ef=_0x6460a4['isObject'](_0x1b3afc[_0x3b00cb]['item']);!_0x482d50[_0xf317fa]&&_0x40ca12?_0x482d50[_0xf317fa]={'start':_0x33470d,'tapeItem':_0x1b3afc[_0x3b00cb],'userId':_0x4d3116,'type':_0xf317fa}:_0x482d50[_0xf317fa]&&!_0x40ca12?(_0x482d50[_0xf317fa]['end']=_0x33470d,_0x1b5c99(_0x482d50[_0xf317fa]),_0x482d50[_0xf317fa]=null):_0x482d50[_0xf317fa]&&_0x40ca12&&_0x482d50[_0xf317fa]['userId']!==_0x4d3116&&(_0x482d50[_0xf317fa]['end']=_0x33470d,_0x1a3f64&&_0x1a3f64['userId']===_0x482d50[_0xf317fa]['userId']||_0x1b5c99(_0x482d50[_0xf317fa]),_0x482d50[_0xf317fa]={'start':_0x33470d,'tapeItem':_0x1b3afc[_0x3b00cb],'userId':_0x4d3116,'type':_0xf317fa}),_0x482d50[_0xf317fa]&&_0x1665ef&&('elementStart'!==_0x1b3afc[_0x3b00cb]['type']||_0x1a3f64&&_0x1a3f64['userId']===_0x4d3116||_0x343407[_0xf317fa]['unshift']({'userId':_0x4d3116,'object':_0x1b3afc[_0x3b00cb]['item'],'change':_0x482d50[_0xf317fa]}),'elementEnd'===_0x1b3afc[_0x3b00cb]['type']&&_0x1a3f64&&_0x1a3f64['object']===_0x1b3afc[_0x3b00cb]['item']&&(_0x343407[_0xf317fa]['shift'](),_0x482d50[_0xf317fa]=_0x1a3f64['change'])),_0x482d50[_0xf317fa]&&_0x15d9be&&(_0x482d50[_0xf317fa]['end']=_0x2a2832,_0x1b5c99(_0x482d50[_0xf317fa]),_0x482d50[_0xf317fa]=null);}function _0x1b5c99({start:_0x3ab4ce,end:_0x47fa62,tapeItem:_0x2f8a52,userId:_0x2987d7,type:_0x317c94}){const _0x5d1d0c=_0x2f8a52['item'],_0x1487a6=_0x26fdbb['schema']['isBlock'](_0x5d1d0c)&&!_0x26fdbb['schema']['isLimit'](_0x5d1d0c),_0x4f9e56=_0x3ab4ce['nodeAfter']==_0x47fa62['parent']&&_0x47fa62['isAtStart'];if(_0x1487a6&&_0x4f9e56)return;const _0x4f9d43=_0x26fdbb['createRange'](_0x3ab4ce,_0x47fa62),_0x135ce0=_0x3ba3f2['get'](_0x2987d7),_0x38a1e0=new r({'author':_0x135ce0,'type':'isAdded'==_0x317c94||'isAddSuggestion'==_0x317c94?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x317c94||'isRemoveSuggestion'==_0x317c94},'createdAt':new Date(),'rootName':_0x56870c});_0x40bec4['push'](_0x38a1e0),_0x4e5126['markers']['set']('revision:'+_0x38a1e0['id'],_0x4f9d43);}function _0x5793d1(_0x1a847f,_0x21deda){const _0x489110=_0x1a847f['getAttributes'](),_0xddf9c8=_0x21deda['getAttributes']();for(const _0x28e0bc of _0x489110){if(_0x28e0bc[0x1]!==_0x21deda['getAttribute'](_0x28e0bc[0x0]))return!0x1;_0xddf9c8['next']();}return _0xddf9c8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xe8fdfb=>{const _0x5a4289=_0xe8fdfb['markerName']['split'](':')[0x1],_0x2ad885=this['_getChangeFromId'](_0x5a4289);if(!_0x2ad885)return null;const _0x390706='add'==_0x2ad885['type']?'insertion':'deletion',_0x5d4600=['ck-suggestion-marker','ck-suggestion-marker-'+_0x390706];return _0x2ad885['data']['isSuggestion']&&_0x5d4600['push']('ck-suggestion-marker-'+_0x390706+'-new'),this['activeChange']==_0x2ad885&&_0x5d4600['push']('ck-suggestion-marker--active'),{'classes':_0x5d4600,'attributes':{'data-change-id':_0x5a4289}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3e7d03=>{_0x3e7d03['on']('element:pre',(_0x17554c,_0x28d062,_0x4c1b8b)=>{const _0x3bd151=_0x28d062['viewItem']['getChild'](0x0);if(!_0x3bd151||!_0x3bd151['is']('element','code'))return;if(!_0x4c1b8b['consumable']['consume'](_0x3bd151,{'attributes':['vid_start','vid_end']}))return;const _0x464cc0=_0x28d062['modelRange']['start']['nodeAfter'];_0x4c1b8b['writer']['setAttribute']('vid_start',_0x3bd151['getAttribute']('vid_start'),_0x464cc0),_0x4c1b8b['writer']['setAttribute']('vid_end',_0x3bd151['getAttribute']('vid_end'),_0x464cc0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x33bcb1=>{_0x33bcb1['on']('element',(_0xf35485,_0x24521e,_0x208df0)=>{if(!_0x208df0['consumable']['consume'](_0x24521e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x24521e['modelRange']['isCollapsed'])return;const _0x50bfed=_0x24521e['modelRange']['start']['nodeAfter'];_0x50bfed['hasAttribute']('vid_start')||_0x50bfed['hasAttribute']('vid')||(_0x208df0['writer']['setAttribute']('vid_start',_0x24521e['viewItem']['getAttribute']('vid_start'),_0x50bfed),_0x208df0['writer']['setAttribute']('vid_end',_0x24521e['viewItem']['getAttribute']('vid_end'),_0x50bfed));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4c251a=>_0x4c251a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40a5d5,[,_0x272194])=>{['vid_start','vid_end','vid']['includes'](_0x272194)&&(_0x40a5d5['return']=!0x0,_0x40a5d5['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1dc3f9=>{_0x1dc3f9['on']('attribute:vid',(_0x41b3cc,_0xdab97e,_0x5e851c)=>{if('\x20'!=_0xdab97e['item']['data']||_0xdab97e['item']['parent']['maxOffset']>0x1)return;if(!_0x5e851c['consumable']['consume'](_0xdab97e['item'],_0x41b3cc['name']))return;const _0x4e92cf=_0x5e851c['writer'],_0x490146=_0x5e851c['mapper']['toViewRange'](_0xdab97e['range']);_0x4e92cf['wrap'](_0x490146,_0x4e92cf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x13556b){const _0x578be3=_0x13556b['plugins']['get']('RevisionViewer');return(_0x31b339,_0x59bdd8,_0x1baf76)=>{const _0x1476c5=_0x59bdd8['markerName']['split'](':')[0x1],_0x27a433=_0x578be3['_getChangeFromId'](_0x1476c5);if(!_0x27a433)return null;const _0x354465='add'==_0x27a433['type']?'split':'merge';if(!_0x1baf76['consumable']['test'](_0x59bdd8['markerRange'],_0x31b339['name']))return;const _0x48ccbd=_0x59bdd8['markerRange']['getWalker'](),_0x53d9d4=_0x59bdd8['markerRange']['start'],_0x23f216=_0x13556b['model']['schema'];let _0x4d0d6b=null,_0x2f8b66=null,_0x4580fd=!0x1,_0x346d32=!0x1;for(const _0x24011b of _0x48ccbd){const _0x17beb0=_0x24011b['item'];_0x4580fd=_0x4580fd||_0x23f216['isContent'](_0x17beb0);const _0x29b01e=_0x1baf76['mapper']['toViewElement'](_0x17beb0);if(_0x29b01e&&_0x29b01e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x24011b['type']&&(_0x23f216['isBlock'](_0x17beb0)&&!_0x23f216['isLimit'](_0x17beb0)&&(_0x17beb0['nextSibling']||_0x53d9d4['isAtEnd']?_0x4d0d6b&&_0x4d0d6b['parent']==_0x17beb0||(_0x4d0d6b=_0x17beb0,_0x483a0a(_0x24011b['previousPosition']),_0x346d32=!0x0):_0x2f8b66=_0x2f8b66||_0x24011b['previousPosition']));}function _0x483a0a(_0x359771){const _0x261479=_0x1baf76['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x354465}),_0x55e0af=_0x1baf76['mapper']['toViewPosition'](_0x359771);_0x27a433['data']['isSuggestion']&&_0x1baf76['writer']['addClass']('ck-suggestion-marker-'+_0x354465+'-new',_0x261479),_0x578be3['activeChange']==_0x27a433&&_0x1baf76['writer']['addClass']('ck-suggestion-marker--active',_0x261479),_0x1baf76['writer']['insert'](_0x55e0af,_0x261479),_0x1baf76['mapper']['bindElementToMarker'](_0x261479,_0x59bdd8['markerName']);}_0x4580fd||_0x346d32||!_0x2f8b66||_0x483a0a(_0x2f8b66);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xcf0a8a,_0x449939,_0xf325ce)=>{const _0x1ae4ce=_0xf325ce['mapper']['markerNameToElements'](_0x449939['markerName']);if(_0x1ae4ce){for(const _0x340030 of _0x1ae4ce)(_0x340030['hasClass']('ck-suggestion-marker-split')||_0x340030['hasClass']('ck-suggestion-marker-merge'))&&(_0xf325ce['mapper']['unbindElementFromMarkerName'](_0x340030,_0x449939['markerName']),_0xf325ce['writer']['remove'](_0x340030));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xc5d717,_0x512928,_0x1dea7b)=>{const _0x313c18=_0x512928['markerName']['split'](':')[0x1],_0x52c4f7=this['_getChangeFromId'](_0x313c18);if(!_0x52c4f7)return null;const _0x2d3916='add'==_0x52c4f7['type']?'split':'merge';if(_0x1dea7b['consumable']['test'](_0x512928['markerRange'],_0xc5d717['name']))for(const _0x455e2d of _0x512928['markerRange']['getItems']()){if(!_0x455e2d['is']('element','softBreak'))continue;const _0x50bb15=_0x1dea7b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d3916}),_0x3466eb=_0x1dea7b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x455e2d));_0x52c4f7['data']['isSuggestion']&&_0x1dea7b['writer']['addClass']('ck-suggestion-marker-'+_0x2d3916+'-new',_0x50bb15),this['activeChange']==_0x52c4f7&&_0x1dea7b['writer']['addClass']('ck-suggestion-marker--active',_0x50bb15),_0x1dea7b['writer']['insert'](_0x3466eb,_0x50bb15),_0x1dea7b['mapper']['bindElementToMarker'](_0x50bb15,_0x512928['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1aa40c=>{for(const _0x371ae7 of this['editor']['model']['document']['getRootNames']()){const _0x5a9241=this['editor']['model']['document']['getRoot'](_0x371ae7),_0x552fff=this['editor']['editing']['view']['document']['getRoot'](_0x371ae7);if(_0x552fff){const _0x56c2ac=_0x5a9241['getAttribute']('revisionHistoryAttachChange');if(_0x1aa40c['removeAttribute']('data-change-id',_0x552fff),_0x1aa40c['removeClass']('ck-revision-history-root-add',_0x552fff),_0x1aa40c['removeClass']('ck-revision-history-root-remove',_0x552fff),_0x1aa40c['removeClass']('ck-revision-history-root--active',_0x552fff),_0x56c2ac){const _0x5aae70=this['_getChangeFromId'](_0x56c2ac);if(!_0x5aae70)return null;_0x1aa40c['setAttribute']('data-change-id',_0x56c2ac,_0x552fff),_0x1aa40c['addClass']('ck-revision-history-root-'+_0x5aae70['type'],_0x552fff),this['activeChange']==_0x5aae70&&_0x1aa40c['addClass']('ck-revision-history-root--active',_0x552fff);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2ff188=>'revision-comment:'+_0x2ff188,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x28478c=>'revision-suggestion:'+_0x28478c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2feac9=>({'name':'suggestion:'+_0x2feac9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x53dfe8=>{const _0x29b7db=_0x53dfe8['markerName']['split'](':')[0x1];return'insertion'!=_0x29b7db&&'deletion'!=_0x29b7db?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x29b7db]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3456d2,_0x2dedfa,_0x389ace)=>{const _0x2eabdc=_0x389ace['mapper']['markerNameToElements'](_0x2dedfa['markerName']);if(_0x2eabdc){for(const _0x3167d1 of _0x2eabdc)_0x3167d1['is']('uiElement')&&(_0x389ace['mapper']['unbindElementFromMarkerName'](_0x3167d1,_0x2dedfa['markerName']),_0x389ace['writer']['remove'](_0x3167d1));}},{'priority':'high'});}['_getChangeFromId'](_0x41083a){return this['_changeIdToChange']['get'](_0x41083a);}['_getViewForChange'](_0x4ac64f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x4ac64f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x172f99,_0x2daed8,_0x166ccf,_0x2b841c)=>{_0x2b841c&&this['_balloon']['remove'](_0x2b841c),_0x166ccf&&(this['_balloon']['add']({'view':_0x166ccf,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3cfa5c=this['editor']['editing'],_0x54303d=this['_getChangeFromId'](_0x166ccf['changeId']);let _0x388409;if(_0x54303d['data']['isOnRoot']){const _0x36ecfb=_0x3cfa5c['view']['getDomRoot'](_0x54303d['rootName']);_0x388409=Array['from'](_0x36ecfb['getClientRects']());}else{const _0x4e3b87=this['editor']['model']['markers']['get']('revision:'+_0x166ccf['changeId']);_0x388409=Array['from'](_0x3cfa5c['mapper']['markerNameToElements'](_0x4e3b87['name']))['map'](_0x395d9b=>_0x3cfa5c['view']['domConverter']['mapViewToDom'](_0x395d9b))['map'](_0x7f7695=>Array['from'](_0x7f7695['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x388409[0x0];return _0x388409['find'](_0x1e54f7=>_0x1e54f7['top']-0x3<=this['_activeViewTarget']['y']&&_0x1e54f7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1e54f7['left']-0x3<=this['_activeViewTarget']['x']&&_0x1e54f7['right']+0x3>=this['_activeViewTarget']['x'])||_0x388409[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x262e6f,_0x9f772d,_0x58367f,_0x2cebb5)=>{this['activeView']=_0x58367f?this['_getViewForChange'](_0x58367f):null,this['editor']['model']['change'](()=>{const _0x4ddd0d=this['editor']['editing'];_0x2cebb5&&(_0x2cebb5['data']['isOnRoot']?_0x4ddd0d['view']['change'](_0x510e03=>{_0x510e03['removeClass']('ck-revision-history-root--active',_0x4ddd0d['view']['document']['getRoot'](_0x2cebb5['rootName']));}):_0x4ddd0d['reconvertMarker']('revision:'+_0x2cebb5['id'])),_0x58367f&&(_0x58367f['data']['isOnRoot']?_0x4ddd0d['view']['change'](_0x4a1c7b=>{_0x4a1c7b['addClass']('ck-revision-history-root--active',_0x4ddd0d['view']['document']['getRoot'](_0x58367f['rootName']));}):_0x4ddd0d['reconvertMarker']('revision:'+_0x58367f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3db247,_0x3bd035)=>{if(this['activeChange'])return;const _0x3ce437=this['_findChangeIdFromDomTarget'](_0x3bd035['target']),_0x68d7a7=this['_changeIdToChange']['get'](_0x3ce437);_0x68d7a7?(this['_activeViewTarget']={'x':_0x3bd035['domEvent']['x'],'y':_0x3bd035['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x68d7a7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5be1cb,_0x7ff850)=>{const _0x5ebc18=this['_findChangeIdFromDomTarget'](_0x7ff850['target']),_0x26ab77=this['_changeIdToChange']['get'](_0x5ebc18);_0x26ab77?(this['_activeViewTarget']={'x':_0x7ff850['domEvent']['x'],'y':_0x7ff850['domEvent']['y']},_0x26ab77===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x26ab77):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2d0503){do{const _0x284e69=_0x2d0503['getAttribute']('data-change-id');if(_0x284e69)return _0x284e69;_0x2d0503=_0x2d0503['parent'];}while(_0x2d0503);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x16fd09=>{for(const _0x3529a1 of this['editor']['model']['markers'])_0x16fd09['removeMarker'](_0x3529a1);});}}function X(_0x5d93e0,_0x429e23){return(_0x244690,_0x3227c3,_0x33417f)=>{if(!_0x33417f['consumable']['test'](_0x3227c3['markerRange'],_0x244690['name']))return;const _0x28a9fd=_0x3227c3['markerRange']['getWalker'](),_0x5db541=_0x3227c3['markerRange']['start'],_0x4825a3=_0x5d93e0['model']['schema'];let _0x12e0f9=null,_0x4292b9=null,_0x167284=!0x1,_0x171460=!0x1;for(const _0x9d7c7 of _0x28a9fd){const _0x334fca=_0x9d7c7['item'];_0x167284=_0x167284||_0x4825a3['isContent'](_0x334fca);const _0x4467a5=_0x33417f['mapper']['toViewElement'](_0x334fca);if(_0x4467a5&&_0x4467a5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x9d7c7['type']&&(_0x4825a3['isBlock'](_0x334fca)&&!_0x4825a3['isLimit'](_0x334fca)&&(_0x334fca['nextSibling']||_0x5db541['isAtEnd']?_0x12e0f9&&_0x12e0f9['parent']==_0x334fca||(_0x12e0f9=_0x334fca,_0x13f725(_0x9d7c7['previousPosition']),_0x171460=!0x0):_0x4292b9=_0x4292b9||_0x9d7c7['previousPosition']));}function _0x13f725(_0x2f90ac){const _0x36e4a2=_0x33417f['mapper']['toViewPosition'](_0x2f90ac),_0x356559=_0x33417f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x429e23});_0x33417f['writer']['insert'](_0x36e4a2,_0x356559),_0x33417f['mapper']['bindElementToMarker'](_0x356559,_0x3227c3['markerName']);}_0x167284||_0x171460||!_0x4292b9||_0x13f725(_0x4292b9);};}class wt extends _0x1122d0{constructor(_0x5384c3){super(_0x5384c3);const _0x4e4f94=_0x5384c3['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4e4f94,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4e4f94,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x38883b=this['editor'],_0x587706=_0x38883b['plugins']['get'](m),_0x3a123b=_0x587706['isReady']?_0x587706['diff']['newRevisionId']:null;_0x38883b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a123b);}['refresh'](){const {isReady:_0x3537fa,isEnabled:_0x35830a,repository:_0x7d90cb,diff:_0x180a61}=this['editor']['plugins']['get'](m),_0x18ec94=_0x180a61&&_0x7d90cb['getLaterVisibleRevision'](_0x180a61['newRevisionId']);this['isEnabled']=_0x3537fa&&_0x35830a&&Boolean(_0x18ec94);}}class pt extends _0x1122d0{['_step'];constructor(_0x450a2c,{direction:_0x4fcb1e}){super(_0x450a2c);const _0x5605fe=_0x450a2c['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4fcb1e?0x1:-0x1,this['listenTo'](_0x5605fe,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5605fe,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5605fe,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x105e91=this['editor'],_0x37e80a=_0x105e91['plugins']['get'](m),{isNavigationMode:_0x5b480b,currentChangeNumber:_0x54a25d}=_0x37e80a;let _0x263dde;if(_0x37e80a['activeChange']=_0x5b480b?_0x37e80a['diff']['changes']['get'](_0x54a25d+this['_step']):_0x37e80a['diff']['changes']['first'],_0x37e80a['activeChange']['data']['isOnRoot'])_0x263dde=_0x105e91['editing']['view']['getDomRoot'](_0x37e80a['activeChange']['rootName']);else{const _0x36a26b=_0x105e91['model']['markers']['get']('revision:'+_0x37e80a['activeChange']['id']);_0x263dde=_0x1d4af0(_0x105e91['editing'],_0x36a26b);}_0x1e191f({'target':_0x263dde,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xd3ec8c,currentChangeNumber:_0xd9ea12,numberOfChanges:_0x6c369b,isReady:_0x157344,isEnabled:_0x48ed7c}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x48ed7c&&_0x157344&&_0x6c369b)&&(!_0xd3ec8c||(0x1===this['_step']?_0xd9ea12<_0x6c369b-0x1:_0xd9ea12>0x0));}}class _i extends _0x2cb964{constructor(_0x31d3cb){super(_0x31d3cb);const _0x44a39d=this['bindTemplate'],_0xa0808d=new _0x9857a7(_0x31d3cb),_0x2482d4=new _0x9857a7(_0x31d3cb);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',(_0x55cec4,_0x311778)=>_0x55cec4&&_0x311778>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2da7b4,_0x1cb613,_0x448cb0,_0x3ab322)=>{if(!_0x2da7b4)return g(_0x31d3cb,'Loading...');if(!_0x448cb0)return g(_0x31d3cb,'No\x20changes');const _0x2545b5=g(_0x31d3cb,'NUMBER_OF_CHANGES',_0x448cb0);return _0x3ab322?g(_0x31d3cb,'X_OF_Y_CHANGES',[_0x1cb613+0x1,_0x448cb0]):_0x2545b5;}),_0xa0808d['set']({'label':g(_0x31d3cb,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x183156}),_0x2482d4['set']({'label':g(_0x31d3cb,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5debcc}),_0xa0808d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2482d4['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xa0808d['on']('execute',()=>this['fire']('execute','backward')),_0x2482d4['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',_0x44a39d['if']('_isStatusLabelVisible','ck-hidden',_0x2c869c=>!_0x2c869c)]},'children':[{'text':_0x44a39d['to']('isNavigationMode',_0x4f7a70=>_0x4f7a70?g(_0x31d3cb,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x31d3cb,'Total')+':\x20')}]},{'text':_0x44a39d['to']('_statusText')}]},new _0x354a4f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xa0808d,_0x2482d4]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x156834{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x38c69d=this['editor']['editing']['view'];_0x38c69d['change'](_0x1fade9=>{for(const _0x224f56 of _0x38c69d['document']['roots'])_0x1fade9['addClass'](ce,_0x224f56);});}['hide'](){const _0x5bf199=this['editor']['editing']['view'];_0x5bf199['change'](_0x2a76b4=>{for(const _0x117a92 of _0x5bf199['document']['roots'])_0x2a76b4['removeClass'](ce,_0x117a92);});}}class R extends _0x156834{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x24222f=this['editor'],_0x496cd2=_0x24222f['plugins']['get'](m),_0x22b510=_0x24222f['plugins']['get'](le);_0x24222f['ui']['componentFactory']['add']('exitToEditing',_0x15afe2=>{const _0x5e823f=new _0x9857a7(_0x15afe2);return _0x5e823f['set']({'label':g(_0x15afe2,'Back\x20to\x20editing'),'icon':_0x5533ee,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5e823f,'execute',()=>{_0x24222f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5e823f;}),_0x24222f['ui']['componentFactory']['add']('restoreRevision',_0x433580=>{const _0x49a7f3=new _0x9857a7(_0x433580);return _0x49a7f3['set']({'label':g(_0x433580,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x49a7f3['bind']('isEnabled')['to'](_0x24222f['commands']['get']('restoreRevision')),this['listenTo'](_0x49a7f3,'execute',()=>_0x24222f['execute']('restoreRevision')),_0x49a7f3;}),_0x24222f['ui']['componentFactory']['add']('changesNavigation',_0xcfb5cb=>{const _0x280b5e=new _i(_0xcfb5cb),_0xbf63ab=_0x24222f['commands']['get']('showPreviousChange'),_0x4607b2=_0x24222f['commands']['get']('showNextChange');return _0x280b5e['bind']('isBackwardNavigationEnabled')['to'](_0xbf63ab,'isEnabled'),_0x280b5e['bind']('isForwardNavigationEnabled')['to'](_0x4607b2,'isEnabled'),_0x280b5e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x496cd2),this['listenTo'](_0x280b5e,'execute',(_0xe787ca,_0x51406b)=>{_0x24222f['execute']('forward'===_0x51406b?'showNextChange':'showPreviousChange');}),_0x280b5e;}),_0x22b510['show'](),_0x496cd2['on']('change:isReady',(_0x23a9e3,_0x16e56b,_0xc8ff2a)=>{_0xc8ff2a?_0x22b510['hide']():_0x22b510['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x8d2973,_0x25d68b){super(_0x8d2973,_0x25d68b);const _0xeebf26=this['bindTemplate'];this['set']({'label':g(_0x8d2973,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x8d2973,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xeebf26['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x284695=this['fieldView']['element'];this['_tooltipString']=_0x284695['scrollWidth']>_0x284695['clientWidth']&&_0x284695['value']||'';}}class oi extends _0x2cb964{constructor(_0x50f719,_0x333425,_0x49f369){super(_0x50f719);const _0x3d1ac0=new _0x502b31();_0x3d1ac0['set']({'content':_0x419668,'viewBox':'0\x200\x2011\x2010'});const _0x114fce=['ck','ck-revision-history-sidebar__revision-author'];_0x49f369&&_0x114fce['push']('ck-revision-history-sidebar__revision-author_creator');const _0x470f47=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x50f719,_0x49f369?'Revision\x20creator':'Revision\x20author')},'children':[_0x3d1ac0,_0x333425['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x114fce},'children':_0x470f47});}}function ni(_0x3cc3b4,_0x49a11b){const _0x4f2fc0=_0x3cc3b4['bindTemplate'],_0xffbe35=_0x3cc3b4['locale'],_0x1d366f=_0x3a34e7(_0xffbe35);_0x1d366f['panelPosition']='sw';const _0x154b13=function(_0x5d8849,_0x380c42){const _0x113c3a=function(_0x3187e8,_0x5abcd7){const _0x37fc58=_0x3187e8['locale'],_0x44343f={'Compare\x20against\x20selected':g(_0x37fc58,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x37fc58,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x37fc58,'Restore\x20this\x20revision')};return _0x5abcd7['map'](_0x45a07b=>{const _0x26d3fb=_0x44343f[_0x45a07b['name']];return _0x26d3fb&&_0x26d3fb!==_0x45a07b['name']&&(_0x45a07b['name']=_0x26d3fb),_0x45a07b;});}(_0x5d8849,_0x380c42),_0x4938cb=new _0x4cc644();for(const _0x3c12fc of _0x113c3a){const _0x2adc42={'type':'button','model':new to({'label':_0x3c12fc['name'],'class':_0x3c12fc['class'],'withText':!0x0,'role':'menuitem','_action':_0x3c12fc['action']})};_0x2adc42['model']['bind']('isEnabled')['to'](_0x5d8849,'isActionsDropdownOpen',_0x5f1ed9=>'function'!=typeof _0x3c12fc['isEnabled']||(!_0x5f1ed9||_0x3c12fc['isEnabled'](_0x5d8849))),_0x4938cb['add'](_0x2adc42);}return _0x4938cb;}(_0x3cc3b4,_0x49a11b);return _0x3cc3b4['bind']('isActionsDropdownOpen')['to'](_0x1d366f,'isOpen'),_0x1d366f['buttonView']['set']({'label':g(_0xffbe35,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x351c46}),_0x1d366f['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4f2fc0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4f2fc0['to'](_0xdc477f=>_0xdc477f['stopPropagation']())}}),_0x1d366f['on']('execute',_0xb00b5d=>{_0x3cc3b4['isReady']&&'function'==typeof _0xb00b5d['source']['_action']&&_0xb00b5d['source']['_action'](_0x3cc3b4);}),_0x1dd5d5(_0x1d366f,_0x154b13,{'role':'menu'}),_0x1d366f['listenTo'](_0x3cc3b4,'change:isActionsDropdownOpen',(_0x5764c1,_0x208881,_0x53b6e9)=>{if(_0x53b6e9)for(const _0x2de8f3 of _0x1d366f['listView']['items']){const _0x103e8f=_0x2de8f3['children']['first'],_0x3c3fdd=_0x49a11b['find'](_0x2f534e=>_0x2f534e['action']===_0x103e8f['_action'])['isVisible'];_0x2de8f3['isVisible']=void 0x0===_0x3c3fdd||_0x3c3fdd(_0x3cc3b4);}}),_0x1d366f;}class ai extends/* #__PURE__ -- @preserve */
26
- _0xc597a8(_0x2cb964){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x23506b,_0x2f935f,_0x3d8151,_0x3cc86c){super(_0x23506b);const _0x51eacf=this['bindTemplate'],_0x6988da=function(_0x3f856f,_0x384f32){const _0x36d900=Array['from'](_0x384f32['authors'])['filter'](_0x518fcd=>_0x518fcd!=_0x384f32['creator']);return _0x384f32['creator']&&_0x36d900['unshift'](_0x384f32['creator']),_0x36d900['map'](_0x44a3fb=>new oi(_0x3f856f,_0x44a3fb,_0x44a3fb==_0x384f32['creator']));}(_0x23506b,_0x2f935f);this['id']=_0x2f935f['id'],this['_revision']=_0x2f935f,this['_requireRevisionName']=_0x3cc86c,this['bind']('name','createdAt')['to'](_0x2f935f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4a51b5=>{return _0x97f7a6=_0x23506b['uiLanguage'],(_0x4e8133=_0x4a51b5)['toLocaleDateString'](_0x97f7a6,{'month':'long','day':'numeric'})+',\x20'+_0x4e8133['toLocaleTimeString'](_0x97f7a6,{'hour':'numeric','minute':'numeric'});var _0x97f7a6,_0x4e8133;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x23506b,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x42072a=>_0x42072a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x58ea77,_0x4041ec)=>_0x58ea77&&_0x4041ec),this['revisionActionsView']=_0x3d8151&&_0x3d8151['length']?ni(this,_0x3d8151):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x51eacf['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x51eacf['if']('isEnabled','ck-disabled',_0x395249=>!_0x395249),_0x51eacf['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x51eacf['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x51eacf['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':_0x51eacf['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':_0x6988da}]},this['revisionActionsView']],'on':{'click':_0x51eacf['to'](_0x11d3c8=>{_0x11d3c8['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x9ae661=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x9ae661,'change',()=>{this['_requireRevisionName']&&!_0x9ae661['value']||this['fire']('setName',{'id':this['id'],'name':_0x9ae661['value']}),_0x9ae661['value']||(_0x9ae661['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x3c0d27,_0x4b466d){const _0x54b034=_0x2a97cf['fromJSDate'](_0x3c0d27)['setLocale'](_0x4b466d),_0x234e32=_0x2a97cf['local'](),_0x3e59d7=_0x234e32['minus']({'days':0x1})['startOf']('day');let _0x1af682,_0x4fcacd;return _0x54b034['hasSame'](_0x234e32,'day')?(_0x1af682=_0x54b034['startOf']('day')['toJSDate'](),_0x4fcacd=_0x54b034['toRelativeCalendar']()):_0x54b034['hasSame'](_0x3e59d7,'day')?(_0x1af682=_0x3e59d7['toJSDate'](),_0x4fcacd=_0x54b034['toRelativeCalendar']()):_0x54b034['hasSame'](_0x234e32,'week')?(_0x1af682=_0x54b034['startOf']('week')['toJSDate'](),_0x4fcacd=_0x54b034['weekdayLong']||''):_0x54b034['hasSame'](_0x234e32,'year')?(_0x1af682=_0x54b034['startOf']('month')['toJSDate'](),_0x4fcacd=_0x54b034['monthLong']||''):(_0x1af682=_0x54b034['startOf']('year')['toJSDate'](),_0x4fcacd=String(_0x54b034['year'])),{'startDate':_0x1af682,'localizedPeriodName':_0x4fcacd};}class mi extends _0x2cb964{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3a645f,_0x5afb08,_0x47aafa,_0x31d833){super(_0x3a645f);const _0x5f27e8=vi(_0x5afb08,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5afb08,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x47aafa,this['_requireRevisionName']=_0x31d833,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':_0x5f27e8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x87cb05){const _0x16def7=new ai(this['locale'],_0x87cb05,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x16def7);}['removeRevision'](_0x8763b0){const _0x1c2097=this['revisionViews']['find'](_0x1c785c=>_0x1c785c['id']===_0x8763b0['id']);this['revisionViews']['remove'](_0x1c2097);}}class as extends _0x2cb964{constructor(_0x5d864f){super(_0x5d864f);const _0x31e1d4=new _0x502b31();_0x31e1d4['content']=_0x5cdd2b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x31e1d4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x5d864f,'Revision\x20history')]}]});}}class di extends _0x2cb964{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2958fa,_0x27769b,_0x4f8fd3,_0x36b508){super(_0x2958fa);const _0x230520=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x27769b,this['_revisionActions']=_0x4f8fd3,this['_requireRevisionName']=_0x36b508,this['on']('select',(_0x54bd66,_0x31d767)=>{this['fire']('revisionSelected',_0x31d767);}),this['on']('setName',(_0x14979d,_0x4058e5)=>{this['fire']('revisionSetName',_0x4058e5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2958fa),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x230520['if']('isEnabled','ck-disabled',_0x1d2171=>!_0x1d2171)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x38dc57 of this['_revisions'])this['_addRevision'](_0x38dc57);this['_revisions']['on']('add',(_0x12f13d,_0x5b7959)=>{this['_addRevision'](_0x5b7959);}),this['_revisions']['on']('remove',(_0x45a6bc,_0xd395c3)=>{this['_removeRevision'](_0xd395c3);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x255531=>_0x255531['revisionViews']['map'](_0x251749=>_0x251749))['flat']();}['selectRevision'](_0x21c59a){for(const _0x398740 of this['revisionViews'])_0x21c59a&&_0x21c59a['id']===_0x398740['id']?_0x398740['select']():_0x398740['deselect']();}['highlightRevisions'](_0x28751c){for(const _0x423d9a of this['revisionViews'])_0x28751c['some'](({id:_0x650d5f})=>_0x650d5f===_0x423d9a['id'])?_0x423d9a['highlight']():_0x423d9a['unhighlight']();}['_addRevision'](_0x1c872d){const _0x2b2733=vi(_0x1c872d['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x476c12=this['timePeriodViews']['get'](0x0);_0x476c12&&_0x476c12['startDate']['getTime']()===_0x2b2733['getTime']()||(_0x476c12=new mi(this['locale'],_0x2b2733,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x476c12)),_0x476c12['addRevision'](_0x1c872d);}['_removeRevision'](_0x570373){const _0x13a745=vi(_0x570373['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x13a745)['removeRevision'](_0x570373);}['_getTimePeriodViewByStartDate'](_0x2eda59){return this['timePeriodViews']['find'](_0x4ce93e=>_0x4ce93e['startDate']['getTime']()===_0x2eda59['getTime']());}}class d extends _0x156834{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x39982f,uid as _0x12cc6f,Collection as _0x5a3b28,logWarning as _0x501928,FocusTracker as _0x166ce3,KeystrokeHandler as _0x153ab6,scrollViewportToShowTarget as _0x9057d1,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x131c87}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1798f6,set as _0x5628e4,unset as _0x4c6faf,isEqual as _0xf9ecd0}from'es-toolkit/compat';import{Plugin as _0xe250eb,PendingActions as _0x47b6e5,Command as _0x1cb13e,ElementApiMixin as _0x25bb70,Editor as _0x5fd6fa}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4bf42f,getMarkerDomElement as _0x7319fc,ConfirmMixin as ti,sanitizeEditorConfig as _0x1f62a5}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x35b6ad,ViewAttributeElement as _0x1e20fe,ViewEmptyElement as _0x578896,ViewRawElement as _0x1c929e,ViewUIElement as _0x4b5be8,ViewDocumentFragment as _0x51001e,ViewText as _0x43fb8a,ViewElement as _0x331a47,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4a7a20,IconChevronUp as _0x76a13d,IconChevronDown as _0x58725d,IconUndo as _0x4ded01,IconUser as _0x533b54,IconThreeVerticalDots as _0x4ffc27}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x4775bf,submitHandler as _0x3c9f52,LabeledFieldView as _0xc3e9c9,createLabeledInputText as _0x27d9e4,createDropdown as _0x1e3b6e,ListView as _0x11702e,ListItemView as _0x448b5a,ButtonView as te,MenuBarMenuView as _0x232f0e,MenuBarMenuListView as _0x38da37,MenuBarMenuListItemView as _0x4bab68,MenuBarMenuListItemButtonView as _0x1ccbbb,ContextualBalloon as _0x22739a,ToolbarSeparatorView as _0xded5e5,IconView as _0x15c303,addListToDropdown as _0x3a54c1,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x21d86c}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x39982f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x519deb){super(),this['id']=_0x519deb['id']||_0x12cc6f(),this['creator']=_0x519deb['creator']||null,this['authors']=_0x519deb['authors']||[],this['diffData']=_0x519deb['diffData']||null,this['toVersion']=_0x519deb['toVersion']||0x0,this['fromVersion']=_0x519deb['fromVersion']||0x0,this['set']('name',_0x519deb['name']||''),this['set']('createdAt',_0x519deb['createdAt']||new Date()),this['set']('attributes',_0x519deb['attributes']||{});}['setName'](_0x4d4db2){this['_update']({'name':_0x4d4db2});}['setAttribute'](_0x1fc7fd,_0x48f285){const _0x433de1=_0x1798f6(this['attributes']);_0x5628e4(_0x433de1,_0x1fc7fd,_0x48f285),this['_update']({'attributes':_0x433de1});}['removeAttribute'](_0x4e0c9b){const _0x50bd02=_0x1798f6(this['attributes']);_0x4c6faf(_0x50bd02,_0x4e0c9b),this['_update']({'attributes':_0x50bd02});}['_update'](_0x5ea003,_0x5608d=!0x1){let _0x464073=!0x1;const _0x3cdb76={'id':this['id']},_0x52241e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x24cd75 of _0x52241e){const _0xda129=_0x5ea003[_0x24cd75];void 0x0!==_0xda129&&_0xda129!==this[_0x24cd75]&&(this[_0x24cd75]=_0xda129,_0x3cdb76[_0x24cd75]=_0xda129,_0x464073=!0x0);}_0x464073&&(_0x3cdb76['authors']&&(_0x3cdb76['authorsIds']=_0x3cdb76['authors']['map'](_0x3a227e=>_0x3a227e['id']),delete _0x3cdb76['authors']),this['fire']('_update',_0x3cdb76,_0x5608d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x357fb1=>_0x357fb1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0xe250eb{['_revisions'];static get['requires'](){return[_0x4bf42f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3156f6){super(_0x3156f6),this['_revisions']=new _0x5a3b28();}['afterInit'](){!async function(_0x20a35e){const _0x5d9c32=_0x102d21([0x6f,0x65,0x61,0x68,0x6a,0x56,0x51,0x4f,0x33,0x64,0x49,0x53,0x70,0x31,0x4b,0x75,0x67,0x4a,0x76,0x58,0x6d,0x32,0x44,0x74,0x48,0x4d,0x52,0x42,0x36,0x37,0x43,0x72,0x57,0x30,0x55,0x79,0x45,0x4e,0x7a,0x6e,0x73,0x66,0x41,0x71,0x46,0x5a,0x6b,0x47,0x6c,0x39,0x4c,0x34,0x54,0x77,0x69,0x38,0x78,0x62,0x50,0x35,0x59,0x63]),_0x367620=0xeb829,_0x151682=0x5931985c,_0x37a173=0x5936f084^_0x151682,_0x48630e=window[_0x102d21([0x44,0x61,0x74,0x65])][_0x102d21([0x6e,0x6f,0x77])](),_0x2ed9ab=_0x20a35e[_0x102d21([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48bdd9=new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e28cf=>{_0x2ed9ab[_0x102d21([0x6f,0x6e,0x63,0x65])](_0x102d21([0x72,0x65,0x61,0x64,0x79]),_0x1e28cf);}),_0x299d9f={[_0x102d21([0x6b,0x74,0x79])]:_0x102d21([0x45,0x43]),[_0x102d21([0x75,0x73,0x65])]:_0x102d21([0x73,0x69,0x67]),[_0x102d21([0x63,0x72,0x76])]:_0x102d21([0x50,0x2d,0x32,0x35,0x36]),[_0x102d21([0x78])]:_0x102d21([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]),[_0x102d21([0x79])]:_0x102d21([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]),[_0x102d21([0x61,0x6c,0x67])]:_0x102d21([0x45,0x53,0x32,0x35,0x36])},_0x385a96=_0x2ed9ab[_0x102d21([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x102d21([0x67,0x65,0x74])](_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36a79f(){let _0x953f43,_0x53016d=null,_0x402a35=null;try{if(_0x385a96==_0x102d21([0x47,0x50,0x4c]))return _0x102d21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x953f43=_0x2fca70(),!_0x953f43)return _0x102d21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x953f43[_0x102d21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x402a35=_0x5e5c5e(_0x953f43[_0x102d21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x953f43[_0x102d21([0x6a,0x74,0x69])])),await _0x514f3f()?_0x337772()?_0x4f5dfc()?_0x102d21([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18abab()?(_0x953f43[_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x102d21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53016d=_0x91ccaf(_0x102d21([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x953f43[_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x102d21([0x74,0x72,0x69,0x61,0x6c])&&(_0x53016d=_0x91ccaf(_0x102d21([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf29438()):_0x102d21([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x102d21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x102d21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4111c6){return _0x102d21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f5dfc(){const _0x3608ab=[_0x102d21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x102d21([0x74,0x72,0x69,0x61,0x6c])][_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x953f43[_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48630e/0x3e8:0xe10*_0x37a173;return _0x953f43[_0x102d21([0x65,0x78,0x70])]<_0x3608ab;}function _0x337772(){const _0xc97e12=_0x953f43[_0x102d21([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc97e12)return!0x1;if(_0xc97e12[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102d21([0x2a])))return!0x0;if(_0xc97e12[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102d21([0x52,0x48])))return!0x0;if(_0xc97e12[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102d21([0x52,0x52,0x48]))){if(_0x505a3d())return!0x0;if(_0x5db2e5()||_0x19cba5())return!0x0;}return!0x1;}function _0x18abab(){const _0x38aa0c=_0x953f43[_0x102d21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38aa0c||0x0==_0x38aa0c[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55e813}=new URL(window[_0x102d21([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38aa0c[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55e813))return!0x0;const _0x157ea7=_0x55e813[_0x102d21([0x73,0x70,0x6c,0x69,0x74])](_0x102d21([0x2e]));return _0x38aa0c[_0x102d21([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x561c74=>_0x561c74[_0x102d21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102d21([0x2a])))[_0x102d21([0x6d,0x61,0x70])](_0x2bbc87=>_0x2bbc87[_0x102d21([0x73,0x70,0x6c,0x69,0x74])](_0x102d21([0x2e])))[_0x102d21([0x73,0x6f,0x6d,0x65])](_0x2610e6=>_0x157ea7[_0x102d21([0x65,0x76,0x65,0x72,0x79])]((_0x3e845c,_0x228c09)=>_0x2610e6[_0x228c09]===_0x3e845c||_0x2610e6[_0x228c09]===_0x102d21([0x2a])));}function _0xf29438(){return _0x53016d&&_0x402a35?new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52dc5c,_0x37e452)=>{_0x53016d[_0x102d21([0x74,0x68,0x65,0x6e])](_0x52dc5c,_0x37e452),_0x402a35[_0x102d21([0x74,0x68,0x65,0x6e])](_0xcd1691=>{_0xcd1691!=_0x102d21([0x56,0x61,0x6c,0x69,0x64])&&_0x52dc5c(_0xcd1691);},_0x37e452);}):_0x53016d||_0x402a35||_0x102d21([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e5c5e(_0x2d7288,_0xa45a0f){return new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1daa41=>{if(_0x128dc7())return _0x1daa41(_0x102d21([0x56,0x61,0x6c,0x69,0x64]));_0x3dfe29(),_0x2ed9ab[_0x102d21([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x102d21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59290a=!0x1;const _0x3ed2c5=_0x12cc6f();function _0x926b5a(_0x1c804c){return!!_0x1c804c&&(typeof _0x1c804c===_0x102d21([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c804c===_0x102d21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c804c[_0x102d21([0x74,0x68,0x65,0x6e])]===_0x102d21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c804c[_0x102d21([0x63,0x61,0x74,0x63,0x68])]===_0x102d21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e4f07(_0x39f287){_0x125c9f(_0x39f287)[_0x102d21([0x74,0x68,0x65,0x6e])](_0x54b927=>{if(!_0x54b927||_0x54b927[_0x102d21([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x102d21([0x6f,0x6b]))return _0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d13c3(_0x1ed60a(_0x3ed2c5+_0xa45a0f))!=_0x54b927[_0x102d21([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x102d21([0x56,0x61,0x6c,0x69,0x64]);})[_0x102d21([0x74,0x68,0x65,0x6e])](_0x383a91=>(_0x45244c(),_0x383a91),()=>{const _0x378488=_0x416f44();return null==_0x378488?(_0x45244c(),_0x102d21([0x56,0x61,0x6c,0x69,0x64])):_0x102d21(_0x48630e-_0x378488>(0x7d3d1c5c^_0x151682)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x102d21([0x74,0x68,0x65,0x6e])](_0x1daa41)[_0x102d21([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1daa41(_0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c1369=0x590776dc^_0x151682;function _0x45244c(){const _0x4c0db9=_0x102d21([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d13c3(_0x1ed60a(_0x2d7288)),_0x360726=_0x42a44c(_0x3d13c3(window[_0x102d21([0x4d,0x61,0x74,0x68])][_0x102d21([0x63,0x65,0x69,0x6c])](_0x48630e/_0x3c1369)));window[_0x102d21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x102d21([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c0db9,_0x360726);}function _0x416f44(){const _0x4fbf28=_0x102d21([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d13c3(_0x1ed60a(_0x2d7288)),_0x194e5e=window[_0x102d21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x102d21([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fbf28);return _0x194e5e?window[_0x102d21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42a44c(_0x194e5e),0x10)*_0x3c1369:null;}function _0x125c9f(_0x301089){return new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb4086d,_0x42f5f1)=>{_0x301089[_0x102d21([0x74,0x68,0x65,0x6e])](_0xb4086d,_0x42f5f1),window[_0x102d21([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42f5f1,0x59304c9c^_0x151682);});}}_0x2ed9ab[_0x102d21([0x6f,0x6e])](_0x102d21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4432ef,_0x377b96)=>{if(_0x377b96[0x0]!=_0x2d7288)return _0x1daa41(_0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x377b96[0x1]={..._0x377b96[0x1],[_0x102d21([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ed2c5};},{[_0x102d21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x102d21([0x68,0x69,0x67,0x68])}),_0x2ed9ab[_0x102d21([0x6f,0x6e])](_0x102d21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7970e=>{_0x926b5a(_0x7970e[_0x102d21([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59290a=!0x0,_0x5e4f07(_0x7970e[_0x102d21([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x102d21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x102d21([0x6c,0x6f,0x77])}),_0x48bdd9[_0x102d21([0x74,0x68,0x65,0x6e])](()=>{_0x59290a||_0x1daa41(_0x102d21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x128dc7(){return _0x2ed9ab[_0x102d21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x102d21([0x76,0x69,0x65,0x77])][_0x102d21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x102d21([0x61,0x75,0x74,0x6f]);}function _0x3dfe29(){_0x2ed9ab[_0x102d21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x102d21([0x76,0x69,0x65,0x77])][_0x102d21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x102d21([0x61,0x75,0x74,0x6f]);}}function _0x91ccaf(_0x31a777){const _0x1dbd20=[new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe5a2d8=>setTimeout(_0xe5a2d8,0x5938a690^_0x151682)),_0x48bdd9[_0x102d21([0x74,0x68,0x65,0x6e])](()=>new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc72fd8=>{const _0x54eab0=0x5931985b^_0x151682,_0x63ccbb=_0x20a35e[_0x102d21([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4e1e5c(){_0x63ccbb[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x54eab0&&_0xc72fd8();}_0x4e1e5c(),_0x63ccbb[_0x102d21([0x6f,0x6e])](_0x102d21([0x61,0x64,0x64]),_0x4e1e5c);})),new window[(_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155aa1=>{function _0x5ca71e(){for(const _0x42d325 in window)if(window[_0x102d21([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x102d21([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x42d325))&&window[_0x42d325]==_0x367620)return _0x155aa1();_0x2ed9ab[_0x102d21([0x73,0x74,0x61,0x74,0x65])]!=_0x102d21([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x102d21([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ca71e,0x59318bd4^_0x151682);}_0x26bf61(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5ca71e();})];return window[_0x102d21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x102d21([0x72,0x61,0x63,0x65])](_0x1dbd20)[_0x102d21([0x74,0x68,0x65,0x6e])](()=>_0x31a777);}async function _0x537955(){if(await _0x48bdd9,_0x26bf61(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5e66bf=_0x20a35e[_0x102d21([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x328b52=_0x20a35e[_0x102d21([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])](_0x5e66bf[_0x102d21([0x69,0x64])]),_0x156c85=_0x28db85(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x156c85[_0x102d21([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5e66bf['id'],_0x328b52?_0x328b52['id']:null,!0x0),_0x156c85[_0x102d21([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x102d21([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x156c85[_0x102d21([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x156c85[_0x102d21([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2b486c,void(_0x156c85[_0x102d21([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2b486c);}if(_0x26bf61(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x281755=_0x28db85(_0x102d21([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x281755[_0x102d21([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x102d21([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x281755[_0x102d21([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x281755[_0x102d21([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2b486c,_0x281755[_0x102d21([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2b486c;}_0x2ed9ab[_0x102d21([0x6d,0x6f,0x64,0x65,0x6c])][_0x102d21([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b486c,_0x2ed9ab[_0x102d21([0x6d,0x6f,0x64,0x65,0x6c])][_0x102d21([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b486c,_0x2ed9ab[_0x102d21([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x102d21([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x505a3d(){return _0x26bf61(_0x102d21([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x28db85(_0x102d21([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x102d21([0x73,0x74,0x61,0x74,0x65])]==_0x102d21([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5db2e5(){return _0x26bf61(_0x102d21([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 _0x19cba5(){return _0x26bf61(_0x102d21([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f74c2(_0x15d15a){const _0x42fdbe=_0x5a8452();_0x2ed9ab[_0x42fdbe]=_0x102d21([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])+_0x15d15a,_0x15d15a[_0x102d21([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x102d21([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5a8452()]=_0x367620),_0x15d15a!=_0x102d21([0x56,0x61,0x6c,0x69,0x64])&&_0x537955();}function _0x5a8452(){const _0x378377=window[_0x102d21([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x102d21([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x102d21([0x6e,0x6f,0x77])]())[_0x102d21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x102d21([0x2e]),'');let _0x8dffab=_0x102d21([0x6f]);for(let _0x145477=0x0;_0x145477<_0x378377[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x145477+=0x2){let _0x1bb7bd=window[_0x102d21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x378377[_0x102d21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145477,_0x145477+0x2));_0x1bb7bd>=_0x5d9c32[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bb7bd-=_0x5d9c32[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8dffab+=_0x5d9c32[_0x1bb7bd];}return _0x8dffab;}function _0x2fca70(){const _0x548d7b=_0x385a96[_0x102d21([0x73,0x70,0x6c,0x69,0x74])](_0x102d21([0x2e]));if(0x3!=_0x548d7b[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25b804(_0x548d7b[0x1]);function _0x25b804(_0x50789f){const _0x5d5262=_0x96a29f(_0x50789f);return _0x5d5262&&_0x3c39a1()?_0x5d5262:null;function _0x3c39a1(){const _0x27a501=_0x5d5262[_0x102d21([0x6a,0x74,0x69])],_0x59819=window[_0x102d21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27a501[_0x102d21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27a501[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ff090={..._0x5d5262,[_0x102d21([0x6a,0x74,0x69])]:_0x27a501[_0x102d21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27a501[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ff090[_0x102d21([0x76,0x63])],_0x1ed60a(_0x4ff090)==_0x59819;}}}async function _0x514f3f(){let _0x5e15ca=!0x0;try{const _0x55fb20=_0x385a96[_0x102d21([0x73,0x70,0x6c,0x69,0x74])](_0x102d21([0x2e])),[_0x9ea5ed,_0x2ef6b4,_0x12ede9]=_0x55fb20;return _0x230b0c(_0x9ea5ed),await _0x1c82f2(_0x9ea5ed,_0x2ef6b4,_0x12ede9),_0x5e15ca;}catch(_0x35a816){return!0x1;}function _0x230b0c(_0x3ff39c){const _0x53e7ab=_0x96a29f(_0x3ff39c);_0x53e7ab&&_0x53e7ab[_0x102d21([0x61,0x6c,0x67])]==_0x102d21([0x45,0x53,0x32,0x35,0x36])||(_0x5e15ca=!0x1);}async function _0x1c82f2(_0x41191d,_0x2ce48a,_0x327b5c){const _0x20d399=window[_0x102d21([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x102d21([0x66,0x72,0x6f,0x6d])](_0x3495f2(_0x327b5c),_0x4f136b=>_0x4f136b[_0x102d21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26d75a=new window[(_0x102d21([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x102d21([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41191d+_0x102d21([0x2e])+_0x2ce48a),_0x5bd209=window[_0x102d21([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x102d21([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5bd209)return;const _0x39715a=await _0x5bd209[_0x102d21([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x102d21([0x6a,0x77,0x6b]),_0x299d9f,{[_0x102d21([0x6e,0x61,0x6d,0x65])]:_0x102d21([0x45,0x43,0x44,0x53,0x41]),[_0x102d21([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x102d21([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x102d21([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5bd209[_0x102d21([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x102d21([0x6e,0x61,0x6d,0x65])]:_0x102d21([0x45,0x43,0x44,0x53,0x41]),[_0x102d21([0x68,0x61,0x73,0x68])]:{[_0x102d21([0x6e,0x61,0x6d,0x65])]:_0x102d21([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39715a,_0x20d399,_0x26d75a)||(_0x5e15ca=!0x1);}}function _0x96a29f(_0x3eff2e){return _0x3eff2e[_0x102d21([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x102d21([0x65,0x79]))?JSON[_0x102d21([0x70,0x61,0x72,0x73,0x65])](_0x3495f2(_0x3eff2e)):null;}function _0x3495f2(_0x1d49e0){return window[_0x102d21([0x61,0x74,0x6f,0x62])](_0x1d49e0[_0x102d21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x102d21([0x2b]))[_0x102d21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x102d21([0x2f])));}function _0x1ed60a(_0x3ae102){let _0xd98ca2=0x1505;function _0x5bd776(_0x5dfeb9){for(let _0x14e85d=0x0;_0x14e85d<_0x5dfeb9[_0x102d21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14e85d++){const _0x15324d=_0x5dfeb9[_0x102d21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14e85d);_0xd98ca2=(_0xd98ca2<<0x5)+_0xd98ca2+_0x15324d,_0xd98ca2&=_0xd98ca2;}}function _0x5a9499(_0x53f7c9){Array[_0x102d21([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53f7c9)?_0x53f7c9[_0x102d21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a9499):_0x53f7c9&&typeof _0x53f7c9==_0x102d21([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x102d21([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53f7c9)[_0x102d21([0x73,0x6f,0x72,0x74])]()[_0x102d21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x122534,_0x34fc3f])=>{_0x5bd776(_0x122534),_0x5a9499(_0x34fc3f);}):_0x5bd776(window[_0x102d21([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53f7c9));}return _0x5a9499(_0x3ae102),_0xd98ca2>>>0x0;}function _0x3d13c3(_0x516ff5){return _0x516ff5[_0x102d21([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x102d21([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x102d21([0x30]));}function _0x42a44c(_0x4d81ec){return _0x4d81ec[_0x102d21([0x73,0x70,0x6c,0x69,0x74])]('')[_0x102d21([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x102d21([0x6a,0x6f,0x69,0x6e])]('');}function _0x26bf61(_0xd3032b){return _0x2ed9ab[_0x102d21([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x102d21([0x68,0x61,0x73])](_0xd3032b);}function _0x28db85(_0x18e312){return _0x2ed9ab[_0x102d21([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x102d21([0x67,0x65,0x74])](_0x18e312);}function _0x2b486c(){}function _0x102d21(_0x310340){return _0x310340['map'](_0x4b2126=>String['fromCharCode'](_0x4b2126))['join']('');}_0x4f74c2(await _0x36a79f());}(this);}['createRevision'](_0xaeabd9){const _0x19c818=this['editor']['plugins']['get']('Users');return new h({'id':_0xaeabd9['id'],'name':_0xaeabd9['name'],'creator':_0xaeabd9['creatorId']?_0x19c818['getUser'](_0xaeabd9['creatorId']):null,'diffData':_0xaeabd9['diffData']||_0xaeabd9['data'],'authors':_0xaeabd9['authorsIds']['map'](_0x22534a=>_0x19c818['getUser'](_0x22534a)),'createdAt':new Date(_0xaeabd9['createdAt']),'attributes':_0xaeabd9['attributes'],'fromVersion':_0xaeabd9['fromVersion'],'toVersion':_0xaeabd9['toVersion']});}['addRevision'](_0x3508bc,_0x8ec123=0x0){this['_revisions']['add'](_0x3508bc,_0x8ec123);}['getRevision'](_0x52b898){return this['_revisions']['get'](_0x52b898);}['getRevisions'](_0x2c5a68={'toJSON':!0x1}){const _0x2a3ca7=Array['from'](this['_revisions']);return _0x2a3ca7['reverse'](),_0x2c5a68['toJSON']?_0x2a3ca7['map'](_0x99857f=>_0x99857f['toJSON']()):_0x2a3ca7;}['getIndex'](_0x4cb6ef){return this['_revisions']['getIndex'](_0x4cb6ef);}['getEarlierVisibleRevision'](_0x3e7db6){const [,_0x4faee4]=this['getRevisionsIterator'](_0x3e7db6,{'direction':'earlier'});return _0x4faee4;}['getLaterVisibleRevision'](_0x23cc6b){const [,_0x2a4952]=this['getRevisionsIterator'](_0x23cc6b,{'direction':'later'});return _0x2a4952;}['getRevisionsInDiff'](_0x53a40c){const _0x3c2dd4=[];for(const _0x398877 of this['getRevisionsIterator'](_0x53a40c['newRevisionId']))if(_0x3c2dd4['push'](_0x398877),_0x398877['id']===_0x53a40c['oldRevisionId'])break;return _0x3c2dd4;}*['getRevisionsIterator'](_0x56d4bb,{direction:_0x436a7d='earlier',filter:_0x284048=()=>!0x0}={}){const _0x27654d='earlier'===_0x436a7d?0x1:-0x1;let _0x42f9c0=this['_revisions']['get'](_0x56d4bb),_0x488395=this['getIndex'](_0x42f9c0);for(yield _0x42f9c0;_0x42f9c0;){if(_0x488395+=_0x27654d,_0x42f9c0=this['getRevision'](_0x488395),!_0x42f9c0)return;_0x284048(_0x42f9c0)&&(yield _0x42f9c0);}}}class V extends _0xe250eb{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x35b6ad,'c'],[_0x1e20fe,'a'],[_0x578896,'e'],[_0x1c929e,'r'],[_0x4b5be8,'u']]);['_typeCharToViewClass']=new Map([['c',_0x35b6ad],['a',_0x1e20fe],['e',_0x578896],['r',_0x1c929e],['u',_0x4b5be8]]);async['loadRevisionData'](_0x7446b8,_0x5a9750){if(_0x7446b8['diffData']||!_0x5a9750)return;const _0x3f7a42=this['editor']['config']['get']('collaboration.channelId'),_0x297451=await _0x5a9750['getRevision']({'channelId':_0x3f7a42,'revisionId':_0x7446b8['id']});_0x7446b8['diffData']=_0x297451['diffData'];}['getRevisionDocumentData'](_0x2e2ddb){const _0x40c88c={};for(const _0x4e8c9b in _0x2e2ddb['diffData']){if(_0x2e2ddb['diffData'][_0x4e8c9b]['attachChange']&&!_0x2e2ddb['diffData'][_0x4e8c9b]['attachChange']['isAttached'])continue;const _0x45f2f2=this['_removeRevisionMarkers'](JSON['parse'](_0x2e2ddb['diffData'][_0x4e8c9b]['insertions'])),_0x3877ec=this['editor']['editing']['view']['document'],_0x4bb4d8=new _0x51001e(_0x3877ec,_0x45f2f2['map'](_0x32849e=>this['_getViewFromDiffObj'](_0x32849e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x40c88c[_0x4e8c9b]=this['editor']['data']['processor']['toData'](_0x4bb4d8),this['editor']['data']['processor']['useFillerType']('default');}return _0x40c88c;}['getRevisionRootsAttributes'](_0x560451){const _0x3ed60e={};for(const _0x5a5226 in _0x560451['diffData'])_0x560451['diffData'][_0x5a5226]['attachChange']&&!_0x560451['diffData'][_0x5a5226]['attachChange']['isAttached']||(_0x3ed60e[_0x5a5226]=_0x560451['diffData'][_0x5a5226]['attributesAfter']||{});return _0x3ed60e;}['_getTypeCharForViewElement'](_0x19cf25){return this['_viewClassToTypeChar']['get'](_0x19cf25['constructor']);}['_getViewFromDiffObj'](_0x1833db,_0x4503c9){const _0x22a79f=this['editor']['editing']['view']['document'];if('string'==typeof _0x1833db)return new _0x43fb8a(_0x22a79f,_0x1833db);{let _0x54ad2a,_0xc15d0e;_0xc15d0e='u'==_0x1833db['type']||'r'==_0x1833db['type']?[]:_0x1833db['children']['map'](_0x382f38=>this['_getViewFromDiffObj'](_0x382f38,_0x4503c9));const _0x342f31=this['_typeCharToViewClass']['get'](_0x1833db['type'])||_0x331a47,_0x11102e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x54ad2a=new _0x342f31(_0x22a79f,_0x1833db['name'],_0x1833db['attributes'],_0xc15d0e),'u'==_0x1833db['type']&&_0x1833db['children'][0x0]){const _0x5dd0a7=_0x1833db['children'][0x0];if(_0x54ad2a['render']=function(_0x4120be){const _0x292c49=_0x4120be['createElement']('div');return _0x292c49['innerHTML']=_0x5dd0a7,_0x292c49['childNodes'][0x0];},_0x4503c9){const _0x42b897=new _0x51001e(_0x22a79f);_0x42b897['_appendChild'](_0x54ad2a);const _0x2b6309=Array['from'](_0x11102e['viewChildrenToDom'](_0x42b897,{'bind':!0x1})),_0x43bc25=_0x11102e['domDocument']['createElement']('div');_0x43bc25['append'](..._0x2b6309),_0x54ad2a=Array['from'](_0x11102e['domChildrenToView'](_0x43bc25))[0x0];}}else{if('r'==_0x1833db['type']&&_0x1833db['children'][0x0]){const _0x36deff=_0x1833db['children'][0x0];if(_0x54ad2a['render']=function(_0x2bcf2c){_0x2bcf2c['innerHTML']=_0x36deff;},_0x4503c9){const _0x1d39f9=new _0x51001e(_0x22a79f);_0x1d39f9['_appendChild'](_0x54ad2a);const _0x210626=Array['from'](_0x11102e['viewChildrenToDom'](_0x1d39f9,{'bind':!0x1})),_0x46cf25=_0x11102e['domDocument']['createElement']('div');_0x46cf25['append'](..._0x210626);const _0x19e386=Array['from'](_0x11102e['domChildrenToView'](_0x46cf25));_0x19e386['length']>0x1?_0x54ad2a['_appendChild'](_0x19e386):_0x54ad2a=_0x19e386[0x0];}}}if(_0x1833db['customProperties']){for(const [_0x2e9ffe,_0x5ecfad]of _0x1833db['customProperties'])_0x54ad2a['_setCustomProperty'](_0x2e9ffe,_0x5ecfad);}const _0x1d5a4e=void 0x0===_0x1833db['fillerOffset']?null:_0x1833db['fillerOffset'];return null!==_0x1d5a4e&&(_0x54ad2a['getFillerOffset']=()=>_0x1d5a4e),_0x54ad2a;}}['_makeModelFromViewString'](_0x46fdcc){const _0x58e8b8=JSON['parse'](_0x46fdcc),_0x530861=this['editor']['editing']['view']['document'],_0x39cb95=new _0x51001e(_0x530861,_0x58e8b8['map'](_0x4e7c3e=>this['_getViewFromDiffObj'](_0x4e7c3e,!0x0)));return this['editor']['data']['toModel'](_0x39cb95);}['_removeRevisionMarkers'](_0x1156ce){return(_0x1156ce=_0x1156ce['filter'](_0x3e5ddd=>!_0x3e5ddd['name']||'revision-start'!==_0x3e5ddd['name']&&'revision-end'!==_0x3e5ddd['name']))['forEach'](_0x4ca8f1=>{'string'!=typeof _0x4ca8f1&&(_0x4ca8f1['children']=this['_removeRevisionMarkers'](_0x4ca8f1['children']),_0x4ca8f1['attributes']=_0x4ca8f1['attributes']['filter'](_0x139279=>!_0x139279[0x0]['startsWith']('data-revision-')));}),_0x1156ce;}}function g(_0x33f6c1,_0x1b1c16,_0x453f46){const t=_0x33f6c1['t'];switch(_0x1b1c16){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'},_0x453f46);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x453f46);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 u extends _0xe250eb{['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[_0x4bf42f,I,V,_0x47b6e5];}constructor(_0x56d782){super(_0x56d782),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x591558=_0x12cc6f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x591558},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 _0xc3dfe=this['repository']['getRevision'](0x0),_0x4f535c=_0xc3dfe&&null===_0xc3dfe['creator']?_0xc3dfe:null;if(this['_continueCurrentRevision']=!!_0x4f535c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x236673=this['_source']['getCurrentRevisionId'](),_0x5ab0fd=this['repository']['getRevision'](_0x236673);if(_0x5ab0fd)this['_startingVersion']=_0x5ab0fd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x182281=this['_source']['history']['_operations']['find'](_0x5e2873=>!_0x5e2873['_isInit']),_0x1a1d91=_0x182281?_0x182281['baseVersion']:this['_source']['history']['version'];_0xc3dfe?(_0xc3dfe['toVersion']<_0x1a1d91&&_0xc3dfe['_update']({'toVersion':_0x1a1d91}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4f535c['id'],this['_startingVersion']=_0x4f535c['fromVersion']):(this['_startingVersion']=_0xc3dfe['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1a1d91,this['_continueCurrentRevision']=!0x1);}}else _0x4f535c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4f535c['toVersion'],this['editor']['model']['document']['history']['version']),_0x4f535c['fromVersion']===_0x4f535c['toVersion']?(0x0!==_0x4f535c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4f535c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4f535c['id'],this['_startingVersion']=_0x4f535c['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',_0x9cb6af=>!_0x9cb6af),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9079c8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39e4ed;for(const _0x15abf7 in _0x9079c8){const _0xe722b3=_0x15abf7,_0x1f6e28=_0x9079c8[_0xe722b3];if('revisionHistoryLicenseKeyValid'==_0x1f6e28||'revisionHistoryLicenseKeyInvalid'==_0x1f6e28||'revisionHistoryLicenseKeyExpired'==_0x1f6e28||'revisionHistoryLicenseKeyDomainLimit'==_0x1f6e28||'revisionHistoryLicenseKeyNotAllowed'==_0x1f6e28||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1f6e28||'revisionHistoryLicenseKeyTrialLimit'==_0x1f6e28||'revisionHistoryLicenseKeyUsageLimit'==_0x1f6e28){delete _0x9079c8[_0xe722b3],_0x39e4ed=_0x1f6e28,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x39e4ed&&_0x9079c8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x39e4ed&&_0x9079c8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x39e4ed&&_0x9079c8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x39e4ed&&_0x9079c8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x39e4ed&&_0x9079c8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x39e4ed&&_0x9079c8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x39e4ed&&_0x9079c8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x323520=this['repository']['getRevision'](0x0),_0x39a371=await this['getRevisionDocumentData'](_0x323520),_0x25bf49=await this['getRevisionRootsAttributes'](_0x323520);this['_replaceEditorDataWithRevisionData'](_0x39a371,_0x25bf49);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x368fe7){this['_source']=_0x368fe7;}async['update'](){const _0x424e6c=await this['_source']['getLatestVersion']();if(_0x424e6c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x576206=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x424e6c});_0x576206['authors']=_0x576206['authorsIds']['map'](_0x43301b=>this['editor']['plugins']['get']('Users')['getUser'](_0x43301b)),this['currentRevision']['_update'](_0x576206);}}async['saveRevision'](_0x218614={},_0xdcb4dd=null){const _0x3ba897=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xdcb4dd>this['currentRevision']['toVersion']&&(_0xdcb4dd=null),null===_0xdcb4dd&&(_0xdcb4dd=await this['_source']['getLatestVersion']());const _0x379efc=this['_getFromVersion'](_0xdcb4dd),_0x96c4c3=this['buildRevisionData']({'from':_0x379efc,'to':_0xdcb4dd});if(this['currentRevision']['toVersion']<_0xdcb4dd){const _0x4e11a5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xdcb4dd,'to':_0xdcb4dd});_0x4e11a5['authors']=[],_0x4e11a5['authorsIds']=[],_0x4e11a5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4e11a5,!0x0),delete _0x4e11a5['authors'],_0x3ba897['push'](_0x4e11a5);}_0x218614['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x218614['name']=_0x218614['name']||null,_0x218614['id']=_0x218614['id']||_0x12cc6f(),_0x218614={..._0x218614,..._0x96c4c3};const _0x548b8c=this['addRevisionData'](_0x218614);_0x3ba897['push'](_0x218614);const _0x13842c=this['repository']['getIndex'](_0x548b8c);if(0x0!==_0x13842c){const _0x443f0d=this['repository']['getRevision'](_0x13842c-0x1);if(_0x443f0d['fromVersion']!==_0xdcb4dd){const _0x3702c2=this['_revisionDataBuilder']['getData'](_0xdcb4dd,_0x443f0d['toVersion']),_0x184c43={'id':_0x443f0d['id'],'diffData':_0x3702c2['diffData'],'authorsIds':_0x3702c2['authorsIds'],'authors':_0x3702c2['authorsIds']['map'](_0x75df4c=>this['editor']['plugins']['get']('Users')['getUser'](_0x75df4c)),'fromVersion':_0xdcb4dd};_0x443f0d===this['currentRevision']&&(_0x184c43['createdAt']=new Date(_0x218614['createdAt']['getTime']()+0xa)),_0x443f0d['_update'](_0x184c43,!0x0),delete _0x184c43['authors'],_0x3ba897['push'](_0x184c43);}}if(this['adapter']){for(const _0x3a26cc of _0x3ba897)this['_bufferUpdate'](_0x3a26cc['id'],_0x3a26cc,!0x0);this['sendBufferedUpdates']();}return _0x548b8c;}['addRevisionData'](_0x2b28b7){const _0x2cc9c3=this['repository']['createRevision'](_0x2b28b7);return this['adapter']&&_0x2cc9c3['on']('_update',(_0x3dff60,_0x8e3a14,_0x24b66b)=>{_0x24b66b||(this['_bufferUpdate'](_0x8e3a14['id'],_0x8e3a14,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2cc9c3,this['_findInsertionIndex'](_0x2cc9c3)),_0x2cc9c3;}async['getRevisionDocumentData'](_0x2953cf){return await this['_utils']['loadRevisionData'](_0x2953cf,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2953cf);}async['getRevisionRootsAttributes'](_0x3a3ee6){return await this['_utils']['loadRevisionData'](_0x3a3ee6,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3a3ee6);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4b0464=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x54f537=0x0;_0x54f537<_0x4b0464['length'];_0x54f537++){const _0x5bad33=_0x4b0464[_0x54f537];let _0x53f968=!0x1;for(const _0x14ab5f of Object['keys'](_0x5bad33))void 0x0===_0x5bad33[_0x14ab5f]?delete _0x5bad33[_0x14ab5f]:'id'!==_0x14ab5f&&(_0x53f968=!0x0);_0x53f968||(_0x4b0464[_0x54f537]=null);}if(_0x4b0464=_0x4b0464['filter'](_0x4a0f5b=>null!==_0x4a0f5b),!_0x4b0464['length'])return;for(let _0x4c0737=0x0;_0x4c0737<_0x4b0464['length'];_0x4c0737++){const _0x40e6c1=_0x4b0464[_0x4c0737];void 0x0!==_0x40e6c1['fromVersion']&&void 0x0===_0x40e6c1['toVersion']&&(_0x40e6c1['toVersion']=this['repository']['getRevision'](_0x40e6c1['id'])['toVersion']),void 0x0!==_0x40e6c1['toVersion']&&void 0x0===_0x40e6c1['fromVersion']&&(_0x40e6c1['fromVersion']=this['repository']['getRevision'](_0x40e6c1['id'])['fromVersion']);}const _0x33c1af=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4b0464,_0x33c1af)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1c3021=>{if(_0x1c3021){for(const _0x1a9085 of _0x1c3021)this['setRevisionData']({'id':_0x1a9085['id'],'createdAt':_0x1a9085['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1fd399=null,from:_0x5d9c7c=null,to:_0x239cdf=null}){_0x5d9c7c=null!==_0x5d9c7c?_0x5d9c7c:_0x1fd399['fromVersion'],_0x239cdf=null!==_0x239cdf?_0x239cdf:_0x1fd399['toVersion'];const _0x5d75a5=this['_revisionDataBuilder']['getData'](_0x5d9c7c,_0x239cdf),_0x25e07b={'diffData':_0x5d75a5['diffData'],'authorsIds':_0x5d75a5['authorsIds'],'fromVersion':_0x5d9c7c,'toVersion':_0x239cdf};if(!_0x1fd399||_0x239cdf!==_0x1fd399['toVersion']){const _0xb8e077=_0x239cdf-0x1,_0x1f8423=this['_source']['history']['getOperation'](_0xb8e077);_0x25e07b['createdAt']=_0x1f8423&&_0x1f8423['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5d9c7c===this['_loadedStateData']['fromVersion']){for(const _0x48d639 of this['_loadedStateData']['authors'])_0x25e07b['authorsIds']['includes'](_0x48d639['id'])||_0x25e07b['authorsIds']['push'](_0x48d639['id']);}return _0x25e07b;}['_bufferUpdate'](_0x2701ad,_0x5290a4,_0x22863a){if(this['_bufferedUpdates']['has'](_0x2701ad)){const _0x2fe593=this['_bufferedUpdates']['get'](_0x2701ad);_0x5290a4=_0x22863a?{..._0x2fe593,..._0x5290a4}:{..._0x5290a4,..._0x2fe593};}this['_bufferedUpdates']['set'](_0x2701ad,_0x5290a4);}['setRevisionData'](_0x4d3872){const _0xad78cd=this['repository']['getRevision'](_0x4d3872['id']);if(_0x4d3872['createdAt']&&(_0x4d3872['createdAt']=new Date(_0x4d3872['createdAt'])),_0x4d3872['authorsIds']){const _0x330b3f=this['editor']['plugins']['get']('Users');_0x4d3872['authors']=_0x4d3872['authorsIds']['map'](_0x568f33=>_0x330b3f['getUser'](_0x568f33));}_0xad78cd['_update'](_0x4d3872,!0x0);}['_createInitialRevision'](_0x2e6aac){const _0x1b3f45=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1b3f45)this['_initialRevisionId']=_0x1b3f45['id'];else{const _0x410760=!this['editor']['model']['document']['roots']['find'](_0x53458e=>this['editor']['model']['hasContent'](_0x53458e)),_0x4bb4ab=this['editor']['plugins']['get']('Users')['me']['id'],_0x1cb6eb=g(this['editor']['locale'],_0x410760?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2e6aac,'to':_0x2e6aac,'id':this['_initialRevisionId'],'name':_0x1cb6eb,'creatorId':_0x4bb4ab});}}['_createCurrentRevision'](_0x409dc7){const _0x386d40=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x386d40),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x409dc7,'to':_0x409dc7,'id':_0x386d40,'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'](_0x49ff19,_0x228b82){let _0x5c3971=this['editor']['config']['get']('initialData'),_0x5f0bd2=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5c3971){_0x5c3971={};for(const _0x3ea2a2 of this['editor']['model']['document']['getRootNames']())_0x5c3971[_0x3ea2a2]='';}if('string'==typeof _0x5c3971&&(_0x5c3971={'main':_0x5c3971}),void 0x0===_0x5f0bd2){_0x5f0bd2={};for(const _0x4155b3 of this['editor']['model']['document']['getRootNames']())_0x5f0bd2[_0x4155b3]={};}let _0x25d388=!0x1;const _0xd0da3=Object['keys'](_0x5c3971),_0x45b61b=Object['keys'](_0x49ff19);for(const _0xb4cd35 of _0xd0da3){if(_0x5c3971[_0xb4cd35]!==_0x49ff19[_0xb4cd35]&&''!==_0x5c3971[_0xb4cd35]['trim']()){_0x25d388=!0x0;break;}if(!_0xf9ecd0(_0x5f0bd2[_0xb4cd35],_0x228b82[_0xb4cd35])&&Object['keys'](_0x5f0bd2[_0xb4cd35])['length']>0x0){_0x25d388=!0x0;break;}}_0x25d388||(_0x25d388=_0x45b61b['some'](_0x484765=>!this['editor']['model']['document']['getRoot'](_0x484765))),_0x25d388&&_0x501928('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5c3971,'editorRootsAttributes':_0x5f0bd2,'revisionData':_0x49ff19,'revisionRootsAttributes':_0x228b82}),this['editor']['config']['set']('initialData',_0x49ff19),this['editor']['config']['set']('rootsAttributes',_0x228b82);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x51370c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x51370c['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xd8b1db){const _0x32e7e9=this['repository']['getRevisions']();_0x32e7e9['reverse']();let _0x283166=0x0;for(;_0x283166<_0x32e7e9['length'];){const _0xf83e0b=_0x32e7e9[_0x283166];if(_0xf83e0b===this['currentRevision']){_0x283166++;continue;}if(_0xf83e0b['id']===this['_initialRevisionId'])break;const _0x148059=_0xd8b1db['toVersion']-_0xf83e0b['toVersion']||_0xd8b1db['fromVersion']-_0xf83e0b['fromVersion'];if(_0x148059>0x0)break;if(_0x148059<0x0)_0x283166++;else{if(!_0xd8b1db['creator']&&_0xf83e0b['creator'])break;if(_0xf83e0b['creator']||!_0xd8b1db['creator']){if(_0xd8b1db['createdAt']>_0xf83e0b['createdAt'])break;_0x283166++;}else _0x283166++;}}return _0x283166;}['_getFromVersion'](_0x473945){const _0x57abed=this['repository']['getRevisions']();_0x57abed['reverse'](),_0x57abed['shift']();const _0x8cb62b=_0x57abed['find'](_0x36767e=>_0x36767e['toVersion']<=_0x473945)['toVersion'];return _0x8cb62b<this['_startingVersion']?this['_startingVersion']:_0x8cb62b;}['_makeRevision']({name:_0x193b94,from:_0x362868,to:_0x532cf7,creatorId:_0x5cf50d,id:_0x518a0b}){const _0x31ceb0=this['buildRevisionData']({'from':_0x362868,'to':_0x532cf7});_0x31ceb0['name']=_0x193b94,_0x31ceb0['creatorId']=_0x5cf50d,_0x31ceb0['id']=_0x518a0b;const _0x49fb10=this['addRevisionData'](_0x31ceb0);return this['adapter']&&this['_bufferUpdate'](_0x31ceb0['id'],_0x31ceb0,!0x0),_0x49fb10;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5aee8f){this['editor']=_0x5aee8f,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'](_0x314109){this['source']=_0x314109;const _0x43b022=new Map(),_0x28bf27=new Map(),_0x29f9bd=this['editor']['model']['document']['roots']['map'](_0x2ca4cd=>_0x2ca4cd['rootName']);for(const _0x5e83e8 of _0x29f9bd){const _0x12dde7=this['editor']['model']['document']['getRoot'](_0x5e83e8),_0x5d5ddb=N(_0x12dde7);_0x43b022['set'](_0x5e83e8,_0x5d5ddb),_0x28bf27['set'](_0x5e83e8,Object['fromEntries'](_0x12dde7['getAttributes']()));}const _0xb9010a=Array['from'](this['editor']['model']['markers'])['map'](_0x4b4bce=>[_0x4b4bce['name'],_0x4b4bce['getRange']()]),_0x3e6a73=this['source']['version'];this['_saveMetaData'](_0x3e6a73,_0x43b022,_0xb9010a,_0x28bf27),this['_startingRevisionId']=this['_revisionId'];const _0x26f7f7=new Map(),_0x3ede9f=new Map();for(const _0x1b365a of _0x29f9bd){const _0x5b31fe=P(_0x1b365a);_0x26f7f7['set'](_0x1b365a,_0x5b31fe),_0x3ede9f['set'](_0x1b365a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x26f7f7,[],_0x3ede9f);}['getData'](_0x28f81b,_0x4d91df){if(this['_lastFrom']===_0x28f81b&&this['_lastTo']<=_0x4d91df)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4d91df,!0x0);else{if(!this['_savedMetaData']['has'](_0x28f81b)){const _0x5c3894=this['_getPreviousFrom'](_0x28f81b);this['_calculateMetaData'](_0x5c3894,_0x28f81b,!0x1);}this['_calculateMetaData'](_0x28f81b,_0x4d91df,!0x0);}return this['_lastFrom']=_0x28f81b,this['_lastTo']=_0x4d91df,this['_getState']();}['loadState'](_0x439bbb){const _0x2d9ddb=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x439bbb['fromVersion'],this['_lastTo']=_0x439bbb['toVersion'];for(const _0x54cb8b in _0x439bbb['diffData']){const _0x34e855=_0x439bbb['diffData'][_0x54cb8b]['attachChange'],_0x28f013=_0x1798f6(_0x439bbb['diffData'][_0x54cb8b]['attributesBefore'])||{},_0x18c8d9=_0x2d9ddb['_makeModelFromViewString'](_0x439bbb['diffData'][_0x54cb8b]['deletions']);_0x18c8d9['rootName']=_0x54cb8b,_0x18c8d9['_isAttached']=!_0x34e855||!_0x34e855['isAttached'],_0x18c8d9['isAttached']=()=>_0x18c8d9['_isAttached'],this['_baseRoots']['set'](_0x54cb8b,_0x18c8d9),this['_baseRootsAttributes']['set'](_0x54cb8b,_0x28f013),_0x34e855&&this['_touchedRoots']['set'](_0x54cb8b,_0x34e855);const _0x1f08fb=this['_makeIdsRoot'](_0x18c8d9);this['_baseIdsRoots']['set'](_0x54cb8b,_0x1f08fb);for(const [_0x246eee,_0x57c243]of _0x18c8d9['markers']){if(!_0x246eee['startsWith']('revision:'))continue;const _0x283af5=_0x246eee['split'](':')[0x2];for(const _0x5a80ff of _0x57c243['getWalker']({'singleCharacters':!0x0})){const _0x596048=this['_getVidAttributeName'](_0x5a80ff),_0x4cb159='elementEnd'==_0x5a80ff['type']?_0x5a80ff['previousPosition']['path']['slice'](0x0,-0x1):_0x5a80ff['previousPosition']['path'],_0x1da3d7=_0x1f08fb['getNodeByPath'](_0x4cb159)['getAttribute'](_0x596048);this['_touched']['set'](_0x1da3d7,{'userId':_0x283af5});}}}this['_startingRevisionId']=this['_revisionId'];const _0xd52329=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x33488c=>!this['_touched']['has'](_0x33488c));let _0x555a27=0x0;const _0x4b3d3c=new Map();for(const _0x1ef5f7 in _0x439bbb['diffData']){const _0x373880=_0x439bbb['diffData'][_0x1ef5f7]['attachChange'],_0x4bfbfd=_0x1798f6(_0x439bbb['diffData'][_0x1ef5f7]['attributesAfter'])||{},_0x2cc77c=_0x2d9ddb['_makeModelFromViewString'](_0x439bbb['diffData'][_0x1ef5f7]['insertions']);_0x2cc77c['rootName']=_0x1ef5f7,_0x2cc77c['_isAttached']=!_0x373880||_0x373880['isAttached'],_0x2cc77c['isAttached']=()=>_0x2cc77c['_isAttached'],this['_diffRoots']['set'](_0x1ef5f7,_0x2cc77c),this['_diffRootsAttributes']['set'](_0x1ef5f7,_0x4bfbfd);const _0x2dd1d0=this['_makeIdsRoot'](_0x2cc77c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1ef5f7,_0x2dd1d0),_0x4b3d3c['set'](_0x1ef5f7,_0x2cc77c['isAttached']()?_0x4bfbfd:{});for(const [_0x2286e8,_0x34e583]of _0x2cc77c['markers']){if(!_0x2286e8['startsWith']('revision:'))continue;const _0x1f2b3e=_0x2286e8['split'](':')[0x2];for(const _0x4ec602 of _0x34e583['getWalker']({'singleCharacters':!0x0})){const _0x37d31b=this['_getVidAttributeName'](_0x4ec602),_0x54ec8d=this['_revisionId']++,_0x33a366='elementEnd'==_0x4ec602['type']?_0x4ec602['previousPosition']['path']['slice'](0x0,-0x1):_0x4ec602['previousPosition']['path'];_0x2dd1d0['getNodeByPath'](_0x33a366)['_setAttribute'](_0x37d31b,_0x54ec8d),this['_touched']['set'](_0x54ec8d,{'userId':_0x1f2b3e});}}for(const _0xf17e4b of this['editor']['model']['createRangeIn'](_0x2cc77c)['getWalker']({'singleCharacters':!0x0})){const _0x28108a=this['_getVidAttributeName'](_0xf17e4b),_0x35e44f='elementEnd'==_0xf17e4b['type']?_0xf17e4b['previousPosition']['path']['slice'](0x0,-0x1):_0xf17e4b['previousPosition']['path'],_0x3c1bf9=_0x2dd1d0['getNodeByPath'](_0x35e44f);_0x3c1bf9['getAttribute'](_0x28108a)>0x0||_0x3c1bf9['_setAttribute'](_0x28108a,_0xd52329[_0x555a27++]);}for(const [_0x4b75e8,_0x337bf3]of _0x2cc77c['markers'])_0x4b75e8['startsWith']('revision:')||this['_markers']['set'](_0x4b75e8,_0x337bf3);}const _0x5f3ff0=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5f3ff0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5f3ff0,0x1));const _0x548c00=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x548c00),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x548c00,0x1));const _0x18bede=Array['from'](this['_diffRoots'])['map'](([_0x3258ee,_0x279320])=>[_0x3258ee,N(_0x279320)]);this['_saveMetaData'](this['_lastTo'],_0x18bede,this['_markers'],_0x4b3d3c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x6a41f1,_0x28a47a,_0x261b04,_0x261e38){const _0x3f69bd=new Map(_0x28a47a),_0x191b70=new Map(_0x1798f6(_0x261e38)),_0x6b66f7=new Map();for(const [_0x2d653e,_0x4d8c45]of _0x261b04)_0x6b66f7['set'](_0x2d653e,{'start':_0x4d8c45['start']['clone'](),'end':_0x4d8c45['end']['clone'](),'rootName':_0x4d8c45['root']['rootName']});this['_savedMetaData']['set'](_0x6a41f1,{'roots':_0x3f69bd,'markers':_0x6b66f7,'rootsAttributes':_0x191b70});}['_removeMetaData'](_0x6ab88){this['_savedMetaData']['delete'](_0x6ab88);}['_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'](_0x1e3095,_0x1f79aa=null){let _0x10bb41=null;_0x1e3095['is']('documentFragment')||(_0x10bb41=new ut(_0x1e3095['name'],{'vid_start':null===_0x1f79aa?this['_revisionId']++:_0x1f79aa++}));const _0x510713=[];for(const _0x14d3b3 of _0x1e3095['getChildren']())if(_0x14d3b3['is']('element')){_0x510713['push'](this['_makeIdsRoot'](_0x14d3b3,_0x1f79aa));const _0x38b9b4=_0x510713[_0x510713['length']-0x1];null!==_0x1f79aa&&(_0x1f79aa=_0x38b9b4['is']('element','$text')?_0x38b9b4['getAttribute']('vid')+0x1:_0x38b9b4['getAttribute']('vid_end')+0x1);}else{for(let _0x514c31=0x0;_0x514c31<_0x14d3b3['offsetSize'];_0x514c31++)_0x510713['push'](new ut('$text',{'vid':null===_0x1f79aa?this['_revisionId']++:_0x1f79aa++}));}if(_0x1e3095['is']('documentFragment')){const _0x2e9e44=P(_0x1e3095['rootName']);return _0x2e9e44['_insertChild'](0x0,_0x510713),_0x2e9e44;}return _0x10bb41['_setAttribute']('vid_end',null===_0x1f79aa?this['_revisionId']++:_0x1f79aa++),_0x10bb41['_insertChild'](0x0,_0x510713),_0x10bb41;}['_calculateMetaData'](_0x542020,_0x3608da,_0xadc53f){this['_reset']();const {roots:_0x16f418,markers:_0x54cb94,rootsAttributes:_0x4dcb43}=this['_savedMetaData']['get'](_0x542020);this['_baseRoots']=new Map(_0x16f418),this['_baseRootsAttributes']=new Map(_0x1798f6(_0x4dcb43));for(const [_0x20828c,_0x54ae53]of this['_baseRoots'])if('$graveyard'!==_0x20828c&&(this['_diffRoots']['set'](_0x20828c,N(_0x54ae53)),this['_diffRootsAttributes']=new Map(_0x1798f6(_0x4dcb43)),_0xadc53f)){const _0x2063c0=this['_revisionId'];this['_idsRoots']['set'](_0x20828c,this['_makeIdsRoot'](_0x54ae53)),this['_baseIdsRoots']['set'](_0x20828c,this['_makeIdsRoot'](_0x54ae53,_0x2063c0));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xadc53f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5e4135,_0x414b19]of _0x54cb94){const _0x55c686=this['_baseRoots']['get'](_0x414b19['rootName']),_0x5274a2=this['_diffRoots']['get'](_0x414b19['rootName']),_0x1ad9cd=new lt(this['_fixPosition'](_0x414b19['start'],_0x55c686),this['_fixPosition'](_0x414b19['end'],_0x55c686)),_0x444d29=this['_fixRange'](_0x1ad9cd,_0x5274a2);_0x55c686['markers']['set'](_0x5e4135,_0x1ad9cd),this['_markers']['set'](_0x5e4135,_0x444d29);}this['_applyOperations'](_0x542020,_0x3608da,_0xadc53f);}['_applyOperations'](_0x2906ce,_0x1e5cbd,_0x17430b){for(const _0xd40f9a of this['source']['getOperations'](_0x2906ce,_0x1e5cbd))this['_handleOperation'](_0xd40f9a,_0x17430b);for(const _0x3fcde1 of this['_diffRoots']['values']())_0x3fcde1['markers']['clear']();for(const [_0x56dc90,_0x52521a]of this['_markers']){this['_diffRoots']['get'](_0x52521a['root']['rootName'])['markers']['set'](_0x56dc90,_0x52521a['clone']());}const _0x5708d9=new Map(),_0x21a6bd=new Map();for(const [_0x517f3f,_0x1a03b0]of this['_diffRoots'])_0x5708d9['set'](_0x517f3f,N(_0x1a03b0)),_0x21a6bd['set'](_0x517f3f,this['_diffRootsAttributes']['get'](_0x517f3f));this['_saveMetaData'](_0x1e5cbd,_0x5708d9,this['_markers'],_0x21a6bd);}['_getPreviousFrom'](_0x277522){const _0x4e5fb6=Array['from'](this['_savedMetaData']['keys']());_0x4e5fb6['sort']((_0x104697,_0x20aa6f)=>_0x104697-_0x20aa6f),_0x4e5fb6['reverse']();for(const _0x4e4be9 of _0x4e5fb6)if(_0x4e4be9<_0x277522)return _0x4e4be9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x54d3b8,_0x1ba313){const _0x20fbd9=Array['from'](_0x1ba313['markers'])['map'](([_0x1a628d,_0x55f7b5])=>[_0x1a628d,this['_fixRange'](_0x55f7b5,_0x54d3b8)]);_0x54d3b8['markers']=new Map(_0x20fbd9);}['_transformMarkers'](_0x3f4b8a){for(const _0x3839a9 of this['_markers']['values']()){const _0x33c0da=_0x3839a9['getTransformedByOperation'](_0x3f4b8a),_0x69104a=lt['_createFromRanges'](_0x33c0da);_0x3839a9['start']=_0x69104a['start'],_0x3839a9['end']=_0x69104a['end'];}}['_handleOperation'](_0x118d05,_0x1cd215){if('addRoot'!=_0x118d05['type']&&'detachRoot'!=_0x118d05['type']){if('insert'==_0x118d05['type']){const _0x54f180=_0x118d05['position']['root']['rootName'];this['_diffRoots']['has'](_0x54f180)||(this['_diffRoots']['set'](_0x54f180,P(_0x54f180,!0x0)),this['_diffRootsAttributes']['set'](_0x54f180,{}),_0x1cd215&&this['_idsRoots']['set'](_0x54f180,P(_0x54f180,!0x0)));}else{if('addRootAttribute'==_0x118d05['type']||'removeRootAttribute'==_0x118d05['type']||'changeRootAttribute'==_0x118d05['type'])return void this['_handleRootAttributeOperation'](_0x118d05);'marker'==_0x118d05['type']&&this['_handleMarkerOperation'](_0x118d05);}if('marker'!==_0x118d05['type']){const _0x999cc3=this['_cloneOperation'](_0x118d05,this['_diffRoots']);_0x999cc3['_execute'](),this['_transformMarkers'](_0x999cc3);}if(_0x1cd215)switch(_0x118d05['type']){case'insert':this['_handleInsertOperation'](_0x118d05);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x118d05);break;case'merge':this['_handleMergeOperation'](_0x118d05);break;case'split':this['_handleSplitOperation'](_0x118d05);}}else this['_handleRootOperation'](_0x118d05,_0x1cd215);}['_cloneOperation'](_0x2e5c9c,_0x4eebff){const _0x1e3860=_0x2e5c9c['clone']();return _0x1e3860['_authorId']=_0x2e5c9c['_authorId'],this['_fixOperation'](_0x1e3860,_0x4eebff),_0x1e3860;}['_getBaseVids'](_0x5b141e){return _0x5b141e['map'](_0x3c278b=>{const _0x40e5f4=this['_getVidAttributeName'](_0x3c278b);return Number(_0x3c278b['item']['getAttribute'](_0x40e5f4));});}['_generateTape'](_0x571e89,_0x39d006){if(_0x571e89['is']('element','$text'))_0x39d006['push']({'item':_0x571e89,'type':'text'});else{_0x571e89['is']('element')&&_0x39d006['push']({'item':_0x571e89,'type':'elementStart'});for(const _0xef33e8 of _0x571e89['getChildren']())this['_generateTape'](_0xef33e8,_0x39d006);_0x571e89['is']('element')&&_0x39d006['push']({'item':_0x571e89,'type':'elementEnd'});}return _0x39d006;}['_getState'](){const _0x43bf77=new Map(this['_touched']),_0x586fed=new Map(_0x43bf77),_0x105a48=new Map(),_0x5c98a3={'insertions':{},'deletions':{}},_0x604ff4={'insertions':{},'deletions':{}},_0x298b40=new Map(),_0x53d385=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x53d385['delete']('$graveyard');for(const _0x2f89f7 of _0x53d385){const _0x5c2191=this['_diffRoots']['get'](_0x2f89f7)||P(_0x2f89f7,!0x1),_0x47176c=this['_baseRoots']['get'](_0x2f89f7)||P(_0x2f89f7,!0x1);_0x5c2191['isAttached']()||_0x47176c['isAttached']()?(_0x5c98a3['insertions'][_0x2f89f7]=N(_0x5c2191),_0x5c98a3['deletions'][_0x2f89f7]=N(_0x47176c),this['_copyMarkers'](_0x5c98a3['deletions'][_0x2f89f7],_0x47176c),this['_copyMarkers'](_0x5c98a3['insertions'][_0x2f89f7],_0x5c2191),_0x604ff4['insertions'][_0x2f89f7]=this['_generateTape'](this['_idsRoots']['get'](_0x2f89f7),[]),_0x604ff4['deletions'][_0x2f89f7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2f89f7)||P(_0x2f89f7,!0x1),[])):_0x53d385['delete'](_0x2f89f7);}for(const _0x246ae8 of _0x53d385){const _0x330355=_0x604ff4['insertions'][_0x246ae8];for(const _0x39576b of _0x330355){const _0x4bd038=this['_getVidAttributeName'](_0x39576b),_0x53907e=_0x39576b['item']['getAttribute'](_0x4bd038);_0x586fed['delete'](_0x53907e),_0x53907e>=this['_startingRevisionId']&&_0x105a48['set'](_0x53907e,_0x43bf77['get'](_0x53907e));}}for(const _0x154a50 of _0x53d385){const _0x508da9=_0x604ff4['insertions'][_0x154a50],_0x360c88=this['_getBaseVids'](_0x604ff4['deletions'][_0x154a50]);let _0x5a342f=0x0;for(const _0x4ca00c of _0x508da9){const _0x11ad9c=this['_getVidAttributeName'](_0x4ca00c),_0x283fa5=_0x4ca00c['item']['getAttribute'](_0x11ad9c);if(!_0x105a48['has'](_0x283fa5)&&!_0x298b40['has'](_0x283fa5)){if(_0x586fed['has'](_0x283fa5))_0x5a342f++;else{if(_0x283fa5!=_0x360c88[_0x5a342f]){const _0x542f51=_0x43bf77['get'](_0x283fa5)||_0x43bf77['get'](_0x360c88[_0x5a342f]);for(;_0x283fa5!=_0x360c88[_0x5a342f];)_0x586fed['has'](_0x360c88[_0x5a342f])||(_0x298b40['set'](_0x360c88[_0x5a342f],_0x542f51),_0x43bf77['set'](_0x360c88[_0x5a342f],_0x542f51)),_0x5a342f++;}_0x5a342f++;}}}}for(const _0x19341c of _0x53d385){const _0x27825d=_0x604ff4['insertions'][_0x19341c];for(const _0x4d69e3 of _0x27825d){const _0xef5bbb=this['_getVidAttributeName'](_0x4d69e3),_0x121de5=_0x4d69e3['item']['getAttribute'](_0xef5bbb);if(_0x298b40['has'](_0x121de5)){const _0xde9433=_0x298b40['get'](_0x121de5);_0x586fed['has'](_0x121de5)||_0x586fed['set'](_0x121de5,{..._0xde9433}),_0x105a48['set'](_0x121de5,{..._0xde9433});}}}for(const _0x3515d5 of _0x586fed['keys']())_0x3515d5>=this['_startingRevisionId']&&_0x586fed['delete'](_0x3515d5);const _0x58ee5e=new Map();for(const _0x2828c2 of _0x53d385){let _0x5a028e=_0x604ff4['insertions'][_0x2828c2];for(const _0x184756 of _0x5a028e)if(_0x184756['item']['is']('element','tableCell')){const _0x5d35a4=this['_getVidAttributeName'](_0x184756),_0x544b64=_0x184756['item']['getAttribute'](_0x5d35a4);if(_0x105a48['has'](_0x544b64)){const _0x53d750=_0x184756['item']['parent']['parent']['getAttribute']('vid_start'),_0xb899f8=_0x58ee5e['get'](_0x53d750)||new Set();_0xb899f8['add'](_0x105a48['get'](_0x544b64)['userId']),_0x58ee5e['set'](_0x53d750,_0xb899f8);}}_0x5a028e=_0x604ff4['deletions'][_0x2828c2];for(const _0x21ec45 of _0x5a028e)if(_0x21ec45['item']['is']('element','tableCell')){const _0x524fad=this['_getVidAttributeName'](_0x21ec45),_0x11bc82=_0x21ec45['item']['getAttribute'](_0x524fad);if(_0x586fed['has'](_0x11bc82)){const _0x5e0a6f=_0x21ec45['item']['parent']['parent']['getAttribute']('vid_start'),_0xa15d82=_0x58ee5e['get'](_0x5e0a6f)||new Set();_0xa15d82['add'](_0x586fed['get'](_0x11bc82)['userId']),_0x58ee5e['set'](_0x5e0a6f,_0xa15d82);}}for(const _0x2791d5 of _0x58ee5e['keys']())(_0x105a48['has'](_0x2791d5)||_0x586fed['has'](_0x2791d5))&&_0x58ee5e['delete'](_0x2791d5);}for(const _0x1133c2 of _0x53d385){const _0x4d18ce=_0x604ff4['insertions'][_0x1133c2];let _0x5972e5=null,_0x4d0bac=null;for(const _0x4a4154 of _0x4d18ce){const _0x2bec77=this['_getVidAttributeName'](_0x4a4154),_0x4c6d65=_0x4a4154['item']['getAttribute'](_0x2bec77),_0x446d2c=_0x58ee5e['get'](_0x4c6d65);_0x446d2c&&'elementStart'==_0x4a4154['type']&&(_0x5972e5=Array['from'](_0x446d2c)[0x0],_0x4d0bac=_0x4a4154['item']['getAttribute']('vid_end')),_0x5972e5&&(_0x586fed['set'](_0x4c6d65,{'userId':_0x5972e5}),_0x105a48['set'](_0x4c6d65,{'userId':_0x5972e5})),_0x4c6d65==_0x4d0bac&&(_0x5972e5=null,_0x4d0bac=null);}}const _0x2d163e={},_0x268499=new Set();for(const _0x1b05ce of _0x53d385){const _0x28d633=_0x5c98a3['deletions'][_0x1b05ce],_0x1000c7=_0x5c98a3['insertions'][_0x1b05ce];for(const {userId:_0x52f770}of this['_touchedMarkers']['values']())null!==_0x52f770&&_0x268499['add'](_0x52f770);for(const {userId:_0x5d0b0b}of this['_touchedRoots']['values']())null!==_0x5d0b0b&&_0x268499['add'](_0x5d0b0b);this['_markChanges'](_0x1000c7,_0x604ff4['insertions'][_0x1b05ce],_0x105a48,'insertion',_0x268499),this['_markChanges'](_0x28d633,_0x604ff4['deletions'][_0x1b05ce],_0x586fed,'deletion',_0x268499),_0x2d163e[_0x1b05ce]={'insertions':this['_prepareViewToSave'](_0x1000c7),'deletions':this['_prepareViewToSave'](_0x28d633),'attachChange':this['_touchedRoots']['get'](_0x1b05ce)||null,'attributesBefore':_0x1798f6(this['_baseRootsAttributes']['get'](_0x1b05ce))||{},'attributesAfter':_0x1798f6(this['_diffRootsAttributes']['get'](_0x1b05ce))};}return{'diffData':_0x2d163e,'authorsIds':Array['from'](_0x268499)};}['_processRootBeforeSave'](_0x2d17e7){for(const [,_0x4e03a5]of _0x2d17e7['markers']){const _0x3a3ed4=_0x4e03a5['start']['getAncestors']()['filter'](_0x36739a=>'tableCell'==_0x36739a['name']);for(const _0x16bc10 of _0x3a3ed4)0x1==_0x16bc10['childCount']&&_0x16bc10['getChild'](0x0)['is']('element','paragraph')&&_0x16bc10['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x177570){this['_processRootBeforeSave'](_0x177570);const _0x1db06d=this['editor']['data']['toView'](_0x177570,{}),_0x5de382=Array['from'](_0x1db06d['getChildren']())['map'](_0x59d189=>this['_getViewJson'](_0x59d189));return JSON['stringify'](_0x5de382);}['_getViewJson'](_0x2bfc62){if(_0x2bfc62['is']('$text'))return _0x2bfc62['data'];{const _0x3c308a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4314d4=_0x2bfc62,_0x98b9f6=this['editor']['data']['htmlProcessor']['domConverter'],_0x3b7cb5={'type':_0x3c308a['_getTypeCharForViewElement'](_0x4314d4),'name':_0x4314d4['name'],'attributes':Array['from'](_0x4314d4['getAttributes']()),'children':Array['from'](_0x4314d4['getChildren']())['map'](_0x18b61c=>this['_getViewJson'](_0x18b61c))};if(_0x2bfc62['is']('uiElement')&&'$comment'!=_0x2bfc62['name']){const _0x570a25=_0x2bfc62['render'](_0x98b9f6['domDocument'],_0x98b9f6);_0x3b7cb5['children']['push'](_0x570a25['outerHTML']);}else{if(_0x2bfc62['is']('rawElement')){const _0x15718d=_0x98b9f6['domDocument']['createElement'](_0x4314d4['name']);_0x2bfc62['render'](_0x15718d,_0x98b9f6),_0x3b7cb5['children']['push'](_0x15718d['innerHTML']);}}const _0x333cac=Array['from'](_0x4314d4['getCustomProperties']());_0x333cac['length']>0x0&&(_0x3b7cb5['customProperties']=_0x333cac);const _0x540fdf=_0x4314d4['getFillerOffset']();return null!==_0x540fdf&&(_0x3b7cb5['fillerOffset']=_0x540fdf),_0x3b7cb5;}}['_markChanges'](_0xc615f0,_0x5b8afb,_0x31e471,_0x12f949,_0x208ef0){let _0x14e17c=null,_0x5aed28=null,_0x568fcf=0x0;const _0x37a690=this['editor']['model'];for(let _0x4d5ed2=0x0;_0x4d5ed2<_0x5b8afb['length'];_0x4d5ed2++){const _0x4970ae=this['_getVidAttributeName'](_0x5b8afb[_0x4d5ed2]),_0x1569c7=_0x5b8afb[_0x4d5ed2]['item']['getAttribute'](_0x4970ae),_0x3f42d9=_0x31e471['get'](_0x1569c7),_0x233d37=_0x4d5ed2==_0x5b8afb['length']-0x1;(!_0x14e17c&&_0x3f42d9&&(_0x14e17c=_0x3f42d9,_0x5aed28=_0x5b8afb[_0x4d5ed2]),_0x14e17c&&(!_0x3f42d9||_0x3f42d9['userId']!=_0x14e17c['userId']))&&(_0x34cef8(_0x3f42d9,F(_0x5aed28,_0xc615f0,_0x37a690),F(_0x5b8afb[_0x4d5ed2],_0xc615f0,_0x37a690)),_0x14e17c=_0x3f42d9||null,_0x5aed28=_0x3f42d9?_0x5b8afb[_0x4d5ed2]:null),_0x14e17c&&_0x233d37&&_0x34cef8(_0x3f42d9,F(_0x5aed28,_0xc615f0,_0x37a690),B(_0x5b8afb[_0x4d5ed2],_0xc615f0,_0x37a690));}function _0x34cef8(_0x3c610d,_0x51c462,_0x422e83){const _0x2e615b=_0x14e17c['userId'],_0x5a330c='revision:'+_0x12f949+':'+_0x2e615b+':'+_0x568fcf++,_0x55fa5d=_0x37a690['createRange'](_0x51c462,_0x422e83);_0xc615f0['markers']['set'](_0x5a330c,_0x55fa5d),null!==_0x2e615b&&_0x208ef0['add'](_0x2e615b);}}['_getVidAttributeName'](_0x42a099){switch(_0x42a099['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2ca2a2,_0x14d571){_0x2ca2a2['baseVersion']=null;for(const _0x292c90 in _0x2ca2a2){const _0x14e79e=_0x2ca2a2[_0x292c90];if(_0x14e79e instanceof ft){const _0x28bc4a=_0x14d571['get'](_0x14e79e['root']['rootName']);_0x2ca2a2[_0x292c90]=this['_fixPosition'](_0x14e79e,_0x28bc4a);}if(_0x14e79e instanceof lt){const _0x4182e0=_0x14d571['get'](_0x14e79e['root']['rootName']);_0x2ca2a2[_0x292c90]=this['_fixRange'](_0x14e79e,_0x4182e0);}'root'===_0x292c90&&(_0x2ca2a2['root']=_0x14d571['get'](_0x2ca2a2['root']['rootName']));}}['_fixRange'](_0x15e3b9,_0x4be5ea){return this['editor']['model']['createRange'](this['_fixPosition'](_0x15e3b9['start'],_0x4be5ea),this['_fixPosition'](_0x15e3b9['end'],_0x4be5ea));}['_fixPosition'](_0x118511,_0x29872c){return this['editor']['model']['createPositionFromPath'](_0x29872c,_0x118511['path'],_0x118511['stickiness']);}['_handleInsertOperation'](_0x363d5d){const _0x4897f4=this['_idsRoots']['get'](_0x363d5d['position']['root']['rootName']),_0x5a6696=this['_fixPosition'](_0x363d5d['position'],_0x4897f4),_0x2d395b=null===_0x363d5d['_authorId']?null:_0x363d5d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ee069=_0x5a6696['parent'],_0x32b536=this['_revisionId'],_0x59b38a=[];for(const _0x552329 of _0x363d5d['nodes'])if(_0x552329['is']('element'))_0x59b38a['push'](this['_makeIdsRoot'](_0x552329));else{for(let _0x11d5f5=0x0;_0x11d5f5<_0x552329['offsetSize'];_0x11d5f5++)_0x59b38a['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2fa403=this['_revisionId'];for(let _0x47c8d9=_0x32b536;_0x47c8d9<_0x2fa403;_0x47c8d9++)this['_touched']['set'](_0x47c8d9,{'userId':_0x2d395b});_0x3ee069['_insertChild'](_0x5a6696['offset'],_0x59b38a);}['_handleMoveOperation'](_0x2dbe9f){(_0x2dbe9f=this['_cloneOperation'](_0x2dbe9f,this['_idsRoots']))['_execute']();const _0x1bdb19=null===_0x2dbe9f['_authorId']?null:_0x2dbe9f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x206685=_0x2dbe9f['getMovedRangeStart'](),_0x107c60=_0x206685['parent'],_0x4e5654=_0x206685['offset'];!function _0x20c461(_0x1d9652,_0x57dd99,_0x41d39c,_0x56de40){for(let _0x28b314=_0x41d39c;_0x28b314<_0x56de40;_0x28b314++){const _0xcf49ec=_0x57dd99['getChild'](_0x28b314);_0xcf49ec['is']('element','$text')?_0x1d9652['set'](_0xcf49ec['getAttribute']('vid'),{'userId':_0x1bdb19}):(_0x1d9652['set'](_0xcf49ec['getAttribute']('vid_start'),{'userId':_0x1bdb19}),_0x20c461(_0x1d9652,_0xcf49ec,0x0,_0xcf49ec['childCount']),_0x1d9652['set'](_0xcf49ec['getAttribute']('vid_end'),{'userId':_0x1bdb19}));}}(this['_touched'],_0x107c60,_0x4e5654,_0x4e5654+_0x2dbe9f['howMany']);}['_handleMergeOperation'](_0x8ed1b9){const _0x348652=null===(_0x8ed1b9=this['_cloneOperation'](_0x8ed1b9,this['_idsRoots']))['_authorId']?null:_0x8ed1b9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15601b=_0x8ed1b9['targetPosition']['parent'],_0x51afce=_0x8ed1b9['sourcePosition']['parent'],_0x16308b=_0x15601b['getAttribute']('vid_end'),_0x2f971a=_0x51afce['getAttribute']('vid_start');_0x15601b['_setAttribute']('vid_end',_0x51afce['getAttribute']('vid_end')),_0x51afce['_setAttribute']('vid_end',_0x16308b),this['_touched']['set'](_0x2f971a,{'userId':_0x348652}),this['_touched']['set'](_0x16308b,{'userId':_0x348652}),_0x8ed1b9['_execute']();}['_handleSplitOperation'](_0x33c695){const _0x4147ea=null===(_0x33c695=this['_cloneOperation'](_0x33c695,this['_idsRoots']))['_authorId']?null:_0x33c695['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39fed6=_0x33c695['graveyardPosition'],_0x3a351b=_0x33c695['splitPosition']['parent'];_0x33c695['_execute']();const _0x536695=_0x3a351b['getAttribute']('vid_end'),_0x329d69=_0x33c695['insertionPosition']['nodeAfter'];if(_0x39fed6){const _0xa88e8f=_0x329d69['getAttribute']('vid_end'),_0x4b2c79=_0x3a351b['getAttribute']('vid_end');_0x3a351b['_setAttribute']('vid_end',_0xa88e8f),_0x329d69['_setAttribute']('vid_end',_0x4b2c79),this['_touched']['set'](_0x3a351b['getAttribute']('vid_end'),{'userId':_0x4147ea}),this['_touched']['set'](_0x329d69['getAttribute']('vid_start'),{'userId':_0x4147ea});}else{const _0x5abab3=this['_revisionId']++,_0x13e161=this['_revisionId']++;_0x3a351b['_setAttribute']('vid_end',_0x5abab3),_0x329d69['_setAttribute']('vid_start',_0x13e161),_0x329d69['_setAttribute']('vid_end',_0x536695),this['_touched']['set'](_0x5abab3,{'userId':_0x4147ea}),this['_touched']['set'](_0x13e161,{'userId':_0x4147ea});}}['_handleMarkerOperation'](_0x172501){if(!_0x172501['affectsData'])return;const _0x22c48c=(_0x172501=this['_cloneOperation'](_0x172501,this['_diffRoots']))['oldRange']?_0x172501['oldRange']['root']:null,_0x4adfad=_0x172501['newRange']?_0x172501['newRange']['root']:null;_0x22c48c&&this['_markers']['delete'](_0x172501['name']),_0x4adfad&&this['_markers']['set'](_0x172501['name'],_0x172501['newRange']['clone']());const _0x28f994=null===_0x172501['_authorId']?null:_0x172501['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d471f=_0x172501['name'];if(!this['_touchedMarkers']['has'](_0x4d471f))return void this['_touchedMarkers']['set'](_0x4d471f,{'range':_0x172501['oldRange'],'userId':_0x28f994});const _0x24af3c=this['_touchedMarkers']['get'](_0x4d471f),_0x4d13c1=_0x24af3c['range'],_0x36cf85=_0x172501['newRange'];null==_0x4d13c1&&null==_0x36cf85||_0x4d13c1&&_0x36cf85&&_0x4d13c1['isEqual'](_0x36cf85)?this['_touchedMarkers']['delete'](_0x172501['name']):_0x24af3c['userId']=_0x28f994;}['_handleRootOperation'](_0x18b7fe,_0xe515ba){this['_diffRoots']['has'](_0x18b7fe['rootName'])?this['_diffRoots']['get'](_0x18b7fe['rootName'])['_isAttached']=_0x18b7fe['isAdd']:(this['_diffRoots']['set'](_0x18b7fe['rootName'],P(_0x18b7fe['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x18b7fe['rootName'],{}),_0xe515ba&&this['_idsRoots']['set'](_0x18b7fe['rootName'],P(_0x18b7fe['rootName'],!0x0)));const _0x1e3825=null===_0x18b7fe['_authorId']?null:_0x18b7fe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40d397=this['_touchedRoots']['get'](_0x18b7fe['rootName']);_0x40d397&&_0x40d397['userId']===_0x1e3825?this['_touchedRoots']['delete'](_0x18b7fe['rootName']):this['_touchedRoots']['set'](_0x18b7fe['rootName'],{'userId':_0x1e3825,'isAttached':_0x18b7fe['isAdd']});}['_handleRootAttributeOperation'](_0xc2c9e7){const _0x5761e1=this['_diffRootsAttributes']['get'](_0xc2c9e7['root']['rootName']);null===_0xc2c9e7['newValue']?delete _0x5761e1[_0xc2c9e7['key']]:_0x5761e1[_0xc2c9e7['key']]=_0xc2c9e7['newValue'];}}function N(_0x44c6d2){const _0x481bd5=P(_0x44c6d2['rootName'],_0x44c6d2['isAttached']());for(const _0x2251ea of _0x44c6d2['getChildren']()){const _0xca101b=_0x2251ea['_clone'](!0x0);_0x481bd5['_appendChild'](_0xca101b);}return _0x481bd5;}function P(_0x39a8ce,_0x32fa2c=!0x0){const _0x4ef76c=new vt();return _0x4ef76c['rootName']=_0x39a8ce,_0x4ef76c['_isAttached']=_0x32fa2c,_0x4ef76c['isAttached']=()=>_0x4ef76c['_isAttached'],_0x4ef76c;}function F(_0xc284e6,_0x1e5297,_0x48b276){const _0x1cdb57='elementEnd'==_0xc284e6['type']?_0x48b276['createPositionAt'](_0xc284e6['item'],'end'):_0x48b276['createPositionBefore'](_0xc284e6['item']);return _0x48b276['createPositionFromPath'](_0x1e5297,_0x1cdb57['path'],_0x1cdb57['stickiness']);}function B(_0x157305,_0x22ae04,_0x43034e){const _0x573075='elementStart'==_0x157305['type']?_0x43034e['createPositionAt'](_0x157305['item'],0x0):_0x43034e['createPositionAfter'](_0x157305['item']);return _0x43034e['createPositionFromPath'](_0x22ae04,_0x573075['path'],_0x573075['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x94d383,_0x1ef643){super(_0x94d383),this['focusTracker']=new _0x166ce3(),this['keystrokes']=new _0x153ab6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1ef643),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4775bf(this);}['render'](){super['render'](),_0x3c9f52({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5d7668=_0x425dbc=>_0x425dbc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5d7668),this['keystrokes']['set']('arrowleft',_0x5d7668),this['keystrokes']['set']('arrowup',_0x5d7668),this['keystrokes']['set']('arrowdown',_0x5d7668);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3c34b5){this['revisionNameInputView']['fieldView']['element']['value']=_0x3c34b5['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5dbf7b){const _0x33b957=new _0xc3e9c9(this['locale'],_0x27d9e4),_0x251086=_0x33b957['fieldView'];_0x251086['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x557d63=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5dbf7b&&(_0x557d63+='\x20('+g(this['locale'],'optional')+')'),(_0x33b957['label']=_0x557d63,_0x251086['on']('input',()=>{this['revisionNameInputValue']=_0x251086['element']['value']['trim']();}),_0x33b957);}}class f extends _0xe250eb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2da000=this['editor'],_0x58b0d3=_0x2da000['plugins']['get']('RevisionTracker');_0x2da000['ui']['componentFactory']['add']('revisionHistory',_0x425f49=>{const _0x231ccd=_0x1e3b6e(_0x425f49),_0x10bb8b=_0x231ccd['panelView']['children'],_0x17308b=new _0x11702e(_0x425f49),_0x828b5d=new _0x448b5a(_0x425f49),_0x35a2be=new te(_0x425f49),_0x601fff=new _0x448b5a(_0x425f49),_0x5d5286=new te(_0x425f49);return _0x231ccd['bind']('isEnabled')['to'](_0x58b0d3,'isReady',_0x58b0d3,'isEnabled',_0x2da000,'isReadOnly',(_0x5c15b2,_0x191cdc,_0x596568)=>_0x5c15b2&&_0x191cdc&&!_0x596568),_0x231ccd['buttonView']['set']({'icon':_0x4a7a20,'label':g(_0x425f49,'Revision\x20history'),'tooltip':!0x0}),_0x35a2be['set']({'label':g(_0x425f49,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x35a2be['bind']('isEnabled')['to'](_0x58b0d3,'isReady',_0x58b0d3,'isEnabled',_0x2da000,'isReadOnly',(_0x23c8c4,_0x7d9991,_0x1119d6)=>_0x23c8c4&&_0x7d9991&&!_0x1119d6),_0x35a2be['on']('execute',()=>this['_showDialog']()),_0x5d5286['set']({'label':g(_0x425f49,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5d5286['bind']('isEnabled')['to'](_0x58b0d3,'isReady',_0x2da000,'isReadOnly',(_0x29d1f7,_0x26e914)=>_0x29d1f7&&!_0x26e914),_0x5d5286['on']('execute',()=>{_0x2da000['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x231ccd['isOpen']=!0x1,_0x2da000['editing']['view']['focus']();}),_0x828b5d['children']['add'](_0x35a2be),_0x601fff['children']['add'](_0x5d5286),_0x17308b['role']='menu',_0x17308b['items']['addMany']([_0x828b5d,_0x601fff]),_0x10bb8b['add'](_0x17308b),_0x231ccd;}),_0x2da000['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3deea0=this['editor'],_0x537a7c=_0x3deea0['locale'],_0x51333d=new _0x232f0e(_0x537a7c),_0x48cc40=new _0x38da37(_0x537a7c);_0x51333d['buttonView']['set']({'icon':_0x4a7a20,'label':g(_0x537a7c,'Revision\x20history')});const _0x438597=new _0x4bab68(_0x537a7c,_0x51333d),_0x114906=new _0x1ccbbb(_0x537a7c);_0x114906['set']({'label':g(_0x537a7c,'Save\x20current\x20revision')}),_0x114906['delegate']('execute')['to'](_0x51333d),_0x114906['on']('execute',()=>{this['_showDialog']();}),_0x438597['children']['add'](_0x114906),_0x48cc40['items']['add'](_0x438597);const _0x423ddb=new _0x4bab68(_0x537a7c,_0x51333d),_0x515184=new _0x1ccbbb(_0x537a7c);return _0x515184['set']({'label':g(_0x537a7c,'Open\x20revision\x20history')}),_0x515184['delegate']('execute')['to'](_0x51333d),_0x515184['on']('execute',()=>{_0x3deea0['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x423ddb['children']['add'](_0x515184),_0x48cc40['items']['add'](_0x423ddb),_0x51333d['panelView']['children']['add'](_0x48cc40),_0x51333d;}['_showDialog'](){const _0x5735cb=this['editor'],_0x16b325=_0x5735cb['locale'],_0x44f443=_0x5735cb['plugins']['get']('Dialog'),_0x367c32=_0x5735cb['plugins']['get']('RevisionTracker');function _0x439e0e(_0x4a12f7){_0x5735cb['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4a12f7['revisionName']?_0x4a12f7['revisionNameInputView']['errorText']=g(_0x16b325,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5735cb['plugins']['get'](u)['saveRevision']({'name':_0x4a12f7['revisionName']}),_0x44f443['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x439e0e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x44f443['show']({'id':'revisionSave','title':g(_0x16b325,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x5735cb['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x44f443['hide']()},{'label':g(_0x5735cb['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x49b2d1){_0x49b2d1['bind']('isEnabled')['to'](_0x367c32,'isReady',_0x367c32,'isEnabled',_0x5735cb,'isReadOnly',(_0x5e4c29,_0x5ef543,_0x2be5a2)=>_0x5e4c29&&_0x5ef543&&!_0x2be5a2);},'onExecute':()=>_0x439e0e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x187be3=this['editor'],_0x2c566f=_0x187be3['locale'];this['_saveRevisionFormView']=new hs(_0x2c566f,_0x187be3['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x241f9f,_0x224b8e){super(_0x241f9f),this['_model']=_0x224b8e,this['changeId']=_0x224b8e['id'];const _0x351317=this['bindTemplate'],_0x3e035e=g(_0x241f9f,_0x224b8e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x224b8e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x224b8e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x351317['to']('type',_0x34870d=>'ck-revision-change__'+_0x34870d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3e035e}]},{'text':'\x20'+_0x224b8e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x39982f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5cb740){super(),this['id']=_0x5cb740['id']||_0x12cc6f(),this['author']=_0x5cb740['author'],this['type']=_0x5cb740['type'],this['data']=_0x5cb740['data']||{},this['rootName']=_0x5cb740['rootName'],this['set']('createdAt',_0x5cb740['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x36eca4,_0x3df0b8){this['newRevisionId']=_0x36eca4,this['oldRevisionId']=_0x3df0b8,this['changes']=new _0x5a3b28();}['_setChanges'](_0x59541e){for(const _0x51c77f of _0x59541e)this['changes']['add'](_0x51c77f);}}class m extends _0xe250eb{['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[_0x4bf42f,_0x22739a,I,V];}constructor(_0x4f9012){super(_0x4f9012),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',(_0x6d819f,_0x415a52,_0x54919c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5725c7=>{for(const _0x26a249 of this['editor']['editing']['view']['document']['roots'])_0x54919c?_0x5725c7['removeClass']('ck-editor__editable__overlay',_0x26a249):_0x5725c7['addClass']('ck-editor__editable__overlay',_0x26a249);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x37db7f=>null!==_0x37db7f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x25a9a4,_0x21c75a,_0x587932)=>_0x25a9a4&&_0x587932?_0x21c75a['changes']['getIndex'](_0x587932):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xa5fd80,_0x216605)=>_0xa5fd80?_0x216605['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x22739a);}['init'](){const _0x21e5eb=this['editor'],_0xc3bf10=new wt(_0x21e5eb,{'direction':'backward'}),_0x222faa=new wt(_0x21e5eb,{'direction':'forward'});(_0x21e5eb['commands']['add']('showPreviousChange',_0xc3bf10),_0x21e5eb['commands']['add']('showNextChange',_0x222faa),_0x21e5eb['commands']['add']('restoreRevision',new mt(_0x21e5eb)),this['on']('change:numberOfChanges',()=>{_0xc3bf10['refresh'](),_0x222faa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x21e5eb['enableReadOnlyMode']('revision-viewer'),_0x21e5eb['plugins']['has']('WidgetToolbarRepository'))&&_0x21e5eb['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x481a1d){return await this['_utils']['loadRevisionData'](_0x481a1d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x481a1d);}async['getRevisionRootsAttributes'](_0x17a2b3){return await this['_utils']['loadRevisionData'](_0x17a2b3,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x17a2b3);}async['compare'](_0x47be0c,_0xc9686d,_0x42baf3=!0x1){if(!this['isEnabled'])return;const _0x319b0b=this['diff'],_0x49317f=this['repository'],_0x5ac3f8='string'==typeof _0x47be0c?_0x49317f['getRevision'](_0x47be0c):_0x47be0c,_0x44e105='string'==typeof _0xc9686d?_0x49317f['getRevision'](_0xc9686d):_0xc9686d,_0x4ce5ff=_0x5ac3f8['id'],_0x5d62f6=_0x44e105?_0x44e105['id']:null;if(!_0x42baf3&&this['diff']&&this['diff']['newRevisionId']===_0x4ce5ff&&this['diff']['oldRevisionId']===_0x5d62f6)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x4ce5ff,_0x5d62f6);const _0x391cbe=this['_getRevisionsRange'](_0x5ac3f8,_0x44e105,!0x0)['map'](_0x1165fc=>this['_utils']['loadRevisionData'](_0x1165fc,this['adapter']));return _0x391cbe['push'](new Promise(_0x21f670=>{setTimeout(_0x21f670,0x14);})),Promise['all'](_0x391cbe)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x52cfc1=this['_getDiff'](_0x4ce5ff,_0x5d62f6);for(const _0x416126 of _0x52cfc1['changes'])this['_changeIdToChange']['set'](_0x416126['id'],_0x416126);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5eee3c=>{for(const _0x3197ab of this['editor']['model']['document']['getRootNames']())_0x5eee3c['detachRoot'](_0x3197ab);for(const _0x212daf of Object['keys'](_0x52cfc1['model'])){const _0xc52e04=_0x5eee3c['addRoot'](_0x212daf);for(const _0x257ee4 of Object['keys'](_0x52cfc1['attributes'][_0x212daf]))_0x5eee3c['setAttribute'](_0x257ee4,_0x52cfc1['attributes'][_0x212daf][_0x257ee4],_0xc52e04);_0x5eee3c['insert'](_0x52cfc1['model'][_0x212daf],_0xc52e04,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x52cfc1['changes'])),this['isReady']=!0x0;})['catch'](_0x4a4a46=>{console['error'](_0x4a4a46),this['_cleanUp'](),_0x319b0b&&(this['diff']=_0x319b0b),this['isReady']=!0x0;});}['addRevisionData'](_0xd1e813,_0x45c425){const _0x5f2236=this['repository']['createRevision'](_0xd1e813);return _0x5f2236['on']('_update',(_0x3206e7,_0xd6b5a6,_0x3735e2)=>_0x45c425(_0xd6b5a6,_0x3735e2,_0x5f2236)),this['repository']['addRevision'](_0x5f2236),_0x5f2236;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3ff75e=>{for(const _0x457849 of this['editor']['model']['document']['getRootNames']())_0x3ff75e['detachRoot'](_0x457849);});}['_sortAndFilterDiffChanges'](_0x2fcc7f){const _0x125181=[],_0x44876e=new Map();for(const _0x23dc34 of this['editor']['model']['document']['getRootNames']()){const _0x3f651a=this['editor']['editing']['view']['getDomRoot'](_0x23dc34);if(!_0x3f651a)continue;const _0x42123e=_0x3f651a['getClientRects']()['item'](0x0);_0x42123e&&(_0x125181['push'](_0x23dc34),_0x44876e['set'](_0x23dc34,_0x42123e));}return _0x125181['sort']((_0x4b0c49,_0x562d54)=>{const _0x5ab395=_0x44876e['get'](_0x4b0c49),_0x41fad4=_0x44876e['get'](_0x562d54);return _0x5ab395['y']-_0x41fad4['y']||_0x5ab395['x']-_0x41fad4['x'];}),(_0x2fcc7f=_0x2fcc7f['filter'](_0x382121=>_0x125181['includes'](_0x382121['rootName'])))['sort']((_0x423096,_0x4f586b)=>_0x125181['indexOf'](_0x423096['rootName'])-_0x125181['indexOf'](_0x4f586b['rootName'])),_0x2fcc7f;}['_makeTape'](_0x4da882){const _0x5f3667=Array['from'](_0x4da882['markers'])['filter'](([_0x37ee79,_0x493e5a])=>_0x37ee79['startsWith']('revision:')&&!_0x493e5a['isCollapsed']),_0x5234da=Array['from'](this['editor']['model']['createRangeIn'](_0x4da882)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5f3667['length'])for(const _0x3d8cd1 of _0x5234da){const [_0x2aa304,_0x18a12f]=_0x5f3667[0x0],[,_0x3ea4af,_0x7ffbc6]=_0x2aa304['split'](':');if(_0x18a12f['end']['isEqual'](_0x3d8cd1['nextPosition'])&&_0x5f3667['shift'](),(_0x3d8cd1['previousPosition']['isEqual'](_0x18a12f['start'])||_0x3d8cd1['previousPosition']['isAfter'](_0x18a12f['start']))&&('insertion'==_0x3ea4af?_0x3d8cd1['isAdded']={'userId':_0x7ffbc6}:'deletion'==_0x3ea4af&&(_0x3d8cd1['isRemoved']={'userId':_0x7ffbc6})),0x0==_0x5f3667['length'])break;}return _0x5234da;}['_refreshStartEndIndex'](_0x1b04a5){const _0x26960c=new Map();for(let _0x4e6279=0x0;_0x4e6279<_0x1b04a5['length'];_0x4e6279++)'text'===_0x1b04a5[_0x4e6279]['type']?(_0x1b04a5[_0x4e6279]['item']['startIndex']=_0x4e6279,_0x1b04a5[_0x4e6279]['item']['endIndex']=_0x4e6279):('elementStart'===_0x1b04a5[_0x4e6279]['type']?_0x1b04a5[_0x4e6279]['item']['startIndex']=_0x4e6279:'elementEnd'===_0x1b04a5[_0x4e6279]['type']&&(_0x1b04a5[_0x4e6279]['item']['endIndex']=_0x4e6279),_0x26960c['set'](_0x1b04a5[_0x4e6279]['id'],_0x4e6279));for(const _0x1a735f of _0x26960c['values']())'elementStart'===_0x1b04a5[_0x1a735f]['type']?_0x1b04a5[_0x1a735f]['item']['endIndex']=_0x26960c['get'](_0x1b04a5[_0x1a735f]['pairId']):'elementEnd'===_0x1b04a5[_0x1a735f]['type']&&(_0x1b04a5[_0x1a735f]['item']['startIndex']=_0x26960c['get'](_0x1b04a5[_0x1a735f]['pairId']));}['_processTape'](_0x3f067e){for(let _0x29bead=0x0;_0x29bead<_0x3f067e['length'];_0x29bead++){if('elementStart'===_0x3f067e[_0x29bead]['type'])_0x3f067e[_0x29bead]['item']['startIndex']=_0x29bead;else{if('elementEnd'===_0x3f067e[_0x29bead]['type']){_0x3f067e[_0x29bead]['item']['endIndex']=_0x29bead;const _0x1f79a1=_0x3f067e[_0x29bead]['item']['startIndex'];_0x3f067e[_0x1f79a1]['pairId']=_0x3f067e[_0x29bead]['id'],_0x3f067e[_0x29bead]['pairId']=_0x3f067e[_0x1f79a1]['id'];}else _0x3f067e[_0x29bead]['item']['startIndex']=_0x29bead,_0x3f067e[_0x29bead]['item']['endIndex']=_0x29bead,_0x3f067e[_0x29bead]['pairId']=null;}_0x3f067e[_0x29bead]['markersStart']||(_0x3f067e[_0x29bead]['markersStart']=[],_0x3f067e[_0x29bead]['markersEnd']=[]);}}['_markInsertions'](_0x2c0776,_0x31cb88){const _0x2762af=_0x2c0776['filter'](_0x3224f4=>!_0x3224f4['isAdded']);for(let _0x1aa40a=0x0;_0x1aa40a<_0x31cb88['length'];_0x1aa40a++)_0x31cb88[_0x1aa40a]['isAdded']&&(_0x2762af[_0x1aa40a]['isAdded']=_0x31cb88[_0x1aa40a]['isAdded']);}['_getDiff'](_0x4b3f16,_0x23d777=null){const _0x133674=this['repository']['getRevision'](_0x4b3f16),_0x211fef=_0x23d777?this['repository']['getRevision'](_0x23d777):null,_0x3dab44=this['_getRevisionsRange'](_0x133674,_0x211fef),_0x14b122=_0x3dab44[_0x3dab44['length']-0x1],_0x2ad6f9=new Map(),_0x427194={'model':{},'attributes':{},'changes':[]},_0x5650c5=new Set(),_0x159ca2=new Map();for(let _0x5e92cc=_0x3dab44['length']-0x1;_0x5e92cc>=0x0;_0x5e92cc--){const _0x561594=_0x3dab44[_0x5e92cc];for(const _0x2983d3 of Object['keys'](_0x561594['diffData']))if(_0x561594['diffData'][_0x2983d3]['attachChange']){const _0x105371=_0x561594['diffData'][_0x2983d3]['attachChange'];_0x105371['isAttached']?(_0x5650c5['add'](_0x2983d3),_0x159ca2['has'](_0x2983d3)&&_0x159ca2['get'](_0x2983d3)['userId']==_0x105371['userId']?_0x159ca2['delete'](_0x2983d3):_0x159ca2['set'](_0x2983d3,_0x105371)):_0x159ca2['has'](_0x2983d3)?(_0x5650c5['delete'](_0x2983d3),_0x159ca2['delete'](_0x2983d3)):(_0x5650c5['add'](_0x2983d3),_0x159ca2['set'](_0x2983d3,_0x105371));}else _0x5650c5['add'](_0x2983d3);}for(const _0x18db2e of _0x5650c5){const _0xac8cc=_0x159ca2['has'](_0x18db2e)&&!_0x159ca2['get'](_0x18db2e)['isAttached'];let _0x1bd056=_0xac8cc?_0x3dab44['length']-0x1:0x0;const _0x58fe3b=_0xac8cc?-0x1:0x1;for(;_0x3dab44[_0x1bd056];){const _0x332f7e=_0x3dab44[_0x1bd056];if(_0x332f7e['diffData'][_0x18db2e]){const _0x26f238=_0xac8cc?_0x332f7e['diffData'][_0x18db2e]['attributesBefore']:_0x332f7e['diffData'][_0x18db2e]['attributesAfter'];_0x427194['attributes'][_0x18db2e]=_0x26f238?_0x1798f6(_0x26f238):{};break;}_0x1bd056+=_0x58fe3b;}}for(const _0x2f682e of _0x3dab44){_0x2f682e['model']={};for(const _0x31f849 of _0x2f682e['authors'])_0x2ad6f9['set'](_0x31f849['id'],_0x31f849);for(const _0x37bb9a of _0x5650c5){const _0x1ea674=_0x2f682e['diffData'][_0x37bb9a]?_0x2f682e['diffData'][_0x37bb9a]['insertions']:'[]',_0x223571=_0x2f682e['diffData'][_0x37bb9a]?_0x2f682e['diffData'][_0x37bb9a]['deletions']:'[]';_0x2f682e['model'][_0x37bb9a]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1ea674),'deletions':this['_utils']['_makeModelFromViewString'](_0x223571)};}}for(const _0x359b33 of _0x5650c5){let _0x50b8a2=null,_0x417a5e=0x0;const _0x3ec26d=new Map(Array['from'](_0x133674['model'][_0x359b33]['insertions']['markers'])['filter'](([_0x4ce3cd])=>!_0x4ce3cd['startsWith']('revision:')));let _0x20e854=0x0;for(const _0x45fdb4 of _0x3dab44){const _0x5b7808=this['_makeTape'](_0x45fdb4['model'][_0x359b33]['insertions']);_0x45fdb4==_0x133674?(_0x50b8a2=_0x5b7808,_0x417a5e=_0x50b8a2['length'],_0x50b8a2['forEach'](_0xedcab5=>{_0xedcab5['id']=_0x20e854++;}),this['_processTape'](_0x50b8a2)):this['_markInsertions'](_0x50b8a2,_0x5b7808);const _0x48993c=_0x50b8a2['filter'](_0x3e4ce9=>!_0x3e4ce9['isAdded'])['map'](_0x3f6095=>_0x3f6095['id']);let _0x5e8bad=0x0;const _0x1250c6=this['_makeTape'](_0x45fdb4['model'][_0x359b33]['deletions']);_0x1250c6['forEach'](_0x3ae82e=>{_0x3ae82e['isRemoved']?_0x3ae82e['id']=_0x417a5e++:_0x3ae82e['id']=_0x48993c[_0x5e8bad++];}),this['_processTape'](_0x1250c6),this['_setDistance'](_0x50b8a2,'isAdded'),this['_setDistance'](_0x1250c6,'isRemoved'),_0x45fdb4==_0x133674&&this['_markMarkers'](_0x50b8a2,_0x3ec26d),_0x50b8a2=this['_joinTapes'](_0x50b8a2,_0x1250c6),this['_refreshStartEndIndex'](_0x50b8a2),this['_setDistance'](_0x50b8a2,'isRemoved');}_0x50b8a2=_0x50b8a2['filter'](_0x55b3a0=>!(_0x55b3a0['isAdded']&&_0x55b3a0['isRemoved']));const _0x405d11=new Map(_0x14b122['model'][_0x359b33]['deletions']['markers']),_0x4cec20=new Set(_0x3ec26d['keys']());for(const _0x42fb64 of _0x405d11['keys']())_0x4cec20['delete'](_0x42fb64);this['_markSuggestions'](_0x50b8a2,_0x4cec20),this['_fixObsoleteTags'](_0x50b8a2),_0x50b8a2=this['_removeMissingPairs'](_0x50b8a2),_0x50b8a2=this['_markMismatchedRemovedTags'](_0x50b8a2),_0x50b8a2=this['_removeUnsupportedChanges'](_0x50b8a2);const {root:_0x138cc7,changes:_0x365620}=this['_makeModelFromTape'](_0x50b8a2,_0x2ad6f9,_0x359b33);_0x427194['model'][_0x359b33]=_0x138cc7;const _0x4f11c2=_0x159ca2['get'](_0x359b33);if(_0x4f11c2){const _0x404d58=_0x2ad6f9['get'](_0x4f11c2['userId']),_0x2b428f=new r({'author':_0x404d58,'type':_0x4f11c2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x359b33});_0x365620['unshift'](_0x2b428f),_0x427194['attributes'][_0x359b33]['revisionHistoryAttachChange']=_0x2b428f['id'];}_0x427194['changes']=_0x427194['changes']['concat'](_0x365620);}return _0x427194;}['_markMarkers'](_0x4fbcb9,_0x56c46a){for(let _0x441b32=0x0;_0x441b32<_0x4fbcb9['length'];_0x441b32++)for(const [_0xb348e,_0x5f52e2]of _0x56c46a)!_0x5f52e2['isCollapsed']&&_0x5f52e2['start']['isEqual'](_0x4fbcb9[_0x441b32]['previousPosition'])&&_0x4fbcb9[_0x441b32]['markersStart']['push'](_0xb348e),_0x5f52e2['end']['isEqual'](_0x4fbcb9[_0x441b32]['nextPosition'])&&_0x4fbcb9[_0x441b32]['markersEnd']['push'](_0xb348e);}['_joinTapes'](_0x1ff7ad,_0x52b475){let _0x4b7344=[],_0x1453ad=0x0,_0x2c70e0=0x0;for(;_0x1453ad<_0x1ff7ad['length']||_0x2c70e0<_0x52b475['length'];){const _0x3609d3=_0x1ff7ad[_0x1453ad]||{},_0x3bfdc2=_0x52b475[_0x2c70e0]||{};if(_0x3609d3['id']==_0x3bfdc2['id'])_0x1453ad++,_0x2c70e0++,_0x4b7344['push'](_0x3609d3);else{if(_0x3bfdc2['isRemoved']&&_0x3609d3['isAdded']){const {commonTape:_0x53515f,iEnd:_0x461b83,jEnd:_0xd258f1}=this['_threeWayMerge'](_0x1ff7ad,_0x1453ad,_0x52b475,_0x2c70e0);_0x4b7344=_0x4b7344['concat'](_0x53515f),_0x1453ad=_0x461b83,_0x2c70e0=_0xd258f1;}else _0x3bfdc2['isRemoved']?(_0x2c70e0++,_0x4b7344['push'](_0x3bfdc2)):(_0x1453ad++,_0x4b7344['push'](_0x3609d3));}}return _0x4b7344;}['_markSuggestions'](_0x42334e,_0x4ee32a){const _0x5d74a5=[];for(let _0x28c385=0x0;_0x28c385<_0x42334e['length'];_0x28c385++){for(let _0x47fc6f=0x0;_0x47fc6f<_0x42334e[_0x28c385]['markersStart']['length'];_0x47fc6f++){const _0x2616de=_0x42334e[_0x28c385]['markersStart'][_0x47fc6f];if(!_0x4ee32a['has'](_0x2616de))continue;const {group:_0x3cca24,type:_0x172962,authorId:_0x12adc9}=_0x9e8891(_0x2616de);'revision-suggestion'!=_0x3cca24||'insertion'!=_0x172962&&'deletion'!=_0x172962||(_0x5d74a5['unshift']({'type':_0x172962,'name':_0x2616de,'userId':_0x12adc9}),_0x42334e[_0x28c385]['markersStart']['splice'](_0x47fc6f,0x1),_0x47fc6f--);}_0x32fddf(_0x42334e[_0x28c385]);for(let _0x1b3eaf=0x0;_0x1b3eaf<_0x42334e[_0x28c385]['markersEnd']['length'];_0x1b3eaf++){const _0xa9b3d3=_0x42334e[_0x28c385]['markersEnd'][_0x1b3eaf];if(!_0x4ee32a['has'](_0xa9b3d3))continue;const {group:_0x17b3fd,type:_0x362c97}=_0x9e8891(_0xa9b3d3);if('revision-suggestion'!=_0x17b3fd||'insertion'!=_0x362c97&&'deletion'!=_0x362c97)continue;_0x42334e[_0x28c385]['markersEnd']['splice'](_0x1b3eaf,0x1),_0x1b3eaf--;const _0xda317d=_0x5d74a5['findIndex'](_0x3b0e62=>_0x3b0e62['name']==_0xa9b3d3);_0xda317d>-0x1&&_0x5d74a5['splice'](_0xda317d,0x1);}}function _0x9e8891(_0x256179){const _0x26f40d=_0x256179['split'](':');return{'group':_0x26f40d[0x0],'type':_0x26f40d[0x1],'subType':_0x26f40d['length']>=0x5?_0x26f40d[0x2]:null,'id':_0x26f40d['length']<0x5?_0x26f40d[0x2]:_0x26f40d[0x3],'authorId':_0x26f40d['length']<0x5?_0x26f40d[0x3]:_0x26f40d[0x4],'markerCount':0x6==_0x26f40d['length']?_0x26f40d[0x5]:null};}function _0x32fddf(_0x486594){for(let _0x1be793=0x0;_0x1be793<_0x5d74a5['length'];_0x1be793++){if(_0x486594['isAdded']&&'insertion'==_0x5d74a5[_0x1be793]['type']&&_0x486594['isAdded']['userId']==_0x5d74a5[_0x1be793]['userId'])return _0x486594['isAddSuggestion']=_0x5d74a5[_0x1be793],void delete _0x486594['isAdded'];if(!_0x486594['isAdded']&&!_0x486594['isRemoved']&&'deletion'==_0x5d74a5[_0x1be793]['type'])return void(_0x486594['isRemoveSuggestion']=_0x5d74a5[_0x1be793]);}}}['_setDistance'](_0x228c31,_0x55ae18){let _0x2d6437=0x0,_0x43bb7b=!0x1;const _0x2393e6=new Map();for(const _0xe64529 of _0x228c31)_0xe64529[_0x55ae18]?_0x43bb7b&&(_0x2d6437++,_0x43bb7b=!0x1):(_0x2d6437++,_0x43bb7b=!0x0),_0x2393e6['set'](_0xe64529['id'],_0x2d6437);for(let _0x1f64ae=0x0;_0x1f64ae<_0x228c31['length'];_0x1f64ae++){if('isRemoved'==_0x55ae18&&_0x228c31[_0x1f64ae]['isAdded']||'isAdded'==_0x55ae18&&_0x228c31[_0x1f64ae]['isRemoved'])continue;if('text'==_0x228c31[_0x1f64ae]['type']){_0x228c31[_0x1f64ae]['distance']=0x0;continue;}const _0xc759bc=_0x2393e6['get'](_0x228c31[_0x1f64ae]['pairId']),_0x3eabbc=_0x2393e6['get'](_0x228c31[_0x1f64ae]['id']);_0x228c31[_0x1f64ae]['distance']=_0xc759bc-_0x3eabbc;}}['_getRevisionsRange'](_0x5dcba8,_0x4908e5,_0x2d9976=!0x1){const _0x48f2e7=[];let _0x1a8b5b=this['repository']['getIndex'](_0x5dcba8),_0x9d783b=this['repository']['getIndex'](_0x4908e5);for(-0x1==_0x9d783b&&(_0x9d783b=this['repository']['_revisions']['length'],_0x2d9976=!0x1);_0x1a8b5b<_0x9d783b;)_0x48f2e7['push'](this['repository']['getRevision'](_0x1a8b5b)),_0x1a8b5b++;return _0x2d9976&&_0x48f2e7['push'](this['repository']['getRevision'](_0x1a8b5b)),_0x48f2e7;}['_threeWayMerge'](_0x250e04,_0x287fde,_0x327878,_0x215447){const _0x2b0273=this['editor']['model']['schema'];let _0x138409=_0x287fde;for(;_0x250e04[_0x138409]&&_0x250e04[_0x138409]['isAdded'];)_0x138409++;let _0x54b613=_0x215447;for(;_0x327878[_0x54b613]&&_0x327878[_0x54b613]['isRemoved'];)_0x54b613++;_0x5f3dfe(_0x250e04,_0x287fde,_0x138409),_0x5f3dfe(_0x327878,_0x215447,_0x54b613);const _0x2d2c92=_0x327878['slice'](_0x215447,_0x54b613)['concat'](_0x250e04['slice'](_0x287fde,_0x138409));return _0x2d2c92['sort']((_0x44f817,_0x21b84c)=>_0x44f817['side']!=_0x21b84c['side']?_0x44f817['side']-_0x21b84c['side']:_0x44f817['level']!=_0x21b84c['level']?_0x44f817['level']-_0x21b84c['level']:_0x44f817['distance']!=_0x21b84c['distance']?_0x21b84c['distance']-_0x44f817['distance']:!!_0x44f817['isAdded']!=!!_0x21b84c['isAdded']?-0x1==_0x44f817['side']||0x0==_0x44f817['side']?_0x44f817['isAdded']?-0x1:0x1:_0x44f817['isAdded']?0x1:-0x1:_0x44f817['index']-_0x21b84c['index']),{'commonTape':_0x2d2c92,'iEnd':_0x138409,'jEnd':_0x54b613};function _0x5f3dfe(_0x465207,_0xf58cbb,_0x3a3b69){let _0x291223=-0x1,_0x19ca94=Number['POSITIVE_INFINITY'],_0x45ba9a=!0x0;for(let _0x291b22=_0xf58cbb;_0x291b22<_0x3a3b69;_0x291b22++)if(_0x2b0273['isInline'](_0x465207[_0x291b22]['item'])||(_0x45ba9a=!0x1),_0x465207[_0x291b22]['item']['startIndex']<_0xf58cbb&&(_0x291223=_0x291b22),_0x465207[_0x291b22]['item']['endIndex']>=_0x3a3b69){_0x19ca94=_0x291b22;break;}_0x45ba9a&&(_0x291223=_0x3a3b69-0x1);for(let _0x724982=_0xf58cbb;_0x724982<_0x3a3b69;_0x724982++)_0x465207[_0x724982]['side']=_0x724982<=_0x291223?-0x1:_0x724982<_0x19ca94?0x0:0x1,_0x465207[_0x724982]['index']=_0x724982;let _0x6c4528=0x0;for(let _0x78f92d=_0xf58cbb;_0x78f92d<=_0x291223;_0x78f92d++)0x0==_0x465207[_0x78f92d]['distance']?_0x465207[_0x78f92d]['level']=_0x6c4528:(_0x6c4528++,_0x465207[_0x78f92d]['level']=_0x6c4528,_0x6c4528++);for(let _0xdd1fcc=_0xf58cbb;_0xdd1fcc<_0x3a3b69;_0xdd1fcc++)0x0==_0x465207[_0xdd1fcc]['side']&&(_0x465207[_0xdd1fcc]['level']=_0x6c4528);_0x6c4528=0x0;for(let _0x1f8163=_0x3a3b69-0x1;_0x1f8163>=_0x19ca94;_0x1f8163--)0x0==_0x465207[_0x1f8163]['distance']?_0x465207[_0x1f8163]['level']=_0x6c4528:(_0x6c4528--,_0x465207[_0x1f8163]['level']=_0x6c4528,_0x6c4528--);}}['_fixObsoleteTags'](_0x42f9d5){const _0x10e759=new Map(),_0x5775c1=this['editor']['model']['schema'];for(let _0x3b5ca5=0x1;_0x3b5ca5<_0x42f9d5['length'];_0x3b5ca5++){let _0x1c3999,_0x5e5c06,_0x59b7ff;const _0x25b359=_0x42f9d5[_0x3b5ca5],_0x55963a=_0x42f9d5[_0x3b5ca5-0x1];if('text'==_0x25b359['type'])continue;if(_0x25b359['type']!=_0x55963a['type'])continue;if(!_0x5775c1['isBlock'](_0x55963a['item'])||_0x5775c1['isLimit'](_0x55963a['item']))continue;if(!_0x5775c1['isBlock'](_0x25b359['item'])||_0x5775c1['isLimit'](_0x25b359['item']))continue;if((_0x42f9d5[_0x3b5ca5]['isAdded']||_0x42f9d5[_0x3b5ca5]['isAddSuggestion'])&&_0x42f9d5[_0x3b5ca5-0x1]['isRemoved'])_0x1c3999=_0x42f9d5[_0x3b5ca5],_0x5e5c06=_0x42f9d5[_0x3b5ca5-0x1],_0x59b7ff=_0x3b5ca5-0x1;else{if(!_0x42f9d5[_0x3b5ca5]['isRemoved']||!_0x42f9d5[_0x3b5ca5-0x1]['isAdded']&&!_0x42f9d5[_0x3b5ca5-0x1]['isAddSuggestion'])continue;_0x1c3999=_0x42f9d5[_0x3b5ca5-0x1],_0x5e5c06=_0x42f9d5[_0x3b5ca5],_0x59b7ff=_0x3b5ca5;}const _0x44dbb2=_0x1c3999['level']==_0x5e5c06['level'],_0xe77d80=Math['abs'](_0x1c3999['level'])<Math['abs'](_0x5e5c06['level'])&&0x0==_0x5e5c06['distance'];(_0x44dbb2||_0xe77d80)&&(_0x10e759['set'](_0x5e5c06['id'],_0x1c3999['id']),_0x42f9d5['splice'](_0x59b7ff,0x1),_0x3b5ca5--,_0x1c3999['isAdded']=!0x1);}for(let _0x342ac7=0x0;_0x342ac7<_0x42f9d5['length'];_0x342ac7++)_0x10e759['has'](_0x42f9d5[_0x342ac7]['pairId'])&&(_0x42f9d5[_0x342ac7]['pairId']=_0x10e759['get'](_0x42f9d5[_0x342ac7]['pairId']));}['_removeMissingPairs'](_0x2c840b){const _0x138822=new Set(_0x2c840b['map'](_0xf07e7f=>_0xf07e7f['id']));for(let _0x9655ef=0x0;_0x9655ef<_0x2c840b['length'];_0x9655ef++)_0x138822['has'](_0x2c840b[_0x9655ef]['pairId'])||0x0==_0x2c840b[_0x9655ef]['distance']||(_0x2c840b[_0x9655ef]['isIncorrect']=!0x0);return _0x2c840b['filter'](_0x45cbdc=>!_0x45cbdc['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3d1209){const _0x774832=new Set();for(let _0x16ccc5=0x0;_0x16ccc5<_0x3d1209['length'];_0x16ccc5++){if(_0x774832['has'](_0x3d1209[_0x16ccc5]['id'])&&_0x3d1209[_0x16ccc5]['isRemoved']&&(_0x3d1209[_0x16ccc5]['isIncorrect']=!0x0),_0x3d1209[_0x16ccc5]['isIncorrect'])continue;if(0x0==_0x3d1209[_0x16ccc5]['distance'])continue;if('elementStart'!=_0x3d1209[_0x16ccc5]['type'])continue;if(null==_0x3d1209[_0x16ccc5]['pairId'])continue;let _0x353737=_0x16ccc5+0x1,_0x436d71=0x0;for(;_0x3d1209[_0x353737]['id']!=_0x3d1209[_0x16ccc5]['pairId'];)'elementStart'==_0x3d1209[_0x353737]['type']?_0x436d71++:'elementEnd'==_0x3d1209[_0x353737]['type']&&_0x436d71--,_0x353737++;if(0x0!=_0x436d71){if(_0x3d1209[_0x16ccc5]['isRemoved'])_0x3d1209[_0x16ccc5]['isIncorrect']=!0x0;else{for(;_0x353737!=_0x16ccc5;)_0x3d1209[_0x353737]['isRemoved']&&0x0!=_0x3d1209[_0x353737]['distance']&&(_0x3d1209[_0x353737]['isIncorrect']=!0x0,_0x774832['add'](_0x3d1209[_0x353737]['pairId'])),_0x353737--;}}}return _0x3d1209['filter'](_0x1500f2=>!_0x1500f2['isIncorrect']);}['_removeUnsupportedChanges'](_0x21b38d){const _0x16ace0=this['editor']['model']['schema'];for(let _0x3885a4=0x0;_0x3885a4<_0x21b38d['length'];_0x3885a4++){if(!(_0x21b38d[_0x3885a4]['isAdded']||_0x21b38d[_0x3885a4]['isAddSuggestion']||_0x21b38d[_0x3885a4]['isRemoved']||_0x21b38d[_0x3885a4]['isRemoveSuggestion']))continue;if(0x0==_0x21b38d[_0x3885a4]['distance'])continue;const _0x277aa6=_0x21b38d[_0x3885a4]['item'];_0x16ace0['isBlock'](_0x277aa6)||_0x16ace0['isLimit'](_0x277aa6)||(_0x21b38d[_0x3885a4]['isAdded']&&delete _0x21b38d[_0x3885a4]['isAdded'],_0x21b38d[_0x3885a4]['isAddSuggestion']&&delete _0x21b38d[_0x3885a4]['isAddSuggestion'],_0x21b38d[_0x3885a4]['isRemoveSuggestion']&&delete _0x21b38d[_0x3885a4]['isRemoveSuggestion'],_0x21b38d[_0x3885a4]['isRemoved']&&(_0x21b38d[_0x3885a4]['isIncorrect']=!0x0));}return _0x21b38d['filter'](_0x5d7db9=>!_0x5d7db9['isIncorrect']);}['_makeModelFromTape'](_0x1d7d56,_0x45b54b,_0x1250e0){const _0x1f683f=new vt(),_0x4a6b93=[],_0x288a12=new Map(),_0x5c8e94=this['editor']['model'],_0x24d4bc=_0x5c8e94['schema'],_0x3f2d8e=[_0x1f683f],_0x38671b={},_0x54879c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56ae98=null;const _0x5e35ee=[0x0];for(let _0x480328=0x0;_0x480328<_0x1d7d56['length'];_0x480328++)if('elementStart'===_0x1d7d56[_0x480328]['type']){_0x1d7d56[_0x480328]['previousPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee);const _0x382605=new ut(_0x1d7d56[_0x480328]['item']['name'],_0x1d7d56[_0x480328]['item']['getAttributes']());_0x3f2d8e[0x0]['_appendChild'](_0x382605),_0x5e35ee['push'](0x0),_0x3f2d8e['unshift'](_0x382605),_0x1d7d56[_0x480328]['nextPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee);}else'elementEnd'===_0x1d7d56[_0x480328]['type']?(_0x3f2d8e['shift'](),_0x1d7d56[_0x480328]['previousPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee),_0x5e35ee['pop'](),_0x5e35ee[_0x5e35ee['length']-0x1]++,_0x1d7d56[_0x480328]['nextPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee)):(_0x1d7d56[_0x480328]['previousPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee),_0x56ae98?_0x56ae98['_data']+=_0x1d7d56[_0x480328]['item']['data']:_0x56ae98=new gt(_0x1d7d56[_0x480328]['item']['data'],_0x1d7d56[_0x480328]['item']['getAttributes']()),_0x1d7d56[_0x480328+0x1]&&'text'===_0x1d7d56[_0x480328+0x1]['type']&&_0x7ebeaf(_0x56ae98,_0x1d7d56[_0x480328+0x1]['item'])||(_0x3f2d8e[0x0]['_appendChild'](_0x56ae98),_0x56ae98=null),_0x5e35ee[_0x5e35ee['length']-0x1]+=_0x1d7d56[_0x480328]['item']['offsetSize'],_0x1d7d56[_0x480328]['nextPosition']=_0x5c8e94['createPositionFromPath'](_0x1f683f,_0x5e35ee));for(let _0x31509b=0x0;_0x31509b<_0x1d7d56['length'];_0x31509b++){const _0x122664=_0x1d7d56[_0x31509b]['previousPosition'],_0x13c010=_0x1d7d56[_0x31509b]['nextPosition'];for(const _0x1a778d of _0x1d7d56[_0x31509b]['markersStart'])_0x288a12['set'](_0x1a778d,{'start':_0x122664,'end':null});_0x405279('isRemoveSuggestion',_0x31509b,_0x122664,_0x13c010),_0x405279('isAddSuggestion',_0x31509b,_0x122664,_0x13c010),_0x405279('isRemoved',_0x31509b,_0x122664,_0x13c010),_0x405279('isAdded',_0x31509b,_0x122664,_0x13c010);for(const _0xc1c3d5 of _0x1d7d56[_0x31509b]['markersEnd']){const _0x3e72c0=_0x288a12['get'](_0xc1c3d5);_0x3e72c0?_0x3e72c0['end']=_0x13c010:_0x288a12['set'](_0xc1c3d5,{'start':_0x13c010,'end':_0x13c010});}}for(const [_0x546154,_0x3eefde]of _0x288a12){const _0x356594=this['editor']['model']['createRange'](_0x3eefde['start'],_0x3eefde['end']);_0x1f683f['markers']['set'](_0x546154,_0x356594);}return _0x4a6b93['sort']((_0x550735,_0x36889f)=>{const _0x5839f9=_0x1f683f['markers']['get']('revision:'+_0x550735['id']),_0x3b29e8=_0x1f683f['markers']['get']('revision:'+_0x36889f['id']);return _0x5839f9['start']['isBefore'](_0x3b29e8['start'])?-0x1:_0x5839f9['start']['isAfter'](_0x3b29e8['start'])?0x1:_0x5839f9['end']['isBefore'](_0x3b29e8['end'])?-0x1:_0x5839f9['end']['isAfter'](_0x3b29e8['end'])?0x1:'add'===_0x550735['type']?-0x1:0x1;}),{'root':_0x1f683f,'changes':_0x4a6b93};function _0x405279(_0x34b5ee,_0x38143f,_0x4880e6,_0x351267){const _0x15e048=!!_0x1d7d56[_0x38143f][_0x34b5ee],_0x378ae2=_0x15e048?_0x1d7d56[_0x38143f][_0x34b5ee]['userId']:null,_0x3aa94b=_0x38143f===_0x1d7d56['length']-0x1,_0x199096=_0x54879c[_0x34b5ee][0x0],_0x10fb0e=_0x24d4bc['isObject'](_0x1d7d56[_0x38143f]['item']);!_0x38671b[_0x34b5ee]&&_0x15e048?_0x38671b[_0x34b5ee]={'start':_0x4880e6,'tapeItem':_0x1d7d56[_0x38143f],'userId':_0x378ae2,'type':_0x34b5ee}:_0x38671b[_0x34b5ee]&&!_0x15e048?(_0x38671b[_0x34b5ee]['end']=_0x4880e6,_0x5d2da7(_0x38671b[_0x34b5ee]),_0x38671b[_0x34b5ee]=null):_0x38671b[_0x34b5ee]&&_0x15e048&&_0x38671b[_0x34b5ee]['userId']!==_0x378ae2&&(_0x38671b[_0x34b5ee]['end']=_0x4880e6,_0x199096&&_0x199096['userId']===_0x38671b[_0x34b5ee]['userId']||_0x5d2da7(_0x38671b[_0x34b5ee]),_0x38671b[_0x34b5ee]={'start':_0x4880e6,'tapeItem':_0x1d7d56[_0x38143f],'userId':_0x378ae2,'type':_0x34b5ee}),_0x38671b[_0x34b5ee]&&_0x10fb0e&&('elementStart'!==_0x1d7d56[_0x38143f]['type']||_0x199096&&_0x199096['userId']===_0x378ae2||_0x54879c[_0x34b5ee]['unshift']({'userId':_0x378ae2,'object':_0x1d7d56[_0x38143f]['item'],'change':_0x38671b[_0x34b5ee]}),'elementEnd'===_0x1d7d56[_0x38143f]['type']&&_0x199096&&_0x199096['object']===_0x1d7d56[_0x38143f]['item']&&(_0x54879c[_0x34b5ee]['shift'](),_0x38671b[_0x34b5ee]=_0x199096['change'])),_0x38671b[_0x34b5ee]&&_0x3aa94b&&(_0x38671b[_0x34b5ee]['end']=_0x351267,_0x5d2da7(_0x38671b[_0x34b5ee]),_0x38671b[_0x34b5ee]=null);}function _0x5d2da7({start:_0x37ecf9,end:_0x1372ce,tapeItem:_0x430f56,userId:_0x43931d,type:_0x150466}){const _0x5deeea=_0x430f56['item'],_0x1693d6=_0x5c8e94['schema']['isBlock'](_0x5deeea)&&!_0x5c8e94['schema']['isLimit'](_0x5deeea),_0x2782bd=_0x37ecf9['nodeAfter']==_0x1372ce['parent']&&_0x1372ce['isAtStart'];if(_0x1693d6&&_0x2782bd)return;const _0x435b34=_0x5c8e94['createRange'](_0x37ecf9,_0x1372ce),_0x6f66f1=_0x45b54b['get'](_0x43931d),_0x51c360=new r({'author':_0x6f66f1,'type':'isAdded'==_0x150466||'isAddSuggestion'==_0x150466?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x150466||'isRemoveSuggestion'==_0x150466},'createdAt':new Date(),'rootName':_0x1250e0});_0x4a6b93['push'](_0x51c360),_0x1f683f['markers']['set']('revision:'+_0x51c360['id'],_0x435b34);}function _0x7ebeaf(_0x51a868,_0x99144){const _0x3b9e08=_0x51a868['getAttributes'](),_0x157cd1=_0x99144['getAttributes']();for(const _0x22c57d of _0x3b9e08){if(_0x22c57d[0x1]!==_0x99144['getAttribute'](_0x22c57d[0x0]))return!0x1;_0x157cd1['next']();}return _0x157cd1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4f829c=>{const _0x28c590=_0x4f829c['markerName']['split'](':')[0x1],_0x1140f7=this['_getChangeFromId'](_0x28c590);if(!_0x1140f7)return null;const _0x32537f='add'==_0x1140f7['type']?'insertion':'deletion',_0x557907=['ck-suggestion-marker','ck-suggestion-marker-'+_0x32537f];return _0x1140f7['data']['isSuggestion']&&_0x557907['push']('ck-suggestion-marker-'+_0x32537f+'-new'),this['activeChange']==_0x1140f7&&_0x557907['push']('ck-suggestion-marker--active'),{'classes':_0x557907,'attributes':{'data-change-id':_0x28c590}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x399043=>{_0x399043['on']('element:pre',(_0x54fe66,_0x2eb8c1,_0x31411d)=>{const _0xea6594=_0x2eb8c1['viewItem']['getChild'](0x0);if(!_0xea6594||!_0xea6594['is']('element','code'))return;if(!_0x31411d['consumable']['consume'](_0xea6594,{'attributes':['vid_start','vid_end']}))return;const _0x56fff7=_0x2eb8c1['modelRange']['start']['nodeAfter'];_0x31411d['writer']['setAttribute']('vid_start',_0xea6594['getAttribute']('vid_start'),_0x56fff7),_0x31411d['writer']['setAttribute']('vid_end',_0xea6594['getAttribute']('vid_end'),_0x56fff7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2be6c1=>{_0x2be6c1['on']('element',(_0x722681,_0x472adc,_0x397f01)=>{if(!_0x397f01['consumable']['consume'](_0x472adc['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x472adc['modelRange']['isCollapsed'])return;const _0x3051b6=_0x472adc['modelRange']['start']['nodeAfter'];_0x3051b6['hasAttribute']('vid_start')||_0x3051b6['hasAttribute']('vid')||(_0x397f01['writer']['setAttribute']('vid_start',_0x472adc['viewItem']['getAttribute']('vid_start'),_0x3051b6),_0x397f01['writer']['setAttribute']('vid_end',_0x472adc['viewItem']['getAttribute']('vid_end'),_0x3051b6));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x563ddd=>_0x563ddd['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xb30c7b,[,_0x2219de])=>{['vid_start','vid_end','vid']['includes'](_0x2219de)&&(_0xb30c7b['return']=!0x0,_0xb30c7b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xe28873=>{_0xe28873['on']('attribute:vid',(_0x17cdbd,_0x399c8b,_0x56b516)=>{if('\x20'!=_0x399c8b['item']['data']||_0x399c8b['item']['parent']['maxOffset']>0x1)return;if(!_0x56b516['consumable']['consume'](_0x399c8b['item'],_0x17cdbd['name']))return;const _0x3fae1b=_0x56b516['writer'],_0x410402=_0x56b516['mapper']['toViewRange'](_0x399c8b['range']);_0x3fae1b['wrap'](_0x410402,_0x3fae1b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x229b65){const _0x15bad5=_0x229b65['plugins']['get']('RevisionViewer');return(_0xb62b5f,_0x153565,_0x1f1b85)=>{const _0x275e69=_0x153565['markerName']['split'](':')[0x1],_0x245dc3=_0x15bad5['_getChangeFromId'](_0x275e69);if(!_0x245dc3)return null;const _0x4534c0='add'==_0x245dc3['type']?'split':'merge';if(!_0x1f1b85['consumable']['test'](_0x153565['markerRange'],_0xb62b5f['name']))return;const _0x183de1=_0x153565['markerRange']['getWalker'](),_0x24c9d1=_0x153565['markerRange']['start'],_0x1b5c5c=_0x229b65['model']['schema'];let _0x556eb7=null,_0x5d37a4=null,_0x7442fc=!0x1,_0x377e61=!0x1;for(const _0x13f42d of _0x183de1){const _0x6a30c4=_0x13f42d['item'];_0x7442fc=_0x7442fc||_0x1b5c5c['isContent'](_0x6a30c4);const _0x289290=_0x1f1b85['mapper']['toViewElement'](_0x6a30c4);if(_0x289290&&_0x289290['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13f42d['type']&&(_0x1b5c5c['isBlock'](_0x6a30c4)&&!_0x1b5c5c['isLimit'](_0x6a30c4)&&(_0x6a30c4['nextSibling']||_0x24c9d1['isAtEnd']?_0x556eb7&&_0x556eb7['parent']==_0x6a30c4||(_0x556eb7=_0x6a30c4,_0x2793e1(_0x13f42d['previousPosition']),_0x377e61=!0x0):_0x5d37a4=_0x5d37a4||_0x13f42d['previousPosition']));}function _0x2793e1(_0x466e1f){const _0x116ff9=_0x1f1b85['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4534c0}),_0x229c95=_0x1f1b85['mapper']['toViewPosition'](_0x466e1f);_0x245dc3['data']['isSuggestion']&&_0x1f1b85['writer']['addClass']('ck-suggestion-marker-'+_0x4534c0+'-new',_0x116ff9),_0x15bad5['activeChange']==_0x245dc3&&_0x1f1b85['writer']['addClass']('ck-suggestion-marker--active',_0x116ff9),_0x1f1b85['writer']['insert'](_0x229c95,_0x116ff9),_0x1f1b85['mapper']['bindElementToMarker'](_0x116ff9,_0x153565['markerName']);}_0x7442fc||_0x377e61||!_0x5d37a4||_0x2793e1(_0x5d37a4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x25fefe,_0x321633,_0xc966b8)=>{const _0x446f55=_0xc966b8['mapper']['markerNameToElements'](_0x321633['markerName']);if(_0x446f55){for(const _0x547e6e of _0x446f55)(_0x547e6e['hasClass']('ck-suggestion-marker-split')||_0x547e6e['hasClass']('ck-suggestion-marker-merge'))&&(_0xc966b8['mapper']['unbindElementFromMarkerName'](_0x547e6e,_0x321633['markerName']),_0xc966b8['writer']['remove'](_0x547e6e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x230541,_0x86408e,_0x538e55)=>{const _0x4d3988=_0x86408e['markerName']['split'](':')[0x1],_0x1050f7=this['_getChangeFromId'](_0x4d3988);if(!_0x1050f7)return null;const _0x5343bb='add'==_0x1050f7['type']?'split':'merge';if(_0x538e55['consumable']['test'](_0x86408e['markerRange'],_0x230541['name']))for(const _0x384e19 of _0x86408e['markerRange']['getItems']()){if(!_0x384e19['is']('element','softBreak'))continue;const _0x2e03ea=_0x538e55['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5343bb}),_0x1bf726=_0x538e55['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x384e19));_0x1050f7['data']['isSuggestion']&&_0x538e55['writer']['addClass']('ck-suggestion-marker-'+_0x5343bb+'-new',_0x2e03ea),this['activeChange']==_0x1050f7&&_0x538e55['writer']['addClass']('ck-suggestion-marker--active',_0x2e03ea),_0x538e55['writer']['insert'](_0x1bf726,_0x2e03ea),_0x538e55['mapper']['bindElementToMarker'](_0x2e03ea,_0x86408e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4381bc=>{for(const _0x2a125b of this['editor']['model']['document']['getRootNames']()){const _0x1409ef=this['editor']['model']['document']['getRoot'](_0x2a125b),_0x296c7d=this['editor']['editing']['view']['document']['getRoot'](_0x2a125b);if(_0x296c7d){const _0x1e6639=_0x1409ef['getAttribute']('revisionHistoryAttachChange');if(_0x4381bc['removeAttribute']('data-change-id',_0x296c7d),_0x4381bc['removeClass']('ck-revision-history-root-add',_0x296c7d),_0x4381bc['removeClass']('ck-revision-history-root-remove',_0x296c7d),_0x4381bc['removeClass']('ck-revision-history-root--active',_0x296c7d),_0x1e6639){const _0x43349d=this['_getChangeFromId'](_0x1e6639);if(!_0x43349d)return null;_0x4381bc['setAttribute']('data-change-id',_0x1e6639,_0x296c7d),_0x4381bc['addClass']('ck-revision-history-root-'+_0x43349d['type'],_0x296c7d),this['activeChange']==_0x43349d&&_0x4381bc['addClass']('ck-revision-history-root--active',_0x296c7d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xf39df4=>'revision-comment:'+_0xf39df4,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x403d85=>'revision-suggestion:'+_0x403d85,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x311322=>({'name':'suggestion:'+_0x311322,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x403eac=>{const _0x38269d=_0x403eac['markerName']['split'](':')[0x1];return'insertion'!=_0x38269d&&'deletion'!=_0x38269d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x38269d]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1cdbdc,_0x5e9026,_0x39197e)=>{const _0x13c838=_0x39197e['mapper']['markerNameToElements'](_0x5e9026['markerName']);if(_0x13c838){for(const _0x522ef6 of _0x13c838)_0x522ef6['is']('uiElement')&&(_0x39197e['mapper']['unbindElementFromMarkerName'](_0x522ef6,_0x5e9026['markerName']),_0x39197e['writer']['remove'](_0x522ef6));}},{'priority':'high'});}['_getChangeFromId'](_0xda4271){return this['_changeIdToChange']['get'](_0xda4271);}['_getViewForChange'](_0x3d73ec){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x3d73ec),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x81ec74,_0x149367,_0x5811ea,_0x127f4d)=>{_0x127f4d&&this['_balloon']['remove'](_0x127f4d),_0x5811ea&&(this['_balloon']['add']({'view':_0x5811ea,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x12cbea=this['editor']['editing'],_0x4b0828=this['_getChangeFromId'](_0x5811ea['changeId']);let _0x1fc504;if(_0x4b0828['data']['isOnRoot']){const _0x1b329b=_0x12cbea['view']['getDomRoot'](_0x4b0828['rootName']);_0x1fc504=Array['from'](_0x1b329b['getClientRects']());}else{const _0xcc2944=this['editor']['model']['markers']['get']('revision:'+_0x5811ea['changeId']);_0x1fc504=Array['from'](_0x12cbea['mapper']['markerNameToElements'](_0xcc2944['name']))['map'](_0x34b8ff=>_0x12cbea['view']['domConverter']['mapViewToDom'](_0x34b8ff))['map'](_0x3300a4=>Array['from'](_0x3300a4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1fc504[0x0];return _0x1fc504['find'](_0x4a233d=>_0x4a233d['top']-0x3<=this['_activeViewTarget']['y']&&_0x4a233d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4a233d['left']-0x3<=this['_activeViewTarget']['x']&&_0x4a233d['right']+0x3>=this['_activeViewTarget']['x'])||_0x1fc504[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x59762f,_0x2236ca,_0x3fac1f,_0x35bbdf)=>{this['activeView']=_0x3fac1f?this['_getViewForChange'](_0x3fac1f):null,this['editor']['model']['change'](()=>{const _0x30ac13=this['editor']['editing'];_0x35bbdf&&(_0x35bbdf['data']['isOnRoot']?_0x30ac13['view']['change'](_0x4da12f=>{_0x4da12f['removeClass']('ck-revision-history-root--active',_0x30ac13['view']['document']['getRoot'](_0x35bbdf['rootName']));}):_0x30ac13['reconvertMarker']('revision:'+_0x35bbdf['id'])),_0x3fac1f&&(_0x3fac1f['data']['isOnRoot']?_0x30ac13['view']['change'](_0x1e2b57=>{_0x1e2b57['addClass']('ck-revision-history-root--active',_0x30ac13['view']['document']['getRoot'](_0x3fac1f['rootName']));}):_0x30ac13['reconvertMarker']('revision:'+_0x3fac1f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1a0a65,_0x394f66)=>{if(this['activeChange'])return;const _0x5038d6=this['_findChangeIdFromDomTarget'](_0x394f66['target']),_0x53829f=this['_changeIdToChange']['get'](_0x5038d6);_0x53829f?(this['_activeViewTarget']={'x':_0x394f66['domEvent']['x'],'y':_0x394f66['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x53829f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3dc1cc,_0x1b52b4)=>{const _0x3b3369=this['_findChangeIdFromDomTarget'](_0x1b52b4['target']),_0x890700=this['_changeIdToChange']['get'](_0x3b3369);_0x890700?(this['_activeViewTarget']={'x':_0x1b52b4['domEvent']['x'],'y':_0x1b52b4['domEvent']['y']},_0x890700===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x890700):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x59aefb){do{const _0x21c320=_0x59aefb['getAttribute']('data-change-id');if(_0x21c320)return _0x21c320;_0x59aefb=_0x59aefb['parent'];}while(_0x59aefb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x342545=>{for(const _0x43b954 of this['editor']['model']['markers'])_0x342545['removeMarker'](_0x43b954);});}}function X(_0x50ac13,_0x412299){return(_0x174adb,_0x7df3e,_0x419ee2)=>{if(!_0x419ee2['consumable']['test'](_0x7df3e['markerRange'],_0x174adb['name']))return;const _0xe71342=_0x7df3e['markerRange']['getWalker'](),_0x300568=_0x7df3e['markerRange']['start'],_0x3135a0=_0x50ac13['model']['schema'];let _0x2f5759=null,_0x5aa7ad=null,_0x634fd9=!0x1,_0x3d84f4=!0x1;for(const _0x3bdc70 of _0xe71342){const _0x1c3df7=_0x3bdc70['item'];_0x634fd9=_0x634fd9||_0x3135a0['isContent'](_0x1c3df7);const _0x37e223=_0x419ee2['mapper']['toViewElement'](_0x1c3df7);if(_0x37e223&&_0x37e223['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3bdc70['type']&&(_0x3135a0['isBlock'](_0x1c3df7)&&!_0x3135a0['isLimit'](_0x1c3df7)&&(_0x1c3df7['nextSibling']||_0x300568['isAtEnd']?_0x2f5759&&_0x2f5759['parent']==_0x1c3df7||(_0x2f5759=_0x1c3df7,_0x2977e3(_0x3bdc70['previousPosition']),_0x3d84f4=!0x0):_0x5aa7ad=_0x5aa7ad||_0x3bdc70['previousPosition']));}function _0x2977e3(_0x567dff){const _0x4825e3=_0x419ee2['mapper']['toViewPosition'](_0x567dff),_0x42e727=_0x419ee2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x412299});_0x419ee2['writer']['insert'](_0x4825e3,_0x42e727),_0x419ee2['mapper']['bindElementToMarker'](_0x42e727,_0x7df3e['markerName']);}_0x634fd9||_0x3d84f4||!_0x5aa7ad||_0x2977e3(_0x5aa7ad);};}class mt extends _0x1cb13e{constructor(_0x583c56){super(_0x583c56);const _0x21728b=_0x583c56['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x21728b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x21728b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4f5e9a=this['editor'],_0x5c7332=_0x4f5e9a['plugins']['get'](m),_0x44cd4b=_0x5c7332['isReady']?_0x5c7332['diff']['newRevisionId']:null;_0x4f5e9a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x44cd4b);}['refresh'](){const {isReady:_0x5c194f,isEnabled:_0xb9ceb3,repository:_0x2c97e5,diff:_0xbacc0c}=this['editor']['plugins']['get'](m),_0x4ca3aa=_0xbacc0c&&_0x2c97e5['getLaterVisibleRevision'](_0xbacc0c['newRevisionId']);this['isEnabled']=_0x5c194f&&_0xb9ceb3&&Boolean(_0x4ca3aa);}}class wt extends _0x1cb13e{['_step'];constructor(_0x4da8c6,{direction:_0x2dc13b}){super(_0x4da8c6);const _0x43e7c3=_0x4da8c6['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2dc13b?0x1:-0x1,this['listenTo'](_0x43e7c3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x43e7c3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x43e7c3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1c0665=this['editor'],_0x1e2b34=_0x1c0665['plugins']['get'](m),{isNavigationMode:_0x1616cb,currentChangeNumber:_0x153d4e}=_0x1e2b34;let _0x354bd1;if(_0x1e2b34['activeChange']=_0x1616cb?_0x1e2b34['diff']['changes']['get'](_0x153d4e+this['_step']):_0x1e2b34['diff']['changes']['first'],_0x1e2b34['activeChange']['data']['isOnRoot'])_0x354bd1=_0x1c0665['editing']['view']['getDomRoot'](_0x1e2b34['activeChange']['rootName']);else{const _0x12d69c=_0x1c0665['model']['markers']['get']('revision:'+_0x1e2b34['activeChange']['id']);_0x354bd1=_0x7319fc(_0x1c0665['editing'],_0x12d69c);}_0x9057d1({'target':_0x354bd1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3a1ad9,currentChangeNumber:_0x5c6f25,numberOfChanges:_0x51d944,isReady:_0x461058,isEnabled:_0xd5e7ea}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0xd5e7ea&&_0x461058&&_0x51d944)&&(!_0x3a1ad9||(0x1===this['_step']?_0x5c6f25<_0x51d944-0x1:_0x5c6f25>0x0));}}class _i extends ts{constructor(_0x56bcd8){super(_0x56bcd8);const _0x4c7190=this['bindTemplate'],_0x461da0=new te(_0x56bcd8),_0x258200=new te(_0x56bcd8);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',(_0x2272c8,_0x505aef)=>_0x2272c8&&_0x505aef>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x46628f,_0x3da2c6,_0xe88046,_0x33d714)=>{if(!_0x46628f)return g(_0x56bcd8,'Loading...');if(!_0xe88046)return g(_0x56bcd8,'No\x20changes');const _0x51ae0c=g(_0x56bcd8,'NUMBER_OF_CHANGES',_0xe88046);return _0x33d714?g(_0x56bcd8,'X_OF_Y_CHANGES',[_0x3da2c6+0x1,_0xe88046]):_0x51ae0c;}),_0x461da0['set']({'label':g(_0x56bcd8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x76a13d}),_0x258200['set']({'label':g(_0x56bcd8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x58725d}),_0x461da0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x258200['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x461da0['on']('execute',()=>this['fire']('execute','backward')),_0x258200['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',_0x4c7190['if']('_isStatusLabelVisible','ck-hidden',_0x3c03c1=>!_0x3c03c1)]},'children':[{'text':_0x4c7190['to']('isNavigationMode',_0x443212=>_0x443212?g(_0x56bcd8,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x56bcd8,'Total')+':\x20')}]},{'text':_0x4c7190['to']('_statusText')}]},new _0xded5e5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x461da0,_0x258200]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0xe250eb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xdf01d=this['editor']['editing']['view'];_0xdf01d['change'](_0x383d6d=>{for(const _0x456661 of _0xdf01d['document']['roots'])_0x383d6d['addClass'](le,_0x456661);});}['hide'](){const _0x280a7b=this['editor']['editing']['view'];_0x280a7b['change'](_0x5d8df8=>{for(const _0x43e0df of _0x280a7b['document']['roots'])_0x5d8df8['removeClass'](le,_0x43e0df);});}}class R extends _0xe250eb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x22ad90=this['editor'],_0x2d40e8=_0x22ad90['plugins']['get'](m),_0xf1773d=_0x22ad90['plugins']['get'](ge);_0x22ad90['ui']['componentFactory']['add']('exitToEditing',_0x401e16=>{const _0x3b4c1f=new te(_0x401e16);return _0x3b4c1f['set']({'label':g(_0x401e16,'Back\x20to\x20editing'),'icon':_0x4ded01,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3b4c1f,'execute',()=>{_0x22ad90['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3b4c1f;}),_0x22ad90['ui']['componentFactory']['add']('restoreRevision',_0x2f8f3c=>{const _0x348503=new te(_0x2f8f3c);return _0x348503['set']({'label':g(_0x2f8f3c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x348503['bind']('isEnabled')['to'](_0x22ad90['commands']['get']('restoreRevision')),this['listenTo'](_0x348503,'execute',()=>_0x22ad90['execute']('restoreRevision')),_0x348503;}),_0x22ad90['ui']['componentFactory']['add']('changesNavigation',_0x52e9f5=>{const _0x5d00c=new _i(_0x52e9f5),_0x137c5f=_0x22ad90['commands']['get']('showPreviousChange'),_0x4a8033=_0x22ad90['commands']['get']('showNextChange');return _0x5d00c['bind']('isBackwardNavigationEnabled')['to'](_0x137c5f,'isEnabled'),_0x5d00c['bind']('isForwardNavigationEnabled')['to'](_0x4a8033,'isEnabled'),_0x5d00c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2d40e8),this['listenTo'](_0x5d00c,'execute',(_0x2b3657,_0x30f8f5)=>{_0x22ad90['execute']('forward'===_0x30f8f5?'showNextChange':'showPreviousChange');}),_0x5d00c;}),_0xf1773d['show'](),_0x2d40e8['on']('change:isReady',(_0x474875,_0x28d0aa,_0x26b2fb)=>{_0x26b2fb?_0xf1773d['hide']():_0xf1773d['show']();});}}class at extends _0xc3e9c9{['_resizeObserver']=null;constructor(_0x3afbfd,_0x8f4fb3){super(_0x3afbfd,_0x8f4fb3);const _0x1fa90d=this['bindTemplate'];this['set']({'label':g(_0x3afbfd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x3afbfd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1fa90d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2910a2=this['fieldView']['element'];this['_tooltipString']=_0x2910a2['scrollWidth']>_0x2910a2['clientWidth']&&_0x2910a2['value']||'';}}class si extends ts{constructor(_0x3e0f69,_0x1faaab,_0x356103){super(_0x3e0f69);const _0x382e73=new _0x15c303();_0x382e73['set']({'content':_0x533b54,'viewBox':'0\x200\x2011\x2010'});const _0x19089d=['ck','ck-revision-history-sidebar__revision-author'];_0x356103&&_0x19089d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x502603=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x3e0f69,_0x356103?'Revision\x20creator':'Revision\x20author')},'children':[_0x382e73,_0x1faaab['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x19089d},'children':_0x502603});}}function oi(_0x849448,_0x7c3c8){const _0x4121bf=_0x849448['bindTemplate'],_0x284a6e=_0x849448['locale'],_0x499dfe=_0x1e3b6e(_0x284a6e);_0x499dfe['panelPosition']='sw';const _0x20fa5e=function(_0x50f46d,_0x46f520){const _0x42ba74=function(_0x4f62ef,_0x90997b){const _0x5967e4=_0x4f62ef['locale'],_0x50451e={'Compare\x20against\x20selected':g(_0x5967e4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x5967e4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x5967e4,'Restore\x20this\x20revision')};return _0x90997b['map'](_0x269af5=>{const _0x238af6=_0x50451e[_0x269af5['name']];return _0x238af6&&_0x238af6!==_0x269af5['name']&&(_0x269af5['name']=_0x238af6),_0x269af5;});}(_0x50f46d,_0x46f520),_0x475f76=new _0x5a3b28();for(const _0x422b41 of _0x42ba74){const _0x170082={'type':'button','model':new to({'label':_0x422b41['name'],'class':_0x422b41['class'],'withText':!0x0,'role':'menuitem','_action':_0x422b41['action']})};_0x170082['model']['bind']('isEnabled')['to'](_0x50f46d,'isActionsDropdownOpen',_0x57a2c4=>'function'!=typeof _0x422b41['isEnabled']||(!_0x57a2c4||_0x422b41['isEnabled'](_0x50f46d))),_0x475f76['add'](_0x170082);}return _0x475f76;}(_0x849448,_0x7c3c8);return _0x849448['bind']('isActionsDropdownOpen')['to'](_0x499dfe,'isOpen'),_0x499dfe['buttonView']['set']({'label':g(_0x284a6e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4ffc27}),_0x499dfe['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4121bf['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4121bf['to'](_0x2d1a02=>_0x2d1a02['stopPropagation']())}}),_0x499dfe['on']('execute',_0x432c67=>{_0x849448['isReady']&&'function'==typeof _0x432c67['source']['_action']&&_0x432c67['source']['_action'](_0x849448);}),_0x3a54c1(_0x499dfe,_0x20fa5e,{'role':'menu'}),_0x499dfe['listenTo'](_0x849448,'change:isActionsDropdownOpen',(_0x362196,_0x25daba,_0x15a0b7)=>{if(_0x15a0b7)for(const _0x895cf3 of _0x499dfe['listView']['items']){const _0x17d703=_0x895cf3['children']['first'],_0x43a5d3=_0x7c3c8['find'](_0x28da01=>_0x28da01['action']===_0x17d703['_action'])['isVisible'];_0x895cf3['isVisible']=void 0x0===_0x43a5d3||_0x43a5d3(_0x849448);}}),_0x499dfe;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4d71bc,_0xf126d7,_0x1d85b,_0x26d6ed){super(_0x4d71bc);const _0x2ec2e7=this['bindTemplate'],_0x5f3b2c=function(_0x1e8f59,_0xc014c8){const _0x3395ea=Array['from'](_0xc014c8['authors'])['filter'](_0x359417=>_0x359417!=_0xc014c8['creator']);return _0xc014c8['creator']&&_0x3395ea['unshift'](_0xc014c8['creator']),_0x3395ea['map'](_0x113160=>new si(_0x1e8f59,_0x113160,_0x113160==_0xc014c8['creator']));}(_0x4d71bc,_0xf126d7);this['id']=_0xf126d7['id'],this['_revision']=_0xf126d7,this['_requireRevisionName']=_0x26d6ed,this['bind']('name','createdAt')['to'](_0xf126d7),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5f2b98=>{return _0x1a18fc=_0x4d71bc['uiLanguage'],(_0x31b2c9=_0x5f2b98)['toLocaleDateString'](_0x1a18fc,{'month':'long','day':'numeric'})+',\x20'+_0x31b2c9['toLocaleTimeString'](_0x1a18fc,{'hour':'numeric','minute':'numeric'});var _0x1a18fc,_0x31b2c9;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x4d71bc,_0x27d9e4),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x57187e=>_0x57187e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x37c617,_0x1bce03)=>_0x37c617&&_0x1bce03),this['revisionActionsView']=_0x1d85b&&_0x1d85b['length']?oi(this,_0x1d85b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2ec2e7['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2ec2e7['if']('isEnabled','ck-disabled',_0x478f74=>!_0x478f74),_0x2ec2e7['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2ec2e7['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2ec2e7['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':_0x2ec2e7['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':_0x5f3b2c}]},this['revisionActionsView']],'on':{'click':_0x2ec2e7['to'](_0x4171cd=>{_0x4171cd['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x17e0b6=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x17e0b6,'change',()=>{this['_requireRevisionName']&&!_0x17e0b6['value']||this['fire']('setName',{'id':this['id'],'name':_0x17e0b6['value']}),_0x17e0b6['value']||(_0x17e0b6['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x411e67,_0x2b3bd1){const _0x2e6294=_0x21d86c['fromJSDate'](_0x411e67)['setLocale'](_0x2b3bd1),_0x55c726=_0x21d86c['local'](),_0x3eb84c=_0x55c726['minus']({'days':0x1})['startOf']('day');let _0x27d3e7,_0x2382a9;return _0x2e6294['hasSame'](_0x55c726,'day')?(_0x27d3e7=_0x2e6294['startOf']('day')['toJSDate'](),_0x2382a9=_0x2e6294['toRelativeCalendar']()):_0x2e6294['hasSame'](_0x3eb84c,'day')?(_0x27d3e7=_0x3eb84c['toJSDate'](),_0x2382a9=_0x2e6294['toRelativeCalendar']()):_0x2e6294['hasSame'](_0x55c726,'week')?(_0x27d3e7=_0x2e6294['startOf']('week')['toJSDate'](),_0x2382a9=_0x2e6294['weekdayLong']||''):_0x2e6294['hasSame'](_0x55c726,'year')?(_0x27d3e7=_0x2e6294['startOf']('month')['toJSDate'](),_0x2382a9=_0x2e6294['monthLong']||''):(_0x27d3e7=_0x2e6294['startOf']('year')['toJSDate'](),_0x2382a9=String(_0x2e6294['year'])),{'startDate':_0x27d3e7,'localizedPeriodName':_0x2382a9};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x141226,_0x49b462,_0x2806b8,_0x220cdb){super(_0x141226);const _0x3e2e07=ai(_0x49b462,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x49b462,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2806b8,this['_requireRevisionName']=_0x220cdb,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':_0x3e2e07}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x48c657){const _0x41347d=new hi(this['locale'],_0x48c657,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x41347d);}['removeRevision'](_0x4c9231){const _0x3de580=this['revisionViews']['find'](_0x57dafb=>_0x57dafb['id']===_0x4c9231['id']);this['revisionViews']['remove'](_0x3de580);}}class as extends ts{constructor(_0x3dc9ef){super(_0x3dc9ef);const _0x3d3fd5=new _0x15c303();_0x3d3fd5['content']=_0x4a7a20,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3d3fd5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x3dc9ef,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2f6610,_0x49dbe1,_0x2ff97a,_0x430d9f){super(_0x2f6610);const _0x40cacf=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x49dbe1,this['_revisionActions']=_0x2ff97a,this['_requireRevisionName']=_0x430d9f,this['on']('select',(_0x288c41,_0x3f6dc9)=>{this['fire']('revisionSelected',_0x3f6dc9);}),this['on']('setName',(_0x1a30c2,_0x2baa33)=>{this['fire']('revisionSetName',_0x2baa33);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2f6610),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x40cacf['if']('isEnabled','ck-disabled',_0x74a49e=>!_0x74a49e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1df602 of this['_revisions'])this['_addRevision'](_0x1df602);this['_revisions']['on']('add',(_0x42d42e,_0x4fd335)=>{this['_addRevision'](_0x4fd335);}),this['_revisions']['on']('remove',(_0xabd33c,_0x1f7cb3)=>{this['_removeRevision'](_0x1f7cb3);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2d83c1=>_0x2d83c1['revisionViews']['map'](_0x50aac9=>_0x50aac9))['flat']();}['selectRevision'](_0x314764){for(const _0x30ad9d of this['revisionViews'])_0x314764&&_0x314764['id']===_0x30ad9d['id']?_0x30ad9d['select']():_0x30ad9d['deselect']();}['highlightRevisions'](_0x48a1e7){for(const _0x50b413 of this['revisionViews'])_0x48a1e7['some'](({id:_0x1cae82})=>_0x1cae82===_0x50b413['id'])?_0x50b413['highlight']():_0x50b413['unhighlight']();}['_addRevision'](_0xcada18){const _0xf79cc0=ai(_0xcada18['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x52c9fd=this['timePeriodViews']['get'](0x0);_0x52c9fd&&_0x52c9fd['startDate']['getTime']()===_0xf79cc0['getTime']()||(_0x52c9fd=new di(this['locale'],_0xf79cc0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x52c9fd)),_0x52c9fd['addRevision'](_0xcada18);}['_removeRevision'](_0x42004b){const _0x4b56b5=ai(_0x42004b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4b56b5)['removeRevision'](_0x42004b);}['_getTimePeriodViewByStartDate'](_0x3645f2){return this['timePeriodViews']['find'](_0x3485c9=>_0x3485c9['startDate']['getTime']()===_0x3645f2['getTime']());}}class d extends _0xe250eb{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x435b00){super(_0x435b00),this['_revisionViewer']=_0x435b00['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x37b1b2=this['_revisionsRepository']['_revisions'],_0x5a6f78=this['_createRevisionActions'](),_0x530eda=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x37b1b2,_0x5a6f78,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',(_0x2cacdf,_0x322724)=>{_0x322724['revisionViews']['on']('add',(_0x2b8dd3,_0xe7a84e)=>{_0xe7a84e['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)),_0x530eda['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x166199=this['_revisionsRepository']['getRevision'](0x0);if(_0x166199){const _0xbe8e8e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x166199['id']);this['_revisionViewer']['compare'](_0x166199,_0xbe8e8e);}}['_handleRevisionSelected'](_0x34a903,_0x126591){const _0x57d16e=this['_revisionsRepository']['getRevision'](_0x126591['id']),_0x521159=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x57d16e['id']);this['_revisionViewer']['compare'](_0x57d16e,_0x521159);}['_handleRevisionSetName'](_0xcf5dad,_0x35661a){this['_revisionsRepository']['getRevision'](_0x35661a['id'])['setName'](_0x35661a['name']);}['_handleDiffChange'](_0x391237,_0x162422,_0x1dd982){const _0x4de6d7=this['_revisionsRepository']['getRevisionsInDiff'](_0x1dd982);_0x4de6d7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4de6d7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4de6d7[0x0]));}['_createRevisionActions'](){const _0x10ef0e=this['editor'],_0xddadd2=d['availableRevisionActions'],_0x2b5cb2=_0x10ef0e['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x2b5cb2['length'])return _0x2b5cb2['map'](_0x17b0fd=>{const _0x4f0cd6='string'==typeof _0x17b0fd?Object['assign']({},_0xddadd2[_0x17b0fd]):_0x17b0fd;return _0x4f0cd6['action']=_0x4f0cd6['action']['bind'](this,_0x10ef0e),_0x4f0cd6['isVisible']&&(_0x4f0cd6['isVisible']=_0x4f0cd6['isVisible']['bind'](this,_0x10ef0e)),_0x4f0cd6;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4bda28},_0x172c37)=>{const _0x52e04d=_0x4bda28['get'](m),_0x7ab5f9=_0x52e04d['repository'];let _0x40688f=_0x52e04d['diff']['newRevisionId'],_0x3fd429=_0x172c37['id'];_0x7ab5f9['getIndex'](_0x40688f)>_0x7ab5f9['getIndex'](_0x3fd429)&&([_0x40688f,_0x3fd429]=[_0x3fd429,_0x40688f]),_0x52e04d['compare'](_0x40688f,_0x3fd429);},'isVisible':({plugins:_0x5ec947},_0x59f62a)=>{const _0x441c6c=_0x5ec947['get'](m);return!(_0x441c6c['repository']['getRevisionsInDiff'](_0x441c6c['diff'])['length']>0x2)&&!_0x59f62a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x503599,{id:_0xc462fc})=>{_0x503599['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xc462fc);},'isVisible':({plugins:_0x16fb7a},_0x34ca02)=>!!_0x16fb7a['get'](m)['repository']['getLaterVisibleRevision'](_0x34ca02['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x15e22a},{id:_0x1c4d34,revisionNameView:_0x1abbd7})=>{const _0x2b1c4d=_0x15e22a['get'](m),_0x2692f7=_0x2b1c4d['repository']['getEarlierVisibleRevision'](_0x1c4d34);_0x2b1c4d['compare'](_0x1c4d34,_0x2692f7),_0x1abbd7['focus'](),_0x1abbd7['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3a3f3c,_0x5f1c10){super(_0x3a3f3c),this['_view']=_0x5f1c10,this['_toolbarConfig']=et(_0x3a3f3c['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x30b508){const _0x177eb7=this['editor'],_0x3ac973=this['view'],_0x317ba7=_0x177eb7['editing']['view'],_0x4bcb43=_0x3ac973['editable'],_0x148f69=_0x317ba7['document']['getRoot']();_0x4bcb43['name']=_0x148f69['rootName'],_0x3ac973['render']();const _0x9f7c4f=_0x4bcb43['element'];this['setEditableElement'](_0x4bcb43['name'],_0x9f7c4f),_0x3ac973['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x317ba7['attachDomRoot'](_0x9f7c4f),this['_elementReplacer']['replace'](_0x30b508,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x30e05c=this['view'],_0x5dc84d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5dc84d['detachDomRoot'](_0x30e05c['editable']['name']),_0x30e05c['destroy']();}['_initToolbar'](){const _0x863df6=this['view'];_0x863df6['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x863df6['stickyPanel']['limiterElement']=_0x863df6['element'],_0x863df6['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5975ac})=>_0x5975ac),_0x863df6['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x863df6['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x39b605,_0x4e2171,_0x292a65={}){super(_0x39b605),this['stickyPanel']=new ht(_0x39b605),this['toolbar']=new dt(_0x39b605,{'shouldGroupWhenFull':_0x292a65['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x39b605,_0x4e2171);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- _0x40fadd(_0x1ed093){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x16ede7,_0x1ce30c){super(_0x1ce30c),this['sourceElement']=_0x16ede7,this['model']['document']['createRoot']();const _0x55f170=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x55f170);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x562f6a,_0x31a075){const _0x945306=new this(_0x562f6a,_0x31a075);return await _0x945306['initPlugins'](),await _0x945306['ui']['init'](_0x562f6a),await _0x945306['data']['init'](_0x945306['config']['get']('initialData')||''),_0x945306['fire']('ready'),_0x945306;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x156834{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14cae0){function _0x3c83b9(_0x2977fd){return _0x2977fd['map'](_0xb88c1e=>String['fromCharCode'](_0xb88c1e))['join']('');}super(_0x14cae0),this['result']='end',_0x14cae0[_0x3c83b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c83b9([0x76,0x69,0x65,0x77])][_0x3c83b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c83b9([0x61,0x75,0x74,0x6f]),_0x14cae0[_0x3c83b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3c83b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c83b9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3c83b9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3c83b9([0x6f,0x6b])});}}class k extends _0x156834{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4e4d36){if(super(_0x4e4d36),!this['editor']['config']['get']('revisionHistory'))throw new _0x4cce17('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x472fd6=>this['_showRevisionViewer']({..._0x472fd6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x38bb0c=>this['_closeRevisionViewer'](_0x38bb0c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x49cd91=>this['_restoreRevision'](_0x49cd91)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x594066){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x594066;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xc76708){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xc76708);}['getRevision'](_0x317a52){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x317a52);}['getRevisions'](_0x481fe6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x481fe6||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x235454=this['editor'],_0x1de04e=_0x3e03d9(_0x235454,p),_0x4c49d0=_0x235454['plugins']['get']('RevisionTracker'),_0x157b8c=_0x235454['plugins']['get']('Users')['users'];return _0x1de04e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1de04e['lazyRoots'],(_0x1de04e['plugins']['push'](yt,m,R,class extends _0x156834{static get['requires'](){return[m,'Users'];}['init'](){const _0x7c8e61=this['editor']['plugins']['get']('Users');for(const _0x53cbde of _0x157b8c)_0x53cbde['isAnonymous']||_0x7c8e61['getUser'](_0x53cbde['id'])||_0x7c8e61['addUser'](_0x53cbde);const _0x3aeded=_0x4c49d0['repository']['getRevisions']();let _0x20ee05=null;const _0x1405e3=this['editor']['plugins']['get']('RevisionViewer');_0x1405e3['adapter']=_0x4c49d0['adapter'],_0x1405e3['bind']('isEnabled')['to'](_0x4c49d0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x235454,'isReadOnly',_0xc19d0d=>!_0xc19d0d);for(const _0x5977bb of _0x3aeded){const _0x216ae3=null===_0x5977bb['creator'];if(_0x216ae3&&_0x5977bb['toVersion']===_0x5977bb['fromVersion'])continue;const _0x1c638e=_0x5977bb['toJSON']();_0x1405e3['addRevisionData'](_0x1c638e,(_0x2f2410,_0x25091a,_0x3a80bf)=>{if(_0x216ae3){if(_0x20ee05)_0x20ee05['_update'](_0x2f2410,_0x25091a);else{if(!_0x25091a){const _0x5dc712=_0x3a80bf['toJSON']();_0x5dc712['id']=_0x32ff0a(),_0x4c49d0['saveRevision'](_0x5dc712,_0x3a80bf['toVersion'])['then'](_0x3ce270=>{_0x20ee05=_0x3ce270;});}}}else _0x5977bb['_update'](_0x2f2410,_0x25091a);});}}},d),_0x1de04e);}['_enhanceShowRevisionViewerCallback'](){const _0x302ec2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3195e3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bcf58=this['editor']['plugins']['get']('Autosave');await _0x4bcf58['save']();}else await _0x3195e3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x19ff68=this['editor']['plugins']['get']('Dialog');_0x19ff68['isOpen']&&_0x19ff68['hide']();}const _0x27b229=this['_getRevisionViewerEditorConfig']();return _0x302ec2(_0x27b229)['then'](_0x4c8bac=>{return(this['_viewerEditor']=_0x4c8bac,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'),_0x4c8bac);})['catch'](_0x3687a4=>(console['error'](_0x3687a4),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x299734=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'](),_0x299734(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xf3417d=this['editor']['plugins']['get']('Annotations');_0xf3417d['refreshVisibility'](),_0xf3417d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5668b7){const _0x528bea=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4e4ecf=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1f2742=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1f2742,_0x5668b7)['then'](_0x3d09ba=>(_0x4e4ecf['style']['display']='block',_0x528bea['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3d09ba));}['_closeRevisionViewer'](_0xb5f117){const _0x411c26=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x411c26['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0xb5f117['destroy']();}async['_restoreRevision'](_0x5efd2f){const _0x247bfa=this['editor'],_0xec6e81=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5388db=_0x247bfa['plugins']['get']('RevisionTracker'),_0xb97e14=_0x247bfa['plugins']['get']('RevisionHistoryUtils'),_0x4a8d02=_0xec6e81['repository']['getRevision'](_0x5efd2f);let _0x47efc7,_0x28efd2,_0x3d39b4;try{await _0xb97e14['loadRevisionData'](_0x4a8d02,this['adapter']),_0x47efc7=_0xb97e14['getRevisionDocumentData'](_0x4a8d02),_0x28efd2=_0xb97e14['getRevisionRootsAttributes'](_0x4a8d02);}catch(_0x56b848){return void console['error'](_0x56b848);}_0x247bfa['model']['change'](_0x50a9ef=>{for(const _0x2c3cdb of Array['from'](_0x247bfa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x50a9ef['removeMarker'](_0x2c3cdb);}),_0xec6e81['isReady']=!0x1,_0x247bfa['model']['enqueueChange'](_0x2d1d60=>{_0x2d1d60['setSelection'](null),_0x2d1d60['removeSelectionAttribute'](_0x247bfa['model']['document']['selection']['getAttributeKeys']());const _0x40e818=Object['keys'](_0x47efc7);for(const _0xddf05e of _0x247bfa['model']['document']['roots'])'$graveyard'!=_0xddf05e['rootName']&&_0xddf05e['isAttached']()&&!_0x40e818['includes'](_0xddf05e['rootName'])&&_0x2d1d60['detachRoot'](_0xddf05e);for(const _0x434200 of _0x40e818){let _0xc0e6ef=_0x247bfa['model']['document']['getRoot'](_0x434200);_0xc0e6ef&&_0xc0e6ef['isAttached']()||(_0xc0e6ef=_0x2d1d60['addRoot'](_0x434200));const _0x338968=_0x28efd2[_0x434200],_0x253b5d=Object['keys'](_0x338968),_0x1a0448=_0x47efc7[_0x434200];for(const _0x416384 of _0xc0e6ef['getAttributeKeys']())_0x253b5d['includes'](_0x416384)||_0x2d1d60['removeAttribute'](_0x416384,_0xc0e6ef);for(const _0x3dcac5 of _0x253b5d)_0x2d1d60['setAttribute'](_0x3dcac5,_0x28efd2[_0x434200][_0x3dcac5],_0xc0e6ef);_0x2d1d60['remove'](_0x2d1d60['createRangeIn'](_0xc0e6ef)),_0x2d1d60['insert'](_0x247bfa['data']['parse'](_0x1a0448,_0xc0e6ef),_0xc0e6ef,0x0);}});const _0x1c6674=g(_0x247bfa['locale'],'Restored');if(_0x4a8d02['name'])_0x3d39b4=-0x1==_0x4a8d02['name']['indexOf'](_0x1c6674)?_0x1c6674+':\x20'+_0x4a8d02['name']:_0x4a8d02['name'];else _0x3d39b4=_0x1c6674+':\x20'+(_0x4a8d02['createdAt']['toLocaleDateString'](_0x247bfa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4a8d02['createdAt']['toLocaleTimeString'](_0x247bfa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5388db['saveRevision']({'name':_0x3d39b4}),_0xec6e81['isReady']=!0x0,_0x247bfa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0xa87ed2){super(_0xa87ed2),this['_revisionViewer']=_0xa87ed2['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x52ca7b=this['_revisionsRepository']['_revisions'],_0x44b4d5=this['_createRevisionActions'](),_0x41c295=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x52ca7b,_0x44b4d5,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',(_0x2160e7,_0x54e22c)=>{_0x54e22c['revisionViews']['on']('add',(_0x689b31,_0x50adb4)=>{_0x50adb4['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)),_0x41c295['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2381ce=this['_revisionsRepository']['getRevision'](0x0);if(_0x2381ce){const _0xa1d487=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2381ce['id']);this['_revisionViewer']['compare'](_0x2381ce,_0xa1d487);}}['_handleRevisionSelected'](_0x2af763,_0x5eb5d3){const _0x47b7db=this['_revisionsRepository']['getRevision'](_0x5eb5d3['id']),_0x18c962=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x47b7db['id']);this['_revisionViewer']['compare'](_0x47b7db,_0x18c962);}['_handleRevisionSetName'](_0x84346c,_0x161041){this['_revisionsRepository']['getRevision'](_0x161041['id'])['setName'](_0x161041['name']);}['_handleDiffChange'](_0x586b5e,_0x4ae956,_0xfa1eb6){const _0x3be210=this['_revisionsRepository']['getRevisionsInDiff'](_0xfa1eb6);_0x3be210['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3be210),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3be210[0x0]));}['_createRevisionActions'](){const _0x34c3b5=this['editor'],_0x5a8949=d['availableRevisionActions'],_0x385e6d=_0x34c3b5['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x385e6d['length'])return _0x385e6d['map'](_0xe678be=>{const _0x154640='string'==typeof _0xe678be?Object['assign']({},_0x5a8949[_0xe678be]):_0xe678be;return _0x154640['action']=_0x154640['action']['bind'](this,_0x34c3b5),_0x154640['isVisible']&&(_0x154640['isVisible']=_0x154640['isVisible']['bind'](this,_0x34c3b5)),_0x154640;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1a5d7c},_0x230999)=>{const _0xcaa49a=_0x1a5d7c['get'](m),_0x4e507f=_0xcaa49a['repository'];let _0x23e6d8=_0xcaa49a['diff']['newRevisionId'],_0x24f14b=_0x230999['id'];_0x4e507f['getIndex'](_0x23e6d8)>_0x4e507f['getIndex'](_0x24f14b)&&([_0x23e6d8,_0x24f14b]=[_0x24f14b,_0x23e6d8]),_0xcaa49a['compare'](_0x23e6d8,_0x24f14b);},'isVisible':({plugins:_0x7b0ff7},_0x52cb09)=>{const _0x27de8f=_0x7b0ff7['get'](m);return!(_0x27de8f['repository']['getRevisionsInDiff'](_0x27de8f['diff'])['length']>0x2)&&!_0x52cb09['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x39b231,{id:_0x376e3d})=>{_0x39b231['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x376e3d);},'isVisible':({plugins:_0x201154},_0x3a8528)=>!!_0x201154['get'](m)['repository']['getLaterVisibleRevision'](_0x3a8528['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x15246f},{id:_0x17fbc8,revisionNameView:_0x350e2a})=>{const _0x19d850=_0x15246f['get'](m),_0xe11cb2=_0x19d850['repository']['getEarlierVisibleRevision'](_0x17fbc8);_0x19d850['compare'](_0x17fbc8,_0xe11cb2),_0x350e2a['focus'](),_0x350e2a['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x128b71,_0x44298e){super(_0x128b71),this['_view']=_0x44298e,this['_toolbarConfig']=et(_0x128b71['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x33ad0f){const _0x34b4d7=this['editor'],_0xf9e139=this['view'],_0xf095e4=_0x34b4d7['editing']['view'],_0x1135c3=_0xf9e139['editable'],_0x377f3b=_0xf095e4['document']['getRoot']();_0x1135c3['name']=_0x377f3b['rootName'],_0xf9e139['render']();const _0x529e97=_0x1135c3['element'];this['setEditableElement'](_0x1135c3['name'],_0x529e97),_0xf9e139['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xf095e4['attachDomRoot'](_0x529e97),this['_elementReplacer']['replace'](_0x33ad0f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5caacd=this['view'],_0x511e24=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x511e24['detachDomRoot'](_0x5caacd['editable']['name']),_0x5caacd['destroy']();}['_initToolbar'](){const _0x2a5cf9=this['view'];_0x2a5cf9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2a5cf9['stickyPanel']['limiterElement']=_0x2a5cf9['element'],_0x2a5cf9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1cc9cc})=>_0x1cc9cc),_0x2a5cf9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2a5cf9['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x39f626,_0x2edc13,_0x6e101f={}){super(_0x39f626),this['stickyPanel']=new ht(_0x39f626),this['toolbar']=new dt(_0x39f626,{'shouldGroupWhenFull':_0x6e101f['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x39f626,_0x2edc13);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ _0x25bb70(_0x5fd6fa){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x20cbec,_0x211dba){super(_0x211dba),this['sourceElement']=_0x20cbec,this['model']['document']['createRoot']();const _0x31e6bf=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x31e6bf);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4fc149,_0x1ba82e){const _0x4cc978=new this(_0x4fc149,_0x1ba82e);return await _0x4cc978['initPlugins'](),await _0x4cc978['ui']['init'](_0x4fc149),await _0x4cc978['data']['init'](_0x4cc978['config']['get']('initialData')||''),_0x4cc978['fire']('ready'),_0x4cc978;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0xe250eb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32707f){function _0x433731(_0xad1dbd){return _0xad1dbd['map'](_0x209703=>String['fromCharCode'](_0x209703))['join']('');}super(_0x32707f),this['result']='end',_0x32707f[_0x433731([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x433731([0x76,0x69,0x65,0x77])][_0x433731([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x433731([0x61,0x75,0x74,0x6f]),_0x32707f[_0x433731([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x433731([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x433731([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x433731([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x433731([0x6f,0x6b])});}}class k extends _0xe250eb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x30af26){if(super(_0x30af26),!this['editor']['config']['get']('revisionHistory'))throw new _0x131c87('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2bbd5a=>this['_showRevisionViewer']({..._0x2bbd5a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x388ca3=>this['_closeRevisionViewer'](_0x388ca3)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xc6ba0c=>this['_restoreRevision'](_0xc6ba0c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x25bba9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x25bba9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5447e2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5447e2);}['getRevision'](_0x1dedcc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1dedcc);}['getRevisions'](_0x58a566){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x58a566||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3b54c9=this['editor'],_0x391462=_0x1f62a5(_0x3b54c9,p),_0x3edc07=_0x3b54c9['plugins']['get']('RevisionTracker'),_0x40b153=_0x3b54c9['plugins']['get']('Users')['users'];return _0x391462['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x391462['lazyRoots'],(_0x391462['plugins']['push'](_t,m,R,class extends _0xe250eb{static get['requires'](){return[m,'Users'];}['init'](){const _0x1224ef=this['editor']['plugins']['get']('Users');for(const _0x363db1 of _0x40b153)_0x363db1['isAnonymous']||_0x1224ef['getUser'](_0x363db1['id'])||_0x1224ef['addUser'](_0x363db1);const _0x48548b=_0x3edc07['repository']['getRevisions']();let _0x5a5afb=null;const _0x21d2af=this['editor']['plugins']['get']('RevisionViewer');_0x21d2af['adapter']=_0x3edc07['adapter'],_0x21d2af['bind']('isEnabled')['to'](_0x3edc07),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3b54c9,'isReadOnly',_0x4fb64f=>!_0x4fb64f);for(const _0x203551 of _0x48548b){const _0x21854e=null===_0x203551['creator'];if(_0x21854e&&_0x203551['toVersion']===_0x203551['fromVersion'])continue;const _0x24f1bd=_0x203551['toJSON']();_0x21d2af['addRevisionData'](_0x24f1bd,(_0x28fd12,_0x111d2d,_0x5c43ea)=>{if(_0x21854e){if(_0x5a5afb)_0x5a5afb['_update'](_0x28fd12,_0x111d2d);else{if(!_0x111d2d){const _0x120480=_0x5c43ea['toJSON']();_0x120480['id']=_0x12cc6f(),_0x3edc07['saveRevision'](_0x120480,_0x5c43ea['toVersion'])['then'](_0x1760f8=>{_0x5a5afb=_0x1760f8;});}}}else _0x203551['_update'](_0x28fd12,_0x111d2d);});}}},d),_0x391462);}['_enhanceShowRevisionViewerCallback'](){const _0x313aad=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5867b7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x161a83=this['editor']['plugins']['get']('Autosave');await _0x161a83['save']();}else await _0x5867b7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x556529=this['editor']['plugins']['get']('Dialog');_0x556529['isOpen']&&_0x556529['hide']();}const _0x20f386=this['_getRevisionViewerEditorConfig']();return _0x313aad(_0x20f386)['then'](_0x5d3deb=>{return(this['_viewerEditor']=_0x5d3deb,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'),_0x5d3deb);})['catch'](_0x3322b0=>(console['error'](_0x3322b0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4ba71c=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'](),_0x4ba71c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4457fa=this['editor']['plugins']['get']('Annotations');_0x4457fa['refreshVisibility'](),_0x4457fa['refreshPositioning']();}})));}['_showRevisionViewer'](_0x126570){const _0x26738d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x9c1cd9=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x25c385=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x25c385,_0x126570)['then'](_0x58f14a=>(_0x9c1cd9['style']['display']='block',_0x26738d['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x58f14a));}['_closeRevisionViewer'](_0x1a5395){const _0x550ddb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x550ddb['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1a5395['destroy']();}async['_restoreRevision'](_0x55fc22){const _0x4872e6=this['editor'],_0x3f770b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x30e6ce=_0x4872e6['plugins']['get']('RevisionTracker'),_0x1c3048=_0x4872e6['plugins']['get']('RevisionHistoryUtils'),_0x179650=_0x3f770b['repository']['getRevision'](_0x55fc22);let _0x22e139,_0x20d1d5,_0x484d41;try{await _0x1c3048['loadRevisionData'](_0x179650,this['adapter']),_0x22e139=_0x1c3048['getRevisionDocumentData'](_0x179650),_0x20d1d5=_0x1c3048['getRevisionRootsAttributes'](_0x179650);}catch(_0x5e97eb){return void console['error'](_0x5e97eb);}_0x4872e6['model']['change'](_0x455788=>{for(const _0xb0e3f7 of Array['from'](_0x4872e6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x455788['removeMarker'](_0xb0e3f7);}),_0x3f770b['isReady']=!0x1,_0x4872e6['model']['enqueueChange'](_0x1d2b8b=>{_0x1d2b8b['setSelection'](null),_0x1d2b8b['removeSelectionAttribute'](_0x4872e6['model']['document']['selection']['getAttributeKeys']());const _0x4e2588=Object['keys'](_0x22e139);for(const _0x421be1 of _0x4872e6['model']['document']['roots'])'$graveyard'!=_0x421be1['rootName']&&_0x421be1['isAttached']()&&!_0x4e2588['includes'](_0x421be1['rootName'])&&_0x1d2b8b['detachRoot'](_0x421be1);for(const _0x57d20a of _0x4e2588){let _0x30999c=_0x4872e6['model']['document']['getRoot'](_0x57d20a);_0x30999c&&_0x30999c['isAttached']()||(_0x30999c=_0x1d2b8b['addRoot'](_0x57d20a));const _0x18dc08=_0x20d1d5[_0x57d20a],_0x15d4ff=Object['keys'](_0x18dc08),_0x30a07d=_0x22e139[_0x57d20a];for(const _0x3f99f5 of _0x30999c['getAttributeKeys']())_0x15d4ff['includes'](_0x3f99f5)||_0x1d2b8b['removeAttribute'](_0x3f99f5,_0x30999c);for(const _0x2c3d07 of _0x15d4ff)_0x1d2b8b['setAttribute'](_0x2c3d07,_0x20d1d5[_0x57d20a][_0x2c3d07],_0x30999c);_0x1d2b8b['remove'](_0x1d2b8b['createRangeIn'](_0x30999c)),_0x1d2b8b['insert'](_0x4872e6['data']['parse'](_0x30a07d,_0x30999c),_0x30999c,0x0);}});const _0x44b0e2=g(_0x4872e6['locale'],'Restored');if(_0x179650['name'])_0x484d41=-0x1==_0x179650['name']['indexOf'](_0x44b0e2)?_0x44b0e2+':\x20'+_0x179650['name']:_0x179650['name'];else _0x484d41=_0x44b0e2+':\x20'+(_0x179650['createdAt']['toLocaleDateString'](_0x4872e6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x179650['createdAt']['toLocaleTimeString'](_0x4872e6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x30e6ce['saveRevision']({'name':_0x484d41}),_0x3f770b['isReady']=!0x0,_0x4872e6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};