@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250121.0 → 0.0.0-nightly-20250122.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 _0x59dc1c,uid as _0x731d10,Collection as _0x28b682,logWarning as _0x4bc96c,FocusTracker as _0xaee184,KeystrokeHandler as _0x142a9d,scrollViewportToShowTarget as _0x383918,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3781c3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3eb603,set as _0x533a37,unset as _0x9d3b81,isEqual as _0x1871c4}from'lodash-es';import{Plugin as _0x1c983f,PendingActions as _0x4769f2,icons as _0x5d34ae,Command as _0x157788,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5ebf97,getMarkerDomElement as _0x10cdf2,ConfirmMixin as _0x3f83fe,sanitizeEditorConfig as _0x14ad6d}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x352937,ViewText as _0x1ade11,ViewElement as _0x29faa1,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x154874,ViewAttributeElement as _0x59b955,ViewEmptyElement as _0x86ac4d,ViewRawElement as _0x3e22f5,ViewUIElement as _0x264338,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x57d690,injectCssTransitionDisabler as ts,submitHandler as _0x267d55,LabeledFieldView as nt,createLabeledInputText as _0x242d1c,createDropdown as _0x23cafe,ListView as te,ListItemView as _0xa50924,ButtonView as _0x5c3b92,MenuBarMenuView as _0x3c32f3,MenuBarMenuListView as _0x1d1da8,MenuBarMenuListItemView as _0x4840b2,MenuBarMenuListItemButtonView as _0x235ae5,ContextualBalloon as _0x2f6501,ToolbarSeparatorView as _0x574f5a,IconView as _0x538b97,addListToDropdown as _0x33bd8c,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x212522}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x59dc1c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3ec626){super(),this['id']=_0x3ec626['id']||_0x731d10(),this['creator']=_0x3ec626['creator']||null,this['authors']=_0x3ec626['authors']||[],this['diffData']=_0x3ec626['diffData']||null,this['toVersion']=_0x3ec626['toVersion']||0x0,this['fromVersion']=_0x3ec626['fromVersion']||0x0,this['set']('name',_0x3ec626['name']||''),this['set']('createdAt',_0x3ec626['createdAt']||new Date()),this['set']('attributes',_0x3ec626['attributes']||{});}['setName'](_0x4937fa){this['_update']({'name':_0x4937fa});}['setAttribute'](_0x1a3920,_0x19fb50){const _0x5d7d46=_0x3eb603(this['attributes']);_0x533a37(_0x5d7d46,_0x1a3920,_0x19fb50),this['_update']({'attributes':_0x5d7d46});}['removeAttribute'](_0x1768f2){const _0x5bdada=_0x3eb603(this['attributes']);_0x9d3b81(_0x5bdada,_0x1768f2),this['_update']({'attributes':_0x5bdada});}['_update'](_0x206513,_0x1e69ac=!0x1){let _0x163647=!0x1;const _0x1819c8={'id':this['id']},_0x2815f1=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5367c2 of _0x2815f1){const _0x3b577f=_0x206513[_0x5367c2];void 0x0!==_0x3b577f&&_0x3b577f!==this[_0x5367c2]&&(this[_0x5367c2]=_0x3b577f,_0x1819c8[_0x5367c2]=_0x3b577f,_0x163647=!0x0);}_0x163647&&(_0x1819c8['authors']&&(_0x1819c8['authorsIds']=_0x1819c8['authors']['map'](_0x1f8504=>_0x1f8504['id']),delete _0x1819c8['authors']),this['fire']('_update',_0x1819c8,_0x1e69ac));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2b4137=>_0x2b4137['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1c983f{['_revisions'];static get['requires'](){return[_0x5ebf97];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3f1b71){super(_0x3f1b71),this['_revisions']=new _0x28b682();}['afterInit'](){!async function(_0xd8e928){const _0x25e4c8=_0x16af43([0x42,0x67,0x6b,0x49,0x61,0x76,0x43,0x71,0x31,0x6a,0x4f,0x73,0x38,0x6d,0x53,0x4e,0x4c,0x77,0x6f,0x36,0x59,0x63,0x32,0x45,0x56,0x30,0x48,0x74,0x51,0x79,0x47,0x34,0x4d,0x72,0x78,0x69,0x37,0x6e,0x66,0x6c,0x70,0x58,0x4b,0x4a,0x5a,0x46,0x62,0x35,0x39,0x54,0x50,0x44,0x52,0x75,0x55,0x64,0x7a,0x33,0x41,0x68,0x57,0x65]),_0x1abe82=0xeb829,_0x1cb8ad=0x4e1d46e5,_0x3d8afb=0x4e1a1bdd^_0x1cb8ad,_0x169e0a=window[_0x16af43([0x44,0x61,0x74,0x65])][_0x16af43([0x6e,0x6f,0x77])](),_0x435a94=_0xd8e928[_0x16af43([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x448cd8=new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6983d=>{_0x435a94[_0x16af43([0x6f,0x6e,0x63,0x65])](_0x16af43([0x72,0x65,0x61,0x64,0x79]),_0x6983d);}),_0x34f836={[_0x16af43([0x6b,0x74,0x79])]:_0x16af43([0x45,0x43]),[_0x16af43([0x75,0x73,0x65])]:_0x16af43([0x73,0x69,0x67]),[_0x16af43([0x63,0x72,0x76])]:_0x16af43([0x50,0x2d,0x32,0x35,0x36]),[_0x16af43([0x78])]:_0x16af43([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]),[_0x16af43([0x79])]:_0x16af43([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]),[_0x16af43([0x61,0x6c,0x67])]:_0x16af43([0x45,0x53,0x32,0x35,0x36])},_0x8c695d=_0x435a94[_0x16af43([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16af43([0x67,0x65,0x74])](_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23fa35(){let _0x33f06a,_0x1ced10=null,_0x5106e0=null;try{if(_0x8c695d==_0x16af43([0x47,0x50,0x4c]))return _0x16af43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33f06a=_0x8166c2(),!_0x33f06a)return _0x16af43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33f06a[_0x16af43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5106e0=_0x160c81(_0x33f06a[_0x16af43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33f06a[_0x16af43([0x6a,0x74,0x69])])),await _0x314130()?_0x7f74bf()?_0x427cfd()?_0x16af43([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x457b87()?(_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16af43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ced10=_0x37f77a(_0x16af43([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16af43([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ced10=_0x37f77a(_0x16af43([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16af43([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1ced10=_0x37f77a(_0x16af43([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e6c18()):_0x16af43([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16af43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16af43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2d7ea7){return _0x16af43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x427cfd(){const _0x3ea431=[_0x16af43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16af43([0x74,0x72,0x69,0x61,0x6c])][_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x169e0a/0x3e8:0xe10*_0x3d8afb;return _0x33f06a[_0x16af43([0x65,0x78,0x70])]<_0x3ea431;}function _0x7f74bf(){const _0x280894=_0x33f06a[_0x16af43([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x280894)return!0x1;if(_0x280894[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16af43([0x2a])))return!0x0;if(_0x280894[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16af43([0x52,0x48])))return!0x0;if(_0x280894[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16af43([0x52,0x52,0x48]))){if(_0x15c014())return!0x0;if(_0x27c50c()||_0x208b43())return!0x0;}return!0x1;}function _0x457b87(){const _0x2620dc=_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2620dc||0x0==_0x2620dc[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa3f15d}=new URL(window[_0x16af43([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2620dc[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3f15d))return!0x0;const _0x487fce=_0xa3f15d[_0x16af43([0x73,0x70,0x6c,0x69,0x74])](_0x16af43([0x2e]));return _0x2620dc[_0x16af43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6409b5=>_0x6409b5[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16af43([0x2a])))[_0x16af43([0x6d,0x61,0x70])](_0x390095=>_0x390095[_0x16af43([0x73,0x70,0x6c,0x69,0x74])](_0x16af43([0x2e])))[_0x16af43([0x73,0x6f,0x6d,0x65])](_0x17f5ec=>_0x487fce[_0x16af43([0x65,0x76,0x65,0x72,0x79])]((_0x35b06d,_0x1034ea)=>_0x17f5ec[_0x1034ea]===_0x35b06d||_0x17f5ec[_0x1034ea]===_0x16af43([0x2a])));}function _0x1e6c18(){return _0x1ced10&&_0x5106e0?new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45c923,_0x13223e)=>{_0x1ced10[_0x16af43([0x74,0x68,0x65,0x6e])](_0x45c923,_0x13223e),_0x5106e0[_0x16af43([0x74,0x68,0x65,0x6e])](_0x2b6aed=>{_0x2b6aed!=_0x16af43([0x56,0x61,0x6c,0x69,0x64])&&_0x45c923(_0x2b6aed);},_0x13223e);}):_0x1ced10||_0x5106e0||_0x16af43([0x56,0x61,0x6c,0x69,0x64]);}}function _0x160c81(_0x3c57c0,_0x36b4ad){return new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9548c1=>{if(_0x9997ad())return _0x9548c1(_0x16af43([0x56,0x61,0x6c,0x69,0x64]));_0x40c94e(),_0x435a94[_0x16af43([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16af43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2cc931=!0x1;const _0x3e6f65=_0x731d10();function _0x4d79fa(_0x39b061){return!!_0x39b061&&(typeof _0x39b061===_0x16af43([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39b061===_0x16af43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39b061[_0x16af43([0x74,0x68,0x65,0x6e])]===_0x16af43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39b061[_0x16af43([0x63,0x61,0x74,0x63,0x68])]===_0x16af43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f1514(_0x78e257){_0x516f71(_0x78e257)[_0x16af43([0x74,0x68,0x65,0x6e])](_0x1d9bb3=>{if(!_0x1d9bb3||_0x1d9bb3[_0x16af43([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16af43([0x6f,0x6b]))return _0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f5d11(_0x2a5beb(_0x3e6f65+_0x36b4ad))!=_0x1d9bb3[_0x16af43([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16af43([0x56,0x61,0x6c,0x69,0x64]);})[_0x16af43([0x74,0x68,0x65,0x6e])](_0x5c958c=>(_0x104868(),_0x5c958c),()=>{const _0x3f0e2d=_0xb38799();return null==_0x3f0e2d?(_0x104868(),_0x16af43([0x56,0x61,0x6c,0x69,0x64])):_0x16af43(_0x169e0a-_0x3f0e2d>(0x6a11c2e5^_0x1cb8ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16af43([0x74,0x68,0x65,0x6e])](_0x9548c1)[_0x16af43([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9548c1(_0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d6e16=0x4e2ba865^_0x1cb8ad;function _0x104868(){const _0x5a739f=_0x16af43([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f5d11(_0x2a5beb(_0x3c57c0)),_0x11f434=_0xe66451(_0x1f5d11(window[_0x16af43([0x4d,0x61,0x74,0x68])][_0x16af43([0x63,0x65,0x69,0x6c])](_0x169e0a/_0x5d6e16)));window[_0x16af43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16af43([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a739f,_0x11f434);}function _0xb38799(){const _0x1cb0c2=_0x16af43([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f5d11(_0x2a5beb(_0x3c57c0)),_0x225182=window[_0x16af43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16af43([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cb0c2);return _0x225182?window[_0x16af43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe66451(_0x225182),0x10)*_0x5d6e16:null;}function _0x516f71(_0x43f8d8){return new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x443c9c,_0x62e9b0)=>{_0x43f8d8[_0x16af43([0x74,0x68,0x65,0x6e])](_0x443c9c,_0x62e9b0),window[_0x16af43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x62e9b0,0x4e1c9225^_0x1cb8ad);});}}_0x435a94[_0x16af43([0x6f,0x6e])](_0x16af43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b9cfb,_0x231396)=>{if(_0x231396[0x0]!=_0x3c57c0)return _0x9548c1(_0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x231396[0x1]={..._0x231396[0x1],[_0x16af43([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e6f65};},{[_0x16af43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16af43([0x68,0x69,0x67,0x68])}),_0x435a94[_0x16af43([0x6f,0x6e])](_0x16af43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x402cdf=>{_0x4d79fa(_0x402cdf[_0x16af43([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2cc931=!0x0,_0x4f1514(_0x402cdf[_0x16af43([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16af43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16af43([0x6c,0x6f,0x77])}),_0x448cd8[_0x16af43([0x74,0x68,0x65,0x6e])](()=>{_0x2cc931||_0x9548c1(_0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9997ad(){return _0x435a94[_0x16af43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16af43([0x76,0x69,0x65,0x77])][_0x16af43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16af43([0x61,0x75,0x74,0x6f]);}function _0x40c94e(){_0x435a94[_0x16af43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16af43([0x76,0x69,0x65,0x77])][_0x16af43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16af43([0x61,0x75,0x74,0x6f]);}}function _0x37f77a(_0x4a2735){const _0xea67cc=[new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21bc33=>setTimeout(_0x21bc33,0x4e147829^_0x1cb8ad)),_0x448cd8[_0x16af43([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49381a=>{const _0x1dd028=0x4e1d46e2^_0x1cb8ad,_0x4bcd30=_0xd8e928[_0x16af43([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2ad889(){_0x4bcd30[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1dd028&&_0x49381a();}_0x2ad889(),_0x4bcd30[_0x16af43([0x6f,0x6e])](_0x16af43([0x61,0x64,0x64]),_0x2ad889);})),new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46e332=>{function _0x1e740b(){for(const _0x26496f in window)if(window[_0x16af43([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x16af43([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x26496f))&&window[_0x26496f]==_0x1abe82)return _0x46e332();_0x435a94[_0x16af43([0x73,0x74,0x61,0x74,0x65])]!=_0x16af43([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x16af43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e740b,0x4e1d556d^_0x1cb8ad);}_0x57f091(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1e740b();})];return window[_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16af43([0x72,0x61,0x63,0x65])](_0xea67cc)[_0x16af43([0x74,0x68,0x65,0x6e])](()=>_0x4a2735);}async function _0xeb0802(){if(await _0x448cd8,_0x57f091(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x54a102=_0xd8e928[_0x16af43([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xd0576a=_0xd8e928[_0x16af43([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])](_0x54a102[_0x16af43([0x69,0x64])]),_0x5bb6eb=_0x1a7868(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5bb6eb[_0x16af43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x54a102['id'],_0xd0576a?_0xd0576a['id']:null,!0x0),_0x5bb6eb[_0x16af43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x16af43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bb6eb[_0x16af43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bb6eb[_0x16af43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x23e99b,void(_0x5bb6eb[_0x16af43([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x23e99b);}if(_0x57f091(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xfde4c4=_0x1a7868(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xfde4c4[_0x16af43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x16af43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xfde4c4[_0x16af43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xfde4c4[_0x16af43([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x23e99b,_0xfde4c4[_0x16af43([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x23e99b;}_0x435a94[_0x16af43([0x6d,0x6f,0x64,0x65,0x6c])][_0x16af43([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23e99b,_0x435a94[_0x16af43([0x6d,0x6f,0x64,0x65,0x6c])][_0x16af43([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23e99b,_0x435a94[_0x16af43([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16af43([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15c014(){return _0x57f091(_0x16af43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1a7868(_0x16af43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x16af43([0x73,0x74,0x61,0x74,0x65])]==_0x16af43([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x27c50c(){return _0x57f091(_0x16af43([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 _0x208b43(){return _0x57f091(_0x16af43([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e1c69(_0x128e48){const _0x446a18=_0x2c1c0a();_0x435a94[_0x446a18]=_0x16af43([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])+_0x128e48,_0x128e48[_0x16af43([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x16af43([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2c1c0a()]=_0x1abe82),_0x128e48!=_0x16af43([0x56,0x61,0x6c,0x69,0x64])&&_0xeb0802();}function _0x2c1c0a(){const _0x577573=window[_0x16af43([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16af43([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16af43([0x6e,0x6f,0x77])]())[_0x16af43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16af43([0x2e]),'');let _0x1978be=_0x16af43([0x42]);for(let _0x4cae9f=0x0;_0x4cae9f<_0x577573[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cae9f+=0x2){let _0x588572=window[_0x16af43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x577573[_0x16af43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cae9f,_0x4cae9f+0x2));_0x588572>=_0x25e4c8[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x588572-=_0x25e4c8[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1978be+=_0x25e4c8[_0x588572];}return _0x1978be;}function _0x8166c2(){const _0x10929a=_0x8c695d[_0x16af43([0x73,0x70,0x6c,0x69,0x74])](_0x16af43([0x2e]));if(0x3!=_0x10929a[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12fa1f(_0x10929a[0x1]);function _0x12fa1f(_0x3618eb){const _0x42b3a8=_0x5c7efd(_0x3618eb);return _0x42b3a8&&_0x196782()?_0x42b3a8:null;function _0x196782(){const _0x2ce424=_0x42b3a8[_0x16af43([0x6a,0x74,0x69])],_0x232521=window[_0x16af43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ce424[_0x16af43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ce424[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x123480={..._0x42b3a8,[_0x16af43([0x6a,0x74,0x69])]:_0x2ce424[_0x16af43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ce424[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x123480[_0x16af43([0x76,0x63])],_0x2a5beb(_0x123480)==_0x232521;}}}async function _0x314130(){let _0x1b87b8=!0x0;try{const _0x4a948c=_0x8c695d[_0x16af43([0x73,0x70,0x6c,0x69,0x74])](_0x16af43([0x2e])),[_0x38cae2,_0x57f8a1,_0x6a207]=_0x4a948c;return _0x509e1d(_0x38cae2),await _0x49c29f(_0x38cae2,_0x57f8a1,_0x6a207),_0x1b87b8;}catch(_0x45e820){return!0x1;}function _0x509e1d(_0xb75b37){const _0x4fec2e=_0x5c7efd(_0xb75b37);_0x4fec2e&&_0x4fec2e[_0x16af43([0x61,0x6c,0x67])]==_0x16af43([0x45,0x53,0x32,0x35,0x36])||(_0x1b87b8=!0x1);}async function _0x49c29f(_0x35d79a,_0x2b0672,_0x1cb831){const _0x44b61b=window[_0x16af43([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16af43([0x66,0x72,0x6f,0x6d])](_0x1a0216(_0x1cb831),_0x456ce6=>_0x456ce6[_0x16af43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28a516=new window[(_0x16af43([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16af43([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35d79a+_0x16af43([0x2e])+_0x2b0672),_0x273d9f=window[_0x16af43([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16af43([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x273d9f)return;const _0x14f717=await _0x273d9f[_0x16af43([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16af43([0x6a,0x77,0x6b]),_0x34f836,{[_0x16af43([0x6e,0x61,0x6d,0x65])]:_0x16af43([0x45,0x43,0x44,0x53,0x41]),[_0x16af43([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16af43([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16af43([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x273d9f[_0x16af43([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16af43([0x6e,0x61,0x6d,0x65])]:_0x16af43([0x45,0x43,0x44,0x53,0x41]),[_0x16af43([0x68,0x61,0x73,0x68])]:{[_0x16af43([0x6e,0x61,0x6d,0x65])]:_0x16af43([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14f717,_0x44b61b,_0x28a516)||(_0x1b87b8=!0x1);}}function _0x5c7efd(_0x400a76){return _0x400a76[_0x16af43([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16af43([0x65,0x79]))?JSON[_0x16af43([0x70,0x61,0x72,0x73,0x65])](_0x1a0216(_0x400a76)):null;}function _0x1a0216(_0x446586){return window[_0x16af43([0x61,0x74,0x6f,0x62])](_0x446586[_0x16af43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16af43([0x2b]))[_0x16af43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16af43([0x2f])));}function _0x2a5beb(_0x986365){let _0x4a38ae=0x1505;function _0x2bbdfd(_0x1a5235){for(let _0x315fe0=0x0;_0x315fe0<_0x1a5235[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x315fe0++){const _0x2668e3=_0x1a5235[_0x16af43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x315fe0);_0x4a38ae=(_0x4a38ae<<0x5)+_0x4a38ae+_0x2668e3,_0x4a38ae&=_0x4a38ae;}}function _0x114c69(_0x38d1b1){Array[_0x16af43([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38d1b1)?_0x38d1b1[_0x16af43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x114c69):_0x38d1b1&&typeof _0x38d1b1==_0x16af43([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16af43([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38d1b1)[_0x16af43([0x73,0x6f,0x72,0x74])]()[_0x16af43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51db1c,_0x35025c])=>{_0x2bbdfd(_0x51db1c),_0x114c69(_0x35025c);}):_0x2bbdfd(window[_0x16af43([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38d1b1));}return _0x114c69(_0x986365),_0x4a38ae>>>0x0;}function _0x1f5d11(_0x19478f){return _0x19478f[_0x16af43([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16af43([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16af43([0x30]));}function _0xe66451(_0x201127){return _0x201127[_0x16af43([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16af43([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16af43([0x6a,0x6f,0x69,0x6e])]('');}function _0x57f091(_0x1d58d2){return _0x435a94[_0x16af43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16af43([0x68,0x61,0x73])](_0x1d58d2);}function _0x1a7868(_0x300b2f){return _0x435a94[_0x16af43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16af43([0x67,0x65,0x74])](_0x300b2f);}function _0x23e99b(){}function _0x16af43(_0x85b440){return _0x85b440['map'](_0x39cda1=>String['fromCharCode'](_0x39cda1))['join']('');}_0x2e1c69(await _0x23fa35());}(this);}['createRevision'](_0x536bdb){const _0x51104a=this['editor']['plugins']['get']('Users');return new a({'id':_0x536bdb['id'],'name':_0x536bdb['name'],'creator':_0x536bdb['creatorId']?_0x51104a['getUser'](_0x536bdb['creatorId']):null,'diffData':_0x536bdb['diffData']||_0x536bdb['data'],'authors':_0x536bdb['authorsIds']['map'](_0x47ed73=>_0x51104a['getUser'](_0x47ed73)),'createdAt':new Date(_0x536bdb['createdAt']),'attributes':_0x536bdb['attributes'],'fromVersion':_0x536bdb['fromVersion'],'toVersion':_0x536bdb['toVersion']});}['addRevision'](_0x56eeb6,_0x460f02=0x0){this['_revisions']['add'](_0x56eeb6,_0x460f02);}['getRevision'](_0x52bb5b){return this['_revisions']['get'](_0x52bb5b);}['getRevisions'](_0x3332f2={'toJSON':!0x1}){const _0x4333bc=Array['from'](this['_revisions']);return _0x4333bc['reverse'](),_0x3332f2['toJSON']?_0x4333bc['map'](_0x541273=>_0x541273['toJSON']()):_0x4333bc;}['getIndex'](_0x1bdca1){return this['_revisions']['getIndex'](_0x1bdca1);}['getEarlierVisibleRevision'](_0x560568){const [,_0x2bf841]=this['getRevisionsIterator'](_0x560568,{'direction':'earlier'});return _0x2bf841;}['getLaterVisibleRevision'](_0x1dbee5){const [,_0x429ea1]=this['getRevisionsIterator'](_0x1dbee5,{'direction':'later'});return _0x429ea1;}['getRevisionsInDiff'](_0x23cc4b){const _0x56a1a5=[];for(const _0x4ffe4f of this['getRevisionsIterator'](_0x23cc4b['newRevisionId']))if(_0x56a1a5['push'](_0x4ffe4f),_0x4ffe4f['id']===_0x23cc4b['oldRevisionId'])break;return _0x56a1a5;}*['getRevisionsIterator'](_0x3fa70f,{direction:_0x1f6bbc='earlier',filter:_0x1110af=()=>!0x0}={}){const _0x50b971='earlier'===_0x1f6bbc?0x1:-0x1;let _0x355ac4=this['_revisions']['get'](_0x3fa70f),_0x21e2bd=this['getIndex'](_0x355ac4);for(yield _0x355ac4;_0x355ac4;){if(_0x21e2bd+=_0x50b971,_0x355ac4=this['getRevision'](_0x21e2bd),!_0x355ac4)return;_0x1110af(_0x355ac4)&&(yield _0x355ac4);}}}function m(_0x1384f5,_0xe2c1c7,_0x14bd99){const t=_0x1384f5['t'];switch(_0xe2c1c7){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'},_0x14bd99);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x14bd99);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 P={'c':_0x154874,'a':_0x59b955,'e':_0x86ac4d,'r':_0x3e22f5,'u':_0x264338};class l extends _0x1c983f{['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[_0x5ebf97,j,_0x4769f2];}constructor(_0x4f59ab){super(_0x4f59ab),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 _0x1e7c6a=_0x731d10();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1e7c6a},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 _0x4984f1=this['repository']['getRevision'](0x0),_0x3cba68=_0x4984f1&&null===_0x4984f1['creator']?_0x4984f1:null;if(this['_continueCurrentRevision']=!!_0x3cba68&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xdad53c=this['_source']['getCurrentRevisionId'](),_0x56d317=this['repository']['getRevision'](_0xdad53c);if(_0x56d317)this['_startingVersion']=_0x56d317['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x30f054=this['_source']['history']['_operations']['find'](_0x3359e4=>!_0x3359e4['_isInit']),_0x11029d=_0x30f054?_0x30f054['baseVersion']:this['_source']['history']['version'];_0x4984f1?(_0x4984f1['toVersion']<_0x11029d&&_0x4984f1['_update']({'toVersion':_0x11029d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3cba68['id'],this['_startingVersion']=_0x3cba68['fromVersion']):(this['_startingVersion']=_0x4984f1['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x11029d,this['_continueCurrentRevision']=!0x1);}}else _0x3cba68&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3cba68['toVersion'],this['editor']['model']['document']['history']['version']),_0x3cba68['fromVersion']===_0x3cba68['toVersion']?(0x0!==_0x3cba68['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3cba68['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3cba68['id'],this['_startingVersion']=_0x3cba68['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',_0x3f2149=>!_0x3f2149),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3425f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e61c2;for(const _0x216466 in _0x3425f8){const _0x52120b=_0x216466,_0x4da625=_0x3425f8[_0x52120b];if('revisionHistoryLicenseKeyValid'==_0x4da625||'revisionHistoryLicenseKeyInvalid'==_0x4da625||'revisionHistoryLicenseKeyExpired'==_0x4da625||'revisionHistoryLicenseKeyDomainLimit'==_0x4da625||'revisionHistoryLicenseKeyNotAllowed'==_0x4da625||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4da625||'revisionHistoryLicenseKeyTrialLimit'==_0x4da625||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4da625||'revisionHistoryLicenseKeyUsageLimit'==_0x4da625){delete _0x3425f8[_0x52120b],_0x1e61c2=_0x4da625,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1e61c2&&_0x3425f8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1e61c2&&_0x3425f8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1e61c2&&_0x3425f8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x342584=this['repository']['getRevision'](0x0),_0x2b4772=await this['getRevisionDocumentData'](_0x342584),_0x499823=await this['getRevisionRootsAttributes'](_0x342584);this['_replaceEditorDataWithRevisionData'](_0x2b4772,_0x499823);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4443a0){this['_source']=_0x4443a0;}async['update'](){const _0x1cc429=await this['_source']['getLatestVersion']();if(_0x1cc429>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4734e4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1cc429});_0x4734e4['authors']=_0x4734e4['authorsIds']['map'](_0x349943=>this['editor']['plugins']['get']('Users')['getUser'](_0x349943)),this['currentRevision']['_update'](_0x4734e4);}}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'](_0x45b28={},_0x3059c9=null){const _0x572145=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3059c9>this['currentRevision']['toVersion']&&(_0x3059c9=null),null===_0x3059c9&&(_0x3059c9=await this['_source']['getLatestVersion']());const _0x564b32=this['_getFromVersion'](_0x3059c9),_0x368819=this['buildRevisionData']({'from':_0x564b32,'to':_0x3059c9});if(this['currentRevision']['toVersion']<_0x3059c9){const _0x420910=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3059c9,'to':_0x3059c9});_0x420910['authors']=[],_0x420910['authorsIds']=[],_0x420910['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x420910,!0x0),delete _0x420910['authors'],_0x572145['push'](_0x420910);}_0x45b28['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x45b28['name']=_0x45b28['name']||null,_0x45b28['id']=_0x45b28['id']||_0x731d10(),_0x45b28={..._0x45b28,..._0x368819};const _0x1dbfc6=this['addRevisionData'](_0x45b28);_0x572145['push'](_0x45b28);const _0x147c11=this['repository']['getIndex'](_0x1dbfc6);if(0x0!==_0x147c11){const _0x55bb14=this['repository']['getRevision'](_0x147c11-0x1);if(_0x55bb14['fromVersion']!==_0x3059c9){const _0x421a22=this['_revisionDataBuilder']['getData'](_0x3059c9,_0x55bb14['toVersion']),_0x24ae2d={'id':_0x55bb14['id'],'diffData':_0x421a22['diffData'],'authorsIds':_0x421a22['authorsIds'],'authors':_0x421a22['authorsIds']['map'](_0x2b1fcc=>this['editor']['plugins']['get']('Users')['getUser'](_0x2b1fcc)),'fromVersion':_0x3059c9};_0x55bb14===this['currentRevision']&&(_0x24ae2d['createdAt']=new Date(_0x45b28['createdAt']['getTime']()+0xa)),_0x55bb14['_update'](_0x24ae2d,!0x0),delete _0x24ae2d['authors'],_0x572145['push'](_0x24ae2d);}}if(this['adapter']){for(const _0x49207f of _0x572145)this['_bufferUpdate'](_0x49207f['id'],_0x49207f,!0x0);this['sendBufferedUpdates']();}return _0x1dbfc6;}['addRevisionData'](_0x4b6df8){const _0x5b9db4=this['repository']['createRevision'](_0x4b6df8);return this['adapter']&&_0x5b9db4['on']('_update',(_0x5c6c76,_0x52f9c9,_0x2f2ed9)=>{_0x2f2ed9||(this['_bufferUpdate'](_0x52f9c9['id'],_0x52f9c9,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5b9db4,this['_findInsertionIndex'](_0x5b9db4)),_0x5b9db4;}async['getRevisionDocumentData'](_0x3762cc){await this['_loadRevisionData'](_0x3762cc);const _0x2049f1={};for(const _0x4c6a15 in _0x3762cc['diffData']){if(_0x3762cc['diffData'][_0x4c6a15]['attachChange']&&!_0x3762cc['diffData'][_0x4c6a15]['attachChange']['isAttached'])continue;const _0x3dde3a=this['_removeRevisionMarkers'](JSON['parse'](_0x3762cc['diffData'][_0x4c6a15]['insertions'])),_0x28b1a4=this['editor']['editing']['view']['document'],_0x207ba6=new _0x352937(_0x28b1a4,_0x3dde3a['map'](_0x1472b0=>C(_0x1472b0,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2049f1[_0x4c6a15]=this['editor']['data']['processor']['toData'](_0x207ba6),this['editor']['data']['processor']['useFillerType']('default');}return _0x2049f1;}async['getRevisionRootsAttributes'](_0x14cf6e){await this['_loadRevisionData'](_0x14cf6e);const _0x5ed46b={};for(const _0x4fc085 in _0x14cf6e['diffData'])_0x14cf6e['diffData'][_0x4fc085]['attachChange']&&!_0x14cf6e['diffData'][_0x4fc085]['attachChange']['isAttached']||(_0x5ed46b[_0x4fc085]=_0x14cf6e['diffData'][_0x4fc085]['attributesAfter']||{});return _0x5ed46b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2d932e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4c0008=0x0;_0x4c0008<_0x2d932e['length'];_0x4c0008++){const _0x59370b=_0x2d932e[_0x4c0008];let _0x5d3cab=!0x1;for(const _0xbfa5d1 of Object['keys'](_0x59370b))void 0x0===_0x59370b[_0xbfa5d1]?delete _0x59370b[_0xbfa5d1]:'id'!==_0xbfa5d1&&(_0x5d3cab=!0x0);_0x5d3cab||(_0x2d932e[_0x4c0008]=null);}if(_0x2d932e=_0x2d932e['filter'](_0x4da8c4=>null!==_0x4da8c4),!_0x2d932e['length'])return;for(let _0x2d1fb3=0x0;_0x2d1fb3<_0x2d932e['length'];_0x2d1fb3++){const _0x4cb695=_0x2d932e[_0x2d1fb3];void 0x0!==_0x4cb695['fromVersion']&&void 0x0===_0x4cb695['toVersion']&&(_0x4cb695['toVersion']=this['repository']['getRevision'](_0x4cb695['id'])['toVersion']),void 0x0!==_0x4cb695['toVersion']&&void 0x0===_0x4cb695['fromVersion']&&(_0x4cb695['fromVersion']=this['repository']['getRevision'](_0x4cb695['id'])['fromVersion']);}const _0x5c3709=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2d932e,_0x5c3709)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ca040=>{if(_0x2ca040){for(const _0x48b8ca of _0x2ca040)this['setRevisionData']({'id':_0x48b8ca['id'],'createdAt':_0x48b8ca['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x12dac9,_0xd7846c){let _0x5b1a46=this['editor']['config']['get']('initialData'),_0x17e690=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5b1a46){_0x5b1a46={};for(const _0xffb5cf of this['editor']['model']['document']['getRootNames']())_0x5b1a46[_0xffb5cf]='';}if('string'==typeof _0x5b1a46&&(_0x5b1a46={'main':_0x5b1a46}),void 0x0===_0x17e690){_0x17e690={};for(const _0x1fcdf5 of this['editor']['model']['document']['getRootNames']())_0x17e690[_0x1fcdf5]={};}let _0x11836e=!0x1;const _0x184d11=Object['keys'](_0x5b1a46),_0x299c68=Object['keys'](_0x12dac9);for(const _0x52448e of _0x184d11){if(_0x5b1a46[_0x52448e]!==_0x12dac9[_0x52448e]&&''!==_0x5b1a46[_0x52448e]['trim']()){_0x11836e=!0x0;break;}if(!_0x1871c4(_0x17e690[_0x52448e],_0xd7846c[_0x52448e])&&Object['keys'](_0x17e690[_0x52448e])['length']>0x0){_0x11836e=!0x0;break;}}_0x11836e||(_0x11836e=_0x299c68['some'](_0x3b9d79=>!this['editor']['model']['document']['getRoot'](_0x3b9d79))),_0x11836e&&_0x4bc96c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5b1a46,'editorRootsAttributes':_0x17e690,'revisionData':_0x12dac9,'revisionRootsAttributes':_0xd7846c}),this['editor']['config']['set']('initialData',_0x12dac9),this['editor']['config']['set']('rootsAttributes',_0xd7846c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4b6b35=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4b6b35['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5b133d){const _0x20e392=this['repository']['getRevisions']();_0x20e392['reverse']();let _0x36baea=0x0;for(;_0x36baea<_0x20e392['length'];){const _0xb4e22e=_0x20e392[_0x36baea];if(_0xb4e22e===this['currentRevision']){_0x36baea++;continue;}if(_0xb4e22e['id']===this['_initialRevisionId'])break;const _0x42c5ea=_0x5b133d['toVersion']-_0xb4e22e['toVersion']||_0x5b133d['fromVersion']-_0xb4e22e['fromVersion'];if(_0x42c5ea>0x0)break;if(_0x42c5ea<0x0)_0x36baea++;else{if(!_0x5b133d['creator']&&_0xb4e22e['creator'])break;if(_0xb4e22e['creator']||!_0x5b133d['creator']){if(_0x5b133d['createdAt']>_0xb4e22e['createdAt'])break;_0x36baea++;}else _0x36baea++;}}return _0x36baea;}['setRevisionData'](_0x1a6467){const _0x1b3210=this['repository']['getRevision'](_0x1a6467['id']);if(_0x1a6467['createdAt']&&(_0x1a6467['createdAt']=new Date(_0x1a6467['createdAt'])),_0x1a6467['authorsIds']){const _0x5115e6=this['editor']['plugins']['get']('Users');_0x1a6467['authors']=_0x1a6467['authorsIds']['map'](_0x41de4d=>_0x5115e6['getUser'](_0x41de4d));}_0x1b3210['_update'](_0x1a6467,!0x0);}['buildRevisionData']({revision:_0x243e45=null,from:_0x207c54=null,to:_0xf0d787=null}){_0x207c54=null!==_0x207c54?_0x207c54:_0x243e45['fromVersion'],_0xf0d787=null!==_0xf0d787?_0xf0d787:_0x243e45['toVersion'];const _0x175790=this['_revisionDataBuilder']['getData'](_0x207c54,_0xf0d787),_0x59f02d={'diffData':_0x175790['diffData'],'authorsIds':_0x175790['authorsIds'],'fromVersion':_0x207c54,'toVersion':_0xf0d787};if(!_0x243e45||_0xf0d787!==_0x243e45['toVersion']){const _0x1e63e2=_0xf0d787-0x1,_0x51097a=this['_source']['history']['getOperation'](_0x1e63e2);_0x59f02d['createdAt']=_0x51097a&&_0x51097a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x207c54===this['_loadedStateData']['fromVersion']){for(const _0x277f1e of this['_loadedStateData']['authors'])_0x59f02d['authorsIds']['includes'](_0x277f1e['id'])||_0x59f02d['authorsIds']['push'](_0x277f1e['id']);}return _0x59f02d;}['_loadRevisionData'](_0x51c485){if(!_0x51c485||_0x51c485['diffData'])return Promise['resolve']();{const _0x569c5a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x569c5a,'revisionId':_0x51c485['id']})['then'](_0x32b2e5=>{_0x51c485['diffData']=_0x32b2e5['diffData'];});}}['_bufferUpdate'](_0x4a9ebf,_0x4a0d01,_0x13f387){if(this['_bufferedUpdates']['has'](_0x4a9ebf)){const _0x1c9ea1=this['_bufferedUpdates']['get'](_0x4a9ebf);_0x4a0d01=_0x13f387?{..._0x1c9ea1,..._0x4a0d01}:{..._0x4a0d01,..._0x1c9ea1};}this['_bufferedUpdates']['set'](_0x4a9ebf,_0x4a0d01);}['_getFromVersion'](_0xdff0a7){const _0x5b8250=this['repository']['getRevisions']();_0x5b8250['reverse'](),_0x5b8250['shift']();const _0x118d68=_0x5b8250['find'](_0x2637df=>_0x2637df['toVersion']<=_0xdff0a7)['toVersion'];return _0x118d68<this['_startingVersion']?this['_startingVersion']:_0x118d68;}['_createInitialRevision'](_0x47468f){const _0x1e3ea2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1e3ea2)this['_initialRevisionId']=_0x1e3ea2['id'];else{const _0x854da1=!this['editor']['model']['document']['roots']['find'](_0x4616aa=>this['editor']['model']['hasContent'](_0x4616aa)),_0xd90e51=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fbaa1=m(this['editor']['locale'],_0x854da1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x47468f,'to':_0x47468f,'id':this['_initialRevisionId'],'name':_0x1fbaa1,'creatorId':_0xd90e51});}}['_createCurrentRevision'](_0x1d9cc1){const _0x4ea061=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4ea061),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1d9cc1,'to':_0x1d9cc1,'id':_0x4ea061,'name':'','creatorId':null}));}['_makeRevision']({name:_0x526961,from:_0x5de79c,to:_0x5c4dc0,creatorId:_0x1136f3,id:_0x224787}){const _0x38534a=this['buildRevisionData']({'from':_0x5de79c,'to':_0x5c4dc0});_0x38534a['name']=_0x526961,_0x38534a['creatorId']=_0x1136f3,_0x38534a['id']=_0x224787;const _0x54aec7=this['addRevisionData'](_0x38534a);return this['adapter']&&this['_bufferUpdate'](_0x38534a['id'],_0x38534a,!0x0),_0x54aec7;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5b3c94){return(_0x5b3c94=_0x5b3c94['filter'](_0x1af7a3=>!_0x1af7a3['name']||'revision-start'!==_0x1af7a3['name']&&'revision-end'!==_0x1af7a3['name']))['forEach'](_0x552ab1=>{'string'!=typeof _0x552ab1&&(_0x552ab1['children']=this['_removeRevisionMarkers'](_0x552ab1['children']),_0x552ab1['attributes']=_0x552ab1['attributes']['filter'](_0x344ce1=>!_0x344ce1[0x0]['startsWith']('data-revision-')));}),_0x5b3c94;}}function C(_0x34a38b,_0x4834f9){const _0x5acdb6=_0x4834f9['editing']['view']['document'];if('string'==typeof _0x34a38b)return new _0x1ade11(_0x5acdb6,_0x34a38b);{const _0x23985f=_0x34a38b['children']['map'](_0x32186f=>C(_0x32186f,_0x4834f9));return new(P[_0x34a38b['type']]||_0x29faa1)(_0x5acdb6,_0x34a38b['name'],_0x34a38b['attributes'],_0x23985f);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xc24219){this['editor']=_0xc24219,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'](_0x509abd){this['source']=_0x509abd;const _0x33bcd6=new Map(),_0x49ee16=new Map(),_0x188d49=this['editor']['model']['document']['roots']['map'](_0x1b9ba4=>_0x1b9ba4['rootName']);for(const _0x1d7e39 of _0x188d49){const _0x1366de=this['editor']['model']['document']['getRoot'](_0x1d7e39),_0x445462=T(_0x1366de);_0x33bcd6['set'](_0x1d7e39,_0x445462),_0x49ee16['set'](_0x1d7e39,Object['fromEntries'](_0x1366de['getAttributes']()));}const _0x24be4e=Array['from'](this['editor']['model']['markers'])['map'](_0x4926cd=>[_0x4926cd['name'],_0x4926cd['getRange']()]),_0x2246ec=this['source']['version'];this['_saveMetaData'](_0x2246ec,_0x33bcd6,_0x24be4e,_0x49ee16),this['_startingRevisionId']=this['_revisionId'];const _0x329a7a=new Map(),_0x2b17db=new Map();for(const _0x47db46 of _0x188d49){const _0x48a8fc=F(_0x47db46);_0x329a7a['set'](_0x47db46,_0x48a8fc),_0x2b17db['set'](_0x47db46,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x329a7a,[],_0x2b17db);}['getData'](_0x27adbd,_0x2964c5){if(this['_lastFrom']===_0x27adbd&&this['_lastTo']<=_0x2964c5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2964c5,!0x0);else{if(!this['_savedMetaData']['has'](_0x27adbd)){const _0x49b77a=this['_getPreviousFrom'](_0x27adbd);this['_calculateMetaData'](_0x49b77a,_0x27adbd,!0x1);}this['_calculateMetaData'](_0x27adbd,_0x2964c5,!0x0);}return this['_lastFrom']=_0x27adbd,this['_lastTo']=_0x2964c5,this['_getState']();}['loadState'](_0x29e689){this['_reset'](),this['_lastFrom']=_0x29e689['fromVersion'],this['_lastTo']=_0x29e689['toVersion'];for(const _0x5a4618 in _0x29e689['diffData']){const _0x1ee775=_0x29e689['diffData'][_0x5a4618]['attachChange'],_0xc4c908=_0x3eb603(_0x29e689['diffData'][_0x5a4618]['attributesBefore'])||{},_0x5a49f9=this['_makeModelFromViewString'](_0x29e689['diffData'][_0x5a4618]['deletions']);_0x5a49f9['rootName']=_0x5a4618,_0x5a49f9['_isAttached']=!_0x1ee775||!_0x1ee775['isAttached'],_0x5a49f9['isAttached']=()=>_0x5a49f9['_isAttached'],this['_baseRoots']['set'](_0x5a4618,_0x5a49f9),this['_baseRootsAttributes']['set'](_0x5a4618,_0xc4c908),_0x1ee775&&this['_touchedRoots']['set'](_0x5a4618,_0x1ee775);const _0x2bc6b0=this['_makeIdsRoot'](_0x5a49f9);this['_baseIdsRoots']['set'](_0x5a4618,_0x2bc6b0);for(const [_0x33f2ee,_0x3bc26e]of _0x5a49f9['markers']){if(!_0x33f2ee['startsWith']('revision:'))continue;const _0x5bcfa2=_0x33f2ee['split'](':')[0x2];for(const _0x81be11 of _0x3bc26e['getWalker']({'singleCharacters':!0x0})){const _0x59b4dd=this['_getVidAttributeName'](_0x81be11),_0x261772='elementEnd'==_0x81be11['type']?_0x81be11['previousPosition']['path']['slice'](0x0,-0x1):_0x81be11['previousPosition']['path'],_0x502fbf=_0x2bc6b0['getNodeByPath'](_0x261772)['getAttribute'](_0x59b4dd);this['_touched']['set'](_0x502fbf,{'userId':_0x5bcfa2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1b75dd=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5acd26=>!this['_touched']['has'](_0x5acd26));let _0x2690b1=0x0;const _0x3287b5=new Map();for(const _0x527b66 in _0x29e689['diffData']){const _0x24d963=_0x29e689['diffData'][_0x527b66]['attachChange'],_0x389d7d=_0x3eb603(_0x29e689['diffData'][_0x527b66]['attributesAfter'])||{},_0x31067f=this['_makeModelFromViewString'](_0x29e689['diffData'][_0x527b66]['insertions']);_0x31067f['rootName']=_0x527b66,_0x31067f['_isAttached']=!_0x24d963||_0x24d963['isAttached'],_0x31067f['isAttached']=()=>_0x31067f['_isAttached'],this['_diffRoots']['set'](_0x527b66,_0x31067f),this['_diffRootsAttributes']['set'](_0x527b66,_0x389d7d);const _0x4f49c2=this['_makeIdsRoot'](_0x31067f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x527b66,_0x4f49c2),_0x3287b5['set'](_0x527b66,_0x31067f['isAttached']()?_0x389d7d:{});for(const [_0x1f2486,_0x4790c3]of _0x31067f['markers']){if(!_0x1f2486['startsWith']('revision:'))continue;const _0x1bdbca=_0x1f2486['split'](':')[0x2];for(const _0x3f5f50 of _0x4790c3['getWalker']({'singleCharacters':!0x0})){const _0x5c1cad=this['_getVidAttributeName'](_0x3f5f50),_0x5b44a4=this['_revisionId']++,_0x3783a9='elementEnd'==_0x3f5f50['type']?_0x3f5f50['previousPosition']['path']['slice'](0x0,-0x1):_0x3f5f50['previousPosition']['path'];_0x4f49c2['getNodeByPath'](_0x3783a9)['_setAttribute'](_0x5c1cad,_0x5b44a4),this['_touched']['set'](_0x5b44a4,{'userId':_0x1bdbca});}}for(const _0x2d5487 of this['editor']['model']['createRangeIn'](_0x31067f)['getWalker']({'singleCharacters':!0x0})){const _0xe26de6=this['_getVidAttributeName'](_0x2d5487),_0x5e5143='elementEnd'==_0x2d5487['type']?_0x2d5487['previousPosition']['path']['slice'](0x0,-0x1):_0x2d5487['previousPosition']['path'],_0x29d658=_0x4f49c2['getNodeByPath'](_0x5e5143);_0x29d658['getAttribute'](_0xe26de6)>0x0||_0x29d658['_setAttribute'](_0xe26de6,_0x1b75dd[_0x2690b1++]);}for(const [_0x3ba5ec,_0x2baf84]of _0x31067f['markers'])_0x3ba5ec['startsWith']('revision:')||this['_markers']['set'](_0x3ba5ec,_0x2baf84);}const _0x514f9f=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x514f9f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x514f9f,0x1));const _0x351840=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x351840),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x351840,0x1));const _0x2124a9=Array['from'](this['_diffRoots'])['map'](([_0x3860cc,_0xe32442])=>[_0x3860cc,T(_0xe32442)]);this['_saveMetaData'](this['_lastTo'],_0x2124a9,this['_markers'],_0x3287b5);}['_makeModelFromViewString'](_0x2e8bb2){const _0x5df552=JSON['parse'](_0x2e8bb2),_0x5ca7d6=this['editor']['editing']['view']['document'],_0x51a1ed=new _0x352937(_0x5ca7d6,_0x5df552['map'](_0x2f2562=>C(_0x2f2562,this['editor'])));return this['editor']['data']['toModel'](_0x51a1ed);}['_saveMetaData'](_0x5179ef,_0x4654f4,_0x4c048d,_0x44a323){const _0x73066c=new Map(_0x4654f4),_0x5b779a=new Map(_0x3eb603(_0x44a323)),_0x55e48f=new Map();for(const [_0xc7cfac,_0x11f7bc]of _0x4c048d)_0x55e48f['set'](_0xc7cfac,{'start':_0x11f7bc['start']['clone'](),'end':_0x11f7bc['end']['clone'](),'rootName':_0x11f7bc['root']['rootName']});this['_savedMetaData']['set'](_0x5179ef,{'roots':_0x73066c,'markers':_0x55e48f,'rootsAttributes':_0x5b779a});}['_removeMetaData'](_0x1aa396){this['_savedMetaData']['delete'](_0x1aa396);}['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'](_0x3a371e,_0x334c42=null){let _0x23f300=null;_0x3a371e['is']('documentFragment')||(_0x23f300=new ft(_0x3a371e['name'],{'vid_start':null===_0x334c42?this['_revisionId']++:_0x334c42++}));const _0x195499=[];for(const _0x525f7e of _0x3a371e['getChildren']())if(_0x525f7e['is']('element')){_0x195499['push'](this['_makeIdsRoot'](_0x525f7e,_0x334c42));const _0x5c3fd2=_0x195499[_0x195499['length']-0x1];null!==_0x334c42&&(_0x334c42=_0x5c3fd2['is']('element','$text')?_0x5c3fd2['getAttribute']('vid')+0x1:_0x5c3fd2['getAttribute']('vid_end')+0x1);}else{for(let _0x333a3d=0x0;_0x333a3d<_0x525f7e['offsetSize'];_0x333a3d++)_0x195499['push'](new ft('$text',{'vid':null===_0x334c42?this['_revisionId']++:_0x334c42++}));}if(_0x3a371e['is']('documentFragment')){const _0x110b6a=F(_0x3a371e['rootName']);return _0x110b6a['_insertChild'](0x0,_0x195499),_0x110b6a;}return _0x23f300['_setAttribute']('vid_end',null===_0x334c42?this['_revisionId']++:_0x334c42++),_0x23f300['_insertChild'](0x0,_0x195499),_0x23f300;}['_calculateMetaData'](_0x2593fc,_0x478e07,_0x33e4db){this['_reset']();const {roots:_0x396f38,markers:_0x19b5b9,rootsAttributes:_0x2ca135}=this['_savedMetaData']['get'](_0x2593fc);this['_baseRoots']=new Map(_0x396f38),this['_baseRootsAttributes']=new Map(_0x3eb603(_0x2ca135));for(const [_0x147e2e,_0x58eb9e]of this['_baseRoots'])if('$graveyard'!==_0x147e2e&&(this['_diffRoots']['set'](_0x147e2e,T(_0x58eb9e)),this['_diffRootsAttributes']=new Map(_0x3eb603(_0x2ca135)),_0x33e4db)){const _0x179fe5=this['_revisionId'];this['_idsRoots']['set'](_0x147e2e,this['_makeIdsRoot'](_0x58eb9e)),this['_baseIdsRoots']['set'](_0x147e2e,this['_makeIdsRoot'](_0x58eb9e,_0x179fe5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x33e4db&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x37a8b9,_0x17c1dc]of _0x19b5b9){const _0x16041b=this['_baseRoots']['get'](_0x17c1dc['rootName']),_0x9f4107=this['_diffRoots']['get'](_0x17c1dc['rootName']),_0x3f3b48=new vt(this['_fixPosition'](_0x17c1dc['start'],_0x16041b),this['_fixPosition'](_0x17c1dc['end'],_0x16041b)),_0x254727=this['_fixRange'](_0x3f3b48,_0x9f4107);_0x16041b['markers']['set'](_0x37a8b9,_0x3f3b48),this['_markers']['set'](_0x37a8b9,_0x254727);}this['_applyOperations'](_0x2593fc,_0x478e07,_0x33e4db);}['_applyOperations'](_0x3b0ea5,_0x14962e,_0x10abf7){for(const _0x240356 of this['source']['getOperations'](_0x3b0ea5,_0x14962e))this['_handleOperation'](_0x240356,_0x10abf7);for(const _0x41d35a of this['_diffRoots']['values']())_0x41d35a['markers']['clear']();for(const [_0x323e58,_0x4123bb]of this['_markers']){this['_diffRoots']['get'](_0x4123bb['root']['rootName'])['markers']['set'](_0x323e58,_0x4123bb['clone']());}const _0x6742b8=new Map(),_0x27275e=new Map();for(const [_0x28a2cd,_0x315a5e]of this['_diffRoots'])_0x6742b8['set'](_0x28a2cd,T(_0x315a5e)),_0x27275e['set'](_0x28a2cd,this['_diffRootsAttributes']['get'](_0x28a2cd));this['_saveMetaData'](_0x14962e,_0x6742b8,this['_markers'],_0x27275e);}['_getPreviousFrom'](_0x492962){const _0x25aa14=Array['from'](this['_savedMetaData']['keys']());_0x25aa14['sort']((_0x533631,_0x3b3d7f)=>_0x533631-_0x3b3d7f),_0x25aa14['reverse']();for(const _0x546cd6 of _0x25aa14)if(_0x546cd6<_0x492962)return _0x546cd6;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x14594f,_0x5f2e54){const _0x538ebd=Array['from'](_0x5f2e54['markers'])['map'](([_0x596d56,_0x4dd842])=>[_0x596d56,this['_fixRange'](_0x4dd842,_0x14594f)]);_0x14594f['markers']=new Map(_0x538ebd);}['_transformMarkers'](_0x5a0f5b){for(const _0x560cb3 of this['_markers']['values']()){const _0x482b2c=_0x560cb3['getTransformedByOperation'](_0x5a0f5b),_0x1083e7=vt['_createFromRanges'](_0x482b2c);_0x560cb3['start']=_0x1083e7['start'],_0x560cb3['end']=_0x1083e7['end'];}}['_handleOperation'](_0x324bf4,_0x3694b1){if('addRoot'!=_0x324bf4['type']&&'detachRoot'!=_0x324bf4['type']){if('insert'==_0x324bf4['type']){const _0x106ef4=_0x324bf4['position']['root']['rootName'];this['_diffRoots']['has'](_0x106ef4)||(this['_diffRoots']['set'](_0x106ef4,F(_0x106ef4,!0x0)),this['_diffRootsAttributes']['set'](_0x106ef4,{}),_0x3694b1&&this['_idsRoots']['set'](_0x106ef4,F(_0x106ef4,!0x0)));}else{if('addRootAttribute'==_0x324bf4['type']||'removeRootAttribute'==_0x324bf4['type']||'changeRootAttribute'==_0x324bf4['type'])return void this['_handleRootAttributeOperation'](_0x324bf4);'marker'==_0x324bf4['type']&&this['_handleMarkerOperation'](_0x324bf4);}if('marker'!==_0x324bf4['type']){const _0x2a9086=this['_cloneOperation'](_0x324bf4,this['_diffRoots']);_0x2a9086['_execute'](),this['_transformMarkers'](_0x2a9086);}if(_0x3694b1)switch(_0x324bf4['type']){case'insert':this['_handleInsertOperation'](_0x324bf4);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x324bf4);break;case'merge':this['_handleMergeOperation'](_0x324bf4);break;case'split':this['_handleSplitOperation'](_0x324bf4);}}else this['_handleRootOperation'](_0x324bf4,_0x3694b1);}['_cloneOperation'](_0x2abc40,_0x3bd05c){const _0x5276b8=_0x2abc40['clone']();return _0x5276b8['_authorId']=_0x2abc40['_authorId'],this['_fixOperation'](_0x5276b8,_0x3bd05c),_0x5276b8;}['_getBaseVids'](_0x26d701){return _0x26d701['map'](_0xec5950=>{const _0x2d77d4=this['_getVidAttributeName'](_0xec5950);return Number(_0xec5950['item']['getAttribute'](_0x2d77d4));});}['_generateTape'](_0x56c7ed,_0x554e01){if(_0x56c7ed['is']('element','$text'))_0x554e01['push']({'item':_0x56c7ed,'type':'text'});else{_0x56c7ed['is']('element')&&_0x554e01['push']({'item':_0x56c7ed,'type':'elementStart'});for(const _0x21fcc6 of _0x56c7ed['getChildren']())this['_generateTape'](_0x21fcc6,_0x554e01);_0x56c7ed['is']('element')&&_0x554e01['push']({'item':_0x56c7ed,'type':'elementEnd'});}return _0x554e01;}['_getState'](){const _0x40a830=new Map(this['_touched']),_0x52d220=new Map(_0x40a830),_0x47b714=new Map(),_0x420593={'insertions':{},'deletions':{}},_0x17bca5={'insertions':{},'deletions':{}},_0x265454=new Map(),_0x206b61=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x206b61['delete']('$graveyard');for(const _0x1664a4 of _0x206b61){const _0x3aedbd=this['_diffRoots']['get'](_0x1664a4)||F(_0x1664a4,!0x1),_0x21b781=this['_baseRoots']['get'](_0x1664a4)||F(_0x1664a4,!0x1);_0x3aedbd['isAttached']()||_0x21b781['isAttached']()?(_0x420593['insertions'][_0x1664a4]=T(_0x3aedbd),_0x420593['deletions'][_0x1664a4]=T(_0x21b781),this['_copyMarkers'](_0x420593['deletions'][_0x1664a4],_0x21b781),this['_copyMarkers'](_0x420593['insertions'][_0x1664a4],_0x3aedbd),_0x17bca5['insertions'][_0x1664a4]=this['_generateTape'](this['_idsRoots']['get'](_0x1664a4),[]),_0x17bca5['deletions'][_0x1664a4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1664a4)||F(_0x1664a4,!0x1),[])):_0x206b61['delete'](_0x1664a4);}for(const _0x2133fe of _0x206b61){const _0x254381=_0x17bca5['insertions'][_0x2133fe];for(const _0x2c96a4 of _0x254381){const _0xb5f472=this['_getVidAttributeName'](_0x2c96a4),_0x1fd213=_0x2c96a4['item']['getAttribute'](_0xb5f472);_0x52d220['delete'](_0x1fd213),_0x1fd213>=this['_startingRevisionId']&&_0x47b714['set'](_0x1fd213,_0x40a830['get'](_0x1fd213));}}for(const _0x32fed0 of _0x206b61){const _0xd99988=_0x17bca5['insertions'][_0x32fed0],_0x3d34c7=this['_getBaseVids'](_0x17bca5['deletions'][_0x32fed0]);let _0x3ad823=0x0;for(const _0x5482ed of _0xd99988){const _0x3e525f=this['_getVidAttributeName'](_0x5482ed),_0x35e3c9=_0x5482ed['item']['getAttribute'](_0x3e525f);if(!_0x47b714['has'](_0x35e3c9)&&!_0x265454['has'](_0x35e3c9)){if(_0x52d220['has'](_0x35e3c9))_0x3ad823++;else{if(_0x35e3c9!=_0x3d34c7[_0x3ad823]){const _0x5ebc4a=_0x40a830['get'](_0x35e3c9)||_0x40a830['get'](_0x3d34c7[_0x3ad823]);for(;_0x35e3c9!=_0x3d34c7[_0x3ad823];)_0x52d220['has'](_0x3d34c7[_0x3ad823])||(_0x265454['set'](_0x3d34c7[_0x3ad823],_0x5ebc4a),_0x40a830['set'](_0x3d34c7[_0x3ad823],_0x5ebc4a)),_0x3ad823++;}_0x3ad823++;}}}}for(const _0x332c7d of _0x206b61){const _0x3f47a6=_0x17bca5['insertions'][_0x332c7d];for(const _0x511ff9 of _0x3f47a6){const _0x35050c=this['_getVidAttributeName'](_0x511ff9),_0x46d325=_0x511ff9['item']['getAttribute'](_0x35050c);if(_0x265454['has'](_0x46d325)){const _0x183ee2=_0x265454['get'](_0x46d325);_0x52d220['has'](_0x46d325)||_0x52d220['set'](_0x46d325,{..._0x183ee2}),_0x47b714['set'](_0x46d325,{..._0x183ee2});}}}for(const _0x3be8c9 of _0x52d220['keys']())_0x3be8c9>=this['_startingRevisionId']&&_0x52d220['delete'](_0x3be8c9);const _0x2bd479=new Map();for(const _0x4cc859 of _0x206b61){let _0x3f6df1=_0x17bca5['insertions'][_0x4cc859];for(const _0x412d58 of _0x3f6df1)if(_0x412d58['item']['is']('element','tableCell')){const _0x2060e6=this['_getVidAttributeName'](_0x412d58),_0x2e6b33=_0x412d58['item']['getAttribute'](_0x2060e6);if(_0x47b714['has'](_0x2e6b33)){const _0x130990=_0x412d58['item']['parent']['parent']['getAttribute']('vid_start'),_0x2cd060=_0x2bd479['get'](_0x130990)||new Set();_0x2cd060['add'](_0x47b714['get'](_0x2e6b33)['userId']),_0x2bd479['set'](_0x130990,_0x2cd060);}}_0x3f6df1=_0x17bca5['deletions'][_0x4cc859];for(const _0x486e89 of _0x3f6df1)if(_0x486e89['item']['is']('element','tableCell')){const _0x1e81cf=this['_getVidAttributeName'](_0x486e89),_0x1c2b23=_0x486e89['item']['getAttribute'](_0x1e81cf);if(_0x52d220['has'](_0x1c2b23)){const _0x431006=_0x486e89['item']['parent']['parent']['getAttribute']('vid_start'),_0x35d66c=_0x2bd479['get'](_0x431006)||new Set();_0x35d66c['add'](_0x52d220['get'](_0x1c2b23)['userId']),_0x2bd479['set'](_0x431006,_0x35d66c);}}for(const _0x14051d of _0x2bd479['keys']())(_0x47b714['has'](_0x14051d)||_0x52d220['has'](_0x14051d))&&_0x2bd479['delete'](_0x14051d);}for(const _0xd90b9f of _0x206b61){const _0x13e94a=_0x17bca5['insertions'][_0xd90b9f];let _0x1ad6af=null,_0x58cf5a=null;for(const _0x5e50a1 of _0x13e94a){const _0x34a30f=this['_getVidAttributeName'](_0x5e50a1),_0x347707=_0x5e50a1['item']['getAttribute'](_0x34a30f),_0x5ddbd3=_0x2bd479['get'](_0x347707);_0x5ddbd3&&'elementStart'==_0x5e50a1['type']&&(_0x1ad6af=Array['from'](_0x5ddbd3)[0x0],_0x58cf5a=_0x5e50a1['item']['getAttribute']('vid_end')),_0x1ad6af&&(_0x52d220['set'](_0x347707,{'userId':_0x1ad6af}),_0x47b714['set'](_0x347707,{'userId':_0x1ad6af})),_0x347707==_0x58cf5a&&(_0x1ad6af=null,_0x58cf5a=null);}}const _0x20aed8={},_0x17cd42=new Set();for(const _0x1e5408 of _0x206b61){const _0x4793ad=_0x420593['deletions'][_0x1e5408],_0x2ed1b0=_0x420593['insertions'][_0x1e5408];for(const {userId:_0xebd6df}of this['_touchedMarkers']['values']())null!==_0xebd6df&&_0x17cd42['add'](_0xebd6df);for(const {userId:_0x5195fa}of this['_touchedRoots']['values']())null!==_0x5195fa&&_0x17cd42['add'](_0x5195fa);this['_markChanges'](_0x2ed1b0,_0x17bca5['insertions'][_0x1e5408],_0x47b714,'insertion',_0x17cd42),this['_markChanges'](_0x4793ad,_0x17bca5['deletions'][_0x1e5408],_0x52d220,'deletion',_0x17cd42),_0x20aed8[_0x1e5408]={'insertions':this['_prepareViewToSave'](_0x2ed1b0),'deletions':this['_prepareViewToSave'](_0x4793ad),'attachChange':this['_touchedRoots']['get'](_0x1e5408)||null,'attributesBefore':_0x3eb603(this['_baseRootsAttributes']['get'](_0x1e5408))||{},'attributesAfter':_0x3eb603(this['_diffRootsAttributes']['get'](_0x1e5408))};}return{'diffData':_0x20aed8,'authorsIds':Array['from'](_0x17cd42)};}['_processRootBeforeSave'](_0x3fda65){for(const [,_0x107ec3]of _0x3fda65['markers']){const _0x20886d=_0x107ec3['start']['getAncestors']()['filter'](_0x51e260=>'tableCell'==_0x51e260['name']);for(const _0x2d5ed of _0x20886d)0x1==_0x2d5ed['childCount']&&_0x2d5ed['getChild'](0x0)['is']('element','paragraph')&&_0x2d5ed['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xc97a08){this['_processRootBeforeSave'](_0xc97a08);const _0x27958a=this['editor']['data']['toView'](_0xc97a08,{}),_0x4a8495=Array['from'](_0x27958a['getChildren']())['map'](_0x436eb6=>this['_getViewJson'](_0x436eb6));return JSON['stringify'](_0x4a8495);}['_getViewJson'](_0x35e379){if(_0x35e379['is']('$text'))return _0x35e379['data'];{const _0x981d6e=_0x35e379;return{'type':Object['keys'](P)['find'](_0x2fab88=>_0x35e379 instanceof P[_0x2fab88]),'name':_0x981d6e['name'],'attributes':Array['from'](_0x981d6e['getAttributes']()),'children':Array['from'](_0x981d6e['getChildren']())['map'](_0x12a2e2=>this['_getViewJson'](_0x12a2e2))};}}['_markChanges'](_0x5dfe13,_0xbe91ca,_0x2df8b7,_0x4885dc,_0x38e944){let _0x59f83f=null,_0x3cef65=null,_0x5dd95a=0x0;const _0x12726f=this['editor']['model'];for(let _0x3deb23=0x0;_0x3deb23<_0xbe91ca['length'];_0x3deb23++){const _0x371531=this['_getVidAttributeName'](_0xbe91ca[_0x3deb23]),_0x17d042=_0xbe91ca[_0x3deb23]['item']['getAttribute'](_0x371531),_0x27be00=_0x2df8b7['get'](_0x17d042),_0x54c0f4=_0x3deb23==_0xbe91ca['length']-0x1;(!_0x59f83f&&_0x27be00&&(_0x59f83f=_0x27be00,_0x3cef65=_0xbe91ca[_0x3deb23]),_0x59f83f&&(!_0x27be00||_0x27be00['userId']!=_0x59f83f['userId']))&&(_0x1d6432(_0x27be00,B(_0x3cef65,_0x5dfe13,_0x12726f),B(_0xbe91ca[_0x3deb23],_0x5dfe13,_0x12726f)),_0x59f83f=_0x27be00||null,_0x3cef65=_0x27be00?_0xbe91ca[_0x3deb23]:null),_0x59f83f&&_0x54c0f4&&_0x1d6432(_0x27be00,B(_0x3cef65,_0x5dfe13,_0x12726f),J(_0xbe91ca[_0x3deb23],_0x5dfe13,_0x12726f));}function _0x1d6432(_0x4f078c,_0x257f47,_0x544fd6){const _0x550b6b=_0x59f83f['userId'],_0xc9f7c7='revision:'+_0x4885dc+':'+_0x550b6b+':'+_0x5dd95a++,_0x5b85ac=_0x12726f['createRange'](_0x257f47,_0x544fd6);_0x5dfe13['markers']['set'](_0xc9f7c7,_0x5b85ac),null!==_0x550b6b&&_0x38e944['add'](_0x550b6b);}}['_getVidAttributeName'](_0x381818){switch(_0x381818['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x554179,_0x5211cf){_0x554179['baseVersion']=null;for(const _0xc08f42 in _0x554179){const _0x32e1a5=_0x554179[_0xc08f42];if(_0x32e1a5 instanceof gt){const _0x5c831a=_0x5211cf['get'](_0x32e1a5['root']['rootName']);_0x554179[_0xc08f42]=this['_fixPosition'](_0x32e1a5,_0x5c831a);}if(_0x32e1a5 instanceof vt){const _0x5cf801=_0x5211cf['get'](_0x32e1a5['root']['rootName']);_0x554179[_0xc08f42]=this['_fixRange'](_0x32e1a5,_0x5cf801);}'root'===_0xc08f42&&(_0x554179['root']=_0x5211cf['get'](_0x554179['root']['rootName']));}}['_fixRange'](_0x360922,_0x4a5198){return this['editor']['model']['createRange'](this['_fixPosition'](_0x360922['start'],_0x4a5198),this['_fixPosition'](_0x360922['end'],_0x4a5198));}['_fixPosition'](_0x11dc9f,_0x16474b){return this['editor']['model']['createPositionFromPath'](_0x16474b,_0x11dc9f['path'],_0x11dc9f['stickiness']);}['_handleInsertOperation'](_0x338cca){const _0x3b527e=this['_idsRoots']['get'](_0x338cca['position']['root']['rootName']),_0x318bbc=this['_fixPosition'](_0x338cca['position'],_0x3b527e),_0x46dbe9=null===_0x338cca['_authorId']?null:_0x338cca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x31bf81=_0x318bbc['parent'],_0x42818d=this['_revisionId'],_0x36e0af=[];for(const _0x452f4b of _0x338cca['nodes'])if(_0x452f4b['is']('element'))_0x36e0af['push'](this['_makeIdsRoot'](_0x452f4b));else{for(let _0x4aa591=0x0;_0x4aa591<_0x452f4b['offsetSize'];_0x4aa591++)_0x36e0af['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x392dcd=this['_revisionId'];for(let _0x31051c=_0x42818d;_0x31051c<_0x392dcd;_0x31051c++)this['_touched']['set'](_0x31051c,{'userId':_0x46dbe9});_0x31bf81['_insertChild'](_0x318bbc['offset'],_0x36e0af);}['_handleMoveOperation'](_0x22aa82){(_0x22aa82=this['_cloneOperation'](_0x22aa82,this['_idsRoots']))['_execute']();const _0x4277f4=null===_0x22aa82['_authorId']?null:_0x22aa82['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30badc=_0x22aa82['getMovedRangeStart'](),_0x2ee14e=_0x30badc['parent'],_0x28113d=_0x30badc['offset'];!function _0x1f092a(_0x3dac64,_0x2cfa50,_0x5750c2,_0xa96dba){for(let _0x53733a=_0x5750c2;_0x53733a<_0xa96dba;_0x53733a++){const _0x58a922=_0x2cfa50['getChild'](_0x53733a);_0x58a922['is']('element','$text')?_0x3dac64['set'](_0x58a922['getAttribute']('vid'),{'userId':_0x4277f4}):(_0x3dac64['set'](_0x58a922['getAttribute']('vid_start'),{'userId':_0x4277f4}),_0x1f092a(_0x3dac64,_0x58a922,0x0,_0x58a922['childCount']),_0x3dac64['set'](_0x58a922['getAttribute']('vid_end'),{'userId':_0x4277f4}));}}(this['_touched'],_0x2ee14e,_0x28113d,_0x28113d+_0x22aa82['howMany']);}['_handleMergeOperation'](_0x3bd6b2){const _0x167c72=null===(_0x3bd6b2=this['_cloneOperation'](_0x3bd6b2,this['_idsRoots']))['_authorId']?null:_0x3bd6b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7bea60=_0x3bd6b2['targetPosition']['parent'],_0x906817=_0x3bd6b2['sourcePosition']['parent'],_0x175292=_0x7bea60['getAttribute']('vid_end'),_0x6b6b11=_0x906817['getAttribute']('vid_start');_0x7bea60['_setAttribute']('vid_end',_0x906817['getAttribute']('vid_end')),_0x906817['_setAttribute']('vid_end',_0x175292),this['_touched']['set'](_0x6b6b11,{'userId':_0x167c72}),this['_touched']['set'](_0x175292,{'userId':_0x167c72}),_0x3bd6b2['_execute']();}['_handleSplitOperation'](_0x244605){const _0x57be18=null===(_0x244605=this['_cloneOperation'](_0x244605,this['_idsRoots']))['_authorId']?null:_0x244605['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37b6ac=_0x244605['graveyardPosition'],_0x255d84=_0x244605['splitPosition']['parent'];_0x244605['_execute']();const _0x4cc890=_0x255d84['getAttribute']('vid_end'),_0x39e8e4=_0x244605['insertionPosition']['nodeAfter'];if(_0x37b6ac){const _0x5e82a2=_0x39e8e4['getAttribute']('vid_end'),_0x1dabfa=_0x255d84['getAttribute']('vid_end');_0x255d84['_setAttribute']('vid_end',_0x5e82a2),_0x39e8e4['_setAttribute']('vid_end',_0x1dabfa),this['_touched']['set'](_0x255d84['getAttribute']('vid_end'),{'userId':_0x57be18}),this['_touched']['set'](_0x39e8e4['getAttribute']('vid_start'),{'userId':_0x57be18});}else{const _0x2d10d8=this['_revisionId']++,_0x214be4=this['_revisionId']++;_0x255d84['_setAttribute']('vid_end',_0x2d10d8),_0x39e8e4['_setAttribute']('vid_start',_0x214be4),_0x39e8e4['_setAttribute']('vid_end',_0x4cc890),this['_touched']['set'](_0x2d10d8,{'userId':_0x57be18}),this['_touched']['set'](_0x214be4,{'userId':_0x57be18});}}['_handleMarkerOperation'](_0x222703){if(!_0x222703['affectsData'])return;const _0x30a4c6=(_0x222703=this['_cloneOperation'](_0x222703,this['_diffRoots']))['oldRange']?_0x222703['oldRange']['root']:null,_0x2c36e7=_0x222703['newRange']?_0x222703['newRange']['root']:null;_0x30a4c6&&this['_markers']['delete'](_0x222703['name']),_0x2c36e7&&this['_markers']['set'](_0x222703['name'],_0x222703['newRange']['clone']());const _0x332643=null===_0x222703['_authorId']?null:_0x222703['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24cc8d=_0x222703['name'];if(!this['_touchedMarkers']['has'](_0x24cc8d))return void this['_touchedMarkers']['set'](_0x24cc8d,{'range':_0x222703['oldRange'],'userId':_0x332643});const _0x1e2338=this['_touchedMarkers']['get'](_0x24cc8d),_0x385458=_0x1e2338['range'],_0x45e583=_0x222703['newRange'];null==_0x385458&&null==_0x45e583||_0x385458&&_0x45e583&&_0x385458['isEqual'](_0x45e583)?this['_touchedMarkers']['delete'](_0x222703['name']):_0x1e2338['userId']=_0x332643;}['_handleRootOperation'](_0x165013,_0xb2575d){this['_diffRoots']['has'](_0x165013['rootName'])?this['_diffRoots']['get'](_0x165013['rootName'])['_isAttached']=_0x165013['isAdd']:(this['_diffRoots']['set'](_0x165013['rootName'],F(_0x165013['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x165013['rootName'],{}),_0xb2575d&&this['_idsRoots']['set'](_0x165013['rootName'],F(_0x165013['rootName'],!0x0)));const _0x4f19a5=null===_0x165013['_authorId']?null:_0x165013['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14cc79=this['_touchedRoots']['get'](_0x165013['rootName']);_0x14cc79&&_0x14cc79['userId']===_0x4f19a5?this['_touchedRoots']['delete'](_0x165013['rootName']):this['_touchedRoots']['set'](_0x165013['rootName'],{'userId':_0x4f19a5,'isAttached':_0x165013['isAdd']});}['_handleRootAttributeOperation'](_0x3da527){const _0x489e65=this['_diffRootsAttributes']['get'](_0x3da527['root']['rootName']);null===_0x3da527['newValue']?delete _0x489e65[_0x3da527['key']]:_0x489e65[_0x3da527['key']]=_0x3da527['newValue'];}}function T(_0x4e3b2c){const _0x17137e=F(_0x4e3b2c['rootName'],_0x4e3b2c['isAttached']());for(const _0x57e7fd of _0x4e3b2c['getChildren']()){const _0x22db54=_0x57e7fd['_clone'](!0x0);_0x17137e['_appendChild'](_0x22db54);}return _0x17137e;}function F(_0x38a73b,_0xa8f99c=!0x0){const _0x2f6d5a=new mt();return _0x2f6d5a['rootName']=_0x38a73b,_0x2f6d5a['_isAttached']=_0xa8f99c,_0x2f6d5a['isAttached']=()=>_0x2f6d5a['_isAttached'],_0x2f6d5a;}function B(_0x2a898f,_0x1a7fc4,_0x13fb9e){const _0xadaa76='elementEnd'==_0x2a898f['type']?_0x13fb9e['createPositionAt'](_0x2a898f['item'],'end'):_0x13fb9e['createPositionBefore'](_0x2a898f['item']);return _0x13fb9e['createPositionFromPath'](_0x1a7fc4,_0xadaa76['path'],_0xadaa76['stickiness']);}function J(_0x2e4e78,_0x2c6460,_0x52ec9b){const _0x161737='elementStart'==_0x2e4e78['type']?_0x52ec9b['createPositionAt'](_0x2e4e78['item'],0x0):_0x52ec9b['createPositionAfter'](_0x2e4e78['item']);return _0x52ec9b['createPositionFromPath'](_0x2c6460,_0x161737['path'],_0x161737['stickiness']);}class ns extends _0x57d690{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x484d44,_0x4e2837){super(_0x484d44),this['focusTracker']=new _0xaee184(),this['keystrokes']=new _0x142a9d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4e2837),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'](),_0x267d55({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1319ba=_0x39efa3=>_0x39efa3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1319ba),this['keystrokes']['set']('arrowleft',_0x1319ba),this['keystrokes']['set']('arrowup',_0x1319ba),this['keystrokes']['set']('arrowdown',_0x1319ba);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x53fb6e){this['revisionNameInputView']['fieldView']['element']['value']=_0x53fb6e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2bc68c){const _0x2a548d=new nt(this['locale'],_0x242d1c),_0x1414e5=_0x2a548d['fieldView'];_0x1414e5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x39ca38=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2bc68c&&(_0x39ca38+='\x20('+m(this['locale'],'optional')+')'),(_0x2a548d['label']=_0x39ca38,_0x1414e5['on']('input',()=>{this['revisionNameInputValue']=_0x1414e5['element']['value']['trim']();}),_0x2a548d);}}class u extends _0x1c983f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x50d9d7=this['editor'],_0x15e7b3=_0x50d9d7['plugins']['get']('RevisionTracker');_0x50d9d7['ui']['componentFactory']['add']('revisionHistory',_0x496187=>{const _0x41bf78=_0x23cafe(_0x496187),_0x204491=_0x41bf78['panelView']['children'],_0x2b77c2=new te(_0x496187),_0x2292c0=new _0xa50924(_0x496187),_0x493e15=new _0x5c3b92(_0x496187),_0x3177af=new _0xa50924(_0x496187),_0x2f0894=new _0x5c3b92(_0x496187);return _0x41bf78['bind']('isEnabled')['to'](_0x15e7b3,'isReady',_0x15e7b3,'isEnabled',_0x50d9d7,'isReadOnly',(_0x5f5360,_0x35cd1a,_0x41e963)=>_0x5f5360&&_0x35cd1a&&!_0x41e963),_0x41bf78['buttonView']['set']({'icon':_0x5d34ae['history'],'label':m(_0x496187,'Revision\x20history'),'tooltip':!0x0}),_0x493e15['set']({'label':m(_0x496187,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x493e15['bind']('isEnabled')['to'](_0x15e7b3,'isReady',_0x15e7b3,'isEnabled',_0x50d9d7,'isReadOnly',(_0x5e84f8,_0x28ef36,_0x351a6f)=>_0x5e84f8&&_0x28ef36&&!_0x351a6f),_0x493e15['on']('execute',()=>this['_showDialog']()),_0x2f0894['set']({'label':m(_0x496187,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2f0894['bind']('isEnabled')['to'](_0x15e7b3,'isReady',_0x50d9d7,'isReadOnly',(_0xcefad1,_0x682a3b)=>_0xcefad1&&!_0x682a3b),_0x2f0894['on']('execute',()=>{_0x50d9d7['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x41bf78['isOpen']=!0x1,_0x50d9d7['editing']['view']['focus']();}),_0x2292c0['children']['add'](_0x493e15),_0x3177af['children']['add'](_0x2f0894),_0x2b77c2['role']='menu',_0x2b77c2['items']['addMany']([_0x2292c0,_0x3177af]),_0x204491['add'](_0x2b77c2),_0x41bf78;}),_0x50d9d7['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x36f733=this['editor'],_0x4b53df=_0x36f733['locale'],_0x4c6b01=new _0x3c32f3(_0x4b53df),_0x10f99f=new _0x1d1da8(_0x4b53df);_0x4c6b01['buttonView']['set']({'icon':_0x5d34ae['history'],'label':m(_0x4b53df,'Revision\x20history')});const _0x48fd12=new _0x4840b2(_0x4b53df,_0x4c6b01),_0x13e7e7=new _0x235ae5(_0x4b53df);_0x13e7e7['set']({'label':m(_0x4b53df,'Save\x20current\x20revision')}),_0x13e7e7['delegate']('execute')['to'](_0x4c6b01),_0x13e7e7['on']('execute',()=>{this['_showDialog']();}),_0x48fd12['children']['add'](_0x13e7e7),_0x10f99f['items']['add'](_0x48fd12);const _0x372cba=new _0x4840b2(_0x4b53df,_0x4c6b01),_0x49413b=new _0x235ae5(_0x4b53df);return _0x49413b['set']({'label':m(_0x4b53df,'Open\x20revision\x20history')}),_0x49413b['delegate']('execute')['to'](_0x4c6b01),_0x49413b['on']('execute',()=>{_0x36f733['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x372cba['children']['add'](_0x49413b),_0x10f99f['items']['add'](_0x372cba),_0x4c6b01['panelView']['children']['add'](_0x10f99f),_0x4c6b01;}['_showDialog'](){const _0x8a53f0=this['editor'],_0x288c9e=_0x8a53f0['locale'],_0xae7679=_0x8a53f0['plugins']['get']('Dialog'),_0x2ffb00=_0x8a53f0['plugins']['get']('RevisionTracker');function _0x943e88(_0x11398a){_0x8a53f0['config']['get']('revisionHistory.requireRevisionName')&&''===_0x11398a['revisionName']?_0x11398a['revisionNameInputView']['errorText']=m(_0x288c9e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x8a53f0['plugins']['get'](l)['saveRevision']({'name':_0x11398a['revisionName']}),_0xae7679['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x943e88(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xae7679['show']({'id':'revisionSave','title':m(_0x288c9e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x8a53f0['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xae7679['hide']()},{'label':m(_0x8a53f0['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1c0520){_0x1c0520['bind']('isEnabled')['to'](_0x2ffb00,'isReady',_0x2ffb00,'isEnabled',_0x8a53f0,'isReadOnly',(_0x18e31b,_0x330d68,_0x2b3e3d)=>_0x18e31b&&_0x330d68&&!_0x2b3e3d);},'onExecute':()=>_0x943e88(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4a8cc6=this['editor'],_0x1ac26e=_0x4a8cc6['locale'];this['_saveRevisionFormView']=new ns(_0x1ac26e,_0x4a8cc6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x57d690{['changeId'];['_model'];constructor(_0x158331,_0x19dfd7){super(_0x158331),this['_model']=_0x19dfd7,this['changeId']=_0x19dfd7['id'];const _0xcdb98a=this['bindTemplate'],_0x3f9b4d=m(_0x158331,_0x19dfd7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x19dfd7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x19dfd7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xcdb98a['to']('type',_0x3979da=>'ck-revision-change__'+_0x3979da)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3f9b4d}]},{'text':'\x20'+_0x19dfd7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x59dc1c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5c8b2e){super(),this['id']=_0x5c8b2e['id']||_0x731d10(),this['author']=_0x5c8b2e['author'],this['type']=_0x5c8b2e['type'],this['data']=_0x5c8b2e['data']||{},this['rootName']=_0x5c8b2e['rootName'],this['set']('createdAt',_0x5c8b2e['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3110c0,_0x560519){this['newRevisionId']=_0x3110c0,this['oldRevisionId']=_0x560519,this['changes']=new _0x28b682();}['_setChanges'](_0x58f718){for(const _0x61e007 of _0x58f718)this['changes']['add'](_0x61e007);}}const Y={'c':_0x154874,'a':_0x59b955,'e':_0x86ac4d,'r':_0x3e22f5,'u':_0x264338};class d extends _0x1c983f{['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[_0x5ebf97,_0x2f6501,j];}constructor(_0x4a2824){super(_0x4a2824),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',(_0x4f91f7,_0x2a2155,_0x5697a0)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4bea40=>{for(const _0x5d33bd of this['editor']['editing']['view']['document']['roots'])_0x5697a0?_0x4bea40['removeClass']('ck-editor__editable__overlay',_0x5d33bd):_0x4bea40['addClass']('ck-editor__editable__overlay',_0x5d33bd);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x504c29=>null!==_0x504c29),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3a55b2,_0x55f6d2,_0x2943bc)=>_0x3a55b2&&_0x2943bc?_0x55f6d2['changes']['getIndex'](_0x2943bc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e492b,_0x84c5ce)=>_0x5e492b?_0x84c5ce['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2f6501);}['init'](){const _0x97e4ff=this['editor'],_0x408aa6=new yt(_0x97e4ff,{'direction':'backward'}),_0x46804f=new yt(_0x97e4ff,{'direction':'forward'});(_0x97e4ff['commands']['add']('showPreviousChange',_0x408aa6),_0x97e4ff['commands']['add']('showNextChange',_0x46804f),_0x97e4ff['commands']['add']('restoreRevision',new _t(_0x97e4ff)),this['on']('change:numberOfChanges',()=>{_0x408aa6['refresh'](),_0x46804f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x97e4ff['enableReadOnlyMode']('revision-viewer'),_0x97e4ff['plugins']['has']('WidgetToolbarRepository'))&&_0x97e4ff['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x28b216){await this['loadRevisionData'](_0x28b216);const _0x962636={};for(const _0x2fabf1 in _0x28b216['diffData']){if(_0x28b216['diffData'][_0x2fabf1]['attachChange']&&!_0x28b216['diffData'][_0x2fabf1]['attachChange']['isAttached'])continue;const _0x2a8bff=this['_removeRevisionMarkers'](JSON['parse'](_0x28b216['diffData'][_0x2fabf1]['insertions'])),_0x55e514=this['editor']['editing']['view']['document'],_0x50eceb=new _0x352937(_0x55e514,_0x2a8bff['map'](_0x216b38=>this['_getViewObj'](_0x216b38)));this['editor']['data']['processor']['useFillerType']('marked'),_0x962636[_0x2fabf1]=this['editor']['data']['processor']['toData'](_0x50eceb),this['editor']['data']['processor']['useFillerType']('default');}return _0x962636;}async['getRevisionRootsAttributes'](_0x3c40a9){await this['loadRevisionData'](_0x3c40a9);const _0xbc1d1a={};for(const _0x4c0f8a in _0x3c40a9['diffData'])_0x3c40a9['diffData'][_0x4c0f8a]['attachChange']&&!_0x3c40a9['diffData'][_0x4c0f8a]['attachChange']['isAttached']||(_0xbc1d1a[_0x4c0f8a]=_0x3c40a9['diffData'][_0x4c0f8a]['attributesAfter']||{});return _0xbc1d1a;}['_removeRevisionMarkers'](_0x4b2dd6){return(_0x4b2dd6=_0x4b2dd6['filter'](_0x4b4173=>!_0x4b4173['name']||'revision-start'!==_0x4b4173['name']&&'revision-end'!==_0x4b4173['name']))['forEach'](_0xb022ca=>{'string'!=typeof _0xb022ca&&(_0xb022ca['children']=this['_removeRevisionMarkers'](_0xb022ca['children']),_0xb022ca['attributes']=_0xb022ca['attributes']['filter'](_0x14d31f=>!_0x14d31f[0x0]['startsWith']('data-revision-')));}),_0x4b2dd6;}async['compare'](_0x428222,_0x3dc1d5,_0x4f86cb=!0x1){if(!this['isEnabled'])return;const _0x3dccac=this['diff'],_0x14ed4f=this['repository'],_0x508329='string'==typeof _0x428222?_0x14ed4f['getRevision'](_0x428222):_0x428222,_0x4c0929='string'==typeof _0x3dc1d5?_0x14ed4f['getRevision'](_0x3dc1d5):_0x3dc1d5,_0x2fdacf=_0x508329['id'],_0x4b9b38=_0x4c0929?_0x4c0929['id']:null;if(!_0x4f86cb&&this['diff']&&this['diff']['newRevisionId']===_0x2fdacf&&this['diff']['oldRevisionId']===_0x4b9b38)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2fdacf,_0x4b9b38);const _0x335e8c=this['_getRevisionsRange'](_0x508329,_0x4c0929,!0x0)['map'](_0x5efc4e=>this['loadRevisionData'](_0x5efc4e));return _0x335e8c['push'](new Promise(_0x4e1488=>{setTimeout(_0x4e1488,0x14);})),Promise['all'](_0x335e8c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1f0477=this['_getDiff'](_0x2fdacf,_0x4b9b38);for(const _0x3b7994 of _0x1f0477['changes'])this['_changeIdToChange']['set'](_0x3b7994['id'],_0x3b7994);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3be522=>{for(const _0xf26ab1 of this['editor']['model']['document']['getRootNames']())_0x3be522['detachRoot'](_0xf26ab1);for(const _0x415786 of Object['keys'](_0x1f0477['model'])){const _0x11c725=_0x3be522['addRoot'](_0x415786);for(const _0x326250 of Object['keys'](_0x1f0477['attributes'][_0x415786]))_0x3be522['setAttribute'](_0x326250,_0x1f0477['attributes'][_0x415786][_0x326250],_0x11c725);_0x3be522['insert'](_0x1f0477['model'][_0x415786],_0x11c725,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1f0477['changes'])),this['isReady']=!0x0;})['catch'](_0x4876ff=>{console['error'](_0x4876ff),this['_cleanUp'](),_0x3dccac&&(this['diff']=_0x3dccac),this['isReady']=!0x0;});}['addRevisionData'](_0x2cac98,_0x2776e5){const _0x1a61ee=this['repository']['createRevision'](_0x2cac98);return _0x1a61ee['on']('_update',(_0xce969e,_0x125620,_0x3bf705)=>_0x2776e5(_0x125620,_0x3bf705,_0x1a61ee)),this['repository']['addRevision'](_0x1a61ee),_0x1a61ee;}['loadRevisionData'](_0x2a0770){if(!_0x2a0770||_0x2a0770['diffData'])return Promise['resolve']();{const _0x345157=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x345157,'revisionId':_0x2a0770['id']})['then'](_0x12a629=>{_0x2a0770['_update']({'diffData':_0x12a629['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},_0x15a27d=>{for(const _0x5a21a5 of this['editor']['model']['document']['getRootNames']())_0x15a27d['detachRoot'](_0x5a21a5);});}['_sortAndFilterDiffChanges'](_0x224fcd){const _0x3c5d6d=[],_0x1668b6=new Map();for(const _0x522e84 of this['editor']['model']['document']['getRootNames']()){const _0x25bf3a=this['editor']['editing']['view']['getDomRoot'](_0x522e84);if(!_0x25bf3a)continue;const _0xeca085=_0x25bf3a['getClientRects']()['item'](0x0);_0xeca085&&(_0x3c5d6d['push'](_0x522e84),_0x1668b6['set'](_0x522e84,_0xeca085));}return _0x3c5d6d['sort']((_0x30a4f2,_0x472873)=>{const _0xa73b2b=_0x1668b6['get'](_0x30a4f2),_0x1924c1=_0x1668b6['get'](_0x472873);return _0xa73b2b['y']-_0x1924c1['y']||_0xa73b2b['x']-_0x1924c1['x'];}),(_0x224fcd=_0x224fcd['filter'](_0x56e2f0=>_0x3c5d6d['includes'](_0x56e2f0['rootName'])))['sort']((_0xaa83d5,_0x1e6c9e)=>_0x3c5d6d['indexOf'](_0xaa83d5['rootName'])-_0x3c5d6d['indexOf'](_0x1e6c9e['rootName'])),_0x224fcd;}['_makeTape'](_0x3db9c3){const _0x4065a4=Array['from'](_0x3db9c3['markers'])['filter'](([_0x500ea6,_0x35ccf9])=>_0x500ea6['startsWith']('revision:')&&!_0x35ccf9['isCollapsed']),_0x333ac8=Array['from'](this['editor']['model']['createRangeIn'](_0x3db9c3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4065a4['length'])for(const _0x135bc0 of _0x333ac8){const [_0x4477de,_0x199dca]=_0x4065a4[0x0],[,_0x34d2d9,_0x2ed60d]=_0x4477de['split'](':');if(_0x199dca['end']['isEqual'](_0x135bc0['nextPosition'])&&_0x4065a4['shift'](),(_0x135bc0['previousPosition']['isEqual'](_0x199dca['start'])||_0x135bc0['previousPosition']['isAfter'](_0x199dca['start']))&&('insertion'==_0x34d2d9?_0x135bc0['isAdded']={'userId':_0x2ed60d}:'deletion'==_0x34d2d9&&(_0x135bc0['isRemoved']={'userId':_0x2ed60d})),0x0==_0x4065a4['length'])break;}return _0x333ac8;}['_refreshStartEndIndex'](_0x2a838b){const _0x560d2a=new Map();for(let _0x34e78a=0x0;_0x34e78a<_0x2a838b['length'];_0x34e78a++)'text'===_0x2a838b[_0x34e78a]['type']?(_0x2a838b[_0x34e78a]['item']['startIndex']=_0x34e78a,_0x2a838b[_0x34e78a]['item']['endIndex']=_0x34e78a):('elementStart'===_0x2a838b[_0x34e78a]['type']?_0x2a838b[_0x34e78a]['item']['startIndex']=_0x34e78a:'elementEnd'===_0x2a838b[_0x34e78a]['type']&&(_0x2a838b[_0x34e78a]['item']['endIndex']=_0x34e78a),_0x560d2a['set'](_0x2a838b[_0x34e78a]['id'],_0x34e78a));for(const _0x258b4b of _0x560d2a['values']())'elementStart'===_0x2a838b[_0x258b4b]['type']?_0x2a838b[_0x258b4b]['item']['endIndex']=_0x560d2a['get'](_0x2a838b[_0x258b4b]['pairId']):'elementEnd'===_0x2a838b[_0x258b4b]['type']&&(_0x2a838b[_0x258b4b]['item']['startIndex']=_0x560d2a['get'](_0x2a838b[_0x258b4b]['pairId']));}['_processTape'](_0x52f592){for(let _0xf420d8=0x0;_0xf420d8<_0x52f592['length'];_0xf420d8++){if('elementStart'===_0x52f592[_0xf420d8]['type'])_0x52f592[_0xf420d8]['item']['startIndex']=_0xf420d8;else{if('elementEnd'===_0x52f592[_0xf420d8]['type']){_0x52f592[_0xf420d8]['item']['endIndex']=_0xf420d8;const _0x357d1e=_0x52f592[_0xf420d8]['item']['startIndex'];_0x52f592[_0x357d1e]['pairId']=_0x52f592[_0xf420d8]['id'],_0x52f592[_0xf420d8]['pairId']=_0x52f592[_0x357d1e]['id'];}else _0x52f592[_0xf420d8]['item']['startIndex']=_0xf420d8,_0x52f592[_0xf420d8]['item']['endIndex']=_0xf420d8,_0x52f592[_0xf420d8]['pairId']=null;}_0x52f592[_0xf420d8]['markersStart']||(_0x52f592[_0xf420d8]['markersStart']=[],_0x52f592[_0xf420d8]['markersEnd']=[]);}}['_markInsertions'](_0x58b874,_0x2c99e6){const _0x2aac40=_0x58b874['filter'](_0x2b5225=>!_0x2b5225['isAdded']);for(let _0x514ff5=0x0;_0x514ff5<_0x2c99e6['length'];_0x514ff5++)_0x2c99e6[_0x514ff5]['isAdded']&&(_0x2aac40[_0x514ff5]['isAdded']=_0x2c99e6[_0x514ff5]['isAdded']);}['_makeModelFromViewString'](_0x165afb){const _0x54284a=JSON['parse'](_0x165afb),_0x527049=this['editor']['editing']['view']['document'],_0x4cd6bc=new _0x352937(_0x527049,_0x54284a['map'](_0x5209f8=>this['_getViewObj'](_0x5209f8)));return this['editor']['data']['toModel'](_0x4cd6bc);}['_getViewObj'](_0x7a5204){const _0x1b11ed=this['editor']['editing']['view']['document'];if('string'==typeof _0x7a5204)return new _0x1ade11(_0x1b11ed,_0x7a5204);{const _0x5de310=_0x7a5204['children']['map'](_0x7f34db=>this['_getViewObj'](_0x7f34db));return new(Y[_0x7a5204['type']]||_0x29faa1)(_0x1b11ed,_0x7a5204['name'],_0x7a5204['attributes'],_0x5de310);}}['_getDiff'](_0x363059,_0x1f5b78=null){const _0x2e9e62=this['repository']['getRevision'](_0x363059),_0x5dc53c=_0x1f5b78?this['repository']['getRevision'](_0x1f5b78):null,_0x340852=this['_getRevisionsRange'](_0x2e9e62,_0x5dc53c),_0x19523f=_0x340852[_0x340852['length']-0x1],_0x3a4522=new Map(),_0xd9c52c={'model':{},'attributes':{},'changes':[]},_0x44324e=new Set(),_0x390a68=new Map();for(let _0x4f2f2c=_0x340852['length']-0x1;_0x4f2f2c>=0x0;_0x4f2f2c--){const _0x2e5488=_0x340852[_0x4f2f2c];for(const _0x4d1488 of Object['keys'](_0x2e5488['diffData']))if(_0x2e5488['diffData'][_0x4d1488]['attachChange']){const _0xf129b0=_0x2e5488['diffData'][_0x4d1488]['attachChange'];_0xf129b0['isAttached']?(_0x44324e['add'](_0x4d1488),_0x390a68['has'](_0x4d1488)&&_0x390a68['get'](_0x4d1488)['userId']==_0xf129b0['userId']?_0x390a68['delete'](_0x4d1488):_0x390a68['set'](_0x4d1488,_0xf129b0)):_0x390a68['has'](_0x4d1488)?(_0x44324e['delete'](_0x4d1488),_0x390a68['delete'](_0x4d1488)):(_0x44324e['add'](_0x4d1488),_0x390a68['set'](_0x4d1488,_0xf129b0));}else _0x44324e['add'](_0x4d1488);}for(const _0x5aa228 of _0x44324e){const _0x19f3c8=_0x390a68['has'](_0x5aa228)&&!_0x390a68['get'](_0x5aa228)['isAttached'];let _0x45c4d9=_0x19f3c8?_0x340852['length']-0x1:0x0;const _0x1395b4=_0x19f3c8?-0x1:0x1;for(;_0x340852[_0x45c4d9];){const _0x4a3219=_0x340852[_0x45c4d9];if(_0x4a3219['diffData'][_0x5aa228]){const _0x3ccdd7=_0x19f3c8?_0x4a3219['diffData'][_0x5aa228]['attributesBefore']:_0x4a3219['diffData'][_0x5aa228]['attributesAfter'];_0xd9c52c['attributes'][_0x5aa228]=_0x3ccdd7?_0x3eb603(_0x3ccdd7):{};break;}_0x45c4d9+=_0x1395b4;}}for(const _0x2db246 of _0x340852){_0x2db246['model']={};for(const _0x151dd0 of _0x2db246['authors'])_0x3a4522['set'](_0x151dd0['id'],_0x151dd0);for(const _0x19551c of _0x44324e){const _0x5f09b8=_0x2db246['diffData'][_0x19551c]?_0x2db246['diffData'][_0x19551c]['insertions']:'[]',_0x41e61c=_0x2db246['diffData'][_0x19551c]?_0x2db246['diffData'][_0x19551c]['deletions']:'[]';_0x2db246['model'][_0x19551c]={'insertions':this['_makeModelFromViewString'](_0x5f09b8),'deletions':this['_makeModelFromViewString'](_0x41e61c)};}}for(const _0xf42045 of _0x44324e){let _0x49d78b=null,_0x6c8f37=0x0;const _0x536a20=new Map(Array['from'](_0x2e9e62['model'][_0xf42045]['insertions']['markers'])['filter'](([_0x279e3c])=>!_0x279e3c['startsWith']('revision:')));let _0x3bb81d=0x0;for(const _0x2b1646 of _0x340852){const _0x4a8f8b=this['_makeTape'](_0x2b1646['model'][_0xf42045]['insertions']);_0x2b1646==_0x2e9e62?(_0x49d78b=_0x4a8f8b,_0x6c8f37=_0x49d78b['length'],_0x49d78b['forEach'](_0x45dd69=>{_0x45dd69['id']=_0x3bb81d++;}),this['_processTape'](_0x49d78b)):this['_markInsertions'](_0x49d78b,_0x4a8f8b);const _0x2f61d6=_0x49d78b['filter'](_0x4433e0=>!_0x4433e0['isAdded'])['map'](_0x47afc7=>_0x47afc7['id']);let _0x2e6270=0x0;const _0x33bc00=this['_makeTape'](_0x2b1646['model'][_0xf42045]['deletions']);_0x33bc00['forEach'](_0x1439d1=>{_0x1439d1['isRemoved']?_0x1439d1['id']=_0x6c8f37++:_0x1439d1['id']=_0x2f61d6[_0x2e6270++];}),this['_processTape'](_0x33bc00),this['_setDistance'](_0x49d78b,'isAdded'),this['_setDistance'](_0x33bc00,'isRemoved'),_0x2b1646==_0x2e9e62&&this['_markMarkers'](_0x49d78b,_0x536a20),_0x49d78b=this['_joinTapes'](_0x49d78b,_0x33bc00),this['_refreshStartEndIndex'](_0x49d78b),this['_setDistance'](_0x49d78b,'isRemoved');}_0x49d78b=_0x49d78b['filter'](_0x481851=>!(_0x481851['isAdded']&&_0x481851['isRemoved']));const _0x2169fb=new Map(_0x19523f['model'][_0xf42045]['deletions']['markers']),_0x12774b=new Set(_0x536a20['keys']());for(const _0x2dcd21 of _0x2169fb['keys']())_0x12774b['delete'](_0x2dcd21);this['_markSuggestions'](_0x49d78b,_0x12774b),this['_fixObsoleteTags'](_0x49d78b),_0x49d78b=this['_removeMissingPairs'](_0x49d78b),_0x49d78b=this['_markMismatchedRemovedTags'](_0x49d78b),_0x49d78b=this['_removeUnsupportedChanges'](_0x49d78b);const {root:_0x31204a,changes:_0x64d19f}=this['_makeModelFromTape'](_0x49d78b,_0x3a4522,_0xf42045);_0xd9c52c['model'][_0xf42045]=_0x31204a;const _0x5e83be=_0x390a68['get'](_0xf42045);if(_0x5e83be){const _0xbdaa8c=_0x3a4522['get'](_0x5e83be['userId']),_0x4476d1=new r({'author':_0xbdaa8c,'type':_0x5e83be['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xf42045});_0x64d19f['unshift'](_0x4476d1),_0xd9c52c['attributes'][_0xf42045]['revisionHistoryAttachChange']=_0x4476d1['id'];}_0xd9c52c['changes']=_0xd9c52c['changes']['concat'](_0x64d19f);}return _0xd9c52c;}['_markMarkers'](_0x7d6805,_0x5f8be0){for(let _0x5c5fa1=0x0;_0x5c5fa1<_0x7d6805['length'];_0x5c5fa1++)for(const [_0x40c9ff,_0x240642]of _0x5f8be0)_0x240642['start']['isEqual'](_0x7d6805[_0x5c5fa1]['previousPosition'])&&_0x7d6805[_0x5c5fa1]['markersStart']['push'](_0x40c9ff),_0x240642['end']['isEqual'](_0x7d6805[_0x5c5fa1]['nextPosition'])&&_0x7d6805[_0x5c5fa1]['markersEnd']['push'](_0x40c9ff);}['_joinTapes'](_0x4c6508,_0x750024){let _0x3ab472=[],_0x566181=0x0,_0x3b50c4=0x0;for(;_0x566181<_0x4c6508['length']||_0x3b50c4<_0x750024['length'];){const _0x398915=_0x4c6508[_0x566181]||{},_0x654ac8=_0x750024[_0x3b50c4]||{};if(_0x398915['id']==_0x654ac8['id'])_0x566181++,_0x3b50c4++,_0x3ab472['push'](_0x398915);else{if(_0x654ac8['isRemoved']&&_0x398915['isAdded']){const {commonTape:_0x1cb2b4,iEnd:_0x7ffbb3,jEnd:_0x2223ce}=this['_threeWayMerge'](_0x4c6508,_0x566181,_0x750024,_0x3b50c4);_0x3ab472=_0x3ab472['concat'](_0x1cb2b4),_0x566181=_0x7ffbb3,_0x3b50c4=_0x2223ce;}else _0x654ac8['isRemoved']?(_0x3b50c4++,_0x3ab472['push'](_0x654ac8)):(_0x566181++,_0x3ab472['push'](_0x398915));}}return _0x3ab472;}['_markSuggestions'](_0x51faed,_0x5eacda){const _0x3808dd=[];for(let _0x54d276=0x0;_0x54d276<_0x51faed['length'];_0x54d276++){for(let _0x31cd8d=0x0;_0x31cd8d<_0x51faed[_0x54d276]['markersStart']['length'];_0x31cd8d++){const _0x455548=_0x51faed[_0x54d276]['markersStart'][_0x31cd8d];if(!_0x5eacda['has'](_0x455548))continue;const {group:_0x4c8fd5,type:_0x3869a1,authorId:_0x5cc689}=_0x3f6c10(_0x455548);'revision-suggestion'!=_0x4c8fd5||'insertion'!=_0x3869a1&&'deletion'!=_0x3869a1||(_0x3808dd['unshift']({'type':_0x3869a1,'name':_0x455548,'userId':_0x5cc689}),_0x51faed[_0x54d276]['markersStart']['splice'](_0x31cd8d,0x1),_0x31cd8d--);}_0x736a53(_0x51faed[_0x54d276]);for(let _0x1eb751=0x0;_0x1eb751<_0x51faed[_0x54d276]['markersEnd']['length'];_0x1eb751++){const _0x2c5ec3=_0x51faed[_0x54d276]['markersEnd'][_0x1eb751];if(!_0x5eacda['has'](_0x2c5ec3))continue;const {group:_0x5bdd24,type:_0x5812da}=_0x3f6c10(_0x2c5ec3);if('revision-suggestion'!=_0x5bdd24||'insertion'!=_0x5812da&&'deletion'!=_0x5812da)continue;_0x51faed[_0x54d276]['markersEnd']['splice'](_0x1eb751,0x1),_0x1eb751--;const _0x50012a=_0x3808dd['findIndex'](_0x54f2e8=>_0x54f2e8['name']==_0x2c5ec3);_0x50012a>-0x1&&_0x3808dd['splice'](_0x50012a,0x1);}}function _0x3f6c10(_0x20c340){const _0x2d434e=_0x20c340['split'](':');return{'group':_0x2d434e[0x0],'type':_0x2d434e[0x1],'subType':_0x2d434e['length']>=0x5?_0x2d434e[0x2]:null,'id':_0x2d434e['length']<0x5?_0x2d434e[0x2]:_0x2d434e[0x3],'authorId':_0x2d434e['length']<0x5?_0x2d434e[0x3]:_0x2d434e[0x4],'markerCount':0x6==_0x2d434e['length']?_0x2d434e[0x5]:null};}function _0x736a53(_0xe1612e){for(let _0x1c48c2=0x0;_0x1c48c2<_0x3808dd['length'];_0x1c48c2++){if(_0xe1612e['isAdded']&&'insertion'==_0x3808dd[_0x1c48c2]['type'])return _0xe1612e['isAddSuggestion']=_0x3808dd[_0x1c48c2],void delete _0xe1612e['isAdded'];if(!_0xe1612e['isAdded']&&!_0xe1612e['isRemoved']&&'deletion'==_0x3808dd[_0x1c48c2]['type'])return void(_0xe1612e['isRemoveSuggestion']=_0x3808dd[_0x1c48c2]);}}}['_setDistance'](_0x5aeab6,_0x11c64f){let _0x4b8735=0x0,_0x3d98fa=!0x1;const _0x180d3f=new Map();for(const _0x3c94bf of _0x5aeab6)_0x3c94bf[_0x11c64f]?_0x3d98fa&&(_0x4b8735++,_0x3d98fa=!0x1):(_0x4b8735++,_0x3d98fa=!0x0),_0x180d3f['set'](_0x3c94bf['id'],_0x4b8735);for(let _0x2fc61d=0x0;_0x2fc61d<_0x5aeab6['length'];_0x2fc61d++){if('isRemoved'==_0x11c64f&&_0x5aeab6[_0x2fc61d]['isAdded']||'isAdded'==_0x11c64f&&_0x5aeab6[_0x2fc61d]['isRemoved'])continue;if('text'==_0x5aeab6[_0x2fc61d]['type']){_0x5aeab6[_0x2fc61d]['distance']=0x0;continue;}const _0x25f547=_0x180d3f['get'](_0x5aeab6[_0x2fc61d]['pairId']),_0x1edb2a=_0x180d3f['get'](_0x5aeab6[_0x2fc61d]['id']);_0x5aeab6[_0x2fc61d]['distance']=_0x25f547-_0x1edb2a;}}['_getRevisionsRange'](_0xd9d287,_0x1f5c06,_0x1000d7=!0x1){const _0x12f81e=[];let _0x1cfb9d=this['repository']['getIndex'](_0xd9d287),_0x343b61=this['repository']['getIndex'](_0x1f5c06);for(-0x1==_0x343b61&&(_0x343b61=this['repository']['_revisions']['length'],_0x1000d7=!0x1);_0x1cfb9d<_0x343b61;)_0x12f81e['push'](this['repository']['getRevision'](_0x1cfb9d)),_0x1cfb9d++;return _0x1000d7&&_0x12f81e['push'](this['repository']['getRevision'](_0x1cfb9d)),_0x12f81e;}['_threeWayMerge'](_0x336bf4,_0x3471ea,_0x295993,_0x475c79){const _0x1e8dd7=this['editor']['model']['schema'];let _0x5eef2b=_0x3471ea;for(;_0x336bf4[_0x5eef2b]&&_0x336bf4[_0x5eef2b]['isAdded'];)_0x5eef2b++;let _0x12b809=_0x475c79;for(;_0x295993[_0x12b809]&&_0x295993[_0x12b809]['isRemoved'];)_0x12b809++;_0x1f1aea(_0x336bf4,_0x3471ea,_0x5eef2b),_0x1f1aea(_0x295993,_0x475c79,_0x12b809);const _0x32d183=_0x295993['slice'](_0x475c79,_0x12b809)['concat'](_0x336bf4['slice'](_0x3471ea,_0x5eef2b));return _0x32d183['sort']((_0xd36540,_0x47ba6e)=>_0xd36540['side']!=_0x47ba6e['side']?_0xd36540['side']-_0x47ba6e['side']:_0xd36540['level']!=_0x47ba6e['level']?_0xd36540['level']-_0x47ba6e['level']:_0xd36540['distance']!=_0x47ba6e['distance']?_0x47ba6e['distance']-_0xd36540['distance']:!!_0xd36540['isAdded']!=!!_0x47ba6e['isAdded']?-0x1==_0xd36540['side']||0x0==_0xd36540['side']?_0xd36540['isAdded']?-0x1:0x1:_0xd36540['isAdded']?0x1:-0x1:_0xd36540['index']-_0x47ba6e['index']),{'commonTape':_0x32d183,'iEnd':_0x5eef2b,'jEnd':_0x12b809};function _0x1f1aea(_0x2ea9c1,_0x521e0b,_0x31f456){let _0x1fb97e=-0x1,_0x1f24d7=Number['POSITIVE_INFINITY'],_0x521809=!0x0;for(let _0x116806=_0x521e0b;_0x116806<_0x31f456;_0x116806++)if(_0x1e8dd7['isInline'](_0x2ea9c1[_0x116806]['item'])||(_0x521809=!0x1),_0x2ea9c1[_0x116806]['item']['startIndex']<_0x521e0b&&(_0x1fb97e=_0x116806),_0x2ea9c1[_0x116806]['item']['endIndex']>=_0x31f456){_0x1f24d7=_0x116806;break;}_0x521809&&(_0x1fb97e=_0x31f456-0x1);for(let _0x120065=_0x521e0b;_0x120065<_0x31f456;_0x120065++)_0x2ea9c1[_0x120065]['side']=_0x120065<=_0x1fb97e?-0x1:_0x120065<_0x1f24d7?0x0:0x1,_0x2ea9c1[_0x120065]['index']=_0x120065;let _0x43927d=0x0;for(let _0x156737=_0x521e0b;_0x156737<=_0x1fb97e;_0x156737++)0x0==_0x2ea9c1[_0x156737]['distance']?_0x2ea9c1[_0x156737]['level']=_0x43927d:(_0x43927d++,_0x2ea9c1[_0x156737]['level']=_0x43927d,_0x43927d++);for(let _0x4b24e1=_0x521e0b;_0x4b24e1<_0x31f456;_0x4b24e1++)0x0==_0x2ea9c1[_0x4b24e1]['side']&&(_0x2ea9c1[_0x4b24e1]['level']=_0x43927d);_0x43927d=0x0;for(let _0x4b3af4=_0x31f456-0x1;_0x4b3af4>=_0x1f24d7;_0x4b3af4--)0x0==_0x2ea9c1[_0x4b3af4]['distance']?_0x2ea9c1[_0x4b3af4]['level']=_0x43927d:(_0x43927d--,_0x2ea9c1[_0x4b3af4]['level']=_0x43927d,_0x43927d--);}}['_fixObsoleteTags'](_0x23199b){const _0x4d36ed=new Map(),_0x511dd7=this['editor']['model']['schema'];for(let _0x464af4=0x1;_0x464af4<_0x23199b['length'];_0x464af4++){let _0x21a6da,_0x5987b7,_0x583286;const _0x1b81a5=_0x23199b[_0x464af4],_0x4060c8=_0x23199b[_0x464af4-0x1];if('text'==_0x1b81a5['type'])continue;if(_0x1b81a5['type']!=_0x4060c8['type'])continue;if(!_0x511dd7['isBlock'](_0x4060c8['item'])||_0x511dd7['isLimit'](_0x4060c8['item']))continue;if(!_0x511dd7['isBlock'](_0x1b81a5['item'])||_0x511dd7['isLimit'](_0x1b81a5['item']))continue;if((_0x23199b[_0x464af4]['isAdded']||_0x23199b[_0x464af4]['isAddSuggestion'])&&_0x23199b[_0x464af4-0x1]['isRemoved'])_0x21a6da=_0x23199b[_0x464af4],_0x5987b7=_0x23199b[_0x464af4-0x1],_0x583286=_0x464af4-0x1;else{if(!_0x23199b[_0x464af4]['isRemoved']||!_0x23199b[_0x464af4-0x1]['isAdded']&&!_0x23199b[_0x464af4-0x1]['isAddSuggestion'])continue;_0x21a6da=_0x23199b[_0x464af4-0x1],_0x5987b7=_0x23199b[_0x464af4],_0x583286=_0x464af4;}const _0xd40da9=_0x21a6da['level']==_0x5987b7['level'],_0x36809f=Math['abs'](_0x21a6da['level'])<Math['abs'](_0x5987b7['level'])&&0x0==_0x5987b7['distance'];(_0xd40da9||_0x36809f)&&(_0x4d36ed['set'](_0x5987b7['id'],_0x21a6da['id']),_0x23199b['splice'](_0x583286,0x1),_0x464af4--,_0x21a6da['isAdded']=!0x1);}for(let _0xa86633=0x0;_0xa86633<_0x23199b['length'];_0xa86633++)_0x4d36ed['has'](_0x23199b[_0xa86633]['pairId'])&&(_0x23199b[_0xa86633]['pairId']=_0x4d36ed['get'](_0x23199b[_0xa86633]['pairId']));}['_removeMissingPairs'](_0x53044d){const _0x560341=new Set(_0x53044d['map'](_0xa0ca9d=>_0xa0ca9d['id']));for(let _0x12b0f2=0x0;_0x12b0f2<_0x53044d['length'];_0x12b0f2++)_0x560341['has'](_0x53044d[_0x12b0f2]['pairId'])||0x0==_0x53044d[_0x12b0f2]['distance']||(_0x53044d[_0x12b0f2]['isIncorrect']=!0x0);return _0x53044d['filter'](_0x2092eb=>!_0x2092eb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2469ba){const _0x3f6025=new Set();for(let _0xad1b51=0x0;_0xad1b51<_0x2469ba['length'];_0xad1b51++){if(_0x3f6025['has'](_0x2469ba[_0xad1b51]['id'])&&_0x2469ba[_0xad1b51]['isRemoved']&&(_0x2469ba[_0xad1b51]['isIncorrect']=!0x0),_0x2469ba[_0xad1b51]['isIncorrect'])continue;if(0x0==_0x2469ba[_0xad1b51]['distance'])continue;if('elementStart'!=_0x2469ba[_0xad1b51]['type'])continue;if(null==_0x2469ba[_0xad1b51]['pairId'])continue;let _0x3d6a64=_0xad1b51+0x1,_0x251611=0x0;for(;_0x2469ba[_0x3d6a64]['id']!=_0x2469ba[_0xad1b51]['pairId'];)'elementStart'==_0x2469ba[_0x3d6a64]['type']?_0x251611++:'elementEnd'==_0x2469ba[_0x3d6a64]['type']&&_0x251611--,_0x3d6a64++;if(0x0!=_0x251611){if(_0x2469ba[_0xad1b51]['isRemoved'])_0x2469ba[_0xad1b51]['isIncorrect']=!0x0;else{for(;_0x3d6a64!=_0xad1b51;)_0x2469ba[_0x3d6a64]['isRemoved']&&0x0!=_0x2469ba[_0x3d6a64]['distance']&&(_0x2469ba[_0x3d6a64]['isIncorrect']=!0x0,_0x3f6025['add'](_0x2469ba[_0x3d6a64]['pairId'])),_0x3d6a64--;}}}return _0x2469ba['filter'](_0x53267b=>!_0x53267b['isIncorrect']);}['_removeUnsupportedChanges'](_0x541990){const _0x4e41b8=this['editor']['model']['schema'];for(let _0x446d4d=0x0;_0x446d4d<_0x541990['length'];_0x446d4d++){if(!(_0x541990[_0x446d4d]['isAdded']||_0x541990[_0x446d4d]['isAddSuggestion']||_0x541990[_0x446d4d]['isRemoved']||_0x541990[_0x446d4d]['isRemoveSuggestion']))continue;if(0x0==_0x541990[_0x446d4d]['distance'])continue;const _0x25cf27=_0x541990[_0x446d4d]['item'];_0x4e41b8['isBlock'](_0x25cf27)||_0x4e41b8['isLimit'](_0x25cf27)||(_0x541990[_0x446d4d]['isAdded']&&delete _0x541990[_0x446d4d]['isAdded'],_0x541990[_0x446d4d]['isAddSuggestion']&&delete _0x541990[_0x446d4d]['isAddSuggestion'],_0x541990[_0x446d4d]['isRemoveSuggestion']&&delete _0x541990[_0x446d4d]['isRemoveSuggestion'],_0x541990[_0x446d4d]['isRemoved']&&(_0x541990[_0x446d4d]['isIncorrect']=!0x0));}return _0x541990['filter'](_0x260051=>!_0x260051['isIncorrect']);}['_makeModelFromTape'](_0x12db8f,_0x1128c3,_0x20c3fb){const _0x3c45b9=new mt(),_0xeee354=[],_0x1d1357=new Map(),_0x43a769=this['editor']['model'],_0x40060f=_0x43a769['schema'],_0x4dd96a=[_0x3c45b9],_0x389bc9={},_0x30e9fa={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x26bcbf=null;const _0x20f0e1=[0x0];for(let _0x470196=0x0;_0x470196<_0x12db8f['length'];_0x470196++)if('elementStart'===_0x12db8f[_0x470196]['type']){_0x12db8f[_0x470196]['previousPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1);const _0x411516=new ft(_0x12db8f[_0x470196]['item']['name'],_0x12db8f[_0x470196]['item']['getAttributes']());_0x4dd96a[0x0]['_appendChild'](_0x411516),_0x20f0e1['push'](0x0),_0x4dd96a['unshift'](_0x411516),_0x12db8f[_0x470196]['nextPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1);}else'elementEnd'===_0x12db8f[_0x470196]['type']?(_0x4dd96a['shift'](),_0x12db8f[_0x470196]['previousPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1),_0x20f0e1['pop'](),_0x20f0e1[_0x20f0e1['length']-0x1]++,_0x12db8f[_0x470196]['nextPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1)):(_0x12db8f[_0x470196]['previousPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1),_0x26bcbf?_0x26bcbf['_data']+=_0x12db8f[_0x470196]['item']['data']:_0x26bcbf=new wt(_0x12db8f[_0x470196]['item']['data'],_0x12db8f[_0x470196]['item']['getAttributes']()),_0x12db8f[_0x470196+0x1]&&'text'===_0x12db8f[_0x470196+0x1]['type']&&_0x4eb88e(_0x26bcbf,_0x12db8f[_0x470196+0x1]['item'])||(_0x4dd96a[0x0]['_appendChild'](_0x26bcbf),_0x26bcbf=null),_0x20f0e1[_0x20f0e1['length']-0x1]+=_0x12db8f[_0x470196]['item']['offsetSize'],_0x12db8f[_0x470196]['nextPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1));for(let _0x1d1115=0x0;_0x1d1115<_0x12db8f['length'];_0x1d1115++){const _0x4a9a6f=_0x12db8f[_0x1d1115]['previousPosition'],_0x49934f=_0x12db8f[_0x1d1115]['nextPosition'];for(const _0x2eefd7 of _0x12db8f[_0x1d1115]['markersStart'])_0x1d1357['set'](_0x2eefd7,{'start':_0x4a9a6f,'end':null});_0x4a837a('isRemoveSuggestion',_0x1d1115,_0x4a9a6f,_0x49934f),_0x4a837a('isAddSuggestion',_0x1d1115,_0x4a9a6f,_0x49934f),_0x4a837a('isRemoved',_0x1d1115,_0x4a9a6f,_0x49934f),_0x4a837a('isAdded',_0x1d1115,_0x4a9a6f,_0x49934f);for(const _0x50aacb of _0x12db8f[_0x1d1115]['markersEnd']){_0x1d1357['get'](_0x50aacb)['end']=_0x49934f;}}for(const [_0x4d6a31,_0x5cc0c5]of _0x1d1357){const _0x41a434=this['editor']['model']['createRange'](_0x5cc0c5['start'],_0x5cc0c5['end']);_0x3c45b9['markers']['set'](_0x4d6a31,_0x41a434);}return _0xeee354['sort']((_0x539f71,_0x4b96de)=>{const _0x4dbd6e=_0x3c45b9['markers']['get']('revision:'+_0x539f71['id']),_0x50ca17=_0x3c45b9['markers']['get']('revision:'+_0x4b96de['id']);return _0x4dbd6e['start']['isBefore'](_0x50ca17['start'])?-0x1:_0x4dbd6e['start']['isAfter'](_0x50ca17['start'])?0x1:_0x4dbd6e['end']['isBefore'](_0x50ca17['end'])?-0x1:_0x4dbd6e['end']['isAfter'](_0x50ca17['end'])?0x1:'add'===_0x539f71['type']?-0x1:0x1;}),{'root':_0x3c45b9,'changes':_0xeee354};function _0x4a837a(_0x578d94,_0x42bc1a,_0x553b98,_0x38a0a2){const _0x396037=!!_0x12db8f[_0x42bc1a][_0x578d94],_0x4c3298=_0x396037?_0x12db8f[_0x42bc1a][_0x578d94]['userId']:null,_0x5cb066=_0x42bc1a===_0x12db8f['length']-0x1,_0x5ee77f=_0x30e9fa[_0x578d94][0x0],_0x1a1d6c=_0x40060f['isObject'](_0x12db8f[_0x42bc1a]['item']);!_0x389bc9[_0x578d94]&&_0x396037?_0x389bc9[_0x578d94]={'start':_0x553b98,'tapeItem':_0x12db8f[_0x42bc1a],'userId':_0x4c3298,'type':_0x578d94}:_0x389bc9[_0x578d94]&&!_0x396037?(_0x389bc9[_0x578d94]['end']=_0x553b98,_0x19e9b1(_0x389bc9[_0x578d94]),_0x389bc9[_0x578d94]=null):_0x389bc9[_0x578d94]&&_0x396037&&_0x389bc9[_0x578d94]['userId']!==_0x4c3298&&(_0x389bc9[_0x578d94]['end']=_0x553b98,_0x5ee77f&&_0x5ee77f['userId']===_0x389bc9[_0x578d94]['userId']||_0x19e9b1(_0x389bc9[_0x578d94]),_0x389bc9[_0x578d94]={'start':_0x553b98,'tapeItem':_0x12db8f[_0x42bc1a],'userId':_0x4c3298,'type':_0x578d94}),_0x389bc9[_0x578d94]&&_0x1a1d6c&&('elementStart'!==_0x12db8f[_0x42bc1a]['type']||_0x5ee77f&&_0x5ee77f['userId']===_0x4c3298||_0x30e9fa[_0x578d94]['unshift']({'userId':_0x4c3298,'object':_0x12db8f[_0x42bc1a]['item'],'change':_0x389bc9[_0x578d94]}),'elementEnd'===_0x12db8f[_0x42bc1a]['type']&&_0x5ee77f&&_0x5ee77f['object']===_0x12db8f[_0x42bc1a]['item']&&(_0x30e9fa[_0x578d94]['shift'](),_0x389bc9[_0x578d94]=_0x5ee77f['change'])),_0x389bc9[_0x578d94]&&_0x5cb066&&(_0x389bc9[_0x578d94]['end']=_0x38a0a2,_0x19e9b1(_0x389bc9[_0x578d94]),_0x389bc9[_0x578d94]=null);}function _0x19e9b1({start:_0x447296,end:_0x1533d7,tapeItem:_0x5a96b6,userId:_0x6bf229,type:_0x1cce09}){const _0xd0f869=_0x5a96b6['item'],_0x3efa1c=_0x43a769['schema']['isBlock'](_0xd0f869)&&!_0x43a769['schema']['isLimit'](_0xd0f869),_0x491708=_0x447296['nodeAfter']==_0x1533d7['parent']&&_0x1533d7['isAtStart'];if(_0x3efa1c&&_0x491708)return;const _0x39aea4=_0x43a769['createRange'](_0x447296,_0x1533d7),_0x42b8b7=_0x1128c3['get'](_0x6bf229),_0x1690c6=new r({'author':_0x42b8b7,'type':'isAdded'==_0x1cce09||'isAddSuggestion'==_0x1cce09?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1cce09||'isRemoveSuggestion'==_0x1cce09},'createdAt':new Date(),'rootName':_0x20c3fb});_0xeee354['push'](_0x1690c6),_0x3c45b9['markers']['set']('revision:'+_0x1690c6['id'],_0x39aea4);}function _0x4eb88e(_0x1f6e6c,_0x453a9b){const _0x28409a=_0x1f6e6c['getAttributes'](),_0x441f79=_0x453a9b['getAttributes']();for(const _0x3c5dfa of _0x28409a){if(_0x3c5dfa[0x1]!==_0x453a9b['getAttribute'](_0x3c5dfa[0x0]))return!0x1;_0x441f79['next']();}return _0x441f79['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x58c726=>{const _0x3dcede=_0x58c726['markerName']['split'](':')[0x1],_0x21cd09=this['_getChangeFromId'](_0x3dcede);if(!_0x21cd09)return null;const _0x31114c='add'==_0x21cd09['type']?'insertion':'deletion',_0x1f62d2=['ck-suggestion-marker','ck-suggestion-marker-'+_0x31114c];return _0x21cd09['data']['isSuggestion']&&_0x1f62d2['push']('ck-suggestion-marker-'+_0x31114c+'-new'),this['activeChange']==_0x21cd09&&_0x1f62d2['push']('ck-suggestion-marker--active'),{'classes':_0x1f62d2,'attributes':{'data-change-id':_0x3dcede}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2619c5=>{_0x2619c5['on']('element:pre',(_0xc45ac7,_0xcc324e,_0x3ca129)=>{const _0x7b8dda=_0xcc324e['viewItem']['getChild'](0x0);if(!_0x7b8dda||!_0x7b8dda['is']('element','code'))return;if(!_0x3ca129['consumable']['consume'](_0x7b8dda,{'attributes':['vid_start','vid_end']}))return;const _0x2266c1=_0xcc324e['modelRange']['start']['nodeAfter'];_0x3ca129['writer']['setAttribute']('vid_start',_0x7b8dda['getAttribute']('vid_start'),_0x2266c1),_0x3ca129['writer']['setAttribute']('vid_end',_0x7b8dda['getAttribute']('vid_end'),_0x2266c1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x546708=>{_0x546708['on']('element',(_0x791971,_0x16f2e1,_0x35e125)=>{if(!_0x35e125['consumable']['consume'](_0x16f2e1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x16f2e1['modelRange']['isCollapsed'])return;const _0x1bba8a=_0x16f2e1['modelRange']['start']['nodeAfter'];_0x1bba8a['hasAttribute']('vid_start')||_0x1bba8a['hasAttribute']('vid')||(_0x35e125['writer']['setAttribute']('vid_start',_0x16f2e1['viewItem']['getAttribute']('vid_start'),_0x1bba8a),_0x35e125['writer']['setAttribute']('vid_end',_0x16f2e1['viewItem']['getAttribute']('vid_end'),_0x1bba8a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3792e6=>_0x3792e6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x492366,[,_0x570eea])=>{['vid_start','vid_end','vid']['includes'](_0x570eea)&&(_0x492366['return']=!0x0,_0x492366['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x48555b=>{_0x48555b['on']('attribute:vid',(_0x1050f7,_0x1f91d4,_0xfd71d)=>{if('\x20'!=_0x1f91d4['item']['data']||_0x1f91d4['item']['parent']['maxOffset']>0x1)return;if(!_0xfd71d['consumable']['consume'](_0x1f91d4['item'],_0x1050f7['name']))return;const _0x14f34b=_0xfd71d['writer'],_0x770b0d=_0xfd71d['mapper']['toViewRange'](_0x1f91d4['range']);_0x14f34b['wrap'](_0x770b0d,_0x14f34b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x14c018){const _0x2259a4=_0x14c018['plugins']['get']('RevisionViewer');return(_0x1c56e3,_0x3897ce,_0xd2acd4)=>{const _0x13459f=_0x3897ce['markerName']['split'](':')[0x1],_0x22ffa5=_0x2259a4['_getChangeFromId'](_0x13459f);if(!_0x22ffa5)return null;const _0x301bf8='add'==_0x22ffa5['type']?'split':'merge';if(!_0xd2acd4['consumable']['test'](_0x3897ce['markerRange'],_0x1c56e3['name']))return;const _0x503328=_0x3897ce['markerRange']['getWalker'](),_0xe0f058=_0x3897ce['markerRange']['start'],_0xc2f905=_0x14c018['model']['schema'];let _0x34f02c=null,_0x480fd4=null,_0x5877bf=!0x1,_0x569289=!0x1;for(const _0xfead19 of _0x503328){const _0x37f0cf=_0xfead19['item'];_0x5877bf=_0x5877bf||_0xc2f905['isContent'](_0x37f0cf);const _0x382776=_0xd2acd4['mapper']['toViewElement'](_0x37f0cf);if(_0x382776&&_0x382776['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xfead19['type']&&(_0xc2f905['isBlock'](_0x37f0cf)&&!_0xc2f905['isLimit'](_0x37f0cf)&&(_0x37f0cf['nextSibling']||_0xe0f058['isAtEnd']?_0x34f02c&&_0x34f02c['parent']==_0x37f0cf||(_0x34f02c=_0x37f0cf,_0x4298cd(_0xfead19['previousPosition']),_0x569289=!0x0):_0x480fd4=_0x480fd4||_0xfead19['previousPosition']));}function _0x4298cd(_0xc0e286){const _0x3113f8=_0xd2acd4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x301bf8}),_0x7c9f17=_0xd2acd4['mapper']['toViewPosition'](_0xc0e286);_0x22ffa5['data']['isSuggestion']&&_0xd2acd4['writer']['addClass']('ck-suggestion-marker-'+_0x301bf8+'-new',_0x3113f8),_0x2259a4['activeChange']==_0x22ffa5&&_0xd2acd4['writer']['addClass']('ck-suggestion-marker--active',_0x3113f8),_0xd2acd4['writer']['insert'](_0x7c9f17,_0x3113f8),_0xd2acd4['mapper']['bindElementToMarker'](_0x3113f8,_0x3897ce['markerName']);}_0x5877bf||_0x569289||!_0x480fd4||_0x4298cd(_0x480fd4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x37fbe9,_0x244848,_0x111941)=>{const _0x4f3043=_0x111941['mapper']['markerNameToElements'](_0x244848['markerName']);if(_0x4f3043){for(const _0x3adce4 of _0x4f3043)(_0x3adce4['hasClass']('ck-suggestion-marker-split')||_0x3adce4['hasClass']('ck-suggestion-marker-merge'))&&(_0x111941['mapper']['unbindElementFromMarkerName'](_0x3adce4,_0x244848['markerName']),_0x111941['writer']['remove'](_0x3adce4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x509397,_0x25c4df,_0x4f368b)=>{const _0x1d868b=_0x25c4df['markerName']['split'](':')[0x1],_0x1b0624=this['_getChangeFromId'](_0x1d868b);if(!_0x1b0624)return null;const _0x3a4f9f='add'==_0x1b0624['type']?'split':'merge';if(_0x4f368b['consumable']['test'](_0x25c4df['markerRange'],_0x509397['name']))for(const _0x5dbbf1 of _0x25c4df['markerRange']['getItems']()){if(!_0x5dbbf1['is']('element','softBreak'))continue;const _0x5ae08b=_0x4f368b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a4f9f}),_0x2220dd=_0x4f368b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5dbbf1));_0x1b0624['data']['isSuggestion']&&_0x4f368b['writer']['addClass']('ck-suggestion-marker-'+_0x3a4f9f+'-new',_0x5ae08b),this['activeChange']==_0x1b0624&&_0x4f368b['writer']['addClass']('ck-suggestion-marker--active',_0x5ae08b),_0x4f368b['writer']['insert'](_0x2220dd,_0x5ae08b),_0x4f368b['mapper']['bindElementToMarker'](_0x5ae08b,_0x25c4df['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x167d3b=>{for(const _0x5ec20d of this['editor']['model']['document']['getRootNames']()){const _0x235092=this['editor']['model']['document']['getRoot'](_0x5ec20d),_0x3c160f=this['editor']['editing']['view']['document']['getRoot'](_0x5ec20d);if(_0x3c160f){const _0xfbff8=_0x235092['getAttribute']('revisionHistoryAttachChange');if(_0x167d3b['removeAttribute']('data-change-id',_0x3c160f),_0x167d3b['removeClass']('ck-revision-history-root-add',_0x3c160f),_0x167d3b['removeClass']('ck-revision-history-root-remove',_0x3c160f),_0x167d3b['removeClass']('ck-revision-history-root--active',_0x3c160f),_0xfbff8){const _0x43387b=this['_getChangeFromId'](_0xfbff8);if(!_0x43387b)return null;_0x167d3b['setAttribute']('data-change-id',_0xfbff8,_0x3c160f),_0x167d3b['addClass']('ck-revision-history-root-'+_0x43387b['type'],_0x3c160f),this['activeChange']==_0x43387b&&_0x167d3b['addClass']('ck-revision-history-root--active',_0x3c160f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5c2e09=>'revision-comment:'+_0x5c2e09,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3c27ab=>'revision-suggestion:'+_0x3c27ab,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x7a8fb4=>({'name':'suggestion:'+_0x7a8fb4,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x22ebea=>{const _0x328a65=_0x22ebea['markerName']['split'](':')[0x1];return'insertion'!=_0x328a65&&'deletion'!=_0x328a65?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x328a65]};}}),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',(_0xb528c4,_0x6faedc,_0x50749b)=>{const _0x122bff=_0x50749b['mapper']['markerNameToElements'](_0x6faedc['markerName']);if(_0x122bff){for(const _0x540e3a of _0x122bff)_0x540e3a['is']('uiElement')&&(_0x50749b['mapper']['unbindElementFromMarkerName'](_0x540e3a,_0x6faedc['markerName']),_0x50749b['writer']['remove'](_0x540e3a));}},{'priority':'high'});}['_getChangeFromId'](_0x5c3af4){return this['_changeIdToChange']['get'](_0x5c3af4);}['_getViewForChange'](_0xe6977c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xe6977c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xeb8a8e,_0x2c45c9,_0x16c562,_0x3481ba)=>{_0x3481ba&&this['_balloon']['remove'](_0x3481ba),_0x16c562&&(this['_balloon']['add']({'view':_0x16c562,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1cac10=this['editor']['editing'],_0x2285e9=this['_getChangeFromId'](_0x16c562['changeId']);let _0x4f40f;if(_0x2285e9['data']['isOnRoot']){const _0x422f55=_0x1cac10['view']['getDomRoot'](_0x2285e9['rootName']);_0x4f40f=Array['from'](_0x422f55['getClientRects']());}else{const _0x561d86=this['editor']['model']['markers']['get']('revision:'+_0x16c562['changeId']);_0x4f40f=Array['from'](_0x1cac10['mapper']['markerNameToElements'](_0x561d86['name']))['map'](_0x158911=>_0x1cac10['view']['domConverter']['mapViewToDom'](_0x158911))['map'](_0x4cebf9=>Array['from'](_0x4cebf9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4f40f[0x0];return _0x4f40f['find'](_0x3ed7b5=>_0x3ed7b5['top']-0x3<=this['_activeViewTarget']['y']&&_0x3ed7b5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3ed7b5['left']-0x3<=this['_activeViewTarget']['x']&&_0x3ed7b5['right']+0x3>=this['_activeViewTarget']['x'])||_0x4f40f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x296734,_0xa9f066,_0x297161,_0x22795c)=>{this['activeView']=_0x297161?this['_getViewForChange'](_0x297161):null,this['editor']['model']['change'](()=>{const _0x63d2b6=this['editor']['editing'];_0x22795c&&(_0x22795c['data']['isOnRoot']?_0x63d2b6['view']['change'](_0xaf679f=>{_0xaf679f['removeClass']('ck-revision-history-root--active',_0x63d2b6['view']['document']['getRoot'](_0x22795c['rootName']));}):_0x63d2b6['reconvertMarker']('revision:'+_0x22795c['id'])),_0x297161&&(_0x297161['data']['isOnRoot']?_0x63d2b6['view']['change'](_0x5d6049=>{_0x5d6049['addClass']('ck-revision-history-root--active',_0x63d2b6['view']['document']['getRoot'](_0x297161['rootName']));}):_0x63d2b6['reconvertMarker']('revision:'+_0x297161['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x58f4f6,_0x195542)=>{if(this['activeChange'])return;const _0x5c885b=this['_findChangeIdFromDomTarget'](_0x195542['target']),_0xa344c=this['_changeIdToChange']['get'](_0x5c885b);_0xa344c?(this['_activeViewTarget']={'x':_0x195542['domEvent']['x'],'y':_0x195542['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xa344c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x37b4ce,_0x592d2c)=>{const _0x29083f=this['_findChangeIdFromDomTarget'](_0x592d2c['target']),_0x168049=this['_changeIdToChange']['get'](_0x29083f);_0x168049?(this['_activeViewTarget']={'x':_0x592d2c['domEvent']['x'],'y':_0x592d2c['domEvent']['y']},_0x168049===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x168049):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x129ac9){do{const _0x4b8537=_0x129ac9['getAttribute']('data-change-id');if(_0x4b8537)return _0x4b8537;_0x129ac9=_0x129ac9['parent'];}while(_0x129ac9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x64b945=>{for(const _0x3999cb of this['editor']['model']['markers'])_0x64b945['removeMarker'](_0x3999cb);});}}function Z(_0x159707,_0x2f512c){return(_0x1ea0ba,_0x35c36e,_0x238250)=>{if(!_0x238250['consumable']['test'](_0x35c36e['markerRange'],_0x1ea0ba['name']))return;const _0x16f949=_0x35c36e['markerRange']['getWalker'](),_0x407b90=_0x35c36e['markerRange']['start'],_0x156ba9=_0x159707['model']['schema'];let _0x25b09f=null,_0x1e5349=null,_0x54c227=!0x1,_0xd38e4a=!0x1;for(const _0x5dc922 of _0x16f949){const _0x1a5933=_0x5dc922['item'];_0x54c227=_0x54c227||_0x156ba9['isContent'](_0x1a5933);const _0x214695=_0x238250['mapper']['toViewElement'](_0x1a5933);if(_0x214695&&_0x214695['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5dc922['type']&&(_0x156ba9['isBlock'](_0x1a5933)&&!_0x156ba9['isLimit'](_0x1a5933)&&(_0x1a5933['nextSibling']||_0x407b90['isAtEnd']?_0x25b09f&&_0x25b09f['parent']==_0x1a5933||(_0x25b09f=_0x1a5933,_0x3f0840(_0x5dc922['previousPosition']),_0xd38e4a=!0x0):_0x1e5349=_0x1e5349||_0x5dc922['previousPosition']));}function _0x3f0840(_0x57e726){const _0x2e47d8=_0x238250['mapper']['toViewPosition'](_0x57e726),_0x1de4ec=_0x238250['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2f512c});_0x238250['writer']['insert'](_0x2e47d8,_0x1de4ec),_0x238250['mapper']['bindElementToMarker'](_0x1de4ec,_0x35c36e['markerName']);}_0x54c227||_0xd38e4a||!_0x1e5349||_0x3f0840(_0x1e5349);};}class _t extends _0x157788{constructor(_0x482e5f){super(_0x482e5f);const _0x532f23=_0x482e5f['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x532f23,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x532f23,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2ba709=this['editor'],_0x2838b8=_0x2ba709['plugins']['get'](d),_0x4db2ce=_0x2838b8['isReady']?_0x2838b8['diff']['newRevisionId']:null;_0x2ba709['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4db2ce);}['refresh'](){const {isReady:_0x4b653c,isEnabled:_0x6f3028,repository:_0x50c32b,diff:_0x383282}=this['editor']['plugins']['get'](d),_0x1aa0a6=_0x383282&&_0x50c32b['getLaterVisibleRevision'](_0x383282['newRevisionId']);this['isEnabled']=_0x4b653c&&_0x6f3028&&Boolean(_0x1aa0a6);}}class yt extends _0x157788{['_step'];constructor(_0x93a7b1,{direction:_0x4911cb}){super(_0x93a7b1);const _0x3f4c77=_0x93a7b1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4911cb?0x1:-0x1,this['listenTo'](_0x3f4c77,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3f4c77,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3f4c77,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x38b69d=this['editor'],_0x589351=_0x38b69d['plugins']['get'](d),{isNavigationMode:_0x1a2df7,currentChangeNumber:_0x1a2d47}=_0x589351;let _0x48c64c;if(_0x589351['activeChange']=_0x1a2df7?_0x589351['diff']['changes']['get'](_0x1a2d47+this['_step']):_0x589351['diff']['changes']['first'],_0x589351['activeChange']['data']['isOnRoot'])_0x48c64c=_0x38b69d['editing']['view']['getDomRoot'](_0x589351['activeChange']['rootName']);else{const _0x8be197=_0x38b69d['model']['markers']['get']('revision:'+_0x589351['activeChange']['id']);_0x48c64c=_0x10cdf2(_0x38b69d['editing'],_0x8be197);}_0x383918({'target':_0x48c64c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x12445a,currentChangeNumber:_0x64e371,numberOfChanges:_0xa9fcd6,isReady:_0x5a7831,isEnabled:_0x5e39d7}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5e39d7&&_0x5a7831&&_0xa9fcd6)&&(!_0x12445a||(0x1===this['_step']?_0x64e371<_0xa9fcd6-0x1:_0x64e371>0x0));}}class di extends _0x57d690{constructor(_0x3305a8){super(_0x3305a8);const _0xc7df53=this['bindTemplate'],_0x35285d=new _0x5c3b92(_0x3305a8),_0x56cc=new _0x5c3b92(_0x3305a8);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',(_0xe83fca,_0x4b1576)=>_0xe83fca&&_0x4b1576>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x272fd8,_0x3e140d,_0x4788d0,_0x4bd685)=>{if(!_0x272fd8)return m(_0x3305a8,'Loading...');if(!_0x4788d0)return m(_0x3305a8,'No\x20changes');const _0x20d6eb=m(_0x3305a8,'NUMBER_OF_CHANGES',_0x4788d0);return _0x4bd685?m(_0x3305a8,'X_OF_Y_CHANGES',[_0x3e140d+0x1,_0x4788d0]):_0x20d6eb;}),_0x35285d['set']({'label':m(_0x3305a8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x56cc['set']({'label':m(_0x3305a8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x35285d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x56cc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x35285d['on']('execute',()=>this['fire']('execute','backward')),_0x56cc['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',_0xc7df53['if']('_isStatusLabelVisible','ck-hidden',_0x972253=>!_0x972253)]},'children':[{'text':_0xc7df53['to']('isNavigationMode',_0x47d381=>_0x47d381?m(_0x3305a8,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3305a8,'Total')+':\x20')}]},{'text':_0xc7df53['to']('_statusText')}]},new _0x574f5a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x35285d,_0x56cc]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x1c983f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x44568c=this['editor']['editing']['view'];_0x44568c['change'](_0x35fd7c=>{for(const _0xf20654 of _0x44568c['document']['roots'])_0x35fd7c['addClass'](ce,_0xf20654);});}['hide'](){const _0x2508d0=this['editor']['editing']['view'];_0x2508d0['change'](_0x191302=>{for(const _0x9851fe of _0x2508d0['document']['roots'])_0x191302['removeClass'](ce,_0x9851fe);});}}class g extends _0x1c983f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x139446=this['editor'],_0x34f5af=_0x139446['plugins']['get'](d),_0x138202=_0x139446['plugins']['get'](ae);_0x139446['ui']['componentFactory']['add']('exitToEditing',_0x2748cf=>{const _0x3d6549=new _0x5c3b92(_0x2748cf);return _0x3d6549['set']({'label':m(_0x2748cf,'Back\x20to\x20editing'),'icon':_0x5d34ae['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3d6549,'execute',()=>{_0x139446['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3d6549;}),_0x139446['ui']['componentFactory']['add']('restoreRevision',_0x3e91fc=>{const _0x2c405f=new _0x5c3b92(_0x3e91fc);return _0x2c405f['set']({'label':m(_0x3e91fc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2c405f['bind']('isEnabled')['to'](_0x139446['commands']['get']('restoreRevision')),this['listenTo'](_0x2c405f,'execute',()=>_0x139446['execute']('restoreRevision')),_0x2c405f;}),_0x139446['ui']['componentFactory']['add']('changesNavigation',_0x54b76f=>{const _0x17c0dd=new di(_0x54b76f),_0x5e7c36=_0x139446['commands']['get']('showPreviousChange'),_0x2ac448=_0x139446['commands']['get']('showNextChange');return _0x17c0dd['bind']('isBackwardNavigationEnabled')['to'](_0x5e7c36,'isEnabled'),_0x17c0dd['bind']('isForwardNavigationEnabled')['to'](_0x2ac448,'isEnabled'),_0x17c0dd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x34f5af),this['listenTo'](_0x17c0dd,'execute',(_0xd2842c,_0xc33e5)=>{_0x139446['execute']('forward'===_0xc33e5?'showNextChange':'showPreviousChange');}),_0x17c0dd;}),_0x138202['show'](),_0x34f5af['on']('change:isReady',(_0x4d96f3,_0x9f36ab,_0x1d8310)=>{_0x1d8310?_0x138202['hide']():_0x138202['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x24e320,_0x551a37){super(_0x24e320,_0x551a37);const _0x11d10e=this['bindTemplate'];this['set']({'label':m(_0x24e320,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x24e320,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x11d10e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3ccac4=this['fieldView']['element'];this['_tooltipString']=_0x3ccac4['scrollWidth']>_0x3ccac4['clientWidth']&&_0x3ccac4['value']||'';}}class ti extends _0x57d690{constructor(_0x35babe,_0xd9da27,_0x43f9ac){super(_0x35babe);const _0x15e8a8=new _0x538b97();_0x15e8a8['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x2fd0d9=['ck','ck-revision-history-sidebar__revision-author'];_0x43f9ac&&_0x2fd0d9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x48a746=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x35babe,_0x43f9ac?'Revision\x20creator':'Revision\x20author')},'children':[_0x15e8a8,_0xd9da27['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2fd0d9},'children':_0x48a746});}}function ni(_0x77ec60,_0x3386d3){const _0x585dba=_0x77ec60['bindTemplate'],_0x34741f=_0x77ec60['locale'],_0x93d41=_0x23cafe(_0x34741f);_0x93d41['panelPosition']='sw';const _0x422563=function(_0x498bc7,_0x1cff31){const _0x34a737=function(_0x454fcf,_0x15d15e){const _0x21be45=_0x454fcf['locale'],_0x3f9228={'Compare\x20against\x20selected':m(_0x21be45,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x21be45,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x21be45,'Restore\x20this\x20revision')};return _0x15d15e['map'](_0x254d42=>{const _0x42dfb5=_0x3f9228[_0x254d42['name']];return _0x42dfb5&&_0x42dfb5!==_0x254d42['name']&&(_0x254d42['name']=_0x42dfb5),_0x254d42;});}(_0x498bc7,_0x1cff31),_0x28ab74=new _0x28b682();for(const _0x4967ac of _0x34a737){const _0x2e403b={'type':'button','model':new to({'label':_0x4967ac['name'],'class':_0x4967ac['class'],'withText':!0x0,'role':'menuitem','_action':_0x4967ac['action']})};_0x2e403b['model']['bind']('isEnabled')['to'](_0x498bc7,'isActionsDropdownOpen',_0x376318=>'function'!=typeof _0x4967ac['isEnabled']||(!_0x376318||_0x4967ac['isEnabled'](_0x498bc7))),_0x28ab74['add'](_0x2e403b);}return _0x28ab74;}(_0x77ec60,_0x3386d3);return _0x77ec60['bind']('isActionsDropdownOpen')['to'](_0x93d41,'isOpen'),_0x93d41['buttonView']['set']({'label':m(_0x34741f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5d34ae['threeVerticalDots']}),_0x93d41['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x585dba['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x585dba['to'](_0x2f2ede=>_0x2f2ede['stopPropagation']())}}),_0x93d41['on']('execute',_0x191d0b=>{_0x77ec60['isReady']&&'function'==typeof _0x191d0b['source']['_action']&&_0x191d0b['source']['_action'](_0x77ec60);}),_0x33bd8c(_0x93d41,_0x422563,{'role':'menu'}),_0x93d41['listenTo'](_0x77ec60,'change:isActionsDropdownOpen',(_0x418261,_0x147564,_0x4816d1)=>{if(_0x4816d1)for(const _0x21f1a3 of _0x93d41['listView']['items']){const _0x5f1fa7=_0x21f1a3['children']['first'],_0x1d2cd4=_0x3386d3['find'](_0x3bfd45=>_0x3bfd45['action']===_0x5f1fa7['_action'])['isVisible'];_0x21f1a3['isVisible']=void 0x0===_0x1d2cd4||_0x1d2cd4(_0x77ec60);}}),_0x93d41;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x3f83fe(_0x57d690){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3298d0,_0x2c46f1,_0x3c844a,_0x34654b){super(_0x3298d0);const _0xc61d66=this['bindTemplate'],_0x50377f=function(_0x296b9e,_0x325dba){const _0x1fd376=Array['from'](_0x325dba['authors'])['filter'](_0x2e468b=>_0x2e468b!=_0x325dba['creator']);return _0x325dba['creator']&&_0x1fd376['unshift'](_0x325dba['creator']),_0x1fd376['map'](_0x6e122b=>new ti(_0x296b9e,_0x6e122b,_0x6e122b==_0x325dba['creator']));}(_0x3298d0,_0x2c46f1);this['id']=_0x2c46f1['id'],this['_revision']=_0x2c46f1,this['_requireRevisionName']=_0x34654b,this['bind']('name','createdAt')['to'](_0x2c46f1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x26ec7d=>{return _0x18d260=_0x3298d0['uiLanguage'],(_0x3b6192=_0x26ec7d)['toLocaleDateString'](_0x18d260,{'month':'long','day':'numeric'})+',\x20'+_0x3b6192['toLocaleTimeString'](_0x18d260,{'hour':'numeric','minute':'numeric'});var _0x18d260,_0x3b6192;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3298d0,_0x242d1c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x18ad4d=>_0x18ad4d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2cd538,_0xb933a4)=>_0x2cd538&&_0xb933a4),this['revisionActionsView']=_0x3c844a&&_0x3c844a['length']?ni(this,_0x3c844a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xc61d66['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xc61d66['if']('isEnabled','ck-disabled',_0x1119db=>!_0x1119db),_0xc61d66['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xc61d66['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xc61d66['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':_0xc61d66['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':_0x50377f}]},this['revisionActionsView']],'on':{'click':_0xc61d66['to'](_0x3e6c85=>{_0x3e6c85['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2ce304=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2ce304,'change',()=>{this['_requireRevisionName']&&!_0x2ce304['value']||this['fire']('setName',{'id':this['id'],'name':_0x2ce304['value']}),_0x2ce304['value']||(_0x2ce304['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x49d10b,_0x473aed){const _0x5097fd=_0x212522['fromJSDate'](_0x49d10b)['setLocale'](_0x473aed),_0x364f4d=_0x212522['local'](),_0x53a0ae=_0x364f4d['minus']({'days':0x1})['startOf']('day');let _0x189e27,_0x44732e;return _0x5097fd['hasSame'](_0x364f4d,'day')?(_0x189e27=_0x5097fd['startOf']('day')['toJSDate'](),_0x44732e=_0x5097fd['toRelativeCalendar']()):_0x5097fd['hasSame'](_0x53a0ae,'day')?(_0x189e27=_0x53a0ae['toJSDate'](),_0x44732e=_0x5097fd['toRelativeCalendar']()):_0x5097fd['hasSame'](_0x364f4d,'week')?(_0x189e27=_0x5097fd['startOf']('week')['toJSDate'](),_0x44732e=_0x5097fd['weekdayLong']||''):_0x5097fd['hasSame'](_0x364f4d,'year')?(_0x189e27=_0x5097fd['startOf']('month')['toJSDate'](),_0x44732e=_0x5097fd['monthLong']||''):(_0x189e27=_0x5097fd['startOf']('year')['toJSDate'](),_0x44732e=String(_0x5097fd['year'])),{'startDate':_0x189e27,'localizedPeriodName':_0x44732e};}class vi extends _0x57d690{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x35dc9f,_0x208dc4,_0xa8ba6d,_0x5f2202){super(_0x35dc9f);const _0x1dbe23=mi(_0x208dc4,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x208dc4,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xa8ba6d,this['_requireRevisionName']=_0x5f2202,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':_0x1dbe23}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1f70fd){const _0x3179fc=new ai(this['locale'],_0x1f70fd,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3179fc);}['removeRevision'](_0x4cd307){const _0x200439=this['revisionViews']['find'](_0x1eec4e=>_0x1eec4e['id']===_0x4cd307['id']);this['revisionViews']['remove'](_0x200439);}}class as extends _0x57d690{constructor(_0x6f535){super(_0x6f535);const _0x13f4fc=new _0x538b97();_0x13f4fc['content']=_0x5d34ae['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x13f4fc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x6f535,'Revision\x20history')]}]});}}class li extends _0x57d690{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5b1bf5,_0x9e627,_0x45ac46,_0x346244){super(_0x5b1bf5);const _0xa854a6=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x9e627,this['_revisionActions']=_0x45ac46,this['_requireRevisionName']=_0x346244,this['on']('select',(_0xd76c2d,_0x9c5913)=>{this['fire']('revisionSelected',_0x9c5913);}),this['on']('setName',(_0x4bfbc5,_0x38f784)=>{this['fire']('revisionSetName',_0x38f784);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5b1bf5),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xa854a6['if']('isEnabled','ck-disabled',_0x451e7c=>!_0x451e7c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x47bbf7 of this['_revisions'])this['_addRevision'](_0x47bbf7);this['_revisions']['on']('add',(_0x5787de,_0x52cd08)=>{this['_addRevision'](_0x52cd08);}),this['_revisions']['on']('remove',(_0x3f1fa7,_0x41f11f)=>{this['_removeRevision'](_0x41f11f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1226e0=>_0x1226e0['revisionViews']['map'](_0x23e441=>_0x23e441))['flat']();}['selectRevision'](_0x5d5334){for(const _0x5d9af6 of this['revisionViews'])_0x5d5334&&_0x5d5334['id']===_0x5d9af6['id']?_0x5d9af6['select']():_0x5d9af6['deselect']();}['highlightRevisions'](_0x3ac7d8){for(const _0x14dce6 of this['revisionViews'])_0x3ac7d8['some'](({id:_0x226e07})=>_0x226e07===_0x14dce6['id'])?_0x14dce6['highlight']():_0x14dce6['unhighlight']();}['_addRevision'](_0x1b5130){const _0x45945d=mi(_0x1b5130['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x253424=this['timePeriodViews']['get'](0x0);_0x253424&&_0x253424['startDate']['getTime']()===_0x45945d['getTime']()||(_0x253424=new vi(this['locale'],_0x45945d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x253424)),_0x253424['addRevision'](_0x1b5130);}['_removeRevision'](_0x567ff5){const _0x4adb19=mi(_0x567ff5['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4adb19)['removeRevision'](_0x567ff5);}['_getTimePeriodViewByStartDate'](_0x30fba7){return this['timePeriodViews']['find'](_0x1dea70=>_0x1dea70['startDate']['getTime']()===_0x30fba7['getTime']());}}class w extends _0x1c983f{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x2397cf,uid as _0x316b02,Collection as _0x177da0,logWarning as _0x4a53ea,FocusTracker as _0x4413f1,KeystrokeHandler as _0x2b44d5,scrollViewportToShowTarget as _0x221f1c,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x522924}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3bd5f8,set as _0x43c483,unset as _0xd74934,isEqual as _0x50711e}from'lodash-es';import{Plugin as _0x4011e1,PendingActions as _0x3bf72f,icons as _0x5bb3f8,Command as _0x451a85,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x7d3fd1,getMarkerDomElement as _0x51754f,ConfirmMixin as _0x1c84ab,sanitizeEditorConfig as _0x1d984c}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x531090,ViewText as _0x334ef4,ViewElement as _0x3564d6,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x377942,ViewAttributeElement as _0x4c0794,ViewEmptyElement as _0x421417,ViewRawElement as _0x525184,ViewUIElement as _0x44f876,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x54bab1,injectCssTransitionDisabler as ts,submitHandler as _0x5b59ac,LabeledFieldView as nt,createLabeledInputText as _0x42aec0,createDropdown as _0x46c6e4,ListView as _0x1e14d0,ListItemView as te,ButtonView as _0x412521,MenuBarMenuView as _0x3e0dcb,MenuBarMenuListView as _0x367653,MenuBarMenuListItemView as _0x2deb30,MenuBarMenuListItemButtonView as _0x3449d1,ContextualBalloon as _0x53c608,ToolbarSeparatorView as _0x50d3fa,IconView as _0xe7dccb,addListToDropdown as _0x8c893,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x481116}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x2397cf(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5be490){super(),this['id']=_0x5be490['id']||_0x316b02(),this['creator']=_0x5be490['creator']||null,this['authors']=_0x5be490['authors']||[],this['diffData']=_0x5be490['diffData']||null,this['toVersion']=_0x5be490['toVersion']||0x0,this['fromVersion']=_0x5be490['fromVersion']||0x0,this['set']('name',_0x5be490['name']||''),this['set']('createdAt',_0x5be490['createdAt']||new Date()),this['set']('attributes',_0x5be490['attributes']||{});}['setName'](_0x3a7b42){this['_update']({'name':_0x3a7b42});}['setAttribute'](_0xda8efc,_0x4afd81){const _0x422916=_0x3bd5f8(this['attributes']);_0x43c483(_0x422916,_0xda8efc,_0x4afd81),this['_update']({'attributes':_0x422916});}['removeAttribute'](_0xc80b6e){const _0x43ad0b=_0x3bd5f8(this['attributes']);_0xd74934(_0x43ad0b,_0xc80b6e),this['_update']({'attributes':_0x43ad0b});}['_update'](_0x5633c4,_0x12b5ab=!0x1){let _0x16fab6=!0x1;const _0x3f75a5={'id':this['id']},_0x36d03b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x16cde1 of _0x36d03b){const _0xd2eb96=_0x5633c4[_0x16cde1];void 0x0!==_0xd2eb96&&_0xd2eb96!==this[_0x16cde1]&&(this[_0x16cde1]=_0xd2eb96,_0x3f75a5[_0x16cde1]=_0xd2eb96,_0x16fab6=!0x0);}_0x16fab6&&(_0x3f75a5['authors']&&(_0x3f75a5['authorsIds']=_0x3f75a5['authors']['map'](_0x16bfc4=>_0x16bfc4['id']),delete _0x3f75a5['authors']),this['fire']('_update',_0x3f75a5,_0x12b5ab));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4dcbdc=>_0x4dcbdc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4011e1{['_revisions'];static get['requires'](){return[_0x7d3fd1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x379c7b){super(_0x379c7b),this['_revisions']=new _0x177da0();}['afterInit'](){!async function(_0x58bd5a){const _0x8695bd=_0x49043d([0x68,0x45,0x54,0x79,0x31,0x4f,0x6b,0x73,0x39,0x33,0x5a,0x71,0x34,0x67,0x66,0x43,0x41,0x7a,0x42,0x35,0x44,0x58,0x4a,0x49,0x70,0x55,0x6c,0x57,0x63,0x32,0x78,0x76,0x6f,0x53,0x4d,0x62,0x46,0x6e,0x52,0x47,0x4c,0x6a,0x37,0x4e,0x38,0x6d,0x77,0x4b,0x65,0x69,0x72,0x51,0x56,0x59,0x74,0x75,0x64,0x50,0x48,0x30,0x36,0x61]),_0x2f4d99=0xeb829,_0x1acdae=0x9501ecd,_0x32d50d=0x957439d^_0x1acdae,_0x5f50e3=window[_0x49043d([0x44,0x61,0x74,0x65])][_0x49043d([0x6e,0x6f,0x77])](),_0xc39ce9=_0x58bd5a[_0x49043d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ed62f=new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17b52a=>{_0xc39ce9[_0x49043d([0x6f,0x6e,0x63,0x65])](_0x49043d([0x72,0x65,0x61,0x64,0x79]),_0x17b52a);}),_0x2e3e06={[_0x49043d([0x6b,0x74,0x79])]:_0x49043d([0x45,0x43]),[_0x49043d([0x75,0x73,0x65])]:_0x49043d([0x73,0x69,0x67]),[_0x49043d([0x63,0x72,0x76])]:_0x49043d([0x50,0x2d,0x32,0x35,0x36]),[_0x49043d([0x78])]:_0x49043d([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]),[_0x49043d([0x79])]:_0x49043d([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]),[_0x49043d([0x61,0x6c,0x67])]:_0x49043d([0x45,0x53,0x32,0x35,0x36])},_0x1ab99c=_0xc39ce9[_0x49043d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49043d([0x67,0x65,0x74])](_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2228bc(){let _0x582dc9,_0x14bd43=null,_0x4bf27a=null;try{if(_0x1ab99c==_0x49043d([0x47,0x50,0x4c]))return _0x49043d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x582dc9=_0x3a78ba(),!_0x582dc9)return _0x49043d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x582dc9[_0x49043d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bf27a=_0x2b5195(_0x582dc9[_0x49043d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x582dc9[_0x49043d([0x6a,0x74,0x69])])),await _0x2c319a()?_0x161e1b()?_0x2f3f98()?_0x49043d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf8973c()?(_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49043d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14bd43=_0x19aa97(_0x49043d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49043d([0x74,0x72,0x69,0x61,0x6c])&&(_0x14bd43=_0x19aa97(_0x49043d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49043d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x14bd43=_0x19aa97(_0x49043d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x592510()):_0x49043d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49043d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49043d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a986d){return _0x49043d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f3f98(){const _0x46dc86=[_0x49043d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49043d([0x74,0x72,0x69,0x61,0x6c])][_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f50e3/0x3e8:0xe10*_0x32d50d;return _0x582dc9[_0x49043d([0x65,0x78,0x70])]<_0x46dc86;}function _0x161e1b(){const _0x2c315b=_0x582dc9[_0x49043d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c315b)return!0x1;if(_0x2c315b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x2a])))return!0x0;if(_0x2c315b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x52,0x48])))return!0x0;if(_0x2c315b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x52,0x52,0x48]))){if(_0xa9bbdf())return!0x0;if(_0x18caca()||_0x1ee42())return!0x0;}return!0x1;}function _0xf8973c(){const _0x3cd88b=_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3cd88b||0x0==_0x3cd88b[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e7d70}=new URL(window[_0x49043d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3cd88b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e7d70))return!0x0;const _0x5546b2=_0x3e7d70[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e]));return _0x3cd88b[_0x49043d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x316777=>_0x316777[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x2a])))[_0x49043d([0x6d,0x61,0x70])](_0x29d424=>_0x29d424[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e])))[_0x49043d([0x73,0x6f,0x6d,0x65])](_0x4376b0=>_0x5546b2[_0x49043d([0x65,0x76,0x65,0x72,0x79])]((_0x4f5b5f,_0x5b1812)=>_0x4376b0[_0x5b1812]===_0x4f5b5f||_0x4376b0[_0x5b1812]===_0x49043d([0x2a])));}function _0x592510(){return _0x14bd43&&_0x4bf27a?new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9830e0,_0x551a38)=>{_0x14bd43[_0x49043d([0x74,0x68,0x65,0x6e])](_0x9830e0,_0x551a38),_0x4bf27a[_0x49043d([0x74,0x68,0x65,0x6e])](_0x1c038e=>{_0x1c038e!=_0x49043d([0x56,0x61,0x6c,0x69,0x64])&&_0x9830e0(_0x1c038e);},_0x551a38);}):_0x14bd43||_0x4bf27a||_0x49043d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b5195(_0x536f99,_0x1c78a5){return new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x508fcc=>{if(_0x145661())return _0x508fcc(_0x49043d([0x56,0x61,0x6c,0x69,0x64]));_0x4545da(),_0xc39ce9[_0x49043d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49043d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51f128=!0x1;const _0x28740a=_0x316b02();function _0x3c6b5d(_0x2685b5){return!!_0x2685b5&&(typeof _0x2685b5===_0x49043d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2685b5===_0x49043d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2685b5[_0x49043d([0x74,0x68,0x65,0x6e])]===_0x49043d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2685b5[_0x49043d([0x63,0x61,0x74,0x63,0x68])]===_0x49043d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe39d48(_0x5c6d9a){_0x2d8477(_0x5c6d9a)[_0x49043d([0x74,0x68,0x65,0x6e])](_0x3b2fea=>{if(!_0x3b2fea||_0x3b2fea[_0x49043d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49043d([0x6f,0x6b]))return _0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5261e8(_0x2c7853(_0x28740a+_0x1c78a5))!=_0x3b2fea[_0x49043d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49043d([0x56,0x61,0x6c,0x69,0x64]);})[_0x49043d([0x74,0x68,0x65,0x6e])](_0xb223d1=>(_0x1cd5a9(),_0xb223d1),()=>{const _0x26b84a=_0x5eaf02();return null==_0x26b84a?(_0x1cd5a9(),_0x49043d([0x56,0x61,0x6c,0x69,0x64])):_0x49043d(_0x5f50e3-_0x26b84a>(0x2d5c9acd^_0x1acdae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49043d([0x74,0x68,0x65,0x6e])](_0x508fcc)[_0x49043d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x508fcc(_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55f38a=0x966f04d^_0x1acdae;function _0x1cd5a9(){const _0x3970eb=_0x49043d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5261e8(_0x2c7853(_0x536f99)),_0x2ecaf8=_0x2b263c(_0x5261e8(window[_0x49043d([0x4d,0x61,0x74,0x68])][_0x49043d([0x63,0x65,0x69,0x6c])](_0x5f50e3/_0x55f38a)));window[_0x49043d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49043d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3970eb,_0x2ecaf8);}function _0x5eaf02(){const _0x4bc19d=_0x49043d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5261e8(_0x2c7853(_0x536f99)),_0x27e178=window[_0x49043d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49043d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bc19d);return _0x27e178?window[_0x49043d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b263c(_0x27e178),0x10)*_0x55f38a:null;}function _0x2d8477(_0x2899bb){return new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3703c2,_0x307fdc)=>{_0x2899bb[_0x49043d([0x74,0x68,0x65,0x6e])](_0x3703c2,_0x307fdc),window[_0x49043d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x307fdc,0x951ca0d^_0x1acdae);});}}_0xc39ce9[_0x49043d([0x6f,0x6e])](_0x49043d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xae97e9,_0x4b409b)=>{if(_0x4b409b[0x0]!=_0x536f99)return _0x508fcc(_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b409b[0x1]={..._0x4b409b[0x1],[_0x49043d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28740a};},{[_0x49043d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49043d([0x68,0x69,0x67,0x68])}),_0xc39ce9[_0x49043d([0x6f,0x6e])](_0x49043d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25de74=>{_0x3c6b5d(_0x25de74[_0x49043d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51f128=!0x0,_0xe39d48(_0x25de74[_0x49043d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49043d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49043d([0x6c,0x6f,0x77])}),_0x4ed62f[_0x49043d([0x74,0x68,0x65,0x6e])](()=>{_0x51f128||_0x508fcc(_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x145661(){return _0xc39ce9[_0x49043d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49043d([0x76,0x69,0x65,0x77])][_0x49043d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49043d([0x61,0x75,0x74,0x6f]);}function _0x4545da(){_0xc39ce9[_0x49043d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49043d([0x76,0x69,0x65,0x77])][_0x49043d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49043d([0x61,0x75,0x74,0x6f]);}}function _0x19aa97(_0x2e2060){const _0x1ae8bf=[new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1adacc=>setTimeout(_0x1adacc,0x9592001^_0x1acdae)),_0x4ed62f[_0x49043d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44217d=>{const _0x22ac23=0x9501eca^_0x1acdae,_0x177ed6=_0x58bd5a[_0x49043d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x23ecfa(){_0x177ed6[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x22ac23&&_0x44217d();}_0x23ecfa(),_0x177ed6[_0x49043d([0x6f,0x6e])](_0x49043d([0x61,0x64,0x64]),_0x23ecfa);})),new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149950=>{function _0x46a145(){for(const _0x1146a6 in window)if(window[_0x49043d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x49043d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1146a6))&&window[_0x1146a6]==_0x2f4d99)return _0x149950();_0xc39ce9[_0x49043d([0x73,0x74,0x61,0x74,0x65])]!=_0x49043d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x49043d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46a145,0x9500d45^_0x1acdae);}_0x328fc9(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x46a145();})];return window[_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49043d([0x72,0x61,0x63,0x65])](_0x1ae8bf)[_0x49043d([0x74,0x68,0x65,0x6e])](()=>_0x2e2060);}async function _0x1c5fd5(){if(await _0x4ed62f,_0x328fc9(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11521d=_0x58bd5a[_0x49043d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2c49f2=_0x58bd5a[_0x49043d([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])](_0x11521d[_0x49043d([0x69,0x64])]),_0x2332c8=_0x3fb37b(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2332c8[_0x49043d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11521d['id'],_0x2c49f2?_0x2c49f2['id']:null,!0x0),_0x2332c8[_0x49043d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2332c8[_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2332c8[_0x49043d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x28ccb2,void(_0x2332c8[_0x49043d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x28ccb2);}if(_0x328fc9(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x17691b=_0x3fb37b(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x17691b[_0x49043d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x17691b[_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x17691b[_0x49043d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x28ccb2,_0x17691b[_0x49043d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x28ccb2;}_0xc39ce9[_0x49043d([0x6d,0x6f,0x64,0x65,0x6c])][_0x49043d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28ccb2,_0xc39ce9[_0x49043d([0x6d,0x6f,0x64,0x65,0x6c])][_0x49043d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28ccb2,_0xc39ce9[_0x49043d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49043d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa9bbdf(){return _0x328fc9(_0x49043d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3fb37b(_0x49043d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x49043d([0x73,0x74,0x61,0x74,0x65])]==_0x49043d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x18caca(){return _0x328fc9(_0x49043d([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 _0x1ee42(){return _0x328fc9(_0x49043d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1935f3(_0x538a20){const _0x5703a9=_0x1d14f7();_0xc39ce9[_0x5703a9]=_0x49043d([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])+_0x538a20,_0x538a20[_0x49043d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x49043d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1d14f7()]=_0x2f4d99),_0x538a20!=_0x49043d([0x56,0x61,0x6c,0x69,0x64])&&_0x1c5fd5();}function _0x1d14f7(){const _0x39a672=window[_0x49043d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49043d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49043d([0x6e,0x6f,0x77])]())[_0x49043d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49043d([0x2e]),'');let _0x1ea287=_0x49043d([0x68]);for(let _0x56bb21=0x0;_0x56bb21<_0x39a672[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56bb21+=0x2){let _0x3eb1cb=window[_0x49043d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39a672[_0x49043d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56bb21,_0x56bb21+0x2));_0x3eb1cb>=_0x8695bd[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3eb1cb-=_0x8695bd[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ea287+=_0x8695bd[_0x3eb1cb];}return _0x1ea287;}function _0x3a78ba(){const _0x22dc4c=_0x1ab99c[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e]));if(0x3!=_0x22dc4c[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x348721(_0x22dc4c[0x1]);function _0x348721(_0x2c5ea5){const _0x37bd9b=_0x55397a(_0x2c5ea5);return _0x37bd9b&&_0xf013a2()?_0x37bd9b:null;function _0xf013a2(){const _0x516995=_0x37bd9b[_0x49043d([0x6a,0x74,0x69])],_0x96c8f3=window[_0x49043d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x516995[_0x49043d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x516995[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36c510={..._0x37bd9b,[_0x49043d([0x6a,0x74,0x69])]:_0x516995[_0x49043d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x516995[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36c510[_0x49043d([0x76,0x63])],_0x2c7853(_0x36c510)==_0x96c8f3;}}}async function _0x2c319a(){let _0x499ed0=!0x0;try{const _0x3a0e6c=_0x1ab99c[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e])),[_0x51bcea,_0x1a4b79,_0x3465c3]=_0x3a0e6c;return _0x4a0ecb(_0x51bcea),await _0x288e30(_0x51bcea,_0x1a4b79,_0x3465c3),_0x499ed0;}catch(_0x442f73){return!0x1;}function _0x4a0ecb(_0x4b47e0){const _0x426233=_0x55397a(_0x4b47e0);_0x426233&&_0x426233[_0x49043d([0x61,0x6c,0x67])]==_0x49043d([0x45,0x53,0x32,0x35,0x36])||(_0x499ed0=!0x1);}async function _0x288e30(_0x4f3595,_0x9b33ed,_0x3b313e){const _0x559829=window[_0x49043d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49043d([0x66,0x72,0x6f,0x6d])](_0x27ee61(_0x3b313e),_0x1388e3=>_0x1388e3[_0x49043d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x301471=new window[(_0x49043d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49043d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f3595+_0x49043d([0x2e])+_0x9b33ed),_0x19e646=window[_0x49043d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49043d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19e646)return;const _0x31f420=await _0x19e646[_0x49043d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49043d([0x6a,0x77,0x6b]),_0x2e3e06,{[_0x49043d([0x6e,0x61,0x6d,0x65])]:_0x49043d([0x45,0x43,0x44,0x53,0x41]),[_0x49043d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49043d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49043d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19e646[_0x49043d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49043d([0x6e,0x61,0x6d,0x65])]:_0x49043d([0x45,0x43,0x44,0x53,0x41]),[_0x49043d([0x68,0x61,0x73,0x68])]:{[_0x49043d([0x6e,0x61,0x6d,0x65])]:_0x49043d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31f420,_0x559829,_0x301471)||(_0x499ed0=!0x1);}}function _0x55397a(_0x264dbc){return _0x264dbc[_0x49043d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49043d([0x65,0x79]))?JSON[_0x49043d([0x70,0x61,0x72,0x73,0x65])](_0x27ee61(_0x264dbc)):null;}function _0x27ee61(_0x33a59b){return window[_0x49043d([0x61,0x74,0x6f,0x62])](_0x33a59b[_0x49043d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49043d([0x2b]))[_0x49043d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49043d([0x2f])));}function _0x2c7853(_0x563f4f){let _0x2e6506=0x1505;function _0x3c02c2(_0x416232){for(let _0x5dd87e=0x0;_0x5dd87e<_0x416232[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dd87e++){const _0x501752=_0x416232[_0x49043d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dd87e);_0x2e6506=(_0x2e6506<<0x5)+_0x2e6506+_0x501752,_0x2e6506&=_0x2e6506;}}function _0x2cdac5(_0x422f30){Array[_0x49043d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x422f30)?_0x422f30[_0x49043d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cdac5):_0x422f30&&typeof _0x422f30==_0x49043d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49043d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x422f30)[_0x49043d([0x73,0x6f,0x72,0x74])]()[_0x49043d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x179511,_0x2fd295])=>{_0x3c02c2(_0x179511),_0x2cdac5(_0x2fd295);}):_0x3c02c2(window[_0x49043d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x422f30));}return _0x2cdac5(_0x563f4f),_0x2e6506>>>0x0;}function _0x5261e8(_0x1a4eb5){return _0x1a4eb5[_0x49043d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49043d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49043d([0x30]));}function _0x2b263c(_0x4daff3){return _0x4daff3[_0x49043d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49043d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49043d([0x6a,0x6f,0x69,0x6e])]('');}function _0x328fc9(_0x237f12){return _0xc39ce9[_0x49043d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49043d([0x68,0x61,0x73])](_0x237f12);}function _0x3fb37b(_0x35d41e){return _0xc39ce9[_0x49043d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49043d([0x67,0x65,0x74])](_0x35d41e);}function _0x28ccb2(){}function _0x49043d(_0x4f1ed4){return _0x4f1ed4['map'](_0x2923c1=>String['fromCharCode'](_0x2923c1))['join']('');}_0x1935f3(await _0x2228bc());}(this);}['createRevision'](_0x59270d){const _0x4b7870=this['editor']['plugins']['get']('Users');return new a({'id':_0x59270d['id'],'name':_0x59270d['name'],'creator':_0x59270d['creatorId']?_0x4b7870['getUser'](_0x59270d['creatorId']):null,'diffData':_0x59270d['diffData']||_0x59270d['data'],'authors':_0x59270d['authorsIds']['map'](_0x33af71=>_0x4b7870['getUser'](_0x33af71)),'createdAt':new Date(_0x59270d['createdAt']),'attributes':_0x59270d['attributes'],'fromVersion':_0x59270d['fromVersion'],'toVersion':_0x59270d['toVersion']});}['addRevision'](_0x5177a7,_0x11de3c=0x0){this['_revisions']['add'](_0x5177a7,_0x11de3c);}['getRevision'](_0x1e5c08){return this['_revisions']['get'](_0x1e5c08);}['getRevisions'](_0x17e97d={'toJSON':!0x1}){const _0x171253=Array['from'](this['_revisions']);return _0x171253['reverse'](),_0x17e97d['toJSON']?_0x171253['map'](_0x294f44=>_0x294f44['toJSON']()):_0x171253;}['getIndex'](_0x40b616){return this['_revisions']['getIndex'](_0x40b616);}['getEarlierVisibleRevision'](_0x260528){const [,_0x33bb73]=this['getRevisionsIterator'](_0x260528,{'direction':'earlier'});return _0x33bb73;}['getLaterVisibleRevision'](_0xc2553b){const [,_0x6c6bf5]=this['getRevisionsIterator'](_0xc2553b,{'direction':'later'});return _0x6c6bf5;}['getRevisionsInDiff'](_0x4b772c){const _0x30aa00=[];for(const _0x3ff6f2 of this['getRevisionsIterator'](_0x4b772c['newRevisionId']))if(_0x30aa00['push'](_0x3ff6f2),_0x3ff6f2['id']===_0x4b772c['oldRevisionId'])break;return _0x30aa00;}*['getRevisionsIterator'](_0x4d3e22,{direction:_0x2f908e='earlier',filter:_0x43c480=()=>!0x0}={}){const _0x5b3486='earlier'===_0x2f908e?0x1:-0x1;let _0x308167=this['_revisions']['get'](_0x4d3e22),_0xaaf6d3=this['getIndex'](_0x308167);for(yield _0x308167;_0x308167;){if(_0xaaf6d3+=_0x5b3486,_0x308167=this['getRevision'](_0xaaf6d3),!_0x308167)return;_0x43c480(_0x308167)&&(yield _0x308167);}}}function m(_0x3f01ef,_0x30b729,_0x6c8713){const t=_0x3f01ef['t'];switch(_0x30b729){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'},_0x6c8713);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x6c8713);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 P={'c':_0x377942,'a':_0x4c0794,'e':_0x421417,'r':_0x525184,'u':_0x44f876};class l extends _0x4011e1{['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[_0x7d3fd1,j,_0x3bf72f];}constructor(_0x5248bc){super(_0x5248bc),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 _0x4d2a71=_0x316b02();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4d2a71},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 _0x332053=this['repository']['getRevision'](0x0),_0x5c2e8f=_0x332053&&null===_0x332053['creator']?_0x332053:null;if(this['_continueCurrentRevision']=!!_0x5c2e8f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5df354=this['_source']['getCurrentRevisionId'](),_0x299a79=this['repository']['getRevision'](_0x5df354);if(_0x299a79)this['_startingVersion']=_0x299a79['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5bbc7b=this['_source']['history']['_operations']['find'](_0x53b33f=>!_0x53b33f['_isInit']),_0x282440=_0x5bbc7b?_0x5bbc7b['baseVersion']:this['_source']['history']['version'];_0x332053?(_0x332053['toVersion']<_0x282440&&_0x332053['_update']({'toVersion':_0x282440}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5c2e8f['id'],this['_startingVersion']=_0x5c2e8f['fromVersion']):(this['_startingVersion']=_0x332053['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x282440,this['_continueCurrentRevision']=!0x1);}}else _0x5c2e8f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5c2e8f['toVersion'],this['editor']['model']['document']['history']['version']),_0x5c2e8f['fromVersion']===_0x5c2e8f['toVersion']?(0x0!==_0x5c2e8f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c2e8f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c2e8f['id'],this['_startingVersion']=_0x5c2e8f['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',_0x24fb6a=>!_0x24fb6a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3d0d33=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2eec86;for(const _0x4ac57f in _0x3d0d33){const _0x2d68f6=_0x4ac57f,_0xa85a55=_0x3d0d33[_0x2d68f6];if('revisionHistoryLicenseKeyValid'==_0xa85a55||'revisionHistoryLicenseKeyInvalid'==_0xa85a55||'revisionHistoryLicenseKeyExpired'==_0xa85a55||'revisionHistoryLicenseKeyDomainLimit'==_0xa85a55||'revisionHistoryLicenseKeyNotAllowed'==_0xa85a55||'revisionHistoryLicenseKeyEvaluationLimit'==_0xa85a55||'revisionHistoryLicenseKeyTrialLimit'==_0xa85a55||'revisionHistoryLicenseKeyDevelopmentLimit'==_0xa85a55||'revisionHistoryLicenseKeyUsageLimit'==_0xa85a55){delete _0x3d0d33[_0x2d68f6],_0x2eec86=_0xa85a55,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2eec86&&_0x3d0d33['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2eec86&&_0x3d0d33['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2eec86&&_0x3d0d33['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2fe49b=this['repository']['getRevision'](0x0),_0x2a3d64=await this['getRevisionDocumentData'](_0x2fe49b),_0x578939=await this['getRevisionRootsAttributes'](_0x2fe49b);this['_replaceEditorDataWithRevisionData'](_0x2a3d64,_0x578939);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x582465){this['_source']=_0x582465;}async['update'](){const _0x2098da=await this['_source']['getLatestVersion']();if(_0x2098da>this['currentRevision']['toVersion']){await this['_loadState']();const _0x72a971=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2098da});_0x72a971['authors']=_0x72a971['authorsIds']['map'](_0x505d16=>this['editor']['plugins']['get']('Users')['getUser'](_0x505d16)),this['currentRevision']['_update'](_0x72a971);}}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'](_0x55298d={},_0x3cf13d=null){const _0x15ee4a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3cf13d>this['currentRevision']['toVersion']&&(_0x3cf13d=null),null===_0x3cf13d&&(_0x3cf13d=await this['_source']['getLatestVersion']());const _0x41f414=this['_getFromVersion'](_0x3cf13d),_0x52c563=this['buildRevisionData']({'from':_0x41f414,'to':_0x3cf13d});if(this['currentRevision']['toVersion']<_0x3cf13d){const _0x42f036=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3cf13d,'to':_0x3cf13d});_0x42f036['authors']=[],_0x42f036['authorsIds']=[],_0x42f036['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x42f036,!0x0),delete _0x42f036['authors'],_0x15ee4a['push'](_0x42f036);}_0x55298d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x55298d['name']=_0x55298d['name']||null,_0x55298d['id']=_0x55298d['id']||_0x316b02(),_0x55298d={..._0x55298d,..._0x52c563};const _0x46de7b=this['addRevisionData'](_0x55298d);_0x15ee4a['push'](_0x55298d);const _0x135ed4=this['repository']['getIndex'](_0x46de7b);if(0x0!==_0x135ed4){const _0x2f0e06=this['repository']['getRevision'](_0x135ed4-0x1);if(_0x2f0e06['fromVersion']!==_0x3cf13d){const _0xabd258=this['_revisionDataBuilder']['getData'](_0x3cf13d,_0x2f0e06['toVersion']),_0x17c21a={'id':_0x2f0e06['id'],'diffData':_0xabd258['diffData'],'authorsIds':_0xabd258['authorsIds'],'authors':_0xabd258['authorsIds']['map'](_0x14d805=>this['editor']['plugins']['get']('Users')['getUser'](_0x14d805)),'fromVersion':_0x3cf13d};_0x2f0e06===this['currentRevision']&&(_0x17c21a['createdAt']=new Date(_0x55298d['createdAt']['getTime']()+0xa)),_0x2f0e06['_update'](_0x17c21a,!0x0),delete _0x17c21a['authors'],_0x15ee4a['push'](_0x17c21a);}}if(this['adapter']){for(const _0x1f6114 of _0x15ee4a)this['_bufferUpdate'](_0x1f6114['id'],_0x1f6114,!0x0);this['sendBufferedUpdates']();}return _0x46de7b;}['addRevisionData'](_0x5597af){const _0xbc6ef5=this['repository']['createRevision'](_0x5597af);return this['adapter']&&_0xbc6ef5['on']('_update',(_0x26d74e,_0x1046ca,_0x1acd5f)=>{_0x1acd5f||(this['_bufferUpdate'](_0x1046ca['id'],_0x1046ca,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xbc6ef5,this['_findInsertionIndex'](_0xbc6ef5)),_0xbc6ef5;}async['getRevisionDocumentData'](_0x16a195){await this['_loadRevisionData'](_0x16a195);const _0x55ee29={};for(const _0x59719b in _0x16a195['diffData']){if(_0x16a195['diffData'][_0x59719b]['attachChange']&&!_0x16a195['diffData'][_0x59719b]['attachChange']['isAttached'])continue;const _0x394fba=this['_removeRevisionMarkers'](JSON['parse'](_0x16a195['diffData'][_0x59719b]['insertions'])),_0xeaf250=this['editor']['editing']['view']['document'],_0x1ea224=new _0x531090(_0xeaf250,_0x394fba['map'](_0x54a78d=>C(_0x54a78d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x55ee29[_0x59719b]=this['editor']['data']['processor']['toData'](_0x1ea224),this['editor']['data']['processor']['useFillerType']('default');}return _0x55ee29;}async['getRevisionRootsAttributes'](_0x58602d){await this['_loadRevisionData'](_0x58602d);const _0x13522c={};for(const _0x2968ec in _0x58602d['diffData'])_0x58602d['diffData'][_0x2968ec]['attachChange']&&!_0x58602d['diffData'][_0x2968ec]['attachChange']['isAttached']||(_0x13522c[_0x2968ec]=_0x58602d['diffData'][_0x2968ec]['attributesAfter']||{});return _0x13522c;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x31b6c0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3eca5d=0x0;_0x3eca5d<_0x31b6c0['length'];_0x3eca5d++){const _0x3ef93f=_0x31b6c0[_0x3eca5d];let _0x5622b3=!0x1;for(const _0x52461c of Object['keys'](_0x3ef93f))void 0x0===_0x3ef93f[_0x52461c]?delete _0x3ef93f[_0x52461c]:'id'!==_0x52461c&&(_0x5622b3=!0x0);_0x5622b3||(_0x31b6c0[_0x3eca5d]=null);}if(_0x31b6c0=_0x31b6c0['filter'](_0x532fe9=>null!==_0x532fe9),!_0x31b6c0['length'])return;for(let _0x506b8e=0x0;_0x506b8e<_0x31b6c0['length'];_0x506b8e++){const _0x4178e7=_0x31b6c0[_0x506b8e];void 0x0!==_0x4178e7['fromVersion']&&void 0x0===_0x4178e7['toVersion']&&(_0x4178e7['toVersion']=this['repository']['getRevision'](_0x4178e7['id'])['toVersion']),void 0x0!==_0x4178e7['toVersion']&&void 0x0===_0x4178e7['fromVersion']&&(_0x4178e7['fromVersion']=this['repository']['getRevision'](_0x4178e7['id'])['fromVersion']);}const _0x1c2b55=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x31b6c0,_0x1c2b55)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xf768ca=>{if(_0xf768ca){for(const _0x2b26b7 of _0xf768ca)this['setRevisionData']({'id':_0x2b26b7['id'],'createdAt':_0x2b26b7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xef7345,_0xc0e1ed){let _0x135152=this['editor']['config']['get']('initialData'),_0x303c29=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x135152){_0x135152={};for(const _0x1136d3 of this['editor']['model']['document']['getRootNames']())_0x135152[_0x1136d3]='';}if('string'==typeof _0x135152&&(_0x135152={'main':_0x135152}),void 0x0===_0x303c29){_0x303c29={};for(const _0x5b5b39 of this['editor']['model']['document']['getRootNames']())_0x303c29[_0x5b5b39]={};}let _0x1baebf=!0x1;const _0x54275b=Object['keys'](_0x135152),_0x57aecd=Object['keys'](_0xef7345);for(const _0x2fe3e0 of _0x54275b){if(_0x135152[_0x2fe3e0]!==_0xef7345[_0x2fe3e0]&&''!==_0x135152[_0x2fe3e0]['trim']()){_0x1baebf=!0x0;break;}if(!_0x50711e(_0x303c29[_0x2fe3e0],_0xc0e1ed[_0x2fe3e0])&&Object['keys'](_0x303c29[_0x2fe3e0])['length']>0x0){_0x1baebf=!0x0;break;}}_0x1baebf||(_0x1baebf=_0x57aecd['some'](_0x2c8f6a=>!this['editor']['model']['document']['getRoot'](_0x2c8f6a))),_0x1baebf&&_0x4a53ea('editor-initial-data-replaced-with-revision-data',{'editorData':_0x135152,'editorRootsAttributes':_0x303c29,'revisionData':_0xef7345,'revisionRootsAttributes':_0xc0e1ed}),this['editor']['config']['set']('initialData',_0xef7345),this['editor']['config']['set']('rootsAttributes',_0xc0e1ed);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4c65d8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4c65d8['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x212ce9){const _0x4cc93b=this['repository']['getRevisions']();_0x4cc93b['reverse']();let _0x53c205=0x0;for(;_0x53c205<_0x4cc93b['length'];){const _0xb692b2=_0x4cc93b[_0x53c205];if(_0xb692b2===this['currentRevision']){_0x53c205++;continue;}if(_0xb692b2['id']===this['_initialRevisionId'])break;const _0x290766=_0x212ce9['toVersion']-_0xb692b2['toVersion']||_0x212ce9['fromVersion']-_0xb692b2['fromVersion'];if(_0x290766>0x0)break;if(_0x290766<0x0)_0x53c205++;else{if(!_0x212ce9['creator']&&_0xb692b2['creator'])break;if(_0xb692b2['creator']||!_0x212ce9['creator']){if(_0x212ce9['createdAt']>_0xb692b2['createdAt'])break;_0x53c205++;}else _0x53c205++;}}return _0x53c205;}['setRevisionData'](_0x24c6ec){const _0x18414d=this['repository']['getRevision'](_0x24c6ec['id']);if(_0x24c6ec['createdAt']&&(_0x24c6ec['createdAt']=new Date(_0x24c6ec['createdAt'])),_0x24c6ec['authorsIds']){const _0x4436dd=this['editor']['plugins']['get']('Users');_0x24c6ec['authors']=_0x24c6ec['authorsIds']['map'](_0x2ab625=>_0x4436dd['getUser'](_0x2ab625));}_0x18414d['_update'](_0x24c6ec,!0x0);}['buildRevisionData']({revision:_0x1e8b65=null,from:_0xae5550=null,to:_0x35db1a=null}){_0xae5550=null!==_0xae5550?_0xae5550:_0x1e8b65['fromVersion'],_0x35db1a=null!==_0x35db1a?_0x35db1a:_0x1e8b65['toVersion'];const _0x3efb1c=this['_revisionDataBuilder']['getData'](_0xae5550,_0x35db1a),_0x570f78={'diffData':_0x3efb1c['diffData'],'authorsIds':_0x3efb1c['authorsIds'],'fromVersion':_0xae5550,'toVersion':_0x35db1a};if(!_0x1e8b65||_0x35db1a!==_0x1e8b65['toVersion']){const _0x1e0eeb=_0x35db1a-0x1,_0x45a435=this['_source']['history']['getOperation'](_0x1e0eeb);_0x570f78['createdAt']=_0x45a435&&_0x45a435['createdAt']||new Date();}if(this['_loadedStateData']&&_0xae5550===this['_loadedStateData']['fromVersion']){for(const _0x38afd8 of this['_loadedStateData']['authors'])_0x570f78['authorsIds']['includes'](_0x38afd8['id'])||_0x570f78['authorsIds']['push'](_0x38afd8['id']);}return _0x570f78;}['_loadRevisionData'](_0x54cfb0){if(!_0x54cfb0||_0x54cfb0['diffData'])return Promise['resolve']();{const _0x586e79=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x586e79,'revisionId':_0x54cfb0['id']})['then'](_0x5d99d5=>{_0x54cfb0['diffData']=_0x5d99d5['diffData'];});}}['_bufferUpdate'](_0x36b381,_0x54a341,_0x20c8a2){if(this['_bufferedUpdates']['has'](_0x36b381)){const _0x1e88a1=this['_bufferedUpdates']['get'](_0x36b381);_0x54a341=_0x20c8a2?{..._0x1e88a1,..._0x54a341}:{..._0x54a341,..._0x1e88a1};}this['_bufferedUpdates']['set'](_0x36b381,_0x54a341);}['_getFromVersion'](_0x2495f5){const _0x52787a=this['repository']['getRevisions']();_0x52787a['reverse'](),_0x52787a['shift']();const _0x59e854=_0x52787a['find'](_0x26ce32=>_0x26ce32['toVersion']<=_0x2495f5)['toVersion'];return _0x59e854<this['_startingVersion']?this['_startingVersion']:_0x59e854;}['_createInitialRevision'](_0x150ccb){const _0x4e08f4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4e08f4)this['_initialRevisionId']=_0x4e08f4['id'];else{const _0x3c73cc=!this['editor']['model']['document']['roots']['find'](_0x12fe74=>this['editor']['model']['hasContent'](_0x12fe74)),_0x26a2b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b2c06=m(this['editor']['locale'],_0x3c73cc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x150ccb,'to':_0x150ccb,'id':this['_initialRevisionId'],'name':_0x4b2c06,'creatorId':_0x26a2b8});}}['_createCurrentRevision'](_0x397f55){const _0x2cbff3=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2cbff3),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x397f55,'to':_0x397f55,'id':_0x2cbff3,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5f44d4,from:_0x5a81ef,to:_0x355053,creatorId:_0x5b778b,id:_0x2b0e44}){const _0x58764a=this['buildRevisionData']({'from':_0x5a81ef,'to':_0x355053});_0x58764a['name']=_0x5f44d4,_0x58764a['creatorId']=_0x5b778b,_0x58764a['id']=_0x2b0e44;const _0x2231b6=this['addRevisionData'](_0x58764a);return this['adapter']&&this['_bufferUpdate'](_0x58764a['id'],_0x58764a,!0x0),_0x2231b6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2cd8dc){return(_0x2cd8dc=_0x2cd8dc['filter'](_0x79b15e=>!_0x79b15e['name']||'revision-start'!==_0x79b15e['name']&&'revision-end'!==_0x79b15e['name']))['forEach'](_0x286492=>{'string'!=typeof _0x286492&&(_0x286492['children']=this['_removeRevisionMarkers'](_0x286492['children']),_0x286492['attributes']=_0x286492['attributes']['filter'](_0x1dfcc2=>!_0x1dfcc2[0x0]['startsWith']('data-revision-')));}),_0x2cd8dc;}}function C(_0xd7302c,_0x8330c3){const _0x562a2d=_0x8330c3['editing']['view']['document'];if('string'==typeof _0xd7302c)return new _0x334ef4(_0x562a2d,_0xd7302c);{const _0x14b628=_0xd7302c['children']['map'](_0x2303c9=>C(_0x2303c9,_0x8330c3));return new(P[_0xd7302c['type']]||_0x3564d6)(_0x562a2d,_0xd7302c['name'],_0xd7302c['attributes'],_0x14b628);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4b3335){this['editor']=_0x4b3335,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'](_0x173811){this['source']=_0x173811;const _0x4f0028=new Map(),_0x3c12e9=new Map(),_0x3f1fa9=this['editor']['model']['document']['roots']['map'](_0x1bfa6d=>_0x1bfa6d['rootName']);for(const _0x1364bc of _0x3f1fa9){const _0x4af53d=this['editor']['model']['document']['getRoot'](_0x1364bc),_0x2e3fdf=T(_0x4af53d);_0x4f0028['set'](_0x1364bc,_0x2e3fdf),_0x3c12e9['set'](_0x1364bc,Object['fromEntries'](_0x4af53d['getAttributes']()));}const _0x3e1ec3=Array['from'](this['editor']['model']['markers'])['map'](_0x33701e=>[_0x33701e['name'],_0x33701e['getRange']()]),_0x52702b=this['source']['version'];this['_saveMetaData'](_0x52702b,_0x4f0028,_0x3e1ec3,_0x3c12e9),this['_startingRevisionId']=this['_revisionId'];const _0xc6c9ac=new Map(),_0x266a75=new Map();for(const _0x45cfc6 of _0x3f1fa9){const _0x4974e3=F(_0x45cfc6);_0xc6c9ac['set'](_0x45cfc6,_0x4974e3),_0x266a75['set'](_0x45cfc6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xc6c9ac,[],_0x266a75);}['getData'](_0x403e1c,_0x140cb2){if(this['_lastFrom']===_0x403e1c&&this['_lastTo']<=_0x140cb2)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x140cb2,!0x0);else{if(!this['_savedMetaData']['has'](_0x403e1c)){const _0x2dbed7=this['_getPreviousFrom'](_0x403e1c);this['_calculateMetaData'](_0x2dbed7,_0x403e1c,!0x1);}this['_calculateMetaData'](_0x403e1c,_0x140cb2,!0x0);}return this['_lastFrom']=_0x403e1c,this['_lastTo']=_0x140cb2,this['_getState']();}['loadState'](_0x3f3c62){this['_reset'](),this['_lastFrom']=_0x3f3c62['fromVersion'],this['_lastTo']=_0x3f3c62['toVersion'];for(const _0x5f3926 in _0x3f3c62['diffData']){const _0x16f0a1=_0x3f3c62['diffData'][_0x5f3926]['attachChange'],_0x50c413=_0x3bd5f8(_0x3f3c62['diffData'][_0x5f3926]['attributesBefore'])||{},_0x5cb073=this['_makeModelFromViewString'](_0x3f3c62['diffData'][_0x5f3926]['deletions']);_0x5cb073['rootName']=_0x5f3926,_0x5cb073['_isAttached']=!_0x16f0a1||!_0x16f0a1['isAttached'],_0x5cb073['isAttached']=()=>_0x5cb073['_isAttached'],this['_baseRoots']['set'](_0x5f3926,_0x5cb073),this['_baseRootsAttributes']['set'](_0x5f3926,_0x50c413),_0x16f0a1&&this['_touchedRoots']['set'](_0x5f3926,_0x16f0a1);const _0x253514=this['_makeIdsRoot'](_0x5cb073);this['_baseIdsRoots']['set'](_0x5f3926,_0x253514);for(const [_0x3e34f7,_0x5d00d6]of _0x5cb073['markers']){if(!_0x3e34f7['startsWith']('revision:'))continue;const _0x7f732e=_0x3e34f7['split'](':')[0x2];for(const _0x33a159 of _0x5d00d6['getWalker']({'singleCharacters':!0x0})){const _0x9c3c90=this['_getVidAttributeName'](_0x33a159),_0x2bb5b5='elementEnd'==_0x33a159['type']?_0x33a159['previousPosition']['path']['slice'](0x0,-0x1):_0x33a159['previousPosition']['path'],_0x2d5a39=_0x253514['getNodeByPath'](_0x2bb5b5)['getAttribute'](_0x9c3c90);this['_touched']['set'](_0x2d5a39,{'userId':_0x7f732e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x52f86a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4ba05a=>!this['_touched']['has'](_0x4ba05a));let _0xa11c0e=0x0;const _0x338961=new Map();for(const _0x4c404a in _0x3f3c62['diffData']){const _0x346575=_0x3f3c62['diffData'][_0x4c404a]['attachChange'],_0x1a4e11=_0x3bd5f8(_0x3f3c62['diffData'][_0x4c404a]['attributesAfter'])||{},_0x1d374c=this['_makeModelFromViewString'](_0x3f3c62['diffData'][_0x4c404a]['insertions']);_0x1d374c['rootName']=_0x4c404a,_0x1d374c['_isAttached']=!_0x346575||_0x346575['isAttached'],_0x1d374c['isAttached']=()=>_0x1d374c['_isAttached'],this['_diffRoots']['set'](_0x4c404a,_0x1d374c),this['_diffRootsAttributes']['set'](_0x4c404a,_0x1a4e11);const _0x4c9429=this['_makeIdsRoot'](_0x1d374c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4c404a,_0x4c9429),_0x338961['set'](_0x4c404a,_0x1d374c['isAttached']()?_0x1a4e11:{});for(const [_0x3f42f9,_0x250213]of _0x1d374c['markers']){if(!_0x3f42f9['startsWith']('revision:'))continue;const _0x2a9bb8=_0x3f42f9['split'](':')[0x2];for(const _0x569430 of _0x250213['getWalker']({'singleCharacters':!0x0})){const _0x5013fb=this['_getVidAttributeName'](_0x569430),_0x4e0a20=this['_revisionId']++,_0x3469f4='elementEnd'==_0x569430['type']?_0x569430['previousPosition']['path']['slice'](0x0,-0x1):_0x569430['previousPosition']['path'];_0x4c9429['getNodeByPath'](_0x3469f4)['_setAttribute'](_0x5013fb,_0x4e0a20),this['_touched']['set'](_0x4e0a20,{'userId':_0x2a9bb8});}}for(const _0x3db3e6 of this['editor']['model']['createRangeIn'](_0x1d374c)['getWalker']({'singleCharacters':!0x0})){const _0x20525f=this['_getVidAttributeName'](_0x3db3e6),_0x2204dc='elementEnd'==_0x3db3e6['type']?_0x3db3e6['previousPosition']['path']['slice'](0x0,-0x1):_0x3db3e6['previousPosition']['path'],_0x2d0104=_0x4c9429['getNodeByPath'](_0x2204dc);_0x2d0104['getAttribute'](_0x20525f)>0x0||_0x2d0104['_setAttribute'](_0x20525f,_0x52f86a[_0xa11c0e++]);}for(const [_0x9d005a,_0x522c4d]of _0x1d374c['markers'])_0x9d005a['startsWith']('revision:')||this['_markers']['set'](_0x9d005a,_0x522c4d);}const _0x47a800=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x47a800),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x47a800,0x1));const _0x4c1a17=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4c1a17),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c1a17,0x1));const _0x1d2a31=Array['from'](this['_diffRoots'])['map'](([_0x2f9d4e,_0x3a0832])=>[_0x2f9d4e,T(_0x3a0832)]);this['_saveMetaData'](this['_lastTo'],_0x1d2a31,this['_markers'],_0x338961);}['_makeModelFromViewString'](_0x1e1771){const _0x43294a=JSON['parse'](_0x1e1771),_0x4ce08e=this['editor']['editing']['view']['document'],_0x12e73d=new _0x531090(_0x4ce08e,_0x43294a['map'](_0x3135f7=>C(_0x3135f7,this['editor'])));return this['editor']['data']['toModel'](_0x12e73d);}['_saveMetaData'](_0x6d1c57,_0x5b59a8,_0xa46c38,_0x5a1628){const _0x2f8738=new Map(_0x5b59a8),_0x4eebd0=new Map(_0x3bd5f8(_0x5a1628)),_0x4021c=new Map();for(const [_0x32cd40,_0x4538c7]of _0xa46c38)_0x4021c['set'](_0x32cd40,{'start':_0x4538c7['start']['clone'](),'end':_0x4538c7['end']['clone'](),'rootName':_0x4538c7['root']['rootName']});this['_savedMetaData']['set'](_0x6d1c57,{'roots':_0x2f8738,'markers':_0x4021c,'rootsAttributes':_0x4eebd0});}['_removeMetaData'](_0xdcb301){this['_savedMetaData']['delete'](_0xdcb301);}['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'](_0x41bf34,_0x4fcbd7=null){let _0x255d1f=null;_0x41bf34['is']('documentFragment')||(_0x255d1f=new ft(_0x41bf34['name'],{'vid_start':null===_0x4fcbd7?this['_revisionId']++:_0x4fcbd7++}));const _0x1b7ea3=[];for(const _0x21380c of _0x41bf34['getChildren']())if(_0x21380c['is']('element')){_0x1b7ea3['push'](this['_makeIdsRoot'](_0x21380c,_0x4fcbd7));const _0x36bedb=_0x1b7ea3[_0x1b7ea3['length']-0x1];null!==_0x4fcbd7&&(_0x4fcbd7=_0x36bedb['is']('element','$text')?_0x36bedb['getAttribute']('vid')+0x1:_0x36bedb['getAttribute']('vid_end')+0x1);}else{for(let _0x4528b4=0x0;_0x4528b4<_0x21380c['offsetSize'];_0x4528b4++)_0x1b7ea3['push'](new ft('$text',{'vid':null===_0x4fcbd7?this['_revisionId']++:_0x4fcbd7++}));}if(_0x41bf34['is']('documentFragment')){const _0x5611c8=F(_0x41bf34['rootName']);return _0x5611c8['_insertChild'](0x0,_0x1b7ea3),_0x5611c8;}return _0x255d1f['_setAttribute']('vid_end',null===_0x4fcbd7?this['_revisionId']++:_0x4fcbd7++),_0x255d1f['_insertChild'](0x0,_0x1b7ea3),_0x255d1f;}['_calculateMetaData'](_0x488d63,_0x5a687e,_0x3e7794){this['_reset']();const {roots:_0x406975,markers:_0x2aa37f,rootsAttributes:_0x40c257}=this['_savedMetaData']['get'](_0x488d63);this['_baseRoots']=new Map(_0x406975),this['_baseRootsAttributes']=new Map(_0x3bd5f8(_0x40c257));for(const [_0x2f9c5c,_0x443c88]of this['_baseRoots'])if('$graveyard'!==_0x2f9c5c&&(this['_diffRoots']['set'](_0x2f9c5c,T(_0x443c88)),this['_diffRootsAttributes']=new Map(_0x3bd5f8(_0x40c257)),_0x3e7794)){const _0x4518a3=this['_revisionId'];this['_idsRoots']['set'](_0x2f9c5c,this['_makeIdsRoot'](_0x443c88)),this['_baseIdsRoots']['set'](_0x2f9c5c,this['_makeIdsRoot'](_0x443c88,_0x4518a3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3e7794&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x442b9d,_0x268693]of _0x2aa37f){const _0x46e0bf=this['_baseRoots']['get'](_0x268693['rootName']),_0x32313c=this['_diffRoots']['get'](_0x268693['rootName']),_0x373ac1=new vt(this['_fixPosition'](_0x268693['start'],_0x46e0bf),this['_fixPosition'](_0x268693['end'],_0x46e0bf)),_0x4f79b8=this['_fixRange'](_0x373ac1,_0x32313c);_0x46e0bf['markers']['set'](_0x442b9d,_0x373ac1),this['_markers']['set'](_0x442b9d,_0x4f79b8);}this['_applyOperations'](_0x488d63,_0x5a687e,_0x3e7794);}['_applyOperations'](_0x5336cf,_0x54bcc7,_0x59adda){for(const _0x56ac2e of this['source']['getOperations'](_0x5336cf,_0x54bcc7))this['_handleOperation'](_0x56ac2e,_0x59adda);for(const _0x245670 of this['_diffRoots']['values']())_0x245670['markers']['clear']();for(const [_0x506422,_0x1e1b51]of this['_markers']){this['_diffRoots']['get'](_0x1e1b51['root']['rootName'])['markers']['set'](_0x506422,_0x1e1b51['clone']());}const _0x43c461=new Map(),_0x590058=new Map();for(const [_0x2ab75b,_0x1302d1]of this['_diffRoots'])_0x43c461['set'](_0x2ab75b,T(_0x1302d1)),_0x590058['set'](_0x2ab75b,this['_diffRootsAttributes']['get'](_0x2ab75b));this['_saveMetaData'](_0x54bcc7,_0x43c461,this['_markers'],_0x590058);}['_getPreviousFrom'](_0xfd127b){const _0x3da10b=Array['from'](this['_savedMetaData']['keys']());_0x3da10b['sort']((_0x53d7e8,_0x49f271)=>_0x53d7e8-_0x49f271),_0x3da10b['reverse']();for(const _0x538556 of _0x3da10b)if(_0x538556<_0xfd127b)return _0x538556;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x390131,_0x5b369a){const _0x59ea31=Array['from'](_0x5b369a['markers'])['map'](([_0x5879ba,_0x43214e])=>[_0x5879ba,this['_fixRange'](_0x43214e,_0x390131)]);_0x390131['markers']=new Map(_0x59ea31);}['_transformMarkers'](_0x34504c){for(const _0x14daf3 of this['_markers']['values']()){const _0x8afa31=_0x14daf3['getTransformedByOperation'](_0x34504c),_0x1c92fa=vt['_createFromRanges'](_0x8afa31);_0x14daf3['start']=_0x1c92fa['start'],_0x14daf3['end']=_0x1c92fa['end'];}}['_handleOperation'](_0x126b4d,_0x33810c){if('addRoot'!=_0x126b4d['type']&&'detachRoot'!=_0x126b4d['type']){if('insert'==_0x126b4d['type']){const _0xf254b8=_0x126b4d['position']['root']['rootName'];this['_diffRoots']['has'](_0xf254b8)||(this['_diffRoots']['set'](_0xf254b8,F(_0xf254b8,!0x0)),this['_diffRootsAttributes']['set'](_0xf254b8,{}),_0x33810c&&this['_idsRoots']['set'](_0xf254b8,F(_0xf254b8,!0x0)));}else{if('addRootAttribute'==_0x126b4d['type']||'removeRootAttribute'==_0x126b4d['type']||'changeRootAttribute'==_0x126b4d['type'])return void this['_handleRootAttributeOperation'](_0x126b4d);'marker'==_0x126b4d['type']&&this['_handleMarkerOperation'](_0x126b4d);}if('marker'!==_0x126b4d['type']){const _0x1d837a=this['_cloneOperation'](_0x126b4d,this['_diffRoots']);_0x1d837a['_execute'](),this['_transformMarkers'](_0x1d837a);}if(_0x33810c)switch(_0x126b4d['type']){case'insert':this['_handleInsertOperation'](_0x126b4d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x126b4d);break;case'merge':this['_handleMergeOperation'](_0x126b4d);break;case'split':this['_handleSplitOperation'](_0x126b4d);}}else this['_handleRootOperation'](_0x126b4d,_0x33810c);}['_cloneOperation'](_0x303066,_0x3e1c33){const _0x2a6c68=_0x303066['clone']();return _0x2a6c68['_authorId']=_0x303066['_authorId'],this['_fixOperation'](_0x2a6c68,_0x3e1c33),_0x2a6c68;}['_getBaseVids'](_0x45e4ea){return _0x45e4ea['map'](_0x37c48d=>{const _0x5aa251=this['_getVidAttributeName'](_0x37c48d);return Number(_0x37c48d['item']['getAttribute'](_0x5aa251));});}['_generateTape'](_0x48fba2,_0x2cd454){if(_0x48fba2['is']('element','$text'))_0x2cd454['push']({'item':_0x48fba2,'type':'text'});else{_0x48fba2['is']('element')&&_0x2cd454['push']({'item':_0x48fba2,'type':'elementStart'});for(const _0x293d30 of _0x48fba2['getChildren']())this['_generateTape'](_0x293d30,_0x2cd454);_0x48fba2['is']('element')&&_0x2cd454['push']({'item':_0x48fba2,'type':'elementEnd'});}return _0x2cd454;}['_getState'](){const _0x2159b2=new Map(this['_touched']),_0x1cdd79=new Map(_0x2159b2),_0x3317bb=new Map(),_0x4d639a={'insertions':{},'deletions':{}},_0x1645f3={'insertions':{},'deletions':{}},_0xa23487=new Map(),_0xc7605a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xc7605a['delete']('$graveyard');for(const _0x106ca5 of _0xc7605a){const _0x1482b9=this['_diffRoots']['get'](_0x106ca5)||F(_0x106ca5,!0x1),_0x4a9c67=this['_baseRoots']['get'](_0x106ca5)||F(_0x106ca5,!0x1);_0x1482b9['isAttached']()||_0x4a9c67['isAttached']()?(_0x4d639a['insertions'][_0x106ca5]=T(_0x1482b9),_0x4d639a['deletions'][_0x106ca5]=T(_0x4a9c67),this['_copyMarkers'](_0x4d639a['deletions'][_0x106ca5],_0x4a9c67),this['_copyMarkers'](_0x4d639a['insertions'][_0x106ca5],_0x1482b9),_0x1645f3['insertions'][_0x106ca5]=this['_generateTape'](this['_idsRoots']['get'](_0x106ca5),[]),_0x1645f3['deletions'][_0x106ca5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x106ca5)||F(_0x106ca5,!0x1),[])):_0xc7605a['delete'](_0x106ca5);}for(const _0x221cee of _0xc7605a){const _0x1b0ee3=_0x1645f3['insertions'][_0x221cee];for(const _0x4ca790 of _0x1b0ee3){const _0xe50654=this['_getVidAttributeName'](_0x4ca790),_0x46ba18=_0x4ca790['item']['getAttribute'](_0xe50654);_0x1cdd79['delete'](_0x46ba18),_0x46ba18>=this['_startingRevisionId']&&_0x3317bb['set'](_0x46ba18,_0x2159b2['get'](_0x46ba18));}}for(const _0x559685 of _0xc7605a){const _0x53609e=_0x1645f3['insertions'][_0x559685],_0x2ee577=this['_getBaseVids'](_0x1645f3['deletions'][_0x559685]);let _0x493a05=0x0;for(const _0x333d40 of _0x53609e){const _0x359b43=this['_getVidAttributeName'](_0x333d40),_0x658fc1=_0x333d40['item']['getAttribute'](_0x359b43);if(!_0x3317bb['has'](_0x658fc1)&&!_0xa23487['has'](_0x658fc1)){if(_0x1cdd79['has'](_0x658fc1))_0x493a05++;else{if(_0x658fc1!=_0x2ee577[_0x493a05]){const _0x8b79d=_0x2159b2['get'](_0x658fc1)||_0x2159b2['get'](_0x2ee577[_0x493a05]);for(;_0x658fc1!=_0x2ee577[_0x493a05];)_0x1cdd79['has'](_0x2ee577[_0x493a05])||(_0xa23487['set'](_0x2ee577[_0x493a05],_0x8b79d),_0x2159b2['set'](_0x2ee577[_0x493a05],_0x8b79d)),_0x493a05++;}_0x493a05++;}}}}for(const _0x4617ec of _0xc7605a){const _0x263409=_0x1645f3['insertions'][_0x4617ec];for(const _0x3bf32c of _0x263409){const _0x444ed8=this['_getVidAttributeName'](_0x3bf32c),_0x4f9bb2=_0x3bf32c['item']['getAttribute'](_0x444ed8);if(_0xa23487['has'](_0x4f9bb2)){const _0x4f7dec=_0xa23487['get'](_0x4f9bb2);_0x1cdd79['has'](_0x4f9bb2)||_0x1cdd79['set'](_0x4f9bb2,{..._0x4f7dec}),_0x3317bb['set'](_0x4f9bb2,{..._0x4f7dec});}}}for(const _0x4c9793 of _0x1cdd79['keys']())_0x4c9793>=this['_startingRevisionId']&&_0x1cdd79['delete'](_0x4c9793);const _0x511981=new Map();for(const _0x592fd4 of _0xc7605a){let _0x53e5a6=_0x1645f3['insertions'][_0x592fd4];for(const _0x18dbba of _0x53e5a6)if(_0x18dbba['item']['is']('element','tableCell')){const _0x385da1=this['_getVidAttributeName'](_0x18dbba),_0x1dc8a2=_0x18dbba['item']['getAttribute'](_0x385da1);if(_0x3317bb['has'](_0x1dc8a2)){const _0xd80e3=_0x18dbba['item']['parent']['parent']['getAttribute']('vid_start'),_0x272600=_0x511981['get'](_0xd80e3)||new Set();_0x272600['add'](_0x3317bb['get'](_0x1dc8a2)['userId']),_0x511981['set'](_0xd80e3,_0x272600);}}_0x53e5a6=_0x1645f3['deletions'][_0x592fd4];for(const _0x4d070e of _0x53e5a6)if(_0x4d070e['item']['is']('element','tableCell')){const _0x4b8cb2=this['_getVidAttributeName'](_0x4d070e),_0x1dad88=_0x4d070e['item']['getAttribute'](_0x4b8cb2);if(_0x1cdd79['has'](_0x1dad88)){const _0x35dc49=_0x4d070e['item']['parent']['parent']['getAttribute']('vid_start'),_0x416f96=_0x511981['get'](_0x35dc49)||new Set();_0x416f96['add'](_0x1cdd79['get'](_0x1dad88)['userId']),_0x511981['set'](_0x35dc49,_0x416f96);}}for(const _0x45d2aa of _0x511981['keys']())(_0x3317bb['has'](_0x45d2aa)||_0x1cdd79['has'](_0x45d2aa))&&_0x511981['delete'](_0x45d2aa);}for(const _0x3816c4 of _0xc7605a){const _0x566f3e=_0x1645f3['insertions'][_0x3816c4];let _0x15635a=null,_0x34b0aa=null;for(const _0x1aa5cd of _0x566f3e){const _0x18050b=this['_getVidAttributeName'](_0x1aa5cd),_0xd63b86=_0x1aa5cd['item']['getAttribute'](_0x18050b),_0x2324e9=_0x511981['get'](_0xd63b86);_0x2324e9&&'elementStart'==_0x1aa5cd['type']&&(_0x15635a=Array['from'](_0x2324e9)[0x0],_0x34b0aa=_0x1aa5cd['item']['getAttribute']('vid_end')),_0x15635a&&(_0x1cdd79['set'](_0xd63b86,{'userId':_0x15635a}),_0x3317bb['set'](_0xd63b86,{'userId':_0x15635a})),_0xd63b86==_0x34b0aa&&(_0x15635a=null,_0x34b0aa=null);}}const _0x545df0={},_0x4b7bf0=new Set();for(const _0x54e81b of _0xc7605a){const _0x4654a8=_0x4d639a['deletions'][_0x54e81b],_0x493ef7=_0x4d639a['insertions'][_0x54e81b];for(const {userId:_0x146415}of this['_touchedMarkers']['values']())null!==_0x146415&&_0x4b7bf0['add'](_0x146415);for(const {userId:_0x3642fa}of this['_touchedRoots']['values']())null!==_0x3642fa&&_0x4b7bf0['add'](_0x3642fa);this['_markChanges'](_0x493ef7,_0x1645f3['insertions'][_0x54e81b],_0x3317bb,'insertion',_0x4b7bf0),this['_markChanges'](_0x4654a8,_0x1645f3['deletions'][_0x54e81b],_0x1cdd79,'deletion',_0x4b7bf0),_0x545df0[_0x54e81b]={'insertions':this['_prepareViewToSave'](_0x493ef7),'deletions':this['_prepareViewToSave'](_0x4654a8),'attachChange':this['_touchedRoots']['get'](_0x54e81b)||null,'attributesBefore':_0x3bd5f8(this['_baseRootsAttributes']['get'](_0x54e81b))||{},'attributesAfter':_0x3bd5f8(this['_diffRootsAttributes']['get'](_0x54e81b))};}return{'diffData':_0x545df0,'authorsIds':Array['from'](_0x4b7bf0)};}['_processRootBeforeSave'](_0x399275){for(const [,_0x11cafa]of _0x399275['markers']){const _0x14ba4a=_0x11cafa['start']['getAncestors']()['filter'](_0x23bc45=>'tableCell'==_0x23bc45['name']);for(const _0x259b99 of _0x14ba4a)0x1==_0x259b99['childCount']&&_0x259b99['getChild'](0x0)['is']('element','paragraph')&&_0x259b99['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x307cf2){this['_processRootBeforeSave'](_0x307cf2);const _0x873775=this['editor']['data']['toView'](_0x307cf2,{}),_0x193d11=Array['from'](_0x873775['getChildren']())['map'](_0x2b85c4=>this['_getViewJson'](_0x2b85c4));return JSON['stringify'](_0x193d11);}['_getViewJson'](_0x2ff2e3){if(_0x2ff2e3['is']('$text'))return _0x2ff2e3['data'];{const _0x1d83a0=_0x2ff2e3;return{'type':Object['keys'](P)['find'](_0x238282=>_0x2ff2e3 instanceof P[_0x238282]),'name':_0x1d83a0['name'],'attributes':Array['from'](_0x1d83a0['getAttributes']()),'children':Array['from'](_0x1d83a0['getChildren']())['map'](_0x12faef=>this['_getViewJson'](_0x12faef))};}}['_markChanges'](_0x1c5690,_0x442db4,_0x4c27ba,_0x4610d5,_0x827bb){let _0x463aa9=null,_0x5521a6=null,_0x2ebf94=0x0;const _0x1115e4=this['editor']['model'];for(let _0xd1b339=0x0;_0xd1b339<_0x442db4['length'];_0xd1b339++){const _0x4385fa=this['_getVidAttributeName'](_0x442db4[_0xd1b339]),_0xf08a27=_0x442db4[_0xd1b339]['item']['getAttribute'](_0x4385fa),_0x1bf245=_0x4c27ba['get'](_0xf08a27),_0xf1b1b7=_0xd1b339==_0x442db4['length']-0x1;(!_0x463aa9&&_0x1bf245&&(_0x463aa9=_0x1bf245,_0x5521a6=_0x442db4[_0xd1b339]),_0x463aa9&&(!_0x1bf245||_0x1bf245['userId']!=_0x463aa9['userId']))&&(_0x4134ae(_0x1bf245,B(_0x5521a6,_0x1c5690,_0x1115e4),B(_0x442db4[_0xd1b339],_0x1c5690,_0x1115e4)),_0x463aa9=_0x1bf245||null,_0x5521a6=_0x1bf245?_0x442db4[_0xd1b339]:null),_0x463aa9&&_0xf1b1b7&&_0x4134ae(_0x1bf245,B(_0x5521a6,_0x1c5690,_0x1115e4),J(_0x442db4[_0xd1b339],_0x1c5690,_0x1115e4));}function _0x4134ae(_0x5dfb11,_0x2d9a23,_0x5e1b4b){const _0x111d08=_0x463aa9['userId'],_0x2c4ddd='revision:'+_0x4610d5+':'+_0x111d08+':'+_0x2ebf94++,_0xdabf97=_0x1115e4['createRange'](_0x2d9a23,_0x5e1b4b);_0x1c5690['markers']['set'](_0x2c4ddd,_0xdabf97),null!==_0x111d08&&_0x827bb['add'](_0x111d08);}}['_getVidAttributeName'](_0x1443f6){switch(_0x1443f6['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13d5f1,_0x2e8c1e){_0x13d5f1['baseVersion']=null;for(const _0x1dfaeb in _0x13d5f1){const _0x5cc091=_0x13d5f1[_0x1dfaeb];if(_0x5cc091 instanceof gt){const _0xd7a01b=_0x2e8c1e['get'](_0x5cc091['root']['rootName']);_0x13d5f1[_0x1dfaeb]=this['_fixPosition'](_0x5cc091,_0xd7a01b);}if(_0x5cc091 instanceof vt){const _0x27fbcb=_0x2e8c1e['get'](_0x5cc091['root']['rootName']);_0x13d5f1[_0x1dfaeb]=this['_fixRange'](_0x5cc091,_0x27fbcb);}'root'===_0x1dfaeb&&(_0x13d5f1['root']=_0x2e8c1e['get'](_0x13d5f1['root']['rootName']));}}['_fixRange'](_0x539c1b,_0x43e6a4){return this['editor']['model']['createRange'](this['_fixPosition'](_0x539c1b['start'],_0x43e6a4),this['_fixPosition'](_0x539c1b['end'],_0x43e6a4));}['_fixPosition'](_0x4b1325,_0x2f43bf){return this['editor']['model']['createPositionFromPath'](_0x2f43bf,_0x4b1325['path'],_0x4b1325['stickiness']);}['_handleInsertOperation'](_0x46c94c){const _0x2b13ea=this['_idsRoots']['get'](_0x46c94c['position']['root']['rootName']),_0x15d75b=this['_fixPosition'](_0x46c94c['position'],_0x2b13ea),_0x531b33=null===_0x46c94c['_authorId']?null:_0x46c94c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5564b7=_0x15d75b['parent'],_0xa4e918=this['_revisionId'],_0x281c29=[];for(const _0x131546 of _0x46c94c['nodes'])if(_0x131546['is']('element'))_0x281c29['push'](this['_makeIdsRoot'](_0x131546));else{for(let _0x3473af=0x0;_0x3473af<_0x131546['offsetSize'];_0x3473af++)_0x281c29['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3c738b=this['_revisionId'];for(let _0x2396fa=_0xa4e918;_0x2396fa<_0x3c738b;_0x2396fa++)this['_touched']['set'](_0x2396fa,{'userId':_0x531b33});_0x5564b7['_insertChild'](_0x15d75b['offset'],_0x281c29);}['_handleMoveOperation'](_0x3f2d6a){(_0x3f2d6a=this['_cloneOperation'](_0x3f2d6a,this['_idsRoots']))['_execute']();const _0x586d16=null===_0x3f2d6a['_authorId']?null:_0x3f2d6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52230a=_0x3f2d6a['getMovedRangeStart'](),_0x50861a=_0x52230a['parent'],_0x379d6d=_0x52230a['offset'];!function _0x43d156(_0x72e5a5,_0x36474b,_0x32a470,_0x7c7073){for(let _0x2d618a=_0x32a470;_0x2d618a<_0x7c7073;_0x2d618a++){const _0x595125=_0x36474b['getChild'](_0x2d618a);_0x595125['is']('element','$text')?_0x72e5a5['set'](_0x595125['getAttribute']('vid'),{'userId':_0x586d16}):(_0x72e5a5['set'](_0x595125['getAttribute']('vid_start'),{'userId':_0x586d16}),_0x43d156(_0x72e5a5,_0x595125,0x0,_0x595125['childCount']),_0x72e5a5['set'](_0x595125['getAttribute']('vid_end'),{'userId':_0x586d16}));}}(this['_touched'],_0x50861a,_0x379d6d,_0x379d6d+_0x3f2d6a['howMany']);}['_handleMergeOperation'](_0x2688cd){const _0xe38972=null===(_0x2688cd=this['_cloneOperation'](_0x2688cd,this['_idsRoots']))['_authorId']?null:_0x2688cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34fde=_0x2688cd['targetPosition']['parent'],_0x562e7b=_0x2688cd['sourcePosition']['parent'],_0x109f38=_0x34fde['getAttribute']('vid_end'),_0x45d962=_0x562e7b['getAttribute']('vid_start');_0x34fde['_setAttribute']('vid_end',_0x562e7b['getAttribute']('vid_end')),_0x562e7b['_setAttribute']('vid_end',_0x109f38),this['_touched']['set'](_0x45d962,{'userId':_0xe38972}),this['_touched']['set'](_0x109f38,{'userId':_0xe38972}),_0x2688cd['_execute']();}['_handleSplitOperation'](_0x3c47f5){const _0x37bcf9=null===(_0x3c47f5=this['_cloneOperation'](_0x3c47f5,this['_idsRoots']))['_authorId']?null:_0x3c47f5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x581d34=_0x3c47f5['graveyardPosition'],_0x16f3fb=_0x3c47f5['splitPosition']['parent'];_0x3c47f5['_execute']();const _0x44a4ef=_0x16f3fb['getAttribute']('vid_end'),_0x526694=_0x3c47f5['insertionPosition']['nodeAfter'];if(_0x581d34){const _0x1d416b=_0x526694['getAttribute']('vid_end'),_0x1372c5=_0x16f3fb['getAttribute']('vid_end');_0x16f3fb['_setAttribute']('vid_end',_0x1d416b),_0x526694['_setAttribute']('vid_end',_0x1372c5),this['_touched']['set'](_0x16f3fb['getAttribute']('vid_end'),{'userId':_0x37bcf9}),this['_touched']['set'](_0x526694['getAttribute']('vid_start'),{'userId':_0x37bcf9});}else{const _0x443d73=this['_revisionId']++,_0xf04f02=this['_revisionId']++;_0x16f3fb['_setAttribute']('vid_end',_0x443d73),_0x526694['_setAttribute']('vid_start',_0xf04f02),_0x526694['_setAttribute']('vid_end',_0x44a4ef),this['_touched']['set'](_0x443d73,{'userId':_0x37bcf9}),this['_touched']['set'](_0xf04f02,{'userId':_0x37bcf9});}}['_handleMarkerOperation'](_0x550eca){if(!_0x550eca['affectsData'])return;const _0x18e5b6=(_0x550eca=this['_cloneOperation'](_0x550eca,this['_diffRoots']))['oldRange']?_0x550eca['oldRange']['root']:null,_0x1b0e41=_0x550eca['newRange']?_0x550eca['newRange']['root']:null;_0x18e5b6&&this['_markers']['delete'](_0x550eca['name']),_0x1b0e41&&this['_markers']['set'](_0x550eca['name'],_0x550eca['newRange']['clone']());const _0xc56588=null===_0x550eca['_authorId']?null:_0x550eca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a7526=_0x550eca['name'];if(!this['_touchedMarkers']['has'](_0x4a7526))return void this['_touchedMarkers']['set'](_0x4a7526,{'range':_0x550eca['oldRange'],'userId':_0xc56588});const _0x46596d=this['_touchedMarkers']['get'](_0x4a7526),_0x40fc7d=_0x46596d['range'],_0x4104ea=_0x550eca['newRange'];null==_0x40fc7d&&null==_0x4104ea||_0x40fc7d&&_0x4104ea&&_0x40fc7d['isEqual'](_0x4104ea)?this['_touchedMarkers']['delete'](_0x550eca['name']):_0x46596d['userId']=_0xc56588;}['_handleRootOperation'](_0x2b0d23,_0x121b12){this['_diffRoots']['has'](_0x2b0d23['rootName'])?this['_diffRoots']['get'](_0x2b0d23['rootName'])['_isAttached']=_0x2b0d23['isAdd']:(this['_diffRoots']['set'](_0x2b0d23['rootName'],F(_0x2b0d23['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2b0d23['rootName'],{}),_0x121b12&&this['_idsRoots']['set'](_0x2b0d23['rootName'],F(_0x2b0d23['rootName'],!0x0)));const _0x3b091f=null===_0x2b0d23['_authorId']?null:_0x2b0d23['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x240c5e=this['_touchedRoots']['get'](_0x2b0d23['rootName']);_0x240c5e&&_0x240c5e['userId']===_0x3b091f?this['_touchedRoots']['delete'](_0x2b0d23['rootName']):this['_touchedRoots']['set'](_0x2b0d23['rootName'],{'userId':_0x3b091f,'isAttached':_0x2b0d23['isAdd']});}['_handleRootAttributeOperation'](_0x363b2c){const _0x5e52fc=this['_diffRootsAttributes']['get'](_0x363b2c['root']['rootName']);null===_0x363b2c['newValue']?delete _0x5e52fc[_0x363b2c['key']]:_0x5e52fc[_0x363b2c['key']]=_0x363b2c['newValue'];}}function T(_0x504c4c){const _0x5ada3f=F(_0x504c4c['rootName'],_0x504c4c['isAttached']());for(const _0x197c89 of _0x504c4c['getChildren']()){const _0x56aba6=_0x197c89['_clone'](!0x0);_0x5ada3f['_appendChild'](_0x56aba6);}return _0x5ada3f;}function F(_0x4b47dd,_0x4d3309=!0x0){const _0x33ed80=new mt();return _0x33ed80['rootName']=_0x4b47dd,_0x33ed80['_isAttached']=_0x4d3309,_0x33ed80['isAttached']=()=>_0x33ed80['_isAttached'],_0x33ed80;}function B(_0xabe03d,_0x103783,_0x1789cb){const _0xeb7af4='elementEnd'==_0xabe03d['type']?_0x1789cb['createPositionAt'](_0xabe03d['item'],'end'):_0x1789cb['createPositionBefore'](_0xabe03d['item']);return _0x1789cb['createPositionFromPath'](_0x103783,_0xeb7af4['path'],_0xeb7af4['stickiness']);}function J(_0x1d2a3c,_0xbe2669,_0xbe4175){const _0x19437c='elementStart'==_0x1d2a3c['type']?_0xbe4175['createPositionAt'](_0x1d2a3c['item'],0x0):_0xbe4175['createPositionAfter'](_0x1d2a3c['item']);return _0xbe4175['createPositionFromPath'](_0xbe2669,_0x19437c['path'],_0x19437c['stickiness']);}class hs extends _0x54bab1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x776c2,_0xb4fa3){super(_0x776c2),this['focusTracker']=new _0x4413f1(),this['keystrokes']=new _0x2b44d5(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xb4fa3),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'](),_0x5b59ac({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2e880d=_0x2aa256=>_0x2aa256['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2e880d),this['keystrokes']['set']('arrowleft',_0x2e880d),this['keystrokes']['set']('arrowup',_0x2e880d),this['keystrokes']['set']('arrowdown',_0x2e880d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4100f4){this['revisionNameInputView']['fieldView']['element']['value']=_0x4100f4['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x9581cf){const _0x46efdf=new nt(this['locale'],_0x42aec0),_0x414f81=_0x46efdf['fieldView'];_0x414f81['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5b4fd3=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x9581cf&&(_0x5b4fd3+='\x20('+m(this['locale'],'optional')+')'),(_0x46efdf['label']=_0x5b4fd3,_0x414f81['on']('input',()=>{this['revisionNameInputValue']=_0x414f81['element']['value']['trim']();}),_0x46efdf);}}class u extends _0x4011e1{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x57521d=this['editor'],_0x2adb42=_0x57521d['plugins']['get']('RevisionTracker');_0x57521d['ui']['componentFactory']['add']('revisionHistory',_0x45c3f3=>{const _0x4b1a07=_0x46c6e4(_0x45c3f3),_0x4f3742=_0x4b1a07['panelView']['children'],_0x26fc29=new _0x1e14d0(_0x45c3f3),_0x140c40=new te(_0x45c3f3),_0x4dcf7c=new _0x412521(_0x45c3f3),_0x5a3b8d=new te(_0x45c3f3),_0x4dbb22=new _0x412521(_0x45c3f3);return _0x4b1a07['bind']('isEnabled')['to'](_0x2adb42,'isReady',_0x2adb42,'isEnabled',_0x57521d,'isReadOnly',(_0x446dce,_0x5676ed,_0x3c8e8f)=>_0x446dce&&_0x5676ed&&!_0x3c8e8f),_0x4b1a07['buttonView']['set']({'icon':_0x5bb3f8['history'],'label':m(_0x45c3f3,'Revision\x20history'),'tooltip':!0x0}),_0x4dcf7c['set']({'label':m(_0x45c3f3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4dcf7c['bind']('isEnabled')['to'](_0x2adb42,'isReady',_0x2adb42,'isEnabled',_0x57521d,'isReadOnly',(_0x208036,_0x383edd,_0x1c3f66)=>_0x208036&&_0x383edd&&!_0x1c3f66),_0x4dcf7c['on']('execute',()=>this['_showDialog']()),_0x4dbb22['set']({'label':m(_0x45c3f3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4dbb22['bind']('isEnabled')['to'](_0x2adb42,'isReady',_0x57521d,'isReadOnly',(_0x317889,_0x4f89c1)=>_0x317889&&!_0x4f89c1),_0x4dbb22['on']('execute',()=>{_0x57521d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4b1a07['isOpen']=!0x1,_0x57521d['editing']['view']['focus']();}),_0x140c40['children']['add'](_0x4dcf7c),_0x5a3b8d['children']['add'](_0x4dbb22),_0x26fc29['role']='menu',_0x26fc29['items']['addMany']([_0x140c40,_0x5a3b8d]),_0x4f3742['add'](_0x26fc29),_0x4b1a07;}),_0x57521d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3a202d=this['editor'],_0x2a7b2f=_0x3a202d['locale'],_0x5b886e=new _0x3e0dcb(_0x2a7b2f),_0x11deb9=new _0x367653(_0x2a7b2f);_0x5b886e['buttonView']['set']({'icon':_0x5bb3f8['history'],'label':m(_0x2a7b2f,'Revision\x20history')});const _0x2c59c4=new _0x2deb30(_0x2a7b2f,_0x5b886e),_0x3449bc=new _0x3449d1(_0x2a7b2f);_0x3449bc['set']({'label':m(_0x2a7b2f,'Save\x20current\x20revision')}),_0x3449bc['delegate']('execute')['to'](_0x5b886e),_0x3449bc['on']('execute',()=>{this['_showDialog']();}),_0x2c59c4['children']['add'](_0x3449bc),_0x11deb9['items']['add'](_0x2c59c4);const _0x2028cb=new _0x2deb30(_0x2a7b2f,_0x5b886e),_0x2cfb0a=new _0x3449d1(_0x2a7b2f);return _0x2cfb0a['set']({'label':m(_0x2a7b2f,'Open\x20revision\x20history')}),_0x2cfb0a['delegate']('execute')['to'](_0x5b886e),_0x2cfb0a['on']('execute',()=>{_0x3a202d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2028cb['children']['add'](_0x2cfb0a),_0x11deb9['items']['add'](_0x2028cb),_0x5b886e['panelView']['children']['add'](_0x11deb9),_0x5b886e;}['_showDialog'](){const _0x283d60=this['editor'],_0x498cac=_0x283d60['locale'],_0x82e783=_0x283d60['plugins']['get']('Dialog'),_0x46500f=_0x283d60['plugins']['get']('RevisionTracker');function _0x5bb6da(_0x40b8ba){_0x283d60['config']['get']('revisionHistory.requireRevisionName')&&''===_0x40b8ba['revisionName']?_0x40b8ba['revisionNameInputView']['errorText']=m(_0x498cac,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x283d60['plugins']['get'](l)['saveRevision']({'name':_0x40b8ba['revisionName']}),_0x82e783['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5bb6da(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x82e783['show']({'id':'revisionSave','title':m(_0x498cac,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x283d60['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x82e783['hide']()},{'label':m(_0x283d60['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3eda47){_0x3eda47['bind']('isEnabled')['to'](_0x46500f,'isReady',_0x46500f,'isEnabled',_0x283d60,'isReadOnly',(_0xd19f0e,_0x3ac840,_0x2780e8)=>_0xd19f0e&&_0x3ac840&&!_0x2780e8);},'onExecute':()=>_0x5bb6da(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x83f5fa=this['editor'],_0x408ab0=_0x83f5fa['locale'];this['_saveRevisionFormView']=new hs(_0x408ab0,_0x83f5fa['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x54bab1{['changeId'];['_model'];constructor(_0x218039,_0x35fff8){super(_0x218039),this['_model']=_0x35fff8,this['changeId']=_0x35fff8['id'];const _0x518a12=this['bindTemplate'],_0x180e02=m(_0x218039,_0x35fff8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x35fff8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x35fff8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x518a12['to']('type',_0x4ae79e=>'ck-revision-change__'+_0x4ae79e)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x180e02}]},{'text':'\x20'+_0x35fff8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x2397cf(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1d2977){super(),this['id']=_0x1d2977['id']||_0x316b02(),this['author']=_0x1d2977['author'],this['type']=_0x1d2977['type'],this['data']=_0x1d2977['data']||{},this['rootName']=_0x1d2977['rootName'],this['set']('createdAt',_0x1d2977['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x45f232,_0xae872b){this['newRevisionId']=_0x45f232,this['oldRevisionId']=_0xae872b,this['changes']=new _0x177da0();}['_setChanges'](_0x4acb8f){for(const _0x4a8785 of _0x4acb8f)this['changes']['add'](_0x4a8785);}}const Y={'c':_0x377942,'a':_0x4c0794,'e':_0x421417,'r':_0x525184,'u':_0x44f876};class d extends _0x4011e1{['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[_0x7d3fd1,_0x53c608,j];}constructor(_0x44500b){super(_0x44500b),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',(_0x5b1ae4,_0x364b4e,_0x315b83)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1919ef=>{for(const _0x1483f0 of this['editor']['editing']['view']['document']['roots'])_0x315b83?_0x1919ef['removeClass']('ck-editor__editable__overlay',_0x1483f0):_0x1919ef['addClass']('ck-editor__editable__overlay',_0x1483f0);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x16f008=>null!==_0x16f008),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5cb9df,_0x1cebaf,_0x517171)=>_0x5cb9df&&_0x517171?_0x1cebaf['changes']['getIndex'](_0x517171):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4decda,_0x306873)=>_0x4decda?_0x306873['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x53c608);}['init'](){const _0x28cb6c=this['editor'],_0x4c9b86=new yt(_0x28cb6c,{'direction':'backward'}),_0x37a7d1=new yt(_0x28cb6c,{'direction':'forward'});(_0x28cb6c['commands']['add']('showPreviousChange',_0x4c9b86),_0x28cb6c['commands']['add']('showNextChange',_0x37a7d1),_0x28cb6c['commands']['add']('restoreRevision',new _t(_0x28cb6c)),this['on']('change:numberOfChanges',()=>{_0x4c9b86['refresh'](),_0x37a7d1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x28cb6c['enableReadOnlyMode']('revision-viewer'),_0x28cb6c['plugins']['has']('WidgetToolbarRepository'))&&_0x28cb6c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x53333a){await this['loadRevisionData'](_0x53333a);const _0x403525={};for(const _0x5f5341 in _0x53333a['diffData']){if(_0x53333a['diffData'][_0x5f5341]['attachChange']&&!_0x53333a['diffData'][_0x5f5341]['attachChange']['isAttached'])continue;const _0x503c08=this['_removeRevisionMarkers'](JSON['parse'](_0x53333a['diffData'][_0x5f5341]['insertions'])),_0x562635=this['editor']['editing']['view']['document'],_0x31adc6=new _0x531090(_0x562635,_0x503c08['map'](_0x2224da=>this['_getViewObj'](_0x2224da)));this['editor']['data']['processor']['useFillerType']('marked'),_0x403525[_0x5f5341]=this['editor']['data']['processor']['toData'](_0x31adc6),this['editor']['data']['processor']['useFillerType']('default');}return _0x403525;}async['getRevisionRootsAttributes'](_0x45d50c){await this['loadRevisionData'](_0x45d50c);const _0x2e8a99={};for(const _0x564429 in _0x45d50c['diffData'])_0x45d50c['diffData'][_0x564429]['attachChange']&&!_0x45d50c['diffData'][_0x564429]['attachChange']['isAttached']||(_0x2e8a99[_0x564429]=_0x45d50c['diffData'][_0x564429]['attributesAfter']||{});return _0x2e8a99;}['_removeRevisionMarkers'](_0x110bdd){return(_0x110bdd=_0x110bdd['filter'](_0x32b65c=>!_0x32b65c['name']||'revision-start'!==_0x32b65c['name']&&'revision-end'!==_0x32b65c['name']))['forEach'](_0x326d5d=>{'string'!=typeof _0x326d5d&&(_0x326d5d['children']=this['_removeRevisionMarkers'](_0x326d5d['children']),_0x326d5d['attributes']=_0x326d5d['attributes']['filter'](_0x5e7b2=>!_0x5e7b2[0x0]['startsWith']('data-revision-')));}),_0x110bdd;}async['compare'](_0x5588e2,_0x454d99,_0x2e87d4=!0x1){if(!this['isEnabled'])return;const _0x38c0bf=this['diff'],_0xf26f6a=this['repository'],_0xad05ed='string'==typeof _0x5588e2?_0xf26f6a['getRevision'](_0x5588e2):_0x5588e2,_0x3dfc2e='string'==typeof _0x454d99?_0xf26f6a['getRevision'](_0x454d99):_0x454d99,_0x32505c=_0xad05ed['id'],_0x3fbe9a=_0x3dfc2e?_0x3dfc2e['id']:null;if(!_0x2e87d4&&this['diff']&&this['diff']['newRevisionId']===_0x32505c&&this['diff']['oldRevisionId']===_0x3fbe9a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x32505c,_0x3fbe9a);const _0x29ef8c=this['_getRevisionsRange'](_0xad05ed,_0x3dfc2e,!0x0)['map'](_0x11e497=>this['loadRevisionData'](_0x11e497));return _0x29ef8c['push'](new Promise(_0x564350=>{setTimeout(_0x564350,0x14);})),Promise['all'](_0x29ef8c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x50b47d=this['_getDiff'](_0x32505c,_0x3fbe9a);for(const _0x31d719 of _0x50b47d['changes'])this['_changeIdToChange']['set'](_0x31d719['id'],_0x31d719);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x591064=>{for(const _0x538c4a of this['editor']['model']['document']['getRootNames']())_0x591064['detachRoot'](_0x538c4a);for(const _0x29dd63 of Object['keys'](_0x50b47d['model'])){const _0x58979a=_0x591064['addRoot'](_0x29dd63);for(const _0x202609 of Object['keys'](_0x50b47d['attributes'][_0x29dd63]))_0x591064['setAttribute'](_0x202609,_0x50b47d['attributes'][_0x29dd63][_0x202609],_0x58979a);_0x591064['insert'](_0x50b47d['model'][_0x29dd63],_0x58979a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x50b47d['changes'])),this['isReady']=!0x0;})['catch'](_0xa97234=>{console['error'](_0xa97234),this['_cleanUp'](),_0x38c0bf&&(this['diff']=_0x38c0bf),this['isReady']=!0x0;});}['addRevisionData'](_0x2619a1,_0x386c80){const _0xd444c5=this['repository']['createRevision'](_0x2619a1);return _0xd444c5['on']('_update',(_0x96f1ee,_0x4bd4d6,_0x5b8c68)=>_0x386c80(_0x4bd4d6,_0x5b8c68,_0xd444c5)),this['repository']['addRevision'](_0xd444c5),_0xd444c5;}['loadRevisionData'](_0x4ad994){if(!_0x4ad994||_0x4ad994['diffData'])return Promise['resolve']();{const _0x4b1de0=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4b1de0,'revisionId':_0x4ad994['id']})['then'](_0x46b04d=>{_0x4ad994['_update']({'diffData':_0x46b04d['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},_0x4ca5e3=>{for(const _0x6f4264 of this['editor']['model']['document']['getRootNames']())_0x4ca5e3['detachRoot'](_0x6f4264);});}['_sortAndFilterDiffChanges'](_0x159e7c){const _0x4d1527=[],_0xd7a79a=new Map();for(const _0x53bc87 of this['editor']['model']['document']['getRootNames']()){const _0x379436=this['editor']['editing']['view']['getDomRoot'](_0x53bc87);if(!_0x379436)continue;const _0x2bce71=_0x379436['getClientRects']()['item'](0x0);_0x2bce71&&(_0x4d1527['push'](_0x53bc87),_0xd7a79a['set'](_0x53bc87,_0x2bce71));}return _0x4d1527['sort']((_0x2db3fa,_0x26b52f)=>{const _0x49ae31=_0xd7a79a['get'](_0x2db3fa),_0x54c8f9=_0xd7a79a['get'](_0x26b52f);return _0x49ae31['y']-_0x54c8f9['y']||_0x49ae31['x']-_0x54c8f9['x'];}),(_0x159e7c=_0x159e7c['filter'](_0x3333db=>_0x4d1527['includes'](_0x3333db['rootName'])))['sort']((_0x561739,_0x13bd53)=>_0x4d1527['indexOf'](_0x561739['rootName'])-_0x4d1527['indexOf'](_0x13bd53['rootName'])),_0x159e7c;}['_makeTape'](_0x35c955){const _0x508d05=Array['from'](_0x35c955['markers'])['filter'](([_0x193d6e,_0x391f9e])=>_0x193d6e['startsWith']('revision:')&&!_0x391f9e['isCollapsed']),_0x227cac=Array['from'](this['editor']['model']['createRangeIn'](_0x35c955)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x508d05['length'])for(const _0x1518d1 of _0x227cac){const [_0x4dbffa,_0x5710ae]=_0x508d05[0x0],[,_0x1f8530,_0x1539f2]=_0x4dbffa['split'](':');if(_0x5710ae['end']['isEqual'](_0x1518d1['nextPosition'])&&_0x508d05['shift'](),(_0x1518d1['previousPosition']['isEqual'](_0x5710ae['start'])||_0x1518d1['previousPosition']['isAfter'](_0x5710ae['start']))&&('insertion'==_0x1f8530?_0x1518d1['isAdded']={'userId':_0x1539f2}:'deletion'==_0x1f8530&&(_0x1518d1['isRemoved']={'userId':_0x1539f2})),0x0==_0x508d05['length'])break;}return _0x227cac;}['_refreshStartEndIndex'](_0x1029e3){const _0x51666e=new Map();for(let _0x437613=0x0;_0x437613<_0x1029e3['length'];_0x437613++)'text'===_0x1029e3[_0x437613]['type']?(_0x1029e3[_0x437613]['item']['startIndex']=_0x437613,_0x1029e3[_0x437613]['item']['endIndex']=_0x437613):('elementStart'===_0x1029e3[_0x437613]['type']?_0x1029e3[_0x437613]['item']['startIndex']=_0x437613:'elementEnd'===_0x1029e3[_0x437613]['type']&&(_0x1029e3[_0x437613]['item']['endIndex']=_0x437613),_0x51666e['set'](_0x1029e3[_0x437613]['id'],_0x437613));for(const _0x2ef65e of _0x51666e['values']())'elementStart'===_0x1029e3[_0x2ef65e]['type']?_0x1029e3[_0x2ef65e]['item']['endIndex']=_0x51666e['get'](_0x1029e3[_0x2ef65e]['pairId']):'elementEnd'===_0x1029e3[_0x2ef65e]['type']&&(_0x1029e3[_0x2ef65e]['item']['startIndex']=_0x51666e['get'](_0x1029e3[_0x2ef65e]['pairId']));}['_processTape'](_0xf6eb94){for(let _0x45aa35=0x0;_0x45aa35<_0xf6eb94['length'];_0x45aa35++){if('elementStart'===_0xf6eb94[_0x45aa35]['type'])_0xf6eb94[_0x45aa35]['item']['startIndex']=_0x45aa35;else{if('elementEnd'===_0xf6eb94[_0x45aa35]['type']){_0xf6eb94[_0x45aa35]['item']['endIndex']=_0x45aa35;const _0x25734f=_0xf6eb94[_0x45aa35]['item']['startIndex'];_0xf6eb94[_0x25734f]['pairId']=_0xf6eb94[_0x45aa35]['id'],_0xf6eb94[_0x45aa35]['pairId']=_0xf6eb94[_0x25734f]['id'];}else _0xf6eb94[_0x45aa35]['item']['startIndex']=_0x45aa35,_0xf6eb94[_0x45aa35]['item']['endIndex']=_0x45aa35,_0xf6eb94[_0x45aa35]['pairId']=null;}_0xf6eb94[_0x45aa35]['markersStart']||(_0xf6eb94[_0x45aa35]['markersStart']=[],_0xf6eb94[_0x45aa35]['markersEnd']=[]);}}['_markInsertions'](_0x2660fa,_0x2ae260){const _0x2722c0=_0x2660fa['filter'](_0x1ed4bb=>!_0x1ed4bb['isAdded']);for(let _0x563ae7=0x0;_0x563ae7<_0x2ae260['length'];_0x563ae7++)_0x2ae260[_0x563ae7]['isAdded']&&(_0x2722c0[_0x563ae7]['isAdded']=_0x2ae260[_0x563ae7]['isAdded']);}['_makeModelFromViewString'](_0x38ce80){const _0xe414b1=JSON['parse'](_0x38ce80),_0x2f504e=this['editor']['editing']['view']['document'],_0x15b54d=new _0x531090(_0x2f504e,_0xe414b1['map'](_0x2b4c58=>this['_getViewObj'](_0x2b4c58)));return this['editor']['data']['toModel'](_0x15b54d);}['_getViewObj'](_0x42f8f1){const _0x266707=this['editor']['editing']['view']['document'];if('string'==typeof _0x42f8f1)return new _0x334ef4(_0x266707,_0x42f8f1);{const _0x3fbe48=_0x42f8f1['children']['map'](_0x53b361=>this['_getViewObj'](_0x53b361));return new(Y[_0x42f8f1['type']]||_0x3564d6)(_0x266707,_0x42f8f1['name'],_0x42f8f1['attributes'],_0x3fbe48);}}['_getDiff'](_0xe57888,_0x1f1b69=null){const _0x4524be=this['repository']['getRevision'](_0xe57888),_0x200ee6=_0x1f1b69?this['repository']['getRevision'](_0x1f1b69):null,_0x12a13e=this['_getRevisionsRange'](_0x4524be,_0x200ee6),_0xff8675=_0x12a13e[_0x12a13e['length']-0x1],_0x511d5a=new Map(),_0x106ce8={'model':{},'attributes':{},'changes':[]},_0xe7488f=new Set(),_0x2ef960=new Map();for(let _0xcf6aa=_0x12a13e['length']-0x1;_0xcf6aa>=0x0;_0xcf6aa--){const _0xf77fcd=_0x12a13e[_0xcf6aa];for(const _0x284c3c of Object['keys'](_0xf77fcd['diffData']))if(_0xf77fcd['diffData'][_0x284c3c]['attachChange']){const _0x1f3783=_0xf77fcd['diffData'][_0x284c3c]['attachChange'];_0x1f3783['isAttached']?(_0xe7488f['add'](_0x284c3c),_0x2ef960['has'](_0x284c3c)&&_0x2ef960['get'](_0x284c3c)['userId']==_0x1f3783['userId']?_0x2ef960['delete'](_0x284c3c):_0x2ef960['set'](_0x284c3c,_0x1f3783)):_0x2ef960['has'](_0x284c3c)?(_0xe7488f['delete'](_0x284c3c),_0x2ef960['delete'](_0x284c3c)):(_0xe7488f['add'](_0x284c3c),_0x2ef960['set'](_0x284c3c,_0x1f3783));}else _0xe7488f['add'](_0x284c3c);}for(const _0x1ab937 of _0xe7488f){const _0x1451dd=_0x2ef960['has'](_0x1ab937)&&!_0x2ef960['get'](_0x1ab937)['isAttached'];let _0x338d8e=_0x1451dd?_0x12a13e['length']-0x1:0x0;const _0x1b3d64=_0x1451dd?-0x1:0x1;for(;_0x12a13e[_0x338d8e];){const _0x25b8e2=_0x12a13e[_0x338d8e];if(_0x25b8e2['diffData'][_0x1ab937]){const _0xe7f2a4=_0x1451dd?_0x25b8e2['diffData'][_0x1ab937]['attributesBefore']:_0x25b8e2['diffData'][_0x1ab937]['attributesAfter'];_0x106ce8['attributes'][_0x1ab937]=_0xe7f2a4?_0x3bd5f8(_0xe7f2a4):{};break;}_0x338d8e+=_0x1b3d64;}}for(const _0x354b3f of _0x12a13e){_0x354b3f['model']={};for(const _0x434106 of _0x354b3f['authors'])_0x511d5a['set'](_0x434106['id'],_0x434106);for(const _0x1b87b3 of _0xe7488f){const _0x44d378=_0x354b3f['diffData'][_0x1b87b3]?_0x354b3f['diffData'][_0x1b87b3]['insertions']:'[]',_0x3f5e28=_0x354b3f['diffData'][_0x1b87b3]?_0x354b3f['diffData'][_0x1b87b3]['deletions']:'[]';_0x354b3f['model'][_0x1b87b3]={'insertions':this['_makeModelFromViewString'](_0x44d378),'deletions':this['_makeModelFromViewString'](_0x3f5e28)};}}for(const _0x253a9e of _0xe7488f){let _0x3da266=null,_0x1fa62d=0x0;const _0x214ef8=new Map(Array['from'](_0x4524be['model'][_0x253a9e]['insertions']['markers'])['filter'](([_0x1d6621])=>!_0x1d6621['startsWith']('revision:')));let _0x4131c1=0x0;for(const _0x527f59 of _0x12a13e){const _0x10d116=this['_makeTape'](_0x527f59['model'][_0x253a9e]['insertions']);_0x527f59==_0x4524be?(_0x3da266=_0x10d116,_0x1fa62d=_0x3da266['length'],_0x3da266['forEach'](_0x345830=>{_0x345830['id']=_0x4131c1++;}),this['_processTape'](_0x3da266)):this['_markInsertions'](_0x3da266,_0x10d116);const _0x108805=_0x3da266['filter'](_0x12d326=>!_0x12d326['isAdded'])['map'](_0x401963=>_0x401963['id']);let _0xd426d3=0x0;const _0x209cb5=this['_makeTape'](_0x527f59['model'][_0x253a9e]['deletions']);_0x209cb5['forEach'](_0x167c58=>{_0x167c58['isRemoved']?_0x167c58['id']=_0x1fa62d++:_0x167c58['id']=_0x108805[_0xd426d3++];}),this['_processTape'](_0x209cb5),this['_setDistance'](_0x3da266,'isAdded'),this['_setDistance'](_0x209cb5,'isRemoved'),_0x527f59==_0x4524be&&this['_markMarkers'](_0x3da266,_0x214ef8),_0x3da266=this['_joinTapes'](_0x3da266,_0x209cb5),this['_refreshStartEndIndex'](_0x3da266),this['_setDistance'](_0x3da266,'isRemoved');}_0x3da266=_0x3da266['filter'](_0x3a2a12=>!(_0x3a2a12['isAdded']&&_0x3a2a12['isRemoved']));const _0x224060=new Map(_0xff8675['model'][_0x253a9e]['deletions']['markers']),_0x155110=new Set(_0x214ef8['keys']());for(const _0x575383 of _0x224060['keys']())_0x155110['delete'](_0x575383);this['_markSuggestions'](_0x3da266,_0x155110),this['_fixObsoleteTags'](_0x3da266),_0x3da266=this['_removeMissingPairs'](_0x3da266),_0x3da266=this['_markMismatchedRemovedTags'](_0x3da266),_0x3da266=this['_removeUnsupportedChanges'](_0x3da266);const {root:_0x1fc8cb,changes:_0xb775a9}=this['_makeModelFromTape'](_0x3da266,_0x511d5a,_0x253a9e);_0x106ce8['model'][_0x253a9e]=_0x1fc8cb;const _0x3fd72b=_0x2ef960['get'](_0x253a9e);if(_0x3fd72b){const _0x19e039=_0x511d5a['get'](_0x3fd72b['userId']),_0x4b447f=new r({'author':_0x19e039,'type':_0x3fd72b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x253a9e});_0xb775a9['unshift'](_0x4b447f),_0x106ce8['attributes'][_0x253a9e]['revisionHistoryAttachChange']=_0x4b447f['id'];}_0x106ce8['changes']=_0x106ce8['changes']['concat'](_0xb775a9);}return _0x106ce8;}['_markMarkers'](_0x1b41b5,_0x120f75){for(let _0x121c30=0x0;_0x121c30<_0x1b41b5['length'];_0x121c30++)for(const [_0x46b0f5,_0x39b313]of _0x120f75)_0x39b313['start']['isEqual'](_0x1b41b5[_0x121c30]['previousPosition'])&&_0x1b41b5[_0x121c30]['markersStart']['push'](_0x46b0f5),_0x39b313['end']['isEqual'](_0x1b41b5[_0x121c30]['nextPosition'])&&_0x1b41b5[_0x121c30]['markersEnd']['push'](_0x46b0f5);}['_joinTapes'](_0x17c35f,_0x9c7afb){let _0x295809=[],_0x12a114=0x0,_0x1bcb94=0x0;for(;_0x12a114<_0x17c35f['length']||_0x1bcb94<_0x9c7afb['length'];){const _0x3aa52b=_0x17c35f[_0x12a114]||{},_0x916f3b=_0x9c7afb[_0x1bcb94]||{};if(_0x3aa52b['id']==_0x916f3b['id'])_0x12a114++,_0x1bcb94++,_0x295809['push'](_0x3aa52b);else{if(_0x916f3b['isRemoved']&&_0x3aa52b['isAdded']){const {commonTape:_0x1d1e1e,iEnd:_0x5ac9d4,jEnd:_0xfd2263}=this['_threeWayMerge'](_0x17c35f,_0x12a114,_0x9c7afb,_0x1bcb94);_0x295809=_0x295809['concat'](_0x1d1e1e),_0x12a114=_0x5ac9d4,_0x1bcb94=_0xfd2263;}else _0x916f3b['isRemoved']?(_0x1bcb94++,_0x295809['push'](_0x916f3b)):(_0x12a114++,_0x295809['push'](_0x3aa52b));}}return _0x295809;}['_markSuggestions'](_0x3ab148,_0x435de4){const _0x438196=[];for(let _0x183188=0x0;_0x183188<_0x3ab148['length'];_0x183188++){for(let _0x2c7122=0x0;_0x2c7122<_0x3ab148[_0x183188]['markersStart']['length'];_0x2c7122++){const _0x59bee0=_0x3ab148[_0x183188]['markersStart'][_0x2c7122];if(!_0x435de4['has'](_0x59bee0))continue;const {group:_0x549da4,type:_0x11c97e,authorId:_0x183644}=_0xe26c88(_0x59bee0);'revision-suggestion'!=_0x549da4||'insertion'!=_0x11c97e&&'deletion'!=_0x11c97e||(_0x438196['unshift']({'type':_0x11c97e,'name':_0x59bee0,'userId':_0x183644}),_0x3ab148[_0x183188]['markersStart']['splice'](_0x2c7122,0x1),_0x2c7122--);}_0x34978b(_0x3ab148[_0x183188]);for(let _0x4ebbcf=0x0;_0x4ebbcf<_0x3ab148[_0x183188]['markersEnd']['length'];_0x4ebbcf++){const _0x9dd084=_0x3ab148[_0x183188]['markersEnd'][_0x4ebbcf];if(!_0x435de4['has'](_0x9dd084))continue;const {group:_0x544eba,type:_0x1ee22a}=_0xe26c88(_0x9dd084);if('revision-suggestion'!=_0x544eba||'insertion'!=_0x1ee22a&&'deletion'!=_0x1ee22a)continue;_0x3ab148[_0x183188]['markersEnd']['splice'](_0x4ebbcf,0x1),_0x4ebbcf--;const _0x16db0d=_0x438196['findIndex'](_0x5902e3=>_0x5902e3['name']==_0x9dd084);_0x16db0d>-0x1&&_0x438196['splice'](_0x16db0d,0x1);}}function _0xe26c88(_0x507e1a){const _0x46bc08=_0x507e1a['split'](':');return{'group':_0x46bc08[0x0],'type':_0x46bc08[0x1],'subType':_0x46bc08['length']>=0x5?_0x46bc08[0x2]:null,'id':_0x46bc08['length']<0x5?_0x46bc08[0x2]:_0x46bc08[0x3],'authorId':_0x46bc08['length']<0x5?_0x46bc08[0x3]:_0x46bc08[0x4],'markerCount':0x6==_0x46bc08['length']?_0x46bc08[0x5]:null};}function _0x34978b(_0x45148a){for(let _0x2ef168=0x0;_0x2ef168<_0x438196['length'];_0x2ef168++){if(_0x45148a['isAdded']&&'insertion'==_0x438196[_0x2ef168]['type'])return _0x45148a['isAddSuggestion']=_0x438196[_0x2ef168],void delete _0x45148a['isAdded'];if(!_0x45148a['isAdded']&&!_0x45148a['isRemoved']&&'deletion'==_0x438196[_0x2ef168]['type'])return void(_0x45148a['isRemoveSuggestion']=_0x438196[_0x2ef168]);}}}['_setDistance'](_0x2ce7fa,_0x161140){let _0xd88fcb=0x0,_0xf21b3a=!0x1;const _0x47a5e3=new Map();for(const _0x49444c of _0x2ce7fa)_0x49444c[_0x161140]?_0xf21b3a&&(_0xd88fcb++,_0xf21b3a=!0x1):(_0xd88fcb++,_0xf21b3a=!0x0),_0x47a5e3['set'](_0x49444c['id'],_0xd88fcb);for(let _0xd35ad2=0x0;_0xd35ad2<_0x2ce7fa['length'];_0xd35ad2++){if('isRemoved'==_0x161140&&_0x2ce7fa[_0xd35ad2]['isAdded']||'isAdded'==_0x161140&&_0x2ce7fa[_0xd35ad2]['isRemoved'])continue;if('text'==_0x2ce7fa[_0xd35ad2]['type']){_0x2ce7fa[_0xd35ad2]['distance']=0x0;continue;}const _0x3fe9ce=_0x47a5e3['get'](_0x2ce7fa[_0xd35ad2]['pairId']),_0xd2205d=_0x47a5e3['get'](_0x2ce7fa[_0xd35ad2]['id']);_0x2ce7fa[_0xd35ad2]['distance']=_0x3fe9ce-_0xd2205d;}}['_getRevisionsRange'](_0x53b514,_0x3d06f1,_0x339290=!0x1){const _0x1f0750=[];let _0x23f884=this['repository']['getIndex'](_0x53b514),_0x3adb35=this['repository']['getIndex'](_0x3d06f1);for(-0x1==_0x3adb35&&(_0x3adb35=this['repository']['_revisions']['length'],_0x339290=!0x1);_0x23f884<_0x3adb35;)_0x1f0750['push'](this['repository']['getRevision'](_0x23f884)),_0x23f884++;return _0x339290&&_0x1f0750['push'](this['repository']['getRevision'](_0x23f884)),_0x1f0750;}['_threeWayMerge'](_0x3d8fcc,_0x508ff0,_0x1f32cc,_0x190e10){const _0x18dbf0=this['editor']['model']['schema'];let _0x576480=_0x508ff0;for(;_0x3d8fcc[_0x576480]&&_0x3d8fcc[_0x576480]['isAdded'];)_0x576480++;let _0x330b0d=_0x190e10;for(;_0x1f32cc[_0x330b0d]&&_0x1f32cc[_0x330b0d]['isRemoved'];)_0x330b0d++;_0x33e3f3(_0x3d8fcc,_0x508ff0,_0x576480),_0x33e3f3(_0x1f32cc,_0x190e10,_0x330b0d);const _0x16963a=_0x1f32cc['slice'](_0x190e10,_0x330b0d)['concat'](_0x3d8fcc['slice'](_0x508ff0,_0x576480));return _0x16963a['sort']((_0x20553b,_0x4e0177)=>_0x20553b['side']!=_0x4e0177['side']?_0x20553b['side']-_0x4e0177['side']:_0x20553b['level']!=_0x4e0177['level']?_0x20553b['level']-_0x4e0177['level']:_0x20553b['distance']!=_0x4e0177['distance']?_0x4e0177['distance']-_0x20553b['distance']:!!_0x20553b['isAdded']!=!!_0x4e0177['isAdded']?-0x1==_0x20553b['side']||0x0==_0x20553b['side']?_0x20553b['isAdded']?-0x1:0x1:_0x20553b['isAdded']?0x1:-0x1:_0x20553b['index']-_0x4e0177['index']),{'commonTape':_0x16963a,'iEnd':_0x576480,'jEnd':_0x330b0d};function _0x33e3f3(_0x1f18fe,_0x2c555e,_0x924fcd){let _0x1c78ae=-0x1,_0x3b80ef=Number['POSITIVE_INFINITY'],_0xf52c00=!0x0;for(let _0x1547ea=_0x2c555e;_0x1547ea<_0x924fcd;_0x1547ea++)if(_0x18dbf0['isInline'](_0x1f18fe[_0x1547ea]['item'])||(_0xf52c00=!0x1),_0x1f18fe[_0x1547ea]['item']['startIndex']<_0x2c555e&&(_0x1c78ae=_0x1547ea),_0x1f18fe[_0x1547ea]['item']['endIndex']>=_0x924fcd){_0x3b80ef=_0x1547ea;break;}_0xf52c00&&(_0x1c78ae=_0x924fcd-0x1);for(let _0x4724bd=_0x2c555e;_0x4724bd<_0x924fcd;_0x4724bd++)_0x1f18fe[_0x4724bd]['side']=_0x4724bd<=_0x1c78ae?-0x1:_0x4724bd<_0x3b80ef?0x0:0x1,_0x1f18fe[_0x4724bd]['index']=_0x4724bd;let _0x326737=0x0;for(let _0x4527d7=_0x2c555e;_0x4527d7<=_0x1c78ae;_0x4527d7++)0x0==_0x1f18fe[_0x4527d7]['distance']?_0x1f18fe[_0x4527d7]['level']=_0x326737:(_0x326737++,_0x1f18fe[_0x4527d7]['level']=_0x326737,_0x326737++);for(let _0x2149e5=_0x2c555e;_0x2149e5<_0x924fcd;_0x2149e5++)0x0==_0x1f18fe[_0x2149e5]['side']&&(_0x1f18fe[_0x2149e5]['level']=_0x326737);_0x326737=0x0;for(let _0xe43971=_0x924fcd-0x1;_0xe43971>=_0x3b80ef;_0xe43971--)0x0==_0x1f18fe[_0xe43971]['distance']?_0x1f18fe[_0xe43971]['level']=_0x326737:(_0x326737--,_0x1f18fe[_0xe43971]['level']=_0x326737,_0x326737--);}}['_fixObsoleteTags'](_0x5cb984){const _0x39910c=new Map(),_0x4beecb=this['editor']['model']['schema'];for(let _0x51f165=0x1;_0x51f165<_0x5cb984['length'];_0x51f165++){let _0x402490,_0x24f351,_0x31aca0;const _0x220f9f=_0x5cb984[_0x51f165],_0x5ee196=_0x5cb984[_0x51f165-0x1];if('text'==_0x220f9f['type'])continue;if(_0x220f9f['type']!=_0x5ee196['type'])continue;if(!_0x4beecb['isBlock'](_0x5ee196['item'])||_0x4beecb['isLimit'](_0x5ee196['item']))continue;if(!_0x4beecb['isBlock'](_0x220f9f['item'])||_0x4beecb['isLimit'](_0x220f9f['item']))continue;if((_0x5cb984[_0x51f165]['isAdded']||_0x5cb984[_0x51f165]['isAddSuggestion'])&&_0x5cb984[_0x51f165-0x1]['isRemoved'])_0x402490=_0x5cb984[_0x51f165],_0x24f351=_0x5cb984[_0x51f165-0x1],_0x31aca0=_0x51f165-0x1;else{if(!_0x5cb984[_0x51f165]['isRemoved']||!_0x5cb984[_0x51f165-0x1]['isAdded']&&!_0x5cb984[_0x51f165-0x1]['isAddSuggestion'])continue;_0x402490=_0x5cb984[_0x51f165-0x1],_0x24f351=_0x5cb984[_0x51f165],_0x31aca0=_0x51f165;}const _0x2af218=_0x402490['level']==_0x24f351['level'],_0x1483f1=Math['abs'](_0x402490['level'])<Math['abs'](_0x24f351['level'])&&0x0==_0x24f351['distance'];(_0x2af218||_0x1483f1)&&(_0x39910c['set'](_0x24f351['id'],_0x402490['id']),_0x5cb984['splice'](_0x31aca0,0x1),_0x51f165--,_0x402490['isAdded']=!0x1);}for(let _0x49b87d=0x0;_0x49b87d<_0x5cb984['length'];_0x49b87d++)_0x39910c['has'](_0x5cb984[_0x49b87d]['pairId'])&&(_0x5cb984[_0x49b87d]['pairId']=_0x39910c['get'](_0x5cb984[_0x49b87d]['pairId']));}['_removeMissingPairs'](_0xb8b322){const _0x1cec44=new Set(_0xb8b322['map'](_0x56256f=>_0x56256f['id']));for(let _0x50c743=0x0;_0x50c743<_0xb8b322['length'];_0x50c743++)_0x1cec44['has'](_0xb8b322[_0x50c743]['pairId'])||0x0==_0xb8b322[_0x50c743]['distance']||(_0xb8b322[_0x50c743]['isIncorrect']=!0x0);return _0xb8b322['filter'](_0x5176e6=>!_0x5176e6['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5d8cf6){const _0x10eca2=new Set();for(let _0x1de502=0x0;_0x1de502<_0x5d8cf6['length'];_0x1de502++){if(_0x10eca2['has'](_0x5d8cf6[_0x1de502]['id'])&&_0x5d8cf6[_0x1de502]['isRemoved']&&(_0x5d8cf6[_0x1de502]['isIncorrect']=!0x0),_0x5d8cf6[_0x1de502]['isIncorrect'])continue;if(0x0==_0x5d8cf6[_0x1de502]['distance'])continue;if('elementStart'!=_0x5d8cf6[_0x1de502]['type'])continue;if(null==_0x5d8cf6[_0x1de502]['pairId'])continue;let _0x5b752b=_0x1de502+0x1,_0x15c7a2=0x0;for(;_0x5d8cf6[_0x5b752b]['id']!=_0x5d8cf6[_0x1de502]['pairId'];)'elementStart'==_0x5d8cf6[_0x5b752b]['type']?_0x15c7a2++:'elementEnd'==_0x5d8cf6[_0x5b752b]['type']&&_0x15c7a2--,_0x5b752b++;if(0x0!=_0x15c7a2){if(_0x5d8cf6[_0x1de502]['isRemoved'])_0x5d8cf6[_0x1de502]['isIncorrect']=!0x0;else{for(;_0x5b752b!=_0x1de502;)_0x5d8cf6[_0x5b752b]['isRemoved']&&0x0!=_0x5d8cf6[_0x5b752b]['distance']&&(_0x5d8cf6[_0x5b752b]['isIncorrect']=!0x0,_0x10eca2['add'](_0x5d8cf6[_0x5b752b]['pairId'])),_0x5b752b--;}}}return _0x5d8cf6['filter'](_0xf9065e=>!_0xf9065e['isIncorrect']);}['_removeUnsupportedChanges'](_0x2148fd){const _0x5c3ed7=this['editor']['model']['schema'];for(let _0x499589=0x0;_0x499589<_0x2148fd['length'];_0x499589++){if(!(_0x2148fd[_0x499589]['isAdded']||_0x2148fd[_0x499589]['isAddSuggestion']||_0x2148fd[_0x499589]['isRemoved']||_0x2148fd[_0x499589]['isRemoveSuggestion']))continue;if(0x0==_0x2148fd[_0x499589]['distance'])continue;const _0x2e46e0=_0x2148fd[_0x499589]['item'];_0x5c3ed7['isBlock'](_0x2e46e0)||_0x5c3ed7['isLimit'](_0x2e46e0)||(_0x2148fd[_0x499589]['isAdded']&&delete _0x2148fd[_0x499589]['isAdded'],_0x2148fd[_0x499589]['isAddSuggestion']&&delete _0x2148fd[_0x499589]['isAddSuggestion'],_0x2148fd[_0x499589]['isRemoveSuggestion']&&delete _0x2148fd[_0x499589]['isRemoveSuggestion'],_0x2148fd[_0x499589]['isRemoved']&&(_0x2148fd[_0x499589]['isIncorrect']=!0x0));}return _0x2148fd['filter'](_0x4b57e5=>!_0x4b57e5['isIncorrect']);}['_makeModelFromTape'](_0x364f02,_0x5143fd,_0x2192aa){const _0x5b1013=new mt(),_0x283c51=[],_0x4a3ef5=new Map(),_0x4bb454=this['editor']['model'],_0x4e1be2=_0x4bb454['schema'],_0x368c7b=[_0x5b1013],_0x58f749={},_0x14a3e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x160343=null;const _0x2fdd09=[0x0];for(let _0x5737f3=0x0;_0x5737f3<_0x364f02['length'];_0x5737f3++)if('elementStart'===_0x364f02[_0x5737f3]['type']){_0x364f02[_0x5737f3]['previousPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09);const _0x3d8811=new ft(_0x364f02[_0x5737f3]['item']['name'],_0x364f02[_0x5737f3]['item']['getAttributes']());_0x368c7b[0x0]['_appendChild'](_0x3d8811),_0x2fdd09['push'](0x0),_0x368c7b['unshift'](_0x3d8811),_0x364f02[_0x5737f3]['nextPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09);}else'elementEnd'===_0x364f02[_0x5737f3]['type']?(_0x368c7b['shift'](),_0x364f02[_0x5737f3]['previousPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09),_0x2fdd09['pop'](),_0x2fdd09[_0x2fdd09['length']-0x1]++,_0x364f02[_0x5737f3]['nextPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09)):(_0x364f02[_0x5737f3]['previousPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09),_0x160343?_0x160343['_data']+=_0x364f02[_0x5737f3]['item']['data']:_0x160343=new wt(_0x364f02[_0x5737f3]['item']['data'],_0x364f02[_0x5737f3]['item']['getAttributes']()),_0x364f02[_0x5737f3+0x1]&&'text'===_0x364f02[_0x5737f3+0x1]['type']&&_0x2f420b(_0x160343,_0x364f02[_0x5737f3+0x1]['item'])||(_0x368c7b[0x0]['_appendChild'](_0x160343),_0x160343=null),_0x2fdd09[_0x2fdd09['length']-0x1]+=_0x364f02[_0x5737f3]['item']['offsetSize'],_0x364f02[_0x5737f3]['nextPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09));for(let _0x47a80e=0x0;_0x47a80e<_0x364f02['length'];_0x47a80e++){const _0x3e8a02=_0x364f02[_0x47a80e]['previousPosition'],_0x5cba3c=_0x364f02[_0x47a80e]['nextPosition'];for(const _0x2dc019 of _0x364f02[_0x47a80e]['markersStart'])_0x4a3ef5['set'](_0x2dc019,{'start':_0x3e8a02,'end':null});_0x1f5ae8('isRemoveSuggestion',_0x47a80e,_0x3e8a02,_0x5cba3c),_0x1f5ae8('isAddSuggestion',_0x47a80e,_0x3e8a02,_0x5cba3c),_0x1f5ae8('isRemoved',_0x47a80e,_0x3e8a02,_0x5cba3c),_0x1f5ae8('isAdded',_0x47a80e,_0x3e8a02,_0x5cba3c);for(const _0x5d9335 of _0x364f02[_0x47a80e]['markersEnd']){_0x4a3ef5['get'](_0x5d9335)['end']=_0x5cba3c;}}for(const [_0x1eaf9b,_0x13bc51]of _0x4a3ef5){const _0x1ef754=this['editor']['model']['createRange'](_0x13bc51['start'],_0x13bc51['end']);_0x5b1013['markers']['set'](_0x1eaf9b,_0x1ef754);}return _0x283c51['sort']((_0x37ac07,_0x334984)=>{const _0xeeefc4=_0x5b1013['markers']['get']('revision:'+_0x37ac07['id']),_0x5a3ae=_0x5b1013['markers']['get']('revision:'+_0x334984['id']);return _0xeeefc4['start']['isBefore'](_0x5a3ae['start'])?-0x1:_0xeeefc4['start']['isAfter'](_0x5a3ae['start'])?0x1:_0xeeefc4['end']['isBefore'](_0x5a3ae['end'])?-0x1:_0xeeefc4['end']['isAfter'](_0x5a3ae['end'])?0x1:'add'===_0x37ac07['type']?-0x1:0x1;}),{'root':_0x5b1013,'changes':_0x283c51};function _0x1f5ae8(_0x1cf427,_0x4f595b,_0x395a2a,_0x4af66b){const _0x3b6281=!!_0x364f02[_0x4f595b][_0x1cf427],_0x1411cf=_0x3b6281?_0x364f02[_0x4f595b][_0x1cf427]['userId']:null,_0x2f6997=_0x4f595b===_0x364f02['length']-0x1,_0x3148ef=_0x14a3e4[_0x1cf427][0x0],_0x3263da=_0x4e1be2['isObject'](_0x364f02[_0x4f595b]['item']);!_0x58f749[_0x1cf427]&&_0x3b6281?_0x58f749[_0x1cf427]={'start':_0x395a2a,'tapeItem':_0x364f02[_0x4f595b],'userId':_0x1411cf,'type':_0x1cf427}:_0x58f749[_0x1cf427]&&!_0x3b6281?(_0x58f749[_0x1cf427]['end']=_0x395a2a,_0x582816(_0x58f749[_0x1cf427]),_0x58f749[_0x1cf427]=null):_0x58f749[_0x1cf427]&&_0x3b6281&&_0x58f749[_0x1cf427]['userId']!==_0x1411cf&&(_0x58f749[_0x1cf427]['end']=_0x395a2a,_0x3148ef&&_0x3148ef['userId']===_0x58f749[_0x1cf427]['userId']||_0x582816(_0x58f749[_0x1cf427]),_0x58f749[_0x1cf427]={'start':_0x395a2a,'tapeItem':_0x364f02[_0x4f595b],'userId':_0x1411cf,'type':_0x1cf427}),_0x58f749[_0x1cf427]&&_0x3263da&&('elementStart'!==_0x364f02[_0x4f595b]['type']||_0x3148ef&&_0x3148ef['userId']===_0x1411cf||_0x14a3e4[_0x1cf427]['unshift']({'userId':_0x1411cf,'object':_0x364f02[_0x4f595b]['item'],'change':_0x58f749[_0x1cf427]}),'elementEnd'===_0x364f02[_0x4f595b]['type']&&_0x3148ef&&_0x3148ef['object']===_0x364f02[_0x4f595b]['item']&&(_0x14a3e4[_0x1cf427]['shift'](),_0x58f749[_0x1cf427]=_0x3148ef['change'])),_0x58f749[_0x1cf427]&&_0x2f6997&&(_0x58f749[_0x1cf427]['end']=_0x4af66b,_0x582816(_0x58f749[_0x1cf427]),_0x58f749[_0x1cf427]=null);}function _0x582816({start:_0x1c3ff9,end:_0x1c4c3d,tapeItem:_0x44cfc3,userId:_0x28c25b,type:_0x497031}){const _0x5f5759=_0x44cfc3['item'],_0x1d12e4=_0x4bb454['schema']['isBlock'](_0x5f5759)&&!_0x4bb454['schema']['isLimit'](_0x5f5759),_0x811254=_0x1c3ff9['nodeAfter']==_0x1c4c3d['parent']&&_0x1c4c3d['isAtStart'];if(_0x1d12e4&&_0x811254)return;const _0x4577c7=_0x4bb454['createRange'](_0x1c3ff9,_0x1c4c3d),_0xa534d6=_0x5143fd['get'](_0x28c25b),_0x25979a=new r({'author':_0xa534d6,'type':'isAdded'==_0x497031||'isAddSuggestion'==_0x497031?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x497031||'isRemoveSuggestion'==_0x497031},'createdAt':new Date(),'rootName':_0x2192aa});_0x283c51['push'](_0x25979a),_0x5b1013['markers']['set']('revision:'+_0x25979a['id'],_0x4577c7);}function _0x2f420b(_0x5c8e10,_0x145455){const _0x57e2e4=_0x5c8e10['getAttributes'](),_0x53ebc2=_0x145455['getAttributes']();for(const _0x1f5025 of _0x57e2e4){if(_0x1f5025[0x1]!==_0x145455['getAttribute'](_0x1f5025[0x0]))return!0x1;_0x53ebc2['next']();}return _0x53ebc2['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x396d4a=>{const _0x45194a=_0x396d4a['markerName']['split'](':')[0x1],_0x52fadb=this['_getChangeFromId'](_0x45194a);if(!_0x52fadb)return null;const _0x123d68='add'==_0x52fadb['type']?'insertion':'deletion',_0x28f312=['ck-suggestion-marker','ck-suggestion-marker-'+_0x123d68];return _0x52fadb['data']['isSuggestion']&&_0x28f312['push']('ck-suggestion-marker-'+_0x123d68+'-new'),this['activeChange']==_0x52fadb&&_0x28f312['push']('ck-suggestion-marker--active'),{'classes':_0x28f312,'attributes':{'data-change-id':_0x45194a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x57eacd=>{_0x57eacd['on']('element:pre',(_0x131f21,_0x1083a9,_0x695043)=>{const _0x2897ca=_0x1083a9['viewItem']['getChild'](0x0);if(!_0x2897ca||!_0x2897ca['is']('element','code'))return;if(!_0x695043['consumable']['consume'](_0x2897ca,{'attributes':['vid_start','vid_end']}))return;const _0x5268e3=_0x1083a9['modelRange']['start']['nodeAfter'];_0x695043['writer']['setAttribute']('vid_start',_0x2897ca['getAttribute']('vid_start'),_0x5268e3),_0x695043['writer']['setAttribute']('vid_end',_0x2897ca['getAttribute']('vid_end'),_0x5268e3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x358c24=>{_0x358c24['on']('element',(_0x22b4f9,_0x187423,_0x5bd7b7)=>{if(!_0x5bd7b7['consumable']['consume'](_0x187423['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x187423['modelRange']['isCollapsed'])return;const _0x572a3a=_0x187423['modelRange']['start']['nodeAfter'];_0x572a3a['hasAttribute']('vid_start')||_0x572a3a['hasAttribute']('vid')||(_0x5bd7b7['writer']['setAttribute']('vid_start',_0x187423['viewItem']['getAttribute']('vid_start'),_0x572a3a),_0x5bd7b7['writer']['setAttribute']('vid_end',_0x187423['viewItem']['getAttribute']('vid_end'),_0x572a3a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4842aa=>_0x4842aa['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x514908,[,_0x414186])=>{['vid_start','vid_end','vid']['includes'](_0x414186)&&(_0x514908['return']=!0x0,_0x514908['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x236d6f=>{_0x236d6f['on']('attribute:vid',(_0x8e5929,_0x56bb4c,_0x50315f)=>{if('\x20'!=_0x56bb4c['item']['data']||_0x56bb4c['item']['parent']['maxOffset']>0x1)return;if(!_0x50315f['consumable']['consume'](_0x56bb4c['item'],_0x8e5929['name']))return;const _0x334f54=_0x50315f['writer'],_0x27d16b=_0x50315f['mapper']['toViewRange'](_0x56bb4c['range']);_0x334f54['wrap'](_0x27d16b,_0x334f54['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x266009){const _0x20ed8d=_0x266009['plugins']['get']('RevisionViewer');return(_0x5559c3,_0x103b63,_0x5b1080)=>{const _0x5235e6=_0x103b63['markerName']['split'](':')[0x1],_0x34cf6b=_0x20ed8d['_getChangeFromId'](_0x5235e6);if(!_0x34cf6b)return null;const _0x51e346='add'==_0x34cf6b['type']?'split':'merge';if(!_0x5b1080['consumable']['test'](_0x103b63['markerRange'],_0x5559c3['name']))return;const _0x37fd57=_0x103b63['markerRange']['getWalker'](),_0x26471e=_0x103b63['markerRange']['start'],_0x1bb3a1=_0x266009['model']['schema'];let _0x2f8c7a=null,_0x15cfe5=null,_0x26a348=!0x1,_0x1f0bb7=!0x1;for(const _0x4067af of _0x37fd57){const _0x219ef1=_0x4067af['item'];_0x26a348=_0x26a348||_0x1bb3a1['isContent'](_0x219ef1);const _0x4b600d=_0x5b1080['mapper']['toViewElement'](_0x219ef1);if(_0x4b600d&&_0x4b600d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4067af['type']&&(_0x1bb3a1['isBlock'](_0x219ef1)&&!_0x1bb3a1['isLimit'](_0x219ef1)&&(_0x219ef1['nextSibling']||_0x26471e['isAtEnd']?_0x2f8c7a&&_0x2f8c7a['parent']==_0x219ef1||(_0x2f8c7a=_0x219ef1,_0x1a772f(_0x4067af['previousPosition']),_0x1f0bb7=!0x0):_0x15cfe5=_0x15cfe5||_0x4067af['previousPosition']));}function _0x1a772f(_0x3120de){const _0x1d015e=_0x5b1080['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51e346}),_0x1ef11a=_0x5b1080['mapper']['toViewPosition'](_0x3120de);_0x34cf6b['data']['isSuggestion']&&_0x5b1080['writer']['addClass']('ck-suggestion-marker-'+_0x51e346+'-new',_0x1d015e),_0x20ed8d['activeChange']==_0x34cf6b&&_0x5b1080['writer']['addClass']('ck-suggestion-marker--active',_0x1d015e),_0x5b1080['writer']['insert'](_0x1ef11a,_0x1d015e),_0x5b1080['mapper']['bindElementToMarker'](_0x1d015e,_0x103b63['markerName']);}_0x26a348||_0x1f0bb7||!_0x15cfe5||_0x1a772f(_0x15cfe5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x568d20,_0x406a33,_0x5ef0b3)=>{const _0x2851cc=_0x5ef0b3['mapper']['markerNameToElements'](_0x406a33['markerName']);if(_0x2851cc){for(const _0x5a7f03 of _0x2851cc)(_0x5a7f03['hasClass']('ck-suggestion-marker-split')||_0x5a7f03['hasClass']('ck-suggestion-marker-merge'))&&(_0x5ef0b3['mapper']['unbindElementFromMarkerName'](_0x5a7f03,_0x406a33['markerName']),_0x5ef0b3['writer']['remove'](_0x5a7f03));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x41ce35,_0x5ed52f,_0x28ae05)=>{const _0x37b44a=_0x5ed52f['markerName']['split'](':')[0x1],_0x5a24a4=this['_getChangeFromId'](_0x37b44a);if(!_0x5a24a4)return null;const _0x317004='add'==_0x5a24a4['type']?'split':'merge';if(_0x28ae05['consumable']['test'](_0x5ed52f['markerRange'],_0x41ce35['name']))for(const _0x510b8e of _0x5ed52f['markerRange']['getItems']()){if(!_0x510b8e['is']('element','softBreak'))continue;const _0x165653=_0x28ae05['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x317004}),_0x5c1fcb=_0x28ae05['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x510b8e));_0x5a24a4['data']['isSuggestion']&&_0x28ae05['writer']['addClass']('ck-suggestion-marker-'+_0x317004+'-new',_0x165653),this['activeChange']==_0x5a24a4&&_0x28ae05['writer']['addClass']('ck-suggestion-marker--active',_0x165653),_0x28ae05['writer']['insert'](_0x5c1fcb,_0x165653),_0x28ae05['mapper']['bindElementToMarker'](_0x165653,_0x5ed52f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x30bb79=>{for(const _0x5e4f2b of this['editor']['model']['document']['getRootNames']()){const _0x24f130=this['editor']['model']['document']['getRoot'](_0x5e4f2b),_0x24fa52=this['editor']['editing']['view']['document']['getRoot'](_0x5e4f2b);if(_0x24fa52){const _0x76a792=_0x24f130['getAttribute']('revisionHistoryAttachChange');if(_0x30bb79['removeAttribute']('data-change-id',_0x24fa52),_0x30bb79['removeClass']('ck-revision-history-root-add',_0x24fa52),_0x30bb79['removeClass']('ck-revision-history-root-remove',_0x24fa52),_0x30bb79['removeClass']('ck-revision-history-root--active',_0x24fa52),_0x76a792){const _0x5c4966=this['_getChangeFromId'](_0x76a792);if(!_0x5c4966)return null;_0x30bb79['setAttribute']('data-change-id',_0x76a792,_0x24fa52),_0x30bb79['addClass']('ck-revision-history-root-'+_0x5c4966['type'],_0x24fa52),this['activeChange']==_0x5c4966&&_0x30bb79['addClass']('ck-revision-history-root--active',_0x24fa52);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1179d0=>'revision-comment:'+_0x1179d0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2db3ec=>'revision-suggestion:'+_0x2db3ec,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x32a6a9=>({'name':'suggestion:'+_0x32a6a9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3ceabf=>{const _0x13812c=_0x3ceabf['markerName']['split'](':')[0x1];return'insertion'!=_0x13812c&&'deletion'!=_0x13812c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x13812c]};}}),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',(_0x4ba6a3,_0x513ad8,_0x2f5ee9)=>{const _0x20eae4=_0x2f5ee9['mapper']['markerNameToElements'](_0x513ad8['markerName']);if(_0x20eae4){for(const _0x14e534 of _0x20eae4)_0x14e534['is']('uiElement')&&(_0x2f5ee9['mapper']['unbindElementFromMarkerName'](_0x14e534,_0x513ad8['markerName']),_0x2f5ee9['writer']['remove'](_0x14e534));}},{'priority':'high'});}['_getChangeFromId'](_0x3a14f0){return this['_changeIdToChange']['get'](_0x3a14f0);}['_getViewForChange'](_0x3f8b25){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3f8b25),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x57404e,_0x3cea19,_0x3baebc,_0x22293e)=>{_0x22293e&&this['_balloon']['remove'](_0x22293e),_0x3baebc&&(this['_balloon']['add']({'view':_0x3baebc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5f2b83=this['editor']['editing'],_0xd8bb3c=this['_getChangeFromId'](_0x3baebc['changeId']);let _0x1c32db;if(_0xd8bb3c['data']['isOnRoot']){const _0x5ce4fc=_0x5f2b83['view']['getDomRoot'](_0xd8bb3c['rootName']);_0x1c32db=Array['from'](_0x5ce4fc['getClientRects']());}else{const _0x25e9ac=this['editor']['model']['markers']['get']('revision:'+_0x3baebc['changeId']);_0x1c32db=Array['from'](_0x5f2b83['mapper']['markerNameToElements'](_0x25e9ac['name']))['map'](_0x39ddcd=>_0x5f2b83['view']['domConverter']['mapViewToDom'](_0x39ddcd))['map'](_0x55f167=>Array['from'](_0x55f167['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c32db[0x0];return _0x1c32db['find'](_0x3700f9=>_0x3700f9['top']-0x3<=this['_activeViewTarget']['y']&&_0x3700f9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3700f9['left']-0x3<=this['_activeViewTarget']['x']&&_0x3700f9['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c32db[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1d2dd1,_0x4b09d9,_0x514afe,_0x3a33b9)=>{this['activeView']=_0x514afe?this['_getViewForChange'](_0x514afe):null,this['editor']['model']['change'](()=>{const _0xb4e61=this['editor']['editing'];_0x3a33b9&&(_0x3a33b9['data']['isOnRoot']?_0xb4e61['view']['change'](_0x48a372=>{_0x48a372['removeClass']('ck-revision-history-root--active',_0xb4e61['view']['document']['getRoot'](_0x3a33b9['rootName']));}):_0xb4e61['reconvertMarker']('revision:'+_0x3a33b9['id'])),_0x514afe&&(_0x514afe['data']['isOnRoot']?_0xb4e61['view']['change'](_0x5eb4fb=>{_0x5eb4fb['addClass']('ck-revision-history-root--active',_0xb4e61['view']['document']['getRoot'](_0x514afe['rootName']));}):_0xb4e61['reconvertMarker']('revision:'+_0x514afe['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x37613b,_0x2deec0)=>{if(this['activeChange'])return;const _0xa912e5=this['_findChangeIdFromDomTarget'](_0x2deec0['target']),_0xe5e91b=this['_changeIdToChange']['get'](_0xa912e5);_0xe5e91b?(this['_activeViewTarget']={'x':_0x2deec0['domEvent']['x'],'y':_0x2deec0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe5e91b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5e5743,_0x356ff3)=>{const _0x5ab581=this['_findChangeIdFromDomTarget'](_0x356ff3['target']),_0x8e9f62=this['_changeIdToChange']['get'](_0x5ab581);_0x8e9f62?(this['_activeViewTarget']={'x':_0x356ff3['domEvent']['x'],'y':_0x356ff3['domEvent']['y']},_0x8e9f62===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x8e9f62):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1632a9){do{const _0x18d69e=_0x1632a9['getAttribute']('data-change-id');if(_0x18d69e)return _0x18d69e;_0x1632a9=_0x1632a9['parent'];}while(_0x1632a9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x108128=>{for(const _0x487025 of this['editor']['model']['markers'])_0x108128['removeMarker'](_0x487025);});}}function Z(_0x58e9fa,_0x20e244){return(_0x262a5a,_0x100389,_0x5cbe0b)=>{if(!_0x5cbe0b['consumable']['test'](_0x100389['markerRange'],_0x262a5a['name']))return;const _0x3524d3=_0x100389['markerRange']['getWalker'](),_0x4fb4d2=_0x100389['markerRange']['start'],_0x2a758e=_0x58e9fa['model']['schema'];let _0x12f8d4=null,_0xf41f36=null,_0x57ccf6=!0x1,_0x358bff=!0x1;for(const _0x2d86ca of _0x3524d3){const _0xcfc5da=_0x2d86ca['item'];_0x57ccf6=_0x57ccf6||_0x2a758e['isContent'](_0xcfc5da);const _0x1c8338=_0x5cbe0b['mapper']['toViewElement'](_0xcfc5da);if(_0x1c8338&&_0x1c8338['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d86ca['type']&&(_0x2a758e['isBlock'](_0xcfc5da)&&!_0x2a758e['isLimit'](_0xcfc5da)&&(_0xcfc5da['nextSibling']||_0x4fb4d2['isAtEnd']?_0x12f8d4&&_0x12f8d4['parent']==_0xcfc5da||(_0x12f8d4=_0xcfc5da,_0x4d64fa(_0x2d86ca['previousPosition']),_0x358bff=!0x0):_0xf41f36=_0xf41f36||_0x2d86ca['previousPosition']));}function _0x4d64fa(_0x42ffa3){const _0x248753=_0x5cbe0b['mapper']['toViewPosition'](_0x42ffa3),_0x547737=_0x5cbe0b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x20e244});_0x5cbe0b['writer']['insert'](_0x248753,_0x547737),_0x5cbe0b['mapper']['bindElementToMarker'](_0x547737,_0x100389['markerName']);}_0x57ccf6||_0x358bff||!_0xf41f36||_0x4d64fa(_0xf41f36);};}class _t extends _0x451a85{constructor(_0x4c5bc3){super(_0x4c5bc3);const _0x26b259=_0x4c5bc3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x26b259,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x26b259,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x897b4b=this['editor'],_0x2146d9=_0x897b4b['plugins']['get'](d),_0x5ce5d2=_0x2146d9['isReady']?_0x2146d9['diff']['newRevisionId']:null;_0x897b4b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5ce5d2);}['refresh'](){const {isReady:_0x13b68e,isEnabled:_0x2f241a,repository:_0x55830a,diff:_0x23da7c}=this['editor']['plugins']['get'](d),_0x31729f=_0x23da7c&&_0x55830a['getLaterVisibleRevision'](_0x23da7c['newRevisionId']);this['isEnabled']=_0x13b68e&&_0x2f241a&&Boolean(_0x31729f);}}class yt extends _0x451a85{['_step'];constructor(_0x51239b,{direction:_0x1f94f9}){super(_0x51239b);const _0x579604=_0x51239b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1f94f9?0x1:-0x1,this['listenTo'](_0x579604,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x579604,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x579604,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x46e20e=this['editor'],_0x486ce0=_0x46e20e['plugins']['get'](d),{isNavigationMode:_0x213d4d,currentChangeNumber:_0x2eaddf}=_0x486ce0;let _0x2b0a9b;if(_0x486ce0['activeChange']=_0x213d4d?_0x486ce0['diff']['changes']['get'](_0x2eaddf+this['_step']):_0x486ce0['diff']['changes']['first'],_0x486ce0['activeChange']['data']['isOnRoot'])_0x2b0a9b=_0x46e20e['editing']['view']['getDomRoot'](_0x486ce0['activeChange']['rootName']);else{const _0x366a08=_0x46e20e['model']['markers']['get']('revision:'+_0x486ce0['activeChange']['id']);_0x2b0a9b=_0x51754f(_0x46e20e['editing'],_0x366a08);}_0x221f1c({'target':_0x2b0a9b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19bf01,currentChangeNumber:_0x1d4efe,numberOfChanges:_0x148c07,isReady:_0x4668fb,isEnabled:_0x4ec9d8}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4ec9d8&&_0x4668fb&&_0x148c07)&&(!_0x19bf01||(0x1===this['_step']?_0x1d4efe<_0x148c07-0x1:_0x1d4efe>0x0));}}class _i extends _0x54bab1{constructor(_0x3c43f2){super(_0x3c43f2);const _0x16bfff=this['bindTemplate'],_0x5141d9=new _0x412521(_0x3c43f2),_0x278f2e=new _0x412521(_0x3c43f2);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',(_0x515fb0,_0x4720e5)=>_0x515fb0&&_0x4720e5>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x459773,_0x25befd,_0x521c5e,_0x355f56)=>{if(!_0x459773)return m(_0x3c43f2,'Loading...');if(!_0x521c5e)return m(_0x3c43f2,'No\x20changes');const _0x399a4a=m(_0x3c43f2,'NUMBER_OF_CHANGES',_0x521c5e);return _0x355f56?m(_0x3c43f2,'X_OF_Y_CHANGES',[_0x25befd+0x1,_0x521c5e]):_0x399a4a;}),_0x5141d9['set']({'label':m(_0x3c43f2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x278f2e['set']({'label':m(_0x3c43f2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x5141d9['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x278f2e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5141d9['on']('execute',()=>this['fire']('execute','backward')),_0x278f2e['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',_0x16bfff['if']('_isStatusLabelVisible','ck-hidden',_0x5b567c=>!_0x5b567c)]},'children':[{'text':_0x16bfff['to']('isNavigationMode',_0x305a3a=>_0x305a3a?m(_0x3c43f2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3c43f2,'Total')+':\x20')}]},{'text':_0x16bfff['to']('_statusText')}]},new _0x50d3fa(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5141d9,_0x278f2e]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4011e1{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2b1e36=this['editor']['editing']['view'];_0x2b1e36['change'](_0x566977=>{for(const _0x428ba1 of _0x2b1e36['document']['roots'])_0x566977['addClass'](ce,_0x428ba1);});}['hide'](){const _0x22172a=this['editor']['editing']['view'];_0x22172a['change'](_0x24a67e=>{for(const _0x530f3b of _0x22172a['document']['roots'])_0x24a67e['removeClass'](ce,_0x530f3b);});}}class g extends _0x4011e1{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x29df54=this['editor'],_0x568f55=_0x29df54['plugins']['get'](d),_0x20fd9f=_0x29df54['plugins']['get'](le);_0x29df54['ui']['componentFactory']['add']('exitToEditing',_0x123113=>{const _0x7e5a90=new _0x412521(_0x123113);return _0x7e5a90['set']({'label':m(_0x123113,'Back\x20to\x20editing'),'icon':_0x5bb3f8['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x7e5a90,'execute',()=>{_0x29df54['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x7e5a90;}),_0x29df54['ui']['componentFactory']['add']('restoreRevision',_0x257396=>{const _0x1aa086=new _0x412521(_0x257396);return _0x1aa086['set']({'label':m(_0x257396,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1aa086['bind']('isEnabled')['to'](_0x29df54['commands']['get']('restoreRevision')),this['listenTo'](_0x1aa086,'execute',()=>_0x29df54['execute']('restoreRevision')),_0x1aa086;}),_0x29df54['ui']['componentFactory']['add']('changesNavigation',_0x1e9baa=>{const _0x58dd3a=new _i(_0x1e9baa),_0x6c9144=_0x29df54['commands']['get']('showPreviousChange'),_0x24cc87=_0x29df54['commands']['get']('showNextChange');return _0x58dd3a['bind']('isBackwardNavigationEnabled')['to'](_0x6c9144,'isEnabled'),_0x58dd3a['bind']('isForwardNavigationEnabled')['to'](_0x24cc87,'isEnabled'),_0x58dd3a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x568f55),this['listenTo'](_0x58dd3a,'execute',(_0x5e7730,_0x1e9a39)=>{_0x29df54['execute']('forward'===_0x1e9a39?'showNextChange':'showPreviousChange');}),_0x58dd3a;}),_0x20fd9f['show'](),_0x568f55['on']('change:isReady',(_0x283faf,_0x116ab9,_0x5bcf31)=>{_0x5bcf31?_0x20fd9f['hide']():_0x20fd9f['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x47412c,_0x8c707a){super(_0x47412c,_0x8c707a);const _0x549cd1=this['bindTemplate'];this['set']({'label':m(_0x47412c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x47412c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x549cd1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x23a375=this['fieldView']['element'];this['_tooltipString']=_0x23a375['scrollWidth']>_0x23a375['clientWidth']&&_0x23a375['value']||'';}}class ti extends _0x54bab1{constructor(_0x1e88d9,_0x37ee0a,_0x40f0bc){super(_0x1e88d9);const _0x375337=new _0xe7dccb();_0x375337['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x3d3dde=['ck','ck-revision-history-sidebar__revision-author'];_0x40f0bc&&_0x3d3dde['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3fac3f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1e88d9,_0x40f0bc?'Revision\x20creator':'Revision\x20author')},'children':[_0x375337,_0x37ee0a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3d3dde},'children':_0x3fac3f});}}function ni(_0x56b5f5,_0x1a8009){const _0xea36e9=_0x56b5f5['bindTemplate'],_0x2c58f1=_0x56b5f5['locale'],_0x2f7e0a=_0x46c6e4(_0x2c58f1);_0x2f7e0a['panelPosition']='sw';const _0x5d2ea1=function(_0x240cda,_0x3a05c6){const _0x35c741=function(_0x54c068,_0x5c0d8a){const _0x288e19=_0x54c068['locale'],_0x5a762e={'Compare\x20against\x20selected':m(_0x288e19,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x288e19,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x288e19,'Restore\x20this\x20revision')};return _0x5c0d8a['map'](_0x5c3511=>{const _0x3be94f=_0x5a762e[_0x5c3511['name']];return _0x3be94f&&_0x3be94f!==_0x5c3511['name']&&(_0x5c3511['name']=_0x3be94f),_0x5c3511;});}(_0x240cda,_0x3a05c6),_0x3af440=new _0x177da0();for(const _0x511201 of _0x35c741){const _0x5688ae={'type':'button','model':new to({'label':_0x511201['name'],'class':_0x511201['class'],'withText':!0x0,'role':'menuitem','_action':_0x511201['action']})};_0x5688ae['model']['bind']('isEnabled')['to'](_0x240cda,'isActionsDropdownOpen',_0x36ad87=>'function'!=typeof _0x511201['isEnabled']||(!_0x36ad87||_0x511201['isEnabled'](_0x240cda))),_0x3af440['add'](_0x5688ae);}return _0x3af440;}(_0x56b5f5,_0x1a8009);return _0x56b5f5['bind']('isActionsDropdownOpen')['to'](_0x2f7e0a,'isOpen'),_0x2f7e0a['buttonView']['set']({'label':m(_0x2c58f1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5bb3f8['threeVerticalDots']}),_0x2f7e0a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xea36e9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xea36e9['to'](_0x10e273=>_0x10e273['stopPropagation']())}}),_0x2f7e0a['on']('execute',_0x56a520=>{_0x56b5f5['isReady']&&'function'==typeof _0x56a520['source']['_action']&&_0x56a520['source']['_action'](_0x56b5f5);}),_0x8c893(_0x2f7e0a,_0x5d2ea1,{'role':'menu'}),_0x2f7e0a['listenTo'](_0x56b5f5,'change:isActionsDropdownOpen',(_0x35068f,_0x2c8504,_0x3a37e0)=>{if(_0x3a37e0)for(const _0x3d20de of _0x2f7e0a['listView']['items']){const _0x57b479=_0x3d20de['children']['first'],_0x49d51d=_0x1a8009['find'](_0x515554=>_0x515554['action']===_0x57b479['_action'])['isVisible'];_0x3d20de['isVisible']=void 0x0===_0x49d51d||_0x49d51d(_0x56b5f5);}}),_0x2f7e0a;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x1c84ab(_0x54bab1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x11d88a,_0x1e950b,_0x190026,_0x26b773){super(_0x11d88a);const _0x12efa4=this['bindTemplate'],_0x4276a9=function(_0x63d184,_0x1c120d){const _0x546f42=Array['from'](_0x1c120d['authors'])['filter'](_0x403c1d=>_0x403c1d!=_0x1c120d['creator']);return _0x1c120d['creator']&&_0x546f42['unshift'](_0x1c120d['creator']),_0x546f42['map'](_0x332f48=>new ti(_0x63d184,_0x332f48,_0x332f48==_0x1c120d['creator']));}(_0x11d88a,_0x1e950b);this['id']=_0x1e950b['id'],this['_revision']=_0x1e950b,this['_requireRevisionName']=_0x26b773,this['bind']('name','createdAt')['to'](_0x1e950b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4e4de9=>{return _0x54a4cc=_0x11d88a['uiLanguage'],(_0x9bdfc6=_0x4e4de9)['toLocaleDateString'](_0x54a4cc,{'month':'long','day':'numeric'})+',\x20'+_0x9bdfc6['toLocaleTimeString'](_0x54a4cc,{'hour':'numeric','minute':'numeric'});var _0x54a4cc,_0x9bdfc6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x11d88a,_0x42aec0),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5a7533=>_0x5a7533||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x7909af,_0x7fbb50)=>_0x7909af&&_0x7fbb50),this['revisionActionsView']=_0x190026&&_0x190026['length']?ni(this,_0x190026):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x12efa4['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x12efa4['if']('isEnabled','ck-disabled',_0x2f8be=>!_0x2f8be),_0x12efa4['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x12efa4['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x12efa4['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':_0x12efa4['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':_0x4276a9}]},this['revisionActionsView']],'on':{'click':_0x12efa4['to'](_0x4f4d5b=>{_0x4f4d5b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4e03dc=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4e03dc,'change',()=>{this['_requireRevisionName']&&!_0x4e03dc['value']||this['fire']('setName',{'id':this['id'],'name':_0x4e03dc['value']}),_0x4e03dc['value']||(_0x4e03dc['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x37d275,_0x2badb8){const _0x3258df=_0x481116['fromJSDate'](_0x37d275)['setLocale'](_0x2badb8),_0x3bd246=_0x481116['local'](),_0x5db663=_0x3bd246['minus']({'days':0x1})['startOf']('day');let _0x17e3a0,_0x5a4d74;return _0x3258df['hasSame'](_0x3bd246,'day')?(_0x17e3a0=_0x3258df['startOf']('day')['toJSDate'](),_0x5a4d74=_0x3258df['toRelativeCalendar']()):_0x3258df['hasSame'](_0x5db663,'day')?(_0x17e3a0=_0x5db663['toJSDate'](),_0x5a4d74=_0x3258df['toRelativeCalendar']()):_0x3258df['hasSame'](_0x3bd246,'week')?(_0x17e3a0=_0x3258df['startOf']('week')['toJSDate'](),_0x5a4d74=_0x3258df['weekdayLong']||''):_0x3258df['hasSame'](_0x3bd246,'year')?(_0x17e3a0=_0x3258df['startOf']('month')['toJSDate'](),_0x5a4d74=_0x3258df['monthLong']||''):(_0x17e3a0=_0x3258df['startOf']('year')['toJSDate'](),_0x5a4d74=String(_0x3258df['year'])),{'startDate':_0x17e3a0,'localizedPeriodName':_0x5a4d74};}class mi extends _0x54bab1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x20a404,_0x36f912,_0x5a3cc7,_0x39967d){super(_0x20a404);const _0x2fba3a=di(_0x36f912,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x36f912,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5a3cc7,this['_requireRevisionName']=_0x39967d,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':_0x2fba3a}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4fbbbe){const _0x23a5ed=new ai(this['locale'],_0x4fbbbe,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x23a5ed);}['removeRevision'](_0x52ca41){const _0x1cdb7b=this['revisionViews']['find'](_0x23d194=>_0x23d194['id']===_0x52ca41['id']);this['revisionViews']['remove'](_0x1cdb7b);}}class rs extends _0x54bab1{constructor(_0x50ddb2){super(_0x50ddb2);const _0x177b1d=new _0xe7dccb();_0x177b1d['content']=_0x5bb3f8['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x177b1d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x50ddb2,'Revision\x20history')]}]});}}class ci extends _0x54bab1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x365fe5,_0x542852,_0x562299,_0x315e83){super(_0x365fe5);const _0xcd0313=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x542852,this['_revisionActions']=_0x562299,this['_requireRevisionName']=_0x315e83,this['on']('select',(_0xaf20b3,_0x4a557f)=>{this['fire']('revisionSelected',_0x4a557f);}),this['on']('setName',(_0x49908e,_0x17f0bf)=>{this['fire']('revisionSetName',_0x17f0bf);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x365fe5),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xcd0313['if']('isEnabled','ck-disabled',_0x1241eb=>!_0x1241eb)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3ec89a of this['_revisions'])this['_addRevision'](_0x3ec89a);this['_revisions']['on']('add',(_0x234f23,_0x4c941d)=>{this['_addRevision'](_0x4c941d);}),this['_revisions']['on']('remove',(_0x3da63b,_0xf598bc)=>{this['_removeRevision'](_0xf598bc);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x516f74=>_0x516f74['revisionViews']['map'](_0x22c3d7=>_0x22c3d7))['flat']();}['selectRevision'](_0x44e3c7){for(const _0x1f68d0 of this['revisionViews'])_0x44e3c7&&_0x44e3c7['id']===_0x1f68d0['id']?_0x1f68d0['select']():_0x1f68d0['deselect']();}['highlightRevisions'](_0x30a314){for(const _0x5f3e71 of this['revisionViews'])_0x30a314['some'](({id:_0x4239fc})=>_0x4239fc===_0x5f3e71['id'])?_0x5f3e71['highlight']():_0x5f3e71['unhighlight']();}['_addRevision'](_0x31af60){const _0x2f0c6a=di(_0x31af60['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x307130=this['timePeriodViews']['get'](0x0);_0x307130&&_0x307130['startDate']['getTime']()===_0x2f0c6a['getTime']()||(_0x307130=new mi(this['locale'],_0x2f0c6a,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x307130)),_0x307130['addRevision'](_0x31af60);}['_removeRevision'](_0x44849d){const _0x91b32c=di(_0x44849d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x91b32c)['removeRevision'](_0x44849d);}['_getTimePeriodViewByStartDate'](_0x395a83){return this['timePeriodViews']['find'](_0x2d73c4=>_0x2d73c4['startDate']['getTime']()===_0x395a83['getTime']());}}class w extends _0x4011e1{['_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(_0x310762){super(_0x310762),this['_revisionViewer']=_0x310762['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x43709f=this['_revisionsRepository']['_revisions'],_0x5efcbe=this['_createRevisionActions'](),_0x59edb8=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x43709f,_0x5efcbe,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',(_0x210359,_0x1d5d53)=>{_0x1d5d53['revisionViews']['on']('add',(_0x3df32a,_0x5a8b47)=>{_0x5a8b47['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)),_0x59edb8['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4d16bf=this['_revisionsRepository']['getRevision'](0x0);if(_0x4d16bf){const _0x173dc3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4d16bf['id']);this['_revisionViewer']['compare'](_0x4d16bf,_0x173dc3);}}['_handleRevisionSelected'](_0x320828,_0x5e6f71){const _0x69d4ae=this['_revisionsRepository']['getRevision'](_0x5e6f71['id']),_0x17abc9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x69d4ae['id']);this['_revisionViewer']['compare'](_0x69d4ae,_0x17abc9);}['_handleRevisionSetName'](_0x76744d,_0x238093){this['_revisionsRepository']['getRevision'](_0x238093['id'])['setName'](_0x238093['name']);}['_handleDiffChange'](_0x4dd34c,_0x4f3b7c,_0x99d955){const _0xc51225=this['_revisionsRepository']['getRevisionsInDiff'](_0x99d955);_0xc51225['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xc51225),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xc51225[0x0]));}['_createRevisionActions'](){const _0xcbce39=this['editor'],_0x23cdee=w['availableRevisionActions'],_0x2d0509=_0xcbce39['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x2d0509['length'])return _0x2d0509['map'](_0x27193a=>{const _0x411ba5='string'==typeof _0x27193a?Object['assign']({},_0x23cdee[_0x27193a]):_0x27193a;return _0x411ba5['action']=_0x411ba5['action']['bind'](this,_0xcbce39),_0x411ba5['isVisible']&&(_0x411ba5['isVisible']=_0x411ba5['isVisible']['bind'](this,_0xcbce39)),_0x411ba5;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x40563e},_0xcfbb24)=>{const _0xcc7d50=_0x40563e['get'](d),_0x522a0f=_0xcc7d50['repository'];let _0x1aea4a=_0xcc7d50['diff']['newRevisionId'],_0x41e55f=_0xcfbb24['id'];_0x522a0f['getIndex'](_0x1aea4a)>_0x522a0f['getIndex'](_0x41e55f)&&([_0x1aea4a,_0x41e55f]=[_0x41e55f,_0x1aea4a]),_0xcc7d50['compare'](_0x1aea4a,_0x41e55f);},'isVisible':({plugins:_0x31487f},_0x5a502c)=>{const _0x5b433f=_0x31487f['get'](d);return!(_0x5b433f['repository']['getRevisionsInDiff'](_0x5b433f['diff'])['length']>0x2)&&!_0x5a502c['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3a5ef1,{id:_0x539b57})=>{_0x3a5ef1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x539b57);},'isVisible':({plugins:_0x332cf3},_0x3bd8dd)=>!!_0x332cf3['get'](d)['repository']['getLaterVisibleRevision'](_0x3bd8dd['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x123922},{id:_0x57f5c3,revisionNameView:_0x5cdd35})=>{const _0x3de9d3=_0x123922['get'](d),_0x2d840f=_0x3de9d3['repository']['getEarlierVisibleRevision'](_0x57f5c3);_0x3de9d3['compare'](_0x57f5c3,_0x2d840f),_0x5cdd35['focus'](),_0x5cdd35['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xc69d07,_0x5d2423){super(_0xc69d07),this['_view']=_0x5d2423,this['_toolbarConfig']=ot(_0xc69d07['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x5052e4){const _0x1e2d08=this['editor'],_0x41c963=this['view'],_0x16fea9=_0x1e2d08['editing']['view'],_0x48e1a2=_0x41c963['editable'],_0x3106c4=_0x16fea9['document']['getRoot']();_0x48e1a2['name']=_0x3106c4['rootName'],_0x41c963['render']();const _0x2579f5=_0x48e1a2['element'];this['setEditableElement'](_0x48e1a2['name'],_0x2579f5),_0x41c963['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x16fea9['attachDomRoot'](_0x2579f5),this['_elementReplacer']['replace'](_0x5052e4,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4f6868=this['view'],_0x5ea35a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5ea35a['detachDomRoot'](_0x4f6868['editable']['name']),_0x4f6868['destroy']();}['_initToolbar'](){const _0xe3b142=this['view'];_0xe3b142['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xe3b142['stickyPanel']['limiterElement']=_0xe3b142['element'],_0xe3b142['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4f9272})=>_0x4f9272),_0xe3b142['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xe3b142['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x426ae2,_0x5f35d1,_0x2c7bfd={}){super(_0x426ae2),this['stickyPanel']=new ut(_0x426ae2),this['toolbar']=new lt(_0x426ae2,{'shouldGroupWhenFull':_0x2c7bfd['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x426ae2,_0x5f35d1);}['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(_0x16cdc5,_0x2130c0){super(_0x2130c0),this['sourceElement']=_0x16cdc5,this['model']['document']['createRoot']();const _0x320fc9=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x320fc9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x239e23,_0x525506){const _0x3ec967=new this(_0x239e23,_0x525506);return await _0x3ec967['initPlugins'](),await _0x3ec967['ui']['init'](_0x239e23),await _0x3ec967['data']['init'](_0x3ec967['config']['get']('initialData')||''),_0x3ec967['fire']('ready'),_0x3ec967;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x1c983f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44780b){function _0x496e9c(_0x3cdd10){return _0x3cdd10['map'](_0x263e5d=>String['fromCharCode'](_0x263e5d))['join']('');}super(_0x44780b),this['result']='end',_0x44780b[_0x496e9c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x496e9c([0x76,0x69,0x65,0x77])][_0x496e9c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x496e9c([0x61,0x75,0x74,0x6f]),_0x44780b[_0x496e9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x496e9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x496e9c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x496e9c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x496e9c([0x6f,0x6b])});}}class k extends _0x1c983f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x9f6592){if(super(_0x9f6592),!this['editor']['config']['get']('revisionHistory'))throw new _0x3781c3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5e28ad=>this['_showRevisionViewer']({..._0x5e28ad,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x49ab8a=>this['_closeRevisionViewer'](_0x49ab8a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x13cb10=>this['_restoreRevision'](_0x13cb10)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2f3cc8){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2f3cc8;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x442e18){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x442e18);}['getRevision'](_0x82f1cb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x82f1cb);}['getRevisions'](_0x3464e2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3464e2||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x37986a=this['editor'],_0x41db5e=_0x14ad6d(_0x37986a,p),_0x4d9752=_0x37986a['plugins']['get']('RevisionTracker'),_0x347508=_0x37986a['plugins']['get']('Users')['users'];return _0x41db5e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x41db5e['lazyRoots'],(_0x41db5e['plugins']['push'](Rt,d,g,class extends _0x1c983f{static get['requires'](){return[d,'Users'];}['init'](){const _0x5a746f=this['editor']['plugins']['get']('Users');for(const _0x29a364 of _0x347508)_0x29a364['isAnonymous']||_0x5a746f['getUser'](_0x29a364['id'])||_0x5a746f['addUser'](_0x29a364);const _0x30f5d8=_0x4d9752['repository']['getRevisions']();let _0xa4733b=null;const _0xe1aa6c=this['editor']['plugins']['get']('RevisionViewer');_0xe1aa6c['adapter']=_0x4d9752['adapter'],_0xe1aa6c['bind']('isEnabled')['to'](_0x4d9752),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x37986a,'isReadOnly',_0x5aa528=>!_0x5aa528);for(const _0x44c3fc of _0x30f5d8){const _0x100b59=null===_0x44c3fc['creator'];if(_0x100b59&&_0x44c3fc['toVersion']===_0x44c3fc['fromVersion'])continue;const _0x18b1bf=_0x44c3fc['toJSON']();_0xe1aa6c['addRevisionData'](_0x18b1bf,(_0x4ce73d,_0x19129c,_0x42414f)=>{if(_0x100b59){if(_0xa4733b)_0xa4733b['_update'](_0x4ce73d,_0x19129c);else{if(!_0x19129c){const _0x350832=_0x42414f['toJSON']();_0x350832['id']=_0x731d10(),_0x4d9752['saveRevision'](_0x350832,_0x42414f['toVersion'])['then'](_0x3f0ea2=>{_0xa4733b=_0x3f0ea2;});}}}else _0x44c3fc['_update'](_0x4ce73d,_0x19129c);});}}},w),_0x41db5e);}['_enhanceShowRevisionViewerCallback'](){const _0x3f68c6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5b4aa9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1f4aef=this['editor']['plugins']['get']('Autosave');await _0x1f4aef['save']();}else await _0x5b4aa9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1d30ef=this['editor']['plugins']['get']('Dialog');_0x1d30ef['isOpen']&&_0x1d30ef['hide']();}const _0x5a8ceb=this['_getRevisionViewerEditorConfig']();return _0x3f68c6(_0x5a8ceb)['then'](_0x4bcf49=>{return(this['_viewerEditor']=_0x4bcf49,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4bcf49;})['catch'](_0x3df6a9=>(console['error'](_0x3df6a9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1727ff=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'](),_0x1727ff(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xf859b2=this['editor']['plugins']['get']('Annotations');_0xf859b2['refreshVisibility'](),_0xf859b2['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5dc57f){const _0x5baa35=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x37563b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4ba014=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x4ba014,_0x5dc57f)['then'](_0x13edef=>(_0x37563b['style']['display']='block',_0x5baa35['style']['display']='none',_0x13edef));}['_closeRevisionViewer'](_0x950395){const _0x132294=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x132294['style']['display']='',_0x950395['destroy']();}async['_restoreRevision'](_0xeaf33c){const _0x328c94=this['editor'],_0x3372b6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xfb203c=_0x328c94['plugins']['get']('RevisionTracker'),_0x18b473=_0x3372b6['repository']['getRevision'](_0xeaf33c);let _0x41b528,_0x36eae0,_0x28fc68;try{_0x41b528=await _0x3372b6['getRevisionData'](_0x18b473),_0x36eae0=await _0x3372b6['getRevisionRootsAttributes'](_0x18b473);}catch(_0x34f929){return void console['error'](_0x34f929);}_0x328c94['model']['change'](_0x4abb57=>{for(const _0x1ba8b2 of Array['from'](_0x328c94['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4abb57['removeMarker'](_0x1ba8b2);}),_0x3372b6['isReady']=!0x1,_0x328c94['model']['enqueueChange'](_0x4714b2=>{_0x4714b2['setSelection'](null),_0x4714b2['removeSelectionAttribute'](_0x328c94['model']['document']['selection']['getAttributeKeys']());const _0x2beaec=Object['keys'](_0x41b528);for(const _0x28fe31 of _0x328c94['model']['document']['roots'])'$graveyard'!=_0x28fe31['rootName']&&_0x28fe31['isAttached']()&&!_0x2beaec['includes'](_0x28fe31['rootName'])&&_0x4714b2['detachRoot'](_0x28fe31);for(const _0x1040ae of _0x2beaec){let _0x293b0d=_0x328c94['model']['document']['getRoot'](_0x1040ae);_0x293b0d&&_0x293b0d['isAttached']()||(_0x293b0d=_0x4714b2['addRoot'](_0x1040ae));const _0x3e3565=_0x36eae0[_0x1040ae],_0x3e5f5f=Object['keys'](_0x3e3565),_0x492c78=_0x41b528[_0x1040ae];for(const _0x3daa2c of _0x293b0d['getAttributeKeys']())_0x3e5f5f['includes'](_0x3daa2c)||_0x4714b2['removeAttribute'](_0x3daa2c,_0x293b0d);for(const _0x3fe610 of _0x3e5f5f)_0x4714b2['setAttribute'](_0x3fe610,_0x36eae0[_0x1040ae][_0x3fe610],_0x293b0d);_0x4714b2['remove'](_0x4714b2['createRangeIn'](_0x293b0d)),_0x4714b2['insert'](_0x328c94['data']['parse'](_0x492c78,_0x293b0d),_0x293b0d,0x0);}});const _0x1d3f89=m(_0x328c94['locale'],'Restored');if(_0x18b473['name'])_0x28fc68=-0x1==_0x18b473['name']['indexOf'](_0x1d3f89)?_0x1d3f89+':\x20'+_0x18b473['name']:_0x18b473['name'];else _0x28fc68=_0x1d3f89+':\x20'+(_0x18b473['createdAt']['toLocaleDateString'](_0x328c94['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x18b473['createdAt']['toLocaleTimeString'](_0x328c94['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xfb203c['saveRevision']({'name':_0x28fc68}),_0x3372b6['isReady']=!0x0,_0x328c94['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w 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(_0x1922be){super(_0x1922be),this['_revisionViewer']=_0x1922be['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1e9802=this['_revisionsRepository']['_revisions'],_0x2382af=this['_createRevisionActions'](),_0x407955=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x1e9802,_0x2382af,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',(_0x10d082,_0x412fc6)=>{_0x412fc6['revisionViews']['on']('add',(_0x15e0d6,_0x4eba8d)=>{_0x4eba8d['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)),_0x407955['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x343c59=this['_revisionsRepository']['getRevision'](0x0);if(_0x343c59){const _0x39bdde=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x343c59['id']);this['_revisionViewer']['compare'](_0x343c59,_0x39bdde);}}['_handleRevisionSelected'](_0x4fe888,_0x31e40e){const _0x4d8d87=this['_revisionsRepository']['getRevision'](_0x31e40e['id']),_0x290505=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4d8d87['id']);this['_revisionViewer']['compare'](_0x4d8d87,_0x290505);}['_handleRevisionSetName'](_0x25d4e8,_0x5319c3){this['_revisionsRepository']['getRevision'](_0x5319c3['id'])['setName'](_0x5319c3['name']);}['_handleDiffChange'](_0xa6ebe,_0x353098,_0x3fa7d8){const _0x5a7e8a=this['_revisionsRepository']['getRevisionsInDiff'](_0x3fa7d8);_0x5a7e8a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5a7e8a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5a7e8a[0x0]));}['_createRevisionActions'](){const _0x2b8ae9=this['editor'],_0xe30cca=w['availableRevisionActions'],_0x3234e3=_0x2b8ae9['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x3234e3['length'])return _0x3234e3['map'](_0x5c035c=>{const _0x55b917='string'==typeof _0x5c035c?Object['assign']({},_0xe30cca[_0x5c035c]):_0x5c035c;return _0x55b917['action']=_0x55b917['action']['bind'](this,_0x2b8ae9),_0x55b917['isVisible']&&(_0x55b917['isVisible']=_0x55b917['isVisible']['bind'](this,_0x2b8ae9)),_0x55b917;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x254c7c},_0x516a19)=>{const _0x1ec0da=_0x254c7c['get'](d),_0x57a2b2=_0x1ec0da['repository'];let _0xef17a2=_0x1ec0da['diff']['newRevisionId'],_0x16047d=_0x516a19['id'];_0x57a2b2['getIndex'](_0xef17a2)>_0x57a2b2['getIndex'](_0x16047d)&&([_0xef17a2,_0x16047d]=[_0x16047d,_0xef17a2]),_0x1ec0da['compare'](_0xef17a2,_0x16047d);},'isVisible':({plugins:_0x3fce80},_0x512a5e)=>{const _0x96402f=_0x3fce80['get'](d);return!(_0x96402f['repository']['getRevisionsInDiff'](_0x96402f['diff'])['length']>0x2)&&!_0x512a5e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x499b71,{id:_0x1c80b4})=>{_0x499b71['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1c80b4);},'isVisible':({plugins:_0x4ba907},_0x1e281e)=>!!_0x4ba907['get'](d)['repository']['getLaterVisibleRevision'](_0x1e281e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5c472},{id:_0x3f4ce8,revisionNameView:_0x2208a0})=>{const _0x20a264=_0x5c472['get'](d),_0x490e3d=_0x20a264['repository']['getEarlierVisibleRevision'](_0x3f4ce8);_0x20a264['compare'](_0x3f4ce8,_0x490e3d),_0x2208a0['focus'](),_0x2208a0['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x17b041,_0x5ff240){super(_0x17b041),this['_view']=_0x5ff240,this['_toolbarConfig']=ot(_0x17b041['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1c0d0b){const _0x4d0037=this['editor'],_0x31ac55=this['view'],_0x401d44=_0x4d0037['editing']['view'],_0x5512d2=_0x31ac55['editable'],_0x39f2c2=_0x401d44['document']['getRoot']();_0x5512d2['name']=_0x39f2c2['rootName'],_0x31ac55['render']();const _0x2a4060=_0x5512d2['element'];this['setEditableElement'](_0x5512d2['name'],_0x2a4060),_0x31ac55['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x401d44['attachDomRoot'](_0x2a4060),this['_elementReplacer']['replace'](_0x1c0d0b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x44b425=this['view'],_0x1eb693=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1eb693['detachDomRoot'](_0x44b425['editable']['name']),_0x44b425['destroy']();}['_initToolbar'](){const _0x3e9d01=this['view'];_0x3e9d01['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3e9d01['stickyPanel']['limiterElement']=_0x3e9d01['element'],_0x3e9d01['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4a42fd})=>_0x4a42fd),_0x3e9d01['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3e9d01['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5209aa,_0x46525a,_0x1cb547={}){super(_0x5209aa),this['stickyPanel']=new ut(_0x5209aa),this['toolbar']=new lt(_0x5209aa,{'shouldGroupWhenFull':_0x1cb547['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x5209aa,_0x46525a);}['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(_0x5d7de5,_0x1204e5){super(_0x1204e5),this['sourceElement']=_0x5d7de5,this['model']['document']['createRoot']();const _0xf53737=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0xf53737);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x53719c,_0x52f13d){const _0x184582=new this(_0x53719c,_0x52f13d);return await _0x184582['initPlugins'](),await _0x184582['ui']['init'](_0x53719c),await _0x184582['data']['init'](_0x184582['config']['get']('initialData')||''),_0x184582['fire']('ready'),_0x184582;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x4011e1{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ebe32){function _0x177dbe(_0x247e44){return _0x247e44['map'](_0xefad7=>String['fromCharCode'](_0xefad7))['join']('');}super(_0x4ebe32),this['result']='end',_0x4ebe32[_0x177dbe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x177dbe([0x76,0x69,0x65,0x77])][_0x177dbe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x177dbe([0x61,0x75,0x74,0x6f]),_0x4ebe32[_0x177dbe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x177dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x177dbe([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x177dbe([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x177dbe([0x6f,0x6b])});}}class k extends _0x4011e1{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xb60835){if(super(_0xb60835),!this['editor']['config']['get']('revisionHistory'))throw new _0x522924('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x25e8c4=>this['_showRevisionViewer']({..._0x25e8c4,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3ffc49=>this['_closeRevisionViewer'](_0x3ffc49)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x6caf75=>this['_restoreRevision'](_0x6caf75)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x410eb7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x410eb7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xb72ca4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xb72ca4);}['getRevision'](_0x33d02f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x33d02f);}['getRevisions'](_0x336d34){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x336d34||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x391490=this['editor'],_0x5ef077=_0x1d984c(_0x391490,p),_0x24cf4f=_0x391490['plugins']['get']('RevisionTracker'),_0x23e0ec=_0x391490['plugins']['get']('Users')['users'];return _0x5ef077['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5ef077['lazyRoots'],(_0x5ef077['plugins']['push'](Rt,d,g,class extends _0x4011e1{static get['requires'](){return[d,'Users'];}['init'](){const _0x30286d=this['editor']['plugins']['get']('Users');for(const _0x214ed0 of _0x23e0ec)_0x214ed0['isAnonymous']||_0x30286d['getUser'](_0x214ed0['id'])||_0x30286d['addUser'](_0x214ed0);const _0x11d2bf=_0x24cf4f['repository']['getRevisions']();let _0x52c36e=null;const _0x5696c1=this['editor']['plugins']['get']('RevisionViewer');_0x5696c1['adapter']=_0x24cf4f['adapter'],_0x5696c1['bind']('isEnabled')['to'](_0x24cf4f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x391490,'isReadOnly',_0x1c940e=>!_0x1c940e);for(const _0x5f0e8b of _0x11d2bf){const _0x3b3002=null===_0x5f0e8b['creator'];if(_0x3b3002&&_0x5f0e8b['toVersion']===_0x5f0e8b['fromVersion'])continue;const _0x290e45=_0x5f0e8b['toJSON']();_0x5696c1['addRevisionData'](_0x290e45,(_0x1e4baa,_0x4d230b,_0x33de0e)=>{if(_0x3b3002){if(_0x52c36e)_0x52c36e['_update'](_0x1e4baa,_0x4d230b);else{if(!_0x4d230b){const _0x42e081=_0x33de0e['toJSON']();_0x42e081['id']=_0x316b02(),_0x24cf4f['saveRevision'](_0x42e081,_0x33de0e['toVersion'])['then'](_0x2929a4=>{_0x52c36e=_0x2929a4;});}}}else _0x5f0e8b['_update'](_0x1e4baa,_0x4d230b);});}}},w),_0x5ef077);}['_enhanceShowRevisionViewerCallback'](){const _0x23773b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1b9805=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x41f64a=this['editor']['plugins']['get']('Autosave');await _0x41f64a['save']();}else await _0x1b9805['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x36b7bd=this['editor']['plugins']['get']('Dialog');_0x36b7bd['isOpen']&&_0x36b7bd['hide']();}const _0x1a6b8e=this['_getRevisionViewerEditorConfig']();return _0x23773b(_0x1a6b8e)['then'](_0xb3fc44=>{return(this['_viewerEditor']=_0xb3fc44,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xb3fc44;})['catch'](_0x600dcf=>(console['error'](_0x600dcf),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5b99d2=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'](),_0x5b99d2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x29572a=this['editor']['plugins']['get']('Annotations');_0x29572a['refreshVisibility'](),_0x29572a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x10f798){const _0x4cf4fb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22f191=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xc9f8cf=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xc9f8cf,_0x10f798)['then'](_0x24c4fb=>(_0x22f191['style']['display']='block',_0x4cf4fb['style']['display']='none',_0x24c4fb));}['_closeRevisionViewer'](_0x2c640f){const _0x54ce24=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x54ce24['style']['display']='',_0x2c640f['destroy']();}async['_restoreRevision'](_0x1160c5){const _0x492cb2=this['editor'],_0x2decb5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3c6170=_0x492cb2['plugins']['get']('RevisionTracker'),_0x226c09=_0x2decb5['repository']['getRevision'](_0x1160c5);let _0x5cdd29,_0x45df3d,_0x6d86a2;try{_0x5cdd29=await _0x2decb5['getRevisionData'](_0x226c09),_0x45df3d=await _0x2decb5['getRevisionRootsAttributes'](_0x226c09);}catch(_0x32f89a){return void console['error'](_0x32f89a);}_0x492cb2['model']['change'](_0x5515d3=>{for(const _0x461516 of Array['from'](_0x492cb2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5515d3['removeMarker'](_0x461516);}),_0x2decb5['isReady']=!0x1,_0x492cb2['model']['enqueueChange'](_0x16c5bf=>{_0x16c5bf['setSelection'](null),_0x16c5bf['removeSelectionAttribute'](_0x492cb2['model']['document']['selection']['getAttributeKeys']());const _0x45571d=Object['keys'](_0x5cdd29);for(const _0x37d49e of _0x492cb2['model']['document']['roots'])'$graveyard'!=_0x37d49e['rootName']&&_0x37d49e['isAttached']()&&!_0x45571d['includes'](_0x37d49e['rootName'])&&_0x16c5bf['detachRoot'](_0x37d49e);for(const _0x3d0369 of _0x45571d){let _0x2dbd33=_0x492cb2['model']['document']['getRoot'](_0x3d0369);_0x2dbd33&&_0x2dbd33['isAttached']()||(_0x2dbd33=_0x16c5bf['addRoot'](_0x3d0369));const _0x2b6396=_0x45df3d[_0x3d0369],_0x52d594=Object['keys'](_0x2b6396),_0x58c377=_0x5cdd29[_0x3d0369];for(const _0x3f9f5f of _0x2dbd33['getAttributeKeys']())_0x52d594['includes'](_0x3f9f5f)||_0x16c5bf['removeAttribute'](_0x3f9f5f,_0x2dbd33);for(const _0x37e86c of _0x52d594)_0x16c5bf['setAttribute'](_0x37e86c,_0x45df3d[_0x3d0369][_0x37e86c],_0x2dbd33);_0x16c5bf['remove'](_0x16c5bf['createRangeIn'](_0x2dbd33)),_0x16c5bf['insert'](_0x492cb2['data']['parse'](_0x58c377,_0x2dbd33),_0x2dbd33,0x0);}});const _0x2f3f21=m(_0x492cb2['locale'],'Restored');if(_0x226c09['name'])_0x6d86a2=-0x1==_0x226c09['name']['indexOf'](_0x2f3f21)?_0x2f3f21+':\x20'+_0x226c09['name']:_0x226c09['name'];else _0x6d86a2=_0x2f3f21+':\x20'+(_0x226c09['createdAt']['toLocaleDateString'](_0x492cb2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x226c09['createdAt']['toLocaleTimeString'](_0x492cb2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3c6170['saveRevision']({'name':_0x6d86a2}),_0x2decb5['isReady']=!0x0,_0x492cb2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};