@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250404.0 → 0.0.0-nightly-20250405.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 _0x32ac1c,uid as _0x3cce8a,Collection as _0xce0641,logWarning as _0x611ad9,FocusTracker as _0x1d7358,KeystrokeHandler as _0x2fbd22,scrollViewportToShowTarget as _0x3ccd89,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x585f88}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x425cb6,set as _0x57adba,unset as _0x17aa25,isEqual as _0x1aed24}from'es-toolkit/compat';import{Plugin as _0x432e21,PendingActions as _0x10e408,Command as _0x4bf53c,ElementApiMixin as _0x54af36,Editor as _0x152331}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3dc44b,getMarkerDomElement as _0x3748cb,ConfirmMixin as ti,sanitizeEditorConfig as _0x34620a}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3750d4,ViewAttributeElement as _0x24e0cf,ViewEmptyElement as _0xb18752,ViewRawElement as _0x22b748,ViewUIElement as _0x47bfc5,ViewDocumentFragment as _0x72ffd8,ViewText as _0x565d05,ViewElement as _0x194c36,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1e483f,IconChevronUp as _0x548b1c,IconChevronDown as _0x235c62,IconUndo as _0x483496,IconUser as _0x512e1f,IconThreeVerticalDots as _0x2da73a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1b7731,submitHandler as _0x299d24,LabeledFieldView as _0x5b84f9,createLabeledInputText as _0x307c29,createDropdown as _0x11b6e8,ListView as _0x1d094f,ListItemView as _0x46fcb4,ButtonView as te,MenuBarMenuView as _0x44467d,MenuBarMenuListView as _0x1ff7c0,MenuBarMenuListItemView as _0x74afb2,MenuBarMenuListItemButtonView as _0x50e74c,ContextualBalloon as _0x3d22b1,ToolbarSeparatorView as _0x2ebcba,IconView as _0x4262a6,addListToDropdown as _0x25c378,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xa82a03}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x32ac1c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x242b73){super(),this['id']=_0x242b73['id']||_0x3cce8a(),this['creator']=_0x242b73['creator']||null,this['authors']=_0x242b73['authors']||[],this['diffData']=_0x242b73['diffData']||null,this['toVersion']=_0x242b73['toVersion']||0x0,this['fromVersion']=_0x242b73['fromVersion']||0x0,this['set']('name',_0x242b73['name']||''),this['set']('createdAt',_0x242b73['createdAt']||new Date()),this['set']('attributes',_0x242b73['attributes']||{});}['setName'](_0x558e8c){this['_update']({'name':_0x558e8c});}['setAttribute'](_0x20df84,_0x5ef25d){const _0x23192f=_0x425cb6(this['attributes']);_0x57adba(_0x23192f,_0x20df84,_0x5ef25d),this['_update']({'attributes':_0x23192f});}['removeAttribute'](_0x4ec302){const _0x219ac0=_0x425cb6(this['attributes']);_0x17aa25(_0x219ac0,_0x4ec302),this['_update']({'attributes':_0x219ac0});}['_update'](_0x367977,_0x3a999f=!0x1){let _0x505320=!0x1;const _0x33ed43={'id':this['id']},_0x2f6b98=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5d560f of _0x2f6b98){const _0x51cad9=_0x367977[_0x5d560f];void 0x0!==_0x51cad9&&_0x51cad9!==this[_0x5d560f]&&(this[_0x5d560f]=_0x51cad9,_0x33ed43[_0x5d560f]=_0x51cad9,_0x505320=!0x0);}_0x505320&&(_0x33ed43['authors']&&(_0x33ed43['authorsIds']=_0x33ed43['authors']['map'](_0x310acf=>_0x310acf['id']),delete _0x33ed43['authors']),this['fire']('_update',_0x33ed43,_0x3a999f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x152d6a=>_0x152d6a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x432e21{['_revisions'];static get['requires'](){return[_0x3dc44b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x566325){super(_0x566325),this['_revisions']=new _0xce0641();}['afterInit'](){!async function(_0x35ea75){const _0x34e125=_0x586b0a([0x31,0x47,0x59,0x6f,0x58,0x57,0x42,0x73,0x49,0x76,0x36,0x61,0x39,0x69,0x64,0x74,0x38,0x56,0x4a,0x6b,0x66,0x41,0x7a,0x75,0x78,0x51,0x65,0x4c,0x77,0x6c,0x4e,0x45,0x44,0x67,0x43,0x33,0x5a,0x52,0x34,0x6e,0x4d,0x6d,0x54,0x4f,0x4b,0x48,0x30,0x71,0x63,0x62,0x55,0x46,0x72,0x37,0x35,0x50,0x68,0x6a,0x70,0x32,0x79,0x53]),_0x446c10=0xeb829,_0xf77bf=0x3045620b,_0x3765ee=0x3042061b^_0xf77bf,_0x507615=window[_0x586b0a([0x44,0x61,0x74,0x65])][_0x586b0a([0x6e,0x6f,0x77])](),_0x4d7946=_0x35ea75[_0x586b0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d8934=new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad7a2=>{_0x4d7946[_0x586b0a([0x6f,0x6e,0x63,0x65])](_0x586b0a([0x72,0x65,0x61,0x64,0x79]),_0x3ad7a2);}),_0x52564b={[_0x586b0a([0x6b,0x74,0x79])]:_0x586b0a([0x45,0x43]),[_0x586b0a([0x75,0x73,0x65])]:_0x586b0a([0x73,0x69,0x67]),[_0x586b0a([0x63,0x72,0x76])]:_0x586b0a([0x50,0x2d,0x32,0x35,0x36]),[_0x586b0a([0x78])]:_0x586b0a([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]),[_0x586b0a([0x79])]:_0x586b0a([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]),[_0x586b0a([0x61,0x6c,0x67])]:_0x586b0a([0x45,0x53,0x32,0x35,0x36])},_0x4c2bdb=_0x4d7946[_0x586b0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x586b0a([0x67,0x65,0x74])](_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f88e7(){let _0x3a329f,_0x548f87=null,_0x490929=null;try{if(_0x4c2bdb==_0x586b0a([0x47,0x50,0x4c]))return _0x586b0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3a329f=_0x473fdd(),!_0x3a329f)return _0x586b0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3a329f[_0x586b0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x490929=_0xe1e3da(_0x3a329f[_0x586b0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3a329f[_0x586b0a([0x6a,0x74,0x69])])),await _0x330207()?_0x160d31()?_0x2d5606()?_0x586b0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa3190b()?(_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586b0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x548f87=_0x5b1317(_0x586b0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586b0a([0x74,0x72,0x69,0x61,0x6c])&&(_0x548f87=_0x5b1317(_0x586b0a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x170165()):_0x586b0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x586b0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x586b0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xcc3091){return _0x586b0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d5606(){const _0x4b2e84=[_0x586b0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x586b0a([0x74,0x72,0x69,0x61,0x6c])][_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x507615/0x3e8:0xe10*_0x3765ee;return _0x3a329f[_0x586b0a([0x65,0x78,0x70])]<_0x4b2e84;}function _0x160d31(){const _0x2e63cb=_0x3a329f[_0x586b0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e63cb)return!0x1;if(_0x2e63cb[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x2a])))return!0x0;if(_0x2e63cb[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x52,0x48])))return!0x0;if(_0x2e63cb[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x52,0x52,0x48]))){if(_0x5c38ef())return!0x0;if(_0x4aab5b()||_0x1eb3a8())return!0x0;}return!0x1;}function _0xa3190b(){const _0x88a12c=_0x3a329f[_0x586b0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x88a12c||0x0==_0x88a12c[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x456b0d}=new URL(window[_0x586b0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x88a12c[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x456b0d))return!0x0;const _0x316c53=_0x456b0d[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e]));return _0x88a12c[_0x586b0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c166b=>_0x1c166b[_0x586b0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586b0a([0x2a])))[_0x586b0a([0x6d,0x61,0x70])](_0x5e1743=>_0x5e1743[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e])))[_0x586b0a([0x73,0x6f,0x6d,0x65])](_0x5e35c6=>_0x316c53[_0x586b0a([0x65,0x76,0x65,0x72,0x79])]((_0x3460fd,_0x2bf476)=>_0x5e35c6[_0x2bf476]===_0x3460fd||_0x5e35c6[_0x2bf476]===_0x586b0a([0x2a])));}function _0x170165(){return _0x548f87&&_0x490929?new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x738da8,_0x21f192)=>{_0x548f87[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x738da8,_0x21f192),_0x490929[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x14241e=>{_0x14241e!=_0x586b0a([0x56,0x61,0x6c,0x69,0x64])&&_0x738da8(_0x14241e);},_0x21f192);}):_0x548f87||_0x490929||_0x586b0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe1e3da(_0x59a386,_0x6368e2){return new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31848b=>{if(_0x4f086f())return _0x31848b(_0x586b0a([0x56,0x61,0x6c,0x69,0x64]));_0x260865(),_0x4d7946[_0x586b0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x586b0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4df40c=!0x1;const _0x9d5888=_0x3cce8a();function _0x13c769(_0x1fad3e){return!!_0x1fad3e&&(typeof _0x1fad3e===_0x586b0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1fad3e===_0x586b0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1fad3e[_0x586b0a([0x74,0x68,0x65,0x6e])]===_0x586b0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1fad3e[_0x586b0a([0x63,0x61,0x74,0x63,0x68])]===_0x586b0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x544e92(_0x4dd172){_0x3fcb1c(_0x4dd172)[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x4ae90a=>{if(!_0x4ae90a||_0x4ae90a[_0x586b0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x586b0a([0x6f,0x6b]))return _0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40863b(_0x4bfe5c(_0x9d5888+_0x6368e2))!=_0x4ae90a[_0x586b0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x586b0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x389653=>(_0x367f13(),_0x389653),()=>{const _0x8702e8=_0x4e56ba();return null==_0x8702e8?(_0x367f13(),_0x586b0a([0x56,0x61,0x6c,0x69,0x64])):_0x586b0a(_0x507615-_0x8702e8>(0x1449e60b^_0xf77bf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x31848b)[_0x586b0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31848b(_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b8ddc=0x30738c8b^_0xf77bf;function _0x367f13(){const _0x612bef=_0x586b0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x40863b(_0x4bfe5c(_0x59a386)),_0x48ee08=_0x36d4bf(_0x40863b(window[_0x586b0a([0x4d,0x61,0x74,0x68])][_0x586b0a([0x63,0x65,0x69,0x6c])](_0x507615/_0x2b8ddc)));window[_0x586b0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586b0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x612bef,_0x48ee08);}function _0x4e56ba(){const _0xbeec34=_0x586b0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x40863b(_0x4bfe5c(_0x59a386)),_0x341c72=window[_0x586b0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586b0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbeec34);return _0x341c72?window[_0x586b0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36d4bf(_0x341c72),0x10)*_0x2b8ddc:null;}function _0x3fcb1c(_0x28abb8){return new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cc159,_0x337d91)=>{_0x28abb8[_0x586b0a([0x74,0x68,0x65,0x6e])](_0x3cc159,_0x337d91),window[_0x586b0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x337d91,0x3044b6cb^_0xf77bf);});}}_0x4d7946[_0x586b0a([0x6f,0x6e])](_0x586b0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc8854a,_0x12da6c)=>{if(_0x12da6c[0x0]!=_0x59a386)return _0x31848b(_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12da6c[0x1]={..._0x12da6c[0x1],[_0x586b0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9d5888};},{[_0x586b0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586b0a([0x68,0x69,0x67,0x68])}),_0x4d7946[_0x586b0a([0x6f,0x6e])](_0x586b0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20f03b=>{_0x13c769(_0x20f03b[_0x586b0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4df40c=!0x0,_0x544e92(_0x20f03b[_0x586b0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x586b0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586b0a([0x6c,0x6f,0x77])}),_0x4d8934[_0x586b0a([0x74,0x68,0x65,0x6e])](()=>{_0x4df40c||_0x31848b(_0x586b0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f086f(){return _0x4d7946[_0x586b0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586b0a([0x76,0x69,0x65,0x77])][_0x586b0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x586b0a([0x61,0x75,0x74,0x6f]);}function _0x260865(){_0x4d7946[_0x586b0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586b0a([0x76,0x69,0x65,0x77])][_0x586b0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x586b0a([0x61,0x75,0x74,0x6f]);}}function _0x5b1317(_0x421ec4){const _0x35f1c6=[new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28f4b1=>setTimeout(_0x28f4b1,0x304c5cc7^_0xf77bf)),_0x4d8934[_0x586b0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x131bdd=>{const _0x2d77a8=0x3045620c^_0xf77bf,_0x201840=_0x35ea75[_0x586b0a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xe01963(){_0x201840[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d77a8&&_0x131bdd();}_0xe01963(),_0x201840[_0x586b0a([0x6f,0x6e])](_0x586b0a([0x61,0x64,0x64]),_0xe01963);})),new window[(_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7a9d8c=>{function _0x122ed8(){for(const _0x2941eb in window)if(window[_0x586b0a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x586b0a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2941eb))&&window[_0x2941eb]==_0x446c10)return _0x7a9d8c();_0x4d7946[_0x586b0a([0x73,0x74,0x61,0x74,0x65])]!=_0x586b0a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x586b0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x122ed8,0x30457183^_0xf77bf);}_0x24e608(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x122ed8();})];return window[_0x586b0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x586b0a([0x72,0x61,0x63,0x65])](_0x35f1c6)[_0x586b0a([0x74,0x68,0x65,0x6e])](()=>_0x421ec4);}async function _0x1609ce(){if(await _0x4d8934,_0x24e608(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x425e5=_0x35ea75[_0x586b0a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5ea55d=_0x35ea75[_0x586b0a([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])](_0x425e5[_0x586b0a([0x69,0x64])]),_0x5f9010=_0x4d22fd(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5f9010[_0x586b0a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x425e5['id'],_0x5ea55d?_0x5ea55d['id']:null,!0x0),_0x5f9010[_0x586b0a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5f9010[_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5f9010[_0x586b0a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x161478,void(_0x5f9010[_0x586b0a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x161478);}if(_0x24e608(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4d7c04=_0x4d22fd(_0x586b0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4d7c04[_0x586b0a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4d7c04[_0x586b0a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4d7c04[_0x586b0a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x161478,_0x4d7c04[_0x586b0a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x161478;}_0x4d7946[_0x586b0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x586b0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x161478,_0x4d7946[_0x586b0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x586b0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x161478,_0x4d7946[_0x586b0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x586b0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c38ef(){return _0x24e608(_0x586b0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d22fd(_0x586b0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x586b0a([0x73,0x74,0x61,0x74,0x65])]==_0x586b0a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4aab5b(){return _0x24e608(_0x586b0a([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 _0x1eb3a8(){return _0x24e608(_0x586b0a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x58b1c9(_0x29057a){const _0x5906ef=_0x20e2ed();_0x4d7946[_0x5906ef]=_0x586b0a([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])+_0x29057a,_0x29057a[_0x586b0a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x586b0a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x20e2ed()]=_0x446c10),_0x29057a!=_0x586b0a([0x56,0x61,0x6c,0x69,0x64])&&_0x1609ce();}function _0x20e2ed(){const _0x297c2e=window[_0x586b0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x586b0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x586b0a([0x6e,0x6f,0x77])]())[_0x586b0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x586b0a([0x2e]),'');let _0x20e9c6=_0x586b0a([0x47]);for(let _0xdda36b=0x0;_0xdda36b<_0x297c2e[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdda36b+=0x2){let _0x4d202c=window[_0x586b0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x297c2e[_0x586b0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdda36b,_0xdda36b+0x2));_0x4d202c>=_0x34e125[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d202c-=_0x34e125[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20e9c6+=_0x34e125[_0x4d202c];}return _0x20e9c6;}function _0x473fdd(){const _0x52d733=_0x4c2bdb[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e]));if(0x3!=_0x52d733[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f20b(_0x52d733[0x1]);function _0x3f20b(_0x3ed752){const _0x1169d4=_0x49ec89(_0x3ed752);return _0x1169d4&&_0x5d6414()?_0x1169d4:null;function _0x5d6414(){const _0x4c4638=_0x1169d4[_0x586b0a([0x6a,0x74,0x69])],_0x2bb76b=window[_0x586b0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c4638[_0x586b0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c4638[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c9591={..._0x1169d4,[_0x586b0a([0x6a,0x74,0x69])]:_0x4c4638[_0x586b0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c4638[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c9591[_0x586b0a([0x76,0x63])],_0x4bfe5c(_0x5c9591)==_0x2bb76b;}}}async function _0x330207(){let _0x8818bf=!0x0;try{const _0x3e519c=_0x4c2bdb[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])](_0x586b0a([0x2e])),[_0x4697d9,_0x5410c3,_0x226f8d]=_0x3e519c;return _0x39f448(_0x4697d9),await _0x102a66(_0x4697d9,_0x5410c3,_0x226f8d),_0x8818bf;}catch(_0x2faee6){return!0x1;}function _0x39f448(_0x5a9e6c){const _0x421d8c=_0x49ec89(_0x5a9e6c);_0x421d8c&&_0x421d8c[_0x586b0a([0x61,0x6c,0x67])]==_0x586b0a([0x45,0x53,0x32,0x35,0x36])||(_0x8818bf=!0x1);}async function _0x102a66(_0x109151,_0x4fa9cb,_0x27c745){const _0x4fec97=window[_0x586b0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x586b0a([0x66,0x72,0x6f,0x6d])](_0x4d7972(_0x27c745),_0x4b2f19=>_0x4b2f19[_0x586b0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1cc5b6=new window[(_0x586b0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x586b0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x109151+_0x586b0a([0x2e])+_0x4fa9cb),_0x39f353=window[_0x586b0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x586b0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x39f353)return;const _0x458c99=await _0x39f353[_0x586b0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x586b0a([0x6a,0x77,0x6b]),_0x52564b,{[_0x586b0a([0x6e,0x61,0x6d,0x65])]:_0x586b0a([0x45,0x43,0x44,0x53,0x41]),[_0x586b0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x586b0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x586b0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x39f353[_0x586b0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x586b0a([0x6e,0x61,0x6d,0x65])]:_0x586b0a([0x45,0x43,0x44,0x53,0x41]),[_0x586b0a([0x68,0x61,0x73,0x68])]:{[_0x586b0a([0x6e,0x61,0x6d,0x65])]:_0x586b0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x458c99,_0x4fec97,_0x1cc5b6)||(_0x8818bf=!0x1);}}function _0x49ec89(_0x5e62c6){return _0x5e62c6[_0x586b0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x586b0a([0x65,0x79]))?JSON[_0x586b0a([0x70,0x61,0x72,0x73,0x65])](_0x4d7972(_0x5e62c6)):null;}function _0x4d7972(_0x3e0618){return window[_0x586b0a([0x61,0x74,0x6f,0x62])](_0x3e0618[_0x586b0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x586b0a([0x2b]))[_0x586b0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x586b0a([0x2f])));}function _0x4bfe5c(_0x12743f){let _0x45b42e=0x1505;function _0xb4bdd6(_0x2cda28){for(let _0x30be49=0x0;_0x30be49<_0x2cda28[_0x586b0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30be49++){const _0x13e60c=_0x2cda28[_0x586b0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30be49);_0x45b42e=(_0x45b42e<<0x5)+_0x45b42e+_0x13e60c,_0x45b42e&=_0x45b42e;}}function _0x370d7a(_0x284fc7){Array[_0x586b0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x284fc7)?_0x284fc7[_0x586b0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x370d7a):_0x284fc7&&typeof _0x284fc7==_0x586b0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x586b0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x284fc7)[_0x586b0a([0x73,0x6f,0x72,0x74])]()[_0x586b0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47a201,_0x5cfd6d])=>{_0xb4bdd6(_0x47a201),_0x370d7a(_0x5cfd6d);}):_0xb4bdd6(window[_0x586b0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x284fc7));}return _0x370d7a(_0x12743f),_0x45b42e>>>0x0;}function _0x40863b(_0x557e58){return _0x557e58[_0x586b0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x586b0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x586b0a([0x30]));}function _0x36d4bf(_0x1c2f19){return _0x1c2f19[_0x586b0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x586b0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x586b0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x24e608(_0x1992f5){return _0x4d7946[_0x586b0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586b0a([0x68,0x61,0x73])](_0x1992f5);}function _0x4d22fd(_0x2d71a3){return _0x4d7946[_0x586b0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586b0a([0x67,0x65,0x74])](_0x2d71a3);}function _0x161478(){}function _0x586b0a(_0x153e05){return _0x153e05['map'](_0x4f6460=>String['fromCharCode'](_0x4f6460))['join']('');}_0x58b1c9(await _0x1f88e7());}(this);}['createRevision'](_0x247579){const _0x5f32ec=this['editor']['plugins']['get']('Users');return new h({'id':_0x247579['id'],'name':_0x247579['name'],'creator':_0x247579['creatorId']?_0x5f32ec['getUser'](_0x247579['creatorId']):null,'diffData':_0x247579['diffData']||_0x247579['data'],'authors':_0x247579['authorsIds']['map'](_0x39f138=>_0x5f32ec['getUser'](_0x39f138)),'createdAt':new Date(_0x247579['createdAt']),'attributes':_0x247579['attributes'],'fromVersion':_0x247579['fromVersion'],'toVersion':_0x247579['toVersion']});}['addRevision'](_0x1a8679,_0x1252f1=0x0){this['_revisions']['add'](_0x1a8679,_0x1252f1);}['getRevision'](_0x599f9a){return this['_revisions']['get'](_0x599f9a);}['getRevisions'](_0x5cb0d9={'toJSON':!0x1}){const _0x4297e3=Array['from'](this['_revisions']);return _0x4297e3['reverse'](),_0x5cb0d9['toJSON']?_0x4297e3['map'](_0x204373=>_0x204373['toJSON']()):_0x4297e3;}['getIndex'](_0x46d606){return this['_revisions']['getIndex'](_0x46d606);}['getEarlierVisibleRevision'](_0x1027c2){const [,_0x1c6d52]=this['getRevisionsIterator'](_0x1027c2,{'direction':'earlier'});return _0x1c6d52;}['getLaterVisibleRevision'](_0x208fc7){const [,_0x240e49]=this['getRevisionsIterator'](_0x208fc7,{'direction':'later'});return _0x240e49;}['getRevisionsInDiff'](_0x1f7b14){const _0x15d0a8=[];for(const _0x1b0921 of this['getRevisionsIterator'](_0x1f7b14['newRevisionId']))if(_0x15d0a8['push'](_0x1b0921),_0x1b0921['id']===_0x1f7b14['oldRevisionId'])break;return _0x15d0a8;}*['getRevisionsIterator'](_0x57415d,{direction:_0x1abb59='earlier',filter:_0x2a4a4b=()=>!0x0}={}){const _0x5cbf0a='earlier'===_0x1abb59?0x1:-0x1;let _0x3b7021=this['_revisions']['get'](_0x57415d),_0x1c6bab=this['getIndex'](_0x3b7021);for(yield _0x3b7021;_0x3b7021;){if(_0x1c6bab+=_0x5cbf0a,_0x3b7021=this['getRevision'](_0x1c6bab),!_0x3b7021)return;_0x2a4a4b(_0x3b7021)&&(yield _0x3b7021);}}}class V extends _0x432e21{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3750d4,'c'],[_0x24e0cf,'a'],[_0xb18752,'e'],[_0x22b748,'r'],[_0x47bfc5,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3750d4],['a',_0x24e0cf],['e',_0xb18752],['r',_0x22b748],['u',_0x47bfc5]]);async['loadRevisionData'](_0x36b982,_0x46a9e0){if(_0x36b982['diffData']||!_0x46a9e0)return;const _0x1297ca=this['editor']['config']['get']('collaboration.channelId'),_0x518f5f=await _0x46a9e0['getRevision']({'channelId':_0x1297ca,'revisionId':_0x36b982['id']});_0x36b982['diffData']=_0x518f5f['diffData'];}['getRevisionDocumentData'](_0x3b7c1e){const _0x515ade={};for(const _0x28925c in _0x3b7c1e['diffData']){if(_0x3b7c1e['diffData'][_0x28925c]['attachChange']&&!_0x3b7c1e['diffData'][_0x28925c]['attachChange']['isAttached'])continue;const _0x35a028=this['_removeRevisionMarkers'](JSON['parse'](_0x3b7c1e['diffData'][_0x28925c]['insertions'])),_0xce55fa=this['editor']['editing']['view']['document'],_0x25e6ee=new _0x72ffd8(_0xce55fa,_0x35a028['map'](_0x205190=>this['_getViewFromDiffObj'](_0x205190,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x515ade[_0x28925c]=this['editor']['data']['processor']['toData'](_0x25e6ee),this['editor']['data']['processor']['useFillerType']('default');}return _0x515ade;}['getRevisionRootsAttributes'](_0x5a7978){const _0x437da1={};for(const _0x3f1377 in _0x5a7978['diffData'])_0x5a7978['diffData'][_0x3f1377]['attachChange']&&!_0x5a7978['diffData'][_0x3f1377]['attachChange']['isAttached']||(_0x437da1[_0x3f1377]=_0x5a7978['diffData'][_0x3f1377]['attributesAfter']||{});return _0x437da1;}['_getTypeCharForViewElement'](_0x1bf321){return this['_viewClassToTypeChar']['get'](_0x1bf321['constructor']);}['_getViewFromDiffObj'](_0xc692d3,_0x442d4e){const _0x2b1436=this['editor']['editing']['view']['document'];if('string'==typeof _0xc692d3)return new _0x565d05(_0x2b1436,_0xc692d3);{let _0x490cb0,_0x20703d;_0x20703d='u'==_0xc692d3['type']||'r'==_0xc692d3['type']?[]:_0xc692d3['children']['map'](_0x53f544=>this['_getViewFromDiffObj'](_0x53f544,_0x442d4e));const _0x30f477=this['_typeCharToViewClass']['get'](_0xc692d3['type'])||_0x194c36,_0x3eb901=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x490cb0=new _0x30f477(_0x2b1436,_0xc692d3['name'],_0xc692d3['attributes'],_0x20703d),'u'==_0xc692d3['type']){const _0x4252b6=_0xc692d3['children'][0x0];if(_0x490cb0['render']=function(_0x3e3312){const _0x5bf7cb=_0x3e3312['createElement']('div');return _0x5bf7cb['innerHTML']=_0x4252b6,_0x5bf7cb['childNodes'][0x0];},_0x442d4e){const _0x40a750=new _0x72ffd8(_0x2b1436);_0x40a750['_appendChild'](_0x490cb0);const _0x26c472=Array['from'](_0x3eb901['viewChildrenToDom'](_0x40a750,{'bind':!0x1})),_0x18522b=_0x3eb901['domDocument']['createElement']('div');_0x18522b['append'](..._0x26c472),_0x490cb0=Array['from'](_0x3eb901['domChildrenToView'](_0x18522b))[0x0];}}else{if('r'==_0xc692d3['type']){const _0x19d2f7=_0xc692d3['children'][0x0];if(_0x490cb0['render']=function(_0x26682c){_0x26682c['innerHTML']=_0x19d2f7;},_0x442d4e){const _0x4c1d18=new _0x72ffd8(_0x2b1436);_0x4c1d18['_appendChild'](_0x490cb0);const _0x3d9cc1=Array['from'](_0x3eb901['viewChildrenToDom'](_0x4c1d18,{'bind':!0x1})),_0x22c718=_0x3eb901['domDocument']['createElement']('div');_0x22c718['append'](..._0x3d9cc1);const _0x23f871=Array['from'](_0x3eb901['domChildrenToView'](_0x22c718));_0x23f871['length']>0x1?_0x490cb0['_appendChild'](_0x23f871):_0x490cb0=_0x23f871[0x0];}}}if(_0xc692d3['customProperties']){for(const [_0x32da38,_0x2d2073]of _0xc692d3['customProperties'])_0x490cb0['_setCustomProperty'](_0x32da38,_0x2d2073);}const _0x4c4455=_0xc692d3['fillerOffset']||null;return _0x490cb0['getFillerOffset']=()=>_0x4c4455,_0x490cb0;}}['_makeModelFromViewString'](_0x479f7e){const _0x51333f=JSON['parse'](_0x479f7e),_0xa17f8b=this['editor']['editing']['view']['document'],_0x343f8d=new _0x72ffd8(_0xa17f8b,_0x51333f['map'](_0x136b17=>this['_getViewFromDiffObj'](_0x136b17,!0x0)));return this['editor']['data']['toModel'](_0x343f8d);}['_removeRevisionMarkers'](_0x35c329){return(_0x35c329=_0x35c329['filter'](_0xdb3a17=>!_0xdb3a17['name']||'revision-start'!==_0xdb3a17['name']&&'revision-end'!==_0xdb3a17['name']))['forEach'](_0x39df5e=>{'string'!=typeof _0x39df5e&&(_0x39df5e['children']=this['_removeRevisionMarkers'](_0x39df5e['children']),_0x39df5e['attributes']=_0x39df5e['attributes']['filter'](_0x1c2824=>!_0x1c2824[0x0]['startsWith']('data-revision-')));}),_0x35c329;}}function g(_0x652f76,_0x399c91,_0xc00436){const t=_0x652f76['t'];switch(_0x399c91){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'},_0xc00436);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xc00436);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x432e21{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3dc44b,I,V,_0x10e408];}constructor(_0x3a9383){super(_0x3a9383),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x109028=_0x3cce8a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x109028},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4a43b3=this['repository']['getRevision'](0x0),_0x5031cc=_0x4a43b3&&null===_0x4a43b3['creator']?_0x4a43b3:null;if(this['_continueCurrentRevision']=!!_0x5031cc&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x540782=this['_source']['getCurrentRevisionId'](),_0x4b62c9=this['repository']['getRevision'](_0x540782);if(_0x4b62c9)this['_startingVersion']=_0x4b62c9['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x59a25b=this['_source']['history']['_operations']['find'](_0x237998=>!_0x237998['_isInit']),_0x4f863b=_0x59a25b?_0x59a25b['baseVersion']:this['_source']['history']['version'];_0x4a43b3?(_0x4a43b3['toVersion']<_0x4f863b&&_0x4a43b3['_update']({'toVersion':_0x4f863b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5031cc['id'],this['_startingVersion']=_0x5031cc['fromVersion']):(this['_startingVersion']=_0x4a43b3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4f863b,this['_continueCurrentRevision']=!0x1);}}else _0x5031cc&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5031cc['toVersion'],this['editor']['model']['document']['history']['version']),_0x5031cc['fromVersion']===_0x5031cc['toVersion']?(0x0!==_0x5031cc['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5031cc['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5031cc['id'],this['_startingVersion']=_0x5031cc['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',_0x14a7a6=>!_0x14a7a6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4577f0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13e714;for(const _0xa6fa85 in _0x4577f0){const _0x5cb9f2=_0xa6fa85,_0x2a28f1=_0x4577f0[_0x5cb9f2];if('revisionHistoryLicenseKeyValid'==_0x2a28f1||'revisionHistoryLicenseKeyInvalid'==_0x2a28f1||'revisionHistoryLicenseKeyExpired'==_0x2a28f1||'revisionHistoryLicenseKeyDomainLimit'==_0x2a28f1||'revisionHistoryLicenseKeyNotAllowed'==_0x2a28f1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2a28f1||'revisionHistoryLicenseKeyTrialLimit'==_0x2a28f1||'revisionHistoryLicenseKeyUsageLimit'==_0x2a28f1){delete _0x4577f0[_0x5cb9f2],_0x13e714=_0x2a28f1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x13e714&&_0x4577f0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x13e714&&_0x4577f0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x13e714&&_0x4577f0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x13e714&&_0x4577f0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x241cc7=this['repository']['getRevision'](0x0),_0x3d7135=await this['getRevisionDocumentData'](_0x241cc7),_0x5deab6=await this['getRevisionRootsAttributes'](_0x241cc7);this['_replaceEditorDataWithRevisionData'](_0x3d7135,_0x5deab6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3157dd){this['_source']=_0x3157dd;}async['update'](){const _0x340ebf=await this['_source']['getLatestVersion']();if(_0x340ebf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e40d0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x340ebf});_0x4e40d0['authors']=_0x4e40d0['authorsIds']['map'](_0x1f8091=>this['editor']['plugins']['get']('Users')['getUser'](_0x1f8091)),this['currentRevision']['_update'](_0x4e40d0);}}async['saveRevision'](_0x3171a3={},_0x320ddf=null){const _0xd2f18e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x320ddf>this['currentRevision']['toVersion']&&(_0x320ddf=null),null===_0x320ddf&&(_0x320ddf=await this['_source']['getLatestVersion']());const _0x5543c4=this['_getFromVersion'](_0x320ddf),_0x3a87f1=this['buildRevisionData']({'from':_0x5543c4,'to':_0x320ddf});if(this['currentRevision']['toVersion']<_0x320ddf){const _0xc38b0f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x320ddf,'to':_0x320ddf});_0xc38b0f['authors']=[],_0xc38b0f['authorsIds']=[],_0xc38b0f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xc38b0f,!0x0),delete _0xc38b0f['authors'],_0xd2f18e['push'](_0xc38b0f);}_0x3171a3['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3171a3['name']=_0x3171a3['name']||null,_0x3171a3['id']=_0x3171a3['id']||_0x3cce8a(),_0x3171a3={..._0x3171a3,..._0x3a87f1};const _0x240471=this['addRevisionData'](_0x3171a3);_0xd2f18e['push'](_0x3171a3);const _0x4502a4=this['repository']['getIndex'](_0x240471);if(0x0!==_0x4502a4){const _0x24c38d=this['repository']['getRevision'](_0x4502a4-0x1);if(_0x24c38d['fromVersion']!==_0x320ddf){const _0x1f33e8=this['_revisionDataBuilder']['getData'](_0x320ddf,_0x24c38d['toVersion']),_0x38e2f9={'id':_0x24c38d['id'],'diffData':_0x1f33e8['diffData'],'authorsIds':_0x1f33e8['authorsIds'],'authors':_0x1f33e8['authorsIds']['map'](_0x57acc6=>this['editor']['plugins']['get']('Users')['getUser'](_0x57acc6)),'fromVersion':_0x320ddf};_0x24c38d===this['currentRevision']&&(_0x38e2f9['createdAt']=new Date(_0x3171a3['createdAt']['getTime']()+0xa)),_0x24c38d['_update'](_0x38e2f9,!0x0),delete _0x38e2f9['authors'],_0xd2f18e['push'](_0x38e2f9);}}if(this['adapter']){for(const _0x1a4ac2 of _0xd2f18e)this['_bufferUpdate'](_0x1a4ac2['id'],_0x1a4ac2,!0x0);this['sendBufferedUpdates']();}return _0x240471;}['addRevisionData'](_0x4a2abd){const _0x19e191=this['repository']['createRevision'](_0x4a2abd);return this['adapter']&&_0x19e191['on']('_update',(_0x4a764b,_0x4e64ab,_0x26dfcb)=>{_0x26dfcb||(this['_bufferUpdate'](_0x4e64ab['id'],_0x4e64ab,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x19e191,this['_findInsertionIndex'](_0x19e191)),_0x19e191;}async['getRevisionDocumentData'](_0x207c05){return await this['_utils']['loadRevisionData'](_0x207c05,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x207c05);}async['getRevisionRootsAttributes'](_0xfdfb9a){return await this['_utils']['loadRevisionData'](_0xfdfb9a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xfdfb9a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x287b16=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x411447=0x0;_0x411447<_0x287b16['length'];_0x411447++){const _0x4f8132=_0x287b16[_0x411447];let _0x176d97=!0x1;for(const _0x524311 of Object['keys'](_0x4f8132))void 0x0===_0x4f8132[_0x524311]?delete _0x4f8132[_0x524311]:'id'!==_0x524311&&(_0x176d97=!0x0);_0x176d97||(_0x287b16[_0x411447]=null);}if(_0x287b16=_0x287b16['filter'](_0x151a1c=>null!==_0x151a1c),!_0x287b16['length'])return;for(let _0x1f3dac=0x0;_0x1f3dac<_0x287b16['length'];_0x1f3dac++){const _0x285c56=_0x287b16[_0x1f3dac];void 0x0!==_0x285c56['fromVersion']&&void 0x0===_0x285c56['toVersion']&&(_0x285c56['toVersion']=this['repository']['getRevision'](_0x285c56['id'])['toVersion']),void 0x0!==_0x285c56['toVersion']&&void 0x0===_0x285c56['fromVersion']&&(_0x285c56['fromVersion']=this['repository']['getRevision'](_0x285c56['id'])['fromVersion']);}const _0x442901=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x287b16,_0x442901)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x59fc1c=>{if(_0x59fc1c){for(const _0xb41172 of _0x59fc1c)this['setRevisionData']({'id':_0xb41172['id'],'createdAt':_0xb41172['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5b5f2a=null,from:_0x57a4fb=null,to:_0x2efc0d=null}){_0x57a4fb=null!==_0x57a4fb?_0x57a4fb:_0x5b5f2a['fromVersion'],_0x2efc0d=null!==_0x2efc0d?_0x2efc0d:_0x5b5f2a['toVersion'];const _0x4ad924=this['_revisionDataBuilder']['getData'](_0x57a4fb,_0x2efc0d),_0x5415e1={'diffData':_0x4ad924['diffData'],'authorsIds':_0x4ad924['authorsIds'],'fromVersion':_0x57a4fb,'toVersion':_0x2efc0d};if(!_0x5b5f2a||_0x2efc0d!==_0x5b5f2a['toVersion']){const _0x1cf18f=_0x2efc0d-0x1,_0x5c0eef=this['_source']['history']['getOperation'](_0x1cf18f);_0x5415e1['createdAt']=_0x5c0eef&&_0x5c0eef['createdAt']||new Date();}if(this['_loadedStateData']&&_0x57a4fb===this['_loadedStateData']['fromVersion']){for(const _0x45294f of this['_loadedStateData']['authors'])_0x5415e1['authorsIds']['includes'](_0x45294f['id'])||_0x5415e1['authorsIds']['push'](_0x45294f['id']);}return _0x5415e1;}['_bufferUpdate'](_0x306535,_0x42a304,_0xaad1b1){if(this['_bufferedUpdates']['has'](_0x306535)){const _0x17af2a=this['_bufferedUpdates']['get'](_0x306535);_0x42a304=_0xaad1b1?{..._0x17af2a,..._0x42a304}:{..._0x42a304,..._0x17af2a};}this['_bufferedUpdates']['set'](_0x306535,_0x42a304);}['setRevisionData'](_0x8276e0){const _0x310e0f=this['repository']['getRevision'](_0x8276e0['id']);if(_0x8276e0['createdAt']&&(_0x8276e0['createdAt']=new Date(_0x8276e0['createdAt'])),_0x8276e0['authorsIds']){const _0x497343=this['editor']['plugins']['get']('Users');_0x8276e0['authors']=_0x8276e0['authorsIds']['map'](_0x570427=>_0x497343['getUser'](_0x570427));}_0x310e0f['_update'](_0x8276e0,!0x0);}['_createInitialRevision'](_0x43e180){const _0x4002a4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4002a4)this['_initialRevisionId']=_0x4002a4['id'];else{const _0x4ebd86=!this['editor']['model']['document']['roots']['find'](_0x455fb4=>this['editor']['model']['hasContent'](_0x455fb4)),_0x20ab4b=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ed336=g(this['editor']['locale'],_0x4ebd86?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x43e180,'to':_0x43e180,'id':this['_initialRevisionId'],'name':_0x2ed336,'creatorId':_0x20ab4b});}}['_createCurrentRevision'](_0x2b2090){const _0x36ff3f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x36ff3f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2b2090,'to':_0x2b2090,'id':_0x36ff3f,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x100239,_0x27eb5e){let _0x2123af=this['editor']['config']['get']('initialData'),_0x3fd40c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2123af){_0x2123af={};for(const _0x2ce058 of this['editor']['model']['document']['getRootNames']())_0x2123af[_0x2ce058]='';}if('string'==typeof _0x2123af&&(_0x2123af={'main':_0x2123af}),void 0x0===_0x3fd40c){_0x3fd40c={};for(const _0xc390e2 of this['editor']['model']['document']['getRootNames']())_0x3fd40c[_0xc390e2]={};}let _0x2f10eb=!0x1;const _0x4abf65=Object['keys'](_0x2123af),_0x5e6068=Object['keys'](_0x100239);for(const _0x2ee0e2 of _0x4abf65){if(_0x2123af[_0x2ee0e2]!==_0x100239[_0x2ee0e2]&&''!==_0x2123af[_0x2ee0e2]['trim']()){_0x2f10eb=!0x0;break;}if(!_0x1aed24(_0x3fd40c[_0x2ee0e2],_0x27eb5e[_0x2ee0e2])&&Object['keys'](_0x3fd40c[_0x2ee0e2])['length']>0x0){_0x2f10eb=!0x0;break;}}_0x2f10eb||(_0x2f10eb=_0x5e6068['some'](_0x3377c8=>!this['editor']['model']['document']['getRoot'](_0x3377c8))),_0x2f10eb&&_0x611ad9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2123af,'editorRootsAttributes':_0x3fd40c,'revisionData':_0x100239,'revisionRootsAttributes':_0x27eb5e}),this['editor']['config']['set']('initialData',_0x100239),this['editor']['config']['set']('rootsAttributes',_0x27eb5e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1fa5a4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1fa5a4['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x37b8a7){const _0x4de234=this['repository']['getRevisions']();_0x4de234['reverse']();let _0x47e743=0x0;for(;_0x47e743<_0x4de234['length'];){const _0x78b2ed=_0x4de234[_0x47e743];if(_0x78b2ed===this['currentRevision']){_0x47e743++;continue;}if(_0x78b2ed['id']===this['_initialRevisionId'])break;const _0xb9da2a=_0x37b8a7['toVersion']-_0x78b2ed['toVersion']||_0x37b8a7['fromVersion']-_0x78b2ed['fromVersion'];if(_0xb9da2a>0x0)break;if(_0xb9da2a<0x0)_0x47e743++;else{if(!_0x37b8a7['creator']&&_0x78b2ed['creator'])break;if(_0x78b2ed['creator']||!_0x37b8a7['creator']){if(_0x37b8a7['createdAt']>_0x78b2ed['createdAt'])break;_0x47e743++;}else _0x47e743++;}}return _0x47e743;}['_getFromVersion'](_0x38ad21){const _0x19f24f=this['repository']['getRevisions']();_0x19f24f['reverse'](),_0x19f24f['shift']();const _0x57cd3b=_0x19f24f['find'](_0x29f50c=>_0x29f50c['toVersion']<=_0x38ad21)['toVersion'];return _0x57cd3b<this['_startingVersion']?this['_startingVersion']:_0x57cd3b;}['_makeRevision']({name:_0x1ea738,from:_0x1539fd,to:_0x5528f3,creatorId:_0x3c814a,id:_0x247945}){const _0x6360e8=this['buildRevisionData']({'from':_0x1539fd,'to':_0x5528f3});_0x6360e8['name']=_0x1ea738,_0x6360e8['creatorId']=_0x3c814a,_0x6360e8['id']=_0x247945;const _0x2511e3=this['addRevisionData'](_0x6360e8);return this['adapter']&&this['_bufferUpdate'](_0x6360e8['id'],_0x6360e8,!0x0),_0x2511e3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x27f5df){this['editor']=_0x27f5df,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'](_0x53d056){this['source']=_0x53d056;const _0x30dca0=new Map(),_0x546dc8=new Map(),_0x7d7df6=this['editor']['model']['document']['roots']['map'](_0x10642c=>_0x10642c['rootName']);for(const _0x3823ff of _0x7d7df6){const _0x556587=this['editor']['model']['document']['getRoot'](_0x3823ff),_0x3d434a=N(_0x556587);_0x30dca0['set'](_0x3823ff,_0x3d434a),_0x546dc8['set'](_0x3823ff,Object['fromEntries'](_0x556587['getAttributes']()));}const _0x2ade01=Array['from'](this['editor']['model']['markers'])['map'](_0x1a4bb5=>[_0x1a4bb5['name'],_0x1a4bb5['getRange']()]),_0x9de725=this['source']['version'];this['_saveMetaData'](_0x9de725,_0x30dca0,_0x2ade01,_0x546dc8),this['_startingRevisionId']=this['_revisionId'];const _0x4c8430=new Map(),_0x4fb199=new Map();for(const _0x1ae943 of _0x7d7df6){const _0x4f8030=P(_0x1ae943);_0x4c8430['set'](_0x1ae943,_0x4f8030),_0x4fb199['set'](_0x1ae943,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4c8430,[],_0x4fb199);}['getData'](_0x6421fc,_0x1ecc39){if(this['_lastFrom']===_0x6421fc&&this['_lastTo']<=_0x1ecc39)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1ecc39,!0x0);else{if(!this['_savedMetaData']['has'](_0x6421fc)){const _0x1b65c9=this['_getPreviousFrom'](_0x6421fc);this['_calculateMetaData'](_0x1b65c9,_0x6421fc,!0x1);}this['_calculateMetaData'](_0x6421fc,_0x1ecc39,!0x0);}return this['_lastFrom']=_0x6421fc,this['_lastTo']=_0x1ecc39,this['_getState']();}['loadState'](_0xfbf453){const _0x274bcb=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xfbf453['fromVersion'],this['_lastTo']=_0xfbf453['toVersion'];for(const _0x585238 in _0xfbf453['diffData']){const _0x57e018=_0xfbf453['diffData'][_0x585238]['attachChange'],_0x1ea170=_0x425cb6(_0xfbf453['diffData'][_0x585238]['attributesBefore'])||{},_0x2ab06f=_0x274bcb['_makeModelFromViewString'](_0xfbf453['diffData'][_0x585238]['deletions']);_0x2ab06f['rootName']=_0x585238,_0x2ab06f['_isAttached']=!_0x57e018||!_0x57e018['isAttached'],_0x2ab06f['isAttached']=()=>_0x2ab06f['_isAttached'],this['_baseRoots']['set'](_0x585238,_0x2ab06f),this['_baseRootsAttributes']['set'](_0x585238,_0x1ea170),_0x57e018&&this['_touchedRoots']['set'](_0x585238,_0x57e018);const _0x4be361=this['_makeIdsRoot'](_0x2ab06f);this['_baseIdsRoots']['set'](_0x585238,_0x4be361);for(const [_0x386d35,_0x1c3c3e]of _0x2ab06f['markers']){if(!_0x386d35['startsWith']('revision:'))continue;const _0x5d4a19=_0x386d35['split'](':')[0x2];for(const _0x3c59f3 of _0x1c3c3e['getWalker']({'singleCharacters':!0x0})){const _0xfd78e9=this['_getVidAttributeName'](_0x3c59f3),_0x412f49='elementEnd'==_0x3c59f3['type']?_0x3c59f3['previousPosition']['path']['slice'](0x0,-0x1):_0x3c59f3['previousPosition']['path'],_0x416165=_0x4be361['getNodeByPath'](_0x412f49)['getAttribute'](_0xfd78e9);this['_touched']['set'](_0x416165,{'userId':_0x5d4a19});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2ec8f6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4033f4=>!this['_touched']['has'](_0x4033f4));let _0x1a3be2=0x0;const _0x13a9d8=new Map();for(const _0x1c8533 in _0xfbf453['diffData']){const _0x154da2=_0xfbf453['diffData'][_0x1c8533]['attachChange'],_0x5c3660=_0x425cb6(_0xfbf453['diffData'][_0x1c8533]['attributesAfter'])||{},_0x9fd6d1=_0x274bcb['_makeModelFromViewString'](_0xfbf453['diffData'][_0x1c8533]['insertions']);_0x9fd6d1['rootName']=_0x1c8533,_0x9fd6d1['_isAttached']=!_0x154da2||_0x154da2['isAttached'],_0x9fd6d1['isAttached']=()=>_0x9fd6d1['_isAttached'],this['_diffRoots']['set'](_0x1c8533,_0x9fd6d1),this['_diffRootsAttributes']['set'](_0x1c8533,_0x5c3660);const _0x2ac965=this['_makeIdsRoot'](_0x9fd6d1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1c8533,_0x2ac965),_0x13a9d8['set'](_0x1c8533,_0x9fd6d1['isAttached']()?_0x5c3660:{});for(const [_0xb7a9fd,_0x44265e]of _0x9fd6d1['markers']){if(!_0xb7a9fd['startsWith']('revision:'))continue;const _0x417e87=_0xb7a9fd['split'](':')[0x2];for(const _0x23917e of _0x44265e['getWalker']({'singleCharacters':!0x0})){const _0x50cb19=this['_getVidAttributeName'](_0x23917e),_0x35d0e9=this['_revisionId']++,_0x550380='elementEnd'==_0x23917e['type']?_0x23917e['previousPosition']['path']['slice'](0x0,-0x1):_0x23917e['previousPosition']['path'];_0x2ac965['getNodeByPath'](_0x550380)['_setAttribute'](_0x50cb19,_0x35d0e9),this['_touched']['set'](_0x35d0e9,{'userId':_0x417e87});}}for(const _0xc5131f of this['editor']['model']['createRangeIn'](_0x9fd6d1)['getWalker']({'singleCharacters':!0x0})){const _0x141dd2=this['_getVidAttributeName'](_0xc5131f),_0x3e25eb='elementEnd'==_0xc5131f['type']?_0xc5131f['previousPosition']['path']['slice'](0x0,-0x1):_0xc5131f['previousPosition']['path'],_0x9f142=_0x2ac965['getNodeByPath'](_0x3e25eb);_0x9f142['getAttribute'](_0x141dd2)>0x0||_0x9f142['_setAttribute'](_0x141dd2,_0x2ec8f6[_0x1a3be2++]);}for(const [_0x2eab8a,_0x486664]of _0x9fd6d1['markers'])_0x2eab8a['startsWith']('revision:')||this['_markers']['set'](_0x2eab8a,_0x486664);}const _0x4eb273=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4eb273),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4eb273,0x1));const _0x436ba3=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x436ba3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x436ba3,0x1));const _0x1248a9=Array['from'](this['_diffRoots'])['map'](([_0x17836d,_0x242426])=>[_0x17836d,N(_0x242426)]);this['_saveMetaData'](this['_lastTo'],_0x1248a9,this['_markers'],_0x13a9d8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x29e7e1,_0x376595,_0x1fda4c,_0x4b463e){const _0x244ca0=new Map(_0x376595),_0x504cb6=new Map(_0x425cb6(_0x4b463e)),_0x13bb6c=new Map();for(const [_0x39acac,_0x1f8bdf]of _0x1fda4c)_0x13bb6c['set'](_0x39acac,{'start':_0x1f8bdf['start']['clone'](),'end':_0x1f8bdf['end']['clone'](),'rootName':_0x1f8bdf['root']['rootName']});this['_savedMetaData']['set'](_0x29e7e1,{'roots':_0x244ca0,'markers':_0x13bb6c,'rootsAttributes':_0x504cb6});}['_removeMetaData'](_0x49cd11){this['_savedMetaData']['delete'](_0x49cd11);}['_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'](_0x358fbc,_0x53dfd1=null){let _0x402d20=null;_0x358fbc['is']('documentFragment')||(_0x402d20=new ut(_0x358fbc['name'],{'vid_start':null===_0x53dfd1?this['_revisionId']++:_0x53dfd1++}));const _0xf5ea45=[];for(const _0x4c56d6 of _0x358fbc['getChildren']())if(_0x4c56d6['is']('element')){_0xf5ea45['push'](this['_makeIdsRoot'](_0x4c56d6,_0x53dfd1));const _0x5566f3=_0xf5ea45[_0xf5ea45['length']-0x1];null!==_0x53dfd1&&(_0x53dfd1=_0x5566f3['is']('element','$text')?_0x5566f3['getAttribute']('vid')+0x1:_0x5566f3['getAttribute']('vid_end')+0x1);}else{for(let _0xe79ac7=0x0;_0xe79ac7<_0x4c56d6['offsetSize'];_0xe79ac7++)_0xf5ea45['push'](new ut('$text',{'vid':null===_0x53dfd1?this['_revisionId']++:_0x53dfd1++}));}if(_0x358fbc['is']('documentFragment')){const _0x32799b=P(_0x358fbc['rootName']);return _0x32799b['_insertChild'](0x0,_0xf5ea45),_0x32799b;}return _0x402d20['_setAttribute']('vid_end',null===_0x53dfd1?this['_revisionId']++:_0x53dfd1++),_0x402d20['_insertChild'](0x0,_0xf5ea45),_0x402d20;}['_calculateMetaData'](_0x32543a,_0x2144db,_0x344596){this['_reset']();const {roots:_0x2c5586,markers:_0x48ecc6,rootsAttributes:_0x4b9326}=this['_savedMetaData']['get'](_0x32543a);this['_baseRoots']=new Map(_0x2c5586),this['_baseRootsAttributes']=new Map(_0x425cb6(_0x4b9326));for(const [_0x22adb6,_0x1d2eb3]of this['_baseRoots'])if('$graveyard'!==_0x22adb6&&(this['_diffRoots']['set'](_0x22adb6,N(_0x1d2eb3)),this['_diffRootsAttributes']=new Map(_0x425cb6(_0x4b9326)),_0x344596)){const _0xa9b33c=this['_revisionId'];this['_idsRoots']['set'](_0x22adb6,this['_makeIdsRoot'](_0x1d2eb3)),this['_baseIdsRoots']['set'](_0x22adb6,this['_makeIdsRoot'](_0x1d2eb3,_0xa9b33c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x344596&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5e9a21,_0x24e755]of _0x48ecc6){const _0x1cb75d=this['_baseRoots']['get'](_0x24e755['rootName']),_0x29e1f8=this['_diffRoots']['get'](_0x24e755['rootName']),_0x2f81de=new lt(this['_fixPosition'](_0x24e755['start'],_0x1cb75d),this['_fixPosition'](_0x24e755['end'],_0x1cb75d)),_0x21af5a=this['_fixRange'](_0x2f81de,_0x29e1f8);_0x1cb75d['markers']['set'](_0x5e9a21,_0x2f81de),this['_markers']['set'](_0x5e9a21,_0x21af5a);}this['_applyOperations'](_0x32543a,_0x2144db,_0x344596);}['_applyOperations'](_0x237e14,_0x29d6a0,_0x376097){for(const _0x50ac00 of this['source']['getOperations'](_0x237e14,_0x29d6a0))this['_handleOperation'](_0x50ac00,_0x376097);for(const _0x79f5ab of this['_diffRoots']['values']())_0x79f5ab['markers']['clear']();for(const [_0xba9697,_0x55ea91]of this['_markers']){this['_diffRoots']['get'](_0x55ea91['root']['rootName'])['markers']['set'](_0xba9697,_0x55ea91['clone']());}const _0x4fa8cd=new Map(),_0x293727=new Map();for(const [_0x4af55f,_0x4c90ab]of this['_diffRoots'])_0x4fa8cd['set'](_0x4af55f,N(_0x4c90ab)),_0x293727['set'](_0x4af55f,this['_diffRootsAttributes']['get'](_0x4af55f));this['_saveMetaData'](_0x29d6a0,_0x4fa8cd,this['_markers'],_0x293727);}['_getPreviousFrom'](_0x25ae10){const _0x4ba130=Array['from'](this['_savedMetaData']['keys']());_0x4ba130['sort']((_0xcc4d43,_0x54097b)=>_0xcc4d43-_0x54097b),_0x4ba130['reverse']();for(const _0x41be98 of _0x4ba130)if(_0x41be98<_0x25ae10)return _0x41be98;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x42b9f7,_0x1f281c){const _0x59f74e=Array['from'](_0x1f281c['markers'])['map'](([_0x3b6ed2,_0x1fde1e])=>[_0x3b6ed2,this['_fixRange'](_0x1fde1e,_0x42b9f7)]);_0x42b9f7['markers']=new Map(_0x59f74e);}['_transformMarkers'](_0x47e5c6){for(const _0x191314 of this['_markers']['values']()){const _0x4226ee=_0x191314['getTransformedByOperation'](_0x47e5c6),_0x214695=lt['_createFromRanges'](_0x4226ee);_0x191314['start']=_0x214695['start'],_0x191314['end']=_0x214695['end'];}}['_handleOperation'](_0x54cc2b,_0x47b8f8){if('addRoot'!=_0x54cc2b['type']&&'detachRoot'!=_0x54cc2b['type']){if('insert'==_0x54cc2b['type']){const _0x472a06=_0x54cc2b['position']['root']['rootName'];this['_diffRoots']['has'](_0x472a06)||(this['_diffRoots']['set'](_0x472a06,P(_0x472a06,!0x0)),this['_diffRootsAttributes']['set'](_0x472a06,{}),_0x47b8f8&&this['_idsRoots']['set'](_0x472a06,P(_0x472a06,!0x0)));}else{if('addRootAttribute'==_0x54cc2b['type']||'removeRootAttribute'==_0x54cc2b['type']||'changeRootAttribute'==_0x54cc2b['type'])return void this['_handleRootAttributeOperation'](_0x54cc2b);'marker'==_0x54cc2b['type']&&this['_handleMarkerOperation'](_0x54cc2b);}if('marker'!==_0x54cc2b['type']){const _0x468085=this['_cloneOperation'](_0x54cc2b,this['_diffRoots']);_0x468085['_execute'](),this['_transformMarkers'](_0x468085);}if(_0x47b8f8)switch(_0x54cc2b['type']){case'insert':this['_handleInsertOperation'](_0x54cc2b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x54cc2b);break;case'merge':this['_handleMergeOperation'](_0x54cc2b);break;case'split':this['_handleSplitOperation'](_0x54cc2b);}}else this['_handleRootOperation'](_0x54cc2b,_0x47b8f8);}['_cloneOperation'](_0x43c34f,_0x5d209f){const _0x1aa3d4=_0x43c34f['clone']();return _0x1aa3d4['_authorId']=_0x43c34f['_authorId'],this['_fixOperation'](_0x1aa3d4,_0x5d209f),_0x1aa3d4;}['_getBaseVids'](_0x22caf9){return _0x22caf9['map'](_0x376d9a=>{const _0x364f7d=this['_getVidAttributeName'](_0x376d9a);return Number(_0x376d9a['item']['getAttribute'](_0x364f7d));});}['_generateTape'](_0x34197,_0x3797cb){if(_0x34197['is']('element','$text'))_0x3797cb['push']({'item':_0x34197,'type':'text'});else{_0x34197['is']('element')&&_0x3797cb['push']({'item':_0x34197,'type':'elementStart'});for(const _0xbbfdf3 of _0x34197['getChildren']())this['_generateTape'](_0xbbfdf3,_0x3797cb);_0x34197['is']('element')&&_0x3797cb['push']({'item':_0x34197,'type':'elementEnd'});}return _0x3797cb;}['_getState'](){const _0x275767=new Map(this['_touched']),_0x263d72=new Map(_0x275767),_0x175816=new Map(),_0x3ea30e={'insertions':{},'deletions':{}},_0x10d98c={'insertions':{},'deletions':{}},_0x2407a7=new Map(),_0x39b730=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x39b730['delete']('$graveyard');for(const _0x120783 of _0x39b730){const _0x4dc4f4=this['_diffRoots']['get'](_0x120783)||P(_0x120783,!0x1),_0x505d6a=this['_baseRoots']['get'](_0x120783)||P(_0x120783,!0x1);_0x4dc4f4['isAttached']()||_0x505d6a['isAttached']()?(_0x3ea30e['insertions'][_0x120783]=N(_0x4dc4f4),_0x3ea30e['deletions'][_0x120783]=N(_0x505d6a),this['_copyMarkers'](_0x3ea30e['deletions'][_0x120783],_0x505d6a),this['_copyMarkers'](_0x3ea30e['insertions'][_0x120783],_0x4dc4f4),_0x10d98c['insertions'][_0x120783]=this['_generateTape'](this['_idsRoots']['get'](_0x120783),[]),_0x10d98c['deletions'][_0x120783]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x120783)||P(_0x120783,!0x1),[])):_0x39b730['delete'](_0x120783);}for(const _0x373f7b of _0x39b730){const _0x1d1485=_0x10d98c['insertions'][_0x373f7b];for(const _0x245a07 of _0x1d1485){const _0x3e7cdc=this['_getVidAttributeName'](_0x245a07),_0x29ead9=_0x245a07['item']['getAttribute'](_0x3e7cdc);_0x263d72['delete'](_0x29ead9),_0x29ead9>=this['_startingRevisionId']&&_0x175816['set'](_0x29ead9,_0x275767['get'](_0x29ead9));}}for(const _0x3fe4ab of _0x39b730){const _0x3596a0=_0x10d98c['insertions'][_0x3fe4ab],_0x2c49ab=this['_getBaseVids'](_0x10d98c['deletions'][_0x3fe4ab]);let _0x160b8f=0x0;for(const _0x2cecd4 of _0x3596a0){const _0x187c06=this['_getVidAttributeName'](_0x2cecd4),_0x3743d8=_0x2cecd4['item']['getAttribute'](_0x187c06);if(!_0x175816['has'](_0x3743d8)&&!_0x2407a7['has'](_0x3743d8)){if(_0x263d72['has'](_0x3743d8))_0x160b8f++;else{if(_0x3743d8!=_0x2c49ab[_0x160b8f]){const _0x53f41a=_0x275767['get'](_0x3743d8)||_0x275767['get'](_0x2c49ab[_0x160b8f]);for(;_0x3743d8!=_0x2c49ab[_0x160b8f];)_0x263d72['has'](_0x2c49ab[_0x160b8f])||(_0x2407a7['set'](_0x2c49ab[_0x160b8f],_0x53f41a),_0x275767['set'](_0x2c49ab[_0x160b8f],_0x53f41a)),_0x160b8f++;}_0x160b8f++;}}}}for(const _0x3814ca of _0x39b730){const _0x3326b8=_0x10d98c['insertions'][_0x3814ca];for(const _0x3ec0cc of _0x3326b8){const _0x4b39cd=this['_getVidAttributeName'](_0x3ec0cc),_0x473932=_0x3ec0cc['item']['getAttribute'](_0x4b39cd);if(_0x2407a7['has'](_0x473932)){const _0x2abc8c=_0x2407a7['get'](_0x473932);_0x263d72['has'](_0x473932)||_0x263d72['set'](_0x473932,{..._0x2abc8c}),_0x175816['set'](_0x473932,{..._0x2abc8c});}}}for(const _0x4da8e6 of _0x263d72['keys']())_0x4da8e6>=this['_startingRevisionId']&&_0x263d72['delete'](_0x4da8e6);const _0x4474ab=new Map();for(const _0x2a4a3f of _0x39b730){let _0x45f173=_0x10d98c['insertions'][_0x2a4a3f];for(const _0x597c32 of _0x45f173)if(_0x597c32['item']['is']('element','tableCell')){const _0x2ea97c=this['_getVidAttributeName'](_0x597c32),_0x4fceea=_0x597c32['item']['getAttribute'](_0x2ea97c);if(_0x175816['has'](_0x4fceea)){const _0x5f2c72=_0x597c32['item']['parent']['parent']['getAttribute']('vid_start'),_0x1c17b7=_0x4474ab['get'](_0x5f2c72)||new Set();_0x1c17b7['add'](_0x175816['get'](_0x4fceea)['userId']),_0x4474ab['set'](_0x5f2c72,_0x1c17b7);}}_0x45f173=_0x10d98c['deletions'][_0x2a4a3f];for(const _0x32e62c of _0x45f173)if(_0x32e62c['item']['is']('element','tableCell')){const _0x3b6bb3=this['_getVidAttributeName'](_0x32e62c),_0x2b0e8d=_0x32e62c['item']['getAttribute'](_0x3b6bb3);if(_0x263d72['has'](_0x2b0e8d)){const _0x37a7a1=_0x32e62c['item']['parent']['parent']['getAttribute']('vid_start'),_0x2a319b=_0x4474ab['get'](_0x37a7a1)||new Set();_0x2a319b['add'](_0x263d72['get'](_0x2b0e8d)['userId']),_0x4474ab['set'](_0x37a7a1,_0x2a319b);}}for(const _0x4fff1e of _0x4474ab['keys']())(_0x175816['has'](_0x4fff1e)||_0x263d72['has'](_0x4fff1e))&&_0x4474ab['delete'](_0x4fff1e);}for(const _0x3d1c14 of _0x39b730){const _0x166262=_0x10d98c['insertions'][_0x3d1c14];let _0x596a48=null,_0x34334f=null;for(const _0x347ff3 of _0x166262){const _0x5cc3c2=this['_getVidAttributeName'](_0x347ff3),_0x17ea88=_0x347ff3['item']['getAttribute'](_0x5cc3c2),_0x182a31=_0x4474ab['get'](_0x17ea88);_0x182a31&&'elementStart'==_0x347ff3['type']&&(_0x596a48=Array['from'](_0x182a31)[0x0],_0x34334f=_0x347ff3['item']['getAttribute']('vid_end')),_0x596a48&&(_0x263d72['set'](_0x17ea88,{'userId':_0x596a48}),_0x175816['set'](_0x17ea88,{'userId':_0x596a48})),_0x17ea88==_0x34334f&&(_0x596a48=null,_0x34334f=null);}}const _0x2d3af5={},_0x4387f8=new Set();for(const _0x199c67 of _0x39b730){const _0x4f0f1b=_0x3ea30e['deletions'][_0x199c67],_0x8c5344=_0x3ea30e['insertions'][_0x199c67];for(const {userId:_0x24c7f8}of this['_touchedMarkers']['values']())null!==_0x24c7f8&&_0x4387f8['add'](_0x24c7f8);for(const {userId:_0x5389f9}of this['_touchedRoots']['values']())null!==_0x5389f9&&_0x4387f8['add'](_0x5389f9);this['_markChanges'](_0x8c5344,_0x10d98c['insertions'][_0x199c67],_0x175816,'insertion',_0x4387f8),this['_markChanges'](_0x4f0f1b,_0x10d98c['deletions'][_0x199c67],_0x263d72,'deletion',_0x4387f8),_0x2d3af5[_0x199c67]={'insertions':this['_prepareViewToSave'](_0x8c5344),'deletions':this['_prepareViewToSave'](_0x4f0f1b),'attachChange':this['_touchedRoots']['get'](_0x199c67)||null,'attributesBefore':_0x425cb6(this['_baseRootsAttributes']['get'](_0x199c67))||{},'attributesAfter':_0x425cb6(this['_diffRootsAttributes']['get'](_0x199c67))};}return{'diffData':_0x2d3af5,'authorsIds':Array['from'](_0x4387f8)};}['_processRootBeforeSave'](_0x100df5){for(const [,_0x120e40]of _0x100df5['markers']){const _0x589cd4=_0x120e40['start']['getAncestors']()['filter'](_0x5054fb=>'tableCell'==_0x5054fb['name']);for(const _0xc6db15 of _0x589cd4)0x1==_0xc6db15['childCount']&&_0xc6db15['getChild'](0x0)['is']('element','paragraph')&&_0xc6db15['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2408e0){this['_processRootBeforeSave'](_0x2408e0);const _0x362833=this['editor']['data']['toView'](_0x2408e0,{}),_0x436eb6=Array['from'](_0x362833['getChildren']())['map'](_0x38deea=>this['_getViewJson'](_0x38deea));return JSON['stringify'](_0x436eb6);}['_getViewJson'](_0xcbafd6){if(_0xcbafd6['is']('$text'))return _0xcbafd6['data'];{const _0x2898c3=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x395ab8=_0xcbafd6,_0x500d2d=this['editor']['data']['htmlProcessor']['domConverter'],_0x510cfc={'type':_0x2898c3['_getTypeCharForViewElement'](_0x395ab8),'name':_0x395ab8['name'],'attributes':Array['from'](_0x395ab8['getAttributes']()),'children':Array['from'](_0x395ab8['getChildren']())['map'](_0x4b7f80=>this['_getViewJson'](_0x4b7f80))};if(_0xcbafd6['is']('uiElement')&&'$comment'!=_0xcbafd6['name']){const _0x27a757=_0xcbafd6['render'](_0x500d2d['domDocument'],_0x500d2d);_0x510cfc['children']['push'](_0x27a757['outerHTML']);}else{if(_0xcbafd6['is']('rawElement')){const _0x5a2676=_0x500d2d['domDocument']['createElement'](_0x395ab8['name']);_0xcbafd6['render'](_0x5a2676,_0x500d2d),_0x510cfc['children']['push'](_0x5a2676['innerHTML']);}}const _0x33dd5d=Array['from'](_0x395ab8['getCustomProperties']());_0x33dd5d['length']>0x0&&(_0x510cfc['customProperties']=_0x33dd5d);const _0x5b0bf4=_0x395ab8['getFillerOffset']();return null!==_0x5b0bf4&&(_0x510cfc['fillerOffset']=_0x5b0bf4),_0x510cfc;}}['_markChanges'](_0x5936f2,_0x4f51da,_0x4296b8,_0x5c47ad,_0x28acc9){let _0x4f7b3d=null,_0x3e518a=null,_0x25b138=0x0;const _0x9fefe0=this['editor']['model'];for(let _0x17d14c=0x0;_0x17d14c<_0x4f51da['length'];_0x17d14c++){const _0x4ef737=this['_getVidAttributeName'](_0x4f51da[_0x17d14c]),_0x4dca1c=_0x4f51da[_0x17d14c]['item']['getAttribute'](_0x4ef737),_0x5687de=_0x4296b8['get'](_0x4dca1c),_0x36aa96=_0x17d14c==_0x4f51da['length']-0x1;(!_0x4f7b3d&&_0x5687de&&(_0x4f7b3d=_0x5687de,_0x3e518a=_0x4f51da[_0x17d14c]),_0x4f7b3d&&(!_0x5687de||_0x5687de['userId']!=_0x4f7b3d['userId']))&&(_0x1b7647(_0x5687de,F(_0x3e518a,_0x5936f2,_0x9fefe0),F(_0x4f51da[_0x17d14c],_0x5936f2,_0x9fefe0)),_0x4f7b3d=_0x5687de||null,_0x3e518a=_0x5687de?_0x4f51da[_0x17d14c]:null),_0x4f7b3d&&_0x36aa96&&_0x1b7647(_0x5687de,F(_0x3e518a,_0x5936f2,_0x9fefe0),B(_0x4f51da[_0x17d14c],_0x5936f2,_0x9fefe0));}function _0x1b7647(_0x198a6f,_0xea05ae,_0xccbbad){const _0x1a6dac=_0x4f7b3d['userId'],_0x332125='revision:'+_0x5c47ad+':'+_0x1a6dac+':'+_0x25b138++,_0x17d55c=_0x9fefe0['createRange'](_0xea05ae,_0xccbbad);_0x5936f2['markers']['set'](_0x332125,_0x17d55c),null!==_0x1a6dac&&_0x28acc9['add'](_0x1a6dac);}}['_getVidAttributeName'](_0x529860){switch(_0x529860['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x26820b,_0x11a9d2){_0x26820b['baseVersion']=null;for(const _0x4b1893 in _0x26820b){const _0x58264d=_0x26820b[_0x4b1893];if(_0x58264d instanceof ft){const _0x44f622=_0x11a9d2['get'](_0x58264d['root']['rootName']);_0x26820b[_0x4b1893]=this['_fixPosition'](_0x58264d,_0x44f622);}if(_0x58264d instanceof lt){const _0x4a2745=_0x11a9d2['get'](_0x58264d['root']['rootName']);_0x26820b[_0x4b1893]=this['_fixRange'](_0x58264d,_0x4a2745);}'root'===_0x4b1893&&(_0x26820b['root']=_0x11a9d2['get'](_0x26820b['root']['rootName']));}}['_fixRange'](_0xaba299,_0x3aed72){return this['editor']['model']['createRange'](this['_fixPosition'](_0xaba299['start'],_0x3aed72),this['_fixPosition'](_0xaba299['end'],_0x3aed72));}['_fixPosition'](_0x4566e1,_0xab0c8f){return this['editor']['model']['createPositionFromPath'](_0xab0c8f,_0x4566e1['path'],_0x4566e1['stickiness']);}['_handleInsertOperation'](_0x1f686f){const _0x4e8a9d=this['_idsRoots']['get'](_0x1f686f['position']['root']['rootName']),_0x481f29=this['_fixPosition'](_0x1f686f['position'],_0x4e8a9d),_0x5c7a6b=null===_0x1f686f['_authorId']?null:_0x1f686f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x376cea=_0x481f29['parent'],_0x20e5d5=this['_revisionId'],_0x2af8bf=[];for(const _0x46ac6f of _0x1f686f['nodes'])if(_0x46ac6f['is']('element'))_0x2af8bf['push'](this['_makeIdsRoot'](_0x46ac6f));else{for(let _0x2ca702=0x0;_0x2ca702<_0x46ac6f['offsetSize'];_0x2ca702++)_0x2af8bf['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xe893d7=this['_revisionId'];for(let _0x44a1be=_0x20e5d5;_0x44a1be<_0xe893d7;_0x44a1be++)this['_touched']['set'](_0x44a1be,{'userId':_0x5c7a6b});_0x376cea['_insertChild'](_0x481f29['offset'],_0x2af8bf);}['_handleMoveOperation'](_0x18d12b){(_0x18d12b=this['_cloneOperation'](_0x18d12b,this['_idsRoots']))['_execute']();const _0x5858b7=null===_0x18d12b['_authorId']?null:_0x18d12b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe6b3d4=_0x18d12b['getMovedRangeStart'](),_0xad4ff9=_0xe6b3d4['parent'],_0x7a2b1=_0xe6b3d4['offset'];!function _0x2e4a06(_0x56631e,_0xf6edf7,_0x22e175,_0x2d8767){for(let _0x5da5e2=_0x22e175;_0x5da5e2<_0x2d8767;_0x5da5e2++){const _0xe1ff02=_0xf6edf7['getChild'](_0x5da5e2);_0xe1ff02['is']('element','$text')?_0x56631e['set'](_0xe1ff02['getAttribute']('vid'),{'userId':_0x5858b7}):(_0x56631e['set'](_0xe1ff02['getAttribute']('vid_start'),{'userId':_0x5858b7}),_0x2e4a06(_0x56631e,_0xe1ff02,0x0,_0xe1ff02['childCount']),_0x56631e['set'](_0xe1ff02['getAttribute']('vid_end'),{'userId':_0x5858b7}));}}(this['_touched'],_0xad4ff9,_0x7a2b1,_0x7a2b1+_0x18d12b['howMany']);}['_handleMergeOperation'](_0x5d6c46){const _0x6fa484=null===(_0x5d6c46=this['_cloneOperation'](_0x5d6c46,this['_idsRoots']))['_authorId']?null:_0x5d6c46['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e4305=_0x5d6c46['targetPosition']['parent'],_0x367dbb=_0x5d6c46['sourcePosition']['parent'],_0x363ab0=_0x2e4305['getAttribute']('vid_end'),_0x25ffcd=_0x367dbb['getAttribute']('vid_start');_0x2e4305['_setAttribute']('vid_end',_0x367dbb['getAttribute']('vid_end')),_0x367dbb['_setAttribute']('vid_end',_0x363ab0),this['_touched']['set'](_0x25ffcd,{'userId':_0x6fa484}),this['_touched']['set'](_0x363ab0,{'userId':_0x6fa484}),_0x5d6c46['_execute']();}['_handleSplitOperation'](_0x1b154f){const _0x6dcdb2=null===(_0x1b154f=this['_cloneOperation'](_0x1b154f,this['_idsRoots']))['_authorId']?null:_0x1b154f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ee664=_0x1b154f['graveyardPosition'],_0x2f546c=_0x1b154f['splitPosition']['parent'];_0x1b154f['_execute']();const _0x3ac003=_0x2f546c['getAttribute']('vid_end'),_0x3c2346=_0x1b154f['insertionPosition']['nodeAfter'];if(_0x2ee664){const _0x3b1ea7=_0x3c2346['getAttribute']('vid_end'),_0x1895b1=_0x2f546c['getAttribute']('vid_end');_0x2f546c['_setAttribute']('vid_end',_0x3b1ea7),_0x3c2346['_setAttribute']('vid_end',_0x1895b1),this['_touched']['set'](_0x2f546c['getAttribute']('vid_end'),{'userId':_0x6dcdb2}),this['_touched']['set'](_0x3c2346['getAttribute']('vid_start'),{'userId':_0x6dcdb2});}else{const _0x4b7e18=this['_revisionId']++,_0x14ee3d=this['_revisionId']++;_0x2f546c['_setAttribute']('vid_end',_0x4b7e18),_0x3c2346['_setAttribute']('vid_start',_0x14ee3d),_0x3c2346['_setAttribute']('vid_end',_0x3ac003),this['_touched']['set'](_0x4b7e18,{'userId':_0x6dcdb2}),this['_touched']['set'](_0x14ee3d,{'userId':_0x6dcdb2});}}['_handleMarkerOperation'](_0x51c42d){if(!_0x51c42d['affectsData'])return;const _0x3725e6=(_0x51c42d=this['_cloneOperation'](_0x51c42d,this['_diffRoots']))['oldRange']?_0x51c42d['oldRange']['root']:null,_0x48dd50=_0x51c42d['newRange']?_0x51c42d['newRange']['root']:null;_0x3725e6&&this['_markers']['delete'](_0x51c42d['name']),_0x48dd50&&this['_markers']['set'](_0x51c42d['name'],_0x51c42d['newRange']['clone']());const _0xc1527a=null===_0x51c42d['_authorId']?null:_0x51c42d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17db1d=_0x51c42d['name'];if(!this['_touchedMarkers']['has'](_0x17db1d))return void this['_touchedMarkers']['set'](_0x17db1d,{'range':_0x51c42d['oldRange'],'userId':_0xc1527a});const _0x4a765d=this['_touchedMarkers']['get'](_0x17db1d),_0x375eb6=_0x4a765d['range'],_0x621f15=_0x51c42d['newRange'];null==_0x375eb6&&null==_0x621f15||_0x375eb6&&_0x621f15&&_0x375eb6['isEqual'](_0x621f15)?this['_touchedMarkers']['delete'](_0x51c42d['name']):_0x4a765d['userId']=_0xc1527a;}['_handleRootOperation'](_0x136bf0,_0x5140f2){this['_diffRoots']['has'](_0x136bf0['rootName'])?this['_diffRoots']['get'](_0x136bf0['rootName'])['_isAttached']=_0x136bf0['isAdd']:(this['_diffRoots']['set'](_0x136bf0['rootName'],P(_0x136bf0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x136bf0['rootName'],{}),_0x5140f2&&this['_idsRoots']['set'](_0x136bf0['rootName'],P(_0x136bf0['rootName'],!0x0)));const _0xb8d289=null===_0x136bf0['_authorId']?null:_0x136bf0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28355d=this['_touchedRoots']['get'](_0x136bf0['rootName']);_0x28355d&&_0x28355d['userId']===_0xb8d289?this['_touchedRoots']['delete'](_0x136bf0['rootName']):this['_touchedRoots']['set'](_0x136bf0['rootName'],{'userId':_0xb8d289,'isAttached':_0x136bf0['isAdd']});}['_handleRootAttributeOperation'](_0x24df05){const _0x48a186=this['_diffRootsAttributes']['get'](_0x24df05['root']['rootName']);null===_0x24df05['newValue']?delete _0x48a186[_0x24df05['key']]:_0x48a186[_0x24df05['key']]=_0x24df05['newValue'];}}function N(_0x34f356){const _0x5aa994=P(_0x34f356['rootName'],_0x34f356['isAttached']());for(const _0x540ef7 of _0x34f356['getChildren']()){const _0x4d8ea7=_0x540ef7['_clone'](!0x0);_0x5aa994['_appendChild'](_0x4d8ea7);}return _0x5aa994;}function P(_0x5da987,_0x23bf92=!0x0){const _0x1f7273=new vt();return _0x1f7273['rootName']=_0x5da987,_0x1f7273['_isAttached']=_0x23bf92,_0x1f7273['isAttached']=()=>_0x1f7273['_isAttached'],_0x1f7273;}function F(_0x4b168e,_0x4ca2ab,_0x297c7e){const _0x3e4c4b='elementEnd'==_0x4b168e['type']?_0x297c7e['createPositionAt'](_0x4b168e['item'],'end'):_0x297c7e['createPositionBefore'](_0x4b168e['item']);return _0x297c7e['createPositionFromPath'](_0x4ca2ab,_0x3e4c4b['path'],_0x3e4c4b['stickiness']);}function B(_0x2b4752,_0x2037b6,_0xe95a72){const _0x2634e6='elementStart'==_0x2b4752['type']?_0xe95a72['createPositionAt'](_0x2b4752['item'],0x0):_0xe95a72['createPositionAfter'](_0x2b4752['item']);return _0xe95a72['createPositionFromPath'](_0x2037b6,_0x2634e6['path'],_0x2634e6['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5c23a9,_0xd8d7e5){super(_0x5c23a9),this['focusTracker']=new _0x1d7358(),this['keystrokes']=new _0x2fbd22(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xd8d7e5),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1b7731(this);}['render'](){super['render'](),_0x299d24({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3a68a4=_0x443618=>_0x443618['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3a68a4),this['keystrokes']['set']('arrowleft',_0x3a68a4),this['keystrokes']['set']('arrowup',_0x3a68a4),this['keystrokes']['set']('arrowdown',_0x3a68a4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x53cfa9){this['revisionNameInputView']['fieldView']['element']['value']=_0x53cfa9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x28d2c5){const _0x7d41a=new _0x5b84f9(this['locale'],_0x307c29),_0x3772ae=_0x7d41a['fieldView'];_0x3772ae['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x314409=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x28d2c5&&(_0x314409+='\x20('+g(this['locale'],'optional')+')'),(_0x7d41a['label']=_0x314409,_0x3772ae['on']('input',()=>{this['revisionNameInputValue']=_0x3772ae['element']['value']['trim']();}),_0x7d41a);}}class f extends _0x432e21{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x51f0f8=this['editor'],_0x2ef902=_0x51f0f8['plugins']['get']('RevisionTracker');_0x51f0f8['ui']['componentFactory']['add']('revisionHistory',_0x268151=>{const _0x19015b=_0x11b6e8(_0x268151),_0x23a141=_0x19015b['panelView']['children'],_0x49b84c=new _0x1d094f(_0x268151),_0x5771ee=new _0x46fcb4(_0x268151),_0x120e61=new te(_0x268151),_0x3945fd=new _0x46fcb4(_0x268151),_0x597e20=new te(_0x268151);return _0x19015b['bind']('isEnabled')['to'](_0x2ef902,'isReady',_0x2ef902,'isEnabled',_0x51f0f8,'isReadOnly',(_0x3d0780,_0x772182,_0x1dd18c)=>_0x3d0780&&_0x772182&&!_0x1dd18c),_0x19015b['buttonView']['set']({'icon':_0x1e483f,'label':g(_0x268151,'Revision\x20history'),'tooltip':!0x0}),_0x120e61['set']({'label':g(_0x268151,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x120e61['bind']('isEnabled')['to'](_0x2ef902,'isReady',_0x2ef902,'isEnabled',_0x51f0f8,'isReadOnly',(_0x428f5e,_0x547697,_0x5b3d34)=>_0x428f5e&&_0x547697&&!_0x5b3d34),_0x120e61['on']('execute',()=>this['_showDialog']()),_0x597e20['set']({'label':g(_0x268151,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x597e20['bind']('isEnabled')['to'](_0x2ef902,'isReady',_0x51f0f8,'isReadOnly',(_0x27d609,_0xeb93a5)=>_0x27d609&&!_0xeb93a5),_0x597e20['on']('execute',()=>{_0x51f0f8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x19015b['isOpen']=!0x1,_0x51f0f8['editing']['view']['focus']();}),_0x5771ee['children']['add'](_0x120e61),_0x3945fd['children']['add'](_0x597e20),_0x49b84c['role']='menu',_0x49b84c['items']['addMany']([_0x5771ee,_0x3945fd]),_0x23a141['add'](_0x49b84c),_0x19015b;}),_0x51f0f8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xb964c=this['editor'],_0x5db422=_0xb964c['locale'],_0x47979a=new _0x44467d(_0x5db422),_0x260e83=new _0x1ff7c0(_0x5db422);_0x47979a['buttonView']['set']({'icon':_0x1e483f,'label':g(_0x5db422,'Revision\x20history')});const _0x219bec=new _0x74afb2(_0x5db422,_0x47979a),_0x278b3d=new _0x50e74c(_0x5db422);_0x278b3d['set']({'label':g(_0x5db422,'Save\x20current\x20revision')}),_0x278b3d['delegate']('execute')['to'](_0x47979a),_0x278b3d['on']('execute',()=>{this['_showDialog']();}),_0x219bec['children']['add'](_0x278b3d),_0x260e83['items']['add'](_0x219bec);const _0x424e58=new _0x74afb2(_0x5db422,_0x47979a),_0x9c4176=new _0x50e74c(_0x5db422);return _0x9c4176['set']({'label':g(_0x5db422,'Open\x20revision\x20history')}),_0x9c4176['delegate']('execute')['to'](_0x47979a),_0x9c4176['on']('execute',()=>{_0xb964c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x424e58['children']['add'](_0x9c4176),_0x260e83['items']['add'](_0x424e58),_0x47979a['panelView']['children']['add'](_0x260e83),_0x47979a;}['_showDialog'](){const _0x2addc1=this['editor'],_0x12d1cb=_0x2addc1['locale'],_0x869ab8=_0x2addc1['plugins']['get']('Dialog'),_0x5e3ae4=_0x2addc1['plugins']['get']('RevisionTracker');function _0x5568f8(_0x334930){_0x2addc1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x334930['revisionName']?_0x334930['revisionNameInputView']['errorText']=g(_0x12d1cb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2addc1['plugins']['get'](u)['saveRevision']({'name':_0x334930['revisionName']}),_0x869ab8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5568f8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x869ab8['show']({'id':'revisionSave','title':g(_0x12d1cb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x2addc1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x869ab8['hide']()},{'label':g(_0x2addc1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1f12f7){_0x1f12f7['bind']('isEnabled')['to'](_0x5e3ae4,'isReady',_0x5e3ae4,'isEnabled',_0x2addc1,'isReadOnly',(_0xeb103a,_0x4831a8,_0x457fd4)=>_0xeb103a&&_0x4831a8&&!_0x457fd4);},'onExecute':()=>_0x5568f8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5608b6=this['editor'],_0x5f3cbf=_0x5608b6['locale'];this['_saveRevisionFormView']=new hs(_0x5f3cbf,_0x5608b6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x588a8e,_0x1fa34){super(_0x588a8e),this['_model']=_0x1fa34,this['changeId']=_0x1fa34['id'];const _0x553d84=this['bindTemplate'],_0x1277fa=g(_0x588a8e,_0x1fa34['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1fa34['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1fa34['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x553d84['to']('type',_0x1d1c14=>'ck-revision-change__'+_0x1d1c14)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1277fa}]},{'text':'\x20'+_0x1fa34['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x32ac1c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x868d59){super(),this['id']=_0x868d59['id']||_0x3cce8a(),this['author']=_0x868d59['author'],this['type']=_0x868d59['type'],this['data']=_0x868d59['data']||{},this['rootName']=_0x868d59['rootName'],this['set']('createdAt',_0x868d59['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x57f656,_0x136b57){this['newRevisionId']=_0x57f656,this['oldRevisionId']=_0x136b57,this['changes']=new _0xce0641();}['_setChanges'](_0x9020d1){for(const _0x1f4514 of _0x9020d1)this['changes']['add'](_0x1f4514);}}class m extends _0x432e21{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3dc44b,_0x3d22b1,I,V];}constructor(_0x1bb9ce){super(_0x1bb9ce),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2a6c3a,_0x429d6d,_0xef1199)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2482df=>{for(const _0x2fe232 of this['editor']['editing']['view']['document']['roots'])_0xef1199?_0x2482df['removeClass']('ck-editor__editable__overlay',_0x2fe232):_0x2482df['addClass']('ck-editor__editable__overlay',_0x2fe232);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5c445f=>null!==_0x5c445f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1962a5,_0x1eee8b,_0x5611bc)=>_0x1962a5&&_0x5611bc?_0x1eee8b['changes']['getIndex'](_0x5611bc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2aa786,_0x17b6ad)=>_0x2aa786?_0x17b6ad['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3d22b1);}['init'](){const _0x46b8b3=this['editor'],_0x44acf6=new wt(_0x46b8b3,{'direction':'backward'}),_0xb97c0d=new wt(_0x46b8b3,{'direction':'forward'});(_0x46b8b3['commands']['add']('showPreviousChange',_0x44acf6),_0x46b8b3['commands']['add']('showNextChange',_0xb97c0d),_0x46b8b3['commands']['add']('restoreRevision',new mt(_0x46b8b3)),this['on']('change:numberOfChanges',()=>{_0x44acf6['refresh'](),_0xb97c0d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x46b8b3['enableReadOnlyMode']('revision-viewer'),_0x46b8b3['plugins']['has']('WidgetToolbarRepository'))&&_0x46b8b3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x562a61){return await this['_utils']['loadRevisionData'](_0x562a61,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x562a61);}async['getRevisionRootsAttributes'](_0x2d6b72){return await this['_utils']['loadRevisionData'](_0x2d6b72,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2d6b72);}async['compare'](_0x120a75,_0x1005d0,_0x435880=!0x1){if(!this['isEnabled'])return;const _0x35fd73=this['diff'],_0x338348=this['repository'],_0x4d5476='string'==typeof _0x120a75?_0x338348['getRevision'](_0x120a75):_0x120a75,_0x281d90='string'==typeof _0x1005d0?_0x338348['getRevision'](_0x1005d0):_0x1005d0,_0x5bf93d=_0x4d5476['id'],_0x55caba=_0x281d90?_0x281d90['id']:null;if(!_0x435880&&this['diff']&&this['diff']['newRevisionId']===_0x5bf93d&&this['diff']['oldRevisionId']===_0x55caba)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5bf93d,_0x55caba);const _0x45a15e=this['_getRevisionsRange'](_0x4d5476,_0x281d90,!0x0)['map'](_0x525856=>this['_utils']['loadRevisionData'](_0x525856,this['adapter']));return _0x45a15e['push'](new Promise(_0x2d8348=>{setTimeout(_0x2d8348,0x14);})),Promise['all'](_0x45a15e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x335de1=this['_getDiff'](_0x5bf93d,_0x55caba);for(const _0x49d308 of _0x335de1['changes'])this['_changeIdToChange']['set'](_0x49d308['id'],_0x49d308);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5d8ef4=>{for(const _0xa59806 of this['editor']['model']['document']['getRootNames']())_0x5d8ef4['detachRoot'](_0xa59806);for(const _0x4a12f2 of Object['keys'](_0x335de1['model'])){const _0x2cc3c0=_0x5d8ef4['addRoot'](_0x4a12f2);for(const _0x4ddbcd of Object['keys'](_0x335de1['attributes'][_0x4a12f2]))_0x5d8ef4['setAttribute'](_0x4ddbcd,_0x335de1['attributes'][_0x4a12f2][_0x4ddbcd],_0x2cc3c0);_0x5d8ef4['insert'](_0x335de1['model'][_0x4a12f2],_0x2cc3c0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x335de1['changes'])),this['isReady']=!0x0;})['catch'](_0x21c956=>{console['error'](_0x21c956),this['_cleanUp'](),_0x35fd73&&(this['diff']=_0x35fd73),this['isReady']=!0x0;});}['addRevisionData'](_0x14320e,_0x1e2d94){const _0x4e38aa=this['repository']['createRevision'](_0x14320e);return _0x4e38aa['on']('_update',(_0x268a9b,_0x57da3e,_0x32ad27)=>_0x1e2d94(_0x57da3e,_0x32ad27,_0x4e38aa)),this['repository']['addRevision'](_0x4e38aa),_0x4e38aa;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x351bc8=>{for(const _0x465c8e of this['editor']['model']['document']['getRootNames']())_0x351bc8['detachRoot'](_0x465c8e);});}['_sortAndFilterDiffChanges'](_0x3d6c31){const _0x2ecf35=[],_0x2990ed=new Map();for(const _0x695275 of this['editor']['model']['document']['getRootNames']()){const _0x730552=this['editor']['editing']['view']['getDomRoot'](_0x695275);if(!_0x730552)continue;const _0xedea72=_0x730552['getClientRects']()['item'](0x0);_0xedea72&&(_0x2ecf35['push'](_0x695275),_0x2990ed['set'](_0x695275,_0xedea72));}return _0x2ecf35['sort']((_0x2e8ad4,_0x318c5a)=>{const _0x4191f4=_0x2990ed['get'](_0x2e8ad4),_0x35fc2c=_0x2990ed['get'](_0x318c5a);return _0x4191f4['y']-_0x35fc2c['y']||_0x4191f4['x']-_0x35fc2c['x'];}),(_0x3d6c31=_0x3d6c31['filter'](_0x37e3c7=>_0x2ecf35['includes'](_0x37e3c7['rootName'])))['sort']((_0x4ac942,_0x239289)=>_0x2ecf35['indexOf'](_0x4ac942['rootName'])-_0x2ecf35['indexOf'](_0x239289['rootName'])),_0x3d6c31;}['_makeTape'](_0x2580c6){const _0x579c5=Array['from'](_0x2580c6['markers'])['filter'](([_0x18c7c4,_0x23adc8])=>_0x18c7c4['startsWith']('revision:')&&!_0x23adc8['isCollapsed']),_0x2bb87a=Array['from'](this['editor']['model']['createRangeIn'](_0x2580c6)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x579c5['length'])for(const _0x189b5b of _0x2bb87a){const [_0x4afd04,_0x18a61c]=_0x579c5[0x0],[,_0x236509,_0x3511eb]=_0x4afd04['split'](':');if(_0x18a61c['end']['isEqual'](_0x189b5b['nextPosition'])&&_0x579c5['shift'](),(_0x189b5b['previousPosition']['isEqual'](_0x18a61c['start'])||_0x189b5b['previousPosition']['isAfter'](_0x18a61c['start']))&&('insertion'==_0x236509?_0x189b5b['isAdded']={'userId':_0x3511eb}:'deletion'==_0x236509&&(_0x189b5b['isRemoved']={'userId':_0x3511eb})),0x0==_0x579c5['length'])break;}return _0x2bb87a;}['_refreshStartEndIndex'](_0x233928){const _0x4fb5c2=new Map();for(let _0x5cdc72=0x0;_0x5cdc72<_0x233928['length'];_0x5cdc72++)'text'===_0x233928[_0x5cdc72]['type']?(_0x233928[_0x5cdc72]['item']['startIndex']=_0x5cdc72,_0x233928[_0x5cdc72]['item']['endIndex']=_0x5cdc72):('elementStart'===_0x233928[_0x5cdc72]['type']?_0x233928[_0x5cdc72]['item']['startIndex']=_0x5cdc72:'elementEnd'===_0x233928[_0x5cdc72]['type']&&(_0x233928[_0x5cdc72]['item']['endIndex']=_0x5cdc72),_0x4fb5c2['set'](_0x233928[_0x5cdc72]['id'],_0x5cdc72));for(const _0x2e79fd of _0x4fb5c2['values']())'elementStart'===_0x233928[_0x2e79fd]['type']?_0x233928[_0x2e79fd]['item']['endIndex']=_0x4fb5c2['get'](_0x233928[_0x2e79fd]['pairId']):'elementEnd'===_0x233928[_0x2e79fd]['type']&&(_0x233928[_0x2e79fd]['item']['startIndex']=_0x4fb5c2['get'](_0x233928[_0x2e79fd]['pairId']));}['_processTape'](_0xd2cfe2){for(let _0x51c1f9=0x0;_0x51c1f9<_0xd2cfe2['length'];_0x51c1f9++){if('elementStart'===_0xd2cfe2[_0x51c1f9]['type'])_0xd2cfe2[_0x51c1f9]['item']['startIndex']=_0x51c1f9;else{if('elementEnd'===_0xd2cfe2[_0x51c1f9]['type']){_0xd2cfe2[_0x51c1f9]['item']['endIndex']=_0x51c1f9;const _0x261e71=_0xd2cfe2[_0x51c1f9]['item']['startIndex'];_0xd2cfe2[_0x261e71]['pairId']=_0xd2cfe2[_0x51c1f9]['id'],_0xd2cfe2[_0x51c1f9]['pairId']=_0xd2cfe2[_0x261e71]['id'];}else _0xd2cfe2[_0x51c1f9]['item']['startIndex']=_0x51c1f9,_0xd2cfe2[_0x51c1f9]['item']['endIndex']=_0x51c1f9,_0xd2cfe2[_0x51c1f9]['pairId']=null;}_0xd2cfe2[_0x51c1f9]['markersStart']||(_0xd2cfe2[_0x51c1f9]['markersStart']=[],_0xd2cfe2[_0x51c1f9]['markersEnd']=[]);}}['_markInsertions'](_0x1611d2,_0x4b7545){const _0x1d2efb=_0x1611d2['filter'](_0x4a95ca=>!_0x4a95ca['isAdded']);for(let _0x3acdde=0x0;_0x3acdde<_0x4b7545['length'];_0x3acdde++)_0x4b7545[_0x3acdde]['isAdded']&&(_0x1d2efb[_0x3acdde]['isAdded']=_0x4b7545[_0x3acdde]['isAdded']);}['_getDiff'](_0x327418,_0x527009=null){const _0x241364=this['repository']['getRevision'](_0x327418),_0x598609=_0x527009?this['repository']['getRevision'](_0x527009):null,_0x15fd50=this['_getRevisionsRange'](_0x241364,_0x598609),_0x26f9fa=_0x15fd50[_0x15fd50['length']-0x1],_0x6ada68=new Map(),_0x6125f8={'model':{},'attributes':{},'changes':[]},_0x544b22=new Set(),_0x32b50b=new Map();for(let _0x28d4f9=_0x15fd50['length']-0x1;_0x28d4f9>=0x0;_0x28d4f9--){const _0xce7156=_0x15fd50[_0x28d4f9];for(const _0x1d7a27 of Object['keys'](_0xce7156['diffData']))if(_0xce7156['diffData'][_0x1d7a27]['attachChange']){const _0x36e503=_0xce7156['diffData'][_0x1d7a27]['attachChange'];_0x36e503['isAttached']?(_0x544b22['add'](_0x1d7a27),_0x32b50b['has'](_0x1d7a27)&&_0x32b50b['get'](_0x1d7a27)['userId']==_0x36e503['userId']?_0x32b50b['delete'](_0x1d7a27):_0x32b50b['set'](_0x1d7a27,_0x36e503)):_0x32b50b['has'](_0x1d7a27)?(_0x544b22['delete'](_0x1d7a27),_0x32b50b['delete'](_0x1d7a27)):(_0x544b22['add'](_0x1d7a27),_0x32b50b['set'](_0x1d7a27,_0x36e503));}else _0x544b22['add'](_0x1d7a27);}for(const _0x39d7e4 of _0x544b22){const _0x34cf58=_0x32b50b['has'](_0x39d7e4)&&!_0x32b50b['get'](_0x39d7e4)['isAttached'];let _0x3197fb=_0x34cf58?_0x15fd50['length']-0x1:0x0;const _0x538f69=_0x34cf58?-0x1:0x1;for(;_0x15fd50[_0x3197fb];){const _0x494374=_0x15fd50[_0x3197fb];if(_0x494374['diffData'][_0x39d7e4]){const _0x2e8907=_0x34cf58?_0x494374['diffData'][_0x39d7e4]['attributesBefore']:_0x494374['diffData'][_0x39d7e4]['attributesAfter'];_0x6125f8['attributes'][_0x39d7e4]=_0x2e8907?_0x425cb6(_0x2e8907):{};break;}_0x3197fb+=_0x538f69;}}for(const _0x4d98d7 of _0x15fd50){_0x4d98d7['model']={};for(const _0x1343c3 of _0x4d98d7['authors'])_0x6ada68['set'](_0x1343c3['id'],_0x1343c3);for(const _0x5a4109 of _0x544b22){const _0x27c558=_0x4d98d7['diffData'][_0x5a4109]?_0x4d98d7['diffData'][_0x5a4109]['insertions']:'[]',_0x237abc=_0x4d98d7['diffData'][_0x5a4109]?_0x4d98d7['diffData'][_0x5a4109]['deletions']:'[]';_0x4d98d7['model'][_0x5a4109]={'insertions':this['_utils']['_makeModelFromViewString'](_0x27c558),'deletions':this['_utils']['_makeModelFromViewString'](_0x237abc)};}}for(const _0x492ef8 of _0x544b22){let _0x2c1701=null,_0x2f67b4=0x0;const _0x3611b6=new Map(Array['from'](_0x241364['model'][_0x492ef8]['insertions']['markers'])['filter'](([_0x91aaf9])=>!_0x91aaf9['startsWith']('revision:')));let _0x1747f1=0x0;for(const _0x4defda of _0x15fd50){const _0xddee95=this['_makeTape'](_0x4defda['model'][_0x492ef8]['insertions']);_0x4defda==_0x241364?(_0x2c1701=_0xddee95,_0x2f67b4=_0x2c1701['length'],_0x2c1701['forEach'](_0x34236d=>{_0x34236d['id']=_0x1747f1++;}),this['_processTape'](_0x2c1701)):this['_markInsertions'](_0x2c1701,_0xddee95);const _0xbd8cdf=_0x2c1701['filter'](_0x56f3e5=>!_0x56f3e5['isAdded'])['map'](_0x2102cd=>_0x2102cd['id']);let _0x551520=0x0;const _0x4ae0ce=this['_makeTape'](_0x4defda['model'][_0x492ef8]['deletions']);_0x4ae0ce['forEach'](_0x29ba7a=>{_0x29ba7a['isRemoved']?_0x29ba7a['id']=_0x2f67b4++:_0x29ba7a['id']=_0xbd8cdf[_0x551520++];}),this['_processTape'](_0x4ae0ce),this['_setDistance'](_0x2c1701,'isAdded'),this['_setDistance'](_0x4ae0ce,'isRemoved'),_0x4defda==_0x241364&&this['_markMarkers'](_0x2c1701,_0x3611b6),_0x2c1701=this['_joinTapes'](_0x2c1701,_0x4ae0ce),this['_refreshStartEndIndex'](_0x2c1701),this['_setDistance'](_0x2c1701,'isRemoved');}_0x2c1701=_0x2c1701['filter'](_0x23245b=>!(_0x23245b['isAdded']&&_0x23245b['isRemoved']));const _0x6b662e=new Map(_0x26f9fa['model'][_0x492ef8]['deletions']['markers']),_0x3e803e=new Set(_0x3611b6['keys']());for(const _0x501e92 of _0x6b662e['keys']())_0x3e803e['delete'](_0x501e92);this['_markSuggestions'](_0x2c1701,_0x3e803e),this['_fixObsoleteTags'](_0x2c1701),_0x2c1701=this['_removeMissingPairs'](_0x2c1701),_0x2c1701=this['_markMismatchedRemovedTags'](_0x2c1701),_0x2c1701=this['_removeUnsupportedChanges'](_0x2c1701);const {root:_0x1d0847,changes:_0x47d063}=this['_makeModelFromTape'](_0x2c1701,_0x6ada68,_0x492ef8);_0x6125f8['model'][_0x492ef8]=_0x1d0847;const _0x43bb20=_0x32b50b['get'](_0x492ef8);if(_0x43bb20){const _0x1a487c=_0x6ada68['get'](_0x43bb20['userId']),_0x31ede6=new r({'author':_0x1a487c,'type':_0x43bb20['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x492ef8});_0x47d063['unshift'](_0x31ede6),_0x6125f8['attributes'][_0x492ef8]['revisionHistoryAttachChange']=_0x31ede6['id'];}_0x6125f8['changes']=_0x6125f8['changes']['concat'](_0x47d063);}return _0x6125f8;}['_markMarkers'](_0x9a257e,_0x205f97){for(let _0x1db326=0x0;_0x1db326<_0x9a257e['length'];_0x1db326++)for(const [_0x1a6cb6,_0x350e9f]of _0x205f97)!_0x350e9f['isCollapsed']&&_0x350e9f['start']['isEqual'](_0x9a257e[_0x1db326]['previousPosition'])&&_0x9a257e[_0x1db326]['markersStart']['push'](_0x1a6cb6),_0x350e9f['end']['isEqual'](_0x9a257e[_0x1db326]['nextPosition'])&&_0x9a257e[_0x1db326]['markersEnd']['push'](_0x1a6cb6);}['_joinTapes'](_0x447cb0,_0x1ea2f7){let _0x18ef64=[],_0x5eea6d=0x0,_0xd64016=0x0;for(;_0x5eea6d<_0x447cb0['length']||_0xd64016<_0x1ea2f7['length'];){const _0x358dc1=_0x447cb0[_0x5eea6d]||{},_0x4a3421=_0x1ea2f7[_0xd64016]||{};if(_0x358dc1['id']==_0x4a3421['id'])_0x5eea6d++,_0xd64016++,_0x18ef64['push'](_0x358dc1);else{if(_0x4a3421['isRemoved']&&_0x358dc1['isAdded']){const {commonTape:_0x176068,iEnd:_0x2b5c04,jEnd:_0x361434}=this['_threeWayMerge'](_0x447cb0,_0x5eea6d,_0x1ea2f7,_0xd64016);_0x18ef64=_0x18ef64['concat'](_0x176068),_0x5eea6d=_0x2b5c04,_0xd64016=_0x361434;}else _0x4a3421['isRemoved']?(_0xd64016++,_0x18ef64['push'](_0x4a3421)):(_0x5eea6d++,_0x18ef64['push'](_0x358dc1));}}return _0x18ef64;}['_markSuggestions'](_0x301c41,_0x2b1358){const _0x402d1d=[];for(let _0x4da352=0x0;_0x4da352<_0x301c41['length'];_0x4da352++){for(let _0x474b91=0x0;_0x474b91<_0x301c41[_0x4da352]['markersStart']['length'];_0x474b91++){const _0x4acefd=_0x301c41[_0x4da352]['markersStart'][_0x474b91];if(!_0x2b1358['has'](_0x4acefd))continue;const {group:_0x56dcbb,type:_0x373672,authorId:_0x49c01e}=_0x698ede(_0x4acefd);'revision-suggestion'!=_0x56dcbb||'insertion'!=_0x373672&&'deletion'!=_0x373672||(_0x402d1d['unshift']({'type':_0x373672,'name':_0x4acefd,'userId':_0x49c01e}),_0x301c41[_0x4da352]['markersStart']['splice'](_0x474b91,0x1),_0x474b91--);}_0x19fabf(_0x301c41[_0x4da352]);for(let _0x4d9d9f=0x0;_0x4d9d9f<_0x301c41[_0x4da352]['markersEnd']['length'];_0x4d9d9f++){const _0x382a1e=_0x301c41[_0x4da352]['markersEnd'][_0x4d9d9f];if(!_0x2b1358['has'](_0x382a1e))continue;const {group:_0x46f839,type:_0x34e16f}=_0x698ede(_0x382a1e);if('revision-suggestion'!=_0x46f839||'insertion'!=_0x34e16f&&'deletion'!=_0x34e16f)continue;_0x301c41[_0x4da352]['markersEnd']['splice'](_0x4d9d9f,0x1),_0x4d9d9f--;const _0xff56c=_0x402d1d['findIndex'](_0x52577d=>_0x52577d['name']==_0x382a1e);_0xff56c>-0x1&&_0x402d1d['splice'](_0xff56c,0x1);}}function _0x698ede(_0x59d6e1){const _0x31c4ff=_0x59d6e1['split'](':');return{'group':_0x31c4ff[0x0],'type':_0x31c4ff[0x1],'subType':_0x31c4ff['length']>=0x5?_0x31c4ff[0x2]:null,'id':_0x31c4ff['length']<0x5?_0x31c4ff[0x2]:_0x31c4ff[0x3],'authorId':_0x31c4ff['length']<0x5?_0x31c4ff[0x3]:_0x31c4ff[0x4],'markerCount':0x6==_0x31c4ff['length']?_0x31c4ff[0x5]:null};}function _0x19fabf(_0x3c7136){for(let _0x231f86=0x0;_0x231f86<_0x402d1d['length'];_0x231f86++){if(_0x3c7136['isAdded']&&'insertion'==_0x402d1d[_0x231f86]['type'])return _0x3c7136['isAddSuggestion']=_0x402d1d[_0x231f86],void delete _0x3c7136['isAdded'];if(!_0x3c7136['isAdded']&&!_0x3c7136['isRemoved']&&'deletion'==_0x402d1d[_0x231f86]['type'])return void(_0x3c7136['isRemoveSuggestion']=_0x402d1d[_0x231f86]);}}}['_setDistance'](_0x506ad6,_0x148393){let _0x42c9b0=0x0,_0x49f71c=!0x1;const _0x2c5f2b=new Map();for(const _0x236b40 of _0x506ad6)_0x236b40[_0x148393]?_0x49f71c&&(_0x42c9b0++,_0x49f71c=!0x1):(_0x42c9b0++,_0x49f71c=!0x0),_0x2c5f2b['set'](_0x236b40['id'],_0x42c9b0);for(let _0x16a1bb=0x0;_0x16a1bb<_0x506ad6['length'];_0x16a1bb++){if('isRemoved'==_0x148393&&_0x506ad6[_0x16a1bb]['isAdded']||'isAdded'==_0x148393&&_0x506ad6[_0x16a1bb]['isRemoved'])continue;if('text'==_0x506ad6[_0x16a1bb]['type']){_0x506ad6[_0x16a1bb]['distance']=0x0;continue;}const _0x12fb2c=_0x2c5f2b['get'](_0x506ad6[_0x16a1bb]['pairId']),_0x31a766=_0x2c5f2b['get'](_0x506ad6[_0x16a1bb]['id']);_0x506ad6[_0x16a1bb]['distance']=_0x12fb2c-_0x31a766;}}['_getRevisionsRange'](_0x380d38,_0x223cbf,_0x549337=!0x1){const _0x42b75f=[];let _0x555a65=this['repository']['getIndex'](_0x380d38),_0x4b1b30=this['repository']['getIndex'](_0x223cbf);for(-0x1==_0x4b1b30&&(_0x4b1b30=this['repository']['_revisions']['length'],_0x549337=!0x1);_0x555a65<_0x4b1b30;)_0x42b75f['push'](this['repository']['getRevision'](_0x555a65)),_0x555a65++;return _0x549337&&_0x42b75f['push'](this['repository']['getRevision'](_0x555a65)),_0x42b75f;}['_threeWayMerge'](_0xfda82,_0x3dc860,_0x467fb7,_0x330fb6){const _0x2186fb=this['editor']['model']['schema'];let _0x2f1b93=_0x3dc860;for(;_0xfda82[_0x2f1b93]&&_0xfda82[_0x2f1b93]['isAdded'];)_0x2f1b93++;let _0x3c4897=_0x330fb6;for(;_0x467fb7[_0x3c4897]&&_0x467fb7[_0x3c4897]['isRemoved'];)_0x3c4897++;_0x5cf631(_0xfda82,_0x3dc860,_0x2f1b93),_0x5cf631(_0x467fb7,_0x330fb6,_0x3c4897);const _0x34b66a=_0x467fb7['slice'](_0x330fb6,_0x3c4897)['concat'](_0xfda82['slice'](_0x3dc860,_0x2f1b93));return _0x34b66a['sort']((_0x57351a,_0x11cf94)=>_0x57351a['side']!=_0x11cf94['side']?_0x57351a['side']-_0x11cf94['side']:_0x57351a['level']!=_0x11cf94['level']?_0x57351a['level']-_0x11cf94['level']:_0x57351a['distance']!=_0x11cf94['distance']?_0x11cf94['distance']-_0x57351a['distance']:!!_0x57351a['isAdded']!=!!_0x11cf94['isAdded']?-0x1==_0x57351a['side']||0x0==_0x57351a['side']?_0x57351a['isAdded']?-0x1:0x1:_0x57351a['isAdded']?0x1:-0x1:_0x57351a['index']-_0x11cf94['index']),{'commonTape':_0x34b66a,'iEnd':_0x2f1b93,'jEnd':_0x3c4897};function _0x5cf631(_0x35f965,_0x1bdffe,_0x562aed){let _0x15cdc1=-0x1,_0x1332d5=Number['POSITIVE_INFINITY'],_0x3990b4=!0x0;for(let _0x2948ad=_0x1bdffe;_0x2948ad<_0x562aed;_0x2948ad++)if(_0x2186fb['isInline'](_0x35f965[_0x2948ad]['item'])||(_0x3990b4=!0x1),_0x35f965[_0x2948ad]['item']['startIndex']<_0x1bdffe&&(_0x15cdc1=_0x2948ad),_0x35f965[_0x2948ad]['item']['endIndex']>=_0x562aed){_0x1332d5=_0x2948ad;break;}_0x3990b4&&(_0x15cdc1=_0x562aed-0x1);for(let _0x5cba70=_0x1bdffe;_0x5cba70<_0x562aed;_0x5cba70++)_0x35f965[_0x5cba70]['side']=_0x5cba70<=_0x15cdc1?-0x1:_0x5cba70<_0x1332d5?0x0:0x1,_0x35f965[_0x5cba70]['index']=_0x5cba70;let _0x25c3af=0x0;for(let _0x3cd6fd=_0x1bdffe;_0x3cd6fd<=_0x15cdc1;_0x3cd6fd++)0x0==_0x35f965[_0x3cd6fd]['distance']?_0x35f965[_0x3cd6fd]['level']=_0x25c3af:(_0x25c3af++,_0x35f965[_0x3cd6fd]['level']=_0x25c3af,_0x25c3af++);for(let _0x24d43c=_0x1bdffe;_0x24d43c<_0x562aed;_0x24d43c++)0x0==_0x35f965[_0x24d43c]['side']&&(_0x35f965[_0x24d43c]['level']=_0x25c3af);_0x25c3af=0x0;for(let _0x3cd17c=_0x562aed-0x1;_0x3cd17c>=_0x1332d5;_0x3cd17c--)0x0==_0x35f965[_0x3cd17c]['distance']?_0x35f965[_0x3cd17c]['level']=_0x25c3af:(_0x25c3af--,_0x35f965[_0x3cd17c]['level']=_0x25c3af,_0x25c3af--);}}['_fixObsoleteTags'](_0x444064){const _0x382f80=new Map(),_0x21c506=this['editor']['model']['schema'];for(let _0x190ed5=0x1;_0x190ed5<_0x444064['length'];_0x190ed5++){let _0x4ca9c7,_0x4387ba,_0x195675;const _0x30ac10=_0x444064[_0x190ed5],_0x42669b=_0x444064[_0x190ed5-0x1];if('text'==_0x30ac10['type'])continue;if(_0x30ac10['type']!=_0x42669b['type'])continue;if(!_0x21c506['isBlock'](_0x42669b['item'])||_0x21c506['isLimit'](_0x42669b['item']))continue;if(!_0x21c506['isBlock'](_0x30ac10['item'])||_0x21c506['isLimit'](_0x30ac10['item']))continue;if((_0x444064[_0x190ed5]['isAdded']||_0x444064[_0x190ed5]['isAddSuggestion'])&&_0x444064[_0x190ed5-0x1]['isRemoved'])_0x4ca9c7=_0x444064[_0x190ed5],_0x4387ba=_0x444064[_0x190ed5-0x1],_0x195675=_0x190ed5-0x1;else{if(!_0x444064[_0x190ed5]['isRemoved']||!_0x444064[_0x190ed5-0x1]['isAdded']&&!_0x444064[_0x190ed5-0x1]['isAddSuggestion'])continue;_0x4ca9c7=_0x444064[_0x190ed5-0x1],_0x4387ba=_0x444064[_0x190ed5],_0x195675=_0x190ed5;}const _0x56abe1=_0x4ca9c7['level']==_0x4387ba['level'],_0xdce170=Math['abs'](_0x4ca9c7['level'])<Math['abs'](_0x4387ba['level'])&&0x0==_0x4387ba['distance'];(_0x56abe1||_0xdce170)&&(_0x382f80['set'](_0x4387ba['id'],_0x4ca9c7['id']),_0x444064['splice'](_0x195675,0x1),_0x190ed5--,_0x4ca9c7['isAdded']=!0x1);}for(let _0x20e5be=0x0;_0x20e5be<_0x444064['length'];_0x20e5be++)_0x382f80['has'](_0x444064[_0x20e5be]['pairId'])&&(_0x444064[_0x20e5be]['pairId']=_0x382f80['get'](_0x444064[_0x20e5be]['pairId']));}['_removeMissingPairs'](_0x557751){const _0x5d48d4=new Set(_0x557751['map'](_0x34edc6=>_0x34edc6['id']));for(let _0x2463ee=0x0;_0x2463ee<_0x557751['length'];_0x2463ee++)_0x5d48d4['has'](_0x557751[_0x2463ee]['pairId'])||0x0==_0x557751[_0x2463ee]['distance']||(_0x557751[_0x2463ee]['isIncorrect']=!0x0);return _0x557751['filter'](_0x13e49b=>!_0x13e49b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5e3a5a){const _0x4a8bab=new Set();for(let _0x2c19af=0x0;_0x2c19af<_0x5e3a5a['length'];_0x2c19af++){if(_0x4a8bab['has'](_0x5e3a5a[_0x2c19af]['id'])&&_0x5e3a5a[_0x2c19af]['isRemoved']&&(_0x5e3a5a[_0x2c19af]['isIncorrect']=!0x0),_0x5e3a5a[_0x2c19af]['isIncorrect'])continue;if(0x0==_0x5e3a5a[_0x2c19af]['distance'])continue;if('elementStart'!=_0x5e3a5a[_0x2c19af]['type'])continue;if(null==_0x5e3a5a[_0x2c19af]['pairId'])continue;let _0xf19f6d=_0x2c19af+0x1,_0x3741ed=0x0;for(;_0x5e3a5a[_0xf19f6d]['id']!=_0x5e3a5a[_0x2c19af]['pairId'];)'elementStart'==_0x5e3a5a[_0xf19f6d]['type']?_0x3741ed++:'elementEnd'==_0x5e3a5a[_0xf19f6d]['type']&&_0x3741ed--,_0xf19f6d++;if(0x0!=_0x3741ed){if(_0x5e3a5a[_0x2c19af]['isRemoved'])_0x5e3a5a[_0x2c19af]['isIncorrect']=!0x0;else{for(;_0xf19f6d!=_0x2c19af;)_0x5e3a5a[_0xf19f6d]['isRemoved']&&0x0!=_0x5e3a5a[_0xf19f6d]['distance']&&(_0x5e3a5a[_0xf19f6d]['isIncorrect']=!0x0,_0x4a8bab['add'](_0x5e3a5a[_0xf19f6d]['pairId'])),_0xf19f6d--;}}}return _0x5e3a5a['filter'](_0x1ec71e=>!_0x1ec71e['isIncorrect']);}['_removeUnsupportedChanges'](_0x4bf99f){const _0x293907=this['editor']['model']['schema'];for(let _0x5b9322=0x0;_0x5b9322<_0x4bf99f['length'];_0x5b9322++){if(!(_0x4bf99f[_0x5b9322]['isAdded']||_0x4bf99f[_0x5b9322]['isAddSuggestion']||_0x4bf99f[_0x5b9322]['isRemoved']||_0x4bf99f[_0x5b9322]['isRemoveSuggestion']))continue;if(0x0==_0x4bf99f[_0x5b9322]['distance'])continue;const _0x513fc4=_0x4bf99f[_0x5b9322]['item'];_0x293907['isBlock'](_0x513fc4)||_0x293907['isLimit'](_0x513fc4)||(_0x4bf99f[_0x5b9322]['isAdded']&&delete _0x4bf99f[_0x5b9322]['isAdded'],_0x4bf99f[_0x5b9322]['isAddSuggestion']&&delete _0x4bf99f[_0x5b9322]['isAddSuggestion'],_0x4bf99f[_0x5b9322]['isRemoveSuggestion']&&delete _0x4bf99f[_0x5b9322]['isRemoveSuggestion'],_0x4bf99f[_0x5b9322]['isRemoved']&&(_0x4bf99f[_0x5b9322]['isIncorrect']=!0x0));}return _0x4bf99f['filter'](_0xc3a6dd=>!_0xc3a6dd['isIncorrect']);}['_makeModelFromTape'](_0x5a4c9e,_0x51c020,_0x4540b4){const _0x27e6e9=new vt(),_0x3423fb=[],_0xc5efff=new Map(),_0x206f02=this['editor']['model'],_0x1171ba=_0x206f02['schema'],_0x1a4281=[_0x27e6e9],_0x12c36e={},_0x30f530={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2b3059=null;const _0x910421=[0x0];for(let _0x5cd34e=0x0;_0x5cd34e<_0x5a4c9e['length'];_0x5cd34e++)if('elementStart'===_0x5a4c9e[_0x5cd34e]['type']){_0x5a4c9e[_0x5cd34e]['previousPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421);const _0x54e381=new ut(_0x5a4c9e[_0x5cd34e]['item']['name'],_0x5a4c9e[_0x5cd34e]['item']['getAttributes']());_0x1a4281[0x0]['_appendChild'](_0x54e381),_0x910421['push'](0x0),_0x1a4281['unshift'](_0x54e381),_0x5a4c9e[_0x5cd34e]['nextPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421);}else'elementEnd'===_0x5a4c9e[_0x5cd34e]['type']?(_0x1a4281['shift'](),_0x5a4c9e[_0x5cd34e]['previousPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421),_0x910421['pop'](),_0x910421[_0x910421['length']-0x1]++,_0x5a4c9e[_0x5cd34e]['nextPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421)):(_0x5a4c9e[_0x5cd34e]['previousPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421),_0x2b3059?_0x2b3059['_data']+=_0x5a4c9e[_0x5cd34e]['item']['data']:_0x2b3059=new gt(_0x5a4c9e[_0x5cd34e]['item']['data'],_0x5a4c9e[_0x5cd34e]['item']['getAttributes']()),_0x5a4c9e[_0x5cd34e+0x1]&&'text'===_0x5a4c9e[_0x5cd34e+0x1]['type']&&_0x5bf36e(_0x2b3059,_0x5a4c9e[_0x5cd34e+0x1]['item'])||(_0x1a4281[0x0]['_appendChild'](_0x2b3059),_0x2b3059=null),_0x910421[_0x910421['length']-0x1]+=_0x5a4c9e[_0x5cd34e]['item']['offsetSize'],_0x5a4c9e[_0x5cd34e]['nextPosition']=_0x206f02['createPositionFromPath'](_0x27e6e9,_0x910421));for(let _0x5dd944=0x0;_0x5dd944<_0x5a4c9e['length'];_0x5dd944++){const _0x5e7c04=_0x5a4c9e[_0x5dd944]['previousPosition'],_0x1d03bf=_0x5a4c9e[_0x5dd944]['nextPosition'];for(const _0x29d5ca of _0x5a4c9e[_0x5dd944]['markersStart'])_0xc5efff['set'](_0x29d5ca,{'start':_0x5e7c04,'end':null});_0x4b9692('isRemoveSuggestion',_0x5dd944,_0x5e7c04,_0x1d03bf),_0x4b9692('isAddSuggestion',_0x5dd944,_0x5e7c04,_0x1d03bf),_0x4b9692('isRemoved',_0x5dd944,_0x5e7c04,_0x1d03bf),_0x4b9692('isAdded',_0x5dd944,_0x5e7c04,_0x1d03bf);for(const _0x557dc1 of _0x5a4c9e[_0x5dd944]['markersEnd']){const _0x50b0e8=_0xc5efff['get'](_0x557dc1);_0x50b0e8?_0x50b0e8['end']=_0x1d03bf:_0xc5efff['set'](_0x557dc1,{'start':_0x1d03bf,'end':_0x1d03bf});}}for(const [_0x478586,_0x13398e]of _0xc5efff){const _0x236611=this['editor']['model']['createRange'](_0x13398e['start'],_0x13398e['end']);_0x27e6e9['markers']['set'](_0x478586,_0x236611);}return _0x3423fb['sort']((_0x2511af,_0x59c915)=>{const _0x3997d1=_0x27e6e9['markers']['get']('revision:'+_0x2511af['id']),_0x31733b=_0x27e6e9['markers']['get']('revision:'+_0x59c915['id']);return _0x3997d1['start']['isBefore'](_0x31733b['start'])?-0x1:_0x3997d1['start']['isAfter'](_0x31733b['start'])?0x1:_0x3997d1['end']['isBefore'](_0x31733b['end'])?-0x1:_0x3997d1['end']['isAfter'](_0x31733b['end'])?0x1:'add'===_0x2511af['type']?-0x1:0x1;}),{'root':_0x27e6e9,'changes':_0x3423fb};function _0x4b9692(_0xfb6cf1,_0x48d528,_0x158d53,_0x35cb8d){const _0x3f4cb4=!!_0x5a4c9e[_0x48d528][_0xfb6cf1],_0x4ce2f0=_0x3f4cb4?_0x5a4c9e[_0x48d528][_0xfb6cf1]['userId']:null,_0x4fda4f=_0x48d528===_0x5a4c9e['length']-0x1,_0x5e5804=_0x30f530[_0xfb6cf1][0x0],_0x34e22c=_0x1171ba['isObject'](_0x5a4c9e[_0x48d528]['item']);!_0x12c36e[_0xfb6cf1]&&_0x3f4cb4?_0x12c36e[_0xfb6cf1]={'start':_0x158d53,'tapeItem':_0x5a4c9e[_0x48d528],'userId':_0x4ce2f0,'type':_0xfb6cf1}:_0x12c36e[_0xfb6cf1]&&!_0x3f4cb4?(_0x12c36e[_0xfb6cf1]['end']=_0x158d53,_0x467bc0(_0x12c36e[_0xfb6cf1]),_0x12c36e[_0xfb6cf1]=null):_0x12c36e[_0xfb6cf1]&&_0x3f4cb4&&_0x12c36e[_0xfb6cf1]['userId']!==_0x4ce2f0&&(_0x12c36e[_0xfb6cf1]['end']=_0x158d53,_0x5e5804&&_0x5e5804['userId']===_0x12c36e[_0xfb6cf1]['userId']||_0x467bc0(_0x12c36e[_0xfb6cf1]),_0x12c36e[_0xfb6cf1]={'start':_0x158d53,'tapeItem':_0x5a4c9e[_0x48d528],'userId':_0x4ce2f0,'type':_0xfb6cf1}),_0x12c36e[_0xfb6cf1]&&_0x34e22c&&('elementStart'!==_0x5a4c9e[_0x48d528]['type']||_0x5e5804&&_0x5e5804['userId']===_0x4ce2f0||_0x30f530[_0xfb6cf1]['unshift']({'userId':_0x4ce2f0,'object':_0x5a4c9e[_0x48d528]['item'],'change':_0x12c36e[_0xfb6cf1]}),'elementEnd'===_0x5a4c9e[_0x48d528]['type']&&_0x5e5804&&_0x5e5804['object']===_0x5a4c9e[_0x48d528]['item']&&(_0x30f530[_0xfb6cf1]['shift'](),_0x12c36e[_0xfb6cf1]=_0x5e5804['change'])),_0x12c36e[_0xfb6cf1]&&_0x4fda4f&&(_0x12c36e[_0xfb6cf1]['end']=_0x35cb8d,_0x467bc0(_0x12c36e[_0xfb6cf1]),_0x12c36e[_0xfb6cf1]=null);}function _0x467bc0({start:_0x43d146,end:_0x1f1d54,tapeItem:_0x292b8a,userId:_0x5e0033,type:_0x23acb7}){const _0x67a500=_0x292b8a['item'],_0x3b1436=_0x206f02['schema']['isBlock'](_0x67a500)&&!_0x206f02['schema']['isLimit'](_0x67a500),_0x127015=_0x43d146['nodeAfter']==_0x1f1d54['parent']&&_0x1f1d54['isAtStart'];if(_0x3b1436&&_0x127015)return;const _0x52befa=_0x206f02['createRange'](_0x43d146,_0x1f1d54),_0x40d6ed=_0x51c020['get'](_0x5e0033),_0x4671c2=new r({'author':_0x40d6ed,'type':'isAdded'==_0x23acb7||'isAddSuggestion'==_0x23acb7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x23acb7||'isRemoveSuggestion'==_0x23acb7},'createdAt':new Date(),'rootName':_0x4540b4});_0x3423fb['push'](_0x4671c2),_0x27e6e9['markers']['set']('revision:'+_0x4671c2['id'],_0x52befa);}function _0x5bf36e(_0x495318,_0x132bd2){const _0x24926b=_0x495318['getAttributes'](),_0x43f005=_0x132bd2['getAttributes']();for(const _0x24c027 of _0x24926b){if(_0x24c027[0x1]!==_0x132bd2['getAttribute'](_0x24c027[0x0]))return!0x1;_0x43f005['next']();}return _0x43f005['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42e74e=>{const _0x50755b=_0x42e74e['markerName']['split'](':')[0x1],_0x8e5449=this['_getChangeFromId'](_0x50755b);if(!_0x8e5449)return null;const _0x11e849='add'==_0x8e5449['type']?'insertion':'deletion',_0x5003c0=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11e849];return _0x8e5449['data']['isSuggestion']&&_0x5003c0['push']('ck-suggestion-marker-'+_0x11e849+'-new'),this['activeChange']==_0x8e5449&&_0x5003c0['push']('ck-suggestion-marker--active'),{'classes':_0x5003c0,'attributes':{'data-change-id':_0x50755b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4a10cd=>{_0x4a10cd['on']('element:pre',(_0x295f26,_0x3b3ca4,_0x47f754)=>{const _0x12d9a7=_0x3b3ca4['viewItem']['getChild'](0x0);if(!_0x12d9a7||!_0x12d9a7['is']('element','code'))return;if(!_0x47f754['consumable']['consume'](_0x12d9a7,{'attributes':['vid_start','vid_end']}))return;const _0x1ee258=_0x3b3ca4['modelRange']['start']['nodeAfter'];_0x47f754['writer']['setAttribute']('vid_start',_0x12d9a7['getAttribute']('vid_start'),_0x1ee258),_0x47f754['writer']['setAttribute']('vid_end',_0x12d9a7['getAttribute']('vid_end'),_0x1ee258);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xd936ea=>{_0xd936ea['on']('element',(_0x3e42cd,_0x540c30,_0x433ccb)=>{if(!_0x433ccb['consumable']['consume'](_0x540c30['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x540c30['modelRange']['isCollapsed'])return;const _0x5e1a29=_0x540c30['modelRange']['start']['nodeAfter'];_0x5e1a29['hasAttribute']('vid_start')||_0x5e1a29['hasAttribute']('vid')||(_0x433ccb['writer']['setAttribute']('vid_start',_0x540c30['viewItem']['getAttribute']('vid_start'),_0x5e1a29),_0x433ccb['writer']['setAttribute']('vid_end',_0x540c30['viewItem']['getAttribute']('vid_end'),_0x5e1a29));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x24e20e=>_0x24e20e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x480a48,[,_0x41b94d])=>{['vid_start','vid_end','vid']['includes'](_0x41b94d)&&(_0x480a48['return']=!0x0,_0x480a48['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x130ad2=>{_0x130ad2['on']('attribute:vid',(_0x192ee3,_0x2f40ff,_0x49e7f1)=>{if('\x20'!=_0x2f40ff['item']['data']||_0x2f40ff['item']['parent']['maxOffset']>0x1)return;if(!_0x49e7f1['consumable']['consume'](_0x2f40ff['item'],_0x192ee3['name']))return;const _0x102080=_0x49e7f1['writer'],_0x29a816=_0x49e7f1['mapper']['toViewRange'](_0x2f40ff['range']);_0x102080['wrap'](_0x29a816,_0x102080['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x492b38){const _0x1c76a8=_0x492b38['plugins']['get']('RevisionViewer');return(_0x29189b,_0x9abae2,_0x564d35)=>{const _0x6a51eb=_0x9abae2['markerName']['split'](':')[0x1],_0x328ad0=_0x1c76a8['_getChangeFromId'](_0x6a51eb);if(!_0x328ad0)return null;const _0x47df1e='add'==_0x328ad0['type']?'split':'merge';if(!_0x564d35['consumable']['test'](_0x9abae2['markerRange'],_0x29189b['name']))return;const _0x3e34ac=_0x9abae2['markerRange']['getWalker'](),_0x31ac9b=_0x9abae2['markerRange']['start'],_0x489fb9=_0x492b38['model']['schema'];let _0x53c51d=null,_0x6fb43c=null,_0x290c20=!0x1,_0x4849bb=!0x1;for(const _0x50e645 of _0x3e34ac){const _0x494b6c=_0x50e645['item'];_0x290c20=_0x290c20||_0x489fb9['isContent'](_0x494b6c);const _0x4fd904=_0x564d35['mapper']['toViewElement'](_0x494b6c);if(_0x4fd904&&_0x4fd904['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50e645['type']&&(_0x489fb9['isBlock'](_0x494b6c)&&!_0x489fb9['isLimit'](_0x494b6c)&&(_0x494b6c['nextSibling']||_0x31ac9b['isAtEnd']?_0x53c51d&&_0x53c51d['parent']==_0x494b6c||(_0x53c51d=_0x494b6c,_0x4e9749(_0x50e645['previousPosition']),_0x4849bb=!0x0):_0x6fb43c=_0x6fb43c||_0x50e645['previousPosition']));}function _0x4e9749(_0x4f6a53){const _0xf4c007=_0x564d35['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47df1e}),_0x364981=_0x564d35['mapper']['toViewPosition'](_0x4f6a53);_0x328ad0['data']['isSuggestion']&&_0x564d35['writer']['addClass']('ck-suggestion-marker-'+_0x47df1e+'-new',_0xf4c007),_0x1c76a8['activeChange']==_0x328ad0&&_0x564d35['writer']['addClass']('ck-suggestion-marker--active',_0xf4c007),_0x564d35['writer']['insert'](_0x364981,_0xf4c007),_0x564d35['mapper']['bindElementToMarker'](_0xf4c007,_0x9abae2['markerName']);}_0x290c20||_0x4849bb||!_0x6fb43c||_0x4e9749(_0x6fb43c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1b77e8,_0x4af6bb,_0x471e33)=>{const _0x2f747a=_0x471e33['mapper']['markerNameToElements'](_0x4af6bb['markerName']);if(_0x2f747a){for(const _0x2392aa of _0x2f747a)(_0x2392aa['hasClass']('ck-suggestion-marker-split')||_0x2392aa['hasClass']('ck-suggestion-marker-merge'))&&(_0x471e33['mapper']['unbindElementFromMarkerName'](_0x2392aa,_0x4af6bb['markerName']),_0x471e33['writer']['remove'](_0x2392aa));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2fe626,_0x376397,_0x44dc84)=>{const _0x1b10cd=_0x376397['markerName']['split'](':')[0x1],_0x5f2254=this['_getChangeFromId'](_0x1b10cd);if(!_0x5f2254)return null;const _0x41351b='add'==_0x5f2254['type']?'split':'merge';if(_0x44dc84['consumable']['test'](_0x376397['markerRange'],_0x2fe626['name']))for(const _0x2866e7 of _0x376397['markerRange']['getItems']()){if(!_0x2866e7['is']('element','softBreak'))continue;const _0x2de012=_0x44dc84['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41351b}),_0x2bf2d7=_0x44dc84['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2866e7));_0x5f2254['data']['isSuggestion']&&_0x44dc84['writer']['addClass']('ck-suggestion-marker-'+_0x41351b+'-new',_0x2de012),this['activeChange']==_0x5f2254&&_0x44dc84['writer']['addClass']('ck-suggestion-marker--active',_0x2de012),_0x44dc84['writer']['insert'](_0x2bf2d7,_0x2de012),_0x44dc84['mapper']['bindElementToMarker'](_0x2de012,_0x376397['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x18527e=>{for(const _0x2c0a5f of this['editor']['model']['document']['getRootNames']()){const _0x3072d3=this['editor']['model']['document']['getRoot'](_0x2c0a5f),_0x39bdc3=this['editor']['editing']['view']['document']['getRoot'](_0x2c0a5f);if(_0x39bdc3){const _0x1176ad=_0x3072d3['getAttribute']('revisionHistoryAttachChange');if(_0x18527e['removeAttribute']('data-change-id',_0x39bdc3),_0x18527e['removeClass']('ck-revision-history-root-add',_0x39bdc3),_0x18527e['removeClass']('ck-revision-history-root-remove',_0x39bdc3),_0x18527e['removeClass']('ck-revision-history-root--active',_0x39bdc3),_0x1176ad){const _0x280bf3=this['_getChangeFromId'](_0x1176ad);if(!_0x280bf3)return null;_0x18527e['setAttribute']('data-change-id',_0x1176ad,_0x39bdc3),_0x18527e['addClass']('ck-revision-history-root-'+_0x280bf3['type'],_0x39bdc3),this['activeChange']==_0x280bf3&&_0x18527e['addClass']('ck-revision-history-root--active',_0x39bdc3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xedfc30=>'revision-comment:'+_0xedfc30,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4af8a6=>'revision-suggestion:'+_0x4af8a6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5acfbc=>({'name':'suggestion:'+_0x5acfbc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x55566b=>{const _0x1de12b=_0x55566b['markerName']['split'](':')[0x1];return'insertion'!=_0x1de12b&&'deletion'!=_0x1de12b?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1de12b]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1ff845,_0xc4174d,_0x1198a8)=>{const _0x3240be=_0x1198a8['mapper']['markerNameToElements'](_0xc4174d['markerName']);if(_0x3240be){for(const _0x2a03e4 of _0x3240be)_0x2a03e4['is']('uiElement')&&(_0x1198a8['mapper']['unbindElementFromMarkerName'](_0x2a03e4,_0xc4174d['markerName']),_0x1198a8['writer']['remove'](_0x2a03e4));}},{'priority':'high'});}['_getChangeFromId'](_0x5acea1){return this['_changeIdToChange']['get'](_0x5acea1);}['_getViewForChange'](_0x5c1cf7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5c1cf7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3e185e,_0x33e565,_0x29b8a5,_0x41929a)=>{_0x41929a&&this['_balloon']['remove'](_0x41929a),_0x29b8a5&&(this['_balloon']['add']({'view':_0x29b8a5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4da630=this['editor']['editing'],_0xd86462=this['_getChangeFromId'](_0x29b8a5['changeId']);let _0x51daec;if(_0xd86462['data']['isOnRoot']){const _0x3179c1=_0x4da630['view']['getDomRoot'](_0xd86462['rootName']);_0x51daec=Array['from'](_0x3179c1['getClientRects']());}else{const _0x284566=this['editor']['model']['markers']['get']('revision:'+_0x29b8a5['changeId']);_0x51daec=Array['from'](_0x4da630['mapper']['markerNameToElements'](_0x284566['name']))['map'](_0x312202=>_0x4da630['view']['domConverter']['mapViewToDom'](_0x312202))['map'](_0x1e2cf8=>Array['from'](_0x1e2cf8['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x51daec[0x0];return _0x51daec['find'](_0x5bbaf4=>_0x5bbaf4['top']-0x3<=this['_activeViewTarget']['y']&&_0x5bbaf4['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5bbaf4['left']-0x3<=this['_activeViewTarget']['x']&&_0x5bbaf4['right']+0x3>=this['_activeViewTarget']['x'])||_0x51daec[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1c0ddd,_0x40ef7b,_0x278c11,_0x277351)=>{this['activeView']=_0x278c11?this['_getViewForChange'](_0x278c11):null,this['editor']['model']['change'](()=>{const _0x14e3ae=this['editor']['editing'];_0x277351&&(_0x277351['data']['isOnRoot']?_0x14e3ae['view']['change'](_0x2d2e56=>{_0x2d2e56['removeClass']('ck-revision-history-root--active',_0x14e3ae['view']['document']['getRoot'](_0x277351['rootName']));}):_0x14e3ae['reconvertMarker']('revision:'+_0x277351['id'])),_0x278c11&&(_0x278c11['data']['isOnRoot']?_0x14e3ae['view']['change'](_0x23a080=>{_0x23a080['addClass']('ck-revision-history-root--active',_0x14e3ae['view']['document']['getRoot'](_0x278c11['rootName']));}):_0x14e3ae['reconvertMarker']('revision:'+_0x278c11['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x235aeb,_0x20b29e)=>{if(this['activeChange'])return;const _0xe5ff42=this['_findChangeIdFromDomTarget'](_0x20b29e['target']),_0x413ab1=this['_changeIdToChange']['get'](_0xe5ff42);_0x413ab1?(this['_activeViewTarget']={'x':_0x20b29e['domEvent']['x'],'y':_0x20b29e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x413ab1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2c30f9,_0x4398ca)=>{const _0x5366bf=this['_findChangeIdFromDomTarget'](_0x4398ca['target']),_0x771ed8=this['_changeIdToChange']['get'](_0x5366bf);_0x771ed8?(this['_activeViewTarget']={'x':_0x4398ca['domEvent']['x'],'y':_0x4398ca['domEvent']['y']},_0x771ed8===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x771ed8):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x287e4d){do{const _0x408566=_0x287e4d['getAttribute']('data-change-id');if(_0x408566)return _0x408566;_0x287e4d=_0x287e4d['parent'];}while(_0x287e4d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x570c6d=>{for(const _0x404771 of this['editor']['model']['markers'])_0x570c6d['removeMarker'](_0x404771);});}}function X(_0xad30fd,_0x4191c6){return(_0x2c25c1,_0x3eaeb4,_0x5c9ff2)=>{if(!_0x5c9ff2['consumable']['test'](_0x3eaeb4['markerRange'],_0x2c25c1['name']))return;const _0x42e900=_0x3eaeb4['markerRange']['getWalker'](),_0x4b4e98=_0x3eaeb4['markerRange']['start'],_0x131415=_0xad30fd['model']['schema'];let _0x45fd55=null,_0x323623=null,_0x4d6160=!0x1,_0x2382f0=!0x1;for(const _0x4e1b13 of _0x42e900){const _0x71d90f=_0x4e1b13['item'];_0x4d6160=_0x4d6160||_0x131415['isContent'](_0x71d90f);const _0x3044e5=_0x5c9ff2['mapper']['toViewElement'](_0x71d90f);if(_0x3044e5&&_0x3044e5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e1b13['type']&&(_0x131415['isBlock'](_0x71d90f)&&!_0x131415['isLimit'](_0x71d90f)&&(_0x71d90f['nextSibling']||_0x4b4e98['isAtEnd']?_0x45fd55&&_0x45fd55['parent']==_0x71d90f||(_0x45fd55=_0x71d90f,_0x15b52a(_0x4e1b13['previousPosition']),_0x2382f0=!0x0):_0x323623=_0x323623||_0x4e1b13['previousPosition']));}function _0x15b52a(_0x172385){const _0xedc7d8=_0x5c9ff2['mapper']['toViewPosition'](_0x172385),_0x517fcc=_0x5c9ff2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4191c6});_0x5c9ff2['writer']['insert'](_0xedc7d8,_0x517fcc),_0x5c9ff2['mapper']['bindElementToMarker'](_0x517fcc,_0x3eaeb4['markerName']);}_0x4d6160||_0x2382f0||!_0x323623||_0x15b52a(_0x323623);};}class mt extends _0x4bf53c{constructor(_0x2d0b40){super(_0x2d0b40);const _0x276d5c=_0x2d0b40['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x276d5c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x276d5c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x28bdb5=this['editor'],_0x4bed8d=_0x28bdb5['plugins']['get'](m),_0x397e72=_0x4bed8d['isReady']?_0x4bed8d['diff']['newRevisionId']:null;_0x28bdb5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x397e72);}['refresh'](){const {isReady:_0x3be1e9,isEnabled:_0x462d26,repository:_0x531ffa,diff:_0x3c3135}=this['editor']['plugins']['get'](m),_0x149067=_0x3c3135&&_0x531ffa['getLaterVisibleRevision'](_0x3c3135['newRevisionId']);this['isEnabled']=_0x3be1e9&&_0x462d26&&Boolean(_0x149067);}}class wt extends _0x4bf53c{['_step'];constructor(_0x37f699,{direction:_0x21b010}){super(_0x37f699);const _0x518da3=_0x37f699['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x21b010?0x1:-0x1,this['listenTo'](_0x518da3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x518da3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x518da3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1425cd=this['editor'],_0x32cb17=_0x1425cd['plugins']['get'](m),{isNavigationMode:_0x45f7c1,currentChangeNumber:_0xc169ba}=_0x32cb17;let _0x2fe951;if(_0x32cb17['activeChange']=_0x45f7c1?_0x32cb17['diff']['changes']['get'](_0xc169ba+this['_step']):_0x32cb17['diff']['changes']['first'],_0x32cb17['activeChange']['data']['isOnRoot'])_0x2fe951=_0x1425cd['editing']['view']['getDomRoot'](_0x32cb17['activeChange']['rootName']);else{const _0xc7e26b=_0x1425cd['model']['markers']['get']('revision:'+_0x32cb17['activeChange']['id']);_0x2fe951=_0x3748cb(_0x1425cd['editing'],_0xc7e26b);}_0x3ccd89({'target':_0x2fe951,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5a8fa9,currentChangeNumber:_0x372294,numberOfChanges:_0x1292b6,isReady:_0x559603,isEnabled:_0x356c1d}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x356c1d&&_0x559603&&_0x1292b6)&&(!_0x5a8fa9||(0x1===this['_step']?_0x372294<_0x1292b6-0x1:_0x372294>0x0));}}class _i extends ts{constructor(_0x28d47c){super(_0x28d47c);const _0x4bac7f=this['bindTemplate'],_0x1de506=new te(_0x28d47c),_0x25eeab=new te(_0x28d47c);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',(_0x5e8691,_0x111b4e)=>_0x5e8691&&_0x111b4e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x20080d,_0x5bb29e,_0x22445d,_0x56073c)=>{if(!_0x20080d)return g(_0x28d47c,'Loading...');if(!_0x22445d)return g(_0x28d47c,'No\x20changes');const _0x1958f0=g(_0x28d47c,'NUMBER_OF_CHANGES',_0x22445d);return _0x56073c?g(_0x28d47c,'X_OF_Y_CHANGES',[_0x5bb29e+0x1,_0x22445d]):_0x1958f0;}),_0x1de506['set']({'label':g(_0x28d47c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x548b1c}),_0x25eeab['set']({'label':g(_0x28d47c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x235c62}),_0x1de506['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x25eeab['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1de506['on']('execute',()=>this['fire']('execute','backward')),_0x25eeab['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',_0x4bac7f['if']('_isStatusLabelVisible','ck-hidden',_0x35ca4f=>!_0x35ca4f)]},'children':[{'text':_0x4bac7f['to']('isNavigationMode',_0x122f43=>_0x122f43?g(_0x28d47c,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x28d47c,'Total')+':\x20')}]},{'text':_0x4bac7f['to']('_statusText')}]},new _0x2ebcba(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1de506,_0x25eeab]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x432e21{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x197658=this['editor']['editing']['view'];_0x197658['change'](_0x1b552b=>{for(const _0x20fb72 of _0x197658['document']['roots'])_0x1b552b['addClass'](le,_0x20fb72);});}['hide'](){const _0x328a38=this['editor']['editing']['view'];_0x328a38['change'](_0x241337=>{for(const _0xe455a0 of _0x328a38['document']['roots'])_0x241337['removeClass'](le,_0xe455a0);});}}class R extends _0x432e21{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0xee2b7a=this['editor'],_0x12a874=_0xee2b7a['plugins']['get'](m),_0x5c2dd2=_0xee2b7a['plugins']['get'](ge);_0xee2b7a['ui']['componentFactory']['add']('exitToEditing',_0x24c71a=>{const _0x1bede9=new te(_0x24c71a);return _0x1bede9['set']({'label':g(_0x24c71a,'Back\x20to\x20editing'),'icon':_0x483496,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1bede9,'execute',()=>{_0xee2b7a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1bede9;}),_0xee2b7a['ui']['componentFactory']['add']('restoreRevision',_0x1ec5f6=>{const _0x1e5084=new te(_0x1ec5f6);return _0x1e5084['set']({'label':g(_0x1ec5f6,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1e5084['bind']('isEnabled')['to'](_0xee2b7a['commands']['get']('restoreRevision')),this['listenTo'](_0x1e5084,'execute',()=>_0xee2b7a['execute']('restoreRevision')),_0x1e5084;}),_0xee2b7a['ui']['componentFactory']['add']('changesNavigation',_0x2626b4=>{const _0x34868d=new _i(_0x2626b4),_0x58182b=_0xee2b7a['commands']['get']('showPreviousChange'),_0x152dbf=_0xee2b7a['commands']['get']('showNextChange');return _0x34868d['bind']('isBackwardNavigationEnabled')['to'](_0x58182b,'isEnabled'),_0x34868d['bind']('isForwardNavigationEnabled')['to'](_0x152dbf,'isEnabled'),_0x34868d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x12a874),this['listenTo'](_0x34868d,'execute',(_0x25a589,_0x41e40e)=>{_0xee2b7a['execute']('forward'===_0x41e40e?'showNextChange':'showPreviousChange');}),_0x34868d;}),_0x5c2dd2['show'](),_0x12a874['on']('change:isReady',(_0x4d7789,_0xd0dedc,_0x26fc7c)=>{_0x26fc7c?_0x5c2dd2['hide']():_0x5c2dd2['show']();});}}class at extends _0x5b84f9{['_resizeObserver']=null;constructor(_0x5d00f4,_0x8a8ee3){super(_0x5d00f4,_0x8a8ee3);const _0x4a0bc1=this['bindTemplate'];this['set']({'label':g(_0x5d00f4,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5d00f4,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4a0bc1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4b13b4=this['fieldView']['element'];this['_tooltipString']=_0x4b13b4['scrollWidth']>_0x4b13b4['clientWidth']&&_0x4b13b4['value']||'';}}class si extends ts{constructor(_0x5f1729,_0x4a6a85,_0x3d3341){super(_0x5f1729);const _0x5ad432=new _0x4262a6();_0x5ad432['set']({'content':_0x512e1f,'viewBox':'0\x200\x2011\x2010'});const _0x4f7681=['ck','ck-revision-history-sidebar__revision-author'];_0x3d3341&&_0x4f7681['push']('ck-revision-history-sidebar__revision-author_creator');const _0x37be0b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5f1729,_0x3d3341?'Revision\x20creator':'Revision\x20author')},'children':[_0x5ad432,_0x4a6a85['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4f7681},'children':_0x37be0b});}}function oi(_0x1dc901,_0xef48d2){const _0x5ee6df=_0x1dc901['bindTemplate'],_0x4e6670=_0x1dc901['locale'],_0x637257=_0x11b6e8(_0x4e6670);_0x637257['panelPosition']='sw';const _0x2e1db7=function(_0x61acab,_0x1bd527){const _0x1c40b8=function(_0x29276f,_0x2c167c){const _0x46ae82=_0x29276f['locale'],_0x6f1ff7={'Compare\x20against\x20selected':g(_0x46ae82,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x46ae82,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x46ae82,'Restore\x20this\x20revision')};return _0x2c167c['map'](_0x2a8938=>{const _0x1f13f8=_0x6f1ff7[_0x2a8938['name']];return _0x1f13f8&&_0x1f13f8!==_0x2a8938['name']&&(_0x2a8938['name']=_0x1f13f8),_0x2a8938;});}(_0x61acab,_0x1bd527),_0x29fc50=new _0xce0641();for(const _0x52c0bd of _0x1c40b8){const _0x23b50f={'type':'button','model':new to({'label':_0x52c0bd['name'],'class':_0x52c0bd['class'],'withText':!0x0,'role':'menuitem','_action':_0x52c0bd['action']})};_0x23b50f['model']['bind']('isEnabled')['to'](_0x61acab,'isActionsDropdownOpen',_0x50511a=>'function'!=typeof _0x52c0bd['isEnabled']||(!_0x50511a||_0x52c0bd['isEnabled'](_0x61acab))),_0x29fc50['add'](_0x23b50f);}return _0x29fc50;}(_0x1dc901,_0xef48d2);return _0x1dc901['bind']('isActionsDropdownOpen')['to'](_0x637257,'isOpen'),_0x637257['buttonView']['set']({'label':g(_0x4e6670,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2da73a}),_0x637257['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5ee6df['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5ee6df['to'](_0x13fb67=>_0x13fb67['stopPropagation']())}}),_0x637257['on']('execute',_0x41422f=>{_0x1dc901['isReady']&&'function'==typeof _0x41422f['source']['_action']&&_0x41422f['source']['_action'](_0x1dc901);}),_0x25c378(_0x637257,_0x2e1db7,{'role':'menu'}),_0x637257['listenTo'](_0x1dc901,'change:isActionsDropdownOpen',(_0x3ca243,_0x2c9b27,_0x215c43)=>{if(_0x215c43)for(const _0x58c884 of _0x637257['listView']['items']){const _0x5159f8=_0x58c884['children']['first'],_0x16dc7b=_0xef48d2['find'](_0x93d84c=>_0x93d84c['action']===_0x5159f8['_action'])['isVisible'];_0x58c884['isVisible']=void 0x0===_0x16dc7b||_0x16dc7b(_0x1dc901);}}),_0x637257;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x52de02,_0x3c0df2,_0x14bd4c,_0x47a61b){super(_0x52de02);const _0x333a20=this['bindTemplate'],_0x5b51f5=function(_0x159764,_0xf484b0){const _0xc7090=Array['from'](_0xf484b0['authors'])['filter'](_0x3960cb=>_0x3960cb!=_0xf484b0['creator']);return _0xf484b0['creator']&&_0xc7090['unshift'](_0xf484b0['creator']),_0xc7090['map'](_0x3e0ef6=>new si(_0x159764,_0x3e0ef6,_0x3e0ef6==_0xf484b0['creator']));}(_0x52de02,_0x3c0df2);this['id']=_0x3c0df2['id'],this['_revision']=_0x3c0df2,this['_requireRevisionName']=_0x47a61b,this['bind']('name','createdAt')['to'](_0x3c0df2),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x405a53=>{return _0x38c167=_0x52de02['uiLanguage'],(_0x32446f=_0x405a53)['toLocaleDateString'](_0x38c167,{'month':'long','day':'numeric'})+',\x20'+_0x32446f['toLocaleTimeString'](_0x38c167,{'hour':'numeric','minute':'numeric'});var _0x38c167,_0x32446f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x52de02,_0x307c29),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x37717c=>_0x37717c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2fc8c4,_0x5153cd)=>_0x2fc8c4&&_0x5153cd),this['revisionActionsView']=_0x14bd4c&&_0x14bd4c['length']?oi(this,_0x14bd4c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x333a20['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x333a20['if']('isEnabled','ck-disabled',_0x5cdd23=>!_0x5cdd23),_0x333a20['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x333a20['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x333a20['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':_0x333a20['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':_0x5b51f5}]},this['revisionActionsView']],'on':{'click':_0x333a20['to'](_0x384bee=>{_0x384bee['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x38a178=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x38a178,'change',()=>{this['_requireRevisionName']&&!_0x38a178['value']||this['fire']('setName',{'id':this['id'],'name':_0x38a178['value']}),_0x38a178['value']||(_0x38a178['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x26576c,_0x3d27bc){const _0x2d8061=_0xa82a03['fromJSDate'](_0x26576c)['setLocale'](_0x3d27bc),_0x47de76=_0xa82a03['local'](),_0x31f45e=_0x47de76['minus']({'days':0x1})['startOf']('day');let _0xf36802,_0x1ca642;return _0x2d8061['hasSame'](_0x47de76,'day')?(_0xf36802=_0x2d8061['startOf']('day')['toJSDate'](),_0x1ca642=_0x2d8061['toRelativeCalendar']()):_0x2d8061['hasSame'](_0x31f45e,'day')?(_0xf36802=_0x31f45e['toJSDate'](),_0x1ca642=_0x2d8061['toRelativeCalendar']()):_0x2d8061['hasSame'](_0x47de76,'week')?(_0xf36802=_0x2d8061['startOf']('week')['toJSDate'](),_0x1ca642=_0x2d8061['weekdayLong']||''):_0x2d8061['hasSame'](_0x47de76,'year')?(_0xf36802=_0x2d8061['startOf']('month')['toJSDate'](),_0x1ca642=_0x2d8061['monthLong']||''):(_0xf36802=_0x2d8061['startOf']('year')['toJSDate'](),_0x1ca642=String(_0x2d8061['year'])),{'startDate':_0xf36802,'localizedPeriodName':_0x1ca642};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x19c557,_0x3a38be,_0x1736df,_0x5c416d){super(_0x19c557);const _0x2b0345=ai(_0x3a38be,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3a38be,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1736df,this['_requireRevisionName']=_0x5c416d,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':_0x2b0345}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x21ca31){const _0x3bb41c=new hi(this['locale'],_0x21ca31,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3bb41c);}['removeRevision'](_0x44865a){const _0x1c1bcf=this['revisionViews']['find'](_0x110b8f=>_0x110b8f['id']===_0x44865a['id']);this['revisionViews']['remove'](_0x1c1bcf);}}class as extends ts{constructor(_0x332457){super(_0x332457);const _0x14c6f6=new _0x4262a6();_0x14c6f6['content']=_0x1e483f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x14c6f6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x332457,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2f0cf4,_0x453104,_0x1a0355,_0xec013e){super(_0x2f0cf4);const _0x1f90f5=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x453104,this['_revisionActions']=_0x1a0355,this['_requireRevisionName']=_0xec013e,this['on']('select',(_0x443359,_0x32f01b)=>{this['fire']('revisionSelected',_0x32f01b);}),this['on']('setName',(_0x58c3c5,_0x2f2c09)=>{this['fire']('revisionSetName',_0x2f2c09);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2f0cf4),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1f90f5['if']('isEnabled','ck-disabled',_0x229f26=>!_0x229f26)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5aaf52 of this['_revisions'])this['_addRevision'](_0x5aaf52);this['_revisions']['on']('add',(_0x2d1fdd,_0x526d20)=>{this['_addRevision'](_0x526d20);}),this['_revisions']['on']('remove',(_0x35ab92,_0x17d393)=>{this['_removeRevision'](_0x17d393);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x59886f=>_0x59886f['revisionViews']['map'](_0x555006=>_0x555006))['flat']();}['selectRevision'](_0x17a4e1){for(const _0xaef7b2 of this['revisionViews'])_0x17a4e1&&_0x17a4e1['id']===_0xaef7b2['id']?_0xaef7b2['select']():_0xaef7b2['deselect']();}['highlightRevisions'](_0x47e81b){for(const _0x2a57a1 of this['revisionViews'])_0x47e81b['some'](({id:_0x17dbe6})=>_0x17dbe6===_0x2a57a1['id'])?_0x2a57a1['highlight']():_0x2a57a1['unhighlight']();}['_addRevision'](_0x25d71c){const _0x16ebd0=ai(_0x25d71c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x560bd5=this['timePeriodViews']['get'](0x0);_0x560bd5&&_0x560bd5['startDate']['getTime']()===_0x16ebd0['getTime']()||(_0x560bd5=new di(this['locale'],_0x16ebd0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x560bd5)),_0x560bd5['addRevision'](_0x25d71c);}['_removeRevision'](_0x1c1b93){const _0x6eb03f=ai(_0x1c1b93['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x6eb03f)['removeRevision'](_0x1c1b93);}['_getTimePeriodViewByStartDate'](_0x20c2ab){return this['timePeriodViews']['find'](_0x1b4b70=>_0x1b4b70['startDate']['getTime']()===_0x20c2ab['getTime']());}}class d extends _0x432e21{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x38fc2e,uid as _0x35025a,Collection as _0x1190c4,logWarning as _0x3e5cda,FocusTracker as _0x41023d,KeystrokeHandler as _0x273cb9,scrollViewportToShowTarget as _0x595d08,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x35f6cb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x34117b,set as _0x1d2faa,unset as _0x437219,isEqual as _0x497102}from'es-toolkit/compat';import{Plugin as _0x28ae17,PendingActions as _0x5b1285,Command as _0x122b53,ElementApiMixin as _0x4a7b9d,Editor as _0x48424a}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5c61f4,getMarkerDomElement as _0x466b83,ConfirmMixin as _0x4b1b1f,sanitizeEditorConfig as _0x2564da}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x79fb41,ViewAttributeElement as _0x515fc9,ViewEmptyElement as _0x567e69,ViewRawElement as _0x34696e,ViewUIElement as _0x4f05c8,ViewDocumentFragment as _0x6d880a,ViewText as _0x26347f,ViewElement as _0x393065,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4c4ff0,IconChevronUp as _0x37a656,IconChevronDown as _0x2d4d91,IconUndo as _0x12b2e5,IconUser as _0x2c2cfd,IconThreeVerticalDots as _0x1ef3c7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x1528d9,injectCssTransitionDisabler as ts,submitHandler as _0xb1bae6,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x5be76e,ListView as _0x5cb1e7,ListItemView as te,ButtonView as _0x4a8ccc,MenuBarMenuView as _0x5c84ce,MenuBarMenuListView as _0x339021,MenuBarMenuListItemView as _0x26cd45,MenuBarMenuListItemButtonView as _0x5d0b75,ContextualBalloon as _0x5c2e60,ToolbarSeparatorView as _0x18bc92,IconView as _0x2ca141,addListToDropdown as _0x171ffa,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x9cadbd}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x38fc2e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x467eff){super(),this['id']=_0x467eff['id']||_0x35025a(),this['creator']=_0x467eff['creator']||null,this['authors']=_0x467eff['authors']||[],this['diffData']=_0x467eff['diffData']||null,this['toVersion']=_0x467eff['toVersion']||0x0,this['fromVersion']=_0x467eff['fromVersion']||0x0,this['set']('name',_0x467eff['name']||''),this['set']('createdAt',_0x467eff['createdAt']||new Date()),this['set']('attributes',_0x467eff['attributes']||{});}['setName'](_0xd0e76e){this['_update']({'name':_0xd0e76e});}['setAttribute'](_0x1d5427,_0x38d218){const _0x2cae2f=_0x34117b(this['attributes']);_0x1d2faa(_0x2cae2f,_0x1d5427,_0x38d218),this['_update']({'attributes':_0x2cae2f});}['removeAttribute'](_0x4e3b30){const _0x445731=_0x34117b(this['attributes']);_0x437219(_0x445731,_0x4e3b30),this['_update']({'attributes':_0x445731});}['_update'](_0xf6cdf3,_0x37be42=!0x1){let _0xa5d017=!0x1;const _0x566e96={'id':this['id']},_0x43bdeb=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x190fea of _0x43bdeb){const _0x37a9ce=_0xf6cdf3[_0x190fea];void 0x0!==_0x37a9ce&&_0x37a9ce!==this[_0x190fea]&&(this[_0x190fea]=_0x37a9ce,_0x566e96[_0x190fea]=_0x37a9ce,_0xa5d017=!0x0);}_0xa5d017&&(_0x566e96['authors']&&(_0x566e96['authorsIds']=_0x566e96['authors']['map'](_0x5685e9=>_0x5685e9['id']),delete _0x566e96['authors']),this['fire']('_update',_0x566e96,_0x37be42));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x50f418=>_0x50f418['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x28ae17{['_revisions'];static get['requires'](){return[_0x5c61f4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x452b87){super(_0x452b87),this['_revisions']=new _0x1190c4();}['afterInit'](){!async function(_0x127692){const _0x6c8bc5=_0x442fd2([0x68,0x4e,0x67,0x56,0x61,0x41,0x43,0x36,0x71,0x30,0x59,0x78,0x66,0x6e,0x35,0x72,0x62,0x32,0x6d,0x73,0x4a,0x52,0x64,0x55,0x4b,0x38,0x6b,0x69,0x31,0x7a,0x39,0x6f,0x58,0x4f,0x45,0x75,0x5a,0x33,0x77,0x70,0x51,0x65,0x4d,0x63,0x46,0x34,0x49,0x6c,0x37,0x6a,0x57,0x74,0x48,0x54,0x53,0x4c,0x76,0x44,0x79,0x42,0x47,0x50]),_0x57ae7a=0xeb829,_0x12b6d9=0x767d2121,_0x16316b=0x767a4509^_0x12b6d9,_0x5ac6be=window[_0x442fd2([0x44,0x61,0x74,0x65])][_0x442fd2([0x6e,0x6f,0x77])](),_0x3bfee6=_0x127692[_0x442fd2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58799e=new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5847ef=>{_0x3bfee6[_0x442fd2([0x6f,0x6e,0x63,0x65])](_0x442fd2([0x72,0x65,0x61,0x64,0x79]),_0x5847ef);}),_0xf5cbb9={[_0x442fd2([0x6b,0x74,0x79])]:_0x442fd2([0x45,0x43]),[_0x442fd2([0x75,0x73,0x65])]:_0x442fd2([0x73,0x69,0x67]),[_0x442fd2([0x63,0x72,0x76])]:_0x442fd2([0x50,0x2d,0x32,0x35,0x36]),[_0x442fd2([0x78])]:_0x442fd2([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]),[_0x442fd2([0x79])]:_0x442fd2([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]),[_0x442fd2([0x61,0x6c,0x67])]:_0x442fd2([0x45,0x53,0x32,0x35,0x36])},_0x53991e=_0x3bfee6[_0x442fd2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x442fd2([0x67,0x65,0x74])](_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x131c16(){let _0x461a8d,_0x38ec25=null,_0x449b8f=null;try{if(_0x53991e==_0x442fd2([0x47,0x50,0x4c]))return _0x442fd2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x461a8d=_0x39d43e(),!_0x461a8d)return _0x442fd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x461a8d[_0x442fd2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x449b8f=_0xe04335(_0x461a8d[_0x442fd2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x461a8d[_0x442fd2([0x6a,0x74,0x69])])),await _0x5cc37e()?_0x279456()?_0xe29eca()?_0x442fd2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x182e62()?(_0x461a8d[_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x442fd2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38ec25=_0x3a3bb5(_0x442fd2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x461a8d[_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x442fd2([0x74,0x72,0x69,0x61,0x6c])&&(_0x38ec25=_0x3a3bb5(_0x442fd2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d8559()):_0x442fd2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x442fd2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x442fd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3bae86){return _0x442fd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe29eca(){const _0x19adac=[_0x442fd2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x442fd2([0x74,0x72,0x69,0x61,0x6c])][_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x461a8d[_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ac6be/0x3e8:0xe10*_0x16316b;return _0x461a8d[_0x442fd2([0x65,0x78,0x70])]<_0x19adac;}function _0x279456(){const _0x4e1a3d=_0x461a8d[_0x442fd2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4e1a3d)return!0x1;if(_0x4e1a3d[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442fd2([0x2a])))return!0x0;if(_0x4e1a3d[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442fd2([0x52,0x48])))return!0x0;if(_0x4e1a3d[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442fd2([0x52,0x52,0x48]))){if(_0x3d8c05())return!0x0;if(_0x36b5ec()||_0x27f9cd())return!0x0;}return!0x1;}function _0x182e62(){const _0x24c101=_0x461a8d[_0x442fd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24c101||0x0==_0x24c101[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa53255}=new URL(window[_0x442fd2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24c101[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa53255))return!0x0;const _0x48ec6c=_0xa53255[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])](_0x442fd2([0x2e]));return _0x24c101[_0x442fd2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf633e8=>_0xf633e8[_0x442fd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442fd2([0x2a])))[_0x442fd2([0x6d,0x61,0x70])](_0x1a43de=>_0x1a43de[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])](_0x442fd2([0x2e])))[_0x442fd2([0x73,0x6f,0x6d,0x65])](_0x4a2eda=>_0x48ec6c[_0x442fd2([0x65,0x76,0x65,0x72,0x79])]((_0x4d846e,_0x165b60)=>_0x4a2eda[_0x165b60]===_0x4d846e||_0x4a2eda[_0x165b60]===_0x442fd2([0x2a])));}function _0x4d8559(){return _0x38ec25&&_0x449b8f?new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b0e48,_0x2a32ff)=>{_0x38ec25[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x5b0e48,_0x2a32ff),_0x449b8f[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x304d69=>{_0x304d69!=_0x442fd2([0x56,0x61,0x6c,0x69,0x64])&&_0x5b0e48(_0x304d69);},_0x2a32ff);}):_0x38ec25||_0x449b8f||_0x442fd2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe04335(_0x209ff6,_0x342f3a){return new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41b7dd=>{if(_0x426839())return _0x41b7dd(_0x442fd2([0x56,0x61,0x6c,0x69,0x64]));_0x222eae(),_0x3bfee6[_0x442fd2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x442fd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c2678=!0x1;const _0x401c7e=_0x35025a();function _0x477c2(_0x51da86){return!!_0x51da86&&(typeof _0x51da86===_0x442fd2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51da86===_0x442fd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51da86[_0x442fd2([0x74,0x68,0x65,0x6e])]===_0x442fd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51da86[_0x442fd2([0x63,0x61,0x74,0x63,0x68])]===_0x442fd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53aefc(_0xb7e8f3){_0x5681a6(_0xb7e8f3)[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x545749=>{if(!_0x545749||_0x545749[_0x442fd2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x442fd2([0x6f,0x6b]))return _0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cdceb(_0x16c510(_0x401c7e+_0x342f3a))!=_0x545749[_0x442fd2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x442fd2([0x56,0x61,0x6c,0x69,0x64]);})[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x503330=>(_0xc38fc(),_0x503330),()=>{const _0x53c4e7=_0x31a199();return null==_0x53c4e7?(_0xc38fc(),_0x442fd2([0x56,0x61,0x6c,0x69,0x64])):_0x442fd2(_0x5ac6be-_0x53c4e7>(0x5271a521^_0x12b6d9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x41b7dd)[_0x442fd2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41b7dd(_0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f12bb=0x764bcfa1^_0x12b6d9;function _0xc38fc(){const _0x4a4ac6=_0x442fd2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cdceb(_0x16c510(_0x209ff6)),_0x25db69=_0x4fb20f(_0x3cdceb(window[_0x442fd2([0x4d,0x61,0x74,0x68])][_0x442fd2([0x63,0x65,0x69,0x6c])](_0x5ac6be/_0x2f12bb)));window[_0x442fd2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x442fd2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a4ac6,_0x25db69);}function _0x31a199(){const _0x330d40=_0x442fd2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cdceb(_0x16c510(_0x209ff6)),_0x2647e1=window[_0x442fd2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x442fd2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x330d40);return _0x2647e1?window[_0x442fd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fb20f(_0x2647e1),0x10)*_0x2f12bb:null;}function _0x5681a6(_0x1ddff7){return new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12ff8d,_0x1cdd8e)=>{_0x1ddff7[_0x442fd2([0x74,0x68,0x65,0x6e])](_0x12ff8d,_0x1cdd8e),window[_0x442fd2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cdd8e,0x767cf5e1^_0x12b6d9);});}}_0x3bfee6[_0x442fd2([0x6f,0x6e])](_0x442fd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d7503,_0x452153)=>{if(_0x452153[0x0]!=_0x209ff6)return _0x41b7dd(_0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x452153[0x1]={..._0x452153[0x1],[_0x442fd2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x401c7e};},{[_0x442fd2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x442fd2([0x68,0x69,0x67,0x68])}),_0x3bfee6[_0x442fd2([0x6f,0x6e])](_0x442fd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c7f05=>{_0x477c2(_0x1c7f05[_0x442fd2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c2678=!0x0,_0x53aefc(_0x1c7f05[_0x442fd2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x442fd2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x442fd2([0x6c,0x6f,0x77])}),_0x58799e[_0x442fd2([0x74,0x68,0x65,0x6e])](()=>{_0x2c2678||_0x41b7dd(_0x442fd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x426839(){return _0x3bfee6[_0x442fd2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x442fd2([0x76,0x69,0x65,0x77])][_0x442fd2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x442fd2([0x61,0x75,0x74,0x6f]);}function _0x222eae(){_0x3bfee6[_0x442fd2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x442fd2([0x76,0x69,0x65,0x77])][_0x442fd2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x442fd2([0x61,0x75,0x74,0x6f]);}}function _0x3a3bb5(_0x5ebb94){const _0x5b00d3=[new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3f52=>setTimeout(_0x5e3f52,0x76741fed^_0x12b6d9)),_0x58799e[_0x442fd2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20241a=>{const _0x363a0f=0x767d2126^_0x12b6d9,_0x2a447a=_0x127692[_0x442fd2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x18d634(){_0x2a447a[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x363a0f&&_0x20241a();}_0x18d634(),_0x2a447a[_0x442fd2([0x6f,0x6e])](_0x442fd2([0x61,0x64,0x64]),_0x18d634);})),new window[(_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4099af=>{function _0x38710d(){for(const _0x4c0fbe in window)if(window[_0x442fd2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x442fd2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4c0fbe))&&window[_0x4c0fbe]==_0x57ae7a)return _0x4099af();_0x3bfee6[_0x442fd2([0x73,0x74,0x61,0x74,0x65])]!=_0x442fd2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x442fd2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38710d,0x767d32a9^_0x12b6d9);}_0x3bc45c(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x38710d();})];return window[_0x442fd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x442fd2([0x72,0x61,0x63,0x65])](_0x5b00d3)[_0x442fd2([0x74,0x68,0x65,0x6e])](()=>_0x5ebb94);}async function _0x53b4f0(){if(await _0x58799e,_0x3bc45c(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x6c6c5e=_0x127692[_0x442fd2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x262e50=_0x127692[_0x442fd2([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])](_0x6c6c5e[_0x442fd2([0x69,0x64])]),_0x326472=_0x173fab(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x326472[_0x442fd2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x6c6c5e['id'],_0x262e50?_0x262e50['id']:null,!0x0),_0x326472[_0x442fd2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x442fd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x326472[_0x442fd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x326472[_0x442fd2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x689f75,void(_0x326472[_0x442fd2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x689f75);}if(_0x3bc45c(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3c6f9b=_0x173fab(_0x442fd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3c6f9b[_0x442fd2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x442fd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3c6f9b[_0x442fd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3c6f9b[_0x442fd2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x689f75,_0x3c6f9b[_0x442fd2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x689f75;}_0x3bfee6[_0x442fd2([0x6d,0x6f,0x64,0x65,0x6c])][_0x442fd2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x689f75,_0x3bfee6[_0x442fd2([0x6d,0x6f,0x64,0x65,0x6c])][_0x442fd2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x689f75,_0x3bfee6[_0x442fd2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x442fd2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d8c05(){return _0x3bc45c(_0x442fd2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x173fab(_0x442fd2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x442fd2([0x73,0x74,0x61,0x74,0x65])]==_0x442fd2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36b5ec(){return _0x3bc45c(_0x442fd2([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 _0x27f9cd(){return _0x3bc45c(_0x442fd2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xeb9c(_0x3e20b7){const _0x2259d5=_0x19a7ad();_0x3bfee6[_0x2259d5]=_0x442fd2([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])+_0x3e20b7,_0x3e20b7[_0x442fd2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x442fd2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x19a7ad()]=_0x57ae7a),_0x3e20b7!=_0x442fd2([0x56,0x61,0x6c,0x69,0x64])&&_0x53b4f0();}function _0x19a7ad(){const _0x188bc3=window[_0x442fd2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x442fd2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x442fd2([0x6e,0x6f,0x77])]())[_0x442fd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x442fd2([0x2e]),'');let _0xb3d61c=_0x442fd2([0x68]);for(let _0x1f89bc=0x0;_0x1f89bc<_0x188bc3[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f89bc+=0x2){let _0x48fe83=window[_0x442fd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x188bc3[_0x442fd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f89bc,_0x1f89bc+0x2));_0x48fe83>=_0x6c8bc5[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48fe83-=_0x6c8bc5[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb3d61c+=_0x6c8bc5[_0x48fe83];}return _0xb3d61c;}function _0x39d43e(){const _0x473c3b=_0x53991e[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])](_0x442fd2([0x2e]));if(0x3!=_0x473c3b[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37f4a5(_0x473c3b[0x1]);function _0x37f4a5(_0x2625fe){const _0x9b9227=_0x314f59(_0x2625fe);return _0x9b9227&&_0x127d70()?_0x9b9227:null;function _0x127d70(){const _0x33c000=_0x9b9227[_0x442fd2([0x6a,0x74,0x69])],_0xde44a=window[_0x442fd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33c000[_0x442fd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33c000[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d2164={..._0x9b9227,[_0x442fd2([0x6a,0x74,0x69])]:_0x33c000[_0x442fd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33c000[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d2164[_0x442fd2([0x76,0x63])],_0x16c510(_0x1d2164)==_0xde44a;}}}async function _0x5cc37e(){let _0x1dd7f1=!0x0;try{const _0x4d436e=_0x53991e[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])](_0x442fd2([0x2e])),[_0x1d8ffb,_0x1b3172,_0x25eaf5]=_0x4d436e;return _0x5dd8c5(_0x1d8ffb),await _0x178a0a(_0x1d8ffb,_0x1b3172,_0x25eaf5),_0x1dd7f1;}catch(_0x3ceecd){return!0x1;}function _0x5dd8c5(_0x1ce7a){const _0x5d38e0=_0x314f59(_0x1ce7a);_0x5d38e0&&_0x5d38e0[_0x442fd2([0x61,0x6c,0x67])]==_0x442fd2([0x45,0x53,0x32,0x35,0x36])||(_0x1dd7f1=!0x1);}async function _0x178a0a(_0x4a6fe3,_0x160e61,_0x3a5427){const _0x2aaa0a=window[_0x442fd2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x442fd2([0x66,0x72,0x6f,0x6d])](_0x26cb5c(_0x3a5427),_0x2a21c4=>_0x2a21c4[_0x442fd2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2446e3=new window[(_0x442fd2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x442fd2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a6fe3+_0x442fd2([0x2e])+_0x160e61),_0x3da452=window[_0x442fd2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x442fd2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3da452)return;const _0x3b871c=await _0x3da452[_0x442fd2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x442fd2([0x6a,0x77,0x6b]),_0xf5cbb9,{[_0x442fd2([0x6e,0x61,0x6d,0x65])]:_0x442fd2([0x45,0x43,0x44,0x53,0x41]),[_0x442fd2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x442fd2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x442fd2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3da452[_0x442fd2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x442fd2([0x6e,0x61,0x6d,0x65])]:_0x442fd2([0x45,0x43,0x44,0x53,0x41]),[_0x442fd2([0x68,0x61,0x73,0x68])]:{[_0x442fd2([0x6e,0x61,0x6d,0x65])]:_0x442fd2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b871c,_0x2aaa0a,_0x2446e3)||(_0x1dd7f1=!0x1);}}function _0x314f59(_0x3183ea){return _0x3183ea[_0x442fd2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x442fd2([0x65,0x79]))?JSON[_0x442fd2([0x70,0x61,0x72,0x73,0x65])](_0x26cb5c(_0x3183ea)):null;}function _0x26cb5c(_0x1ed528){return window[_0x442fd2([0x61,0x74,0x6f,0x62])](_0x1ed528[_0x442fd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x442fd2([0x2b]))[_0x442fd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x442fd2([0x2f])));}function _0x16c510(_0x1a7394){let _0x567e02=0x1505;function _0x31136c(_0x39fc72){for(let _0x29ae63=0x0;_0x29ae63<_0x39fc72[_0x442fd2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29ae63++){const _0x40256c=_0x39fc72[_0x442fd2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29ae63);_0x567e02=(_0x567e02<<0x5)+_0x567e02+_0x40256c,_0x567e02&=_0x567e02;}}function _0x5d632e(_0x58d9a0){Array[_0x442fd2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58d9a0)?_0x58d9a0[_0x442fd2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d632e):_0x58d9a0&&typeof _0x58d9a0==_0x442fd2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x442fd2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58d9a0)[_0x442fd2([0x73,0x6f,0x72,0x74])]()[_0x442fd2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x531f4a,_0x58a40c])=>{_0x31136c(_0x531f4a),_0x5d632e(_0x58a40c);}):_0x31136c(window[_0x442fd2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58d9a0));}return _0x5d632e(_0x1a7394),_0x567e02>>>0x0;}function _0x3cdceb(_0x17d5a3){return _0x17d5a3[_0x442fd2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x442fd2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x442fd2([0x30]));}function _0x4fb20f(_0x22bceb){return _0x22bceb[_0x442fd2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x442fd2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x442fd2([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bc45c(_0x536e81){return _0x3bfee6[_0x442fd2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x442fd2([0x68,0x61,0x73])](_0x536e81);}function _0x173fab(_0x1211c4){return _0x3bfee6[_0x442fd2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x442fd2([0x67,0x65,0x74])](_0x1211c4);}function _0x689f75(){}function _0x442fd2(_0x2aebbe){return _0x2aebbe['map'](_0x39abae=>String['fromCharCode'](_0x39abae))['join']('');}_0xeb9c(await _0x131c16());}(this);}['createRevision'](_0x2c6583){const _0x5c42d7=this['editor']['plugins']['get']('Users');return new h({'id':_0x2c6583['id'],'name':_0x2c6583['name'],'creator':_0x2c6583['creatorId']?_0x5c42d7['getUser'](_0x2c6583['creatorId']):null,'diffData':_0x2c6583['diffData']||_0x2c6583['data'],'authors':_0x2c6583['authorsIds']['map'](_0x2cc513=>_0x5c42d7['getUser'](_0x2cc513)),'createdAt':new Date(_0x2c6583['createdAt']),'attributes':_0x2c6583['attributes'],'fromVersion':_0x2c6583['fromVersion'],'toVersion':_0x2c6583['toVersion']});}['addRevision'](_0x15adc2,_0x221e84=0x0){this['_revisions']['add'](_0x15adc2,_0x221e84);}['getRevision'](_0x3e1bae){return this['_revisions']['get'](_0x3e1bae);}['getRevisions'](_0x1730fe={'toJSON':!0x1}){const _0xce23a5=Array['from'](this['_revisions']);return _0xce23a5['reverse'](),_0x1730fe['toJSON']?_0xce23a5['map'](_0x1acab1=>_0x1acab1['toJSON']()):_0xce23a5;}['getIndex'](_0x1893ca){return this['_revisions']['getIndex'](_0x1893ca);}['getEarlierVisibleRevision'](_0x3c6ae8){const [,_0xb9c9b3]=this['getRevisionsIterator'](_0x3c6ae8,{'direction':'earlier'});return _0xb9c9b3;}['getLaterVisibleRevision'](_0x54b1b4){const [,_0x32bebd]=this['getRevisionsIterator'](_0x54b1b4,{'direction':'later'});return _0x32bebd;}['getRevisionsInDiff'](_0x2aacd7){const _0x31a63c=[];for(const _0x581ef8 of this['getRevisionsIterator'](_0x2aacd7['newRevisionId']))if(_0x31a63c['push'](_0x581ef8),_0x581ef8['id']===_0x2aacd7['oldRevisionId'])break;return _0x31a63c;}*['getRevisionsIterator'](_0x1ab92f,{direction:_0x2102e1='earlier',filter:_0x1980b8=()=>!0x0}={}){const _0x31d75e='earlier'===_0x2102e1?0x1:-0x1;let _0x51d8f1=this['_revisions']['get'](_0x1ab92f),_0x1e13d3=this['getIndex'](_0x51d8f1);for(yield _0x51d8f1;_0x51d8f1;){if(_0x1e13d3+=_0x31d75e,_0x51d8f1=this['getRevision'](_0x1e13d3),!_0x51d8f1)return;_0x1980b8(_0x51d8f1)&&(yield _0x51d8f1);}}}class V extends _0x28ae17{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x79fb41,'c'],[_0x515fc9,'a'],[_0x567e69,'e'],[_0x34696e,'r'],[_0x4f05c8,'u']]);['_typeCharToViewClass']=new Map([['c',_0x79fb41],['a',_0x515fc9],['e',_0x567e69],['r',_0x34696e],['u',_0x4f05c8]]);async['loadRevisionData'](_0x5e5129,_0x6e52ce){if(_0x5e5129['diffData']||!_0x6e52ce)return;const _0x31bb2c=this['editor']['config']['get']('collaboration.channelId'),_0x238f45=await _0x6e52ce['getRevision']({'channelId':_0x31bb2c,'revisionId':_0x5e5129['id']});_0x5e5129['diffData']=_0x238f45['diffData'];}['getRevisionDocumentData'](_0x2b654a){const _0x1c8c0b={};for(const _0x29211a in _0x2b654a['diffData']){if(_0x2b654a['diffData'][_0x29211a]['attachChange']&&!_0x2b654a['diffData'][_0x29211a]['attachChange']['isAttached'])continue;const _0x235df6=this['_removeRevisionMarkers'](JSON['parse'](_0x2b654a['diffData'][_0x29211a]['insertions'])),_0x2a7514=this['editor']['editing']['view']['document'],_0x2441fb=new _0x6d880a(_0x2a7514,_0x235df6['map'](_0x2e024e=>this['_getViewFromDiffObj'](_0x2e024e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c8c0b[_0x29211a]=this['editor']['data']['processor']['toData'](_0x2441fb),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c8c0b;}['getRevisionRootsAttributes'](_0x44aeb7){const _0x197b77={};for(const _0x39a586 in _0x44aeb7['diffData'])_0x44aeb7['diffData'][_0x39a586]['attachChange']&&!_0x44aeb7['diffData'][_0x39a586]['attachChange']['isAttached']||(_0x197b77[_0x39a586]=_0x44aeb7['diffData'][_0x39a586]['attributesAfter']||{});return _0x197b77;}['_getTypeCharForViewElement'](_0x345b6a){return this['_viewClassToTypeChar']['get'](_0x345b6a['constructor']);}['_getViewFromDiffObj'](_0x59179c,_0x4e0bd9){const _0x4a90f5=this['editor']['editing']['view']['document'];if('string'==typeof _0x59179c)return new _0x26347f(_0x4a90f5,_0x59179c);{let _0x20f7e3,_0x1971e7;_0x1971e7='u'==_0x59179c['type']||'r'==_0x59179c['type']?[]:_0x59179c['children']['map'](_0x3e440f=>this['_getViewFromDiffObj'](_0x3e440f,_0x4e0bd9));const _0x1cd0c9=this['_typeCharToViewClass']['get'](_0x59179c['type'])||_0x393065,_0x385667=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x20f7e3=new _0x1cd0c9(_0x4a90f5,_0x59179c['name'],_0x59179c['attributes'],_0x1971e7),'u'==_0x59179c['type']){const _0x57c0a1=_0x59179c['children'][0x0];if(_0x20f7e3['render']=function(_0x284774){const _0x2fb2b9=_0x284774['createElement']('div');return _0x2fb2b9['innerHTML']=_0x57c0a1,_0x2fb2b9['childNodes'][0x0];},_0x4e0bd9){const _0x3a175d=new _0x6d880a(_0x4a90f5);_0x3a175d['_appendChild'](_0x20f7e3);const _0x4e09a3=Array['from'](_0x385667['viewChildrenToDom'](_0x3a175d,{'bind':!0x1})),_0x5e02c9=_0x385667['domDocument']['createElement']('div');_0x5e02c9['append'](..._0x4e09a3),_0x20f7e3=Array['from'](_0x385667['domChildrenToView'](_0x5e02c9))[0x0];}}else{if('r'==_0x59179c['type']){const _0x55fd53=_0x59179c['children'][0x0];if(_0x20f7e3['render']=function(_0x362c03){_0x362c03['innerHTML']=_0x55fd53;},_0x4e0bd9){const _0x2d9fd0=new _0x6d880a(_0x4a90f5);_0x2d9fd0['_appendChild'](_0x20f7e3);const _0x247133=Array['from'](_0x385667['viewChildrenToDom'](_0x2d9fd0,{'bind':!0x1})),_0x416141=_0x385667['domDocument']['createElement']('div');_0x416141['append'](..._0x247133);const _0x8dc5f3=Array['from'](_0x385667['domChildrenToView'](_0x416141));_0x8dc5f3['length']>0x1?_0x20f7e3['_appendChild'](_0x8dc5f3):_0x20f7e3=_0x8dc5f3[0x0];}}}if(_0x59179c['customProperties']){for(const [_0x1da83d,_0x45c9a3]of _0x59179c['customProperties'])_0x20f7e3['_setCustomProperty'](_0x1da83d,_0x45c9a3);}const _0x3a7b5b=_0x59179c['fillerOffset']||null;return _0x20f7e3['getFillerOffset']=()=>_0x3a7b5b,_0x20f7e3;}}['_makeModelFromViewString'](_0x33a46e){const _0x2e1b0a=JSON['parse'](_0x33a46e),_0x17a31b=this['editor']['editing']['view']['document'],_0x2fe054=new _0x6d880a(_0x17a31b,_0x2e1b0a['map'](_0x30fa33=>this['_getViewFromDiffObj'](_0x30fa33,!0x0)));return this['editor']['data']['toModel'](_0x2fe054);}['_removeRevisionMarkers'](_0x184b68){return(_0x184b68=_0x184b68['filter'](_0x106c16=>!_0x106c16['name']||'revision-start'!==_0x106c16['name']&&'revision-end'!==_0x106c16['name']))['forEach'](_0x5c1aeb=>{'string'!=typeof _0x5c1aeb&&(_0x5c1aeb['children']=this['_removeRevisionMarkers'](_0x5c1aeb['children']),_0x5c1aeb['attributes']=_0x5c1aeb['attributes']['filter'](_0x25a6e1=>!_0x25a6e1[0x0]['startsWith']('data-revision-')));}),_0x184b68;}}function g(_0x441ecc,_0x49a317,_0xeb1d62){const t=_0x441ecc['t'];switch(_0x49a317){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'},_0xeb1d62);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xeb1d62);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x28ae17{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5c61f4,I,V,_0x5b1285];}constructor(_0x33b53f){super(_0x33b53f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2b7c05=_0x35025a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2b7c05},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x595448=this['repository']['getRevision'](0x0),_0xc516a8=_0x595448&&null===_0x595448['creator']?_0x595448:null;if(this['_continueCurrentRevision']=!!_0xc516a8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2349d9=this['_source']['getCurrentRevisionId'](),_0xb92b2d=this['repository']['getRevision'](_0x2349d9);if(_0xb92b2d)this['_startingVersion']=_0xb92b2d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x12aa13=this['_source']['history']['_operations']['find'](_0x5ce293=>!_0x5ce293['_isInit']),_0x487cdc=_0x12aa13?_0x12aa13['baseVersion']:this['_source']['history']['version'];_0x595448?(_0x595448['toVersion']<_0x487cdc&&_0x595448['_update']({'toVersion':_0x487cdc}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xc516a8['id'],this['_startingVersion']=_0xc516a8['fromVersion']):(this['_startingVersion']=_0x595448['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x487cdc,this['_continueCurrentRevision']=!0x1);}}else _0xc516a8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xc516a8['toVersion'],this['editor']['model']['document']['history']['version']),_0xc516a8['fromVersion']===_0xc516a8['toVersion']?(0x0!==_0xc516a8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xc516a8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xc516a8['id'],this['_startingVersion']=_0xc516a8['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',_0x33c7a8=>!_0x33c7a8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x24966a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d0cc1;for(const _0x1c8961 in _0x24966a){const _0xfc7f7a=_0x1c8961,_0xca9b72=_0x24966a[_0xfc7f7a];if('revisionHistoryLicenseKeyValid'==_0xca9b72||'revisionHistoryLicenseKeyInvalid'==_0xca9b72||'revisionHistoryLicenseKeyExpired'==_0xca9b72||'revisionHistoryLicenseKeyDomainLimit'==_0xca9b72||'revisionHistoryLicenseKeyNotAllowed'==_0xca9b72||'revisionHistoryLicenseKeyEvaluationLimit'==_0xca9b72||'revisionHistoryLicenseKeyTrialLimit'==_0xca9b72||'revisionHistoryLicenseKeyUsageLimit'==_0xca9b72){delete _0x24966a[_0xfc7f7a],_0x5d0cc1=_0xca9b72,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5d0cc1&&_0x24966a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5d0cc1&&_0x24966a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5d0cc1&&_0x24966a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5d0cc1&&_0x24966a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5d0cc1&&_0x24966a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5d0cc1&&_0x24966a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5d0cc1&&_0x24966a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x144bb1=this['repository']['getRevision'](0x0),_0x5a7650=await this['getRevisionDocumentData'](_0x144bb1),_0x40c643=await this['getRevisionRootsAttributes'](_0x144bb1);this['_replaceEditorDataWithRevisionData'](_0x5a7650,_0x40c643);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1b4dd1){this['_source']=_0x1b4dd1;}async['update'](){const _0xca532b=await this['_source']['getLatestVersion']();if(_0xca532b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3ce3d3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xca532b});_0x3ce3d3['authors']=_0x3ce3d3['authorsIds']['map'](_0x4f1844=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f1844)),this['currentRevision']['_update'](_0x3ce3d3);}}async['saveRevision'](_0x3ebe61={},_0x1c597c=null){const _0x3cf123=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1c597c>this['currentRevision']['toVersion']&&(_0x1c597c=null),null===_0x1c597c&&(_0x1c597c=await this['_source']['getLatestVersion']());const _0x3fb70f=this['_getFromVersion'](_0x1c597c),_0x346262=this['buildRevisionData']({'from':_0x3fb70f,'to':_0x1c597c});if(this['currentRevision']['toVersion']<_0x1c597c){const _0x27dc2a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1c597c,'to':_0x1c597c});_0x27dc2a['authors']=[],_0x27dc2a['authorsIds']=[],_0x27dc2a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x27dc2a,!0x0),delete _0x27dc2a['authors'],_0x3cf123['push'](_0x27dc2a);}_0x3ebe61['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3ebe61['name']=_0x3ebe61['name']||null,_0x3ebe61['id']=_0x3ebe61['id']||_0x35025a(),_0x3ebe61={..._0x3ebe61,..._0x346262};const _0x206075=this['addRevisionData'](_0x3ebe61);_0x3cf123['push'](_0x3ebe61);const _0x1a2da2=this['repository']['getIndex'](_0x206075);if(0x0!==_0x1a2da2){const _0x20338d=this['repository']['getRevision'](_0x1a2da2-0x1);if(_0x20338d['fromVersion']!==_0x1c597c){const _0x569c06=this['_revisionDataBuilder']['getData'](_0x1c597c,_0x20338d['toVersion']),_0x3b7898={'id':_0x20338d['id'],'diffData':_0x569c06['diffData'],'authorsIds':_0x569c06['authorsIds'],'authors':_0x569c06['authorsIds']['map'](_0x34766e=>this['editor']['plugins']['get']('Users')['getUser'](_0x34766e)),'fromVersion':_0x1c597c};_0x20338d===this['currentRevision']&&(_0x3b7898['createdAt']=new Date(_0x3ebe61['createdAt']['getTime']()+0xa)),_0x20338d['_update'](_0x3b7898,!0x0),delete _0x3b7898['authors'],_0x3cf123['push'](_0x3b7898);}}if(this['adapter']){for(const _0x57a93d of _0x3cf123)this['_bufferUpdate'](_0x57a93d['id'],_0x57a93d,!0x0);this['sendBufferedUpdates']();}return _0x206075;}['addRevisionData'](_0x32c1be){const _0x47dc74=this['repository']['createRevision'](_0x32c1be);return this['adapter']&&_0x47dc74['on']('_update',(_0x57ab39,_0x4a7c22,_0x131902)=>{_0x131902||(this['_bufferUpdate'](_0x4a7c22['id'],_0x4a7c22,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x47dc74,this['_findInsertionIndex'](_0x47dc74)),_0x47dc74;}async['getRevisionDocumentData'](_0x2f2285){return await this['_utils']['loadRevisionData'](_0x2f2285,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2f2285);}async['getRevisionRootsAttributes'](_0x1d2fdf){return await this['_utils']['loadRevisionData'](_0x1d2fdf,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1d2fdf);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x58e3cc=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x321e62=0x0;_0x321e62<_0x58e3cc['length'];_0x321e62++){const _0x60193c=_0x58e3cc[_0x321e62];let _0x3aee8c=!0x1;for(const _0x20e1f3 of Object['keys'](_0x60193c))void 0x0===_0x60193c[_0x20e1f3]?delete _0x60193c[_0x20e1f3]:'id'!==_0x20e1f3&&(_0x3aee8c=!0x0);_0x3aee8c||(_0x58e3cc[_0x321e62]=null);}if(_0x58e3cc=_0x58e3cc['filter'](_0x189f19=>null!==_0x189f19),!_0x58e3cc['length'])return;for(let _0x2b35a8=0x0;_0x2b35a8<_0x58e3cc['length'];_0x2b35a8++){const _0x5341de=_0x58e3cc[_0x2b35a8];void 0x0!==_0x5341de['fromVersion']&&void 0x0===_0x5341de['toVersion']&&(_0x5341de['toVersion']=this['repository']['getRevision'](_0x5341de['id'])['toVersion']),void 0x0!==_0x5341de['toVersion']&&void 0x0===_0x5341de['fromVersion']&&(_0x5341de['fromVersion']=this['repository']['getRevision'](_0x5341de['id'])['fromVersion']);}const _0x506740=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x58e3cc,_0x506740)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x289b4d=>{if(_0x289b4d){for(const _0x2760f6 of _0x289b4d)this['setRevisionData']({'id':_0x2760f6['id'],'createdAt':_0x2760f6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x39dbb9=null,from:_0x39d5cb=null,to:_0x2d5b64=null}){_0x39d5cb=null!==_0x39d5cb?_0x39d5cb:_0x39dbb9['fromVersion'],_0x2d5b64=null!==_0x2d5b64?_0x2d5b64:_0x39dbb9['toVersion'];const _0x5c2d19=this['_revisionDataBuilder']['getData'](_0x39d5cb,_0x2d5b64),_0x15e8fe={'diffData':_0x5c2d19['diffData'],'authorsIds':_0x5c2d19['authorsIds'],'fromVersion':_0x39d5cb,'toVersion':_0x2d5b64};if(!_0x39dbb9||_0x2d5b64!==_0x39dbb9['toVersion']){const _0xe0c45=_0x2d5b64-0x1,_0x8edda1=this['_source']['history']['getOperation'](_0xe0c45);_0x15e8fe['createdAt']=_0x8edda1&&_0x8edda1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x39d5cb===this['_loadedStateData']['fromVersion']){for(const _0x150b98 of this['_loadedStateData']['authors'])_0x15e8fe['authorsIds']['includes'](_0x150b98['id'])||_0x15e8fe['authorsIds']['push'](_0x150b98['id']);}return _0x15e8fe;}['_bufferUpdate'](_0xd6c83a,_0x2ce437,_0xddfccc){if(this['_bufferedUpdates']['has'](_0xd6c83a)){const _0x1ca764=this['_bufferedUpdates']['get'](_0xd6c83a);_0x2ce437=_0xddfccc?{..._0x1ca764,..._0x2ce437}:{..._0x2ce437,..._0x1ca764};}this['_bufferedUpdates']['set'](_0xd6c83a,_0x2ce437);}['setRevisionData'](_0xdace2d){const _0x13cdb0=this['repository']['getRevision'](_0xdace2d['id']);if(_0xdace2d['createdAt']&&(_0xdace2d['createdAt']=new Date(_0xdace2d['createdAt'])),_0xdace2d['authorsIds']){const _0x3221d1=this['editor']['plugins']['get']('Users');_0xdace2d['authors']=_0xdace2d['authorsIds']['map'](_0xa82d31=>_0x3221d1['getUser'](_0xa82d31));}_0x13cdb0['_update'](_0xdace2d,!0x0);}['_createInitialRevision'](_0x31e48e){const _0x3e0104=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3e0104)this['_initialRevisionId']=_0x3e0104['id'];else{const _0x5a249b=!this['editor']['model']['document']['roots']['find'](_0x320bd0=>this['editor']['model']['hasContent'](_0x320bd0)),_0x3ea0e6=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e61fe=g(this['editor']['locale'],_0x5a249b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x31e48e,'to':_0x31e48e,'id':this['_initialRevisionId'],'name':_0x1e61fe,'creatorId':_0x3ea0e6});}}['_createCurrentRevision'](_0x14f0ac){const _0x49d8a2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x49d8a2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x14f0ac,'to':_0x14f0ac,'id':_0x49d8a2,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x4649fa,_0x13fdbc){let _0x5ba69d=this['editor']['config']['get']('initialData'),_0x4fc2c3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5ba69d){_0x5ba69d={};for(const _0x58afcc of this['editor']['model']['document']['getRootNames']())_0x5ba69d[_0x58afcc]='';}if('string'==typeof _0x5ba69d&&(_0x5ba69d={'main':_0x5ba69d}),void 0x0===_0x4fc2c3){_0x4fc2c3={};for(const _0x569e4a of this['editor']['model']['document']['getRootNames']())_0x4fc2c3[_0x569e4a]={};}let _0x9e7c0a=!0x1;const _0x52f9e5=Object['keys'](_0x5ba69d),_0xf7f4e1=Object['keys'](_0x4649fa);for(const _0x3b363e of _0x52f9e5){if(_0x5ba69d[_0x3b363e]!==_0x4649fa[_0x3b363e]&&''!==_0x5ba69d[_0x3b363e]['trim']()){_0x9e7c0a=!0x0;break;}if(!_0x497102(_0x4fc2c3[_0x3b363e],_0x13fdbc[_0x3b363e])&&Object['keys'](_0x4fc2c3[_0x3b363e])['length']>0x0){_0x9e7c0a=!0x0;break;}}_0x9e7c0a||(_0x9e7c0a=_0xf7f4e1['some'](_0x286f95=>!this['editor']['model']['document']['getRoot'](_0x286f95))),_0x9e7c0a&&_0x3e5cda('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5ba69d,'editorRootsAttributes':_0x4fc2c3,'revisionData':_0x4649fa,'revisionRootsAttributes':_0x13fdbc}),this['editor']['config']['set']('initialData',_0x4649fa),this['editor']['config']['set']('rootsAttributes',_0x13fdbc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2eb4b5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2eb4b5['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x11c01f){const _0x105f00=this['repository']['getRevisions']();_0x105f00['reverse']();let _0x3efab8=0x0;for(;_0x3efab8<_0x105f00['length'];){const _0x554439=_0x105f00[_0x3efab8];if(_0x554439===this['currentRevision']){_0x3efab8++;continue;}if(_0x554439['id']===this['_initialRevisionId'])break;const _0x6d8cba=_0x11c01f['toVersion']-_0x554439['toVersion']||_0x11c01f['fromVersion']-_0x554439['fromVersion'];if(_0x6d8cba>0x0)break;if(_0x6d8cba<0x0)_0x3efab8++;else{if(!_0x11c01f['creator']&&_0x554439['creator'])break;if(_0x554439['creator']||!_0x11c01f['creator']){if(_0x11c01f['createdAt']>_0x554439['createdAt'])break;_0x3efab8++;}else _0x3efab8++;}}return _0x3efab8;}['_getFromVersion'](_0x45c599){const _0x4e8a92=this['repository']['getRevisions']();_0x4e8a92['reverse'](),_0x4e8a92['shift']();const _0x87280c=_0x4e8a92['find'](_0x346d9a=>_0x346d9a['toVersion']<=_0x45c599)['toVersion'];return _0x87280c<this['_startingVersion']?this['_startingVersion']:_0x87280c;}['_makeRevision']({name:_0x1b914f,from:_0x31ef99,to:_0x30cbb7,creatorId:_0x3c42ee,id:_0x120aeb}){const _0x4e2540=this['buildRevisionData']({'from':_0x31ef99,'to':_0x30cbb7});_0x4e2540['name']=_0x1b914f,_0x4e2540['creatorId']=_0x3c42ee,_0x4e2540['id']=_0x120aeb;const _0x14a85f=this['addRevisionData'](_0x4e2540);return this['adapter']&&this['_bufferUpdate'](_0x4e2540['id'],_0x4e2540,!0x0),_0x14a85f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x16566c){this['editor']=_0x16566c,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'](_0x405e02){this['source']=_0x405e02;const _0x336168=new Map(),_0x11ffee=new Map(),_0x17e11f=this['editor']['model']['document']['roots']['map'](_0x1b6917=>_0x1b6917['rootName']);for(const _0x23be9c of _0x17e11f){const _0x1e90fa=this['editor']['model']['document']['getRoot'](_0x23be9c),_0xf0aee7=N(_0x1e90fa);_0x336168['set'](_0x23be9c,_0xf0aee7),_0x11ffee['set'](_0x23be9c,Object['fromEntries'](_0x1e90fa['getAttributes']()));}const _0x508c68=Array['from'](this['editor']['model']['markers'])['map'](_0x3c8a93=>[_0x3c8a93['name'],_0x3c8a93['getRange']()]),_0x3dc6f6=this['source']['version'];this['_saveMetaData'](_0x3dc6f6,_0x336168,_0x508c68,_0x11ffee),this['_startingRevisionId']=this['_revisionId'];const _0x42b96b=new Map(),_0x14a8d7=new Map();for(const _0x57382a of _0x17e11f){const _0x3c8a9b=P(_0x57382a);_0x42b96b['set'](_0x57382a,_0x3c8a9b),_0x14a8d7['set'](_0x57382a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x42b96b,[],_0x14a8d7);}['getData'](_0x3b0c7b,_0x186ab7){if(this['_lastFrom']===_0x3b0c7b&&this['_lastTo']<=_0x186ab7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x186ab7,!0x0);else{if(!this['_savedMetaData']['has'](_0x3b0c7b)){const _0x1606bb=this['_getPreviousFrom'](_0x3b0c7b);this['_calculateMetaData'](_0x1606bb,_0x3b0c7b,!0x1);}this['_calculateMetaData'](_0x3b0c7b,_0x186ab7,!0x0);}return this['_lastFrom']=_0x3b0c7b,this['_lastTo']=_0x186ab7,this['_getState']();}['loadState'](_0x4127a7){const _0x1a0dc1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4127a7['fromVersion'],this['_lastTo']=_0x4127a7['toVersion'];for(const _0x47bcac in _0x4127a7['diffData']){const _0x51bfc0=_0x4127a7['diffData'][_0x47bcac]['attachChange'],_0x51a8ce=_0x34117b(_0x4127a7['diffData'][_0x47bcac]['attributesBefore'])||{},_0x9c83e0=_0x1a0dc1['_makeModelFromViewString'](_0x4127a7['diffData'][_0x47bcac]['deletions']);_0x9c83e0['rootName']=_0x47bcac,_0x9c83e0['_isAttached']=!_0x51bfc0||!_0x51bfc0['isAttached'],_0x9c83e0['isAttached']=()=>_0x9c83e0['_isAttached'],this['_baseRoots']['set'](_0x47bcac,_0x9c83e0),this['_baseRootsAttributes']['set'](_0x47bcac,_0x51a8ce),_0x51bfc0&&this['_touchedRoots']['set'](_0x47bcac,_0x51bfc0);const _0x184901=this['_makeIdsRoot'](_0x9c83e0);this['_baseIdsRoots']['set'](_0x47bcac,_0x184901);for(const [_0x416951,_0x32966c]of _0x9c83e0['markers']){if(!_0x416951['startsWith']('revision:'))continue;const _0x2b30ac=_0x416951['split'](':')[0x2];for(const _0x3cf967 of _0x32966c['getWalker']({'singleCharacters':!0x0})){const _0x2d62ca=this['_getVidAttributeName'](_0x3cf967),_0x5d22c6='elementEnd'==_0x3cf967['type']?_0x3cf967['previousPosition']['path']['slice'](0x0,-0x1):_0x3cf967['previousPosition']['path'],_0x489d0d=_0x184901['getNodeByPath'](_0x5d22c6)['getAttribute'](_0x2d62ca);this['_touched']['set'](_0x489d0d,{'userId':_0x2b30ac});}}}this['_startingRevisionId']=this['_revisionId'];const _0x37dc5e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x111380=>!this['_touched']['has'](_0x111380));let _0x3abe02=0x0;const _0x5ceae5=new Map();for(const _0x3c2a51 in _0x4127a7['diffData']){const _0xc124b8=_0x4127a7['diffData'][_0x3c2a51]['attachChange'],_0xbc07e3=_0x34117b(_0x4127a7['diffData'][_0x3c2a51]['attributesAfter'])||{},_0xfebaa6=_0x1a0dc1['_makeModelFromViewString'](_0x4127a7['diffData'][_0x3c2a51]['insertions']);_0xfebaa6['rootName']=_0x3c2a51,_0xfebaa6['_isAttached']=!_0xc124b8||_0xc124b8['isAttached'],_0xfebaa6['isAttached']=()=>_0xfebaa6['_isAttached'],this['_diffRoots']['set'](_0x3c2a51,_0xfebaa6),this['_diffRootsAttributes']['set'](_0x3c2a51,_0xbc07e3);const _0x36e9ab=this['_makeIdsRoot'](_0xfebaa6,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3c2a51,_0x36e9ab),_0x5ceae5['set'](_0x3c2a51,_0xfebaa6['isAttached']()?_0xbc07e3:{});for(const [_0x46519d,_0x35c14f]of _0xfebaa6['markers']){if(!_0x46519d['startsWith']('revision:'))continue;const _0x5a205a=_0x46519d['split'](':')[0x2];for(const _0x5d51d6 of _0x35c14f['getWalker']({'singleCharacters':!0x0})){const _0x21169b=this['_getVidAttributeName'](_0x5d51d6),_0x72e25=this['_revisionId']++,_0x492467='elementEnd'==_0x5d51d6['type']?_0x5d51d6['previousPosition']['path']['slice'](0x0,-0x1):_0x5d51d6['previousPosition']['path'];_0x36e9ab['getNodeByPath'](_0x492467)['_setAttribute'](_0x21169b,_0x72e25),this['_touched']['set'](_0x72e25,{'userId':_0x5a205a});}}for(const _0x588fad of this['editor']['model']['createRangeIn'](_0xfebaa6)['getWalker']({'singleCharacters':!0x0})){const _0xef2ccb=this['_getVidAttributeName'](_0x588fad),_0x631c36='elementEnd'==_0x588fad['type']?_0x588fad['previousPosition']['path']['slice'](0x0,-0x1):_0x588fad['previousPosition']['path'],_0x462908=_0x36e9ab['getNodeByPath'](_0x631c36);_0x462908['getAttribute'](_0xef2ccb)>0x0||_0x462908['_setAttribute'](_0xef2ccb,_0x37dc5e[_0x3abe02++]);}for(const [_0x32d8ea,_0x5abbc6]of _0xfebaa6['markers'])_0x32d8ea['startsWith']('revision:')||this['_markers']['set'](_0x32d8ea,_0x5abbc6);}const _0x57e6da=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x57e6da),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x57e6da,0x1));const _0x53a1dd=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x53a1dd),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x53a1dd,0x1));const _0x2e18c1=Array['from'](this['_diffRoots'])['map'](([_0x3eabfe,_0x273806])=>[_0x3eabfe,N(_0x273806)]);this['_saveMetaData'](this['_lastTo'],_0x2e18c1,this['_markers'],_0x5ceae5);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x23c82b,_0x40be3b,_0x1463f5,_0x521b78){const _0x34cb2a=new Map(_0x40be3b),_0x41e8ca=new Map(_0x34117b(_0x521b78)),_0x5bc0cd=new Map();for(const [_0x1c4e89,_0x4d6afa]of _0x1463f5)_0x5bc0cd['set'](_0x1c4e89,{'start':_0x4d6afa['start']['clone'](),'end':_0x4d6afa['end']['clone'](),'rootName':_0x4d6afa['root']['rootName']});this['_savedMetaData']['set'](_0x23c82b,{'roots':_0x34cb2a,'markers':_0x5bc0cd,'rootsAttributes':_0x41e8ca});}['_removeMetaData'](_0xcca045){this['_savedMetaData']['delete'](_0xcca045);}['_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'](_0x3a7261,_0x22c4ae=null){let _0x1ecad5=null;_0x3a7261['is']('documentFragment')||(_0x1ecad5=new ut(_0x3a7261['name'],{'vid_start':null===_0x22c4ae?this['_revisionId']++:_0x22c4ae++}));const _0x566707=[];for(const _0x44db4b of _0x3a7261['getChildren']())if(_0x44db4b['is']('element')){_0x566707['push'](this['_makeIdsRoot'](_0x44db4b,_0x22c4ae));const _0x5e46bd=_0x566707[_0x566707['length']-0x1];null!==_0x22c4ae&&(_0x22c4ae=_0x5e46bd['is']('element','$text')?_0x5e46bd['getAttribute']('vid')+0x1:_0x5e46bd['getAttribute']('vid_end')+0x1);}else{for(let _0x1c3c95=0x0;_0x1c3c95<_0x44db4b['offsetSize'];_0x1c3c95++)_0x566707['push'](new ut('$text',{'vid':null===_0x22c4ae?this['_revisionId']++:_0x22c4ae++}));}if(_0x3a7261['is']('documentFragment')){const _0x82bee3=P(_0x3a7261['rootName']);return _0x82bee3['_insertChild'](0x0,_0x566707),_0x82bee3;}return _0x1ecad5['_setAttribute']('vid_end',null===_0x22c4ae?this['_revisionId']++:_0x22c4ae++),_0x1ecad5['_insertChild'](0x0,_0x566707),_0x1ecad5;}['_calculateMetaData'](_0x36109f,_0x49d684,_0x54e16a){this['_reset']();const {roots:_0x1037e6,markers:_0x2f303e,rootsAttributes:_0xa670fc}=this['_savedMetaData']['get'](_0x36109f);this['_baseRoots']=new Map(_0x1037e6),this['_baseRootsAttributes']=new Map(_0x34117b(_0xa670fc));for(const [_0x1331ee,_0x3f2752]of this['_baseRoots'])if('$graveyard'!==_0x1331ee&&(this['_diffRoots']['set'](_0x1331ee,N(_0x3f2752)),this['_diffRootsAttributes']=new Map(_0x34117b(_0xa670fc)),_0x54e16a)){const _0x439182=this['_revisionId'];this['_idsRoots']['set'](_0x1331ee,this['_makeIdsRoot'](_0x3f2752)),this['_baseIdsRoots']['set'](_0x1331ee,this['_makeIdsRoot'](_0x3f2752,_0x439182));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x54e16a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x24c6f6,_0x13d869]of _0x2f303e){const _0x261c26=this['_baseRoots']['get'](_0x13d869['rootName']),_0x270aac=this['_diffRoots']['get'](_0x13d869['rootName']),_0x3ca33e=new ft(this['_fixPosition'](_0x13d869['start'],_0x261c26),this['_fixPosition'](_0x13d869['end'],_0x261c26)),_0x569999=this['_fixRange'](_0x3ca33e,_0x270aac);_0x261c26['markers']['set'](_0x24c6f6,_0x3ca33e),this['_markers']['set'](_0x24c6f6,_0x569999);}this['_applyOperations'](_0x36109f,_0x49d684,_0x54e16a);}['_applyOperations'](_0x41f689,_0x362887,_0x4cdda2){for(const _0x309545 of this['source']['getOperations'](_0x41f689,_0x362887))this['_handleOperation'](_0x309545,_0x4cdda2);for(const _0x3f2ba6 of this['_diffRoots']['values']())_0x3f2ba6['markers']['clear']();for(const [_0x284dc0,_0x2560a3]of this['_markers']){this['_diffRoots']['get'](_0x2560a3['root']['rootName'])['markers']['set'](_0x284dc0,_0x2560a3['clone']());}const _0x39898e=new Map(),_0xf54d18=new Map();for(const [_0x55057c,_0xd72e4d]of this['_diffRoots'])_0x39898e['set'](_0x55057c,N(_0xd72e4d)),_0xf54d18['set'](_0x55057c,this['_diffRootsAttributes']['get'](_0x55057c));this['_saveMetaData'](_0x362887,_0x39898e,this['_markers'],_0xf54d18);}['_getPreviousFrom'](_0x51225e){const _0x431ac4=Array['from'](this['_savedMetaData']['keys']());_0x431ac4['sort']((_0x364ebc,_0x1e3f60)=>_0x364ebc-_0x1e3f60),_0x431ac4['reverse']();for(const _0x1522c2 of _0x431ac4)if(_0x1522c2<_0x51225e)return _0x1522c2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x550aa,_0x55f62e){const _0x3318ee=Array['from'](_0x55f62e['markers'])['map'](([_0x5ec206,_0x4bf86b])=>[_0x5ec206,this['_fixRange'](_0x4bf86b,_0x550aa)]);_0x550aa['markers']=new Map(_0x3318ee);}['_transformMarkers'](_0x54793d){for(const _0x329481 of this['_markers']['values']()){const _0x49756b=_0x329481['getTransformedByOperation'](_0x54793d),_0x1fea3f=ft['_createFromRanges'](_0x49756b);_0x329481['start']=_0x1fea3f['start'],_0x329481['end']=_0x1fea3f['end'];}}['_handleOperation'](_0x331e7a,_0x5f5259){if('addRoot'!=_0x331e7a['type']&&'detachRoot'!=_0x331e7a['type']){if('insert'==_0x331e7a['type']){const _0x4d9a5a=_0x331e7a['position']['root']['rootName'];this['_diffRoots']['has'](_0x4d9a5a)||(this['_diffRoots']['set'](_0x4d9a5a,P(_0x4d9a5a,!0x0)),this['_diffRootsAttributes']['set'](_0x4d9a5a,{}),_0x5f5259&&this['_idsRoots']['set'](_0x4d9a5a,P(_0x4d9a5a,!0x0)));}else{if('addRootAttribute'==_0x331e7a['type']||'removeRootAttribute'==_0x331e7a['type']||'changeRootAttribute'==_0x331e7a['type'])return void this['_handleRootAttributeOperation'](_0x331e7a);'marker'==_0x331e7a['type']&&this['_handleMarkerOperation'](_0x331e7a);}if('marker'!==_0x331e7a['type']){const _0x106410=this['_cloneOperation'](_0x331e7a,this['_diffRoots']);_0x106410['_execute'](),this['_transformMarkers'](_0x106410);}if(_0x5f5259)switch(_0x331e7a['type']){case'insert':this['_handleInsertOperation'](_0x331e7a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x331e7a);break;case'merge':this['_handleMergeOperation'](_0x331e7a);break;case'split':this['_handleSplitOperation'](_0x331e7a);}}else this['_handleRootOperation'](_0x331e7a,_0x5f5259);}['_cloneOperation'](_0x2e31dd,_0x19ef18){const _0x58cae8=_0x2e31dd['clone']();return _0x58cae8['_authorId']=_0x2e31dd['_authorId'],this['_fixOperation'](_0x58cae8,_0x19ef18),_0x58cae8;}['_getBaseVids'](_0x583f41){return _0x583f41['map'](_0x1601b7=>{const _0xbd560e=this['_getVidAttributeName'](_0x1601b7);return Number(_0x1601b7['item']['getAttribute'](_0xbd560e));});}['_generateTape'](_0x8caee2,_0x3ab6ba){if(_0x8caee2['is']('element','$text'))_0x3ab6ba['push']({'item':_0x8caee2,'type':'text'});else{_0x8caee2['is']('element')&&_0x3ab6ba['push']({'item':_0x8caee2,'type':'elementStart'});for(const _0x3505d0 of _0x8caee2['getChildren']())this['_generateTape'](_0x3505d0,_0x3ab6ba);_0x8caee2['is']('element')&&_0x3ab6ba['push']({'item':_0x8caee2,'type':'elementEnd'});}return _0x3ab6ba;}['_getState'](){const _0x21ff8e=new Map(this['_touched']),_0x27c1cc=new Map(_0x21ff8e),_0x49e7e6=new Map(),_0xbbf90e={'insertions':{},'deletions':{}},_0x123fa1={'insertions':{},'deletions':{}},_0x146f78=new Map(),_0x1de81b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1de81b['delete']('$graveyard');for(const _0xf21ff7 of _0x1de81b){const _0x5b99ec=this['_diffRoots']['get'](_0xf21ff7)||P(_0xf21ff7,!0x1),_0x2cf45e=this['_baseRoots']['get'](_0xf21ff7)||P(_0xf21ff7,!0x1);_0x5b99ec['isAttached']()||_0x2cf45e['isAttached']()?(_0xbbf90e['insertions'][_0xf21ff7]=N(_0x5b99ec),_0xbbf90e['deletions'][_0xf21ff7]=N(_0x2cf45e),this['_copyMarkers'](_0xbbf90e['deletions'][_0xf21ff7],_0x2cf45e),this['_copyMarkers'](_0xbbf90e['insertions'][_0xf21ff7],_0x5b99ec),_0x123fa1['insertions'][_0xf21ff7]=this['_generateTape'](this['_idsRoots']['get'](_0xf21ff7),[]),_0x123fa1['deletions'][_0xf21ff7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xf21ff7)||P(_0xf21ff7,!0x1),[])):_0x1de81b['delete'](_0xf21ff7);}for(const _0x5877c5 of _0x1de81b){const _0x259380=_0x123fa1['insertions'][_0x5877c5];for(const _0x420f4c of _0x259380){const _0x499529=this['_getVidAttributeName'](_0x420f4c),_0x13677b=_0x420f4c['item']['getAttribute'](_0x499529);_0x27c1cc['delete'](_0x13677b),_0x13677b>=this['_startingRevisionId']&&_0x49e7e6['set'](_0x13677b,_0x21ff8e['get'](_0x13677b));}}for(const _0x259939 of _0x1de81b){const _0x537c55=_0x123fa1['insertions'][_0x259939],_0x8c8d8a=this['_getBaseVids'](_0x123fa1['deletions'][_0x259939]);let _0x3dd719=0x0;for(const _0x28d410 of _0x537c55){const _0xcdeb25=this['_getVidAttributeName'](_0x28d410),_0x17fe7d=_0x28d410['item']['getAttribute'](_0xcdeb25);if(!_0x49e7e6['has'](_0x17fe7d)&&!_0x146f78['has'](_0x17fe7d)){if(_0x27c1cc['has'](_0x17fe7d))_0x3dd719++;else{if(_0x17fe7d!=_0x8c8d8a[_0x3dd719]){const _0x5db29d=_0x21ff8e['get'](_0x17fe7d)||_0x21ff8e['get'](_0x8c8d8a[_0x3dd719]);for(;_0x17fe7d!=_0x8c8d8a[_0x3dd719];)_0x27c1cc['has'](_0x8c8d8a[_0x3dd719])||(_0x146f78['set'](_0x8c8d8a[_0x3dd719],_0x5db29d),_0x21ff8e['set'](_0x8c8d8a[_0x3dd719],_0x5db29d)),_0x3dd719++;}_0x3dd719++;}}}}for(const _0x19f631 of _0x1de81b){const _0x5f59f8=_0x123fa1['insertions'][_0x19f631];for(const _0x12085f of _0x5f59f8){const _0xbbb8f7=this['_getVidAttributeName'](_0x12085f),_0x577f31=_0x12085f['item']['getAttribute'](_0xbbb8f7);if(_0x146f78['has'](_0x577f31)){const _0x12a0e3=_0x146f78['get'](_0x577f31);_0x27c1cc['has'](_0x577f31)||_0x27c1cc['set'](_0x577f31,{..._0x12a0e3}),_0x49e7e6['set'](_0x577f31,{..._0x12a0e3});}}}for(const _0x4502d1 of _0x27c1cc['keys']())_0x4502d1>=this['_startingRevisionId']&&_0x27c1cc['delete'](_0x4502d1);const _0x131359=new Map();for(const _0x3b31ed of _0x1de81b){let _0x321b0e=_0x123fa1['insertions'][_0x3b31ed];for(const _0x39c977 of _0x321b0e)if(_0x39c977['item']['is']('element','tableCell')){const _0x17604a=this['_getVidAttributeName'](_0x39c977),_0x2534d7=_0x39c977['item']['getAttribute'](_0x17604a);if(_0x49e7e6['has'](_0x2534d7)){const _0xa98675=_0x39c977['item']['parent']['parent']['getAttribute']('vid_start'),_0xae264c=_0x131359['get'](_0xa98675)||new Set();_0xae264c['add'](_0x49e7e6['get'](_0x2534d7)['userId']),_0x131359['set'](_0xa98675,_0xae264c);}}_0x321b0e=_0x123fa1['deletions'][_0x3b31ed];for(const _0x290d84 of _0x321b0e)if(_0x290d84['item']['is']('element','tableCell')){const _0x459569=this['_getVidAttributeName'](_0x290d84),_0xed94dd=_0x290d84['item']['getAttribute'](_0x459569);if(_0x27c1cc['has'](_0xed94dd)){const _0x11af88=_0x290d84['item']['parent']['parent']['getAttribute']('vid_start'),_0x58a9ac=_0x131359['get'](_0x11af88)||new Set();_0x58a9ac['add'](_0x27c1cc['get'](_0xed94dd)['userId']),_0x131359['set'](_0x11af88,_0x58a9ac);}}for(const _0x4c45ac of _0x131359['keys']())(_0x49e7e6['has'](_0x4c45ac)||_0x27c1cc['has'](_0x4c45ac))&&_0x131359['delete'](_0x4c45ac);}for(const _0x22bc2c of _0x1de81b){const _0xf42ea2=_0x123fa1['insertions'][_0x22bc2c];let _0x3868c2=null,_0x582ed9=null;for(const _0x3d42ab of _0xf42ea2){const _0xd38537=this['_getVidAttributeName'](_0x3d42ab),_0x12de22=_0x3d42ab['item']['getAttribute'](_0xd38537),_0x16407b=_0x131359['get'](_0x12de22);_0x16407b&&'elementStart'==_0x3d42ab['type']&&(_0x3868c2=Array['from'](_0x16407b)[0x0],_0x582ed9=_0x3d42ab['item']['getAttribute']('vid_end')),_0x3868c2&&(_0x27c1cc['set'](_0x12de22,{'userId':_0x3868c2}),_0x49e7e6['set'](_0x12de22,{'userId':_0x3868c2})),_0x12de22==_0x582ed9&&(_0x3868c2=null,_0x582ed9=null);}}const _0xcac2b6={},_0x4d5940=new Set();for(const _0x15c210 of _0x1de81b){const _0x26496c=_0xbbf90e['deletions'][_0x15c210],_0x1e62b1=_0xbbf90e['insertions'][_0x15c210];for(const {userId:_0x2dfd12}of this['_touchedMarkers']['values']())null!==_0x2dfd12&&_0x4d5940['add'](_0x2dfd12);for(const {userId:_0x3344c4}of this['_touchedRoots']['values']())null!==_0x3344c4&&_0x4d5940['add'](_0x3344c4);this['_markChanges'](_0x1e62b1,_0x123fa1['insertions'][_0x15c210],_0x49e7e6,'insertion',_0x4d5940),this['_markChanges'](_0x26496c,_0x123fa1['deletions'][_0x15c210],_0x27c1cc,'deletion',_0x4d5940),_0xcac2b6[_0x15c210]={'insertions':this['_prepareViewToSave'](_0x1e62b1),'deletions':this['_prepareViewToSave'](_0x26496c),'attachChange':this['_touchedRoots']['get'](_0x15c210)||null,'attributesBefore':_0x34117b(this['_baseRootsAttributes']['get'](_0x15c210))||{},'attributesAfter':_0x34117b(this['_diffRootsAttributes']['get'](_0x15c210))};}return{'diffData':_0xcac2b6,'authorsIds':Array['from'](_0x4d5940)};}['_processRootBeforeSave'](_0x27183d){for(const [,_0x215fd1]of _0x27183d['markers']){const _0x5291d2=_0x215fd1['start']['getAncestors']()['filter'](_0x285a6e=>'tableCell'==_0x285a6e['name']);for(const _0x10348f of _0x5291d2)0x1==_0x10348f['childCount']&&_0x10348f['getChild'](0x0)['is']('element','paragraph')&&_0x10348f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3374d0){this['_processRootBeforeSave'](_0x3374d0);const _0x1b1617=this['editor']['data']['toView'](_0x3374d0,{}),_0x28e986=Array['from'](_0x1b1617['getChildren']())['map'](_0x2abc6d=>this['_getViewJson'](_0x2abc6d));return JSON['stringify'](_0x28e986);}['_getViewJson'](_0x22e56a){if(_0x22e56a['is']('$text'))return _0x22e56a['data'];{const _0xa8046f=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5f0ebc=_0x22e56a,_0x57e58f=this['editor']['data']['htmlProcessor']['domConverter'],_0x56053b={'type':_0xa8046f['_getTypeCharForViewElement'](_0x5f0ebc),'name':_0x5f0ebc['name'],'attributes':Array['from'](_0x5f0ebc['getAttributes']()),'children':Array['from'](_0x5f0ebc['getChildren']())['map'](_0x1becb7=>this['_getViewJson'](_0x1becb7))};if(_0x22e56a['is']('uiElement')&&'$comment'!=_0x22e56a['name']){const _0x116919=_0x22e56a['render'](_0x57e58f['domDocument'],_0x57e58f);_0x56053b['children']['push'](_0x116919['outerHTML']);}else{if(_0x22e56a['is']('rawElement')){const _0xef319e=_0x57e58f['domDocument']['createElement'](_0x5f0ebc['name']);_0x22e56a['render'](_0xef319e,_0x57e58f),_0x56053b['children']['push'](_0xef319e['innerHTML']);}}const _0x203538=Array['from'](_0x5f0ebc['getCustomProperties']());_0x203538['length']>0x0&&(_0x56053b['customProperties']=_0x203538);const _0x1672b2=_0x5f0ebc['getFillerOffset']();return null!==_0x1672b2&&(_0x56053b['fillerOffset']=_0x1672b2),_0x56053b;}}['_markChanges'](_0x45d797,_0x110b8f,_0x3d32e9,_0x482728,_0x4999f3){let _0x34db2b=null,_0x1283d5=null,_0x26c625=0x0;const _0x4827c6=this['editor']['model'];for(let _0x7fc2a=0x0;_0x7fc2a<_0x110b8f['length'];_0x7fc2a++){const _0x10deaf=this['_getVidAttributeName'](_0x110b8f[_0x7fc2a]),_0x1aa77a=_0x110b8f[_0x7fc2a]['item']['getAttribute'](_0x10deaf),_0x7357d5=_0x3d32e9['get'](_0x1aa77a),_0xa362ab=_0x7fc2a==_0x110b8f['length']-0x1;(!_0x34db2b&&_0x7357d5&&(_0x34db2b=_0x7357d5,_0x1283d5=_0x110b8f[_0x7fc2a]),_0x34db2b&&(!_0x7357d5||_0x7357d5['userId']!=_0x34db2b['userId']))&&(_0x5ec152(_0x7357d5,F(_0x1283d5,_0x45d797,_0x4827c6),F(_0x110b8f[_0x7fc2a],_0x45d797,_0x4827c6)),_0x34db2b=_0x7357d5||null,_0x1283d5=_0x7357d5?_0x110b8f[_0x7fc2a]:null),_0x34db2b&&_0xa362ab&&_0x5ec152(_0x7357d5,F(_0x1283d5,_0x45d797,_0x4827c6),B(_0x110b8f[_0x7fc2a],_0x45d797,_0x4827c6));}function _0x5ec152(_0x3572a7,_0x22f164,_0x5eacb1){const _0x1096cc=_0x34db2b['userId'],_0x3799b9='revision:'+_0x482728+':'+_0x1096cc+':'+_0x26c625++,_0x29f19d=_0x4827c6['createRange'](_0x22f164,_0x5eacb1);_0x45d797['markers']['set'](_0x3799b9,_0x29f19d),null!==_0x1096cc&&_0x4999f3['add'](_0x1096cc);}}['_getVidAttributeName'](_0x5493ba){switch(_0x5493ba['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x270772,_0x1c0993){_0x270772['baseVersion']=null;for(const _0x54e041 in _0x270772){const _0x2021ee=_0x270772[_0x54e041];if(_0x2021ee instanceof vt){const _0x3f936e=_0x1c0993['get'](_0x2021ee['root']['rootName']);_0x270772[_0x54e041]=this['_fixPosition'](_0x2021ee,_0x3f936e);}if(_0x2021ee instanceof ft){const _0x293aa6=_0x1c0993['get'](_0x2021ee['root']['rootName']);_0x270772[_0x54e041]=this['_fixRange'](_0x2021ee,_0x293aa6);}'root'===_0x54e041&&(_0x270772['root']=_0x1c0993['get'](_0x270772['root']['rootName']));}}['_fixRange'](_0x48fb4f,_0x3ce2b9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x48fb4f['start'],_0x3ce2b9),this['_fixPosition'](_0x48fb4f['end'],_0x3ce2b9));}['_fixPosition'](_0x3fc561,_0x4b3158){return this['editor']['model']['createPositionFromPath'](_0x4b3158,_0x3fc561['path'],_0x3fc561['stickiness']);}['_handleInsertOperation'](_0x541488){const _0x4683cd=this['_idsRoots']['get'](_0x541488['position']['root']['rootName']),_0x1668e1=this['_fixPosition'](_0x541488['position'],_0x4683cd),_0x9cccfe=null===_0x541488['_authorId']?null:_0x541488['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e9723=_0x1668e1['parent'],_0x18f68b=this['_revisionId'],_0x58ad5a=[];for(const _0x2e93cc of _0x541488['nodes'])if(_0x2e93cc['is']('element'))_0x58ad5a['push'](this['_makeIdsRoot'](_0x2e93cc));else{for(let _0x2291bd=0x0;_0x2291bd<_0x2e93cc['offsetSize'];_0x2291bd++)_0x58ad5a['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4f0add=this['_revisionId'];for(let _0x59170a=_0x18f68b;_0x59170a<_0x4f0add;_0x59170a++)this['_touched']['set'](_0x59170a,{'userId':_0x9cccfe});_0x5e9723['_insertChild'](_0x1668e1['offset'],_0x58ad5a);}['_handleMoveOperation'](_0x4add2d){(_0x4add2d=this['_cloneOperation'](_0x4add2d,this['_idsRoots']))['_execute']();const _0x4b760a=null===_0x4add2d['_authorId']?null:_0x4add2d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42505c=_0x4add2d['getMovedRangeStart'](),_0xbe622b=_0x42505c['parent'],_0x5b09fa=_0x42505c['offset'];!function _0x23229d(_0x35aa7e,_0x2b0d70,_0x4d3760,_0x4b500a){for(let _0x4ae9e8=_0x4d3760;_0x4ae9e8<_0x4b500a;_0x4ae9e8++){const _0x5168bd=_0x2b0d70['getChild'](_0x4ae9e8);_0x5168bd['is']('element','$text')?_0x35aa7e['set'](_0x5168bd['getAttribute']('vid'),{'userId':_0x4b760a}):(_0x35aa7e['set'](_0x5168bd['getAttribute']('vid_start'),{'userId':_0x4b760a}),_0x23229d(_0x35aa7e,_0x5168bd,0x0,_0x5168bd['childCount']),_0x35aa7e['set'](_0x5168bd['getAttribute']('vid_end'),{'userId':_0x4b760a}));}}(this['_touched'],_0xbe622b,_0x5b09fa,_0x5b09fa+_0x4add2d['howMany']);}['_handleMergeOperation'](_0x3358a2){const _0x23f38b=null===(_0x3358a2=this['_cloneOperation'](_0x3358a2,this['_idsRoots']))['_authorId']?null:_0x3358a2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a553e=_0x3358a2['targetPosition']['parent'],_0x9cc17a=_0x3358a2['sourcePosition']['parent'],_0x8c5840=_0x3a553e['getAttribute']('vid_end'),_0x56a280=_0x9cc17a['getAttribute']('vid_start');_0x3a553e['_setAttribute']('vid_end',_0x9cc17a['getAttribute']('vid_end')),_0x9cc17a['_setAttribute']('vid_end',_0x8c5840),this['_touched']['set'](_0x56a280,{'userId':_0x23f38b}),this['_touched']['set'](_0x8c5840,{'userId':_0x23f38b}),_0x3358a2['_execute']();}['_handleSplitOperation'](_0x1a4e88){const _0x50b864=null===(_0x1a4e88=this['_cloneOperation'](_0x1a4e88,this['_idsRoots']))['_authorId']?null:_0x1a4e88['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x263c81=_0x1a4e88['graveyardPosition'],_0x5482fc=_0x1a4e88['splitPosition']['parent'];_0x1a4e88['_execute']();const _0x58ce04=_0x5482fc['getAttribute']('vid_end'),_0x4eeb1a=_0x1a4e88['insertionPosition']['nodeAfter'];if(_0x263c81){const _0x1b0cc3=_0x4eeb1a['getAttribute']('vid_end'),_0x2dddbd=_0x5482fc['getAttribute']('vid_end');_0x5482fc['_setAttribute']('vid_end',_0x1b0cc3),_0x4eeb1a['_setAttribute']('vid_end',_0x2dddbd),this['_touched']['set'](_0x5482fc['getAttribute']('vid_end'),{'userId':_0x50b864}),this['_touched']['set'](_0x4eeb1a['getAttribute']('vid_start'),{'userId':_0x50b864});}else{const _0x356de5=this['_revisionId']++,_0x133f36=this['_revisionId']++;_0x5482fc['_setAttribute']('vid_end',_0x356de5),_0x4eeb1a['_setAttribute']('vid_start',_0x133f36),_0x4eeb1a['_setAttribute']('vid_end',_0x58ce04),this['_touched']['set'](_0x356de5,{'userId':_0x50b864}),this['_touched']['set'](_0x133f36,{'userId':_0x50b864});}}['_handleMarkerOperation'](_0x4e9913){if(!_0x4e9913['affectsData'])return;const _0x179f6a=(_0x4e9913=this['_cloneOperation'](_0x4e9913,this['_diffRoots']))['oldRange']?_0x4e9913['oldRange']['root']:null,_0x5f4a01=_0x4e9913['newRange']?_0x4e9913['newRange']['root']:null;_0x179f6a&&this['_markers']['delete'](_0x4e9913['name']),_0x5f4a01&&this['_markers']['set'](_0x4e9913['name'],_0x4e9913['newRange']['clone']());const _0x12a6a6=null===_0x4e9913['_authorId']?null:_0x4e9913['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50f77b=_0x4e9913['name'];if(!this['_touchedMarkers']['has'](_0x50f77b))return void this['_touchedMarkers']['set'](_0x50f77b,{'range':_0x4e9913['oldRange'],'userId':_0x12a6a6});const _0x577611=this['_touchedMarkers']['get'](_0x50f77b),_0x5b8a2c=_0x577611['range'],_0x8e2305=_0x4e9913['newRange'];null==_0x5b8a2c&&null==_0x8e2305||_0x5b8a2c&&_0x8e2305&&_0x5b8a2c['isEqual'](_0x8e2305)?this['_touchedMarkers']['delete'](_0x4e9913['name']):_0x577611['userId']=_0x12a6a6;}['_handleRootOperation'](_0x9db9a,_0x3a2251){this['_diffRoots']['has'](_0x9db9a['rootName'])?this['_diffRoots']['get'](_0x9db9a['rootName'])['_isAttached']=_0x9db9a['isAdd']:(this['_diffRoots']['set'](_0x9db9a['rootName'],P(_0x9db9a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x9db9a['rootName'],{}),_0x3a2251&&this['_idsRoots']['set'](_0x9db9a['rootName'],P(_0x9db9a['rootName'],!0x0)));const _0x71ab1f=null===_0x9db9a['_authorId']?null:_0x9db9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d6269=this['_touchedRoots']['get'](_0x9db9a['rootName']);_0x2d6269&&_0x2d6269['userId']===_0x71ab1f?this['_touchedRoots']['delete'](_0x9db9a['rootName']):this['_touchedRoots']['set'](_0x9db9a['rootName'],{'userId':_0x71ab1f,'isAttached':_0x9db9a['isAdd']});}['_handleRootAttributeOperation'](_0x2232f6){const _0x55d4b0=this['_diffRootsAttributes']['get'](_0x2232f6['root']['rootName']);null===_0x2232f6['newValue']?delete _0x55d4b0[_0x2232f6['key']]:_0x55d4b0[_0x2232f6['key']]=_0x2232f6['newValue'];}}function N(_0x1efe82){const _0x1c214a=P(_0x1efe82['rootName'],_0x1efe82['isAttached']());for(const _0x50b420 of _0x1efe82['getChildren']()){const _0x176250=_0x50b420['_clone'](!0x0);_0x1c214a['_appendChild'](_0x176250);}return _0x1c214a;}function P(_0x149090,_0x2773c3=!0x0){const _0x431f86=new gt();return _0x431f86['rootName']=_0x149090,_0x431f86['_isAttached']=_0x2773c3,_0x431f86['isAttached']=()=>_0x431f86['_isAttached'],_0x431f86;}function F(_0x3d3325,_0x3d7d7b,_0x7d4049){const _0x26d09f='elementEnd'==_0x3d3325['type']?_0x7d4049['createPositionAt'](_0x3d3325['item'],'end'):_0x7d4049['createPositionBefore'](_0x3d3325['item']);return _0x7d4049['createPositionFromPath'](_0x3d7d7b,_0x26d09f['path'],_0x26d09f['stickiness']);}function B(_0x4dde7d,_0x49cac4,_0x4f5df2){const _0x106fd2='elementStart'==_0x4dde7d['type']?_0x4f5df2['createPositionAt'](_0x4dde7d['item'],0x0):_0x4f5df2['createPositionAfter'](_0x4dde7d['item']);return _0x4f5df2['createPositionFromPath'](_0x49cac4,_0x106fd2['path'],_0x106fd2['stickiness']);}class os extends _0x1528d9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x333b79,_0x3db64e){super(_0x333b79),this['focusTracker']=new _0x41023d(),this['keystrokes']=new _0x273cb9(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3db64e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0xb1bae6({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x59c949=_0x21f3b4=>_0x21f3b4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x59c949),this['keystrokes']['set']('arrowleft',_0x59c949),this['keystrokes']['set']('arrowup',_0x59c949),this['keystrokes']['set']('arrowdown',_0x59c949);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x57ebe5){this['revisionNameInputView']['fieldView']['element']['value']=_0x57ebe5['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4fa76e){const _0x320949=new nt(this['locale'],ti),_0x297159=_0x320949['fieldView'];_0x297159['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5d78e8=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4fa76e&&(_0x5d78e8+='\x20('+g(this['locale'],'optional')+')'),(_0x320949['label']=_0x5d78e8,_0x297159['on']('input',()=>{this['revisionNameInputValue']=_0x297159['element']['value']['trim']();}),_0x320949);}}class f extends _0x28ae17{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x58e2e6=this['editor'],_0x5ebf44=_0x58e2e6['plugins']['get']('RevisionTracker');_0x58e2e6['ui']['componentFactory']['add']('revisionHistory',_0x23d54c=>{const _0x5de0a5=_0x5be76e(_0x23d54c),_0x21fe5b=_0x5de0a5['panelView']['children'],_0x39ffdb=new _0x5cb1e7(_0x23d54c),_0x1c436c=new te(_0x23d54c),_0x48f44b=new _0x4a8ccc(_0x23d54c),_0x2f58b1=new te(_0x23d54c),_0x352e60=new _0x4a8ccc(_0x23d54c);return _0x5de0a5['bind']('isEnabled')['to'](_0x5ebf44,'isReady',_0x5ebf44,'isEnabled',_0x58e2e6,'isReadOnly',(_0x4c4a6a,_0x20a587,_0x459cfd)=>_0x4c4a6a&&_0x20a587&&!_0x459cfd),_0x5de0a5['buttonView']['set']({'icon':_0x4c4ff0,'label':g(_0x23d54c,'Revision\x20history'),'tooltip':!0x0}),_0x48f44b['set']({'label':g(_0x23d54c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x48f44b['bind']('isEnabled')['to'](_0x5ebf44,'isReady',_0x5ebf44,'isEnabled',_0x58e2e6,'isReadOnly',(_0x2caa26,_0x3b0f34,_0x5c688a)=>_0x2caa26&&_0x3b0f34&&!_0x5c688a),_0x48f44b['on']('execute',()=>this['_showDialog']()),_0x352e60['set']({'label':g(_0x23d54c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x352e60['bind']('isEnabled')['to'](_0x5ebf44,'isReady',_0x58e2e6,'isReadOnly',(_0x218c0c,_0x577d3c)=>_0x218c0c&&!_0x577d3c),_0x352e60['on']('execute',()=>{_0x58e2e6['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5de0a5['isOpen']=!0x1,_0x58e2e6['editing']['view']['focus']();}),_0x1c436c['children']['add'](_0x48f44b),_0x2f58b1['children']['add'](_0x352e60),_0x39ffdb['role']='menu',_0x39ffdb['items']['addMany']([_0x1c436c,_0x2f58b1]),_0x21fe5b['add'](_0x39ffdb),_0x5de0a5;}),_0x58e2e6['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x47e964=this['editor'],_0x2d377d=_0x47e964['locale'],_0x1ff172=new _0x5c84ce(_0x2d377d),_0x3e7e29=new _0x339021(_0x2d377d);_0x1ff172['buttonView']['set']({'icon':_0x4c4ff0,'label':g(_0x2d377d,'Revision\x20history')});const _0x1e2509=new _0x26cd45(_0x2d377d,_0x1ff172),_0xc6a4b2=new _0x5d0b75(_0x2d377d);_0xc6a4b2['set']({'label':g(_0x2d377d,'Save\x20current\x20revision')}),_0xc6a4b2['delegate']('execute')['to'](_0x1ff172),_0xc6a4b2['on']('execute',()=>{this['_showDialog']();}),_0x1e2509['children']['add'](_0xc6a4b2),_0x3e7e29['items']['add'](_0x1e2509);const _0x29e050=new _0x26cd45(_0x2d377d,_0x1ff172),_0x3747f3=new _0x5d0b75(_0x2d377d);return _0x3747f3['set']({'label':g(_0x2d377d,'Open\x20revision\x20history')}),_0x3747f3['delegate']('execute')['to'](_0x1ff172),_0x3747f3['on']('execute',()=>{_0x47e964['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x29e050['children']['add'](_0x3747f3),_0x3e7e29['items']['add'](_0x29e050),_0x1ff172['panelView']['children']['add'](_0x3e7e29),_0x1ff172;}['_showDialog'](){const _0x16ad5c=this['editor'],_0x2a947a=_0x16ad5c['locale'],_0x451d2c=_0x16ad5c['plugins']['get']('Dialog'),_0x3fe47e=_0x16ad5c['plugins']['get']('RevisionTracker');function _0x2704ab(_0x1c7eaf){_0x16ad5c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1c7eaf['revisionName']?_0x1c7eaf['revisionNameInputView']['errorText']=g(_0x2a947a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x16ad5c['plugins']['get'](u)['saveRevision']({'name':_0x1c7eaf['revisionName']}),_0x451d2c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2704ab(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x451d2c['show']({'id':'revisionSave','title':g(_0x2a947a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x16ad5c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x451d2c['hide']()},{'label':g(_0x16ad5c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x48e786){_0x48e786['bind']('isEnabled')['to'](_0x3fe47e,'isReady',_0x3fe47e,'isEnabled',_0x16ad5c,'isReadOnly',(_0xf51b11,_0x49d93d,_0x4da774)=>_0xf51b11&&_0x49d93d&&!_0x4da774);},'onExecute':()=>_0x2704ab(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1343e4=this['editor'],_0x53b6f4=_0x1343e4['locale'];this['_saveRevisionFormView']=new os(_0x53b6f4,_0x1343e4['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x1528d9{['changeId'];['_model'];constructor(_0x57705b,_0x554cc6){super(_0x57705b),this['_model']=_0x554cc6,this['changeId']=_0x554cc6['id'];const _0x36339e=this['bindTemplate'],_0xf05fa9=g(_0x57705b,_0x554cc6['data']['isSuggestion']?'Suggested\x20by':'add'==_0x554cc6['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x554cc6['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x36339e['to']('type',_0x14324c=>'ck-revision-change__'+_0x14324c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xf05fa9}]},{'text':'\x20'+_0x554cc6['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x38fc2e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4d1fc2){super(),this['id']=_0x4d1fc2['id']||_0x35025a(),this['author']=_0x4d1fc2['author'],this['type']=_0x4d1fc2['type'],this['data']=_0x4d1fc2['data']||{},this['rootName']=_0x4d1fc2['rootName'],this['set']('createdAt',_0x4d1fc2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x525058,_0x4f102e){this['newRevisionId']=_0x525058,this['oldRevisionId']=_0x4f102e,this['changes']=new _0x1190c4();}['_setChanges'](_0x2d9eca){for(const _0x1e4629 of _0x2d9eca)this['changes']['add'](_0x1e4629);}}class m extends _0x28ae17{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5c61f4,_0x5c2e60,I,V];}constructor(_0x5c8862){super(_0x5c8862),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1f9d89,_0x37b52e,_0x44c85b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x47dd59=>{for(const _0x3eb8ad of this['editor']['editing']['view']['document']['roots'])_0x44c85b?_0x47dd59['removeClass']('ck-editor__editable__overlay',_0x3eb8ad):_0x47dd59['addClass']('ck-editor__editable__overlay',_0x3eb8ad);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3e7d2f=>null!==_0x3e7d2f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2de225,_0x105f5f,_0x45cebf)=>_0x2de225&&_0x45cebf?_0x105f5f['changes']['getIndex'](_0x45cebf):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1a5d83,_0x9ed778)=>_0x1a5d83?_0x9ed778['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5c2e60);}['init'](){const _0x1f6ba9=this['editor'],_0x5d937e=new pt(_0x1f6ba9,{'direction':'backward'}),_0x3838cb=new pt(_0x1f6ba9,{'direction':'forward'});(_0x1f6ba9['commands']['add']('showPreviousChange',_0x5d937e),_0x1f6ba9['commands']['add']('showNextChange',_0x3838cb),_0x1f6ba9['commands']['add']('restoreRevision',new wt(_0x1f6ba9)),this['on']('change:numberOfChanges',()=>{_0x5d937e['refresh'](),_0x3838cb['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f6ba9['enableReadOnlyMode']('revision-viewer'),_0x1f6ba9['plugins']['has']('WidgetToolbarRepository'))&&_0x1f6ba9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x31c19f){return await this['_utils']['loadRevisionData'](_0x31c19f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x31c19f);}async['getRevisionRootsAttributes'](_0x37644e){return await this['_utils']['loadRevisionData'](_0x37644e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x37644e);}async['compare'](_0x282226,_0x45a587,_0x2e34a1=!0x1){if(!this['isEnabled'])return;const _0x265ad1=this['diff'],_0x22e9bc=this['repository'],_0x1cf817='string'==typeof _0x282226?_0x22e9bc['getRevision'](_0x282226):_0x282226,_0x4ca5ca='string'==typeof _0x45a587?_0x22e9bc['getRevision'](_0x45a587):_0x45a587,_0x36fbd8=_0x1cf817['id'],_0x2ed2db=_0x4ca5ca?_0x4ca5ca['id']:null;if(!_0x2e34a1&&this['diff']&&this['diff']['newRevisionId']===_0x36fbd8&&this['diff']['oldRevisionId']===_0x2ed2db)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x36fbd8,_0x2ed2db);const _0x42397a=this['_getRevisionsRange'](_0x1cf817,_0x4ca5ca,!0x0)['map'](_0x246927=>this['_utils']['loadRevisionData'](_0x246927,this['adapter']));return _0x42397a['push'](new Promise(_0x3ac88d=>{setTimeout(_0x3ac88d,0x14);})),Promise['all'](_0x42397a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x116455=this['_getDiff'](_0x36fbd8,_0x2ed2db);for(const _0x3d68a4 of _0x116455['changes'])this['_changeIdToChange']['set'](_0x3d68a4['id'],_0x3d68a4);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x142dc9=>{for(const _0x59641f of this['editor']['model']['document']['getRootNames']())_0x142dc9['detachRoot'](_0x59641f);for(const _0x236b13 of Object['keys'](_0x116455['model'])){const _0x573fb8=_0x142dc9['addRoot'](_0x236b13);for(const _0x3ef3a0 of Object['keys'](_0x116455['attributes'][_0x236b13]))_0x142dc9['setAttribute'](_0x3ef3a0,_0x116455['attributes'][_0x236b13][_0x3ef3a0],_0x573fb8);_0x142dc9['insert'](_0x116455['model'][_0x236b13],_0x573fb8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x116455['changes'])),this['isReady']=!0x0;})['catch'](_0x5c576f=>{console['error'](_0x5c576f),this['_cleanUp'](),_0x265ad1&&(this['diff']=_0x265ad1),this['isReady']=!0x0;});}['addRevisionData'](_0x452d6f,_0x24b344){const _0x4d7bee=this['repository']['createRevision'](_0x452d6f);return _0x4d7bee['on']('_update',(_0x1b1b49,_0x47cfb0,_0x3567a8)=>_0x24b344(_0x47cfb0,_0x3567a8,_0x4d7bee)),this['repository']['addRevision'](_0x4d7bee),_0x4d7bee;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2d47a5=>{for(const _0x3bc4d0 of this['editor']['model']['document']['getRootNames']())_0x2d47a5['detachRoot'](_0x3bc4d0);});}['_sortAndFilterDiffChanges'](_0x4941d2){const _0x107afa=[],_0x1b39f6=new Map();for(const _0x59b76d of this['editor']['model']['document']['getRootNames']()){const _0x4a82ef=this['editor']['editing']['view']['getDomRoot'](_0x59b76d);if(!_0x4a82ef)continue;const _0x4ef2bc=_0x4a82ef['getClientRects']()['item'](0x0);_0x4ef2bc&&(_0x107afa['push'](_0x59b76d),_0x1b39f6['set'](_0x59b76d,_0x4ef2bc));}return _0x107afa['sort']((_0x790ce9,_0x3a555c)=>{const _0x526b10=_0x1b39f6['get'](_0x790ce9),_0x3e8498=_0x1b39f6['get'](_0x3a555c);return _0x526b10['y']-_0x3e8498['y']||_0x526b10['x']-_0x3e8498['x'];}),(_0x4941d2=_0x4941d2['filter'](_0x340e38=>_0x107afa['includes'](_0x340e38['rootName'])))['sort']((_0x534444,_0x1e9c60)=>_0x107afa['indexOf'](_0x534444['rootName'])-_0x107afa['indexOf'](_0x1e9c60['rootName'])),_0x4941d2;}['_makeTape'](_0x4a24b0){const _0x2ee9ee=Array['from'](_0x4a24b0['markers'])['filter'](([_0x4cb5d8,_0x1564a0])=>_0x4cb5d8['startsWith']('revision:')&&!_0x1564a0['isCollapsed']),_0x5e9688=Array['from'](this['editor']['model']['createRangeIn'](_0x4a24b0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2ee9ee['length'])for(const _0x40fce4 of _0x5e9688){const [_0x3486d9,_0x37abf4]=_0x2ee9ee[0x0],[,_0x14ede0,_0x1c3d3e]=_0x3486d9['split'](':');if(_0x37abf4['end']['isEqual'](_0x40fce4['nextPosition'])&&_0x2ee9ee['shift'](),(_0x40fce4['previousPosition']['isEqual'](_0x37abf4['start'])||_0x40fce4['previousPosition']['isAfter'](_0x37abf4['start']))&&('insertion'==_0x14ede0?_0x40fce4['isAdded']={'userId':_0x1c3d3e}:'deletion'==_0x14ede0&&(_0x40fce4['isRemoved']={'userId':_0x1c3d3e})),0x0==_0x2ee9ee['length'])break;}return _0x5e9688;}['_refreshStartEndIndex'](_0x1fdae1){const _0x310e63=new Map();for(let _0x23540e=0x0;_0x23540e<_0x1fdae1['length'];_0x23540e++)'text'===_0x1fdae1[_0x23540e]['type']?(_0x1fdae1[_0x23540e]['item']['startIndex']=_0x23540e,_0x1fdae1[_0x23540e]['item']['endIndex']=_0x23540e):('elementStart'===_0x1fdae1[_0x23540e]['type']?_0x1fdae1[_0x23540e]['item']['startIndex']=_0x23540e:'elementEnd'===_0x1fdae1[_0x23540e]['type']&&(_0x1fdae1[_0x23540e]['item']['endIndex']=_0x23540e),_0x310e63['set'](_0x1fdae1[_0x23540e]['id'],_0x23540e));for(const _0x2ea9dc of _0x310e63['values']())'elementStart'===_0x1fdae1[_0x2ea9dc]['type']?_0x1fdae1[_0x2ea9dc]['item']['endIndex']=_0x310e63['get'](_0x1fdae1[_0x2ea9dc]['pairId']):'elementEnd'===_0x1fdae1[_0x2ea9dc]['type']&&(_0x1fdae1[_0x2ea9dc]['item']['startIndex']=_0x310e63['get'](_0x1fdae1[_0x2ea9dc]['pairId']));}['_processTape'](_0x53b1d9){for(let _0x5a425f=0x0;_0x5a425f<_0x53b1d9['length'];_0x5a425f++){if('elementStart'===_0x53b1d9[_0x5a425f]['type'])_0x53b1d9[_0x5a425f]['item']['startIndex']=_0x5a425f;else{if('elementEnd'===_0x53b1d9[_0x5a425f]['type']){_0x53b1d9[_0x5a425f]['item']['endIndex']=_0x5a425f;const _0x38d0a9=_0x53b1d9[_0x5a425f]['item']['startIndex'];_0x53b1d9[_0x38d0a9]['pairId']=_0x53b1d9[_0x5a425f]['id'],_0x53b1d9[_0x5a425f]['pairId']=_0x53b1d9[_0x38d0a9]['id'];}else _0x53b1d9[_0x5a425f]['item']['startIndex']=_0x5a425f,_0x53b1d9[_0x5a425f]['item']['endIndex']=_0x5a425f,_0x53b1d9[_0x5a425f]['pairId']=null;}_0x53b1d9[_0x5a425f]['markersStart']||(_0x53b1d9[_0x5a425f]['markersStart']=[],_0x53b1d9[_0x5a425f]['markersEnd']=[]);}}['_markInsertions'](_0x4792f7,_0x454181){const _0x57915a=_0x4792f7['filter'](_0x19f169=>!_0x19f169['isAdded']);for(let _0x457a63=0x0;_0x457a63<_0x454181['length'];_0x457a63++)_0x454181[_0x457a63]['isAdded']&&(_0x57915a[_0x457a63]['isAdded']=_0x454181[_0x457a63]['isAdded']);}['_getDiff'](_0x580daa,_0x8e2719=null){const _0x4272d8=this['repository']['getRevision'](_0x580daa),_0x2c5a33=_0x8e2719?this['repository']['getRevision'](_0x8e2719):null,_0xb05a4d=this['_getRevisionsRange'](_0x4272d8,_0x2c5a33),_0x173ede=_0xb05a4d[_0xb05a4d['length']-0x1],_0x46ff45=new Map(),_0x3e06a0={'model':{},'attributes':{},'changes':[]},_0x4d9d53=new Set(),_0x3e3c03=new Map();for(let _0x56df25=_0xb05a4d['length']-0x1;_0x56df25>=0x0;_0x56df25--){const _0x45280b=_0xb05a4d[_0x56df25];for(const _0x189db2 of Object['keys'](_0x45280b['diffData']))if(_0x45280b['diffData'][_0x189db2]['attachChange']){const _0x247988=_0x45280b['diffData'][_0x189db2]['attachChange'];_0x247988['isAttached']?(_0x4d9d53['add'](_0x189db2),_0x3e3c03['has'](_0x189db2)&&_0x3e3c03['get'](_0x189db2)['userId']==_0x247988['userId']?_0x3e3c03['delete'](_0x189db2):_0x3e3c03['set'](_0x189db2,_0x247988)):_0x3e3c03['has'](_0x189db2)?(_0x4d9d53['delete'](_0x189db2),_0x3e3c03['delete'](_0x189db2)):(_0x4d9d53['add'](_0x189db2),_0x3e3c03['set'](_0x189db2,_0x247988));}else _0x4d9d53['add'](_0x189db2);}for(const _0x27f87f of _0x4d9d53){const _0x54f5d6=_0x3e3c03['has'](_0x27f87f)&&!_0x3e3c03['get'](_0x27f87f)['isAttached'];let _0x2c735a=_0x54f5d6?_0xb05a4d['length']-0x1:0x0;const _0x37ee92=_0x54f5d6?-0x1:0x1;for(;_0xb05a4d[_0x2c735a];){const _0x5f5d0e=_0xb05a4d[_0x2c735a];if(_0x5f5d0e['diffData'][_0x27f87f]){const _0x342107=_0x54f5d6?_0x5f5d0e['diffData'][_0x27f87f]['attributesBefore']:_0x5f5d0e['diffData'][_0x27f87f]['attributesAfter'];_0x3e06a0['attributes'][_0x27f87f]=_0x342107?_0x34117b(_0x342107):{};break;}_0x2c735a+=_0x37ee92;}}for(const _0x3a4b14 of _0xb05a4d){_0x3a4b14['model']={};for(const _0x182dba of _0x3a4b14['authors'])_0x46ff45['set'](_0x182dba['id'],_0x182dba);for(const _0xb6c76e of _0x4d9d53){const _0x41be62=_0x3a4b14['diffData'][_0xb6c76e]?_0x3a4b14['diffData'][_0xb6c76e]['insertions']:'[]',_0x11794a=_0x3a4b14['diffData'][_0xb6c76e]?_0x3a4b14['diffData'][_0xb6c76e]['deletions']:'[]';_0x3a4b14['model'][_0xb6c76e]={'insertions':this['_utils']['_makeModelFromViewString'](_0x41be62),'deletions':this['_utils']['_makeModelFromViewString'](_0x11794a)};}}for(const _0x44c946 of _0x4d9d53){let _0x28512b=null,_0x1adb53=0x0;const _0x444669=new Map(Array['from'](_0x4272d8['model'][_0x44c946]['insertions']['markers'])['filter'](([_0x361291])=>!_0x361291['startsWith']('revision:')));let _0x55d2fb=0x0;for(const _0x10a2f4 of _0xb05a4d){const _0x5d6c90=this['_makeTape'](_0x10a2f4['model'][_0x44c946]['insertions']);_0x10a2f4==_0x4272d8?(_0x28512b=_0x5d6c90,_0x1adb53=_0x28512b['length'],_0x28512b['forEach'](_0x5da872=>{_0x5da872['id']=_0x55d2fb++;}),this['_processTape'](_0x28512b)):this['_markInsertions'](_0x28512b,_0x5d6c90);const _0x59c1ba=_0x28512b['filter'](_0x12fed1=>!_0x12fed1['isAdded'])['map'](_0x3415b6=>_0x3415b6['id']);let _0x20c1b5=0x0;const _0x29e273=this['_makeTape'](_0x10a2f4['model'][_0x44c946]['deletions']);_0x29e273['forEach'](_0x3dd2cc=>{_0x3dd2cc['isRemoved']?_0x3dd2cc['id']=_0x1adb53++:_0x3dd2cc['id']=_0x59c1ba[_0x20c1b5++];}),this['_processTape'](_0x29e273),this['_setDistance'](_0x28512b,'isAdded'),this['_setDistance'](_0x29e273,'isRemoved'),_0x10a2f4==_0x4272d8&&this['_markMarkers'](_0x28512b,_0x444669),_0x28512b=this['_joinTapes'](_0x28512b,_0x29e273),this['_refreshStartEndIndex'](_0x28512b),this['_setDistance'](_0x28512b,'isRemoved');}_0x28512b=_0x28512b['filter'](_0x20c866=>!(_0x20c866['isAdded']&&_0x20c866['isRemoved']));const _0x539559=new Map(_0x173ede['model'][_0x44c946]['deletions']['markers']),_0x125b00=new Set(_0x444669['keys']());for(const _0x38d076 of _0x539559['keys']())_0x125b00['delete'](_0x38d076);this['_markSuggestions'](_0x28512b,_0x125b00),this['_fixObsoleteTags'](_0x28512b),_0x28512b=this['_removeMissingPairs'](_0x28512b),_0x28512b=this['_markMismatchedRemovedTags'](_0x28512b),_0x28512b=this['_removeUnsupportedChanges'](_0x28512b);const {root:_0x4e301c,changes:_0x331551}=this['_makeModelFromTape'](_0x28512b,_0x46ff45,_0x44c946);_0x3e06a0['model'][_0x44c946]=_0x4e301c;const _0x50f09c=_0x3e3c03['get'](_0x44c946);if(_0x50f09c){const _0xd297f6=_0x46ff45['get'](_0x50f09c['userId']),_0x204ba7=new r({'author':_0xd297f6,'type':_0x50f09c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x44c946});_0x331551['unshift'](_0x204ba7),_0x3e06a0['attributes'][_0x44c946]['revisionHistoryAttachChange']=_0x204ba7['id'];}_0x3e06a0['changes']=_0x3e06a0['changes']['concat'](_0x331551);}return _0x3e06a0;}['_markMarkers'](_0x14cce1,_0xee96eb){for(let _0x3208e0=0x0;_0x3208e0<_0x14cce1['length'];_0x3208e0++)for(const [_0x48ce0e,_0x144148]of _0xee96eb)!_0x144148['isCollapsed']&&_0x144148['start']['isEqual'](_0x14cce1[_0x3208e0]['previousPosition'])&&_0x14cce1[_0x3208e0]['markersStart']['push'](_0x48ce0e),_0x144148['end']['isEqual'](_0x14cce1[_0x3208e0]['nextPosition'])&&_0x14cce1[_0x3208e0]['markersEnd']['push'](_0x48ce0e);}['_joinTapes'](_0x1fc483,_0x35f758){let _0x22751d=[],_0x4271dc=0x0,_0x220e8e=0x0;for(;_0x4271dc<_0x1fc483['length']||_0x220e8e<_0x35f758['length'];){const _0x58385c=_0x1fc483[_0x4271dc]||{},_0x1cff65=_0x35f758[_0x220e8e]||{};if(_0x58385c['id']==_0x1cff65['id'])_0x4271dc++,_0x220e8e++,_0x22751d['push'](_0x58385c);else{if(_0x1cff65['isRemoved']&&_0x58385c['isAdded']){const {commonTape:_0x5b825f,iEnd:_0x521adf,jEnd:_0x168cf1}=this['_threeWayMerge'](_0x1fc483,_0x4271dc,_0x35f758,_0x220e8e);_0x22751d=_0x22751d['concat'](_0x5b825f),_0x4271dc=_0x521adf,_0x220e8e=_0x168cf1;}else _0x1cff65['isRemoved']?(_0x220e8e++,_0x22751d['push'](_0x1cff65)):(_0x4271dc++,_0x22751d['push'](_0x58385c));}}return _0x22751d;}['_markSuggestions'](_0x39e34b,_0x1fa184){const _0x45ffba=[];for(let _0x49a7d5=0x0;_0x49a7d5<_0x39e34b['length'];_0x49a7d5++){for(let _0x958a88=0x0;_0x958a88<_0x39e34b[_0x49a7d5]['markersStart']['length'];_0x958a88++){const _0x3fca67=_0x39e34b[_0x49a7d5]['markersStart'][_0x958a88];if(!_0x1fa184['has'](_0x3fca67))continue;const {group:_0x4c66f8,type:_0xb8d475,authorId:_0xd73a1d}=_0x36433e(_0x3fca67);'revision-suggestion'!=_0x4c66f8||'insertion'!=_0xb8d475&&'deletion'!=_0xb8d475||(_0x45ffba['unshift']({'type':_0xb8d475,'name':_0x3fca67,'userId':_0xd73a1d}),_0x39e34b[_0x49a7d5]['markersStart']['splice'](_0x958a88,0x1),_0x958a88--);}_0x1e0c0f(_0x39e34b[_0x49a7d5]);for(let _0x522925=0x0;_0x522925<_0x39e34b[_0x49a7d5]['markersEnd']['length'];_0x522925++){const _0x22f49b=_0x39e34b[_0x49a7d5]['markersEnd'][_0x522925];if(!_0x1fa184['has'](_0x22f49b))continue;const {group:_0x279355,type:_0x57f27c}=_0x36433e(_0x22f49b);if('revision-suggestion'!=_0x279355||'insertion'!=_0x57f27c&&'deletion'!=_0x57f27c)continue;_0x39e34b[_0x49a7d5]['markersEnd']['splice'](_0x522925,0x1),_0x522925--;const _0x10cbb0=_0x45ffba['findIndex'](_0x366bed=>_0x366bed['name']==_0x22f49b);_0x10cbb0>-0x1&&_0x45ffba['splice'](_0x10cbb0,0x1);}}function _0x36433e(_0x141386){const _0x360fbf=_0x141386['split'](':');return{'group':_0x360fbf[0x0],'type':_0x360fbf[0x1],'subType':_0x360fbf['length']>=0x5?_0x360fbf[0x2]:null,'id':_0x360fbf['length']<0x5?_0x360fbf[0x2]:_0x360fbf[0x3],'authorId':_0x360fbf['length']<0x5?_0x360fbf[0x3]:_0x360fbf[0x4],'markerCount':0x6==_0x360fbf['length']?_0x360fbf[0x5]:null};}function _0x1e0c0f(_0x3dc0cd){for(let _0x3ff8a0=0x0;_0x3ff8a0<_0x45ffba['length'];_0x3ff8a0++){if(_0x3dc0cd['isAdded']&&'insertion'==_0x45ffba[_0x3ff8a0]['type'])return _0x3dc0cd['isAddSuggestion']=_0x45ffba[_0x3ff8a0],void delete _0x3dc0cd['isAdded'];if(!_0x3dc0cd['isAdded']&&!_0x3dc0cd['isRemoved']&&'deletion'==_0x45ffba[_0x3ff8a0]['type'])return void(_0x3dc0cd['isRemoveSuggestion']=_0x45ffba[_0x3ff8a0]);}}}['_setDistance'](_0x485c95,_0x11fdae){let _0x3e5c47=0x0,_0x5eaeb3=!0x1;const _0x45bc84=new Map();for(const _0x1a5c91 of _0x485c95)_0x1a5c91[_0x11fdae]?_0x5eaeb3&&(_0x3e5c47++,_0x5eaeb3=!0x1):(_0x3e5c47++,_0x5eaeb3=!0x0),_0x45bc84['set'](_0x1a5c91['id'],_0x3e5c47);for(let _0x291641=0x0;_0x291641<_0x485c95['length'];_0x291641++){if('isRemoved'==_0x11fdae&&_0x485c95[_0x291641]['isAdded']||'isAdded'==_0x11fdae&&_0x485c95[_0x291641]['isRemoved'])continue;if('text'==_0x485c95[_0x291641]['type']){_0x485c95[_0x291641]['distance']=0x0;continue;}const _0x10b09b=_0x45bc84['get'](_0x485c95[_0x291641]['pairId']),_0x36ad8c=_0x45bc84['get'](_0x485c95[_0x291641]['id']);_0x485c95[_0x291641]['distance']=_0x10b09b-_0x36ad8c;}}['_getRevisionsRange'](_0x44fb7b,_0x49a00a,_0x1c17a5=!0x1){const _0x5e37d8=[];let _0x32e4c8=this['repository']['getIndex'](_0x44fb7b),_0x2a9605=this['repository']['getIndex'](_0x49a00a);for(-0x1==_0x2a9605&&(_0x2a9605=this['repository']['_revisions']['length'],_0x1c17a5=!0x1);_0x32e4c8<_0x2a9605;)_0x5e37d8['push'](this['repository']['getRevision'](_0x32e4c8)),_0x32e4c8++;return _0x1c17a5&&_0x5e37d8['push'](this['repository']['getRevision'](_0x32e4c8)),_0x5e37d8;}['_threeWayMerge'](_0x1f2a55,_0x194577,_0x1b1a74,_0x501d25){const _0x553d42=this['editor']['model']['schema'];let _0xfb5d45=_0x194577;for(;_0x1f2a55[_0xfb5d45]&&_0x1f2a55[_0xfb5d45]['isAdded'];)_0xfb5d45++;let _0x519e2f=_0x501d25;for(;_0x1b1a74[_0x519e2f]&&_0x1b1a74[_0x519e2f]['isRemoved'];)_0x519e2f++;_0x5dcd7e(_0x1f2a55,_0x194577,_0xfb5d45),_0x5dcd7e(_0x1b1a74,_0x501d25,_0x519e2f);const _0x106168=_0x1b1a74['slice'](_0x501d25,_0x519e2f)['concat'](_0x1f2a55['slice'](_0x194577,_0xfb5d45));return _0x106168['sort']((_0x5ae468,_0x2d33d5)=>_0x5ae468['side']!=_0x2d33d5['side']?_0x5ae468['side']-_0x2d33d5['side']:_0x5ae468['level']!=_0x2d33d5['level']?_0x5ae468['level']-_0x2d33d5['level']:_0x5ae468['distance']!=_0x2d33d5['distance']?_0x2d33d5['distance']-_0x5ae468['distance']:!!_0x5ae468['isAdded']!=!!_0x2d33d5['isAdded']?-0x1==_0x5ae468['side']||0x0==_0x5ae468['side']?_0x5ae468['isAdded']?-0x1:0x1:_0x5ae468['isAdded']?0x1:-0x1:_0x5ae468['index']-_0x2d33d5['index']),{'commonTape':_0x106168,'iEnd':_0xfb5d45,'jEnd':_0x519e2f};function _0x5dcd7e(_0x260c73,_0x3bf9f0,_0x3cec4b){let _0x247a68=-0x1,_0x23134e=Number['POSITIVE_INFINITY'],_0x3e55fb=!0x0;for(let _0x2018b0=_0x3bf9f0;_0x2018b0<_0x3cec4b;_0x2018b0++)if(_0x553d42['isInline'](_0x260c73[_0x2018b0]['item'])||(_0x3e55fb=!0x1),_0x260c73[_0x2018b0]['item']['startIndex']<_0x3bf9f0&&(_0x247a68=_0x2018b0),_0x260c73[_0x2018b0]['item']['endIndex']>=_0x3cec4b){_0x23134e=_0x2018b0;break;}_0x3e55fb&&(_0x247a68=_0x3cec4b-0x1);for(let _0x322f50=_0x3bf9f0;_0x322f50<_0x3cec4b;_0x322f50++)_0x260c73[_0x322f50]['side']=_0x322f50<=_0x247a68?-0x1:_0x322f50<_0x23134e?0x0:0x1,_0x260c73[_0x322f50]['index']=_0x322f50;let _0x5f4399=0x0;for(let _0xb24f4f=_0x3bf9f0;_0xb24f4f<=_0x247a68;_0xb24f4f++)0x0==_0x260c73[_0xb24f4f]['distance']?_0x260c73[_0xb24f4f]['level']=_0x5f4399:(_0x5f4399++,_0x260c73[_0xb24f4f]['level']=_0x5f4399,_0x5f4399++);for(let _0x2752ff=_0x3bf9f0;_0x2752ff<_0x3cec4b;_0x2752ff++)0x0==_0x260c73[_0x2752ff]['side']&&(_0x260c73[_0x2752ff]['level']=_0x5f4399);_0x5f4399=0x0;for(let _0x448e62=_0x3cec4b-0x1;_0x448e62>=_0x23134e;_0x448e62--)0x0==_0x260c73[_0x448e62]['distance']?_0x260c73[_0x448e62]['level']=_0x5f4399:(_0x5f4399--,_0x260c73[_0x448e62]['level']=_0x5f4399,_0x5f4399--);}}['_fixObsoleteTags'](_0x485a06){const _0xe9c5b2=new Map(),_0x9a6cec=this['editor']['model']['schema'];for(let _0x222bbf=0x1;_0x222bbf<_0x485a06['length'];_0x222bbf++){let _0x51ebc1,_0x1ff54d,_0x34e0b3;const _0x3fe591=_0x485a06[_0x222bbf],_0x41b86d=_0x485a06[_0x222bbf-0x1];if('text'==_0x3fe591['type'])continue;if(_0x3fe591['type']!=_0x41b86d['type'])continue;if(!_0x9a6cec['isBlock'](_0x41b86d['item'])||_0x9a6cec['isLimit'](_0x41b86d['item']))continue;if(!_0x9a6cec['isBlock'](_0x3fe591['item'])||_0x9a6cec['isLimit'](_0x3fe591['item']))continue;if((_0x485a06[_0x222bbf]['isAdded']||_0x485a06[_0x222bbf]['isAddSuggestion'])&&_0x485a06[_0x222bbf-0x1]['isRemoved'])_0x51ebc1=_0x485a06[_0x222bbf],_0x1ff54d=_0x485a06[_0x222bbf-0x1],_0x34e0b3=_0x222bbf-0x1;else{if(!_0x485a06[_0x222bbf]['isRemoved']||!_0x485a06[_0x222bbf-0x1]['isAdded']&&!_0x485a06[_0x222bbf-0x1]['isAddSuggestion'])continue;_0x51ebc1=_0x485a06[_0x222bbf-0x1],_0x1ff54d=_0x485a06[_0x222bbf],_0x34e0b3=_0x222bbf;}const _0x48e0c1=_0x51ebc1['level']==_0x1ff54d['level'],_0x212db1=Math['abs'](_0x51ebc1['level'])<Math['abs'](_0x1ff54d['level'])&&0x0==_0x1ff54d['distance'];(_0x48e0c1||_0x212db1)&&(_0xe9c5b2['set'](_0x1ff54d['id'],_0x51ebc1['id']),_0x485a06['splice'](_0x34e0b3,0x1),_0x222bbf--,_0x51ebc1['isAdded']=!0x1);}for(let _0x27fb66=0x0;_0x27fb66<_0x485a06['length'];_0x27fb66++)_0xe9c5b2['has'](_0x485a06[_0x27fb66]['pairId'])&&(_0x485a06[_0x27fb66]['pairId']=_0xe9c5b2['get'](_0x485a06[_0x27fb66]['pairId']));}['_removeMissingPairs'](_0x7a51e4){const _0x1a6764=new Set(_0x7a51e4['map'](_0x4293a0=>_0x4293a0['id']));for(let _0x496a3b=0x0;_0x496a3b<_0x7a51e4['length'];_0x496a3b++)_0x1a6764['has'](_0x7a51e4[_0x496a3b]['pairId'])||0x0==_0x7a51e4[_0x496a3b]['distance']||(_0x7a51e4[_0x496a3b]['isIncorrect']=!0x0);return _0x7a51e4['filter'](_0x5cfa3f=>!_0x5cfa3f['isIncorrect']);}['_markMismatchedRemovedTags'](_0x21ccda){const _0xe23c64=new Set();for(let _0xad812d=0x0;_0xad812d<_0x21ccda['length'];_0xad812d++){if(_0xe23c64['has'](_0x21ccda[_0xad812d]['id'])&&_0x21ccda[_0xad812d]['isRemoved']&&(_0x21ccda[_0xad812d]['isIncorrect']=!0x0),_0x21ccda[_0xad812d]['isIncorrect'])continue;if(0x0==_0x21ccda[_0xad812d]['distance'])continue;if('elementStart'!=_0x21ccda[_0xad812d]['type'])continue;if(null==_0x21ccda[_0xad812d]['pairId'])continue;let _0x2e0276=_0xad812d+0x1,_0x419c6d=0x0;for(;_0x21ccda[_0x2e0276]['id']!=_0x21ccda[_0xad812d]['pairId'];)'elementStart'==_0x21ccda[_0x2e0276]['type']?_0x419c6d++:'elementEnd'==_0x21ccda[_0x2e0276]['type']&&_0x419c6d--,_0x2e0276++;if(0x0!=_0x419c6d){if(_0x21ccda[_0xad812d]['isRemoved'])_0x21ccda[_0xad812d]['isIncorrect']=!0x0;else{for(;_0x2e0276!=_0xad812d;)_0x21ccda[_0x2e0276]['isRemoved']&&0x0!=_0x21ccda[_0x2e0276]['distance']&&(_0x21ccda[_0x2e0276]['isIncorrect']=!0x0,_0xe23c64['add'](_0x21ccda[_0x2e0276]['pairId'])),_0x2e0276--;}}}return _0x21ccda['filter'](_0x3ad9aa=>!_0x3ad9aa['isIncorrect']);}['_removeUnsupportedChanges'](_0x48ebfb){const _0x341975=this['editor']['model']['schema'];for(let _0x4f3f53=0x0;_0x4f3f53<_0x48ebfb['length'];_0x4f3f53++){if(!(_0x48ebfb[_0x4f3f53]['isAdded']||_0x48ebfb[_0x4f3f53]['isAddSuggestion']||_0x48ebfb[_0x4f3f53]['isRemoved']||_0x48ebfb[_0x4f3f53]['isRemoveSuggestion']))continue;if(0x0==_0x48ebfb[_0x4f3f53]['distance'])continue;const _0x41fe03=_0x48ebfb[_0x4f3f53]['item'];_0x341975['isBlock'](_0x41fe03)||_0x341975['isLimit'](_0x41fe03)||(_0x48ebfb[_0x4f3f53]['isAdded']&&delete _0x48ebfb[_0x4f3f53]['isAdded'],_0x48ebfb[_0x4f3f53]['isAddSuggestion']&&delete _0x48ebfb[_0x4f3f53]['isAddSuggestion'],_0x48ebfb[_0x4f3f53]['isRemoveSuggestion']&&delete _0x48ebfb[_0x4f3f53]['isRemoveSuggestion'],_0x48ebfb[_0x4f3f53]['isRemoved']&&(_0x48ebfb[_0x4f3f53]['isIncorrect']=!0x0));}return _0x48ebfb['filter'](_0x5ec7b2=>!_0x5ec7b2['isIncorrect']);}['_makeModelFromTape'](_0x1b73ef,_0x1f6eca,_0x55f205){const _0x4473a6=new gt(),_0x5db57a=[],_0x1abafb=new Map(),_0x44223c=this['editor']['model'],_0x5ad7ef=_0x44223c['schema'],_0x1d69d3=[_0x4473a6],_0xda1a8d={},_0x56d0bf={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3fd463=null;const _0x366e23=[0x0];for(let _0x137086=0x0;_0x137086<_0x1b73ef['length'];_0x137086++)if('elementStart'===_0x1b73ef[_0x137086]['type']){_0x1b73ef[_0x137086]['previousPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23);const _0x34ed75=new ut(_0x1b73ef[_0x137086]['item']['name'],_0x1b73ef[_0x137086]['item']['getAttributes']());_0x1d69d3[0x0]['_appendChild'](_0x34ed75),_0x366e23['push'](0x0),_0x1d69d3['unshift'](_0x34ed75),_0x1b73ef[_0x137086]['nextPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23);}else'elementEnd'===_0x1b73ef[_0x137086]['type']?(_0x1d69d3['shift'](),_0x1b73ef[_0x137086]['previousPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23),_0x366e23['pop'](),_0x366e23[_0x366e23['length']-0x1]++,_0x1b73ef[_0x137086]['nextPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23)):(_0x1b73ef[_0x137086]['previousPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23),_0x3fd463?_0x3fd463['_data']+=_0x1b73ef[_0x137086]['item']['data']:_0x3fd463=new mt(_0x1b73ef[_0x137086]['item']['data'],_0x1b73ef[_0x137086]['item']['getAttributes']()),_0x1b73ef[_0x137086+0x1]&&'text'===_0x1b73ef[_0x137086+0x1]['type']&&_0x1f6e9f(_0x3fd463,_0x1b73ef[_0x137086+0x1]['item'])||(_0x1d69d3[0x0]['_appendChild'](_0x3fd463),_0x3fd463=null),_0x366e23[_0x366e23['length']-0x1]+=_0x1b73ef[_0x137086]['item']['offsetSize'],_0x1b73ef[_0x137086]['nextPosition']=_0x44223c['createPositionFromPath'](_0x4473a6,_0x366e23));for(let _0x1b60f4=0x0;_0x1b60f4<_0x1b73ef['length'];_0x1b60f4++){const _0x343873=_0x1b73ef[_0x1b60f4]['previousPosition'],_0x45b496=_0x1b73ef[_0x1b60f4]['nextPosition'];for(const _0x3777d3 of _0x1b73ef[_0x1b60f4]['markersStart'])_0x1abafb['set'](_0x3777d3,{'start':_0x343873,'end':null});_0x1362c0('isRemoveSuggestion',_0x1b60f4,_0x343873,_0x45b496),_0x1362c0('isAddSuggestion',_0x1b60f4,_0x343873,_0x45b496),_0x1362c0('isRemoved',_0x1b60f4,_0x343873,_0x45b496),_0x1362c0('isAdded',_0x1b60f4,_0x343873,_0x45b496);for(const _0xe7118c of _0x1b73ef[_0x1b60f4]['markersEnd']){const _0xd4aace=_0x1abafb['get'](_0xe7118c);_0xd4aace?_0xd4aace['end']=_0x45b496:_0x1abafb['set'](_0xe7118c,{'start':_0x45b496,'end':_0x45b496});}}for(const [_0xa6fa7f,_0x562876]of _0x1abafb){const _0x42ea23=this['editor']['model']['createRange'](_0x562876['start'],_0x562876['end']);_0x4473a6['markers']['set'](_0xa6fa7f,_0x42ea23);}return _0x5db57a['sort']((_0x347343,_0x59eb82)=>{const _0x40ebda=_0x4473a6['markers']['get']('revision:'+_0x347343['id']),_0x1b19e8=_0x4473a6['markers']['get']('revision:'+_0x59eb82['id']);return _0x40ebda['start']['isBefore'](_0x1b19e8['start'])?-0x1:_0x40ebda['start']['isAfter'](_0x1b19e8['start'])?0x1:_0x40ebda['end']['isBefore'](_0x1b19e8['end'])?-0x1:_0x40ebda['end']['isAfter'](_0x1b19e8['end'])?0x1:'add'===_0x347343['type']?-0x1:0x1;}),{'root':_0x4473a6,'changes':_0x5db57a};function _0x1362c0(_0x300ecc,_0x44cddf,_0x5336b6,_0x4e174a){const _0x22b1bc=!!_0x1b73ef[_0x44cddf][_0x300ecc],_0x18c14d=_0x22b1bc?_0x1b73ef[_0x44cddf][_0x300ecc]['userId']:null,_0x295eb4=_0x44cddf===_0x1b73ef['length']-0x1,_0xdf25ca=_0x56d0bf[_0x300ecc][0x0],_0x1bf292=_0x5ad7ef['isObject'](_0x1b73ef[_0x44cddf]['item']);!_0xda1a8d[_0x300ecc]&&_0x22b1bc?_0xda1a8d[_0x300ecc]={'start':_0x5336b6,'tapeItem':_0x1b73ef[_0x44cddf],'userId':_0x18c14d,'type':_0x300ecc}:_0xda1a8d[_0x300ecc]&&!_0x22b1bc?(_0xda1a8d[_0x300ecc]['end']=_0x5336b6,_0x3e5594(_0xda1a8d[_0x300ecc]),_0xda1a8d[_0x300ecc]=null):_0xda1a8d[_0x300ecc]&&_0x22b1bc&&_0xda1a8d[_0x300ecc]['userId']!==_0x18c14d&&(_0xda1a8d[_0x300ecc]['end']=_0x5336b6,_0xdf25ca&&_0xdf25ca['userId']===_0xda1a8d[_0x300ecc]['userId']||_0x3e5594(_0xda1a8d[_0x300ecc]),_0xda1a8d[_0x300ecc]={'start':_0x5336b6,'tapeItem':_0x1b73ef[_0x44cddf],'userId':_0x18c14d,'type':_0x300ecc}),_0xda1a8d[_0x300ecc]&&_0x1bf292&&('elementStart'!==_0x1b73ef[_0x44cddf]['type']||_0xdf25ca&&_0xdf25ca['userId']===_0x18c14d||_0x56d0bf[_0x300ecc]['unshift']({'userId':_0x18c14d,'object':_0x1b73ef[_0x44cddf]['item'],'change':_0xda1a8d[_0x300ecc]}),'elementEnd'===_0x1b73ef[_0x44cddf]['type']&&_0xdf25ca&&_0xdf25ca['object']===_0x1b73ef[_0x44cddf]['item']&&(_0x56d0bf[_0x300ecc]['shift'](),_0xda1a8d[_0x300ecc]=_0xdf25ca['change'])),_0xda1a8d[_0x300ecc]&&_0x295eb4&&(_0xda1a8d[_0x300ecc]['end']=_0x4e174a,_0x3e5594(_0xda1a8d[_0x300ecc]),_0xda1a8d[_0x300ecc]=null);}function _0x3e5594({start:_0x3af7a4,end:_0x233481,tapeItem:_0x54804c,userId:_0x5ebb59,type:_0x2b80b8}){const _0x88e716=_0x54804c['item'],_0x173ae9=_0x44223c['schema']['isBlock'](_0x88e716)&&!_0x44223c['schema']['isLimit'](_0x88e716),_0x2a5dad=_0x3af7a4['nodeAfter']==_0x233481['parent']&&_0x233481['isAtStart'];if(_0x173ae9&&_0x2a5dad)return;const _0x1723f1=_0x44223c['createRange'](_0x3af7a4,_0x233481),_0x1db7ff=_0x1f6eca['get'](_0x5ebb59),_0x11d6ec=new r({'author':_0x1db7ff,'type':'isAdded'==_0x2b80b8||'isAddSuggestion'==_0x2b80b8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2b80b8||'isRemoveSuggestion'==_0x2b80b8},'createdAt':new Date(),'rootName':_0x55f205});_0x5db57a['push'](_0x11d6ec),_0x4473a6['markers']['set']('revision:'+_0x11d6ec['id'],_0x1723f1);}function _0x1f6e9f(_0x11541c,_0x11e4cb){const _0xd746ed=_0x11541c['getAttributes'](),_0x59b53a=_0x11e4cb['getAttributes']();for(const _0x57638d of _0xd746ed){if(_0x57638d[0x1]!==_0x11e4cb['getAttribute'](_0x57638d[0x0]))return!0x1;_0x59b53a['next']();}return _0x59b53a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x784bec=>{const _0x5b557e=_0x784bec['markerName']['split'](':')[0x1],_0x5ba873=this['_getChangeFromId'](_0x5b557e);if(!_0x5ba873)return null;const _0x2adff0='add'==_0x5ba873['type']?'insertion':'deletion',_0x4c3b04=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2adff0];return _0x5ba873['data']['isSuggestion']&&_0x4c3b04['push']('ck-suggestion-marker-'+_0x2adff0+'-new'),this['activeChange']==_0x5ba873&&_0x4c3b04['push']('ck-suggestion-marker--active'),{'classes':_0x4c3b04,'attributes':{'data-change-id':_0x5b557e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xce483b=>{_0xce483b['on']('element:pre',(_0x3bd0f7,_0x58cad3,_0x145d49)=>{const _0x1db798=_0x58cad3['viewItem']['getChild'](0x0);if(!_0x1db798||!_0x1db798['is']('element','code'))return;if(!_0x145d49['consumable']['consume'](_0x1db798,{'attributes':['vid_start','vid_end']}))return;const _0x20fb1e=_0x58cad3['modelRange']['start']['nodeAfter'];_0x145d49['writer']['setAttribute']('vid_start',_0x1db798['getAttribute']('vid_start'),_0x20fb1e),_0x145d49['writer']['setAttribute']('vid_end',_0x1db798['getAttribute']('vid_end'),_0x20fb1e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1fbee9=>{_0x1fbee9['on']('element',(_0x51c04d,_0x44e196,_0x28116b)=>{if(!_0x28116b['consumable']['consume'](_0x44e196['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x44e196['modelRange']['isCollapsed'])return;const _0x2cbb4b=_0x44e196['modelRange']['start']['nodeAfter'];_0x2cbb4b['hasAttribute']('vid_start')||_0x2cbb4b['hasAttribute']('vid')||(_0x28116b['writer']['setAttribute']('vid_start',_0x44e196['viewItem']['getAttribute']('vid_start'),_0x2cbb4b),_0x28116b['writer']['setAttribute']('vid_end',_0x44e196['viewItem']['getAttribute']('vid_end'),_0x2cbb4b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x11dbb8=>_0x11dbb8['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2734f4,[,_0x129f24])=>{['vid_start','vid_end','vid']['includes'](_0x129f24)&&(_0x2734f4['return']=!0x0,_0x2734f4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5e0df6=>{_0x5e0df6['on']('attribute:vid',(_0x333a6f,_0x52560d,_0x450cf0)=>{if('\x20'!=_0x52560d['item']['data']||_0x52560d['item']['parent']['maxOffset']>0x1)return;if(!_0x450cf0['consumable']['consume'](_0x52560d['item'],_0x333a6f['name']))return;const _0x49f4df=_0x450cf0['writer'],_0x32a444=_0x450cf0['mapper']['toViewRange'](_0x52560d['range']);_0x49f4df['wrap'](_0x32a444,_0x49f4df['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3d5392){const _0x425a48=_0x3d5392['plugins']['get']('RevisionViewer');return(_0x5baaf1,_0x3980b4,_0x1b63f7)=>{const _0x6aa490=_0x3980b4['markerName']['split'](':')[0x1],_0x514f0a=_0x425a48['_getChangeFromId'](_0x6aa490);if(!_0x514f0a)return null;const _0x2c3fa2='add'==_0x514f0a['type']?'split':'merge';if(!_0x1b63f7['consumable']['test'](_0x3980b4['markerRange'],_0x5baaf1['name']))return;const _0x23bed4=_0x3980b4['markerRange']['getWalker'](),_0xd0b109=_0x3980b4['markerRange']['start'],_0x21e54d=_0x3d5392['model']['schema'];let _0x5ecf30=null,_0x2bde89=null,_0x436302=!0x1,_0x1cb9c2=!0x1;for(const _0x3d7ea3 of _0x23bed4){const _0x558df5=_0x3d7ea3['item'];_0x436302=_0x436302||_0x21e54d['isContent'](_0x558df5);const _0x173ef3=_0x1b63f7['mapper']['toViewElement'](_0x558df5);if(_0x173ef3&&_0x173ef3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d7ea3['type']&&(_0x21e54d['isBlock'](_0x558df5)&&!_0x21e54d['isLimit'](_0x558df5)&&(_0x558df5['nextSibling']||_0xd0b109['isAtEnd']?_0x5ecf30&&_0x5ecf30['parent']==_0x558df5||(_0x5ecf30=_0x558df5,_0x3a495f(_0x3d7ea3['previousPosition']),_0x1cb9c2=!0x0):_0x2bde89=_0x2bde89||_0x3d7ea3['previousPosition']));}function _0x3a495f(_0x379b15){const _0x51e1b6=_0x1b63f7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c3fa2}),_0x1b774a=_0x1b63f7['mapper']['toViewPosition'](_0x379b15);_0x514f0a['data']['isSuggestion']&&_0x1b63f7['writer']['addClass']('ck-suggestion-marker-'+_0x2c3fa2+'-new',_0x51e1b6),_0x425a48['activeChange']==_0x514f0a&&_0x1b63f7['writer']['addClass']('ck-suggestion-marker--active',_0x51e1b6),_0x1b63f7['writer']['insert'](_0x1b774a,_0x51e1b6),_0x1b63f7['mapper']['bindElementToMarker'](_0x51e1b6,_0x3980b4['markerName']);}_0x436302||_0x1cb9c2||!_0x2bde89||_0x3a495f(_0x2bde89);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1e06d8,_0x21d30e,_0x35e9be)=>{const _0x29f941=_0x35e9be['mapper']['markerNameToElements'](_0x21d30e['markerName']);if(_0x29f941){for(const _0x61c58a of _0x29f941)(_0x61c58a['hasClass']('ck-suggestion-marker-split')||_0x61c58a['hasClass']('ck-suggestion-marker-merge'))&&(_0x35e9be['mapper']['unbindElementFromMarkerName'](_0x61c58a,_0x21d30e['markerName']),_0x35e9be['writer']['remove'](_0x61c58a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3f3dda,_0x3063c6,_0x944dd6)=>{const _0x2769b=_0x3063c6['markerName']['split'](':')[0x1],_0x1e4331=this['_getChangeFromId'](_0x2769b);if(!_0x1e4331)return null;const _0x474551='add'==_0x1e4331['type']?'split':'merge';if(_0x944dd6['consumable']['test'](_0x3063c6['markerRange'],_0x3f3dda['name']))for(const _0xe1e4ce of _0x3063c6['markerRange']['getItems']()){if(!_0xe1e4ce['is']('element','softBreak'))continue;const _0x53964b=_0x944dd6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x474551}),_0x48e78d=_0x944dd6['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xe1e4ce));_0x1e4331['data']['isSuggestion']&&_0x944dd6['writer']['addClass']('ck-suggestion-marker-'+_0x474551+'-new',_0x53964b),this['activeChange']==_0x1e4331&&_0x944dd6['writer']['addClass']('ck-suggestion-marker--active',_0x53964b),_0x944dd6['writer']['insert'](_0x48e78d,_0x53964b),_0x944dd6['mapper']['bindElementToMarker'](_0x53964b,_0x3063c6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5cc2a8=>{for(const _0x156dae of this['editor']['model']['document']['getRootNames']()){const _0x27b504=this['editor']['model']['document']['getRoot'](_0x156dae),_0x2aa184=this['editor']['editing']['view']['document']['getRoot'](_0x156dae);if(_0x2aa184){const _0x15c58d=_0x27b504['getAttribute']('revisionHistoryAttachChange');if(_0x5cc2a8['removeAttribute']('data-change-id',_0x2aa184),_0x5cc2a8['removeClass']('ck-revision-history-root-add',_0x2aa184),_0x5cc2a8['removeClass']('ck-revision-history-root-remove',_0x2aa184),_0x5cc2a8['removeClass']('ck-revision-history-root--active',_0x2aa184),_0x15c58d){const _0x5872cb=this['_getChangeFromId'](_0x15c58d);if(!_0x5872cb)return null;_0x5cc2a8['setAttribute']('data-change-id',_0x15c58d,_0x2aa184),_0x5cc2a8['addClass']('ck-revision-history-root-'+_0x5872cb['type'],_0x2aa184),this['activeChange']==_0x5872cb&&_0x5cc2a8['addClass']('ck-revision-history-root--active',_0x2aa184);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x408aa2=>'revision-comment:'+_0x408aa2,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3543b7=>'revision-suggestion:'+_0x3543b7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x17b4d8=>({'name':'suggestion:'+_0x17b4d8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x116701=>{const _0x521d07=_0x116701['markerName']['split'](':')[0x1];return'insertion'!=_0x521d07&&'deletion'!=_0x521d07?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x521d07]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xfc1ae9,_0x2efcb4,_0x36be0f)=>{const _0x408c6d=_0x36be0f['mapper']['markerNameToElements'](_0x2efcb4['markerName']);if(_0x408c6d){for(const _0x52169d of _0x408c6d)_0x52169d['is']('uiElement')&&(_0x36be0f['mapper']['unbindElementFromMarkerName'](_0x52169d,_0x2efcb4['markerName']),_0x36be0f['writer']['remove'](_0x52169d));}},{'priority':'high'});}['_getChangeFromId'](_0x10aefc){return this['_changeIdToChange']['get'](_0x10aefc);}['_getViewForChange'](_0x5611bb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5611bb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x896429,_0x4f2f3f,_0x2306c3,_0x2c5313)=>{_0x2c5313&&this['_balloon']['remove'](_0x2c5313),_0x2306c3&&(this['_balloon']['add']({'view':_0x2306c3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2d6edc=this['editor']['editing'],_0x3b9310=this['_getChangeFromId'](_0x2306c3['changeId']);let _0x41e05a;if(_0x3b9310['data']['isOnRoot']){const _0x2b3e77=_0x2d6edc['view']['getDomRoot'](_0x3b9310['rootName']);_0x41e05a=Array['from'](_0x2b3e77['getClientRects']());}else{const _0x4d6387=this['editor']['model']['markers']['get']('revision:'+_0x2306c3['changeId']);_0x41e05a=Array['from'](_0x2d6edc['mapper']['markerNameToElements'](_0x4d6387['name']))['map'](_0x36ca7a=>_0x2d6edc['view']['domConverter']['mapViewToDom'](_0x36ca7a))['map'](_0x14e9b0=>Array['from'](_0x14e9b0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x41e05a[0x0];return _0x41e05a['find'](_0x4867f9=>_0x4867f9['top']-0x3<=this['_activeViewTarget']['y']&&_0x4867f9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4867f9['left']-0x3<=this['_activeViewTarget']['x']&&_0x4867f9['right']+0x3>=this['_activeViewTarget']['x'])||_0x41e05a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3d9a86,_0x4cd16b,_0x354df9,_0x51e83d)=>{this['activeView']=_0x354df9?this['_getViewForChange'](_0x354df9):null,this['editor']['model']['change'](()=>{const _0x128140=this['editor']['editing'];_0x51e83d&&(_0x51e83d['data']['isOnRoot']?_0x128140['view']['change'](_0x3b24af=>{_0x3b24af['removeClass']('ck-revision-history-root--active',_0x128140['view']['document']['getRoot'](_0x51e83d['rootName']));}):_0x128140['reconvertMarker']('revision:'+_0x51e83d['id'])),_0x354df9&&(_0x354df9['data']['isOnRoot']?_0x128140['view']['change'](_0x46721f=>{_0x46721f['addClass']('ck-revision-history-root--active',_0x128140['view']['document']['getRoot'](_0x354df9['rootName']));}):_0x128140['reconvertMarker']('revision:'+_0x354df9['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2f094b,_0x2b8cb8)=>{if(this['activeChange'])return;const _0x1162d0=this['_findChangeIdFromDomTarget'](_0x2b8cb8['target']),_0x47a26a=this['_changeIdToChange']['get'](_0x1162d0);_0x47a26a?(this['_activeViewTarget']={'x':_0x2b8cb8['domEvent']['x'],'y':_0x2b8cb8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x47a26a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1e6623,_0xc91bd2)=>{const _0xa0c5ac=this['_findChangeIdFromDomTarget'](_0xc91bd2['target']),_0x43ad40=this['_changeIdToChange']['get'](_0xa0c5ac);_0x43ad40?(this['_activeViewTarget']={'x':_0xc91bd2['domEvent']['x'],'y':_0xc91bd2['domEvent']['y']},_0x43ad40===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x43ad40):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3c6547){do{const _0x221e6e=_0x3c6547['getAttribute']('data-change-id');if(_0x221e6e)return _0x221e6e;_0x3c6547=_0x3c6547['parent'];}while(_0x3c6547);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x104998=>{for(const _0x446f65 of this['editor']['model']['markers'])_0x104998['removeMarker'](_0x446f65);});}}function X(_0x244486,_0x263e3b){return(_0x3c8547,_0x19e94c,_0x3352bb)=>{if(!_0x3352bb['consumable']['test'](_0x19e94c['markerRange'],_0x3c8547['name']))return;const _0x2f8c72=_0x19e94c['markerRange']['getWalker'](),_0x272c38=_0x19e94c['markerRange']['start'],_0x2d4daa=_0x244486['model']['schema'];let _0x2c39c6=null,_0x5cbc05=null,_0x22c3d7=!0x1,_0x226428=!0x1;for(const _0x5a02b5 of _0x2f8c72){const _0x543702=_0x5a02b5['item'];_0x22c3d7=_0x22c3d7||_0x2d4daa['isContent'](_0x543702);const _0x574261=_0x3352bb['mapper']['toViewElement'](_0x543702);if(_0x574261&&_0x574261['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a02b5['type']&&(_0x2d4daa['isBlock'](_0x543702)&&!_0x2d4daa['isLimit'](_0x543702)&&(_0x543702['nextSibling']||_0x272c38['isAtEnd']?_0x2c39c6&&_0x2c39c6['parent']==_0x543702||(_0x2c39c6=_0x543702,_0x3a8f4b(_0x5a02b5['previousPosition']),_0x226428=!0x0):_0x5cbc05=_0x5cbc05||_0x5a02b5['previousPosition']));}function _0x3a8f4b(_0x296174){const _0x520383=_0x3352bb['mapper']['toViewPosition'](_0x296174),_0x193a4f=_0x3352bb['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x263e3b});_0x3352bb['writer']['insert'](_0x520383,_0x193a4f),_0x3352bb['mapper']['bindElementToMarker'](_0x193a4f,_0x19e94c['markerName']);}_0x22c3d7||_0x226428||!_0x5cbc05||_0x3a8f4b(_0x5cbc05);};}class wt extends _0x122b53{constructor(_0x4c5a46){super(_0x4c5a46);const _0x4923d0=_0x4c5a46['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4923d0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4923d0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x247b9c=this['editor'],_0x2a5300=_0x247b9c['plugins']['get'](m),_0x5b2e4f=_0x2a5300['isReady']?_0x2a5300['diff']['newRevisionId']:null;_0x247b9c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b2e4f);}['refresh'](){const {isReady:_0x3cd745,isEnabled:_0x199066,repository:_0x2e7c67,diff:_0x5e8618}=this['editor']['plugins']['get'](m),_0x5d375e=_0x5e8618&&_0x2e7c67['getLaterVisibleRevision'](_0x5e8618['newRevisionId']);this['isEnabled']=_0x3cd745&&_0x199066&&Boolean(_0x5d375e);}}class pt extends _0x122b53{['_step'];constructor(_0x43285b,{direction:_0x17eba7}){super(_0x43285b);const _0x49c33c=_0x43285b['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x17eba7?0x1:-0x1,this['listenTo'](_0x49c33c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x49c33c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x49c33c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3e41f2=this['editor'],_0x5063af=_0x3e41f2['plugins']['get'](m),{isNavigationMode:_0x531b77,currentChangeNumber:_0x3ab870}=_0x5063af;let _0x763498;if(_0x5063af['activeChange']=_0x531b77?_0x5063af['diff']['changes']['get'](_0x3ab870+this['_step']):_0x5063af['diff']['changes']['first'],_0x5063af['activeChange']['data']['isOnRoot'])_0x763498=_0x3e41f2['editing']['view']['getDomRoot'](_0x5063af['activeChange']['rootName']);else{const _0x2ed5f2=_0x3e41f2['model']['markers']['get']('revision:'+_0x5063af['activeChange']['id']);_0x763498=_0x466b83(_0x3e41f2['editing'],_0x2ed5f2);}_0x595d08({'target':_0x763498,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4feca4,currentChangeNumber:_0x2f43ea,numberOfChanges:_0x56f3e,isReady:_0x5ca6ee,isEnabled:_0x241a89}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x241a89&&_0x5ca6ee&&_0x56f3e)&&(!_0x4feca4||(0x1===this['_step']?_0x2f43ea<_0x56f3e-0x1:_0x2f43ea>0x0));}}class _i extends _0x1528d9{constructor(_0x290d1e){super(_0x290d1e);const _0x3243b0=this['bindTemplate'],_0x1e5f8c=new _0x4a8ccc(_0x290d1e),_0x2357c0=new _0x4a8ccc(_0x290d1e);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',(_0x33bb9b,_0x4ecd8c)=>_0x33bb9b&&_0x4ecd8c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x13d65a,_0x2d2316,_0x470e41,_0x3123b7)=>{if(!_0x13d65a)return g(_0x290d1e,'Loading...');if(!_0x470e41)return g(_0x290d1e,'No\x20changes');const _0x275fd8=g(_0x290d1e,'NUMBER_OF_CHANGES',_0x470e41);return _0x3123b7?g(_0x290d1e,'X_OF_Y_CHANGES',[_0x2d2316+0x1,_0x470e41]):_0x275fd8;}),_0x1e5f8c['set']({'label':g(_0x290d1e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x37a656}),_0x2357c0['set']({'label':g(_0x290d1e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2d4d91}),_0x1e5f8c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2357c0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1e5f8c['on']('execute',()=>this['fire']('execute','backward')),_0x2357c0['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',_0x3243b0['if']('_isStatusLabelVisible','ck-hidden',_0xa86a6c=>!_0xa86a6c)]},'children':[{'text':_0x3243b0['to']('isNavigationMode',_0x1ebae3=>_0x1ebae3?g(_0x290d1e,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x290d1e,'Total')+':\x20')}]},{'text':_0x3243b0['to']('_statusText')}]},new _0x18bc92(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1e5f8c,_0x2357c0]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x28ae17{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x43aa5a=this['editor']['editing']['view'];_0x43aa5a['change'](_0x25a891=>{for(const _0x3bed0f of _0x43aa5a['document']['roots'])_0x25a891['addClass'](ce,_0x3bed0f);});}['hide'](){const _0x54fa41=this['editor']['editing']['view'];_0x54fa41['change'](_0x6e9ef7=>{for(const _0x5e4bdb of _0x54fa41['document']['roots'])_0x6e9ef7['removeClass'](ce,_0x5e4bdb);});}}class R extends _0x28ae17{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x39e310=this['editor'],_0x4f7317=_0x39e310['plugins']['get'](m),_0x12bdfe=_0x39e310['plugins']['get'](le);_0x39e310['ui']['componentFactory']['add']('exitToEditing',_0x1777f2=>{const _0x429922=new _0x4a8ccc(_0x1777f2);return _0x429922['set']({'label':g(_0x1777f2,'Back\x20to\x20editing'),'icon':_0x12b2e5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x429922,'execute',()=>{_0x39e310['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x429922;}),_0x39e310['ui']['componentFactory']['add']('restoreRevision',_0x1d7cf2=>{const _0xfa3faa=new _0x4a8ccc(_0x1d7cf2);return _0xfa3faa['set']({'label':g(_0x1d7cf2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xfa3faa['bind']('isEnabled')['to'](_0x39e310['commands']['get']('restoreRevision')),this['listenTo'](_0xfa3faa,'execute',()=>_0x39e310['execute']('restoreRevision')),_0xfa3faa;}),_0x39e310['ui']['componentFactory']['add']('changesNavigation',_0x55de0d=>{const _0x68814c=new _i(_0x55de0d),_0x5e4534=_0x39e310['commands']['get']('showPreviousChange'),_0x16f429=_0x39e310['commands']['get']('showNextChange');return _0x68814c['bind']('isBackwardNavigationEnabled')['to'](_0x5e4534,'isEnabled'),_0x68814c['bind']('isForwardNavigationEnabled')['to'](_0x16f429,'isEnabled'),_0x68814c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4f7317),this['listenTo'](_0x68814c,'execute',(_0x4d00f5,_0xb9ef51)=>{_0x39e310['execute']('forward'===_0xb9ef51?'showNextChange':'showPreviousChange');}),_0x68814c;}),_0x12bdfe['show'](),_0x4f7317['on']('change:isReady',(_0x1e6e9b,_0x1d2254,_0x465bfa)=>{_0x465bfa?_0x12bdfe['hide']():_0x12bdfe['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x5e7b43,_0x56a178){super(_0x5e7b43,_0x56a178);const _0x159382=this['bindTemplate'];this['set']({'label':g(_0x5e7b43,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5e7b43,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x159382['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 _0x3b230d=this['fieldView']['element'];this['_tooltipString']=_0x3b230d['scrollWidth']>_0x3b230d['clientWidth']&&_0x3b230d['value']||'';}}class oi extends _0x1528d9{constructor(_0x1b580e,_0x286b37,_0x484af5){super(_0x1b580e);const _0x274d88=new _0x2ca141();_0x274d88['set']({'content':_0x2c2cfd,'viewBox':'0\x200\x2011\x2010'});const _0x399853=['ck','ck-revision-history-sidebar__revision-author'];_0x484af5&&_0x399853['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5a0465=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x1b580e,_0x484af5?'Revision\x20creator':'Revision\x20author')},'children':[_0x274d88,_0x286b37['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x399853},'children':_0x5a0465});}}function ni(_0x5bab94,_0x2f025a){const _0x2bdf9b=_0x5bab94['bindTemplate'],_0x28766d=_0x5bab94['locale'],_0x35164d=_0x5be76e(_0x28766d);_0x35164d['panelPosition']='sw';const _0x4aec7f=function(_0x34b9aa,_0x5cb64e){const _0x103cfa=function(_0x5390d5,_0x253e02){const _0x3d8628=_0x5390d5['locale'],_0x5c5b7d={'Compare\x20against\x20selected':g(_0x3d8628,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3d8628,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3d8628,'Restore\x20this\x20revision')};return _0x253e02['map'](_0x289295=>{const _0x355d0c=_0x5c5b7d[_0x289295['name']];return _0x355d0c&&_0x355d0c!==_0x289295['name']&&(_0x289295['name']=_0x355d0c),_0x289295;});}(_0x34b9aa,_0x5cb64e),_0x13e0de=new _0x1190c4();for(const _0x3e743d of _0x103cfa){const _0x7d447={'type':'button','model':new to({'label':_0x3e743d['name'],'class':_0x3e743d['class'],'withText':!0x0,'role':'menuitem','_action':_0x3e743d['action']})};_0x7d447['model']['bind']('isEnabled')['to'](_0x34b9aa,'isActionsDropdownOpen',_0x2e23ec=>'function'!=typeof _0x3e743d['isEnabled']||(!_0x2e23ec||_0x3e743d['isEnabled'](_0x34b9aa))),_0x13e0de['add'](_0x7d447);}return _0x13e0de;}(_0x5bab94,_0x2f025a);return _0x5bab94['bind']('isActionsDropdownOpen')['to'](_0x35164d,'isOpen'),_0x35164d['buttonView']['set']({'label':g(_0x28766d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ef3c7}),_0x35164d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2bdf9b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2bdf9b['to'](_0x29a47d=>_0x29a47d['stopPropagation']())}}),_0x35164d['on']('execute',_0x5960ab=>{_0x5bab94['isReady']&&'function'==typeof _0x5960ab['source']['_action']&&_0x5960ab['source']['_action'](_0x5bab94);}),_0x171ffa(_0x35164d,_0x4aec7f,{'role':'menu'}),_0x35164d['listenTo'](_0x5bab94,'change:isActionsDropdownOpen',(_0x3bf86c,_0x310284,_0x2457d8)=>{if(_0x2457d8)for(const _0xeda6e7 of _0x35164d['listView']['items']){const _0x57d00b=_0xeda6e7['children']['first'],_0x27c041=_0x2f025a['find'](_0x260078=>_0x260078['action']===_0x57d00b['_action'])['isVisible'];_0xeda6e7['isVisible']=void 0x0===_0x27c041||_0x27c041(_0x5bab94);}}),_0x35164d;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x4b1b1f(_0x1528d9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4cfd94,_0x4cf086,_0x2823e2,_0x3dae26){super(_0x4cfd94);const _0x59432f=this['bindTemplate'],_0xda0518=function(_0x482058,_0x100845){const _0x31a12b=Array['from'](_0x100845['authors'])['filter'](_0x501541=>_0x501541!=_0x100845['creator']);return _0x100845['creator']&&_0x31a12b['unshift'](_0x100845['creator']),_0x31a12b['map'](_0x4621b1=>new oi(_0x482058,_0x4621b1,_0x4621b1==_0x100845['creator']));}(_0x4cfd94,_0x4cf086);this['id']=_0x4cf086['id'],this['_revision']=_0x4cf086,this['_requireRevisionName']=_0x3dae26,this['bind']('name','createdAt')['to'](_0x4cf086),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x33efbb=>{return _0x1f32ca=_0x4cfd94['uiLanguage'],(_0x553805=_0x33efbb)['toLocaleDateString'](_0x1f32ca,{'month':'long','day':'numeric'})+',\x20'+_0x553805['toLocaleTimeString'](_0x1f32ca,{'hour':'numeric','minute':'numeric'});var _0x1f32ca,_0x553805;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x4cfd94,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xb23614=>_0xb23614||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5c971c,_0x10931f)=>_0x5c971c&&_0x10931f),this['revisionActionsView']=_0x2823e2&&_0x2823e2['length']?ni(this,_0x2823e2):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x59432f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x59432f['if']('isEnabled','ck-disabled',_0x631799=>!_0x631799),_0x59432f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x59432f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x59432f['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':_0x59432f['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':_0xda0518}]},this['revisionActionsView']],'on':{'click':_0x59432f['to'](_0x159257=>{_0x159257['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x28eb4e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x28eb4e,'change',()=>{this['_requireRevisionName']&&!_0x28eb4e['value']||this['fire']('setName',{'id':this['id'],'name':_0x28eb4e['value']}),_0x28eb4e['value']||(_0x28eb4e['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x426cb8,_0x565cca){const _0x56c979=_0x9cadbd['fromJSDate'](_0x426cb8)['setLocale'](_0x565cca),_0x38fef6=_0x9cadbd['local'](),_0x1d75c2=_0x38fef6['minus']({'days':0x1})['startOf']('day');let _0xdb8e97,_0x1dca2b;return _0x56c979['hasSame'](_0x38fef6,'day')?(_0xdb8e97=_0x56c979['startOf']('day')['toJSDate'](),_0x1dca2b=_0x56c979['toRelativeCalendar']()):_0x56c979['hasSame'](_0x1d75c2,'day')?(_0xdb8e97=_0x1d75c2['toJSDate'](),_0x1dca2b=_0x56c979['toRelativeCalendar']()):_0x56c979['hasSame'](_0x38fef6,'week')?(_0xdb8e97=_0x56c979['startOf']('week')['toJSDate'](),_0x1dca2b=_0x56c979['weekdayLong']||''):_0x56c979['hasSame'](_0x38fef6,'year')?(_0xdb8e97=_0x56c979['startOf']('month')['toJSDate'](),_0x1dca2b=_0x56c979['monthLong']||''):(_0xdb8e97=_0x56c979['startOf']('year')['toJSDate'](),_0x1dca2b=String(_0x56c979['year'])),{'startDate':_0xdb8e97,'localizedPeriodName':_0x1dca2b};}class mi extends _0x1528d9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4734a2,_0x426c9f,_0x3e52eb,_0x3d1dc6){super(_0x4734a2);const _0x188c40=vi(_0x426c9f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x426c9f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3e52eb,this['_requireRevisionName']=_0x3d1dc6,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':_0x188c40}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x806666){const _0x23d561=new ai(this['locale'],_0x806666,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x23d561);}['removeRevision'](_0x2af6c3){const _0x2f34a2=this['revisionViews']['find'](_0x4c4631=>_0x4c4631['id']===_0x2af6c3['id']);this['revisionViews']['remove'](_0x2f34a2);}}class as extends _0x1528d9{constructor(_0x61425b){super(_0x61425b);const _0x550fe5=new _0x2ca141();_0x550fe5['content']=_0x4c4ff0,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x550fe5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x61425b,'Revision\x20history')]}]});}}class di extends _0x1528d9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58d06c,_0x5af161,_0x700adf,_0x4991cc){super(_0x58d06c);const _0xde9920=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5af161,this['_revisionActions']=_0x700adf,this['_requireRevisionName']=_0x4991cc,this['on']('select',(_0x51abaa,_0x477980)=>{this['fire']('revisionSelected',_0x477980);}),this['on']('setName',(_0x577581,_0x20cfe7)=>{this['fire']('revisionSetName',_0x20cfe7);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x58d06c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xde9920['if']('isEnabled','ck-disabled',_0x584c14=>!_0x584c14)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x185fd4 of this['_revisions'])this['_addRevision'](_0x185fd4);this['_revisions']['on']('add',(_0x2f472a,_0x2dbe78)=>{this['_addRevision'](_0x2dbe78);}),this['_revisions']['on']('remove',(_0xb3287,_0x49bfd9)=>{this['_removeRevision'](_0x49bfd9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x189492=>_0x189492['revisionViews']['map'](_0x509994=>_0x509994))['flat']();}['selectRevision'](_0x4f6f17){for(const _0x31c69c of this['revisionViews'])_0x4f6f17&&_0x4f6f17['id']===_0x31c69c['id']?_0x31c69c['select']():_0x31c69c['deselect']();}['highlightRevisions'](_0x388219){for(const _0x5ebcd8 of this['revisionViews'])_0x388219['some'](({id:_0x55c7d0})=>_0x55c7d0===_0x5ebcd8['id'])?_0x5ebcd8['highlight']():_0x5ebcd8['unhighlight']();}['_addRevision'](_0x44406b){const _0x39266a=vi(_0x44406b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xd27a54=this['timePeriodViews']['get'](0x0);_0xd27a54&&_0xd27a54['startDate']['getTime']()===_0x39266a['getTime']()||(_0xd27a54=new mi(this['locale'],_0x39266a,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xd27a54)),_0xd27a54['addRevision'](_0x44406b);}['_removeRevision'](_0x4e96c2){const _0x18d96d=vi(_0x4e96c2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x18d96d)['removeRevision'](_0x4e96c2);}['_getTimePeriodViewByStartDate'](_0x5a3cff){return this['timePeriodViews']['find'](_0x412826=>_0x412826['startDate']['getTime']()===_0x5a3cff['getTime']());}}class d extends _0x28ae17{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x1bee2c){super(_0x1bee2c),this['_revisionViewer']=_0x1bee2c['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5d769d=this['_revisionsRepository']['_revisions'],_0x2d9296=this['_createRevisionActions'](),_0x4ede9d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x5d769d,_0x2d9296,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',(_0x4a6d79,_0x344ffa)=>{_0x344ffa['revisionViews']['on']('add',(_0x18b3a8,_0x454f33)=>{_0x454f33['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)),_0x4ede9d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x386082=this['_revisionsRepository']['getRevision'](0x0);if(_0x386082){const _0x5f547e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x386082['id']);this['_revisionViewer']['compare'](_0x386082,_0x5f547e);}}['_handleRevisionSelected'](_0x2743fc,_0x3b24f3){const _0x301a88=this['_revisionsRepository']['getRevision'](_0x3b24f3['id']),_0x5010d0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x301a88['id']);this['_revisionViewer']['compare'](_0x301a88,_0x5010d0);}['_handleRevisionSetName'](_0x3a2b16,_0x38d4bc){this['_revisionsRepository']['getRevision'](_0x38d4bc['id'])['setName'](_0x38d4bc['name']);}['_handleDiffChange'](_0x555362,_0x59189b,_0x19776b){const _0x9b4c5a=this['_revisionsRepository']['getRevisionsInDiff'](_0x19776b);_0x9b4c5a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x9b4c5a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x9b4c5a[0x0]));}['_createRevisionActions'](){const _0x59ee38=this['editor'],_0x29809a=d['availableRevisionActions'],_0x162104=_0x59ee38['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x162104['length'])return _0x162104['map'](_0x53561b=>{const _0x2e975c='string'==typeof _0x53561b?Object['assign']({},_0x29809a[_0x53561b]):_0x53561b;return _0x2e975c['action']=_0x2e975c['action']['bind'](this,_0x59ee38),_0x2e975c['isVisible']&&(_0x2e975c['isVisible']=_0x2e975c['isVisible']['bind'](this,_0x59ee38)),_0x2e975c;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x229a8b},_0x531382)=>{const _0x30d479=_0x229a8b['get'](m),_0x1ee569=_0x30d479['repository'];let _0x36315a=_0x30d479['diff']['newRevisionId'],_0x3a8a3a=_0x531382['id'];_0x1ee569['getIndex'](_0x36315a)>_0x1ee569['getIndex'](_0x3a8a3a)&&([_0x36315a,_0x3a8a3a]=[_0x3a8a3a,_0x36315a]),_0x30d479['compare'](_0x36315a,_0x3a8a3a);},'isVisible':({plugins:_0x404bbc},_0xda30de)=>{const _0xd449f4=_0x404bbc['get'](m);return!(_0xd449f4['repository']['getRevisionsInDiff'](_0xd449f4['diff'])['length']>0x2)&&!_0xda30de['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x419123,{id:_0x3f59d4})=>{_0x419123['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f59d4);},'isVisible':({plugins:_0x2ecd49},_0x4fbee6)=>!!_0x2ecd49['get'](m)['repository']['getLaterVisibleRevision'](_0x4fbee6['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1258c7},{id:_0x37c2d7,revisionNameView:_0x20464a})=>{const _0x20abcb=_0x1258c7['get'](m),_0x3fb6b7=_0x20abcb['repository']['getEarlierVisibleRevision'](_0x37c2d7);_0x20abcb['compare'](_0x37c2d7,_0x3fb6b7),_0x20464a['focus'](),_0x20464a['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x43eae9,_0x446081){super(_0x43eae9),this['_view']=_0x446081,this['_toolbarConfig']=et(_0x43eae9['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4bd681){const _0x1a7525=this['editor'],_0x39a828=this['view'],_0x3a2adf=_0x1a7525['editing']['view'],_0x2f1994=_0x39a828['editable'],_0x32e907=_0x3a2adf['document']['getRoot']();_0x2f1994['name']=_0x32e907['rootName'],_0x39a828['render']();const _0x56fc33=_0x2f1994['element'];this['setEditableElement'](_0x2f1994['name'],_0x56fc33),_0x39a828['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3a2adf['attachDomRoot'](_0x56fc33),this['_elementReplacer']['replace'](_0x4bd681,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x561b51=this['view'],_0x2e9cd2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2e9cd2['detachDomRoot'](_0x561b51['editable']['name']),_0x561b51['destroy']();}['_initToolbar'](){const _0x38cce9=this['view'];_0x38cce9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x38cce9['stickyPanel']['limiterElement']=_0x38cce9['element'],_0x38cce9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x16a69d})=>_0x16a69d),_0x38cce9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x38cce9['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x488087,_0x179f5c,_0x201010={}){super(_0x488087),this['stickyPanel']=new ht(_0x488087),this['toolbar']=new dt(_0x488087,{'shouldGroupWhenFull':_0x201010['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x488087,_0x179f5c);}['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
- _0x54af36(_0x152331){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x29293d,_0x54813b){super(_0x54813b),this['sourceElement']=_0x29293d,this['model']['document']['createRoot']();const _0x41ffbd=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x41ffbd);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x161db2,_0x49b0a6){const _0x502153=new this(_0x161db2,_0x49b0a6);return await _0x502153['initPlugins'](),await _0x502153['ui']['init'](_0x161db2),await _0x502153['data']['init'](_0x502153['config']['get']('initialData')||''),_0x502153['fire']('ready'),_0x502153;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x432e21{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x419346){function _0x494881(_0x2c8d98){return _0x2c8d98['map'](_0x410310=>String['fromCharCode'](_0x410310))['join']('');}super(_0x419346),this['result']='end',_0x419346[_0x494881([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x494881([0x76,0x69,0x65,0x77])][_0x494881([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x494881([0x61,0x75,0x74,0x6f]),_0x419346[_0x494881([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x494881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x494881([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x494881([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x494881([0x6f,0x6b])});}}class k extends _0x432e21{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x46ed03){if(super(_0x46ed03),!this['editor']['config']['get']('revisionHistory'))throw new _0x585f88('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x520228=>this['_showRevisionViewer']({..._0x520228,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x989ae3=>this['_closeRevisionViewer'](_0x989ae3)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4d3396=>this['_restoreRevision'](_0x4d3396)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4ea281){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4ea281;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2be9da){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2be9da);}['getRevision'](_0x541c1c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x541c1c);}['getRevisions'](_0x3f1a1f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3f1a1f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x37d712=this['editor'],_0x4a09b7=_0x34620a(_0x37d712,p),_0x3d918e=_0x37d712['plugins']['get']('RevisionTracker'),_0x566650=_0x37d712['plugins']['get']('Users')['users'];return _0x4a09b7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a09b7['lazyRoots'],(_0x4a09b7['plugins']['push'](_t,m,R,class extends _0x432e21{static get['requires'](){return[m,'Users'];}['init'](){const _0x24e9a1=this['editor']['plugins']['get']('Users');for(const _0x110e40 of _0x566650)_0x110e40['isAnonymous']||_0x24e9a1['getUser'](_0x110e40['id'])||_0x24e9a1['addUser'](_0x110e40);const _0x2d01f3=_0x3d918e['repository']['getRevisions']();let _0x26fd19=null;const _0x1a4046=this['editor']['plugins']['get']('RevisionViewer');_0x1a4046['adapter']=_0x3d918e['adapter'],_0x1a4046['bind']('isEnabled')['to'](_0x3d918e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x37d712,'isReadOnly',_0x46f59b=>!_0x46f59b);for(const _0x47cfd5 of _0x2d01f3){const _0xdbc674=null===_0x47cfd5['creator'];if(_0xdbc674&&_0x47cfd5['toVersion']===_0x47cfd5['fromVersion'])continue;const _0x42d551=_0x47cfd5['toJSON']();_0x1a4046['addRevisionData'](_0x42d551,(_0x5a91e4,_0x267b53,_0x36d7f7)=>{if(_0xdbc674){if(_0x26fd19)_0x26fd19['_update'](_0x5a91e4,_0x267b53);else{if(!_0x267b53){const _0x99c3f6=_0x36d7f7['toJSON']();_0x99c3f6['id']=_0x3cce8a(),_0x3d918e['saveRevision'](_0x99c3f6,_0x36d7f7['toVersion'])['then'](_0x4fe373=>{_0x26fd19=_0x4fe373;});}}}else _0x47cfd5['_update'](_0x5a91e4,_0x267b53);});}}},d),_0x4a09b7);}['_enhanceShowRevisionViewerCallback'](){const _0x44b877=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3d5cfb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3a423c=this['editor']['plugins']['get']('Autosave');await _0x3a423c['save']();}else await _0x3d5cfb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x17bd0b=this['editor']['plugins']['get']('Dialog');_0x17bd0b['isOpen']&&_0x17bd0b['hide']();}const _0x4e3c73=this['_getRevisionViewerEditorConfig']();return _0x44b877(_0x4e3c73)['then'](_0x50cd89=>{return(this['_viewerEditor']=_0x50cd89,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x50cd89);})['catch'](_0x135984=>(console['error'](_0x135984),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x33d2fd=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x33d2fd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x47f9e3=this['editor']['plugins']['get']('Annotations');_0x47f9e3['refreshVisibility'](),_0x47f9e3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5af98b){const _0x5a163d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x288a72=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x8e7d2e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x8e7d2e,_0x5af98b)['then'](_0x4a9579=>(_0x288a72['style']['display']='block',_0x5a163d['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4a9579));}['_closeRevisionViewer'](_0x36fb0b){const _0x43fd5b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x43fd5b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x36fb0b['destroy']();}async['_restoreRevision'](_0x54da48){const _0x382ec0=this['editor'],_0x24a318=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xaf93cf=_0x382ec0['plugins']['get']('RevisionTracker'),_0x99130e=_0x382ec0['plugins']['get']('RevisionHistoryUtils'),_0x1ab978=_0x24a318['repository']['getRevision'](_0x54da48);let _0x3b4992,_0x4cfb5d,_0x5756e5;try{await _0x99130e['loadRevisionData'](_0x1ab978,this['adapter']),_0x3b4992=_0x99130e['getRevisionDocumentData'](_0x1ab978),_0x4cfb5d=_0x99130e['getRevisionRootsAttributes'](_0x1ab978);}catch(_0x27e456){return void console['error'](_0x27e456);}_0x382ec0['model']['change'](_0x2fd3e8=>{for(const _0x979094 of Array['from'](_0x382ec0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2fd3e8['removeMarker'](_0x979094);}),_0x24a318['isReady']=!0x1,_0x382ec0['model']['enqueueChange'](_0x16b76e=>{_0x16b76e['setSelection'](null),_0x16b76e['removeSelectionAttribute'](_0x382ec0['model']['document']['selection']['getAttributeKeys']());const _0x31ab94=Object['keys'](_0x3b4992);for(const _0x445fd6 of _0x382ec0['model']['document']['roots'])'$graveyard'!=_0x445fd6['rootName']&&_0x445fd6['isAttached']()&&!_0x31ab94['includes'](_0x445fd6['rootName'])&&_0x16b76e['detachRoot'](_0x445fd6);for(const _0x2997be of _0x31ab94){let _0x542f3e=_0x382ec0['model']['document']['getRoot'](_0x2997be);_0x542f3e&&_0x542f3e['isAttached']()||(_0x542f3e=_0x16b76e['addRoot'](_0x2997be));const _0x54bfe3=_0x4cfb5d[_0x2997be],_0x2273d5=Object['keys'](_0x54bfe3),_0x4394ce=_0x3b4992[_0x2997be];for(const _0x1c34e9 of _0x542f3e['getAttributeKeys']())_0x2273d5['includes'](_0x1c34e9)||_0x16b76e['removeAttribute'](_0x1c34e9,_0x542f3e);for(const _0x5ddbee of _0x2273d5)_0x16b76e['setAttribute'](_0x5ddbee,_0x4cfb5d[_0x2997be][_0x5ddbee],_0x542f3e);_0x16b76e['remove'](_0x16b76e['createRangeIn'](_0x542f3e)),_0x16b76e['insert'](_0x382ec0['data']['parse'](_0x4394ce,_0x542f3e),_0x542f3e,0x0);}});const _0x49841e=g(_0x382ec0['locale'],'Restored');if(_0x1ab978['name'])_0x5756e5=-0x1==_0x1ab978['name']['indexOf'](_0x49841e)?_0x49841e+':\x20'+_0x1ab978['name']:_0x1ab978['name'];else _0x5756e5=_0x49841e+':\x20'+(_0x1ab978['createdAt']['toLocaleDateString'](_0x382ec0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1ab978['createdAt']['toLocaleTimeString'](_0x382ec0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xaf93cf['saveRevision']({'name':_0x5756e5}),_0x24a318['isReady']=!0x0,_0x382ec0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x566b9b){super(_0x566b9b),this['_revisionViewer']=_0x566b9b['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3dd273=this['_revisionsRepository']['_revisions'],_0x18d9fd=this['_createRevisionActions'](),_0x96fa4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x3dd273,_0x18d9fd,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',(_0x2d324c,_0x103570)=>{_0x103570['revisionViews']['on']('add',(_0x3a0804,_0x4c8f97)=>{_0x4c8f97['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)),_0x96fa4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4a3070=this['_revisionsRepository']['getRevision'](0x0);if(_0x4a3070){const _0x5f135d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4a3070['id']);this['_revisionViewer']['compare'](_0x4a3070,_0x5f135d);}}['_handleRevisionSelected'](_0x347840,_0x5b270b){const _0x2c48e0=this['_revisionsRepository']['getRevision'](_0x5b270b['id']),_0x43ec63=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2c48e0['id']);this['_revisionViewer']['compare'](_0x2c48e0,_0x43ec63);}['_handleRevisionSetName'](_0x410cdc,_0x2e7888){this['_revisionsRepository']['getRevision'](_0x2e7888['id'])['setName'](_0x2e7888['name']);}['_handleDiffChange'](_0x427f13,_0x23d9c4,_0xbdfa7){const _0x165224=this['_revisionsRepository']['getRevisionsInDiff'](_0xbdfa7);_0x165224['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x165224),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x165224[0x0]));}['_createRevisionActions'](){const _0x78fe1c=this['editor'],_0x1bab5a=d['availableRevisionActions'],_0x597011=_0x78fe1c['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x597011['length'])return _0x597011['map'](_0x59caca=>{const _0x1e8ad2='string'==typeof _0x59caca?Object['assign']({},_0x1bab5a[_0x59caca]):_0x59caca;return _0x1e8ad2['action']=_0x1e8ad2['action']['bind'](this,_0x78fe1c),_0x1e8ad2['isVisible']&&(_0x1e8ad2['isVisible']=_0x1e8ad2['isVisible']['bind'](this,_0x78fe1c)),_0x1e8ad2;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x207424},_0x224bb5)=>{const _0x5a3ffc=_0x207424['get'](m),_0x9d7dc6=_0x5a3ffc['repository'];let _0x41d9b1=_0x5a3ffc['diff']['newRevisionId'],_0x5e0db3=_0x224bb5['id'];_0x9d7dc6['getIndex'](_0x41d9b1)>_0x9d7dc6['getIndex'](_0x5e0db3)&&([_0x41d9b1,_0x5e0db3]=[_0x5e0db3,_0x41d9b1]),_0x5a3ffc['compare'](_0x41d9b1,_0x5e0db3);},'isVisible':({plugins:_0x2fdb0c},_0x30a0c4)=>{const _0x24b397=_0x2fdb0c['get'](m);return!(_0x24b397['repository']['getRevisionsInDiff'](_0x24b397['diff'])['length']>0x2)&&!_0x30a0c4['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x52ebd3,{id:_0x367fbc})=>{_0x52ebd3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x367fbc);},'isVisible':({plugins:_0x49d4be},_0x37f7ec)=>!!_0x49d4be['get'](m)['repository']['getLaterVisibleRevision'](_0x37f7ec['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x14b646},{id:_0x201cb0,revisionNameView:_0x89d6bc})=>{const _0x2d783e=_0x14b646['get'](m),_0x5107e1=_0x2d783e['repository']['getEarlierVisibleRevision'](_0x201cb0);_0x2d783e['compare'](_0x201cb0,_0x5107e1),_0x89d6bc['focus'](),_0x89d6bc['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x10b993,_0x200148){super(_0x10b993),this['_view']=_0x200148,this['_toolbarConfig']=et(_0x10b993['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x47e967){const _0x3bc860=this['editor'],_0x1b70e4=this['view'],_0x71c8b0=_0x3bc860['editing']['view'],_0x3adf36=_0x1b70e4['editable'],_0x1f4e80=_0x71c8b0['document']['getRoot']();_0x3adf36['name']=_0x1f4e80['rootName'],_0x1b70e4['render']();const _0x17b387=_0x3adf36['element'];this['setEditableElement'](_0x3adf36['name'],_0x17b387),_0x1b70e4['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x71c8b0['attachDomRoot'](_0x17b387),this['_elementReplacer']['replace'](_0x47e967,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x49847e=this['view'],_0x3204a0=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3204a0['detachDomRoot'](_0x49847e['editable']['name']),_0x49847e['destroy']();}['_initToolbar'](){const _0x285318=this['view'];_0x285318['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x285318['stickyPanel']['limiterElement']=_0x285318['element'],_0x285318['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4d2139})=>_0x4d2139),_0x285318['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x285318['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x383792,_0x1466dd,_0x10298c={}){super(_0x383792),this['stickyPanel']=new ht(_0x383792),this['toolbar']=new dt(_0x383792,{'shouldGroupWhenFull':_0x10298c['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x383792,_0x1466dd);}['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
+ _0x4a7b9d(_0x48424a){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2e1ba3,_0x4d94b0){super(_0x4d94b0),this['sourceElement']=_0x2e1ba3,this['model']['document']['createRoot']();const _0x52ccf1=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x52ccf1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x34a706,_0x33d1e9){const _0x4cbb15=new this(_0x34a706,_0x33d1e9);return await _0x4cbb15['initPlugins'](),await _0x4cbb15['ui']['init'](_0x34a706),await _0x4cbb15['data']['init'](_0x4cbb15['config']['get']('initialData')||''),_0x4cbb15['fire']('ready'),_0x4cbb15;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x28ae17{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e10b5){function _0x186091(_0x55e2bb){return _0x55e2bb['map'](_0x5f34d5=>String['fromCharCode'](_0x5f34d5))['join']('');}super(_0x1e10b5),this['result']='end',_0x1e10b5[_0x186091([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x186091([0x76,0x69,0x65,0x77])][_0x186091([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x186091([0x61,0x75,0x74,0x6f]),_0x1e10b5[_0x186091([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x186091([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x186091([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x186091([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x186091([0x6f,0x6b])});}}class k extends _0x28ae17{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2cd30e){if(super(_0x2cd30e),!this['editor']['config']['get']('revisionHistory'))throw new _0x35f6cb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x336a39=>this['_showRevisionViewer']({..._0x336a39,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3766d2=>this['_closeRevisionViewer'](_0x3766d2)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4fc0af=>this['_restoreRevision'](_0x4fc0af)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4a2e66){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4a2e66;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4040b1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4040b1);}['getRevision'](_0x3f35d9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3f35d9);}['getRevisions'](_0xe3d860){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xe3d860||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x22b8e5=this['editor'],_0x21a111=_0x2564da(_0x22b8e5,p),_0x42b689=_0x22b8e5['plugins']['get']('RevisionTracker'),_0x2de26e=_0x22b8e5['plugins']['get']('Users')['users'];return _0x21a111['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x21a111['lazyRoots'],(_0x21a111['plugins']['push'](yt,m,R,class extends _0x28ae17{static get['requires'](){return[m,'Users'];}['init'](){const _0x270855=this['editor']['plugins']['get']('Users');for(const _0x433010 of _0x2de26e)_0x433010['isAnonymous']||_0x270855['getUser'](_0x433010['id'])||_0x270855['addUser'](_0x433010);const _0x17f0f1=_0x42b689['repository']['getRevisions']();let _0x21358b=null;const _0x90e863=this['editor']['plugins']['get']('RevisionViewer');_0x90e863['adapter']=_0x42b689['adapter'],_0x90e863['bind']('isEnabled')['to'](_0x42b689),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x22b8e5,'isReadOnly',_0x4ab7f7=>!_0x4ab7f7);for(const _0x585132 of _0x17f0f1){const _0x47e3c0=null===_0x585132['creator'];if(_0x47e3c0&&_0x585132['toVersion']===_0x585132['fromVersion'])continue;const _0x3ebc23=_0x585132['toJSON']();_0x90e863['addRevisionData'](_0x3ebc23,(_0x19256c,_0x3f379d,_0x8da548)=>{if(_0x47e3c0){if(_0x21358b)_0x21358b['_update'](_0x19256c,_0x3f379d);else{if(!_0x3f379d){const _0x251fb7=_0x8da548['toJSON']();_0x251fb7['id']=_0x35025a(),_0x42b689['saveRevision'](_0x251fb7,_0x8da548['toVersion'])['then'](_0x352486=>{_0x21358b=_0x352486;});}}}else _0x585132['_update'](_0x19256c,_0x3f379d);});}}},d),_0x21a111);}['_enhanceShowRevisionViewerCallback'](){const _0x1dca92=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x260207=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x49562c=this['editor']['plugins']['get']('Autosave');await _0x49562c['save']();}else await _0x260207['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xa7cb67=this['editor']['plugins']['get']('Dialog');_0xa7cb67['isOpen']&&_0xa7cb67['hide']();}const _0x4a4297=this['_getRevisionViewerEditorConfig']();return _0x1dca92(_0x4a4297)['then'](_0x1af066=>{return(this['_viewerEditor']=_0x1af066,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1af066);})['catch'](_0x3fe920=>(console['error'](_0x3fe920),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3c4be6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3c4be6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2080c6=this['editor']['plugins']['get']('Annotations');_0x2080c6['refreshVisibility'](),_0x2080c6['refreshPositioning']();}})));}['_showRevisionViewer'](_0x270962){const _0xff33df=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x50d1e8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x335efe=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x335efe,_0x270962)['then'](_0x422f6e=>(_0x50d1e8['style']['display']='block',_0xff33df['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x422f6e));}['_closeRevisionViewer'](_0x409c02){const _0x59c695=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x59c695['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x409c02['destroy']();}async['_restoreRevision'](_0x26b856){const _0x1b5596=this['editor'],_0x462f6c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x22d0c7=_0x1b5596['plugins']['get']('RevisionTracker'),_0x53ddd9=_0x1b5596['plugins']['get']('RevisionHistoryUtils'),_0x5778fa=_0x462f6c['repository']['getRevision'](_0x26b856);let _0x267d2b,_0x51941e,_0x19eb27;try{await _0x53ddd9['loadRevisionData'](_0x5778fa,this['adapter']),_0x267d2b=_0x53ddd9['getRevisionDocumentData'](_0x5778fa),_0x51941e=_0x53ddd9['getRevisionRootsAttributes'](_0x5778fa);}catch(_0x52a107){return void console['error'](_0x52a107);}_0x1b5596['model']['change'](_0x2a17c1=>{for(const _0x3a2535 of Array['from'](_0x1b5596['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2a17c1['removeMarker'](_0x3a2535);}),_0x462f6c['isReady']=!0x1,_0x1b5596['model']['enqueueChange'](_0x11f65e=>{_0x11f65e['setSelection'](null),_0x11f65e['removeSelectionAttribute'](_0x1b5596['model']['document']['selection']['getAttributeKeys']());const _0x10ce3f=Object['keys'](_0x267d2b);for(const _0x3595d9 of _0x1b5596['model']['document']['roots'])'$graveyard'!=_0x3595d9['rootName']&&_0x3595d9['isAttached']()&&!_0x10ce3f['includes'](_0x3595d9['rootName'])&&_0x11f65e['detachRoot'](_0x3595d9);for(const _0x3bbb86 of _0x10ce3f){let _0x933574=_0x1b5596['model']['document']['getRoot'](_0x3bbb86);_0x933574&&_0x933574['isAttached']()||(_0x933574=_0x11f65e['addRoot'](_0x3bbb86));const _0x445d57=_0x51941e[_0x3bbb86],_0x56ab28=Object['keys'](_0x445d57),_0x511b4e=_0x267d2b[_0x3bbb86];for(const _0x1517d3 of _0x933574['getAttributeKeys']())_0x56ab28['includes'](_0x1517d3)||_0x11f65e['removeAttribute'](_0x1517d3,_0x933574);for(const _0x43ab5a of _0x56ab28)_0x11f65e['setAttribute'](_0x43ab5a,_0x51941e[_0x3bbb86][_0x43ab5a],_0x933574);_0x11f65e['remove'](_0x11f65e['createRangeIn'](_0x933574)),_0x11f65e['insert'](_0x1b5596['data']['parse'](_0x511b4e,_0x933574),_0x933574,0x0);}});const _0x413cc2=g(_0x1b5596['locale'],'Restored');if(_0x5778fa['name'])_0x19eb27=-0x1==_0x5778fa['name']['indexOf'](_0x413cc2)?_0x413cc2+':\x20'+_0x5778fa['name']:_0x5778fa['name'];else _0x19eb27=_0x413cc2+':\x20'+(_0x5778fa['createdAt']['toLocaleDateString'](_0x1b5596['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5778fa['createdAt']['toLocaleTimeString'](_0x1b5596['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x22d0c7['saveRevision']({'name':_0x19eb27}),_0x462f6c['isReady']=!0x0,_0x1b5596['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};