@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241212.0 → 0.0.0-nightly-20241213.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 _0x96c3fd,uid as _0x4e6837,Collection as _0x3fda2b,logWarning as _0x1d5680,FocusTracker as _0x71f497,KeystrokeHandler as _0x5cd6bf,scrollViewportToShowTarget as _0x28cd2e,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x420f22}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3f3c34,set as _0x1fadfa,unset as _0x5a11d4,isEqual as _0x3efd05}from'lodash-es';import{Plugin as _0x1c98c7,PendingActions as _0x1f7a70,icons as _0x14c866,Command as _0x4faceb,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4ae6c4,getMarkerDomElement as _0x415cb4,ConfirmMixin as ti,sanitizeEditorConfig as _0x1541f1}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5a9f7e,ViewText as _0x377b5b,ViewElement as _0x1fac3b,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x58bc9a,ViewAttributeElement as _0x4662ee,ViewEmptyElement as _0x425a8a,ViewRawElement as _0x206af8,ViewUIElement as _0x224256,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1e424c,submitHandler as _0x4c83e3,LabeledFieldView as _0x3f921c,createLabeledInputText as _0x2498fb,createDropdown as _0x547500,ListView as _0x1c3951,ListItemView as _0x4d7d59,ButtonView as te,MenuBarMenuView as _0x10f5c5,MenuBarMenuListView as _0xbf7996,MenuBarMenuListItemView as _0x228704,MenuBarMenuListItemButtonView as _0x3ceb1f,ContextualBalloon as _0x3c5899,ToolbarSeparatorView as _0x54463f,IconView as _0x825bd1,addListToDropdown as to,ViewModel as _0x4c462f,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4c6978}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x96c3fd(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x333052){super(),this['id']=_0x333052['id']||_0x4e6837(),this['creator']=_0x333052['creator']||null,this['authors']=_0x333052['authors']||[],this['diffData']=_0x333052['diffData']||null,this['toVersion']=_0x333052['toVersion']||0x0,this['fromVersion']=_0x333052['fromVersion']||0x0,this['set']('name',_0x333052['name']||''),this['set']('createdAt',_0x333052['createdAt']||new Date()),this['set']('attributes',_0x333052['attributes']||{});}['setName'](_0x18fd4d){this['_update']({'name':_0x18fd4d});}['setAttribute'](_0x5a5460,_0xab231b){const _0x5eae51=_0x3f3c34(this['attributes']);_0x1fadfa(_0x5eae51,_0x5a5460,_0xab231b),this['_update']({'attributes':_0x5eae51});}['removeAttribute'](_0x3781a4){const _0x2e675e=_0x3f3c34(this['attributes']);_0x5a11d4(_0x2e675e,_0x3781a4),this['_update']({'attributes':_0x2e675e});}['_update'](_0x2b2c58,_0xf6b2e7=!0x1){let _0x47aba6=!0x1;const _0x303e9b={'id':this['id']},_0x4acc25=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xfeeb3b of _0x4acc25){const _0x311eed=_0x2b2c58[_0xfeeb3b];void 0x0!==_0x311eed&&_0x311eed!==this[_0xfeeb3b]&&(this[_0xfeeb3b]=_0x311eed,_0x303e9b[_0xfeeb3b]=_0x311eed,_0x47aba6=!0x0);}_0x47aba6&&(_0x303e9b['authors']&&(_0x303e9b['authorsIds']=_0x303e9b['authors']['map'](_0x15d718=>_0x15d718['id']),delete _0x303e9b['authors']),this['fire']('_update',_0x303e9b,_0xf6b2e7));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1a1f87=>_0x1a1f87['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1c98c7{['_revisions'];static get['requires'](){return[_0x4ae6c4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x29e69d){super(_0x29e69d),this['_revisions']=new _0x3fda2b();}['afterInit'](){!async function(_0x97203d){const _0x173e42=_0x2d4aa2([0x38,0x57,0x69,0x45,0x44,0x4e,0x53,0x72,0x77,0x4d,0x71,0x51,0x4f,0x35,0x79,0x37,0x46,0x76,0x43,0x67,0x41,0x39,0x6b,0x42,0x75,0x4c,0x73,0x66,0x6e,0x62,0x68,0x5a,0x48,0x52,0x30,0x47,0x7a,0x64,0x78,0x6c,0x59,0x65,0x50,0x6d,0x56,0x49,0x31,0x55,0x36,0x6a,0x61,0x32,0x54,0x74,0x58,0x63,0x6f,0x70,0x4b,0x4a,0x33,0x34]),_0xa64e42=0xeb829,_0x26a46b=0xa9aa744,_0x4d69a5=0xa9dfe3c^_0x26a46b,_0x4637c6=window[_0x2d4aa2([0x44,0x61,0x74,0x65])][_0x2d4aa2([0x6e,0x6f,0x77])](),_0x994a51=_0x97203d[_0x2d4aa2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22c66d=new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159709=>{_0x994a51[_0x2d4aa2([0x6f,0x6e,0x63,0x65])](_0x2d4aa2([0x72,0x65,0x61,0x64,0x79]),_0x159709);}),_0xadc36c={[_0x2d4aa2([0x6b,0x74,0x79])]:_0x2d4aa2([0x45,0x43]),[_0x2d4aa2([0x75,0x73,0x65])]:_0x2d4aa2([0x73,0x69,0x67]),[_0x2d4aa2([0x63,0x72,0x76])]:_0x2d4aa2([0x50,0x2d,0x32,0x35,0x36]),[_0x2d4aa2([0x78])]:_0x2d4aa2([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]),[_0x2d4aa2([0x79])]:_0x2d4aa2([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]),[_0x2d4aa2([0x61,0x6c,0x67])]:_0x2d4aa2([0x45,0x53,0x32,0x35,0x36])},_0xb8cc20=_0x994a51[_0x2d4aa2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d4aa2([0x67,0x65,0x74])](_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ab42b(){let _0x1bded1,_0x4d942a=null,_0x40138b=null;try{if(_0xb8cc20==_0x2d4aa2([0x47,0x50,0x4c]))return _0x2d4aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bded1=_0x26607d(),!_0x1bded1)return _0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bded1[_0x2d4aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40138b=_0x2ad409(_0x1bded1[_0x2d4aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bded1[_0x2d4aa2([0x6a,0x74,0x69])])),await _0x3f55c9()?_0x1afa32()?_0x33a73e()?_0x2d4aa2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x372fde()?(_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3677da()):_0x2d4aa2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d4aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d27ee){return _0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33a73e(){const _0xcfe5e7=[_0x2d4aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d4aa2([0x74,0x72,0x69,0x61,0x6c])][_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4637c6/0x3e8:0xe10*_0x4d69a5;return _0x1bded1[_0x2d4aa2([0x65,0x78,0x70])]<_0xcfe5e7;}function _0x1afa32(){const _0xcb052a=_0x1bded1[_0x2d4aa2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xcb052a)return!0x1;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x2a])))return!0x0;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x52,0x48])))return!0x0;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x52,0x52,0x48]))){if(_0x58a8e1())return!0x0;if(_0x3181e0()||_0x12c53c())return!0x0;}return!0x1;}function _0x372fde(){const _0x48913e=_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48913e||0x0==_0x48913e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d5bd1}=new URL(window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48913e[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d5bd1))return!0x0;const _0xc82ba7=_0x2d5bd1[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e]));return _0x48913e[_0x2d4aa2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cc01d=>_0x4cc01d[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x2a])))[_0x2d4aa2([0x6d,0x61,0x70])](_0x1e89c2=>_0x1e89c2[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e])))[_0x2d4aa2([0x73,0x6f,0x6d,0x65])](_0x41ea90=>_0xc82ba7[_0x2d4aa2([0x65,0x76,0x65,0x72,0x79])]((_0x37e32d,_0x2a116b)=>_0x41ea90[_0x2a116b]===_0x37e32d||_0x41ea90[_0x2a116b]===_0x2d4aa2([0x2a])));}function _0x3677da(){return _0x4d942a&&_0x40138b?new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d1683,_0x440ca8)=>{_0x4d942a[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x1d1683,_0x440ca8),_0x40138b[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x4cea34=>{_0x4cea34!=_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x1d1683(_0x4cea34);},_0x440ca8);}):_0x4d942a||_0x40138b||_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ad409(_0x2be34f,_0x5d08ee){return new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42d912=>{if(_0x409d86())return _0x42d912(_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]));_0x2e9771(),_0x994a51[_0x2d4aa2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f4827=!0x1;const _0x4b9b67=_0x4e6837();function _0x15d54b(_0x59b6ac){return!!_0x59b6ac&&(typeof _0x59b6ac===_0x2d4aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59b6ac===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59b6ac[_0x2d4aa2([0x74,0x68,0x65,0x6e])]===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59b6ac[_0x2d4aa2([0x63,0x61,0x74,0x63,0x68])]===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34c00b(_0x317549){_0x52a31e(_0x317549)[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x53bf7d=>{if(!_0x53bf7d||_0x53bf7d[_0x2d4aa2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d4aa2([0x6f,0x6b]))return _0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ad6e7(_0x5920c5(_0x4b9b67+_0x5d08ee))!=_0x53bf7d[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x2eb18e=>(_0x636a6(),_0x2eb18e),()=>{const _0x52af76=_0x35e8a6();return null==_0x52af76?(_0x636a6(),_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])):_0x2d4aa2(_0x4637c6-_0x52af76>(0x2e962344^_0x26a46b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x42d912)[_0x2d4aa2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x230d1b=0xaac49c4^_0x26a46b;function _0x636a6(){const _0x4d6b7d=_0x2d4aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad6e7(_0x5920c5(_0x2be34f)),_0x2321c7=_0x165100(_0x4ad6e7(window[_0x2d4aa2([0x4d,0x61,0x74,0x68])][_0x2d4aa2([0x63,0x65,0x69,0x6c])](_0x4637c6/_0x230d1b)));window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d4aa2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d6b7d,_0x2321c7);}function _0x35e8a6(){const _0x570856=_0x2d4aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad6e7(_0x5920c5(_0x2be34f)),_0x3c4cb7=window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d4aa2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x570856);return _0x3c4cb7?window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165100(_0x3c4cb7),0x10)*_0x230d1b:null;}function _0x52a31e(_0x4ad23c){return new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38f93e,_0x3c2bee)=>{_0x4ad23c[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x38f93e,_0x3c2bee),window[_0x2d4aa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c2bee,0xa9b7384^_0x26a46b);});}}_0x994a51[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2634fd,_0x3fb0c2)=>{if(_0x3fb0c2[0x0]!=_0x2be34f)return _0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fb0c2[0x1]={..._0x3fb0c2[0x1],[_0x2d4aa2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b9b67};},{[_0x2d4aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d4aa2([0x68,0x69,0x67,0x68])}),_0x994a51[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x645962=>{_0x15d54b(_0x645962[_0x2d4aa2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f4827=!0x0,_0x34c00b(_0x645962[_0x2d4aa2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d4aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d4aa2([0x6c,0x6f,0x77])}),_0x22c66d[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>{_0x3f4827||_0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x409d86(){return _0x994a51[_0x2d4aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d4aa2([0x76,0x69,0x65,0x77])][_0x2d4aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d4aa2([0x61,0x75,0x74,0x6f]);}function _0x2e9771(){_0x994a51[_0x2d4aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d4aa2([0x76,0x69,0x65,0x77])][_0x2d4aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d4aa2([0x61,0x75,0x74,0x6f]);}}function _0x451e3f(_0x2ffd0a){const _0xc38ed0=[new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546c6a=>setTimeout(_0x546c6a,0xa939988^_0x26a46b)),_0x22c66d[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b4d5a=>{const _0x5df74d=0xa9aa743^_0x26a46b,_0x53dd97=_0x97203d[_0x2d4aa2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x379a89(){_0x53dd97[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5df74d&&_0x2b4d5a();}_0x379a89(),_0x53dd97[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x61,0x64,0x64]),_0x379a89);})),new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52405f=>{function _0x184b6a(){for(const _0x3d0bf1 in window)if(window[_0x2d4aa2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2d4aa2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3d0bf1))&&window[_0x3d0bf1]==_0xa64e42)return _0x52405f();_0x994a51[_0x2d4aa2([0x73,0x74,0x61,0x74,0x65])]!=_0x2d4aa2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2d4aa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x184b6a,0xa9ab4cc^_0x26a46b);}_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x184b6a();})];return window[_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d4aa2([0x72,0x61,0x63,0x65])](_0xc38ed0)[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>_0x2ffd0a);}async function _0x467304(){if(await _0x22c66d,_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5099d6=_0x97203d[_0x2d4aa2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x185dd9=_0x97203d[_0x2d4aa2([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])](_0x5099d6[_0x2d4aa2([0x69,0x64])]),_0x23da40=_0x1866be(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x23da40[_0x2d4aa2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5099d6['id'],_0x185dd9?_0x185dd9['id']:null,!0x0),_0x23da40[_0x2d4aa2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23da40[_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23da40[_0x2d4aa2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x138e18,void(_0x23da40[_0x2d4aa2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x138e18);}if(_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x59bf98=_0x1866be(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x59bf98[_0x2d4aa2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59bf98[_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59bf98[_0x2d4aa2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x138e18,_0x59bf98[_0x2d4aa2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x138e18;}_0x994a51[_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d4aa2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x138e18,_0x994a51[_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d4aa2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x138e18,_0x994a51[_0x2d4aa2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58a8e1(){return _0x237031(_0x2d4aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1866be(_0x2d4aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2d4aa2([0x73,0x74,0x61,0x74,0x65])]==_0x2d4aa2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3181e0(){return _0x237031(_0x2d4aa2([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 _0x12c53c(){return _0x237031(_0x2d4aa2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x261c28(_0xacb270){const _0x177026=_0x258151();_0x994a51[_0x177026]=_0x2d4aa2([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])+_0xacb270,_0xacb270[_0x2d4aa2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2d4aa2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x258151()]=_0xa64e42),_0xacb270!=_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x467304();}function _0x258151(){const _0x5948a5=window[_0x2d4aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d4aa2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d4aa2([0x6e,0x6f,0x77])]())[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d4aa2([0x2e]),'');let _0x315c56=_0x2d4aa2([0x57]);for(let _0x369335=0x0;_0x369335<_0x5948a5[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x369335+=0x2){let _0x470078=window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5948a5[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x369335,_0x369335+0x2));_0x470078>=_0x173e42[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x470078-=_0x173e42[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x315c56+=_0x173e42[_0x470078];}return _0x315c56;}function _0x26607d(){const _0x358027=_0xb8cc20[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e]));if(0x3!=_0x358027[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45f7a6(_0x358027[0x1]);function _0x45f7a6(_0x4f934e){const _0x50811b=_0x1079f5(_0x4f934e);return _0x50811b&&_0x4aa9a4()?_0x50811b:null;function _0x4aa9a4(){const _0x58730e=_0x50811b[_0x2d4aa2([0x6a,0x74,0x69])],_0x4a498d=window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58730e[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58730e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x495c7f={..._0x50811b,[_0x2d4aa2([0x6a,0x74,0x69])]:_0x58730e[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58730e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x495c7f[_0x2d4aa2([0x76,0x63])],_0x5920c5(_0x495c7f)==_0x4a498d;}}}async function _0x3f55c9(){let _0x24f2fa=!0x0;try{const _0x2f4866=_0xb8cc20[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e])),[_0x45750f,_0x2b3fc0,_0x22e585]=_0x2f4866;return _0x3b1f6d(_0x45750f),await _0x1b6a95(_0x45750f,_0x2b3fc0,_0x22e585),_0x24f2fa;}catch(_0x2b1532){return!0x1;}function _0x3b1f6d(_0x107551){const _0x405d4d=_0x1079f5(_0x107551);_0x405d4d&&_0x405d4d[_0x2d4aa2([0x61,0x6c,0x67])]==_0x2d4aa2([0x45,0x53,0x32,0x35,0x36])||(_0x24f2fa=!0x1);}async function _0x1b6a95(_0x2059c8,_0x2fb8df,_0x22060e){const _0x52d447=window[_0x2d4aa2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d4aa2([0x66,0x72,0x6f,0x6d])](_0x25425a(_0x22060e),_0x1ddebc=>_0x1ddebc[_0x2d4aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22386b=new window[(_0x2d4aa2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d4aa2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2059c8+_0x2d4aa2([0x2e])+_0x2fb8df),_0x1115d1=window[_0x2d4aa2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d4aa2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1115d1)return;const _0x426c37=await _0x1115d1[_0x2d4aa2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d4aa2([0x6a,0x77,0x6b]),_0xadc36c,{[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x45,0x43,0x44,0x53,0x41]),[_0x2d4aa2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d4aa2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1115d1[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x45,0x43,0x44,0x53,0x41]),[_0x2d4aa2([0x68,0x61,0x73,0x68])]:{[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x426c37,_0x52d447,_0x22386b)||(_0x24f2fa=!0x1);}}function _0x1079f5(_0x185867){return _0x185867[_0x2d4aa2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d4aa2([0x65,0x79]))?JSON[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65])](_0x25425a(_0x185867)):null;}function _0x25425a(_0x46acbb){return window[_0x2d4aa2([0x61,0x74,0x6f,0x62])](_0x46acbb[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d4aa2([0x2b]))[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d4aa2([0x2f])));}function _0x5920c5(_0xc12e1){let _0x37db6c=0x1505;function _0x1734fb(_0x2367bf){for(let _0x182694=0x0;_0x182694<_0x2367bf[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x182694++){const _0x6c19ce=_0x2367bf[_0x2d4aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x182694);_0x37db6c=(_0x37db6c<<0x5)+_0x37db6c+_0x6c19ce,_0x37db6c&=_0x37db6c;}}function _0x501e0a(_0x2ef2c5){Array[_0x2d4aa2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ef2c5)?_0x2ef2c5[_0x2d4aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x501e0a):_0x2ef2c5&&typeof _0x2ef2c5==_0x2d4aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d4aa2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ef2c5)[_0x2d4aa2([0x73,0x6f,0x72,0x74])]()[_0x2d4aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x85643e,_0x1172d3])=>{_0x1734fb(_0x85643e),_0x501e0a(_0x1172d3);}):_0x1734fb(window[_0x2d4aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ef2c5));}return _0x501e0a(_0xc12e1),_0x37db6c>>>0x0;}function _0x4ad6e7(_0x367eb1){return _0x367eb1[_0x2d4aa2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d4aa2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d4aa2([0x30]));}function _0x165100(_0x7592ad){return _0x7592ad[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d4aa2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d4aa2([0x6a,0x6f,0x69,0x6e])]('');}function _0x237031(_0x23622f){return _0x994a51[_0x2d4aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d4aa2([0x68,0x61,0x73])](_0x23622f);}function _0x1866be(_0x1e7b06){return _0x994a51[_0x2d4aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d4aa2([0x67,0x65,0x74])](_0x1e7b06);}function _0x138e18(){}function _0x2d4aa2(_0x40950e){return _0x40950e['map'](_0x2aacc0=>String['fromCharCode'](_0x2aacc0))['join']('');}_0x261c28(await _0x3ab42b());}(this);}['createRevision'](_0x4e42d5){const _0x362134=this['editor']['plugins']['get']('Users');return new a({'id':_0x4e42d5['id'],'name':_0x4e42d5['name'],'creator':_0x4e42d5['creatorId']?_0x362134['getUser'](_0x4e42d5['creatorId']):null,'diffData':_0x4e42d5['diffData']||_0x4e42d5['data'],'authors':_0x4e42d5['authorsIds']['map'](_0x2fb79e=>_0x362134['getUser'](_0x2fb79e)),'createdAt':new Date(_0x4e42d5['createdAt']),'attributes':_0x4e42d5['attributes'],'fromVersion':_0x4e42d5['fromVersion'],'toVersion':_0x4e42d5['toVersion']});}['addRevision'](_0x4b8687,_0x3855c0=0x0){this['_revisions']['add'](_0x4b8687,_0x3855c0);}['getRevision'](_0x4aa5ab){return this['_revisions']['get'](_0x4aa5ab);}['getRevisions'](_0x549a21={'toJSON':!0x1}){const _0x24bb76=Array['from'](this['_revisions']);return _0x24bb76['reverse'](),_0x549a21['toJSON']?_0x24bb76['map'](_0x51b606=>_0x51b606['toJSON']()):_0x24bb76;}['getIndex'](_0x5448a9){return this['_revisions']['getIndex'](_0x5448a9);}['getEarlierVisibleRevision'](_0x402752){const [,_0x5f0c12]=this['getRevisionsIterator'](_0x402752,{'direction':'earlier'});return _0x5f0c12;}['getLaterVisibleRevision'](_0x55d4f1){const [,_0x305a19]=this['getRevisionsIterator'](_0x55d4f1,{'direction':'later'});return _0x305a19;}['getRevisionsInDiff'](_0x229f59){const _0x3aac2f=[];for(const _0x24c77a of this['getRevisionsIterator'](_0x229f59['newRevisionId']))if(_0x3aac2f['push'](_0x24c77a),_0x24c77a['id']===_0x229f59['oldRevisionId'])break;return _0x3aac2f;}*['getRevisionsIterator'](_0x2a2f99,{direction:_0x5b9e71='earlier',filter:_0x5d1457=()=>!0x0}={}){const _0xf61819='earlier'===_0x5b9e71?0x1:-0x1;let _0x3b204a=this['_revisions']['get'](_0x2a2f99),_0x1080c9=this['getIndex'](_0x3b204a);for(yield _0x3b204a;_0x3b204a;){if(_0x1080c9+=_0xf61819,_0x3b204a=this['getRevision'](_0x1080c9),!_0x3b204a)return;_0x5d1457(_0x3b204a)&&(yield _0x3b204a);}}}function R(_0x4fd1a2,_0x2b08d4,_0x343f8e){const t=_0x4fd1a2['t'];switch(_0x2b08d4){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'},_0x343f8e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x343f8e);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 C={'c':_0x58bc9a,'a':_0x4662ee,'e':_0x425a8a,'r':_0x206af8,'u':_0x224256};class l extends _0x1c98c7{['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[_0x4ae6c4,j,_0x1f7a70];}constructor(_0x2dc833){super(_0x2dc833),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x18b36f=_0x4e6837();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18b36f},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 _0x3b354a=this['repository']['getRevision'](0x0),_0x1daf2c=_0x3b354a&&null===_0x3b354a['creator']?_0x3b354a:null;if(this['_continueCurrentRevision']=!!_0x1daf2c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5ebe78=this['_source']['getCurrentRevisionId'](),_0x198a39=this['repository']['getRevision'](_0x5ebe78);if(_0x198a39)this['_startingVersion']=_0x198a39['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2dbd9e=this['_source']['history']['_operations']['find'](_0xa178b3=>!_0xa178b3['_isInit']),_0x267171=_0x2dbd9e?_0x2dbd9e['baseVersion']:this['_source']['history']['version'];_0x3b354a?(_0x3b354a['toVersion']<_0x267171&&_0x3b354a['_update']({'toVersion':_0x267171}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id'],this['_startingVersion']=_0x1daf2c['fromVersion']):(this['_startingVersion']=_0x3b354a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x267171,this['_continueCurrentRevision']=!0x1);}}else _0x1daf2c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1daf2c['toVersion'],this['editor']['model']['document']['history']['version']),_0x1daf2c['fromVersion']===_0x1daf2c['toVersion']?(0x0!==_0x1daf2c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id'],this['_startingVersion']=_0x1daf2c['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',_0x2c6183=>!_0x2c6183),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a9759=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d3602;for(const _0x158bcd in _0x4a9759){const _0x12579b=_0x158bcd,_0x241f01=_0x4a9759[_0x12579b];if('revisionHistoryLicenseKeyValid'==_0x241f01||'revisionHistoryLicenseKeyInvalid'==_0x241f01||'revisionHistoryLicenseKeyExpired'==_0x241f01||'revisionHistoryLicenseKeyDomainLimit'==_0x241f01||'revisionHistoryLicenseKeyNotAllowed'==_0x241f01||'revisionHistoryLicenseKeyEvaluationLimit'==_0x241f01||'revisionHistoryLicenseKeyTrialLimit'==_0x241f01||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x241f01||'revisionHistoryLicenseKeyUsageLimit'==_0x241f01){delete _0x4a9759[_0x12579b],_0x1d3602=_0x241f01,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1d3602&&_0x4a9759['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1d3602&&_0x4a9759['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1d3602&&_0x4a9759['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4814d2=this['repository']['getRevision'](0x0),_0x4b4852=await this['getRevisionDocumentData'](_0x4814d2),_0xad1f70=await this['getRevisionRootsAttributes'](_0x4814d2);this['_replaceEditorDataWithRevisionData'](_0x4b4852,_0xad1f70);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x148bcc){this['_source']=_0x148bcc;}async['update'](){const _0x217770=await this['_source']['getLatestVersion']();if(_0x217770>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2c62bb=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x217770});_0x2c62bb['authors']=_0x2c62bb['authorsIds']['map'](_0x1377fc=>this['editor']['plugins']['get']('Users')['getUser'](_0x1377fc)),this['currentRevision']['_update'](_0x2c62bb);}}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'](_0x989d83={},_0x445979=null){const _0x32af2b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x445979>this['currentRevision']['toVersion']&&(_0x445979=null),null===_0x445979&&(_0x445979=await this['_source']['getLatestVersion']());const _0x1b4e70=this['_getFromVersion'](_0x445979),_0x557fa0=this['buildRevisionData']({'from':_0x1b4e70,'to':_0x445979});if(this['currentRevision']['toVersion']<_0x445979){const _0x3d03a5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x445979,'to':_0x445979});_0x3d03a5['authors']=[],_0x3d03a5['authorsIds']=[],_0x3d03a5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3d03a5,!0x0),delete _0x3d03a5['authors'],_0x32af2b['push'](_0x3d03a5);}_0x989d83['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x989d83['name']=_0x989d83['name']||null,_0x989d83['id']=_0x989d83['id']||_0x4e6837(),_0x989d83={..._0x989d83,..._0x557fa0};const _0x3b1872=this['addRevisionData'](_0x989d83);_0x32af2b['push'](_0x989d83);const _0x59c5a0=this['repository']['getIndex'](_0x3b1872);if(0x0!==_0x59c5a0){const _0x1d047f=this['repository']['getRevision'](_0x59c5a0-0x1);if(_0x1d047f['fromVersion']!==_0x445979){const _0x31c1a9=this['_revisionDataBuilder']['getData'](_0x445979,_0x1d047f['toVersion']),_0x123bc5={'id':_0x1d047f['id'],'diffData':_0x31c1a9['diffData'],'authorsIds':_0x31c1a9['authorsIds'],'authors':_0x31c1a9['authorsIds']['map'](_0x169a12=>this['editor']['plugins']['get']('Users')['getUser'](_0x169a12)),'fromVersion':_0x445979};_0x1d047f===this['currentRevision']&&(_0x123bc5['createdAt']=new Date(_0x989d83['createdAt']['getTime']()+0xa)),_0x1d047f['_update'](_0x123bc5,!0x0),delete _0x123bc5['authors'],_0x32af2b['push'](_0x123bc5);}}if(this['adapter']){for(const _0x437f0d of _0x32af2b)this['_bufferUpdate'](_0x437f0d['id'],_0x437f0d,!0x0);this['sendBufferedUpdates']();}return _0x3b1872;}['addRevisionData'](_0x31d2a4){const _0x4f1b01=this['repository']['createRevision'](_0x31d2a4);return this['adapter']&&_0x4f1b01['on']('_update',(_0x32d442,_0x27bb48,_0x35250a)=>{_0x35250a||(this['_bufferUpdate'](_0x27bb48['id'],_0x27bb48,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f1b01,this['_findInsertionIndex'](_0x4f1b01)),_0x4f1b01;}async['getRevisionDocumentData'](_0x79b56a){await this['_loadRevisionData'](_0x79b56a);const _0x52ae8d={};for(const _0x231911 in _0x79b56a['diffData']){if(_0x79b56a['diffData'][_0x231911]['attachChange']&&!_0x79b56a['diffData'][_0x231911]['attachChange']['isAttached'])continue;const _0x5af120=this['_removeRevisionMarkers'](JSON['parse'](_0x79b56a['diffData'][_0x231911]['insertions'])),_0x1dc5c3=this['editor']['editing']['view']['document'],_0xb242a6=new _0x5a9f7e(_0x1dc5c3,_0x5af120['map'](_0x5c5493=>V(_0x5c5493,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x52ae8d[_0x231911]=this['editor']['data']['processor']['toData'](_0xb242a6),this['editor']['data']['processor']['useFillerType']('default');}return _0x52ae8d;}async['getRevisionRootsAttributes'](_0x43d750){await this['_loadRevisionData'](_0x43d750);const _0x44164d={};for(const _0x12e31c in _0x43d750['diffData'])_0x43d750['diffData'][_0x12e31c]['attachChange']&&!_0x43d750['diffData'][_0x12e31c]['attachChange']['isAttached']||(_0x44164d[_0x12e31c]=_0x43d750['diffData'][_0x12e31c]['attributesAfter']||{});return _0x44164d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x8c8367=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2e4159=0x0;_0x2e4159<_0x8c8367['length'];_0x2e4159++){const _0x4a7a7d=_0x8c8367[_0x2e4159];let _0x2fec27=!0x1;for(const _0x498d52 of Object['keys'](_0x4a7a7d))void 0x0===_0x4a7a7d[_0x498d52]?delete _0x4a7a7d[_0x498d52]:'id'!==_0x498d52&&(_0x2fec27=!0x0);_0x2fec27||(_0x8c8367[_0x2e4159]=null);}if(_0x8c8367=_0x8c8367['filter'](_0xcd4ad3=>null!==_0xcd4ad3),!_0x8c8367['length'])return;for(let _0x5d5dd3=0x0;_0x5d5dd3<_0x8c8367['length'];_0x5d5dd3++){const _0xf3f3fc=_0x8c8367[_0x5d5dd3];void 0x0!==_0xf3f3fc['fromVersion']&&void 0x0===_0xf3f3fc['toVersion']&&(_0xf3f3fc['toVersion']=this['repository']['getRevision'](_0xf3f3fc['id'])['toVersion']),void 0x0!==_0xf3f3fc['toVersion']&&void 0x0===_0xf3f3fc['fromVersion']&&(_0xf3f3fc['fromVersion']=this['repository']['getRevision'](_0xf3f3fc['id'])['fromVersion']);}const _0x5041fd=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x8c8367,_0x5041fd)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x30954c=>{if(_0x30954c){for(const _0x1fb40f of _0x30954c)this['setRevisionData']({'id':_0x1fb40f['id'],'createdAt':_0x1fb40f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x391cd6,_0x3ab9a8){let _0x538afc=this['editor']['config']['get']('initialData'),_0x915919=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x538afc){_0x538afc={};for(const _0xa3ec3 of this['editor']['model']['document']['getRootNames']())_0x538afc[_0xa3ec3]='';}if('string'==typeof _0x538afc&&(_0x538afc={'main':_0x538afc}),void 0x0===_0x915919){_0x915919={};for(const _0x30be8b of this['editor']['model']['document']['getRootNames']())_0x915919[_0x30be8b]={};}let _0x2bd28c=!0x1;const _0x7c8961=Object['keys'](_0x538afc),_0x5eab8f=Object['keys'](_0x391cd6);for(const _0x3bd5cb of _0x7c8961){if(_0x538afc[_0x3bd5cb]!==_0x391cd6[_0x3bd5cb]&&''!==_0x538afc[_0x3bd5cb]['trim']()){_0x2bd28c=!0x0;break;}if(!_0x3efd05(_0x915919[_0x3bd5cb],_0x3ab9a8[_0x3bd5cb])&&Object['keys'](_0x915919[_0x3bd5cb])['length']>0x0){_0x2bd28c=!0x0;break;}}_0x2bd28c||(_0x2bd28c=_0x5eab8f['some'](_0x482c4a=>!this['editor']['model']['document']['getRoot'](_0x482c4a))),_0x2bd28c&&_0x1d5680('editor-initial-data-replaced-with-revision-data',{'editorData':_0x538afc,'editorRootsAttributes':_0x915919,'revisionData':_0x391cd6,'revisionRootsAttributes':_0x3ab9a8}),this['editor']['config']['set']('initialData',_0x391cd6),this['editor']['config']['set']('rootsAttributes',_0x3ab9a8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xc74c32=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xc74c32['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x36bd64){const _0x1e05a0=this['repository']['getRevisions']();_0x1e05a0['reverse']();let _0x2aec8e=0x0;for(;_0x2aec8e<_0x1e05a0['length'];){const _0xd193bb=_0x1e05a0[_0x2aec8e];if(_0xd193bb===this['currentRevision']){_0x2aec8e++;continue;}if(_0xd193bb['id']===this['_initialRevisionId'])break;const _0x2596d1=_0x36bd64['toVersion']-_0xd193bb['toVersion']||_0x36bd64['fromVersion']-_0xd193bb['fromVersion'];if(_0x2596d1>0x0)break;if(_0x2596d1<0x0)_0x2aec8e++;else{if(!_0x36bd64['creator']&&_0xd193bb['creator'])break;if(_0xd193bb['creator']||!_0x36bd64['creator']){if(_0x36bd64['createdAt']>_0xd193bb['createdAt'])break;_0x2aec8e++;}else _0x2aec8e++;}}return _0x2aec8e;}['setRevisionData'](_0x147b91){const _0x569a60=this['repository']['getRevision'](_0x147b91['id']);if(_0x147b91['createdAt']&&(_0x147b91['createdAt']=new Date(_0x147b91['createdAt'])),_0x147b91['authorsIds']){const _0x2d5ead=this['editor']['plugins']['get']('Users');_0x147b91['authors']=_0x147b91['authorsIds']['map'](_0x160f28=>_0x2d5ead['getUser'](_0x160f28));}_0x569a60['_update'](_0x147b91,!0x0);}['buildRevisionData']({revision:_0x1b69f0=null,from:_0x5c62df=null,to:_0x5c0fc9=null}){_0x5c62df=null!==_0x5c62df?_0x5c62df:_0x1b69f0['fromVersion'],_0x5c0fc9=null!==_0x5c0fc9?_0x5c0fc9:_0x1b69f0['toVersion'];const _0x108de1=this['_revisionDataBuilder']['getData'](_0x5c62df,_0x5c0fc9),_0x1034b1={'diffData':_0x108de1['diffData'],'authorsIds':_0x108de1['authorsIds'],'fromVersion':_0x5c62df,'toVersion':_0x5c0fc9};if(!_0x1b69f0||_0x5c0fc9!==_0x1b69f0['toVersion']){const _0x13f9a6=_0x5c0fc9-0x1,_0x42a6d1=this['_source']['history']['getOperation'](_0x13f9a6);_0x1034b1['createdAt']=_0x42a6d1&&_0x42a6d1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5c62df===this['_loadedStateData']['fromVersion']){for(const _0x281bf0 of this['_loadedStateData']['authors'])_0x1034b1['authorsIds']['includes'](_0x281bf0['id'])||_0x1034b1['authorsIds']['push'](_0x281bf0['id']);}return _0x1034b1;}['_loadRevisionData'](_0x347fc6){if(!_0x347fc6||_0x347fc6['diffData'])return Promise['resolve']();{const _0x1a4aa0=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1a4aa0,'revisionId':_0x347fc6['id']})['then'](_0x28a5dc=>{_0x347fc6['diffData']=_0x28a5dc['diffData'];});}}['_bufferUpdate'](_0x35ee2a,_0x23f4b7,_0x30318a){if(this['_bufferedUpdates']['has'](_0x35ee2a)){const _0x173714=this['_bufferedUpdates']['get'](_0x35ee2a);_0x23f4b7=_0x30318a?{..._0x173714,..._0x23f4b7}:{..._0x23f4b7,..._0x173714};}this['_bufferedUpdates']['set'](_0x35ee2a,_0x23f4b7);}['_getFromVersion'](_0x36a7e9){const _0x4af5b6=this['repository']['getRevisions']();_0x4af5b6['reverse'](),_0x4af5b6['shift']();const _0x5059e3=_0x4af5b6['find'](_0x10509f=>_0x10509f['toVersion']<=_0x36a7e9)['toVersion'];return _0x5059e3<this['_startingVersion']?this['_startingVersion']:_0x5059e3;}['_createInitialRevision'](_0x218950){const _0x5d53d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5d53d)this['_initialRevisionId']=_0x5d53d['id'];else{const _0x228ad1=!this['editor']['model']['document']['roots']['find'](_0x30edfd=>this['editor']['model']['hasContent'](_0x30edfd)),_0x376409=this['editor']['plugins']['get']('Users')['me']['id'],_0x77f9e3=R(this['editor']['locale'],_0x228ad1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x218950,'to':_0x218950,'id':this['_initialRevisionId'],'name':_0x77f9e3,'creatorId':_0x376409});}}['_createCurrentRevision'](_0x4a1ccf){const _0x59540c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x59540c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a1ccf,'to':_0x4a1ccf,'id':_0x59540c,'name':'','creatorId':null}));}['_makeRevision']({name:_0x41d6f5,from:_0x19db80,to:_0x54d09a,creatorId:_0x3b3361,id:_0x3a4c4a}){const _0x2c016e=this['buildRevisionData']({'from':_0x19db80,'to':_0x54d09a});_0x2c016e['name']=_0x41d6f5,_0x2c016e['creatorId']=_0x3b3361,_0x2c016e['id']=_0x3a4c4a;const _0x5cc5fc=this['addRevisionData'](_0x2c016e);return this['adapter']&&this['_bufferUpdate'](_0x2c016e['id'],_0x2c016e,!0x0),_0x5cc5fc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5902b4){return(_0x5902b4=_0x5902b4['filter'](_0x5bfed2=>!_0x5bfed2['name']||'revision-start'!==_0x5bfed2['name']&&'revision-end'!==_0x5bfed2['name']))['forEach'](_0x1f7848=>{'string'!=typeof _0x1f7848&&(_0x1f7848['children']=this['_removeRevisionMarkers'](_0x1f7848['children']),_0x1f7848['attributes']=_0x1f7848['attributes']['filter'](_0x3e05a6=>!_0x3e05a6[0x0]['startsWith']('data-revision-')));}),_0x5902b4;}}function V(_0x5993e9,_0x48b367){const _0x14d1d8=_0x48b367['editing']['view']['document'];if('string'==typeof _0x5993e9)return new _0x377b5b(_0x14d1d8,_0x5993e9);{const _0x2487ed=_0x5993e9['children']['map'](_0x161bd6=>V(_0x161bd6,_0x48b367));return new(C[_0x5993e9['type']]||_0x1fac3b)(_0x14d1d8,_0x5993e9['name'],_0x5993e9['attributes'],_0x2487ed);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x34ec46){this['editor']=_0x34ec46,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'](_0x3824db){this['source']=_0x3824db;const _0xdb16aa=new Map(),_0x57ee08=new Map(),_0x566a46=this['editor']['model']['document']['roots']['map'](_0x251fee=>_0x251fee['rootName']);for(const _0xc2307e of _0x566a46){const _0x2a7f07=this['editor']['model']['document']['getRoot'](_0xc2307e),_0x5e700c=F(_0x2a7f07);_0xdb16aa['set'](_0xc2307e,_0x5e700c),_0x57ee08['set'](_0xc2307e,Object['fromEntries'](_0x2a7f07['getAttributes']()));}const _0x6244c1=Array['from'](this['editor']['model']['markers'])['map'](_0x2bb2a1=>[_0x2bb2a1['name'],_0x2bb2a1['getRange']()]),_0x4a5560=this['source']['version'];this['_saveMetaData'](_0x4a5560,_0xdb16aa,_0x6244c1,_0x57ee08),this['_startingRevisionId']=this['_revisionId'];const _0x3511a6=new Map(),_0x247f00=new Map();for(const _0x40efd4 of _0x566a46){const _0x31a8c7=B(_0x40efd4);_0x3511a6['set'](_0x40efd4,_0x31a8c7),_0x247f00['set'](_0x40efd4,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3511a6,[],_0x247f00);}['getData'](_0x2a0eae,_0x526e9c){if(this['_lastFrom']===_0x2a0eae&&this['_lastTo']<=_0x526e9c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x526e9c,!0x0);else{if(!this['_savedMetaData']['has'](_0x2a0eae)){const _0x4d3473=this['_getPreviousFrom'](_0x2a0eae);this['_calculateMetaData'](_0x4d3473,_0x2a0eae,!0x1);}this['_calculateMetaData'](_0x2a0eae,_0x526e9c,!0x0);}return this['_lastFrom']=_0x2a0eae,this['_lastTo']=_0x526e9c,this['_getState']();}['loadState'](_0x530e66){this['_reset'](),this['_lastFrom']=_0x530e66['fromVersion'],this['_lastTo']=_0x530e66['toVersion'];for(const _0x1f2a9c in _0x530e66['diffData']){const _0x2a562f=_0x530e66['diffData'][_0x1f2a9c]['attachChange'],_0x31924f=_0x3f3c34(_0x530e66['diffData'][_0x1f2a9c]['attributesBefore'])||{},_0x39cd08=this['_makeModelFromViewString'](_0x530e66['diffData'][_0x1f2a9c]['deletions']);_0x39cd08['rootName']=_0x1f2a9c,_0x39cd08['_isAttached']=!_0x2a562f||!_0x2a562f['isAttached'],_0x39cd08['isAttached']=()=>_0x39cd08['_isAttached'],this['_baseRoots']['set'](_0x1f2a9c,_0x39cd08),this['_baseRootsAttributes']['set'](_0x1f2a9c,_0x31924f),_0x2a562f&&this['_touchedRoots']['set'](_0x1f2a9c,_0x2a562f);const _0x37abfd=this['_makeIdsRoot'](_0x39cd08);this['_baseIdsRoots']['set'](_0x1f2a9c,_0x37abfd);for(const [_0x417f94,_0x480e6f]of _0x39cd08['markers']){if(!_0x417f94['startsWith']('revision:'))continue;const _0x1319e1=_0x417f94['split'](':')[0x2];for(const _0x5b8053 of _0x480e6f['getWalker']({'singleCharacters':!0x0})){const _0x49d8c5=this['_getVidAttributeName'](_0x5b8053),_0x1ff675='elementEnd'==_0x5b8053['type']?_0x5b8053['previousPosition']['path']['slice'](0x0,-0x1):_0x5b8053['previousPosition']['path'],_0x3e74d2=_0x37abfd['getNodeByPath'](_0x1ff675)['getAttribute'](_0x49d8c5);this['_touched']['set'](_0x3e74d2,{'userId':_0x1319e1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4277d3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x160509=>!this['_touched']['has'](_0x160509));let _0x2f39c0=0x0;const _0x50f18e=new Map();for(const _0xe3f441 in _0x530e66['diffData']){const _0xb671c1=_0x530e66['diffData'][_0xe3f441]['attachChange'],_0x4fea00=_0x3f3c34(_0x530e66['diffData'][_0xe3f441]['attributesAfter'])||{},_0x1b4edf=this['_makeModelFromViewString'](_0x530e66['diffData'][_0xe3f441]['insertions']);_0x1b4edf['rootName']=_0xe3f441,_0x1b4edf['_isAttached']=!_0xb671c1||_0xb671c1['isAttached'],_0x1b4edf['isAttached']=()=>_0x1b4edf['_isAttached'],this['_diffRoots']['set'](_0xe3f441,_0x1b4edf),this['_diffRootsAttributes']['set'](_0xe3f441,_0x4fea00);const _0x348ac1=this['_makeIdsRoot'](_0x1b4edf,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xe3f441,_0x348ac1),_0x50f18e['set'](_0xe3f441,_0x1b4edf['isAttached']()?_0x4fea00:{});for(const [_0x377323,_0x554940]of _0x1b4edf['markers']){if(!_0x377323['startsWith']('revision:'))continue;const _0x55cfb7=_0x377323['split'](':')[0x2];for(const _0x19e612 of _0x554940['getWalker']({'singleCharacters':!0x0})){const _0x1cad43=this['_getVidAttributeName'](_0x19e612),_0x1ed7a0=this['_revisionId']++,_0xeb40cc='elementEnd'==_0x19e612['type']?_0x19e612['previousPosition']['path']['slice'](0x0,-0x1):_0x19e612['previousPosition']['path'];_0x348ac1['getNodeByPath'](_0xeb40cc)['_setAttribute'](_0x1cad43,_0x1ed7a0),this['_touched']['set'](_0x1ed7a0,{'userId':_0x55cfb7});}}for(const _0x153d40 of this['editor']['model']['createRangeIn'](_0x1b4edf)['getWalker']({'singleCharacters':!0x0})){const _0x319c7b=this['_getVidAttributeName'](_0x153d40),_0x3c0233='elementEnd'==_0x153d40['type']?_0x153d40['previousPosition']['path']['slice'](0x0,-0x1):_0x153d40['previousPosition']['path'],_0x164d26=_0x348ac1['getNodeByPath'](_0x3c0233);_0x164d26['getAttribute'](_0x319c7b)>0x0||_0x164d26['_setAttribute'](_0x319c7b,_0x4277d3[_0x2f39c0++]);}for(const [_0x18506b,_0x1f226d]of _0x1b4edf['markers'])_0x18506b['startsWith']('revision:')||this['_markers']['set'](_0x18506b,_0x1f226d);}const _0x2eab7f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2eab7f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2eab7f,0x1));const _0x102491=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x102491),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x102491,0x1));const _0x5a7b6b=Array['from'](this['_diffRoots'])['map'](([_0x1071e8,_0xd172e3])=>[_0x1071e8,F(_0xd172e3)]);this['_saveMetaData'](this['_lastTo'],_0x5a7b6b,this['_markers'],_0x50f18e);}['_makeModelFromViewString'](_0x303b7e){const _0x4bfc04=JSON['parse'](_0x303b7e),_0x595e22=this['editor']['editing']['view']['document'],_0x3456dd=new _0x5a9f7e(_0x595e22,_0x4bfc04['map'](_0x377404=>V(_0x377404,this['editor'])));return this['editor']['data']['toModel'](_0x3456dd);}['_saveMetaData'](_0x5819da,_0x2796a7,_0x6ff55f,_0x5aec0b){const _0x8e7535=new Map(_0x2796a7),_0xb774a9=new Map(_0x3f3c34(_0x5aec0b)),_0x1ff715=new Map();for(const [_0x3ff8bf,_0x56de83]of _0x6ff55f)_0x1ff715['set'](_0x3ff8bf,{'start':_0x56de83['start']['clone'](),'end':_0x56de83['end']['clone'](),'rootName':_0x56de83['root']['rootName']});this['_savedMetaData']['set'](_0x5819da,{'roots':_0x8e7535,'markers':_0x1ff715,'rootsAttributes':_0xb774a9});}['_removeMetaData'](_0x3fa1e0){this['_savedMetaData']['delete'](_0x3fa1e0);}['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'](_0x45ae9f,_0x591515=null){let _0x9f349e=null;_0x45ae9f['is']('documentFragment')||(_0x9f349e=new ft(_0x45ae9f['name'],{'vid_start':null===_0x591515?this['_revisionId']++:_0x591515++}));const _0x2258fa=[];for(const _0x4cd92d of _0x45ae9f['getChildren']())if(_0x4cd92d['is']('element')){_0x2258fa['push'](this['_makeIdsRoot'](_0x4cd92d,_0x591515));const _0x4bf2b4=_0x2258fa[_0x2258fa['length']-0x1];null!==_0x591515&&(_0x591515=_0x4bf2b4['is']('element','$text')?_0x4bf2b4['getAttribute']('vid')+0x1:_0x4bf2b4['getAttribute']('vid_end')+0x1);}else{for(let _0x432b43=0x0;_0x432b43<_0x4cd92d['offsetSize'];_0x432b43++)_0x2258fa['push'](new ft('$text',{'vid':null===_0x591515?this['_revisionId']++:_0x591515++}));}if(_0x45ae9f['is']('documentFragment')){const _0x28162b=B(_0x45ae9f['rootName']);return _0x28162b['_insertChild'](0x0,_0x2258fa),_0x28162b;}return _0x9f349e['_setAttribute']('vid_end',null===_0x591515?this['_revisionId']++:_0x591515++),_0x9f349e['_insertChild'](0x0,_0x2258fa),_0x9f349e;}['_calculateMetaData'](_0x2a995b,_0x41b014,_0x38d895){this['_reset']();const {roots:_0x18a458,markers:_0x1b2f25,rootsAttributes:_0x3face3}=this['_savedMetaData']['get'](_0x2a995b);this['_baseRoots']=new Map(_0x18a458),this['_baseRootsAttributes']=new Map(_0x3f3c34(_0x3face3));for(const [_0x193002,_0x4f3880]of this['_baseRoots'])if('$graveyard'!==_0x193002&&(this['_diffRoots']['set'](_0x193002,F(_0x4f3880)),this['_diffRootsAttributes']=new Map(_0x3f3c34(_0x3face3)),_0x38d895)){const _0x255262=this['_revisionId'];this['_idsRoots']['set'](_0x193002,this['_makeIdsRoot'](_0x4f3880)),this['_baseIdsRoots']['set'](_0x193002,this['_makeIdsRoot'](_0x4f3880,_0x255262));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x38d895&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x44d849,_0x144a8e]of _0x1b2f25){const _0x4b5577=this['_baseRoots']['get'](_0x144a8e['rootName']),_0x2860f2=this['_diffRoots']['get'](_0x144a8e['rootName']),_0x31f8da=new vt(this['_fixPosition'](_0x144a8e['start'],_0x4b5577),this['_fixPosition'](_0x144a8e['end'],_0x4b5577)),_0x525613=this['_fixRange'](_0x31f8da,_0x2860f2);_0x4b5577['markers']['set'](_0x44d849,_0x31f8da),this['_markers']['set'](_0x44d849,_0x525613);}this['_applyOperations'](_0x2a995b,_0x41b014,_0x38d895);}['_applyOperations'](_0x910f9f,_0x3ecb3d,_0x188918){for(const _0x5f5d8d of this['source']['getOperations'](_0x910f9f,_0x3ecb3d))this['_handleOperation'](_0x5f5d8d,_0x188918);for(const _0x58960a of this['_diffRoots']['values']())_0x58960a['markers']['clear']();for(const [_0x77b59c,_0x560321]of this['_markers']){this['_diffRoots']['get'](_0x560321['root']['rootName'])['markers']['set'](_0x77b59c,_0x560321['clone']());}const _0x4d2ee0=new Map(),_0x2d2ded=new Map();for(const [_0x24594b,_0x373af0]of this['_diffRoots'])_0x4d2ee0['set'](_0x24594b,F(_0x373af0)),_0x2d2ded['set'](_0x24594b,this['_diffRootsAttributes']['get'](_0x24594b));this['_saveMetaData'](_0x3ecb3d,_0x4d2ee0,this['_markers'],_0x2d2ded);}['_getPreviousFrom'](_0x49d408){const _0xcc5bf8=Array['from'](this['_savedMetaData']['keys']());_0xcc5bf8['sort']((_0x410884,_0x558f8a)=>_0x410884-_0x558f8a),_0xcc5bf8['reverse']();for(const _0x39f6c2 of _0xcc5bf8)if(_0x39f6c2<_0x49d408)return _0x39f6c2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xb3d91f,_0x16e7e7){const _0x130882=Array['from'](_0x16e7e7['markers'])['map'](([_0x264390,_0x5b4da2])=>[_0x264390,this['_fixRange'](_0x5b4da2,_0xb3d91f)]);_0xb3d91f['markers']=new Map(_0x130882);}['_transformMarkers'](_0x18d8e1){for(const _0x747461 of this['_markers']['values']()){const _0x344a7b=_0x747461['getTransformedByOperation'](_0x18d8e1),_0x5b42d2=vt['_createFromRanges'](_0x344a7b);_0x747461['start']=_0x5b42d2['start'],_0x747461['end']=_0x5b42d2['end'];}}['_handleOperation'](_0x422aaa,_0x2594a9){if('addRoot'!=_0x422aaa['type']&&'detachRoot'!=_0x422aaa['type']){if('insert'==_0x422aaa['type']){const _0x156ce2=_0x422aaa['position']['root']['rootName'];this['_diffRoots']['has'](_0x156ce2)||(this['_diffRoots']['set'](_0x156ce2,B(_0x156ce2,!0x0)),this['_diffRootsAttributes']['set'](_0x156ce2,{}),_0x2594a9&&this['_idsRoots']['set'](_0x156ce2,B(_0x156ce2,!0x0)));}else{if('addRootAttribute'==_0x422aaa['type']||'removeRootAttribute'==_0x422aaa['type']||'changeRootAttribute'==_0x422aaa['type'])return void this['_handleRootAttributeOperation'](_0x422aaa);'marker'==_0x422aaa['type']&&this['_handleMarkerOperation'](_0x422aaa);}if('marker'!==_0x422aaa['type']){const _0x14019e=this['_cloneOperation'](_0x422aaa,this['_diffRoots']);_0x14019e['_execute'](),this['_transformMarkers'](_0x14019e);}if(_0x2594a9)switch(_0x422aaa['type']){case'insert':this['_handleInsertOperation'](_0x422aaa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x422aaa);break;case'merge':this['_handleMergeOperation'](_0x422aaa);break;case'split':this['_handleSplitOperation'](_0x422aaa);}}else this['_handleRootOperation'](_0x422aaa,_0x2594a9);}['_cloneOperation'](_0x19f7d5,_0x4ade41){const _0x57eeee=_0x19f7d5['clone']();return _0x57eeee['_authorId']=_0x19f7d5['_authorId'],this['_fixOperation'](_0x57eeee,_0x4ade41),_0x57eeee;}['_getBaseVids'](_0x52b370){return _0x52b370['map'](_0x119afb=>{const _0x4d0123=this['_getVidAttributeName'](_0x119afb);return Number(_0x119afb['item']['getAttribute'](_0x4d0123));});}['_generateTape'](_0x2854ed,_0x4d8a2b){if(_0x2854ed['is']('element','$text'))_0x4d8a2b['push']({'item':_0x2854ed,'type':'text'});else{_0x2854ed['is']('element')&&_0x4d8a2b['push']({'item':_0x2854ed,'type':'elementStart'});for(const _0x5a00b9 of _0x2854ed['getChildren']())this['_generateTape'](_0x5a00b9,_0x4d8a2b);_0x2854ed['is']('element')&&_0x4d8a2b['push']({'item':_0x2854ed,'type':'elementEnd'});}return _0x4d8a2b;}['_getState'](){const _0x108c05=new Map(this['_touched']),_0x1e4471=new Map(_0x108c05),_0x37be51=new Map(),_0x260249={'insertions':{},'deletions':{}},_0x8c7365={'insertions':{},'deletions':{}},_0x3dc0a1=new Map(),_0x34e5d2=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x34e5d2['delete']('$graveyard');for(const _0x2bd55e of _0x34e5d2){const _0x1b5e5a=this['_diffRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1),_0x2c7b10=this['_baseRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1);_0x1b5e5a['isAttached']()||_0x2c7b10['isAttached']()?(_0x260249['insertions'][_0x2bd55e]=F(_0x1b5e5a),_0x260249['deletions'][_0x2bd55e]=F(_0x2c7b10),this['_copyMarkers'](_0x260249['deletions'][_0x2bd55e],_0x2c7b10),this['_copyMarkers'](_0x260249['insertions'][_0x2bd55e],_0x1b5e5a),_0x8c7365['insertions'][_0x2bd55e]=this['_generateTape'](this['_idsRoots']['get'](_0x2bd55e),[]),_0x8c7365['deletions'][_0x2bd55e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1),[])):_0x34e5d2['delete'](_0x2bd55e);}for(const _0x9deca9 of _0x34e5d2){const _0xf7d81b=_0x8c7365['insertions'][_0x9deca9];for(const _0x7bcba9 of _0xf7d81b){const _0x312480=this['_getVidAttributeName'](_0x7bcba9),_0x223cd5=_0x7bcba9['item']['getAttribute'](_0x312480);_0x1e4471['delete'](_0x223cd5),_0x223cd5>=this['_startingRevisionId']&&_0x37be51['set'](_0x223cd5,_0x108c05['get'](_0x223cd5));}}for(const _0x4fe543 of _0x34e5d2){const _0x4b3cbe=_0x8c7365['insertions'][_0x4fe543],_0x136fd6=this['_getBaseVids'](_0x8c7365['deletions'][_0x4fe543]);let _0x531208=0x0;for(const _0x5e395d of _0x4b3cbe){const _0x4083f7=this['_getVidAttributeName'](_0x5e395d),_0x9a0d12=_0x5e395d['item']['getAttribute'](_0x4083f7);if(!_0x37be51['has'](_0x9a0d12)&&!_0x3dc0a1['has'](_0x9a0d12)){if(_0x1e4471['has'](_0x9a0d12))_0x531208++;else{if(_0x9a0d12!=_0x136fd6[_0x531208]){const _0x1d6953=_0x108c05['get'](_0x9a0d12)||_0x108c05['get'](_0x136fd6[_0x531208]);for(;_0x9a0d12!=_0x136fd6[_0x531208];)_0x1e4471['has'](_0x136fd6[_0x531208])||(_0x3dc0a1['set'](_0x136fd6[_0x531208],_0x1d6953),_0x108c05['set'](_0x136fd6[_0x531208],_0x1d6953)),_0x531208++;}_0x531208++;}}}}for(const _0x2ad79e of _0x34e5d2){const _0x569ebd=_0x8c7365['insertions'][_0x2ad79e];for(const _0x1862a9 of _0x569ebd){const _0x31ddc9=this['_getVidAttributeName'](_0x1862a9),_0x4da945=_0x1862a9['item']['getAttribute'](_0x31ddc9);if(_0x3dc0a1['has'](_0x4da945)){const _0x671572=_0x3dc0a1['get'](_0x4da945);_0x1e4471['has'](_0x4da945)||_0x1e4471['set'](_0x4da945,{..._0x671572}),_0x37be51['set'](_0x4da945,{..._0x671572});}}}for(const _0x108b51 of _0x1e4471['keys']())_0x108b51>=this['_startingRevisionId']&&_0x1e4471['delete'](_0x108b51);const _0x37ed03=new Map();for(const _0x2ae239 of _0x34e5d2){let _0x23e607=_0x8c7365['insertions'][_0x2ae239];for(const _0x4b978b of _0x23e607)if(_0x4b978b['item']['is']('element','tableCell')){const _0x5df810=this['_getVidAttributeName'](_0x4b978b),_0x4dd7fc=_0x4b978b['item']['getAttribute'](_0x5df810);if(_0x37be51['has'](_0x4dd7fc)){const _0x258be2=_0x4b978b['item']['parent']['parent']['getAttribute']('vid_start'),_0x3fd12f=_0x37ed03['get'](_0x258be2)||new Set();_0x3fd12f['add'](_0x37be51['get'](_0x4dd7fc)['userId']),_0x37ed03['set'](_0x258be2,_0x3fd12f);}}_0x23e607=_0x8c7365['deletions'][_0x2ae239];for(const _0x509676 of _0x23e607)if(_0x509676['item']['is']('element','tableCell')){const _0x5e6361=this['_getVidAttributeName'](_0x509676),_0x1de920=_0x509676['item']['getAttribute'](_0x5e6361);if(_0x1e4471['has'](_0x1de920)){const _0x426b83=_0x509676['item']['parent']['parent']['getAttribute']('vid_start'),_0x136064=_0x37ed03['get'](_0x426b83)||new Set();_0x136064['add'](_0x1e4471['get'](_0x1de920)['userId']),_0x37ed03['set'](_0x426b83,_0x136064);}}for(const _0x4a6b39 of _0x37ed03['keys']())(_0x37be51['has'](_0x4a6b39)||_0x1e4471['has'](_0x4a6b39))&&_0x37ed03['delete'](_0x4a6b39);}for(const _0x56e0f3 of _0x34e5d2){const _0x2004d3=_0x8c7365['insertions'][_0x56e0f3];let _0x1c24ad=null,_0x216796=null;for(const _0x5b9397 of _0x2004d3){const _0x10264c=this['_getVidAttributeName'](_0x5b9397),_0x5bc9ce=_0x5b9397['item']['getAttribute'](_0x10264c),_0x283729=_0x37ed03['get'](_0x5bc9ce);_0x283729&&'elementStart'==_0x5b9397['type']&&(_0x1c24ad=Array['from'](_0x283729)[0x0],_0x216796=_0x5b9397['item']['getAttribute']('vid_end')),_0x1c24ad&&(_0x1e4471['set'](_0x5bc9ce,{'userId':_0x1c24ad}),_0x37be51['set'](_0x5bc9ce,{'userId':_0x1c24ad})),_0x5bc9ce==_0x216796&&(_0x1c24ad=null,_0x216796=null);}}const _0x53096c={},_0x394705=new Set();for(const _0x4440ae of _0x34e5d2){const _0x2af872=_0x260249['deletions'][_0x4440ae],_0x1e3379=_0x260249['insertions'][_0x4440ae];for(const {userId:_0x22ccce}of this['_touchedMarkers']['values']())null!==_0x22ccce&&_0x394705['add'](_0x22ccce);for(const {userId:_0x31e78c}of this['_touchedRoots']['values']())null!==_0x31e78c&&_0x394705['add'](_0x31e78c);this['_markChanges'](_0x1e3379,_0x8c7365['insertions'][_0x4440ae],_0x37be51,'insertion',_0x394705),this['_markChanges'](_0x2af872,_0x8c7365['deletions'][_0x4440ae],_0x1e4471,'deletion',_0x394705),_0x53096c[_0x4440ae]={'insertions':this['_prepareViewToSave'](_0x1e3379),'deletions':this['_prepareViewToSave'](_0x2af872),'attachChange':this['_touchedRoots']['get'](_0x4440ae)||null,'attributesBefore':_0x3f3c34(this['_baseRootsAttributes']['get'](_0x4440ae))||{},'attributesAfter':_0x3f3c34(this['_diffRootsAttributes']['get'](_0x4440ae))};}return{'diffData':_0x53096c,'authorsIds':Array['from'](_0x394705)};}['_processRootBeforeSave'](_0x13eb03){for(const [,_0x47cb8f]of _0x13eb03['markers']){const _0x155b4e=_0x47cb8f['start']['getAncestors']()['filter'](_0x26c093=>'tableCell'==_0x26c093['name']);for(const _0x4490b9 of _0x155b4e)0x1==_0x4490b9['childCount']&&_0x4490b9['getChild'](0x0)['is']('element','paragraph')&&_0x4490b9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x395538){this['_processRootBeforeSave'](_0x395538);const _0x585961=this['editor']['data']['toView'](_0x395538,{}),_0x15db11=Array['from'](_0x585961['getChildren']())['map'](_0x448c05=>this['_getViewJson'](_0x448c05));return JSON['stringify'](_0x15db11);}['_getViewJson'](_0x6181c9){if(_0x6181c9['is']('$text'))return _0x6181c9['data'];{const _0x4018a7=_0x6181c9;return{'type':Object['keys'](C)['find'](_0xdc7399=>_0x6181c9 instanceof C[_0xdc7399]),'name':_0x4018a7['name'],'attributes':Array['from'](_0x4018a7['getAttributes']()),'children':Array['from'](_0x4018a7['getChildren']())['map'](_0x512d6d=>this['_getViewJson'](_0x512d6d))};}}['_markChanges'](_0x4ea289,_0x16777f,_0x2c49ea,_0x22ae04,_0x31cfc1){let _0x174400=null,_0x1d6188=null,_0x1eeed8=0x0;const _0x57becc=this['editor']['model'];for(let _0x4ab630=0x0;_0x4ab630<_0x16777f['length'];_0x4ab630++){const _0x30ab4f=this['_getVidAttributeName'](_0x16777f[_0x4ab630]),_0x4e84b3=_0x16777f[_0x4ab630]['item']['getAttribute'](_0x30ab4f),_0x1c1b2b=_0x2c49ea['get'](_0x4e84b3),_0x229dd1=_0x4ab630==_0x16777f['length']-0x1;(!_0x174400&&_0x1c1b2b&&(_0x174400=_0x1c1b2b,_0x1d6188=_0x16777f[_0x4ab630]),_0x174400&&(!_0x1c1b2b||_0x1c1b2b['userId']!=_0x174400['userId']))&&(_0x152dbf(_0x1c1b2b,J(_0x1d6188,_0x4ea289,_0x57becc),J(_0x16777f[_0x4ab630],_0x4ea289,_0x57becc)),_0x174400=_0x1c1b2b||null,_0x1d6188=_0x1c1b2b?_0x16777f[_0x4ab630]:null),_0x174400&&_0x229dd1&&_0x152dbf(_0x1c1b2b,J(_0x1d6188,_0x4ea289,_0x57becc),q(_0x16777f[_0x4ab630],_0x4ea289,_0x57becc));}function _0x152dbf(_0x1c6bbb,_0x2b82f8,_0x190b7e){const _0x165fe7=_0x174400['userId'],_0x5e687='revision:'+_0x22ae04+':'+_0x165fe7+':'+_0x1eeed8++,_0xe2caeb=_0x57becc['createRange'](_0x2b82f8,_0x190b7e);_0x4ea289['markers']['set'](_0x5e687,_0xe2caeb),null!==_0x165fe7&&_0x31cfc1['add'](_0x165fe7);}}['_getVidAttributeName'](_0x3a6fae){switch(_0x3a6fae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13c286,_0x39e580){_0x13c286['baseVersion']=null;for(const _0xd15db2 in _0x13c286){const _0x23104e=_0x13c286[_0xd15db2];if(_0x23104e instanceof gt){const _0x49c185=_0x39e580['get'](_0x23104e['root']['rootName']);_0x13c286[_0xd15db2]=this['_fixPosition'](_0x23104e,_0x49c185);}if(_0x23104e instanceof vt){const _0x22d240=_0x39e580['get'](_0x23104e['root']['rootName']);_0x13c286[_0xd15db2]=this['_fixRange'](_0x23104e,_0x22d240);}'root'===_0xd15db2&&(_0x13c286['root']=_0x39e580['get'](_0x13c286['root']['rootName']));}}['_fixRange'](_0x587732,_0x531a8d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x587732['start'],_0x531a8d),this['_fixPosition'](_0x587732['end'],_0x531a8d));}['_fixPosition'](_0x1cffdd,_0x5f577a){return this['editor']['model']['createPositionFromPath'](_0x5f577a,_0x1cffdd['path'],_0x1cffdd['stickiness']);}['_handleInsertOperation'](_0x31e203){const _0x5bc1c8=this['_idsRoots']['get'](_0x31e203['position']['root']['rootName']),_0x30fe58=this['_fixPosition'](_0x31e203['position'],_0x5bc1c8),_0x31e6dc=null===_0x31e203['_authorId']?null:_0x31e203['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x366b09=_0x30fe58['parent'],_0x396ead=this['_revisionId'],_0x58f2e2=[];for(const _0x20db55 of _0x31e203['nodes'])if(_0x20db55['is']('element'))_0x58f2e2['push'](this['_makeIdsRoot'](_0x20db55));else{for(let _0x1f02db=0x0;_0x1f02db<_0x20db55['offsetSize'];_0x1f02db++)_0x58f2e2['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x55bacf=this['_revisionId'];for(let _0x2d0806=_0x396ead;_0x2d0806<_0x55bacf;_0x2d0806++)this['_touched']['set'](_0x2d0806,{'userId':_0x31e6dc});_0x366b09['_insertChild'](_0x30fe58['offset'],_0x58f2e2);}['_handleMoveOperation'](_0x189a0){(_0x189a0=this['_cloneOperation'](_0x189a0,this['_idsRoots']))['_execute']();const _0xaf4c79=null===_0x189a0['_authorId']?null:_0x189a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39492a=_0x189a0['getMovedRangeStart'](),_0x2c9578=_0x39492a['parent'],_0x448ba8=_0x39492a['offset'];!function _0x97595e(_0x56937a,_0x3bfb84,_0x5bd2fd,_0x23b71a){for(let _0x40dafb=_0x5bd2fd;_0x40dafb<_0x23b71a;_0x40dafb++){const _0x58ae59=_0x3bfb84['getChild'](_0x40dafb);_0x58ae59['is']('element','$text')?_0x56937a['set'](_0x58ae59['getAttribute']('vid'),{'userId':_0xaf4c79}):(_0x56937a['set'](_0x58ae59['getAttribute']('vid_start'),{'userId':_0xaf4c79}),_0x97595e(_0x56937a,_0x58ae59,0x0,_0x58ae59['childCount']),_0x56937a['set'](_0x58ae59['getAttribute']('vid_end'),{'userId':_0xaf4c79}));}}(this['_touched'],_0x2c9578,_0x448ba8,_0x448ba8+_0x189a0['howMany']);}['_handleMergeOperation'](_0xc44b06){const _0x39fc2a=null===(_0xc44b06=this['_cloneOperation'](_0xc44b06,this['_idsRoots']))['_authorId']?null:_0xc44b06['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29c261=_0xc44b06['targetPosition']['parent'],_0xa36c91=_0xc44b06['sourcePosition']['parent'],_0x4701b6=_0x29c261['getAttribute']('vid_end'),_0x2abfe6=_0xa36c91['getAttribute']('vid_start');_0x29c261['_setAttribute']('vid_end',_0xa36c91['getAttribute']('vid_end')),_0xa36c91['_setAttribute']('vid_end',_0x4701b6),this['_touched']['set'](_0x2abfe6,{'userId':_0x39fc2a}),this['_touched']['set'](_0x4701b6,{'userId':_0x39fc2a}),_0xc44b06['_execute']();}['_handleSplitOperation'](_0x5eb707){const _0x44abfa=null===(_0x5eb707=this['_cloneOperation'](_0x5eb707,this['_idsRoots']))['_authorId']?null:_0x5eb707['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ccf7f=_0x5eb707['graveyardPosition'],_0x45e9bc=_0x5eb707['splitPosition']['parent'];_0x5eb707['_execute']();const _0x3fd164=_0x45e9bc['getAttribute']('vid_end'),_0x46d043=_0x5eb707['insertionPosition']['nodeAfter'];if(_0x2ccf7f){const _0x33ab35=_0x46d043['getAttribute']('vid_end'),_0x442dbd=_0x45e9bc['getAttribute']('vid_end');_0x45e9bc['_setAttribute']('vid_end',_0x33ab35),_0x46d043['_setAttribute']('vid_end',_0x442dbd),this['_touched']['set'](_0x45e9bc['getAttribute']('vid_end'),{'userId':_0x44abfa}),this['_touched']['set'](_0x46d043['getAttribute']('vid_start'),{'userId':_0x44abfa});}else{const _0x2bef7e=this['_revisionId']++,_0x8a54c=this['_revisionId']++;_0x45e9bc['_setAttribute']('vid_end',_0x2bef7e),_0x46d043['_setAttribute']('vid_start',_0x8a54c),_0x46d043['_setAttribute']('vid_end',_0x3fd164),this['_touched']['set'](_0x2bef7e,{'userId':_0x44abfa}),this['_touched']['set'](_0x8a54c,{'userId':_0x44abfa});}}['_handleMarkerOperation'](_0x4f452f){if(!_0x4f452f['affectsData'])return;const _0x110cee=(_0x4f452f=this['_cloneOperation'](_0x4f452f,this['_diffRoots']))['oldRange']?_0x4f452f['oldRange']['root']:null,_0x356c91=_0x4f452f['newRange']?_0x4f452f['newRange']['root']:null;_0x110cee&&this['_markers']['delete'](_0x4f452f['name']),_0x356c91&&this['_markers']['set'](_0x4f452f['name'],_0x4f452f['newRange']['clone']());const _0x124f7e=null===_0x4f452f['_authorId']?null:_0x4f452f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4deead=_0x4f452f['name'];if(!this['_touchedMarkers']['has'](_0x4deead))return void this['_touchedMarkers']['set'](_0x4deead,{'range':_0x4f452f['oldRange'],'userId':_0x124f7e});const _0x5885ae=this['_touchedMarkers']['get'](_0x4deead),_0x3a7d1e=_0x5885ae['range'],_0x425f80=_0x4f452f['newRange'];null==_0x3a7d1e&&null==_0x425f80||_0x3a7d1e&&_0x425f80&&_0x3a7d1e['isEqual'](_0x425f80)?this['_touchedMarkers']['delete'](_0x4f452f['name']):_0x5885ae['userId']=_0x124f7e;}['_handleRootOperation'](_0x55701e,_0x445ea5){this['_diffRoots']['has'](_0x55701e['rootName'])?this['_diffRoots']['get'](_0x55701e['rootName'])['_isAttached']=_0x55701e['isAdd']:(this['_diffRoots']['set'](_0x55701e['rootName'],B(_0x55701e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x55701e['rootName'],{}),_0x445ea5&&this['_idsRoots']['set'](_0x55701e['rootName'],B(_0x55701e['rootName'],!0x0)));const _0x52202d=null===_0x55701e['_authorId']?null:_0x55701e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44057a=this['_touchedRoots']['get'](_0x55701e['rootName']);_0x44057a&&_0x44057a['userId']===_0x52202d?this['_touchedRoots']['delete'](_0x55701e['rootName']):this['_touchedRoots']['set'](_0x55701e['rootName'],{'userId':_0x52202d,'isAttached':_0x55701e['isAdd']});}['_handleRootAttributeOperation'](_0x4078a7){const _0x42d475=this['_diffRootsAttributes']['get'](_0x4078a7['root']['rootName']);null===_0x4078a7['newValue']?delete _0x42d475[_0x4078a7['key']]:_0x42d475[_0x4078a7['key']]=_0x4078a7['newValue'];}}function F(_0x2c7b62){const _0x855a5b=B(_0x2c7b62['rootName'],_0x2c7b62['isAttached']());for(const _0x20dc66 of _0x2c7b62['getChildren']()){const _0x2826ef=_0x20dc66['_clone'](!0x0);_0x855a5b['_appendChild'](_0x2826ef);}return _0x855a5b;}function B(_0x507716,_0x179657=!0x0){const _0x3c9c80=new mt();return _0x3c9c80['rootName']=_0x507716,_0x3c9c80['_isAttached']=_0x179657,_0x3c9c80['isAttached']=()=>_0x3c9c80['_isAttached'],_0x3c9c80;}function J(_0x4af3e3,_0x1313f2,_0x3354b7){const _0x3500f9='elementEnd'==_0x4af3e3['type']?_0x3354b7['createPositionAt'](_0x4af3e3['item'],'end'):_0x3354b7['createPositionBefore'](_0x4af3e3['item']);return _0x3354b7['createPositionFromPath'](_0x1313f2,_0x3500f9['path'],_0x3500f9['stickiness']);}function q(_0x5c4163,_0x25f3e9,_0x468bdb){const _0xb6550c='elementStart'==_0x5c4163['type']?_0x468bdb['createPositionAt'](_0x5c4163['item'],0x0):_0x468bdb['createPositionAfter'](_0x5c4163['item']);return _0x468bdb['createPositionFromPath'](_0x25f3e9,_0xb6550c['path'],_0xb6550c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2275f5,_0x41de56){super(_0x2275f5),this['focusTracker']=new _0x71f497(),this['keystrokes']=new _0x5cd6bf(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x41de56),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1e424c(this);}['render'](){super['render'](),_0x4c83e3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3fea55=_0x357780=>_0x357780['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3fea55),this['keystrokes']['set']('arrowleft',_0x3fea55),this['keystrokes']['set']('arrowup',_0x3fea55),this['keystrokes']['set']('arrowdown',_0x3fea55);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1764fd){this['revisionNameInputView']['fieldView']['element']['value']=_0x1764fd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x317ac2){const _0xa570e=new _0x3f921c(this['locale'],_0x2498fb),_0x5e3537=_0xa570e['fieldView'];_0x5e3537['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3d9726=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x317ac2&&(_0x3d9726+='\x20('+R(this['locale'],'optional')+')'),(_0xa570e['label']=_0x3d9726,_0x5e3537['on']('input',()=>{this['revisionNameInputValue']=_0x5e3537['element']['value']['trim']();}),_0xa570e);}}class u extends _0x1c98c7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x488eb5=this['editor'],_0xe6e9f6=_0x488eb5['plugins']['get']('RevisionTracker');_0x488eb5['ui']['componentFactory']['add']('revisionHistory',_0x290169=>{const _0x1cc3d9=_0x547500(_0x290169),_0x3e807f=_0x1cc3d9['panelView']['children'],_0x3d5c3e=new _0x1c3951(_0x290169),_0x436237=new _0x4d7d59(_0x290169),_0x2b7d8c=new te(_0x290169),_0x19cc66=new _0x4d7d59(_0x290169),_0x3a1034=new te(_0x290169);return _0x1cc3d9['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0xe6e9f6,'isEnabled',_0x488eb5,'isReadOnly',(_0x1b4c7a,_0x25298d,_0x2f7a67)=>_0x1b4c7a&&_0x25298d&&!_0x2f7a67),_0x1cc3d9['buttonView']['set']({'icon':_0x14c866['history'],'label':R(_0x290169,'Revision\x20history'),'tooltip':!0x0}),_0x2b7d8c['set']({'label':R(_0x290169,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2b7d8c['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0xe6e9f6,'isEnabled',_0x488eb5,'isReadOnly',(_0x45eeda,_0x2fccb2,_0x3fcc87)=>_0x45eeda&&_0x2fccb2&&!_0x3fcc87),_0x2b7d8c['on']('execute',()=>this['_showDialog']()),_0x3a1034['set']({'label':R(_0x290169,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3a1034['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0x488eb5,'isReadOnly',(_0x439ec5,_0x547579)=>_0x439ec5&&!_0x547579),_0x3a1034['on']('execute',()=>{_0x488eb5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1cc3d9['isOpen']=!0x1,_0x488eb5['editing']['view']['focus']();}),_0x436237['children']['add'](_0x2b7d8c),_0x19cc66['children']['add'](_0x3a1034),_0x3d5c3e['role']='menu',_0x3d5c3e['items']['addMany']([_0x436237,_0x19cc66]),_0x3e807f['add'](_0x3d5c3e),_0x1cc3d9;}),_0x488eb5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x286ffb=this['editor'],_0x5db178=_0x286ffb['locale'],_0x3e76de=new _0x10f5c5(_0x5db178),_0x5c2a29=new _0xbf7996(_0x5db178);_0x3e76de['buttonView']['set']({'icon':_0x14c866['history'],'label':R(_0x5db178,'Revision\x20history')});const _0x125e10=new _0x228704(_0x5db178,_0x3e76de),_0x2b2ac4=new _0x3ceb1f(_0x5db178);_0x2b2ac4['set']({'label':R(_0x5db178,'Save\x20current\x20revision')}),_0x2b2ac4['delegate']('execute')['to'](_0x3e76de),_0x2b2ac4['on']('execute',()=>{this['_showDialog']();}),_0x125e10['children']['add'](_0x2b2ac4),_0x5c2a29['items']['add'](_0x125e10);const _0x4f4e1b=new _0x228704(_0x5db178,_0x3e76de),_0x2c9090=new _0x3ceb1f(_0x5db178);return _0x2c9090['set']({'label':R(_0x5db178,'Open\x20revision\x20history')}),_0x2c9090['delegate']('execute')['to'](_0x3e76de),_0x2c9090['on']('execute',()=>{_0x286ffb['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4f4e1b['children']['add'](_0x2c9090),_0x5c2a29['items']['add'](_0x4f4e1b),_0x3e76de['panelView']['children']['add'](_0x5c2a29),_0x3e76de;}['_showDialog'](){const _0x528480=this['editor'],_0x1f4e35=_0x528480['locale'],_0x50800f=_0x528480['plugins']['get']('Dialog'),_0x30f4ad=_0x528480['plugins']['get']('RevisionTracker');function _0x142ee8(_0x16d498){_0x528480['config']['get']('revisionHistory.requireRevisionName')&&''===_0x16d498['revisionName']?_0x16d498['revisionNameInputView']['errorText']=R(_0x1f4e35,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x528480['plugins']['get'](l)['saveRevision']({'name':_0x16d498['revisionName']}),_0x50800f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x142ee8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x50800f['show']({'id':'revisionSave','title':R(_0x1f4e35,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x528480['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x50800f['hide']()},{'label':R(_0x528480['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4aad56){_0x4aad56['bind']('isEnabled')['to'](_0x30f4ad,'isReady',_0x30f4ad,'isEnabled',_0x528480,'isReadOnly',(_0x3ea8ff,_0x601770,_0x46c117)=>_0x3ea8ff&&_0x601770&&!_0x46c117);},'onExecute':()=>_0x142ee8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x582dfc=this['editor'],_0x4ac349=_0x582dfc['locale'];this['_saveRevisionFormView']=new hs(_0x4ac349,_0x582dfc['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x335b04,_0x192fe0){super(_0x335b04),this['_model']=_0x192fe0,this['changeId']=_0x192fe0['id'];const _0x3d194f=this['bindTemplate'],_0x50b273=R(_0x335b04,_0x192fe0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x192fe0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x192fe0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3d194f['to']('type',_0x4154ec=>'ck-revision-change__'+_0x4154ec)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x50b273}]},{'text':'\x20'+_0x192fe0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x96c3fd(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5acc88){super(),this['id']=_0x5acc88['id']||_0x4e6837(),this['author']=_0x5acc88['author'],this['type']=_0x5acc88['type'],this['data']=_0x5acc88['data']||{},this['rootName']=_0x5acc88['rootName'],this['set']('createdAt',_0x5acc88['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(_0x57e549,_0x28d3ad){this['newRevisionId']=_0x57e549,this['oldRevisionId']=_0x28d3ad,this['changes']=new _0x3fda2b();}['_setChanges'](_0xacc8cd){for(const _0xd8f0aa of _0xacc8cd)this['changes']['add'](_0xd8f0aa);}}const Z={'c':_0x58bc9a,'a':_0x4662ee,'e':_0x425a8a,'r':_0x206af8,'u':_0x224256};class d extends _0x1c98c7{['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[_0x4ae6c4,_0x3c5899,j];}constructor(_0x424c7d){super(_0x424c7d),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',(_0x3819cf,_0xe52aa,_0x1f999c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x283103=>{for(const _0x17260c of this['editor']['editing']['view']['document']['roots'])_0x1f999c?_0x283103['removeClass']('ck-editor__editable__overlay',_0x17260c):_0x283103['addClass']('ck-editor__editable__overlay',_0x17260c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1741ed=>null!==_0x1741ed),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4b8dcb,_0xb89c52,_0x58c697)=>_0x4b8dcb&&_0x58c697?_0xb89c52['changes']['getIndex'](_0x58c697):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x577eca,_0x5dbd37)=>_0x577eca?_0x5dbd37['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3c5899);}['init'](){const _0x2cfd7e=this['editor'],_0x622e57=new yt(_0x2cfd7e,{'direction':'backward'}),_0xabd82e=new yt(_0x2cfd7e,{'direction':'forward'});(_0x2cfd7e['commands']['add']('showPreviousChange',_0x622e57),_0x2cfd7e['commands']['add']('showNextChange',_0xabd82e),_0x2cfd7e['commands']['add']('restoreRevision',new _t(_0x2cfd7e)),this['on']('change:numberOfChanges',()=>{_0x622e57['refresh'](),_0xabd82e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2cfd7e['enableReadOnlyMode']('revision-viewer'),_0x2cfd7e['plugins']['has']('WidgetToolbarRepository'))&&_0x2cfd7e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2528e9){await this['loadRevisionData'](_0x2528e9);const _0x207c7d={};for(const _0x3bbab4 in _0x2528e9['diffData']){if(_0x2528e9['diffData'][_0x3bbab4]['attachChange']&&!_0x2528e9['diffData'][_0x3bbab4]['attachChange']['isAttached'])continue;const _0x189242=this['_removeRevisionMarkers'](JSON['parse'](_0x2528e9['diffData'][_0x3bbab4]['insertions'])),_0x502715=this['editor']['editing']['view']['document'],_0x366877=new _0x5a9f7e(_0x502715,_0x189242['map'](_0x9b0d8c=>this['_getViewObj'](_0x9b0d8c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x207c7d[_0x3bbab4]=this['editor']['data']['processor']['toData'](_0x366877),this['editor']['data']['processor']['useFillerType']('default');}return _0x207c7d;}async['getRevisionRootsAttributes'](_0x57c69c){await this['loadRevisionData'](_0x57c69c);const _0x1b2689={};for(const _0x398cef in _0x57c69c['diffData'])_0x57c69c['diffData'][_0x398cef]['attachChange']&&!_0x57c69c['diffData'][_0x398cef]['attachChange']['isAttached']||(_0x1b2689[_0x398cef]=_0x57c69c['diffData'][_0x398cef]['attributesAfter']||{});return _0x1b2689;}['_removeRevisionMarkers'](_0x504c21){return(_0x504c21=_0x504c21['filter'](_0x3359dc=>!_0x3359dc['name']||'revision-start'!==_0x3359dc['name']&&'revision-end'!==_0x3359dc['name']))['forEach'](_0x1e4f29=>{'string'!=typeof _0x1e4f29&&(_0x1e4f29['children']=this['_removeRevisionMarkers'](_0x1e4f29['children']),_0x1e4f29['attributes']=_0x1e4f29['attributes']['filter'](_0x295e18=>!_0x295e18[0x0]['startsWith']('data-revision-')));}),_0x504c21;}async['compare'](_0x4202fd,_0x5a7cb1,_0x4054a8=!0x1){if(!this['isEnabled'])return;const _0x58048a=this['diff'],_0x33442d=this['repository'],_0x5e09d8='string'==typeof _0x4202fd?_0x33442d['getRevision'](_0x4202fd):_0x4202fd,_0x94638e='string'==typeof _0x5a7cb1?_0x33442d['getRevision'](_0x5a7cb1):_0x5a7cb1,_0xf842a2=_0x5e09d8['id'],_0x2fe09f=_0x94638e?_0x94638e['id']:null;if(!_0x4054a8&&this['diff']&&this['diff']['newRevisionId']===_0xf842a2&&this['diff']['oldRevisionId']===_0x2fe09f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xf842a2,_0x2fe09f);const _0x10ee2b=this['_getRevisionsRange'](_0x5e09d8,_0x94638e,!0x0)['map'](_0x2bcc95=>this['loadRevisionData'](_0x2bcc95));return _0x10ee2b['push'](new Promise(_0x4bc048=>{setTimeout(_0x4bc048,0x14);})),Promise['all'](_0x10ee2b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40b94f=this['_getDiff'](_0xf842a2,_0x2fe09f);for(const _0x41f0f8 of _0x40b94f['changes'])this['_changeIdToChange']['set'](_0x41f0f8['id'],_0x41f0f8);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x57489c=>{for(const _0x1370f3 of this['editor']['model']['document']['getRootNames']())_0x57489c['detachRoot'](_0x1370f3);for(const _0x3dfd4c of Object['keys'](_0x40b94f['model'])){const _0x39742e=_0x57489c['addRoot'](_0x3dfd4c);for(const _0x2a3b70 of Object['keys'](_0x40b94f['attributes'][_0x3dfd4c]))_0x57489c['setAttribute'](_0x2a3b70,_0x40b94f['attributes'][_0x3dfd4c][_0x2a3b70],_0x39742e);_0x57489c['insert'](_0x40b94f['model'][_0x3dfd4c],_0x39742e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40b94f['changes'])),this['isReady']=!0x0;})['catch'](_0x5d4204=>{console['error'](_0x5d4204),this['_cleanUp'](),_0x58048a&&(this['diff']=_0x58048a),this['isReady']=!0x0;});}['addRevisionData'](_0x52f057,_0x4f352e){const _0x51200a=this['repository']['createRevision'](_0x52f057);return _0x51200a['on']('_update',(_0x3d3834,_0x2235a4,_0x556265)=>_0x4f352e(_0x2235a4,_0x556265,_0x51200a)),this['repository']['addRevision'](_0x51200a),_0x51200a;}['loadRevisionData'](_0x1e8f1c){if(!_0x1e8f1c||_0x1e8f1c['diffData'])return Promise['resolve']();{const _0x2b8394=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b8394,'revisionId':_0x1e8f1c['id']})['then'](_0x25b7c9=>{_0x1e8f1c['_update']({'diffData':_0x25b7c9['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},_0x53b060=>{for(const _0x448b50 of this['editor']['model']['document']['getRootNames']())_0x53b060['detachRoot'](_0x448b50);});}['_sortAndFilterDiffChanges'](_0x197fc5){const _0x32b180=[],_0x329a28=new Map();for(const _0x4f25a9 of this['editor']['model']['document']['getRootNames']()){const _0x5650d5=this['editor']['editing']['view']['getDomRoot'](_0x4f25a9);if(!_0x5650d5)continue;const _0x190c08=_0x5650d5['getClientRects']()['item'](0x0);_0x190c08&&(_0x32b180['push'](_0x4f25a9),_0x329a28['set'](_0x4f25a9,_0x190c08));}return _0x32b180['sort']((_0x1af020,_0x3df4cb)=>{const _0x16e8a5=_0x329a28['get'](_0x1af020),_0x118d98=_0x329a28['get'](_0x3df4cb);return _0x16e8a5['y']-_0x118d98['y']||_0x16e8a5['x']-_0x118d98['x'];}),(_0x197fc5=_0x197fc5['filter'](_0x3c2adb=>_0x32b180['includes'](_0x3c2adb['rootName'])))['sort']((_0x2ad8c1,_0x270b28)=>_0x32b180['indexOf'](_0x2ad8c1['rootName'])-_0x32b180['indexOf'](_0x270b28['rootName'])),_0x197fc5;}['_makeTape'](_0x4b8a5f){const _0x1440af=Array['from'](_0x4b8a5f['markers'])['filter'](([_0x3291ae,_0x5795ec])=>_0x3291ae['startsWith']('revision:')&&!_0x5795ec['isCollapsed']),_0x3217df=Array['from'](this['editor']['model']['createRangeIn'](_0x4b8a5f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1440af['length'])for(const _0x89e716 of _0x3217df){const [_0x38c562,_0x5ca6a4]=_0x1440af[0x0],[,_0x54c4ce,_0x211979]=_0x38c562['split'](':');if(_0x5ca6a4['end']['isEqual'](_0x89e716['nextPosition'])&&_0x1440af['shift'](),(_0x89e716['previousPosition']['isEqual'](_0x5ca6a4['start'])||_0x89e716['previousPosition']['isAfter'](_0x5ca6a4['start']))&&('insertion'==_0x54c4ce?_0x89e716['isAdded']={'userId':_0x211979}:'deletion'==_0x54c4ce&&(_0x89e716['isRemoved']={'userId':_0x211979})),0x0==_0x1440af['length'])break;}return _0x3217df;}['_refreshStartEndIndex'](_0x2dbddf){const _0x5b39e5=new Map();for(let _0x21088d=0x0;_0x21088d<_0x2dbddf['length'];_0x21088d++)'text'===_0x2dbddf[_0x21088d]['type']?(_0x2dbddf[_0x21088d]['item']['startIndex']=_0x21088d,_0x2dbddf[_0x21088d]['item']['endIndex']=_0x21088d):('elementStart'===_0x2dbddf[_0x21088d]['type']?_0x2dbddf[_0x21088d]['item']['startIndex']=_0x21088d:'elementEnd'===_0x2dbddf[_0x21088d]['type']&&(_0x2dbddf[_0x21088d]['item']['endIndex']=_0x21088d),_0x5b39e5['set'](_0x2dbddf[_0x21088d]['id'],_0x21088d));for(const _0x34e36e of _0x5b39e5['values']())'elementStart'===_0x2dbddf[_0x34e36e]['type']?_0x2dbddf[_0x34e36e]['item']['endIndex']=_0x5b39e5['get'](_0x2dbddf[_0x34e36e]['pairId']):'elementEnd'===_0x2dbddf[_0x34e36e]['type']&&(_0x2dbddf[_0x34e36e]['item']['startIndex']=_0x5b39e5['get'](_0x2dbddf[_0x34e36e]['pairId']));}['_processTape'](_0x4c96f1){for(let _0x1bddec=0x0;_0x1bddec<_0x4c96f1['length'];_0x1bddec++){if('elementStart'===_0x4c96f1[_0x1bddec]['type'])_0x4c96f1[_0x1bddec]['item']['startIndex']=_0x1bddec;else{if('elementEnd'===_0x4c96f1[_0x1bddec]['type']){_0x4c96f1[_0x1bddec]['item']['endIndex']=_0x1bddec;const _0xd4286f=_0x4c96f1[_0x1bddec]['item']['startIndex'];_0x4c96f1[_0xd4286f]['pairId']=_0x4c96f1[_0x1bddec]['id'],_0x4c96f1[_0x1bddec]['pairId']=_0x4c96f1[_0xd4286f]['id'];}else _0x4c96f1[_0x1bddec]['item']['startIndex']=_0x1bddec,_0x4c96f1[_0x1bddec]['item']['endIndex']=_0x1bddec,_0x4c96f1[_0x1bddec]['pairId']=null;}_0x4c96f1[_0x1bddec]['markersStart']||(_0x4c96f1[_0x1bddec]['markersStart']=[],_0x4c96f1[_0x1bddec]['markersEnd']=[]);}}['_markInsertions'](_0x3352fc,_0x5d3e3d){const _0x522c29=_0x3352fc['filter'](_0x1764eb=>!_0x1764eb['isAdded']);for(let _0x26ce50=0x0;_0x26ce50<_0x5d3e3d['length'];_0x26ce50++)_0x5d3e3d[_0x26ce50]['isAdded']&&(_0x522c29[_0x26ce50]['isAdded']=_0x5d3e3d[_0x26ce50]['isAdded']);}['_makeModelFromViewString'](_0x552335){const _0x7e96db=JSON['parse'](_0x552335),_0x2271b7=this['editor']['editing']['view']['document'],_0x3e85ef=new _0x5a9f7e(_0x2271b7,_0x7e96db['map'](_0x2f05d7=>this['_getViewObj'](_0x2f05d7)));return this['editor']['data']['toModel'](_0x3e85ef);}['_getViewObj'](_0x47397d){const _0x3264cd=this['editor']['editing']['view']['document'];if('string'==typeof _0x47397d)return new _0x377b5b(_0x3264cd,_0x47397d);{const _0x4f9008=_0x47397d['children']['map'](_0x3fa9d4=>this['_getViewObj'](_0x3fa9d4));return new(Z[_0x47397d['type']]||_0x1fac3b)(_0x3264cd,_0x47397d['name'],_0x47397d['attributes'],_0x4f9008);}}['_getDiff'](_0x31dc3a,_0x46d85d=null){const _0x3bd816=this['repository']['getRevision'](_0x31dc3a),_0x1b3510=_0x46d85d?this['repository']['getRevision'](_0x46d85d):null,_0x465d3c=this['_getRevisionsRange'](_0x3bd816,_0x1b3510),_0x5236b9=_0x465d3c[_0x465d3c['length']-0x1],_0x1a4550=new Map(),_0x4f9961={'model':{},'attributes':{},'changes':[]},_0x3fc5e8=new Set(),_0x2ff99e=new Map();for(let _0x50292d=_0x465d3c['length']-0x1;_0x50292d>=0x0;_0x50292d--){const _0x3d72b6=_0x465d3c[_0x50292d];for(const _0x2ae8d9 of Object['keys'](_0x3d72b6['diffData']))if(_0x3d72b6['diffData'][_0x2ae8d9]['attachChange']){const _0x2ec889=_0x3d72b6['diffData'][_0x2ae8d9]['attachChange'];_0x2ec889['isAttached']?(_0x3fc5e8['add'](_0x2ae8d9),_0x2ff99e['has'](_0x2ae8d9)&&_0x2ff99e['get'](_0x2ae8d9)['userId']==_0x2ec889['userId']?_0x2ff99e['delete'](_0x2ae8d9):_0x2ff99e['set'](_0x2ae8d9,_0x2ec889)):_0x2ff99e['has'](_0x2ae8d9)?(_0x3fc5e8['delete'](_0x2ae8d9),_0x2ff99e['delete'](_0x2ae8d9)):(_0x3fc5e8['add'](_0x2ae8d9),_0x2ff99e['set'](_0x2ae8d9,_0x2ec889));}else _0x3fc5e8['add'](_0x2ae8d9);}for(const _0x2fc1d0 of _0x3fc5e8){const _0x49863e=_0x2ff99e['has'](_0x2fc1d0)&&!_0x2ff99e['get'](_0x2fc1d0)['isAttached'];let _0xfe194f=_0x49863e?_0x465d3c['length']-0x1:0x0;const _0x79e502=_0x49863e?-0x1:0x1;for(;_0x465d3c[_0xfe194f];){const _0x1e8080=_0x465d3c[_0xfe194f];if(_0x1e8080['diffData'][_0x2fc1d0]){const _0x49b706=_0x49863e?_0x1e8080['diffData'][_0x2fc1d0]['attributesBefore']:_0x1e8080['diffData'][_0x2fc1d0]['attributesAfter'];_0x4f9961['attributes'][_0x2fc1d0]=_0x49b706?_0x3f3c34(_0x49b706):{};break;}_0xfe194f+=_0x79e502;}}for(const _0x4cbc49 of _0x465d3c){_0x4cbc49['model']={};for(const _0x681178 of _0x4cbc49['authors'])_0x1a4550['set'](_0x681178['id'],_0x681178);for(const _0x54eff2 of _0x3fc5e8){const _0x2b320b=_0x4cbc49['diffData'][_0x54eff2]?_0x4cbc49['diffData'][_0x54eff2]['insertions']:'[]',_0x3834e7=_0x4cbc49['diffData'][_0x54eff2]?_0x4cbc49['diffData'][_0x54eff2]['deletions']:'[]';_0x4cbc49['model'][_0x54eff2]={'insertions':this['_makeModelFromViewString'](_0x2b320b),'deletions':this['_makeModelFromViewString'](_0x3834e7)};}}for(const _0xb6fff1 of _0x3fc5e8){let _0x3d3465=null,_0x32fbc8=0x0;const _0x12af27=new Map(Array['from'](_0x3bd816['model'][_0xb6fff1]['insertions']['markers'])['filter'](([_0xbc71c8])=>!_0xbc71c8['startsWith']('revision:')));let _0x2d1876=0x0;for(const _0x18b93c of _0x465d3c){const _0x4128e8=this['_makeTape'](_0x18b93c['model'][_0xb6fff1]['insertions']);_0x18b93c==_0x3bd816?(_0x3d3465=_0x4128e8,_0x32fbc8=_0x3d3465['length'],_0x3d3465['forEach'](_0x59801b=>{_0x59801b['id']=_0x2d1876++;}),this['_processTape'](_0x3d3465)):this['_markInsertions'](_0x3d3465,_0x4128e8);const _0x2cfafb=_0x3d3465['filter'](_0x4442f2=>!_0x4442f2['isAdded'])['map'](_0x29bae0=>_0x29bae0['id']);let _0x47f327=0x0;const _0x40f71f=this['_makeTape'](_0x18b93c['model'][_0xb6fff1]['deletions']);_0x40f71f['forEach'](_0x592dab=>{_0x592dab['isRemoved']?_0x592dab['id']=_0x32fbc8++:_0x592dab['id']=_0x2cfafb[_0x47f327++];}),this['_processTape'](_0x40f71f),this['_setDistance'](_0x3d3465,'isAdded'),this['_setDistance'](_0x40f71f,'isRemoved'),_0x18b93c==_0x3bd816&&this['_markMarkers'](_0x3d3465,_0x12af27),_0x3d3465=this['_joinTapes'](_0x3d3465,_0x40f71f),this['_refreshStartEndIndex'](_0x3d3465),this['_setDistance'](_0x3d3465,'isRemoved');}_0x3d3465=_0x3d3465['filter'](_0x4e2e43=>!(_0x4e2e43['isAdded']&&_0x4e2e43['isRemoved']));const _0xc080ce=new Map(_0x5236b9['model'][_0xb6fff1]['deletions']['markers']),_0x4f1988=new Set(_0x12af27['keys']());for(const _0x194089 of _0xc080ce['keys']())_0x4f1988['delete'](_0x194089);this['_markSuggestions'](_0x3d3465,_0x4f1988),this['_fixObsoleteTags'](_0x3d3465),_0x3d3465=this['_removeMissingPairs'](_0x3d3465),_0x3d3465=this['_markMismatchedRemovedTags'](_0x3d3465),_0x3d3465=this['_removeUnsupportedChanges'](_0x3d3465);const {root:_0x16e9c2,changes:_0x4d1ccc}=this['_makeModelFromTape'](_0x3d3465,_0x1a4550,_0xb6fff1);_0x4f9961['model'][_0xb6fff1]=_0x16e9c2;const _0x3e8eb7=_0x2ff99e['get'](_0xb6fff1);if(_0x3e8eb7){const _0x1fe813=_0x1a4550['get'](_0x3e8eb7['userId']),_0x2990d0=new r({'author':_0x1fe813,'type':_0x3e8eb7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xb6fff1});_0x4d1ccc['unshift'](_0x2990d0),_0x4f9961['attributes'][_0xb6fff1]['revisionHistoryAttachChange']=_0x2990d0['id'];}_0x4f9961['changes']=_0x4f9961['changes']['concat'](_0x4d1ccc);}return _0x4f9961;}['_markMarkers'](_0xb8d635,_0x2fc7c6){for(let _0x53ee7c=0x0;_0x53ee7c<_0xb8d635['length'];_0x53ee7c++)for(const [_0xcacf0b,_0x50a9f1]of _0x2fc7c6)_0x50a9f1['start']['isEqual'](_0xb8d635[_0x53ee7c]['previousPosition'])&&_0xb8d635[_0x53ee7c]['markersStart']['push'](_0xcacf0b),_0x50a9f1['end']['isEqual'](_0xb8d635[_0x53ee7c]['nextPosition'])&&_0xb8d635[_0x53ee7c]['markersEnd']['push'](_0xcacf0b);}['_joinTapes'](_0x1d1988,_0x2f39a0){let _0x196081=[],_0x3fce28=0x0,_0x3bf906=0x0;for(;_0x3fce28<_0x1d1988['length']||_0x3bf906<_0x2f39a0['length'];){const _0x3cb87d=_0x1d1988[_0x3fce28]||{},_0x5d922f=_0x2f39a0[_0x3bf906]||{};if(_0x3cb87d['id']==_0x5d922f['id'])_0x3fce28++,_0x3bf906++,_0x196081['push'](_0x3cb87d);else{if(_0x5d922f['isRemoved']&&_0x3cb87d['isAdded']){const {commonTape:_0x3bdfdc,iEnd:_0x1ed258,jEnd:_0xb16712}=this['_threeWayMerge'](_0x1d1988,_0x3fce28,_0x2f39a0,_0x3bf906);_0x196081=_0x196081['concat'](_0x3bdfdc),_0x3fce28=_0x1ed258,_0x3bf906=_0xb16712;}else _0x5d922f['isRemoved']?(_0x3bf906++,_0x196081['push'](_0x5d922f)):(_0x3fce28++,_0x196081['push'](_0x3cb87d));}}return _0x196081;}['_markSuggestions'](_0x49b626,_0x2f177f){const _0xb16d0d=[];for(let _0x492e71=0x0;_0x492e71<_0x49b626['length'];_0x492e71++){for(let _0x4ad2f3=0x0;_0x4ad2f3<_0x49b626[_0x492e71]['markersStart']['length'];_0x4ad2f3++){const _0xad5e2c=_0x49b626[_0x492e71]['markersStart'][_0x4ad2f3];if(!_0x2f177f['has'](_0xad5e2c))continue;const {group:_0x5a4a03,type:_0x43a6c1,authorId:_0x426420}=_0x4f9519(_0xad5e2c);'revision-suggestion'!=_0x5a4a03||'insertion'!=_0x43a6c1&&'deletion'!=_0x43a6c1||(_0xb16d0d['unshift']({'type':_0x43a6c1,'name':_0xad5e2c,'userId':_0x426420}),_0x49b626[_0x492e71]['markersStart']['splice'](_0x4ad2f3,0x1),_0x4ad2f3--);}_0x5677c0(_0x49b626[_0x492e71]);for(let _0x322d16=0x0;_0x322d16<_0x49b626[_0x492e71]['markersEnd']['length'];_0x322d16++){const _0x32f82e=_0x49b626[_0x492e71]['markersEnd'][_0x322d16];if(!_0x2f177f['has'](_0x32f82e))continue;const {group:_0x3f1694,type:_0x2c56b7}=_0x4f9519(_0x32f82e);if('revision-suggestion'!=_0x3f1694||'insertion'!=_0x2c56b7&&'deletion'!=_0x2c56b7)continue;_0x49b626[_0x492e71]['markersEnd']['splice'](_0x322d16,0x1),_0x322d16--;const _0x25e62e=_0xb16d0d['findIndex'](_0x1a8296=>_0x1a8296['name']==_0x32f82e);_0x25e62e>-0x1&&_0xb16d0d['splice'](_0x25e62e,0x1);}}function _0x4f9519(_0x180d31){const _0x24d488=_0x180d31['split'](':');return{'group':_0x24d488[0x0],'type':_0x24d488[0x1],'subType':_0x24d488['length']>=0x5?_0x24d488[0x2]:null,'id':_0x24d488['length']<0x5?_0x24d488[0x2]:_0x24d488[0x3],'authorId':_0x24d488['length']<0x5?_0x24d488[0x3]:_0x24d488[0x4],'markerCount':0x6==_0x24d488['length']?_0x24d488[0x5]:null};}function _0x5677c0(_0x52518a){for(let _0x18ad9c=0x0;_0x18ad9c<_0xb16d0d['length'];_0x18ad9c++){if(_0x52518a['isAdded']&&'insertion'==_0xb16d0d[_0x18ad9c]['type'])return _0x52518a['isAddSuggestion']=_0xb16d0d[_0x18ad9c],void delete _0x52518a['isAdded'];if(!_0x52518a['isAdded']&&!_0x52518a['isRemoved']&&'deletion'==_0xb16d0d[_0x18ad9c]['type'])return void(_0x52518a['isRemoveSuggestion']=_0xb16d0d[_0x18ad9c]);}}}['_setDistance'](_0x5349a4,_0x16bf2d){let _0x2eb1a2=0x0,_0x4d89fe=!0x1;const _0x5307ca=new Map();for(const _0x46ed81 of _0x5349a4)_0x46ed81[_0x16bf2d]?_0x4d89fe&&(_0x2eb1a2++,_0x4d89fe=!0x1):(_0x2eb1a2++,_0x4d89fe=!0x0),_0x5307ca['set'](_0x46ed81['id'],_0x2eb1a2);for(let _0x59dfee=0x0;_0x59dfee<_0x5349a4['length'];_0x59dfee++){if('isRemoved'==_0x16bf2d&&_0x5349a4[_0x59dfee]['isAdded']||'isAdded'==_0x16bf2d&&_0x5349a4[_0x59dfee]['isRemoved'])continue;if('text'==_0x5349a4[_0x59dfee]['type']){_0x5349a4[_0x59dfee]['distance']=0x0;continue;}const _0x27a4e1=_0x5307ca['get'](_0x5349a4[_0x59dfee]['pairId']),_0x5640ec=_0x5307ca['get'](_0x5349a4[_0x59dfee]['id']);_0x5349a4[_0x59dfee]['distance']=_0x27a4e1-_0x5640ec;}}['_getRevisionsRange'](_0x498a3d,_0x226a52,_0x54684c=!0x1){const _0x4e0239=[];let _0x2d38f9=this['repository']['getIndex'](_0x498a3d),_0x38ccb2=this['repository']['getIndex'](_0x226a52);for(-0x1==_0x38ccb2&&(_0x38ccb2=this['repository']['_revisions']['length'],_0x54684c=!0x1);_0x2d38f9<_0x38ccb2;)_0x4e0239['push'](this['repository']['getRevision'](_0x2d38f9)),_0x2d38f9++;return _0x54684c&&_0x4e0239['push'](this['repository']['getRevision'](_0x2d38f9)),_0x4e0239;}['_threeWayMerge'](_0x5e1aec,_0x1bdf49,_0x239198,_0xf00cf1){const _0x2f911a=this['editor']['model']['schema'];let _0x44a80f=_0x1bdf49;for(;_0x5e1aec[_0x44a80f]&&_0x5e1aec[_0x44a80f]['isAdded'];)_0x44a80f++;let _0x5015c6=_0xf00cf1;for(;_0x239198[_0x5015c6]&&_0x239198[_0x5015c6]['isRemoved'];)_0x5015c6++;_0x5911e5(_0x5e1aec,_0x1bdf49,_0x44a80f),_0x5911e5(_0x239198,_0xf00cf1,_0x5015c6);const _0x5680b6=_0x239198['slice'](_0xf00cf1,_0x5015c6)['concat'](_0x5e1aec['slice'](_0x1bdf49,_0x44a80f));return _0x5680b6['sort']((_0x52b04e,_0x2bf00b)=>_0x52b04e['side']!=_0x2bf00b['side']?_0x52b04e['side']-_0x2bf00b['side']:_0x52b04e['level']!=_0x2bf00b['level']?_0x52b04e['level']-_0x2bf00b['level']:_0x52b04e['distance']!=_0x2bf00b['distance']?_0x2bf00b['distance']-_0x52b04e['distance']:!!_0x52b04e['isAdded']!=!!_0x2bf00b['isAdded']?-0x1==_0x52b04e['side']||0x0==_0x52b04e['side']?_0x52b04e['isAdded']?-0x1:0x1:_0x52b04e['isAdded']?0x1:-0x1:_0x52b04e['index']-_0x2bf00b['index']),{'commonTape':_0x5680b6,'iEnd':_0x44a80f,'jEnd':_0x5015c6};function _0x5911e5(_0x4690e2,_0x6fbd40,_0x1e5b39){let _0x3a2601=-0x1,_0x434adc=Number['POSITIVE_INFINITY'],_0x3e6ee3=!0x0;for(let _0x18cdd3=_0x6fbd40;_0x18cdd3<_0x1e5b39;_0x18cdd3++)if(_0x2f911a['isInline'](_0x4690e2[_0x18cdd3]['item'])||(_0x3e6ee3=!0x1),_0x4690e2[_0x18cdd3]['item']['startIndex']<_0x6fbd40&&(_0x3a2601=_0x18cdd3),_0x4690e2[_0x18cdd3]['item']['endIndex']>=_0x1e5b39){_0x434adc=_0x18cdd3;break;}_0x3e6ee3&&(_0x3a2601=_0x1e5b39-0x1);for(let _0x34da7a=_0x6fbd40;_0x34da7a<_0x1e5b39;_0x34da7a++)_0x4690e2[_0x34da7a]['side']=_0x34da7a<=_0x3a2601?-0x1:_0x34da7a<_0x434adc?0x0:0x1,_0x4690e2[_0x34da7a]['index']=_0x34da7a;let _0x5133de=0x0;for(let _0xab89f3=_0x6fbd40;_0xab89f3<=_0x3a2601;_0xab89f3++)0x0==_0x4690e2[_0xab89f3]['distance']?_0x4690e2[_0xab89f3]['level']=_0x5133de:(_0x5133de++,_0x4690e2[_0xab89f3]['level']=_0x5133de,_0x5133de++);for(let _0x21e4dd=_0x6fbd40;_0x21e4dd<_0x1e5b39;_0x21e4dd++)0x0==_0x4690e2[_0x21e4dd]['side']&&(_0x4690e2[_0x21e4dd]['level']=_0x5133de);_0x5133de=0x0;for(let _0x5e49e8=_0x1e5b39-0x1;_0x5e49e8>=_0x434adc;_0x5e49e8--)0x0==_0x4690e2[_0x5e49e8]['distance']?_0x4690e2[_0x5e49e8]['level']=_0x5133de:(_0x5133de--,_0x4690e2[_0x5e49e8]['level']=_0x5133de,_0x5133de--);}}['_fixObsoleteTags'](_0x47d3b6){const _0x14ca75=new Map(),_0x4a4793=this['editor']['model']['schema'];for(let _0x21718d=0x1;_0x21718d<_0x47d3b6['length'];_0x21718d++){let _0x532ae1,_0x4f2a6d,_0x1954ee;const _0x59b968=_0x47d3b6[_0x21718d],_0x1c9b9c=_0x47d3b6[_0x21718d-0x1];if('text'==_0x59b968['type'])continue;if(_0x59b968['type']!=_0x1c9b9c['type'])continue;if(!_0x4a4793['isBlock'](_0x1c9b9c['item'])||_0x4a4793['isLimit'](_0x1c9b9c['item']))continue;if(!_0x4a4793['isBlock'](_0x59b968['item'])||_0x4a4793['isLimit'](_0x59b968['item']))continue;if((_0x47d3b6[_0x21718d]['isAdded']||_0x47d3b6[_0x21718d]['isAddSuggestion'])&&_0x47d3b6[_0x21718d-0x1]['isRemoved'])_0x532ae1=_0x47d3b6[_0x21718d],_0x4f2a6d=_0x47d3b6[_0x21718d-0x1],_0x1954ee=_0x21718d-0x1;else{if(!_0x47d3b6[_0x21718d]['isRemoved']||!_0x47d3b6[_0x21718d-0x1]['isAdded']&&!_0x47d3b6[_0x21718d-0x1]['isAddSuggestion'])continue;_0x532ae1=_0x47d3b6[_0x21718d-0x1],_0x4f2a6d=_0x47d3b6[_0x21718d],_0x1954ee=_0x21718d;}const _0x1cd6f3=_0x532ae1['level']==_0x4f2a6d['level'],_0x581eb9=Math['abs'](_0x532ae1['level'])<Math['abs'](_0x4f2a6d['level'])&&0x0==_0x4f2a6d['distance'];(_0x1cd6f3||_0x581eb9)&&(_0x14ca75['set'](_0x4f2a6d['id'],_0x532ae1['id']),_0x47d3b6['splice'](_0x1954ee,0x1),_0x21718d--,_0x532ae1['isAdded']=!0x1);}for(let _0x32ef6f=0x0;_0x32ef6f<_0x47d3b6['length'];_0x32ef6f++)_0x14ca75['has'](_0x47d3b6[_0x32ef6f]['pairId'])&&(_0x47d3b6[_0x32ef6f]['pairId']=_0x14ca75['get'](_0x47d3b6[_0x32ef6f]['pairId']));}['_removeMissingPairs'](_0x5161ed){const _0xc3a609=new Set(_0x5161ed['map'](_0x4645a0=>_0x4645a0['id']));for(let _0x152ebd=0x0;_0x152ebd<_0x5161ed['length'];_0x152ebd++)_0xc3a609['has'](_0x5161ed[_0x152ebd]['pairId'])||0x0==_0x5161ed[_0x152ebd]['distance']||(_0x5161ed[_0x152ebd]['isIncorrect']=!0x0);return _0x5161ed['filter'](_0x561afb=>!_0x561afb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x68e5dc){const _0x1eb5be=new Set();for(let _0x43af5b=0x0;_0x43af5b<_0x68e5dc['length'];_0x43af5b++){if(_0x1eb5be['has'](_0x68e5dc[_0x43af5b]['id'])&&_0x68e5dc[_0x43af5b]['isRemoved']&&(_0x68e5dc[_0x43af5b]['isIncorrect']=!0x0),_0x68e5dc[_0x43af5b]['isIncorrect'])continue;if(0x0==_0x68e5dc[_0x43af5b]['distance'])continue;if('elementStart'!=_0x68e5dc[_0x43af5b]['type'])continue;if(null==_0x68e5dc[_0x43af5b]['pairId'])continue;let _0x49d7e3=_0x43af5b+0x1,_0x4b02ef=0x0;for(;_0x68e5dc[_0x49d7e3]['id']!=_0x68e5dc[_0x43af5b]['pairId'];)'elementStart'==_0x68e5dc[_0x49d7e3]['type']?_0x4b02ef++:'elementEnd'==_0x68e5dc[_0x49d7e3]['type']&&_0x4b02ef--,_0x49d7e3++;if(0x0!=_0x4b02ef){if(_0x68e5dc[_0x43af5b]['isRemoved'])_0x68e5dc[_0x43af5b]['isIncorrect']=!0x0;else{for(;_0x49d7e3!=_0x43af5b;)_0x68e5dc[_0x49d7e3]['isRemoved']&&0x0!=_0x68e5dc[_0x49d7e3]['distance']&&(_0x68e5dc[_0x49d7e3]['isIncorrect']=!0x0,_0x1eb5be['add'](_0x68e5dc[_0x49d7e3]['pairId'])),_0x49d7e3--;}}}return _0x68e5dc['filter'](_0x5730c0=>!_0x5730c0['isIncorrect']);}['_removeUnsupportedChanges'](_0x5c24e2){const _0x96c338=this['editor']['model']['schema'];for(let _0x4bc968=0x0;_0x4bc968<_0x5c24e2['length'];_0x4bc968++){if(!(_0x5c24e2[_0x4bc968]['isAdded']||_0x5c24e2[_0x4bc968]['isAddSuggestion']||_0x5c24e2[_0x4bc968]['isRemoved']||_0x5c24e2[_0x4bc968]['isRemoveSuggestion']))continue;if(0x0==_0x5c24e2[_0x4bc968]['distance'])continue;const _0x5ce5fa=_0x5c24e2[_0x4bc968]['item'];_0x96c338['isBlock'](_0x5ce5fa)||_0x96c338['isLimit'](_0x5ce5fa)||(_0x5c24e2[_0x4bc968]['isAdded']&&delete _0x5c24e2[_0x4bc968]['isAdded'],_0x5c24e2[_0x4bc968]['isAddSuggestion']&&delete _0x5c24e2[_0x4bc968]['isAddSuggestion'],_0x5c24e2[_0x4bc968]['isRemoveSuggestion']&&delete _0x5c24e2[_0x4bc968]['isRemoveSuggestion'],_0x5c24e2[_0x4bc968]['isRemoved']&&(_0x5c24e2[_0x4bc968]['isIncorrect']=!0x0));}return _0x5c24e2['filter'](_0x5b5c5d=>!_0x5b5c5d['isIncorrect']);}['_makeModelFromTape'](_0x58e54c,_0x536d73,_0x53358d){const _0x245578=new mt(),_0x3cf2b6=[],_0x57f08c=new Map(),_0x253604=this['editor']['model'],_0x5b9327=_0x253604['schema'],_0xc0bcf4=[_0x245578],_0x405f44={},_0xe130a0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f4d01=null;const _0x3b441d=[0x0];for(let _0x29e84c=0x0;_0x29e84c<_0x58e54c['length'];_0x29e84c++)if('elementStart'===_0x58e54c[_0x29e84c]['type']){_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d);const _0x30ec59=new ft(_0x58e54c[_0x29e84c]['item']['name'],_0x58e54c[_0x29e84c]['item']['getAttributes']());_0xc0bcf4[0x0]['_appendChild'](_0x30ec59),_0x3b441d['push'](0x0),_0xc0bcf4['unshift'](_0x30ec59),_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d);}else'elementEnd'===_0x58e54c[_0x29e84c]['type']?(_0xc0bcf4['shift'](),_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d),_0x3b441d['pop'](),_0x3b441d[_0x3b441d['length']-0x1]++,_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d)):(_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d),_0x3f4d01?_0x3f4d01['_data']+=_0x58e54c[_0x29e84c]['item']['data']:_0x3f4d01=new wt(_0x58e54c[_0x29e84c]['item']['data'],_0x58e54c[_0x29e84c]['item']['getAttributes']()),_0x58e54c[_0x29e84c+0x1]&&'text'===_0x58e54c[_0x29e84c+0x1]['type']&&_0x1d45e2(_0x3f4d01,_0x58e54c[_0x29e84c+0x1]['item'])||(_0xc0bcf4[0x0]['_appendChild'](_0x3f4d01),_0x3f4d01=null),_0x3b441d[_0x3b441d['length']-0x1]+=_0x58e54c[_0x29e84c]['item']['offsetSize'],_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d));for(let _0x42e237=0x0;_0x42e237<_0x58e54c['length'];_0x42e237++){const _0x444296=_0x58e54c[_0x42e237]['previousPosition'],_0x4c6168=_0x58e54c[_0x42e237]['nextPosition'];for(const _0x721b12 of _0x58e54c[_0x42e237]['markersStart'])_0x57f08c['set'](_0x721b12,{'start':_0x444296,'end':null});_0x3e4c61('isRemoveSuggestion',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isAddSuggestion',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isRemoved',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isAdded',_0x42e237,_0x444296,_0x4c6168);for(const _0x25e7c7 of _0x58e54c[_0x42e237]['markersEnd']){_0x57f08c['get'](_0x25e7c7)['end']=_0x4c6168;}}for(const [_0x22002a,_0xd3076]of _0x57f08c){const _0x61737d=this['editor']['model']['createRange'](_0xd3076['start'],_0xd3076['end']);_0x245578['markers']['set'](_0x22002a,_0x61737d);}return _0x3cf2b6['sort']((_0x1f5000,_0x5cec0f)=>{const _0x58fc9e=_0x245578['markers']['get']('revision:'+_0x1f5000['id']),_0x11c560=_0x245578['markers']['get']('revision:'+_0x5cec0f['id']);return _0x58fc9e['start']['isBefore'](_0x11c560['start'])?-0x1:_0x58fc9e['start']['isAfter'](_0x11c560['start'])?0x1:_0x58fc9e['end']['isBefore'](_0x11c560['end'])?-0x1:_0x58fc9e['end']['isAfter'](_0x11c560['end'])?0x1:'add'===_0x1f5000['type']?-0x1:0x1;}),{'root':_0x245578,'changes':_0x3cf2b6};function _0x3e4c61(_0x556565,_0x1ae5f8,_0x5bfbf1,_0x147c06){const _0x3b0157=!!_0x58e54c[_0x1ae5f8][_0x556565],_0x543ae8=_0x3b0157?_0x58e54c[_0x1ae5f8][_0x556565]['userId']:null,_0x41c344=_0x1ae5f8===_0x58e54c['length']-0x1,_0x5942e0=_0xe130a0[_0x556565][0x0],_0x6b4cdb=_0x5b9327['isObject'](_0x58e54c[_0x1ae5f8]['item']);!_0x405f44[_0x556565]&&_0x3b0157?_0x405f44[_0x556565]={'start':_0x5bfbf1,'tapeItem':_0x58e54c[_0x1ae5f8],'userId':_0x543ae8,'type':_0x556565}:_0x405f44[_0x556565]&&!_0x3b0157?(_0x405f44[_0x556565]['end']=_0x5bfbf1,_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]=null):_0x405f44[_0x556565]&&_0x3b0157&&_0x405f44[_0x556565]['userId']!==_0x543ae8&&(_0x405f44[_0x556565]['end']=_0x5bfbf1,_0x5942e0&&_0x5942e0['userId']===_0x405f44[_0x556565]['userId']||_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]={'start':_0x5bfbf1,'tapeItem':_0x58e54c[_0x1ae5f8],'userId':_0x543ae8,'type':_0x556565}),_0x405f44[_0x556565]&&_0x6b4cdb&&('elementStart'!==_0x58e54c[_0x1ae5f8]['type']||_0x5942e0&&_0x5942e0['userId']===_0x543ae8||_0xe130a0[_0x556565]['unshift']({'userId':_0x543ae8,'object':_0x58e54c[_0x1ae5f8]['item'],'change':_0x405f44[_0x556565]}),'elementEnd'===_0x58e54c[_0x1ae5f8]['type']&&_0x5942e0&&_0x5942e0['object']===_0x58e54c[_0x1ae5f8]['item']&&(_0xe130a0[_0x556565]['shift'](),_0x405f44[_0x556565]=_0x5942e0['change'])),_0x405f44[_0x556565]&&_0x41c344&&(_0x405f44[_0x556565]['end']=_0x147c06,_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]=null);}function _0x426661({start:_0x45b4db,end:_0x1db0b9,tapeItem:_0x5ce24c,userId:_0x1fb8d1,type:_0x37efb3}){const _0x4133c0=_0x5ce24c['item'],_0x130c94=_0x253604['schema']['isBlock'](_0x4133c0)&&!_0x253604['schema']['isLimit'](_0x4133c0),_0x2ffa50=_0x45b4db['nodeAfter']==_0x1db0b9['parent']&&_0x1db0b9['isAtStart'];if(_0x130c94&&_0x2ffa50)return;const _0x31138a=_0x253604['createRange'](_0x45b4db,_0x1db0b9),_0x5ce5ea=_0x536d73['get'](_0x1fb8d1),_0x5b80bd=new r({'author':_0x5ce5ea,'type':'isAdded'==_0x37efb3||'isAddSuggestion'==_0x37efb3?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x37efb3||'isRemoveSuggestion'==_0x37efb3},'createdAt':new Date(),'rootName':_0x53358d});_0x3cf2b6['push'](_0x5b80bd),_0x245578['markers']['set']('revision:'+_0x5b80bd['id'],_0x31138a);}function _0x1d45e2(_0x37347d,_0xafd87f){const _0x236141=_0x37347d['getAttributes'](),_0x320730=_0xafd87f['getAttributes']();for(const _0x4ec0b7 of _0x236141){if(_0x4ec0b7[0x1]!==_0xafd87f['getAttribute'](_0x4ec0b7[0x0]))return!0x1;_0x320730['next']();}return _0x320730['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x39a522=>{const _0xb0f6c3=_0x39a522['markerName']['split'](':')[0x1],_0x17f378=this['_getChangeFromId'](_0xb0f6c3);if(!_0x17f378)return null;const _0x4e3adc='add'==_0x17f378['type']?'insertion':'deletion',_0x330842=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4e3adc];return _0x17f378['data']['isSuggestion']&&_0x330842['push']('ck-suggestion-marker-'+_0x4e3adc+'-new'),this['activeChange']==_0x17f378&&_0x330842['push']('ck-suggestion-marker--active'),{'classes':_0x330842,'attributes':{'data-change-id':_0xb0f6c3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5bd32b=>{_0x5bd32b['on']('element:pre',(_0x58cb6c,_0x2de3f4,_0x5282c9)=>{const _0x37384f=_0x2de3f4['viewItem']['getChild'](0x0);if(!_0x37384f||!_0x37384f['is']('element','code'))return;if(!_0x5282c9['consumable']['consume'](_0x37384f,{'attributes':['vid_start','vid_end']}))return;const _0x446c94=_0x2de3f4['modelRange']['start']['nodeAfter'];_0x5282c9['writer']['setAttribute']('vid_start',_0x37384f['getAttribute']('vid_start'),_0x446c94),_0x5282c9['writer']['setAttribute']('vid_end',_0x37384f['getAttribute']('vid_end'),_0x446c94);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4d5c5c=>{_0x4d5c5c['on']('element',(_0x5d5515,_0x1610d3,_0x291ff9)=>{if(!_0x291ff9['consumable']['consume'](_0x1610d3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1610d3['modelRange']['isCollapsed'])return;const _0x5760e7=_0x1610d3['modelRange']['start']['nodeAfter'];_0x5760e7['hasAttribute']('vid_start')||_0x5760e7['hasAttribute']('vid')||(_0x291ff9['writer']['setAttribute']('vid_start',_0x1610d3['viewItem']['getAttribute']('vid_start'),_0x5760e7),_0x291ff9['writer']['setAttribute']('vid_end',_0x1610d3['viewItem']['getAttribute']('vid_end'),_0x5760e7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x39d945=>_0x39d945['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5bd54a,[,_0x5c05f7])=>{['vid_start','vid_end','vid']['includes'](_0x5c05f7)&&(_0x5bd54a['return']=!0x0,_0x5bd54a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x315795=>{_0x315795['on']('attribute:vid',(_0x5a06dc,_0xc5a209,_0x2fa4f3)=>{if('\x20'!=_0xc5a209['item']['data']||_0xc5a209['item']['parent']['maxOffset']>0x1)return;if(!_0x2fa4f3['consumable']['consume'](_0xc5a209['item'],_0x5a06dc['name']))return;const _0x2a69d0=_0x2fa4f3['writer'],_0x4cf14f=_0x2fa4f3['mapper']['toViewRange'](_0xc5a209['range']);_0x2a69d0['wrap'](_0x4cf14f,_0x2a69d0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x401861){const _0x3d02bd=_0x401861['plugins']['get']('RevisionViewer');return(_0x118d13,_0x59df22,_0x417922)=>{const _0x27335b=_0x59df22['markerName']['split'](':')[0x1],_0x41509b=_0x3d02bd['_getChangeFromId'](_0x27335b);if(!_0x41509b)return null;const _0x3e6738='add'==_0x41509b['type']?'split':'merge';if(!_0x417922['consumable']['test'](_0x59df22['markerRange'],_0x118d13['name']))return;const _0x569158=_0x59df22['markerRange']['getWalker'](),_0x4221e0=_0x59df22['markerRange']['start'],_0x216768=_0x401861['model']['schema'];let _0x338518=null,_0x382885=null,_0x54c2f9=!0x1,_0x29ae58=!0x1;for(const _0xdeea49 of _0x569158){const _0x283218=_0xdeea49['item'];_0x54c2f9=_0x54c2f9||_0x216768['isContent'](_0x283218);const _0x1896d4=_0x417922['mapper']['toViewElement'](_0x283218);if(_0x1896d4&&_0x1896d4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdeea49['type']&&(_0x216768['isBlock'](_0x283218)&&!_0x216768['isLimit'](_0x283218)&&(_0x283218['nextSibling']||_0x4221e0['isAtEnd']?_0x338518&&_0x338518['parent']==_0x283218||(_0x338518=_0x283218,_0x50504b(_0xdeea49['previousPosition']),_0x29ae58=!0x0):_0x382885=_0x382885||_0xdeea49['previousPosition']));}function _0x50504b(_0x35d719){const _0x136708=_0x417922['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e6738}),_0x4c3c38=_0x417922['mapper']['toViewPosition'](_0x35d719);_0x41509b['data']['isSuggestion']&&_0x417922['writer']['addClass']('ck-suggestion-marker-'+_0x3e6738+'-new',_0x136708),_0x3d02bd['activeChange']==_0x41509b&&_0x417922['writer']['addClass']('ck-suggestion-marker--active',_0x136708),_0x417922['writer']['insert'](_0x4c3c38,_0x136708),_0x417922['mapper']['bindElementToMarker'](_0x136708,_0x59df22['markerName']);}_0x54c2f9||_0x29ae58||!_0x382885||_0x50504b(_0x382885);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x359f64,_0x5dde7f,_0x250fbc)=>{const _0xd5a86c=_0x250fbc['mapper']['markerNameToElements'](_0x5dde7f['markerName']);if(_0xd5a86c){for(const _0x30814e of _0xd5a86c)(_0x30814e['hasClass']('ck-suggestion-marker-split')||_0x30814e['hasClass']('ck-suggestion-marker-merge'))&&(_0x250fbc['mapper']['unbindElementFromMarkerName'](_0x30814e,_0x5dde7f['markerName']),_0x250fbc['writer']['remove'](_0x30814e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x105972,_0xc68bcd,_0x385b32)=>{const _0x43fc47=_0xc68bcd['markerName']['split'](':')[0x1],_0x1a4195=this['_getChangeFromId'](_0x43fc47);if(!_0x1a4195)return null;const _0x5a121e='add'==_0x1a4195['type']?'split':'merge';if(_0x385b32['consumable']['test'](_0xc68bcd['markerRange'],_0x105972['name']))for(const _0x5c06c6 of _0xc68bcd['markerRange']['getItems']()){if(!_0x5c06c6['is']('element','softBreak'))continue;const _0x291374=_0x385b32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5a121e}),_0x541ba1=_0x385b32['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5c06c6));_0x1a4195['data']['isSuggestion']&&_0x385b32['writer']['addClass']('ck-suggestion-marker-'+_0x5a121e+'-new',_0x291374),this['activeChange']==_0x1a4195&&_0x385b32['writer']['addClass']('ck-suggestion-marker--active',_0x291374),_0x385b32['writer']['insert'](_0x541ba1,_0x291374),_0x385b32['mapper']['bindElementToMarker'](_0x291374,_0xc68bcd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x215d77=>{for(const _0x253b06 of this['editor']['model']['document']['getRootNames']()){const _0x1af5dc=this['editor']['model']['document']['getRoot'](_0x253b06),_0x54babf=this['editor']['editing']['view']['document']['getRoot'](_0x253b06);if(_0x54babf){const _0x4afa69=_0x1af5dc['getAttribute']('revisionHistoryAttachChange');if(_0x215d77['removeAttribute']('data-change-id',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root-add',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root-remove',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root--active',_0x54babf),_0x4afa69){const _0x228844=this['_getChangeFromId'](_0x4afa69);if(!_0x228844)return null;_0x215d77['setAttribute']('data-change-id',_0x4afa69,_0x54babf),_0x215d77['addClass']('ck-revision-history-root-'+_0x228844['type'],_0x54babf),this['activeChange']==_0x228844&&_0x215d77['addClass']('ck-revision-history-root--active',_0x54babf);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x39aeba=>'revision-comment:'+_0x39aeba,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x517bd1=>'revision-suggestion:'+_0x517bd1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x435fb2=>({'name':'suggestion:'+_0x435fb2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3076b5=>{const _0xcbf2dc=_0x3076b5['markerName']['split'](':')[0x1];return'insertion'!=_0xcbf2dc&&'deletion'!=_0xcbf2dc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xcbf2dc]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1277ca,_0x144d90,_0x11b631)=>{const _0x16e0ed=_0x11b631['mapper']['markerNameToElements'](_0x144d90['markerName']);if(_0x16e0ed){for(const _0x1e9c2e of _0x16e0ed)_0x1e9c2e['is']('uiElement')&&(_0x11b631['mapper']['unbindElementFromMarkerName'](_0x1e9c2e,_0x144d90['markerName']),_0x11b631['writer']['remove'](_0x1e9c2e));}},{'priority':'high'});}['_getChangeFromId'](_0x4e6416){return this['_changeIdToChange']['get'](_0x4e6416);}['_getViewForChange'](_0x15b4ef){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x15b4ef),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x317002,_0x3a178e,_0x51bc9c,_0x45de4e)=>{_0x45de4e&&this['_balloon']['remove'](_0x45de4e),_0x51bc9c&&(this['_balloon']['add']({'view':_0x51bc9c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3ce6b8=this['editor']['editing'],_0x34f5ba=this['_getChangeFromId'](_0x51bc9c['changeId']);let _0x2002c6;if(_0x34f5ba['data']['isOnRoot']){const _0x132a5d=_0x3ce6b8['view']['getDomRoot'](_0x34f5ba['rootName']);_0x2002c6=Array['from'](_0x132a5d['getClientRects']());}else{const _0x3aefb0=this['editor']['model']['markers']['get']('revision:'+_0x51bc9c['changeId']);_0x2002c6=Array['from'](_0x3ce6b8['mapper']['markerNameToElements'](_0x3aefb0['name']))['map'](_0x115456=>_0x3ce6b8['view']['domConverter']['mapViewToDom'](_0x115456))['map'](_0x339c2e=>Array['from'](_0x339c2e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2002c6[0x0];return _0x2002c6['find'](_0x5bcfe9=>_0x5bcfe9['top']-0x3<=this['_activeViewTarget']['y']&&_0x5bcfe9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5bcfe9['left']-0x3<=this['_activeViewTarget']['x']&&_0x5bcfe9['right']+0x3>=this['_activeViewTarget']['x'])||_0x2002c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3d04eb,_0xf01317,_0x34d0fa,_0x3fb023)=>{this['activeView']=_0x34d0fa?this['_getViewForChange'](_0x34d0fa):null,this['editor']['model']['change'](()=>{const _0x9820b8=this['editor']['editing'];_0x3fb023&&(_0x3fb023['data']['isOnRoot']?_0x9820b8['view']['change'](_0x52474f=>{_0x52474f['removeClass']('ck-revision-history-root--active',_0x9820b8['view']['document']['getRoot'](_0x3fb023['rootName']));}):_0x9820b8['reconvertMarker']('revision:'+_0x3fb023['id'])),_0x34d0fa&&(_0x34d0fa['data']['isOnRoot']?_0x9820b8['view']['change'](_0x72f372=>{_0x72f372['addClass']('ck-revision-history-root--active',_0x9820b8['view']['document']['getRoot'](_0x34d0fa['rootName']));}):_0x9820b8['reconvertMarker']('revision:'+_0x34d0fa['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xc6f2de,_0x3ef779)=>{if(this['activeChange'])return;const _0xd5b868=this['_findChangeIdFromDomTarget'](_0x3ef779['target']),_0x5a12c8=this['_changeIdToChange']['get'](_0xd5b868);_0x5a12c8?(this['_activeViewTarget']={'x':_0x3ef779['domEvent']['x'],'y':_0x3ef779['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5a12c8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2407cb,_0x25f07b)=>{const _0x7aec8c=this['_findChangeIdFromDomTarget'](_0x25f07b['target']),_0x5f2f2b=this['_changeIdToChange']['get'](_0x7aec8c);_0x5f2f2b?(this['_activeViewTarget']={'x':_0x25f07b['domEvent']['x'],'y':_0x25f07b['domEvent']['y']},_0x5f2f2b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5f2f2b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x572a8c){do{const _0x57fa83=_0x572a8c['getAttribute']('data-change-id');if(_0x57fa83)return _0x57fa83;_0x572a8c=_0x572a8c['parent'];}while(_0x572a8c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x42661f=>{for(const _0x586e5a of this['editor']['model']['markers'])_0x42661f['removeMarker'](_0x586e5a);});}}function tt(_0x1f47fb,_0x53d4d9){return(_0x2e2b61,_0x1b0714,_0x31b007)=>{if(!_0x31b007['consumable']['test'](_0x1b0714['markerRange'],_0x2e2b61['name']))return;const _0x5b2b22=_0x1b0714['markerRange']['getWalker'](),_0xa06657=_0x1b0714['markerRange']['start'],_0x56fb0c=_0x1f47fb['model']['schema'];let _0x4a4a3b=null,_0x32b52a=null,_0x810710=!0x1,_0x3a3e2e=!0x1;for(const _0x303aec of _0x5b2b22){const _0xce9e63=_0x303aec['item'];_0x810710=_0x810710||_0x56fb0c['isContent'](_0xce9e63);const _0x2d462d=_0x31b007['mapper']['toViewElement'](_0xce9e63);if(_0x2d462d&&_0x2d462d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x303aec['type']&&(_0x56fb0c['isBlock'](_0xce9e63)&&!_0x56fb0c['isLimit'](_0xce9e63)&&(_0xce9e63['nextSibling']||_0xa06657['isAtEnd']?_0x4a4a3b&&_0x4a4a3b['parent']==_0xce9e63||(_0x4a4a3b=_0xce9e63,_0x4c99b1(_0x303aec['previousPosition']),_0x3a3e2e=!0x0):_0x32b52a=_0x32b52a||_0x303aec['previousPosition']));}function _0x4c99b1(_0x3b943e){const _0xec5ae=_0x31b007['mapper']['toViewPosition'](_0x3b943e),_0x15743d=_0x31b007['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x53d4d9});_0x31b007['writer']['insert'](_0xec5ae,_0x15743d),_0x31b007['mapper']['bindElementToMarker'](_0x15743d,_0x1b0714['markerName']);}_0x810710||_0x3a3e2e||!_0x32b52a||_0x4c99b1(_0x32b52a);};}class _t extends _0x4faceb{constructor(_0x2bbe66){super(_0x2bbe66);const _0x1db6e4=_0x2bbe66['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1db6e4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1db6e4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x44ce3c=this['editor'],_0x47ac27=_0x44ce3c['plugins']['get'](d),_0x2988a2=_0x47ac27['isReady']?_0x47ac27['diff']['newRevisionId']:null;_0x44ce3c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2988a2);}['refresh'](){const {isReady:_0x5b59b2,isEnabled:_0x34468f,repository:_0x38cd70,diff:_0x47ad50}=this['editor']['plugins']['get'](d),_0x361069=_0x47ad50&&_0x38cd70['getLaterVisibleRevision'](_0x47ad50['newRevisionId']);this['isEnabled']=_0x5b59b2&&_0x34468f&&Boolean(_0x361069);}}class yt extends _0x4faceb{['_step'];constructor(_0x41a762,{direction:_0x5b85dc}){super(_0x41a762);const _0x3b8a7f=_0x41a762['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5b85dc?0x1:-0x1,this['listenTo'](_0x3b8a7f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3b8a7f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3b8a7f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1e9679=this['editor'],_0x2b3dbd=_0x1e9679['plugins']['get'](d),{isNavigationMode:_0x4066ab,currentChangeNumber:_0x10da1e}=_0x2b3dbd;let _0x5e09d9;if(_0x2b3dbd['activeChange']=_0x4066ab?_0x2b3dbd['diff']['changes']['get'](_0x10da1e+this['_step']):_0x2b3dbd['diff']['changes']['first'],_0x2b3dbd['activeChange']['data']['isOnRoot'])_0x5e09d9=_0x1e9679['editing']['view']['getDomRoot'](_0x2b3dbd['activeChange']['rootName']);else{const _0x5bcc1b=_0x1e9679['model']['markers']['get']('revision:'+_0x2b3dbd['activeChange']['id']);_0x5e09d9=_0x415cb4(_0x1e9679['editing'],_0x5bcc1b);}_0x28cd2e({'target':_0x5e09d9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x8f65bd,currentChangeNumber:_0x4e5861,numberOfChanges:_0x2efdee,isReady:_0x48d48f,isEnabled:_0x47059a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x47059a&&_0x48d48f&&_0x2efdee)&&(!_0x8f65bd||(0x1===this['_step']?_0x4e5861<_0x2efdee-0x1:_0x4e5861>0x0));}}class li extends ts{constructor(_0x3eab51){super(_0x3eab51);const _0x3cc218=this['bindTemplate'],_0x36bbb1=new te(_0x3eab51),_0x152c86=new te(_0x3eab51);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',(_0x1e972c,_0x1f94ae)=>_0x1e972c&&_0x1f94ae>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x6a30fa,_0x59cc36,_0x209136,_0x38cdd3)=>{if(!_0x6a30fa)return R(_0x3eab51,'Loading...');if(!_0x209136)return R(_0x3eab51,'No\x20changes');const _0x2574a5=R(_0x3eab51,'NUMBER_OF_CHANGES',_0x209136);return _0x38cdd3?R(_0x3eab51,'X_OF_Y_CHANGES',[_0x59cc36+0x1,_0x209136]):_0x2574a5;}),_0x36bbb1['set']({'label':R(_0x3eab51,'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'}),_0x152c86['set']({'label':R(_0x3eab51,'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'}),_0x36bbb1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x152c86['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x36bbb1['on']('execute',()=>this['fire']('execute','backward')),_0x152c86['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',_0x3cc218['if']('_isStatusLabelVisible','ck-hidden',_0x2890c3=>!_0x2890c3)]},'children':[{'text':_0x3cc218['to']('isNavigationMode',_0x1d243e=>_0x1d243e?R(_0x3eab51,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3eab51,'Total')+':\x20')}]},{'text':_0x3cc218['to']('_statusText')}]},new _0x54463f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x36bbb1,_0x152c86]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x1c98c7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2f7aa1=this['editor']['editing']['view'];_0x2f7aa1['change'](_0x53bd6e=>{for(const _0x4e1da7 of _0x2f7aa1['document']['roots'])_0x53bd6e['addClass'](le,_0x4e1da7);});}['hide'](){const _0x32c9f9=this['editor']['editing']['view'];_0x32c9f9['change'](_0x3e707e=>{for(const _0x5383db of _0x32c9f9['document']['roots'])_0x3e707e['removeClass'](le,_0x5383db);});}}class m extends _0x1c98c7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x38f2a3=this['editor'],_0x39e8da=_0x38f2a3['plugins']['get'](d),_0x55a6a3=_0x38f2a3['plugins']['get'](ge);_0x38f2a3['ui']['componentFactory']['add']('exitToEditing',_0x5cb0f4=>{const _0x3e434c=new te(_0x5cb0f4);return _0x3e434c['set']({'label':R(_0x5cb0f4,'Back\x20to\x20editing'),'icon':_0x14c866['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3e434c,'execute',()=>{_0x38f2a3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3e434c;}),_0x38f2a3['ui']['componentFactory']['add']('restoreRevision',_0x3cbe30=>{const _0xd91328=new te(_0x3cbe30);return _0xd91328['set']({'label':R(_0x3cbe30,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xd91328['bind']('isEnabled')['to'](_0x38f2a3['commands']['get']('restoreRevision')),this['listenTo'](_0xd91328,'execute',()=>_0x38f2a3['execute']('restoreRevision')),_0xd91328;}),_0x38f2a3['ui']['componentFactory']['add']('changesNavigation',_0x434e16=>{const _0x386e57=new li(_0x434e16),_0x1f6d1d=_0x38f2a3['commands']['get']('showPreviousChange'),_0x20ca66=_0x38f2a3['commands']['get']('showNextChange');return _0x386e57['bind']('isBackwardNavigationEnabled')['to'](_0x1f6d1d,'isEnabled'),_0x386e57['bind']('isForwardNavigationEnabled')['to'](_0x20ca66,'isEnabled'),_0x386e57['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39e8da),this['listenTo'](_0x386e57,'execute',(_0x1e8490,_0x40fdc)=>{_0x38f2a3['execute']('forward'===_0x40fdc?'showNextChange':'showPreviousChange');}),_0x386e57;}),_0x55a6a3['show'](),_0x39e8da['on']('change:isReady',(_0x576b0f,_0x16c2bd,_0xf58f5d)=>{_0xf58f5d?_0x55a6a3['hide']():_0x55a6a3['show']();});}}class pt extends _0x3f921c{['_resizeObserver']=null;constructor(_0x4a3020,_0x34fed1){super(_0x4a3020,_0x34fed1);const _0x246d84=this['bindTemplate'];this['set']({'label':R(_0x4a3020,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4a3020,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x246d84['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 _0x10b986=this['fieldView']['element'];this['_tooltipString']=_0x10b986['scrollWidth']>_0x10b986['clientWidth']&&_0x10b986['value']||'';}}class ri extends ts{constructor(_0x2a3fcb,_0x28669f,_0x378f47){super(_0x2a3fcb);const _0xc5ce24=new _0x825bd1();_0xc5ce24['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 _0x2b91fe=['ck','ck-revision-history-sidebar__revision-author'];_0x378f47&&_0x2b91fe['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3fae3e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2a3fcb,_0x378f47?'Revision\x20creator':'Revision\x20author')},'children':[_0xc5ce24,_0x28669f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2b91fe},'children':_0x3fae3e});}}function oi(_0x23e21d,_0x3dba61){const _0x1b1bc6=_0x23e21d['bindTemplate'],_0x5863c8=_0x23e21d['locale'],_0x56dab8=_0x547500(_0x5863c8);_0x56dab8['panelPosition']='sw';const _0x294a8a=function(_0x1e66e5,_0x2e7316){const _0x335fce=function(_0xdcc638,_0x1de993){const _0x2b3b95=_0xdcc638['locale'],_0xca59d1={'Compare\x20against\x20selected':R(_0x2b3b95,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2b3b95,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2b3b95,'Restore\x20this\x20revision')};return _0x1de993['map'](_0x362af0=>{const _0x1f9946=_0xca59d1[_0x362af0['name']];return _0x1f9946&&_0x1f9946!==_0x362af0['name']&&(_0x362af0['name']=_0x1f9946),_0x362af0;});}(_0x1e66e5,_0x2e7316),_0x575dc4=new _0x3fda2b();for(const _0x469bd5 of _0x335fce){const _0x236241={'type':'button','model':new _0x4c462f({'label':_0x469bd5['name'],'class':_0x469bd5['class'],'withText':!0x0,'role':'menuitem','_action':_0x469bd5['action']})};_0x236241['model']['bind']('isEnabled')['to'](_0x1e66e5,'isActionsDropdownOpen',_0x59ee81=>'function'!=typeof _0x469bd5['isEnabled']||(!_0x59ee81||_0x469bd5['isEnabled'](_0x1e66e5))),_0x575dc4['add'](_0x236241);}return _0x575dc4;}(_0x23e21d,_0x3dba61);return _0x23e21d['bind']('isActionsDropdownOpen')['to'](_0x56dab8,'isOpen'),_0x56dab8['buttonView']['set']({'label':R(_0x5863c8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x14c866['threeVerticalDots']}),_0x56dab8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b1bc6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b1bc6['to'](_0x43a8f2=>_0x43a8f2['stopPropagation']())}}),_0x56dab8['on']('execute',_0x5ab11a=>{_0x23e21d['isReady']&&'function'==typeof _0x5ab11a['source']['_action']&&_0x5ab11a['source']['_action'](_0x23e21d);}),to(_0x56dab8,_0x294a8a,{'role':'menu'}),_0x56dab8['listenTo'](_0x23e21d,'change:isActionsDropdownOpen',(_0x6401f7,_0x4b4699,_0x4e7b1f)=>{if(_0x4e7b1f)for(const _0x47c70d of _0x56dab8['listView']['items']){const _0x5a4c30=_0x47c70d['children']['first'],_0x358341=_0x3dba61['find'](_0x20a9de=>_0x20a9de['action']===_0x5a4c30['_action'])['isVisible'];_0x47c70d['isVisible']=void 0x0===_0x358341||_0x358341(_0x23e21d);}}),_0x56dab8;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3b2130,_0x186c0f,_0x4fd2ab,_0x5e41e0){super(_0x3b2130);const _0x3e7340=this['bindTemplate'],_0x5e6570=function(_0x4a1bfb,_0x187a85){const _0x35b586=Array['from'](_0x187a85['authors'])['filter'](_0xd4ae28=>_0xd4ae28!=_0x187a85['creator']);return _0x187a85['creator']&&_0x35b586['unshift'](_0x187a85['creator']),_0x35b586['map'](_0x2abd06=>new ri(_0x4a1bfb,_0x2abd06,_0x2abd06==_0x187a85['creator']));}(_0x3b2130,_0x186c0f);this['id']=_0x186c0f['id'],this['_revision']=_0x186c0f,this['_requireRevisionName']=_0x5e41e0,this['bind']('name','createdAt')['to'](_0x186c0f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2990af=>{return _0x5ab4eb=_0x3b2130['uiLanguage'],(_0x159efc=_0x2990af)['toLocaleDateString'](_0x5ab4eb,{'month':'long','day':'numeric'})+',\x20'+_0x159efc['toLocaleTimeString'](_0x5ab4eb,{'hour':'numeric','minute':'numeric'});var _0x5ab4eb,_0x159efc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3b2130,_0x2498fb),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1a8b8c=>_0x1a8b8c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x32af7b,_0x3dfa5a)=>_0x32af7b&&_0x3dfa5a),this['revisionActionsView']=_0x4fd2ab&&_0x4fd2ab['length']?oi(this,_0x4fd2ab):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3e7340['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3e7340['if']('isEnabled','ck-disabled',_0x337405=>!_0x337405),_0x3e7340['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3e7340['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3e7340['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':_0x3e7340['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':_0x5e6570}]},this['revisionActionsView']],'on':{'click':_0x3e7340['to'](_0x1d5a10=>{_0x1d5a10['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4bf036=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4bf036,'change',()=>{this['_requireRevisionName']&&!_0x4bf036['value']||this['fire']('setName',{'id':this['id'],'name':_0x4bf036['value']}),_0x4bf036['value']||(_0x4bf036['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x492d8d,_0x2e7826){const _0x1b2707=_0x4c6978['fromJSDate'](_0x492d8d)['setLocale'](_0x2e7826),_0x5b110e=_0x4c6978['local'](),_0xc69cc2=_0x5b110e['minus']({'days':0x1})['startOf']('day');let _0x222d93,_0x409586;return _0x1b2707['hasSame'](_0x5b110e,'day')?(_0x222d93=_0x1b2707['startOf']('day')['toJSDate'](),_0x409586=_0x1b2707['toRelativeCalendar']()):_0x1b2707['hasSame'](_0xc69cc2,'day')?(_0x222d93=_0xc69cc2['toJSDate'](),_0x409586=_0x1b2707['toRelativeCalendar']()):_0x1b2707['hasSame'](_0x5b110e,'week')?(_0x222d93=_0x1b2707['startOf']('week')['toJSDate'](),_0x409586=_0x1b2707['weekdayLong']||''):_0x1b2707['hasSame'](_0x5b110e,'year')?(_0x222d93=_0x1b2707['startOf']('month')['toJSDate'](),_0x409586=_0x1b2707['monthLong']||''):(_0x222d93=_0x1b2707['startOf']('year')['toJSDate'](),_0x409586=String(_0x1b2707['year'])),{'startDate':_0x222d93,'localizedPeriodName':_0x409586};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1157d5,_0x2459de,_0x5c1db5,_0x5c8e3d){super(_0x1157d5);const _0x30051b=ci(_0x2459de,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2459de,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5c1db5,this['_requireRevisionName']=_0x5c8e3d,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':_0x30051b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3cd226){const _0x1eec7c=new hi(this['locale'],_0x3cd226,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1eec7c);}['removeRevision'](_0x132816){const _0x97499c=this['revisionViews']['find'](_0x773fa1=>_0x773fa1['id']===_0x132816['id']);this['revisionViews']['remove'](_0x97499c);}}class as extends ts{constructor(_0x2b6337){super(_0x2b6337);const _0x1a03e5=new _0x825bd1();_0x1a03e5['content']=_0x14c866['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1a03e5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x2b6337,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x898e12,_0x541175,_0x3a1227,_0x5947ff){super(_0x898e12);const _0x3b7246=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x541175,this['_revisionActions']=_0x3a1227,this['_requireRevisionName']=_0x5947ff,this['on']('select',(_0xff1969,_0x4a21c3)=>{this['fire']('revisionSelected',_0x4a21c3);}),this['on']('setName',(_0x36b90c,_0x3fb946)=>{this['fire']('revisionSetName',_0x3fb946);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x898e12),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3b7246['if']('isEnabled','ck-disabled',_0x38add5=>!_0x38add5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4c726e of this['_revisions'])this['_addRevision'](_0x4c726e);this['_revisions']['on']('add',(_0x289499,_0x5c8085)=>{this['_addRevision'](_0x5c8085);}),this['_revisions']['on']('remove',(_0x5b95ac,_0x4bba9c)=>{this['_removeRevision'](_0x4bba9c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2974a7=>_0x2974a7['revisionViews']['map'](_0x31d534=>_0x31d534))['flat']();}['selectRevision'](_0x29788c){for(const _0x54e0f6 of this['revisionViews'])_0x29788c&&_0x29788c['id']===_0x54e0f6['id']?_0x54e0f6['select']():_0x54e0f6['deselect']();}['highlightRevisions'](_0x47215a){for(const _0x24469f of this['revisionViews'])_0x47215a['some'](({id:_0x178d1f})=>_0x178d1f===_0x24469f['id'])?_0x24469f['highlight']():_0x24469f['unhighlight']();}['_addRevision'](_0x42f8f3){const _0x5a6531=ci(_0x42f8f3['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2155ba=this['timePeriodViews']['get'](0x0);_0x2155ba&&_0x2155ba['startDate']['getTime']()===_0x5a6531['getTime']()||(_0x2155ba=new ai(this['locale'],_0x5a6531,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2155ba)),_0x2155ba['addRevision'](_0x42f8f3);}['_removeRevision'](_0x3c1f78){const _0x352e05=ci(_0x3c1f78['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x352e05)['removeRevision'](_0x3c1f78);}['_getTimePeriodViewByStartDate'](_0x55d42b){return this['timePeriodViews']['find'](_0x10b984=>_0x10b984['startDate']['getTime']()===_0x55d42b['getTime']());}}class g extends _0x1c98c7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x6ba935,uid as _0x34c6ad,Collection as _0x4cc07d,logWarning as _0x423101,FocusTracker as _0x23fc60,KeystrokeHandler as _0x39629e,scrollViewportToShowTarget as _0x276e18,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x506ec3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x315ac7,set as _0x12174a,unset as _0x4e20da,isEqual as _0x14c2d4}from'lodash-es';import{Plugin as _0x212b78,PendingActions as _0x3b4d5a,icons as _0x327ed7,Command as _0x3b1bfe,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5f0bf6,getMarkerDomElement as _0xbdfbf2,ConfirmMixin as _0xda0cd5,sanitizeEditorConfig as _0x4eff1c}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3d27d9,ViewText as _0x3812af,ViewElement as _0x27385a,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x4bf35c,ViewAttributeElement as _0x3e2abd,ViewEmptyElement as _0x4b8dad,ViewRawElement as _0x5416a7,ViewUIElement as _0x2dea23,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x3848c5,submitHandler as _0x2f2870,LabeledFieldView as _0x176f9e,createLabeledInputText as _0x20cf4d,createDropdown as _0xcdad56,ListView as _0x30fe7f,ListItemView as _0x2bea9b,ButtonView as te,MenuBarMenuView as _0x357584,MenuBarMenuListView as _0x36c1a0,MenuBarMenuListItemView as _0x2b0dca,MenuBarMenuListItemButtonView as _0x5797ff,ContextualBalloon as _0x5355f9,ToolbarSeparatorView as _0x2902ac,IconView as _0x4ff77b,addListToDropdown as to,ViewModel as _0x5f0624,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x30157e}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x6ba935(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2480b7){super(),this['id']=_0x2480b7['id']||_0x34c6ad(),this['creator']=_0x2480b7['creator']||null,this['authors']=_0x2480b7['authors']||[],this['diffData']=_0x2480b7['diffData']||null,this['toVersion']=_0x2480b7['toVersion']||0x0,this['fromVersion']=_0x2480b7['fromVersion']||0x0,this['set']('name',_0x2480b7['name']||''),this['set']('createdAt',_0x2480b7['createdAt']||new Date()),this['set']('attributes',_0x2480b7['attributes']||{});}['setName'](_0x472313){this['_update']({'name':_0x472313});}['setAttribute'](_0x5222bb,_0x9cedbd){const _0x226994=_0x315ac7(this['attributes']);_0x12174a(_0x226994,_0x5222bb,_0x9cedbd),this['_update']({'attributes':_0x226994});}['removeAttribute'](_0x4651e9){const _0x59a58a=_0x315ac7(this['attributes']);_0x4e20da(_0x59a58a,_0x4651e9),this['_update']({'attributes':_0x59a58a});}['_update'](_0x53e1ae,_0x334016=!0x1){let _0xf0179e=!0x1;const _0x437c47={'id':this['id']},_0x5016c6=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x698240 of _0x5016c6){const _0x1dcbc8=_0x53e1ae[_0x698240];void 0x0!==_0x1dcbc8&&_0x1dcbc8!==this[_0x698240]&&(this[_0x698240]=_0x1dcbc8,_0x437c47[_0x698240]=_0x1dcbc8,_0xf0179e=!0x0);}_0xf0179e&&(_0x437c47['authors']&&(_0x437c47['authorsIds']=_0x437c47['authors']['map'](_0x1835b0=>_0x1835b0['id']),delete _0x437c47['authors']),this['fire']('_update',_0x437c47,_0x334016));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2ae4b9=>_0x2ae4b9['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x212b78{['_revisions'];static get['requires'](){return[_0x5f0bf6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2b85a8){super(_0x2b85a8),this['_revisions']=new _0x4cc07d();}['afterInit'](){!async function(_0x276a3e){const _0x4a6b1b=_0x18f0c0([0x7a,0x5a,0x59,0x45,0x70,0x6e,0x47,0x42,0x61,0x4b,0x75,0x35,0x49,0x63,0x4e,0x39,0x65,0x56,0x38,0x32,0x41,0x52,0x76,0x30,0x66,0x50,0x54,0x51,0x72,0x6f,0x37,0x77,0x44,0x62,0x34,0x67,0x4f,0x58,0x36,0x79,0x71,0x73,0x6b,0x55,0x68,0x53,0x69,0x46,0x57,0x31,0x4c,0x6c,0x4a,0x6d,0x78,0x33,0x43,0x48,0x6a,0x64,0x74,0x4d]),_0x239d0a=0xeb829,_0x100f8a=0x32a472f8,_0x38cc25=0x32a32b68^_0x100f8a,_0xa276f8=window[_0x18f0c0([0x44,0x61,0x74,0x65])][_0x18f0c0([0x6e,0x6f,0x77])](),_0x27b7a5=_0x276a3e[_0x18f0c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1456c2=new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599f1f=>{_0x27b7a5[_0x18f0c0([0x6f,0x6e,0x63,0x65])](_0x18f0c0([0x72,0x65,0x61,0x64,0x79]),_0x599f1f);}),_0x3dab30={[_0x18f0c0([0x6b,0x74,0x79])]:_0x18f0c0([0x45,0x43]),[_0x18f0c0([0x75,0x73,0x65])]:_0x18f0c0([0x73,0x69,0x67]),[_0x18f0c0([0x63,0x72,0x76])]:_0x18f0c0([0x50,0x2d,0x32,0x35,0x36]),[_0x18f0c0([0x78])]:_0x18f0c0([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]),[_0x18f0c0([0x79])]:_0x18f0c0([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]),[_0x18f0c0([0x61,0x6c,0x67])]:_0x18f0c0([0x45,0x53,0x32,0x35,0x36])},_0x4ffb82=_0x27b7a5[_0x18f0c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18f0c0([0x67,0x65,0x74])](_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f7055(){let _0x200f6b,_0x3ab4ea=null,_0x58f2b4=null;try{if(_0x4ffb82==_0x18f0c0([0x47,0x50,0x4c]))return _0x18f0c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x200f6b=_0x3c922f(),!_0x200f6b)return _0x18f0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x200f6b[_0x18f0c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58f2b4=_0x4047e0(_0x200f6b[_0x18f0c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x200f6b[_0x18f0c0([0x6a,0x74,0x69])])),await _0x103f12()?_0x1374a9()?_0x4373e3()?_0x18f0c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x393a38()?(_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18f0c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ab4ea=_0x2b64cc(_0x18f0c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18f0c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ab4ea=_0x2b64cc(_0x18f0c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18f0c0([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3ab4ea=_0x2b64cc(_0x18f0c0([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x145e45()):_0x18f0c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18f0c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18f0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x68da49){return _0x18f0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4373e3(){const _0x33566e=[_0x18f0c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18f0c0([0x74,0x72,0x69,0x61,0x6c])][_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa276f8/0x3e8:0xe10*_0x38cc25;return _0x200f6b[_0x18f0c0([0x65,0x78,0x70])]<_0x33566e;}function _0x1374a9(){const _0x3301de=_0x200f6b[_0x18f0c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3301de)return!0x1;if(_0x3301de[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f0c0([0x2a])))return!0x0;if(_0x3301de[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f0c0([0x52,0x48])))return!0x0;if(_0x3301de[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f0c0([0x52,0x52,0x48]))){if(_0x50c410())return!0x0;if(_0x1440d3()||_0x87bf7f())return!0x0;}return!0x1;}function _0x393a38(){const _0x3b6b23=_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b6b23||0x0==_0x3b6b23[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a468b}=new URL(window[_0x18f0c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b6b23[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a468b))return!0x0;const _0x5ac0c4=_0x4a468b[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])](_0x18f0c0([0x2e]));return _0x3b6b23[_0x18f0c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ab7b9=>_0x3ab7b9[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f0c0([0x2a])))[_0x18f0c0([0x6d,0x61,0x70])](_0x4440d1=>_0x4440d1[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])](_0x18f0c0([0x2e])))[_0x18f0c0([0x73,0x6f,0x6d,0x65])](_0x5da780=>_0x5ac0c4[_0x18f0c0([0x65,0x76,0x65,0x72,0x79])]((_0xb4919a,_0x419955)=>_0x5da780[_0x419955]===_0xb4919a||_0x5da780[_0x419955]===_0x18f0c0([0x2a])));}function _0x145e45(){return _0x3ab4ea&&_0x58f2b4?new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a460c,_0xaae696)=>{_0x3ab4ea[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x5a460c,_0xaae696),_0x58f2b4[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x19c5b2=>{_0x19c5b2!=_0x18f0c0([0x56,0x61,0x6c,0x69,0x64])&&_0x5a460c(_0x19c5b2);},_0xaae696);}):_0x3ab4ea||_0x58f2b4||_0x18f0c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4047e0(_0x31f44f,_0x520f45){return new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf3dd3e=>{if(_0x8127a7())return _0xf3dd3e(_0x18f0c0([0x56,0x61,0x6c,0x69,0x64]));_0xd0735f(),_0x27b7a5[_0x18f0c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18f0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x209248=!0x1;const _0x4d47e8=_0x34c6ad();function _0x2b0e32(_0x1294a5){return!!_0x1294a5&&(typeof _0x1294a5===_0x18f0c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1294a5===_0x18f0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1294a5[_0x18f0c0([0x74,0x68,0x65,0x6e])]===_0x18f0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1294a5[_0x18f0c0([0x63,0x61,0x74,0x63,0x68])]===_0x18f0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e43be(_0x51245d){_0x20fbd0(_0x51245d)[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x32ee64=>{if(!_0x32ee64||_0x32ee64[_0x18f0c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18f0c0([0x6f,0x6b]))return _0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ed467(_0x53a618(_0x4d47e8+_0x520f45))!=_0x32ee64[_0x18f0c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18f0c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x4df018=>(_0x2a8d74(),_0x4df018),()=>{const _0x3f4baf=_0x470789();return null==_0x3f4baf?(_0x2a8d74(),_0x18f0c0([0x56,0x61,0x6c,0x69,0x64])):_0x18f0c0(_0xa276f8-_0x3f4baf>(0x16a8f6f8^_0x100f8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0xf3dd3e)[_0x18f0c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf3dd3e(_0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x251ebb=0x32929c78^_0x100f8a;function _0x2a8d74(){const _0x15834c=_0x18f0c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ed467(_0x53a618(_0x31f44f)),_0x4bbe30=_0xb33b23(_0x1ed467(window[_0x18f0c0([0x4d,0x61,0x74,0x68])][_0x18f0c0([0x63,0x65,0x69,0x6c])](_0xa276f8/_0x251ebb)));window[_0x18f0c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18f0c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15834c,_0x4bbe30);}function _0x470789(){const _0x2aa096=_0x18f0c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ed467(_0x53a618(_0x31f44f)),_0xd616f9=window[_0x18f0c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18f0c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2aa096);return _0xd616f9?window[_0x18f0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb33b23(_0xd616f9),0x10)*_0x251ebb:null;}function _0x20fbd0(_0x12fb61){return new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18f66a,_0x54553c)=>{_0x12fb61[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x18f66a,_0x54553c),window[_0x18f0c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54553c,0x32a5a638^_0x100f8a);});}}_0x27b7a5[_0x18f0c0([0x6f,0x6e])](_0x18f0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf2ee9d,_0x13c1e9)=>{if(_0x13c1e9[0x0]!=_0x31f44f)return _0xf3dd3e(_0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13c1e9[0x1]={..._0x13c1e9[0x1],[_0x18f0c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d47e8};},{[_0x18f0c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18f0c0([0x68,0x69,0x67,0x68])}),_0x27b7a5[_0x18f0c0([0x6f,0x6e])](_0x18f0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14fac3=>{_0x2b0e32(_0x14fac3[_0x18f0c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x209248=!0x0,_0x2e43be(_0x14fac3[_0x18f0c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18f0c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18f0c0([0x6c,0x6f,0x77])}),_0x1456c2[_0x18f0c0([0x74,0x68,0x65,0x6e])](()=>{_0x209248||_0xf3dd3e(_0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8127a7(){return _0x27b7a5[_0x18f0c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18f0c0([0x76,0x69,0x65,0x77])][_0x18f0c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18f0c0([0x61,0x75,0x74,0x6f]);}function _0xd0735f(){_0x27b7a5[_0x18f0c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18f0c0([0x76,0x69,0x65,0x77])][_0x18f0c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18f0c0([0x61,0x75,0x74,0x6f]);}}function _0x2b64cc(_0xe5b55d){const _0x4f4651=[new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218814=>setTimeout(_0x218814,0x32ad4c34^_0x100f8a)),_0x1456c2[_0x18f0c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a9fd=>{const _0x25ea4e=0x32a472ff^_0x100f8a,_0x2aaee4=_0x276a3e[_0x18f0c0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x14af2d(){_0x2aaee4[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x25ea4e&&_0x15a9fd();}_0x14af2d(),_0x2aaee4[_0x18f0c0([0x6f,0x6e])](_0x18f0c0([0x61,0x64,0x64]),_0x14af2d);})),new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d1c52=>{function _0x1bc81e(){for(const _0x52c79a in window)if(window[_0x18f0c0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x18f0c0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x52c79a))&&window[_0x52c79a]==_0x239d0a)return _0x2d1c52();_0x27b7a5[_0x18f0c0([0x73,0x74,0x61,0x74,0x65])]!=_0x18f0c0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x18f0c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bc81e,0x32a46170^_0x100f8a);}_0x34ef1b(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1bc81e();})];return window[_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18f0c0([0x72,0x61,0x63,0x65])](_0x4f4651)[_0x18f0c0([0x74,0x68,0x65,0x6e])](()=>_0xe5b55d);}async function _0x54ac9f(){if(await _0x1456c2,_0x34ef1b(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3aa8ed=_0x276a3e[_0x18f0c0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3df9ed=_0x276a3e[_0x18f0c0([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])](_0x3aa8ed[_0x18f0c0([0x69,0x64])]),_0x4cc9e7=_0x4d3b77(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4cc9e7[_0x18f0c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3aa8ed['id'],_0x3df9ed?_0x3df9ed['id']:null,!0x0),_0x4cc9e7[_0x18f0c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x18f0c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4cc9e7[_0x18f0c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4cc9e7[_0x18f0c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x78dfd4,void(_0x4cc9e7[_0x18f0c0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x78dfd4);}if(_0x34ef1b(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2d111d=_0x4d3b77(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2d111d[_0x18f0c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x18f0c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2d111d[_0x18f0c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2d111d[_0x18f0c0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x78dfd4,_0x2d111d[_0x18f0c0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x78dfd4;}_0x27b7a5[_0x18f0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x18f0c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x78dfd4,_0x27b7a5[_0x18f0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x18f0c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x78dfd4,_0x27b7a5[_0x18f0c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18f0c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50c410(){return _0x34ef1b(_0x18f0c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d3b77(_0x18f0c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x18f0c0([0x73,0x74,0x61,0x74,0x65])]==_0x18f0c0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1440d3(){return _0x34ef1b(_0x18f0c0([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 _0x87bf7f(){return _0x34ef1b(_0x18f0c0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1dcd86(_0x3aa704){const _0x295906=_0x21139b();_0x27b7a5[_0x295906]=_0x18f0c0([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])+_0x3aa704,_0x3aa704[_0x18f0c0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x18f0c0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x21139b()]=_0x239d0a),_0x3aa704!=_0x18f0c0([0x56,0x61,0x6c,0x69,0x64])&&_0x54ac9f();}function _0x21139b(){const _0x373732=window[_0x18f0c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18f0c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18f0c0([0x6e,0x6f,0x77])]())[_0x18f0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18f0c0([0x2e]),'');let _0x45df03=_0x18f0c0([0x7a]);for(let _0xb0137d=0x0;_0xb0137d<_0x373732[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb0137d+=0x2){let _0x55136f=window[_0x18f0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x373732[_0x18f0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb0137d,_0xb0137d+0x2));_0x55136f>=_0x4a6b1b[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55136f-=_0x4a6b1b[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45df03+=_0x4a6b1b[_0x55136f];}return _0x45df03;}function _0x3c922f(){const _0x3b58d4=_0x4ffb82[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])](_0x18f0c0([0x2e]));if(0x3!=_0x3b58d4[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58da87(_0x3b58d4[0x1]);function _0x58da87(_0x34b567){const _0x581860=_0x510fb1(_0x34b567);return _0x581860&&_0x3aee0c()?_0x581860:null;function _0x3aee0c(){const _0x1a6d78=_0x581860[_0x18f0c0([0x6a,0x74,0x69])],_0x3a535c=window[_0x18f0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a6d78[_0x18f0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6d78[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27754e={..._0x581860,[_0x18f0c0([0x6a,0x74,0x69])]:_0x1a6d78[_0x18f0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a6d78[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27754e[_0x18f0c0([0x76,0x63])],_0x53a618(_0x27754e)==_0x3a535c;}}}async function _0x103f12(){let _0x2c9399=!0x0;try{const _0x1a36c1=_0x4ffb82[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])](_0x18f0c0([0x2e])),[_0x2098a4,_0x29eb87,_0x3d1801]=_0x1a36c1;return _0x4124fe(_0x2098a4),await _0x54f69d(_0x2098a4,_0x29eb87,_0x3d1801),_0x2c9399;}catch(_0x43a549){return!0x1;}function _0x4124fe(_0x3ed1bb){const _0x3c7e80=_0x510fb1(_0x3ed1bb);_0x3c7e80&&_0x3c7e80[_0x18f0c0([0x61,0x6c,0x67])]==_0x18f0c0([0x45,0x53,0x32,0x35,0x36])||(_0x2c9399=!0x1);}async function _0x54f69d(_0x2389a6,_0x4f3436,_0x3745a0){const _0x1e8e4d=window[_0x18f0c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18f0c0([0x66,0x72,0x6f,0x6d])](_0xed620(_0x3745a0),_0x564a99=>_0x564a99[_0x18f0c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b0b71=new window[(_0x18f0c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18f0c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2389a6+_0x18f0c0([0x2e])+_0x4f3436),_0x330232=window[_0x18f0c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18f0c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x330232)return;const _0x5a9d56=await _0x330232[_0x18f0c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18f0c0([0x6a,0x77,0x6b]),_0x3dab30,{[_0x18f0c0([0x6e,0x61,0x6d,0x65])]:_0x18f0c0([0x45,0x43,0x44,0x53,0x41]),[_0x18f0c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18f0c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18f0c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x330232[_0x18f0c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18f0c0([0x6e,0x61,0x6d,0x65])]:_0x18f0c0([0x45,0x43,0x44,0x53,0x41]),[_0x18f0c0([0x68,0x61,0x73,0x68])]:{[_0x18f0c0([0x6e,0x61,0x6d,0x65])]:_0x18f0c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a9d56,_0x1e8e4d,_0x5b0b71)||(_0x2c9399=!0x1);}}function _0x510fb1(_0x479efd){return _0x479efd[_0x18f0c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18f0c0([0x65,0x79]))?JSON[_0x18f0c0([0x70,0x61,0x72,0x73,0x65])](_0xed620(_0x479efd)):null;}function _0xed620(_0x292305){return window[_0x18f0c0([0x61,0x74,0x6f,0x62])](_0x292305[_0x18f0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18f0c0([0x2b]))[_0x18f0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18f0c0([0x2f])));}function _0x53a618(_0x550003){let _0x12ca5f=0x1505;function _0x397fab(_0x27b176){for(let _0x40ffdd=0x0;_0x40ffdd<_0x27b176[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40ffdd++){const _0x3eb8ab=_0x27b176[_0x18f0c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40ffdd);_0x12ca5f=(_0x12ca5f<<0x5)+_0x12ca5f+_0x3eb8ab,_0x12ca5f&=_0x12ca5f;}}function _0x5d4eda(_0x47775e){Array[_0x18f0c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47775e)?_0x47775e[_0x18f0c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d4eda):_0x47775e&&typeof _0x47775e==_0x18f0c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18f0c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47775e)[_0x18f0c0([0x73,0x6f,0x72,0x74])]()[_0x18f0c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d61c0,_0x1c2479])=>{_0x397fab(_0x1d61c0),_0x5d4eda(_0x1c2479);}):_0x397fab(window[_0x18f0c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47775e));}return _0x5d4eda(_0x550003),_0x12ca5f>>>0x0;}function _0x1ed467(_0x1368d2){return _0x1368d2[_0x18f0c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18f0c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18f0c0([0x30]));}function _0xb33b23(_0x10ba89){return _0x10ba89[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18f0c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18f0c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x34ef1b(_0xfec14e){return _0x27b7a5[_0x18f0c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x18f0c0([0x68,0x61,0x73])](_0xfec14e);}function _0x4d3b77(_0x20d6a7){return _0x27b7a5[_0x18f0c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x18f0c0([0x67,0x65,0x74])](_0x20d6a7);}function _0x78dfd4(){}function _0x18f0c0(_0x284c12){return _0x284c12['map'](_0x1ab594=>String['fromCharCode'](_0x1ab594))['join']('');}_0x1dcd86(await _0x3f7055());}(this);}['createRevision'](_0x30787d){const _0x1f5355=this['editor']['plugins']['get']('Users');return new a({'id':_0x30787d['id'],'name':_0x30787d['name'],'creator':_0x30787d['creatorId']?_0x1f5355['getUser'](_0x30787d['creatorId']):null,'diffData':_0x30787d['diffData']||_0x30787d['data'],'authors':_0x30787d['authorsIds']['map'](_0x1a1884=>_0x1f5355['getUser'](_0x1a1884)),'createdAt':new Date(_0x30787d['createdAt']),'attributes':_0x30787d['attributes'],'fromVersion':_0x30787d['fromVersion'],'toVersion':_0x30787d['toVersion']});}['addRevision'](_0x19780a,_0x4e47e0=0x0){this['_revisions']['add'](_0x19780a,_0x4e47e0);}['getRevision'](_0x1ed190){return this['_revisions']['get'](_0x1ed190);}['getRevisions'](_0x24d7cb={'toJSON':!0x1}){const _0x1af0de=Array['from'](this['_revisions']);return _0x1af0de['reverse'](),_0x24d7cb['toJSON']?_0x1af0de['map'](_0xd699f1=>_0xd699f1['toJSON']()):_0x1af0de;}['getIndex'](_0x3a0af4){return this['_revisions']['getIndex'](_0x3a0af4);}['getEarlierVisibleRevision'](_0x15620c){const [,_0x58efe3]=this['getRevisionsIterator'](_0x15620c,{'direction':'earlier'});return _0x58efe3;}['getLaterVisibleRevision'](_0x4e2dc0){const [,_0x439981]=this['getRevisionsIterator'](_0x4e2dc0,{'direction':'later'});return _0x439981;}['getRevisionsInDiff'](_0x1f27c3){const _0x5ea480=[];for(const _0x59301f of this['getRevisionsIterator'](_0x1f27c3['newRevisionId']))if(_0x5ea480['push'](_0x59301f),_0x59301f['id']===_0x1f27c3['oldRevisionId'])break;return _0x5ea480;}*['getRevisionsIterator'](_0x1cd9db,{direction:_0x47fc1a='earlier',filter:_0x37be88=()=>!0x0}={}){const _0x113a48='earlier'===_0x47fc1a?0x1:-0x1;let _0x7e40a4=this['_revisions']['get'](_0x1cd9db),_0x30f05c=this['getIndex'](_0x7e40a4);for(yield _0x7e40a4;_0x7e40a4;){if(_0x30f05c+=_0x113a48,_0x7e40a4=this['getRevision'](_0x30f05c),!_0x7e40a4)return;_0x37be88(_0x7e40a4)&&(yield _0x7e40a4);}}}function R(_0x77f5a,_0x4777f3,_0x4fe3fb){const t=_0x77f5a['t'];switch(_0x4777f3){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'},_0x4fe3fb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4fe3fb);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 C={'c':_0x4bf35c,'a':_0x3e2abd,'e':_0x4b8dad,'r':_0x5416a7,'u':_0x2dea23};class l extends _0x212b78{['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[_0x5f0bf6,j,_0x3b4d5a];}constructor(_0x562042){super(_0x562042),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3f6c00=_0x34c6ad();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3f6c00},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 _0x43c164=this['repository']['getRevision'](0x0),_0x8362ea=_0x43c164&&null===_0x43c164['creator']?_0x43c164:null;if(this['_continueCurrentRevision']=!!_0x8362ea&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x47a835=this['_source']['getCurrentRevisionId'](),_0x299b24=this['repository']['getRevision'](_0x47a835);if(_0x299b24)this['_startingVersion']=_0x299b24['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x49f908=this['_source']['history']['_operations']['find'](_0x4c5fd0=>!_0x4c5fd0['_isInit']),_0x5e8093=_0x49f908?_0x49f908['baseVersion']:this['_source']['history']['version'];_0x43c164?(_0x43c164['toVersion']<_0x5e8093&&_0x43c164['_update']({'toVersion':_0x5e8093}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x8362ea['id'],this['_startingVersion']=_0x8362ea['fromVersion']):(this['_startingVersion']=_0x43c164['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5e8093,this['_continueCurrentRevision']=!0x1);}}else _0x8362ea&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x8362ea['toVersion'],this['editor']['model']['document']['history']['version']),_0x8362ea['fromVersion']===_0x8362ea['toVersion']?(0x0!==_0x8362ea['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x8362ea['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x8362ea['id'],this['_startingVersion']=_0x8362ea['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',_0x52e4db=>!_0x52e4db),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5701fc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a81bb;for(const _0x5244f7 in _0x5701fc){const _0x44b516=_0x5244f7,_0x86348=_0x5701fc[_0x44b516];if('revisionHistoryLicenseKeyValid'==_0x86348||'revisionHistoryLicenseKeyInvalid'==_0x86348||'revisionHistoryLicenseKeyExpired'==_0x86348||'revisionHistoryLicenseKeyDomainLimit'==_0x86348||'revisionHistoryLicenseKeyNotAllowed'==_0x86348||'revisionHistoryLicenseKeyEvaluationLimit'==_0x86348||'revisionHistoryLicenseKeyTrialLimit'==_0x86348||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x86348||'revisionHistoryLicenseKeyUsageLimit'==_0x86348){delete _0x5701fc[_0x44b516],_0x4a81bb=_0x86348,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4a81bb&&_0x5701fc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4a81bb&&_0x5701fc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4a81bb&&_0x5701fc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3ddbf2=this['repository']['getRevision'](0x0),_0x22e669=await this['getRevisionDocumentData'](_0x3ddbf2),_0x45c910=await this['getRevisionRootsAttributes'](_0x3ddbf2);this['_replaceEditorDataWithRevisionData'](_0x22e669,_0x45c910);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x17d6b3){this['_source']=_0x17d6b3;}async['update'](){const _0x170241=await this['_source']['getLatestVersion']();if(_0x170241>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4d9699=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x170241});_0x4d9699['authors']=_0x4d9699['authorsIds']['map'](_0x2203b9=>this['editor']['plugins']['get']('Users')['getUser'](_0x2203b9)),this['currentRevision']['_update'](_0x4d9699);}}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'](_0x98c227={},_0x31f332=null){const _0x240c77=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31f332>this['currentRevision']['toVersion']&&(_0x31f332=null),null===_0x31f332&&(_0x31f332=await this['_source']['getLatestVersion']());const _0x28e4cd=this['_getFromVersion'](_0x31f332),_0x34b223=this['buildRevisionData']({'from':_0x28e4cd,'to':_0x31f332});if(this['currentRevision']['toVersion']<_0x31f332){const _0x381f90=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x31f332,'to':_0x31f332});_0x381f90['authors']=[],_0x381f90['authorsIds']=[],_0x381f90['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x381f90,!0x0),delete _0x381f90['authors'],_0x240c77['push'](_0x381f90);}_0x98c227['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x98c227['name']=_0x98c227['name']||null,_0x98c227['id']=_0x98c227['id']||_0x34c6ad(),_0x98c227={..._0x98c227,..._0x34b223};const _0x2493ae=this['addRevisionData'](_0x98c227);_0x240c77['push'](_0x98c227);const _0x22290f=this['repository']['getIndex'](_0x2493ae);if(0x0!==_0x22290f){const _0x43a00e=this['repository']['getRevision'](_0x22290f-0x1);if(_0x43a00e['fromVersion']!==_0x31f332){const _0x42bcdf=this['_revisionDataBuilder']['getData'](_0x31f332,_0x43a00e['toVersion']),_0x3bbb1c={'id':_0x43a00e['id'],'diffData':_0x42bcdf['diffData'],'authorsIds':_0x42bcdf['authorsIds'],'authors':_0x42bcdf['authorsIds']['map'](_0x53186e=>this['editor']['plugins']['get']('Users')['getUser'](_0x53186e)),'fromVersion':_0x31f332};_0x43a00e===this['currentRevision']&&(_0x3bbb1c['createdAt']=new Date(_0x98c227['createdAt']['getTime']()+0xa)),_0x43a00e['_update'](_0x3bbb1c,!0x0),delete _0x3bbb1c['authors'],_0x240c77['push'](_0x3bbb1c);}}if(this['adapter']){for(const _0x19e670 of _0x240c77)this['_bufferUpdate'](_0x19e670['id'],_0x19e670,!0x0);this['sendBufferedUpdates']();}return _0x2493ae;}['addRevisionData'](_0x4b2cea){const _0x1686ff=this['repository']['createRevision'](_0x4b2cea);return this['adapter']&&_0x1686ff['on']('_update',(_0x3f24f6,_0x2ad8a9,_0x467cf4)=>{_0x467cf4||(this['_bufferUpdate'](_0x2ad8a9['id'],_0x2ad8a9,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1686ff,this['_findInsertionIndex'](_0x1686ff)),_0x1686ff;}async['getRevisionDocumentData'](_0x4c2e30){await this['_loadRevisionData'](_0x4c2e30);const _0x1ca1b3={};for(const _0x334156 in _0x4c2e30['diffData']){if(_0x4c2e30['diffData'][_0x334156]['attachChange']&&!_0x4c2e30['diffData'][_0x334156]['attachChange']['isAttached'])continue;const _0x289001=this['_removeRevisionMarkers'](JSON['parse'](_0x4c2e30['diffData'][_0x334156]['insertions'])),_0x219678=this['editor']['editing']['view']['document'],_0x1a3707=new _0x3d27d9(_0x219678,_0x289001['map'](_0x3c47e4=>V(_0x3c47e4,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1ca1b3[_0x334156]=this['editor']['data']['processor']['toData'](_0x1a3707),this['editor']['data']['processor']['useFillerType']('default');}return _0x1ca1b3;}async['getRevisionRootsAttributes'](_0x169c17){await this['_loadRevisionData'](_0x169c17);const _0x474348={};for(const _0x41e7ff in _0x169c17['diffData'])_0x169c17['diffData'][_0x41e7ff]['attachChange']&&!_0x169c17['diffData'][_0x41e7ff]['attachChange']['isAttached']||(_0x474348[_0x41e7ff]=_0x169c17['diffData'][_0x41e7ff]['attributesAfter']||{});return _0x474348;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2d5ee4=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3be0eb=0x0;_0x3be0eb<_0x2d5ee4['length'];_0x3be0eb++){const _0x5ad4c1=_0x2d5ee4[_0x3be0eb];let _0x5403a6=!0x1;for(const _0x481bdc of Object['keys'](_0x5ad4c1))void 0x0===_0x5ad4c1[_0x481bdc]?delete _0x5ad4c1[_0x481bdc]:'id'!==_0x481bdc&&(_0x5403a6=!0x0);_0x5403a6||(_0x2d5ee4[_0x3be0eb]=null);}if(_0x2d5ee4=_0x2d5ee4['filter'](_0x47154e=>null!==_0x47154e),!_0x2d5ee4['length'])return;for(let _0x51f194=0x0;_0x51f194<_0x2d5ee4['length'];_0x51f194++){const _0x4f5fc3=_0x2d5ee4[_0x51f194];void 0x0!==_0x4f5fc3['fromVersion']&&void 0x0===_0x4f5fc3['toVersion']&&(_0x4f5fc3['toVersion']=this['repository']['getRevision'](_0x4f5fc3['id'])['toVersion']),void 0x0!==_0x4f5fc3['toVersion']&&void 0x0===_0x4f5fc3['fromVersion']&&(_0x4f5fc3['fromVersion']=this['repository']['getRevision'](_0x4f5fc3['id'])['fromVersion']);}const _0x40d4fb=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2d5ee4,_0x40d4fb)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x38a1cd=>{if(_0x38a1cd){for(const _0x552a0d of _0x38a1cd)this['setRevisionData']({'id':_0x552a0d['id'],'createdAt':_0x552a0d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1cc539,_0x5cbe45){let _0x2212f5=this['editor']['config']['get']('initialData'),_0x44e149=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2212f5){_0x2212f5={};for(const _0x44d6cc of this['editor']['model']['document']['getRootNames']())_0x2212f5[_0x44d6cc]='';}if('string'==typeof _0x2212f5&&(_0x2212f5={'main':_0x2212f5}),void 0x0===_0x44e149){_0x44e149={};for(const _0x31fb4f of this['editor']['model']['document']['getRootNames']())_0x44e149[_0x31fb4f]={};}let _0x27e0f1=!0x1;const _0xa975a8=Object['keys'](_0x2212f5),_0x51fb3d=Object['keys'](_0x1cc539);for(const _0x2850e2 of _0xa975a8){if(_0x2212f5[_0x2850e2]!==_0x1cc539[_0x2850e2]&&''!==_0x2212f5[_0x2850e2]['trim']()){_0x27e0f1=!0x0;break;}if(!_0x14c2d4(_0x44e149[_0x2850e2],_0x5cbe45[_0x2850e2])&&Object['keys'](_0x44e149[_0x2850e2])['length']>0x0){_0x27e0f1=!0x0;break;}}_0x27e0f1||(_0x27e0f1=_0x51fb3d['some'](_0x27c706=>!this['editor']['model']['document']['getRoot'](_0x27c706))),_0x27e0f1&&_0x423101('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2212f5,'editorRootsAttributes':_0x44e149,'revisionData':_0x1cc539,'revisionRootsAttributes':_0x5cbe45}),this['editor']['config']['set']('initialData',_0x1cc539),this['editor']['config']['set']('rootsAttributes',_0x5cbe45);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xa8f17d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xa8f17d['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x163377){const _0x4aedfb=this['repository']['getRevisions']();_0x4aedfb['reverse']();let _0xe08a7f=0x0;for(;_0xe08a7f<_0x4aedfb['length'];){const _0xe5fa30=_0x4aedfb[_0xe08a7f];if(_0xe5fa30===this['currentRevision']){_0xe08a7f++;continue;}if(_0xe5fa30['id']===this['_initialRevisionId'])break;const _0x267246=_0x163377['toVersion']-_0xe5fa30['toVersion']||_0x163377['fromVersion']-_0xe5fa30['fromVersion'];if(_0x267246>0x0)break;if(_0x267246<0x0)_0xe08a7f++;else{if(!_0x163377['creator']&&_0xe5fa30['creator'])break;if(_0xe5fa30['creator']||!_0x163377['creator']){if(_0x163377['createdAt']>_0xe5fa30['createdAt'])break;_0xe08a7f++;}else _0xe08a7f++;}}return _0xe08a7f;}['setRevisionData'](_0x3abdca){const _0x198912=this['repository']['getRevision'](_0x3abdca['id']);if(_0x3abdca['createdAt']&&(_0x3abdca['createdAt']=new Date(_0x3abdca['createdAt'])),_0x3abdca['authorsIds']){const _0x4ee645=this['editor']['plugins']['get']('Users');_0x3abdca['authors']=_0x3abdca['authorsIds']['map'](_0xbfa02d=>_0x4ee645['getUser'](_0xbfa02d));}_0x198912['_update'](_0x3abdca,!0x0);}['buildRevisionData']({revision:_0x467bf0=null,from:_0x4362bc=null,to:_0x2d21a6=null}){_0x4362bc=null!==_0x4362bc?_0x4362bc:_0x467bf0['fromVersion'],_0x2d21a6=null!==_0x2d21a6?_0x2d21a6:_0x467bf0['toVersion'];const _0x112582=this['_revisionDataBuilder']['getData'](_0x4362bc,_0x2d21a6),_0x209e35={'diffData':_0x112582['diffData'],'authorsIds':_0x112582['authorsIds'],'fromVersion':_0x4362bc,'toVersion':_0x2d21a6};if(!_0x467bf0||_0x2d21a6!==_0x467bf0['toVersion']){const _0x2e5454=_0x2d21a6-0x1,_0x3664bb=this['_source']['history']['getOperation'](_0x2e5454);_0x209e35['createdAt']=_0x3664bb&&_0x3664bb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4362bc===this['_loadedStateData']['fromVersion']){for(const _0x51c242 of this['_loadedStateData']['authors'])_0x209e35['authorsIds']['includes'](_0x51c242['id'])||_0x209e35['authorsIds']['push'](_0x51c242['id']);}return _0x209e35;}['_loadRevisionData'](_0x4288cf){if(!_0x4288cf||_0x4288cf['diffData'])return Promise['resolve']();{const _0x4dc27f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4dc27f,'revisionId':_0x4288cf['id']})['then'](_0x460cdf=>{_0x4288cf['diffData']=_0x460cdf['diffData'];});}}['_bufferUpdate'](_0x23332b,_0x3a5c31,_0x223ceb){if(this['_bufferedUpdates']['has'](_0x23332b)){const _0x2129ee=this['_bufferedUpdates']['get'](_0x23332b);_0x3a5c31=_0x223ceb?{..._0x2129ee,..._0x3a5c31}:{..._0x3a5c31,..._0x2129ee};}this['_bufferedUpdates']['set'](_0x23332b,_0x3a5c31);}['_getFromVersion'](_0x21fba7){const _0x1b412e=this['repository']['getRevisions']();_0x1b412e['reverse'](),_0x1b412e['shift']();const _0x5cba26=_0x1b412e['find'](_0x4f8dd8=>_0x4f8dd8['toVersion']<=_0x21fba7)['toVersion'];return _0x5cba26<this['_startingVersion']?this['_startingVersion']:_0x5cba26;}['_createInitialRevision'](_0x144d20){const _0x37f095=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x37f095)this['_initialRevisionId']=_0x37f095['id'];else{const _0x4baddf=!this['editor']['model']['document']['roots']['find'](_0x1f94cf=>this['editor']['model']['hasContent'](_0x1f94cf)),_0x24eafe=this['editor']['plugins']['get']('Users')['me']['id'],_0x34b568=R(this['editor']['locale'],_0x4baddf?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x144d20,'to':_0x144d20,'id':this['_initialRevisionId'],'name':_0x34b568,'creatorId':_0x24eafe});}}['_createCurrentRevision'](_0x4ffae8){const _0x161134=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x161134),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4ffae8,'to':_0x4ffae8,'id':_0x161134,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1da9d5,from:_0xb26d70,to:_0x104f9e,creatorId:_0x3faba3,id:_0x53105b}){const _0x2038f8=this['buildRevisionData']({'from':_0xb26d70,'to':_0x104f9e});_0x2038f8['name']=_0x1da9d5,_0x2038f8['creatorId']=_0x3faba3,_0x2038f8['id']=_0x53105b;const _0x5728b4=this['addRevisionData'](_0x2038f8);return this['adapter']&&this['_bufferUpdate'](_0x2038f8['id'],_0x2038f8,!0x0),_0x5728b4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x577905){return(_0x577905=_0x577905['filter'](_0x316528=>!_0x316528['name']||'revision-start'!==_0x316528['name']&&'revision-end'!==_0x316528['name']))['forEach'](_0x22670f=>{'string'!=typeof _0x22670f&&(_0x22670f['children']=this['_removeRevisionMarkers'](_0x22670f['children']),_0x22670f['attributes']=_0x22670f['attributes']['filter'](_0x1de2fc=>!_0x1de2fc[0x0]['startsWith']('data-revision-')));}),_0x577905;}}function V(_0x1c01f1,_0x576a0f){const _0x12df98=_0x576a0f['editing']['view']['document'];if('string'==typeof _0x1c01f1)return new _0x3812af(_0x12df98,_0x1c01f1);{const _0x283f80=_0x1c01f1['children']['map'](_0x4b1c1c=>V(_0x4b1c1c,_0x576a0f));return new(C[_0x1c01f1['type']]||_0x27385a)(_0x12df98,_0x1c01f1['name'],_0x1c01f1['attributes'],_0x283f80);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x455391){this['editor']=_0x455391,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'](_0xb5094d){this['source']=_0xb5094d;const _0x513203=new Map(),_0x430c45=new Map(),_0x7e76de=this['editor']['model']['document']['roots']['map'](_0x43048f=>_0x43048f['rootName']);for(const _0x5df342 of _0x7e76de){const _0x360857=this['editor']['model']['document']['getRoot'](_0x5df342),_0x124589=F(_0x360857);_0x513203['set'](_0x5df342,_0x124589),_0x430c45['set'](_0x5df342,Object['fromEntries'](_0x360857['getAttributes']()));}const _0x5df8f7=Array['from'](this['editor']['model']['markers'])['map'](_0x1fcbb2=>[_0x1fcbb2['name'],_0x1fcbb2['getRange']()]),_0x2a3ea4=this['source']['version'];this['_saveMetaData'](_0x2a3ea4,_0x513203,_0x5df8f7,_0x430c45),this['_startingRevisionId']=this['_revisionId'];const _0x3b3b2d=new Map(),_0x41fd42=new Map();for(const _0x5dd7a7 of _0x7e76de){const _0x274912=B(_0x5dd7a7);_0x3b3b2d['set'](_0x5dd7a7,_0x274912),_0x41fd42['set'](_0x5dd7a7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3b3b2d,[],_0x41fd42);}['getData'](_0x287651,_0x5a80f9){if(this['_lastFrom']===_0x287651&&this['_lastTo']<=_0x5a80f9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5a80f9,!0x0);else{if(!this['_savedMetaData']['has'](_0x287651)){const _0x1ba0f8=this['_getPreviousFrom'](_0x287651);this['_calculateMetaData'](_0x1ba0f8,_0x287651,!0x1);}this['_calculateMetaData'](_0x287651,_0x5a80f9,!0x0);}return this['_lastFrom']=_0x287651,this['_lastTo']=_0x5a80f9,this['_getState']();}['loadState'](_0x236d7b){this['_reset'](),this['_lastFrom']=_0x236d7b['fromVersion'],this['_lastTo']=_0x236d7b['toVersion'];for(const _0x3127e1 in _0x236d7b['diffData']){const _0xb26f3f=_0x236d7b['diffData'][_0x3127e1]['attachChange'],_0x17b1ca=_0x315ac7(_0x236d7b['diffData'][_0x3127e1]['attributesBefore'])||{},_0x14dafa=this['_makeModelFromViewString'](_0x236d7b['diffData'][_0x3127e1]['deletions']);_0x14dafa['rootName']=_0x3127e1,_0x14dafa['_isAttached']=!_0xb26f3f||!_0xb26f3f['isAttached'],_0x14dafa['isAttached']=()=>_0x14dafa['_isAttached'],this['_baseRoots']['set'](_0x3127e1,_0x14dafa),this['_baseRootsAttributes']['set'](_0x3127e1,_0x17b1ca),_0xb26f3f&&this['_touchedRoots']['set'](_0x3127e1,_0xb26f3f);const _0x3bbc95=this['_makeIdsRoot'](_0x14dafa);this['_baseIdsRoots']['set'](_0x3127e1,_0x3bbc95);for(const [_0x45ca8d,_0x332a57]of _0x14dafa['markers']){if(!_0x45ca8d['startsWith']('revision:'))continue;const _0x29d723=_0x45ca8d['split'](':')[0x2];for(const _0x45f19e of _0x332a57['getWalker']({'singleCharacters':!0x0})){const _0x47fdad=this['_getVidAttributeName'](_0x45f19e),_0x3d3ba9='elementEnd'==_0x45f19e['type']?_0x45f19e['previousPosition']['path']['slice'](0x0,-0x1):_0x45f19e['previousPosition']['path'],_0x23fbd3=_0x3bbc95['getNodeByPath'](_0x3d3ba9)['getAttribute'](_0x47fdad);this['_touched']['set'](_0x23fbd3,{'userId':_0x29d723});}}}this['_startingRevisionId']=this['_revisionId'];const _0x18e5cd=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5e7de5=>!this['_touched']['has'](_0x5e7de5));let _0x25f5da=0x0;const _0x3ac4bc=new Map();for(const _0x50352a in _0x236d7b['diffData']){const _0x427477=_0x236d7b['diffData'][_0x50352a]['attachChange'],_0x388ea3=_0x315ac7(_0x236d7b['diffData'][_0x50352a]['attributesAfter'])||{},_0x5e62d5=this['_makeModelFromViewString'](_0x236d7b['diffData'][_0x50352a]['insertions']);_0x5e62d5['rootName']=_0x50352a,_0x5e62d5['_isAttached']=!_0x427477||_0x427477['isAttached'],_0x5e62d5['isAttached']=()=>_0x5e62d5['_isAttached'],this['_diffRoots']['set'](_0x50352a,_0x5e62d5),this['_diffRootsAttributes']['set'](_0x50352a,_0x388ea3);const _0x427d6d=this['_makeIdsRoot'](_0x5e62d5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x50352a,_0x427d6d),_0x3ac4bc['set'](_0x50352a,_0x5e62d5['isAttached']()?_0x388ea3:{});for(const [_0x1164b2,_0x2bcf35]of _0x5e62d5['markers']){if(!_0x1164b2['startsWith']('revision:'))continue;const _0x50e38b=_0x1164b2['split'](':')[0x2];for(const _0x4bc982 of _0x2bcf35['getWalker']({'singleCharacters':!0x0})){const _0x58a57c=this['_getVidAttributeName'](_0x4bc982),_0x492b52=this['_revisionId']++,_0x62449b='elementEnd'==_0x4bc982['type']?_0x4bc982['previousPosition']['path']['slice'](0x0,-0x1):_0x4bc982['previousPosition']['path'];_0x427d6d['getNodeByPath'](_0x62449b)['_setAttribute'](_0x58a57c,_0x492b52),this['_touched']['set'](_0x492b52,{'userId':_0x50e38b});}}for(const _0x5427dc of this['editor']['model']['createRangeIn'](_0x5e62d5)['getWalker']({'singleCharacters':!0x0})){const _0x3f0d0e=this['_getVidAttributeName'](_0x5427dc),_0x1e091a='elementEnd'==_0x5427dc['type']?_0x5427dc['previousPosition']['path']['slice'](0x0,-0x1):_0x5427dc['previousPosition']['path'],_0x247233=_0x427d6d['getNodeByPath'](_0x1e091a);_0x247233['getAttribute'](_0x3f0d0e)>0x0||_0x247233['_setAttribute'](_0x3f0d0e,_0x18e5cd[_0x25f5da++]);}for(const [_0x38d8aa,_0x59d17e]of _0x5e62d5['markers'])_0x38d8aa['startsWith']('revision:')||this['_markers']['set'](_0x38d8aa,_0x59d17e);}const _0x520d99=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x520d99),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x520d99,0x1));const _0x2b2482=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2b2482),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2b2482,0x1));const _0x272061=Array['from'](this['_diffRoots'])['map'](([_0x345d47,_0x53e954])=>[_0x345d47,F(_0x53e954)]);this['_saveMetaData'](this['_lastTo'],_0x272061,this['_markers'],_0x3ac4bc);}['_makeModelFromViewString'](_0x572073){const _0x1c2568=JSON['parse'](_0x572073),_0x3dd884=this['editor']['editing']['view']['document'],_0x4a965a=new _0x3d27d9(_0x3dd884,_0x1c2568['map'](_0x36b74c=>V(_0x36b74c,this['editor'])));return this['editor']['data']['toModel'](_0x4a965a);}['_saveMetaData'](_0x1bb0dc,_0x2ae81d,_0xa24b38,_0x5501b3){const _0x4b66d6=new Map(_0x2ae81d),_0x1942f8=new Map(_0x315ac7(_0x5501b3)),_0xc077a8=new Map();for(const [_0x1b1e43,_0x24ad88]of _0xa24b38)_0xc077a8['set'](_0x1b1e43,{'start':_0x24ad88['start']['clone'](),'end':_0x24ad88['end']['clone'](),'rootName':_0x24ad88['root']['rootName']});this['_savedMetaData']['set'](_0x1bb0dc,{'roots':_0x4b66d6,'markers':_0xc077a8,'rootsAttributes':_0x1942f8});}['_removeMetaData'](_0x952055){this['_savedMetaData']['delete'](_0x952055);}['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'](_0x1a2638,_0x573b82=null){let _0x2e7b84=null;_0x1a2638['is']('documentFragment')||(_0x2e7b84=new ft(_0x1a2638['name'],{'vid_start':null===_0x573b82?this['_revisionId']++:_0x573b82++}));const _0x4925e1=[];for(const _0x582f38 of _0x1a2638['getChildren']())if(_0x582f38['is']('element')){_0x4925e1['push'](this['_makeIdsRoot'](_0x582f38,_0x573b82));const _0x369fb1=_0x4925e1[_0x4925e1['length']-0x1];null!==_0x573b82&&(_0x573b82=_0x369fb1['is']('element','$text')?_0x369fb1['getAttribute']('vid')+0x1:_0x369fb1['getAttribute']('vid_end')+0x1);}else{for(let _0x5bc4a8=0x0;_0x5bc4a8<_0x582f38['offsetSize'];_0x5bc4a8++)_0x4925e1['push'](new ft('$text',{'vid':null===_0x573b82?this['_revisionId']++:_0x573b82++}));}if(_0x1a2638['is']('documentFragment')){const _0x3249b8=B(_0x1a2638['rootName']);return _0x3249b8['_insertChild'](0x0,_0x4925e1),_0x3249b8;}return _0x2e7b84['_setAttribute']('vid_end',null===_0x573b82?this['_revisionId']++:_0x573b82++),_0x2e7b84['_insertChild'](0x0,_0x4925e1),_0x2e7b84;}['_calculateMetaData'](_0x29f0b6,_0x44fe90,_0x1331f9){this['_reset']();const {roots:_0x5ba99b,markers:_0x4ddf40,rootsAttributes:_0xc5a253}=this['_savedMetaData']['get'](_0x29f0b6);this['_baseRoots']=new Map(_0x5ba99b),this['_baseRootsAttributes']=new Map(_0x315ac7(_0xc5a253));for(const [_0x1bc082,_0x304d54]of this['_baseRoots'])if('$graveyard'!==_0x1bc082&&(this['_diffRoots']['set'](_0x1bc082,F(_0x304d54)),this['_diffRootsAttributes']=new Map(_0x315ac7(_0xc5a253)),_0x1331f9)){const _0x35f1f8=this['_revisionId'];this['_idsRoots']['set'](_0x1bc082,this['_makeIdsRoot'](_0x304d54)),this['_baseIdsRoots']['set'](_0x1bc082,this['_makeIdsRoot'](_0x304d54,_0x35f1f8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1331f9&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x37c579,_0x3cb1a5]of _0x4ddf40){const _0xbb54d7=this['_baseRoots']['get'](_0x3cb1a5['rootName']),_0x5580ec=this['_diffRoots']['get'](_0x3cb1a5['rootName']),_0x516577=new vt(this['_fixPosition'](_0x3cb1a5['start'],_0xbb54d7),this['_fixPosition'](_0x3cb1a5['end'],_0xbb54d7)),_0x496f2=this['_fixRange'](_0x516577,_0x5580ec);_0xbb54d7['markers']['set'](_0x37c579,_0x516577),this['_markers']['set'](_0x37c579,_0x496f2);}this['_applyOperations'](_0x29f0b6,_0x44fe90,_0x1331f9);}['_applyOperations'](_0x4cc399,_0x5b2014,_0x4a78d3){for(const _0x4f1df6 of this['source']['getOperations'](_0x4cc399,_0x5b2014))this['_handleOperation'](_0x4f1df6,_0x4a78d3);for(const _0x35f1b7 of this['_diffRoots']['values']())_0x35f1b7['markers']['clear']();for(const [_0x226e4f,_0x5cf395]of this['_markers']){this['_diffRoots']['get'](_0x5cf395['root']['rootName'])['markers']['set'](_0x226e4f,_0x5cf395['clone']());}const _0x11e1b7=new Map(),_0xf673df=new Map();for(const [_0x494aa6,_0x21b1f0]of this['_diffRoots'])_0x11e1b7['set'](_0x494aa6,F(_0x21b1f0)),_0xf673df['set'](_0x494aa6,this['_diffRootsAttributes']['get'](_0x494aa6));this['_saveMetaData'](_0x5b2014,_0x11e1b7,this['_markers'],_0xf673df);}['_getPreviousFrom'](_0x5863d1){const _0x39de26=Array['from'](this['_savedMetaData']['keys']());_0x39de26['sort']((_0x49fa7e,_0x58eacf)=>_0x49fa7e-_0x58eacf),_0x39de26['reverse']();for(const _0x3bbd6b of _0x39de26)if(_0x3bbd6b<_0x5863d1)return _0x3bbd6b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2ec56d,_0x2a5e16){const _0xb6e940=Array['from'](_0x2a5e16['markers'])['map'](([_0x18025f,_0x58efe7])=>[_0x18025f,this['_fixRange'](_0x58efe7,_0x2ec56d)]);_0x2ec56d['markers']=new Map(_0xb6e940);}['_transformMarkers'](_0x146fbd){for(const _0x59a339 of this['_markers']['values']()){const _0xc0994a=_0x59a339['getTransformedByOperation'](_0x146fbd),_0x1fd396=vt['_createFromRanges'](_0xc0994a);_0x59a339['start']=_0x1fd396['start'],_0x59a339['end']=_0x1fd396['end'];}}['_handleOperation'](_0x3037a8,_0x5b1a3f){if('addRoot'!=_0x3037a8['type']&&'detachRoot'!=_0x3037a8['type']){if('insert'==_0x3037a8['type']){const _0x2cb70d=_0x3037a8['position']['root']['rootName'];this['_diffRoots']['has'](_0x2cb70d)||(this['_diffRoots']['set'](_0x2cb70d,B(_0x2cb70d,!0x0)),this['_diffRootsAttributes']['set'](_0x2cb70d,{}),_0x5b1a3f&&this['_idsRoots']['set'](_0x2cb70d,B(_0x2cb70d,!0x0)));}else{if('addRootAttribute'==_0x3037a8['type']||'removeRootAttribute'==_0x3037a8['type']||'changeRootAttribute'==_0x3037a8['type'])return void this['_handleRootAttributeOperation'](_0x3037a8);'marker'==_0x3037a8['type']&&this['_handleMarkerOperation'](_0x3037a8);}if('marker'!==_0x3037a8['type']){const _0x3f61f7=this['_cloneOperation'](_0x3037a8,this['_diffRoots']);_0x3f61f7['_execute'](),this['_transformMarkers'](_0x3f61f7);}if(_0x5b1a3f)switch(_0x3037a8['type']){case'insert':this['_handleInsertOperation'](_0x3037a8);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3037a8);break;case'merge':this['_handleMergeOperation'](_0x3037a8);break;case'split':this['_handleSplitOperation'](_0x3037a8);}}else this['_handleRootOperation'](_0x3037a8,_0x5b1a3f);}['_cloneOperation'](_0x332d09,_0x34e2c1){const _0x582781=_0x332d09['clone']();return _0x582781['_authorId']=_0x332d09['_authorId'],this['_fixOperation'](_0x582781,_0x34e2c1),_0x582781;}['_getBaseVids'](_0x1937a1){return _0x1937a1['map'](_0x52f7a3=>{const _0x111a66=this['_getVidAttributeName'](_0x52f7a3);return Number(_0x52f7a3['item']['getAttribute'](_0x111a66));});}['_generateTape'](_0x4677b0,_0x38b8e9){if(_0x4677b0['is']('element','$text'))_0x38b8e9['push']({'item':_0x4677b0,'type':'text'});else{_0x4677b0['is']('element')&&_0x38b8e9['push']({'item':_0x4677b0,'type':'elementStart'});for(const _0x299e97 of _0x4677b0['getChildren']())this['_generateTape'](_0x299e97,_0x38b8e9);_0x4677b0['is']('element')&&_0x38b8e9['push']({'item':_0x4677b0,'type':'elementEnd'});}return _0x38b8e9;}['_getState'](){const _0x34962e=new Map(this['_touched']),_0x556a6a=new Map(_0x34962e),_0x5e88b0=new Map(),_0x1d7134={'insertions':{},'deletions':{}},_0x24e478={'insertions':{},'deletions':{}},_0x58ff60=new Map(),_0x30dfa5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x30dfa5['delete']('$graveyard');for(const _0x26e15c of _0x30dfa5){const _0x3b3abc=this['_diffRoots']['get'](_0x26e15c)||B(_0x26e15c,!0x1),_0x59c9c3=this['_baseRoots']['get'](_0x26e15c)||B(_0x26e15c,!0x1);_0x3b3abc['isAttached']()||_0x59c9c3['isAttached']()?(_0x1d7134['insertions'][_0x26e15c]=F(_0x3b3abc),_0x1d7134['deletions'][_0x26e15c]=F(_0x59c9c3),this['_copyMarkers'](_0x1d7134['deletions'][_0x26e15c],_0x59c9c3),this['_copyMarkers'](_0x1d7134['insertions'][_0x26e15c],_0x3b3abc),_0x24e478['insertions'][_0x26e15c]=this['_generateTape'](this['_idsRoots']['get'](_0x26e15c),[]),_0x24e478['deletions'][_0x26e15c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x26e15c)||B(_0x26e15c,!0x1),[])):_0x30dfa5['delete'](_0x26e15c);}for(const _0x2e28fa of _0x30dfa5){const _0x14774e=_0x24e478['insertions'][_0x2e28fa];for(const _0x28b15d of _0x14774e){const _0x4a38fa=this['_getVidAttributeName'](_0x28b15d),_0x276a73=_0x28b15d['item']['getAttribute'](_0x4a38fa);_0x556a6a['delete'](_0x276a73),_0x276a73>=this['_startingRevisionId']&&_0x5e88b0['set'](_0x276a73,_0x34962e['get'](_0x276a73));}}for(const _0x49528e of _0x30dfa5){const _0x237269=_0x24e478['insertions'][_0x49528e],_0x5c187d=this['_getBaseVids'](_0x24e478['deletions'][_0x49528e]);let _0x335b4d=0x0;for(const _0x35543c of _0x237269){const _0x55c89f=this['_getVidAttributeName'](_0x35543c),_0xc3b6a6=_0x35543c['item']['getAttribute'](_0x55c89f);if(!_0x5e88b0['has'](_0xc3b6a6)&&!_0x58ff60['has'](_0xc3b6a6)){if(_0x556a6a['has'](_0xc3b6a6))_0x335b4d++;else{if(_0xc3b6a6!=_0x5c187d[_0x335b4d]){const _0x50ee7f=_0x34962e['get'](_0xc3b6a6)||_0x34962e['get'](_0x5c187d[_0x335b4d]);for(;_0xc3b6a6!=_0x5c187d[_0x335b4d];)_0x556a6a['has'](_0x5c187d[_0x335b4d])||(_0x58ff60['set'](_0x5c187d[_0x335b4d],_0x50ee7f),_0x34962e['set'](_0x5c187d[_0x335b4d],_0x50ee7f)),_0x335b4d++;}_0x335b4d++;}}}}for(const _0x43da30 of _0x30dfa5){const _0x51ceb0=_0x24e478['insertions'][_0x43da30];for(const _0x36be85 of _0x51ceb0){const _0x16ce48=this['_getVidAttributeName'](_0x36be85),_0x5bd473=_0x36be85['item']['getAttribute'](_0x16ce48);if(_0x58ff60['has'](_0x5bd473)){const _0x4f06c8=_0x58ff60['get'](_0x5bd473);_0x556a6a['has'](_0x5bd473)||_0x556a6a['set'](_0x5bd473,{..._0x4f06c8}),_0x5e88b0['set'](_0x5bd473,{..._0x4f06c8});}}}for(const _0x282f2d of _0x556a6a['keys']())_0x282f2d>=this['_startingRevisionId']&&_0x556a6a['delete'](_0x282f2d);const _0x41c66f=new Map();for(const _0x3662a4 of _0x30dfa5){let _0x279f90=_0x24e478['insertions'][_0x3662a4];for(const _0x5678e8 of _0x279f90)if(_0x5678e8['item']['is']('element','tableCell')){const _0x47c2a5=this['_getVidAttributeName'](_0x5678e8),_0x220ec2=_0x5678e8['item']['getAttribute'](_0x47c2a5);if(_0x5e88b0['has'](_0x220ec2)){const _0x56eed9=_0x5678e8['item']['parent']['parent']['getAttribute']('vid_start'),_0x3603d1=_0x41c66f['get'](_0x56eed9)||new Set();_0x3603d1['add'](_0x5e88b0['get'](_0x220ec2)['userId']),_0x41c66f['set'](_0x56eed9,_0x3603d1);}}_0x279f90=_0x24e478['deletions'][_0x3662a4];for(const _0x282841 of _0x279f90)if(_0x282841['item']['is']('element','tableCell')){const _0x58d313=this['_getVidAttributeName'](_0x282841),_0x69329f=_0x282841['item']['getAttribute'](_0x58d313);if(_0x556a6a['has'](_0x69329f)){const _0x1e785b=_0x282841['item']['parent']['parent']['getAttribute']('vid_start'),_0x3b1f12=_0x41c66f['get'](_0x1e785b)||new Set();_0x3b1f12['add'](_0x556a6a['get'](_0x69329f)['userId']),_0x41c66f['set'](_0x1e785b,_0x3b1f12);}}for(const _0x3faaed of _0x41c66f['keys']())(_0x5e88b0['has'](_0x3faaed)||_0x556a6a['has'](_0x3faaed))&&_0x41c66f['delete'](_0x3faaed);}for(const _0x2373db of _0x30dfa5){const _0x29a5a3=_0x24e478['insertions'][_0x2373db];let _0x4849e2=null,_0x44468e=null;for(const _0x51ebd1 of _0x29a5a3){const _0x3c4b30=this['_getVidAttributeName'](_0x51ebd1),_0x3af9bf=_0x51ebd1['item']['getAttribute'](_0x3c4b30),_0x1be417=_0x41c66f['get'](_0x3af9bf);_0x1be417&&'elementStart'==_0x51ebd1['type']&&(_0x4849e2=Array['from'](_0x1be417)[0x0],_0x44468e=_0x51ebd1['item']['getAttribute']('vid_end')),_0x4849e2&&(_0x556a6a['set'](_0x3af9bf,{'userId':_0x4849e2}),_0x5e88b0['set'](_0x3af9bf,{'userId':_0x4849e2})),_0x3af9bf==_0x44468e&&(_0x4849e2=null,_0x44468e=null);}}const _0x2fb99f={},_0x17144d=new Set();for(const _0x48782b of _0x30dfa5){const _0x14cfae=_0x1d7134['deletions'][_0x48782b],_0x21c096=_0x1d7134['insertions'][_0x48782b];for(const {userId:_0x1d011f}of this['_touchedMarkers']['values']())null!==_0x1d011f&&_0x17144d['add'](_0x1d011f);for(const {userId:_0x1eec1b}of this['_touchedRoots']['values']())null!==_0x1eec1b&&_0x17144d['add'](_0x1eec1b);this['_markChanges'](_0x21c096,_0x24e478['insertions'][_0x48782b],_0x5e88b0,'insertion',_0x17144d),this['_markChanges'](_0x14cfae,_0x24e478['deletions'][_0x48782b],_0x556a6a,'deletion',_0x17144d),_0x2fb99f[_0x48782b]={'insertions':this['_prepareViewToSave'](_0x21c096),'deletions':this['_prepareViewToSave'](_0x14cfae),'attachChange':this['_touchedRoots']['get'](_0x48782b)||null,'attributesBefore':_0x315ac7(this['_baseRootsAttributes']['get'](_0x48782b))||{},'attributesAfter':_0x315ac7(this['_diffRootsAttributes']['get'](_0x48782b))};}return{'diffData':_0x2fb99f,'authorsIds':Array['from'](_0x17144d)};}['_processRootBeforeSave'](_0x414a59){for(const [,_0x4bf966]of _0x414a59['markers']){const _0x7c34b5=_0x4bf966['start']['getAncestors']()['filter'](_0x530745=>'tableCell'==_0x530745['name']);for(const _0x561c45 of _0x7c34b5)0x1==_0x561c45['childCount']&&_0x561c45['getChild'](0x0)['is']('element','paragraph')&&_0x561c45['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x171091){this['_processRootBeforeSave'](_0x171091);const _0x532705=this['editor']['data']['toView'](_0x171091,{}),_0x107dc9=Array['from'](_0x532705['getChildren']())['map'](_0x860493=>this['_getViewJson'](_0x860493));return JSON['stringify'](_0x107dc9);}['_getViewJson'](_0x431033){if(_0x431033['is']('$text'))return _0x431033['data'];{const _0x5c4d1e=_0x431033;return{'type':Object['keys'](C)['find'](_0x1734dc=>_0x431033 instanceof C[_0x1734dc]),'name':_0x5c4d1e['name'],'attributes':Array['from'](_0x5c4d1e['getAttributes']()),'children':Array['from'](_0x5c4d1e['getChildren']())['map'](_0x24658a=>this['_getViewJson'](_0x24658a))};}}['_markChanges'](_0x49458d,_0x46df61,_0xefa8ab,_0x2d491d,_0x349d06){let _0x8834d7=null,_0x587d43=null,_0x4d7340=0x0;const _0x7f230f=this['editor']['model'];for(let _0x1df471=0x0;_0x1df471<_0x46df61['length'];_0x1df471++){const _0x381740=this['_getVidAttributeName'](_0x46df61[_0x1df471]),_0x1457fc=_0x46df61[_0x1df471]['item']['getAttribute'](_0x381740),_0x511e54=_0xefa8ab['get'](_0x1457fc),_0x4b49d5=_0x1df471==_0x46df61['length']-0x1;(!_0x8834d7&&_0x511e54&&(_0x8834d7=_0x511e54,_0x587d43=_0x46df61[_0x1df471]),_0x8834d7&&(!_0x511e54||_0x511e54['userId']!=_0x8834d7['userId']))&&(_0x587c71(_0x511e54,J(_0x587d43,_0x49458d,_0x7f230f),J(_0x46df61[_0x1df471],_0x49458d,_0x7f230f)),_0x8834d7=_0x511e54||null,_0x587d43=_0x511e54?_0x46df61[_0x1df471]:null),_0x8834d7&&_0x4b49d5&&_0x587c71(_0x511e54,J(_0x587d43,_0x49458d,_0x7f230f),q(_0x46df61[_0x1df471],_0x49458d,_0x7f230f));}function _0x587c71(_0x1aa536,_0x2496e7,_0x47bd67){const _0x5b6e18=_0x8834d7['userId'],_0x5a4e21='revision:'+_0x2d491d+':'+_0x5b6e18+':'+_0x4d7340++,_0x38cdc8=_0x7f230f['createRange'](_0x2496e7,_0x47bd67);_0x49458d['markers']['set'](_0x5a4e21,_0x38cdc8),null!==_0x5b6e18&&_0x349d06['add'](_0x5b6e18);}}['_getVidAttributeName'](_0x40e6fe){switch(_0x40e6fe['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x397b38,_0x3fe88f){_0x397b38['baseVersion']=null;for(const _0x5d5291 in _0x397b38){const _0x373ace=_0x397b38[_0x5d5291];if(_0x373ace instanceof gt){const _0x3861b2=_0x3fe88f['get'](_0x373ace['root']['rootName']);_0x397b38[_0x5d5291]=this['_fixPosition'](_0x373ace,_0x3861b2);}if(_0x373ace instanceof vt){const _0x345413=_0x3fe88f['get'](_0x373ace['root']['rootName']);_0x397b38[_0x5d5291]=this['_fixRange'](_0x373ace,_0x345413);}'root'===_0x5d5291&&(_0x397b38['root']=_0x3fe88f['get'](_0x397b38['root']['rootName']));}}['_fixRange'](_0x2959d6,_0x360a1e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2959d6['start'],_0x360a1e),this['_fixPosition'](_0x2959d6['end'],_0x360a1e));}['_fixPosition'](_0xb51501,_0x1ad1d9){return this['editor']['model']['createPositionFromPath'](_0x1ad1d9,_0xb51501['path'],_0xb51501['stickiness']);}['_handleInsertOperation'](_0x425cb1){const _0x2c3e85=this['_idsRoots']['get'](_0x425cb1['position']['root']['rootName']),_0x410a27=this['_fixPosition'](_0x425cb1['position'],_0x2c3e85),_0x4d584f=null===_0x425cb1['_authorId']?null:_0x425cb1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3020bd=_0x410a27['parent'],_0x3f9ac2=this['_revisionId'],_0x27724f=[];for(const _0xd9b380 of _0x425cb1['nodes'])if(_0xd9b380['is']('element'))_0x27724f['push'](this['_makeIdsRoot'](_0xd9b380));else{for(let _0x587c0d=0x0;_0x587c0d<_0xd9b380['offsetSize'];_0x587c0d++)_0x27724f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x9253f3=this['_revisionId'];for(let _0x28b7ed=_0x3f9ac2;_0x28b7ed<_0x9253f3;_0x28b7ed++)this['_touched']['set'](_0x28b7ed,{'userId':_0x4d584f});_0x3020bd['_insertChild'](_0x410a27['offset'],_0x27724f);}['_handleMoveOperation'](_0x412c30){(_0x412c30=this['_cloneOperation'](_0x412c30,this['_idsRoots']))['_execute']();const _0x5a91ce=null===_0x412c30['_authorId']?null:_0x412c30['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b7b9a=_0x412c30['getMovedRangeStart'](),_0x5046c1=_0x1b7b9a['parent'],_0x571f61=_0x1b7b9a['offset'];!function _0x51a6e1(_0x56a96a,_0x52c421,_0x4ef682,_0x17f6f5){for(let _0x2332ca=_0x4ef682;_0x2332ca<_0x17f6f5;_0x2332ca++){const _0x2368a8=_0x52c421['getChild'](_0x2332ca);_0x2368a8['is']('element','$text')?_0x56a96a['set'](_0x2368a8['getAttribute']('vid'),{'userId':_0x5a91ce}):(_0x56a96a['set'](_0x2368a8['getAttribute']('vid_start'),{'userId':_0x5a91ce}),_0x51a6e1(_0x56a96a,_0x2368a8,0x0,_0x2368a8['childCount']),_0x56a96a['set'](_0x2368a8['getAttribute']('vid_end'),{'userId':_0x5a91ce}));}}(this['_touched'],_0x5046c1,_0x571f61,_0x571f61+_0x412c30['howMany']);}['_handleMergeOperation'](_0x4a913d){const _0x4b3d1e=null===(_0x4a913d=this['_cloneOperation'](_0x4a913d,this['_idsRoots']))['_authorId']?null:_0x4a913d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50196b=_0x4a913d['targetPosition']['parent'],_0x17dd2b=_0x4a913d['sourcePosition']['parent'],_0x29b9c5=_0x50196b['getAttribute']('vid_end'),_0x55ec8f=_0x17dd2b['getAttribute']('vid_start');_0x50196b['_setAttribute']('vid_end',_0x17dd2b['getAttribute']('vid_end')),_0x17dd2b['_setAttribute']('vid_end',_0x29b9c5),this['_touched']['set'](_0x55ec8f,{'userId':_0x4b3d1e}),this['_touched']['set'](_0x29b9c5,{'userId':_0x4b3d1e}),_0x4a913d['_execute']();}['_handleSplitOperation'](_0xd8a40b){const _0x265631=null===(_0xd8a40b=this['_cloneOperation'](_0xd8a40b,this['_idsRoots']))['_authorId']?null:_0xd8a40b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36dd2e=_0xd8a40b['graveyardPosition'],_0x37ecb9=_0xd8a40b['splitPosition']['parent'];_0xd8a40b['_execute']();const _0x1b16fd=_0x37ecb9['getAttribute']('vid_end'),_0x37fefe=_0xd8a40b['insertionPosition']['nodeAfter'];if(_0x36dd2e){const _0x409dce=_0x37fefe['getAttribute']('vid_end'),_0x58e978=_0x37ecb9['getAttribute']('vid_end');_0x37ecb9['_setAttribute']('vid_end',_0x409dce),_0x37fefe['_setAttribute']('vid_end',_0x58e978),this['_touched']['set'](_0x37ecb9['getAttribute']('vid_end'),{'userId':_0x265631}),this['_touched']['set'](_0x37fefe['getAttribute']('vid_start'),{'userId':_0x265631});}else{const _0x30d9f2=this['_revisionId']++,_0x40a567=this['_revisionId']++;_0x37ecb9['_setAttribute']('vid_end',_0x30d9f2),_0x37fefe['_setAttribute']('vid_start',_0x40a567),_0x37fefe['_setAttribute']('vid_end',_0x1b16fd),this['_touched']['set'](_0x30d9f2,{'userId':_0x265631}),this['_touched']['set'](_0x40a567,{'userId':_0x265631});}}['_handleMarkerOperation'](_0xfa645b){if(!_0xfa645b['affectsData'])return;const _0x174ddc=(_0xfa645b=this['_cloneOperation'](_0xfa645b,this['_diffRoots']))['oldRange']?_0xfa645b['oldRange']['root']:null,_0x22b2a6=_0xfa645b['newRange']?_0xfa645b['newRange']['root']:null;_0x174ddc&&this['_markers']['delete'](_0xfa645b['name']),_0x22b2a6&&this['_markers']['set'](_0xfa645b['name'],_0xfa645b['newRange']['clone']());const _0x2ca4de=null===_0xfa645b['_authorId']?null:_0xfa645b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4338d6=_0xfa645b['name'];if(!this['_touchedMarkers']['has'](_0x4338d6))return void this['_touchedMarkers']['set'](_0x4338d6,{'range':_0xfa645b['oldRange'],'userId':_0x2ca4de});const _0xb8c5f8=this['_touchedMarkers']['get'](_0x4338d6),_0x123db7=_0xb8c5f8['range'],_0x3ac768=_0xfa645b['newRange'];null==_0x123db7&&null==_0x3ac768||_0x123db7&&_0x3ac768&&_0x123db7['isEqual'](_0x3ac768)?this['_touchedMarkers']['delete'](_0xfa645b['name']):_0xb8c5f8['userId']=_0x2ca4de;}['_handleRootOperation'](_0x1d197d,_0x24791d){this['_diffRoots']['has'](_0x1d197d['rootName'])?this['_diffRoots']['get'](_0x1d197d['rootName'])['_isAttached']=_0x1d197d['isAdd']:(this['_diffRoots']['set'](_0x1d197d['rootName'],B(_0x1d197d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1d197d['rootName'],{}),_0x24791d&&this['_idsRoots']['set'](_0x1d197d['rootName'],B(_0x1d197d['rootName'],!0x0)));const _0x338b23=null===_0x1d197d['_authorId']?null:_0x1d197d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c8d37=this['_touchedRoots']['get'](_0x1d197d['rootName']);_0x1c8d37&&_0x1c8d37['userId']===_0x338b23?this['_touchedRoots']['delete'](_0x1d197d['rootName']):this['_touchedRoots']['set'](_0x1d197d['rootName'],{'userId':_0x338b23,'isAttached':_0x1d197d['isAdd']});}['_handleRootAttributeOperation'](_0x52c999){const _0x18c2c4=this['_diffRootsAttributes']['get'](_0x52c999['root']['rootName']);null===_0x52c999['newValue']?delete _0x18c2c4[_0x52c999['key']]:_0x18c2c4[_0x52c999['key']]=_0x52c999['newValue'];}}function F(_0x406c1a){const _0x4eb2e9=B(_0x406c1a['rootName'],_0x406c1a['isAttached']());for(const _0x2323b4 of _0x406c1a['getChildren']()){const _0xade99f=_0x2323b4['_clone'](!0x0);_0x4eb2e9['_appendChild'](_0xade99f);}return _0x4eb2e9;}function B(_0x437ec8,_0x258e45=!0x0){const _0x54fe88=new mt();return _0x54fe88['rootName']=_0x437ec8,_0x54fe88['_isAttached']=_0x258e45,_0x54fe88['isAttached']=()=>_0x54fe88['_isAttached'],_0x54fe88;}function J(_0x356091,_0x1decbc,_0x232935){const _0xfee8df='elementEnd'==_0x356091['type']?_0x232935['createPositionAt'](_0x356091['item'],'end'):_0x232935['createPositionBefore'](_0x356091['item']);return _0x232935['createPositionFromPath'](_0x1decbc,_0xfee8df['path'],_0xfee8df['stickiness']);}function q(_0x4d07e5,_0x43abe7,_0x878f84){const _0x5a79a6='elementStart'==_0x4d07e5['type']?_0x878f84['createPositionAt'](_0x4d07e5['item'],0x0):_0x878f84['createPositionAfter'](_0x4d07e5['item']);return _0x878f84['createPositionFromPath'](_0x43abe7,_0x5a79a6['path'],_0x5a79a6['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x29b432,_0x43f351){super(_0x29b432),this['focusTracker']=new _0x23fc60(),this['keystrokes']=new _0x39629e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x43f351),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x3848c5(this);}['render'](){super['render'](),_0x2f2870({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x190601=_0x4c5c31=>_0x4c5c31['stopPropagation']();this['keystrokes']['set']('arrowright',_0x190601),this['keystrokes']['set']('arrowleft',_0x190601),this['keystrokes']['set']('arrowup',_0x190601),this['keystrokes']['set']('arrowdown',_0x190601);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x225204){this['revisionNameInputView']['fieldView']['element']['value']=_0x225204['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x152678){const _0x333b6c=new _0x176f9e(this['locale'],_0x20cf4d),_0x580982=_0x333b6c['fieldView'];_0x580982['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1189ea=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x152678&&(_0x1189ea+='\x20('+R(this['locale'],'optional')+')'),(_0x333b6c['label']=_0x1189ea,_0x580982['on']('input',()=>{this['revisionNameInputValue']=_0x580982['element']['value']['trim']();}),_0x333b6c);}}class u extends _0x212b78{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x8969da=this['editor'],_0x3dd98f=_0x8969da['plugins']['get']('RevisionTracker');_0x8969da['ui']['componentFactory']['add']('revisionHistory',_0x47523c=>{const _0x120c00=_0xcdad56(_0x47523c),_0x5d25ee=_0x120c00['panelView']['children'],_0x12453a=new _0x30fe7f(_0x47523c),_0x18fd18=new _0x2bea9b(_0x47523c),_0x3fbe16=new te(_0x47523c),_0x1e1cd9=new _0x2bea9b(_0x47523c),_0x4914b6=new te(_0x47523c);return _0x120c00['bind']('isEnabled')['to'](_0x3dd98f,'isReady',_0x3dd98f,'isEnabled',_0x8969da,'isReadOnly',(_0x4e3779,_0x4c9fdc,_0x4c9bff)=>_0x4e3779&&_0x4c9fdc&&!_0x4c9bff),_0x120c00['buttonView']['set']({'icon':_0x327ed7['history'],'label':R(_0x47523c,'Revision\x20history'),'tooltip':!0x0}),_0x3fbe16['set']({'label':R(_0x47523c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3fbe16['bind']('isEnabled')['to'](_0x3dd98f,'isReady',_0x3dd98f,'isEnabled',_0x8969da,'isReadOnly',(_0x3b0170,_0x52074f,_0x120e34)=>_0x3b0170&&_0x52074f&&!_0x120e34),_0x3fbe16['on']('execute',()=>this['_showDialog']()),_0x4914b6['set']({'label':R(_0x47523c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4914b6['bind']('isEnabled')['to'](_0x3dd98f,'isReady',_0x8969da,'isReadOnly',(_0x2bb7bf,_0x38cfe0)=>_0x2bb7bf&&!_0x38cfe0),_0x4914b6['on']('execute',()=>{_0x8969da['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x120c00['isOpen']=!0x1,_0x8969da['editing']['view']['focus']();}),_0x18fd18['children']['add'](_0x3fbe16),_0x1e1cd9['children']['add'](_0x4914b6),_0x12453a['role']='menu',_0x12453a['items']['addMany']([_0x18fd18,_0x1e1cd9]),_0x5d25ee['add'](_0x12453a),_0x120c00;}),_0x8969da['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x20d6b9=this['editor'],_0xb1286b=_0x20d6b9['locale'],_0x1deffc=new _0x357584(_0xb1286b),_0x1fc96c=new _0x36c1a0(_0xb1286b);_0x1deffc['buttonView']['set']({'icon':_0x327ed7['history'],'label':R(_0xb1286b,'Revision\x20history')});const _0x3545b5=new _0x2b0dca(_0xb1286b,_0x1deffc),_0x2c9c24=new _0x5797ff(_0xb1286b);_0x2c9c24['set']({'label':R(_0xb1286b,'Save\x20current\x20revision')}),_0x2c9c24['delegate']('execute')['to'](_0x1deffc),_0x2c9c24['on']('execute',()=>{this['_showDialog']();}),_0x3545b5['children']['add'](_0x2c9c24),_0x1fc96c['items']['add'](_0x3545b5);const _0x463c52=new _0x2b0dca(_0xb1286b,_0x1deffc),_0xa46f58=new _0x5797ff(_0xb1286b);return _0xa46f58['set']({'label':R(_0xb1286b,'Open\x20revision\x20history')}),_0xa46f58['delegate']('execute')['to'](_0x1deffc),_0xa46f58['on']('execute',()=>{_0x20d6b9['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x463c52['children']['add'](_0xa46f58),_0x1fc96c['items']['add'](_0x463c52),_0x1deffc['panelView']['children']['add'](_0x1fc96c),_0x1deffc;}['_showDialog'](){const _0x2750bd=this['editor'],_0x8d76d3=_0x2750bd['locale'],_0x345ea1=_0x2750bd['plugins']['get']('Dialog'),_0x4e3489=_0x2750bd['plugins']['get']('RevisionTracker');function _0x14b9dc(_0x1652c7){_0x2750bd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1652c7['revisionName']?_0x1652c7['revisionNameInputView']['errorText']=R(_0x8d76d3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2750bd['plugins']['get'](l)['saveRevision']({'name':_0x1652c7['revisionName']}),_0x345ea1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x14b9dc(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x345ea1['show']({'id':'revisionSave','title':R(_0x8d76d3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2750bd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x345ea1['hide']()},{'label':R(_0x2750bd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x35b125){_0x35b125['bind']('isEnabled')['to'](_0x4e3489,'isReady',_0x4e3489,'isEnabled',_0x2750bd,'isReadOnly',(_0x198b7f,_0x3b2d2d,_0x2671a0)=>_0x198b7f&&_0x3b2d2d&&!_0x2671a0);},'onExecute':()=>_0x14b9dc(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x23e33a=this['editor'],_0xc8f2f6=_0x23e33a['locale'];this['_saveRevisionFormView']=new hs(_0xc8f2f6,_0x23e33a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x4ddaa8,_0xb18e3e){super(_0x4ddaa8),this['_model']=_0xb18e3e,this['changeId']=_0xb18e3e['id'];const _0x294a9b=this['bindTemplate'],_0x384f1e=R(_0x4ddaa8,_0xb18e3e['data']['isSuggestion']?'Suggested\x20by':'add'==_0xb18e3e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xb18e3e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x294a9b['to']('type',_0x3497de=>'ck-revision-change__'+_0x3497de)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x384f1e}]},{'text':'\x20'+_0xb18e3e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x6ba935(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x381d34){super(),this['id']=_0x381d34['id']||_0x34c6ad(),this['author']=_0x381d34['author'],this['type']=_0x381d34['type'],this['data']=_0x381d34['data']||{},this['rootName']=_0x381d34['rootName'],this['set']('createdAt',_0x381d34['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(_0x471dab,_0x317b95){this['newRevisionId']=_0x471dab,this['oldRevisionId']=_0x317b95,this['changes']=new _0x4cc07d();}['_setChanges'](_0x131669){for(const _0x3bb0d7 of _0x131669)this['changes']['add'](_0x3bb0d7);}}const Z={'c':_0x4bf35c,'a':_0x3e2abd,'e':_0x4b8dad,'r':_0x5416a7,'u':_0x2dea23};class d extends _0x212b78{['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[_0x5f0bf6,_0x5355f9,j];}constructor(_0x239c78){super(_0x239c78),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',(_0x3d94e3,_0x418997,_0x447f94)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x470da5=>{for(const _0x4a09da of this['editor']['editing']['view']['document']['roots'])_0x447f94?_0x470da5['removeClass']('ck-editor__editable__overlay',_0x4a09da):_0x470da5['addClass']('ck-editor__editable__overlay',_0x4a09da);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x13c6c2=>null!==_0x13c6c2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3a4292,_0x5f4b12,_0x8bf515)=>_0x3a4292&&_0x8bf515?_0x5f4b12['changes']['getIndex'](_0x8bf515):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x334168,_0x46e349)=>_0x334168?_0x46e349['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5355f9);}['init'](){const _0x4f9dec=this['editor'],_0x34c2f3=new yt(_0x4f9dec,{'direction':'backward'}),_0x5cc868=new yt(_0x4f9dec,{'direction':'forward'});(_0x4f9dec['commands']['add']('showPreviousChange',_0x34c2f3),_0x4f9dec['commands']['add']('showNextChange',_0x5cc868),_0x4f9dec['commands']['add']('restoreRevision',new _t(_0x4f9dec)),this['on']('change:numberOfChanges',()=>{_0x34c2f3['refresh'](),_0x5cc868['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4f9dec['enableReadOnlyMode']('revision-viewer'),_0x4f9dec['plugins']['has']('WidgetToolbarRepository'))&&_0x4f9dec['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x39e969){await this['loadRevisionData'](_0x39e969);const _0x1b67ff={};for(const _0x27a6c3 in _0x39e969['diffData']){if(_0x39e969['diffData'][_0x27a6c3]['attachChange']&&!_0x39e969['diffData'][_0x27a6c3]['attachChange']['isAttached'])continue;const _0x59c5c5=this['_removeRevisionMarkers'](JSON['parse'](_0x39e969['diffData'][_0x27a6c3]['insertions'])),_0x5e99cc=this['editor']['editing']['view']['document'],_0x272d1d=new _0x3d27d9(_0x5e99cc,_0x59c5c5['map'](_0x4e9df4=>this['_getViewObj'](_0x4e9df4)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1b67ff[_0x27a6c3]=this['editor']['data']['processor']['toData'](_0x272d1d),this['editor']['data']['processor']['useFillerType']('default');}return _0x1b67ff;}async['getRevisionRootsAttributes'](_0x576f51){await this['loadRevisionData'](_0x576f51);const _0x7581da={};for(const _0x7e3378 in _0x576f51['diffData'])_0x576f51['diffData'][_0x7e3378]['attachChange']&&!_0x576f51['diffData'][_0x7e3378]['attachChange']['isAttached']||(_0x7581da[_0x7e3378]=_0x576f51['diffData'][_0x7e3378]['attributesAfter']||{});return _0x7581da;}['_removeRevisionMarkers'](_0x53dee8){return(_0x53dee8=_0x53dee8['filter'](_0x437c76=>!_0x437c76['name']||'revision-start'!==_0x437c76['name']&&'revision-end'!==_0x437c76['name']))['forEach'](_0x175c3e=>{'string'!=typeof _0x175c3e&&(_0x175c3e['children']=this['_removeRevisionMarkers'](_0x175c3e['children']),_0x175c3e['attributes']=_0x175c3e['attributes']['filter'](_0x339739=>!_0x339739[0x0]['startsWith']('data-revision-')));}),_0x53dee8;}async['compare'](_0x1af48f,_0x22e990,_0x1d2216=!0x1){if(!this['isEnabled'])return;const _0x394978=this['diff'],_0x4d5713=this['repository'],_0x2d4f80='string'==typeof _0x1af48f?_0x4d5713['getRevision'](_0x1af48f):_0x1af48f,_0x302396='string'==typeof _0x22e990?_0x4d5713['getRevision'](_0x22e990):_0x22e990,_0x3c98c6=_0x2d4f80['id'],_0x1ea818=_0x302396?_0x302396['id']:null;if(!_0x1d2216&&this['diff']&&this['diff']['newRevisionId']===_0x3c98c6&&this['diff']['oldRevisionId']===_0x1ea818)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3c98c6,_0x1ea818);const _0x596dc0=this['_getRevisionsRange'](_0x2d4f80,_0x302396,!0x0)['map'](_0x32a306=>this['loadRevisionData'](_0x32a306));return _0x596dc0['push'](new Promise(_0x292442=>{setTimeout(_0x292442,0x14);})),Promise['all'](_0x596dc0)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4fe614=this['_getDiff'](_0x3c98c6,_0x1ea818);for(const _0xc22fed of _0x4fe614['changes'])this['_changeIdToChange']['set'](_0xc22fed['id'],_0xc22fed);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x151288=>{for(const _0x50406f of this['editor']['model']['document']['getRootNames']())_0x151288['detachRoot'](_0x50406f);for(const _0x3e4070 of Object['keys'](_0x4fe614['model'])){const _0x445bab=_0x151288['addRoot'](_0x3e4070);for(const _0x57342e of Object['keys'](_0x4fe614['attributes'][_0x3e4070]))_0x151288['setAttribute'](_0x57342e,_0x4fe614['attributes'][_0x3e4070][_0x57342e],_0x445bab);_0x151288['insert'](_0x4fe614['model'][_0x3e4070],_0x445bab,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4fe614['changes'])),this['isReady']=!0x0;})['catch'](_0x4f0c61=>{console['error'](_0x4f0c61),this['_cleanUp'](),_0x394978&&(this['diff']=_0x394978),this['isReady']=!0x0;});}['addRevisionData'](_0x1e6de7,_0x3a050e){const _0x4f1835=this['repository']['createRevision'](_0x1e6de7);return _0x4f1835['on']('_update',(_0x3ff5e1,_0x3674ed,_0x38970c)=>_0x3a050e(_0x3674ed,_0x38970c,_0x4f1835)),this['repository']['addRevision'](_0x4f1835),_0x4f1835;}['loadRevisionData'](_0x21b355){if(!_0x21b355||_0x21b355['diffData'])return Promise['resolve']();{const _0x518f7d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x518f7d,'revisionId':_0x21b355['id']})['then'](_0x9363f=>{_0x21b355['_update']({'diffData':_0x9363f['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},_0x2f4153=>{for(const _0x21feba of this['editor']['model']['document']['getRootNames']())_0x2f4153['detachRoot'](_0x21feba);});}['_sortAndFilterDiffChanges'](_0x428871){const _0x318425=[],_0x346263=new Map();for(const _0x36bb6c of this['editor']['model']['document']['getRootNames']()){const _0x3d7bab=this['editor']['editing']['view']['getDomRoot'](_0x36bb6c);if(!_0x3d7bab)continue;const _0x2572ec=_0x3d7bab['getClientRects']()['item'](0x0);_0x2572ec&&(_0x318425['push'](_0x36bb6c),_0x346263['set'](_0x36bb6c,_0x2572ec));}return _0x318425['sort']((_0xd40925,_0x3d3802)=>{const _0x511aaa=_0x346263['get'](_0xd40925),_0x5bdcaf=_0x346263['get'](_0x3d3802);return _0x511aaa['y']-_0x5bdcaf['y']||_0x511aaa['x']-_0x5bdcaf['x'];}),(_0x428871=_0x428871['filter'](_0xe6894c=>_0x318425['includes'](_0xe6894c['rootName'])))['sort']((_0xca1ffb,_0x4090b2)=>_0x318425['indexOf'](_0xca1ffb['rootName'])-_0x318425['indexOf'](_0x4090b2['rootName'])),_0x428871;}['_makeTape'](_0x4d565d){const _0x1910e9=Array['from'](_0x4d565d['markers'])['filter'](([_0x447b55,_0x4e7fd5])=>_0x447b55['startsWith']('revision:')&&!_0x4e7fd5['isCollapsed']),_0x4b5a40=Array['from'](this['editor']['model']['createRangeIn'](_0x4d565d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1910e9['length'])for(const _0x4423cc of _0x4b5a40){const [_0x3d6591,_0x5484f2]=_0x1910e9[0x0],[,_0x4a4923,_0x315b4f]=_0x3d6591['split'](':');if(_0x5484f2['end']['isEqual'](_0x4423cc['nextPosition'])&&_0x1910e9['shift'](),(_0x4423cc['previousPosition']['isEqual'](_0x5484f2['start'])||_0x4423cc['previousPosition']['isAfter'](_0x5484f2['start']))&&('insertion'==_0x4a4923?_0x4423cc['isAdded']={'userId':_0x315b4f}:'deletion'==_0x4a4923&&(_0x4423cc['isRemoved']={'userId':_0x315b4f})),0x0==_0x1910e9['length'])break;}return _0x4b5a40;}['_refreshStartEndIndex'](_0x141c19){const _0x2da983=new Map();for(let _0x407edf=0x0;_0x407edf<_0x141c19['length'];_0x407edf++)'text'===_0x141c19[_0x407edf]['type']?(_0x141c19[_0x407edf]['item']['startIndex']=_0x407edf,_0x141c19[_0x407edf]['item']['endIndex']=_0x407edf):('elementStart'===_0x141c19[_0x407edf]['type']?_0x141c19[_0x407edf]['item']['startIndex']=_0x407edf:'elementEnd'===_0x141c19[_0x407edf]['type']&&(_0x141c19[_0x407edf]['item']['endIndex']=_0x407edf),_0x2da983['set'](_0x141c19[_0x407edf]['id'],_0x407edf));for(const _0x1ea2fa of _0x2da983['values']())'elementStart'===_0x141c19[_0x1ea2fa]['type']?_0x141c19[_0x1ea2fa]['item']['endIndex']=_0x2da983['get'](_0x141c19[_0x1ea2fa]['pairId']):'elementEnd'===_0x141c19[_0x1ea2fa]['type']&&(_0x141c19[_0x1ea2fa]['item']['startIndex']=_0x2da983['get'](_0x141c19[_0x1ea2fa]['pairId']));}['_processTape'](_0x5d7f70){for(let _0x19fe1a=0x0;_0x19fe1a<_0x5d7f70['length'];_0x19fe1a++){if('elementStart'===_0x5d7f70[_0x19fe1a]['type'])_0x5d7f70[_0x19fe1a]['item']['startIndex']=_0x19fe1a;else{if('elementEnd'===_0x5d7f70[_0x19fe1a]['type']){_0x5d7f70[_0x19fe1a]['item']['endIndex']=_0x19fe1a;const _0x319773=_0x5d7f70[_0x19fe1a]['item']['startIndex'];_0x5d7f70[_0x319773]['pairId']=_0x5d7f70[_0x19fe1a]['id'],_0x5d7f70[_0x19fe1a]['pairId']=_0x5d7f70[_0x319773]['id'];}else _0x5d7f70[_0x19fe1a]['item']['startIndex']=_0x19fe1a,_0x5d7f70[_0x19fe1a]['item']['endIndex']=_0x19fe1a,_0x5d7f70[_0x19fe1a]['pairId']=null;}_0x5d7f70[_0x19fe1a]['markersStart']||(_0x5d7f70[_0x19fe1a]['markersStart']=[],_0x5d7f70[_0x19fe1a]['markersEnd']=[]);}}['_markInsertions'](_0x440958,_0x5d7c7b){const _0xd3b7ef=_0x440958['filter'](_0x138d4a=>!_0x138d4a['isAdded']);for(let _0x59413c=0x0;_0x59413c<_0x5d7c7b['length'];_0x59413c++)_0x5d7c7b[_0x59413c]['isAdded']&&(_0xd3b7ef[_0x59413c]['isAdded']=_0x5d7c7b[_0x59413c]['isAdded']);}['_makeModelFromViewString'](_0x53c860){const _0x21f610=JSON['parse'](_0x53c860),_0x23cfbc=this['editor']['editing']['view']['document'],_0x567ca0=new _0x3d27d9(_0x23cfbc,_0x21f610['map'](_0x4b0f1a=>this['_getViewObj'](_0x4b0f1a)));return this['editor']['data']['toModel'](_0x567ca0);}['_getViewObj'](_0x32599c){const _0x5cad2a=this['editor']['editing']['view']['document'];if('string'==typeof _0x32599c)return new _0x3812af(_0x5cad2a,_0x32599c);{const _0x30e487=_0x32599c['children']['map'](_0x330065=>this['_getViewObj'](_0x330065));return new(Z[_0x32599c['type']]||_0x27385a)(_0x5cad2a,_0x32599c['name'],_0x32599c['attributes'],_0x30e487);}}['_getDiff'](_0x417698,_0x527cfa=null){const _0x185365=this['repository']['getRevision'](_0x417698),_0x2d5b19=_0x527cfa?this['repository']['getRevision'](_0x527cfa):null,_0x1e7fa7=this['_getRevisionsRange'](_0x185365,_0x2d5b19),_0x10c2b1=_0x1e7fa7[_0x1e7fa7['length']-0x1],_0x8fbfb6=new Map(),_0x29d12f={'model':{},'attributes':{},'changes':[]},_0x39f43e=new Set(),_0x4f91d8=new Map();for(let _0x248254=_0x1e7fa7['length']-0x1;_0x248254>=0x0;_0x248254--){const _0x3723bc=_0x1e7fa7[_0x248254];for(const _0x174cfe of Object['keys'](_0x3723bc['diffData']))if(_0x3723bc['diffData'][_0x174cfe]['attachChange']){const _0x3d93ae=_0x3723bc['diffData'][_0x174cfe]['attachChange'];_0x3d93ae['isAttached']?(_0x39f43e['add'](_0x174cfe),_0x4f91d8['has'](_0x174cfe)&&_0x4f91d8['get'](_0x174cfe)['userId']==_0x3d93ae['userId']?_0x4f91d8['delete'](_0x174cfe):_0x4f91d8['set'](_0x174cfe,_0x3d93ae)):_0x4f91d8['has'](_0x174cfe)?(_0x39f43e['delete'](_0x174cfe),_0x4f91d8['delete'](_0x174cfe)):(_0x39f43e['add'](_0x174cfe),_0x4f91d8['set'](_0x174cfe,_0x3d93ae));}else _0x39f43e['add'](_0x174cfe);}for(const _0xfc578f of _0x39f43e){const _0x3aaf63=_0x4f91d8['has'](_0xfc578f)&&!_0x4f91d8['get'](_0xfc578f)['isAttached'];let _0x3faa60=_0x3aaf63?_0x1e7fa7['length']-0x1:0x0;const _0x313a43=_0x3aaf63?-0x1:0x1;for(;_0x1e7fa7[_0x3faa60];){const _0xca3487=_0x1e7fa7[_0x3faa60];if(_0xca3487['diffData'][_0xfc578f]){const _0x5a0d16=_0x3aaf63?_0xca3487['diffData'][_0xfc578f]['attributesBefore']:_0xca3487['diffData'][_0xfc578f]['attributesAfter'];_0x29d12f['attributes'][_0xfc578f]=_0x5a0d16?_0x315ac7(_0x5a0d16):{};break;}_0x3faa60+=_0x313a43;}}for(const _0xc62521 of _0x1e7fa7){_0xc62521['model']={};for(const _0x3e10de of _0xc62521['authors'])_0x8fbfb6['set'](_0x3e10de['id'],_0x3e10de);for(const _0x3108e7 of _0x39f43e){const _0x2745d4=_0xc62521['diffData'][_0x3108e7]?_0xc62521['diffData'][_0x3108e7]['insertions']:'[]',_0x2c2d1f=_0xc62521['diffData'][_0x3108e7]?_0xc62521['diffData'][_0x3108e7]['deletions']:'[]';_0xc62521['model'][_0x3108e7]={'insertions':this['_makeModelFromViewString'](_0x2745d4),'deletions':this['_makeModelFromViewString'](_0x2c2d1f)};}}for(const _0x37a779 of _0x39f43e){let _0x2d6f11=null,_0x29f9eb=0x0;const _0x196db0=new Map(Array['from'](_0x185365['model'][_0x37a779]['insertions']['markers'])['filter'](([_0x5d2060])=>!_0x5d2060['startsWith']('revision:')));let _0x414362=0x0;for(const _0x3ae7ee of _0x1e7fa7){const _0x1b10eb=this['_makeTape'](_0x3ae7ee['model'][_0x37a779]['insertions']);_0x3ae7ee==_0x185365?(_0x2d6f11=_0x1b10eb,_0x29f9eb=_0x2d6f11['length'],_0x2d6f11['forEach'](_0x53d57c=>{_0x53d57c['id']=_0x414362++;}),this['_processTape'](_0x2d6f11)):this['_markInsertions'](_0x2d6f11,_0x1b10eb);const _0x2b974c=_0x2d6f11['filter'](_0x5b0c31=>!_0x5b0c31['isAdded'])['map'](_0x494f9f=>_0x494f9f['id']);let _0x3fdd69=0x0;const _0x1374e0=this['_makeTape'](_0x3ae7ee['model'][_0x37a779]['deletions']);_0x1374e0['forEach'](_0x471a1a=>{_0x471a1a['isRemoved']?_0x471a1a['id']=_0x29f9eb++:_0x471a1a['id']=_0x2b974c[_0x3fdd69++];}),this['_processTape'](_0x1374e0),this['_setDistance'](_0x2d6f11,'isAdded'),this['_setDistance'](_0x1374e0,'isRemoved'),_0x3ae7ee==_0x185365&&this['_markMarkers'](_0x2d6f11,_0x196db0),_0x2d6f11=this['_joinTapes'](_0x2d6f11,_0x1374e0),this['_refreshStartEndIndex'](_0x2d6f11),this['_setDistance'](_0x2d6f11,'isRemoved');}_0x2d6f11=_0x2d6f11['filter'](_0x457176=>!(_0x457176['isAdded']&&_0x457176['isRemoved']));const _0x48ea9c=new Map(_0x10c2b1['model'][_0x37a779]['deletions']['markers']),_0x5236c0=new Set(_0x196db0['keys']());for(const _0x55cfbd of _0x48ea9c['keys']())_0x5236c0['delete'](_0x55cfbd);this['_markSuggestions'](_0x2d6f11,_0x5236c0),this['_fixObsoleteTags'](_0x2d6f11),_0x2d6f11=this['_removeMissingPairs'](_0x2d6f11),_0x2d6f11=this['_markMismatchedRemovedTags'](_0x2d6f11),_0x2d6f11=this['_removeUnsupportedChanges'](_0x2d6f11);const {root:_0x1d84c7,changes:_0x22a5e0}=this['_makeModelFromTape'](_0x2d6f11,_0x8fbfb6,_0x37a779);_0x29d12f['model'][_0x37a779]=_0x1d84c7;const _0x18b52b=_0x4f91d8['get'](_0x37a779);if(_0x18b52b){const _0x34e02d=_0x8fbfb6['get'](_0x18b52b['userId']),_0x42d23a=new r({'author':_0x34e02d,'type':_0x18b52b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37a779});_0x22a5e0['unshift'](_0x42d23a),_0x29d12f['attributes'][_0x37a779]['revisionHistoryAttachChange']=_0x42d23a['id'];}_0x29d12f['changes']=_0x29d12f['changes']['concat'](_0x22a5e0);}return _0x29d12f;}['_markMarkers'](_0x54420a,_0x4dfc65){for(let _0x5cdea6=0x0;_0x5cdea6<_0x54420a['length'];_0x5cdea6++)for(const [_0x197fb6,_0x1bb35a]of _0x4dfc65)_0x1bb35a['start']['isEqual'](_0x54420a[_0x5cdea6]['previousPosition'])&&_0x54420a[_0x5cdea6]['markersStart']['push'](_0x197fb6),_0x1bb35a['end']['isEqual'](_0x54420a[_0x5cdea6]['nextPosition'])&&_0x54420a[_0x5cdea6]['markersEnd']['push'](_0x197fb6);}['_joinTapes'](_0x94461e,_0x2ae199){let _0x113b7f=[],_0x84aa8d=0x0,_0x46d6b4=0x0;for(;_0x84aa8d<_0x94461e['length']||_0x46d6b4<_0x2ae199['length'];){const _0x1823a7=_0x94461e[_0x84aa8d]||{},_0x50d5e2=_0x2ae199[_0x46d6b4]||{};if(_0x1823a7['id']==_0x50d5e2['id'])_0x84aa8d++,_0x46d6b4++,_0x113b7f['push'](_0x1823a7);else{if(_0x50d5e2['isRemoved']&&_0x1823a7['isAdded']){const {commonTape:_0xa05495,iEnd:_0x2692ca,jEnd:_0x3c591e}=this['_threeWayMerge'](_0x94461e,_0x84aa8d,_0x2ae199,_0x46d6b4);_0x113b7f=_0x113b7f['concat'](_0xa05495),_0x84aa8d=_0x2692ca,_0x46d6b4=_0x3c591e;}else _0x50d5e2['isRemoved']?(_0x46d6b4++,_0x113b7f['push'](_0x50d5e2)):(_0x84aa8d++,_0x113b7f['push'](_0x1823a7));}}return _0x113b7f;}['_markSuggestions'](_0x5d178d,_0x4d20e8){const _0x5d6289=[];for(let _0x5d2108=0x0;_0x5d2108<_0x5d178d['length'];_0x5d2108++){for(let _0x443f36=0x0;_0x443f36<_0x5d178d[_0x5d2108]['markersStart']['length'];_0x443f36++){const _0x178313=_0x5d178d[_0x5d2108]['markersStart'][_0x443f36];if(!_0x4d20e8['has'](_0x178313))continue;const {group:_0x39a7c6,type:_0x20eb0f,authorId:_0x3fd79b}=_0x35ce47(_0x178313);'revision-suggestion'!=_0x39a7c6||'insertion'!=_0x20eb0f&&'deletion'!=_0x20eb0f||(_0x5d6289['unshift']({'type':_0x20eb0f,'name':_0x178313,'userId':_0x3fd79b}),_0x5d178d[_0x5d2108]['markersStart']['splice'](_0x443f36,0x1),_0x443f36--);}_0x139f53(_0x5d178d[_0x5d2108]);for(let _0xa519=0x0;_0xa519<_0x5d178d[_0x5d2108]['markersEnd']['length'];_0xa519++){const _0x189814=_0x5d178d[_0x5d2108]['markersEnd'][_0xa519];if(!_0x4d20e8['has'](_0x189814))continue;const {group:_0x469559,type:_0x5beb3e}=_0x35ce47(_0x189814);if('revision-suggestion'!=_0x469559||'insertion'!=_0x5beb3e&&'deletion'!=_0x5beb3e)continue;_0x5d178d[_0x5d2108]['markersEnd']['splice'](_0xa519,0x1),_0xa519--;const _0x31b28d=_0x5d6289['findIndex'](_0x5e528d=>_0x5e528d['name']==_0x189814);_0x31b28d>-0x1&&_0x5d6289['splice'](_0x31b28d,0x1);}}function _0x35ce47(_0x413857){const _0xaaf2b5=_0x413857['split'](':');return{'group':_0xaaf2b5[0x0],'type':_0xaaf2b5[0x1],'subType':_0xaaf2b5['length']>=0x5?_0xaaf2b5[0x2]:null,'id':_0xaaf2b5['length']<0x5?_0xaaf2b5[0x2]:_0xaaf2b5[0x3],'authorId':_0xaaf2b5['length']<0x5?_0xaaf2b5[0x3]:_0xaaf2b5[0x4],'markerCount':0x6==_0xaaf2b5['length']?_0xaaf2b5[0x5]:null};}function _0x139f53(_0x1ff761){for(let _0x562aad=0x0;_0x562aad<_0x5d6289['length'];_0x562aad++){if(_0x1ff761['isAdded']&&'insertion'==_0x5d6289[_0x562aad]['type'])return _0x1ff761['isAddSuggestion']=_0x5d6289[_0x562aad],void delete _0x1ff761['isAdded'];if(!_0x1ff761['isAdded']&&!_0x1ff761['isRemoved']&&'deletion'==_0x5d6289[_0x562aad]['type'])return void(_0x1ff761['isRemoveSuggestion']=_0x5d6289[_0x562aad]);}}}['_setDistance'](_0x5dbcfd,_0x28cee8){let _0x2e3f4f=0x0,_0x1e6359=!0x1;const _0x2c8c3f=new Map();for(const _0xc8035f of _0x5dbcfd)_0xc8035f[_0x28cee8]?_0x1e6359&&(_0x2e3f4f++,_0x1e6359=!0x1):(_0x2e3f4f++,_0x1e6359=!0x0),_0x2c8c3f['set'](_0xc8035f['id'],_0x2e3f4f);for(let _0x496b71=0x0;_0x496b71<_0x5dbcfd['length'];_0x496b71++){if('isRemoved'==_0x28cee8&&_0x5dbcfd[_0x496b71]['isAdded']||'isAdded'==_0x28cee8&&_0x5dbcfd[_0x496b71]['isRemoved'])continue;if('text'==_0x5dbcfd[_0x496b71]['type']){_0x5dbcfd[_0x496b71]['distance']=0x0;continue;}const _0x1bf435=_0x2c8c3f['get'](_0x5dbcfd[_0x496b71]['pairId']),_0x92fc58=_0x2c8c3f['get'](_0x5dbcfd[_0x496b71]['id']);_0x5dbcfd[_0x496b71]['distance']=_0x1bf435-_0x92fc58;}}['_getRevisionsRange'](_0x574b15,_0x5cf89d,_0x3bfb75=!0x1){const _0x235b4b=[];let _0x9e037f=this['repository']['getIndex'](_0x574b15),_0x47c306=this['repository']['getIndex'](_0x5cf89d);for(-0x1==_0x47c306&&(_0x47c306=this['repository']['_revisions']['length'],_0x3bfb75=!0x1);_0x9e037f<_0x47c306;)_0x235b4b['push'](this['repository']['getRevision'](_0x9e037f)),_0x9e037f++;return _0x3bfb75&&_0x235b4b['push'](this['repository']['getRevision'](_0x9e037f)),_0x235b4b;}['_threeWayMerge'](_0x4ee000,_0x1eabde,_0x139b32,_0x3d4667){const _0x5f067a=this['editor']['model']['schema'];let _0x43c012=_0x1eabde;for(;_0x4ee000[_0x43c012]&&_0x4ee000[_0x43c012]['isAdded'];)_0x43c012++;let _0x221fae=_0x3d4667;for(;_0x139b32[_0x221fae]&&_0x139b32[_0x221fae]['isRemoved'];)_0x221fae++;_0x30077b(_0x4ee000,_0x1eabde,_0x43c012),_0x30077b(_0x139b32,_0x3d4667,_0x221fae);const _0x290d1d=_0x139b32['slice'](_0x3d4667,_0x221fae)['concat'](_0x4ee000['slice'](_0x1eabde,_0x43c012));return _0x290d1d['sort']((_0x25b8a6,_0x5efac0)=>_0x25b8a6['side']!=_0x5efac0['side']?_0x25b8a6['side']-_0x5efac0['side']:_0x25b8a6['level']!=_0x5efac0['level']?_0x25b8a6['level']-_0x5efac0['level']:_0x25b8a6['distance']!=_0x5efac0['distance']?_0x5efac0['distance']-_0x25b8a6['distance']:!!_0x25b8a6['isAdded']!=!!_0x5efac0['isAdded']?-0x1==_0x25b8a6['side']||0x0==_0x25b8a6['side']?_0x25b8a6['isAdded']?-0x1:0x1:_0x25b8a6['isAdded']?0x1:-0x1:_0x25b8a6['index']-_0x5efac0['index']),{'commonTape':_0x290d1d,'iEnd':_0x43c012,'jEnd':_0x221fae};function _0x30077b(_0x152f1b,_0x1ca9f7,_0x15d51b){let _0xf65262=-0x1,_0x2ccbfc=Number['POSITIVE_INFINITY'],_0x3ce613=!0x0;for(let _0x22d876=_0x1ca9f7;_0x22d876<_0x15d51b;_0x22d876++)if(_0x5f067a['isInline'](_0x152f1b[_0x22d876]['item'])||(_0x3ce613=!0x1),_0x152f1b[_0x22d876]['item']['startIndex']<_0x1ca9f7&&(_0xf65262=_0x22d876),_0x152f1b[_0x22d876]['item']['endIndex']>=_0x15d51b){_0x2ccbfc=_0x22d876;break;}_0x3ce613&&(_0xf65262=_0x15d51b-0x1);for(let _0x33aa71=_0x1ca9f7;_0x33aa71<_0x15d51b;_0x33aa71++)_0x152f1b[_0x33aa71]['side']=_0x33aa71<=_0xf65262?-0x1:_0x33aa71<_0x2ccbfc?0x0:0x1,_0x152f1b[_0x33aa71]['index']=_0x33aa71;let _0x383224=0x0;for(let _0x568dcf=_0x1ca9f7;_0x568dcf<=_0xf65262;_0x568dcf++)0x0==_0x152f1b[_0x568dcf]['distance']?_0x152f1b[_0x568dcf]['level']=_0x383224:(_0x383224++,_0x152f1b[_0x568dcf]['level']=_0x383224,_0x383224++);for(let _0x593441=_0x1ca9f7;_0x593441<_0x15d51b;_0x593441++)0x0==_0x152f1b[_0x593441]['side']&&(_0x152f1b[_0x593441]['level']=_0x383224);_0x383224=0x0;for(let _0x47253b=_0x15d51b-0x1;_0x47253b>=_0x2ccbfc;_0x47253b--)0x0==_0x152f1b[_0x47253b]['distance']?_0x152f1b[_0x47253b]['level']=_0x383224:(_0x383224--,_0x152f1b[_0x47253b]['level']=_0x383224,_0x383224--);}}['_fixObsoleteTags'](_0x4b7dee){const _0x2d79e4=new Map(),_0x44bb23=this['editor']['model']['schema'];for(let _0x48eca2=0x1;_0x48eca2<_0x4b7dee['length'];_0x48eca2++){let _0x5c79a9,_0x5b5880,_0x1e673d;const _0x30f96d=_0x4b7dee[_0x48eca2],_0x14006c=_0x4b7dee[_0x48eca2-0x1];if('text'==_0x30f96d['type'])continue;if(_0x30f96d['type']!=_0x14006c['type'])continue;if(!_0x44bb23['isBlock'](_0x14006c['item'])||_0x44bb23['isLimit'](_0x14006c['item']))continue;if(!_0x44bb23['isBlock'](_0x30f96d['item'])||_0x44bb23['isLimit'](_0x30f96d['item']))continue;if((_0x4b7dee[_0x48eca2]['isAdded']||_0x4b7dee[_0x48eca2]['isAddSuggestion'])&&_0x4b7dee[_0x48eca2-0x1]['isRemoved'])_0x5c79a9=_0x4b7dee[_0x48eca2],_0x5b5880=_0x4b7dee[_0x48eca2-0x1],_0x1e673d=_0x48eca2-0x1;else{if(!_0x4b7dee[_0x48eca2]['isRemoved']||!_0x4b7dee[_0x48eca2-0x1]['isAdded']&&!_0x4b7dee[_0x48eca2-0x1]['isAddSuggestion'])continue;_0x5c79a9=_0x4b7dee[_0x48eca2-0x1],_0x5b5880=_0x4b7dee[_0x48eca2],_0x1e673d=_0x48eca2;}const _0x37eb63=_0x5c79a9['level']==_0x5b5880['level'],_0x4c77ec=Math['abs'](_0x5c79a9['level'])<Math['abs'](_0x5b5880['level'])&&0x0==_0x5b5880['distance'];(_0x37eb63||_0x4c77ec)&&(_0x2d79e4['set'](_0x5b5880['id'],_0x5c79a9['id']),_0x4b7dee['splice'](_0x1e673d,0x1),_0x48eca2--,_0x5c79a9['isAdded']=!0x1);}for(let _0xce38fe=0x0;_0xce38fe<_0x4b7dee['length'];_0xce38fe++)_0x2d79e4['has'](_0x4b7dee[_0xce38fe]['pairId'])&&(_0x4b7dee[_0xce38fe]['pairId']=_0x2d79e4['get'](_0x4b7dee[_0xce38fe]['pairId']));}['_removeMissingPairs'](_0x1cfd1d){const _0x320a80=new Set(_0x1cfd1d['map'](_0x5ae916=>_0x5ae916['id']));for(let _0x401c2b=0x0;_0x401c2b<_0x1cfd1d['length'];_0x401c2b++)_0x320a80['has'](_0x1cfd1d[_0x401c2b]['pairId'])||0x0==_0x1cfd1d[_0x401c2b]['distance']||(_0x1cfd1d[_0x401c2b]['isIncorrect']=!0x0);return _0x1cfd1d['filter'](_0x5b2dcb=>!_0x5b2dcb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2c5585){const _0x5de05a=new Set();for(let _0x58859c=0x0;_0x58859c<_0x2c5585['length'];_0x58859c++){if(_0x5de05a['has'](_0x2c5585[_0x58859c]['id'])&&_0x2c5585[_0x58859c]['isRemoved']&&(_0x2c5585[_0x58859c]['isIncorrect']=!0x0),_0x2c5585[_0x58859c]['isIncorrect'])continue;if(0x0==_0x2c5585[_0x58859c]['distance'])continue;if('elementStart'!=_0x2c5585[_0x58859c]['type'])continue;if(null==_0x2c5585[_0x58859c]['pairId'])continue;let _0x4d307f=_0x58859c+0x1,_0x434794=0x0;for(;_0x2c5585[_0x4d307f]['id']!=_0x2c5585[_0x58859c]['pairId'];)'elementStart'==_0x2c5585[_0x4d307f]['type']?_0x434794++:'elementEnd'==_0x2c5585[_0x4d307f]['type']&&_0x434794--,_0x4d307f++;if(0x0!=_0x434794){if(_0x2c5585[_0x58859c]['isRemoved'])_0x2c5585[_0x58859c]['isIncorrect']=!0x0;else{for(;_0x4d307f!=_0x58859c;)_0x2c5585[_0x4d307f]['isRemoved']&&0x0!=_0x2c5585[_0x4d307f]['distance']&&(_0x2c5585[_0x4d307f]['isIncorrect']=!0x0,_0x5de05a['add'](_0x2c5585[_0x4d307f]['pairId'])),_0x4d307f--;}}}return _0x2c5585['filter'](_0x3c013e=>!_0x3c013e['isIncorrect']);}['_removeUnsupportedChanges'](_0x4cfdf4){const _0x2b8e98=this['editor']['model']['schema'];for(let _0x1e75c5=0x0;_0x1e75c5<_0x4cfdf4['length'];_0x1e75c5++){if(!(_0x4cfdf4[_0x1e75c5]['isAdded']||_0x4cfdf4[_0x1e75c5]['isAddSuggestion']||_0x4cfdf4[_0x1e75c5]['isRemoved']||_0x4cfdf4[_0x1e75c5]['isRemoveSuggestion']))continue;if(0x0==_0x4cfdf4[_0x1e75c5]['distance'])continue;const _0x236a87=_0x4cfdf4[_0x1e75c5]['item'];_0x2b8e98['isBlock'](_0x236a87)||_0x2b8e98['isLimit'](_0x236a87)||(_0x4cfdf4[_0x1e75c5]['isAdded']&&delete _0x4cfdf4[_0x1e75c5]['isAdded'],_0x4cfdf4[_0x1e75c5]['isAddSuggestion']&&delete _0x4cfdf4[_0x1e75c5]['isAddSuggestion'],_0x4cfdf4[_0x1e75c5]['isRemoveSuggestion']&&delete _0x4cfdf4[_0x1e75c5]['isRemoveSuggestion'],_0x4cfdf4[_0x1e75c5]['isRemoved']&&(_0x4cfdf4[_0x1e75c5]['isIncorrect']=!0x0));}return _0x4cfdf4['filter'](_0x462c46=>!_0x462c46['isIncorrect']);}['_makeModelFromTape'](_0x30b8e8,_0x33bee1,_0x51e3f0){const _0x210587=new mt(),_0x217a41=[],_0x4464c5=new Map(),_0x447780=this['editor']['model'],_0x34fefb=_0x447780['schema'],_0xbf64ef=[_0x210587],_0x91278e={},_0x3de93a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x45dccf=null;const _0x4f897d=[0x0];for(let _0xe7b4fe=0x0;_0xe7b4fe<_0x30b8e8['length'];_0xe7b4fe++)if('elementStart'===_0x30b8e8[_0xe7b4fe]['type']){_0x30b8e8[_0xe7b4fe]['previousPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d);const _0x50b2b9=new ft(_0x30b8e8[_0xe7b4fe]['item']['name'],_0x30b8e8[_0xe7b4fe]['item']['getAttributes']());_0xbf64ef[0x0]['_appendChild'](_0x50b2b9),_0x4f897d['push'](0x0),_0xbf64ef['unshift'](_0x50b2b9),_0x30b8e8[_0xe7b4fe]['nextPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d);}else'elementEnd'===_0x30b8e8[_0xe7b4fe]['type']?(_0xbf64ef['shift'](),_0x30b8e8[_0xe7b4fe]['previousPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d),_0x4f897d['pop'](),_0x4f897d[_0x4f897d['length']-0x1]++,_0x30b8e8[_0xe7b4fe]['nextPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d)):(_0x30b8e8[_0xe7b4fe]['previousPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d),_0x45dccf?_0x45dccf['_data']+=_0x30b8e8[_0xe7b4fe]['item']['data']:_0x45dccf=new wt(_0x30b8e8[_0xe7b4fe]['item']['data'],_0x30b8e8[_0xe7b4fe]['item']['getAttributes']()),_0x30b8e8[_0xe7b4fe+0x1]&&'text'===_0x30b8e8[_0xe7b4fe+0x1]['type']&&_0x1f89b4(_0x45dccf,_0x30b8e8[_0xe7b4fe+0x1]['item'])||(_0xbf64ef[0x0]['_appendChild'](_0x45dccf),_0x45dccf=null),_0x4f897d[_0x4f897d['length']-0x1]+=_0x30b8e8[_0xe7b4fe]['item']['offsetSize'],_0x30b8e8[_0xe7b4fe]['nextPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d));for(let _0x5b147c=0x0;_0x5b147c<_0x30b8e8['length'];_0x5b147c++){const _0x4f28be=_0x30b8e8[_0x5b147c]['previousPosition'],_0x433c0f=_0x30b8e8[_0x5b147c]['nextPosition'];for(const _0x4e06d1 of _0x30b8e8[_0x5b147c]['markersStart'])_0x4464c5['set'](_0x4e06d1,{'start':_0x4f28be,'end':null});_0x4e901c('isRemoveSuggestion',_0x5b147c,_0x4f28be,_0x433c0f),_0x4e901c('isAddSuggestion',_0x5b147c,_0x4f28be,_0x433c0f),_0x4e901c('isRemoved',_0x5b147c,_0x4f28be,_0x433c0f),_0x4e901c('isAdded',_0x5b147c,_0x4f28be,_0x433c0f);for(const _0x382dad of _0x30b8e8[_0x5b147c]['markersEnd']){_0x4464c5['get'](_0x382dad)['end']=_0x433c0f;}}for(const [_0x21cdb0,_0x3f878b]of _0x4464c5){const _0x3343fb=this['editor']['model']['createRange'](_0x3f878b['start'],_0x3f878b['end']);_0x210587['markers']['set'](_0x21cdb0,_0x3343fb);}return _0x217a41['sort']((_0x5cc5f7,_0xeb632e)=>{const _0x381325=_0x210587['markers']['get']('revision:'+_0x5cc5f7['id']),_0x2f587c=_0x210587['markers']['get']('revision:'+_0xeb632e['id']);return _0x381325['start']['isBefore'](_0x2f587c['start'])?-0x1:_0x381325['start']['isAfter'](_0x2f587c['start'])?0x1:_0x381325['end']['isBefore'](_0x2f587c['end'])?-0x1:_0x381325['end']['isAfter'](_0x2f587c['end'])?0x1:'add'===_0x5cc5f7['type']?-0x1:0x1;}),{'root':_0x210587,'changes':_0x217a41};function _0x4e901c(_0x4f329c,_0x365f86,_0x5e04b7,_0x5510fa){const _0x4c4395=!!_0x30b8e8[_0x365f86][_0x4f329c],_0x19ef13=_0x4c4395?_0x30b8e8[_0x365f86][_0x4f329c]['userId']:null,_0x3c00fe=_0x365f86===_0x30b8e8['length']-0x1,_0x146348=_0x3de93a[_0x4f329c][0x0],_0x2a13c3=_0x34fefb['isObject'](_0x30b8e8[_0x365f86]['item']);!_0x91278e[_0x4f329c]&&_0x4c4395?_0x91278e[_0x4f329c]={'start':_0x5e04b7,'tapeItem':_0x30b8e8[_0x365f86],'userId':_0x19ef13,'type':_0x4f329c}:_0x91278e[_0x4f329c]&&!_0x4c4395?(_0x91278e[_0x4f329c]['end']=_0x5e04b7,_0x4acf35(_0x91278e[_0x4f329c]),_0x91278e[_0x4f329c]=null):_0x91278e[_0x4f329c]&&_0x4c4395&&_0x91278e[_0x4f329c]['userId']!==_0x19ef13&&(_0x91278e[_0x4f329c]['end']=_0x5e04b7,_0x146348&&_0x146348['userId']===_0x91278e[_0x4f329c]['userId']||_0x4acf35(_0x91278e[_0x4f329c]),_0x91278e[_0x4f329c]={'start':_0x5e04b7,'tapeItem':_0x30b8e8[_0x365f86],'userId':_0x19ef13,'type':_0x4f329c}),_0x91278e[_0x4f329c]&&_0x2a13c3&&('elementStart'!==_0x30b8e8[_0x365f86]['type']||_0x146348&&_0x146348['userId']===_0x19ef13||_0x3de93a[_0x4f329c]['unshift']({'userId':_0x19ef13,'object':_0x30b8e8[_0x365f86]['item'],'change':_0x91278e[_0x4f329c]}),'elementEnd'===_0x30b8e8[_0x365f86]['type']&&_0x146348&&_0x146348['object']===_0x30b8e8[_0x365f86]['item']&&(_0x3de93a[_0x4f329c]['shift'](),_0x91278e[_0x4f329c]=_0x146348['change'])),_0x91278e[_0x4f329c]&&_0x3c00fe&&(_0x91278e[_0x4f329c]['end']=_0x5510fa,_0x4acf35(_0x91278e[_0x4f329c]),_0x91278e[_0x4f329c]=null);}function _0x4acf35({start:_0x3cc585,end:_0x5a21a6,tapeItem:_0x109f82,userId:_0x22490a,type:_0x521d7f}){const _0x4c0702=_0x109f82['item'],_0x585af0=_0x447780['schema']['isBlock'](_0x4c0702)&&!_0x447780['schema']['isLimit'](_0x4c0702),_0x5ad5b7=_0x3cc585['nodeAfter']==_0x5a21a6['parent']&&_0x5a21a6['isAtStart'];if(_0x585af0&&_0x5ad5b7)return;const _0x32a21d=_0x447780['createRange'](_0x3cc585,_0x5a21a6),_0x5b81f2=_0x33bee1['get'](_0x22490a),_0x29621d=new r({'author':_0x5b81f2,'type':'isAdded'==_0x521d7f||'isAddSuggestion'==_0x521d7f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x521d7f||'isRemoveSuggestion'==_0x521d7f},'createdAt':new Date(),'rootName':_0x51e3f0});_0x217a41['push'](_0x29621d),_0x210587['markers']['set']('revision:'+_0x29621d['id'],_0x32a21d);}function _0x1f89b4(_0x200dce,_0x51d3dd){const _0x1e0430=_0x200dce['getAttributes'](),_0x2894db=_0x51d3dd['getAttributes']();for(const _0x5c1d06 of _0x1e0430){if(_0x5c1d06[0x1]!==_0x51d3dd['getAttribute'](_0x5c1d06[0x0]))return!0x1;_0x2894db['next']();}return _0x2894db['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x192d32=>{const _0x3bc681=_0x192d32['markerName']['split'](':')[0x1],_0x40e01b=this['_getChangeFromId'](_0x3bc681);if(!_0x40e01b)return null;const _0x11602f='add'==_0x40e01b['type']?'insertion':'deletion',_0x77b902=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11602f];return _0x40e01b['data']['isSuggestion']&&_0x77b902['push']('ck-suggestion-marker-'+_0x11602f+'-new'),this['activeChange']==_0x40e01b&&_0x77b902['push']('ck-suggestion-marker--active'),{'classes':_0x77b902,'attributes':{'data-change-id':_0x3bc681}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3807a4=>{_0x3807a4['on']('element:pre',(_0x21a57c,_0x26931b,_0x5d51df)=>{const _0x1f6784=_0x26931b['viewItem']['getChild'](0x0);if(!_0x1f6784||!_0x1f6784['is']('element','code'))return;if(!_0x5d51df['consumable']['consume'](_0x1f6784,{'attributes':['vid_start','vid_end']}))return;const _0x26bcf1=_0x26931b['modelRange']['start']['nodeAfter'];_0x5d51df['writer']['setAttribute']('vid_start',_0x1f6784['getAttribute']('vid_start'),_0x26bcf1),_0x5d51df['writer']['setAttribute']('vid_end',_0x1f6784['getAttribute']('vid_end'),_0x26bcf1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2b9943=>{_0x2b9943['on']('element',(_0x2b5e7b,_0xb165e4,_0x4724c4)=>{if(!_0x4724c4['consumable']['consume'](_0xb165e4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xb165e4['modelRange']['isCollapsed'])return;const _0x301e3a=_0xb165e4['modelRange']['start']['nodeAfter'];_0x301e3a['hasAttribute']('vid_start')||_0x301e3a['hasAttribute']('vid')||(_0x4724c4['writer']['setAttribute']('vid_start',_0xb165e4['viewItem']['getAttribute']('vid_start'),_0x301e3a),_0x4724c4['writer']['setAttribute']('vid_end',_0xb165e4['viewItem']['getAttribute']('vid_end'),_0x301e3a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1a9163=>_0x1a9163['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5b0188,[,_0x40c81e])=>{['vid_start','vid_end','vid']['includes'](_0x40c81e)&&(_0x5b0188['return']=!0x0,_0x5b0188['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xab04ec=>{_0xab04ec['on']('attribute:vid',(_0x5a770e,_0x2bf048,_0x39c101)=>{if('\x20'!=_0x2bf048['item']['data']||_0x2bf048['item']['parent']['maxOffset']>0x1)return;if(!_0x39c101['consumable']['consume'](_0x2bf048['item'],_0x5a770e['name']))return;const _0x19f2e8=_0x39c101['writer'],_0xee8747=_0x39c101['mapper']['toViewRange'](_0x2bf048['range']);_0x19f2e8['wrap'](_0xee8747,_0x19f2e8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2aaad2){const _0x1f2eb1=_0x2aaad2['plugins']['get']('RevisionViewer');return(_0xaf6557,_0x53e4dc,_0x33b269)=>{const _0x2f77ff=_0x53e4dc['markerName']['split'](':')[0x1],_0x474f84=_0x1f2eb1['_getChangeFromId'](_0x2f77ff);if(!_0x474f84)return null;const _0x140e71='add'==_0x474f84['type']?'split':'merge';if(!_0x33b269['consumable']['test'](_0x53e4dc['markerRange'],_0xaf6557['name']))return;const _0x41573f=_0x53e4dc['markerRange']['getWalker'](),_0x32728d=_0x53e4dc['markerRange']['start'],_0x458ec9=_0x2aaad2['model']['schema'];let _0x24dd8f=null,_0x4fe7c5=null,_0x308178=!0x1,_0x127947=!0x1;for(const _0xc781a7 of _0x41573f){const _0x3a4a07=_0xc781a7['item'];_0x308178=_0x308178||_0x458ec9['isContent'](_0x3a4a07);const _0x2963c9=_0x33b269['mapper']['toViewElement'](_0x3a4a07);if(_0x2963c9&&_0x2963c9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xc781a7['type']&&(_0x458ec9['isBlock'](_0x3a4a07)&&!_0x458ec9['isLimit'](_0x3a4a07)&&(_0x3a4a07['nextSibling']||_0x32728d['isAtEnd']?_0x24dd8f&&_0x24dd8f['parent']==_0x3a4a07||(_0x24dd8f=_0x3a4a07,_0x102e13(_0xc781a7['previousPosition']),_0x127947=!0x0):_0x4fe7c5=_0x4fe7c5||_0xc781a7['previousPosition']));}function _0x102e13(_0x26fd9e){const _0x2799c0=_0x33b269['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x140e71}),_0x22115c=_0x33b269['mapper']['toViewPosition'](_0x26fd9e);_0x474f84['data']['isSuggestion']&&_0x33b269['writer']['addClass']('ck-suggestion-marker-'+_0x140e71+'-new',_0x2799c0),_0x1f2eb1['activeChange']==_0x474f84&&_0x33b269['writer']['addClass']('ck-suggestion-marker--active',_0x2799c0),_0x33b269['writer']['insert'](_0x22115c,_0x2799c0),_0x33b269['mapper']['bindElementToMarker'](_0x2799c0,_0x53e4dc['markerName']);}_0x308178||_0x127947||!_0x4fe7c5||_0x102e13(_0x4fe7c5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3bb1a4,_0xa86774,_0x33687f)=>{const _0x2909cc=_0x33687f['mapper']['markerNameToElements'](_0xa86774['markerName']);if(_0x2909cc){for(const _0x5843ef of _0x2909cc)(_0x5843ef['hasClass']('ck-suggestion-marker-split')||_0x5843ef['hasClass']('ck-suggestion-marker-merge'))&&(_0x33687f['mapper']['unbindElementFromMarkerName'](_0x5843ef,_0xa86774['markerName']),_0x33687f['writer']['remove'](_0x5843ef));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3f449b,_0x2ba622,_0x366d20)=>{const _0x424d6a=_0x2ba622['markerName']['split'](':')[0x1],_0x179e79=this['_getChangeFromId'](_0x424d6a);if(!_0x179e79)return null;const _0x2d48ab='add'==_0x179e79['type']?'split':'merge';if(_0x366d20['consumable']['test'](_0x2ba622['markerRange'],_0x3f449b['name']))for(const _0x2760ad of _0x2ba622['markerRange']['getItems']()){if(!_0x2760ad['is']('element','softBreak'))continue;const _0x3efba7=_0x366d20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d48ab}),_0x47bc6a=_0x366d20['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2760ad));_0x179e79['data']['isSuggestion']&&_0x366d20['writer']['addClass']('ck-suggestion-marker-'+_0x2d48ab+'-new',_0x3efba7),this['activeChange']==_0x179e79&&_0x366d20['writer']['addClass']('ck-suggestion-marker--active',_0x3efba7),_0x366d20['writer']['insert'](_0x47bc6a,_0x3efba7),_0x366d20['mapper']['bindElementToMarker'](_0x3efba7,_0x2ba622['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x597020=>{for(const _0x81c00e of this['editor']['model']['document']['getRootNames']()){const _0x4b6b74=this['editor']['model']['document']['getRoot'](_0x81c00e),_0x49be63=this['editor']['editing']['view']['document']['getRoot'](_0x81c00e);if(_0x49be63){const _0xa557df=_0x4b6b74['getAttribute']('revisionHistoryAttachChange');if(_0x597020['removeAttribute']('data-change-id',_0x49be63),_0x597020['removeClass']('ck-revision-history-root-add',_0x49be63),_0x597020['removeClass']('ck-revision-history-root-remove',_0x49be63),_0x597020['removeClass']('ck-revision-history-root--active',_0x49be63),_0xa557df){const _0xcf39fb=this['_getChangeFromId'](_0xa557df);if(!_0xcf39fb)return null;_0x597020['setAttribute']('data-change-id',_0xa557df,_0x49be63),_0x597020['addClass']('ck-revision-history-root-'+_0xcf39fb['type'],_0x49be63),this['activeChange']==_0xcf39fb&&_0x597020['addClass']('ck-revision-history-root--active',_0x49be63);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3c4a4f=>'revision-comment:'+_0x3c4a4f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4031c2=>'revision-suggestion:'+_0x4031c2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3d5701=>({'name':'suggestion:'+_0x3d5701,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x6c6683=>{const _0x1bf139=_0x6c6683['markerName']['split'](':')[0x1];return'insertion'!=_0x1bf139&&'deletion'!=_0x1bf139?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1bf139]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x53d45c,_0xefeaa4,_0x4c9cb2)=>{const _0x25b157=_0x4c9cb2['mapper']['markerNameToElements'](_0xefeaa4['markerName']);if(_0x25b157){for(const _0x2a1d93 of _0x25b157)_0x2a1d93['is']('uiElement')&&(_0x4c9cb2['mapper']['unbindElementFromMarkerName'](_0x2a1d93,_0xefeaa4['markerName']),_0x4c9cb2['writer']['remove'](_0x2a1d93));}},{'priority':'high'});}['_getChangeFromId'](_0x18ba79){return this['_changeIdToChange']['get'](_0x18ba79);}['_getViewForChange'](_0xc909ab){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0xc909ab),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x47ba02,_0x14deed,_0x23aed6,_0x482352)=>{_0x482352&&this['_balloon']['remove'](_0x482352),_0x23aed6&&(this['_balloon']['add']({'view':_0x23aed6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x38bb4b=this['editor']['editing'],_0x251b54=this['_getChangeFromId'](_0x23aed6['changeId']);let _0x1e7ed5;if(_0x251b54['data']['isOnRoot']){const _0x30fbbc=_0x38bb4b['view']['getDomRoot'](_0x251b54['rootName']);_0x1e7ed5=Array['from'](_0x30fbbc['getClientRects']());}else{const _0x59d469=this['editor']['model']['markers']['get']('revision:'+_0x23aed6['changeId']);_0x1e7ed5=Array['from'](_0x38bb4b['mapper']['markerNameToElements'](_0x59d469['name']))['map'](_0x5a2533=>_0x38bb4b['view']['domConverter']['mapViewToDom'](_0x5a2533))['map'](_0x24480d=>Array['from'](_0x24480d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1e7ed5[0x0];return _0x1e7ed5['find'](_0x207be1=>_0x207be1['top']-0x3<=this['_activeViewTarget']['y']&&_0x207be1['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x207be1['left']-0x3<=this['_activeViewTarget']['x']&&_0x207be1['right']+0x3>=this['_activeViewTarget']['x'])||_0x1e7ed5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x372531,_0xb27c98,_0x40e766,_0x30d575)=>{this['activeView']=_0x40e766?this['_getViewForChange'](_0x40e766):null,this['editor']['model']['change'](()=>{const _0x310dc4=this['editor']['editing'];_0x30d575&&(_0x30d575['data']['isOnRoot']?_0x310dc4['view']['change'](_0x546800=>{_0x546800['removeClass']('ck-revision-history-root--active',_0x310dc4['view']['document']['getRoot'](_0x30d575['rootName']));}):_0x310dc4['reconvertMarker']('revision:'+_0x30d575['id'])),_0x40e766&&(_0x40e766['data']['isOnRoot']?_0x310dc4['view']['change'](_0x5481f8=>{_0x5481f8['addClass']('ck-revision-history-root--active',_0x310dc4['view']['document']['getRoot'](_0x40e766['rootName']));}):_0x310dc4['reconvertMarker']('revision:'+_0x40e766['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x38adc0,_0x171691)=>{if(this['activeChange'])return;const _0x2471fc=this['_findChangeIdFromDomTarget'](_0x171691['target']),_0x802270=this['_changeIdToChange']['get'](_0x2471fc);_0x802270?(this['_activeViewTarget']={'x':_0x171691['domEvent']['x'],'y':_0x171691['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x802270)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x50dea7,_0x5317b7)=>{const _0x16a848=this['_findChangeIdFromDomTarget'](_0x5317b7['target']),_0x39e533=this['_changeIdToChange']['get'](_0x16a848);_0x39e533?(this['_activeViewTarget']={'x':_0x5317b7['domEvent']['x'],'y':_0x5317b7['domEvent']['y']},_0x39e533===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x39e533):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5e9f70){do{const _0x23a98e=_0x5e9f70['getAttribute']('data-change-id');if(_0x23a98e)return _0x23a98e;_0x5e9f70=_0x5e9f70['parent'];}while(_0x5e9f70);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x59c766=>{for(const _0x239268 of this['editor']['model']['markers'])_0x59c766['removeMarker'](_0x239268);});}}function tt(_0x5e26c0,_0x485a2d){return(_0x47381b,_0x2d0fa9,_0x336ca4)=>{if(!_0x336ca4['consumable']['test'](_0x2d0fa9['markerRange'],_0x47381b['name']))return;const _0x1fa583=_0x2d0fa9['markerRange']['getWalker'](),_0x4863fc=_0x2d0fa9['markerRange']['start'],_0x28631c=_0x5e26c0['model']['schema'];let _0xd65e35=null,_0x415700=null,_0xdaa3d9=!0x1,_0x3dddfa=!0x1;for(const _0x1766b6 of _0x1fa583){const _0x200f05=_0x1766b6['item'];_0xdaa3d9=_0xdaa3d9||_0x28631c['isContent'](_0x200f05);const _0xb0293=_0x336ca4['mapper']['toViewElement'](_0x200f05);if(_0xb0293&&_0xb0293['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1766b6['type']&&(_0x28631c['isBlock'](_0x200f05)&&!_0x28631c['isLimit'](_0x200f05)&&(_0x200f05['nextSibling']||_0x4863fc['isAtEnd']?_0xd65e35&&_0xd65e35['parent']==_0x200f05||(_0xd65e35=_0x200f05,_0x2d5228(_0x1766b6['previousPosition']),_0x3dddfa=!0x0):_0x415700=_0x415700||_0x1766b6['previousPosition']));}function _0x2d5228(_0x56490d){const _0x46054a=_0x336ca4['mapper']['toViewPosition'](_0x56490d),_0x3653fb=_0x336ca4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x485a2d});_0x336ca4['writer']['insert'](_0x46054a,_0x3653fb),_0x336ca4['mapper']['bindElementToMarker'](_0x3653fb,_0x2d0fa9['markerName']);}_0xdaa3d9||_0x3dddfa||!_0x415700||_0x2d5228(_0x415700);};}class _t extends _0x3b1bfe{constructor(_0x1f1058){super(_0x1f1058);const _0x41a2db=_0x1f1058['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x41a2db,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x41a2db,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5d88d6=this['editor'],_0x1d7d25=_0x5d88d6['plugins']['get'](d),_0x57d175=_0x1d7d25['isReady']?_0x1d7d25['diff']['newRevisionId']:null;_0x5d88d6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x57d175);}['refresh'](){const {isReady:_0x12daa7,isEnabled:_0x589983,repository:_0x25077d,diff:_0x58254d}=this['editor']['plugins']['get'](d),_0x3500e3=_0x58254d&&_0x25077d['getLaterVisibleRevision'](_0x58254d['newRevisionId']);this['isEnabled']=_0x12daa7&&_0x589983&&Boolean(_0x3500e3);}}class yt extends _0x3b1bfe{['_step'];constructor(_0x6f8da1,{direction:_0x390b9}){super(_0x6f8da1);const _0x1ec890=_0x6f8da1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x390b9?0x1:-0x1,this['listenTo'](_0x1ec890,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1ec890,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1ec890,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5f0531=this['editor'],_0x448e0d=_0x5f0531['plugins']['get'](d),{isNavigationMode:_0x256190,currentChangeNumber:_0x5652cf}=_0x448e0d;let _0x120394;if(_0x448e0d['activeChange']=_0x256190?_0x448e0d['diff']['changes']['get'](_0x5652cf+this['_step']):_0x448e0d['diff']['changes']['first'],_0x448e0d['activeChange']['data']['isOnRoot'])_0x120394=_0x5f0531['editing']['view']['getDomRoot'](_0x448e0d['activeChange']['rootName']);else{const _0x34c442=_0x5f0531['model']['markers']['get']('revision:'+_0x448e0d['activeChange']['id']);_0x120394=_0xbdfbf2(_0x5f0531['editing'],_0x34c442);}_0x276e18({'target':_0x120394,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x43e8cd,currentChangeNumber:_0x492870,numberOfChanges:_0xbdfd0,isReady:_0x9feb08,isEnabled:_0x3dbe03}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3dbe03&&_0x9feb08&&_0xbdfd0)&&(!_0x43e8cd||(0x1===this['_step']?_0x492870<_0xbdfd0-0x1:_0x492870>0x0));}}class di extends ts{constructor(_0x4827b0){super(_0x4827b0);const _0x4d2dde=this['bindTemplate'],_0x412158=new te(_0x4827b0),_0x28ec87=new te(_0x4827b0);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',(_0x340d8e,_0x431bb3)=>_0x340d8e&&_0x431bb3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2e734f,_0x435f33,_0x198578,_0x2bb1e3)=>{if(!_0x2e734f)return R(_0x4827b0,'Loading...');if(!_0x198578)return R(_0x4827b0,'No\x20changes');const _0x47f667=R(_0x4827b0,'NUMBER_OF_CHANGES',_0x198578);return _0x2bb1e3?R(_0x4827b0,'X_OF_Y_CHANGES',[_0x435f33+0x1,_0x198578]):_0x47f667;}),_0x412158['set']({'label':R(_0x4827b0,'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'}),_0x28ec87['set']({'label':R(_0x4827b0,'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'}),_0x412158['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x28ec87['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x412158['on']('execute',()=>this['fire']('execute','backward')),_0x28ec87['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',_0x4d2dde['if']('_isStatusLabelVisible','ck-hidden',_0x374d11=>!_0x374d11)]},'children':[{'text':_0x4d2dde['to']('isNavigationMode',_0x1dfec8=>_0x1dfec8?R(_0x4827b0,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4827b0,'Total')+':\x20')}]},{'text':_0x4d2dde['to']('_statusText')}]},new _0x2902ac(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x412158,_0x28ec87]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x212b78{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x505e1e=this['editor']['editing']['view'];_0x505e1e['change'](_0x215448=>{for(const _0x460567 of _0x505e1e['document']['roots'])_0x215448['addClass'](le,_0x460567);});}['hide'](){const _0x188530=this['editor']['editing']['view'];_0x188530['change'](_0xbeccea=>{for(const _0x608759 of _0x188530['document']['roots'])_0xbeccea['removeClass'](le,_0x608759);});}}class m extends _0x212b78{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1cb82d=this['editor'],_0x2bb4c5=_0x1cb82d['plugins']['get'](d),_0x44d5fc=_0x1cb82d['plugins']['get'](ge);_0x1cb82d['ui']['componentFactory']['add']('exitToEditing',_0x27da93=>{const _0x501f5b=new te(_0x27da93);return _0x501f5b['set']({'label':R(_0x27da93,'Back\x20to\x20editing'),'icon':_0x327ed7['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x501f5b,'execute',()=>{_0x1cb82d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x501f5b;}),_0x1cb82d['ui']['componentFactory']['add']('restoreRevision',_0x4ce3a9=>{const _0x19aea8=new te(_0x4ce3a9);return _0x19aea8['set']({'label':R(_0x4ce3a9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x19aea8['bind']('isEnabled')['to'](_0x1cb82d['commands']['get']('restoreRevision')),this['listenTo'](_0x19aea8,'execute',()=>_0x1cb82d['execute']('restoreRevision')),_0x19aea8;}),_0x1cb82d['ui']['componentFactory']['add']('changesNavigation',_0x4c4f62=>{const _0x58b581=new di(_0x4c4f62),_0x4d3b85=_0x1cb82d['commands']['get']('showPreviousChange'),_0x3e411c=_0x1cb82d['commands']['get']('showNextChange');return _0x58b581['bind']('isBackwardNavigationEnabled')['to'](_0x4d3b85,'isEnabled'),_0x58b581['bind']('isForwardNavigationEnabled')['to'](_0x3e411c,'isEnabled'),_0x58b581['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2bb4c5),this['listenTo'](_0x58b581,'execute',(_0x1cb1d0,_0x182093)=>{_0x1cb82d['execute']('forward'===_0x182093?'showNextChange':'showPreviousChange');}),_0x58b581;}),_0x44d5fc['show'](),_0x2bb4c5['on']('change:isReady',(_0x98ba08,_0x47b6c5,_0x138bf8)=>{_0x138bf8?_0x44d5fc['hide']():_0x44d5fc['show']();});}}class pt extends _0x176f9e{['_resizeObserver']=null;constructor(_0xebc09e,_0x3846fa){super(_0xebc09e,_0x3846fa);const _0x42b769=this['bindTemplate'];this['set']({'label':R(_0xebc09e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xebc09e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x42b769['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 _0x115f7d=this['fieldView']['element'];this['_tooltipString']=_0x115f7d['scrollWidth']>_0x115f7d['clientWidth']&&_0x115f7d['value']||'';}}class oi extends ts{constructor(_0x2b742b,_0x8d7222,_0x285dc6){super(_0x2b742b);const _0x132be4=new _0x4ff77b();_0x132be4['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 _0x1597d9=['ck','ck-revision-history-sidebar__revision-author'];_0x285dc6&&_0x1597d9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x12f104=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2b742b,_0x285dc6?'Revision\x20creator':'Revision\x20author')},'children':[_0x132be4,_0x8d7222['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1597d9},'children':_0x12f104});}}function ai(_0x2fafc1,_0x1df69a){const _0x59d7e5=_0x2fafc1['bindTemplate'],_0x24d2bf=_0x2fafc1['locale'],_0x33ac20=_0xcdad56(_0x24d2bf);_0x33ac20['panelPosition']='sw';const _0x1bcccf=function(_0x47fcbf,_0xf20ebf){const _0x245a9d=function(_0x545260,_0xbd1bbe){const _0x4312d7=_0x545260['locale'],_0x5c34b9={'Compare\x20against\x20selected':R(_0x4312d7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4312d7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4312d7,'Restore\x20this\x20revision')};return _0xbd1bbe['map'](_0x3074cb=>{const _0x3f1a8f=_0x5c34b9[_0x3074cb['name']];return _0x3f1a8f&&_0x3f1a8f!==_0x3074cb['name']&&(_0x3074cb['name']=_0x3f1a8f),_0x3074cb;});}(_0x47fcbf,_0xf20ebf),_0x4ac50f=new _0x4cc07d();for(const _0x57b832 of _0x245a9d){const _0x4ac673={'type':'button','model':new _0x5f0624({'label':_0x57b832['name'],'class':_0x57b832['class'],'withText':!0x0,'role':'menuitem','_action':_0x57b832['action']})};_0x4ac673['model']['bind']('isEnabled')['to'](_0x47fcbf,'isActionsDropdownOpen',_0x20cf92=>'function'!=typeof _0x57b832['isEnabled']||(!_0x20cf92||_0x57b832['isEnabled'](_0x47fcbf))),_0x4ac50f['add'](_0x4ac673);}return _0x4ac50f;}(_0x2fafc1,_0x1df69a);return _0x2fafc1['bind']('isActionsDropdownOpen')['to'](_0x33ac20,'isOpen'),_0x33ac20['buttonView']['set']({'label':R(_0x24d2bf,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x327ed7['threeVerticalDots']}),_0x33ac20['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x59d7e5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x59d7e5['to'](_0x373ed9=>_0x373ed9['stopPropagation']())}}),_0x33ac20['on']('execute',_0x36220b=>{_0x2fafc1['isReady']&&'function'==typeof _0x36220b['source']['_action']&&_0x36220b['source']['_action'](_0x2fafc1);}),to(_0x33ac20,_0x1bcccf,{'role':'menu'}),_0x33ac20['listenTo'](_0x2fafc1,'change:isActionsDropdownOpen',(_0x973a1,_0x516f23,_0x568b3b)=>{if(_0x568b3b)for(const _0x385551 of _0x33ac20['listView']['items']){const _0x30a48d=_0x385551['children']['first'],_0xdfde87=_0x1df69a['find'](_0x2f3973=>_0x2f3973['action']===_0x30a48d['_action'])['isVisible'];_0x385551['isVisible']=void 0x0===_0xdfde87||_0xdfde87(_0x2fafc1);}}),_0x33ac20;}class si extends/* #__PURE__ -- @preserve */
26
+ _0xda0cd5(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x662420,_0x2e78c5,_0x14863b,_0x3db570){super(_0x662420);const _0x1eea88=this['bindTemplate'],_0x5c5a83=function(_0x24344b,_0x1c6b40){const _0x1dd5ae=Array['from'](_0x1c6b40['authors'])['filter'](_0x64d551=>_0x64d551!=_0x1c6b40['creator']);return _0x1c6b40['creator']&&_0x1dd5ae['unshift'](_0x1c6b40['creator']),_0x1dd5ae['map'](_0x2d5b5d=>new oi(_0x24344b,_0x2d5b5d,_0x2d5b5d==_0x1c6b40['creator']));}(_0x662420,_0x2e78c5);this['id']=_0x2e78c5['id'],this['_revision']=_0x2e78c5,this['_requireRevisionName']=_0x3db570,this['bind']('name','createdAt')['to'](_0x2e78c5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x11cfe6=>{return _0x385673=_0x662420['uiLanguage'],(_0x1cb888=_0x11cfe6)['toLocaleDateString'](_0x385673,{'month':'long','day':'numeric'})+',\x20'+_0x1cb888['toLocaleTimeString'](_0x385673,{'hour':'numeric','minute':'numeric'});var _0x385673,_0x1cb888;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x662420,_0x20cf4d),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x45b1df=>_0x45b1df||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x119213,_0x13b6ba)=>_0x119213&&_0x13b6ba),this['revisionActionsView']=_0x14863b&&_0x14863b['length']?ai(this,_0x14863b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1eea88['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1eea88['if']('isEnabled','ck-disabled',_0x35bc9a=>!_0x35bc9a),_0x1eea88['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1eea88['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1eea88['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':_0x1eea88['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':_0x5c5a83}]},this['revisionActionsView']],'on':{'click':_0x1eea88['to'](_0x1b4e05=>{_0x1b4e05['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x509870=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x509870,'change',()=>{this['_requireRevisionName']&&!_0x509870['value']||this['fire']('setName',{'id':this['id'],'name':_0x509870['value']}),_0x509870['value']||(_0x509870['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x2c28bb,_0x3ef756){const _0x22c444=_0x30157e['fromJSDate'](_0x2c28bb)['setLocale'](_0x3ef756),_0x2439b8=_0x30157e['local'](),_0x66bbdd=_0x2439b8['minus']({'days':0x1})['startOf']('day');let _0x2fb2e1,_0xf9c837;return _0x22c444['hasSame'](_0x2439b8,'day')?(_0x2fb2e1=_0x22c444['startOf']('day')['toJSDate'](),_0xf9c837=_0x22c444['toRelativeCalendar']()):_0x22c444['hasSame'](_0x66bbdd,'day')?(_0x2fb2e1=_0x66bbdd['toJSDate'](),_0xf9c837=_0x22c444['toRelativeCalendar']()):_0x22c444['hasSame'](_0x2439b8,'week')?(_0x2fb2e1=_0x22c444['startOf']('week')['toJSDate'](),_0xf9c837=_0x22c444['weekdayLong']||''):_0x22c444['hasSame'](_0x2439b8,'year')?(_0x2fb2e1=_0x22c444['startOf']('month')['toJSDate'](),_0xf9c837=_0x22c444['monthLong']||''):(_0x2fb2e1=_0x22c444['startOf']('year')['toJSDate'](),_0xf9c837=String(_0x22c444['year'])),{'startDate':_0x2fb2e1,'localizedPeriodName':_0xf9c837};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2fbb14,_0x14c499,_0x1ff18d,_0x52e135){super(_0x2fbb14);const _0x3f12c6=ti(_0x14c499,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x14c499,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1ff18d,this['_requireRevisionName']=_0x52e135,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':_0x3f12c6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x125cf2){const _0x586cdb=new si(this['locale'],_0x125cf2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x586cdb);}['removeRevision'](_0x136d51){const _0x1b6aba=this['revisionViews']['find'](_0x1bd9b8=>_0x1bd9b8['id']===_0x136d51['id']);this['revisionViews']['remove'](_0x1b6aba);}}class cs extends ts{constructor(_0x2ce657){super(_0x2ce657);const _0x499d0f=new _0x4ff77b();_0x499d0f['content']=_0x327ed7['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x499d0f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x2ce657,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x51d4c0,_0x22eef5,_0x71e998,_0x536820){super(_0x51d4c0);const _0x47c4b9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x22eef5,this['_revisionActions']=_0x71e998,this['_requireRevisionName']=_0x536820,this['on']('select',(_0x1116f1,_0xdd524e)=>{this['fire']('revisionSelected',_0xdd524e);}),this['on']('setName',(_0x314057,_0x4d26e1)=>{this['fire']('revisionSetName',_0x4d26e1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x51d4c0),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x47c4b9['if']('isEnabled','ck-disabled',_0x139e84=>!_0x139e84)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3729a1 of this['_revisions'])this['_addRevision'](_0x3729a1);this['_revisions']['on']('add',(_0x14206a,_0x2a598f)=>{this['_addRevision'](_0x2a598f);}),this['_revisions']['on']('remove',(_0x51bdb5,_0x5348e7)=>{this['_removeRevision'](_0x5348e7);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x103a57=>_0x103a57['revisionViews']['map'](_0x28f61d=>_0x28f61d))['flat']();}['selectRevision'](_0x2a2ade){for(const _0x39498e of this['revisionViews'])_0x2a2ade&&_0x2a2ade['id']===_0x39498e['id']?_0x39498e['select']():_0x39498e['deselect']();}['highlightRevisions'](_0x5a9b6b){for(const _0x1b078d of this['revisionViews'])_0x5a9b6b['some'](({id:_0x26a619})=>_0x26a619===_0x1b078d['id'])?_0x1b078d['highlight']():_0x1b078d['unhighlight']();}['_addRevision'](_0x520bb9){const _0x30da5b=ti(_0x520bb9['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x13a4ad=this['timePeriodViews']['get'](0x0);_0x13a4ad&&_0x13a4ad['startDate']['getTime']()===_0x30da5b['getTime']()||(_0x13a4ad=new ei(this['locale'],_0x30da5b,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x13a4ad)),_0x13a4ad['addRevision'](_0x520bb9);}['_removeRevision'](_0x51f22f){const _0x36a43a=ti(_0x51f22f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x36a43a)['removeRevision'](_0x51f22f);}['_getTimePeriodViewByStartDate'](_0x3c6544){return this['timePeriodViews']['find'](_0x108f1b=>_0x108f1b['startDate']['getTime']()===_0x3c6544['getTime']());}}class g extends _0x212b78{['_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(_0x5d39ef){super(_0x5d39ef),this['_revisionViewer']=_0x5d39ef['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xbb4091=this['_revisionsRepository']['_revisions'],_0x49553d=this['_createRevisionActions'](),_0x584068=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0xbb4091,_0x49553d,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',(_0x594136,_0x36f9fe)=>{_0x36f9fe['revisionViews']['on']('add',(_0x264f7e,_0x9175d6)=>{_0x9175d6['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)),_0x584068['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4472ed=this['_revisionsRepository']['getRevision'](0x0);if(_0x4472ed){const _0x5579b3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4472ed['id']);this['_revisionViewer']['compare'](_0x4472ed,_0x5579b3);}}['_handleRevisionSelected'](_0x21c8f4,_0x4f1f30){const _0x24cd8c=this['_revisionsRepository']['getRevision'](_0x4f1f30['id']),_0x4cc6bd=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x24cd8c['id']);this['_revisionViewer']['compare'](_0x24cd8c,_0x4cc6bd);}['_handleRevisionSetName'](_0x29d9ad,_0x283629){this['_revisionsRepository']['getRevision'](_0x283629['id'])['setName'](_0x283629['name']);}['_handleDiffChange'](_0x5675c7,_0x28e053,_0xe57762){const _0x5294e3=this['_revisionsRepository']['getRevisionsInDiff'](_0xe57762);_0x5294e3['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5294e3),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5294e3[0x0]));}['_createRevisionActions'](){const _0x3f689d=this['editor'],_0x24653d=g['availableRevisionActions'],_0x2aa560=_0x3f689d['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2aa560['length'])return _0x2aa560['map'](_0x58902a=>{const _0x16d0df='string'==typeof _0x58902a?Object['assign']({},_0x24653d[_0x58902a]):_0x58902a;return _0x16d0df['action']=_0x16d0df['action']['bind'](this,_0x3f689d),_0x16d0df['isVisible']&&(_0x16d0df['isVisible']=_0x16d0df['isVisible']['bind'](this,_0x3f689d)),_0x16d0df;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xd66637},_0x476004)=>{const _0x1a9fc6=_0xd66637['get'](d),_0x273089=_0x1a9fc6['repository'];let _0x402415=_0x1a9fc6['diff']['newRevisionId'],_0x5f3d0c=_0x476004['id'];_0x273089['getIndex'](_0x402415)>_0x273089['getIndex'](_0x5f3d0c)&&([_0x402415,_0x5f3d0c]=[_0x5f3d0c,_0x402415]),_0x1a9fc6['compare'](_0x402415,_0x5f3d0c);},'isVisible':({plugins:_0x5d3f26},_0x322801)=>{const _0x7f8f5e=_0x5d3f26['get'](d);return!(_0x7f8f5e['repository']['getRevisionsInDiff'](_0x7f8f5e['diff'])['length']>0x2)&&!_0x322801['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5cf167,{id:_0x3f3f52})=>{_0x5cf167['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f3f52);},'isVisible':({plugins:_0x2553e1},_0xdc7b98)=>!!_0x2553e1['get'](d)['repository']['getLaterVisibleRevision'](_0xdc7b98['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x55e1c4},{id:_0x16f93f,revisionNameView:_0x106d2c})=>{const _0x27f2c1=_0x55e1c4['get'](d),_0x1442d4=_0x27f2c1['repository']['getEarlierVisibleRevision'](_0x16f93f);_0x27f2c1['compare'](_0x16f93f,_0x1442d4),_0x106d2c['focus'](),_0x106d2c['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x284cbb,_0x4801db){super(_0x284cbb),this['_view']=_0x4801db,this['_toolbarConfig']=ht(_0x284cbb['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x22be27){const _0xd5c930=this['editor'],_0x5b9ab2=this['view'],_0x38e2a2=_0xd5c930['editing']['view'],_0x354105=_0x5b9ab2['editable'],_0x345f51=_0x38e2a2['document']['getRoot']();_0x354105['name']=_0x345f51['rootName'],_0x5b9ab2['render']();const _0x2ca5af=_0x354105['element'];this['setEditableElement'](_0x354105['name'],_0x2ca5af),_0x5b9ab2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x38e2a2['attachDomRoot'](_0x2ca5af),this['_elementReplacer']['replace'](_0x22be27,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2b625b=this['view'],_0x3e6a02=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3e6a02['detachDomRoot'](_0x2b625b['editable']['name']),_0x2b625b['destroy']();}['_initToolbar'](){const _0xbd25c6=this['view'];_0xbd25c6['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xbd25c6['stickyPanel']['limiterElement']=_0xbd25c6['element'],_0xbd25c6['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x38e6ba})=>_0x38e6ba),_0xbd25c6['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xbd25c6['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xe19c1e,_0x2d0075,_0x49daa1={}){super(_0xe19c1e),this['stickyPanel']=new lt(_0xe19c1e),this['toolbar']=new nt(_0xe19c1e,{'shouldGroupWhenFull':_0x49daa1['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0xe19c1e,_0x2d0075);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5d71eb,_0x21d95e){super(_0x21d95e),this['sourceElement']=_0x5d71eb,this['model']['document']['createRoot']();const _0x33da70=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x33da70);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x148f07,_0x168bde){const _0x10af56=new this(_0x148f07,_0x168bde);return await _0x10af56['initPlugins'](),await _0x10af56['ui']['init'](_0x148f07),await _0x10af56['data']['init'](_0x10af56['config']['get']('initialData')||''),_0x10af56['fire']('ready'),_0x10af56;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x1c98c7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10904c){function _0x3564d9(_0x435afb){return _0x435afb['map'](_0x21afa3=>String['fromCharCode'](_0x21afa3))['join']('');}super(_0x10904c),this['result']='end',_0x10904c[_0x3564d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3564d9([0x76,0x69,0x65,0x77])][_0x3564d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3564d9([0x61,0x75,0x74,0x6f]),_0x10904c[_0x3564d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3564d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3564d9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3564d9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3564d9([0x6f,0x6b])});}}class H extends _0x1c98c7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5456a1){if(super(_0x5456a1),!this['editor']['config']['get']('revisionHistory'))throw new _0x420f22('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1265dc=>this['_showRevisionViewer']({..._0x1265dc,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4fe975=>this['_closeRevisionViewer'](_0x4fe975)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x7a5ffa=>this['_restoreRevision'](_0x7a5ffa)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x27c451){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x27c451;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x408c08){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x408c08);}['getRevision'](_0x6614d8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6614d8);}['getRevisions'](_0x138000){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x138000||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x13e9c0=this['editor'],_0x285a2e=_0x1541f1(_0x13e9c0,p),_0x55e75b=_0x13e9c0['plugins']['get']('RevisionTracker'),_0x4d39a7=_0x13e9c0['plugins']['get']('Users')['users'];return _0x285a2e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x285a2e['lazyRoots'],(_0x285a2e['plugins']['push'](k,d,m,class extends _0x1c98c7{static get['requires'](){return[d,'Users'];}['init'](){const _0x4b248f=this['editor']['plugins']['get']('Users');for(const _0x22f12f of _0x4d39a7)_0x22f12f['isAnonymous']||_0x4b248f['getUser'](_0x22f12f['id'])||_0x4b248f['addUser'](_0x22f12f);const _0x6a1835=_0x55e75b['repository']['getRevisions']();let _0x202b33=null;const _0x290675=this['editor']['plugins']['get']('RevisionViewer');_0x290675['adapter']=_0x55e75b['adapter'],_0x290675['bind']('isEnabled')['to'](_0x55e75b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x13e9c0,'isReadOnly',_0x5be65e=>!_0x5be65e);for(const _0x3fa9b0 of _0x6a1835){const _0x1ecb3f=null===_0x3fa9b0['creator'];if(_0x1ecb3f&&_0x3fa9b0['toVersion']===_0x3fa9b0['fromVersion'])continue;const _0x2a563c=_0x3fa9b0['toJSON']();_0x290675['addRevisionData'](_0x2a563c,(_0x376c97,_0x113b7f,_0x370565)=>{if(_0x1ecb3f){if(_0x202b33)_0x202b33['_update'](_0x376c97,_0x113b7f);else{if(!_0x113b7f){const _0x12c88d=_0x370565['toJSON']();_0x12c88d['id']=_0x4e6837(),_0x55e75b['saveRevision'](_0x12c88d,_0x370565['toVersion'])['then'](_0x246e5d=>{_0x202b33=_0x246e5d;});}}}else _0x3fa9b0['_update'](_0x376c97,_0x113b7f);});}}},g),_0x285a2e);}['_enhanceShowRevisionViewerCallback'](){const _0x123edf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2098ce=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3aeb19=this['editor']['plugins']['get']('Autosave');await _0x3aeb19['save']();}else await _0x2098ce['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x197e77=this['editor']['plugins']['get']('Dialog');_0x197e77['isOpen']&&_0x197e77['hide']();}const _0x44f0dc=this['_getRevisionViewerEditorConfig']();return _0x123edf(_0x44f0dc)['then'](_0x1af658=>{return(this['_viewerEditor']=_0x1af658,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1af658;})['catch'](_0x20f2c2=>(console['error'](_0x20f2c2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x594968=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'](),_0x594968(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xc6afe0=this['editor']['plugins']['get']('Annotations');_0xc6afe0['refreshVisibility'](),_0xc6afe0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x23b9f5){const _0x23b934=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe55349=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x433c68=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x433c68,_0x23b9f5)['then'](_0x42e440=>(_0xe55349['style']['display']='block',_0x23b934['style']['display']='none',_0x42e440));}['_closeRevisionViewer'](_0x1bd05e){const _0x5e3ca7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5e3ca7['style']['display']='',_0x1bd05e['destroy']();}async['_restoreRevision'](_0x36ceca){const _0xf4ac42=this['editor'],_0x29be6d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1c5ff7=_0xf4ac42['plugins']['get']('RevisionTracker'),_0x43079c=_0x29be6d['repository']['getRevision'](_0x36ceca);let _0x3489c7,_0x544cc9,_0x227f29;try{_0x3489c7=await _0x29be6d['getRevisionData'](_0x43079c),_0x544cc9=await _0x29be6d['getRevisionRootsAttributes'](_0x43079c);}catch(_0x492c60){return void console['error'](_0x492c60);}_0xf4ac42['model']['change'](_0x555826=>{for(const _0x1d45bc of Array['from'](_0xf4ac42['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x555826['removeMarker'](_0x1d45bc);}),_0x29be6d['isReady']=!0x1,_0xf4ac42['model']['enqueueChange'](_0x4f1dd6=>{_0x4f1dd6['setSelection'](null),_0x4f1dd6['removeSelectionAttribute'](_0xf4ac42['model']['document']['selection']['getAttributeKeys']());const _0x3ca098=Object['keys'](_0x3489c7);for(const _0x58a407 of _0xf4ac42['model']['document']['roots'])'$graveyard'!=_0x58a407['rootName']&&_0x58a407['isAttached']()&&!_0x3ca098['includes'](_0x58a407['rootName'])&&_0x4f1dd6['detachRoot'](_0x58a407);for(const _0x433e93 of _0x3ca098){let _0x12c493=_0xf4ac42['model']['document']['getRoot'](_0x433e93);_0x12c493&&_0x12c493['isAttached']()||(_0x12c493=_0x4f1dd6['addRoot'](_0x433e93));const _0x5279fc=_0x544cc9[_0x433e93],_0x59f81d=Object['keys'](_0x5279fc),_0x1bf7d9=_0x3489c7[_0x433e93];for(const _0x12784c of _0x12c493['getAttributeKeys']())_0x59f81d['includes'](_0x12784c)||_0x4f1dd6['removeAttribute'](_0x12784c,_0x12c493);for(const _0x728448 of _0x59f81d)_0x4f1dd6['setAttribute'](_0x728448,_0x544cc9[_0x433e93][_0x728448],_0x12c493);_0x4f1dd6['remove'](_0x4f1dd6['createRangeIn'](_0x12c493)),_0x4f1dd6['insert'](_0xf4ac42['data']['parse'](_0x1bf7d9,_0x12c493),_0x12c493,0x0);}});const _0x759c30=R(_0xf4ac42['locale'],'Restored');if(_0x43079c['name'])_0x227f29=-0x1==_0x43079c['name']['indexOf'](_0x759c30)?_0x759c30+':\x20'+_0x43079c['name']:_0x43079c['name'];else _0x227f29=_0x759c30+':\x20'+(_0x43079c['createdAt']['toLocaleDateString'](_0xf4ac42['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x43079c['createdAt']['toLocaleTimeString'](_0xf4ac42['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1c5ff7['saveRevision']({'name':_0x227f29}),_0x29be6d['isReady']=!0x0,_0xf4ac42['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1bd110){super(_0x1bd110),this['_revisionViewer']=_0x1bd110['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x48e097=this['_revisionsRepository']['_revisions'],_0x4a79bb=this['_createRevisionActions'](),_0x27df50=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x48e097,_0x4a79bb,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',(_0x15d979,_0xadf88f)=>{_0xadf88f['revisionViews']['on']('add',(_0xc79ea6,_0x8a244c)=>{_0x8a244c['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)),_0x27df50['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1f2d75=this['_revisionsRepository']['getRevision'](0x0);if(_0x1f2d75){const _0x12d99e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1f2d75['id']);this['_revisionViewer']['compare'](_0x1f2d75,_0x12d99e);}}['_handleRevisionSelected'](_0x4664a6,_0x338d99){const _0x315e96=this['_revisionsRepository']['getRevision'](_0x338d99['id']),_0x108cea=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x315e96['id']);this['_revisionViewer']['compare'](_0x315e96,_0x108cea);}['_handleRevisionSetName'](_0x1e5ba7,_0x4410b7){this['_revisionsRepository']['getRevision'](_0x4410b7['id'])['setName'](_0x4410b7['name']);}['_handleDiffChange'](_0x49772d,_0x3ce36d,_0x151234){const _0x1ca566=this['_revisionsRepository']['getRevisionsInDiff'](_0x151234);_0x1ca566['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1ca566),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1ca566[0x0]));}['_createRevisionActions'](){const _0x2f86fb=this['editor'],_0x57cec6=g['availableRevisionActions'],_0x5c4070=_0x2f86fb['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5c4070['length'])return _0x5c4070['map'](_0x37000b=>{const _0x526143='string'==typeof _0x37000b?Object['assign']({},_0x57cec6[_0x37000b]):_0x37000b;return _0x526143['action']=_0x526143['action']['bind'](this,_0x2f86fb),_0x526143['isVisible']&&(_0x526143['isVisible']=_0x526143['isVisible']['bind'](this,_0x2f86fb)),_0x526143;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x54f061},_0x142f7f)=>{const _0x2e26c1=_0x54f061['get'](d),_0x19cdf8=_0x2e26c1['repository'];let _0x4b032e=_0x2e26c1['diff']['newRevisionId'],_0xf4a0f3=_0x142f7f['id'];_0x19cdf8['getIndex'](_0x4b032e)>_0x19cdf8['getIndex'](_0xf4a0f3)&&([_0x4b032e,_0xf4a0f3]=[_0xf4a0f3,_0x4b032e]),_0x2e26c1['compare'](_0x4b032e,_0xf4a0f3);},'isVisible':({plugins:_0x3bf954},_0x5db9a9)=>{const _0x31628f=_0x3bf954['get'](d);return!(_0x31628f['repository']['getRevisionsInDiff'](_0x31628f['diff'])['length']>0x2)&&!_0x5db9a9['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1cb08e,{id:_0x13278d})=>{_0x1cb08e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x13278d);},'isVisible':({plugins:_0x5389ab},_0x24402d)=>!!_0x5389ab['get'](d)['repository']['getLaterVisibleRevision'](_0x24402d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x117938},{id:_0x4e3232,revisionNameView:_0x5ed463})=>{const _0x29d426=_0x117938['get'](d),_0x5dd607=_0x29d426['repository']['getEarlierVisibleRevision'](_0x4e3232);_0x29d426['compare'](_0x4e3232,_0x5dd607),_0x5ed463['focus'](),_0x5ed463['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x43f44c,_0x131d9b){super(_0x43f44c),this['_view']=_0x131d9b,this['_toolbarConfig']=ht(_0x43f44c['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x47d575){const _0x1bf98c=this['editor'],_0x35cebe=this['view'],_0x24ee43=_0x1bf98c['editing']['view'],_0x400506=_0x35cebe['editable'],_0x23f5f7=_0x24ee43['document']['getRoot']();_0x400506['name']=_0x23f5f7['rootName'],_0x35cebe['render']();const _0x10e2f9=_0x400506['element'];this['setEditableElement'](_0x400506['name'],_0x10e2f9),_0x35cebe['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24ee43['attachDomRoot'](_0x10e2f9),this['_elementReplacer']['replace'](_0x47d575,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x53211d=this['view'],_0x4622f4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4622f4['detachDomRoot'](_0x53211d['editable']['name']),_0x53211d['destroy']();}['_initToolbar'](){const _0x174e99=this['view'];_0x174e99['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x174e99['stickyPanel']['limiterElement']=_0x174e99['element'],_0x174e99['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3b2bc7})=>_0x3b2bc7),_0x174e99['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x174e99['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5493d9,_0x3cb273,_0x4b8aef={}){super(_0x5493d9),this['stickyPanel']=new lt(_0x5493d9),this['toolbar']=new nt(_0x5493d9,{'shouldGroupWhenFull':_0x4b8aef['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x5493d9,_0x3cb273);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x28bcdc,_0x1868ea){super(_0x1868ea),this['sourceElement']=_0x28bcdc,this['model']['document']['createRoot']();const _0x29344f=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x29344f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x646aac,_0xed1a74){const _0x4509b5=new this(_0x646aac,_0xed1a74);return await _0x4509b5['initPlugins'](),await _0x4509b5['ui']['init'](_0x646aac),await _0x4509b5['data']['init'](_0x4509b5['config']['get']('initialData')||''),_0x4509b5['fire']('ready'),_0x4509b5;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x212b78{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22bed0){function _0x4c43ac(_0x403cdd){return _0x403cdd['map'](_0x585e93=>String['fromCharCode'](_0x585e93))['join']('');}super(_0x22bed0),this['result']='end',_0x22bed0[_0x4c43ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c43ac([0x76,0x69,0x65,0x77])][_0x4c43ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c43ac([0x61,0x75,0x74,0x6f]),_0x22bed0[_0x4c43ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4c43ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c43ac([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4c43ac([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4c43ac([0x6f,0x6b])});}}class H extends _0x212b78{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x40c250){if(super(_0x40c250),!this['editor']['config']['get']('revisionHistory'))throw new _0x506ec3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4ce32f=>this['_showRevisionViewer']({..._0x4ce32f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x32bba5=>this['_closeRevisionViewer'](_0x32bba5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x34a391=>this['_restoreRevision'](_0x34a391)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x134909){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x134909;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x420637){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x420637);}['getRevision'](_0x34835c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x34835c);}['getRevisions'](_0x4c76f0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4c76f0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x11f9f6=this['editor'],_0x6578c7=_0x4eff1c(_0x11f9f6,p),_0x4fae9b=_0x11f9f6['plugins']['get']('RevisionTracker'),_0x1e7ab9=_0x11f9f6['plugins']['get']('Users')['users'];return _0x6578c7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x6578c7['lazyRoots'],(_0x6578c7['plugins']['push'](k,d,m,class extends _0x212b78{static get['requires'](){return[d,'Users'];}['init'](){const _0x506903=this['editor']['plugins']['get']('Users');for(const _0x2d9f52 of _0x1e7ab9)_0x2d9f52['isAnonymous']||_0x506903['getUser'](_0x2d9f52['id'])||_0x506903['addUser'](_0x2d9f52);const _0x43ed50=_0x4fae9b['repository']['getRevisions']();let _0x5485b2=null;const _0xdef787=this['editor']['plugins']['get']('RevisionViewer');_0xdef787['adapter']=_0x4fae9b['adapter'],_0xdef787['bind']('isEnabled')['to'](_0x4fae9b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x11f9f6,'isReadOnly',_0x237c67=>!_0x237c67);for(const _0x3b404b of _0x43ed50){const _0x19a609=null===_0x3b404b['creator'];if(_0x19a609&&_0x3b404b['toVersion']===_0x3b404b['fromVersion'])continue;const _0x2d1a09=_0x3b404b['toJSON']();_0xdef787['addRevisionData'](_0x2d1a09,(_0x1fb8d4,_0x1dda66,_0x2d1810)=>{if(_0x19a609){if(_0x5485b2)_0x5485b2['_update'](_0x1fb8d4,_0x1dda66);else{if(!_0x1dda66){const _0x38b969=_0x2d1810['toJSON']();_0x38b969['id']=_0x34c6ad(),_0x4fae9b['saveRevision'](_0x38b969,_0x2d1810['toVersion'])['then'](_0x40f02d=>{_0x5485b2=_0x40f02d;});}}}else _0x3b404b['_update'](_0x1fb8d4,_0x1dda66);});}}},g),_0x6578c7);}['_enhanceShowRevisionViewerCallback'](){const _0x47f4b7=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1506f1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x337b62=this['editor']['plugins']['get']('Autosave');await _0x337b62['save']();}else await _0x1506f1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x53a676=this['editor']['plugins']['get']('Dialog');_0x53a676['isOpen']&&_0x53a676['hide']();}const _0x1e124d=this['_getRevisionViewerEditorConfig']();return _0x47f4b7(_0x1e124d)['then'](_0x25f239=>{return(this['_viewerEditor']=_0x25f239,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x25f239;})['catch'](_0x4cf474=>(console['error'](_0x4cf474),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x32a850=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'](),_0x32a850(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2fb810=this['editor']['plugins']['get']('Annotations');_0x2fb810['refreshVisibility'](),_0x2fb810['refreshPositioning']();}})));}['_showRevisionViewer'](_0x452f74){const _0xb46ca1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3299e1=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5855a4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5855a4,_0x452f74)['then'](_0x52c011=>(_0x3299e1['style']['display']='block',_0xb46ca1['style']['display']='none',_0x52c011));}['_closeRevisionViewer'](_0x4e902b){const _0x288eb6=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x288eb6['style']['display']='',_0x4e902b['destroy']();}async['_restoreRevision'](_0xfad060){const _0x4f1c30=this['editor'],_0x3fccd9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x389069=_0x4f1c30['plugins']['get']('RevisionTracker'),_0x823a7c=_0x3fccd9['repository']['getRevision'](_0xfad060);let _0x25b2ec,_0x4735f1,_0x4bdbe7;try{_0x25b2ec=await _0x3fccd9['getRevisionData'](_0x823a7c),_0x4735f1=await _0x3fccd9['getRevisionRootsAttributes'](_0x823a7c);}catch(_0x3f2fb1){return void console['error'](_0x3f2fb1);}_0x4f1c30['model']['change'](_0x55a4c3=>{for(const _0x2698a3 of Array['from'](_0x4f1c30['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x55a4c3['removeMarker'](_0x2698a3);}),_0x3fccd9['isReady']=!0x1,_0x4f1c30['model']['enqueueChange'](_0x555316=>{_0x555316['setSelection'](null),_0x555316['removeSelectionAttribute'](_0x4f1c30['model']['document']['selection']['getAttributeKeys']());const _0x53a8f8=Object['keys'](_0x25b2ec);for(const _0x1c7149 of _0x4f1c30['model']['document']['roots'])'$graveyard'!=_0x1c7149['rootName']&&_0x1c7149['isAttached']()&&!_0x53a8f8['includes'](_0x1c7149['rootName'])&&_0x555316['detachRoot'](_0x1c7149);for(const _0x424f01 of _0x53a8f8){let _0x2cef39=_0x4f1c30['model']['document']['getRoot'](_0x424f01);_0x2cef39&&_0x2cef39['isAttached']()||(_0x2cef39=_0x555316['addRoot'](_0x424f01));const _0x33af04=_0x4735f1[_0x424f01],_0x11edaf=Object['keys'](_0x33af04),_0x385b29=_0x25b2ec[_0x424f01];for(const _0x2ef646 of _0x2cef39['getAttributeKeys']())_0x11edaf['includes'](_0x2ef646)||_0x555316['removeAttribute'](_0x2ef646,_0x2cef39);for(const _0x353fba of _0x11edaf)_0x555316['setAttribute'](_0x353fba,_0x4735f1[_0x424f01][_0x353fba],_0x2cef39);_0x555316['remove'](_0x555316['createRangeIn'](_0x2cef39)),_0x555316['insert'](_0x4f1c30['data']['parse'](_0x385b29,_0x2cef39),_0x2cef39,0x0);}});const _0x22a9a9=R(_0x4f1c30['locale'],'Restored');if(_0x823a7c['name'])_0x4bdbe7=-0x1==_0x823a7c['name']['indexOf'](_0x22a9a9)?_0x22a9a9+':\x20'+_0x823a7c['name']:_0x823a7c['name'];else _0x4bdbe7=_0x22a9a9+':\x20'+(_0x823a7c['createdAt']['toLocaleDateString'](_0x4f1c30['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x823a7c['createdAt']['toLocaleTimeString'](_0x4f1c30['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x389069['saveRevision']({'name':_0x4bdbe7}),_0x3fccd9['isReady']=!0x0,_0x4f1c30['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};