@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250331.0 → 0.0.0-nightly-20250401.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 _0x53a97b,uid as _0x452db2,Collection as _0x4e76a3,logWarning as _0x16fb6c,FocusTracker as _0x2fc1e0,KeystrokeHandler as _0xe7195d,scrollViewportToShowTarget as _0x3597b8,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x3a1fdd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1ce38b,set as _0x223b86,unset as _0x552b71,isEqual as _0x3ab384}from'es-toolkit/compat';import{Plugin as _0x563dd0,PendingActions as _0x11b638,Command as _0x33cfaf,ElementApiMixin as _0x2f40ad,Editor as _0x2f28e2}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x41f456,getMarkerDomElement as _0x53f201,ConfirmMixin as _0xf13c3d,sanitizeEditorConfig as _0x3fbbbc}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x218865,ViewAttributeElement as _0x136355,ViewEmptyElement as _0x13d416,ViewRawElement as _0x5e2576,ViewUIElement as _0x494c1b,ViewDocumentFragment as _0x4da565,ViewText as _0x2f6bae,ViewElement as _0x320b0b,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3d91fe,IconChevronUp as _0x570756,IconChevronDown as _0x4f69eb,IconUndo as _0x33818f,IconUser as _0x59a9b3,IconThreeVerticalDots as _0x48f754}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4eacd9,injectCssTransitionDisabler as ts,submitHandler as _0xa5da1c,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x14068a,ListView as _0xfbca9c,ListItemView as te,ButtonView as _0x3399f1,MenuBarMenuView as _0x3e7c0a,MenuBarMenuListView as _0x3de1b6,MenuBarMenuListItemView as _0x4238f5,MenuBarMenuListItemButtonView as _0x53fba4,ContextualBalloon as _0x5ef071,ToolbarSeparatorView as _0x4ae2bb,IconView as _0x2b05ec,addListToDropdown as _0x26ee0b,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 _0x4d6dc2}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x53a97b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x40f508){super(),this['id']=_0x40f508['id']||_0x452db2(),this['creator']=_0x40f508['creator']||null,this['authors']=_0x40f508['authors']||[],this['diffData']=_0x40f508['diffData']||null,this['toVersion']=_0x40f508['toVersion']||0x0,this['fromVersion']=_0x40f508['fromVersion']||0x0,this['set']('name',_0x40f508['name']||''),this['set']('createdAt',_0x40f508['createdAt']||new Date()),this['set']('attributes',_0x40f508['attributes']||{});}['setName'](_0x1c1c2e){this['_update']({'name':_0x1c1c2e});}['setAttribute'](_0x37b1a6,_0x3b0f71){const _0x4a2504=_0x1ce38b(this['attributes']);_0x223b86(_0x4a2504,_0x37b1a6,_0x3b0f71),this['_update']({'attributes':_0x4a2504});}['removeAttribute'](_0x2029ca){const _0x4195af=_0x1ce38b(this['attributes']);_0x552b71(_0x4195af,_0x2029ca),this['_update']({'attributes':_0x4195af});}['_update'](_0x4ffeb6,_0x2f0e60=!0x1){let _0x177e64=!0x1;const _0x3d564a={'id':this['id']},_0x412627=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1b37cc of _0x412627){const _0x213724=_0x4ffeb6[_0x1b37cc];void 0x0!==_0x213724&&_0x213724!==this[_0x1b37cc]&&(this[_0x1b37cc]=_0x213724,_0x3d564a[_0x1b37cc]=_0x213724,_0x177e64=!0x0);}_0x177e64&&(_0x3d564a['authors']&&(_0x3d564a['authorsIds']=_0x3d564a['authors']['map'](_0x1adec0=>_0x1adec0['id']),delete _0x3d564a['authors']),this['fire']('_update',_0x3d564a,_0x2f0e60));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x18c83a=>_0x18c83a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x563dd0{['_revisions'];static get['requires'](){return[_0x41f456];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x393fb6){super(_0x393fb6),this['_revisions']=new _0x4e76a3();}['afterInit'](){!async function(_0x2f66da){const _0x11791c=_0x40546f([0x6f,0x43,0x4a,0x62,0x75,0x70,0x41,0x69,0x6c,0x4c,0x74,0x64,0x57,0x63,0x6a,0x47,0x54,0x78,0x37,0x48,0x6b,0x30,0x6e,0x79,0x4e,0x4f,0x71,0x68,0x66,0x7a,0x53,0x5a,0x42,0x31,0x58,0x38,0x36,0x61,0x46,0x51,0x67,0x77,0x56,0x35,0x50,0x44,0x39,0x4d,0x65,0x72,0x33,0x55,0x49,0x34,0x59,0x73,0x32,0x4b,0x6d,0x52,0x45,0x76]),_0x50fdba=0xeb829,_0x1f1220=0x6ca290f,_0xe9e303=0x6cd4abf^_0x1f1220,_0x283d4b=window[_0x40546f([0x44,0x61,0x74,0x65])][_0x40546f([0x6e,0x6f,0x77])](),_0x434de0=_0x2f66da[_0x40546f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x391e73=new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dc109=>{_0x434de0[_0x40546f([0x6f,0x6e,0x63,0x65])](_0x40546f([0x72,0x65,0x61,0x64,0x79]),_0x1dc109);}),_0x3c4b62={[_0x40546f([0x6b,0x74,0x79])]:_0x40546f([0x45,0x43]),[_0x40546f([0x75,0x73,0x65])]:_0x40546f([0x73,0x69,0x67]),[_0x40546f([0x63,0x72,0x76])]:_0x40546f([0x50,0x2d,0x32,0x35,0x36]),[_0x40546f([0x78])]:_0x40546f([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]),[_0x40546f([0x79])]:_0x40546f([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]),[_0x40546f([0x61,0x6c,0x67])]:_0x40546f([0x45,0x53,0x32,0x35,0x36])},_0x5f4e91=_0x434de0[_0x40546f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40546f([0x67,0x65,0x74])](_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x290828(){let _0x513cc3,_0x57bbd6=null,_0x184871=null;try{if(_0x5f4e91==_0x40546f([0x47,0x50,0x4c]))return _0x40546f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x513cc3=_0xbdbb45(),!_0x513cc3)return _0x40546f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x513cc3[_0x40546f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x184871=_0x51b6aa(_0x513cc3[_0x40546f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x513cc3[_0x40546f([0x6a,0x74,0x69])])),await _0x12a9c2()?_0x46cda5()?_0x394e24()?_0x40546f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48f59b()?(_0x513cc3[_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40546f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57bbd6=_0x8952d2(_0x40546f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x513cc3[_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40546f([0x74,0x72,0x69,0x61,0x6c])&&(_0x57bbd6=_0x8952d2(_0x40546f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a6e36()):_0x40546f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40546f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40546f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x43a7eb){return _0x40546f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x394e24(){const _0x3dda18=[_0x40546f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40546f([0x74,0x72,0x69,0x61,0x6c])][_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513cc3[_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x283d4b/0x3e8:0xe10*_0xe9e303;return _0x513cc3[_0x40546f([0x65,0x78,0x70])]<_0x3dda18;}function _0x46cda5(){const _0x33af6a=_0x513cc3[_0x40546f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x33af6a)return!0x1;if(_0x33af6a[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40546f([0x2a])))return!0x0;if(_0x33af6a[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40546f([0x52,0x48])))return!0x0;if(_0x33af6a[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40546f([0x52,0x52,0x48]))){if(_0x16246a())return!0x0;if(_0x1d33b0()||_0x345ea8())return!0x0;}return!0x1;}function _0x48f59b(){const _0x403777=_0x513cc3[_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x403777||0x0==_0x403777[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b8863}=new URL(window[_0x40546f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x403777[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8863))return!0x0;const _0x1b1aa2=_0x3b8863[_0x40546f([0x73,0x70,0x6c,0x69,0x74])](_0x40546f([0x2e]));return _0x403777[_0x40546f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6efbbe=>_0x6efbbe[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40546f([0x2a])))[_0x40546f([0x6d,0x61,0x70])](_0x5aabcf=>_0x5aabcf[_0x40546f([0x73,0x70,0x6c,0x69,0x74])](_0x40546f([0x2e])))[_0x40546f([0x73,0x6f,0x6d,0x65])](_0x8e658f=>_0x1b1aa2[_0x40546f([0x65,0x76,0x65,0x72,0x79])]((_0x50b356,_0x560e3d)=>_0x8e658f[_0x560e3d]===_0x50b356||_0x8e658f[_0x560e3d]===_0x40546f([0x2a])));}function _0x3a6e36(){return _0x57bbd6&&_0x184871?new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59b981,_0x1d08b8)=>{_0x57bbd6[_0x40546f([0x74,0x68,0x65,0x6e])](_0x59b981,_0x1d08b8),_0x184871[_0x40546f([0x74,0x68,0x65,0x6e])](_0x2399a2=>{_0x2399a2!=_0x40546f([0x56,0x61,0x6c,0x69,0x64])&&_0x59b981(_0x2399a2);},_0x1d08b8);}):_0x57bbd6||_0x184871||_0x40546f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51b6aa(_0xcba329,_0x5eadb3){return new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x411d11=>{if(_0x5b1646())return _0x411d11(_0x40546f([0x56,0x61,0x6c,0x69,0x64]));_0x30d9ed(),_0x434de0[_0x40546f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40546f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3566c5=!0x1;const _0x58fd10=_0x452db2();function _0x59d8ec(_0x5e0dbd){return!!_0x5e0dbd&&(typeof _0x5e0dbd===_0x40546f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e0dbd===_0x40546f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e0dbd[_0x40546f([0x74,0x68,0x65,0x6e])]===_0x40546f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e0dbd[_0x40546f([0x63,0x61,0x74,0x63,0x68])]===_0x40546f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x177e62(_0x4202c9){_0x2a80d2(_0x4202c9)[_0x40546f([0x74,0x68,0x65,0x6e])](_0x5d01e4=>{if(!_0x5d01e4||_0x5d01e4[_0x40546f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40546f([0x6f,0x6b]))return _0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x136fe8(_0x217467(_0x58fd10+_0x5eadb3))!=_0x5d01e4[_0x40546f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40546f([0x56,0x61,0x6c,0x69,0x64]);})[_0x40546f([0x74,0x68,0x65,0x6e])](_0x44081c=>(_0x217086(),_0x44081c),()=>{const _0x265208=_0x57a440();return null==_0x265208?(_0x217086(),_0x40546f([0x56,0x61,0x6c,0x69,0x64])):_0x40546f(_0x283d4b-_0x265208>(0x22c6ad0f^_0x1f1220)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40546f([0x74,0x68,0x65,0x6e])](_0x411d11)[_0x40546f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x411d11(_0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x230a6c=0x6fcc78f^_0x1f1220;function _0x217086(){const _0x79ee88=_0x40546f([0x6c,0x6c,0x63,0x74,0x2d])+_0x136fe8(_0x217467(_0xcba329)),_0x4b0a1c=_0x41aca3(_0x136fe8(window[_0x40546f([0x4d,0x61,0x74,0x68])][_0x40546f([0x63,0x65,0x69,0x6c])](_0x283d4b/_0x230a6c)));window[_0x40546f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40546f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x79ee88,_0x4b0a1c);}function _0x57a440(){const _0xf5159f=_0x40546f([0x6c,0x6c,0x63,0x74,0x2d])+_0x136fe8(_0x217467(_0xcba329)),_0x5e67be=window[_0x40546f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40546f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf5159f);return _0x5e67be?window[_0x40546f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41aca3(_0x5e67be),0x10)*_0x230a6c:null;}function _0x2a80d2(_0x3e848a){return new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x807e2f,_0xffd20b)=>{_0x3e848a[_0x40546f([0x74,0x68,0x65,0x6e])](_0x807e2f,_0xffd20b),window[_0x40546f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xffd20b,0x6cbfdcf^_0x1f1220);});}}_0x434de0[_0x40546f([0x6f,0x6e])](_0x40546f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51bb08,_0x34bbc0)=>{if(_0x34bbc0[0x0]!=_0xcba329)return _0x411d11(_0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34bbc0[0x1]={..._0x34bbc0[0x1],[_0x40546f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58fd10};},{[_0x40546f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40546f([0x68,0x69,0x67,0x68])}),_0x434de0[_0x40546f([0x6f,0x6e])](_0x40546f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fefc4=>{_0x59d8ec(_0x1fefc4[_0x40546f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3566c5=!0x0,_0x177e62(_0x1fefc4[_0x40546f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40546f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40546f([0x6c,0x6f,0x77])}),_0x391e73[_0x40546f([0x74,0x68,0x65,0x6e])](()=>{_0x3566c5||_0x411d11(_0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b1646(){return _0x434de0[_0x40546f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40546f([0x76,0x69,0x65,0x77])][_0x40546f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40546f([0x61,0x75,0x74,0x6f]);}function _0x30d9ed(){_0x434de0[_0x40546f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40546f([0x76,0x69,0x65,0x77])][_0x40546f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40546f([0x61,0x75,0x74,0x6f]);}}function _0x8952d2(_0x3ff8c6){const _0x18d98f=[new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0dd7=>setTimeout(_0x1b0dd7,0x6c317c3^_0x1f1220)),_0x391e73[_0x40546f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5904a8=>{const _0x127ff0=0x6ca2908^_0x1f1220,_0x31acb5=_0x2f66da[_0x40546f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x29e780(){_0x31acb5[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x127ff0&&_0x5904a8();}_0x29e780(),_0x31acb5[_0x40546f([0x6f,0x6e])](_0x40546f([0x61,0x64,0x64]),_0x29e780);})),new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28e63e=>{function _0x58121c(){for(const _0x4013b9 in window)if(window[_0x40546f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x40546f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4013b9))&&window[_0x4013b9]==_0x50fdba)return _0x28e63e();_0x434de0[_0x40546f([0x73,0x74,0x61,0x74,0x65])]!=_0x40546f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x40546f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58121c,0x6ca3a87^_0x1f1220);}_0x3b5327(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x58121c();})];return window[_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40546f([0x72,0x61,0x63,0x65])](_0x18d98f)[_0x40546f([0x74,0x68,0x65,0x6e])](()=>_0x3ff8c6);}async function _0x205c2e(){if(await _0x391e73,_0x3b5327(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x13ef19=_0x2f66da[_0x40546f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xa33464=_0x2f66da[_0x40546f([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])](_0x13ef19[_0x40546f([0x69,0x64])]),_0x8eb637=_0x1ed708(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x8eb637[_0x40546f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x13ef19['id'],_0xa33464?_0xa33464['id']:null,!0x0),_0x8eb637[_0x40546f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x40546f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x8eb637[_0x40546f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x8eb637[_0x40546f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5d8e18,void(_0x8eb637[_0x40546f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5d8e18);}if(_0x3b5327(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x42f8c5=_0x1ed708(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x42f8c5[_0x40546f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x40546f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x42f8c5[_0x40546f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x42f8c5[_0x40546f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5d8e18,_0x42f8c5[_0x40546f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5d8e18;}_0x434de0[_0x40546f([0x6d,0x6f,0x64,0x65,0x6c])][_0x40546f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d8e18,_0x434de0[_0x40546f([0x6d,0x6f,0x64,0x65,0x6c])][_0x40546f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d8e18,_0x434de0[_0x40546f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40546f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16246a(){return _0x3b5327(_0x40546f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ed708(_0x40546f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x40546f([0x73,0x74,0x61,0x74,0x65])]==_0x40546f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1d33b0(){return _0x3b5327(_0x40546f([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 _0x345ea8(){return _0x3b5327(_0x40546f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x141bed(_0x12edbb){const _0x385d9f=_0x51dc16();_0x434de0[_0x385d9f]=_0x40546f([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])+_0x12edbb,_0x12edbb[_0x40546f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x40546f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x51dc16()]=_0x50fdba),_0x12edbb!=_0x40546f([0x56,0x61,0x6c,0x69,0x64])&&_0x205c2e();}function _0x51dc16(){const _0x5ad5b2=window[_0x40546f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40546f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40546f([0x6e,0x6f,0x77])]())[_0x40546f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40546f([0x2e]),'');let _0x32777b=_0x40546f([0x6f]);for(let _0x3b0e50=0x0;_0x3b0e50<_0x5ad5b2[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b0e50+=0x2){let _0x32f68e=window[_0x40546f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ad5b2[_0x40546f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b0e50,_0x3b0e50+0x2));_0x32f68e>=_0x11791c[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32f68e-=_0x11791c[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32777b+=_0x11791c[_0x32f68e];}return _0x32777b;}function _0xbdbb45(){const _0x423dae=_0x5f4e91[_0x40546f([0x73,0x70,0x6c,0x69,0x74])](_0x40546f([0x2e]));if(0x3!=_0x423dae[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c10b3(_0x423dae[0x1]);function _0x2c10b3(_0x144f9e){const _0x3e86f3=_0x33e8f2(_0x144f9e);return _0x3e86f3&&_0x1aa901()?_0x3e86f3:null;function _0x1aa901(){const _0x6b190c=_0x3e86f3[_0x40546f([0x6a,0x74,0x69])],_0xd3fffc=window[_0x40546f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6b190c[_0x40546f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6b190c[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2bd654={..._0x3e86f3,[_0x40546f([0x6a,0x74,0x69])]:_0x6b190c[_0x40546f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6b190c[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2bd654[_0x40546f([0x76,0x63])],_0x217467(_0x2bd654)==_0xd3fffc;}}}async function _0x12a9c2(){let _0x58c9ef=!0x0;try{const _0x2b1b51=_0x5f4e91[_0x40546f([0x73,0x70,0x6c,0x69,0x74])](_0x40546f([0x2e])),[_0x4fd994,_0x2b32fc,_0x2ce4f0]=_0x2b1b51;return _0x54f4c8(_0x4fd994),await _0x42fc2e(_0x4fd994,_0x2b32fc,_0x2ce4f0),_0x58c9ef;}catch(_0x68321f){return!0x1;}function _0x54f4c8(_0x1bd79a){const _0xff27a0=_0x33e8f2(_0x1bd79a);_0xff27a0&&_0xff27a0[_0x40546f([0x61,0x6c,0x67])]==_0x40546f([0x45,0x53,0x32,0x35,0x36])||(_0x58c9ef=!0x1);}async function _0x42fc2e(_0x51175e,_0x322c2d,_0x3f0d67){const _0x3084a4=window[_0x40546f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40546f([0x66,0x72,0x6f,0x6d])](_0x4bd58f(_0x3f0d67),_0x45d1d6=>_0x45d1d6[_0x40546f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b1369=new window[(_0x40546f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40546f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51175e+_0x40546f([0x2e])+_0x322c2d),_0x499e76=window[_0x40546f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40546f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x499e76)return;const _0x39df2f=await _0x499e76[_0x40546f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40546f([0x6a,0x77,0x6b]),_0x3c4b62,{[_0x40546f([0x6e,0x61,0x6d,0x65])]:_0x40546f([0x45,0x43,0x44,0x53,0x41]),[_0x40546f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40546f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40546f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x499e76[_0x40546f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40546f([0x6e,0x61,0x6d,0x65])]:_0x40546f([0x45,0x43,0x44,0x53,0x41]),[_0x40546f([0x68,0x61,0x73,0x68])]:{[_0x40546f([0x6e,0x61,0x6d,0x65])]:_0x40546f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39df2f,_0x3084a4,_0x5b1369)||(_0x58c9ef=!0x1);}}function _0x33e8f2(_0x43e455){return _0x43e455[_0x40546f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40546f([0x65,0x79]))?JSON[_0x40546f([0x70,0x61,0x72,0x73,0x65])](_0x4bd58f(_0x43e455)):null;}function _0x4bd58f(_0x9c4505){return window[_0x40546f([0x61,0x74,0x6f,0x62])](_0x9c4505[_0x40546f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40546f([0x2b]))[_0x40546f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40546f([0x2f])));}function _0x217467(_0x963dd9){let _0x217b19=0x1505;function _0x5f340a(_0x1f0ed0){for(let _0x4b08ce=0x0;_0x4b08ce<_0x1f0ed0[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b08ce++){const _0x22ec8c=_0x1f0ed0[_0x40546f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b08ce);_0x217b19=(_0x217b19<<0x5)+_0x217b19+_0x22ec8c,_0x217b19&=_0x217b19;}}function _0x3f2dff(_0x27bd3a){Array[_0x40546f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27bd3a)?_0x27bd3a[_0x40546f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f2dff):_0x27bd3a&&typeof _0x27bd3a==_0x40546f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40546f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27bd3a)[_0x40546f([0x73,0x6f,0x72,0x74])]()[_0x40546f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x460a0d,_0x42431c])=>{_0x5f340a(_0x460a0d),_0x3f2dff(_0x42431c);}):_0x5f340a(window[_0x40546f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27bd3a));}return _0x3f2dff(_0x963dd9),_0x217b19>>>0x0;}function _0x136fe8(_0x36052d){return _0x36052d[_0x40546f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40546f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40546f([0x30]));}function _0x41aca3(_0x23420a){return _0x23420a[_0x40546f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40546f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40546f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b5327(_0x397811){return _0x434de0[_0x40546f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40546f([0x68,0x61,0x73])](_0x397811);}function _0x1ed708(_0xcf46ef){return _0x434de0[_0x40546f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40546f([0x67,0x65,0x74])](_0xcf46ef);}function _0x5d8e18(){}function _0x40546f(_0x4205d0){return _0x4205d0['map'](_0x5a30f8=>String['fromCharCode'](_0x5a30f8))['join']('');}_0x141bed(await _0x290828());}(this);}['createRevision'](_0x2f9b9f){const _0x831a4a=this['editor']['plugins']['get']('Users');return new h({'id':_0x2f9b9f['id'],'name':_0x2f9b9f['name'],'creator':_0x2f9b9f['creatorId']?_0x831a4a['getUser'](_0x2f9b9f['creatorId']):null,'diffData':_0x2f9b9f['diffData']||_0x2f9b9f['data'],'authors':_0x2f9b9f['authorsIds']['map'](_0x31a0fb=>_0x831a4a['getUser'](_0x31a0fb)),'createdAt':new Date(_0x2f9b9f['createdAt']),'attributes':_0x2f9b9f['attributes'],'fromVersion':_0x2f9b9f['fromVersion'],'toVersion':_0x2f9b9f['toVersion']});}['addRevision'](_0x834051,_0x1ee9e9=0x0){this['_revisions']['add'](_0x834051,_0x1ee9e9);}['getRevision'](_0xa3cacc){return this['_revisions']['get'](_0xa3cacc);}['getRevisions'](_0x5c8802={'toJSON':!0x1}){const _0xd8c530=Array['from'](this['_revisions']);return _0xd8c530['reverse'](),_0x5c8802['toJSON']?_0xd8c530['map'](_0x5a0e4f=>_0x5a0e4f['toJSON']()):_0xd8c530;}['getIndex'](_0x1dc11f){return this['_revisions']['getIndex'](_0x1dc11f);}['getEarlierVisibleRevision'](_0x212a69){const [,_0x1f60bc]=this['getRevisionsIterator'](_0x212a69,{'direction':'earlier'});return _0x1f60bc;}['getLaterVisibleRevision'](_0x4b1ea4){const [,_0x1166f7]=this['getRevisionsIterator'](_0x4b1ea4,{'direction':'later'});return _0x1166f7;}['getRevisionsInDiff'](_0x2775a7){const _0x4981da=[];for(const _0x436cf3 of this['getRevisionsIterator'](_0x2775a7['newRevisionId']))if(_0x4981da['push'](_0x436cf3),_0x436cf3['id']===_0x2775a7['oldRevisionId'])break;return _0x4981da;}*['getRevisionsIterator'](_0x1cc87e,{direction:_0x43c699='earlier',filter:_0x5dee12=()=>!0x0}={}){const _0x4a6872='earlier'===_0x43c699?0x1:-0x1;let _0x434132=this['_revisions']['get'](_0x1cc87e),_0x4cdf0f=this['getIndex'](_0x434132);for(yield _0x434132;_0x434132;){if(_0x4cdf0f+=_0x4a6872,_0x434132=this['getRevision'](_0x4cdf0f),!_0x434132)return;_0x5dee12(_0x434132)&&(yield _0x434132);}}}class V extends _0x563dd0{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x218865,'c'],[_0x136355,'a'],[_0x13d416,'e'],[_0x5e2576,'r'],[_0x494c1b,'u']]);['_typeCharToViewClass']=new Map([['c',_0x218865],['a',_0x136355],['e',_0x13d416],['r',_0x5e2576],['u',_0x494c1b]]);async['loadRevisionData'](_0x1db305,_0x16ac7b){if(_0x1db305['diffData']||!_0x16ac7b)return;const _0x496de3=this['editor']['config']['get']('collaboration.channelId'),_0x2c69ef=await _0x16ac7b['getRevision']({'channelId':_0x496de3,'revisionId':_0x1db305['id']});_0x1db305['diffData']=_0x2c69ef['diffData'];}['getRevisionDocumentData'](_0x548887){const _0x1daddb={};for(const _0x511711 in _0x548887['diffData']){if(_0x548887['diffData'][_0x511711]['attachChange']&&!_0x548887['diffData'][_0x511711]['attachChange']['isAttached'])continue;const _0xadf09a=this['_removeRevisionMarkers'](JSON['parse'](_0x548887['diffData'][_0x511711]['insertions'])),_0x5a5071=this['editor']['editing']['view']['document'],_0x40deac=new _0x4da565(_0x5a5071,_0xadf09a['map'](_0x59deb7=>this['_getViewFromDiffObj'](_0x59deb7,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1daddb[_0x511711]=this['editor']['data']['processor']['toData'](_0x40deac),this['editor']['data']['processor']['useFillerType']('default');}return _0x1daddb;}['getRevisionRootsAttributes'](_0x50a6d7){const _0x13c01e={};for(const _0x433c9e in _0x50a6d7['diffData'])_0x50a6d7['diffData'][_0x433c9e]['attachChange']&&!_0x50a6d7['diffData'][_0x433c9e]['attachChange']['isAttached']||(_0x13c01e[_0x433c9e]=_0x50a6d7['diffData'][_0x433c9e]['attributesAfter']||{});return _0x13c01e;}['_getTypeCharForViewElement'](_0x35bb3c){return this['_viewClassToTypeChar']['get'](_0x35bb3c['constructor']);}['_getViewFromDiffObj'](_0x208e7f,_0x49e992){const _0x4170d8=this['editor']['editing']['view']['document'];if('string'==typeof _0x208e7f)return new _0x2f6bae(_0x4170d8,_0x208e7f);{let _0x2fbfe0,_0x1a42c5;_0x1a42c5='u'==_0x208e7f['type']||'r'==_0x208e7f['type']?[]:_0x208e7f['children']['map'](_0x495af0=>this['_getViewFromDiffObj'](_0x495af0,_0x49e992));const _0x1d476b=this['_typeCharToViewClass']['get'](_0x208e7f['type'])||_0x320b0b,_0x14335e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2fbfe0=new _0x1d476b(_0x4170d8,_0x208e7f['name'],_0x208e7f['attributes'],_0x1a42c5),'u'==_0x208e7f['type']){const _0x96085f=_0x208e7f['children'][0x0];if(_0x2fbfe0['render']=function(_0x48e66b){const _0x5202c1=_0x48e66b['createElement']('div');return _0x5202c1['innerHTML']=_0x96085f,_0x5202c1['childNodes'][0x0];},_0x49e992){const _0x3aee59=new _0x4da565(_0x4170d8);_0x3aee59['_appendChild'](_0x2fbfe0);const _0x13c2d5=Array['from'](_0x14335e['viewChildrenToDom'](_0x3aee59,{'bind':!0x1})),_0x1047df=_0x14335e['domDocument']['createElement']('div');_0x1047df['append'](..._0x13c2d5),_0x2fbfe0=Array['from'](_0x14335e['domChildrenToView'](_0x1047df))[0x0];}}else{if('r'==_0x208e7f['type']){const _0x579359=_0x208e7f['children'][0x0];if(_0x2fbfe0['render']=function(_0x2fff4d){_0x2fff4d['innerHTML']=_0x579359;},_0x49e992){const _0x584ac5=new _0x4da565(_0x4170d8);_0x584ac5['_appendChild'](_0x2fbfe0);const _0x4afb00=Array['from'](_0x14335e['viewChildrenToDom'](_0x584ac5,{'bind':!0x1})),_0x162c0f=_0x14335e['domDocument']['createElement']('div');_0x162c0f['append'](..._0x4afb00);const _0x202db4=Array['from'](_0x14335e['domChildrenToView'](_0x162c0f));_0x202db4['length']>0x1?_0x2fbfe0['_appendChild'](_0x202db4):_0x2fbfe0=_0x202db4[0x0];}}}if(_0x208e7f['customProperties']){for(const [_0x598a26,_0x3ca018]of _0x208e7f['customProperties'])_0x2fbfe0['_setCustomProperty'](_0x598a26,_0x3ca018);}const _0x2f1b9e=_0x208e7f['fillerOffset']||null;return _0x2fbfe0['getFillerOffset']=()=>_0x2f1b9e,_0x2fbfe0;}}['_makeModelFromViewString'](_0x49745c){const _0x23e566=JSON['parse'](_0x49745c),_0x52ce3d=this['editor']['editing']['view']['document'],_0xe09da8=new _0x4da565(_0x52ce3d,_0x23e566['map'](_0x1c1e4c=>this['_getViewFromDiffObj'](_0x1c1e4c,!0x0)));return this['editor']['data']['toModel'](_0xe09da8);}['_removeRevisionMarkers'](_0x2f4f5e){return(_0x2f4f5e=_0x2f4f5e['filter'](_0x1c79ff=>!_0x1c79ff['name']||'revision-start'!==_0x1c79ff['name']&&'revision-end'!==_0x1c79ff['name']))['forEach'](_0x271c2a=>{'string'!=typeof _0x271c2a&&(_0x271c2a['children']=this['_removeRevisionMarkers'](_0x271c2a['children']),_0x271c2a['attributes']=_0x271c2a['attributes']['filter'](_0x30ac10=>!_0x30ac10[0x0]['startsWith']('data-revision-')));}),_0x2f4f5e;}}function g(_0x2e4012,_0x4cf80e,_0x440203){const t=_0x2e4012['t'];switch(_0x4cf80e){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'},_0x440203);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x440203);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 _0x563dd0{['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[_0x41f456,I,V,_0x11b638];}constructor(_0x467630){super(_0x467630),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 _0x374059=_0x452db2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x374059},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 _0x3b3a64=this['repository']['getRevision'](0x0),_0x3539de=_0x3b3a64&&null===_0x3b3a64['creator']?_0x3b3a64:null;if(this['_continueCurrentRevision']=!!_0x3539de&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xd66d8=this['_source']['getCurrentRevisionId'](),_0x55b241=this['repository']['getRevision'](_0xd66d8);if(_0x55b241)this['_startingVersion']=_0x55b241['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x53ceee=this['_source']['history']['_operations']['find'](_0xdf332e=>!_0xdf332e['_isInit']),_0x1b66d5=_0x53ceee?_0x53ceee['baseVersion']:this['_source']['history']['version'];_0x3b3a64?(_0x3b3a64['toVersion']<_0x1b66d5&&_0x3b3a64['_update']({'toVersion':_0x1b66d5}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3539de['id'],this['_startingVersion']=_0x3539de['fromVersion']):(this['_startingVersion']=_0x3b3a64['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1b66d5,this['_continueCurrentRevision']=!0x1);}}else _0x3539de&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3539de['toVersion'],this['editor']['model']['document']['history']['version']),_0x3539de['fromVersion']===_0x3539de['toVersion']?(0x0!==_0x3539de['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3539de['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3539de['id'],this['_startingVersion']=_0x3539de['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',_0x1f7392=>!_0x1f7392),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5143d5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf3f6de;for(const _0x160eac in _0x5143d5){const _0x548802=_0x160eac,_0x2eb7be=_0x5143d5[_0x548802];if('revisionHistoryLicenseKeyValid'==_0x2eb7be||'revisionHistoryLicenseKeyInvalid'==_0x2eb7be||'revisionHistoryLicenseKeyExpired'==_0x2eb7be||'revisionHistoryLicenseKeyDomainLimit'==_0x2eb7be||'revisionHistoryLicenseKeyNotAllowed'==_0x2eb7be||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2eb7be||'revisionHistoryLicenseKeyTrialLimit'==_0x2eb7be||'revisionHistoryLicenseKeyUsageLimit'==_0x2eb7be){delete _0x5143d5[_0x548802],_0xf3f6de=_0x2eb7be,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xf3f6de&&_0x5143d5['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xf3f6de&&_0x5143d5['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xf3f6de&&_0x5143d5['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xf3f6de&&_0x5143d5['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xf3f6de&&_0x5143d5['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xf3f6de&&_0x5143d5['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xf3f6de&&_0x5143d5['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x91c768=this['repository']['getRevision'](0x0),_0x1504c5=await this['getRevisionDocumentData'](_0x91c768),_0x933068=await this['getRevisionRootsAttributes'](_0x91c768);this['_replaceEditorDataWithRevisionData'](_0x1504c5,_0x933068);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3192dc){this['_source']=_0x3192dc;}async['update'](){const _0xe088ab=await this['_source']['getLatestVersion']();if(_0xe088ab>this['currentRevision']['toVersion']){await this['_loadState']();const _0x52b246=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xe088ab});_0x52b246['authors']=_0x52b246['authorsIds']['map'](_0x2ccfcc=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ccfcc)),this['currentRevision']['_update'](_0x52b246);}}async['saveRevision'](_0x317a12={},_0x1fa897=null){const _0xb57fcd=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1fa897>this['currentRevision']['toVersion']&&(_0x1fa897=null),null===_0x1fa897&&(_0x1fa897=await this['_source']['getLatestVersion']());const _0x234ca4=this['_getFromVersion'](_0x1fa897),_0x5e75c8=this['buildRevisionData']({'from':_0x234ca4,'to':_0x1fa897});if(this['currentRevision']['toVersion']<_0x1fa897){const _0x200886=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1fa897,'to':_0x1fa897});_0x200886['authors']=[],_0x200886['authorsIds']=[],_0x200886['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x200886,!0x0),delete _0x200886['authors'],_0xb57fcd['push'](_0x200886);}_0x317a12['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x317a12['name']=_0x317a12['name']||null,_0x317a12['id']=_0x317a12['id']||_0x452db2(),_0x317a12={..._0x317a12,..._0x5e75c8};const _0x279d8c=this['addRevisionData'](_0x317a12);_0xb57fcd['push'](_0x317a12);const _0x23d5e7=this['repository']['getIndex'](_0x279d8c);if(0x0!==_0x23d5e7){const _0x44c534=this['repository']['getRevision'](_0x23d5e7-0x1);if(_0x44c534['fromVersion']!==_0x1fa897){const _0x55b000=this['_revisionDataBuilder']['getData'](_0x1fa897,_0x44c534['toVersion']),_0x1ae479={'id':_0x44c534['id'],'diffData':_0x55b000['diffData'],'authorsIds':_0x55b000['authorsIds'],'authors':_0x55b000['authorsIds']['map'](_0x4b1b32=>this['editor']['plugins']['get']('Users')['getUser'](_0x4b1b32)),'fromVersion':_0x1fa897};_0x44c534===this['currentRevision']&&(_0x1ae479['createdAt']=new Date(_0x317a12['createdAt']['getTime']()+0xa)),_0x44c534['_update'](_0x1ae479,!0x0),delete _0x1ae479['authors'],_0xb57fcd['push'](_0x1ae479);}}if(this['adapter']){for(const _0x36bc6f of _0xb57fcd)this['_bufferUpdate'](_0x36bc6f['id'],_0x36bc6f,!0x0);this['sendBufferedUpdates']();}return _0x279d8c;}['addRevisionData'](_0x22713c){const _0x32b8b3=this['repository']['createRevision'](_0x22713c);return this['adapter']&&_0x32b8b3['on']('_update',(_0x51aaba,_0x5eeaa0,_0x204807)=>{_0x204807||(this['_bufferUpdate'](_0x5eeaa0['id'],_0x5eeaa0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x32b8b3,this['_findInsertionIndex'](_0x32b8b3)),_0x32b8b3;}async['getRevisionDocumentData'](_0x50580c){return await this['_utils']['loadRevisionData'](_0x50580c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x50580c);}async['getRevisionRootsAttributes'](_0xa5c8fd){return await this['_utils']['loadRevisionData'](_0xa5c8fd,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xa5c8fd);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3bea1a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2c8055=0x0;_0x2c8055<_0x3bea1a['length'];_0x2c8055++){const _0x4b4009=_0x3bea1a[_0x2c8055];let _0x5f3d32=!0x1;for(const _0x13a0bf of Object['keys'](_0x4b4009))void 0x0===_0x4b4009[_0x13a0bf]?delete _0x4b4009[_0x13a0bf]:'id'!==_0x13a0bf&&(_0x5f3d32=!0x0);_0x5f3d32||(_0x3bea1a[_0x2c8055]=null);}if(_0x3bea1a=_0x3bea1a['filter'](_0x1e079a=>null!==_0x1e079a),!_0x3bea1a['length'])return;for(let _0x4cad34=0x0;_0x4cad34<_0x3bea1a['length'];_0x4cad34++){const _0x501941=_0x3bea1a[_0x4cad34];void 0x0!==_0x501941['fromVersion']&&void 0x0===_0x501941['toVersion']&&(_0x501941['toVersion']=this['repository']['getRevision'](_0x501941['id'])['toVersion']),void 0x0!==_0x501941['toVersion']&&void 0x0===_0x501941['fromVersion']&&(_0x501941['fromVersion']=this['repository']['getRevision'](_0x501941['id'])['fromVersion']);}const _0x38eb03=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3bea1a,_0x38eb03)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2decfd=>{if(_0x2decfd){for(const _0x43b8a5 of _0x2decfd)this['setRevisionData']({'id':_0x43b8a5['id'],'createdAt':_0x43b8a5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x54812c=null,from:_0x123478=null,to:_0x4c823d=null}){_0x123478=null!==_0x123478?_0x123478:_0x54812c['fromVersion'],_0x4c823d=null!==_0x4c823d?_0x4c823d:_0x54812c['toVersion'];const _0x1169ba=this['_revisionDataBuilder']['getData'](_0x123478,_0x4c823d),_0x4a3bd5={'diffData':_0x1169ba['diffData'],'authorsIds':_0x1169ba['authorsIds'],'fromVersion':_0x123478,'toVersion':_0x4c823d};if(!_0x54812c||_0x4c823d!==_0x54812c['toVersion']){const _0x2006e9=_0x4c823d-0x1,_0x216ea9=this['_source']['history']['getOperation'](_0x2006e9);_0x4a3bd5['createdAt']=_0x216ea9&&_0x216ea9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x123478===this['_loadedStateData']['fromVersion']){for(const _0x57236b of this['_loadedStateData']['authors'])_0x4a3bd5['authorsIds']['includes'](_0x57236b['id'])||_0x4a3bd5['authorsIds']['push'](_0x57236b['id']);}return _0x4a3bd5;}['_bufferUpdate'](_0x409f8,_0x2de590,_0x187d5a){if(this['_bufferedUpdates']['has'](_0x409f8)){const _0x208159=this['_bufferedUpdates']['get'](_0x409f8);_0x2de590=_0x187d5a?{..._0x208159,..._0x2de590}:{..._0x2de590,..._0x208159};}this['_bufferedUpdates']['set'](_0x409f8,_0x2de590);}['setRevisionData'](_0x5c5559){const _0x4c4f9c=this['repository']['getRevision'](_0x5c5559['id']);if(_0x5c5559['createdAt']&&(_0x5c5559['createdAt']=new Date(_0x5c5559['createdAt'])),_0x5c5559['authorsIds']){const _0x293b1e=this['editor']['plugins']['get']('Users');_0x5c5559['authors']=_0x5c5559['authorsIds']['map'](_0x197118=>_0x293b1e['getUser'](_0x197118));}_0x4c4f9c['_update'](_0x5c5559,!0x0);}['_createInitialRevision'](_0x5e4f0c){const _0x247bd9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x247bd9)this['_initialRevisionId']=_0x247bd9['id'];else{const _0x5d14be=!this['editor']['model']['document']['roots']['find'](_0x3b7f97=>this['editor']['model']['hasContent'](_0x3b7f97)),_0x3e59c6=this['editor']['plugins']['get']('Users')['me']['id'],_0x48f304=g(this['editor']['locale'],_0x5d14be?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5e4f0c,'to':_0x5e4f0c,'id':this['_initialRevisionId'],'name':_0x48f304,'creatorId':_0x3e59c6});}}['_createCurrentRevision'](_0x4ecdfd){const _0x124aa8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x124aa8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4ecdfd,'to':_0x4ecdfd,'id':_0x124aa8,'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'](_0x13fe97,_0x8e52b8){let _0xe7cf19=this['editor']['config']['get']('initialData'),_0x87512a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xe7cf19){_0xe7cf19={};for(const _0x452f41 of this['editor']['model']['document']['getRootNames']())_0xe7cf19[_0x452f41]='';}if('string'==typeof _0xe7cf19&&(_0xe7cf19={'main':_0xe7cf19}),void 0x0===_0x87512a){_0x87512a={};for(const _0x4b6bd3 of this['editor']['model']['document']['getRootNames']())_0x87512a[_0x4b6bd3]={};}let _0x124671=!0x1;const _0x2542ba=Object['keys'](_0xe7cf19),_0x490901=Object['keys'](_0x13fe97);for(const _0x44c97c of _0x2542ba){if(_0xe7cf19[_0x44c97c]!==_0x13fe97[_0x44c97c]&&''!==_0xe7cf19[_0x44c97c]['trim']()){_0x124671=!0x0;break;}if(!_0x3ab384(_0x87512a[_0x44c97c],_0x8e52b8[_0x44c97c])&&Object['keys'](_0x87512a[_0x44c97c])['length']>0x0){_0x124671=!0x0;break;}}_0x124671||(_0x124671=_0x490901['some'](_0x37aaef=>!this['editor']['model']['document']['getRoot'](_0x37aaef))),_0x124671&&_0x16fb6c('editor-initial-data-replaced-with-revision-data',{'editorData':_0xe7cf19,'editorRootsAttributes':_0x87512a,'revisionData':_0x13fe97,'revisionRootsAttributes':_0x8e52b8}),this['editor']['config']['set']('initialData',_0x13fe97),this['editor']['config']['set']('rootsAttributes',_0x8e52b8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x562f5d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x562f5d['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x16f2ba){const _0x14830b=this['repository']['getRevisions']();_0x14830b['reverse']();let _0x57df18=0x0;for(;_0x57df18<_0x14830b['length'];){const _0x15f893=_0x14830b[_0x57df18];if(_0x15f893===this['currentRevision']){_0x57df18++;continue;}if(_0x15f893['id']===this['_initialRevisionId'])break;const _0x4c7ad9=_0x16f2ba['toVersion']-_0x15f893['toVersion']||_0x16f2ba['fromVersion']-_0x15f893['fromVersion'];if(_0x4c7ad9>0x0)break;if(_0x4c7ad9<0x0)_0x57df18++;else{if(!_0x16f2ba['creator']&&_0x15f893['creator'])break;if(_0x15f893['creator']||!_0x16f2ba['creator']){if(_0x16f2ba['createdAt']>_0x15f893['createdAt'])break;_0x57df18++;}else _0x57df18++;}}return _0x57df18;}['_getFromVersion'](_0x50026e){const _0x4c0b6d=this['repository']['getRevisions']();_0x4c0b6d['reverse'](),_0x4c0b6d['shift']();const _0x43715f=_0x4c0b6d['find'](_0x4fe61b=>_0x4fe61b['toVersion']<=_0x50026e)['toVersion'];return _0x43715f<this['_startingVersion']?this['_startingVersion']:_0x43715f;}['_makeRevision']({name:_0x424558,from:_0x43ce85,to:_0x2eb8e9,creatorId:_0x389b72,id:_0x526104}){const _0xb38d22=this['buildRevisionData']({'from':_0x43ce85,'to':_0x2eb8e9});_0xb38d22['name']=_0x424558,_0xb38d22['creatorId']=_0x389b72,_0xb38d22['id']=_0x526104;const _0x1a2420=this['addRevisionData'](_0xb38d22);return this['adapter']&&this['_bufferUpdate'](_0xb38d22['id'],_0xb38d22,!0x0),_0x1a2420;}['_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(_0x146f9e){this['editor']=_0x146f9e,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'](_0x4b94e0){this['source']=_0x4b94e0;const _0x1b8aaa=new Map(),_0x53945b=new Map(),_0x26ae8e=this['editor']['model']['document']['roots']['map'](_0x56322b=>_0x56322b['rootName']);for(const _0x188afd of _0x26ae8e){const _0x1399de=this['editor']['model']['document']['getRoot'](_0x188afd),_0x122537=N(_0x1399de);_0x1b8aaa['set'](_0x188afd,_0x122537),_0x53945b['set'](_0x188afd,Object['fromEntries'](_0x1399de['getAttributes']()));}const _0x4605dd=Array['from'](this['editor']['model']['markers'])['map'](_0x80961a=>[_0x80961a['name'],_0x80961a['getRange']()]),_0x519e91=this['source']['version'];this['_saveMetaData'](_0x519e91,_0x1b8aaa,_0x4605dd,_0x53945b),this['_startingRevisionId']=this['_revisionId'];const _0x3a76b4=new Map(),_0x4f4276=new Map();for(const _0x51a69b of _0x26ae8e){const _0x335d1f=P(_0x51a69b);_0x3a76b4['set'](_0x51a69b,_0x335d1f),_0x4f4276['set'](_0x51a69b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3a76b4,[],_0x4f4276);}['getData'](_0x108186,_0x2cc35f){if(this['_lastFrom']===_0x108186&&this['_lastTo']<=_0x2cc35f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2cc35f,!0x0);else{if(!this['_savedMetaData']['has'](_0x108186)){const _0x4adc99=this['_getPreviousFrom'](_0x108186);this['_calculateMetaData'](_0x4adc99,_0x108186,!0x1);}this['_calculateMetaData'](_0x108186,_0x2cc35f,!0x0);}return this['_lastFrom']=_0x108186,this['_lastTo']=_0x2cc35f,this['_getState']();}['loadState'](_0x260cd6){const _0x318f6e=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x260cd6['fromVersion'],this['_lastTo']=_0x260cd6['toVersion'];for(const _0x304db7 in _0x260cd6['diffData']){const _0x7970e0=_0x260cd6['diffData'][_0x304db7]['attachChange'],_0x5b9e0b=_0x1ce38b(_0x260cd6['diffData'][_0x304db7]['attributesBefore'])||{},_0x22804d=_0x318f6e['_makeModelFromViewString'](_0x260cd6['diffData'][_0x304db7]['deletions']);_0x22804d['rootName']=_0x304db7,_0x22804d['_isAttached']=!_0x7970e0||!_0x7970e0['isAttached'],_0x22804d['isAttached']=()=>_0x22804d['_isAttached'],this['_baseRoots']['set'](_0x304db7,_0x22804d),this['_baseRootsAttributes']['set'](_0x304db7,_0x5b9e0b),_0x7970e0&&this['_touchedRoots']['set'](_0x304db7,_0x7970e0);const _0x578cf2=this['_makeIdsRoot'](_0x22804d);this['_baseIdsRoots']['set'](_0x304db7,_0x578cf2);for(const [_0x1a6a1b,_0x5a2f0c]of _0x22804d['markers']){if(!_0x1a6a1b['startsWith']('revision:'))continue;const _0x441bbf=_0x1a6a1b['split'](':')[0x2];for(const _0x1d84c4 of _0x5a2f0c['getWalker']({'singleCharacters':!0x0})){const _0x4bf4fd=this['_getVidAttributeName'](_0x1d84c4),_0x5ecb5b='elementEnd'==_0x1d84c4['type']?_0x1d84c4['previousPosition']['path']['slice'](0x0,-0x1):_0x1d84c4['previousPosition']['path'],_0x2c26cd=_0x578cf2['getNodeByPath'](_0x5ecb5b)['getAttribute'](_0x4bf4fd);this['_touched']['set'](_0x2c26cd,{'userId':_0x441bbf});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4b91cc=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x43048b=>!this['_touched']['has'](_0x43048b));let _0x3f08ad=0x0;const _0x1d0b0e=new Map();for(const _0xb7673 in _0x260cd6['diffData']){const _0x8cfd9b=_0x260cd6['diffData'][_0xb7673]['attachChange'],_0x11f682=_0x1ce38b(_0x260cd6['diffData'][_0xb7673]['attributesAfter'])||{},_0x5e8d12=_0x318f6e['_makeModelFromViewString'](_0x260cd6['diffData'][_0xb7673]['insertions']);_0x5e8d12['rootName']=_0xb7673,_0x5e8d12['_isAttached']=!_0x8cfd9b||_0x8cfd9b['isAttached'],_0x5e8d12['isAttached']=()=>_0x5e8d12['_isAttached'],this['_diffRoots']['set'](_0xb7673,_0x5e8d12),this['_diffRootsAttributes']['set'](_0xb7673,_0x11f682);const _0x1d26bf=this['_makeIdsRoot'](_0x5e8d12,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xb7673,_0x1d26bf),_0x1d0b0e['set'](_0xb7673,_0x5e8d12['isAttached']()?_0x11f682:{});for(const [_0x40c0d8,_0x44c4f0]of _0x5e8d12['markers']){if(!_0x40c0d8['startsWith']('revision:'))continue;const _0x979449=_0x40c0d8['split'](':')[0x2];for(const _0x8c8ab7 of _0x44c4f0['getWalker']({'singleCharacters':!0x0})){const _0x5245cc=this['_getVidAttributeName'](_0x8c8ab7),_0x22900e=this['_revisionId']++,_0x32c7d1='elementEnd'==_0x8c8ab7['type']?_0x8c8ab7['previousPosition']['path']['slice'](0x0,-0x1):_0x8c8ab7['previousPosition']['path'];_0x1d26bf['getNodeByPath'](_0x32c7d1)['_setAttribute'](_0x5245cc,_0x22900e),this['_touched']['set'](_0x22900e,{'userId':_0x979449});}}for(const _0x527b58 of this['editor']['model']['createRangeIn'](_0x5e8d12)['getWalker']({'singleCharacters':!0x0})){const _0x408044=this['_getVidAttributeName'](_0x527b58),_0x235416='elementEnd'==_0x527b58['type']?_0x527b58['previousPosition']['path']['slice'](0x0,-0x1):_0x527b58['previousPosition']['path'],_0x141953=_0x1d26bf['getNodeByPath'](_0x235416);_0x141953['getAttribute'](_0x408044)>0x0||_0x141953['_setAttribute'](_0x408044,_0x4b91cc[_0x3f08ad++]);}for(const [_0x38528f,_0xe9d65e]of _0x5e8d12['markers'])_0x38528f['startsWith']('revision:')||this['_markers']['set'](_0x38528f,_0xe9d65e);}const _0xf38ba9=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf38ba9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf38ba9,0x1));const _0x2353d4=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2353d4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2353d4,0x1));const _0x3b7b1e=Array['from'](this['_diffRoots'])['map'](([_0x21e4ae,_0x403c95])=>[_0x21e4ae,N(_0x403c95)]);this['_saveMetaData'](this['_lastTo'],_0x3b7b1e,this['_markers'],_0x1d0b0e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x471e3a,_0x1f2658,_0x233978,_0x189bdf){const _0x29877e=new Map(_0x1f2658),_0x50151b=new Map(_0x1ce38b(_0x189bdf)),_0xf0e57=new Map();for(const [_0x27eb87,_0x2bedd2]of _0x233978)_0xf0e57['set'](_0x27eb87,{'start':_0x2bedd2['start']['clone'](),'end':_0x2bedd2['end']['clone'](),'rootName':_0x2bedd2['root']['rootName']});this['_savedMetaData']['set'](_0x471e3a,{'roots':_0x29877e,'markers':_0xf0e57,'rootsAttributes':_0x50151b});}['_removeMetaData'](_0x474def){this['_savedMetaData']['delete'](_0x474def);}['_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'](_0x1e1b25,_0x595455=null){let _0x392288=null;_0x1e1b25['is']('documentFragment')||(_0x392288=new ut(_0x1e1b25['name'],{'vid_start':null===_0x595455?this['_revisionId']++:_0x595455++}));const _0x2967b1=[];for(const _0x13005e of _0x1e1b25['getChildren']())if(_0x13005e['is']('element')){_0x2967b1['push'](this['_makeIdsRoot'](_0x13005e,_0x595455));const _0x32d4af=_0x2967b1[_0x2967b1['length']-0x1];null!==_0x595455&&(_0x595455=_0x32d4af['is']('element','$text')?_0x32d4af['getAttribute']('vid')+0x1:_0x32d4af['getAttribute']('vid_end')+0x1);}else{for(let _0x241ef3=0x0;_0x241ef3<_0x13005e['offsetSize'];_0x241ef3++)_0x2967b1['push'](new ut('$text',{'vid':null===_0x595455?this['_revisionId']++:_0x595455++}));}if(_0x1e1b25['is']('documentFragment')){const _0x2ff32a=P(_0x1e1b25['rootName']);return _0x2ff32a['_insertChild'](0x0,_0x2967b1),_0x2ff32a;}return _0x392288['_setAttribute']('vid_end',null===_0x595455?this['_revisionId']++:_0x595455++),_0x392288['_insertChild'](0x0,_0x2967b1),_0x392288;}['_calculateMetaData'](_0x5cf2be,_0x94d7fb,_0x200752){this['_reset']();const {roots:_0x53cf36,markers:_0x1109ff,rootsAttributes:_0x4531b7}=this['_savedMetaData']['get'](_0x5cf2be);this['_baseRoots']=new Map(_0x53cf36),this['_baseRootsAttributes']=new Map(_0x1ce38b(_0x4531b7));for(const [_0x2a16f0,_0x60e183]of this['_baseRoots'])if('$graveyard'!==_0x2a16f0&&(this['_diffRoots']['set'](_0x2a16f0,N(_0x60e183)),this['_diffRootsAttributes']=new Map(_0x1ce38b(_0x4531b7)),_0x200752)){const _0x266e5e=this['_revisionId'];this['_idsRoots']['set'](_0x2a16f0,this['_makeIdsRoot'](_0x60e183)),this['_baseIdsRoots']['set'](_0x2a16f0,this['_makeIdsRoot'](_0x60e183,_0x266e5e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x200752&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1cc451,_0x297bea]of _0x1109ff){const _0xa62eb4=this['_baseRoots']['get'](_0x297bea['rootName']),_0x5ee4c9=this['_diffRoots']['get'](_0x297bea['rootName']),_0x11d3ee=new ft(this['_fixPosition'](_0x297bea['start'],_0xa62eb4),this['_fixPosition'](_0x297bea['end'],_0xa62eb4)),_0x2e7c15=this['_fixRange'](_0x11d3ee,_0x5ee4c9);_0xa62eb4['markers']['set'](_0x1cc451,_0x11d3ee),this['_markers']['set'](_0x1cc451,_0x2e7c15);}this['_applyOperations'](_0x5cf2be,_0x94d7fb,_0x200752);}['_applyOperations'](_0x44b2a2,_0xfa6ace,_0x5848ef){for(const _0x3e8cf6 of this['source']['getOperations'](_0x44b2a2,_0xfa6ace))this['_handleOperation'](_0x3e8cf6,_0x5848ef);for(const _0x537a06 of this['_diffRoots']['values']())_0x537a06['markers']['clear']();for(const [_0xa9a0fa,_0x35ac09]of this['_markers']){this['_diffRoots']['get'](_0x35ac09['root']['rootName'])['markers']['set'](_0xa9a0fa,_0x35ac09['clone']());}const _0x4dc236=new Map(),_0x1d13f5=new Map();for(const [_0x21ad23,_0x215de9]of this['_diffRoots'])_0x4dc236['set'](_0x21ad23,N(_0x215de9)),_0x1d13f5['set'](_0x21ad23,this['_diffRootsAttributes']['get'](_0x21ad23));this['_saveMetaData'](_0xfa6ace,_0x4dc236,this['_markers'],_0x1d13f5);}['_getPreviousFrom'](_0x415143){const _0x5e41f0=Array['from'](this['_savedMetaData']['keys']());_0x5e41f0['sort']((_0x1287f3,_0x5db446)=>_0x1287f3-_0x5db446),_0x5e41f0['reverse']();for(const _0x458df9 of _0x5e41f0)if(_0x458df9<_0x415143)return _0x458df9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x190b79,_0x94b9be){const _0x13b74a=Array['from'](_0x94b9be['markers'])['map'](([_0x48fa50,_0x5ac189])=>[_0x48fa50,this['_fixRange'](_0x5ac189,_0x190b79)]);_0x190b79['markers']=new Map(_0x13b74a);}['_transformMarkers'](_0x151036){for(const _0x4fbb4b of this['_markers']['values']()){const _0x3978d9=_0x4fbb4b['getTransformedByOperation'](_0x151036),_0xd4c002=ft['_createFromRanges'](_0x3978d9);_0x4fbb4b['start']=_0xd4c002['start'],_0x4fbb4b['end']=_0xd4c002['end'];}}['_handleOperation'](_0x5455ce,_0x292e32){if('addRoot'!=_0x5455ce['type']&&'detachRoot'!=_0x5455ce['type']){if('insert'==_0x5455ce['type']){const _0x15aae7=_0x5455ce['position']['root']['rootName'];this['_diffRoots']['has'](_0x15aae7)||(this['_diffRoots']['set'](_0x15aae7,P(_0x15aae7,!0x0)),this['_diffRootsAttributes']['set'](_0x15aae7,{}),_0x292e32&&this['_idsRoots']['set'](_0x15aae7,P(_0x15aae7,!0x0)));}else{if('addRootAttribute'==_0x5455ce['type']||'removeRootAttribute'==_0x5455ce['type']||'changeRootAttribute'==_0x5455ce['type'])return void this['_handleRootAttributeOperation'](_0x5455ce);'marker'==_0x5455ce['type']&&this['_handleMarkerOperation'](_0x5455ce);}if('marker'!==_0x5455ce['type']){const _0x41d3b4=this['_cloneOperation'](_0x5455ce,this['_diffRoots']);_0x41d3b4['_execute'](),this['_transformMarkers'](_0x41d3b4);}if(_0x292e32)switch(_0x5455ce['type']){case'insert':this['_handleInsertOperation'](_0x5455ce);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5455ce);break;case'merge':this['_handleMergeOperation'](_0x5455ce);break;case'split':this['_handleSplitOperation'](_0x5455ce);}}else this['_handleRootOperation'](_0x5455ce,_0x292e32);}['_cloneOperation'](_0x2a5cd2,_0x101415){const _0x15558d=_0x2a5cd2['clone']();return _0x15558d['_authorId']=_0x2a5cd2['_authorId'],this['_fixOperation'](_0x15558d,_0x101415),_0x15558d;}['_getBaseVids'](_0x412d2a){return _0x412d2a['map'](_0x1759f4=>{const _0x52b99c=this['_getVidAttributeName'](_0x1759f4);return Number(_0x1759f4['item']['getAttribute'](_0x52b99c));});}['_generateTape'](_0x489233,_0x86e843){if(_0x489233['is']('element','$text'))_0x86e843['push']({'item':_0x489233,'type':'text'});else{_0x489233['is']('element')&&_0x86e843['push']({'item':_0x489233,'type':'elementStart'});for(const _0x5c99a7 of _0x489233['getChildren']())this['_generateTape'](_0x5c99a7,_0x86e843);_0x489233['is']('element')&&_0x86e843['push']({'item':_0x489233,'type':'elementEnd'});}return _0x86e843;}['_getState'](){const _0x4ee4bc=new Map(this['_touched']),_0x19073b=new Map(_0x4ee4bc),_0x3c463a=new Map(),_0x2a74b8={'insertions':{},'deletions':{}},_0x53da2a={'insertions':{},'deletions':{}},_0x307a16=new Map(),_0x351855=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x351855['delete']('$graveyard');for(const _0x54bcdb of _0x351855){const _0x3d4d56=this['_diffRoots']['get'](_0x54bcdb)||P(_0x54bcdb,!0x1),_0x29b309=this['_baseRoots']['get'](_0x54bcdb)||P(_0x54bcdb,!0x1);_0x3d4d56['isAttached']()||_0x29b309['isAttached']()?(_0x2a74b8['insertions'][_0x54bcdb]=N(_0x3d4d56),_0x2a74b8['deletions'][_0x54bcdb]=N(_0x29b309),this['_copyMarkers'](_0x2a74b8['deletions'][_0x54bcdb],_0x29b309),this['_copyMarkers'](_0x2a74b8['insertions'][_0x54bcdb],_0x3d4d56),_0x53da2a['insertions'][_0x54bcdb]=this['_generateTape'](this['_idsRoots']['get'](_0x54bcdb),[]),_0x53da2a['deletions'][_0x54bcdb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x54bcdb)||P(_0x54bcdb,!0x1),[])):_0x351855['delete'](_0x54bcdb);}for(const _0xf88bc2 of _0x351855){const _0x58150c=_0x53da2a['insertions'][_0xf88bc2];for(const _0x3f232c of _0x58150c){const _0x431bf9=this['_getVidAttributeName'](_0x3f232c),_0x1bafe0=_0x3f232c['item']['getAttribute'](_0x431bf9);_0x19073b['delete'](_0x1bafe0),_0x1bafe0>=this['_startingRevisionId']&&_0x3c463a['set'](_0x1bafe0,_0x4ee4bc['get'](_0x1bafe0));}}for(const _0x107aeb of _0x351855){const _0x333a00=_0x53da2a['insertions'][_0x107aeb],_0x4c4ec1=this['_getBaseVids'](_0x53da2a['deletions'][_0x107aeb]);let _0x4e837f=0x0;for(const _0x533c8c of _0x333a00){const _0x3fb525=this['_getVidAttributeName'](_0x533c8c),_0x49190c=_0x533c8c['item']['getAttribute'](_0x3fb525);if(!_0x3c463a['has'](_0x49190c)&&!_0x307a16['has'](_0x49190c)){if(_0x19073b['has'](_0x49190c))_0x4e837f++;else{if(_0x49190c!=_0x4c4ec1[_0x4e837f]){const _0xb50862=_0x4ee4bc['get'](_0x49190c)||_0x4ee4bc['get'](_0x4c4ec1[_0x4e837f]);for(;_0x49190c!=_0x4c4ec1[_0x4e837f];)_0x19073b['has'](_0x4c4ec1[_0x4e837f])||(_0x307a16['set'](_0x4c4ec1[_0x4e837f],_0xb50862),_0x4ee4bc['set'](_0x4c4ec1[_0x4e837f],_0xb50862)),_0x4e837f++;}_0x4e837f++;}}}}for(const _0x1c254c of _0x351855){const _0x4531ac=_0x53da2a['insertions'][_0x1c254c];for(const _0x2d2339 of _0x4531ac){const _0x163d0d=this['_getVidAttributeName'](_0x2d2339),_0x2df1d7=_0x2d2339['item']['getAttribute'](_0x163d0d);if(_0x307a16['has'](_0x2df1d7)){const _0xa67857=_0x307a16['get'](_0x2df1d7);_0x19073b['has'](_0x2df1d7)||_0x19073b['set'](_0x2df1d7,{..._0xa67857}),_0x3c463a['set'](_0x2df1d7,{..._0xa67857});}}}for(const _0xdee6d of _0x19073b['keys']())_0xdee6d>=this['_startingRevisionId']&&_0x19073b['delete'](_0xdee6d);const _0x6632d1=new Map();for(const _0x2416dc of _0x351855){let _0x5a8d48=_0x53da2a['insertions'][_0x2416dc];for(const _0x24d4ec of _0x5a8d48)if(_0x24d4ec['item']['is']('element','tableCell')){const _0x261a5c=this['_getVidAttributeName'](_0x24d4ec),_0x122959=_0x24d4ec['item']['getAttribute'](_0x261a5c);if(_0x3c463a['has'](_0x122959)){const _0xcdbca2=_0x24d4ec['item']['parent']['parent']['getAttribute']('vid_start'),_0x2ddedb=_0x6632d1['get'](_0xcdbca2)||new Set();_0x2ddedb['add'](_0x3c463a['get'](_0x122959)['userId']),_0x6632d1['set'](_0xcdbca2,_0x2ddedb);}}_0x5a8d48=_0x53da2a['deletions'][_0x2416dc];for(const _0x28fb93 of _0x5a8d48)if(_0x28fb93['item']['is']('element','tableCell')){const _0xeb885b=this['_getVidAttributeName'](_0x28fb93),_0x5ed50b=_0x28fb93['item']['getAttribute'](_0xeb885b);if(_0x19073b['has'](_0x5ed50b)){const _0xc69b73=_0x28fb93['item']['parent']['parent']['getAttribute']('vid_start'),_0x43fe0e=_0x6632d1['get'](_0xc69b73)||new Set();_0x43fe0e['add'](_0x19073b['get'](_0x5ed50b)['userId']),_0x6632d1['set'](_0xc69b73,_0x43fe0e);}}for(const _0x3ea10b of _0x6632d1['keys']())(_0x3c463a['has'](_0x3ea10b)||_0x19073b['has'](_0x3ea10b))&&_0x6632d1['delete'](_0x3ea10b);}for(const _0x1784be of _0x351855){const _0x5a2db8=_0x53da2a['insertions'][_0x1784be];let _0x19b98e=null,_0x1bb320=null;for(const _0x2f2e65 of _0x5a2db8){const _0x35fa34=this['_getVidAttributeName'](_0x2f2e65),_0x5385a1=_0x2f2e65['item']['getAttribute'](_0x35fa34),_0x2c540c=_0x6632d1['get'](_0x5385a1);_0x2c540c&&'elementStart'==_0x2f2e65['type']&&(_0x19b98e=Array['from'](_0x2c540c)[0x0],_0x1bb320=_0x2f2e65['item']['getAttribute']('vid_end')),_0x19b98e&&(_0x19073b['set'](_0x5385a1,{'userId':_0x19b98e}),_0x3c463a['set'](_0x5385a1,{'userId':_0x19b98e})),_0x5385a1==_0x1bb320&&(_0x19b98e=null,_0x1bb320=null);}}const _0x557e2b={},_0x572727=new Set();for(const _0x55017d of _0x351855){const _0x4fb68f=_0x2a74b8['deletions'][_0x55017d],_0x19dc79=_0x2a74b8['insertions'][_0x55017d];for(const {userId:_0x436ec0}of this['_touchedMarkers']['values']())null!==_0x436ec0&&_0x572727['add'](_0x436ec0);for(const {userId:_0x34e8c4}of this['_touchedRoots']['values']())null!==_0x34e8c4&&_0x572727['add'](_0x34e8c4);this['_markChanges'](_0x19dc79,_0x53da2a['insertions'][_0x55017d],_0x3c463a,'insertion',_0x572727),this['_markChanges'](_0x4fb68f,_0x53da2a['deletions'][_0x55017d],_0x19073b,'deletion',_0x572727),_0x557e2b[_0x55017d]={'insertions':this['_prepareViewToSave'](_0x19dc79),'deletions':this['_prepareViewToSave'](_0x4fb68f),'attachChange':this['_touchedRoots']['get'](_0x55017d)||null,'attributesBefore':_0x1ce38b(this['_baseRootsAttributes']['get'](_0x55017d))||{},'attributesAfter':_0x1ce38b(this['_diffRootsAttributes']['get'](_0x55017d))};}return{'diffData':_0x557e2b,'authorsIds':Array['from'](_0x572727)};}['_processRootBeforeSave'](_0x1e1039){for(const [,_0xe8fcae]of _0x1e1039['markers']){const _0x562230=_0xe8fcae['start']['getAncestors']()['filter'](_0x20773c=>'tableCell'==_0x20773c['name']);for(const _0x280d4b of _0x562230)0x1==_0x280d4b['childCount']&&_0x280d4b['getChild'](0x0)['is']('element','paragraph')&&_0x280d4b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xde4e71){this['_processRootBeforeSave'](_0xde4e71);const _0x37122f=this['editor']['data']['toView'](_0xde4e71,{}),_0x2577bb=Array['from'](_0x37122f['getChildren']())['map'](_0x4489f9=>this['_getViewJson'](_0x4489f9));return JSON['stringify'](_0x2577bb);}['_getViewJson'](_0x2e9670){if(_0x2e9670['is']('$text'))return _0x2e9670['data'];{const _0x55c7e2=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4fc31f=_0x2e9670,_0x4bb898=this['editor']['data']['htmlProcessor']['domConverter'],_0x3d6b32={'type':_0x55c7e2['_getTypeCharForViewElement'](_0x4fc31f),'name':_0x4fc31f['name'],'attributes':Array['from'](_0x4fc31f['getAttributes']()),'children':Array['from'](_0x4fc31f['getChildren']())['map'](_0x38934c=>this['_getViewJson'](_0x38934c))};if(_0x2e9670['is']('uiElement')&&'$comment'!=_0x2e9670['name']){const _0x527e0e=_0x2e9670['render'](_0x4bb898['domDocument'],_0x4bb898);_0x3d6b32['children']['push'](_0x527e0e['outerHTML']);}else{if(_0x2e9670['is']('rawElement')){const _0x3c0d38=_0x4bb898['domDocument']['createElement'](_0x4fc31f['name']);_0x2e9670['render'](_0x3c0d38,_0x4bb898),_0x3d6b32['children']['push'](_0x3c0d38['innerHTML']);}}const _0x37889f=Array['from'](_0x4fc31f['getCustomProperties']());_0x37889f['length']>0x0&&(_0x3d6b32['customProperties']=_0x37889f);const _0x46e0df=_0x4fc31f['getFillerOffset']();return null!==_0x46e0df&&(_0x3d6b32['fillerOffset']=_0x46e0df),_0x3d6b32;}}['_markChanges'](_0x343695,_0x54fdb1,_0x21a98f,_0x3d06bd,_0x3ab67d){let _0x2123b0=null,_0x56e02f=null,_0x2b17b3=0x0;const _0x15a553=this['editor']['model'];for(let _0x2a0072=0x0;_0x2a0072<_0x54fdb1['length'];_0x2a0072++){const _0x3f4249=this['_getVidAttributeName'](_0x54fdb1[_0x2a0072]),_0xa922e1=_0x54fdb1[_0x2a0072]['item']['getAttribute'](_0x3f4249),_0x2faf5f=_0x21a98f['get'](_0xa922e1),_0x436b65=_0x2a0072==_0x54fdb1['length']-0x1;(!_0x2123b0&&_0x2faf5f&&(_0x2123b0=_0x2faf5f,_0x56e02f=_0x54fdb1[_0x2a0072]),_0x2123b0&&(!_0x2faf5f||_0x2faf5f['userId']!=_0x2123b0['userId']))&&(_0x2b5334(_0x2faf5f,F(_0x56e02f,_0x343695,_0x15a553),F(_0x54fdb1[_0x2a0072],_0x343695,_0x15a553)),_0x2123b0=_0x2faf5f||null,_0x56e02f=_0x2faf5f?_0x54fdb1[_0x2a0072]:null),_0x2123b0&&_0x436b65&&_0x2b5334(_0x2faf5f,F(_0x56e02f,_0x343695,_0x15a553),B(_0x54fdb1[_0x2a0072],_0x343695,_0x15a553));}function _0x2b5334(_0x368846,_0x5200d0,_0x9cb5e1){const _0x228a31=_0x2123b0['userId'],_0x3b5501='revision:'+_0x3d06bd+':'+_0x228a31+':'+_0x2b17b3++,_0x196953=_0x15a553['createRange'](_0x5200d0,_0x9cb5e1);_0x343695['markers']['set'](_0x3b5501,_0x196953),null!==_0x228a31&&_0x3ab67d['add'](_0x228a31);}}['_getVidAttributeName'](_0x35e17c){switch(_0x35e17c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2cd82d,_0x574714){_0x2cd82d['baseVersion']=null;for(const _0x3c7901 in _0x2cd82d){const _0x16e8a8=_0x2cd82d[_0x3c7901];if(_0x16e8a8 instanceof vt){const _0x3e945f=_0x574714['get'](_0x16e8a8['root']['rootName']);_0x2cd82d[_0x3c7901]=this['_fixPosition'](_0x16e8a8,_0x3e945f);}if(_0x16e8a8 instanceof ft){const _0x5049a5=_0x574714['get'](_0x16e8a8['root']['rootName']);_0x2cd82d[_0x3c7901]=this['_fixRange'](_0x16e8a8,_0x5049a5);}'root'===_0x3c7901&&(_0x2cd82d['root']=_0x574714['get'](_0x2cd82d['root']['rootName']));}}['_fixRange'](_0x34fc55,_0x48ec87){return this['editor']['model']['createRange'](this['_fixPosition'](_0x34fc55['start'],_0x48ec87),this['_fixPosition'](_0x34fc55['end'],_0x48ec87));}['_fixPosition'](_0x3e4a6c,_0x3a7082){return this['editor']['model']['createPositionFromPath'](_0x3a7082,_0x3e4a6c['path'],_0x3e4a6c['stickiness']);}['_handleInsertOperation'](_0x4daf14){const _0x1876e6=this['_idsRoots']['get'](_0x4daf14['position']['root']['rootName']),_0x5be4b4=this['_fixPosition'](_0x4daf14['position'],_0x1876e6),_0x5be3bb=null===_0x4daf14['_authorId']?null:_0x4daf14['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56ff2b=_0x5be4b4['parent'],_0x4111f0=this['_revisionId'],_0x3e2f2c=[];for(const _0x948ecb of _0x4daf14['nodes'])if(_0x948ecb['is']('element'))_0x3e2f2c['push'](this['_makeIdsRoot'](_0x948ecb));else{for(let _0x46dee3=0x0;_0x46dee3<_0x948ecb['offsetSize'];_0x46dee3++)_0x3e2f2c['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1d5458=this['_revisionId'];for(let _0x24121c=_0x4111f0;_0x24121c<_0x1d5458;_0x24121c++)this['_touched']['set'](_0x24121c,{'userId':_0x5be3bb});_0x56ff2b['_insertChild'](_0x5be4b4['offset'],_0x3e2f2c);}['_handleMoveOperation'](_0x434f4c){(_0x434f4c=this['_cloneOperation'](_0x434f4c,this['_idsRoots']))['_execute']();const _0x5a59e9=null===_0x434f4c['_authorId']?null:_0x434f4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20a720=_0x434f4c['getMovedRangeStart'](),_0x3f6025=_0x20a720['parent'],_0x2a9626=_0x20a720['offset'];!function _0x11237c(_0xef0981,_0x29d734,_0x33eee3,_0x57aea4){for(let _0x4096e4=_0x33eee3;_0x4096e4<_0x57aea4;_0x4096e4++){const _0x44f8f3=_0x29d734['getChild'](_0x4096e4);_0x44f8f3['is']('element','$text')?_0xef0981['set'](_0x44f8f3['getAttribute']('vid'),{'userId':_0x5a59e9}):(_0xef0981['set'](_0x44f8f3['getAttribute']('vid_start'),{'userId':_0x5a59e9}),_0x11237c(_0xef0981,_0x44f8f3,0x0,_0x44f8f3['childCount']),_0xef0981['set'](_0x44f8f3['getAttribute']('vid_end'),{'userId':_0x5a59e9}));}}(this['_touched'],_0x3f6025,_0x2a9626,_0x2a9626+_0x434f4c['howMany']);}['_handleMergeOperation'](_0x525839){const _0x168654=null===(_0x525839=this['_cloneOperation'](_0x525839,this['_idsRoots']))['_authorId']?null:_0x525839['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3aa5dc=_0x525839['targetPosition']['parent'],_0x3247e3=_0x525839['sourcePosition']['parent'],_0x2728f1=_0x3aa5dc['getAttribute']('vid_end'),_0x4da943=_0x3247e3['getAttribute']('vid_start');_0x3aa5dc['_setAttribute']('vid_end',_0x3247e3['getAttribute']('vid_end')),_0x3247e3['_setAttribute']('vid_end',_0x2728f1),this['_touched']['set'](_0x4da943,{'userId':_0x168654}),this['_touched']['set'](_0x2728f1,{'userId':_0x168654}),_0x525839['_execute']();}['_handleSplitOperation'](_0x18f7a6){const _0x3ce6f5=null===(_0x18f7a6=this['_cloneOperation'](_0x18f7a6,this['_idsRoots']))['_authorId']?null:_0x18f7a6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x437e9d=_0x18f7a6['graveyardPosition'],_0x2d2e60=_0x18f7a6['splitPosition']['parent'];_0x18f7a6['_execute']();const _0x2016f3=_0x2d2e60['getAttribute']('vid_end'),_0x116131=_0x18f7a6['insertionPosition']['nodeAfter'];if(_0x437e9d){const _0x870f8f=_0x116131['getAttribute']('vid_end'),_0x53d01e=_0x2d2e60['getAttribute']('vid_end');_0x2d2e60['_setAttribute']('vid_end',_0x870f8f),_0x116131['_setAttribute']('vid_end',_0x53d01e),this['_touched']['set'](_0x2d2e60['getAttribute']('vid_end'),{'userId':_0x3ce6f5}),this['_touched']['set'](_0x116131['getAttribute']('vid_start'),{'userId':_0x3ce6f5});}else{const _0x31bf5f=this['_revisionId']++,_0x201b14=this['_revisionId']++;_0x2d2e60['_setAttribute']('vid_end',_0x31bf5f),_0x116131['_setAttribute']('vid_start',_0x201b14),_0x116131['_setAttribute']('vid_end',_0x2016f3),this['_touched']['set'](_0x31bf5f,{'userId':_0x3ce6f5}),this['_touched']['set'](_0x201b14,{'userId':_0x3ce6f5});}}['_handleMarkerOperation'](_0x4474ac){if(!_0x4474ac['affectsData'])return;const _0x2b7bcc=(_0x4474ac=this['_cloneOperation'](_0x4474ac,this['_diffRoots']))['oldRange']?_0x4474ac['oldRange']['root']:null,_0x1f0f84=_0x4474ac['newRange']?_0x4474ac['newRange']['root']:null;_0x2b7bcc&&this['_markers']['delete'](_0x4474ac['name']),_0x1f0f84&&this['_markers']['set'](_0x4474ac['name'],_0x4474ac['newRange']['clone']());const _0x9cbdec=null===_0x4474ac['_authorId']?null:_0x4474ac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57f2f1=_0x4474ac['name'];if(!this['_touchedMarkers']['has'](_0x57f2f1))return void this['_touchedMarkers']['set'](_0x57f2f1,{'range':_0x4474ac['oldRange'],'userId':_0x9cbdec});const _0x54a70b=this['_touchedMarkers']['get'](_0x57f2f1),_0x2034dd=_0x54a70b['range'],_0x4dc0b5=_0x4474ac['newRange'];null==_0x2034dd&&null==_0x4dc0b5||_0x2034dd&&_0x4dc0b5&&_0x2034dd['isEqual'](_0x4dc0b5)?this['_touchedMarkers']['delete'](_0x4474ac['name']):_0x54a70b['userId']=_0x9cbdec;}['_handleRootOperation'](_0x3abc1e,_0x201370){this['_diffRoots']['has'](_0x3abc1e['rootName'])?this['_diffRoots']['get'](_0x3abc1e['rootName'])['_isAttached']=_0x3abc1e['isAdd']:(this['_diffRoots']['set'](_0x3abc1e['rootName'],P(_0x3abc1e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3abc1e['rootName'],{}),_0x201370&&this['_idsRoots']['set'](_0x3abc1e['rootName'],P(_0x3abc1e['rootName'],!0x0)));const _0x2986ed=null===_0x3abc1e['_authorId']?null:_0x3abc1e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1306d8=this['_touchedRoots']['get'](_0x3abc1e['rootName']);_0x1306d8&&_0x1306d8['userId']===_0x2986ed?this['_touchedRoots']['delete'](_0x3abc1e['rootName']):this['_touchedRoots']['set'](_0x3abc1e['rootName'],{'userId':_0x2986ed,'isAttached':_0x3abc1e['isAdd']});}['_handleRootAttributeOperation'](_0x5da2d5){const _0xc08bd5=this['_diffRootsAttributes']['get'](_0x5da2d5['root']['rootName']);null===_0x5da2d5['newValue']?delete _0xc08bd5[_0x5da2d5['key']]:_0xc08bd5[_0x5da2d5['key']]=_0x5da2d5['newValue'];}}function N(_0x2760d3){const _0xb679ae=P(_0x2760d3['rootName'],_0x2760d3['isAttached']());for(const _0x59a68d of _0x2760d3['getChildren']()){const _0x2a7deb=_0x59a68d['_clone'](!0x0);_0xb679ae['_appendChild'](_0x2a7deb);}return _0xb679ae;}function P(_0x21125a,_0x5855b3=!0x0){const _0x2bab04=new gt();return _0x2bab04['rootName']=_0x21125a,_0x2bab04['_isAttached']=_0x5855b3,_0x2bab04['isAttached']=()=>_0x2bab04['_isAttached'],_0x2bab04;}function F(_0x3bb8b7,_0x1801ed,_0x515340){const _0x12df16='elementEnd'==_0x3bb8b7['type']?_0x515340['createPositionAt'](_0x3bb8b7['item'],'end'):_0x515340['createPositionBefore'](_0x3bb8b7['item']);return _0x515340['createPositionFromPath'](_0x1801ed,_0x12df16['path'],_0x12df16['stickiness']);}function B(_0x2c9294,_0x6b4ef3,_0x53ad62){const _0x59803e='elementStart'==_0x2c9294['type']?_0x53ad62['createPositionAt'](_0x2c9294['item'],0x0):_0x53ad62['createPositionAfter'](_0x2c9294['item']);return _0x53ad62['createPositionFromPath'](_0x6b4ef3,_0x59803e['path'],_0x59803e['stickiness']);}class hs extends _0x4eacd9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x348751,_0x5aca4f){super(_0x348751),this['focusTracker']=new _0x2fc1e0(),this['keystrokes']=new _0xe7195d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5aca4f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0xa5da1c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x18df1d=_0x2d1ef4=>_0x2d1ef4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x18df1d),this['keystrokes']['set']('arrowleft',_0x18df1d),this['keystrokes']['set']('arrowup',_0x18df1d),this['keystrokes']['set']('arrowdown',_0x18df1d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x133989){this['revisionNameInputView']['fieldView']['element']['value']=_0x133989['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x24e7e4){const _0x486ca2=new nt(this['locale'],ti),_0x55232e=_0x486ca2['fieldView'];_0x55232e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x517f4b=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x24e7e4&&(_0x517f4b+='\x20('+g(this['locale'],'optional')+')'),(_0x486ca2['label']=_0x517f4b,_0x55232e['on']('input',()=>{this['revisionNameInputValue']=_0x55232e['element']['value']['trim']();}),_0x486ca2);}}class f extends _0x563dd0{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2ba7c7=this['editor'],_0x522cd7=_0x2ba7c7['plugins']['get']('RevisionTracker');_0x2ba7c7['ui']['componentFactory']['add']('revisionHistory',_0x590842=>{const _0x6ec192=_0x14068a(_0x590842),_0x2d0486=_0x6ec192['panelView']['children'],_0xdd7e0=new _0xfbca9c(_0x590842),_0x1add0c=new te(_0x590842),_0x2a4625=new _0x3399f1(_0x590842),_0x336650=new te(_0x590842),_0x1a2686=new _0x3399f1(_0x590842);return _0x6ec192['bind']('isEnabled')['to'](_0x522cd7,'isReady',_0x522cd7,'isEnabled',_0x2ba7c7,'isReadOnly',(_0x33cd13,_0x4cd997,_0x1eeeda)=>_0x33cd13&&_0x4cd997&&!_0x1eeeda),_0x6ec192['buttonView']['set']({'icon':_0x3d91fe,'label':g(_0x590842,'Revision\x20history'),'tooltip':!0x0}),_0x2a4625['set']({'label':g(_0x590842,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2a4625['bind']('isEnabled')['to'](_0x522cd7,'isReady',_0x522cd7,'isEnabled',_0x2ba7c7,'isReadOnly',(_0x28ebf0,_0x15b762,_0x59afe5)=>_0x28ebf0&&_0x15b762&&!_0x59afe5),_0x2a4625['on']('execute',()=>this['_showDialog']()),_0x1a2686['set']({'label':g(_0x590842,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1a2686['bind']('isEnabled')['to'](_0x522cd7,'isReady',_0x2ba7c7,'isReadOnly',(_0x6ddb85,_0x19a4d7)=>_0x6ddb85&&!_0x19a4d7),_0x1a2686['on']('execute',()=>{_0x2ba7c7['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x6ec192['isOpen']=!0x1,_0x2ba7c7['editing']['view']['focus']();}),_0x1add0c['children']['add'](_0x2a4625),_0x336650['children']['add'](_0x1a2686),_0xdd7e0['role']='menu',_0xdd7e0['items']['addMany']([_0x1add0c,_0x336650]),_0x2d0486['add'](_0xdd7e0),_0x6ec192;}),_0x2ba7c7['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2c7e0a=this['editor'],_0x27b893=_0x2c7e0a['locale'],_0x1dbbca=new _0x3e7c0a(_0x27b893),_0x569483=new _0x3de1b6(_0x27b893);_0x1dbbca['buttonView']['set']({'icon':_0x3d91fe,'label':g(_0x27b893,'Revision\x20history')});const _0x2cfd49=new _0x4238f5(_0x27b893,_0x1dbbca),_0x5f202b=new _0x53fba4(_0x27b893);_0x5f202b['set']({'label':g(_0x27b893,'Save\x20current\x20revision')}),_0x5f202b['delegate']('execute')['to'](_0x1dbbca),_0x5f202b['on']('execute',()=>{this['_showDialog']();}),_0x2cfd49['children']['add'](_0x5f202b),_0x569483['items']['add'](_0x2cfd49);const _0x45a4c5=new _0x4238f5(_0x27b893,_0x1dbbca),_0x1a711b=new _0x53fba4(_0x27b893);return _0x1a711b['set']({'label':g(_0x27b893,'Open\x20revision\x20history')}),_0x1a711b['delegate']('execute')['to'](_0x1dbbca),_0x1a711b['on']('execute',()=>{_0x2c7e0a['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x45a4c5['children']['add'](_0x1a711b),_0x569483['items']['add'](_0x45a4c5),_0x1dbbca['panelView']['children']['add'](_0x569483),_0x1dbbca;}['_showDialog'](){const _0x4d3f63=this['editor'],_0x22d1ec=_0x4d3f63['locale'],_0x1edcb8=_0x4d3f63['plugins']['get']('Dialog'),_0x214474=_0x4d3f63['plugins']['get']('RevisionTracker');function _0x4c7e2f(_0x40d8fc){_0x4d3f63['config']['get']('revisionHistory.requireRevisionName')&&''===_0x40d8fc['revisionName']?_0x40d8fc['revisionNameInputView']['errorText']=g(_0x22d1ec,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4d3f63['plugins']['get'](u)['saveRevision']({'name':_0x40d8fc['revisionName']}),_0x1edcb8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c7e2f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1edcb8['show']({'id':'revisionSave','title':g(_0x22d1ec,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4d3f63['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1edcb8['hide']()},{'label':g(_0x4d3f63['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5df236){_0x5df236['bind']('isEnabled')['to'](_0x214474,'isReady',_0x214474,'isEnabled',_0x4d3f63,'isReadOnly',(_0x3477ce,_0x19c615,_0x1dd4f5)=>_0x3477ce&&_0x19c615&&!_0x1dd4f5);},'onExecute':()=>_0x4c7e2f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x6a9a05=this['editor'],_0x3ca7a2=_0x6a9a05['locale'];this['_saveRevisionFormView']=new hs(_0x3ca7a2,_0x6a9a05['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x4eacd9{['changeId'];['_model'];constructor(_0x420336,_0x252ba4){super(_0x420336),this['_model']=_0x252ba4,this['changeId']=_0x252ba4['id'];const _0x5de394=this['bindTemplate'],_0x4cbdab=g(_0x420336,_0x252ba4['data']['isSuggestion']?'Suggested\x20by':'add'==_0x252ba4['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x252ba4['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5de394['to']('type',_0x4930b3=>'ck-revision-change__'+_0x4930b3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4cbdab}]},{'text':'\x20'+_0x252ba4['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x53a97b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x412bbe){super(),this['id']=_0x412bbe['id']||_0x452db2(),this['author']=_0x412bbe['author'],this['type']=_0x412bbe['type'],this['data']=_0x412bbe['data']||{},this['rootName']=_0x412bbe['rootName'],this['set']('createdAt',_0x412bbe['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(_0x5de80b,_0x3434a4){this['newRevisionId']=_0x5de80b,this['oldRevisionId']=_0x3434a4,this['changes']=new _0x4e76a3();}['_setChanges'](_0x1554f8){for(const _0x436a4d of _0x1554f8)this['changes']['add'](_0x436a4d);}}class m extends _0x563dd0{['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[_0x41f456,_0x5ef071,I,V];}constructor(_0x2c32cd){super(_0x2c32cd),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',(_0x4297aa,_0x5a38db,_0x5595a2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x588950=>{for(const _0x1d9abb of this['editor']['editing']['view']['document']['roots'])_0x5595a2?_0x588950['removeClass']('ck-editor__editable__overlay',_0x1d9abb):_0x588950['addClass']('ck-editor__editable__overlay',_0x1d9abb);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x59ac12=>null!==_0x59ac12),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x39ff7b,_0xbd6c04,_0x2a9be3)=>_0x39ff7b&&_0x2a9be3?_0xbd6c04['changes']['getIndex'](_0x2a9be3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x44ca1d,_0x3effb1)=>_0x44ca1d?_0x3effb1['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5ef071);}['init'](){const _0x16b21d=this['editor'],_0x4fa4bb=new pt(_0x16b21d,{'direction':'backward'}),_0x34bf1f=new pt(_0x16b21d,{'direction':'forward'});(_0x16b21d['commands']['add']('showPreviousChange',_0x4fa4bb),_0x16b21d['commands']['add']('showNextChange',_0x34bf1f),_0x16b21d['commands']['add']('restoreRevision',new wt(_0x16b21d)),this['on']('change:numberOfChanges',()=>{_0x4fa4bb['refresh'](),_0x34bf1f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x16b21d['enableReadOnlyMode']('revision-viewer'),_0x16b21d['plugins']['has']('WidgetToolbarRepository'))&&_0x16b21d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x298fee){return await this['_utils']['loadRevisionData'](_0x298fee,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x298fee);}async['getRevisionRootsAttributes'](_0xb7d2ec){return await this['_utils']['loadRevisionData'](_0xb7d2ec,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xb7d2ec);}async['compare'](_0x35c6b3,_0x2b9cab,_0x5c0436=!0x1){if(!this['isEnabled'])return;const _0x44ae29=this['diff'],_0x23ee6c=this['repository'],_0x43a109='string'==typeof _0x35c6b3?_0x23ee6c['getRevision'](_0x35c6b3):_0x35c6b3,_0x13ff77='string'==typeof _0x2b9cab?_0x23ee6c['getRevision'](_0x2b9cab):_0x2b9cab,_0x39cf06=_0x43a109['id'],_0x5df9d0=_0x13ff77?_0x13ff77['id']:null;if(!_0x5c0436&&this['diff']&&this['diff']['newRevisionId']===_0x39cf06&&this['diff']['oldRevisionId']===_0x5df9d0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x39cf06,_0x5df9d0);const _0x332a1a=this['_getRevisionsRange'](_0x43a109,_0x13ff77,!0x0)['map'](_0x21b4e4=>this['_utils']['loadRevisionData'](_0x21b4e4,this['adapter']));return _0x332a1a['push'](new Promise(_0x198256=>{setTimeout(_0x198256,0x14);})),Promise['all'](_0x332a1a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31280d=this['_getDiff'](_0x39cf06,_0x5df9d0);for(const _0x195341 of _0x31280d['changes'])this['_changeIdToChange']['set'](_0x195341['id'],_0x195341);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x20e8a1=>{for(const _0x23adcb of this['editor']['model']['document']['getRootNames']())_0x20e8a1['detachRoot'](_0x23adcb);for(const _0x1d6ce9 of Object['keys'](_0x31280d['model'])){const _0x239cf2=_0x20e8a1['addRoot'](_0x1d6ce9);for(const _0x4b5cb2 of Object['keys'](_0x31280d['attributes'][_0x1d6ce9]))_0x20e8a1['setAttribute'](_0x4b5cb2,_0x31280d['attributes'][_0x1d6ce9][_0x4b5cb2],_0x239cf2);_0x20e8a1['insert'](_0x31280d['model'][_0x1d6ce9],_0x239cf2,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31280d['changes'])),this['isReady']=!0x0;})['catch'](_0x3a05fc=>{console['error'](_0x3a05fc),this['_cleanUp'](),_0x44ae29&&(this['diff']=_0x44ae29),this['isReady']=!0x0;});}['addRevisionData'](_0x40ced8,_0x1fbfd0){const _0x1495ed=this['repository']['createRevision'](_0x40ced8);return _0x1495ed['on']('_update',(_0x2bbd76,_0x522cc4,_0x262d83)=>_0x1fbfd0(_0x522cc4,_0x262d83,_0x1495ed)),this['repository']['addRevision'](_0x1495ed),_0x1495ed;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5a09ea=>{for(const _0x4e420f of this['editor']['model']['document']['getRootNames']())_0x5a09ea['detachRoot'](_0x4e420f);});}['_sortAndFilterDiffChanges'](_0x48f711){const _0x17f80c=[],_0x3aea23=new Map();for(const _0xce4e0c of this['editor']['model']['document']['getRootNames']()){const _0x2c2e18=this['editor']['editing']['view']['getDomRoot'](_0xce4e0c);if(!_0x2c2e18)continue;const _0x56b7ef=_0x2c2e18['getClientRects']()['item'](0x0);_0x56b7ef&&(_0x17f80c['push'](_0xce4e0c),_0x3aea23['set'](_0xce4e0c,_0x56b7ef));}return _0x17f80c['sort']((_0x2aaa69,_0x349008)=>{const _0x586698=_0x3aea23['get'](_0x2aaa69),_0x10d634=_0x3aea23['get'](_0x349008);return _0x586698['y']-_0x10d634['y']||_0x586698['x']-_0x10d634['x'];}),(_0x48f711=_0x48f711['filter'](_0x46172a=>_0x17f80c['includes'](_0x46172a['rootName'])))['sort']((_0x264fb5,_0x422181)=>_0x17f80c['indexOf'](_0x264fb5['rootName'])-_0x17f80c['indexOf'](_0x422181['rootName'])),_0x48f711;}['_makeTape'](_0x3f0140){const _0xbda139=Array['from'](_0x3f0140['markers'])['filter'](([_0x15e41d,_0x33ef18])=>_0x15e41d['startsWith']('revision:')&&!_0x33ef18['isCollapsed']),_0x3f05f8=Array['from'](this['editor']['model']['createRangeIn'](_0x3f0140)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xbda139['length'])for(const _0x5c30d5 of _0x3f05f8){const [_0x183598,_0x46feb6]=_0xbda139[0x0],[,_0xb6ad24,_0x47176b]=_0x183598['split'](':');if(_0x46feb6['end']['isEqual'](_0x5c30d5['nextPosition'])&&_0xbda139['shift'](),(_0x5c30d5['previousPosition']['isEqual'](_0x46feb6['start'])||_0x5c30d5['previousPosition']['isAfter'](_0x46feb6['start']))&&('insertion'==_0xb6ad24?_0x5c30d5['isAdded']={'userId':_0x47176b}:'deletion'==_0xb6ad24&&(_0x5c30d5['isRemoved']={'userId':_0x47176b})),0x0==_0xbda139['length'])break;}return _0x3f05f8;}['_refreshStartEndIndex'](_0x2fd9c3){const _0x2c90fa=new Map();for(let _0x5ec1fc=0x0;_0x5ec1fc<_0x2fd9c3['length'];_0x5ec1fc++)'text'===_0x2fd9c3[_0x5ec1fc]['type']?(_0x2fd9c3[_0x5ec1fc]['item']['startIndex']=_0x5ec1fc,_0x2fd9c3[_0x5ec1fc]['item']['endIndex']=_0x5ec1fc):('elementStart'===_0x2fd9c3[_0x5ec1fc]['type']?_0x2fd9c3[_0x5ec1fc]['item']['startIndex']=_0x5ec1fc:'elementEnd'===_0x2fd9c3[_0x5ec1fc]['type']&&(_0x2fd9c3[_0x5ec1fc]['item']['endIndex']=_0x5ec1fc),_0x2c90fa['set'](_0x2fd9c3[_0x5ec1fc]['id'],_0x5ec1fc));for(const _0x5dcdbc of _0x2c90fa['values']())'elementStart'===_0x2fd9c3[_0x5dcdbc]['type']?_0x2fd9c3[_0x5dcdbc]['item']['endIndex']=_0x2c90fa['get'](_0x2fd9c3[_0x5dcdbc]['pairId']):'elementEnd'===_0x2fd9c3[_0x5dcdbc]['type']&&(_0x2fd9c3[_0x5dcdbc]['item']['startIndex']=_0x2c90fa['get'](_0x2fd9c3[_0x5dcdbc]['pairId']));}['_processTape'](_0x48cdf3){for(let _0x3ee0ff=0x0;_0x3ee0ff<_0x48cdf3['length'];_0x3ee0ff++){if('elementStart'===_0x48cdf3[_0x3ee0ff]['type'])_0x48cdf3[_0x3ee0ff]['item']['startIndex']=_0x3ee0ff;else{if('elementEnd'===_0x48cdf3[_0x3ee0ff]['type']){_0x48cdf3[_0x3ee0ff]['item']['endIndex']=_0x3ee0ff;const _0x127e4a=_0x48cdf3[_0x3ee0ff]['item']['startIndex'];_0x48cdf3[_0x127e4a]['pairId']=_0x48cdf3[_0x3ee0ff]['id'],_0x48cdf3[_0x3ee0ff]['pairId']=_0x48cdf3[_0x127e4a]['id'];}else _0x48cdf3[_0x3ee0ff]['item']['startIndex']=_0x3ee0ff,_0x48cdf3[_0x3ee0ff]['item']['endIndex']=_0x3ee0ff,_0x48cdf3[_0x3ee0ff]['pairId']=null;}_0x48cdf3[_0x3ee0ff]['markersStart']||(_0x48cdf3[_0x3ee0ff]['markersStart']=[],_0x48cdf3[_0x3ee0ff]['markersEnd']=[]);}}['_markInsertions'](_0x41034e,_0x378f02){const _0xae402f=_0x41034e['filter'](_0x47db8a=>!_0x47db8a['isAdded']);for(let _0x4be529=0x0;_0x4be529<_0x378f02['length'];_0x4be529++)_0x378f02[_0x4be529]['isAdded']&&(_0xae402f[_0x4be529]['isAdded']=_0x378f02[_0x4be529]['isAdded']);}['_getDiff'](_0x53eb39,_0x5c64b3=null){const _0x31ba22=this['repository']['getRevision'](_0x53eb39),_0x129b94=_0x5c64b3?this['repository']['getRevision'](_0x5c64b3):null,_0x3dfa29=this['_getRevisionsRange'](_0x31ba22,_0x129b94),_0x3884ca=_0x3dfa29[_0x3dfa29['length']-0x1],_0xa541cb=new Map(),_0x4d11b3={'model':{},'attributes':{},'changes':[]},_0x413d82=new Set(),_0x593cb3=new Map();for(let _0x5d695b=_0x3dfa29['length']-0x1;_0x5d695b>=0x0;_0x5d695b--){const _0x5a373c=_0x3dfa29[_0x5d695b];for(const _0x4d837c of Object['keys'](_0x5a373c['diffData']))if(_0x5a373c['diffData'][_0x4d837c]['attachChange']){const _0x1b02c4=_0x5a373c['diffData'][_0x4d837c]['attachChange'];_0x1b02c4['isAttached']?(_0x413d82['add'](_0x4d837c),_0x593cb3['has'](_0x4d837c)&&_0x593cb3['get'](_0x4d837c)['userId']==_0x1b02c4['userId']?_0x593cb3['delete'](_0x4d837c):_0x593cb3['set'](_0x4d837c,_0x1b02c4)):_0x593cb3['has'](_0x4d837c)?(_0x413d82['delete'](_0x4d837c),_0x593cb3['delete'](_0x4d837c)):(_0x413d82['add'](_0x4d837c),_0x593cb3['set'](_0x4d837c,_0x1b02c4));}else _0x413d82['add'](_0x4d837c);}for(const _0x37a55c of _0x413d82){const _0x336ba9=_0x593cb3['has'](_0x37a55c)&&!_0x593cb3['get'](_0x37a55c)['isAttached'];let _0x48c22c=_0x336ba9?_0x3dfa29['length']-0x1:0x0;const _0x1d58a9=_0x336ba9?-0x1:0x1;for(;_0x3dfa29[_0x48c22c];){const _0x40d1f8=_0x3dfa29[_0x48c22c];if(_0x40d1f8['diffData'][_0x37a55c]){const _0x446d5f=_0x336ba9?_0x40d1f8['diffData'][_0x37a55c]['attributesBefore']:_0x40d1f8['diffData'][_0x37a55c]['attributesAfter'];_0x4d11b3['attributes'][_0x37a55c]=_0x446d5f?_0x1ce38b(_0x446d5f):{};break;}_0x48c22c+=_0x1d58a9;}}for(const _0x1ce65c of _0x3dfa29){_0x1ce65c['model']={};for(const _0x5d104f of _0x1ce65c['authors'])_0xa541cb['set'](_0x5d104f['id'],_0x5d104f);for(const _0x599f29 of _0x413d82){const _0x3f934f=_0x1ce65c['diffData'][_0x599f29]?_0x1ce65c['diffData'][_0x599f29]['insertions']:'[]',_0x30e3de=_0x1ce65c['diffData'][_0x599f29]?_0x1ce65c['diffData'][_0x599f29]['deletions']:'[]';_0x1ce65c['model'][_0x599f29]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3f934f),'deletions':this['_utils']['_makeModelFromViewString'](_0x30e3de)};}}for(const _0x5d0a48 of _0x413d82){let _0x30a0c6=null,_0x11022b=0x0;const _0x539921=new Map(Array['from'](_0x31ba22['model'][_0x5d0a48]['insertions']['markers'])['filter'](([_0x108d30])=>!_0x108d30['startsWith']('revision:')));let _0x5c2062=0x0;for(const _0x5aad6a of _0x3dfa29){const _0x59683d=this['_makeTape'](_0x5aad6a['model'][_0x5d0a48]['insertions']);_0x5aad6a==_0x31ba22?(_0x30a0c6=_0x59683d,_0x11022b=_0x30a0c6['length'],_0x30a0c6['forEach'](_0x2ff6a9=>{_0x2ff6a9['id']=_0x5c2062++;}),this['_processTape'](_0x30a0c6)):this['_markInsertions'](_0x30a0c6,_0x59683d);const _0x2a4291=_0x30a0c6['filter'](_0x1d0906=>!_0x1d0906['isAdded'])['map'](_0x190146=>_0x190146['id']);let _0x4b907a=0x0;const _0x20643d=this['_makeTape'](_0x5aad6a['model'][_0x5d0a48]['deletions']);_0x20643d['forEach'](_0x3e4585=>{_0x3e4585['isRemoved']?_0x3e4585['id']=_0x11022b++:_0x3e4585['id']=_0x2a4291[_0x4b907a++];}),this['_processTape'](_0x20643d),this['_setDistance'](_0x30a0c6,'isAdded'),this['_setDistance'](_0x20643d,'isRemoved'),_0x5aad6a==_0x31ba22&&this['_markMarkers'](_0x30a0c6,_0x539921),_0x30a0c6=this['_joinTapes'](_0x30a0c6,_0x20643d),this['_refreshStartEndIndex'](_0x30a0c6),this['_setDistance'](_0x30a0c6,'isRemoved');}_0x30a0c6=_0x30a0c6['filter'](_0x23cc86=>!(_0x23cc86['isAdded']&&_0x23cc86['isRemoved']));const _0x4c303d=new Map(_0x3884ca['model'][_0x5d0a48]['deletions']['markers']),_0x4310d8=new Set(_0x539921['keys']());for(const _0x3ae524 of _0x4c303d['keys']())_0x4310d8['delete'](_0x3ae524);this['_markSuggestions'](_0x30a0c6,_0x4310d8),this['_fixObsoleteTags'](_0x30a0c6),_0x30a0c6=this['_removeMissingPairs'](_0x30a0c6),_0x30a0c6=this['_markMismatchedRemovedTags'](_0x30a0c6),_0x30a0c6=this['_removeUnsupportedChanges'](_0x30a0c6);const {root:_0x48d782,changes:_0x5574df}=this['_makeModelFromTape'](_0x30a0c6,_0xa541cb,_0x5d0a48);_0x4d11b3['model'][_0x5d0a48]=_0x48d782;const _0x310f0d=_0x593cb3['get'](_0x5d0a48);if(_0x310f0d){const _0x5d14f7=_0xa541cb['get'](_0x310f0d['userId']),_0x153c35=new r({'author':_0x5d14f7,'type':_0x310f0d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d0a48});_0x5574df['unshift'](_0x153c35),_0x4d11b3['attributes'][_0x5d0a48]['revisionHistoryAttachChange']=_0x153c35['id'];}_0x4d11b3['changes']=_0x4d11b3['changes']['concat'](_0x5574df);}return _0x4d11b3;}['_markMarkers'](_0x28bdc8,_0x32a105){for(let _0x3e61f5=0x0;_0x3e61f5<_0x28bdc8['length'];_0x3e61f5++)for(const [_0x3789b9,_0x1646e8]of _0x32a105)!_0x1646e8['isCollapsed']&&_0x1646e8['start']['isEqual'](_0x28bdc8[_0x3e61f5]['previousPosition'])&&_0x28bdc8[_0x3e61f5]['markersStart']['push'](_0x3789b9),_0x1646e8['end']['isEqual'](_0x28bdc8[_0x3e61f5]['nextPosition'])&&_0x28bdc8[_0x3e61f5]['markersEnd']['push'](_0x3789b9);}['_joinTapes'](_0x548c40,_0x557634){let _0x15edad=[],_0x3150da=0x0,_0x40ef7c=0x0;for(;_0x3150da<_0x548c40['length']||_0x40ef7c<_0x557634['length'];){const _0x167c48=_0x548c40[_0x3150da]||{},_0x8d7016=_0x557634[_0x40ef7c]||{};if(_0x167c48['id']==_0x8d7016['id'])_0x3150da++,_0x40ef7c++,_0x15edad['push'](_0x167c48);else{if(_0x8d7016['isRemoved']&&_0x167c48['isAdded']){const {commonTape:_0x36df5f,iEnd:_0x5a0cdd,jEnd:_0x20dc39}=this['_threeWayMerge'](_0x548c40,_0x3150da,_0x557634,_0x40ef7c);_0x15edad=_0x15edad['concat'](_0x36df5f),_0x3150da=_0x5a0cdd,_0x40ef7c=_0x20dc39;}else _0x8d7016['isRemoved']?(_0x40ef7c++,_0x15edad['push'](_0x8d7016)):(_0x3150da++,_0x15edad['push'](_0x167c48));}}return _0x15edad;}['_markSuggestions'](_0x42f153,_0x10879b){const _0x2976e8=[];for(let _0x4cbeb3=0x0;_0x4cbeb3<_0x42f153['length'];_0x4cbeb3++){for(let _0x4049e6=0x0;_0x4049e6<_0x42f153[_0x4cbeb3]['markersStart']['length'];_0x4049e6++){const _0x326b37=_0x42f153[_0x4cbeb3]['markersStart'][_0x4049e6];if(!_0x10879b['has'](_0x326b37))continue;const {group:_0x30521b,type:_0x17082b,authorId:_0x27079f}=_0x117c2d(_0x326b37);'revision-suggestion'!=_0x30521b||'insertion'!=_0x17082b&&'deletion'!=_0x17082b||(_0x2976e8['unshift']({'type':_0x17082b,'name':_0x326b37,'userId':_0x27079f}),_0x42f153[_0x4cbeb3]['markersStart']['splice'](_0x4049e6,0x1),_0x4049e6--);}_0x25aeef(_0x42f153[_0x4cbeb3]);for(let _0x3b9275=0x0;_0x3b9275<_0x42f153[_0x4cbeb3]['markersEnd']['length'];_0x3b9275++){const _0x5c3b48=_0x42f153[_0x4cbeb3]['markersEnd'][_0x3b9275];if(!_0x10879b['has'](_0x5c3b48))continue;const {group:_0x1b589f,type:_0x3fa006}=_0x117c2d(_0x5c3b48);if('revision-suggestion'!=_0x1b589f||'insertion'!=_0x3fa006&&'deletion'!=_0x3fa006)continue;_0x42f153[_0x4cbeb3]['markersEnd']['splice'](_0x3b9275,0x1),_0x3b9275--;const _0x3a5534=_0x2976e8['findIndex'](_0x23b8a2=>_0x23b8a2['name']==_0x5c3b48);_0x3a5534>-0x1&&_0x2976e8['splice'](_0x3a5534,0x1);}}function _0x117c2d(_0x534c38){const _0x334ccb=_0x534c38['split'](':');return{'group':_0x334ccb[0x0],'type':_0x334ccb[0x1],'subType':_0x334ccb['length']>=0x5?_0x334ccb[0x2]:null,'id':_0x334ccb['length']<0x5?_0x334ccb[0x2]:_0x334ccb[0x3],'authorId':_0x334ccb['length']<0x5?_0x334ccb[0x3]:_0x334ccb[0x4],'markerCount':0x6==_0x334ccb['length']?_0x334ccb[0x5]:null};}function _0x25aeef(_0x3a98b9){for(let _0x107e5c=0x0;_0x107e5c<_0x2976e8['length'];_0x107e5c++){if(_0x3a98b9['isAdded']&&'insertion'==_0x2976e8[_0x107e5c]['type'])return _0x3a98b9['isAddSuggestion']=_0x2976e8[_0x107e5c],void delete _0x3a98b9['isAdded'];if(!_0x3a98b9['isAdded']&&!_0x3a98b9['isRemoved']&&'deletion'==_0x2976e8[_0x107e5c]['type'])return void(_0x3a98b9['isRemoveSuggestion']=_0x2976e8[_0x107e5c]);}}}['_setDistance'](_0x34b429,_0x326271){let _0x3c963b=0x0,_0x5b72fe=!0x1;const _0x439986=new Map();for(const _0x16b779 of _0x34b429)_0x16b779[_0x326271]?_0x5b72fe&&(_0x3c963b++,_0x5b72fe=!0x1):(_0x3c963b++,_0x5b72fe=!0x0),_0x439986['set'](_0x16b779['id'],_0x3c963b);for(let _0x368ea0=0x0;_0x368ea0<_0x34b429['length'];_0x368ea0++){if('isRemoved'==_0x326271&&_0x34b429[_0x368ea0]['isAdded']||'isAdded'==_0x326271&&_0x34b429[_0x368ea0]['isRemoved'])continue;if('text'==_0x34b429[_0x368ea0]['type']){_0x34b429[_0x368ea0]['distance']=0x0;continue;}const _0x41d5c5=_0x439986['get'](_0x34b429[_0x368ea0]['pairId']),_0x5e201f=_0x439986['get'](_0x34b429[_0x368ea0]['id']);_0x34b429[_0x368ea0]['distance']=_0x41d5c5-_0x5e201f;}}['_getRevisionsRange'](_0x5e4f2b,_0x23a75b,_0x1c5100=!0x1){const _0x1cd181=[];let _0x5ddc31=this['repository']['getIndex'](_0x5e4f2b),_0x49ee45=this['repository']['getIndex'](_0x23a75b);for(-0x1==_0x49ee45&&(_0x49ee45=this['repository']['_revisions']['length'],_0x1c5100=!0x1);_0x5ddc31<_0x49ee45;)_0x1cd181['push'](this['repository']['getRevision'](_0x5ddc31)),_0x5ddc31++;return _0x1c5100&&_0x1cd181['push'](this['repository']['getRevision'](_0x5ddc31)),_0x1cd181;}['_threeWayMerge'](_0x10d777,_0x540bd8,_0x5893fc,_0x41f407){const _0x5888c6=this['editor']['model']['schema'];let _0x2d5da7=_0x540bd8;for(;_0x10d777[_0x2d5da7]&&_0x10d777[_0x2d5da7]['isAdded'];)_0x2d5da7++;let _0x2d44d6=_0x41f407;for(;_0x5893fc[_0x2d44d6]&&_0x5893fc[_0x2d44d6]['isRemoved'];)_0x2d44d6++;_0x528afd(_0x10d777,_0x540bd8,_0x2d5da7),_0x528afd(_0x5893fc,_0x41f407,_0x2d44d6);const _0x5917f0=_0x5893fc['slice'](_0x41f407,_0x2d44d6)['concat'](_0x10d777['slice'](_0x540bd8,_0x2d5da7));return _0x5917f0['sort']((_0x1cdcd5,_0x407ef4)=>_0x1cdcd5['side']!=_0x407ef4['side']?_0x1cdcd5['side']-_0x407ef4['side']:_0x1cdcd5['level']!=_0x407ef4['level']?_0x1cdcd5['level']-_0x407ef4['level']:_0x1cdcd5['distance']!=_0x407ef4['distance']?_0x407ef4['distance']-_0x1cdcd5['distance']:!!_0x1cdcd5['isAdded']!=!!_0x407ef4['isAdded']?-0x1==_0x1cdcd5['side']||0x0==_0x1cdcd5['side']?_0x1cdcd5['isAdded']?-0x1:0x1:_0x1cdcd5['isAdded']?0x1:-0x1:_0x1cdcd5['index']-_0x407ef4['index']),{'commonTape':_0x5917f0,'iEnd':_0x2d5da7,'jEnd':_0x2d44d6};function _0x528afd(_0xe8b7aa,_0x313290,_0x510684){let _0x2747ad=-0x1,_0x524fa4=Number['POSITIVE_INFINITY'],_0x406ab4=!0x0;for(let _0x5b8cdb=_0x313290;_0x5b8cdb<_0x510684;_0x5b8cdb++)if(_0x5888c6['isInline'](_0xe8b7aa[_0x5b8cdb]['item'])||(_0x406ab4=!0x1),_0xe8b7aa[_0x5b8cdb]['item']['startIndex']<_0x313290&&(_0x2747ad=_0x5b8cdb),_0xe8b7aa[_0x5b8cdb]['item']['endIndex']>=_0x510684){_0x524fa4=_0x5b8cdb;break;}_0x406ab4&&(_0x2747ad=_0x510684-0x1);for(let _0x23a3f7=_0x313290;_0x23a3f7<_0x510684;_0x23a3f7++)_0xe8b7aa[_0x23a3f7]['side']=_0x23a3f7<=_0x2747ad?-0x1:_0x23a3f7<_0x524fa4?0x0:0x1,_0xe8b7aa[_0x23a3f7]['index']=_0x23a3f7;let _0x969a19=0x0;for(let _0x50a20c=_0x313290;_0x50a20c<=_0x2747ad;_0x50a20c++)0x0==_0xe8b7aa[_0x50a20c]['distance']?_0xe8b7aa[_0x50a20c]['level']=_0x969a19:(_0x969a19++,_0xe8b7aa[_0x50a20c]['level']=_0x969a19,_0x969a19++);for(let _0x267cc7=_0x313290;_0x267cc7<_0x510684;_0x267cc7++)0x0==_0xe8b7aa[_0x267cc7]['side']&&(_0xe8b7aa[_0x267cc7]['level']=_0x969a19);_0x969a19=0x0;for(let _0xfe7411=_0x510684-0x1;_0xfe7411>=_0x524fa4;_0xfe7411--)0x0==_0xe8b7aa[_0xfe7411]['distance']?_0xe8b7aa[_0xfe7411]['level']=_0x969a19:(_0x969a19--,_0xe8b7aa[_0xfe7411]['level']=_0x969a19,_0x969a19--);}}['_fixObsoleteTags'](_0x5cea59){const _0x328527=new Map(),_0x1e2bab=this['editor']['model']['schema'];for(let _0x30dc9e=0x1;_0x30dc9e<_0x5cea59['length'];_0x30dc9e++){let _0x25fbe3,_0x2acbb2,_0x2d5a33;const _0xe4a871=_0x5cea59[_0x30dc9e],_0x11f486=_0x5cea59[_0x30dc9e-0x1];if('text'==_0xe4a871['type'])continue;if(_0xe4a871['type']!=_0x11f486['type'])continue;if(!_0x1e2bab['isBlock'](_0x11f486['item'])||_0x1e2bab['isLimit'](_0x11f486['item']))continue;if(!_0x1e2bab['isBlock'](_0xe4a871['item'])||_0x1e2bab['isLimit'](_0xe4a871['item']))continue;if((_0x5cea59[_0x30dc9e]['isAdded']||_0x5cea59[_0x30dc9e]['isAddSuggestion'])&&_0x5cea59[_0x30dc9e-0x1]['isRemoved'])_0x25fbe3=_0x5cea59[_0x30dc9e],_0x2acbb2=_0x5cea59[_0x30dc9e-0x1],_0x2d5a33=_0x30dc9e-0x1;else{if(!_0x5cea59[_0x30dc9e]['isRemoved']||!_0x5cea59[_0x30dc9e-0x1]['isAdded']&&!_0x5cea59[_0x30dc9e-0x1]['isAddSuggestion'])continue;_0x25fbe3=_0x5cea59[_0x30dc9e-0x1],_0x2acbb2=_0x5cea59[_0x30dc9e],_0x2d5a33=_0x30dc9e;}const _0x284b0a=_0x25fbe3['level']==_0x2acbb2['level'],_0x3447d8=Math['abs'](_0x25fbe3['level'])<Math['abs'](_0x2acbb2['level'])&&0x0==_0x2acbb2['distance'];(_0x284b0a||_0x3447d8)&&(_0x328527['set'](_0x2acbb2['id'],_0x25fbe3['id']),_0x5cea59['splice'](_0x2d5a33,0x1),_0x30dc9e--,_0x25fbe3['isAdded']=!0x1);}for(let _0x449ae4=0x0;_0x449ae4<_0x5cea59['length'];_0x449ae4++)_0x328527['has'](_0x5cea59[_0x449ae4]['pairId'])&&(_0x5cea59[_0x449ae4]['pairId']=_0x328527['get'](_0x5cea59[_0x449ae4]['pairId']));}['_removeMissingPairs'](_0x1d66fa){const _0x595034=new Set(_0x1d66fa['map'](_0x57b084=>_0x57b084['id']));for(let _0x20950a=0x0;_0x20950a<_0x1d66fa['length'];_0x20950a++)_0x595034['has'](_0x1d66fa[_0x20950a]['pairId'])||0x0==_0x1d66fa[_0x20950a]['distance']||(_0x1d66fa[_0x20950a]['isIncorrect']=!0x0);return _0x1d66fa['filter'](_0x4cc219=>!_0x4cc219['isIncorrect']);}['_markMismatchedRemovedTags'](_0x189b4e){const _0x4d8f08=new Set();for(let _0xb827da=0x0;_0xb827da<_0x189b4e['length'];_0xb827da++){if(_0x4d8f08['has'](_0x189b4e[_0xb827da]['id'])&&_0x189b4e[_0xb827da]['isRemoved']&&(_0x189b4e[_0xb827da]['isIncorrect']=!0x0),_0x189b4e[_0xb827da]['isIncorrect'])continue;if(0x0==_0x189b4e[_0xb827da]['distance'])continue;if('elementStart'!=_0x189b4e[_0xb827da]['type'])continue;if(null==_0x189b4e[_0xb827da]['pairId'])continue;let _0x43998f=_0xb827da+0x1,_0x581e77=0x0;for(;_0x189b4e[_0x43998f]['id']!=_0x189b4e[_0xb827da]['pairId'];)'elementStart'==_0x189b4e[_0x43998f]['type']?_0x581e77++:'elementEnd'==_0x189b4e[_0x43998f]['type']&&_0x581e77--,_0x43998f++;if(0x0!=_0x581e77){if(_0x189b4e[_0xb827da]['isRemoved'])_0x189b4e[_0xb827da]['isIncorrect']=!0x0;else{for(;_0x43998f!=_0xb827da;)_0x189b4e[_0x43998f]['isRemoved']&&0x0!=_0x189b4e[_0x43998f]['distance']&&(_0x189b4e[_0x43998f]['isIncorrect']=!0x0,_0x4d8f08['add'](_0x189b4e[_0x43998f]['pairId'])),_0x43998f--;}}}return _0x189b4e['filter'](_0x3b02cf=>!_0x3b02cf['isIncorrect']);}['_removeUnsupportedChanges'](_0xfd7ca9){const _0x584bf5=this['editor']['model']['schema'];for(let _0x35c017=0x0;_0x35c017<_0xfd7ca9['length'];_0x35c017++){if(!(_0xfd7ca9[_0x35c017]['isAdded']||_0xfd7ca9[_0x35c017]['isAddSuggestion']||_0xfd7ca9[_0x35c017]['isRemoved']||_0xfd7ca9[_0x35c017]['isRemoveSuggestion']))continue;if(0x0==_0xfd7ca9[_0x35c017]['distance'])continue;const _0x571bdc=_0xfd7ca9[_0x35c017]['item'];_0x584bf5['isBlock'](_0x571bdc)||_0x584bf5['isLimit'](_0x571bdc)||(_0xfd7ca9[_0x35c017]['isAdded']&&delete _0xfd7ca9[_0x35c017]['isAdded'],_0xfd7ca9[_0x35c017]['isAddSuggestion']&&delete _0xfd7ca9[_0x35c017]['isAddSuggestion'],_0xfd7ca9[_0x35c017]['isRemoveSuggestion']&&delete _0xfd7ca9[_0x35c017]['isRemoveSuggestion'],_0xfd7ca9[_0x35c017]['isRemoved']&&(_0xfd7ca9[_0x35c017]['isIncorrect']=!0x0));}return _0xfd7ca9['filter'](_0x1e52a3=>!_0x1e52a3['isIncorrect']);}['_makeModelFromTape'](_0x4f4107,_0x37fae7,_0xc66b61){const _0x438aae=new gt(),_0x17e624=[],_0x27070e=new Map(),_0x1a3ffd=this['editor']['model'],_0x3f362e=_0x1a3ffd['schema'],_0x32769c=[_0x438aae],_0x2abb6b={},_0x3e11d1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e3b84=null;const _0x19c696=[0x0];for(let _0x45fe31=0x0;_0x45fe31<_0x4f4107['length'];_0x45fe31++)if('elementStart'===_0x4f4107[_0x45fe31]['type']){_0x4f4107[_0x45fe31]['previousPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696);const _0x5ad11a=new ut(_0x4f4107[_0x45fe31]['item']['name'],_0x4f4107[_0x45fe31]['item']['getAttributes']());_0x32769c[0x0]['_appendChild'](_0x5ad11a),_0x19c696['push'](0x0),_0x32769c['unshift'](_0x5ad11a),_0x4f4107[_0x45fe31]['nextPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696);}else'elementEnd'===_0x4f4107[_0x45fe31]['type']?(_0x32769c['shift'](),_0x4f4107[_0x45fe31]['previousPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696),_0x19c696['pop'](),_0x19c696[_0x19c696['length']-0x1]++,_0x4f4107[_0x45fe31]['nextPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696)):(_0x4f4107[_0x45fe31]['previousPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696),_0x5e3b84?_0x5e3b84['_data']+=_0x4f4107[_0x45fe31]['item']['data']:_0x5e3b84=new mt(_0x4f4107[_0x45fe31]['item']['data'],_0x4f4107[_0x45fe31]['item']['getAttributes']()),_0x4f4107[_0x45fe31+0x1]&&'text'===_0x4f4107[_0x45fe31+0x1]['type']&&_0x2bebcd(_0x5e3b84,_0x4f4107[_0x45fe31+0x1]['item'])||(_0x32769c[0x0]['_appendChild'](_0x5e3b84),_0x5e3b84=null),_0x19c696[_0x19c696['length']-0x1]+=_0x4f4107[_0x45fe31]['item']['offsetSize'],_0x4f4107[_0x45fe31]['nextPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696));for(let _0x5ecf3f=0x0;_0x5ecf3f<_0x4f4107['length'];_0x5ecf3f++){const _0x1c7338=_0x4f4107[_0x5ecf3f]['previousPosition'],_0x3bedcd=_0x4f4107[_0x5ecf3f]['nextPosition'];for(const _0x39573d of _0x4f4107[_0x5ecf3f]['markersStart'])_0x27070e['set'](_0x39573d,{'start':_0x1c7338,'end':null});_0x1206a5('isRemoveSuggestion',_0x5ecf3f,_0x1c7338,_0x3bedcd),_0x1206a5('isAddSuggestion',_0x5ecf3f,_0x1c7338,_0x3bedcd),_0x1206a5('isRemoved',_0x5ecf3f,_0x1c7338,_0x3bedcd),_0x1206a5('isAdded',_0x5ecf3f,_0x1c7338,_0x3bedcd);for(const _0x516d9c of _0x4f4107[_0x5ecf3f]['markersEnd']){const _0x12ec7e=_0x27070e['get'](_0x516d9c);_0x12ec7e?_0x12ec7e['end']=_0x3bedcd:_0x27070e['set'](_0x516d9c,{'start':_0x3bedcd,'end':_0x3bedcd});}}for(const [_0x4913e9,_0x28ac1c]of _0x27070e){const _0x93323d=this['editor']['model']['createRange'](_0x28ac1c['start'],_0x28ac1c['end']);_0x438aae['markers']['set'](_0x4913e9,_0x93323d);}return _0x17e624['sort']((_0x4d95c6,_0x4ca16e)=>{const _0x56a2f3=_0x438aae['markers']['get']('revision:'+_0x4d95c6['id']),_0x5817cc=_0x438aae['markers']['get']('revision:'+_0x4ca16e['id']);return _0x56a2f3['start']['isBefore'](_0x5817cc['start'])?-0x1:_0x56a2f3['start']['isAfter'](_0x5817cc['start'])?0x1:_0x56a2f3['end']['isBefore'](_0x5817cc['end'])?-0x1:_0x56a2f3['end']['isAfter'](_0x5817cc['end'])?0x1:'add'===_0x4d95c6['type']?-0x1:0x1;}),{'root':_0x438aae,'changes':_0x17e624};function _0x1206a5(_0x1307ab,_0x3e1c1e,_0x37c77a,_0x3f7982){const _0x1cb568=!!_0x4f4107[_0x3e1c1e][_0x1307ab],_0x314155=_0x1cb568?_0x4f4107[_0x3e1c1e][_0x1307ab]['userId']:null,_0x8c9c86=_0x3e1c1e===_0x4f4107['length']-0x1,_0x232de6=_0x3e11d1[_0x1307ab][0x0],_0x5a27b1=_0x3f362e['isObject'](_0x4f4107[_0x3e1c1e]['item']);!_0x2abb6b[_0x1307ab]&&_0x1cb568?_0x2abb6b[_0x1307ab]={'start':_0x37c77a,'tapeItem':_0x4f4107[_0x3e1c1e],'userId':_0x314155,'type':_0x1307ab}:_0x2abb6b[_0x1307ab]&&!_0x1cb568?(_0x2abb6b[_0x1307ab]['end']=_0x37c77a,_0x4ba125(_0x2abb6b[_0x1307ab]),_0x2abb6b[_0x1307ab]=null):_0x2abb6b[_0x1307ab]&&_0x1cb568&&_0x2abb6b[_0x1307ab]['userId']!==_0x314155&&(_0x2abb6b[_0x1307ab]['end']=_0x37c77a,_0x232de6&&_0x232de6['userId']===_0x2abb6b[_0x1307ab]['userId']||_0x4ba125(_0x2abb6b[_0x1307ab]),_0x2abb6b[_0x1307ab]={'start':_0x37c77a,'tapeItem':_0x4f4107[_0x3e1c1e],'userId':_0x314155,'type':_0x1307ab}),_0x2abb6b[_0x1307ab]&&_0x5a27b1&&('elementStart'!==_0x4f4107[_0x3e1c1e]['type']||_0x232de6&&_0x232de6['userId']===_0x314155||_0x3e11d1[_0x1307ab]['unshift']({'userId':_0x314155,'object':_0x4f4107[_0x3e1c1e]['item'],'change':_0x2abb6b[_0x1307ab]}),'elementEnd'===_0x4f4107[_0x3e1c1e]['type']&&_0x232de6&&_0x232de6['object']===_0x4f4107[_0x3e1c1e]['item']&&(_0x3e11d1[_0x1307ab]['shift'](),_0x2abb6b[_0x1307ab]=_0x232de6['change'])),_0x2abb6b[_0x1307ab]&&_0x8c9c86&&(_0x2abb6b[_0x1307ab]['end']=_0x3f7982,_0x4ba125(_0x2abb6b[_0x1307ab]),_0x2abb6b[_0x1307ab]=null);}function _0x4ba125({start:_0xa1e845,end:_0x30365d,tapeItem:_0x42c08a,userId:_0x55df88,type:_0x4ad696}){const _0x4f2d98=_0x42c08a['item'],_0xf893d5=_0x1a3ffd['schema']['isBlock'](_0x4f2d98)&&!_0x1a3ffd['schema']['isLimit'](_0x4f2d98),_0x5741e2=_0xa1e845['nodeAfter']==_0x30365d['parent']&&_0x30365d['isAtStart'];if(_0xf893d5&&_0x5741e2)return;const _0x59461f=_0x1a3ffd['createRange'](_0xa1e845,_0x30365d),_0x2ea663=_0x37fae7['get'](_0x55df88),_0x8dcee5=new r({'author':_0x2ea663,'type':'isAdded'==_0x4ad696||'isAddSuggestion'==_0x4ad696?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4ad696||'isRemoveSuggestion'==_0x4ad696},'createdAt':new Date(),'rootName':_0xc66b61});_0x17e624['push'](_0x8dcee5),_0x438aae['markers']['set']('revision:'+_0x8dcee5['id'],_0x59461f);}function _0x2bebcd(_0x3ed07f,_0x50b8b7){const _0x11491c=_0x3ed07f['getAttributes'](),_0x3a361a=_0x50b8b7['getAttributes']();for(const _0x5cd64f of _0x11491c){if(_0x5cd64f[0x1]!==_0x50b8b7['getAttribute'](_0x5cd64f[0x0]))return!0x1;_0x3a361a['next']();}return _0x3a361a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5d8447=>{const _0x102a4f=_0x5d8447['markerName']['split'](':')[0x1],_0xa04e0c=this['_getChangeFromId'](_0x102a4f);if(!_0xa04e0c)return null;const _0x1bf9cf='add'==_0xa04e0c['type']?'insertion':'deletion',_0x5aa773=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1bf9cf];return _0xa04e0c['data']['isSuggestion']&&_0x5aa773['push']('ck-suggestion-marker-'+_0x1bf9cf+'-new'),this['activeChange']==_0xa04e0c&&_0x5aa773['push']('ck-suggestion-marker--active'),{'classes':_0x5aa773,'attributes':{'data-change-id':_0x102a4f}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x232efb=>{_0x232efb['on']('element:pre',(_0x329439,_0x1df468,_0x1124a8)=>{const _0x2f9209=_0x1df468['viewItem']['getChild'](0x0);if(!_0x2f9209||!_0x2f9209['is']('element','code'))return;if(!_0x1124a8['consumable']['consume'](_0x2f9209,{'attributes':['vid_start','vid_end']}))return;const _0x4713bc=_0x1df468['modelRange']['start']['nodeAfter'];_0x1124a8['writer']['setAttribute']('vid_start',_0x2f9209['getAttribute']('vid_start'),_0x4713bc),_0x1124a8['writer']['setAttribute']('vid_end',_0x2f9209['getAttribute']('vid_end'),_0x4713bc);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x49a420=>{_0x49a420['on']('element',(_0x18fd8a,_0x57f3f8,_0x27634e)=>{if(!_0x27634e['consumable']['consume'](_0x57f3f8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x57f3f8['modelRange']['isCollapsed'])return;const _0xbe47ae=_0x57f3f8['modelRange']['start']['nodeAfter'];_0xbe47ae['hasAttribute']('vid_start')||_0xbe47ae['hasAttribute']('vid')||(_0x27634e['writer']['setAttribute']('vid_start',_0x57f3f8['viewItem']['getAttribute']('vid_start'),_0xbe47ae),_0x27634e['writer']['setAttribute']('vid_end',_0x57f3f8['viewItem']['getAttribute']('vid_end'),_0xbe47ae));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x491c6a=>_0x491c6a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x590ad3,[,_0x430999])=>{['vid_start','vid_end','vid']['includes'](_0x430999)&&(_0x590ad3['return']=!0x0,_0x590ad3['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5ec2ab=>{_0x5ec2ab['on']('attribute:vid',(_0x6b2263,_0x23d278,_0x5e52d7)=>{if('\x20'!=_0x23d278['item']['data']||_0x23d278['item']['parent']['maxOffset']>0x1)return;if(!_0x5e52d7['consumable']['consume'](_0x23d278['item'],_0x6b2263['name']))return;const _0x372eb8=_0x5e52d7['writer'],_0x13c1cf=_0x5e52d7['mapper']['toViewRange'](_0x23d278['range']);_0x372eb8['wrap'](_0x13c1cf,_0x372eb8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5cda7f){const _0x213661=_0x5cda7f['plugins']['get']('RevisionViewer');return(_0x267102,_0x19a7ab,_0x1b3716)=>{const _0x2da97e=_0x19a7ab['markerName']['split'](':')[0x1],_0x567757=_0x213661['_getChangeFromId'](_0x2da97e);if(!_0x567757)return null;const _0x4d049f='add'==_0x567757['type']?'split':'merge';if(!_0x1b3716['consumable']['test'](_0x19a7ab['markerRange'],_0x267102['name']))return;const _0x25eeab=_0x19a7ab['markerRange']['getWalker'](),_0x32d0a2=_0x19a7ab['markerRange']['start'],_0x2e9a4d=_0x5cda7f['model']['schema'];let _0x1757bc=null,_0x56774c=null,_0x254f63=!0x1,_0x15dca0=!0x1;for(const _0x4e37d2 of _0x25eeab){const _0x2a9297=_0x4e37d2['item'];_0x254f63=_0x254f63||_0x2e9a4d['isContent'](_0x2a9297);const _0x4fc2b1=_0x1b3716['mapper']['toViewElement'](_0x2a9297);if(_0x4fc2b1&&_0x4fc2b1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e37d2['type']&&(_0x2e9a4d['isBlock'](_0x2a9297)&&!_0x2e9a4d['isLimit'](_0x2a9297)&&(_0x2a9297['nextSibling']||_0x32d0a2['isAtEnd']?_0x1757bc&&_0x1757bc['parent']==_0x2a9297||(_0x1757bc=_0x2a9297,_0x35d1f6(_0x4e37d2['previousPosition']),_0x15dca0=!0x0):_0x56774c=_0x56774c||_0x4e37d2['previousPosition']));}function _0x35d1f6(_0x46a271){const _0x2a3c02=_0x1b3716['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d049f}),_0x48af54=_0x1b3716['mapper']['toViewPosition'](_0x46a271);_0x567757['data']['isSuggestion']&&_0x1b3716['writer']['addClass']('ck-suggestion-marker-'+_0x4d049f+'-new',_0x2a3c02),_0x213661['activeChange']==_0x567757&&_0x1b3716['writer']['addClass']('ck-suggestion-marker--active',_0x2a3c02),_0x1b3716['writer']['insert'](_0x48af54,_0x2a3c02),_0x1b3716['mapper']['bindElementToMarker'](_0x2a3c02,_0x19a7ab['markerName']);}_0x254f63||_0x15dca0||!_0x56774c||_0x35d1f6(_0x56774c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x59da04,_0x747469,_0x25565f)=>{const _0x425231=_0x25565f['mapper']['markerNameToElements'](_0x747469['markerName']);if(_0x425231){for(const _0x7c4346 of _0x425231)(_0x7c4346['hasClass']('ck-suggestion-marker-split')||_0x7c4346['hasClass']('ck-suggestion-marker-merge'))&&(_0x25565f['mapper']['unbindElementFromMarkerName'](_0x7c4346,_0x747469['markerName']),_0x25565f['writer']['remove'](_0x7c4346));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x177506,_0x241171,_0x306ecf)=>{const _0x23b303=_0x241171['markerName']['split'](':')[0x1],_0x20fa75=this['_getChangeFromId'](_0x23b303);if(!_0x20fa75)return null;const _0x4a6abb='add'==_0x20fa75['type']?'split':'merge';if(_0x306ecf['consumable']['test'](_0x241171['markerRange'],_0x177506['name']))for(const _0x4676e4 of _0x241171['markerRange']['getItems']()){if(!_0x4676e4['is']('element','softBreak'))continue;const _0x150348=_0x306ecf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a6abb}),_0x1b140e=_0x306ecf['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4676e4));_0x20fa75['data']['isSuggestion']&&_0x306ecf['writer']['addClass']('ck-suggestion-marker-'+_0x4a6abb+'-new',_0x150348),this['activeChange']==_0x20fa75&&_0x306ecf['writer']['addClass']('ck-suggestion-marker--active',_0x150348),_0x306ecf['writer']['insert'](_0x1b140e,_0x150348),_0x306ecf['mapper']['bindElementToMarker'](_0x150348,_0x241171['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1ff281=>{for(const _0x32059e of this['editor']['model']['document']['getRootNames']()){const _0x5d8c75=this['editor']['model']['document']['getRoot'](_0x32059e),_0x1ad20f=this['editor']['editing']['view']['document']['getRoot'](_0x32059e);if(_0x1ad20f){const _0x62f97=_0x5d8c75['getAttribute']('revisionHistoryAttachChange');if(_0x1ff281['removeAttribute']('data-change-id',_0x1ad20f),_0x1ff281['removeClass']('ck-revision-history-root-add',_0x1ad20f),_0x1ff281['removeClass']('ck-revision-history-root-remove',_0x1ad20f),_0x1ff281['removeClass']('ck-revision-history-root--active',_0x1ad20f),_0x62f97){const _0xa68fac=this['_getChangeFromId'](_0x62f97);if(!_0xa68fac)return null;_0x1ff281['setAttribute']('data-change-id',_0x62f97,_0x1ad20f),_0x1ff281['addClass']('ck-revision-history-root-'+_0xa68fac['type'],_0x1ad20f),this['activeChange']==_0xa68fac&&_0x1ff281['addClass']('ck-revision-history-root--active',_0x1ad20f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5225f1=>'revision-comment:'+_0x5225f1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x40b247=>'revision-suggestion:'+_0x40b247,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x36ef58=>({'name':'suggestion:'+_0x36ef58,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3444b8=>{const _0x2ac24a=_0x3444b8['markerName']['split'](':')[0x1];return'insertion'!=_0x2ac24a&&'deletion'!=_0x2ac24a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2ac24a]};}}),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',(_0x311147,_0xa5ab76,_0x5dd747)=>{const _0x231725=_0x5dd747['mapper']['markerNameToElements'](_0xa5ab76['markerName']);if(_0x231725){for(const _0x3f3543 of _0x231725)_0x3f3543['is']('uiElement')&&(_0x5dd747['mapper']['unbindElementFromMarkerName'](_0x3f3543,_0xa5ab76['markerName']),_0x5dd747['writer']['remove'](_0x3f3543));}},{'priority':'high'});}['_getChangeFromId'](_0x3797a7){return this['_changeIdToChange']['get'](_0x3797a7);}['_getViewForChange'](_0x343151){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x343151),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x365f23,_0x1cd28a,_0x4952e5,_0x11e2dd)=>{_0x11e2dd&&this['_balloon']['remove'](_0x11e2dd),_0x4952e5&&(this['_balloon']['add']({'view':_0x4952e5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x432829=this['editor']['editing'],_0x3c9418=this['_getChangeFromId'](_0x4952e5['changeId']);let _0xc5b0e1;if(_0x3c9418['data']['isOnRoot']){const _0x4b7899=_0x432829['view']['getDomRoot'](_0x3c9418['rootName']);_0xc5b0e1=Array['from'](_0x4b7899['getClientRects']());}else{const _0x1dffb9=this['editor']['model']['markers']['get']('revision:'+_0x4952e5['changeId']);_0xc5b0e1=Array['from'](_0x432829['mapper']['markerNameToElements'](_0x1dffb9['name']))['map'](_0xac7f7=>_0x432829['view']['domConverter']['mapViewToDom'](_0xac7f7))['map'](_0x120f55=>Array['from'](_0x120f55['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc5b0e1[0x0];return _0xc5b0e1['find'](_0x3d44ff=>_0x3d44ff['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d44ff['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d44ff['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d44ff['right']+0x3>=this['_activeViewTarget']['x'])||_0xc5b0e1[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x594ab4,_0x1a6aba,_0x5e6300,_0xf110a2)=>{this['activeView']=_0x5e6300?this['_getViewForChange'](_0x5e6300):null,this['editor']['model']['change'](()=>{const _0x4ed396=this['editor']['editing'];_0xf110a2&&(_0xf110a2['data']['isOnRoot']?_0x4ed396['view']['change'](_0x1e4b27=>{_0x1e4b27['removeClass']('ck-revision-history-root--active',_0x4ed396['view']['document']['getRoot'](_0xf110a2['rootName']));}):_0x4ed396['reconvertMarker']('revision:'+_0xf110a2['id'])),_0x5e6300&&(_0x5e6300['data']['isOnRoot']?_0x4ed396['view']['change'](_0x33bc73=>{_0x33bc73['addClass']('ck-revision-history-root--active',_0x4ed396['view']['document']['getRoot'](_0x5e6300['rootName']));}):_0x4ed396['reconvertMarker']('revision:'+_0x5e6300['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x550b1d,_0x24c8c8)=>{if(this['activeChange'])return;const _0x27be6c=this['_findChangeIdFromDomTarget'](_0x24c8c8['target']),_0x2b921c=this['_changeIdToChange']['get'](_0x27be6c);_0x2b921c?(this['_activeViewTarget']={'x':_0x24c8c8['domEvent']['x'],'y':_0x24c8c8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2b921c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5308fb,_0x39461f)=>{const _0x5944b4=this['_findChangeIdFromDomTarget'](_0x39461f['target']),_0x43ca82=this['_changeIdToChange']['get'](_0x5944b4);_0x43ca82?(this['_activeViewTarget']={'x':_0x39461f['domEvent']['x'],'y':_0x39461f['domEvent']['y']},_0x43ca82===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x43ca82):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x56b0d6){do{const _0x304506=_0x56b0d6['getAttribute']('data-change-id');if(_0x304506)return _0x304506;_0x56b0d6=_0x56b0d6['parent'];}while(_0x56b0d6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xa7af8f=>{for(const _0x4cf30c of this['editor']['model']['markers'])_0xa7af8f['removeMarker'](_0x4cf30c);});}}function X(_0x23e69b,_0x261aed){return(_0x5085fd,_0x3cea5b,_0x1fcfcf)=>{if(!_0x1fcfcf['consumable']['test'](_0x3cea5b['markerRange'],_0x5085fd['name']))return;const _0x2a7d32=_0x3cea5b['markerRange']['getWalker'](),_0x25c49a=_0x3cea5b['markerRange']['start'],_0x50532b=_0x23e69b['model']['schema'];let _0x409147=null,_0x4c56fd=null,_0x3eadf3=!0x1,_0x179c16=!0x1;for(const _0x42f458 of _0x2a7d32){const _0xa2ffbb=_0x42f458['item'];_0x3eadf3=_0x3eadf3||_0x50532b['isContent'](_0xa2ffbb);const _0x165653=_0x1fcfcf['mapper']['toViewElement'](_0xa2ffbb);if(_0x165653&&_0x165653['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42f458['type']&&(_0x50532b['isBlock'](_0xa2ffbb)&&!_0x50532b['isLimit'](_0xa2ffbb)&&(_0xa2ffbb['nextSibling']||_0x25c49a['isAtEnd']?_0x409147&&_0x409147['parent']==_0xa2ffbb||(_0x409147=_0xa2ffbb,_0x1af84d(_0x42f458['previousPosition']),_0x179c16=!0x0):_0x4c56fd=_0x4c56fd||_0x42f458['previousPosition']));}function _0x1af84d(_0x225da3){const _0x8197a9=_0x1fcfcf['mapper']['toViewPosition'](_0x225da3),_0x374e23=_0x1fcfcf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x261aed});_0x1fcfcf['writer']['insert'](_0x8197a9,_0x374e23),_0x1fcfcf['mapper']['bindElementToMarker'](_0x374e23,_0x3cea5b['markerName']);}_0x3eadf3||_0x179c16||!_0x4c56fd||_0x1af84d(_0x4c56fd);};}class wt extends _0x33cfaf{constructor(_0x9a2d83){super(_0x9a2d83);const _0x46c012=_0x9a2d83['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x46c012,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x46c012,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x11eab5=this['editor'],_0x4892de=_0x11eab5['plugins']['get'](m),_0x5f55d2=_0x4892de['isReady']?_0x4892de['diff']['newRevisionId']:null;_0x11eab5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5f55d2);}['refresh'](){const {isReady:_0x21e5a4,isEnabled:_0x4552c9,repository:_0x410afa,diff:_0x342b4c}=this['editor']['plugins']['get'](m),_0x22b75f=_0x342b4c&&_0x410afa['getLaterVisibleRevision'](_0x342b4c['newRevisionId']);this['isEnabled']=_0x21e5a4&&_0x4552c9&&Boolean(_0x22b75f);}}class pt extends _0x33cfaf{['_step'];constructor(_0x48a430,{direction:_0x60021b}){super(_0x48a430);const _0x380f72=_0x48a430['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x60021b?0x1:-0x1,this['listenTo'](_0x380f72,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x380f72,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x380f72,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2c7a5b=this['editor'],_0x3f97ee=_0x2c7a5b['plugins']['get'](m),{isNavigationMode:_0x5a7aa5,currentChangeNumber:_0x548afc}=_0x3f97ee;let _0x15c15e;if(_0x3f97ee['activeChange']=_0x5a7aa5?_0x3f97ee['diff']['changes']['get'](_0x548afc+this['_step']):_0x3f97ee['diff']['changes']['first'],_0x3f97ee['activeChange']['data']['isOnRoot'])_0x15c15e=_0x2c7a5b['editing']['view']['getDomRoot'](_0x3f97ee['activeChange']['rootName']);else{const _0x35213f=_0x2c7a5b['model']['markers']['get']('revision:'+_0x3f97ee['activeChange']['id']);_0x15c15e=_0x53f201(_0x2c7a5b['editing'],_0x35213f);}_0x3597b8({'target':_0x15c15e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x273bec,currentChangeNumber:_0x219ff8,numberOfChanges:_0x177564,isReady:_0x2adb02,isEnabled:_0x4d251b}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4d251b&&_0x2adb02&&_0x177564)&&(!_0x273bec||(0x1===this['_step']?_0x219ff8<_0x177564-0x1:_0x219ff8>0x0));}}class _i extends _0x4eacd9{constructor(_0x2fd461){super(_0x2fd461);const _0x35036b=this['bindTemplate'],_0x1256ad=new _0x3399f1(_0x2fd461),_0x2fbd5b=new _0x3399f1(_0x2fd461);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',(_0x7b6291,_0x118b49)=>_0x7b6291&&_0x118b49>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xe606c7,_0x4d78d6,_0x3eb29d,_0x5ef6cb)=>{if(!_0xe606c7)return g(_0x2fd461,'Loading...');if(!_0x3eb29d)return g(_0x2fd461,'No\x20changes');const _0x22bfb1=g(_0x2fd461,'NUMBER_OF_CHANGES',_0x3eb29d);return _0x5ef6cb?g(_0x2fd461,'X_OF_Y_CHANGES',[_0x4d78d6+0x1,_0x3eb29d]):_0x22bfb1;}),_0x1256ad['set']({'label':g(_0x2fd461,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x570756}),_0x2fbd5b['set']({'label':g(_0x2fd461,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4f69eb}),_0x1256ad['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2fbd5b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1256ad['on']('execute',()=>this['fire']('execute','backward')),_0x2fbd5b['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',_0x35036b['if']('_isStatusLabelVisible','ck-hidden',_0x3cb80a=>!_0x3cb80a)]},'children':[{'text':_0x35036b['to']('isNavigationMode',_0x324ec8=>_0x324ec8?g(_0x2fd461,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2fd461,'Total')+':\x20')}]},{'text':_0x35036b['to']('_statusText')}]},new _0x4ae2bb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1256ad,_0x2fbd5b]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x563dd0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x481148=this['editor']['editing']['view'];_0x481148['change'](_0xe59ed0=>{for(const _0x209076 of _0x481148['document']['roots'])_0xe59ed0['addClass'](ce,_0x209076);});}['hide'](){const _0x51fcba=this['editor']['editing']['view'];_0x51fcba['change'](_0x9178de=>{for(const _0x5aac02 of _0x51fcba['document']['roots'])_0x9178de['removeClass'](ce,_0x5aac02);});}}class R extends _0x563dd0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x124a6e=this['editor'],_0xf64424=_0x124a6e['plugins']['get'](m),_0x476737=_0x124a6e['plugins']['get'](le);_0x124a6e['ui']['componentFactory']['add']('exitToEditing',_0x3e4ef5=>{const _0x3611fb=new _0x3399f1(_0x3e4ef5);return _0x3611fb['set']({'label':g(_0x3e4ef5,'Back\x20to\x20editing'),'icon':_0x33818f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3611fb,'execute',()=>{_0x124a6e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3611fb;}),_0x124a6e['ui']['componentFactory']['add']('restoreRevision',_0x1531d4=>{const _0x42c3db=new _0x3399f1(_0x1531d4);return _0x42c3db['set']({'label':g(_0x1531d4,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x42c3db['bind']('isEnabled')['to'](_0x124a6e['commands']['get']('restoreRevision')),this['listenTo'](_0x42c3db,'execute',()=>_0x124a6e['execute']('restoreRevision')),_0x42c3db;}),_0x124a6e['ui']['componentFactory']['add']('changesNavigation',_0x2bb8e8=>{const _0x62988a=new _i(_0x2bb8e8),_0xcbc49a=_0x124a6e['commands']['get']('showPreviousChange'),_0x59a8d0=_0x124a6e['commands']['get']('showNextChange');return _0x62988a['bind']('isBackwardNavigationEnabled')['to'](_0xcbc49a,'isEnabled'),_0x62988a['bind']('isForwardNavigationEnabled')['to'](_0x59a8d0,'isEnabled'),_0x62988a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xf64424),this['listenTo'](_0x62988a,'execute',(_0x4b4df4,_0x1ac7d7)=>{_0x124a6e['execute']('forward'===_0x1ac7d7?'showNextChange':'showPreviousChange');}),_0x62988a;}),_0x476737['show'](),_0xf64424['on']('change:isReady',(_0x25dee2,_0x283def,_0xc812c0)=>{_0xc812c0?_0x476737['hide']():_0x476737['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x22a96f,_0x1f184e){super(_0x22a96f,_0x1f184e);const _0x2abe81=this['bindTemplate'];this['set']({'label':g(_0x22a96f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x22a96f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2abe81['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x158fc9=this['fieldView']['element'];this['_tooltipString']=_0x158fc9['scrollWidth']>_0x158fc9['clientWidth']&&_0x158fc9['value']||'';}}class oi extends _0x4eacd9{constructor(_0x59b3df,_0x217902,_0x2d4d9b){super(_0x59b3df);const _0x34d77d=new _0x2b05ec();_0x34d77d['set']({'content':_0x59a9b3,'viewBox':'0\x200\x2011\x2010'});const _0x43e77d=['ck','ck-revision-history-sidebar__revision-author'];_0x2d4d9b&&_0x43e77d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x40abfa=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x59b3df,_0x2d4d9b?'Revision\x20creator':'Revision\x20author')},'children':[_0x34d77d,_0x217902['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x43e77d},'children':_0x40abfa});}}function ni(_0xa657bd,_0x58becb){const _0x575cef=_0xa657bd['bindTemplate'],_0x334dbc=_0xa657bd['locale'],_0x4d1e51=_0x14068a(_0x334dbc);_0x4d1e51['panelPosition']='sw';const _0x49f5a1=function(_0x3e3ba8,_0x1b242a){const _0x15863d=function(_0x156eff,_0x32cb2c){const _0x6bd6b7=_0x156eff['locale'],_0x3e9a00={'Compare\x20against\x20selected':g(_0x6bd6b7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x6bd6b7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x6bd6b7,'Restore\x20this\x20revision')};return _0x32cb2c['map'](_0x1b27a9=>{const _0x7201=_0x3e9a00[_0x1b27a9['name']];return _0x7201&&_0x7201!==_0x1b27a9['name']&&(_0x1b27a9['name']=_0x7201),_0x1b27a9;});}(_0x3e3ba8,_0x1b242a),_0x357b69=new _0x4e76a3();for(const _0x593f98 of _0x15863d){const _0x86399a={'type':'button','model':new to({'label':_0x593f98['name'],'class':_0x593f98['class'],'withText':!0x0,'role':'menuitem','_action':_0x593f98['action']})};_0x86399a['model']['bind']('isEnabled')['to'](_0x3e3ba8,'isActionsDropdownOpen',_0x57fe3c=>'function'!=typeof _0x593f98['isEnabled']||(!_0x57fe3c||_0x593f98['isEnabled'](_0x3e3ba8))),_0x357b69['add'](_0x86399a);}return _0x357b69;}(_0xa657bd,_0x58becb);return _0xa657bd['bind']('isActionsDropdownOpen')['to'](_0x4d1e51,'isOpen'),_0x4d1e51['buttonView']['set']({'label':g(_0x334dbc,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x48f754}),_0x4d1e51['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x575cef['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x575cef['to'](_0x5edb04=>_0x5edb04['stopPropagation']())}}),_0x4d1e51['on']('execute',_0x485e76=>{_0xa657bd['isReady']&&'function'==typeof _0x485e76['source']['_action']&&_0x485e76['source']['_action'](_0xa657bd);}),_0x26ee0b(_0x4d1e51,_0x49f5a1,{'role':'menu'}),_0x4d1e51['listenTo'](_0xa657bd,'change:isActionsDropdownOpen',(_0x5bb621,_0x1092a5,_0x3c7af1)=>{if(_0x3c7af1)for(const _0x1dd179 of _0x4d1e51['listView']['items']){const _0x346945=_0x1dd179['children']['first'],_0x1deede=_0x58becb['find'](_0x3c9242=>_0x3c9242['action']===_0x346945['_action'])['isVisible'];_0x1dd179['isVisible']=void 0x0===_0x1deede||_0x1deede(_0xa657bd);}}),_0x4d1e51;}class ai extends/* #__PURE__ -- @preserve */
26
- _0xf13c3d(_0x4eacd9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1b6b3c,_0x26be1a,_0x2cbe3f,_0x3bef20){super(_0x1b6b3c);const _0xd96728=this['bindTemplate'],_0x1f5e8e=function(_0x38ccfc,_0x3bc828){const _0x41643b=Array['from'](_0x3bc828['authors'])['filter'](_0x1dc45c=>_0x1dc45c!=_0x3bc828['creator']);return _0x3bc828['creator']&&_0x41643b['unshift'](_0x3bc828['creator']),_0x41643b['map'](_0x587714=>new oi(_0x38ccfc,_0x587714,_0x587714==_0x3bc828['creator']));}(_0x1b6b3c,_0x26be1a);this['id']=_0x26be1a['id'],this['_revision']=_0x26be1a,this['_requireRevisionName']=_0x3bef20,this['bind']('name','createdAt')['to'](_0x26be1a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x11bcda=>{return _0x2ef7a3=_0x1b6b3c['uiLanguage'],(_0x447d0f=_0x11bcda)['toLocaleDateString'](_0x2ef7a3,{'month':'long','day':'numeric'})+',\x20'+_0x447d0f['toLocaleTimeString'](_0x2ef7a3,{'hour':'numeric','minute':'numeric'});var _0x2ef7a3,_0x447d0f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x1b6b3c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xb0ed3b=>_0xb0ed3b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3cdf01,_0x4235f7)=>_0x3cdf01&&_0x4235f7),this['revisionActionsView']=_0x2cbe3f&&_0x2cbe3f['length']?ni(this,_0x2cbe3f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xd96728['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xd96728['if']('isEnabled','ck-disabled',_0xd65434=>!_0xd65434),_0xd96728['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xd96728['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xd96728['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':_0xd96728['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':_0x1f5e8e}]},this['revisionActionsView']],'on':{'click':_0xd96728['to'](_0x4e0a0b=>{_0x4e0a0b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2526e5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2526e5,'change',()=>{this['_requireRevisionName']&&!_0x2526e5['value']||this['fire']('setName',{'id':this['id'],'name':_0x2526e5['value']}),_0x2526e5['value']||(_0x2526e5['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(_0x1f3217,_0x468875){const _0x19ce7c=_0x4d6dc2['fromJSDate'](_0x1f3217)['setLocale'](_0x468875),_0x588f45=_0x4d6dc2['local'](),_0x55d76c=_0x588f45['minus']({'days':0x1})['startOf']('day');let _0x7b147d,_0x5081a5;return _0x19ce7c['hasSame'](_0x588f45,'day')?(_0x7b147d=_0x19ce7c['startOf']('day')['toJSDate'](),_0x5081a5=_0x19ce7c['toRelativeCalendar']()):_0x19ce7c['hasSame'](_0x55d76c,'day')?(_0x7b147d=_0x55d76c['toJSDate'](),_0x5081a5=_0x19ce7c['toRelativeCalendar']()):_0x19ce7c['hasSame'](_0x588f45,'week')?(_0x7b147d=_0x19ce7c['startOf']('week')['toJSDate'](),_0x5081a5=_0x19ce7c['weekdayLong']||''):_0x19ce7c['hasSame'](_0x588f45,'year')?(_0x7b147d=_0x19ce7c['startOf']('month')['toJSDate'](),_0x5081a5=_0x19ce7c['monthLong']||''):(_0x7b147d=_0x19ce7c['startOf']('year')['toJSDate'](),_0x5081a5=String(_0x19ce7c['year'])),{'startDate':_0x7b147d,'localizedPeriodName':_0x5081a5};}class mi extends _0x4eacd9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1d3a20,_0x31beef,_0x1c223e,_0xf7f22c){super(_0x1d3a20);const _0xa00173=vi(_0x31beef,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x31beef,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1c223e,this['_requireRevisionName']=_0xf7f22c,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':_0xa00173}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xc008b0){const _0x4e818a=new ai(this['locale'],_0xc008b0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4e818a);}['removeRevision'](_0x38be03){const _0x1b8fb5=this['revisionViews']['find'](_0x5ecba3=>_0x5ecba3['id']===_0x38be03['id']);this['revisionViews']['remove'](_0x1b8fb5);}}class is extends _0x4eacd9{constructor(_0xa8271a){super(_0xa8271a);const _0x59dd08=new _0x2b05ec();_0x59dd08['content']=_0x3d91fe,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x59dd08,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xa8271a,'Revision\x20history')]}]});}}class di extends _0x4eacd9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x39a64c,_0xa696bc,_0x87bf02,_0x569cf3){super(_0x39a64c);const _0x23fef4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xa696bc,this['_revisionActions']=_0x87bf02,this['_requireRevisionName']=_0x569cf3,this['on']('select',(_0x43a07b,_0x1e5243)=>{this['fire']('revisionSelected',_0x1e5243);}),this['on']('setName',(_0x2398b4,_0x30ee63)=>{this['fire']('revisionSetName',_0x30ee63);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x39a64c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x23fef4['if']('isEnabled','ck-disabled',_0x3a0bef=>!_0x3a0bef)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x19b49d of this['_revisions'])this['_addRevision'](_0x19b49d);this['_revisions']['on']('add',(_0x275a2b,_0x5e0f32)=>{this['_addRevision'](_0x5e0f32);}),this['_revisions']['on']('remove',(_0x4203e2,_0xe3cd1e)=>{this['_removeRevision'](_0xe3cd1e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x466adc=>_0x466adc['revisionViews']['map'](_0x4844e1=>_0x4844e1))['flat']();}['selectRevision'](_0x257ded){for(const _0x2faffd of this['revisionViews'])_0x257ded&&_0x257ded['id']===_0x2faffd['id']?_0x2faffd['select']():_0x2faffd['deselect']();}['highlightRevisions'](_0x327788){for(const _0x10844d of this['revisionViews'])_0x327788['some'](({id:_0x3bfc79})=>_0x3bfc79===_0x10844d['id'])?_0x10844d['highlight']():_0x10844d['unhighlight']();}['_addRevision'](_0x13cd31){const _0x8becf3=vi(_0x13cd31['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1f8f23=this['timePeriodViews']['get'](0x0);_0x1f8f23&&_0x1f8f23['startDate']['getTime']()===_0x8becf3['getTime']()||(_0x1f8f23=new mi(this['locale'],_0x8becf3,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1f8f23)),_0x1f8f23['addRevision'](_0x13cd31);}['_removeRevision'](_0x26bf13){const _0x91a19f=vi(_0x26bf13['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x91a19f)['removeRevision'](_0x26bf13);}['_getTimePeriodViewByStartDate'](_0x4c5d22){return this['timePeriodViews']['find'](_0x2d56f3=>_0x2d56f3['startDate']['getTime']()===_0x4c5d22['getTime']());}}class d extends _0x563dd0{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0xf284bd,uid as _0x15b5e5,Collection as _0x5648f3,logWarning as _0x324cb5,FocusTracker as _0x50eb78,KeystrokeHandler as _0xa1df15,scrollViewportToShowTarget as _0x5bc50c,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x48516b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4729a1,set as _0x5ebbb6,unset as _0xe4233c,isEqual as _0x4891a3}from'es-toolkit/compat';import{Plugin as _0x30e203,PendingActions as _0x293404,Command as _0x5a91aa,ElementApiMixin as _0x336aec,Editor as _0x484e57}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2a7e7a,getMarkerDomElement as _0x4cc7c1,ConfirmMixin as _0x18906f,sanitizeEditorConfig as _0x3f1c17}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3a261f,ViewAttributeElement as _0x4e4bdc,ViewEmptyElement as _0x4161e0,ViewRawElement as _0x5f322b,ViewUIElement as _0x6b106,ViewDocumentFragment as _0x2b236c,ViewText as _0x1c744d,ViewElement as _0x2292ad,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x42f02c,IconChevronUp as _0x29084b,IconChevronDown as _0x375297,IconUndo as _0x9a0024,IconUser as _0x41d396,IconThreeVerticalDots as _0x33f1f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x1af282,injectCssTransitionDisabler as ts,submitHandler as _0x44b6ca,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x10d0b8,ListView as _0x990376,ListItemView as te,ButtonView as _0x3e8319,MenuBarMenuView as _0x17ea5e,MenuBarMenuListView as _0x4bbf02,MenuBarMenuListItemView as _0x54dd2c,MenuBarMenuListItemButtonView as _0x2c3b74,ContextualBalloon as _0x13c17d,ToolbarSeparatorView as _0x5c24cf,IconView as _0x250c7a,addListToDropdown as _0xad4494,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 _0x325609}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0xf284bd(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x18a932){super(),this['id']=_0x18a932['id']||_0x15b5e5(),this['creator']=_0x18a932['creator']||null,this['authors']=_0x18a932['authors']||[],this['diffData']=_0x18a932['diffData']||null,this['toVersion']=_0x18a932['toVersion']||0x0,this['fromVersion']=_0x18a932['fromVersion']||0x0,this['set']('name',_0x18a932['name']||''),this['set']('createdAt',_0x18a932['createdAt']||new Date()),this['set']('attributes',_0x18a932['attributes']||{});}['setName'](_0x54a2e8){this['_update']({'name':_0x54a2e8});}['setAttribute'](_0x2d1756,_0x1dfa9d){const _0x20ea42=_0x4729a1(this['attributes']);_0x5ebbb6(_0x20ea42,_0x2d1756,_0x1dfa9d),this['_update']({'attributes':_0x20ea42});}['removeAttribute'](_0x2e6caa){const _0x4d1b97=_0x4729a1(this['attributes']);_0xe4233c(_0x4d1b97,_0x2e6caa),this['_update']({'attributes':_0x4d1b97});}['_update'](_0x5b1b9f,_0x46f102=!0x1){let _0x410533=!0x1;const _0x353058={'id':this['id']},_0x3a77=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x53a5ed of _0x3a77){const _0x138d11=_0x5b1b9f[_0x53a5ed];void 0x0!==_0x138d11&&_0x138d11!==this[_0x53a5ed]&&(this[_0x53a5ed]=_0x138d11,_0x353058[_0x53a5ed]=_0x138d11,_0x410533=!0x0);}_0x410533&&(_0x353058['authors']&&(_0x353058['authorsIds']=_0x353058['authors']['map'](_0x260c68=>_0x260c68['id']),delete _0x353058['authors']),this['fire']('_update',_0x353058,_0x46f102));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x392984=>_0x392984['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x30e203{['_revisions'];static get['requires'](){return[_0x2a7e7a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5ee17a){super(_0x5ee17a),this['_revisions']=new _0x5648f3();}['afterInit'](){!async function(_0x363053){const _0x45e50d=_0x36724f([0x48,0x30,0x50,0x4c,0x49,0x41,0x63,0x47,0x38,0x56,0x71,0x4a,0x59,0x6c,0x33,0x65,0x4f,0x76,0x39,0x74,0x58,0x6d,0x52,0x37,0x53,0x7a,0x4e,0x44,0x61,0x31,0x32,0x79,0x34,0x70,0x78,0x75,0x6f,0x5a,0x6a,0x68,0x66,0x77,0x6e,0x67,0x45,0x64,0x69,0x42,0x36,0x62,0x55,0x54,0x6b,0x73,0x51,0x46,0x4d,0x35,0x72,0x43,0x4b,0x57]),_0x5d1e62=0xeb829,_0x5211b5=0x3e287d59,_0x316981=0x3e2f1e91^_0x5211b5,_0x1f2a6f=window[_0x36724f([0x44,0x61,0x74,0x65])][_0x36724f([0x6e,0x6f,0x77])](),_0x1a5d60=_0x363053[_0x36724f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x161943=new window[(_0x36724f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0f06=>{_0x1a5d60[_0x36724f([0x6f,0x6e,0x63,0x65])](_0x36724f([0x72,0x65,0x61,0x64,0x79]),_0x1b0f06);}),_0x400c68={[_0x36724f([0x6b,0x74,0x79])]:_0x36724f([0x45,0x43]),[_0x36724f([0x75,0x73,0x65])]:_0x36724f([0x73,0x69,0x67]),[_0x36724f([0x63,0x72,0x76])]:_0x36724f([0x50,0x2d,0x32,0x35,0x36]),[_0x36724f([0x78])]:_0x36724f([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]),[_0x36724f([0x79])]:_0x36724f([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]),[_0x36724f([0x61,0x6c,0x67])]:_0x36724f([0x45,0x53,0x32,0x35,0x36])},_0xb56efb=_0x1a5d60[_0x36724f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36724f([0x67,0x65,0x74])](_0x36724f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x207938(){let _0x51ce6f,_0x4e9c03=null,_0x255145=null;try{if(_0xb56efb==_0x36724f([0x47,0x50,0x4c]))return _0x36724f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51ce6f=_0x48a5ac(),!_0x51ce6f)return _0x36724f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51ce6f[_0x36724f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x255145=_0x26b91c(_0x51ce6f[_0x36724f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51ce6f[_0x36724f([0x6a,0x74,0x69])])),await _0x2138d8()?_0x1cd3ba()?_0x23091f()?_0x36724f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d537c()?(_0x51ce6f[_0x36724f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36724f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e9c03=_0x640f78(_0x36724f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51ce6f[_0x36724f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36724f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e9c03=_0x640f78(_0x36724f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a0d77()):_0x36724f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36724f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36724f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x55e2d7){return _0x36724f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23091f(){const _0x496290=[_0x36724f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36724f([0x74,0x72,0x69,0x61,0x6c])][_0x36724f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ce6f[_0x36724f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f2a6f/0x3e8:0xe10*_0x316981;return _0x51ce6f[_0x36724f([0x65,0x78,0x70])]<_0x496290;}function _0x1cd3ba(){const _0xfb3105=_0x51ce6f[_0x36724f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xfb3105)return!0x1;if(_0xfb3105[_0x36724f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36724f([0x2a])))return!0x0;if(_0xfb3105[_0x36724f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36724f([0x52,0x48])))return!0x0;if(_0xfb3105[_0x36724f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36724f([0x52,0x52,0x48]))){if(_0x9e2d9e())return!0x0;if(_0xde2569()||_0x4637f5())return!0x0;}return!0x1;}function _0x4d537c(){const _0x5e8abe=_0x51ce6f[_0x36724f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e8abe||0x0==_0x5e8abe[_0x36724f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf061df}=new URL(window[_0x36724f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e8abe[_0x36724f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf061df))return!0x0;const _0x262a2a=_0xf061df[_0x36724f([0x73,0x70,0x6c,0x69,0x74])](_0x36724f([0x2e]));return _0x5e8abe[_0x36724f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16f55f=>_0x16f55f[_0x36724f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36724f([0x2a])))[_0x36724f([0x6d,0x61,0x70])](_0x4b5d87=>_0x4b5d87[_0x36724f([0x73,0x70,0x6c,0x69,0x74])](_0x36724f([0x2e])))[_0x36724f([0x73,0x6f,0x6d,0x65])](_0xd42160=>_0x262a2a[_0x36724f([0x65,0x76,0x65,0x72,0x79])]((_0x33bc2e,_0x5539a3)=>_0xd42160[_0x5539a3]===_0x33bc2e||_0xd42160[_0x5539a3]===_0x36724f([0x2a])));}function _0x3a0d77(){return _0x4e9c03&&_0x255145?new window[(_0x36724f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a61ad,_0x2aa402)=>{_0x4e9c03[_0x36724f([0x74,0x68,0x65,0x6e])](_0x3a61ad,_0x2aa402),_0x255145[_0x36724f([0x74,0x68,0x65,0x6e])](_0xc15ed4=>{_0xc15ed4!=_0x36724f([0x56,0x61,0x6c,0x69,0x64])&&_0x3a61ad(_0xc15ed4);},_0x2aa402);}):_0x4e9c03||_0x255145||_0x36724f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26b91c(_0x5a29ca,_0x5442b1){return new window[(_0x36724f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429a02=>{if(_0x3acf5e())return _0x429a02(_0x36724f([0x56,0x61,0x6c,0x69,0x64]));_0x364673(),_0x1a5d60[_0x36724f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36724f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x352093=!0x1;const _0x2a18b1=_0x15b5e5();function _0x129745(_0x1b743b){return!!_0x1b743b&&(typeof _0x1b743b===_0x36724f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b743b===_0x36724f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b743b[_0x36724f([0x74,0x68,0x65,0x6e])]===_0x36724f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b743b[_0x36724f([0x63,0x61,0x74,0x63,0x68])]===_0x36724f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b4ce8(_0xec6af0){_0x1aec2d(_0xec6af0)[_0x36724f([0x74,0x68,0x65,0x6e])](_0x513c44=>{if(!_0x513c44||_0x513c44[_0x36724f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36724f([0x6f,0x6b]))return _0x36724f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x466e10(_0x18114f(_0x2a18b1+_0x5442b1))!=_0x513c44[_0x36724f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36724f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36724f([0x56,0x61,0x6c,0x69,0x64]);})[_0x36724f([0x74,0x68,0x65,0x6e])](_0x4be6ce=>(_0x469eff(),_0x4be6ce),()=>{const _0x437390=_0x591b9d();return null==_0x437390?(_0x469eff(),_0x36724f([0x56,0x61,0x6c,0x69,0x64])):_0x36724f(_0x1f2a6f-_0x437390>(0x1a24f959^_0x5211b5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36724f([0x74,0x68,0x65,0x6e])](_0x429a02)[_0x36724f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x429a02(_0x36724f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d9074=0x3e1e93d9^_0x5211b5;function _0x469eff(){const _0x4a2a5e=_0x36724f([0x6c,0x6c,0x63,0x74,0x2d])+_0x466e10(_0x18114f(_0x5a29ca)),_0x257bd3=_0x30421e(_0x466e10(window[_0x36724f([0x4d,0x61,0x74,0x68])][_0x36724f([0x63,0x65,0x69,0x6c])](_0x1f2a6f/_0x3d9074)));window[_0x36724f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36724f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a2a5e,_0x257bd3);}function _0x591b9d(){const _0x2f6981=_0x36724f([0x6c,0x6c,0x63,0x74,0x2d])+_0x466e10(_0x18114f(_0x5a29ca)),_0x5c3853=window[_0x36724f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36724f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f6981);return _0x5c3853?window[_0x36724f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30421e(_0x5c3853),0x10)*_0x3d9074:null;}function _0x1aec2d(_0x14c9d1){return new window[(_0x36724f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f7f1a,_0x44472e)=>{_0x14c9d1[_0x36724f([0x74,0x68,0x65,0x6e])](_0x4f7f1a,_0x44472e),window[_0x36724f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44472e,0x3e29a999^_0x5211b5);});}}_0x1a5d60[_0x36724f([0x6f,0x6e])](_0x36724f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5cd2e4,_0x5ceddd)=>{if(_0x5ceddd[0x0]!=_0x5a29ca)return _0x429a02(_0x36724f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ceddd[0x1]={..._0x5ceddd[0x1],[_0x36724f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a18b1};},{[_0x36724f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36724f([0x68,0x69,0x67,0x68])}),_0x1a5d60[_0x36724f([0x6f,0x6e])](_0x36724f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xac6d32=>{_0x129745(_0xac6d32[_0x36724f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x352093=!0x0,_0x5b4ce8(_0xac6d32[_0x36724f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36724f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36724f([0x6c,0x6f,0x77])}),_0x161943[_0x36724f([0x74,0x68,0x65,0x6e])](()=>{_0x352093||_0x429a02(_0x36724f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3acf5e(){return _0x1a5d60[_0x36724f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36724f([0x76,0x69,0x65,0x77])][_0x36724f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36724f([0x61,0x75,0x74,0x6f]);}function _0x364673(){_0x1a5d60[_0x36724f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36724f([0x76,0x69,0x65,0x77])][_0x36724f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36724f([0x61,0x75,0x74,0x6f]);}}function _0x640f78(_0x361d9d){const _0x3a74ad=[new window[(_0x36724f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x461854=>setTimeout(_0x461854,0x3e214395^_0x5211b5)),_0x161943[_0x36724f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36724f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43a2a2=>{const _0x457877=0x3e287d5e^_0x5211b5,_0x102fe3=_0x363053[_0x36724f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x28cfc1(){_0x102fe3[_0x36724f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x457877&&_0x43a2a2();}_0x28cfc1(),_0x102fe3[_0x36724f([0x6f,0x6e])](_0x36724f([0x61,0x64,0x64]),_0x28cfc1);})),new window[(_0x36724f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x593458=>{function _0x4b06a3(){for(const _0x29d99d in window)if(window[_0x36724f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x36724f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x29d99d))&&window[_0x29d99d]==_0x5d1e62)return _0x593458();_0x1a5d60[_0x36724f([0x73,0x74,0x61,0x74,0x65])]!=_0x36724f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x36724f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b06a3,0x3e286ed1^_0x5211b5);}_0x4d7777(_0x36724f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4b06a3();})];return window[_0x36724f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36724f([0x72,0x61,0x63,0x65])](_0x3a74ad)[_0x36724f([0x74,0x68,0x65,0x6e])](()=>_0x361d9d);}async function _0x135713(){if(await _0x161943,_0x4d7777(_0x36724f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x76fcc2=_0x363053[_0x36724f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x40df59=_0x363053[_0x36724f([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])](_0x76fcc2[_0x36724f([0x69,0x64])]),_0x23e06b=_0x385c5e(_0x36724f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x23e06b[_0x36724f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x76fcc2['id'],_0x40df59?_0x40df59['id']:null,!0x0),_0x23e06b[_0x36724f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x36724f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23e06b[_0x36724f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23e06b[_0x36724f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x19bc93,void(_0x23e06b[_0x36724f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x19bc93);}if(_0x4d7777(_0x36724f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3ff625=_0x385c5e(_0x36724f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3ff625[_0x36724f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x36724f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3ff625[_0x36724f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3ff625[_0x36724f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x19bc93,_0x3ff625[_0x36724f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x19bc93;}_0x1a5d60[_0x36724f([0x6d,0x6f,0x64,0x65,0x6c])][_0x36724f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19bc93,_0x1a5d60[_0x36724f([0x6d,0x6f,0x64,0x65,0x6c])][_0x36724f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19bc93,_0x1a5d60[_0x36724f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36724f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9e2d9e(){return _0x4d7777(_0x36724f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x385c5e(_0x36724f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x36724f([0x73,0x74,0x61,0x74,0x65])]==_0x36724f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xde2569(){return _0x4d7777(_0x36724f([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 _0x4637f5(){return _0x4d7777(_0x36724f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c5ffd(_0x2a0d83){const _0x4becf9=_0x4411ba();_0x1a5d60[_0x4becf9]=_0x36724f([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])+_0x2a0d83,_0x2a0d83[_0x36724f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x36724f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4411ba()]=_0x5d1e62),_0x2a0d83!=_0x36724f([0x56,0x61,0x6c,0x69,0x64])&&_0x135713();}function _0x4411ba(){const _0x412f1c=window[_0x36724f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36724f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36724f([0x6e,0x6f,0x77])]())[_0x36724f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36724f([0x2e]),'');let _0x25685f=_0x36724f([0x48]);for(let _0x567066=0x0;_0x567066<_0x412f1c[_0x36724f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x567066+=0x2){let _0x410ed0=window[_0x36724f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x412f1c[_0x36724f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x567066,_0x567066+0x2));_0x410ed0>=_0x45e50d[_0x36724f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x410ed0-=_0x45e50d[_0x36724f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25685f+=_0x45e50d[_0x410ed0];}return _0x25685f;}function _0x48a5ac(){const _0x593e8c=_0xb56efb[_0x36724f([0x73,0x70,0x6c,0x69,0x74])](_0x36724f([0x2e]));if(0x3!=_0x593e8c[_0x36724f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c6a57(_0x593e8c[0x1]);function _0x4c6a57(_0x51a0e4){const _0x5666e2=_0x380a41(_0x51a0e4);return _0x5666e2&&_0x5d023a()?_0x5666e2:null;function _0x5d023a(){const _0x266aa8=_0x5666e2[_0x36724f([0x6a,0x74,0x69])],_0x1bd4a1=window[_0x36724f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x266aa8[_0x36724f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x266aa8[_0x36724f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x384435={..._0x5666e2,[_0x36724f([0x6a,0x74,0x69])]:_0x266aa8[_0x36724f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x266aa8[_0x36724f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x384435[_0x36724f([0x76,0x63])],_0x18114f(_0x384435)==_0x1bd4a1;}}}async function _0x2138d8(){let _0x4b7f5a=!0x0;try{const _0xea4dd4=_0xb56efb[_0x36724f([0x73,0x70,0x6c,0x69,0x74])](_0x36724f([0x2e])),[_0x12a42f,_0xea353c,_0x495f7e]=_0xea4dd4;return _0x18a6ca(_0x12a42f),await _0x5bb173(_0x12a42f,_0xea353c,_0x495f7e),_0x4b7f5a;}catch(_0x69e272){return!0x1;}function _0x18a6ca(_0x23f35c){const _0x41342d=_0x380a41(_0x23f35c);_0x41342d&&_0x41342d[_0x36724f([0x61,0x6c,0x67])]==_0x36724f([0x45,0x53,0x32,0x35,0x36])||(_0x4b7f5a=!0x1);}async function _0x5bb173(_0x553804,_0x433e26,_0x5abe0f){const _0x53ad39=window[_0x36724f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36724f([0x66,0x72,0x6f,0x6d])](_0x2a98d5(_0x5abe0f),_0x4541c6=>_0x4541c6[_0x36724f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ee4bc=new window[(_0x36724f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36724f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x553804+_0x36724f([0x2e])+_0x433e26),_0x77a740=window[_0x36724f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36724f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x77a740)return;const _0x12a513=await _0x77a740[_0x36724f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36724f([0x6a,0x77,0x6b]),_0x400c68,{[_0x36724f([0x6e,0x61,0x6d,0x65])]:_0x36724f([0x45,0x43,0x44,0x53,0x41]),[_0x36724f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36724f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36724f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x77a740[_0x36724f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36724f([0x6e,0x61,0x6d,0x65])]:_0x36724f([0x45,0x43,0x44,0x53,0x41]),[_0x36724f([0x68,0x61,0x73,0x68])]:{[_0x36724f([0x6e,0x61,0x6d,0x65])]:_0x36724f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12a513,_0x53ad39,_0x2ee4bc)||(_0x4b7f5a=!0x1);}}function _0x380a41(_0x5ce56e){return _0x5ce56e[_0x36724f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36724f([0x65,0x79]))?JSON[_0x36724f([0x70,0x61,0x72,0x73,0x65])](_0x2a98d5(_0x5ce56e)):null;}function _0x2a98d5(_0x2ae507){return window[_0x36724f([0x61,0x74,0x6f,0x62])](_0x2ae507[_0x36724f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36724f([0x2b]))[_0x36724f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36724f([0x2f])));}function _0x18114f(_0x152fa6){let _0x392f5f=0x1505;function _0x49271d(_0x5f5747){for(let _0x51a6d0=0x0;_0x51a6d0<_0x5f5747[_0x36724f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51a6d0++){const _0x2cb6ef=_0x5f5747[_0x36724f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51a6d0);_0x392f5f=(_0x392f5f<<0x5)+_0x392f5f+_0x2cb6ef,_0x392f5f&=_0x392f5f;}}function _0x27a6e7(_0x2e7595){Array[_0x36724f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e7595)?_0x2e7595[_0x36724f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27a6e7):_0x2e7595&&typeof _0x2e7595==_0x36724f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36724f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e7595)[_0x36724f([0x73,0x6f,0x72,0x74])]()[_0x36724f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4270a0,_0x35e287])=>{_0x49271d(_0x4270a0),_0x27a6e7(_0x35e287);}):_0x49271d(window[_0x36724f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e7595));}return _0x27a6e7(_0x152fa6),_0x392f5f>>>0x0;}function _0x466e10(_0x14d245){return _0x14d245[_0x36724f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36724f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36724f([0x30]));}function _0x30421e(_0x4fa151){return _0x4fa151[_0x36724f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36724f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36724f([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d7777(_0x445cf1){return _0x1a5d60[_0x36724f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36724f([0x68,0x61,0x73])](_0x445cf1);}function _0x385c5e(_0x24dd33){return _0x1a5d60[_0x36724f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x36724f([0x67,0x65,0x74])](_0x24dd33);}function _0x19bc93(){}function _0x36724f(_0x242bf8){return _0x242bf8['map'](_0x272ae4=>String['fromCharCode'](_0x272ae4))['join']('');}_0x1c5ffd(await _0x207938());}(this);}['createRevision'](_0x210ebd){const _0x287c4c=this['editor']['plugins']['get']('Users');return new h({'id':_0x210ebd['id'],'name':_0x210ebd['name'],'creator':_0x210ebd['creatorId']?_0x287c4c['getUser'](_0x210ebd['creatorId']):null,'diffData':_0x210ebd['diffData']||_0x210ebd['data'],'authors':_0x210ebd['authorsIds']['map'](_0x9667b3=>_0x287c4c['getUser'](_0x9667b3)),'createdAt':new Date(_0x210ebd['createdAt']),'attributes':_0x210ebd['attributes'],'fromVersion':_0x210ebd['fromVersion'],'toVersion':_0x210ebd['toVersion']});}['addRevision'](_0x599bea,_0x33346b=0x0){this['_revisions']['add'](_0x599bea,_0x33346b);}['getRevision'](_0x2a5e3e){return this['_revisions']['get'](_0x2a5e3e);}['getRevisions'](_0x2ac235={'toJSON':!0x1}){const _0x26b596=Array['from'](this['_revisions']);return _0x26b596['reverse'](),_0x2ac235['toJSON']?_0x26b596['map'](_0x4836d3=>_0x4836d3['toJSON']()):_0x26b596;}['getIndex'](_0x4012aa){return this['_revisions']['getIndex'](_0x4012aa);}['getEarlierVisibleRevision'](_0x3751c7){const [,_0x151e68]=this['getRevisionsIterator'](_0x3751c7,{'direction':'earlier'});return _0x151e68;}['getLaterVisibleRevision'](_0x36cc18){const [,_0x4661e1]=this['getRevisionsIterator'](_0x36cc18,{'direction':'later'});return _0x4661e1;}['getRevisionsInDiff'](_0x125573){const _0x150de6=[];for(const _0x114bad of this['getRevisionsIterator'](_0x125573['newRevisionId']))if(_0x150de6['push'](_0x114bad),_0x114bad['id']===_0x125573['oldRevisionId'])break;return _0x150de6;}*['getRevisionsIterator'](_0x1f307f,{direction:_0x5e59b9='earlier',filter:_0x1ae640=()=>!0x0}={}){const _0x496cea='earlier'===_0x5e59b9?0x1:-0x1;let _0xf3b9e0=this['_revisions']['get'](_0x1f307f),_0x973426=this['getIndex'](_0xf3b9e0);for(yield _0xf3b9e0;_0xf3b9e0;){if(_0x973426+=_0x496cea,_0xf3b9e0=this['getRevision'](_0x973426),!_0xf3b9e0)return;_0x1ae640(_0xf3b9e0)&&(yield _0xf3b9e0);}}}class V extends _0x30e203{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3a261f,'c'],[_0x4e4bdc,'a'],[_0x4161e0,'e'],[_0x5f322b,'r'],[_0x6b106,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3a261f],['a',_0x4e4bdc],['e',_0x4161e0],['r',_0x5f322b],['u',_0x6b106]]);async['loadRevisionData'](_0x539da8,_0x994098){if(_0x539da8['diffData']||!_0x994098)return;const _0x420028=this['editor']['config']['get']('collaboration.channelId'),_0x15c5d6=await _0x994098['getRevision']({'channelId':_0x420028,'revisionId':_0x539da8['id']});_0x539da8['diffData']=_0x15c5d6['diffData'];}['getRevisionDocumentData'](_0x2c521d){const _0x36f37b={};for(const _0xbbc81a in _0x2c521d['diffData']){if(_0x2c521d['diffData'][_0xbbc81a]['attachChange']&&!_0x2c521d['diffData'][_0xbbc81a]['attachChange']['isAttached'])continue;const _0x37016f=this['_removeRevisionMarkers'](JSON['parse'](_0x2c521d['diffData'][_0xbbc81a]['insertions'])),_0x28369a=this['editor']['editing']['view']['document'],_0x246175=new _0x2b236c(_0x28369a,_0x37016f['map'](_0x547cd0=>this['_getViewFromDiffObj'](_0x547cd0,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x36f37b[_0xbbc81a]=this['editor']['data']['processor']['toData'](_0x246175),this['editor']['data']['processor']['useFillerType']('default');}return _0x36f37b;}['getRevisionRootsAttributes'](_0x268f81){const _0x3e65bc={};for(const _0x4d4ab2 in _0x268f81['diffData'])_0x268f81['diffData'][_0x4d4ab2]['attachChange']&&!_0x268f81['diffData'][_0x4d4ab2]['attachChange']['isAttached']||(_0x3e65bc[_0x4d4ab2]=_0x268f81['diffData'][_0x4d4ab2]['attributesAfter']||{});return _0x3e65bc;}['_getTypeCharForViewElement'](_0x14e45f){return this['_viewClassToTypeChar']['get'](_0x14e45f['constructor']);}['_getViewFromDiffObj'](_0x4ec043,_0x49270c){const _0x3606f5=this['editor']['editing']['view']['document'];if('string'==typeof _0x4ec043)return new _0x1c744d(_0x3606f5,_0x4ec043);{let _0x2e06cf,_0x57d501;_0x57d501='u'==_0x4ec043['type']||'r'==_0x4ec043['type']?[]:_0x4ec043['children']['map'](_0x36ea0a=>this['_getViewFromDiffObj'](_0x36ea0a,_0x49270c));const _0x25f5b2=this['_typeCharToViewClass']['get'](_0x4ec043['type'])||_0x2292ad,_0x13c8ec=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2e06cf=new _0x25f5b2(_0x3606f5,_0x4ec043['name'],_0x4ec043['attributes'],_0x57d501),'u'==_0x4ec043['type']){const _0x1fa89b=_0x4ec043['children'][0x0];if(_0x2e06cf['render']=function(_0x5ee843){const _0x6e694=_0x5ee843['createElement']('div');return _0x6e694['innerHTML']=_0x1fa89b,_0x6e694['childNodes'][0x0];},_0x49270c){const _0x119dc6=new _0x2b236c(_0x3606f5);_0x119dc6['_appendChild'](_0x2e06cf);const _0x53e55e=Array['from'](_0x13c8ec['viewChildrenToDom'](_0x119dc6,{'bind':!0x1})),_0x31dc93=_0x13c8ec['domDocument']['createElement']('div');_0x31dc93['append'](..._0x53e55e),_0x2e06cf=Array['from'](_0x13c8ec['domChildrenToView'](_0x31dc93))[0x0];}}else{if('r'==_0x4ec043['type']){const _0x4262ef=_0x4ec043['children'][0x0];if(_0x2e06cf['render']=function(_0x2a118f){_0x2a118f['innerHTML']=_0x4262ef;},_0x49270c){const _0x1c2a90=new _0x2b236c(_0x3606f5);_0x1c2a90['_appendChild'](_0x2e06cf);const _0x559169=Array['from'](_0x13c8ec['viewChildrenToDom'](_0x1c2a90,{'bind':!0x1})),_0x38fdf7=_0x13c8ec['domDocument']['createElement']('div');_0x38fdf7['append'](..._0x559169);const _0x4b9577=Array['from'](_0x13c8ec['domChildrenToView'](_0x38fdf7));_0x4b9577['length']>0x1?_0x2e06cf['_appendChild'](_0x4b9577):_0x2e06cf=_0x4b9577[0x0];}}}if(_0x4ec043['customProperties']){for(const [_0x5a699f,_0x20bbbd]of _0x4ec043['customProperties'])_0x2e06cf['_setCustomProperty'](_0x5a699f,_0x20bbbd);}const _0x538d72=_0x4ec043['fillerOffset']||null;return _0x2e06cf['getFillerOffset']=()=>_0x538d72,_0x2e06cf;}}['_makeModelFromViewString'](_0x26158f){const _0x342390=JSON['parse'](_0x26158f),_0x286308=this['editor']['editing']['view']['document'],_0x343afd=new _0x2b236c(_0x286308,_0x342390['map'](_0x5c95ae=>this['_getViewFromDiffObj'](_0x5c95ae,!0x0)));return this['editor']['data']['toModel'](_0x343afd);}['_removeRevisionMarkers'](_0x439ab2){return(_0x439ab2=_0x439ab2['filter'](_0x1c9d41=>!_0x1c9d41['name']||'revision-start'!==_0x1c9d41['name']&&'revision-end'!==_0x1c9d41['name']))['forEach'](_0x5e8360=>{'string'!=typeof _0x5e8360&&(_0x5e8360['children']=this['_removeRevisionMarkers'](_0x5e8360['children']),_0x5e8360['attributes']=_0x5e8360['attributes']['filter'](_0x335b59=>!_0x335b59[0x0]['startsWith']('data-revision-')));}),_0x439ab2;}}function g(_0x2f11a5,_0x15daad,_0x13aa10){const t=_0x2f11a5['t'];switch(_0x15daad){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'},_0x13aa10);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x13aa10);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 _0x30e203{['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[_0x2a7e7a,I,V,_0x293404];}constructor(_0x5151c1){super(_0x5151c1),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 _0x15e758=_0x15b5e5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x15e758},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 _0x1c7153=this['repository']['getRevision'](0x0),_0x57dfff=_0x1c7153&&null===_0x1c7153['creator']?_0x1c7153:null;if(this['_continueCurrentRevision']=!!_0x57dfff&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3019a2=this['_source']['getCurrentRevisionId'](),_0x2ad81c=this['repository']['getRevision'](_0x3019a2);if(_0x2ad81c)this['_startingVersion']=_0x2ad81c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x41b4f3=this['_source']['history']['_operations']['find'](_0x542e54=>!_0x542e54['_isInit']),_0x18c169=_0x41b4f3?_0x41b4f3['baseVersion']:this['_source']['history']['version'];_0x1c7153?(_0x1c7153['toVersion']<_0x18c169&&_0x1c7153['_update']({'toVersion':_0x18c169}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x57dfff['id'],this['_startingVersion']=_0x57dfff['fromVersion']):(this['_startingVersion']=_0x1c7153['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x18c169,this['_continueCurrentRevision']=!0x1);}}else _0x57dfff&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x57dfff['toVersion'],this['editor']['model']['document']['history']['version']),_0x57dfff['fromVersion']===_0x57dfff['toVersion']?(0x0!==_0x57dfff['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x57dfff['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x57dfff['id'],this['_startingVersion']=_0x57dfff['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',_0x3926c0=>!_0x3926c0),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2735b7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x62f389;for(const _0x1d5681 in _0x2735b7){const _0x26b59f=_0x1d5681,_0x4e412e=_0x2735b7[_0x26b59f];if('revisionHistoryLicenseKeyValid'==_0x4e412e||'revisionHistoryLicenseKeyInvalid'==_0x4e412e||'revisionHistoryLicenseKeyExpired'==_0x4e412e||'revisionHistoryLicenseKeyDomainLimit'==_0x4e412e||'revisionHistoryLicenseKeyNotAllowed'==_0x4e412e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4e412e||'revisionHistoryLicenseKeyTrialLimit'==_0x4e412e||'revisionHistoryLicenseKeyUsageLimit'==_0x4e412e){delete _0x2735b7[_0x26b59f],_0x62f389=_0x4e412e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x62f389&&_0x2735b7['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x62f389&&_0x2735b7['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x62f389&&_0x2735b7['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x62f389&&_0x2735b7['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x62f389&&_0x2735b7['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x62f389&&_0x2735b7['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x62f389&&_0x2735b7['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x27f18f=this['repository']['getRevision'](0x0),_0x3cab0a=await this['getRevisionDocumentData'](_0x27f18f),_0x3c9708=await this['getRevisionRootsAttributes'](_0x27f18f);this['_replaceEditorDataWithRevisionData'](_0x3cab0a,_0x3c9708);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x429b80){this['_source']=_0x429b80;}async['update'](){const _0x4b5e37=await this['_source']['getLatestVersion']();if(_0x4b5e37>this['currentRevision']['toVersion']){await this['_loadState']();const _0x394485=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4b5e37});_0x394485['authors']=_0x394485['authorsIds']['map'](_0x5e7097=>this['editor']['plugins']['get']('Users')['getUser'](_0x5e7097)),this['currentRevision']['_update'](_0x394485);}}async['saveRevision'](_0x55ee85={},_0x4e4c69=null){const _0x5f1b39=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4e4c69>this['currentRevision']['toVersion']&&(_0x4e4c69=null),null===_0x4e4c69&&(_0x4e4c69=await this['_source']['getLatestVersion']());const _0x5095e1=this['_getFromVersion'](_0x4e4c69),_0x278ef9=this['buildRevisionData']({'from':_0x5095e1,'to':_0x4e4c69});if(this['currentRevision']['toVersion']<_0x4e4c69){const _0x2b755b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4e4c69,'to':_0x4e4c69});_0x2b755b['authors']=[],_0x2b755b['authorsIds']=[],_0x2b755b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2b755b,!0x0),delete _0x2b755b['authors'],_0x5f1b39['push'](_0x2b755b);}_0x55ee85['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x55ee85['name']=_0x55ee85['name']||null,_0x55ee85['id']=_0x55ee85['id']||_0x15b5e5(),_0x55ee85={..._0x55ee85,..._0x278ef9};const _0x2c2429=this['addRevisionData'](_0x55ee85);_0x5f1b39['push'](_0x55ee85);const _0x42ec8a=this['repository']['getIndex'](_0x2c2429);if(0x0!==_0x42ec8a){const _0x3e4f1a=this['repository']['getRevision'](_0x42ec8a-0x1);if(_0x3e4f1a['fromVersion']!==_0x4e4c69){const _0x3eda9d=this['_revisionDataBuilder']['getData'](_0x4e4c69,_0x3e4f1a['toVersion']),_0x2a06a5={'id':_0x3e4f1a['id'],'diffData':_0x3eda9d['diffData'],'authorsIds':_0x3eda9d['authorsIds'],'authors':_0x3eda9d['authorsIds']['map'](_0x236b33=>this['editor']['plugins']['get']('Users')['getUser'](_0x236b33)),'fromVersion':_0x4e4c69};_0x3e4f1a===this['currentRevision']&&(_0x2a06a5['createdAt']=new Date(_0x55ee85['createdAt']['getTime']()+0xa)),_0x3e4f1a['_update'](_0x2a06a5,!0x0),delete _0x2a06a5['authors'],_0x5f1b39['push'](_0x2a06a5);}}if(this['adapter']){for(const _0x578149 of _0x5f1b39)this['_bufferUpdate'](_0x578149['id'],_0x578149,!0x0);this['sendBufferedUpdates']();}return _0x2c2429;}['addRevisionData'](_0xba963a){const _0x4cf4c5=this['repository']['createRevision'](_0xba963a);return this['adapter']&&_0x4cf4c5['on']('_update',(_0x423df6,_0x5cdbde,_0x4820cc)=>{_0x4820cc||(this['_bufferUpdate'](_0x5cdbde['id'],_0x5cdbde,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4cf4c5,this['_findInsertionIndex'](_0x4cf4c5)),_0x4cf4c5;}async['getRevisionDocumentData'](_0x416b24){return await this['_utils']['loadRevisionData'](_0x416b24,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x416b24);}async['getRevisionRootsAttributes'](_0x56643b){return await this['_utils']['loadRevisionData'](_0x56643b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x56643b);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x29091b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x16e835=0x0;_0x16e835<_0x29091b['length'];_0x16e835++){const _0x3357a5=_0x29091b[_0x16e835];let _0x31a7c2=!0x1;for(const _0x384ed3 of Object['keys'](_0x3357a5))void 0x0===_0x3357a5[_0x384ed3]?delete _0x3357a5[_0x384ed3]:'id'!==_0x384ed3&&(_0x31a7c2=!0x0);_0x31a7c2||(_0x29091b[_0x16e835]=null);}if(_0x29091b=_0x29091b['filter'](_0xb3271=>null!==_0xb3271),!_0x29091b['length'])return;for(let _0x4533cd=0x0;_0x4533cd<_0x29091b['length'];_0x4533cd++){const _0x308362=_0x29091b[_0x4533cd];void 0x0!==_0x308362['fromVersion']&&void 0x0===_0x308362['toVersion']&&(_0x308362['toVersion']=this['repository']['getRevision'](_0x308362['id'])['toVersion']),void 0x0!==_0x308362['toVersion']&&void 0x0===_0x308362['fromVersion']&&(_0x308362['fromVersion']=this['repository']['getRevision'](_0x308362['id'])['fromVersion']);}const _0x38c590=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x29091b,_0x38c590)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x33c640=>{if(_0x33c640){for(const _0x41130e of _0x33c640)this['setRevisionData']({'id':_0x41130e['id'],'createdAt':_0x41130e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x39a4c1=null,from:_0x27a7b1=null,to:_0x52f3e5=null}){_0x27a7b1=null!==_0x27a7b1?_0x27a7b1:_0x39a4c1['fromVersion'],_0x52f3e5=null!==_0x52f3e5?_0x52f3e5:_0x39a4c1['toVersion'];const _0x117b7a=this['_revisionDataBuilder']['getData'](_0x27a7b1,_0x52f3e5),_0x20d2e0={'diffData':_0x117b7a['diffData'],'authorsIds':_0x117b7a['authorsIds'],'fromVersion':_0x27a7b1,'toVersion':_0x52f3e5};if(!_0x39a4c1||_0x52f3e5!==_0x39a4c1['toVersion']){const _0x1b69a9=_0x52f3e5-0x1,_0x1e4eaa=this['_source']['history']['getOperation'](_0x1b69a9);_0x20d2e0['createdAt']=_0x1e4eaa&&_0x1e4eaa['createdAt']||new Date();}if(this['_loadedStateData']&&_0x27a7b1===this['_loadedStateData']['fromVersion']){for(const _0x559a10 of this['_loadedStateData']['authors'])_0x20d2e0['authorsIds']['includes'](_0x559a10['id'])||_0x20d2e0['authorsIds']['push'](_0x559a10['id']);}return _0x20d2e0;}['_bufferUpdate'](_0xc5438e,_0x1dfc86,_0x452c51){if(this['_bufferedUpdates']['has'](_0xc5438e)){const _0xabbc1b=this['_bufferedUpdates']['get'](_0xc5438e);_0x1dfc86=_0x452c51?{..._0xabbc1b,..._0x1dfc86}:{..._0x1dfc86,..._0xabbc1b};}this['_bufferedUpdates']['set'](_0xc5438e,_0x1dfc86);}['setRevisionData'](_0x15105c){const _0x21ec3b=this['repository']['getRevision'](_0x15105c['id']);if(_0x15105c['createdAt']&&(_0x15105c['createdAt']=new Date(_0x15105c['createdAt'])),_0x15105c['authorsIds']){const _0x32e8c7=this['editor']['plugins']['get']('Users');_0x15105c['authors']=_0x15105c['authorsIds']['map'](_0x2728c0=>_0x32e8c7['getUser'](_0x2728c0));}_0x21ec3b['_update'](_0x15105c,!0x0);}['_createInitialRevision'](_0x52debc){const _0x5088bd=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5088bd)this['_initialRevisionId']=_0x5088bd['id'];else{const _0x425cc7=!this['editor']['model']['document']['roots']['find'](_0x43a465=>this['editor']['model']['hasContent'](_0x43a465)),_0x145b75=this['editor']['plugins']['get']('Users')['me']['id'],_0x39385c=g(this['editor']['locale'],_0x425cc7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x52debc,'to':_0x52debc,'id':this['_initialRevisionId'],'name':_0x39385c,'creatorId':_0x145b75});}}['_createCurrentRevision'](_0x443168){const _0x9a0a9a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x9a0a9a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x443168,'to':_0x443168,'id':_0x9a0a9a,'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'](_0x1ad7a5,_0x58d9cf){let _0x78bb9=this['editor']['config']['get']('initialData'),_0x50f54f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x78bb9){_0x78bb9={};for(const _0x417482 of this['editor']['model']['document']['getRootNames']())_0x78bb9[_0x417482]='';}if('string'==typeof _0x78bb9&&(_0x78bb9={'main':_0x78bb9}),void 0x0===_0x50f54f){_0x50f54f={};for(const _0x7384ff of this['editor']['model']['document']['getRootNames']())_0x50f54f[_0x7384ff]={};}let _0x2f2cbe=!0x1;const _0x394a84=Object['keys'](_0x78bb9),_0x2e2ca3=Object['keys'](_0x1ad7a5);for(const _0x54f784 of _0x394a84){if(_0x78bb9[_0x54f784]!==_0x1ad7a5[_0x54f784]&&''!==_0x78bb9[_0x54f784]['trim']()){_0x2f2cbe=!0x0;break;}if(!_0x4891a3(_0x50f54f[_0x54f784],_0x58d9cf[_0x54f784])&&Object['keys'](_0x50f54f[_0x54f784])['length']>0x0){_0x2f2cbe=!0x0;break;}}_0x2f2cbe||(_0x2f2cbe=_0x2e2ca3['some'](_0x3ffdf8=>!this['editor']['model']['document']['getRoot'](_0x3ffdf8))),_0x2f2cbe&&_0x324cb5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x78bb9,'editorRootsAttributes':_0x50f54f,'revisionData':_0x1ad7a5,'revisionRootsAttributes':_0x58d9cf}),this['editor']['config']['set']('initialData',_0x1ad7a5),this['editor']['config']['set']('rootsAttributes',_0x58d9cf);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2b3b3f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2b3b3f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4be3e3){const _0x1b893a=this['repository']['getRevisions']();_0x1b893a['reverse']();let _0x3649ec=0x0;for(;_0x3649ec<_0x1b893a['length'];){const _0x4bd24a=_0x1b893a[_0x3649ec];if(_0x4bd24a===this['currentRevision']){_0x3649ec++;continue;}if(_0x4bd24a['id']===this['_initialRevisionId'])break;const _0x5d4675=_0x4be3e3['toVersion']-_0x4bd24a['toVersion']||_0x4be3e3['fromVersion']-_0x4bd24a['fromVersion'];if(_0x5d4675>0x0)break;if(_0x5d4675<0x0)_0x3649ec++;else{if(!_0x4be3e3['creator']&&_0x4bd24a['creator'])break;if(_0x4bd24a['creator']||!_0x4be3e3['creator']){if(_0x4be3e3['createdAt']>_0x4bd24a['createdAt'])break;_0x3649ec++;}else _0x3649ec++;}}return _0x3649ec;}['_getFromVersion'](_0x45bd2f){const _0x4e3955=this['repository']['getRevisions']();_0x4e3955['reverse'](),_0x4e3955['shift']();const _0xc5c2ce=_0x4e3955['find'](_0x2464d0=>_0x2464d0['toVersion']<=_0x45bd2f)['toVersion'];return _0xc5c2ce<this['_startingVersion']?this['_startingVersion']:_0xc5c2ce;}['_makeRevision']({name:_0x27d520,from:_0x40e518,to:_0x33e3c2,creatorId:_0x5ad60f,id:_0x2f8247}){const _0x35b716=this['buildRevisionData']({'from':_0x40e518,'to':_0x33e3c2});_0x35b716['name']=_0x27d520,_0x35b716['creatorId']=_0x5ad60f,_0x35b716['id']=_0x2f8247;const _0x2f5164=this['addRevisionData'](_0x35b716);return this['adapter']&&this['_bufferUpdate'](_0x35b716['id'],_0x35b716,!0x0),_0x2f5164;}['_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(_0x5103de){this['editor']=_0x5103de,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'](_0x1520f6){this['source']=_0x1520f6;const _0x2b7925=new Map(),_0x60eec=new Map(),_0x4e80b0=this['editor']['model']['document']['roots']['map'](_0x5d83e3=>_0x5d83e3['rootName']);for(const _0x6aacec of _0x4e80b0){const _0x13ce9b=this['editor']['model']['document']['getRoot'](_0x6aacec),_0x4776ab=N(_0x13ce9b);_0x2b7925['set'](_0x6aacec,_0x4776ab),_0x60eec['set'](_0x6aacec,Object['fromEntries'](_0x13ce9b['getAttributes']()));}const _0x356579=Array['from'](this['editor']['model']['markers'])['map'](_0xb147c8=>[_0xb147c8['name'],_0xb147c8['getRange']()]),_0x47e7be=this['source']['version'];this['_saveMetaData'](_0x47e7be,_0x2b7925,_0x356579,_0x60eec),this['_startingRevisionId']=this['_revisionId'];const _0x11fe41=new Map(),_0x277218=new Map();for(const _0xd22655 of _0x4e80b0){const _0x3d0ccc=P(_0xd22655);_0x11fe41['set'](_0xd22655,_0x3d0ccc),_0x277218['set'](_0xd22655,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x11fe41,[],_0x277218);}['getData'](_0x18ea21,_0x2f79cc){if(this['_lastFrom']===_0x18ea21&&this['_lastTo']<=_0x2f79cc)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2f79cc,!0x0);else{if(!this['_savedMetaData']['has'](_0x18ea21)){const _0x3430cf=this['_getPreviousFrom'](_0x18ea21);this['_calculateMetaData'](_0x3430cf,_0x18ea21,!0x1);}this['_calculateMetaData'](_0x18ea21,_0x2f79cc,!0x0);}return this['_lastFrom']=_0x18ea21,this['_lastTo']=_0x2f79cc,this['_getState']();}['loadState'](_0x5b6016){const _0x239758=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5b6016['fromVersion'],this['_lastTo']=_0x5b6016['toVersion'];for(const _0x1a2cf7 in _0x5b6016['diffData']){const _0x714da3=_0x5b6016['diffData'][_0x1a2cf7]['attachChange'],_0x3789d7=_0x4729a1(_0x5b6016['diffData'][_0x1a2cf7]['attributesBefore'])||{},_0x348cd1=_0x239758['_makeModelFromViewString'](_0x5b6016['diffData'][_0x1a2cf7]['deletions']);_0x348cd1['rootName']=_0x1a2cf7,_0x348cd1['_isAttached']=!_0x714da3||!_0x714da3['isAttached'],_0x348cd1['isAttached']=()=>_0x348cd1['_isAttached'],this['_baseRoots']['set'](_0x1a2cf7,_0x348cd1),this['_baseRootsAttributes']['set'](_0x1a2cf7,_0x3789d7),_0x714da3&&this['_touchedRoots']['set'](_0x1a2cf7,_0x714da3);const _0x5f29e9=this['_makeIdsRoot'](_0x348cd1);this['_baseIdsRoots']['set'](_0x1a2cf7,_0x5f29e9);for(const [_0x59463a,_0x179ce6]of _0x348cd1['markers']){if(!_0x59463a['startsWith']('revision:'))continue;const _0x5663f6=_0x59463a['split'](':')[0x2];for(const _0x26369e of _0x179ce6['getWalker']({'singleCharacters':!0x0})){const _0x3912e5=this['_getVidAttributeName'](_0x26369e),_0x5e84d3='elementEnd'==_0x26369e['type']?_0x26369e['previousPosition']['path']['slice'](0x0,-0x1):_0x26369e['previousPosition']['path'],_0x1ef7b2=_0x5f29e9['getNodeByPath'](_0x5e84d3)['getAttribute'](_0x3912e5);this['_touched']['set'](_0x1ef7b2,{'userId':_0x5663f6});}}}this['_startingRevisionId']=this['_revisionId'];const _0x437be4=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x16b96e=>!this['_touched']['has'](_0x16b96e));let _0x8c12c3=0x0;const _0x54fddf=new Map();for(const _0x36c4fb in _0x5b6016['diffData']){const _0x5492a0=_0x5b6016['diffData'][_0x36c4fb]['attachChange'],_0x4de88a=_0x4729a1(_0x5b6016['diffData'][_0x36c4fb]['attributesAfter'])||{},_0x4679f6=_0x239758['_makeModelFromViewString'](_0x5b6016['diffData'][_0x36c4fb]['insertions']);_0x4679f6['rootName']=_0x36c4fb,_0x4679f6['_isAttached']=!_0x5492a0||_0x5492a0['isAttached'],_0x4679f6['isAttached']=()=>_0x4679f6['_isAttached'],this['_diffRoots']['set'](_0x36c4fb,_0x4679f6),this['_diffRootsAttributes']['set'](_0x36c4fb,_0x4de88a);const _0x50780c=this['_makeIdsRoot'](_0x4679f6,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x36c4fb,_0x50780c),_0x54fddf['set'](_0x36c4fb,_0x4679f6['isAttached']()?_0x4de88a:{});for(const [_0x14b93b,_0x315770]of _0x4679f6['markers']){if(!_0x14b93b['startsWith']('revision:'))continue;const _0x22040b=_0x14b93b['split'](':')[0x2];for(const _0x3718be of _0x315770['getWalker']({'singleCharacters':!0x0})){const _0x43256d=this['_getVidAttributeName'](_0x3718be),_0xc975d=this['_revisionId']++,_0x283c3c='elementEnd'==_0x3718be['type']?_0x3718be['previousPosition']['path']['slice'](0x0,-0x1):_0x3718be['previousPosition']['path'];_0x50780c['getNodeByPath'](_0x283c3c)['_setAttribute'](_0x43256d,_0xc975d),this['_touched']['set'](_0xc975d,{'userId':_0x22040b});}}for(const _0x3d7e43 of this['editor']['model']['createRangeIn'](_0x4679f6)['getWalker']({'singleCharacters':!0x0})){const _0xff1f02=this['_getVidAttributeName'](_0x3d7e43),_0x471a50='elementEnd'==_0x3d7e43['type']?_0x3d7e43['previousPosition']['path']['slice'](0x0,-0x1):_0x3d7e43['previousPosition']['path'],_0x262489=_0x50780c['getNodeByPath'](_0x471a50);_0x262489['getAttribute'](_0xff1f02)>0x0||_0x262489['_setAttribute'](_0xff1f02,_0x437be4[_0x8c12c3++]);}for(const [_0x1a407b,_0x463ce9]of _0x4679f6['markers'])_0x1a407b['startsWith']('revision:')||this['_markers']['set'](_0x1a407b,_0x463ce9);}const _0xf6b486=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf6b486),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf6b486,0x1));const _0x1f8641=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1f8641),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1f8641,0x1));const _0x2b2176=Array['from'](this['_diffRoots'])['map'](([_0x54d157,_0x182be7])=>[_0x54d157,N(_0x182be7)]);this['_saveMetaData'](this['_lastTo'],_0x2b2176,this['_markers'],_0x54fddf);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5296af,_0x19d48d,_0x43d9de,_0x344465){const _0x496d89=new Map(_0x19d48d),_0x2a8600=new Map(_0x4729a1(_0x344465)),_0x320385=new Map();for(const [_0x1d6913,_0x5568b2]of _0x43d9de)_0x320385['set'](_0x1d6913,{'start':_0x5568b2['start']['clone'](),'end':_0x5568b2['end']['clone'](),'rootName':_0x5568b2['root']['rootName']});this['_savedMetaData']['set'](_0x5296af,{'roots':_0x496d89,'markers':_0x320385,'rootsAttributes':_0x2a8600});}['_removeMetaData'](_0x1b9125){this['_savedMetaData']['delete'](_0x1b9125);}['_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'](_0x23da4f,_0x493e7c=null){let _0x2b1919=null;_0x23da4f['is']('documentFragment')||(_0x2b1919=new ut(_0x23da4f['name'],{'vid_start':null===_0x493e7c?this['_revisionId']++:_0x493e7c++}));const _0x2eb54d=[];for(const _0x2c843b of _0x23da4f['getChildren']())if(_0x2c843b['is']('element')){_0x2eb54d['push'](this['_makeIdsRoot'](_0x2c843b,_0x493e7c));const _0xe0fe05=_0x2eb54d[_0x2eb54d['length']-0x1];null!==_0x493e7c&&(_0x493e7c=_0xe0fe05['is']('element','$text')?_0xe0fe05['getAttribute']('vid')+0x1:_0xe0fe05['getAttribute']('vid_end')+0x1);}else{for(let _0x18cd7c=0x0;_0x18cd7c<_0x2c843b['offsetSize'];_0x18cd7c++)_0x2eb54d['push'](new ut('$text',{'vid':null===_0x493e7c?this['_revisionId']++:_0x493e7c++}));}if(_0x23da4f['is']('documentFragment')){const _0x1413ac=P(_0x23da4f['rootName']);return _0x1413ac['_insertChild'](0x0,_0x2eb54d),_0x1413ac;}return _0x2b1919['_setAttribute']('vid_end',null===_0x493e7c?this['_revisionId']++:_0x493e7c++),_0x2b1919['_insertChild'](0x0,_0x2eb54d),_0x2b1919;}['_calculateMetaData'](_0x3f4c94,_0x5b2675,_0x5f4b9f){this['_reset']();const {roots:_0x444e58,markers:_0x15d185,rootsAttributes:_0xda4545}=this['_savedMetaData']['get'](_0x3f4c94);this['_baseRoots']=new Map(_0x444e58),this['_baseRootsAttributes']=new Map(_0x4729a1(_0xda4545));for(const [_0x5927c5,_0x433dea]of this['_baseRoots'])if('$graveyard'!==_0x5927c5&&(this['_diffRoots']['set'](_0x5927c5,N(_0x433dea)),this['_diffRootsAttributes']=new Map(_0x4729a1(_0xda4545)),_0x5f4b9f)){const _0x3c8b7b=this['_revisionId'];this['_idsRoots']['set'](_0x5927c5,this['_makeIdsRoot'](_0x433dea)),this['_baseIdsRoots']['set'](_0x5927c5,this['_makeIdsRoot'](_0x433dea,_0x3c8b7b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x5f4b9f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x597005,_0x12dd6f]of _0x15d185){const _0x193ecf=this['_baseRoots']['get'](_0x12dd6f['rootName']),_0x20fe45=this['_diffRoots']['get'](_0x12dd6f['rootName']),_0x45c17f=new ft(this['_fixPosition'](_0x12dd6f['start'],_0x193ecf),this['_fixPosition'](_0x12dd6f['end'],_0x193ecf)),_0x1b5dac=this['_fixRange'](_0x45c17f,_0x20fe45);_0x193ecf['markers']['set'](_0x597005,_0x45c17f),this['_markers']['set'](_0x597005,_0x1b5dac);}this['_applyOperations'](_0x3f4c94,_0x5b2675,_0x5f4b9f);}['_applyOperations'](_0x4d91ad,_0x449b36,_0x415402){for(const _0x17703b of this['source']['getOperations'](_0x4d91ad,_0x449b36))this['_handleOperation'](_0x17703b,_0x415402);for(const _0x574baf of this['_diffRoots']['values']())_0x574baf['markers']['clear']();for(const [_0x19b85d,_0x1f9627]of this['_markers']){this['_diffRoots']['get'](_0x1f9627['root']['rootName'])['markers']['set'](_0x19b85d,_0x1f9627['clone']());}const _0x2e978e=new Map(),_0x537b96=new Map();for(const [_0x29c51f,_0x178482]of this['_diffRoots'])_0x2e978e['set'](_0x29c51f,N(_0x178482)),_0x537b96['set'](_0x29c51f,this['_diffRootsAttributes']['get'](_0x29c51f));this['_saveMetaData'](_0x449b36,_0x2e978e,this['_markers'],_0x537b96);}['_getPreviousFrom'](_0x329da9){const _0x43200f=Array['from'](this['_savedMetaData']['keys']());_0x43200f['sort']((_0x4639a3,_0x38546c)=>_0x4639a3-_0x38546c),_0x43200f['reverse']();for(const _0x4ff653 of _0x43200f)if(_0x4ff653<_0x329da9)return _0x4ff653;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x307e8e,_0x315455){const _0x11e7d2=Array['from'](_0x315455['markers'])['map'](([_0x1f9859,_0x1ab6b3])=>[_0x1f9859,this['_fixRange'](_0x1ab6b3,_0x307e8e)]);_0x307e8e['markers']=new Map(_0x11e7d2);}['_transformMarkers'](_0x3b59a4){for(const _0xb9561e of this['_markers']['values']()){const _0x2e5011=_0xb9561e['getTransformedByOperation'](_0x3b59a4),_0x47c868=ft['_createFromRanges'](_0x2e5011);_0xb9561e['start']=_0x47c868['start'],_0xb9561e['end']=_0x47c868['end'];}}['_handleOperation'](_0x581621,_0x35d84e){if('addRoot'!=_0x581621['type']&&'detachRoot'!=_0x581621['type']){if('insert'==_0x581621['type']){const _0x2393ef=_0x581621['position']['root']['rootName'];this['_diffRoots']['has'](_0x2393ef)||(this['_diffRoots']['set'](_0x2393ef,P(_0x2393ef,!0x0)),this['_diffRootsAttributes']['set'](_0x2393ef,{}),_0x35d84e&&this['_idsRoots']['set'](_0x2393ef,P(_0x2393ef,!0x0)));}else{if('addRootAttribute'==_0x581621['type']||'removeRootAttribute'==_0x581621['type']||'changeRootAttribute'==_0x581621['type'])return void this['_handleRootAttributeOperation'](_0x581621);'marker'==_0x581621['type']&&this['_handleMarkerOperation'](_0x581621);}if('marker'!==_0x581621['type']){const _0x2f9c17=this['_cloneOperation'](_0x581621,this['_diffRoots']);_0x2f9c17['_execute'](),this['_transformMarkers'](_0x2f9c17);}if(_0x35d84e)switch(_0x581621['type']){case'insert':this['_handleInsertOperation'](_0x581621);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x581621);break;case'merge':this['_handleMergeOperation'](_0x581621);break;case'split':this['_handleSplitOperation'](_0x581621);}}else this['_handleRootOperation'](_0x581621,_0x35d84e);}['_cloneOperation'](_0x35df7a,_0x10733b){const _0x4fe701=_0x35df7a['clone']();return _0x4fe701['_authorId']=_0x35df7a['_authorId'],this['_fixOperation'](_0x4fe701,_0x10733b),_0x4fe701;}['_getBaseVids'](_0x2ba983){return _0x2ba983['map'](_0x536ae1=>{const _0x4beccd=this['_getVidAttributeName'](_0x536ae1);return Number(_0x536ae1['item']['getAttribute'](_0x4beccd));});}['_generateTape'](_0x226e84,_0x1cbc4b){if(_0x226e84['is']('element','$text'))_0x1cbc4b['push']({'item':_0x226e84,'type':'text'});else{_0x226e84['is']('element')&&_0x1cbc4b['push']({'item':_0x226e84,'type':'elementStart'});for(const _0x346e9e of _0x226e84['getChildren']())this['_generateTape'](_0x346e9e,_0x1cbc4b);_0x226e84['is']('element')&&_0x1cbc4b['push']({'item':_0x226e84,'type':'elementEnd'});}return _0x1cbc4b;}['_getState'](){const _0x5dadcc=new Map(this['_touched']),_0x4abc85=new Map(_0x5dadcc),_0x3db4dd=new Map(),_0x5f0ee4={'insertions':{},'deletions':{}},_0x48bc9b={'insertions':{},'deletions':{}},_0xdc7128=new Map(),_0x3fda1f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3fda1f['delete']('$graveyard');for(const _0x56d0c7 of _0x3fda1f){const _0x2eaa63=this['_diffRoots']['get'](_0x56d0c7)||P(_0x56d0c7,!0x1),_0x3cfa92=this['_baseRoots']['get'](_0x56d0c7)||P(_0x56d0c7,!0x1);_0x2eaa63['isAttached']()||_0x3cfa92['isAttached']()?(_0x5f0ee4['insertions'][_0x56d0c7]=N(_0x2eaa63),_0x5f0ee4['deletions'][_0x56d0c7]=N(_0x3cfa92),this['_copyMarkers'](_0x5f0ee4['deletions'][_0x56d0c7],_0x3cfa92),this['_copyMarkers'](_0x5f0ee4['insertions'][_0x56d0c7],_0x2eaa63),_0x48bc9b['insertions'][_0x56d0c7]=this['_generateTape'](this['_idsRoots']['get'](_0x56d0c7),[]),_0x48bc9b['deletions'][_0x56d0c7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x56d0c7)||P(_0x56d0c7,!0x1),[])):_0x3fda1f['delete'](_0x56d0c7);}for(const _0x38841e of _0x3fda1f){const _0x16f1e8=_0x48bc9b['insertions'][_0x38841e];for(const _0x24eded of _0x16f1e8){const _0x107aff=this['_getVidAttributeName'](_0x24eded),_0x15f0d0=_0x24eded['item']['getAttribute'](_0x107aff);_0x4abc85['delete'](_0x15f0d0),_0x15f0d0>=this['_startingRevisionId']&&_0x3db4dd['set'](_0x15f0d0,_0x5dadcc['get'](_0x15f0d0));}}for(const _0x1b565e of _0x3fda1f){const _0x2a5c19=_0x48bc9b['insertions'][_0x1b565e],_0x371212=this['_getBaseVids'](_0x48bc9b['deletions'][_0x1b565e]);let _0x1fed70=0x0;for(const _0x523d52 of _0x2a5c19){const _0x5d5c1b=this['_getVidAttributeName'](_0x523d52),_0x5773a8=_0x523d52['item']['getAttribute'](_0x5d5c1b);if(!_0x3db4dd['has'](_0x5773a8)&&!_0xdc7128['has'](_0x5773a8)){if(_0x4abc85['has'](_0x5773a8))_0x1fed70++;else{if(_0x5773a8!=_0x371212[_0x1fed70]){const _0x1d108d=_0x5dadcc['get'](_0x5773a8)||_0x5dadcc['get'](_0x371212[_0x1fed70]);for(;_0x5773a8!=_0x371212[_0x1fed70];)_0x4abc85['has'](_0x371212[_0x1fed70])||(_0xdc7128['set'](_0x371212[_0x1fed70],_0x1d108d),_0x5dadcc['set'](_0x371212[_0x1fed70],_0x1d108d)),_0x1fed70++;}_0x1fed70++;}}}}for(const _0x657f18 of _0x3fda1f){const _0x2ca9f4=_0x48bc9b['insertions'][_0x657f18];for(const _0x5ab744 of _0x2ca9f4){const _0x186abb=this['_getVidAttributeName'](_0x5ab744),_0x51a156=_0x5ab744['item']['getAttribute'](_0x186abb);if(_0xdc7128['has'](_0x51a156)){const _0x2a3e14=_0xdc7128['get'](_0x51a156);_0x4abc85['has'](_0x51a156)||_0x4abc85['set'](_0x51a156,{..._0x2a3e14}),_0x3db4dd['set'](_0x51a156,{..._0x2a3e14});}}}for(const _0x555781 of _0x4abc85['keys']())_0x555781>=this['_startingRevisionId']&&_0x4abc85['delete'](_0x555781);const _0x571927=new Map();for(const _0x204ce3 of _0x3fda1f){let _0x4d514c=_0x48bc9b['insertions'][_0x204ce3];for(const _0x3683de of _0x4d514c)if(_0x3683de['item']['is']('element','tableCell')){const _0x10d6e5=this['_getVidAttributeName'](_0x3683de),_0xadc88f=_0x3683de['item']['getAttribute'](_0x10d6e5);if(_0x3db4dd['has'](_0xadc88f)){const _0xb1305c=_0x3683de['item']['parent']['parent']['getAttribute']('vid_start'),_0x225835=_0x571927['get'](_0xb1305c)||new Set();_0x225835['add'](_0x3db4dd['get'](_0xadc88f)['userId']),_0x571927['set'](_0xb1305c,_0x225835);}}_0x4d514c=_0x48bc9b['deletions'][_0x204ce3];for(const _0x36d0a1 of _0x4d514c)if(_0x36d0a1['item']['is']('element','tableCell')){const _0xb19431=this['_getVidAttributeName'](_0x36d0a1),_0x401c35=_0x36d0a1['item']['getAttribute'](_0xb19431);if(_0x4abc85['has'](_0x401c35)){const _0x3d572f=_0x36d0a1['item']['parent']['parent']['getAttribute']('vid_start'),_0x1650d7=_0x571927['get'](_0x3d572f)||new Set();_0x1650d7['add'](_0x4abc85['get'](_0x401c35)['userId']),_0x571927['set'](_0x3d572f,_0x1650d7);}}for(const _0xadf8c6 of _0x571927['keys']())(_0x3db4dd['has'](_0xadf8c6)||_0x4abc85['has'](_0xadf8c6))&&_0x571927['delete'](_0xadf8c6);}for(const _0x3f19e9 of _0x3fda1f){const _0x3f0c96=_0x48bc9b['insertions'][_0x3f19e9];let _0x10fb51=null,_0x42602f=null;for(const _0x4f7fe6 of _0x3f0c96){const _0x189d30=this['_getVidAttributeName'](_0x4f7fe6),_0x1e9ff6=_0x4f7fe6['item']['getAttribute'](_0x189d30),_0x11463d=_0x571927['get'](_0x1e9ff6);_0x11463d&&'elementStart'==_0x4f7fe6['type']&&(_0x10fb51=Array['from'](_0x11463d)[0x0],_0x42602f=_0x4f7fe6['item']['getAttribute']('vid_end')),_0x10fb51&&(_0x4abc85['set'](_0x1e9ff6,{'userId':_0x10fb51}),_0x3db4dd['set'](_0x1e9ff6,{'userId':_0x10fb51})),_0x1e9ff6==_0x42602f&&(_0x10fb51=null,_0x42602f=null);}}const _0x395d5a={},_0x29da93=new Set();for(const _0x23c08c of _0x3fda1f){const _0x417ab8=_0x5f0ee4['deletions'][_0x23c08c],_0x3852a0=_0x5f0ee4['insertions'][_0x23c08c];for(const {userId:_0x4bddf5}of this['_touchedMarkers']['values']())null!==_0x4bddf5&&_0x29da93['add'](_0x4bddf5);for(const {userId:_0x46c1f0}of this['_touchedRoots']['values']())null!==_0x46c1f0&&_0x29da93['add'](_0x46c1f0);this['_markChanges'](_0x3852a0,_0x48bc9b['insertions'][_0x23c08c],_0x3db4dd,'insertion',_0x29da93),this['_markChanges'](_0x417ab8,_0x48bc9b['deletions'][_0x23c08c],_0x4abc85,'deletion',_0x29da93),_0x395d5a[_0x23c08c]={'insertions':this['_prepareViewToSave'](_0x3852a0),'deletions':this['_prepareViewToSave'](_0x417ab8),'attachChange':this['_touchedRoots']['get'](_0x23c08c)||null,'attributesBefore':_0x4729a1(this['_baseRootsAttributes']['get'](_0x23c08c))||{},'attributesAfter':_0x4729a1(this['_diffRootsAttributes']['get'](_0x23c08c))};}return{'diffData':_0x395d5a,'authorsIds':Array['from'](_0x29da93)};}['_processRootBeforeSave'](_0x1c08aa){for(const [,_0x3aa40f]of _0x1c08aa['markers']){const _0x49dcb6=_0x3aa40f['start']['getAncestors']()['filter'](_0x441336=>'tableCell'==_0x441336['name']);for(const _0x263bd2 of _0x49dcb6)0x1==_0x263bd2['childCount']&&_0x263bd2['getChild'](0x0)['is']('element','paragraph')&&_0x263bd2['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x31cdad){this['_processRootBeforeSave'](_0x31cdad);const _0x4da115=this['editor']['data']['toView'](_0x31cdad,{}),_0x1d8e30=Array['from'](_0x4da115['getChildren']())['map'](_0x5ce34d=>this['_getViewJson'](_0x5ce34d));return JSON['stringify'](_0x1d8e30);}['_getViewJson'](_0x2eea5f){if(_0x2eea5f['is']('$text'))return _0x2eea5f['data'];{const _0x24a74b=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x325b04=_0x2eea5f,_0xebf521=this['editor']['data']['htmlProcessor']['domConverter'],_0xdc5d08={'type':_0x24a74b['_getTypeCharForViewElement'](_0x325b04),'name':_0x325b04['name'],'attributes':Array['from'](_0x325b04['getAttributes']()),'children':Array['from'](_0x325b04['getChildren']())['map'](_0x2bdb18=>this['_getViewJson'](_0x2bdb18))};if(_0x2eea5f['is']('uiElement')&&'$comment'!=_0x2eea5f['name']){const _0x559e12=_0x2eea5f['render'](_0xebf521['domDocument'],_0xebf521);_0xdc5d08['children']['push'](_0x559e12['outerHTML']);}else{if(_0x2eea5f['is']('rawElement')){const _0x10741c=_0xebf521['domDocument']['createElement'](_0x325b04['name']);_0x2eea5f['render'](_0x10741c,_0xebf521),_0xdc5d08['children']['push'](_0x10741c['innerHTML']);}}const _0x30a7ba=Array['from'](_0x325b04['getCustomProperties']());_0x30a7ba['length']>0x0&&(_0xdc5d08['customProperties']=_0x30a7ba);const _0x317787=_0x325b04['getFillerOffset']();return null!==_0x317787&&(_0xdc5d08['fillerOffset']=_0x317787),_0xdc5d08;}}['_markChanges'](_0x1169f2,_0x1a0df6,_0x591d34,_0x5900ac,_0x4c21bb){let _0x34c0ec=null,_0x5ceb48=null,_0x5af75d=0x0;const _0x320851=this['editor']['model'];for(let _0x45f7e0=0x0;_0x45f7e0<_0x1a0df6['length'];_0x45f7e0++){const _0x139225=this['_getVidAttributeName'](_0x1a0df6[_0x45f7e0]),_0x188c85=_0x1a0df6[_0x45f7e0]['item']['getAttribute'](_0x139225),_0x3ba9e1=_0x591d34['get'](_0x188c85),_0x4b80cc=_0x45f7e0==_0x1a0df6['length']-0x1;(!_0x34c0ec&&_0x3ba9e1&&(_0x34c0ec=_0x3ba9e1,_0x5ceb48=_0x1a0df6[_0x45f7e0]),_0x34c0ec&&(!_0x3ba9e1||_0x3ba9e1['userId']!=_0x34c0ec['userId']))&&(_0x40339f(_0x3ba9e1,F(_0x5ceb48,_0x1169f2,_0x320851),F(_0x1a0df6[_0x45f7e0],_0x1169f2,_0x320851)),_0x34c0ec=_0x3ba9e1||null,_0x5ceb48=_0x3ba9e1?_0x1a0df6[_0x45f7e0]:null),_0x34c0ec&&_0x4b80cc&&_0x40339f(_0x3ba9e1,F(_0x5ceb48,_0x1169f2,_0x320851),B(_0x1a0df6[_0x45f7e0],_0x1169f2,_0x320851));}function _0x40339f(_0x56dd71,_0x2112c7,_0x3f0447){const _0x257037=_0x34c0ec['userId'],_0x3718e7='revision:'+_0x5900ac+':'+_0x257037+':'+_0x5af75d++,_0x4c8390=_0x320851['createRange'](_0x2112c7,_0x3f0447);_0x1169f2['markers']['set'](_0x3718e7,_0x4c8390),null!==_0x257037&&_0x4c21bb['add'](_0x257037);}}['_getVidAttributeName'](_0x3f3933){switch(_0x3f3933['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2bb9aa,_0x3fb8d5){_0x2bb9aa['baseVersion']=null;for(const _0x260ca3 in _0x2bb9aa){const _0x18d835=_0x2bb9aa[_0x260ca3];if(_0x18d835 instanceof vt){const _0x1ad232=_0x3fb8d5['get'](_0x18d835['root']['rootName']);_0x2bb9aa[_0x260ca3]=this['_fixPosition'](_0x18d835,_0x1ad232);}if(_0x18d835 instanceof ft){const _0x58a9e5=_0x3fb8d5['get'](_0x18d835['root']['rootName']);_0x2bb9aa[_0x260ca3]=this['_fixRange'](_0x18d835,_0x58a9e5);}'root'===_0x260ca3&&(_0x2bb9aa['root']=_0x3fb8d5['get'](_0x2bb9aa['root']['rootName']));}}['_fixRange'](_0x58ecfb,_0x55c11b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58ecfb['start'],_0x55c11b),this['_fixPosition'](_0x58ecfb['end'],_0x55c11b));}['_fixPosition'](_0x1a9eac,_0x34f2c5){return this['editor']['model']['createPositionFromPath'](_0x34f2c5,_0x1a9eac['path'],_0x1a9eac['stickiness']);}['_handleInsertOperation'](_0x51e5b8){const _0x14aecb=this['_idsRoots']['get'](_0x51e5b8['position']['root']['rootName']),_0x96c848=this['_fixPosition'](_0x51e5b8['position'],_0x14aecb),_0x2a95c7=null===_0x51e5b8['_authorId']?null:_0x51e5b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d4839=_0x96c848['parent'],_0x464591=this['_revisionId'],_0x53c3f6=[];for(const _0x43c65a of _0x51e5b8['nodes'])if(_0x43c65a['is']('element'))_0x53c3f6['push'](this['_makeIdsRoot'](_0x43c65a));else{for(let _0x18d46b=0x0;_0x18d46b<_0x43c65a['offsetSize'];_0x18d46b++)_0x53c3f6['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3a8d40=this['_revisionId'];for(let _0x22cc9a=_0x464591;_0x22cc9a<_0x3a8d40;_0x22cc9a++)this['_touched']['set'](_0x22cc9a,{'userId':_0x2a95c7});_0x1d4839['_insertChild'](_0x96c848['offset'],_0x53c3f6);}['_handleMoveOperation'](_0x11deac){(_0x11deac=this['_cloneOperation'](_0x11deac,this['_idsRoots']))['_execute']();const _0x3966a0=null===_0x11deac['_authorId']?null:_0x11deac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe4bed2=_0x11deac['getMovedRangeStart'](),_0x8ef138=_0xe4bed2['parent'],_0x1aad74=_0xe4bed2['offset'];!function _0xf29e8e(_0x17ef01,_0x226527,_0x2a8b3e,_0x4a8980){for(let _0x31bbff=_0x2a8b3e;_0x31bbff<_0x4a8980;_0x31bbff++){const _0x20073a=_0x226527['getChild'](_0x31bbff);_0x20073a['is']('element','$text')?_0x17ef01['set'](_0x20073a['getAttribute']('vid'),{'userId':_0x3966a0}):(_0x17ef01['set'](_0x20073a['getAttribute']('vid_start'),{'userId':_0x3966a0}),_0xf29e8e(_0x17ef01,_0x20073a,0x0,_0x20073a['childCount']),_0x17ef01['set'](_0x20073a['getAttribute']('vid_end'),{'userId':_0x3966a0}));}}(this['_touched'],_0x8ef138,_0x1aad74,_0x1aad74+_0x11deac['howMany']);}['_handleMergeOperation'](_0xa98163){const _0x4560be=null===(_0xa98163=this['_cloneOperation'](_0xa98163,this['_idsRoots']))['_authorId']?null:_0xa98163['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f27ca=_0xa98163['targetPosition']['parent'],_0x57769e=_0xa98163['sourcePosition']['parent'],_0x41fc28=_0x3f27ca['getAttribute']('vid_end'),_0x5b2e01=_0x57769e['getAttribute']('vid_start');_0x3f27ca['_setAttribute']('vid_end',_0x57769e['getAttribute']('vid_end')),_0x57769e['_setAttribute']('vid_end',_0x41fc28),this['_touched']['set'](_0x5b2e01,{'userId':_0x4560be}),this['_touched']['set'](_0x41fc28,{'userId':_0x4560be}),_0xa98163['_execute']();}['_handleSplitOperation'](_0x7f3c8d){const _0x23275b=null===(_0x7f3c8d=this['_cloneOperation'](_0x7f3c8d,this['_idsRoots']))['_authorId']?null:_0x7f3c8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39f001=_0x7f3c8d['graveyardPosition'],_0x50866b=_0x7f3c8d['splitPosition']['parent'];_0x7f3c8d['_execute']();const _0x7dd67f=_0x50866b['getAttribute']('vid_end'),_0x33052d=_0x7f3c8d['insertionPosition']['nodeAfter'];if(_0x39f001){const _0xe2e5a1=_0x33052d['getAttribute']('vid_end'),_0x2775ec=_0x50866b['getAttribute']('vid_end');_0x50866b['_setAttribute']('vid_end',_0xe2e5a1),_0x33052d['_setAttribute']('vid_end',_0x2775ec),this['_touched']['set'](_0x50866b['getAttribute']('vid_end'),{'userId':_0x23275b}),this['_touched']['set'](_0x33052d['getAttribute']('vid_start'),{'userId':_0x23275b});}else{const _0x4e8a8f=this['_revisionId']++,_0x521205=this['_revisionId']++;_0x50866b['_setAttribute']('vid_end',_0x4e8a8f),_0x33052d['_setAttribute']('vid_start',_0x521205),_0x33052d['_setAttribute']('vid_end',_0x7dd67f),this['_touched']['set'](_0x4e8a8f,{'userId':_0x23275b}),this['_touched']['set'](_0x521205,{'userId':_0x23275b});}}['_handleMarkerOperation'](_0x2f3bc4){if(!_0x2f3bc4['affectsData'])return;const _0x13e4da=(_0x2f3bc4=this['_cloneOperation'](_0x2f3bc4,this['_diffRoots']))['oldRange']?_0x2f3bc4['oldRange']['root']:null,_0x4202d0=_0x2f3bc4['newRange']?_0x2f3bc4['newRange']['root']:null;_0x13e4da&&this['_markers']['delete'](_0x2f3bc4['name']),_0x4202d0&&this['_markers']['set'](_0x2f3bc4['name'],_0x2f3bc4['newRange']['clone']());const _0x4f716b=null===_0x2f3bc4['_authorId']?null:_0x2f3bc4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14ce6a=_0x2f3bc4['name'];if(!this['_touchedMarkers']['has'](_0x14ce6a))return void this['_touchedMarkers']['set'](_0x14ce6a,{'range':_0x2f3bc4['oldRange'],'userId':_0x4f716b});const _0x146df3=this['_touchedMarkers']['get'](_0x14ce6a),_0x49ec80=_0x146df3['range'],_0x5df901=_0x2f3bc4['newRange'];null==_0x49ec80&&null==_0x5df901||_0x49ec80&&_0x5df901&&_0x49ec80['isEqual'](_0x5df901)?this['_touchedMarkers']['delete'](_0x2f3bc4['name']):_0x146df3['userId']=_0x4f716b;}['_handleRootOperation'](_0x56e1d5,_0xce5489){this['_diffRoots']['has'](_0x56e1d5['rootName'])?this['_diffRoots']['get'](_0x56e1d5['rootName'])['_isAttached']=_0x56e1d5['isAdd']:(this['_diffRoots']['set'](_0x56e1d5['rootName'],P(_0x56e1d5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x56e1d5['rootName'],{}),_0xce5489&&this['_idsRoots']['set'](_0x56e1d5['rootName'],P(_0x56e1d5['rootName'],!0x0)));const _0x386271=null===_0x56e1d5['_authorId']?null:_0x56e1d5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x107f7c=this['_touchedRoots']['get'](_0x56e1d5['rootName']);_0x107f7c&&_0x107f7c['userId']===_0x386271?this['_touchedRoots']['delete'](_0x56e1d5['rootName']):this['_touchedRoots']['set'](_0x56e1d5['rootName'],{'userId':_0x386271,'isAttached':_0x56e1d5['isAdd']});}['_handleRootAttributeOperation'](_0x36c43e){const _0x4ec8ea=this['_diffRootsAttributes']['get'](_0x36c43e['root']['rootName']);null===_0x36c43e['newValue']?delete _0x4ec8ea[_0x36c43e['key']]:_0x4ec8ea[_0x36c43e['key']]=_0x36c43e['newValue'];}}function N(_0x5157fc){const _0x2503ef=P(_0x5157fc['rootName'],_0x5157fc['isAttached']());for(const _0xb99b92 of _0x5157fc['getChildren']()){const _0x5f5df5=_0xb99b92['_clone'](!0x0);_0x2503ef['_appendChild'](_0x5f5df5);}return _0x2503ef;}function P(_0x4cd2d1,_0x194077=!0x0){const _0x5258e4=new gt();return _0x5258e4['rootName']=_0x4cd2d1,_0x5258e4['_isAttached']=_0x194077,_0x5258e4['isAttached']=()=>_0x5258e4['_isAttached'],_0x5258e4;}function F(_0xcfbf72,_0x4b1c2a,_0x4b1ab2){const _0x2fe040='elementEnd'==_0xcfbf72['type']?_0x4b1ab2['createPositionAt'](_0xcfbf72['item'],'end'):_0x4b1ab2['createPositionBefore'](_0xcfbf72['item']);return _0x4b1ab2['createPositionFromPath'](_0x4b1c2a,_0x2fe040['path'],_0x2fe040['stickiness']);}function B(_0x1098ce,_0x4a9310,_0x33ecd4){const _0x49ee77='elementStart'==_0x1098ce['type']?_0x33ecd4['createPositionAt'](_0x1098ce['item'],0x0):_0x33ecd4['createPositionAfter'](_0x1098ce['item']);return _0x33ecd4['createPositionFromPath'](_0x4a9310,_0x49ee77['path'],_0x49ee77['stickiness']);}class os extends _0x1af282{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4f2db7,_0x4bc68d){super(_0x4f2db7),this['focusTracker']=new _0x50eb78(),this['keystrokes']=new _0xa1df15(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4bc68d),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x44b6ca({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4581fb=_0x533bfc=>_0x533bfc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4581fb),this['keystrokes']['set']('arrowleft',_0x4581fb),this['keystrokes']['set']('arrowup',_0x4581fb),this['keystrokes']['set']('arrowdown',_0x4581fb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x53f98b){this['revisionNameInputView']['fieldView']['element']['value']=_0x53f98b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3e1137){const _0x436478=new nt(this['locale'],ti),_0x51e439=_0x436478['fieldView'];_0x51e439['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1fc58b=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3e1137&&(_0x1fc58b+='\x20('+g(this['locale'],'optional')+')'),(_0x436478['label']=_0x1fc58b,_0x51e439['on']('input',()=>{this['revisionNameInputValue']=_0x51e439['element']['value']['trim']();}),_0x436478);}}class f extends _0x30e203{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x232ddb=this['editor'],_0x3cca03=_0x232ddb['plugins']['get']('RevisionTracker');_0x232ddb['ui']['componentFactory']['add']('revisionHistory',_0x7cc0a2=>{const _0x527091=_0x10d0b8(_0x7cc0a2),_0x2cdedb=_0x527091['panelView']['children'],_0x314e26=new _0x990376(_0x7cc0a2),_0x1b408e=new te(_0x7cc0a2),_0x5b3036=new _0x3e8319(_0x7cc0a2),_0x1419c4=new te(_0x7cc0a2),_0x1e06a6=new _0x3e8319(_0x7cc0a2);return _0x527091['bind']('isEnabled')['to'](_0x3cca03,'isReady',_0x3cca03,'isEnabled',_0x232ddb,'isReadOnly',(_0x2d2f2f,_0x357f2e,_0x34eec4)=>_0x2d2f2f&&_0x357f2e&&!_0x34eec4),_0x527091['buttonView']['set']({'icon':_0x42f02c,'label':g(_0x7cc0a2,'Revision\x20history'),'tooltip':!0x0}),_0x5b3036['set']({'label':g(_0x7cc0a2,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5b3036['bind']('isEnabled')['to'](_0x3cca03,'isReady',_0x3cca03,'isEnabled',_0x232ddb,'isReadOnly',(_0xe4f1fb,_0x5425c7,_0x30d58d)=>_0xe4f1fb&&_0x5425c7&&!_0x30d58d),_0x5b3036['on']('execute',()=>this['_showDialog']()),_0x1e06a6['set']({'label':g(_0x7cc0a2,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1e06a6['bind']('isEnabled')['to'](_0x3cca03,'isReady',_0x232ddb,'isReadOnly',(_0x19967e,_0x2c8866)=>_0x19967e&&!_0x2c8866),_0x1e06a6['on']('execute',()=>{_0x232ddb['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x527091['isOpen']=!0x1,_0x232ddb['editing']['view']['focus']();}),_0x1b408e['children']['add'](_0x5b3036),_0x1419c4['children']['add'](_0x1e06a6),_0x314e26['role']='menu',_0x314e26['items']['addMany']([_0x1b408e,_0x1419c4]),_0x2cdedb['add'](_0x314e26),_0x527091;}),_0x232ddb['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1e3cc5=this['editor'],_0x2a8a6b=_0x1e3cc5['locale'],_0x5462ad=new _0x17ea5e(_0x2a8a6b),_0x8c5d28=new _0x4bbf02(_0x2a8a6b);_0x5462ad['buttonView']['set']({'icon':_0x42f02c,'label':g(_0x2a8a6b,'Revision\x20history')});const _0x51b4d1=new _0x54dd2c(_0x2a8a6b,_0x5462ad),_0x2323c4=new _0x2c3b74(_0x2a8a6b);_0x2323c4['set']({'label':g(_0x2a8a6b,'Save\x20current\x20revision')}),_0x2323c4['delegate']('execute')['to'](_0x5462ad),_0x2323c4['on']('execute',()=>{this['_showDialog']();}),_0x51b4d1['children']['add'](_0x2323c4),_0x8c5d28['items']['add'](_0x51b4d1);const _0x4eadf2=new _0x54dd2c(_0x2a8a6b,_0x5462ad),_0x403fbe=new _0x2c3b74(_0x2a8a6b);return _0x403fbe['set']({'label':g(_0x2a8a6b,'Open\x20revision\x20history')}),_0x403fbe['delegate']('execute')['to'](_0x5462ad),_0x403fbe['on']('execute',()=>{_0x1e3cc5['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4eadf2['children']['add'](_0x403fbe),_0x8c5d28['items']['add'](_0x4eadf2),_0x5462ad['panelView']['children']['add'](_0x8c5d28),_0x5462ad;}['_showDialog'](){const _0x39d6c2=this['editor'],_0x3ed7da=_0x39d6c2['locale'],_0x28ede3=_0x39d6c2['plugins']['get']('Dialog'),_0xf930b9=_0x39d6c2['plugins']['get']('RevisionTracker');function _0x1374c0(_0x4515ce){_0x39d6c2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4515ce['revisionName']?_0x4515ce['revisionNameInputView']['errorText']=g(_0x3ed7da,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x39d6c2['plugins']['get'](u)['saveRevision']({'name':_0x4515ce['revisionName']}),_0x28ede3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1374c0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x28ede3['show']({'id':'revisionSave','title':g(_0x3ed7da,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x39d6c2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x28ede3['hide']()},{'label':g(_0x39d6c2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x344c56){_0x344c56['bind']('isEnabled')['to'](_0xf930b9,'isReady',_0xf930b9,'isEnabled',_0x39d6c2,'isReadOnly',(_0x1c3137,_0x4ab3a1,_0x2f2995)=>_0x1c3137&&_0x4ab3a1&&!_0x2f2995);},'onExecute':()=>_0x1374c0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x289e91=this['editor'],_0x479cfa=_0x289e91['locale'];this['_saveRevisionFormView']=new os(_0x479cfa,_0x289e91['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x1af282{['changeId'];['_model'];constructor(_0x3585ca,_0x3f453a){super(_0x3585ca),this['_model']=_0x3f453a,this['changeId']=_0x3f453a['id'];const _0x17b0b1=this['bindTemplate'],_0x11d898=g(_0x3585ca,_0x3f453a['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3f453a['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3f453a['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x17b0b1['to']('type',_0x4a66f6=>'ck-revision-change__'+_0x4a66f6)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x11d898}]},{'text':'\x20'+_0x3f453a['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0xf284bd(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x347fcd){super(),this['id']=_0x347fcd['id']||_0x15b5e5(),this['author']=_0x347fcd['author'],this['type']=_0x347fcd['type'],this['data']=_0x347fcd['data']||{},this['rootName']=_0x347fcd['rootName'],this['set']('createdAt',_0x347fcd['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(_0x2d1cd5,_0x50dfc9){this['newRevisionId']=_0x2d1cd5,this['oldRevisionId']=_0x50dfc9,this['changes']=new _0x5648f3();}['_setChanges'](_0x25e47a){for(const _0x13a9c4 of _0x25e47a)this['changes']['add'](_0x13a9c4);}}class m extends _0x30e203{['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[_0x2a7e7a,_0x13c17d,I,V];}constructor(_0x3992e9){super(_0x3992e9),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',(_0x558c73,_0x1b70cf,_0x3d31ab)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x727ed2=>{for(const _0x569d46 of this['editor']['editing']['view']['document']['roots'])_0x3d31ab?_0x727ed2['removeClass']('ck-editor__editable__overlay',_0x569d46):_0x727ed2['addClass']('ck-editor__editable__overlay',_0x569d46);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1f70c1=>null!==_0x1f70c1),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x34fa67,_0x1a4240,_0x49086a)=>_0x34fa67&&_0x49086a?_0x1a4240['changes']['getIndex'](_0x49086a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2cab6a,_0x31d81a)=>_0x2cab6a?_0x31d81a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x13c17d);}['init'](){const _0x39df21=this['editor'],_0x166dde=new pt(_0x39df21,{'direction':'backward'}),_0x44cbdd=new pt(_0x39df21,{'direction':'forward'});(_0x39df21['commands']['add']('showPreviousChange',_0x166dde),_0x39df21['commands']['add']('showNextChange',_0x44cbdd),_0x39df21['commands']['add']('restoreRevision',new wt(_0x39df21)),this['on']('change:numberOfChanges',()=>{_0x166dde['refresh'](),_0x44cbdd['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x39df21['enableReadOnlyMode']('revision-viewer'),_0x39df21['plugins']['has']('WidgetToolbarRepository'))&&_0x39df21['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x57082e){return await this['_utils']['loadRevisionData'](_0x57082e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x57082e);}async['getRevisionRootsAttributes'](_0xe13221){return await this['_utils']['loadRevisionData'](_0xe13221,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xe13221);}async['compare'](_0x168bc0,_0x39984f,_0x355410=!0x1){if(!this['isEnabled'])return;const _0x2ef5dc=this['diff'],_0x4e4b92=this['repository'],_0x4cc362='string'==typeof _0x168bc0?_0x4e4b92['getRevision'](_0x168bc0):_0x168bc0,_0x2a7ba4='string'==typeof _0x39984f?_0x4e4b92['getRevision'](_0x39984f):_0x39984f,_0xf9069f=_0x4cc362['id'],_0xce74cd=_0x2a7ba4?_0x2a7ba4['id']:null;if(!_0x355410&&this['diff']&&this['diff']['newRevisionId']===_0xf9069f&&this['diff']['oldRevisionId']===_0xce74cd)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xf9069f,_0xce74cd);const _0x7e524=this['_getRevisionsRange'](_0x4cc362,_0x2a7ba4,!0x0)['map'](_0x2a5408=>this['_utils']['loadRevisionData'](_0x2a5408,this['adapter']));return _0x7e524['push'](new Promise(_0x1efaff=>{setTimeout(_0x1efaff,0x14);})),Promise['all'](_0x7e524)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x62b414=this['_getDiff'](_0xf9069f,_0xce74cd);for(const _0x52dfbd of _0x62b414['changes'])this['_changeIdToChange']['set'](_0x52dfbd['id'],_0x52dfbd);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xd3e40f=>{for(const _0x4ff95d of this['editor']['model']['document']['getRootNames']())_0xd3e40f['detachRoot'](_0x4ff95d);for(const _0x2b5e0f of Object['keys'](_0x62b414['model'])){const _0xc4a5c0=_0xd3e40f['addRoot'](_0x2b5e0f);for(const _0x390560 of Object['keys'](_0x62b414['attributes'][_0x2b5e0f]))_0xd3e40f['setAttribute'](_0x390560,_0x62b414['attributes'][_0x2b5e0f][_0x390560],_0xc4a5c0);_0xd3e40f['insert'](_0x62b414['model'][_0x2b5e0f],_0xc4a5c0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x62b414['changes'])),this['isReady']=!0x0;})['catch'](_0x5d4548=>{console['error'](_0x5d4548),this['_cleanUp'](),_0x2ef5dc&&(this['diff']=_0x2ef5dc),this['isReady']=!0x0;});}['addRevisionData'](_0x5d5a85,_0x3c07b1){const _0x37d580=this['repository']['createRevision'](_0x5d5a85);return _0x37d580['on']('_update',(_0x28b9fc,_0x4855f6,_0x111836)=>_0x3c07b1(_0x4855f6,_0x111836,_0x37d580)),this['repository']['addRevision'](_0x37d580),_0x37d580;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x52c422=>{for(const _0x4b278b of this['editor']['model']['document']['getRootNames']())_0x52c422['detachRoot'](_0x4b278b);});}['_sortAndFilterDiffChanges'](_0x58cbd4){const _0xdc4945=[],_0x5bfdf2=new Map();for(const _0x2f119f of this['editor']['model']['document']['getRootNames']()){const _0x4b5a07=this['editor']['editing']['view']['getDomRoot'](_0x2f119f);if(!_0x4b5a07)continue;const _0x2ddb6d=_0x4b5a07['getClientRects']()['item'](0x0);_0x2ddb6d&&(_0xdc4945['push'](_0x2f119f),_0x5bfdf2['set'](_0x2f119f,_0x2ddb6d));}return _0xdc4945['sort']((_0x90238a,_0x1b5ee4)=>{const _0x1677bf=_0x5bfdf2['get'](_0x90238a),_0xf7f47a=_0x5bfdf2['get'](_0x1b5ee4);return _0x1677bf['y']-_0xf7f47a['y']||_0x1677bf['x']-_0xf7f47a['x'];}),(_0x58cbd4=_0x58cbd4['filter'](_0x42e53d=>_0xdc4945['includes'](_0x42e53d['rootName'])))['sort']((_0x63024d,_0x157b9b)=>_0xdc4945['indexOf'](_0x63024d['rootName'])-_0xdc4945['indexOf'](_0x157b9b['rootName'])),_0x58cbd4;}['_makeTape'](_0x240b75){const _0xa22d05=Array['from'](_0x240b75['markers'])['filter'](([_0xafe20a,_0x1817ff])=>_0xafe20a['startsWith']('revision:')&&!_0x1817ff['isCollapsed']),_0x51ddbe=Array['from'](this['editor']['model']['createRangeIn'](_0x240b75)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xa22d05['length'])for(const _0x438124 of _0x51ddbe){const [_0x5ae4e5,_0x3b6bf5]=_0xa22d05[0x0],[,_0x527f37,_0x22e761]=_0x5ae4e5['split'](':');if(_0x3b6bf5['end']['isEqual'](_0x438124['nextPosition'])&&_0xa22d05['shift'](),(_0x438124['previousPosition']['isEqual'](_0x3b6bf5['start'])||_0x438124['previousPosition']['isAfter'](_0x3b6bf5['start']))&&('insertion'==_0x527f37?_0x438124['isAdded']={'userId':_0x22e761}:'deletion'==_0x527f37&&(_0x438124['isRemoved']={'userId':_0x22e761})),0x0==_0xa22d05['length'])break;}return _0x51ddbe;}['_refreshStartEndIndex'](_0x47bcf4){const _0xac2651=new Map();for(let _0x540eb3=0x0;_0x540eb3<_0x47bcf4['length'];_0x540eb3++)'text'===_0x47bcf4[_0x540eb3]['type']?(_0x47bcf4[_0x540eb3]['item']['startIndex']=_0x540eb3,_0x47bcf4[_0x540eb3]['item']['endIndex']=_0x540eb3):('elementStart'===_0x47bcf4[_0x540eb3]['type']?_0x47bcf4[_0x540eb3]['item']['startIndex']=_0x540eb3:'elementEnd'===_0x47bcf4[_0x540eb3]['type']&&(_0x47bcf4[_0x540eb3]['item']['endIndex']=_0x540eb3),_0xac2651['set'](_0x47bcf4[_0x540eb3]['id'],_0x540eb3));for(const _0x3806c6 of _0xac2651['values']())'elementStart'===_0x47bcf4[_0x3806c6]['type']?_0x47bcf4[_0x3806c6]['item']['endIndex']=_0xac2651['get'](_0x47bcf4[_0x3806c6]['pairId']):'elementEnd'===_0x47bcf4[_0x3806c6]['type']&&(_0x47bcf4[_0x3806c6]['item']['startIndex']=_0xac2651['get'](_0x47bcf4[_0x3806c6]['pairId']));}['_processTape'](_0xdf5cc8){for(let _0x2edcd9=0x0;_0x2edcd9<_0xdf5cc8['length'];_0x2edcd9++){if('elementStart'===_0xdf5cc8[_0x2edcd9]['type'])_0xdf5cc8[_0x2edcd9]['item']['startIndex']=_0x2edcd9;else{if('elementEnd'===_0xdf5cc8[_0x2edcd9]['type']){_0xdf5cc8[_0x2edcd9]['item']['endIndex']=_0x2edcd9;const _0x522f69=_0xdf5cc8[_0x2edcd9]['item']['startIndex'];_0xdf5cc8[_0x522f69]['pairId']=_0xdf5cc8[_0x2edcd9]['id'],_0xdf5cc8[_0x2edcd9]['pairId']=_0xdf5cc8[_0x522f69]['id'];}else _0xdf5cc8[_0x2edcd9]['item']['startIndex']=_0x2edcd9,_0xdf5cc8[_0x2edcd9]['item']['endIndex']=_0x2edcd9,_0xdf5cc8[_0x2edcd9]['pairId']=null;}_0xdf5cc8[_0x2edcd9]['markersStart']||(_0xdf5cc8[_0x2edcd9]['markersStart']=[],_0xdf5cc8[_0x2edcd9]['markersEnd']=[]);}}['_markInsertions'](_0x3c4da8,_0x31b4f7){const _0x1ab813=_0x3c4da8['filter'](_0x26aebb=>!_0x26aebb['isAdded']);for(let _0x273e73=0x0;_0x273e73<_0x31b4f7['length'];_0x273e73++)_0x31b4f7[_0x273e73]['isAdded']&&(_0x1ab813[_0x273e73]['isAdded']=_0x31b4f7[_0x273e73]['isAdded']);}['_getDiff'](_0x203e3a,_0x2af07e=null){const _0x4f03c1=this['repository']['getRevision'](_0x203e3a),_0x5625c0=_0x2af07e?this['repository']['getRevision'](_0x2af07e):null,_0x5611ba=this['_getRevisionsRange'](_0x4f03c1,_0x5625c0),_0x7dfb78=_0x5611ba[_0x5611ba['length']-0x1],_0x2077e3=new Map(),_0x4fe90b={'model':{},'attributes':{},'changes':[]},_0x1fbd95=new Set(),_0x1b9318=new Map();for(let _0x4e2d9b=_0x5611ba['length']-0x1;_0x4e2d9b>=0x0;_0x4e2d9b--){const _0x316a41=_0x5611ba[_0x4e2d9b];for(const _0xe8e1db of Object['keys'](_0x316a41['diffData']))if(_0x316a41['diffData'][_0xe8e1db]['attachChange']){const _0x35c56b=_0x316a41['diffData'][_0xe8e1db]['attachChange'];_0x35c56b['isAttached']?(_0x1fbd95['add'](_0xe8e1db),_0x1b9318['has'](_0xe8e1db)&&_0x1b9318['get'](_0xe8e1db)['userId']==_0x35c56b['userId']?_0x1b9318['delete'](_0xe8e1db):_0x1b9318['set'](_0xe8e1db,_0x35c56b)):_0x1b9318['has'](_0xe8e1db)?(_0x1fbd95['delete'](_0xe8e1db),_0x1b9318['delete'](_0xe8e1db)):(_0x1fbd95['add'](_0xe8e1db),_0x1b9318['set'](_0xe8e1db,_0x35c56b));}else _0x1fbd95['add'](_0xe8e1db);}for(const _0x2e3825 of _0x1fbd95){const _0x2980ec=_0x1b9318['has'](_0x2e3825)&&!_0x1b9318['get'](_0x2e3825)['isAttached'];let _0x378841=_0x2980ec?_0x5611ba['length']-0x1:0x0;const _0x3583c9=_0x2980ec?-0x1:0x1;for(;_0x5611ba[_0x378841];){const _0x4774b8=_0x5611ba[_0x378841];if(_0x4774b8['diffData'][_0x2e3825]){const _0x13ee11=_0x2980ec?_0x4774b8['diffData'][_0x2e3825]['attributesBefore']:_0x4774b8['diffData'][_0x2e3825]['attributesAfter'];_0x4fe90b['attributes'][_0x2e3825]=_0x13ee11?_0x4729a1(_0x13ee11):{};break;}_0x378841+=_0x3583c9;}}for(const _0x5e0a40 of _0x5611ba){_0x5e0a40['model']={};for(const _0x3f5547 of _0x5e0a40['authors'])_0x2077e3['set'](_0x3f5547['id'],_0x3f5547);for(const _0x502f02 of _0x1fbd95){const _0x155feb=_0x5e0a40['diffData'][_0x502f02]?_0x5e0a40['diffData'][_0x502f02]['insertions']:'[]',_0xac1909=_0x5e0a40['diffData'][_0x502f02]?_0x5e0a40['diffData'][_0x502f02]['deletions']:'[]';_0x5e0a40['model'][_0x502f02]={'insertions':this['_utils']['_makeModelFromViewString'](_0x155feb),'deletions':this['_utils']['_makeModelFromViewString'](_0xac1909)};}}for(const _0x2effc8 of _0x1fbd95){let _0x50d936=null,_0x57cfc3=0x0;const _0x1de218=new Map(Array['from'](_0x4f03c1['model'][_0x2effc8]['insertions']['markers'])['filter'](([_0x1bde04])=>!_0x1bde04['startsWith']('revision:')));let _0x4476a1=0x0;for(const _0x164075 of _0x5611ba){const _0x498554=this['_makeTape'](_0x164075['model'][_0x2effc8]['insertions']);_0x164075==_0x4f03c1?(_0x50d936=_0x498554,_0x57cfc3=_0x50d936['length'],_0x50d936['forEach'](_0xd07b35=>{_0xd07b35['id']=_0x4476a1++;}),this['_processTape'](_0x50d936)):this['_markInsertions'](_0x50d936,_0x498554);const _0x509781=_0x50d936['filter'](_0x2d83df=>!_0x2d83df['isAdded'])['map'](_0x3b2884=>_0x3b2884['id']);let _0x5de9ea=0x0;const _0x37c836=this['_makeTape'](_0x164075['model'][_0x2effc8]['deletions']);_0x37c836['forEach'](_0x102014=>{_0x102014['isRemoved']?_0x102014['id']=_0x57cfc3++:_0x102014['id']=_0x509781[_0x5de9ea++];}),this['_processTape'](_0x37c836),this['_setDistance'](_0x50d936,'isAdded'),this['_setDistance'](_0x37c836,'isRemoved'),_0x164075==_0x4f03c1&&this['_markMarkers'](_0x50d936,_0x1de218),_0x50d936=this['_joinTapes'](_0x50d936,_0x37c836),this['_refreshStartEndIndex'](_0x50d936),this['_setDistance'](_0x50d936,'isRemoved');}_0x50d936=_0x50d936['filter'](_0x11ceb5=>!(_0x11ceb5['isAdded']&&_0x11ceb5['isRemoved']));const _0x5e2446=new Map(_0x7dfb78['model'][_0x2effc8]['deletions']['markers']),_0xac7126=new Set(_0x1de218['keys']());for(const _0x30d118 of _0x5e2446['keys']())_0xac7126['delete'](_0x30d118);this['_markSuggestions'](_0x50d936,_0xac7126),this['_fixObsoleteTags'](_0x50d936),_0x50d936=this['_removeMissingPairs'](_0x50d936),_0x50d936=this['_markMismatchedRemovedTags'](_0x50d936),_0x50d936=this['_removeUnsupportedChanges'](_0x50d936);const {root:_0x2d8ded,changes:_0x3c75a9}=this['_makeModelFromTape'](_0x50d936,_0x2077e3,_0x2effc8);_0x4fe90b['model'][_0x2effc8]=_0x2d8ded;const _0x3cf076=_0x1b9318['get'](_0x2effc8);if(_0x3cf076){const _0x4dfcb6=_0x2077e3['get'](_0x3cf076['userId']),_0x16349e=new r({'author':_0x4dfcb6,'type':_0x3cf076['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2effc8});_0x3c75a9['unshift'](_0x16349e),_0x4fe90b['attributes'][_0x2effc8]['revisionHistoryAttachChange']=_0x16349e['id'];}_0x4fe90b['changes']=_0x4fe90b['changes']['concat'](_0x3c75a9);}return _0x4fe90b;}['_markMarkers'](_0x53d0b3,_0x5b0e30){for(let _0x519b4a=0x0;_0x519b4a<_0x53d0b3['length'];_0x519b4a++)for(const [_0x1817ad,_0x35b22f]of _0x5b0e30)!_0x35b22f['isCollapsed']&&_0x35b22f['start']['isEqual'](_0x53d0b3[_0x519b4a]['previousPosition'])&&_0x53d0b3[_0x519b4a]['markersStart']['push'](_0x1817ad),_0x35b22f['end']['isEqual'](_0x53d0b3[_0x519b4a]['nextPosition'])&&_0x53d0b3[_0x519b4a]['markersEnd']['push'](_0x1817ad);}['_joinTapes'](_0x209186,_0x220743){let _0x3bb0cf=[],_0x1412d2=0x0,_0x50b57a=0x0;for(;_0x1412d2<_0x209186['length']||_0x50b57a<_0x220743['length'];){const _0xcc1abb=_0x209186[_0x1412d2]||{},_0x110be5=_0x220743[_0x50b57a]||{};if(_0xcc1abb['id']==_0x110be5['id'])_0x1412d2++,_0x50b57a++,_0x3bb0cf['push'](_0xcc1abb);else{if(_0x110be5['isRemoved']&&_0xcc1abb['isAdded']){const {commonTape:_0x5030f3,iEnd:_0x184eaf,jEnd:_0x58dbed}=this['_threeWayMerge'](_0x209186,_0x1412d2,_0x220743,_0x50b57a);_0x3bb0cf=_0x3bb0cf['concat'](_0x5030f3),_0x1412d2=_0x184eaf,_0x50b57a=_0x58dbed;}else _0x110be5['isRemoved']?(_0x50b57a++,_0x3bb0cf['push'](_0x110be5)):(_0x1412d2++,_0x3bb0cf['push'](_0xcc1abb));}}return _0x3bb0cf;}['_markSuggestions'](_0x28277e,_0x33c81d){const _0x5c6627=[];for(let _0x5336f3=0x0;_0x5336f3<_0x28277e['length'];_0x5336f3++){for(let _0x5af4ba=0x0;_0x5af4ba<_0x28277e[_0x5336f3]['markersStart']['length'];_0x5af4ba++){const _0x39d0d4=_0x28277e[_0x5336f3]['markersStart'][_0x5af4ba];if(!_0x33c81d['has'](_0x39d0d4))continue;const {group:_0xd79871,type:_0x71c770,authorId:_0x48a258}=_0x2e2a2e(_0x39d0d4);'revision-suggestion'!=_0xd79871||'insertion'!=_0x71c770&&'deletion'!=_0x71c770||(_0x5c6627['unshift']({'type':_0x71c770,'name':_0x39d0d4,'userId':_0x48a258}),_0x28277e[_0x5336f3]['markersStart']['splice'](_0x5af4ba,0x1),_0x5af4ba--);}_0x235065(_0x28277e[_0x5336f3]);for(let _0x2f4c70=0x0;_0x2f4c70<_0x28277e[_0x5336f3]['markersEnd']['length'];_0x2f4c70++){const _0x152d30=_0x28277e[_0x5336f3]['markersEnd'][_0x2f4c70];if(!_0x33c81d['has'](_0x152d30))continue;const {group:_0x400132,type:_0x570bca}=_0x2e2a2e(_0x152d30);if('revision-suggestion'!=_0x400132||'insertion'!=_0x570bca&&'deletion'!=_0x570bca)continue;_0x28277e[_0x5336f3]['markersEnd']['splice'](_0x2f4c70,0x1),_0x2f4c70--;const _0x6857d5=_0x5c6627['findIndex'](_0x555be6=>_0x555be6['name']==_0x152d30);_0x6857d5>-0x1&&_0x5c6627['splice'](_0x6857d5,0x1);}}function _0x2e2a2e(_0x279780){const _0x3a572d=_0x279780['split'](':');return{'group':_0x3a572d[0x0],'type':_0x3a572d[0x1],'subType':_0x3a572d['length']>=0x5?_0x3a572d[0x2]:null,'id':_0x3a572d['length']<0x5?_0x3a572d[0x2]:_0x3a572d[0x3],'authorId':_0x3a572d['length']<0x5?_0x3a572d[0x3]:_0x3a572d[0x4],'markerCount':0x6==_0x3a572d['length']?_0x3a572d[0x5]:null};}function _0x235065(_0x379a3c){for(let _0x112d76=0x0;_0x112d76<_0x5c6627['length'];_0x112d76++){if(_0x379a3c['isAdded']&&'insertion'==_0x5c6627[_0x112d76]['type'])return _0x379a3c['isAddSuggestion']=_0x5c6627[_0x112d76],void delete _0x379a3c['isAdded'];if(!_0x379a3c['isAdded']&&!_0x379a3c['isRemoved']&&'deletion'==_0x5c6627[_0x112d76]['type'])return void(_0x379a3c['isRemoveSuggestion']=_0x5c6627[_0x112d76]);}}}['_setDistance'](_0x557c88,_0x51bc61){let _0x38ab89=0x0,_0x1898ab=!0x1;const _0x19bfe4=new Map();for(const _0x3ad546 of _0x557c88)_0x3ad546[_0x51bc61]?_0x1898ab&&(_0x38ab89++,_0x1898ab=!0x1):(_0x38ab89++,_0x1898ab=!0x0),_0x19bfe4['set'](_0x3ad546['id'],_0x38ab89);for(let _0x506685=0x0;_0x506685<_0x557c88['length'];_0x506685++){if('isRemoved'==_0x51bc61&&_0x557c88[_0x506685]['isAdded']||'isAdded'==_0x51bc61&&_0x557c88[_0x506685]['isRemoved'])continue;if('text'==_0x557c88[_0x506685]['type']){_0x557c88[_0x506685]['distance']=0x0;continue;}const _0x5094cc=_0x19bfe4['get'](_0x557c88[_0x506685]['pairId']),_0x51e8b5=_0x19bfe4['get'](_0x557c88[_0x506685]['id']);_0x557c88[_0x506685]['distance']=_0x5094cc-_0x51e8b5;}}['_getRevisionsRange'](_0x53ac53,_0x549dde,_0x52e938=!0x1){const _0x59632d=[];let _0x582571=this['repository']['getIndex'](_0x53ac53),_0x138d2c=this['repository']['getIndex'](_0x549dde);for(-0x1==_0x138d2c&&(_0x138d2c=this['repository']['_revisions']['length'],_0x52e938=!0x1);_0x582571<_0x138d2c;)_0x59632d['push'](this['repository']['getRevision'](_0x582571)),_0x582571++;return _0x52e938&&_0x59632d['push'](this['repository']['getRevision'](_0x582571)),_0x59632d;}['_threeWayMerge'](_0x215c8f,_0x2d4409,_0x5cb9ff,_0x5e9cd3){const _0x5bd2bc=this['editor']['model']['schema'];let _0x46f535=_0x2d4409;for(;_0x215c8f[_0x46f535]&&_0x215c8f[_0x46f535]['isAdded'];)_0x46f535++;let _0x387598=_0x5e9cd3;for(;_0x5cb9ff[_0x387598]&&_0x5cb9ff[_0x387598]['isRemoved'];)_0x387598++;_0x3fbf35(_0x215c8f,_0x2d4409,_0x46f535),_0x3fbf35(_0x5cb9ff,_0x5e9cd3,_0x387598);const _0x1b8e89=_0x5cb9ff['slice'](_0x5e9cd3,_0x387598)['concat'](_0x215c8f['slice'](_0x2d4409,_0x46f535));return _0x1b8e89['sort']((_0x15c70d,_0x21166b)=>_0x15c70d['side']!=_0x21166b['side']?_0x15c70d['side']-_0x21166b['side']:_0x15c70d['level']!=_0x21166b['level']?_0x15c70d['level']-_0x21166b['level']:_0x15c70d['distance']!=_0x21166b['distance']?_0x21166b['distance']-_0x15c70d['distance']:!!_0x15c70d['isAdded']!=!!_0x21166b['isAdded']?-0x1==_0x15c70d['side']||0x0==_0x15c70d['side']?_0x15c70d['isAdded']?-0x1:0x1:_0x15c70d['isAdded']?0x1:-0x1:_0x15c70d['index']-_0x21166b['index']),{'commonTape':_0x1b8e89,'iEnd':_0x46f535,'jEnd':_0x387598};function _0x3fbf35(_0x270618,_0x1c21df,_0x2e3213){let _0x2f9310=-0x1,_0x3a8ee4=Number['POSITIVE_INFINITY'],_0x3e7771=!0x0;for(let _0x25d2f0=_0x1c21df;_0x25d2f0<_0x2e3213;_0x25d2f0++)if(_0x5bd2bc['isInline'](_0x270618[_0x25d2f0]['item'])||(_0x3e7771=!0x1),_0x270618[_0x25d2f0]['item']['startIndex']<_0x1c21df&&(_0x2f9310=_0x25d2f0),_0x270618[_0x25d2f0]['item']['endIndex']>=_0x2e3213){_0x3a8ee4=_0x25d2f0;break;}_0x3e7771&&(_0x2f9310=_0x2e3213-0x1);for(let _0x615b73=_0x1c21df;_0x615b73<_0x2e3213;_0x615b73++)_0x270618[_0x615b73]['side']=_0x615b73<=_0x2f9310?-0x1:_0x615b73<_0x3a8ee4?0x0:0x1,_0x270618[_0x615b73]['index']=_0x615b73;let _0x5d9119=0x0;for(let _0x48a09b=_0x1c21df;_0x48a09b<=_0x2f9310;_0x48a09b++)0x0==_0x270618[_0x48a09b]['distance']?_0x270618[_0x48a09b]['level']=_0x5d9119:(_0x5d9119++,_0x270618[_0x48a09b]['level']=_0x5d9119,_0x5d9119++);for(let _0x45f81c=_0x1c21df;_0x45f81c<_0x2e3213;_0x45f81c++)0x0==_0x270618[_0x45f81c]['side']&&(_0x270618[_0x45f81c]['level']=_0x5d9119);_0x5d9119=0x0;for(let _0x13d2b3=_0x2e3213-0x1;_0x13d2b3>=_0x3a8ee4;_0x13d2b3--)0x0==_0x270618[_0x13d2b3]['distance']?_0x270618[_0x13d2b3]['level']=_0x5d9119:(_0x5d9119--,_0x270618[_0x13d2b3]['level']=_0x5d9119,_0x5d9119--);}}['_fixObsoleteTags'](_0x21768f){const _0x18e1d0=new Map(),_0x48b361=this['editor']['model']['schema'];for(let _0x3e581b=0x1;_0x3e581b<_0x21768f['length'];_0x3e581b++){let _0x28bf88,_0x1a8abe,_0x157913;const _0x3643c3=_0x21768f[_0x3e581b],_0x2425cb=_0x21768f[_0x3e581b-0x1];if('text'==_0x3643c3['type'])continue;if(_0x3643c3['type']!=_0x2425cb['type'])continue;if(!_0x48b361['isBlock'](_0x2425cb['item'])||_0x48b361['isLimit'](_0x2425cb['item']))continue;if(!_0x48b361['isBlock'](_0x3643c3['item'])||_0x48b361['isLimit'](_0x3643c3['item']))continue;if((_0x21768f[_0x3e581b]['isAdded']||_0x21768f[_0x3e581b]['isAddSuggestion'])&&_0x21768f[_0x3e581b-0x1]['isRemoved'])_0x28bf88=_0x21768f[_0x3e581b],_0x1a8abe=_0x21768f[_0x3e581b-0x1],_0x157913=_0x3e581b-0x1;else{if(!_0x21768f[_0x3e581b]['isRemoved']||!_0x21768f[_0x3e581b-0x1]['isAdded']&&!_0x21768f[_0x3e581b-0x1]['isAddSuggestion'])continue;_0x28bf88=_0x21768f[_0x3e581b-0x1],_0x1a8abe=_0x21768f[_0x3e581b],_0x157913=_0x3e581b;}const _0x1ee477=_0x28bf88['level']==_0x1a8abe['level'],_0x389bbc=Math['abs'](_0x28bf88['level'])<Math['abs'](_0x1a8abe['level'])&&0x0==_0x1a8abe['distance'];(_0x1ee477||_0x389bbc)&&(_0x18e1d0['set'](_0x1a8abe['id'],_0x28bf88['id']),_0x21768f['splice'](_0x157913,0x1),_0x3e581b--,_0x28bf88['isAdded']=!0x1);}for(let _0x89bf9a=0x0;_0x89bf9a<_0x21768f['length'];_0x89bf9a++)_0x18e1d0['has'](_0x21768f[_0x89bf9a]['pairId'])&&(_0x21768f[_0x89bf9a]['pairId']=_0x18e1d0['get'](_0x21768f[_0x89bf9a]['pairId']));}['_removeMissingPairs'](_0x2f737a){const _0x570e62=new Set(_0x2f737a['map'](_0xb1008c=>_0xb1008c['id']));for(let _0x4ece1f=0x0;_0x4ece1f<_0x2f737a['length'];_0x4ece1f++)_0x570e62['has'](_0x2f737a[_0x4ece1f]['pairId'])||0x0==_0x2f737a[_0x4ece1f]['distance']||(_0x2f737a[_0x4ece1f]['isIncorrect']=!0x0);return _0x2f737a['filter'](_0x2bb9d1=>!_0x2bb9d1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x40437f){const _0x1e8962=new Set();for(let _0xfd02bf=0x0;_0xfd02bf<_0x40437f['length'];_0xfd02bf++){if(_0x1e8962['has'](_0x40437f[_0xfd02bf]['id'])&&_0x40437f[_0xfd02bf]['isRemoved']&&(_0x40437f[_0xfd02bf]['isIncorrect']=!0x0),_0x40437f[_0xfd02bf]['isIncorrect'])continue;if(0x0==_0x40437f[_0xfd02bf]['distance'])continue;if('elementStart'!=_0x40437f[_0xfd02bf]['type'])continue;if(null==_0x40437f[_0xfd02bf]['pairId'])continue;let _0x3b7714=_0xfd02bf+0x1,_0xd27fe4=0x0;for(;_0x40437f[_0x3b7714]['id']!=_0x40437f[_0xfd02bf]['pairId'];)'elementStart'==_0x40437f[_0x3b7714]['type']?_0xd27fe4++:'elementEnd'==_0x40437f[_0x3b7714]['type']&&_0xd27fe4--,_0x3b7714++;if(0x0!=_0xd27fe4){if(_0x40437f[_0xfd02bf]['isRemoved'])_0x40437f[_0xfd02bf]['isIncorrect']=!0x0;else{for(;_0x3b7714!=_0xfd02bf;)_0x40437f[_0x3b7714]['isRemoved']&&0x0!=_0x40437f[_0x3b7714]['distance']&&(_0x40437f[_0x3b7714]['isIncorrect']=!0x0,_0x1e8962['add'](_0x40437f[_0x3b7714]['pairId'])),_0x3b7714--;}}}return _0x40437f['filter'](_0x5a4bb5=>!_0x5a4bb5['isIncorrect']);}['_removeUnsupportedChanges'](_0x368f15){const _0x5184a3=this['editor']['model']['schema'];for(let _0xe6d102=0x0;_0xe6d102<_0x368f15['length'];_0xe6d102++){if(!(_0x368f15[_0xe6d102]['isAdded']||_0x368f15[_0xe6d102]['isAddSuggestion']||_0x368f15[_0xe6d102]['isRemoved']||_0x368f15[_0xe6d102]['isRemoveSuggestion']))continue;if(0x0==_0x368f15[_0xe6d102]['distance'])continue;const _0x2a0c0b=_0x368f15[_0xe6d102]['item'];_0x5184a3['isBlock'](_0x2a0c0b)||_0x5184a3['isLimit'](_0x2a0c0b)||(_0x368f15[_0xe6d102]['isAdded']&&delete _0x368f15[_0xe6d102]['isAdded'],_0x368f15[_0xe6d102]['isAddSuggestion']&&delete _0x368f15[_0xe6d102]['isAddSuggestion'],_0x368f15[_0xe6d102]['isRemoveSuggestion']&&delete _0x368f15[_0xe6d102]['isRemoveSuggestion'],_0x368f15[_0xe6d102]['isRemoved']&&(_0x368f15[_0xe6d102]['isIncorrect']=!0x0));}return _0x368f15['filter'](_0x1562c5=>!_0x1562c5['isIncorrect']);}['_makeModelFromTape'](_0x1c7212,_0x11d7be,_0x2519e5){const _0x4e6f49=new gt(),_0x17605d=[],_0x57a497=new Map(),_0x3bff3f=this['editor']['model'],_0x4a29de=_0x3bff3f['schema'],_0x2fc314=[_0x4e6f49],_0xa1972c={},_0x3b2ac4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3b4cec=null;const _0x5ab419=[0x0];for(let _0x49090c=0x0;_0x49090c<_0x1c7212['length'];_0x49090c++)if('elementStart'===_0x1c7212[_0x49090c]['type']){_0x1c7212[_0x49090c]['previousPosition']=_0x3bff3f['createPositionFromPath'](_0x4e6f49,_0x5ab419);const _0x2eba10=new ut(_0x1c7212[_0x49090c]['item']['name'],_0x1c7212[_0x49090c]['item']['getAttributes']());_0x2fc314[0x0]['_appendChild'](_0x2eba10),_0x5ab419['push'](0x0),_0x2fc314['unshift'](_0x2eba10),_0x1c7212[_0x49090c]['nextPosition']=_0x3bff3f['createPositionFromPath'](_0x4e6f49,_0x5ab419);}else'elementEnd'===_0x1c7212[_0x49090c]['type']?(_0x2fc314['shift'](),_0x1c7212[_0x49090c]['previousPosition']=_0x3bff3f['createPositionFromPath'](_0x4e6f49,_0x5ab419),_0x5ab419['pop'](),_0x5ab419[_0x5ab419['length']-0x1]++,_0x1c7212[_0x49090c]['nextPosition']=_0x3bff3f['createPositionFromPath'](_0x4e6f49,_0x5ab419)):(_0x1c7212[_0x49090c]['previousPosition']=_0x3bff3f['createPositionFromPath'](_0x4e6f49,_0x5ab419),_0x3b4cec?_0x3b4cec['_data']+=_0x1c7212[_0x49090c]['item']['data']:_0x3b4cec=new mt(_0x1c7212[_0x49090c]['item']['data'],_0x1c7212[_0x49090c]['item']['getAttributes']()),_0x1c7212[_0x49090c+0x1]&&'text'===_0x1c7212[_0x49090c+0x1]['type']&&_0xcf732(_0x3b4cec,_0x1c7212[_0x49090c+0x1]['item'])||(_0x2fc314[0x0]['_appendChild'](_0x3b4cec),_0x3b4cec=null),_0x5ab419[_0x5ab419['length']-0x1]+=_0x1c7212[_0x49090c]['item']['offsetSize'],_0x1c7212[_0x49090c]['nextPosition']=_0x3bff3f['createPositionFromPath'](_0x4e6f49,_0x5ab419));for(let _0x12467c=0x0;_0x12467c<_0x1c7212['length'];_0x12467c++){const _0x5b406c=_0x1c7212[_0x12467c]['previousPosition'],_0x458794=_0x1c7212[_0x12467c]['nextPosition'];for(const _0x2c81e1 of _0x1c7212[_0x12467c]['markersStart'])_0x57a497['set'](_0x2c81e1,{'start':_0x5b406c,'end':null});_0x307527('isRemoveSuggestion',_0x12467c,_0x5b406c,_0x458794),_0x307527('isAddSuggestion',_0x12467c,_0x5b406c,_0x458794),_0x307527('isRemoved',_0x12467c,_0x5b406c,_0x458794),_0x307527('isAdded',_0x12467c,_0x5b406c,_0x458794);for(const _0x1bfe09 of _0x1c7212[_0x12467c]['markersEnd']){const _0x26c691=_0x57a497['get'](_0x1bfe09);_0x26c691?_0x26c691['end']=_0x458794:_0x57a497['set'](_0x1bfe09,{'start':_0x458794,'end':_0x458794});}}for(const [_0x3a49c7,_0x3a73b8]of _0x57a497){const _0x35fefa=this['editor']['model']['createRange'](_0x3a73b8['start'],_0x3a73b8['end']);_0x4e6f49['markers']['set'](_0x3a49c7,_0x35fefa);}return _0x17605d['sort']((_0x3006ac,_0x487700)=>{const _0xa6b062=_0x4e6f49['markers']['get']('revision:'+_0x3006ac['id']),_0x16f976=_0x4e6f49['markers']['get']('revision:'+_0x487700['id']);return _0xa6b062['start']['isBefore'](_0x16f976['start'])?-0x1:_0xa6b062['start']['isAfter'](_0x16f976['start'])?0x1:_0xa6b062['end']['isBefore'](_0x16f976['end'])?-0x1:_0xa6b062['end']['isAfter'](_0x16f976['end'])?0x1:'add'===_0x3006ac['type']?-0x1:0x1;}),{'root':_0x4e6f49,'changes':_0x17605d};function _0x307527(_0x1e8dfc,_0x57d16d,_0x591ba9,_0x512420){const _0x43ae2a=!!_0x1c7212[_0x57d16d][_0x1e8dfc],_0x1ff1a1=_0x43ae2a?_0x1c7212[_0x57d16d][_0x1e8dfc]['userId']:null,_0x309033=_0x57d16d===_0x1c7212['length']-0x1,_0x2142f8=_0x3b2ac4[_0x1e8dfc][0x0],_0x3e970f=_0x4a29de['isObject'](_0x1c7212[_0x57d16d]['item']);!_0xa1972c[_0x1e8dfc]&&_0x43ae2a?_0xa1972c[_0x1e8dfc]={'start':_0x591ba9,'tapeItem':_0x1c7212[_0x57d16d],'userId':_0x1ff1a1,'type':_0x1e8dfc}:_0xa1972c[_0x1e8dfc]&&!_0x43ae2a?(_0xa1972c[_0x1e8dfc]['end']=_0x591ba9,_0x4f903f(_0xa1972c[_0x1e8dfc]),_0xa1972c[_0x1e8dfc]=null):_0xa1972c[_0x1e8dfc]&&_0x43ae2a&&_0xa1972c[_0x1e8dfc]['userId']!==_0x1ff1a1&&(_0xa1972c[_0x1e8dfc]['end']=_0x591ba9,_0x2142f8&&_0x2142f8['userId']===_0xa1972c[_0x1e8dfc]['userId']||_0x4f903f(_0xa1972c[_0x1e8dfc]),_0xa1972c[_0x1e8dfc]={'start':_0x591ba9,'tapeItem':_0x1c7212[_0x57d16d],'userId':_0x1ff1a1,'type':_0x1e8dfc}),_0xa1972c[_0x1e8dfc]&&_0x3e970f&&('elementStart'!==_0x1c7212[_0x57d16d]['type']||_0x2142f8&&_0x2142f8['userId']===_0x1ff1a1||_0x3b2ac4[_0x1e8dfc]['unshift']({'userId':_0x1ff1a1,'object':_0x1c7212[_0x57d16d]['item'],'change':_0xa1972c[_0x1e8dfc]}),'elementEnd'===_0x1c7212[_0x57d16d]['type']&&_0x2142f8&&_0x2142f8['object']===_0x1c7212[_0x57d16d]['item']&&(_0x3b2ac4[_0x1e8dfc]['shift'](),_0xa1972c[_0x1e8dfc]=_0x2142f8['change'])),_0xa1972c[_0x1e8dfc]&&_0x309033&&(_0xa1972c[_0x1e8dfc]['end']=_0x512420,_0x4f903f(_0xa1972c[_0x1e8dfc]),_0xa1972c[_0x1e8dfc]=null);}function _0x4f903f({start:_0x43be25,end:_0x251dbf,tapeItem:_0x307c09,userId:_0x109cfb,type:_0x3c53c5}){const _0x389e15=_0x307c09['item'],_0x51c44a=_0x3bff3f['schema']['isBlock'](_0x389e15)&&!_0x3bff3f['schema']['isLimit'](_0x389e15),_0x3ce049=_0x43be25['nodeAfter']==_0x251dbf['parent']&&_0x251dbf['isAtStart'];if(_0x51c44a&&_0x3ce049)return;const _0x35eb99=_0x3bff3f['createRange'](_0x43be25,_0x251dbf),_0xfab533=_0x11d7be['get'](_0x109cfb),_0x4caf0a=new r({'author':_0xfab533,'type':'isAdded'==_0x3c53c5||'isAddSuggestion'==_0x3c53c5?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3c53c5||'isRemoveSuggestion'==_0x3c53c5},'createdAt':new Date(),'rootName':_0x2519e5});_0x17605d['push'](_0x4caf0a),_0x4e6f49['markers']['set']('revision:'+_0x4caf0a['id'],_0x35eb99);}function _0xcf732(_0xe964ad,_0x425f80){const _0x15cb0d=_0xe964ad['getAttributes'](),_0x586ff6=_0x425f80['getAttributes']();for(const _0x5024ab of _0x15cb0d){if(_0x5024ab[0x1]!==_0x425f80['getAttribute'](_0x5024ab[0x0]))return!0x1;_0x586ff6['next']();}return _0x586ff6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x353232=>{const _0x2684a0=_0x353232['markerName']['split'](':')[0x1],_0xa0a043=this['_getChangeFromId'](_0x2684a0);if(!_0xa0a043)return null;const _0x4a46b5='add'==_0xa0a043['type']?'insertion':'deletion',_0x334524=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4a46b5];return _0xa0a043['data']['isSuggestion']&&_0x334524['push']('ck-suggestion-marker-'+_0x4a46b5+'-new'),this['activeChange']==_0xa0a043&&_0x334524['push']('ck-suggestion-marker--active'),{'classes':_0x334524,'attributes':{'data-change-id':_0x2684a0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4e4404=>{_0x4e4404['on']('element:pre',(_0x4571b2,_0x44e224,_0x2e7093)=>{const _0x3893c1=_0x44e224['viewItem']['getChild'](0x0);if(!_0x3893c1||!_0x3893c1['is']('element','code'))return;if(!_0x2e7093['consumable']['consume'](_0x3893c1,{'attributes':['vid_start','vid_end']}))return;const _0x159530=_0x44e224['modelRange']['start']['nodeAfter'];_0x2e7093['writer']['setAttribute']('vid_start',_0x3893c1['getAttribute']('vid_start'),_0x159530),_0x2e7093['writer']['setAttribute']('vid_end',_0x3893c1['getAttribute']('vid_end'),_0x159530);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x38be44=>{_0x38be44['on']('element',(_0x340593,_0x32d510,_0x407993)=>{if(!_0x407993['consumable']['consume'](_0x32d510['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x32d510['modelRange']['isCollapsed'])return;const _0x50050c=_0x32d510['modelRange']['start']['nodeAfter'];_0x50050c['hasAttribute']('vid_start')||_0x50050c['hasAttribute']('vid')||(_0x407993['writer']['setAttribute']('vid_start',_0x32d510['viewItem']['getAttribute']('vid_start'),_0x50050c),_0x407993['writer']['setAttribute']('vid_end',_0x32d510['viewItem']['getAttribute']('vid_end'),_0x50050c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x782c2=>_0x782c2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x45a929,[,_0x78d591])=>{['vid_start','vid_end','vid']['includes'](_0x78d591)&&(_0x45a929['return']=!0x0,_0x45a929['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x39c3af=>{_0x39c3af['on']('attribute:vid',(_0x12431a,_0x117ee9,_0x1c3ecc)=>{if('\x20'!=_0x117ee9['item']['data']||_0x117ee9['item']['parent']['maxOffset']>0x1)return;if(!_0x1c3ecc['consumable']['consume'](_0x117ee9['item'],_0x12431a['name']))return;const _0x4b28cb=_0x1c3ecc['writer'],_0x2ea28b=_0x1c3ecc['mapper']['toViewRange'](_0x117ee9['range']);_0x4b28cb['wrap'](_0x2ea28b,_0x4b28cb['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x227ade){const _0x1c0cbe=_0x227ade['plugins']['get']('RevisionViewer');return(_0x590366,_0x148265,_0x2eff75)=>{const _0x1bac2c=_0x148265['markerName']['split'](':')[0x1],_0x1c0f0b=_0x1c0cbe['_getChangeFromId'](_0x1bac2c);if(!_0x1c0f0b)return null;const _0x537edd='add'==_0x1c0f0b['type']?'split':'merge';if(!_0x2eff75['consumable']['test'](_0x148265['markerRange'],_0x590366['name']))return;const _0x543d2d=_0x148265['markerRange']['getWalker'](),_0x5bc7ad=_0x148265['markerRange']['start'],_0x2e4931=_0x227ade['model']['schema'];let _0x5619c3=null,_0x5c5e37=null,_0x109a06=!0x1,_0x32ae88=!0x1;for(const _0xf5c5d4 of _0x543d2d){const _0x3eb73a=_0xf5c5d4['item'];_0x109a06=_0x109a06||_0x2e4931['isContent'](_0x3eb73a);const _0xa6d682=_0x2eff75['mapper']['toViewElement'](_0x3eb73a);if(_0xa6d682&&_0xa6d682['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xf5c5d4['type']&&(_0x2e4931['isBlock'](_0x3eb73a)&&!_0x2e4931['isLimit'](_0x3eb73a)&&(_0x3eb73a['nextSibling']||_0x5bc7ad['isAtEnd']?_0x5619c3&&_0x5619c3['parent']==_0x3eb73a||(_0x5619c3=_0x3eb73a,_0x22480d(_0xf5c5d4['previousPosition']),_0x32ae88=!0x0):_0x5c5e37=_0x5c5e37||_0xf5c5d4['previousPosition']));}function _0x22480d(_0x5ab597){const _0x237818=_0x2eff75['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x537edd}),_0x1aa684=_0x2eff75['mapper']['toViewPosition'](_0x5ab597);_0x1c0f0b['data']['isSuggestion']&&_0x2eff75['writer']['addClass']('ck-suggestion-marker-'+_0x537edd+'-new',_0x237818),_0x1c0cbe['activeChange']==_0x1c0f0b&&_0x2eff75['writer']['addClass']('ck-suggestion-marker--active',_0x237818),_0x2eff75['writer']['insert'](_0x1aa684,_0x237818),_0x2eff75['mapper']['bindElementToMarker'](_0x237818,_0x148265['markerName']);}_0x109a06||_0x32ae88||!_0x5c5e37||_0x22480d(_0x5c5e37);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xdb0ee3,_0x1e6c07,_0x15957d)=>{const _0x4168c4=_0x15957d['mapper']['markerNameToElements'](_0x1e6c07['markerName']);if(_0x4168c4){for(const _0x3aa725 of _0x4168c4)(_0x3aa725['hasClass']('ck-suggestion-marker-split')||_0x3aa725['hasClass']('ck-suggestion-marker-merge'))&&(_0x15957d['mapper']['unbindElementFromMarkerName'](_0x3aa725,_0x1e6c07['markerName']),_0x15957d['writer']['remove'](_0x3aa725));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x9f1567,_0x4529e7,_0x4af227)=>{const _0x4c33e5=_0x4529e7['markerName']['split'](':')[0x1],_0x2892ca=this['_getChangeFromId'](_0x4c33e5);if(!_0x2892ca)return null;const _0xbf310e='add'==_0x2892ca['type']?'split':'merge';if(_0x4af227['consumable']['test'](_0x4529e7['markerRange'],_0x9f1567['name']))for(const _0xbdf8a9 of _0x4529e7['markerRange']['getItems']()){if(!_0xbdf8a9['is']('element','softBreak'))continue;const _0x3f5bbc=_0x4af227['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbf310e}),_0x5d5b75=_0x4af227['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xbdf8a9));_0x2892ca['data']['isSuggestion']&&_0x4af227['writer']['addClass']('ck-suggestion-marker-'+_0xbf310e+'-new',_0x3f5bbc),this['activeChange']==_0x2892ca&&_0x4af227['writer']['addClass']('ck-suggestion-marker--active',_0x3f5bbc),_0x4af227['writer']['insert'](_0x5d5b75,_0x3f5bbc),_0x4af227['mapper']['bindElementToMarker'](_0x3f5bbc,_0x4529e7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x10b1a2=>{for(const _0x77f736 of this['editor']['model']['document']['getRootNames']()){const _0x290999=this['editor']['model']['document']['getRoot'](_0x77f736),_0x3d505f=this['editor']['editing']['view']['document']['getRoot'](_0x77f736);if(_0x3d505f){const _0x1fe42f=_0x290999['getAttribute']('revisionHistoryAttachChange');if(_0x10b1a2['removeAttribute']('data-change-id',_0x3d505f),_0x10b1a2['removeClass']('ck-revision-history-root-add',_0x3d505f),_0x10b1a2['removeClass']('ck-revision-history-root-remove',_0x3d505f),_0x10b1a2['removeClass']('ck-revision-history-root--active',_0x3d505f),_0x1fe42f){const _0x37f058=this['_getChangeFromId'](_0x1fe42f);if(!_0x37f058)return null;_0x10b1a2['setAttribute']('data-change-id',_0x1fe42f,_0x3d505f),_0x10b1a2['addClass']('ck-revision-history-root-'+_0x37f058['type'],_0x3d505f),this['activeChange']==_0x37f058&&_0x10b1a2['addClass']('ck-revision-history-root--active',_0x3d505f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5a5ec0=>'revision-comment:'+_0x5a5ec0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4f7279=>'revision-suggestion:'+_0x4f7279,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5ccffc=>({'name':'suggestion:'+_0x5ccffc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2b3be0=>{const _0xfe6612=_0x2b3be0['markerName']['split'](':')[0x1];return'insertion'!=_0xfe6612&&'deletion'!=_0xfe6612?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xfe6612]};}}),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',(_0x4f529d,_0x1682a8,_0x3fcc8e)=>{const _0x356e44=_0x3fcc8e['mapper']['markerNameToElements'](_0x1682a8['markerName']);if(_0x356e44){for(const _0x1f4d7e of _0x356e44)_0x1f4d7e['is']('uiElement')&&(_0x3fcc8e['mapper']['unbindElementFromMarkerName'](_0x1f4d7e,_0x1682a8['markerName']),_0x3fcc8e['writer']['remove'](_0x1f4d7e));}},{'priority':'high'});}['_getChangeFromId'](_0xa4671a){return this['_changeIdToChange']['get'](_0xa4671a);}['_getViewForChange'](_0x50259f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x50259f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x26f305,_0x18a9b1,_0x15b4da,_0x28b413)=>{_0x28b413&&this['_balloon']['remove'](_0x28b413),_0x15b4da&&(this['_balloon']['add']({'view':_0x15b4da,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5ef94f=this['editor']['editing'],_0x482813=this['_getChangeFromId'](_0x15b4da['changeId']);let _0x3474f9;if(_0x482813['data']['isOnRoot']){const _0x29504e=_0x5ef94f['view']['getDomRoot'](_0x482813['rootName']);_0x3474f9=Array['from'](_0x29504e['getClientRects']());}else{const _0x1bd2f2=this['editor']['model']['markers']['get']('revision:'+_0x15b4da['changeId']);_0x3474f9=Array['from'](_0x5ef94f['mapper']['markerNameToElements'](_0x1bd2f2['name']))['map'](_0x529248=>_0x5ef94f['view']['domConverter']['mapViewToDom'](_0x529248))['map'](_0x24e79d=>Array['from'](_0x24e79d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3474f9[0x0];return _0x3474f9['find'](_0x4d832b=>_0x4d832b['top']-0x3<=this['_activeViewTarget']['y']&&_0x4d832b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4d832b['left']-0x3<=this['_activeViewTarget']['x']&&_0x4d832b['right']+0x3>=this['_activeViewTarget']['x'])||_0x3474f9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x245751,_0x3510f0,_0x245e01,_0x197a05)=>{this['activeView']=_0x245e01?this['_getViewForChange'](_0x245e01):null,this['editor']['model']['change'](()=>{const _0x4975ef=this['editor']['editing'];_0x197a05&&(_0x197a05['data']['isOnRoot']?_0x4975ef['view']['change'](_0x4a8f87=>{_0x4a8f87['removeClass']('ck-revision-history-root--active',_0x4975ef['view']['document']['getRoot'](_0x197a05['rootName']));}):_0x4975ef['reconvertMarker']('revision:'+_0x197a05['id'])),_0x245e01&&(_0x245e01['data']['isOnRoot']?_0x4975ef['view']['change'](_0x580da2=>{_0x580da2['addClass']('ck-revision-history-root--active',_0x4975ef['view']['document']['getRoot'](_0x245e01['rootName']));}):_0x4975ef['reconvertMarker']('revision:'+_0x245e01['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5733d1,_0x555e78)=>{if(this['activeChange'])return;const _0x17a32f=this['_findChangeIdFromDomTarget'](_0x555e78['target']),_0x3b4a03=this['_changeIdToChange']['get'](_0x17a32f);_0x3b4a03?(this['_activeViewTarget']={'x':_0x555e78['domEvent']['x'],'y':_0x555e78['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3b4a03)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5e2a2d,_0x937791)=>{const _0x5b17ef=this['_findChangeIdFromDomTarget'](_0x937791['target']),_0x13800e=this['_changeIdToChange']['get'](_0x5b17ef);_0x13800e?(this['_activeViewTarget']={'x':_0x937791['domEvent']['x'],'y':_0x937791['domEvent']['y']},_0x13800e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x13800e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xa1cb18){do{const _0x104e3c=_0xa1cb18['getAttribute']('data-change-id');if(_0x104e3c)return _0x104e3c;_0xa1cb18=_0xa1cb18['parent'];}while(_0xa1cb18);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x545354=>{for(const _0x4867d5 of this['editor']['model']['markers'])_0x545354['removeMarker'](_0x4867d5);});}}function X(_0x24d27b,_0x258588){return(_0x45e69b,_0x47599e,_0x55a4a4)=>{if(!_0x55a4a4['consumable']['test'](_0x47599e['markerRange'],_0x45e69b['name']))return;const _0x64bf18=_0x47599e['markerRange']['getWalker'](),_0xe4f933=_0x47599e['markerRange']['start'],_0x47a58f=_0x24d27b['model']['schema'];let _0x5ef7b5=null,_0x52cb8a=null,_0x254d8d=!0x1,_0x32f1ed=!0x1;for(const _0x2f7f22 of _0x64bf18){const _0x1dee03=_0x2f7f22['item'];_0x254d8d=_0x254d8d||_0x47a58f['isContent'](_0x1dee03);const _0x25fdd8=_0x55a4a4['mapper']['toViewElement'](_0x1dee03);if(_0x25fdd8&&_0x25fdd8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2f7f22['type']&&(_0x47a58f['isBlock'](_0x1dee03)&&!_0x47a58f['isLimit'](_0x1dee03)&&(_0x1dee03['nextSibling']||_0xe4f933['isAtEnd']?_0x5ef7b5&&_0x5ef7b5['parent']==_0x1dee03||(_0x5ef7b5=_0x1dee03,_0x4db01b(_0x2f7f22['previousPosition']),_0x32f1ed=!0x0):_0x52cb8a=_0x52cb8a||_0x2f7f22['previousPosition']));}function _0x4db01b(_0x384370){const _0x409a16=_0x55a4a4['mapper']['toViewPosition'](_0x384370),_0x3da06c=_0x55a4a4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x258588});_0x55a4a4['writer']['insert'](_0x409a16,_0x3da06c),_0x55a4a4['mapper']['bindElementToMarker'](_0x3da06c,_0x47599e['markerName']);}_0x254d8d||_0x32f1ed||!_0x52cb8a||_0x4db01b(_0x52cb8a);};}class wt extends _0x5a91aa{constructor(_0x447122){super(_0x447122);const _0x2bd303=_0x447122['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x2bd303,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2bd303,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5c7adb=this['editor'],_0x37ebdb=_0x5c7adb['plugins']['get'](m),_0x4168cc=_0x37ebdb['isReady']?_0x37ebdb['diff']['newRevisionId']:null;_0x5c7adb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4168cc);}['refresh'](){const {isReady:_0x3eae8e,isEnabled:_0x3b84f9,repository:_0x844cab,diff:_0x44fb50}=this['editor']['plugins']['get'](m),_0x2e550a=_0x44fb50&&_0x844cab['getLaterVisibleRevision'](_0x44fb50['newRevisionId']);this['isEnabled']=_0x3eae8e&&_0x3b84f9&&Boolean(_0x2e550a);}}class pt extends _0x5a91aa{['_step'];constructor(_0x22ec1a,{direction:_0x462882}){super(_0x22ec1a);const _0x14a192=_0x22ec1a['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x462882?0x1:-0x1,this['listenTo'](_0x14a192,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x14a192,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x14a192,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x435403=this['editor'],_0x433421=_0x435403['plugins']['get'](m),{isNavigationMode:_0x4e01c4,currentChangeNumber:_0x247087}=_0x433421;let _0xccb437;if(_0x433421['activeChange']=_0x4e01c4?_0x433421['diff']['changes']['get'](_0x247087+this['_step']):_0x433421['diff']['changes']['first'],_0x433421['activeChange']['data']['isOnRoot'])_0xccb437=_0x435403['editing']['view']['getDomRoot'](_0x433421['activeChange']['rootName']);else{const _0x15a85b=_0x435403['model']['markers']['get']('revision:'+_0x433421['activeChange']['id']);_0xccb437=_0x4cc7c1(_0x435403['editing'],_0x15a85b);}_0x5bc50c({'target':_0xccb437,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3b9246,currentChangeNumber:_0x50b6b0,numberOfChanges:_0x281409,isReady:_0x4bb6d4,isEnabled:_0x2efcaa}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2efcaa&&_0x4bb6d4&&_0x281409)&&(!_0x3b9246||(0x1===this['_step']?_0x50b6b0<_0x281409-0x1:_0x50b6b0>0x0));}}class li extends _0x1af282{constructor(_0x3ef353){super(_0x3ef353);const _0x44127e=this['bindTemplate'],_0x4cec68=new _0x3e8319(_0x3ef353),_0x476d2e=new _0x3e8319(_0x3ef353);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',(_0x2bf660,_0x4970a2)=>_0x2bf660&&_0x4970a2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x52a6b8,_0x53c833,_0xaea4ad,_0x1ff362)=>{if(!_0x52a6b8)return g(_0x3ef353,'Loading...');if(!_0xaea4ad)return g(_0x3ef353,'No\x20changes');const _0x139361=g(_0x3ef353,'NUMBER_OF_CHANGES',_0xaea4ad);return _0x1ff362?g(_0x3ef353,'X_OF_Y_CHANGES',[_0x53c833+0x1,_0xaea4ad]):_0x139361;}),_0x4cec68['set']({'label':g(_0x3ef353,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x29084b}),_0x476d2e['set']({'label':g(_0x3ef353,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x375297}),_0x4cec68['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x476d2e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4cec68['on']('execute',()=>this['fire']('execute','backward')),_0x476d2e['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',_0x44127e['if']('_isStatusLabelVisible','ck-hidden',_0x2efee2=>!_0x2efee2)]},'children':[{'text':_0x44127e['to']('isNavigationMode',_0x4bc21e=>_0x4bc21e?g(_0x3ef353,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3ef353,'Total')+':\x20')}]},{'text':_0x44127e['to']('_statusText')}]},new _0x5c24cf(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4cec68,_0x476d2e]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x30e203{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x6994cf=this['editor']['editing']['view'];_0x6994cf['change'](_0x5762d7=>{for(const _0x3602c4 of _0x6994cf['document']['roots'])_0x5762d7['addClass'](ce,_0x3602c4);});}['hide'](){const _0x136f74=this['editor']['editing']['view'];_0x136f74['change'](_0x5d60d1=>{for(const _0x20867b of _0x136f74['document']['roots'])_0x5d60d1['removeClass'](ce,_0x20867b);});}}class R extends _0x30e203{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x379277=this['editor'],_0x55bc1d=_0x379277['plugins']['get'](m),_0x4b7c54=_0x379277['plugins']['get'](le);_0x379277['ui']['componentFactory']['add']('exitToEditing',_0x3e1e7d=>{const _0x728485=new _0x3e8319(_0x3e1e7d);return _0x728485['set']({'label':g(_0x3e1e7d,'Back\x20to\x20editing'),'icon':_0x9a0024,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x728485,'execute',()=>{_0x379277['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x728485;}),_0x379277['ui']['componentFactory']['add']('restoreRevision',_0x2227c8=>{const _0x7c38a=new _0x3e8319(_0x2227c8);return _0x7c38a['set']({'label':g(_0x2227c8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x7c38a['bind']('isEnabled')['to'](_0x379277['commands']['get']('restoreRevision')),this['listenTo'](_0x7c38a,'execute',()=>_0x379277['execute']('restoreRevision')),_0x7c38a;}),_0x379277['ui']['componentFactory']['add']('changesNavigation',_0x5310d9=>{const _0x124da3=new li(_0x5310d9),_0x4c7e21=_0x379277['commands']['get']('showPreviousChange'),_0x2aee5c=_0x379277['commands']['get']('showNextChange');return _0x124da3['bind']('isBackwardNavigationEnabled')['to'](_0x4c7e21,'isEnabled'),_0x124da3['bind']('isForwardNavigationEnabled')['to'](_0x2aee5c,'isEnabled'),_0x124da3['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x55bc1d),this['listenTo'](_0x124da3,'execute',(_0x2c82a8,_0x42ab29)=>{_0x379277['execute']('forward'===_0x42ab29?'showNextChange':'showPreviousChange');}),_0x124da3;}),_0x4b7c54['show'](),_0x55bc1d['on']('change:isReady',(_0x430c13,_0x454744,_0x232156)=>{_0x232156?_0x4b7c54['hide']():_0x4b7c54['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x2c3885,_0x384221){super(_0x2c3885,_0x384221);const _0x52ee4e=this['bindTemplate'];this['set']({'label':g(_0x2c3885,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2c3885,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x52ee4e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x556b80=this['fieldView']['element'];this['_tooltipString']=_0x556b80['scrollWidth']>_0x556b80['clientWidth']&&_0x556b80['value']||'';}}class oi extends _0x1af282{constructor(_0x2f7628,_0x224d31,_0x425143){super(_0x2f7628);const _0x2de5e7=new _0x250c7a();_0x2de5e7['set']({'content':_0x41d396,'viewBox':'0\x200\x2011\x2010'});const _0x25d992=['ck','ck-revision-history-sidebar__revision-author'];_0x425143&&_0x25d992['push']('ck-revision-history-sidebar__revision-author_creator');const _0x27f61b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x2f7628,_0x425143?'Revision\x20creator':'Revision\x20author')},'children':[_0x2de5e7,_0x224d31['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x25d992},'children':_0x27f61b});}}function ni(_0x4774c8,_0x504e60){const _0x5ee79a=_0x4774c8['bindTemplate'],_0x3c5f7f=_0x4774c8['locale'],_0x48c9cc=_0x10d0b8(_0x3c5f7f);_0x48c9cc['panelPosition']='sw';const _0x2c3a62=function(_0x2fd3a6,_0x5a21af){const _0x1dd0ba=function(_0x3d54c4,_0x202cc5){const _0xc7bad0=_0x3d54c4['locale'],_0x9b30bf={'Compare\x20against\x20selected':g(_0xc7bad0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xc7bad0,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xc7bad0,'Restore\x20this\x20revision')};return _0x202cc5['map'](_0x54d179=>{const _0x3709e5=_0x9b30bf[_0x54d179['name']];return _0x3709e5&&_0x3709e5!==_0x54d179['name']&&(_0x54d179['name']=_0x3709e5),_0x54d179;});}(_0x2fd3a6,_0x5a21af),_0x3acd14=new _0x5648f3();for(const _0x35a714 of _0x1dd0ba){const _0x47587e={'type':'button','model':new to({'label':_0x35a714['name'],'class':_0x35a714['class'],'withText':!0x0,'role':'menuitem','_action':_0x35a714['action']})};_0x47587e['model']['bind']('isEnabled')['to'](_0x2fd3a6,'isActionsDropdownOpen',_0x14dcd3=>'function'!=typeof _0x35a714['isEnabled']||(!_0x14dcd3||_0x35a714['isEnabled'](_0x2fd3a6))),_0x3acd14['add'](_0x47587e);}return _0x3acd14;}(_0x4774c8,_0x504e60);return _0x4774c8['bind']('isActionsDropdownOpen')['to'](_0x48c9cc,'isOpen'),_0x48c9cc['buttonView']['set']({'label':g(_0x3c5f7f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x33f1f3}),_0x48c9cc['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5ee79a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5ee79a['to'](_0x19153a=>_0x19153a['stopPropagation']())}}),_0x48c9cc['on']('execute',_0x5a781d=>{_0x4774c8['isReady']&&'function'==typeof _0x5a781d['source']['_action']&&_0x5a781d['source']['_action'](_0x4774c8);}),_0xad4494(_0x48c9cc,_0x2c3a62,{'role':'menu'}),_0x48c9cc['listenTo'](_0x4774c8,'change:isActionsDropdownOpen',(_0x167534,_0x4c6d50,_0x5d9f4a)=>{if(_0x5d9f4a)for(const _0x12c021 of _0x48c9cc['listView']['items']){const _0x344fe1=_0x12c021['children']['first'],_0x11032c=_0x504e60['find'](_0xfbaebe=>_0xfbaebe['action']===_0x344fe1['_action'])['isVisible'];_0x12c021['isVisible']=void 0x0===_0x11032c||_0x11032c(_0x4774c8);}}),_0x48c9cc;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x18906f(_0x1af282){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x826154,_0x517446,_0x48a458,_0x106878){super(_0x826154);const _0x75d08c=this['bindTemplate'],_0x115d63=function(_0x37fe45,_0x1bd921){const _0x58390f=Array['from'](_0x1bd921['authors'])['filter'](_0x390c52=>_0x390c52!=_0x1bd921['creator']);return _0x1bd921['creator']&&_0x58390f['unshift'](_0x1bd921['creator']),_0x58390f['map'](_0xc68f0a=>new oi(_0x37fe45,_0xc68f0a,_0xc68f0a==_0x1bd921['creator']));}(_0x826154,_0x517446);this['id']=_0x517446['id'],this['_revision']=_0x517446,this['_requireRevisionName']=_0x106878,this['bind']('name','createdAt')['to'](_0x517446),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x15e247=>{return _0x4ebcad=_0x826154['uiLanguage'],(_0x175aaa=_0x15e247)['toLocaleDateString'](_0x4ebcad,{'month':'long','day':'numeric'})+',\x20'+_0x175aaa['toLocaleTimeString'](_0x4ebcad,{'hour':'numeric','minute':'numeric'});var _0x4ebcad,_0x175aaa;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x826154,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xd8076d=>_0xd8076d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xdba49c,_0x59f851)=>_0xdba49c&&_0x59f851),this['revisionActionsView']=_0x48a458&&_0x48a458['length']?ni(this,_0x48a458):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x75d08c['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x75d08c['if']('isEnabled','ck-disabled',_0xa0f391=>!_0xa0f391),_0x75d08c['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x75d08c['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x75d08c['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':_0x75d08c['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':_0x115d63}]},this['revisionActionsView']],'on':{'click':_0x75d08c['to'](_0x18d755=>{_0x18d755['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x518305=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x518305,'change',()=>{this['_requireRevisionName']&&!_0x518305['value']||this['fire']('setName',{'id':this['id'],'name':_0x518305['value']}),_0x518305['value']||(_0x518305['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3f3bbe,_0x581612){const _0x4aa9a7=_0x325609['fromJSDate'](_0x3f3bbe)['setLocale'](_0x581612),_0x478567=_0x325609['local'](),_0x556c2d=_0x478567['minus']({'days':0x1})['startOf']('day');let _0x40ee7d,_0x308165;return _0x4aa9a7['hasSame'](_0x478567,'day')?(_0x40ee7d=_0x4aa9a7['startOf']('day')['toJSDate'](),_0x308165=_0x4aa9a7['toRelativeCalendar']()):_0x4aa9a7['hasSame'](_0x556c2d,'day')?(_0x40ee7d=_0x556c2d['toJSDate'](),_0x308165=_0x4aa9a7['toRelativeCalendar']()):_0x4aa9a7['hasSame'](_0x478567,'week')?(_0x40ee7d=_0x4aa9a7['startOf']('week')['toJSDate'](),_0x308165=_0x4aa9a7['weekdayLong']||''):_0x4aa9a7['hasSame'](_0x478567,'year')?(_0x40ee7d=_0x4aa9a7['startOf']('month')['toJSDate'](),_0x308165=_0x4aa9a7['monthLong']||''):(_0x40ee7d=_0x4aa9a7['startOf']('year')['toJSDate'](),_0x308165=String(_0x4aa9a7['year'])),{'startDate':_0x40ee7d,'localizedPeriodName':_0x308165};}class _i extends _0x1af282{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1469a6,_0x338cdc,_0x167014,_0x58ed35){super(_0x1469a6);const _0x17037f=mi(_0x338cdc,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x338cdc,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x167014,this['_requireRevisionName']=_0x58ed35,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':_0x17037f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4b6f48){const _0x502b34=new ai(this['locale'],_0x4b6f48,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x502b34);}['removeRevision'](_0x160130){const _0x101aa6=this['revisionViews']['find'](_0x4118ec=>_0x4118ec['id']===_0x160130['id']);this['revisionViews']['remove'](_0x101aa6);}}class as extends _0x1af282{constructor(_0xaebbf1){super(_0xaebbf1);const _0x53ac3d=new _0x250c7a();_0x53ac3d['content']=_0x42f02c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x53ac3d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xaebbf1,'Revision\x20history')]}]});}}class vi extends _0x1af282{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x69d2ae,_0x407b4c,_0x6deaab,_0x423701){super(_0x69d2ae);const _0x35abf9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x407b4c,this['_revisionActions']=_0x6deaab,this['_requireRevisionName']=_0x423701,this['on']('select',(_0x4463be,_0x5456f7)=>{this['fire']('revisionSelected',_0x5456f7);}),this['on']('setName',(_0x12be08,_0x5478e3)=>{this['fire']('revisionSetName',_0x5478e3);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x69d2ae),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x35abf9['if']('isEnabled','ck-disabled',_0x5ecbb6=>!_0x5ecbb6)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1be019 of this['_revisions'])this['_addRevision'](_0x1be019);this['_revisions']['on']('add',(_0x148357,_0x592884)=>{this['_addRevision'](_0x592884);}),this['_revisions']['on']('remove',(_0xc5b69f,_0x383773)=>{this['_removeRevision'](_0x383773);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2fab61=>_0x2fab61['revisionViews']['map'](_0x19025f=>_0x19025f))['flat']();}['selectRevision'](_0x26f36a){for(const _0x191bc0 of this['revisionViews'])_0x26f36a&&_0x26f36a['id']===_0x191bc0['id']?_0x191bc0['select']():_0x191bc0['deselect']();}['highlightRevisions'](_0x2e697c){for(const _0x51daff of this['revisionViews'])_0x2e697c['some'](({id:_0x3abcdc})=>_0x3abcdc===_0x51daff['id'])?_0x51daff['highlight']():_0x51daff['unhighlight']();}['_addRevision'](_0x4ed829){const _0xd07eb1=mi(_0x4ed829['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x158348=this['timePeriodViews']['get'](0x0);_0x158348&&_0x158348['startDate']['getTime']()===_0xd07eb1['getTime']()||(_0x158348=new _i(this['locale'],_0xd07eb1,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x158348)),_0x158348['addRevision'](_0x4ed829);}['_removeRevision'](_0x49b1b5){const _0xd093eb=mi(_0x49b1b5['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xd093eb)['removeRevision'](_0x49b1b5);}['_getTimePeriodViewByStartDate'](_0x6521ce){return this['timePeriodViews']['find'](_0x5f1b1f=>_0x5f1b1f['startDate']['getTime']()===_0x6521ce['getTime']());}}class d extends _0x30e203{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x28e854){super(_0x28e854),this['_revisionViewer']=_0x28e854['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2f57ab=this['_revisionsRepository']['_revisions'],_0x4c9a1f=this['_createRevisionActions'](),_0x280649=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2f57ab,_0x4c9a1f,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',(_0x58a84c,_0x5713b2)=>{_0x5713b2['revisionViews']['on']('add',(_0x2b2f66,_0x76015c)=>{_0x76015c['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)),_0x280649['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1806ab=this['_revisionsRepository']['getRevision'](0x0);if(_0x1806ab){const _0x71fd92=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1806ab['id']);this['_revisionViewer']['compare'](_0x1806ab,_0x71fd92);}}['_handleRevisionSelected'](_0x488b46,_0x5f4b4c){const _0x541622=this['_revisionsRepository']['getRevision'](_0x5f4b4c['id']),_0x4b5b96=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x541622['id']);this['_revisionViewer']['compare'](_0x541622,_0x4b5b96);}['_handleRevisionSetName'](_0x368903,_0x180658){this['_revisionsRepository']['getRevision'](_0x180658['id'])['setName'](_0x180658['name']);}['_handleDiffChange'](_0x12e472,_0x2173c4,_0x59ad4a){const _0x3f0363=this['_revisionsRepository']['getRevisionsInDiff'](_0x59ad4a);_0x3f0363['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3f0363),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3f0363[0x0]));}['_createRevisionActions'](){const _0x3af26d=this['editor'],_0x19129d=d['availableRevisionActions'],_0x82c2f6=_0x3af26d['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x82c2f6['length'])return _0x82c2f6['map'](_0x446622=>{const _0x9b9e9c='string'==typeof _0x446622?Object['assign']({},_0x19129d[_0x446622]):_0x446622;return _0x9b9e9c['action']=_0x9b9e9c['action']['bind'](this,_0x3af26d),_0x9b9e9c['isVisible']&&(_0x9b9e9c['isVisible']=_0x9b9e9c['isVisible']['bind'](this,_0x3af26d)),_0x9b9e9c;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x55a6e5},_0x5523e0)=>{const _0x3cf426=_0x55a6e5['get'](m),_0x286c00=_0x3cf426['repository'];let _0x5ea847=_0x3cf426['diff']['newRevisionId'],_0x334f5a=_0x5523e0['id'];_0x286c00['getIndex'](_0x5ea847)>_0x286c00['getIndex'](_0x334f5a)&&([_0x5ea847,_0x334f5a]=[_0x334f5a,_0x5ea847]),_0x3cf426['compare'](_0x5ea847,_0x334f5a);},'isVisible':({plugins:_0x1c8b78},_0x369c4b)=>{const _0x5eb345=_0x1c8b78['get'](m);return!(_0x5eb345['repository']['getRevisionsInDiff'](_0x5eb345['diff'])['length']>0x2)&&!_0x369c4b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x46770d,{id:_0x4a6e8c})=>{_0x46770d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4a6e8c);},'isVisible':({plugins:_0xc5edb6},_0x396f6b)=>!!_0xc5edb6['get'](m)['repository']['getLaterVisibleRevision'](_0x396f6b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5af47b},{id:_0x42bff9,revisionNameView:_0x2c3b68})=>{const _0x4cf80a=_0x5af47b['get'](m),_0x52ffd8=_0x4cf80a['repository']['getEarlierVisibleRevision'](_0x42bff9);_0x4cf80a['compare'](_0x42bff9,_0x52ffd8),_0x2c3b68['focus'](),_0x2c3b68['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5729ad,_0x210df4){super(_0x5729ad),this['_view']=_0x210df4,this['_toolbarConfig']=et(_0x5729ad['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x5d2c03){const _0x3f57f9=this['editor'],_0x2c5de8=this['view'],_0x4bd45e=_0x3f57f9['editing']['view'],_0x34bac9=_0x2c5de8['editable'],_0x2149e6=_0x4bd45e['document']['getRoot']();_0x34bac9['name']=_0x2149e6['rootName'],_0x2c5de8['render']();const _0x2b4356=_0x34bac9['element'];this['setEditableElement'](_0x34bac9['name'],_0x2b4356),_0x2c5de8['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4bd45e['attachDomRoot'](_0x2b4356),this['_elementReplacer']['replace'](_0x5d2c03,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x10b317=this['view'],_0x526d5=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x526d5['detachDomRoot'](_0x10b317['editable']['name']),_0x10b317['destroy']();}['_initToolbar'](){const _0x2f5295=this['view'];_0x2f5295['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2f5295['stickyPanel']['limiterElement']=_0x2f5295['element'],_0x2f5295['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1768b6})=>_0x1768b6),_0x2f5295['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2f5295['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x55c6c2,_0x22b2be,_0xbc12ac={}){super(_0x55c6c2),this['stickyPanel']=new ht(_0x55c6c2),this['toolbar']=new dt(_0x55c6c2,{'shouldGroupWhenFull':_0xbc12ac['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x55c6c2,_0x22b2be);}['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
- _0x2f40ad(_0x2f28e2){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4c6aa1,_0x1acf3f){super(_0x1acf3f),this['sourceElement']=_0x4c6aa1,this['model']['document']['createRoot']();const _0x1b3e27=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x1b3e27);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x7bcb6e,_0x300636){const _0x2b13b4=new this(_0x7bcb6e,_0x300636);return await _0x2b13b4['initPlugins'](),await _0x2b13b4['ui']['init'](_0x7bcb6e),await _0x2b13b4['data']['init'](_0x2b13b4['config']['get']('initialData')||''),_0x2b13b4['fire']('ready'),_0x2b13b4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x563dd0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28d959){function _0x591b57(_0x609388){return _0x609388['map'](_0x4ba1f9=>String['fromCharCode'](_0x4ba1f9))['join']('');}super(_0x28d959),this['result']='end',_0x28d959[_0x591b57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x591b57([0x76,0x69,0x65,0x77])][_0x591b57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x591b57([0x61,0x75,0x74,0x6f]),_0x28d959[_0x591b57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x591b57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x591b57([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x591b57([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x591b57([0x6f,0x6b])});}}class k extends _0x563dd0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x3b5724){if(super(_0x3b5724),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a1fdd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x43d851=>this['_showRevisionViewer']({..._0x43d851,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3ce846=>this['_closeRevisionViewer'](_0x3ce846)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x47eff7=>this['_restoreRevision'](_0x47eff7)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x32c4d6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x32c4d6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xe3ec4c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xe3ec4c);}['getRevision'](_0x1c2497){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1c2497);}['getRevisions'](_0x1e30d0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1e30d0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x20ebcc=this['editor'],_0x4893fd=_0x3fbbbc(_0x20ebcc,p),_0x921618=_0x20ebcc['plugins']['get']('RevisionTracker'),_0x2186bc=_0x20ebcc['plugins']['get']('Users')['users'];return _0x4893fd['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4893fd['lazyRoots'],(_0x4893fd['plugins']['push'](yt,m,R,class extends _0x563dd0{static get['requires'](){return[m,'Users'];}['init'](){const _0x564ecb=this['editor']['plugins']['get']('Users');for(const _0x53c4be of _0x2186bc)_0x53c4be['isAnonymous']||_0x564ecb['getUser'](_0x53c4be['id'])||_0x564ecb['addUser'](_0x53c4be);const _0x8ded60=_0x921618['repository']['getRevisions']();let _0x28b878=null;const _0x1f465c=this['editor']['plugins']['get']('RevisionViewer');_0x1f465c['adapter']=_0x921618['adapter'],_0x1f465c['bind']('isEnabled')['to'](_0x921618),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x20ebcc,'isReadOnly',_0x118c24=>!_0x118c24);for(const _0x51f525 of _0x8ded60){const _0x593812=null===_0x51f525['creator'];if(_0x593812&&_0x51f525['toVersion']===_0x51f525['fromVersion'])continue;const _0x25e96b=_0x51f525['toJSON']();_0x1f465c['addRevisionData'](_0x25e96b,(_0xae2628,_0x55b7a2,_0x125011)=>{if(_0x593812){if(_0x28b878)_0x28b878['_update'](_0xae2628,_0x55b7a2);else{if(!_0x55b7a2){const _0xd9b034=_0x125011['toJSON']();_0xd9b034['id']=_0x452db2(),_0x921618['saveRevision'](_0xd9b034,_0x125011['toVersion'])['then'](_0x42d3e8=>{_0x28b878=_0x42d3e8;});}}}else _0x51f525['_update'](_0xae2628,_0x55b7a2);});}}},d),_0x4893fd);}['_enhanceShowRevisionViewerCallback'](){const _0x2d8b10=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x25e0d3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4de2bc=this['editor']['plugins']['get']('Autosave');await _0x4de2bc['save']();}else await _0x25e0d3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2f90a4=this['editor']['plugins']['get']('Dialog');_0x2f90a4['isOpen']&&_0x2f90a4['hide']();}const _0x2e7298=this['_getRevisionViewerEditorConfig']();return _0x2d8b10(_0x2e7298)['then'](_0x3f7f26=>{return(this['_viewerEditor']=_0x3f7f26,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'),_0x3f7f26);})['catch'](_0x55f365=>(console['error'](_0x55f365),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x44bd7c=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'](),_0x44bd7c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x31c664=this['editor']['plugins']['get']('Annotations');_0x31c664['refreshVisibility'](),_0x31c664['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1063de){const _0x2b7fd2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4f33f4=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x567dc5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x567dc5,_0x1063de)['then'](_0x965a06=>(_0x4f33f4['style']['display']='block',_0x2b7fd2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x965a06));}['_closeRevisionViewer'](_0x4eaefc){const _0x2c46f8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2c46f8['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4eaefc['destroy']();}async['_restoreRevision'](_0x20d32e){const _0x48f9b0=this['editor'],_0x2eed42=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x16fdec=_0x48f9b0['plugins']['get']('RevisionTracker'),_0x30d1da=_0x48f9b0['plugins']['get']('RevisionHistoryUtils'),_0x1c6f0d=_0x2eed42['repository']['getRevision'](_0x20d32e);let _0x25b9bf,_0x4fad1a,_0x3ff6c1;try{await _0x30d1da['loadRevisionData'](_0x1c6f0d,this['adapter']),_0x25b9bf=_0x30d1da['getRevisionDocumentData'](_0x1c6f0d),_0x4fad1a=_0x30d1da['getRevisionRootsAttributes'](_0x1c6f0d);}catch(_0x50a16d){return void console['error'](_0x50a16d);}_0x48f9b0['model']['change'](_0x2b14aa=>{for(const _0x19dcbb of Array['from'](_0x48f9b0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2b14aa['removeMarker'](_0x19dcbb);}),_0x2eed42['isReady']=!0x1,_0x48f9b0['model']['enqueueChange'](_0xbd8f28=>{_0xbd8f28['setSelection'](null),_0xbd8f28['removeSelectionAttribute'](_0x48f9b0['model']['document']['selection']['getAttributeKeys']());const _0x4180d3=Object['keys'](_0x25b9bf);for(const _0x26ff41 of _0x48f9b0['model']['document']['roots'])'$graveyard'!=_0x26ff41['rootName']&&_0x26ff41['isAttached']()&&!_0x4180d3['includes'](_0x26ff41['rootName'])&&_0xbd8f28['detachRoot'](_0x26ff41);for(const _0x1258f0 of _0x4180d3){let _0x3cd6dc=_0x48f9b0['model']['document']['getRoot'](_0x1258f0);_0x3cd6dc&&_0x3cd6dc['isAttached']()||(_0x3cd6dc=_0xbd8f28['addRoot'](_0x1258f0));const _0xec4703=_0x4fad1a[_0x1258f0],_0x29ed33=Object['keys'](_0xec4703),_0x2ff8c4=_0x25b9bf[_0x1258f0];for(const _0x406839 of _0x3cd6dc['getAttributeKeys']())_0x29ed33['includes'](_0x406839)||_0xbd8f28['removeAttribute'](_0x406839,_0x3cd6dc);for(const _0x3bbde1 of _0x29ed33)_0xbd8f28['setAttribute'](_0x3bbde1,_0x4fad1a[_0x1258f0][_0x3bbde1],_0x3cd6dc);_0xbd8f28['remove'](_0xbd8f28['createRangeIn'](_0x3cd6dc)),_0xbd8f28['insert'](_0x48f9b0['data']['parse'](_0x2ff8c4,_0x3cd6dc),_0x3cd6dc,0x0);}});const _0x1348d7=g(_0x48f9b0['locale'],'Restored');if(_0x1c6f0d['name'])_0x3ff6c1=-0x1==_0x1c6f0d['name']['indexOf'](_0x1348d7)?_0x1348d7+':\x20'+_0x1c6f0d['name']:_0x1c6f0d['name'];else _0x3ff6c1=_0x1348d7+':\x20'+(_0x1c6f0d['createdAt']['toLocaleDateString'](_0x48f9b0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1c6f0d['createdAt']['toLocaleTimeString'](_0x48f9b0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x16fdec['saveRevision']({'name':_0x3ff6c1}),_0x2eed42['isReady']=!0x0,_0x48f9b0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x35285b){super(_0x35285b),this['_revisionViewer']=_0x35285b['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x10ec35=this['_revisionsRepository']['_revisions'],_0x114ad1=this['_createRevisionActions'](),_0x304336=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x10ec35,_0x114ad1,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',(_0x35559b,_0x42e1b1)=>{_0x42e1b1['revisionViews']['on']('add',(_0x49c78f,_0x5a7dcb)=>{_0x5a7dcb['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)),_0x304336['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xacee7b=this['_revisionsRepository']['getRevision'](0x0);if(_0xacee7b){const _0x18d9dd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xacee7b['id']);this['_revisionViewer']['compare'](_0xacee7b,_0x18d9dd);}}['_handleRevisionSelected'](_0x1f2ca4,_0x177ec2){const _0x2c6b00=this['_revisionsRepository']['getRevision'](_0x177ec2['id']),_0x5d2ace=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2c6b00['id']);this['_revisionViewer']['compare'](_0x2c6b00,_0x5d2ace);}['_handleRevisionSetName'](_0x4e8569,_0x1144a2){this['_revisionsRepository']['getRevision'](_0x1144a2['id'])['setName'](_0x1144a2['name']);}['_handleDiffChange'](_0x4593c0,_0x2c0702,_0x1e1167){const _0x2ca2e7=this['_revisionsRepository']['getRevisionsInDiff'](_0x1e1167);_0x2ca2e7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2ca2e7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2ca2e7[0x0]));}['_createRevisionActions'](){const _0x16663e=this['editor'],_0x1142ca=d['availableRevisionActions'],_0x28df2e=_0x16663e['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x28df2e['length'])return _0x28df2e['map'](_0x4b15aa=>{const _0x460122='string'==typeof _0x4b15aa?Object['assign']({},_0x1142ca[_0x4b15aa]):_0x4b15aa;return _0x460122['action']=_0x460122['action']['bind'](this,_0x16663e),_0x460122['isVisible']&&(_0x460122['isVisible']=_0x460122['isVisible']['bind'](this,_0x16663e)),_0x460122;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x34b07e},_0x5b05c6)=>{const _0x43712c=_0x34b07e['get'](m),_0x3f6660=_0x43712c['repository'];let _0x2d21bc=_0x43712c['diff']['newRevisionId'],_0x4d0fbb=_0x5b05c6['id'];_0x3f6660['getIndex'](_0x2d21bc)>_0x3f6660['getIndex'](_0x4d0fbb)&&([_0x2d21bc,_0x4d0fbb]=[_0x4d0fbb,_0x2d21bc]),_0x43712c['compare'](_0x2d21bc,_0x4d0fbb);},'isVisible':({plugins:_0x467adf},_0x483458)=>{const _0x51865f=_0x467adf['get'](m);return!(_0x51865f['repository']['getRevisionsInDiff'](_0x51865f['diff'])['length']>0x2)&&!_0x483458['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xe04121,{id:_0x2cddf0})=>{_0xe04121['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2cddf0);},'isVisible':({plugins:_0xe6672d},_0x1486cd)=>!!_0xe6672d['get'](m)['repository']['getLaterVisibleRevision'](_0x1486cd['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x20efb5},{id:_0x38cd1f,revisionNameView:_0x2b7217})=>{const _0x37f52f=_0x20efb5['get'](m),_0x2ad0bc=_0x37f52f['repository']['getEarlierVisibleRevision'](_0x38cd1f);_0x37f52f['compare'](_0x38cd1f,_0x2ad0bc),_0x2b7217['focus'](),_0x2b7217['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x151153,_0x59622b){super(_0x151153),this['_view']=_0x59622b,this['_toolbarConfig']=et(_0x151153['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x2df8ab){const _0x5d63ea=this['editor'],_0x150f8c=this['view'],_0x38bac4=_0x5d63ea['editing']['view'],_0x418344=_0x150f8c['editable'],_0x4cdb81=_0x38bac4['document']['getRoot']();_0x418344['name']=_0x4cdb81['rootName'],_0x150f8c['render']();const _0x432ccc=_0x418344['element'];this['setEditableElement'](_0x418344['name'],_0x432ccc),_0x150f8c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x38bac4['attachDomRoot'](_0x432ccc),this['_elementReplacer']['replace'](_0x2df8ab,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5654d4=this['view'],_0x5bc8a0=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5bc8a0['detachDomRoot'](_0x5654d4['editable']['name']),_0x5654d4['destroy']();}['_initToolbar'](){const _0x45ff11=this['view'];_0x45ff11['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x45ff11['stickyPanel']['limiterElement']=_0x45ff11['element'],_0x45ff11['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3d29a3})=>_0x3d29a3),_0x45ff11['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x45ff11['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1986e5,_0x311dc3,_0x346ec7={}){super(_0x1986e5),this['stickyPanel']=new ht(_0x1986e5),this['toolbar']=new dt(_0x1986e5,{'shouldGroupWhenFull':_0x346ec7['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1986e5,_0x311dc3);}['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
+ _0x336aec(_0x484e57){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x12ab51,_0x10df8b){super(_0x10df8b),this['sourceElement']=_0x12ab51,this['model']['document']['createRoot']();const _0x34ddaf=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x34ddaf);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe0f9c9,_0x130f3f){const _0x4dfc5a=new this(_0xe0f9c9,_0x130f3f);return await _0x4dfc5a['initPlugins'](),await _0x4dfc5a['ui']['init'](_0xe0f9c9),await _0x4dfc5a['data']['init'](_0x4dfc5a['config']['get']('initialData')||''),_0x4dfc5a['fire']('ready'),_0x4dfc5a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x30e203{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b92ad){function _0x3f9368(_0xdaa59f){return _0xdaa59f['map'](_0x5dbac8=>String['fromCharCode'](_0x5dbac8))['join']('');}super(_0x1b92ad),this['result']='end',_0x1b92ad[_0x3f9368([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f9368([0x76,0x69,0x65,0x77])][_0x3f9368([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f9368([0x61,0x75,0x74,0x6f]),_0x1b92ad[_0x3f9368([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3f9368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f9368([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3f9368([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3f9368([0x6f,0x6b])});}}class k extends _0x30e203{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x46ec78){if(super(_0x46ec78),!this['editor']['config']['get']('revisionHistory'))throw new _0x48516b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4b283f=>this['_showRevisionViewer']({..._0x4b283f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5b047c=>this['_closeRevisionViewer'](_0x5b047c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4fc1b5=>this['_restoreRevision'](_0x4fc1b5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x24db27){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x24db27;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5887b1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5887b1);}['getRevision'](_0x28b8b4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x28b8b4);}['getRevisions'](_0xaa671){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xaa671||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x855ca3=this['editor'],_0x20ec5a=_0x3f1c17(_0x855ca3,p),_0x3e9332=_0x855ca3['plugins']['get']('RevisionTracker'),_0x1db99e=_0x855ca3['plugins']['get']('Users')['users'];return _0x20ec5a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x20ec5a['lazyRoots'],(_0x20ec5a['plugins']['push'](yt,m,R,class extends _0x30e203{static get['requires'](){return[m,'Users'];}['init'](){const _0x37f9fa=this['editor']['plugins']['get']('Users');for(const _0x32c1ef of _0x1db99e)_0x32c1ef['isAnonymous']||_0x37f9fa['getUser'](_0x32c1ef['id'])||_0x37f9fa['addUser'](_0x32c1ef);const _0x171cd5=_0x3e9332['repository']['getRevisions']();let _0x1e5f35=null;const _0x1520ae=this['editor']['plugins']['get']('RevisionViewer');_0x1520ae['adapter']=_0x3e9332['adapter'],_0x1520ae['bind']('isEnabled')['to'](_0x3e9332),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x855ca3,'isReadOnly',_0x59c7a6=>!_0x59c7a6);for(const _0x145fe3 of _0x171cd5){const _0x129171=null===_0x145fe3['creator'];if(_0x129171&&_0x145fe3['toVersion']===_0x145fe3['fromVersion'])continue;const _0x547592=_0x145fe3['toJSON']();_0x1520ae['addRevisionData'](_0x547592,(_0x2dd247,_0x2eb372,_0x12a23c)=>{if(_0x129171){if(_0x1e5f35)_0x1e5f35['_update'](_0x2dd247,_0x2eb372);else{if(!_0x2eb372){const _0x5c8992=_0x12a23c['toJSON']();_0x5c8992['id']=_0x15b5e5(),_0x3e9332['saveRevision'](_0x5c8992,_0x12a23c['toVersion'])['then'](_0x288c73=>{_0x1e5f35=_0x288c73;});}}}else _0x145fe3['_update'](_0x2dd247,_0x2eb372);});}}},d),_0x20ec5a);}['_enhanceShowRevisionViewerCallback'](){const _0x49e9d9=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5c8a03=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xbc1546=this['editor']['plugins']['get']('Autosave');await _0xbc1546['save']();}else await _0x5c8a03['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x49e73f=this['editor']['plugins']['get']('Dialog');_0x49e73f['isOpen']&&_0x49e73f['hide']();}const _0x567bb9=this['_getRevisionViewerEditorConfig']();return _0x49e9d9(_0x567bb9)['then'](_0x335a4a=>{return(this['_viewerEditor']=_0x335a4a,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'),_0x335a4a);})['catch'](_0x908d0b=>(console['error'](_0x908d0b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x577d91=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'](),_0x577d91(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x33420e=this['editor']['plugins']['get']('Annotations');_0x33420e['refreshVisibility'](),_0x33420e['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3d4f53){const _0x5e7db9=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x221936=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x6af739=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x6af739,_0x3d4f53)['then'](_0x597214=>(_0x221936['style']['display']='block',_0x5e7db9['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x597214));}['_closeRevisionViewer'](_0x4ecba9){const _0x53b310=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x53b310['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4ecba9['destroy']();}async['_restoreRevision'](_0x3768c){const _0x42df90=this['editor'],_0x593256=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x96908c=_0x42df90['plugins']['get']('RevisionTracker'),_0x2075b1=_0x42df90['plugins']['get']('RevisionHistoryUtils'),_0x169ba4=_0x593256['repository']['getRevision'](_0x3768c);let _0x320556,_0x523860,_0x458765;try{await _0x2075b1['loadRevisionData'](_0x169ba4,this['adapter']),_0x320556=_0x2075b1['getRevisionDocumentData'](_0x169ba4),_0x523860=_0x2075b1['getRevisionRootsAttributes'](_0x169ba4);}catch(_0x4db5b4){return void console['error'](_0x4db5b4);}_0x42df90['model']['change'](_0x251dd9=>{for(const _0x2c80d9 of Array['from'](_0x42df90['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x251dd9['removeMarker'](_0x2c80d9);}),_0x593256['isReady']=!0x1,_0x42df90['model']['enqueueChange'](_0x355b63=>{_0x355b63['setSelection'](null),_0x355b63['removeSelectionAttribute'](_0x42df90['model']['document']['selection']['getAttributeKeys']());const _0x555615=Object['keys'](_0x320556);for(const _0x556ea1 of _0x42df90['model']['document']['roots'])'$graveyard'!=_0x556ea1['rootName']&&_0x556ea1['isAttached']()&&!_0x555615['includes'](_0x556ea1['rootName'])&&_0x355b63['detachRoot'](_0x556ea1);for(const _0x3d24a2 of _0x555615){let _0x4f9d0d=_0x42df90['model']['document']['getRoot'](_0x3d24a2);_0x4f9d0d&&_0x4f9d0d['isAttached']()||(_0x4f9d0d=_0x355b63['addRoot'](_0x3d24a2));const _0x163af2=_0x523860[_0x3d24a2],_0x36aacb=Object['keys'](_0x163af2),_0x39a50a=_0x320556[_0x3d24a2];for(const _0x38db73 of _0x4f9d0d['getAttributeKeys']())_0x36aacb['includes'](_0x38db73)||_0x355b63['removeAttribute'](_0x38db73,_0x4f9d0d);for(const _0x2fec05 of _0x36aacb)_0x355b63['setAttribute'](_0x2fec05,_0x523860[_0x3d24a2][_0x2fec05],_0x4f9d0d);_0x355b63['remove'](_0x355b63['createRangeIn'](_0x4f9d0d)),_0x355b63['insert'](_0x42df90['data']['parse'](_0x39a50a,_0x4f9d0d),_0x4f9d0d,0x0);}});const _0x200b1d=g(_0x42df90['locale'],'Restored');if(_0x169ba4['name'])_0x458765=-0x1==_0x169ba4['name']['indexOf'](_0x200b1d)?_0x200b1d+':\x20'+_0x169ba4['name']:_0x169ba4['name'];else _0x458765=_0x200b1d+':\x20'+(_0x169ba4['createdAt']['toLocaleDateString'](_0x42df90['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x169ba4['createdAt']['toLocaleTimeString'](_0x42df90['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x96908c['saveRevision']({'name':_0x458765}),_0x593256['isReady']=!0x0,_0x42df90['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};