@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250329.0 → 0.0.0-nightly-20250330.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 _0x482aa6,uid as _0x56f194,Collection as _0x3c755c,logWarning as _0x1c05ab,FocusTracker as _0x1bca59,KeystrokeHandler as _0x34f2e4,scrollViewportToShowTarget as _0x3c4a3a,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x50b2f4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1a7cd1,set as _0x25a6e6,unset as _0x4258d2,isEqual as _0x1cf4e2}from'es-toolkit/compat';import{Plugin as _0x3a83bf,PendingActions as _0xd49075,Command as _0x4887eb,ElementApiMixin as _0x3e370e,Editor as _0xca871b}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4fe82c,getMarkerDomElement as _0x1a8ea3,ConfirmMixin as ti,sanitizeEditorConfig as _0x319fea}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x575821,ViewAttributeElement as _0x3fed71,ViewEmptyElement as _0x5eaeb8,ViewRawElement as _0xb2d509,ViewUIElement as _0x51de0d,ViewDocumentFragment as _0x2d689c,ViewText as _0x57595a,ViewElement as _0x19acf2,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 _0x16f088,IconChevronUp as _0x1f62e6,IconChevronDown as _0x425d1f,IconUndo as _0x979595,IconUser as _0xf9cca,IconThreeVerticalDots as _0xbed950}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x573f6c,submitHandler as _0x2425f0,LabeledFieldView as _0x263937,createLabeledInputText as _0x399d5e,createDropdown as _0x72e1f8,ListView as _0x456cd6,ListItemView as _0x3b4857,ButtonView as te,MenuBarMenuView as _0x2bb94e,MenuBarMenuListView as _0x3cc535,MenuBarMenuListItemView as _0x4b7eb2,MenuBarMenuListItemButtonView as _0x36566e,ContextualBalloon as _0x487f43,ToolbarSeparatorView as _0x48d5b0,IconView as _0x12c313,addListToDropdown as _0x4e2d08,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 _0x479a17}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x482aa6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x37d0f9){super(),this['id']=_0x37d0f9['id']||_0x56f194(),this['creator']=_0x37d0f9['creator']||null,this['authors']=_0x37d0f9['authors']||[],this['diffData']=_0x37d0f9['diffData']||null,this['toVersion']=_0x37d0f9['toVersion']||0x0,this['fromVersion']=_0x37d0f9['fromVersion']||0x0,this['set']('name',_0x37d0f9['name']||''),this['set']('createdAt',_0x37d0f9['createdAt']||new Date()),this['set']('attributes',_0x37d0f9['attributes']||{});}['setName'](_0x5e0c41){this['_update']({'name':_0x5e0c41});}['setAttribute'](_0x4ef9a5,_0x107ce6){const _0x6a3897=_0x1a7cd1(this['attributes']);_0x25a6e6(_0x6a3897,_0x4ef9a5,_0x107ce6),this['_update']({'attributes':_0x6a3897});}['removeAttribute'](_0x2161e2){const _0x128a98=_0x1a7cd1(this['attributes']);_0x4258d2(_0x128a98,_0x2161e2),this['_update']({'attributes':_0x128a98});}['_update'](_0x332e0a,_0x75a48c=!0x1){let _0x16b90b=!0x1;const _0x21f4af={'id':this['id']},_0x1d6b1f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2ad911 of _0x1d6b1f){const _0x96dd24=_0x332e0a[_0x2ad911];void 0x0!==_0x96dd24&&_0x96dd24!==this[_0x2ad911]&&(this[_0x2ad911]=_0x96dd24,_0x21f4af[_0x2ad911]=_0x96dd24,_0x16b90b=!0x0);}_0x16b90b&&(_0x21f4af['authors']&&(_0x21f4af['authorsIds']=_0x21f4af['authors']['map'](_0x5e004f=>_0x5e004f['id']),delete _0x21f4af['authors']),this['fire']('_update',_0x21f4af,_0x75a48c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x163a2a=>_0x163a2a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x3a83bf{['_revisions'];static get['requires'](){return[_0x4fe82c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xf74609){super(_0xf74609),this['_revisions']=new _0x3c755c();}['afterInit'](){!async function(_0x2048d8){const _0x1ea66c=_0x37cc7d([0x42,0x49,0x4b,0x4e,0x74,0x4a,0x6b,0x6d,0x59,0x69,0x50,0x76,0x55,0x57,0x47,0x34,0x70,0x32,0x77,0x37,0x78,0x54,0x72,0x44,0x6a,0x6e,0x4d,0x6c,0x7a,0x6f,0x43,0x30,0x73,0x79,0x53,0x46,0x63,0x39,0x45,0x67,0x71,0x4f,0x65,0x62,0x64,0x52,0x56,0x36,0x48,0x41,0x51,0x75,0x4c,0x33,0x35,0x38,0x61,0x31,0x68,0x66,0x5a,0x58]),_0x3d1194=0xeb829,_0xe6925f=0x10652408,_0x462beb=0x10624788^_0xe6925f,_0x17ffdf=window[_0x37cc7d([0x44,0x61,0x74,0x65])][_0x37cc7d([0x6e,0x6f,0x77])](),_0x43a20e=_0x2048d8[_0x37cc7d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x689dc3=new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3edbf2=>{_0x43a20e[_0x37cc7d([0x6f,0x6e,0x63,0x65])](_0x37cc7d([0x72,0x65,0x61,0x64,0x79]),_0x3edbf2);}),_0x508fff={[_0x37cc7d([0x6b,0x74,0x79])]:_0x37cc7d([0x45,0x43]),[_0x37cc7d([0x75,0x73,0x65])]:_0x37cc7d([0x73,0x69,0x67]),[_0x37cc7d([0x63,0x72,0x76])]:_0x37cc7d([0x50,0x2d,0x32,0x35,0x36]),[_0x37cc7d([0x78])]:_0x37cc7d([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]),[_0x37cc7d([0x79])]:_0x37cc7d([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]),[_0x37cc7d([0x61,0x6c,0x67])]:_0x37cc7d([0x45,0x53,0x32,0x35,0x36])},_0x11d800=_0x43a20e[_0x37cc7d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37cc7d([0x67,0x65,0x74])](_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x419480(){let _0x31a800,_0xcf6018=null,_0x1d701e=null;try{if(_0x11d800==_0x37cc7d([0x47,0x50,0x4c]))return _0x37cc7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31a800=_0x57bea6(),!_0x31a800)return _0x37cc7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31a800[_0x37cc7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d701e=_0x11f38a(_0x31a800[_0x37cc7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31a800[_0x37cc7d([0x6a,0x74,0x69])])),await _0x1757d6()?_0x27497b()?_0x5f8cd3()?_0x37cc7d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5dc7d7()?(_0x31a800[_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37cc7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xcf6018=_0x49eff7(_0x37cc7d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x31a800[_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37cc7d([0x74,0x72,0x69,0x61,0x6c])&&(_0xcf6018=_0x49eff7(_0x37cc7d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1abdff()):_0x37cc7d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37cc7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37cc7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1975e3){return _0x37cc7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f8cd3(){const _0x9bdc2=[_0x37cc7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37cc7d([0x74,0x72,0x69,0x61,0x6c])][_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a800[_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17ffdf/0x3e8:0xe10*_0x462beb;return _0x31a800[_0x37cc7d([0x65,0x78,0x70])]<_0x9bdc2;}function _0x27497b(){const _0x22ff43=_0x31a800[_0x37cc7d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x22ff43)return!0x1;if(_0x22ff43[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37cc7d([0x2a])))return!0x0;if(_0x22ff43[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37cc7d([0x52,0x48])))return!0x0;if(_0x22ff43[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37cc7d([0x52,0x52,0x48]))){if(_0x1b9928())return!0x0;if(_0xe7d9ac()||_0x212c70())return!0x0;}return!0x1;}function _0x5dc7d7(){const _0x1ed052=_0x31a800[_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ed052||0x0==_0x1ed052[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20add9}=new URL(window[_0x37cc7d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ed052[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20add9))return!0x0;const _0x3b1f92=_0x20add9[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])](_0x37cc7d([0x2e]));return _0x1ed052[_0x37cc7d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23fab3=>_0x23fab3[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37cc7d([0x2a])))[_0x37cc7d([0x6d,0x61,0x70])](_0x2e015a=>_0x2e015a[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])](_0x37cc7d([0x2e])))[_0x37cc7d([0x73,0x6f,0x6d,0x65])](_0xc4b147=>_0x3b1f92[_0x37cc7d([0x65,0x76,0x65,0x72,0x79])]((_0x597eb7,_0x334bc5)=>_0xc4b147[_0x334bc5]===_0x597eb7||_0xc4b147[_0x334bc5]===_0x37cc7d([0x2a])));}function _0x1abdff(){return _0xcf6018&&_0x1d701e?new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bff96,_0x64e6a0)=>{_0xcf6018[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x5bff96,_0x64e6a0),_0x1d701e[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x38b0ed=>{_0x38b0ed!=_0x37cc7d([0x56,0x61,0x6c,0x69,0x64])&&_0x5bff96(_0x38b0ed);},_0x64e6a0);}):_0xcf6018||_0x1d701e||_0x37cc7d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11f38a(_0x3f32cc,_0x3cd2f6){return new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5c4a=>{if(_0x2247bd())return _0x5f5c4a(_0x37cc7d([0x56,0x61,0x6c,0x69,0x64]));_0x24049a(),_0x43a20e[_0x37cc7d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37cc7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c724e=!0x1;const _0xd04244=_0x56f194();function _0x31ff51(_0x479290){return!!_0x479290&&(typeof _0x479290===_0x37cc7d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x479290===_0x37cc7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x479290[_0x37cc7d([0x74,0x68,0x65,0x6e])]===_0x37cc7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x479290[_0x37cc7d([0x63,0x61,0x74,0x63,0x68])]===_0x37cc7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d30e8(_0x2a4545){_0x272a79(_0x2a4545)[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x5782b2=>{if(!_0x5782b2||_0x5782b2[_0x37cc7d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37cc7d([0x6f,0x6b]))return _0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4430b3(_0x341b30(_0xd04244+_0x3cd2f6))!=_0x5782b2[_0x37cc7d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37cc7d([0x56,0x61,0x6c,0x69,0x64]);})[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x58ea77=>(_0x151540(),_0x58ea77),()=>{const _0x5730d8=_0x1ba765();return null==_0x5730d8?(_0x151540(),_0x37cc7d([0x56,0x61,0x6c,0x69,0x64])):_0x37cc7d(_0x17ffdf-_0x5730d8>(0x3469a008^_0xe6925f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x5f5c4a)[_0x37cc7d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f5c4a(_0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x290235=0x1053ca88^_0xe6925f;function _0x151540(){const _0x18b3d9=_0x37cc7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4430b3(_0x341b30(_0x3f32cc)),_0x1b5c36=_0x55961a(_0x4430b3(window[_0x37cc7d([0x4d,0x61,0x74,0x68])][_0x37cc7d([0x63,0x65,0x69,0x6c])](_0x17ffdf/_0x290235)));window[_0x37cc7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37cc7d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18b3d9,_0x1b5c36);}function _0x1ba765(){const _0x11c089=_0x37cc7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4430b3(_0x341b30(_0x3f32cc)),_0x484ab1=window[_0x37cc7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37cc7d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11c089);return _0x484ab1?window[_0x37cc7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55961a(_0x484ab1),0x10)*_0x290235:null;}function _0x272a79(_0x357b21){return new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13ac01,_0x5215a4)=>{_0x357b21[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x13ac01,_0x5215a4),window[_0x37cc7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5215a4,0x1064f0c8^_0xe6925f);});}}_0x43a20e[_0x37cc7d([0x6f,0x6e])](_0x37cc7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x253487,_0x23b54d)=>{if(_0x23b54d[0x0]!=_0x3f32cc)return _0x5f5c4a(_0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23b54d[0x1]={..._0x23b54d[0x1],[_0x37cc7d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd04244};},{[_0x37cc7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37cc7d([0x68,0x69,0x67,0x68])}),_0x43a20e[_0x37cc7d([0x6f,0x6e])](_0x37cc7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e0def=>{_0x31ff51(_0x1e0def[_0x37cc7d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c724e=!0x0,_0x3d30e8(_0x1e0def[_0x37cc7d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37cc7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37cc7d([0x6c,0x6f,0x77])}),_0x689dc3[_0x37cc7d([0x74,0x68,0x65,0x6e])](()=>{_0x5c724e||_0x5f5c4a(_0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2247bd(){return _0x43a20e[_0x37cc7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37cc7d([0x76,0x69,0x65,0x77])][_0x37cc7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37cc7d([0x61,0x75,0x74,0x6f]);}function _0x24049a(){_0x43a20e[_0x37cc7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37cc7d([0x76,0x69,0x65,0x77])][_0x37cc7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37cc7d([0x61,0x75,0x74,0x6f]);}}function _0x49eff7(_0x259807){const _0x17d500=[new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fc3d=>setTimeout(_0x34fc3d,0x106c1ac4^_0xe6925f)),_0x689dc3[_0x37cc7d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246be4=>{const _0x10f790=0x1065240f^_0xe6925f,_0x34ad79=_0x2048d8[_0x37cc7d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x465d04(){_0x34ad79[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10f790&&_0x246be4();}_0x465d04(),_0x34ad79[_0x37cc7d([0x6f,0x6e])](_0x37cc7d([0x61,0x64,0x64]),_0x465d04);})),new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x201f9d=>{function _0x2d3581(){for(const _0x3619e0 in window)if(window[_0x37cc7d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x37cc7d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3619e0))&&window[_0x3619e0]==_0x3d1194)return _0x201f9d();_0x43a20e[_0x37cc7d([0x73,0x74,0x61,0x74,0x65])]!=_0x37cc7d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x37cc7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d3581,0x10653780^_0xe6925f);}_0xdcc90f(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2d3581();})];return window[_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37cc7d([0x72,0x61,0x63,0x65])](_0x17d500)[_0x37cc7d([0x74,0x68,0x65,0x6e])](()=>_0x259807);}async function _0x59b758(){if(await _0x689dc3,_0xdcc90f(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x36eb61=_0x2048d8[_0x37cc7d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x16c3e4=_0x2048d8[_0x37cc7d([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])](_0x36eb61[_0x37cc7d([0x69,0x64])]),_0x4c58b5=_0xec6777(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4c58b5[_0x37cc7d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x36eb61['id'],_0x16c3e4?_0x16c3e4['id']:null,!0x0),_0x4c58b5[_0x37cc7d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37cc7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4c58b5[_0x37cc7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4c58b5[_0x37cc7d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3b3755,void(_0x4c58b5[_0x37cc7d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3b3755);}if(_0xdcc90f(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x543f90=_0xec6777(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x543f90[_0x37cc7d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37cc7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x543f90[_0x37cc7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x543f90[_0x37cc7d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3b3755,_0x543f90[_0x37cc7d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3b3755;}_0x43a20e[_0x37cc7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x37cc7d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b3755,_0x43a20e[_0x37cc7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x37cc7d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b3755,_0x43a20e[_0x37cc7d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37cc7d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b9928(){return _0xdcc90f(_0x37cc7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xec6777(_0x37cc7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x37cc7d([0x73,0x74,0x61,0x74,0x65])]==_0x37cc7d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe7d9ac(){return _0xdcc90f(_0x37cc7d([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 _0x212c70(){return _0xdcc90f(_0x37cc7d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5cb29c(_0x21ba3c){const _0x476596=_0x54a794();_0x43a20e[_0x476596]=_0x37cc7d([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])+_0x21ba3c,_0x21ba3c[_0x37cc7d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x37cc7d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x54a794()]=_0x3d1194),_0x21ba3c!=_0x37cc7d([0x56,0x61,0x6c,0x69,0x64])&&_0x59b758();}function _0x54a794(){const _0x35242a=window[_0x37cc7d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37cc7d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37cc7d([0x6e,0x6f,0x77])]())[_0x37cc7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37cc7d([0x2e]),'');let _0x3a4756=_0x37cc7d([0x42]);for(let _0x490199=0x0;_0x490199<_0x35242a[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x490199+=0x2){let _0x341770=window[_0x37cc7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35242a[_0x37cc7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x490199,_0x490199+0x2));_0x341770>=_0x1ea66c[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x341770-=_0x1ea66c[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a4756+=_0x1ea66c[_0x341770];}return _0x3a4756;}function _0x57bea6(){const _0x38fbaf=_0x11d800[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])](_0x37cc7d([0x2e]));if(0x3!=_0x38fbaf[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58242e(_0x38fbaf[0x1]);function _0x58242e(_0x3d9792){const _0x59caa4=_0x4b84b6(_0x3d9792);return _0x59caa4&&_0x160fb7()?_0x59caa4:null;function _0x160fb7(){const _0x23c9e3=_0x59caa4[_0x37cc7d([0x6a,0x74,0x69])],_0x11a8d7=window[_0x37cc7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23c9e3[_0x37cc7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23c9e3[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1feb0a={..._0x59caa4,[_0x37cc7d([0x6a,0x74,0x69])]:_0x23c9e3[_0x37cc7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23c9e3[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1feb0a[_0x37cc7d([0x76,0x63])],_0x341b30(_0x1feb0a)==_0x11a8d7;}}}async function _0x1757d6(){let _0x3cefbd=!0x0;try{const _0x155fa4=_0x11d800[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])](_0x37cc7d([0x2e])),[_0x359128,_0x531b4d,_0x3e677f]=_0x155fa4;return _0x17f6f7(_0x359128),await _0xf49454(_0x359128,_0x531b4d,_0x3e677f),_0x3cefbd;}catch(_0x972c78){return!0x1;}function _0x17f6f7(_0x4f5a4d){const _0x59bde5=_0x4b84b6(_0x4f5a4d);_0x59bde5&&_0x59bde5[_0x37cc7d([0x61,0x6c,0x67])]==_0x37cc7d([0x45,0x53,0x32,0x35,0x36])||(_0x3cefbd=!0x1);}async function _0xf49454(_0x1c51ae,_0x536a67,_0x3cc50f){const _0x34a21a=window[_0x37cc7d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37cc7d([0x66,0x72,0x6f,0x6d])](_0x3a15dc(_0x3cc50f),_0x536ed9=>_0x536ed9[_0x37cc7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3021cc=new window[(_0x37cc7d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37cc7d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c51ae+_0x37cc7d([0x2e])+_0x536a67),_0x2ae6ed=window[_0x37cc7d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37cc7d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ae6ed)return;const _0x599121=await _0x2ae6ed[_0x37cc7d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37cc7d([0x6a,0x77,0x6b]),_0x508fff,{[_0x37cc7d([0x6e,0x61,0x6d,0x65])]:_0x37cc7d([0x45,0x43,0x44,0x53,0x41]),[_0x37cc7d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37cc7d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37cc7d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ae6ed[_0x37cc7d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37cc7d([0x6e,0x61,0x6d,0x65])]:_0x37cc7d([0x45,0x43,0x44,0x53,0x41]),[_0x37cc7d([0x68,0x61,0x73,0x68])]:{[_0x37cc7d([0x6e,0x61,0x6d,0x65])]:_0x37cc7d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x599121,_0x34a21a,_0x3021cc)||(_0x3cefbd=!0x1);}}function _0x4b84b6(_0x514b53){return _0x514b53[_0x37cc7d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37cc7d([0x65,0x79]))?JSON[_0x37cc7d([0x70,0x61,0x72,0x73,0x65])](_0x3a15dc(_0x514b53)):null;}function _0x3a15dc(_0x20162a){return window[_0x37cc7d([0x61,0x74,0x6f,0x62])](_0x20162a[_0x37cc7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37cc7d([0x2b]))[_0x37cc7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37cc7d([0x2f])));}function _0x341b30(_0x79f735){let _0x377ff1=0x1505;function _0x164ef2(_0x3879d8){for(let _0x5bfb36=0x0;_0x5bfb36<_0x3879d8[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bfb36++){const _0xc07373=_0x3879d8[_0x37cc7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bfb36);_0x377ff1=(_0x377ff1<<0x5)+_0x377ff1+_0xc07373,_0x377ff1&=_0x377ff1;}}function _0x3dfb39(_0x4e7eb2){Array[_0x37cc7d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e7eb2)?_0x4e7eb2[_0x37cc7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3dfb39):_0x4e7eb2&&typeof _0x4e7eb2==_0x37cc7d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37cc7d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e7eb2)[_0x37cc7d([0x73,0x6f,0x72,0x74])]()[_0x37cc7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x352d1,_0x3fe49b])=>{_0x164ef2(_0x352d1),_0x3dfb39(_0x3fe49b);}):_0x164ef2(window[_0x37cc7d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e7eb2));}return _0x3dfb39(_0x79f735),_0x377ff1>>>0x0;}function _0x4430b3(_0x2c473c){return _0x2c473c[_0x37cc7d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37cc7d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37cc7d([0x30]));}function _0x55961a(_0x455dc9){return _0x455dc9[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37cc7d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37cc7d([0x6a,0x6f,0x69,0x6e])]('');}function _0xdcc90f(_0x165ca0){return _0x43a20e[_0x37cc7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37cc7d([0x68,0x61,0x73])](_0x165ca0);}function _0xec6777(_0x2f6f9a){return _0x43a20e[_0x37cc7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37cc7d([0x67,0x65,0x74])](_0x2f6f9a);}function _0x3b3755(){}function _0x37cc7d(_0x47acef){return _0x47acef['map'](_0x1081fe=>String['fromCharCode'](_0x1081fe))['join']('');}_0x5cb29c(await _0x419480());}(this);}['createRevision'](_0x5906d4){const _0x86ca25=this['editor']['plugins']['get']('Users');return new h({'id':_0x5906d4['id'],'name':_0x5906d4['name'],'creator':_0x5906d4['creatorId']?_0x86ca25['getUser'](_0x5906d4['creatorId']):null,'diffData':_0x5906d4['diffData']||_0x5906d4['data'],'authors':_0x5906d4['authorsIds']['map'](_0x3ddf15=>_0x86ca25['getUser'](_0x3ddf15)),'createdAt':new Date(_0x5906d4['createdAt']),'attributes':_0x5906d4['attributes'],'fromVersion':_0x5906d4['fromVersion'],'toVersion':_0x5906d4['toVersion']});}['addRevision'](_0x2ea2fa,_0x4a2b98=0x0){this['_revisions']['add'](_0x2ea2fa,_0x4a2b98);}['getRevision'](_0x23d913){return this['_revisions']['get'](_0x23d913);}['getRevisions'](_0x37999a={'toJSON':!0x1}){const _0x2e01d7=Array['from'](this['_revisions']);return _0x2e01d7['reverse'](),_0x37999a['toJSON']?_0x2e01d7['map'](_0x1fe12d=>_0x1fe12d['toJSON']()):_0x2e01d7;}['getIndex'](_0x594639){return this['_revisions']['getIndex'](_0x594639);}['getEarlierVisibleRevision'](_0x31628f){const [,_0x15bc57]=this['getRevisionsIterator'](_0x31628f,{'direction':'earlier'});return _0x15bc57;}['getLaterVisibleRevision'](_0x4c7171){const [,_0x188336]=this['getRevisionsIterator'](_0x4c7171,{'direction':'later'});return _0x188336;}['getRevisionsInDiff'](_0x151c78){const _0x3bf514=[];for(const _0x480af5 of this['getRevisionsIterator'](_0x151c78['newRevisionId']))if(_0x3bf514['push'](_0x480af5),_0x480af5['id']===_0x151c78['oldRevisionId'])break;return _0x3bf514;}*['getRevisionsIterator'](_0xf0890f,{direction:_0x3fa89a='earlier',filter:_0x24eea8=()=>!0x0}={}){const _0x289b96='earlier'===_0x3fa89a?0x1:-0x1;let _0x101e3c=this['_revisions']['get'](_0xf0890f),_0x1a63b9=this['getIndex'](_0x101e3c);for(yield _0x101e3c;_0x101e3c;){if(_0x1a63b9+=_0x289b96,_0x101e3c=this['getRevision'](_0x1a63b9),!_0x101e3c)return;_0x24eea8(_0x101e3c)&&(yield _0x101e3c);}}}class V extends _0x3a83bf{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x575821,'c'],[_0x3fed71,'a'],[_0x5eaeb8,'e'],[_0xb2d509,'r'],[_0x51de0d,'u']]);['_typeCharToViewClass']=new Map([['c',_0x575821],['a',_0x3fed71],['e',_0x5eaeb8],['r',_0xb2d509],['u',_0x51de0d]]);async['loadRevisionData'](_0x553455,_0x54bed2){if(_0x553455['diffData']||!_0x54bed2)return;const _0x28b7d7=this['editor']['config']['get']('collaboration.channelId'),_0x13a1ab=await _0x54bed2['getRevision']({'channelId':_0x28b7d7,'revisionId':_0x553455['id']});_0x553455['diffData']=_0x13a1ab['diffData'];}['getRevisionDocumentData'](_0x4b0880){const _0x5a7674={};for(const _0x2b1e76 in _0x4b0880['diffData']){if(_0x4b0880['diffData'][_0x2b1e76]['attachChange']&&!_0x4b0880['diffData'][_0x2b1e76]['attachChange']['isAttached'])continue;const _0x5a2ff7=this['_removeRevisionMarkers'](JSON['parse'](_0x4b0880['diffData'][_0x2b1e76]['insertions'])),_0x28cd3a=this['editor']['editing']['view']['document'],_0xe4abc6=new _0x2d689c(_0x28cd3a,_0x5a2ff7['map'](_0x23b503=>this['_getViewFromDiffObj'](_0x23b503,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5a7674[_0x2b1e76]=this['editor']['data']['processor']['toData'](_0xe4abc6),this['editor']['data']['processor']['useFillerType']('default');}return _0x5a7674;}['getRevisionRootsAttributes'](_0x2d5720){const _0x3a2c8d={};for(const _0x50ee4b in _0x2d5720['diffData'])_0x2d5720['diffData'][_0x50ee4b]['attachChange']&&!_0x2d5720['diffData'][_0x50ee4b]['attachChange']['isAttached']||(_0x3a2c8d[_0x50ee4b]=_0x2d5720['diffData'][_0x50ee4b]['attributesAfter']||{});return _0x3a2c8d;}['_getTypeCharForViewElement'](_0x565745){return this['_viewClassToTypeChar']['get'](_0x565745['constructor']);}['_getViewFromDiffObj'](_0x519ccc,_0x26fe27){const _0x4e82a0=this['editor']['editing']['view']['document'];if('string'==typeof _0x519ccc)return new _0x57595a(_0x4e82a0,_0x519ccc);{let _0x2f85e5,_0x2fd388;_0x2fd388='u'==_0x519ccc['type']||'r'==_0x519ccc['type']?[]:_0x519ccc['children']['map'](_0x255fd5=>this['_getViewFromDiffObj'](_0x255fd5,_0x26fe27));const _0x146c29=this['_typeCharToViewClass']['get'](_0x519ccc['type'])||_0x19acf2,_0x7c7de3=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2f85e5=new _0x146c29(_0x4e82a0,_0x519ccc['name'],_0x519ccc['attributes'],_0x2fd388),'u'==_0x519ccc['type']){const _0x21dced=_0x519ccc['children'][0x0];if(_0x2f85e5['render']=function(_0x272708){const _0x73d56b=_0x272708['createElement']('div');return _0x73d56b['innerHTML']=_0x21dced,_0x73d56b['childNodes'][0x0];},_0x26fe27){const _0x58055a=new _0x2d689c(_0x4e82a0);_0x58055a['_appendChild'](_0x2f85e5);const _0xeac3c6=Array['from'](_0x7c7de3['viewChildrenToDom'](_0x58055a,{'bind':!0x1})),_0x18d94e=_0x7c7de3['domDocument']['createElement']('div');_0x18d94e['append'](..._0xeac3c6),_0x2f85e5=Array['from'](_0x7c7de3['domChildrenToView'](_0x18d94e))[0x0];}}else{if('r'==_0x519ccc['type']){const _0x2a9a46=_0x519ccc['children'][0x0];if(_0x2f85e5['render']=function(_0x584b2b){_0x584b2b['innerHTML']=_0x2a9a46;},_0x26fe27){const _0x5d0f2f=new _0x2d689c(_0x4e82a0);_0x5d0f2f['_appendChild'](_0x2f85e5);const _0x180b48=Array['from'](_0x7c7de3['viewChildrenToDom'](_0x5d0f2f,{'bind':!0x1})),_0x374a73=_0x7c7de3['domDocument']['createElement']('div');_0x374a73['append'](..._0x180b48);const _0x3e5200=Array['from'](_0x7c7de3['domChildrenToView'](_0x374a73));_0x3e5200['length']>0x1?_0x2f85e5['_appendChild'](_0x3e5200):_0x2f85e5=_0x3e5200[0x0];}}}if(_0x519ccc['customProperties']){for(const [_0x29ca9b,_0x3c9588]of _0x519ccc['customProperties'])_0x2f85e5['_setCustomProperty'](_0x29ca9b,_0x3c9588);}const _0x215323=_0x519ccc['fillerOffset']||null;return _0x2f85e5['getFillerOffset']=()=>_0x215323,_0x2f85e5;}}['_makeModelFromViewString'](_0x28cc61){const _0x52c8c1=JSON['parse'](_0x28cc61),_0x3c490f=this['editor']['editing']['view']['document'],_0x26b1b0=new _0x2d689c(_0x3c490f,_0x52c8c1['map'](_0x159ce5=>this['_getViewFromDiffObj'](_0x159ce5,!0x0)));return this['editor']['data']['toModel'](_0x26b1b0);}['_removeRevisionMarkers'](_0x4db312){return(_0x4db312=_0x4db312['filter'](_0xf33897=>!_0xf33897['name']||'revision-start'!==_0xf33897['name']&&'revision-end'!==_0xf33897['name']))['forEach'](_0x19b14d=>{'string'!=typeof _0x19b14d&&(_0x19b14d['children']=this['_removeRevisionMarkers'](_0x19b14d['children']),_0x19b14d['attributes']=_0x19b14d['attributes']['filter'](_0x4c1074=>!_0x4c1074[0x0]['startsWith']('data-revision-')));}),_0x4db312;}}function g(_0x35d866,_0x12b315,_0x5d0343){const t=_0x35d866['t'];switch(_0x12b315){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'},_0x5d0343);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5d0343);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 _0x3a83bf{['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[_0x4fe82c,I,V,_0xd49075];}constructor(_0x203f67){super(_0x203f67),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 _0x23ae30=_0x56f194();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x23ae30},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 _0x1a1098=this['repository']['getRevision'](0x0),_0x30ac13=_0x1a1098&&null===_0x1a1098['creator']?_0x1a1098:null;if(this['_continueCurrentRevision']=!!_0x30ac13&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2eab5f=this['_source']['getCurrentRevisionId'](),_0x468a4c=this['repository']['getRevision'](_0x2eab5f);if(_0x468a4c)this['_startingVersion']=_0x468a4c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2a0b77=this['_source']['history']['_operations']['find'](_0x27c0c8=>!_0x27c0c8['_isInit']),_0x1058db=_0x2a0b77?_0x2a0b77['baseVersion']:this['_source']['history']['version'];_0x1a1098?(_0x1a1098['toVersion']<_0x1058db&&_0x1a1098['_update']({'toVersion':_0x1058db}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x30ac13['id'],this['_startingVersion']=_0x30ac13['fromVersion']):(this['_startingVersion']=_0x1a1098['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1058db,this['_continueCurrentRevision']=!0x1);}}else _0x30ac13&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x30ac13['toVersion'],this['editor']['model']['document']['history']['version']),_0x30ac13['fromVersion']===_0x30ac13['toVersion']?(0x0!==_0x30ac13['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x30ac13['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x30ac13['id'],this['_startingVersion']=_0x30ac13['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',_0x1d1e48=>!_0x1d1e48),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ce013=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e40fc;for(const _0xf0b578 in _0x2ce013){const _0x47f2b5=_0xf0b578,_0x42608d=_0x2ce013[_0x47f2b5];if('revisionHistoryLicenseKeyValid'==_0x42608d||'revisionHistoryLicenseKeyInvalid'==_0x42608d||'revisionHistoryLicenseKeyExpired'==_0x42608d||'revisionHistoryLicenseKeyDomainLimit'==_0x42608d||'revisionHistoryLicenseKeyNotAllowed'==_0x42608d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x42608d||'revisionHistoryLicenseKeyTrialLimit'==_0x42608d||'revisionHistoryLicenseKeyUsageLimit'==_0x42608d){delete _0x2ce013[_0x47f2b5],_0x3e40fc=_0x42608d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3e40fc&&_0x2ce013['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3e40fc&&_0x2ce013['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3e40fc&&_0x2ce013['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3e40fc&&_0x2ce013['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3e40fc&&_0x2ce013['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3e40fc&&_0x2ce013['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3e40fc&&_0x2ce013['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x72cac4=this['repository']['getRevision'](0x0),_0x5ec348=await this['getRevisionDocumentData'](_0x72cac4),_0x1231aa=await this['getRevisionRootsAttributes'](_0x72cac4);this['_replaceEditorDataWithRevisionData'](_0x5ec348,_0x1231aa);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3ffe2a){this['_source']=_0x3ffe2a;}async['update'](){const _0x405807=await this['_source']['getLatestVersion']();if(_0x405807>this['currentRevision']['toVersion']){await this['_loadState']();const _0x49b3f0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x405807});_0x49b3f0['authors']=_0x49b3f0['authorsIds']['map'](_0x2fa7c4=>this['editor']['plugins']['get']('Users')['getUser'](_0x2fa7c4)),this['currentRevision']['_update'](_0x49b3f0);}}async['saveRevision'](_0x18756b={},_0x1ac01d=null){const _0x36cf87=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1ac01d>this['currentRevision']['toVersion']&&(_0x1ac01d=null),null===_0x1ac01d&&(_0x1ac01d=await this['_source']['getLatestVersion']());const _0xe02e9a=this['_getFromVersion'](_0x1ac01d),_0x559e44=this['buildRevisionData']({'from':_0xe02e9a,'to':_0x1ac01d});if(this['currentRevision']['toVersion']<_0x1ac01d){const _0xe235c1=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1ac01d,'to':_0x1ac01d});_0xe235c1['authors']=[],_0xe235c1['authorsIds']=[],_0xe235c1['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xe235c1,!0x0),delete _0xe235c1['authors'],_0x36cf87['push'](_0xe235c1);}_0x18756b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x18756b['name']=_0x18756b['name']||null,_0x18756b['id']=_0x18756b['id']||_0x56f194(),_0x18756b={..._0x18756b,..._0x559e44};const _0x1dce0d=this['addRevisionData'](_0x18756b);_0x36cf87['push'](_0x18756b);const _0x156fa5=this['repository']['getIndex'](_0x1dce0d);if(0x0!==_0x156fa5){const _0x1c6e6c=this['repository']['getRevision'](_0x156fa5-0x1);if(_0x1c6e6c['fromVersion']!==_0x1ac01d){const _0x57732e=this['_revisionDataBuilder']['getData'](_0x1ac01d,_0x1c6e6c['toVersion']),_0x221389={'id':_0x1c6e6c['id'],'diffData':_0x57732e['diffData'],'authorsIds':_0x57732e['authorsIds'],'authors':_0x57732e['authorsIds']['map'](_0x4add66=>this['editor']['plugins']['get']('Users')['getUser'](_0x4add66)),'fromVersion':_0x1ac01d};_0x1c6e6c===this['currentRevision']&&(_0x221389['createdAt']=new Date(_0x18756b['createdAt']['getTime']()+0xa)),_0x1c6e6c['_update'](_0x221389,!0x0),delete _0x221389['authors'],_0x36cf87['push'](_0x221389);}}if(this['adapter']){for(const _0x53e4b2 of _0x36cf87)this['_bufferUpdate'](_0x53e4b2['id'],_0x53e4b2,!0x0);this['sendBufferedUpdates']();}return _0x1dce0d;}['addRevisionData'](_0x5f43eb){const _0x51c57a=this['repository']['createRevision'](_0x5f43eb);return this['adapter']&&_0x51c57a['on']('_update',(_0x44580a,_0x2956c2,_0x4f64a8)=>{_0x4f64a8||(this['_bufferUpdate'](_0x2956c2['id'],_0x2956c2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x51c57a,this['_findInsertionIndex'](_0x51c57a)),_0x51c57a;}async['getRevisionDocumentData'](_0x174639){return await this['_utils']['loadRevisionData'](_0x174639,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x174639);}async['getRevisionRootsAttributes'](_0x2cf298){return await this['_utils']['loadRevisionData'](_0x2cf298,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2cf298);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x42a033=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x297c9d=0x0;_0x297c9d<_0x42a033['length'];_0x297c9d++){const _0x12715e=_0x42a033[_0x297c9d];let _0x81c9a2=!0x1;for(const _0x4f9f62 of Object['keys'](_0x12715e))void 0x0===_0x12715e[_0x4f9f62]?delete _0x12715e[_0x4f9f62]:'id'!==_0x4f9f62&&(_0x81c9a2=!0x0);_0x81c9a2||(_0x42a033[_0x297c9d]=null);}if(_0x42a033=_0x42a033['filter'](_0x5ec2a0=>null!==_0x5ec2a0),!_0x42a033['length'])return;for(let _0x1eee61=0x0;_0x1eee61<_0x42a033['length'];_0x1eee61++){const _0x2ca423=_0x42a033[_0x1eee61];void 0x0!==_0x2ca423['fromVersion']&&void 0x0===_0x2ca423['toVersion']&&(_0x2ca423['toVersion']=this['repository']['getRevision'](_0x2ca423['id'])['toVersion']),void 0x0!==_0x2ca423['toVersion']&&void 0x0===_0x2ca423['fromVersion']&&(_0x2ca423['fromVersion']=this['repository']['getRevision'](_0x2ca423['id'])['fromVersion']);}const _0xd7c5b6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x42a033,_0xd7c5b6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x32c5d8=>{if(_0x32c5d8){for(const _0x5b08ae of _0x32c5d8)this['setRevisionData']({'id':_0x5b08ae['id'],'createdAt':_0x5b08ae['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2b6c76=null,from:_0x1dbb03=null,to:_0x308426=null}){_0x1dbb03=null!==_0x1dbb03?_0x1dbb03:_0x2b6c76['fromVersion'],_0x308426=null!==_0x308426?_0x308426:_0x2b6c76['toVersion'];const _0x45a60b=this['_revisionDataBuilder']['getData'](_0x1dbb03,_0x308426),_0x425dcb={'diffData':_0x45a60b['diffData'],'authorsIds':_0x45a60b['authorsIds'],'fromVersion':_0x1dbb03,'toVersion':_0x308426};if(!_0x2b6c76||_0x308426!==_0x2b6c76['toVersion']){const _0x67e45=_0x308426-0x1,_0xd22f83=this['_source']['history']['getOperation'](_0x67e45);_0x425dcb['createdAt']=_0xd22f83&&_0xd22f83['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1dbb03===this['_loadedStateData']['fromVersion']){for(const _0x35019c of this['_loadedStateData']['authors'])_0x425dcb['authorsIds']['includes'](_0x35019c['id'])||_0x425dcb['authorsIds']['push'](_0x35019c['id']);}return _0x425dcb;}['_bufferUpdate'](_0x2618f5,_0x36225e,_0x68d0ed){if(this['_bufferedUpdates']['has'](_0x2618f5)){const _0x5b7054=this['_bufferedUpdates']['get'](_0x2618f5);_0x36225e=_0x68d0ed?{..._0x5b7054,..._0x36225e}:{..._0x36225e,..._0x5b7054};}this['_bufferedUpdates']['set'](_0x2618f5,_0x36225e);}['setRevisionData'](_0x301254){const _0x1ccf40=this['repository']['getRevision'](_0x301254['id']);if(_0x301254['createdAt']&&(_0x301254['createdAt']=new Date(_0x301254['createdAt'])),_0x301254['authorsIds']){const _0xe1925=this['editor']['plugins']['get']('Users');_0x301254['authors']=_0x301254['authorsIds']['map'](_0x3bbf46=>_0xe1925['getUser'](_0x3bbf46));}_0x1ccf40['_update'](_0x301254,!0x0);}['_createInitialRevision'](_0x274b07){const _0x31c031=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x31c031)this['_initialRevisionId']=_0x31c031['id'];else{const _0x37148e=!this['editor']['model']['document']['roots']['find'](_0x18dfa3=>this['editor']['model']['hasContent'](_0x18dfa3)),_0x129689=this['editor']['plugins']['get']('Users')['me']['id'],_0x1efea2=g(this['editor']['locale'],_0x37148e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x274b07,'to':_0x274b07,'id':this['_initialRevisionId'],'name':_0x1efea2,'creatorId':_0x129689});}}['_createCurrentRevision'](_0x37af9c){const _0x4a6817=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4a6817),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x37af9c,'to':_0x37af9c,'id':_0x4a6817,'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'](_0x5977f8,_0x43f73d){let _0x2450ce=this['editor']['config']['get']('initialData'),_0x225d31=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2450ce){_0x2450ce={};for(const _0x20cedf of this['editor']['model']['document']['getRootNames']())_0x2450ce[_0x20cedf]='';}if('string'==typeof _0x2450ce&&(_0x2450ce={'main':_0x2450ce}),void 0x0===_0x225d31){_0x225d31={};for(const _0x4e40a6 of this['editor']['model']['document']['getRootNames']())_0x225d31[_0x4e40a6]={};}let _0x225228=!0x1;const _0x2e3fd5=Object['keys'](_0x2450ce),_0x9c785f=Object['keys'](_0x5977f8);for(const _0x540de1 of _0x2e3fd5){if(_0x2450ce[_0x540de1]!==_0x5977f8[_0x540de1]&&''!==_0x2450ce[_0x540de1]['trim']()){_0x225228=!0x0;break;}if(!_0x1cf4e2(_0x225d31[_0x540de1],_0x43f73d[_0x540de1])&&Object['keys'](_0x225d31[_0x540de1])['length']>0x0){_0x225228=!0x0;break;}}_0x225228||(_0x225228=_0x9c785f['some'](_0x464a17=>!this['editor']['model']['document']['getRoot'](_0x464a17))),_0x225228&&_0x1c05ab('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2450ce,'editorRootsAttributes':_0x225d31,'revisionData':_0x5977f8,'revisionRootsAttributes':_0x43f73d}),this['editor']['config']['set']('initialData',_0x5977f8),this['editor']['config']['set']('rootsAttributes',_0x43f73d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x194c91=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x194c91['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x297ecc){const _0x148822=this['repository']['getRevisions']();_0x148822['reverse']();let _0x549155=0x0;for(;_0x549155<_0x148822['length'];){const _0xb2eb09=_0x148822[_0x549155];if(_0xb2eb09===this['currentRevision']){_0x549155++;continue;}if(_0xb2eb09['id']===this['_initialRevisionId'])break;const _0x48e973=_0x297ecc['toVersion']-_0xb2eb09['toVersion']||_0x297ecc['fromVersion']-_0xb2eb09['fromVersion'];if(_0x48e973>0x0)break;if(_0x48e973<0x0)_0x549155++;else{if(!_0x297ecc['creator']&&_0xb2eb09['creator'])break;if(_0xb2eb09['creator']||!_0x297ecc['creator']){if(_0x297ecc['createdAt']>_0xb2eb09['createdAt'])break;_0x549155++;}else _0x549155++;}}return _0x549155;}['_getFromVersion'](_0x246188){const _0x22f3f8=this['repository']['getRevisions']();_0x22f3f8['reverse'](),_0x22f3f8['shift']();const _0x2f8ce3=_0x22f3f8['find'](_0x4a8d98=>_0x4a8d98['toVersion']<=_0x246188)['toVersion'];return _0x2f8ce3<this['_startingVersion']?this['_startingVersion']:_0x2f8ce3;}['_makeRevision']({name:_0x510f84,from:_0x5dafde,to:_0x3b34ae,creatorId:_0x5ef60f,id:_0xb9e9a1}){const _0x9c0da9=this['buildRevisionData']({'from':_0x5dafde,'to':_0x3b34ae});_0x9c0da9['name']=_0x510f84,_0x9c0da9['creatorId']=_0x5ef60f,_0x9c0da9['id']=_0xb9e9a1;const _0xa63204=this['addRevisionData'](_0x9c0da9);return this['adapter']&&this['_bufferUpdate'](_0x9c0da9['id'],_0x9c0da9,!0x0),_0xa63204;}['_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(_0x6da12b){this['editor']=_0x6da12b,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'](_0x19c3d9){this['source']=_0x19c3d9;const _0x1d21b1=new Map(),_0x1c5e83=new Map(),_0x516632=this['editor']['model']['document']['roots']['map'](_0x3091a6=>_0x3091a6['rootName']);for(const _0x259af8 of _0x516632){const _0x293dd0=this['editor']['model']['document']['getRoot'](_0x259af8),_0x509b53=N(_0x293dd0);_0x1d21b1['set'](_0x259af8,_0x509b53),_0x1c5e83['set'](_0x259af8,Object['fromEntries'](_0x293dd0['getAttributes']()));}const _0x425c4b=Array['from'](this['editor']['model']['markers'])['map'](_0x3dd94d=>[_0x3dd94d['name'],_0x3dd94d['getRange']()]),_0x2528cb=this['source']['version'];this['_saveMetaData'](_0x2528cb,_0x1d21b1,_0x425c4b,_0x1c5e83),this['_startingRevisionId']=this['_revisionId'];const _0x587130=new Map(),_0x430ed4=new Map();for(const _0x1e1d4d of _0x516632){const _0x541a6c=P(_0x1e1d4d);_0x587130['set'](_0x1e1d4d,_0x541a6c),_0x430ed4['set'](_0x1e1d4d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x587130,[],_0x430ed4);}['getData'](_0x7fb5af,_0x220398){if(this['_lastFrom']===_0x7fb5af&&this['_lastTo']<=_0x220398)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x220398,!0x0);else{if(!this['_savedMetaData']['has'](_0x7fb5af)){const _0x3c1c46=this['_getPreviousFrom'](_0x7fb5af);this['_calculateMetaData'](_0x3c1c46,_0x7fb5af,!0x1);}this['_calculateMetaData'](_0x7fb5af,_0x220398,!0x0);}return this['_lastFrom']=_0x7fb5af,this['_lastTo']=_0x220398,this['_getState']();}['loadState'](_0x55b591){const _0x1ed490=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x55b591['fromVersion'],this['_lastTo']=_0x55b591['toVersion'];for(const _0x3d9caa in _0x55b591['diffData']){const _0x412b17=_0x55b591['diffData'][_0x3d9caa]['attachChange'],_0x2e88db=_0x1a7cd1(_0x55b591['diffData'][_0x3d9caa]['attributesBefore'])||{},_0x10072a=_0x1ed490['_makeModelFromViewString'](_0x55b591['diffData'][_0x3d9caa]['deletions']);_0x10072a['rootName']=_0x3d9caa,_0x10072a['_isAttached']=!_0x412b17||!_0x412b17['isAttached'],_0x10072a['isAttached']=()=>_0x10072a['_isAttached'],this['_baseRoots']['set'](_0x3d9caa,_0x10072a),this['_baseRootsAttributes']['set'](_0x3d9caa,_0x2e88db),_0x412b17&&this['_touchedRoots']['set'](_0x3d9caa,_0x412b17);const _0x2336ef=this['_makeIdsRoot'](_0x10072a);this['_baseIdsRoots']['set'](_0x3d9caa,_0x2336ef);for(const [_0x22142f,_0x5b7726]of _0x10072a['markers']){if(!_0x22142f['startsWith']('revision:'))continue;const _0x1a390e=_0x22142f['split'](':')[0x2];for(const _0x459ebb of _0x5b7726['getWalker']({'singleCharacters':!0x0})){const _0xe01f80=this['_getVidAttributeName'](_0x459ebb),_0x4ad2bf='elementEnd'==_0x459ebb['type']?_0x459ebb['previousPosition']['path']['slice'](0x0,-0x1):_0x459ebb['previousPosition']['path'],_0x2c4918=_0x2336ef['getNodeByPath'](_0x4ad2bf)['getAttribute'](_0xe01f80);this['_touched']['set'](_0x2c4918,{'userId':_0x1a390e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x332525=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x21a3b2=>!this['_touched']['has'](_0x21a3b2));let _0x531306=0x0;const _0x1cee8f=new Map();for(const _0xa50cb8 in _0x55b591['diffData']){const _0x2404a9=_0x55b591['diffData'][_0xa50cb8]['attachChange'],_0x572f2b=_0x1a7cd1(_0x55b591['diffData'][_0xa50cb8]['attributesAfter'])||{},_0x2cacaf=_0x1ed490['_makeModelFromViewString'](_0x55b591['diffData'][_0xa50cb8]['insertions']);_0x2cacaf['rootName']=_0xa50cb8,_0x2cacaf['_isAttached']=!_0x2404a9||_0x2404a9['isAttached'],_0x2cacaf['isAttached']=()=>_0x2cacaf['_isAttached'],this['_diffRoots']['set'](_0xa50cb8,_0x2cacaf),this['_diffRootsAttributes']['set'](_0xa50cb8,_0x572f2b);const _0x58c653=this['_makeIdsRoot'](_0x2cacaf,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xa50cb8,_0x58c653),_0x1cee8f['set'](_0xa50cb8,_0x2cacaf['isAttached']()?_0x572f2b:{});for(const [_0xc70c8a,_0x24d3d2]of _0x2cacaf['markers']){if(!_0xc70c8a['startsWith']('revision:'))continue;const _0xf7636b=_0xc70c8a['split'](':')[0x2];for(const _0x35fe8a of _0x24d3d2['getWalker']({'singleCharacters':!0x0})){const _0x2c8fde=this['_getVidAttributeName'](_0x35fe8a),_0x3bd434=this['_revisionId']++,_0x471337='elementEnd'==_0x35fe8a['type']?_0x35fe8a['previousPosition']['path']['slice'](0x0,-0x1):_0x35fe8a['previousPosition']['path'];_0x58c653['getNodeByPath'](_0x471337)['_setAttribute'](_0x2c8fde,_0x3bd434),this['_touched']['set'](_0x3bd434,{'userId':_0xf7636b});}}for(const _0x47fa6d of this['editor']['model']['createRangeIn'](_0x2cacaf)['getWalker']({'singleCharacters':!0x0})){const _0x53ccd0=this['_getVidAttributeName'](_0x47fa6d),_0x490970='elementEnd'==_0x47fa6d['type']?_0x47fa6d['previousPosition']['path']['slice'](0x0,-0x1):_0x47fa6d['previousPosition']['path'],_0x1dfba9=_0x58c653['getNodeByPath'](_0x490970);_0x1dfba9['getAttribute'](_0x53ccd0)>0x0||_0x1dfba9['_setAttribute'](_0x53ccd0,_0x332525[_0x531306++]);}for(const [_0x2281d6,_0x198d29]of _0x2cacaf['markers'])_0x2281d6['startsWith']('revision:')||this['_markers']['set'](_0x2281d6,_0x198d29);}const _0x50d988=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x50d988),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x50d988,0x1));const _0x309018=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x309018),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x309018,0x1));const _0x107e18=Array['from'](this['_diffRoots'])['map'](([_0x36031d,_0x539b7b])=>[_0x36031d,N(_0x539b7b)]);this['_saveMetaData'](this['_lastTo'],_0x107e18,this['_markers'],_0x1cee8f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5b70b3,_0x5b4ad8,_0x32cecc,_0x4fbca3){const _0x3f7dad=new Map(_0x5b4ad8),_0x26c5f9=new Map(_0x1a7cd1(_0x4fbca3)),_0x1f646b=new Map();for(const [_0x34487e,_0x52d8ea]of _0x32cecc)_0x1f646b['set'](_0x34487e,{'start':_0x52d8ea['start']['clone'](),'end':_0x52d8ea['end']['clone'](),'rootName':_0x52d8ea['root']['rootName']});this['_savedMetaData']['set'](_0x5b70b3,{'roots':_0x3f7dad,'markers':_0x1f646b,'rootsAttributes':_0x26c5f9});}['_removeMetaData'](_0x2b53ad){this['_savedMetaData']['delete'](_0x2b53ad);}['_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'](_0x2c8532,_0x1f30c9=null){let _0x357279=null;_0x2c8532['is']('documentFragment')||(_0x357279=new ut(_0x2c8532['name'],{'vid_start':null===_0x1f30c9?this['_revisionId']++:_0x1f30c9++}));const _0x5b28cd=[];for(const _0x33a110 of _0x2c8532['getChildren']())if(_0x33a110['is']('element')){_0x5b28cd['push'](this['_makeIdsRoot'](_0x33a110,_0x1f30c9));const _0x144da0=_0x5b28cd[_0x5b28cd['length']-0x1];null!==_0x1f30c9&&(_0x1f30c9=_0x144da0['is']('element','$text')?_0x144da0['getAttribute']('vid')+0x1:_0x144da0['getAttribute']('vid_end')+0x1);}else{for(let _0x25e927=0x0;_0x25e927<_0x33a110['offsetSize'];_0x25e927++)_0x5b28cd['push'](new ut('$text',{'vid':null===_0x1f30c9?this['_revisionId']++:_0x1f30c9++}));}if(_0x2c8532['is']('documentFragment')){const _0x359127=P(_0x2c8532['rootName']);return _0x359127['_insertChild'](0x0,_0x5b28cd),_0x359127;}return _0x357279['_setAttribute']('vid_end',null===_0x1f30c9?this['_revisionId']++:_0x1f30c9++),_0x357279['_insertChild'](0x0,_0x5b28cd),_0x357279;}['_calculateMetaData'](_0x481885,_0x5f3a80,_0xab0569){this['_reset']();const {roots:_0x1f01b8,markers:_0x11d44a,rootsAttributes:_0x5f3ff6}=this['_savedMetaData']['get'](_0x481885);this['_baseRoots']=new Map(_0x1f01b8),this['_baseRootsAttributes']=new Map(_0x1a7cd1(_0x5f3ff6));for(const [_0x27f2d2,_0x32482b]of this['_baseRoots'])if('$graveyard'!==_0x27f2d2&&(this['_diffRoots']['set'](_0x27f2d2,N(_0x32482b)),this['_diffRootsAttributes']=new Map(_0x1a7cd1(_0x5f3ff6)),_0xab0569)){const _0x28809c=this['_revisionId'];this['_idsRoots']['set'](_0x27f2d2,this['_makeIdsRoot'](_0x32482b)),this['_baseIdsRoots']['set'](_0x27f2d2,this['_makeIdsRoot'](_0x32482b,_0x28809c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xab0569&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x208262,_0x119f54]of _0x11d44a){const _0x5bcbb5=this['_baseRoots']['get'](_0x119f54['rootName']),_0x2b5700=this['_diffRoots']['get'](_0x119f54['rootName']),_0x58af93=new lt(this['_fixPosition'](_0x119f54['start'],_0x5bcbb5),this['_fixPosition'](_0x119f54['end'],_0x5bcbb5)),_0x32e13a=this['_fixRange'](_0x58af93,_0x2b5700);_0x5bcbb5['markers']['set'](_0x208262,_0x58af93),this['_markers']['set'](_0x208262,_0x32e13a);}this['_applyOperations'](_0x481885,_0x5f3a80,_0xab0569);}['_applyOperations'](_0x54d788,_0xc72003,_0x15ac6b){for(const _0x40f744 of this['source']['getOperations'](_0x54d788,_0xc72003))this['_handleOperation'](_0x40f744,_0x15ac6b);for(const _0x18caee of this['_diffRoots']['values']())_0x18caee['markers']['clear']();for(const [_0x495f11,_0x30b62f]of this['_markers']){this['_diffRoots']['get'](_0x30b62f['root']['rootName'])['markers']['set'](_0x495f11,_0x30b62f['clone']());}const _0x2c9bff=new Map(),_0x2db093=new Map();for(const [_0x57da2c,_0x439d03]of this['_diffRoots'])_0x2c9bff['set'](_0x57da2c,N(_0x439d03)),_0x2db093['set'](_0x57da2c,this['_diffRootsAttributes']['get'](_0x57da2c));this['_saveMetaData'](_0xc72003,_0x2c9bff,this['_markers'],_0x2db093);}['_getPreviousFrom'](_0x4e3ead){const _0x2ead33=Array['from'](this['_savedMetaData']['keys']());_0x2ead33['sort']((_0x1c9cb2,_0x32cbf0)=>_0x1c9cb2-_0x32cbf0),_0x2ead33['reverse']();for(const _0x1485fa of _0x2ead33)if(_0x1485fa<_0x4e3ead)return _0x1485fa;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x172cdc,_0x2fbcb9){const _0x116329=Array['from'](_0x2fbcb9['markers'])['map'](([_0x45e042,_0x3b16f4])=>[_0x45e042,this['_fixRange'](_0x3b16f4,_0x172cdc)]);_0x172cdc['markers']=new Map(_0x116329);}['_transformMarkers'](_0x7c3708){for(const _0x3cdb8a of this['_markers']['values']()){const _0x27850d=_0x3cdb8a['getTransformedByOperation'](_0x7c3708),_0x384a55=lt['_createFromRanges'](_0x27850d);_0x3cdb8a['start']=_0x384a55['start'],_0x3cdb8a['end']=_0x384a55['end'];}}['_handleOperation'](_0x45123d,_0x354d98){if('addRoot'!=_0x45123d['type']&&'detachRoot'!=_0x45123d['type']){if('insert'==_0x45123d['type']){const _0x11bcbb=_0x45123d['position']['root']['rootName'];this['_diffRoots']['has'](_0x11bcbb)||(this['_diffRoots']['set'](_0x11bcbb,P(_0x11bcbb,!0x0)),this['_diffRootsAttributes']['set'](_0x11bcbb,{}),_0x354d98&&this['_idsRoots']['set'](_0x11bcbb,P(_0x11bcbb,!0x0)));}else{if('addRootAttribute'==_0x45123d['type']||'removeRootAttribute'==_0x45123d['type']||'changeRootAttribute'==_0x45123d['type'])return void this['_handleRootAttributeOperation'](_0x45123d);'marker'==_0x45123d['type']&&this['_handleMarkerOperation'](_0x45123d);}if('marker'!==_0x45123d['type']){const _0x764a5a=this['_cloneOperation'](_0x45123d,this['_diffRoots']);_0x764a5a['_execute'](),this['_transformMarkers'](_0x764a5a);}if(_0x354d98)switch(_0x45123d['type']){case'insert':this['_handleInsertOperation'](_0x45123d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x45123d);break;case'merge':this['_handleMergeOperation'](_0x45123d);break;case'split':this['_handleSplitOperation'](_0x45123d);}}else this['_handleRootOperation'](_0x45123d,_0x354d98);}['_cloneOperation'](_0x24caa3,_0x48a5f1){const _0x32e373=_0x24caa3['clone']();return _0x32e373['_authorId']=_0x24caa3['_authorId'],this['_fixOperation'](_0x32e373,_0x48a5f1),_0x32e373;}['_getBaseVids'](_0x11b9e6){return _0x11b9e6['map'](_0x346405=>{const _0x778569=this['_getVidAttributeName'](_0x346405);return Number(_0x346405['item']['getAttribute'](_0x778569));});}['_generateTape'](_0x206871,_0x541183){if(_0x206871['is']('element','$text'))_0x541183['push']({'item':_0x206871,'type':'text'});else{_0x206871['is']('element')&&_0x541183['push']({'item':_0x206871,'type':'elementStart'});for(const _0x4cd92d of _0x206871['getChildren']())this['_generateTape'](_0x4cd92d,_0x541183);_0x206871['is']('element')&&_0x541183['push']({'item':_0x206871,'type':'elementEnd'});}return _0x541183;}['_getState'](){const _0x2fef1c=new Map(this['_touched']),_0x228d6f=new Map(_0x2fef1c),_0x133bbe=new Map(),_0x271f6d={'insertions':{},'deletions':{}},_0x552448={'insertions':{},'deletions':{}},_0x173144=new Map(),_0x459691=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x459691['delete']('$graveyard');for(const _0x5aa1a4 of _0x459691){const _0x28047e=this['_diffRoots']['get'](_0x5aa1a4)||P(_0x5aa1a4,!0x1),_0x2fe70c=this['_baseRoots']['get'](_0x5aa1a4)||P(_0x5aa1a4,!0x1);_0x28047e['isAttached']()||_0x2fe70c['isAttached']()?(_0x271f6d['insertions'][_0x5aa1a4]=N(_0x28047e),_0x271f6d['deletions'][_0x5aa1a4]=N(_0x2fe70c),this['_copyMarkers'](_0x271f6d['deletions'][_0x5aa1a4],_0x2fe70c),this['_copyMarkers'](_0x271f6d['insertions'][_0x5aa1a4],_0x28047e),_0x552448['insertions'][_0x5aa1a4]=this['_generateTape'](this['_idsRoots']['get'](_0x5aa1a4),[]),_0x552448['deletions'][_0x5aa1a4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5aa1a4)||P(_0x5aa1a4,!0x1),[])):_0x459691['delete'](_0x5aa1a4);}for(const _0x2454f2 of _0x459691){const _0x3e5405=_0x552448['insertions'][_0x2454f2];for(const _0x16c55d of _0x3e5405){const _0x5aa309=this['_getVidAttributeName'](_0x16c55d),_0x54c752=_0x16c55d['item']['getAttribute'](_0x5aa309);_0x228d6f['delete'](_0x54c752),_0x54c752>=this['_startingRevisionId']&&_0x133bbe['set'](_0x54c752,_0x2fef1c['get'](_0x54c752));}}for(const _0xa67ec3 of _0x459691){const _0x1c86a9=_0x552448['insertions'][_0xa67ec3],_0x57f822=this['_getBaseVids'](_0x552448['deletions'][_0xa67ec3]);let _0x3f0ee2=0x0;for(const _0x4b2197 of _0x1c86a9){const _0x4d2b39=this['_getVidAttributeName'](_0x4b2197),_0x50123c=_0x4b2197['item']['getAttribute'](_0x4d2b39);if(!_0x133bbe['has'](_0x50123c)&&!_0x173144['has'](_0x50123c)){if(_0x228d6f['has'](_0x50123c))_0x3f0ee2++;else{if(_0x50123c!=_0x57f822[_0x3f0ee2]){const _0x3c82da=_0x2fef1c['get'](_0x50123c)||_0x2fef1c['get'](_0x57f822[_0x3f0ee2]);for(;_0x50123c!=_0x57f822[_0x3f0ee2];)_0x228d6f['has'](_0x57f822[_0x3f0ee2])||(_0x173144['set'](_0x57f822[_0x3f0ee2],_0x3c82da),_0x2fef1c['set'](_0x57f822[_0x3f0ee2],_0x3c82da)),_0x3f0ee2++;}_0x3f0ee2++;}}}}for(const _0x2cc069 of _0x459691){const _0x3950e3=_0x552448['insertions'][_0x2cc069];for(const _0x5054ce of _0x3950e3){const _0x4e9030=this['_getVidAttributeName'](_0x5054ce),_0x40d751=_0x5054ce['item']['getAttribute'](_0x4e9030);if(_0x173144['has'](_0x40d751)){const _0x44ced3=_0x173144['get'](_0x40d751);_0x228d6f['has'](_0x40d751)||_0x228d6f['set'](_0x40d751,{..._0x44ced3}),_0x133bbe['set'](_0x40d751,{..._0x44ced3});}}}for(const _0xce7307 of _0x228d6f['keys']())_0xce7307>=this['_startingRevisionId']&&_0x228d6f['delete'](_0xce7307);const _0x3af0b7=new Map();for(const _0x6110d3 of _0x459691){let _0xceeae8=_0x552448['insertions'][_0x6110d3];for(const _0x16de7b of _0xceeae8)if(_0x16de7b['item']['is']('element','tableCell')){const _0x29fda5=this['_getVidAttributeName'](_0x16de7b),_0x3cdff2=_0x16de7b['item']['getAttribute'](_0x29fda5);if(_0x133bbe['has'](_0x3cdff2)){const _0xc91889=_0x16de7b['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d2fc4=_0x3af0b7['get'](_0xc91889)||new Set();_0x5d2fc4['add'](_0x133bbe['get'](_0x3cdff2)['userId']),_0x3af0b7['set'](_0xc91889,_0x5d2fc4);}}_0xceeae8=_0x552448['deletions'][_0x6110d3];for(const _0x59fd96 of _0xceeae8)if(_0x59fd96['item']['is']('element','tableCell')){const _0x1f82f3=this['_getVidAttributeName'](_0x59fd96),_0x218978=_0x59fd96['item']['getAttribute'](_0x1f82f3);if(_0x228d6f['has'](_0x218978)){const _0x4e62d4=_0x59fd96['item']['parent']['parent']['getAttribute']('vid_start'),_0x28f52c=_0x3af0b7['get'](_0x4e62d4)||new Set();_0x28f52c['add'](_0x228d6f['get'](_0x218978)['userId']),_0x3af0b7['set'](_0x4e62d4,_0x28f52c);}}for(const _0x40627b of _0x3af0b7['keys']())(_0x133bbe['has'](_0x40627b)||_0x228d6f['has'](_0x40627b))&&_0x3af0b7['delete'](_0x40627b);}for(const _0x3451f2 of _0x459691){const _0x395d20=_0x552448['insertions'][_0x3451f2];let _0x1980fa=null,_0x1a4a00=null;for(const _0x37ecbb of _0x395d20){const _0x58ce50=this['_getVidAttributeName'](_0x37ecbb),_0x2b291c=_0x37ecbb['item']['getAttribute'](_0x58ce50),_0x1074af=_0x3af0b7['get'](_0x2b291c);_0x1074af&&'elementStart'==_0x37ecbb['type']&&(_0x1980fa=Array['from'](_0x1074af)[0x0],_0x1a4a00=_0x37ecbb['item']['getAttribute']('vid_end')),_0x1980fa&&(_0x228d6f['set'](_0x2b291c,{'userId':_0x1980fa}),_0x133bbe['set'](_0x2b291c,{'userId':_0x1980fa})),_0x2b291c==_0x1a4a00&&(_0x1980fa=null,_0x1a4a00=null);}}const _0x1e1c96={},_0x2b0aa8=new Set();for(const _0x257741 of _0x459691){const _0x44774a=_0x271f6d['deletions'][_0x257741],_0x55b3f2=_0x271f6d['insertions'][_0x257741];for(const {userId:_0x4501c5}of this['_touchedMarkers']['values']())null!==_0x4501c5&&_0x2b0aa8['add'](_0x4501c5);for(const {userId:_0x32f910}of this['_touchedRoots']['values']())null!==_0x32f910&&_0x2b0aa8['add'](_0x32f910);this['_markChanges'](_0x55b3f2,_0x552448['insertions'][_0x257741],_0x133bbe,'insertion',_0x2b0aa8),this['_markChanges'](_0x44774a,_0x552448['deletions'][_0x257741],_0x228d6f,'deletion',_0x2b0aa8),_0x1e1c96[_0x257741]={'insertions':this['_prepareViewToSave'](_0x55b3f2),'deletions':this['_prepareViewToSave'](_0x44774a),'attachChange':this['_touchedRoots']['get'](_0x257741)||null,'attributesBefore':_0x1a7cd1(this['_baseRootsAttributes']['get'](_0x257741))||{},'attributesAfter':_0x1a7cd1(this['_diffRootsAttributes']['get'](_0x257741))};}return{'diffData':_0x1e1c96,'authorsIds':Array['from'](_0x2b0aa8)};}['_processRootBeforeSave'](_0x257540){for(const [,_0x206751]of _0x257540['markers']){const _0x52c2a0=_0x206751['start']['getAncestors']()['filter'](_0x2113da=>'tableCell'==_0x2113da['name']);for(const _0x35748d of _0x52c2a0)0x1==_0x35748d['childCount']&&_0x35748d['getChild'](0x0)['is']('element','paragraph')&&_0x35748d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x44ed80){this['_processRootBeforeSave'](_0x44ed80);const _0x19e5f5=this['editor']['data']['toView'](_0x44ed80,{}),_0x4ea14e=Array['from'](_0x19e5f5['getChildren']())['map'](_0x4b3d39=>this['_getViewJson'](_0x4b3d39));return JSON['stringify'](_0x4ea14e);}['_getViewJson'](_0x1260c8){if(_0x1260c8['is']('$text'))return _0x1260c8['data'];{const _0x31c4fc=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1dce1e=_0x1260c8,_0x12787b=this['editor']['data']['htmlProcessor']['domConverter'],_0x5c4cfa={'type':_0x31c4fc['_getTypeCharForViewElement'](_0x1dce1e),'name':_0x1dce1e['name'],'attributes':Array['from'](_0x1dce1e['getAttributes']()),'children':Array['from'](_0x1dce1e['getChildren']())['map'](_0x541f87=>this['_getViewJson'](_0x541f87))};if(_0x1260c8['is']('uiElement')&&'$comment'!=_0x1260c8['name']){const _0x424051=_0x1260c8['render'](_0x12787b['domDocument'],_0x12787b);_0x5c4cfa['children']['push'](_0x424051['outerHTML']);}else{if(_0x1260c8['is']('rawElement')){const _0x578b1c=_0x12787b['domDocument']['createElement'](_0x1dce1e['name']);_0x1260c8['render'](_0x578b1c,_0x12787b),_0x5c4cfa['children']['push'](_0x578b1c['innerHTML']);}}const _0x51e459=Array['from'](_0x1dce1e['getCustomProperties']());_0x51e459['length']>0x0&&(_0x5c4cfa['customProperties']=_0x51e459);const _0x15f59b=_0x1dce1e['getFillerOffset']();return null!==_0x15f59b&&(_0x5c4cfa['fillerOffset']=_0x15f59b),_0x5c4cfa;}}['_markChanges'](_0x391aa7,_0x4dba86,_0x578203,_0x141452,_0xae9c1a){let _0x2e2f4b=null,_0x315a1d=null,_0x2ce7ee=0x0;const _0x4ab937=this['editor']['model'];for(let _0x3fb732=0x0;_0x3fb732<_0x4dba86['length'];_0x3fb732++){const _0x1d06d9=this['_getVidAttributeName'](_0x4dba86[_0x3fb732]),_0x421d26=_0x4dba86[_0x3fb732]['item']['getAttribute'](_0x1d06d9),_0x5e6137=_0x578203['get'](_0x421d26),_0x51daa7=_0x3fb732==_0x4dba86['length']-0x1;(!_0x2e2f4b&&_0x5e6137&&(_0x2e2f4b=_0x5e6137,_0x315a1d=_0x4dba86[_0x3fb732]),_0x2e2f4b&&(!_0x5e6137||_0x5e6137['userId']!=_0x2e2f4b['userId']))&&(_0x40b08f(_0x5e6137,F(_0x315a1d,_0x391aa7,_0x4ab937),F(_0x4dba86[_0x3fb732],_0x391aa7,_0x4ab937)),_0x2e2f4b=_0x5e6137||null,_0x315a1d=_0x5e6137?_0x4dba86[_0x3fb732]:null),_0x2e2f4b&&_0x51daa7&&_0x40b08f(_0x5e6137,F(_0x315a1d,_0x391aa7,_0x4ab937),B(_0x4dba86[_0x3fb732],_0x391aa7,_0x4ab937));}function _0x40b08f(_0x16cd50,_0x2cedb0,_0x206685){const _0x297cfc=_0x2e2f4b['userId'],_0x394031='revision:'+_0x141452+':'+_0x297cfc+':'+_0x2ce7ee++,_0x53f257=_0x4ab937['createRange'](_0x2cedb0,_0x206685);_0x391aa7['markers']['set'](_0x394031,_0x53f257),null!==_0x297cfc&&_0xae9c1a['add'](_0x297cfc);}}['_getVidAttributeName'](_0x48b789){switch(_0x48b789['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x262d5e,_0x47075a){_0x262d5e['baseVersion']=null;for(const _0x17a4aa in _0x262d5e){const _0x4745d2=_0x262d5e[_0x17a4aa];if(_0x4745d2 instanceof ft){const _0xeb7b33=_0x47075a['get'](_0x4745d2['root']['rootName']);_0x262d5e[_0x17a4aa]=this['_fixPosition'](_0x4745d2,_0xeb7b33);}if(_0x4745d2 instanceof lt){const _0x21b20a=_0x47075a['get'](_0x4745d2['root']['rootName']);_0x262d5e[_0x17a4aa]=this['_fixRange'](_0x4745d2,_0x21b20a);}'root'===_0x17a4aa&&(_0x262d5e['root']=_0x47075a['get'](_0x262d5e['root']['rootName']));}}['_fixRange'](_0x436296,_0x4255d0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x436296['start'],_0x4255d0),this['_fixPosition'](_0x436296['end'],_0x4255d0));}['_fixPosition'](_0x2afd15,_0x1ece42){return this['editor']['model']['createPositionFromPath'](_0x1ece42,_0x2afd15['path'],_0x2afd15['stickiness']);}['_handleInsertOperation'](_0x54043c){const _0x3570c7=this['_idsRoots']['get'](_0x54043c['position']['root']['rootName']),_0x374b0e=this['_fixPosition'](_0x54043c['position'],_0x3570c7),_0x1bef92=null===_0x54043c['_authorId']?null:_0x54043c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15ed99=_0x374b0e['parent'],_0x4d9414=this['_revisionId'],_0x3a584c=[];for(const _0xca2573 of _0x54043c['nodes'])if(_0xca2573['is']('element'))_0x3a584c['push'](this['_makeIdsRoot'](_0xca2573));else{for(let _0x347d00=0x0;_0x347d00<_0xca2573['offsetSize'];_0x347d00++)_0x3a584c['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1db7f4=this['_revisionId'];for(let _0x9aade1=_0x4d9414;_0x9aade1<_0x1db7f4;_0x9aade1++)this['_touched']['set'](_0x9aade1,{'userId':_0x1bef92});_0x15ed99['_insertChild'](_0x374b0e['offset'],_0x3a584c);}['_handleMoveOperation'](_0x6794e0){(_0x6794e0=this['_cloneOperation'](_0x6794e0,this['_idsRoots']))['_execute']();const _0x1afc1a=null===_0x6794e0['_authorId']?null:_0x6794e0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a1c6e=_0x6794e0['getMovedRangeStart'](),_0xa6e78c=_0x4a1c6e['parent'],_0x29dca6=_0x4a1c6e['offset'];!function _0x112a55(_0x55c56e,_0x578e5c,_0x4e68a2,_0x312253){for(let _0x5dddfe=_0x4e68a2;_0x5dddfe<_0x312253;_0x5dddfe++){const _0x1b0e72=_0x578e5c['getChild'](_0x5dddfe);_0x1b0e72['is']('element','$text')?_0x55c56e['set'](_0x1b0e72['getAttribute']('vid'),{'userId':_0x1afc1a}):(_0x55c56e['set'](_0x1b0e72['getAttribute']('vid_start'),{'userId':_0x1afc1a}),_0x112a55(_0x55c56e,_0x1b0e72,0x0,_0x1b0e72['childCount']),_0x55c56e['set'](_0x1b0e72['getAttribute']('vid_end'),{'userId':_0x1afc1a}));}}(this['_touched'],_0xa6e78c,_0x29dca6,_0x29dca6+_0x6794e0['howMany']);}['_handleMergeOperation'](_0x51132e){const _0x25e47a=null===(_0x51132e=this['_cloneOperation'](_0x51132e,this['_idsRoots']))['_authorId']?null:_0x51132e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d418f=_0x51132e['targetPosition']['parent'],_0x18d018=_0x51132e['sourcePosition']['parent'],_0x3dc13b=_0x4d418f['getAttribute']('vid_end'),_0x3fb3fc=_0x18d018['getAttribute']('vid_start');_0x4d418f['_setAttribute']('vid_end',_0x18d018['getAttribute']('vid_end')),_0x18d018['_setAttribute']('vid_end',_0x3dc13b),this['_touched']['set'](_0x3fb3fc,{'userId':_0x25e47a}),this['_touched']['set'](_0x3dc13b,{'userId':_0x25e47a}),_0x51132e['_execute']();}['_handleSplitOperation'](_0x3e2adb){const _0x50aacb=null===(_0x3e2adb=this['_cloneOperation'](_0x3e2adb,this['_idsRoots']))['_authorId']?null:_0x3e2adb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ec318=_0x3e2adb['graveyardPosition'],_0x551596=_0x3e2adb['splitPosition']['parent'];_0x3e2adb['_execute']();const _0x2313ea=_0x551596['getAttribute']('vid_end'),_0x59e5cb=_0x3e2adb['insertionPosition']['nodeAfter'];if(_0x5ec318){const _0x4c6da0=_0x59e5cb['getAttribute']('vid_end'),_0xf15cf7=_0x551596['getAttribute']('vid_end');_0x551596['_setAttribute']('vid_end',_0x4c6da0),_0x59e5cb['_setAttribute']('vid_end',_0xf15cf7),this['_touched']['set'](_0x551596['getAttribute']('vid_end'),{'userId':_0x50aacb}),this['_touched']['set'](_0x59e5cb['getAttribute']('vid_start'),{'userId':_0x50aacb});}else{const _0x53d985=this['_revisionId']++,_0x47f709=this['_revisionId']++;_0x551596['_setAttribute']('vid_end',_0x53d985),_0x59e5cb['_setAttribute']('vid_start',_0x47f709),_0x59e5cb['_setAttribute']('vid_end',_0x2313ea),this['_touched']['set'](_0x53d985,{'userId':_0x50aacb}),this['_touched']['set'](_0x47f709,{'userId':_0x50aacb});}}['_handleMarkerOperation'](_0x2e6e2a){if(!_0x2e6e2a['affectsData'])return;const _0x5df63d=(_0x2e6e2a=this['_cloneOperation'](_0x2e6e2a,this['_diffRoots']))['oldRange']?_0x2e6e2a['oldRange']['root']:null,_0x302192=_0x2e6e2a['newRange']?_0x2e6e2a['newRange']['root']:null;_0x5df63d&&this['_markers']['delete'](_0x2e6e2a['name']),_0x302192&&this['_markers']['set'](_0x2e6e2a['name'],_0x2e6e2a['newRange']['clone']());const _0x3f2b11=null===_0x2e6e2a['_authorId']?null:_0x2e6e2a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1026a5=_0x2e6e2a['name'];if(!this['_touchedMarkers']['has'](_0x1026a5))return void this['_touchedMarkers']['set'](_0x1026a5,{'range':_0x2e6e2a['oldRange'],'userId':_0x3f2b11});const _0x45d9bf=this['_touchedMarkers']['get'](_0x1026a5),_0x1e491c=_0x45d9bf['range'],_0x3e6ce5=_0x2e6e2a['newRange'];null==_0x1e491c&&null==_0x3e6ce5||_0x1e491c&&_0x3e6ce5&&_0x1e491c['isEqual'](_0x3e6ce5)?this['_touchedMarkers']['delete'](_0x2e6e2a['name']):_0x45d9bf['userId']=_0x3f2b11;}['_handleRootOperation'](_0x3c747b,_0x35d564){this['_diffRoots']['has'](_0x3c747b['rootName'])?this['_diffRoots']['get'](_0x3c747b['rootName'])['_isAttached']=_0x3c747b['isAdd']:(this['_diffRoots']['set'](_0x3c747b['rootName'],P(_0x3c747b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3c747b['rootName'],{}),_0x35d564&&this['_idsRoots']['set'](_0x3c747b['rootName'],P(_0x3c747b['rootName'],!0x0)));const _0x3af8da=null===_0x3c747b['_authorId']?null:_0x3c747b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52484b=this['_touchedRoots']['get'](_0x3c747b['rootName']);_0x52484b&&_0x52484b['userId']===_0x3af8da?this['_touchedRoots']['delete'](_0x3c747b['rootName']):this['_touchedRoots']['set'](_0x3c747b['rootName'],{'userId':_0x3af8da,'isAttached':_0x3c747b['isAdd']});}['_handleRootAttributeOperation'](_0x52d6e1){const _0x32e1e3=this['_diffRootsAttributes']['get'](_0x52d6e1['root']['rootName']);null===_0x52d6e1['newValue']?delete _0x32e1e3[_0x52d6e1['key']]:_0x32e1e3[_0x52d6e1['key']]=_0x52d6e1['newValue'];}}function N(_0x30d006){const _0x32a758=P(_0x30d006['rootName'],_0x30d006['isAttached']());for(const _0x42ff10 of _0x30d006['getChildren']()){const _0x2df788=_0x42ff10['_clone'](!0x0);_0x32a758['_appendChild'](_0x2df788);}return _0x32a758;}function P(_0x122eef,_0x29eb9f=!0x0){const _0x8ca628=new vt();return _0x8ca628['rootName']=_0x122eef,_0x8ca628['_isAttached']=_0x29eb9f,_0x8ca628['isAttached']=()=>_0x8ca628['_isAttached'],_0x8ca628;}function F(_0x1144be,_0x54d913,_0x43eeea){const _0xfb0d38='elementEnd'==_0x1144be['type']?_0x43eeea['createPositionAt'](_0x1144be['item'],'end'):_0x43eeea['createPositionBefore'](_0x1144be['item']);return _0x43eeea['createPositionFromPath'](_0x54d913,_0xfb0d38['path'],_0xfb0d38['stickiness']);}function B(_0x228654,_0x46aa96,_0x5ec38d){const _0x1a5c49='elementStart'==_0x228654['type']?_0x5ec38d['createPositionAt'](_0x228654['item'],0x0):_0x5ec38d['createPositionAfter'](_0x228654['item']);return _0x5ec38d['createPositionFromPath'](_0x46aa96,_0x1a5c49['path'],_0x1a5c49['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x26994c,_0x63b7c5){super(_0x26994c),this['focusTracker']=new _0x1bca59(),this['keystrokes']=new _0x34f2e4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x63b7c5),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x573f6c(this);}['render'](){super['render'](),_0x2425f0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x320c66=_0x524a58=>_0x524a58['stopPropagation']();this['keystrokes']['set']('arrowright',_0x320c66),this['keystrokes']['set']('arrowleft',_0x320c66),this['keystrokes']['set']('arrowup',_0x320c66),this['keystrokes']['set']('arrowdown',_0x320c66);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x53e07c){this['revisionNameInputView']['fieldView']['element']['value']=_0x53e07c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2b51f9){const _0x4687bc=new _0x263937(this['locale'],_0x399d5e),_0xf840ed=_0x4687bc['fieldView'];_0xf840ed['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5458ac=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2b51f9&&(_0x5458ac+='\x20('+g(this['locale'],'optional')+')'),(_0x4687bc['label']=_0x5458ac,_0xf840ed['on']('input',()=>{this['revisionNameInputValue']=_0xf840ed['element']['value']['trim']();}),_0x4687bc);}}class f extends _0x3a83bf{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1966eb=this['editor'],_0x189850=_0x1966eb['plugins']['get']('RevisionTracker');_0x1966eb['ui']['componentFactory']['add']('revisionHistory',_0x3e8ee8=>{const _0xe19b10=_0x72e1f8(_0x3e8ee8),_0x456282=_0xe19b10['panelView']['children'],_0x23fd55=new _0x456cd6(_0x3e8ee8),_0x4fba12=new _0x3b4857(_0x3e8ee8),_0x9032df=new te(_0x3e8ee8),_0x37eb80=new _0x3b4857(_0x3e8ee8),_0x319688=new te(_0x3e8ee8);return _0xe19b10['bind']('isEnabled')['to'](_0x189850,'isReady',_0x189850,'isEnabled',_0x1966eb,'isReadOnly',(_0x23eb3a,_0x18f7ed,_0x133f43)=>_0x23eb3a&&_0x18f7ed&&!_0x133f43),_0xe19b10['buttonView']['set']({'icon':_0x16f088,'label':g(_0x3e8ee8,'Revision\x20history'),'tooltip':!0x0}),_0x9032df['set']({'label':g(_0x3e8ee8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x9032df['bind']('isEnabled')['to'](_0x189850,'isReady',_0x189850,'isEnabled',_0x1966eb,'isReadOnly',(_0x40a37c,_0x53e383,_0x1ffd5b)=>_0x40a37c&&_0x53e383&&!_0x1ffd5b),_0x9032df['on']('execute',()=>this['_showDialog']()),_0x319688['set']({'label':g(_0x3e8ee8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x319688['bind']('isEnabled')['to'](_0x189850,'isReady',_0x1966eb,'isReadOnly',(_0x2192d1,_0x5e9201)=>_0x2192d1&&!_0x5e9201),_0x319688['on']('execute',()=>{_0x1966eb['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xe19b10['isOpen']=!0x1,_0x1966eb['editing']['view']['focus']();}),_0x4fba12['children']['add'](_0x9032df),_0x37eb80['children']['add'](_0x319688),_0x23fd55['role']='menu',_0x23fd55['items']['addMany']([_0x4fba12,_0x37eb80]),_0x456282['add'](_0x23fd55),_0xe19b10;}),_0x1966eb['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x57ed78=this['editor'],_0x453e56=_0x57ed78['locale'],_0x4c0935=new _0x2bb94e(_0x453e56),_0x16f05b=new _0x3cc535(_0x453e56);_0x4c0935['buttonView']['set']({'icon':_0x16f088,'label':g(_0x453e56,'Revision\x20history')});const _0xba1dbd=new _0x4b7eb2(_0x453e56,_0x4c0935),_0x3dd68f=new _0x36566e(_0x453e56);_0x3dd68f['set']({'label':g(_0x453e56,'Save\x20current\x20revision')}),_0x3dd68f['delegate']('execute')['to'](_0x4c0935),_0x3dd68f['on']('execute',()=>{this['_showDialog']();}),_0xba1dbd['children']['add'](_0x3dd68f),_0x16f05b['items']['add'](_0xba1dbd);const _0x2d2bde=new _0x4b7eb2(_0x453e56,_0x4c0935),_0x4c2101=new _0x36566e(_0x453e56);return _0x4c2101['set']({'label':g(_0x453e56,'Open\x20revision\x20history')}),_0x4c2101['delegate']('execute')['to'](_0x4c0935),_0x4c2101['on']('execute',()=>{_0x57ed78['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2d2bde['children']['add'](_0x4c2101),_0x16f05b['items']['add'](_0x2d2bde),_0x4c0935['panelView']['children']['add'](_0x16f05b),_0x4c0935;}['_showDialog'](){const _0xbf8828=this['editor'],_0x5a15f1=_0xbf8828['locale'],_0x57f6e8=_0xbf8828['plugins']['get']('Dialog'),_0x5af262=_0xbf8828['plugins']['get']('RevisionTracker');function _0x4957be(_0x3a131f){_0xbf8828['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3a131f['revisionName']?_0x3a131f['revisionNameInputView']['errorText']=g(_0x5a15f1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xbf8828['plugins']['get'](u)['saveRevision']({'name':_0x3a131f['revisionName']}),_0x57f6e8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4957be(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x57f6e8['show']({'id':'revisionSave','title':g(_0x5a15f1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0xbf8828['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x57f6e8['hide']()},{'label':g(_0xbf8828['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2b4d66){_0x2b4d66['bind']('isEnabled')['to'](_0x5af262,'isReady',_0x5af262,'isEnabled',_0xbf8828,'isReadOnly',(_0x6bcc84,_0x3eef82,_0x4e46c8)=>_0x6bcc84&&_0x3eef82&&!_0x4e46c8);},'onExecute':()=>_0x4957be(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x55129a=this['editor'],_0x1d639d=_0x55129a['locale'];this['_saveRevisionFormView']=new hs(_0x1d639d,_0x55129a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1cd8de,_0x404a1f){super(_0x1cd8de),this['_model']=_0x404a1f,this['changeId']=_0x404a1f['id'];const _0x13f916=this['bindTemplate'],_0x14e17b=g(_0x1cd8de,_0x404a1f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x404a1f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x404a1f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x13f916['to']('type',_0x1a018a=>'ck-revision-change__'+_0x1a018a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x14e17b}]},{'text':'\x20'+_0x404a1f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x482aa6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3cfeae){super(),this['id']=_0x3cfeae['id']||_0x56f194(),this['author']=_0x3cfeae['author'],this['type']=_0x3cfeae['type'],this['data']=_0x3cfeae['data']||{},this['rootName']=_0x3cfeae['rootName'],this['set']('createdAt',_0x3cfeae['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(_0x14275b,_0x585631){this['newRevisionId']=_0x14275b,this['oldRevisionId']=_0x585631,this['changes']=new _0x3c755c();}['_setChanges'](_0x266cd0){for(const _0x2468b6 of _0x266cd0)this['changes']['add'](_0x2468b6);}}class m extends _0x3a83bf{['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[_0x4fe82c,_0x487f43,I,V];}constructor(_0x41d82d){super(_0x41d82d),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',(_0x2f55ab,_0x4f8c2b,_0x5cb89a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2bb31f=>{for(const _0x1f8dba of this['editor']['editing']['view']['document']['roots'])_0x5cb89a?_0x2bb31f['removeClass']('ck-editor__editable__overlay',_0x1f8dba):_0x2bb31f['addClass']('ck-editor__editable__overlay',_0x1f8dba);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1aae30=>null!==_0x1aae30),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x33f776,_0xbe61ce,_0x486683)=>_0x33f776&&_0x486683?_0xbe61ce['changes']['getIndex'](_0x486683):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e929d,_0xe31f4b)=>_0x5e929d?_0xe31f4b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x487f43);}['init'](){const _0xf9c9a7=this['editor'],_0x17e8b1=new wt(_0xf9c9a7,{'direction':'backward'}),_0x2b67b1=new wt(_0xf9c9a7,{'direction':'forward'});(_0xf9c9a7['commands']['add']('showPreviousChange',_0x17e8b1),_0xf9c9a7['commands']['add']('showNextChange',_0x2b67b1),_0xf9c9a7['commands']['add']('restoreRevision',new mt(_0xf9c9a7)),this['on']('change:numberOfChanges',()=>{_0x17e8b1['refresh'](),_0x2b67b1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xf9c9a7['enableReadOnlyMode']('revision-viewer'),_0xf9c9a7['plugins']['has']('WidgetToolbarRepository'))&&_0xf9c9a7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x16475f){return await this['_utils']['loadRevisionData'](_0x16475f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x16475f);}async['getRevisionRootsAttributes'](_0x27e06d){return await this['_utils']['loadRevisionData'](_0x27e06d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x27e06d);}async['compare'](_0x3e9734,_0x5c76f7,_0x4a8206=!0x1){if(!this['isEnabled'])return;const _0x2be5dc=this['diff'],_0x38b784=this['repository'],_0x390068='string'==typeof _0x3e9734?_0x38b784['getRevision'](_0x3e9734):_0x3e9734,_0x3d5a64='string'==typeof _0x5c76f7?_0x38b784['getRevision'](_0x5c76f7):_0x5c76f7,_0x57764a=_0x390068['id'],_0x3517fd=_0x3d5a64?_0x3d5a64['id']:null;if(!_0x4a8206&&this['diff']&&this['diff']['newRevisionId']===_0x57764a&&this['diff']['oldRevisionId']===_0x3517fd)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x57764a,_0x3517fd);const _0x355823=this['_getRevisionsRange'](_0x390068,_0x3d5a64,!0x0)['map'](_0x4df5dc=>this['_utils']['loadRevisionData'](_0x4df5dc,this['adapter']));return _0x355823['push'](new Promise(_0x337688=>{setTimeout(_0x337688,0x14);})),Promise['all'](_0x355823)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2bda63=this['_getDiff'](_0x57764a,_0x3517fd);for(const _0x3b4c55 of _0x2bda63['changes'])this['_changeIdToChange']['set'](_0x3b4c55['id'],_0x3b4c55);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1bf9e6=>{for(const _0x11d171 of this['editor']['model']['document']['getRootNames']())_0x1bf9e6['detachRoot'](_0x11d171);for(const _0x3d370e of Object['keys'](_0x2bda63['model'])){const _0x11ba9e=_0x1bf9e6['addRoot'](_0x3d370e);for(const _0x1a29ff of Object['keys'](_0x2bda63['attributes'][_0x3d370e]))_0x1bf9e6['setAttribute'](_0x1a29ff,_0x2bda63['attributes'][_0x3d370e][_0x1a29ff],_0x11ba9e);_0x1bf9e6['insert'](_0x2bda63['model'][_0x3d370e],_0x11ba9e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2bda63['changes'])),this['isReady']=!0x0;})['catch'](_0x4b69db=>{console['error'](_0x4b69db),this['_cleanUp'](),_0x2be5dc&&(this['diff']=_0x2be5dc),this['isReady']=!0x0;});}['addRevisionData'](_0x3026a1,_0x50eda5){const _0x15296e=this['repository']['createRevision'](_0x3026a1);return _0x15296e['on']('_update',(_0xb97670,_0x285b45,_0x24974d)=>_0x50eda5(_0x285b45,_0x24974d,_0x15296e)),this['repository']['addRevision'](_0x15296e),_0x15296e;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x10d976=>{for(const _0x2395ad of this['editor']['model']['document']['getRootNames']())_0x10d976['detachRoot'](_0x2395ad);});}['_sortAndFilterDiffChanges'](_0x4b9949){const _0x35c484=[],_0x1224d9=new Map();for(const _0x4771e3 of this['editor']['model']['document']['getRootNames']()){const _0x5a27da=this['editor']['editing']['view']['getDomRoot'](_0x4771e3);if(!_0x5a27da)continue;const _0x2673fe=_0x5a27da['getClientRects']()['item'](0x0);_0x2673fe&&(_0x35c484['push'](_0x4771e3),_0x1224d9['set'](_0x4771e3,_0x2673fe));}return _0x35c484['sort']((_0x49f86f,_0x4230bb)=>{const _0x2280e1=_0x1224d9['get'](_0x49f86f),_0x204c32=_0x1224d9['get'](_0x4230bb);return _0x2280e1['y']-_0x204c32['y']||_0x2280e1['x']-_0x204c32['x'];}),(_0x4b9949=_0x4b9949['filter'](_0x3298cd=>_0x35c484['includes'](_0x3298cd['rootName'])))['sort']((_0x3ed2a9,_0xa047a)=>_0x35c484['indexOf'](_0x3ed2a9['rootName'])-_0x35c484['indexOf'](_0xa047a['rootName'])),_0x4b9949;}['_makeTape'](_0x27129c){const _0x42195c=Array['from'](_0x27129c['markers'])['filter'](([_0x18c109,_0x1e23d1])=>_0x18c109['startsWith']('revision:')&&!_0x1e23d1['isCollapsed']),_0x12f195=Array['from'](this['editor']['model']['createRangeIn'](_0x27129c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x42195c['length'])for(const _0x4cf7af of _0x12f195){const [_0x5ef593,_0x5c6120]=_0x42195c[0x0],[,_0x9a535b,_0x1250cd]=_0x5ef593['split'](':');if(_0x5c6120['end']['isEqual'](_0x4cf7af['nextPosition'])&&_0x42195c['shift'](),(_0x4cf7af['previousPosition']['isEqual'](_0x5c6120['start'])||_0x4cf7af['previousPosition']['isAfter'](_0x5c6120['start']))&&('insertion'==_0x9a535b?_0x4cf7af['isAdded']={'userId':_0x1250cd}:'deletion'==_0x9a535b&&(_0x4cf7af['isRemoved']={'userId':_0x1250cd})),0x0==_0x42195c['length'])break;}return _0x12f195;}['_refreshStartEndIndex'](_0x1458d3){const _0x7d04f=new Map();for(let _0xeb4a8d=0x0;_0xeb4a8d<_0x1458d3['length'];_0xeb4a8d++)'text'===_0x1458d3[_0xeb4a8d]['type']?(_0x1458d3[_0xeb4a8d]['item']['startIndex']=_0xeb4a8d,_0x1458d3[_0xeb4a8d]['item']['endIndex']=_0xeb4a8d):('elementStart'===_0x1458d3[_0xeb4a8d]['type']?_0x1458d3[_0xeb4a8d]['item']['startIndex']=_0xeb4a8d:'elementEnd'===_0x1458d3[_0xeb4a8d]['type']&&(_0x1458d3[_0xeb4a8d]['item']['endIndex']=_0xeb4a8d),_0x7d04f['set'](_0x1458d3[_0xeb4a8d]['id'],_0xeb4a8d));for(const _0x164583 of _0x7d04f['values']())'elementStart'===_0x1458d3[_0x164583]['type']?_0x1458d3[_0x164583]['item']['endIndex']=_0x7d04f['get'](_0x1458d3[_0x164583]['pairId']):'elementEnd'===_0x1458d3[_0x164583]['type']&&(_0x1458d3[_0x164583]['item']['startIndex']=_0x7d04f['get'](_0x1458d3[_0x164583]['pairId']));}['_processTape'](_0x2c66d4){for(let _0x261486=0x0;_0x261486<_0x2c66d4['length'];_0x261486++){if('elementStart'===_0x2c66d4[_0x261486]['type'])_0x2c66d4[_0x261486]['item']['startIndex']=_0x261486;else{if('elementEnd'===_0x2c66d4[_0x261486]['type']){_0x2c66d4[_0x261486]['item']['endIndex']=_0x261486;const _0x500549=_0x2c66d4[_0x261486]['item']['startIndex'];_0x2c66d4[_0x500549]['pairId']=_0x2c66d4[_0x261486]['id'],_0x2c66d4[_0x261486]['pairId']=_0x2c66d4[_0x500549]['id'];}else _0x2c66d4[_0x261486]['item']['startIndex']=_0x261486,_0x2c66d4[_0x261486]['item']['endIndex']=_0x261486,_0x2c66d4[_0x261486]['pairId']=null;}_0x2c66d4[_0x261486]['markersStart']||(_0x2c66d4[_0x261486]['markersStart']=[],_0x2c66d4[_0x261486]['markersEnd']=[]);}}['_markInsertions'](_0x31f124,_0x5ea45a){const _0x5de569=_0x31f124['filter'](_0x6cc96f=>!_0x6cc96f['isAdded']);for(let _0x3b71e6=0x0;_0x3b71e6<_0x5ea45a['length'];_0x3b71e6++)_0x5ea45a[_0x3b71e6]['isAdded']&&(_0x5de569[_0x3b71e6]['isAdded']=_0x5ea45a[_0x3b71e6]['isAdded']);}['_getDiff'](_0xbca8e7,_0x58d8cf=null){const _0x4d3496=this['repository']['getRevision'](_0xbca8e7),_0x57768a=_0x58d8cf?this['repository']['getRevision'](_0x58d8cf):null,_0x441b86=this['_getRevisionsRange'](_0x4d3496,_0x57768a),_0x214f4a=_0x441b86[_0x441b86['length']-0x1],_0x33179c=new Map(),_0xebfff2={'model':{},'attributes':{},'changes':[]},_0xb8d657=new Set(),_0x2a3d9a=new Map();for(let _0x425065=_0x441b86['length']-0x1;_0x425065>=0x0;_0x425065--){const _0x5a237a=_0x441b86[_0x425065];for(const _0x1d2b7b of Object['keys'](_0x5a237a['diffData']))if(_0x5a237a['diffData'][_0x1d2b7b]['attachChange']){const _0x5cb855=_0x5a237a['diffData'][_0x1d2b7b]['attachChange'];_0x5cb855['isAttached']?(_0xb8d657['add'](_0x1d2b7b),_0x2a3d9a['has'](_0x1d2b7b)&&_0x2a3d9a['get'](_0x1d2b7b)['userId']==_0x5cb855['userId']?_0x2a3d9a['delete'](_0x1d2b7b):_0x2a3d9a['set'](_0x1d2b7b,_0x5cb855)):_0x2a3d9a['has'](_0x1d2b7b)?(_0xb8d657['delete'](_0x1d2b7b),_0x2a3d9a['delete'](_0x1d2b7b)):(_0xb8d657['add'](_0x1d2b7b),_0x2a3d9a['set'](_0x1d2b7b,_0x5cb855));}else _0xb8d657['add'](_0x1d2b7b);}for(const _0x2cc43e of _0xb8d657){const _0x42df91=_0x2a3d9a['has'](_0x2cc43e)&&!_0x2a3d9a['get'](_0x2cc43e)['isAttached'];let _0x21a11c=_0x42df91?_0x441b86['length']-0x1:0x0;const _0x2698b5=_0x42df91?-0x1:0x1;for(;_0x441b86[_0x21a11c];){const _0x53fe9e=_0x441b86[_0x21a11c];if(_0x53fe9e['diffData'][_0x2cc43e]){const _0x52eaa2=_0x42df91?_0x53fe9e['diffData'][_0x2cc43e]['attributesBefore']:_0x53fe9e['diffData'][_0x2cc43e]['attributesAfter'];_0xebfff2['attributes'][_0x2cc43e]=_0x52eaa2?_0x1a7cd1(_0x52eaa2):{};break;}_0x21a11c+=_0x2698b5;}}for(const _0x25b596 of _0x441b86){_0x25b596['model']={};for(const _0x11a6fc of _0x25b596['authors'])_0x33179c['set'](_0x11a6fc['id'],_0x11a6fc);for(const _0x30d70d of _0xb8d657){const _0x23e165=_0x25b596['diffData'][_0x30d70d]?_0x25b596['diffData'][_0x30d70d]['insertions']:'[]',_0x8f00a1=_0x25b596['diffData'][_0x30d70d]?_0x25b596['diffData'][_0x30d70d]['deletions']:'[]';_0x25b596['model'][_0x30d70d]={'insertions':this['_utils']['_makeModelFromViewString'](_0x23e165),'deletions':this['_utils']['_makeModelFromViewString'](_0x8f00a1)};}}for(const _0x4fcf9b of _0xb8d657){let _0x1f49d6=null,_0xb24754=0x0;const _0x566f33=new Map(Array['from'](_0x4d3496['model'][_0x4fcf9b]['insertions']['markers'])['filter'](([_0x3e12ca])=>!_0x3e12ca['startsWith']('revision:')));let _0x4a4da8=0x0;for(const _0x2a26c0 of _0x441b86){const _0x3812ba=this['_makeTape'](_0x2a26c0['model'][_0x4fcf9b]['insertions']);_0x2a26c0==_0x4d3496?(_0x1f49d6=_0x3812ba,_0xb24754=_0x1f49d6['length'],_0x1f49d6['forEach'](_0x1c3ebb=>{_0x1c3ebb['id']=_0x4a4da8++;}),this['_processTape'](_0x1f49d6)):this['_markInsertions'](_0x1f49d6,_0x3812ba);const _0x5eda3f=_0x1f49d6['filter'](_0xa0a13c=>!_0xa0a13c['isAdded'])['map'](_0xc722bc=>_0xc722bc['id']);let _0x1b21f1=0x0;const _0x139a94=this['_makeTape'](_0x2a26c0['model'][_0x4fcf9b]['deletions']);_0x139a94['forEach'](_0x4badec=>{_0x4badec['isRemoved']?_0x4badec['id']=_0xb24754++:_0x4badec['id']=_0x5eda3f[_0x1b21f1++];}),this['_processTape'](_0x139a94),this['_setDistance'](_0x1f49d6,'isAdded'),this['_setDistance'](_0x139a94,'isRemoved'),_0x2a26c0==_0x4d3496&&this['_markMarkers'](_0x1f49d6,_0x566f33),_0x1f49d6=this['_joinTapes'](_0x1f49d6,_0x139a94),this['_refreshStartEndIndex'](_0x1f49d6),this['_setDistance'](_0x1f49d6,'isRemoved');}_0x1f49d6=_0x1f49d6['filter'](_0x414b55=>!(_0x414b55['isAdded']&&_0x414b55['isRemoved']));const _0x48c9a3=new Map(_0x214f4a['model'][_0x4fcf9b]['deletions']['markers']),_0x264793=new Set(_0x566f33['keys']());for(const _0x4c3345 of _0x48c9a3['keys']())_0x264793['delete'](_0x4c3345);this['_markSuggestions'](_0x1f49d6,_0x264793),this['_fixObsoleteTags'](_0x1f49d6),_0x1f49d6=this['_removeMissingPairs'](_0x1f49d6),_0x1f49d6=this['_markMismatchedRemovedTags'](_0x1f49d6),_0x1f49d6=this['_removeUnsupportedChanges'](_0x1f49d6);const {root:_0x3d3d6a,changes:_0x469fd7}=this['_makeModelFromTape'](_0x1f49d6,_0x33179c,_0x4fcf9b);_0xebfff2['model'][_0x4fcf9b]=_0x3d3d6a;const _0x38427b=_0x2a3d9a['get'](_0x4fcf9b);if(_0x38427b){const _0x3d3b06=_0x33179c['get'](_0x38427b['userId']),_0x27d27d=new r({'author':_0x3d3b06,'type':_0x38427b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4fcf9b});_0x469fd7['unshift'](_0x27d27d),_0xebfff2['attributes'][_0x4fcf9b]['revisionHistoryAttachChange']=_0x27d27d['id'];}_0xebfff2['changes']=_0xebfff2['changes']['concat'](_0x469fd7);}return _0xebfff2;}['_markMarkers'](_0x5c65ff,_0x1fa958){for(let _0x4d357d=0x0;_0x4d357d<_0x5c65ff['length'];_0x4d357d++)for(const [_0xb3fc5f,_0x1cdab4]of _0x1fa958)!_0x1cdab4['isCollapsed']&&_0x1cdab4['start']['isEqual'](_0x5c65ff[_0x4d357d]['previousPosition'])&&_0x5c65ff[_0x4d357d]['markersStart']['push'](_0xb3fc5f),_0x1cdab4['end']['isEqual'](_0x5c65ff[_0x4d357d]['nextPosition'])&&_0x5c65ff[_0x4d357d]['markersEnd']['push'](_0xb3fc5f);}['_joinTapes'](_0x22b6f3,_0x1e36ff){let _0x34bf9d=[],_0xd834f8=0x0,_0x3227ab=0x0;for(;_0xd834f8<_0x22b6f3['length']||_0x3227ab<_0x1e36ff['length'];){const _0x24cf80=_0x22b6f3[_0xd834f8]||{},_0x431bc3=_0x1e36ff[_0x3227ab]||{};if(_0x24cf80['id']==_0x431bc3['id'])_0xd834f8++,_0x3227ab++,_0x34bf9d['push'](_0x24cf80);else{if(_0x431bc3['isRemoved']&&_0x24cf80['isAdded']){const {commonTape:_0x247d38,iEnd:_0x4798ca,jEnd:_0x3a047d}=this['_threeWayMerge'](_0x22b6f3,_0xd834f8,_0x1e36ff,_0x3227ab);_0x34bf9d=_0x34bf9d['concat'](_0x247d38),_0xd834f8=_0x4798ca,_0x3227ab=_0x3a047d;}else _0x431bc3['isRemoved']?(_0x3227ab++,_0x34bf9d['push'](_0x431bc3)):(_0xd834f8++,_0x34bf9d['push'](_0x24cf80));}}return _0x34bf9d;}['_markSuggestions'](_0x1c463d,_0xfbed82){const _0x338da8=[];for(let _0x40697a=0x0;_0x40697a<_0x1c463d['length'];_0x40697a++){for(let _0x1556f6=0x0;_0x1556f6<_0x1c463d[_0x40697a]['markersStart']['length'];_0x1556f6++){const _0x317606=_0x1c463d[_0x40697a]['markersStart'][_0x1556f6];if(!_0xfbed82['has'](_0x317606))continue;const {group:_0x42fe8f,type:_0x45d372,authorId:_0x66a8b2}=_0x1d9865(_0x317606);'revision-suggestion'!=_0x42fe8f||'insertion'!=_0x45d372&&'deletion'!=_0x45d372||(_0x338da8['unshift']({'type':_0x45d372,'name':_0x317606,'userId':_0x66a8b2}),_0x1c463d[_0x40697a]['markersStart']['splice'](_0x1556f6,0x1),_0x1556f6--);}_0x576d9b(_0x1c463d[_0x40697a]);for(let _0x48a93b=0x0;_0x48a93b<_0x1c463d[_0x40697a]['markersEnd']['length'];_0x48a93b++){const _0x127071=_0x1c463d[_0x40697a]['markersEnd'][_0x48a93b];if(!_0xfbed82['has'](_0x127071))continue;const {group:_0x375ce0,type:_0x205924}=_0x1d9865(_0x127071);if('revision-suggestion'!=_0x375ce0||'insertion'!=_0x205924&&'deletion'!=_0x205924)continue;_0x1c463d[_0x40697a]['markersEnd']['splice'](_0x48a93b,0x1),_0x48a93b--;const _0x118465=_0x338da8['findIndex'](_0x5551ff=>_0x5551ff['name']==_0x127071);_0x118465>-0x1&&_0x338da8['splice'](_0x118465,0x1);}}function _0x1d9865(_0x51d591){const _0x37090e=_0x51d591['split'](':');return{'group':_0x37090e[0x0],'type':_0x37090e[0x1],'subType':_0x37090e['length']>=0x5?_0x37090e[0x2]:null,'id':_0x37090e['length']<0x5?_0x37090e[0x2]:_0x37090e[0x3],'authorId':_0x37090e['length']<0x5?_0x37090e[0x3]:_0x37090e[0x4],'markerCount':0x6==_0x37090e['length']?_0x37090e[0x5]:null};}function _0x576d9b(_0x1b74cf){for(let _0x46f7cc=0x0;_0x46f7cc<_0x338da8['length'];_0x46f7cc++){if(_0x1b74cf['isAdded']&&'insertion'==_0x338da8[_0x46f7cc]['type'])return _0x1b74cf['isAddSuggestion']=_0x338da8[_0x46f7cc],void delete _0x1b74cf['isAdded'];if(!_0x1b74cf['isAdded']&&!_0x1b74cf['isRemoved']&&'deletion'==_0x338da8[_0x46f7cc]['type'])return void(_0x1b74cf['isRemoveSuggestion']=_0x338da8[_0x46f7cc]);}}}['_setDistance'](_0x364cb7,_0x3f5d66){let _0x3fb795=0x0,_0x289c0d=!0x1;const _0x516460=new Map();for(const _0xf3ff13 of _0x364cb7)_0xf3ff13[_0x3f5d66]?_0x289c0d&&(_0x3fb795++,_0x289c0d=!0x1):(_0x3fb795++,_0x289c0d=!0x0),_0x516460['set'](_0xf3ff13['id'],_0x3fb795);for(let _0x1575c8=0x0;_0x1575c8<_0x364cb7['length'];_0x1575c8++){if('isRemoved'==_0x3f5d66&&_0x364cb7[_0x1575c8]['isAdded']||'isAdded'==_0x3f5d66&&_0x364cb7[_0x1575c8]['isRemoved'])continue;if('text'==_0x364cb7[_0x1575c8]['type']){_0x364cb7[_0x1575c8]['distance']=0x0;continue;}const _0x59bab0=_0x516460['get'](_0x364cb7[_0x1575c8]['pairId']),_0x2d7ad5=_0x516460['get'](_0x364cb7[_0x1575c8]['id']);_0x364cb7[_0x1575c8]['distance']=_0x59bab0-_0x2d7ad5;}}['_getRevisionsRange'](_0x32fcb9,_0x538402,_0x95e7b=!0x1){const _0x305be8=[];let _0x5c0ea5=this['repository']['getIndex'](_0x32fcb9),_0x656393=this['repository']['getIndex'](_0x538402);for(-0x1==_0x656393&&(_0x656393=this['repository']['_revisions']['length'],_0x95e7b=!0x1);_0x5c0ea5<_0x656393;)_0x305be8['push'](this['repository']['getRevision'](_0x5c0ea5)),_0x5c0ea5++;return _0x95e7b&&_0x305be8['push'](this['repository']['getRevision'](_0x5c0ea5)),_0x305be8;}['_threeWayMerge'](_0x3d48a2,_0x2a6de0,_0x2fbab9,_0x25341f){const _0x5e1966=this['editor']['model']['schema'];let _0x4fcde7=_0x2a6de0;for(;_0x3d48a2[_0x4fcde7]&&_0x3d48a2[_0x4fcde7]['isAdded'];)_0x4fcde7++;let _0xe8f208=_0x25341f;for(;_0x2fbab9[_0xe8f208]&&_0x2fbab9[_0xe8f208]['isRemoved'];)_0xe8f208++;_0x1f9435(_0x3d48a2,_0x2a6de0,_0x4fcde7),_0x1f9435(_0x2fbab9,_0x25341f,_0xe8f208);const _0x48190b=_0x2fbab9['slice'](_0x25341f,_0xe8f208)['concat'](_0x3d48a2['slice'](_0x2a6de0,_0x4fcde7));return _0x48190b['sort']((_0xb9df4a,_0x2a709b)=>_0xb9df4a['side']!=_0x2a709b['side']?_0xb9df4a['side']-_0x2a709b['side']:_0xb9df4a['level']!=_0x2a709b['level']?_0xb9df4a['level']-_0x2a709b['level']:_0xb9df4a['distance']!=_0x2a709b['distance']?_0x2a709b['distance']-_0xb9df4a['distance']:!!_0xb9df4a['isAdded']!=!!_0x2a709b['isAdded']?-0x1==_0xb9df4a['side']||0x0==_0xb9df4a['side']?_0xb9df4a['isAdded']?-0x1:0x1:_0xb9df4a['isAdded']?0x1:-0x1:_0xb9df4a['index']-_0x2a709b['index']),{'commonTape':_0x48190b,'iEnd':_0x4fcde7,'jEnd':_0xe8f208};function _0x1f9435(_0xd414ff,_0x3d86cb,_0x2a9850){let _0x576129=-0x1,_0x1a3b58=Number['POSITIVE_INFINITY'],_0x110966=!0x0;for(let _0x470245=_0x3d86cb;_0x470245<_0x2a9850;_0x470245++)if(_0x5e1966['isInline'](_0xd414ff[_0x470245]['item'])||(_0x110966=!0x1),_0xd414ff[_0x470245]['item']['startIndex']<_0x3d86cb&&(_0x576129=_0x470245),_0xd414ff[_0x470245]['item']['endIndex']>=_0x2a9850){_0x1a3b58=_0x470245;break;}_0x110966&&(_0x576129=_0x2a9850-0x1);for(let _0x38e87d=_0x3d86cb;_0x38e87d<_0x2a9850;_0x38e87d++)_0xd414ff[_0x38e87d]['side']=_0x38e87d<=_0x576129?-0x1:_0x38e87d<_0x1a3b58?0x0:0x1,_0xd414ff[_0x38e87d]['index']=_0x38e87d;let _0x64ef24=0x0;for(let _0x3d60a8=_0x3d86cb;_0x3d60a8<=_0x576129;_0x3d60a8++)0x0==_0xd414ff[_0x3d60a8]['distance']?_0xd414ff[_0x3d60a8]['level']=_0x64ef24:(_0x64ef24++,_0xd414ff[_0x3d60a8]['level']=_0x64ef24,_0x64ef24++);for(let _0x6d2e9b=_0x3d86cb;_0x6d2e9b<_0x2a9850;_0x6d2e9b++)0x0==_0xd414ff[_0x6d2e9b]['side']&&(_0xd414ff[_0x6d2e9b]['level']=_0x64ef24);_0x64ef24=0x0;for(let _0x40025f=_0x2a9850-0x1;_0x40025f>=_0x1a3b58;_0x40025f--)0x0==_0xd414ff[_0x40025f]['distance']?_0xd414ff[_0x40025f]['level']=_0x64ef24:(_0x64ef24--,_0xd414ff[_0x40025f]['level']=_0x64ef24,_0x64ef24--);}}['_fixObsoleteTags'](_0x192ebe){const _0x249d27=new Map(),_0x4859a5=this['editor']['model']['schema'];for(let _0x26c35a=0x1;_0x26c35a<_0x192ebe['length'];_0x26c35a++){let _0x3ccf8c,_0x426f53,_0xfd4bd8;const _0xc7309f=_0x192ebe[_0x26c35a],_0x5489c5=_0x192ebe[_0x26c35a-0x1];if('text'==_0xc7309f['type'])continue;if(_0xc7309f['type']!=_0x5489c5['type'])continue;if(!_0x4859a5['isBlock'](_0x5489c5['item'])||_0x4859a5['isLimit'](_0x5489c5['item']))continue;if(!_0x4859a5['isBlock'](_0xc7309f['item'])||_0x4859a5['isLimit'](_0xc7309f['item']))continue;if((_0x192ebe[_0x26c35a]['isAdded']||_0x192ebe[_0x26c35a]['isAddSuggestion'])&&_0x192ebe[_0x26c35a-0x1]['isRemoved'])_0x3ccf8c=_0x192ebe[_0x26c35a],_0x426f53=_0x192ebe[_0x26c35a-0x1],_0xfd4bd8=_0x26c35a-0x1;else{if(!_0x192ebe[_0x26c35a]['isRemoved']||!_0x192ebe[_0x26c35a-0x1]['isAdded']&&!_0x192ebe[_0x26c35a-0x1]['isAddSuggestion'])continue;_0x3ccf8c=_0x192ebe[_0x26c35a-0x1],_0x426f53=_0x192ebe[_0x26c35a],_0xfd4bd8=_0x26c35a;}const _0x19da54=_0x3ccf8c['level']==_0x426f53['level'],_0x156a3b=Math['abs'](_0x3ccf8c['level'])<Math['abs'](_0x426f53['level'])&&0x0==_0x426f53['distance'];(_0x19da54||_0x156a3b)&&(_0x249d27['set'](_0x426f53['id'],_0x3ccf8c['id']),_0x192ebe['splice'](_0xfd4bd8,0x1),_0x26c35a--,_0x3ccf8c['isAdded']=!0x1);}for(let _0x384e53=0x0;_0x384e53<_0x192ebe['length'];_0x384e53++)_0x249d27['has'](_0x192ebe[_0x384e53]['pairId'])&&(_0x192ebe[_0x384e53]['pairId']=_0x249d27['get'](_0x192ebe[_0x384e53]['pairId']));}['_removeMissingPairs'](_0xa2504c){const _0x30ce8a=new Set(_0xa2504c['map'](_0x578cfd=>_0x578cfd['id']));for(let _0xc55f38=0x0;_0xc55f38<_0xa2504c['length'];_0xc55f38++)_0x30ce8a['has'](_0xa2504c[_0xc55f38]['pairId'])||0x0==_0xa2504c[_0xc55f38]['distance']||(_0xa2504c[_0xc55f38]['isIncorrect']=!0x0);return _0xa2504c['filter'](_0x4161f1=>!_0x4161f1['isIncorrect']);}['_markMismatchedRemovedTags'](_0xb57ec0){const _0x580aa8=new Set();for(let _0x3cb9e7=0x0;_0x3cb9e7<_0xb57ec0['length'];_0x3cb9e7++){if(_0x580aa8['has'](_0xb57ec0[_0x3cb9e7]['id'])&&_0xb57ec0[_0x3cb9e7]['isRemoved']&&(_0xb57ec0[_0x3cb9e7]['isIncorrect']=!0x0),_0xb57ec0[_0x3cb9e7]['isIncorrect'])continue;if(0x0==_0xb57ec0[_0x3cb9e7]['distance'])continue;if('elementStart'!=_0xb57ec0[_0x3cb9e7]['type'])continue;if(null==_0xb57ec0[_0x3cb9e7]['pairId'])continue;let _0x4a650e=_0x3cb9e7+0x1,_0x569a24=0x0;for(;_0xb57ec0[_0x4a650e]['id']!=_0xb57ec0[_0x3cb9e7]['pairId'];)'elementStart'==_0xb57ec0[_0x4a650e]['type']?_0x569a24++:'elementEnd'==_0xb57ec0[_0x4a650e]['type']&&_0x569a24--,_0x4a650e++;if(0x0!=_0x569a24){if(_0xb57ec0[_0x3cb9e7]['isRemoved'])_0xb57ec0[_0x3cb9e7]['isIncorrect']=!0x0;else{for(;_0x4a650e!=_0x3cb9e7;)_0xb57ec0[_0x4a650e]['isRemoved']&&0x0!=_0xb57ec0[_0x4a650e]['distance']&&(_0xb57ec0[_0x4a650e]['isIncorrect']=!0x0,_0x580aa8['add'](_0xb57ec0[_0x4a650e]['pairId'])),_0x4a650e--;}}}return _0xb57ec0['filter'](_0x43e95c=>!_0x43e95c['isIncorrect']);}['_removeUnsupportedChanges'](_0x423bca){const _0x2c4ce0=this['editor']['model']['schema'];for(let _0x808da6=0x0;_0x808da6<_0x423bca['length'];_0x808da6++){if(!(_0x423bca[_0x808da6]['isAdded']||_0x423bca[_0x808da6]['isAddSuggestion']||_0x423bca[_0x808da6]['isRemoved']||_0x423bca[_0x808da6]['isRemoveSuggestion']))continue;if(0x0==_0x423bca[_0x808da6]['distance'])continue;const _0x7d599e=_0x423bca[_0x808da6]['item'];_0x2c4ce0['isBlock'](_0x7d599e)||_0x2c4ce0['isLimit'](_0x7d599e)||(_0x423bca[_0x808da6]['isAdded']&&delete _0x423bca[_0x808da6]['isAdded'],_0x423bca[_0x808da6]['isAddSuggestion']&&delete _0x423bca[_0x808da6]['isAddSuggestion'],_0x423bca[_0x808da6]['isRemoveSuggestion']&&delete _0x423bca[_0x808da6]['isRemoveSuggestion'],_0x423bca[_0x808da6]['isRemoved']&&(_0x423bca[_0x808da6]['isIncorrect']=!0x0));}return _0x423bca['filter'](_0x268f7b=>!_0x268f7b['isIncorrect']);}['_makeModelFromTape'](_0x57f0e4,_0x344e2d,_0x41d0ff){const _0x1fe9b6=new vt(),_0x411f6a=[],_0x57d6d5=new Map(),_0x37d643=this['editor']['model'],_0x52c387=_0x37d643['schema'],_0x212a88=[_0x1fe9b6],_0x53f60b={},_0x16945a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x18efa9=null;const _0x27ee89=[0x0];for(let _0x420dbe=0x0;_0x420dbe<_0x57f0e4['length'];_0x420dbe++)if('elementStart'===_0x57f0e4[_0x420dbe]['type']){_0x57f0e4[_0x420dbe]['previousPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89);const _0x33cd82=new ut(_0x57f0e4[_0x420dbe]['item']['name'],_0x57f0e4[_0x420dbe]['item']['getAttributes']());_0x212a88[0x0]['_appendChild'](_0x33cd82),_0x27ee89['push'](0x0),_0x212a88['unshift'](_0x33cd82),_0x57f0e4[_0x420dbe]['nextPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89);}else'elementEnd'===_0x57f0e4[_0x420dbe]['type']?(_0x212a88['shift'](),_0x57f0e4[_0x420dbe]['previousPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89),_0x27ee89['pop'](),_0x27ee89[_0x27ee89['length']-0x1]++,_0x57f0e4[_0x420dbe]['nextPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89)):(_0x57f0e4[_0x420dbe]['previousPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89),_0x18efa9?_0x18efa9['_data']+=_0x57f0e4[_0x420dbe]['item']['data']:_0x18efa9=new gt(_0x57f0e4[_0x420dbe]['item']['data'],_0x57f0e4[_0x420dbe]['item']['getAttributes']()),_0x57f0e4[_0x420dbe+0x1]&&'text'===_0x57f0e4[_0x420dbe+0x1]['type']&&_0x9df698(_0x18efa9,_0x57f0e4[_0x420dbe+0x1]['item'])||(_0x212a88[0x0]['_appendChild'](_0x18efa9),_0x18efa9=null),_0x27ee89[_0x27ee89['length']-0x1]+=_0x57f0e4[_0x420dbe]['item']['offsetSize'],_0x57f0e4[_0x420dbe]['nextPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89));for(let _0x4571ff=0x0;_0x4571ff<_0x57f0e4['length'];_0x4571ff++){const _0x51580b=_0x57f0e4[_0x4571ff]['previousPosition'],_0x2a56d1=_0x57f0e4[_0x4571ff]['nextPosition'];for(const _0x35e5fc of _0x57f0e4[_0x4571ff]['markersStart'])_0x57d6d5['set'](_0x35e5fc,{'start':_0x51580b,'end':null});_0x3e0c2f('isRemoveSuggestion',_0x4571ff,_0x51580b,_0x2a56d1),_0x3e0c2f('isAddSuggestion',_0x4571ff,_0x51580b,_0x2a56d1),_0x3e0c2f('isRemoved',_0x4571ff,_0x51580b,_0x2a56d1),_0x3e0c2f('isAdded',_0x4571ff,_0x51580b,_0x2a56d1);for(const _0x522125 of _0x57f0e4[_0x4571ff]['markersEnd']){const _0x45478b=_0x57d6d5['get'](_0x522125);_0x45478b?_0x45478b['end']=_0x2a56d1:_0x57d6d5['set'](_0x522125,{'start':_0x2a56d1,'end':_0x2a56d1});}}for(const [_0x2f2534,_0x4c9b22]of _0x57d6d5){const _0x23597b=this['editor']['model']['createRange'](_0x4c9b22['start'],_0x4c9b22['end']);_0x1fe9b6['markers']['set'](_0x2f2534,_0x23597b);}return _0x411f6a['sort']((_0x2a2490,_0x42b527)=>{const _0x2aa7c6=_0x1fe9b6['markers']['get']('revision:'+_0x2a2490['id']),_0x287478=_0x1fe9b6['markers']['get']('revision:'+_0x42b527['id']);return _0x2aa7c6['start']['isBefore'](_0x287478['start'])?-0x1:_0x2aa7c6['start']['isAfter'](_0x287478['start'])?0x1:_0x2aa7c6['end']['isBefore'](_0x287478['end'])?-0x1:_0x2aa7c6['end']['isAfter'](_0x287478['end'])?0x1:'add'===_0x2a2490['type']?-0x1:0x1;}),{'root':_0x1fe9b6,'changes':_0x411f6a};function _0x3e0c2f(_0x13c187,_0x44456c,_0x1a1897,_0x12e004){const _0x10442e=!!_0x57f0e4[_0x44456c][_0x13c187],_0x2c61af=_0x10442e?_0x57f0e4[_0x44456c][_0x13c187]['userId']:null,_0x20b0a2=_0x44456c===_0x57f0e4['length']-0x1,_0x71326=_0x16945a[_0x13c187][0x0],_0x25315e=_0x52c387['isObject'](_0x57f0e4[_0x44456c]['item']);!_0x53f60b[_0x13c187]&&_0x10442e?_0x53f60b[_0x13c187]={'start':_0x1a1897,'tapeItem':_0x57f0e4[_0x44456c],'userId':_0x2c61af,'type':_0x13c187}:_0x53f60b[_0x13c187]&&!_0x10442e?(_0x53f60b[_0x13c187]['end']=_0x1a1897,_0x31f0b7(_0x53f60b[_0x13c187]),_0x53f60b[_0x13c187]=null):_0x53f60b[_0x13c187]&&_0x10442e&&_0x53f60b[_0x13c187]['userId']!==_0x2c61af&&(_0x53f60b[_0x13c187]['end']=_0x1a1897,_0x71326&&_0x71326['userId']===_0x53f60b[_0x13c187]['userId']||_0x31f0b7(_0x53f60b[_0x13c187]),_0x53f60b[_0x13c187]={'start':_0x1a1897,'tapeItem':_0x57f0e4[_0x44456c],'userId':_0x2c61af,'type':_0x13c187}),_0x53f60b[_0x13c187]&&_0x25315e&&('elementStart'!==_0x57f0e4[_0x44456c]['type']||_0x71326&&_0x71326['userId']===_0x2c61af||_0x16945a[_0x13c187]['unshift']({'userId':_0x2c61af,'object':_0x57f0e4[_0x44456c]['item'],'change':_0x53f60b[_0x13c187]}),'elementEnd'===_0x57f0e4[_0x44456c]['type']&&_0x71326&&_0x71326['object']===_0x57f0e4[_0x44456c]['item']&&(_0x16945a[_0x13c187]['shift'](),_0x53f60b[_0x13c187]=_0x71326['change'])),_0x53f60b[_0x13c187]&&_0x20b0a2&&(_0x53f60b[_0x13c187]['end']=_0x12e004,_0x31f0b7(_0x53f60b[_0x13c187]),_0x53f60b[_0x13c187]=null);}function _0x31f0b7({start:_0x123ff3,end:_0x5aad42,tapeItem:_0xf201ac,userId:_0x226033,type:_0x3ba286}){const _0x5db82a=_0xf201ac['item'],_0xe466fb=_0x37d643['schema']['isBlock'](_0x5db82a)&&!_0x37d643['schema']['isLimit'](_0x5db82a),_0x39ac6f=_0x123ff3['nodeAfter']==_0x5aad42['parent']&&_0x5aad42['isAtStart'];if(_0xe466fb&&_0x39ac6f)return;const _0x355be7=_0x37d643['createRange'](_0x123ff3,_0x5aad42),_0x19fa62=_0x344e2d['get'](_0x226033),_0x4a9fd1=new r({'author':_0x19fa62,'type':'isAdded'==_0x3ba286||'isAddSuggestion'==_0x3ba286?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3ba286||'isRemoveSuggestion'==_0x3ba286},'createdAt':new Date(),'rootName':_0x41d0ff});_0x411f6a['push'](_0x4a9fd1),_0x1fe9b6['markers']['set']('revision:'+_0x4a9fd1['id'],_0x355be7);}function _0x9df698(_0x10a0f4,_0x38a7c2){const _0x5da7cd=_0x10a0f4['getAttributes'](),_0x5e13c9=_0x38a7c2['getAttributes']();for(const _0x2f7f43 of _0x5da7cd){if(_0x2f7f43[0x1]!==_0x38a7c2['getAttribute'](_0x2f7f43[0x0]))return!0x1;_0x5e13c9['next']();}return _0x5e13c9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x140e05=>{const _0x1fd20f=_0x140e05['markerName']['split'](':')[0x1],_0x12513c=this['_getChangeFromId'](_0x1fd20f);if(!_0x12513c)return null;const _0x272f57='add'==_0x12513c['type']?'insertion':'deletion',_0x270981=['ck-suggestion-marker','ck-suggestion-marker-'+_0x272f57];return _0x12513c['data']['isSuggestion']&&_0x270981['push']('ck-suggestion-marker-'+_0x272f57+'-new'),this['activeChange']==_0x12513c&&_0x270981['push']('ck-suggestion-marker--active'),{'classes':_0x270981,'attributes':{'data-change-id':_0x1fd20f}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28c8d2=>{_0x28c8d2['on']('element:pre',(_0x560608,_0x3c672b,_0x4ae408)=>{const _0x3a724c=_0x3c672b['viewItem']['getChild'](0x0);if(!_0x3a724c||!_0x3a724c['is']('element','code'))return;if(!_0x4ae408['consumable']['consume'](_0x3a724c,{'attributes':['vid_start','vid_end']}))return;const _0x1e856c=_0x3c672b['modelRange']['start']['nodeAfter'];_0x4ae408['writer']['setAttribute']('vid_start',_0x3a724c['getAttribute']('vid_start'),_0x1e856c),_0x4ae408['writer']['setAttribute']('vid_end',_0x3a724c['getAttribute']('vid_end'),_0x1e856c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x382637=>{_0x382637['on']('element',(_0xc795a9,_0x3935d2,_0x385abd)=>{if(!_0x385abd['consumable']['consume'](_0x3935d2['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3935d2['modelRange']['isCollapsed'])return;const _0x2282cf=_0x3935d2['modelRange']['start']['nodeAfter'];_0x2282cf['hasAttribute']('vid_start')||_0x2282cf['hasAttribute']('vid')||(_0x385abd['writer']['setAttribute']('vid_start',_0x3935d2['viewItem']['getAttribute']('vid_start'),_0x2282cf),_0x385abd['writer']['setAttribute']('vid_end',_0x3935d2['viewItem']['getAttribute']('vid_end'),_0x2282cf));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3a44a6=>_0x3a44a6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x215144,[,_0x440298])=>{['vid_start','vid_end','vid']['includes'](_0x440298)&&(_0x215144['return']=!0x0,_0x215144['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x9b04ed=>{_0x9b04ed['on']('attribute:vid',(_0x59ee43,_0x27afa8,_0x562ba0)=>{if('\x20'!=_0x27afa8['item']['data']||_0x27afa8['item']['parent']['maxOffset']>0x1)return;if(!_0x562ba0['consumable']['consume'](_0x27afa8['item'],_0x59ee43['name']))return;const _0x5bfb5e=_0x562ba0['writer'],_0x2d895c=_0x562ba0['mapper']['toViewRange'](_0x27afa8['range']);_0x5bfb5e['wrap'](_0x2d895c,_0x5bfb5e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x49a494){const _0x4cf82f=_0x49a494['plugins']['get']('RevisionViewer');return(_0x4dfb13,_0x3c9617,_0x10dae3)=>{const _0x111458=_0x3c9617['markerName']['split'](':')[0x1],_0x47d257=_0x4cf82f['_getChangeFromId'](_0x111458);if(!_0x47d257)return null;const _0xbb041e='add'==_0x47d257['type']?'split':'merge';if(!_0x10dae3['consumable']['test'](_0x3c9617['markerRange'],_0x4dfb13['name']))return;const _0x3e8b35=_0x3c9617['markerRange']['getWalker'](),_0x40ed87=_0x3c9617['markerRange']['start'],_0x125dfd=_0x49a494['model']['schema'];let _0x3fee05=null,_0x5aa7e5=null,_0x32d0b5=!0x1,_0x2db750=!0x1;for(const _0x1ddb1a of _0x3e8b35){const _0x5d4a41=_0x1ddb1a['item'];_0x32d0b5=_0x32d0b5||_0x125dfd['isContent'](_0x5d4a41);const _0x50670f=_0x10dae3['mapper']['toViewElement'](_0x5d4a41);if(_0x50670f&&_0x50670f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ddb1a['type']&&(_0x125dfd['isBlock'](_0x5d4a41)&&!_0x125dfd['isLimit'](_0x5d4a41)&&(_0x5d4a41['nextSibling']||_0x40ed87['isAtEnd']?_0x3fee05&&_0x3fee05['parent']==_0x5d4a41||(_0x3fee05=_0x5d4a41,_0x412211(_0x1ddb1a['previousPosition']),_0x2db750=!0x0):_0x5aa7e5=_0x5aa7e5||_0x1ddb1a['previousPosition']));}function _0x412211(_0x10e7d4){const _0x203a63=_0x10dae3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbb041e}),_0x314566=_0x10dae3['mapper']['toViewPosition'](_0x10e7d4);_0x47d257['data']['isSuggestion']&&_0x10dae3['writer']['addClass']('ck-suggestion-marker-'+_0xbb041e+'-new',_0x203a63),_0x4cf82f['activeChange']==_0x47d257&&_0x10dae3['writer']['addClass']('ck-suggestion-marker--active',_0x203a63),_0x10dae3['writer']['insert'](_0x314566,_0x203a63),_0x10dae3['mapper']['bindElementToMarker'](_0x203a63,_0x3c9617['markerName']);}_0x32d0b5||_0x2db750||!_0x5aa7e5||_0x412211(_0x5aa7e5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x562789,_0x5277c2,_0x1e1bee)=>{const _0x2d63aa=_0x1e1bee['mapper']['markerNameToElements'](_0x5277c2['markerName']);if(_0x2d63aa){for(const _0x13745e of _0x2d63aa)(_0x13745e['hasClass']('ck-suggestion-marker-split')||_0x13745e['hasClass']('ck-suggestion-marker-merge'))&&(_0x1e1bee['mapper']['unbindElementFromMarkerName'](_0x13745e,_0x5277c2['markerName']),_0x1e1bee['writer']['remove'](_0x13745e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd11924,_0x23c2c3,_0x16e52a)=>{const _0x36bd98=_0x23c2c3['markerName']['split'](':')[0x1],_0x10ac90=this['_getChangeFromId'](_0x36bd98);if(!_0x10ac90)return null;const _0xb7e14a='add'==_0x10ac90['type']?'split':'merge';if(_0x16e52a['consumable']['test'](_0x23c2c3['markerRange'],_0xd11924['name']))for(const _0x23a13d of _0x23c2c3['markerRange']['getItems']()){if(!_0x23a13d['is']('element','softBreak'))continue;const _0x3379d1=_0x16e52a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb7e14a}),_0x409f86=_0x16e52a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x23a13d));_0x10ac90['data']['isSuggestion']&&_0x16e52a['writer']['addClass']('ck-suggestion-marker-'+_0xb7e14a+'-new',_0x3379d1),this['activeChange']==_0x10ac90&&_0x16e52a['writer']['addClass']('ck-suggestion-marker--active',_0x3379d1),_0x16e52a['writer']['insert'](_0x409f86,_0x3379d1),_0x16e52a['mapper']['bindElementToMarker'](_0x3379d1,_0x23c2c3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3ac22c=>{for(const _0x4b47d9 of this['editor']['model']['document']['getRootNames']()){const _0x14476a=this['editor']['model']['document']['getRoot'](_0x4b47d9),_0x4bc456=this['editor']['editing']['view']['document']['getRoot'](_0x4b47d9);if(_0x4bc456){const _0x53fb2d=_0x14476a['getAttribute']('revisionHistoryAttachChange');if(_0x3ac22c['removeAttribute']('data-change-id',_0x4bc456),_0x3ac22c['removeClass']('ck-revision-history-root-add',_0x4bc456),_0x3ac22c['removeClass']('ck-revision-history-root-remove',_0x4bc456),_0x3ac22c['removeClass']('ck-revision-history-root--active',_0x4bc456),_0x53fb2d){const _0x9eb018=this['_getChangeFromId'](_0x53fb2d);if(!_0x9eb018)return null;_0x3ac22c['setAttribute']('data-change-id',_0x53fb2d,_0x4bc456),_0x3ac22c['addClass']('ck-revision-history-root-'+_0x9eb018['type'],_0x4bc456),this['activeChange']==_0x9eb018&&_0x3ac22c['addClass']('ck-revision-history-root--active',_0x4bc456);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5d7a72=>'revision-comment:'+_0x5d7a72,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5d5986=>'revision-suggestion:'+_0x5d5986,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1266dd=>({'name':'suggestion:'+_0x1266dd,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x7a7b6d=>{const _0x202a9d=_0x7a7b6d['markerName']['split'](':')[0x1];return'insertion'!=_0x202a9d&&'deletion'!=_0x202a9d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x202a9d]};}}),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',(_0x231ee6,_0x474c9c,_0x1771f6)=>{const _0xb1b5c9=_0x1771f6['mapper']['markerNameToElements'](_0x474c9c['markerName']);if(_0xb1b5c9){for(const _0x1ab32c of _0xb1b5c9)_0x1ab32c['is']('uiElement')&&(_0x1771f6['mapper']['unbindElementFromMarkerName'](_0x1ab32c,_0x474c9c['markerName']),_0x1771f6['writer']['remove'](_0x1ab32c));}},{'priority':'high'});}['_getChangeFromId'](_0x491d37){return this['_changeIdToChange']['get'](_0x491d37);}['_getViewForChange'](_0x45ea18){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x45ea18),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3c78e0,_0x23c16a,_0x158566,_0x4f1e54)=>{_0x4f1e54&&this['_balloon']['remove'](_0x4f1e54),_0x158566&&(this['_balloon']['add']({'view':_0x158566,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x27c875=this['editor']['editing'],_0x2a0bd6=this['_getChangeFromId'](_0x158566['changeId']);let _0x758913;if(_0x2a0bd6['data']['isOnRoot']){const _0x4c5b8a=_0x27c875['view']['getDomRoot'](_0x2a0bd6['rootName']);_0x758913=Array['from'](_0x4c5b8a['getClientRects']());}else{const _0x1fb7b7=this['editor']['model']['markers']['get']('revision:'+_0x158566['changeId']);_0x758913=Array['from'](_0x27c875['mapper']['markerNameToElements'](_0x1fb7b7['name']))['map'](_0x1ca885=>_0x27c875['view']['domConverter']['mapViewToDom'](_0x1ca885))['map'](_0x2d7aa1=>Array['from'](_0x2d7aa1['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x758913[0x0];return _0x758913['find'](_0x1a60d5=>_0x1a60d5['top']-0x3<=this['_activeViewTarget']['y']&&_0x1a60d5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1a60d5['left']-0x3<=this['_activeViewTarget']['x']&&_0x1a60d5['right']+0x3>=this['_activeViewTarget']['x'])||_0x758913[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x16e2cc,_0x55cecd,_0x1b9fa1,_0x409928)=>{this['activeView']=_0x1b9fa1?this['_getViewForChange'](_0x1b9fa1):null,this['editor']['model']['change'](()=>{const _0x40aa00=this['editor']['editing'];_0x409928&&(_0x409928['data']['isOnRoot']?_0x40aa00['view']['change'](_0x5df18c=>{_0x5df18c['removeClass']('ck-revision-history-root--active',_0x40aa00['view']['document']['getRoot'](_0x409928['rootName']));}):_0x40aa00['reconvertMarker']('revision:'+_0x409928['id'])),_0x1b9fa1&&(_0x1b9fa1['data']['isOnRoot']?_0x40aa00['view']['change'](_0xaa6359=>{_0xaa6359['addClass']('ck-revision-history-root--active',_0x40aa00['view']['document']['getRoot'](_0x1b9fa1['rootName']));}):_0x40aa00['reconvertMarker']('revision:'+_0x1b9fa1['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5c5131,_0x3b13f5)=>{if(this['activeChange'])return;const _0x81b001=this['_findChangeIdFromDomTarget'](_0x3b13f5['target']),_0x472871=this['_changeIdToChange']['get'](_0x81b001);_0x472871?(this['_activeViewTarget']={'x':_0x3b13f5['domEvent']['x'],'y':_0x3b13f5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x472871)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x503b99,_0x1b7feb)=>{const _0x5068ba=this['_findChangeIdFromDomTarget'](_0x1b7feb['target']),_0x4f6d50=this['_changeIdToChange']['get'](_0x5068ba);_0x4f6d50?(this['_activeViewTarget']={'x':_0x1b7feb['domEvent']['x'],'y':_0x1b7feb['domEvent']['y']},_0x4f6d50===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4f6d50):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x349899){do{const _0x4b42b5=_0x349899['getAttribute']('data-change-id');if(_0x4b42b5)return _0x4b42b5;_0x349899=_0x349899['parent'];}while(_0x349899);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4aa0af=>{for(const _0x3c041f of this['editor']['model']['markers'])_0x4aa0af['removeMarker'](_0x3c041f);});}}function X(_0x35270a,_0x1a6bfc){return(_0x484439,_0x59d03e,_0x5c2b47)=>{if(!_0x5c2b47['consumable']['test'](_0x59d03e['markerRange'],_0x484439['name']))return;const _0x5b63a0=_0x59d03e['markerRange']['getWalker'](),_0x1f1db6=_0x59d03e['markerRange']['start'],_0x36dceb=_0x35270a['model']['schema'];let _0x42aaef=null,_0x1d7a3a=null,_0x129a0d=!0x1,_0x28910d=!0x1;for(const _0x45cba7 of _0x5b63a0){const _0x33396f=_0x45cba7['item'];_0x129a0d=_0x129a0d||_0x36dceb['isContent'](_0x33396f);const _0x464121=_0x5c2b47['mapper']['toViewElement'](_0x33396f);if(_0x464121&&_0x464121['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45cba7['type']&&(_0x36dceb['isBlock'](_0x33396f)&&!_0x36dceb['isLimit'](_0x33396f)&&(_0x33396f['nextSibling']||_0x1f1db6['isAtEnd']?_0x42aaef&&_0x42aaef['parent']==_0x33396f||(_0x42aaef=_0x33396f,_0x4999a3(_0x45cba7['previousPosition']),_0x28910d=!0x0):_0x1d7a3a=_0x1d7a3a||_0x45cba7['previousPosition']));}function _0x4999a3(_0x3f4a51){const _0x450a2e=_0x5c2b47['mapper']['toViewPosition'](_0x3f4a51),_0x880872=_0x5c2b47['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1a6bfc});_0x5c2b47['writer']['insert'](_0x450a2e,_0x880872),_0x5c2b47['mapper']['bindElementToMarker'](_0x880872,_0x59d03e['markerName']);}_0x129a0d||_0x28910d||!_0x1d7a3a||_0x4999a3(_0x1d7a3a);};}class mt extends _0x4887eb{constructor(_0x1a52a1){super(_0x1a52a1);const _0x3a4c3f=_0x1a52a1['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x3a4c3f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a4c3f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x41fc2f=this['editor'],_0x35e977=_0x41fc2f['plugins']['get'](m),_0x1fb5cc=_0x35e977['isReady']?_0x35e977['diff']['newRevisionId']:null;_0x41fc2f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1fb5cc);}['refresh'](){const {isReady:_0x908595,isEnabled:_0x47fb13,repository:_0x49be7e,diff:_0x30aad1}=this['editor']['plugins']['get'](m),_0xe464ab=_0x30aad1&&_0x49be7e['getLaterVisibleRevision'](_0x30aad1['newRevisionId']);this['isEnabled']=_0x908595&&_0x47fb13&&Boolean(_0xe464ab);}}class wt extends _0x4887eb{['_step'];constructor(_0x4712d5,{direction:_0x41b790}){super(_0x4712d5);const _0x2d9885=_0x4712d5['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x41b790?0x1:-0x1,this['listenTo'](_0x2d9885,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2d9885,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2d9885,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x324e8f=this['editor'],_0x17e419=_0x324e8f['plugins']['get'](m),{isNavigationMode:_0x20d8a7,currentChangeNumber:_0x6f1b5b}=_0x17e419;let _0x3a7f4a;if(_0x17e419['activeChange']=_0x20d8a7?_0x17e419['diff']['changes']['get'](_0x6f1b5b+this['_step']):_0x17e419['diff']['changes']['first'],_0x17e419['activeChange']['data']['isOnRoot'])_0x3a7f4a=_0x324e8f['editing']['view']['getDomRoot'](_0x17e419['activeChange']['rootName']);else{const _0x2353d1=_0x324e8f['model']['markers']['get']('revision:'+_0x17e419['activeChange']['id']);_0x3a7f4a=_0x1a8ea3(_0x324e8f['editing'],_0x2353d1);}_0x3c4a3a({'target':_0x3a7f4a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x935211,currentChangeNumber:_0xed01bf,numberOfChanges:_0x3aac22,isReady:_0x198972,isEnabled:_0x213b63}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x213b63&&_0x198972&&_0x3aac22)&&(!_0x935211||(0x1===this['_step']?_0xed01bf<_0x3aac22-0x1:_0xed01bf>0x0));}}class di extends ts{constructor(_0x459b99){super(_0x459b99);const _0x182eb2=this['bindTemplate'],_0x4a8e24=new te(_0x459b99),_0x3c9c8a=new te(_0x459b99);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',(_0xc3c679,_0x45b706)=>_0xc3c679&&_0x45b706>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x599983,_0xd9168e,_0x2032b3,_0x51bc33)=>{if(!_0x599983)return g(_0x459b99,'Loading...');if(!_0x2032b3)return g(_0x459b99,'No\x20changes');const _0x4581f5=g(_0x459b99,'NUMBER_OF_CHANGES',_0x2032b3);return _0x51bc33?g(_0x459b99,'X_OF_Y_CHANGES',[_0xd9168e+0x1,_0x2032b3]):_0x4581f5;}),_0x4a8e24['set']({'label':g(_0x459b99,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1f62e6}),_0x3c9c8a['set']({'label':g(_0x459b99,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x425d1f}),_0x4a8e24['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3c9c8a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4a8e24['on']('execute',()=>this['fire']('execute','backward')),_0x3c9c8a['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',_0x182eb2['if']('_isStatusLabelVisible','ck-hidden',_0x3ede10=>!_0x3ede10)]},'children':[{'text':_0x182eb2['to']('isNavigationMode',_0x93182f=>_0x93182f?g(_0x459b99,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x459b99,'Total')+':\x20')}]},{'text':_0x182eb2['to']('_statusText')}]},new _0x48d5b0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4a8e24,_0x3c9c8a]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x3a83bf{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x23cac4=this['editor']['editing']['view'];_0x23cac4['change'](_0x6a7c57=>{for(const _0x1a80ae of _0x23cac4['document']['roots'])_0x6a7c57['addClass'](le,_0x1a80ae);});}['hide'](){const _0x4ef0da=this['editor']['editing']['view'];_0x4ef0da['change'](_0x546018=>{for(const _0x18f384 of _0x4ef0da['document']['roots'])_0x546018['removeClass'](le,_0x18f384);});}}class R extends _0x3a83bf{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x37dd9b=this['editor'],_0x6bbfc=_0x37dd9b['plugins']['get'](m),_0x141928=_0x37dd9b['plugins']['get'](de);_0x37dd9b['ui']['componentFactory']['add']('exitToEditing',_0x49ae7a=>{const _0x7d11fc=new te(_0x49ae7a);return _0x7d11fc['set']({'label':g(_0x49ae7a,'Back\x20to\x20editing'),'icon':_0x979595,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x7d11fc,'execute',()=>{_0x37dd9b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x7d11fc;}),_0x37dd9b['ui']['componentFactory']['add']('restoreRevision',_0x2c05c2=>{const _0x3bb239=new te(_0x2c05c2);return _0x3bb239['set']({'label':g(_0x2c05c2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3bb239['bind']('isEnabled')['to'](_0x37dd9b['commands']['get']('restoreRevision')),this['listenTo'](_0x3bb239,'execute',()=>_0x37dd9b['execute']('restoreRevision')),_0x3bb239;}),_0x37dd9b['ui']['componentFactory']['add']('changesNavigation',_0x1d86c4=>{const _0x56279d=new di(_0x1d86c4),_0x425261=_0x37dd9b['commands']['get']('showPreviousChange'),_0x4a531e=_0x37dd9b['commands']['get']('showNextChange');return _0x56279d['bind']('isBackwardNavigationEnabled')['to'](_0x425261,'isEnabled'),_0x56279d['bind']('isForwardNavigationEnabled')['to'](_0x4a531e,'isEnabled'),_0x56279d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x6bbfc),this['listenTo'](_0x56279d,'execute',(_0x13671c,_0x536a70)=>{_0x37dd9b['execute']('forward'===_0x536a70?'showNextChange':'showPreviousChange');}),_0x56279d;}),_0x141928['show'](),_0x6bbfc['on']('change:isReady',(_0x36e864,_0x3d6482,_0x173aa1)=>{_0x173aa1?_0x141928['hide']():_0x141928['show']();});}}class at extends _0x263937{['_resizeObserver']=null;constructor(_0x82d6d0,_0x201523){super(_0x82d6d0,_0x201523);const _0x49829f=this['bindTemplate'];this['set']({'label':g(_0x82d6d0,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x82d6d0,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x49829f['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 _0xec6915=this['fieldView']['element'];this['_tooltipString']=_0xec6915['scrollWidth']>_0xec6915['clientWidth']&&_0xec6915['value']||'';}}class si extends ts{constructor(_0x8a7678,_0x2cae77,_0x1c7563){super(_0x8a7678);const _0x20a07d=new _0x12c313();_0x20a07d['set']({'content':_0xf9cca,'viewBox':'0\x200\x2011\x2010'});const _0x3ba72d=['ck','ck-revision-history-sidebar__revision-author'];_0x1c7563&&_0x3ba72d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1761a9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x8a7678,_0x1c7563?'Revision\x20creator':'Revision\x20author')},'children':[_0x20a07d,_0x2cae77['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3ba72d},'children':_0x1761a9});}}function oi(_0x49ac1c,_0xcb119c){const _0x2397dd=_0x49ac1c['bindTemplate'],_0x2b0749=_0x49ac1c['locale'],_0x1dbb19=_0x72e1f8(_0x2b0749);_0x1dbb19['panelPosition']='sw';const _0x2a9880=function(_0x563c42,_0x496c7c){const _0x5ce1f9=function(_0x26d4c5,_0x41410c){const _0x2b782e=_0x26d4c5['locale'],_0x2aec79={'Compare\x20against\x20selected':g(_0x2b782e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2b782e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2b782e,'Restore\x20this\x20revision')};return _0x41410c['map'](_0x59e5a6=>{const _0x2c3e36=_0x2aec79[_0x59e5a6['name']];return _0x2c3e36&&_0x2c3e36!==_0x59e5a6['name']&&(_0x59e5a6['name']=_0x2c3e36),_0x59e5a6;});}(_0x563c42,_0x496c7c),_0x1182a0=new _0x3c755c();for(const _0x12dda9 of _0x5ce1f9){const _0xa4652c={'type':'button','model':new to({'label':_0x12dda9['name'],'class':_0x12dda9['class'],'withText':!0x0,'role':'menuitem','_action':_0x12dda9['action']})};_0xa4652c['model']['bind']('isEnabled')['to'](_0x563c42,'isActionsDropdownOpen',_0x5305c0=>'function'!=typeof _0x12dda9['isEnabled']||(!_0x5305c0||_0x12dda9['isEnabled'](_0x563c42))),_0x1182a0['add'](_0xa4652c);}return _0x1182a0;}(_0x49ac1c,_0xcb119c);return _0x49ac1c['bind']('isActionsDropdownOpen')['to'](_0x1dbb19,'isOpen'),_0x1dbb19['buttonView']['set']({'label':g(_0x2b0749,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xbed950}),_0x1dbb19['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2397dd['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2397dd['to'](_0x338157=>_0x338157['stopPropagation']())}}),_0x1dbb19['on']('execute',_0xbd14ea=>{_0x49ac1c['isReady']&&'function'==typeof _0xbd14ea['source']['_action']&&_0xbd14ea['source']['_action'](_0x49ac1c);}),_0x4e2d08(_0x1dbb19,_0x2a9880,{'role':'menu'}),_0x1dbb19['listenTo'](_0x49ac1c,'change:isActionsDropdownOpen',(_0x28b980,_0x1c31e8,_0x3b2e48)=>{if(_0x3b2e48)for(const _0x57f3db of _0x1dbb19['listView']['items']){const _0x59a402=_0x57f3db['children']['first'],_0x121c76=_0xcb119c['find'](_0x45800c=>_0x45800c['action']===_0x59a402['_action'])['isVisible'];_0x57f3db['isVisible']=void 0x0===_0x121c76||_0x121c76(_0x49ac1c);}}),_0x1dbb19;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5ca27e,_0x23a3f7,_0x1c21d1,_0x5e0815){super(_0x5ca27e);const _0x13bdef=this['bindTemplate'],_0x226206=function(_0x3d4012,_0x2a6276){const _0x327994=Array['from'](_0x2a6276['authors'])['filter'](_0x3d887e=>_0x3d887e!=_0x2a6276['creator']);return _0x2a6276['creator']&&_0x327994['unshift'](_0x2a6276['creator']),_0x327994['map'](_0x530db7=>new si(_0x3d4012,_0x530db7,_0x530db7==_0x2a6276['creator']));}(_0x5ca27e,_0x23a3f7);this['id']=_0x23a3f7['id'],this['_revision']=_0x23a3f7,this['_requireRevisionName']=_0x5e0815,this['bind']('name','createdAt')['to'](_0x23a3f7),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3b1c6a=>{return _0x131d7e=_0x5ca27e['uiLanguage'],(_0x2b56dd=_0x3b1c6a)['toLocaleDateString'](_0x131d7e,{'month':'long','day':'numeric'})+',\x20'+_0x2b56dd['toLocaleTimeString'](_0x131d7e,{'hour':'numeric','minute':'numeric'});var _0x131d7e,_0x2b56dd;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x5ca27e,_0x399d5e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x9e76d2=>_0x9e76d2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x46c681,_0x32c8fe)=>_0x46c681&&_0x32c8fe),this['revisionActionsView']=_0x1c21d1&&_0x1c21d1['length']?oi(this,_0x1c21d1):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x13bdef['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x13bdef['if']('isEnabled','ck-disabled',_0xaee0a1=>!_0xaee0a1),_0x13bdef['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x13bdef['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x13bdef['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':_0x13bdef['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':_0x226206}]},this['revisionActionsView']],'on':{'click':_0x13bdef['to'](_0x3d74e0=>{_0x3d74e0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x363543=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x363543,'change',()=>{this['_requireRevisionName']&&!_0x363543['value']||this['fire']('setName',{'id':this['id'],'name':_0x363543['value']}),_0x363543['value']||(_0x363543['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(_0x444790,_0x472192){const _0xb44f6b=_0x479a17['fromJSDate'](_0x444790)['setLocale'](_0x472192),_0x31950f=_0x479a17['local'](),_0x10e100=_0x31950f['minus']({'days':0x1})['startOf']('day');let _0x4c66e8,_0x3ad470;return _0xb44f6b['hasSame'](_0x31950f,'day')?(_0x4c66e8=_0xb44f6b['startOf']('day')['toJSDate'](),_0x3ad470=_0xb44f6b['toRelativeCalendar']()):_0xb44f6b['hasSame'](_0x10e100,'day')?(_0x4c66e8=_0x10e100['toJSDate'](),_0x3ad470=_0xb44f6b['toRelativeCalendar']()):_0xb44f6b['hasSame'](_0x31950f,'week')?(_0x4c66e8=_0xb44f6b['startOf']('week')['toJSDate'](),_0x3ad470=_0xb44f6b['weekdayLong']||''):_0xb44f6b['hasSame'](_0x31950f,'year')?(_0x4c66e8=_0xb44f6b['startOf']('month')['toJSDate'](),_0x3ad470=_0xb44f6b['monthLong']||''):(_0x4c66e8=_0xb44f6b['startOf']('year')['toJSDate'](),_0x3ad470=String(_0xb44f6b['year'])),{'startDate':_0x4c66e8,'localizedPeriodName':_0x3ad470};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3caa0b,_0xd69e85,_0x20ac92,_0x52c122){super(_0x3caa0b);const _0x472b5b=vi(_0xd69e85,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xd69e85,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x20ac92,this['_requireRevisionName']=_0x52c122,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':_0x472b5b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x121dd2){const _0x2b7ace=new hi(this['locale'],_0x121dd2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2b7ace);}['removeRevision'](_0xfdf1f0){const _0x2bdd69=this['revisionViews']['find'](_0x3460c4=>_0x3460c4['id']===_0xfdf1f0['id']);this['revisionViews']['remove'](_0x2bdd69);}}class as extends ts{constructor(_0x27ff5e){super(_0x27ff5e);const _0x1737b4=new _0x12c313();_0x1737b4['content']=_0x16f088,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1737b4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x27ff5e,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x135482,_0x22bdd0,_0x1261e5,_0x45b684){super(_0x135482);const _0x402f58=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x22bdd0,this['_revisionActions']=_0x1261e5,this['_requireRevisionName']=_0x45b684,this['on']('select',(_0x330145,_0x2645e9)=>{this['fire']('revisionSelected',_0x2645e9);}),this['on']('setName',(_0x19f245,_0x5e3a56)=>{this['fire']('revisionSetName',_0x5e3a56);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x135482),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x402f58['if']('isEnabled','ck-disabled',_0x2aaa95=>!_0x2aaa95)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x498b89 of this['_revisions'])this['_addRevision'](_0x498b89);this['_revisions']['on']('add',(_0x30bdac,_0xa458fa)=>{this['_addRevision'](_0xa458fa);}),this['_revisions']['on']('remove',(_0x2495c9,_0x2ea962)=>{this['_removeRevision'](_0x2ea962);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xbdf8=>_0xbdf8['revisionViews']['map'](_0x5ce989=>_0x5ce989))['flat']();}['selectRevision'](_0x2bc0c2){for(const _0x1d3a25 of this['revisionViews'])_0x2bc0c2&&_0x2bc0c2['id']===_0x1d3a25['id']?_0x1d3a25['select']():_0x1d3a25['deselect']();}['highlightRevisions'](_0x376581){for(const _0x23d4f6 of this['revisionViews'])_0x376581['some'](({id:_0xa4f2bc})=>_0xa4f2bc===_0x23d4f6['id'])?_0x23d4f6['highlight']():_0x23d4f6['unhighlight']();}['_addRevision'](_0x4bc457){const _0x33ba06=vi(_0x4bc457['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2a6e67=this['timePeriodViews']['get'](0x0);_0x2a6e67&&_0x2a6e67['startDate']['getTime']()===_0x33ba06['getTime']()||(_0x2a6e67=new mi(this['locale'],_0x33ba06,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2a6e67)),_0x2a6e67['addRevision'](_0x4bc457);}['_removeRevision'](_0x8227b4){const _0x334169=vi(_0x8227b4['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x334169)['removeRevision'](_0x8227b4);}['_getTimePeriodViewByStartDate'](_0x339c3b){return this['timePeriodViews']['find'](_0xe4c782=>_0xe4c782['startDate']['getTime']()===_0x339c3b['getTime']());}}class d extends _0x3a83bf{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x12e34e,uid as _0x5788bb,Collection as _0x13749a,logWarning as _0x121833,FocusTracker as _0x58eb6c,KeystrokeHandler as _0x4856d0,scrollViewportToShowTarget as _0xdf48e0,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x4cbc7d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2d741f,set as _0x40e206,unset as _0x160ac9,isEqual as _0x598c4a}from'es-toolkit/compat';import{Plugin as _0xc5caea,PendingActions as _0x532242,Command as _0x2f0baf,ElementApiMixin as _0x126946,Editor as _0x47bc24}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4ebee9,getMarkerDomElement as _0x3be93a,ConfirmMixin as ti,sanitizeEditorConfig as _0x3aeb5f}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x1f84ef,ViewAttributeElement as _0x29a68a,ViewEmptyElement as _0x453d47,ViewRawElement as _0x38a53b,ViewUIElement as _0x6181ec,ViewDocumentFragment as _0x201c70,ViewText as _0x511c9a,ViewElement as _0x32222a,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 _0x322fcb,IconChevronUp as _0x33a666,IconChevronDown as _0x46eb64,IconUndo as _0x231d54,IconUser as _0x3fd4d6,IconThreeVerticalDots as _0x327e0d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x486773,submitHandler as _0x20114a,LabeledFieldView as _0x3c125a,createLabeledInputText as _0x308ce0,createDropdown as _0x20f831,ListView as _0x434905,ListItemView as _0x4e2ba5,ButtonView as te,MenuBarMenuView as _0x13a812,MenuBarMenuListView as _0x581120,MenuBarMenuListItemView as _0x57e3a1,MenuBarMenuListItemButtonView as _0x35ab35,ContextualBalloon as _0x17c815,ToolbarSeparatorView as _0x54675b,IconView as _0x5d452d,addListToDropdown as _0x273e69,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 _0x179f29}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x12e34e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x133d1f){super(),this['id']=_0x133d1f['id']||_0x5788bb(),this['creator']=_0x133d1f['creator']||null,this['authors']=_0x133d1f['authors']||[],this['diffData']=_0x133d1f['diffData']||null,this['toVersion']=_0x133d1f['toVersion']||0x0,this['fromVersion']=_0x133d1f['fromVersion']||0x0,this['set']('name',_0x133d1f['name']||''),this['set']('createdAt',_0x133d1f['createdAt']||new Date()),this['set']('attributes',_0x133d1f['attributes']||{});}['setName'](_0x3135e9){this['_update']({'name':_0x3135e9});}['setAttribute'](_0x99d772,_0x414ecc){const _0x225a08=_0x2d741f(this['attributes']);_0x40e206(_0x225a08,_0x99d772,_0x414ecc),this['_update']({'attributes':_0x225a08});}['removeAttribute'](_0x3ace2f){const _0xbd45c9=_0x2d741f(this['attributes']);_0x160ac9(_0xbd45c9,_0x3ace2f),this['_update']({'attributes':_0xbd45c9});}['_update'](_0x3f7560,_0x3ada8a=!0x1){let _0x3ea18b=!0x1;const _0x1e7a5c={'id':this['id']},_0x32bfbd=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3d9cef of _0x32bfbd){const _0x747d22=_0x3f7560[_0x3d9cef];void 0x0!==_0x747d22&&_0x747d22!==this[_0x3d9cef]&&(this[_0x3d9cef]=_0x747d22,_0x1e7a5c[_0x3d9cef]=_0x747d22,_0x3ea18b=!0x0);}_0x3ea18b&&(_0x1e7a5c['authors']&&(_0x1e7a5c['authorsIds']=_0x1e7a5c['authors']['map'](_0x105bce=>_0x105bce['id']),delete _0x1e7a5c['authors']),this['fire']('_update',_0x1e7a5c,_0x3ada8a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x59dbfb=>_0x59dbfb['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0xc5caea{['_revisions'];static get['requires'](){return[_0x4ebee9];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x31cf0e){super(_0x31cf0e),this['_revisions']=new _0x13749a();}['afterInit'](){!async function(_0x261fc6){const _0x1d09aa=_0x31d8b8([0x69,0x31,0x62,0x32,0x7a,0x66,0x58,0x51,0x5a,0x30,0x53,0x46,0x75,0x73,0x4e,0x6f,0x72,0x77,0x54,0x50,0x4a,0x4c,0x68,0x43,0x49,0x52,0x6c,0x39,0x63,0x67,0x61,0x45,0x78,0x33,0x36,0x6b,0x47,0x41,0x65,0x55,0x74,0x4d,0x37,0x6d,0x71,0x38,0x56,0x35,0x59,0x48,0x34,0x44,0x6e,0x79,0x57,0x4b,0x42,0x64,0x70,0x76,0x4f,0x6a]),_0x29337f=0xeb829,_0x5b3dee=0x665201eb,_0x228ab1=0x66556273^_0x5b3dee,_0x3642b2=window[_0x31d8b8([0x44,0x61,0x74,0x65])][_0x31d8b8([0x6e,0x6f,0x77])](),_0x2d3f1b=_0x261fc6[_0x31d8b8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d58d0=new window[(_0x31d8b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2db1ed=>{_0x2d3f1b[_0x31d8b8([0x6f,0x6e,0x63,0x65])](_0x31d8b8([0x72,0x65,0x61,0x64,0x79]),_0x2db1ed);}),_0x52c919={[_0x31d8b8([0x6b,0x74,0x79])]:_0x31d8b8([0x45,0x43]),[_0x31d8b8([0x75,0x73,0x65])]:_0x31d8b8([0x73,0x69,0x67]),[_0x31d8b8([0x63,0x72,0x76])]:_0x31d8b8([0x50,0x2d,0x32,0x35,0x36]),[_0x31d8b8([0x78])]:_0x31d8b8([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]),[_0x31d8b8([0x79])]:_0x31d8b8([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]),[_0x31d8b8([0x61,0x6c,0x67])]:_0x31d8b8([0x45,0x53,0x32,0x35,0x36])},_0xf44c85=_0x2d3f1b[_0x31d8b8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31d8b8([0x67,0x65,0x74])](_0x31d8b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ab467(){let _0x1133b2,_0x34f792=null,_0x4bf9e1=null;try{if(_0xf44c85==_0x31d8b8([0x47,0x50,0x4c]))return _0x31d8b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1133b2=_0x5ba263(),!_0x1133b2)return _0x31d8b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1133b2[_0x31d8b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bf9e1=_0x182d4a(_0x1133b2[_0x31d8b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1133b2[_0x31d8b8([0x6a,0x74,0x69])])),await _0x49305e()?_0x2b82f3()?_0x15dffb()?_0x31d8b8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xbaf5e2()?(_0x1133b2[_0x31d8b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31d8b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34f792=_0x46fa70(_0x31d8b8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1133b2[_0x31d8b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31d8b8([0x74,0x72,0x69,0x61,0x6c])&&(_0x34f792=_0x46fa70(_0x31d8b8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12bb40()):_0x31d8b8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31d8b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31d8b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1d6f2c){return _0x31d8b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15dffb(){const _0x1f3dd0=[_0x31d8b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31d8b8([0x74,0x72,0x69,0x61,0x6c])][_0x31d8b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1133b2[_0x31d8b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3642b2/0x3e8:0xe10*_0x228ab1;return _0x1133b2[_0x31d8b8([0x65,0x78,0x70])]<_0x1f3dd0;}function _0x2b82f3(){const _0x2ec27b=_0x1133b2[_0x31d8b8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2ec27b)return!0x1;if(_0x2ec27b[_0x31d8b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d8b8([0x2a])))return!0x0;if(_0x2ec27b[_0x31d8b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d8b8([0x52,0x48])))return!0x0;if(_0x2ec27b[_0x31d8b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d8b8([0x52,0x52,0x48]))){if(_0x23ef02())return!0x0;if(_0x1057cb()||_0x5108b6())return!0x0;}return!0x1;}function _0xbaf5e2(){const _0x243f03=_0x1133b2[_0x31d8b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x243f03||0x0==_0x243f03[_0x31d8b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56b26a}=new URL(window[_0x31d8b8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x243f03[_0x31d8b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b26a))return!0x0;const _0x1ceee3=_0x56b26a[_0x31d8b8([0x73,0x70,0x6c,0x69,0x74])](_0x31d8b8([0x2e]));return _0x243f03[_0x31d8b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x542d66=>_0x542d66[_0x31d8b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d8b8([0x2a])))[_0x31d8b8([0x6d,0x61,0x70])](_0xe35d37=>_0xe35d37[_0x31d8b8([0x73,0x70,0x6c,0x69,0x74])](_0x31d8b8([0x2e])))[_0x31d8b8([0x73,0x6f,0x6d,0x65])](_0x58308c=>_0x1ceee3[_0x31d8b8([0x65,0x76,0x65,0x72,0x79])]((_0x1cea2e,_0x3ba08f)=>_0x58308c[_0x3ba08f]===_0x1cea2e||_0x58308c[_0x3ba08f]===_0x31d8b8([0x2a])));}function _0x12bb40(){return _0x34f792&&_0x4bf9e1?new window[(_0x31d8b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xebf61d,_0x519537)=>{_0x34f792[_0x31d8b8([0x74,0x68,0x65,0x6e])](_0xebf61d,_0x519537),_0x4bf9e1[_0x31d8b8([0x74,0x68,0x65,0x6e])](_0x4a3089=>{_0x4a3089!=_0x31d8b8([0x56,0x61,0x6c,0x69,0x64])&&_0xebf61d(_0x4a3089);},_0x519537);}):_0x34f792||_0x4bf9e1||_0x31d8b8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x182d4a(_0x3d7233,_0xd5d47a){return new window[(_0x31d8b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15934a=>{if(_0x1246ad())return _0x15934a(_0x31d8b8([0x56,0x61,0x6c,0x69,0x64]));_0x411f47(),_0x2d3f1b[_0x31d8b8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31d8b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x328281=!0x1;const _0x3c7516=_0x5788bb();function _0x35fbc5(_0x34de5e){return!!_0x34de5e&&(typeof _0x34de5e===_0x31d8b8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34de5e===_0x31d8b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34de5e[_0x31d8b8([0x74,0x68,0x65,0x6e])]===_0x31d8b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34de5e[_0x31d8b8([0x63,0x61,0x74,0x63,0x68])]===_0x31d8b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x405a79(_0x18efe9){_0x961bdd(_0x18efe9)[_0x31d8b8([0x74,0x68,0x65,0x6e])](_0x4548dc=>{if(!_0x4548dc||_0x4548dc[_0x31d8b8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31d8b8([0x6f,0x6b]))return _0x31d8b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51f70e(_0x1e4288(_0x3c7516+_0xd5d47a))!=_0x4548dc[_0x31d8b8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31d8b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31d8b8([0x56,0x61,0x6c,0x69,0x64]);})[_0x31d8b8([0x74,0x68,0x65,0x6e])](_0x71e293=>(_0x4c5555(),_0x71e293),()=>{const _0x539d73=_0x35caf9();return null==_0x539d73?(_0x4c5555(),_0x31d8b8([0x56,0x61,0x6c,0x69,0x64])):_0x31d8b8(_0x3642b2-_0x539d73>(0x425e85eb^_0x5b3dee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31d8b8([0x74,0x68,0x65,0x6e])](_0x15934a)[_0x31d8b8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15934a(_0x31d8b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53ff6c=0x6664ef6b^_0x5b3dee;function _0x4c5555(){const _0x1c35ab=_0x31d8b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x51f70e(_0x1e4288(_0x3d7233)),_0x32e810=_0x252e99(_0x51f70e(window[_0x31d8b8([0x4d,0x61,0x74,0x68])][_0x31d8b8([0x63,0x65,0x69,0x6c])](_0x3642b2/_0x53ff6c)));window[_0x31d8b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31d8b8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c35ab,_0x32e810);}function _0x35caf9(){const _0x424a5a=_0x31d8b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x51f70e(_0x1e4288(_0x3d7233)),_0x1dbd94=window[_0x31d8b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31d8b8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x424a5a);return _0x1dbd94?window[_0x31d8b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x252e99(_0x1dbd94),0x10)*_0x53ff6c:null;}function _0x961bdd(_0x29c1c5){return new window[(_0x31d8b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c71ee,_0x22528c)=>{_0x29c1c5[_0x31d8b8([0x74,0x68,0x65,0x6e])](_0x1c71ee,_0x22528c),window[_0x31d8b8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22528c,0x6653d52b^_0x5b3dee);});}}_0x2d3f1b[_0x31d8b8([0x6f,0x6e])](_0x31d8b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x74ec26,_0x1cbe50)=>{if(_0x1cbe50[0x0]!=_0x3d7233)return _0x15934a(_0x31d8b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cbe50[0x1]={..._0x1cbe50[0x1],[_0x31d8b8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c7516};},{[_0x31d8b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31d8b8([0x68,0x69,0x67,0x68])}),_0x2d3f1b[_0x31d8b8([0x6f,0x6e])](_0x31d8b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d5276=>{_0x35fbc5(_0x5d5276[_0x31d8b8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x328281=!0x0,_0x405a79(_0x5d5276[_0x31d8b8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31d8b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31d8b8([0x6c,0x6f,0x77])}),_0x5d58d0[_0x31d8b8([0x74,0x68,0x65,0x6e])](()=>{_0x328281||_0x15934a(_0x31d8b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1246ad(){return _0x2d3f1b[_0x31d8b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31d8b8([0x76,0x69,0x65,0x77])][_0x31d8b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31d8b8([0x61,0x75,0x74,0x6f]);}function _0x411f47(){_0x2d3f1b[_0x31d8b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31d8b8([0x76,0x69,0x65,0x77])][_0x31d8b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31d8b8([0x61,0x75,0x74,0x6f]);}}function _0x46fa70(_0x5899ab){const _0x5c25c1=[new window[(_0x31d8b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528da4=>setTimeout(_0x528da4,0x665b3f27^_0x5b3dee)),_0x5d58d0[_0x31d8b8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31d8b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42fd90=>{const _0x30bfc2=0x665201ec^_0x5b3dee,_0x23afd6=_0x261fc6[_0x31d8b8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x591c16(){_0x23afd6[_0x31d8b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x30bfc2&&_0x42fd90();}_0x591c16(),_0x23afd6[_0x31d8b8([0x6f,0x6e])](_0x31d8b8([0x61,0x64,0x64]),_0x591c16);})),new window[(_0x31d8b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ba807=>{function _0x531654(){for(const _0x3392ee in window)if(window[_0x31d8b8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x31d8b8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3392ee))&&window[_0x3392ee]==_0x29337f)return _0x4ba807();_0x2d3f1b[_0x31d8b8([0x73,0x74,0x61,0x74,0x65])]!=_0x31d8b8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x31d8b8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x531654,0x66521263^_0x5b3dee);}_0x46976a(_0x31d8b8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x531654();})];return window[_0x31d8b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31d8b8([0x72,0x61,0x63,0x65])](_0x5c25c1)[_0x31d8b8([0x74,0x68,0x65,0x6e])](()=>_0x5899ab);}async function _0x4cb890(){if(await _0x5d58d0,_0x46976a(_0x31d8b8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x312ede=_0x261fc6[_0x31d8b8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x34f274=_0x261fc6[_0x31d8b8([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])](_0x312ede[_0x31d8b8([0x69,0x64])]),_0x1e6424=_0x1d6aa0(_0x31d8b8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1e6424[_0x31d8b8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x312ede['id'],_0x34f274?_0x34f274['id']:null,!0x0),_0x1e6424[_0x31d8b8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x31d8b8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1e6424[_0x31d8b8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1e6424[_0x31d8b8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x52f5e0,void(_0x1e6424[_0x31d8b8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x52f5e0);}if(_0x46976a(_0x31d8b8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x305cd2=_0x1d6aa0(_0x31d8b8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x305cd2[_0x31d8b8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x31d8b8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x305cd2[_0x31d8b8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x305cd2[_0x31d8b8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x52f5e0,_0x305cd2[_0x31d8b8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x52f5e0;}_0x2d3f1b[_0x31d8b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x31d8b8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52f5e0,_0x2d3f1b[_0x31d8b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x31d8b8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52f5e0,_0x2d3f1b[_0x31d8b8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31d8b8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23ef02(){return _0x46976a(_0x31d8b8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1d6aa0(_0x31d8b8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x31d8b8([0x73,0x74,0x61,0x74,0x65])]==_0x31d8b8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1057cb(){return _0x46976a(_0x31d8b8([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 _0x5108b6(){return _0x46976a(_0x31d8b8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e205f(_0x435368){const _0x3fcd1f=_0x58ab5c();_0x2d3f1b[_0x3fcd1f]=_0x31d8b8([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])+_0x435368,_0x435368[_0x31d8b8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x31d8b8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x58ab5c()]=_0x29337f),_0x435368!=_0x31d8b8([0x56,0x61,0x6c,0x69,0x64])&&_0x4cb890();}function _0x58ab5c(){const _0x5e4dbe=window[_0x31d8b8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31d8b8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31d8b8([0x6e,0x6f,0x77])]())[_0x31d8b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31d8b8([0x2e]),'');let _0x24ed8d=_0x31d8b8([0x69]);for(let _0x53e58b=0x0;_0x53e58b<_0x5e4dbe[_0x31d8b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53e58b+=0x2){let _0x40e78a=window[_0x31d8b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e4dbe[_0x31d8b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53e58b,_0x53e58b+0x2));_0x40e78a>=_0x1d09aa[_0x31d8b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40e78a-=_0x1d09aa[_0x31d8b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24ed8d+=_0x1d09aa[_0x40e78a];}return _0x24ed8d;}function _0x5ba263(){const _0x47b2d5=_0xf44c85[_0x31d8b8([0x73,0x70,0x6c,0x69,0x74])](_0x31d8b8([0x2e]));if(0x3!=_0x47b2d5[_0x31d8b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c9e79(_0x47b2d5[0x1]);function _0x5c9e79(_0x52991e){const _0x156c4a=_0x57c3a5(_0x52991e);return _0x156c4a&&_0x532963()?_0x156c4a:null;function _0x532963(){const _0x53e269=_0x156c4a[_0x31d8b8([0x6a,0x74,0x69])],_0x3764c9=window[_0x31d8b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53e269[_0x31d8b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53e269[_0x31d8b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x440188={..._0x156c4a,[_0x31d8b8([0x6a,0x74,0x69])]:_0x53e269[_0x31d8b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53e269[_0x31d8b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x440188[_0x31d8b8([0x76,0x63])],_0x1e4288(_0x440188)==_0x3764c9;}}}async function _0x49305e(){let _0x1c3b34=!0x0;try{const _0x5095f5=_0xf44c85[_0x31d8b8([0x73,0x70,0x6c,0x69,0x74])](_0x31d8b8([0x2e])),[_0x50de01,_0x354f47,_0x3ee76f]=_0x5095f5;return _0x38835b(_0x50de01),await _0xb4790d(_0x50de01,_0x354f47,_0x3ee76f),_0x1c3b34;}catch(_0x1d1f1e){return!0x1;}function _0x38835b(_0x11bed6){const _0x43e8b2=_0x57c3a5(_0x11bed6);_0x43e8b2&&_0x43e8b2[_0x31d8b8([0x61,0x6c,0x67])]==_0x31d8b8([0x45,0x53,0x32,0x35,0x36])||(_0x1c3b34=!0x1);}async function _0xb4790d(_0x4ba923,_0x2009c8,_0x587185){const _0x56e418=window[_0x31d8b8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31d8b8([0x66,0x72,0x6f,0x6d])](_0x399f9a(_0x587185),_0x4b7fae=>_0x4b7fae[_0x31d8b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25c7fd=new window[(_0x31d8b8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31d8b8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ba923+_0x31d8b8([0x2e])+_0x2009c8),_0x17c7f0=window[_0x31d8b8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31d8b8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17c7f0)return;const _0x372d95=await _0x17c7f0[_0x31d8b8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31d8b8([0x6a,0x77,0x6b]),_0x52c919,{[_0x31d8b8([0x6e,0x61,0x6d,0x65])]:_0x31d8b8([0x45,0x43,0x44,0x53,0x41]),[_0x31d8b8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31d8b8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31d8b8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17c7f0[_0x31d8b8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31d8b8([0x6e,0x61,0x6d,0x65])]:_0x31d8b8([0x45,0x43,0x44,0x53,0x41]),[_0x31d8b8([0x68,0x61,0x73,0x68])]:{[_0x31d8b8([0x6e,0x61,0x6d,0x65])]:_0x31d8b8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x372d95,_0x56e418,_0x25c7fd)||(_0x1c3b34=!0x1);}}function _0x57c3a5(_0x4cc2c4){return _0x4cc2c4[_0x31d8b8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31d8b8([0x65,0x79]))?JSON[_0x31d8b8([0x70,0x61,0x72,0x73,0x65])](_0x399f9a(_0x4cc2c4)):null;}function _0x399f9a(_0x480027){return window[_0x31d8b8([0x61,0x74,0x6f,0x62])](_0x480027[_0x31d8b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31d8b8([0x2b]))[_0x31d8b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31d8b8([0x2f])));}function _0x1e4288(_0x2e2dc6){let _0x218260=0x1505;function _0x512d3a(_0x2c44f1){for(let _0x53ced7=0x0;_0x53ced7<_0x2c44f1[_0x31d8b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53ced7++){const _0x5ea5ef=_0x2c44f1[_0x31d8b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53ced7);_0x218260=(_0x218260<<0x5)+_0x218260+_0x5ea5ef,_0x218260&=_0x218260;}}function _0x17a100(_0x32e0ac){Array[_0x31d8b8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32e0ac)?_0x32e0ac[_0x31d8b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17a100):_0x32e0ac&&typeof _0x32e0ac==_0x31d8b8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31d8b8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32e0ac)[_0x31d8b8([0x73,0x6f,0x72,0x74])]()[_0x31d8b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x218caf,_0x18c609])=>{_0x512d3a(_0x218caf),_0x17a100(_0x18c609);}):_0x512d3a(window[_0x31d8b8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32e0ac));}return _0x17a100(_0x2e2dc6),_0x218260>>>0x0;}function _0x51f70e(_0x3476a7){return _0x3476a7[_0x31d8b8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31d8b8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31d8b8([0x30]));}function _0x252e99(_0x1b70d8){return _0x1b70d8[_0x31d8b8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31d8b8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31d8b8([0x6a,0x6f,0x69,0x6e])]('');}function _0x46976a(_0x62d74a){return _0x2d3f1b[_0x31d8b8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x31d8b8([0x68,0x61,0x73])](_0x62d74a);}function _0x1d6aa0(_0x2d5c66){return _0x2d3f1b[_0x31d8b8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x31d8b8([0x67,0x65,0x74])](_0x2d5c66);}function _0x52f5e0(){}function _0x31d8b8(_0x579b44){return _0x579b44['map'](_0x55dc4c=>String['fromCharCode'](_0x55dc4c))['join']('');}_0x1e205f(await _0x3ab467());}(this);}['createRevision'](_0x5978c8){const _0x4c742f=this['editor']['plugins']['get']('Users');return new h({'id':_0x5978c8['id'],'name':_0x5978c8['name'],'creator':_0x5978c8['creatorId']?_0x4c742f['getUser'](_0x5978c8['creatorId']):null,'diffData':_0x5978c8['diffData']||_0x5978c8['data'],'authors':_0x5978c8['authorsIds']['map'](_0x40f280=>_0x4c742f['getUser'](_0x40f280)),'createdAt':new Date(_0x5978c8['createdAt']),'attributes':_0x5978c8['attributes'],'fromVersion':_0x5978c8['fromVersion'],'toVersion':_0x5978c8['toVersion']});}['addRevision'](_0x138ab4,_0x135301=0x0){this['_revisions']['add'](_0x138ab4,_0x135301);}['getRevision'](_0x58eb3f){return this['_revisions']['get'](_0x58eb3f);}['getRevisions'](_0x1c2aa6={'toJSON':!0x1}){const _0xdee55f=Array['from'](this['_revisions']);return _0xdee55f['reverse'](),_0x1c2aa6['toJSON']?_0xdee55f['map'](_0x5f2c39=>_0x5f2c39['toJSON']()):_0xdee55f;}['getIndex'](_0x2cdb82){return this['_revisions']['getIndex'](_0x2cdb82);}['getEarlierVisibleRevision'](_0x487947){const [,_0x2e869b]=this['getRevisionsIterator'](_0x487947,{'direction':'earlier'});return _0x2e869b;}['getLaterVisibleRevision'](_0xba46e7){const [,_0x5c6ac1]=this['getRevisionsIterator'](_0xba46e7,{'direction':'later'});return _0x5c6ac1;}['getRevisionsInDiff'](_0x247b47){const _0x25e399=[];for(const _0x541db5 of this['getRevisionsIterator'](_0x247b47['newRevisionId']))if(_0x25e399['push'](_0x541db5),_0x541db5['id']===_0x247b47['oldRevisionId'])break;return _0x25e399;}*['getRevisionsIterator'](_0x1ac322,{direction:_0x25b6d7='earlier',filter:_0x2622bb=()=>!0x0}={}){const _0x5383c4='earlier'===_0x25b6d7?0x1:-0x1;let _0x1c8926=this['_revisions']['get'](_0x1ac322),_0x30033c=this['getIndex'](_0x1c8926);for(yield _0x1c8926;_0x1c8926;){if(_0x30033c+=_0x5383c4,_0x1c8926=this['getRevision'](_0x30033c),!_0x1c8926)return;_0x2622bb(_0x1c8926)&&(yield _0x1c8926);}}}class V extends _0xc5caea{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1f84ef,'c'],[_0x29a68a,'a'],[_0x453d47,'e'],[_0x38a53b,'r'],[_0x6181ec,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1f84ef],['a',_0x29a68a],['e',_0x453d47],['r',_0x38a53b],['u',_0x6181ec]]);async['loadRevisionData'](_0x3035fe,_0x2a76c4){if(_0x3035fe['diffData']||!_0x2a76c4)return;const _0x186bb4=this['editor']['config']['get']('collaboration.channelId'),_0x51f841=await _0x2a76c4['getRevision']({'channelId':_0x186bb4,'revisionId':_0x3035fe['id']});_0x3035fe['diffData']=_0x51f841['diffData'];}['getRevisionDocumentData'](_0x1fa58f){const _0xb137fc={};for(const _0x49c8d9 in _0x1fa58f['diffData']){if(_0x1fa58f['diffData'][_0x49c8d9]['attachChange']&&!_0x1fa58f['diffData'][_0x49c8d9]['attachChange']['isAttached'])continue;const _0x5c09bd=this['_removeRevisionMarkers'](JSON['parse'](_0x1fa58f['diffData'][_0x49c8d9]['insertions'])),_0x543701=this['editor']['editing']['view']['document'],_0xa38669=new _0x201c70(_0x543701,_0x5c09bd['map'](_0x54c4e1=>this['_getViewFromDiffObj'](_0x54c4e1,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xb137fc[_0x49c8d9]=this['editor']['data']['processor']['toData'](_0xa38669),this['editor']['data']['processor']['useFillerType']('default');}return _0xb137fc;}['getRevisionRootsAttributes'](_0x120140){const _0x22a3af={};for(const _0x51242c in _0x120140['diffData'])_0x120140['diffData'][_0x51242c]['attachChange']&&!_0x120140['diffData'][_0x51242c]['attachChange']['isAttached']||(_0x22a3af[_0x51242c]=_0x120140['diffData'][_0x51242c]['attributesAfter']||{});return _0x22a3af;}['_getTypeCharForViewElement'](_0x1cfae2){return this['_viewClassToTypeChar']['get'](_0x1cfae2['constructor']);}['_getViewFromDiffObj'](_0x1e2d9a,_0x9464cf){const _0x344427=this['editor']['editing']['view']['document'];if('string'==typeof _0x1e2d9a)return new _0x511c9a(_0x344427,_0x1e2d9a);{let _0x5b8f30,_0x20f30c;_0x20f30c='u'==_0x1e2d9a['type']||'r'==_0x1e2d9a['type']?[]:_0x1e2d9a['children']['map'](_0x4e3fa4=>this['_getViewFromDiffObj'](_0x4e3fa4,_0x9464cf));const _0x118fb7=this['_typeCharToViewClass']['get'](_0x1e2d9a['type'])||_0x32222a,_0x5ebea2=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5b8f30=new _0x118fb7(_0x344427,_0x1e2d9a['name'],_0x1e2d9a['attributes'],_0x20f30c),'u'==_0x1e2d9a['type']){const _0x573b35=_0x1e2d9a['children'][0x0];if(_0x5b8f30['render']=function(_0x5733dc){const _0x2c236d=_0x5733dc['createElement']('div');return _0x2c236d['innerHTML']=_0x573b35,_0x2c236d['childNodes'][0x0];},_0x9464cf){const _0x211ee0=new _0x201c70(_0x344427);_0x211ee0['_appendChild'](_0x5b8f30);const _0x18b539=Array['from'](_0x5ebea2['viewChildrenToDom'](_0x211ee0,{'bind':!0x1})),_0x84e89f=_0x5ebea2['domDocument']['createElement']('div');_0x84e89f['append'](..._0x18b539),_0x5b8f30=Array['from'](_0x5ebea2['domChildrenToView'](_0x84e89f))[0x0];}}else{if('r'==_0x1e2d9a['type']){const _0x13b03d=_0x1e2d9a['children'][0x0];if(_0x5b8f30['render']=function(_0x11ba86){_0x11ba86['innerHTML']=_0x13b03d;},_0x9464cf){const _0x1c11f5=new _0x201c70(_0x344427);_0x1c11f5['_appendChild'](_0x5b8f30);const _0x3ffb29=Array['from'](_0x5ebea2['viewChildrenToDom'](_0x1c11f5,{'bind':!0x1})),_0x3efe93=_0x5ebea2['domDocument']['createElement']('div');_0x3efe93['append'](..._0x3ffb29);const _0x445b1e=Array['from'](_0x5ebea2['domChildrenToView'](_0x3efe93));_0x445b1e['length']>0x1?_0x5b8f30['_appendChild'](_0x445b1e):_0x5b8f30=_0x445b1e[0x0];}}}if(_0x1e2d9a['customProperties']){for(const [_0x1e1ff8,_0x3ef680]of _0x1e2d9a['customProperties'])_0x5b8f30['_setCustomProperty'](_0x1e1ff8,_0x3ef680);}const _0x214a97=_0x1e2d9a['fillerOffset']||null;return _0x5b8f30['getFillerOffset']=()=>_0x214a97,_0x5b8f30;}}['_makeModelFromViewString'](_0x1807d8){const _0x40ad2a=JSON['parse'](_0x1807d8),_0x24dd89=this['editor']['editing']['view']['document'],_0x22bbbb=new _0x201c70(_0x24dd89,_0x40ad2a['map'](_0x3056b2=>this['_getViewFromDiffObj'](_0x3056b2,!0x0)));return this['editor']['data']['toModel'](_0x22bbbb);}['_removeRevisionMarkers'](_0x3552cb){return(_0x3552cb=_0x3552cb['filter'](_0x437d63=>!_0x437d63['name']||'revision-start'!==_0x437d63['name']&&'revision-end'!==_0x437d63['name']))['forEach'](_0x1503c9=>{'string'!=typeof _0x1503c9&&(_0x1503c9['children']=this['_removeRevisionMarkers'](_0x1503c9['children']),_0x1503c9['attributes']=_0x1503c9['attributes']['filter'](_0x1de7b4=>!_0x1de7b4[0x0]['startsWith']('data-revision-')));}),_0x3552cb;}}function g(_0x12ec63,_0x45438d,_0xc3623f){const t=_0x12ec63['t'];switch(_0x45438d){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'},_0xc3623f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xc3623f);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 _0xc5caea{['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[_0x4ebee9,I,V,_0x532242];}constructor(_0x30eed7){super(_0x30eed7),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 _0x7de182=_0x5788bb();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x7de182},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 _0x3415c9=this['repository']['getRevision'](0x0),_0x4ebb0d=_0x3415c9&&null===_0x3415c9['creator']?_0x3415c9:null;if(this['_continueCurrentRevision']=!!_0x4ebb0d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4924b6=this['_source']['getCurrentRevisionId'](),_0x35cc50=this['repository']['getRevision'](_0x4924b6);if(_0x35cc50)this['_startingVersion']=_0x35cc50['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x24740c=this['_source']['history']['_operations']['find'](_0x20c0ea=>!_0x20c0ea['_isInit']),_0x22f76b=_0x24740c?_0x24740c['baseVersion']:this['_source']['history']['version'];_0x3415c9?(_0x3415c9['toVersion']<_0x22f76b&&_0x3415c9['_update']({'toVersion':_0x22f76b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4ebb0d['id'],this['_startingVersion']=_0x4ebb0d['fromVersion']):(this['_startingVersion']=_0x3415c9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x22f76b,this['_continueCurrentRevision']=!0x1);}}else _0x4ebb0d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4ebb0d['toVersion'],this['editor']['model']['document']['history']['version']),_0x4ebb0d['fromVersion']===_0x4ebb0d['toVersion']?(0x0!==_0x4ebb0d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ebb0d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ebb0d['id'],this['_startingVersion']=_0x4ebb0d['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',_0x3c2e70=>!_0x3c2e70),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x507679=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x267674;for(const _0x416f2d in _0x507679){const _0x425a3b=_0x416f2d,_0x58e75a=_0x507679[_0x425a3b];if('revisionHistoryLicenseKeyValid'==_0x58e75a||'revisionHistoryLicenseKeyInvalid'==_0x58e75a||'revisionHistoryLicenseKeyExpired'==_0x58e75a||'revisionHistoryLicenseKeyDomainLimit'==_0x58e75a||'revisionHistoryLicenseKeyNotAllowed'==_0x58e75a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x58e75a||'revisionHistoryLicenseKeyTrialLimit'==_0x58e75a||'revisionHistoryLicenseKeyUsageLimit'==_0x58e75a){delete _0x507679[_0x425a3b],_0x267674=_0x58e75a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x267674&&_0x507679['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x267674&&_0x507679['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x267674&&_0x507679['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x267674&&_0x507679['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x267674&&_0x507679['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x267674&&_0x507679['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x267674&&_0x507679['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5f3863=this['repository']['getRevision'](0x0),_0x4a9482=await this['getRevisionDocumentData'](_0x5f3863),_0x1c8187=await this['getRevisionRootsAttributes'](_0x5f3863);this['_replaceEditorDataWithRevisionData'](_0x4a9482,_0x1c8187);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xba7f88){this['_source']=_0xba7f88;}async['update'](){const _0x1243b2=await this['_source']['getLatestVersion']();if(_0x1243b2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x160996=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1243b2});_0x160996['authors']=_0x160996['authorsIds']['map'](_0x36074e=>this['editor']['plugins']['get']('Users')['getUser'](_0x36074e)),this['currentRevision']['_update'](_0x160996);}}async['saveRevision'](_0x1ba60f={},_0x408279=null){const _0xf09e84=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x408279>this['currentRevision']['toVersion']&&(_0x408279=null),null===_0x408279&&(_0x408279=await this['_source']['getLatestVersion']());const _0x34b2d8=this['_getFromVersion'](_0x408279),_0x5c142a=this['buildRevisionData']({'from':_0x34b2d8,'to':_0x408279});if(this['currentRevision']['toVersion']<_0x408279){const _0x239dcd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x408279,'to':_0x408279});_0x239dcd['authors']=[],_0x239dcd['authorsIds']=[],_0x239dcd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x239dcd,!0x0),delete _0x239dcd['authors'],_0xf09e84['push'](_0x239dcd);}_0x1ba60f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ba60f['name']=_0x1ba60f['name']||null,_0x1ba60f['id']=_0x1ba60f['id']||_0x5788bb(),_0x1ba60f={..._0x1ba60f,..._0x5c142a};const _0x522b66=this['addRevisionData'](_0x1ba60f);_0xf09e84['push'](_0x1ba60f);const _0x475d27=this['repository']['getIndex'](_0x522b66);if(0x0!==_0x475d27){const _0x106d9a=this['repository']['getRevision'](_0x475d27-0x1);if(_0x106d9a['fromVersion']!==_0x408279){const _0x20ac98=this['_revisionDataBuilder']['getData'](_0x408279,_0x106d9a['toVersion']),_0x493617={'id':_0x106d9a['id'],'diffData':_0x20ac98['diffData'],'authorsIds':_0x20ac98['authorsIds'],'authors':_0x20ac98['authorsIds']['map'](_0x595457=>this['editor']['plugins']['get']('Users')['getUser'](_0x595457)),'fromVersion':_0x408279};_0x106d9a===this['currentRevision']&&(_0x493617['createdAt']=new Date(_0x1ba60f['createdAt']['getTime']()+0xa)),_0x106d9a['_update'](_0x493617,!0x0),delete _0x493617['authors'],_0xf09e84['push'](_0x493617);}}if(this['adapter']){for(const _0x5a903e of _0xf09e84)this['_bufferUpdate'](_0x5a903e['id'],_0x5a903e,!0x0);this['sendBufferedUpdates']();}return _0x522b66;}['addRevisionData'](_0x5834f2){const _0x56da8f=this['repository']['createRevision'](_0x5834f2);return this['adapter']&&_0x56da8f['on']('_update',(_0x2f07c3,_0x5a86ad,_0xb5ddaa)=>{_0xb5ddaa||(this['_bufferUpdate'](_0x5a86ad['id'],_0x5a86ad,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x56da8f,this['_findInsertionIndex'](_0x56da8f)),_0x56da8f;}async['getRevisionDocumentData'](_0x4c46c5){return await this['_utils']['loadRevisionData'](_0x4c46c5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4c46c5);}async['getRevisionRootsAttributes'](_0x40bc0b){return await this['_utils']['loadRevisionData'](_0x40bc0b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x40bc0b);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x17fe42=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4f5ac7=0x0;_0x4f5ac7<_0x17fe42['length'];_0x4f5ac7++){const _0x401d9f=_0x17fe42[_0x4f5ac7];let _0x3b0223=!0x1;for(const _0x2a0912 of Object['keys'](_0x401d9f))void 0x0===_0x401d9f[_0x2a0912]?delete _0x401d9f[_0x2a0912]:'id'!==_0x2a0912&&(_0x3b0223=!0x0);_0x3b0223||(_0x17fe42[_0x4f5ac7]=null);}if(_0x17fe42=_0x17fe42['filter'](_0x24d2dd=>null!==_0x24d2dd),!_0x17fe42['length'])return;for(let _0x116687=0x0;_0x116687<_0x17fe42['length'];_0x116687++){const _0x7c0f05=_0x17fe42[_0x116687];void 0x0!==_0x7c0f05['fromVersion']&&void 0x0===_0x7c0f05['toVersion']&&(_0x7c0f05['toVersion']=this['repository']['getRevision'](_0x7c0f05['id'])['toVersion']),void 0x0!==_0x7c0f05['toVersion']&&void 0x0===_0x7c0f05['fromVersion']&&(_0x7c0f05['fromVersion']=this['repository']['getRevision'](_0x7c0f05['id'])['fromVersion']);}const _0x453689=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x17fe42,_0x453689)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5021cd=>{if(_0x5021cd){for(const _0x3e61f5 of _0x5021cd)this['setRevisionData']({'id':_0x3e61f5['id'],'createdAt':_0x3e61f5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1b7697=null,from:_0x434fa4=null,to:_0x48d0cf=null}){_0x434fa4=null!==_0x434fa4?_0x434fa4:_0x1b7697['fromVersion'],_0x48d0cf=null!==_0x48d0cf?_0x48d0cf:_0x1b7697['toVersion'];const _0x57fe5a=this['_revisionDataBuilder']['getData'](_0x434fa4,_0x48d0cf),_0x23ccee={'diffData':_0x57fe5a['diffData'],'authorsIds':_0x57fe5a['authorsIds'],'fromVersion':_0x434fa4,'toVersion':_0x48d0cf};if(!_0x1b7697||_0x48d0cf!==_0x1b7697['toVersion']){const _0x3f9dd5=_0x48d0cf-0x1,_0xe23762=this['_source']['history']['getOperation'](_0x3f9dd5);_0x23ccee['createdAt']=_0xe23762&&_0xe23762['createdAt']||new Date();}if(this['_loadedStateData']&&_0x434fa4===this['_loadedStateData']['fromVersion']){for(const _0x54646a of this['_loadedStateData']['authors'])_0x23ccee['authorsIds']['includes'](_0x54646a['id'])||_0x23ccee['authorsIds']['push'](_0x54646a['id']);}return _0x23ccee;}['_bufferUpdate'](_0x16040f,_0x5f0cbb,_0x39c5b8){if(this['_bufferedUpdates']['has'](_0x16040f)){const _0x5efb43=this['_bufferedUpdates']['get'](_0x16040f);_0x5f0cbb=_0x39c5b8?{..._0x5efb43,..._0x5f0cbb}:{..._0x5f0cbb,..._0x5efb43};}this['_bufferedUpdates']['set'](_0x16040f,_0x5f0cbb);}['setRevisionData'](_0x29174f){const _0x4a51ca=this['repository']['getRevision'](_0x29174f['id']);if(_0x29174f['createdAt']&&(_0x29174f['createdAt']=new Date(_0x29174f['createdAt'])),_0x29174f['authorsIds']){const _0xd46ce2=this['editor']['plugins']['get']('Users');_0x29174f['authors']=_0x29174f['authorsIds']['map'](_0x46e85c=>_0xd46ce2['getUser'](_0x46e85c));}_0x4a51ca['_update'](_0x29174f,!0x0);}['_createInitialRevision'](_0x4ceed5){const _0x4a96e4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4a96e4)this['_initialRevisionId']=_0x4a96e4['id'];else{const _0x570da0=!this['editor']['model']['document']['roots']['find'](_0x4ac2a0=>this['editor']['model']['hasContent'](_0x4ac2a0)),_0x26dd73=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ebd94=g(this['editor']['locale'],_0x570da0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4ceed5,'to':_0x4ceed5,'id':this['_initialRevisionId'],'name':_0x2ebd94,'creatorId':_0x26dd73});}}['_createCurrentRevision'](_0x41471d){const _0x27079d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x27079d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x41471d,'to':_0x41471d,'id':_0x27079d,'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'](_0x33a4bb,_0xfc6e6b){let _0x4866f3=this['editor']['config']['get']('initialData'),_0x1bf5a8=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4866f3){_0x4866f3={};for(const _0x59c5a3 of this['editor']['model']['document']['getRootNames']())_0x4866f3[_0x59c5a3]='';}if('string'==typeof _0x4866f3&&(_0x4866f3={'main':_0x4866f3}),void 0x0===_0x1bf5a8){_0x1bf5a8={};for(const _0x31e7ad of this['editor']['model']['document']['getRootNames']())_0x1bf5a8[_0x31e7ad]={};}let _0x346b63=!0x1;const _0x27f4d3=Object['keys'](_0x4866f3),_0x2489dc=Object['keys'](_0x33a4bb);for(const _0x3448d3 of _0x27f4d3){if(_0x4866f3[_0x3448d3]!==_0x33a4bb[_0x3448d3]&&''!==_0x4866f3[_0x3448d3]['trim']()){_0x346b63=!0x0;break;}if(!_0x598c4a(_0x1bf5a8[_0x3448d3],_0xfc6e6b[_0x3448d3])&&Object['keys'](_0x1bf5a8[_0x3448d3])['length']>0x0){_0x346b63=!0x0;break;}}_0x346b63||(_0x346b63=_0x2489dc['some'](_0x1484fd=>!this['editor']['model']['document']['getRoot'](_0x1484fd))),_0x346b63&&_0x121833('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4866f3,'editorRootsAttributes':_0x1bf5a8,'revisionData':_0x33a4bb,'revisionRootsAttributes':_0xfc6e6b}),this['editor']['config']['set']('initialData',_0x33a4bb),this['editor']['config']['set']('rootsAttributes',_0xfc6e6b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x143ace=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x143ace['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5c509d){const _0x375049=this['repository']['getRevisions']();_0x375049['reverse']();let _0x4a2878=0x0;for(;_0x4a2878<_0x375049['length'];){const _0x5c8407=_0x375049[_0x4a2878];if(_0x5c8407===this['currentRevision']){_0x4a2878++;continue;}if(_0x5c8407['id']===this['_initialRevisionId'])break;const _0xe1ec0b=_0x5c509d['toVersion']-_0x5c8407['toVersion']||_0x5c509d['fromVersion']-_0x5c8407['fromVersion'];if(_0xe1ec0b>0x0)break;if(_0xe1ec0b<0x0)_0x4a2878++;else{if(!_0x5c509d['creator']&&_0x5c8407['creator'])break;if(_0x5c8407['creator']||!_0x5c509d['creator']){if(_0x5c509d['createdAt']>_0x5c8407['createdAt'])break;_0x4a2878++;}else _0x4a2878++;}}return _0x4a2878;}['_getFromVersion'](_0x412c6b){const _0xbd08c5=this['repository']['getRevisions']();_0xbd08c5['reverse'](),_0xbd08c5['shift']();const _0x3aede7=_0xbd08c5['find'](_0xa042=>_0xa042['toVersion']<=_0x412c6b)['toVersion'];return _0x3aede7<this['_startingVersion']?this['_startingVersion']:_0x3aede7;}['_makeRevision']({name:_0x1b299e,from:_0x31e165,to:_0x2182d7,creatorId:_0x546b80,id:_0x3e338e}){const _0x3ae1d8=this['buildRevisionData']({'from':_0x31e165,'to':_0x2182d7});_0x3ae1d8['name']=_0x1b299e,_0x3ae1d8['creatorId']=_0x546b80,_0x3ae1d8['id']=_0x3e338e;const _0x115d59=this['addRevisionData'](_0x3ae1d8);return this['adapter']&&this['_bufferUpdate'](_0x3ae1d8['id'],_0x3ae1d8,!0x0),_0x115d59;}['_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(_0x32bb58){this['editor']=_0x32bb58,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'](_0x363523){this['source']=_0x363523;const _0x5bc00c=new Map(),_0x3d266c=new Map(),_0xcaf7cd=this['editor']['model']['document']['roots']['map'](_0x3c7c61=>_0x3c7c61['rootName']);for(const _0x1b59b0 of _0xcaf7cd){const _0x53c200=this['editor']['model']['document']['getRoot'](_0x1b59b0),_0x41a887=N(_0x53c200);_0x5bc00c['set'](_0x1b59b0,_0x41a887),_0x3d266c['set'](_0x1b59b0,Object['fromEntries'](_0x53c200['getAttributes']()));}const _0x17333e=Array['from'](this['editor']['model']['markers'])['map'](_0x4924a5=>[_0x4924a5['name'],_0x4924a5['getRange']()]),_0x7f925f=this['source']['version'];this['_saveMetaData'](_0x7f925f,_0x5bc00c,_0x17333e,_0x3d266c),this['_startingRevisionId']=this['_revisionId'];const _0x221fad=new Map(),_0x4f6c37=new Map();for(const _0x111118 of _0xcaf7cd){const _0x493de1=P(_0x111118);_0x221fad['set'](_0x111118,_0x493de1),_0x4f6c37['set'](_0x111118,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x221fad,[],_0x4f6c37);}['getData'](_0x55174b,_0x2b2138){if(this['_lastFrom']===_0x55174b&&this['_lastTo']<=_0x2b2138)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2b2138,!0x0);else{if(!this['_savedMetaData']['has'](_0x55174b)){const _0x108f28=this['_getPreviousFrom'](_0x55174b);this['_calculateMetaData'](_0x108f28,_0x55174b,!0x1);}this['_calculateMetaData'](_0x55174b,_0x2b2138,!0x0);}return this['_lastFrom']=_0x55174b,this['_lastTo']=_0x2b2138,this['_getState']();}['loadState'](_0x4b961e){const _0x10d6e0=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4b961e['fromVersion'],this['_lastTo']=_0x4b961e['toVersion'];for(const _0xed0104 in _0x4b961e['diffData']){const _0x2c4b62=_0x4b961e['diffData'][_0xed0104]['attachChange'],_0x3d8a53=_0x2d741f(_0x4b961e['diffData'][_0xed0104]['attributesBefore'])||{},_0x36f646=_0x10d6e0['_makeModelFromViewString'](_0x4b961e['diffData'][_0xed0104]['deletions']);_0x36f646['rootName']=_0xed0104,_0x36f646['_isAttached']=!_0x2c4b62||!_0x2c4b62['isAttached'],_0x36f646['isAttached']=()=>_0x36f646['_isAttached'],this['_baseRoots']['set'](_0xed0104,_0x36f646),this['_baseRootsAttributes']['set'](_0xed0104,_0x3d8a53),_0x2c4b62&&this['_touchedRoots']['set'](_0xed0104,_0x2c4b62);const _0x22c7f5=this['_makeIdsRoot'](_0x36f646);this['_baseIdsRoots']['set'](_0xed0104,_0x22c7f5);for(const [_0x6a55ab,_0x57c47a]of _0x36f646['markers']){if(!_0x6a55ab['startsWith']('revision:'))continue;const _0x5792ff=_0x6a55ab['split'](':')[0x2];for(const _0x4870df of _0x57c47a['getWalker']({'singleCharacters':!0x0})){const _0x4e2d1b=this['_getVidAttributeName'](_0x4870df),_0x5291d0='elementEnd'==_0x4870df['type']?_0x4870df['previousPosition']['path']['slice'](0x0,-0x1):_0x4870df['previousPosition']['path'],_0x2553ed=_0x22c7f5['getNodeByPath'](_0x5291d0)['getAttribute'](_0x4e2d1b);this['_touched']['set'](_0x2553ed,{'userId':_0x5792ff});}}}this['_startingRevisionId']=this['_revisionId'];const _0x502d79=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3abb8e=>!this['_touched']['has'](_0x3abb8e));let _0x4e6b7e=0x0;const _0xdfaa95=new Map();for(const _0xdcbb2c in _0x4b961e['diffData']){const _0x524fae=_0x4b961e['diffData'][_0xdcbb2c]['attachChange'],_0x1a00fa=_0x2d741f(_0x4b961e['diffData'][_0xdcbb2c]['attributesAfter'])||{},_0x580ecc=_0x10d6e0['_makeModelFromViewString'](_0x4b961e['diffData'][_0xdcbb2c]['insertions']);_0x580ecc['rootName']=_0xdcbb2c,_0x580ecc['_isAttached']=!_0x524fae||_0x524fae['isAttached'],_0x580ecc['isAttached']=()=>_0x580ecc['_isAttached'],this['_diffRoots']['set'](_0xdcbb2c,_0x580ecc),this['_diffRootsAttributes']['set'](_0xdcbb2c,_0x1a00fa);const _0x55a1ac=this['_makeIdsRoot'](_0x580ecc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xdcbb2c,_0x55a1ac),_0xdfaa95['set'](_0xdcbb2c,_0x580ecc['isAttached']()?_0x1a00fa:{});for(const [_0x53d8e3,_0x3f215e]of _0x580ecc['markers']){if(!_0x53d8e3['startsWith']('revision:'))continue;const _0x4dbdc0=_0x53d8e3['split'](':')[0x2];for(const _0x36f27a of _0x3f215e['getWalker']({'singleCharacters':!0x0})){const _0x246e98=this['_getVidAttributeName'](_0x36f27a),_0x3f7705=this['_revisionId']++,_0xfaa473='elementEnd'==_0x36f27a['type']?_0x36f27a['previousPosition']['path']['slice'](0x0,-0x1):_0x36f27a['previousPosition']['path'];_0x55a1ac['getNodeByPath'](_0xfaa473)['_setAttribute'](_0x246e98,_0x3f7705),this['_touched']['set'](_0x3f7705,{'userId':_0x4dbdc0});}}for(const _0xe5426b of this['editor']['model']['createRangeIn'](_0x580ecc)['getWalker']({'singleCharacters':!0x0})){const _0x3b0052=this['_getVidAttributeName'](_0xe5426b),_0x139718='elementEnd'==_0xe5426b['type']?_0xe5426b['previousPosition']['path']['slice'](0x0,-0x1):_0xe5426b['previousPosition']['path'],_0x5a91c4=_0x55a1ac['getNodeByPath'](_0x139718);_0x5a91c4['getAttribute'](_0x3b0052)>0x0||_0x5a91c4['_setAttribute'](_0x3b0052,_0x502d79[_0x4e6b7e++]);}for(const [_0x631f70,_0xdbc117]of _0x580ecc['markers'])_0x631f70['startsWith']('revision:')||this['_markers']['set'](_0x631f70,_0xdbc117);}const _0x13ebfa=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x13ebfa),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13ebfa,0x1));const _0xb5557d=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0xb5557d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xb5557d,0x1));const _0xc5ae85=Array['from'](this['_diffRoots'])['map'](([_0x49c0a4,_0x41bf1b])=>[_0x49c0a4,N(_0x41bf1b)]);this['_saveMetaData'](this['_lastTo'],_0xc5ae85,this['_markers'],_0xdfaa95);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1d156d,_0x5f3da6,_0x4d4731,_0x42e651){const _0x5511ef=new Map(_0x5f3da6),_0x144744=new Map(_0x2d741f(_0x42e651)),_0x25764c=new Map();for(const [_0x5ea9e2,_0x4d4ca7]of _0x4d4731)_0x25764c['set'](_0x5ea9e2,{'start':_0x4d4ca7['start']['clone'](),'end':_0x4d4ca7['end']['clone'](),'rootName':_0x4d4ca7['root']['rootName']});this['_savedMetaData']['set'](_0x1d156d,{'roots':_0x5511ef,'markers':_0x25764c,'rootsAttributes':_0x144744});}['_removeMetaData'](_0x56ef63){this['_savedMetaData']['delete'](_0x56ef63);}['_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'](_0x4b413a,_0x1773e3=null){let _0x6f3eef=null;_0x4b413a['is']('documentFragment')||(_0x6f3eef=new ut(_0x4b413a['name'],{'vid_start':null===_0x1773e3?this['_revisionId']++:_0x1773e3++}));const _0x50c417=[];for(const _0x4da469 of _0x4b413a['getChildren']())if(_0x4da469['is']('element')){_0x50c417['push'](this['_makeIdsRoot'](_0x4da469,_0x1773e3));const _0x3caec4=_0x50c417[_0x50c417['length']-0x1];null!==_0x1773e3&&(_0x1773e3=_0x3caec4['is']('element','$text')?_0x3caec4['getAttribute']('vid')+0x1:_0x3caec4['getAttribute']('vid_end')+0x1);}else{for(let _0x46a704=0x0;_0x46a704<_0x4da469['offsetSize'];_0x46a704++)_0x50c417['push'](new ut('$text',{'vid':null===_0x1773e3?this['_revisionId']++:_0x1773e3++}));}if(_0x4b413a['is']('documentFragment')){const _0x52f35c=P(_0x4b413a['rootName']);return _0x52f35c['_insertChild'](0x0,_0x50c417),_0x52f35c;}return _0x6f3eef['_setAttribute']('vid_end',null===_0x1773e3?this['_revisionId']++:_0x1773e3++),_0x6f3eef['_insertChild'](0x0,_0x50c417),_0x6f3eef;}['_calculateMetaData'](_0x1d07fa,_0x337bd5,_0x4e98a2){this['_reset']();const {roots:_0x4ee5b0,markers:_0x5bfbac,rootsAttributes:_0x53321c}=this['_savedMetaData']['get'](_0x1d07fa);this['_baseRoots']=new Map(_0x4ee5b0),this['_baseRootsAttributes']=new Map(_0x2d741f(_0x53321c));for(const [_0x2b1528,_0x533b1b]of this['_baseRoots'])if('$graveyard'!==_0x2b1528&&(this['_diffRoots']['set'](_0x2b1528,N(_0x533b1b)),this['_diffRootsAttributes']=new Map(_0x2d741f(_0x53321c)),_0x4e98a2)){const _0x1ecb2d=this['_revisionId'];this['_idsRoots']['set'](_0x2b1528,this['_makeIdsRoot'](_0x533b1b)),this['_baseIdsRoots']['set'](_0x2b1528,this['_makeIdsRoot'](_0x533b1b,_0x1ecb2d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x4e98a2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1165d0,_0x3898c5]of _0x5bfbac){const _0x27d978=this['_baseRoots']['get'](_0x3898c5['rootName']),_0x23d88e=this['_diffRoots']['get'](_0x3898c5['rootName']),_0x4e6335=new lt(this['_fixPosition'](_0x3898c5['start'],_0x27d978),this['_fixPosition'](_0x3898c5['end'],_0x27d978)),_0x95d588=this['_fixRange'](_0x4e6335,_0x23d88e);_0x27d978['markers']['set'](_0x1165d0,_0x4e6335),this['_markers']['set'](_0x1165d0,_0x95d588);}this['_applyOperations'](_0x1d07fa,_0x337bd5,_0x4e98a2);}['_applyOperations'](_0xe3a670,_0x2be466,_0x47edb5){for(const _0x52849c of this['source']['getOperations'](_0xe3a670,_0x2be466))this['_handleOperation'](_0x52849c,_0x47edb5);for(const _0xeb5603 of this['_diffRoots']['values']())_0xeb5603['markers']['clear']();for(const [_0x314e0a,_0x35ac15]of this['_markers']){this['_diffRoots']['get'](_0x35ac15['root']['rootName'])['markers']['set'](_0x314e0a,_0x35ac15['clone']());}const _0x3244f3=new Map(),_0x8c2cdd=new Map();for(const [_0x1f04db,_0x354a15]of this['_diffRoots'])_0x3244f3['set'](_0x1f04db,N(_0x354a15)),_0x8c2cdd['set'](_0x1f04db,this['_diffRootsAttributes']['get'](_0x1f04db));this['_saveMetaData'](_0x2be466,_0x3244f3,this['_markers'],_0x8c2cdd);}['_getPreviousFrom'](_0x105ae0){const _0x22bc0a=Array['from'](this['_savedMetaData']['keys']());_0x22bc0a['sort']((_0x1600e,_0xdb0acf)=>_0x1600e-_0xdb0acf),_0x22bc0a['reverse']();for(const _0x39fbdf of _0x22bc0a)if(_0x39fbdf<_0x105ae0)return _0x39fbdf;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x49e56e,_0x55678e){const _0x3c1913=Array['from'](_0x55678e['markers'])['map'](([_0x555c37,_0x423bdb])=>[_0x555c37,this['_fixRange'](_0x423bdb,_0x49e56e)]);_0x49e56e['markers']=new Map(_0x3c1913);}['_transformMarkers'](_0x426128){for(const _0x118c79 of this['_markers']['values']()){const _0x7fc175=_0x118c79['getTransformedByOperation'](_0x426128),_0x50b279=lt['_createFromRanges'](_0x7fc175);_0x118c79['start']=_0x50b279['start'],_0x118c79['end']=_0x50b279['end'];}}['_handleOperation'](_0x1fd528,_0x4d2deb){if('addRoot'!=_0x1fd528['type']&&'detachRoot'!=_0x1fd528['type']){if('insert'==_0x1fd528['type']){const _0x563849=_0x1fd528['position']['root']['rootName'];this['_diffRoots']['has'](_0x563849)||(this['_diffRoots']['set'](_0x563849,P(_0x563849,!0x0)),this['_diffRootsAttributes']['set'](_0x563849,{}),_0x4d2deb&&this['_idsRoots']['set'](_0x563849,P(_0x563849,!0x0)));}else{if('addRootAttribute'==_0x1fd528['type']||'removeRootAttribute'==_0x1fd528['type']||'changeRootAttribute'==_0x1fd528['type'])return void this['_handleRootAttributeOperation'](_0x1fd528);'marker'==_0x1fd528['type']&&this['_handleMarkerOperation'](_0x1fd528);}if('marker'!==_0x1fd528['type']){const _0x4a8391=this['_cloneOperation'](_0x1fd528,this['_diffRoots']);_0x4a8391['_execute'](),this['_transformMarkers'](_0x4a8391);}if(_0x4d2deb)switch(_0x1fd528['type']){case'insert':this['_handleInsertOperation'](_0x1fd528);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1fd528);break;case'merge':this['_handleMergeOperation'](_0x1fd528);break;case'split':this['_handleSplitOperation'](_0x1fd528);}}else this['_handleRootOperation'](_0x1fd528,_0x4d2deb);}['_cloneOperation'](_0x4d3619,_0x47d1f6){const _0x160e9f=_0x4d3619['clone']();return _0x160e9f['_authorId']=_0x4d3619['_authorId'],this['_fixOperation'](_0x160e9f,_0x47d1f6),_0x160e9f;}['_getBaseVids'](_0x1279cc){return _0x1279cc['map'](_0x57d04d=>{const _0x741411=this['_getVidAttributeName'](_0x57d04d);return Number(_0x57d04d['item']['getAttribute'](_0x741411));});}['_generateTape'](_0x4cbfc6,_0x5b84fd){if(_0x4cbfc6['is']('element','$text'))_0x5b84fd['push']({'item':_0x4cbfc6,'type':'text'});else{_0x4cbfc6['is']('element')&&_0x5b84fd['push']({'item':_0x4cbfc6,'type':'elementStart'});for(const _0x42a70d of _0x4cbfc6['getChildren']())this['_generateTape'](_0x42a70d,_0x5b84fd);_0x4cbfc6['is']('element')&&_0x5b84fd['push']({'item':_0x4cbfc6,'type':'elementEnd'});}return _0x5b84fd;}['_getState'](){const _0x515023=new Map(this['_touched']),_0x37387d=new Map(_0x515023),_0x50b766=new Map(),_0x118f3b={'insertions':{},'deletions':{}},_0x24906a={'insertions':{},'deletions':{}},_0x21d470=new Map(),_0xe6281f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xe6281f['delete']('$graveyard');for(const _0x4053a0 of _0xe6281f){const _0x2f84e9=this['_diffRoots']['get'](_0x4053a0)||P(_0x4053a0,!0x1),_0x5c6764=this['_baseRoots']['get'](_0x4053a0)||P(_0x4053a0,!0x1);_0x2f84e9['isAttached']()||_0x5c6764['isAttached']()?(_0x118f3b['insertions'][_0x4053a0]=N(_0x2f84e9),_0x118f3b['deletions'][_0x4053a0]=N(_0x5c6764),this['_copyMarkers'](_0x118f3b['deletions'][_0x4053a0],_0x5c6764),this['_copyMarkers'](_0x118f3b['insertions'][_0x4053a0],_0x2f84e9),_0x24906a['insertions'][_0x4053a0]=this['_generateTape'](this['_idsRoots']['get'](_0x4053a0),[]),_0x24906a['deletions'][_0x4053a0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4053a0)||P(_0x4053a0,!0x1),[])):_0xe6281f['delete'](_0x4053a0);}for(const _0x9ed514 of _0xe6281f){const _0x5221d9=_0x24906a['insertions'][_0x9ed514];for(const _0x22e9f5 of _0x5221d9){const _0x41178b=this['_getVidAttributeName'](_0x22e9f5),_0x4cd86b=_0x22e9f5['item']['getAttribute'](_0x41178b);_0x37387d['delete'](_0x4cd86b),_0x4cd86b>=this['_startingRevisionId']&&_0x50b766['set'](_0x4cd86b,_0x515023['get'](_0x4cd86b));}}for(const _0x4b1441 of _0xe6281f){const _0x315026=_0x24906a['insertions'][_0x4b1441],_0x1b9665=this['_getBaseVids'](_0x24906a['deletions'][_0x4b1441]);let _0x19af3f=0x0;for(const _0xc105f1 of _0x315026){const _0x108b61=this['_getVidAttributeName'](_0xc105f1),_0x22a94f=_0xc105f1['item']['getAttribute'](_0x108b61);if(!_0x50b766['has'](_0x22a94f)&&!_0x21d470['has'](_0x22a94f)){if(_0x37387d['has'](_0x22a94f))_0x19af3f++;else{if(_0x22a94f!=_0x1b9665[_0x19af3f]){const _0x3a82c2=_0x515023['get'](_0x22a94f)||_0x515023['get'](_0x1b9665[_0x19af3f]);for(;_0x22a94f!=_0x1b9665[_0x19af3f];)_0x37387d['has'](_0x1b9665[_0x19af3f])||(_0x21d470['set'](_0x1b9665[_0x19af3f],_0x3a82c2),_0x515023['set'](_0x1b9665[_0x19af3f],_0x3a82c2)),_0x19af3f++;}_0x19af3f++;}}}}for(const _0x308afd of _0xe6281f){const _0x20ddff=_0x24906a['insertions'][_0x308afd];for(const _0x3a9350 of _0x20ddff){const _0x211c22=this['_getVidAttributeName'](_0x3a9350),_0xdf0228=_0x3a9350['item']['getAttribute'](_0x211c22);if(_0x21d470['has'](_0xdf0228)){const _0xee293c=_0x21d470['get'](_0xdf0228);_0x37387d['has'](_0xdf0228)||_0x37387d['set'](_0xdf0228,{..._0xee293c}),_0x50b766['set'](_0xdf0228,{..._0xee293c});}}}for(const _0x29bf07 of _0x37387d['keys']())_0x29bf07>=this['_startingRevisionId']&&_0x37387d['delete'](_0x29bf07);const _0x7ce032=new Map();for(const _0x3d9fac of _0xe6281f){let _0x1f895a=_0x24906a['insertions'][_0x3d9fac];for(const _0xff70e1 of _0x1f895a)if(_0xff70e1['item']['is']('element','tableCell')){const _0x40b58f=this['_getVidAttributeName'](_0xff70e1),_0x42d584=_0xff70e1['item']['getAttribute'](_0x40b58f);if(_0x50b766['has'](_0x42d584)){const _0x4a8367=_0xff70e1['item']['parent']['parent']['getAttribute']('vid_start'),_0x54b91b=_0x7ce032['get'](_0x4a8367)||new Set();_0x54b91b['add'](_0x50b766['get'](_0x42d584)['userId']),_0x7ce032['set'](_0x4a8367,_0x54b91b);}}_0x1f895a=_0x24906a['deletions'][_0x3d9fac];for(const _0x2ccb18 of _0x1f895a)if(_0x2ccb18['item']['is']('element','tableCell')){const _0x184eba=this['_getVidAttributeName'](_0x2ccb18),_0x3f8d41=_0x2ccb18['item']['getAttribute'](_0x184eba);if(_0x37387d['has'](_0x3f8d41)){const _0x5dc576=_0x2ccb18['item']['parent']['parent']['getAttribute']('vid_start'),_0x6ad4c0=_0x7ce032['get'](_0x5dc576)||new Set();_0x6ad4c0['add'](_0x37387d['get'](_0x3f8d41)['userId']),_0x7ce032['set'](_0x5dc576,_0x6ad4c0);}}for(const _0x460703 of _0x7ce032['keys']())(_0x50b766['has'](_0x460703)||_0x37387d['has'](_0x460703))&&_0x7ce032['delete'](_0x460703);}for(const _0x24182f of _0xe6281f){const _0x538324=_0x24906a['insertions'][_0x24182f];let _0x322c50=null,_0x1c39b0=null;for(const _0x2e40b7 of _0x538324){const _0x9527a3=this['_getVidAttributeName'](_0x2e40b7),_0x373fc7=_0x2e40b7['item']['getAttribute'](_0x9527a3),_0xcd5f97=_0x7ce032['get'](_0x373fc7);_0xcd5f97&&'elementStart'==_0x2e40b7['type']&&(_0x322c50=Array['from'](_0xcd5f97)[0x0],_0x1c39b0=_0x2e40b7['item']['getAttribute']('vid_end')),_0x322c50&&(_0x37387d['set'](_0x373fc7,{'userId':_0x322c50}),_0x50b766['set'](_0x373fc7,{'userId':_0x322c50})),_0x373fc7==_0x1c39b0&&(_0x322c50=null,_0x1c39b0=null);}}const _0x1189eb={},_0x39e3f7=new Set();for(const _0x3b4e9f of _0xe6281f){const _0xc7c1d5=_0x118f3b['deletions'][_0x3b4e9f],_0x41c433=_0x118f3b['insertions'][_0x3b4e9f];for(const {userId:_0x4f2e07}of this['_touchedMarkers']['values']())null!==_0x4f2e07&&_0x39e3f7['add'](_0x4f2e07);for(const {userId:_0x556013}of this['_touchedRoots']['values']())null!==_0x556013&&_0x39e3f7['add'](_0x556013);this['_markChanges'](_0x41c433,_0x24906a['insertions'][_0x3b4e9f],_0x50b766,'insertion',_0x39e3f7),this['_markChanges'](_0xc7c1d5,_0x24906a['deletions'][_0x3b4e9f],_0x37387d,'deletion',_0x39e3f7),_0x1189eb[_0x3b4e9f]={'insertions':this['_prepareViewToSave'](_0x41c433),'deletions':this['_prepareViewToSave'](_0xc7c1d5),'attachChange':this['_touchedRoots']['get'](_0x3b4e9f)||null,'attributesBefore':_0x2d741f(this['_baseRootsAttributes']['get'](_0x3b4e9f))||{},'attributesAfter':_0x2d741f(this['_diffRootsAttributes']['get'](_0x3b4e9f))};}return{'diffData':_0x1189eb,'authorsIds':Array['from'](_0x39e3f7)};}['_processRootBeforeSave'](_0x261322){for(const [,_0x19bd2b]of _0x261322['markers']){const _0x31f65c=_0x19bd2b['start']['getAncestors']()['filter'](_0x5af68d=>'tableCell'==_0x5af68d['name']);for(const _0x2bb7c6 of _0x31f65c)0x1==_0x2bb7c6['childCount']&&_0x2bb7c6['getChild'](0x0)['is']('element','paragraph')&&_0x2bb7c6['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3dd9de){this['_processRootBeforeSave'](_0x3dd9de);const _0x2cc5a1=this['editor']['data']['toView'](_0x3dd9de,{}),_0x1527bb=Array['from'](_0x2cc5a1['getChildren']())['map'](_0x23485d=>this['_getViewJson'](_0x23485d));return JSON['stringify'](_0x1527bb);}['_getViewJson'](_0x94d0a){if(_0x94d0a['is']('$text'))return _0x94d0a['data'];{const _0x4147ed=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5e5369=_0x94d0a,_0x100519=this['editor']['data']['htmlProcessor']['domConverter'],_0x1bc72e={'type':_0x4147ed['_getTypeCharForViewElement'](_0x5e5369),'name':_0x5e5369['name'],'attributes':Array['from'](_0x5e5369['getAttributes']()),'children':Array['from'](_0x5e5369['getChildren']())['map'](_0x38b701=>this['_getViewJson'](_0x38b701))};if(_0x94d0a['is']('uiElement')&&'$comment'!=_0x94d0a['name']){const _0x4b2bbc=_0x94d0a['render'](_0x100519['domDocument'],_0x100519);_0x1bc72e['children']['push'](_0x4b2bbc['outerHTML']);}else{if(_0x94d0a['is']('rawElement')){const _0x344d67=_0x100519['domDocument']['createElement'](_0x5e5369['name']);_0x94d0a['render'](_0x344d67,_0x100519),_0x1bc72e['children']['push'](_0x344d67['innerHTML']);}}const _0x3dd7d5=Array['from'](_0x5e5369['getCustomProperties']());_0x3dd7d5['length']>0x0&&(_0x1bc72e['customProperties']=_0x3dd7d5);const _0x2e694d=_0x5e5369['getFillerOffset']();return null!==_0x2e694d&&(_0x1bc72e['fillerOffset']=_0x2e694d),_0x1bc72e;}}['_markChanges'](_0x34a06a,_0x11581a,_0x2846df,_0x4e7ec2,_0x3dc1f5){let _0x2322a9=null,_0xa6a4a4=null,_0x502304=0x0;const _0x371ed3=this['editor']['model'];for(let _0x3ff18b=0x0;_0x3ff18b<_0x11581a['length'];_0x3ff18b++){const _0x427b3c=this['_getVidAttributeName'](_0x11581a[_0x3ff18b]),_0x2887b5=_0x11581a[_0x3ff18b]['item']['getAttribute'](_0x427b3c),_0x4f83c1=_0x2846df['get'](_0x2887b5),_0x2e083a=_0x3ff18b==_0x11581a['length']-0x1;(!_0x2322a9&&_0x4f83c1&&(_0x2322a9=_0x4f83c1,_0xa6a4a4=_0x11581a[_0x3ff18b]),_0x2322a9&&(!_0x4f83c1||_0x4f83c1['userId']!=_0x2322a9['userId']))&&(_0x34994d(_0x4f83c1,F(_0xa6a4a4,_0x34a06a,_0x371ed3),F(_0x11581a[_0x3ff18b],_0x34a06a,_0x371ed3)),_0x2322a9=_0x4f83c1||null,_0xa6a4a4=_0x4f83c1?_0x11581a[_0x3ff18b]:null),_0x2322a9&&_0x2e083a&&_0x34994d(_0x4f83c1,F(_0xa6a4a4,_0x34a06a,_0x371ed3),B(_0x11581a[_0x3ff18b],_0x34a06a,_0x371ed3));}function _0x34994d(_0x8b7c0b,_0x38de26,_0x1ba8ed){const _0xeefaa1=_0x2322a9['userId'],_0x421613='revision:'+_0x4e7ec2+':'+_0xeefaa1+':'+_0x502304++,_0x30a966=_0x371ed3['createRange'](_0x38de26,_0x1ba8ed);_0x34a06a['markers']['set'](_0x421613,_0x30a966),null!==_0xeefaa1&&_0x3dc1f5['add'](_0xeefaa1);}}['_getVidAttributeName'](_0x2af643){switch(_0x2af643['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x479ffc,_0x8cc6fa){_0x479ffc['baseVersion']=null;for(const _0x37c874 in _0x479ffc){const _0x22c55e=_0x479ffc[_0x37c874];if(_0x22c55e instanceof ft){const _0x2f2c30=_0x8cc6fa['get'](_0x22c55e['root']['rootName']);_0x479ffc[_0x37c874]=this['_fixPosition'](_0x22c55e,_0x2f2c30);}if(_0x22c55e instanceof lt){const _0x5d388e=_0x8cc6fa['get'](_0x22c55e['root']['rootName']);_0x479ffc[_0x37c874]=this['_fixRange'](_0x22c55e,_0x5d388e);}'root'===_0x37c874&&(_0x479ffc['root']=_0x8cc6fa['get'](_0x479ffc['root']['rootName']));}}['_fixRange'](_0x10bf4b,_0x2f7361){return this['editor']['model']['createRange'](this['_fixPosition'](_0x10bf4b['start'],_0x2f7361),this['_fixPosition'](_0x10bf4b['end'],_0x2f7361));}['_fixPosition'](_0x13c47a,_0x52b89b){return this['editor']['model']['createPositionFromPath'](_0x52b89b,_0x13c47a['path'],_0x13c47a['stickiness']);}['_handleInsertOperation'](_0xf0666e){const _0x14726d=this['_idsRoots']['get'](_0xf0666e['position']['root']['rootName']),_0x3eb7d1=this['_fixPosition'](_0xf0666e['position'],_0x14726d),_0x44221c=null===_0xf0666e['_authorId']?null:_0xf0666e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e4d23=_0x3eb7d1['parent'],_0x4ddf6c=this['_revisionId'],_0x2c5360=[];for(const _0x44a83d of _0xf0666e['nodes'])if(_0x44a83d['is']('element'))_0x2c5360['push'](this['_makeIdsRoot'](_0x44a83d));else{for(let _0x7af6eb=0x0;_0x7af6eb<_0x44a83d['offsetSize'];_0x7af6eb++)_0x2c5360['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xcd54d0=this['_revisionId'];for(let _0x2a4661=_0x4ddf6c;_0x2a4661<_0xcd54d0;_0x2a4661++)this['_touched']['set'](_0x2a4661,{'userId':_0x44221c});_0x3e4d23['_insertChild'](_0x3eb7d1['offset'],_0x2c5360);}['_handleMoveOperation'](_0x3a6023){(_0x3a6023=this['_cloneOperation'](_0x3a6023,this['_idsRoots']))['_execute']();const _0x5b398c=null===_0x3a6023['_authorId']?null:_0x3a6023['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d3193=_0x3a6023['getMovedRangeStart'](),_0x4313f7=_0x1d3193['parent'],_0x376719=_0x1d3193['offset'];!function _0x1a5367(_0x4dd676,_0x2578c9,_0x387459,_0x372687){for(let _0xcdf9af=_0x387459;_0xcdf9af<_0x372687;_0xcdf9af++){const _0xa35068=_0x2578c9['getChild'](_0xcdf9af);_0xa35068['is']('element','$text')?_0x4dd676['set'](_0xa35068['getAttribute']('vid'),{'userId':_0x5b398c}):(_0x4dd676['set'](_0xa35068['getAttribute']('vid_start'),{'userId':_0x5b398c}),_0x1a5367(_0x4dd676,_0xa35068,0x0,_0xa35068['childCount']),_0x4dd676['set'](_0xa35068['getAttribute']('vid_end'),{'userId':_0x5b398c}));}}(this['_touched'],_0x4313f7,_0x376719,_0x376719+_0x3a6023['howMany']);}['_handleMergeOperation'](_0x3f3967){const _0x2359c3=null===(_0x3f3967=this['_cloneOperation'](_0x3f3967,this['_idsRoots']))['_authorId']?null:_0x3f3967['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x236352=_0x3f3967['targetPosition']['parent'],_0x36d4f2=_0x3f3967['sourcePosition']['parent'],_0xc28d8=_0x236352['getAttribute']('vid_end'),_0x78366f=_0x36d4f2['getAttribute']('vid_start');_0x236352['_setAttribute']('vid_end',_0x36d4f2['getAttribute']('vid_end')),_0x36d4f2['_setAttribute']('vid_end',_0xc28d8),this['_touched']['set'](_0x78366f,{'userId':_0x2359c3}),this['_touched']['set'](_0xc28d8,{'userId':_0x2359c3}),_0x3f3967['_execute']();}['_handleSplitOperation'](_0x98f0ff){const _0x3aedcb=null===(_0x98f0ff=this['_cloneOperation'](_0x98f0ff,this['_idsRoots']))['_authorId']?null:_0x98f0ff['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a4d55=_0x98f0ff['graveyardPosition'],_0x24d937=_0x98f0ff['splitPosition']['parent'];_0x98f0ff['_execute']();const _0x40cbae=_0x24d937['getAttribute']('vid_end'),_0x21eca9=_0x98f0ff['insertionPosition']['nodeAfter'];if(_0x5a4d55){const _0x1df37b=_0x21eca9['getAttribute']('vid_end'),_0x41f20f=_0x24d937['getAttribute']('vid_end');_0x24d937['_setAttribute']('vid_end',_0x1df37b),_0x21eca9['_setAttribute']('vid_end',_0x41f20f),this['_touched']['set'](_0x24d937['getAttribute']('vid_end'),{'userId':_0x3aedcb}),this['_touched']['set'](_0x21eca9['getAttribute']('vid_start'),{'userId':_0x3aedcb});}else{const _0x36ac22=this['_revisionId']++,_0x42c65b=this['_revisionId']++;_0x24d937['_setAttribute']('vid_end',_0x36ac22),_0x21eca9['_setAttribute']('vid_start',_0x42c65b),_0x21eca9['_setAttribute']('vid_end',_0x40cbae),this['_touched']['set'](_0x36ac22,{'userId':_0x3aedcb}),this['_touched']['set'](_0x42c65b,{'userId':_0x3aedcb});}}['_handleMarkerOperation'](_0x11a658){if(!_0x11a658['affectsData'])return;const _0x5a88ad=(_0x11a658=this['_cloneOperation'](_0x11a658,this['_diffRoots']))['oldRange']?_0x11a658['oldRange']['root']:null,_0x3d7d93=_0x11a658['newRange']?_0x11a658['newRange']['root']:null;_0x5a88ad&&this['_markers']['delete'](_0x11a658['name']),_0x3d7d93&&this['_markers']['set'](_0x11a658['name'],_0x11a658['newRange']['clone']());const _0x4662f1=null===_0x11a658['_authorId']?null:_0x11a658['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17bdcb=_0x11a658['name'];if(!this['_touchedMarkers']['has'](_0x17bdcb))return void this['_touchedMarkers']['set'](_0x17bdcb,{'range':_0x11a658['oldRange'],'userId':_0x4662f1});const _0x445085=this['_touchedMarkers']['get'](_0x17bdcb),_0x4ae325=_0x445085['range'],_0x4900dd=_0x11a658['newRange'];null==_0x4ae325&&null==_0x4900dd||_0x4ae325&&_0x4900dd&&_0x4ae325['isEqual'](_0x4900dd)?this['_touchedMarkers']['delete'](_0x11a658['name']):_0x445085['userId']=_0x4662f1;}['_handleRootOperation'](_0x25e56f,_0x2e2b3c){this['_diffRoots']['has'](_0x25e56f['rootName'])?this['_diffRoots']['get'](_0x25e56f['rootName'])['_isAttached']=_0x25e56f['isAdd']:(this['_diffRoots']['set'](_0x25e56f['rootName'],P(_0x25e56f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x25e56f['rootName'],{}),_0x2e2b3c&&this['_idsRoots']['set'](_0x25e56f['rootName'],P(_0x25e56f['rootName'],!0x0)));const _0x1c8bbe=null===_0x25e56f['_authorId']?null:_0x25e56f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eb254=this['_touchedRoots']['get'](_0x25e56f['rootName']);_0x1eb254&&_0x1eb254['userId']===_0x1c8bbe?this['_touchedRoots']['delete'](_0x25e56f['rootName']):this['_touchedRoots']['set'](_0x25e56f['rootName'],{'userId':_0x1c8bbe,'isAttached':_0x25e56f['isAdd']});}['_handleRootAttributeOperation'](_0x304be4){const _0x991405=this['_diffRootsAttributes']['get'](_0x304be4['root']['rootName']);null===_0x304be4['newValue']?delete _0x991405[_0x304be4['key']]:_0x991405[_0x304be4['key']]=_0x304be4['newValue'];}}function N(_0x4a510a){const _0x5e97a1=P(_0x4a510a['rootName'],_0x4a510a['isAttached']());for(const _0xe4c8c8 of _0x4a510a['getChildren']()){const _0x23f252=_0xe4c8c8['_clone'](!0x0);_0x5e97a1['_appendChild'](_0x23f252);}return _0x5e97a1;}function P(_0x40e246,_0x306283=!0x0){const _0x2b2f96=new vt();return _0x2b2f96['rootName']=_0x40e246,_0x2b2f96['_isAttached']=_0x306283,_0x2b2f96['isAttached']=()=>_0x2b2f96['_isAttached'],_0x2b2f96;}function F(_0x145580,_0x2882c4,_0x2c93f4){const _0x563b62='elementEnd'==_0x145580['type']?_0x2c93f4['createPositionAt'](_0x145580['item'],'end'):_0x2c93f4['createPositionBefore'](_0x145580['item']);return _0x2c93f4['createPositionFromPath'](_0x2882c4,_0x563b62['path'],_0x563b62['stickiness']);}function B(_0x1653af,_0x1973b5,_0x2be206){const _0x4ace4b='elementStart'==_0x1653af['type']?_0x2be206['createPositionAt'](_0x1653af['item'],0x0):_0x2be206['createPositionAfter'](_0x1653af['item']);return _0x2be206['createPositionFromPath'](_0x1973b5,_0x4ace4b['path'],_0x4ace4b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5e96a7,_0x1e94d4){super(_0x5e96a7),this['focusTracker']=new _0x58eb6c(),this['keystrokes']=new _0x4856d0(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1e94d4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x486773(this);}['render'](){super['render'](),_0x20114a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2dba94=_0x2abcd1=>_0x2abcd1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2dba94),this['keystrokes']['set']('arrowleft',_0x2dba94),this['keystrokes']['set']('arrowup',_0x2dba94),this['keystrokes']['set']('arrowdown',_0x2dba94);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2b2d9d){this['revisionNameInputView']['fieldView']['element']['value']=_0x2b2d9d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x31ddb8){const _0x23ef55=new _0x3c125a(this['locale'],_0x308ce0),_0x10d776=_0x23ef55['fieldView'];_0x10d776['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x48862b=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x31ddb8&&(_0x48862b+='\x20('+g(this['locale'],'optional')+')'),(_0x23ef55['label']=_0x48862b,_0x10d776['on']('input',()=>{this['revisionNameInputValue']=_0x10d776['element']['value']['trim']();}),_0x23ef55);}}class f extends _0xc5caea{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4336a3=this['editor'],_0x4085fb=_0x4336a3['plugins']['get']('RevisionTracker');_0x4336a3['ui']['componentFactory']['add']('revisionHistory',_0x1ba944=>{const _0x2ced5f=_0x20f831(_0x1ba944),_0x8618b3=_0x2ced5f['panelView']['children'],_0xaad212=new _0x434905(_0x1ba944),_0x4a2f38=new _0x4e2ba5(_0x1ba944),_0x548f71=new te(_0x1ba944),_0xc7c779=new _0x4e2ba5(_0x1ba944),_0x59972b=new te(_0x1ba944);return _0x2ced5f['bind']('isEnabled')['to'](_0x4085fb,'isReady',_0x4085fb,'isEnabled',_0x4336a3,'isReadOnly',(_0x5e7bbb,_0x53aed9,_0x3694ea)=>_0x5e7bbb&&_0x53aed9&&!_0x3694ea),_0x2ced5f['buttonView']['set']({'icon':_0x322fcb,'label':g(_0x1ba944,'Revision\x20history'),'tooltip':!0x0}),_0x548f71['set']({'label':g(_0x1ba944,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x548f71['bind']('isEnabled')['to'](_0x4085fb,'isReady',_0x4085fb,'isEnabled',_0x4336a3,'isReadOnly',(_0x5456ce,_0x4cebbd,_0x11c57e)=>_0x5456ce&&_0x4cebbd&&!_0x11c57e),_0x548f71['on']('execute',()=>this['_showDialog']()),_0x59972b['set']({'label':g(_0x1ba944,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x59972b['bind']('isEnabled')['to'](_0x4085fb,'isReady',_0x4336a3,'isReadOnly',(_0x307e71,_0x1128ce)=>_0x307e71&&!_0x1128ce),_0x59972b['on']('execute',()=>{_0x4336a3['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2ced5f['isOpen']=!0x1,_0x4336a3['editing']['view']['focus']();}),_0x4a2f38['children']['add'](_0x548f71),_0xc7c779['children']['add'](_0x59972b),_0xaad212['role']='menu',_0xaad212['items']['addMany']([_0x4a2f38,_0xc7c779]),_0x8618b3['add'](_0xaad212),_0x2ced5f;}),_0x4336a3['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x17392a=this['editor'],_0x1300e3=_0x17392a['locale'],_0x5e6732=new _0x13a812(_0x1300e3),_0x493b67=new _0x581120(_0x1300e3);_0x5e6732['buttonView']['set']({'icon':_0x322fcb,'label':g(_0x1300e3,'Revision\x20history')});const _0x4afbc3=new _0x57e3a1(_0x1300e3,_0x5e6732),_0x442475=new _0x35ab35(_0x1300e3);_0x442475['set']({'label':g(_0x1300e3,'Save\x20current\x20revision')}),_0x442475['delegate']('execute')['to'](_0x5e6732),_0x442475['on']('execute',()=>{this['_showDialog']();}),_0x4afbc3['children']['add'](_0x442475),_0x493b67['items']['add'](_0x4afbc3);const _0x295b7a=new _0x57e3a1(_0x1300e3,_0x5e6732),_0x446d6c=new _0x35ab35(_0x1300e3);return _0x446d6c['set']({'label':g(_0x1300e3,'Open\x20revision\x20history')}),_0x446d6c['delegate']('execute')['to'](_0x5e6732),_0x446d6c['on']('execute',()=>{_0x17392a['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x295b7a['children']['add'](_0x446d6c),_0x493b67['items']['add'](_0x295b7a),_0x5e6732['panelView']['children']['add'](_0x493b67),_0x5e6732;}['_showDialog'](){const _0x1608f0=this['editor'],_0x57f72a=_0x1608f0['locale'],_0x5df69c=_0x1608f0['plugins']['get']('Dialog'),_0x3022f3=_0x1608f0['plugins']['get']('RevisionTracker');function _0x455b25(_0x53f866){_0x1608f0['config']['get']('revisionHistory.requireRevisionName')&&''===_0x53f866['revisionName']?_0x53f866['revisionNameInputView']['errorText']=g(_0x57f72a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1608f0['plugins']['get'](u)['saveRevision']({'name':_0x53f866['revisionName']}),_0x5df69c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x455b25(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5df69c['show']({'id':'revisionSave','title':g(_0x57f72a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1608f0['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5df69c['hide']()},{'label':g(_0x1608f0['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x25b71f){_0x25b71f['bind']('isEnabled')['to'](_0x3022f3,'isReady',_0x3022f3,'isEnabled',_0x1608f0,'isReadOnly',(_0x134d06,_0x7a62d1,_0x19c1c9)=>_0x134d06&&_0x7a62d1&&!_0x19c1c9);},'onExecute':()=>_0x455b25(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2e84fb=this['editor'],_0xa02c46=_0x2e84fb['locale'];this['_saveRevisionFormView']=new hs(_0xa02c46,_0x2e84fb['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0xb1c7d4,_0x3e8d5d){super(_0xb1c7d4),this['_model']=_0x3e8d5d,this['changeId']=_0x3e8d5d['id'];const _0x3b138b=this['bindTemplate'],_0x15d509=g(_0xb1c7d4,_0x3e8d5d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3e8d5d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3e8d5d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3b138b['to']('type',_0x4e9933=>'ck-revision-change__'+_0x4e9933)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x15d509}]},{'text':'\x20'+_0x3e8d5d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x12e34e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5e4945){super(),this['id']=_0x5e4945['id']||_0x5788bb(),this['author']=_0x5e4945['author'],this['type']=_0x5e4945['type'],this['data']=_0x5e4945['data']||{},this['rootName']=_0x5e4945['rootName'],this['set']('createdAt',_0x5e4945['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(_0x3bf6d2,_0x53ab48){this['newRevisionId']=_0x3bf6d2,this['oldRevisionId']=_0x53ab48,this['changes']=new _0x13749a();}['_setChanges'](_0x59f310){for(const _0x5a5fd0 of _0x59f310)this['changes']['add'](_0x5a5fd0);}}class m extends _0xc5caea{['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[_0x4ebee9,_0x17c815,I,V];}constructor(_0x5007e8){super(_0x5007e8),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',(_0x327776,_0x5b22cf,_0x5510e1)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x198160=>{for(const _0x305c24 of this['editor']['editing']['view']['document']['roots'])_0x5510e1?_0x198160['removeClass']('ck-editor__editable__overlay',_0x305c24):_0x198160['addClass']('ck-editor__editable__overlay',_0x305c24);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x247f96=>null!==_0x247f96),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x434929,_0x1055ff,_0x70a83f)=>_0x434929&&_0x70a83f?_0x1055ff['changes']['getIndex'](_0x70a83f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2ecfa1,_0xdba336)=>_0x2ecfa1?_0xdba336['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x17c815);}['init'](){const _0x1ab2e5=this['editor'],_0x5cb7e3=new wt(_0x1ab2e5,{'direction':'backward'}),_0x282e20=new wt(_0x1ab2e5,{'direction':'forward'});(_0x1ab2e5['commands']['add']('showPreviousChange',_0x5cb7e3),_0x1ab2e5['commands']['add']('showNextChange',_0x282e20),_0x1ab2e5['commands']['add']('restoreRevision',new mt(_0x1ab2e5)),this['on']('change:numberOfChanges',()=>{_0x5cb7e3['refresh'](),_0x282e20['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1ab2e5['enableReadOnlyMode']('revision-viewer'),_0x1ab2e5['plugins']['has']('WidgetToolbarRepository'))&&_0x1ab2e5['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x15fb24){return await this['_utils']['loadRevisionData'](_0x15fb24,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x15fb24);}async['getRevisionRootsAttributes'](_0xe0cf6a){return await this['_utils']['loadRevisionData'](_0xe0cf6a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xe0cf6a);}async['compare'](_0x4eb370,_0x444a61,_0x4791d5=!0x1){if(!this['isEnabled'])return;const _0x1866ba=this['diff'],_0x500a06=this['repository'],_0x65013b='string'==typeof _0x4eb370?_0x500a06['getRevision'](_0x4eb370):_0x4eb370,_0x4f8ffb='string'==typeof _0x444a61?_0x500a06['getRevision'](_0x444a61):_0x444a61,_0x581a9a=_0x65013b['id'],_0x5b8033=_0x4f8ffb?_0x4f8ffb['id']:null;if(!_0x4791d5&&this['diff']&&this['diff']['newRevisionId']===_0x581a9a&&this['diff']['oldRevisionId']===_0x5b8033)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x581a9a,_0x5b8033);const _0x5f2c26=this['_getRevisionsRange'](_0x65013b,_0x4f8ffb,!0x0)['map'](_0x4dc141=>this['_utils']['loadRevisionData'](_0x4dc141,this['adapter']));return _0x5f2c26['push'](new Promise(_0x3f22da=>{setTimeout(_0x3f22da,0x14);})),Promise['all'](_0x5f2c26)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4aca9c=this['_getDiff'](_0x581a9a,_0x5b8033);for(const _0x5d2822 of _0x4aca9c['changes'])this['_changeIdToChange']['set'](_0x5d2822['id'],_0x5d2822);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5f3fc3=>{for(const _0xe57d50 of this['editor']['model']['document']['getRootNames']())_0x5f3fc3['detachRoot'](_0xe57d50);for(const _0x5f430b of Object['keys'](_0x4aca9c['model'])){const _0x43de76=_0x5f3fc3['addRoot'](_0x5f430b);for(const _0x2737b8 of Object['keys'](_0x4aca9c['attributes'][_0x5f430b]))_0x5f3fc3['setAttribute'](_0x2737b8,_0x4aca9c['attributes'][_0x5f430b][_0x2737b8],_0x43de76);_0x5f3fc3['insert'](_0x4aca9c['model'][_0x5f430b],_0x43de76,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4aca9c['changes'])),this['isReady']=!0x0;})['catch'](_0x51495d=>{console['error'](_0x51495d),this['_cleanUp'](),_0x1866ba&&(this['diff']=_0x1866ba),this['isReady']=!0x0;});}['addRevisionData'](_0xa852ff,_0x3d9452){const _0x49cabe=this['repository']['createRevision'](_0xa852ff);return _0x49cabe['on']('_update',(_0x1c0d0b,_0x15632c,_0x5d457b)=>_0x3d9452(_0x15632c,_0x5d457b,_0x49cabe)),this['repository']['addRevision'](_0x49cabe),_0x49cabe;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5f54e4=>{for(const _0x5c9b29 of this['editor']['model']['document']['getRootNames']())_0x5f54e4['detachRoot'](_0x5c9b29);});}['_sortAndFilterDiffChanges'](_0x15d6f3){const _0x5a588c=[],_0x16d0ca=new Map();for(const _0x1b17d1 of this['editor']['model']['document']['getRootNames']()){const _0x395eff=this['editor']['editing']['view']['getDomRoot'](_0x1b17d1);if(!_0x395eff)continue;const _0xffa510=_0x395eff['getClientRects']()['item'](0x0);_0xffa510&&(_0x5a588c['push'](_0x1b17d1),_0x16d0ca['set'](_0x1b17d1,_0xffa510));}return _0x5a588c['sort']((_0x36f035,_0x4e5a5b)=>{const _0x3f124b=_0x16d0ca['get'](_0x36f035),_0x4b2462=_0x16d0ca['get'](_0x4e5a5b);return _0x3f124b['y']-_0x4b2462['y']||_0x3f124b['x']-_0x4b2462['x'];}),(_0x15d6f3=_0x15d6f3['filter'](_0x4b1499=>_0x5a588c['includes'](_0x4b1499['rootName'])))['sort']((_0x4b852e,_0x575a2f)=>_0x5a588c['indexOf'](_0x4b852e['rootName'])-_0x5a588c['indexOf'](_0x575a2f['rootName'])),_0x15d6f3;}['_makeTape'](_0x41b4e0){const _0x218fe2=Array['from'](_0x41b4e0['markers'])['filter'](([_0x3df71e,_0x5c5fef])=>_0x3df71e['startsWith']('revision:')&&!_0x5c5fef['isCollapsed']),_0x1e716e=Array['from'](this['editor']['model']['createRangeIn'](_0x41b4e0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x218fe2['length'])for(const _0x74284a of _0x1e716e){const [_0x14d936,_0x5b1ecc]=_0x218fe2[0x0],[,_0x389ba0,_0x375171]=_0x14d936['split'](':');if(_0x5b1ecc['end']['isEqual'](_0x74284a['nextPosition'])&&_0x218fe2['shift'](),(_0x74284a['previousPosition']['isEqual'](_0x5b1ecc['start'])||_0x74284a['previousPosition']['isAfter'](_0x5b1ecc['start']))&&('insertion'==_0x389ba0?_0x74284a['isAdded']={'userId':_0x375171}:'deletion'==_0x389ba0&&(_0x74284a['isRemoved']={'userId':_0x375171})),0x0==_0x218fe2['length'])break;}return _0x1e716e;}['_refreshStartEndIndex'](_0x52d996){const _0x3da1ed=new Map();for(let _0x55bc23=0x0;_0x55bc23<_0x52d996['length'];_0x55bc23++)'text'===_0x52d996[_0x55bc23]['type']?(_0x52d996[_0x55bc23]['item']['startIndex']=_0x55bc23,_0x52d996[_0x55bc23]['item']['endIndex']=_0x55bc23):('elementStart'===_0x52d996[_0x55bc23]['type']?_0x52d996[_0x55bc23]['item']['startIndex']=_0x55bc23:'elementEnd'===_0x52d996[_0x55bc23]['type']&&(_0x52d996[_0x55bc23]['item']['endIndex']=_0x55bc23),_0x3da1ed['set'](_0x52d996[_0x55bc23]['id'],_0x55bc23));for(const _0x1dcbfa of _0x3da1ed['values']())'elementStart'===_0x52d996[_0x1dcbfa]['type']?_0x52d996[_0x1dcbfa]['item']['endIndex']=_0x3da1ed['get'](_0x52d996[_0x1dcbfa]['pairId']):'elementEnd'===_0x52d996[_0x1dcbfa]['type']&&(_0x52d996[_0x1dcbfa]['item']['startIndex']=_0x3da1ed['get'](_0x52d996[_0x1dcbfa]['pairId']));}['_processTape'](_0x38b879){for(let _0x433a9d=0x0;_0x433a9d<_0x38b879['length'];_0x433a9d++){if('elementStart'===_0x38b879[_0x433a9d]['type'])_0x38b879[_0x433a9d]['item']['startIndex']=_0x433a9d;else{if('elementEnd'===_0x38b879[_0x433a9d]['type']){_0x38b879[_0x433a9d]['item']['endIndex']=_0x433a9d;const _0x154909=_0x38b879[_0x433a9d]['item']['startIndex'];_0x38b879[_0x154909]['pairId']=_0x38b879[_0x433a9d]['id'],_0x38b879[_0x433a9d]['pairId']=_0x38b879[_0x154909]['id'];}else _0x38b879[_0x433a9d]['item']['startIndex']=_0x433a9d,_0x38b879[_0x433a9d]['item']['endIndex']=_0x433a9d,_0x38b879[_0x433a9d]['pairId']=null;}_0x38b879[_0x433a9d]['markersStart']||(_0x38b879[_0x433a9d]['markersStart']=[],_0x38b879[_0x433a9d]['markersEnd']=[]);}}['_markInsertions'](_0x4d1c7a,_0x8660fd){const _0x6ee906=_0x4d1c7a['filter'](_0x4f2451=>!_0x4f2451['isAdded']);for(let _0x2de3c1=0x0;_0x2de3c1<_0x8660fd['length'];_0x2de3c1++)_0x8660fd[_0x2de3c1]['isAdded']&&(_0x6ee906[_0x2de3c1]['isAdded']=_0x8660fd[_0x2de3c1]['isAdded']);}['_getDiff'](_0x22f17e,_0x18d3fb=null){const _0x3b7bd0=this['repository']['getRevision'](_0x22f17e),_0xfc754a=_0x18d3fb?this['repository']['getRevision'](_0x18d3fb):null,_0x2fd762=this['_getRevisionsRange'](_0x3b7bd0,_0xfc754a),_0x5a8541=_0x2fd762[_0x2fd762['length']-0x1],_0x1d8126=new Map(),_0x1c6993={'model':{},'attributes':{},'changes':[]},_0x28e895=new Set(),_0x2a939a=new Map();for(let _0x1434ad=_0x2fd762['length']-0x1;_0x1434ad>=0x0;_0x1434ad--){const _0x569725=_0x2fd762[_0x1434ad];for(const _0x39e547 of Object['keys'](_0x569725['diffData']))if(_0x569725['diffData'][_0x39e547]['attachChange']){const _0x320ea2=_0x569725['diffData'][_0x39e547]['attachChange'];_0x320ea2['isAttached']?(_0x28e895['add'](_0x39e547),_0x2a939a['has'](_0x39e547)&&_0x2a939a['get'](_0x39e547)['userId']==_0x320ea2['userId']?_0x2a939a['delete'](_0x39e547):_0x2a939a['set'](_0x39e547,_0x320ea2)):_0x2a939a['has'](_0x39e547)?(_0x28e895['delete'](_0x39e547),_0x2a939a['delete'](_0x39e547)):(_0x28e895['add'](_0x39e547),_0x2a939a['set'](_0x39e547,_0x320ea2));}else _0x28e895['add'](_0x39e547);}for(const _0xd45cb8 of _0x28e895){const _0x1db9d7=_0x2a939a['has'](_0xd45cb8)&&!_0x2a939a['get'](_0xd45cb8)['isAttached'];let _0xfa251b=_0x1db9d7?_0x2fd762['length']-0x1:0x0;const _0x40b0db=_0x1db9d7?-0x1:0x1;for(;_0x2fd762[_0xfa251b];){const _0x499933=_0x2fd762[_0xfa251b];if(_0x499933['diffData'][_0xd45cb8]){const _0x1780cd=_0x1db9d7?_0x499933['diffData'][_0xd45cb8]['attributesBefore']:_0x499933['diffData'][_0xd45cb8]['attributesAfter'];_0x1c6993['attributes'][_0xd45cb8]=_0x1780cd?_0x2d741f(_0x1780cd):{};break;}_0xfa251b+=_0x40b0db;}}for(const _0x3a17ee of _0x2fd762){_0x3a17ee['model']={};for(const _0x3f375f of _0x3a17ee['authors'])_0x1d8126['set'](_0x3f375f['id'],_0x3f375f);for(const _0x52a546 of _0x28e895){const _0x561d07=_0x3a17ee['diffData'][_0x52a546]?_0x3a17ee['diffData'][_0x52a546]['insertions']:'[]',_0x265fb6=_0x3a17ee['diffData'][_0x52a546]?_0x3a17ee['diffData'][_0x52a546]['deletions']:'[]';_0x3a17ee['model'][_0x52a546]={'insertions':this['_utils']['_makeModelFromViewString'](_0x561d07),'deletions':this['_utils']['_makeModelFromViewString'](_0x265fb6)};}}for(const _0x56afc2 of _0x28e895){let _0x5db9f1=null,_0x5579c3=0x0;const _0x4f7ca5=new Map(Array['from'](_0x3b7bd0['model'][_0x56afc2]['insertions']['markers'])['filter'](([_0x824859])=>!_0x824859['startsWith']('revision:')));let _0xb54caf=0x0;for(const _0x453edf of _0x2fd762){const _0x5b9440=this['_makeTape'](_0x453edf['model'][_0x56afc2]['insertions']);_0x453edf==_0x3b7bd0?(_0x5db9f1=_0x5b9440,_0x5579c3=_0x5db9f1['length'],_0x5db9f1['forEach'](_0x31cdfd=>{_0x31cdfd['id']=_0xb54caf++;}),this['_processTape'](_0x5db9f1)):this['_markInsertions'](_0x5db9f1,_0x5b9440);const _0x1fa348=_0x5db9f1['filter'](_0x3dc1cd=>!_0x3dc1cd['isAdded'])['map'](_0x4b4500=>_0x4b4500['id']);let _0x5d974d=0x0;const _0x384e01=this['_makeTape'](_0x453edf['model'][_0x56afc2]['deletions']);_0x384e01['forEach'](_0x4c73a6=>{_0x4c73a6['isRemoved']?_0x4c73a6['id']=_0x5579c3++:_0x4c73a6['id']=_0x1fa348[_0x5d974d++];}),this['_processTape'](_0x384e01),this['_setDistance'](_0x5db9f1,'isAdded'),this['_setDistance'](_0x384e01,'isRemoved'),_0x453edf==_0x3b7bd0&&this['_markMarkers'](_0x5db9f1,_0x4f7ca5),_0x5db9f1=this['_joinTapes'](_0x5db9f1,_0x384e01),this['_refreshStartEndIndex'](_0x5db9f1),this['_setDistance'](_0x5db9f1,'isRemoved');}_0x5db9f1=_0x5db9f1['filter'](_0x507ef8=>!(_0x507ef8['isAdded']&&_0x507ef8['isRemoved']));const _0x23dd1b=new Map(_0x5a8541['model'][_0x56afc2]['deletions']['markers']),_0x295a75=new Set(_0x4f7ca5['keys']());for(const _0x40854f of _0x23dd1b['keys']())_0x295a75['delete'](_0x40854f);this['_markSuggestions'](_0x5db9f1,_0x295a75),this['_fixObsoleteTags'](_0x5db9f1),_0x5db9f1=this['_removeMissingPairs'](_0x5db9f1),_0x5db9f1=this['_markMismatchedRemovedTags'](_0x5db9f1),_0x5db9f1=this['_removeUnsupportedChanges'](_0x5db9f1);const {root:_0x24dab6,changes:_0x174297}=this['_makeModelFromTape'](_0x5db9f1,_0x1d8126,_0x56afc2);_0x1c6993['model'][_0x56afc2]=_0x24dab6;const _0x344a27=_0x2a939a['get'](_0x56afc2);if(_0x344a27){const _0x2c1030=_0x1d8126['get'](_0x344a27['userId']),_0x1f91a2=new r({'author':_0x2c1030,'type':_0x344a27['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x56afc2});_0x174297['unshift'](_0x1f91a2),_0x1c6993['attributes'][_0x56afc2]['revisionHistoryAttachChange']=_0x1f91a2['id'];}_0x1c6993['changes']=_0x1c6993['changes']['concat'](_0x174297);}return _0x1c6993;}['_markMarkers'](_0x132c66,_0x459d5f){for(let _0x59e43b=0x0;_0x59e43b<_0x132c66['length'];_0x59e43b++)for(const [_0x261bd1,_0x280215]of _0x459d5f)!_0x280215['isCollapsed']&&_0x280215['start']['isEqual'](_0x132c66[_0x59e43b]['previousPosition'])&&_0x132c66[_0x59e43b]['markersStart']['push'](_0x261bd1),_0x280215['end']['isEqual'](_0x132c66[_0x59e43b]['nextPosition'])&&_0x132c66[_0x59e43b]['markersEnd']['push'](_0x261bd1);}['_joinTapes'](_0x39bfec,_0x447284){let _0x191351=[],_0x43153b=0x0,_0x356e14=0x0;for(;_0x43153b<_0x39bfec['length']||_0x356e14<_0x447284['length'];){const _0x3b8a75=_0x39bfec[_0x43153b]||{},_0x1a54a7=_0x447284[_0x356e14]||{};if(_0x3b8a75['id']==_0x1a54a7['id'])_0x43153b++,_0x356e14++,_0x191351['push'](_0x3b8a75);else{if(_0x1a54a7['isRemoved']&&_0x3b8a75['isAdded']){const {commonTape:_0x58941d,iEnd:_0x5b5df7,jEnd:_0x5c938e}=this['_threeWayMerge'](_0x39bfec,_0x43153b,_0x447284,_0x356e14);_0x191351=_0x191351['concat'](_0x58941d),_0x43153b=_0x5b5df7,_0x356e14=_0x5c938e;}else _0x1a54a7['isRemoved']?(_0x356e14++,_0x191351['push'](_0x1a54a7)):(_0x43153b++,_0x191351['push'](_0x3b8a75));}}return _0x191351;}['_markSuggestions'](_0x3e2435,_0x188b9b){const _0x6850f4=[];for(let _0x267ea3=0x0;_0x267ea3<_0x3e2435['length'];_0x267ea3++){for(let _0x57ae8e=0x0;_0x57ae8e<_0x3e2435[_0x267ea3]['markersStart']['length'];_0x57ae8e++){const _0x999ed9=_0x3e2435[_0x267ea3]['markersStart'][_0x57ae8e];if(!_0x188b9b['has'](_0x999ed9))continue;const {group:_0x4315de,type:_0x385272,authorId:_0x44a992}=_0x58e016(_0x999ed9);'revision-suggestion'!=_0x4315de||'insertion'!=_0x385272&&'deletion'!=_0x385272||(_0x6850f4['unshift']({'type':_0x385272,'name':_0x999ed9,'userId':_0x44a992}),_0x3e2435[_0x267ea3]['markersStart']['splice'](_0x57ae8e,0x1),_0x57ae8e--);}_0x2b3bb8(_0x3e2435[_0x267ea3]);for(let _0x2d1979=0x0;_0x2d1979<_0x3e2435[_0x267ea3]['markersEnd']['length'];_0x2d1979++){const _0x3bc197=_0x3e2435[_0x267ea3]['markersEnd'][_0x2d1979];if(!_0x188b9b['has'](_0x3bc197))continue;const {group:_0x20c775,type:_0x549075}=_0x58e016(_0x3bc197);if('revision-suggestion'!=_0x20c775||'insertion'!=_0x549075&&'deletion'!=_0x549075)continue;_0x3e2435[_0x267ea3]['markersEnd']['splice'](_0x2d1979,0x1),_0x2d1979--;const _0x2ddcb1=_0x6850f4['findIndex'](_0x24ce2e=>_0x24ce2e['name']==_0x3bc197);_0x2ddcb1>-0x1&&_0x6850f4['splice'](_0x2ddcb1,0x1);}}function _0x58e016(_0x323404){const _0x4958f0=_0x323404['split'](':');return{'group':_0x4958f0[0x0],'type':_0x4958f0[0x1],'subType':_0x4958f0['length']>=0x5?_0x4958f0[0x2]:null,'id':_0x4958f0['length']<0x5?_0x4958f0[0x2]:_0x4958f0[0x3],'authorId':_0x4958f0['length']<0x5?_0x4958f0[0x3]:_0x4958f0[0x4],'markerCount':0x6==_0x4958f0['length']?_0x4958f0[0x5]:null};}function _0x2b3bb8(_0x5b7c32){for(let _0x2d9119=0x0;_0x2d9119<_0x6850f4['length'];_0x2d9119++){if(_0x5b7c32['isAdded']&&'insertion'==_0x6850f4[_0x2d9119]['type'])return _0x5b7c32['isAddSuggestion']=_0x6850f4[_0x2d9119],void delete _0x5b7c32['isAdded'];if(!_0x5b7c32['isAdded']&&!_0x5b7c32['isRemoved']&&'deletion'==_0x6850f4[_0x2d9119]['type'])return void(_0x5b7c32['isRemoveSuggestion']=_0x6850f4[_0x2d9119]);}}}['_setDistance'](_0x4b5167,_0x257a3f){let _0x1993c7=0x0,_0x1c8bd8=!0x1;const _0x27dd31=new Map();for(const _0x4caab5 of _0x4b5167)_0x4caab5[_0x257a3f]?_0x1c8bd8&&(_0x1993c7++,_0x1c8bd8=!0x1):(_0x1993c7++,_0x1c8bd8=!0x0),_0x27dd31['set'](_0x4caab5['id'],_0x1993c7);for(let _0xb0dad9=0x0;_0xb0dad9<_0x4b5167['length'];_0xb0dad9++){if('isRemoved'==_0x257a3f&&_0x4b5167[_0xb0dad9]['isAdded']||'isAdded'==_0x257a3f&&_0x4b5167[_0xb0dad9]['isRemoved'])continue;if('text'==_0x4b5167[_0xb0dad9]['type']){_0x4b5167[_0xb0dad9]['distance']=0x0;continue;}const _0x348504=_0x27dd31['get'](_0x4b5167[_0xb0dad9]['pairId']),_0x659c71=_0x27dd31['get'](_0x4b5167[_0xb0dad9]['id']);_0x4b5167[_0xb0dad9]['distance']=_0x348504-_0x659c71;}}['_getRevisionsRange'](_0x5a47c6,_0x102890,_0x3d9a25=!0x1){const _0x50fe31=[];let _0x4fa0d5=this['repository']['getIndex'](_0x5a47c6),_0x3b3165=this['repository']['getIndex'](_0x102890);for(-0x1==_0x3b3165&&(_0x3b3165=this['repository']['_revisions']['length'],_0x3d9a25=!0x1);_0x4fa0d5<_0x3b3165;)_0x50fe31['push'](this['repository']['getRevision'](_0x4fa0d5)),_0x4fa0d5++;return _0x3d9a25&&_0x50fe31['push'](this['repository']['getRevision'](_0x4fa0d5)),_0x50fe31;}['_threeWayMerge'](_0x5eb645,_0x23e383,_0x4c651a,_0x34d7d9){const _0x430d93=this['editor']['model']['schema'];let _0x23ff4f=_0x23e383;for(;_0x5eb645[_0x23ff4f]&&_0x5eb645[_0x23ff4f]['isAdded'];)_0x23ff4f++;let _0x498522=_0x34d7d9;for(;_0x4c651a[_0x498522]&&_0x4c651a[_0x498522]['isRemoved'];)_0x498522++;_0x5c8ed9(_0x5eb645,_0x23e383,_0x23ff4f),_0x5c8ed9(_0x4c651a,_0x34d7d9,_0x498522);const _0x5b619d=_0x4c651a['slice'](_0x34d7d9,_0x498522)['concat'](_0x5eb645['slice'](_0x23e383,_0x23ff4f));return _0x5b619d['sort']((_0x3e1d9f,_0x218bf0)=>_0x3e1d9f['side']!=_0x218bf0['side']?_0x3e1d9f['side']-_0x218bf0['side']:_0x3e1d9f['level']!=_0x218bf0['level']?_0x3e1d9f['level']-_0x218bf0['level']:_0x3e1d9f['distance']!=_0x218bf0['distance']?_0x218bf0['distance']-_0x3e1d9f['distance']:!!_0x3e1d9f['isAdded']!=!!_0x218bf0['isAdded']?-0x1==_0x3e1d9f['side']||0x0==_0x3e1d9f['side']?_0x3e1d9f['isAdded']?-0x1:0x1:_0x3e1d9f['isAdded']?0x1:-0x1:_0x3e1d9f['index']-_0x218bf0['index']),{'commonTape':_0x5b619d,'iEnd':_0x23ff4f,'jEnd':_0x498522};function _0x5c8ed9(_0x16539c,_0x3900cc,_0x5418cd){let _0x25093d=-0x1,_0x57a2f5=Number['POSITIVE_INFINITY'],_0x39d4f6=!0x0;for(let _0x24bbb9=_0x3900cc;_0x24bbb9<_0x5418cd;_0x24bbb9++)if(_0x430d93['isInline'](_0x16539c[_0x24bbb9]['item'])||(_0x39d4f6=!0x1),_0x16539c[_0x24bbb9]['item']['startIndex']<_0x3900cc&&(_0x25093d=_0x24bbb9),_0x16539c[_0x24bbb9]['item']['endIndex']>=_0x5418cd){_0x57a2f5=_0x24bbb9;break;}_0x39d4f6&&(_0x25093d=_0x5418cd-0x1);for(let _0x41b6a8=_0x3900cc;_0x41b6a8<_0x5418cd;_0x41b6a8++)_0x16539c[_0x41b6a8]['side']=_0x41b6a8<=_0x25093d?-0x1:_0x41b6a8<_0x57a2f5?0x0:0x1,_0x16539c[_0x41b6a8]['index']=_0x41b6a8;let _0x1a3734=0x0;for(let _0x1d32cd=_0x3900cc;_0x1d32cd<=_0x25093d;_0x1d32cd++)0x0==_0x16539c[_0x1d32cd]['distance']?_0x16539c[_0x1d32cd]['level']=_0x1a3734:(_0x1a3734++,_0x16539c[_0x1d32cd]['level']=_0x1a3734,_0x1a3734++);for(let _0x249b3b=_0x3900cc;_0x249b3b<_0x5418cd;_0x249b3b++)0x0==_0x16539c[_0x249b3b]['side']&&(_0x16539c[_0x249b3b]['level']=_0x1a3734);_0x1a3734=0x0;for(let _0xd54d84=_0x5418cd-0x1;_0xd54d84>=_0x57a2f5;_0xd54d84--)0x0==_0x16539c[_0xd54d84]['distance']?_0x16539c[_0xd54d84]['level']=_0x1a3734:(_0x1a3734--,_0x16539c[_0xd54d84]['level']=_0x1a3734,_0x1a3734--);}}['_fixObsoleteTags'](_0x574afa){const _0x5cced1=new Map(),_0x2cef83=this['editor']['model']['schema'];for(let _0x154a8e=0x1;_0x154a8e<_0x574afa['length'];_0x154a8e++){let _0x18888b,_0x2efcc6,_0x580fb4;const _0x5f43be=_0x574afa[_0x154a8e],_0xbea314=_0x574afa[_0x154a8e-0x1];if('text'==_0x5f43be['type'])continue;if(_0x5f43be['type']!=_0xbea314['type'])continue;if(!_0x2cef83['isBlock'](_0xbea314['item'])||_0x2cef83['isLimit'](_0xbea314['item']))continue;if(!_0x2cef83['isBlock'](_0x5f43be['item'])||_0x2cef83['isLimit'](_0x5f43be['item']))continue;if((_0x574afa[_0x154a8e]['isAdded']||_0x574afa[_0x154a8e]['isAddSuggestion'])&&_0x574afa[_0x154a8e-0x1]['isRemoved'])_0x18888b=_0x574afa[_0x154a8e],_0x2efcc6=_0x574afa[_0x154a8e-0x1],_0x580fb4=_0x154a8e-0x1;else{if(!_0x574afa[_0x154a8e]['isRemoved']||!_0x574afa[_0x154a8e-0x1]['isAdded']&&!_0x574afa[_0x154a8e-0x1]['isAddSuggestion'])continue;_0x18888b=_0x574afa[_0x154a8e-0x1],_0x2efcc6=_0x574afa[_0x154a8e],_0x580fb4=_0x154a8e;}const _0x4663d3=_0x18888b['level']==_0x2efcc6['level'],_0x15cb09=Math['abs'](_0x18888b['level'])<Math['abs'](_0x2efcc6['level'])&&0x0==_0x2efcc6['distance'];(_0x4663d3||_0x15cb09)&&(_0x5cced1['set'](_0x2efcc6['id'],_0x18888b['id']),_0x574afa['splice'](_0x580fb4,0x1),_0x154a8e--,_0x18888b['isAdded']=!0x1);}for(let _0x337c43=0x0;_0x337c43<_0x574afa['length'];_0x337c43++)_0x5cced1['has'](_0x574afa[_0x337c43]['pairId'])&&(_0x574afa[_0x337c43]['pairId']=_0x5cced1['get'](_0x574afa[_0x337c43]['pairId']));}['_removeMissingPairs'](_0x355671){const _0x1bd898=new Set(_0x355671['map'](_0x34fe58=>_0x34fe58['id']));for(let _0x10f559=0x0;_0x10f559<_0x355671['length'];_0x10f559++)_0x1bd898['has'](_0x355671[_0x10f559]['pairId'])||0x0==_0x355671[_0x10f559]['distance']||(_0x355671[_0x10f559]['isIncorrect']=!0x0);return _0x355671['filter'](_0x417839=>!_0x417839['isIncorrect']);}['_markMismatchedRemovedTags'](_0x285c35){const _0x1c12d2=new Set();for(let _0x44f295=0x0;_0x44f295<_0x285c35['length'];_0x44f295++){if(_0x1c12d2['has'](_0x285c35[_0x44f295]['id'])&&_0x285c35[_0x44f295]['isRemoved']&&(_0x285c35[_0x44f295]['isIncorrect']=!0x0),_0x285c35[_0x44f295]['isIncorrect'])continue;if(0x0==_0x285c35[_0x44f295]['distance'])continue;if('elementStart'!=_0x285c35[_0x44f295]['type'])continue;if(null==_0x285c35[_0x44f295]['pairId'])continue;let _0x2a263a=_0x44f295+0x1,_0x5c49de=0x0;for(;_0x285c35[_0x2a263a]['id']!=_0x285c35[_0x44f295]['pairId'];)'elementStart'==_0x285c35[_0x2a263a]['type']?_0x5c49de++:'elementEnd'==_0x285c35[_0x2a263a]['type']&&_0x5c49de--,_0x2a263a++;if(0x0!=_0x5c49de){if(_0x285c35[_0x44f295]['isRemoved'])_0x285c35[_0x44f295]['isIncorrect']=!0x0;else{for(;_0x2a263a!=_0x44f295;)_0x285c35[_0x2a263a]['isRemoved']&&0x0!=_0x285c35[_0x2a263a]['distance']&&(_0x285c35[_0x2a263a]['isIncorrect']=!0x0,_0x1c12d2['add'](_0x285c35[_0x2a263a]['pairId'])),_0x2a263a--;}}}return _0x285c35['filter'](_0x25511e=>!_0x25511e['isIncorrect']);}['_removeUnsupportedChanges'](_0x3c1308){const _0x495706=this['editor']['model']['schema'];for(let _0x11252f=0x0;_0x11252f<_0x3c1308['length'];_0x11252f++){if(!(_0x3c1308[_0x11252f]['isAdded']||_0x3c1308[_0x11252f]['isAddSuggestion']||_0x3c1308[_0x11252f]['isRemoved']||_0x3c1308[_0x11252f]['isRemoveSuggestion']))continue;if(0x0==_0x3c1308[_0x11252f]['distance'])continue;const _0x5142a5=_0x3c1308[_0x11252f]['item'];_0x495706['isBlock'](_0x5142a5)||_0x495706['isLimit'](_0x5142a5)||(_0x3c1308[_0x11252f]['isAdded']&&delete _0x3c1308[_0x11252f]['isAdded'],_0x3c1308[_0x11252f]['isAddSuggestion']&&delete _0x3c1308[_0x11252f]['isAddSuggestion'],_0x3c1308[_0x11252f]['isRemoveSuggestion']&&delete _0x3c1308[_0x11252f]['isRemoveSuggestion'],_0x3c1308[_0x11252f]['isRemoved']&&(_0x3c1308[_0x11252f]['isIncorrect']=!0x0));}return _0x3c1308['filter'](_0x2c3166=>!_0x2c3166['isIncorrect']);}['_makeModelFromTape'](_0x3820ac,_0x459905,_0x514d0f){const _0x5e9222=new vt(),_0x36fcbf=[],_0x2729ac=new Map(),_0xd2b307=this['editor']['model'],_0x2a92db=_0xd2b307['schema'],_0x2a8688=[_0x5e9222],_0xb83289={},_0x214f64={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x14568e=null;const _0x327a32=[0x0];for(let _0x29e1a1=0x0;_0x29e1a1<_0x3820ac['length'];_0x29e1a1++)if('elementStart'===_0x3820ac[_0x29e1a1]['type']){_0x3820ac[_0x29e1a1]['previousPosition']=_0xd2b307['createPositionFromPath'](_0x5e9222,_0x327a32);const _0x4d4289=new ut(_0x3820ac[_0x29e1a1]['item']['name'],_0x3820ac[_0x29e1a1]['item']['getAttributes']());_0x2a8688[0x0]['_appendChild'](_0x4d4289),_0x327a32['push'](0x0),_0x2a8688['unshift'](_0x4d4289),_0x3820ac[_0x29e1a1]['nextPosition']=_0xd2b307['createPositionFromPath'](_0x5e9222,_0x327a32);}else'elementEnd'===_0x3820ac[_0x29e1a1]['type']?(_0x2a8688['shift'](),_0x3820ac[_0x29e1a1]['previousPosition']=_0xd2b307['createPositionFromPath'](_0x5e9222,_0x327a32),_0x327a32['pop'](),_0x327a32[_0x327a32['length']-0x1]++,_0x3820ac[_0x29e1a1]['nextPosition']=_0xd2b307['createPositionFromPath'](_0x5e9222,_0x327a32)):(_0x3820ac[_0x29e1a1]['previousPosition']=_0xd2b307['createPositionFromPath'](_0x5e9222,_0x327a32),_0x14568e?_0x14568e['_data']+=_0x3820ac[_0x29e1a1]['item']['data']:_0x14568e=new gt(_0x3820ac[_0x29e1a1]['item']['data'],_0x3820ac[_0x29e1a1]['item']['getAttributes']()),_0x3820ac[_0x29e1a1+0x1]&&'text'===_0x3820ac[_0x29e1a1+0x1]['type']&&_0x228a88(_0x14568e,_0x3820ac[_0x29e1a1+0x1]['item'])||(_0x2a8688[0x0]['_appendChild'](_0x14568e),_0x14568e=null),_0x327a32[_0x327a32['length']-0x1]+=_0x3820ac[_0x29e1a1]['item']['offsetSize'],_0x3820ac[_0x29e1a1]['nextPosition']=_0xd2b307['createPositionFromPath'](_0x5e9222,_0x327a32));for(let _0x2a772c=0x0;_0x2a772c<_0x3820ac['length'];_0x2a772c++){const _0x2f6fcd=_0x3820ac[_0x2a772c]['previousPosition'],_0x3cda6c=_0x3820ac[_0x2a772c]['nextPosition'];for(const _0x35f209 of _0x3820ac[_0x2a772c]['markersStart'])_0x2729ac['set'](_0x35f209,{'start':_0x2f6fcd,'end':null});_0x21977d('isRemoveSuggestion',_0x2a772c,_0x2f6fcd,_0x3cda6c),_0x21977d('isAddSuggestion',_0x2a772c,_0x2f6fcd,_0x3cda6c),_0x21977d('isRemoved',_0x2a772c,_0x2f6fcd,_0x3cda6c),_0x21977d('isAdded',_0x2a772c,_0x2f6fcd,_0x3cda6c);for(const _0x55db93 of _0x3820ac[_0x2a772c]['markersEnd']){const _0x199eae=_0x2729ac['get'](_0x55db93);_0x199eae?_0x199eae['end']=_0x3cda6c:_0x2729ac['set'](_0x55db93,{'start':_0x3cda6c,'end':_0x3cda6c});}}for(const [_0x1bb8ad,_0x5d72ae]of _0x2729ac){const _0x22a208=this['editor']['model']['createRange'](_0x5d72ae['start'],_0x5d72ae['end']);_0x5e9222['markers']['set'](_0x1bb8ad,_0x22a208);}return _0x36fcbf['sort']((_0x237157,_0x4569fa)=>{const _0x23ca94=_0x5e9222['markers']['get']('revision:'+_0x237157['id']),_0x4936ca=_0x5e9222['markers']['get']('revision:'+_0x4569fa['id']);return _0x23ca94['start']['isBefore'](_0x4936ca['start'])?-0x1:_0x23ca94['start']['isAfter'](_0x4936ca['start'])?0x1:_0x23ca94['end']['isBefore'](_0x4936ca['end'])?-0x1:_0x23ca94['end']['isAfter'](_0x4936ca['end'])?0x1:'add'===_0x237157['type']?-0x1:0x1;}),{'root':_0x5e9222,'changes':_0x36fcbf};function _0x21977d(_0x55ede1,_0x10c69d,_0x3f331a,_0x3fa4b7){const _0x3e30f9=!!_0x3820ac[_0x10c69d][_0x55ede1],_0x5c84b4=_0x3e30f9?_0x3820ac[_0x10c69d][_0x55ede1]['userId']:null,_0x53bf85=_0x10c69d===_0x3820ac['length']-0x1,_0x26d235=_0x214f64[_0x55ede1][0x0],_0x47a4de=_0x2a92db['isObject'](_0x3820ac[_0x10c69d]['item']);!_0xb83289[_0x55ede1]&&_0x3e30f9?_0xb83289[_0x55ede1]={'start':_0x3f331a,'tapeItem':_0x3820ac[_0x10c69d],'userId':_0x5c84b4,'type':_0x55ede1}:_0xb83289[_0x55ede1]&&!_0x3e30f9?(_0xb83289[_0x55ede1]['end']=_0x3f331a,_0xe6d6c1(_0xb83289[_0x55ede1]),_0xb83289[_0x55ede1]=null):_0xb83289[_0x55ede1]&&_0x3e30f9&&_0xb83289[_0x55ede1]['userId']!==_0x5c84b4&&(_0xb83289[_0x55ede1]['end']=_0x3f331a,_0x26d235&&_0x26d235['userId']===_0xb83289[_0x55ede1]['userId']||_0xe6d6c1(_0xb83289[_0x55ede1]),_0xb83289[_0x55ede1]={'start':_0x3f331a,'tapeItem':_0x3820ac[_0x10c69d],'userId':_0x5c84b4,'type':_0x55ede1}),_0xb83289[_0x55ede1]&&_0x47a4de&&('elementStart'!==_0x3820ac[_0x10c69d]['type']||_0x26d235&&_0x26d235['userId']===_0x5c84b4||_0x214f64[_0x55ede1]['unshift']({'userId':_0x5c84b4,'object':_0x3820ac[_0x10c69d]['item'],'change':_0xb83289[_0x55ede1]}),'elementEnd'===_0x3820ac[_0x10c69d]['type']&&_0x26d235&&_0x26d235['object']===_0x3820ac[_0x10c69d]['item']&&(_0x214f64[_0x55ede1]['shift'](),_0xb83289[_0x55ede1]=_0x26d235['change'])),_0xb83289[_0x55ede1]&&_0x53bf85&&(_0xb83289[_0x55ede1]['end']=_0x3fa4b7,_0xe6d6c1(_0xb83289[_0x55ede1]),_0xb83289[_0x55ede1]=null);}function _0xe6d6c1({start:_0x5c6749,end:_0x30f1d4,tapeItem:_0xf9cbb6,userId:_0x4e7927,type:_0x311b93}){const _0x413e7c=_0xf9cbb6['item'],_0x3c0d2a=_0xd2b307['schema']['isBlock'](_0x413e7c)&&!_0xd2b307['schema']['isLimit'](_0x413e7c),_0x39cdb5=_0x5c6749['nodeAfter']==_0x30f1d4['parent']&&_0x30f1d4['isAtStart'];if(_0x3c0d2a&&_0x39cdb5)return;const _0x60fe60=_0xd2b307['createRange'](_0x5c6749,_0x30f1d4),_0x59ff4d=_0x459905['get'](_0x4e7927),_0x43a8e2=new r({'author':_0x59ff4d,'type':'isAdded'==_0x311b93||'isAddSuggestion'==_0x311b93?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x311b93||'isRemoveSuggestion'==_0x311b93},'createdAt':new Date(),'rootName':_0x514d0f});_0x36fcbf['push'](_0x43a8e2),_0x5e9222['markers']['set']('revision:'+_0x43a8e2['id'],_0x60fe60);}function _0x228a88(_0x57daaf,_0x198a37){const _0x4faa0d=_0x57daaf['getAttributes'](),_0x330ef6=_0x198a37['getAttributes']();for(const _0x17ab4a of _0x4faa0d){if(_0x17ab4a[0x1]!==_0x198a37['getAttribute'](_0x17ab4a[0x0]))return!0x1;_0x330ef6['next']();}return _0x330ef6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x155995=>{const _0x769f1=_0x155995['markerName']['split'](':')[0x1],_0x39b1b3=this['_getChangeFromId'](_0x769f1);if(!_0x39b1b3)return null;const _0x3b0c68='add'==_0x39b1b3['type']?'insertion':'deletion',_0x1e85b5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3b0c68];return _0x39b1b3['data']['isSuggestion']&&_0x1e85b5['push']('ck-suggestion-marker-'+_0x3b0c68+'-new'),this['activeChange']==_0x39b1b3&&_0x1e85b5['push']('ck-suggestion-marker--active'),{'classes':_0x1e85b5,'attributes':{'data-change-id':_0x769f1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x39aae1=>{_0x39aae1['on']('element:pre',(_0x5425cc,_0x9fb678,_0x3e230a)=>{const _0x10483f=_0x9fb678['viewItem']['getChild'](0x0);if(!_0x10483f||!_0x10483f['is']('element','code'))return;if(!_0x3e230a['consumable']['consume'](_0x10483f,{'attributes':['vid_start','vid_end']}))return;const _0xf27dc=_0x9fb678['modelRange']['start']['nodeAfter'];_0x3e230a['writer']['setAttribute']('vid_start',_0x10483f['getAttribute']('vid_start'),_0xf27dc),_0x3e230a['writer']['setAttribute']('vid_end',_0x10483f['getAttribute']('vid_end'),_0xf27dc);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x9583da=>{_0x9583da['on']('element',(_0x252a76,_0x4a852e,_0x1f2f31)=>{if(!_0x1f2f31['consumable']['consume'](_0x4a852e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4a852e['modelRange']['isCollapsed'])return;const _0x3191bf=_0x4a852e['modelRange']['start']['nodeAfter'];_0x3191bf['hasAttribute']('vid_start')||_0x3191bf['hasAttribute']('vid')||(_0x1f2f31['writer']['setAttribute']('vid_start',_0x4a852e['viewItem']['getAttribute']('vid_start'),_0x3191bf),_0x1f2f31['writer']['setAttribute']('vid_end',_0x4a852e['viewItem']['getAttribute']('vid_end'),_0x3191bf));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2472d2=>_0x2472d2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x555c30,[,_0x2aef7f])=>{['vid_start','vid_end','vid']['includes'](_0x2aef7f)&&(_0x555c30['return']=!0x0,_0x555c30['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x6fd47e=>{_0x6fd47e['on']('attribute:vid',(_0x5c58d3,_0x178497,_0x4771c3)=>{if('\x20'!=_0x178497['item']['data']||_0x178497['item']['parent']['maxOffset']>0x1)return;if(!_0x4771c3['consumable']['consume'](_0x178497['item'],_0x5c58d3['name']))return;const _0x530ae4=_0x4771c3['writer'],_0x213c22=_0x4771c3['mapper']['toViewRange'](_0x178497['range']);_0x530ae4['wrap'](_0x213c22,_0x530ae4['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3f7df8){const _0x12102c=_0x3f7df8['plugins']['get']('RevisionViewer');return(_0xf23309,_0x524841,_0x2b14f5)=>{const _0x6b72b1=_0x524841['markerName']['split'](':')[0x1],_0x22267c=_0x12102c['_getChangeFromId'](_0x6b72b1);if(!_0x22267c)return null;const _0x4d5e4c='add'==_0x22267c['type']?'split':'merge';if(!_0x2b14f5['consumable']['test'](_0x524841['markerRange'],_0xf23309['name']))return;const _0x462311=_0x524841['markerRange']['getWalker'](),_0x220836=_0x524841['markerRange']['start'],_0x5c5918=_0x3f7df8['model']['schema'];let _0x40f061=null,_0x375eb8=null,_0x68c60c=!0x1,_0x229d7e=!0x1;for(const _0x29f786 of _0x462311){const _0x1b820e=_0x29f786['item'];_0x68c60c=_0x68c60c||_0x5c5918['isContent'](_0x1b820e);const _0x1ba19b=_0x2b14f5['mapper']['toViewElement'](_0x1b820e);if(_0x1ba19b&&_0x1ba19b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29f786['type']&&(_0x5c5918['isBlock'](_0x1b820e)&&!_0x5c5918['isLimit'](_0x1b820e)&&(_0x1b820e['nextSibling']||_0x220836['isAtEnd']?_0x40f061&&_0x40f061['parent']==_0x1b820e||(_0x40f061=_0x1b820e,_0x5e6be8(_0x29f786['previousPosition']),_0x229d7e=!0x0):_0x375eb8=_0x375eb8||_0x29f786['previousPosition']));}function _0x5e6be8(_0x51d45c){const _0x5f3d09=_0x2b14f5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d5e4c}),_0x5324b5=_0x2b14f5['mapper']['toViewPosition'](_0x51d45c);_0x22267c['data']['isSuggestion']&&_0x2b14f5['writer']['addClass']('ck-suggestion-marker-'+_0x4d5e4c+'-new',_0x5f3d09),_0x12102c['activeChange']==_0x22267c&&_0x2b14f5['writer']['addClass']('ck-suggestion-marker--active',_0x5f3d09),_0x2b14f5['writer']['insert'](_0x5324b5,_0x5f3d09),_0x2b14f5['mapper']['bindElementToMarker'](_0x5f3d09,_0x524841['markerName']);}_0x68c60c||_0x229d7e||!_0x375eb8||_0x5e6be8(_0x375eb8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x28d3f2,_0x1b28c7,_0x5d3a60)=>{const _0x1d2fd9=_0x5d3a60['mapper']['markerNameToElements'](_0x1b28c7['markerName']);if(_0x1d2fd9){for(const _0x287be0 of _0x1d2fd9)(_0x287be0['hasClass']('ck-suggestion-marker-split')||_0x287be0['hasClass']('ck-suggestion-marker-merge'))&&(_0x5d3a60['mapper']['unbindElementFromMarkerName'](_0x287be0,_0x1b28c7['markerName']),_0x5d3a60['writer']['remove'](_0x287be0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xc104b2,_0xb9cbaa,_0x35f7d2)=>{const _0x553600=_0xb9cbaa['markerName']['split'](':')[0x1],_0x5509af=this['_getChangeFromId'](_0x553600);if(!_0x5509af)return null;const _0x5700ee='add'==_0x5509af['type']?'split':'merge';if(_0x35f7d2['consumable']['test'](_0xb9cbaa['markerRange'],_0xc104b2['name']))for(const _0x18bd86 of _0xb9cbaa['markerRange']['getItems']()){if(!_0x18bd86['is']('element','softBreak'))continue;const _0x2ba9a6=_0x35f7d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5700ee}),_0x141e7e=_0x35f7d2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x18bd86));_0x5509af['data']['isSuggestion']&&_0x35f7d2['writer']['addClass']('ck-suggestion-marker-'+_0x5700ee+'-new',_0x2ba9a6),this['activeChange']==_0x5509af&&_0x35f7d2['writer']['addClass']('ck-suggestion-marker--active',_0x2ba9a6),_0x35f7d2['writer']['insert'](_0x141e7e,_0x2ba9a6),_0x35f7d2['mapper']['bindElementToMarker'](_0x2ba9a6,_0xb9cbaa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x742402=>{for(const _0x2a1b86 of this['editor']['model']['document']['getRootNames']()){const _0x4a2493=this['editor']['model']['document']['getRoot'](_0x2a1b86),_0x16a84e=this['editor']['editing']['view']['document']['getRoot'](_0x2a1b86);if(_0x16a84e){const _0x3c00f0=_0x4a2493['getAttribute']('revisionHistoryAttachChange');if(_0x742402['removeAttribute']('data-change-id',_0x16a84e),_0x742402['removeClass']('ck-revision-history-root-add',_0x16a84e),_0x742402['removeClass']('ck-revision-history-root-remove',_0x16a84e),_0x742402['removeClass']('ck-revision-history-root--active',_0x16a84e),_0x3c00f0){const _0x1f387a=this['_getChangeFromId'](_0x3c00f0);if(!_0x1f387a)return null;_0x742402['setAttribute']('data-change-id',_0x3c00f0,_0x16a84e),_0x742402['addClass']('ck-revision-history-root-'+_0x1f387a['type'],_0x16a84e),this['activeChange']==_0x1f387a&&_0x742402['addClass']('ck-revision-history-root--active',_0x16a84e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x30631a=>'revision-comment:'+_0x30631a,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1588e6=>'revision-suggestion:'+_0x1588e6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x161f09=>({'name':'suggestion:'+_0x161f09,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5a4b65=>{const _0x45e29e=_0x5a4b65['markerName']['split'](':')[0x1];return'insertion'!=_0x45e29e&&'deletion'!=_0x45e29e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x45e29e]};}}),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',(_0x2a5d56,_0x28e63d,_0x489fd1)=>{const _0x1b928c=_0x489fd1['mapper']['markerNameToElements'](_0x28e63d['markerName']);if(_0x1b928c){for(const _0x34b648 of _0x1b928c)_0x34b648['is']('uiElement')&&(_0x489fd1['mapper']['unbindElementFromMarkerName'](_0x34b648,_0x28e63d['markerName']),_0x489fd1['writer']['remove'](_0x34b648));}},{'priority':'high'});}['_getChangeFromId'](_0x4484de){return this['_changeIdToChange']['get'](_0x4484de);}['_getViewForChange'](_0x433bb6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x433bb6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x504ea1,_0xf043c9,_0x5730ae,_0x512a98)=>{_0x512a98&&this['_balloon']['remove'](_0x512a98),_0x5730ae&&(this['_balloon']['add']({'view':_0x5730ae,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x480cff=this['editor']['editing'],_0x149f0a=this['_getChangeFromId'](_0x5730ae['changeId']);let _0x359e25;if(_0x149f0a['data']['isOnRoot']){const _0x426940=_0x480cff['view']['getDomRoot'](_0x149f0a['rootName']);_0x359e25=Array['from'](_0x426940['getClientRects']());}else{const _0x32093d=this['editor']['model']['markers']['get']('revision:'+_0x5730ae['changeId']);_0x359e25=Array['from'](_0x480cff['mapper']['markerNameToElements'](_0x32093d['name']))['map'](_0x55fb5a=>_0x480cff['view']['domConverter']['mapViewToDom'](_0x55fb5a))['map'](_0x4162e9=>Array['from'](_0x4162e9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x359e25[0x0];return _0x359e25['find'](_0x1e9b8a=>_0x1e9b8a['top']-0x3<=this['_activeViewTarget']['y']&&_0x1e9b8a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1e9b8a['left']-0x3<=this['_activeViewTarget']['x']&&_0x1e9b8a['right']+0x3>=this['_activeViewTarget']['x'])||_0x359e25[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x53744e,_0x21796e,_0x4c3f36,_0x209fc3)=>{this['activeView']=_0x4c3f36?this['_getViewForChange'](_0x4c3f36):null,this['editor']['model']['change'](()=>{const _0x3e15f0=this['editor']['editing'];_0x209fc3&&(_0x209fc3['data']['isOnRoot']?_0x3e15f0['view']['change'](_0xf84b47=>{_0xf84b47['removeClass']('ck-revision-history-root--active',_0x3e15f0['view']['document']['getRoot'](_0x209fc3['rootName']));}):_0x3e15f0['reconvertMarker']('revision:'+_0x209fc3['id'])),_0x4c3f36&&(_0x4c3f36['data']['isOnRoot']?_0x3e15f0['view']['change'](_0x4f10d2=>{_0x4f10d2['addClass']('ck-revision-history-root--active',_0x3e15f0['view']['document']['getRoot'](_0x4c3f36['rootName']));}):_0x3e15f0['reconvertMarker']('revision:'+_0x4c3f36['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x20c650,_0x50715b)=>{if(this['activeChange'])return;const _0x3af833=this['_findChangeIdFromDomTarget'](_0x50715b['target']),_0x3fa4ae=this['_changeIdToChange']['get'](_0x3af833);_0x3fa4ae?(this['_activeViewTarget']={'x':_0x50715b['domEvent']['x'],'y':_0x50715b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3fa4ae)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x253716,_0x88e281)=>{const _0x359ef7=this['_findChangeIdFromDomTarget'](_0x88e281['target']),_0x3732c8=this['_changeIdToChange']['get'](_0x359ef7);_0x3732c8?(this['_activeViewTarget']={'x':_0x88e281['domEvent']['x'],'y':_0x88e281['domEvent']['y']},_0x3732c8===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3732c8):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1521ed){do{const _0x308320=_0x1521ed['getAttribute']('data-change-id');if(_0x308320)return _0x308320;_0x1521ed=_0x1521ed['parent'];}while(_0x1521ed);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x193e26=>{for(const _0x1c9ee4 of this['editor']['model']['markers'])_0x193e26['removeMarker'](_0x1c9ee4);});}}function X(_0x45203a,_0x148992){return(_0x41b664,_0x1326a5,_0x72a4a3)=>{if(!_0x72a4a3['consumable']['test'](_0x1326a5['markerRange'],_0x41b664['name']))return;const _0x2751fc=_0x1326a5['markerRange']['getWalker'](),_0x467543=_0x1326a5['markerRange']['start'],_0x220b95=_0x45203a['model']['schema'];let _0x507a27=null,_0x5aa2a8=null,_0x53ba3f=!0x1,_0x2395e3=!0x1;for(const _0x575c77 of _0x2751fc){const _0x52d037=_0x575c77['item'];_0x53ba3f=_0x53ba3f||_0x220b95['isContent'](_0x52d037);const _0x212147=_0x72a4a3['mapper']['toViewElement'](_0x52d037);if(_0x212147&&_0x212147['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x575c77['type']&&(_0x220b95['isBlock'](_0x52d037)&&!_0x220b95['isLimit'](_0x52d037)&&(_0x52d037['nextSibling']||_0x467543['isAtEnd']?_0x507a27&&_0x507a27['parent']==_0x52d037||(_0x507a27=_0x52d037,_0x3c2882(_0x575c77['previousPosition']),_0x2395e3=!0x0):_0x5aa2a8=_0x5aa2a8||_0x575c77['previousPosition']));}function _0x3c2882(_0x43e5d5){const _0x56c25a=_0x72a4a3['mapper']['toViewPosition'](_0x43e5d5),_0x1996a1=_0x72a4a3['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x148992});_0x72a4a3['writer']['insert'](_0x56c25a,_0x1996a1),_0x72a4a3['mapper']['bindElementToMarker'](_0x1996a1,_0x1326a5['markerName']);}_0x53ba3f||_0x2395e3||!_0x5aa2a8||_0x3c2882(_0x5aa2a8);};}class mt extends _0x2f0baf{constructor(_0x3ed4e7){super(_0x3ed4e7);const _0xaa5878=_0x3ed4e7['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0xaa5878,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xaa5878,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5ab933=this['editor'],_0xbea029=_0x5ab933['plugins']['get'](m),_0x515305=_0xbea029['isReady']?_0xbea029['diff']['newRevisionId']:null;_0x5ab933['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x515305);}['refresh'](){const {isReady:_0x1fe89d,isEnabled:_0x43e842,repository:_0x1dc6c4,diff:_0x5151b4}=this['editor']['plugins']['get'](m),_0x550844=_0x5151b4&&_0x1dc6c4['getLaterVisibleRevision'](_0x5151b4['newRevisionId']);this['isEnabled']=_0x1fe89d&&_0x43e842&&Boolean(_0x550844);}}class wt extends _0x2f0baf{['_step'];constructor(_0x320474,{direction:_0x3e5dd5}){super(_0x320474);const _0x3b030e=_0x320474['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x3e5dd5?0x1:-0x1,this['listenTo'](_0x3b030e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3b030e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3b030e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3bc73f=this['editor'],_0x309d43=_0x3bc73f['plugins']['get'](m),{isNavigationMode:_0x24a7b2,currentChangeNumber:_0x5a2bb7}=_0x309d43;let _0x1d613e;if(_0x309d43['activeChange']=_0x24a7b2?_0x309d43['diff']['changes']['get'](_0x5a2bb7+this['_step']):_0x309d43['diff']['changes']['first'],_0x309d43['activeChange']['data']['isOnRoot'])_0x1d613e=_0x3bc73f['editing']['view']['getDomRoot'](_0x309d43['activeChange']['rootName']);else{const _0x4ced11=_0x3bc73f['model']['markers']['get']('revision:'+_0x309d43['activeChange']['id']);_0x1d613e=_0x3be93a(_0x3bc73f['editing'],_0x4ced11);}_0xdf48e0({'target':_0x1d613e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1b7fc3,currentChangeNumber:_0x595738,numberOfChanges:_0x2c048d,isReady:_0x59e829,isEnabled:_0x382d0c}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x382d0c&&_0x59e829&&_0x2c048d)&&(!_0x1b7fc3||(0x1===this['_step']?_0x595738<_0x2c048d-0x1:_0x595738>0x0));}}class _i extends ts{constructor(_0x447afb){super(_0x447afb);const _0x40fce1=this['bindTemplate'],_0x334a31=new te(_0x447afb),_0x5181b1=new te(_0x447afb);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',(_0x59823b,_0x29e763)=>_0x59823b&&_0x29e763>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3cf9cd,_0x440ec6,_0x416f69,_0x2b540f)=>{if(!_0x3cf9cd)return g(_0x447afb,'Loading...');if(!_0x416f69)return g(_0x447afb,'No\x20changes');const _0x5e8b0b=g(_0x447afb,'NUMBER_OF_CHANGES',_0x416f69);return _0x2b540f?g(_0x447afb,'X_OF_Y_CHANGES',[_0x440ec6+0x1,_0x416f69]):_0x5e8b0b;}),_0x334a31['set']({'label':g(_0x447afb,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x33a666}),_0x5181b1['set']({'label':g(_0x447afb,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x46eb64}),_0x334a31['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5181b1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x334a31['on']('execute',()=>this['fire']('execute','backward')),_0x5181b1['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',_0x40fce1['if']('_isStatusLabelVisible','ck-hidden',_0x392947=>!_0x392947)]},'children':[{'text':_0x40fce1['to']('isNavigationMode',_0x11737d=>_0x11737d?g(_0x447afb,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x447afb,'Total')+':\x20')}]},{'text':_0x40fce1['to']('_statusText')}]},new _0x54675b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x334a31,_0x5181b1]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0xc5caea{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3dc6a4=this['editor']['editing']['view'];_0x3dc6a4['change'](_0x43095f=>{for(const _0x4617a3 of _0x3dc6a4['document']['roots'])_0x43095f['addClass'](le,_0x4617a3);});}['hide'](){const _0xda5b52=this['editor']['editing']['view'];_0xda5b52['change'](_0x1fd35c=>{for(const _0x5d6108 of _0xda5b52['document']['roots'])_0x1fd35c['removeClass'](le,_0x5d6108);});}}class R extends _0xc5caea{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2803aa=this['editor'],_0x1602bf=_0x2803aa['plugins']['get'](m),_0x226688=_0x2803aa['plugins']['get'](ge);_0x2803aa['ui']['componentFactory']['add']('exitToEditing',_0x134b9e=>{const _0x5a350c=new te(_0x134b9e);return _0x5a350c['set']({'label':g(_0x134b9e,'Back\x20to\x20editing'),'icon':_0x231d54,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5a350c,'execute',()=>{_0x2803aa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5a350c;}),_0x2803aa['ui']['componentFactory']['add']('restoreRevision',_0xb88d26=>{const _0x4e6806=new te(_0xb88d26);return _0x4e6806['set']({'label':g(_0xb88d26,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e6806['bind']('isEnabled')['to'](_0x2803aa['commands']['get']('restoreRevision')),this['listenTo'](_0x4e6806,'execute',()=>_0x2803aa['execute']('restoreRevision')),_0x4e6806;}),_0x2803aa['ui']['componentFactory']['add']('changesNavigation',_0x3f0ab1=>{const _0x319df6=new _i(_0x3f0ab1),_0x4a55c4=_0x2803aa['commands']['get']('showPreviousChange'),_0x206faf=_0x2803aa['commands']['get']('showNextChange');return _0x319df6['bind']('isBackwardNavigationEnabled')['to'](_0x4a55c4,'isEnabled'),_0x319df6['bind']('isForwardNavigationEnabled')['to'](_0x206faf,'isEnabled'),_0x319df6['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1602bf),this['listenTo'](_0x319df6,'execute',(_0x947aa5,_0x532dab)=>{_0x2803aa['execute']('forward'===_0x532dab?'showNextChange':'showPreviousChange');}),_0x319df6;}),_0x226688['show'](),_0x1602bf['on']('change:isReady',(_0x479e71,_0x50b7c7,_0x27b20c)=>{_0x27b20c?_0x226688['hide']():_0x226688['show']();});}}class at extends _0x3c125a{['_resizeObserver']=null;constructor(_0x5e30b5,_0x34f171){super(_0x5e30b5,_0x34f171);const _0x3c9cca=this['bindTemplate'];this['set']({'label':g(_0x5e30b5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5e30b5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3c9cca['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 _0x441fa2=this['fieldView']['element'];this['_tooltipString']=_0x441fa2['scrollWidth']>_0x441fa2['clientWidth']&&_0x441fa2['value']||'';}}class si extends ts{constructor(_0x4cab6a,_0x4be419,_0x467629){super(_0x4cab6a);const _0x5db564=new _0x5d452d();_0x5db564['set']({'content':_0x3fd4d6,'viewBox':'0\x200\x2011\x2010'});const _0x1c5f3a=['ck','ck-revision-history-sidebar__revision-author'];_0x467629&&_0x1c5f3a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x52efad=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4cab6a,_0x467629?'Revision\x20creator':'Revision\x20author')},'children':[_0x5db564,_0x4be419['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1c5f3a},'children':_0x52efad});}}function oi(_0x3b967c,_0x454732){const _0x7c24df=_0x3b967c['bindTemplate'],_0x3659b2=_0x3b967c['locale'],_0x709cd4=_0x20f831(_0x3659b2);_0x709cd4['panelPosition']='sw';const _0x43bf5d=function(_0x45673c,_0x8306df){const _0x4e301e=function(_0x2a85ff,_0x8800d5){const _0xb75e17=_0x2a85ff['locale'],_0x310b39={'Compare\x20against\x20selected':g(_0xb75e17,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xb75e17,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xb75e17,'Restore\x20this\x20revision')};return _0x8800d5['map'](_0xb8fde0=>{const _0x299ed1=_0x310b39[_0xb8fde0['name']];return _0x299ed1&&_0x299ed1!==_0xb8fde0['name']&&(_0xb8fde0['name']=_0x299ed1),_0xb8fde0;});}(_0x45673c,_0x8306df),_0x2850c6=new _0x13749a();for(const _0x3b91fa of _0x4e301e){const _0x99db74={'type':'button','model':new to({'label':_0x3b91fa['name'],'class':_0x3b91fa['class'],'withText':!0x0,'role':'menuitem','_action':_0x3b91fa['action']})};_0x99db74['model']['bind']('isEnabled')['to'](_0x45673c,'isActionsDropdownOpen',_0x170421=>'function'!=typeof _0x3b91fa['isEnabled']||(!_0x170421||_0x3b91fa['isEnabled'](_0x45673c))),_0x2850c6['add'](_0x99db74);}return _0x2850c6;}(_0x3b967c,_0x454732);return _0x3b967c['bind']('isActionsDropdownOpen')['to'](_0x709cd4,'isOpen'),_0x709cd4['buttonView']['set']({'label':g(_0x3659b2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x327e0d}),_0x709cd4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x7c24df['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x7c24df['to'](_0x5c105b=>_0x5c105b['stopPropagation']())}}),_0x709cd4['on']('execute',_0x579970=>{_0x3b967c['isReady']&&'function'==typeof _0x579970['source']['_action']&&_0x579970['source']['_action'](_0x3b967c);}),_0x273e69(_0x709cd4,_0x43bf5d,{'role':'menu'}),_0x709cd4['listenTo'](_0x3b967c,'change:isActionsDropdownOpen',(_0x50a570,_0x3a2a73,_0xa471a8)=>{if(_0xa471a8)for(const _0x523736 of _0x709cd4['listView']['items']){const _0x1bd6c1=_0x523736['children']['first'],_0x46f813=_0x454732['find'](_0x585370=>_0x585370['action']===_0x1bd6c1['_action'])['isVisible'];_0x523736['isVisible']=void 0x0===_0x46f813||_0x46f813(_0x3b967c);}}),_0x709cd4;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1655bf,_0x2a1796,_0x3d6069,_0x135b22){super(_0x1655bf);const _0x58ac25=this['bindTemplate'],_0x126ec0=function(_0x5715e4,_0x2c2e03){const _0x2b46fb=Array['from'](_0x2c2e03['authors'])['filter'](_0x358578=>_0x358578!=_0x2c2e03['creator']);return _0x2c2e03['creator']&&_0x2b46fb['unshift'](_0x2c2e03['creator']),_0x2b46fb['map'](_0x5a3cfe=>new si(_0x5715e4,_0x5a3cfe,_0x5a3cfe==_0x2c2e03['creator']));}(_0x1655bf,_0x2a1796);this['id']=_0x2a1796['id'],this['_revision']=_0x2a1796,this['_requireRevisionName']=_0x135b22,this['bind']('name','createdAt')['to'](_0x2a1796),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3f289d=>{return _0x219011=_0x1655bf['uiLanguage'],(_0x1a61c6=_0x3f289d)['toLocaleDateString'](_0x219011,{'month':'long','day':'numeric'})+',\x20'+_0x1a61c6['toLocaleTimeString'](_0x219011,{'hour':'numeric','minute':'numeric'});var _0x219011,_0x1a61c6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x1655bf,_0x308ce0),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4a248f=>_0x4a248f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x28c86c,_0xdcbff)=>_0x28c86c&&_0xdcbff),this['revisionActionsView']=_0x3d6069&&_0x3d6069['length']?oi(this,_0x3d6069):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x58ac25['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x58ac25['if']('isEnabled','ck-disabled',_0x38de91=>!_0x38de91),_0x58ac25['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x58ac25['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x58ac25['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':_0x58ac25['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':_0x126ec0}]},this['revisionActionsView']],'on':{'click':_0x58ac25['to'](_0x230b59=>{_0x230b59['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3f75f1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3f75f1,'change',()=>{this['_requireRevisionName']&&!_0x3f75f1['value']||this['fire']('setName',{'id':this['id'],'name':_0x3f75f1['value']}),_0x3f75f1['value']||(_0x3f75f1['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(_0x666b8f,_0x1b2382){const _0x53d61f=_0x179f29['fromJSDate'](_0x666b8f)['setLocale'](_0x1b2382),_0x5a1f16=_0x179f29['local'](),_0x2f54e9=_0x5a1f16['minus']({'days':0x1})['startOf']('day');let _0x339cab,_0xfcafa9;return _0x53d61f['hasSame'](_0x5a1f16,'day')?(_0x339cab=_0x53d61f['startOf']('day')['toJSDate'](),_0xfcafa9=_0x53d61f['toRelativeCalendar']()):_0x53d61f['hasSame'](_0x2f54e9,'day')?(_0x339cab=_0x2f54e9['toJSDate'](),_0xfcafa9=_0x53d61f['toRelativeCalendar']()):_0x53d61f['hasSame'](_0x5a1f16,'week')?(_0x339cab=_0x53d61f['startOf']('week')['toJSDate'](),_0xfcafa9=_0x53d61f['weekdayLong']||''):_0x53d61f['hasSame'](_0x5a1f16,'year')?(_0x339cab=_0x53d61f['startOf']('month')['toJSDate'](),_0xfcafa9=_0x53d61f['monthLong']||''):(_0x339cab=_0x53d61f['startOf']('year')['toJSDate'](),_0xfcafa9=String(_0x53d61f['year'])),{'startDate':_0x339cab,'localizedPeriodName':_0xfcafa9};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x208161,_0x169244,_0x20d844,_0x34484e){super(_0x208161);const _0x431166=ai(_0x169244,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x169244,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x20d844,this['_requireRevisionName']=_0x34484e,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':_0x431166}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x330c71){const _0xc33975=new hi(this['locale'],_0x330c71,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xc33975);}['removeRevision'](_0x20d77a){const _0x3cf8d5=this['revisionViews']['find'](_0x1dc434=>_0x1dc434['id']===_0x20d77a['id']);this['revisionViews']['remove'](_0x3cf8d5);}}class as extends ts{constructor(_0x3c6979){super(_0x3c6979);const _0x11edf1=new _0x5d452d();_0x11edf1['content']=_0x322fcb,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x11edf1,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x3c6979,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58ca64,_0xa0a8cb,_0x2edc81,_0x49a2c5){super(_0x58ca64);const _0x5ec8ba=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xa0a8cb,this['_revisionActions']=_0x2edc81,this['_requireRevisionName']=_0x49a2c5,this['on']('select',(_0xb05cc0,_0x2ca9ad)=>{this['fire']('revisionSelected',_0x2ca9ad);}),this['on']('setName',(_0x9f6c55,_0xda554f)=>{this['fire']('revisionSetName',_0xda554f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x58ca64),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5ec8ba['if']('isEnabled','ck-disabled',_0x496692=>!_0x496692)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1dfeaa of this['_revisions'])this['_addRevision'](_0x1dfeaa);this['_revisions']['on']('add',(_0xd477ca,_0x3c8444)=>{this['_addRevision'](_0x3c8444);}),this['_revisions']['on']('remove',(_0x5d0c8d,_0x5224b4)=>{this['_removeRevision'](_0x5224b4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4aad7e=>_0x4aad7e['revisionViews']['map'](_0x913012=>_0x913012))['flat']();}['selectRevision'](_0x399f28){for(const _0x50c3ba of this['revisionViews'])_0x399f28&&_0x399f28['id']===_0x50c3ba['id']?_0x50c3ba['select']():_0x50c3ba['deselect']();}['highlightRevisions'](_0x364708){for(const _0x408bc6 of this['revisionViews'])_0x364708['some'](({id:_0x3aa57a})=>_0x3aa57a===_0x408bc6['id'])?_0x408bc6['highlight']():_0x408bc6['unhighlight']();}['_addRevision'](_0x5dab5a){const _0x4f09e5=ai(_0x5dab5a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3fba62=this['timePeriodViews']['get'](0x0);_0x3fba62&&_0x3fba62['startDate']['getTime']()===_0x4f09e5['getTime']()||(_0x3fba62=new di(this['locale'],_0x4f09e5,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3fba62)),_0x3fba62['addRevision'](_0x5dab5a);}['_removeRevision'](_0x3b3760){const _0x1bc8cb=ai(_0x3b3760['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1bc8cb)['removeRevision'](_0x3b3760);}['_getTimePeriodViewByStartDate'](_0x3f9f52){return this['timePeriodViews']['find'](_0x40a1ef=>_0x40a1ef['startDate']['getTime']()===_0x3f9f52['getTime']());}}class d extends _0xc5caea{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x353e26){super(_0x353e26),this['_revisionViewer']=_0x353e26['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x36ac4d=this['_revisionsRepository']['_revisions'],_0x46ddbc=this['_createRevisionActions'](),_0x37ce37=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x36ac4d,_0x46ddbc,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',(_0x4b55ab,_0x218e38)=>{_0x218e38['revisionViews']['on']('add',(_0x3b1d1c,_0x4ce821)=>{_0x4ce821['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)),_0x37ce37['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2bfdb7=this['_revisionsRepository']['getRevision'](0x0);if(_0x2bfdb7){const _0x3657c3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2bfdb7['id']);this['_revisionViewer']['compare'](_0x2bfdb7,_0x3657c3);}}['_handleRevisionSelected'](_0x506030,_0x161a20){const _0x2bd049=this['_revisionsRepository']['getRevision'](_0x161a20['id']),_0x2b9261=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2bd049['id']);this['_revisionViewer']['compare'](_0x2bd049,_0x2b9261);}['_handleRevisionSetName'](_0x5033a7,_0x27c3aa){this['_revisionsRepository']['getRevision'](_0x27c3aa['id'])['setName'](_0x27c3aa['name']);}['_handleDiffChange'](_0x4c2a44,_0x1074bb,_0x5cd92a){const _0x237e91=this['_revisionsRepository']['getRevisionsInDiff'](_0x5cd92a);_0x237e91['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x237e91),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x237e91[0x0]));}['_createRevisionActions'](){const _0x3a5fa1=this['editor'],_0x2a6e25=d['availableRevisionActions'],_0x324d80=_0x3a5fa1['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x324d80['length'])return _0x324d80['map'](_0x179c08=>{const _0x1672fb='string'==typeof _0x179c08?Object['assign']({},_0x2a6e25[_0x179c08]):_0x179c08;return _0x1672fb['action']=_0x1672fb['action']['bind'](this,_0x3a5fa1),_0x1672fb['isVisible']&&(_0x1672fb['isVisible']=_0x1672fb['isVisible']['bind'](this,_0x3a5fa1)),_0x1672fb;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x281d40},_0x3be41d)=>{const _0x54d7a6=_0x281d40['get'](m),_0xacb603=_0x54d7a6['repository'];let _0x28100c=_0x54d7a6['diff']['newRevisionId'],_0x6db9e4=_0x3be41d['id'];_0xacb603['getIndex'](_0x28100c)>_0xacb603['getIndex'](_0x6db9e4)&&([_0x28100c,_0x6db9e4]=[_0x6db9e4,_0x28100c]),_0x54d7a6['compare'](_0x28100c,_0x6db9e4);},'isVisible':({plugins:_0x2606f9},_0x153019)=>{const _0x1b8bc5=_0x2606f9['get'](m);return!(_0x1b8bc5['repository']['getRevisionsInDiff'](_0x1b8bc5['diff'])['length']>0x2)&&!_0x153019['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3ddb62,{id:_0x1c36d6})=>{_0x3ddb62['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1c36d6);},'isVisible':({plugins:_0x884a15},_0x18bc77)=>!!_0x884a15['get'](m)['repository']['getLaterVisibleRevision'](_0x18bc77['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x43dc69},{id:_0x1d97ff,revisionNameView:_0x553d69})=>{const _0x2e1d65=_0x43dc69['get'](m),_0x5ac1df=_0x2e1d65['repository']['getEarlierVisibleRevision'](_0x1d97ff);_0x2e1d65['compare'](_0x1d97ff,_0x5ac1df),_0x553d69['focus'](),_0x553d69['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x747adf,_0x990d82){super(_0x747adf),this['_view']=_0x990d82,this['_toolbarConfig']=et(_0x747adf['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x579692){const _0x4d3582=this['editor'],_0x24b513=this['view'],_0x8502bd=_0x4d3582['editing']['view'],_0x37c4b0=_0x24b513['editable'],_0x4bd737=_0x8502bd['document']['getRoot']();_0x37c4b0['name']=_0x4bd737['rootName'],_0x24b513['render']();const _0x26f0ab=_0x37c4b0['element'];this['setEditableElement'](_0x37c4b0['name'],_0x26f0ab),_0x24b513['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x8502bd['attachDomRoot'](_0x26f0ab),this['_elementReplacer']['replace'](_0x579692,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x423d1b=this['view'],_0x3d5fbc=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3d5fbc['detachDomRoot'](_0x423d1b['editable']['name']),_0x423d1b['destroy']();}['_initToolbar'](){const _0x5d3cf1=this['view'];_0x5d3cf1['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5d3cf1['stickyPanel']['limiterElement']=_0x5d3cf1['element'],_0x5d3cf1['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x586ece})=>_0x586ece),_0x5d3cf1['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5d3cf1['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xf9bce5,_0xd3b77,_0x34b23a={}){super(_0xf9bce5),this['stickyPanel']=new ht(_0xf9bce5),this['toolbar']=new dt(_0xf9bce5,{'shouldGroupWhenFull':_0x34b23a['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0xf9bce5,_0xd3b77);}['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
- _0x3e370e(_0xca871b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x279d44,_0xea9221){super(_0xea9221),this['sourceElement']=_0x279d44,this['model']['document']['createRoot']();const _0x160c44=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x160c44);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x460e2c,_0x35bc55){const _0x2514bc=new this(_0x460e2c,_0x35bc55);return await _0x2514bc['initPlugins'](),await _0x2514bc['ui']['init'](_0x460e2c),await _0x2514bc['data']['init'](_0x2514bc['config']['get']('initialData')||''),_0x2514bc['fire']('ready'),_0x2514bc;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x3a83bf{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1799a2){function _0x575310(_0x1d5976){return _0x1d5976['map'](_0x35e918=>String['fromCharCode'](_0x35e918))['join']('');}super(_0x1799a2),this['result']='end',_0x1799a2[_0x575310([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x575310([0x76,0x69,0x65,0x77])][_0x575310([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x575310([0x61,0x75,0x74,0x6f]),_0x1799a2[_0x575310([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x575310([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x575310([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x575310([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x575310([0x6f,0x6b])});}}class k extends _0x3a83bf{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x994e15){if(super(_0x994e15),!this['editor']['config']['get']('revisionHistory'))throw new _0x50b2f4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4c86db=>this['_showRevisionViewer']({..._0x4c86db,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1a552a=>this['_closeRevisionViewer'](_0x1a552a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3faf62=>this['_restoreRevision'](_0x3faf62)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5f14e7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5f14e7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3c3041){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3c3041);}['getRevision'](_0x39f733){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x39f733);}['getRevisions'](_0x4df877){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4df877||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x164c3c=this['editor'],_0xcebabc=_0x319fea(_0x164c3c,p),_0x4cc6c0=_0x164c3c['plugins']['get']('RevisionTracker'),_0x725038=_0x164c3c['plugins']['get']('Users')['users'];return _0xcebabc['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xcebabc['lazyRoots'],(_0xcebabc['plugins']['push'](_t,m,R,class extends _0x3a83bf{static get['requires'](){return[m,'Users'];}['init'](){const _0x2bac8f=this['editor']['plugins']['get']('Users');for(const _0xf33b8b of _0x725038)_0xf33b8b['isAnonymous']||_0x2bac8f['getUser'](_0xf33b8b['id'])||_0x2bac8f['addUser'](_0xf33b8b);const _0x1eba19=_0x4cc6c0['repository']['getRevisions']();let _0x6aa664=null;const _0x3a4b70=this['editor']['plugins']['get']('RevisionViewer');_0x3a4b70['adapter']=_0x4cc6c0['adapter'],_0x3a4b70['bind']('isEnabled')['to'](_0x4cc6c0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x164c3c,'isReadOnly',_0x516fa3=>!_0x516fa3);for(const _0x1a8a76 of _0x1eba19){const _0x1e3a14=null===_0x1a8a76['creator'];if(_0x1e3a14&&_0x1a8a76['toVersion']===_0x1a8a76['fromVersion'])continue;const _0x14a830=_0x1a8a76['toJSON']();_0x3a4b70['addRevisionData'](_0x14a830,(_0x2720ea,_0x3a57ef,_0x455c33)=>{if(_0x1e3a14){if(_0x6aa664)_0x6aa664['_update'](_0x2720ea,_0x3a57ef);else{if(!_0x3a57ef){const _0x14e149=_0x455c33['toJSON']();_0x14e149['id']=_0x56f194(),_0x4cc6c0['saveRevision'](_0x14e149,_0x455c33['toVersion'])['then'](_0x3c428f=>{_0x6aa664=_0x3c428f;});}}}else _0x1a8a76['_update'](_0x2720ea,_0x3a57ef);});}}},d),_0xcebabc);}['_enhanceShowRevisionViewerCallback'](){const _0x510180=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x141047=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x10b554=this['editor']['plugins']['get']('Autosave');await _0x10b554['save']();}else await _0x141047['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1ca4bd=this['editor']['plugins']['get']('Dialog');_0x1ca4bd['isOpen']&&_0x1ca4bd['hide']();}const _0xdc9660=this['_getRevisionViewerEditorConfig']();return _0x510180(_0xdc9660)['then'](_0x33f9a4=>{return(this['_viewerEditor']=_0x33f9a4,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'),_0x33f9a4);})['catch'](_0x538859=>(console['error'](_0x538859),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5e9a05=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'](),_0x5e9a05(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x181191=this['editor']['plugins']['get']('Annotations');_0x181191['refreshVisibility'](),_0x181191['refreshPositioning']();}})));}['_showRevisionViewer'](_0x425e37){const _0x557de0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4f163e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3aa030=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3aa030,_0x425e37)['then'](_0x5f323b=>(_0x4f163e['style']['display']='block',_0x557de0['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5f323b));}['_closeRevisionViewer'](_0x45c374){const _0x260d46=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x260d46['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x45c374['destroy']();}async['_restoreRevision'](_0x321d09){const _0x56f63e=this['editor'],_0x37c117=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x17f00d=_0x56f63e['plugins']['get']('RevisionTracker'),_0x1f33a0=_0x56f63e['plugins']['get']('RevisionHistoryUtils'),_0xafc861=_0x37c117['repository']['getRevision'](_0x321d09);let _0x190116,_0x34a03d,_0x431c9c;try{await _0x1f33a0['loadRevisionData'](_0xafc861,this['adapter']),_0x190116=_0x1f33a0['getRevisionDocumentData'](_0xafc861),_0x34a03d=_0x1f33a0['getRevisionRootsAttributes'](_0xafc861);}catch(_0x51f1f3){return void console['error'](_0x51f1f3);}_0x56f63e['model']['change'](_0x277eaa=>{for(const _0x474340 of Array['from'](_0x56f63e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x277eaa['removeMarker'](_0x474340);}),_0x37c117['isReady']=!0x1,_0x56f63e['model']['enqueueChange'](_0x3628cf=>{_0x3628cf['setSelection'](null),_0x3628cf['removeSelectionAttribute'](_0x56f63e['model']['document']['selection']['getAttributeKeys']());const _0x49b0d4=Object['keys'](_0x190116);for(const _0x2557a2 of _0x56f63e['model']['document']['roots'])'$graveyard'!=_0x2557a2['rootName']&&_0x2557a2['isAttached']()&&!_0x49b0d4['includes'](_0x2557a2['rootName'])&&_0x3628cf['detachRoot'](_0x2557a2);for(const _0x5eb36a of _0x49b0d4){let _0x1b268c=_0x56f63e['model']['document']['getRoot'](_0x5eb36a);_0x1b268c&&_0x1b268c['isAttached']()||(_0x1b268c=_0x3628cf['addRoot'](_0x5eb36a));const _0x514318=_0x34a03d[_0x5eb36a],_0x52315d=Object['keys'](_0x514318),_0x4d931a=_0x190116[_0x5eb36a];for(const _0x3466f6 of _0x1b268c['getAttributeKeys']())_0x52315d['includes'](_0x3466f6)||_0x3628cf['removeAttribute'](_0x3466f6,_0x1b268c);for(const _0x1317a3 of _0x52315d)_0x3628cf['setAttribute'](_0x1317a3,_0x34a03d[_0x5eb36a][_0x1317a3],_0x1b268c);_0x3628cf['remove'](_0x3628cf['createRangeIn'](_0x1b268c)),_0x3628cf['insert'](_0x56f63e['data']['parse'](_0x4d931a,_0x1b268c),_0x1b268c,0x0);}});const _0x137fbe=g(_0x56f63e['locale'],'Restored');if(_0xafc861['name'])_0x431c9c=-0x1==_0xafc861['name']['indexOf'](_0x137fbe)?_0x137fbe+':\x20'+_0xafc861['name']:_0xafc861['name'];else _0x431c9c=_0x137fbe+':\x20'+(_0xafc861['createdAt']['toLocaleDateString'](_0x56f63e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xafc861['createdAt']['toLocaleTimeString'](_0x56f63e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x17f00d['saveRevision']({'name':_0x431c9c}),_0x37c117['isReady']=!0x0,_0x56f63e['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,de 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(_0x4518b3){super(_0x4518b3),this['_revisionViewer']=_0x4518b3['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2797bc=this['_revisionsRepository']['_revisions'],_0x3371e1=this['_createRevisionActions'](),_0x56ab26=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x2797bc,_0x3371e1,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',(_0x18c0bd,_0x10b4af)=>{_0x10b4af['revisionViews']['on']('add',(_0x4df2c3,_0x40700b)=>{_0x40700b['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)),_0x56ab26['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4b61c5=this['_revisionsRepository']['getRevision'](0x0);if(_0x4b61c5){const _0x14b277=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4b61c5['id']);this['_revisionViewer']['compare'](_0x4b61c5,_0x14b277);}}['_handleRevisionSelected'](_0x34ec20,_0x7d5e86){const _0x3d06f0=this['_revisionsRepository']['getRevision'](_0x7d5e86['id']),_0x2a5aed=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3d06f0['id']);this['_revisionViewer']['compare'](_0x3d06f0,_0x2a5aed);}['_handleRevisionSetName'](_0x20fe18,_0xba3634){this['_revisionsRepository']['getRevision'](_0xba3634['id'])['setName'](_0xba3634['name']);}['_handleDiffChange'](_0x2cf24a,_0xdb0de6,_0x5cd8e5){const _0x8ec993=this['_revisionsRepository']['getRevisionsInDiff'](_0x5cd8e5);_0x8ec993['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x8ec993),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x8ec993[0x0]));}['_createRevisionActions'](){const _0x1bed00=this['editor'],_0x102267=d['availableRevisionActions'],_0x4eff0a=_0x1bed00['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x4eff0a['length'])return _0x4eff0a['map'](_0x59f59b=>{const _0x489731='string'==typeof _0x59f59b?Object['assign']({},_0x102267[_0x59f59b]):_0x59f59b;return _0x489731['action']=_0x489731['action']['bind'](this,_0x1bed00),_0x489731['isVisible']&&(_0x489731['isVisible']=_0x489731['isVisible']['bind'](this,_0x1bed00)),_0x489731;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x396b3b},_0x84adc3)=>{const _0x3dc8c8=_0x396b3b['get'](m),_0x359b47=_0x3dc8c8['repository'];let _0x19f09e=_0x3dc8c8['diff']['newRevisionId'],_0x5dae69=_0x84adc3['id'];_0x359b47['getIndex'](_0x19f09e)>_0x359b47['getIndex'](_0x5dae69)&&([_0x19f09e,_0x5dae69]=[_0x5dae69,_0x19f09e]),_0x3dc8c8['compare'](_0x19f09e,_0x5dae69);},'isVisible':({plugins:_0x50035d},_0x4f676d)=>{const _0x5a923d=_0x50035d['get'](m);return!(_0x5a923d['repository']['getRevisionsInDiff'](_0x5a923d['diff'])['length']>0x2)&&!_0x4f676d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x48ca9a,{id:_0x4aa750})=>{_0x48ca9a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4aa750);},'isVisible':({plugins:_0x37df41},_0x3939d3)=>!!_0x37df41['get'](m)['repository']['getLaterVisibleRevision'](_0x3939d3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5e8948},{id:_0x4f5207,revisionNameView:_0x330d10})=>{const _0x2cbf54=_0x5e8948['get'](m),_0x31e226=_0x2cbf54['repository']['getEarlierVisibleRevision'](_0x4f5207);_0x2cbf54['compare'](_0x4f5207,_0x31e226),_0x330d10['focus'](),_0x330d10['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3c3e85,_0x3d4b52){super(_0x3c3e85),this['_view']=_0x3d4b52,this['_toolbarConfig']=et(_0x3c3e85['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x1be5f1){const _0x3360f5=this['editor'],_0x5b1c95=this['view'],_0x418e93=_0x3360f5['editing']['view'],_0x4c66da=_0x5b1c95['editable'],_0x13f75d=_0x418e93['document']['getRoot']();_0x4c66da['name']=_0x13f75d['rootName'],_0x5b1c95['render']();const _0x425d4a=_0x4c66da['element'];this['setEditableElement'](_0x4c66da['name'],_0x425d4a),_0x5b1c95['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x418e93['attachDomRoot'](_0x425d4a),this['_elementReplacer']['replace'](_0x1be5f1,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x51b16a=this['view'],_0x4d79a1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4d79a1['detachDomRoot'](_0x51b16a['editable']['name']),_0x51b16a['destroy']();}['_initToolbar'](){const _0x48daf0=this['view'];_0x48daf0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x48daf0['stickyPanel']['limiterElement']=_0x48daf0['element'],_0x48daf0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x48fe17})=>_0x48fe17),_0x48daf0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x48daf0['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x504fad,_0x57ac75,_0x130c35={}){super(_0x504fad),this['stickyPanel']=new ht(_0x504fad),this['toolbar']=new dt(_0x504fad,{'shouldGroupWhenFull':_0x130c35['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x504fad,_0x57ac75);}['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
+ _0x126946(_0x47bc24){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x52f0e5,_0x12e5f1){super(_0x12e5f1),this['sourceElement']=_0x52f0e5,this['model']['document']['createRoot']();const _0x531c80=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x531c80);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x130bdc,_0x43ce1f){const _0x354a2a=new this(_0x130bdc,_0x43ce1f);return await _0x354a2a['initPlugins'](),await _0x354a2a['ui']['init'](_0x130bdc),await _0x354a2a['data']['init'](_0x354a2a['config']['get']('initialData')||''),_0x354a2a['fire']('ready'),_0x354a2a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0xc5caea{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7067fd){function _0x22b76a(_0x4f5afc){return _0x4f5afc['map'](_0xbdfce9=>String['fromCharCode'](_0xbdfce9))['join']('');}super(_0x7067fd),this['result']='end',_0x7067fd[_0x22b76a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22b76a([0x76,0x69,0x65,0x77])][_0x22b76a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22b76a([0x61,0x75,0x74,0x6f]),_0x7067fd[_0x22b76a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x22b76a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22b76a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x22b76a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x22b76a([0x6f,0x6b])});}}class k extends _0xc5caea{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x44df62){if(super(_0x44df62),!this['editor']['config']['get']('revisionHistory'))throw new _0x4cbc7d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x529f26=>this['_showRevisionViewer']({..._0x529f26,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2a5e0f=>this['_closeRevisionViewer'](_0x2a5e0f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xe86f28=>this['_restoreRevision'](_0xe86f28)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x54a62d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x54a62d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x45fba7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x45fba7);}['getRevision'](_0x53be6b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x53be6b);}['getRevisions'](_0x564193){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x564193||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x18c464=this['editor'],_0x5ce86f=_0x3aeb5f(_0x18c464,p),_0x3a1fab=_0x18c464['plugins']['get']('RevisionTracker'),_0x4d6e01=_0x18c464['plugins']['get']('Users')['users'];return _0x5ce86f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5ce86f['lazyRoots'],(_0x5ce86f['plugins']['push'](_t,m,R,class extends _0xc5caea{static get['requires'](){return[m,'Users'];}['init'](){const _0x2ea5b3=this['editor']['plugins']['get']('Users');for(const _0x1a0ce4 of _0x4d6e01)_0x1a0ce4['isAnonymous']||_0x2ea5b3['getUser'](_0x1a0ce4['id'])||_0x2ea5b3['addUser'](_0x1a0ce4);const _0x12a562=_0x3a1fab['repository']['getRevisions']();let _0x3e513f=null;const _0x49bdfd=this['editor']['plugins']['get']('RevisionViewer');_0x49bdfd['adapter']=_0x3a1fab['adapter'],_0x49bdfd['bind']('isEnabled')['to'](_0x3a1fab),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x18c464,'isReadOnly',_0x45c0a1=>!_0x45c0a1);for(const _0x1d4651 of _0x12a562){const _0x595637=null===_0x1d4651['creator'];if(_0x595637&&_0x1d4651['toVersion']===_0x1d4651['fromVersion'])continue;const _0x4fc99f=_0x1d4651['toJSON']();_0x49bdfd['addRevisionData'](_0x4fc99f,(_0x32f05c,_0x39069c,_0x15202d)=>{if(_0x595637){if(_0x3e513f)_0x3e513f['_update'](_0x32f05c,_0x39069c);else{if(!_0x39069c){const _0x2ba97b=_0x15202d['toJSON']();_0x2ba97b['id']=_0x5788bb(),_0x3a1fab['saveRevision'](_0x2ba97b,_0x15202d['toVersion'])['then'](_0x53f2fa=>{_0x3e513f=_0x53f2fa;});}}}else _0x1d4651['_update'](_0x32f05c,_0x39069c);});}}},d),_0x5ce86f);}['_enhanceShowRevisionViewerCallback'](){const _0x193fc3=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x55ec84=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x55ae56=this['editor']['plugins']['get']('Autosave');await _0x55ae56['save']();}else await _0x55ec84['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x57eaeb=this['editor']['plugins']['get']('Dialog');_0x57eaeb['isOpen']&&_0x57eaeb['hide']();}const _0x116155=this['_getRevisionViewerEditorConfig']();return _0x193fc3(_0x116155)['then'](_0x1abfc8=>{return(this['_viewerEditor']=_0x1abfc8,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'),_0x1abfc8);})['catch'](_0x5142eb=>(console['error'](_0x5142eb),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x563bc9=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'](),_0x563bc9(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x560b53=this['editor']['plugins']['get']('Annotations');_0x560b53['refreshVisibility'](),_0x560b53['refreshPositioning']();}})));}['_showRevisionViewer'](_0x37559c){const _0x46c231=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4f3952=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x167013=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x167013,_0x37559c)['then'](_0x1b7740=>(_0x4f3952['style']['display']='block',_0x46c231['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1b7740));}['_closeRevisionViewer'](_0x2ce593){const _0x274a7a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x274a7a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2ce593['destroy']();}async['_restoreRevision'](_0x38260d){const _0x103d53=this['editor'],_0x4c5606=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x50a2b1=_0x103d53['plugins']['get']('RevisionTracker'),_0x4601d4=_0x103d53['plugins']['get']('RevisionHistoryUtils'),_0x336265=_0x4c5606['repository']['getRevision'](_0x38260d);let _0xeb5d55,_0xc41952,_0x16ed31;try{await _0x4601d4['loadRevisionData'](_0x336265,this['adapter']),_0xeb5d55=_0x4601d4['getRevisionDocumentData'](_0x336265),_0xc41952=_0x4601d4['getRevisionRootsAttributes'](_0x336265);}catch(_0x42c08d){return void console['error'](_0x42c08d);}_0x103d53['model']['change'](_0x1257ae=>{for(const _0xeee9ed of Array['from'](_0x103d53['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1257ae['removeMarker'](_0xeee9ed);}),_0x4c5606['isReady']=!0x1,_0x103d53['model']['enqueueChange'](_0x22072f=>{_0x22072f['setSelection'](null),_0x22072f['removeSelectionAttribute'](_0x103d53['model']['document']['selection']['getAttributeKeys']());const _0x4c477c=Object['keys'](_0xeb5d55);for(const _0x5bedfa of _0x103d53['model']['document']['roots'])'$graveyard'!=_0x5bedfa['rootName']&&_0x5bedfa['isAttached']()&&!_0x4c477c['includes'](_0x5bedfa['rootName'])&&_0x22072f['detachRoot'](_0x5bedfa);for(const _0x59447a of _0x4c477c){let _0x3ea17e=_0x103d53['model']['document']['getRoot'](_0x59447a);_0x3ea17e&&_0x3ea17e['isAttached']()||(_0x3ea17e=_0x22072f['addRoot'](_0x59447a));const _0x515f1a=_0xc41952[_0x59447a],_0x197642=Object['keys'](_0x515f1a),_0x5a2bba=_0xeb5d55[_0x59447a];for(const _0x1f764e of _0x3ea17e['getAttributeKeys']())_0x197642['includes'](_0x1f764e)||_0x22072f['removeAttribute'](_0x1f764e,_0x3ea17e);for(const _0x6459e8 of _0x197642)_0x22072f['setAttribute'](_0x6459e8,_0xc41952[_0x59447a][_0x6459e8],_0x3ea17e);_0x22072f['remove'](_0x22072f['createRangeIn'](_0x3ea17e)),_0x22072f['insert'](_0x103d53['data']['parse'](_0x5a2bba,_0x3ea17e),_0x3ea17e,0x0);}});const _0x1b9f4d=g(_0x103d53['locale'],'Restored');if(_0x336265['name'])_0x16ed31=-0x1==_0x336265['name']['indexOf'](_0x1b9f4d)?_0x1b9f4d+':\x20'+_0x336265['name']:_0x336265['name'];else _0x16ed31=_0x1b9f4d+':\x20'+(_0x336265['createdAt']['toLocaleDateString'](_0x103d53['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x336265['createdAt']['toLocaleTimeString'](_0x103d53['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x50a2b1['saveRevision']({'name':_0x16ed31}),_0x4c5606['isReady']=!0x0,_0x103d53['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};