@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250227.1 → 0.0.0-nightly-next-20250228.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 _0x3ddaf9,uid as _0x2d3c1e,Collection as _0x1caf96,logWarning as _0x565cf3,FocusTracker as _0x30fc5d,KeystrokeHandler as _0xe432c2,scrollViewportToShowTarget as _0x2cff1f,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x2e3aef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x54079b,set as _0x18db9c,unset as _0x14fdd6,isEqual as _0x1cfb9a}from'es-toolkit/compat';import{Plugin as _0x19eb44,PendingActions as _0x18cc44,Command as _0x3b1154,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xb8447b,getMarkerDomElement as _0x12bc2a,ConfirmMixin as _0x220777,sanitizeEditorConfig as _0x388719}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4daa75,Element as ut,Range as ft,ViewUIElement as _0x26460a,ViewRawElement as _0x2e2456,ViewEmptyElement as _0xc09e33,ViewAttributeElement as _0x34b3a3,ViewContainerElement as _0x4b52e0,Position as vt,ViewText as _0x14d4f7,ViewElement as _0x473b22,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x533e5c,IconChevronUp as _0x20e947,IconChevronDown as _0x2efc78,IconUndo as _0x520d6c,IconUser as _0x14a93e,IconThreeVerticalDots as _0x28e837}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3438c0,injectCssTransitionDisabler as ts,submitHandler as _0x124a44,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x36390b,ListView as _0x3e0030,ListItemView as te,ButtonView as _0x1cfe19,MenuBarMenuView as _0x272de6,MenuBarMenuListView as _0x3b9875,MenuBarMenuListItemView as _0x3168a2,MenuBarMenuListItemButtonView as _0x3b5cb8,ContextualBalloon as _0x5cf708,ToolbarSeparatorView as _0x139776,IconView as _0x2b6dd8,addListToDropdown as _0x59951c,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1484ed}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x3ddaf9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5a6bba){super(),this['id']=_0x5a6bba['id']||_0x2d3c1e(),this['creator']=_0x5a6bba['creator']||null,this['authors']=_0x5a6bba['authors']||[],this['diffData']=_0x5a6bba['diffData']||null,this['toVersion']=_0x5a6bba['toVersion']||0x0,this['fromVersion']=_0x5a6bba['fromVersion']||0x0,this['set']('name',_0x5a6bba['name']||''),this['set']('createdAt',_0x5a6bba['createdAt']||new Date()),this['set']('attributes',_0x5a6bba['attributes']||{});}['setName'](_0x51903c){this['_update']({'name':_0x51903c});}['setAttribute'](_0x3790d0,_0x34ddf3){const _0xc56adb=_0x54079b(this['attributes']);_0x18db9c(_0xc56adb,_0x3790d0,_0x34ddf3),this['_update']({'attributes':_0xc56adb});}['removeAttribute'](_0x4c1d13){const _0x2f342d=_0x54079b(this['attributes']);_0x14fdd6(_0x2f342d,_0x4c1d13),this['_update']({'attributes':_0x2f342d});}['_update'](_0x1f7cbc,_0x174e1c=!0x1){let _0xc80756=!0x1;const _0x1844a0={'id':this['id']},_0x86b3ca=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x110c8b of _0x86b3ca){const _0x394389=_0x1f7cbc[_0x110c8b];void 0x0!==_0x394389&&_0x394389!==this[_0x110c8b]&&(this[_0x110c8b]=_0x394389,_0x1844a0[_0x110c8b]=_0x394389,_0xc80756=!0x0);}_0xc80756&&(_0x1844a0['authors']&&(_0x1844a0['authorsIds']=_0x1844a0['authors']['map'](_0x139c7f=>_0x139c7f['id']),delete _0x1844a0['authors']),this['fire']('_update',_0x1844a0,_0x174e1c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x543ece=>_0x543ece['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x19eb44{['_revisions'];static get['requires'](){return[_0xb8447b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x21ce24){super(_0x21ce24),this['_revisions']=new _0x1caf96();}['afterInit'](){!async function(_0x5d8fdf){const _0xddf0be=_0x5f5a7d([0x6f,0x31,0x55,0x56,0x70,0x72,0x65,0x7a,0x64,0x47,0x68,0x62,0x42,0x69,0x73,0x4f,0x32,0x43,0x38,0x35,0x37,0x79,0x4c,0x74,0x53,0x39,0x45,0x61,0x54,0x6a,0x4d,0x4e,0x30,0x58,0x36,0x59,0x6e,0x52,0x44,0x6c,0x6d,0x49,0x33,0x50,0x5a,0x77,0x63,0x6b,0x67,0x78,0x4b,0x71,0x4a,0x66,0x57,0x51,0x76,0x46,0x41,0x48,0x75,0x34]),_0x364e08=0xeb829,_0x349780=0x766d1642,_0x41cf77=0x766a76f2^_0x349780,_0x20c492=window[_0x5f5a7d([0x44,0x61,0x74,0x65])][_0x5f5a7d([0x6e,0x6f,0x77])](),_0x2da03e=_0x5d8fdf[_0x5f5a7d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2801ac=new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3182b4=>{_0x2da03e[_0x5f5a7d([0x6f,0x6e,0x63,0x65])](_0x5f5a7d([0x72,0x65,0x61,0x64,0x79]),_0x3182b4);}),_0x26fdc1={[_0x5f5a7d([0x6b,0x74,0x79])]:_0x5f5a7d([0x45,0x43]),[_0x5f5a7d([0x75,0x73,0x65])]:_0x5f5a7d([0x73,0x69,0x67]),[_0x5f5a7d([0x63,0x72,0x76])]:_0x5f5a7d([0x50,0x2d,0x32,0x35,0x36]),[_0x5f5a7d([0x78])]:_0x5f5a7d([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]),[_0x5f5a7d([0x79])]:_0x5f5a7d([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]),[_0x5f5a7d([0x61,0x6c,0x67])]:_0x5f5a7d([0x45,0x53,0x32,0x35,0x36])},_0x85e3e4=_0x2da03e[_0x5f5a7d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f5a7d([0x67,0x65,0x74])](_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6bb5cb(){let _0x1bc4f7,_0x3bae8b=null,_0x2732f7=null;try{if(_0x85e3e4==_0x5f5a7d([0x47,0x50,0x4c]))return _0x5f5a7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bc4f7=_0x1776d8(),!_0x1bc4f7)return _0x5f5a7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bc4f7[_0x5f5a7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2732f7=_0x4f03fe(_0x1bc4f7[_0x5f5a7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bc4f7[_0x5f5a7d([0x6a,0x74,0x69])])),await _0x3b144b()?_0x3aeb6d()?_0x52e87e()?_0x5f5a7d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1328df()?(_0x1bc4f7[_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5a7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3bae8b=_0x17bce0(_0x5f5a7d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bc4f7[_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f5a7d([0x74,0x72,0x69,0x61,0x6c])&&(_0x3bae8b=_0x17bce0(_0x5f5a7d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10add4()):_0x5f5a7d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5a7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f5a7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4612fc){return _0x5f5a7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52e87e(){const _0x2f224a=[_0x5f5a7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f5a7d([0x74,0x72,0x69,0x61,0x6c])][_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc4f7[_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20c492/0x3e8:0xe10*_0x41cf77;return _0x1bc4f7[_0x5f5a7d([0x65,0x78,0x70])]<_0x2f224a;}function _0x3aeb6d(){const _0x492ba2=_0x1bc4f7[_0x5f5a7d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x492ba2)return!0x1;if(_0x492ba2[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5a7d([0x2a])))return!0x0;if(_0x492ba2[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5a7d([0x52,0x48])))return!0x0;if(_0x492ba2[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5a7d([0x52,0x52,0x48]))){if(_0x100119())return!0x0;if(_0x388a65()||_0x177a29())return!0x0;}return!0x1;}function _0x1328df(){const _0x599298=_0x1bc4f7[_0x5f5a7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x599298||0x0==_0x599298[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c0f78}=new URL(window[_0x5f5a7d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x599298[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0f78))return!0x0;const _0x77754=_0x5c0f78[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])](_0x5f5a7d([0x2e]));return _0x599298[_0x5f5a7d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x327154=>_0x327154[_0x5f5a7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f5a7d([0x2a])))[_0x5f5a7d([0x6d,0x61,0x70])](_0x2f6fa6=>_0x2f6fa6[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])](_0x5f5a7d([0x2e])))[_0x5f5a7d([0x73,0x6f,0x6d,0x65])](_0x1f6612=>_0x77754[_0x5f5a7d([0x65,0x76,0x65,0x72,0x79])]((_0x561f7d,_0x84a9ec)=>_0x1f6612[_0x84a9ec]===_0x561f7d||_0x1f6612[_0x84a9ec]===_0x5f5a7d([0x2a])));}function _0x10add4(){return _0x3bae8b&&_0x2732f7?new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x163978,_0x405256)=>{_0x3bae8b[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x163978,_0x405256),_0x2732f7[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x389397=>{_0x389397!=_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64])&&_0x163978(_0x389397);},_0x405256);}):_0x3bae8b||_0x2732f7||_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f03fe(_0x457f73,_0x43201c){return new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39a93c=>{if(_0x108057())return _0x39a93c(_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64]));_0x533a23(),_0x2da03e[_0x5f5a7d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f5a7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x487d9a=!0x1;const _0x34a3dd=_0x2d3c1e();function _0x64bd43(_0x4f7c69){return!!_0x4f7c69&&(typeof _0x4f7c69===_0x5f5a7d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f7c69===_0x5f5a7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f7c69[_0x5f5a7d([0x74,0x68,0x65,0x6e])]===_0x5f5a7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f7c69[_0x5f5a7d([0x63,0x61,0x74,0x63,0x68])]===_0x5f5a7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f602f(_0x2b760a){_0x1be59e(_0x2b760a)[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x33a7c2=>{if(!_0x33a7c2||_0x33a7c2[_0x5f5a7d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f5a7d([0x6f,0x6b]))return _0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e8468(_0x590cdc(_0x34a3dd+_0x43201c))!=_0x33a7c2[_0x5f5a7d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x579725=>(_0x30c90d(),_0x579725),()=>{const _0x3bf39a=_0x2b7d76();return null==_0x3bf39a?(_0x30c90d(),_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64])):_0x5f5a7d(_0x20c492-_0x3bf39a>(0x52619242^_0x349780)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x39a93c)[_0x5f5a7d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39a93c(_0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x186540=0x765bf8c2^_0x349780;function _0x30c90d(){const _0x43e128=_0x5f5a7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e8468(_0x590cdc(_0x457f73)),_0x36cc62=_0x3dba9f(_0x5e8468(window[_0x5f5a7d([0x4d,0x61,0x74,0x68])][_0x5f5a7d([0x63,0x65,0x69,0x6c])](_0x20c492/_0x186540)));window[_0x5f5a7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5a7d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43e128,_0x36cc62);}function _0x2b7d76(){const _0x21d380=_0x5f5a7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e8468(_0x590cdc(_0x457f73)),_0x2d9e82=window[_0x5f5a7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f5a7d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21d380);return _0x2d9e82?window[_0x5f5a7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dba9f(_0x2d9e82),0x10)*_0x186540:null;}function _0x1be59e(_0xe98ad8){return new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31fc0a,_0x22e841)=>{_0xe98ad8[_0x5f5a7d([0x74,0x68,0x65,0x6e])](_0x31fc0a,_0x22e841),window[_0x5f5a7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22e841,0x766cc282^_0x349780);});}}_0x2da03e[_0x5f5a7d([0x6f,0x6e])](_0x5f5a7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa829a,_0x1d7496)=>{if(_0x1d7496[0x0]!=_0x457f73)return _0x39a93c(_0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d7496[0x1]={..._0x1d7496[0x1],[_0x5f5a7d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34a3dd};},{[_0x5f5a7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5a7d([0x68,0x69,0x67,0x68])}),_0x2da03e[_0x5f5a7d([0x6f,0x6e])](_0x5f5a7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10e568=>{_0x64bd43(_0x10e568[_0x5f5a7d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x487d9a=!0x0,_0x2f602f(_0x10e568[_0x5f5a7d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f5a7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f5a7d([0x6c,0x6f,0x77])}),_0x2801ac[_0x5f5a7d([0x74,0x68,0x65,0x6e])](()=>{_0x487d9a||_0x39a93c(_0x5f5a7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x108057(){return _0x2da03e[_0x5f5a7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5a7d([0x76,0x69,0x65,0x77])][_0x5f5a7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f5a7d([0x61,0x75,0x74,0x6f]);}function _0x533a23(){_0x2da03e[_0x5f5a7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f5a7d([0x76,0x69,0x65,0x77])][_0x5f5a7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f5a7d([0x61,0x75,0x74,0x6f]);}}function _0x17bce0(_0x987b98){const _0x16b0d0=[new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123691=>setTimeout(_0x123691,0x7664288e^_0x349780)),_0x2801ac[_0x5f5a7d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb75d9c=>{const _0x543f49=0x766d1645^_0x349780,_0xb4371e=_0x5d8fdf[_0x5f5a7d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xfc32a9(){_0xb4371e[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x543f49&&_0xb75d9c();}_0xfc32a9(),_0xb4371e[_0x5f5a7d([0x6f,0x6e])](_0x5f5a7d([0x61,0x64,0x64]),_0xfc32a9);})),new window[(_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9b4507=>{function _0x1d5c35(){for(const _0x47ee0a in window)if(window[_0x5f5a7d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5f5a7d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x47ee0a))&&window[_0x47ee0a]==_0x364e08)return _0x9b4507();_0x2da03e[_0x5f5a7d([0x73,0x74,0x61,0x74,0x65])]!=_0x5f5a7d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5f5a7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d5c35,0x766d05ca^_0x349780);}_0x3539d7(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1d5c35();})];return window[_0x5f5a7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f5a7d([0x72,0x61,0x63,0x65])](_0x16b0d0)[_0x5f5a7d([0x74,0x68,0x65,0x6e])](()=>_0x987b98);}async function _0x1f65b6(){if(await _0x2801ac,_0x3539d7(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x150107=_0x5d8fdf[_0x5f5a7d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1c84e1=_0x5d8fdf[_0x5f5a7d([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])](_0x150107[_0x5f5a7d([0x69,0x64])]),_0x4ed500=_0xf731a0(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4ed500[_0x5f5a7d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x150107['id'],_0x1c84e1?_0x1c84e1['id']:null,!0x0),_0x4ed500[_0x5f5a7d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f5a7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4ed500[_0x5f5a7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4ed500[_0x5f5a7d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x191e22,void(_0x4ed500[_0x5f5a7d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x191e22);}if(_0x3539d7(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3c503d=_0xf731a0(_0x5f5a7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3c503d[_0x5f5a7d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f5a7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3c503d[_0x5f5a7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3c503d[_0x5f5a7d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x191e22,_0x3c503d[_0x5f5a7d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x191e22;}_0x2da03e[_0x5f5a7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5a7d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x191e22,_0x2da03e[_0x5f5a7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f5a7d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x191e22,_0x2da03e[_0x5f5a7d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f5a7d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x100119(){return _0x3539d7(_0x5f5a7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xf731a0(_0x5f5a7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f5a7d([0x73,0x74,0x61,0x74,0x65])]==_0x5f5a7d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x388a65(){return _0x3539d7(_0x5f5a7d([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 _0x177a29(){return _0x3539d7(_0x5f5a7d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3126c3(_0x5a695c){const _0x2c98ff=_0xb5ec69();_0x2da03e[_0x2c98ff]=_0x5f5a7d([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])+_0x5a695c,_0x5a695c[_0x5f5a7d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5f5a7d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xb5ec69()]=_0x364e08),_0x5a695c!=_0x5f5a7d([0x56,0x61,0x6c,0x69,0x64])&&_0x1f65b6();}function _0xb5ec69(){const _0x5146f6=window[_0x5f5a7d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f5a7d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f5a7d([0x6e,0x6f,0x77])]())[_0x5f5a7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f5a7d([0x2e]),'');let _0x2230c2=_0x5f5a7d([0x6f]);for(let _0x19e545=0x0;_0x19e545<_0x5146f6[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19e545+=0x2){let _0x485e7a=window[_0x5f5a7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5146f6[_0x5f5a7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19e545,_0x19e545+0x2));_0x485e7a>=_0xddf0be[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x485e7a-=_0xddf0be[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2230c2+=_0xddf0be[_0x485e7a];}return _0x2230c2;}function _0x1776d8(){const _0xc686b5=_0x85e3e4[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])](_0x5f5a7d([0x2e]));if(0x3!=_0xc686b5[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54186e(_0xc686b5[0x1]);function _0x54186e(_0x6bb1d4){const _0x373f89=_0x202f7a(_0x6bb1d4);return _0x373f89&&_0x5d5e23()?_0x373f89:null;function _0x5d5e23(){const _0x53c3e0=_0x373f89[_0x5f5a7d([0x6a,0x74,0x69])],_0x5e69db=window[_0x5f5a7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c3e0[_0x5f5a7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53c3e0[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e32a9={..._0x373f89,[_0x5f5a7d([0x6a,0x74,0x69])]:_0x53c3e0[_0x5f5a7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53c3e0[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e32a9[_0x5f5a7d([0x76,0x63])],_0x590cdc(_0x1e32a9)==_0x5e69db;}}}async function _0x3b144b(){let _0x5cfbad=!0x0;try{const _0x56eb90=_0x85e3e4[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])](_0x5f5a7d([0x2e])),[_0x4c8a61,_0x4b8b81,_0x382b00]=_0x56eb90;return _0x40abb0(_0x4c8a61),await _0x506604(_0x4c8a61,_0x4b8b81,_0x382b00),_0x5cfbad;}catch(_0x1edd8c){return!0x1;}function _0x40abb0(_0x5c3e54){const _0x4e544c=_0x202f7a(_0x5c3e54);_0x4e544c&&_0x4e544c[_0x5f5a7d([0x61,0x6c,0x67])]==_0x5f5a7d([0x45,0x53,0x32,0x35,0x36])||(_0x5cfbad=!0x1);}async function _0x506604(_0x24313f,_0x559386,_0x507d36){const _0x30db76=window[_0x5f5a7d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f5a7d([0x66,0x72,0x6f,0x6d])](_0x35368a(_0x507d36),_0x141d85=>_0x141d85[_0x5f5a7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45bd4b=new window[(_0x5f5a7d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f5a7d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24313f+_0x5f5a7d([0x2e])+_0x559386),_0x12c734=window[_0x5f5a7d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f5a7d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12c734)return;const _0x2ebab7=await _0x12c734[_0x5f5a7d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f5a7d([0x6a,0x77,0x6b]),_0x26fdc1,{[_0x5f5a7d([0x6e,0x61,0x6d,0x65])]:_0x5f5a7d([0x45,0x43,0x44,0x53,0x41]),[_0x5f5a7d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f5a7d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f5a7d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12c734[_0x5f5a7d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f5a7d([0x6e,0x61,0x6d,0x65])]:_0x5f5a7d([0x45,0x43,0x44,0x53,0x41]),[_0x5f5a7d([0x68,0x61,0x73,0x68])]:{[_0x5f5a7d([0x6e,0x61,0x6d,0x65])]:_0x5f5a7d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ebab7,_0x30db76,_0x45bd4b)||(_0x5cfbad=!0x1);}}function _0x202f7a(_0x5e9b2e){return _0x5e9b2e[_0x5f5a7d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f5a7d([0x65,0x79]))?JSON[_0x5f5a7d([0x70,0x61,0x72,0x73,0x65])](_0x35368a(_0x5e9b2e)):null;}function _0x35368a(_0x30552b){return window[_0x5f5a7d([0x61,0x74,0x6f,0x62])](_0x30552b[_0x5f5a7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f5a7d([0x2b]))[_0x5f5a7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f5a7d([0x2f])));}function _0x590cdc(_0x17996a){let _0x25f507=0x1505;function _0x120ff4(_0x200ec4){for(let _0x163076=0x0;_0x163076<_0x200ec4[_0x5f5a7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x163076++){const _0x51298d=_0x200ec4[_0x5f5a7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x163076);_0x25f507=(_0x25f507<<0x5)+_0x25f507+_0x51298d,_0x25f507&=_0x25f507;}}function _0x2ad5b9(_0x54912f){Array[_0x5f5a7d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54912f)?_0x54912f[_0x5f5a7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ad5b9):_0x54912f&&typeof _0x54912f==_0x5f5a7d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f5a7d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54912f)[_0x5f5a7d([0x73,0x6f,0x72,0x74])]()[_0x5f5a7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32ae9b,_0x496978])=>{_0x120ff4(_0x32ae9b),_0x2ad5b9(_0x496978);}):_0x120ff4(window[_0x5f5a7d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54912f));}return _0x2ad5b9(_0x17996a),_0x25f507>>>0x0;}function _0x5e8468(_0x2ab6f0){return _0x2ab6f0[_0x5f5a7d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f5a7d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f5a7d([0x30]));}function _0x3dba9f(_0x386b05){return _0x386b05[_0x5f5a7d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f5a7d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f5a7d([0x6a,0x6f,0x69,0x6e])]('');}function _0x3539d7(_0x26e4af){return _0x2da03e[_0x5f5a7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5a7d([0x68,0x61,0x73])](_0x26e4af);}function _0xf731a0(_0x482d73){return _0x2da03e[_0x5f5a7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f5a7d([0x67,0x65,0x74])](_0x482d73);}function _0x191e22(){}function _0x5f5a7d(_0x211290){return _0x211290['map'](_0x1b7eeb=>String['fromCharCode'](_0x1b7eeb))['join']('');}_0x3126c3(await _0x6bb5cb());}(this);}['createRevision'](_0x548cb1){const _0x1726a7=this['editor']['plugins']['get']('Users');return new h({'id':_0x548cb1['id'],'name':_0x548cb1['name'],'creator':_0x548cb1['creatorId']?_0x1726a7['getUser'](_0x548cb1['creatorId']):null,'diffData':_0x548cb1['diffData']||_0x548cb1['data'],'authors':_0x548cb1['authorsIds']['map'](_0x8599c5=>_0x1726a7['getUser'](_0x8599c5)),'createdAt':new Date(_0x548cb1['createdAt']),'attributes':_0x548cb1['attributes'],'fromVersion':_0x548cb1['fromVersion'],'toVersion':_0x548cb1['toVersion']});}['addRevision'](_0x3a5d71,_0x13c851=0x0){this['_revisions']['add'](_0x3a5d71,_0x13c851);}['getRevision'](_0x42d1b5){return this['_revisions']['get'](_0x42d1b5);}['getRevisions'](_0x29a29e={'toJSON':!0x1}){const _0x3ee01e=Array['from'](this['_revisions']);return _0x3ee01e['reverse'](),_0x29a29e['toJSON']?_0x3ee01e['map'](_0x58d446=>_0x58d446['toJSON']()):_0x3ee01e;}['getIndex'](_0x40b8db){return this['_revisions']['getIndex'](_0x40b8db);}['getEarlierVisibleRevision'](_0x2ee0fa){const [,_0x5003ef]=this['getRevisionsIterator'](_0x2ee0fa,{'direction':'earlier'});return _0x5003ef;}['getLaterVisibleRevision'](_0x2ae340){const [,_0x401282]=this['getRevisionsIterator'](_0x2ae340,{'direction':'later'});return _0x401282;}['getRevisionsInDiff'](_0x36e2a9){const _0xd0fdb8=[];for(const _0xc0ae9f of this['getRevisionsIterator'](_0x36e2a9['newRevisionId']))if(_0xd0fdb8['push'](_0xc0ae9f),_0xc0ae9f['id']===_0x36e2a9['oldRevisionId'])break;return _0xd0fdb8;}*['getRevisionsIterator'](_0x1cb747,{direction:_0x50539a='earlier',filter:_0x335645=()=>!0x0}={}){const _0x27ecf9='earlier'===_0x50539a?0x1:-0x1;let _0x14f5e3=this['_revisions']['get'](_0x1cb747),_0x44e32c=this['getIndex'](_0x14f5e3);for(yield _0x14f5e3;_0x14f5e3;){if(_0x44e32c+=_0x27ecf9,_0x14f5e3=this['getRevision'](_0x44e32c),!_0x14f5e3)return;_0x335645(_0x14f5e3)&&(yield _0x14f5e3);}}}function m(_0x216ae5,_0x56008e,_0x22f200){const t=_0x216ae5['t'];switch(_0x56008e){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'},_0x22f200);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x22f200);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x4b52e0,'a':_0x34b3a3,'e':_0xc09e33,'r':_0x2e2456,'u':_0x26460a};class u extends _0x19eb44{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xb8447b,j,_0x18cc44];}constructor(_0x117f1d){super(_0x117f1d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x314d5c=_0x2d3c1e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x314d5c},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x48c901=this['repository']['getRevision'](0x0),_0x16a940=_0x48c901&&null===_0x48c901['creator']?_0x48c901:null;if(this['_continueCurrentRevision']=!!_0x16a940&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x302d7a=this['_source']['getCurrentRevisionId'](),_0x3ec4cc=this['repository']['getRevision'](_0x302d7a);if(_0x3ec4cc)this['_startingVersion']=_0x3ec4cc['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x977e20=this['_source']['history']['_operations']['find'](_0x47ccf4=>!_0x47ccf4['_isInit']),_0x557a64=_0x977e20?_0x977e20['baseVersion']:this['_source']['history']['version'];_0x48c901?(_0x48c901['toVersion']<_0x557a64&&_0x48c901['_update']({'toVersion':_0x557a64}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x16a940['id'],this['_startingVersion']=_0x16a940['fromVersion']):(this['_startingVersion']=_0x48c901['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x557a64,this['_continueCurrentRevision']=!0x1);}}else _0x16a940&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x16a940['toVersion'],this['editor']['model']['document']['history']['version']),_0x16a940['fromVersion']===_0x16a940['toVersion']?(0x0!==_0x16a940['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x16a940['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x16a940['id'],this['_startingVersion']=_0x16a940['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',_0x55fd81=>!_0x55fd81),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2f87cc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5413e8;for(const _0x52f1a2 in _0x2f87cc){const _0x45c8d0=_0x52f1a2,_0x1898d8=_0x2f87cc[_0x45c8d0];if('revisionHistoryLicenseKeyValid'==_0x1898d8||'revisionHistoryLicenseKeyInvalid'==_0x1898d8||'revisionHistoryLicenseKeyExpired'==_0x1898d8||'revisionHistoryLicenseKeyDomainLimit'==_0x1898d8||'revisionHistoryLicenseKeyNotAllowed'==_0x1898d8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1898d8||'revisionHistoryLicenseKeyTrialLimit'==_0x1898d8||'revisionHistoryLicenseKeyUsageLimit'==_0x1898d8){delete _0x2f87cc[_0x45c8d0],_0x5413e8=_0x1898d8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5413e8&&_0x2f87cc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5413e8&&_0x2f87cc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5413e8&&_0x2f87cc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5413e8&&_0x2f87cc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5413e8&&_0x2f87cc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5413e8&&_0x2f87cc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5413e8&&_0x2f87cc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x56b9fb=this['repository']['getRevision'](0x0),_0x34d39e=await this['getRevisionDocumentData'](_0x56b9fb),_0x2bcff3=await this['getRevisionRootsAttributes'](_0x56b9fb);this['_replaceEditorDataWithRevisionData'](_0x34d39e,_0x2bcff3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x25f910){this['_source']=_0x25f910;}async['update'](){const _0x3f2c37=await this['_source']['getLatestVersion']();if(_0x3f2c37>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5d95f0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3f2c37});_0x5d95f0['authors']=_0x5d95f0['authorsIds']['map'](_0x36d692=>this['editor']['plugins']['get']('Users')['getUser'](_0x36d692)),this['currentRevision']['_update'](_0x5d95f0);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0xe5c643={},_0x112cf3=null){const _0x1236a1=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x112cf3>this['currentRevision']['toVersion']&&(_0x112cf3=null),null===_0x112cf3&&(_0x112cf3=await this['_source']['getLatestVersion']());const _0x17374c=this['_getFromVersion'](_0x112cf3),_0x209782=this['buildRevisionData']({'from':_0x17374c,'to':_0x112cf3});if(this['currentRevision']['toVersion']<_0x112cf3){const _0x42151e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x112cf3,'to':_0x112cf3});_0x42151e['authors']=[],_0x42151e['authorsIds']=[],_0x42151e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x42151e,!0x0),delete _0x42151e['authors'],_0x1236a1['push'](_0x42151e);}_0xe5c643['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xe5c643['name']=_0xe5c643['name']||null,_0xe5c643['id']=_0xe5c643['id']||_0x2d3c1e(),_0xe5c643={..._0xe5c643,..._0x209782};const _0x40f44f=this['addRevisionData'](_0xe5c643);_0x1236a1['push'](_0xe5c643);const _0x8d75f9=this['repository']['getIndex'](_0x40f44f);if(0x0!==_0x8d75f9){const _0x4ef281=this['repository']['getRevision'](_0x8d75f9-0x1);if(_0x4ef281['fromVersion']!==_0x112cf3){const _0x58b452=this['_revisionDataBuilder']['getData'](_0x112cf3,_0x4ef281['toVersion']),_0x41dce8={'id':_0x4ef281['id'],'diffData':_0x58b452['diffData'],'authorsIds':_0x58b452['authorsIds'],'authors':_0x58b452['authorsIds']['map'](_0x4a3cb3=>this['editor']['plugins']['get']('Users')['getUser'](_0x4a3cb3)),'fromVersion':_0x112cf3};_0x4ef281===this['currentRevision']&&(_0x41dce8['createdAt']=new Date(_0xe5c643['createdAt']['getTime']()+0xa)),_0x4ef281['_update'](_0x41dce8,!0x0),delete _0x41dce8['authors'],_0x1236a1['push'](_0x41dce8);}}if(this['adapter']){for(const _0xa8989d of _0x1236a1)this['_bufferUpdate'](_0xa8989d['id'],_0xa8989d,!0x0);this['sendBufferedUpdates']();}return _0x40f44f;}['addRevisionData'](_0x4d7b4f){const _0x570b65=this['repository']['createRevision'](_0x4d7b4f);return this['adapter']&&_0x570b65['on']('_update',(_0x471382,_0x373f23,_0x59fd8d)=>{_0x59fd8d||(this['_bufferUpdate'](_0x373f23['id'],_0x373f23,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x570b65,this['_findInsertionIndex'](_0x570b65)),_0x570b65;}async['getRevisionDocumentData'](_0x4decb7){await this['_loadRevisionData'](_0x4decb7);const _0x79c15d={};for(const _0x1addf5 in _0x4decb7['diffData']){if(_0x4decb7['diffData'][_0x1addf5]['attachChange']&&!_0x4decb7['diffData'][_0x1addf5]['attachChange']['isAttached'])continue;const _0x1f7985=this['_removeRevisionMarkers'](JSON['parse'](_0x4decb7['diffData'][_0x1addf5]['insertions'])),_0x52e7d2=this['editor']['editing']['view']['document'],_0x127a41=new _0x4daa75(_0x52e7d2,_0x1f7985['map'](_0x226e78=>P(_0x226e78,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x79c15d[_0x1addf5]=this['editor']['data']['processor']['toData'](_0x127a41),this['editor']['data']['processor']['useFillerType']('default');}return _0x79c15d;}async['getRevisionRootsAttributes'](_0x56ba28){await this['_loadRevisionData'](_0x56ba28);const _0x3432fe={};for(const _0x35078e in _0x56ba28['diffData'])_0x56ba28['diffData'][_0x35078e]['attachChange']&&!_0x56ba28['diffData'][_0x35078e]['attachChange']['isAttached']||(_0x3432fe[_0x35078e]=_0x56ba28['diffData'][_0x35078e]['attributesAfter']||{});return _0x3432fe;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2397e8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2d3bc6=0x0;_0x2d3bc6<_0x2397e8['length'];_0x2d3bc6++){const _0x41deed=_0x2397e8[_0x2d3bc6];let _0x23e827=!0x1;for(const _0x53853a of Object['keys'](_0x41deed))void 0x0===_0x41deed[_0x53853a]?delete _0x41deed[_0x53853a]:'id'!==_0x53853a&&(_0x23e827=!0x0);_0x23e827||(_0x2397e8[_0x2d3bc6]=null);}if(_0x2397e8=_0x2397e8['filter'](_0x11b73d=>null!==_0x11b73d),!_0x2397e8['length'])return;for(let _0x2aed67=0x0;_0x2aed67<_0x2397e8['length'];_0x2aed67++){const _0x25fe0b=_0x2397e8[_0x2aed67];void 0x0!==_0x25fe0b['fromVersion']&&void 0x0===_0x25fe0b['toVersion']&&(_0x25fe0b['toVersion']=this['repository']['getRevision'](_0x25fe0b['id'])['toVersion']),void 0x0!==_0x25fe0b['toVersion']&&void 0x0===_0x25fe0b['fromVersion']&&(_0x25fe0b['fromVersion']=this['repository']['getRevision'](_0x25fe0b['id'])['fromVersion']);}const _0x479ba8=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2397e8,_0x479ba8)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x21ff37=>{if(_0x21ff37){for(const _0x281a05 of _0x21ff37)this['setRevisionData']({'id':_0x281a05['id'],'createdAt':_0x281a05['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1db502,_0x33ffae){let _0x21c154=this['editor']['config']['get']('initialData'),_0x20028c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x21c154){_0x21c154={};for(const _0x21de3f of this['editor']['model']['document']['getRootNames']())_0x21c154[_0x21de3f]='';}if('string'==typeof _0x21c154&&(_0x21c154={'main':_0x21c154}),void 0x0===_0x20028c){_0x20028c={};for(const _0x3a52a6 of this['editor']['model']['document']['getRootNames']())_0x20028c[_0x3a52a6]={};}let _0x457581=!0x1;const _0x3758af=Object['keys'](_0x21c154),_0x31efe9=Object['keys'](_0x1db502);for(const _0x37fbb5 of _0x3758af){if(_0x21c154[_0x37fbb5]!==_0x1db502[_0x37fbb5]&&''!==_0x21c154[_0x37fbb5]['trim']()){_0x457581=!0x0;break;}if(!_0x1cfb9a(_0x20028c[_0x37fbb5],_0x33ffae[_0x37fbb5])&&Object['keys'](_0x20028c[_0x37fbb5])['length']>0x0){_0x457581=!0x0;break;}}_0x457581||(_0x457581=_0x31efe9['some'](_0x134988=>!this['editor']['model']['document']['getRoot'](_0x134988))),_0x457581&&_0x565cf3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x21c154,'editorRootsAttributes':_0x20028c,'revisionData':_0x1db502,'revisionRootsAttributes':_0x33ffae}),this['editor']['config']['set']('initialData',_0x1db502),this['editor']['config']['set']('rootsAttributes',_0x33ffae);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x35cbd0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x35cbd0['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4f4ba2){const _0x2ff545=this['repository']['getRevisions']();_0x2ff545['reverse']();let _0x26f835=0x0;for(;_0x26f835<_0x2ff545['length'];){const _0x3471a3=_0x2ff545[_0x26f835];if(_0x3471a3===this['currentRevision']){_0x26f835++;continue;}if(_0x3471a3['id']===this['_initialRevisionId'])break;const _0x4ae8d0=_0x4f4ba2['toVersion']-_0x3471a3['toVersion']||_0x4f4ba2['fromVersion']-_0x3471a3['fromVersion'];if(_0x4ae8d0>0x0)break;if(_0x4ae8d0<0x0)_0x26f835++;else{if(!_0x4f4ba2['creator']&&_0x3471a3['creator'])break;if(_0x3471a3['creator']||!_0x4f4ba2['creator']){if(_0x4f4ba2['createdAt']>_0x3471a3['createdAt'])break;_0x26f835++;}else _0x26f835++;}}return _0x26f835;}['setRevisionData'](_0xed3550){const _0x50a237=this['repository']['getRevision'](_0xed3550['id']);if(_0xed3550['createdAt']&&(_0xed3550['createdAt']=new Date(_0xed3550['createdAt'])),_0xed3550['authorsIds']){const _0x364306=this['editor']['plugins']['get']('Users');_0xed3550['authors']=_0xed3550['authorsIds']['map'](_0x4fa63e=>_0x364306['getUser'](_0x4fa63e));}_0x50a237['_update'](_0xed3550,!0x0);}['buildRevisionData']({revision:_0x4d812f=null,from:_0x2946ed=null,to:_0x3606e9=null}){_0x2946ed=null!==_0x2946ed?_0x2946ed:_0x4d812f['fromVersion'],_0x3606e9=null!==_0x3606e9?_0x3606e9:_0x4d812f['toVersion'];const _0x5bacd6=this['_revisionDataBuilder']['getData'](_0x2946ed,_0x3606e9),_0x127529={'diffData':_0x5bacd6['diffData'],'authorsIds':_0x5bacd6['authorsIds'],'fromVersion':_0x2946ed,'toVersion':_0x3606e9};if(!_0x4d812f||_0x3606e9!==_0x4d812f['toVersion']){const _0x16ec04=_0x3606e9-0x1,_0x291acb=this['_source']['history']['getOperation'](_0x16ec04);_0x127529['createdAt']=_0x291acb&&_0x291acb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2946ed===this['_loadedStateData']['fromVersion']){for(const _0x5996e6 of this['_loadedStateData']['authors'])_0x127529['authorsIds']['includes'](_0x5996e6['id'])||_0x127529['authorsIds']['push'](_0x5996e6['id']);}return _0x127529;}['_loadRevisionData'](_0x394c1f){if(!_0x394c1f||_0x394c1f['diffData'])return Promise['resolve']();{const _0x305e93=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x305e93,'revisionId':_0x394c1f['id']})['then'](_0x33168d=>{_0x394c1f['diffData']=_0x33168d['diffData'];});}}['_bufferUpdate'](_0x8b898a,_0x3717b8,_0x17e452){if(this['_bufferedUpdates']['has'](_0x8b898a)){const _0x137780=this['_bufferedUpdates']['get'](_0x8b898a);_0x3717b8=_0x17e452?{..._0x137780,..._0x3717b8}:{..._0x3717b8,..._0x137780};}this['_bufferedUpdates']['set'](_0x8b898a,_0x3717b8);}['_getFromVersion'](_0x44267f){const _0x5a16e5=this['repository']['getRevisions']();_0x5a16e5['reverse'](),_0x5a16e5['shift']();const _0x42019a=_0x5a16e5['find'](_0x7f7662=>_0x7f7662['toVersion']<=_0x44267f)['toVersion'];return _0x42019a<this['_startingVersion']?this['_startingVersion']:_0x42019a;}['_createInitialRevision'](_0x3d8a77){const _0x88c1f1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x88c1f1)this['_initialRevisionId']=_0x88c1f1['id'];else{const _0x3f8ff3=!this['editor']['model']['document']['roots']['find'](_0x250f4e=>this['editor']['model']['hasContent'](_0x250f4e)),_0x838614=this['editor']['plugins']['get']('Users')['me']['id'],_0x340267=m(this['editor']['locale'],_0x3f8ff3?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d8a77,'to':_0x3d8a77,'id':this['_initialRevisionId'],'name':_0x340267,'creatorId':_0x838614});}}['_createCurrentRevision'](_0x170481){const _0x214a90=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x214a90),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x170481,'to':_0x170481,'id':_0x214a90,'name':'','creatorId':null}));}['_makeRevision']({name:_0x12a8fe,from:_0x682842,to:_0x294f91,creatorId:_0x532710,id:_0x48c31d}){const _0xe9810f=this['buildRevisionData']({'from':_0x682842,'to':_0x294f91});_0xe9810f['name']=_0x12a8fe,_0xe9810f['creatorId']=_0x532710,_0xe9810f['id']=_0x48c31d;const _0x2c79a1=this['addRevisionData'](_0xe9810f);return this['adapter']&&this['_bufferUpdate'](_0xe9810f['id'],_0xe9810f,!0x0),_0x2c79a1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x293173){return(_0x293173=_0x293173['filter'](_0x2cbf50=>!_0x2cbf50['name']||'revision-start'!==_0x2cbf50['name']&&'revision-end'!==_0x2cbf50['name']))['forEach'](_0x5647c8=>{'string'!=typeof _0x5647c8&&(_0x5647c8['children']=this['_removeRevisionMarkers'](_0x5647c8['children']),_0x5647c8['attributes']=_0x5647c8['attributes']['filter'](_0x3aec46=>!_0x3aec46[0x0]['startsWith']('data-revision-')));}),_0x293173;}}function P(_0x2ed2d5,_0x49beef){const _0x48147f=_0x49beef['editing']['view']['document'];if('string'==typeof _0x2ed2d5)return new _0x14d4f7(_0x48147f,_0x2ed2d5);{const _0x586ede=_0x2ed2d5['children']['map'](_0x15e916=>P(_0x15e916,_0x49beef));return new(E[_0x2ed2d5['type']]||_0x473b22)(_0x48147f,_0x2ed2d5['name'],_0x2ed2d5['attributes'],_0x586ede);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x9adf4d){this['editor']=_0x9adf4d,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'](_0x241257){this['source']=_0x241257;const _0x1c1fbc=new Map(),_0x123a1a=new Map(),_0x563363=this['editor']['model']['document']['roots']['map'](_0x4e15bc=>_0x4e15bc['rootName']);for(const _0x4b0ec8 of _0x563363){const _0x4f2978=this['editor']['model']['document']['getRoot'](_0x4b0ec8),_0x43083a=T(_0x4f2978);_0x1c1fbc['set'](_0x4b0ec8,_0x43083a),_0x123a1a['set'](_0x4b0ec8,Object['fromEntries'](_0x4f2978['getAttributes']()));}const _0x17890f=Array['from'](this['editor']['model']['markers'])['map'](_0xa4f5f7=>[_0xa4f5f7['name'],_0xa4f5f7['getRange']()]),_0x3097ca=this['source']['version'];this['_saveMetaData'](_0x3097ca,_0x1c1fbc,_0x17890f,_0x123a1a),this['_startingRevisionId']=this['_revisionId'];const _0x2f2040=new Map(),_0x9a073d=new Map();for(const _0x13f022 of _0x563363){const _0xecd7f=F(_0x13f022);_0x2f2040['set'](_0x13f022,_0xecd7f),_0x9a073d['set'](_0x13f022,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2f2040,[],_0x9a073d);}['getData'](_0x2e9171,_0x3dfeff){if(this['_lastFrom']===_0x2e9171&&this['_lastTo']<=_0x3dfeff)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3dfeff,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e9171)){const _0x5394d9=this['_getPreviousFrom'](_0x2e9171);this['_calculateMetaData'](_0x5394d9,_0x2e9171,!0x1);}this['_calculateMetaData'](_0x2e9171,_0x3dfeff,!0x0);}return this['_lastFrom']=_0x2e9171,this['_lastTo']=_0x3dfeff,this['_getState']();}['loadState'](_0x5dbffc){this['_reset'](),this['_lastFrom']=_0x5dbffc['fromVersion'],this['_lastTo']=_0x5dbffc['toVersion'];for(const _0x5b06d8 in _0x5dbffc['diffData']){const _0x3d161d=_0x5dbffc['diffData'][_0x5b06d8]['attachChange'],_0x13858a=_0x54079b(_0x5dbffc['diffData'][_0x5b06d8]['attributesBefore'])||{},_0x5b2e7d=this['_makeModelFromViewString'](_0x5dbffc['diffData'][_0x5b06d8]['deletions']);_0x5b2e7d['rootName']=_0x5b06d8,_0x5b2e7d['_isAttached']=!_0x3d161d||!_0x3d161d['isAttached'],_0x5b2e7d['isAttached']=()=>_0x5b2e7d['_isAttached'],this['_baseRoots']['set'](_0x5b06d8,_0x5b2e7d),this['_baseRootsAttributes']['set'](_0x5b06d8,_0x13858a),_0x3d161d&&this['_touchedRoots']['set'](_0x5b06d8,_0x3d161d);const _0x2a8d5c=this['_makeIdsRoot'](_0x5b2e7d);this['_baseIdsRoots']['set'](_0x5b06d8,_0x2a8d5c);for(const [_0x56540d,_0x13a44b]of _0x5b2e7d['markers']){if(!_0x56540d['startsWith']('revision:'))continue;const _0xf1c3a4=_0x56540d['split'](':')[0x2];for(const _0x4678df of _0x13a44b['getWalker']({'singleCharacters':!0x0})){const _0xb070e6=this['_getVidAttributeName'](_0x4678df),_0x242de4='elementEnd'==_0x4678df['type']?_0x4678df['previousPosition']['path']['slice'](0x0,-0x1):_0x4678df['previousPosition']['path'],_0x5c7cde=_0x2a8d5c['getNodeByPath'](_0x242de4)['getAttribute'](_0xb070e6);this['_touched']['set'](_0x5c7cde,{'userId':_0xf1c3a4});}}}this['_startingRevisionId']=this['_revisionId'];const _0x242bbb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2fca0e=>!this['_touched']['has'](_0x2fca0e));let _0x3a9ec3=0x0;const _0x41546d=new Map();for(const _0x2105c7 in _0x5dbffc['diffData']){const _0x353acb=_0x5dbffc['diffData'][_0x2105c7]['attachChange'],_0x4abb93=_0x54079b(_0x5dbffc['diffData'][_0x2105c7]['attributesAfter'])||{},_0x1825a1=this['_makeModelFromViewString'](_0x5dbffc['diffData'][_0x2105c7]['insertions']);_0x1825a1['rootName']=_0x2105c7,_0x1825a1['_isAttached']=!_0x353acb||_0x353acb['isAttached'],_0x1825a1['isAttached']=()=>_0x1825a1['_isAttached'],this['_diffRoots']['set'](_0x2105c7,_0x1825a1),this['_diffRootsAttributes']['set'](_0x2105c7,_0x4abb93);const _0x515dfa=this['_makeIdsRoot'](_0x1825a1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2105c7,_0x515dfa),_0x41546d['set'](_0x2105c7,_0x1825a1['isAttached']()?_0x4abb93:{});for(const [_0x46edca,_0xb15dc4]of _0x1825a1['markers']){if(!_0x46edca['startsWith']('revision:'))continue;const _0x286386=_0x46edca['split'](':')[0x2];for(const _0x16d32b of _0xb15dc4['getWalker']({'singleCharacters':!0x0})){const _0x58296e=this['_getVidAttributeName'](_0x16d32b),_0xed5225=this['_revisionId']++,_0x1e4e8f='elementEnd'==_0x16d32b['type']?_0x16d32b['previousPosition']['path']['slice'](0x0,-0x1):_0x16d32b['previousPosition']['path'];_0x515dfa['getNodeByPath'](_0x1e4e8f)['_setAttribute'](_0x58296e,_0xed5225),this['_touched']['set'](_0xed5225,{'userId':_0x286386});}}for(const _0x243dd0 of this['editor']['model']['createRangeIn'](_0x1825a1)['getWalker']({'singleCharacters':!0x0})){const _0x4bba4e=this['_getVidAttributeName'](_0x243dd0),_0x451f4d='elementEnd'==_0x243dd0['type']?_0x243dd0['previousPosition']['path']['slice'](0x0,-0x1):_0x243dd0['previousPosition']['path'],_0x174bfc=_0x515dfa['getNodeByPath'](_0x451f4d);_0x174bfc['getAttribute'](_0x4bba4e)>0x0||_0x174bfc['_setAttribute'](_0x4bba4e,_0x242bbb[_0x3a9ec3++]);}for(const [_0x411e63,_0x259245]of _0x1825a1['markers'])_0x411e63['startsWith']('revision:')||this['_markers']['set'](_0x411e63,_0x259245);}const _0x2dff2a=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2dff2a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2dff2a,0x1));const _0x5d68b3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5d68b3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5d68b3,0x1));const _0x3e72ad=Array['from'](this['_diffRoots'])['map'](([_0x50bf30,_0x45fa8f])=>[_0x50bf30,T(_0x45fa8f)]);this['_saveMetaData'](this['_lastTo'],_0x3e72ad,this['_markers'],_0x41546d);}['_makeModelFromViewString'](_0x2206ff){const _0x40c8a1=JSON['parse'](_0x2206ff),_0x292efa=this['editor']['editing']['view']['document'],_0x13489b=new _0x4daa75(_0x292efa,_0x40c8a1['map'](_0x1312d4=>P(_0x1312d4,this['editor'])));return this['editor']['data']['toModel'](_0x13489b);}['_saveMetaData'](_0x3c8d5f,_0x57bdfe,_0x29318c,_0x1c6c35){const _0x11f7b5=new Map(_0x57bdfe),_0x1e0fb1=new Map(_0x54079b(_0x1c6c35)),_0x54f5b9=new Map();for(const [_0x51f847,_0x15a0c7]of _0x29318c)_0x54f5b9['set'](_0x51f847,{'start':_0x15a0c7['start']['clone'](),'end':_0x15a0c7['end']['clone'](),'rootName':_0x15a0c7['root']['rootName']});this['_savedMetaData']['set'](_0x3c8d5f,{'roots':_0x11f7b5,'markers':_0x54f5b9,'rootsAttributes':_0x1e0fb1});}['_removeMetaData'](_0x385aba){this['_savedMetaData']['delete'](_0x385aba);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x10f30b,_0x3c4407=null){let _0x52651e=null;_0x10f30b['is']('documentFragment')||(_0x52651e=new ut(_0x10f30b['name'],{'vid_start':null===_0x3c4407?this['_revisionId']++:_0x3c4407++}));const _0x2b2479=[];for(const _0x39ec27 of _0x10f30b['getChildren']())if(_0x39ec27['is']('element')){_0x2b2479['push'](this['_makeIdsRoot'](_0x39ec27,_0x3c4407));const _0x42ebff=_0x2b2479[_0x2b2479['length']-0x1];null!==_0x3c4407&&(_0x3c4407=_0x42ebff['is']('element','$text')?_0x42ebff['getAttribute']('vid')+0x1:_0x42ebff['getAttribute']('vid_end')+0x1);}else{for(let _0x9a62f0=0x0;_0x9a62f0<_0x39ec27['offsetSize'];_0x9a62f0++)_0x2b2479['push'](new ut('$text',{'vid':null===_0x3c4407?this['_revisionId']++:_0x3c4407++}));}if(_0x10f30b['is']('documentFragment')){const _0x50512=F(_0x10f30b['rootName']);return _0x50512['_insertChild'](0x0,_0x2b2479),_0x50512;}return _0x52651e['_setAttribute']('vid_end',null===_0x3c4407?this['_revisionId']++:_0x3c4407++),_0x52651e['_insertChild'](0x0,_0x2b2479),_0x52651e;}['_calculateMetaData'](_0x24f79d,_0x44d8a7,_0x2f417b){this['_reset']();const {roots:_0x46de2a,markers:_0xc6c9ed,rootsAttributes:_0x414d52}=this['_savedMetaData']['get'](_0x24f79d);this['_baseRoots']=new Map(_0x46de2a),this['_baseRootsAttributes']=new Map(_0x54079b(_0x414d52));for(const [_0x507260,_0x3782b7]of this['_baseRoots'])if('$graveyard'!==_0x507260&&(this['_diffRoots']['set'](_0x507260,T(_0x3782b7)),this['_diffRootsAttributes']=new Map(_0x54079b(_0x414d52)),_0x2f417b)){const _0x5a9a84=this['_revisionId'];this['_idsRoots']['set'](_0x507260,this['_makeIdsRoot'](_0x3782b7)),this['_baseIdsRoots']['set'](_0x507260,this['_makeIdsRoot'](_0x3782b7,_0x5a9a84));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2f417b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5b9f7d,_0x32da4f]of _0xc6c9ed){const _0x362df8=this['_baseRoots']['get'](_0x32da4f['rootName']),_0x19116b=this['_diffRoots']['get'](_0x32da4f['rootName']),_0x2227e1=new ft(this['_fixPosition'](_0x32da4f['start'],_0x362df8),this['_fixPosition'](_0x32da4f['end'],_0x362df8)),_0x300c5f=this['_fixRange'](_0x2227e1,_0x19116b);_0x362df8['markers']['set'](_0x5b9f7d,_0x2227e1),this['_markers']['set'](_0x5b9f7d,_0x300c5f);}this['_applyOperations'](_0x24f79d,_0x44d8a7,_0x2f417b);}['_applyOperations'](_0x1d65cc,_0x23df37,_0x278f7f){for(const _0x1e8060 of this['source']['getOperations'](_0x1d65cc,_0x23df37))this['_handleOperation'](_0x1e8060,_0x278f7f);for(const _0x33d028 of this['_diffRoots']['values']())_0x33d028['markers']['clear']();for(const [_0x14a20e,_0x42690a]of this['_markers']){this['_diffRoots']['get'](_0x42690a['root']['rootName'])['markers']['set'](_0x14a20e,_0x42690a['clone']());}const _0x2e2e8d=new Map(),_0x431826=new Map();for(const [_0x3d0fca,_0x26b132]of this['_diffRoots'])_0x2e2e8d['set'](_0x3d0fca,T(_0x26b132)),_0x431826['set'](_0x3d0fca,this['_diffRootsAttributes']['get'](_0x3d0fca));this['_saveMetaData'](_0x23df37,_0x2e2e8d,this['_markers'],_0x431826);}['_getPreviousFrom'](_0x5bb6f0){const _0x5f17ac=Array['from'](this['_savedMetaData']['keys']());_0x5f17ac['sort']((_0x48dcb2,_0x1ed137)=>_0x48dcb2-_0x1ed137),_0x5f17ac['reverse']();for(const _0x5c05bf of _0x5f17ac)if(_0x5c05bf<_0x5bb6f0)return _0x5c05bf;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x206058,_0x559961){const _0x51f434=Array['from'](_0x559961['markers'])['map'](([_0x291ede,_0x5aaccf])=>[_0x291ede,this['_fixRange'](_0x5aaccf,_0x206058)]);_0x206058['markers']=new Map(_0x51f434);}['_transformMarkers'](_0x436f36){for(const _0x3e58cd of this['_markers']['values']()){const _0x22abac=_0x3e58cd['getTransformedByOperation'](_0x436f36),_0x26e1a5=ft['_createFromRanges'](_0x22abac);_0x3e58cd['start']=_0x26e1a5['start'],_0x3e58cd['end']=_0x26e1a5['end'];}}['_handleOperation'](_0x50cbaf,_0x8f401a){if('addRoot'!=_0x50cbaf['type']&&'detachRoot'!=_0x50cbaf['type']){if('insert'==_0x50cbaf['type']){const _0x380ea2=_0x50cbaf['position']['root']['rootName'];this['_diffRoots']['has'](_0x380ea2)||(this['_diffRoots']['set'](_0x380ea2,F(_0x380ea2,!0x0)),this['_diffRootsAttributes']['set'](_0x380ea2,{}),_0x8f401a&&this['_idsRoots']['set'](_0x380ea2,F(_0x380ea2,!0x0)));}else{if('addRootAttribute'==_0x50cbaf['type']||'removeRootAttribute'==_0x50cbaf['type']||'changeRootAttribute'==_0x50cbaf['type'])return void this['_handleRootAttributeOperation'](_0x50cbaf);'marker'==_0x50cbaf['type']&&this['_handleMarkerOperation'](_0x50cbaf);}if('marker'!==_0x50cbaf['type']){const _0x573d07=this['_cloneOperation'](_0x50cbaf,this['_diffRoots']);_0x573d07['_execute'](),this['_transformMarkers'](_0x573d07);}if(_0x8f401a)switch(_0x50cbaf['type']){case'insert':this['_handleInsertOperation'](_0x50cbaf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50cbaf);break;case'merge':this['_handleMergeOperation'](_0x50cbaf);break;case'split':this['_handleSplitOperation'](_0x50cbaf);}}else this['_handleRootOperation'](_0x50cbaf,_0x8f401a);}['_cloneOperation'](_0xc83aeb,_0x41a62e){const _0x43b407=_0xc83aeb['clone']();return _0x43b407['_authorId']=_0xc83aeb['_authorId'],this['_fixOperation'](_0x43b407,_0x41a62e),_0x43b407;}['_getBaseVids'](_0x2eaa62){return _0x2eaa62['map'](_0x7dd8f9=>{const _0x396ed0=this['_getVidAttributeName'](_0x7dd8f9);return Number(_0x7dd8f9['item']['getAttribute'](_0x396ed0));});}['_generateTape'](_0x7e4a8a,_0x506706){if(_0x7e4a8a['is']('element','$text'))_0x506706['push']({'item':_0x7e4a8a,'type':'text'});else{_0x7e4a8a['is']('element')&&_0x506706['push']({'item':_0x7e4a8a,'type':'elementStart'});for(const _0x6ecd5b of _0x7e4a8a['getChildren']())this['_generateTape'](_0x6ecd5b,_0x506706);_0x7e4a8a['is']('element')&&_0x506706['push']({'item':_0x7e4a8a,'type':'elementEnd'});}return _0x506706;}['_getState'](){const _0xe6845=new Map(this['_touched']),_0x1c1ae4=new Map(_0xe6845),_0x393343=new Map(),_0x30f496={'insertions':{},'deletions':{}},_0x4cfa07={'insertions':{},'deletions':{}},_0x5ea98a=new Map(),_0x36097c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x36097c['delete']('$graveyard');for(const _0x1f63f4 of _0x36097c){const _0x1fa884=this['_diffRoots']['get'](_0x1f63f4)||F(_0x1f63f4,!0x1),_0x59ff33=this['_baseRoots']['get'](_0x1f63f4)||F(_0x1f63f4,!0x1);_0x1fa884['isAttached']()||_0x59ff33['isAttached']()?(_0x30f496['insertions'][_0x1f63f4]=T(_0x1fa884),_0x30f496['deletions'][_0x1f63f4]=T(_0x59ff33),this['_copyMarkers'](_0x30f496['deletions'][_0x1f63f4],_0x59ff33),this['_copyMarkers'](_0x30f496['insertions'][_0x1f63f4],_0x1fa884),_0x4cfa07['insertions'][_0x1f63f4]=this['_generateTape'](this['_idsRoots']['get'](_0x1f63f4),[]),_0x4cfa07['deletions'][_0x1f63f4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1f63f4)||F(_0x1f63f4,!0x1),[])):_0x36097c['delete'](_0x1f63f4);}for(const _0x1f57ad of _0x36097c){const _0x26f654=_0x4cfa07['insertions'][_0x1f57ad];for(const _0x14e2f4 of _0x26f654){const _0x39e851=this['_getVidAttributeName'](_0x14e2f4),_0x279687=_0x14e2f4['item']['getAttribute'](_0x39e851);_0x1c1ae4['delete'](_0x279687),_0x279687>=this['_startingRevisionId']&&_0x393343['set'](_0x279687,_0xe6845['get'](_0x279687));}}for(const _0x676d14 of _0x36097c){const _0x25f43e=_0x4cfa07['insertions'][_0x676d14],_0xeb9493=this['_getBaseVids'](_0x4cfa07['deletions'][_0x676d14]);let _0x48586e=0x0;for(const _0x11d2ae of _0x25f43e){const _0x4a3ea1=this['_getVidAttributeName'](_0x11d2ae),_0x45fe3d=_0x11d2ae['item']['getAttribute'](_0x4a3ea1);if(!_0x393343['has'](_0x45fe3d)&&!_0x5ea98a['has'](_0x45fe3d)){if(_0x1c1ae4['has'](_0x45fe3d))_0x48586e++;else{if(_0x45fe3d!=_0xeb9493[_0x48586e]){const _0x461b74=_0xe6845['get'](_0x45fe3d)||_0xe6845['get'](_0xeb9493[_0x48586e]);for(;_0x45fe3d!=_0xeb9493[_0x48586e];)_0x1c1ae4['has'](_0xeb9493[_0x48586e])||(_0x5ea98a['set'](_0xeb9493[_0x48586e],_0x461b74),_0xe6845['set'](_0xeb9493[_0x48586e],_0x461b74)),_0x48586e++;}_0x48586e++;}}}}for(const _0x1f98c5 of _0x36097c){const _0x328fee=_0x4cfa07['insertions'][_0x1f98c5];for(const _0x2801e1 of _0x328fee){const _0x59401b=this['_getVidAttributeName'](_0x2801e1),_0x5113b1=_0x2801e1['item']['getAttribute'](_0x59401b);if(_0x5ea98a['has'](_0x5113b1)){const _0x3efc0f=_0x5ea98a['get'](_0x5113b1);_0x1c1ae4['has'](_0x5113b1)||_0x1c1ae4['set'](_0x5113b1,{..._0x3efc0f}),_0x393343['set'](_0x5113b1,{..._0x3efc0f});}}}for(const _0xed0f93 of _0x1c1ae4['keys']())_0xed0f93>=this['_startingRevisionId']&&_0x1c1ae4['delete'](_0xed0f93);const _0x1aed5d=new Map();for(const _0xa87b22 of _0x36097c){let _0xaba714=_0x4cfa07['insertions'][_0xa87b22];for(const _0x5831b4 of _0xaba714)if(_0x5831b4['item']['is']('element','tableCell')){const _0x3eaf73=this['_getVidAttributeName'](_0x5831b4),_0x3f8df9=_0x5831b4['item']['getAttribute'](_0x3eaf73);if(_0x393343['has'](_0x3f8df9)){const _0x3bd862=_0x5831b4['item']['parent']['parent']['getAttribute']('vid_start'),_0x3d0c1c=_0x1aed5d['get'](_0x3bd862)||new Set();_0x3d0c1c['add'](_0x393343['get'](_0x3f8df9)['userId']),_0x1aed5d['set'](_0x3bd862,_0x3d0c1c);}}_0xaba714=_0x4cfa07['deletions'][_0xa87b22];for(const _0x443480 of _0xaba714)if(_0x443480['item']['is']('element','tableCell')){const _0x21169a=this['_getVidAttributeName'](_0x443480),_0x368bb5=_0x443480['item']['getAttribute'](_0x21169a);if(_0x1c1ae4['has'](_0x368bb5)){const _0x5ebadd=_0x443480['item']['parent']['parent']['getAttribute']('vid_start'),_0x5bc7b9=_0x1aed5d['get'](_0x5ebadd)||new Set();_0x5bc7b9['add'](_0x1c1ae4['get'](_0x368bb5)['userId']),_0x1aed5d['set'](_0x5ebadd,_0x5bc7b9);}}for(const _0x2240a5 of _0x1aed5d['keys']())(_0x393343['has'](_0x2240a5)||_0x1c1ae4['has'](_0x2240a5))&&_0x1aed5d['delete'](_0x2240a5);}for(const _0x40eb9d of _0x36097c){const _0x2a1a9c=_0x4cfa07['insertions'][_0x40eb9d];let _0x5780b1=null,_0x1e358a=null;for(const _0x72547d of _0x2a1a9c){const _0x37a150=this['_getVidAttributeName'](_0x72547d),_0x29956e=_0x72547d['item']['getAttribute'](_0x37a150),_0x11dbff=_0x1aed5d['get'](_0x29956e);_0x11dbff&&'elementStart'==_0x72547d['type']&&(_0x5780b1=Array['from'](_0x11dbff)[0x0],_0x1e358a=_0x72547d['item']['getAttribute']('vid_end')),_0x5780b1&&(_0x1c1ae4['set'](_0x29956e,{'userId':_0x5780b1}),_0x393343['set'](_0x29956e,{'userId':_0x5780b1})),_0x29956e==_0x1e358a&&(_0x5780b1=null,_0x1e358a=null);}}const _0x5a35f6={},_0x6b3d75=new Set();for(const _0x1a01c1 of _0x36097c){const _0x27dd1b=_0x30f496['deletions'][_0x1a01c1],_0x6380f9=_0x30f496['insertions'][_0x1a01c1];for(const {userId:_0x3bf7a9}of this['_touchedMarkers']['values']())null!==_0x3bf7a9&&_0x6b3d75['add'](_0x3bf7a9);for(const {userId:_0x3d50b7}of this['_touchedRoots']['values']())null!==_0x3d50b7&&_0x6b3d75['add'](_0x3d50b7);this['_markChanges'](_0x6380f9,_0x4cfa07['insertions'][_0x1a01c1],_0x393343,'insertion',_0x6b3d75),this['_markChanges'](_0x27dd1b,_0x4cfa07['deletions'][_0x1a01c1],_0x1c1ae4,'deletion',_0x6b3d75),_0x5a35f6[_0x1a01c1]={'insertions':this['_prepareViewToSave'](_0x6380f9),'deletions':this['_prepareViewToSave'](_0x27dd1b),'attachChange':this['_touchedRoots']['get'](_0x1a01c1)||null,'attributesBefore':_0x54079b(this['_baseRootsAttributes']['get'](_0x1a01c1))||{},'attributesAfter':_0x54079b(this['_diffRootsAttributes']['get'](_0x1a01c1))};}return{'diffData':_0x5a35f6,'authorsIds':Array['from'](_0x6b3d75)};}['_processRootBeforeSave'](_0x484ed7){for(const [,_0x4310df]of _0x484ed7['markers']){const _0x2134ec=_0x4310df['start']['getAncestors']()['filter'](_0x2ef010=>'tableCell'==_0x2ef010['name']);for(const _0x6728be of _0x2134ec)0x1==_0x6728be['childCount']&&_0x6728be['getChild'](0x0)['is']('element','paragraph')&&_0x6728be['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3852f9){this['_processRootBeforeSave'](_0x3852f9);const _0x50d0a4=this['editor']['data']['toView'](_0x3852f9,{}),_0x4eaa4c=Array['from'](_0x50d0a4['getChildren']())['map'](_0x4f03c3=>this['_getViewJson'](_0x4f03c3));return JSON['stringify'](_0x4eaa4c);}['_getViewJson'](_0x39e0c8){if(_0x39e0c8['is']('$text'))return _0x39e0c8['data'];{const _0x308181=_0x39e0c8;return{'type':Object['keys'](E)['find'](_0x50a07f=>_0x39e0c8 instanceof E[_0x50a07f]),'name':_0x308181['name'],'attributes':Array['from'](_0x308181['getAttributes']()),'children':Array['from'](_0x308181['getChildren']())['map'](_0x5707f5=>this['_getViewJson'](_0x5707f5))};}}['_markChanges'](_0x1849d6,_0xfb4da9,_0x3a96fa,_0x1fd432,_0x511296){let _0x5d5d8b=null,_0x1738ea=null,_0x424bf3=0x0;const _0x10fb8b=this['editor']['model'];for(let _0x5a1f7b=0x0;_0x5a1f7b<_0xfb4da9['length'];_0x5a1f7b++){const _0x2a0247=this['_getVidAttributeName'](_0xfb4da9[_0x5a1f7b]),_0x1b3fa6=_0xfb4da9[_0x5a1f7b]['item']['getAttribute'](_0x2a0247),_0x4e34d0=_0x3a96fa['get'](_0x1b3fa6),_0x55f670=_0x5a1f7b==_0xfb4da9['length']-0x1;(!_0x5d5d8b&&_0x4e34d0&&(_0x5d5d8b=_0x4e34d0,_0x1738ea=_0xfb4da9[_0x5a1f7b]),_0x5d5d8b&&(!_0x4e34d0||_0x4e34d0['userId']!=_0x5d5d8b['userId']))&&(_0xe9fe43(_0x4e34d0,B(_0x1738ea,_0x1849d6,_0x10fb8b),B(_0xfb4da9[_0x5a1f7b],_0x1849d6,_0x10fb8b)),_0x5d5d8b=_0x4e34d0||null,_0x1738ea=_0x4e34d0?_0xfb4da9[_0x5a1f7b]:null),_0x5d5d8b&&_0x55f670&&_0xe9fe43(_0x4e34d0,B(_0x1738ea,_0x1849d6,_0x10fb8b),J(_0xfb4da9[_0x5a1f7b],_0x1849d6,_0x10fb8b));}function _0xe9fe43(_0x3a67b4,_0xea48e0,_0x4fa038){const _0x2985a0=_0x5d5d8b['userId'],_0x1ec1b2='revision:'+_0x1fd432+':'+_0x2985a0+':'+_0x424bf3++,_0x1b233b=_0x10fb8b['createRange'](_0xea48e0,_0x4fa038);_0x1849d6['markers']['set'](_0x1ec1b2,_0x1b233b),null!==_0x2985a0&&_0x511296['add'](_0x2985a0);}}['_getVidAttributeName'](_0x2b2565){switch(_0x2b2565['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x525c1d,_0x3f210d){_0x525c1d['baseVersion']=null;for(const _0x266dea in _0x525c1d){const _0x2501ec=_0x525c1d[_0x266dea];if(_0x2501ec instanceof vt){const _0x3d4e31=_0x3f210d['get'](_0x2501ec['root']['rootName']);_0x525c1d[_0x266dea]=this['_fixPosition'](_0x2501ec,_0x3d4e31);}if(_0x2501ec instanceof ft){const _0x25f925=_0x3f210d['get'](_0x2501ec['root']['rootName']);_0x525c1d[_0x266dea]=this['_fixRange'](_0x2501ec,_0x25f925);}'root'===_0x266dea&&(_0x525c1d['root']=_0x3f210d['get'](_0x525c1d['root']['rootName']));}}['_fixRange'](_0x42ce36,_0x3a569d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x42ce36['start'],_0x3a569d),this['_fixPosition'](_0x42ce36['end'],_0x3a569d));}['_fixPosition'](_0x1b140e,_0x3f28d9){return this['editor']['model']['createPositionFromPath'](_0x3f28d9,_0x1b140e['path'],_0x1b140e['stickiness']);}['_handleInsertOperation'](_0x4e491c){const _0x199882=this['_idsRoots']['get'](_0x4e491c['position']['root']['rootName']),_0x3399b3=this['_fixPosition'](_0x4e491c['position'],_0x199882),_0x5e2ad3=null===_0x4e491c['_authorId']?null:_0x4e491c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x123946=_0x3399b3['parent'],_0x2ca43b=this['_revisionId'],_0x23009f=[];for(const _0x4fd7de of _0x4e491c['nodes'])if(_0x4fd7de['is']('element'))_0x23009f['push'](this['_makeIdsRoot'](_0x4fd7de));else{for(let _0x589b54=0x0;_0x589b54<_0x4fd7de['offsetSize'];_0x589b54++)_0x23009f['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x55cf91=this['_revisionId'];for(let _0x27fb59=_0x2ca43b;_0x27fb59<_0x55cf91;_0x27fb59++)this['_touched']['set'](_0x27fb59,{'userId':_0x5e2ad3});_0x123946['_insertChild'](_0x3399b3['offset'],_0x23009f);}['_handleMoveOperation'](_0x39d201){(_0x39d201=this['_cloneOperation'](_0x39d201,this['_idsRoots']))['_execute']();const _0x565ee3=null===_0x39d201['_authorId']?null:_0x39d201['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30529e=_0x39d201['getMovedRangeStart'](),_0x4f16f5=_0x30529e['parent'],_0x174d3d=_0x30529e['offset'];!function _0x249146(_0x1667d1,_0x577395,_0x13c55a,_0x5e34ae){for(let _0x5e26c0=_0x13c55a;_0x5e26c0<_0x5e34ae;_0x5e26c0++){const _0x36a5b0=_0x577395['getChild'](_0x5e26c0);_0x36a5b0['is']('element','$text')?_0x1667d1['set'](_0x36a5b0['getAttribute']('vid'),{'userId':_0x565ee3}):(_0x1667d1['set'](_0x36a5b0['getAttribute']('vid_start'),{'userId':_0x565ee3}),_0x249146(_0x1667d1,_0x36a5b0,0x0,_0x36a5b0['childCount']),_0x1667d1['set'](_0x36a5b0['getAttribute']('vid_end'),{'userId':_0x565ee3}));}}(this['_touched'],_0x4f16f5,_0x174d3d,_0x174d3d+_0x39d201['howMany']);}['_handleMergeOperation'](_0x4f9dea){const _0x5b8366=null===(_0x4f9dea=this['_cloneOperation'](_0x4f9dea,this['_idsRoots']))['_authorId']?null:_0x4f9dea['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c39a1=_0x4f9dea['targetPosition']['parent'],_0x5c41d1=_0x4f9dea['sourcePosition']['parent'],_0x1a82d0=_0x2c39a1['getAttribute']('vid_end'),_0x46fc09=_0x5c41d1['getAttribute']('vid_start');_0x2c39a1['_setAttribute']('vid_end',_0x5c41d1['getAttribute']('vid_end')),_0x5c41d1['_setAttribute']('vid_end',_0x1a82d0),this['_touched']['set'](_0x46fc09,{'userId':_0x5b8366}),this['_touched']['set'](_0x1a82d0,{'userId':_0x5b8366}),_0x4f9dea['_execute']();}['_handleSplitOperation'](_0x21591f){const _0x265f02=null===(_0x21591f=this['_cloneOperation'](_0x21591f,this['_idsRoots']))['_authorId']?null:_0x21591f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2388a8=_0x21591f['graveyardPosition'],_0x977dd=_0x21591f['splitPosition']['parent'];_0x21591f['_execute']();const _0x2c7a41=_0x977dd['getAttribute']('vid_end'),_0x2336f0=_0x21591f['insertionPosition']['nodeAfter'];if(_0x2388a8){const _0x447c18=_0x2336f0['getAttribute']('vid_end'),_0x2fa3ab=_0x977dd['getAttribute']('vid_end');_0x977dd['_setAttribute']('vid_end',_0x447c18),_0x2336f0['_setAttribute']('vid_end',_0x2fa3ab),this['_touched']['set'](_0x977dd['getAttribute']('vid_end'),{'userId':_0x265f02}),this['_touched']['set'](_0x2336f0['getAttribute']('vid_start'),{'userId':_0x265f02});}else{const _0x471494=this['_revisionId']++,_0x36ca75=this['_revisionId']++;_0x977dd['_setAttribute']('vid_end',_0x471494),_0x2336f0['_setAttribute']('vid_start',_0x36ca75),_0x2336f0['_setAttribute']('vid_end',_0x2c7a41),this['_touched']['set'](_0x471494,{'userId':_0x265f02}),this['_touched']['set'](_0x36ca75,{'userId':_0x265f02});}}['_handleMarkerOperation'](_0x105221){if(!_0x105221['affectsData'])return;const _0x1fccd0=(_0x105221=this['_cloneOperation'](_0x105221,this['_diffRoots']))['oldRange']?_0x105221['oldRange']['root']:null,_0x168d45=_0x105221['newRange']?_0x105221['newRange']['root']:null;_0x1fccd0&&this['_markers']['delete'](_0x105221['name']),_0x168d45&&this['_markers']['set'](_0x105221['name'],_0x105221['newRange']['clone']());const _0x1e5314=null===_0x105221['_authorId']?null:_0x105221['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a39bd=_0x105221['name'];if(!this['_touchedMarkers']['has'](_0x3a39bd))return void this['_touchedMarkers']['set'](_0x3a39bd,{'range':_0x105221['oldRange'],'userId':_0x1e5314});const _0x5a469e=this['_touchedMarkers']['get'](_0x3a39bd),_0x54a4bc=_0x5a469e['range'],_0x5ee85f=_0x105221['newRange'];null==_0x54a4bc&&null==_0x5ee85f||_0x54a4bc&&_0x5ee85f&&_0x54a4bc['isEqual'](_0x5ee85f)?this['_touchedMarkers']['delete'](_0x105221['name']):_0x5a469e['userId']=_0x1e5314;}['_handleRootOperation'](_0x3aa656,_0x550ee9){this['_diffRoots']['has'](_0x3aa656['rootName'])?this['_diffRoots']['get'](_0x3aa656['rootName'])['_isAttached']=_0x3aa656['isAdd']:(this['_diffRoots']['set'](_0x3aa656['rootName'],F(_0x3aa656['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3aa656['rootName'],{}),_0x550ee9&&this['_idsRoots']['set'](_0x3aa656['rootName'],F(_0x3aa656['rootName'],!0x0)));const _0x5b5b03=null===_0x3aa656['_authorId']?null:_0x3aa656['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a2a90=this['_touchedRoots']['get'](_0x3aa656['rootName']);_0x1a2a90&&_0x1a2a90['userId']===_0x5b5b03?this['_touchedRoots']['delete'](_0x3aa656['rootName']):this['_touchedRoots']['set'](_0x3aa656['rootName'],{'userId':_0x5b5b03,'isAttached':_0x3aa656['isAdd']});}['_handleRootAttributeOperation'](_0x779975){const _0x4581d7=this['_diffRootsAttributes']['get'](_0x779975['root']['rootName']);null===_0x779975['newValue']?delete _0x4581d7[_0x779975['key']]:_0x4581d7[_0x779975['key']]=_0x779975['newValue'];}}function T(_0x2b4bcc){const _0x1b6756=F(_0x2b4bcc['rootName'],_0x2b4bcc['isAttached']());for(const _0x3a6ece of _0x2b4bcc['getChildren']()){const _0x19bb2f=_0x3a6ece['_clone'](!0x0);_0x1b6756['_appendChild'](_0x19bb2f);}return _0x1b6756;}function F(_0x529a72,_0x568d39=!0x0){const _0x2cf69b=new gt();return _0x2cf69b['rootName']=_0x529a72,_0x2cf69b['_isAttached']=_0x568d39,_0x2cf69b['isAttached']=()=>_0x2cf69b['_isAttached'],_0x2cf69b;}function B(_0x161dad,_0x316436,_0x4e1c9b){const _0x49cb5a='elementEnd'==_0x161dad['type']?_0x4e1c9b['createPositionAt'](_0x161dad['item'],'end'):_0x4e1c9b['createPositionBefore'](_0x161dad['item']);return _0x4e1c9b['createPositionFromPath'](_0x316436,_0x49cb5a['path'],_0x49cb5a['stickiness']);}function J(_0x5011df,_0x1fdabb,_0x249a1f){const _0x4a0fdb='elementStart'==_0x5011df['type']?_0x249a1f['createPositionAt'](_0x5011df['item'],0x0):_0x249a1f['createPositionAfter'](_0x5011df['item']);return _0x249a1f['createPositionFromPath'](_0x1fdabb,_0x4a0fdb['path'],_0x4a0fdb['stickiness']);}class os extends _0x3438c0{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1c43b1,_0x28d52a){super(_0x1c43b1),this['focusTracker']=new _0x30fc5d(),this['keystrokes']=new _0xe432c2(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x28d52a),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'](),_0x124a44({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4340eb=_0x3350c3=>_0x3350c3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4340eb),this['keystrokes']['set']('arrowleft',_0x4340eb),this['keystrokes']['set']('arrowup',_0x4340eb),this['keystrokes']['set']('arrowdown',_0x4340eb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xe6e8d9){this['revisionNameInputView']['fieldView']['element']['value']=_0xe6e8d9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x28213d){const _0xb3b20e=new at(this['locale'],ti),_0x3126c7=_0xb3b20e['fieldView'];_0x3126c7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1b97c8=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x28213d&&(_0x1b97c8+='\x20('+m(this['locale'],'optional')+')'),(_0xb3b20e['label']=_0x1b97c8,_0x3126c7['on']('input',()=>{this['revisionNameInputValue']=_0x3126c7['element']['value']['trim']();}),_0xb3b20e);}}class f extends _0x19eb44{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2d6990=this['editor'],_0x4657db=_0x2d6990['plugins']['get']('RevisionTracker');_0x2d6990['ui']['componentFactory']['add']('revisionHistory',_0x4f34cc=>{const _0xddc4f8=_0x36390b(_0x4f34cc),_0x3bc9a4=_0xddc4f8['panelView']['children'],_0x531e77=new _0x3e0030(_0x4f34cc),_0x5e8190=new te(_0x4f34cc),_0xf4da54=new _0x1cfe19(_0x4f34cc),_0x5a0691=new te(_0x4f34cc),_0x4813e4=new _0x1cfe19(_0x4f34cc);return _0xddc4f8['bind']('isEnabled')['to'](_0x4657db,'isReady',_0x4657db,'isEnabled',_0x2d6990,'isReadOnly',(_0x1d7301,_0x2afc3b,_0x419d12)=>_0x1d7301&&_0x2afc3b&&!_0x419d12),_0xddc4f8['buttonView']['set']({'icon':_0x533e5c,'label':m(_0x4f34cc,'Revision\x20history'),'tooltip':!0x0}),_0xf4da54['set']({'label':m(_0x4f34cc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xf4da54['bind']('isEnabled')['to'](_0x4657db,'isReady',_0x4657db,'isEnabled',_0x2d6990,'isReadOnly',(_0x3386f6,_0x484c41,_0x1b10a7)=>_0x3386f6&&_0x484c41&&!_0x1b10a7),_0xf4da54['on']('execute',()=>this['_showDialog']()),_0x4813e4['set']({'label':m(_0x4f34cc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4813e4['bind']('isEnabled')['to'](_0x4657db,'isReady',_0x2d6990,'isReadOnly',(_0x3ff84a,_0x1744d5)=>_0x3ff84a&&!_0x1744d5),_0x4813e4['on']('execute',()=>{_0x2d6990['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xddc4f8['isOpen']=!0x1,_0x2d6990['editing']['view']['focus']();}),_0x5e8190['children']['add'](_0xf4da54),_0x5a0691['children']['add'](_0x4813e4),_0x531e77['role']='menu',_0x531e77['items']['addMany']([_0x5e8190,_0x5a0691]),_0x3bc9a4['add'](_0x531e77),_0xddc4f8;}),_0x2d6990['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x497c22=this['editor'],_0xebe45f=_0x497c22['locale'],_0x12d441=new _0x272de6(_0xebe45f),_0x277368=new _0x3b9875(_0xebe45f);_0x12d441['buttonView']['set']({'icon':_0x533e5c,'label':m(_0xebe45f,'Revision\x20history')});const _0x2b9da3=new _0x3168a2(_0xebe45f,_0x12d441),_0x27ef21=new _0x3b5cb8(_0xebe45f);_0x27ef21['set']({'label':m(_0xebe45f,'Save\x20current\x20revision')}),_0x27ef21['delegate']('execute')['to'](_0x12d441),_0x27ef21['on']('execute',()=>{this['_showDialog']();}),_0x2b9da3['children']['add'](_0x27ef21),_0x277368['items']['add'](_0x2b9da3);const _0x18cd23=new _0x3168a2(_0xebe45f,_0x12d441),_0x2d386e=new _0x3b5cb8(_0xebe45f);return _0x2d386e['set']({'label':m(_0xebe45f,'Open\x20revision\x20history')}),_0x2d386e['delegate']('execute')['to'](_0x12d441),_0x2d386e['on']('execute',()=>{_0x497c22['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x18cd23['children']['add'](_0x2d386e),_0x277368['items']['add'](_0x18cd23),_0x12d441['panelView']['children']['add'](_0x277368),_0x12d441;}['_showDialog'](){const _0x4108d8=this['editor'],_0x244e97=_0x4108d8['locale'],_0x4a6ec1=_0x4108d8['plugins']['get']('Dialog'),_0x4a0eaf=_0x4108d8['plugins']['get']('RevisionTracker');function _0x336470(_0x2dbe81){_0x4108d8['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2dbe81['revisionName']?_0x2dbe81['revisionNameInputView']['errorText']=m(_0x244e97,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4108d8['plugins']['get'](u)['saveRevision']({'name':_0x2dbe81['revisionName']}),_0x4a6ec1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x336470(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4a6ec1['show']({'id':'revisionSave','title':m(_0x244e97,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4108d8['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4a6ec1['hide']()},{'label':m(_0x4108d8['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x15a8d2){_0x15a8d2['bind']('isEnabled')['to'](_0x4a0eaf,'isReady',_0x4a0eaf,'isEnabled',_0x4108d8,'isReadOnly',(_0x52de6a,_0xd93c06,_0x27be5d)=>_0x52de6a&&_0xd93c06&&!_0x27be5d);},'onExecute':()=>_0x336470(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x48bd0e=this['editor'],_0x47e959=_0x48bd0e['locale'];this['_saveRevisionFormView']=new os(_0x47e959,_0x48bd0e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3438c0{['changeId'];['_model'];constructor(_0x10cfcd,_0x181299){super(_0x10cfcd),this['_model']=_0x181299,this['changeId']=_0x181299['id'];const _0x38a43f=this['bindTemplate'],_0x5adad2=m(_0x10cfcd,_0x181299['data']['isSuggestion']?'Suggested\x20by':'add'==_0x181299['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x181299['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x38a43f['to']('type',_0x27e029=>'ck-revision-change__'+_0x27e029)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5adad2}]},{'text':'\x20'+_0x181299['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x3ddaf9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3e8ce6){super(),this['id']=_0x3e8ce6['id']||_0x2d3c1e(),this['author']=_0x3e8ce6['author'],this['type']=_0x3e8ce6['type'],this['data']=_0x3e8ce6['data']||{},this['rootName']=_0x3e8ce6['rootName'],this['set']('createdAt',_0x3e8ce6['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(_0x5cbd8a,_0x7d7505){this['newRevisionId']=_0x5cbd8a,this['oldRevisionId']=_0x7d7505,this['changes']=new _0x1caf96();}['_setChanges'](_0x5dfc8f){for(const _0x4bb848 of _0x5dfc8f)this['changes']['add'](_0x4bb848);}}const Y={'c':_0x4b52e0,'a':_0x34b3a3,'e':_0xc09e33,'r':_0x2e2456,'u':_0x26460a};class d extends _0x19eb44{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xb8447b,_0x5cf708,j];}constructor(_0x47de53){super(_0x47de53),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x155ef3,_0x7b77dd,_0x4bd53f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x317d36=>{for(const _0x12edcd of this['editor']['editing']['view']['document']['roots'])_0x4bd53f?_0x317d36['removeClass']('ck-editor__editable__overlay',_0x12edcd):_0x317d36['addClass']('ck-editor__editable__overlay',_0x12edcd);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xebb08c=>null!==_0xebb08c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2fc123,_0x5a836c,_0x18c5e5)=>_0x2fc123&&_0x18c5e5?_0x5a836c['changes']['getIndex'](_0x18c5e5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2f0b7a,_0x8ee546)=>_0x2f0b7a?_0x8ee546['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5cf708);}['init'](){const _0x53dc0b=this['editor'],_0x351e0e=new yt(_0x53dc0b,{'direction':'backward'}),_0x5e42c7=new yt(_0x53dc0b,{'direction':'forward'});(_0x53dc0b['commands']['add']('showPreviousChange',_0x351e0e),_0x53dc0b['commands']['add']('showNextChange',_0x5e42c7),_0x53dc0b['commands']['add']('restoreRevision',new _t(_0x53dc0b)),this['on']('change:numberOfChanges',()=>{_0x351e0e['refresh'](),_0x5e42c7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x53dc0b['enableReadOnlyMode']('revision-viewer'),_0x53dc0b['plugins']['has']('WidgetToolbarRepository'))&&_0x53dc0b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1a806f){await this['loadRevisionData'](_0x1a806f);const _0xc123f={};for(const _0x4a04e4 in _0x1a806f['diffData']){if(_0x1a806f['diffData'][_0x4a04e4]['attachChange']&&!_0x1a806f['diffData'][_0x4a04e4]['attachChange']['isAttached'])continue;const _0x157c1f=this['_removeRevisionMarkers'](JSON['parse'](_0x1a806f['diffData'][_0x4a04e4]['insertions'])),_0x1e0fc4=this['editor']['editing']['view']['document'],_0x30ba39=new _0x4daa75(_0x1e0fc4,_0x157c1f['map'](_0x337ec7=>this['_getViewObj'](_0x337ec7)));this['editor']['data']['processor']['useFillerType']('marked'),_0xc123f[_0x4a04e4]=this['editor']['data']['processor']['toData'](_0x30ba39),this['editor']['data']['processor']['useFillerType']('default');}return _0xc123f;}async['getRevisionRootsAttributes'](_0x4553a3){await this['loadRevisionData'](_0x4553a3);const _0x1ae6b8={};for(const _0x28f70e in _0x4553a3['diffData'])_0x4553a3['diffData'][_0x28f70e]['attachChange']&&!_0x4553a3['diffData'][_0x28f70e]['attachChange']['isAttached']||(_0x1ae6b8[_0x28f70e]=_0x4553a3['diffData'][_0x28f70e]['attributesAfter']||{});return _0x1ae6b8;}['_removeRevisionMarkers'](_0x207eab){return(_0x207eab=_0x207eab['filter'](_0x4be46f=>!_0x4be46f['name']||'revision-start'!==_0x4be46f['name']&&'revision-end'!==_0x4be46f['name']))['forEach'](_0x4d73a9=>{'string'!=typeof _0x4d73a9&&(_0x4d73a9['children']=this['_removeRevisionMarkers'](_0x4d73a9['children']),_0x4d73a9['attributes']=_0x4d73a9['attributes']['filter'](_0x20ecea=>!_0x20ecea[0x0]['startsWith']('data-revision-')));}),_0x207eab;}async['compare'](_0x292b9b,_0x206dc6,_0x7643e8=!0x1){if(!this['isEnabled'])return;const _0x11ae31=this['diff'],_0x2c040b=this['repository'],_0x162323='string'==typeof _0x292b9b?_0x2c040b['getRevision'](_0x292b9b):_0x292b9b,_0x59f2bb='string'==typeof _0x206dc6?_0x2c040b['getRevision'](_0x206dc6):_0x206dc6,_0x5b90b3=_0x162323['id'],_0x562721=_0x59f2bb?_0x59f2bb['id']:null;if(!_0x7643e8&&this['diff']&&this['diff']['newRevisionId']===_0x5b90b3&&this['diff']['oldRevisionId']===_0x562721)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5b90b3,_0x562721);const _0x3604d4=this['_getRevisionsRange'](_0x162323,_0x59f2bb,!0x0)['map'](_0x1279df=>this['loadRevisionData'](_0x1279df));return _0x3604d4['push'](new Promise(_0x37f40f=>{setTimeout(_0x37f40f,0x14);})),Promise['all'](_0x3604d4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3d18ad=this['_getDiff'](_0x5b90b3,_0x562721);for(const _0x2cbe53 of _0x3d18ad['changes'])this['_changeIdToChange']['set'](_0x2cbe53['id'],_0x2cbe53);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3a4a48=>{for(const _0xe6f4f1 of this['editor']['model']['document']['getRootNames']())_0x3a4a48['detachRoot'](_0xe6f4f1);for(const _0x4932bc of Object['keys'](_0x3d18ad['model'])){const _0x3f30d1=_0x3a4a48['addRoot'](_0x4932bc);for(const _0x5c317d of Object['keys'](_0x3d18ad['attributes'][_0x4932bc]))_0x3a4a48['setAttribute'](_0x5c317d,_0x3d18ad['attributes'][_0x4932bc][_0x5c317d],_0x3f30d1);_0x3a4a48['insert'](_0x3d18ad['model'][_0x4932bc],_0x3f30d1,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3d18ad['changes'])),this['isReady']=!0x0;})['catch'](_0x2d847a=>{console['error'](_0x2d847a),this['_cleanUp'](),_0x11ae31&&(this['diff']=_0x11ae31),this['isReady']=!0x0;});}['addRevisionData'](_0x47ab29,_0xa62c8){const _0x5c8326=this['repository']['createRevision'](_0x47ab29);return _0x5c8326['on']('_update',(_0x3ecfb5,_0x3bd549,_0x2d10e9)=>_0xa62c8(_0x3bd549,_0x2d10e9,_0x5c8326)),this['repository']['addRevision'](_0x5c8326),_0x5c8326;}['loadRevisionData'](_0x58d9d7){if(!_0x58d9d7||_0x58d9d7['diffData'])return Promise['resolve']();{const _0xdd7be0=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xdd7be0,'revisionId':_0x58d9d7['id']})['then'](_0xcd6f3a=>{_0x58d9d7['_update']({'diffData':_0xcd6f3a['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1483d2=>{for(const _0x5945da of this['editor']['model']['document']['getRootNames']())_0x1483d2['detachRoot'](_0x5945da);});}['_sortAndFilterDiffChanges'](_0x566215){const _0x1b3dcd=[],_0x3336c1=new Map();for(const _0x13ae38 of this['editor']['model']['document']['getRootNames']()){const _0xdabcad=this['editor']['editing']['view']['getDomRoot'](_0x13ae38);if(!_0xdabcad)continue;const _0x1e8dd1=_0xdabcad['getClientRects']()['item'](0x0);_0x1e8dd1&&(_0x1b3dcd['push'](_0x13ae38),_0x3336c1['set'](_0x13ae38,_0x1e8dd1));}return _0x1b3dcd['sort']((_0x57c5b7,_0x2c78ee)=>{const _0x4be700=_0x3336c1['get'](_0x57c5b7),_0x58591c=_0x3336c1['get'](_0x2c78ee);return _0x4be700['y']-_0x58591c['y']||_0x4be700['x']-_0x58591c['x'];}),(_0x566215=_0x566215['filter'](_0x2522df=>_0x1b3dcd['includes'](_0x2522df['rootName'])))['sort']((_0x564f30,_0x2a5139)=>_0x1b3dcd['indexOf'](_0x564f30['rootName'])-_0x1b3dcd['indexOf'](_0x2a5139['rootName'])),_0x566215;}['_makeTape'](_0x26dd81){const _0x117ebe=Array['from'](_0x26dd81['markers'])['filter'](([_0x39b183,_0x22bd3f])=>_0x39b183['startsWith']('revision:')&&!_0x22bd3f['isCollapsed']),_0x192860=Array['from'](this['editor']['model']['createRangeIn'](_0x26dd81)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x117ebe['length'])for(const _0x1c27e6 of _0x192860){const [_0x5e6750,_0x314528]=_0x117ebe[0x0],[,_0x454b1b,_0xf23dd8]=_0x5e6750['split'](':');if(_0x314528['end']['isEqual'](_0x1c27e6['nextPosition'])&&_0x117ebe['shift'](),(_0x1c27e6['previousPosition']['isEqual'](_0x314528['start'])||_0x1c27e6['previousPosition']['isAfter'](_0x314528['start']))&&('insertion'==_0x454b1b?_0x1c27e6['isAdded']={'userId':_0xf23dd8}:'deletion'==_0x454b1b&&(_0x1c27e6['isRemoved']={'userId':_0xf23dd8})),0x0==_0x117ebe['length'])break;}return _0x192860;}['_refreshStartEndIndex'](_0x330648){const _0x2a1852=new Map();for(let _0x4b88d8=0x0;_0x4b88d8<_0x330648['length'];_0x4b88d8++)'text'===_0x330648[_0x4b88d8]['type']?(_0x330648[_0x4b88d8]['item']['startIndex']=_0x4b88d8,_0x330648[_0x4b88d8]['item']['endIndex']=_0x4b88d8):('elementStart'===_0x330648[_0x4b88d8]['type']?_0x330648[_0x4b88d8]['item']['startIndex']=_0x4b88d8:'elementEnd'===_0x330648[_0x4b88d8]['type']&&(_0x330648[_0x4b88d8]['item']['endIndex']=_0x4b88d8),_0x2a1852['set'](_0x330648[_0x4b88d8]['id'],_0x4b88d8));for(const _0x26ed61 of _0x2a1852['values']())'elementStart'===_0x330648[_0x26ed61]['type']?_0x330648[_0x26ed61]['item']['endIndex']=_0x2a1852['get'](_0x330648[_0x26ed61]['pairId']):'elementEnd'===_0x330648[_0x26ed61]['type']&&(_0x330648[_0x26ed61]['item']['startIndex']=_0x2a1852['get'](_0x330648[_0x26ed61]['pairId']));}['_processTape'](_0x2d09e5){for(let _0x5bc620=0x0;_0x5bc620<_0x2d09e5['length'];_0x5bc620++){if('elementStart'===_0x2d09e5[_0x5bc620]['type'])_0x2d09e5[_0x5bc620]['item']['startIndex']=_0x5bc620;else{if('elementEnd'===_0x2d09e5[_0x5bc620]['type']){_0x2d09e5[_0x5bc620]['item']['endIndex']=_0x5bc620;const _0x2c89ea=_0x2d09e5[_0x5bc620]['item']['startIndex'];_0x2d09e5[_0x2c89ea]['pairId']=_0x2d09e5[_0x5bc620]['id'],_0x2d09e5[_0x5bc620]['pairId']=_0x2d09e5[_0x2c89ea]['id'];}else _0x2d09e5[_0x5bc620]['item']['startIndex']=_0x5bc620,_0x2d09e5[_0x5bc620]['item']['endIndex']=_0x5bc620,_0x2d09e5[_0x5bc620]['pairId']=null;}_0x2d09e5[_0x5bc620]['markersStart']||(_0x2d09e5[_0x5bc620]['markersStart']=[],_0x2d09e5[_0x5bc620]['markersEnd']=[]);}}['_markInsertions'](_0x5d4464,_0x34bc1c){const _0x469370=_0x5d4464['filter'](_0x384441=>!_0x384441['isAdded']);for(let _0x2e8db5=0x0;_0x2e8db5<_0x34bc1c['length'];_0x2e8db5++)_0x34bc1c[_0x2e8db5]['isAdded']&&(_0x469370[_0x2e8db5]['isAdded']=_0x34bc1c[_0x2e8db5]['isAdded']);}['_makeModelFromViewString'](_0x45104){const _0x54818c=JSON['parse'](_0x45104),_0x401e82=this['editor']['editing']['view']['document'],_0x4a3865=new _0x4daa75(_0x401e82,_0x54818c['map'](_0x404c66=>this['_getViewObj'](_0x404c66)));return this['editor']['data']['toModel'](_0x4a3865);}['_getViewObj'](_0x5a0a45){const _0x5c9d74=this['editor']['editing']['view']['document'];if('string'==typeof _0x5a0a45)return new _0x14d4f7(_0x5c9d74,_0x5a0a45);{const _0x4958e4=_0x5a0a45['children']['map'](_0x1aa821=>this['_getViewObj'](_0x1aa821));return new(Y[_0x5a0a45['type']]||_0x473b22)(_0x5c9d74,_0x5a0a45['name'],_0x5a0a45['attributes'],_0x4958e4);}}['_getDiff'](_0x79bb87,_0x10f478=null){const _0x50b23f=this['repository']['getRevision'](_0x79bb87),_0x58da50=_0x10f478?this['repository']['getRevision'](_0x10f478):null,_0x50da7d=this['_getRevisionsRange'](_0x50b23f,_0x58da50),_0x1b8bc9=_0x50da7d[_0x50da7d['length']-0x1],_0x2ed243=new Map(),_0xf40c30={'model':{},'attributes':{},'changes':[]},_0x3071e1=new Set(),_0xf330ee=new Map();for(let _0x248490=_0x50da7d['length']-0x1;_0x248490>=0x0;_0x248490--){const _0x1f7ef8=_0x50da7d[_0x248490];for(const _0x2821c2 of Object['keys'](_0x1f7ef8['diffData']))if(_0x1f7ef8['diffData'][_0x2821c2]['attachChange']){const _0x7825f9=_0x1f7ef8['diffData'][_0x2821c2]['attachChange'];_0x7825f9['isAttached']?(_0x3071e1['add'](_0x2821c2),_0xf330ee['has'](_0x2821c2)&&_0xf330ee['get'](_0x2821c2)['userId']==_0x7825f9['userId']?_0xf330ee['delete'](_0x2821c2):_0xf330ee['set'](_0x2821c2,_0x7825f9)):_0xf330ee['has'](_0x2821c2)?(_0x3071e1['delete'](_0x2821c2),_0xf330ee['delete'](_0x2821c2)):(_0x3071e1['add'](_0x2821c2),_0xf330ee['set'](_0x2821c2,_0x7825f9));}else _0x3071e1['add'](_0x2821c2);}for(const _0x4c9338 of _0x3071e1){const _0x2d2edb=_0xf330ee['has'](_0x4c9338)&&!_0xf330ee['get'](_0x4c9338)['isAttached'];let _0x5d2b7c=_0x2d2edb?_0x50da7d['length']-0x1:0x0;const _0x1724aa=_0x2d2edb?-0x1:0x1;for(;_0x50da7d[_0x5d2b7c];){const _0x206e12=_0x50da7d[_0x5d2b7c];if(_0x206e12['diffData'][_0x4c9338]){const _0x1ce25c=_0x2d2edb?_0x206e12['diffData'][_0x4c9338]['attributesBefore']:_0x206e12['diffData'][_0x4c9338]['attributesAfter'];_0xf40c30['attributes'][_0x4c9338]=_0x1ce25c?_0x54079b(_0x1ce25c):{};break;}_0x5d2b7c+=_0x1724aa;}}for(const _0x53b1d7 of _0x50da7d){_0x53b1d7['model']={};for(const _0x2c919f of _0x53b1d7['authors'])_0x2ed243['set'](_0x2c919f['id'],_0x2c919f);for(const _0x3edf4b of _0x3071e1){const _0x277f6f=_0x53b1d7['diffData'][_0x3edf4b]?_0x53b1d7['diffData'][_0x3edf4b]['insertions']:'[]',_0x271cea=_0x53b1d7['diffData'][_0x3edf4b]?_0x53b1d7['diffData'][_0x3edf4b]['deletions']:'[]';_0x53b1d7['model'][_0x3edf4b]={'insertions':this['_makeModelFromViewString'](_0x277f6f),'deletions':this['_makeModelFromViewString'](_0x271cea)};}}for(const _0x23abee of _0x3071e1){let _0x6e6ae=null,_0x90b9e9=0x0;const _0x48f0d1=new Map(Array['from'](_0x50b23f['model'][_0x23abee]['insertions']['markers'])['filter'](([_0x50f321])=>!_0x50f321['startsWith']('revision:')));let _0x359d1f=0x0;for(const _0x788af1 of _0x50da7d){const _0x15a76d=this['_makeTape'](_0x788af1['model'][_0x23abee]['insertions']);_0x788af1==_0x50b23f?(_0x6e6ae=_0x15a76d,_0x90b9e9=_0x6e6ae['length'],_0x6e6ae['forEach'](_0x34972c=>{_0x34972c['id']=_0x359d1f++;}),this['_processTape'](_0x6e6ae)):this['_markInsertions'](_0x6e6ae,_0x15a76d);const _0x171462=_0x6e6ae['filter'](_0x46714c=>!_0x46714c['isAdded'])['map'](_0x1dad50=>_0x1dad50['id']);let _0x255d35=0x0;const _0x58ba2c=this['_makeTape'](_0x788af1['model'][_0x23abee]['deletions']);_0x58ba2c['forEach'](_0x46c627=>{_0x46c627['isRemoved']?_0x46c627['id']=_0x90b9e9++:_0x46c627['id']=_0x171462[_0x255d35++];}),this['_processTape'](_0x58ba2c),this['_setDistance'](_0x6e6ae,'isAdded'),this['_setDistance'](_0x58ba2c,'isRemoved'),_0x788af1==_0x50b23f&&this['_markMarkers'](_0x6e6ae,_0x48f0d1),_0x6e6ae=this['_joinTapes'](_0x6e6ae,_0x58ba2c),this['_refreshStartEndIndex'](_0x6e6ae),this['_setDistance'](_0x6e6ae,'isRemoved');}_0x6e6ae=_0x6e6ae['filter'](_0x3abadd=>!(_0x3abadd['isAdded']&&_0x3abadd['isRemoved']));const _0x1b8505=new Map(_0x1b8bc9['model'][_0x23abee]['deletions']['markers']),_0x2355ab=new Set(_0x48f0d1['keys']());for(const _0x50e2bd of _0x1b8505['keys']())_0x2355ab['delete'](_0x50e2bd);this['_markSuggestions'](_0x6e6ae,_0x2355ab),this['_fixObsoleteTags'](_0x6e6ae),_0x6e6ae=this['_removeMissingPairs'](_0x6e6ae),_0x6e6ae=this['_markMismatchedRemovedTags'](_0x6e6ae),_0x6e6ae=this['_removeUnsupportedChanges'](_0x6e6ae);const {root:_0x2595eb,changes:_0x4ddf11}=this['_makeModelFromTape'](_0x6e6ae,_0x2ed243,_0x23abee);_0xf40c30['model'][_0x23abee]=_0x2595eb;const _0x3c7ee6=_0xf330ee['get'](_0x23abee);if(_0x3c7ee6){const _0x27fd0b=_0x2ed243['get'](_0x3c7ee6['userId']),_0x1e6916=new r({'author':_0x27fd0b,'type':_0x3c7ee6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x23abee});_0x4ddf11['unshift'](_0x1e6916),_0xf40c30['attributes'][_0x23abee]['revisionHistoryAttachChange']=_0x1e6916['id'];}_0xf40c30['changes']=_0xf40c30['changes']['concat'](_0x4ddf11);}return _0xf40c30;}['_markMarkers'](_0x547228,_0x163288){for(let _0x5edb8b=0x0;_0x5edb8b<_0x547228['length'];_0x5edb8b++)for(const [_0x559ae3,_0x1841d3]of _0x163288)_0x1841d3['start']['isEqual'](_0x547228[_0x5edb8b]['previousPosition'])&&_0x547228[_0x5edb8b]['markersStart']['push'](_0x559ae3),_0x1841d3['end']['isEqual'](_0x547228[_0x5edb8b]['nextPosition'])&&_0x547228[_0x5edb8b]['markersEnd']['push'](_0x559ae3);}['_joinTapes'](_0x59fa3e,_0x3aa18a){let _0x308cbd=[],_0x3b21ad=0x0,_0x945dbe=0x0;for(;_0x3b21ad<_0x59fa3e['length']||_0x945dbe<_0x3aa18a['length'];){const _0x42814c=_0x59fa3e[_0x3b21ad]||{},_0x42b562=_0x3aa18a[_0x945dbe]||{};if(_0x42814c['id']==_0x42b562['id'])_0x3b21ad++,_0x945dbe++,_0x308cbd['push'](_0x42814c);else{if(_0x42b562['isRemoved']&&_0x42814c['isAdded']){const {commonTape:_0x586c14,iEnd:_0x48498a,jEnd:_0xd5f0db}=this['_threeWayMerge'](_0x59fa3e,_0x3b21ad,_0x3aa18a,_0x945dbe);_0x308cbd=_0x308cbd['concat'](_0x586c14),_0x3b21ad=_0x48498a,_0x945dbe=_0xd5f0db;}else _0x42b562['isRemoved']?(_0x945dbe++,_0x308cbd['push'](_0x42b562)):(_0x3b21ad++,_0x308cbd['push'](_0x42814c));}}return _0x308cbd;}['_markSuggestions'](_0x12e5d9,_0x3afc24){const _0x50ff88=[];for(let _0x41f77a=0x0;_0x41f77a<_0x12e5d9['length'];_0x41f77a++){for(let _0x3bdaa8=0x0;_0x3bdaa8<_0x12e5d9[_0x41f77a]['markersStart']['length'];_0x3bdaa8++){const _0x44fd63=_0x12e5d9[_0x41f77a]['markersStart'][_0x3bdaa8];if(!_0x3afc24['has'](_0x44fd63))continue;const {group:_0xe9d559,type:_0xaf741f,authorId:_0x2138ba}=_0x36a75e(_0x44fd63);'revision-suggestion'!=_0xe9d559||'insertion'!=_0xaf741f&&'deletion'!=_0xaf741f||(_0x50ff88['unshift']({'type':_0xaf741f,'name':_0x44fd63,'userId':_0x2138ba}),_0x12e5d9[_0x41f77a]['markersStart']['splice'](_0x3bdaa8,0x1),_0x3bdaa8--);}_0x4a506e(_0x12e5d9[_0x41f77a]);for(let _0x1e404b=0x0;_0x1e404b<_0x12e5d9[_0x41f77a]['markersEnd']['length'];_0x1e404b++){const _0xa82c99=_0x12e5d9[_0x41f77a]['markersEnd'][_0x1e404b];if(!_0x3afc24['has'](_0xa82c99))continue;const {group:_0x256f66,type:_0x9abfd7}=_0x36a75e(_0xa82c99);if('revision-suggestion'!=_0x256f66||'insertion'!=_0x9abfd7&&'deletion'!=_0x9abfd7)continue;_0x12e5d9[_0x41f77a]['markersEnd']['splice'](_0x1e404b,0x1),_0x1e404b--;const _0x358fc6=_0x50ff88['findIndex'](_0x2be64f=>_0x2be64f['name']==_0xa82c99);_0x358fc6>-0x1&&_0x50ff88['splice'](_0x358fc6,0x1);}}function _0x36a75e(_0x5473c1){const _0x3c3bd2=_0x5473c1['split'](':');return{'group':_0x3c3bd2[0x0],'type':_0x3c3bd2[0x1],'subType':_0x3c3bd2['length']>=0x5?_0x3c3bd2[0x2]:null,'id':_0x3c3bd2['length']<0x5?_0x3c3bd2[0x2]:_0x3c3bd2[0x3],'authorId':_0x3c3bd2['length']<0x5?_0x3c3bd2[0x3]:_0x3c3bd2[0x4],'markerCount':0x6==_0x3c3bd2['length']?_0x3c3bd2[0x5]:null};}function _0x4a506e(_0x43fca0){for(let _0x18e820=0x0;_0x18e820<_0x50ff88['length'];_0x18e820++){if(_0x43fca0['isAdded']&&'insertion'==_0x50ff88[_0x18e820]['type'])return _0x43fca0['isAddSuggestion']=_0x50ff88[_0x18e820],void delete _0x43fca0['isAdded'];if(!_0x43fca0['isAdded']&&!_0x43fca0['isRemoved']&&'deletion'==_0x50ff88[_0x18e820]['type'])return void(_0x43fca0['isRemoveSuggestion']=_0x50ff88[_0x18e820]);}}}['_setDistance'](_0x13ba4e,_0x3272e6){let _0x5f599c=0x0,_0x441ff2=!0x1;const _0x2cd216=new Map();for(const _0x1326cd of _0x13ba4e)_0x1326cd[_0x3272e6]?_0x441ff2&&(_0x5f599c++,_0x441ff2=!0x1):(_0x5f599c++,_0x441ff2=!0x0),_0x2cd216['set'](_0x1326cd['id'],_0x5f599c);for(let _0x868b6e=0x0;_0x868b6e<_0x13ba4e['length'];_0x868b6e++){if('isRemoved'==_0x3272e6&&_0x13ba4e[_0x868b6e]['isAdded']||'isAdded'==_0x3272e6&&_0x13ba4e[_0x868b6e]['isRemoved'])continue;if('text'==_0x13ba4e[_0x868b6e]['type']){_0x13ba4e[_0x868b6e]['distance']=0x0;continue;}const _0x55e985=_0x2cd216['get'](_0x13ba4e[_0x868b6e]['pairId']),_0x30298d=_0x2cd216['get'](_0x13ba4e[_0x868b6e]['id']);_0x13ba4e[_0x868b6e]['distance']=_0x55e985-_0x30298d;}}['_getRevisionsRange'](_0xf7a91f,_0x496d0c,_0x339115=!0x1){const _0x331198=[];let _0x2f9132=this['repository']['getIndex'](_0xf7a91f),_0x1834ff=this['repository']['getIndex'](_0x496d0c);for(-0x1==_0x1834ff&&(_0x1834ff=this['repository']['_revisions']['length'],_0x339115=!0x1);_0x2f9132<_0x1834ff;)_0x331198['push'](this['repository']['getRevision'](_0x2f9132)),_0x2f9132++;return _0x339115&&_0x331198['push'](this['repository']['getRevision'](_0x2f9132)),_0x331198;}['_threeWayMerge'](_0x1f7354,_0x362520,_0x38b3e5,_0x5d1be9){const _0x57e523=this['editor']['model']['schema'];let _0xb7bc7c=_0x362520;for(;_0x1f7354[_0xb7bc7c]&&_0x1f7354[_0xb7bc7c]['isAdded'];)_0xb7bc7c++;let _0x355e9a=_0x5d1be9;for(;_0x38b3e5[_0x355e9a]&&_0x38b3e5[_0x355e9a]['isRemoved'];)_0x355e9a++;_0x4f0ca4(_0x1f7354,_0x362520,_0xb7bc7c),_0x4f0ca4(_0x38b3e5,_0x5d1be9,_0x355e9a);const _0x2084f8=_0x38b3e5['slice'](_0x5d1be9,_0x355e9a)['concat'](_0x1f7354['slice'](_0x362520,_0xb7bc7c));return _0x2084f8['sort']((_0x4c9f1c,_0x8a2bac)=>_0x4c9f1c['side']!=_0x8a2bac['side']?_0x4c9f1c['side']-_0x8a2bac['side']:_0x4c9f1c['level']!=_0x8a2bac['level']?_0x4c9f1c['level']-_0x8a2bac['level']:_0x4c9f1c['distance']!=_0x8a2bac['distance']?_0x8a2bac['distance']-_0x4c9f1c['distance']:!!_0x4c9f1c['isAdded']!=!!_0x8a2bac['isAdded']?-0x1==_0x4c9f1c['side']||0x0==_0x4c9f1c['side']?_0x4c9f1c['isAdded']?-0x1:0x1:_0x4c9f1c['isAdded']?0x1:-0x1:_0x4c9f1c['index']-_0x8a2bac['index']),{'commonTape':_0x2084f8,'iEnd':_0xb7bc7c,'jEnd':_0x355e9a};function _0x4f0ca4(_0x5c62e1,_0x22bc98,_0x281745){let _0x1d679c=-0x1,_0x35d184=Number['POSITIVE_INFINITY'],_0x4df543=!0x0;for(let _0x422807=_0x22bc98;_0x422807<_0x281745;_0x422807++)if(_0x57e523['isInline'](_0x5c62e1[_0x422807]['item'])||(_0x4df543=!0x1),_0x5c62e1[_0x422807]['item']['startIndex']<_0x22bc98&&(_0x1d679c=_0x422807),_0x5c62e1[_0x422807]['item']['endIndex']>=_0x281745){_0x35d184=_0x422807;break;}_0x4df543&&(_0x1d679c=_0x281745-0x1);for(let _0x4c60f2=_0x22bc98;_0x4c60f2<_0x281745;_0x4c60f2++)_0x5c62e1[_0x4c60f2]['side']=_0x4c60f2<=_0x1d679c?-0x1:_0x4c60f2<_0x35d184?0x0:0x1,_0x5c62e1[_0x4c60f2]['index']=_0x4c60f2;let _0x292821=0x0;for(let _0x1f6a26=_0x22bc98;_0x1f6a26<=_0x1d679c;_0x1f6a26++)0x0==_0x5c62e1[_0x1f6a26]['distance']?_0x5c62e1[_0x1f6a26]['level']=_0x292821:(_0x292821++,_0x5c62e1[_0x1f6a26]['level']=_0x292821,_0x292821++);for(let _0x1358d8=_0x22bc98;_0x1358d8<_0x281745;_0x1358d8++)0x0==_0x5c62e1[_0x1358d8]['side']&&(_0x5c62e1[_0x1358d8]['level']=_0x292821);_0x292821=0x0;for(let _0x5e0ac0=_0x281745-0x1;_0x5e0ac0>=_0x35d184;_0x5e0ac0--)0x0==_0x5c62e1[_0x5e0ac0]['distance']?_0x5c62e1[_0x5e0ac0]['level']=_0x292821:(_0x292821--,_0x5c62e1[_0x5e0ac0]['level']=_0x292821,_0x292821--);}}['_fixObsoleteTags'](_0x58e94a){const _0x368ed=new Map(),_0x381418=this['editor']['model']['schema'];for(let _0xb73937=0x1;_0xb73937<_0x58e94a['length'];_0xb73937++){let _0x560e4e,_0xa698f5,_0x377aa8;const _0x2ee966=_0x58e94a[_0xb73937],_0x3c2165=_0x58e94a[_0xb73937-0x1];if('text'==_0x2ee966['type'])continue;if(_0x2ee966['type']!=_0x3c2165['type'])continue;if(!_0x381418['isBlock'](_0x3c2165['item'])||_0x381418['isLimit'](_0x3c2165['item']))continue;if(!_0x381418['isBlock'](_0x2ee966['item'])||_0x381418['isLimit'](_0x2ee966['item']))continue;if((_0x58e94a[_0xb73937]['isAdded']||_0x58e94a[_0xb73937]['isAddSuggestion'])&&_0x58e94a[_0xb73937-0x1]['isRemoved'])_0x560e4e=_0x58e94a[_0xb73937],_0xa698f5=_0x58e94a[_0xb73937-0x1],_0x377aa8=_0xb73937-0x1;else{if(!_0x58e94a[_0xb73937]['isRemoved']||!_0x58e94a[_0xb73937-0x1]['isAdded']&&!_0x58e94a[_0xb73937-0x1]['isAddSuggestion'])continue;_0x560e4e=_0x58e94a[_0xb73937-0x1],_0xa698f5=_0x58e94a[_0xb73937],_0x377aa8=_0xb73937;}const _0xe5bc6a=_0x560e4e['level']==_0xa698f5['level'],_0x41f78c=Math['abs'](_0x560e4e['level'])<Math['abs'](_0xa698f5['level'])&&0x0==_0xa698f5['distance'];(_0xe5bc6a||_0x41f78c)&&(_0x368ed['set'](_0xa698f5['id'],_0x560e4e['id']),_0x58e94a['splice'](_0x377aa8,0x1),_0xb73937--,_0x560e4e['isAdded']=!0x1);}for(let _0x16f6c8=0x0;_0x16f6c8<_0x58e94a['length'];_0x16f6c8++)_0x368ed['has'](_0x58e94a[_0x16f6c8]['pairId'])&&(_0x58e94a[_0x16f6c8]['pairId']=_0x368ed['get'](_0x58e94a[_0x16f6c8]['pairId']));}['_removeMissingPairs'](_0x9001e8){const _0x5cb6d8=new Set(_0x9001e8['map'](_0x459cff=>_0x459cff['id']));for(let _0x2390d3=0x0;_0x2390d3<_0x9001e8['length'];_0x2390d3++)_0x5cb6d8['has'](_0x9001e8[_0x2390d3]['pairId'])||0x0==_0x9001e8[_0x2390d3]['distance']||(_0x9001e8[_0x2390d3]['isIncorrect']=!0x0);return _0x9001e8['filter'](_0x49b473=>!_0x49b473['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1c6811){const _0x204345=new Set();for(let _0x411901=0x0;_0x411901<_0x1c6811['length'];_0x411901++){if(_0x204345['has'](_0x1c6811[_0x411901]['id'])&&_0x1c6811[_0x411901]['isRemoved']&&(_0x1c6811[_0x411901]['isIncorrect']=!0x0),_0x1c6811[_0x411901]['isIncorrect'])continue;if(0x0==_0x1c6811[_0x411901]['distance'])continue;if('elementStart'!=_0x1c6811[_0x411901]['type'])continue;if(null==_0x1c6811[_0x411901]['pairId'])continue;let _0x55a736=_0x411901+0x1,_0x177ec3=0x0;for(;_0x1c6811[_0x55a736]['id']!=_0x1c6811[_0x411901]['pairId'];)'elementStart'==_0x1c6811[_0x55a736]['type']?_0x177ec3++:'elementEnd'==_0x1c6811[_0x55a736]['type']&&_0x177ec3--,_0x55a736++;if(0x0!=_0x177ec3){if(_0x1c6811[_0x411901]['isRemoved'])_0x1c6811[_0x411901]['isIncorrect']=!0x0;else{for(;_0x55a736!=_0x411901;)_0x1c6811[_0x55a736]['isRemoved']&&0x0!=_0x1c6811[_0x55a736]['distance']&&(_0x1c6811[_0x55a736]['isIncorrect']=!0x0,_0x204345['add'](_0x1c6811[_0x55a736]['pairId'])),_0x55a736--;}}}return _0x1c6811['filter'](_0x4c73a1=>!_0x4c73a1['isIncorrect']);}['_removeUnsupportedChanges'](_0x13cecb){const _0x1537c5=this['editor']['model']['schema'];for(let _0x5c0149=0x0;_0x5c0149<_0x13cecb['length'];_0x5c0149++){if(!(_0x13cecb[_0x5c0149]['isAdded']||_0x13cecb[_0x5c0149]['isAddSuggestion']||_0x13cecb[_0x5c0149]['isRemoved']||_0x13cecb[_0x5c0149]['isRemoveSuggestion']))continue;if(0x0==_0x13cecb[_0x5c0149]['distance'])continue;const _0x3a590e=_0x13cecb[_0x5c0149]['item'];_0x1537c5['isBlock'](_0x3a590e)||_0x1537c5['isLimit'](_0x3a590e)||(_0x13cecb[_0x5c0149]['isAdded']&&delete _0x13cecb[_0x5c0149]['isAdded'],_0x13cecb[_0x5c0149]['isAddSuggestion']&&delete _0x13cecb[_0x5c0149]['isAddSuggestion'],_0x13cecb[_0x5c0149]['isRemoveSuggestion']&&delete _0x13cecb[_0x5c0149]['isRemoveSuggestion'],_0x13cecb[_0x5c0149]['isRemoved']&&(_0x13cecb[_0x5c0149]['isIncorrect']=!0x0));}return _0x13cecb['filter'](_0x33322b=>!_0x33322b['isIncorrect']);}['_makeModelFromTape'](_0x4b6968,_0x37b0b4,_0x21655c){const _0x325851=new gt(),_0x1dadf4=[],_0x4ab826=new Map(),_0x2a28c8=this['editor']['model'],_0x5aa598=_0x2a28c8['schema'],_0x36b3ed=[_0x325851],_0x4b6ff5={},_0x4a85ac={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2d5fce=null;const _0x5c28c9=[0x0];for(let _0x344d20=0x0;_0x344d20<_0x4b6968['length'];_0x344d20++)if('elementStart'===_0x4b6968[_0x344d20]['type']){_0x4b6968[_0x344d20]['previousPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9);const _0x321759=new ut(_0x4b6968[_0x344d20]['item']['name'],_0x4b6968[_0x344d20]['item']['getAttributes']());_0x36b3ed[0x0]['_appendChild'](_0x321759),_0x5c28c9['push'](0x0),_0x36b3ed['unshift'](_0x321759),_0x4b6968[_0x344d20]['nextPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9);}else'elementEnd'===_0x4b6968[_0x344d20]['type']?(_0x36b3ed['shift'](),_0x4b6968[_0x344d20]['previousPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9),_0x5c28c9['pop'](),_0x5c28c9[_0x5c28c9['length']-0x1]++,_0x4b6968[_0x344d20]['nextPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9)):(_0x4b6968[_0x344d20]['previousPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9),_0x2d5fce?_0x2d5fce['_data']+=_0x4b6968[_0x344d20]['item']['data']:_0x2d5fce=new wt(_0x4b6968[_0x344d20]['item']['data'],_0x4b6968[_0x344d20]['item']['getAttributes']()),_0x4b6968[_0x344d20+0x1]&&'text'===_0x4b6968[_0x344d20+0x1]['type']&&_0x24d7d2(_0x2d5fce,_0x4b6968[_0x344d20+0x1]['item'])||(_0x36b3ed[0x0]['_appendChild'](_0x2d5fce),_0x2d5fce=null),_0x5c28c9[_0x5c28c9['length']-0x1]+=_0x4b6968[_0x344d20]['item']['offsetSize'],_0x4b6968[_0x344d20]['nextPosition']=_0x2a28c8['createPositionFromPath'](_0x325851,_0x5c28c9));for(let _0x53a696=0x0;_0x53a696<_0x4b6968['length'];_0x53a696++){const _0x262b6e=_0x4b6968[_0x53a696]['previousPosition'],_0x352e5b=_0x4b6968[_0x53a696]['nextPosition'];for(const _0x548dfc of _0x4b6968[_0x53a696]['markersStart'])_0x4ab826['set'](_0x548dfc,{'start':_0x262b6e,'end':null});_0x2ddd30('isRemoveSuggestion',_0x53a696,_0x262b6e,_0x352e5b),_0x2ddd30('isAddSuggestion',_0x53a696,_0x262b6e,_0x352e5b),_0x2ddd30('isRemoved',_0x53a696,_0x262b6e,_0x352e5b),_0x2ddd30('isAdded',_0x53a696,_0x262b6e,_0x352e5b);for(const _0x471639 of _0x4b6968[_0x53a696]['markersEnd']){_0x4ab826['get'](_0x471639)['end']=_0x352e5b;}}for(const [_0x18a068,_0x2236f7]of _0x4ab826){const _0x1d0be8=this['editor']['model']['createRange'](_0x2236f7['start'],_0x2236f7['end']);_0x325851['markers']['set'](_0x18a068,_0x1d0be8);}return _0x1dadf4['sort']((_0x1711be,_0x38b18d)=>{const _0x423582=_0x325851['markers']['get']('revision:'+_0x1711be['id']),_0x51ebb0=_0x325851['markers']['get']('revision:'+_0x38b18d['id']);return _0x423582['start']['isBefore'](_0x51ebb0['start'])?-0x1:_0x423582['start']['isAfter'](_0x51ebb0['start'])?0x1:_0x423582['end']['isBefore'](_0x51ebb0['end'])?-0x1:_0x423582['end']['isAfter'](_0x51ebb0['end'])?0x1:'add'===_0x1711be['type']?-0x1:0x1;}),{'root':_0x325851,'changes':_0x1dadf4};function _0x2ddd30(_0xfc2858,_0x2d7599,_0x13640c,_0x132a13){const _0x3d2caa=!!_0x4b6968[_0x2d7599][_0xfc2858],_0x309b71=_0x3d2caa?_0x4b6968[_0x2d7599][_0xfc2858]['userId']:null,_0x31497e=_0x2d7599===_0x4b6968['length']-0x1,_0x2a58f5=_0x4a85ac[_0xfc2858][0x0],_0x1f8d6b=_0x5aa598['isObject'](_0x4b6968[_0x2d7599]['item']);!_0x4b6ff5[_0xfc2858]&&_0x3d2caa?_0x4b6ff5[_0xfc2858]={'start':_0x13640c,'tapeItem':_0x4b6968[_0x2d7599],'userId':_0x309b71,'type':_0xfc2858}:_0x4b6ff5[_0xfc2858]&&!_0x3d2caa?(_0x4b6ff5[_0xfc2858]['end']=_0x13640c,_0x760145(_0x4b6ff5[_0xfc2858]),_0x4b6ff5[_0xfc2858]=null):_0x4b6ff5[_0xfc2858]&&_0x3d2caa&&_0x4b6ff5[_0xfc2858]['userId']!==_0x309b71&&(_0x4b6ff5[_0xfc2858]['end']=_0x13640c,_0x2a58f5&&_0x2a58f5['userId']===_0x4b6ff5[_0xfc2858]['userId']||_0x760145(_0x4b6ff5[_0xfc2858]),_0x4b6ff5[_0xfc2858]={'start':_0x13640c,'tapeItem':_0x4b6968[_0x2d7599],'userId':_0x309b71,'type':_0xfc2858}),_0x4b6ff5[_0xfc2858]&&_0x1f8d6b&&('elementStart'!==_0x4b6968[_0x2d7599]['type']||_0x2a58f5&&_0x2a58f5['userId']===_0x309b71||_0x4a85ac[_0xfc2858]['unshift']({'userId':_0x309b71,'object':_0x4b6968[_0x2d7599]['item'],'change':_0x4b6ff5[_0xfc2858]}),'elementEnd'===_0x4b6968[_0x2d7599]['type']&&_0x2a58f5&&_0x2a58f5['object']===_0x4b6968[_0x2d7599]['item']&&(_0x4a85ac[_0xfc2858]['shift'](),_0x4b6ff5[_0xfc2858]=_0x2a58f5['change'])),_0x4b6ff5[_0xfc2858]&&_0x31497e&&(_0x4b6ff5[_0xfc2858]['end']=_0x132a13,_0x760145(_0x4b6ff5[_0xfc2858]),_0x4b6ff5[_0xfc2858]=null);}function _0x760145({start:_0x2d1970,end:_0x5e4587,tapeItem:_0x150232,userId:_0x594d23,type:_0x135c6f}){const _0x40732f=_0x150232['item'],_0x2276aa=_0x2a28c8['schema']['isBlock'](_0x40732f)&&!_0x2a28c8['schema']['isLimit'](_0x40732f),_0x341ccd=_0x2d1970['nodeAfter']==_0x5e4587['parent']&&_0x5e4587['isAtStart'];if(_0x2276aa&&_0x341ccd)return;const _0xb19198=_0x2a28c8['createRange'](_0x2d1970,_0x5e4587),_0x59b65b=_0x37b0b4['get'](_0x594d23),_0x17746d=new r({'author':_0x59b65b,'type':'isAdded'==_0x135c6f||'isAddSuggestion'==_0x135c6f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x135c6f||'isRemoveSuggestion'==_0x135c6f},'createdAt':new Date(),'rootName':_0x21655c});_0x1dadf4['push'](_0x17746d),_0x325851['markers']['set']('revision:'+_0x17746d['id'],_0xb19198);}function _0x24d7d2(_0xfdb38f,_0x209cd7){const _0x83ceeb=_0xfdb38f['getAttributes'](),_0x574401=_0x209cd7['getAttributes']();for(const _0x1ffcf8 of _0x83ceeb){if(_0x1ffcf8[0x1]!==_0x209cd7['getAttribute'](_0x1ffcf8[0x0]))return!0x1;_0x574401['next']();}return _0x574401['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x332422=>{const _0x322a8a=_0x332422['markerName']['split'](':')[0x1],_0x27eac9=this['_getChangeFromId'](_0x322a8a);if(!_0x27eac9)return null;const _0x216a9f='add'==_0x27eac9['type']?'insertion':'deletion',_0x8345fa=['ck-suggestion-marker','ck-suggestion-marker-'+_0x216a9f];return _0x27eac9['data']['isSuggestion']&&_0x8345fa['push']('ck-suggestion-marker-'+_0x216a9f+'-new'),this['activeChange']==_0x27eac9&&_0x8345fa['push']('ck-suggestion-marker--active'),{'classes':_0x8345fa,'attributes':{'data-change-id':_0x322a8a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x257325=>{_0x257325['on']('element:pre',(_0x18c797,_0x52805a,_0x95b17e)=>{const _0x132778=_0x52805a['viewItem']['getChild'](0x0);if(!_0x132778||!_0x132778['is']('element','code'))return;if(!_0x95b17e['consumable']['consume'](_0x132778,{'attributes':['vid_start','vid_end']}))return;const _0x5012d9=_0x52805a['modelRange']['start']['nodeAfter'];_0x95b17e['writer']['setAttribute']('vid_start',_0x132778['getAttribute']('vid_start'),_0x5012d9),_0x95b17e['writer']['setAttribute']('vid_end',_0x132778['getAttribute']('vid_end'),_0x5012d9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5af070=>{_0x5af070['on']('element',(_0x49feda,_0x1d7c4e,_0x44b419)=>{if(!_0x44b419['consumable']['consume'](_0x1d7c4e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1d7c4e['modelRange']['isCollapsed'])return;const _0x2b7c72=_0x1d7c4e['modelRange']['start']['nodeAfter'];_0x2b7c72['hasAttribute']('vid_start')||_0x2b7c72['hasAttribute']('vid')||(_0x44b419['writer']['setAttribute']('vid_start',_0x1d7c4e['viewItem']['getAttribute']('vid_start'),_0x2b7c72),_0x44b419['writer']['setAttribute']('vid_end',_0x1d7c4e['viewItem']['getAttribute']('vid_end'),_0x2b7c72));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43ec02=>_0x43ec02['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe9249a,[,_0x34f8dd])=>{['vid_start','vid_end','vid']['includes'](_0x34f8dd)&&(_0xe9249a['return']=!0x0,_0xe9249a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x493459=>{_0x493459['on']('attribute:vid',(_0x278585,_0x540f32,_0x2abd3e)=>{if('\x20'!=_0x540f32['item']['data']||_0x540f32['item']['parent']['maxOffset']>0x1)return;if(!_0x2abd3e['consumable']['consume'](_0x540f32['item'],_0x278585['name']))return;const _0xd563d2=_0x2abd3e['writer'],_0x7c683b=_0x2abd3e['mapper']['toViewRange'](_0x540f32['range']);_0xd563d2['wrap'](_0x7c683b,_0xd563d2['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x55c5d4){const _0x20ee0a=_0x55c5d4['plugins']['get']('RevisionViewer');return(_0x4e82db,_0x48ea98,_0x3b5f11)=>{const _0x53a0ee=_0x48ea98['markerName']['split'](':')[0x1],_0x273cec=_0x20ee0a['_getChangeFromId'](_0x53a0ee);if(!_0x273cec)return null;const _0x1b7c2f='add'==_0x273cec['type']?'split':'merge';if(!_0x3b5f11['consumable']['test'](_0x48ea98['markerRange'],_0x4e82db['name']))return;const _0xfdb499=_0x48ea98['markerRange']['getWalker'](),_0x75ae90=_0x48ea98['markerRange']['start'],_0x499194=_0x55c5d4['model']['schema'];let _0x5683e4=null,_0x31a17b=null,_0x100e83=!0x1,_0x379f8d=!0x1;for(const _0x5264eb of _0xfdb499){const _0x41eedf=_0x5264eb['item'];_0x100e83=_0x100e83||_0x499194['isContent'](_0x41eedf);const _0xb7d2a8=_0x3b5f11['mapper']['toViewElement'](_0x41eedf);if(_0xb7d2a8&&_0xb7d2a8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5264eb['type']&&(_0x499194['isBlock'](_0x41eedf)&&!_0x499194['isLimit'](_0x41eedf)&&(_0x41eedf['nextSibling']||_0x75ae90['isAtEnd']?_0x5683e4&&_0x5683e4['parent']==_0x41eedf||(_0x5683e4=_0x41eedf,_0x305dea(_0x5264eb['previousPosition']),_0x379f8d=!0x0):_0x31a17b=_0x31a17b||_0x5264eb['previousPosition']));}function _0x305dea(_0x3d89a2){const _0x14ad4b=_0x3b5f11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b7c2f}),_0x1bf8e7=_0x3b5f11['mapper']['toViewPosition'](_0x3d89a2);_0x273cec['data']['isSuggestion']&&_0x3b5f11['writer']['addClass']('ck-suggestion-marker-'+_0x1b7c2f+'-new',_0x14ad4b),_0x20ee0a['activeChange']==_0x273cec&&_0x3b5f11['writer']['addClass']('ck-suggestion-marker--active',_0x14ad4b),_0x3b5f11['writer']['insert'](_0x1bf8e7,_0x14ad4b),_0x3b5f11['mapper']['bindElementToMarker'](_0x14ad4b,_0x48ea98['markerName']);}_0x100e83||_0x379f8d||!_0x31a17b||_0x305dea(_0x31a17b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x372868,_0x1e7a6a,_0x4533ff)=>{const _0x3ad723=_0x4533ff['mapper']['markerNameToElements'](_0x1e7a6a['markerName']);if(_0x3ad723){for(const _0x153386 of _0x3ad723)(_0x153386['hasClass']('ck-suggestion-marker-split')||_0x153386['hasClass']('ck-suggestion-marker-merge'))&&(_0x4533ff['mapper']['unbindElementFromMarkerName'](_0x153386,_0x1e7a6a['markerName']),_0x4533ff['writer']['remove'](_0x153386));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x58928c,_0x560dac,_0x166606)=>{const _0x1f3e25=_0x560dac['markerName']['split'](':')[0x1],_0x4f520a=this['_getChangeFromId'](_0x1f3e25);if(!_0x4f520a)return null;const _0x33e676='add'==_0x4f520a['type']?'split':'merge';if(_0x166606['consumable']['test'](_0x560dac['markerRange'],_0x58928c['name']))for(const _0x54ac7e of _0x560dac['markerRange']['getItems']()){if(!_0x54ac7e['is']('element','softBreak'))continue;const _0x46ef70=_0x166606['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33e676}),_0x381b46=_0x166606['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x54ac7e));_0x4f520a['data']['isSuggestion']&&_0x166606['writer']['addClass']('ck-suggestion-marker-'+_0x33e676+'-new',_0x46ef70),this['activeChange']==_0x4f520a&&_0x166606['writer']['addClass']('ck-suggestion-marker--active',_0x46ef70),_0x166606['writer']['insert'](_0x381b46,_0x46ef70),_0x166606['mapper']['bindElementToMarker'](_0x46ef70,_0x560dac['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5d81a5=>{for(const _0x27161f of this['editor']['model']['document']['getRootNames']()){const _0x898a35=this['editor']['model']['document']['getRoot'](_0x27161f),_0x53b5ca=this['editor']['editing']['view']['document']['getRoot'](_0x27161f);if(_0x53b5ca){const _0x935d74=_0x898a35['getAttribute']('revisionHistoryAttachChange');if(_0x5d81a5['removeAttribute']('data-change-id',_0x53b5ca),_0x5d81a5['removeClass']('ck-revision-history-root-add',_0x53b5ca),_0x5d81a5['removeClass']('ck-revision-history-root-remove',_0x53b5ca),_0x5d81a5['removeClass']('ck-revision-history-root--active',_0x53b5ca),_0x935d74){const _0x599378=this['_getChangeFromId'](_0x935d74);if(!_0x599378)return null;_0x5d81a5['setAttribute']('data-change-id',_0x935d74,_0x53b5ca),_0x5d81a5['addClass']('ck-revision-history-root-'+_0x599378['type'],_0x53b5ca),this['activeChange']==_0x599378&&_0x5d81a5['addClass']('ck-revision-history-root--active',_0x53b5ca);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x552764=>'revision-comment:'+_0x552764,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x43c0ba=>'revision-suggestion:'+_0x43c0ba,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4b1825=>({'name':'suggestion:'+_0x4b1825,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x38b412=>{const _0x2cbacb=_0x38b412['markerName']['split'](':')[0x1];return'insertion'!=_0x2cbacb&&'deletion'!=_0x2cbacb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2cbacb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x222e1a,_0x28939,_0x134161)=>{const _0xdbd83b=_0x134161['mapper']['markerNameToElements'](_0x28939['markerName']);if(_0xdbd83b){for(const _0x1ce5c5 of _0xdbd83b)_0x1ce5c5['is']('uiElement')&&(_0x134161['mapper']['unbindElementFromMarkerName'](_0x1ce5c5,_0x28939['markerName']),_0x134161['writer']['remove'](_0x1ce5c5));}},{'priority':'high'});}['_getChangeFromId'](_0x885749){return this['_changeIdToChange']['get'](_0x885749);}['_getViewForChange'](_0x3370a6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3370a6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x554469,_0x5598a4,_0x194666,_0xbf56e1)=>{_0xbf56e1&&this['_balloon']['remove'](_0xbf56e1),_0x194666&&(this['_balloon']['add']({'view':_0x194666,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x7e8ec7=this['editor']['editing'],_0x59a1bd=this['_getChangeFromId'](_0x194666['changeId']);let _0x24085d;if(_0x59a1bd['data']['isOnRoot']){const _0x592771=_0x7e8ec7['view']['getDomRoot'](_0x59a1bd['rootName']);_0x24085d=Array['from'](_0x592771['getClientRects']());}else{const _0x25cb27=this['editor']['model']['markers']['get']('revision:'+_0x194666['changeId']);_0x24085d=Array['from'](_0x7e8ec7['mapper']['markerNameToElements'](_0x25cb27['name']))['map'](_0x491f83=>_0x7e8ec7['view']['domConverter']['mapViewToDom'](_0x491f83))['map'](_0x156668=>Array['from'](_0x156668['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x24085d[0x0];return _0x24085d['find'](_0x73705f=>_0x73705f['top']-0x3<=this['_activeViewTarget']['y']&&_0x73705f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x73705f['left']-0x3<=this['_activeViewTarget']['x']&&_0x73705f['right']+0x3>=this['_activeViewTarget']['x'])||_0x24085d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5e51b3,_0x192cbf,_0x264ff6,_0x1d3440)=>{this['activeView']=_0x264ff6?this['_getViewForChange'](_0x264ff6):null,this['editor']['model']['change'](()=>{const _0x355411=this['editor']['editing'];_0x1d3440&&(_0x1d3440['data']['isOnRoot']?_0x355411['view']['change'](_0x132da0=>{_0x132da0['removeClass']('ck-revision-history-root--active',_0x355411['view']['document']['getRoot'](_0x1d3440['rootName']));}):_0x355411['reconvertMarker']('revision:'+_0x1d3440['id'])),_0x264ff6&&(_0x264ff6['data']['isOnRoot']?_0x355411['view']['change'](_0x14b8fd=>{_0x14b8fd['addClass']('ck-revision-history-root--active',_0x355411['view']['document']['getRoot'](_0x264ff6['rootName']));}):_0x355411['reconvertMarker']('revision:'+_0x264ff6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x17be40,_0x178727)=>{if(this['activeChange'])return;const _0x30a30b=this['_findChangeIdFromDomTarget'](_0x178727['target']),_0x1eca4f=this['_changeIdToChange']['get'](_0x30a30b);_0x1eca4f?(this['_activeViewTarget']={'x':_0x178727['domEvent']['x'],'y':_0x178727['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1eca4f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x42ec86,_0x4e722e)=>{const _0x5d299b=this['_findChangeIdFromDomTarget'](_0x4e722e['target']),_0x18740f=this['_changeIdToChange']['get'](_0x5d299b);_0x18740f?(this['_activeViewTarget']={'x':_0x4e722e['domEvent']['x'],'y':_0x4e722e['domEvent']['y']},_0x18740f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x18740f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xaaf9b9){do{const _0x3ec264=_0xaaf9b9['getAttribute']('data-change-id');if(_0x3ec264)return _0x3ec264;_0xaaf9b9=_0xaaf9b9['parent'];}while(_0xaaf9b9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5c696e=>{for(const _0x132158 of this['editor']['model']['markers'])_0x5c696e['removeMarker'](_0x132158);});}}function Z(_0x505026,_0x3a929e){return(_0x21afdc,_0x2a8936,_0x50f888)=>{if(!_0x50f888['consumable']['test'](_0x2a8936['markerRange'],_0x21afdc['name']))return;const _0x2e08a8=_0x2a8936['markerRange']['getWalker'](),_0x2ecbf6=_0x2a8936['markerRange']['start'],_0x52b16f=_0x505026['model']['schema'];let _0x4760b9=null,_0x54a04e=null,_0x15ee45=!0x1,_0x2d1ee5=!0x1;for(const _0x1351b9 of _0x2e08a8){const _0x3b0865=_0x1351b9['item'];_0x15ee45=_0x15ee45||_0x52b16f['isContent'](_0x3b0865);const _0x5dfbbf=_0x50f888['mapper']['toViewElement'](_0x3b0865);if(_0x5dfbbf&&_0x5dfbbf['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1351b9['type']&&(_0x52b16f['isBlock'](_0x3b0865)&&!_0x52b16f['isLimit'](_0x3b0865)&&(_0x3b0865['nextSibling']||_0x2ecbf6['isAtEnd']?_0x4760b9&&_0x4760b9['parent']==_0x3b0865||(_0x4760b9=_0x3b0865,_0x78f883(_0x1351b9['previousPosition']),_0x2d1ee5=!0x0):_0x54a04e=_0x54a04e||_0x1351b9['previousPosition']));}function _0x78f883(_0xd980bb){const _0xc3c57a=_0x50f888['mapper']['toViewPosition'](_0xd980bb),_0x2a1e7a=_0x50f888['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3a929e});_0x50f888['writer']['insert'](_0xc3c57a,_0x2a1e7a),_0x50f888['mapper']['bindElementToMarker'](_0x2a1e7a,_0x2a8936['markerName']);}_0x15ee45||_0x2d1ee5||!_0x54a04e||_0x78f883(_0x54a04e);};}class _t extends _0x3b1154{constructor(_0x5a1db3){super(_0x5a1db3);const _0xe885b0=_0x5a1db3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xe885b0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xe885b0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1d29cf=this['editor'],_0x1e6dbb=_0x1d29cf['plugins']['get'](d),_0x6851e0=_0x1e6dbb['isReady']?_0x1e6dbb['diff']['newRevisionId']:null;_0x1d29cf['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x6851e0);}['refresh'](){const {isReady:_0x56a2b1,isEnabled:_0x52669d,repository:_0x429020,diff:_0x206c08}=this['editor']['plugins']['get'](d),_0x3d62bd=_0x206c08&&_0x429020['getLaterVisibleRevision'](_0x206c08['newRevisionId']);this['isEnabled']=_0x56a2b1&&_0x52669d&&Boolean(_0x3d62bd);}}class yt extends _0x3b1154{['_step'];constructor(_0x598815,{direction:_0x10633c}){super(_0x598815);const _0x1c1ce5=_0x598815['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x10633c?0x1:-0x1,this['listenTo'](_0x1c1ce5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1c1ce5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1c1ce5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x111d23=this['editor'],_0x2be752=_0x111d23['plugins']['get'](d),{isNavigationMode:_0x1fdfa6,currentChangeNumber:_0x394764}=_0x2be752;let _0x1dde81;if(_0x2be752['activeChange']=_0x1fdfa6?_0x2be752['diff']['changes']['get'](_0x394764+this['_step']):_0x2be752['diff']['changes']['first'],_0x2be752['activeChange']['data']['isOnRoot'])_0x1dde81=_0x111d23['editing']['view']['getDomRoot'](_0x2be752['activeChange']['rootName']);else{const _0x46ad44=_0x111d23['model']['markers']['get']('revision:'+_0x2be752['activeChange']['id']);_0x1dde81=_0x12bc2a(_0x111d23['editing'],_0x46ad44);}_0x2cff1f({'target':_0x1dde81,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x7e4cee,currentChangeNumber:_0x136232,numberOfChanges:_0x28dbc8,isReady:_0x31913b,isEnabled:_0x1ef84a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1ef84a&&_0x31913b&&_0x28dbc8)&&(!_0x7e4cee||(0x1===this['_step']?_0x136232<_0x28dbc8-0x1:_0x136232>0x0));}}class _i extends _0x3438c0{constructor(_0x5c0969){super(_0x5c0969);const _0x213a46=this['bindTemplate'],_0x5ad439=new _0x1cfe19(_0x5c0969),_0x52d226=new _0x1cfe19(_0x5c0969);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',(_0x1ecf3c,_0x1da9c1)=>_0x1ecf3c&&_0x1da9c1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x42fd21,_0x2e0d32,_0x27e4d5,_0x486849)=>{if(!_0x42fd21)return m(_0x5c0969,'Loading...');if(!_0x27e4d5)return m(_0x5c0969,'No\x20changes');const _0x397fcc=m(_0x5c0969,'NUMBER_OF_CHANGES',_0x27e4d5);return _0x486849?m(_0x5c0969,'X_OF_Y_CHANGES',[_0x2e0d32+0x1,_0x27e4d5]):_0x397fcc;}),_0x5ad439['set']({'label':m(_0x5c0969,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x20e947}),_0x52d226['set']({'label':m(_0x5c0969,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2efc78}),_0x5ad439['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x52d226['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5ad439['on']('execute',()=>this['fire']('execute','backward')),_0x52d226['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',_0x213a46['if']('_isStatusLabelVisible','ck-hidden',_0x56889e=>!_0x56889e)]},'children':[{'text':_0x213a46['to']('isNavigationMode',_0x5ab27f=>_0x5ab27f?m(_0x5c0969,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5c0969,'Total')+':\x20')}]},{'text':_0x213a46['to']('_statusText')}]},new _0x139776(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5ad439,_0x52d226]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x19eb44{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5566e2=this['editor']['editing']['view'];_0x5566e2['change'](_0x3d938c=>{for(const _0x58f2bb of _0x5566e2['document']['roots'])_0x3d938c['addClass'](ce,_0x58f2bb);});}['hide'](){const _0xafec11=this['editor']['editing']['view'];_0xafec11['change'](_0x1804d3=>{for(const _0x2c17f0 of _0xafec11['document']['roots'])_0x1804d3['removeClass'](ce,_0x2c17f0);});}}class w extends _0x19eb44{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x36ed8e=this['editor'],_0x3efd1e=_0x36ed8e['plugins']['get'](d),_0x2414f8=_0x36ed8e['plugins']['get'](le);_0x36ed8e['ui']['componentFactory']['add']('exitToEditing',_0xe37b4a=>{const _0x5a188b=new _0x1cfe19(_0xe37b4a);return _0x5a188b['set']({'label':m(_0xe37b4a,'Back\x20to\x20editing'),'icon':_0x520d6c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5a188b,'execute',()=>{_0x36ed8e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5a188b;}),_0x36ed8e['ui']['componentFactory']['add']('restoreRevision',_0x490948=>{const _0x179869=new _0x1cfe19(_0x490948);return _0x179869['set']({'label':m(_0x490948,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x179869['bind']('isEnabled')['to'](_0x36ed8e['commands']['get']('restoreRevision')),this['listenTo'](_0x179869,'execute',()=>_0x36ed8e['execute']('restoreRevision')),_0x179869;}),_0x36ed8e['ui']['componentFactory']['add']('changesNavigation',_0x34ed44=>{const _0x18e3e0=new _i(_0x34ed44),_0x32c54d=_0x36ed8e['commands']['get']('showPreviousChange'),_0xd3f57d=_0x36ed8e['commands']['get']('showNextChange');return _0x18e3e0['bind']('isBackwardNavigationEnabled')['to'](_0x32c54d,'isEnabled'),_0x18e3e0['bind']('isForwardNavigationEnabled')['to'](_0xd3f57d,'isEnabled'),_0x18e3e0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3efd1e),this['listenTo'](_0x18e3e0,'execute',(_0x59bf43,_0x2d64ab)=>{_0x36ed8e['execute']('forward'===_0x2d64ab?'showNextChange':'showPreviousChange');}),_0x18e3e0;}),_0x2414f8['show'](),_0x3efd1e['on']('change:isReady',(_0x592f0a,_0x3bff0d,_0x59c736)=>{_0x59c736?_0x2414f8['hide']():_0x2414f8['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x338227,_0x3b98a1){super(_0x338227,_0x3b98a1);const _0x9bf87f=this['bindTemplate'];this['set']({'label':m(_0x338227,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x338227,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x9bf87f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4424a6=this['fieldView']['element'];this['_tooltipString']=_0x4424a6['scrollWidth']>_0x4424a6['clientWidth']&&_0x4424a6['value']||'';}}class oi extends _0x3438c0{constructor(_0x4e5e72,_0x800377,_0x205423){super(_0x4e5e72);const _0x2febbf=new _0x2b6dd8();_0x2febbf['set']({'content':_0x14a93e,'viewBox':'0\x200\x2011\x2010'});const _0x171cb9=['ck','ck-revision-history-sidebar__revision-author'];_0x205423&&_0x171cb9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x111330=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4e5e72,_0x205423?'Revision\x20creator':'Revision\x20author')},'children':[_0x2febbf,_0x800377['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x171cb9},'children':_0x111330});}}function ni(_0x3d4233,_0x5a2b96){const _0x5484ac=_0x3d4233['bindTemplate'],_0x5a8880=_0x3d4233['locale'],_0x5e669d=_0x36390b(_0x5a8880);_0x5e669d['panelPosition']='sw';const _0x589c7a=function(_0x4f9356,_0xd6128c){const _0x4276fe=function(_0x21da80,_0x1ae8b1){const _0x1fb953=_0x21da80['locale'],_0x196cab={'Compare\x20against\x20selected':m(_0x1fb953,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1fb953,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1fb953,'Restore\x20this\x20revision')};return _0x1ae8b1['map'](_0x172e77=>{const _0x3d60c1=_0x196cab[_0x172e77['name']];return _0x3d60c1&&_0x3d60c1!==_0x172e77['name']&&(_0x172e77['name']=_0x3d60c1),_0x172e77;});}(_0x4f9356,_0xd6128c),_0xca437=new _0x1caf96();for(const _0x2799a0 of _0x4276fe){const _0x262887={'type':'button','model':new to({'label':_0x2799a0['name'],'class':_0x2799a0['class'],'withText':!0x0,'role':'menuitem','_action':_0x2799a0['action']})};_0x262887['model']['bind']('isEnabled')['to'](_0x4f9356,'isActionsDropdownOpen',_0x55b986=>'function'!=typeof _0x2799a0['isEnabled']||(!_0x55b986||_0x2799a0['isEnabled'](_0x4f9356))),_0xca437['add'](_0x262887);}return _0xca437;}(_0x3d4233,_0x5a2b96);return _0x3d4233['bind']('isActionsDropdownOpen')['to'](_0x5e669d,'isOpen'),_0x5e669d['buttonView']['set']({'label':m(_0x5a8880,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28e837}),_0x5e669d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5484ac['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5484ac['to'](_0x2c651a=>_0x2c651a['stopPropagation']())}}),_0x5e669d['on']('execute',_0x4f8475=>{_0x3d4233['isReady']&&'function'==typeof _0x4f8475['source']['_action']&&_0x4f8475['source']['_action'](_0x3d4233);}),_0x59951c(_0x5e669d,_0x589c7a,{'role':'menu'}),_0x5e669d['listenTo'](_0x3d4233,'change:isActionsDropdownOpen',(_0x40254b,_0x3e0630,_0x3e7a6d)=>{if(_0x3e7a6d)for(const _0x4b4492 of _0x5e669d['listView']['items']){const _0xc12c1f=_0x4b4492['children']['first'],_0x3fa91b=_0x5a2b96['find'](_0x587d14=>_0x587d14['action']===_0xc12c1f['_action'])['isVisible'];_0x4b4492['isVisible']=void 0x0===_0x3fa91b||_0x3fa91b(_0x3d4233);}}),_0x5e669d;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x220777(_0x3438c0){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x22689c,_0x89814b,_0x2114d3,_0x6bdabd){super(_0x22689c);const _0x417952=this['bindTemplate'],_0x32ebb3=function(_0x12a106,_0x4b1359){const _0x5c6fb4=Array['from'](_0x4b1359['authors'])['filter'](_0x5d7d53=>_0x5d7d53!=_0x4b1359['creator']);return _0x4b1359['creator']&&_0x5c6fb4['unshift'](_0x4b1359['creator']),_0x5c6fb4['map'](_0x4d19dc=>new oi(_0x12a106,_0x4d19dc,_0x4d19dc==_0x4b1359['creator']));}(_0x22689c,_0x89814b);this['id']=_0x89814b['id'],this['_revision']=_0x89814b,this['_requireRevisionName']=_0x6bdabd,this['bind']('name','createdAt')['to'](_0x89814b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x36e802=>{return _0x2eff27=_0x22689c['uiLanguage'],(_0x1b006f=_0x36e802)['toLocaleDateString'](_0x2eff27,{'month':'long','day':'numeric'})+',\x20'+_0x1b006f['toLocaleTimeString'](_0x2eff27,{'hour':'numeric','minute':'numeric'});var _0x2eff27,_0x1b006f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x22689c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xe059d4=>_0xe059d4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x24cf42,_0x3b4495)=>_0x24cf42&&_0x3b4495),this['revisionActionsView']=_0x2114d3&&_0x2114d3['length']?ni(this,_0x2114d3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x417952['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x417952['if']('isEnabled','ck-disabled',_0xc3809f=>!_0xc3809f),_0x417952['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x417952['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x417952['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':_0x417952['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':_0x32ebb3}]},this['revisionActionsView']],'on':{'click':_0x417952['to'](_0x368a96=>{_0x368a96['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2eb7a2=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2eb7a2,'change',()=>{this['_requireRevisionName']&&!_0x2eb7a2['value']||this['fire']('setName',{'id':this['id'],'name':_0x2eb7a2['value']}),_0x2eb7a2['value']||(_0x2eb7a2['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(_0x4b6207,_0x1bf8b1){const _0x562a6c=_0x1484ed['fromJSDate'](_0x4b6207)['setLocale'](_0x1bf8b1),_0x5a62eb=_0x1484ed['local'](),_0x1d0aff=_0x5a62eb['minus']({'days':0x1})['startOf']('day');let _0x54b729,_0x489922;return _0x562a6c['hasSame'](_0x5a62eb,'day')?(_0x54b729=_0x562a6c['startOf']('day')['toJSDate'](),_0x489922=_0x562a6c['toRelativeCalendar']()):_0x562a6c['hasSame'](_0x1d0aff,'day')?(_0x54b729=_0x1d0aff['toJSDate'](),_0x489922=_0x562a6c['toRelativeCalendar']()):_0x562a6c['hasSame'](_0x5a62eb,'week')?(_0x54b729=_0x562a6c['startOf']('week')['toJSDate'](),_0x489922=_0x562a6c['weekdayLong']||''):_0x562a6c['hasSame'](_0x5a62eb,'year')?(_0x54b729=_0x562a6c['startOf']('month')['toJSDate'](),_0x489922=_0x562a6c['monthLong']||''):(_0x54b729=_0x562a6c['startOf']('year')['toJSDate'](),_0x489922=String(_0x562a6c['year'])),{'startDate':_0x54b729,'localizedPeriodName':_0x489922};}class mi extends _0x3438c0{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x30990e,_0x481e88,_0x4a0e06,_0x40378c){super(_0x30990e);const _0x51a809=vi(_0x481e88,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x481e88,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4a0e06,this['_requireRevisionName']=_0x40378c,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':_0x51a809}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x43cc45){const _0x3c93f5=new ai(this['locale'],_0x43cc45,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3c93f5);}['removeRevision'](_0x94c180){const _0x1fc97e=this['revisionViews']['find'](_0x3c8c1c=>_0x3c8c1c['id']===_0x94c180['id']);this['revisionViews']['remove'](_0x1fc97e);}}class as extends _0x3438c0{constructor(_0x52913d){super(_0x52913d);const _0xac4209=new _0x2b6dd8();_0xac4209['content']=_0x533e5c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xac4209,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x52913d,'Revision\x20history')]}]});}}class di extends _0x3438c0{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xc8c053,_0x496f5f,_0x12a917,_0x49631f){super(_0xc8c053);const _0x11e09b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x496f5f,this['_revisionActions']=_0x12a917,this['_requireRevisionName']=_0x49631f,this['on']('select',(_0x1680b5,_0x14f4e6)=>{this['fire']('revisionSelected',_0x14f4e6);}),this['on']('setName',(_0xa09712,_0x2a8979)=>{this['fire']('revisionSetName',_0x2a8979);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xc8c053),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x11e09b['if']('isEnabled','ck-disabled',_0x1f9ec7=>!_0x1f9ec7)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4e9b62 of this['_revisions'])this['_addRevision'](_0x4e9b62);this['_revisions']['on']('add',(_0x50af32,_0x56ed3a)=>{this['_addRevision'](_0x56ed3a);}),this['_revisions']['on']('remove',(_0x43bf68,_0x14196d)=>{this['_removeRevision'](_0x14196d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x22d476=>_0x22d476['revisionViews']['map'](_0x44b3ed=>_0x44b3ed))['flat']();}['selectRevision'](_0x7033b1){for(const _0x27c13a of this['revisionViews'])_0x7033b1&&_0x7033b1['id']===_0x27c13a['id']?_0x27c13a['select']():_0x27c13a['deselect']();}['highlightRevisions'](_0x5c4c85){for(const _0x13eca1 of this['revisionViews'])_0x5c4c85['some'](({id:_0x463c16})=>_0x463c16===_0x13eca1['id'])?_0x13eca1['highlight']():_0x13eca1['unhighlight']();}['_addRevision'](_0x36723c){const _0x524b25=vi(_0x36723c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x300685=this['timePeriodViews']['get'](0x0);_0x300685&&_0x300685['startDate']['getTime']()===_0x524b25['getTime']()||(_0x300685=new mi(this['locale'],_0x524b25,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x300685)),_0x300685['addRevision'](_0x36723c);}['_removeRevision'](_0x45a490){const _0x288138=vi(_0x45a490['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x288138)['removeRevision'](_0x45a490);}['_getTimePeriodViewByStartDate'](_0x327392){return this['timePeriodViews']['find'](_0x58b0f1=>_0x58b0f1['startDate']['getTime']()===_0x327392['getTime']());}}class g extends _0x19eb44{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x5a611e,uid as _0x35e6d2,Collection as _0x1609cb,logWarning as _0x1f7579,FocusTracker as _0x4a1ddf,KeystrokeHandler as _0x5dd089,scrollViewportToShowTarget as _0x14ef67,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x393ea3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5b727a,set as _0x51da28,unset as _0x3cdcb8,isEqual as _0x2e121d}from'es-toolkit/compat';import{Plugin as _0x50acf8,PendingActions as _0x246f5c,Command as _0x2d0252,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x182031,getMarkerDomElement as _0x21fcd6,ConfirmMixin as _0x1bcdfe,sanitizeEditorConfig as _0x1878ee}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x45b703,Element as ut,Range as ft,ViewUIElement as _0xd41be1,ViewRawElement as _0x2f3ec5,ViewEmptyElement as _0x284894,ViewAttributeElement as _0xd04bad,ViewContainerElement as _0x1e13ea,Position as vt,ViewText as _0x2772f1,ViewElement as _0x15d9f0,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3245ba,IconChevronUp as _0x33a2ce,IconChevronDown as _0xbf11ca,IconUndo as _0x385a12,IconUser as _0x7cfb26,IconThreeVerticalDots as _0x3d7860}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x49d5f0,injectCssTransitionDisabler as ts,submitHandler as _0x35980e,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x3072eb,ListView as _0x5197f5,ListItemView as te,ButtonView as _0x3fac83,MenuBarMenuView as _0x5f340c,MenuBarMenuListView as _0x53139b,MenuBarMenuListItemView as _0x1517e5,MenuBarMenuListItemButtonView as _0x33e482,ContextualBalloon as _0x268d94,ToolbarSeparatorView as _0x4c72c5,IconView as _0x4978c0,addListToDropdown as _0x2077fc,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x263b49}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x5a611e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5d86ff){super(),this['id']=_0x5d86ff['id']||_0x35e6d2(),this['creator']=_0x5d86ff['creator']||null,this['authors']=_0x5d86ff['authors']||[],this['diffData']=_0x5d86ff['diffData']||null,this['toVersion']=_0x5d86ff['toVersion']||0x0,this['fromVersion']=_0x5d86ff['fromVersion']||0x0,this['set']('name',_0x5d86ff['name']||''),this['set']('createdAt',_0x5d86ff['createdAt']||new Date()),this['set']('attributes',_0x5d86ff['attributes']||{});}['setName'](_0x1ca478){this['_update']({'name':_0x1ca478});}['setAttribute'](_0x46744a,_0x126847){const _0x1f8fe6=_0x5b727a(this['attributes']);_0x51da28(_0x1f8fe6,_0x46744a,_0x126847),this['_update']({'attributes':_0x1f8fe6});}['removeAttribute'](_0x504718){const _0x3f8809=_0x5b727a(this['attributes']);_0x3cdcb8(_0x3f8809,_0x504718),this['_update']({'attributes':_0x3f8809});}['_update'](_0x11e965,_0x3ea0a2=!0x1){let _0x3ca5e6=!0x1;const _0x5b5823={'id':this['id']},_0x32c306=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4ff468 of _0x32c306){const _0xabb570=_0x11e965[_0x4ff468];void 0x0!==_0xabb570&&_0xabb570!==this[_0x4ff468]&&(this[_0x4ff468]=_0xabb570,_0x5b5823[_0x4ff468]=_0xabb570,_0x3ca5e6=!0x0);}_0x3ca5e6&&(_0x5b5823['authors']&&(_0x5b5823['authorsIds']=_0x5b5823['authors']['map'](_0x28c6c3=>_0x28c6c3['id']),delete _0x5b5823['authors']),this['fire']('_update',_0x5b5823,_0x3ea0a2));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5a5301=>_0x5a5301['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x50acf8{['_revisions'];static get['requires'](){return[_0x182031];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xae3eab){super(_0xae3eab),this['_revisions']=new _0x1609cb();}['afterInit'](){!async function(_0xa7c93e){const _0x99615e=_0x4f3ae1([0x78,0x47,0x59,0x55,0x6b,0x31,0x6e,0x64,0x34,0x44,0x69,0x77,0x57,0x4c,0x45,0x4a,0x36,0x58,0x6a,0x6d,0x4e,0x4b,0x49,0x68,0x32,0x65,0x30,0x33,0x51,0x4f,0x70,0x66,0x79,0x35,0x42,0x61,0x74,0x4d,0x7a,0x63,0x6f,0x46,0x67,0x43,0x62,0x52,0x72,0x75,0x53,0x56,0x5a,0x48,0x54,0x37,0x76,0x39,0x41,0x50,0x38,0x71,0x6c,0x73]),_0x480960=0xeb829,_0x1ce1f8=0x4598924a,_0x53b7d6=0x459ff282^_0x1ce1f8,_0x4dcbdd=window[_0x4f3ae1([0x44,0x61,0x74,0x65])][_0x4f3ae1([0x6e,0x6f,0x77])](),_0x1295c2=_0xa7c93e[_0x4f3ae1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x375155=new window[(_0x4f3ae1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x362e48=>{_0x1295c2[_0x4f3ae1([0x6f,0x6e,0x63,0x65])](_0x4f3ae1([0x72,0x65,0x61,0x64,0x79]),_0x362e48);}),_0x4d3829={[_0x4f3ae1([0x6b,0x74,0x79])]:_0x4f3ae1([0x45,0x43]),[_0x4f3ae1([0x75,0x73,0x65])]:_0x4f3ae1([0x73,0x69,0x67]),[_0x4f3ae1([0x63,0x72,0x76])]:_0x4f3ae1([0x50,0x2d,0x32,0x35,0x36]),[_0x4f3ae1([0x78])]:_0x4f3ae1([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]),[_0x4f3ae1([0x79])]:_0x4f3ae1([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]),[_0x4f3ae1([0x61,0x6c,0x67])]:_0x4f3ae1([0x45,0x53,0x32,0x35,0x36])},_0x1d957e=_0x1295c2[_0x4f3ae1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f3ae1([0x67,0x65,0x74])](_0x4f3ae1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a9c2d(){let _0x44d916,_0x2715e7=null,_0x52daf5=null;try{if(_0x1d957e==_0x4f3ae1([0x47,0x50,0x4c]))return _0x4f3ae1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44d916=_0x4b38e0(),!_0x44d916)return _0x4f3ae1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44d916[_0x4f3ae1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52daf5=_0x23e84f(_0x44d916[_0x4f3ae1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44d916[_0x4f3ae1([0x6a,0x74,0x69])])),await _0x31a91b()?_0xbd7644()?_0x2899dd()?_0x4f3ae1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xebd590()?(_0x44d916[_0x4f3ae1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f3ae1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2715e7=_0x2446da(_0x4f3ae1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44d916[_0x4f3ae1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f3ae1([0x74,0x72,0x69,0x61,0x6c])&&(_0x2715e7=_0x2446da(_0x4f3ae1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36ff6f()):_0x4f3ae1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f3ae1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f3ae1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1864cb){return _0x4f3ae1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2899dd(){const _0x2423d8=[_0x4f3ae1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f3ae1([0x74,0x72,0x69,0x61,0x6c])][_0x4f3ae1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44d916[_0x4f3ae1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4dcbdd/0x3e8:0xe10*_0x53b7d6;return _0x44d916[_0x4f3ae1([0x65,0x78,0x70])]<_0x2423d8;}function _0xbd7644(){const _0x53c1e9=_0x44d916[_0x4f3ae1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x53c1e9)return!0x1;if(_0x53c1e9[_0x4f3ae1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3ae1([0x2a])))return!0x0;if(_0x53c1e9[_0x4f3ae1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3ae1([0x52,0x48])))return!0x0;if(_0x53c1e9[_0x4f3ae1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3ae1([0x52,0x52,0x48]))){if(_0x559d2e())return!0x0;if(_0x47b65f()||_0xd87c90())return!0x0;}return!0x1;}function _0xebd590(){const _0x4b077d=_0x44d916[_0x4f3ae1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b077d||0x0==_0x4b077d[_0x4f3ae1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48f48b}=new URL(window[_0x4f3ae1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b077d[_0x4f3ae1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f48b))return!0x0;const _0x9d1a6=_0x48f48b[_0x4f3ae1([0x73,0x70,0x6c,0x69,0x74])](_0x4f3ae1([0x2e]));return _0x4b077d[_0x4f3ae1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x178aba=>_0x178aba[_0x4f3ae1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3ae1([0x2a])))[_0x4f3ae1([0x6d,0x61,0x70])](_0x91ad5=>_0x91ad5[_0x4f3ae1([0x73,0x70,0x6c,0x69,0x74])](_0x4f3ae1([0x2e])))[_0x4f3ae1([0x73,0x6f,0x6d,0x65])](_0x279a9b=>_0x9d1a6[_0x4f3ae1([0x65,0x76,0x65,0x72,0x79])]((_0x3e0a54,_0x4054cd)=>_0x279a9b[_0x4054cd]===_0x3e0a54||_0x279a9b[_0x4054cd]===_0x4f3ae1([0x2a])));}function _0x36ff6f(){return _0x2715e7&&_0x52daf5?new window[(_0x4f3ae1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b0f11,_0x77999f)=>{_0x2715e7[_0x4f3ae1([0x74,0x68,0x65,0x6e])](_0x5b0f11,_0x77999f),_0x52daf5[_0x4f3ae1([0x74,0x68,0x65,0x6e])](_0x8b6f56=>{_0x8b6f56!=_0x4f3ae1([0x56,0x61,0x6c,0x69,0x64])&&_0x5b0f11(_0x8b6f56);},_0x77999f);}):_0x2715e7||_0x52daf5||_0x4f3ae1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23e84f(_0x27c90d,_0x9e7c56){return new window[(_0x4f3ae1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x382a18=>{if(_0x1487ae())return _0x382a18(_0x4f3ae1([0x56,0x61,0x6c,0x69,0x64]));_0x135228(),_0x1295c2[_0x4f3ae1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f3ae1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f6f36=!0x1;const _0x118d91=_0x35e6d2();function _0x4e56f2(_0x148d77){return!!_0x148d77&&(typeof _0x148d77===_0x4f3ae1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x148d77===_0x4f3ae1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x148d77[_0x4f3ae1([0x74,0x68,0x65,0x6e])]===_0x4f3ae1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x148d77[_0x4f3ae1([0x63,0x61,0x74,0x63,0x68])]===_0x4f3ae1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d2f91(_0x5f2190){_0x1507c9(_0x5f2190)[_0x4f3ae1([0x74,0x68,0x65,0x6e])](_0x12beee=>{if(!_0x12beee||_0x12beee[_0x4f3ae1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f3ae1([0x6f,0x6b]))return _0x4f3ae1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c575e(_0x155a2d(_0x118d91+_0x9e7c56))!=_0x12beee[_0x4f3ae1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f3ae1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f3ae1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f3ae1([0x74,0x68,0x65,0x6e])](_0x1662ea=>(_0x325fdf(),_0x1662ea),()=>{const _0x4a8701=_0x560fce();return null==_0x4a8701?(_0x325fdf(),_0x4f3ae1([0x56,0x61,0x6c,0x69,0x64])):_0x4f3ae1(_0x4dcbdd-_0x4a8701>(0x6194164a^_0x1ce1f8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f3ae1([0x74,0x68,0x65,0x6e])](_0x382a18)[_0x4f3ae1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x382a18(_0x4f3ae1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x562956=0x45ae7cca^_0x1ce1f8;function _0x325fdf(){const _0x487408=_0x4f3ae1([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c575e(_0x155a2d(_0x27c90d)),_0x115875=_0x57c852(_0x3c575e(window[_0x4f3ae1([0x4d,0x61,0x74,0x68])][_0x4f3ae1([0x63,0x65,0x69,0x6c])](_0x4dcbdd/_0x562956)));window[_0x4f3ae1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f3ae1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x487408,_0x115875);}function _0x560fce(){const _0x11531f=_0x4f3ae1([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c575e(_0x155a2d(_0x27c90d)),_0x353244=window[_0x4f3ae1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f3ae1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11531f);return _0x353244?window[_0x4f3ae1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57c852(_0x353244),0x10)*_0x562956:null;}function _0x1507c9(_0x126276){return new window[(_0x4f3ae1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2993c6,_0x3df01d)=>{_0x126276[_0x4f3ae1([0x74,0x68,0x65,0x6e])](_0x2993c6,_0x3df01d),window[_0x4f3ae1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3df01d,0x4599468a^_0x1ce1f8);});}}_0x1295c2[_0x4f3ae1([0x6f,0x6e])](_0x4f3ae1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x328d52,_0x29722c)=>{if(_0x29722c[0x0]!=_0x27c90d)return _0x382a18(_0x4f3ae1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x29722c[0x1]={..._0x29722c[0x1],[_0x4f3ae1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x118d91};},{[_0x4f3ae1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f3ae1([0x68,0x69,0x67,0x68])}),_0x1295c2[_0x4f3ae1([0x6f,0x6e])](_0x4f3ae1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x247843=>{_0x4e56f2(_0x247843[_0x4f3ae1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f6f36=!0x0,_0x5d2f91(_0x247843[_0x4f3ae1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f3ae1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f3ae1([0x6c,0x6f,0x77])}),_0x375155[_0x4f3ae1([0x74,0x68,0x65,0x6e])](()=>{_0x2f6f36||_0x382a18(_0x4f3ae1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1487ae(){return _0x1295c2[_0x4f3ae1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f3ae1([0x76,0x69,0x65,0x77])][_0x4f3ae1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f3ae1([0x61,0x75,0x74,0x6f]);}function _0x135228(){_0x1295c2[_0x4f3ae1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f3ae1([0x76,0x69,0x65,0x77])][_0x4f3ae1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f3ae1([0x61,0x75,0x74,0x6f]);}}function _0x2446da(_0x14a5a9){const _0xf7b3c5=[new window[(_0x4f3ae1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cb9fd=>setTimeout(_0x5cb9fd,0x4591ac86^_0x1ce1f8)),_0x375155[_0x4f3ae1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f3ae1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412643=>{const _0x419bc3=0x4598924d^_0x1ce1f8,_0x246d18=_0xa7c93e[_0x4f3ae1([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x17d462(){_0x246d18[_0x4f3ae1([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x419bc3&&_0x412643();}_0x17d462(),_0x246d18[_0x4f3ae1([0x6f,0x6e])](_0x4f3ae1([0x61,0x64,0x64]),_0x17d462);})),new window[(_0x4f3ae1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525578=>{function _0x9a5cce(){for(const _0x3a92b3 in window)if(window[_0x4f3ae1([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4f3ae1([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3a92b3))&&window[_0x3a92b3]==_0x480960)return _0x525578();_0x1295c2[_0x4f3ae1([0x73,0x74,0x61,0x74,0x65])]!=_0x4f3ae1([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4f3ae1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9a5cce,0x459881c2^_0x1ce1f8);}_0x3a7914(_0x4f3ae1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x9a5cce();})];return window[_0x4f3ae1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f3ae1([0x72,0x61,0x63,0x65])](_0xf7b3c5)[_0x4f3ae1([0x74,0x68,0x65,0x6e])](()=>_0x14a5a9);}async function _0xb314d8(){if(await _0x375155,_0x3a7914(_0x4f3ae1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x47ffd6=_0xa7c93e[_0x4f3ae1([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x10cbea=_0xa7c93e[_0x4f3ae1([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])](_0x47ffd6[_0x4f3ae1([0x69,0x64])]),_0x439b5c=_0x2edb57(_0x4f3ae1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x439b5c[_0x4f3ae1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x47ffd6['id'],_0x10cbea?_0x10cbea['id']:null,!0x0),_0x439b5c[_0x4f3ae1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f3ae1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x439b5c[_0x4f3ae1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x439b5c[_0x4f3ae1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5a237e,void(_0x439b5c[_0x4f3ae1([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5a237e);}if(_0x3a7914(_0x4f3ae1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x374e87=_0x2edb57(_0x4f3ae1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x374e87[_0x4f3ae1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f3ae1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x374e87[_0x4f3ae1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x374e87[_0x4f3ae1([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5a237e,_0x374e87[_0x4f3ae1([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5a237e;}_0x1295c2[_0x4f3ae1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f3ae1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a237e,_0x1295c2[_0x4f3ae1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f3ae1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a237e,_0x1295c2[_0x4f3ae1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f3ae1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x559d2e(){return _0x3a7914(_0x4f3ae1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2edb57(_0x4f3ae1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f3ae1([0x73,0x74,0x61,0x74,0x65])]==_0x4f3ae1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x47b65f(){return _0x3a7914(_0x4f3ae1([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 _0xd87c90(){return _0x3a7914(_0x4f3ae1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1eb003(_0x396445){const _0x1c56a9=_0x1174de();_0x1295c2[_0x1c56a9]=_0x4f3ae1([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])+_0x396445,_0x396445[_0x4f3ae1([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4f3ae1([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1174de()]=_0x480960),_0x396445!=_0x4f3ae1([0x56,0x61,0x6c,0x69,0x64])&&_0xb314d8();}function _0x1174de(){const _0x181ee3=window[_0x4f3ae1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f3ae1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f3ae1([0x6e,0x6f,0x77])]())[_0x4f3ae1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f3ae1([0x2e]),'');let _0x2bf335=_0x4f3ae1([0x78]);for(let _0x56dd51=0x0;_0x56dd51<_0x181ee3[_0x4f3ae1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56dd51+=0x2){let _0x4ee222=window[_0x4f3ae1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x181ee3[_0x4f3ae1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56dd51,_0x56dd51+0x2));_0x4ee222>=_0x99615e[_0x4f3ae1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ee222-=_0x99615e[_0x4f3ae1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bf335+=_0x99615e[_0x4ee222];}return _0x2bf335;}function _0x4b38e0(){const _0x4f2e90=_0x1d957e[_0x4f3ae1([0x73,0x70,0x6c,0x69,0x74])](_0x4f3ae1([0x2e]));if(0x3!=_0x4f2e90[_0x4f3ae1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37ff2b(_0x4f2e90[0x1]);function _0x37ff2b(_0x29d2c6){const _0x3a5c97=_0xd04269(_0x29d2c6);return _0x3a5c97&&_0xa52315()?_0x3a5c97:null;function _0xa52315(){const _0x582a03=_0x3a5c97[_0x4f3ae1([0x6a,0x74,0x69])],_0x2588a5=window[_0x4f3ae1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x582a03[_0x4f3ae1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x582a03[_0x4f3ae1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46f6eb={..._0x3a5c97,[_0x4f3ae1([0x6a,0x74,0x69])]:_0x582a03[_0x4f3ae1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x582a03[_0x4f3ae1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46f6eb[_0x4f3ae1([0x76,0x63])],_0x155a2d(_0x46f6eb)==_0x2588a5;}}}async function _0x31a91b(){let _0x451952=!0x0;try{const _0x582d57=_0x1d957e[_0x4f3ae1([0x73,0x70,0x6c,0x69,0x74])](_0x4f3ae1([0x2e])),[_0x5be39c,_0x1ab6c4,_0x329f57]=_0x582d57;return _0x1a3868(_0x5be39c),await _0x34314f(_0x5be39c,_0x1ab6c4,_0x329f57),_0x451952;}catch(_0x28715c){return!0x1;}function _0x1a3868(_0x39e5da){const _0x2af588=_0xd04269(_0x39e5da);_0x2af588&&_0x2af588[_0x4f3ae1([0x61,0x6c,0x67])]==_0x4f3ae1([0x45,0x53,0x32,0x35,0x36])||(_0x451952=!0x1);}async function _0x34314f(_0x53ddc9,_0x4f7e7e,_0x3cfc21){const _0x1891ae=window[_0x4f3ae1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f3ae1([0x66,0x72,0x6f,0x6d])](_0x3b0827(_0x3cfc21),_0x1ae072=>_0x1ae072[_0x4f3ae1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45628b=new window[(_0x4f3ae1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f3ae1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53ddc9+_0x4f3ae1([0x2e])+_0x4f7e7e),_0x4c34af=window[_0x4f3ae1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f3ae1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c34af)return;const _0x1b5fcf=await _0x4c34af[_0x4f3ae1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f3ae1([0x6a,0x77,0x6b]),_0x4d3829,{[_0x4f3ae1([0x6e,0x61,0x6d,0x65])]:_0x4f3ae1([0x45,0x43,0x44,0x53,0x41]),[_0x4f3ae1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f3ae1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f3ae1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c34af[_0x4f3ae1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f3ae1([0x6e,0x61,0x6d,0x65])]:_0x4f3ae1([0x45,0x43,0x44,0x53,0x41]),[_0x4f3ae1([0x68,0x61,0x73,0x68])]:{[_0x4f3ae1([0x6e,0x61,0x6d,0x65])]:_0x4f3ae1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b5fcf,_0x1891ae,_0x45628b)||(_0x451952=!0x1);}}function _0xd04269(_0x583387){return _0x583387[_0x4f3ae1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f3ae1([0x65,0x79]))?JSON[_0x4f3ae1([0x70,0x61,0x72,0x73,0x65])](_0x3b0827(_0x583387)):null;}function _0x3b0827(_0xec04a1){return window[_0x4f3ae1([0x61,0x74,0x6f,0x62])](_0xec04a1[_0x4f3ae1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f3ae1([0x2b]))[_0x4f3ae1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f3ae1([0x2f])));}function _0x155a2d(_0x47bbc7){let _0x503ca0=0x1505;function _0x414988(_0x21fc2d){for(let _0x4385fd=0x0;_0x4385fd<_0x21fc2d[_0x4f3ae1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4385fd++){const _0x1c973d=_0x21fc2d[_0x4f3ae1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4385fd);_0x503ca0=(_0x503ca0<<0x5)+_0x503ca0+_0x1c973d,_0x503ca0&=_0x503ca0;}}function _0x33f071(_0x57cc9a){Array[_0x4f3ae1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57cc9a)?_0x57cc9a[_0x4f3ae1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33f071):_0x57cc9a&&typeof _0x57cc9a==_0x4f3ae1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f3ae1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57cc9a)[_0x4f3ae1([0x73,0x6f,0x72,0x74])]()[_0x4f3ae1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4036f6,_0x4ad6e1])=>{_0x414988(_0x4036f6),_0x33f071(_0x4ad6e1);}):_0x414988(window[_0x4f3ae1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57cc9a));}return _0x33f071(_0x47bbc7),_0x503ca0>>>0x0;}function _0x3c575e(_0x343c73){return _0x343c73[_0x4f3ae1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f3ae1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f3ae1([0x30]));}function _0x57c852(_0x2ca5d8){return _0x2ca5d8[_0x4f3ae1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f3ae1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f3ae1([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a7914(_0x2ab024){return _0x1295c2[_0x4f3ae1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f3ae1([0x68,0x61,0x73])](_0x2ab024);}function _0x2edb57(_0x2ae340){return _0x1295c2[_0x4f3ae1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f3ae1([0x67,0x65,0x74])](_0x2ae340);}function _0x5a237e(){}function _0x4f3ae1(_0xa60eb8){return _0xa60eb8['map'](_0x8120d4=>String['fromCharCode'](_0x8120d4))['join']('');}_0x1eb003(await _0x1a9c2d());}(this);}['createRevision'](_0x5e5880){const _0x33da7a=this['editor']['plugins']['get']('Users');return new h({'id':_0x5e5880['id'],'name':_0x5e5880['name'],'creator':_0x5e5880['creatorId']?_0x33da7a['getUser'](_0x5e5880['creatorId']):null,'diffData':_0x5e5880['diffData']||_0x5e5880['data'],'authors':_0x5e5880['authorsIds']['map'](_0x5f4b41=>_0x33da7a['getUser'](_0x5f4b41)),'createdAt':new Date(_0x5e5880['createdAt']),'attributes':_0x5e5880['attributes'],'fromVersion':_0x5e5880['fromVersion'],'toVersion':_0x5e5880['toVersion']});}['addRevision'](_0x157619,_0x167583=0x0){this['_revisions']['add'](_0x157619,_0x167583);}['getRevision'](_0x55b777){return this['_revisions']['get'](_0x55b777);}['getRevisions'](_0x3c9771={'toJSON':!0x1}){const _0x1e6b9a=Array['from'](this['_revisions']);return _0x1e6b9a['reverse'](),_0x3c9771['toJSON']?_0x1e6b9a['map'](_0x58297e=>_0x58297e['toJSON']()):_0x1e6b9a;}['getIndex'](_0xee4328){return this['_revisions']['getIndex'](_0xee4328);}['getEarlierVisibleRevision'](_0x442025){const [,_0x86b810]=this['getRevisionsIterator'](_0x442025,{'direction':'earlier'});return _0x86b810;}['getLaterVisibleRevision'](_0x416b09){const [,_0x25b85d]=this['getRevisionsIterator'](_0x416b09,{'direction':'later'});return _0x25b85d;}['getRevisionsInDiff'](_0x20a4cc){const _0x1dc704=[];for(const _0xae4ae of this['getRevisionsIterator'](_0x20a4cc['newRevisionId']))if(_0x1dc704['push'](_0xae4ae),_0xae4ae['id']===_0x20a4cc['oldRevisionId'])break;return _0x1dc704;}*['getRevisionsIterator'](_0x2c9862,{direction:_0x32f578='earlier',filter:_0x59a89d=()=>!0x0}={}){const _0x510596='earlier'===_0x32f578?0x1:-0x1;let _0x4b9c91=this['_revisions']['get'](_0x2c9862),_0x4c22ff=this['getIndex'](_0x4b9c91);for(yield _0x4b9c91;_0x4b9c91;){if(_0x4c22ff+=_0x510596,_0x4b9c91=this['getRevision'](_0x4c22ff),!_0x4b9c91)return;_0x59a89d(_0x4b9c91)&&(yield _0x4b9c91);}}}function m(_0xa02822,_0x41a644,_0x4a1313){const t=_0xa02822['t'];switch(_0x41a644){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'},_0x4a1313);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4a1313);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x1e13ea,'a':_0xd04bad,'e':_0x284894,'r':_0x2f3ec5,'u':_0xd41be1};class u extends _0x50acf8{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x182031,j,_0x246f5c];}constructor(_0x3b89ad){super(_0x3b89ad),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x36f1d6=_0x35e6d2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x36f1d6},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x320e98=this['repository']['getRevision'](0x0),_0x42af66=_0x320e98&&null===_0x320e98['creator']?_0x320e98:null;if(this['_continueCurrentRevision']=!!_0x42af66&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5e0c6e=this['_source']['getCurrentRevisionId'](),_0x379b31=this['repository']['getRevision'](_0x5e0c6e);if(_0x379b31)this['_startingVersion']=_0x379b31['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2f4f1b=this['_source']['history']['_operations']['find'](_0x4ba5b8=>!_0x4ba5b8['_isInit']),_0x5ba3d1=_0x2f4f1b?_0x2f4f1b['baseVersion']:this['_source']['history']['version'];_0x320e98?(_0x320e98['toVersion']<_0x5ba3d1&&_0x320e98['_update']({'toVersion':_0x5ba3d1}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x42af66['id'],this['_startingVersion']=_0x42af66['fromVersion']):(this['_startingVersion']=_0x320e98['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5ba3d1,this['_continueCurrentRevision']=!0x1);}}else _0x42af66&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x42af66['toVersion'],this['editor']['model']['document']['history']['version']),_0x42af66['fromVersion']===_0x42af66['toVersion']?(0x0!==_0x42af66['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x42af66['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x42af66['id'],this['_startingVersion']=_0x42af66['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',_0x3d965a=>!_0x3d965a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f0f4f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1274db;for(const _0x9d7bd2 in _0x1f0f4f){const _0x520c5d=_0x9d7bd2,_0xa76d61=_0x1f0f4f[_0x520c5d];if('revisionHistoryLicenseKeyValid'==_0xa76d61||'revisionHistoryLicenseKeyInvalid'==_0xa76d61||'revisionHistoryLicenseKeyExpired'==_0xa76d61||'revisionHistoryLicenseKeyDomainLimit'==_0xa76d61||'revisionHistoryLicenseKeyNotAllowed'==_0xa76d61||'revisionHistoryLicenseKeyEvaluationLimit'==_0xa76d61||'revisionHistoryLicenseKeyTrialLimit'==_0xa76d61||'revisionHistoryLicenseKeyUsageLimit'==_0xa76d61){delete _0x1f0f4f[_0x520c5d],_0x1274db=_0xa76d61,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1274db&&_0x1f0f4f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1274db&&_0x1f0f4f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1274db&&_0x1f0f4f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1274db&&_0x1f0f4f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1274db&&_0x1f0f4f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1274db&&_0x1f0f4f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1274db&&_0x1f0f4f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3e8995=this['repository']['getRevision'](0x0),_0x3ea4d0=await this['getRevisionDocumentData'](_0x3e8995),_0x4ec5d=await this['getRevisionRootsAttributes'](_0x3e8995);this['_replaceEditorDataWithRevisionData'](_0x3ea4d0,_0x4ec5d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x16e5fd){this['_source']=_0x16e5fd;}async['update'](){const _0x175fa6=await this['_source']['getLatestVersion']();if(_0x175fa6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x24722=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x175fa6});_0x24722['authors']=_0x24722['authorsIds']['map'](_0x391d3f=>this['editor']['plugins']['get']('Users')['getUser'](_0x391d3f)),this['currentRevision']['_update'](_0x24722);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x4ddd37={},_0x3f3551=null){const _0x10dbb9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3f3551>this['currentRevision']['toVersion']&&(_0x3f3551=null),null===_0x3f3551&&(_0x3f3551=await this['_source']['getLatestVersion']());const _0x15ca4c=this['_getFromVersion'](_0x3f3551),_0x426aa2=this['buildRevisionData']({'from':_0x15ca4c,'to':_0x3f3551});if(this['currentRevision']['toVersion']<_0x3f3551){const _0x1587c9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3f3551,'to':_0x3f3551});_0x1587c9['authors']=[],_0x1587c9['authorsIds']=[],_0x1587c9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1587c9,!0x0),delete _0x1587c9['authors'],_0x10dbb9['push'](_0x1587c9);}_0x4ddd37['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4ddd37['name']=_0x4ddd37['name']||null,_0x4ddd37['id']=_0x4ddd37['id']||_0x35e6d2(),_0x4ddd37={..._0x4ddd37,..._0x426aa2};const _0x51db59=this['addRevisionData'](_0x4ddd37);_0x10dbb9['push'](_0x4ddd37);const _0x13685a=this['repository']['getIndex'](_0x51db59);if(0x0!==_0x13685a){const _0x70c450=this['repository']['getRevision'](_0x13685a-0x1);if(_0x70c450['fromVersion']!==_0x3f3551){const _0x1a0645=this['_revisionDataBuilder']['getData'](_0x3f3551,_0x70c450['toVersion']),_0x2ffb1d={'id':_0x70c450['id'],'diffData':_0x1a0645['diffData'],'authorsIds':_0x1a0645['authorsIds'],'authors':_0x1a0645['authorsIds']['map'](_0xb52b76=>this['editor']['plugins']['get']('Users')['getUser'](_0xb52b76)),'fromVersion':_0x3f3551};_0x70c450===this['currentRevision']&&(_0x2ffb1d['createdAt']=new Date(_0x4ddd37['createdAt']['getTime']()+0xa)),_0x70c450['_update'](_0x2ffb1d,!0x0),delete _0x2ffb1d['authors'],_0x10dbb9['push'](_0x2ffb1d);}}if(this['adapter']){for(const _0x375280 of _0x10dbb9)this['_bufferUpdate'](_0x375280['id'],_0x375280,!0x0);this['sendBufferedUpdates']();}return _0x51db59;}['addRevisionData'](_0x3e717d){const _0x31ce19=this['repository']['createRevision'](_0x3e717d);return this['adapter']&&_0x31ce19['on']('_update',(_0x56a625,_0x3de88a,_0x1170ab)=>{_0x1170ab||(this['_bufferUpdate'](_0x3de88a['id'],_0x3de88a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x31ce19,this['_findInsertionIndex'](_0x31ce19)),_0x31ce19;}async['getRevisionDocumentData'](_0x5c18ca){await this['_loadRevisionData'](_0x5c18ca);const _0x26b364={};for(const _0x57dadc in _0x5c18ca['diffData']){if(_0x5c18ca['diffData'][_0x57dadc]['attachChange']&&!_0x5c18ca['diffData'][_0x57dadc]['attachChange']['isAttached'])continue;const _0x3ec589=this['_removeRevisionMarkers'](JSON['parse'](_0x5c18ca['diffData'][_0x57dadc]['insertions'])),_0x19cf4a=this['editor']['editing']['view']['document'],_0x821bef=new _0x45b703(_0x19cf4a,_0x3ec589['map'](_0x45ac19=>P(_0x45ac19,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x26b364[_0x57dadc]=this['editor']['data']['processor']['toData'](_0x821bef),this['editor']['data']['processor']['useFillerType']('default');}return _0x26b364;}async['getRevisionRootsAttributes'](_0x2f480f){await this['_loadRevisionData'](_0x2f480f);const _0x4016a7={};for(const _0x1399a2 in _0x2f480f['diffData'])_0x2f480f['diffData'][_0x1399a2]['attachChange']&&!_0x2f480f['diffData'][_0x1399a2]['attachChange']['isAttached']||(_0x4016a7[_0x1399a2]=_0x2f480f['diffData'][_0x1399a2]['attributesAfter']||{});return _0x4016a7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x581cac=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x181973=0x0;_0x181973<_0x581cac['length'];_0x181973++){const _0x5b1656=_0x581cac[_0x181973];let _0x5717d4=!0x1;for(const _0x2ce7f7 of Object['keys'](_0x5b1656))void 0x0===_0x5b1656[_0x2ce7f7]?delete _0x5b1656[_0x2ce7f7]:'id'!==_0x2ce7f7&&(_0x5717d4=!0x0);_0x5717d4||(_0x581cac[_0x181973]=null);}if(_0x581cac=_0x581cac['filter'](_0x23cd58=>null!==_0x23cd58),!_0x581cac['length'])return;for(let _0x32c58c=0x0;_0x32c58c<_0x581cac['length'];_0x32c58c++){const _0x384ddf=_0x581cac[_0x32c58c];void 0x0!==_0x384ddf['fromVersion']&&void 0x0===_0x384ddf['toVersion']&&(_0x384ddf['toVersion']=this['repository']['getRevision'](_0x384ddf['id'])['toVersion']),void 0x0!==_0x384ddf['toVersion']&&void 0x0===_0x384ddf['fromVersion']&&(_0x384ddf['fromVersion']=this['repository']['getRevision'](_0x384ddf['id'])['fromVersion']);}const _0x142f61=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x581cac,_0x142f61)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x26362c=>{if(_0x26362c){for(const _0x1f09d5 of _0x26362c)this['setRevisionData']({'id':_0x1f09d5['id'],'createdAt':_0x1f09d5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1ba7f5,_0x41f505){let _0x5e3015=this['editor']['config']['get']('initialData'),_0x358460=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5e3015){_0x5e3015={};for(const _0x1b1c79 of this['editor']['model']['document']['getRootNames']())_0x5e3015[_0x1b1c79]='';}if('string'==typeof _0x5e3015&&(_0x5e3015={'main':_0x5e3015}),void 0x0===_0x358460){_0x358460={};for(const _0x252daa of this['editor']['model']['document']['getRootNames']())_0x358460[_0x252daa]={};}let _0x54fe6f=!0x1;const _0x1c7051=Object['keys'](_0x5e3015),_0x221a0f=Object['keys'](_0x1ba7f5);for(const _0x48faa9 of _0x1c7051){if(_0x5e3015[_0x48faa9]!==_0x1ba7f5[_0x48faa9]&&''!==_0x5e3015[_0x48faa9]['trim']()){_0x54fe6f=!0x0;break;}if(!_0x2e121d(_0x358460[_0x48faa9],_0x41f505[_0x48faa9])&&Object['keys'](_0x358460[_0x48faa9])['length']>0x0){_0x54fe6f=!0x0;break;}}_0x54fe6f||(_0x54fe6f=_0x221a0f['some'](_0x3083d9=>!this['editor']['model']['document']['getRoot'](_0x3083d9))),_0x54fe6f&&_0x1f7579('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5e3015,'editorRootsAttributes':_0x358460,'revisionData':_0x1ba7f5,'revisionRootsAttributes':_0x41f505}),this['editor']['config']['set']('initialData',_0x1ba7f5),this['editor']['config']['set']('rootsAttributes',_0x41f505);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2dbdb4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2dbdb4['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x556720){const _0x12fc27=this['repository']['getRevisions']();_0x12fc27['reverse']();let _0x2bb481=0x0;for(;_0x2bb481<_0x12fc27['length'];){const _0x48181e=_0x12fc27[_0x2bb481];if(_0x48181e===this['currentRevision']){_0x2bb481++;continue;}if(_0x48181e['id']===this['_initialRevisionId'])break;const _0x1eae34=_0x556720['toVersion']-_0x48181e['toVersion']||_0x556720['fromVersion']-_0x48181e['fromVersion'];if(_0x1eae34>0x0)break;if(_0x1eae34<0x0)_0x2bb481++;else{if(!_0x556720['creator']&&_0x48181e['creator'])break;if(_0x48181e['creator']||!_0x556720['creator']){if(_0x556720['createdAt']>_0x48181e['createdAt'])break;_0x2bb481++;}else _0x2bb481++;}}return _0x2bb481;}['setRevisionData'](_0x1106fc){const _0xa3539a=this['repository']['getRevision'](_0x1106fc['id']);if(_0x1106fc['createdAt']&&(_0x1106fc['createdAt']=new Date(_0x1106fc['createdAt'])),_0x1106fc['authorsIds']){const _0x3d1f4c=this['editor']['plugins']['get']('Users');_0x1106fc['authors']=_0x1106fc['authorsIds']['map'](_0x134c45=>_0x3d1f4c['getUser'](_0x134c45));}_0xa3539a['_update'](_0x1106fc,!0x0);}['buildRevisionData']({revision:_0x10c5af=null,from:_0x14fb8b=null,to:_0xc1b475=null}){_0x14fb8b=null!==_0x14fb8b?_0x14fb8b:_0x10c5af['fromVersion'],_0xc1b475=null!==_0xc1b475?_0xc1b475:_0x10c5af['toVersion'];const _0x450604=this['_revisionDataBuilder']['getData'](_0x14fb8b,_0xc1b475),_0x30b536={'diffData':_0x450604['diffData'],'authorsIds':_0x450604['authorsIds'],'fromVersion':_0x14fb8b,'toVersion':_0xc1b475};if(!_0x10c5af||_0xc1b475!==_0x10c5af['toVersion']){const _0x42cf44=_0xc1b475-0x1,_0x39a7dc=this['_source']['history']['getOperation'](_0x42cf44);_0x30b536['createdAt']=_0x39a7dc&&_0x39a7dc['createdAt']||new Date();}if(this['_loadedStateData']&&_0x14fb8b===this['_loadedStateData']['fromVersion']){for(const _0x51930c of this['_loadedStateData']['authors'])_0x30b536['authorsIds']['includes'](_0x51930c['id'])||_0x30b536['authorsIds']['push'](_0x51930c['id']);}return _0x30b536;}['_loadRevisionData'](_0x25ee43){if(!_0x25ee43||_0x25ee43['diffData'])return Promise['resolve']();{const _0x5cb4a6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5cb4a6,'revisionId':_0x25ee43['id']})['then'](_0x4c10bf=>{_0x25ee43['diffData']=_0x4c10bf['diffData'];});}}['_bufferUpdate'](_0x1ee494,_0x2389b1,_0x14ecd5){if(this['_bufferedUpdates']['has'](_0x1ee494)){const _0x59be07=this['_bufferedUpdates']['get'](_0x1ee494);_0x2389b1=_0x14ecd5?{..._0x59be07,..._0x2389b1}:{..._0x2389b1,..._0x59be07};}this['_bufferedUpdates']['set'](_0x1ee494,_0x2389b1);}['_getFromVersion'](_0x3bee78){const _0x82c4de=this['repository']['getRevisions']();_0x82c4de['reverse'](),_0x82c4de['shift']();const _0x135649=_0x82c4de['find'](_0xed7ea8=>_0xed7ea8['toVersion']<=_0x3bee78)['toVersion'];return _0x135649<this['_startingVersion']?this['_startingVersion']:_0x135649;}['_createInitialRevision'](_0x6bfc6b){const _0x211e27=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x211e27)this['_initialRevisionId']=_0x211e27['id'];else{const _0xdcb520=!this['editor']['model']['document']['roots']['find'](_0x58371c=>this['editor']['model']['hasContent'](_0x58371c)),_0x5ad365=this['editor']['plugins']['get']('Users')['me']['id'],_0x8a2746=m(this['editor']['locale'],_0xdcb520?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x6bfc6b,'to':_0x6bfc6b,'id':this['_initialRevisionId'],'name':_0x8a2746,'creatorId':_0x5ad365});}}['_createCurrentRevision'](_0x4e359c){const _0x26c538=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x26c538),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4e359c,'to':_0x4e359c,'id':_0x26c538,'name':'','creatorId':null}));}['_makeRevision']({name:_0x23c93e,from:_0x5631ff,to:_0x3f82fd,creatorId:_0x1bc27d,id:_0xd13d8e}){const _0x1c2778=this['buildRevisionData']({'from':_0x5631ff,'to':_0x3f82fd});_0x1c2778['name']=_0x23c93e,_0x1c2778['creatorId']=_0x1bc27d,_0x1c2778['id']=_0xd13d8e;const _0x468111=this['addRevisionData'](_0x1c2778);return this['adapter']&&this['_bufferUpdate'](_0x1c2778['id'],_0x1c2778,!0x0),_0x468111;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x365b3e){return(_0x365b3e=_0x365b3e['filter'](_0x1158cf=>!_0x1158cf['name']||'revision-start'!==_0x1158cf['name']&&'revision-end'!==_0x1158cf['name']))['forEach'](_0xef2176=>{'string'!=typeof _0xef2176&&(_0xef2176['children']=this['_removeRevisionMarkers'](_0xef2176['children']),_0xef2176['attributes']=_0xef2176['attributes']['filter'](_0x13b235=>!_0x13b235[0x0]['startsWith']('data-revision-')));}),_0x365b3e;}}function P(_0x49a432,_0x3b5548){const _0x204000=_0x3b5548['editing']['view']['document'];if('string'==typeof _0x49a432)return new _0x2772f1(_0x204000,_0x49a432);{const _0x315827=_0x49a432['children']['map'](_0x2eb35e=>P(_0x2eb35e,_0x3b5548));return new(E[_0x49a432['type']]||_0x15d9f0)(_0x204000,_0x49a432['name'],_0x49a432['attributes'],_0x315827);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x276f71){this['editor']=_0x276f71,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'](_0x31d584){this['source']=_0x31d584;const _0x36bfb0=new Map(),_0x4cee49=new Map(),_0x244b78=this['editor']['model']['document']['roots']['map'](_0x415b10=>_0x415b10['rootName']);for(const _0x297f47 of _0x244b78){const _0x514b5d=this['editor']['model']['document']['getRoot'](_0x297f47),_0x5548e4=T(_0x514b5d);_0x36bfb0['set'](_0x297f47,_0x5548e4),_0x4cee49['set'](_0x297f47,Object['fromEntries'](_0x514b5d['getAttributes']()));}const _0x2a9738=Array['from'](this['editor']['model']['markers'])['map'](_0x574238=>[_0x574238['name'],_0x574238['getRange']()]),_0x3d7527=this['source']['version'];this['_saveMetaData'](_0x3d7527,_0x36bfb0,_0x2a9738,_0x4cee49),this['_startingRevisionId']=this['_revisionId'];const _0x580895=new Map(),_0x3840a0=new Map();for(const _0x1835ee of _0x244b78){const _0x33b45d=F(_0x1835ee);_0x580895['set'](_0x1835ee,_0x33b45d),_0x3840a0['set'](_0x1835ee,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x580895,[],_0x3840a0);}['getData'](_0x5528b0,_0x130ec3){if(this['_lastFrom']===_0x5528b0&&this['_lastTo']<=_0x130ec3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x130ec3,!0x0);else{if(!this['_savedMetaData']['has'](_0x5528b0)){const _0x2ea13a=this['_getPreviousFrom'](_0x5528b0);this['_calculateMetaData'](_0x2ea13a,_0x5528b0,!0x1);}this['_calculateMetaData'](_0x5528b0,_0x130ec3,!0x0);}return this['_lastFrom']=_0x5528b0,this['_lastTo']=_0x130ec3,this['_getState']();}['loadState'](_0x22c87a){this['_reset'](),this['_lastFrom']=_0x22c87a['fromVersion'],this['_lastTo']=_0x22c87a['toVersion'];for(const _0x563902 in _0x22c87a['diffData']){const _0x1eec3b=_0x22c87a['diffData'][_0x563902]['attachChange'],_0x8131b3=_0x5b727a(_0x22c87a['diffData'][_0x563902]['attributesBefore'])||{},_0x3a0389=this['_makeModelFromViewString'](_0x22c87a['diffData'][_0x563902]['deletions']);_0x3a0389['rootName']=_0x563902,_0x3a0389['_isAttached']=!_0x1eec3b||!_0x1eec3b['isAttached'],_0x3a0389['isAttached']=()=>_0x3a0389['_isAttached'],this['_baseRoots']['set'](_0x563902,_0x3a0389),this['_baseRootsAttributes']['set'](_0x563902,_0x8131b3),_0x1eec3b&&this['_touchedRoots']['set'](_0x563902,_0x1eec3b);const _0x1f14ab=this['_makeIdsRoot'](_0x3a0389);this['_baseIdsRoots']['set'](_0x563902,_0x1f14ab);for(const [_0x369ed9,_0x4de1da]of _0x3a0389['markers']){if(!_0x369ed9['startsWith']('revision:'))continue;const _0x5a4545=_0x369ed9['split'](':')[0x2];for(const _0x5a71ec of _0x4de1da['getWalker']({'singleCharacters':!0x0})){const _0x155bb5=this['_getVidAttributeName'](_0x5a71ec),_0x34688e='elementEnd'==_0x5a71ec['type']?_0x5a71ec['previousPosition']['path']['slice'](0x0,-0x1):_0x5a71ec['previousPosition']['path'],_0xb90f02=_0x1f14ab['getNodeByPath'](_0x34688e)['getAttribute'](_0x155bb5);this['_touched']['set'](_0xb90f02,{'userId':_0x5a4545});}}}this['_startingRevisionId']=this['_revisionId'];const _0x160e7d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xb0013e=>!this['_touched']['has'](_0xb0013e));let _0x1d1370=0x0;const _0x385d4c=new Map();for(const _0x34f14f in _0x22c87a['diffData']){const _0x49db61=_0x22c87a['diffData'][_0x34f14f]['attachChange'],_0x38e688=_0x5b727a(_0x22c87a['diffData'][_0x34f14f]['attributesAfter'])||{},_0x4d4c09=this['_makeModelFromViewString'](_0x22c87a['diffData'][_0x34f14f]['insertions']);_0x4d4c09['rootName']=_0x34f14f,_0x4d4c09['_isAttached']=!_0x49db61||_0x49db61['isAttached'],_0x4d4c09['isAttached']=()=>_0x4d4c09['_isAttached'],this['_diffRoots']['set'](_0x34f14f,_0x4d4c09),this['_diffRootsAttributes']['set'](_0x34f14f,_0x38e688);const _0x2f1f74=this['_makeIdsRoot'](_0x4d4c09,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x34f14f,_0x2f1f74),_0x385d4c['set'](_0x34f14f,_0x4d4c09['isAttached']()?_0x38e688:{});for(const [_0x37c50a,_0x240d77]of _0x4d4c09['markers']){if(!_0x37c50a['startsWith']('revision:'))continue;const _0x5d9e71=_0x37c50a['split'](':')[0x2];for(const _0x398494 of _0x240d77['getWalker']({'singleCharacters':!0x0})){const _0x2a8ac5=this['_getVidAttributeName'](_0x398494),_0xd39508=this['_revisionId']++,_0x4ad6f3='elementEnd'==_0x398494['type']?_0x398494['previousPosition']['path']['slice'](0x0,-0x1):_0x398494['previousPosition']['path'];_0x2f1f74['getNodeByPath'](_0x4ad6f3)['_setAttribute'](_0x2a8ac5,_0xd39508),this['_touched']['set'](_0xd39508,{'userId':_0x5d9e71});}}for(const _0x2dfbb0 of this['editor']['model']['createRangeIn'](_0x4d4c09)['getWalker']({'singleCharacters':!0x0})){const _0x45a8c5=this['_getVidAttributeName'](_0x2dfbb0),_0x387f82='elementEnd'==_0x2dfbb0['type']?_0x2dfbb0['previousPosition']['path']['slice'](0x0,-0x1):_0x2dfbb0['previousPosition']['path'],_0x58369f=_0x2f1f74['getNodeByPath'](_0x387f82);_0x58369f['getAttribute'](_0x45a8c5)>0x0||_0x58369f['_setAttribute'](_0x45a8c5,_0x160e7d[_0x1d1370++]);}for(const [_0x31fb00,_0xb6bee4]of _0x4d4c09['markers'])_0x31fb00['startsWith']('revision:')||this['_markers']['set'](_0x31fb00,_0xb6bee4);}const _0x3d8246=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3d8246),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3d8246,0x1));const _0x4fd261=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4fd261),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4fd261,0x1));const _0x1092b0=Array['from'](this['_diffRoots'])['map'](([_0x103403,_0x21eadd])=>[_0x103403,T(_0x21eadd)]);this['_saveMetaData'](this['_lastTo'],_0x1092b0,this['_markers'],_0x385d4c);}['_makeModelFromViewString'](_0x3377f7){const _0x4cd43c=JSON['parse'](_0x3377f7),_0x13667f=this['editor']['editing']['view']['document'],_0x55a949=new _0x45b703(_0x13667f,_0x4cd43c['map'](_0x33622e=>P(_0x33622e,this['editor'])));return this['editor']['data']['toModel'](_0x55a949);}['_saveMetaData'](_0x3d32a9,_0x1e66a5,_0x577e27,_0x3ae25b){const _0x12f145=new Map(_0x1e66a5),_0x1228a3=new Map(_0x5b727a(_0x3ae25b)),_0x2c49d3=new Map();for(const [_0x32ba9a,_0x29af3c]of _0x577e27)_0x2c49d3['set'](_0x32ba9a,{'start':_0x29af3c['start']['clone'](),'end':_0x29af3c['end']['clone'](),'rootName':_0x29af3c['root']['rootName']});this['_savedMetaData']['set'](_0x3d32a9,{'roots':_0x12f145,'markers':_0x2c49d3,'rootsAttributes':_0x1228a3});}['_removeMetaData'](_0x3ba038){this['_savedMetaData']['delete'](_0x3ba038);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1c4225,_0x12fe77=null){let _0x4a6a34=null;_0x1c4225['is']('documentFragment')||(_0x4a6a34=new ut(_0x1c4225['name'],{'vid_start':null===_0x12fe77?this['_revisionId']++:_0x12fe77++}));const _0x5e8149=[];for(const _0x42845c of _0x1c4225['getChildren']())if(_0x42845c['is']('element')){_0x5e8149['push'](this['_makeIdsRoot'](_0x42845c,_0x12fe77));const _0x29c11a=_0x5e8149[_0x5e8149['length']-0x1];null!==_0x12fe77&&(_0x12fe77=_0x29c11a['is']('element','$text')?_0x29c11a['getAttribute']('vid')+0x1:_0x29c11a['getAttribute']('vid_end')+0x1);}else{for(let _0x571add=0x0;_0x571add<_0x42845c['offsetSize'];_0x571add++)_0x5e8149['push'](new ut('$text',{'vid':null===_0x12fe77?this['_revisionId']++:_0x12fe77++}));}if(_0x1c4225['is']('documentFragment')){const _0x1bd40d=F(_0x1c4225['rootName']);return _0x1bd40d['_insertChild'](0x0,_0x5e8149),_0x1bd40d;}return _0x4a6a34['_setAttribute']('vid_end',null===_0x12fe77?this['_revisionId']++:_0x12fe77++),_0x4a6a34['_insertChild'](0x0,_0x5e8149),_0x4a6a34;}['_calculateMetaData'](_0x1c4da7,_0x4a4e3d,_0x53d79b){this['_reset']();const {roots:_0x56c915,markers:_0x22a141,rootsAttributes:_0x5f4d81}=this['_savedMetaData']['get'](_0x1c4da7);this['_baseRoots']=new Map(_0x56c915),this['_baseRootsAttributes']=new Map(_0x5b727a(_0x5f4d81));for(const [_0x5caee3,_0x5023ec]of this['_baseRoots'])if('$graveyard'!==_0x5caee3&&(this['_diffRoots']['set'](_0x5caee3,T(_0x5023ec)),this['_diffRootsAttributes']=new Map(_0x5b727a(_0x5f4d81)),_0x53d79b)){const _0x58aa59=this['_revisionId'];this['_idsRoots']['set'](_0x5caee3,this['_makeIdsRoot'](_0x5023ec)),this['_baseIdsRoots']['set'](_0x5caee3,this['_makeIdsRoot'](_0x5023ec,_0x58aa59));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x53d79b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2c86fb,_0x35c05e]of _0x22a141){const _0x397c8a=this['_baseRoots']['get'](_0x35c05e['rootName']),_0x594ba4=this['_diffRoots']['get'](_0x35c05e['rootName']),_0x1491aa=new ft(this['_fixPosition'](_0x35c05e['start'],_0x397c8a),this['_fixPosition'](_0x35c05e['end'],_0x397c8a)),_0x9a80e1=this['_fixRange'](_0x1491aa,_0x594ba4);_0x397c8a['markers']['set'](_0x2c86fb,_0x1491aa),this['_markers']['set'](_0x2c86fb,_0x9a80e1);}this['_applyOperations'](_0x1c4da7,_0x4a4e3d,_0x53d79b);}['_applyOperations'](_0x38b05b,_0xef6df8,_0x40d769){for(const _0x989c93 of this['source']['getOperations'](_0x38b05b,_0xef6df8))this['_handleOperation'](_0x989c93,_0x40d769);for(const _0x565c70 of this['_diffRoots']['values']())_0x565c70['markers']['clear']();for(const [_0x1e1e65,_0x3970e5]of this['_markers']){this['_diffRoots']['get'](_0x3970e5['root']['rootName'])['markers']['set'](_0x1e1e65,_0x3970e5['clone']());}const _0x5bcdf7=new Map(),_0x497945=new Map();for(const [_0xd3dded,_0x53490b]of this['_diffRoots'])_0x5bcdf7['set'](_0xd3dded,T(_0x53490b)),_0x497945['set'](_0xd3dded,this['_diffRootsAttributes']['get'](_0xd3dded));this['_saveMetaData'](_0xef6df8,_0x5bcdf7,this['_markers'],_0x497945);}['_getPreviousFrom'](_0x482f70){const _0x415cdc=Array['from'](this['_savedMetaData']['keys']());_0x415cdc['sort']((_0x3f839b,_0x108da4)=>_0x3f839b-_0x108da4),_0x415cdc['reverse']();for(const _0x41ba93 of _0x415cdc)if(_0x41ba93<_0x482f70)return _0x41ba93;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x54f75b,_0x4c4459){const _0x51d425=Array['from'](_0x4c4459['markers'])['map'](([_0x4146c6,_0x3fe043])=>[_0x4146c6,this['_fixRange'](_0x3fe043,_0x54f75b)]);_0x54f75b['markers']=new Map(_0x51d425);}['_transformMarkers'](_0x379ddf){for(const _0x2c1c6a of this['_markers']['values']()){const _0x5ac5c6=_0x2c1c6a['getTransformedByOperation'](_0x379ddf),_0x1d0432=ft['_createFromRanges'](_0x5ac5c6);_0x2c1c6a['start']=_0x1d0432['start'],_0x2c1c6a['end']=_0x1d0432['end'];}}['_handleOperation'](_0x4e6c69,_0x3591bb){if('addRoot'!=_0x4e6c69['type']&&'detachRoot'!=_0x4e6c69['type']){if('insert'==_0x4e6c69['type']){const _0x445415=_0x4e6c69['position']['root']['rootName'];this['_diffRoots']['has'](_0x445415)||(this['_diffRoots']['set'](_0x445415,F(_0x445415,!0x0)),this['_diffRootsAttributes']['set'](_0x445415,{}),_0x3591bb&&this['_idsRoots']['set'](_0x445415,F(_0x445415,!0x0)));}else{if('addRootAttribute'==_0x4e6c69['type']||'removeRootAttribute'==_0x4e6c69['type']||'changeRootAttribute'==_0x4e6c69['type'])return void this['_handleRootAttributeOperation'](_0x4e6c69);'marker'==_0x4e6c69['type']&&this['_handleMarkerOperation'](_0x4e6c69);}if('marker'!==_0x4e6c69['type']){const _0x2ea4f9=this['_cloneOperation'](_0x4e6c69,this['_diffRoots']);_0x2ea4f9['_execute'](),this['_transformMarkers'](_0x2ea4f9);}if(_0x3591bb)switch(_0x4e6c69['type']){case'insert':this['_handleInsertOperation'](_0x4e6c69);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4e6c69);break;case'merge':this['_handleMergeOperation'](_0x4e6c69);break;case'split':this['_handleSplitOperation'](_0x4e6c69);}}else this['_handleRootOperation'](_0x4e6c69,_0x3591bb);}['_cloneOperation'](_0x1d2ce9,_0x4957d7){const _0x336f4c=_0x1d2ce9['clone']();return _0x336f4c['_authorId']=_0x1d2ce9['_authorId'],this['_fixOperation'](_0x336f4c,_0x4957d7),_0x336f4c;}['_getBaseVids'](_0x37c87d){return _0x37c87d['map'](_0x1e44f6=>{const _0x4a4a9e=this['_getVidAttributeName'](_0x1e44f6);return Number(_0x1e44f6['item']['getAttribute'](_0x4a4a9e));});}['_generateTape'](_0x583e81,_0xa557a9){if(_0x583e81['is']('element','$text'))_0xa557a9['push']({'item':_0x583e81,'type':'text'});else{_0x583e81['is']('element')&&_0xa557a9['push']({'item':_0x583e81,'type':'elementStart'});for(const _0x41e5d9 of _0x583e81['getChildren']())this['_generateTape'](_0x41e5d9,_0xa557a9);_0x583e81['is']('element')&&_0xa557a9['push']({'item':_0x583e81,'type':'elementEnd'});}return _0xa557a9;}['_getState'](){const _0x38579f=new Map(this['_touched']),_0x244889=new Map(_0x38579f),_0x39978f=new Map(),_0x1a472d={'insertions':{},'deletions':{}},_0x56275a={'insertions':{},'deletions':{}},_0xa12a1b=new Map(),_0x2e5034=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2e5034['delete']('$graveyard');for(const _0x5e3a6b of _0x2e5034){const _0x55e6ec=this['_diffRoots']['get'](_0x5e3a6b)||F(_0x5e3a6b,!0x1),_0x3a3a7f=this['_baseRoots']['get'](_0x5e3a6b)||F(_0x5e3a6b,!0x1);_0x55e6ec['isAttached']()||_0x3a3a7f['isAttached']()?(_0x1a472d['insertions'][_0x5e3a6b]=T(_0x55e6ec),_0x1a472d['deletions'][_0x5e3a6b]=T(_0x3a3a7f),this['_copyMarkers'](_0x1a472d['deletions'][_0x5e3a6b],_0x3a3a7f),this['_copyMarkers'](_0x1a472d['insertions'][_0x5e3a6b],_0x55e6ec),_0x56275a['insertions'][_0x5e3a6b]=this['_generateTape'](this['_idsRoots']['get'](_0x5e3a6b),[]),_0x56275a['deletions'][_0x5e3a6b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5e3a6b)||F(_0x5e3a6b,!0x1),[])):_0x2e5034['delete'](_0x5e3a6b);}for(const _0x3a6531 of _0x2e5034){const _0x3729b1=_0x56275a['insertions'][_0x3a6531];for(const _0x2dc509 of _0x3729b1){const _0x2096aa=this['_getVidAttributeName'](_0x2dc509),_0x3672ba=_0x2dc509['item']['getAttribute'](_0x2096aa);_0x244889['delete'](_0x3672ba),_0x3672ba>=this['_startingRevisionId']&&_0x39978f['set'](_0x3672ba,_0x38579f['get'](_0x3672ba));}}for(const _0x5a46d5 of _0x2e5034){const _0x48a331=_0x56275a['insertions'][_0x5a46d5],_0x4a7b33=this['_getBaseVids'](_0x56275a['deletions'][_0x5a46d5]);let _0x114703=0x0;for(const _0x1ddb1c of _0x48a331){const _0x2735b5=this['_getVidAttributeName'](_0x1ddb1c),_0x2f3fab=_0x1ddb1c['item']['getAttribute'](_0x2735b5);if(!_0x39978f['has'](_0x2f3fab)&&!_0xa12a1b['has'](_0x2f3fab)){if(_0x244889['has'](_0x2f3fab))_0x114703++;else{if(_0x2f3fab!=_0x4a7b33[_0x114703]){const _0x3233c0=_0x38579f['get'](_0x2f3fab)||_0x38579f['get'](_0x4a7b33[_0x114703]);for(;_0x2f3fab!=_0x4a7b33[_0x114703];)_0x244889['has'](_0x4a7b33[_0x114703])||(_0xa12a1b['set'](_0x4a7b33[_0x114703],_0x3233c0),_0x38579f['set'](_0x4a7b33[_0x114703],_0x3233c0)),_0x114703++;}_0x114703++;}}}}for(const _0x1232d0 of _0x2e5034){const _0x66474=_0x56275a['insertions'][_0x1232d0];for(const _0x54dd00 of _0x66474){const _0x890c8d=this['_getVidAttributeName'](_0x54dd00),_0x87c817=_0x54dd00['item']['getAttribute'](_0x890c8d);if(_0xa12a1b['has'](_0x87c817)){const _0x298f9c=_0xa12a1b['get'](_0x87c817);_0x244889['has'](_0x87c817)||_0x244889['set'](_0x87c817,{..._0x298f9c}),_0x39978f['set'](_0x87c817,{..._0x298f9c});}}}for(const _0x437ded of _0x244889['keys']())_0x437ded>=this['_startingRevisionId']&&_0x244889['delete'](_0x437ded);const _0x287644=new Map();for(const _0x24e8b3 of _0x2e5034){let _0x26feb9=_0x56275a['insertions'][_0x24e8b3];for(const _0x26836f of _0x26feb9)if(_0x26836f['item']['is']('element','tableCell')){const _0x18ba28=this['_getVidAttributeName'](_0x26836f),_0x2ac4d1=_0x26836f['item']['getAttribute'](_0x18ba28);if(_0x39978f['has'](_0x2ac4d1)){const _0x1edf3d=_0x26836f['item']['parent']['parent']['getAttribute']('vid_start'),_0x4c7069=_0x287644['get'](_0x1edf3d)||new Set();_0x4c7069['add'](_0x39978f['get'](_0x2ac4d1)['userId']),_0x287644['set'](_0x1edf3d,_0x4c7069);}}_0x26feb9=_0x56275a['deletions'][_0x24e8b3];for(const _0x4602d9 of _0x26feb9)if(_0x4602d9['item']['is']('element','tableCell')){const _0x1c252a=this['_getVidAttributeName'](_0x4602d9),_0x2838b7=_0x4602d9['item']['getAttribute'](_0x1c252a);if(_0x244889['has'](_0x2838b7)){const _0x30c430=_0x4602d9['item']['parent']['parent']['getAttribute']('vid_start'),_0x31e66b=_0x287644['get'](_0x30c430)||new Set();_0x31e66b['add'](_0x244889['get'](_0x2838b7)['userId']),_0x287644['set'](_0x30c430,_0x31e66b);}}for(const _0x3efdb4 of _0x287644['keys']())(_0x39978f['has'](_0x3efdb4)||_0x244889['has'](_0x3efdb4))&&_0x287644['delete'](_0x3efdb4);}for(const _0x4edfe7 of _0x2e5034){const _0x4187a1=_0x56275a['insertions'][_0x4edfe7];let _0x37f309=null,_0x3f4ef7=null;for(const _0x2c75aa of _0x4187a1){const _0x1e861c=this['_getVidAttributeName'](_0x2c75aa),_0x2bf0db=_0x2c75aa['item']['getAttribute'](_0x1e861c),_0x2f703a=_0x287644['get'](_0x2bf0db);_0x2f703a&&'elementStart'==_0x2c75aa['type']&&(_0x37f309=Array['from'](_0x2f703a)[0x0],_0x3f4ef7=_0x2c75aa['item']['getAttribute']('vid_end')),_0x37f309&&(_0x244889['set'](_0x2bf0db,{'userId':_0x37f309}),_0x39978f['set'](_0x2bf0db,{'userId':_0x37f309})),_0x2bf0db==_0x3f4ef7&&(_0x37f309=null,_0x3f4ef7=null);}}const _0x5e4d24={},_0x1825b6=new Set();for(const _0xb01874 of _0x2e5034){const _0x30e3d4=_0x1a472d['deletions'][_0xb01874],_0x207461=_0x1a472d['insertions'][_0xb01874];for(const {userId:_0x5c688e}of this['_touchedMarkers']['values']())null!==_0x5c688e&&_0x1825b6['add'](_0x5c688e);for(const {userId:_0x2403ba}of this['_touchedRoots']['values']())null!==_0x2403ba&&_0x1825b6['add'](_0x2403ba);this['_markChanges'](_0x207461,_0x56275a['insertions'][_0xb01874],_0x39978f,'insertion',_0x1825b6),this['_markChanges'](_0x30e3d4,_0x56275a['deletions'][_0xb01874],_0x244889,'deletion',_0x1825b6),_0x5e4d24[_0xb01874]={'insertions':this['_prepareViewToSave'](_0x207461),'deletions':this['_prepareViewToSave'](_0x30e3d4),'attachChange':this['_touchedRoots']['get'](_0xb01874)||null,'attributesBefore':_0x5b727a(this['_baseRootsAttributes']['get'](_0xb01874))||{},'attributesAfter':_0x5b727a(this['_diffRootsAttributes']['get'](_0xb01874))};}return{'diffData':_0x5e4d24,'authorsIds':Array['from'](_0x1825b6)};}['_processRootBeforeSave'](_0x26c2e2){for(const [,_0x50b0b5]of _0x26c2e2['markers']){const _0x5e897d=_0x50b0b5['start']['getAncestors']()['filter'](_0x3f535f=>'tableCell'==_0x3f535f['name']);for(const _0xf5336f of _0x5e897d)0x1==_0xf5336f['childCount']&&_0xf5336f['getChild'](0x0)['is']('element','paragraph')&&_0xf5336f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x30f401){this['_processRootBeforeSave'](_0x30f401);const _0x1dbd1e=this['editor']['data']['toView'](_0x30f401,{}),_0xbffbd4=Array['from'](_0x1dbd1e['getChildren']())['map'](_0x44abb5=>this['_getViewJson'](_0x44abb5));return JSON['stringify'](_0xbffbd4);}['_getViewJson'](_0x4090d3){if(_0x4090d3['is']('$text'))return _0x4090d3['data'];{const _0x5a7dd9=_0x4090d3;return{'type':Object['keys'](E)['find'](_0x26f16d=>_0x4090d3 instanceof E[_0x26f16d]),'name':_0x5a7dd9['name'],'attributes':Array['from'](_0x5a7dd9['getAttributes']()),'children':Array['from'](_0x5a7dd9['getChildren']())['map'](_0x530ee8=>this['_getViewJson'](_0x530ee8))};}}['_markChanges'](_0x3c8d49,_0x45bf8d,_0xacadea,_0x17dbed,_0x2b4f46){let _0x389ed1=null,_0x420229=null,_0x4a7705=0x0;const _0x61a19e=this['editor']['model'];for(let _0x595730=0x0;_0x595730<_0x45bf8d['length'];_0x595730++){const _0x58b214=this['_getVidAttributeName'](_0x45bf8d[_0x595730]),_0x21b0fb=_0x45bf8d[_0x595730]['item']['getAttribute'](_0x58b214),_0x5e22a9=_0xacadea['get'](_0x21b0fb),_0x471ac7=_0x595730==_0x45bf8d['length']-0x1;(!_0x389ed1&&_0x5e22a9&&(_0x389ed1=_0x5e22a9,_0x420229=_0x45bf8d[_0x595730]),_0x389ed1&&(!_0x5e22a9||_0x5e22a9['userId']!=_0x389ed1['userId']))&&(_0x39492e(_0x5e22a9,B(_0x420229,_0x3c8d49,_0x61a19e),B(_0x45bf8d[_0x595730],_0x3c8d49,_0x61a19e)),_0x389ed1=_0x5e22a9||null,_0x420229=_0x5e22a9?_0x45bf8d[_0x595730]:null),_0x389ed1&&_0x471ac7&&_0x39492e(_0x5e22a9,B(_0x420229,_0x3c8d49,_0x61a19e),J(_0x45bf8d[_0x595730],_0x3c8d49,_0x61a19e));}function _0x39492e(_0x49d82f,_0x21f055,_0x4fdbc7){const _0x526ceb=_0x389ed1['userId'],_0x2bfe75='revision:'+_0x17dbed+':'+_0x526ceb+':'+_0x4a7705++,_0x4b13bc=_0x61a19e['createRange'](_0x21f055,_0x4fdbc7);_0x3c8d49['markers']['set'](_0x2bfe75,_0x4b13bc),null!==_0x526ceb&&_0x2b4f46['add'](_0x526ceb);}}['_getVidAttributeName'](_0x4cd9b3){switch(_0x4cd9b3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x255742,_0x59abf7){_0x255742['baseVersion']=null;for(const _0x415b23 in _0x255742){const _0x438a75=_0x255742[_0x415b23];if(_0x438a75 instanceof vt){const _0xf4311e=_0x59abf7['get'](_0x438a75['root']['rootName']);_0x255742[_0x415b23]=this['_fixPosition'](_0x438a75,_0xf4311e);}if(_0x438a75 instanceof ft){const _0x4d7e98=_0x59abf7['get'](_0x438a75['root']['rootName']);_0x255742[_0x415b23]=this['_fixRange'](_0x438a75,_0x4d7e98);}'root'===_0x415b23&&(_0x255742['root']=_0x59abf7['get'](_0x255742['root']['rootName']));}}['_fixRange'](_0x9ea90c,_0xd22b73){return this['editor']['model']['createRange'](this['_fixPosition'](_0x9ea90c['start'],_0xd22b73),this['_fixPosition'](_0x9ea90c['end'],_0xd22b73));}['_fixPosition'](_0x36c5a8,_0x4722cb){return this['editor']['model']['createPositionFromPath'](_0x4722cb,_0x36c5a8['path'],_0x36c5a8['stickiness']);}['_handleInsertOperation'](_0x3e6651){const _0x320ba5=this['_idsRoots']['get'](_0x3e6651['position']['root']['rootName']),_0x38e8bb=this['_fixPosition'](_0x3e6651['position'],_0x320ba5),_0x15c8cf=null===_0x3e6651['_authorId']?null:_0x3e6651['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4dca7d=_0x38e8bb['parent'],_0x379892=this['_revisionId'],_0x56f8b5=[];for(const _0x44e0de of _0x3e6651['nodes'])if(_0x44e0de['is']('element'))_0x56f8b5['push'](this['_makeIdsRoot'](_0x44e0de));else{for(let _0x5d54f5=0x0;_0x5d54f5<_0x44e0de['offsetSize'];_0x5d54f5++)_0x56f8b5['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xceeeb1=this['_revisionId'];for(let _0x4243d5=_0x379892;_0x4243d5<_0xceeeb1;_0x4243d5++)this['_touched']['set'](_0x4243d5,{'userId':_0x15c8cf});_0x4dca7d['_insertChild'](_0x38e8bb['offset'],_0x56f8b5);}['_handleMoveOperation'](_0x3515bd){(_0x3515bd=this['_cloneOperation'](_0x3515bd,this['_idsRoots']))['_execute']();const _0x410bc6=null===_0x3515bd['_authorId']?null:_0x3515bd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17e853=_0x3515bd['getMovedRangeStart'](),_0x15de1b=_0x17e853['parent'],_0x44565b=_0x17e853['offset'];!function _0xabbaa3(_0x237a6c,_0x2267df,_0x94199a,_0xab34d7){for(let _0x5e9205=_0x94199a;_0x5e9205<_0xab34d7;_0x5e9205++){const _0x16506f=_0x2267df['getChild'](_0x5e9205);_0x16506f['is']('element','$text')?_0x237a6c['set'](_0x16506f['getAttribute']('vid'),{'userId':_0x410bc6}):(_0x237a6c['set'](_0x16506f['getAttribute']('vid_start'),{'userId':_0x410bc6}),_0xabbaa3(_0x237a6c,_0x16506f,0x0,_0x16506f['childCount']),_0x237a6c['set'](_0x16506f['getAttribute']('vid_end'),{'userId':_0x410bc6}));}}(this['_touched'],_0x15de1b,_0x44565b,_0x44565b+_0x3515bd['howMany']);}['_handleMergeOperation'](_0x35c5ae){const _0x175500=null===(_0x35c5ae=this['_cloneOperation'](_0x35c5ae,this['_idsRoots']))['_authorId']?null:_0x35c5ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b6121=_0x35c5ae['targetPosition']['parent'],_0x297112=_0x35c5ae['sourcePosition']['parent'],_0xea27a6=_0x5b6121['getAttribute']('vid_end'),_0x7598=_0x297112['getAttribute']('vid_start');_0x5b6121['_setAttribute']('vid_end',_0x297112['getAttribute']('vid_end')),_0x297112['_setAttribute']('vid_end',_0xea27a6),this['_touched']['set'](_0x7598,{'userId':_0x175500}),this['_touched']['set'](_0xea27a6,{'userId':_0x175500}),_0x35c5ae['_execute']();}['_handleSplitOperation'](_0x432a94){const _0x511e29=null===(_0x432a94=this['_cloneOperation'](_0x432a94,this['_idsRoots']))['_authorId']?null:_0x432a94['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38b5e4=_0x432a94['graveyardPosition'],_0x580787=_0x432a94['splitPosition']['parent'];_0x432a94['_execute']();const _0x42559d=_0x580787['getAttribute']('vid_end'),_0x111cc7=_0x432a94['insertionPosition']['nodeAfter'];if(_0x38b5e4){const _0x3a4626=_0x111cc7['getAttribute']('vid_end'),_0x451e71=_0x580787['getAttribute']('vid_end');_0x580787['_setAttribute']('vid_end',_0x3a4626),_0x111cc7['_setAttribute']('vid_end',_0x451e71),this['_touched']['set'](_0x580787['getAttribute']('vid_end'),{'userId':_0x511e29}),this['_touched']['set'](_0x111cc7['getAttribute']('vid_start'),{'userId':_0x511e29});}else{const _0x255a83=this['_revisionId']++,_0x158ff9=this['_revisionId']++;_0x580787['_setAttribute']('vid_end',_0x255a83),_0x111cc7['_setAttribute']('vid_start',_0x158ff9),_0x111cc7['_setAttribute']('vid_end',_0x42559d),this['_touched']['set'](_0x255a83,{'userId':_0x511e29}),this['_touched']['set'](_0x158ff9,{'userId':_0x511e29});}}['_handleMarkerOperation'](_0x2b4351){if(!_0x2b4351['affectsData'])return;const _0x5e0815=(_0x2b4351=this['_cloneOperation'](_0x2b4351,this['_diffRoots']))['oldRange']?_0x2b4351['oldRange']['root']:null,_0x487153=_0x2b4351['newRange']?_0x2b4351['newRange']['root']:null;_0x5e0815&&this['_markers']['delete'](_0x2b4351['name']),_0x487153&&this['_markers']['set'](_0x2b4351['name'],_0x2b4351['newRange']['clone']());const _0x3d1034=null===_0x2b4351['_authorId']?null:_0x2b4351['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32c1c2=_0x2b4351['name'];if(!this['_touchedMarkers']['has'](_0x32c1c2))return void this['_touchedMarkers']['set'](_0x32c1c2,{'range':_0x2b4351['oldRange'],'userId':_0x3d1034});const _0x4aba08=this['_touchedMarkers']['get'](_0x32c1c2),_0x529f12=_0x4aba08['range'],_0x14af40=_0x2b4351['newRange'];null==_0x529f12&&null==_0x14af40||_0x529f12&&_0x14af40&&_0x529f12['isEqual'](_0x14af40)?this['_touchedMarkers']['delete'](_0x2b4351['name']):_0x4aba08['userId']=_0x3d1034;}['_handleRootOperation'](_0x261287,_0x2864ff){this['_diffRoots']['has'](_0x261287['rootName'])?this['_diffRoots']['get'](_0x261287['rootName'])['_isAttached']=_0x261287['isAdd']:(this['_diffRoots']['set'](_0x261287['rootName'],F(_0x261287['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x261287['rootName'],{}),_0x2864ff&&this['_idsRoots']['set'](_0x261287['rootName'],F(_0x261287['rootName'],!0x0)));const _0x4c4e96=null===_0x261287['_authorId']?null:_0x261287['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x553b5b=this['_touchedRoots']['get'](_0x261287['rootName']);_0x553b5b&&_0x553b5b['userId']===_0x4c4e96?this['_touchedRoots']['delete'](_0x261287['rootName']):this['_touchedRoots']['set'](_0x261287['rootName'],{'userId':_0x4c4e96,'isAttached':_0x261287['isAdd']});}['_handleRootAttributeOperation'](_0x49aa14){const _0x47260f=this['_diffRootsAttributes']['get'](_0x49aa14['root']['rootName']);null===_0x49aa14['newValue']?delete _0x47260f[_0x49aa14['key']]:_0x47260f[_0x49aa14['key']]=_0x49aa14['newValue'];}}function T(_0x31e35b){const _0x161999=F(_0x31e35b['rootName'],_0x31e35b['isAttached']());for(const _0x14dc12 of _0x31e35b['getChildren']()){const _0x1ca77d=_0x14dc12['_clone'](!0x0);_0x161999['_appendChild'](_0x1ca77d);}return _0x161999;}function F(_0x2ebce2,_0x32f5e3=!0x0){const _0x2b83fc=new gt();return _0x2b83fc['rootName']=_0x2ebce2,_0x2b83fc['_isAttached']=_0x32f5e3,_0x2b83fc['isAttached']=()=>_0x2b83fc['_isAttached'],_0x2b83fc;}function B(_0x22d347,_0x59f298,_0x5af165){const _0xb5ff78='elementEnd'==_0x22d347['type']?_0x5af165['createPositionAt'](_0x22d347['item'],'end'):_0x5af165['createPositionBefore'](_0x22d347['item']);return _0x5af165['createPositionFromPath'](_0x59f298,_0xb5ff78['path'],_0xb5ff78['stickiness']);}function J(_0x22e231,_0x1c1f63,_0x1cb989){const _0x56f072='elementStart'==_0x22e231['type']?_0x1cb989['createPositionAt'](_0x22e231['item'],0x0):_0x1cb989['createPositionAfter'](_0x22e231['item']);return _0x1cb989['createPositionFromPath'](_0x1c1f63,_0x56f072['path'],_0x56f072['stickiness']);}class os extends _0x49d5f0{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x41ce03,_0x16a141){super(_0x41ce03),this['focusTracker']=new _0x4a1ddf(),this['keystrokes']=new _0x5dd089(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x16a141),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'](),_0x35980e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x405270=_0x383c1a=>_0x383c1a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x405270),this['keystrokes']['set']('arrowleft',_0x405270),this['keystrokes']['set']('arrowup',_0x405270),this['keystrokes']['set']('arrowdown',_0x405270);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xa3e72e){this['revisionNameInputView']['fieldView']['element']['value']=_0xa3e72e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x22d79f){const _0x15c24c=new at(this['locale'],ti),_0xfe600=_0x15c24c['fieldView'];_0xfe600['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x285ca0=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x22d79f&&(_0x285ca0+='\x20('+m(this['locale'],'optional')+')'),(_0x15c24c['label']=_0x285ca0,_0xfe600['on']('input',()=>{this['revisionNameInputValue']=_0xfe600['element']['value']['trim']();}),_0x15c24c);}}class f extends _0x50acf8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x583f36=this['editor'],_0x340f17=_0x583f36['plugins']['get']('RevisionTracker');_0x583f36['ui']['componentFactory']['add']('revisionHistory',_0x22418d=>{const _0x2b7c84=_0x3072eb(_0x22418d),_0x3cd345=_0x2b7c84['panelView']['children'],_0x2a34fa=new _0x5197f5(_0x22418d),_0x4d3590=new te(_0x22418d),_0x416185=new _0x3fac83(_0x22418d),_0x1c4e1e=new te(_0x22418d),_0x29b57f=new _0x3fac83(_0x22418d);return _0x2b7c84['bind']('isEnabled')['to'](_0x340f17,'isReady',_0x340f17,'isEnabled',_0x583f36,'isReadOnly',(_0x1010fd,_0x5ca208,_0x534745)=>_0x1010fd&&_0x5ca208&&!_0x534745),_0x2b7c84['buttonView']['set']({'icon':_0x3245ba,'label':m(_0x22418d,'Revision\x20history'),'tooltip':!0x0}),_0x416185['set']({'label':m(_0x22418d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x416185['bind']('isEnabled')['to'](_0x340f17,'isReady',_0x340f17,'isEnabled',_0x583f36,'isReadOnly',(_0x2221bc,_0x564084,_0x4eb967)=>_0x2221bc&&_0x564084&&!_0x4eb967),_0x416185['on']('execute',()=>this['_showDialog']()),_0x29b57f['set']({'label':m(_0x22418d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x29b57f['bind']('isEnabled')['to'](_0x340f17,'isReady',_0x583f36,'isReadOnly',(_0x1f0c52,_0x3ba8cd)=>_0x1f0c52&&!_0x3ba8cd),_0x29b57f['on']('execute',()=>{_0x583f36['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2b7c84['isOpen']=!0x1,_0x583f36['editing']['view']['focus']();}),_0x4d3590['children']['add'](_0x416185),_0x1c4e1e['children']['add'](_0x29b57f),_0x2a34fa['role']='menu',_0x2a34fa['items']['addMany']([_0x4d3590,_0x1c4e1e]),_0x3cd345['add'](_0x2a34fa),_0x2b7c84;}),_0x583f36['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5add15=this['editor'],_0x47cfbd=_0x5add15['locale'],_0x8df298=new _0x5f340c(_0x47cfbd),_0x5d0755=new _0x53139b(_0x47cfbd);_0x8df298['buttonView']['set']({'icon':_0x3245ba,'label':m(_0x47cfbd,'Revision\x20history')});const _0x5c1d19=new _0x1517e5(_0x47cfbd,_0x8df298),_0x4fa11e=new _0x33e482(_0x47cfbd);_0x4fa11e['set']({'label':m(_0x47cfbd,'Save\x20current\x20revision')}),_0x4fa11e['delegate']('execute')['to'](_0x8df298),_0x4fa11e['on']('execute',()=>{this['_showDialog']();}),_0x5c1d19['children']['add'](_0x4fa11e),_0x5d0755['items']['add'](_0x5c1d19);const _0x20b92e=new _0x1517e5(_0x47cfbd,_0x8df298),_0x2faf9c=new _0x33e482(_0x47cfbd);return _0x2faf9c['set']({'label':m(_0x47cfbd,'Open\x20revision\x20history')}),_0x2faf9c['delegate']('execute')['to'](_0x8df298),_0x2faf9c['on']('execute',()=>{_0x5add15['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x20b92e['children']['add'](_0x2faf9c),_0x5d0755['items']['add'](_0x20b92e),_0x8df298['panelView']['children']['add'](_0x5d0755),_0x8df298;}['_showDialog'](){const _0x5d242c=this['editor'],_0xd39cb2=_0x5d242c['locale'],_0x4818bc=_0x5d242c['plugins']['get']('Dialog'),_0x2c7f93=_0x5d242c['plugins']['get']('RevisionTracker');function _0x345f0d(_0x55028f){_0x5d242c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x55028f['revisionName']?_0x55028f['revisionNameInputView']['errorText']=m(_0xd39cb2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5d242c['plugins']['get'](u)['saveRevision']({'name':_0x55028f['revisionName']}),_0x4818bc['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x345f0d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4818bc['show']({'id':'revisionSave','title':m(_0xd39cb2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5d242c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4818bc['hide']()},{'label':m(_0x5d242c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x139457){_0x139457['bind']('isEnabled')['to'](_0x2c7f93,'isReady',_0x2c7f93,'isEnabled',_0x5d242c,'isReadOnly',(_0x11d3e4,_0x22f9c3,_0x2cda79)=>_0x11d3e4&&_0x22f9c3&&!_0x2cda79);},'onExecute':()=>_0x345f0d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x27aa8b=this['editor'],_0x9b0326=_0x27aa8b['locale'];this['_saveRevisionFormView']=new os(_0x9b0326,_0x27aa8b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x49d5f0{['changeId'];['_model'];constructor(_0x508688,_0x2491c2){super(_0x508688),this['_model']=_0x2491c2,this['changeId']=_0x2491c2['id'];const _0x6fe365=this['bindTemplate'],_0x5876f5=m(_0x508688,_0x2491c2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2491c2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2491c2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x6fe365['to']('type',_0x1997cd=>'ck-revision-change__'+_0x1997cd)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5876f5}]},{'text':'\x20'+_0x2491c2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x5a611e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x144a62){super(),this['id']=_0x144a62['id']||_0x35e6d2(),this['author']=_0x144a62['author'],this['type']=_0x144a62['type'],this['data']=_0x144a62['data']||{},this['rootName']=_0x144a62['rootName'],this['set']('createdAt',_0x144a62['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(_0x37915e,_0x95d580){this['newRevisionId']=_0x37915e,this['oldRevisionId']=_0x95d580,this['changes']=new _0x1609cb();}['_setChanges'](_0x27f115){for(const _0x3c1ae2 of _0x27f115)this['changes']['add'](_0x3c1ae2);}}const Y={'c':_0x1e13ea,'a':_0xd04bad,'e':_0x284894,'r':_0x2f3ec5,'u':_0xd41be1};class d extends _0x50acf8{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x182031,_0x268d94,j];}constructor(_0x547318){super(_0x547318),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x19f396,_0x5271f5,_0x22292b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x18db8e=>{for(const _0x24888f of this['editor']['editing']['view']['document']['roots'])_0x22292b?_0x18db8e['removeClass']('ck-editor__editable__overlay',_0x24888f):_0x18db8e['addClass']('ck-editor__editable__overlay',_0x24888f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x444b64=>null!==_0x444b64),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x36df45,_0x3f1ba9,_0x5d26a8)=>_0x36df45&&_0x5d26a8?_0x3f1ba9['changes']['getIndex'](_0x5d26a8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x139f55,_0x1d2c30)=>_0x139f55?_0x1d2c30['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x268d94);}['init'](){const _0x380cac=this['editor'],_0x1f2833=new yt(_0x380cac,{'direction':'backward'}),_0x3c9802=new yt(_0x380cac,{'direction':'forward'});(_0x380cac['commands']['add']('showPreviousChange',_0x1f2833),_0x380cac['commands']['add']('showNextChange',_0x3c9802),_0x380cac['commands']['add']('restoreRevision',new _t(_0x380cac)),this['on']('change:numberOfChanges',()=>{_0x1f2833['refresh'](),_0x3c9802['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x380cac['enableReadOnlyMode']('revision-viewer'),_0x380cac['plugins']['has']('WidgetToolbarRepository'))&&_0x380cac['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x442d91){await this['loadRevisionData'](_0x442d91);const _0x534b14={};for(const _0xa2418 in _0x442d91['diffData']){if(_0x442d91['diffData'][_0xa2418]['attachChange']&&!_0x442d91['diffData'][_0xa2418]['attachChange']['isAttached'])continue;const _0x5750bb=this['_removeRevisionMarkers'](JSON['parse'](_0x442d91['diffData'][_0xa2418]['insertions'])),_0xe0df33=this['editor']['editing']['view']['document'],_0x350559=new _0x45b703(_0xe0df33,_0x5750bb['map'](_0x53d6a2=>this['_getViewObj'](_0x53d6a2)));this['editor']['data']['processor']['useFillerType']('marked'),_0x534b14[_0xa2418]=this['editor']['data']['processor']['toData'](_0x350559),this['editor']['data']['processor']['useFillerType']('default');}return _0x534b14;}async['getRevisionRootsAttributes'](_0x1e9a11){await this['loadRevisionData'](_0x1e9a11);const _0x36dfed={};for(const _0x26e310 in _0x1e9a11['diffData'])_0x1e9a11['diffData'][_0x26e310]['attachChange']&&!_0x1e9a11['diffData'][_0x26e310]['attachChange']['isAttached']||(_0x36dfed[_0x26e310]=_0x1e9a11['diffData'][_0x26e310]['attributesAfter']||{});return _0x36dfed;}['_removeRevisionMarkers'](_0x5629c7){return(_0x5629c7=_0x5629c7['filter'](_0x3cba4d=>!_0x3cba4d['name']||'revision-start'!==_0x3cba4d['name']&&'revision-end'!==_0x3cba4d['name']))['forEach'](_0x338199=>{'string'!=typeof _0x338199&&(_0x338199['children']=this['_removeRevisionMarkers'](_0x338199['children']),_0x338199['attributes']=_0x338199['attributes']['filter'](_0x9a3ea5=>!_0x9a3ea5[0x0]['startsWith']('data-revision-')));}),_0x5629c7;}async['compare'](_0x79aace,_0x5d5457,_0x39c398=!0x1){if(!this['isEnabled'])return;const _0x31961c=this['diff'],_0x171f5c=this['repository'],_0x52d42f='string'==typeof _0x79aace?_0x171f5c['getRevision'](_0x79aace):_0x79aace,_0x53e186='string'==typeof _0x5d5457?_0x171f5c['getRevision'](_0x5d5457):_0x5d5457,_0x5d8172=_0x52d42f['id'],_0x4a89ce=_0x53e186?_0x53e186['id']:null;if(!_0x39c398&&this['diff']&&this['diff']['newRevisionId']===_0x5d8172&&this['diff']['oldRevisionId']===_0x4a89ce)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5d8172,_0x4a89ce);const _0x3065b7=this['_getRevisionsRange'](_0x52d42f,_0x53e186,!0x0)['map'](_0x5b9024=>this['loadRevisionData'](_0x5b9024));return _0x3065b7['push'](new Promise(_0xad9356=>{setTimeout(_0xad9356,0x14);})),Promise['all'](_0x3065b7)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x46871a=this['_getDiff'](_0x5d8172,_0x4a89ce);for(const _0x1f1816 of _0x46871a['changes'])this['_changeIdToChange']['set'](_0x1f1816['id'],_0x1f1816);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1874af=>{for(const _0x4ce8a8 of this['editor']['model']['document']['getRootNames']())_0x1874af['detachRoot'](_0x4ce8a8);for(const _0x5040cb of Object['keys'](_0x46871a['model'])){const _0x4c5155=_0x1874af['addRoot'](_0x5040cb);for(const _0x53f47b of Object['keys'](_0x46871a['attributes'][_0x5040cb]))_0x1874af['setAttribute'](_0x53f47b,_0x46871a['attributes'][_0x5040cb][_0x53f47b],_0x4c5155);_0x1874af['insert'](_0x46871a['model'][_0x5040cb],_0x4c5155,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x46871a['changes'])),this['isReady']=!0x0;})['catch'](_0x15b306=>{console['error'](_0x15b306),this['_cleanUp'](),_0x31961c&&(this['diff']=_0x31961c),this['isReady']=!0x0;});}['addRevisionData'](_0x1d6bec,_0x3e4a08){const _0x3b2b84=this['repository']['createRevision'](_0x1d6bec);return _0x3b2b84['on']('_update',(_0x522129,_0x6d2f61,_0x1de8c0)=>_0x3e4a08(_0x6d2f61,_0x1de8c0,_0x3b2b84)),this['repository']['addRevision'](_0x3b2b84),_0x3b2b84;}['loadRevisionData'](_0x31c87a){if(!_0x31c87a||_0x31c87a['diffData'])return Promise['resolve']();{const _0x2fd34f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2fd34f,'revisionId':_0x31c87a['id']})['then'](_0x49550e=>{_0x31c87a['_update']({'diffData':_0x49550e['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x51a0a9=>{for(const _0x19e627 of this['editor']['model']['document']['getRootNames']())_0x51a0a9['detachRoot'](_0x19e627);});}['_sortAndFilterDiffChanges'](_0x54e737){const _0x15c144=[],_0x52432f=new Map();for(const _0x199b94 of this['editor']['model']['document']['getRootNames']()){const _0xf2ff5a=this['editor']['editing']['view']['getDomRoot'](_0x199b94);if(!_0xf2ff5a)continue;const _0x14002d=_0xf2ff5a['getClientRects']()['item'](0x0);_0x14002d&&(_0x15c144['push'](_0x199b94),_0x52432f['set'](_0x199b94,_0x14002d));}return _0x15c144['sort']((_0x3c71df,_0x34c1d3)=>{const _0x554724=_0x52432f['get'](_0x3c71df),_0xf2329c=_0x52432f['get'](_0x34c1d3);return _0x554724['y']-_0xf2329c['y']||_0x554724['x']-_0xf2329c['x'];}),(_0x54e737=_0x54e737['filter'](_0x5220a2=>_0x15c144['includes'](_0x5220a2['rootName'])))['sort']((_0x1463a4,_0x311cea)=>_0x15c144['indexOf'](_0x1463a4['rootName'])-_0x15c144['indexOf'](_0x311cea['rootName'])),_0x54e737;}['_makeTape'](_0x3258ea){const _0x219ee1=Array['from'](_0x3258ea['markers'])['filter'](([_0x4c7be5,_0x2af1a5])=>_0x4c7be5['startsWith']('revision:')&&!_0x2af1a5['isCollapsed']),_0x5a77e2=Array['from'](this['editor']['model']['createRangeIn'](_0x3258ea)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x219ee1['length'])for(const _0x434cde of _0x5a77e2){const [_0xbf10d7,_0xcfb3a7]=_0x219ee1[0x0],[,_0x7d9591,_0x27fa66]=_0xbf10d7['split'](':');if(_0xcfb3a7['end']['isEqual'](_0x434cde['nextPosition'])&&_0x219ee1['shift'](),(_0x434cde['previousPosition']['isEqual'](_0xcfb3a7['start'])||_0x434cde['previousPosition']['isAfter'](_0xcfb3a7['start']))&&('insertion'==_0x7d9591?_0x434cde['isAdded']={'userId':_0x27fa66}:'deletion'==_0x7d9591&&(_0x434cde['isRemoved']={'userId':_0x27fa66})),0x0==_0x219ee1['length'])break;}return _0x5a77e2;}['_refreshStartEndIndex'](_0x1fcbc7){const _0x31dfeb=new Map();for(let _0x16029d=0x0;_0x16029d<_0x1fcbc7['length'];_0x16029d++)'text'===_0x1fcbc7[_0x16029d]['type']?(_0x1fcbc7[_0x16029d]['item']['startIndex']=_0x16029d,_0x1fcbc7[_0x16029d]['item']['endIndex']=_0x16029d):('elementStart'===_0x1fcbc7[_0x16029d]['type']?_0x1fcbc7[_0x16029d]['item']['startIndex']=_0x16029d:'elementEnd'===_0x1fcbc7[_0x16029d]['type']&&(_0x1fcbc7[_0x16029d]['item']['endIndex']=_0x16029d),_0x31dfeb['set'](_0x1fcbc7[_0x16029d]['id'],_0x16029d));for(const _0x563423 of _0x31dfeb['values']())'elementStart'===_0x1fcbc7[_0x563423]['type']?_0x1fcbc7[_0x563423]['item']['endIndex']=_0x31dfeb['get'](_0x1fcbc7[_0x563423]['pairId']):'elementEnd'===_0x1fcbc7[_0x563423]['type']&&(_0x1fcbc7[_0x563423]['item']['startIndex']=_0x31dfeb['get'](_0x1fcbc7[_0x563423]['pairId']));}['_processTape'](_0x5dd809){for(let _0x1947ed=0x0;_0x1947ed<_0x5dd809['length'];_0x1947ed++){if('elementStart'===_0x5dd809[_0x1947ed]['type'])_0x5dd809[_0x1947ed]['item']['startIndex']=_0x1947ed;else{if('elementEnd'===_0x5dd809[_0x1947ed]['type']){_0x5dd809[_0x1947ed]['item']['endIndex']=_0x1947ed;const _0x2bb1bb=_0x5dd809[_0x1947ed]['item']['startIndex'];_0x5dd809[_0x2bb1bb]['pairId']=_0x5dd809[_0x1947ed]['id'],_0x5dd809[_0x1947ed]['pairId']=_0x5dd809[_0x2bb1bb]['id'];}else _0x5dd809[_0x1947ed]['item']['startIndex']=_0x1947ed,_0x5dd809[_0x1947ed]['item']['endIndex']=_0x1947ed,_0x5dd809[_0x1947ed]['pairId']=null;}_0x5dd809[_0x1947ed]['markersStart']||(_0x5dd809[_0x1947ed]['markersStart']=[],_0x5dd809[_0x1947ed]['markersEnd']=[]);}}['_markInsertions'](_0x388884,_0x1cb8f8){const _0x44bd82=_0x388884['filter'](_0x54beaa=>!_0x54beaa['isAdded']);for(let _0x1e571d=0x0;_0x1e571d<_0x1cb8f8['length'];_0x1e571d++)_0x1cb8f8[_0x1e571d]['isAdded']&&(_0x44bd82[_0x1e571d]['isAdded']=_0x1cb8f8[_0x1e571d]['isAdded']);}['_makeModelFromViewString'](_0x2c8760){const _0x7e0fa=JSON['parse'](_0x2c8760),_0x149413=this['editor']['editing']['view']['document'],_0x5501e4=new _0x45b703(_0x149413,_0x7e0fa['map'](_0x2e2faf=>this['_getViewObj'](_0x2e2faf)));return this['editor']['data']['toModel'](_0x5501e4);}['_getViewObj'](_0x2b0b61){const _0x526446=this['editor']['editing']['view']['document'];if('string'==typeof _0x2b0b61)return new _0x2772f1(_0x526446,_0x2b0b61);{const _0x49e5c6=_0x2b0b61['children']['map'](_0x2ba928=>this['_getViewObj'](_0x2ba928));return new(Y[_0x2b0b61['type']]||_0x15d9f0)(_0x526446,_0x2b0b61['name'],_0x2b0b61['attributes'],_0x49e5c6);}}['_getDiff'](_0x9b2dd8,_0x126169=null){const _0x1c89b2=this['repository']['getRevision'](_0x9b2dd8),_0x344e99=_0x126169?this['repository']['getRevision'](_0x126169):null,_0x1f0d5f=this['_getRevisionsRange'](_0x1c89b2,_0x344e99),_0x223e26=_0x1f0d5f[_0x1f0d5f['length']-0x1],_0x50c0e5=new Map(),_0x309d9f={'model':{},'attributes':{},'changes':[]},_0x8c3b02=new Set(),_0x13d4d8=new Map();for(let _0x18684c=_0x1f0d5f['length']-0x1;_0x18684c>=0x0;_0x18684c--){const _0x1f95fe=_0x1f0d5f[_0x18684c];for(const _0xdc583d of Object['keys'](_0x1f95fe['diffData']))if(_0x1f95fe['diffData'][_0xdc583d]['attachChange']){const _0x1f67ee=_0x1f95fe['diffData'][_0xdc583d]['attachChange'];_0x1f67ee['isAttached']?(_0x8c3b02['add'](_0xdc583d),_0x13d4d8['has'](_0xdc583d)&&_0x13d4d8['get'](_0xdc583d)['userId']==_0x1f67ee['userId']?_0x13d4d8['delete'](_0xdc583d):_0x13d4d8['set'](_0xdc583d,_0x1f67ee)):_0x13d4d8['has'](_0xdc583d)?(_0x8c3b02['delete'](_0xdc583d),_0x13d4d8['delete'](_0xdc583d)):(_0x8c3b02['add'](_0xdc583d),_0x13d4d8['set'](_0xdc583d,_0x1f67ee));}else _0x8c3b02['add'](_0xdc583d);}for(const _0x176dd0 of _0x8c3b02){const _0x4787a7=_0x13d4d8['has'](_0x176dd0)&&!_0x13d4d8['get'](_0x176dd0)['isAttached'];let _0x44e216=_0x4787a7?_0x1f0d5f['length']-0x1:0x0;const _0x2022b0=_0x4787a7?-0x1:0x1;for(;_0x1f0d5f[_0x44e216];){const _0x55ddc8=_0x1f0d5f[_0x44e216];if(_0x55ddc8['diffData'][_0x176dd0]){const _0x3a650f=_0x4787a7?_0x55ddc8['diffData'][_0x176dd0]['attributesBefore']:_0x55ddc8['diffData'][_0x176dd0]['attributesAfter'];_0x309d9f['attributes'][_0x176dd0]=_0x3a650f?_0x5b727a(_0x3a650f):{};break;}_0x44e216+=_0x2022b0;}}for(const _0x35c899 of _0x1f0d5f){_0x35c899['model']={};for(const _0x1b1a92 of _0x35c899['authors'])_0x50c0e5['set'](_0x1b1a92['id'],_0x1b1a92);for(const _0xd1273b of _0x8c3b02){const _0x57bcf8=_0x35c899['diffData'][_0xd1273b]?_0x35c899['diffData'][_0xd1273b]['insertions']:'[]',_0x86e4ff=_0x35c899['diffData'][_0xd1273b]?_0x35c899['diffData'][_0xd1273b]['deletions']:'[]';_0x35c899['model'][_0xd1273b]={'insertions':this['_makeModelFromViewString'](_0x57bcf8),'deletions':this['_makeModelFromViewString'](_0x86e4ff)};}}for(const _0x28397f of _0x8c3b02){let _0x2b0327=null,_0x5d22bc=0x0;const _0xf7993e=new Map(Array['from'](_0x1c89b2['model'][_0x28397f]['insertions']['markers'])['filter'](([_0x57e8c0])=>!_0x57e8c0['startsWith']('revision:')));let _0x54071c=0x0;for(const _0x4217cc of _0x1f0d5f){const _0x2f5685=this['_makeTape'](_0x4217cc['model'][_0x28397f]['insertions']);_0x4217cc==_0x1c89b2?(_0x2b0327=_0x2f5685,_0x5d22bc=_0x2b0327['length'],_0x2b0327['forEach'](_0x2813e4=>{_0x2813e4['id']=_0x54071c++;}),this['_processTape'](_0x2b0327)):this['_markInsertions'](_0x2b0327,_0x2f5685);const _0x5b4eab=_0x2b0327['filter'](_0x33bbae=>!_0x33bbae['isAdded'])['map'](_0x1bb014=>_0x1bb014['id']);let _0x5c0439=0x0;const _0x374ec4=this['_makeTape'](_0x4217cc['model'][_0x28397f]['deletions']);_0x374ec4['forEach'](_0x3fd6f1=>{_0x3fd6f1['isRemoved']?_0x3fd6f1['id']=_0x5d22bc++:_0x3fd6f1['id']=_0x5b4eab[_0x5c0439++];}),this['_processTape'](_0x374ec4),this['_setDistance'](_0x2b0327,'isAdded'),this['_setDistance'](_0x374ec4,'isRemoved'),_0x4217cc==_0x1c89b2&&this['_markMarkers'](_0x2b0327,_0xf7993e),_0x2b0327=this['_joinTapes'](_0x2b0327,_0x374ec4),this['_refreshStartEndIndex'](_0x2b0327),this['_setDistance'](_0x2b0327,'isRemoved');}_0x2b0327=_0x2b0327['filter'](_0x37c0e6=>!(_0x37c0e6['isAdded']&&_0x37c0e6['isRemoved']));const _0x4d06c7=new Map(_0x223e26['model'][_0x28397f]['deletions']['markers']),_0x42b2c9=new Set(_0xf7993e['keys']());for(const _0x384bdb of _0x4d06c7['keys']())_0x42b2c9['delete'](_0x384bdb);this['_markSuggestions'](_0x2b0327,_0x42b2c9),this['_fixObsoleteTags'](_0x2b0327),_0x2b0327=this['_removeMissingPairs'](_0x2b0327),_0x2b0327=this['_markMismatchedRemovedTags'](_0x2b0327),_0x2b0327=this['_removeUnsupportedChanges'](_0x2b0327);const {root:_0x3b3590,changes:_0x2eb3cb}=this['_makeModelFromTape'](_0x2b0327,_0x50c0e5,_0x28397f);_0x309d9f['model'][_0x28397f]=_0x3b3590;const _0x1c9cad=_0x13d4d8['get'](_0x28397f);if(_0x1c9cad){const _0x2e1411=_0x50c0e5['get'](_0x1c9cad['userId']),_0x19e9f6=new r({'author':_0x2e1411,'type':_0x1c9cad['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x28397f});_0x2eb3cb['unshift'](_0x19e9f6),_0x309d9f['attributes'][_0x28397f]['revisionHistoryAttachChange']=_0x19e9f6['id'];}_0x309d9f['changes']=_0x309d9f['changes']['concat'](_0x2eb3cb);}return _0x309d9f;}['_markMarkers'](_0x5afce7,_0x171af1){for(let _0x1f337b=0x0;_0x1f337b<_0x5afce7['length'];_0x1f337b++)for(const [_0x47e20f,_0x3bf437]of _0x171af1)_0x3bf437['start']['isEqual'](_0x5afce7[_0x1f337b]['previousPosition'])&&_0x5afce7[_0x1f337b]['markersStart']['push'](_0x47e20f),_0x3bf437['end']['isEqual'](_0x5afce7[_0x1f337b]['nextPosition'])&&_0x5afce7[_0x1f337b]['markersEnd']['push'](_0x47e20f);}['_joinTapes'](_0x3951fa,_0x3fc3ee){let _0x4c8e23=[],_0x377b14=0x0,_0x95049c=0x0;for(;_0x377b14<_0x3951fa['length']||_0x95049c<_0x3fc3ee['length'];){const _0x502cf4=_0x3951fa[_0x377b14]||{},_0x52939c=_0x3fc3ee[_0x95049c]||{};if(_0x502cf4['id']==_0x52939c['id'])_0x377b14++,_0x95049c++,_0x4c8e23['push'](_0x502cf4);else{if(_0x52939c['isRemoved']&&_0x502cf4['isAdded']){const {commonTape:_0x6ef80e,iEnd:_0x25208b,jEnd:_0x5edfb6}=this['_threeWayMerge'](_0x3951fa,_0x377b14,_0x3fc3ee,_0x95049c);_0x4c8e23=_0x4c8e23['concat'](_0x6ef80e),_0x377b14=_0x25208b,_0x95049c=_0x5edfb6;}else _0x52939c['isRemoved']?(_0x95049c++,_0x4c8e23['push'](_0x52939c)):(_0x377b14++,_0x4c8e23['push'](_0x502cf4));}}return _0x4c8e23;}['_markSuggestions'](_0x5a6e55,_0x85240a){const _0x1e58f9=[];for(let _0x1fe3db=0x0;_0x1fe3db<_0x5a6e55['length'];_0x1fe3db++){for(let _0x185460=0x0;_0x185460<_0x5a6e55[_0x1fe3db]['markersStart']['length'];_0x185460++){const _0x1e7518=_0x5a6e55[_0x1fe3db]['markersStart'][_0x185460];if(!_0x85240a['has'](_0x1e7518))continue;const {group:_0x3ef833,type:_0xd8b06f,authorId:_0xcd23d8}=_0x44d574(_0x1e7518);'revision-suggestion'!=_0x3ef833||'insertion'!=_0xd8b06f&&'deletion'!=_0xd8b06f||(_0x1e58f9['unshift']({'type':_0xd8b06f,'name':_0x1e7518,'userId':_0xcd23d8}),_0x5a6e55[_0x1fe3db]['markersStart']['splice'](_0x185460,0x1),_0x185460--);}_0x498d59(_0x5a6e55[_0x1fe3db]);for(let _0x12e4c8=0x0;_0x12e4c8<_0x5a6e55[_0x1fe3db]['markersEnd']['length'];_0x12e4c8++){const _0x3f1c22=_0x5a6e55[_0x1fe3db]['markersEnd'][_0x12e4c8];if(!_0x85240a['has'](_0x3f1c22))continue;const {group:_0x4a90d2,type:_0x4b05d5}=_0x44d574(_0x3f1c22);if('revision-suggestion'!=_0x4a90d2||'insertion'!=_0x4b05d5&&'deletion'!=_0x4b05d5)continue;_0x5a6e55[_0x1fe3db]['markersEnd']['splice'](_0x12e4c8,0x1),_0x12e4c8--;const _0x287dbb=_0x1e58f9['findIndex'](_0x224b9f=>_0x224b9f['name']==_0x3f1c22);_0x287dbb>-0x1&&_0x1e58f9['splice'](_0x287dbb,0x1);}}function _0x44d574(_0x34aecd){const _0x13c8b1=_0x34aecd['split'](':');return{'group':_0x13c8b1[0x0],'type':_0x13c8b1[0x1],'subType':_0x13c8b1['length']>=0x5?_0x13c8b1[0x2]:null,'id':_0x13c8b1['length']<0x5?_0x13c8b1[0x2]:_0x13c8b1[0x3],'authorId':_0x13c8b1['length']<0x5?_0x13c8b1[0x3]:_0x13c8b1[0x4],'markerCount':0x6==_0x13c8b1['length']?_0x13c8b1[0x5]:null};}function _0x498d59(_0x10329e){for(let _0x40e159=0x0;_0x40e159<_0x1e58f9['length'];_0x40e159++){if(_0x10329e['isAdded']&&'insertion'==_0x1e58f9[_0x40e159]['type'])return _0x10329e['isAddSuggestion']=_0x1e58f9[_0x40e159],void delete _0x10329e['isAdded'];if(!_0x10329e['isAdded']&&!_0x10329e['isRemoved']&&'deletion'==_0x1e58f9[_0x40e159]['type'])return void(_0x10329e['isRemoveSuggestion']=_0x1e58f9[_0x40e159]);}}}['_setDistance'](_0x329fc6,_0x5381bf){let _0x3fe696=0x0,_0x2a8f41=!0x1;const _0x3ca2ac=new Map();for(const _0x41c0d5 of _0x329fc6)_0x41c0d5[_0x5381bf]?_0x2a8f41&&(_0x3fe696++,_0x2a8f41=!0x1):(_0x3fe696++,_0x2a8f41=!0x0),_0x3ca2ac['set'](_0x41c0d5['id'],_0x3fe696);for(let _0x395090=0x0;_0x395090<_0x329fc6['length'];_0x395090++){if('isRemoved'==_0x5381bf&&_0x329fc6[_0x395090]['isAdded']||'isAdded'==_0x5381bf&&_0x329fc6[_0x395090]['isRemoved'])continue;if('text'==_0x329fc6[_0x395090]['type']){_0x329fc6[_0x395090]['distance']=0x0;continue;}const _0x1f6e5b=_0x3ca2ac['get'](_0x329fc6[_0x395090]['pairId']),_0x3ee07a=_0x3ca2ac['get'](_0x329fc6[_0x395090]['id']);_0x329fc6[_0x395090]['distance']=_0x1f6e5b-_0x3ee07a;}}['_getRevisionsRange'](_0x19c166,_0x3de67b,_0x1b663a=!0x1){const _0x3d57c5=[];let _0x3d1aa0=this['repository']['getIndex'](_0x19c166),_0x23799a=this['repository']['getIndex'](_0x3de67b);for(-0x1==_0x23799a&&(_0x23799a=this['repository']['_revisions']['length'],_0x1b663a=!0x1);_0x3d1aa0<_0x23799a;)_0x3d57c5['push'](this['repository']['getRevision'](_0x3d1aa0)),_0x3d1aa0++;return _0x1b663a&&_0x3d57c5['push'](this['repository']['getRevision'](_0x3d1aa0)),_0x3d57c5;}['_threeWayMerge'](_0x577cb6,_0x3390b7,_0x3a79a3,_0x9cbce6){const _0x3f242f=this['editor']['model']['schema'];let _0x296ff7=_0x3390b7;for(;_0x577cb6[_0x296ff7]&&_0x577cb6[_0x296ff7]['isAdded'];)_0x296ff7++;let _0x1bb02f=_0x9cbce6;for(;_0x3a79a3[_0x1bb02f]&&_0x3a79a3[_0x1bb02f]['isRemoved'];)_0x1bb02f++;_0x17bad2(_0x577cb6,_0x3390b7,_0x296ff7),_0x17bad2(_0x3a79a3,_0x9cbce6,_0x1bb02f);const _0x56bd1b=_0x3a79a3['slice'](_0x9cbce6,_0x1bb02f)['concat'](_0x577cb6['slice'](_0x3390b7,_0x296ff7));return _0x56bd1b['sort']((_0x5b8c5d,_0x165d88)=>_0x5b8c5d['side']!=_0x165d88['side']?_0x5b8c5d['side']-_0x165d88['side']:_0x5b8c5d['level']!=_0x165d88['level']?_0x5b8c5d['level']-_0x165d88['level']:_0x5b8c5d['distance']!=_0x165d88['distance']?_0x165d88['distance']-_0x5b8c5d['distance']:!!_0x5b8c5d['isAdded']!=!!_0x165d88['isAdded']?-0x1==_0x5b8c5d['side']||0x0==_0x5b8c5d['side']?_0x5b8c5d['isAdded']?-0x1:0x1:_0x5b8c5d['isAdded']?0x1:-0x1:_0x5b8c5d['index']-_0x165d88['index']),{'commonTape':_0x56bd1b,'iEnd':_0x296ff7,'jEnd':_0x1bb02f};function _0x17bad2(_0x297870,_0x4a1f11,_0x2b6a30){let _0x73c0ca=-0x1,_0x1f2272=Number['POSITIVE_INFINITY'],_0x14cc4f=!0x0;for(let _0x2ad286=_0x4a1f11;_0x2ad286<_0x2b6a30;_0x2ad286++)if(_0x3f242f['isInline'](_0x297870[_0x2ad286]['item'])||(_0x14cc4f=!0x1),_0x297870[_0x2ad286]['item']['startIndex']<_0x4a1f11&&(_0x73c0ca=_0x2ad286),_0x297870[_0x2ad286]['item']['endIndex']>=_0x2b6a30){_0x1f2272=_0x2ad286;break;}_0x14cc4f&&(_0x73c0ca=_0x2b6a30-0x1);for(let _0x5b4039=_0x4a1f11;_0x5b4039<_0x2b6a30;_0x5b4039++)_0x297870[_0x5b4039]['side']=_0x5b4039<=_0x73c0ca?-0x1:_0x5b4039<_0x1f2272?0x0:0x1,_0x297870[_0x5b4039]['index']=_0x5b4039;let _0x11ba91=0x0;for(let _0x6b94b4=_0x4a1f11;_0x6b94b4<=_0x73c0ca;_0x6b94b4++)0x0==_0x297870[_0x6b94b4]['distance']?_0x297870[_0x6b94b4]['level']=_0x11ba91:(_0x11ba91++,_0x297870[_0x6b94b4]['level']=_0x11ba91,_0x11ba91++);for(let _0x42e222=_0x4a1f11;_0x42e222<_0x2b6a30;_0x42e222++)0x0==_0x297870[_0x42e222]['side']&&(_0x297870[_0x42e222]['level']=_0x11ba91);_0x11ba91=0x0;for(let _0x5c8ae3=_0x2b6a30-0x1;_0x5c8ae3>=_0x1f2272;_0x5c8ae3--)0x0==_0x297870[_0x5c8ae3]['distance']?_0x297870[_0x5c8ae3]['level']=_0x11ba91:(_0x11ba91--,_0x297870[_0x5c8ae3]['level']=_0x11ba91,_0x11ba91--);}}['_fixObsoleteTags'](_0x4c9d8a){const _0x2393b8=new Map(),_0x360e09=this['editor']['model']['schema'];for(let _0x29215d=0x1;_0x29215d<_0x4c9d8a['length'];_0x29215d++){let _0x597ed0,_0x498bc1,_0x2a6eda;const _0x5ed304=_0x4c9d8a[_0x29215d],_0x586466=_0x4c9d8a[_0x29215d-0x1];if('text'==_0x5ed304['type'])continue;if(_0x5ed304['type']!=_0x586466['type'])continue;if(!_0x360e09['isBlock'](_0x586466['item'])||_0x360e09['isLimit'](_0x586466['item']))continue;if(!_0x360e09['isBlock'](_0x5ed304['item'])||_0x360e09['isLimit'](_0x5ed304['item']))continue;if((_0x4c9d8a[_0x29215d]['isAdded']||_0x4c9d8a[_0x29215d]['isAddSuggestion'])&&_0x4c9d8a[_0x29215d-0x1]['isRemoved'])_0x597ed0=_0x4c9d8a[_0x29215d],_0x498bc1=_0x4c9d8a[_0x29215d-0x1],_0x2a6eda=_0x29215d-0x1;else{if(!_0x4c9d8a[_0x29215d]['isRemoved']||!_0x4c9d8a[_0x29215d-0x1]['isAdded']&&!_0x4c9d8a[_0x29215d-0x1]['isAddSuggestion'])continue;_0x597ed0=_0x4c9d8a[_0x29215d-0x1],_0x498bc1=_0x4c9d8a[_0x29215d],_0x2a6eda=_0x29215d;}const _0x43f946=_0x597ed0['level']==_0x498bc1['level'],_0x43e1ac=Math['abs'](_0x597ed0['level'])<Math['abs'](_0x498bc1['level'])&&0x0==_0x498bc1['distance'];(_0x43f946||_0x43e1ac)&&(_0x2393b8['set'](_0x498bc1['id'],_0x597ed0['id']),_0x4c9d8a['splice'](_0x2a6eda,0x1),_0x29215d--,_0x597ed0['isAdded']=!0x1);}for(let _0x5ab1fd=0x0;_0x5ab1fd<_0x4c9d8a['length'];_0x5ab1fd++)_0x2393b8['has'](_0x4c9d8a[_0x5ab1fd]['pairId'])&&(_0x4c9d8a[_0x5ab1fd]['pairId']=_0x2393b8['get'](_0x4c9d8a[_0x5ab1fd]['pairId']));}['_removeMissingPairs'](_0x4c9970){const _0x17b582=new Set(_0x4c9970['map'](_0x457183=>_0x457183['id']));for(let _0x2f13d7=0x0;_0x2f13d7<_0x4c9970['length'];_0x2f13d7++)_0x17b582['has'](_0x4c9970[_0x2f13d7]['pairId'])||0x0==_0x4c9970[_0x2f13d7]['distance']||(_0x4c9970[_0x2f13d7]['isIncorrect']=!0x0);return _0x4c9970['filter'](_0x102398=>!_0x102398['isIncorrect']);}['_markMismatchedRemovedTags'](_0xfa16){const _0x40923a=new Set();for(let _0x39724a=0x0;_0x39724a<_0xfa16['length'];_0x39724a++){if(_0x40923a['has'](_0xfa16[_0x39724a]['id'])&&_0xfa16[_0x39724a]['isRemoved']&&(_0xfa16[_0x39724a]['isIncorrect']=!0x0),_0xfa16[_0x39724a]['isIncorrect'])continue;if(0x0==_0xfa16[_0x39724a]['distance'])continue;if('elementStart'!=_0xfa16[_0x39724a]['type'])continue;if(null==_0xfa16[_0x39724a]['pairId'])continue;let _0xdaa4dc=_0x39724a+0x1,_0x22cdd2=0x0;for(;_0xfa16[_0xdaa4dc]['id']!=_0xfa16[_0x39724a]['pairId'];)'elementStart'==_0xfa16[_0xdaa4dc]['type']?_0x22cdd2++:'elementEnd'==_0xfa16[_0xdaa4dc]['type']&&_0x22cdd2--,_0xdaa4dc++;if(0x0!=_0x22cdd2){if(_0xfa16[_0x39724a]['isRemoved'])_0xfa16[_0x39724a]['isIncorrect']=!0x0;else{for(;_0xdaa4dc!=_0x39724a;)_0xfa16[_0xdaa4dc]['isRemoved']&&0x0!=_0xfa16[_0xdaa4dc]['distance']&&(_0xfa16[_0xdaa4dc]['isIncorrect']=!0x0,_0x40923a['add'](_0xfa16[_0xdaa4dc]['pairId'])),_0xdaa4dc--;}}}return _0xfa16['filter'](_0x3804e4=>!_0x3804e4['isIncorrect']);}['_removeUnsupportedChanges'](_0x4fc595){const _0x3f41c3=this['editor']['model']['schema'];for(let _0x850261=0x0;_0x850261<_0x4fc595['length'];_0x850261++){if(!(_0x4fc595[_0x850261]['isAdded']||_0x4fc595[_0x850261]['isAddSuggestion']||_0x4fc595[_0x850261]['isRemoved']||_0x4fc595[_0x850261]['isRemoveSuggestion']))continue;if(0x0==_0x4fc595[_0x850261]['distance'])continue;const _0x1194d8=_0x4fc595[_0x850261]['item'];_0x3f41c3['isBlock'](_0x1194d8)||_0x3f41c3['isLimit'](_0x1194d8)||(_0x4fc595[_0x850261]['isAdded']&&delete _0x4fc595[_0x850261]['isAdded'],_0x4fc595[_0x850261]['isAddSuggestion']&&delete _0x4fc595[_0x850261]['isAddSuggestion'],_0x4fc595[_0x850261]['isRemoveSuggestion']&&delete _0x4fc595[_0x850261]['isRemoveSuggestion'],_0x4fc595[_0x850261]['isRemoved']&&(_0x4fc595[_0x850261]['isIncorrect']=!0x0));}return _0x4fc595['filter'](_0x436e67=>!_0x436e67['isIncorrect']);}['_makeModelFromTape'](_0x2c8165,_0x188610,_0x27c99d){const _0x602305=new gt(),_0x3bc493=[],_0x29ba59=new Map(),_0x1f04e0=this['editor']['model'],_0x5b5f40=_0x1f04e0['schema'],_0xa81f88=[_0x602305],_0x5db034={},_0x28e303={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x426f00=null;const _0xeaa048=[0x0];for(let _0x1971c9=0x0;_0x1971c9<_0x2c8165['length'];_0x1971c9++)if('elementStart'===_0x2c8165[_0x1971c9]['type']){_0x2c8165[_0x1971c9]['previousPosition']=_0x1f04e0['createPositionFromPath'](_0x602305,_0xeaa048);const _0x2a0504=new ut(_0x2c8165[_0x1971c9]['item']['name'],_0x2c8165[_0x1971c9]['item']['getAttributes']());_0xa81f88[0x0]['_appendChild'](_0x2a0504),_0xeaa048['push'](0x0),_0xa81f88['unshift'](_0x2a0504),_0x2c8165[_0x1971c9]['nextPosition']=_0x1f04e0['createPositionFromPath'](_0x602305,_0xeaa048);}else'elementEnd'===_0x2c8165[_0x1971c9]['type']?(_0xa81f88['shift'](),_0x2c8165[_0x1971c9]['previousPosition']=_0x1f04e0['createPositionFromPath'](_0x602305,_0xeaa048),_0xeaa048['pop'](),_0xeaa048[_0xeaa048['length']-0x1]++,_0x2c8165[_0x1971c9]['nextPosition']=_0x1f04e0['createPositionFromPath'](_0x602305,_0xeaa048)):(_0x2c8165[_0x1971c9]['previousPosition']=_0x1f04e0['createPositionFromPath'](_0x602305,_0xeaa048),_0x426f00?_0x426f00['_data']+=_0x2c8165[_0x1971c9]['item']['data']:_0x426f00=new wt(_0x2c8165[_0x1971c9]['item']['data'],_0x2c8165[_0x1971c9]['item']['getAttributes']()),_0x2c8165[_0x1971c9+0x1]&&'text'===_0x2c8165[_0x1971c9+0x1]['type']&&_0xa3828d(_0x426f00,_0x2c8165[_0x1971c9+0x1]['item'])||(_0xa81f88[0x0]['_appendChild'](_0x426f00),_0x426f00=null),_0xeaa048[_0xeaa048['length']-0x1]+=_0x2c8165[_0x1971c9]['item']['offsetSize'],_0x2c8165[_0x1971c9]['nextPosition']=_0x1f04e0['createPositionFromPath'](_0x602305,_0xeaa048));for(let _0x538cbc=0x0;_0x538cbc<_0x2c8165['length'];_0x538cbc++){const _0x1a6f0c=_0x2c8165[_0x538cbc]['previousPosition'],_0x4c1008=_0x2c8165[_0x538cbc]['nextPosition'];for(const _0xa17638 of _0x2c8165[_0x538cbc]['markersStart'])_0x29ba59['set'](_0xa17638,{'start':_0x1a6f0c,'end':null});_0x5bd40c('isRemoveSuggestion',_0x538cbc,_0x1a6f0c,_0x4c1008),_0x5bd40c('isAddSuggestion',_0x538cbc,_0x1a6f0c,_0x4c1008),_0x5bd40c('isRemoved',_0x538cbc,_0x1a6f0c,_0x4c1008),_0x5bd40c('isAdded',_0x538cbc,_0x1a6f0c,_0x4c1008);for(const _0x320c1a of _0x2c8165[_0x538cbc]['markersEnd']){_0x29ba59['get'](_0x320c1a)['end']=_0x4c1008;}}for(const [_0xa53600,_0x3b2c6c]of _0x29ba59){const _0x3da685=this['editor']['model']['createRange'](_0x3b2c6c['start'],_0x3b2c6c['end']);_0x602305['markers']['set'](_0xa53600,_0x3da685);}return _0x3bc493['sort']((_0x3cfa67,_0x4d2552)=>{const _0x1dfcb2=_0x602305['markers']['get']('revision:'+_0x3cfa67['id']),_0x4737bc=_0x602305['markers']['get']('revision:'+_0x4d2552['id']);return _0x1dfcb2['start']['isBefore'](_0x4737bc['start'])?-0x1:_0x1dfcb2['start']['isAfter'](_0x4737bc['start'])?0x1:_0x1dfcb2['end']['isBefore'](_0x4737bc['end'])?-0x1:_0x1dfcb2['end']['isAfter'](_0x4737bc['end'])?0x1:'add'===_0x3cfa67['type']?-0x1:0x1;}),{'root':_0x602305,'changes':_0x3bc493};function _0x5bd40c(_0x160c6f,_0x4e155f,_0x29ced9,_0x266f4e){const _0x469079=!!_0x2c8165[_0x4e155f][_0x160c6f],_0x405b6e=_0x469079?_0x2c8165[_0x4e155f][_0x160c6f]['userId']:null,_0x48ff3b=_0x4e155f===_0x2c8165['length']-0x1,_0x2edbe5=_0x28e303[_0x160c6f][0x0],_0x1c5c8b=_0x5b5f40['isObject'](_0x2c8165[_0x4e155f]['item']);!_0x5db034[_0x160c6f]&&_0x469079?_0x5db034[_0x160c6f]={'start':_0x29ced9,'tapeItem':_0x2c8165[_0x4e155f],'userId':_0x405b6e,'type':_0x160c6f}:_0x5db034[_0x160c6f]&&!_0x469079?(_0x5db034[_0x160c6f]['end']=_0x29ced9,_0x5ecbef(_0x5db034[_0x160c6f]),_0x5db034[_0x160c6f]=null):_0x5db034[_0x160c6f]&&_0x469079&&_0x5db034[_0x160c6f]['userId']!==_0x405b6e&&(_0x5db034[_0x160c6f]['end']=_0x29ced9,_0x2edbe5&&_0x2edbe5['userId']===_0x5db034[_0x160c6f]['userId']||_0x5ecbef(_0x5db034[_0x160c6f]),_0x5db034[_0x160c6f]={'start':_0x29ced9,'tapeItem':_0x2c8165[_0x4e155f],'userId':_0x405b6e,'type':_0x160c6f}),_0x5db034[_0x160c6f]&&_0x1c5c8b&&('elementStart'!==_0x2c8165[_0x4e155f]['type']||_0x2edbe5&&_0x2edbe5['userId']===_0x405b6e||_0x28e303[_0x160c6f]['unshift']({'userId':_0x405b6e,'object':_0x2c8165[_0x4e155f]['item'],'change':_0x5db034[_0x160c6f]}),'elementEnd'===_0x2c8165[_0x4e155f]['type']&&_0x2edbe5&&_0x2edbe5['object']===_0x2c8165[_0x4e155f]['item']&&(_0x28e303[_0x160c6f]['shift'](),_0x5db034[_0x160c6f]=_0x2edbe5['change'])),_0x5db034[_0x160c6f]&&_0x48ff3b&&(_0x5db034[_0x160c6f]['end']=_0x266f4e,_0x5ecbef(_0x5db034[_0x160c6f]),_0x5db034[_0x160c6f]=null);}function _0x5ecbef({start:_0x1ae288,end:_0x4a6cba,tapeItem:_0x249b79,userId:_0x4d0ec9,type:_0x2d4bd0}){const _0x19ad3c=_0x249b79['item'],_0x30eb7d=_0x1f04e0['schema']['isBlock'](_0x19ad3c)&&!_0x1f04e0['schema']['isLimit'](_0x19ad3c),_0x1affd9=_0x1ae288['nodeAfter']==_0x4a6cba['parent']&&_0x4a6cba['isAtStart'];if(_0x30eb7d&&_0x1affd9)return;const _0x58251e=_0x1f04e0['createRange'](_0x1ae288,_0x4a6cba),_0x1a4cf9=_0x188610['get'](_0x4d0ec9),_0x78faea=new r({'author':_0x1a4cf9,'type':'isAdded'==_0x2d4bd0||'isAddSuggestion'==_0x2d4bd0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2d4bd0||'isRemoveSuggestion'==_0x2d4bd0},'createdAt':new Date(),'rootName':_0x27c99d});_0x3bc493['push'](_0x78faea),_0x602305['markers']['set']('revision:'+_0x78faea['id'],_0x58251e);}function _0xa3828d(_0x1e29c0,_0x4b3b56){const _0x3d881e=_0x1e29c0['getAttributes'](),_0x241c80=_0x4b3b56['getAttributes']();for(const _0x23c5bc of _0x3d881e){if(_0x23c5bc[0x1]!==_0x4b3b56['getAttribute'](_0x23c5bc[0x0]))return!0x1;_0x241c80['next']();}return _0x241c80['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2836b0=>{const _0x2b45ac=_0x2836b0['markerName']['split'](':')[0x1],_0x51df20=this['_getChangeFromId'](_0x2b45ac);if(!_0x51df20)return null;const _0x547816='add'==_0x51df20['type']?'insertion':'deletion',_0x3b5832=['ck-suggestion-marker','ck-suggestion-marker-'+_0x547816];return _0x51df20['data']['isSuggestion']&&_0x3b5832['push']('ck-suggestion-marker-'+_0x547816+'-new'),this['activeChange']==_0x51df20&&_0x3b5832['push']('ck-suggestion-marker--active'),{'classes':_0x3b5832,'attributes':{'data-change-id':_0x2b45ac}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x23cbe8=>{_0x23cbe8['on']('element:pre',(_0x90698d,_0x22f3e6,_0x363cd7)=>{const _0x7f115d=_0x22f3e6['viewItem']['getChild'](0x0);if(!_0x7f115d||!_0x7f115d['is']('element','code'))return;if(!_0x363cd7['consumable']['consume'](_0x7f115d,{'attributes':['vid_start','vid_end']}))return;const _0x1324c6=_0x22f3e6['modelRange']['start']['nodeAfter'];_0x363cd7['writer']['setAttribute']('vid_start',_0x7f115d['getAttribute']('vid_start'),_0x1324c6),_0x363cd7['writer']['setAttribute']('vid_end',_0x7f115d['getAttribute']('vid_end'),_0x1324c6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x76b193=>{_0x76b193['on']('element',(_0x438fe6,_0x23b412,_0x16cf1b)=>{if(!_0x16cf1b['consumable']['consume'](_0x23b412['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x23b412['modelRange']['isCollapsed'])return;const _0x2d6300=_0x23b412['modelRange']['start']['nodeAfter'];_0x2d6300['hasAttribute']('vid_start')||_0x2d6300['hasAttribute']('vid')||(_0x16cf1b['writer']['setAttribute']('vid_start',_0x23b412['viewItem']['getAttribute']('vid_start'),_0x2d6300),_0x16cf1b['writer']['setAttribute']('vid_end',_0x23b412['viewItem']['getAttribute']('vid_end'),_0x2d6300));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1808f8=>_0x1808f8['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2f0225,[,_0x38e8d5])=>{['vid_start','vid_end','vid']['includes'](_0x38e8d5)&&(_0x2f0225['return']=!0x0,_0x2f0225['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2f24f2=>{_0x2f24f2['on']('attribute:vid',(_0xf9747e,_0x2e61eb,_0xb053b5)=>{if('\x20'!=_0x2e61eb['item']['data']||_0x2e61eb['item']['parent']['maxOffset']>0x1)return;if(!_0xb053b5['consumable']['consume'](_0x2e61eb['item'],_0xf9747e['name']))return;const _0x10e462=_0xb053b5['writer'],_0x516a71=_0xb053b5['mapper']['toViewRange'](_0x2e61eb['range']);_0x10e462['wrap'](_0x516a71,_0x10e462['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x56ca7d){const _0x1cbe14=_0x56ca7d['plugins']['get']('RevisionViewer');return(_0x29bf3e,_0x51fe6b,_0x3cccbb)=>{const _0x40c5fa=_0x51fe6b['markerName']['split'](':')[0x1],_0x2f35de=_0x1cbe14['_getChangeFromId'](_0x40c5fa);if(!_0x2f35de)return null;const _0x2a59c4='add'==_0x2f35de['type']?'split':'merge';if(!_0x3cccbb['consumable']['test'](_0x51fe6b['markerRange'],_0x29bf3e['name']))return;const _0x32f393=_0x51fe6b['markerRange']['getWalker'](),_0x11e26d=_0x51fe6b['markerRange']['start'],_0x2517f8=_0x56ca7d['model']['schema'];let _0x528315=null,_0x486d47=null,_0x269e71=!0x1,_0x3831ea=!0x1;for(const _0x3fadcc of _0x32f393){const _0x181555=_0x3fadcc['item'];_0x269e71=_0x269e71||_0x2517f8['isContent'](_0x181555);const _0x569c2e=_0x3cccbb['mapper']['toViewElement'](_0x181555);if(_0x569c2e&&_0x569c2e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3fadcc['type']&&(_0x2517f8['isBlock'](_0x181555)&&!_0x2517f8['isLimit'](_0x181555)&&(_0x181555['nextSibling']||_0x11e26d['isAtEnd']?_0x528315&&_0x528315['parent']==_0x181555||(_0x528315=_0x181555,_0x251560(_0x3fadcc['previousPosition']),_0x3831ea=!0x0):_0x486d47=_0x486d47||_0x3fadcc['previousPosition']));}function _0x251560(_0x570d47){const _0x39426c=_0x3cccbb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a59c4}),_0x3103ed=_0x3cccbb['mapper']['toViewPosition'](_0x570d47);_0x2f35de['data']['isSuggestion']&&_0x3cccbb['writer']['addClass']('ck-suggestion-marker-'+_0x2a59c4+'-new',_0x39426c),_0x1cbe14['activeChange']==_0x2f35de&&_0x3cccbb['writer']['addClass']('ck-suggestion-marker--active',_0x39426c),_0x3cccbb['writer']['insert'](_0x3103ed,_0x39426c),_0x3cccbb['mapper']['bindElementToMarker'](_0x39426c,_0x51fe6b['markerName']);}_0x269e71||_0x3831ea||!_0x486d47||_0x251560(_0x486d47);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4f727a,_0x4c69b8,_0x31d064)=>{const _0x2dee16=_0x31d064['mapper']['markerNameToElements'](_0x4c69b8['markerName']);if(_0x2dee16){for(const _0x43b056 of _0x2dee16)(_0x43b056['hasClass']('ck-suggestion-marker-split')||_0x43b056['hasClass']('ck-suggestion-marker-merge'))&&(_0x31d064['mapper']['unbindElementFromMarkerName'](_0x43b056,_0x4c69b8['markerName']),_0x31d064['writer']['remove'](_0x43b056));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4b8e55,_0x2411ce,_0x1b0184)=>{const _0x6d8a3f=_0x2411ce['markerName']['split'](':')[0x1],_0x18f808=this['_getChangeFromId'](_0x6d8a3f);if(!_0x18f808)return null;const _0x4deba7='add'==_0x18f808['type']?'split':'merge';if(_0x1b0184['consumable']['test'](_0x2411ce['markerRange'],_0x4b8e55['name']))for(const _0x162780 of _0x2411ce['markerRange']['getItems']()){if(!_0x162780['is']('element','softBreak'))continue;const _0x10b23d=_0x1b0184['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4deba7}),_0x3c7121=_0x1b0184['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x162780));_0x18f808['data']['isSuggestion']&&_0x1b0184['writer']['addClass']('ck-suggestion-marker-'+_0x4deba7+'-new',_0x10b23d),this['activeChange']==_0x18f808&&_0x1b0184['writer']['addClass']('ck-suggestion-marker--active',_0x10b23d),_0x1b0184['writer']['insert'](_0x3c7121,_0x10b23d),_0x1b0184['mapper']['bindElementToMarker'](_0x10b23d,_0x2411ce['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x54a508=>{for(const _0x2da8c6 of this['editor']['model']['document']['getRootNames']()){const _0x5f211d=this['editor']['model']['document']['getRoot'](_0x2da8c6),_0x54b995=this['editor']['editing']['view']['document']['getRoot'](_0x2da8c6);if(_0x54b995){const _0x5a4452=_0x5f211d['getAttribute']('revisionHistoryAttachChange');if(_0x54a508['removeAttribute']('data-change-id',_0x54b995),_0x54a508['removeClass']('ck-revision-history-root-add',_0x54b995),_0x54a508['removeClass']('ck-revision-history-root-remove',_0x54b995),_0x54a508['removeClass']('ck-revision-history-root--active',_0x54b995),_0x5a4452){const _0x20ce85=this['_getChangeFromId'](_0x5a4452);if(!_0x20ce85)return null;_0x54a508['setAttribute']('data-change-id',_0x5a4452,_0x54b995),_0x54a508['addClass']('ck-revision-history-root-'+_0x20ce85['type'],_0x54b995),this['activeChange']==_0x20ce85&&_0x54a508['addClass']('ck-revision-history-root--active',_0x54b995);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x156c88=>'revision-comment:'+_0x156c88,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3c2b5e=>'revision-suggestion:'+_0x3c2b5e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x10c06b=>({'name':'suggestion:'+_0x10c06b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x48544b=>{const _0xb6dc8c=_0x48544b['markerName']['split'](':')[0x1];return'insertion'!=_0xb6dc8c&&'deletion'!=_0xb6dc8c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xb6dc8c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x198a68,_0x5bef88,_0x9a0d20)=>{const _0xa2cbb4=_0x9a0d20['mapper']['markerNameToElements'](_0x5bef88['markerName']);if(_0xa2cbb4){for(const _0x1a502b of _0xa2cbb4)_0x1a502b['is']('uiElement')&&(_0x9a0d20['mapper']['unbindElementFromMarkerName'](_0x1a502b,_0x5bef88['markerName']),_0x9a0d20['writer']['remove'](_0x1a502b));}},{'priority':'high'});}['_getChangeFromId'](_0x256ab4){return this['_changeIdToChange']['get'](_0x256ab4);}['_getViewForChange'](_0x458a37){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x458a37),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4995af,_0x1a81d3,_0x40f89f,_0x51b489)=>{_0x51b489&&this['_balloon']['remove'](_0x51b489),_0x40f89f&&(this['_balloon']['add']({'view':_0x40f89f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4b1a67=this['editor']['editing'],_0x1a1b55=this['_getChangeFromId'](_0x40f89f['changeId']);let _0x928bec;if(_0x1a1b55['data']['isOnRoot']){const _0x51935e=_0x4b1a67['view']['getDomRoot'](_0x1a1b55['rootName']);_0x928bec=Array['from'](_0x51935e['getClientRects']());}else{const _0x450540=this['editor']['model']['markers']['get']('revision:'+_0x40f89f['changeId']);_0x928bec=Array['from'](_0x4b1a67['mapper']['markerNameToElements'](_0x450540['name']))['map'](_0x116019=>_0x4b1a67['view']['domConverter']['mapViewToDom'](_0x116019))['map'](_0xd0b5dd=>Array['from'](_0xd0b5dd['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x928bec[0x0];return _0x928bec['find'](_0x50aac3=>_0x50aac3['top']-0x3<=this['_activeViewTarget']['y']&&_0x50aac3['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x50aac3['left']-0x3<=this['_activeViewTarget']['x']&&_0x50aac3['right']+0x3>=this['_activeViewTarget']['x'])||_0x928bec[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x296594,_0x39668f,_0xc6bb40,_0x546960)=>{this['activeView']=_0xc6bb40?this['_getViewForChange'](_0xc6bb40):null,this['editor']['model']['change'](()=>{const _0x1ff151=this['editor']['editing'];_0x546960&&(_0x546960['data']['isOnRoot']?_0x1ff151['view']['change'](_0x3f3ae2=>{_0x3f3ae2['removeClass']('ck-revision-history-root--active',_0x1ff151['view']['document']['getRoot'](_0x546960['rootName']));}):_0x1ff151['reconvertMarker']('revision:'+_0x546960['id'])),_0xc6bb40&&(_0xc6bb40['data']['isOnRoot']?_0x1ff151['view']['change'](_0x8cff45=>{_0x8cff45['addClass']('ck-revision-history-root--active',_0x1ff151['view']['document']['getRoot'](_0xc6bb40['rootName']));}):_0x1ff151['reconvertMarker']('revision:'+_0xc6bb40['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x6d37e2,_0x3e0575)=>{if(this['activeChange'])return;const _0x33786b=this['_findChangeIdFromDomTarget'](_0x3e0575['target']),_0x37aae5=this['_changeIdToChange']['get'](_0x33786b);_0x37aae5?(this['_activeViewTarget']={'x':_0x3e0575['domEvent']['x'],'y':_0x3e0575['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x37aae5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x327bf0,_0x3c822e)=>{const _0x56005b=this['_findChangeIdFromDomTarget'](_0x3c822e['target']),_0x461cb2=this['_changeIdToChange']['get'](_0x56005b);_0x461cb2?(this['_activeViewTarget']={'x':_0x3c822e['domEvent']['x'],'y':_0x3c822e['domEvent']['y']},_0x461cb2===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x461cb2):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1c25a3){do{const _0x217fb2=_0x1c25a3['getAttribute']('data-change-id');if(_0x217fb2)return _0x217fb2;_0x1c25a3=_0x1c25a3['parent'];}while(_0x1c25a3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x59dd4f=>{for(const _0x4ff11e of this['editor']['model']['markers'])_0x59dd4f['removeMarker'](_0x4ff11e);});}}function Z(_0x47b10d,_0x1c3add){return(_0x21977e,_0xef5504,_0x77c678)=>{if(!_0x77c678['consumable']['test'](_0xef5504['markerRange'],_0x21977e['name']))return;const _0x1e7ad2=_0xef5504['markerRange']['getWalker'](),_0x66f14f=_0xef5504['markerRange']['start'],_0x294b20=_0x47b10d['model']['schema'];let _0x457dfd=null,_0x23cf19=null,_0x584922=!0x1,_0x20bfcc=!0x1;for(const _0x50cb13 of _0x1e7ad2){const _0x3987fa=_0x50cb13['item'];_0x584922=_0x584922||_0x294b20['isContent'](_0x3987fa);const _0x70b392=_0x77c678['mapper']['toViewElement'](_0x3987fa);if(_0x70b392&&_0x70b392['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50cb13['type']&&(_0x294b20['isBlock'](_0x3987fa)&&!_0x294b20['isLimit'](_0x3987fa)&&(_0x3987fa['nextSibling']||_0x66f14f['isAtEnd']?_0x457dfd&&_0x457dfd['parent']==_0x3987fa||(_0x457dfd=_0x3987fa,_0x286de4(_0x50cb13['previousPosition']),_0x20bfcc=!0x0):_0x23cf19=_0x23cf19||_0x50cb13['previousPosition']));}function _0x286de4(_0x17dff4){const _0x108263=_0x77c678['mapper']['toViewPosition'](_0x17dff4),_0x4c6cef=_0x77c678['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1c3add});_0x77c678['writer']['insert'](_0x108263,_0x4c6cef),_0x77c678['mapper']['bindElementToMarker'](_0x4c6cef,_0xef5504['markerName']);}_0x584922||_0x20bfcc||!_0x23cf19||_0x286de4(_0x23cf19);};}class _t extends _0x2d0252{constructor(_0x2691d2){super(_0x2691d2);const _0x4380ba=_0x2691d2['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4380ba,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4380ba,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x381b14=this['editor'],_0x517620=_0x381b14['plugins']['get'](d),_0x2f1025=_0x517620['isReady']?_0x517620['diff']['newRevisionId']:null;_0x381b14['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2f1025);}['refresh'](){const {isReady:_0xc4bc6,isEnabled:_0x2efc61,repository:_0xff2e89,diff:_0x14f1fb}=this['editor']['plugins']['get'](d),_0x153539=_0x14f1fb&&_0xff2e89['getLaterVisibleRevision'](_0x14f1fb['newRevisionId']);this['isEnabled']=_0xc4bc6&&_0x2efc61&&Boolean(_0x153539);}}class yt extends _0x2d0252{['_step'];constructor(_0x15a1c9,{direction:_0x5372a1}){super(_0x15a1c9);const _0x5cd1ca=_0x15a1c9['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5372a1?0x1:-0x1,this['listenTo'](_0x5cd1ca,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5cd1ca,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5cd1ca,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xed287=this['editor'],_0x2e3631=_0xed287['plugins']['get'](d),{isNavigationMode:_0x4f2037,currentChangeNumber:_0x36c7e3}=_0x2e3631;let _0x337039;if(_0x2e3631['activeChange']=_0x4f2037?_0x2e3631['diff']['changes']['get'](_0x36c7e3+this['_step']):_0x2e3631['diff']['changes']['first'],_0x2e3631['activeChange']['data']['isOnRoot'])_0x337039=_0xed287['editing']['view']['getDomRoot'](_0x2e3631['activeChange']['rootName']);else{const _0x3847cc=_0xed287['model']['markers']['get']('revision:'+_0x2e3631['activeChange']['id']);_0x337039=_0x21fcd6(_0xed287['editing'],_0x3847cc);}_0x14ef67({'target':_0x337039,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x22c3ca,currentChangeNumber:_0x721e37,numberOfChanges:_0x19b43a,isReady:_0x285cc2,isEnabled:_0xd38e76}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xd38e76&&_0x285cc2&&_0x19b43a)&&(!_0x22c3ca||(0x1===this['_step']?_0x721e37<_0x19b43a-0x1:_0x721e37>0x0));}}class _i extends _0x49d5f0{constructor(_0x206f04){super(_0x206f04);const _0x39f51e=this['bindTemplate'],_0x20f17d=new _0x3fac83(_0x206f04),_0x23ff09=new _0x3fac83(_0x206f04);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',(_0xe6d1a6,_0x15cda3)=>_0xe6d1a6&&_0x15cda3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x21048e,_0x2eec66,_0x5a94b9,_0x51f22a)=>{if(!_0x21048e)return m(_0x206f04,'Loading...');if(!_0x5a94b9)return m(_0x206f04,'No\x20changes');const _0x56bde2=m(_0x206f04,'NUMBER_OF_CHANGES',_0x5a94b9);return _0x51f22a?m(_0x206f04,'X_OF_Y_CHANGES',[_0x2eec66+0x1,_0x5a94b9]):_0x56bde2;}),_0x20f17d['set']({'label':m(_0x206f04,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x33a2ce}),_0x23ff09['set']({'label':m(_0x206f04,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xbf11ca}),_0x20f17d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x23ff09['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x20f17d['on']('execute',()=>this['fire']('execute','backward')),_0x23ff09['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',_0x39f51e['if']('_isStatusLabelVisible','ck-hidden',_0x52d1a9=>!_0x52d1a9)]},'children':[{'text':_0x39f51e['to']('isNavigationMode',_0x32ed43=>_0x32ed43?m(_0x206f04,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x206f04,'Total')+':\x20')}]},{'text':_0x39f51e['to']('_statusText')}]},new _0x4c72c5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x20f17d,_0x23ff09]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x50acf8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x21caee=this['editor']['editing']['view'];_0x21caee['change'](_0x53c3c3=>{for(const _0x407fa2 of _0x21caee['document']['roots'])_0x53c3c3['addClass'](ce,_0x407fa2);});}['hide'](){const _0x37a407=this['editor']['editing']['view'];_0x37a407['change'](_0x1293a5=>{for(const _0x4b8b96 of _0x37a407['document']['roots'])_0x1293a5['removeClass'](ce,_0x4b8b96);});}}class w extends _0x50acf8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x4f3ed9=this['editor'],_0x543782=_0x4f3ed9['plugins']['get'](d),_0x4bc6f1=_0x4f3ed9['plugins']['get'](le);_0x4f3ed9['ui']['componentFactory']['add']('exitToEditing',_0x551342=>{const _0x5be0bf=new _0x3fac83(_0x551342);return _0x5be0bf['set']({'label':m(_0x551342,'Back\x20to\x20editing'),'icon':_0x385a12,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5be0bf,'execute',()=>{_0x4f3ed9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5be0bf;}),_0x4f3ed9['ui']['componentFactory']['add']('restoreRevision',_0xffafba=>{const _0x13e7c1=new _0x3fac83(_0xffafba);return _0x13e7c1['set']({'label':m(_0xffafba,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x13e7c1['bind']('isEnabled')['to'](_0x4f3ed9['commands']['get']('restoreRevision')),this['listenTo'](_0x13e7c1,'execute',()=>_0x4f3ed9['execute']('restoreRevision')),_0x13e7c1;}),_0x4f3ed9['ui']['componentFactory']['add']('changesNavigation',_0x2ba255=>{const _0x731841=new _i(_0x2ba255),_0x378942=_0x4f3ed9['commands']['get']('showPreviousChange'),_0x3b82fa=_0x4f3ed9['commands']['get']('showNextChange');return _0x731841['bind']('isBackwardNavigationEnabled')['to'](_0x378942,'isEnabled'),_0x731841['bind']('isForwardNavigationEnabled')['to'](_0x3b82fa,'isEnabled'),_0x731841['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x543782),this['listenTo'](_0x731841,'execute',(_0x589e2f,_0x404792)=>{_0x4f3ed9['execute']('forward'===_0x404792?'showNextChange':'showPreviousChange');}),_0x731841;}),_0x4bc6f1['show'](),_0x543782['on']('change:isReady',(_0x1820aa,_0x49a999,_0x2a1ffd)=>{_0x2a1ffd?_0x4bc6f1['hide']():_0x4bc6f1['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x495f7b,_0x3701d7){super(_0x495f7b,_0x3701d7);const _0x22b907=this['bindTemplate'];this['set']({'label':m(_0x495f7b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x495f7b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x22b907['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5d8393=this['fieldView']['element'];this['_tooltipString']=_0x5d8393['scrollWidth']>_0x5d8393['clientWidth']&&_0x5d8393['value']||'';}}class oi extends _0x49d5f0{constructor(_0x628f,_0x5b5989,_0x423adc){super(_0x628f);const _0x34767d=new _0x4978c0();_0x34767d['set']({'content':_0x7cfb26,'viewBox':'0\x200\x2011\x2010'});const _0x3cfe1c=['ck','ck-revision-history-sidebar__revision-author'];_0x423adc&&_0x3cfe1c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x33a7d8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x628f,_0x423adc?'Revision\x20creator':'Revision\x20author')},'children':[_0x34767d,_0x5b5989['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3cfe1c},'children':_0x33a7d8});}}function ni(_0x27d0c4,_0x478b26){const _0x58bcce=_0x27d0c4['bindTemplate'],_0x248d72=_0x27d0c4['locale'],_0x3b3acd=_0x3072eb(_0x248d72);_0x3b3acd['panelPosition']='sw';const _0x525752=function(_0x591450,_0x4fd378){const _0x4ae394=function(_0x2906bb,_0x508c9a){const _0x3206af=_0x2906bb['locale'],_0x1e0dc9={'Compare\x20against\x20selected':m(_0x3206af,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3206af,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3206af,'Restore\x20this\x20revision')};return _0x508c9a['map'](_0x876d6b=>{const _0x4f18c7=_0x1e0dc9[_0x876d6b['name']];return _0x4f18c7&&_0x4f18c7!==_0x876d6b['name']&&(_0x876d6b['name']=_0x4f18c7),_0x876d6b;});}(_0x591450,_0x4fd378),_0x103bce=new _0x1609cb();for(const _0x4e18bb of _0x4ae394){const _0x1ddee7={'type':'button','model':new to({'label':_0x4e18bb['name'],'class':_0x4e18bb['class'],'withText':!0x0,'role':'menuitem','_action':_0x4e18bb['action']})};_0x1ddee7['model']['bind']('isEnabled')['to'](_0x591450,'isActionsDropdownOpen',_0xd7666b=>'function'!=typeof _0x4e18bb['isEnabled']||(!_0xd7666b||_0x4e18bb['isEnabled'](_0x591450))),_0x103bce['add'](_0x1ddee7);}return _0x103bce;}(_0x27d0c4,_0x478b26);return _0x27d0c4['bind']('isActionsDropdownOpen')['to'](_0x3b3acd,'isOpen'),_0x3b3acd['buttonView']['set']({'label':m(_0x248d72,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d7860}),_0x3b3acd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x58bcce['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x58bcce['to'](_0x430711=>_0x430711['stopPropagation']())}}),_0x3b3acd['on']('execute',_0x539f17=>{_0x27d0c4['isReady']&&'function'==typeof _0x539f17['source']['_action']&&_0x539f17['source']['_action'](_0x27d0c4);}),_0x2077fc(_0x3b3acd,_0x525752,{'role':'menu'}),_0x3b3acd['listenTo'](_0x27d0c4,'change:isActionsDropdownOpen',(_0x2c85c6,_0x5b0fef,_0x5aaf92)=>{if(_0x5aaf92)for(const _0x1a9119 of _0x3b3acd['listView']['items']){const _0x46beba=_0x1a9119['children']['first'],_0x4b60d5=_0x478b26['find'](_0xce160f=>_0xce160f['action']===_0x46beba['_action'])['isVisible'];_0x1a9119['isVisible']=void 0x0===_0x4b60d5||_0x4b60d5(_0x27d0c4);}}),_0x3b3acd;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x1bcdfe(_0x49d5f0){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xf29f2,_0x5942cd,_0x5bc56a,_0x131e6e){super(_0xf29f2);const _0x1e9c29=this['bindTemplate'],_0x113cb4=function(_0x354d2a,_0x2afb54){const _0x14f57f=Array['from'](_0x2afb54['authors'])['filter'](_0x127240=>_0x127240!=_0x2afb54['creator']);return _0x2afb54['creator']&&_0x14f57f['unshift'](_0x2afb54['creator']),_0x14f57f['map'](_0x71686c=>new oi(_0x354d2a,_0x71686c,_0x71686c==_0x2afb54['creator']));}(_0xf29f2,_0x5942cd);this['id']=_0x5942cd['id'],this['_revision']=_0x5942cd,this['_requireRevisionName']=_0x131e6e,this['bind']('name','createdAt')['to'](_0x5942cd),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2bc313=>{return _0x3f4149=_0xf29f2['uiLanguage'],(_0x520d50=_0x2bc313)['toLocaleDateString'](_0x3f4149,{'month':'long','day':'numeric'})+',\x20'+_0x520d50['toLocaleTimeString'](_0x3f4149,{'hour':'numeric','minute':'numeric'});var _0x3f4149,_0x520d50;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0xf29f2,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5ea8f3=>_0x5ea8f3||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x32f66e,_0x306e99)=>_0x32f66e&&_0x306e99),this['revisionActionsView']=_0x5bc56a&&_0x5bc56a['length']?ni(this,_0x5bc56a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1e9c29['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1e9c29['if']('isEnabled','ck-disabled',_0x2ca21e=>!_0x2ca21e),_0x1e9c29['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1e9c29['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1e9c29['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':_0x1e9c29['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':_0x113cb4}]},this['revisionActionsView']],'on':{'click':_0x1e9c29['to'](_0x25f9d6=>{_0x25f9d6['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3b66ca=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3b66ca,'change',()=>{this['_requireRevisionName']&&!_0x3b66ca['value']||this['fire']('setName',{'id':this['id'],'name':_0x3b66ca['value']}),_0x3b66ca['value']||(_0x3b66ca['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(_0x2ef2fc,_0x4f06b0){const _0x48b082=_0x263b49['fromJSDate'](_0x2ef2fc)['setLocale'](_0x4f06b0),_0xf33354=_0x263b49['local'](),_0x3ac668=_0xf33354['minus']({'days':0x1})['startOf']('day');let _0x82944d,_0x48cfa3;return _0x48b082['hasSame'](_0xf33354,'day')?(_0x82944d=_0x48b082['startOf']('day')['toJSDate'](),_0x48cfa3=_0x48b082['toRelativeCalendar']()):_0x48b082['hasSame'](_0x3ac668,'day')?(_0x82944d=_0x3ac668['toJSDate'](),_0x48cfa3=_0x48b082['toRelativeCalendar']()):_0x48b082['hasSame'](_0xf33354,'week')?(_0x82944d=_0x48b082['startOf']('week')['toJSDate'](),_0x48cfa3=_0x48b082['weekdayLong']||''):_0x48b082['hasSame'](_0xf33354,'year')?(_0x82944d=_0x48b082['startOf']('month')['toJSDate'](),_0x48cfa3=_0x48b082['monthLong']||''):(_0x82944d=_0x48b082['startOf']('year')['toJSDate'](),_0x48cfa3=String(_0x48b082['year'])),{'startDate':_0x82944d,'localizedPeriodName':_0x48cfa3};}class mi extends _0x49d5f0{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x14a7c0,_0x1da045,_0xc5b6fc,_0x156852){super(_0x14a7c0);const _0x249aee=vi(_0x1da045,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1da045,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xc5b6fc,this['_requireRevisionName']=_0x156852,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':_0x249aee}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3817e7){const _0x5ad400=new ai(this['locale'],_0x3817e7,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5ad400);}['removeRevision'](_0x4aba3b){const _0x1359a7=this['revisionViews']['find'](_0x4051d1=>_0x4051d1['id']===_0x4aba3b['id']);this['revisionViews']['remove'](_0x1359a7);}}class as extends _0x49d5f0{constructor(_0x1638f7){super(_0x1638f7);const _0x5c9f9d=new _0x4978c0();_0x5c9f9d['content']=_0x3245ba,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5c9f9d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1638f7,'Revision\x20history')]}]});}}class di extends _0x49d5f0{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x13ed97,_0x36bec9,_0x2453c2,_0x3afc10){super(_0x13ed97);const _0x20c965=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x36bec9,this['_revisionActions']=_0x2453c2,this['_requireRevisionName']=_0x3afc10,this['on']('select',(_0x2b7fa0,_0x4fb61a)=>{this['fire']('revisionSelected',_0x4fb61a);}),this['on']('setName',(_0x35aff2,_0x346cb3)=>{this['fire']('revisionSetName',_0x346cb3);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x13ed97),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x20c965['if']('isEnabled','ck-disabled',_0x3959c2=>!_0x3959c2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xc756c1 of this['_revisions'])this['_addRevision'](_0xc756c1);this['_revisions']['on']('add',(_0x7e880b,_0x55b1ac)=>{this['_addRevision'](_0x55b1ac);}),this['_revisions']['on']('remove',(_0x36ca96,_0x4a5355)=>{this['_removeRevision'](_0x4a5355);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x16742d=>_0x16742d['revisionViews']['map'](_0x52f496=>_0x52f496))['flat']();}['selectRevision'](_0x96d72f){for(const _0x31411a of this['revisionViews'])_0x96d72f&&_0x96d72f['id']===_0x31411a['id']?_0x31411a['select']():_0x31411a['deselect']();}['highlightRevisions'](_0xad6709){for(const _0x5a82ea of this['revisionViews'])_0xad6709['some'](({id:_0x4afe95})=>_0x4afe95===_0x5a82ea['id'])?_0x5a82ea['highlight']():_0x5a82ea['unhighlight']();}['_addRevision'](_0x335c50){const _0x5b48ef=vi(_0x335c50['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1f771b=this['timePeriodViews']['get'](0x0);_0x1f771b&&_0x1f771b['startDate']['getTime']()===_0x5b48ef['getTime']()||(_0x1f771b=new mi(this['locale'],_0x5b48ef,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1f771b)),_0x1f771b['addRevision'](_0x335c50);}['_removeRevision'](_0x232884){const _0x280b3b=vi(_0x232884['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x280b3b)['removeRevision'](_0x232884);}['_getTimePeriodViewByStartDate'](_0x51e45e){return this['timePeriodViews']['find'](_0x59e821=>_0x59e821['startDate']['getTime']()===_0x51e45e['getTime']());}}class g extends _0x50acf8{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x321128){super(_0x321128),this['_revisionViewer']=_0x321128['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xf469da=this['_revisionsRepository']['_revisions'],_0x4393d5=this['_createRevisionActions'](),_0x42828b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0xf469da,_0x4393d5,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',(_0x64587f,_0x40e2a0)=>{_0x40e2a0['revisionViews']['on']('add',(_0x54314e,_0x294e0c)=>{_0x294e0c['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)),_0x42828b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x50e707=this['_revisionsRepository']['getRevision'](0x0);if(_0x50e707){const _0x4894c8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x50e707['id']);this['_revisionViewer']['compare'](_0x50e707,_0x4894c8);}}['_handleRevisionSelected'](_0x3e2865,_0x404c44){const _0x1ca79a=this['_revisionsRepository']['getRevision'](_0x404c44['id']),_0x2ba2dd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1ca79a['id']);this['_revisionViewer']['compare'](_0x1ca79a,_0x2ba2dd);}['_handleRevisionSetName'](_0x1d5793,_0x42f11f){this['_revisionsRepository']['getRevision'](_0x42f11f['id'])['setName'](_0x42f11f['name']);}['_handleDiffChange'](_0x5717d8,_0x4e8cc3,_0x59c62d){const _0x2bf2cd=this['_revisionsRepository']['getRevisionsInDiff'](_0x59c62d);_0x2bf2cd['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2bf2cd),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2bf2cd[0x0]));}['_createRevisionActions'](){const _0x17d3b8=this['editor'],_0x3c988d=g['availableRevisionActions'],_0x56f324=_0x17d3b8['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x56f324['length'])return _0x56f324['map'](_0x508692=>{const _0x5b0883='string'==typeof _0x508692?Object['assign']({},_0x3c988d[_0x508692]):_0x508692;return _0x5b0883['action']=_0x5b0883['action']['bind'](this,_0x17d3b8),_0x5b0883['isVisible']&&(_0x5b0883['isVisible']=_0x5b0883['isVisible']['bind'](this,_0x17d3b8)),_0x5b0883;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5af493},_0xffd3d4)=>{const _0x374449=_0x5af493['get'](d),_0x29a908=_0x374449['repository'];let _0x4640d7=_0x374449['diff']['newRevisionId'],_0x11cd35=_0xffd3d4['id'];_0x29a908['getIndex'](_0x4640d7)>_0x29a908['getIndex'](_0x11cd35)&&([_0x4640d7,_0x11cd35]=[_0x11cd35,_0x4640d7]),_0x374449['compare'](_0x4640d7,_0x11cd35);},'isVisible':({plugins:_0x18a784},_0x300145)=>{const _0x525084=_0x18a784['get'](d);return!(_0x525084['repository']['getRevisionsInDiff'](_0x525084['diff'])['length']>0x2)&&!_0x300145['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2652d8,{id:_0x5277ea})=>{_0x2652d8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5277ea);},'isVisible':({plugins:_0x518202},_0x219ab3)=>!!_0x518202['get'](d)['repository']['getLaterVisibleRevision'](_0x219ab3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xc9033a},{id:_0x2a06a8,revisionNameView:_0x507f22})=>{const _0x2193c9=_0xc9033a['get'](d),_0x4d38c1=_0x2193c9['repository']['getEarlierVisibleRevision'](_0x2a06a8);_0x2193c9['compare'](_0x2a06a8,_0x4d38c1),_0x507f22['focus'](),_0x507f22['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x357170,_0x422cfd){super(_0x357170),this['_view']=_0x422cfd,this['_toolbarConfig']=ot(_0x357170['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2cf2f6){const _0x49be0e=this['editor'],_0x4fbc0a=this['view'],_0x8054e3=_0x49be0e['editing']['view'],_0x322e9d=_0x4fbc0a['editable'],_0x103685=_0x8054e3['document']['getRoot']();_0x322e9d['name']=_0x103685['rootName'],_0x4fbc0a['render']();const _0x381f58=_0x322e9d['element'];this['setEditableElement'](_0x322e9d['name'],_0x381f58),_0x4fbc0a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x8054e3['attachDomRoot'](_0x381f58),this['_elementReplacer']['replace'](_0x2cf2f6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x51f486=this['view'],_0x1995ce=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1995ce['detachDomRoot'](_0x51f486['editable']['name']),_0x51f486['destroy']();}['_initToolbar'](){const _0x3516c5=this['view'];_0x3516c5['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3516c5['stickyPanel']['limiterElement']=_0x3516c5['element'],_0x3516c5['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x205c14})=>_0x205c14),_0x3516c5['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3516c5['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xb0fad1,_0x110b6b,_0x24dae3={}){super(_0xb0fad1),this['stickyPanel']=new lt(_0xb0fad1),this['toolbar']=new nt(_0xb0fad1,{'shouldGroupWhenFull':_0x24dae3['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0xb0fad1,_0x110b6b);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5739ab,_0x20464e){super(_0x20464e),this['sourceElement']=_0x5739ab,this['model']['document']['createRoot']();const _0x2971a6=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2971a6);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x53d6c0,_0x5ca453){const _0x32273e=new this(_0x53d6c0,_0x5ca453);return await _0x32273e['initPlugins'](),await _0x32273e['ui']['init'](_0x53d6c0),await _0x32273e['data']['init'](_0x32273e['config']['get']('initialData')||''),_0x32273e['fire']('ready'),_0x32273e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x19eb44{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x506271){function _0x2740f3(_0x770a7b){return _0x770a7b['map'](_0x332f33=>String['fromCharCode'](_0x332f33))['join']('');}super(_0x506271),this['result']='end',_0x506271[_0x2740f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2740f3([0x76,0x69,0x65,0x77])][_0x2740f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2740f3([0x61,0x75,0x74,0x6f]),_0x506271[_0x2740f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2740f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2740f3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2740f3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2740f3([0x6f,0x6b])});}}class k extends _0x19eb44{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x38750b){if(super(_0x38750b),!this['editor']['config']['get']('revisionHistory'))throw new _0x2e3aef('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3df48d=>this['_showRevisionViewer']({..._0x3df48d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x23ea9e=>this['_closeRevisionViewer'](_0x23ea9e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1d6971=>this['_restoreRevision'](_0x1d6971)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x207bdc){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x207bdc;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x56e1fb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x56e1fb);}['getRevision'](_0x421382){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x421382);}['getRevisions'](_0x1dfa90){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1dfa90||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x180210=this['editor'],_0x1381df=_0x388719(_0x180210,p),_0x4ce8b7=_0x180210['plugins']['get']('RevisionTracker'),_0x1adaf4=_0x180210['plugins']['get']('Users')['users'];return _0x1381df['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1381df['lazyRoots'],(_0x1381df['plugins']['push'](Rt,d,w,class extends _0x19eb44{static get['requires'](){return[d,'Users'];}['init'](){const _0x2ebf12=this['editor']['plugins']['get']('Users');for(const _0x11b112 of _0x1adaf4)_0x11b112['isAnonymous']||_0x2ebf12['getUser'](_0x11b112['id'])||_0x2ebf12['addUser'](_0x11b112);const _0x5c48f8=_0x4ce8b7['repository']['getRevisions']();let _0xfd9a8d=null;const _0x441727=this['editor']['plugins']['get']('RevisionViewer');_0x441727['adapter']=_0x4ce8b7['adapter'],_0x441727['bind']('isEnabled')['to'](_0x4ce8b7),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x180210,'isReadOnly',_0x4de9c9=>!_0x4de9c9);for(const _0x2eede7 of _0x5c48f8){const _0x1f6a81=null===_0x2eede7['creator'];if(_0x1f6a81&&_0x2eede7['toVersion']===_0x2eede7['fromVersion'])continue;const _0x21b71a=_0x2eede7['toJSON']();_0x441727['addRevisionData'](_0x21b71a,(_0x49e93d,_0x330be9,_0x55f82e)=>{if(_0x1f6a81){if(_0xfd9a8d)_0xfd9a8d['_update'](_0x49e93d,_0x330be9);else{if(!_0x330be9){const _0xbcc0d9=_0x55f82e['toJSON']();_0xbcc0d9['id']=_0x2d3c1e(),_0x4ce8b7['saveRevision'](_0xbcc0d9,_0x55f82e['toVersion'])['then'](_0x2554c9=>{_0xfd9a8d=_0x2554c9;});}}}else _0x2eede7['_update'](_0x49e93d,_0x330be9);});}}},g),_0x1381df);}['_enhanceShowRevisionViewerCallback'](){const _0xb62280=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x21f3b3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x90ba35=this['editor']['plugins']['get']('Autosave');await _0x90ba35['save']();}else await _0x21f3b3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5e09ae=this['editor']['plugins']['get']('Dialog');_0x5e09ae['isOpen']&&_0x5e09ae['hide']();}const _0x4c65e7=this['_getRevisionViewerEditorConfig']();return _0xb62280(_0x4c65e7)['then'](_0x2c9f78=>{return(this['_viewerEditor']=_0x2c9f78,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2c9f78;})['catch'](_0x59266d=>(console['error'](_0x59266d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4e0571=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4e0571(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5daee3=this['editor']['plugins']['get']('Annotations');_0x5daee3['refreshVisibility'](),_0x5daee3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1ad7d5){const _0x4bca6d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x9e7c30=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1f1e30=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1f1e30,_0x1ad7d5)['then'](_0x5420d9=>(_0x9e7c30['style']['display']='block',_0x4bca6d['style']['display']='none',_0x5420d9));}['_closeRevisionViewer'](_0x2db724){const _0x571c23=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x571c23['style']['display']='',_0x2db724['destroy']();}async['_restoreRevision'](_0x4374a5){const _0x3258b0=this['editor'],_0x20f50f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x469aa8=_0x3258b0['plugins']['get']('RevisionTracker'),_0x214364=_0x20f50f['repository']['getRevision'](_0x4374a5);let _0x477871,_0x2b7739,_0x36eea9;try{_0x477871=await _0x20f50f['getRevisionData'](_0x214364),_0x2b7739=await _0x20f50f['getRevisionRootsAttributes'](_0x214364);}catch(_0x4b0b20){return void console['error'](_0x4b0b20);}_0x3258b0['model']['change'](_0x2d63e5=>{for(const _0x3ffd43 of Array['from'](_0x3258b0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2d63e5['removeMarker'](_0x3ffd43);}),_0x20f50f['isReady']=!0x1,_0x3258b0['model']['enqueueChange'](_0xd171b6=>{_0xd171b6['setSelection'](null),_0xd171b6['removeSelectionAttribute'](_0x3258b0['model']['document']['selection']['getAttributeKeys']());const _0x42f623=Object['keys'](_0x477871);for(const _0x835ea8 of _0x3258b0['model']['document']['roots'])'$graveyard'!=_0x835ea8['rootName']&&_0x835ea8['isAttached']()&&!_0x42f623['includes'](_0x835ea8['rootName'])&&_0xd171b6['detachRoot'](_0x835ea8);for(const _0x2bf2be of _0x42f623){let _0x44e305=_0x3258b0['model']['document']['getRoot'](_0x2bf2be);_0x44e305&&_0x44e305['isAttached']()||(_0x44e305=_0xd171b6['addRoot'](_0x2bf2be));const _0x3f3a5=_0x2b7739[_0x2bf2be],_0x4c88f1=Object['keys'](_0x3f3a5),_0x4b53eb=_0x477871[_0x2bf2be];for(const _0x4ac727 of _0x44e305['getAttributeKeys']())_0x4c88f1['includes'](_0x4ac727)||_0xd171b6['removeAttribute'](_0x4ac727,_0x44e305);for(const _0x2655b2 of _0x4c88f1)_0xd171b6['setAttribute'](_0x2655b2,_0x2b7739[_0x2bf2be][_0x2655b2],_0x44e305);_0xd171b6['remove'](_0xd171b6['createRangeIn'](_0x44e305)),_0xd171b6['insert'](_0x3258b0['data']['parse'](_0x4b53eb,_0x44e305),_0x44e305,0x0);}});const _0x5d5c08=m(_0x3258b0['locale'],'Restored');if(_0x214364['name'])_0x36eea9=-0x1==_0x214364['name']['indexOf'](_0x5d5c08)?_0x5d5c08+':\x20'+_0x214364['name']:_0x214364['name'];else _0x36eea9=_0x5d5c08+':\x20'+(_0x214364['createdAt']['toLocaleDateString'](_0x3258b0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x214364['createdAt']['toLocaleTimeString'](_0x3258b0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x469aa8['saveRevision']({'name':_0x36eea9}),_0x20f50f['isReady']=!0x0,_0x3258b0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0xca8a24){super(_0xca8a24),this['_revisionViewer']=_0xca8a24['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x171752=this['_revisionsRepository']['_revisions'],_0xb66ff2=this['_createRevisionActions'](),_0x3da29c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x171752,_0xb66ff2,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',(_0x53118c,_0x4836cf)=>{_0x4836cf['revisionViews']['on']('add',(_0x556074,_0x16fbe0)=>{_0x16fbe0['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)),_0x3da29c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3158cc=this['_revisionsRepository']['getRevision'](0x0);if(_0x3158cc){const _0x4cce3f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3158cc['id']);this['_revisionViewer']['compare'](_0x3158cc,_0x4cce3f);}}['_handleRevisionSelected'](_0x2febb1,_0x128a64){const _0x5c7573=this['_revisionsRepository']['getRevision'](_0x128a64['id']),_0x5b4f39=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5c7573['id']);this['_revisionViewer']['compare'](_0x5c7573,_0x5b4f39);}['_handleRevisionSetName'](_0x1694e5,_0x122008){this['_revisionsRepository']['getRevision'](_0x122008['id'])['setName'](_0x122008['name']);}['_handleDiffChange'](_0x1bc03c,_0x4c1633,_0x5b4253){const _0x4c7104=this['_revisionsRepository']['getRevisionsInDiff'](_0x5b4253);_0x4c7104['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4c7104),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4c7104[0x0]));}['_createRevisionActions'](){const _0x29e571=this['editor'],_0x282947=g['availableRevisionActions'],_0x402c2c=_0x29e571['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x402c2c['length'])return _0x402c2c['map'](_0x47522e=>{const _0x28842d='string'==typeof _0x47522e?Object['assign']({},_0x282947[_0x47522e]):_0x47522e;return _0x28842d['action']=_0x28842d['action']['bind'](this,_0x29e571),_0x28842d['isVisible']&&(_0x28842d['isVisible']=_0x28842d['isVisible']['bind'](this,_0x29e571)),_0x28842d;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x512a9b},_0x28286b)=>{const _0x5ab753=_0x512a9b['get'](d),_0x3f8b4e=_0x5ab753['repository'];let _0x44c49d=_0x5ab753['diff']['newRevisionId'],_0x31b245=_0x28286b['id'];_0x3f8b4e['getIndex'](_0x44c49d)>_0x3f8b4e['getIndex'](_0x31b245)&&([_0x44c49d,_0x31b245]=[_0x31b245,_0x44c49d]),_0x5ab753['compare'](_0x44c49d,_0x31b245);},'isVisible':({plugins:_0xa86f78},_0x54703f)=>{const _0xb47a08=_0xa86f78['get'](d);return!(_0xb47a08['repository']['getRevisionsInDiff'](_0xb47a08['diff'])['length']>0x2)&&!_0x54703f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xc7ae53,{id:_0x5e0eaf})=>{_0xc7ae53['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5e0eaf);},'isVisible':({plugins:_0x2dbfce},_0xed79ef)=>!!_0x2dbfce['get'](d)['repository']['getLaterVisibleRevision'](_0xed79ef['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x49ef0a},{id:_0x197bb9,revisionNameView:_0x1e5c2a})=>{const _0x2ea7cc=_0x49ef0a['get'](d),_0x5996f1=_0x2ea7cc['repository']['getEarlierVisibleRevision'](_0x197bb9);_0x2ea7cc['compare'](_0x197bb9,_0x5996f1),_0x1e5c2a['focus'](),_0x1e5c2a['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x52f1ee,_0x388feb){super(_0x52f1ee),this['_view']=_0x388feb,this['_toolbarConfig']=ot(_0x52f1ee['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x56b512){const _0x158ed6=this['editor'],_0x29a6b7=this['view'],_0x366a12=_0x158ed6['editing']['view'],_0x229e11=_0x29a6b7['editable'],_0x5ca40a=_0x366a12['document']['getRoot']();_0x229e11['name']=_0x5ca40a['rootName'],_0x29a6b7['render']();const _0x273cc7=_0x229e11['element'];this['setEditableElement'](_0x229e11['name'],_0x273cc7),_0x29a6b7['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x366a12['attachDomRoot'](_0x273cc7),this['_elementReplacer']['replace'](_0x56b512,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x324e3a=this['view'],_0x37aa70=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x37aa70['detachDomRoot'](_0x324e3a['editable']['name']),_0x324e3a['destroy']();}['_initToolbar'](){const _0x320111=this['view'];_0x320111['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x320111['stickyPanel']['limiterElement']=_0x320111['element'],_0x320111['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5e2e78})=>_0x5e2e78),_0x320111['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x320111['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x20e05b,_0x40581f,_0x4a1d74={}){super(_0x20e05b),this['stickyPanel']=new lt(_0x20e05b),this['toolbar']=new nt(_0x20e05b,{'shouldGroupWhenFull':_0x4a1d74['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x20e05b,_0x40581f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1e8824,_0x3c057){super(_0x3c057),this['sourceElement']=_0x1e8824,this['model']['document']['createRoot']();const _0x215c2a=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x215c2a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x14f0cd,_0x4049f0){const _0x2764ce=new this(_0x14f0cd,_0x4049f0);return await _0x2764ce['initPlugins'](),await _0x2764ce['ui']['init'](_0x14f0cd),await _0x2764ce['data']['init'](_0x2764ce['config']['get']('initialData')||''),_0x2764ce['fire']('ready'),_0x2764ce;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x50acf8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e7829){function _0x1634e0(_0x175a37){return _0x175a37['map'](_0x32dfbc=>String['fromCharCode'](_0x32dfbc))['join']('');}super(_0x1e7829),this['result']='end',_0x1e7829[_0x1634e0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1634e0([0x76,0x69,0x65,0x77])][_0x1634e0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1634e0([0x61,0x75,0x74,0x6f]),_0x1e7829[_0x1634e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1634e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1634e0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1634e0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1634e0([0x6f,0x6b])});}}class k extends _0x50acf8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x16afb0){if(super(_0x16afb0),!this['editor']['config']['get']('revisionHistory'))throw new _0x393ea3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5702eb=>this['_showRevisionViewer']({..._0x5702eb,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x490a16=>this['_closeRevisionViewer'](_0x490a16)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x440e60=>this['_restoreRevision'](_0x440e60)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3f369f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3f369f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4a70d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4a70d);}['getRevision'](_0x17f7bd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x17f7bd);}['getRevisions'](_0x52eb20){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x52eb20||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3ce7e3=this['editor'],_0x6e713c=_0x1878ee(_0x3ce7e3,p),_0x115792=_0x3ce7e3['plugins']['get']('RevisionTracker'),_0x46f338=_0x3ce7e3['plugins']['get']('Users')['users'];return _0x6e713c['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x6e713c['lazyRoots'],(_0x6e713c['plugins']['push'](Rt,d,w,class extends _0x50acf8{static get['requires'](){return[d,'Users'];}['init'](){const _0x3eb60f=this['editor']['plugins']['get']('Users');for(const _0x71b753 of _0x46f338)_0x71b753['isAnonymous']||_0x3eb60f['getUser'](_0x71b753['id'])||_0x3eb60f['addUser'](_0x71b753);const _0x1f9686=_0x115792['repository']['getRevisions']();let _0x18fe9b=null;const _0x8e1b2=this['editor']['plugins']['get']('RevisionViewer');_0x8e1b2['adapter']=_0x115792['adapter'],_0x8e1b2['bind']('isEnabled')['to'](_0x115792),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3ce7e3,'isReadOnly',_0x34a4af=>!_0x34a4af);for(const _0x59866e of _0x1f9686){const _0x5f64f2=null===_0x59866e['creator'];if(_0x5f64f2&&_0x59866e['toVersion']===_0x59866e['fromVersion'])continue;const _0x52e3a9=_0x59866e['toJSON']();_0x8e1b2['addRevisionData'](_0x52e3a9,(_0x2da708,_0x44fefb,_0xf80fa1)=>{if(_0x5f64f2){if(_0x18fe9b)_0x18fe9b['_update'](_0x2da708,_0x44fefb);else{if(!_0x44fefb){const _0x5c0d0f=_0xf80fa1['toJSON']();_0x5c0d0f['id']=_0x35e6d2(),_0x115792['saveRevision'](_0x5c0d0f,_0xf80fa1['toVersion'])['then'](_0x595140=>{_0x18fe9b=_0x595140;});}}}else _0x59866e['_update'](_0x2da708,_0x44fefb);});}}},g),_0x6e713c);}['_enhanceShowRevisionViewerCallback'](){const _0x4c78c2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x36f79a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xe8d44e=this['editor']['plugins']['get']('Autosave');await _0xe8d44e['save']();}else await _0x36f79a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5cc71e=this['editor']['plugins']['get']('Dialog');_0x5cc71e['isOpen']&&_0x5cc71e['hide']();}const _0x1c95c0=this['_getRevisionViewerEditorConfig']();return _0x4c78c2(_0x1c95c0)['then'](_0x546ab5=>{return(this['_viewerEditor']=_0x546ab5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x546ab5;})['catch'](_0xf5b3c8=>(console['error'](_0xf5b3c8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x461554=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x461554(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xc5ce73=this['editor']['plugins']['get']('Annotations');_0xc5ce73['refreshVisibility'](),_0xc5ce73['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1d84c1){const _0x4e63dd=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1a159f=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3d8d0c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3d8d0c,_0x1d84c1)['then'](_0x2b7a4c=>(_0x1a159f['style']['display']='block',_0x4e63dd['style']['display']='none',_0x2b7a4c));}['_closeRevisionViewer'](_0x3dbfd5){const _0x125642=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x125642['style']['display']='',_0x3dbfd5['destroy']();}async['_restoreRevision'](_0x5f02a7){const _0x4d5543=this['editor'],_0xcae8a0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x537352=_0x4d5543['plugins']['get']('RevisionTracker'),_0x47f735=_0xcae8a0['repository']['getRevision'](_0x5f02a7);let _0x2ecabd,_0x32bbbb,_0x558dce;try{_0x2ecabd=await _0xcae8a0['getRevisionData'](_0x47f735),_0x32bbbb=await _0xcae8a0['getRevisionRootsAttributes'](_0x47f735);}catch(_0x18968f){return void console['error'](_0x18968f);}_0x4d5543['model']['change'](_0x5273b5=>{for(const _0x5bb7b0 of Array['from'](_0x4d5543['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5273b5['removeMarker'](_0x5bb7b0);}),_0xcae8a0['isReady']=!0x1,_0x4d5543['model']['enqueueChange'](_0x5502d3=>{_0x5502d3['setSelection'](null),_0x5502d3['removeSelectionAttribute'](_0x4d5543['model']['document']['selection']['getAttributeKeys']());const _0x43ff1c=Object['keys'](_0x2ecabd);for(const _0x46b144 of _0x4d5543['model']['document']['roots'])'$graveyard'!=_0x46b144['rootName']&&_0x46b144['isAttached']()&&!_0x43ff1c['includes'](_0x46b144['rootName'])&&_0x5502d3['detachRoot'](_0x46b144);for(const _0x244b62 of _0x43ff1c){let _0x454863=_0x4d5543['model']['document']['getRoot'](_0x244b62);_0x454863&&_0x454863['isAttached']()||(_0x454863=_0x5502d3['addRoot'](_0x244b62));const _0x1f1dd8=_0x32bbbb[_0x244b62],_0x2bb67d=Object['keys'](_0x1f1dd8),_0x403edd=_0x2ecabd[_0x244b62];for(const _0xa43446 of _0x454863['getAttributeKeys']())_0x2bb67d['includes'](_0xa43446)||_0x5502d3['removeAttribute'](_0xa43446,_0x454863);for(const _0x458769 of _0x2bb67d)_0x5502d3['setAttribute'](_0x458769,_0x32bbbb[_0x244b62][_0x458769],_0x454863);_0x5502d3['remove'](_0x5502d3['createRangeIn'](_0x454863)),_0x5502d3['insert'](_0x4d5543['data']['parse'](_0x403edd,_0x454863),_0x454863,0x0);}});const _0x4e39c0=m(_0x4d5543['locale'],'Restored');if(_0x47f735['name'])_0x558dce=-0x1==_0x47f735['name']['indexOf'](_0x4e39c0)?_0x4e39c0+':\x20'+_0x47f735['name']:_0x47f735['name'];else _0x558dce=_0x4e39c0+':\x20'+(_0x47f735['createdAt']['toLocaleDateString'](_0x4d5543['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x47f735['createdAt']['toLocaleTimeString'](_0x4d5543['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x537352['saveRevision']({'name':_0x558dce}),_0xcae8a0['isReady']=!0x0,_0x4d5543['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};